@zeniai/web-cockpit-ui 1.13.97-prod → 1.13.98-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-Cwc2nmvY-Yb3TlvKZ.js → ACHDetailsPage-C_NL9J0X-DQ3wv9Rt.js} +1 -1
- package/dist/assets/{AIPerformancePage-CK4ZdUEb-Cw0WnkfY.js → AIPerformancePage-DyiOQxOC-Deykua_G.js} +21 -21
- package/dist/assets/{AccountInfoPage-LiZYkJMA-yHSK7Rnh.js → AccountInfoPage-xglon85A-yRVQMsLQ.js} +5 -5
- package/dist/assets/AccountInfoPageContent-BtMF3gSM-CwB-GVxY.js +149 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-CBOR2m1X-CCVpHHOa.js → AccountReconDetailsDrawerPage-DJ9x8tbi-LYKktAAO.js} +17 -17
- package/dist/assets/{AccountRow--5DnpNqk-BQr3z4DI.js → AccountRow-CP7Tu1pO-VLQJgkE6.js} +23 -23
- package/dist/assets/{AccountsPromoCardStack-DCI8_ihc-BSmZm-Zn.js → AccountsPromoCardStack-1elvD1M0-GOX35w9m.js} +22 -22
- package/dist/assets/{AddAddressForCardDrawer-C_RALUZ7-CyM0vwpI.js → AddAddressForCardDrawer-C8-wy-3B-di9k1XXJ.js} +2 -2
- package/dist/assets/{AddToWalletPage-7sC3Q2Pb-Cpm0UfHl.js → AddToWalletPage-DsqplF5y-BOnzBTtb.js} +19 -19
- package/dist/assets/{AgingReportsPage-PrvYryW8-I7-sb1Ih.js → AgingReportsPage-DClcRhxg-CS8rEKD_.js} +6 -6
- package/dist/assets/{AllUserItems-DlTukPhY-C2edQD_z.js → AllUserItems-BOwAIYTQ-ikKyJOZ6.js} +7 -7
- package/dist/assets/{ApAgingDetailPage-BVciGQma-DJWsvipb.js → ApAgingDetailPage-CcU6Hz-o-C9CP7TBd.js} +4 -4
- package/dist/assets/{AppBasePage-uJGLWCbr-CYWyINGb.js → AppBasePage-C7kCz0qg-gwqzuxWV.js} +2 -2
- package/dist/assets/{AppDrawerContent-SD57OqHe-nBHsW7E9.js → AppDrawerContent-B63CbHT7-CTgXtY-R.js} +7 -7
- package/dist/assets/ApprovalRulesSettingsPage-D6XZafBq-BQyA8PhX.js +47 -0
- package/dist/assets/ArAgingChart-D-Z3jfGt-DS-oqmcQ.js +24 -0
- package/dist/assets/{ArAgingDetailPage-CoFL0N3--DCm6OrE4.js → ArAgingDetailPage-AiwyJUwp-CLdUA32y.js} +1 -1
- package/dist/assets/{AttachmentView-C3xQE0te-n3iWUkqT.js → AttachmentView-wIV1i6gf-__2UovKF.js} +5 -5
- package/dist/assets/{BankAccountSection-Bi3uoDPa-Nc2grfOO.js → BankAccountSection-cVBEl5IN-DpEdLEP3.js} +2 -2
- package/dist/assets/{BankAccountWarningSection-DKdgmMHQ-D-bpYaBu.js → BankAccountWarningSection-Ce5s962S-Dy-_2VlU.js} +8 -8
- package/dist/assets/{BankConnectionsSettingsPage-1zM9RKRI-CDocL8j_.js → BankConnectionsSettingsPage-Cgp8M98A-D84-x80q.js} +33 -33
- package/dist/assets/{BillDetailPage-BoxJCC9n-BWeG9Hik.js → BillDetailPage-C9NC9kTK-BYRIHiN2.js} +11 -11
- package/dist/assets/{BillPayApprovalRuleDetailPage-BW3sj5ug-BErwhK5C.js → BillPayApprovalRuleDetailPage-yKPMorLd-DWM3MQMK.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-DLA6R7dC-CRXar6D8.js → BillPayApprovalRulesPage-DmMqDFmk-B8Cg6Nn6.js} +6 -6
- package/dist/assets/{BillPayPromoPage--BGTNJhm-DMPJae3j.js → BillPayPromoPage-CWGX6uCi--607mHc3.js} +4 -4
- package/dist/assets/BillPaySetUpPage-B-DHUIqu-DsqPk0zS.js +42 -0
- package/dist/assets/{BillingSettingsPage-DgbRhg-m-BQXo-PFB.js → BillingSettingsPage-Bx7lHgIy-CyArwb3F.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-CKspyZz7-CrVXvVTH.js → BillsBulkReviewDrawerPage-Bf5MKQ-f-5iZSFdzE.js} +1 -1
- package/dist/assets/{BoxItem-BHtgE0KL-CQh3YeAW.js → BoxItem-DX1sag1G-C0OcCbod.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CpfsllRZ-DZ4wSxlf.js → BusinessVerificationPage-DXh-11f9-BWywYgcT.js} +14 -14
- package/dist/assets/{CardNumberSubText-BHe1nqr7-Dw94kPrk.js → CardNumberSubText-iYF6MLsf-BnbFJt1d.js} +1 -1
- package/dist/assets/{CashbackDetailPage-C9RhIR0R-d9koKX6M.js → CashbackDetailPage-DVsCU69u-iWc1QiKl.js} +24 -24
- package/dist/assets/ChargeCardDetailPage-D5bwvNOM-CT3hMXCY.js +1447 -0
- package/dist/assets/ChargeCardListPage-rY7_MoJ5-CzPbszY2.js +355 -0
- package/dist/assets/{ChargeCardListTable-C2nnAxo5-FqHclXlq.js → ChargeCardListTable-PTRaj9T6-GxUnY44G.js} +18 -18
- package/dist/assets/ChargeCardPromoPage-BUtD2JQ4-Bh59RQEl.js +219 -0
- package/dist/assets/ChargeCardSetupPage-CIRcLLnB-Cefuwkkm.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-DK-pEljz-DBBQtECo.js → ChargeCardStatementsPage-uRlTsfDI-DztC0UAp.js} +3 -3
- package/dist/assets/{ChargeCardUtils-BxyMuU6--CGk-PpFv.js → ChargeCardUtils-BvVm2SMq-B6pl3c2F.js} +1 -1
- package/dist/assets/{ChaseOverlay-CRiYxWuZ-sWGKU7hV.js → ChaseOverlay-CI8lEzod-DNTlxx9v.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-WYiirlL8-Bs8VUuYh.js → CheckDepositDrawerPage-Czpxz6Mz-gcS4-F7d.js} +16 -16
- package/dist/assets/CollapsableReportTable-BBGdC6Ii-N5Ehkf8R.js +2932 -0
- package/dist/assets/{CompanyOfficerDetailsSection-BPZU90Im-DdoiVC4M.js → CompanyOfficerDetailsSection-BrsHy7MO-Cl-BM3f0.js} +35 -35
- package/dist/assets/{CompanyPassportCard-PXdmJC_B-C7N0q60V.js → CompanyPassportCard-P0g_DRwA-XRQTRVQK.js} +2 -2
- package/dist/assets/{CompanyPassportPage-MxIwsh3W-D5tCZGyF.js → CompanyPassportPage-CH8El0Nl-CrZI1ceZ.js} +37 -37
- package/dist/assets/{CompleteProfile-Bd9xEPVl-Bur2yC4e.js → CompleteProfile-DTSAIKgF-WX_HRfP5.js} +4 -4
- package/dist/assets/{ConfettiBurst-CMpZ2feY-B5XfbLvf.js → ConfettiBurst-CjONFCxD-BbasMJ1h.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DgHvZfWv-Bi7M3NeT.js → CreateOrEditVendorPage-CDVjGotR-BX0RU8Lc.js} +13 -13
- package/dist/assets/{CreditCardPaymentDrawerPage-C2ikLG7P-D9NRI7sf.js → CreditCardPaymentDrawerPage-CsyNRmxp-J9Q1Nire.js} +15 -15
- package/dist/assets/{CreditCardPaymentPlgSection-M69ECpN9-buXhPCBw.js → CreditCardPaymentPlgSection-BhHsjqZA-DtxErSDc.js} +8 -8
- package/dist/assets/{CurrencySelectField-B3AvTbkp-CHV4_MaB.js → CurrencySelectField-BRkdK9Tx-DZlSSgUd.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-C7eddGoB-xoDiasdm.js → CustomerOnboardingActivationPage-DnVXw5Ok-CF7wqV2h.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-wmVbYxdI-BLfm1bGE.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BIAeoXCV-CLmmsiWl.js → CustomerOnboardingDetailPageSkeleton-C95eWcqa-DW8DNI2i.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-BzO6XZ0H-R3sD-qJw.js → CustomerOnboardingNoStepsPage-OKbEl9Bp-Dy87ha3L.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-7yWIaJvU-BJjoIZ4H.js → CustomerOnboardingPage-D9jqUudS-BpBvjqe9.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-Tvyrs9Cm-D9abTy3K.js → CustomerOnboardingProductSuitePage-DK_FKVS2-Dz81TViz.js} +5 -5
- package/dist/assets/Dashboard-CsuzQbH0-B5Hgiilv.js +1254 -0
- package/dist/assets/DashboardReportPage-BCkrfj3P-CIFdRg6l.js +370 -0
- package/dist/assets/{DepositAccTransactionItem-CiRcbfmm-COTpxjXV.js → DepositAccTransactionItem-B55LUfPM-Bsnh-Dnt.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-DsNLDlHv-Dil7L-H3.js → DepositAccTransactionListPage-CKBZEDvI-CFszcDp5.js} +7 -7
- package/dist/assets/{DocumentSecurityBanner-CIWoR_yI-D3092p-g.js → DocumentSecurityBanner-B5e6-zfE-B8VQ-eGv.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-C6x8Gz4g-CvdkcKGu.js → DomesticWireDetailsPage--MU9IKKz-CI-n4FxD.js} +1 -1
- package/dist/assets/{DownloadOverlay-D1kGkMFo-CFSdk_Qd.js → DownloadOverlay-CVay7PEO-C-BIaHoh.js} +12 -12
- package/dist/assets/{DrawerPage-CQkJW5hg-9b3zFuwk.js → DrawerPage-BtsjUVWT-DKZ4-9Rc.js} +3 -3
- package/dist/assets/{EditPeoplePage-m2qls8hv-Di3CS432.js → EditPeoplePage-q8Se6bGZ-Cx2X58jF.js} +17 -17
- package/dist/assets/{EditReimbursementDetailPage-IlSyu79B-CK3QXm0O.js → EditReimbursementDetailPage-DJxpU-hz-dhF_OPbV.js} +72 -72
- package/dist/assets/{EntityDetailPage-CcJJwGo7-uoqYszcb.js → EntityDetailPage-Bux6DlIw-CDR-iDms.js} +1 -1
- package/dist/assets/{EntitySummarySection-JxKHehL1-BXmouJnf.js → EntitySummarySection-D8dz1hFt-Bakc19a1.js} +13 -13
- package/dist/assets/{ExpenseAutomationOverviewPage-iAUtjSnw-DqMsPFLZ.js → ExpenseAutomationOverviewPage-CdJQtc-4-WoBW313I.js} +26 -26
- package/dist/assets/{ExpenseAutomationPage-B0f86olm-CQRdBFLI.js → ExpenseAutomationPage-aNc126hN-DZa4KtXO.js} +74 -74
- package/dist/assets/{ExpressPayPage-B-at6uDS-Dtq_3eKZ.js → ExpressPayPage-CWVGXvfN-Bzdld5fx.js} +7 -7
- package/dist/assets/{FeaturePreviewPage-gSb_rct_-Cez0USO5.js → FeaturePreviewPage-C0nvVXP--BF6s18r5.js} +2 -2
- package/dist/assets/{FollowStepsSection-eedORgku-CZFixVjB.js → FollowStepsSection-Cf0s1DGX-BFVvc78r.js} +12 -12
- package/dist/assets/{GlobalReviewListPage-BfPwveCc-Be7k0L3l.js → GlobalReviewListPage-aY4rHJVr-DzNSgRAM.js} +10 -10
- package/dist/assets/HelpButton-Dv3nbc1Z-CHaoZd0g.js +28 -0
- package/dist/assets/{InformationCardStack-DPaZz4XW-Ou8UbOck.js → InformationCardStack-BALkGk48-BWmXScs3.js} +5 -5
- package/dist/assets/{InsightsCardStack-sKUFRR0H-C5AsA-_0.js → InsightsCardStack-D52CCSVO-CezeuABJ.js} +10 -10
- package/dist/assets/{InsightsSection-Corx5iDh-dTSwI2kJ.js → InsightsSection-D_wtVtVg-5rPDOiJT.js} +3 -3
- package/dist/assets/{IntegrationsSettingsPage-DTWoUi2e-Chu6LuMb.js → IntegrationsSettingsPage-DxjbW311-BrvXi8hE.js} +7 -7
- package/dist/assets/{InternationalWireSwiftDetailsPage-B441GUkh-CscnxDNt.js → InternationalWireSwiftDetailsPage-24NSHzu1-CRaVhxIk.js} +14 -14
- package/dist/assets/{InternationalWireVerificationPage-DjpWjFSe-BjBnngF4.js → InternationalWireVerificationPage-B1jvCUkw-Ld5IAzwh.js} +18 -18
- package/dist/assets/{InviteFormPage-BRb4jyp_-CmdYR0dv.js → InviteFormPage-C9fNxGsi-CRksfDku.js} +19 -19
- package/dist/assets/{InvitePageListView-Bb_Q_xqJ-NilyMKAO.js → InvitePageListView-DSWZ2SPi-B4SFh7Xp.js} +49 -49
- package/dist/assets/InvitePeoplePage-DaN4NSHW-CydccedW.js +12 -0
- package/dist/assets/{InvoiceUploadSection-BE4ZqriT-CgEhMUSB.js → InvoiceUploadSection-D0CgJxyu-9_MCn8Y6.js} +7 -7
- package/dist/assets/{IssueChargeCardPage-BIFpAcrl-Bu31m03I.js → IssueChargeCardPage-dYu9VLy4-YHkYWF3X.js} +22 -22
- package/dist/assets/{LabeledAddressValue-D2vDF5sP-4KAQPk_1.js → LabeledAddressValue-DtmZ5htg-OjX3rrF7.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BMdJsw3x-yhvcn5pE.js → LabeledAddressValueField-C2LEKAwf-BQxD3J4c.js} +4 -4
- package/dist/assets/{LabeledControlledCheckBoxField-CHRGFyHl-BUwVc2dn.js → LabeledControlledCheckBoxField-Ds3mSsWy-DNoefl6y.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-qwQPyqDC-CLUSQpF_.js → LabeledCreatableSingleSelectField-DW8jVgaN-BEmOmz9t.js} +8 -8
- package/dist/assets/{LabeledDocumentField-Cdd8oj5z-KMtJCE5K.js → LabeledDocumentField-Ce2A0qNH-CSvl2QNP.js} +5 -5
- package/dist/assets/{LabeledDropDownFormattedTextField-CSEioH8A-D5DtNkbM.js → LabeledDropDownFormattedTextField-DWlfmICB-Diz5afTR.js} +5 -5
- package/dist/assets/{LabeledText-CqZ-udSP-Cp_rhVhc.js → LabeledText-bruKdeAH-E98_Q-Ht.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DTmijO10-VJ76Kxzi.js → LabeledUserSingleSelectWithSubtitlesField-CfzUlgs3-BKnteQzK.js} +5 -5
- package/dist/assets/{LabeledZeniRolesDropDownField-DSIWuFix-DvOwsX2r.js → LabeledZeniRolesDropDownField-CGSgg1Zl-M-Z5Kz_3.js} +22 -22
- package/dist/assets/{LinkJETransactionPage-C5V1HfGb-D06-uv9I.js → LinkJETransactionPage-DjNutEvf-sKN4Are7.js} +10 -10
- package/dist/assets/{LowBalancePopup-BLfeh0xm-DhP5gG4H.js → LowBalancePopup-CwcYMtuk-B-vSGd6a.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-DGR7VcHs-86DaWsop.js → MagicLinkACHDetailsPage-Ddhg3i45-DAcpfJH2.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BOu5verB-CVm_wN9K.js → MagicLinkDomesticWireDetailsPage-QzsSuMOz-D-Sj2Twf.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-elijVpdq-DPVwqhye.js → MagicLinkInternationalWireDetailsPage-BsLlhkuO-cmHC5izc.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-C6-JVGAQ-BtgwLSxA.js → MagicLinkSuccessPage-COpDxIAb-BaiQCbjC.js} +4 -4
- package/dist/assets/{MagicLinkTitleSection-CCjLimcL-CG2gHrXG.js → MagicLinkTitleSection-Oa8Szvl2-DvY3D69u.js} +3 -3
- package/dist/assets/{MailingDetailsSection-CJhcwaGu-CmX5rK11.js → MailingDetailsSection-BycONjR9-Dhu_6L_d.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-DKBH6wSs-Cz9lxz_J.js → MeetingCalenderPopup-D_WPTVKr-DYqVpuuh.js} +3 -3
- package/dist/assets/{Menu-D-Gk-Xfo-BdR2WSLk.js → Menu-B6Fh2Mf9-B_ofMkAs.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-CBxa9AUT-hdH4Wtg6.js → MyBankConnectionsSettingsPage-jWuBarzg-DszKEiXJ.js} +18 -18
- package/dist/assets/{MyPendingActivationChargeCardListPage-DBr5htlO-Dvtp1o1A.js → MyPendingActivationChargeCardListPage-_wuCCZ2J-Cbj97sd-.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DKUX_nTz-BwWW-nAl.js → MyProfileSettingsPage-ChyYrCir-Dq1dhgqM.js} +8 -8
- package/dist/assets/{NavBarWithPicker-CXyMHDUO-Bs94YYmI.js → NavBarWithPicker-D4jJGXZB-BJWr2BT1.js} +4 -4
- package/dist/assets/{NavigationArrow-Bv-PvnhZ-vMsiaM3Z.js → NavigationArrow-DlUdvmV7-iugv9ZVE.js} +10 -7
- package/dist/assets/{NavigationDots-DJkiFidH-CvAq_Xy1.js → NavigationDots-CFJt-T5J-B9PAzC5S.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CmJjl9S1-GJEZOLOL.js → NewGlobalMerchantPage-DhYni-in-Diwu92Go.js} +8 -8
- package/dist/assets/{NoDataChart-Bsj1HEPq-CJfsMw19.js → NoDataChart-CvGbQO4j-B5z4vqWb.js} +1 -1
- package/dist/assets/{NoDataTable-6vR2vOMI-B5-4Kmpd.js → NoDataTable-EKtYZwcL-XyHu2gAL.js} +1 -1
- package/dist/assets/{NotFoundPage-SRxATfaW-qkQ6HjRZ.js → NotFoundPage-D5SHSQLS-0U7pTJ8G.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-Bko3CBmW-BHyL3Q9x.js → NotificationSettingsPage-CjJw9Atb-BmSbhipZ.js} +33 -33
- package/dist/assets/NotificationsListConfig-BL_MxKXF-CvqrsVs-.js +1 -0
- package/dist/assets/{NotificationsPage-DMfBgh2w-DdakMy7H.js → NotificationsPage-bGvx2yV6-C4p8pfzZ.js} +12 -12
- package/dist/assets/{OpExByVendorPage-DOkwCGkr-B0f2S69-.js → OpExByVendorPage-BE_NnQzd-DQnxoqWx.js} +7 -7
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-BTIdWBzf.js → OverlayContainerPage-GWXnlbZH-D2VSw_RI.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DCJ3QTuj-CPKRdyVw.js → PandLWithForecastPage-D-000kuR-BW5fUkac.js} +11 -11
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CaZETrGz-CL6ak5nD.js → PaymentAccountSetupBillingAddressSection-CwbX_znq-C6WVSYgS.js} +8 -8
- package/dist/assets/{PeoplePage-PvOhX-gy-Ba-if4o6.js → PeoplePage-MwM0lFB9-B0wgHwI1.js} +14 -14
- package/dist/assets/PortfolioAllocationFormPage-C3a4MQzW-CQIA3SiA.js +207 -0
- package/dist/assets/PortfolioDetails-BMJ6PGMP-DtrA52bw.js +218 -0
- package/dist/assets/{ProductsCarousel-qzlVuyK5-Br7ptzfB.js → ProductsCarousel-D2wC3sC--BKh2AE5P.js} +9 -9
- package/dist/assets/{PromoBaseCards-26GOEn3a-DXSGBLy_.js → PromoBaseCards-Ddumul2a-BrEDd739.js} +23 -23
- package/dist/assets/{QBOConnectionDialog-CZQE3Tjs-OI8VK0Zg.js → QBOConnectionDialog-DszSpNdI-DwqHmKSk.js} +7 -7
- package/dist/assets/{QBOSetupSection-u1sJhV67-D6SlbwYt.js → QBOSetupSection-BNF-BUu5-B_yCc7Df.js} +13 -13
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-vRiO7G_7-D2eeHzsf.js → ReimbursementApprovalRuleDetailPage-Myone4-k-B9H3tR1_.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-kEmFNXtg-CiGGKTdH.js → ReimbursementApprovalRulesPage-DFhp0GGU-p0zWXuJ6.js} +35 -35
- package/dist/assets/{ReimbursementDetailPage-ChyRg0eX-uLcb5a84.js → ReimbursementDetailPage-BAEddssC-DcJfByf4.js} +10 -10
- package/dist/assets/{ReimbursementPromoPage-BWsOD49o-DBNhMU2z.js → ReimbursementPromoPage-D4u3SX8R-ByzJ_1Sx.js} +7 -7
- package/dist/assets/ReimbursementSetUpPage-B9ByGW3n-Bt2Z4PCD.js +140 -0
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CgRo7VeI-D49XUJqE.js → ReimbursementsBulkReviewDrawerPage-CAo_NjTX-O9TR0kFt.js} +1 -1
- package/dist/assets/{ReloadCard-CpauR6-c-DZ_kV9B0.js → ReloadCard-BA_JCHcV-DL7NGQyj.js} +5 -5
- package/dist/assets/ReportTableViewSelector-D7B88kS6-BrGIUsj4.js +150 -0
- package/dist/assets/ReportsPage-BzMzH-I3-BKZoRCt6.js +121 -0
- package/dist/assets/{RevenueChart-JdtvK4L6-p_ox0aCR.js → RevenueChart-D33p-PFq-CGRJwc_N.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BwQoOV2Q-N2PuuAU3.js → ReviewDetailsPage-D35NcQnx-Cbn86Yy5.js} +15 -15
- package/dist/assets/{ReviewOverlay-BLxhto7d-wwPpp1Rv.js → ReviewOverlay-BYJdokfW-C97jtxei.js} +10 -10
- package/dist/assets/{RoleWithToolTip-BRSx6yqP-CARA1Fps.js → RoleWithToolTip-B3hm-1rz-OZzvKPZJ.js} +7 -7
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CH84DI7F-CmBm9qTm.js → ScheduleDetailsFixedAssetsPage-BVnISMKW-BILZO4Rn.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CMunoow5-CjQGMvSk.js → ScheduleDetailsPage-BibWPOxC-DZMtTy3C.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-CQVHkQ0e-BsTcRunu.js → ScheduleSequenceTable-DcQmeKyc-JMxQ5IZq.js} +49 -49
- package/dist/assets/{ScreenRoutes-BUfnw6rn.js → ScreenRoutes-iE9-v0dJ.js} +35 -35
- package/dist/assets/{SetUpAccountSection-CyyxtFvK-CV60qDRz.js → SetUpAccountSection-BEJy78G6-Do1X3vVo.js} +24 -24
- package/dist/assets/{SetUpDefaultSection-Bdw_aWMY-xlnUNQOd.js → SetUpDefaultSection-ul-q6U3w-CKVV_QFK.js} +16 -16
- package/dist/assets/{SignIn-Gw75P03k-DZzhd4eu.js → SignIn-BC8yop4g-CznicFTu.js} +17 -17
- package/dist/assets/{SignInScreen-Dq6qYwZm.js → SignInScreen-k0dvslKE.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BccaMtyd-Df6Rk5hP.js → SpendManagementListViewPage-aZljA388--EEskYb2.js} +10 -10
- package/dist/assets/{SpendManagementPerTabPage-D-YqqUsz-D9wGY7Sp.js → SpendManagementPerTabPage-BU1ai2M8-DkMZQMfc.js} +33 -33
- package/dist/assets/{SpendManagementSection-CdH1r1Vw-CNPLQDmq.js → SpendManagementSection-DMw8NFvN-Cpy4Blf3.js} +8 -8
- package/dist/assets/SpendMgmtSetupAccountSection-BtcwTlJT-Bsya0Qr3.js +206 -0
- package/dist/assets/{StatementItem-BW9HKaf9-DHH3_eMn.js → StatementItem-CKTGWEW_-d6SqxmfH.js} +3 -3
- package/dist/assets/{StatementsPage-CXawS1th-D3YQNnde.js → StatementsPage-CjR4AlPy-BQRlcz37.js} +6 -6
- package/dist/assets/{StatusSwitcher-oC-AP25Z-BIEyDhm7.js → StatusSwitcher-5CZzUYJE-qZVSFmES.js} +5 -5
- package/dist/assets/{SubTabSwitcher-DXWQMf7B-COcvC76z.js → SubTabSwitcher-a38_U4dN-BfyQ4BdY.js} +1 -1
- package/dist/assets/{SummaryCard-C3zjN-kT-Cfx6YIVD.js → SummaryCard-XbFHvHx9-CTqdwSSS.js} +1 -1
- package/dist/assets/{TaskManagementPage-BGDJNpe_-Bv3LANWK.js → TaskManagementPage-Oct77yO--igT2quo0.js} +31 -31
- package/dist/assets/{TimeRangeSwitcher-BJfy3akS-DFCAXXsq.js → TimeRangeSwitcher-C4mpBnQl-CaG6dXuN.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-M9tK6u0Y-Cdz5qhRc.js → TimeframeSwitcher-CnLEHYWD-BW9vKcLS.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-Bc-Y5Hwv-0uMnBILy.js +31 -0
- package/dist/assets/{TopExCard-BD9Ehuw_-Btk-YgZT.js → TopExCard-CaR8tsug-DnQ2eFWB.js} +5 -5
- package/dist/assets/{TopExDetailPage-3HoXp_6D-DmBiYGdL.js → TopExDetailPage-C4QeWe92-vjJ7ZG8N.js} +10 -10
- package/dist/assets/{TransactionDetailPage-CbnGQ8bn-Cg1J4diW.js → TransactionDetailPage-BoxnNYXX-2QwooFWS.js} +26 -26
- package/dist/assets/TransactionList-IjM4ABdF-DZ9PEfgX.js +147 -0
- package/dist/assets/{TransactionListBig-5aenxEn4-CWYWbXxG.js → TransactionListBig-B0FG0-BM-Br0wUjP3.js} +18 -18
- package/dist/assets/TransactionListPage-1dwu-ZT2-vlIbHO3m.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-Yi7SmsyK-D7Pu6Fa2.js → TransactionVendorDetailPage-gBr8kX0F-BE5xJ4Iy.js} +5 -5
- package/dist/assets/{TransferDrawerPage-2P1mhp1M-B7oxuimL.js → TransferDrawerPage-BJVanLzC-BZZsX7dv.js} +11 -11
- package/dist/assets/{TreasuryOverviewPage-CkCBcBQK-D3Q7MJ4U.js → TreasuryOverviewPage-DGJnHyrO-BPZDM1DN.js} +34 -34
- package/dist/assets/{TreasuryPromoPage-v-g4ZAdk-CGC4zL_g.js → TreasuryPromoPage-CblUabA3-CO5CaCN_.js} +14 -14
- package/dist/assets/{TreasurySetupPage-B7va2-fJ-CNDcrt8c.js → TreasurySetupPage-CuROk6il-7kJUNajN.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-BEJsQ-Oz-2-eidQa0.js → TreasuryStatementsPage-DfB0yrzC-osurk-aq.js} +10 -10
- package/dist/assets/{TreasuryTaxLetterPage-CpTpM1mx-D--iiF7F.js → TreasuryTaxLetterPage-CRoLpeXm-g70lefJl.js} +4 -4
- package/dist/assets/{TreasuryTransferOrReviewPage-BRPFympA-qCMNFj2v.js → TreasuryTransferOrReviewPage-QMDAFbkh-CUXJN-eh.js} +77 -77
- package/dist/assets/{TrendChart-DRNocU0p-CnURe1Lr.js → TrendChart-D3_4i3qH-wYUerKRk.js} +3 -3
- package/dist/assets/{TrendWithTransactions-CldwGpXX-_Vy0tAR0.js → TrendWithTransactions-KkV2_0Uh-D0lwZdhf.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-2C5qEhte-BdEwYcSE.js → UncategorizedAccountsMappingPage-kKq-jvPY-CF6bAw3X.js} +1 -1
- package/dist/assets/{UnitIntegrationPage--cDHqgXs-Dx-BvNNy.js → UnitIntegrationPage-CZS0yjHf-2PLtjCjv.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-D85ML8-_-1p5rwy9h.js → UploadAdditionalDocumentOverlay-KkO_TLUT-n0LOLnpS.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-vdFWf98b-D32U3pYN.js → Vendor2FAPopup-wnVnkHOg-DABVEKDS.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-D7ImMabh-BOoEsNma.js → VendorACHDetailsPage-nuzdr69i-pgOa8d0q.js} +1 -1
- package/dist/assets/{VendorDetailPage-BOeEd9pX-B0fSv2j-.js → VendorDetailPage-ClmL_1FB-Cz0Favu8.js} +14 -14
- package/dist/assets/{VendorDomesticWireDetailsPage-CXFrYPn8-BF9k2J97.js → VendorDomesticWireDetailsPage-DEK3jdYu-StHUbnc9.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CZFErJ91-C1xhL1S7.js → VendorFiling1099EditablePage-KMOY10Xr-C-_0rtWP.js} +9 -9
- package/dist/assets/{VendorFirstReviewPage-BHzDUMKu-CXJaoIKB.js → VendorFirstReviewPage-CLF3qT17-D1oHFEVR.js} +75 -75
- package/dist/assets/{VendorInternationalWireDetailsPage-j4j5irzH-Bp14Fqws.js → VendorInternationalWireDetailsPage-C5JXqVVq-DdhMyWB0.js} +8 -8
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DM4jC7wD-Dgo0AgQr.js → VendorInternationalWireSwiftDetailsPage-7KrBqEWb-D_WpQwvk.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BTRiZlIa-9pqLXKCO.js → VendorsAccountsSection-fcURK7tv-BOScGj67.js} +13 -13
- package/dist/assets/{WarningsDrawerPage-ZgfQEBme-Bz-_RQEG.js → WarningsDrawerPage-Bnd_CdR9-B2JqHi6z.js} +10 -10
- package/dist/assets/{ZeniAccountDetailPage-xrq0Ez6S-CnbEn37D.js → ZeniAccountDetailPage-DRDCdFW7-D8o4Z2Hy.js} +40 -40
- package/dist/assets/{ZeniAccountListViewPage-BwXfELGd-Dk1rVmVe.js → ZeniAccountListViewPage-ZPWww_Go-HRp0ORwg.js} +5 -5
- package/dist/assets/{ZeniAccountNavBarPieces-xpHuuPSD-9p5pX7Wv.js → ZeniAccountNavBarPieces-DFivFXxa-rHFaK51E.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BvSwPEk7-CAtlT9pF.js → ZeniAccountPromoPage-D1oJNoqy-C6ZFb72_.js} +18 -18
- package/dist/assets/{ZeniAccountSetupPage-yCkiopeU-CjiQIVC-.js → ZeniAccountSetupPage-DITu6ztK-Fgis_UYm.js} +3 -3
- package/dist/assets/{ZeniCopyright-BAbOOFg9-Ba3Hfqst.js → ZeniCopyright-DoA2I5zj-CPBH_zf-.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-C1sl8ZNj-DIRmcL5V.js → ZeniTransferAmountSlider-amszUh1p-Wx5VV7C8.js} +1 -1
- package/dist/assets/{analyticsHelper-CwpIhk9-.js → analyticsHelper-BbcCIpO1.js} +1 -1
- package/dist/assets/{analyticsHelper-CkzpobMi-D_btd99n.js → analyticsHelper-DPbbQVAO-ChPUlKK7.js} +1 -1
- package/dist/assets/{chartTypes-JD2mR9iq-CV6xq_QP.js → chartTypes-qpvW4LwC-4Ag0mdD1.js} +1 -1
- package/dist/assets/{commonDimensions-DRfDJ_wQ-CneCHG2f.js → commonDimensions-DAvj4Il1-Chc9ZQai.js} +1 -1
- package/dist/assets/{detailCommon-BbKkY_46-Z5qIUAEr.js → detailCommon-jP1ggD3g-CQiTz4E7.js} +5 -5
- package/dist/assets/{downloadPdf-D7ANJLK4-JxxYzwZh.js → downloadPdf-LAHtgcHF-B9uNpNRf.js} +1 -1
- package/dist/assets/{index-sK9Ftyw4.js → index-DyBH5SZv.js} +3543 -3520
- package/dist/assets/mapLoadingInProgressToTreeNode-CjvJKOzk-DeuVFxVw.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-caUW45t5-DwAiwvFw.js → mapSectionWithAcOnlyToTreeNode-Dr43nOGj-FSgubQ7E.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-COsnfFtf-DI0OXEqQ.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-BnpqSOA6-DAD3sG8g.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DFanhVY8-Cl8Oktyg.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2xlqc6w-BjPO7Xb1.js +1 -0
- package/dist/assets/{play-icon-BbWpG2oG-B5eavh5o.js → play-icon-D3OSczih-8eMagn70.js} +3 -3
- package/dist/assets/{toCOABalancesWithID-DOgHiMwn-FzGFQyKt.js → toCOABalancesWithID-DeWKaovX-C_3xC96w.js} +1 -1
- package/dist/assets/{toChartData-CNfdaXyM-DfRj5vR3.js → toChartData-Dkp488IJ-Cg1gF7al.js} +1 -1
- package/dist/assets/{treasuryColorHelper-JBMxqa9X-CUh3yvXJ.js → treasuryColorHelper-BibNNRS5-DCmyWsB-.js} +1 -1
- package/dist/assets/{uploadAttachment-BGZjtYkJ-C2nAJwG2.js → uploadAttachment-BjJ8_wDA-22p019X4.js} +25 -25
- package/dist/assets/{uploadReceipts-Buvz7DfG-DhG_60YS.js → uploadReceipts-D80JLNY4-sjevKwVl.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPageContent-BTk2gRyM-BiMT6aOy.js +0 -149
- package/dist/assets/ApprovalRulesSettingsPage-CXh9tY6X-QKrc0pyW.js +0 -47
- package/dist/assets/ArAgingChart-GL4vkypx-DFuyLVYD.js +0 -24
- package/dist/assets/BillPaySetUpPage-_s4R537_-DZWDn61D.js +0 -42
- package/dist/assets/ChargeCardDetailPage-Kygr13jR-27IRQfLT.js +0 -1447
- package/dist/assets/ChargeCardListPage-BnzdzSXW-BVsaSOA5.js +0 -355
- package/dist/assets/ChargeCardPromoPage-CSNn9X5i-Fnig2Ypz.js +0 -175
- package/dist/assets/ChargeCardSetupPage-DE1pK_7F-FapyQkm6.js +0 -36
- package/dist/assets/CollapsableReportTable-BGT77T9W-CUBrV0Bt.js +0 -2860
- package/dist/assets/CustomerOnboardingContainerPage-9UTLABZ0-TgCXFZSY.js +0 -1
- package/dist/assets/Dashboard-CA9685lJ-tQYLqsRv.js +0 -778
- package/dist/assets/DashboardReportPage-DQoFWd5C-D2SWkLyX.js +0 -349
- package/dist/assets/HelpButton-DvD6UJq--DH6Lkii6.js +0 -28
- package/dist/assets/InvitePeoplePage-BKEDAnQ4-gH3ZdBUQ.js +0 -12
- package/dist/assets/NotificationsListConfig-ChVd_Bek-B5rqV-0u.js +0 -1
- package/dist/assets/PortfolioAllocationFormPage-DsCeagnu-uMKipSgE.js +0 -207
- package/dist/assets/PortfolioDetails-BEa4kwk8-CZhLy7bU.js +0 -218
- package/dist/assets/ReimbursementSetUpPage-DO_dBP9N-CjFJx_39.js +0 -140
- package/dist/assets/ReportTableViewSelector-D6DHFt_R-BSunAQvT.js +0 -150
- package/dist/assets/ReportsPage-D4mI3T0w-WDX-OUzA.js +0 -120
- package/dist/assets/SpendMgmtSetupAccountSection-nryeZQ0T-B5W1wa7s.js +0 -206
- package/dist/assets/TimeframeSwitcherWithToggle-L1nNDGOE-Crad0c1r.js +0 -31
- package/dist/assets/TransactionList-BBjiP2Nf-u9SYmiJO.js +0 -147
- package/dist/assets/TransactionListPage-BeVkiwkg-CZaGi9mq.js +0 -35
- package/dist/assets/mapLoadingInProgressToTreeNode-e8JhfflK-ymVVgqde.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-C692pbYW-C1yi1TTP.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DKrYq4x5-C3cOfAea.js +0 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import{bC as et,X as N,j as e,ai as it,Y as h,db as at,M as y,dc as ot,d6 as rt,dd as nt,o as i,g as E,bT as st,C as q,l as f,c as dt,q as j,n as g,w as lt,de as Q,cs as V,_ as U,f as ct}from"./index-DyBH5SZv.js";import{b as L,n,f as mt}from"./vendor-CnQcJ2Lu.js";import{g as W}from"./BoxItem-DX1sag1G-C0OcCbod.js";import{o as O}from"./commonDimensions-DAvj4Il1-Chc9ZQai.js";const D=t=>t?24:125,ft={containerPaddingBottom:new q(g[9],g[8])},A=n.div`
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex: 1 1 auto;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: flex-end;
|
|
8
|
+
height: ${t=>D(t.isLoadNextItem)}px;
|
|
9
|
+
color: ${t=>t.theme.colors.grey1};
|
|
10
|
+
&:hover {
|
|
11
|
+
color: ${t=>t.theme.colors.champion};
|
|
12
|
+
}
|
|
13
|
+
padding-top: ${t=>t.isLoadNextItem?0:45}px;
|
|
14
|
+
padding-bottom: ${t=>ft.containerPaddingBottom.valuePx(t.windowSize)};
|
|
15
|
+
`,xt=n(j)`
|
|
16
|
+
display: flex;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
`;function C({firstMonthOfFY:t,isLoadNextItem:o,isLoading:d,timePeriod:a,fixedTimePeriod:r,timeframe:m,doLoadMoreTransactions:x}){let s=a;if(o)if(r!=null){const b=f.addPeriod(a.endDate.startOf("month"),t,r.numberOfPeriods,r.timeframe);s={startDate:s.endDate.add(1,"day"),endDate:b}}else{const b=f.addPeriod(a.endDate.startOf("month"),t,1,m),{startOfTimeframeFY:p,endOfTimeframeFY:w}=f.getStartOfAndEndOfTimeframeForFY(b,t,m);s={startDate:p,endDate:w}}else if(r!=null)s={startDate:f.subtractPeriod(a.startDate.startOf("month"),t,r.numberOfPeriods,r.timeframe),endDate:a.startDate.subtract(1,"day")};else{const b=f.subtractPeriod(a.startDate.startOf("month"),t,1,m),{startOfTimeframeFY:p,endOfTimeframeFY:w}=f.getStartOfAndEndOfTimeframeForFY(b,t,m);s={startDate:p,endDate:w}}const c=y.getLocalizedStrings();let u="";r==null?m==="month"?u=`${o===!0?c.transactionList.loadNextMonthPrefix:c.transactionList.loadPreviousMonthPrefix} (${f.formatZeniDate(s.startDate,c.dateFormat.visual.MMMYYYYFormat,t)})`:m==="quarter"?u=`${o===!0?c.transactionList.loadNextQuarterPrefix:c.transactionList.loadPreviousQuarterPrefix} (${c.transactionList.quarterPrefix}${f.formatZeniDate(s.startDate,c.dateFormat.visual.QYYYYformat,t)})`:u=`${o===!0?c.transactionList.loadNextYearPrefix:c.transactionList.loadPreviousYearPrefix} (${f.formatZeniDate(s.startDate,c.dateFormat.visual.YYYYformat,t)})`:u=`${o===!0?c.transactionList.loadNextMonthPrefix:c.transactionList.loadPreviousPrefix} ${r.numberOfPeriods} ${c.transactionList.monthsSuffix} - (${f.formatZeniDate(s.startDate,c.dateFormat.visual.MMMYYYYFormat,t)} - ${f.formatZeniDate(s.endDate,c.dateFormat.visual.MMMYYYYFormat,t)})`;const M=N();return d===!0?e.jsx(A,{windowSize:M,isLoadNextItem:o,children:e.jsx(dt,{size:"Small",start:!0})}):e.jsx(A,{windowSize:M,isLoadNextItem:o,children:e.jsx(xt,{"data-testid":h("load-more-transactions",u),onClick:()=>{x?.(s,m)},children:u})})}C.displayName="LoadMoreTransactions";const{common:{strings:{empty:H}}}=y.getLocalizedStrings(),ht=n(ct)`
|
|
19
|
+
display: -webkit-box;
|
|
20
|
+
-webkit-box-orient: vertical;
|
|
21
|
+
-webkit-line-clamp: 1;
|
|
22
|
+
margin-left: ${i.sp3};
|
|
23
|
+
padding: 1px 6px;
|
|
24
|
+
border: 1px solid ${t=>t.theme.colors.grey2};
|
|
25
|
+
border-radius: ${i.sp1};
|
|
26
|
+
color: ${t=>t.theme.colors.grey1};
|
|
27
|
+
min-width: max-content;
|
|
28
|
+
`,ut=n.div`
|
|
29
|
+
display: flex;
|
|
30
|
+
padding: ${i.sp3} ${i.sp4};
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
width: 100%;
|
|
33
|
+
`,pt=n.div`
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
align-items: center;
|
|
37
|
+
width: 100%;
|
|
38
|
+
`,gt=n(j)`
|
|
39
|
+
display: -webkit-box;
|
|
40
|
+
-webkit-box-orient: vertical;
|
|
41
|
+
-webkit-line-clamp: 1;
|
|
42
|
+
margin-left: ${i.sp3};
|
|
43
|
+
max-height: ${i.sp11};
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
word-break: break-word;
|
|
46
|
+
text-align: left;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
`,bt=n(j)`
|
|
49
|
+
display: -webkit-box;
|
|
50
|
+
-webkit-box-orient: vertical;
|
|
51
|
+
-webkit-line-clamp: 1;
|
|
52
|
+
margin-left: ${i.sp3};
|
|
53
|
+
text-align: right;
|
|
54
|
+
width: ${t=>O.amountWidth.valuePx(t.windowSize)};
|
|
55
|
+
`,wt=n.div`
|
|
56
|
+
display: flex;
|
|
57
|
+
`;function $t({transaction:t,onItemClick:o}){const{description:d,typeName:a,amount:r,logo:m,vendorId:x}=t,s=f.isVendorTransaction(t)&&x==null;return e.jsxs(ut,{onClick:()=>o?.(t),"data-testid":h("transaction-item-medium",t.id),children:[e.jsx(Q,{photoUrl:s===!1?m?.toString()??H:H,styles:{width:i.sp4,height:i.sp4,borderRadius:i.sp0},placeholder:{width:g[4],height:g[4]},fallbackAvatar:e.jsx(wt,{children:e.jsx(V,{name:d,size:i.sp4})})}),e.jsxs(pt,{children:[e.jsx(gt,{children:d}),a!=null?e.jsx(ht,{className:"tag",children:a}):null]}),e.jsx(bt,{children:U("0,0.00",r)})]})}function vt({data:t,boxType:o,onItemClick:d}){const a=f.toTransactionTypeStrict(t.type)==null,r=e.jsx($t,{transaction:t,onItemClick:a?void 0:d});return e.jsx(W,{content:r,boxType:o,isDisabled:a})}const{common:{strings:{empty:Z}}}=y.getLocalizedStrings(),yt=n.div`
|
|
58
|
+
display: flex;
|
|
59
|
+
padding: ${i.sp3} ${i.sp4};
|
|
60
|
+
flex-direction: row;
|
|
61
|
+
width: 100%;
|
|
62
|
+
`,jt=n.div`
|
|
63
|
+
width: 100%;
|
|
64
|
+
`,kt=n(j)`
|
|
65
|
+
display: -webkit-box;
|
|
66
|
+
-webkit-box-orient: vertical;
|
|
67
|
+
-webkit-line-clamp: 1;
|
|
68
|
+
margin-left: ${i.sp3};
|
|
69
|
+
max-height: ${i.sp11};
|
|
70
|
+
text-overflow: ellipsis;
|
|
71
|
+
word-break: break-word;
|
|
72
|
+
text-align: left;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
`,Yt=n(j)`
|
|
75
|
+
display: -webkit-box;
|
|
76
|
+
-webkit-box-orient: vertical;
|
|
77
|
+
-webkit-line-clamp: 1;
|
|
78
|
+
margin-left: ${i.sp3};
|
|
79
|
+
text-align: right;
|
|
80
|
+
width: ${t=>O.amountWidth.valuePx(t.windowSize)};
|
|
81
|
+
`,Lt=n.div`
|
|
82
|
+
display: flex;
|
|
83
|
+
`;function Mt({transaction:t,onItemClick:o}){const{description:d,amount:a,logo:r,vendorId:m}=t,x=f.isVendorTransaction(t)&&m==null;return e.jsxs(yt,{onClick:()=>o?.(t),"data-testid":h("transaction-item-small",t.id),children:[e.jsx(Q,{photoUrl:x===!1?r?.toString()??Z:Z,styles:{width:i.sp4,height:i.sp4,borderRadius:i.sp0},placeholder:{width:g[4],height:g[4]},fallbackAvatar:e.jsx(Lt,{children:e.jsx(V,{name:d,size:i.sp4})})}),e.jsx(jt,{children:e.jsx(kt,{children:d})}),e.jsx(Yt,{children:U("0,0.00",a)})]})}function Pt({data:t,boxType:o,onItemClick:d}){const a=f.toTransactionTypeStrict(t.type)==null,r=e.jsx(Mt,{transaction:t,onItemClick:a?void 0:d});return e.jsx(W,{content:r,boxType:o,isDisabled:a})}function St(t){return N()==="small"?e.jsx(Pt,{...t}):e.jsx(vt,{...t})}const Dt=n.div`
|
|
84
|
+
display: flex;
|
|
85
|
+
flex: 1 1 auto;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
box-shadow: ${t=>`${i.sp0} 2px ${i.sp1} ${t.theme.colors.dropShadowNormal}`};
|
|
88
|
+
border-radius: ${i.sp2};
|
|
89
|
+
background-color: ${t=>t.theme.colors.grey5};
|
|
90
|
+
`,Ft=n(lt)`
|
|
91
|
+
display: flex;
|
|
92
|
+
height: 21px;
|
|
93
|
+
margin-bottom: ${i.sp2};
|
|
94
|
+
margin-top: ${i.sp3};
|
|
95
|
+
color: ${t=>t.theme.colors.grey1};
|
|
96
|
+
`,Tt=n.div`
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
width: 100%;
|
|
100
|
+
`,It=(t,o)=>o.length===1?"roundedBox":t===0?"topRoundedBox":t===o.length-1?"bottomRoundedBox":"box",zt=t=>t*O.transactionItemHeight+45;function Ct({date:t,transactions:o,onItemClick:d}){const{dateFormat:a}=y.getLocalizedStrings();return e.jsxs(Tt,{"data-testid":h("transactions-group"),children:[e.jsx(Ft,{children:f.dateNow().year()===t.year()?t.format(a.visual.MMMDFormat):t.format(a.visual.MMMDCommaYYYYformat)}),e.jsx(Dt,{children:o.map((r,m)=>e.jsx(St,{data:r,boxType:It(m,o),onItemClick:x=>{d?.(x)},"data-testid":h("transaction-item",r.id)},m))})]})}const Nt=mt.memo(Ct),{dateFormat:Ot}=y.getLocalizedStrings();function Rt(t){const o=at(t,a=>a.date.format(Ot.visual.MMMDCommaYYYYformat)),d=ot(o,a=>a.length>0);return rt(d,a=>({date:a[0].date,transactions:nt(a,r=>r.updateTime,"desc")}))}const v=y.getLocalizedStrings(),Bt={listItemMargin:new q(g[3],g[8])},Et=n.div`
|
|
101
|
+
display: flex;
|
|
102
|
+
flex: 1 1 auto;
|
|
103
|
+
width: 99.9%;
|
|
104
|
+
`,S=n.div`
|
|
105
|
+
margin: ${t=>`${i.sp0} ${Bt.listItemMargin.valuePx(t.windowSize)}`};
|
|
106
|
+
`,At=n.div`
|
|
107
|
+
min-height: ${i.sp8};
|
|
108
|
+
`,Ht=n.div`
|
|
109
|
+
display: flex;
|
|
110
|
+
height: 100%;
|
|
111
|
+
flex: 1 1 auto;
|
|
112
|
+
flex-direction: row;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
align-items: flex-end;
|
|
115
|
+
`,Zt=n(j)`
|
|
116
|
+
display: flex;
|
|
117
|
+
color: ${t=>t.theme.colors.grey2};
|
|
118
|
+
`,qt=n(st)`
|
|
119
|
+
scrollbar-width: thin;
|
|
120
|
+
scrollbar-color: transparent transparent;
|
|
121
|
+
&::-webkit-scrollbar {
|
|
122
|
+
width: ${i.sp2};
|
|
123
|
+
height: ${i.sp0};
|
|
124
|
+
background-color: transparent;
|
|
125
|
+
}
|
|
126
|
+
&::-webkit-scrollbar-track {
|
|
127
|
+
box-shadow: inset 0 0 2px ${E.scrollbarBoxShadow};
|
|
128
|
+
-webkit-box-shadow: inset 0 0 2px ${E.scrollbarBoxShadow};
|
|
129
|
+
background-color: transparent;
|
|
130
|
+
}
|
|
131
|
+
&::-webkit-scrollbar-thumb {
|
|
132
|
+
background-color: transparent;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&:hover {
|
|
136
|
+
scrollbar-color: ${t=>t.theme.colors.grey1} transparent;
|
|
137
|
+
&::-webkit-scrollbar {
|
|
138
|
+
width: ${i.sp2};
|
|
139
|
+
height: ${i.sp0};
|
|
140
|
+
background-color: transparent;
|
|
141
|
+
}
|
|
142
|
+
&::-webkit-scrollbar-thumb {
|
|
143
|
+
background-color: ${t=>t.theme.colors.grey1};
|
|
144
|
+
border-radius: 2px;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
`,Jt=L.forwardRef(function({firstMonthOfFY:t,timeframe:o,timePeriod:d,transactions:a,currentScrollYOffset:r,componentName:m,showLoadNext:x,showLoadPrevious:s,onTransactionItemClick:c,onTransactionListScroll:u,onListInnerElementHeightChanged:M},b){const p=Rt(a),w=L.createRef();L.useEffect(()=>{w.current?.resetAfterIndex(0)},[a,w]);const G=b,k=L.useRef(null),[J,K]=L.useState(void 0);et({componentName:m});const X=()=>{if(k!=null&&typeof k=="object"&&k.current){const l=k.current;l!=null&&l.clientHeight>0&&l.clientHeight!=J&&(K(l.clientHeight),M?.(l.clientHeight))}},F=p.length===0,R=s!=null,T=x!=null,I=p.length+(x!=null?1:0)+(s!=null?1:0)+(F===!0?1:0),B=l=>T===!0?l-1:l,P=N(),_=({index:l,style:$})=>T===!0&&l===0?e.jsx("div",{style:{...$},children:e.jsx(S,{windowSize:P,"data-testid":h("transaction-list","list-item-load-more"),children:e.jsx(C,{firstMonthOfFY:t,isLoadNextItem:!0,isLoading:x?.isLoading==!0,timePeriod:d,timeframe:o,fixedTimePeriod:x?.fixedTimePeriod,doLoadMoreTransactions:(Y,z)=>{x?.onLoadNextClick?.(Y,z)}})})}):R===!0&&l===I-1?e.jsx("div",{style:{...$},children:e.jsx(S,{windowSize:P,"data-testid":h("transaction-list","list-item-load-previous"),children:e.jsx(C,{firstMonthOfFY:t,isLoadNextItem:!1,isLoading:s?.isLoading==!0,timePeriod:d,fixedTimePeriod:s?.fixedTimePeriod,timeframe:o,doLoadMoreTransactions:(Y,z)=>{s?.onLoadPreviousClick?.(Y,z)}})})}):F===!1?e.jsx("div",{style:{...$},children:e.jsxs(S,{windowSize:P,children:[e.jsx(Nt,{...p[B(l)],onItemClick:c}),s==null?e.jsx(At,{}):null]})}):e.jsx("div",{style:{...$},children:e.jsx(Ht,{children:e.jsx(S,{windowSize:P,"data-testid":h("transaction-list","transactions-list-empty"),children:e.jsx(Zt,{children:Qt(d,x?.isLoading==!0||s?.isLoading==!0)})})})}),tt=l=>T===!0&&l===0?D(!0):R===!0&&l===I-1?D(!1):F===!1?zt(p[B(l)].transactions.length):D(!1);return e.jsx(Et,{children:e.jsx(it,{children:({height:l,width:$})=>e.jsx(qt,{"data-testid":h("transaction-list"),ref:w,height:l,width:$,innerRef:k,outerRef:G,onItemsRendered:X,itemCount:I,itemSize:tt,onScroll:({scrollOffset:Y})=>{u?.(Y)},initialScrollOffset:r??0,children:_})})})}),Qt=(t,o)=>o===!0?v.transactionList.fetching:t.startDate.isSame(t.endDate,"month")?`${v.transactionList.noTransactionsFoundForPrefix} (${t.startDate.format(v.dateFormat.visual.MMMYYFormat)})`:`${v.transactionList.noTransactionsFoundForPeriodPrefix} (${t.startDate.format(v.dateFormat.visual.MMMYYFormat)} - ${t.endDate.format(v.dateFormat.visual.MMMYYFormat)})`;export{Jt as d};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{C as a,X as
|
|
1
|
+
import{C as a,X as R,t as W,I as ie,aa as ne,l as D,j as t,Y as x,ai as re,M as w,n,v as ae,g as B,o,Q as j,h as q,aK as se,aL as le,w as de,Z as ce,_ as me,aM as pe,m as he,c as ue,K as Y,D as G,aN as X,a5 as ee}from"./index-DyBH5SZv.js";import{b as N,n as i,f,j as ge}from"./vendor-CnQcJ2Lu.js";import{G as xe,c as we}from"./AccountsPromoCardStack-1elvD1M0-GOX35w9m.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SummaryCard-XbFHvHx9-CTqdwSSS.js";import"./ReloadCard-BA_JCHcV-DL7NGQyj.js";import"./NavigationArrow-DlUdvmV7-iugv9ZVE.js";import"./NavigationDots-CFJt-T5J-B9PAzC5S.js";const $e={textContainer:new j("extraSmallRegular","smallRegular")},ye=i.div`
|
|
2
2
|
color: ${e=>e.theme.colors.hero};
|
|
3
3
|
cursor: default;
|
|
4
4
|
`,be=i.div`
|
|
5
|
-
color: ${
|
|
5
|
+
color: ${B.important};
|
|
6
6
|
opacity: 1;
|
|
7
7
|
cursor: default;
|
|
8
8
|
`,K=i.span`
|
|
@@ -21,7 +21,7 @@ import{C as a,X as L,V as W,H as ie,aJ as ne,l as B,j as t,Y as x,ao as re,M as
|
|
|
21
21
|
width: ${o.sp3};
|
|
22
22
|
height: ${o.sp3};
|
|
23
23
|
margin-right: 6px;
|
|
24
|
-
color: ${
|
|
24
|
+
color: ${B.important};
|
|
25
25
|
visibility: hidden;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
`,ze=i.div`
|
|
@@ -97,7 +97,7 @@ import{C as a,X as L,V as W,H as ie,aJ as ne,l as B,j as t,Y as x,ao as re,M as
|
|
|
97
97
|
background: ${e=>e.theme.colors.background};
|
|
98
98
|
text-align: center;
|
|
99
99
|
border-radius: ${o.sp1};
|
|
100
|
-
`;function Ae({accountDetails:e,analytics:b,isZeniUser:p,onSetAccountsStatementDate:C}){const c=w.getLocalizedStrings().statementCloseDay.dropdown.option1,h=w.getLocalizedStrings().statementCloseDay.dropdown.option2,[P,v]=f.useState(!1),r=e.statementCloseDay,[y,$]=f.useState(r!=="LAST_DAY_OF_THE_MONTH"?c:h),[g,m]=f.useState(r!=="LAST_DAY_OF_THE_MONTH"?r:void 0),[E,T]=f.useState(!1),_=f.useRef(r),H=W();f.useEffect(()=>{_.current!==r&&T(!1)},[r]);const I=s=>{
|
|
100
|
+
`;function Ae({accountDetails:e,analytics:b,isZeniUser:p,onSetAccountsStatementDate:C}){const c=w.getLocalizedStrings().statementCloseDay.dropdown.option1,h=w.getLocalizedStrings().statementCloseDay.dropdown.option2,[P,v]=f.useState(!1),r=e.statementCloseDay,[y,$]=f.useState(r!=="LAST_DAY_OF_THE_MONTH"?c:h),[g,m]=f.useState(r!=="LAST_DAY_OF_THE_MONTH"?r:void 0),[E,T]=f.useState(!1),_=f.useRef(r),H=W();f.useEffect(()=>{_.current!==r&&T(!1)},[r]);const I=s=>{D.hasAdminLevelAccess(H.loggedInUserRole??[])&&(s.stopPropagation(),s.preventDefault(),v(!0),b.trackCardStatementCloseDate(G.Event.cardStatementCloseDateClicked,e.accountId,e.accountName,"Card Balance",""))},U=s=>{const d=["th","st","nd","rd"],O=s%100;return s+(d[(O-20)%10]||d[O]||d[0])};let k="";r!==void 0&&(r==="LAST_DAY_OF_THE_MONTH"?k=w.getLocalizedStrings().statementCloseDay.ordinalText.lastDate:k=`${w.getLocalizedStrings().statementCloseDay.ordinalText.prefix} ${U(r)} ${w.getLocalizedStrings().statementCloseDay.ordinalText.suffix}`);const L=s=>{const d=s.target.value;d===h&&m(void 0),$(d)},u=(s,d)=>{s.stopPropagation(),m(d),$(c)},S=()=>{m(void 0),$(h)},F=()=>{const s=e.accountId,d=g??"LAST_DAY_OF_THE_MONTH";r!==d&&(T(!0),C?.(s,d)),v(!1),b.trackCardStatementCloseDate(G.Event.cardStatementCloseDateSaved,e.accountId,e.accountName,"Card Balance",g!==void 0?`${g}`:"End")},te=()=>t.jsxs(J,{children:[w.getLocalizedStrings().statementCloseDay.pickDate.prefix,t.jsx(Pe,{children:g??" - "}),w.getLocalizedStrings().statementCloseDay.pickDate.suffix]}),oe=()=>t.jsxs(ze,{role:"presentation","data-testid":x("statement-close-day-section"),onClick:s=>{s.stopPropagation()},children:[t.jsxs(V,{checked:y===c,children:[t.jsx("input",{type:"radio",name:"statementCloseDay",id:c,value:c,onChange:L,checked:y===c,style:{width:"100%"},"data-testid":x("statement-close-day-input")}),te(),t.jsx(fe,{children:Array.from({length:28},(s,d)=>d+1).map(s=>t.jsx(Ce,{isSelectedDate:s===g,"data-testid":x("statement-close-day-text"),onClick:d=>u(d,s),children:t.jsx(ke,{children:s})},s))})]}),t.jsxs(V,{checked:y===h,children:[t.jsx("input",{type:"radio",name:"statementCloseDay",id:h,value:h,onChange:L,checked:y===h,style:{width:"100%"},"data-testid":x("statement-close-day-input-last-day")}),t.jsx(J,{onClick:()=>S(),children:w.getLocalizedStrings().statementCloseDay.lastDate.text})]}),t.jsxs(je,{children:[t.jsx(Y,{size:"small",variant:"secondary",label:"Cancel",onClick:()=>{v(!1)},style:{marginRight:o.sp3},"data-testid":x("statement-close-day-button-secondary")}),t.jsx(Y,{size:"small",variant:"primary",label:"Save",onClick:F,disabled:g==null&&y!==h,"data-testid":x("statement-close-day-button-primary")})]})]}),Z=R();return t.jsx(he,{onClickAway:()=>v(!1),children:t.jsxs("div",{onClick:I,"data-testid":x("statement-close-day-modal"),children:[E?t.jsx(ue,{size:"Small",start:!0}):k?t.jsxs(ye,{"data-testid":x("edit-statement-close-day"),children:[t.jsx(ve,{}),t.jsx(K,{className:"statementCloseDayText",windowSize:Z,children:k})]}):D.hasAdminLevelAccess(H.loggedInUserRole??[])&&p===!0?t.jsxs(be,{"data-testid":x("add-statement-close-day"),children:[t.jsx(Se,{}),t.jsx(K,{className:"statementCloseDayText",windowSize:Z,children:w.getLocalizedStrings().statementCloseDay.statement})]}):"",P?oe():""]})})}const De=new a(n[9],98),z={contentContainerPadding:new a(n[3],n[4]),minItemHeight:new a(n[9],96),imageHeight:new a(n[5],n[7]),imageWidth:new a(n[5],n[7]),amountWrapperWidth:new a(100,230),titleLeftMargin:new a(n[2],n[3])},Be={textContainer:new j("standardMedium","largeMedium")},Te=i.div`
|
|
101
101
|
display: flex;
|
|
102
102
|
width: 100%;
|
|
103
103
|
`,He=i.div`
|
|
@@ -129,7 +129,7 @@ import{C as a,X as L,V as W,H as ie,aJ as ne,l as B,j as t,Y as x,ao as re,M as
|
|
|
129
129
|
display: flex;
|
|
130
130
|
padding: ${e=>z.contentContainerPadding.valuePx(e.windowSize)};
|
|
131
131
|
width: 100%;
|
|
132
|
-
`,
|
|
132
|
+
`,Le=i.div`
|
|
133
133
|
display: flex;
|
|
134
134
|
align-items: center;
|
|
135
135
|
width: calc(
|
|
@@ -138,8 +138,8 @@ import{C as a,X as L,V as W,H as ie,aJ as ne,l as B,j as t,Y as x,ao as re,M as
|
|
|
138
138
|
max-width: calc(
|
|
139
139
|
100% - ${e=>z.amountWrapperWidth.valuePx(e.windowSize)}
|
|
140
140
|
);
|
|
141
|
-
${e=>`${
|
|
142
|
-
`,
|
|
141
|
+
${e=>`${Be.textContainer.style(e.windowSize)}`};
|
|
142
|
+
`,Re=i.img`
|
|
143
143
|
width: ${e=>z.imageWidth.valuePx(e.windowSize)};
|
|
144
144
|
height: ${e=>z.imageHeight.valuePx(e.windowSize)};
|
|
145
145
|
object-fit: contain;
|
|
@@ -157,7 +157,7 @@ import{C as a,X as L,V as W,H as ie,aJ as ne,l as B,j as t,Y as x,ao as re,M as
|
|
|
157
157
|
align-items: flex-end;
|
|
158
158
|
flex-direction: column;
|
|
159
159
|
justify-content: center;
|
|
160
|
-
`,_e=i(pe)``;function Ue({data:e,showStatementSection:b,analytics:p,isZeniUser:C,onItemClick:c,onSetAccountsStatementDate:h}){const{key:P,title:v,amount:r,logoUri:y}=e,$=W(),g=$.loggedInUserRole!=null&&!
|
|
160
|
+
`,_e=i(pe)``;function Ue({data:e,showStatementSection:b,analytics:p,isZeniUser:C,onItemClick:c,onSetAccountsStatementDate:h}){const{key:P,title:v,amount:r,logoUri:y}=e,$=W(),g=$.loggedInUserRole!=null&&!D.hasInvestorBankerLevelAccess($.loggedInUserRole),m=R();return t.jsx(Te,{windowSize:m,children:t.jsx(He,{"data-testid":x("transaction-list-item-big",e.title),windowSize:m,showEditStatementIcon:D.hasAdminLevelAccess($.loggedInUserRole??[])&&C===!0,isClickEnabled:g,onClick:()=>g===!0?c?.(P,e.source):null,children:t.jsxs(Ie,{windowSize:m,children:[t.jsxs(Le,{windowSize:m,children:[t.jsx(Re,{windowSize:m,src:y,loading:"lazy"}),t.jsx(Me,{windowSize:m,children:v})]}),t.jsxs(Ee,{windowSize:m,children:[t.jsx(_e,{children:me("0,0",r)}),b&&m!=="small"&&t.jsx(Ae,{accountDetails:e.source,isZeniUser:C,onSetAccountsStatementDate:h,analytics:p})]})]})})})}const Fe=f.memo(Ue),A=w.getLocalizedStrings().zeniAccountsPromoCard,l={marginTop:new a(n[6],n[8]),marginBottom:new a(n[3],n[4]),itemPaddingBottom:new a(n[3],n[4]),maxWidth:new a(100,67),sectionTitleHeight:new a(83,110),promoBannerPadding:new a(n[3],n[4]),promoBannerMarginBottom:new a(n[3],n[4]),promoBannerGap:new a(n[1],n[3]),promoHighlightContainerMaxHeight:new a(30,ae.h5Regular.lineHeightValue),promoButtonBorderRadius:new a(n[1],n[2]),promoButtonPaddingVertical:new a(2,6),promoButtonPaddingHorizontal:new a(n[1],n[3]),promoFooterPositionBottom:new a(n[3],n[1]),promoFooterPositionRight:new a(n[3],n[4]),promoFooterMarginTop:new a(0,n[2])},M={textContainer:new j("largeMedium","h6Medium"),promoText:new j("extraSmallRegular","standardRegular"),promoHighlightText:new j("extraLargeRegular","h5Regular"),promoButtonText:new j("extraSmallMedium","smallRegular")},Q=8,Ne=i.div`
|
|
161
161
|
display: flex;
|
|
162
162
|
flex: 1 1 auto;
|
|
163
163
|
flex-direction: column;
|
|
@@ -198,13 +198,13 @@ import{C as a,X as L,V as W,H as ie,aJ as ne,l as B,j as t,Y as x,ao as re,M as
|
|
|
198
198
|
scrollbar-width: thin;
|
|
199
199
|
scrollbar-color: transparent transparent;
|
|
200
200
|
&::-webkit-scrollbar {
|
|
201
|
-
width: ${
|
|
201
|
+
width: ${Q}px;
|
|
202
202
|
height: ${o.sp0};
|
|
203
203
|
background-color: transparent;
|
|
204
204
|
}
|
|
205
205
|
&::-webkit-scrollbar-track {
|
|
206
|
-
box-shadow: inset 0 0 2px ${
|
|
207
|
-
-webkit-box-shadow: inset 0 0 2px ${
|
|
206
|
+
box-shadow: inset 0 0 2px ${B.scrollbarBoxShadow};
|
|
207
|
+
-webkit-box-shadow: inset 0 0 2px ${B.scrollbarBoxShadow};
|
|
208
208
|
background-color: transparent;
|
|
209
209
|
}
|
|
210
210
|
&::-webkit-scrollbar-thumb {
|
|
@@ -214,7 +214,7 @@ import{C as a,X as L,V as W,H as ie,aJ as ne,l as B,j as t,Y as x,ao as re,M as
|
|
|
214
214
|
&:hover {
|
|
215
215
|
scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
|
|
216
216
|
&::-webkit-scrollbar {
|
|
217
|
-
width: ${
|
|
217
|
+
width: ${Q}px;
|
|
218
218
|
height: ${o.sp0};
|
|
219
219
|
background-color: transparent;
|
|
220
220
|
}
|
|
@@ -223,11 +223,11 @@ import{C as a,X as L,V as W,H as ie,aJ as ne,l as B,j as t,Y as x,ao as re,M as
|
|
|
223
223
|
border-radius: 2px;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
`,
|
|
226
|
+
`,Qe=i.div`
|
|
227
227
|
position: relative;
|
|
228
228
|
padding: ${e=>l.promoBannerPadding.valuePx(e.size)};
|
|
229
229
|
background-color: ${e=>e.theme.colors.zeniAccountsPromoBackgroundColor};
|
|
230
|
-
border: 1px solid ${
|
|
230
|
+
border: 1px solid ${B.brandColorJade};
|
|
231
231
|
border-radius: ${o.sp2};
|
|
232
232
|
width: ${e=>e.width}px;
|
|
233
233
|
display: flex;
|
|
@@ -236,12 +236,12 @@ import{C as a,X as L,V as W,H as ie,aJ as ne,l as B,j as t,Y as x,ao as re,M as
|
|
|
236
236
|
box-sizing: border-box;
|
|
237
237
|
margin-bottom: ${e=>l.promoBannerMarginBottom.valuePx(e.size)};
|
|
238
238
|
box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
239
|
-
`,
|
|
239
|
+
`,qe=i.div`
|
|
240
240
|
display: flex;
|
|
241
241
|
flex-direction: ${e=>e.size==="small"?"column":"row"};
|
|
242
242
|
align-items: ${e=>e.size==="small"?"flex-start":"center"};
|
|
243
243
|
gap: ${e=>l.promoBannerGap.valuePx(e.size)};
|
|
244
|
-
`,Xe=i(
|
|
244
|
+
`,Xe=i(q)`
|
|
245
245
|
${e=>`${M.promoText.style(e.size)}`};
|
|
246
246
|
color: ${e=>e.theme.colors.zeniAccountsPromoDetailTextColor};
|
|
247
247
|
`,et=i.div`
|
|
@@ -271,7 +271,7 @@ import{C as a,X as L,V as W,H as ie,aJ as ne,l as B,j as t,Y as x,ao as re,M as
|
|
|
271
271
|
border: 1px solid
|
|
272
272
|
${e=>e.theme.colors.zeniAccountsPromoButtonHoverColor};
|
|
273
273
|
}
|
|
274
|
-
`,ot=i(
|
|
274
|
+
`,ot=i(q)`
|
|
275
275
|
${e=>`${M.promoButtonText.style(e.size)}`};
|
|
276
276
|
color: ${e=>e.theme.colors.zeniAccountsPromoButtonTextColor};
|
|
277
277
|
`,it=i(se)`
|
|
@@ -281,4 +281,4 @@ import{C as a,X as L,V as W,H as ie,aJ as ne,l as B,j as t,Y as x,ao as re,M as
|
|
|
281
281
|
position: absolute;
|
|
282
282
|
bottom: ${e=>l.promoFooterPositionBottom.valuePx(e.size)};
|
|
283
283
|
right: ${e=>l.promoFooterPositionRight.valuePx(e.size)};
|
|
284
|
-
`,nt=({sectionTitle:e,totalFormatted:b})=>{const p=
|
|
284
|
+
`,nt=({sectionTitle:e,totalFormatted:b})=>{const p=R();return t.jsx(We,{windowSize:p,children:t.jsxs(Oe,{windowSize:p,children:[t.jsx(Ye,{children:e}),t.jsx(Ge,{children:b})]})})};function yt({sectionTitle:e,analytics:b,transactionArray:p,isZeniUser:C,zeniAccountsPromoCardReport:c,onItemClick:h,onSetAccountsStatementDate:P,onPromoCardBtnClick:v}){const r=R(),y=N.createRef(),[$,g]=N.useState(0),m=W(),E=ie(p,function(u,S){return u+(S.amount?.amount??0)},0),T=p.length>0?p[0].amount?.currencySymbol:"",_=ne("0,0",E,T),H=({index:u,style:S})=>t.jsx("div",{style:{...S},children:t.jsx(Ke,{children:t.jsx(Ve,{windowSize:r,children:t.jsx(Fe,{data:p[u],showStatementSection:e===w.getLocalizedStrings().balanceCard.cardBalanceSectionTitle,isZeniUser:C,analytics:b,onItemClick:h,onSetAccountsStatementDate:P})})})}),I=N.useRef(null),U=()=>{const u=I.current;u!=null&&u.clientHeight>0&&u.clientHeight!=$&&g(u.clientHeight)},k=()=>{v?.(c?.depositAccountId??"")},L=D.hasZeniAccountsAdminLevelAccess(m.loggedInUserRoleMap);return t.jsxs(Ne,{windowSize:r,listHeight:$,"data-testid":x("transaction-list-big"),children:[t.jsx(nt,{sectionTitle:e,totalFormatted:_}),t.jsx(Ze,{children:t.jsx(re,{children:({height:u,width:S})=>t.jsxs(t.Fragment,{children:[c?.isShowDepositAccountsPromo===!0?t.jsxs(Qe,{width:S,size:r,children:[t.jsxs(qe,{size:r,children:[t.jsx(Xe,{size:r,children:A.keepInterest.prefixCashBalance}),t.jsx(et,{size:r,children:xe("keepInterest",we(c.maxPossibleInterest??0))})]}),t.jsx(tt,{onClick:k,size:r,children:t.jsx(ot,{size:r,children:L?c.depositAccountId!=null?A.button:A.signUp:A.learnMore})}),t.jsx(it,{size:r,children:A.keepInterest.footer.replace(/<interest>/,c.maxAnnualPercentageYield.toString())})]}):null,t.jsx(Je,{ref:y,height:u,width:S,style:{overflow:"unset"},itemCount:p.length,itemSize:De.value(r)+l.itemPaddingBottom.value(r),onItemsRendered:U,itemKey:F=>p[F].key,innerRef:I,children:H})]})})})]})}export{yt as default,l as dimensions};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import{u as q,aT as z,aU as A,j as o,Y as h,aV as M,c as K,aW as U,o as n,q as V}from"./index-DyBH5SZv.js";import{b as r,n as l}from"./vendor-CnQcJ2Lu.js";import{d as W}from"./TransactionList-IjM4ABdF-DZ9PEfgX.js";import{t as Z}from"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./BoxItem-DX1sag1G-C0OcCbod.js";import"./commonDimensions-DAvj4Il1-Chc9ZQai.js";const _=l.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1 1 auto;
|
|
4
|
+
height: 100vh;
|
|
5
|
+
width: 100%;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
background-color: ${t=>t.theme.colors.grey4};
|
|
8
|
+
box-shadow: ${t=>`${n.sp0} 2px ${n.sp1} ${t.theme.colors.dropShadowNormal}`};
|
|
9
|
+
`,G=l.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
flex: 1 1 auto;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
margin: ${n.sp0};
|
|
16
|
+
`,H=l.div`
|
|
17
|
+
display: flex;
|
|
18
|
+
flex: 1 1 auto;
|
|
19
|
+
height: 100%;
|
|
20
|
+
width: 100%;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
align-items: center;
|
|
24
|
+
`,J=l(V)`
|
|
25
|
+
color: ${t=>t.theme.colors.hero};
|
|
26
|
+
text-align: center;
|
|
27
|
+
`,Q=l(Z)`
|
|
28
|
+
height: ${n.sp4};
|
|
29
|
+
width: ${n.sp4};
|
|
30
|
+
color: ${t=>t.theme.colors.hero};
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
&:hover {
|
|
33
|
+
color: ${t=>t.theme.colors.primary};
|
|
34
|
+
}
|
|
35
|
+
`;function mt({title:t,subTitle:T,firstMonthOfFY:y,timeframe:c,timePeriod:a,useFixedPeriod:u,dataAvailableForPeriod:p,report:e,currentScrollYOffset:C,showStatementPageIcon:L=!1,onTimePeriodChange:x,onTransactionItemClick:w,onTransactionListScroll:b,onBackClick:I,onStatementPageIconClick:N,referrerType:B}){const[g,S]=r.useState(!0),[d,$]=r.useState(!1),[f,P]=r.useState(!1),E=q();r.useEffect(()=>{e.transactions.length>0?S(!1):S(d===!1&&f===!1?e.fetchState==="In-Progress"||e.fetchState==="Not-Started":!1)},[e,g,d,f]);const F=z(),j=A(B),v=`${j===""?F:j}.transactions.list`,O=a.startDate.isAfter(p.startDate,c)?{isLoading:d&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:u,onLoadPreviousClick:(s,i)=>{P(!1),$(!0),x?.(s,a,i)}}:void 0,Y=a.endDate.isBefore(p.endDate,c)?{isLoading:f&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"),fixedTimePeriod:u,onLoadNextClick:(s,i)=>{$(!1),P(!0),x?.(s,a,i)}}:void 0;let k=null;L&&(k=o.jsx(Q,{onClick:N}));const m=r.useRef(null);function D(s,i,R){U({category:`${v}.transaction-list.react.profiler`,message:`${s} (${i}) took ${R}ms`,level:"info"})}return o.jsx(r.Profiler,{id:"TransactionListPage",onRender:D,children:o.jsxs(_,{"data-testid":h("transaction-list-page",t),children:[o.jsx(M,{source:"TransactionListPage","data-testid":h("transaction-list-page-nav-bar"),title:t,onBackClick:I,backgroundColor:E.colors.grey4,rightSideComponent:k,scrollableContent:m.current!=null?m:void 0}),o.jsxs(G,{"data-testid":h("transaction-list",t),children:[o.jsx(J,{children:T}),g===!1?o.jsx(W,{ref:m,firstMonthOfFY:y,timeframe:c,timePeriod:a,transactions:e.transactions,currentScrollYOffset:C,onTransactionItemClick:w,onTransactionListScroll:b,showLoadPrevious:O,showLoadNext:Y,componentName:v}):o.jsx(H,{children:o.jsx(K,{size:"ExtraLarge",start:!0})})]})]})})}export{mt as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{X as H,M as A,j as o,
|
|
1
|
+
import{X as H,M as A,j as o,c as q,Y as D,a3 as W,o as a,C as g,a2 as Q,Q as K,cu as U,a as X,gt as F,gu as M,gv as R,c3 as Y,F as _,n as r,u as G,c6 as J,g8 as z,gA as Z,al as ee,gE as oe,gF as te}from"./index-DyBH5SZv.js";import{b as j,n as d}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const L=(e,c)=>`${e}.${c}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=A.getLocalizedStrings().transactionDetail.vendorDetails,i=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:c,selectedClassId:h,selectedOwnerId:t,selectedVendorName:m,allAccounts:p,allClasses:C,allOwners:b,sectionId:v,isDisabled:u,accountsHierarchyList:f,classHierarchyList:x})=>{const l=H(),y=G(),$=N.labelWidth.value(l),I=N.controlWidth.value(l),P=n=>p.filter(O=>O.accountId===n)[0]?.coaId??"",s=n=>C.filter(O=>O.classId===n)[0]?.accountingClassNumber??"",S=n=>{const O=p.find(B=>B.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(J,{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=>P(n),defaultValue:{selectedOption:e,allOptions:M(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:h,allOptions:F(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:I}):null]})]})},re=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
padding-top: ${a.sp3};
|
|
5
5
|
padding-bottom: ${a.sp3};
|
|
6
|
-
`,
|
|
6
|
+
`,se=d(ee)`
|
|
7
7
|
color: ${e=>e.theme.colors.primary};
|
|
8
8
|
margin-bottom: ${a.sp3};
|
|
9
9
|
margin-right: ${a.sp6};
|
|
@@ -20,7 +20,7 @@ import{X as H,M as A,j as o,e as B,Y as D,a7 as W,o as a,C as g,a6 as Q,Q as G,c
|
|
|
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:h,allOwners:t,selectedVendor:m,formLocalData:p,isDisabled:C,onSaveVendor:b,saveVendorDetailLocalData:v,accountsHierarchyList:u,classHierarchyList:f})=>{const x=
|
|
23
|
+
`,V="vendorDetails",de=({id:e,allAccounts:c,allClasses:h,allOwners:t,selectedVendor:m,formLocalData:p,isDisabled:C,onSaveVendor:b,saveVendorDetailLocalData:v,accountsHierarchyList:u,classHierarchyList:f})=>{const x=X({mode:"all",reValidateMode:"onChange",defaultValues:ce(u,f,t,p)}),[l,y]=j.useState(!1),$=s=>{s.preventDefault(),x.getValues().vendorDetails.vendorName!==""&&l===!1&&b?.()},I=(s,S)=>{const n=ue(s,void 0);v?.(n)},P=async(s,S)=>{(s.includes("vendorName")||s.includes("vendorOwner")||s.includes("vendorClass")||s.includes("vendorCategory"))&&(I(S),l===!0&&s.includes("vendorName")&&y(!1))};return j.useEffect(()=>{const s=x.watch((S,{name:n})=>{n!=null&&S!=null&&Y(()=>P(n,S))});return()=>{s.unsubscribe()}}),j.useEffect(()=>{m.saveStatus.fetchState==="Error"&&m.saveStatus.error?.code===409&&y(!0)},[m.saveStatus]),o.jsx(_,{...x,children:o.jsx("form",{id:e,onSubmit:$,children:o.jsx(ne,{sectionId:V,selectedVendorDetails:m,isSaveError:l,selectedAccountId:p?.vendorCategory,selectedClassId:p?.vendorClass,selectedOwnerId:p?.vendorOwner,allAccounts:c??[],allClasses:h??[],selectedVendorName:p?.vendorName,allOwners:t,isDisabled:C,accountsHierarchyList:u,classHierarchyList:f})})})},ce=(e,c,h,t)=>({[V]:{vendorName:t?.vendorName??"",vendorOwner:{allOptions:R(h),selectedOption:t?.vendorOwner},vendorCategory:{allOptions:M(e),selectedOption:t?.vendorCategory},vendorClass:{allOptions:F(c),selectedOption:t?.vendorClass}}});function ue(e,c,h){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 K("h6Regular","h5Medium"),sectionTitleLineHeight:new g(30,40)},pe=d.div`
|
|
24
24
|
display: flex;
|
|
25
25
|
flex: 1 1 auto;
|
|
26
26
|
min-height: 100%;
|
|
@@ -69,7 +69,7 @@ import{X as H,M as A,j as o,e as B,Y as D,a7 as W,o as a,C as g,a6 as Q,Q as G,c
|
|
|
69
69
|
&:hover {
|
|
70
70
|
color: ${e=>e.theme.colors.primary};
|
|
71
71
|
}
|
|
72
|
-
`,xe=d(
|
|
72
|
+
`,xe=d(U)`
|
|
73
73
|
display: flex;
|
|
74
74
|
width: 100%;
|
|
75
75
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -77,4 +77,4 @@ import{X as H,M as A,j as o,e as B,Y as D,a7 as W,o as a,C as g,a6 as Q,Q as G,c
|
|
|
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
|
-
`,
|
|
80
|
+
`,E="vendorDetailPage",k=e=>`${e}_form`,Ie=({vendorDetailView:e,onSaveSuccess:c,onCancelClick:h,onSaveVendor:t,saveVendorDetailLocalData:m})=>{const{editVendorState:p,newVendorState:C,accountsHierarchyList:b,classHierarchyList:v}=e,u=H(),{footer:f,newVendor:x}=A.getLocalizedStrings().transactionDetail.vendorDetails.createVendor,l=Object.assign({},p??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(q,{size:"ExtraLarge",start:!0})});const y=l.saveStatus?.fetchState==="In-Progress";return o.jsxs(pe,{windowSize:u,"data-testid":D("transaction-vendor-detail-page"),children:[o.jsxs(me,{windowSize:u,children:[o.jsx(we,{children:o.jsx(fe,{onClick:h,"data-testid":D("close-icon")})}),o.jsx(xe,{windowSize:u,children:x})]}),o.jsx(ge,{children:o.jsx(he,{windowSize:u,"data-testid":D("vendor-detail-page-form"),children:o.jsx(de,{id:k(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:k(E),primaryBtn:{label:f.save,isLoading:y},cancelBtn:{label:f.cancel,shouldResetOnCancel:!0,onClick:h}})]})};export{Ie as default,k as formUniqueName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,X as de,Y as A,gP as it,M as I,_ as Z,K as Ce,gZ as lt,e as We,a7 as we,o as a,C as c,a6 as Ye,k as st,as as ct,Z as dt,c0 as xe,v as $e,t as ue,a5 as pe,eZ as ut,a as Ve,l as ft,c3 as pt,aJ as mt,a0 as ht,g as G,F as Ne,f6 as Se,f7 as ve,fF as gt,bt as De,fA as wt,g_ as xt,q as o,cW as $t,ah as Xe,bn as Dt,cz as bt,b5 as Tt,m as qe,f2 as yt,dq as Ct,bp as Ze,f9 as St,fb as vt}from"./index-sK9Ftyw4.js";import{b as u,n as r}from"./vendor-CnQcJ2Lu.js";import{v as kt}from"./ZeniTransferAmountSlider-C1sl8ZNj-DIRmcL5V.js";import{r as At}from"./AccountInfoPageContent-BTk2gRyM-BiMT6aOy.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-D7ANJLK4-JxxYzwZh.js";import"./commonDimensions-DRfDJ_wQ-CneCHG2f.js";const{common:ce,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ue="amount",Pt="transferTo",ke="transferFrom",k="transferDetails",Ge="transferDetailPage",me=(e,n)=>`${e}.${n}`,Je=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 Lt({plaidConnectionDetails:e,transferDetails:n,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:T,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:y,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:B,setTotalBalance:M,onSaveChangesToLocalStore:J,onBackClick:R,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:K,onReviewClick:H}){const i=de(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,Y]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[V,N]=u.useState(!1),Q=n.transferMoneyPartiesFetchState,oe=pe(Q),X=n.transferDetailLocalData.transferFrom?.id,ee=n.transferDetailLocalData.transferTo?.id,ie=pe(X),be=pe(ee),Ke=u.useCallback(s=>{O?.(s),R(),N(!1),z(!1)},[R,O]),He=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=ut({token:v,onSuccess:Ke,onExit:He}),le=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Ve({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Ae(n,le),[n])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&Y(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(()=>{V&&x&&q()},[V,q,x]),u.useEffect(()=>{(ft.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&K?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{(oe==="In-Progress"&&Q==="Completed"||ie!==X||be!==ee)&&P.reset(Ae(n,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,be,ee,X,P,n,q]);const{isValid:Qe}=P.formState,et=async(s,h)=>{if(s!=null){const F={...h},se={amount:{amount:F[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:n.transferMoneyParties.find(ae=>ae.id===F[k].transferFrom.selectedOption),transferTo:n.transferMoneyParties.find(ae=>ae.id===F[k].transferTo.selectedOption)};J(se)}};u.useEffect(()=>{const s=P.watch((h,{name:F})=>{if(F!=null&&h!=null){const se=h[k]?.amount??0,ae=h[k]?.transferFrom,rt=h[k]?.transferTo,nt=n.transferMoneyParties.find(fe=>fe.id===ae?.selectedOption),ot=n.transferMoneyParties.find(fe=>fe.id===rt?.selectedOption);nt?.accType==="paymentAccount"&&ot?.accType==="depositAccount"&&se!==0?(y(!0),C(!0)):C(!1),S(se)}});return()=>{s.unsubscribe()}},[P,n.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:F})=>{F!=null&&h!=null&&pt(()=>et(F,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{n.reviewTransferDetail.error!=null?j(!0):j(!1)},[n.reviewTransferDetail.error]);const tt=P.handleSubmit(()=>{Qe&&(_("Review","Amount Details"),H())});u.useEffect(()=>{n.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&n.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${ke}`,{selectedOption:n.primaryPaymentAccount?.paymentAccountId,allOptions:re(n,!0,le,!0,!0)})},[n.transferDetailLocalData.transferTo?.id]);const Te=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,ye=Te[Te.length-1].annualPercentageYield.toString(),at=mt(ht(l),l,ce.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(zt,{children:t.jsxs(Bt,{children:[t.jsxs(Mt,{children:[t.jsx(Et,{}),t.jsxs(It,{children:[t.jsx(Ot,{children:n.reviewTransferDetail.error?.title}),t.jsx(_t,{children:n.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(ta,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:G.heroLight}})})]})}):null,t.jsx(Wt,{children:Z("0,0.[00]",n.transferDetailLocalData.amount)}),t.jsx(Ne,{...P,children:t.jsxs(Ft,{id:Je(Ge),onSubmit:tt,children:[t.jsxs(Qt,{children:[t.jsx(Be,{size:i,children:t.jsx(Pe,{label:{label:ce.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:me(k,ke),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>ve(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>Se(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferFrom?.id,allOptions:re(n,!0,le,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Fe,{}),t.jsx(Be,{size:i,children:t.jsx(ea,{size:i,children:t.jsx(Pe,{label:{label:ce.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:me(k,Pt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>ve(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>Se(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferTo?.id,allOptions:re(n,!1,le)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Fe,{}),t.jsx(gt,{showAdditionalInfoLabel:!1,label:{label:ce.labels.amount,width:E},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:me(k,Ue),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(Xt,{children:[$?t.jsxs(Yt,{children:[t.jsx(Vt,{children:b.transferDrawer.calculator.heading.replace("__rate__",ye).replace("__amount__",at)}),t.jsx(kt,{minStep:.01,currentAccountBalance:n.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:B,setTotalBalance:M})]}):null,t.jsxs(qt,{windowSize:i,children:[t.jsx(Gt,{windowSize:i,children:T?t.jsxs(t.Fragment,{children:[t.jsxs(Zt,{children:[t.jsx(Le,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${Z("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(De,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(Nt,{})})]}),t.jsx(Ut,{windowSize:i}),t.jsx(Jt,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${Z("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(Le,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",ye)})}),$?t.jsxs(ze,{windowSize:i,onClick:()=>y(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(je,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Kt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(ze,{windowSize:i,onClick:()=>y(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(je,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(We,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const re=(e,n,g,$=!1,T=!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(T){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Ae=(e,n)=>({transferDetails:{[Ue]: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:jt(e)},transferTo:{allOptions:re(e,!1,n,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),jt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,zt=r.div`
|
|
1
|
+
import{j as t,X as de,Y as A,gN as it,M as I,_ as Z,K as Ce,gX as lt,c as We,a3 as we,o as a,C as c,a2 as Ye,k as st,an as ct,Z as dt,c0 as xe,w as $e,q as ue,a1 as pe,eX as ut,a as Ve,l as ft,c3 as pt,aa as mt,a0 as ht,g as G,F as Ne,f4 as Se,f5 as ve,fD as gt,bs as De,fy as wt,gY as xt,n as o,cW as $t,bH as Xe,bm as Dt,cz as bt,b4 as Tt,f as qe,f0 as yt,dp as Ct,bo as Ze,f7 as St,f9 as vt}from"./index-DyBH5SZv.js";import{b as u,n as r}from"./vendor-CnQcJ2Lu.js";import{v as kt}from"./ZeniTransferAmountSlider-amszUh1p-Wx5VV7C8.js";import{r as At}from"./AccountInfoPageContent-BtMF3gSM-CwB-GVxY.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-LAHtgcHF-B9uNpNRf.js";import"./commonDimensions-DAvj4Il1-Chc9ZQai.js";const{common:ce,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ue="amount",Pt="transferTo",ke="transferFrom",k="transferDetails",Ge="transferDetailPage",me=(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 Lt({plaidConnectionDetails:e,transferDetails:n,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:T,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:y,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:K,onBackClick:R,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:J,onReviewClick:H}){const i=de(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,Y]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[V,N]=u.useState(!1),Q=n.transferMoneyPartiesFetchState,oe=pe(Q),X=n.transferDetailLocalData.transferFrom?.id,ee=n.transferDetailLocalData.transferTo?.id,ie=pe(X),be=pe(ee),Je=u.useCallback(s=>{O?.(s),R(),N(!1),z(!1)},[R,O]),He=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=ut({token:v,onSuccess:Je,onExit:He}),le=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Ve({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Ae(n,le),[n])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&Y(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(()=>{V&&x&&q()},[V,q,x]),u.useEffect(()=>{(ft.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&J?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{(oe==="In-Progress"&&Q==="Completed"||ie!==X||be!==ee)&&P.reset(Ae(n,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,be,ee,X,P,n,q]);const{isValid:Qe}=P.formState,et=async(s,h)=>{if(s!=null){const B={...h},se={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)};K(se)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const se=h[k]?.amount??0,ae=h[k]?.transferFrom,rt=h[k]?.transferTo,nt=n.transferMoneyParties.find(fe=>fe.id===ae?.selectedOption),ot=n.transferMoneyParties.find(fe=>fe.id===rt?.selectedOption);nt?.accType==="paymentAccount"&&ot?.accType==="depositAccount"&&se!==0?(y(!0),C(!0)):C(!1),S(se)}});return()=>{s.unsubscribe()}},[P,n.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&pt(()=>et(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{n.reviewTransferDetail.error!=null?j(!0):j(!1)},[n.reviewTransferDetail.error]);const tt=P.handleSubmit(()=>{Qe&&(_("Review","Amount Details"),H())});u.useEffect(()=>{n.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&n.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${ke}`,{selectedOption:n.primaryPaymentAccount?.paymentAccountId,allOptions:re(n,!0,le,!0,!0)})},[n.transferDetailLocalData.transferTo?.id]);const Te=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,ye=Te[Te.length-1].annualPercentageYield.toString(),at=mt(ht(l),l,ce.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(zt,{children:t.jsxs(Ft,{children:[t.jsxs(Mt,{children:[t.jsx(Et,{}),t.jsxs(It,{children:[t.jsx(Ot,{children:n.reviewTransferDetail.error?.title}),t.jsx(_t,{children:n.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(ta,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:G.heroLight}})})]})}):null,t.jsx(Wt,{children:Z("0,0.[00]",n.transferDetailLocalData.amount)}),t.jsx(Ne,{...P,children:t.jsxs(Bt,{id:Ke(Ge),onSubmit:tt,children:[t.jsxs(Qt,{children:[t.jsx(Fe,{size:i,children:t.jsx(Pe,{label:{label:ce.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:me(k,ke),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>ve(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>Se(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferFrom?.id,allOptions:re(n,!0,le,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Be,{}),t.jsx(Fe,{size:i,children:t.jsx(ea,{size:i,children:t.jsx(Pe,{label:{label:ce.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:me(k,Pt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>ve(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>Se(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferTo?.id,allOptions:re(n,!1,le)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Be,{}),t.jsx(gt,{showAdditionalInfoLabel:!1,label:{label:ce.labels.amount,width:E},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:me(k,Ue),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(Xt,{children:[$?t.jsxs(Yt,{children:[t.jsx(Vt,{children:b.transferDrawer.calculator.heading.replace("__rate__",ye).replace("__amount__",at)}),t.jsx(kt,{minStep:.01,currentAccountBalance:n.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(qt,{windowSize:i,children:[t.jsx(Gt,{windowSize:i,children:T?t.jsxs(t.Fragment,{children:[t.jsxs(Zt,{children:[t.jsx(Le,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${Z("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(De,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(Nt,{})})]}),t.jsx(Ut,{windowSize:i}),t.jsx(Kt,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${Z("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(Le,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",ye)})}),$?t.jsxs(ze,{windowSize:i,onClick:()=>y(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(je,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Jt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(ze,{windowSize:i,onClick:()=>y(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(je,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(We,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const re=(e,n,g,$=!1,T=!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(T){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Ae=(e,n)=>({transferDetails:{[Ue]: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:jt(e)},transferTo:{allOptions:re(e,!1,n,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),jt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,zt=r.div`
|
|
2
2
|
margin-top: ${a.sp3};
|
|
3
3
|
display: flex;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -7,12 +7,12 @@ import{j as t,X as de,Y as A,gP as it,M as I,_ as Z,K as Ce,gZ as lt,e as We,a7
|
|
|
7
7
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
8
8
|
border-radius: ${a.sp2};
|
|
9
9
|
box-shadow: ${e=>`${a.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
10
|
-
`,
|
|
10
|
+
`,Bt=r.form`
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
justify-content: center;
|
|
14
14
|
align-items: center;
|
|
15
|
-
`,
|
|
15
|
+
`,Ft=r.div`
|
|
16
16
|
display: flex;
|
|
17
17
|
width: 100%;
|
|
18
18
|
justify-content: space-between;
|
|
@@ -111,9 +111,9 @@ import{j as t,X as de,Y as A,gP as it,M as I,_ as Z,K as Ce,gZ as lt,e as We,a7
|
|
|
111
111
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
112
112
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
113
113
|
width: ${e=>e.windowSize==="small"?"100%":"unset"};
|
|
114
|
-
`,
|
|
114
|
+
`,Kt=r(qe)`
|
|
115
115
|
color: ${e=>e.theme.colors.hero};
|
|
116
|
-
`,
|
|
116
|
+
`,Jt=r(yt)`
|
|
117
117
|
cursor: pointer;
|
|
118
118
|
width: 12px;
|
|
119
119
|
height: 12px;
|
|
@@ -135,13 +135,13 @@ import{j as t,X as de,Y as A,gP as it,M as I,_ as Z,K as Ce,gZ as lt,e as We,a7
|
|
|
135
135
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
136
136
|
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
137
137
|
border-radius: ${a.sp2};
|
|
138
|
-
`,
|
|
138
|
+
`,Be=r.div`
|
|
139
139
|
display: flex;
|
|
140
140
|
flex: 1;
|
|
141
141
|
background-color: ${e=>e.theme.colors.grey3};
|
|
142
142
|
min-height: 1px;
|
|
143
143
|
max-height: 1px;
|
|
144
|
-
`,
|
|
144
|
+
`,Fe=r.div`
|
|
145
145
|
display: flex;
|
|
146
146
|
flex-direction: row;
|
|
147
147
|
padding: ${a.sp2};
|
|
@@ -179,7 +179,7 @@ import{j as t,X as de,Y as A,gP as it,M as I,_ as Z,K as Ce,gZ as lt,e as We,a7
|
|
|
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,aa=({transferDetails:e,isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:T,totalBalance:w,maxInsuredAmount:d,zeniAccountsConfigDetail:f,fireTrackTransferBetweenAccountsFormClicked:l,onSaveChangesToLocalStore:y,onTransferClick:C,onDismissClick:S,onAnotherTransferClick:
|
|
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,aa=({transferDetails:e,isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:T,totalBalance:w,maxInsuredAmount:d,zeniAccountsConfigDetail:f,fireTrackTransferBetweenAccountsFormClicked:l,onSaveChangesToLocalStore:y,onTransferClick:C,onDismissClick:S,onAnotherTransferClick:F,onEstablishConnectionClick:M,onBackClick:K,onFetchLinkTokenClick:R,plaidConnectionDetails:O,showReviewContent:_,setShowReviewContent:J,setCurrentDrawerContent:H,clearReviewTransferDetail:i,onReviewClick:E,setIsCalculatorOpen:W,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:Y})=>{const x=de(),z=e.reviewTransferDetail,V=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(oa,{windowSize:x,children:e.fetchState==="Completed"?t.jsxs(Re,{windowSize:x,isTransferCompleted:!0,children:[t.jsx(Ee,{windowSize:x,children:t.jsx(Ie,{"data-testid":A("cross-transfer-success-close-button"),onClick:()=>{l("Cross","Transfer Success"),S?.()}})}),t.jsxs(sa,{windowSize:x,children:[t.jsx(it,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),t.jsx(ia,{children:V?t.jsxs(t.Fragment,{children:[D.transferDrawer.internal.transferSuccessMsgPrefix,t.jsx(Me,{children:Z("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(Me,{children:Z("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(la,{windowSize:x,children:[t.jsx(Ce,{variant:"secondary",label:D.transferDrawer.anotherTransferBtn,"data-testid":A("another-transfer-button"),onClick:()=>{l("Another Transfer","Transfer Success"),Y(0),W(!1),v(0),j(!1),F()},style:{minWidth:200}}),t.jsx(Ce,{variant:"primary",label:D.transferDrawer.backToChecking,"data-testid":A("back-to-checking-button"),onClick:()=>{l("Back to Checking","Transfer Success"),S?.()},style:{minWidth:200}})]})]})]}):_?t.jsx(lt,{transferDetails:e,setCurrentDrawerContent:H,setShowReviewContent:J,onTransferClick:C,clearReviewTransferDetail:i,reviewTransferDetail:z,fireTrackTransferBetweenAccountsFormClicked:l}):t.jsxs(t.Fragment,{children:[t.jsxs(Re,{windowSize:x,isTransferCompleted:!1,children:[t.jsx(Ee,{windowSize:x,children:t.jsx(Ie,{"data-testid":A("cross-amount-details-close-button"),onClick:()=>{l("Cross","Amount Details"),S?.()}})}),x==="small"?t.jsx(ca,{windowSize:x,children:D.transferDrawer.title}):t.jsx(da,{children:D.transferDrawer.title}),x==="small"?t.jsx(na,{children:D.transferDrawer.subTitle}):t.jsx(ra,{children:D.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?t.jsx(Lt,{isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:T,totalBalance:w,onBackClick:K,onSaveChangesToLocalStore:y,plaidConnectionDetails:O,transferDetails:e,zeniAccountsConfigDetail:f,onEstablishConnectionClick:M,onFetchLinkTokenClick:R,onReviewClick:E,setIsCalculatorOpen:W,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:Y,fireTrackTransferBetweenAccountsFormClicked:l,maxInsuredAmount:d}):t.jsx(We,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),N()?t.jsx(we,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:Ke(Ge),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]})})},ra=r(ue)`
|
|
183
183
|
color: ${e=>e.theme.colors.hero};
|
|
184
184
|
`,na=r($e)`
|
|
185
185
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -315,7 +315,7 @@ import{j as t,X as de,Y as A,gP as it,M as I,_ as Z,K as Ce,gZ as lt,e as We,a7
|
|
|
315
315
|
margin-right: ${a.sp2};
|
|
316
316
|
padding: 12px ${a.sp0};
|
|
317
317
|
box-sizing: content-box;
|
|
318
|
-
`,{common:{navBar:{back:Sa}}}=I.getLocalizedStrings(),L={pageTitleMarginXAxis:new c(o[0],o[8]),navBarContainerPaddingXaxis:new c(10,19),pageContentPaddingLeftRight:new c(o[3],o[0]),navBarContainerMarginLeftRight:new c(o[0],o[8]),descriptionMarginLeftRight:new c(o[0],o[8]),accountInfoPageWrapperMarginLeft:new c(o[0],o[8]),accountInfoPageWrapperMarginRight:new c(o[0],o[5]),accountInfoPageWrapperMarginBottom:new c(o[5],o[8])},ge=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList.transferDrawer,va=({authParams:e,downloadAccountDetailEndPoint:n,depositAccount:g,zeniAccountsConfigDetail:$,currentTenant:T,onDismissClick:w,fireTrackTransferBetweenAccountsFormClicked:d,setShowWireAccountInfo:f})=>{const l=de();return t.jsxs(t.Fragment,{children:[t.jsxs(Aa,{windowSize:l,children:[t.jsx(La,{windowSize:l,children:t.jsx(De,{title:Sa,enterDelay:600,placement:"bottom",children:t.jsx(Pa,{"data-testid":A("wire-transfer-account-info-back-button"),onClick:()=>{d("Back","Wire Transfer Details"),f(!1)}})})}),t.jsx(
|
|
318
|
+
`,{common:{navBar:{back:Sa}}}=I.getLocalizedStrings(),L={pageTitleMarginXAxis:new c(o[0],o[8]),navBarContainerPaddingXaxis:new c(10,19),pageContentPaddingLeftRight:new c(o[3],o[0]),navBarContainerMarginLeftRight:new c(o[0],o[8]),descriptionMarginLeftRight:new c(o[0],o[8]),accountInfoPageWrapperMarginLeft:new c(o[0],o[8]),accountInfoPageWrapperMarginRight:new c(o[0],o[5]),accountInfoPageWrapperMarginBottom:new c(o[5],o[8])},ge=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList.transferDrawer,va=({authParams:e,downloadAccountDetailEndPoint:n,depositAccount:g,zeniAccountsConfigDetail:$,currentTenant:T,onDismissClick:w,fireTrackTransferBetweenAccountsFormClicked:d,setShowWireAccountInfo:f})=>{const l=de();return t.jsxs(t.Fragment,{children:[t.jsxs(Aa,{windowSize:l,children:[t.jsx(La,{windowSize:l,children:t.jsx(De,{title:Sa,enterDelay:600,placement:"bottom",children:t.jsx(Pa,{"data-testid":A("wire-transfer-account-info-back-button"),onClick:()=>{d("Back","Wire Transfer Details"),f(!1)}})})}),t.jsx(Ba,{windowSize:l,children:ge.wireInstruction.replace("__accountName__",g.accountName)}),t.jsx(ja,{windowSize:l,children:t.jsx(za,{children:ge.wireTransferDescriptionLine1})}),t.jsx(ka,{windowSize:l,children:t.jsx(At,{authParams:e,downloadAccountDetailEndPoint:n,currentTab:"wireDetails",zeniAccountsConfigDetail:$,currentTenant:T,depositAccount:g})})]}),t.jsx(we,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},cancelBtn:{label:""},primaryBtn:{label:ge.backToChecking,onClick:()=>{d("Back to Checking","Wire Transfer Details"),w()}},showCancel:!1,showPrimaryButton:!0})]})},ka=r.div`
|
|
319
319
|
margin-left: ${e=>`${L.accountInfoPageWrapperMarginLeft.valuePx(e.windowSize)}`};
|
|
320
320
|
margin-right: ${e=>`${L.accountInfoPageWrapperMarginRight.valuePx(e.windowSize)}`};
|
|
321
321
|
margin-bottom: ${e=>`${L.accountInfoPageWrapperMarginBottom.valuePx(e.windowSize)}`};
|
|
@@ -348,11 +348,11 @@ import{j as t,X as de,Y as A,gP as it,M as I,_ as Z,K as Ce,gZ as lt,e as We,a7
|
|
|
348
348
|
margin-left: ${e=>L.descriptionMarginLeftRight.valuePx(e.windowSize)};
|
|
349
349
|
margin-right: ${e=>L.descriptionMarginLeftRight.valuePx(e.windowSize)};
|
|
350
350
|
margin-bottom: ${a.sp7};
|
|
351
|
-
`,za=r.div``,
|
|
351
|
+
`,za=r.div``,Ba=r(xe)`
|
|
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
|
-
`,
|
|
355
|
+
`,Fa=({zeniAccountsConfigDetail:e,depositAccountListView:n,downloadAccountDetailEndPoint:g,authParams:$,selectedAccountId:T,currentTenant:w,setCurrentDrawerContent:d,fireTrackTransferBetweenAccountsFormClicked:f,onDismissClick:l})=>{const[y,C]=u.useState(!1),[S,F]=u.useState(n.depositAccounts.find(M=>M.id===T));return y&&S!=null?t.jsx(va,{downloadAccountDetailEndPoint:g,authParams:$,currentTenant:w,zeniAccountsConfigDetail:e,depositAccount:S,onDismissClick:l,setShowWireAccountInfo:C,fireTrackTransferBetweenAccountsFormClicked:f}):t.jsx(pa,{depositAccountListView:n,setCurrentDrawerContent:d,selectedAccount:S,setShowWireAccountInfo:C,setSelectedAccount:F,fireTrackTransferBetweenAccountsFormClicked:f})},Ga=({transferDetails:e,zeniAccountsConfigDetail:n,depositAccountListView:g,maxInsuredAmount:$,currentTenant:T,showReviewContent:w,currentDrawerContent:d,downloadAccountDetailEndPoint:f,authParams:l,analytics:y,setCurrentDrawerContent:C,setShowReviewContent:S,onSaveChangesToLocalStore:F,onTransferClick:M,onReviewClick:K,onDismissClick:R,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,clearReviewTransferDetail:H,onFetchLinkTokenClick:i,plaidConnectionDetails:E})=>{const[W,j]=u.useState(!1),[m,v]=u.useState(!1),[Y,x]=u.useState(0),[z,V]=u.useState(0),[N,Q]=u.useState(0),oe=()=>{const X=(ee,ie)=>y.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(aa,{transferDetails:e,isCalculatorOpen:W,showAnnualYieldEarned:m,transferAmount:Y,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:H,onReviewClick:K,setShowReviewContent:S,showReviewContent:w,setIsCalculatorOpen:j,setShowAnnualYieldEarned:v,setTransferAmount:x,setYieldEarned:V,setTotalBalance:Q,maxInsuredAmount:$}):t.jsx(Fa,{zeniAccountsConfigDetail:n,depositAccountListView:g,selectedAccountId:e.transferDetailLocalData.transferTo?.id,currentTenant:T,downloadAccountDetailEndPoint:f,authParams:l,fireTrackTransferBetweenAccountsFormClicked:X,setCurrentDrawerContent:C,onDismissClick:R})};return t.jsx(Ma,{children:oe()})},Ma=r.div`
|
|
356
356
|
display: flex;
|
|
357
357
|
flex-direction: column;
|
|
358
358
|
background-color: ${e=>e.theme.colors.grey4};
|