@zeniai/web-cockpit-ui 1.13.92-qa → 1.13.93-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-DSxVnTLA-D1-iHIV_.js → ACHDetailsPage-B7Osqlyb-BwlnvX_d.js} +1 -1
- package/dist/assets/{AIPerformancePage-DpJmdFIS-ptP-VwzZ.js → AIPerformancePage-CEGqk2vj-DYer4sK1.js} +1 -1
- package/dist/assets/{AccountInfoPage-UxE6vaxM-Cd6nbcJE.js → AccountInfoPage-Dsi_xY1U-B-sH9O2B.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-B8luWP8D-CZHd9VXv.js → AccountInfoPageContent-CmRpq4eF-B2DwYw45.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CRuSLa04-C78XHZlh.js → AccountReconDetailsDrawerPage-Bwc-VZmp-CnpXttfi.js} +1 -1
- package/dist/assets/{AccountRow-DVnBiB7_-CPXvnObH.js → AccountRow-DMeCdEPJ-0Td7rdjz.js} +14 -14
- package/dist/assets/{AccountsPromoCardStack-oPvi6hmo-DZpnXhtG.js → AccountsPromoCardStack-NYQHh0uE-De_Ps0gr.js} +13 -13
- package/dist/assets/{AddAddressForCardDrawer-Bl8FShie-B95Xnw-A.js → AddAddressForCardDrawer-3WPrDfNL-BmoU8xMj.js} +1 -1
- package/dist/assets/{AddToWalletPage-BykgUTfa-D4vrpQJK.js → AddToWalletPage-IjvBXyuu-LqJuRvIx.js} +18 -18
- package/dist/assets/{AgingReportsPage-CtpuS77Y-CE6txtIZ.js → AgingReportsPage-CIJTKbrN-CVdoyKAO.js} +5 -5
- package/dist/assets/{AllUserItems-zqRosy03-COR9NR1n.js → AllUserItems-BuX43aPo-H0s42hTQ.js} +4 -4
- package/dist/assets/{ApAgingDetailPage-B4dHhJE1-CaWZMWGh.js → ApAgingDetailPage-02ejdrQy-CkSV3Gpj.js} +2 -2
- package/dist/assets/{AppBasePage-ntAldChd-CbIHEw9R.js → AppBasePage-CC3bbnnu-Ciqf55R8.js} +2 -2
- package/dist/assets/{AppDrawerContent-LRG0OW3a-B799K3xV.js → AppDrawerContent-B_EAPC9w-BdR_mtmP.js} +5 -5
- package/dist/assets/ApprovalRulesSettingsPage-1AQm08qF-1bvo_sOv.js +47 -0
- package/dist/assets/{ArAgingChart-BmfMCB8_-fY0QEK4n.js → ArAgingChart-UnY648RV-B8ISkKOi.js} +6 -6
- package/dist/assets/{ArAgingDetailPage-C2lhYsGV-BYs1bmSh.js → ArAgingDetailPage-CMUpR-2N-CqTh98Ou.js} +3 -3
- package/dist/assets/{AttachmentView-CQlsMYN3-USK3brEH.js → AttachmentView-sbbFtu9R-wkkd2tSH.js} +1 -1
- package/dist/assets/{BankAccountSection-D1tQzNSO-gEkCF92l.js → BankAccountSection-BJPkV-qV-DnIozyCI.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Dj_S6brX-3ftY6npO.js → BankAccountWarningSection-D9R1VhzE-GAcwzATB.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-UQAJXShM-DCO59eAm.js → BankConnectionsSettingsPage-BG99PtV_-CvP1ZQFj.js} +1 -1
- package/dist/assets/{BillDetailPage-BOy1MkMT-yl7syVQH.js → BillDetailPage-C_JDjRL0-Kxjam1W7.js} +6 -6
- package/dist/assets/{BillPayApprovalRuleDetailPage-C7c04fyW-gv93wavc.js → BillPayApprovalRuleDetailPage-B_XMuvzZ-CuOSZOiJ.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-D7vn36vA-DVT6BH5J.js → BillPayApprovalRulesPage-CyZjNIsQ-DvR9HK7c.js} +1 -1
- package/dist/assets/{BillPayPromoPage-VCQ0v0Ko-k0l6XCko.js → BillPayPromoPage-ByDsqYfw-Bz6xfanS.js} +3 -3
- package/dist/assets/{BillPaySetUpPage-MD1PbTMB-Mj8YwN2-.js → BillPaySetUpPage-yTO-xwRJ-D5LOIl5a.js} +1 -1
- package/dist/assets/{BillingSettingsPage-B0U9RKLC-CxniqQ_i.js → BillingSettingsPage-BIAy1QHr-CdxSnuoN.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-CStmvhgL-BfpFJcjC.js → BillsBulkReviewDrawerPage-Cw1XCs0q-BPMOI-f-.js} +1 -1
- package/dist/assets/{BoxItem-D3v5T6bP-Ccyj0z_e.js → BoxItem-UCX7eqiN-Bx4T9Ckg.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BIba2-zs-baesBtzL.js → BusinessVerificationPage-CSsout2C-D0_Wr4yR.js} +3 -3
- package/dist/assets/{CardNumberSubText-DoWj5vAy-CAfScSz4.js → CardNumberSubText-DuTv0ip1-BQ2cCq6Y.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CPz0J2HA-DnWSOdcg.js → CashbackDetailPage-KdHf-_ZF-DMwQoPE0.js} +9 -9
- package/dist/assets/{ChargeCardDetailPage-DxE5h1S5-BSn9I5tq.js → ChargeCardDetailPage-DYGcQs0M-D9cSv6UR.js} +1 -1
- package/dist/assets/{ChargeCardListPage-fXayrykw-C4eDLONF.js → ChargeCardListPage-CNrRrNbd-BjkSAo-I.js} +1 -1
- package/dist/assets/{ChargeCardListTable-C-WxFg6W-Bxx8UmMq.js → ChargeCardListTable-B1a9-RYl-DFaeigKK.js} +103 -103
- package/dist/assets/ChargeCardPromoPage-DZ1f8Sus-BW8ozxyr.js +175 -0
- package/dist/assets/{ChargeCardSetupPage-ByLkUH5I-BPvN7kpq.js → ChargeCardSetupPage-DOrs_Bw8-DgkoLihJ.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-Dsv5AXrZ-DoY0Jw4d.js → ChargeCardStatementsPage-xvq2HeEr-DOI6TXvC.js} +1 -1
- package/dist/assets/{ChargeCardUtils-CVC43_6w-C9AAkcIV.js → ChargeCardUtils-Dt303NN_-05QPLa2p.js} +1 -1
- package/dist/assets/{ChaseOverlay-CHWBgNa9-DBU-aocS.js → ChaseOverlay-BK2ISNjj-S6c-qliM.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DySu5_BH-C65eaIWg.js → CheckDepositDrawerPage-CbsRUWnx-BK3WXMqm.js} +1 -1
- package/dist/assets/{CollapsableReportTable-ZObwzBbY-AvFmJfte.js → CollapsableReportTable-D5D0ufUn-Bzt15FNd.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DVG0lvX--Wg40Blwv.js → CompanyOfficerDetailsSection-C7fuDGQk-IsFgAXuq.js} +6 -6
- package/dist/assets/{CompanyPassportCard-DBZRV0g0-JDJxemYn.js → CompanyPassportCard-DwUqLcAr-DSkb28QS.js} +4 -4
- package/dist/assets/{CompanyPassportPage-BoaNol0L-D8V2l9pw.js → CompanyPassportPage-ClToBIAw-kZszHSwA.js} +10 -10
- package/dist/assets/{CompleteProfile-nkRKLJTF-kma5tNZE.js → CompleteProfile-CLDWG3QK-CfBVYMEP.js} +1 -1
- package/dist/assets/{ConfettiBurst-BYoGZ66F-CE0o8Vhl.js → ConfettiBurst-DoZB9Us7-CMmPQCFc.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C1Yx8t4M-BuM4U0t0.js → CreateOrEditVendorPage-B837xw8A-BAYCbcGJ.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-DlnR16jr-ChhzdCb0.js → CreditCardPaymentDrawerPage-zGaAOnnB-BsFRJBm4.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-CZ2vyMiF-ClsOZPvU.js → CreditCardPaymentPlgSection-BLbZFCcL-Bqc-C6eO.js} +1 -1
- package/dist/assets/{CurrencySelectField-vH1oB0K8-Dr64IPr4.js → CurrencySelectField-DS3dOR3F-DalqX_lS.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-rpZmgNZo-DuEHpoc1.js → CustomerOnboardingActivationPage-WWVaQenb-B8ztly-z.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BmFfAaO1-BI9KTD4O.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CFIeHxxw-UU0mUCiu.js → CustomerOnboardingDetailPageSkeleton-BSXKMQ77-MLxx67vI.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-BueMiyFl-DUOR8jGf.js → CustomerOnboardingNoStepsPage-Dd5kCuRE-BcQg4Ohl.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-CmHXtB9v-CXmQf7U7.js → CustomerOnboardingPage-CGJpD875-Dopxs2Zj.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-I9pftf_j-B_gnkO1d.js → CustomerOnboardingProductSuitePage-BFmVLk0l-Dqe6wu_O.js} +3 -3
- package/dist/assets/{Dashboard-DcfkiicK-q4fxRwyW.js → Dashboard-BLIK_ZsD-D6wuOJAN.js} +1 -1
- package/dist/assets/{DashboardReportPage-B7J8yZR6-DRm7363E.js → DashboardReportPage-BbYtKYEH-pc8ejgXI.js} +8 -8
- package/dist/assets/{DepositAccTransactionItem-CP_2AL3M-UriJgTZ8.js → DepositAccTransactionItem-BMXQpKVB-DaF1MUuy.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-C4o1y1mJ-vDVIGMR1.js → DepositAccTransactionListPage-bwEdSihi-CXBTlKtY.js} +2 -2
- package/dist/assets/{DocumentSecurityBanner-C5w0d_S8-qYbxtRj6.js → DocumentSecurityBanner-DV9HE3MK-LQKK6f7V.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-t0Ebo518-C2FWXYt8.js → DomesticWireDetailsPage-OI-gqVNE-BqvWfcoc.js} +1 -1
- package/dist/assets/{DownloadOverlay-CPW9ebxu-C4HHQYK0.js → DownloadOverlay-De5uIGOt-g0Egf70Z.js} +1 -1
- package/dist/assets/{DrawerPage-Xc2rQipJ-DVYxRAtt.js → DrawerPage-n421ewDm-CnkmETxv.js} +1 -1
- package/dist/assets/{EditPeoplePage-CF5UleI0-CUGe8Cnt.js → EditPeoplePage-sO1qN6Uw-bGTiOwCj.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DGCkOykv-ClMeSVrD.js → EditReimbursementDetailPage-D5iKVGl3--EFA7JxG.js} +1 -1
- package/dist/assets/{EntityDetailPage-BykQZo8S-KrJZ5syb.js → EntityDetailPage-CDk-oyYB-dhBDHyNo.js} +2 -2
- package/dist/assets/{EntitySummarySection-Dw4PBcg_-CvhgPnGt.js → EntitySummarySection-C4cC9rOJ-D8GGYrtb.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-BwAaZVq3-lC8f8L2T.js → ExpenseAutomationOverviewPage-BojhuW5i-BvXr37wt.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-Cqiyk-AY-BD5tyT7-.js → ExpenseAutomationPage-D0BViJ7J-CWRMA15W.js} +44 -44
- package/dist/assets/{ExpressPayPage-D0lCczvw-B2Rp-VPl.js → ExpressPayPage-DdgtFYep-CUOKOoiC.js} +7 -7
- package/dist/assets/{FeaturePreviewPage-CxZIUB8l-Bcfcu7bL.js → FeaturePreviewPage-CW0YmOgl-bNGEnD-g.js} +1 -1
- package/dist/assets/{FollowStepsSection-CILr1_vc-CLgm2Hne.js → FollowStepsSection-BfnTsu_D-DwG4wG8g.js} +7 -7
- package/dist/assets/{GlobalReviewListPage-DL6H7PZG-U8XS5aLk.js → GlobalReviewListPage-C0U7Y6dI-BkEZ_PU4.js} +1 -1
- package/dist/assets/{HelpButton-CkSfhBfN-BPWTXFdl.js → HelpButton-DXFYhUL5-Co36EHOd.js} +1 -1
- package/dist/assets/{InformationCardStack-i76c5dym-DFWwTZfO.js → InformationCardStack-6BD3n76T-CKu_A2Jh.js} +2 -2
- package/dist/assets/{InsightsCardStack-wcWhovKK-DnGgdxv6.js → InsightsCardStack-CwxJP-ic-nmTxa9wo.js} +3 -3
- package/dist/assets/{InsightsSection-CCzgI0uK-VJ3ZyfK9.js → InsightsSection-DYyHpcUE-N_KvwWiO.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-B2CDE2Xd-ohhBb_xY.js → IntegrationsSettingsPage-ZkvKZqwD-BFhl6nEA.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DNT75nXv-vcMWpbBe.js → InternationalWireSwiftDetailsPage-D3nyRM06-CLJCmyag.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BDxujQK--D_AwvW9Z.js → InternationalWireVerificationPage-BOdAP6dN-Bwjg3gOc.js} +1 -1
- package/dist/assets/{InviteFormPage-BnLBPR7X-Dr7Az14X.js → InviteFormPage-HJMhfa_f-tkS1HQ9G.js} +1 -1
- package/dist/assets/{InvitePageListView-7mhz_Fyy-DnVzZkxM.js → InvitePageListView-CjneWRfJ-Cqi-gRH8.js} +1 -1
- package/dist/assets/{InvitePeoplePage-B8gb9N_8-BkOhV9LS.js → InvitePeoplePage-By6TWsVZ-DcezDHDA.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-Bes1nCJn-cQbyoy31.js → InvoiceUploadSection-CfAnZsV9-DBOTURQ6.js} +4 -4
- package/dist/assets/{IssueChargeCardPage-DC3yIsQd-CKHm2aDr.js → IssueChargeCardPage-pKF4dRNw-CboqmQ0I.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Dtw8vM0g-Lr7x20Yy.js → LabeledAddressValue-UYEy_1W0-Ci2tufnL.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-D72yUpQl-Df1WQsGJ.js → LabeledAddressValueField-BmSVDTMx-CBdRfhaZ.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BFaru2xf-BjoAdjoa.js → LabeledControlledCheckBoxField-BFnLx9E0-ozh3nGkA.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CCXfjgxP-5vcIQ2Mo.js → LabeledCreatableSingleSelectField-Bh-cfR9F-Cgfy3beB.js} +1 -1
- package/dist/assets/{LabeledDocumentField-aYYBY16j-Bae_VgX4.js → LabeledDocumentField-YBoeNDoD-DV_I5uPN.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-Co7u6hHL-B32MBaMN.js → LabeledDropDownFormattedTextField-jrOUW9Ig-BtNHTfAs.js} +1 -1
- package/dist/assets/{LabeledText-BrOLGzO5-rL0tneCB.js → LabeledText-BqO1wHro-DuRorhx4.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D-Huhkbq-BEOyGiLV.js → LabeledUserSingleSelectWithSubtitlesField-DiWgp4aE-C9gBIqih.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-WXH8xLJq-Dib2Yw_B.js → LabeledZeniRolesDropDownField-Cgy0v5oD-DVkREz_1.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-NFV4Vo3i-9GCZH5U0.js → LinkJETransactionPage-PZAQ79zW-CK6GNIYR.js} +1 -1
- package/dist/assets/{LowBalancePopup-Bxkd2pBR-unK4Ye9z.js → LowBalancePopup-BYeSnxBp-BI_shW18.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-BJFlUq7i-DCFJc6GZ.js → MagicLinkACHDetailsPage-D_FaPCmn-oM5m56GJ.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CTuaNol6-DlXeuNXQ.js → MagicLinkDomesticWireDetailsPage-rnZdulCr-CM2OhcqO.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-L2dPsfWM-C9gEpXm2.js → MagicLinkInternationalWireDetailsPage-B7ScwCJc-hpVpOAMi.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DutanrSJ-CZQdge1Z.js → MagicLinkSuccessPage-DVhVWuCR-C1ELLMXO.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-5B8jYoBn-vdest58S.js → MagicLinkTitleSection-CjV-_WEQ-BZeg3Eo_.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DwWeiSC0-pGk3-tya.js → MailingDetailsSection-CW6ShqHJ-CO_dTd-f.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-rC3PQdjG-B_4Eh-Cw.js → MeetingCalenderPopup-BhC8pSjM-Cnn0jkdk.js} +1 -1
- package/dist/assets/{Menu-CrSQ1yNo-c9Hi2HXE.js → Menu-LDwLOgxI-DZ0xBJbp.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CJjW9ymP-BCaJojyo.js → MyBankConnectionsSettingsPage-BzxtuXEu-B9IXFZww.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CvxqOjc7-BzSOTZYH.js → MyPendingActivationChargeCardListPage-9jGJWmds-BAoE5bWC.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BX5dXulH-m3N29QaR.js → MyProfileSettingsPage-9yk4H_yu-D2-h3k3L.js} +7 -7
- package/dist/assets/{NavBarWithPicker-CuVAj7o5-CP10D7f9.js → NavBarWithPicker-DUpJ0EXp-43gjuBbT.js} +1 -1
- package/dist/assets/{NavigationArrow-BPQ9vRqR-CBW2ZEmU.js → NavigationArrow-lL3Ug8Mk-CKQ_08MZ.js} +1 -1
- package/dist/assets/{NavigationDots-Toh5TKEv-OSyhnKRF.js → NavigationDots-6Q5ZVqKl-C4jKPBGn.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-B4r1haCm-Ce2LoB6H.js → NewGlobalMerchantPage-nrWvsRy4-DbM5W8Wn.js} +1 -1
- package/dist/assets/{NoDataChart-CVM-QPHf-D5psvAcN.js → NoDataChart-DGbfWo33-CtNbg73S.js} +1 -1
- package/dist/assets/{NoDataTable-CM-tApqo-BIz-jCYp.js → NoDataTable-CsvWc_ok-iHpzgtD5.js} +1 -1
- package/dist/assets/{NotFoundPage-I-EBmx2b-CuWqLUY8.js → NotFoundPage-CzfiPkml-BQeqs7Av.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CtZ7hdMN-Wo1EzU2G.js → NotificationSettingsPage-Dmfqzy1H-CXBPPrT7.js} +6 -6
- package/dist/assets/{NotificationsListConfig-BAKipCDG-Cv91iO15.js → NotificationsListConfig-Cc3hEei0-BUGnkVM7.js} +1 -1
- package/dist/assets/{NotificationsPage-xyLmK3l7-BEJKDLky.js → NotificationsPage-BAj5p1zx-D_Mwv5JA.js} +1 -1
- package/dist/assets/{OpExByVendorPage-B63DEuJM-BDxjaGzg.js → OpExByVendorPage-CRt-VUTi-BSRoe6fS.js} +7 -7
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-Ntu6HlKQ.js → OverlayContainerPage-C0rUb6-5-CpXI0Wjw.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-uY-ajYp4-V0SHSx_P.js → PandLWithForecastPage-lT9GgcG2-Do2wpSYt.js} +5 -5
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DM9NYbmX-DUzBMAJl.js → PaymentAccountSetupBillingAddressSection-DY4eeS5C-DRjMzj0b.js} +4 -4
- package/dist/assets/{PeoplePage-DPZj6XeQ-CAELlX33.js → PeoplePage-CDQl7HVr-BdnTCUNW.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-De56plDa-DJkYrYNG.js → PortfolioAllocationFormPage-StMDGc2G-BtdTMk__.js} +3 -3
- package/dist/assets/{PortfolioDetails-DiITguNZ-Cq29R7Zz.js → PortfolioDetails-Dk_IIRuG-B_DxSJx7.js} +3 -3
- package/dist/assets/{ProductsCarousel-BojgZxY7-cwoMBxX7.js → ProductsCarousel-0-ksFQos-BOcG3c1-.js} +1 -1
- package/dist/assets/{PromoBaseCards-DPAkjdDp-Ep5C_mS4.js → PromoBaseCards-DNSnqS61-Al7XKWVe.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CzuH4c1o-ZsjLY4Mn.js → QBOConnectionDialog-BmIUfW_i-DCw1_Zjz.js} +4 -4
- package/dist/assets/{QBOSetupSection-DJBfLeXn-DeLZ9-CI.js → QBOSetupSection-BaNFiEPB-BQTYBa9Y.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CAcLCt68-z4GKwxQt.js → ReimbursementApprovalRuleDetailPage-CtTk4HV2-BFn-5msn.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-edz_6MDX-ElMfP5AN.js → ReimbursementApprovalRulesPage-IhKSiGK_-xDcDckpI.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DD_GbfiV-CY9HB-Ai.js → ReimbursementDetailPage-B2rT1dKM-BvN3K25P.js} +4 -4
- package/dist/assets/{ReimbursementPromoPage-B_HZWdXi-YAVdtzTS.js → ReimbursementPromoPage-d7XBUzip-Baqr_9HR.js} +18 -18
- package/dist/assets/{ReimbursementSetUpPage-C0SNbg5D-BNH2r07u.js → ReimbursementSetUpPage-DWCUtN5c-B7jvTAZ2.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-NOK5jPjr-YNxBe6Vb.js → ReimbursementsBulkReviewDrawerPage-ByNvcTCn-CVr0tk48.js} +1 -1
- package/dist/assets/{ReloadCard-CqyGWGqs-6_Cif2Ll.js → ReloadCard-DZy28iWR-fdBnNVQp.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-B8ZW0kxU-EaZ_XIvS.js → ReportTableViewSelector-DdZm4cOJ-noq_7l2G.js} +5 -5
- package/dist/assets/{ReportsPage-DdqQgvJt-f0a_FJwO.js → ReportsPage-CJDkY9FT-BvINYvTj.js} +1 -1
- package/dist/assets/{RevenueChart-QoBLII7z-Q1hk28a9.js → RevenueChart-B_jdFFPm-BXFiwU14.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BVoI7xF7-CnpSx4Tw.js → ReviewDetailsPage-DjPVGzeL-DLDIfiIY.js} +9 -9
- package/dist/assets/{ReviewOverlay-CbpylyCx-DTIV4D_3.js → ReviewOverlay-DGYnF07r-qnvuKuhQ.js} +6 -6
- package/dist/assets/{RoleWithToolTip-TxLTa63q-DKveW2Ky.js → RoleWithToolTip-VlYG_GPv-D1yDUHv7.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CuwxZJjj-BYS2pDbG.js → ScheduleDetailsFixedAssetsPage-oPFQEE8g-DGu6MDH1.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-u0VNz7hA-BjWj5NhD.js → ScheduleDetailsPage-BdBgJEAl-DNQIOTck.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-usJjTfAn-D29S5hbD.js → ScheduleSequenceTable-Ncft3mZN-BP3nA4Wm.js} +5 -5
- package/dist/assets/{ScreenRoutes-rw1o8MQs.js → ScreenRoutes-GKyBzI0O.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DDe06VBR-DLpiHVvI.js → SetUpAccountSection-BrYiljyO-B0sFI8H-.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-B6pcOXMO-CRtYcMT6.js → SetUpDefaultSection-B361ojb9-CxOpM9AT.js} +1 -1
- package/dist/assets/{SignIn-BdhV8PbY-BRh-EFuz.js → SignIn-B_-FUZwZ-DmmXPLIK.js} +1 -1
- package/dist/assets/{SignInScreen-BdMez8fF.js → SignInScreen-DXQE8i8n.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DNgC__pX-Cd7FbCgo.js → SpendManagementListViewPage-XbjqwHXx-DUJaDID4.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BkiWOMch-CwEHEBT9.js → SpendManagementPerTabPage-D-4W-Ru9-BTwZxU7E.js} +8 -8
- package/dist/assets/{SpendManagementSection-DuR3sx7V-JrRKdD4x.js → SpendManagementSection-B7pMvj7Z-BAsdHFSu.js} +8 -8
- package/dist/assets/{SpendMgmtSetupAccountSection-DoUKX4Sf-DwQmG6qy.js → SpendMgmtSetupAccountSection-DdUs96r9-BtVu2Jjy.js} +1 -1
- package/dist/assets/{StatementItem-VYK0Vtgt-BBKdzXaY.js → StatementItem-B4DJRmwy-B3hGXxas.js} +1 -1
- package/dist/assets/{StatementsPage-CLxned7l-C4PScILv.js → StatementsPage-DzFEOmFA-wer7iddM.js} +1 -1
- package/dist/assets/{StatusSwitcher-Jqpvk1VX-CdG2mjou.js → StatusSwitcher-DGOwA8qO-D_gDSZQm.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C7_JB54g-DSaKTJri.js → SubTabSwitcher-Be-6o_mE-CbWpxIAQ.js} +1 -1
- package/dist/assets/{SummaryCard-oqK_zyxl-DYQ4YzrX.js → SummaryCard-CD1amg78-BqcEBi2M.js} +1 -1
- package/dist/assets/{TaskManagementPage-BDOhB7Ny-DCim2j5x.js → TaskManagementPage-C2UYhTtL-BjeaDszl.js} +12 -12
- package/dist/assets/{TimeRangeSwitcher-AWKZ7PNb-sMHjfJ3K.js → TimeRangeSwitcher-DxAmlHGP-Bw1t8DbY.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-BlL5woGb-B1qdJISl.js → TimeframeSwitcher-ndYSpUa6-BlrKZqFe.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CRnWI6xW-P8bjGMFI.js → TimeframeSwitcherWithToggle-B3bxr-_s-BNVy54lX.js} +1 -1
- package/dist/assets/{TopExCard-B4T3kqhZ-Q7tG_J2k.js → TopExCard-CcpyunQ3-BaDgbdKx.js} +2 -2
- package/dist/assets/{TopExDetailPage-Cx9T3i9O-fVM1l1lt.js → TopExDetailPage-C_B0c8iP-ByXi3xQ5.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CAGxHcQ9-BuC2Vxi4.js → TransactionDetailPage-DVPGLobu-DL-y5UIM.js} +23 -23
- package/dist/assets/{TransactionList-CVrK_-YB-CyqUr8En.js → TransactionList-CvGyadHZ-CKr6j1Ej.js} +1 -1
- package/dist/assets/{TransactionListBig-BnI6EofP-DpJRFiC_.js → TransactionListBig-BeZjYsO0-CWaiI9xM.js} +14 -14
- package/dist/assets/{TransactionListPage-vK6DdhrP-C7d8mvAu.js → TransactionListPage-C8h-sa3V-ISAOcRCi.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-IyAfkyMv-BwtflFlU.js → TransactionVendorDetailPage-BcV8h3xR-BGD_XS9I.js} +6 -6
- package/dist/assets/{TransferDrawerPage-Bp0TG8fm-959WX7gB.js → TransferDrawerPage-B_AJgZWp-BgCFpQ-3.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-Cr1liTpc-CTqtlCQy.js → TreasuryOverviewPage-kG1jZF28-DFMfLtUz.js} +17 -17
- package/dist/assets/{TreasuryPromoPage-Da7l7gv8-DPF1lFAp.js → TreasuryPromoPage-Dy3ExIiy-DKLmlPyB.js} +9 -9
- package/dist/assets/{TreasurySetupPage-DLNsPnS8-S_4_ECXQ.js → TreasurySetupPage-Cjr-dp6O-D_HiOnt5.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-CNXxykvB-CBw5AysV.js → TreasuryStatementsPage-CzOSIKGQ-CtcTNklQ.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DUbt8ItG-8rvpK6x5.js → TreasuryTaxLetterPage-CWLf1Zxq-BkcKbbtq.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-qxabbCrK-rO7uR-ni.js → TreasuryTransferOrReviewPage-C5F3fmoI-C6lOcQ5d.js} +8 -8
- package/dist/assets/{TrendChart-SOAxSpv2-BEwC2fOj.js → TrendChart-CtjfgQ9g-DU-bY5qU.js} +1 -1
- package/dist/assets/{TrendWithTransactions-BSQ2TJvu-DKoznMBK.js → TrendWithTransactions-SmcM2UIp-SwKmDId5.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-Caf242zp-C5DipiQT.js → UncategorizedAccountsMappingPage-CXoadwja-CEPslaD_.js} +7 -7
- package/dist/assets/{UnitIntegrationPage-Bvc4wx_r-BnaXEQW-.js → UnitIntegrationPage-wYQVQqP7-CMNCVZiN.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BTEhwmVL-BU3VE2l2.js → UploadAdditionalDocumentOverlay-8_c7UpvB-74BXxoUO.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DimcegQ_-ZwSJtWxA.js → Vendor2FAPopup-DtNSOXbK-B54GFzKj.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BOIRRgCy-BviefvlH.js → VendorACHDetailsPage-zNbGGe4q-8GlI6jYy.js} +1 -1
- package/dist/assets/{VendorDetailPage-CWcqMMpT-qMwE-rI0.js → VendorDetailPage-Cv-MG9iR-l4dRK0G1.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-9C2CIkhB-BOtPtDU5.js → VendorDomesticWireDetailsPage-BkqtoYAw-CtX9mSuC.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-Crz_WLRG-Bw34V4gU.js → VendorFiling1099EditablePage-DYJudj3c-DQ_wjKTT.js} +5 -5
- package/dist/assets/{VendorFirstReviewPage-hQ0U61KD-BzfMdPso.js → VendorFirstReviewPage-BNFIAB9n-BN6v_Gep.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-mm1qIXTf-Byl1FySa.js → VendorInternationalWireDetailsPage-DHa8JoNl-BRi2UVJj.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BaOsJGNO-DK_12j59.js → VendorInternationalWireSwiftDetailsPage-a5nSOMXK-BxkY5s8d.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-CGbDIAMd-DWeBvssx.js → VendorsAccountsSection-DwDGbjey-Bypo8ABo.js} +2 -2
- package/dist/assets/{WarningsDrawerPage-7DzlUfv7-DXPYNehY.js → WarningsDrawerPage-CaSTx_8h-B-9jNZQU.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-B_U4d2iv-DJdTSWpj.js → ZeniAccountDetailPage-BSOpxKiJ-Bcu_9TPK.js} +6 -6
- package/dist/assets/{ZeniAccountListViewPage-C2Yej3tG-BZm1pAj2.js → ZeniAccountListViewPage-CZM1ODEE-CvbySLjB.js} +6 -6
- package/dist/assets/{ZeniAccountNavBarPieces-DsWyZL7N-CM8u2fkO.js → ZeniAccountNavBarPieces-CjNAr1N9-HkSrs5G-.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-D6S3o6xA-C5TfP5fB.js → ZeniAccountPromoPage-PcyNGe7A-BLBuAvub.js} +9 -9
- package/dist/assets/{ZeniAccountSetupPage-YpW9LEB1-CT5yKJDM.js → ZeniAccountSetupPage-DhJ2zm6A-CuFLGcXY.js} +1 -1
- package/dist/assets/{ZeniCopyright-Buv4_0jF-etRFVvK1.js → ZeniCopyright-CSUSID-7-DBheoLGB.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CvuOgkEg-DnX0NID_.js → ZeniTransferAmountSlider-DPl7porw-Dl84FVK1.js} +1 -1
- package/dist/assets/{analyticsHelper-B3QVnfWf-H0h_HtBm.js → analyticsHelper-Cex5LOMD-Dxu2vm4u.js} +1 -1
- package/dist/assets/{analyticsHelper-BV5qlrBL.js → analyticsHelper-CpvxdbQV.js} +1 -1
- package/dist/assets/{chartTypes-DYAHlgKd-CIoUHagw.js → chartTypes-Df8u7la0-CtDbCz1y.js} +1 -1
- package/dist/assets/{commonDimensions-Pkc8qIrn-C51PkztX.js → commonDimensions-OJhakpB_-Bbp60BrB.js} +1 -1
- package/dist/assets/{detailCommon-CsukAL3T-C9Odjb8X.js → detailCommon-4wAnHr6n-CdRaYMXz.js} +4 -4
- package/dist/assets/{downloadPdf-DlKRXI5W-DRbhwI4R.js → downloadPdf-D02UNVHu-DqpjG06G.js} +1 -1
- package/dist/assets/{index-CChR0tlr.js → index-DTlzo6Yx.js} +512 -512
- package/dist/assets/{mapLoadingInProgressToTreeNode-KYsp1YPe-DkDU3yOy.js → mapLoadingInProgressToTreeNode-HsZI6Bdg-DBYPe0Tb.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-t5fK12Uc-BPcBM_s6.js → mapSectionWithAcOnlyToTreeNode-B9KMXCTi-cXLO9gFn.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-1YBqnFwa-BCpUJJfk.js → mapSpacerToTreeNode-BIZ_jwXi-CRlgAghX.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DD1v-gTG-CovxzaSA.js → mapTimeframeBalancesToTreeNode-BOFrVlzJ-4iwTY3Ct.js} +1 -1
- package/dist/assets/{play-icon-19dLaWkG-DVrAniBi.js → play-icon-BDRoJBSV-DFuHei9M.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-B8NxsLlK-BQM05QqO.js → toCOABalancesWithID-RJhTPgAt-Cci2ybt-.js} +1 -1
- package/dist/assets/{toChartData-CxZEcdj_-DkdJt_zk.js → toChartData-K68FB3Iy-nDeLE4ni.js} +1 -1
- package/dist/assets/{treasuryColorHelper-BqwCUN2u-u6_A3p-Z.js → treasuryColorHelper-DjASf5JB-DoMbQSj9.js} +1 -1
- package/dist/assets/{uploadAttachment-CHFo3qZI-D3BXDi9p.js → uploadAttachment-D7Rju7jS-SY7cBnUt.js} +1 -1
- package/dist/assets/{uploadReceipts-Buvz7DfG-CWJGX5ku.js → uploadReceipts-Buvz7DfG-JDslMarZ.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ApprovalRulesSettingsPage-CFCbNOcB-DTKgg2MT.js +0 -47
- package/dist/assets/ChargeCardPromoPage-CiwWzvym-DqCOZpsp.js +0 -175
- package/dist/assets/CustomerOnboardingContainerPage-DEDQrgtq-CEuEcH5A.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as k,fc as x,a5 as U,l as q,X as W,M as Y,j as i,c3 as _,F as A,Y as K,fd as X,o as a,g as G,cd as H,a7 as J,C as y,a6 as Q,c0 as Z,av as ee,as as te,q as c}from"./index-
|
|
1
|
+
import{a as k,fc as x,a5 as U,l as q,X as W,M as Y,j as i,c3 as _,F as A,Y as K,fd as X,o as a,g as G,cd as H,a7 as J,C as y,a6 as Q,c0 as Z,av as ee,as as te,q as c}from"./index-DTlzo6Yx.js";import{b as m,n as l}from"./vendor-CnQcJ2Lu.js";const F={marginRight:new y(c[3],c[8]),marginLeft:new y(c[3],c[8]),height:new y(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function ue(e){const{filesEndPoint:w,authParams:v,companyOfficer:t,updateStatus:f,onClose:S,onEditFileName:E,onDeleteFile:I,updateFilesEntity:D,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=k({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[z,$]=m.useState(!1),[N,O]=m.useState(!1),b=U(f.fetchState),j=t?.deleteFileStatusById??{},B=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(o=>o!=null),L=q.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&f.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,f,n,t?.additionalFiles]);const r=W(),h=Y.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,M=n.handleSubmit(()=>{L.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),R=async(o,p)=>{const d=p[u].front;o.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),$(!0)):$(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&_(()=>R(d,p))});return()=>{o.unsubscribe()}}),i.jsx(A,{...n,children:i.jsxs("form",{id:u,onSubmit:M,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:S,"data-testid":K("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(X,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:H,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${G.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:x(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:B,filesEndPoint:w,authParams:v,hasError:N,onEditFileName:E,onDeleteFile:I,updateFilesEntity:D,onFileSizeError:o=>O(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),z?i.jsx(J,{formId:u,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:f.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:S},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Z)`
|
|
2
2
|
margin-top: 19px;
|
|
3
3
|
color: ${e=>e.theme.colors.primary};
|
|
4
4
|
margin-bottom: ${a.sp2};
|
package/dist/assets/{Vendor2FAPopup-DimcegQ_-ZwSJtWxA.js → Vendor2FAPopup-DtNSOXbK-B54GFzKj.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a5 as o,M as v,j as n,hm as k,hn as j}from"./index-
|
|
1
|
+
import{a5 as o,M as v,j as n,hm as k,hn as j}from"./index-DTlzo6Yx.js";import{b as e}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const H=({vendorViewDetails:S,isExpressPayPage:i,onSaveVendor:l,onGetOtp:h,onResendOtp:d,onVerifyOtp:m,onVerifyOtpSuccess:c})=>{const{loggedInUserVerification:t,editVendorState:g,newVendorState:V}=S,r=Object.assign({},g??V),[C,s]=e.useState(!1),[O,a]=e.useState(t.initiateVerification===!0),p=o(r?.saveStatus?.fetchState),x=o(t.userVerificationStatus.fetchState),f=o(t.otpVerificationStatus?.fetchState),u=o(t.sendOtpStatus.fetchState),E=v.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return e.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&t.initiateVerification===!0&&a(!0)},[r,t,p]),e.useEffect(()=>{x==="In-Progress"&&t.userVerificationStatus.fetchState==="Completed"&&(s(!1),l())},[t.userVerificationStatus]),e.useEffect(()=>{f==="In-Progress"&&t.otpVerificationStatus?.fetchState==="Completed"&&c?.(t.userId??"",t.phone??"",t.otpChallenge??"")},[f,t,c]),e.useEffect(()=>{u==="In-Progress"&&t.sendOtpStatus.fetchState==="Completed"&&(s(!0),a(!1))},[u,t.sendOtpStatus.fetchState]),n.jsx(n.Fragment,{children:C===!0?n.jsx(k,{showHelperText:!i,verifyOtpFetchState:t.otpVerificationStatus.fetchState,phoneNumber:t.phone??"",otpChallenge:t.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>s(!1),onResendOtp:d,onEditButtonClick:()=>{a(!0),s(!1)}}}):O===!0?n.jsx(j,{showHelperText:!i,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:i?E:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:P=>h?.(P)}}):null})};export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as u}from"./index-
|
|
1
|
+
import{j as u}from"./index-DTlzo6Yx.js";import{b as d}from"./vendor-CnQcJ2Lu.js";import{f as k}from"./ACHDetailsPage-B7Osqlyb-BwlnvX_d.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./BankAccountWarningSection-D9R1VhzE-GAcwzATB.js";import"./MagicLinkTitleSection-CjV-_WEQ-BZeg3Eo_.js";import"./BankAccountSection-BJPkV-qV-DnIozyCI.js";const R=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})=>{const{bankAccountCreationState:o,bankNameByRouting:c,bankAccountToCreate:m,fetchBankNameByRoutingStatus:p}=t;return d.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),u.jsx(k,{bankAccountToCreate:m,bankAccountCreationState:o,bankNameByRouting:c,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})};export{R as default};
|
package/dist/assets/{VendorDetailPage-CWcqMMpT-qMwE-rI0.js → VendorDetailPage-Cv-MG9iR-l4dRK0G1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as _,u as Re,X as ne,C as g,
|
|
1
|
+
import{M as _,u as Re,X as ne,C as g,D as be,l as se,c5 as xt,a as yt,gv as Be,gw as Ae,gx as Ee,gy as fe,gz as bt,ab as ft,c3 as wt,j as t,aW as Ct,F as $t,gA as St,gB as ue,q as l,c4 as Dt,a7 as jt,o,bg as S,cg as Tt,ga as we,gC as Lt,c6 as Vt,c7 as kt,c8 as It,gD as Ot,fG as Pt,ce as zt,gE as Ft,gF as Mt,g as M,dp as _t,dn as Ht,cs as Wt,aJ as de,aq as Ue,v as qe,dq as Nt,f2 as Rt,gG as Bt,gH as At,t as Et,gI as Ut,ah as Ye,gJ as qt,Q as Ce,h as Ge}from"./index-DTlzo6Yx.js";import{b as $,n as a,j as Yt}from"./vendor-CnQcJ2Lu.js";import{k as Gt}from"./SubTabSwitcher-Be-6o_mE-CbWpxIAQ.js";import{l as Qt}from"./TransactionList-CvGyadHZ-CKr6j1Ej.js";import{R as Jt}from"./TrendWithTransactions-SmcM2UIp-SwKmDId5.js";import{o as Xt,t as Kt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import{C as Zt}from"./LabeledAddressValueField-BmSVDTMx-CBdRfhaZ.js";import{Y as es}from"./LabeledDropDownFormattedTextField-jrOUW9Ig-BtNHTfAs.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./BoxItem-UCX7eqiN-Bx4T9Ckg.js";import"./commonDimensions-OJhakpB_-Bbp60BrB.js";import"./TrendChart-CtjfgQ9g-DU-bY5qU.js";import"./chartTypes-Df8u7la0-CtDbCz1y.js";import"./toCOABalancesWithID-RJhTPgAt-Cci2ybt-.js";import"./toChartData-K68FB3Iy-nDeLE4ni.js";import"./NoDataChart-DGbfWo33-CtNbg73S.js";import"./InsightsSection-DYyHpcUE-N_KvwWiO.js";import"./NavigationDots-6Q5ZVqKl-C4jKPBGn.js";const ts=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
justify-content: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as S}from"./index-
|
|
1
|
+
import{j as S}from"./index-DTlzo6Yx.js";import{b as C}from"./vendor-CnQcJ2Lu.js";import{y as b}from"./DomesticWireDetailsPage-OI-gqVNE-BqvWfcoc.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./BankAccountSection-BJPkV-qV-DnIozyCI.js";import"./MagicLinkTitleSection-CjV-_WEQ-BZeg3Eo_.js";import"./BankAccountWarningSection-D9R1VhzE-GAcwzATB.js";import"./MailingDetailsSection-CW6ShqHJ-CO_dTd-f.js";import"./LabeledAddressValueField-BmSVDTMx-CBdRfhaZ.js";const V=({vendorViewDetails:r,bankAccountContext:t,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onFetchBankName:d,onAddressClick:c})=>{const{bankAccountCreationState:o,editVendorState:m,newVendorState:p,bankNameByRouting:u,bankAccountToCreate:k,fetchBankNameByRoutingStatus:l}=r,e=Object.assign({},m??p);return C.useEffect(()=>{(t==="vendor"&&o?.fetchState==="Completed"||e?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&a()},[o,e?.saveStatus?.fetchState,a,t]),S.jsx(b,{bankAccountToCreate:k,bankAccountCreationState:o,bankNameByRouting:u,addressToEdit:e?.vendorNewAddressStatus?.addressToCreate,mailingAddress:e?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onAddressClick:c,onFetchBankName:d})};export{V as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as oe,u as ze,M as ne,a as ke,cw as K,gK as de,c3 as Ae,C as b,j as t,aW as Be,Y as Ee,F as Oe,c6 as C,o as s,ca as Re,gD as We,fG as qe,ce as Me,gE as He,gF as Ue,cm as Ke,a7 as Ge,co as
|
|
1
|
+
import{X as oe,u as ze,M as ne,a as ke,cw as K,gK as de,c3 as Ae,C as b,j as t,aW as Be,Y as Ee,F as Oe,c6 as C,o as s,ca as Re,gD as We,fG as qe,ce as Me,gE as He,gF as Ue,cm as Ke,a7 as Ge,co as Ye,cx as Ze,q as c,a6 as Je,bg as F,c1 as Qe,gL as Xe,g as I,eS as _e,ah as et,t as ce,eB as tt,gM as st,gN as lt,gO as M,cy as it}from"./index-DTlzo6Yx.js";import{b as y,n as a}from"./vendor-CnQcJ2Lu.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-jrOUW9Ig-BtNHTfAs.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const te={largeLabelWidth:new b(160,210,230),paddingBottom:new b(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function at(e){const{loadingState:i}=e;return t.jsx(ot,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function ot({googleAPIKey:e,addressToEdit:i,sectionId:o,isDisabled:h,style:R}){const E=oe(),u=ne.getLocalizedStrings().companyPassport,p=te.largeLabelWidth.value(E);return t.jsxs(t.Fragment,{children:[t.jsx(se,{type:"hidden",value:"noAutoFill"}),t.jsx(nt,{style:R,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:h,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(o,"street"),defaultValue:{addressString:i?.street[0]??"",addressValue:i!=null?de(i):void 0},placeholder:M(u.address.street),registerOptions:{required:!0,validate:v=>v!=null?!!v.addressString:!1},autoComplete:"new-password",googleAPIKey:e,addressFormatter:lt},style:{border:"none",width:"100%",outline:"none"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(o,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"city"),defaultValue:i?.city,placeholder:M(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"state"),defaultValue:i?.state,placeholder:M(u.address.state),autoComplete:"new-password",options:{required:!0}}}),t.jsx(se,{readOnly:!0,value:"noAutoFill"}),t.jsx(it,{isDisabled:h,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(o,"country"),placeholder:u.address.countryPlaceholder,defaultValue:K(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(E),width:"100%",outline:"none"},text:{type:"text",name:j(o,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
margin-left: ${s.sp3};
|
|
@@ -33,7 +33,7 @@ import{X as oe,u as ze,M as ne,a as ke,cw as K,gK as de,c3 as Ae,C as b,j as t,a
|
|
|
33
33
|
display: flex;
|
|
34
34
|
justify-content: space-between;
|
|
35
35
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
36
|
-
`,ht=()=>t.jsx(ct,{children:[...Array(1)].map((e,i)=>t.jsxs(ut,{children:[t.jsx(F,{style:{marginBottom:s.sp4},width:120,height:c[4]}),t.jsxs(pt,{children:[[...Array(5)].map((o,h)=>t.jsxs(H,{children:[t.jsx(F,{width:70,height:c[4]}),t.jsx(F,{width:140,height:c[4]})]},h)),t.jsx(H,{children:t.jsx(F,{width:120,height:c[4]})}),t.jsx(gt,{children:[...Array(7)].map((o,h)=>t.jsxs(H,{children:[t.jsx(F,{width:70,height:c[4]}),t.jsx(F,{width:140,height:c[4]})]},h))})]})]},i))}),$={largeLabelWidth:new b(130,200,300),labelMarginLeft:new b(c[3],c[4]),labelMarginTop:new b(c[2],c[3]),labelMarginBottom:new b(c[2],c[3]),containerPaddingLeft:new b(c[3],c[6],c[8]),containerPaddingRight:new b(c[3],c[6],c[8])},mt={zIndex:2,minHeight:62},l="vendor1099FilingSectionId",ue="legalName",pe="email",ge="phone",he="taxClassification",me="tinType",xe="tinValue",xt="street",yt="suite",ft="city",wt="state",bt="country",$t="countryCode",vt="postalCode",jt="secondaryInfo",U=e=>`${e}_form`,D=(e,i)=>`${e}.${i}`,{spendManagement:St,common:r}=ne.getLocalizedStrings(),S=St.billPay.vendorCreation,k=r.labels,le=r.footer,_t=e=>{const i=oe(),o=new AbortController,h=ze(),R=o.signal,{onVendorFiling1099UploadDetailsSave:E,vendorId:u,vendorFiling1099UploadDetailsViewState:p,onSaveChangesToLocalStore:v,vendorFiling1099UploadDetails:L,fetchVendorFetchStatus:G,onAddressEditHandler:ye,goBackToListPage:
|
|
36
|
+
`,ht=()=>t.jsx(ct,{children:[...Array(1)].map((e,i)=>t.jsxs(ut,{children:[t.jsx(F,{style:{marginBottom:s.sp4},width:120,height:c[4]}),t.jsxs(pt,{children:[[...Array(5)].map((o,h)=>t.jsxs(H,{children:[t.jsx(F,{width:70,height:c[4]}),t.jsx(F,{width:140,height:c[4]})]},h)),t.jsx(H,{children:t.jsx(F,{width:120,height:c[4]})}),t.jsx(gt,{children:[...Array(7)].map((o,h)=>t.jsxs(H,{children:[t.jsx(F,{width:70,height:c[4]}),t.jsx(F,{width:140,height:c[4]})]},h))})]})]},i))}),$={largeLabelWidth:new b(130,200,300),labelMarginLeft:new b(c[3],c[4]),labelMarginTop:new b(c[2],c[3]),labelMarginBottom:new b(c[2],c[3]),containerPaddingLeft:new b(c[3],c[6],c[8]),containerPaddingRight:new b(c[3],c[6],c[8])},mt={zIndex:2,minHeight:62},l="vendor1099FilingSectionId",ue="legalName",pe="email",ge="phone",he="taxClassification",me="tinType",xe="tinValue",xt="street",yt="suite",ft="city",wt="state",bt="country",$t="countryCode",vt="postalCode",jt="secondaryInfo",U=e=>`${e}_form`,D=(e,i)=>`${e}.${i}`,{spendManagement:St,common:r}=ne.getLocalizedStrings(),S=St.billPay.vendorCreation,k=r.labels,le=r.footer,_t=e=>{const i=oe(),o=new AbortController,h=ze(),R=o.signal,{onVendorFiling1099UploadDetailsSave:E,vendorId:u,vendorFiling1099UploadDetailsViewState:p,onSaveChangesToLocalStore:v,vendorFiling1099UploadDetails:L,fetchVendorFetchStatus:G,onAddressEditHandler:ye,goBackToListPage:Y,onResetVendorFiling1099FormStatus:fe,googleAPIKey:we}=e,{vendor1099DetailsSaveStatus:T,vendor1099DetailsLocalData:d,w9FormUploadStatus:Z}=p,[J,Q]=y.useState(L.addressStatus?.addressToCreate??{street:[],city:"",state:"",country:"",countryCode:"",postalCode:""}),X=y.useRef(null),{vendorTypeList:W}=L,N=y.useRef(null),z=y.useRef(null),_=y.useRef(!1);y.useEffect(()=>{z.current===null&&d.legalName!=r.strings.empty&&p.vendor1099DetailsAutoFilledValues?.legalName===!0&&(z.current=d.legalName)},[d.legalName]),y.useEffect(()=>{N.current===null&&d.legalName!==r.strings.empty&&(N.current=d.legalName)},[d.legalName]),y.useEffect(()=>{L?.addressStatus?.addressToCreate&&p.vendor1099DetailsAutoFilledValues?.address===!0&&_.current===!1&&(Q(L.addressStatus.addressToCreate),_.current=!0)},[L,p.vendor1099DetailsAutoFilledValues?.address]);const m=ke({mode:"onSubmit",defaultValues:ae(d,W??[],J),values:ae(d,W??[],J)}),{isValid:be}=m.formState,$e=m.handleSubmit(()=>{be&&(ye(m.getValues()),E(u,R))}),{vendor1099DetailsAutoFilledValues:f}=p,ve=()=>f?.tin.type===!0||f?.tin.value===!0||f?.legalName===!0||f?.taxClassification===!0,je=async(x,n)=>{if(x!=null){const g={...n},Ve=g[l].legalName,Pe=g[l].email,Fe=g[l].phone,De=g[l].taxClassification,Ie=g[l].tinType,ee=g[l].tinValue,Te={legalName:Ve??r.strings.empty,vendorId:u,contact:{email:Pe??r.strings.empty,phone:Fe??r.strings.empty,fullName:d.contact?.fullName??r.strings.empty,id:d.contact?.id??r.strings.empty},taxClassification:De.selectedType??r.strings.empty,tin:{type:Ie??null,value:ee??null},tinValue:ee??null};if(x.includes(`${l}.street`)&&n.vendor1099FilingSectionId.street!=null){const{addressValue:P}=n.vendor1099FilingSectionId.street,Ne=m.getValues(`${l}.country`),q=K(P?.country);m.setValue(l,{...n[l],street:n.vendor1099FilingSectionId.street,city:P?.locality??"",state:P?.administrativeAreaLevel1??"",country:q,countryCode:P?.countryCode??"",postalCode:P?.postalCode??"",secondaryInfo:n.vendor1099FilingSectionId.secondaryInfo??"",suite:n.vendor1099FilingSectionId.suite??""}),Ye(m.formState.errors,`${l}.city`)&&P?.locality&&m.trigger(`${l}.city`),Ne.selectedOption!==q.selectedOption&&m.setValue(`${l}.country`,q)}else x==="vendor1099FilingSectionId.country"&&n[l].country.selectedOption!=null&&m.setValue(`${l}.countryCode`,Ze(n[l].country.selectedOption));v(Te)}};y.useEffect(()=>{const x=m.watch((n,{name:g})=>{g!=null&&n!=null&&((g.startsWith(`${l}.street`)||g.startsWith(`${l}.city`)||g.startsWith(`${l}.state`)||g.startsWith(`${l}.country`)||g.startsWith(`${l}.postalCode`))&&n[l]!=null&&Q({street:[n[l].street?.addressString??r.strings.empty,n[l].suite??r.strings.empty,n[l].secondaryInfo??r.strings.empty],city:n[l].city??r.strings.empty,state:n[l].state??r.strings.empty,country:n[l].country?.selectedOption??r.strings.empty,countryCode:n[l].countryCode,postalCode:n[l].postalCode??r.strings.empty}),Ae(()=>je(g,n)))});return()=>{x.unsubscribe()}});const V=$.largeLabelWidth.value(i),Se=T.error?.message??r.strings.empty,Ce=T.error?.title??r.strings.empty,Le=()=>T?.fetchState==="In-Progress"||G?.fetchState==="In-Progress"||Z?.fetchState==="In-Progress",w=G?.fetchState==="In-Progress"||Z?.fetchState==="In-Progress";return y.useEffect(()=>()=>{o.abort(),fe()},[]),t.jsx(Lt,{windowSize:i,children:t.jsxs(Ct,{windowSize:i,children:[t.jsxs(Vt,{windowSize:i,ref:X,children:[t.jsx(Be,{title:(p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current)??r.strings.empty,backgroundColor:h.colors.grey4,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:t.jsx(Ft,{windowSize:i,onClick:Y,"data-testid":Ee("vendor-filling-1099-details-editable-page-close-icon")}),scrollableContent:X,enableTitleOnScroll:!0,scrollThreshold:50,source:"VendorFiling1099EditablePage"}),w===!0?t.jsx(ie,{windowSize:i,isLoading:w,children:t.jsx(ht,{})}):t.jsxs(ie,{windowSize:i,isLoading:w,children:[i==="small"?t.jsx(Dt,{windowSize:i,children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current}):t.jsx(It,{children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current}),T.fetchState==="Error"?t.jsxs(Tt,{children:[t.jsx(At,{}),t.jsxs(Nt,{children:[t.jsx(zt,{children:Ce}),t.jsx(kt,{children:Se})]})]}):null,ve()&&t.jsxs(Ot,{children:[t.jsx(B,{}),t.jsx(Rt,{children:S.vendorDetails.banner})]}),t.jsx(Oe,{...m,children:t.jsx("form",{id:U(l),onSubmit:$e,children:t.jsxs(Pt,{isLoading:w,children:[t.jsx(O,{children:f?.legalName===!0&&!w?t.jsx(B,{}):null}),t.jsx(C,{label:{label:k.legalName,width:V,style:{marginLeft:s.sp4}},style:{width:"auto",borderTopLeftRadius:s.sp2,borderTopRightRadius:s.sp2},text:{type:"text",name:D(l,ue),defaultValue:d.legalName,placeholder:S.vendorDetails.legalNamePlaceHolder,options:{required:!0,validate:x=>x!==r.strings.empty}}}),t.jsx(A,{}),t.jsxs(t.Fragment,{children:[t.jsx(C,{label:{label:k.email,width:V,style:{marginLeft:s.sp4}},style:{width:"auto"},text:{type:"email",name:D(l,pe),defaultValue:d.contact?.email,placeholder:S.vendorDetails.emailPlaceHolder,options:{required:!1}}}),t.jsx(A,{}),t.jsx(Re,{label:{label:k.phone,width:V,style:{marginLeft:s.sp4}},text:{name:D(l,ge),placeholder:S.vendorDetails.phonePlaceHolder,defaultValue:d.contact?.phone,autoComplete:"off",options:{required:!1}},style:{width:"auto"}}),t.jsx(A,{})]}),t.jsxs(Wt,{isLoading:w,children:[t.jsx(O,{children:f?.taxClassification===!0&&!w?t.jsx(B,{}):null}),t.jsxs(re,{children:[t.jsx(Bt,{width:V,windowSize:i,children:k.taxClassification}),t.jsx(Et,{size:i,labelWidth:V,children:t.jsx(We,{name:D(l,he),value:{allTypes:W?.map(x=>({code:x.code,name:x.name,label:x.name}))??[],selectedType:d.taxClassification},placeholderLabel:S.vendorDetails.taxClassificationPlaceHolder})})]})]}),t.jsx(A,{}),t.jsx(O,{children:(f?.tin.type===!0||f?.tin.value===!0)&&!w?t.jsx(B,{}):null}),t.jsx(re,{children:t.jsx(rt,{name:D(l,me),menuPlacement:"auto",style:{height:s.sp6,width:"100%",marginLeft:s.sp4},dropdownStyle:{width:"40%"},defaultValue:{dropDownValue:d.tin?.type??r.strings.empty,dropDownList:[{code:r.texts.ein,label:r.texts.ein.toUpperCase()},{code:r.texts.ssn,label:r.texts.ssn.toUpperCase()}]},registerOptions:{required:!1},label:{width:V},placeholderLabel:S.placeholders.tinType,formattedText:{type:"text",name:D(l,xe),placeholder:S.placeholders.tinValue,format:d.tin?.type===r.texts.ssn?He:Ue,registerOptions:{required:!!d?.tin?.type,pattern:d.tin?.type===r.texts.ssn?qe:Me},style:{width:"100%",height:s.sp6},defaultValue:d.tin?.value??r.strings.empty,maxLength:9,allowLeadingZeros:!0,autoComplete:"new-password",isDisabled:d.tin?.type===null?"disabled":void 0}})}),t.jsx(A,{}),t.jsxs(qt,{children:[t.jsx(O,{children:f?.address===!0&&!w?t.jsx(B,{}):null}),t.jsx(Ke,{label:k.address,style:{marginLeft:s.sp4,marginTop:$.labelMarginTop.value(i),marginBottom:s.sp2}}),t.jsx(at,{googleAPIKey:we,formId:U(l),addressToEdit:L?.addressStatus?.addressToCreate,sectionId:l})]})]})})})]})]}),t.jsx(Ge,{separatorStyle:{marginRight:s.sp4},formId:U(l),cancelBtn:{label:le.cancel,style:{width:"83px"},onClick:Y},primaryBtn:{label:le.save,isLoading:T.fetchState==="In-Progress",style:{width:"83px"},isDisabled:Le()},style:mt})]})})},Ct=a.div`
|
|
37
37
|
display: flex;
|
|
38
38
|
flex-direction: column;
|
|
39
39
|
height: 100%;
|
|
@@ -66,7 +66,7 @@ import{X as oe,u as ze,M as ne,a as ke,cw as K,gK as de,c3 as Ae,C as b,j as t,a
|
|
|
66
66
|
background-color: ${e=>e.theme.colors.grey3};
|
|
67
67
|
min-height: 1px;
|
|
68
68
|
max-height: 1px;
|
|
69
|
-
`,Ft=a(
|
|
69
|
+
`,Ft=a(Je)`
|
|
70
70
|
cursor: pointer;
|
|
71
71
|
color: ${e=>e.theme.colors.hero};
|
|
72
72
|
width: ${s.sp4};
|
|
@@ -75,11 +75,11 @@ import{X as oe,u as ze,M as ne,a as ke,cw as K,gK as de,c3 as Ae,C as b,j as t,a
|
|
|
75
75
|
&:hover {
|
|
76
76
|
color: ${e=>e.theme.colors.primary};
|
|
77
77
|
}
|
|
78
|
-
`,Dt=a(
|
|
78
|
+
`,Dt=a(Qe)`
|
|
79
79
|
color: ${e=>e.theme.colors.primary};
|
|
80
80
|
margin-bottom: ${s.sp0};
|
|
81
81
|
margin-right: ${s.sp3};
|
|
82
|
-
`,It=a(
|
|
82
|
+
`,It=a(Xe)`
|
|
83
83
|
color: ${e=>e.theme.colors.primary};
|
|
84
84
|
margin-bottom: ${s.sp4};
|
|
85
85
|
`,Tt=a.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as ae,
|
|
1
|
+
import{X as ae,V as On,u as mn,a as nt,hy as Pe,c3 as tt,z as Nn,hz as re,hA as ve,hB as fe,hC as be,hD as me,M as je,j as n,hu as ot,F as rt,aW as it,T as st,bO as at,bQ as lt,bR as dt,eY as ct,Y as ie,bf as mt,bL as pt,ao as ut,dj as ht,bT as gt,C as w,e as wt,B as Oe,o as t,aa as In,t as De,a9 as xt,q as c,v as Re,bY as vt,l as zn,dp as Pn,bg as ze,hE as Tn,b$ as ft,bC as bt,d0 as $t,av as Xe,aN as pn,g as B,ee as Dn,fg as St,df as wn,cs as rn,hF as yt,hG as sn,p as jt,bt as Be,c$ as Rt,eq as xn,b5 as Ct,dr as Vt,K as vn,hH as kt,cg as Mt,co as Ot,cp as Nt,ev as It,m as Ln,hI as zt,b2 as se,hJ as fn,gc as Pt,b0 as Tt,b4 as Dt,dq as Lt,r as An,Q as At,eC as _t,ac as dn}from"./index-DTlzo6Yx.js";import{b as f,n as o,j as cn}from"./vendor-CnQcJ2Lu.js";import{r as Ft}from"./mui-C5LQ0bMa.js";import{A as Bt}from"./Menu-LDwLOgxI-DZ0xBJbp.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const _n=({steps:e})=>{const s=ae();return n.jsx(Ut,{windowSize:s,children:e.map((m,d)=>n.jsxs(Et,{children:[n.jsx(qt,{children:d!==e.length-1?d+1:n.jsx(Ht,{})}),n.jsx(Gt,{children:m}),d<e.length-1?n.jsx(Wt,{}):null]},`step_${d}`))})},Et=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
position: relative;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,X as Y,a as he,M as U,c3 as ye,
|
|
1
|
+
import{j as t,X as Y,a as he,M as U,c3 as ye,D as ge,l as G,bO as be,bQ as fe,bR as xe,F as ve,a7 as we,C as p,cw as le,cx as Ce,o as y,as as $e,cg as oe,u as ne,cy as je,cz as J,cm as Q,am as H,c6 as De,cA as Te,q as a,co as Se,Y as ke,g as V,e as Fe,Q as Oe,bt as Ae,v as Le,b5 as ze}from"./index-DTlzo6Yx.js";import{b as I,n as g}from"./vendor-CnQcJ2Lu.js";import{W as We,A as Re}from"./BankAccountWarningSection-D9R1VhzE-GAcwzATB.js";import{T as Ie}from"./MailingDetailsSection-CW6ShqHJ-CO_dTd-f.js";import{S as Pe}from"./CurrencySelectField-DS3dOR3F-DalqX_lS.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-BmSVDTMx-CBdRfhaZ.js";const O={width:new p(343,580,726),height:new p(a[6],a[6]),controlHeight:new p(a[6],a[6]),paddingTopBottom:new p(a[2],a[2]),marginRight:new p(a[2],a[2]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2])},ae={infoLabel:new Oe("extraSmallRegular","smallRegular")};function Ee({isDisabled:e,label:i,currencySelectField:l,style:f,errorInfoLabel:u,isAdditionalInfoLabelLoading:n=!1,showAdditionalLabelTooltip:o=!1,additionalLabelTooltip:w,additionalInfoLabel:D,showAdditionalInfoLabel:k=!0}){const C=Y(),{formState:{errors:b}}=oe(),$=ne(),j=Se(b,l.name),m=()=>{if(n===!0)return t.jsx(He,{children:t.jsx(Fe,{size:"Small",start:!0})});if(k&&D||j){let c=null;return o===!0&&k&&w&&(c=t.jsx(Ae,{placement:C==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Ve,{children:w}),children:t.jsx(Ne,{children:t.jsx(Ue,{})})})),t.jsxs(qe,{size:C,isError:j,hasToolTip:o,isDisabled:e!=null,children:[c,D]})}};return t.jsxs(_e,{size:C,style:f,isDisabled:e!=null,isError:j,"data-testid":ke("labeled-currency-field",l.name),children:[t.jsx(Q,{isDisabled:e,label:i.label,htmlFor:l.name,style:{marginLeft:O.labelMarginLeft.value(C),marginRight:O.labelMarginRight.value(C),marginTop:O.labelMarginTop.value(C),width:i.width??"auto",color:e==="disabled"?$.colors.grey2:$.colors.hero}}),t.jsxs(Be,{labelWidth:i.width,children:[t.jsx(Pe,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,height:O.controlHeight.value(C)}}),j?t.jsx(Me,{windowSize:C,hasError:j,children:u}):null,m()]})]})}const _e=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as l}from"./index-
|
|
1
|
+
import{j as l}from"./index-DTlzo6Yx.js";import{b as B}from"./vendor-CnQcJ2Lu.js";import{f as u}from"./InternationalWireSwiftDetailsPage-D3nyRM06-CLJCmyag.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./BankAccountWarningSection-D9R1VhzE-GAcwzATB.js";import"./MailingDetailsSection-CW6ShqHJ-CO_dTd-f.js";import"./LabeledAddressValueField-BmSVDTMx-CBdRfhaZ.js";import"./MagicLinkTitleSection-CjV-_WEQ-BZeg3Eo_.js";const F=({vendorViewDetails:n,bankAccountContext:o,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onFetchBankNameBySwift:d,onAddressClick:c})=>{const{internationalBankAccountCreateStatus:a,internationalBankAccountToCreate:m,editVendorState:p,newVendorState:S,bankNameBySwift:f,fetchBankNameBySwiftStatus:k}=n,t={...p??S};return B.useEffect(()=>{(o==="vendor"&&a.fetchState==="Completed"||t?.saveStatus?.fetchState==="Completed")&&e()},[a,t?.saveStatus?.fetchState,e,o]),l.jsx(u,{bankAccountToCreate:m,bankAccountCreationState:a,bankNameBySwift:f,addressToEdit:t?.vendorNewAddressStatus?.addressToCreate,mailingAddress:t?.vendorAddress,addressType:"vendor_address",fetchBankNameBySwiftStatus:k,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onAddressClick:c,onFetchBankNameBySwift:d})};export{F as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as ie,u as oe,M as te,C as c,g5 as w,ab as T,j as i,hl as g,hk as m,o as n,Q as re,g as ne,dw as se,v as le,q as a}from"./index-
|
|
1
|
+
import{X as ie,u as oe,M as te,C as c,g5 as w,ab as T,j as i,hl as g,hk as m,o as n,Q as re,g as ne,dw as se,v as le,q as a}from"./index-DTlzo6Yx.js";import{n as l}from"./vendor-CnQcJ2Lu.js";const s={labelWidth:new c(270,340,350),sectionWidth:new c(343,580,726),iconContainerMaxWidthHeight:new c(a[6],a[7]),iconContainerMarginRight:new c(12,a[3]),iconPadding:new c(10,12),rowGap:new c(a[2],a[3]),elementsMarginLeftRight:new c(a[3],a[4]),controlWidth:n.sp6},k={title:new re("standardMedium","largeMedium")},de=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
row-gap: ${e=>s.rowGap.valuePx(e.windowSize)};
|
|
@@ -65,4 +65,4 @@ import{X as ie,u as oe,M as te,C as c,g5 as w,ab as T,j as i,hl as g,hk as m,o a
|
|
|
65
65
|
background-color: ${e=>e.theme.colors.grey5};
|
|
66
66
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
67
67
|
border-radius: ${n.sp2};
|
|
68
|
-
`,z=(e,u)=>`${e}.${u}`;function xe({sectionId:e,vendorAccountMappingSection:u,isAccruedExpensesFeatureEnabled:L,showTitle:I=!0}){const r=ie(),d=oe(),{accruedExpensesAccountHierarchy:
|
|
68
|
+
`,z=(e,u)=>`${e}.${u}`;function xe({sectionId:e,vendorAccountMappingSection:u,isAccruedExpensesFeatureEnabled:L,showTitle:I=!0}){const r=ie(),d=oe(),{accruedExpensesAccountHierarchy:O,accruedExpensesAccountList:_,accruedExpensesRecommendations:M,fixedAssetsAccountHierarchy:B,fixedAssetsAccountList:E,fixedAssetsRecommendations:R,prepaidExpensesAccountHierarchy:W,prepaidExpensesAccountList:C,prepaidExpensesRecommendations:P,selectedAccruedExpensesAccountIds:q,selectedFixedAssetsAccountIds:F,selectedPrepaidExpensesAccountIds:V}=u,t=te.getLocalizedStrings().uncategorizedAccountsMapping,p=s.labelWidth.value(r),H=w(W,P,"Accounts"),D=w(B,R,"Accounts"),G=w(O,M,"Accounts"),J=P[0]?.account?.reason??"",Q=t.tooltip.replace("__based__",J).replace("__account__",t.vendorSection.prepaidExpenseAccount),N=R[0]?.account?.reason??"",X=t.tooltip.replace("__based__",N).replace("__account__",t.vendorSection.fixedAssetsAccount),K=M[0]?.account?.reason??"",U=t.tooltip.replace("__based__",K).replace("__account__",t.vendorSection.accruedExpensesAccount),Y=C.filter(o=>V.includes(o.accountId)??!1),Z=E.filter(o=>F.includes(o.accountId)??!1),ee=_.filter(o=>q.includes(o.accountId)??!1),x={valueContainer:o=>({...o,padding:`2px ${n.sp3}`,overflow:"unset"}),multiValue:o=>({...o,margin:0})},h=d.mode==="light"?new T(d.colors.brandColorJadeLight):new T(d.colors.brandColorJadeDark);return i.jsxs(de,{windowSize:r,children:[I?i.jsx(ae,{windowSize:r,children:t.vendorSection.heading}):null,i.jsxs(ce,{windowSize:r,children:[i.jsxs(f,{windowSize:r,children:[i.jsx(b,{windowSize:r,iconColor:h,isDarkMode:d.mode==="dark",children:i.jsx(y,{})}),i.jsxs(S,{children:[i.jsx($,{windowSize:r,children:t.vendorSection.prepaidExpenseTitle}),i.jsx(v,{children:t.vendorSection.prepaidExpenseSubTitle})]})]}),i.jsx(j,{children:i.jsx(A,{windowSize:r,children:i.jsx(g,{label:{label:t.vendorSection.prepaidExpenselabel,width:p},groupedMultiSelectField:{name:z(e,"prepaidExpensesAccount"),treeViewStructure:!0,groupType:"Accounts",registerOptions:{required:!1},defaultValue:{allOptions:H,selectedOptions:Y.map(o=>o.qboId).filter(o=>o!=null)},placeholder:t.placeholder.accountPlaceholders,style:{borderBottom:`1px solid ${d.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},customStyleConfig:x,tooltip:{text:Q,sticky:!1},valueToId:o=>m(o,C)}})})}),i.jsxs(f,{windowSize:r,children:[i.jsx(b,{windowSize:r,iconColor:h,isDarkMode:d.mode==="dark",children:i.jsx(y,{})}),i.jsxs(S,{children:[i.jsx($,{windowSize:r,children:t.vendorSection.FixedAssetsTitle}),i.jsx(v,{children:t.vendorSection.fixedAssetsSubTitle})]})]}),i.jsx(j,{children:i.jsx(A,{windowSize:r,children:i.jsx(g,{label:{label:t.vendorSection.fixedAssetslabel,width:p},groupedMultiSelectField:{name:z(e,"fixedAssetsAccount"),treeViewStructure:!0,groupType:"Accounts",registerOptions:{required:!1},defaultValue:{allOptions:D,selectedOptions:Z.map(o=>o.qboId).filter(o=>o!=null)},placeholder:t.placeholder.accountPlaceholders,style:{borderBottom:`1px solid ${d.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},customStyleConfig:x,tooltip:{text:X,sticky:!1},valueToId:o=>m(o,E)}})})}),L?i.jsxs(i.Fragment,{children:[i.jsxs(f,{windowSize:r,children:[i.jsx(b,{windowSize:r,iconColor:h,isDarkMode:d.mode==="dark",children:i.jsx(y,{})}),i.jsxs(S,{children:[i.jsx($,{windowSize:r,children:t.vendorSection.AccruedExpensesTitle}),i.jsx(v,{children:t.vendorSection.accruedExpensesSubTitle})]})]}),i.jsx(j,{children:i.jsx(A,{windowSize:r,children:i.jsx(g,{label:{label:t.vendorSection.accruedExpenseslabel,width:p},groupedMultiSelectField:{name:z(e,"accruedExpensesAccount"),treeViewStructure:!0,groupType:"Accounts",registerOptions:{required:!1},defaultValue:{allOptions:G,selectedOptions:ee.map(o=>o.qboId).filter(o=>o!=null)},placeholder:t.placeholder.accountPlaceholders,style:{borderBottom:`1px solid ${d.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},customStyleConfig:x,tooltip:{text:U,sticky:!1},valueToId:o=>m(o,_)}})})})]}):null]})]})}export{xe as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as j,l as B,M as S,j as s,eO as I,eS as D,K as M,r as E,o as n,C as $,Q as L,h as P,a6 as z,c0 as N,g as w,k as A,ee as R,eC as T,q as g}from"./index-
|
|
1
|
+
import{X as j,l as B,M as S,j as s,eO as I,eS as D,K as M,r as E,o as n,C as $,Q as L,h as P,a6 as z,c0 as N,g as w,k as A,ee as R,eC as T,q as g}from"./index-DTlzo6Yx.js";import{n as t}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const e=S.getLocalizedStrings(),h={navBarHeight:new $(62,62,62),navBarPaddingLeft:new $(g[3],g[3],g[8]),navBarPaddingRight:new $(g[3],g[3],g[8]),navBarPaddingTop:new $(12,12,g[3]),navBarPaddingBottom:new $(12,12,19)},O={title:new L("largeMedium","largeSemiBold")},$e=({companyView:r,allUsers:a,onRetryBankAccountConnection:o,onCloseClick:d})=>{const l=j(),C=r!=null?B.getAuditWarningsCount(r):0,x=r?.onboardingInfo?.bankAccountLinked,v=r?.onboardingInfo?.qboLinked,y=r?.onboardingInfo?.identityVerified,k=r?.onboardingInfo?.businessVerified,f=r?.onboardingInfo?.accountingConnectionCreationMode==="zeni_user",u=[];if(x!=null){const i=a.find(p=>p.userId===x.userIds[0]),{errorMessage:c,successMessage:m}=Q(x,f,i);u.push({status:c!=null?"Error":m!=null?"Complete":"Incomplete",userInfo:i,message:c??m??`${e.cockpit.onboarding.header.linkBankAccount} ${e.common.strings.hyphen} ${e.common.incompleteText}`,onClickRetry:o})}if(v!=null){const i=a.find(p=>p.userId===v.userIds[0]),{errorMessage:c,successMessage:m}=q(v,f,i);u.push({status:c!=null?"Error":m!=null?"Complete":"Incomplete",userInfo:i,message:c??m??`${e.cockpit.onboarding.header.connectToQBO} ${e.common.strings.hyphen} ${e.common.incompleteText}`})}if(y!=null){const i=a.find(p=>p.userId===y.userIds[0]),{errorMessage:c,successMessage:m}=F(y,f,i);u.push({status:c!=null?"Error":m!=null?"Complete":"Incomplete",userInfo:i,message:c??m??`${e.cockpit.review.warningsDrawer.kyc} ${e.common.strings.hyphen} ${y.status}`})}if(k!=null){const i=a.find(p=>p.userId===k.userIds[0]),{errorMessage:c,successMessage:m}=G(k,f,i);u.push({status:c!=null?"Error":m!=null?"Complete":"Incomplete",userInfo:i,message:c??m??`${e.cockpit.review.warningsDrawer.kyb} ${e.common.strings.hyphen} ${k.status}`})}return s.jsxs(V,{children:[s.jsx(H,{windowSize:l,children:s.jsx(K,{children:s.jsxs(J,{windowSize:l,children:[s.jsx(U,{windowSize:l,children:r?.name}),s.jsx(se,{onClick:d})]})})}),s.jsxs(X,{children:[s.jsx(_,{children:C>0?s.jsxs(b,{children:[s.jsx(b,{children:I(e.cockpit.review.warningsDrawer.issueFound)}),s.jsx(ie,{children:`${e.common.strings.openingBrace}${C}${e.common.strings.closingBrace}`})]}):s.jsx(b,{children:`${e.common.no}
|
|
2
2
|
${I(e.cockpit.review.warningsDrawer.issueFound)}`})}),u.map((i,c)=>s.jsx(W,{isStepInError:i.status==="Error",children:s.jsxs(Y,{children:[s.jsx(Z,{children:i.status==="Complete"?s.jsx(oe,{}):i.status==="Error"?s.jsx(D,{}):s.jsx(ne,{})}),s.jsxs(ee,{children:[s.jsx(re,{isStepInError:i.status==="Error",children:i.message}),i.status==="Error"?s.jsx(M,{label:e.common.retry,onClick:i.onClickRetry,loading:r?.retryBankAccountConnectionFetchState.fetchState==="In-Progress",variant:"light_transparent",style:{padding:`${n.sp1} ${n.sp3}`,borderRadius:n.sp1},textStyle:{...E.extraSmallMedium.cssObject}}):null]})]})},c))]})]})},Q=(r,a,o)=>{const d=r.error===!0?r.errorDetails!=null?r.errorDetails.summary:e.cockpit.review.errors.bankAccountLinked:null,l=r.completed===!0?o!=null?`${e.cockpit.onboarding.header.linkBankAccount} ${e.common.strings.hyphen} ${a===!0?`${e.common.via} ${e.common.cockpit} `:e.common.strings.empty}${e.common.by} ${o.firstName} ${o.lastName}`:e.cockpit.onboarding.header.linkBankAccount:null;return{errorMessage:d,successMessage:l}},q=(r,a,o)=>{const d=r.error===!0?r.errorDetails!=null?r.errorDetails.summary:e.cockpit.review.errors.qboLinked:null,l=r.completed===!0?o!=null?`${e.cockpit.onboarding.header.connectToQBO} ${e.common.strings.hyphen} ${a===!0?`${e.common.via} ${e.common.cockpit} `:e.common.strings.empty}${e.common.by} ${o.firstName} ${o.lastName}`:`${e.cockpit.onboarding.header.connectToQBO}`:null;return{errorMessage:d,successMessage:l}},F=(r,a,o)=>{const d=r.status==="Error"?o!=null?`${e.cockpit.review.warningsDrawer.kyc} ${e.common.failed.toLocaleLowerCase()} ${e.common.strings.hyphen} ${a===!0?`${e.common.via} ${e.common.cockpit} `:e.common.strings.empty}${e.common.by} ${o.firstName} ${o.lastName}`:`${e.cockpit.review.warningsDrawer.kyc} ${e.common.failed.toLocaleLowerCase()}`:null,l=r.status==="Complete"?o!=null?`${e.cockpit.review.warningsDrawer.kyc} ${e.cockpit.review.warningsDrawer.identity} ${e.common.strings.hyphen} ${a===!0?`${e.common.via} ${e.common.cockpit} `:e.common.strings.empty}${e.common.by} ${o.firstName} ${o.lastName}`:`${e.cockpit.review.warningsDrawer.kyc} ${e.cockpit.review.warningsDrawer.identity}`:null;return{errorMessage:d,successMessage:l}},G=(r,a,o)=>{const d=r.status==="Error"?o!=null?`${e.cockpit.review.warningsDrawer.kyb} ${e.common.failed.toLocaleLowerCase()} ${e.common.strings.hyphen} ${a===!0?`${e.common.via} ${e.common.cockpit} `:e.common.strings.empty}${e.common.by} ${o.firstName} ${o.lastName}`:`${e.cockpit.review.warningsDrawer.kyb} ${e.common.failed.toLocaleLowerCase()}`:null,l=r.status==="Complete"?o!=null?`${e.cockpit.review.warningsDrawer.kyb} ${e.cockpit.review.warningsDrawer.identity} ${e.common.strings.hyphen} ${a===!0?`${e.common.via} ${e.common.cockpit} `:e.common.strings.empty}${e.common.by} ${o.firstName} ${o.lastName}`:`${e.cockpit.review.warningsDrawer.kyb} ${e.cockpit.review.warningsDrawer.identity}`:null;return{errorMessage:d,successMessage:l}},V=t.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Pe,X as
|
|
1
|
+
import{a as Pe,X as H,V as Te,l as T,u as pe,a5 as Be,j as t,M as K,_ as B,bt as L,o,aW as Le,r as z,bO as R,bQ as F,bR as V,F as Ne,cA as Me,g as f,co as He,Y as v,e as ue,v as b,b5 as Ee,bf as Ie,a9 as Ue,C as j,fe as Oe,cO as ae,q as p,gS as We,ay as Re,b7 as Fe,aB as Ve,aA as Ye,b8 as Ge,az as Je,t as _,gT as Xe,aq as qe,ak as Ke,gU as _e,k as Qe,gV as Ze,ee as et,fg as tt,cv as ot,m as at,Q as it,ah as nt}from"./index-DTlzo6Yx.js";import{b as l,n as a}from"./vendor-CnQcJ2Lu.js";import{$ as rt}from"./BoxItem-UCX7eqiN-Bx4T9Ckg.js";import{w as lt}from"./downloadPdf-D02UNVHu-DqpjG06G.js";import{H as ct}from"./DepositAccTransactionItem-BMXQpKVB-DaF1MUuy.js";import{T as st}from"./ZeniAccountNavBarPieces-CjNAr1N9-HkSrs5G-.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./commonDimensions-OJhakpB_-Bbp60BrB.js";const dt=e=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M21.5348 3H2.31522C1.80976 3 1.4 3.44579 1.4 3.99569V19.9353C1.4 20.4852 1.80976 20.931 2.31522 20.931H21.5348C22.0402 20.931 22.45 20.4852 22.45 19.9353V3.99569C22.45 3.44579 22.0402 3 21.5348 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M16 10.8126H19.62",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M16 13.6245H18.28",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M13.8276 15.9677C13.4452 15.3772 12.177 14.948 10.5892 14.3603C10.1412 14.1934 10.2143 13.0237 10.413 12.8053C10.7291 12.463 10.9691 12.0577 11.1174 11.6161C11.2657 11.1744 11.3189 10.7064 11.2735 10.2428C11.3006 9.95383 11.2662 9.66242 11.1723 9.3878C11.0785 9.11317 10.9275 8.86159 10.7292 8.64967C10.5309 8.43776 10.2899 8.27033 10.0222 8.15847C9.75438 8.04661 9.4659 7.99286 9.1758 8.00076C8.8857 7.99286 8.59723 8.04661 8.32945 8.15847C8.06166 8.27033 7.82067 8.43776 7.6224 8.64967C7.42412 8.86159 7.27309 9.11317 7.17927 9.3878C7.08544 9.66242 7.05098 9.95383 7.07814 10.2428C7.03273 10.7064 7.08592 11.1744 7.23421 11.6161C7.38251 12.0577 7.62255 12.463 7.93858 12.8053C8.13728 13.0237 8.21039 14.1934 7.76237 14.3603C6.17647 14.948 4.90644 15.3772 4.52402 15.9677",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),pt=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100vh;
|
|
@@ -8,7 +8,7 @@ import{a as Pe,X as M,y as Te,l as T,u as pe,a5 as Be,j as t,M as K,_ as B,bt as
|
|
|
8
8
|
background-color: ${e=>e.theme.colors.grey5};
|
|
9
9
|
box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
10
10
|
background-color: ${e=>e.theme.colors.grey4};
|
|
11
|
-
`,ie="editNickName-form",G="checkingAccountNickName",ut={tickLabelText:new it("extraSmallRegular","smallRegular")},u={accountDetailHeaderPaddingRight:new j(p[3],p[8]),accountDetailHeaderPaddingBottom:new j(p[3],p[6]),accountDetailHeaderPaddingLeft:new j(p[3],p[8]),accountDetailContentMarginTop:new j(p[5],p[7]),areaChartHeight:new j(114,209),accountDetailHeaderGap:new j(18,100,184),accBtnsGap:new j(0,p[11]),styledNoTransactionIconSize:new j(60,120)},{common:H,spendManagement:ht}=K.getLocalizedStrings(),{zeniAccounts:i}=ht,V=K.getLocalizedStrings().dateFormat,mt=K.getLocalizedStrings().peoplePage,ne=e=>t.jsx(Jt,{children:e}),he=l.memo(({accountHistory:e})=>{const h=M(),n=pe(),[m,$]=l.useState(),w=l.useMemo(()=>e.accountHistoryWithBalance.map(r=>({...r,date:r.date.toISOString()})),[e.accountHistoryWithBalance]),x=l.useCallback(r=>{let d="",c="";return r&&r[0]&&(c=B("0,0[.]00",r[0].payload?.balance?.available),d=T.zeniDate(r[0].payload?.date).format(V.visual.DMMMYYYYFormat)),t.jsxs(Gt,{children:[t.jsx(re,{children:d}),t.jsx(re,{isSublabel:!0,children:c})]})},[]),g=l.useCallback(r=>{const{x:d,y:c}=r,{value:C}=r.payload;let D=!1;e.accountHistoryWithBalance.length>360&&(D=!0);const S=D?T.zeniDate(C).format(V.visual.MMMformat):T.zeniDate(C).format(V.visual.MMMDFormat);return t.jsx(Dt,{translateX:d,translateY:c,children:t.jsx(Lt,{windowSize:h,dy:20,dx:-25,children:S})})},[e.accountHistoryWithBalance.length,h]),k=l.useCallback(({cx:r,cy:d,dataKey:c})=>(c==="balance.available.amount"&&(m?.x!==r||m?.y!==d)&&$({x:r,y:d}),t.jsx(Vt,{cx:r,cy:d,strokeWidth:1,r:p[1]})),[m]),y=l.useMemo(()=>{const r=e.accountHistoryWithBalance.length;return r<=0?0:r>360?Math.floor(r/12):Math.floor(r/7)},[e.accountHistoryWithBalance.length]);return e.fetchState!=="Completed"?null:e.fetchState==="Completed"&&e.accountHistoryWithBalance.length===0?t.jsx(so,{children:t.jsx(po,{children:H.texts.noData})}):t.jsx(It,{children:t.jsx(We,{height:u.areaChartHeight.value(h),width:"99%",children:t.jsxs(Re,{data:w,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(Nt,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Ht,{offset:"0%",stopColor:f.brandColorJade,stopOpacity:1}),t.jsx(Mt,{offset:"100%",stopColor:f.brandColorJade,stopOpacity:.03})]})}),t.jsx(Fe,{vertical:!1,strokeWidth:2,stroke:n.colors.grey3}),t.jsx(Ye,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,reversed:!0,tick:r=>g(r),padding:{right:p[4]},interval:y}),t.jsx(Ge,{tick:!1,axisLine:!1}),t.jsx(Ve,{position:m,content:({payload:r})=>x(r),cursor:{strokeDasharray:"3",stroke:f.brandColorJade}}),t.jsx(Je,{activeDot:k,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:f.brandColorJade,fill:"url(#colorUv)"})]})})})});he.displayName="AccountBalanceGraph";const me=l.memo(({zeniAccountDetail:e,getToolTipContent:h,onAccountDetailClick:n,downloadEndPoint:m,authParams:$,showLoader:w,setShowLoader:x,onViewAllTransactionClick:g,showViewAllTransactions:k})=>{const y=M(),r=l.useMemo(()=>e.accountHistory,[e.accountHistory]);return t.jsxs(t.Fragment,{children:[t.jsxs(wt,{windowSize:y,children:[t.jsx(xt,{getToolTipContent:h,zeniAccountDetail:e}),t.jsxs(zt,{children:[t.jsx(he,{accountHistory:r}),t.jsxs(Et,{windowSize:y,children:[t.jsxs(Rt,{onClick:n,"data-testid":v("view-account-detail-button"),children:[t.jsx(ao,{}),y==="small"?t.jsx(de,{className:"btnText",children:i.zeniAccountDetail.accDetails}):t.jsx(se,{className:"btnText",children:i.zeniAccountDetail.accDetails})]}),t.jsxs(Ft,{"data-testid":v("download-bank-verification-letter"),onClick:()=>lt(`${m}/bank-verification-letter`,`${i.zeniAccountDetail.bankLetterPdf}${e.accountDetail?.accountLast4}.pdf`,$,x),children:[w?t.jsx(ue,{size:"Standard",start:!0}):t.jsx(io,{}),y==="small"?t.jsx(de,{className:"btnText",children:i.zeniAccountDetail.bankLetter}):t.jsx(se,{className:"btnText",children:i.zeniAccountDetail.bankLetter})]})]})]})]}),e.transactionList.length>0?t.jsxs($t,{windowSize:y,children:[t.jsxs(jt,{children:[t.jsx(_t,{children:i.zeniAccountDetail.transactions}),k?t.jsxs(Qt,{onClick:g,"data-testid":v("view-all-account-transactions"),children:[t.jsx(eo,{children:i.zeniAccountDetail.viewAll}),t.jsx(Zt,{})]}):null]}),t.jsx(kt,{children:e.transactionList.map((d,c)=>t.jsx(ct,{data:d,boxType:rt(c,e.transactionList.length)},d.id))})]}):t.jsxs(gt,{children:[t.jsx(yt,{windowSize:y}),t.jsx(ft,{children:i.zeniAccountDetail.noTransactionText})]})]})});me.displayName="AccountDetailScreen";const So=({authParams:e,downloadEndPoint:h,zeniAccountDetail:n,isBillPayEnabled:m,isExpressPayEnabled:$,onViewAllTransactionClick:w,onAccountDetailClick:x,handleMoveMoneyOptionSelection:g,onBackClick:k,onCloseAccountClick:y,onEditNameClick:r,onReloadZeniAccountDetailPage:d})=>{const c=Pe({mode:"all"}),{setFocus:C}=c,[D,S]=l.useState(!1),[E,I]=l.useState(!1),[Q,xe]=l.useState(!1),Z=M(),ee=Te(),te=ee.loggedInUserRoleMap.deposit_accounts_user===!0||T.hasAnyFinOpRole(ee.loggedInUserRoleMap);l.useEffect(()=>{const s=setTimeout(()=>{n.fetchState==="Completed"&&n.accountDetail?.accountBalance.available.amount===0&&!te&&g("transfer",n.accountDetail)},500);return()=>{clearTimeout(s)}},[n.accountDetail?.id,n.fetchState,te]),l.useEffect(()=>{Q===!0&&setTimeout(()=>{xe(!1)},800)},[Q]);const ge=n.transactionList.length>4,U=pe(),[ye,fe]=l.useState(!1),[$e,O]=l.useState(!1),W=n.accountUpdateStatus.editName.fetchState,oe=Be(W),je=s=>{s==="closeAccount"?S(!0):s==="editNickName"?I(!0):s==="payBill"?O(!0):g(s,n.accountDetail)},be={onOkClick:()=>{y?.(),S(!1)},onCancelClick:()=>{S(!1)}},we={onOkClick:()=>{},onCancelClick:()=>{c.reset(),I(!1)}};l.useEffect(()=>{oe==="In-Progress"&&W==="Completed"&&(I(!1),c.reset())},[oe,W,c]),l.useEffect(()=>{E&&C(G)},[E,C]);const ke={pageName:"detailPage",onOptionSelection:je},ve=n.accountDetail?.accountName??"",A=n.accountSummary,Ce=c.handleSubmit(s=>{r?.(s.checkingAccountNickName)}),Se={onOkClick:()=>{g("payBill"),O(!1)},onCancelClick:()=>{O(!1)}},ze=s=>{switch(s){case"totalBalance":return"320px";case"insuredBalance":return"320px";case"totalInterest":return"280px";default:return"320px"}},De=l.useCallback(s=>{let P=null;switch(s){case"insuredBalance":P=t.jsx(t.Fragment,{});break;case"totalInterest":P=t.jsx(co,{children:i.zeniAccountList.yieldTooltip});break;case"totalBalance":P=t.jsxs(ro,{children:[t.jsx(no,{children:i.zeniAccountList.balanceTooltip.base}),t.jsxs(J,{children:[t.jsx(X,{children:i.zeniAccountList.balanceTooltip.balance}),t.jsx(q,{children:B("0,0[.]00",A?.totalBalance.current)})]}),t.jsxs(J,{children:[t.jsx(X,{children:i.zeniAccountList.balanceTooltip.processing}),t.jsx(q,{children:B("0,0[.]00",A?.totalBalance.hold)})]}),t.jsxs(J,{children:[t.jsx(X,{children:i.zeniAccountList.balanceTooltip.available}),t.jsx(q,{children:B("0,0[.]00",A?.totalBalance.available)})]})]});break}return t.jsx(N,{children:t.jsx(L,{style:{textAlign:"left",padding:o.sp1},maxWidth:ze(s),display:"flex",placement:Z==="small"?"bottom":"top",title:P,children:t.jsx(lo,{})})})},[A,Z]),Ae=t.jsx(st,{zeniBankProps:ke,isBillPayEnabled:m,isExpressPayEnabled:$});return t.jsxs(bt,{children:[t.jsx(Le,{title:ve,subTitle:n?.accountDetail?.maskedAccountNumber??"",onBackClick:k,showMenuIcon:!1,backgroundColor:U.colors.grey4,style:{zIndex:3,...z.largeSemiBold.cssObject},rightSideComponent:Ae,source:"ZeniAccountDetailPage"}),D?t.jsx(R,{titleComponent:t.jsx(Y,{children:i.zeniAccountDetail.closeAccountPopUp.title}),descriptionComponent:t.jsx(F,{children:`${i.zeniAccountDetail.closeAccountPopUp.description}${n.accountDetail?.maskedAccountNumber}${H.strings.dot}`}),primaryButtonText:i.zeniAccountDetail.closeAccountPopUp.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:i.zeniAccountDetail.closeAccountPopUp.secondaryButtonText,action:be}):null,$e?t.jsx(R,{titleComponent:t.jsx(Y,{children:i.zeniAccountList.billPayupPopUpInfo.title}),descriptionComponent:t.jsx(F,{children:i.zeniAccountList.billPayupPopUpInfo.description}),primaryButtonText:i.zeniAccountList.billPayupPopUpInfo.primaryButtonText,secondaryButtonText:i.zeniAccountList.billPayupPopUpInfo.secondaryButtonText,action:Se,secondaryButtonWidth:130,primaryButtonWidth:130}):null,E?t.jsx(R,{titleComponent:t.jsx(Y,{children:i.zeniAccountDetail.editNamePopUp.title}),descriptionComponent:t.jsx(F,{children:i.zeniAccountDetail.editNamePopUp.description}),primaryButtonText:i.zeniAccountDetail.editNamePopUp.primaryButtonText,secondaryButtonText:i.zeniAccountDetail.editNamePopUp.secondaryButtonText,formId:ie,action:we,containerStyle:{width:"100%"},isLoading:n.accountUpdateStatus.editName.fetchState==="In-Progress",children:t.jsx(Ne,{...c,children:t.jsx("form",{id:ie,onSubmit:Ce,style:{height:o.sp8,width:"80%",marginBottom:o.sp5},children:t.jsx(He,{type:"text",name:G,defaultValue:n.accountDetail?.accountName,placeholder:n.accountDetail?.accountName??"",style:{display:"flex",flexGrow:1,cursor:"inherit",height:o.sp7,textAlign:"left",width:"100%",background:Me(c.formState.errors,G)===!0?f.importantLight:U.colors.background,border:`1px solid ${U.colors.background}`},registerOptions:{required:!0,validate:s=>!!s}})})})}):null,n.fetchState==="Completed"?t.jsx(me,{authParams:e,downloadEndPoint:h,getToolTipContent:De,onAccountDetailClick:x,onViewAllTransactionClick:w,setShowLoader:fe,showLoader:ye,showViewAllTransactions:ge,zeniAccountDetail:n}):n.fetchState==="Error"?t.jsxs(At,{children:[t.jsx(Pt,{onClick:d,"data-testid":v("account-detail-reload"),children:t.jsx(Bt,{})}),t.jsx(Tt,{children:mt.reloadPage.label})]}):t.jsx(pt,{children:t.jsx(ue,{size:"ExtraLarge",start:!0})})]})},xt=({zeniAccountDetail:e,getToolTipContent:h})=>{const n=M(),[m,$]=l.useState(!1),[,w]=Oe(),[x,g]=l.useState(!1),k=()=>{w(e.accountDetail?.accountNumber??""),g(!0)};return l.useEffect(()=>{x===!0&&setTimeout(()=>{g(!1)},800)},[x]),t.jsxs(vt,{children:[t.jsxs(Ct,{children:[t.jsx(Yt,{children:t.jsxs(le,{children:[ne(i.zeniAccountList.totalAvailableBalance),h("totalBalance")]})}),t.jsx(Kt,{windowSize:n,children:e.accountDetail?.accountBalance.available?t.jsx(t.Fragment,{children:t.jsx(ae,{amount:e.accountDetail?.accountBalance.available,integerStyles:z.h2Regular.cssObject,decimalStyles:z.h5Medium.cssObject})}):null}),m?t.jsxs(ce,{windowSize:n,children:[e.accountDetail?.accountNumber,t.jsx(N,{children:t.jsx(L,{display:"flex",placement:"top",title:i.zeniAccountDetail.hide,enterDelay:600,children:t.jsx(qt,{"data-testid":v("hide-account-number"),onClick:()=>{$(!1)}})})}),t.jsx(N,{children:t.jsx(L,{display:"flex",placement:"right",title:x?H.copyToClipBoard.copied:H.copyToClipBoard.copy,enterDelay:600,children:x===!0?t.jsx(oo,{}):t.jsx(to,{onClick:k,"data-testid":v("copy-account-number")})})})]}):t.jsxs(ce,{windowSize:n,children:[e.accountDetail?.maskedAccountNumber,t.jsx(N,{children:t.jsx(L,{display:"flex",placement:"top",title:i.zeniAccountDetail.show,enterDelay:600,children:t.jsx(Xt,{"data-testid":v("show-account-number"),onClick:()=>{$(!0)}})})})]})]}),t.jsxs(St,{children:[t.jsxs(le,{children:[ne(i.common.totalYieldEarned),h("totalInterest")]}),t.jsxs(Ut,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[t.jsx(ae,{amount:e.accountSummary?.totalInterest.available,integerStyles:z.largeRegular.cssObject,decimalStyles:z.smallRegular.cssObject}),t.jsx(Ot,{}),t.jsx(Wt,{children:`${i.common.currentAverageYield} ${e.accountDetail?.annualPercentageYield}`})]})]})]})},gt=a.div`
|
|
11
|
+
`,ie="editNickName-form",Y="checkingAccountNickName",ut={tickLabelText:new it("extraSmallRegular","smallRegular")},u={accountDetailHeaderPaddingRight:new j(p[3],p[8]),accountDetailHeaderPaddingBottom:new j(p[3],p[6]),accountDetailHeaderPaddingLeft:new j(p[3],p[8]),accountDetailContentMarginTop:new j(p[5],p[7]),areaChartHeight:new j(114,209),accountDetailHeaderGap:new j(18,100,184),accBtnsGap:new j(0,p[11]),styledNoTransactionIconSize:new j(60,120)},{common:M,spendManagement:ht}=K.getLocalizedStrings(),{zeniAccounts:i}=ht,G=K.getLocalizedStrings().dateFormat,mt=K.getLocalizedStrings().peoplePage,ne=e=>t.jsx(Jt,{children:e}),he=l.memo(({accountHistory:e})=>{const h=H(),n=pe(),[m,$]=l.useState(),w=l.useMemo(()=>e.accountHistoryWithBalance.map(r=>({...r,date:r.date.toISOString()})),[e.accountHistoryWithBalance]),x=l.useCallback(r=>{let d="",c="";return r&&r[0]&&(c=B("0,0[.]00",r[0].payload?.balance?.available),d=T.zeniDate(r[0].payload?.date).format(G.visual.DMMMYYYYFormat)),t.jsxs(Yt,{children:[t.jsx(re,{children:d}),t.jsx(re,{isSublabel:!0,children:c})]})},[]),g=l.useCallback(r=>{const{x:d,y:c}=r,{value:C}=r.payload;let D=!1;e.accountHistoryWithBalance.length>360&&(D=!0);const S=D?T.zeniDate(C).format(G.visual.MMMformat):T.zeniDate(C).format(G.visual.MMMDFormat);return t.jsx(Dt,{translateX:d,translateY:c,children:t.jsx(Lt,{windowSize:h,dy:20,dx:-25,children:S})})},[e.accountHistoryWithBalance.length,h]),k=l.useCallback(({cx:r,cy:d,dataKey:c})=>(c==="balance.available.amount"&&(m?.x!==r||m?.y!==d)&&$({x:r,y:d}),t.jsx(Gt,{cx:r,cy:d,strokeWidth:1,r:p[1]})),[m]),y=l.useMemo(()=>{const r=e.accountHistoryWithBalance.length;return r<=0?0:r>360?Math.floor(r/12):Math.floor(r/7)},[e.accountHistoryWithBalance.length]);return e.fetchState!=="Completed"?null:e.fetchState==="Completed"&&e.accountHistoryWithBalance.length===0?t.jsx(so,{children:t.jsx(po,{children:M.texts.noData})}):t.jsx(It,{children:t.jsx(We,{height:u.areaChartHeight.value(h),width:"99%",children:t.jsxs(Re,{data:w,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(Nt,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Mt,{offset:"0%",stopColor:f.brandColorJade,stopOpacity:1}),t.jsx(Ht,{offset:"100%",stopColor:f.brandColorJade,stopOpacity:.03})]})}),t.jsx(Fe,{vertical:!1,strokeWidth:2,stroke:n.colors.grey3}),t.jsx(Ve,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,reversed:!0,tick:r=>g(r),padding:{right:p[4]},interval:y}),t.jsx(Ye,{tick:!1,axisLine:!1}),t.jsx(Ge,{position:m,content:({payload:r})=>x(r),cursor:{strokeDasharray:"3",stroke:f.brandColorJade}}),t.jsx(Je,{activeDot:k,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:f.brandColorJade,fill:"url(#colorUv)"})]})})})});he.displayName="AccountBalanceGraph";const me=l.memo(({zeniAccountDetail:e,getToolTipContent:h,onAccountDetailClick:n,downloadEndPoint:m,authParams:$,showLoader:w,setShowLoader:x,onViewAllTransactionClick:g,showViewAllTransactions:k})=>{const y=H(),r=l.useMemo(()=>e.accountHistory,[e.accountHistory]);return t.jsxs(t.Fragment,{children:[t.jsxs(wt,{windowSize:y,children:[t.jsx(xt,{getToolTipContent:h,zeniAccountDetail:e}),t.jsxs(zt,{children:[t.jsx(he,{accountHistory:r}),t.jsxs(Et,{windowSize:y,children:[t.jsxs(Rt,{onClick:n,"data-testid":v("view-account-detail-button"),children:[t.jsx(ao,{}),y==="small"?t.jsx(de,{className:"btnText",children:i.zeniAccountDetail.accDetails}):t.jsx(se,{className:"btnText",children:i.zeniAccountDetail.accDetails})]}),t.jsxs(Ft,{"data-testid":v("download-bank-verification-letter"),onClick:()=>lt(`${m}/bank-verification-letter`,`${i.zeniAccountDetail.bankLetterPdf}${e.accountDetail?.accountLast4}.pdf`,$,x),children:[w?t.jsx(ue,{size:"Standard",start:!0}):t.jsx(io,{}),y==="small"?t.jsx(de,{className:"btnText",children:i.zeniAccountDetail.bankLetter}):t.jsx(se,{className:"btnText",children:i.zeniAccountDetail.bankLetter})]})]})]})]}),e.transactionList.length>0?t.jsxs($t,{windowSize:y,children:[t.jsxs(jt,{children:[t.jsx(_t,{children:i.zeniAccountDetail.transactions}),k?t.jsxs(Qt,{onClick:g,"data-testid":v("view-all-account-transactions"),children:[t.jsx(eo,{children:i.zeniAccountDetail.viewAll}),t.jsx(Zt,{})]}):null]}),t.jsx(kt,{children:e.transactionList.map((d,c)=>t.jsx(ct,{data:d,boxType:rt(c,e.transactionList.length)},d.id))})]}):t.jsxs(gt,{children:[t.jsx(yt,{windowSize:y}),t.jsx(ft,{children:i.zeniAccountDetail.noTransactionText})]})]})});me.displayName="AccountDetailScreen";const So=({authParams:e,downloadEndPoint:h,zeniAccountDetail:n,isBillPayEnabled:m,isExpressPayEnabled:$,onViewAllTransactionClick:w,onAccountDetailClick:x,handleMoveMoneyOptionSelection:g,onBackClick:k,onCloseAccountClick:y,onEditNameClick:r,onReloadZeniAccountDetailPage:d})=>{const c=Pe({mode:"all"}),{setFocus:C}=c,[D,S]=l.useState(!1),[E,I]=l.useState(!1),[Q,xe]=l.useState(!1),Z=H(),ee=Te(),te=ee.loggedInUserRoleMap.deposit_accounts_user===!0||T.hasAnyFinOpRole(ee.loggedInUserRoleMap);l.useEffect(()=>{const s=setTimeout(()=>{n.fetchState==="Completed"&&n.accountDetail?.accountBalance.available.amount===0&&!te&&g("transfer",n.accountDetail)},500);return()=>{clearTimeout(s)}},[n.accountDetail?.id,n.fetchState,te]),l.useEffect(()=>{Q===!0&&setTimeout(()=>{xe(!1)},800)},[Q]);const ge=n.transactionList.length>4,U=pe(),[ye,fe]=l.useState(!1),[$e,O]=l.useState(!1),W=n.accountUpdateStatus.editName.fetchState,oe=Be(W),je=s=>{s==="closeAccount"?S(!0):s==="editNickName"?I(!0):s==="payBill"?O(!0):g(s,n.accountDetail)},be={onOkClick:()=>{y?.(),S(!1)},onCancelClick:()=>{S(!1)}},we={onOkClick:()=>{},onCancelClick:()=>{c.reset(),I(!1)}};l.useEffect(()=>{oe==="In-Progress"&&W==="Completed"&&(I(!1),c.reset())},[oe,W,c]),l.useEffect(()=>{E&&C(Y)},[E,C]);const ke={pageName:"detailPage",onOptionSelection:je},ve=n.accountDetail?.accountName??"",A=n.accountSummary,Ce=c.handleSubmit(s=>{r?.(s.checkingAccountNickName)}),Se={onOkClick:()=>{g("payBill"),O(!1)},onCancelClick:()=>{O(!1)}},ze=s=>{switch(s){case"totalBalance":return"320px";case"insuredBalance":return"320px";case"totalInterest":return"280px";default:return"320px"}},De=l.useCallback(s=>{let P=null;switch(s){case"insuredBalance":P=t.jsx(t.Fragment,{});break;case"totalInterest":P=t.jsx(co,{children:i.zeniAccountList.yieldTooltip});break;case"totalBalance":P=t.jsxs(ro,{children:[t.jsx(no,{children:i.zeniAccountList.balanceTooltip.base}),t.jsxs(J,{children:[t.jsx(X,{children:i.zeniAccountList.balanceTooltip.balance}),t.jsx(q,{children:B("0,0[.]00",A?.totalBalance.current)})]}),t.jsxs(J,{children:[t.jsx(X,{children:i.zeniAccountList.balanceTooltip.processing}),t.jsx(q,{children:B("0,0[.]00",A?.totalBalance.hold)})]}),t.jsxs(J,{children:[t.jsx(X,{children:i.zeniAccountList.balanceTooltip.available}),t.jsx(q,{children:B("0,0[.]00",A?.totalBalance.available)})]})]});break}return t.jsx(N,{children:t.jsx(L,{style:{textAlign:"left",padding:o.sp1},maxWidth:ze(s),display:"flex",placement:Z==="small"?"bottom":"top",title:P,children:t.jsx(lo,{})})})},[A,Z]),Ae=t.jsx(st,{zeniBankProps:ke,isBillPayEnabled:m,isExpressPayEnabled:$});return t.jsxs(bt,{children:[t.jsx(Le,{title:ve,subTitle:n?.accountDetail?.maskedAccountNumber??"",onBackClick:k,showMenuIcon:!1,backgroundColor:U.colors.grey4,style:{zIndex:3,...z.largeSemiBold.cssObject},rightSideComponent:Ae,source:"ZeniAccountDetailPage"}),D?t.jsx(R,{titleComponent:t.jsx(V,{children:i.zeniAccountDetail.closeAccountPopUp.title}),descriptionComponent:t.jsx(F,{children:`${i.zeniAccountDetail.closeAccountPopUp.description}${n.accountDetail?.maskedAccountNumber}${M.strings.dot}`}),primaryButtonText:i.zeniAccountDetail.closeAccountPopUp.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:i.zeniAccountDetail.closeAccountPopUp.secondaryButtonText,action:be}):null,$e?t.jsx(R,{titleComponent:t.jsx(V,{children:i.zeniAccountList.billPayupPopUpInfo.title}),descriptionComponent:t.jsx(F,{children:i.zeniAccountList.billPayupPopUpInfo.description}),primaryButtonText:i.zeniAccountList.billPayupPopUpInfo.primaryButtonText,secondaryButtonText:i.zeniAccountList.billPayupPopUpInfo.secondaryButtonText,action:Se,secondaryButtonWidth:130,primaryButtonWidth:130}):null,E?t.jsx(R,{titleComponent:t.jsx(V,{children:i.zeniAccountDetail.editNamePopUp.title}),descriptionComponent:t.jsx(F,{children:i.zeniAccountDetail.editNamePopUp.description}),primaryButtonText:i.zeniAccountDetail.editNamePopUp.primaryButtonText,secondaryButtonText:i.zeniAccountDetail.editNamePopUp.secondaryButtonText,formId:ie,action:we,containerStyle:{width:"100%"},isLoading:n.accountUpdateStatus.editName.fetchState==="In-Progress",children:t.jsx(Ne,{...c,children:t.jsx("form",{id:ie,onSubmit:Ce,style:{height:o.sp8,width:"80%",marginBottom:o.sp5},children:t.jsx(Me,{type:"text",name:Y,defaultValue:n.accountDetail?.accountName,placeholder:n.accountDetail?.accountName??"",style:{display:"flex",flexGrow:1,cursor:"inherit",height:o.sp7,textAlign:"left",width:"100%",background:He(c.formState.errors,Y)===!0?f.importantLight:U.colors.background,border:`1px solid ${U.colors.background}`},registerOptions:{required:!0,validate:s=>!!s}})})})}):null,n.fetchState==="Completed"?t.jsx(me,{authParams:e,downloadEndPoint:h,getToolTipContent:De,onAccountDetailClick:x,onViewAllTransactionClick:w,setShowLoader:fe,showLoader:ye,showViewAllTransactions:ge,zeniAccountDetail:n}):n.fetchState==="Error"?t.jsxs(At,{children:[t.jsx(Pt,{onClick:d,"data-testid":v("account-detail-reload"),children:t.jsx(Bt,{})}),t.jsx(Tt,{children:mt.reloadPage.label})]}):t.jsx(pt,{children:t.jsx(ue,{size:"ExtraLarge",start:!0})})]})},xt=({zeniAccountDetail:e,getToolTipContent:h})=>{const n=H(),[m,$]=l.useState(!1),[,w]=Oe(),[x,g]=l.useState(!1),k=()=>{w(e.accountDetail?.accountNumber??""),g(!0)};return l.useEffect(()=>{x===!0&&setTimeout(()=>{g(!1)},800)},[x]),t.jsxs(vt,{children:[t.jsxs(Ct,{children:[t.jsx(Vt,{children:t.jsxs(le,{children:[ne(i.zeniAccountList.totalAvailableBalance),h("totalBalance")]})}),t.jsx(Kt,{windowSize:n,children:e.accountDetail?.accountBalance.available?t.jsx(t.Fragment,{children:t.jsx(ae,{amount:e.accountDetail?.accountBalance.available,integerStyles:z.h2Regular.cssObject,decimalStyles:z.h5Medium.cssObject})}):null}),m?t.jsxs(ce,{windowSize:n,children:[e.accountDetail?.accountNumber,t.jsx(N,{children:t.jsx(L,{display:"flex",placement:"top",title:i.zeniAccountDetail.hide,enterDelay:600,children:t.jsx(qt,{"data-testid":v("hide-account-number"),onClick:()=>{$(!1)}})})}),t.jsx(N,{children:t.jsx(L,{display:"flex",placement:"right",title:x?M.copyToClipBoard.copied:M.copyToClipBoard.copy,enterDelay:600,children:x===!0?t.jsx(oo,{}):t.jsx(to,{onClick:k,"data-testid":v("copy-account-number")})})})]}):t.jsxs(ce,{windowSize:n,children:[e.accountDetail?.maskedAccountNumber,t.jsx(N,{children:t.jsx(L,{display:"flex",placement:"top",title:i.zeniAccountDetail.show,enterDelay:600,children:t.jsx(Xt,{"data-testid":v("show-account-number"),onClick:()=>{$(!0)}})})})]})]}),t.jsxs(St,{children:[t.jsxs(le,{children:[ne(i.common.totalYieldEarned),h("totalInterest")]}),t.jsxs(Ut,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[t.jsx(ae,{amount:e.accountSummary?.totalInterest.available,integerStyles:z.largeRegular.cssObject,decimalStyles:z.smallRegular.cssObject}),t.jsx(Ot,{}),t.jsx(Wt,{children:`${i.common.currentAverageYield} ${e.accountDetail?.annualPercentageYield}`})]})]})]})},gt=a.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
align-items: center;
|
|
@@ -103,7 +103,7 @@ import{a as Pe,X as M,y as Te,l as T,u as pe,a5 as Be,j as t,M as K,_ as B,bt as
|
|
|
103
103
|
`,Lt=a.text`
|
|
104
104
|
fill: ${e=>e.theme.colors.hero};
|
|
105
105
|
${e=>`${ut.tickLabelText.style(e.windowSize)}`};
|
|
106
|
-
`,Nt=a.linearGradient``,
|
|
106
|
+
`,Nt=a.linearGradient``,Mt=a.stop``,Ht=a.stop``,Et=a.div`
|
|
107
107
|
display: flex;
|
|
108
108
|
flex-direction: row;
|
|
109
109
|
gap: ${e=>u.accBtnsGap.valuePx(e.windowSize)};
|
|
@@ -165,10 +165,10 @@ import{a as Pe,X as M,y as Te,l as T,u as pe,a5 as Be,j as t,M as K,_ as B,bt as
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
margin-right: ${o.sp3};
|
|
168
|
-
`,
|
|
168
|
+
`,Vt=a(b)`
|
|
169
169
|
display: flex;
|
|
170
170
|
color: ${e=>e.theme.colors.hero};
|
|
171
|
-
`,
|
|
171
|
+
`,Yt=a.div`
|
|
172
172
|
display: flex;
|
|
173
173
|
align-items: center;
|
|
174
174
|
flex-direction: column;
|
|
@@ -180,7 +180,7 @@ import{a as Pe,X as M,y as Te,l as T,u as pe,a5 as Be,j as t,M as K,_ as B,bt as
|
|
|
180
180
|
border-radius: ${o.sp1};
|
|
181
181
|
padding: ${o.sp0} ${o.sp2};
|
|
182
182
|
background-color: ${f.blackColor};
|
|
183
|
-
`,
|
|
183
|
+
`,Gt=a.circle`
|
|
184
184
|
stroke: ${e=>e.theme.colors.brandColorJade};
|
|
185
185
|
fill: ${e=>e.theme.colors.grey5};
|
|
186
186
|
`,re=a(b)`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as Q,a as Ie,a5 as _e,u as De,aJ as Ee,M as X,a0 as Fe,j as t,bO as W,g as o,F as Ge,o as n,cA as Re,co as Ne,bQ as ne,bR as ie,gP as Oe,_ as G,bt as fe,aW as Ue,r as z,Z as We,t as Ye,k as Ve,bC as Ze,b5 as ye,v as b,
|
|
1
|
+
import{X as Q,a as Ie,a5 as _e,u as De,aJ as Ee,M as X,a0 as Fe,j as t,bO as W,g as o,F as Ge,o as n,cA as Re,co as Ne,bQ as ne,bR as ie,gP as Oe,_ as G,bt as fe,aW as Ue,r as z,Z as We,t as Ye,k as Ve,bC as Ze,b5 as ye,v as b,V as qe,l as Je,cO as F,Y as R,C as j,m as H,f9 as Ke,Q as Qe,h as Xe,n as He,cq as et,ah as tt,fA as nt,q as u,dJ as it,fi as ot,gQ as rt,K as st,fb as at,bf as ct,a9 as lt}from"./index-DTlzo6Yx.js";import{b as g,n as i}from"./vendor-CnQcJ2Lu.js";import{r as dt}from"./auto-transfer-rule-mbafm5D3-D6YoufI_.js";import{o as pt}from"./shield-DOlUxcFf-BCUrujod.js";import{T as ut}from"./ZeniAccountNavBarPieces-CjNAr1N9-HkSrs5G-.js";import{v as mt}from"./ZeniTransferAmountSlider-DPl7porw-Dl84FVK1.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ht=e=>g.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M23.0041 11.8483C23.0373 14.1699 22.335 16.4424 20.9979 18.3405C19.6607 20.2386 17.7572 21.665 15.5599 22.4153C13.3627 23.1656 10.9844 23.2014 8.76551 22.5175C6.54667 21.8337 4.60111 20.4653 3.20741 18.6083C1.81371 16.7513 1.04335 14.5009 1.00664 12.1794C0.969926 9.85784 1.66875 7.58422 3.00303 5.68407C4.33732 3.78392 6.23864 2.3547 8.43475 1.60106C10.6309 0.84741 13.0091 0.807991 15.229 1.48844",stroke:"#757D7E",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M7.17736 14.8498L12.3225 8.44116C12.431 8.30616 12.5835 8.21419 12.7532 8.1815C12.9228 8.14882 13.0985 8.17753 13.2493 8.26255L16.2512 9.95329C16.4047 10.0398 16.5839 10.0678 16.7561 10.0324C16.9283 9.99691 17.0819 9.90029 17.1889 9.76018L21.3745 4.27979",stroke:"#757D7E",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M18.4739 4.60986L21.3623 4.13001L21.845 7.03577",stroke:"#757D7E",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{spendManagement:{treasury:{promoBanner:m,promoPage:oe}}}=X.getLocalizedStrings(),gt=({yieldPercentage:e=4.35,insuredAmount:a=5e5,onGetStartedClick:$,style:C})=>{const s=Q(),v=(c,T)=>Object.entries(T).reduce((M,[L,w])=>M.replace(new RegExp(`__${L}__`,"g"),w),c),P=c=>`$${Intl.NumberFormat("en",{notation:"compact"}).format(c)}`,B=`${e}%`,f=P(a),S=[{icon:t.jsx(At,{}),title:v(m.features.yield,{yieldPercentage:B}),id:"yield"},{icon:t.jsx(zt,{}),title:v(m.features.insured,{insuredAmount:f}),id:"insured"},{icon:t.jsx(Ct,{}),title:m.features.liquidity,showAsterisk:!0,id:"liquidity"},{icon:t.jsx(vt,{}),title:m.features.automation,id:"automation"}];return t.jsxs(xt,{style:C,children:[t.jsx(wt,{}),s!=="small"&&t.jsxs(t.Fragment,{children:[t.jsx($t,{}),t.jsx(ft,{})]}),t.jsx(yt,{windowSize:s,children:s==="small"?t.jsxs(t.Fragment,{children:[t.jsxs(kt,{children:[t.jsx(re,{windowSize:s,children:t.jsx(se,{windowSize:s})}),t.jsx(ae,{children:m.title})]}),t.jsx(ce,{windowSize:s,children:S.map(c=>t.jsxs(le,{windowSize:s,children:[t.jsx(de,{children:c.icon}),t.jsxs(pe,{children:[c.title,c.showAsterisk===!0&&t.jsx(ue,{children:"*"})]})]},c.id))}),t.jsx(jt,{children:t.jsx(me,{children:t.jsx(he,{variant:"primary",label:m.button,onClick:$,size:"small",style:{padding:`${n.sp1} 12px`}})})}),t.jsx(ge,{windowSize:s,children:t.jsxs(xe,{windowSize:s,children:[m.disclaimer.split("__termsLink__")[0],t.jsx(we,{href:oe.zeniTermsOfServiceLink,target:"_blank",rel:"noopener noreferrer",children:m.termsLink}),m.disclaimer.split("__termsLink__")[1]]})})]}):t.jsxs(t.Fragment,{children:[t.jsx(re,{windowSize:s,children:t.jsx(se,{windowSize:s})}),t.jsxs(bt,{windowSize:s,children:[t.jsx(ae,{children:m.title}),t.jsx(ce,{windowSize:s,children:S.map(c=>t.jsxs(le,{windowSize:s,children:[t.jsx(de,{children:c.icon}),t.jsxs(pe,{children:[c.title,c.showAsterisk===!0&&t.jsx(ue,{children:"*"})]})]},c.id))}),t.jsx(ge,{windowSize:s,children:t.jsxs(xe,{windowSize:s,children:[m.disclaimer.split("__termsLink__")[0],t.jsx(we,{href:oe.zeniTermsOfServiceLink,target:"_blank",rel:"noopener noreferrer",children:m.termsLink}),m.disclaimer.split("__termsLink__")[1]]})})]}),t.jsx(me,{children:t.jsx(he,{variant:"primary",label:m.button,onClick:$,size:"small",style:{padding:`${n.sp1} 12px`}})})]})})]})},xt=i.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -7,7 +7,7 @@ import{X as Q,a as Ie,a5 as _e,u as De,aJ as Ee,M as X,a0 as Fe,j as t,bO as W,g
|
|
|
7
7
|
border-radius: ${n.sp2};
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
width: 100%;
|
|
10
|
-
|
|
10
|
+
`,wt=i.div`
|
|
11
11
|
position: absolute;
|
|
12
12
|
top: ${n.sp0};
|
|
13
13
|
left: ${n.sp0};
|
|
@@ -33,7 +33,7 @@ import{X as Q,a as Ie,a5 as _e,u as De,aJ as Ee,M as X,a0 as Fe,j as t,bO as W,g
|
|
|
33
33
|
rgba(199, 116, 25, 0.1) ${n.sp3}
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
`,$t=i.div`
|
|
37
37
|
position: absolute;
|
|
38
38
|
top: ${n.sp0};
|
|
39
39
|
right: ${n.sp0};
|
|
@@ -147,7 +147,7 @@ import{X as Q,a as Ie,a5 as _e,u as De,aJ as Ee,M as X,a0 as Fe,j as t,bO as W,g
|
|
|
147
147
|
color: ${o.heroLight};
|
|
148
148
|
white-space: pre-line;
|
|
149
149
|
text-align: ${e=>e.windowSize==="small"?"center":"left"};
|
|
150
|
-
|
|
150
|
+
`,we=i.a`
|
|
151
151
|
color: ${o.heroLight};
|
|
152
152
|
text-decoration: underline;
|
|
153
153
|
text-decoration-color: ${o.neutralGrey2Light};
|
|
@@ -177,7 +177,7 @@ import{X as Q,a as Ie,a5 as _e,u as De,aJ as Ee,M as X,a0 as Fe,j as t,bO as W,g
|
|
|
177
177
|
width: ${n.sp3};
|
|
178
178
|
height: ${n.sp3};
|
|
179
179
|
color: ${o.brandColorGoldDark};
|
|
180
|
-
`,St=e=>g.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M1.50005 3.41819V11.3868C1.49582 13.9724 2.27853 16.4989 3.74542 18.6344C5.2123 20.77 7.29478 22.4147 9.71941 23.3528L10.8398 23.7848C11.5863 24.0717 12.4137 24.0717 13.1602 23.7848L14.2806 23.3528C16.7052 22.4147 18.7877 20.77 20.2546 18.6344C21.7215 16.4989 22.5042 13.9724 22.4999 11.3868V3.41819C22.5025 3.11029 22.4157 2.80819 22.2499 2.54802C22.0842 2.28785 21.8466 2.08063 21.5655 1.95114C18.5518 0.635546 15.2915 -0.0291648 12 0.000981362C8.70855 -0.0291648 5.44817 0.635546 2.43455 1.95114C2.15343 2.08063 1.91579 2.28785 1.75007 2.54802C1.58435 2.80819 1.49755 3.11029 1.50005 3.41819Z",fill:"#36B37E"}),g.createElement("path",{d:"M16.5194 8.42881L11.3671 13.3387C11.3022 13.4007 11.2254 13.4489 11.1414 13.4802C11.0573 13.5116 10.9677 13.5256 10.8781 13.5212C10.7897 13.517 10.703 13.4951 10.6232 13.4568C10.5434 13.4185 10.4721 13.3646 10.4135 13.2982L8.06814 10.6339",stroke:"#FAFAFA",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),x={bankAccListBottomMargin:new j(u[7],u[6]),containerWidth:new j(96,67),containerTopMargin:new j(u[4],u[6]),BankAccListTopMargin:new j(u[4],u[8]),containerSidePadding:new j(u[3],u[0]),accountRowTopBottomPadding:new j(u[3],u[4]),accountRowBottomMargin:new j(u[3],u[5]),totalInsuredAndYieldContainerTopMargin:new j(u[3],u[0])},Lt={bankAccountName:new Qe("standardRegular","largeMedium")},d=X.getLocalizedStrings(),Y=e=>t.jsx(Ot,{children:e}),Pt=({fetchState:e,onReloadTransactions:a})=>e==="Error"?t.jsxs(an,{children:[t.jsx(cn,{onClick:a,"data-testid":R("zeni-account-list-reload"),children:t.jsx(ln,{})}),t.jsx(dn,{children:d.peoplePage.reloadPage.label})]}):t.jsx(nt,{fetchState:e,styles:{margin:"auto"}}),Bt=({zeniAccountListView:e,zeniAccountsConfigDetail:a,maxInsuredAmountString
|
|
180
|
+
`,St=e=>g.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M1.50005 3.41819V11.3868C1.49582 13.9724 2.27853 16.4989 3.74542 18.6344C5.2123 20.77 7.29478 22.4147 9.71941 23.3528L10.8398 23.7848C11.5863 24.0717 12.4137 24.0717 13.1602 23.7848L14.2806 23.3528C16.7052 22.4147 18.7877 20.77 20.2546 18.6344C21.7215 16.4989 22.5042 13.9724 22.4999 11.3868V3.41819C22.5025 3.11029 22.4157 2.80819 22.2499 2.54802C22.0842 2.28785 21.8466 2.08063 21.5655 1.95114C18.5518 0.635546 15.2915 -0.0291648 12 0.000981362C8.70855 -0.0291648 5.44817 0.635546 2.43455 1.95114C2.15343 2.08063 1.91579 2.28785 1.75007 2.54802C1.58435 2.80819 1.49755 3.11029 1.50005 3.41819Z",fill:"#36B37E"}),g.createElement("path",{d:"M16.5194 8.42881L11.3671 13.3387C11.3022 13.4007 11.2254 13.4489 11.1414 13.4802C11.0573 13.5116 10.9677 13.5256 10.8781 13.5212C10.7897 13.517 10.703 13.4951 10.6232 13.4568C10.5434 13.4185 10.4721 13.3646 10.4135 13.2982L8.06814 10.6339",stroke:"#FAFAFA",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),x={bankAccListBottomMargin:new j(u[7],u[6]),containerWidth:new j(96,67),containerTopMargin:new j(u[4],u[6]),BankAccListTopMargin:new j(u[4],u[8]),containerSidePadding:new j(u[3],u[0]),accountRowTopBottomPadding:new j(u[3],u[4]),accountRowBottomMargin:new j(u[3],u[5]),totalInsuredAndYieldContainerTopMargin:new j(u[3],u[0])},Lt={bankAccountName:new Qe("standardRegular","largeMedium")},d=X.getLocalizedStrings(),Y=e=>t.jsx(Ot,{children:e}),Pt=({fetchState:e,onReloadTransactions:a})=>e==="Error"?t.jsxs(an,{children:[t.jsx(cn,{onClick:a,"data-testid":R("zeni-account-list-reload"),children:t.jsx(ln,{})}),t.jsx(dn,{children:d.peoplePage.reloadPage.label})]}):t.jsx(nt,{fetchState:e,styles:{margin:"auto"}}),Bt=({zeniAccountListView:e,zeniAccountsConfigDetail:a,maxInsuredAmountString:$,analytics:C,onZeniAccountRowClick:s,onReloadTransactions:v,handleAddInternalAccountClick:P,onAddFundClick:B,onTreasuryGetStartedClick:f,treasuryYieldPercentage:S,treasuryInsuredAmount:c,showTreasuryPromo:T})=>{const{depositAccountsSelectorView:M,fetchState:L,summary:w}=e,p=Q(),I=qe(),y=I.loggedInUserRoleMap.deposit_accounts_user===!0||Je.hasAnyFinOpRole(I.loggedInUserRoleMap),_=r=>{C.trackAccountsListPageClicked("Add Funds",r.accountName,"active"),B("transfer",r)},E=r=>{switch(r){case"totalBalance":return"320px";case"insuredBalance":return"320px";case"totalInterest":return"290px";default:return"320px"}},A=r=>{let k=t.jsx(t.Fragment,{});switch(r){case"insuredBalance":k=t.jsx(Z,{style:{width:"300px"},children:d.spendManagement.zeniAccounts.zeniAccountList.insuranceTooltip.replace("__amount__",$)});break;case"totalInterest":k=t.jsx(Z,{children:d.spendManagement.zeniAccounts.zeniAccountList.yieldTooltip});break;case"totalBalance":k=t.jsxs(Z,{style:{paddingTop:"12px",paddingBottom:"12px"},children:[t.jsx(gn,{children:d.spendManagement.zeniAccounts.zeniAccountList.balanceTooltip.base}),t.jsxs(q,{children:[t.jsx(J,{children:d.spendManagement.zeniAccounts.zeniAccountList.balanceTooltip.balance}),t.jsx(K,{children:G("0,0[.]00",w?.totalBalance.current)})]}),t.jsxs(q,{children:[t.jsx(J,{children:d.spendManagement.zeniAccounts.zeniAccountList.balanceTooltip.processing}),t.jsx(K,{children:G("0,0[.]00",w?.totalBalance.hold)})]}),t.jsxs(q,{children:[t.jsx(J,{children:d.spendManagement.zeniAccounts.zeniAccountList.balanceTooltip.available}),t.jsx(K,{children:G("0,0[.]00",w?.totalBalance.available)})]})]});break}return t.jsx(un,{children:t.jsx(fe,{style:{textAlign:"left",padding:n.sp1},maxWidth:E(r),display:"flex",placement:p==="small"?"bottom":"top",title:k,children:r==="insuredBalance"?t.jsx(hn,{}):t.jsx(mn,{})})})},N=r=>t.jsx(Rt,{color:Ke(r)});return t.jsx(Tt,{children:L==="Completed"?t.jsxs(pn,{windowSize:p,children:[t.jsxs(Dt,{windowSize:p,children:[t.jsxs(Nt,{windowSize:p,children:[t.jsxs(V,{children:[Y(d.spendManagement.zeniAccounts.zeniAccountList.totalAvailableBalance),A("totalBalance")]}),t.jsx(F,{amount:w?.totalBalance.available})]}),t.jsxs(Mt,{windowSize:p,children:[t.jsxs(Zt,{children:[t.jsxs(V,{children:[Y(d.spendManagement.zeniAccounts.zeniAccountList.insuredFund),A("insuredBalance")]}),t.jsx(F,{amount:w?.insuredBalance.available,integerStyles:z.largeMedium.cssObject,decimalStyles:z.smallMedium.cssObject}),t.jsx(Yt,{children:d.spendManagement.zeniAccounts.zeniAccountList.insuranceInfo.replace("__amount__",$)})]}),t.jsxs(qt,{children:[t.jsxs(V,{children:[Y(d.spendManagement.zeniAccounts.common.totalYieldEarned),A("totalInterest")]}),t.jsx(F,{amount:w?.totalInterest.available,integerStyles:z.largeMedium.cssObject,decimalStyles:z.smallMedium.cssObject}),t.jsxs(Ut,{children:[d.spendManagement.zeniAccounts.zeniAccountList.currentAverageYield,t.jsx(Wt,{children:a.zeniAccountsConfigDetail.annualPercentageYield})]})]})]})]}),T===!0&&t.jsx(xn,{windowSize:p,children:t.jsx(gt,{yieldPercentage:S,insuredAmount:c,onGetStartedClick:()=>{C.trackAccountsListPageClicked("Move Money"),f?.()}})}),t.jsxs(Gt,{windowSize:p,children:[M.depositAccounts.map((r,k)=>t.jsxs(Jt,{isClickEnabled:!0,windowSize:p,onClick:()=>s?.(r.id,r.accountName),"data-testid":R("deposit-account-clicked",r.id),children:[t.jsxs(Vt,{children:[N(k),t.jsxs(Kt,{children:[t.jsx(Qt,{windowSize:p,children:r.accountName}),t.jsxs(Xt,{windowSize:p,children:[t.jsx(Et,{children:t.jsx(Ht,{children:r.maskedAccountNumber})}),t.jsxs(Ft,{children:[p==="small"?null:t.jsx(en,{}),t.jsx(tn,{windowSize:p,children:d.spendManagement.zeniAccounts.zeniAccountList.active})]})]})]})]}),t.jsxs(nn,{children:[t.jsx(F,{amount:r.accountBalance.available,integerStyles:z.largeMedium.cssObject,decimalStyles:z.smallMedium.cssObject}),y?null:t.jsx(It,{onClick:D=>{D.stopPropagation(),_(r)},"data-testid":R("add-fund",r.id),children:t.jsx(_t,{children:d.spendManagement.zeniAccounts.zeniAccountList.addFundBtnText})})]})]},r.id)),t.jsxs(on,{onClick:P,"data-testid":R("add-new-internal-zeni-account"),children:[t.jsx(rn,{}),t.jsx(sn,{children:d.spendManagement.zeniAccounts.zeniAccountList.addAccountText})]})]})]}):t.jsx(Pt,{fetchState:L,onReloadTransactions:v})})},Tt=i.div`
|
|
181
181
|
display: block;
|
|
182
182
|
height: 100%;
|
|
183
183
|
`,Mt=i.div`
|
|
@@ -387,7 +387,7 @@ import{X as Q,a as Ie,a5 as _e,u as De,aJ as Ee,M as X,a0 as Fe,j as t,bO as W,g
|
|
|
387
387
|
color: ${o.primaryDark};
|
|
388
388
|
`,xn=i.div`
|
|
389
389
|
margin-top: ${n.sp4};
|
|
390
|
-
`,{common
|
|
390
|
+
`,{common:wn,spendManagement:{zeniAccounts:l}}=X.getLocalizedStrings(),$e="checkingAccountCreation-form",Nn=({zeniAccountListView:e,analytics:a,maxInsuredAmount:$,isBillPayEnabled:C,isExpressPayEnabled:s,onBackClick:v,onZeniAccountClick:P,onSettingsClick:B,handleMoveMoneyOptionSelection:f,onReloadTransactions:S,onCreateCheckingClick:c,onClickMenuIcon:T,onTreasuryGetStartedClick:M,showTreasuryPromo:L,treasuryYieldPercentage:w,treasuryInsuredAmount:p})=>{const I=Q(),y=Ie({mode:"all"}),_=e.newCheckingAccount.fetchState,E=_e(_);g.useEffect(()=>{E==="In-Progress"&&_==="Completed"&&(r(!1),D(!0),y.reset())},[E,_,y]);const A=De(),[N,r]=g.useState(!1),[k,D]=g.useState(!1),[ke,O]=g.useState(!1),[je,be]=g.useState(0),[Ae,ze]=g.useState(0),Ce=(h,U)=>{P(h,U)},ve={pageName:"listPage",onOptionSelection:h=>{h==="payBill"?(a.trackAccountsListPageClicked("Pay Someone"),O(!0)):(h==="sendMoney"?a.trackSendMoneyClick():h==="checkDeposit"?a.trackAccountsListPageClicked("Deposit a Check"):h==="transfer"&&a.trackAccountsListPageClicked("Transfer Between Accounts"),f(h))}},Se={onOkClick:()=>{},onCancelClick:()=>{a.trackAccountsListPageClicked("Add Business Account Cancel"),y.reset(),r(!1)}},Le={onOkClick:()=>{const h=e.depositAccountsSelectorView.depositAccounts.find(U=>U.id===e.newCheckingAccount.accountId);a.trackAccountsListPageClicked("Add Business Account Add Funds"),f("transfer",h),D(!1)},onCancelClick:()=>{a.trackAccountsListPageClicked("Add Business Account Not Now"),D(!1)}},Pe={onOkClick:()=>{a.trackAccountsListPageClicked("Proceed on Bills pop up"),f("payBill"),O(!1)},onCancelClick:()=>{a.trackAccountsListPageClicked("Not Now on Bills pop up"),O(!1)}},Be=y.handleSubmit(h=>{a.trackAccountsListPageClicked("Add Business Account Create"),c?.(h.checkingAccountNickName)}),ee=e.zeniAccountsConfig.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Te=ee[ee.length-1].annualPercentageYield.toString(),te=Ee(Fe($),$,wn.currency.currencySymbol).toUpperCase(),Me=t.jsx(ut,{onSettingsClick:B,isBillPayEnabled:C,isExpressPayEnabled:s,zeniBankProps:ve,analytics:a});return t.jsxs($n,{children:[N?t.jsx(W,{titleComponent:t.jsx(ie,{children:l.zeniAccountList.createPopUpInfo.title}),descriptionComponent:t.jsx(ne,{children:l.zeniAccountList.createPopUpInfo.description}),primaryButtonText:l.zeniAccountList.createPopUpInfo.primaryButtonText,isLoading:e.newCheckingAccount.fetchState==="In-Progress",formId:$e,secondaryButtonText:l.zeniAccountList.createPopUpInfo.secondaryButtonText,style:{background:o.overlayLight},action:Se,children:t.jsx(Ge,{...y,children:t.jsx("form",{id:$e,onSubmit:Be,style:{height:n.sp8,width:"80%",marginBottom:n.sp5},children:t.jsx(Re,{type:"text",name:"checkingAccountNickName",placeholder:l.zeniAccountList.createPopUpInfo.placeholder,style:{display:"flex",flexGrow:1,cursor:"inherit",height:n.sp7,textAlign:"left",width:"100%",background:Ne(y.formState.errors,"checkingAccountNickName")===!0?o.importantLight:A.colors.grey5,border:`1px solid ${A.colors.grey2}`},registerOptions:{required:!0,validate:h=>!!h}})})})}):null,k?t.jsx(W,{titleComponent:t.jsx(t.Fragment,{}),descriptionComponent:t.jsx(t.Fragment,{}),primaryButtonText:l.zeniAccountList.addFundsPopUpInfo.primaryButtonText,secondaryButtonText:l.zeniAccountList.addFundsPopUpInfo.secondaryButtonText,action:Le,primaryButtonWidth:130,secondaryButtonWidth:130,containerStyle:{minWidth:352,maxWidth:544,width:"90%"},children:t.jsxs(yn,{children:[t.jsx(Oe,{width:150,height:150,shouldDisplay:!0,animationInLoop:1,styles:{marginBottom:-n.sp4}}),t.jsx(kn,{children:l.zeniAccountList.addFundsPopUpInfo.title}),t.jsx(jn,{children:l.zeniAccountList.addFundsPopUpInfo.description.replace("__rate__",Te).replace("__amount__",te)}),t.jsx(mt,{transferAmount:5e5,currentAccountBalance:0,zeniAccountsConfigDetail:e.zeniAccountsConfig,minStep:.1,setTotalBalance:ze,setYieldEarned:be}),t.jsxs(bn,{children:[t.jsxs(zn,{children:[l.zeniAccountList.transferDrawer.calculator.footerText.annualYieldEarned,t.jsx(An,{children:G("0,0",{amount:je,currencySymbol:"$"})}),t.jsx(fe,{variant:"small-description",maxWidth:"280px",data:l.zeniAccountList.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,display:"flex",placement:"left",children:t.jsx(vn,{})})]}),t.jsxs(Cn,{children:[l.zeniAccountList.transferDrawer.calculator.footerText.for,Intl.NumberFormat("en",{currency:"USD",notation:"compact",style:"currency",minimumFractionDigits:0}).format(Ae)]})]})]})}):null,ke?t.jsx(W,{titleComponent:t.jsx(ie,{children:l.zeniAccountList.billPayupPopUpInfo.title}),descriptionComponent:t.jsx(ne,{children:l.zeniAccountList.billPayupPopUpInfo.description}),primaryButtonText:l.zeniAccountList.billPayupPopUpInfo.primaryButtonText,secondaryButtonText:l.zeniAccountList.billPayupPopUpInfo.secondaryButtonText,action:Pe,primaryButtonWidth:130,secondaryButtonWidth:130}):null,t.jsx(Ue,{title:l.zeniAccountList.tabsById.zeniAccounts,onBackClick:v,showMenuIcon:I==="medium-compact"||I==="small",backgroundColor:A.colors.grey4,style:{zIndex:3,...z.largeSemiBold.cssObject},rightSideComponent:Me,onClickMenuIcon:T,hideSearchBtn:!0,source:"ZeniAccountListViewPage"}),t.jsx(fn,{isLoading:e.fetchState==="In-Progress",children:t.jsx(Bt,{zeniAccountsConfigDetail:e.zeniAccountsConfig,zeniAccountListView:e,onZeniAccountRowClick:Ce,onAddFundClick:f,handleAddInternalAccountClick:()=>{a.trackAccountsListPageClicked("Add Business Account"),r(!0)},analytics:a,onReloadTransactions:S,maxInsuredAmountString:te,onTreasuryGetStartedClick:M,treasuryYieldPercentage:w,treasuryInsuredAmount:p,showTreasuryPromo:L})})]})},$n=i.div`
|
|
391
391
|
display: flex;
|
|
392
392
|
min-height: 100%;
|
|
393
393
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{V as $,fm as P,l as O,M as j,j as a,Y as w,gm as p,gR as u,o as s,go as z}from"./index-DTlzo6Yx.js";import{n as d}from"./vendor-CnQcJ2Lu.js";const o=j.getLocalizedStrings().spendManagement.zeniAccounts,m=[{value:"editNickName",label:o.moveMoney.editNickName},{value:"accountStatement",label:o.moveMoney.accountStatement}],y={value:"payBill",label:o.moveMoney.payBills},g={value:"transfer",label:o.moveMoney.transfer},M={value:"sendMoney",label:o.moveMoney.sendMoney,isNew:!0},v={value:"checkDeposit",label:o.moveMoney.checkDeposit},A=[y,g,M,v],B=[M,g,y,v],D=({zeniBankProps:e,isBillPayEnabled:f,isExpressPayEnabled:h,analytics:x,onSettingsClick:k})=>{const i=$(),l=i.loggedInUserRoleMap.deposit_accounts_user===!0||P(i),b=O.hasBillPayAccess(i.loggedInUserRoleMap),S=m.filter(t=>t.value==="accountStatement"),c=f===!0?A:B,r=h===!0?c:c.filter(t=>t.value!=="sendMoney"),N=b?r:r.filter(t=>t.value!=="payBill");return a.jsxs(C,{isTopAlign:e.pageName==="detailPage",children:[e.pageName==="listPage"&&!l?a.jsx(E,{onClick:k,"data-testid":w("zeni-accounts-settings-button")}):e.pageName==="detailPage"&&a.jsx(p,{entity:"zeni_accounts",onOptionSelection:t=>{const n=u(t);n!=null&&e.onOptionSelection(n)},isMoreOption:!0,options:l?S:m,title:o.moveMoney.title}),l?null:a.jsx(p,{entity:"zeni_accounts",onOptionSelection:t=>{const n=u(t);n!=null&&e.onOptionSelection(n)},isMoreOption:!1,options:N,title:o.moveMoney.title,onMenuOpen:()=>x?.trackAccountsListPageClicked("Move Money")})]})},E=d(z)`
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
min-width: ${s.sp4};
|
|
4
4
|
width: ${s.sp4};
|