@zeniai/web-cockpit-ui 1.14.62-qa → 1.14.63-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-C9GD0hCH-BjgIixGR.js → ACHDetailsPage-QkOAxB4j-BwmsngrU.js} +1 -1
- package/dist/assets/{AIPerformancePage-B0Adp0wg-BENvGSD8.js → AIPerformancePage-POiv6dgZ-BKgnVS14.js} +1 -1
- package/dist/assets/{AccountInfoPage-BSxUquf3-CVXqrpiM.js → AccountInfoPage-DpzAjyd0-CKJdFzLl.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-8V3PDzEc-Co1a4vxf.js → AccountInfoPageContent-BrPhtN53-CjBlOxg5.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-7bhpExx3-DWUCsu-t.js → AccountLockedInfoModal-D1ZHYvRy-C9tYFXcu.js} +4 -4
- package/dist/assets/{AccountReconDetailsDrawerPage-jTH8M9iA-Aoa7lkw7.js → AccountReconDetailsDrawerPage-CubIO376-CtKM65LB.js} +12 -12
- package/dist/assets/{AccountRow-BpoPw0Cq-6rjrYRQx.js → AccountRow-DTdcfEa8-U3MpTECA.js} +12 -12
- package/dist/assets/{AccountsPromoCardStack-gsG5tf8_-DHp17pPu.js → AccountsPromoCardStack-CwDbKaNJ-1hCsTiEX.js} +9 -9
- package/dist/assets/{AddAddressForCardDrawer-CMF3Il-u-Cpb6hsZ-.js → AddAddressForCardDrawer-CniAAcX8-D363vOD8.js} +2 -2
- package/dist/assets/{AddToWalletPage-CpWP7Kpn-CSqVUMRE.js → AddToWalletPage-DOG6ubAY-BGRDDIey.js} +12 -12
- package/dist/assets/{AgingReportsPage-DEQ2pO0Y-yRrwplt0.js → AgingReportsPage-Dbtn1PKG-CbUghZ5Y.js} +5 -5
- package/dist/assets/{AllUserItems-D0SR0Oue-DtcPCB6_.js → AllUserItems-Dth5Uovp-tGFNdHax.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-BA-wKCiF-DQrPP1v5.js → ApAgingDetailPage-C6C-aYG7-Dbv3SH4D.js} +2 -2
- package/dist/assets/{AppBasePage-DFn4TCyI-Cc5DLAg0.js → AppBasePage-CtnXt_EV-BSPuX6dn.js} +6 -6
- package/dist/assets/{AppDrawerContent-CBG4Ybue-ByqvB6J0.js → AppDrawerContent-DnrQdYVp-D2qog1EV.js} +2 -2
- package/dist/assets/{ApprovalRulesSettingsPage-CpjHazzI-Cks7NfZS.js → ApprovalRulesSettingsPage-BEOQl822-CbUsx0mD.js} +4 -4
- package/dist/assets/{ArAgingChart-BDISnDae-CyesneCU.js → ArAgingChart-B9rpCcBM-q8jdb__E.js} +5 -5
- package/dist/assets/{ArAgingDetailPage-Cgqf_0fL-Cq89JxEo.js → ArAgingDetailPage-BKsCQCpu-jNIcx6Tl.js} +1 -1
- package/dist/assets/{AttachmentView-X1k01Vtr-B7_QU-hD.js → AttachmentView-DEE6AWkv-B1086jMd.js} +1 -1
- package/dist/assets/{BankAccountSection-CrxSDsgw-ktUyjJcn.js → BankAccountSection-D8_5fjrd-BCE6WYWF.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-Dpt8yOKi-CoN6e059.js → BankAccountWarningSection-CMrRr8aa-BT7FUFGR.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-Uzhaoi7g-mD1d5FDq.js → BankConnectionsSettingsPage-BUwkPoK_-Baxx5R77.js} +41 -41
- package/dist/assets/{BillDetailPage-DcyikS7i-BdNFKGGl.js → BillDetailPage-DcGxex6B-g3MH8yQi.js} +10 -10
- package/dist/assets/{BillPayApprovalRuleDetailPage-aM8F15Nu-CKOcRZID.js → BillPayApprovalRuleDetailPage-B4OuTcAA-Bkq-QU-5.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-B46FwPVR-D-g0Yiyo.js → BillPayApprovalRulesPage-DaCdVMRx-DKi7a9ar.js} +4 -4
- package/dist/assets/{BillPayPromoPage-DtVzdlsy-C9OmQlVi.js → BillPayPromoPage-DBlGsv9D-BevFRtNT.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-BKdNiQf7-Cc4m50Uo.js → BillPaySetUpPage-A4zcT_mP-BkNiC1Xc.js} +2 -2
- package/dist/assets/{BillingSettingsPage-3AgPTFzN-DilAG0t1.js → BillingSettingsPage-CujTn-BW-DGU5_gJ4.js} +1 -1
- package/dist/assets/BillsBulkReviewDrawerPage-Cs779Xc4-D5R5rhwS.js +1 -0
- package/dist/assets/{BoxItem-Dsoq6QyZ-B-WatMIw.js → BoxItem-imggFWL_-C8e_yZct.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DSkBV_II-D7barBYM.js → BusinessVerificationPage-U_lU2O0k-B63nfdcn.js} +4 -4
- package/dist/assets/{CardNumberSubText-Crk5WDQr-DYNdDxcR.js → CardNumberSubText-Ct0mJOMk-DQXdeyZe.js} +2 -2
- package/dist/assets/{CashbackDetailPage-BZAFRMGW-DHwMsEnN.js → CashbackDetailPage-GMncsgDy-DzCIgTYK.js} +17 -17
- package/dist/assets/ChargeCardDetailPage-BQvjt_rh-Dc8yPFPr.js +1462 -0
- package/dist/assets/{ChargeCardListPage-CIV1XQK1-D6N1OvLo.js → ChargeCardListPage-BJgzJ53p-D4N85pU_.js} +9 -9
- package/dist/assets/{ChargeCardListTable-Dxn8Y17P-YJscyrM8.js → ChargeCardListTable-BD4N2FtO-DrTuKtln.js} +49 -49
- package/dist/assets/{ChargeCardPromoPage-B6yTGsIY-DmZGR1jp.js → ChargeCardPromoPage-BQMfHfHp-DuUPUl6t.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-HHFdpsmJ-D4Ma056g.js → ChargeCardSetupPage-DO1cXZF4-CWlYdj31.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-tuV67f3k-CgpUYkHr.js → ChargeCardStatementsPage-0rBvkIU1-NpKk50PX.js} +5 -5
- package/dist/assets/ChargeCardUtils-Cy5rZlIH-BILI0sIl.js +1 -0
- package/dist/assets/{ChaseOverlay-B2pqFXTT-Df2Ezv28.js → ChaseOverlay-Dqg_bWdn-C8vTlyWM.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-DDXZ3m54-qWYP5ABn.js → CheckDepositDrawerPage-BzzWhLjb-CVED41XL.js} +15 -15
- package/dist/assets/{CollapsableReportTable-BLDh7Osv-DfaYwLVz.js → CollapsableReportTable-CwhNUlX5-CGrdBCh6.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Dg3sn5Sh-Cu3GX4FJ.js → CompanyOfficerDetailsSection-BHXF7g6M-BrZ1ZKbF.js} +1 -1
- package/dist/assets/{CompanyPassportCard-2HnVDVVi-zGfwT0EU.js → CompanyPassportCard-Dd4Modb9-C23aPg6a.js} +6 -6
- package/dist/assets/{CompanyPassportPage-DlGllnaL-QVy4YULg.js → CompanyPassportPage-Bh2JSIAW-rjC4pxXL.js} +20 -20
- package/dist/assets/{CompleteProfile-kFGIESms-Dkk-z6t0.js → CompleteProfile-CAtziP70-DuSPFP1s.js} +1 -1
- package/dist/assets/{ConfettiBurst-D5IgJ5P3-E65_x1se.js → ConfettiBurst-DvSGcRZX-C_PjMyTg.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D8IFFcdA-StbUiZfz.js → CreateOrEditVendorPage-Csorfbun-CNt6xuOL.js} +9 -9
- package/dist/assets/{CreditCardPaymentDrawerPage-Xu0psAw0-D0gZCtxQ.js → CreditCardPaymentDrawerPage-DAw1GyrP-BNs6qoGC.js} +12 -12
- package/dist/assets/{CreditCardPaymentPlgSection-CqvgalYj-CUdjrO8S.js → CreditCardPaymentPlgSection-HikR7OVv-BCZXDr8I.js} +6 -6
- package/dist/assets/{CurrencySelectField-hwgVPqTt-B9olol6q.js → CurrencySelectField-BW71th1E-DHxO3UVa.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CBFhWSJz-D-QIEuJy.js → CustomerOnboardingActivationPage-t4YirGGH-BQcXqlYq.js} +7 -7
- package/dist/assets/CustomerOnboardingContainerPage-BFE2DU3a-C9v_itD5.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B2q2tdnD-Dfe_cett.js → CustomerOnboardingDetailPageSkeleton-CWWXhhJn-DacLmheB.js} +10 -10
- package/dist/assets/{CustomerOnboardingNoStepsPage-BsNq90nq-DjNSGy04.js → CustomerOnboardingNoStepsPage-YdWEMnwL-BhhMIya_.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-BbGV3jtT-Bcwahrb4.js → CustomerOnboardingPage-C-WAF_MK-0e07LkOq.js} +5 -5
- package/dist/assets/{CustomerOnboardingProductSuitePage-R2PJEOqZ-BTVhd0Re.js → CustomerOnboardingProductSuitePage-CxwXw5lA-8eL0zyfM.js} +10 -10
- package/dist/assets/{Dashboard-Cw4u8_9e-DbBlW7ig.js → Dashboard-Cp0UY0M3-DrmBKQin.js} +1 -1
- package/dist/assets/{DashboardReportPage-ls_MMfAh-Cmzgt21g.js → DashboardReportPage-Bsr_1Vfu-CrZaa5CE.js} +6 -6
- package/dist/assets/{DashboardSidebarBackgroundAnimation-C_9jGJQn-CW-EldD9.js → DashboardSidebarBackgroundAnimation-BvgNiAXF-CXiqzdPm.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BLgpyexV-DDsSN6D0.js → DepositAccTransactionItem-Cm5lhc_H-Db7mfK10.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-r4UVSUOl-WIgqF2oB.js → DepositAccTransactionListPage-CHwS-_Nr-DFBxFwkp.js} +3 -3
- package/dist/assets/{DomesticWireDetailsPage-BSXsHwf5-CyInh1Li.js → DomesticWireDetailsPage-mqJgiAC--4FLLq-KS.js} +1 -1
- package/dist/assets/{DownloadOverlay-DKpj3Vwl-jr69kEjZ.js → DownloadOverlay-DwPR_SsY-EUTGOsKd.js} +21 -21
- package/dist/assets/{DrawerPage-Cxz5I3Mb-CqHagX_L.js → DrawerPage-CR2L2ry3-DOZs2EHb.js} +14 -14
- package/dist/assets/{EditPeoplePage-Dbsa013z-BNUYit4n.js → EditPeoplePage-DiNxeKXK-BiaRAv0O.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-Clpj3Hjz-CVKUzeEp.js → EditReimbursementDetailPage-5TJ4Spw1-CpwzkfQj.js} +64 -64
- package/dist/assets/{EntityDetailPage-C73BtWIp-D8wpNNd0.js → EntityDetailPage-CYDIH-NA-wQQfd0jW.js} +3 -3
- package/dist/assets/{EntitySummarySection-BQA0g-pF-CbGAmbu8.js → EntitySummarySection-Cv7t21-t-DI0hIJYP.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-BxEr0k8F-BHqR9wAC.js → ExpenseAutomationOverviewPage-Cwl9dV2--DfcmKBVV.js} +17 -17
- package/dist/assets/{ExpenseAutomationPage-BS4M9nkW-ufxTsQbf.js → ExpenseAutomationPage-LMBRJxAv-Vn9lo85n.js} +26 -26
- package/dist/assets/{ExpressPayPage-Buxb2M1i-B9fAQlVA.js → ExpressPayPage-CCF0jSlI-C7_sWp9b.js} +6 -6
- package/dist/assets/{FeaturePreviewPage-ClfFYnHb--gXnRz9K.js → FeaturePreviewPage-POKsqSnu-BhWwdsL7.js} +2 -2
- package/dist/assets/{FollowStepsSection-CkQ-g4YK-dr6FAmOd.js → FollowStepsSection-BZdlZelr-Dgb2aUZZ.js} +21 -21
- package/dist/assets/{GlobalReviewListPage-C_DbsHsA-C6phfeex.js → GlobalReviewListPage-BnmMh-Bc-CYAA0kUn.js} +13 -13
- package/dist/assets/{HelpButton-B0ZBXPeh-BorgPtfn.js → HelpButton-Cp2LXxyy-C5Y06Y1n.js} +4 -4
- package/dist/assets/{InformationCardStack-DYdCt7zr-r9qdYJzs.js → InformationCardStack-CiYqiW7_-CbY8PLVD.js} +4 -4
- package/dist/assets/{InsightsCardStack-BSHQznep-BMkYmRhd.js → InsightsCardStack-BnVrehfR-CN-oMur2.js} +2 -2
- package/dist/assets/{InsightsSection-C37BKIiK-RNlgGAPQ.js → InsightsSection-BpVW6ov6-CBRdcxmz.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-DHAdlHrq-CMWIwf7T.js → IntegrationsSettingsPage-CaAahFPb-BYVW6C7U.js} +8 -8
- package/dist/assets/{InternationalWireSwiftDetailsPage-B64WNt28-uVg2-6eP.js → InternationalWireSwiftDetailsPage-DcwbldkC-BB32EMRa.js} +8 -8
- package/dist/assets/{InternationalWireVerificationPage-D7ttGovC-D_Anpl8k.js → InternationalWireVerificationPage-7XDbU2GY-Dyfkxo3B.js} +7 -7
- package/dist/assets/{InviteFormPage-BhbGM4dC-C9bKqONR.js → InviteFormPage-Dgv7jdgF-DVviW_Nt.js} +1 -1
- package/dist/assets/{InvitePageListView-CyRlLv60-B6D8YcCC.js → InvitePageListView-DlpINjRJ-BMeTuOsJ.js} +11 -11
- package/dist/assets/InvitePeoplePage-0YsY4Il7-B0pE52_Y.js +12 -0
- package/dist/assets/{InvoiceUploadSection-BPPgbS-r-BHrBDY3d.js → InvoiceUploadSection-DzzjJVfz-KKaBZftU.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-D_qQkkfo-CSsCg8Db.js → IssueChargeCardPage-BeB9egJS-Buw9rvK5.js} +20 -20
- package/dist/assets/{LabeledAddressValue-EshVNGGW-Cb2uc0dZ.js → LabeledAddressValue-D6advpnC-6YH6AS3A.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-kgieouBM-DzNGhdp0.js → LabeledAddressValueField-DRBoA2eb-CWryzMa2.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-CWABc6OK-ClMxBsh8.js → LabeledControlledCheckBoxField-Bu2WHgAQ-BgnuqupP.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B5o1KUJj-BE5hL6KZ.js → LabeledCreatableSingleSelectField-DcdF286I-C7Y6s3yv.js} +7 -7
- package/dist/assets/{LabeledDocumentField-BrXpwWfM-CV_EVAk8.js → LabeledDocumentField-B25RLa6I-jFD7YVyX.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-Cepl3y9a-BvaaA7qv.js → LabeledDropDownFormattedTextField-DoK5Zfc1-HbMH9wCe.js} +1 -1
- package/dist/assets/{LabeledText-BmFLymPb-D54qw5X_.js → LabeledText-depbwNsM-DXrsYHkA.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CBbnTiwl-DEzr-9kh.js → LabeledUserSingleSelectWithSubtitlesField-BURpXN_N-Xj7wxd7w.js} +8 -8
- package/dist/assets/{LabeledZeniRolesDropDownField-Da9mc-0B-C30aMHy1.js → LabeledZeniRolesDropDownField-TbyaA8M3-DTROc_uU.js} +7 -7
- package/dist/assets/{LinkJETransactionPage-DIhsx2g--Cp1GItTZ.js → LinkJETransactionPage-BITHs1CJ-Y1_ePi-m.js} +7 -7
- package/dist/assets/{LockCardPage-BA4Lj9Iy-DqX49N3M.js → LockCardPage-DPBKHSos-D1Lau_ZJ.js} +15 -15
- package/dist/assets/{LowBalancePopup-B1pTBmAF-DMsL8GAq.js → LowBalancePopup-D2G3wpXv-BCydjVKG.js} +3 -3
- package/dist/assets/{MagicLinkACHDetailsPage-BxzbJBWO-Wf8wA2-U.js → MagicLinkACHDetailsPage-Be7GMhBd-D3Y_9hTy.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DB2tBUoV-BR3Unx7y.js → MagicLinkDomesticWireDetailsPage-C9d2Ea6m-DiWMiwF8.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-0B5pD_Iw-BHMic-Rc.js → MagicLinkInternationalWireDetailsPage-B2M9WztX-B6F5ppQ2.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-3I1CRYrj-Ca4cu0D0.js → MagicLinkSuccessPage-DPb0UoGh-y5M5nnWg.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BKgwdBLy-BT7ZZklR.js → MagicLinkTitleSection-Cc-MU2bJ-DSi2szeX.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BwEd_J6R-DkUc8Lj3.js → MailingDetailsSection-8mj7Lslp--SKJjx0D.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-BpRpGSe6-DG2NWgbm.js → MeetingCalenderPopup-Be-tan9_-CK9Gr3Pd.js} +1 -1
- package/dist/assets/{Menu-De_gaVnj-BIvr4lYg.js → Menu-ndvXF6cX-B4y3KuMr.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-lChXBDCb-DU5DVhxi.js → MyBankConnectionsSettingsPage-DuZFVLYx-VAbH3B5M.js} +4 -4
- package/dist/assets/{MyPendingActivationChargeCardListPage-D3di8BeS-DKJC-Hoj.js → MyPendingActivationChargeCardListPage-DDIlU_fs-C-bYuxLR.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-CYI4yK6I-lkqzLNrj.js → MyProfileSettingsPage-CccRK9mD-BRFADFUO.js} +3 -3
- package/dist/assets/{NavBarWithPicker-DcELUvq0-C5N2yjZ3.js → NavBarWithPicker-D_MqRubB-D8dMZBv7.js} +6 -6
- package/dist/assets/{NavigationArrow-W1nVj2KC-CB3-WbW2.js → NavigationArrow-CfMVfLD8-BQnWEdPn.js} +1 -1
- package/dist/assets/{NavigationDots-BKVFhe2Y-BXA4iaa-.js → NavigationDots-E2eEHB86-BK4Og9YA.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DRrjJgZt-B35zjD-s.js → NewGlobalMerchantPage-vXrz_DRg-Wc9088Ea.js} +7 -7
- package/dist/assets/{NoDataChart-BzSCComh-TCsmvHP1.js → NoDataChart-CpocQ1Pa-ChFzAJ2R.js} +1 -1
- package/dist/assets/{NoDataTable-CGWMbvak-D6mzGtG9.js → NoDataTable-937mkn0a-D0ksTITz.js} +2 -2
- package/dist/assets/{NotFoundPage-DfRFngFV-Cvi4-w7R.js → NotFoundPage-BmxF81mT-B9r6velH.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BTJH62-O-BjEAiv3V.js → NotificationSettingsPage-DyOyHW6d-DehMDImE.js} +20 -20
- package/dist/assets/{NotificationsListConfig-DPutUxp3-B-f9mabS.js → NotificationsListConfig-DVs7cr0d-wmSn6l3s.js} +1 -1
- package/dist/assets/{NotificationsPage-xu6A1hVF-PuoNi3-5.js → NotificationsPage-ntuZjRm--CaQvtRPb.js} +24 -24
- package/dist/assets/{OpExByVendorPage-BeO7iMry-ChO0CL0F.js → OpExByVendorPage-1MOdxG9V-BhrPpCQQ.js} +5 -5
- package/dist/assets/{OverlayContainerPage-CU1AAMcq-C97TuWW_.js → OverlayContainerPage-CU1AAMcq-lFQCSe-G.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-1qSy3_Ke-BkoKktpJ.js → PandLWithForecastPage-n4fiElGl-BTwNmE3c.js} +8 -8
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DnObHdjD-Dxj4lh2G.js → PaymentAccountSetupBillingAddressSection-CXcwA0ON-KeSy0gEv.js} +8 -8
- package/dist/assets/{PeoplePage-CPqz8R9j-B70ykgrs.js → PeoplePage-BvZkMpjW-D7ElTICV.js} +13 -13
- package/dist/assets/{PortfolioAllocationFormPage-C9ZM9oUf-DJFvzQ8r.js → PortfolioAllocationFormPage-B7AKufjq-BCZV66E3.js} +3 -3
- package/dist/assets/{PortfolioDetails-BJBNPfcI-BtgJ2hbs.js → PortfolioDetails-C85yA52O-BcnUojwW.js} +7 -7
- package/dist/assets/{ProductsCarousel-Ctx00P5D-BTEQtLvG.js → ProductsCarousel-ixHCR9AW-BHD947gD.js} +4 -4
- package/dist/assets/{PromoBaseCards-BGYdfmx6-Dtat0fyc.js → PromoBaseCards-DiefKKcS-CVepNaw-.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-B9yKv9hq-DoLz2hIj.js → QBOConnectionDialog-DV-xC7Yc-6uoxl-nC.js} +1 -1
- package/dist/assets/{QBOSetupSection-CTMSCXwv-CxubTHdL.js → QBOSetupSection-CI8cHWjq-CNHezBrT.js} +8 -8
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BtZUsK7H-Dzk_bMVd.js → ReimbursementApprovalRuleDetailPage-CqnCqZ5F-MbrRP60p.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DNBHPoIZ-BlN6Jytr.js → ReimbursementApprovalRulesPage-DxoNMA62-DOLuIxNO.js} +2 -2
- package/dist/assets/{ReimbursementDetailPage-BxZ5ijHe-zurm2_Gr.js → ReimbursementDetailPage-CTvPAxMB-BlP7rQJ5.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-D284EkRZ-BcIIXtzk.js → ReimbursementPromoPage-DcxPNTHd-asHPfKWE.js} +9 -9
- package/dist/assets/{ReimbursementSetUpPage-BzR91_eW-CldLpq0B.js → ReimbursementSetUpPage-SQo-xrwo-BuAAGp_P.js} +7 -7
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BMo9fFp7-CeRLlDSr.js → ReimbursementsBulkReviewDrawerPage-y4v-8gQs-b-mXMP5z.js} +1 -1
- package/dist/assets/{ReloadCard-CGUNX_x4-Dbmvt1Tw.js → ReloadCard-CWZU9IDv-lCmqRueL.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-BVAek1Ui-C_slHbQ8.js → ReportTableViewSelector-t3pgCiJb-DU7QbDSE.js} +5 -5
- package/dist/assets/{ReportsPage-BzKbMWV4-nYQmduZj.js → ReportsPage-D82gQH-e-Ckp9VR2p.js} +1 -1
- package/dist/assets/{RevenueChart-CPUrVR7y-BAuj7ArI.js → RevenueChart-BMgI2BHK-I-njStGG.js} +13 -13
- package/dist/assets/{ReviewDetailsPage-B74yrCe2-VCXhCYb5.js → ReviewDetailsPage-Dc7dY-VA-CxSy8KVL.js} +3 -3
- package/dist/assets/{ReviewOverlay-DQvXSDYM-DyF1UXZO.js → ReviewOverlay-Bra2W5Jg-C_PWInnU.js} +4 -4
- package/dist/assets/{RoleWithToolTip-MwI_BmVq-Ds1A2gyK.js → RoleWithToolTip-DJ15AsI3-p10xCSND.js} +2 -2
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CbkRYKjG-CqEHYps-.js → ScheduleDetailsFixedAssetsPage-DoH2eyLG-BrozO2ME.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CCRspH3Y-CPpcmXd0.js → ScheduleDetailsPage-BM1Paa1W-C0ySlnA2.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-55zYXNwF-DUs0PlZE.js → ScheduleSequenceTable-C8UB3y1y-CNI-a_wl.js} +7 -7
- package/dist/assets/{ScreenRoutes-Ba12Q0HX.js → ScreenRoutes-_3xGjUU-.js} +41 -41
- package/dist/assets/{SetUpAccountSection-IgQjKWEr-Bxp6vD4c.js → SetUpAccountSection-BGdUkQz3-D6CAjYv7.js} +7 -7
- package/dist/assets/{SetUpDefaultSection-shC3qOy6-C49ph3xE.js → SetUpDefaultSection-C4NnRO65-C0fyZc92.js} +10 -10
- package/dist/assets/{SignIn-CZGmLYjH-DHcDyA10.js → SignIn-BrHA4sLj-DDyEN7b5.js} +1 -1
- package/dist/assets/SignInScreen-Cx7qc3RP.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-BhTnQtma-CCGqdAUI.js → SpendManagementListViewPage-Dqb0zspN-DreMX5hh.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage-DpnIM6Nc-1ZBcChPe.js → SpendManagementPerTabPage-D5xIpojr-P0_AnHoz.js} +14 -14
- package/dist/assets/{SpendManagementSection-Hjvwgkt0-D6Yvpvz4.js → SpendManagementSection-C2iof2aM-Bp9C8eeM.js} +7 -7
- package/dist/assets/{SpendMgmtSetupAccountSection-CAWyEGGM-D_Y5M2MY.js → SpendMgmtSetupAccountSection-Dz3vQC2g-P6jfr6Bz.js} +6 -6
- package/dist/assets/{StatementItem-D8v_Laju-B8GfRoNo.js → StatementItem-BOgmKBTq-DcvmbOpL.js} +5 -5
- package/dist/assets/{StatementsPage-CEw-9UyR-BcqGoaDU.js → StatementsPage-ClMtBDGf-DWR5BFTu.js} +4 -4
- package/dist/assets/{StatusSwitcher-DoSCydJG-CoBpz-TS.js → StatusSwitcher-QwlvHg3_-DRNWj6rt.js} +2 -2
- package/dist/assets/{SubTabSwitcher-Ct1DqfgC-Bibz1hGv.js → SubTabSwitcher-CiJ1FPk5-CEwKyb-x.js} +1 -1
- package/dist/assets/{SummaryCard-CHUbuF_0-CaC0zRzW.js → SummaryCard-D1B_1H2X-Lh7q95p7.js} +1 -1
- package/dist/assets/{TaskManagementPage-Ddox5Vwh-D5D4JTV5.js → TaskManagementPage-DibwJCOk-BF0_AhRU.js} +14 -14
- package/dist/assets/{TimeRangeSwitcher-CiOSsTU--CLsRcOaL.js → TimeRangeSwitcher-Ci3SxLOE-anbVhnvw.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-D1k1Zf_U-DTp5-FTG.js → TimeframeSwitcher-DSRKJTq1-BG9pQPgY.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DXbaoDe6-yq3iZa4P.js → TimeframeSwitcherWithToggle-D_BNOfdQ-BKTbCmic.js} +1 -1
- package/dist/assets/{TopExCard-D4ZDqXZg--brQ_iDE.js → TopExCard-C5622MiP-2KEQHijQ.js} +4 -4
- package/dist/assets/{TopExDetailPage-BdPAcKwH-BWvPRR7r.js → TopExDetailPage-qOhQ-KAG-fVnbyWbs.js} +6 -6
- package/dist/assets/{TransactionDetailPage-BcjGxHy8-CFPVJudJ.js → TransactionDetailPage-DaCUZuc0-DAUodm_m.js} +13 -13
- package/dist/assets/{TransactionList-BSuMEtB3-CoYwx3Sx.js → TransactionList-CzdU-NQx-D6gdr6x7.js} +6 -6
- package/dist/assets/{TransactionListBig-MY_ZxyR3-BlvU2xVi.js → TransactionListBig-Bq7XI_xx-DjK27aH5.js} +11 -11
- package/dist/assets/{TransactionListPage-CWGrWDjK-1Jg_-UFD.js → TransactionListPage-CZDewehT-BcmO71OJ.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-DDNK9KrI-navYrc-G.js → TransactionVendorDetailPage-Bf5UUIC6-DQ0SU60H.js} +3 -3
- package/dist/assets/{TransferDrawerPage-vK0YoMro-D8CyUH8N.js → TransferDrawerPage-yQE7GKl_-BiU7RlMv.js} +17 -17
- package/dist/assets/{TreasuryOverviewPage-CQsUti1c-Ba68New5.js → TreasuryOverviewPage-CisB53k8-CkomXNIa.js} +20 -20
- package/dist/assets/{TreasuryPromoPage-Bp72hKEs-NvukScyd.js → TreasuryPromoPage-BfISVj15-BKUZCqqQ.js} +11 -11
- package/dist/assets/{TreasurySetupPage-BUKsU3nh-kC1qSXYk.js → TreasurySetupPage-SN-3mAFw-C_4PPIWf.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-Cryv1PNX-DcPIDQHV.js → TreasuryStatementsPage-DGyug1wv-CZKI-qyS.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-BMYTdYa5-Dj8UaOnF.js → TreasuryTaxLetterPage-BRvcOhJZ-BeVUPN4i.js} +5 -5
- package/dist/assets/{TreasuryTransferOrReviewPage-B9VwyDJa-CRkrhgNd.js → TreasuryTransferOrReviewPage-H5ohs_5r-DHIAJoBr.js} +30 -30
- package/dist/assets/{TrendChart-CqYeWLeV-htWF6W-p.js → TrendChart-ohr8bK1l-B5dRIvEy.js} +4 -4
- package/dist/assets/{TrendWithTransactions-xn1fvlLO-CerDbg3P.js → TrendWithTransactions-D5eTj9Ca-BjYM3mpG.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-B_aOzm4v-h1El0pw_.js → UncategorizedAccountsMappingPage-3NGCCdAA-DC14oDOB.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-B6LF_f7C-DF3yoEHz.js → UnitIntegrationPage-B6FOsf88-BTafkfwm.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-BlKvE3tT-BlWsi76J.js → UploadAdditionalDocumentOverlay-CH9x8nx2-CEXAXlCj.js} +1 -1
- package/dist/assets/Vendor2FAPopup-D7455GFK-DU0-h-ac.js +1 -0
- package/dist/assets/{VendorACHDetailsPage-CncDplWQ-DgiLqsWr.js → VendorACHDetailsPage-CXoxi6Qp-CrJbaYWf.js} +1 -1
- package/dist/assets/{VendorDetailPage-POan4Fo8-Y_NsPNBu.js → VendorDetailPage-C6BgYb-c-BaTlvY1P.js} +6 -6
- package/dist/assets/{VendorDomesticWireDetailsPage-B1bT0W9o-NrQ5VuHO.js → VendorDomesticWireDetailsPage-DXfnCFu1-Bhf2lnL-.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C25iYV4w-DxH6WOrq.js → VendorFiling1099EditablePage-ByESLoQK-C5wgo9Qc.js} +14 -14
- package/dist/assets/{VendorFirstReviewPage-DY035p5C-B1sylU9C.js → VendorFirstReviewPage-iNPtUFNw-BbgJ63Tq.js} +27 -27
- package/dist/assets/{VendorInternationalWireDetailsPage-DN_mcAqY-DOkydboS.js → VendorInternationalWireDetailsPage-CqgGFU1K-CKX6n49-.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BaXgGRdu-BQ0UaHHd.js → VendorInternationalWireSwiftDetailsPage-CNzft0dg-D-n290kY.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C2UiqXC0-BiErhc3o.js → VendorsAccountsSection-DCWhoqAP-DHjXIFFo.js} +2 -2
- package/dist/assets/{VerifyDevice-C7BWrAZ3-DJDQCedc.js → VerifyDevice-DvJEmcUq-BD1k6-81.js} +4 -4
- package/dist/assets/{VideoPlayer-BYkDTMkS-BkX7RMiM.js → VideoPlayer-Cp5DBUTp-n0gfwB0a.js} +1 -1
- package/dist/assets/{VideoPopup-Chye3pds-BhmRCag7.js → VideoPopup-97jTEw9t-C5kzDaxd.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-Cx-gJdnW-Cid-1Ovb.js → WarningsDrawerPage-CMy4FFqt-zNFC-DvY.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-BrXe6Kao-DZTAFx3o.js → ZeniAccountDetailPage-mzHK5HUV-B2AMGiBu.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CJnHvk5a-BNB1bM3y.js → ZeniAccountListViewPage-BeN4AKFd-B0XSIJvm.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-BdLOT9UG-Cokn4oEN.js → ZeniAccountNavBarPieces-Db9bLk29-BybXcA-l.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-B1I9l833-BElJ8cLy.js → ZeniAccountPromoPage-By02sVg0-BAnhqfjw.js} +11 -11
- package/dist/assets/{ZeniAccountSetupPage-CitVJnZC-B9X3YQBI.js → ZeniAccountSetupPage-DeDgKig1-lQnp_HAL.js} +1 -1
- package/dist/assets/{ZeniCopyright-DbQka65R-7ZVyc7Yg.js → ZeniCopyright-Bfc0Yl56-xItwPVZ8.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dzxu82Xw-Ml8lBAJZ.js → ZeniTransferAmountSlider-DzeU3D5r-Dnm1GguJ.js} +6 -6
- package/dist/assets/{analyticsHelper-BDL8_RGj.js → analyticsHelper-CuIvasD7.js} +1 -1
- package/dist/assets/{analyticsHelper-DgJDMdal-DIavhrOw.js → analyticsHelper-Cx9PlTZt-BYpG33i-.js} +1 -1
- package/dist/assets/{chartTypes-D1j_l919-8QXMvJet.js → chartTypes-BoA9fCCZ-7xW-fVbz.js} +1 -1
- package/dist/assets/{commonDimensions-DDu54g8x-D5ikJlMO.js → commonDimensions-BCUrWcBL-vTG5ZzmA.js} +1 -1
- package/dist/assets/{detailCommon-DXjUFoA1-D9_LRSFU.js → detailCommon-CFA4p6RP-B16mjiFN.js} +4 -4
- package/dist/assets/{downloadPdf-DChYYVaW-ZZ55IYdY.js → downloadPdf-DZ5WQt0r-Bylb-lK-.js} +1 -1
- package/dist/assets/{index-BqKtrbrP.js → index-6DHFBk74.js} +1721 -1710
- package/dist/assets/{mapLoadingInProgressToTreeNode-BC5IH44--JB4URfny.js → mapLoadingInProgressToTreeNode-DQf-1sg7-B5MxQ8jl.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CUXssP6r-DZ4GfGRq.js → mapSectionWithAcOnlyToTreeNode-D0W1f0wZ-D3CjHikv.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-sdzfy8cu-ofjZ3Daw.js → mapSpacerToTreeNode-Dzbv_N4o-CAPOe3mv.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DgOZfixy-Cw5iWKMh.js → mapTimeframeBalancesToTreeNode-2yWiGglp-Dy8oBMmS.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BROieqal-BJxVRna_.js → mapTimeframeBalancesToTreeNode-COS_auLN-CKgStlR5.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-bXb7WXAq-D3DuUS-Q.js → mapTimeframeHeaderLoadingInProgressToTreeNode-NCujclSc-BUwl6Oy8.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DqhuI8hD-CWs6fXMS.js → toCOABalancesWithID--3a-7Ohb-Dq8zIbZX.js} +1 -1
- package/dist/assets/{toChartData-DZPFiNsp-WPnYC-7p.js → toChartData-KZ92y9KA-BJN5TA9Q.js} +1 -1
- package/dist/assets/{treasuryColorHelper-D5AxfiPH-CHzWVnh9.js → treasuryColorHelper-ChFJTPyg--ivM0q9A.js} +1 -1
- package/dist/assets/{uploadAttachment-D04Fz4F1-CuQRw56o.js → uploadAttachment-BzeeOF-1-oKdmjDH7.js} +14 -14
- package/dist/assets/{uploadReceipts-9DTOr0BG-BFe5S3is.js → uploadReceipts-9DTOr0BG-BAqIaRxY.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/BillsBulkReviewDrawerPage-CFK7g3R1-CNk8ph3a.js +0 -1
- package/dist/assets/ChargeCardDetailPage-DXUoIbZa-_LUfh5la.js +0 -1813
- package/dist/assets/ChargeCardUtils-BeG5m9OQ-BnJ39MTB.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-D4zUp7hX-DHmsrQe_.js +0 -1
- package/dist/assets/InvitePeoplePage-DYpb33z0-YHgrNKtY.js +0 -12
- package/dist/assets/SignInScreen-DqIw82_G.js +0 -1
- package/dist/assets/Vendor2FAPopup-BLzf9zxl-u_Gb4R4i.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as H,
|
|
1
|
+
import{q as H,O as k,j as o,P as B,aM as D,aQ as W,o as a,y as g,A as Q,b as U,dh as _,aa as G,hc as M,hd as F,he as R,cS as J,ad as K,u as r,c as X,cV as Y,gT as z,hj as Z,b6 as ee,hn as oe,ho as te}from"./index-6DHFBk74.js";import{b as j,n as d}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const L=(e,c)=>`${e}.${c}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=k.getLocalizedStrings().transactionDetail.vendorDetails,i=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:c,selectedClassId:p,selectedOwnerId:t,selectedVendorName:m,allAccounts:h,allClasses:C,allOwners:b,sectionId:v,isDisabled:u,accountsHierarchyList:f,classHierarchyList:x})=>{const l=H(),y=X(),$=N.labelWidth.value(l),P=N.controlWidth.value(l),I=n=>h.filter(O=>O.accountId===n)[0]?.coaId??"",s=n=>C.filter(O=>O.classId===n)[0]?.accountingClassNumber??"",S=n=>{const O=h.find(q=>q.accountId===n)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(re,{"data-testid":D("vendor-details-section",v),children:[o.jsx(se,{children:i.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(Y,{label:{label:i.vendorDetails.vendorName,width:$},text:{type:"text",name:L(v,"vendorName"),placeholder:i.placeholders.vendor,defaultValue:m,autoComplete:"off",options:{required:!0}},isSaveError:c,showAdditionalInfoLabel:!1,additionalInfoLabel:i.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:L(v,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>I(n),defaultValue:{selectedOption:e,allOptions:F(f)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:S,zIndexOnFocus:!0,additionalLabelInfo:i.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:L(v,"vendorClass"),placeholder:i.placeholders.class,valueToInfo:n=>s(n),defaultValue:{selectedOption:p,allOptions:M(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:i.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),b!=null?o.jsx(Z,{label:{label:i.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:L(v,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:R(b),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:P}):null]})]})},re=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
padding-top: ${a.sp3};
|
|
@@ -20,7 +20,7 @@ import{q as H,F,j as o,P as q,aM as D,aQ as W,o as a,y as g,A as Q,O as U,dh as
|
|
|
20
20
|
background-color: ${e=>e.theme.colors.grey3};
|
|
21
21
|
min-height: 1px;
|
|
22
22
|
max-height: 1px;
|
|
23
|
-
`,V="vendorDetails",de=({id:e,allAccounts:c,allClasses:p,allOwners:t,selectedVendor:m,formLocalData:h,isDisabled:C,onSaveVendor:b,saveVendorDetailLocalData:v,accountsHierarchyList:u,classHierarchyList:f})=>{const x=G({mode:"all",reValidateMode:"onChange",defaultValues:ce(u,f,t,h)}),[l,y]=j.useState(!1),$=s=>{s.preventDefault(),x.getValues().vendorDetails.vendorName!==""&&l===!1&&b?.()},P=(s,S)=>{const n=ue(s,void 0);v?.(n)},I=async(s,S)=>{(s.includes("vendorName")||s.includes("vendorOwner")||s.includes("vendorClass")||s.includes("vendorCategory"))&&(P(S),l===!0&&s.includes("vendorName")&&y(!1))};return j.useEffect(()=>{const s=x.watch((S,{name:n})=>{n!=null&&S!=null&&J(()=>I(n,S))});return()=>{s.unsubscribe()}}),j.useEffect(()=>{m.saveStatus.fetchState==="Error"&&m.saveStatus.error?.code===409&&y(!0)},[m.saveStatus]),o.jsx(K,{...x,children:o.jsx("form",{id:e,onSubmit:$,children:o.jsx(ne,{sectionId:V,selectedVendorDetails:m,isSaveError:l,selectedAccountId:h?.vendorCategory,selectedClassId:h?.vendorClass,selectedOwnerId:h?.vendorOwner,allAccounts:c??[],allClasses:p??[],selectedVendorName:h?.vendorName,allOwners:t,isDisabled:C,accountsHierarchyList:u,classHierarchyList:f})})})},ce=(e,c,p,t)=>({[V]:{vendorName:t?.vendorName??"",vendorOwner:{allOptions:
|
|
23
|
+
`,V="vendorDetails",de=({id:e,allAccounts:c,allClasses:p,allOwners:t,selectedVendor:m,formLocalData:h,isDisabled:C,onSaveVendor:b,saveVendorDetailLocalData:v,accountsHierarchyList:u,classHierarchyList:f})=>{const x=G({mode:"all",reValidateMode:"onChange",defaultValues:ce(u,f,t,h)}),[l,y]=j.useState(!1),$=s=>{s.preventDefault(),x.getValues().vendorDetails.vendorName!==""&&l===!1&&b?.()},P=(s,S)=>{const n=ue(s,void 0);v?.(n)},I=async(s,S)=>{(s.includes("vendorName")||s.includes("vendorOwner")||s.includes("vendorClass")||s.includes("vendorCategory"))&&(P(S),l===!0&&s.includes("vendorName")&&y(!1))};return j.useEffect(()=>{const s=x.watch((S,{name:n})=>{n!=null&&S!=null&&J(()=>I(n,S))});return()=>{s.unsubscribe()}}),j.useEffect(()=>{m.saveStatus.fetchState==="Error"&&m.saveStatus.error?.code===409&&y(!0)},[m.saveStatus]),o.jsx(K,{...x,children:o.jsx("form",{id:e,onSubmit:$,children:o.jsx(ne,{sectionId:V,selectedVendorDetails:m,isSaveError:l,selectedAccountId:h?.vendorCategory,selectedClassId:h?.vendorClass,selectedOwnerId:h?.vendorOwner,allAccounts:c??[],allClasses:p??[],selectedVendorName:h?.vendorName,allOwners:t,isDisabled:C,accountsHierarchyList:u,classHierarchyList:f})})})},ce=(e,c,p,t)=>({[V]:{vendorName:t?.vendorName??"",vendorOwner:{allOptions:R(p),selectedOption:t?.vendorOwner},vendorCategory:{allOptions:F(e),selectedOption:t?.vendorCategory},vendorClass:{allOptions:M(c),selectedOption:t?.vendorClass}}});function ue(e,c,p){const t=e?.[V];return{vendorCategory:t.vendorCategory.selectedOption,vendorClass:t.vendorClass.selectedOption,vendorId:c,vendorName:t.vendorName,vendorOwner:t.vendorOwner?.selectedOption}}const w={containerPaddingLeft:new g(r[3],r[3],r[6]),containerPaddingRight:new g(r[3],r[3],r[8]),containerMarginTop:new g(r[2],r[2],r[4]),navbarContainerPaddingTop:new g(r[3],r[3]),navbarContainerPaddingBottom:new g(r[3],r[3]),SectionTitleMarginTop:new g(0,r[3])},T={sectionTitle:new U("h6Regular","h5Medium"),sectionTitleLineHeight:new g(30,40)},he=d.div`
|
|
24
24
|
display: flex;
|
|
25
25
|
flex: 1 1 auto;
|
|
26
26
|
min-height: 100%;
|
|
@@ -77,4 +77,4 @@ import{q as H,F,j as o,P as q,aM as D,aQ as W,o as a,y as g,A as Q,O as U,dh as
|
|
|
77
77
|
${e=>`${T.sectionTitle.style(e.windowSize)}`};
|
|
78
78
|
margin-left: ${e=>e.windowSize==="small"?a.sp3:0};
|
|
79
79
|
line-height: ${e=>T.sectionTitleLineHeight.valuePx(e.windowSize)};
|
|
80
|
-
`,E="vendorDetailPage",A=e=>`${e}_form`,Pe=({vendorDetailView:e,onSaveSuccess:c,onCancelClick:p,onSaveVendor:t,saveVendorDetailLocalData:m})=>{const{editVendorState:h,newVendorState:C,accountsHierarchyList:b,classHierarchyList:v}=e,u=H(),{footer:f,newVendor:x}=
|
|
80
|
+
`,E="vendorDetailPage",A=e=>`${e}_form`,Pe=({vendorDetailView:e,onSaveSuccess:c,onCancelClick:p,onSaveVendor:t,saveVendorDetailLocalData:m})=>{const{editVendorState:h,newVendorState:C,accountsHierarchyList:b,classHierarchyList:v}=e,u=H(),{footer:f,newVendor:x}=k.getLocalizedStrings().transactionDetail.vendorDetails.createVendor,l=Object.assign({},h??C);if(j.useEffect(()=>{l?.saveStatus?.fetchState==="Completed"&&c?.()},[l]),e.fetchState==="Not-Started"||e.fetchState==="In-Progress")return o.jsx(ve,{children:o.jsx(B,{size:"ExtraLarge",start:!0})});const y=l.saveStatus?.fetchState==="In-Progress";return o.jsxs(he,{windowSize:u,"data-testid":D("transaction-vendor-detail-page"),children:[o.jsxs(me,{windowSize:u,children:[o.jsx(we,{children:o.jsx(fe,{onClick:p,"data-testid":D("close-icon")})}),o.jsx(xe,{windowSize:u,children:x})]}),o.jsx(ge,{children:o.jsx(pe,{windowSize:u,"data-testid":D("vendor-detail-page-form"),children:o.jsx(de,{id:A(E),allAccounts:e.accountList.accounts,allClasses:e.classList.classes,allOwners:e.ownerList,selectedVendor:l,formLocalData:l.vendorDetailLocalData,onSaveVendor:t,saveVendorDetailLocalData:m,accountsHierarchyList:b,classHierarchyList:v})})}),o.jsx(W,{formId:A(E),primaryBtn:{label:f.save,isLoading:y},cancelBtn:{label:f.cancel,shouldResetOnCancel:!0,onClick:p}})]})};export{Pe as default,A as formUniqueName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,q as ue,aM as P,hw as lt,F as I,aN as q,n as ve,hG as ct,P as Ye,aQ as $e,o as a,y as c,A as Ne,s as dt,b8 as ut,ar as ft,_ as De,ai as be,am as fe,aP as ce,fG as pt,aa as Xe,l as mt,cS as ht,aX as gt,aO as wt,h as Z,ad as Ge,fP as ke,fQ as Pe,gm as xt,c5 as ye,gh as $t,hH as Dt,u as o,fB as bt,cw as qe,ce as yt,dm as Tt,bP as Ct,an as Ue,fL as St,dM as vt,cg as Ze,fS as kt,fU as Pt}from"./index-BqKtrbrP.js";import{b as u,n as r}from"./vendor-Bs1fkIUX.js";import{v as At}from"./ZeniTransferAmountSlider-Dzxu82Xw-Ml8lBAJZ.js";import{r as Lt}from"./AccountInfoPageContent-8V3PDzEc-Co1a4vxf.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./downloadPdf-DChYYVaW-ZZ55IYdY.js";import"./commonDimensions-DDu54g8x-D5ikJlMO.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Qe="amount",jt="transferTo",Ae="transferFrom",k="transferDetails",Je="transferDetailPage",ge=(e,n)=>`${e}.${n}`,Ke=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:n,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:Q,onBackClick:R,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:J,onReviewClick:K}){const i=ue(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,V]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),H=n.transferMoneyPartiesFetchState,oe=ce(H),X=n.transferDetailLocalData.transferFrom?.id,ee=n.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=n.transferMoneyParties.map(s=>s.id),me=ce(pe),He=u.useCallback(s=>{O?.(s),R(),N(!1),z(!1)},[R,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:G,ready:te}=pt({token:v,onSuccess:He,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?G():z(!0)},[G,te]),A=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(n,se),[n])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&G()},[Y,G,x]),u.useEffect(()=>{(mt.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&J?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&H==="Completed"||ie!==X||Te!==ee||s)&&A.reset(Le(n,()=>G()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,Te,ee,X,me,pe,A,n,G]);const{isValid:tt}=A.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:n.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:n.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};Q(le)}};u.useEffect(()=>{const s=A.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=n.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=n.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[A,n.transferMoneyParties]),u.useEffect(()=>{const s=A.watch((h,{name:B})=>{B!=null&&h!=null&&ht(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{n.reviewTransferDetail.error!=null?j(!0):j(!1)},[n.reviewTransferDetail.error]);const rt=A.handleSubmit(()=>{tt&&(_("Review","Amount Details"),K())});u.useEffect(()=>{n.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&n.transferDetailLocalData.transferFrom?.id==null&&A.setValue(`${k}.${Ae}`,{selectedOption:n.primaryPaymentAccount?.paymentAccountId,allOptions:re(n,!0,se,!0,!0)})},[n.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),nt=gt(wt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(Ft,{children:t.jsxs(Rt,{children:[t.jsxs(Et,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:n.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:n.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(ra,{"data-testid":P("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:Z.heroLight}})})]})}):null,t.jsx(Yt,{children:q("0,0.[00]",n.transferDetailLocalData.amount)}),t.jsx(Ge,{...A,children:t.jsxs(Mt,{id:Ke(Je),onSubmit:rt,children:[t.jsxs(ta,{children:[t.jsx(Re,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Ae),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Pe(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferFrom?.id,allOptions:re(n,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Re,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Pe(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferTo?.id,allOptions:re(n,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(xt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:E},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Qe),defaultValue:n.transferDetailLocalData.amount.amount===0?void 0:n.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(qt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",nt)}),t.jsx(At,{minStep:.01,currentAccountBalance:n.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Ut,{windowSize:i,children:[t.jsx(Jt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Zt,{children:[t.jsx(ze,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${q("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(Gt,{})})]}),t.jsx(Qt,{windowSize:i}),t.jsx(Kt,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${q("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Fe,{windowSize:i,onClick:()=>T(!1),"data-testid":P("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":P("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const re=(e,n,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(n?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,n)=>({transferDetails:{[Qe]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:re(e,!0,n,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:re(e,!1,n,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=r.div`
|
|
1
|
+
import{j as t,q as ue,aM as P,hw as lt,O as I,aN as G,n as ve,hG as ct,P as Ye,aQ as $e,o as a,y as c,A as Ne,s as dt,b8 as ut,ar as ft,_ as De,ai as be,am as fe,aP as ce,fG as pt,aa as Xe,l as mt,cS as ht,aX as gt,aO as wt,h as Q,ad as qe,fP as ke,fQ as Pe,gm as xt,c5 as ye,gh as $t,hH as Dt,u as o,fB as bt,cw as Ge,ce as yt,dm as Tt,bP as Ct,an as Ue,fL as St,dM as vt,cg as Qe,fS as kt,fU as Pt}from"./index-6DHFBk74.js";import{b as u,n as r}from"./vendor-Bs1fkIUX.js";import{v as At}from"./ZeniTransferAmountSlider-DzeU3D5r-Dnm1GguJ.js";import{r as Lt}from"./AccountInfoPageContent-BrPhtN53-CjBlOxg5.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./downloadPdf-DZ5WQt0r-Bylb-lK-.js";import"./commonDimensions-BCUrWcBL-vTG5ZzmA.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ze="amount",jt="transferTo",Ae="transferFrom",k="transferDetails",Je="transferDetailPage",ge=(e,n)=>`${e}.${n}`,Ke=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:n,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:Z,onBackClick:R,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:J,onReviewClick:K}){const i=ue(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,V]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),H=n.transferMoneyPartiesFetchState,oe=ce(H),X=n.transferDetailLocalData.transferFrom?.id,ee=n.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=n.transferMoneyParties.map(s=>s.id),me=ce(pe),He=u.useCallback(s=>{O?.(s),R(),N(!1),z(!1)},[R,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:He,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),A=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(n,se),[n])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(mt.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&J?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&H==="Completed"||ie!==X||Te!==ee||s)&&A.reset(Le(n,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,Te,ee,X,me,pe,A,n,q]);const{isValid:tt}=A.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:n.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:n.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};Z(le)}};u.useEffect(()=>{const s=A.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=n.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=n.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[A,n.transferMoneyParties]),u.useEffect(()=>{const s=A.watch((h,{name:B})=>{B!=null&&h!=null&&ht(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{n.reviewTransferDetail.error!=null?j(!0):j(!1)},[n.reviewTransferDetail.error]);const rt=A.handleSubmit(()=>{tt&&(_("Review","Amount Details"),K())});u.useEffect(()=>{n.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&n.transferDetailLocalData.transferFrom?.id==null&&A.setValue(`${k}.${Ae}`,{selectedOption:n.primaryPaymentAccount?.paymentAccountId,allOptions:re(n,!0,se,!0,!0)})},[n.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),nt=gt(wt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(Ft,{children:t.jsxs(Rt,{children:[t.jsxs(Et,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:n.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:n.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(ra,{"data-testid":P("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:Q.heroLight}})})]})}):null,t.jsx(Yt,{children:G("0,0.[00]",n.transferDetailLocalData.amount)}),t.jsx(qe,{...A,children:t.jsxs(Mt,{id:Ke(Je),onSubmit:rt,children:[t.jsxs(ta,{children:[t.jsx(Re,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Ae),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Pe(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferFrom?.id,allOptions:re(n,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Re,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Pe(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferTo?.id,allOptions:re(n,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(xt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:E},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ze),defaultValue:n.transferDetailLocalData.amount.amount===0?void 0:n.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Gt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",nt)}),t.jsx(At,{minStep:.01,currentAccountBalance:n.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Ut,{windowSize:i,children:[t.jsx(Jt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Qt,{children:[t.jsx(ze,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${G("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Zt,{windowSize:i}),t.jsx(Kt,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${G("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Fe,{windowSize:i,onClick:()=>T(!1),"data-testid":P("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":P("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const re=(e,n,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(n?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,n)=>({transferDetails:{[Ze]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:re(e,!0,n,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:re(e,!1,n,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=r.div`
|
|
2
2
|
margin-top: ${a.sp3};
|
|
3
3
|
display: flex;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -17,7 +17,7 @@ import{j as t,q as ue,aM as P,hw as lt,F as I,aN as q,n as ve,hG as ct,P as Ye,a
|
|
|
17
17
|
width: 100%;
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
padding: ${a.sp3} ${a.sp4};
|
|
20
|
-
background-color: ${
|
|
20
|
+
background-color: ${Q.importantLight};
|
|
21
21
|
border-radius: ${a.sp2};
|
|
22
22
|
`,Et=r.div`
|
|
23
23
|
display: flex;
|
|
@@ -25,15 +25,15 @@ import{j as t,q as ue,aM as P,hw as lt,F as I,aN as q,n as ve,hG as ct,P as Ye,a
|
|
|
25
25
|
`,It=r.div``,Ot=r(bt)`
|
|
26
26
|
width: ${a.sp4};
|
|
27
27
|
height: ${a.sp4};
|
|
28
|
-
color: ${
|
|
28
|
+
color: ${Q.important};
|
|
29
29
|
`,_t=r.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-direction: column;
|
|
32
32
|
margin-left: ${a.sp2};
|
|
33
|
-
`,Wt=r(
|
|
34
|
-
color: ${
|
|
33
|
+
`,Wt=r(Ge)`
|
|
34
|
+
color: ${Q.important};
|
|
35
35
|
`,Vt=r(fe)`
|
|
36
|
-
color: ${
|
|
36
|
+
color: ${Q.important};
|
|
37
37
|
`,Yt=r(yt)`
|
|
38
38
|
color: ${e=>e.theme.colors.primary};
|
|
39
39
|
margin: ${a.sp5} ${a.sp0} ${a.sp3} ${a.sp0};
|
|
@@ -55,17 +55,17 @@ import{j as t,q as ue,aM as P,hw as lt,F as I,aN as q,n as ve,hG as ct,P as Ye,a
|
|
|
55
55
|
margin-bottom: ${a.sp3};
|
|
56
56
|
margin-top: ${a.sp3};
|
|
57
57
|
white-space: pre-line;
|
|
58
|
-
`,ze=r(
|
|
59
|
-
color: ${
|
|
58
|
+
`,ze=r(Ge)`
|
|
59
|
+
color: ${Q.success};
|
|
60
60
|
white-space: nowrap;
|
|
61
|
-
`,
|
|
61
|
+
`,qt=r(Ct)`
|
|
62
62
|
width: ${a.sp3};
|
|
63
63
|
color: ${e=>e.theme.colors.hero};
|
|
64
64
|
height: ${a.sp3};
|
|
65
65
|
&:hover {
|
|
66
66
|
color: ${e=>e.theme.colors.primary};
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,Gt=r.div`
|
|
69
69
|
margin-bottom: ${a.sp6};
|
|
70
70
|
width: 90%;
|
|
71
71
|
`,Ut=r.div`
|
|
@@ -77,7 +77,7 @@ import{j as t,q as ue,aM as P,hw as lt,F as I,aN as q,n as ve,hG as ct,P as Ye,a
|
|
|
77
77
|
background-color: ${e=>e.theme.colors.grey3};
|
|
78
78
|
border-bottom-right-radius: ${a.sp1};
|
|
79
79
|
border-bottom-left-radius: ${a.sp1};
|
|
80
|
-
`,
|
|
80
|
+
`,Qt=r.div`
|
|
81
81
|
display: flex;
|
|
82
82
|
flex-direction: row;
|
|
83
83
|
align-items: center;
|
|
@@ -98,7 +98,7 @@ import{j as t,q as ue,aM as P,hw as lt,F as I,aN as q,n as ve,hG as ct,P as Ye,a
|
|
|
98
98
|
color: ${e=>e.theme.colors.primary};
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
`,
|
|
101
|
+
`,Zt=r.div`
|
|
102
102
|
display: ${e=>e.windowSize==="small"?"none":"block"};
|
|
103
103
|
width: ${a.sp1};
|
|
104
104
|
height: ${a.sp1};
|
|
@@ -179,7 +179,7 @@ import{j as t,q as ue,aM as P,hw as lt,F as I,aN as q,n as ve,hG as ct,P as Ye,a
|
|
|
179
179
|
&:hover {
|
|
180
180
|
color: ${e=>e.theme.colors.primary};
|
|
181
181
|
}
|
|
182
|
-
`,ne={navBarContainerPaddingXaxis:new c(10,19),containerPaddingLeft:new c(16,40,56),containerPaddingRight:new c(16,40,56),successContentMargin:new c(o[3],o[12]),buttonTrayGap:new c(o[4],o[5])},D=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList,na=({transferDetails:e,isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:y,totalBalance:w,maxInsuredAmount:d,zeniAccountsConfigDetail:f,fireTrackTransferBetweenAccountsFormClicked:l,onSaveChangesToLocalStore:T,onTransferClick:C,onDismissClick:S,onAnotherTransferClick:F,onEstablishConnectionClick:M,onBackClick:
|
|
182
|
+
`,ne={navBarContainerPaddingXaxis:new c(10,19),containerPaddingLeft:new c(16,40,56),containerPaddingRight:new c(16,40,56),successContentMargin:new c(o[3],o[12]),buttonTrayGap:new c(o[4],o[5])},D=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList,na=({transferDetails:e,isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:y,totalBalance:w,maxInsuredAmount:d,zeniAccountsConfigDetail:f,fireTrackTransferBetweenAccountsFormClicked:l,onSaveChangesToLocalStore:T,onTransferClick:C,onDismissClick:S,onAnotherTransferClick:F,onEstablishConnectionClick:M,onBackClick:Z,onFetchLinkTokenClick:R,plaidConnectionDetails:O,showReviewContent:_,setShowReviewContent:J,setCurrentDrawerContent:K,clearReviewTransferDetail:i,onReviewClick:E,setIsCalculatorOpen:W,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:V})=>{const x=ue(),z=e.reviewTransferDetail,Y=e.transferDetailLocalData.transferFrom?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accType==="depositAccount",N=()=>e.transferDetailLocalData.transferFrom?.id!=null||e.transferDetailLocalData.transferTo?.id!=null||e.transferDetailLocalData.amount.amount>0;return t.jsx(sa,{windowSize:x,children:e.fetchState==="Completed"?t.jsxs(Ie,{windowSize:x,isTransferCompleted:!0,children:[t.jsx(Oe,{windowSize:x,children:t.jsx(_e,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{l("Cross","Transfer Success"),S?.()}})}),t.jsxs(da,{windowSize:x,children:[t.jsx(lt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),t.jsx(la,{children:Y?t.jsxs(t.Fragment,{children:[D.transferDrawer.internal.transferSuccessMsgPrefix,t.jsx(Ee,{children:G("0,0.[00]",e.transferDetailLocalData.amount)}),D.transferDrawer.internal.transferSuccessMsgMidfix,`"${e.transferDetailLocalData.transferFrom?.label}"`,D.transferDrawer.internal.transferSuccessMsgMidfix2,`"${e.transferDetailLocalData.transferTo?.label}".`]}):t.jsxs(t.Fragment,{children:[D.transferDrawer.external.transferSuccessMsgPrefix,t.jsx(Ee,{children:G("0,0.[00]",e.transferDetailLocalData.amount)}),D.transferDrawer.external.transferSuccessMsgMidfix,`"${e.transferDetailLocalData.transferFrom?.label}"`,D.transferDrawer.external.transferSuccessMsgMidfix1,`"${e.transferDetailLocalData.transferTo?.label}".`,z.reviewTransferMoney.isShowDailyAchLimitWarning?null:D.transferDrawer.external.transferSuccessMsgMidfix2]})}),t.jsxs(ca,{windowSize:x,children:[t.jsx(ve,{variant:"secondary",label:D.transferDrawer.anotherTransferBtn,"data-testid":P("another-transfer-button"),onClick:()=>{l("Another Transfer","Transfer Success"),V(0),W(!1),v(0),j(!1),F()},style:{minWidth:200}}),t.jsx(ve,{variant:"primary",label:D.transferDrawer.backToChecking,"data-testid":P("back-to-checking-button"),onClick:()=>{l("Back to Checking","Transfer Success"),S?.()},style:{minWidth:200}})]})]})]}):_?t.jsx(ct,{transferDetails:e,setCurrentDrawerContent:K,setShowReviewContent:J,onTransferClick:C,clearReviewTransferDetail:i,reviewTransferDetail:z,fireTrackTransferBetweenAccountsFormClicked:l}):t.jsxs(t.Fragment,{children:[t.jsxs(Ie,{windowSize:x,isTransferCompleted:!1,children:[t.jsx(Oe,{windowSize:x,children:t.jsx(_e,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{l("Cross","Amount Details"),S?.()}})}),x==="small"?t.jsx(ua,{windowSize:x,children:D.transferDrawer.title}):t.jsx(fa,{children:D.transferDrawer.title}),x==="small"?t.jsx(ia,{children:D.transferDrawer.subTitle}):t.jsx(oa,{children:D.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?t.jsx(zt,{isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:y,totalBalance:w,onBackClick:Z,onSaveChangesToLocalStore:T,plaidConnectionDetails:O,transferDetails:e,zeniAccountsConfigDetail:f,onEstablishConnectionClick:M,onFetchLinkTokenClick:R,onReviewClick:E,setIsCalculatorOpen:W,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:V,fireTrackTransferBetweenAccountsFormClicked:l,maxInsuredAmount:d}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),N()?t.jsx($e,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:Ke(Je),helperStyle:{paddingTop:a.sp0,paddingBottom:a.sp0},primaryBtn:{label:I.getLocalizedStrings().common.review,isLoading:z.fetchState==="In-Progress"},cancelBtn:{label:D.transferDrawer.cancelBtn,onClick:()=>{l("Cancel","Amount Details"),S?.()}}}):null]})})},oa=r(fe)`
|
|
183
183
|
color: ${e=>e.theme.colors.hero};
|
|
184
184
|
`,ia=r(be)`
|
|
185
185
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -241,7 +241,7 @@ import{j as t,q as ue,aM as P,hw as lt,F as I,aN as q,n as ve,hG as ct,P as Ye,a
|
|
|
241
241
|
color: ${e=>e.theme.colors.primary};
|
|
242
242
|
margin-top: ${a.sp3};
|
|
243
243
|
margin-bottom: ${a.sp2};
|
|
244
|
-
`,U={accountRowLeftRightPadding:new c(o[3],o[3]),zeniAccountListPaddingBottom:new c(o[3],o[6]),navBarContainerPaddingXaxis:new c(10,19),containerPaddingLeft:new c(o[3],o[6],o[8]),containerPaddingRight:new c(o[3],o[6],o[8])},We="wireTransferDetailPage",Ve=e=>`${e}_form`,pa=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList.transferDrawer,we=I.getLocalizedStrings().common,ma=e=>t.jsx(va,{color:kt(e)}),ha=({depositAccountListView:e,setCurrentDrawerContent:n,selectedAccount:g,setShowWireAccountInfo:$,setSelectedAccount:y,fireTrackTransferBetweenAccountsFormClicked:w})=>{const d=Xe({mode:"all",reValidateMode:"onChange",defaultValues:{selectedAccountId:g?.id}}),f=ue();return u.useEffect(()=>{const l=d.watch(()=>{const T=e.depositAccounts.find(C=>C.id===d.getValues("selectedAccountId"));y(T)});return()=>{l.unsubscribe()}}),e.fetchState!="Completed"?t.jsx($t,{fetchState:e.fetchState}):t.jsxs(t.Fragment,{children:[t.jsxs(ga,{windowSize:f,children:[t.jsx(Ca,{windowSize:f,children:t.jsx(ye,{style:{marginTop:a.sp1},title:we.navBar.back,enterDelay:600,placement:"bottom",children:t.jsx(Ta,{"data-testid":P("select-zeni-account-back-button"),onClick:()=>{w("Back","Select Account for Split Transfer"),n("achTransfer")}})})}),t.jsx(Sa,{windowSize:f,children:pa.selectYour}),t.jsx(
|
|
244
|
+
`,U={accountRowLeftRightPadding:new c(o[3],o[3]),zeniAccountListPaddingBottom:new c(o[3],o[6]),navBarContainerPaddingXaxis:new c(10,19),containerPaddingLeft:new c(o[3],o[6],o[8]),containerPaddingRight:new c(o[3],o[6],o[8])},We="wireTransferDetailPage",Ve=e=>`${e}_form`,pa=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList.transferDrawer,we=I.getLocalizedStrings().common,ma=e=>t.jsx(va,{color:kt(e)}),ha=({depositAccountListView:e,setCurrentDrawerContent:n,selectedAccount:g,setShowWireAccountInfo:$,setSelectedAccount:y,fireTrackTransferBetweenAccountsFormClicked:w})=>{const d=Xe({mode:"all",reValidateMode:"onChange",defaultValues:{selectedAccountId:g?.id}}),f=ue();return u.useEffect(()=>{const l=d.watch(()=>{const T=e.depositAccounts.find(C=>C.id===d.getValues("selectedAccountId"));y(T)});return()=>{l.unsubscribe()}}),e.fetchState!="Completed"?t.jsx($t,{fetchState:e.fetchState}):t.jsxs(t.Fragment,{children:[t.jsxs(ga,{windowSize:f,children:[t.jsx(Ca,{windowSize:f,children:t.jsx(ye,{style:{marginTop:a.sp1},title:we.navBar.back,enterDelay:600,placement:"bottom",children:t.jsx(Ta,{"data-testid":P("select-zeni-account-back-button"),onClick:()=>{w("Back","Select Account for Split Transfer"),n("achTransfer")}})})}),t.jsx(Sa,{windowSize:f,children:pa.selectYour}),t.jsx(qe,{...d,children:t.jsx("form",{id:Ve(We),onSubmit:d.handleSubmit(()=>{w("Next","Select Account for Split Transfer"),$(!0)}),children:t.jsx(ya,{windowSize:f,children:e.depositAccounts.map((l,T)=>t.jsx(ba,{isClickEnabled:!0,windowSize:f,"data-testid":P("deposit-account-click",l.id),onClick:()=>d.setValue("selectedAccountId",l.id),children:t.jsxs(wa,{children:[t.jsx(Dt,{name:"selectedAccountId",id:l.id,value:l.id,radioSize:"small",style:{marginRight:8}}),ma(T),t.jsxs(xa,{children:[t.jsx(Da,{windowSize:f,children:l.accountName}),t.jsx($a,{children:G("0,0[.]00",l.accountBalance?.available)})]})]})},l.id))})})})]}),g!=null?t.jsx($e,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:Ve(We),cancelBtn:{label:we.cancel,onClick:()=>{w("Cancel","Select Account for Split Transfer"),n("achTransfer")},style:{width:93}},primaryBtn:{label:we.next,style:{width:93}}}):null]})},ga=r.div`
|
|
245
245
|
height: auto;
|
|
246
246
|
padding-left: ${e=>`${U.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
247
247
|
padding-right: ${e=>`${U.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
@@ -286,7 +286,7 @@ import{j as t,q as ue,aM as P,hw as lt,F as I,aN as q,n as ve,hG as ct,P as Ye,a
|
|
|
286
286
|
}
|
|
287
287
|
`,ya=r.div`
|
|
288
288
|
padding-bottom: ${e=>U.zeniAccountListPaddingBottom.valuePx(e.windowSize)};
|
|
289
|
-
`,Ta=r(
|
|
289
|
+
`,Ta=r(Qe)`
|
|
290
290
|
cursor: pointer;
|
|
291
291
|
color: ${e=>e.theme.colors.hero};
|
|
292
292
|
width: ${a.sp4};
|
|
@@ -323,7 +323,7 @@ import{j as t,q as ue,aM as P,hw as lt,F as I,aN as q,n as ve,hG as ct,P as Ye,a
|
|
|
323
323
|
height: auto;
|
|
324
324
|
padding: ${e=>`${a.sp0} ${L.pageContentPaddingLeftRight.valuePx(e.windowSize)}`};
|
|
325
325
|
margin-bottom: auto;
|
|
326
|
-
`,ja=r(
|
|
326
|
+
`,ja=r(Qe)`
|
|
327
327
|
cursor: pointer;
|
|
328
328
|
color: ${e=>e.theme.colors.hero};
|
|
329
329
|
width: ${a.sp4};
|
|
@@ -352,7 +352,7 @@ import{j as t,q as ue,aM as P,hw as lt,F as I,aN as q,n as ve,hG as ct,P as Ye,a
|
|
|
352
352
|
color: ${e=>e.theme.colors.primary};
|
|
353
353
|
padding: ${a.sp3} ${a.sp0} ${a.sp2} ${a.sp0};
|
|
354
354
|
margin: ${e=>`${a.sp0} ${L.pageTitleMarginXAxis.valuePx(e.windowSize)} `};
|
|
355
|
-
`,Ra=({zeniAccountsConfigDetail:e,depositAccountListView:n,downloadAccountDetailEndPoint:g,authParams:$,selectedAccountId:y,currentTenant:w,setCurrentDrawerContent:d,fireTrackTransferBetweenAccountsFormClicked:f,onDismissClick:l})=>{const[T,C]=u.useState(!1),[S,F]=u.useState(n.depositAccounts.find(M=>M.id===y));return T&&S!=null?t.jsx(Pa,{downloadAccountDetailEndPoint:g,authParams:$,currentTenant:w,zeniAccountsConfigDetail:e,depositAccount:S,onDismissClick:l,setShowWireAccountInfo:C,fireTrackTransferBetweenAccountsFormClicked:f}):t.jsx(ha,{depositAccountListView:n,setCurrentDrawerContent:d,selectedAccount:S,setShowWireAccountInfo:C,setSelectedAccount:F,fireTrackTransferBetweenAccountsFormClicked:f})},Ja=({transferDetails:e,zeniAccountsConfigDetail:n,depositAccountListView:g,maxInsuredAmount:$,currentTenant:y,showReviewContent:w,currentDrawerContent:d,downloadAccountDetailEndPoint:f,authParams:l,analytics:T,setCurrentDrawerContent:C,setShowReviewContent:S,onSaveChangesToLocalStore:F,onTransferClick:M,onReviewClick:
|
|
355
|
+
`,Ra=({zeniAccountsConfigDetail:e,depositAccountListView:n,downloadAccountDetailEndPoint:g,authParams:$,selectedAccountId:y,currentTenant:w,setCurrentDrawerContent:d,fireTrackTransferBetweenAccountsFormClicked:f,onDismissClick:l})=>{const[T,C]=u.useState(!1),[S,F]=u.useState(n.depositAccounts.find(M=>M.id===y));return T&&S!=null?t.jsx(Pa,{downloadAccountDetailEndPoint:g,authParams:$,currentTenant:w,zeniAccountsConfigDetail:e,depositAccount:S,onDismissClick:l,setShowWireAccountInfo:C,fireTrackTransferBetweenAccountsFormClicked:f}):t.jsx(ha,{depositAccountListView:n,setCurrentDrawerContent:d,selectedAccount:S,setShowWireAccountInfo:C,setSelectedAccount:F,fireTrackTransferBetweenAccountsFormClicked:f})},Ja=({transferDetails:e,zeniAccountsConfigDetail:n,depositAccountListView:g,maxInsuredAmount:$,currentTenant:y,showReviewContent:w,currentDrawerContent:d,downloadAccountDetailEndPoint:f,authParams:l,analytics:T,setCurrentDrawerContent:C,setShowReviewContent:S,onSaveChangesToLocalStore:F,onTransferClick:M,onReviewClick:Z,onDismissClick:R,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,clearReviewTransferDetail:K,onFetchLinkTokenClick:i,plaidConnectionDetails:E})=>{const[W,j]=u.useState(!1),[m,v]=u.useState(!1),[V,x]=u.useState(0),[z,Y]=u.useState(0),[N,H]=u.useState(0),oe=()=>{const X=(ee,ie)=>T.trackTransferBetweenAccountsFormClicked(ee,ie,e.transferDetailLocalData.transferFrom?.label,e.transferDetailLocalData.transferTo?.label,e.transferDetailLocalData.amount.amount,e.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,e.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&e.transferDetailLocalData.amount.amount>n.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]);return d==="achTransfer"?t.jsx(na,{transferDetails:e,isCalculatorOpen:W,showAnnualYieldEarned:m,transferAmount:V,yieldEarned:z,totalBalance:N,zeniAccountsConfigDetail:n,fireTrackTransferBetweenAccountsFormClicked:X,onSaveChangesToLocalStore:F,onTransferClick:M,onDismissClick:R,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,onFetchLinkTokenClick:i,plaidConnectionDetails:E,setCurrentDrawerContent:C,clearReviewTransferDetail:K,onReviewClick:Z,setShowReviewContent:S,showReviewContent:w,setIsCalculatorOpen:j,setShowAnnualYieldEarned:v,setTransferAmount:x,setYieldEarned:Y,setTotalBalance:H,maxInsuredAmount:$}):t.jsx(Ra,{zeniAccountsConfigDetail:n,depositAccountListView:g,selectedAccountId:e.transferDetailLocalData.transferTo?.id,currentTenant:y,downloadAccountDetailEndPoint:f,authParams:l,fireTrackTransferBetweenAccountsFormClicked:X,setCurrentDrawerContent:C,onDismissClick:R})};return t.jsx(Ea,{children:oe()})},Ea=r.div`
|
|
356
356
|
display: flex;
|
|
357
357
|
flex-direction: column;
|
|
358
358
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as C,
|
|
1
|
+
import{q as C,c as M,a9 as Fe,cr as Ke,j as t,O as L,aN as W,c5 as ae,bF as Ve,C as ie,aM as E,P as We,o as i,ai as k,h as w,bP as Ee,y,ft as _,b as B,l as V,u as p,hz as le,be as de,bh as ce,bg as he,bf as pe,bS as Ge,bZ as Le,aS as Me,ax as Ue,g3 as Xe,h3 as Je,n as _e,am as O,a$ as Ze,ji as qe,jV as Qe,bk as et,f0 as tt,dr as it,fL as ot,kR as rt,iX as Oe,iY as Ae,cH as at,iP as nt,iQ as st,c3 as lt,an as G,cM as xe,iW as dt,cP as ct}from"./index-6DHFBk74.js";import{b as f,n as o,w as ht,i as ge}from"./vendor-Bs1fkIUX.js";import{s as pt}from"./commonDimensions-BCUrWcBL-vTG5ZzmA.js";import{g as me}from"./BoxItem-imggFWL_-C8e_yZct.js";import{l as ne,n as xt}from"./treasuryColorHelper-ChFJTPyg--ivM0q9A.js";import{o as gt}from"./transaction-placeholder-CpOwZAMG-CGEA36Na.js";import{o as mt}from"./shield-DOlUxcFf-CDkNAu2o.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,ut={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new y(120,250,400,400,500)},yt={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new y(100,120,200,250,300)},ft={key:"amount",value:se.amount,sortOrder:"ascending",width:new y(80,100,150,180,200)},oe=()=>[ut,yt,ft],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new y(p[0],p[4]),headerLastColumnRightPadding:new y(p[3],p[11]),headerLastColumnBottomPadding:new y(p[0],p[4]),headerLastColumnLeftPadding:new y(p[3],p[11]),headerHeight:new y(Oe,Ae),sortIconSize:new y(p[2],p[2]),headerPaddingTop:new y(p[0],2)};function wt({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const h=M(),l=C(),[a,u]=f.useState(oe());f.useEffect(()=>{const c=[...a];for(const s of c)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";u(c)},[r.sortKey,r.sortOrder]);const d=(c,s)=>{let m=s;r.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),n(c,m)},g=a.find(c=>c.key===r.sortKey)??a[0],x=c=>a.find(s=>s.key===c)?.value??"",$=a.map(c=>c.key),j=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(vt,{windowSize:l,children:[t.jsxs(Ct,{children:[t.jsx(Pt,{children:t.jsx(zt,{})}),t.jsx(lt,{title:j.sortBy,placeholder:j.sortBy,pickerValues:$,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:c=>{d(c,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4})]}),t.jsxs(Lt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":E("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(G,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(xe,{})})})]})]}):t.jsx(jt,{windowSize:l,children:t.jsx(bt,{children:a.map(c=>c.width.value(l)!==0&&t.jsxs(St,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:l,children:[t.jsxs(Tt,{onClick:()=>d(c.key,c.sortOrder),"data-testid":E("cards-list-sort-clicked",r.sortKey),children:[t.jsx(G,{children:c.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:c,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===c.key,children:t.jsx(xe,{})})})]}),t.jsx(Dt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===c.key&&c.key!=="date",children:t.jsx(kt,{onClick:()=>d("date","ascending"),"data-testid":E("cards-list-sort-cancel",r.sortKey)})})]},c.key))})})}const $t=ht.memo(wt),jt=o.div`
|
|
2
2
|
top: ${i.sp0};
|
|
3
3
|
left: ${i.sp0};
|
|
4
4
|
z-index: 2;
|
|
@@ -95,7 +95,7 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
95
95
|
cursor: pointer;
|
|
96
96
|
gap: 5px;
|
|
97
97
|
color: ${e=>e.theme.colors.primary};
|
|
98
|
-
`,U={containerPaddingLeft:new y(p[3],p[4]),containerPaddingRight:new y(p[2],p[3]),containerPaddingTop:new y(p[2],p[3]),containerPaddingBottom:new y(p[2],p[3])};function Mt({data:e,boxType:r}){const{description:n,amount:h,status:l,date:a}=e,u=W("0,0.00",h),d=C(),{dateFormat:g}=L.getLocalizedStrings(),x=oe(),$=x[0].width,j=x[1].width,c=x[2].width,s=xt(l);if(d==="small"){const b=t.jsx(
|
|
98
|
+
`,U={containerPaddingLeft:new y(p[3],p[4]),containerPaddingRight:new y(p[2],p[3]),containerPaddingTop:new y(p[2],p[3]),containerPaddingBottom:new y(p[2],p[3])};function Mt({data:e,boxType:r}){const{description:n,amount:h,status:l,date:a}=e,u=W("0,0.00",h),d=C(),{dateFormat:g}=L.getLocalizedStrings(),x=oe(),$=x[0].width,j=x[1].width,c=x[2].width,s=xt(l);if(d==="small"){const b=t.jsx(Ft,{children:t.jsxs(Kt,{children:[t.jsxs(Vt,{children:[t.jsxs(Et,{children:[t.jsx(fe,{}),t.jsx(Gt,{children:t.jsx(Ut,{children:t.jsxs(Xt,{children:[n,l!=null&&l.code!=="completed"?t.jsxs(t.Fragment,{children:[t.jsx(Jt,{}),t.jsx(_t,{color:s?.color,children:s?.value})]}):null]})})})]}),t.jsx(Zt,{children:t.jsx(qt,{children:a!=null?`${oe()[1].value}: `+a.format(g.visual.MMMDCommaYYYYformat):null})})]}),t.jsx(Wt,{children:t.jsx(Qt,{children:t.jsx($e,{children:u})})})]})});return t.jsx(me,{content:b,boxType:r,isDisabled:!0,isNotClickable:!0})}const m=t.jsxs(Ot,{windowSize:d,children:[t.jsxs(At,{windowSize:d,width:$,children:[t.jsx(fe,{}),t.jsxs(It,{windowSize:d,children:[t.jsx(we,{children:n}),l!=null&&l.code!=="completed"?t.jsxs(Ht,{windowSize:d,children:[t.jsx(Yt,{}),t.jsx(Nt,{color:s?.color,children:s?.value})]}):null]})]}),t.jsx(Rt,{windowSize:d,width:j,children:t.jsx(we,{children:a!=null?a.format(g.visual.MMMDCommaYYYYformat):null})}),t.jsx(Bt,{windowSize:d,width:c,children:t.jsx($e,{children:u})})]});return t.jsx(me,{content:m,boxType:r,isDisabled:!0,isNotClickable:!0})}const Ot=o.div`
|
|
99
99
|
width: 100%;
|
|
100
100
|
display: flex;
|
|
101
101
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -158,12 +158,12 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
158
158
|
display: flex;
|
|
159
159
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
160
160
|
align-items: center;
|
|
161
|
-
`,
|
|
161
|
+
`,Nt=o(G)`
|
|
162
162
|
color: ${e=>e.color};
|
|
163
163
|
-webkit-box-orient: vertical;
|
|
164
164
|
-webkit-line-clamp: 1;
|
|
165
165
|
display: -webkit-box;
|
|
166
|
-
`,
|
|
166
|
+
`,Yt=o.div`
|
|
167
167
|
display: block;
|
|
168
168
|
width: ${i.sp1};
|
|
169
169
|
height: ${i.sp1};
|
|
@@ -177,7 +177,7 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
177
177
|
-webkit-line-clamp: 1;
|
|
178
178
|
text-align: right;
|
|
179
179
|
width: 100%;
|
|
180
|
-
`,
|
|
180
|
+
`,Ft=o.div`
|
|
181
181
|
width: 100%;
|
|
182
182
|
display: flex;
|
|
183
183
|
flex-direction: column;
|
|
@@ -215,14 +215,14 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
215
215
|
min-width: 0;
|
|
216
216
|
`,Ut=o.div`
|
|
217
217
|
width: 100%;
|
|
218
|
-
`,
|
|
218
|
+
`,Xt=o(O)`
|
|
219
219
|
display: block;
|
|
220
220
|
color: ${e=>e.theme.colors.hero};
|
|
221
221
|
line-height: 1.4;
|
|
222
222
|
text-align: left;
|
|
223
223
|
word-break: break-word;
|
|
224
224
|
overflow-wrap: break-word;
|
|
225
|
-
`,
|
|
225
|
+
`,Jt=o.span`
|
|
226
226
|
display: inline-block;
|
|
227
227
|
width: ${i.sp1};
|
|
228
228
|
height: ${i.sp1};
|
|
@@ -293,7 +293,7 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
293
293
|
position: relative;
|
|
294
294
|
width: auto;
|
|
295
295
|
height: 100%;
|
|
296
|
-
`,Be=o.div``,mi=["editPortfolio","taxLetter","statements","settings"],ui=e=>V.stringToUnionStrict(e??"",mi),
|
|
296
|
+
`,Be=o.div``,mi=["editPortfolio","taxLetter","statements","settings"],ui=e=>V.stringToUnionStrict(e??"",mi),X=L.getLocalizedStrings().spendManagement.treasury.overviewPage,je=[{value:"editPortfolio",label:X.editPortfolio},{value:"taxLetter",label:X.taxLetter},{value:"statements",label:X.statements},{value:"settings",label:X.settings}],yi=({onOptionSelection:e,onTransferClick:r})=>{const n=Ue(),h=C(),l=L.getLocalizedStrings().spendManagement.treasury.overviewPage,a=n.loggedInUserRoleMap.treasury_user===!0||Xe(n),u=je.filter(g=>g.value==="statements"||g.value==="taxLetter"),d=M();return t.jsxs(fi,{isTopAlign:!1,children:[t.jsx(Je,{entity:"zeni_treasury",onOptionSelection:g=>{const x=ui(g);x!=null&&e(x)},isMoreOption:!0,backgroundColor:d.colors.grey5,options:a?u:je}),!a&&(h==="small"?t.jsx(wi,{onClick:r}):t.jsx(_e,{variant:"primary",size:"small",style:{display:"flex",alignItems:"center"},onClick:r,label:l.transferFunds}))]})},fi=o.div`
|
|
297
297
|
display: flex;
|
|
298
298
|
flex-direction: row;
|
|
299
299
|
align-items: ${({isTopAlign:e})=>e?"flex-start":"center"};
|
|
@@ -311,7 +311,7 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
311
311
|
justify-content: center;
|
|
312
312
|
align-items: center;
|
|
313
313
|
background-color: ${e=>e.theme.colors.grey4};
|
|
314
|
-
`,P={tickLabelText:new B("extraSmallRegular","smallRegular"),balanceIntegerStyles:new B("h5Regular","h3Regular"),integerStyles:new B("largeRegular","h6Regular"),decimalStyles:new B("standardRegular","standardRegular"),fundSummaryStyles:new B("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new B("standardMedium","largeMedium")},T={accountDetailHeaderPaddingRight:new y(p[3],p[8]),accountDetailHeaderPaddingBottom:new y(p[3],p[6]),accountDetailHeaderPaddingLeft:new y(p[3],p[8]),accountDetailHeaderPaddingTop:new y(p[3],p[6]),accountDetailContentMarginTop:new y(p[4],p[4]),areaChartHeight:new y(114,209),accountDetailHeaderGap:new y(18,100,184)},{spendManagement:{zeniAccounts:be,treasury:{overviewPage:v}},dateFormat:Z,common:ji}=L.getLocalizedStrings(),Ie=f.memo(({accountHistory:e})=>{const r=C(),n=M(),[h,l]=f.useState(),a=f.useMemo(()=>{const s=V.zeniDate(new Date().toISOString()),m=s.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const A=D/6;let R;return A<.5?R=0:A<.6?R=.9*((A-.5)/.09999999999999998):R=.9,{date:(D===6?s:m.clone().add(Math.round(D*b),"day")).toISOString(),value:R}})},[]),u=f.useMemo(()=>(a.length<=0,0),[a.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(s=>s.balance?.available.amount===0)),g=f.useMemo(()=>e.accountHistoryWithBalance.map(s=>({...s,date:s.date.toISOString()})),[e.accountHistoryWithBalance]),x=f.useCallback(s=>{const m=Array.isArray(s)?s:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=W("0,0[.]00",D),b=V.zeniDate(m[0].payload?.date??"").format(Z.visual.DMMMYYYYFormat)}return t.jsxs(Wi,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),$=f.useCallback(s=>{const m=s,{x:b,y:z}=m,{value:D}=m.payload;let A=!1;e.accountHistoryWithBalance.length>360&&(A=!0);const R=A?V.zeniDate(D).format(Z.visual.MMMformat):V.zeniDate(D).format(Z.visual.MMMDFormat);return t.jsx(Ri,{translateX:b,translateY:z,children:t.jsx(Ni,{windowSize:r,dy:20,dx:-25,children:R})})},[e.accountHistoryWithBalance.length,r]),j=f.useCallback(({cx:s,cy:m,dataKey:b})=>(b==="balance.available.amount"&&(h?.x!==s||h?.y!==m)&&l({x:s,y:m}),t.jsx(Ei,{cx:s,cy:m,strokeWidth:1,r:p[1]})),[h]),c=f.useMemo(()=>{const s=e.accountHistoryWithBalance.length;return s<=0?0:s>360?Math.floor(s/12):Math.floor(s/7)},[e.accountHistoryWithBalance.length]);return t.jsx(Yi,{children:d?t.jsxs(Qi,{children:[t.jsx(le,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(de,{data:a,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:n.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:n.colors.grey2,stopOpacity:.02})]})}),t.jsx(ce,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,tick:s=>$(s),interval:u,padding:{right:p[4]}}),t.jsx(he,{tick:!1,axisLine:!1,domain:[0,1]}),t.jsx(pe,{activeDot:void 0,fillOpacity:1,dot:!1,type:"monotone",dataKey:"value",stroke:n.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(eo,{children:t.jsx(qi,{children:v.noData})})]}):t.jsx(le,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(de,{data:g,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:w.brandColorJade,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:w.brandColorJade,stopOpacity:.03})]})}),t.jsx(ce,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,reversed:!0,tick:s=>$(s),padding:{right:p[4]},interval:c}),t.jsx(he,{tick:!1,axisLine:!1}),t.jsx(Ge,{position:h,content:({payload:s})=>x(s),cursor:{strokeDasharray:"3",stroke:w.brandColorJade}}),t.jsx(pe,{activeDot:j,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:w.brandColorJade,fill:"url(#colorUv)"})]})})})});Ie.displayName="AccountBalanceGraph";const Yo=({treasuryDetail:e,treasurySetupView:r,onColumnSortConfigChanged:n,onBackClick:h,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:a,onTransferClick:u})=>{const d=C(),g=M(),x=Ye().analytics;Ke({componentName:"treasury.overview",enabled:e.fetchState==="Completed"});const $=m=>{x.trackTreasuryDashboardInteraction((()=>{switch(m){case"editPortfolio":return"Edit Portfolio";case"taxLetter":return"Tax Letter";case"statements":return"Statement";default:return"Settings"}})()),a(m)},j=e.accountSummary,c=f.useCallback(m=>{let b=null,z;switch(m){case"insuredFunds":b=t.jsx(Pe,{children:v.insuredFundsTooltip}),z="280px";break;case"totalBalance":b=t.jsxs(Zi,{children:[t.jsx(_i,{children:v.balanceTooltip.base}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:W("0,0[.]00",j?.totalBalance)})]}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:W("0,0[.]00",j?.processingBalance)})]}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:W("0,0[.]00",j?.availableBalance)})]})]}),z="312px";break;case"sevenDayYield":b=t.jsx(Pe,{children:v.fundTile.sevenDayYieldTooltip}),z="464px";break;default:b=t.jsx(t.Fragment,{});break}return t.jsx(Fe,{children:t.jsx(ae,{display:"flex",placement:d==="small"?"bottom":"top",title:b,style:{textAlign:"left"},maxWidth:z,children:m==="insuredFunds"?t.jsx(uo,{}):t.jsx(Ne,{})})})},[j,d]),s=t.jsx(yi,{onOptionSelection:$,onTransferClick:()=>{x.trackTreasuryDashboardInteraction("Transfer Funds"),u()}});return t.jsxs(Di,{children:[t.jsx(Ve,{title:v.title,onBackClick:h,showMenuIcon:!1,backgroundColor:g.colors.grey5,style:{zIndex:3,...ie.largeSemiBold.cssObject},rightSideComponent:s,source:"treasury"}),t.jsxs(Ti,{windowSize:d,children:[t.jsxs(Li,{windowSize:d,children:[t.jsx(bi,{fundAllocation:r.currentAllocation,fundsData:r.fundsData,getToolTipContent:c,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Ai,{windowSize:d,children:t.jsx(Ie,{accountHistory:e.accountHistory})})]}),t.jsx(vi,{analytics:x,fundsData:r.fundsData,fundAllocation:r.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(He,{treasuryDetail:e,onColumnSortConfigChanged:n}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Bi,{children:[t.jsx(Ii,{onClick:l,"data-testid":E("account-detail-reload"),children:t.jsx(Fi,{})}),t.jsx(Hi,{children:ji.reloadPage.label})]}):t.jsx($i,{children:t.jsx(We,{size:"ExtraLarge",start:!0})})]})},He=f.memo(({treasuryDetail:e,onColumnSortConfigChanged:r})=>{const n=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Pi,{windowSize:n,children:t.jsx(ri,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:r})}):t.jsx(zi,{})})});He.displayName="TransactionListScreen";const bi=({treasuryDetail:e,hasAccountActivity:r,getToolTipContent:n,fundAllocation:h,fundsData:l})=>{const a=C(),[u,d]=f.useState(!1);return f.useEffect(()=>{u===!0&&setTimeout(()=>{d(!1)},800)},[u]),t.jsxs(Mi,{children:[t.jsxs(X,{children:[t.jsx(Ki,{children:t.jsxs(K,{children:[Y(be.zeniAccountList.totalAvailableBalance),n("totalBalance")]})}),t.jsx(Xi,{windowSize:a,children:e.accountSummary?.availableBalance?t.jsx(t.Fragment,{children:t.jsx(_,{amount:e.accountSummary?.availableBalance,integerStyles:P.balanceIntegerStyles.styleObject(a),decimalStyles:P.balanceIntegerStyles.styleObject(a)})}):null})]}),t.jsxs(X,{children:[t.jsxs(K,{children:[Y(v.insuredFunds),n("insuredFunds")]}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(_,{amount:{amount:e.accountSummary?.insuredFunds.amount??0,currencyCode:"USD",currencySymbol:"$"},integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})}),t.jsx(K,{children:Y(v.insuredFundsAmount)})]}),r&&t.jsxs(Oi,{children:[t.jsxs(Ce,{children:[t.jsx(K,{children:Y(be.common.totalYieldEarned)}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(_,{amount:e.accountSummary?.totalYield,integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})})]}),t.jsxs(Ce,{children:[t.jsxs(K,{children:[Y(v.sevenDayYield)," ",n("sevenDayYield")]}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Vi,{windowSize:a,children:[Ci(h??{},l),"%"]})})]})]})]})},vi=({analytics:e,fundsData:r,fundAllocation:n,hasAccountActivity:h})=>{const[l,a]=f.useState(!1),u=C(),d=M(),g=()=>{a(x=>!x)};return t.jsx(to,{windowSize:u,allTilesExpanded:l,children:r.map((x,$)=>{const j=l,c=ne($,d);return t.jsxs(io,{expanded:j,windowSize:u,children:[t.jsx(xo,{bgColor:c.headerBackground}),t.jsx(Si,{fund:x,fundIndex:$,fundAllocation:n!=null?n[x.fundCode]:0,hasAccountActivity:h}),!l&&t.jsx(oo,{children:t.jsxs(ao,{onClick:()=>{e.trackTreasuryDashboardInteraction("View Details "+x.fundCompanyName+" "+x.fundName),g()},children:[v.fundTile.viewDetails,t.jsx(Ui,{})]})}),j&&t.jsxs(t.Fragment,{children:[t.jsx(Co,{}),t.jsx(ki,{analytics:e,fund:x,fundIndex:$,onHide:g})]})]},x.fundCode)})})},Si=({fund:e,fundIndex:r,fundAllocation:n})=>{const h=M(),l=ne(r,h),a=C();return t.jsxs(ro,{windowSize:a,children:[t.jsxs(De,{style:{width:a==="small"?"100%":"50%"},children:[t.jsx(so,{children:t.jsxs(lo,{children:[t.jsx(Te,{windowSize:a,children:e.fundCode}),t.jsxs(Te,{windowSize:a,children:[n,"%"]})]})}),t.jsxs(co,{color:l.fundNameColor,children:[t.jsx(X,{children:e.fundCompanyName}),t.jsx(X,{children:e.fundName})]})]}),t.jsx(no,{windowSize:a,children:t.jsxs(De,{style:{alignItems:a==="small"?"flex-start":"flex-end"},children:[t.jsxs(po,{children:[v.sevenDayYield,t.jsx(Fe,{style:{marginRight:"-20px",marginTop:"2px"},children:t.jsx(ae,{placement:a==="small"?"bottom":"bottom-end",data:v.fundTile.sevenDayYieldTooltip,variant:"small-description",maxWidth:"464px",children:t.jsx(Ne,{})})})]}),t.jsxs(ho,{windowSize:a,children:[e.yield,"%"]})]})})]})},ki=({analytics:e,fund:r,fundIndex:n,onHide:h})=>{const l=M(),{common:a,spendManagement:u}=L.getLocalizedStrings(),d=u.treasury.promoPage,g=ne(n,l);return t.jsxs(t.Fragment,{children:[t.jsx(yo,{children:r.description}),t.jsxs(fo,{children:[t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," Liquidity"]}),t.jsx(F,{children:r.liquidityTimeline})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.fundSize]}),t.jsx(F,{color:g.fundNameColor,children:qe(r.fundSize,r.currencyCode)})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.maturity]}),t.jsxs(F,{children:[r.maturity," ",a.timeStrings.days]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.expenseRatio]}),t.jsxs(F,{children:[r.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.riskRating]}),t.jsx(F,{children:r.riskRating})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(N,{})," ",d.composition]}),t.jsx(F,{children:t.jsxs(wo,{children:[r.compositions[0].investedIn," ",r.compositions[0].percentage,Array.isArray(r.compositions)&&r.compositions.length>0&&t.jsx(ae,{style:{textAlign:"left",display:"inline"},title:t.jsx($o,{children:r.compositions.map((x,$)=>t.jsxs(jo,{children:[t.jsx(bo,{}),t.jsx(k,{children:x.investedIn}),t.jsx(k,{style:{marginLeft:"auto",textAlign:"right"},children:x.percentage})]},$))}),children:t.jsxs(vo,{children:["+",r.compositions.length]})})]})})]})]}),t.jsxs(go,{children:[t.jsxs(So,{onClick:()=>e.trackTreasuryProspectusClick(r.fundCompanyName+" "+r.fundName,r.fundCode,"Treasury Overview Page"),href:r.url,target:"_blank",rel:"noopener noreferrer",children:[d.asOf," ",r.asOfDate.format("MMM D, YYYY"),t.jsx(ko,{})]}),t.jsxs(mo,{onClick:h,children:[d.hide,t.jsx(Ji,{})]})]})]})};function Ci(e,r){let n=0;for(const h of r){const l=e[h.fundCode]??0;l>0&&h.yield!=null&&(n+=h.yield*l)}return Number((n/100).toFixed(2))}const Y=e=>t.jsx(Gi,{children:e}),zi=o.div`
|
|
314
|
+
`,P={tickLabelText:new B("extraSmallRegular","smallRegular"),balanceIntegerStyles:new B("h5Regular","h3Regular"),integerStyles:new B("largeRegular","h6Regular"),decimalStyles:new B("standardRegular","standardRegular"),fundSummaryStyles:new B("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new B("standardMedium","largeMedium")},T={accountDetailHeaderPaddingRight:new y(p[3],p[8]),accountDetailHeaderPaddingBottom:new y(p[3],p[6]),accountDetailHeaderPaddingLeft:new y(p[3],p[8]),accountDetailHeaderPaddingTop:new y(p[3],p[6]),accountDetailContentMarginTop:new y(p[4],p[4]),areaChartHeight:new y(114,209),accountDetailHeaderGap:new y(18,100,184)},{spendManagement:{zeniAccounts:be,treasury:{overviewPage:v}},dateFormat:Z,common:ji}=L.getLocalizedStrings(),Ie=f.memo(({accountHistory:e})=>{const r=C(),n=M(),[h,l]=f.useState(),a=f.useMemo(()=>{const s=V.zeniDate(new Date().toISOString()),m=s.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const A=D/6;let R;return A<.5?R=0:A<.6?R=.9*((A-.5)/.09999999999999998):R=.9,{date:(D===6?s:m.clone().add(Math.round(D*b),"day")).toISOString(),value:R}})},[]),u=f.useMemo(()=>(a.length<=0,0),[a.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(s=>s.balance?.available.amount===0)),g=f.useMemo(()=>e.accountHistoryWithBalance.map(s=>({...s,date:s.date.toISOString()})),[e.accountHistoryWithBalance]),x=f.useCallback(s=>{const m=Array.isArray(s)?s:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=W("0,0[.]00",D),b=V.zeniDate(m[0].payload?.date??"").format(Z.visual.DMMMYYYYFormat)}return t.jsxs(Wi,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),$=f.useCallback(s=>{const m=s,{x:b,y:z}=m,{value:D}=m.payload;let A=!1;e.accountHistoryWithBalance.length>360&&(A=!0);const R=A?V.zeniDate(D).format(Z.visual.MMMformat):V.zeniDate(D).format(Z.visual.MMMDFormat);return t.jsx(Ri,{translateX:b,translateY:z,children:t.jsx(Yi,{windowSize:r,dy:20,dx:-25,children:R})})},[e.accountHistoryWithBalance.length,r]),j=f.useCallback(({cx:s,cy:m,dataKey:b})=>(b==="balance.available.amount"&&(h?.x!==s||h?.y!==m)&&l({x:s,y:m}),t.jsx(Ei,{cx:s,cy:m,strokeWidth:1,r:p[1]})),[h]),c=f.useMemo(()=>{const s=e.accountHistoryWithBalance.length;return s<=0?0:s>360?Math.floor(s/12):Math.floor(s/7)},[e.accountHistoryWithBalance.length]);return t.jsx(Fi,{children:d?t.jsxs(Qi,{children:[t.jsx(le,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(de,{data:a,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:n.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:n.colors.grey2,stopOpacity:.02})]})}),t.jsx(ce,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,tick:s=>$(s),interval:u,padding:{right:p[4]}}),t.jsx(he,{tick:!1,axisLine:!1,domain:[0,1]}),t.jsx(pe,{activeDot:void 0,fillOpacity:1,dot:!1,type:"monotone",dataKey:"value",stroke:n.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(eo,{children:t.jsx(qi,{children:v.noData})})]}):t.jsx(le,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(de,{data:g,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:w.brandColorJade,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:w.brandColorJade,stopOpacity:.03})]})}),t.jsx(ce,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,reversed:!0,tick:s=>$(s),padding:{right:p[4]},interval:c}),t.jsx(he,{tick:!1,axisLine:!1}),t.jsx(Ge,{position:h,content:({payload:s})=>x(s),cursor:{strokeDasharray:"3",stroke:w.brandColorJade}}),t.jsx(pe,{activeDot:j,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:w.brandColorJade,fill:"url(#colorUv)"})]})})})});Ie.displayName="AccountBalanceGraph";const Fo=({treasuryDetail:e,treasurySetupView:r,onColumnSortConfigChanged:n,onBackClick:h,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:a,onTransferClick:u})=>{const d=C(),g=M(),x=Fe().analytics;Ke({componentName:"treasury.overview",enabled:e.fetchState==="Completed"});const $=m=>{x.trackTreasuryDashboardInteraction((()=>{switch(m){case"editPortfolio":return"Edit Portfolio";case"taxLetter":return"Tax Letter";case"statements":return"Statement";default:return"Settings"}})()),a(m)},j=e.accountSummary,c=f.useCallback(m=>{let b=null,z;switch(m){case"insuredFunds":b=t.jsx(Pe,{children:v.insuredFundsTooltip}),z="280px";break;case"totalBalance":b=t.jsxs(Zi,{children:[t.jsx(_i,{children:v.balanceTooltip.base}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:W("0,0[.]00",j?.totalBalance)})]}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:W("0,0[.]00",j?.processingBalance)})]}),t.jsxs(Q,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:W("0,0[.]00",j?.availableBalance)})]})]}),z="312px";break;case"sevenDayYield":b=t.jsx(Pe,{children:v.fundTile.sevenDayYieldTooltip}),z="464px";break;default:b=t.jsx(t.Fragment,{});break}return t.jsx(Ne,{children:t.jsx(ae,{display:"flex",placement:d==="small"?"bottom":"top",title:b,style:{textAlign:"left"},maxWidth:z,children:m==="insuredFunds"?t.jsx(uo,{}):t.jsx(Ye,{})})})},[j,d]),s=t.jsx(yi,{onOptionSelection:$,onTransferClick:()=>{x.trackTreasuryDashboardInteraction("Transfer Funds"),u()}});return t.jsxs(Di,{children:[t.jsx(Ve,{title:v.title,onBackClick:h,showMenuIcon:!1,backgroundColor:g.colors.grey5,style:{zIndex:3,...ie.largeSemiBold.cssObject},rightSideComponent:s,source:"treasury"}),t.jsxs(Ti,{windowSize:d,children:[t.jsxs(Li,{windowSize:d,children:[t.jsx(bi,{fundAllocation:r.currentAllocation,fundsData:r.fundsData,getToolTipContent:c,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Ai,{windowSize:d,children:t.jsx(Ie,{accountHistory:e.accountHistory})})]}),t.jsx(vi,{analytics:x,fundsData:r.fundsData,fundAllocation:r.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(He,{treasuryDetail:e,onColumnSortConfigChanged:n}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Bi,{children:[t.jsx(Ii,{onClick:l,"data-testid":E("account-detail-reload"),children:t.jsx(Ni,{})}),t.jsx(Hi,{children:ji.reloadPage.label})]}):t.jsx($i,{children:t.jsx(We,{size:"ExtraLarge",start:!0})})]})},He=f.memo(({treasuryDetail:e,onColumnSortConfigChanged:r})=>{const n=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Pi,{windowSize:n,children:t.jsx(ri,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:r})}):t.jsx(zi,{})})});He.displayName="TransactionListScreen";const bi=({treasuryDetail:e,hasAccountActivity:r,getToolTipContent:n,fundAllocation:h,fundsData:l})=>{const a=C(),[u,d]=f.useState(!1);return f.useEffect(()=>{u===!0&&setTimeout(()=>{d(!1)},800)},[u]),t.jsxs(Mi,{children:[t.jsxs(J,{children:[t.jsx(Ki,{children:t.jsxs(K,{children:[F(be.zeniAccountList.totalAvailableBalance),n("totalBalance")]})}),t.jsx(Ji,{windowSize:a,children:e.accountSummary?.availableBalance?t.jsx(t.Fragment,{children:t.jsx(_,{amount:e.accountSummary?.availableBalance,integerStyles:P.balanceIntegerStyles.styleObject(a),decimalStyles:P.balanceIntegerStyles.styleObject(a)})}):null})]}),t.jsxs(J,{children:[t.jsxs(K,{children:[F(v.insuredFunds),n("insuredFunds")]}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(_,{amount:{amount:e.accountSummary?.insuredFunds.amount??0,currencyCode:"USD",currencySymbol:"$"},integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})}),t.jsx(K,{children:F(v.insuredFundsAmount)})]}),r&&t.jsxs(Oi,{children:[t.jsxs(Ce,{children:[t.jsx(K,{children:F(be.common.totalYieldEarned)}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(_,{amount:e.accountSummary?.totalYield,integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})})]}),t.jsxs(Ce,{children:[t.jsxs(K,{children:[F(v.sevenDayYield)," ",n("sevenDayYield")]}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Vi,{windowSize:a,children:[Ci(h??{},l),"%"]})})]})]})]})},vi=({analytics:e,fundsData:r,fundAllocation:n,hasAccountActivity:h})=>{const[l,a]=f.useState(!1),u=C(),d=M(),g=()=>{a(x=>!x)};return t.jsx(to,{windowSize:u,allTilesExpanded:l,children:r.map((x,$)=>{const j=l,c=ne($,d);return t.jsxs(io,{expanded:j,windowSize:u,children:[t.jsx(xo,{bgColor:c.headerBackground}),t.jsx(Si,{fund:x,fundIndex:$,fundAllocation:n!=null?n[x.fundCode]:0,hasAccountActivity:h}),!l&&t.jsx(oo,{children:t.jsxs(ao,{onClick:()=>{e.trackTreasuryDashboardInteraction("View Details "+x.fundCompanyName+" "+x.fundName),g()},children:[v.fundTile.viewDetails,t.jsx(Ui,{})]})}),j&&t.jsxs(t.Fragment,{children:[t.jsx(Co,{}),t.jsx(ki,{analytics:e,fund:x,fundIndex:$,onHide:g})]})]},x.fundCode)})})},Si=({fund:e,fundIndex:r,fundAllocation:n})=>{const h=M(),l=ne(r,h),a=C();return t.jsxs(ro,{windowSize:a,children:[t.jsxs(De,{style:{width:a==="small"?"100%":"50%"},children:[t.jsx(so,{children:t.jsxs(lo,{children:[t.jsx(Te,{windowSize:a,children:e.fundCode}),t.jsxs(Te,{windowSize:a,children:[n,"%"]})]})}),t.jsxs(co,{color:l.fundNameColor,children:[t.jsx(J,{children:e.fundCompanyName}),t.jsx(J,{children:e.fundName})]})]}),t.jsx(no,{windowSize:a,children:t.jsxs(De,{style:{alignItems:a==="small"?"flex-start":"flex-end"},children:[t.jsxs(po,{children:[v.sevenDayYield,t.jsx(Ne,{style:{marginRight:"-20px",marginTop:"2px"},children:t.jsx(ae,{placement:a==="small"?"bottom":"bottom-end",data:v.fundTile.sevenDayYieldTooltip,variant:"small-description",maxWidth:"464px",children:t.jsx(Ye,{})})})]}),t.jsxs(ho,{windowSize:a,children:[e.yield,"%"]})]})})]})},ki=({analytics:e,fund:r,fundIndex:n,onHide:h})=>{const l=M(),{common:a,spendManagement:u}=L.getLocalizedStrings(),d=u.treasury.promoPage,g=ne(n,l);return t.jsxs(t.Fragment,{children:[t.jsx(yo,{children:r.description}),t.jsxs(fo,{children:[t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," Liquidity"]}),t.jsx(N,{children:r.liquidityTimeline})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.fundSize]}),t.jsx(N,{color:g.fundNameColor,children:qe(r.fundSize,r.currencyCode)})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.maturity]}),t.jsxs(N,{children:[r.maturity," ",a.timeStrings.days]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.expenseRatio]}),t.jsxs(N,{children:[r.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.riskRating]}),t.jsx(N,{children:r.riskRating})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.composition]}),t.jsx(N,{children:t.jsxs(wo,{children:[r.compositions[0].investedIn," ",r.compositions[0].percentage,Array.isArray(r.compositions)&&r.compositions.length>0&&t.jsx(ae,{style:{textAlign:"left",display:"inline"},title:t.jsx($o,{children:r.compositions.map((x,$)=>t.jsxs(jo,{children:[t.jsx(bo,{}),t.jsx(k,{children:x.investedIn}),t.jsx(k,{style:{marginLeft:"auto",textAlign:"right"},children:x.percentage})]},$))}),children:t.jsxs(vo,{children:["+",r.compositions.length]})})]})})]})]}),t.jsxs(go,{children:[t.jsxs(So,{onClick:()=>e.trackTreasuryProspectusClick(r.fundCompanyName+" "+r.fundName,r.fundCode,"Treasury Overview Page"),href:r.url,target:"_blank",rel:"noopener noreferrer",children:[d.asOf," ",r.asOfDate.format("MMM D, YYYY"),t.jsx(ko,{})]}),t.jsxs(mo,{onClick:h,children:[d.hide,t.jsx(Xi,{})]})]})]})};function Ci(e,r){let n=0;for(const h of r){const l=e[h.fundCode]??0;l>0&&h.yield!=null&&(n+=h.yield*l)}return Number((n/100).toFixed(2))}const F=e=>t.jsx(Gi,{children:e}),zi=o.div`
|
|
315
315
|
display: flex;
|
|
316
316
|
flex-direction: column;
|
|
317
317
|
align-items: center;
|
|
@@ -344,7 +344,7 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
344
344
|
gap: ${i.sp4};
|
|
345
345
|
flex-direction: column;
|
|
346
346
|
justify-content: space-between;
|
|
347
|
-
`,
|
|
347
|
+
`,J=o.div``,Oi=o.div`
|
|
348
348
|
display: flex;
|
|
349
349
|
flex-direction: row;
|
|
350
350
|
gap: ${i.sp6};
|
|
@@ -385,7 +385,7 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
385
385
|
`,Hi=o(Me)`
|
|
386
386
|
margin-top: ${i.sp3};
|
|
387
387
|
color: ${e=>e.theme.colors.hero};
|
|
388
|
-
`,
|
|
388
|
+
`,Ni=o(Le)`
|
|
389
389
|
height: ${i.sp5};
|
|
390
390
|
width: ${i.sp5};
|
|
391
391
|
margin: ${i.sp5};
|
|
@@ -393,10 +393,10 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
393
393
|
&:hover {
|
|
394
394
|
color: ${e=>e.theme.colors.primary};
|
|
395
395
|
}
|
|
396
|
-
`,
|
|
396
|
+
`,Yi=o.text`
|
|
397
397
|
fill: ${e=>e.theme.colors.hero};
|
|
398
398
|
${e=>`${P.tickLabelText.style(e.windowSize)}`};
|
|
399
|
-
`,ve=o.linearGradient``,Se=o.stop``,ke=o.stop``,
|
|
399
|
+
`,ve=o.linearGradient``,Se=o.stop``,ke=o.stop``,Fi=o.div`
|
|
400
400
|
display: flex;
|
|
401
401
|
justify-content: flex-end;
|
|
402
402
|
margin-left: -${i.sp8};
|
|
@@ -450,17 +450,17 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
450
450
|
margin-left: ${i.sp1};
|
|
451
451
|
margin-right: ${i.sp1};
|
|
452
452
|
color: ${e=>e.theme.colors.hero};
|
|
453
|
-
`,
|
|
453
|
+
`,Xi=o(ot)`
|
|
454
454
|
height: 12px;
|
|
455
455
|
width: 12px;
|
|
456
456
|
margin-left: ${i.sp1};
|
|
457
457
|
margin-right: ${i.sp1};
|
|
458
458
|
color: ${e=>e.theme.colors.hero};
|
|
459
|
-
`,
|
|
459
|
+
`,Ji=o.div`
|
|
460
460
|
display: flex;
|
|
461
461
|
align-items: baseline;
|
|
462
462
|
color: ${e=>e.theme.colors.primary};
|
|
463
|
-
`,
|
|
463
|
+
`,Ne=o.div`
|
|
464
464
|
display: flex;
|
|
465
465
|
color: ${e=>e.theme.colors.grey1};
|
|
466
466
|
&:hover {
|
|
@@ -486,7 +486,7 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
486
486
|
color: ${e=>e.theme.colors.hero};
|
|
487
487
|
`,te=o.div`
|
|
488
488
|
color: ${w.primaryDark};
|
|
489
|
-
`,
|
|
489
|
+
`,Ye=o(Ee)`
|
|
490
490
|
width: ${i.sp3};
|
|
491
491
|
height: ${i.sp3};
|
|
492
492
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -639,12 +639,12 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
639
639
|
width: 140px;
|
|
640
640
|
display: flex;
|
|
641
641
|
align-items: center;
|
|
642
|
-
`,
|
|
642
|
+
`,N=o(O)`
|
|
643
643
|
color: ${e=>e.color??e.theme.colors.primary};
|
|
644
644
|
flex: 1;
|
|
645
645
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
646
646
|
padding-bottom: 4px;
|
|
647
|
-
`,
|
|
647
|
+
`,Y=o.div`
|
|
648
648
|
width: 4px;
|
|
649
649
|
height: 4px;
|
|
650
650
|
border-radius: 50%;
|
|
@@ -705,4 +705,4 @@ import{q as C,b as M,a9 as Ye,cr as Ke,j as t,F as L,aN as W,c5 as ae,bF as Ve,C
|
|
|
705
705
|
min-height: 1px;
|
|
706
706
|
max-height: 1px;
|
|
707
707
|
margin-top: ${i.sp4};
|
|
708
|
-
`;export{
|
|
708
|
+
`;export{Fo as default};
|