@zeniai/web-cockpit-ui 1.15.12-dev → 1.15.13-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-BY65AQjO-Cl2Tlmft.js → ACHDetailsPage-BlujuoRH-D3z2m9vf.js} +1 -1
- package/dist/assets/{AIPerformancePage-B0a7EX_p-BepCOVvT.js → AIPerformancePage-DfgPUakC-C7_4KJtd.js} +12 -12
- package/dist/assets/AccountInfoPage-BYwGsz6J-ilS3p_4u.js +18 -0
- package/dist/assets/{AccountInfoPageContent-BsSGhNw9-Bhg40nPQ.js → AccountInfoPageContent-CTvsml8u-HiMO1t4f.js} +7 -7
- package/dist/assets/{AccountLockedInfoModal-uPOYP0OH-gMh9hb_c.js → AccountLockedInfoModal-DeYVMh3B-Dec8Ripp.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-BgPmbG_g-9wGOY4BN.js → AccountReconDetailsDrawerPage-D6WT5Co_-Boi6JvlJ.js} +1 -1
- package/dist/assets/{AccountRow-B9ZIzZy7-C9nPv4rY.js → AccountRow-FmhkZVL4-BiCaU5gp.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BLcpWU3T-CV6K5Y9x.js → AccountsPromoCardStack-B5Mri6qW-C55uOtTG.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-B1oucxyM-I6biD8O7.js → AddAddressForCardDrawer-Bs4dQyRL-ChMzAqlj.js} +1 -1
- package/dist/assets/{AddToWalletPage-B1GVnxRf-CndQH9vq.js → AddToWalletPage-fBplELoj-BbSWfj-_.js} +1 -1
- package/dist/assets/{AgingReportsPage-Bpp4te8m-HodwoOcT.js → AgingReportsPage-CgeLN6Su-mjdbj-V7.js} +1 -1
- package/dist/assets/{AllUserItems-CzugF5fn-8WnbDsqH.js → AllUserItems-vOFCgjs7-BawEw1bw.js} +3 -3
- package/dist/assets/{ApAgingDetailPage-CyUQeZY0-DHH2Dilv.js → ApAgingDetailPage-CF5WKuOc-DwzZ4J6w.js} +4 -4
- package/dist/assets/{AppBasePage-Di7hObbX-uZJvqLhK.js → AppBasePage-DrIjva6e-BEoSV9em.js} +1 -1
- package/dist/assets/{AppDrawerContent-KdrUuifo-DcEK8qwb.js → AppDrawerContent-Co1DpiWD-BseTWq0X.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-BRIgTh7x-CF-Pagn9.js → ApprovalRulesSettingsPage-tYbxBThK-Cp_BZtLr.js} +1 -1
- package/dist/assets/{ArAgingChart-DeE5uhiT-BcI5cuvH.js → ArAgingChart-B2zTJJgb-BW-4V4KX.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CFiIUBWl-BXhWrXr_.js → ArAgingDetailPage-0nCr6crv-CVAwjIoB.js} +5 -5
- package/dist/assets/{AttachmentView-CfacSLcU-gwYezuYM.js → AttachmentView-vlVaH4YF-DjHAa-jm.js} +1 -1
- package/dist/assets/{BankAccountSection-Bm8vdxFd-DKKdvH8R.js → BankAccountSection-CDKiTWgn-CtT_fqlj.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-M3w6kP33-ChP5wvhC.js → BankAccountWarningSection-tSnRJm3S-Xh7INFxm.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Dfrp0CKz-Dc4Qac0T.js → BankConnectionsSettingsPage-O_L8CHJf-Lbkg03Kb.js} +1 -1
- package/dist/assets/{BillDetailPage-BA1D1bO3-Ofkt6QPd.js → BillDetailPage-DR3JefXf-CT_vRh92.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DR8YzZt1-CQcbdF34.js → BillPayApprovalRuleDetailPage-2w8HO-NU-BrDPRKpx.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CfZ4aSPM-C6nI7yKc.js → BillPayApprovalRulesPage-yFoEpHK8-mn4XE1DW.js} +1 -1
- package/dist/assets/{BillPayPromoPage-CP9Nvd2Q-CSZ8mSrV.js → BillPayPromoPage-DZkA_0AV-wh6M-Qtv.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BwEONKu_-DARv5ESb.js → BillPaySetUpPage-B2j-es9G-Cgscrq-x.js} +7 -7
- package/dist/assets/{BillingSettingsPage-DicGyWCt-DwbmjVcE.js → BillingSettingsPage-ayQNGWSW-BH36NbEd.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-fS3-YEdi-DKZKHDla.js → BillsBulkReviewDrawerPage-B2LDJ9-N-Bz6yNrUs.js} +1 -1
- package/dist/assets/{BoxItem-Cr0Y9YBV-C2AawtqJ.js → BoxItem-B0bHU_KA-CwJAi_XO.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CvL9cdJm-Drj-tMQU.js → BusinessVerificationPage-DZ27apcr-60B1XBNo.js} +1 -1
- package/dist/assets/{CardNumberSubText-CXBKzGK5-CCtn2y_n.js → CardNumberSubText-CpqumrS--C5H93W0D.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DOdPOiws-CAJxdhJ3.js → CashbackDetailPage-C3oNmfln-Cjfl1QQU.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-DfhAyysD-Cgd92Yem.js → ChargeCardDetailPage-C9XhHqSo-C6G4QIZB.js} +1 -1
- package/dist/assets/{ChargeCardListPage-Bnnu4TVk-DFZAYaNm.js → ChargeCardListPage-B_PxtkQX-D4XUj6S4.js} +1 -1
- package/dist/assets/{ChargeCardListTable-D7zGM8uo-70otSDDQ.js → ChargeCardListTable-kp0WwIZo-C7S3-nFL.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-U00GbINt-BIwIfF30.js → ChargeCardPaymentHistoryPage-D1l3Qgr_-CcXK8zox.js} +8 -8
- package/dist/assets/{ChargeCardPromoPage-BpBiwjfr-DWB9eQGN.js → ChargeCardPromoPage-DcmgTF8u-uElL894v.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-Duj6901M-CIASuReJ.js → ChargeCardSetupPage-BX9fPIf_-CJBf2z8R.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-IkU86L31-ClrDQTtP.js → ChargeCardStatementsPage-a5u9wGDg-CReuXYls.js} +4 -4
- package/dist/assets/{CheckDepositDrawerPage-fHeTkRJF-CdLdCkIH.js → CheckDepositDrawerPage-_DvlXSse-DhB3lKOy.js} +1 -1
- package/dist/assets/{CollapsableReportTable-DUo-9gOh-B_gwOhYJ.js → CollapsableReportTable-DgteU0nB-DwU6xqcB.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DzDZe6MU-DWguMF6d.js → CompanyOfficerDetailsSection-DG1ZQ-UL-BWPYN3Ux.js} +1 -1
- package/dist/assets/{CompanyPassportCard-BwiwJ82k-WRVY9XX8.js → CompanyPassportCard-JfMVwFHV-DIdzwTm1.js} +3 -3
- package/dist/assets/{CompanyPassportPage-Bz3rzG9k-e3d2ccIM.js → CompanyPassportPage-2j8z-oge-D6U4VneL.js} +1 -1
- package/dist/assets/{CompleteProfile-CRXV-nNq-DpRL426l.js → CompleteProfile-Cm8XlcS3-h3qANDX9.js} +2 -2
- package/dist/assets/{ConfettiBurst-CapRdPno-Dlg4XvfD.js → ConfettiBurst-BtmMysff-DXW2t6JP.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BjPotKnf-De1W0m4N.js → CreateOrEditVendorPage-BxSAnKo6-BT1rzueh.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BTZ2Lph6-DMwCUXwV.js → CreditCardPaymentDrawerPage-a2j9Vyid-B5YbQ1Qy.js} +1 -1
- package/dist/assets/{CurrencySelectField-DY0HeU0G-CSYPXeIb.js → CurrencySelectField-CbBlYqRB-D1pLCzjN.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BIKXkkcY-IFMHYYO1.js → CustomerOnboardingActivationPage-CG508vOx-CLWU-GVx.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CuP19GYc-BdzG4LPd.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYiAmFsM-C0-Ot9Uw.js → CustomerOnboardingDetailPageSkeleton-BszHZi0e-DON_7YLk.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-gssFllMT-DT9hupvU.js → CustomerOnboardingNoStepsPage-Cg8ti5NY-DlxEJtW7.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-CBJHj8BH-KUidrPxI.js → CustomerOnboardingPage-DM-gDkp1-rcTTcpJq.js} +1 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-BryLMJRG-DDfHjs9L.js +202 -0
- package/dist/assets/{Dashboard-BVvkfPf9-hp4sQi7A.js → Dashboard-BRm1rkFD-sRJsQcvd.js} +1 -1
- package/dist/assets/{DashboardReportPage-DHQ79h9V-C3FgTbgA.js → DashboardReportPage-rtbUwJSW-Cfsk6TQp.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-B8Q-YA_s-DLXiBeQj.js → DashboardSidebarBackgroundAnimation-DVTdlTEZ-LE3GU0DJ.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DZnqI7IQ-DR0NgZ86.js → DepositAccTransactionItem-BbKLxsPR-Dpo7wVCS.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BMNdp-3Q-CyOUea8P.js → DepositAccTransactionListPage-0AV-fx2Z-BFJB16zN.js} +2 -2
- package/dist/assets/{DomesticWireDetailsPage-CCP6xoW_-BlmZjbpt.js → DomesticWireDetailsPage-BKumlfKE-Cqz9aujw.js} +1 -1
- package/dist/assets/{DownloadOverlay-B2bK30rG-B-m5Mv2I.js → DownloadOverlay-C6GFjg2N-DrkN4pip.js} +1 -1
- package/dist/assets/{DrawerPage-BRJDrBlv-D28-uO54.js → DrawerPage-BjfQ_wvz-BRg4aJBc.js} +1 -1
- package/dist/assets/{EditPeoplePage-I8E1Rs3x-DbyrgA_C.js → EditPeoplePage-59PeI1Ul-cMTnU9vy.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-C7BPmFMR-DTPMhwLH.js → EditReimbursementDetailPage-D5cPRveU--6MVI5yI.js} +1 -1
- package/dist/assets/{EntityDetailPage-BraBJ2k1-Wq1E4JPl.js → EntityDetailPage-CiO1dOzo-BB1u6uOD.js} +2 -2
- package/dist/assets/{EntitySummarySection-DPmL3Bnf-CHA6TrKp.js → EntitySummarySection-DBQxz0Ak-YgKNz1nX.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CDaO_5Vj-gZyomnai.js → ExpenseAutomationOverviewPage-D9JnRKeQ-bE2V-UEo.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-DUenmMQD-Yh_8CeIf.js → ExpenseAutomationPage-isWf-Yjm-BEj6GzxJ.js} +1 -1
- package/dist/assets/{ExpressPayPage-DxO1mXNE-DeRja-sm.js → ExpressPayPage-iL1BYLic-BqUwfpLY.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BWPNZcYs-CdJLxzVS.js → FeaturePreviewPage-CFz7RpI6-DbRQaCew.js} +1 -1
- package/dist/assets/{FollowStepsSection-DhVGeocZ-Ddk_z58q.js → FollowStepsSection-Crd9GwnW-RQu2gQ-V.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-8eiQXg7N-pPWYTyKl.js → GlobalReviewListPage-xUatsnwu-Dx9d2TTm.js} +1 -1
- package/dist/assets/{InformationCardStack-CHVjIv01-Y1Eih__r.js → InformationCardStack-CgSYiHdK-Cf9Cjw1k.js} +2 -2
- package/dist/assets/{InsightsCardStack-x_tohY2Z-DNptH2Sv.js → InsightsCardStack-dkuf5D9A-Duqx5-xn.js} +2 -2
- package/dist/assets/{InsightsSection-D7g00fg7-Bl1k6KMG.js → InsightsSection-CUk29Ace-BKDJK0uo.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-DVRtPRi9-ig1iJJpM.js → IntegrationsSettingsPage-As-313jz-BWoXfvd2.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-DnWbUuiD-CIWMoecY.js → InternationalWireSwiftDetailsPage-CqMsBHlO-CbK2_2UB.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-CHvUYgd8-B9TQJM22.js → InternationalWireVerificationPage-BJ9-Rvqo-C5xNuG17.js} +1 -1
- package/dist/assets/{InviteFormPage-Cw0TIkwc-D0dTmTLg.js → InviteFormPage-D7yOmbjN-B6cNY2j6.js} +1 -1
- package/dist/assets/{InvitePageListView-B4gEzFp2-1aqNeIHc.js → InvitePageListView-CUeSQD7S-BB-ili2p.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Bnsqv_IY-DhNBoZS8.js → InvitePeoplePage-BY6iz4UW-16zeXtyQ.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-CW4hHmAi-DKFSw8te.js → InvoiceUploadSection-fjn4uF_l-DBvp2GNb.js} +20 -20
- package/dist/assets/{IssueChargeCardPage-sM826Uvu-DMhbp0aa.js → IssueChargeCardPage-B30u11O2-BHXfiwVd.js} +1 -1
- package/dist/assets/{LabeledAddressValue-AuzW29LK-99vdzqZR.js → LabeledAddressValue-CJZ_1zh1-dIyC1ckB.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-C_KatgTA-ByiPbJgm.js → LabeledAddressValueField-3BEuHr_a-BAXHOnek.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CEd7DSmU-mOU-S2fp.js → LabeledControlledCheckBoxField-DqtbWhaH-Ct8s61sn.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-CffMX6f1-C44H-4q3.js → LabeledCountryMultiSelectField-t7lnpz15-B8MvgThW.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CoS6DIi_-DTDCa09f.js → LabeledCreatableSingleSelectField-DSrFEwMO-BtK2wHhP.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CVBhbPHv-9665D02s.js → LabeledDocumentField-CYvUm3Rk-DLfE-kKo.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CNru68eT-GPSUv36b.js → LabeledDropDownFormattedTextField-IohlqRi7-BoY6bhCM.js} +1 -1
- package/dist/assets/{LabeledMultiSelectField-CTqXa2Rh-Cxu9DNT8.js → LabeledMultiSelectField-CveBXp8L-BAd1gTI4.js} +1 -1
- package/dist/assets/{LabeledText-Da0Yn6u8-CFgd90E4.js → LabeledText-C9CoADG4-BsL6jbJB.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CE332GjA-BafYQ_Pm.js → LabeledUserSingleSelectWithSubtitlesField-B6q4n0f5-BWHNFjm5.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DU4-ho4X-DQBIg45w.js → LabeledZeniRolesDropDownField-B-0ZfQFs-BLpCJZWp.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-Dx4OE1-O-HLvvvZHd.js → LinkJETransactionPage-CLo-jbfZ-CgODjcQ0.js} +2 -2
- package/dist/assets/{LockCardPage-B3P6wcK_-Ckpg2eew.js → LockCardPage-CmWzTH0n-B_X-TwZ4.js} +6 -6
- package/dist/assets/{LowBalancePopup-Dp1vEYQQ-DIw_NRSy.js → LowBalancePopup-BUAKDPHL-BfDsvGUL.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-v539jeyl-sH7kLHfx.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CU9g_d2_-gcBn5f-G.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CYupqopA-BhBR0cCB.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-Iva17nX0-DhK2jGAZ.js → MagicLinkSuccessPage-BGSpNBaK-DRZ7k8D2.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-B726bP_P-CoT1ZO_f.js → MagicLinkTitleSection-BKIOmha4-ChpstG69.js} +1 -1
- package/dist/assets/MailingDetailsSection-BwgWy_VZ-Do6nH1qr.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-Ad6xGN08-JjXBlik9.js → MyBankConnectionsSettingsPage-B3HEwRST-BMNPEzRQ.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BYZ61huS-YKZjMs5X.js → MyPendingActivationChargeCardListPage-Cy_JIUO5-CXr2StVT.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-bEru4GQJ-Cj303JTH.js → MyProfileSettingsPage-D4XR8lj4-Cx77Yc0W.js} +1 -1
- package/dist/assets/{NavBarWithPicker-BAKrtv3g-BXBcsUFZ.js → NavBarWithPicker-Brxnh3kz-BBzh1_Q6.js} +1 -1
- package/dist/assets/{NavigationArrow-CKvBs9-h-DGD1r2EE.js → NavigationArrow-C1HvrCIx-DFOmLMLf.js} +1 -1
- package/dist/assets/{NavigationDots-BdcVrwsL-D_WEvn6f.js → NavigationDots-Ttv3r4BR-v2ws1TaA.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Cx38uQAS-BBICE4OG.js → NewGlobalMerchantPage-rrVa4Iiv-lDEd0itd.js} +1 -1
- package/dist/assets/{NoDataChart-BbyxZE2g-CtN5BYbf.js → NoDataChart--T7v827k-zXeqjU35.js} +1 -1
- package/dist/assets/{NoDataTable-BNZWGvtm-S9Fe9Ovx.js → NoDataTable-cJmfr934-D57XH4Vn.js} +1 -1
- package/dist/assets/{NotFoundPage-CssnEz-k-ccXdF3op.js → NotFoundPage-C-RS1j9W-DH4NAkkX.js} +9 -9
- package/dist/assets/{NotificationSettingsPage-DmgxnO9I-BH2rOJH7.js → NotificationSettingsPage-Bt94GV9--r7sgcB96.js} +1 -1
- package/dist/assets/{NotificationsListConfig-DdMKLqFI-DwvXMwFg.js → NotificationsListConfig-CbWdzORJ-BsmAt2Aw.js} +1 -1
- package/dist/assets/{NotificationsPage-B9XIE39J-CejudHUF.js → NotificationsPage-kZGgGVaC-BAHmfRGl.js} +1 -1
- package/dist/assets/{OpExByVendorPage-5wnFvYXt-D6A9jnRY.js → OpExByVendorPage-BSoM5hsv-8kUubW4x.js} +1 -1
- package/dist/assets/{OverlayContainerPage-IDTUbuAC-dv-sDcTQ.js → OverlayContainerPage-IDTUbuAC-C05m2YxE.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CrtKdSaD-CYng6puq.js → PandLWithForecastPage-C181kEf--CfV2ma5M.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CQki5l4P-CuMomXeK.js → PaymentAccountSetupBillingAddressSection-DqDvhQwH-C-RxqOsn.js} +7 -7
- package/dist/assets/{PeoplePage-BCjxJl1y-JBCpiTMQ.js → PeoplePage-ByvK4lsu-B40YfrBC.js} +1 -1
- package/dist/assets/{Preview-DMKZka6j.js → Preview-B0RnB2Yn.js} +1 -1
- package/dist/assets/{ProductsCarousel-BYvlY6Jl-BJ6Pqq3q.js → ProductsCarousel-CCLEQfr4-D3JLfCUB.js} +1 -1
- package/dist/assets/{PromoBaseCards-6vRaZnUg-CBqkAept.js → PromoBaseCards-BESaQCrl-gKsHUW_9.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-C-v9bhUW-CtiRv4Zj.js → QBOConnectionDialog-BhmH5aji-CM5T8oTr.js} +1 -1
- package/dist/assets/{QBOSetupSection-DPhwp1AB-DxJDpMHr.js → QBOSetupSection-BevEEFTb-Jbk-oPo7.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Crz8RArL-DQzyot-2.js → ReimbursementApprovalRuleDetailPage-Dklp8fND-C3LBVHUX.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-CHrPVveg-DDlyKkun.js → ReimbursementApprovalRulesPage-CCo730ny-q5c8fyV0.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BlfifQuc-DXXQTfQu.js → ReimbursementDetailPage-D8G3Aoci-DIVONTh0.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-B6rhhOye-CmIRL-Wr.js → ReimbursementPromoPage-B8BSm0-k-Bt9GjQuu.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-BQwRjKZ5-CWVOKlly.js → ReimbursementSetUpPage-KRQIL0VK-DR0ER4Yx.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BTaFn0Mh-DXx1vhRK.js → ReimbursementsBulkReviewDrawerPage-B77ypxnc-BkObb0RE.js} +1 -1
- package/dist/assets/{ReloadCard-DETUOoLJ-Dww2RtAQ.js → ReloadCard-0KQtayY--Cg4JfrF6.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-DSDclygb-CPmwPKtZ.js → ReportTableViewSelector-wrUJSIfk-Dns-QQbX.js} +26 -26
- package/dist/assets/{ReportsPage-BrmMmYET-qm3o80ge.js → ReportsPage-D-r0S90r-CtLOp9ey.js} +1 -1
- package/dist/assets/{RevenueChart-B711QWTX-ztc9NA65.js → RevenueChart-4kIDtnAc-WBQ50ylJ.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-Bkw0FfE--BL2mmyys.js → ReviewDetailsPage-BqIBTewY-C8DdFF_e.js} +1 -1
- package/dist/assets/{ReviewOverlay-CkB3Z8hH-CX5FMXRQ.js → ReviewOverlay-DjazNKfI-D9LHGfoS.js} +1 -1
- package/dist/assets/{RoleWithToolTip-CkpqxMzB-CgYpd1vG.js → RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-C-4zVu03-B-3H4CNH.js → ScheduleDetailsFixedAssetsPage-DBfwlnR1-bCnucyiC.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-D4mYRUnv-CIK0kUkx.js → ScheduleDetailsPage-CLEKOymC-B3NLZeIV.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-q-031a_C-Cl6g3k1V.js → ScheduleSequenceTable-Dnapx3YK-Be50KNDE.js} +1 -1
- package/dist/assets/{ScreenRoutes-D9-sd0S3.js → ScreenRoutes-S2WD5yPN.js} +1 -1
- package/dist/assets/{SetUpAccountSection-Mm8JelXc-DJkSxyLc.js → SetUpAccountSection-D7Nf4cYj-UGNHCsDO.js} +1 -1
- package/dist/assets/{SignIn-faWXqi7o-BVPJ-uzq.js → SignIn-Cl1If8Mq-CvFGHXZ8.js} +15 -15
- package/dist/assets/{SignInScreen-DTTr8TvQ.js → SignInScreen-CFwIVPDY.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BLWEPKWO-zjDi64vH.js → SpendManagementListViewPage-B8AdQD7w-DscL1E8I.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-vZNK6DuA-DHQi0ok2.js → SpendManagementPerTabPage-BJxGbUNp-CTR6zi4P.js} +1 -1
- package/dist/assets/{SpendManagementSection-CeDmloNd-CJQVf2yR.js → SpendManagementSection-CJ-vMwcf-DAIvaE36.js} +1 -1
- package/dist/assets/{StatementItem-CJShifEl-gXZiawe9.js → StatementItem-CCXoBC0x-B0aqg_M_.js} +2 -2
- package/dist/assets/StatementsPage-BaDmSL9L-t79Ai808.js +58 -0
- package/dist/assets/{StatusSwitcher-CPuONMOx-IUewbXcR.js → StatusSwitcher-BZ2svcz0-BTZEKNgF.js} +1 -1
- package/dist/assets/{SubTabSwitcher-ibTbIxr5-87SzITqK.js → SubTabSwitcher-C3216C6m-CK-Qtqj3.js} +1 -1
- package/dist/assets/{SummaryCard-vWpHXMPE-j4-YbXA_.js → SummaryCard-CSkw4qa9-i9KCkyV3.js} +1 -1
- package/dist/assets/{TaskManagementPage-COs5ebo9-LStJ5YyB.js → TaskManagementPage-BO9Fcar1-BB1pU97E.js} +8 -8
- package/dist/assets/{TimeRangeSwitcher-fD5vvYGO-Cg6AHBEd.js → TimeRangeSwitcher-C9jo91ZR-BexBx71o.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BYXKRKtc-BTNUudrw.js → TimeframeSwitcher-453JT8qD-dl4gBr1v.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-f92qNjEk-CshyNxhp.js → TimeframeSwitcherWithToggle-CkiICrjF-BzFnMJO-.js} +2 -2
- package/dist/assets/{TopExCard-Bs4nI9Q9-C9Jpq9jc.js → TopExCard-Qae08TpE-B5FSxtbi.js} +10 -10
- package/dist/assets/{TopExDetailPage-B0kS11k0-IiO7dIt-.js → TopExDetailPage-BpwMO-8K-qWr97Eft.js} +4 -4
- package/dist/assets/{TransactionDetailPage-BXl6y7sy-B_wNV2dF.js → TransactionDetailPage-CF5tZCkv-ND1Ih8Rd.js} +1 -1
- package/dist/assets/{TransactionList-BYXPQXN1-C2WkgSOj.js → TransactionList-BuFcrTEd-Pd5NkKsR.js} +1 -1
- package/dist/assets/{TransactionListBig-lrbHUS38-D0fzERPt.js → TransactionListBig-B6-3iOkU-brDnQ-dC.js} +1 -1
- package/dist/assets/{TransactionListPage-OOLJzsmw-Dmoozb9S.js → TransactionListPage-cSSv81G2-C84Nagsy.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CmjrngD2-DvxXX996.js → TransactionVendorDetailPage-BJzVtpnF-BD1O-dJA.js} +1 -1
- package/dist/assets/{TransferDrawerPage-CnFrzA_M-C6390hZV.js → TransferDrawerPage-DCxNnGwu-R8tXJhB-.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CGxccIcU-CgXb0qH5.js → TreasuryOverviewPage-DfIkj3v1-DGzCSt8t.js} +9 -9
- package/dist/assets/{TreasuryPromoPage-BmMVa8cX-BOYWbSX7.js → TreasuryPromoPage-BBdOyiO--DBYyvSzX.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DL94A9mN-DZ6yoZ74.js → TreasuryStatementsPage-NgiurO36-wIt2qVvF.js} +2 -2
- package/dist/assets/{TreasuryTaxLetterPage-BJ9-ZsCQ-DnDmd1Op.js → TreasuryTaxLetterPage-DcI8sKk8-CiTg5Fth.js} +2 -2
- package/dist/assets/{TrendChart-ClyJQTBF-TLthRW_O.js → TrendChart-DVp0Led--C8WSZxuE.js} +1 -1
- package/dist/assets/{TrendWithTransactions-D4m4sVkf-DJ-5Yugx.js → TrendWithTransactions-C5Zfe4RN-BXIMOZup.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-BLwx8CVj-dhOY5qHO.js → UncategorizedAccountsMappingPage-DKQj6Y2Z-CJmiPan8.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-CgbOyIBt-nz_B7FQx.js → UnitIntegrationPage-DzP4Z8GG-Dy6PuJhN.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CmVwCxA2-BL_6rNZZ.js → UploadAdditionalDocumentOverlay-BGFTh8Ed-BM9KBkkU.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DQtP0bm--CecMTi1i.js → Vendor2FAPopup-CyeLsWVA-Bvm0fc8m.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-Ch6V5aiE-C8mQ2zAb.js +1 -0
- package/dist/assets/{VendorDetailPage-CFkDOdUe-B1GqtBiD.js → VendorDetailPage-CrEIBnBt-BV5_7SzR.js} +1 -1
- package/dist/assets/VendorDomesticWireDetailsPage-GMtYv721-BHj1SZ-2.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-Bkn9p2Sf-xXTYWhq9.js → VendorFiling1099EditablePage-Bw_Igktf-DBjJgjbY.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-CKvnB4Q7-wJi46XXQ.js → VendorFirstReviewPage-CCCVS8n7-E428xFy1.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage--B2XU_hP-CbzsnIo2.js → VendorInternationalWireDetailsPage-DsBGMjtN-CQvN_vWC.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BeXxE9Qn-ym6eVDNw.js +1 -0
- package/dist/assets/{VendorsAccountsSection-DJP1yZx7-OlnsbsSP.js → VendorsAccountsSection-Bd1rg5Tw-DRUi6jIP.js} +1 -1
- package/dist/assets/{VerifyDevice-dFsnt44d-C1LsKxM_.js → VerifyDevice-B52Vuja4-0E_pm_dD.js} +7 -7
- package/dist/assets/{VideoPlayer-Dy6rImBJ-QOYygi-i.js → VideoPlayer-Cfh9VY-B-CLXI1KSM.js} +2 -2
- package/dist/assets/{VideoPopup-DM5Buf4j-CFLugl6n.js → VideoPopup-BLRMOVnP-CAsXJ3um.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-C8i8v3rq-BqkJBNMa.js → WarningsDrawerPage-CnUUMlFZ-C2O6kI2F.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CI7znfzM-Vqgai5nW.js → ZeniAccountDetailPage-DrBVs3G5-BGnEJzEM.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CBnYQpc8-Dv81IpSI.js → ZeniAccountListViewPage-C3WwakQr-CVBB5Etq.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-sMjtAlej-CO7nbf-u.js → ZeniAccountNavBarPieces-CP2pkywN-CGbioXtu.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-B_NJMHHV-DWsuBCOP.js → ZeniAccountPromoPage-DYAVwX1I-CACWm6_J.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-C9cJ0F8e-BF5g947U.js → ZeniAccountSetupPage-D4y3RRC0-VwyN8R98.js} +1 -1
- package/dist/assets/{ZeniCopyright-DzWFQiAt-07AcK5yb.js → ZeniCopyright-DxhdQ6XJ-DxZgbZ2B.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-B424bcSV-CHepSJQx.js → ZeniTransferAmountSlider-COT3DDGF-CcOgiNdg.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-pWZi41H8.js → add-to-wallet-DgdBD8_G-DsgRUVgA.js} +1 -1
- package/dist/assets/{analytics-BvXI56dE.js → analytics-CSlaNB19.js} +1 -1
- package/dist/assets/{analyticsHelper-DP-LgJhR.js → analyticsHelper-BSMq6Y2P.js} +1 -1
- package/dist/assets/{analyticsHelper-CzevEN9D-BUYGstD0.js → analyticsHelper-C35dM-yG-D6b8wU4U.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-B9_UwdI_.js → arrow-south-east-round-PEovUgvH-yHNADvS4.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CRwly3T1.js → auto-transfer-rule-mbafm5D3-Ccdjr6D8.js} +1 -1
- package/dist/assets/{chartTypes-n3TS0IBf-DRx7aLxA.js → chartTypes-BDwrrz9S-CO6_cPbC.js} +1 -1
- package/dist/assets/{commonDimensions-6BcP8EhU-CPpjZ-C4.js → commonDimensions-Pu55v5lV-fIykEmeD.js} +1 -1
- package/dist/assets/{commonTypes-Q1WP-Ym3-Cmq2uCPt.js → commonTypes-BElGElM--Bg_ac7b3.js} +1 -1
- package/dist/assets/{constants-B97TsRRb.js → constants-D-PeI_mM.js} +1 -1
- package/dist/assets/{core-CIefpDlV.js → core-CqdPXR9B.js} +1 -1
- package/dist/assets/{dash.all.min-RUznf6Xj.js → dash.all.min-DbcV3v7u.js} +1 -1
- package/dist/assets/{detailCommon-D3YbmSu3-CiTGsaNF.js → detailCommon-CM8F8nQy-BjrXwaKv.js} +3 -3
- package/dist/assets/{downloadPdf-Bf11NXjY-DUwuSlsF.js → downloadPdf-BF8--IAB-lQpphdcn.js} +1 -1
- package/dist/assets/{empty-BQQX0XD1.js → empty-DPq645sP.js} +1 -1
- package/dist/assets/{empty-DJIJO66a.js → empty-DTh_Ij2M.js} +1 -1
- package/dist/assets/{epic-C6ygjjdM.js → epic-96Yt9tV8.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-BWCTqneo.js → gift-box-Cmt9OgIZ-Bn-y1hvl.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-C8GXOUxr.js → graphic-no-data-l-DU4J8fDt-a_iKaRv1.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BQAFQuCs.js → graphic-no-data-net-burn-l-CzmycA0m-C9dTXMJH.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BCnezDN8.js → handshake-BPg58FML-DqlUuE7u.js} +1 -1
- package/dist/assets/{index-smQbM7l5.js → index-BTSZX0gU.js} +1 -1
- package/dist/assets/{index-BzA0Xv0P.js → index-Bs6vtzGR.js} +1 -1
- package/dist/assets/{index-WEj6FS32.js → index-D4DdpT1f.js} +7 -7
- package/dist/assets/{index-rikpsdq-.js → index-DQJyhSzl.js} +1 -1
- package/dist/assets/{index-CQs92n2L.js → index-DeNk0spl.js} +1 -1
- package/dist/assets/{index-DAj0zPwk.js → index-DfNzwEf5.js} +1 -1
- package/dist/assets/{index-DtRGsySN.js → index-DzUx431K.js} +1 -1
- package/dist/assets/{lexical-Dp1JhPKz.js → lexical-D6mU3oV8.js} +1 -1
- package/dist/assets/{liveblocks-CrODURpx.js → liveblocks-DXNKZvWw.js} +1 -1
- package/dist/assets/{lottie-hIwSKdQS.js → lottie-BGCmjFH9.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-BArKDqgr-Ce9uxfyP.js → mapLoadingInProgressToTreeNode-4ruPPd2Y-CXJTu75z.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BCmFQbuz-BJl1ilV_.js → mapSectionWithAcOnlyToTreeNode-B77EOrVX-heqCPLrc.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-DbVBrfUp-DCvPMvjH.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-ClmNRrTo-Covijrhn.js → mapTimeframeBalancesToTreeNode-DA60r528-sldeiWG8.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-IkKV62Jb-JqYi47LI.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DT4LUXl9-COTrRRrU.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BPtN2Cj0-BxEY8256.js} +1 -1
- package/dist/assets/{mui-BTtN6lbG.js → mui-CooLgaJO.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-vL4oE1Hd.js → page-detail-CWX5S47F-D0SYshoo.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-CzTG_UVX.js → radio-default-CiSgisfh-aKay5Aup.js} +1 -1
- package/dist/assets/{react-DTawl0rf.js → react-B3adtom7.js} +1 -1
- package/dist/assets/{react-RUf-G1wy.js → react-BBgs2Til.js} +1 -1
- package/dist/assets/{react-dGc0O2tO.js → react-BOYN8kx1.js} +1 -1
- package/dist/assets/{react-D8h_J9ua.js → react-CEyM_Slo.js} +1 -1
- package/dist/assets/{react-yNxKnTJa.js → react-CrELMTJL.js} +1 -1
- package/dist/assets/{react-BZDhaeWn.js → react-DHuOianZ.js} +1 -1
- package/dist/assets/{react-FdUpWGdd.js → react-MtwZeeNV.js} +2 -2
- package/dist/assets/{react-CZT8R2xg.js → react-_XrYtXDi.js} +1 -1
- package/dist/assets/{recharts-BfU_srYC.js → recharts-DHPcYqKb.js} +1 -1
- package/dist/assets/{sentry-B0WgNUxa.js → sentry-Dlcq8VjX.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-Z1Xg2OMK.js → shield-DOlUxcFf-D8h0VGFI.js} +1 -1
- package/dist/assets/toCOABalancesWithID-C8uaUoxX-n7EZ1iwJ.js +1 -0
- package/dist/assets/{toChartData-Bl-lEYbQ-Cv_10vbn.js → toChartData-CTG-a8va-B2RC0Eyi.js} +1 -1
- package/dist/assets/{uploadAttachment-B_0cN84g-C7pQHANb.js → uploadAttachment-n14_2p7o-3Yaegacg.js} +1 -1
- package/dist/assets/{uploadReceipts-DJRtId-4-B1jpX457.js → uploadReceipts-DJRtId-4-D8fSq3Gx.js} +1 -1
- package/dist/assets/{url-D-l_68oE.js → url-CfIahVCp.js} +1 -1
- package/dist/assets/{url-CHEcUoer.js → url-d3WjAGv6.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BysG3lqG.js → useLongPress-GCK2COYQ-B0lPuhDh.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-ZROsAmzr.js → usp-line-BBd1wKwW-CZ22OQAj.js} +1 -1
- package/dist/assets/{utils-DZQMbqmw.js → utils-CXbV7y1T.js} +1 -1
- package/dist/assets/{zeni-epic-state-DnAAAEmj.js → zeni-epic-state-pmiItBju.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountInfoPage-DUYpaV3v-CL9yEZEk.js +0 -18
- package/dist/assets/CustomerOnboardingContainerPage-DZfFYnVw-BG6Jz35S.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-2V3vSjB8-BYRuju-o.js +0 -202
- package/dist/assets/MagicLinkACHDetailsPage-BeRQFYX3-CrMUHXPB.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-C1DDZC2_-CWTR8m-D.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DyDp04Vn-UtoyLAup.js +0 -1
- package/dist/assets/MailingDetailsSection-IQJY4Yl0-C_b76P8R.js +0 -21
- package/dist/assets/StatementsPage-BRxP-Jwn-CibgKP9E.js +0 -58
- package/dist/assets/VendorACHDetailsPage-CuCteqbL-CrfAmoz7.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-Cr1fyB0u-N7obKAAe.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJFB7SEO-BecYrM5_.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-DdwRxjlP-Bw1NwZTY.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CR-gDA51-Dr9tcN9g.js +0 -1
- package/dist/assets/toCOABalancesWithID-BzzH0Io4-q6KiTxht.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as gt,g as Ze,V as t,jt as Y,bB as kt,aa as _,co as xt,al as K,aq as wt,F as se,o as s,ju as qe,ch as Ee,cl as ft,g4 as Ct,b9 as Tt,bN as Xe,aT as $t,J as ie,a9 as yt,y as Je,cE as
|
|
1
|
+
import{aw as gt,g as Ze,V as t,jt as Y,bB as kt,aa as _,co as xt,al as K,aq as wt,F as se,o as s,ju as qe,ch as Ee,cl as ft,g4 as Ct,b9 as Tt,bN as Xe,aT as $t,J as ie,a9 as yt,y as Je,cE as bt,ac as jt,b3 as vt,cs as St,iQ as Gt,iR as Lt,jv as De,aR as Et,r as Me,bS as Ie,eK as Qe,jw as It,c_ as et,jx as ce,jy as ke,jz as xe,jA as tt,jB as Nt,jC as st,jD as ot,jE as nt,jF as at,jG as rt,jH as V,u as ge,jI as ae,ai as re,jJ as Mt,jK as Dt,x as zt,an as Bt,jL as At,d9 as Rt,jM as Wt,cI as it,em as Ot,b as Pt,jN as Ft,jO as Ht,g5 as _t,gx as Ut,jP as Vt,jQ as X,jR as ze,cu as Kt,jS as Yt,jT as Zt,jU as qt,jV as Be,p as Ae,gu as Xt,am as Jt}from"./index-D4DdpT1f.js";import{a as n}from"./sentry-Dlcq8VjX.js";import{n as o,c as we}from"./mui-CooLgaJO.js";import{G6 as Qt,G7 as Re,cd as lt,ce as dt,cf as es}from"./zeni-epic-state-pmiItBju.js";import{X as ts,t as ss}from"./SpendManagementSection-CJ-vMwcf-DAIvaE36.js";import{A as os,t as ns,a as as,E as rs}from"./NotificationsListConfig-CbWdzORJ-BsmAt2Aw.js";import{a as is}from"./SpendManagementListViewPage-B8AdQD7w-DscL1E8I.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./StatusSwitcher-BZ2svcz0-BTZEKNgF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="1e076593-6a4b-4cae-9b11-c9fb6c859f8b",e._sentryDebugIdIdentifier="sentry-dbid-1e076593-6a4b-4cae-9b11-c9fb6c859f8b")}catch{}})();const ls=100,ds=100,cs=3,ps=.7,us=({scrollContainerRef:e,isEnabled:d=!0,edgeThreshold:r=ls,scrollSpeed:h=ds,minScrollAmount:m=cs,scrollCurveExponent:u=ps})=>{n.useEffect(()=>{if(!d||typeof window>"u"||typeof document>"u")return;let a=!1,p=0,i=null;const c=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},v=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},N=x=>v(x),M=x=>{const S=Math.max(x,0)/c,y=Math.pow(S,u)*h;return Math.max(m,y)},k=(x,S,y)=>{const L=y==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,y=p;if(y<c&&y>0){const L=c-y,g=M(L);k(x,g,"up")}else if(y>S-c){const L=y-(S-c),g=M(L);k(x,g,"down")}i=requestAnimationFrame(w)},D=x=>{N(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(p=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",D),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",D),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,d,m,e,u,h])},ve=se.getLocalizedStrings(),ct=({count:e})=>t.jsx(hs,{isCircular:e<10,children:t.jsx(ms,{children:e>ve.common.numbers.maximumCount?`${ve.common.numbers.maximumCount}${ve.common.strings.plus}`:e})}),hs=o.div`
|
|
2
2
|
${e=>e.isCircular?we`
|
|
3
3
|
height: 18px;
|
|
4
4
|
width: 18px;
|
|
@@ -44,7 +44,7 @@ import{aw as gt,g as Ze,V as t,jt as Y,bB as kt,aa as _,co as xt,al as K,aq as w
|
|
|
44
44
|
`,Cs=o(Xe)`
|
|
45
45
|
width: ${s.sp3};
|
|
46
46
|
height: ${s.sp3};
|
|
47
|
-
`,Ts=se.getLocalizedStrings().taskManagement.taskList.footer;function $s({taskGroupsList:e,anchorEl:d,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:u}){const a=()=>{u(),h()};return t.jsx(qe,{open:!!d,anchorEl:d,onClose:u,transformOrigin:{vertical:"bottom",horizontal:"right"},anchorOrigin:{vertical:"top",horizontal:"right"},children:t.jsxs(ys,{children:[t.jsx(
|
|
47
|
+
`,Ts=se.getLocalizedStrings().taskManagement.taskList.footer;function $s({taskGroupsList:e,anchorEl:d,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:u}){const a=()=>{u(),h()};return t.jsx(qe,{open:!!d,anchorEl:d,onClose:u,transformOrigin:{vertical:"bottom",horizontal:"right"},anchorOrigin:{vertical:"top",horizontal:"right"},children:t.jsxs(ys,{children:[t.jsx(bs,{children:e.map(p=>{const i=()=>{u(),m(p.id)};return t.jsx(Oe,{onClick:i,children:t.jsx(re,{children:p.groupName})},p.id)})}),t.jsx(_,{controller:r==="groupName",children:t.jsxs(Oe,{onClick:a,children:[t.jsx(js,{}),t.jsx(re,{children:Ts.createGroup})]})})]})})}const ys=o.div`
|
|
48
48
|
background-color: ${e=>e.theme.colors.grey5};
|
|
49
49
|
`,Oe=o.div`
|
|
50
50
|
padding: ${s.sp2} ${s.sp3};
|
|
@@ -57,9 +57,9 @@ import{aw as gt,g as Ze,V as t,jt as Y,bB as kt,aa as _,co as xt,al as K,aq as w
|
|
|
57
57
|
color: ${e=>e.theme.colors.primary};
|
|
58
58
|
background-color: ${e=>e.theme.colors.background};
|
|
59
59
|
}
|
|
60
|
-
`,
|
|
60
|
+
`,bs=o.div`
|
|
61
61
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
62
|
-
`,
|
|
62
|
+
`,js=o(et)`
|
|
63
63
|
width: ${s.sp3};
|
|
64
64
|
height: ${s.sp3};
|
|
65
65
|
`;function vs({placeholder:e,searchText:d,inputContainerStyles:r,onSearchTextChanged:h}){const[m,u]=n.useState(!1),a=n.useRef(null),p=ie(),i=()=>{d||u(!1)};return t.jsxs(Ss,{children:[m?null:t.jsx(Ls,{onMouseEnter:()=>u(!0),onClick:()=>{u(!0),a.current?.focus()},children:t.jsx(Pe,{})}),m?t.jsxs(Gs,{style:r,isOpen:m,children:[t.jsx(Pe,{}),t.jsx(Es,{windowSize:p,autoFocus:p!=="small",placeholder:e,value:d,onBlur:i,onChange:c=>{const C=c.target;h(C.value)},ref:a}),d?t.jsx(Is,{}):null]}):null]})}const Ss=o.div`
|
|
@@ -243,7 +243,7 @@ import{aw as gt,g as Ze,V as t,jt as Y,bB as kt,aa as _,co as xt,al as K,aq as w
|
|
|
243
243
|
text-overflow: ellipsis;
|
|
244
244
|
white-space: nowrap;
|
|
245
245
|
max-width: 336px;
|
|
246
|
-
`,{common:Ge,dateFormat:co,taskManagement:Ne}=se.getLocalizedStrings(),pt={taskNameMaxWidth:new Je(125,170,170,250,300)},po=({taskDetail:e,tagList:d,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:u})=>{const a=ie(),p=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,c=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Ge.strings.empty,{getValues:C,resetField:v,getFieldState:N}=it(),M=(k,f)=>{const w=Be(k,f,xe);N(w).invalid?v(w):m(e,{timeSpent:C(w)})};return t.jsxs(mo,{children:[t.jsxs(vo,{windowSize:a,onClick:h,responsiveWidth:X[0].width,children:[t.jsxs(So,{windowSize:a,children:[t.jsx(Lo,{isIconPresent:e.type.code==="recurring",windowSize:a,className:"taskNameText",children:e.name}),e.type.code==="recurring"?t.jsx(Ie,{style:{padding:`12px ${s.sp3}`},title:e.type.name,placement:"bottom",children:t.jsx(Io,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ie,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(Go,{windowSize:a,responsiveWidth:X[0].width,children:t.jsx(Eo,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[1].width,children:ze(e.status.code)}),t.jsx(zo,{windowSize:a,responsiveWidth:X[2].width,children:ze(e.priority.code)}),t.jsx(Bo,{windowSize:a,responsiveWidth:X[3].width,children:e.dueDate!=null?e.dueDate.format(co.visual.MMMDCommaYYYYformat):t.jsx(go,{children:Ge.strings.hyphen})}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[4].width,children:p>0?t.jsxs(ko,{children:[t.jsx(Kt,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(No,{children:t.jsx(Mo,{children:c})}),p>1?t.jsx(xo,{children:`${Ge.strings.plus}${p-1}`}):null]}):null}),t.jsx(Ao,{windowSize:a,responsiveWidth:X[5].width,children:e.tagIds.length>0?t.jsx(Do,{children:Yt(e.tagIds,d)}):null}),t.jsx(Wo,{windowSize:a,responsiveWidth:X[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(Oo,{className:"timeSpentField",children:t.jsx(Zt,{name:Be(r,e.id,xe),placeholder:Ne.common.timeSpentPlaceholder,timeSpentFormat:Ne.common.timeSpentFormat,registerOptions:{validate:k=>es(k)>qt?(u({messageSection:"task_time_spent_validation",messageText:"failed",type:"error",showStatusIcon:!0}),"Error"):!0},style:{padding:`${s.sp0} ${s.sp1}`,background:"unset"},onInputBlur:()=>{M(r,e.id)},inputStyle:{textAlign:"right",padding:`${s.sp0} ${s.sp2}`}})})})]})},uo=({taskGroup:e,tagList:d,sectionId:r,showGroupName:h,showRenameTextField:m,isSelectionAllowed:u,isCollapsed:a,existingTaskGroupNamesByGroupId:p,onDeleteTaskGroup:i,onExpandAll:c,onCollapseAll:C,onAddNewTaskToTaskGroup:v,onCollapseToggle:N,onTaskManagementRowClick:M,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[D,z]=n.useState(null),B=ie(),{setFocus:$}=it(),x=n.useCallback(()=>{N(e.id)},[N,e.id]),S=n.useCallback(W=>{z(W.currentTarget)},[]),y=n.useCallback(()=>{z(null)},[]),L=n.useCallback(()=>{v(e.id)},[v,e.id]),g=n.useCallback(()=>{z(null),i(e.id)},[i,e.id]),
|
|
246
|
+
`,{common:Ge,dateFormat:co,taskManagement:Ne}=se.getLocalizedStrings(),pt={taskNameMaxWidth:new Je(125,170,170,250,300)},po=({taskDetail:e,tagList:d,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:u})=>{const a=ie(),p=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,c=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Ge.strings.empty,{getValues:C,resetField:v,getFieldState:N}=it(),M=(k,f)=>{const w=Be(k,f,xe);N(w).invalid?v(w):m(e,{timeSpent:C(w)})};return t.jsxs(mo,{children:[t.jsxs(vo,{windowSize:a,onClick:h,responsiveWidth:X[0].width,children:[t.jsxs(So,{windowSize:a,children:[t.jsx(Lo,{isIconPresent:e.type.code==="recurring",windowSize:a,className:"taskNameText",children:e.name}),e.type.code==="recurring"?t.jsx(Ie,{style:{padding:`12px ${s.sp3}`},title:e.type.name,placement:"bottom",children:t.jsx(Io,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ie,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(Go,{windowSize:a,responsiveWidth:X[0].width,children:t.jsx(Eo,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[1].width,children:ze(e.status.code)}),t.jsx(zo,{windowSize:a,responsiveWidth:X[2].width,children:ze(e.priority.code)}),t.jsx(Bo,{windowSize:a,responsiveWidth:X[3].width,children:e.dueDate!=null?e.dueDate.format(co.visual.MMMDCommaYYYYformat):t.jsx(go,{children:Ge.strings.hyphen})}),t.jsx(Ue,{windowSize:a,responsiveWidth:X[4].width,children:p>0?t.jsxs(ko,{children:[t.jsx(Kt,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(No,{children:t.jsx(Mo,{children:c})}),p>1?t.jsx(xo,{children:`${Ge.strings.plus}${p-1}`}):null]}):null}),t.jsx(Ao,{windowSize:a,responsiveWidth:X[5].width,children:e.tagIds.length>0?t.jsx(Do,{children:Yt(e.tagIds,d)}):null}),t.jsx(Wo,{windowSize:a,responsiveWidth:X[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(Oo,{className:"timeSpentField",children:t.jsx(Zt,{name:Be(r,e.id,xe),placeholder:Ne.common.timeSpentPlaceholder,timeSpentFormat:Ne.common.timeSpentFormat,registerOptions:{validate:k=>es(k)>qt?(u({messageSection:"task_time_spent_validation",messageText:"failed",type:"error",showStatusIcon:!0}),"Error"):!0},style:{padding:`${s.sp0} ${s.sp1}`,background:"unset"},onInputBlur:()=>{M(r,e.id)},inputStyle:{textAlign:"right",padding:`${s.sp0} ${s.sp2}`}})})})]})},uo=({taskGroup:e,tagList:d,sectionId:r,showGroupName:h,showRenameTextField:m,isSelectionAllowed:u,isCollapsed:a,existingTaskGroupNamesByGroupId:p,onDeleteTaskGroup:i,onExpandAll:c,onCollapseAll:C,onAddNewTaskToTaskGroup:v,onCollapseToggle:N,onTaskManagementRowClick:M,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[D,z]=n.useState(null),B=ie(),{setFocus:$}=it(),x=n.useCallback(()=>{N(e.id)},[N,e.id]),S=n.useCallback(W=>{z(W.currentTarget)},[]),y=n.useCallback(()=>{z(null)},[]),L=n.useCallback(()=>{v(e.id)},[v,e.id]),g=n.useCallback(()=>{z(null),i(e.id)},[i,e.id]),b=n.useCallback(()=>{$(`${r}.groupName`),y()},[y,r,$]);return t.jsxs(ho,{windowSize:B,children:[t.jsx(_,{controller:h,children:t.jsxs(wo,{children:[t.jsxs(fo,{children:[t.jsx(Co,{isOpen:a===!1,onClick:x,children:t.jsx(To,{})}),t.jsx(Ot,{style:{textAlign:"start",width:"100%",background:"unset",...Pt.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Ne.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:W=>Ft(W,e.id,p)===!1},isDisabled:m&&e.id!=="new_group"||e.isDefault?"disabled":void 0})]}),t.jsx($o,{onClick:S,children:t.jsx(yo,{})}),t.jsx(Ht,{onClose:y,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:c,onRename:b,isDefault:e.isDefault,anchorEl:D})]})}),t.jsx(_,{controller:a===!1,children:t.jsx(_t,{mode:"checked_or_hover",isDisabled:u===!1?"disabled":void 0,checkBoxes:[...e.tasks.map(W=>{const U=()=>{M(W.id)};return{label:t.jsx(po,{taskDetail:W,onRowClick:U,tagList:d,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:B==="small"?null:t.jsx(bo,{children:t.jsx(jo,{})}),value:W.id,defaultChecked:!1,groupLabel:!1}})],name:`${r}.selectedIds`,style:{width:"100%",rowGap:s.sp3},checkBoxStyle:{padding:s.sp3},labelCheckBoxStyle:{padding:s.sp3},onDragStart:k,draggable:!0})})]})},ho=o.div`
|
|
247
247
|
box-sizing: border-box;
|
|
248
248
|
display: flex;
|
|
249
249
|
flex-direction: column;
|
|
@@ -314,10 +314,10 @@ import{aw as gt,g as Ze,V as t,jt as Y,bB as kt,aa as _,co as xt,al as K,aq as w
|
|
|
314
314
|
`,yo=o(Ut)`
|
|
315
315
|
width: ${s.sp3};
|
|
316
316
|
height: ${s.sp3};
|
|
317
|
-
`,
|
|
317
|
+
`,bo=o.div`
|
|
318
318
|
padding-left: ${s.sp3};
|
|
319
319
|
cursor: grab;
|
|
320
|
-
`,
|
|
320
|
+
`,jo=o(Vt)`
|
|
321
321
|
width: ${s.sp3};
|
|
322
322
|
height: ${s.sp3};
|
|
323
323
|
`,vo=o.div`
|
|
@@ -430,7 +430,7 @@ import{aw as gt,g as Ze,V as t,jt as Y,bB as kt,aa as _,co as xt,al as K,aq as w
|
|
|
430
430
|
column-gap: ${s.sp2};
|
|
431
431
|
`,Oo=o.div`
|
|
432
432
|
max-width: ${s.sp11};
|
|
433
|
-
`,Po=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("rect",{x:10,y:2,width:12,height:12,rx:2,stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75C7 10.3358 6.66421 10 6.25 10H3.70967C2.76545 10 2 10.7654 2 11.7097V20.2936C2 21.2378 2.76544 22.0033 3.70966 22.0033H12.2936C13.2378 22.0033 14.0033 21.2378 14.0033 20.2936V17.75C14.0033 17.3358 13.6675 17 13.2533 17C12.8391 17 12.5033 17.3358 12.5033 17.75V20.2936C12.5033 20.4094 12.4094 20.5033 12.2936 20.5033H3.70966C3.59387 20.5033 3.5 20.4094 3.5 20.2936V11.7097C3.5 11.5939 3.59387 11.5 3.70967 11.5H6.25C6.66421 11.5 7 11.1642 7 10.75Z",fill:"currentColor"})),H=se.getLocalizedStrings(),Ve=e=>`${e}_form`,Fo={rowGap:new Je(ge[0],ge[5],ge[5])},{common:{footer:Ke},taskManagement:Le}=se.getLocalizedStrings(),yn=({taskListView:e,tagListView:d,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:u,onDeleteTaskGroup:a,updateLocalData:p,onTaskManagementRowClick:i,onReloadTasks:c,onColumnSortConfigChanged:C,onSearchTextChanged:v,onBackClick:N,onNewTaskClick:M,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:D,onAddNewTaskToTaskGroup:z,onGroupByFilterChange:B,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:y,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:j})=>{const[W,U]=n.useState(!1),[Q,P]=n.useState(null),[F,oe]=n.useState(null),[Z,pe]=n.useState(null),[fe,le]=n.useState(null),[ue,ne]=n.useState(!1),Ce=gt(),{fetchState:ee,uiState:q,filters:Te,userList:de,taskGroupsWithTasksList:$e}=e,{tagList:ye}=d,je=Ze(),be=R=>{ne(R)},he=n.useCallback(R=>{le(R.currentTarget)},[]),me=n.useCallback(R=>{B(R)},[B]),l=n.useCallback(()=>{B("groupName")},[B]),G=n.useCallback(R=>{j(R)},[j]),O=de.users.map(R=>R.user).filter(R=>R!=null),E={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:H.common.create,isSearchOpen:ue,searchPlaceHolder:H.taskManagement.taskList.searchPlaceHolder,searchText:q.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:Te,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:be,onSearchTextChanged:v,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:de.fetchState==="Completed"||de.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(gs,{value:q.groupByKey,resetDisabled:q.groupByKey==="groupName",onChange:me,onReset:l}),height:90},getFilterOptions:()=>is("task_management",O,Ce.loggedInUserRole??[],d.tagList)},I=n.useCallback(R=>{le(null),P(Y),p({...e.localData,newTaskGroupName:R})},[e.localData,p]),A=n.useCallback(()=>{le(null)},[]),b=n.useCallback(()=>{F!=null&&a(F)},[F,a]),T=n.useCallback(()=>{P(Y)},[]),te=n.useCallback(R=>{pe(mt=>mt===R?null:R)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&U(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&pe(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ut=()=>ee==="Error"?t.jsxs(Zo,{children:[t.jsx(qo,{onClick:c,children:t.jsx(Xo,{})}),t.jsx(Jo,{children:H.common.reloadPage.label})]}):ee==="Completed"&&$e.length===0?t.jsx(ft,{message:H.taskManagement.taskList.noDataText}):ee==="Not-Started"||ee==="In-Progress"?t.jsx(Ct,{fetchState:ee}):t.jsx(Ho,{taskListView:e,tagList:ye,renameActiveField:Q,updateTask:m,onDragNDrop:u,onAddNewTaskToTaskGroup:z,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:D,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:p,setActiveTaskGroupId:oe,setRenameActiveField:P,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:y,onCreateTagClick:h}),ht=t.jsx(ss,{spendManagementSectionProps:E});return t.jsxs(Yo,{children:[t.jsx(kt,{title:H.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:je.colors.grey4,style:{zIndex:3},onBackClick:N,rightSideComponent:ht,isSearchOpen:ue,source:"TaskManagementPage"}),t.jsx(As,{anchorEl:fe,groupByKey:q.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:A,onNewTaskClick:M,onNewGroupClick:I,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:te,expandedTemplate:Z}),t.jsx(Ko,{children:ut()}),t.jsx(_,{controller:W===!0,children:t.jsx(xt,{action:{onOkClick:b,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(on,{children:t.jsx(wt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(nn,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Ho=({taskListView:e,tagList:d,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:u,onDragNDrop:a,updateLocalData:p,setShowDeleteModal:i,handleCreateGroup:c,resetLocalData:C,assignGroupToTasks:v,setGroupCreationInProgress:N,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B})=>{const $=n.useRef(null),[x,S]=n.useState(null),y=n.useRef({}),L=ie(),{localData:g,taskGroupsWithTasksList:j,uiState:W}=e,[U,Q]=n.useState([]),P=n.useRef(null);us({scrollContainerRef:P,isEnabled:L!=="small"});const F=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),oe=yt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,F,d),[g,e.taskGroupsWithTasksList,F,d]),values:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,F,d),[g,e.taskGroupsWithTasksList,F,d])}),Z=n.useMemo(()=>{if(r!==Y)return j;const l=[],G=j.map(O=>{const E=O.tasks.filter(I=>{const A=g.selectedTaskIds.includes(I.id)===!0;return A&&l.push(I),A===!1});return{...O,tasks:E}});return G.unshift({groupName:"",isDefault:!1,id:Y,tasks:l}),G},[r,j,g.selectedTaskIds]),pe=n.useCallback(l=>U.includes(Z[l].id)||Z[l].tasks.length===0?100:y.current?.[l]!=null?y.current[l]+Fo.rowGap.value(L):(os*1+ns)*3+as+rs,[U,Z,L]),fe=n.useCallback(l=>{S(l.currentTarget)},[]),le=n.useCallback((l,G)=>{y.current={...y.current,[l]:G},$.current?.resetAfterIndex(0,!0)},[L,$,j]),ue=n.useCallback(l=>{Q(G=>G.includes(l)?G.filter(O=>l!==O):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ne=n.useCallback(()=>{S(null)},[]),Ce=n.useCallback(()=>{Q(j.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[j]),ee=n.useCallback(()=>{Q([]),$.current?.resetAfterIndex(0,!0)},[]),q=n.useCallback(()=>{N(),$.current?.scrollTo(0),ne()},[ne,N]),Te=n.useCallback(l=>{w(l),i(!0)},[w,i]),de=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==Y?q():c(!0):r===Y?c(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,q,c,m]),$e=n.useCallback(()=>{u(null),C()},[C,u]),ye=n.useCallback(l=>{C(),u(l)},[C,u]),je=n.useCallback(()=>{g.defaultTaskGroupId!=null&&v(g.defaultTaskGroupId)},[v,g.defaultTaskGroupId]),be=async(l,G)=>{if(l.includes(nt)){const E=l.split(".")[2],I=j.flatMap(b=>b.tasks).find(b=>b.id===E),A=G[V][ae][E].priority.selectedOption;if(I!=null&&A!=null){const b=lt.find(T=>T.code===A);b!=null&&h(I,{priority:b})}return}if(l.includes(at)){const E=l.split(".")[2],I=j.flatMap(b=>b.tasks).find(b=>b.id===E),A=G[V][ae][E].status.selectedOption;if(I!=null&&A!=null){const b=dt.find(T=>T.code===A);I!=null&&b!=null&&h(I,{status:b})}return}if(l.includes(st)){const E=l.split(".")[2],I=j.flatMap(T=>T.tasks).find(T=>T.id===E),A=j.find(T=>T.tasks.find(te=>te.id===E))?.id,b=G[V][ae][E].assignees.selectedUsers.map(T=>T.userId);A!=null&&b!=null&&I!=null&&h(I,{assignees:b});return}if(l.includes(ot)){const E=l.split(".")[2],I=j.flatMap(T=>T.tasks).find(T=>T.id===E),A=j.find(T=>T.tasks.find(te=>te.id===E))?.id,b=G[V][ae][E].dueDate.date;A!=null&&b!=null&&I!=null&&h(I,{dueDate:b});return}if(l.includes(tt)){const E=l.split(".")[2],I=j.flatMap(T=>T.tasks).find(T=>T.id===E),A=j.find(T=>T.tasks.find(te=>te.id===E))?.id,b=G[V][ae][E].tags.selectedOptions;A!=null&&b!=null&&I!=null&&h(I,{tagIds:b});return}l.includes(xe)&&oe.trigger(l);const O=Vo(l,G,g);p(O)};n.useEffect(()=>{const l=oe.watch((G,{name:O})=>{O!=null&&G!=null&&jt(()=>be(O,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupUpdateStatus.fetchState]);const he=j.length>1&&g.selectedTaskIds.length>0&&r!==Y,me=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(bt,{...oe,children:t.jsx("form",{id:Ve(De),onSubmit:oe.handleSubmit(de),style:{width:"100%"},children:t.jsx(Qo,{isFooterVisible:me,windowSize:L,children:t.jsx(vt,{children:({height:l,width:G})=>t.jsx(St,{ref:$,outerRef:P,height:l,itemCount:Z.length,itemSize:pe,estimatedItemSize:Lt,itemKey:O=>Z[O].id,width:G,overscanCount:Gt,itemData:{tagList:d,taskGroupsWithTasksList:Z,uiState:W,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:ye,handleOnDragNDrop:a,onCollapseToggle:ue,setRowHeight:le,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Ce,onDeleteTaskGroup:Te,onExpandAll:ee,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B},initialScrollOffset:0,children:_o})})})})}),me?t.jsx(Et,{formId:Ve(De),primaryBtn:{label:j.length===1&&g.selectedTaskIds.length>0&&r!==Y?Le.taskList.footer.createGroup:Ke.save,style:{width:"135px"},isLoading:e.taskGroupCreationStatus.fetchState==="In-Progress"||e.taskGroupUpdateStatus.fetchState==="In-Progress"},cancelBtn:{label:Ke.cancel,style:{width:"135px"},onClick:$e},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(_,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(tn,{children:[t.jsx(ct,{count:g.selectedTaskIds.length}),t.jsx(sn,{children:g.selectedTaskIds.length>1?Le.taskList.footer.tasksSelected:Le.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(_,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(rn,{children:t.jsx(Ie,{enterDelay:600,title:H.taskManagement.taskList.footer.ungroup,children:t.jsx(an,{onClick:je})})})}),showPrimaryButton:he===!1,customPrimaryButton:he?t.jsxs(t.Fragment,{children:[t.jsx(Me,{variant:"secondary",label:H.taskManagement.taskList.footer.moveTo,onClick:fe,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx($s,{taskGroupsList:j,anchorEl:x,groupByKey:W.groupByKey,onCreateNewGroup:q,onExistingGroupSelection:l=>{ne(),v(l)},onClose:ne})]}):void 0}):null]})},_o=({index:e,style:d,data:r})=>{const h=n.useRef(null),m=ie(),{tagList:u,taskGroupsWithTasksList:a,uiState:p,renameActiveField:i,collapsedGroups:c,onCollapseToggle:C,onTaskManagementRowClick:v,setRowHeight:N,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,handleOnDragNDrop:z,onRenameClick:B,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:y,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&N(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const j=n.useCallback(P=>{const F=P.dataTransfer.getData("row");z(F,a[e].id)},[z,e,a]),W=n.useCallback(P=>{P.preventDefault()},[]),U=(P,F)=>{P.dataTransfer.setData("row",F)},Q=()=>{B(a[e].id)};return t.jsx(en,{style:{...d,width:"100%"},ref:h,onDrop:j,onDragOver:W,children:t.jsx(Uo,{taskGroup:a[e],showGroupName:!0,tagList:u,uiState:p,isCollapsed:c.includes(a[e].id),onCollapseToggle:C,showRenameTextField:i===a[e].id,isSelectionAllowed:i==null,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:U,onRenameClick:Q,onTimeSpentUpdate:y,onShowToast:L,onCreateTagClick:g},a[e].id)})},Uo=({taskGroup:e,tagList:d,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,userList:i,existingTaskGroupNamesByGroupId:c,onRenameClick:C,onTaskManagementRowClick:v,onCollapseToggle:N,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,onDragStart:z,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})=>{const S=ie(),y=S==="medium-regular"||S==="medium-compact"||S==="small"?uo:Wt;return t.jsx(y,{taskGroup:e,tagList:d,userList:i,sectionId:V,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,existingTaskGroupNamesByGroupId:c,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,onCollapseToggle:N,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onDragStart:z,onRenameClick:C,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})},Ye=(e,d,r,h)=>{const m={},u={};e.forEach(p=>{u[p.id]={[ke]:[],[ce]:d.existingTaskGroupNamesByGroupId[p.id]},p.tasks.forEach(i=>{d.selectedTaskIds.includes(i.id)&&u[p.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:dt.map(c=>({label:c.name,value:c.code}))},[nt]:{selectedOption:i.priority.code,allOptions:lt.map(c=>({label:c.name,value:c.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(c=>c.user)},[tt]:{allOptions:Nt(h),selectedOptions:i.tagIds},[xe]:i.timeSpent}})});const a={[rt]:{[Y]:{[ce]:d.newTaskGroupName,[ke]:[]},...u},[ae]:m};return{[V]:a}},Vo=(e,d,r)=>{if(e.includes(V)){const h=e.split(".")[2];if(e.includes(ce))return e.includes(Y)?{...r,newTaskGroupName:d[V].groupData[h][ce]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:d[V].groupData[h][ce]}};if(e.includes(ke)){const m=At(Rt(Object.values(d[V][rt]),ke)).filter(u=>u!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Ko=o.div`
|
|
433
|
+
`,Po=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("rect",{x:10,y:2,width:12,height:12,rx:2,stroke:"currentColor",strokeWidth:1.5}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75C7 10.3358 6.66421 10 6.25 10H3.70967C2.76545 10 2 10.7654 2 11.7097V20.2936C2 21.2378 2.76544 22.0033 3.70966 22.0033H12.2936C13.2378 22.0033 14.0033 21.2378 14.0033 20.2936V17.75C14.0033 17.3358 13.6675 17 13.2533 17C12.8391 17 12.5033 17.3358 12.5033 17.75V20.2936C12.5033 20.4094 12.4094 20.5033 12.2936 20.5033H3.70966C3.59387 20.5033 3.5 20.4094 3.5 20.2936V11.7097C3.5 11.5939 3.59387 11.5 3.70967 11.5H6.25C6.66421 11.5 7 11.1642 7 10.75Z",fill:"currentColor"})),H=se.getLocalizedStrings(),Ve=e=>`${e}_form`,Fo={rowGap:new Je(ge[0],ge[5],ge[5])},{common:{footer:Ke},taskManagement:Le}=se.getLocalizedStrings(),yn=({taskListView:e,tagListView:d,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:u,onDeleteTaskGroup:a,updateLocalData:p,onTaskManagementRowClick:i,onReloadTasks:c,onColumnSortConfigChanged:C,onSearchTextChanged:v,onBackClick:N,onNewTaskClick:M,onFiltersChange:k,resetLocalData:f,handleCreateGroup:w,assignGroupToTasks:D,onAddNewTaskToTaskGroup:z,onGroupByFilterChange:B,onTaskGroupRename:$,analytics:x,onTimeSpentUpdate:S,onShowToast:y,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,handleNewTaskInitialization:b})=>{const[W,U]=n.useState(!1),[Q,P]=n.useState(null),[F,oe]=n.useState(null),[Z,pe]=n.useState(null),[fe,le]=n.useState(null),[ue,ne]=n.useState(!1),Ce=gt(),{fetchState:ee,uiState:q,filters:Te,userList:de,taskGroupsWithTasksList:$e}=e,{tagList:ye}=d,be=Ze(),je=R=>{ne(R)},he=n.useCallback(R=>{le(R.currentTarget)},[]),me=n.useCallback(R=>{B(R)},[B]),l=n.useCallback(()=>{B("groupName")},[B]),G=n.useCallback(R=>{b(R)},[b]),O=de.users.map(R=>R.user).filter(R=>R!=null),E={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:H.common.create,isSearchOpen:ue,searchPlaceHolder:H.taskManagement.taskList.searchPlaceHolder,searchText:q.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:Te,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:je,onSearchTextChanged:v,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:de.fetchState==="Completed"||de.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(gs,{value:q.groupByKey,resetDisabled:q.groupByKey==="groupName",onChange:me,onReset:l}),height:90},getFilterOptions:()=>is("task_management",O,Ce.loggedInUserRole??[],d.tagList)},I=n.useCallback(R=>{le(null),P(Y),p({...e.localData,newTaskGroupName:R})},[e.localData,p]),A=n.useCallback(()=>{le(null)},[]),j=n.useCallback(()=>{F!=null&&a(F)},[F,a]),T=n.useCallback(()=>{P(Y)},[]),te=n.useCallback(R=>{pe(mt=>mt===R?null:R)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&U(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&pe(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ut=()=>ee==="Error"?t.jsxs(Zo,{children:[t.jsx(qo,{onClick:c,children:t.jsx(Xo,{})}),t.jsx(Jo,{children:H.common.reloadPage.label})]}):ee==="Completed"&&$e.length===0?t.jsx(ft,{message:H.taskManagement.taskList.noDataText}):ee==="Not-Started"||ee==="In-Progress"?t.jsx(Ct,{fetchState:ee}):t.jsx(Ho,{taskListView:e,tagList:ye,renameActiveField:Q,updateTask:m,onDragNDrop:u,onAddNewTaskToTaskGroup:z,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:D,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:p,setActiveTaskGroupId:oe,setRenameActiveField:P,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:y,onCreateTagClick:h}),ht=t.jsx(ss,{spendManagementSectionProps:E});return t.jsxs(Yo,{children:[t.jsx(kt,{title:H.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:be.colors.grey4,style:{zIndex:3},onBackClick:N,rightSideComponent:ht,isSearchOpen:ue,source:"TaskManagementPage"}),t.jsx(As,{anchorEl:fe,groupByKey:q.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:A,onNewTaskClick:M,onNewGroupClick:I,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:te,expandedTemplate:Z}),t.jsx(Ko,{children:ut()}),t.jsx(_,{controller:W===!0,children:t.jsx(xt,{action:{onOkClick:j,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:H.common.cancel,primaryButtonText:H.common.confirm,titleComponent:t.jsx(on,{children:t.jsx(wt,{children:H.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(nn,{children:t.jsx(K,{children:H.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Ho=({taskListView:e,tagList:d,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:u,onDragNDrop:a,updateLocalData:p,setShowDeleteModal:i,handleCreateGroup:c,resetLocalData:C,assignGroupToTasks:v,setGroupCreationInProgress:N,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,setActiveTaskGroupId:w,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B})=>{const $=n.useRef(null),[x,S]=n.useState(null),y=n.useRef({}),L=ie(),{localData:g,taskGroupsWithTasksList:b,uiState:W}=e,[U,Q]=n.useState([]),P=n.useRef(null);us({scrollContainerRef:P,isEnabled:L!=="small"});const F=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),oe=yt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,F,d),[g,e.taskGroupsWithTasksList,F,d]),values:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,F,d),[g,e.taskGroupsWithTasksList,F,d])}),Z=n.useMemo(()=>{if(r!==Y)return b;const l=[],G=b.map(O=>{const E=O.tasks.filter(I=>{const A=g.selectedTaskIds.includes(I.id)===!0;return A&&l.push(I),A===!1});return{...O,tasks:E}});return G.unshift({groupName:"",isDefault:!1,id:Y,tasks:l}),G},[r,b,g.selectedTaskIds]),pe=n.useCallback(l=>U.includes(Z[l].id)||Z[l].tasks.length===0?100:y.current?.[l]!=null?y.current[l]+Fo.rowGap.value(L):(os*1+ns)*3+as+rs,[U,Z,L]),fe=n.useCallback(l=>{S(l.currentTarget)},[]),le=n.useCallback((l,G)=>{y.current={...y.current,[l]:G},$.current?.resetAfterIndex(0,!0)},[L,$,b]),ue=n.useCallback(l=>{Q(G=>G.includes(l)?G.filter(O=>l!==O):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ne=n.useCallback(()=>{S(null)},[]),Ce=n.useCallback(()=>{Q(b.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[b]),ee=n.useCallback(()=>{Q([]),$.current?.resetAfterIndex(0,!0)},[]),q=n.useCallback(()=>{N(),$.current?.scrollTo(0),ne()},[ne,N]),Te=n.useCallback(l=>{w(l),i(!0)},[w,i]),de=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==Y?q():c(!0):r===Y?c(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,q,c,m]),$e=n.useCallback(()=>{u(null),C()},[C,u]),ye=n.useCallback(l=>{C(),u(l)},[C,u]),be=n.useCallback(()=>{g.defaultTaskGroupId!=null&&v(g.defaultTaskGroupId)},[v,g.defaultTaskGroupId]),je=async(l,G)=>{if(l.includes(nt)){const E=l.split(".")[2],I=b.flatMap(j=>j.tasks).find(j=>j.id===E),A=G[V][ae][E].priority.selectedOption;if(I!=null&&A!=null){const j=lt.find(T=>T.code===A);j!=null&&h(I,{priority:j})}return}if(l.includes(at)){const E=l.split(".")[2],I=b.flatMap(j=>j.tasks).find(j=>j.id===E),A=G[V][ae][E].status.selectedOption;if(I!=null&&A!=null){const j=dt.find(T=>T.code===A);I!=null&&j!=null&&h(I,{status:j})}return}if(l.includes(st)){const E=l.split(".")[2],I=b.flatMap(T=>T.tasks).find(T=>T.id===E),A=b.find(T=>T.tasks.find(te=>te.id===E))?.id,j=G[V][ae][E].assignees.selectedUsers.map(T=>T.userId);A!=null&&j!=null&&I!=null&&h(I,{assignees:j});return}if(l.includes(ot)){const E=l.split(".")[2],I=b.flatMap(T=>T.tasks).find(T=>T.id===E),A=b.find(T=>T.tasks.find(te=>te.id===E))?.id,j=G[V][ae][E].dueDate.date;A!=null&&j!=null&&I!=null&&h(I,{dueDate:j});return}if(l.includes(tt)){const E=l.split(".")[2],I=b.flatMap(T=>T.tasks).find(T=>T.id===E),A=b.find(T=>T.tasks.find(te=>te.id===E))?.id,j=G[V][ae][E].tags.selectedOptions;A!=null&&j!=null&&I!=null&&h(I,{tagIds:j});return}l.includes(xe)&&oe.trigger(l);const O=Vo(l,G,g);p(O)};n.useEffect(()=>{const l=oe.watch((G,{name:O})=>{O!=null&&G!=null&&bt(()=>je(O,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&u(null)},[u,e.taskGroupUpdateStatus.fetchState]);const he=b.length>1&&g.selectedTaskIds.length>0&&r!==Y,me=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(jt,{...oe,children:t.jsx("form",{id:Ve(De),onSubmit:oe.handleSubmit(de),style:{width:"100%"},children:t.jsx(Qo,{isFooterVisible:me,windowSize:L,children:t.jsx(vt,{children:({height:l,width:G})=>t.jsx(St,{ref:$,outerRef:P,height:l,itemCount:Z.length,itemSize:pe,estimatedItemSize:Lt,itemKey:O=>Z[O].id,width:G,overscanCount:Gt,itemData:{tagList:d,taskGroupsWithTasksList:Z,uiState:W,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:ye,handleOnDragNDrop:a,onCollapseToggle:ue,setRowHeight:le,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Ce,onDeleteTaskGroup:Te,onExpandAll:ee,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B},initialScrollOffset:0,children:_o})})})})}),me?t.jsx(Et,{formId:Ve(De),primaryBtn:{label:b.length===1&&g.selectedTaskIds.length>0&&r!==Y?Le.taskList.footer.createGroup:Ke.save,style:{width:"135px"},isLoading:e.taskGroupCreationStatus.fetchState==="In-Progress"||e.taskGroupUpdateStatus.fetchState==="In-Progress"},cancelBtn:{label:Ke.cancel,style:{width:"135px"},onClick:$e},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(_,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(tn,{children:[t.jsx(ct,{count:g.selectedTaskIds.length}),t.jsx(sn,{children:g.selectedTaskIds.length>1?Le.taskList.footer.tasksSelected:Le.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(_,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(rn,{children:t.jsx(Ie,{enterDelay:600,title:H.taskManagement.taskList.footer.ungroup,children:t.jsx(an,{onClick:be})})})}),showPrimaryButton:he===!1,customPrimaryButton:he?t.jsxs(t.Fragment,{children:[t.jsx(Me,{variant:"secondary",label:H.taskManagement.taskList.footer.moveTo,onClick:fe,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx($s,{taskGroupsList:b,anchorEl:x,groupByKey:W.groupByKey,onCreateNewGroup:q,onExistingGroupSelection:l=>{ne(),v(l)},onClose:ne})]}):void 0}):null]})},_o=({index:e,style:d,data:r})=>{const h=n.useRef(null),m=ie(),{tagList:u,taskGroupsWithTasksList:a,uiState:p,renameActiveField:i,collapsedGroups:c,onCollapseToggle:C,onTaskManagementRowClick:v,setRowHeight:N,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,handleOnDragNDrop:z,onRenameClick:B,userList:$,selectedRowIds:x,existingTaskGroupNamesByGroupId:S,onTimeSpentUpdate:y,onShowToast:L,onCreateTagClick:g}=r;n.useEffect(()=>{h.current?.firstElementChild!=null&&N(e,h.current.firstElementChild.clientHeight)},[e,h,m,a[e]?.tasks]);const b=n.useCallback(P=>{const F=P.dataTransfer.getData("row");z(F,a[e].id)},[z,e,a]),W=n.useCallback(P=>{P.preventDefault()},[]),U=(P,F)=>{P.dataTransfer.setData("row",F)},Q=()=>{B(a[e].id)};return t.jsx(en,{style:{...d,width:"100%"},ref:h,onDrop:b,onDragOver:W,children:t.jsx(Uo,{taskGroup:a[e],showGroupName:!0,tagList:u,uiState:p,isCollapsed:c.includes(a[e].id),onCollapseToggle:C,showRenameTextField:i===a[e].id,isSelectionAllowed:i==null,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,selectedRowIds:x,userList:$,existingTaskGroupNamesByGroupId:S,onDragStart:U,onRenameClick:Q,onTimeSpentUpdate:y,onShowToast:L,onCreateTagClick:g},a[e].id)})},Uo=({taskGroup:e,tagList:d,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,userList:i,existingTaskGroupNamesByGroupId:c,onRenameClick:C,onTaskManagementRowClick:v,onCollapseToggle:N,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,onDragStart:z,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})=>{const S=ie(),y=S==="medium-regular"||S==="medium-compact"||S==="small"?uo:Wt;return t.jsx(y,{taskGroup:e,tagList:d,userList:i,sectionId:V,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:u,isSelectionAllowed:a,selectedRowIds:p,existingTaskGroupNamesByGroupId:c,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,onCollapseToggle:N,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onDragStart:z,onRenameClick:C,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})},Ye=(e,d,r,h)=>{const m={},u={};e.forEach(p=>{u[p.id]={[ke]:[],[ce]:d.existingTaskGroupNamesByGroupId[p.id]},p.tasks.forEach(i=>{d.selectedTaskIds.includes(i.id)&&u[p.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:dt.map(c=>({label:c.name,value:c.code}))},[nt]:{selectedOption:i.priority.code,allOptions:lt.map(c=>({label:c.name,value:c.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(c=>c.user)},[tt]:{allOptions:Nt(h),selectedOptions:i.tagIds},[xe]:i.timeSpent}})});const a={[rt]:{[Y]:{[ce]:d.newTaskGroupName,[ke]:[]},...u},[ae]:m};return{[V]:a}},Vo=(e,d,r)=>{if(e.includes(V)){const h=e.split(".")[2];if(e.includes(ce))return e.includes(Y)?{...r,newTaskGroupName:d[V].groupData[h][ce]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:d[V].groupData[h][ce]}};if(e.includes(ke)){const m=At(Rt(Object.values(d[V][rt]),ke)).filter(u=>u!==H.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Ko=o.div`
|
|
434
434
|
display: block;
|
|
435
435
|
height: 100%;
|
|
436
436
|
`,Yo=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as t,b3 as _,aD as S,di as B,br as H,o as c,ai as L}from"./index-
|
|
1
|
+
import{V as t,b3 as _,aD as S,di as B,br as H,o as c,ai as L}from"./index-D4DdpT1f.js";import{a as n}from"./sentry-Dlcq8VjX.js";import{n as g}from"./mui-CooLgaJO.js";import{Y as q}from"./core-CqdPXR9B.js";import{V as U}from"./CollapsableReportTable-DgteU0nB-DwU6xqcB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="a62988cd-205b-4028-a761-538b041c434b",e._sentryDebugIdIdentifier="sentry-dbid-a62988cd-205b-4028-a761-538b041c434b")}catch{}})();const W=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),X=e=>n.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),n.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,Z=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
justify-content: flex-start;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as s,o,ai as f,F as p}from"./index-
|
|
1
|
+
import{V as s,o,ai as f,F as p}from"./index-D4DdpT1f.js";import{n}from"./mui-CooLgaJO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b1f7281b-79ab-4ce2-933f-046b7ce5b51a",e._sentryDebugIdIdentifier="sentry-dbid-b1f7281b-79ab-4ce2-933f-046b7ce5b51a")}catch{}})();const u=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as
|
|
1
|
+
import{J as d,V as t,y as n,ai as u,bI as w}from"./index-D4DdpT1f.js";import{n as r}from"./mui-CooLgaJO.js";import{b as l}from"./TimeframeSwitcher-453JT8qD-dl4gBr1v.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="0bc71d1c-cffc-478d-be0b-dd838feffc12",e._sentryDebugIdIdentifier="sentry-dbid-0bc71d1c-cffc-478d-be0b-dd838feffc12")}catch{}})();const s="ZeniSwitch",i={root:`${s}-root`,switchBase:`${s}-switchBase`,track:`${s}-track`,thumb:`${s}-thumb`},b=({className:e,...o})=>t.jsx(w,{...o,className:e,classes:{...i}}),x=r(b)(({theme:e})=>({[`& .${i.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${i.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${i.root}.${i.switchBase}.Mui-checked + .${i.track}`]:{backgroundColor:e.colors.grey1},[`&.${i.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${i.switchBase}.Mui-checked .${i.thumb}`]:{backgroundColor:e.colors.primary},[`& .${i.switchBase}.Mui-checked .${i.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${i.switchBase}.Mui-checked + .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${i.switchBase}.Mui-disabled + .${i.track}`]:{opacity:.7},[`& .${i.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),p=e=>t.jsx(x,{...e}),c={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},y=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -28,4 +28,4 @@ import{J as n,V as t,y as d,ai as u,bI as w}from"./index-WEj6FS32.js";import{n a
|
|
|
28
28
|
`,C=r(u)`
|
|
29
29
|
color: ${e=>e.isOn?e.theme.colors.primary:e.theme.colors.hero};
|
|
30
30
|
opacity: ${e=>e.isDisabled?.5:1};
|
|
31
|
-
`,f=({label:e,isOn:o,isToggleDisabled:a,onValueChanged:h})=>t.jsxs(t.Fragment,{children:[t.jsx(C,{isOn:o,isDisabled:a===!0,children:e}),t.jsx(p,{checked:o,edge:"end",disabled:a===!0,disableRipple:a===!0,onChange:g=>{h(g.target.checked)}})]}),T=e=>{const o=
|
|
31
|
+
`,f=({label:e,isOn:o,isToggleDisabled:a,onValueChanged:h})=>t.jsxs(t.Fragment,{children:[t.jsx(C,{isOn:o,isDisabled:a===!0,children:e}),t.jsx(p,{checked:o,edge:"end",disabled:a===!0,disableRipple:a===!0,onChange:g=>{h(g.target.checked)}})]}),T=e=>{const o=d();return t.jsxs(y,{children:[t.jsx(m,{windowSize:o,children:t.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),t.jsx(k,{children:t.jsx(f,{...e.toggle})})]})},v=e=>{const o=d();return t.jsxs($,{children:[t.jsx(m,{windowSize:o,children:t.jsx(l,{timeframes:e.timeframe.allowedTimeframes,selectedTimeframe:e.timeframe.selectedTimeframe,onTimeframeSelectionChanged:e.timeframe.onTimeframeSelectionChanged})}),t.jsx(j,{children:t.jsx(f,{...e.toggle})})]})};function I(e){const o=d();return o==="small"||o==="medium-compact"?t.jsx(T,{...e}):t.jsx(v,{...e})}export{I as M};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import{aD as M,J as z,V as t,g as x,u as
|
|
1
|
+
import{aD as M,J as z,V as t,g as x,u as f,b as T,aY as Q,aN as R,aL as H,o as p,ai as C,b9 as Y,al as F,F as S,aM as X,aS as E,b2 as G,b3 as N,aP as q,aT as J,bQ as U}from"./index-D4DdpT1f.js";import{P as w,a as W}from"./sentry-Dlcq8VjX.js";import{F3 as Z}from"./zeni-epic-state-pmiItBju.js";import{n as g}from"./mui-CooLgaJO.js";import{A as ee,I as te}from"./ReloadCard-0KQtayY--Cg4JfrF6.js";import{o as ae,r as re}from"./graphic-no-data-l-DU4J8fDt-a_iKaRv1.js";import{H as k,X as L,Y as P,K as $,O,Q as ne,S as oe}from"./recharts-DHPcYqKb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="51d4d231-ae06-4f7c-b2e7-9748cd44e346",e._sentryDebugIdIdentifier="sentry-dbid-51d4d231-ae06-4f7c-b2e7-9748cd44e346")}catch{}})();const ie=g(E)`
|
|
2
2
|
justify-content: space-between;
|
|
3
3
|
margin: 0;
|
|
4
4
|
height: ${e=>e.height!=null?e.height+"px":"auto"};
|
|
5
5
|
width: ${e=>e.width!=null?e.width+"px":"auto"};
|
|
6
6
|
`,se=g.div``,le=g(C)`
|
|
7
7
|
color: ${e=>e.theme.colors.hero};
|
|
8
|
-
margin: ${
|
|
9
|
-
`,ce=({width:e,height:n,label:r})=>{const l=x();return t.jsxs(ie,{height:n,width:e,children:[t.jsx(se,{}),l.mode==="light"?t.jsx(ae,{style:{marginBottom:
|
|
8
|
+
margin: ${p.sp2} ${p.sp0} ${p.sp2} ${p.sp0};
|
|
9
|
+
`,ce=({width:e,height:n,label:r})=>{const l=x();return t.jsxs(ie,{height:n,width:e,children:[t.jsx(se,{}),l.mode==="light"?t.jsx(ae,{style:{marginBottom:p.sp4}}):t.jsx(re,{style:{marginBottom:p.sp4}}),t.jsx(le,{children:r})]})},de=g.div``;function he({allowedValues:e,timeframeSelected:n,onTimeframeChanged:r,textStyle:l}){const i=o=>S.getLocalizedStrings().timeframe[o];return t.jsx(de,{onClick:o=>o.stopPropagation(),children:t.jsx(U,{pickerValues:e,valueToLabel:i,selectedValue:n,onPickerSelectionChanged:r,optionTextStyle:l})})}const me=g(J)`
|
|
10
10
|
color: ${e=>e.theme.colors.champion};
|
|
11
11
|
`,D=g.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
flex: 0 1 auto;
|
|
14
14
|
flex-direction: row;
|
|
15
15
|
align-items: center;
|
|
16
|
-
`;function ue({dimension:e,reportTitle:n,cardType:r,cardIndex:l,onCardClick:i,timeframe:o,allowedValues:d,chartElement:s,onTimeframeChange:h}){const c=d.length>0?" - ":"";return t.jsx(X,{"data-testid":q("dashboard",`${r}-timeframe-${o}`),style:{cursor:"pointer"},dimension:e,onClick:()=>i(l,r),children:t.jsxs(E,{children:[t.jsxs(D,{style:{marginBottom:
|
|
16
|
+
`;function ue({dimension:e,reportTitle:n,cardType:r,cardIndex:l,onCardClick:i,timeframe:o,allowedValues:d,chartElement:s,onTimeframeChange:h}){const c=d.length>0?" - ":"";return t.jsx(X,{"data-testid":q("dashboard",`${r}-timeframe-${o}`),style:{cursor:"pointer"},dimension:e,onClick:()=>i(l,r),children:t.jsxs(E,{children:[t.jsxs(D,{style:{marginBottom:f[3]},children:[t.jsx(me,{children:n!=null?n+c:G(r)+c})," ",d.length>0?t.jsx(he,{timeframeSelected:o,onTimeframeChanged:a=>h?.(a??"month"),allowedValues:d}):null]}),t.jsx(D,{style:{width:"100%",height:"100%",cursor:"pointer"},children:t.jsx("div",{style:{width:"100%",height:"100%"},children:t.jsx(N,{children:({height:a,width:m})=>s(m,a)})})})]})})}function A({card:e,reportTitle:n,actions:r,timeframe:l,allowedValues:i,chartElement:o,onTimeframeChange:d}){return e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?t.jsx(ee,{dimension:e.dimension,animated:!e.disableAnimations}):e.fetchState==="Error"?t.jsx(te,{dimension:e.dimension,cardType:e.cardType,cardIndex:e.cardIndex,onReloadData:r.onReloadData,reportTitle:n}):t.jsx(ue,{dimension:e.dimension,reportTitle:n,cardType:e.cardType,cardIndex:e.cardIndex,onCardClick:r.onCardClick,timeframe:l,allowedValues:i??["month","quarter","year"],chartElement:o,onTimeframeChange:s=>{r.onTimeframeChange?.(e.cardType,s),d?.(e.cardType,s)}})}w.memo(A);const B=(e,n,r)=>{const l=n.map(a=>({label:a.timePeriod,startDate:a.startDate,endDate:a.endDate})),i=r.total,o=r.accountsOrdered.map(a=>({accountId:a.accountId,accountDescription:a.accountDescription,balance:a.balance,logo:a.logo}))??[],d=Math.min(e,o.length),s=o.length?e-o.length:0,h=i?.amount;if(o.length>0&&s>0&&h!=null&&h!==0){const a=o[d-1].balance,m=a?.available?.amount!=null?Math.min(30,a?.available?.amount/h*100):30;for(let u=0;u<s;u+=1){const y=m*(s-u)/(s+1);o.push({accountId:u.toString(),accountDescription:"",balance:{available:{amount:h*y/100,currencySymbol:a.available.currencySymbol,currencyCode:a.available.currencyCode}}})}}const c=o.map(a=>{const m="top_expenses",u={accountId:a.accountId,accountDescription:a.accountDescription,total:i??void 0,logo:a.logo??"",barKey:m};return u[m]=a.balance.available,u});return{timeframeLabelsInOrder:l,chartItems:c}},b=37,j=2,ge=g.div`
|
|
17
17
|
display: flex;
|
|
18
18
|
flex-direction: row;
|
|
19
19
|
flex: 1 1 auto;
|
|
@@ -21,18 +21,18 @@ import{aD as M,J as z,V as t,g as x,u as p,b as T,aY as Q,aN as R,aL as H,o as f
|
|
|
21
21
|
align-items: center;
|
|
22
22
|
height: 100%;
|
|
23
23
|
color: ${e=>e.theme.colors.hero};
|
|
24
|
-
`,
|
|
24
|
+
`,pe=g.div`
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
27
|
flex: 4 1 0;
|
|
28
|
-
`,
|
|
29
|
-
height: ${
|
|
28
|
+
`,fe=g.img`
|
|
29
|
+
height: ${p.sp4};
|
|
30
30
|
`,xe=g(C)`
|
|
31
|
-
margin-left: ${
|
|
31
|
+
margin-left: ${p.sp2};
|
|
32
32
|
`,ye=g(Y)`
|
|
33
33
|
flex: 1 1 0;
|
|
34
34
|
color: ${e=>e.theme.colors.primary};
|
|
35
35
|
`,be=g(F)`
|
|
36
36
|
flex: 1 1 0;
|
|
37
|
-
margin-right: ${
|
|
38
|
-
`;function je({report:e,width:n,height:r,showBarHoverBackground:l}){const i=x(),o=B(e.topExpenses.accountsOrdered.length,e.allTimePeriods,e.topExpenses),d=(s,h)=>t.jsx($,{dataKey:c=>{const a=c[h]!=null?c[h]:void 0;return a!=null&&a.amount>0?a.amount:0},isAnimationActive:!0,animationDuration:800,background:{fill:i.colors.background},children:s.map(c=>t.jsx(O,{fill:i.colors.topExCustomColor},h))},Math.random());return o.chartItems.length===0?null:t.jsx(De,{chartItemArray:o.chartItems,showBarHoverBackground:l,barElement:d(o.chartItems,o.chartItems[0].barKey),width:n,height:r})}const we=e=>{const{barKey:n,payload:r,chartItems:l,width:i,y:o}=e,d=r.value,s=l.find(h=>h.accountId==d);return s==null||s.accountDescription==null?null:t.jsx("foreignObject",{y:o-r.offset+j,width:i,height:b,children:t.jsxs(ge,{children:[t.jsxs(
|
|
37
|
+
margin-right: ${p.sp2};
|
|
38
|
+
`;function je({report:e,width:n,height:r,showBarHoverBackground:l}){const i=x(),o=B(e.topExpenses.accountsOrdered.length,e.allTimePeriods,e.topExpenses),d=(s,h)=>t.jsx($,{dataKey:c=>{const a=c[h]!=null?c[h]:void 0;return a!=null&&a.amount>0?a.amount:0},isAnimationActive:!0,animationDuration:800,background:{fill:i.colors.background},children:s.map(c=>t.jsx(O,{fill:i.colors.topExCustomColor},h))},Math.random());return o.chartItems.length===0?null:t.jsx(De,{chartItemArray:o.chartItems,showBarHoverBackground:l,barElement:d(o.chartItems,o.chartItems[0].barKey),width:n,height:r})}const we=e=>{const{barKey:n,payload:r,chartItems:l,width:i,y:o}=e,d=r.value,s=l.find(h=>h.accountId==d);return s==null||s.accountDescription==null?null:t.jsx("foreignObject",{y:o-r.offset+j,width:i,height:b,children:t.jsxs(ge,{children:[t.jsxs(pe,{children:[t.jsx(fe,{src:s.logo,alt:s.accountDescription,loading:"lazy"}),t.jsx(xe,{children:s.accountDescription})]}),t.jsx(ye,{children:"⟶"}),t.jsx(be,{children:R("0,0",s[n])})]})})},De=({chartItemArray:e,barElement:n,width:r,height:l})=>{const i=e[0],o=i.total,d=i.barKey;return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:j,height:e.length?(b+2*j)*e.length:l,barSize:b,margin:{top:0,right:0,left:0,bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:"default"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[s=>Math.min(0,s),o?.amount??0]}),t.jsx(P,{orientation:"left",yAxisId:0,dataKey:s=>s.accountId,type:"category",axisLine:!1,tickLine:!1,width:r/2,mirror:!1,tick:t.jsx(we,{width:r/2,chartItems:e,barKey:d})}),n]})},I=41,v=4;function Ie({report:e,width:n,height:r,showBarHoverBackground:l,isDetailPage:i}){const o=x(),d=B(i===!0?e.topExpenses.accountsOrdered.length:6,e.allTimePeriods,e.topExpenses),s=(h,c,a)=>t.jsxs($,{dataKey:m=>{const u=m[c]!=null?m[c]:void 0;return u!=null&&u.amount>0?u.amount:0},isAnimationActive:!0,animationDuration:i===!0?800:void 0,background:void 0,children:[t.jsx(ne,{dataKey:"accountDescription",position:"insideLeft",offset:8,content:m=>{const{x:u,y,value:K,height:_,offset:V}=m;return t.jsx(oe,{x:u+V,y:y+_/2,fill:o.colors.hero,fontSize:T.smallRegular.fontSize,verticalAnchor:"middle",width:a-110,maxLines:1,children:K})}}),h.map(m=>t.jsx(O,{fill:m.accountDescription!==""?o.colors.graphColor29:o.colors.grey3,fillOpacity:m.accountDescription!==""?.32:1},c))]},Math.random());return d.chartItems.length===0?null:t.jsx(ve,{chartItemArray:d.chartItems,showBarHoverBackground:l,barElement:s(d.chartItems,d.chartItems[0].barKey,n),width:n,height:r,isDetailPage:i===!0})}const ve=({chartItemArray:e,barElement:n,width:r,height:l,isDetailPage:i})=>{const o=x(),d=e[0],s=d.total,h=d.barKey,c=s?.currencySymbol??"";return t.jsxs(k,{data:e,layout:"vertical",width:r,barCategoryGap:i?v:2,height:i?e.length?(I+2*v)*e.length:l:l+5,barSize:i?I:38,margin:{top:0,right:i?f[0]:f[3],left:i?f[0]:f[3],bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:i?"default":"pointer"},children:[t.jsx(L,{hide:!0,axisLine:!1,type:"number",domain:[a=>Math.min(0,a),s?.amount??0]}),t.jsx(P,{orientation:"right",yAxisId:0,dataKey:a=>{const m=a[h]!=null?a[h]:void 0,{accountDescription:u}=a;return u!==""&&m!=null?m.amount:0},type:"category",axisLine:!1,tickLine:!1,width:r,mirror:!0,tick:{fill:o.colors.hero,...T.smallRegular.cssObject},tickFormatter:a=>a!==0?Q("0,0.[00]a",a,c):""}),n]})};function Te(e){const n=z();return n!=="small"&&n!=="medium-compact"&&e.isDetailPage===!0?t.jsx(je,{...e}):t.jsx(Ie,{...e})}const Ce=w.memo(Te,M);function Se(e){if(e==null||e.length===0)return!0;let n=!0;for(const r of e)if(r.balance.available.amount!==0){n=!1;break}return n}function Ee({card:e,actions:n,data:r,dndProps:l}){const[i,o]=W.useState(r?.topExTimePeriod??"last_month"),d=[...Z],s=e.fetchState==="Completed"?Se(r?.topExpenses.accountsOrdered):!1,h=(c,a)=>s===!1?t.jsx(Ce,{report:r,width:c,height:a,timeframe:i}):t.jsx(ce,{width:c,height:a,label:S.getLocalizedStrings().chartCard.no_data.top_expenses[i]});return t.jsx(H,{isDragging:l?.draggedCardType!=null,isDragOver:l?.dragOverCard===e.cardType,draggable:!0,onDragStart:c=>l?.onDragStart(e.cardType,c),onDragOver:c=>l?.onDragOver(c,e.cardType),onDragLeave:c=>l?.onDragLeave(c),onDrop:c=>l?.onDrop(c,e.cardType),dimension:e.dimension,children:t.jsx(A,{card:e,actions:n,timeframe:i,chartElement:h,allowedValues:d,onTimeframeChange:(c,a)=>o(a)})},e.cardIndex)}w.memo(Ee);export{Se as E,Ce as I,Ee as L,A as O,ce as c};
|
package/dist/assets/{TopExDetailPage-B0kS11k0-IiO7dIt-.js → TopExDetailPage-BpwMO-8K-qWr97Eft.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as
|
|
1
|
+
import{g as b,J as B,V as t,bB as S,F as x,aN as j,b3 as P,G as A,o as i,y as E,bP as H,bs as V,u as c,p as z,al as $,aP as F,a$ as T}from"./index-D4DdpT1f.js";import{n}from"./mui-CooLgaJO.js";import{F3 as D}from"./zeni-epic-state-pmiItBju.js";import{E as _,I}from"./TopExCard-Qae08TpE-B5FSxtbi.js";import{b as M}from"./TimeframeSwitcher-453JT8qD-dl4gBr1v.js";import{d as L}from"./NoDataTable-cJmfr934-D57XH4Vn.js";import{P as Z,a as o}from"./sentry-Dlcq8VjX.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./ReloadCard-0KQtayY--Cg4JfrF6.js";import"./graphic-no-data-l-DU4J8fDt-a_iKaRv1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="9abddcac-5f54-4dff-a11b-aa947ce93c43",e._sentryDebugIdIdentifier="sentry-dbid-9abddcac-5f54-4dff-a11b-aa947ce93c43")}catch{}})();const v="141px",O=i.sp4,N="123px",J=n(T)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
width: ${i.sp3};
|
|
4
4
|
height: ${i.sp3};
|
|
@@ -42,7 +42,7 @@ import{g as j,J as B,V as t,bB as S,F as x,aN as b,b3 as P,G as A,o as i,y as E,
|
|
|
42
42
|
min-width: ${N};
|
|
43
43
|
text-align: left;
|
|
44
44
|
margin-left: ${i.sp4};
|
|
45
|
-
`;function Y({leftChevron:e,account:l,onAccountBalanceClick:a}){const s=l!=null&&l.balance!=null,r=e==="hidden",g=s?"pointer":"default",d=r===!1&&s,w=d?"pointer":"default",h=r?c[6]:c[4],m=J,{common:{strings:{empty:y}}}=x.getLocalizedStrings(),C=l?.accountDescription?l.accountDescription:y,f=l?.accountName?l.accountName:C;return t.jsxs(R,{isClickable:d,children:[t.jsxs(W,{style:{cursor:w},isClickable:d,children:[r===!1?t.jsx(m,{style:{minWidth:c[3],minHeight:c[3]}}):null,t.jsx(X,{"data-testid":F("top-ex-account-name",f),style:{marginLeft:h},title:f,onClick:()=>{d&&l!=null&&l.balance!=null&&a?.(l)},children:f})]}),t.jsx(G,{style:{cursor:g},children:t.jsx(K,{isClickable:s,onClick:()=>{l?.balance!=null&&a?.(l)},children:
|
|
45
|
+
`;function Y({leftChevron:e,account:l,onAccountBalanceClick:a}){const s=l!=null&&l.balance!=null,r=e==="hidden",g=s?"pointer":"default",d=r===!1&&s,w=d?"pointer":"default",h=r?c[6]:c[4],m=J,{common:{strings:{empty:y}}}=x.getLocalizedStrings(),C=l?.accountDescription?l.accountDescription:y,f=l?.accountName?l.accountName:C;return t.jsxs(R,{isClickable:d,children:[t.jsxs(W,{style:{cursor:w},isClickable:d,children:[r===!1?t.jsx(m,{style:{minWidth:c[3],minHeight:c[3]}}):null,t.jsx(X,{"data-testid":F("top-ex-account-name",f),style:{marginLeft:h},title:f,onClick:()=>{d&&l!=null&&l.balance!=null&&a?.(l)},children:f})]}),t.jsx(G,{style:{cursor:g},children:t.jsx(K,{isClickable:s,onClick:()=>{l?.balance!=null&&a?.(l)},children:j("0,0",l?.balance.available)})})]})}const q=n.div`
|
|
46
46
|
display: flex;
|
|
47
47
|
width: 100%;
|
|
48
48
|
flex-direction: column;
|
|
@@ -84,7 +84,7 @@ import{g as j,J as B,V as t,bB as S,F as x,aN as b,b3 as P,G as A,o as i,y as E,
|
|
|
84
84
|
`,ce=n($)`
|
|
85
85
|
color: ${z.alert};
|
|
86
86
|
margin: ${i.sp3} ${i.sp0} ${i.sp5} ${i.sp0};
|
|
87
|
-
`;function de(){switch(
|
|
87
|
+
`;function de(){switch(b().mode){case"light":return t.jsx(oe,{width:"100%",preserveAspectRatio:"none"});case"dark":default:return t.jsx(le,{width:"100%",preserveAspectRatio:"none"})}}function pe({title:e}){return t.jsxs(re,{children:[e!=null?t.jsx(ce,{children:e}):null,t.jsx(ae,{children:t.jsx(se,{children:t.jsx(de,{})})})]})}const u={wrapperPadding:new E(c[3],c[3],c[8]),chartContainerMinHeight:new E(c[12],c[11])},he=n.div`
|
|
88
88
|
display: flex;
|
|
89
89
|
flex: 1 1 auto;
|
|
90
90
|
min-height: 100%;
|
|
@@ -129,4 +129,4 @@ import{g as j,J as B,V as t,bB as S,F as x,aN as b,b3 as P,G as A,o as i,y as E,
|
|
|
129
129
|
margin-bottom: ${i.sp5};
|
|
130
130
|
`,$e=n.div`
|
|
131
131
|
display: flex;
|
|
132
|
-
`;function Ie(e){const l=
|
|
132
|
+
`;function Ie(e){const l=b(),{report:a,onTimeframeSelectionChanged:s,onAccountBalanceClick:r,onBackClick:g}=e,d=B(),w=[...D],h=_(a.topExpenses.accountsOrdered),{topExTimePeriod:m,topExpenses:y}=a,C=y.total,f=p=>{e.autoCompleteData.autoCompleteText!=null&&e.analytics?.trackSearch(A.Event.search,"Top Expenses",p.type,p.name,e.autoCompleteData.autoCompleteText),e.autoCompleteActions.onAutoCompleteEntity?.(p)};return t.jsxs(he,{children:[t.jsx(S,{source:"TopExDetailPage",title:x.getLocalizedStrings().reportTitleById.top_expenses,backgroundColor:l.colors.grey5,onBackClick:g,searchAutoComplete:{autoCompleteData:e.autoCompleteData,autoCompleteActions:{...e.autoCompleteActions,onAutoCompleteEntity:f}}}),t.jsxs(me,{windowSize:d,children:[t.jsx(xe,{children:t.jsx(fe,{children:t.jsx(M,{timeframes:w,selectedTimeframe:m,onTimeframeSelectionChanged:p=>{s?.(p)}})})}),h?null:t.jsxs(ge,{children:[t.jsx(we,{children:j("0,0",C)}),t.jsx(ye,{children:x.getLocalizedStrings().reports.detail.topEx.insightLabel})]}),h?t.jsx($e,{children:t.jsx(pe,{title:`${x.getLocalizedStrings().chartCard.no_data_available_for} ${x.getLocalizedStrings().timeframe[m]}`})}):t.jsx(Ce,{windowSize:d,children:t.jsx(P,{style:{height:"fit-content"},children:({height:p,width:k})=>t.jsx(I,{report:a,timeframe:m,showBarHoverBackground:!1,width:k,height:p,isDetailPage:!0})})})]}),t.jsx(ue,{windowSize:d,children:h?t.jsx(L,{}):t.jsx(ne,{report:a,onAccountBalanceClick:r})})]})}export{Ie as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as Bn,q as Fn,g as Pt,a9 as Wn,J as ae,F as B,aQ as Zt,dP as Hn,dQ as Gn,cE as Yn,aD as Jn,dR as nn,dS as Zn,V as i,ac as Xn,bB as Qn,dT as Kn,dU as ea,T as oi,dV as zi,aR as ta,y as N,aP as F,dW as an,dX as Te,dY as Oe,dZ as Pe,d_ as Ke,d$ as et,e0 as St,e1 as kt,e2 as tt,e3 as gt,e4 as zt,e5 as At,e6 as Xt,e7 as ee,e8 as ia,e9 as ei,ea as ue,eb as on,ec as pe,ed as sn,aJ as na,ee as Dt,ef as Ai,eg as aa,r as oa,co as sa,o as a,cc as la,eh as ra,u as O,G as wi,p as le,aq as Di,ba as si,e as ca,ei as da,cj as ua,ch as li,cI as st,ej as pa,ek as Ht,aU as ln,cY as ma,el as ha,cf as ga,cg as fa,aN as Le,al as fe,a$ as ya,em as ba,en as rn,eo as Qt,ep as Kt,eq as mi,de as xa,b3 as wa,cs as va,er as Ti,a8 as cn,es as ti,et as ii,eu as dn,cN as un,bS as Oi,ev as hi,dj as gi,ew as Ca,bs as Ia,ex as Ri,ey as $a,ez as Da,ay as Ta,eA as Oa,eB as La,a as pn,eC as mn,bJ as ja,eD as Ei,eE as hn,eF as gn,eG as fn,bH as lt,at as Sa,as as ka,ds as za,b as yn,eH as Aa,bF as Ra,x as Ea,am as Va,l as Pa,aW as vi}from"./index-
|
|
1
|
+
import{P as Bn,q as Fn,g as Pt,a9 as Wn,J as ae,F as B,aQ as Zt,dP as Hn,dQ as Gn,cE as Yn,aD as Jn,dR as nn,dS as Zn,V as i,ac as Xn,bB as Qn,dT as Kn,dU as ea,T as oi,dV as zi,aR as ta,y as N,aP as F,dW as an,dX as Te,dY as Oe,dZ as Pe,d_ as Ke,d$ as et,e0 as St,e1 as kt,e2 as tt,e3 as gt,e4 as zt,e5 as At,e6 as Xt,e7 as ee,e8 as ia,e9 as ei,ea as ue,eb as on,ec as pe,ed as sn,aJ as na,ee as Dt,ef as Ai,eg as aa,r as oa,co as sa,o as a,cc as la,eh as ra,u as O,G as wi,p as le,aq as Di,ba as si,e as ca,ei as da,cj as ua,ch as li,cI as st,ej as pa,ek as Ht,aU as ln,cY as ma,el as ha,cf as ga,cg as fa,aN as Le,al as fe,a$ as ya,em as ba,en as rn,eo as Qt,ep as Kt,eq as mi,de as xa,b3 as wa,cs as va,er as Ti,a8 as cn,es as ti,et as ii,eu as dn,cN as un,bS as Oi,ev as hi,dj as gi,ew as Ca,bs as Ia,ex as Ri,ey as $a,ez as Da,ay as Ta,eA as Oa,eB as La,a as pn,eC as mn,bJ as ja,eD as Ei,eE as hn,eF as gn,eG as fn,bH as lt,at as Sa,as as ka,ds as za,b as yn,eH as Aa,bF as Ra,x as Ea,am as Va,l as Pa,aW as vi}from"./index-D4DdpT1f.js";import{a as v,P as Tt}from"./sentry-Dlcq8VjX.js";import{n as l}from"./mui-CooLgaJO.js";import{Fu as _a,uu as Na,bE as Et,bD as Vt,bF as qa,c3 as Ua,l8 as Ma,bh as Ba}from"./zeni-epic-state-pmiItBju.js";import{x as Vi}from"./LabeledControlledCheckBoxField-DqtbWhaH-Ct8s61sn.js";import{R as Fa}from"./TrendWithTransactions-C5Zfe4RN-BXIMOZup.js";import{u as Wa,c as Ha,d as Ga,m as Ya}from"./uploadAttachment-n14_2p7o-3Yaegacg.js";import{o as Ja}from"./radio-default-CiSgisfh-aKay5Aup.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./TrendChart-DVp0Led--C8WSZxuE.js";import"./chartTypes-BDwrrz9S-CO6_cPbC.js";import"./toCOABalancesWithID-C8uaUoxX-n7EZ1iwJ.js";import"./toChartData-CTG-a8va-B2RC0Eyi.js";import"./NoDataChart--T7v827k-zXeqjU35.js";import"./InsightsSection-CUk29Ace-BKDJK0uo.js";import"./NavigationDots-Ttv3r4BR-v2ws1TaA.js";import"./TransactionList-BuFcrTEd-Pd5NkKsR.js";import"./BoxItem-B0bHU_KA-CwJAi_XO.js";import"./commonDimensions-Pu55v5lV-fIykEmeD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c5214673-ec6c-4abd-9fcb-78497ec06b2d",e._sentryDebugIdIdentifier="sentry-dbid-c5214673-ec6c-4abd-9fcb-78497ec06b2d")}catch{}})();const Za={headerMarginTop:new N(O[7],O[8])},Xa=l(fe)`
|
|
2
2
|
color: ${e=>e.theme.colors.hero};
|
|
3
3
|
`,Qa=l(fe)`
|
|
4
4
|
margin-right: ${a.sp1};
|
package/dist/assets/{TransactionList-BYXPQXN1-C2WkgSOj.js → TransactionList-BuFcrTEd-Pd5NkKsR.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cc as ct,J as R,V as e,b3 as mt,aP as x,de as ft,df as xt,d9 as ut,dg as ht,o,p as A,cs as pt,F as y,y as J,T as gt,al as v,u as g,ai as bt,dh as K,d0 as X,aN as G,am as wt}from"./index-
|
|
1
|
+
import{cc as ct,J as R,V as e,b3 as mt,aP as x,de as ft,df as xt,d9 as ut,dg as ht,o,p as A,cs as pt,F as y,y as J,T as gt,al as v,u as g,ai as bt,dh as K,d0 as X,aN as G,am as wt}from"./index-D4DdpT1f.js";import{a as p,P as $t}from"./sentry-Dlcq8VjX.js";import{n}from"./mui-CooLgaJO.js";import{F4 as Q,F5 as V,F6 as U,F7 as L,bh as yt,Fj as tt,bE as et}from"./zeni-epic-state-pmiItBju.js";import{g as it}from"./BoxItem-B0bHU_KA-CwJAi_XO.js";import{o as B}from"./commonDimensions-Pu55v5lV-fIykEmeD.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="812fd38a-58a4-41d9-85a5-4fd5198d3047",t._sentryDebugIdIdentifier="sentry-dbid-812fd38a-58a4-41d9-85a5-4fd5198d3047")}catch{}})();const S=t=>t?24:125,vt={containerPaddingBottom:new J(g[9],g[8])},q=n.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex: 1 1 auto;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as a,J as R,aw as W,aE as ie,aY as ne,V as t,b3 as re,aP as w,u as n,b as ae,p as B,o,a as j,d as Q,F as $,bq as se,br as le,ai as de,aq as ce,aN as me,bs as pe,ao as he,T as ue,G as Z,bt as X,r as G,aT as ee}from"./index-
|
|
1
|
+
import{y as a,J as R,aw as W,aE as ie,aY as ne,V as t,b3 as re,aP as w,u as n,b as ae,p as B,o,a as j,d as Q,F as $,bq as se,br as le,ai as de,aq as ce,aN as me,bs as pe,ao as he,T as ue,G as Z,bt as X,r as G,aT as ee}from"./index-D4DdpT1f.js";import{a as U,P as z}from"./sentry-Dlcq8VjX.js";import{n as i,c as ge}from"./mui-CooLgaJO.js";import{EM as xe,bg as we,bC as N}from"./zeni-epic-state-pmiItBju.js";import{G as $e,c as be}from"./AccountsPromoCardStack-B5Mri6qW-C55uOtTG.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./SummaryCard-CSkw4qa9-i9KCkyV3.js";import"./ReloadCard-0KQtayY--Cg4JfrF6.js";import"./NavigationArrow-C1HvrCIx-DFOmLMLf.js";import"./NavigationDots-Ttv3r4BR-v2ws1TaA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="a2e0b957-d02e-4a5d-95cb-98f424a4179c",e._sentryDebugIdIdentifier="sentry-dbid-a2e0b957-d02e-4a5d-95cb-98f424a4179c")}catch{}})();const ye={textContainer:new j("extraSmallRegular","smallRegular")},fe=i.div`
|
|
2
2
|
color: ${e=>e.theme.colors.hero};
|
|
3
3
|
cursor: default;
|
|
4
4
|
`,ve=i.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as _,bz as z,bA as R,V as o,bB as M,aP as p,T as V,o as n,al as q}from"./index-
|
|
1
|
+
import{g as _,bz as z,bA as R,V as o,bB as M,aP as p,T as V,o as n,al as q}from"./index-D4DdpT1f.js";import{a as r,n as G}from"./sentry-Dlcq8VjX.js";import{n as l}from"./mui-CooLgaJO.js";import{f as J}from"./TransactionList-BuFcrTEd-Pd5NkKsR.js";import{t as X}from"./page-detail-CWX5S47F-D0SYshoo.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./zeni-epic-state-pmiItBju.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./BoxItem-B0bHU_KA-CwJAi_XO.js";import"./commonDimensions-Pu55v5lV-fIykEmeD.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new t.Error().stack;c&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[c]="cc60d449-14cb-4d97-9395-3e2fbf4f32a0",t._sentryDebugIdIdentifier="sentry-dbid-cc60d449-14cb-4d97-9395-3e2fbf4f32a0")}catch{}})();const Z=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
height: 100vh;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as A,F as k,V as o,T as q,aP as L,aR as W,o as a,y as g,x as _,a as J,d2 as U,a9 as G,cE as K,ac as Q,u as r,hd as F,he as B,hf as M,g as X,cJ as Y,gL as z,hg as Z,b7 as ee,hk as oe,hl as te}from"./index-
|
|
1
|
+
import{J as A,F as k,V as o,T as q,aP as L,aR as W,o as a,y as g,x as _,a as J,d2 as U,a9 as G,cE as K,ac as Q,u as r,hd as F,he as B,hf as M,g as X,cJ as Y,gL as z,hg as Z,b7 as ee,hk as oe,hl as te}from"./index-D4DdpT1f.js";import{a as I}from"./sentry-Dlcq8VjX.js";import{n as c}from"./mui-CooLgaJO.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./zeni-epic-state-pmiItBju.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7687ba3b-0fd8-484f-925b-94cb894cd166",e._sentryDebugIdIdentifier="sentry-dbid-7687ba3b-0fd8-484f-925b-94cb894cd166")}catch{}})();const O=(e,n)=>`${e}.${n}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=k.getLocalizedStrings().transactionDetail.vendorDetails,d=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:n,selectedClassId:p,selectedOwnerId:t,selectedVendorName:f,allAccounts:h,allClasses:C,allOwners:S,sectionId:v,isDisabled:u,accountsHierarchyList:m,classHierarchyList:x})=>{const i=A(),b=X(),$=N.labelWidth.value(i),j=N.controlWidth.value(i),V=s=>h.filter(D=>D.accountId===s)[0]?.coaId??"",l=s=>C.filter(D=>D.classId===s)[0]?.accountingClassNumber??"",y=s=>{const D=h.find(R=>R.accountId===s)?.accountName;return[oe,te].includes(D??"")};return o.jsxs(se,{"data-testid":L("vendor-details-section",v),children:[o.jsx(re,{children:d.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(Y,{label:{label:d.vendorDetails.vendorName,width:$},text:{type:"text",name:O(v,"vendorName"),placeholder:d.placeholders.vendor,defaultValue:f,autoComplete:"off",options:{required:!0}},isSaveError:n,showAdditionalInfoLabel:!1,additionalInfoLabel:d.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:d.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:O(v,"vendorCategory"),placeholder:d.placeholders.category,valueToInfo:s=>V(s),defaultValue:{selectedOption:e,allOptions:B(m)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${b.colors.grey3}`},isDisabled:u,disableCurrentOption:y,zIndexOnFocus:!0,additionalLabelInfo:d.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:d.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:O(v,"vendorClass"),placeholder:d.placeholders.class,valueToInfo:s=>l(s),defaultValue:{selectedOption:p,allOptions:F(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:d.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${b.colors.grey3}`},isDisabled:u}),S!=null?o.jsx(Z,{label:{label:d.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:O(v,"vendorOwner"),placeholder:d.placeholders.owner,defaultValue:{allOptions:M(S),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},se=c.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
padding-top: ${a.sp3};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as t,J as ue,aP as A,ht as lt,aN as J,r as ve,hC as ct,T as Ye,aR as $e,o as a,F as R,y as c,x as Ne,f as dt,b9 as ut,aq as ft,M as be,ai as De,al as fe,aQ as ce,fy as pt,a9 as Xe,cE as mt,aY as ht,aO as gt,p as U,ac as qe,fC as ke,fD as Ae,ga as wt,bS as ye,g4 as xt,hD as $t,u as o,fm as bt,ch as Je,b$ as Dt,e_ as yt,bJ as Tt,am as Ze,fP as Ct,ds as St,c1 as Ue,gW as vt,gX as kt}from"./index-WEj6FS32.js";import{a as u}from"./sentry-B0WgNUxa.js";import{n}from"./mui-BTtN6lbG.js";import{bL as At}from"./zeni-epic-state-DnAAAEmj.js";import{v as Pt}from"./ZeniTransferAmountSlider-B424bcSV-CHepSJQx.js";import{r as Lt}from"./AccountInfoPageContent-BsSGhNw9-Bhg40nPQ.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./downloadPdf-Bf11NXjY-DUwuSlsF.js";import"./commonDimensions-6BcP8EhU-CPpjZ-C4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="ac04b321-71a1-47c8-8731-65e24c36e616",e._sentryDebugIdIdentifier="sentry-dbid-ac04b321-71a1-47c8-8731-65e24c36e616")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=R.getLocalizedStrings(),Ge="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",He="transferDetailPage",ge=(e,r)=>`${e}.${r}`,Ke=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:G,onBackClick:I,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:H,onReviewClick:K}){const i=ue(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,V]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),Q=r.transferMoneyPartiesFetchState,oe=ce(Q),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),Qe=u.useCallback(s=>{O?.(s),I(),N(!1),z(!1)},[I,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:Qe,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&H?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&Q==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,Te,ee,X,me,pe,P,r,q]);const{isValid:tt}=P.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};G(le)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&mt(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),K())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=ht(gt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(Ft,{children:t.jsxs(It,{children:[t.jsxs(Et,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:U.heroLight}})})]})}):null,t.jsx(Yt,{children:J("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:Ke(He),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ie,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Pe),placeholder:D.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ie,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:D.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(wt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:E},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ge),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:D.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(Jt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:D.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Zt,{windowSize:i,children:[t.jsx(Ht,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Ut,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${J("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:D.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Gt,{windowSize:i}),t.jsx(Kt,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${J("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:D.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Fe,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.hide}),t.jsx(Qt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:D.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Ge]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
|
|
1
|
+
import{V as t,J as ue,aP as A,ht as lt,aN as J,r as ve,hC as ct,T as Ye,aR as $e,o as a,F as R,y as c,x as Ne,f as dt,b9 as ut,aq as ft,M as be,ai as De,al as fe,aQ as ce,fy as pt,a9 as Xe,cE as mt,aY as ht,aO as gt,p as U,ac as qe,fC as ke,fD as Ae,ga as wt,bS as ye,g4 as xt,hD as $t,u as o,fm as bt,ch as Je,b$ as Dt,e_ as yt,bJ as Tt,am as Ze,fP as Ct,ds as St,c1 as Ue,gW as vt,gX as kt}from"./index-D4DdpT1f.js";import{a as u}from"./sentry-Dlcq8VjX.js";import{n}from"./mui-CooLgaJO.js";import{bL as At}from"./zeni-epic-state-pmiItBju.js";import{v as Pt}from"./ZeniTransferAmountSlider-COT3DDGF-CcOgiNdg.js";import{r as Lt}from"./AccountInfoPageContent-CTvsml8u-HiMO1t4f.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./downloadPdf-BF8--IAB-lQpphdcn.js";import"./commonDimensions-Pu55v5lV-fIykEmeD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e1ec7176-a9c1-452c-be2e-d79ab6b8f5d7",e._sentryDebugIdIdentifier="sentry-dbid-e1ec7176-a9c1-452c-be2e-d79ab6b8f5d7")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=R.getLocalizedStrings(),Ge="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",He="transferDetailPage",ge=(e,r)=>`${e}.${r}`,Ke=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:G,onBackClick:I,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:H,onReviewClick:K}){const i=ue(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,V]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),Q=r.transferMoneyPartiesFetchState,oe=ce(Q),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),Qe=u.useCallback(s=>{O?.(s),I(),N(!1),z(!1)},[I,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:Qe,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&H?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&Q==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,Te,ee,X,me,pe,P,r,q]);const{isValid:tt}=P.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};G(le)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&mt(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),K())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=ht(gt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(Ft,{children:t.jsxs(It,{children:[t.jsxs(Et,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:U.heroLight}})})]})}):null,t.jsx(Yt,{children:J("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:Ke(He),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ie,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Pe),placeholder:D.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ie,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:D.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(wt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:E},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ge),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:D.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(Jt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:D.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Zt,{windowSize:i,children:[t.jsx(Ht,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Ut,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${J("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:D.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Gt,{windowSize:i}),t.jsx(Kt,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${J("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:D.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Fe,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.hide}),t.jsx(Qt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:D.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Ge]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
|
|
2
2
|
margin-top: ${a.sp3};
|
|
3
3
|
display: flex;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey5};
|