@zeniai/web-cockpit-ui 1.14.49-qa → 1.14.50-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-Sg7hdGqd-CCXprbhT.js → ACHDetailsPage-Bk-T9zeA-CfJ6MKab.js} +3 -3
- package/dist/assets/{AIPerformancePage-ChnBEIPH-4_euKIvp.js → AIPerformancePage-DlVvPiye--DdUUWgj.js} +33 -33
- package/dist/assets/{AccountInfoPage-BxnQEiJ7-B6EmYPv_.js → AccountInfoPage-4a5_z9Mj-DMFU6f23.js} +4 -4
- package/dist/assets/{AccountInfoPageContent-DNUp3TON-qdMNKklV.js → AccountInfoPageContent-DevYKy6p-CMullRtM.js} +19 -19
- package/dist/assets/{AccountLockedInfoModal-CA152nkz-DzCD-JUi.js → AccountLockedInfoModal-BvtyA_xO-CmYw1Jj0.js} +3 -3
- package/dist/assets/{AccountReconDetailsDrawerPage-C2rkkVPs-CQwYzCjP.js → AccountReconDetailsDrawerPage-BXEQ6cqS-j66Ucrn-.js} +12 -12
- package/dist/assets/{AccountRow-36Vtwpnr-4z2Yans3.js → AccountRow---y_a4hQ-CjUH_owU.js} +11 -11
- package/dist/assets/{AccountsPromoCardStack-C2HYR94b-CpKQoFz3.js → AccountsPromoCardStack-o9Og7QNk-DK3bk-1Y.js} +17 -17
- package/dist/assets/AddAddressForCardDrawer-Blh9zJ9k-Qnts0jiB.js +6 -0
- package/dist/assets/{AddToWalletPage-C_3jcdka-F-DW-oAI.js → AddToWalletPage-F_5GSEK1-DfJbrH2K.js} +19 -19
- package/dist/assets/{AgingReportsPage-BPxROntM-BkwxFBqZ.js → AgingReportsPage-gY6j3hD1-CYYgQtbs.js} +6 -6
- package/dist/assets/{AllUserItems-D4ZSsopG-CbtLJ7dq.js → AllUserItems-DuqNI8Rn-C7-Ck6tc.js} +4 -4
- package/dist/assets/{ApAgingDetailPage-Cg_V8f7G-Dtv7vAxt.js → ApAgingDetailPage-BCIZ807--CCB1bmdU.js} +5 -5
- package/dist/assets/{AppBasePage-6i0Pu1mT-CI0gWqTJ.js → AppBasePage-Cju4WpBd-B7EKJOCZ.js} +7 -7
- package/dist/assets/{AppDrawerContent-B6_iNfLZ-BBNlUFgb.js → AppDrawerContent-CJZlwte8-BLgFIh1I.js} +4 -4
- package/dist/assets/{ApprovalRulesSettingsPage-BnsXfKAE-BddQmAcM.js → ApprovalRulesSettingsPage-DcFFdV1D-DwwBhpx6.js} +3 -3
- package/dist/assets/{ArAgingChart-DSDIg2mS-BzouD7uA.js → ArAgingChart-B_ybJjur-DHM_zS9S.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BYb9qi8c-3T0IpoxH.js → ArAgingDetailPage-CXBgcuJx-BSdM7AD1.js} +4 -4
- package/dist/assets/AttachmentView-D9MocUS9-BtgOsoHb.js +101 -0
- package/dist/assets/{BankAccountSection-CwYIBEbQ-S9Np9Ygv.js → BankAccountSection-CFnXlTaa-wnOEAJae.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-DPIyvB6i-pfBOIjCV.js → BankAccountWarningSection-Dl7DA-Xf-Bk2O3H_M.js} +4 -4
- package/dist/assets/{BankConnectionsSettingsPage-O03gMCgp-DASDTUYQ.js → BankConnectionsSettingsPage-p7NTe5UU-CDYUeY8o.js} +29 -29
- package/dist/assets/{BillDetailPage-D-fa_jc1-BleJmAH0.js → BillDetailPage-Dy7FjtFP-DCGKKisv.js} +6 -6
- package/dist/assets/{BillPayApprovalRuleDetailPage-D_A4wH0g-B-75pSuf.js → BillPayApprovalRuleDetailPage-BkROIItP-FF3IQxfd.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-gdOVuTqR-BszEmrA8.js → BillPayApprovalRulesPage-wnxmErWK-CnIadX77.js} +7 -7
- package/dist/assets/{BillPayPromoPage-SFpIScHQ-FG20wQ1f.js → BillPayPromoPage-B09wLq8f-CG5fEZdp.js} +7 -7
- package/dist/assets/BillPaySetUpPage-bK5uUxWL-CxvMnvOZ.js +42 -0
- package/dist/assets/{BillingSettingsPage-CdaNgKMv-gAn_GvVH.js → BillingSettingsPage-yqdPoo5n-C-yi5L8L.js} +6 -6
- package/dist/assets/{BillsBulkReviewDrawerPage-DPgrXGy0-CQlJtKA-.js → BillsBulkReviewDrawerPage-BPoUzM5h-BT57ZA9A.js} +1 -1
- package/dist/assets/{BoxItem-Bla_vZe9-D4jxptTn.js → BoxItem-BwOmI0eo-Bg_oDJrZ.js} +1 -1
- package/dist/assets/BusinessVerificationPage-DliZ1mtV-DeT5LWZH.js +140 -0
- package/dist/assets/{CardNumberSubText-B-HsVbRQ-BLIziZ0V.js → CardNumberSubText-CAQ8mWuF-vKMkb_aM.js} +1 -1
- package/dist/assets/{CashbackDetailPage-gIJ-1lJF-BO5TRo9Z.js → CashbackDetailPage-B1XEtXzZ-1-2pfDRY.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-Dgyl5IJV-DazPQgg3.js → ChargeCardDetailPage-C35g3tyS-Cr_XhDe3.js} +21 -21
- package/dist/assets/{ChargeCardListPage-CgN69uh_-DKDrh90W.js → ChargeCardListPage-DpJ2ukG9-Chnlo_Ls.js} +9 -9
- package/dist/assets/{ChargeCardListTable-Bq3FUrUG-FyrnND8b.js → ChargeCardListTable-0mvBVaVR-DezuEV69.js} +26 -26
- package/dist/assets/{ChargeCardPromoPage-DqDd3QeF-BbqMx9NQ.js → ChargeCardPromoPage-xcfRobP3-CBiQn6_2.js} +7 -7
- package/dist/assets/{ChargeCardSetupPage-CBP4-JyP-NCDgse98.js → ChargeCardSetupPage-CHK4_mR3-uQ6PE_iN.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-CVJyNhXt-Di4REK7T.js → ChargeCardStatementsPage-B746tyaI-BpHM8ktT.js} +8 -8
- package/dist/assets/{ChargeCardUtils-DaDe1sIq-NwQ1CJ2W.js → ChargeCardUtils-Bel9RKog-BYoByp7T.js} +1 -1
- package/dist/assets/{ChaseOverlay-C1SVk4v1-DW3UeCAS.js → ChaseOverlay-Cni-YJBq-ki7qKNfn.js} +2 -2
- package/dist/assets/CheckDepositDrawerPage-h5dYs8n1-xM7OVVph.js +206 -0
- package/dist/assets/{CollapsableReportTable-QtToztmP-DQt1k1-B.js → CollapsableReportTable-Bm4Knvjp-CyuCgDm7.js} +48 -48
- package/dist/assets/{CompanyOfficerDetailsSection-Ctoe2QDP-CQSKCmrp.js → CompanyOfficerDetailsSection-BFrN2zbs-E0-ko42y.js} +19 -19
- package/dist/assets/CompanyPassportCard-CFfVmwtT-DyrnlDth.js +42 -0
- package/dist/assets/{CompanyPassportPage-Dd53DZFe-BmsuarOf.js → CompanyPassportPage-BwuQEpR6-BzltPqSl.js} +21 -21
- package/dist/assets/{CompleteProfile-DlFmFq5M-ZT3wEZlQ.js → CompleteProfile-DFgQXxaw-eh46GqaL.js} +1 -1
- package/dist/assets/{ConfettiBurst-b3SEoaSY-CEVptNiu.js → ConfettiBurst-CNGVGH7R-OhWdZxEw.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DwvlzEci-DUaCnl0C.js → CreateOrEditVendorPage-BEOugGdV-BkOi2-LS.js} +12 -12
- package/dist/assets/{CreditCardPaymentDrawerPage-y5jJQGS5-BN-YeTDF.js → CreditCardPaymentDrawerPage-DL99-asT-IVw3ZmF0.js} +9 -9
- package/dist/assets/{CreditCardPaymentPlgSection-BbVnrMer-Db7C8egU.js → CreditCardPaymentPlgSection-Bo8bjkSd-Cj2DAE6L.js} +5 -5
- package/dist/assets/{CurrencySelectField-B1rl6vQ0-tIQbPb2V.js → CurrencySelectField-Cy3069QS-B4qJii4j.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-DlFjo3Sv-DlDk6MjE.js → CustomerOnboardingActivationPage-DYHxB1DV-DG10uG78.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DGNxouoJ-cK8xEcln.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BxsQBBs2-1N-A35fF.js → CustomerOnboardingDetailPageSkeleton-C-eQB--l-D3xzBHMg.js} +10 -10
- package/dist/assets/CustomerOnboardingNoStepsPage-CdXpLzmq-BKo9Mc6w.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-Cw66PfQC-pU5lcmch.js → CustomerOnboardingPage-BScJEPx_-eyx5FypG.js} +2 -2
- package/dist/assets/CustomerOnboardingProductSuitePage-D8hA3Lv_-DiFPqcjv.js +202 -0
- package/dist/assets/{Dashboard-I5fepHMP-CXiBwzdI.js → Dashboard-D5_YXdct-EKQOlNbW.js} +1 -1
- package/dist/assets/{DashboardReportPage-GkuxGc3t-BKXCa7xb.js → DashboardReportPage-Gq4XjHm5-CgkxriU9.js} +19 -19
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Ba6mjrpq-CP_63791.js → DashboardSidebarBackgroundAnimation-CfSTodXy-DUwH9YlE.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-8pfQMKs3-DA5Rp_k5.js → DepositAccTransactionItem-CfjfIBsm-DifB7Rhh.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BiTWRxfT-BGViZ9xq.js → DepositAccTransactionListPage-BxtgMsQs-1C9yKKse.js} +8 -8
- package/dist/assets/{DomesticWireDetailsPage-4Dh_YZ8--DtHM1pr6.js → DomesticWireDetailsPage-BdmpuYqv-CI5W3KSh.js} +2 -2
- package/dist/assets/{DownloadOverlay-D6S9Obtr-D2mA2KNN.js → DownloadOverlay-B-TeCIiN-cLZkE7c6.js} +18 -18
- package/dist/assets/{DrawerPage-D13P_uWJ-CsKiwoDS.js → DrawerPage-BayK5Cvt-DenqrNxQ.js} +7 -7
- package/dist/assets/EditPeoplePage-moCKwxdw-kdnDyFe4.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-COg9-yb6-CILN_gSs.js → EditReimbursementDetailPage-DiRxcH2i-CqEhpelp.js} +1 -1
- package/dist/assets/{EntityDetailPage-BbITG8i5-CprGjm72.js → EntityDetailPage-B0_iMMXi-BFK6-vDg.js} +4 -4
- package/dist/assets/{EntitySummarySection-BIawu9Ww-Ceo0UhdT.js → EntitySummarySection-Bzw9paM5-CCulefX0.js} +1 -1
- package/dist/assets/ExpenseAutomationOverviewPage-CN8oHejg-BCXoKv-G.js +222 -0
- package/dist/assets/{ExpenseAutomationPage-BzqJFgyb-Czy39NPG.js → ExpenseAutomationPage-nQw-48Jn-1DFXEYwM.js} +29 -29
- package/dist/assets/{ExpressPayPage-ciCYdxZj-BXc9NDyl.js → ExpressPayPage-BbxW-YuU-D_hIdCft.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-Bbbcp0Yy-Czyj_mEC.js → FeaturePreviewPage-CMFiodSD-BBGWeje6.js} +2 -2
- package/dist/assets/{FollowStepsSection-B6uVl1dT-B1dWDhOp.js → FollowStepsSection-s4utHS95--Y07h10n.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BOTtaikB-agDlR_ZV.js → GlobalReviewListPage-Ci8wGpO6-BRGgqus8.js} +5 -5
- package/dist/assets/HelpButton-CdHOhYwZ-vfgKqvvf.js +28 -0
- package/dist/assets/{InformationCardStack-Bm0Oh5VL-DjrgDLen.js → InformationCardStack-C3Q674Be-BHdplWUC.js} +2 -2
- package/dist/assets/InsightsCardStack-CA-O6aZn-DaypKy1-.js +79 -0
- package/dist/assets/{InsightsSection-wZpjHdxh-DXdKVgAu.js → InsightsSection-MD_7iYyd-CoTr4evA.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-Cl-Y86Nj-D4NX5YT1.js → IntegrationsSettingsPage-Gpq_ujC4-Cz49FC1Q.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-DkEpnlVz-DWJE6x6p.js → InternationalWireSwiftDetailsPage-DXQCRbA4-jvd32UXh.js} +18 -18
- package/dist/assets/{InternationalWireVerificationPage-Ra78kWjZ-C7XfpdHS.js → InternationalWireVerificationPage-Z9MeS_FE-CvHI3GW5.js} +13 -13
- package/dist/assets/{InviteFormPage-Be3Tqvh8-boDpca8x.js → InviteFormPage-CRBxUW8F-ByLwGMQx.js} +20 -20
- package/dist/assets/{InvitePageListView-BuooPBpK-B-O-E11Q.js → InvitePageListView-BLcD6yhf-BHIBTtPc.js} +14 -14
- package/dist/assets/InvitePeoplePage-B6vbKnl8-3Fr2JjFu.js +12 -0
- package/dist/assets/InvoiceUploadSection-C84g6m-u-CTBUGTYr.js +140 -0
- package/dist/assets/{IssueChargeCardPage-C_4bD6HQ-B4neH-6d.js → IssueChargeCardPage-CtwG1FQW-CIw40zi7.js} +20 -20
- package/dist/assets/{LabeledAddressValue-Ctk46FKq-KR-uiT2u.js → LabeledAddressValue-BbmveEDp-misv-kNS.js} +1 -1
- package/dist/assets/LabeledAddressValueField-BplBue9M-DBaZ2tp6.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-CATsgVfE-C27gMaQw.js +16 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-Bjh5B-q0-Co5wnrJk.js → LabeledCreatableSingleSelectField-B-m-gINB-DKWDwbZB.js} +2 -2
- package/dist/assets/LabeledDocumentField-pmF98M72-DhaPqfnm.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-BX06HLc2-CSTX9KoC.js → LabeledDropDownFormattedTextField-DQRvDrH1-nhXIGcQS.js} +1 -1
- package/dist/assets/{LabeledText-DZVRFAkG-rHxfEtQQ.js → LabeledText-Dr7b3HNT-JqfYF6TM.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-QoYZvvyE-DgWhyFpB.js → LabeledUserSingleSelectWithSubtitlesField-DucxxQKW-DpGIkkDj.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-D9I9Lxk2-CEybF1_R.js → LabeledZeniRolesDropDownField-Fg_p41gp-BLJgU8CM.js} +17 -17
- package/dist/assets/{LinkJETransactionPage-C8K00-1a-CRsvQ_9P.js → LinkJETransactionPage-CbtDoohS-BYYpt-Eb.js} +4 -4
- package/dist/assets/LockCardPage-CfupCyYS-DqBQdk1I.js +558 -0
- package/dist/assets/{LowBalancePopup-CQQrhufv-ooiA9ZXC.js → LowBalancePopup-DPfkvSKp-CZ231Z71.js} +6 -6
- package/dist/assets/{MagicLinkACHDetailsPage-BUGK2W6m-iQ0u98AT.js → MagicLinkACHDetailsPage-TJ1c4k1c-e1ecoiPU.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CdGw-8SL-BZNxp9-P.js → MagicLinkDomesticWireDetailsPage-Dp4F_O6C-BLuK26i4.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-ioBaDPw3-BRjF2y7B.js → MagicLinkInternationalWireDetailsPage-B5TMFBsw-DE5eebOC.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BBnZ5N8r-3AvY4DIN.js → MagicLinkSuccessPage-XmGUk2UP-t-ML7fFm.js} +3 -3
- package/dist/assets/{MagicLinkTitleSection-C0nl5UrB-fbBcM0M6.js → MagicLinkTitleSection-B3CVACcv-CraOpOkK.js} +3 -3
- package/dist/assets/{MailingDetailsSection-DeaanyVd-has6jQC4.js → MailingDetailsSection-CFBmvYV_-DKWh8ntV.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-CGGit3Ny-CiZ-1m4B.js → MeetingCalenderPopup-Dd1Z-rK3-BN7CJUqh.js} +5 -5
- package/dist/assets/{Menu-BWGaQpko-C-bIfACK.js → Menu-AlNg4aZb-ezBRMKxQ.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Bg_ULoVa-BjIIqVWR.js → MyBankConnectionsSettingsPage-De_mXouS-CFWPRCdV.js} +9 -9
- package/dist/assets/{MyPendingActivationChargeCardListPage-DulXydFx-CNXPW9Gb.js → MyPendingActivationChargeCardListPage-CdDF0PA3-CqrUarF6.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-C2p1O3ct-BgyD_hf0.js → MyProfileSettingsPage-BE6GsTMH-CiY2hNHx.js} +6 -6
- package/dist/assets/{NavBarWithPicker-BCLF3DOO-CA9gmzsQ.js → NavBarWithPicker-CTxQ7r97-Dg-pVfaM.js} +4 -4
- package/dist/assets/{NavigationArrow-BPrl00va-D8RNnAeo.js → NavigationArrow-DCZBdY6w-DXzWpT0y.js} +1 -1
- package/dist/assets/{NavigationDots-O0W_nmju-D_O1-ums.js → NavigationDots-D6hsvkMX-Dc9TKWSO.js} +3 -3
- package/dist/assets/{NewGlobalMerchantPage-D6e-akD5-Bzs9Ucjn.js → NewGlobalMerchantPage-D5Mo9EMy-C_x_UB26.js} +7 -7
- package/dist/assets/{NoDataChart-C9yfpsin-CDRDTUOe.js → NoDataChart-CI5rKAJf-IpywfvaI.js} +1 -1
- package/dist/assets/{NoDataTable-DKv0uhi4-Cpc7fkkE.js → NoDataTable-C4YVpnKy-bA2EH_fQ.js} +1 -1
- package/dist/assets/{NotFoundPage-B5ou4w73-NuKoBPie.js → NotFoundPage-Dx56yYo3-CJc22lOw.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-BmrtRoZK-DZ_ZG3D7.js → NotificationSettingsPage-hOwPscnS-CcQKVe46.js} +8 -8
- package/dist/assets/{NotificationsListConfig-DQ4Ho61v-BnotEG6V.js → NotificationsListConfig-DV_yEagM-CKLpxpSM.js} +1 -1
- package/dist/assets/{NotificationsPage-UraNN_iD-BUGQxEcG.js → NotificationsPage-B83do0my-DGcJO7Z-.js} +25 -25
- package/dist/assets/{OpExByVendorPage-BRPHj5T9-DYtyW38v.js → OpExByVendorPage-WMTGx5ZH-CmZADN9R.js} +5 -5
- package/dist/assets/{OverlayContainerPage-B8Rk53Fe-CfTKp3Gf.js → OverlayContainerPage-CZaWUQTs-taUnIcxu.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BMjOYb2a-Dcnt7HVK.js → PandLWithForecastPage-DyROxN6C-DH_Ynpil.js} +9 -9
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-B38HgGEM-DgE8Vczk.js → PaymentAccountSetupBillingAddressSection-CHwhW69s-PBAsz7VT.js} +7 -7
- package/dist/assets/{PeoplePage-BpMkRqCs-CsT9OFKk.js → PeoplePage-DzRLyM45-C2knIeVL.js} +11 -11
- package/dist/assets/{PortfolioAllocationFormPage-tnv4t4QU-CrHZ8aTl.js → PortfolioAllocationFormPage-CIvcJ9hx-C0L8itY1.js} +9 -9
- package/dist/assets/{PortfolioDetails-BQCQctOT-BcjcqURs.js → PortfolioDetails-8UvaROaS-BV0kfCx8.js} +15 -15
- package/dist/assets/{ProductsCarousel-BUJiJFiX-BzDzGkeP.js → ProductsCarousel-Di0lW14P-gv6t1pzJ.js} +3 -3
- package/dist/assets/{PromoBaseCards-DwBIZ04X-BjLiNb-B.js → PromoBaseCards-zfJOT86M-Cxis92cB.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-MjldLygA-F5XVDM0C.js → QBOConnectionDialog-DYCNzDCW-XbK2K7lq.js} +4 -4
- package/dist/assets/{QBOSetupSection-BknE7gT4-DY5jHtnb.js → QBOSetupSection-DtzlFUKs-CMurUb08.js} +6 -6
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DoWiv_tN-DEovISqR.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-C0Plqj93-CfcH1Xln.js → ReimbursementApprovalRulesPage-Drav6sw6-CwgLZUAr.js} +40 -40
- package/dist/assets/ReimbursementDetailPage-ByCpOGLu-Dsc_sGAc.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-X_lNy9W2-C1pHC8eu.js → ReimbursementPromoPage-DOhnXgWW-DuNdw2WY.js} +8 -8
- package/dist/assets/{ReimbursementSetUpPage-DJrOp98g-BrQav5BP.js → ReimbursementSetUpPage-B6m_3OjH-BpWl6ujY.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BZL9RVfR-CP3PDh7c.js → ReimbursementsBulkReviewDrawerPage-DSbjVLzo-CVRSkvAX.js} +1 -1
- package/dist/assets/{ReloadCard-aqfmXbU5-CNPn4sKt.js → ReloadCard-C7TwZcxr-vlQuHsih.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-D93qno__-2IAEqt0G.js → ReportTableViewSelector-Dw5N3kLR-QNx8XxoO.js} +7 -7
- package/dist/assets/{ReportsPage-B0G-7pwv-CrA7-rtj.js → ReportsPage-Cn38qn0l-B-nkuuwa.js} +9 -9
- package/dist/assets/{RevenueChart-BRlahWs9-BWAL9tc3.js → RevenueChart-Cl6AG_A1-Da4QIV8W.js} +16 -16
- package/dist/assets/ReviewDetailsPage-DOU42eYb-DP8hDUqG.js +290 -0
- package/dist/assets/{ReviewOverlay-yCaY1z8K-DkuN1BhY.js → ReviewOverlay-Cekl52Tp-C4ta_oQT.js} +13 -13
- package/dist/assets/{RoleWithToolTip-C--9WRHn-02oWnK_S.js → RoleWithToolTip-Cxn0Q3kG-C5ZkEEHf.js} +4 -4
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-hn74AoeS-NWP9KPHn.js → ScheduleDetailsFixedAssetsPage-By4ikZQn-BUboWldf.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-DxdxAx1S-B1IjQUUT.js → ScheduleDetailsPage-CMCqsjrb-DIQmIy8n.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-Dq0ZRi2H-8XOSgJiv.js → ScheduleSequenceTable-DNVQ2kVn-kr2CXE0a.js} +49 -49
- package/dist/assets/{ScreenRoutes-DDAOQ4Jo.js → ScreenRoutes-CngnFJ28.js} +1 -1
- package/dist/assets/{SetUpAccountSection-NP9u54_o-Db7whHUF.js → SetUpAccountSection-nZ68xEMF-CKqnZuo_.js} +8 -8
- package/dist/assets/{SetUpDefaultSection-BdVOXSh8-M71dwMGe.js → SetUpDefaultSection-e5I_whKg-CWXMi4yS.js} +2 -2
- package/dist/assets/SignIn-e-7z9G0X-C1YFpsfM.js +448 -0
- package/dist/assets/{SignInScreen-BzmXpPCl.js → SignInScreen-C77r6V5a.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CfzCjazp-DIvePMuJ.js → SpendManagementListViewPage-BPfU_Lec-BnogwbnW.js} +6 -6
- package/dist/assets/{SpendManagementPerTabPage-CBOlK1hg-CNGRPHtG.js → SpendManagementPerTabPage-CIVfUAF0-7NlzZC3p.js} +48 -48
- package/dist/assets/{SpendManagementSection-DFVWVBv8-BaXurz43.js → SpendManagementSection-DilGVAEg-UyhbLf0x.js} +5 -5
- package/dist/assets/{SpendMgmtSetupAccountSection-ZPHoUnnr-BJcUWi60.js → SpendMgmtSetupAccountSection-BW8Ip5wi-CkkTNUfg.js} +4 -4
- package/dist/assets/{StatementItem-CwkYfX3v-BfxIXxV9.js → StatementItem-li8rxfjF-DE4xpTDg.js} +2 -2
- package/dist/assets/{StatementsPage-DpjcrDLZ-BOUbVppT.js → StatementsPage-D0VgSNCy-Bi9vK3HK.js} +1 -1
- package/dist/assets/{StatusSwitcher-6n_dRY-n-CInUBfU5.js → StatusSwitcher-Dhw4Hsko-VYfBZyYc.js} +2 -2
- package/dist/assets/{SubTabSwitcher-DEXr9JG8-BesAFLAS.js → SubTabSwitcher-CaDODjQq-zPof6WQa.js} +1 -1
- package/dist/assets/{SummaryCard-DY8o3K8p-Br_aBvet.js → SummaryCard-BZp6ZbhG-D2hcdAY2.js} +1 -1
- package/dist/assets/{TaskManagementPage-V-99_2Xz-DDUfSx7p.js → TaskManagementPage-CdzxcwSR-FTY6PAR3.js} +14 -14
- package/dist/assets/{TimeRangeSwitcher-5vzTnmwD-CRsZg2b0.js → TimeRangeSwitcher-BsecxqSf-68LRPk1P.js} +6 -6
- package/dist/assets/{TimeframeSwitcher-B1ZBKWlB-7HKYiomL.js → TimeframeSwitcher-CXQS6_Dj-pJvRjYVF.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-C8w7NoSs-DeUtdJdm.js → TimeframeSwitcherWithToggle-xUcT4SAn-Dxw3KxOM.js} +1 -1
- package/dist/assets/{TopExCard-CflRvGFb-BSDi9hbk.js → TopExCard-DpBmbBOH-rqB_17zU.js} +5 -5
- package/dist/assets/{TopExDetailPage-BNouRPM_-V8w0Nl4l.js → TopExDetailPage-CXYcu4vC-BudfE4e2.js} +21 -21
- package/dist/assets/{TransactionDetailPage-uJRfI4fh-YYHpyB0Q.js → TransactionDetailPage-C-oGYPM2-XIgrFLJc.js} +23 -23
- package/dist/assets/{TransactionList-C--m4NRu-I84SwAT3.js → TransactionList-d0Qe-D7V-BamSxQ9h.js} +9 -9
- package/dist/assets/{TransactionListBig-Cbf9p6a1-BQi6pxNr.js → TransactionListBig-By3GVBgG-Jvz7Xg_z.js} +11 -11
- package/dist/assets/{TransactionListPage-BXQ4Ig8E-1eaOmgJN.js → TransactionListPage-ChIGfg3A-ZqEGHvAv.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-CKdVogwj-BU8bZBJz.js → TransactionVendorDetailPage-D3stMRFF-C_IPHvl6.js} +3 -3
- package/dist/assets/{TransferDrawerPage-BS3lnMMA-BhGqf_F6.js → TransferDrawerPage-QVYSxd-3-BFQ5htQm.js} +22 -22
- package/dist/assets/{TreasuryOverviewPage-U1p6PrnG-CTfDqCgy.js → TreasuryOverviewPage-CumKNGbQ-CAGR3hz2.js} +12 -12
- package/dist/assets/{TreasuryPromoPage-C2wmo0Ex-CAsi6MAz.js → TreasuryPromoPage-H2Zbw_Yg-DMBJJl3b.js} +8 -8
- package/dist/assets/{TreasurySetupPage-CMl-qGhi-DDyv6zPQ.js → TreasurySetupPage-BtUIYjn_-BvLlmakc.js} +4 -4
- package/dist/assets/{TreasuryStatementsPage-BdmLrhA5-Cwzb6Y-J.js → TreasuryStatementsPage-B04Ze6pO-DBs8NMkW.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-Q7prcczk-BMJV6RV_.js → TreasuryTaxLetterPage-D95U9592-A4FKzQli.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-CwvijEQN-CyNc0EBz.js → TreasuryTransferOrReviewPage-BhHf8lnF-DBq27s-a.js} +91 -91
- package/dist/assets/{TrendChart-SEWDcga_-b1UZHoM_.js → TrendChart-BkdPYoj4-D9rpAM75.js} +4 -4
- package/dist/assets/{TrendWithTransactions-CgSaPEFh-CJCmbHDv.js → TrendWithTransactions-CWgoVTcb-CGbGhBS1.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-7LqO7hHL-Qf22hqtP.js → UncategorizedAccountsMappingPage-LdRZIYp5-BtaeEGaz.js} +10 -10
- package/dist/assets/{UnitIntegrationPage--jgHD8q1-DGXvKzdF.js → UnitIntegrationPage-Ms9BFSjK-PPYprz9i.js} +4 -4
- package/dist/assets/UploadAdditionalDocumentOverlay-D6x4OGXl-CxKK3Ose.js +38 -0
- package/dist/assets/{Vendor2FAPopup-B0fwm9Q3-BYhSuvCf.js → Vendor2FAPopup-UmgHYXvP-pOrgh_fD.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BzgsncOJ-DOkcQ5fM.js → VendorACHDetailsPage-B3mdoPp8-DRr-74cL.js} +1 -1
- package/dist/assets/{VendorDetailPage-CA3LTIGq-jf7ffnJX.js → VendorDetailPage-Cj6U1nII-BSRlPQ6y.js} +12 -12
- package/dist/assets/{VendorDomesticWireDetailsPage-Ch42jvVt-CyANzPJP.js → VendorDomesticWireDetailsPage-BrZCPlAd-BL-hjFrP.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-QjRWxn7V-BJSMNVS0.js → VendorFiling1099EditablePage-TUixssYI-v6dW0vMN.js} +12 -12
- package/dist/assets/{VendorFirstReviewPage-C-ONdLcA-Bipz9xJO.js → VendorFirstReviewPage-BlUNcGLE-B0NOpsas.js} +44 -44
- package/dist/assets/{VendorInternationalWireDetailsPage-qDx2aiDq-CLtnsjyf.js → VendorInternationalWireDetailsPage-DhHWsAne-VClJg3R1.js} +10 -10
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DICOFwMp-BJ2iH1IS.js → VendorInternationalWireSwiftDetailsPage-CIvevemJ-Cnw2il7s.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D0f3TRGG-DGo_EPvw.js → VendorsAccountsSection-viRwhErR-BEJjt5C_.js} +4 -4
- package/dist/assets/{VerifyDevice-BMtMcC41-C2Aep0vv.js → VerifyDevice-l7opea4l-BtT1vRFj.js} +2 -2
- package/dist/assets/{VideoPlayer-DKMO88LY-CihcSZAF.js → VideoPlayer-BBVi4SOz-9SgJ3yaM.js} +1 -1
- package/dist/assets/{VideoPopup-2z3T5Lnh-CHZgVcWy.js → VideoPopup-CmXRuhQp-5r314mYD.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-yRdYuhLZ-Bq-OqNLw.js → WarningsDrawerPage-Ckg9AVsj-B9emohJx.js} +2 -2
- package/dist/assets/{ZeniAccountDetailPage-ISiEkizf-BZ56FvfW.js → ZeniAccountDetailPage-B-jNA-tI-ms245E2y.js} +25 -25
- package/dist/assets/{ZeniAccountListViewPage-BTrvu_w1-Mm1U5sCA.js → ZeniAccountListViewPage-oBGTDIBN-C9aSAN9Z.js} +8 -8
- package/dist/assets/ZeniAccountNavBarPieces-JScxmkmi-BP103W6l.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-Dac1THyO-DBLjXw3q.js → ZeniAccountPromoPage-BHzfVbtI-P2leDJcs.js} +20 -20
- package/dist/assets/{ZeniAccountSetupPage-ZSfjnq4--2G4QtNy6.js → ZeniAccountSetupPage-DD_QA8h8-DpmP7jf1.js} +4 -4
- package/dist/assets/{ZeniCopyright-C4Hdl7V0-DCl3xitc.js → ZeniCopyright-BPSL51G5-DcEAxBC-.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-CAiR-tiF-D35xHKkQ.js +63 -0
- package/dist/assets/{analyticsHelper-CpeZY9M2.js → analyticsHelper-CnRA1Gcw.js} +1 -1
- package/dist/assets/{analyticsHelper-CaxfROfX-BZwqcE9n.js → analyticsHelper-kwNg2DUZ-Bg-BVsZB.js} +1 -1
- package/dist/assets/{chartTypes-CQLwj1wn-BRADgKQf.js → chartTypes-CCFDB3ft-gWEy54C4.js} +1 -1
- package/dist/assets/{commonDimensions-BqqLiZ_H-X7QteB7-.js → commonDimensions-FafZVRxo-CSxm8Nzu.js} +1 -1
- package/dist/assets/{detailCommon-_wteS7vQ-BlDnvf72.js → detailCommon-Bk08SAcF-CmJo8a2_.js} +7 -7
- package/dist/assets/{downloadPdf-DqURwcIt-cyNLfpwv.js → downloadPdf-Bj4Y4BB4-D1l-PLqG.js} +1 -1
- package/dist/assets/{index-RcMUg6rr.js → index-dX8TSOm6.js} +72 -72
- package/dist/assets/{mapLoadingInProgressToTreeNode-kidLNkmQ-Dbws8prW.js → mapLoadingInProgressToTreeNode-Cx24jJa--D8U4jxjz.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BSUhjNT5-BKwhf6qT.js → mapSectionWithAcOnlyToTreeNode-BRxefLX_-DoZmzx4J.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-m5nGTY8W-CzCeMk6H.js → mapSpacerToTreeNode-VUbus-r3-pBb-m1M8.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-D5QkbXkx-CsbvFuim.js → mapTimeframeBalancesToTreeNode-B6aAv6pB-C6UbW4bf.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CHHGNXiT-Dl3JMEe8.js → mapTimeframeBalancesToTreeNode-CSScIc2H-CNAuSnEW.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-o4l_IoBF-BBotayyZ.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DBDE1nuS-CTldXama.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-bhm-pCR2-CtRyWh7a.js → toCOABalancesWithID-M4gPqViI-CcaXT71y.js} +1 -1
- package/dist/assets/{toChartData-3h9AvMdw-CxwHop5O.js → toChartData-CrsGFSA1-DRCqW50O.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CJ61L8mT-DS0868j3.js → treasuryColorHelper-B8Evc_xJ-C2M6xUma.js} +1 -1
- package/dist/assets/{uploadAttachment-Bf61v1Xo-B7uvvQf2.js → uploadAttachment-PM-_GgYg-CTQQfxMY.js} +3 -3
- package/dist/assets/{uploadReceipts-CPeNTSex-DsNuxnXH.js → uploadReceipts-B3-z3hJ9-DECDgzHp.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddAddressForCardDrawer-BZ0RCcja-nZX6PoRd.js +0 -6
- package/dist/assets/AttachmentView-CdNQ2xWp-BPsXC6R_.js +0 -101
- package/dist/assets/BillPaySetUpPage-mD_IeiJx-DxluR9l0.js +0 -42
- package/dist/assets/BusinessVerificationPage-CXxO69rJ-ZjHWLeJo.js +0 -140
- package/dist/assets/CheckDepositDrawerPage-DSR4fX1u-ndwRTjAi.js +0 -206
- package/dist/assets/CompanyPassportCard-D1Qw3xp1-CzjX_y3L.js +0 -42
- package/dist/assets/CustomerOnboardingContainerPage-gA22hWiI-DHO0Bx78.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-r85EAGP9-BWacMhdz.js +0 -66
- package/dist/assets/CustomerOnboardingProductSuitePage-DjNvBda4-6fpGm6Io.js +0 -202
- package/dist/assets/EditPeoplePage-DF_58Z4U-DfKImWbi.js +0 -55
- package/dist/assets/ExpenseAutomationOverviewPage-DleEJVpj-u_9BpHnf.js +0 -222
- package/dist/assets/HelpButton-CzyBnp0B-B4qln9tA.js +0 -28
- package/dist/assets/InsightsCardStack-DJQ_W9fy-DK1IXhJg.js +0 -79
- package/dist/assets/InvitePeoplePage-BN0ktc82-CX-yWmlh.js +0 -12
- package/dist/assets/InvoiceUploadSection-BQgfwgdt-Bu3SJ_dU.js +0 -140
- package/dist/assets/LabeledAddressValueField-Dg0TLzPn-CRUbVJT9.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-DJSFmpIX-DXOJq1C3.js +0 -16
- package/dist/assets/LabeledDocumentField-BT7CRAVI-Bu18IeBT.js +0 -41
- package/dist/assets/LockCardPage-Cv7cc2yv-Bgylw99f.js +0 -558
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DH75g3pT-CXqiP4jT.js +0 -26
- package/dist/assets/ReimbursementDetailPage-DNaaqXYR-Bh3Xalhl.js +0 -314
- package/dist/assets/ReviewDetailsPage-DaLjRiFW-DJFP67SX.js +0 -290
- package/dist/assets/SignIn-nUeTTVKC-CQFjsNXv.js +0 -329
- package/dist/assets/UploadAdditionalDocumentOverlay-D2Tin1CX-7rKlqc-o.js +0 -38
- package/dist/assets/ZeniAccountNavBarPieces-C3IR1FEp-Jc31zuuu.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-Co5sY7gl-DtKUG0sE.js +0 -63
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Te,cp as
|
|
1
|
+
import{e as Te,cp as Ge,u as qe,M as Q,cx as Je,a5 as se,f4 as Ze,l as W,ab as re,j as t,aV as Ye,C as d,fc as Ke,fd as Qe,fe as Xe,by as et,r as o,a3 as tt,f5 as ye,f6 as ve,o as i,a2 as N,ff as Le,h as pe,g as j,f7 as it,b as ze,fg as nt,f8 as at,w as ot,br as $e,cI as lt,aa as st,fh as rt,m as Ae,ai as _e,fi as ct,cu as dt}from"./index-dX8TSOm6.js";import{b as m,n}from"./vendor-rkTZJa59.js";import{r as ut}from"./mui-C42whWwM.js";import{b as pt}from"./ChargeCardUtils-Bel9RKog-BYoByp7T.js";import{Z as ht}from"./CreditCardPaymentPlgSection-Bo8bjkSd-Cj2DAE6L.js";import{M as gt}from"./ChaseOverlay-Cni-YJBq-ki7qKNfn.js";import{J as ft}from"./SetUpDefaultSection-e5I_whKg-CWXMi4yS.js";const X={sectionWidth:new d(343,580,726),rowGap:new d(o[2],o[3]),footerPaddingLeftRight:new d(o[3],o[4])},mt={title:new ze("standardMedium","largeMedium")};function xt({plaidConnectionDetails:e,header:p,isAccountsEnabled:v=!0,analytics:x,pageName:b,accountsPromoConfig:$,style:_,onConnectClick:B,onSignUpClick:I}){const u=Te(),{setUp:r}=Q.getLocalizedStrings().commonSetUp,f=e.link_account,P=f.fetchStatus.fetchState==="In-Progress"||f.updateStatus.fetchState==="In-Progress";return t.jsxs(St,{windowSize:u,style:_,"data-testid":N("default-account-section",b),children:[t.jsx(wt,{children:t.jsx(bt,{windowSize:u,children:p})}),t.jsxs(yt,{windowSize:u,width:_?.width,children:[t.jsx(Le,{heading:r.accountsPlg.heading,buttonText:r.accountsPlg.signUpButtonText,onSignUpClick:I,isAccountsEnabled:v,pageName:b,analytics:x,style:{borderTopLeftRadius:i.sp2,borderTopRightRadius:i.sp2},accountsPromoConfig:$}),t.jsxs($t,{windowSize:u,children:[t.jsxs(kt,{onClick:B,children:[t.jsx(Ct,{isLoading:P,children:r.connectExternalAccount}),P?null:t.jsx(jt,{className:"right-arrow"})]}),P?t.jsx(vt,{children:t.jsx(pe,{size:"ExtraSmall",start:!0,style:{display:"flex"}})}):null]})]})]})}const St=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
row-gap: ${e=>X.rowGap.valuePx(e.windowSize)};
|
|
@@ -52,7 +52,7 @@ import{e as Te,cp as qe,u as Ge,M as Q,cx as Je,a2 as se,f4 as Ze,l as W,a8 as r
|
|
|
52
52
|
height: 12px;
|
|
53
53
|
cursor: pointer;
|
|
54
54
|
color: ${e=>e.theme.colors.hero};
|
|
55
|
-
`,s={labelWidth:new d(120,190,190),sectionWidth:new d(343,580,726),iconContainerMaxWidthHeight:new d(o[6],o[7]),iconPadding:new d(10,12),rowGap:new d(o[2],o[3]),elementsMarginLeftRight:new d(o[3],o[4]),labeledFieldPaddingLeft:new d(o[3],o[0]),labeledFieldPaddingRight:new d(o[3],o[2]),labeledFieldPaddingTop:new d(o[3],o[3]),labeledFieldPaddingBottom:new d(o[3],o[2]),labeleMarginLeft:new d(o[0],o[4]),labeleMarginBottom:new d(o[2],o[0]),infoLabelPaddingRight:new d(o[0],o[3]),infoLabelMarginTop:new d(o[1],o[0]),iconWidthHeight:new d(20,o[4])},Pt={title:new ze("standardSemiBold","largeSemiBold")};function si({primaryFundingAccount:e,allFundingAccounts:p,allBankAccounts:v,plaidConnectionDetails:x,sectionId:b,isDisabled:$,icon:_,sectionTitle:B,style:I,analytics:u,productType:r,referrer:f,accountSelectContainerStyle:P,connectedAccountProvider:te,isCompleted:H=!1,showCompletedIcon:q=!1,showZeniAccountSection:ie=!0,isAccountsEnabled:k,accountsPromoConfig:T,pageName:G,onFetchLinkTokenClick:L,onEstablishConnectionClick:J,onUpdatePaymentAccountStatus:E,onEstablishConnectionSuccess:U,onSignUpClick:ne,bottomComponent:Ie}){const a=Te(),{trigger:Ee,formState:{errors:Re}}=qe(),D=m.useRef(null),R=Ge(),{setUp:h}=Q.getLocalizedStrings().commonSetUp,Z=Q.getLocalizedStrings().spendManagement.chargeCard.payEarly;let y,he,c,S=!1;e!=null&&e.accType==="paymentAccount"&&(y=e.providerVerificationStatus,he=e?.institutionDetails,c=y?.code,S=e?.isLoginRequired??!1);const ae=ke(b,"account"),Me=Je(Re,ae),[z,Y]=m.useState(void 0),g=x.link_account,A=x.update_account,w=z==="update_account"?A:g,[M,ge]=m.useState(w.linkToken??null),[F,K]=m.useState(!1),[Be,fe]=m.useState(!1),me=se(g.updateStatus.fetchState),oe=se(A.updateStatus.fetchState),Ue=se(A.fetchStatus.fetchState),De=m.useCallback((l,C)=>{u.trackConnectBankSuccess(r,f);const be=C.accounts.find(He=>He.id===e?.providerAccountId)??C.accounts[0];e?.id!=null&&z==="update_account"&&be?.verification_status!=null&&!S?E(be?.verification_status,e.id,"update_account"):J(l,z),Y(void 0),K(!1)},[u,f,r,e?.id,e?.providerAccountId,z,S,E,J]),Fe=m.useCallback((l,C)=>{l!=null&&(u.trackConnectBankFailure(r,l.error_code+" "+l.error_message,f),l.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e?.id!=null&&E("verification_failed",e.id,"update_account"),console.log("Plaid Connection Error",l,C)),Y(void 0),K(!1)},[u,r,f,e?.id,E]),{open:O,ready:xe}=Ze({token:M,onSuccess:De,onExit:Fe});m.useEffect(()=>{(me==="In-Progress"&&g.updateStatus.fetchState==="Completed"||oe==="In-Progress"&&A.updateStatus.fetchState==="Completed")&&(W.isVerifiedPaymentAccountProviderStatusCode(c??"")||(L("link_account"),U()))},[g.updateStatus.fetchState,U,L,e?.providerVerificationStatus?.code,e?.id,me,oe,A.updateStatus.fetchState,c]),m.useEffect(()=>{(W.isVerifiedStatusCode(c??"")||c==="verification_failed")&&!F&&z!=null&&w.linkToken===M&&w.fetchStatus.fetchState==="Completed"&&xe&&K(!0)},[xe,M,w.fetchStatus.fetchState,w.linkToken,c,z,F]),m.useEffect(()=>{w.fetchStatus.fetchState==="Completed"&&w.linkToken!=null&&w.linkToken!==M&&ge(w.linkToken)},[w.fetchStatus.fetchState,w.linkToken,M]),m.useEffect(()=>{F&&O()},[F,O]),m.useEffect(()=>{!e?.zeniAccountId&&!Me&&Ee(ae)},[e?.id]),m.useEffect(()=>{(c==null||c==="verification_failed"||c==="verification_expired"||W.isVerifiedStatusCode(c))&&(W.zeniDate(new Date().toISOString()).isAfter(g.expiration)||g.linkToken==null)&&L("link_account")},[]);const Oe=()=>{u.trackConnectBankGetBalance(r,f),Y("update_account"),L("update_account",e?.id)},Se=`${e?.accountSubType?.name!=null?e?.accountSubType?.name.substring(0,1).toUpperCase().concat(e?.accountSubType?.name.substring(1)):""} ${e?.maskedAccountNumber??""}`.trim(),le=g.fetchStatus.fetchState==="In-Progress"||g.updateStatus.fetchState==="In-Progress",We=p.findIndex(l=>l.id===e?.id),Ve=()=>{fe(!0)},Ne=R.mode==="light"?new re(R.colors.brandColorJadeLight):new re(R.colors.brandColorJadeDark);if(e==null&&p.length===0)return r==="zeni_accounts"?t.jsx(ft,{onClick:()=>{(c==null||c==="verification_failed"||c==="verification_expired")&&(u.trackConnectBank(r,f),O())},title:h.achTitle,subTitle:h.achSubTitle,header:h.paymentSource,isCompleted:H,showCompletedIcon:q,icon:{element:t.jsx(Ye,{width:s.iconWidthHeight.valuePx(a),height:s.iconWidthHeight.valuePx(a)}),color:new re(Ne)},isLoading:le,status:y}):t.jsx(Ce,{windowSize:a,style:I,children:t.jsx(xt,{header:h.paymentSource,plaidConnectionDetails:x,onConnectClick:()=>{(c==null||c==="verification_failed"||c==="verification_expired")&&(u.trackConnectBank(r,f),O())},onSignUpClick:ne,isAccountsEnabled:!1,analytics:u,pageName:G,accountsPromoConfig:T})});const we=he?.zeniInstitutionId.toLowerCase()==="chase";return t.jsxs(Ce,{windowSize:a,style:I,children:[Be===!0?ut.createPortal(t.jsx(gt,{connectedAccountProvider:te,action:{onBackClick:()=>fe(!1)}}),document.body):null,t.jsxs(Wt,{children:[q===!0?t.jsx(Nt,{children:H?t.jsx(Ht,{}):t.jsx(qt,{})}):null,t.jsx(Vt,{windowSize:a,children:B??h.paymentSource})]}),t.jsxs(Ot,{windowSize:a,isDisabled:S,children:[t.jsxs(_t,{windowSize:a,children:[t.jsxs(Mt,{children:[e!=null?t.jsx(Rt,{isDisabled:S,children:Tt(_,a,R.mode==="dark",e,We)}):null,t.jsxs(Kt,{children:[t.jsxs(Gt,{children:[t.jsx(Ke,{ref:D,style:{display:a==="small"?"block":"inherit",width:"-webkit-fill-available"},customStyleConfig:{menu:()=>({width:a==="small"?"100%":"510px"})},controlProperty:{controlHeight:o[4],fontWeight:et.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:a==="small"?240:300},customPlaceholder:{color:R.colors.hero,weight:500},name:ke(b,"fundingAccount"),placeholder:h.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(l,C)=>Xe(p,l,C),valueToSubLabels:(l,C)=>Qe(p,l,C,!1),defaultValue:{selectedOption:e?.id,allOptions:p.map(l=>({label:l.label,value:l.id,isRecommended:l.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,isDisabled:le?"disabled":void 0,showLoadingIcon:le,onClickCreateOption:()=>{u.trackConnectBank(r,f),Y("link_account"),g.linkToken==null||W.zeniDate(new Date().toISOString()).isAfter(g.expiration)?L("link_account"):M!==g.linkToken?ge(g.linkToken):F?O():K(!0)}}),t.jsxs(Ut,{isDisabled:S,children:[Se?t.jsxs(t.Fragment,{children:[t.jsx(ee,{children:Se}),a!=="small"&&(c!=="verification_failed"&&e?.providerVerificationStatus?.code==="pending_manual_verification"||S||we||e?.accountBalance?.available)?t.jsx(Zt,{}):null]}):null,c!=="verification_failed"&&e?.providerVerificationStatus?.code==="pending_manual_verification"||S||we?t.jsx(Lt,{isUpdateLinkClicked:z==="update_account",isLoginRequired:S,isPendingVerification:c!=="verification_failed"&&e?.providerVerificationStatus?.code==="pending_manual_verification",productType:r,fetchAndUpdateStatues:{fetchStatus:A.fetchStatus,updateStatus:A.updateStatus,linkFetchStatus:g.fetchStatus,linkUpdateStatus:g.updateStatus,prevFetchState:Ue,prevUpdateState:oe},onUpdateLinkTokenClick:Oe,onChaseInfoClick:Ve}):e?.accountBalance?.available?t.jsx(ee,{children:tt("0,0[.]00",e?.accountBalance?.available)}):null]})]}),y!=null&&a==="small"?t.jsx(ye,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:y.name,textColor:ve(y.code)}):null]})]}),t.jsx(Bt,{children:y!=null&&a!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(ye,{style:{width:"max-content"},tagTitle:y.name,textColor:ve(y.code)}),t.jsx(Jt,{})]}):null})]}),ie?t.jsxs(It,{style:P,windowSize:a,isDisabled:S,onClick:l=>l.stopPropagation(),"data-testid":N("account-select-container",r),children:[t.jsx(Et,{isDisabled:S?"disabled":$,label:{label:h.zeniCashAccountLabel,width:a==="small"?void 0:s.labelWidth.value(a),style:{marginLeft:s.labeleMarginLeft.valuePx(a),marginBottom:s.labeleMarginBottom.valuePx(a)}},style:{paddingTop:s.labeledFieldPaddingTop.valuePx(a),paddingBottom:s.labeledFieldPaddingBottom.valuePx(a),paddingLeft:s.labeledFieldPaddingLeft.valuePx(a),paddingRight:s.labeledFieldPaddingRight.valuePx(a),borderRadius:i.sp2,border:`1px solid ${R.colors.grey3}`,width:"-webkit-fill-available",display:a==="small"?"block":"inherit"},infoLabelStyle:{textAlign:a==="small"?"left":"right",paddingRight:s.infoLabelPaddingRight.valuePx(a),marginTop:s.infoLabelMarginTop.valuePx(a)},singleSelectPickerField:{name:ae,placeholder:h.zeniCashAccountPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e?.zeniAccountId??"",allOptions:v.map(l=>({label:l.accountName,value:l.accountId}))},isOptionRemovable:!1,withBorder:a==="small",textAlignment:a==="small"?"left":"right",registerOptions:{required:!1}},valueToAdditionalLabel:()=>h.zeniCashAcoountInfo}),Ie]}):null,e?.accType==="paymentAccount"?r==="charge_cards"?t.jsx(ht,{style:{borderRadius:`${i.sp0} ${i.sp0} ${i.sp2} ${i.sp2}`},maxInsuredAmount:T.maxInsuredAmount,heading:t.jsxs(zt,{windowSize:a,children:[Z.earn,t.jsx(At,{children:Z.percentageCashback.replace("__percentage__",pt)}),Z.whenYouPayViaZeniChecking]}),buttonText:k===!1?h.accountsPlg.signUpButtonText:h.accountsPlg.switchButtonText,isAccountsEnabled:k,pageName:Z.creditCardPayment,onSignUpClick:ne,onSwitchClick:()=>{D.current!=null&&D.current.focus()}}):r!=="zeni_accounts"?t.jsx(Le,{heading:h.accountsPlg.heading,style:{borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},isAccountsEnabled:k,buttonText:k===!1?h.accountsPlg.signUpButtonText:h.accountsPlg.switchButtonText,analytics:u,pageName:G,onSignUpClick:ne,onSwitchClick:()=>{D.current!=null&&D.current.focus()},accountsPromoConfig:T}):null:null]})]})}const Tt=(e,p,v,x,b,$)=>x?.accType==="depositAccount"?t.jsx(Qt,{isOptionSelected:!0,children:t.jsx(Xt,{color:nt(b??0)})}):x?.institutionDetails?.logo?.base64!=null?t.jsx(Yt,{windowSize:p,src:`${at}${x?.institutionDetails.logo?.base64.toString()}`,alt:x?.institutionDetails.institutionName,loading:"lazy"}):$===!0?e.element:t.jsx(Ft,{iconColor:e.color,windowSize:p,isDarkMode:v,children:e.element}),Lt=({productType:e,isLoginRequired:p,isUpdateLinkClicked:v,isPendingVerification:x,fetchAndUpdateStatues:b,onUpdateLinkTokenClick:$,onChaseInfoClick:_})=>{const{commonSetUp:B}=Q.getLocalizedStrings(),{setUp:I}=B,{verifyAccount:u,verifyingAccount:r,verifyAccountError:f,reLogging:P,reLoginLabel:te,reLoginError:H,reLoginMessage:q,chaseLabel:ie}=I,{fetchStatus:k,updateStatus:T,linkFetchStatus:G,linkUpdateStatus:L,prevFetchState:J,prevUpdateState:E}=b,U=v&&J==="In-Progress"&&k?.fetchState==="Error"||E==="In-Progress"&&T?.fetchState==="Error";return p?v&&(k?.fetchState==="In-Progress"||T?.fetchState==="In-Progress"||G?.fetchState==="In-Progress"||L?.fetchState==="In-Progress")?t.jsxs(V,{style:{color:j.important},children:[t.jsx(ee,{children:P}),t.jsx(Pe,{children:t.jsx(pe,{size:"Small",start:!0,style:{display:"flex",color:j.important}})})]}):t.jsx(V,{style:{cursor:"pointer"},onClick:$,"data-testid":N("re-login-label-clicked"),children:t.jsx($e,{style:{padding:`12px ${i.sp3}`},title:q,placement:"bottom",maxWidth:"264px",children:t.jsxs(Dt,{children:[t.jsx(je,{style:{marginLeft:i.sp0,marginRight:i.sp1}}),t.jsx(ce,{isError:!0,style:{color:j.important},children:U?H:te}),t.jsx(de,{children:t.jsx(ue,{style:{color:j.important}})})]})})}):k?.fetchState==="In-Progress"||T?.fetchState==="In-Progress"?t.jsxs(V,{children:[t.jsx(ee,{children:r}),t.jsx(Pe,{children:t.jsx(pe,{size:"Small",start:!0,style:{display:"flex"}})})]}):x?t.jsxs(V,{onClick:$,"data-testid":N("verify-account-label-clicked",e),children:[t.jsx(ce,{isError:!1,children:u}),t.jsx(de,{children:t.jsx(ue,{})}),U?t.jsx($e,{maxWidth:"280px",style:{padding:`12px ${i.sp3}`,color:j.important},title:f,placement:"bottom",children:t.jsx(je,{})}):null]}):t.jsxs(V,{onClick:_,"data-testid":N("chase-info-label-clicked"),children:[t.jsx(ce,{isError:!1,children:ie}),t.jsx(de,{children:t.jsx(ue,{})})]})},ke=(e,p)=>`${e}.${p}`,zt=n(st)`
|
|
55
|
+
`,s={labelWidth:new d(120,190,190),sectionWidth:new d(343,580,726),iconContainerMaxWidthHeight:new d(o[6],o[7]),iconPadding:new d(10,12),rowGap:new d(o[2],o[3]),elementsMarginLeftRight:new d(o[3],o[4]),labeledFieldPaddingLeft:new d(o[3],o[0]),labeledFieldPaddingRight:new d(o[3],o[2]),labeledFieldPaddingTop:new d(o[3],o[3]),labeledFieldPaddingBottom:new d(o[3],o[2]),labeleMarginLeft:new d(o[0],o[4]),labeleMarginBottom:new d(o[2],o[0]),infoLabelPaddingRight:new d(o[0],o[3]),infoLabelMarginTop:new d(o[1],o[0]),iconWidthHeight:new d(20,o[4])},Pt={title:new ze("standardSemiBold","largeSemiBold")};function si({primaryFundingAccount:e,allFundingAccounts:p,allBankAccounts:v,plaidConnectionDetails:x,sectionId:b,isDisabled:$,icon:_,sectionTitle:B,style:I,analytics:u,productType:r,referrer:f,accountSelectContainerStyle:P,connectedAccountProvider:te,isCompleted:H=!1,showCompletedIcon:G=!1,showZeniAccountSection:ie=!0,isAccountsEnabled:k,accountsPromoConfig:T,pageName:q,onFetchLinkTokenClick:L,onEstablishConnectionClick:J,onUpdatePaymentAccountStatus:E,onEstablishConnectionSuccess:U,onSignUpClick:ne,bottomComponent:Ie}){const a=Te(),{trigger:Ee,formState:{errors:Re}}=Ge(),D=m.useRef(null),R=qe(),{setUp:h}=Q.getLocalizedStrings().commonSetUp,Z=Q.getLocalizedStrings().spendManagement.chargeCard.payEarly;let y,he,c,S=!1;e!=null&&e.accType==="paymentAccount"&&(y=e.providerVerificationStatus,he=e?.institutionDetails,c=y?.code,S=e?.isLoginRequired??!1);const ae=ke(b,"account"),Me=Je(Re,ae),[z,Y]=m.useState(void 0),g=x.link_account,A=x.update_account,w=z==="update_account"?A:g,[M,ge]=m.useState(w.linkToken??null),[F,K]=m.useState(!1),[Be,fe]=m.useState(!1),me=se(g.updateStatus.fetchState),oe=se(A.updateStatus.fetchState),Ue=se(A.fetchStatus.fetchState),De=m.useCallback((l,C)=>{u.trackConnectBankSuccess(r,f);const be=C.accounts.find(He=>He.id===e?.providerAccountId)??C.accounts[0];e?.id!=null&&z==="update_account"&&be?.verification_status!=null&&!S?E(be?.verification_status,e.id,"update_account"):J(l,z),Y(void 0),K(!1)},[u,f,r,e?.id,e?.providerAccountId,z,S,E,J]),Fe=m.useCallback((l,C)=>{l!=null&&(u.trackConnectBankFailure(r,l.error_code+" "+l.error_message,f),l.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e?.id!=null&&E("verification_failed",e.id,"update_account"),console.log("Plaid Connection Error",l,C)),Y(void 0),K(!1)},[u,r,f,e?.id,E]),{open:O,ready:xe}=Ze({token:M,onSuccess:De,onExit:Fe});m.useEffect(()=>{(me==="In-Progress"&&g.updateStatus.fetchState==="Completed"||oe==="In-Progress"&&A.updateStatus.fetchState==="Completed")&&(W.isVerifiedPaymentAccountProviderStatusCode(c??"")||(L("link_account"),U()))},[g.updateStatus.fetchState,U,L,e?.providerVerificationStatus?.code,e?.id,me,oe,A.updateStatus.fetchState,c]),m.useEffect(()=>{(W.isVerifiedStatusCode(c??"")||c==="verification_failed")&&!F&&z!=null&&w.linkToken===M&&w.fetchStatus.fetchState==="Completed"&&xe&&K(!0)},[xe,M,w.fetchStatus.fetchState,w.linkToken,c,z,F]),m.useEffect(()=>{w.fetchStatus.fetchState==="Completed"&&w.linkToken!=null&&w.linkToken!==M&&ge(w.linkToken)},[w.fetchStatus.fetchState,w.linkToken,M]),m.useEffect(()=>{F&&O()},[F,O]),m.useEffect(()=>{!e?.zeniAccountId&&!Me&&Ee(ae)},[e?.id]),m.useEffect(()=>{(c==null||c==="verification_failed"||c==="verification_expired"||W.isVerifiedStatusCode(c))&&(W.zeniDate(new Date().toISOString()).isAfter(g.expiration)||g.linkToken==null)&&L("link_account")},[]);const Oe=()=>{u.trackConnectBankGetBalance(r,f),Y("update_account"),L("update_account",e?.id)},Se=`${e?.accountSubType?.name!=null?e?.accountSubType?.name.substring(0,1).toUpperCase().concat(e?.accountSubType?.name.substring(1)):""} ${e?.maskedAccountNumber??""}`.trim(),le=g.fetchStatus.fetchState==="In-Progress"||g.updateStatus.fetchState==="In-Progress",We=p.findIndex(l=>l.id===e?.id),Ve=()=>{fe(!0)},Ne=R.mode==="light"?new re(R.colors.brandColorJadeLight):new re(R.colors.brandColorJadeDark);if(e==null&&p.length===0)return r==="zeni_accounts"?t.jsx(ft,{onClick:()=>{(c==null||c==="verification_failed"||c==="verification_expired")&&(u.trackConnectBank(r,f),O())},title:h.achTitle,subTitle:h.achSubTitle,header:h.paymentSource,isCompleted:H,showCompletedIcon:G,icon:{element:t.jsx(Ye,{width:s.iconWidthHeight.valuePx(a),height:s.iconWidthHeight.valuePx(a)}),color:new re(Ne)},isLoading:le,status:y}):t.jsx(Ce,{windowSize:a,style:I,children:t.jsx(xt,{header:h.paymentSource,plaidConnectionDetails:x,onConnectClick:()=>{(c==null||c==="verification_failed"||c==="verification_expired")&&(u.trackConnectBank(r,f),O())},onSignUpClick:ne,isAccountsEnabled:!1,analytics:u,pageName:q,accountsPromoConfig:T})});const we=he?.zeniInstitutionId.toLowerCase()==="chase";return t.jsxs(Ce,{windowSize:a,style:I,children:[Be===!0?ut.createPortal(t.jsx(gt,{connectedAccountProvider:te,action:{onBackClick:()=>fe(!1)}}),document.body):null,t.jsxs(Wt,{children:[G===!0?t.jsx(Nt,{children:H?t.jsx(Ht,{}):t.jsx(Gt,{})}):null,t.jsx(Vt,{windowSize:a,children:B??h.paymentSource})]}),t.jsxs(Ot,{windowSize:a,isDisabled:S,children:[t.jsxs(_t,{windowSize:a,children:[t.jsxs(Mt,{children:[e!=null?t.jsx(Rt,{isDisabled:S,children:Tt(_,a,R.mode==="dark",e,We)}):null,t.jsxs(Kt,{children:[t.jsxs(qt,{children:[t.jsx(Ke,{ref:D,style:{display:a==="small"?"block":"inherit",width:"-webkit-fill-available"},customStyleConfig:{menu:()=>({width:a==="small"?"100%":"510px"})},controlProperty:{controlHeight:o[4],fontWeight:et.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:a==="small"?240:300},customPlaceholder:{color:R.colors.hero,weight:500},name:ke(b,"fundingAccount"),placeholder:h.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(l,C)=>Xe(p,l,C),valueToSubLabels:(l,C)=>Qe(p,l,C,!1),defaultValue:{selectedOption:e?.id,allOptions:p.map(l=>({label:l.label,value:l.id,isRecommended:l.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,isDisabled:le?"disabled":void 0,showLoadingIcon:le,onClickCreateOption:()=>{u.trackConnectBank(r,f),Y("link_account"),g.linkToken==null||W.zeniDate(new Date().toISOString()).isAfter(g.expiration)?L("link_account"):M!==g.linkToken?ge(g.linkToken):F?O():K(!0)}}),t.jsxs(Ut,{isDisabled:S,children:[Se?t.jsxs(t.Fragment,{children:[t.jsx(ee,{children:Se}),a!=="small"&&(c!=="verification_failed"&&e?.providerVerificationStatus?.code==="pending_manual_verification"||S||we||e?.accountBalance?.available)?t.jsx(Zt,{}):null]}):null,c!=="verification_failed"&&e?.providerVerificationStatus?.code==="pending_manual_verification"||S||we?t.jsx(Lt,{isUpdateLinkClicked:z==="update_account",isLoginRequired:S,isPendingVerification:c!=="verification_failed"&&e?.providerVerificationStatus?.code==="pending_manual_verification",productType:r,fetchAndUpdateStatues:{fetchStatus:A.fetchStatus,updateStatus:A.updateStatus,linkFetchStatus:g.fetchStatus,linkUpdateStatus:g.updateStatus,prevFetchState:Ue,prevUpdateState:oe},onUpdateLinkTokenClick:Oe,onChaseInfoClick:Ve}):e?.accountBalance?.available?t.jsx(ee,{children:tt("0,0[.]00",e?.accountBalance?.available)}):null]})]}),y!=null&&a==="small"?t.jsx(ye,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:y.name,textColor:ve(y.code)}):null]})]}),t.jsx(Bt,{children:y!=null&&a!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(ye,{style:{width:"max-content"},tagTitle:y.name,textColor:ve(y.code)}),t.jsx(Jt,{})]}):null})]}),ie?t.jsxs(It,{style:P,windowSize:a,isDisabled:S,onClick:l=>l.stopPropagation(),"data-testid":N("account-select-container",r),children:[t.jsx(Et,{isDisabled:S?"disabled":$,label:{label:h.zeniCashAccountLabel,width:a==="small"?void 0:s.labelWidth.value(a),style:{marginLeft:s.labeleMarginLeft.valuePx(a),marginBottom:s.labeleMarginBottom.valuePx(a)}},style:{paddingTop:s.labeledFieldPaddingTop.valuePx(a),paddingBottom:s.labeledFieldPaddingBottom.valuePx(a),paddingLeft:s.labeledFieldPaddingLeft.valuePx(a),paddingRight:s.labeledFieldPaddingRight.valuePx(a),borderRadius:i.sp2,border:`1px solid ${R.colors.grey3}`,width:"-webkit-fill-available",display:a==="small"?"block":"inherit"},infoLabelStyle:{textAlign:a==="small"?"left":"right",paddingRight:s.infoLabelPaddingRight.valuePx(a),marginTop:s.infoLabelMarginTop.valuePx(a)},singleSelectPickerField:{name:ae,placeholder:h.zeniCashAccountPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e?.zeniAccountId??"",allOptions:v.map(l=>({label:l.accountName,value:l.accountId}))},isOptionRemovable:!1,withBorder:a==="small",textAlignment:a==="small"?"left":"right",registerOptions:{required:!1}},valueToAdditionalLabel:()=>h.zeniCashAcoountInfo}),Ie]}):null,e?.accType==="paymentAccount"?r==="charge_cards"?t.jsx(ht,{style:{borderRadius:`${i.sp0} ${i.sp0} ${i.sp2} ${i.sp2}`},maxInsuredAmount:T.maxInsuredAmount,heading:t.jsxs(zt,{windowSize:a,children:[Z.earn,t.jsx(At,{children:Z.percentageCashback.replace("__percentage__",pt)}),Z.whenYouPayViaZeniChecking]}),buttonText:k===!1?h.accountsPlg.signUpButtonText:h.accountsPlg.switchButtonText,isAccountsEnabled:k,pageName:Z.creditCardPayment,onSignUpClick:ne,onSwitchClick:()=>{D.current!=null&&D.current.focus()}}):r!=="zeni_accounts"?t.jsx(Le,{heading:h.accountsPlg.heading,style:{borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},isAccountsEnabled:k,buttonText:k===!1?h.accountsPlg.signUpButtonText:h.accountsPlg.switchButtonText,analytics:u,pageName:q,onSignUpClick:ne,onSwitchClick:()=>{D.current!=null&&D.current.focus()},accountsPromoConfig:T}):null:null]})]})}const Tt=(e,p,v,x,b,$)=>x?.accType==="depositAccount"?t.jsx(Qt,{isOptionSelected:!0,children:t.jsx(Xt,{color:nt(b??0)})}):x?.institutionDetails?.logo?.base64!=null?t.jsx(Yt,{windowSize:p,src:`${at}${x?.institutionDetails.logo?.base64.toString()}`,alt:x?.institutionDetails.institutionName,loading:"lazy"}):$===!0?e.element:t.jsx(Ft,{iconColor:e.color,windowSize:p,isDarkMode:v,children:e.element}),Lt=({productType:e,isLoginRequired:p,isUpdateLinkClicked:v,isPendingVerification:x,fetchAndUpdateStatues:b,onUpdateLinkTokenClick:$,onChaseInfoClick:_})=>{const{commonSetUp:B}=Q.getLocalizedStrings(),{setUp:I}=B,{verifyAccount:u,verifyingAccount:r,verifyAccountError:f,reLogging:P,reLoginLabel:te,reLoginError:H,reLoginMessage:G,chaseLabel:ie}=I,{fetchStatus:k,updateStatus:T,linkFetchStatus:q,linkUpdateStatus:L,prevFetchState:J,prevUpdateState:E}=b,U=v&&J==="In-Progress"&&k?.fetchState==="Error"||E==="In-Progress"&&T?.fetchState==="Error";return p?v&&(k?.fetchState==="In-Progress"||T?.fetchState==="In-Progress"||q?.fetchState==="In-Progress"||L?.fetchState==="In-Progress")?t.jsxs(V,{style:{color:j.important},children:[t.jsx(ee,{children:P}),t.jsx(Pe,{children:t.jsx(pe,{size:"Small",start:!0,style:{display:"flex",color:j.important}})})]}):t.jsx(V,{style:{cursor:"pointer"},onClick:$,"data-testid":N("re-login-label-clicked"),children:t.jsx($e,{style:{padding:`12px ${i.sp3}`},title:G,placement:"bottom",maxWidth:"264px",children:t.jsxs(Dt,{children:[t.jsx(je,{style:{marginLeft:i.sp0,marginRight:i.sp1}}),t.jsx(ce,{isError:!0,style:{color:j.important},children:U?H:te}),t.jsx(de,{children:t.jsx(ue,{style:{color:j.important}})})]})})}):k?.fetchState==="In-Progress"||T?.fetchState==="In-Progress"?t.jsxs(V,{children:[t.jsx(ee,{children:r}),t.jsx(Pe,{children:t.jsx(pe,{size:"Small",start:!0,style:{display:"flex"}})})]}):x?t.jsxs(V,{onClick:$,"data-testid":N("verify-account-label-clicked",e),children:[t.jsx(ce,{isError:!1,children:u}),t.jsx(de,{children:t.jsx(ue,{})}),U?t.jsx($e,{maxWidth:"280px",style:{padding:`12px ${i.sp3}`,color:j.important},title:f,placement:"bottom",children:t.jsx(je,{})}):null]}):t.jsxs(V,{onClick:_,"data-testid":N("chase-info-label-clicked"),children:[t.jsx(ce,{isError:!1,children:ie}),t.jsx(de,{children:t.jsx(ue,{})})]})},ke=(e,p)=>`${e}.${p}`,zt=n(st)`
|
|
56
56
|
color: ${e=>e.theme.colors.primary};
|
|
57
57
|
width: ${e=>e.windowSize==="small"?"80%":"100%"};
|
|
58
58
|
`,At=n(rt)`
|
|
@@ -151,12 +151,12 @@ import{e as Te,cp as qe,u as Ge,M as Q,cx as Je,a2 as se,f4 as Ze,l as W,a8 as r
|
|
|
151
151
|
width: ${i.sp3};
|
|
152
152
|
height: ${i.sp3};
|
|
153
153
|
color: ${j.success};
|
|
154
|
-
`,
|
|
154
|
+
`,Gt=n.div`
|
|
155
155
|
height: 14px;
|
|
156
156
|
width: 14px;
|
|
157
157
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
158
158
|
border-radius: 50%;
|
|
159
|
-
`,
|
|
159
|
+
`,qt=n.div``,Jt=n.div`
|
|
160
160
|
width: ${i.sp4};
|
|
161
161
|
height: ${i.sp4};
|
|
162
162
|
margin-left: ${i.sp4};
|
package/dist/assets/{StatementItem-CwkYfX3v-BfxIXxV9.js → StatementItem-li8rxfjF-DE4xpTDg.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as y,M as S,h9 as b,j as o,h as g,o as a,s as j,C as v,
|
|
1
|
+
import{e as y,M as S,h9 as b,j as o,h as g,o as a,s as j,C as v,bC as z,r as k}from"./index-dX8TSOm6.js";import{b as C,n as i}from"./vendor-rkTZJa59.js";import{g as P}from"./BoxItem-BwOmI0eo-Bg_oDJrZ.js";import{w as L}from"./downloadPdf-Bj4Y4BB4-D1l-PLqG.js";const d=S.getLocalizedStrings().months,n={downloadButtonSize:new v(k[4],20)},B=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: ${a.sp3} ${a.sp4};
|
|
4
4
|
flex-direction: row;
|
|
@@ -28,4 +28,4 @@ import{e as y,M as S,h9 as b,j as o,h as g,o as a,s as j,C as v,bB as z,r as k}f
|
|
|
28
28
|
&:hover {
|
|
29
29
|
color: ${t=>t.theme.colors.primary};
|
|
30
30
|
}
|
|
31
|
-
`;function q({accountLast4:t,currentTenantCompanyName:s,data:e,authParams:m,downloadEndPoint:l,documentType:r="statement",boxType:p}){const[w,x]=
|
|
31
|
+
`;function q({accountLast4:t,currentTenantCompanyName:s,data:e,authParams:m,downloadEndPoint:l,documentType:r="statement",boxType:p}){const[w,x]=C.useState(!1),c=y(),h=r==="taxLetter"?`${e.title.year}`:`${d[e.title.month-1]} ${e.title.year}`,$=r==="taxLetter"?`${s}-treasury-tax-letter-${e.title.year}.pdf`:`${s}-${t}-monthly-statement-${d[e.title.month-1]}-${e.title.year}.pdf`,u={period:`${e.title.year}-${b(e.title.month)}`,format:"pdf"},f=o.jsx(B,{children:o.jsxs(N,{children:[o.jsx(T,{children:h}),o.jsx(E,{onClick:()=>L(r==="treasuryStatement"||r==="taxLetter"?`${l}/statements/${e.id}`:`${l}/statements?query=${encodeURIComponent(JSON.stringify(u))}`,$,m,x),children:w?o.jsx(g,{size:"Small",start:!0}):o.jsx(R,{windowSize:c})})]})});return o.jsx(P,{content:f,boxType:p,isDisabled:!1,isNotClickable:!0})}export{q as O};
|
package/dist/assets/{StatementsPage-DpjcrDLZ-BOUbVppT.js → StatementsPage-D0VgSNCy-Bi9vK3HK.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as v,e as z,j as t,
|
|
1
|
+
import{u as v,e as z,j as t,a_ as C,M as P,am as I,o as r,g as m,c0 as L,C as M,r as h,s as B}from"./index-dX8TSOm6.js";import{b as p,n as o}from"./vendor-rkTZJa59.js";import{$ as E}from"./BoxItem-BwOmI0eo-Bg_oDJrZ.js";import{o as O}from"./commonDimensions-FafZVRxo-CSxm8Nzu.js";import{O as R}from"./StatementItem-li8rxfjF-DE4xpTDg.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./downloadPdf-Bj4Y4BB4-D1l-PLqG.js";const x=P.getLocalizedStrings().spendManagement.zeniAccounts.statements,g={listItemMargin:new M(h[3],h[8])},et=({currentTenantCompanyName:e,authParams:b,downloadEndPoint:w,statementListView:i,accountLast4:f,onBackClick:y})=>{const k=v(),l=z(),$=p.createRef(),c=p.useRef(null),d=i.statements.length===0,j=()=>d===!1?O.transactionItemHeight:24,S=({index:a,style:s})=>{const n=i.statements[a];return d===!1?t.jsx(u,{windowSize:l,style:{...s,width:`calc(100% - 2*${g.listItemMargin.valuePx(l)})`},children:t.jsx(R,{currentTenantCompanyName:e,accountLast4:f,data:n,authParams:b,downloadEndPoint:w,boxType:E(a,i.statements.length)},n.id)}):t.jsx(T,{style:{...s},children:t.jsx(N,{children:t.jsx(u,{windowSize:l,children:t.jsx(A,{children:x.noStatements})})})})};return t.jsxs(V,{children:[t.jsx(C,{title:x.title,backgroundColor:k.colors.grey4,style:{zIndex:3},onBackClick:y,scrollableContent:c.current!=null?c:void 0,source:"StatementsPage"}),t.jsx(H,{children:t.jsx(I,{children:({height:a,width:s})=>t.jsx(K,{ref:$,height:a,width:s,outerRef:c,itemKey:n=>n,itemCount:i.statements.length,itemSize:j,initialScrollOffset:0,children:S})})})]})},T=o.div``,u=o.div`
|
|
2
2
|
margin: ${e=>`${r.sp0} ${g.listItemMargin.valuePx(e.windowSize)}`};
|
|
3
3
|
&:hover {
|
|
4
4
|
position: relative;
|
package/dist/assets/{StatusSwitcher-6n_dRY-n-CInUBfU5.js → StatusSwitcher-Dhw4Hsko-VYfBZyYc.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as y,j as d,
|
|
1
|
+
import{e as y,j as d,bM as T,M as v,C as f,o as s,r as c,w as z}from"./index-dX8TSOm6.js";import{n as u,j as g}from"./vendor-rkTZJa59.js";function w(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().split(" ").filter(Boolean).map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}const M=e=>{switch(e){case"bill_pay":return"bills";case"reimbursement":return"reimbursements";case"charge_cards":return"cards";default:return e}};function _(e,a){if(typeof e=="string")return e;if(e!=null&&typeof e=="object"){const r=Object.values(e)[0];return typeof r=="string"?r:w(a)}return w(a)}function p(e,a,r){const n=e[a];return n!=null?_(n,r):null}const A=(e,a)=>{const{spendManagement:{billPay:{billsByTabs:{tabsById:r}},reimbursement:{reimbursementByTabs:{tabsById:n}},zeniAccounts:{zeniAccountList:{tabsById:l}}}}=v.getLocalizedStrings(),t=String(e);if(a)switch(a){case"bill_pay":{const i=p(r,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"reimbursement":{const i=p(n,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"zeni_accounts":{const i=p(l,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}}return(p(r,t,t)??p(n,t,t)??p(l,t,t)??w(t)).replace(/\s+/g,"_").toLowerCase()},{spendManagement:{billPay:{billsByTabs:{tabsById:x}},reimbursement:{reimbursementByTabs:{tabsById:$}},zeniAccounts:{zeniAccountList:{tabsById:L}}}}=v.getLocalizedStrings(),m={containerMarginLeft:new f(c[4],c[8]),containerMarginRight:new f(c[4],c[8]),segmentContainerMarginLeft:new f(c[4],c[8])},j=u.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
width: 100%;
|
|
@@ -117,4 +117,4 @@ import{e as y,j as d,bL as T,M as v,C as f,o as s,r as c,w as z}from"./index-RcM
|
|
|
117
117
|
left: 60%;
|
|
118
118
|
}
|
|
119
119
|
`}
|
|
120
|
-
`;function P({tabId:e,isSelected:a,approvalCount:r,entity:n,onClick:l}){const t=o=>{switch(o){case"draft":case"pending_approval":case"scheduled":case"paid":case"all":case"failed":case"overdue":case"cancelled":case"rejected":case"awaitingAllApproval":case"ach":case"wire":case"deleted":return n==="bill_pay"?x[o]:$[o];case"offline":case"awaiting_approval":case"awaiting_my_approval":return x[o];case"awaitingApproval":case"awaitingMyApproval":case"myDrafts":return $[o];case"wireDetails":case"achDetails":return
|
|
120
|
+
`;function P({tabId:e,isSelected:a,approvalCount:r,entity:n,onClick:l}){const t=o=>{switch(o){case"draft":case"pending_approval":case"scheduled":case"paid":case"all":case"failed":case"overdue":case"cancelled":case"rejected":case"awaitingAllApproval":case"ach":case"wire":case"deleted":return n==="bill_pay"?x[o]:$[o];case"offline":case"awaiting_approval":case"awaiting_my_approval":return x[o];case"awaitingApproval":case"awaitingMyApproval":case"myDrafts":return $[o];case"wireDetails":case"achDetails":return L[o];default:return""}},i=y();return d.jsxs(B,{onClick:()=>{a===!1&&l(e)},isClickDisabled:!1,isSelected:a,isMainTab:R(e)===!0,windowSize:i,children:[t(e),e==="pending_approval"&&r!==0?d.jsx(D,{isSelected:a,children:r}):null]})}function K({tabIds:e,selectedTab:a,entity:r,isSwitcherLeftAlign:n=!1,approvalCount:l,hasSubTabs:t=!1,enablePerformanceTracking:i=!0,onTabSelectedChange:o}){const h=y(),S=b=>{o(b)};return T({componentName:`${M(r).toLowerCase()}.${A(a,r).toLowerCase()}`,enabled:i}),d.jsx(j,{windowSize:h,hasSubTabs:t,isSwitcherLeftAlign:n,children:d.jsxs(k,{windowSize:h,hasSubTabs:t,children:[e.map((b,C)=>d.jsx(P,{tabId:b,approvalCount:l,isSelected:a===b,entity:r,onClick:S},C)),d.jsx(I,{className:`Slider ${a}`,windowSize:h,approvalCount:l})]})})}const R=e=>e==="draft"||e==="pending_approval"||e==="scheduled"||e==="paid"||e==="achDetails"||e==="wireDetails";export{K,M as L,A as _};
|
package/dist/assets/{SubTabSwitcher-DEXr9JG8-BesAFLAS.js → SubTabSwitcher-CaDODjQq-zPof6WQa.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,h as u,o as s,w as g,
|
|
1
|
+
import{j as r,h as u,o as s,w as g,ah as m}from"./index-dX8TSOm6.js";import{n as i,j as a}from"./vendor-rkTZJa59.js";function S({allTabs:e,selectedTab:c,containerStyle:d,rightComponent:o,onTabChange:p}){const h=o!=null;return r.jsxs(x,{style:d,hasRightComponent:h,children:[r.jsx($,{children:e.map(t=>{const n=t.id===c,l=t.isDisabled!=null;return r.jsxs(b,{onClick:()=>{n===!1&&!l&&p(t)},isSelected:n,isDisabled:l,children:[r.jsx(y,{children:t.label}),t.countDetails?.count!=null?r.jsx(j,{children:r.jsx(f,{isCircular:t.countDetails.count==null||t.countDetails.count<10,children:r.jsx(D,{children:t.countDetails.isFetching?r.jsx(u,{size:"Small-Compact",style:{color:"inherit",display:"flex",alignItems:"center",justifyContent:"center"},start:!0}):t.countDetails.count})})}):null]},t.id)})}),o]})}const x=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
justify-content: ${e=>e.hasRightComponent?"space-between":"flex-start"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as d}from"./index-
|
|
1
|
+
import{j as d}from"./index-dX8TSOm6.js";import{E as n,I as t}from"./ReloadCard-C7TwZcxr-vlQuHsih.js";const o=r=>{function e(){return r.card.fetchState==="In-Progress"||r.card.fetchState==="Not-Started"?d.jsx(n,{dimension:r.card.dimension,animated:!r.card.disableAnimations}):r.card.fetchState==="Error"?d.jsx(t,{dimension:r.card.dimension,cardType:r.card.cardType,cardIndex:r.card.cardIndex,onReloadData:r.actions.onReloadData}):d.jsx("div",{children:r.children})}return d.jsx("div",{children:e()})};export{o as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as ht,u as qe,j as t,M as oe,iN as Y,
|
|
1
|
+
import{Q as ht,u as qe,j as t,M as oe,iN as Y,a_ as mt,E as H,bY as gt,s as K,J as kt,l as X,o as s,eP as Je,bR as Ee,bV as xt,fH as wt,ar as ft,bi as Ze,a9 as Ct,e as le,a as Tt,C as Qe,cc as $t,F as yt,am as bt,c0 as jt,ic as vt,id as St,iO as ze,a7 as Gt,X as De,br as Ie,eL as Xe,iP as Lt,cz as et,iQ as pe,iR as xe,iS as Nt,iT as we,iU as tt,iV as st,iW as ot,iX as nt,iY as at,iZ as rt,i_ as _,r as ke,i$ as re,w as ie,j0 as Et,j1 as It,a6 as Mt,n as Dt,j2 as zt,db as Bt,j3 as Rt,cp as it,cJ as At,$ as Ot,j4 as Wt,j5 as Pt,fI as Ft,eO as Vt,j6 as Ht,j7 as Z,j8 as Be,c2 as Ut,j9 as _t,ja as Kt,jb as Re,jc as Yt,g as Ae,g3 as qt,m as Jt}from"./index-dX8TSOm6.js";import{b as n,n as o,j as fe}from"./vendor-rkTZJa59.js";import{K as Zt,Y as Qt}from"./SpendManagementSection-DilGVAEg-UyhbLf0x.js";import{A as Xt,t as es,a as ts,E as ss}from"./NotificationsListConfig-DV_yEagM-CKLpxpSM.js";import{getDashboardFilterCategoryValues as os}from"./SpendManagementListViewPage-BPfU_Lec-BnogwbnW.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./StatusSwitcher-Dhw4Hsko-VYfBZyYc.js";const ns=100,as=100,rs=3,is=.7,ls=({scrollContainerRef:e,isEnabled:u=!0,edgeThreshold:r=ns,scrollSpeed:h=as,minScrollAmount:m=rs,scrollCurveExponent:p=is})=>{n.useEffect(()=>{if(!u||typeof window>"u"||typeof document>"u")return;let a=!1,c=0,i=null;const d=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)},I=x=>v(x),M=x=>{const S=Math.max(x,0)/d,y=Math.pow(S,p)*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=c;if(y<d&&y>0){const L=d-y,g=M(L);k(x,g,"up")}else if(y>S-d){const L=y-(S-d),g=M(L);k(x,g,"down")}i=requestAnimationFrame(w)},D=x=>{I(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(c=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,u,m,e,p,h])},Se=oe.getLocalizedStrings(),lt=({count:e})=>t.jsx(ds,{isCircular:e<10,children:t.jsx(cs,{children:e>Se.common.numbers.maximumCount?`${Se.common.numbers.maximumCount}${Se.common.strings.plus}`:e})}),ds=o.div`
|
|
2
2
|
${e=>e.isCircular?fe`
|
|
3
3
|
height: 18px;
|
|
4
4
|
width: 18px;
|
|
@@ -16,7 +16,7 @@ import{Q as ht,u as qe,j as t,M as oe,iN as Y,aY as mt,E as H,bX as gt,s as K,J
|
|
|
16
16
|
outline-color: inherit;
|
|
17
17
|
`,cs=o(Dt)`
|
|
18
18
|
color: inherit;
|
|
19
|
-
`,{taskManagement:Oe,common:Ge}=oe.getLocalizedStrings();function ps(e){const{onChange:u,value:r,resetDisabled:h,onReset:m}=e,p=()=>{h!==!0&&m()};return t.jsxs(us,{children:[t.jsx(gs,{children:Oe.taskList.groupingFilters.groupBy}),t.jsx(hs,{children:t.jsx(
|
|
19
|
+
`,{taskManagement:Oe,common:Ge}=oe.getLocalizedStrings();function ps(e){const{onChange:u,value:r,resetDisabled:h,onReset:m}=e,p=()=>{h!==!0&&m()};return t.jsxs(us,{children:[t.jsx(gs,{children:Oe.taskList.groupingFilters.groupBy}),t.jsx(hs,{children:t.jsx(Zt,{value:r,placeHolder:Oe.taskList.groupingFilters.placeholder,onChange:a=>{const c=X.toTaskListGroupByKeyTypeStrict(a.value);if(c!=null)u(c);else throw new Error("Invalid taskListGroupByKey")},options:X.TASK_LIST_GROUP_BY_CATEGORIES,getOptionLabel:a=>{const c=Ge.texts,i=X.toTaskListGroupByKeyTypeStrict(a);return i!=null?c[i]:Ge.strings.empty}})}),t.jsxs(ms,{onClick:p,isDisabled:h,children:[t.jsx(ks,{}),t.jsx(K,{children:Ge.reset})]})]})}const us=o.div`
|
|
20
20
|
display: flex;
|
|
21
21
|
align-items: center;
|
|
22
22
|
column-gap: ${s.sp4};
|
|
@@ -41,7 +41,7 @@ import{Q as ht,u as qe,j as t,M as oe,iN as Y,aY as mt,E as H,bX as gt,s as K,J
|
|
|
41
41
|
column-gap: ${s.sp1};
|
|
42
42
|
`,gs=o(ft)`
|
|
43
43
|
color: ${e=>e.theme.colors.primary};
|
|
44
|
-
`,ks=o(
|
|
44
|
+
`,ks=o(Ze)`
|
|
45
45
|
width: ${s.sp3};
|
|
46
46
|
height: ${s.sp3};
|
|
47
47
|
`,xs=oe.getLocalizedStrings().taskManagement.taskList.footer;function ws({taskGroupsList:e,anchorEl:u,groupByKey:r,onCreateNewGroup:h,onExistingGroupSelection:m,onClose:p}){const a=()=>{p(),h()};return t.jsx(Je,{open:!!u,anchorEl:u,onClose:p,transformOrigin:{vertical:"bottom",horizontal:"right"},anchorOrigin:{vertical:"top",horizontal:"right"},children:t.jsxs(fs,{children:[t.jsx(Cs,{children:e.map(c=>{const i=()=>{p(),m(c.id)};return t.jsx(We,{onClick:i,children:t.jsx(ie,{children:c.groupName})},c.id)})}),t.jsx(H,{controller:r==="groupName",children:t.jsxs(We,{onClick:a,children:[t.jsx(Ts,{}),t.jsx(ie,{children:xs.createGroup})]})})]})})}const fs=o.div`
|
|
@@ -97,7 +97,7 @@ import{Q as ht,u as qe,j as t,M as oe,iN as Y,aY as mt,E as H,bX as gt,s as K,J
|
|
|
97
97
|
`,Ss=o(Mt)`
|
|
98
98
|
width: ${s.sp3};
|
|
99
99
|
height: ${s.sp3};
|
|
100
|
-
`,Gs=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M19.6011 5.42688H3.10107",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 9.60004L7.92188 12.4125L6.51562 11.0063",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 11.0063H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 15.4125L7.92188 18.225L6.51562 16.8188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 16.8188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ls=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 8.1001L7.92188 10.9126L6.51562 9.50635",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 9.50635H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 13.9126L7.92188 16.7251L6.51562 15.3188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 15.3188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ns=e=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},n.createElement("path",{d:"M4.49908 1.50001H12.0015H19.5039C19.5039 1.50001 20.868 1.50001 20.868 2.86409V21.1359C20.868 21.1359 20.868 22.5 19.5039 22.5H4.49908C4.49908 22.5 3.13501 22.5 3.13501 21.1359V2.86409C3.13501 2.86409 3.13501 1.50001 4.49908 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M7.5 11.9996L8.598 14.1953C8.70072 14.4016 8.85107 14.5804 9.03662 14.7171C9.22217 14.8538 9.43759 14.9443 9.66506 14.9812C9.89254 15.0182 10.1255 15.0004 10.3448 14.9295C10.5641 14.8585 10.7633 14.7364 10.926 14.5733L16.5 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{taskManagement:Es,common:Is}=oe.getLocalizedStrings(),
|
|
100
|
+
`,Gs=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M19.6011 5.42688H3.10107",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 9.60004L7.92188 12.4125L6.51562 11.0063",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 11.0063H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 15.4125L7.92188 18.225L6.51562 16.8188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 16.8188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ls=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M4.36407 1.50001H11.8665H19.3689C19.3689 1.50001 20.733 1.50001 20.733 2.86409V21.1359C20.733 21.1359 20.733 22.5 19.3689 22.5H4.36407C4.36407 22.5 3 22.5 3 21.1359V2.86409C3 2.86409 3 1.50001 4.36407 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 8.1001L7.92188 10.9126L6.51562 9.50635",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 9.50635H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.7344 13.9126L7.92188 16.7251L6.51562 15.3188",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.7344 15.3188H17.4844",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ns=e=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},n.createElement("path",{d:"M4.49908 1.50001H12.0015H19.5039C19.5039 1.50001 20.868 1.50001 20.868 2.86409V21.1359C20.868 21.1359 20.868 22.5 19.5039 22.5H4.49908C4.49908 22.5 3.13501 22.5 3.13501 21.1359V2.86409C3.13501 2.86409 3.13501 1.50001 4.49908 1.50001Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M7.5 11.9996L8.598 14.1953C8.70072 14.4016 8.85107 14.5804 9.03662 14.7171C9.22217 14.8538 9.43759 14.9443 9.66506 14.9812C9.89254 15.0182 10.1255 15.0004 10.3448 14.9295C10.5641 14.8585 10.7633 14.7364 10.926 14.5733L16.5 9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{taskManagement:Es,common:Is}=oe.getLocalizedStrings(),Q=Es.taskList.newTaskOptions;function Ms({anchorEl:e,groupByKey:u,taskGroupTemplates:r,taskCreationFromTemplateStatus:h,isTaskTemplatesEnabled:m,expandedTemplate:p,onExpandTemplate:a,onClose:c,onNewTaskClick:i,onNewGroupClick:d,handleGroupTemplateClick:C,handleGroupTemplateTaskClick:v,onNewTaskInitialization:I}){const M=qe(),[k,f]=n.useState(null),[w,D]=n.useState(null);n.useEffect(()=>{h.fetchState==="Completed"&&(D(null),f(null),c())},[h.fetchState,c]);const z=n.useCallback(($,x)=>{f(x),v($,x)},[v]),B=n.useCallback($=>{D($),C($)},[C]);return t.jsx(Je,{open:!!e,sx:{"& .MuiPaper-root":{border:`1px solid ${M.colors.grey3}`}},anchorEl:e,onClose:c,transformOrigin:{vertical:"top",horizontal:"right"},anchorOrigin:{vertical:"bottom",horizontal:"right"},children:t.jsxs(zs,{isTaskTemplatesEnabled:m,children:[t.jsxs(As,{children:[t.jsxs(Fe,{onClick:i,children:[t.jsx(Bs,{}),t.jsx(Ee,{children:Q.task})]}),t.jsx(H,{controller:u==="groupName",children:t.jsxs(Fe,{onClick:()=>d(""),children:[t.jsx(Rs,{}),t.jsx(Ee,{children:Q.group})]})})]}),m?t.jsx(Ds,{taskGroupTemplates:r,taskIdInCreation:k,groupIdInCreation:w,expandedTemplate:p,handleGroupTemplateClick:B,handleGroupTemplateTaskClick:z,onNewGroupClick:d,onNewTaskInitialization:I,onExpandTemplate:a}):null]})})}const Ds=({taskGroupTemplates:e,taskIdInCreation:u,groupIdInCreation:r,expandedTemplate:h,onExpandTemplate:m,handleGroupTemplateClick:p,handleGroupTemplateTaskClick:a,onNewGroupClick:c,onNewTaskInitialization:i})=>{const[d,C]=n.useState(""),v=n.useMemo(()=>{const k=[];return e.forEach(f=>{if(f.name.toLowerCase().includes(d.toLowerCase()))k.push(f);else{const w=f.tasks.filter(D=>D.name.toLowerCase().includes(d.toLowerCase()));w.length>0&&k.push({...f,tasks:w})}}),k},[e,d]),I=n.useCallback(()=>{i(d)},[d,i]),M=n.useCallback(()=>{c(d)},[d,c]);return t.jsxs(Os,{children:[t.jsx(Ws,{children:t.jsxs(Fs,{children:[t.jsxs(Ps,{children:[t.jsx(Vs,{}),t.jsx(Hs,{children:Q.groupTemplates})]}),t.jsx($s,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:d,onSearchTextChanged:C,placeholder:Q.searchPlaceholder})]})}),t.jsx(H,{controller:v.length>0,children:t.jsx(Us,{children:v.map(k=>{const f=h===k.id;return t.jsxs(eo,{children:[t.jsxs(_s,{onClick:()=>{m(k.id)},expanded:f,children:[t.jsxs(Ks,{children:[t.jsx(H,{controller:f,children:t.jsx(Xs,{})}),t.jsx(H,{controller:!f,children:t.jsx(Qs,{})}),t.jsx(K,{children:k.name}),t.jsx(lt,{count:k.tasks.length})]}),t.jsx(Js,{expanded:f,className:"hidden-create-group-button",variant:"secondary",size:"xs-small",label:Q.createGroup,disabled:k.createdAt!=null,onClick:w=>{w.stopPropagation(),m(null),p(k.id)},reverseSpinnerColor:!1,loading:r===k.id})]}),t.jsx(H,{controller:f,children:t.jsx(n.Fragment,{children:k.tasks.map(w=>t.jsxs(Ys,{children:[t.jsxs(qs,{children:[t.jsx(to,{className:"styled-dot"}),t.jsx(no,{className:"task-name-text",children:w.name})]}),t.jsx(Zs,{loading:u===w.name,className:"hidden-create-task-button",variant:"secondary",size:"xs-small",label:Is.create,reverseSpinnerColor:!1,onClick:()=>a(k.id,w.name)})]},w.name))})})]},k.id)})})}),t.jsxs(H,{controller:v.length===0,children:[t.jsx(so,{children:t.jsx(oo,{children:Q.noTaskGroup})}),t.jsxs(Ve,{onClick:I,children:[t.jsx(He,{}),t.jsx(K,{children:Q.newTaskOptionText.replace("__searchText__",d)})]}),t.jsxs(Ve,{onClick:M,children:[t.jsx(He,{}),t.jsx(K,{children:Q.newGroupOptionText.replace("__searchText__",d)})]})]})]})},zs=o.div`
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
width: ${e=>e.isTaskTemplatesEnabled?"408px":"unset"};
|
|
@@ -203,12 +203,12 @@ import{Q as ht,u as qe,j as t,M as oe,iN as Y,aY as mt,E as H,bX as gt,s as K,J
|
|
|
203
203
|
}
|
|
204
204
|
`,Js=o(De)`
|
|
205
205
|
display: ${e=>e.expanded===!0?"block":"none"};
|
|
206
|
-
`,
|
|
206
|
+
`,Zs=o(De)`
|
|
207
207
|
display: none;
|
|
208
|
-
`,
|
|
208
|
+
`,Qs=o(Lt)`
|
|
209
209
|
width: ${s.sp3};
|
|
210
210
|
height: ${s.sp3};
|
|
211
|
-
`,
|
|
211
|
+
`,Xs=o(Xe)`
|
|
212
212
|
width: ${s.sp3};
|
|
213
213
|
height: ${s.sp3};
|
|
214
214
|
`,eo=o.div``,to=o.div`
|
|
@@ -243,7 +243,7 @@ import{Q as ht,u as qe,j as t,M as oe,iN as Y,aY as mt,E as H,bX as gt,s as K,J
|
|
|
243
243
|
text-overflow: ellipsis;
|
|
244
244
|
white-space: nowrap;
|
|
245
245
|
max-width: 336px;
|
|
246
|
-
`,{common:Le,dateFormat:ao,taskManagement:Me}=oe.getLocalizedStrings(),dt={taskNameMaxWidth:new
|
|
246
|
+
`,{common:Le,dateFormat:ao,taskManagement:Me}=oe.getLocalizedStrings(),dt={taskNameMaxWidth:new Qe(125,170,170,250,300)},ro=({taskDetail:e,tagList:u,sectionId:r,onRowClick:h,onTimeSpentUpdate:m,onShowToast:p})=>{const a=le(),c=e.assigneeUsers.length,i=e.assigneeUsers[0]?.user,d=i?.firstName||i?.lastName?`${i.firstName} ${i.lastName}`:i?.email??Le.strings.empty,{getValues:C,resetField:v,getFieldState:I}=it(),M=(k,f)=>{const w=Re(k,f,we);I(w).invalid?v(w):m(e,{timeSpent:C(w)})};return t.jsxs(co,{children:[t.jsxs($o,{windowSize:a,onClick:h,responsiveWidth:Z[0].width,children:[t.jsxs(yo,{windowSize:a,children:[t.jsx(jo,{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(So,{height:s.sp3,width:s.sp3})}):null]}),t.jsx(Ie,{style:{padding:`12px ${s.sp3}`},title:e.description,placement:"bottom-start",children:t.jsx(bo,{windowSize:a,responsiveWidth:Z[0].width,children:t.jsx(vo,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:Z[1].width,children:Be(e.status.code)}),t.jsx(Eo,{windowSize:a,responsiveWidth:Z[2].width,children:Be(e.priority.code)}),t.jsx(Io,{windowSize:a,responsiveWidth:Z[3].width,children:e.dueDate!=null?e.dueDate.format(ao.visual.MMMDCommaYYYYformat):t.jsx(po,{children:Le.strings.hyphen})}),t.jsx(Ue,{windowSize:a,responsiveWidth:Z[4].width,children:c>0?t.jsxs(uo,{children:[t.jsx(Ut,{personBasic:i,styles:{width:s.sp4,height:s.sp4}}),t.jsx(Go,{children:t.jsx(Lo,{children:d})}),c>1?t.jsx(ho,{children:`${Le.strings.plus}${c-1}`}):null]}):null}),t.jsx(Mo,{windowSize:a,responsiveWidth:Z[5].width,children:e.tagIds.length>0?t.jsx(No,{children:_t(e.tagIds,u)}):null}),t.jsx(zo,{windowSize:a,responsiveWidth:Z[6].width,isLastColumn:!0,isDisabled:!1,children:t.jsx(Bo,{className:"timeSpentField",children:t.jsx(Kt,{name:Re(r,e.id,we),placeholder:Me.common.timeSpentPlaceholder,timeSpentFormat:Me.common.timeSpentFormat,registerOptions:{validate:k=>X.convertHHMMStrToMinutes(k)>Yt?(p({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}`}})})})]})},io=({taskGroup:e,tagList:u,sectionId:r,showGroupName:h,showRenameTextField:m,isSelectionAllowed:p,isCollapsed:a,existingTaskGroupNamesByGroupId:c,onDeleteTaskGroup:i,onExpandAll:d,onCollapseAll:C,onAddNewTaskToTaskGroup:v,onCollapseToggle:I,onTaskManagementRowClick:M,onDragStart:k,onTimeSpentUpdate:f,onShowToast:w})=>{const[D,z]=n.useState(null),B=le(),{setFocus:$}=it(),x=n.useCallback(()=>{I(e.id)},[I,e.id]),S=n.useCallback(O=>{z(O.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(lo,{windowSize:B,children:[t.jsx(H,{controller:h,children:t.jsxs(mo,{children:[t.jsxs(go,{children:[t.jsx(ko,{isOpen:a===!1,onClick:x,children:t.jsx(xo,{})}),t.jsx(At,{style:{textAlign:"start",width:"100%",background:"unset",...Ot.largeMedium.cssObject},type:"text",name:`${r}.groupName`,placeholder:Me.taskList.taskGroup.groupNamePlaceholder,registerOptions:{required:!0,validate:O=>Wt(O,e.id,c)===!1},isDisabled:m&&e.id!=="new_group"||e.isDefault?"disabled":void 0})]}),t.jsx(wo,{onClick:S,children:t.jsx(fo,{})}),t.jsx(Pt,{onClose:y,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:d,onRename:b,isDefault:e.isDefault,anchorEl:D})]})}),t.jsx(H,{controller:a===!1,children:t.jsx(Ft,{mode:"checked_or_hover",isDisabled:p===!1?"disabled":void 0,checkBoxes:[...e.tasks.map(O=>{const U=()=>{M(O.id)};return{label:t.jsx(ro,{taskDetail:O,onRowClick:U,tagList:u,onTimeSpentUpdate:f,onShowToast:w,sectionId:r}),prefix:B==="small"?null:t.jsx(Co,{children:t.jsx(To,{})}),value:O.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})})]})},lo=o.div`
|
|
247
247
|
box-sizing: border-box;
|
|
248
248
|
display: flex;
|
|
249
249
|
flex-direction: column;
|
|
@@ -305,7 +305,7 @@ import{Q as ht,u as qe,j as t,M as oe,iN as Y,aY as mt,E as H,bX as gt,s as K,J
|
|
|
305
305
|
`,ko=o.div`
|
|
306
306
|
cursor: pointer;
|
|
307
307
|
transform: ${e=>e.isOpen?"rotate(0deg)":"rotate(-90deg)"};
|
|
308
|
-
`,xo=o(
|
|
308
|
+
`,xo=o(Xe)`
|
|
309
309
|
width: ${s.sp3};
|
|
310
310
|
height: ${s.sp3};
|
|
311
311
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -430,7 +430,7 @@ import{Q as ht,u as qe,j as t,M as oe,iN as Y,aY as mt,E as H,bX as gt,s as K,J
|
|
|
430
430
|
column-gap: ${s.sp2};
|
|
431
431
|
`,Bo=o.div`
|
|
432
432
|
max-width: ${s.sp11};
|
|
433
|
-
`,Ro=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"})),V=oe.getLocalizedStrings(),_e=e=>`${e}_form`,Ao={rowGap:new Xe(ke[0],ke[5],ke[5])},{common:{footer:Ke},taskManagement:Ne}=oe.getLocalizedStrings(),xn=({taskListView:e,tagListView:u,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:p,onDeleteTaskGroup:a,updateLocalData:c,onTaskManagementRowClick:i,onReloadTasks:d,onColumnSortConfigChanged:C,onSearchTextChanged:v,onBackClick:I,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[O,U]=n.useState(!1),[ee,P]=n.useState(null),[F,ne]=n.useState(null),[q,ue]=n.useState(null),[Ce,de]=n.useState(null),[he,ae]=n.useState(!1),Te=ht(),{fetchState:te,uiState:J,filters:$e,userList:ce,taskGroupsWithTasksList:ye}=e,{tagList:be}=u,je=qe(),ve=A=>{ae(A)},me=n.useCallback(A=>{de(A.currentTarget)},[]),ge=n.useCallback(A=>{B(A)},[B]),l=n.useCallback(()=>{B("groupName")},[B]),G=n.useCallback(A=>{b(A)},[b]),W=ce.users.map(A=>A.user).filter(A=>A!=null),N={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:V.common.create,isSearchOpen:he,searchPlaceHolder:V.taskManagement.taskList.searchPlaceHolder,searchText:J.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:$e,searchTextBoxStyle:{right:"108px"},onNewButtonClick:me,onSearchOpen:ve,onSearchTextChanged:v,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:ce.fetchState==="Completed"||ce.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(ps,{value:J.groupByKey,resetDisabled:J.groupByKey==="groupName",onChange:ge,onReset:l}),height:90},getFilterOptions:()=>os("task_management",W,Te.loggedInUserRole??[],u.tagList)},E=n.useCallback(A=>{de(null),P(Y),c({...e.localData,newTaskGroupName:A})},[e.localData,c]),R=n.useCallback(()=>{de(null)},[]),j=n.useCallback(()=>{F!=null&&a(F)},[F,a]),T=n.useCallback(()=>{P(Y)},[]),se=n.useCallback(A=>{ue(ut=>ut===A?null:A)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&U(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&ue(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ct=()=>te==="Error"?t.jsxs(Uo,{children:[t.jsx(_o,{onClick:d,children:t.jsx(Ko,{})}),t.jsx(Yo,{children:V.common.reloadPage.label})]}):te==="Completed"&&ye.length===0?t.jsx(xt,{message:V.taskManagement.taskList.noDataText}):te==="Not-Started"||te==="In-Progress"?t.jsx(wt,{fetchState:te}):t.jsx(Oo,{taskListView:e,tagList:be,renameActiveField:ee,updateTask:m,onDragNDrop:p,onAddNewTaskToTaskGroup:z,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:D,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:c,setActiveTaskGroupId:ne,setRenameActiveField:P,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:y,onCreateTagClick:h}),pt=t.jsx(Xt,{spendManagementSectionProps:N});return t.jsxs(Ho,{children:[t.jsx(mt,{title:V.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:je.colors.grey4,style:{zIndex:3},onBackClick:I,rightSideComponent:pt,isSearchOpen:he,source:"TaskManagementPage"}),t.jsx(Ms,{anchorEl:Ce,groupByKey:J.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:R,onNewTaskClick:M,onNewGroupClick:E,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:se,expandedTemplate:q}),t.jsx(Vo,{children:ct()}),t.jsx(H,{controller:O===!0,children:t.jsx(gt,{action:{onOkClick:j,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:V.common.cancel,primaryButtonText:V.common.confirm,titleComponent:t.jsx(Zo,{children:t.jsx(kt,{children:V.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(en,{children:t.jsx(K,{children:V.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Oo=({taskListView:e,tagList:u,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:p,onDragNDrop:a,updateLocalData:c,setShowDeleteModal:i,handleCreateGroup:d,resetLocalData:C,assignGroupToTasks:v,setGroupCreationInProgress:I,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=le(),{localData:g,taskGroupsWithTasksList:b,uiState:O}=e,[U,ee]=n.useState([]),P=n.useRef(null);ls({scrollContainerRef:P,isEnabled:L!=="small"});const F=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),ne=Tt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,F,u),[g,e.taskGroupsWithTasksList,F,u]),values:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,F,u),[g,e.taskGroupsWithTasksList,F,u])}),q=n.useMemo(()=>{if(r!==Y)return b;const l=[],G=b.map(W=>{const N=W.tasks.filter(E=>{const R=g.selectedTaskIds.includes(E.id)===!0;return R&&l.push(E),R===!1});return{...W,tasks:N}});return G.unshift({groupName:"",isDefault:!1,id:Y,tasks:l}),G},[r,b,g.selectedTaskIds]),ue=n.useCallback(l=>U.includes(q[l].id)||q[l].tasks.length===0?100:y.current?.[l]!=null?y.current[l]+Ao.rowGap.value(L):(Zt*1+es)*3+ts+ss,[U,q,L]),Ce=n.useCallback(l=>{S(l.currentTarget)},[]),de=n.useCallback((l,G)=>{y.current={...y.current,[l]:G},$.current?.resetAfterIndex(0,!0)},[L,$,b]),he=n.useCallback(l=>{ee(G=>G.includes(l)?G.filter(W=>l!==W):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ae=n.useCallback(()=>{S(null)},[]),Te=n.useCallback(()=>{ee(b.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[b]),te=n.useCallback(()=>{ee([]),$.current?.resetAfterIndex(0,!0)},[]),J=n.useCallback(()=>{I(),$.current?.scrollTo(0),ae()},[ae,I]),$e=n.useCallback(l=>{w(l),i(!0)},[w,i]),ce=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==Y?J():d(!0):r===Y?d(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,J,d,m]),ye=n.useCallback(()=>{p(null),C()},[C,p]),be=n.useCallback(l=>{C(),p(l)},[C,p]),je=n.useCallback(()=>{g.defaultTaskGroupId!=null&&v(g.defaultTaskGroupId)},[v,g.defaultTaskGroupId]),ve=async(l,G)=>{if(l.includes(nt)){const N=l.split(".")[2],E=b.flatMap(j=>j.tasks).find(j=>j.id===N),R=G[_][re][N].priority.selectedOption;if(E!=null&&R!=null){const j=Z.allTaskPriority.find(T=>T.code===R);j!=null&&h(E,{priority:j})}return}if(l.includes(at)){const N=l.split(".")[2],E=b.flatMap(j=>j.tasks).find(j=>j.id===N),R=G[_][re][N].status.selectedOption;if(E!=null&&R!=null){const j=Z.allTaskStatus.find(T=>T.code===R);E!=null&&j!=null&&h(E,{status:j})}return}if(l.includes(st)){const N=l.split(".")[2],E=b.flatMap(T=>T.tasks).find(T=>T.id===N),R=b.find(T=>T.tasks.find(se=>se.id===N))?.id,j=G[_][re][N].assignees.selectedUsers.map(T=>T.userId);R!=null&&j!=null&&E!=null&&h(E,{assignees:j});return}if(l.includes(ot)){const N=l.split(".")[2],E=b.flatMap(T=>T.tasks).find(T=>T.id===N),R=b.find(T=>T.tasks.find(se=>se.id===N))?.id,j=G[_][re][N].dueDate.date;R!=null&&j!=null&&E!=null&&h(E,{dueDate:j});return}if(l.includes(tt)){const N=l.split(".")[2],E=b.flatMap(T=>T.tasks).find(T=>T.id===N),R=b.find(T=>T.tasks.find(se=>se.id===N))?.id,j=G[_][re][N].tags.selectedOptions;R!=null&&j!=null&&E!=null&&h(E,{tagIds:j});return}l.includes(we)&&ne.trigger(l);const W=Fo(l,G,g);c(W)};n.useEffect(()=>{const l=ne.watch((G,{name:W})=>{W!=null&&G!=null&&$t(()=>ve(W,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupUpdateStatus.fetchState]);const me=b.length>1&&g.selectedTaskIds.length>0&&r!==Y,ge=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(yt,{...ne,children:t.jsx("form",{id:_e(ze),onSubmit:ne.handleSubmit(ce),style:{width:"100%"},children:t.jsx(qo,{isFooterVisible:ge,windowSize:L,children:t.jsx(bt,{children:({height:l,width:G})=>t.jsx(jt,{ref:$,outerRef:P,height:l,itemCount:q.length,itemSize:ue,estimatedItemSize:St,itemKey:W=>q[W].id,width:G,overscanCount:vt,itemData:{tagList:u,taskGroupsWithTasksList:q,uiState:O,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:be,handleOnDragNDrop:a,onCollapseToggle:he,setRowHeight:de,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Te,onDeleteTaskGroup:$e,onExpandAll:te,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B},initialScrollOffset:0,children:Wo})})})})}),ge?t.jsx(Gt,{formId:_e(ze),primaryBtn:{label:b.length===1&&g.selectedTaskIds.length>0&&r!==Y?Ne.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:ye},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(H,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(Qo,{children:[t.jsx(lt,{count:g.selectedTaskIds.length}),t.jsx(Xo,{children:g.selectedTaskIds.length>1?Ne.taskList.footer.tasksSelected:Ne.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(H,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(sn,{children:t.jsx(Ie,{enterDelay:600,title:V.taskManagement.taskList.footer.ungroup,children:t.jsx(tn,{onClick:je})})})}),showPrimaryButton:me===!1,customPrimaryButton:me?t.jsxs(t.Fragment,{children:[t.jsx(De,{variant:"secondary",label:V.taskManagement.taskList.footer.moveTo,onClick:Ce,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx(ws,{taskGroupsList:b,anchorEl:x,groupByKey:O.groupByKey,onCreateNewGroup:J,onExistingGroupSelection:l=>{ae(),v(l)},onClose:ae})]}):void 0}):null]})},Wo=({index:e,style:u,data:r})=>{const h=n.useRef(null),m=le(),{tagList:p,taskGroupsWithTasksList:a,uiState:c,renameActiveField:i,collapsedGroups:d,onCollapseToggle:C,onTaskManagementRowClick:v,setRowHeight:I,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&&I(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]),O=n.useCallback(P=>{P.preventDefault()},[]),U=(P,F)=>{P.dataTransfer.setData("row",F)},ee=()=>{B(a[e].id)};return t.jsx(Jo,{style:{...u,width:"100%"},ref:h,onDrop:b,onDragOver:O,children:t.jsx(Po,{taskGroup:a[e],showGroupName:!0,tagList:p,uiState:c,isCollapsed:d.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:ee,onTimeSpentUpdate:y,onShowToast:L,onCreateTagClick:g},a[e].id)})},Po=({taskGroup:e,tagList:u,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,userList:i,existingTaskGroupNamesByGroupId:d,onRenameClick:C,onTaskManagementRowClick:v,onCollapseToggle:I,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,onDragStart:z,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})=>{const S=le(),y=S==="medium-regular"||S==="medium-compact"||S==="small"?io:Rt;return t.jsx(y,{taskGroup:e,tagList:u,userList:i,sectionId:_,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,existingTaskGroupNamesByGroupId:d,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,onCollapseToggle:I,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onDragStart:z,onRenameClick:C,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})},Ye=(e,u,r,h)=>{const m={},p={};e.forEach(c=>{p[c.id]={[xe]:[],[pe]:u.existingTaskGroupNamesByGroupId[c.id]},c.tasks.forEach(i=>{u.selectedTaskIds.includes(i.id)&&p[c.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:Z.allTaskStatus.map(d=>({label:d.name,value:d.code}))},[nt]:{selectedOption:i.priority.code,allOptions:Z.allTaskPriority.map(d=>({label:d.name,value:d.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(d=>d.user)},[tt]:{allOptions:Nt(h),selectedOptions:i.tagIds},[we]:i.timeSpent}})});const a={[rt]:{[Y]:{[pe]:u.newTaskGroupName,[xe]:[]},...p},[re]:m};return{[_]:a}},Fo=(e,u,r)=>{if(e.includes(_)){const h=e.split(".")[2];if(e.includes(pe))return e.includes(Y)?{...r,newTaskGroupName:u[_].groupData[h][pe]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:u[_].groupData[h][pe]}};if(e.includes(xe)){const m=zt(Bt(Object.values(u[_][rt]),xe)).filter(p=>p!==V.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Vo=o.div`
|
|
433
|
+
`,Ro=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"})),V=oe.getLocalizedStrings(),_e=e=>`${e}_form`,Ao={rowGap:new Qe(ke[0],ke[5],ke[5])},{common:{footer:Ke},taskManagement:Ne}=oe.getLocalizedStrings(),xn=({taskListView:e,tagListView:u,isTaskTemplatesEnabled:r,onCreateTagClick:h,updateTask:m,onDragNDrop:p,onDeleteTaskGroup:a,updateLocalData:c,onTaskManagementRowClick:i,onReloadTasks:d,onColumnSortConfigChanged:C,onSearchTextChanged:v,onBackClick:I,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[O,U]=n.useState(!1),[ee,P]=n.useState(null),[F,ne]=n.useState(null),[q,ue]=n.useState(null),[Ce,de]=n.useState(null),[he,ae]=n.useState(!1),Te=ht(),{fetchState:te,uiState:J,filters:$e,userList:ce,taskGroupsWithTasksList:ye}=e,{tagList:be}=u,je=qe(),ve=A=>{ae(A)},me=n.useCallback(A=>{de(A.currentTarget)},[]),ge=n.useCallback(A=>{B(A)},[B]),l=n.useCallback(()=>{B("groupName")},[B]),G=n.useCallback(A=>{b(A)},[b]),W=ce.users.map(A=>A.user).filter(A=>A!=null),N={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:V.common.create,isSearchOpen:he,searchPlaceHolder:V.taskManagement.taskList.searchPlaceHolder,searchText:J.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:$e,searchTextBoxStyle:{right:"108px"},onNewButtonClick:me,onSearchOpen:ve,onSearchTextChanged:v,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:ce.fetchState==="Completed"||ce.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(ps,{value:J.groupByKey,resetDisabled:J.groupByKey==="groupName",onChange:ge,onReset:l}),height:90},getFilterOptions:()=>os("task_management",W,Te.loggedInUserRole??[],u.tagList)},E=n.useCallback(A=>{de(null),P(Y),c({...e.localData,newTaskGroupName:A})},[e.localData,c]),R=n.useCallback(()=>{de(null)},[]),j=n.useCallback(()=>{F!=null&&a(F)},[F,a]),T=n.useCallback(()=>{P(Y)},[]),se=n.useCallback(A=>{ue(ut=>ut===A?null:A)},[]);n.useEffect(()=>{e.taskGroupDeleteStatus.fetchState==="Completed"&&U(!1)},[e.taskGroupDeleteStatus.fetchState]),n.useEffect(()=>{r&&e.taskGroupTemplates.length>0&&ue(e.taskGroupTemplates[0].id)},[r,e.taskGroupTemplates]);const ct=()=>te==="Error"?t.jsxs(Uo,{children:[t.jsx(_o,{onClick:d,children:t.jsx(Ko,{})}),t.jsx(Yo,{children:V.common.reloadPage.label})]}):te==="Completed"&&ye.length===0?t.jsx(xt,{message:V.taskManagement.taskList.noDataText}):te==="Not-Started"||te==="In-Progress"?t.jsx(wt,{fetchState:te}):t.jsx(Oo,{taskListView:e,tagList:be,renameActiveField:ee,updateTask:m,onDragNDrop:p,onAddNewTaskToTaskGroup:z,onColumnSortConfigChanged:C,onTaskManagementRowClick:i,assignGroupToTasks:D,handleCreateGroup:w,resetLocalData:f,setGroupCreationInProgress:T,setShowDeleteModal:U,updateLocalData:c,setActiveTaskGroupId:ne,setRenameActiveField:P,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:y,onCreateTagClick:h}),pt=t.jsx(Qt,{spendManagementSectionProps:N});return t.jsxs(Ho,{children:[t.jsx(mt,{title:V.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:je.colors.grey4,style:{zIndex:3},onBackClick:I,rightSideComponent:pt,isSearchOpen:he,source:"TaskManagementPage"}),t.jsx(Ms,{anchorEl:Ce,groupByKey:J.groupByKey,taskGroupTemplates:e.taskGroupTemplates,taskCreationFromTemplateStatus:e.taskCreationFromTemplateStatus,isTaskTemplatesEnabled:r,onClose:R,onNewTaskClick:M,onNewGroupClick:E,handleGroupTemplateClick:L,handleGroupTemplateTaskClick:g,onNewTaskInitialization:G,onExpandTemplate:se,expandedTemplate:q}),t.jsx(Vo,{children:ct()}),t.jsx(H,{controller:O===!0,children:t.jsx(gt,{action:{onOkClick:j,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:V.common.cancel,primaryButtonText:V.common.confirm,titleComponent:t.jsx(Xo,{children:t.jsx(kt,{children:V.taskManagement.taskList.taskGroup.deleteTaskGroup})}),proceedButtonVariant:"primary",descriptionComponent:t.jsx(en,{children:t.jsx(K,{children:V.taskManagement.taskList.deleteConfirmationMessage})})})})]})},Oo=({taskListView:e,tagList:u,renameActiveField:r,updateTask:h,onTaskGroupRename:m,setRenameActiveField:p,onDragNDrop:a,updateLocalData:c,setShowDeleteModal:i,handleCreateGroup:d,resetLocalData:C,assignGroupToTasks:v,setGroupCreationInProgress:I,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=le(),{localData:g,taskGroupsWithTasksList:b,uiState:O}=e,[U,ee]=n.useState([]),P=n.useRef(null);ls({scrollContainerRef:P,isEnabled:L!=="small"});const F=n.useMemo(()=>e.userList.users.map(l=>l.user).filter(l=>l!=null),[e.userList.users]),ne=Tt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,F,u),[g,e.taskGroupsWithTasksList,F,u]),values:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,F,u),[g,e.taskGroupsWithTasksList,F,u])}),q=n.useMemo(()=>{if(r!==Y)return b;const l=[],G=b.map(W=>{const N=W.tasks.filter(E=>{const R=g.selectedTaskIds.includes(E.id)===!0;return R&&l.push(E),R===!1});return{...W,tasks:N}});return G.unshift({groupName:"",isDefault:!1,id:Y,tasks:l}),G},[r,b,g.selectedTaskIds]),ue=n.useCallback(l=>U.includes(q[l].id)||q[l].tasks.length===0?100:y.current?.[l]!=null?y.current[l]+Ao.rowGap.value(L):(Xt*1+es)*3+ts+ss,[U,q,L]),Ce=n.useCallback(l=>{S(l.currentTarget)},[]),de=n.useCallback((l,G)=>{y.current={...y.current,[l]:G},$.current?.resetAfterIndex(0,!0)},[L,$,b]),he=n.useCallback(l=>{ee(G=>G.includes(l)?G.filter(W=>l!==W):[...G,l]),$.current?.resetAfterIndex(0,!0)},[]),ae=n.useCallback(()=>{S(null)},[]),Te=n.useCallback(()=>{ee(b.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[b]),te=n.useCallback(()=>{ee([]),$.current?.resetAfterIndex(0,!0)},[]),J=n.useCallback(()=>{I(),$.current?.scrollTo(0),ae()},[ae,I]),$e=n.useCallback(l=>{w(l),i(!0)},[w,i]),ce=n.useCallback(()=>{g.selectedTaskIds.length>0?r!==Y?J():d(!0):r===Y?d(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,J,d,m]),ye=n.useCallback(()=>{p(null),C()},[C,p]),be=n.useCallback(l=>{C(),p(l)},[C,p]),je=n.useCallback(()=>{g.defaultTaskGroupId!=null&&v(g.defaultTaskGroupId)},[v,g.defaultTaskGroupId]),ve=async(l,G)=>{if(l.includes(nt)){const N=l.split(".")[2],E=b.flatMap(j=>j.tasks).find(j=>j.id===N),R=G[_][re][N].priority.selectedOption;if(E!=null&&R!=null){const j=X.allTaskPriority.find(T=>T.code===R);j!=null&&h(E,{priority:j})}return}if(l.includes(at)){const N=l.split(".")[2],E=b.flatMap(j=>j.tasks).find(j=>j.id===N),R=G[_][re][N].status.selectedOption;if(E!=null&&R!=null){const j=X.allTaskStatus.find(T=>T.code===R);E!=null&&j!=null&&h(E,{status:j})}return}if(l.includes(st)){const N=l.split(".")[2],E=b.flatMap(T=>T.tasks).find(T=>T.id===N),R=b.find(T=>T.tasks.find(se=>se.id===N))?.id,j=G[_][re][N].assignees.selectedUsers.map(T=>T.userId);R!=null&&j!=null&&E!=null&&h(E,{assignees:j});return}if(l.includes(ot)){const N=l.split(".")[2],E=b.flatMap(T=>T.tasks).find(T=>T.id===N),R=b.find(T=>T.tasks.find(se=>se.id===N))?.id,j=G[_][re][N].dueDate.date;R!=null&&j!=null&&E!=null&&h(E,{dueDate:j});return}if(l.includes(tt)){const N=l.split(".")[2],E=b.flatMap(T=>T.tasks).find(T=>T.id===N),R=b.find(T=>T.tasks.find(se=>se.id===N))?.id,j=G[_][re][N].tags.selectedOptions;R!=null&&j!=null&&E!=null&&h(E,{tagIds:j});return}l.includes(we)&&ne.trigger(l);const W=Fo(l,G,g);c(W)};n.useEffect(()=>{const l=ne.watch((G,{name:W})=>{W!=null&&G!=null&&$t(()=>ve(W,G))});return()=>{l.unsubscribe()}}),n.useEffect(()=>{e.taskGroupCreationStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupCreationStatus.fetchState]),n.useEffect(()=>{e.taskGroupUpdateStatus.fetchState==="Completed"&&p(null)},[p,e.taskGroupUpdateStatus.fetchState]);const me=b.length>1&&g.selectedTaskIds.length>0&&r!==Y,ge=g.newTaskGroupName.length>0||g.selectedTaskIds.length>0||r!==null;return t.jsxs(t.Fragment,{children:[t.jsx(yt,{...ne,children:t.jsx("form",{id:_e(ze),onSubmit:ne.handleSubmit(ce),style:{width:"100%"},children:t.jsx(qo,{isFooterVisible:ge,windowSize:L,children:t.jsx(bt,{children:({height:l,width:G})=>t.jsx(jt,{ref:$,outerRef:P,height:l,itemCount:q.length,itemSize:ue,estimatedItemSize:St,itemKey:W=>q[W].id,width:G,overscanCount:vt,itemData:{tagList:u,taskGroupsWithTasksList:q,uiState:O,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:be,handleOnDragNDrop:a,onCollapseToggle:he,setRowHeight:de,onTaskManagementRowClick:M,onColumnSortConfigChanged:k,onAddNewTaskToTaskGroup:f,onCollapseAll:Te,onDeleteTaskGroup:$e,onExpandAll:te,onTimeSpentUpdate:D,onShowToast:z,onCreateTagClick:B},initialScrollOffset:0,children:Wo})})})})}),ge?t.jsx(Gt,{formId:_e(ze),primaryBtn:{label:b.length===1&&g.selectedTaskIds.length>0&&r!==Y?Ne.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:ye},helperContainerStyle:L==="small"?{width:"100%"}:void 0,leftSideComponent:t.jsx(H,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsxs(Zo,{children:[t.jsx(lt,{count:g.selectedTaskIds.length}),t.jsx(Qo,{children:g.selectedTaskIds.length>1?Ne.taskList.footer.tasksSelected:Ne.taskList.footer.taskSelected})]})}),rightSideComponent:t.jsx(H,{controller:L!=="small"&&g.selectedTaskIds.length>0,children:t.jsx(sn,{children:t.jsx(Ie,{enterDelay:600,title:V.taskManagement.taskList.footer.ungroup,children:t.jsx(tn,{onClick:je})})})}),showPrimaryButton:me===!1,customPrimaryButton:me?t.jsxs(t.Fragment,{children:[t.jsx(De,{variant:"secondary",label:V.taskManagement.taskList.footer.moveTo,onClick:Ce,style:{width:"135px"},size:"standard",loading:e.updateTasksFetchState.fetchState==="In-Progress",reverseSpinnerColor:!1}),t.jsx(ws,{taskGroupsList:b,anchorEl:x,groupByKey:O.groupByKey,onCreateNewGroup:J,onExistingGroupSelection:l=>{ae(),v(l)},onClose:ae})]}):void 0}):null]})},Wo=({index:e,style:u,data:r})=>{const h=n.useRef(null),m=le(),{tagList:p,taskGroupsWithTasksList:a,uiState:c,renameActiveField:i,collapsedGroups:d,onCollapseToggle:C,onTaskManagementRowClick:v,setRowHeight:I,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&&I(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]),O=n.useCallback(P=>{P.preventDefault()},[]),U=(P,F)=>{P.dataTransfer.setData("row",F)},ee=()=>{B(a[e].id)};return t.jsx(Jo,{style:{...u,width:"100%"},ref:h,onDrop:b,onDragOver:O,children:t.jsx(Po,{taskGroup:a[e],showGroupName:!0,tagList:p,uiState:c,isCollapsed:d.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:ee,onTimeSpentUpdate:y,onShowToast:L,onCreateTagClick:g},a[e].id)})},Po=({taskGroup:e,tagList:u,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,userList:i,existingTaskGroupNamesByGroupId:d,onRenameClick:C,onTaskManagementRowClick:v,onCollapseToggle:I,onColumnSortConfigChanged:M,onCollapseAll:k,onExpandAll:f,onAddNewTaskToTaskGroup:w,onDeleteTaskGroup:D,onDragStart:z,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})=>{const S=le(),y=S==="medium-regular"||S==="medium-compact"||S==="small"?io:Rt;return t.jsx(y,{taskGroup:e,tagList:u,userList:i,sectionId:_,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,existingTaskGroupNamesByGroupId:d,onAddNewTaskToTaskGroup:w,onCollapseAll:k,onDeleteTaskGroup:D,onExpandAll:f,onCollapseToggle:I,onTaskManagementRowClick:v,onColumnSortConfigChanged:M,onDragStart:z,onRenameClick:C,onTimeSpentUpdate:B,onShowToast:$,onCreateTagClick:x})},Ye=(e,u,r,h)=>{const m={},p={};e.forEach(c=>{p[c.id]={[xe]:[],[pe]:u.existingTaskGroupNamesByGroupId[c.id]},c.tasks.forEach(i=>{u.selectedTaskIds.includes(i.id)&&p[c.id].selectedIds.push(i.id),m[i.id]={[at]:{selectedOption:i.status.code,allOptions:X.allTaskStatus.map(d=>({label:d.name,value:d.code}))},[nt]:{selectedOption:i.priority.code,allOptions:X.allTaskPriority.map(d=>({label:d.name,value:d.code}))},[ot]:{date:i.dueDate,showBusinessDay:!1},[st]:{allUsers:r,selectedUsers:i.assigneeUsers.map(d=>d.user)},[tt]:{allOptions:Nt(h),selectedOptions:i.tagIds},[we]:i.timeSpent}})});const a={[rt]:{[Y]:{[pe]:u.newTaskGroupName,[xe]:[]},...p},[re]:m};return{[_]:a}},Fo=(e,u,r)=>{if(e.includes(_)){const h=e.split(".")[2];if(e.includes(pe))return e.includes(Y)?{...r,newTaskGroupName:u[_].groupData[h][pe]}:{...r,existingTaskGroupNamesByGroupId:{...r.existingTaskGroupNamesByGroupId,[h]:u[_].groupData[h][pe]}};if(e.includes(xe)){const m=zt(Bt(Object.values(u[_][rt]),xe)).filter(p=>p!==V.common.all.toLocaleLowerCase());return{...r,selectedTaskIds:m}}}return r},Vo=o.div`
|
|
434
434
|
display: block;
|
|
435
435
|
height: 100%;
|
|
436
436
|
`,Ho=o.div`
|
|
@@ -457,7 +457,7 @@ import{Q as ht,u as qe,j as t,M as oe,iN as Y,aY as mt,E as H,bX as gt,s as K,J
|
|
|
457
457
|
background: ${e=>e.theme.colors.background};
|
|
458
458
|
border-radius: 50%;
|
|
459
459
|
cursor: pointer;
|
|
460
|
-
`,Ko=o(
|
|
460
|
+
`,Ko=o(Ze)`
|
|
461
461
|
height: ${s.sp5};
|
|
462
462
|
width: ${s.sp5};
|
|
463
463
|
color: ${e=>e.theme.colors.grey1};
|
|
@@ -475,14 +475,14 @@ import{Q as ht,u as qe,j as t,M as oe,iN as Y,aY as mt,E as H,bX as gt,s as K,J
|
|
|
475
475
|
top: ${s.sp0};
|
|
476
476
|
left: ${s.sp0};
|
|
477
477
|
box-sizing: border-box;
|
|
478
|
-
`,
|
|
478
|
+
`,Zo=o.div`
|
|
479
479
|
display: flex;
|
|
480
480
|
align-items: center;
|
|
481
481
|
column-gap: ${s.sp2};
|
|
482
482
|
padding-left: ${s.sp9};
|
|
483
|
-
`,
|
|
483
|
+
`,Qo=o(K)`
|
|
484
484
|
color: ${e=>e.theme.colors.primary};
|
|
485
|
-
`,
|
|
485
|
+
`,Xo=o.div`
|
|
486
486
|
padding-top: ${s.sp7};
|
|
487
487
|
padding-bottom: ${s.sp4};
|
|
488
488
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,
|
|
1
|
+
import{j as t,am as D,N as j,dk as H,aQ as L,o as a,w as q}from"./index-dX8TSOm6.js";import{n as g,b as n}from"./vendor-rkTZJa59.js";import{R as A}from"./mui-C42whWwM.js";import{V as Q}from"./CollapsableReportTable-Bm4Knvjp-CyuCgDm7.js";const U=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"})),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:"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,X=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
justify-content: flex-start;
|
|
@@ -7,7 +7,7 @@ import{j as t,aj as D,I as E,dk as H,aO as L,o as a,w as q}from"./index-RcMUg6rr
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
9
9
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
10
|
-
`,
|
|
10
|
+
`,Z=g.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
13
|
justify-content: center;
|
|
@@ -20,11 +20,11 @@ import{j as t,aj as D,I as E,dk as H,aO as L,o as a,w as q}from"./index-RcMUg6rr
|
|
|
20
20
|
}
|
|
21
21
|
cursor: ${e=>e.isEnabled?"pointer":"default"};
|
|
22
22
|
background-color: ${e=>e.isSelected?e.theme.colors.background:"transparent"};
|
|
23
|
-
`,
|
|
23
|
+
`,_=g(L)`
|
|
24
24
|
display: flex;
|
|
25
25
|
position: relative;
|
|
26
26
|
scrollbar-width: none;
|
|
27
|
-
`,
|
|
27
|
+
`,G=g(q)``,J=g.div`
|
|
28
28
|
top: ${a.sp0};
|
|
29
29
|
left: ${a.sp0};
|
|
30
30
|
width: calc(${e=>h*e.numberOfTicksSelected}px);
|
|
@@ -49,7 +49,7 @@ import{j as t,aj as D,I as E,dk as H,aO as L,o as a,w as q}from"./index-RcMUg6rr
|
|
|
49
49
|
line-height: ${a.sp0};
|
|
50
50
|
pointer-events: none;
|
|
51
51
|
box-sizing: border-box;
|
|
52
|
-
`,
|
|
52
|
+
`,K=g.div`
|
|
53
53
|
float: left;
|
|
54
54
|
margin-top: -1px;
|
|
55
55
|
cursor: pointer;
|
|
@@ -61,4 +61,4 @@ import{j as t,aj as D,I as E,dk as H,aO as L,o as a,w as q}from"./index-RcMUg6rr
|
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
pointer-events: all;
|
|
63
63
|
color: ${e=>e.theme.colors.grey5};
|
|
64
|
-
`;function v({iconPosition:e}){switch(e){case"left":return t.jsx(
|
|
64
|
+
`;function v({iconPosition:e}){switch(e){case"left":return t.jsx(U,{className:"slider-icon",fill:"currentColor"});case"right":return t.jsx(W,{className:"slider-icon",fill:"currentColor"});default:throw Error("Invalid iconPosition")}}function te(e){return A.createPortal(e.children,e.parentNode)}function re({enabled:e,firstMonthOfFY:c,timeframe:l,tick:r,tickIndex:x,isSelected:s,onClick:f}){return t.jsx(Z,{isEnabled:e,isSelected:s,onClick:()=>{f(r,x,l)},children:t.jsx(G,{children:Q(c,r,l)})})}function ne(e,c,l,r,x){const s=c-e,f=Math.floor(e/h)+Math.round(s/h),w=f+l.length-r.length,u=f+l.length,b=x-u;return{selectedTicks:{fromStart:{startIndex:f,length:l.length},fromEnd:{offsetFromEnd:b,length:l.length}},highlightedOfSelectedTicks:{startIndex:w,length:r.length}}}function ie(e){return e.startIndex!=null}function z(e,c){let l={startIndex:0,length:0};if(ie(e))l=e;else{const r=e.length;l={startIndex:c.length-e.offsetFromEnd-r+1,length:e.length}}return l}function le({width:e,firstMonthOfFY:c,timeframe:l,timeframeTicks:r,isEnabled:x,selection:s,onClick:f,onSelectionChanged:w}){const u=n.createRef(),b=n.useRef(null),[I,M]=n.useState(!1),[o,T]=n.useState(z(s.selectedTicks,r)),y=n.useRef(o.startIndex);n.useEffect(()=>{y.current=o.startIndex});const[$,C]=n.useState(s.highlightedOfSelectedTicks),O=(o.startIndex+o.length>r.length?Math.max(r.length-o.length,0):o.startIndex)*h,[S,F]=n.useState({x:O,y:0});n.useEffect(()=>{M(!0)},[]),n.useEffect(()=>{const i=z(s.selectedTicks,r);if(!j(o,i)){T(i);const d=i.startIndex*h;F({x:d,y:0})}j($,s.highlightedOfSelectedTicks)||C(s.highlightedOfSelectedTicks)},[o,$,s,r]),n.useLayoutEffect(()=>{const{startIndex:i,length:d}=o;u.current?.scrollToItem(y.current<=i?i+d-1:i)},[u,o]);const N=x!==!1,R=(i,d,m)=>{f?.(m,i)},P=(i,d)=>{const m=ne(S.x,d.x,o,$,r.length);w?.(m.selectedTicks,m.highlightedOfSelectedTicks,l,r)},B=({index:i,style:d})=>{const m=r[i],{startIndex:E,length:V}=$,Y=i>=E&&i<E+V;return t.jsx("div",{style:{...d},children:t.jsx(re,{enabled:N,firstMonthOfFY:c,timeframe:l,tick:m,tickIndex:i,isSelected:Y,onClick:R},i)})},k=document.getElementsByClassName("date-range-list")[0];return t.jsxs(t.Fragment,{children:[t.jsx(_,{ref:u,height:p,width:e,itemCount:r.length,itemSize:h,layout:"horizontal",className:"date-range-list",style:{overflowY:"hidden"},children:B}),I===!0&&k!=null?t.jsx(te,{parentNode:k,children:t.jsx(H,{axis:"x",defaultPosition:{x:0,y:0},position:S,bounds:{left:0,right:(r.length-o.length)*h},grid:[1,0],scale:1,onStop:P,nodeRef:b,children:t.jsxs(J,{numberOfTicksSelected:o.length,ref:b,children:[t.jsx(K,{children:t.jsx(v,{iconPosition:"left"})}),t.jsx(ee,{children:t.jsx(v,{iconPosition:"right"})})]})})}):null]})}function de(e){return t.jsx(X,{children:t.jsx(D,{children:({width:c})=>t.jsx(le,{...e,width:c})})})}export{p as a,de as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,o,w as p,M as u}from"./index-
|
|
1
|
+
import{j as t,o,w as p,M as u}from"./index-dX8TSOm6.js";import{n as i}from"./vendor-rkTZJa59.js";const f=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as c,j as t,C as n,w,
|
|
1
|
+
import{e as c,j as t,C as n,w,b7 as x}from"./index-dX8TSOm6.js";import{n as r}from"./vendor-rkTZJa59.js";import{y as l}from"./TimeframeSwitcher-CXQS6_Dj-pJvRjYVF.js";const a="ZeniSwitch",i={root:`${a}-root`,switchBase:`${a}-switchBase`,track:`${a}-track`,thumb:`${a}-thumb`},u=({className:e,...o})=>t.jsx(x,{...o,className:e,classes:{...i}}),p=r(u)(({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}})),$=e=>t.jsx(p,{...e}),d={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},b=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{N as V,e as _,j as t,u as f,b9 as T,az as C,ay as S,bd as E,bm as $,r as x,ae as R,$ as k,bn as H,bo as q,a3 as G,l as N,a0 as Q,o as p,w as L,ar as X,s as F,M as A,a1 as Y,a2 as J,a8 as O,al as U,am as W,a9 as Z,bp as ee}from"./index-dX8TSOm6.js";import{f as w,b as te,n as g}from"./vendor-rkTZJa59.js";import{z as ae,I as re}from"./ReloadCard-C7TwZcxr-vlQuHsih.js";import{o as oe,r as ne}from"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const ie=g(O)`
|
|
2
2
|
justify-content: space-between;
|
|
3
3
|
margin: 0;
|
|
4
4
|
height: ${e=>e.height!=null?e.height+"px":"auto"};
|
|
@@ -6,14 +6,14 @@ import{I as V,e as _,j as t,u as f,b8 as T,aw as C,av as S,bc as E,bl as k,r as
|
|
|
6
6
|
`,se=g.div``,le=g(L)`
|
|
7
7
|
color: ${e=>e.theme.colors.hero};
|
|
8
8
|
margin: ${p.sp2} ${p.sp0} ${p.sp2} ${p.sp0};
|
|
9
|
-
`,ce=({width:e,height:i,label:r})=>{const l=f();return t.jsxs(ie,{height:i,width:e,children:[t.jsx(se,{}),l.mode==="light"?t.jsx(oe,{style:{marginBottom:p.sp4}}):t.jsx(ne,{style:{marginBottom:p.sp4}}),t.jsx(le,{children:r})]})},de=g.div``;function he({allowedValues:e,timeframeSelected:i,onTimeframeChanged:r,textStyle:l}){const n=o=>A.getLocalizedStrings().timeframe[o];return t.jsx(de,{onClick:o=>o.stopPropagation(),children:t.jsx(ee,{pickerValues:e,valueToLabel:n,selectedValue:i,onPickerSelectionChanged:r,optionTextStyle:l})})}const me=g(
|
|
9
|
+
`,ce=({width:e,height:i,label:r})=>{const l=f();return t.jsxs(ie,{height:i,width:e,children:[t.jsx(se,{}),l.mode==="light"?t.jsx(oe,{style:{marginBottom:p.sp4}}):t.jsx(ne,{style:{marginBottom:p.sp4}}),t.jsx(le,{children:r})]})},de=g.div``;function he({allowedValues:e,timeframeSelected:i,onTimeframeChanged:r,textStyle:l}){const n=o=>A.getLocalizedStrings().timeframe[o];return t.jsx(de,{onClick:o=>o.stopPropagation(),children:t.jsx(ee,{pickerValues:e,valueToLabel:n,selectedValue:i,onPickerSelectionChanged:r,optionTextStyle:l})})}const me=g(Z)`
|
|
10
10
|
color: ${e=>e.theme.colors.champion};
|
|
11
11
|
`,v=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:i,cardType:r,cardIndex:l,onCardClick:n,timeframe:o,allowedValues:d,chartElement:s,onTimeframeChange:h}){const c=d.length>0?" - ":"";return t.jsx(
|
|
16
|
+
`;function ue({dimension:e,reportTitle:i,cardType:r,cardIndex:l,onCardClick:n,timeframe:o,allowedValues:d,chartElement:s,onTimeframeChange:h}){const c=d.length>0?" - ":"";return t.jsx(Y,{"data-testid":J("dashboard",`${r}-timeframe-${o}`),style:{cursor:"pointer"},dimension:e,onClick:()=>n(l,r),children:t.jsxs(O,{children:[t.jsxs(v,{style:{marginBottom:x[3]},children:[t.jsx(me,{children:i!=null?i+c:U(r)+c})," ",d.length>0?t.jsx(he,{timeframeSelected:o,onTimeframeChanged:a=>h?.(a??"month"),allowedValues:d}):null]}),t.jsx(v,{style:{width:"100%",height:"100%",cursor:"pointer"},children:t.jsx("div",{style:{width:"100%",height:"100%"},children:t.jsx(W,{children:({height:a,width:m})=>s(m,a)})})})]})})}function P({card:e,reportTitle:i,actions:r,timeframe:l,allowedValues:n,chartElement:o,onTimeframeChange:d}){return e.fetchState==="In-Progress"||e.fetchState==="Not-Started"?t.jsx(ae,{dimension:e.dimension,animated:!e.disableAnimations}):e.fetchState==="Error"?t.jsx(re,{dimension:e.dimension,cardType:e.cardType,cardIndex:e.cardIndex,onReloadData:r.onReloadData,reportTitle:i}):t.jsx(ue,{dimension:e.dimension,reportTitle:i,cardType:e.cardType,cardIndex:e.cardIndex,onCardClick:r.onCardClick,timeframe:l,allowedValues:n??["month","quarter","year"],chartElement:o,onTimeframeChange:s=>{r.onTimeframeChange?.(e.cardType,s),d?.(e.cardType,s)}})}w.memo(P);const B=(e,i,r)=>{const l=i.map(a=>({label:a.timePeriod,startDate:a.startDate,endDate:a.endDate})),n=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=n?.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:n??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;
|
|
@@ -29,10 +29,10 @@ import{I as V,e as _,j as t,u as f,b8 as T,aw as C,av as S,bc as E,bl as k,r as
|
|
|
29
29
|
height: ${p.sp4};
|
|
30
30
|
`,fe=g(L)`
|
|
31
31
|
margin-left: ${p.sp2};
|
|
32
|
-
`,ye=g(
|
|
32
|
+
`,ye=g(X)`
|
|
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
37
|
margin-right: ${p.sp2};
|
|
38
|
-
`;function je({report:e,width:i,height:r,showBarHoverBackground:l}){const n=f(),o=B(e.topExpenses.accountsOrdered.length,e.allTimePeriods,e.topExpenses),d=(s,h)=>t.jsx(E,{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:n.colors.background},children:s.map(c=>t.jsx(
|
|
38
|
+
`;function je({report:e,width:i,height:r,showBarHoverBackground:l}){const n=f(),o=B(e.topExpenses.accountsOrdered.length,e.allTimePeriods,e.topExpenses),d=(s,h)=>t.jsx(E,{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:n.colors.background},children:s.map(c=>t.jsx($,{fill:n.colors.topExCustomColor},h))},Math.random());return o.chartItems.length===0?null:t.jsx(ve,{chartItemArray:o.chartItems,showBarHoverBackground:l,barElement:d(o.chartItems,o.chartItems[0].barKey),width:i,height:r})}const we=e=>{const{barKey:i,payload:r,chartItems:l,width:n,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:n,height:b,children:t.jsxs(ge,{children:[t.jsxs(pe,{children:[t.jsx(xe,{src:s.logo,alt:s.accountDescription,loading:"lazy"}),t.jsx(fe,{children:s.accountDescription})]}),t.jsx(ye,{children:"⟶"}),t.jsx(be,{children:G("0,0",s[i])})]})})},ve=({chartItemArray:e,barElement:i,width:r,height:l})=>{const n=e[0],o=n.total,d=n.barKey;return t.jsxs(T,{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(C,{hide:!0,axisLine:!1,type:"number",domain:[s=>Math.min(0,s),o?.amount??0]}),t.jsx(S,{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})}),i]})},I=41,D=4;function Ie({report:e,width:i,height:r,showBarHoverBackground:l,isDetailPage:n}){const o=f(),d=B(n===!0?e.topExpenses.accountsOrdered.length:6,e.allTimePeriods,e.topExpenses),s=(h,c,a)=>t.jsxs(E,{dataKey:m=>{const u=m[c]!=null?m[c]:void 0;return u!=null&&u.amount>0?u.amount:0},isAnimationActive:!0,animationDuration:n===!0?800:void 0,background:void 0,children:[t.jsx(H,{dataKey:"accountDescription",position:"insideLeft",offset:8,content:m=>{const{x:u,y,value:z,height:K,offset:M}=m;return t.jsx(q,{x:u+M,y:y+K/2,fill:o.colors.hero,fontSize:k.smallRegular.fontSize,verticalAnchor:"middle",width:a-110,maxLines:1,children:z})}}),h.map(m=>t.jsx($,{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(De,{chartItemArray:d.chartItems,showBarHoverBackground:l,barElement:s(d.chartItems,d.chartItems[0].barKey,i),width:i,height:r,isDetailPage:n===!0})}const De=({chartItemArray:e,barElement:i,width:r,height:l,isDetailPage:n})=>{const o=f(),d=e[0],s=d.total,h=d.barKey,c=s?.currencySymbol??"";return t.jsxs(T,{data:e,layout:"vertical",width:r,barCategoryGap:n?D:2,height:n?e.length?(I+2*D)*e.length:l:l+5,barSize:n?I:38,margin:{top:0,right:n?x[0]:x[3],left:n?x[0]:x[3],bottom:0},style:{display:"flex",flex:"1 1 auto",cursor:n?"default":"pointer"},children:[t.jsx(C,{hide:!0,axisLine:!1,type:"number",domain:[a=>Math.min(0,a),s?.amount??0]}),t.jsx(S,{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,...k.smallRegular.cssObject},tickFormatter:a=>a!==0?R("0,0.[00]a",a,c):""}),i]})};function Te(e){const i=_();return i!=="small"&&i!=="medium-compact"&&e.isDetailPage===!0?t.jsx(je,{...e}):t.jsx(Ie,{...e})}const Ce=w.memo(Te,V);function Se(e){if(e==null||e.length===0)return!0;let i=!0;for(const r of e)if(r.balance.available.amount!==0){i=!1;break}return i}function Ee({card:e,actions:i,data:r,dndProps:l}){const[n,o]=te.useState(r?.topExTimePeriod??"last_month"),d=[...N.TOP_EX_TIME_PERIODS],s=e.fetchState==="Completed"?Se(r?.topExpenses.accountsOrdered):!1,h=(c,a)=>s===!1?t.jsx(Ce,{report:r,width:c,height:a,timeframe:n}):t.jsx(ce,{width:c,height:a,label:A.getLocalizedStrings().chartCard.no_data.top_expenses[n]});return t.jsx(Q,{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(P,{card:e,actions:i,timeframe:n,chartElement:h,allowedValues:d,onTimeframeChange:(c,a)=>o(a)})},e.cardIndex)}w.memo(Ee);export{Se as E,Ce as I,Ee as L,P as O,ce as c};
|