@zeniai/web-cockpit-ui 1.14.44-qa → 1.14.45-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-CmrHphBc-BSc57asr.js → ACHDetailsPage-Dt6biYUe-x9rtHiTM.js} +1 -1
- package/dist/assets/{AIPerformancePage-DVLZQQLx-TJL1UOFJ.js → AIPerformancePage-CM9AM70q-CVnEii0f.js} +10 -10
- package/dist/assets/{AccountInfoPage-imteGSK1-C7FNjZiy.js → AccountInfoPage-CPF9bJN8-D7BCOq_s.js} +4 -4
- package/dist/assets/{AccountInfoPageContent-DIjQnfrv-Bx8ZGbnv.js → AccountInfoPageContent-BpnR6Xwt-DVOag3Ni.js} +19 -19
- package/dist/assets/{AccountLockedInfoModal-LYiLlZrv-W5eyNZln.js → AccountLockedInfoModal-ZoEeOTMM-CFpvfMaR.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CSzw7Xdo-BUbqervM.js → AccountReconDetailsDrawerPage-CfQ2mY97-Dg9-ZXo-.js} +1 -1
- package/dist/assets/{AccountRow-DnMX1pTV-Dch-yrS1.js → AccountRow-B8_6Pf4a-BXi7G1sU.js} +13 -13
- package/dist/assets/{AccountsPromoCardStack-BY9-YdTi-DAKDIFdR.js → AccountsPromoCardStack-BiCUsUG_-CKpOKtGv.js} +11 -11
- package/dist/assets/{AddAddressForCardDrawer-BY8rla0d-DwYWRebM.js → AddAddressForCardDrawer-Dqd20TwG-CLEU-fTU.js} +1 -1
- package/dist/assets/{AddToWalletPage-BND3tkMk-B2Q1vX5B.js → AddToWalletPage-Dztl0YPb-CTUWx1Uw.js} +10 -10
- package/dist/assets/{AgingReportsPage-C1HG4wzc-BP7ywoVs.js → AgingReportsPage-B4XxsXj8-qCOhN7V-.js} +14 -14
- package/dist/assets/{AllUserItems-rYc34keO-eneNLhbV.js → AllUserItems-B0rWTi3M-q17-8wHB.js} +4 -4
- package/dist/assets/{ApAgingDetailPage-CNG6prpn-zUDMXulF.js → ApAgingDetailPage-Y9K0Ueeu-fEOm7-dZ.js} +2 -2
- package/dist/assets/{AppBasePage-Dk4672v_-BU3yLG7X.js → AppBasePage-Co9r45oA-_5jrWDUp.js} +3 -3
- package/dist/assets/{AppDrawerContent-Y99P1DCR-BotvEcVh.js → AppDrawerContent-BBI2DM1O-BZ9TCfuC.js} +13 -13
- package/dist/assets/{ApprovalRulesSettingsPage-CO8-E7dA-D4Ayb7gE.js → ApprovalRulesSettingsPage-DP26gqoH-S91hGwuF.js} +1 -1
- package/dist/assets/{ArAgingChart-CsuanjH1-C1MocSZP.js → ArAgingChart-D07CrcX6-Bb-ubg6P.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-D6CHRGxo-CwwmVZk4.js → ArAgingDetailPage-GZw1b2sA-z9jAw9p9.js} +1 -1
- package/dist/assets/{AttachmentView-B3p8mkIi-BrJeaiQh.js → AttachmentView-xH7J89rG-DOMjMRfr.js} +6 -6
- package/dist/assets/{BankAccountSection--gqsJj6B-Cl0xvfi6.js → BankAccountSection-C74XNBn5-CY0uI2wa.js} +6 -6
- package/dist/assets/{BankAccountWarningSection-BM-Bu8CI-NIomJVMY.js → BankAccountWarningSection-DISZecgw-BXaqSDbn.js} +8 -8
- package/dist/assets/{BankConnectionsSettingsPage-B_RVLsvX-Bh3jK4p-.js → BankConnectionsSettingsPage-DVfrZI5k-y_eb2M3D.js} +7 -7
- package/dist/assets/{BillDetailPage-Bu20m9VL-x6bX1pWj.js → BillDetailPage-BB2dqRCc-DDaLt-vn.js} +5 -5
- package/dist/assets/{BillPayApprovalRuleDetailPage-CR168utn-D04RgUHd.js → BillPayApprovalRuleDetailPage-DULz7z7T-DY6u14Tx.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DQbLEENj-BXlH5X6q.js → BillPayApprovalRulesPage-BRy0P1G6-VP3zI7Gw.js} +5 -5
- package/dist/assets/{BillPayPromoPage-DqUNPVeq-BY__dpe7.js → BillPayPromoPage-CbJdDHD0-DZ-M6IZC.js} +4 -4
- package/dist/assets/{BillPaySetUpPage-BO8V-KVh-BVLQO0ZS.js → BillPaySetUpPage-DqnFvCOb-BeutT-e1.js} +2 -2
- package/dist/assets/{BillingSettingsPage-clzpJwrI-aUUpavsg.js → BillingSettingsPage-BC-uZXJ5-lq1RYTMm.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-CFldRiX8-CF_81QlR.js → BillsBulkReviewDrawerPage-GdAORV0l-CHEn6W3_.js} +1 -1
- package/dist/assets/{BoxItem-CnpQOIVn-QBDxILBm.js → BoxItem-BVzRQmWm-DnawUpOb.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DKmaCoDK-BokUPZc8.js → BusinessVerificationPage-Vmjh5B5Q-DyyMw-EQ.js} +6 -6
- package/dist/assets/{CardNumberSubText-uaXIushe-mziisRlF.js → CardNumberSubText-Rjo6M8UU-CcXRlHUY.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DrW60zjw-CAOfeHjk.js → CashbackDetailPage-CiSuiJsI-CCZeXshW.js} +16 -16
- package/dist/assets/{ChargeCardDetailPage-X1HoUp96-Dq0xewvB.js → ChargeCardDetailPage-RTQvA6Uw-C4pe-icE.js} +41 -41
- package/dist/assets/{ChargeCardListPage-_0lUmAxM-FS4GdQcB.js → ChargeCardListPage-ByQZiwkP-DXG0mm5T.js} +15 -15
- package/dist/assets/{ChargeCardListTable-mfIUvL0A-BZYAUn-T.js → ChargeCardListTable-BIiwOFhF-DyaZW1I2.js} +13 -13
- package/dist/assets/{ChargeCardPromoPage-Bo2JJ5g4-Cbfgp8i_.js → ChargeCardPromoPage-DDs4hLZ8-yzbnAU_m.js} +10 -10
- package/dist/assets/{ChargeCardSetupPage-D9IikPGO-DQ37eBAM.js → ChargeCardSetupPage-C5Ay4ZmX-SxGdOPuA.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-Ck3qug5N-PNsbLhik.js → ChargeCardStatementsPage-5htSDEnC-Nw5bKfZm.js} +4 -4
- package/dist/assets/{ChargeCardUtils-BEBqV4Ri-CPRRvpNp.js → ChargeCardUtils-D8nxmniw-0B3L7zeg.js} +1 -1
- package/dist/assets/{ChaseOverlay-CauClKmi-CmKTvW2Q.js → ChaseOverlay-BsUhQ0Hl-DFaxFI1c.js} +10 -10
- package/dist/assets/CheckDepositDrawerPage-CpQke8aO-CtJ3A36H.js +206 -0
- package/dist/assets/{CollapsableReportTable-CHthdzdj-DiXbx-o4.js → CollapsableReportTable-s_gsuEBP-C1aC-SHP.js} +85 -85
- package/dist/assets/{CompanyOfficerDetailsSection-BEb3_zYO-Dqtv0jSU.js → CompanyOfficerDetailsSection-BgVQxl1Y-CwOozNod.js} +15 -15
- package/dist/assets/{CompanyPassportCard-FhjZyorS-BrEmcU5l.js → CompanyPassportCard-BA3ilbJb-BLkylNR4.js} +1 -1
- package/dist/assets/{CompanyPassportPage-BlhNB8Ah-CKfKsscn.js → CompanyPassportPage-CAsHDLIg-DHWATnhm.js} +21 -21
- package/dist/assets/{CompleteProfile-Bk9Oyn1_-DoR6qaZF.js → CompleteProfile-CYCDpreV-BIRl_rEJ.js} +1 -1
- package/dist/assets/{ConfettiBurst-DZLI1m4w-Dpj1p9Kd.js → ConfettiBurst-C6h5WEkY-CkKDQczO.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C3CFRcUl-aaHtvw8x.js → CreateOrEditVendorPage-PQOg943K-BIJqg_Xb.js} +4 -4
- package/dist/assets/{CreditCardPaymentDrawerPage-Drl9yZi5-CKvSiGF-.js → CreditCardPaymentDrawerPage-DKW50EM6-DVNOyIoX.js} +10 -10
- package/dist/assets/{CreditCardPaymentPlgSection-D-Ptzdeo-BK_hLYo8.js → CreditCardPaymentPlgSection-C5Qn4uPW--juf3I9b.js} +8 -8
- package/dist/assets/{CurrencySelectField-CTAalWEI-iuON3W6y.js → CurrencySelectField-CQuKsZt--4BzRH7ns.js} +2 -2
- package/dist/assets/{CustomerOnboardingActivationPage-BkPgpEPw-Cxokqqc5.js → CustomerOnboardingActivationPage-DltZPaG9-CuOVbV8z.js} +6 -6
- package/dist/assets/CustomerOnboardingContainerPage-BLfK3HuK-D58EIOXR.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DzG4nVbk-DUDJYwqd.js → CustomerOnboardingDetailPageSkeleton-BX1ALiCI-pRGEY_jl.js} +8 -8
- package/dist/assets/{CustomerOnboardingNoStepsPage-Czttv30c-CPtfEMDH.js → CustomerOnboardingNoStepsPage-D-_NhEaR-DoNrEgc_.js} +7 -7
- package/dist/assets/{CustomerOnboardingPage-CNXBzMG5-DzdSjywh.js → CustomerOnboardingPage-Cxw6ju1Q-iVE3rRJz.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BArjfUBb-DiIVJ-QZ.js → CustomerOnboardingProductSuitePage-B7D59sC_-ClANKKoE.js} +5 -5
- package/dist/assets/{Dashboard-DyA5sBz3-CRkt-_C_.js → Dashboard-BNvsGTf3-DfRYC8MF.js} +1 -1
- package/dist/assets/{DashboardReportPage-DvUvM8lA-TbzG3eRo.js → DashboardReportPage-CUDj-apD-ts1UyW1y.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CAa8yETt-DQCrZOMm.js → DashboardSidebarBackgroundAnimation-CqoYqd3k-CpbMxsi5.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-VZZvr2Gl-DJKdJrGG.js → DepositAccTransactionItem-By315-ia-B67a47Nt.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-xt11Y65Z-XwfRqCiv.js → DepositAccTransactionListPage-BmdduHVH-CuW0haDa.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DmE3TVQk-C-QBeWMe.js → DomesticWireDetailsPage-BycRPXWv-BEmLm9iF.js} +1 -1
- package/dist/assets/{DownloadOverlay-DBhAvmRv-Cj3ahlAG.js → DownloadOverlay-CD44fdp2-CcGw9J34.js} +12 -12
- package/dist/assets/{DrawerPage-BSy9zQ8e-VOTcl_Us.js → DrawerPage-DttoShZY-B4SEX4Vc.js} +1 -1
- package/dist/assets/{EditPeoplePage-DyaHesFS-Bus9x57q.js → EditPeoplePage-Cwz1PxMH-D0oC_7he.js} +3 -3
- package/dist/assets/{EditReimbursementDetailPage-EEKR__zQ-BoWF0JFB.js → EditReimbursementDetailPage-B8EIR_aw-BLg2ffib.js} +1 -1
- package/dist/assets/{EntityDetailPage-BECoxBfR-BiJ_8Jzz.js → EntityDetailPage-BSRVaRvy-DmyuhLfY.js} +3 -3
- package/dist/assets/{EntitySummarySection-wzMCZjZE-2-RWnlxw.js → EntitySummarySection-D3_1EeVb-4HGU6F7u.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-MlPZZ_Mz-C8FIABO0.js → ExpenseAutomationOverviewPage-BumVHdQ7-Dr0SJny6.js} +13 -13
- package/dist/assets/{ExpenseAutomationPage-mdYWsafr-BLvFXWYb.js → ExpenseAutomationPage-DL86YKcI-D7VmjVTK.js} +55 -55
- package/dist/assets/{ExpressPayPage-Dg03hVzu-Bd-Xf2bN.js → ExpressPayPage-B2ZL_U_8-Ct1T6Hqd.js} +7 -7
- package/dist/assets/{FeaturePreviewPage-BePsYONK-DM7rJpB4.js → FeaturePreviewPage-abZRtNJ_-DtOlQ1ve.js} +1 -1
- package/dist/assets/{FollowStepsSection-BqqrsOIP-DLXO6q5D.js → FollowStepsSection-UY5sAJeD-D9y-FlM_.js} +9 -9
- package/dist/assets/{GlobalReviewListPage-BVpHhHli-BA06L24b.js → GlobalReviewListPage-ao32krvU-CyxgvmBU.js} +10 -10
- package/dist/assets/{HelpButton-DXDj1Qju-6dCR8Tek.js → HelpButton-Dz3Ra_Sl-C1T3rERY.js} +4 -4
- package/dist/assets/{InformationCardStack-CauWOEJQ-DKSteiOb.js → InformationCardStack-CeLIUYk5-Cx3xXrtg.js} +1 -1
- package/dist/assets/{InsightsCardStack-C-52awo8-BWPPl14z.js → InsightsCardStack-CabSexOm-CpBekjTt.js} +8 -8
- package/dist/assets/{InsightsSection-Bq2ZlQ8--AuQEFpFd.js → InsightsSection-CaYMAnck-vZ6q8Jpt.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-CQCxjOHh-B1T5nZLs.js → IntegrationsSettingsPage-BI7RHtQ2-DWoQgO4y.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-Bi3ERJ96-C62elPax.js → InternationalWireSwiftDetailsPage-iR-F32ot-BUfcTb0n.js} +6 -6
- package/dist/assets/{InternationalWireVerificationPage-DhX_OpJ6-DhDVwdIK.js → InternationalWireVerificationPage--IRCwUc5-BK__pdsC.js} +5 -5
- package/dist/assets/{InviteFormPage-BJkMxjIE-DGYtt6Bs.js → InviteFormPage-D-YEfvJT-B46eQD-N.js} +8 -8
- package/dist/assets/{InvitePageListView-0zD-YAJA-DGIFJ6Lx.js → InvitePageListView-CNvU2ppT-BsPD9T0R.js} +20 -20
- package/dist/assets/{InvitePeoplePage-CvQNFpjb-MEqiKB1j.js → InvitePeoplePage-CteRDO3k-CzXdrj66.js} +3 -3
- package/dist/assets/{InvoiceUploadSection-BrnUjxIH-BMdRzxGt.js → InvoiceUploadSection-BQXqcLvW-YGmVjGWZ.js} +3 -3
- package/dist/assets/{IssueChargeCardPage-agEqgGPg-BMz7PYBf.js → IssueChargeCardPage-BIgcCnpo-PcUOQWwy.js} +1 -1
- package/dist/assets/{LabeledAddressValue-DphNZz4y-D0KCXzO6.js → LabeledAddressValue-CiDQX1xa-x9cH1NH3.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DBlBlkO_-DoPRS3as.js → LabeledAddressValueField-C5jrFFUs-CwCL74Dg.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CBRqbUDe-UzdHSUCG.js → LabeledControlledCheckBoxField-jqiHQZso-Y1bdaQMv.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DOjtbusw-TXDXUD5J.js → LabeledCreatableSingleSelectField-DGZvzuxH-BpSZ7zl7.js} +7 -7
- package/dist/assets/{LabeledDocumentField-Bxggz66t-Cn_PeJ5g.js → LabeledDocumentField-hUiqS32j-vbaQx3SD.js} +4 -4
- package/dist/assets/{LabeledDropDownFormattedTextField-1dqcE0E4-t0ucdhBH.js → LabeledDropDownFormattedTextField-CZdzpmL1-pUn4RDCV.js} +5 -5
- package/dist/assets/{LabeledText-BJFW2h6S-G87zH92R.js → LabeledText-DopMzeZ3-CYS48zTu.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CLzwYw4O-Cs6PJnR2.js → LabeledUserSingleSelectWithSubtitlesField-CkRg249v-BoH-kRZ0.js} +5 -5
- package/dist/assets/{LabeledZeniRolesDropDownField-DGsJbILm-CWOq9g0f.js → LabeledZeniRolesDropDownField-CwkMUU9L-CBkGnuEd.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-CvdbDO5J-Dcaiimar.js → LinkJETransactionPage-CcnQYwcu-Cpho8XzH.js} +3 -3
- package/dist/assets/{LowBalancePopup-BhLxnyK0-C1-HIC13.js → LowBalancePopup-_1OrPez7-DZkbi_Py.js} +2 -2
- package/dist/assets/{MagicLinkACHDetailsPage-CcD-_iOV-Cmloa6Sl.js → MagicLinkACHDetailsPage-DXP0qFGK-DoB9MNyO.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-C-YfhiNr-DU52Xxm4.js → MagicLinkDomesticWireDetailsPage-BycJq6br-DGH4aq0c.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DXZBFcUc-DORqbysw.js → MagicLinkInternationalWireDetailsPage-NjVjY4fp-D6XTRyzt.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-OikwemO4-2MjmaIoT.js → MagicLinkSuccessPage-y19ecMSL-Bjh9JkfG.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CcsVjT5g-m8-ZbWiA.js → MagicLinkTitleSection-CdijIZYn-kUHi3mP3.js} +4 -4
- package/dist/assets/{MailingDetailsSection-ClULuPML-c4uvK-xV.js → MailingDetailsSection-Cw-CO-oE-9IZJYTUD.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-DJHrBVXi-YYH5fhwe.js → MeetingCalenderPopup-CQ2sUCtg-BBwyYnnQ.js} +1 -1
- package/dist/assets/{Menu-C3EXvt9P-HAcVl0uR.js → Menu-Cz6zGt86-BijWmw2b.js} +3 -3
- package/dist/assets/{MyBankConnectionsSettingsPage-Cn-dlR5V-D5W9TQDI.js → MyBankConnectionsSettingsPage-DRmOdZ9_-D1GaIeKu.js} +7 -7
- package/dist/assets/{MyPendingActivationChargeCardListPage-B3xeafnf-LCbTSPzT.js → MyPendingActivationChargeCardListPage-CtFUm3NW-ChKpZI-w.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CcyS0ijJ-CTU0B5fO.js → MyProfileSettingsPage-ejULQTzV-CUdJEZnq.js} +7 -7
- package/dist/assets/{NavBarWithPicker-C3MsVwsg-BuAxA6W9.js → NavBarWithPicker-C-QfNv7i-BGeKGKav.js} +3 -3
- package/dist/assets/{NavigationArrow-DSMn_azz-Bn7cke7g.js → NavigationArrow-kQmX-M7U-Qn8Td-4a.js} +1 -1
- package/dist/assets/{NavigationDots-BiiEFlFj-xZJ5-o7_.js → NavigationDots-nUALE4y--DPaRfQ3k.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DJ0zT8Xy-Cj0gRV8r.js → NewGlobalMerchantPage-D1NQ_h-e-CCmfop3O.js} +5 -5
- package/dist/assets/{NoDataChart-O6Mg_gf4-BzMtzTAz.js → NoDataChart-BmcrokSp-mktpp4Ge.js} +4 -4
- package/dist/assets/{NoDataTable-BgKg_U0s-CmmkF752.js → NoDataTable-BKAiKOOM-BMD8AGW2.js} +1 -1
- package/dist/assets/{NotFoundPage-DA6cvlNW-DlMJJWcU.js → NotFoundPage-B-wGvM-5-CoGsI8QE.js} +3 -3
- package/dist/assets/{NotificationSettingsPage-BwqCG-6J-DWqf_cVg.js → NotificationSettingsPage-BKQcK-_r-CZ2o6aQV.js} +4 -4
- package/dist/assets/{NotificationsListConfig-DqM-Z8oE-CAKzU3R_.js → NotificationsListConfig-C5pyiij--CMy_5rqB.js} +1 -1
- package/dist/assets/{NotificationsPage-iYF222-C-DUKthO_-.js → NotificationsPage-kpBbd-do-DQ3PZPcz.js} +13 -13
- package/dist/assets/{OpExByVendorPage-BwekpbHo-BjGBd6JN.js → OpExByVendorPage-CWi3CBRt-C5BCEXdz.js} +4 -4
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-BQsfSCAm.js → OverlayContainerPage-Bmu909Fo-A-nPKfyl.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-B7IxSSMo-BTaoWXQH.js → PandLWithForecastPage-DyWdR8ii-sU4Bj-a8.js} +5 -5
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CJk4EUwr-ABl4cOzL.js → PaymentAccountSetupBillingAddressSection-Cq7pdtPH-CzJADBF9.js} +8 -8
- package/dist/assets/{PeoplePage-97Qe6dqr-DdMIC7eB.js → PeoplePage-CPaoZBpL-Dgke3QJy.js} +25 -25
- package/dist/assets/{PortfolioAllocationFormPage-Df2lZK30-l0pxfNTg.js → PortfolioAllocationFormPage-DX6o84wl-DSlUdRlT.js} +3 -3
- package/dist/assets/{PortfolioDetails-CGVqC5q--CSueTA8J.js → PortfolioDetails-C1iLJHLZ-CesK17A1.js} +1 -1
- package/dist/assets/{ProductsCarousel-DqvLLayZ-CS-GjIhF.js → ProductsCarousel-DjFdVKD1-hE-u6a08.js} +1 -1
- package/dist/assets/{PromoBaseCards-Bq-mwvkh-p9T1FVNn.js → PromoBaseCards-CizR6Pvp-CqSOUop-.js} +2 -2
- package/dist/assets/{QBOConnectionDialog-DWZd5o0q-K6Wt7Neh.js → QBOConnectionDialog-2HqFAb-Q-sQRSSCIF.js} +4 -4
- package/dist/assets/{QBOSetupSection-B_V2Y6DW-BLaB9-z0.js → QBOSetupSection-9O9ML9R8-BXn0JWS0.js} +4 -4
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-hWUoXT59-Y3oG-ekm.js → ReimbursementApprovalRuleDetailPage-CQOS4wJ2-zxPk7wqx.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-C20mPnJH-DBrdoBR7.js → ReimbursementApprovalRulesPage-VuQN7m71-BZUH-GLu.js} +4 -4
- package/dist/assets/{ReimbursementDetailPage-DAVdVUp0-DebCxtKg.js → ReimbursementDetailPage-D2pO4hgr-vjcNMRqh.js} +6 -6
- package/dist/assets/{ReimbursementPromoPage-TKdLARUD-DsJNpIcv.js → ReimbursementPromoPage-D3p8iwHa-z2IAojJU.js} +9 -9
- package/dist/assets/{ReimbursementSetUpPage-CW10ZPs7-CIw76iEF.js → ReimbursementSetUpPage-OR8ECt9X-Bx512tje.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-_rgixsBG-BMXQONLy.js → ReimbursementsBulkReviewDrawerPage-DhjfNcO4-DvhEuIE0.js} +1 -1
- package/dist/assets/{ReloadCard-Bzt6gIzi-D5O4Gcf_.js → ReloadCard-NvfxlEQu-BnXQfMVk.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-CPc3yRAI-BKmgR9zr.js → ReportTableViewSelector-B599qAeN-BwwOFFi3.js} +1 -1
- package/dist/assets/{ReportsPage-DIHjl3Xd-DULYM4bB.js → ReportsPage-Bc-rf7lL-BubUWknL.js} +1 -1
- package/dist/assets/{RevenueChart-MkoD0EoE-D92CgGXq.js → RevenueChart-BtTx8haN-Ci6KFTHz.js} +12 -12
- package/dist/assets/{ReviewDetailsPage-B96vIWt9-BUkzSnt4.js → ReviewDetailsPage-Bm9qlI1L-DnX2Wm0A.js} +5 -5
- package/dist/assets/{ReviewOverlay-CKOAcLzJ-BPHtj3ml.js → ReviewOverlay-C90OnldQ-BJwck8Vp.js} +9 -9
- package/dist/assets/{RoleWithToolTip-BiydziFE-VYITxPfh.js → RoleWithToolTip-Cav6Dtwi-DQjRjWwX.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Ce2BDLCX-CXENWEZF.js → ScheduleDetailsFixedAssetsPage-BIbtbzlS-Dq-JIBXg.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-ClK-ymjD-DRsYGv0y.js → ScheduleDetailsPage-BSVBoMe5-DfcysezY.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-BOFaTbv5-CCscivOS.js → ScheduleSequenceTable-C9IcAd6X-B0s-FwXu.js} +5 -5
- package/dist/assets/{ScreenRoutes-CUUBxQES.js → ScreenRoutes-C_yyAtD4.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DPEjJt-s-BxHjDLDI.js → SetUpAccountSection-Daj9lEze-CHRC6PUj.js} +4 -4
- package/dist/assets/{SetUpDefaultSection-Br-a1ECs-BuLgUcqJ.js → SetUpDefaultSection-CKg9xvyM-V31Vr9Jm.js} +2 -2
- package/dist/assets/{SignIn-B7p2vrI4-CBu4DRgp.js → SignIn-BFm1M4_6-R5KiOJ_3.js} +18 -18
- package/dist/assets/{SignInScreen-Dum3srgp.js → SignInScreen-CPbq6PuC.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Ds1WRCNc-B03dml86.js → SpendManagementListViewPage-D6fZPLMz-Z_0NC1QS.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-uBi60ESx-Dq7iQQx4.js → SpendManagementPerTabPage-jQjzrKl2-CR9tWVBr.js} +18 -18
- package/dist/assets/{SpendManagementSection-CESND8ho-DCrlaUqA.js → SpendManagementSection-BaiWgwp--Dp3HO5CH.js} +5 -5
- package/dist/assets/{SpendMgmtSetupAccountSection-CiPoUdg_-CelUMY-y.js → SpendMgmtSetupAccountSection-BUSFBsmA-Wg-n8Wde.js} +7 -7
- package/dist/assets/{StatementItem-BSfAH9fl-diu3-gbg.js → StatementItem-BeGyTVOf-Ccqz_NBL.js} +4 -4
- package/dist/assets/{StatementsPage-BQ-wkg9f-DMW87IGZ.js → StatementsPage-2uPMvTEy-De7Uac1v.js} +1 -1
- package/dist/assets/{StatusSwitcher-CoX1TvcC-B2wGlPZJ.js → StatusSwitcher-CwLbXjIU-CJO3kP8v.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C4Kvmep7-DJj8T55V.js → SubTabSwitcher-D3bFqk8P-DL4oUfiQ.js} +1 -1
- package/dist/assets/{SummaryCard-Cdh_w38m-yg2TCiEc.js → SummaryCard-BNrQ7g3--CGMMw0Tk.js} +1 -1
- package/dist/assets/{TaskManagementPage-CCiARHPO-CeRR-xF8.js → TaskManagementPage-Y58wtgRN-CUHNN86c.js} +15 -15
- package/dist/assets/{TimeRangeSwitcher-CMNnx0hW-DfOU0-FY.js → TimeRangeSwitcher-CQd079aU-C6Twt9kC.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BAkn3cys-dF_t-50z.js → TimeframeSwitcher-Du60ffZv-BeSFHMlL.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-Bp8FBsnD-NXYHSu6I.js → TimeframeSwitcherWithToggle-DPManiX8-CS5OwAMc.js} +1 -1
- package/dist/assets/{TopExCard-CH7QX8Xe-Dq7lj8sK.js → TopExCard-sH5ZVrBJ-i2TO4vcJ.js} +2 -2
- package/dist/assets/{TopExDetailPage-CJuOpApW-D7FKWD-V.js → TopExDetailPage-DiOHO_q9-BJm1edqQ.js} +11 -11
- package/dist/assets/{TransactionDetailPage-280hbOwA-B8cgDD3N.js → TransactionDetailPage-NaMbYUr8-Da3GPc9Y.js} +13 -13
- package/dist/assets/{TransactionList-BV18tWaE-BQKRF29H.js → TransactionList-Bsma20IC-CJ7iiCLF.js} +4 -4
- package/dist/assets/{TransactionListBig-DmVgWxvf-DHGIWOoC.js → TransactionListBig-BwMUiFzK-_BeDx_E5.js} +10 -10
- package/dist/assets/{TransactionListPage-CE61eqZh-vtVmAgv2.js → TransactionListPage-BRKVdJ4P-D3ULhVil.js} +4 -4
- package/dist/assets/{TransactionVendorDetailPage-CKRUJzG5-D3thb3cP.js → TransactionVendorDetailPage-DuJ1piCd-Z4okEL-Q.js} +3 -3
- package/dist/assets/{TransferDrawerPage-DdIXX8dR-DrExDhl3.js → TransferDrawerPage-PmiYXfAU-BQhQZtnl.js} +15 -15
- package/dist/assets/{TreasuryOverviewPage-D9NcFBhg-iy_GLL-M.js → TreasuryOverviewPage-M6fv3b34-CcznAXU3.js} +101 -104
- package/dist/assets/{TreasuryPromoPage-BKXMayjO-B4uiGon7.js → TreasuryPromoPage-D48c4Ulh-B2QYQTc4.js} +12 -12
- package/dist/assets/{TreasurySetupPage-Bo24F7wL-DuPfGbF_.js → TreasurySetupPage-BPsw-DhK-BqfOjb-x.js} +4 -4
- package/dist/assets/{TreasuryStatementsPage-DUKtmwwf-D1_Zhdj-.js → TreasuryStatementsPage-BEun-dwQ-D-vCxxYM.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-vqThZpY5-DG75nAAt.js → TreasuryTaxLetterPage-CsQ5biUP-CG-uin7p.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-1Kqod57a-DA3XAHpW.js → TreasuryTransferOrReviewPage-CxhE8fh7-Cf05TRJh.js} +39 -39
- package/dist/assets/{TrendChart-uCE73Vf8-XEufcUTW.js → TrendChart-CkUKN6L9-CYj8AG4h.js} +3 -3
- package/dist/assets/{TrendWithTransactions-lNYrtUkf-CsE_Q_OW.js → TrendWithTransactions-4pDf20tw-Bfat4sT9.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-CbLMkBab-DyTfUg06.js → UncategorizedAccountsMappingPage-DZBy-Goh-5f67nsQo.js} +7 -7
- package/dist/assets/{UnitIntegrationPage-DzfchgLS-CZgF7SP-.js → UnitIntegrationPage-DG-KGQDb-BLUtVLjp.js} +2 -2
- package/dist/assets/{UploadAdditionalDocumentOverlay-CJwjYpvy-DECImHlx.js → UploadAdditionalDocumentOverlay-DrZAnHqz-c6P-4NDi.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BDatjVhv-DiVAW67d.js → Vendor2FAPopup-CaiUvPMo-By8aU9uB.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BTo9s38E-DN6GrIjX.js → VendorACHDetailsPage-CHoh0E0P-EqmntQKd.js} +1 -1
- package/dist/assets/{VendorDetailPage-DOdRZKwE-DrZ4pQ2p.js → VendorDetailPage-CroHdVMA-C-Wc1kYJ.js} +9 -9
- package/dist/assets/{VendorDomesticWireDetailsPage-Ch_HedkY-DDDapGI9.js → VendorDomesticWireDetailsPage-DC17Qom9-C3oEikuC.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-ChgTi2cq-osgHnUPX.js → VendorFiling1099EditablePage-Bom6X8Sg-DHjxnakQ.js} +14 -14
- package/dist/assets/{VendorFirstReviewPage-C_HBOo29-Cun14S2s.js → VendorFirstReviewPage-6eptnez2-B7div4WL.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-Ct42LbtQ-DOq8ZA0S.js → VendorInternationalWireDetailsPage-C_CH7xDF-fHUjobrM.js} +9 -9
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CalHOqYH-DlK1SL0S.js → VendorInternationalWireSwiftDetailsPage-BEzPWQbD-DdQpKH5i.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Briqd_pt-BkWk4En6.js → VendorsAccountsSection-Z-ebKmVQ-DbcI_-8-.js} +2 -2
- package/dist/assets/{VerifyDevice-DxP4a4YR-hED-bTkI.js → VerifyDevice-76nFunfs-3WPg6QL8.js} +1 -1
- package/dist/assets/{VideoPlayer-DqRss8fV-B4rpzoFE.js → VideoPlayer-CV7o-_bq-BWNDFwag.js} +1 -1
- package/dist/assets/{VideoPopup-CwEiOVHQ-SE5re7pU.js → VideoPopup-CbaFtkFn-BG3oU3yl.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-Cdd0mag5-Bja6dfag.js → WarningsDrawerPage-Bg7iDQqy-BITRncLa.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-5sn9Wphj-CqKMTn67.js → ZeniAccountDetailPage-DYidbJtT-qtM4JbUS.js} +14 -14
- package/dist/assets/{ZeniAccountListViewPage-BLCYWphf-DSieyxJQ.js → ZeniAccountListViewPage-CVkzRUil-DQ8A3VZl.js} +7 -7
- package/dist/assets/{ZeniAccountNavBarPieces-Cwo5QtoT-0DDIjO4b.js → ZeniAccountNavBarPieces-DaHGosco-D-yA-Drc.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CKQOu6Ab-B0_2BOIj.js → ZeniAccountPromoPage-CXr_ud4S-C9YOWT8M.js} +10 -10
- package/dist/assets/{ZeniAccountSetupPage-BW1l7qJf-KyzYMO16.js → ZeniAccountSetupPage-Bqng7laZ-DKzqXw5c.js} +4 -4
- package/dist/assets/{ZeniCopyright-B6fSw5kZ-BEYdzvFL.js → ZeniCopyright-1d-n5uOX-ChnFnWfn.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DgkjDK9D-C-vYTTkf.js → ZeniTransferAmountSlider-C63JbsJx-BbpyFTKu.js} +4 -4
- package/dist/assets/{analyticsHelper-sMuDd6mq.js → analyticsHelper-Cjbr9XB0.js} +1 -1
- package/dist/assets/{analyticsHelper-BIYs-BU5-DiR7zn-J.js → analyticsHelper-I0lsXzXl-DMfD2BoN.js} +1 -1
- package/dist/assets/{chartTypes-BFc-FQm9-DH8jC-PX.js → chartTypes-D1Bn4xHa-xYwPwpPb.js} +1 -1
- package/dist/assets/{commonDimensions-B_ShoU61-DERccKE1.js → commonDimensions-0W6wokPG-Cd83l0QX.js} +1 -1
- package/dist/assets/{detailCommon-CoFrLjgw-DYR8VDfk.js → detailCommon-CtOYz9rQ-C2GqRiaA.js} +6 -6
- package/dist/assets/{downloadPdf-yID9qiGz-DQvfiOaT.js → downloadPdf-BZd85Ssn-CFK_x6gO.js} +1 -1
- package/dist/assets/{index-BKug3-eP.js → index-0QGih61V.js} +1871 -1871
- package/dist/assets/{mapLoadingInProgressToTreeNode-xaG_j34l-BbRC2p3V.js → mapLoadingInProgressToTreeNode-CMYVZuQF-Dz_C0WS4.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Cf1Q8iLQ-Dl9HYo3q.js → mapSectionWithAcOnlyToTreeNode-DTb8IvgM-B1dWpiWC.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CiLMcagY-B9z3eGZE.js → mapSpacerToTreeNode-B_jfScE8-BZjIqfg0.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-VuMYRsaA-Bkr18cUs.js → mapTimeframeBalancesToTreeNode-BEOhNOy1-DAEXm4ZG.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BpcCExFt-aaQ9hedR.js → mapTimeframeBalancesToTreeNode-Gxa-yiq_-Dyh-lexC.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Cfz6o8XS-DipjgrJy.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BD4cN4l4-6Aq9xydh.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CL2W-2Ks-BJ5hpOjH.js → toCOABalancesWithID-BVyQC9pt-C2mN3lRp.js} +1 -1
- package/dist/assets/{toChartData-CD4rOlNx-CQ_TJxU1.js → toChartData-BRdwPc1X-CHkEigWV.js} +1 -1
- package/dist/assets/{treasuryColorHelper-DHqBe6al-lMeWD10s.js → treasuryColorHelper-DrayAnYl-DEH_6Uhe.js} +1 -1
- package/dist/assets/{uploadAttachment-Bqf6VI3L-BGJCHQ2n.js → uploadAttachment-Cx3js1c7-BXnz9UFJ.js} +16 -16
- package/dist/assets/{uploadReceipts-dxsKhm9I-DS2NFPcM.js → uploadReceipts-dxsKhm9I-DUj1wGX2.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CheckDepositDrawerPage-DmszT7bh-1ikOwRZW.js +0 -206
- package/dist/assets/CustomerOnboardingContainerPage-BAZbPHa2-AeHBObO9.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as z,u as _,R as L,j as o,bT as H,o as r,gs as ie,q as B,Q as ce,v as J,b3 as Z,C as ee,gt as de,gu as pe,cx as te,b4 as M,ap as ue,w as oe,gv as he,b1 as re,Y as ge,gw as me,gx as xe,
|
|
1
|
+
import{e as z,u as _,R as L,j as o,bT as H,o as r,gs as ie,q as B,Q as ce,v as J,b3 as Z,C as ee,gt as de,gu as pe,cx as te,b4 as M,ap as ue,w as oe,gv as he,b1 as re,Y as ge,gw as me,gx as xe,x as N,ao as fe,l as A,gy as ye,B as Ce,gz as be,gA as ve,f as we,cu as $e,bg as Se,fz as je,m as ke,g as V,a3 as Le,fA as Oe,a6 as Ee}from"./index-0QGih61V.js";import{b as a,n as l,k as Ie}from"./vendor-rkTZJa59.js";const Ae=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
@@ -17,11 +17,11 @@ import{e as z,u as _,R as L,j as o,bT as H,o as r,gs as ie,q as B,Q as ce,v as J
|
|
|
17
17
|
column-gap: ${r.sp2};
|
|
18
18
|
width: 100%;
|
|
19
19
|
min-height: ${r.sp4};
|
|
20
|
-
`,
|
|
20
|
+
`,Pe=l.div`
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: center;
|
|
23
23
|
column-gap: ${r.sp1};
|
|
24
|
-
`,
|
|
24
|
+
`,De=l.div`
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
27
|
column-gap: ${r.sp2};
|
|
@@ -52,7 +52,7 @@ import{e as z,u as _,R as L,j as o,bT as H,o as r,gs as ie,q as B,Q as ce,v as J
|
|
|
52
52
|
`,Ye=l(Ee)`
|
|
53
53
|
overflow: hidden;
|
|
54
54
|
text-overflow: ellipsis;
|
|
55
|
-
`,Ge=({options:e,value:t,placeHolder:n,filterCategoryType:i,searchAutoCompleteData:p,searchAutoCompleteActions:s,onChange:C})=>{const y=_(),h=ve(y),[b,x]=a.useState(e);a.useEffect(()=>{i==="searchAutocomplete"&&p?.entityAutoCompleteView.fetchState==="Completed"&&x(d=>ye([...d,...p?.entityAutoCompleteView!=null?qe(p?.entityAutoCompleteView):[]],"value"))},[p?.entityAutoCompleteView.fetchState]);const S=i==="searchAutocomplete"?t.map(d=>({label:d,value:d})):t.map(d=>b.find(f=>f.value===d)),v=a.useRef(Ce(d=>s?.onAutoCompleteInputChange?.(d),500,{trailing:!0})).current,j=p?.entityAutoCompleteView.fetchState,O={options:e,filterCategoryType:i,searchAutoCompleteStatus:j},$=L.getLocalizedStrings().common.filters;return o.jsx(ze,{children:i==="dateRange"?o.jsx(be,{onDateRangeChange:d=>{C([{label:$.startDate,value:d.startDate??""},{label:$.endDate,value:d.endDate??""}])},selectedDates:t}):o.jsxs(_e,{children:[S.length===0&&i==="user"&&o.jsx(Ve,{}),o.jsx(Z,{...O,isMulti:!0,hideSelectedOptions:!1,value:S,onInputChange:d=>{i==="searchAutocomplete"&&v(d)},onChange:d=>{C(d)},placeholder:n,options:b,styles:h,menuPosition:"fixed",components:{Option:Ke,MultiValueLabel:Qe,MultiValueRemove:Xe},filterOption:(d,f)=>Ze(d,f,i),noOptionsMessage:()=>Je(i,j)})]})})},qe=e=>(e?.vendor.map(t=>({label:t.name,value:t.name}))??[]).sort((t,n)=>(t.label??"").localeCompare(n.label??"")),Qe=e=>{const{selectProps:t}=e,{options:n,filterCategoryType:i}=t,p=n.findIndex(s=>s.value===e.data.value);return o.jsx(M.MultiValueLabel,{...e,children:o.jsxs(
|
|
55
|
+
`,Ge=({options:e,value:t,placeHolder:n,filterCategoryType:i,searchAutoCompleteData:p,searchAutoCompleteActions:s,onChange:C})=>{const y=_(),h=ve(y),[b,x]=a.useState(e);a.useEffect(()=>{i==="searchAutocomplete"&&p?.entityAutoCompleteView.fetchState==="Completed"&&x(d=>ye([...d,...p?.entityAutoCompleteView!=null?qe(p?.entityAutoCompleteView):[]],"value"))},[p?.entityAutoCompleteView.fetchState]);const S=i==="searchAutocomplete"?t.map(d=>({label:d,value:d})):t.map(d=>b.find(f=>f.value===d)),v=a.useRef(Ce(d=>s?.onAutoCompleteInputChange?.(d),500,{trailing:!0})).current,j=p?.entityAutoCompleteView.fetchState,O={options:e,filterCategoryType:i,searchAutoCompleteStatus:j},$=L.getLocalizedStrings().common.filters;return o.jsx(ze,{children:i==="dateRange"?o.jsx(be,{onDateRangeChange:d=>{C([{label:$.startDate,value:d.startDate??""},{label:$.endDate,value:d.endDate??""}])},selectedDates:t}):o.jsxs(_e,{children:[S.length===0&&i==="user"&&o.jsx(Ve,{}),o.jsx(Z,{...O,isMulti:!0,hideSelectedOptions:!1,value:S,onInputChange:d=>{i==="searchAutocomplete"&&v(d)},onChange:d=>{C(d)},placeholder:n,options:b,styles:h,menuPosition:"fixed",components:{Option:Ke,MultiValueLabel:Qe,MultiValueRemove:Xe},filterOption:(d,f)=>Ze(d,f,i),noOptionsMessage:()=>Je(i,j)})]})})},qe=e=>(e?.vendor.map(t=>({label:t.name,value:t.name}))??[]).sort((t,n)=>(t.label??"").localeCompare(n.label??"")),Qe=e=>{const{selectProps:t}=e,{options:n,filterCategoryType:i}=t,p=n.findIndex(s=>s.value===e.data.value);return o.jsx(M.MultiValueLabel,{...e,children:o.jsxs(Pe,{children:[ne(e.data.photo,e.data.label.split(" ")[0],e.data.label.split(" ")[1]!=null?e.data.label.split(" ")[1]:"",p,i),o.jsx(Ye,{children:e.children})]})})},Ke=e=>{const{onMouseMove:t,onMouseOver:n,isSelected:i,...p}=e.innerProps,{options:s,filterCategoryType:C}=e.selectProps,y=s.findIndex(b=>b.value===e.data.value),h={...e,innerProps:p};return o.jsx(M.Option,{...h,children:o.jsxs(He,{children:[o.jsxs(De,{children:[ne(e.data.photo,e.data.label.split(" ")[0],e.data.label.split(" ")[1]!=null?e.data.label.split(" ")[1]:"",y,C),o.jsx(oe,{children:e.label})]}),e.isSelected&&o.jsx(We,{})]})})},Xe=e=>o.jsx(M.MultiValueRemove,{...e,children:o.jsx(Ue,{})}),Je=(e,t)=>{const n=L.getLocalizedStrings().common.filters;if(e==="searchAutocomplete"){if(t==="In-Progress")return o.jsx(ke,{size:"Small-Compact",start:!0});if(t==="Not-Started")return null;if(t==="Completed")return o.jsx(V,{children:n.noMatchesFound})}return o.jsx(V,{children:n.noOptions})},ne=(e,t,n,i,p)=>p!=="user"?null:e==null?o.jsx(Oe,{firstName:t,lastName:n,size:`${r.sp3}`,index:i,fontSize:"9px"}):o.jsx(Ne,{src:e.href,alt:L.getLocalizedStrings().common.filters.userProfileAltText,onError:({currentTarget:s})=>{s.onerror=null,s.src=Be},loading:"lazy"}),Ze=(e,t,n)=>n==="user"&&e.data.email!=null?e.data.label.toLowerCase().includes(t.toLowerCase())||e.data.email.toLowerCase().includes(t.toLowerCase()):e.data.label.toLowerCase().includes(t.toLowerCase()),T={categoryCombinationOperator:"AND",categories:[]},le={valuesCombinationOperator:"ANY",values:[],matchingOperator:"equal"},R=(e,t)=>{switch(e){case"bill_pay":return A.BILL_PAY_FILTER_CATEGORIES;case"reimbursement":return A.hideCreatedByFilter(t)?A.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED:A.REIMBURSEMENT_FILTER_CATEGORIES;case"task_management":return A.TASK_LIST_FILTER_CATEGORIES}},F=(e,t)=>{if(e==="bill_pay"){const n=t;return L.getLocalizedStrings().spendManagement.filters.filterCategories.bills[n]}if(e==="reimbursement"){const n=t;return L.getLocalizedStrings().spendManagement.filters.filterCategories.reimbursements[n]}if(e==="task_management"){const n=t;return L.getLocalizedStrings().spendManagement.filters.filterCategories.taskManagement[n]}return""},et=({currentFilters:e,selectedOption:t,categoryIndex:n})=>e.categories==null||e.categories.length===0?{categoryCombinationOperator:"AND",categories:[{...le,field:t.value}]}:{...e,categories:e.categories.map((i,p)=>p!==n?i:{...i,field:t.value,values:[]})},tt=({currentFilters:e,selectedOption:t,categoryIndex:n})=>e.categories==null||e.categories.length===0?e:{...e,categories:e.categories.map((i,p)=>p!==n?i:{...i,matchingOperator:t.value})},ot=({currentFilters:e,selectedOptions:t,categoryIndex:n})=>e.categories==null||e.categories.length===0?e:{...e,categories:e.categories.map((i,p)=>p!==n?i:{...i,values:t.map(s=>s.value)})},rt={width:new ee(215,315)},U=l.div`
|
|
56
56
|
display: flex;
|
|
57
57
|
flex-direction: column;
|
|
58
58
|
row-gap: ${r.sp4};
|
|
@@ -157,7 +157,7 @@ import{e as z,u as _,R as L,j as o,bT as H,o as r,gs as ie,q as B,Q as ce,v as J
|
|
|
157
157
|
`,xt=l.div`
|
|
158
158
|
padding-left: ${r.sp4};
|
|
159
159
|
padding-right: ${r.sp4};
|
|
160
|
-
`,ft=({entity:e,filters:t,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:i,disableFilters:p=!1,transactionsLoaded:s=!0,createdByUserListLoaded:C=!0,analytics:y,groupByFiltersComponent:h,onFiltersChange:b,getCategoryWiseOptions:x})=>{const S=a.useRef(null),[v,j]=a.useState(!1),O=a.useRef(!1),[$,d]=a.useState({bill_pay:{},reimbursement:{},task_management:{}}),[f,E]=a.useState("auto"),c=a.useRef(null),u=z(),g=a.useCallback(()=>{j(!1)},[]),k=L.getLocalizedStrings().common.strings.empty,m=a.useCallback(()=>{e!=="task_management"&&y?.trackSpendManagmentFilterClick(e),p===!1&&j(!0)},[p,y,e]);a.useEffect(()=>{x&&Object.keys($[e]).length===0&&C&&s&&d(I=>({...I,[e]:x()}))},[e,$,s,C]);const w=a.useCallback(()=>{if(t?.categories==null||t.categories.length===0)return h!=null?88+h.height:88;const I=c.current,
|
|
160
|
+
`,ft=({entity:e,filters:t,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:i,disableFilters:p=!1,transactionsLoaded:s=!0,createdByUserListLoaded:C=!0,analytics:y,groupByFiltersComponent:h,onFiltersChange:b,getCategoryWiseOptions:x})=>{const S=a.useRef(null),[v,j]=a.useState(!1),O=a.useRef(!1),[$,d]=a.useState({bill_pay:{},reimbursement:{},task_management:{}}),[f,E]=a.useState("auto"),c=a.useRef(null),u=z(),g=a.useCallback(()=>{j(!1)},[]),k=L.getLocalizedStrings().common.strings.empty,m=a.useCallback(()=>{e!=="task_management"&&y?.trackSpendManagmentFilterClick(e),p===!1&&j(!0)},[p,y,e]);a.useEffect(()=>{x&&Object.keys($[e]).length===0&&C&&s&&d(I=>({...I,[e]:x()}))},[e,$,s,C]);const w=a.useCallback(()=>{if(t?.categories==null||t.categories.length===0)return h!=null?88+h.height:88;const I=c.current,D=I!=null?I.clientHeight:0;return u==="small"?"auto":B[7]+(D>0?D:88)+(h!=null?h.height:0)},[t,u,h]);a.useEffect(()=>{if(v!==O.current){E("auto");return}E(w())},[w,v]),a.useEffect(()=>{O.current=v},[v]),a.useEffect(()=>{f==="auto"&&E(w())},[f,w]);const se=()=>o.jsx(he,{anchorEl:S.current,open:v,onClose:g,paperStyle:{overflow:"visible"},children:o.jsxs(gt,{height:f,windowSize:u,children:[h!=null?o.jsx(mt,{children:h?.component}):null,o.jsx(xt,{children:o.jsx(ae,{filters:t,onFiltersChange:b,filterValues:$[e],selectedEntity:e,ref:c,vendorSearchAutoCompleteActions:i,vendorSearchAutoCompleteData:n})})]})},t?.categories==null||t.categories.length===0?"smallBox":"largeBox"),P=t?.categories==null||t?.categories.length===0?0:t.categories.filter(I=>I.field!=null&&I.values.length>0).length;return o.jsxs(a.Fragment,{children:[o.jsx(de,{searchPlaceholder:k,isFilterBtnActive:v||P>0,ref:S,isFilterDisabled:p,onFilterButtonClick:m,filtersCount:P,includeSearch:!1,filterText:k}),p!=!0&&se()]})},yt=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M18.8447 9.03137L22.4962 11.5418V21.127C22.4962 21.4902 22.3519 21.8385 22.0951 22.0953C21.8383 22.3521 21.4901 22.4963 21.1269 22.4963H2.86932C2.50615 22.4963 2.15786 22.3521 1.90106 22.0953C1.64427 21.8385 1.5 21.4902 1.5 21.127V11.5418L5.15151 9.03137",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M4.24207 19.7577L8.80646 16.1062H15.1966L19.761 19.7577",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M22.5 11.5416L17.0227 15.1931",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M1.50378 11.5416L6.98105 15.1931",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M18.8446 13.9754V2.41288C18.8446 2.17077 18.7484 1.93857 18.5772 1.76738C18.406 1.59618 18.1738 1.5 17.9317 1.5H6.06431C5.8222 1.5 5.59 1.59618 5.4188 1.76738C5.24761 1.93857 5.15143 2.17077 5.15143 2.41288V13.9754",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.23108 5.55005H14.7654",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.23108 8.83069H13.3818",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.23108 12.0398H10.9606",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{spendManagement:Ct}=L.getLocalizedStrings(),bt={filterIconContainerPaddingRight:new ee(18,10)};function Mt({spendManagementSectionProps:e}){const{entity:t,moreIconContainerStyle:n,searchTextBoxStyle:i,disableDownloadButton:p,filters:s,searchText:C,downloadParams:y,downloadState:h,showSettingsIcon:b=!0,showSettingsIconOnNavbar:x,showDownloadButtonOnNavbar:S,showStatementButtonOnNavbar:v,showPayEarlyButtonOnNavbar:j,groupByFiltersComponent:O,updateDownloadStateHandler:$,onMenuOpen:d}=e,f=z(),E=_(),[c,u]=a.useState(void 0);a.useEffect(()=>{h!=="Error"&&u(!1)},[h]);let g=Ct.moreMenuOptions;x||(g=g.filter(m=>m.value!=="settings")),v||(g=g.filter(m=>m.value!=="statements")),j||(g=g.filter(m=>m.value!=="payEarly")),S||(g=g.filter(m=>m.value!=="download"));const k={};return e.entity==="charge_cards"?k.width="275px":e.entity==="reimbursement"&&(k.width="208px"),o.jsxs($t,{children:[o.jsxs(wt,{isSearchOpen:e.isSearchOpen&&f==="small",windowsize:f,children:[f!=="small"&&!e.hideSearchBtn?o.jsx(H,{style:{position:"absolute",left:"unset",...i},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:m=>{e.onSearchTextChanged?.(m)},onSearchOpen:e.onSearchOpen,inputWrapperStyle:k,searchIconMarginRight:e.entity==="charge_cards"?r.sp4:"10px"}):null,(e.entity==="bill_pay"||e.entity==="reimbursement"||e.entity==="task_management")&&e.onFiltersChange!=null?o.jsx(kt,{size:f,children:o.jsx(ft,{entity:e.entity,groupByFiltersComponent:O,onFiltersChange:e.onFiltersChange,filters:e.filters,getCategoryWiseOptions:e.getFilterOptions,vendorSearchAutoCompleteData:e.vendorSearchAutoCompleteData,vendorSearchAutoCompleteActions:e.vendorSearchAutoCompleteActions,createdByUserListLoaded:e.createdByUserListLoaded,analytics:e.analytics})}):null,e.showEntityEmailInfoIconOnNavbar===!0?o.jsx(jt,{onClick:e.onClickEmailInfoIcon,children:o.jsx(vt,{})}):null,b?o.jsx(St,{onClick:()=>u(void 0),style:n,children:t==="bill_pay"||t==="reimbursement"||t==="charge_cards"?o.jsx(ie,{entity:t,isMoreOption:!0,closeMenuOnSelect:!1,isMenuOpen:f!=="small"?c:void 0,options:g,onMenuOpen:d,customStyleConfig:{control:()=>({backgroundColor:"inherit",cursor:"pointer",border:"none",":hover":{backgroundColor:"inherit"}}),menu:m=>({...m,left:"23px",top:"29px",transform:"translateX(-100%)",width:"auto",backgroundColor:E.colors.grey5,borderRadius:r.sp1,boxShadow:`${r.sp0} 2px ${r.sp2} ${E.colors.dropShadowHover}`,whiteSpace:"nowrap"}),container:()=>({marginLeft:B[0]}),valueContainer:()=>({display:"flex","#react-select-2-placeholder":{marginRight:B[0],marginLeft:-1}})},onOptionSelection:m=>{m==="settings"?e.onClickSetupIcon?.():m==="statements"?e.onClickStatementsIcon?.():m==="payEarly"&&e.onClickPayEarlyIcon?.()},downloadProps:(t==="bill_pay"||t==="reimbursement")&&y!=null?{entity:t,isDisabled:p,filter:{filters:s,searchText:C},downloadParams:y,downloadState:h,updateDownloadStateHandler:$}:void 0}):o.jsx(Ot,{onClick:e.onClickSetupIcon})}):null,e.showNewButtonOnNavbar===!0?o.jsx(o.Fragment,{children:f==="small"?o.jsx(Lt,{onClick:e.onNewButtonClick,children:o.jsx(Et,{})}):o.jsx(ce,{variant:"primary",onClick:e.onNewButtonClick,label:e.newButtonLabel??"",size:"small",style:{height:"29px",paddingLeft:"12px",paddingRight:"12px",...J.extraSmallRegular.cssObject,whiteSpace:"nowrap",display:"flex",alignItems:"center"}})}):null]}),f==="small"&&!e.hideSearchBtn?o.jsx(H,{style:{position:"absolute",left:"5px",right:f!=="small"?"120px":"unset",top:r.sp6,width:"98%"},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:m=>{e.onSearchTextChanged?.(m)},onSearchOpen:e.onSearchOpen,keepSearchBoxOpen:!0,inputWrapperStyle:e.entity==="charge_cards"?{width:270}:{}}):null]})}const vt=l(yt)`
|
|
161
161
|
height: ${r.sp4};
|
|
162
162
|
width: ${r.sp4};
|
|
163
163
|
`,wt=l.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Te,cn as qe,u as Ge,R as
|
|
1
|
+
import{e as Te,cn as qe,u as Ge,R as X,cv as Ye,a2 as se,f2 as Je,l as W,a8 as re,j as t,aS as Ze,C as d,fa as Ke,fb as Xe,fc as Qe,bv as et,q as o,a0 as tt,f3 as ye,f4 as ve,o as i,W as N,fd as Le,m as pe,f as j,f5 as it,X as ze,fe as nt,f6 as at,w as ot,bp as $e,cG as lt,a7 as st,ff as rt,n as _e,af as Ae,fg as ct,cs as dt}from"./index-0QGih61V.js";import{b as m,n}from"./vendor-rkTZJa59.js";import{r as ut}from"./mui-C42whWwM.js";import{b as pt}from"./ChargeCardUtils-D8nxmniw-0B3L7zeg.js";import{Y as ht}from"./CreditCardPaymentPlgSection-C5Qn4uPW--juf3I9b.js";import{M as gt}from"./ChaseOverlay-BsUhQ0Hl-DFaxFI1c.js";import{q as ft}from"./SetUpDefaultSection-CKg9xvyM-V31Vr9Jm.js";const Q={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:A,onConnectClick:M,onSignUpClick:I}){const u=Te(),{setUp:r}=X.getLocalizedStrings().commonSetUp,f=e.link_account,P=f.fetchStatus.fetchState==="In-Progress"||f.updateStatus.fetchState==="In-Progress";return t.jsxs(St,{windowSize:u,style:A,"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:A?.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:M,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=>Q.rowGap.valuePx(e.windowSize)};
|
|
@@ -52,7 +52,7 @@ import{e as Te,cn as qe,u as Ge,R as K,cv as Ye,a2 as se,f2 as Je,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:A,sectionTitle:D,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:Y,onUpdatePaymentAccountStatus:E,onEstablishConnectionSuccess:M,onSignUpClick:ne,bottomComponent:Ie}){const a=Te(),{trigger:Ee,formState:{errors:Re}}=qe(),U=m.useRef(null),R=Ge(),{setUp:h}=K.getLocalizedStrings().commonSetUp,J=K.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"),Be=Ye(Re,ae),[z,X]=m.useState(void 0),g=x.link_account,_=x.update_account,w=z==="update_account"?_:g,[B,ge]=m.useState(w.linkToken??null),[O,Z]=m.useState(!1),[De,fe]=m.useState(!1),me=se(g.updateStatus.fetchState),oe=se(_.updateStatus.fetchState),Me=se(_.fetchStatus.fetchState),Ue=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"):Y(l,z),X(void 0),Z(!1)},[u,f,r,e?.id,e?.providerAccountId,z,S,E,Y]),Oe=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)),X(void 0),Z(!1)},[u,r,f,e?.id,E]),{open:F,ready:xe}=Je({token:B,onSuccess:Ue,onExit:Oe});m.useEffect(()=>{(me==="In-Progress"&&g.updateStatus.fetchState==="Completed"||oe==="In-Progress"&&_.updateStatus.fetchState==="Completed")&&(W.isVerifiedPaymentAccountProviderStatusCode(c??"")||(L("link_account"),M()))},[g.updateStatus.fetchState,M,L,e?.providerVerificationStatus?.code,e?.id,me,oe,_.updateStatus.fetchState,c]),m.useEffect(()=>{(W.isVerifiedStatusCode(c??"")||c==="verification_failed")&&!O&&z!=null&&w.linkToken===B&&w.fetchStatus.fetchState==="Completed"&&xe&&Z(!0)},[xe,B,w.fetchStatus.fetchState,w.linkToken,c,z,O]),m.useEffect(()=>{w.fetchStatus.fetchState==="Completed"&&w.linkToken!=null&&w.linkToken!==B&&ge(w.linkToken)},[w.fetchStatus.fetchState,w.linkToken,B]),m.useEffect(()=>{O&&F()},[O,F]),m.useEffect(()=>{!e?.zeniAccountId&&!Be&&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 Fe=()=>{u.trackConnectBankGetBalance(r,f),X("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),F())},title:h.achTitle,subTitle:h.achSubTitle,header:h.paymentSource,isCompleted:H,showCompletedIcon:q,icon:{element:t.jsx(Xe,{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),F())},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:[De===!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:D??h.paymentSource})]}),t.jsxs(Ft,{windowSize:a,isDisabled:S,children:[t.jsxs(At,{windowSize:a,children:[t.jsxs(Bt,{children:[e!=null?t.jsx(Rt,{isDisabled:S,children:Tt(A,a,R.mode==="dark",e,We)}):null,t.jsxs(Zt,{children:[t.jsxs(Gt,{children:[t.jsx(Ze,{ref:U,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)=>Qe(p,l,C),valueToSubLabels:(l,C)=>Ke(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),X("link_account"),g.linkToken==null||W.zeniDate(new Date().toISOString()).isAfter(g.expiration)?L("link_account"):B!==g.linkToken?ge(g.linkToken):O?F():Z(!0)}}),t.jsxs(Mt,{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(Jt,{}):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:_.fetchStatus,updateStatus:_.updateStatus,linkFetchStatus:g.fetchStatus,linkUpdateStatus:g.updateStatus,prevFetchState:Me,prevUpdateState:oe},onUpdateLinkTokenClick:Fe,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(Dt,{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(Yt,{})]}):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:[J.earn,t.jsx(_t,{children:J.percentageCashback.replace("__percentage__",pt)}),J.whenYouPayViaZeniChecking]}),buttonText:k===!1?h.accountsPlg.signUpButtonText:h.accountsPlg.switchButtonText,isAccountsEnabled:k,pageName:J.creditCardPayment,onSignUpClick:ne,onSwitchClick:()=>{U.current!=null&&U.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:()=>{U.current!=null&&U.current.focus()},accountsPromoConfig:T}):null:null]})]})}const Tt=(e,p,v,x,b,$)=>x?.accType==="depositAccount"?t.jsx(Kt,{isOptionSelected:!0,children:t.jsx(Qt,{color:nt(b??0)})}):x?.institutionDetails?.logo?.base64!=null?t.jsx(Xt,{windowSize:p,src:`${at}${x?.institutionDetails.logo?.base64.toString()}`,alt:x?.institutionDetails.institutionName,loading:"lazy"}):$===!0?e.element:t.jsx(Ot,{iconColor:e.color,windowSize:p,isDarkMode:v,children:e.element}),Lt=({productType:e,isLoginRequired:p,isUpdateLinkClicked:v,isPendingVerification:x,fetchAndUpdateStatues:b,onUpdateLinkTokenClick:$,onChaseInfoClick:A})=>{const{commonSetUp:D}=K.getLocalizedStrings(),{setUp:I}=D,{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:Y,prevUpdateState:E}=b,M=v&&Y==="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(Ut,{children:[t.jsx(je,{style:{marginLeft:i.sp0,marginRight:i.sp1}}),t.jsx(ce,{isError:!0,style:{color:j.important},children:M?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,{})}),M?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:A,"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:A,sectionTitle:M,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:Y,onUpdatePaymentAccountStatus:E,onEstablishConnectionSuccess:D,onSignUpClick:ne,bottomComponent:Ie}){const a=Te(),{trigger:Ee,formState:{errors:Re}}=qe(),U=m.useRef(null),R=Ge(),{setUp:h}=X.getLocalizedStrings().commonSetUp,J=X.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"),Be=Ye(Re,ae),[z,Z]=m.useState(void 0),g=x.link_account,_=x.update_account,w=z==="update_account"?_:g,[B,ge]=m.useState(w.linkToken??null),[O,K]=m.useState(!1),[Me,fe]=m.useState(!1),me=se(g.updateStatus.fetchState),oe=se(_.updateStatus.fetchState),De=se(_.fetchStatus.fetchState),Ue=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"):Y(l,z),Z(void 0),K(!1)},[u,f,r,e?.id,e?.providerAccountId,z,S,E,Y]),Oe=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)),Z(void 0),K(!1)},[u,r,f,e?.id,E]),{open:F,ready:xe}=Je({token:B,onSuccess:Ue,onExit:Oe});m.useEffect(()=>{(me==="In-Progress"&&g.updateStatus.fetchState==="Completed"||oe==="In-Progress"&&_.updateStatus.fetchState==="Completed")&&(W.isVerifiedPaymentAccountProviderStatusCode(c??"")||(L("link_account"),D()))},[g.updateStatus.fetchState,D,L,e?.providerVerificationStatus?.code,e?.id,me,oe,_.updateStatus.fetchState,c]),m.useEffect(()=>{(W.isVerifiedStatusCode(c??"")||c==="verification_failed")&&!O&&z!=null&&w.linkToken===B&&w.fetchStatus.fetchState==="Completed"&&xe&&K(!0)},[xe,B,w.fetchStatus.fetchState,w.linkToken,c,z,O]),m.useEffect(()=>{w.fetchStatus.fetchState==="Completed"&&w.linkToken!=null&&w.linkToken!==B&&ge(w.linkToken)},[w.fetchStatus.fetchState,w.linkToken,B]),m.useEffect(()=>{O&&F()},[O,F]),m.useEffect(()=>{!e?.zeniAccountId&&!Be&&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 Fe=()=>{u.trackConnectBankGetBalance(r,f),Z("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),F())},title:h.achTitle,subTitle:h.achSubTitle,header:h.paymentSource,isCompleted:H,showCompletedIcon:q,icon:{element:t.jsx(Ze,{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),F())},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:[Me===!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:M??h.paymentSource})]}),t.jsxs(Ft,{windowSize:a,isDisabled:S,children:[t.jsxs(At,{windowSize:a,children:[t.jsxs(Bt,{children:[e!=null?t.jsx(Rt,{isDisabled:S,children:Tt(A,a,R.mode==="dark",e,We)}):null,t.jsxs(Kt,{children:[t.jsxs(Gt,{children:[t.jsx(Ke,{ref:U,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)=>Qe(p,l,C),valueToSubLabels:(l,C)=>Xe(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),Z("link_account"),g.linkToken==null||W.zeniDate(new Date().toISOString()).isAfter(g.expiration)?L("link_account"):B!==g.linkToken?ge(g.linkToken):O?F():K(!0)}}),t.jsxs(Dt,{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(Jt,{}):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:_.fetchStatus,updateStatus:_.updateStatus,linkFetchStatus:g.fetchStatus,linkUpdateStatus:g.updateStatus,prevFetchState:De,prevUpdateState:oe},onUpdateLinkTokenClick:Fe,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(Mt,{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(Yt,{})]}):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:[J.earn,t.jsx(_t,{children:J.percentageCashback.replace("__percentage__",pt)}),J.whenYouPayViaZeniChecking]}),buttonText:k===!1?h.accountsPlg.signUpButtonText:h.accountsPlg.switchButtonText,isAccountsEnabled:k,pageName:J.creditCardPayment,onSignUpClick:ne,onSwitchClick:()=>{U.current!=null&&U.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:()=>{U.current!=null&&U.current.focus()},accountsPromoConfig:T}):null:null]})]})}const Tt=(e,p,v,x,b,$)=>x?.accType==="depositAccount"?t.jsx(Xt,{isOptionSelected:!0,children:t.jsx(Qt,{color:nt(b??0)})}):x?.institutionDetails?.logo?.base64!=null?t.jsx(Zt,{windowSize:p,src:`${at}${x?.institutionDetails.logo?.base64.toString()}`,alt:x?.institutionDetails.institutionName,loading:"lazy"}):$===!0?e.element:t.jsx(Ot,{iconColor:e.color,windowSize:p,isDarkMode:v,children:e.element}),Lt=({productType:e,isLoginRequired:p,isUpdateLinkClicked:v,isPendingVerification:x,fetchAndUpdateStatues:b,onUpdateLinkTokenClick:$,onChaseInfoClick:A})=>{const{commonSetUp:M}=X.getLocalizedStrings(),{setUp:I}=M,{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:Y,prevUpdateState:E}=b,D=v&&Y==="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(Ut,{children:[t.jsx(je,{style:{marginLeft:i.sp0,marginRight:i.sp1}}),t.jsx(ce,{isError:!0,style:{color:j.important},children:D?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,{})}),D?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:A,"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
|
`,_t=n(rt)`
|
|
@@ -88,9 +88,9 @@ import{e as Te,cn as qe,u as Ge,R as K,cv as Ye,a2 as se,f2 as Je,l as W,a8 as r
|
|
|
88
88
|
`,Bt=n.div`
|
|
89
89
|
display: flex;
|
|
90
90
|
align-items: flex-start;
|
|
91
|
-
`,
|
|
91
|
+
`,Mt=n.div`
|
|
92
92
|
display: flex;
|
|
93
|
-
`,
|
|
93
|
+
`,Dt=n(ot)`
|
|
94
94
|
display: flex;
|
|
95
95
|
align-items: center;
|
|
96
96
|
color: ${e=>e.isDisabled?e.theme.colors.grey1:e.theme.colors.hero};
|
|
@@ -168,12 +168,12 @@ import{e as Te,cn as qe,u as Ge,R as K,cv as Ye,a2 as se,f2 as Je,l as W,a8 as r
|
|
|
168
168
|
height: ${i.sp1};
|
|
169
169
|
cursor: inherit;
|
|
170
170
|
background-color: ${e=>e.theme.colors.grey1};
|
|
171
|
-
`,
|
|
171
|
+
`,Zt=n.img`
|
|
172
172
|
width: ${e=>s.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
173
173
|
height: ${e=>s.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
174
174
|
border-radius: ${i.sp11};
|
|
175
175
|
margin-right: ${i.sp2};
|
|
176
|
-
`,
|
|
176
|
+
`,Kt=n.div`
|
|
177
177
|
display: flex;
|
|
178
178
|
flex-direction: column;
|
|
179
179
|
`,de=n.div`
|
|
@@ -194,7 +194,7 @@ import{e as Te,cn as qe,u as Ge,R as K,cv as Ye,a2 as se,f2 as Je,l as W,a8 as r
|
|
|
194
194
|
align-items: center;
|
|
195
195
|
justify-content: center;
|
|
196
196
|
margin-left: ${i.sp2};
|
|
197
|
-
`,
|
|
197
|
+
`,Xt=n.div`
|
|
198
198
|
min-width: ${e=>e.isOptionSelected?i.sp4:i.sp5};
|
|
199
199
|
width: ${e=>e.isOptionSelected?i.sp7:i.sp5};
|
|
200
200
|
height: ${e=>e.isOptionSelected?i.sp7:i.sp5};
|
package/dist/assets/{StatementItem-BSfAH9fl-diu3-gbg.js → StatementItem-BeGyTVOf-Ccqz_NBL.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{e as y,R as S,h7 as b,j as o,m as g,o as n,
|
|
1
|
+
import{e as y,R as S,h7 as b,j as o,m as g,o as n,x as z,C as j,bz as v,q as k}from"./index-0QGih61V.js";import{b as P,n as i}from"./vendor-rkTZJa59.js";import{g as C}from"./BoxItem-BVzRQmWm-DnawUpOb.js";import{w as L}from"./downloadPdf-BZd85Ssn-CFK_x6gO.js";const d=S.getLocalizedStrings().months,r={downloadButtonSize:new j(k[4],20)},R=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: ${n.sp3} ${n.sp4};
|
|
4
4
|
flex-direction: row;
|
|
5
5
|
width: 100%;
|
|
6
|
-
`,
|
|
6
|
+
`,T=i.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
justify-content: space-between;
|
|
9
9
|
align-items: center;
|
|
10
10
|
width: 100%;
|
|
11
|
-
`,
|
|
11
|
+
`,B=i(z)`
|
|
12
12
|
display: -webkit-box;
|
|
13
13
|
-webkit-box-orient: vertical;
|
|
14
14
|
-webkit-line-clamp: 1;
|
|
@@ -28,4 +28,4 @@ import{e as y,R as S,h7 as b,j as o,m as g,o as n,y as j,C as z,bz as v,q as k}f
|
|
|
28
28
|
&:hover {
|
|
29
29
|
color: ${t=>t.theme.colors.primary};
|
|
30
30
|
}
|
|
31
|
-
`;function J({accountLast4:t,currentTenantCompanyName:s,data:e,authParams:m,downloadEndPoint:l,documentType:a="statement",boxType:p}){const[w
|
|
31
|
+
`;function J({accountLast4:t,currentTenantCompanyName:s,data:e,authParams:m,downloadEndPoint:l,documentType:a="statement",boxType:p}){const[x,w]=P.useState(!1),c=y(),$=a==="taxLetter"?`${e.title.year}`:`${d[e.title.month-1]} ${e.title.year}`,h=a==="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(R,{children:o.jsxs(T,{children:[o.jsx(B,{children:$}),o.jsx(q,{onClick:()=>L(a==="treasuryStatement"||a==="taxLetter"?`${l}/statements/${e.id}`:`${l}/statements?query=${encodeURIComponent(JSON.stringify(u))}`,h,m,w),children:x?o.jsx(g,{size:"Small",start:!0}):o.jsx(E,{windowSize:c})})]})});return o.jsx(C,{content:f,boxType:p,isDisabled:!1,isNotClickable:!0})}export{J as O};
|
package/dist/assets/{StatementsPage-BQ-wkg9f-DMW87IGZ.js → StatementsPage-2uPMvTEy-De7Uac1v.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as v,e as z,j as t,aX as C,R as P,aj as I,o as r,f as m,b_ as L,C as R,q as h,
|
|
1
|
+
import{u as v,e as z,j as t,aX as C,R as P,aj as I,o as r,f as m,b_ as L,C as R,q as h,x as B}from"./index-0QGih61V.js";import{b as p,n as o}from"./vendor-rkTZJa59.js";import{$ as E}from"./BoxItem-BVzRQmWm-DnawUpOb.js";import{o as M}from"./commonDimensions-0W6wokPG-Cd83l0QX.js";import{O}from"./StatementItem-BeGyTVOf-Ccqz_NBL.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-BZd85Ssn-CFK_x6gO.js";const x=P.getLocalizedStrings().spendManagement.zeniAccounts.statements,b={listItemMargin:new R(h[3],h[8])},et=({currentTenantCompanyName:e,authParams:g,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?M.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*${b.listItemMargin.valuePx(l)})`},children:t.jsx(O,{currentTenantCompanyName:e,accountLast4:f,data:n,authParams:g,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(H,{children:x.noStatements})})})})};return t.jsxs(A,{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(K,{children:t.jsx(I,{children:({height:a,width:s})=>t.jsx(V,{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} ${b.listItemMargin.valuePx(e.windowSize)}`};
|
|
3
3
|
&:hover {
|
|
4
4
|
position: relative;
|
package/dist/assets/{StatusSwitcher-CoX1TvcC-B2wGlPZJ.js → StatusSwitcher-CwLbXjIU-CJO3kP8v.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as y,j as d,bJ as T,R as v,C as f,o as s,q as c,w as z}from"./index-
|
|
1
|
+
import{e as y,j as d,bJ as T,R as v,C as f,o as s,q as c,w as z}from"./index-0QGih61V.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 _=e=>{switch(e){case"bill_pay":return"bills";case"reimbursement":return"reimbursements";case"charge_cards":return"cards";default:return e}};function A(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?A(n,r):null}const L=(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:j}}}}=v.getLocalizedStrings(),m={containerMarginLeft:new f(c[4],c[8]),containerMarginRight:new f(c[4],c[8]),segmentContainerMarginLeft:new f(c[4],c[8])},M=u.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
width: 100%;
|
package/dist/assets/{SubTabSwitcher-C4Kvmep7-DJj8T55V.js → SubTabSwitcher-D3bFqk8P-DL4oUfiQ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,m as u,o as s,w as g,ae as m}from"./index-
|
|
1
|
+
import{j as r,m as u,o as s,w as g,ae as m}from"./index-0QGih61V.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-0QGih61V.js";import{E as n,T as t}from"./ReloadCard-NvfxlEQu-BnXQfMVk.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{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,
|
|
1
|
+
import{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,x as K,r as kt,l as J,o as s,eN as Ze,bO as Ee,bS as xt,fF as wt,ao as ft,bg as Qe,a6 as Ct,e as le,a as Tt,C as Xe,ca as $t,F as yt,aj as vt,b_ as bt,ia as jt,ib as St,iH as ze,a4 as Gt,Q as De,bp as Ie,eJ as Je,iI as Lt,cx as et,iJ as pe,iK as xe,iL as Nt,iM as we,iN as tt,iO as st,iP as ot,iQ as nt,iR as at,iS as rt,iT as _,q as ke,iU as re,w as ie,iV as Et,iW as It,a3 as Mt,s as Dt,iX as zt,d9 as Bt,iY as Rt,cn as it,cH as At,v as Ot,iZ as Wt,i_ as Ft,fG as Pt,eM as Vt,i$ as Ht,j0 as Q,j1 as Be,c0 as Ut,j2 as _t,j3 as Kt,j4 as Re,j5 as Yt,f as Ae,g1 as qt,n as Zt}from"./index-0QGih61V.js";import{b as n,n as o,j as fe}from"./vendor-rkTZJa59.js";import{K as Qt,Y as Xt}from"./SpendManagementSection-BaiWgwp--Dp3HO5CH.js";import{A as Jt,t as es,a as ts,E as ss}from"./NotificationsListConfig-C5pyiij--CMy_5rqB.js";import{getDashboardFilterCategoryValues as os}from"./SpendManagementListViewPage-D6fZPLMz-Z_0NC1QS.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-CwLbXjIU-CJO3kP8v.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)},j=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},I=x=>j(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{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,y as K,r
|
|
|
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(Qt,{value:r,placeHolder:Oe.taskList.groupingFilters.placeholder,onChange:a=>{const c=
|
|
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(Qt,{value:r,placeHolder:Oe.taskList.groupingFilters.placeholder,onChange:a=>{const c=J.toTaskListGroupByKeyTypeStrict(a.value);if(c!=null)u(c);else throw new Error("Invalid taskListGroupByKey")},options:J.TASK_LIST_GROUP_BY_CATEGORIES,getOptionLabel:a=>{const c=Ge.texts,i=J.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};
|
|
@@ -62,9 +62,9 @@ import{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,y as K,r
|
|
|
62
62
|
`,Ts=o(et)`
|
|
63
63
|
width: ${s.sp3};
|
|
64
64
|
height: ${s.sp3};
|
|
65
|
-
`;function $s({placeholder:e,searchText:u,inputContainerStyles:r,onSearchTextChanged:h}){const[m,p]=n.useState(!1),a=n.useRef(null),c=le(),i=()=>{u||p(!1)};return t.jsxs(ys,{children:[m?null:t.jsx(
|
|
65
|
+
`;function $s({placeholder:e,searchText:u,inputContainerStyles:r,onSearchTextChanged:h}){const[m,p]=n.useState(!1),a=n.useRef(null),c=le(),i=()=>{u||p(!1)};return t.jsxs(ys,{children:[m?null:t.jsx(bs,{onMouseEnter:()=>p(!0),onClick:()=>{p(!0),a.current?.focus()},children:t.jsx(Fe,{})}),m?t.jsxs(vs,{style:r,isOpen:m,children:[t.jsx(Fe,{}),t.jsx(js,{windowSize:c,autoFocus:c!=="small",placeholder:e,value:u,onBlur:i,onChange:d=>{const C=d.target;h(C.value)},ref:a}),u?t.jsx(Ss,{}):null]}):null]})}const ys=o.div`
|
|
66
66
|
position: relative;
|
|
67
|
-
`,
|
|
67
|
+
`,vs=o.div`
|
|
68
68
|
position: absolute;
|
|
69
69
|
right: 0;
|
|
70
70
|
display: flex;
|
|
@@ -81,7 +81,7 @@ import{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,y as K,r
|
|
|
81
81
|
&:hover {
|
|
82
82
|
color: ${e=>e.theme.colors.primary};
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`,bs=o.div`
|
|
85
85
|
cursor: pointer;
|
|
86
86
|
`,js=o(It)`
|
|
87
87
|
display: flex;
|
|
@@ -97,7 +97,7 @@ import{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,y as K,r
|
|
|
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(),X=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:j,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),j($,x)},[j]),B=n.useCallback($=>{D($),C($)},[C]);return t.jsx(Ze,{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(Pe,{onClick:i,children:[t.jsx(Bs,{}),t.jsx(Ee,{children:X.task})]}),t.jsx(H,{controller:u==="groupName",children:t.jsxs(Pe,{onClick:()=>d(""),children:[t.jsx(Rs,{}),t.jsx(Ee,{children:X.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(""),j=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(Ps,{children:[t.jsxs(Fs,{children:[t.jsx(Vs,{}),t.jsx(Hs,{children:X.groupTemplates})]}),t.jsx($s,{inputContainerStyles:{top:"50%",transform:"translateY(-50%)"},searchText:d,onSearchTextChanged:C,placeholder:X.searchPlaceholder})]})}),t.jsx(H,{controller:j.length>0,children:t.jsx(Us,{children:j.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(Js,{})}),t.jsx(H,{controller:!f,children:t.jsx(Xs,{})}),t.jsx(K,{children:k.name}),t.jsx(lt,{count:k.tasks.length})]}),t.jsx(Zs,{expanded:f,className:"hidden-create-group-button",variant:"secondary",size:"xs-small",label:X.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(Qs,{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:j.length===0,children:[t.jsx(so,{children:t.jsx(oo,{children:X.noTaskGroup})}),t.jsxs(Ve,{onClick:I,children:[t.jsx(He,{}),t.jsx(K,{children:X.newTaskOptionText.replace("__searchText__",d)})]}),t.jsxs(Ve,{onClick:M,children:[t.jsx(He,{}),t.jsx(K,{children:X.newGroupOptionText.replace("__searchText__",d)})]})]})]})},zs=o.div`
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
width: ${e=>e.isTaskTemplatesEnabled?"408px":"unset"};
|
|
@@ -205,10 +205,10 @@ import{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,y as K,r
|
|
|
205
205
|
display: ${e=>e.expanded===!0?"block":"none"};
|
|
206
206
|
`,Qs=o(De)`
|
|
207
207
|
display: none;
|
|
208
|
-
`,
|
|
208
|
+
`,Xs=o(Lt)`
|
|
209
209
|
width: ${s.sp3};
|
|
210
210
|
height: ${s.sp3};
|
|
211
|
-
`,
|
|
211
|
+
`,Js=o(Je)`
|
|
212
212
|
width: ${s.sp3};
|
|
213
213
|
height: ${s.sp3};
|
|
214
214
|
`,eo=o.div``,to=o.div`
|
|
@@ -243,7 +243,7 @@ import{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,y as K,r
|
|
|
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 Xe(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:j,getFieldState:I}=it(),M=(k,f)=>{const w=Re(k,f,we);I(w).invalid?j(w):m(e,{timeSpent:C(w)})};return t.jsxs(co,{children:[t.jsxs($o,{windowSize:a,onClick:h,responsiveWidth:Q[0].width,children:[t.jsxs(yo,{windowSize:a,children:[t.jsx(bo,{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(vo,{windowSize:a,responsiveWidth:Q[0].width,children:t.jsx(jo,{windowSize:a,className:"taskDescriptionText",children:e.description})})})]}),t.jsx(Ue,{windowSize:a,responsiveWidth:Q[1].width,children:Be(e.status.code)}),t.jsx(Eo,{windowSize:a,responsiveWidth:Q[2].width,children:Be(e.priority.code)}),t.jsx(Io,{windowSize:a,responsiveWidth:Q[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:Q[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:Q[5].width,children:e.tagIds.length>0?t.jsx(No,{children:_t(e.tagIds,u)}):null}),t.jsx(zo,{windowSize:a,responsiveWidth:Q[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=>J.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:j,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(()=>{j(e.id)},[j,e.id]),g=n.useCallback(()=>{z(null),i(e.id)},[i,e.id]),v=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(Ft,{onClose:y,onAddTask:L,onCollapseAll:C,onDelete:g,onExpandAll:d,onRename:v,isDefault:e.isDefault,anchorEl:D})]})}),t.jsx(H,{controller:a===!1,children:t.jsx(Pt,{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{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,y as K,r
|
|
|
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(Je)`
|
|
309
309
|
width: ${s.sp3};
|
|
310
310
|
height: ${s.sp3};
|
|
311
311
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -333,11 +333,11 @@ import{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,y as K,r
|
|
|
333
333
|
flex-direction: row;
|
|
334
334
|
column-gap: ${s.sp2};
|
|
335
335
|
align-items: flex-start;
|
|
336
|
-
`,
|
|
336
|
+
`,vo=o(K)`
|
|
337
337
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
338
338
|
max-height: ${s.sp4};
|
|
339
339
|
width: 100%;
|
|
340
|
-
`,
|
|
340
|
+
`,bo=o.div`
|
|
341
341
|
max-width: ${e=>`${dt.taskNameMaxWidth.value(e.windowSize)-ke[4]}px`};
|
|
342
342
|
color: ${e=>e.theme.colors.hero};
|
|
343
343
|
width: ${e=>e.isIconPresent?"80%":"90%"};
|
|
@@ -430,7 +430,7 @@ import{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,y as K,r
|
|
|
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 Je(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:j,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,F]=n.useState(null),[P,ne]=n.useState(null),[q,ue]=n.useState(null),[Ce,de]=n.useState(null),[he,ae]=n.useState(!1),Te=ht(),{fetchState:te,uiState:Z,filters:$e,userList:ce,taskGroupsWithTasksList:ye}=e,{tagList:be}=u,ve=qe(),je=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:Z.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:$e,searchTextBoxStyle:{right:"108px"},onNewButtonClick:me,onSearchOpen:je,onSearchTextChanged:j,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:ce.fetchState==="Completed"||ce.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(ps,{value:Z.groupByKey,resetDisabled:Z.groupByKey==="groupName",onChange:ge,onReset:l}),height:90},getFilterOptions:()=>os("task_management",W,Te.loggedInUserRole??[],u.tagList)},E=n.useCallback(A=>{de(null),F(Y),c({...e.localData,newTaskGroupName:A})},[e.localData,c]),R=n.useCallback(()=>{de(null)},[]),v=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{F(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:F,onTaskGroupRename:$,onTimeSpentUpdate:S,onShowToast:y,onCreateTagClick:h}),pt=t.jsx(Jt,{spendManagementSectionProps:N});return t.jsxs(Ho,{children:[t.jsx(mt,{title:V.taskManagement.taskList.pageTitle,showBackButton:!0,showMenuIcon:!1,backgroundColor:ve.colors.grey4,style:{zIndex:3},onBackClick:I,rightSideComponent:pt,isSearchOpen:he,source:"TaskManagementPage"}),t.jsx(Ms,{anchorEl:Ce,groupByKey:Z.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:v,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:j,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([]),F=n.useRef(null);ls({scrollContainerRef:F,isEnabled:L!=="small"});const P=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,P,u),[g,e.taskGroupsWithTasksList,P,u]),values:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,P,u),[g,e.taskGroupsWithTasksList,P,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)},[]),Z=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?Z():d(!0):r===Y?d(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,Z,d,m]),ye=n.useCallback(()=>{p(null),C()},[C,p]),be=n.useCallback(l=>{C(),p(l)},[C,p]),ve=n.useCallback(()=>{g.defaultTaskGroupId!=null&&j(g.defaultTaskGroupId)},[j,g.defaultTaskGroupId]),je=async(l,G)=>{if(l.includes(nt)){const N=l.split(".")[2],E=b.flatMap(v=>v.tasks).find(v=>v.id===N),R=G[_][re][N].priority.selectedOption;if(E!=null&&R!=null){const v=X.allTaskPriority.find(T=>T.code===R);v!=null&&h(E,{priority:v})}return}if(l.includes(at)){const N=l.split(".")[2],E=b.flatMap(v=>v.tasks).find(v=>v.id===N),R=G[_][re][N].status.selectedOption;if(E!=null&&R!=null){const v=X.allTaskStatus.find(T=>T.code===R);E!=null&&v!=null&&h(E,{status:v})}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,v=G[_][re][N].assignees.selectedUsers.map(T=>T.userId);R!=null&&v!=null&&E!=null&&h(E,{assignees:v});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,v=G[_][re][N].dueDate.date;R!=null&&v!=null&&E!=null&&h(E,{dueDate:v});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,v=G[_][re][N].tags.selectedOptions;R!=null&&v!=null&&E!=null&&h(E,{tagIds:v});return}l.includes(we)&&ne.trigger(l);const W=Po(l,G,g);c(W)};n.useEffect(()=>{const l=ne.watch((G,{name:W})=>{W!=null&&G!=null&&$t(()=>je(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(vt,{ref:$,outerRef:F,height:l,itemCount:q.length,itemSize:ue,estimatedItemSize:St,itemKey:W=>q[W].id,width:G,overscanCount:jt,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(Jo,{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:ve})})})}),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:Z,onExistingGroupSelection:l=>{ae(),j(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:j,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(F=>{const P=F.dataTransfer.getData("row");z(P,a[e].id)},[z,e,a]),O=n.useCallback(F=>{F.preventDefault()},[]),U=(F,P)=>{F.dataTransfer.setData("row",P)},ee=()=>{B(a[e].id)};return t.jsx(Zo,{style:{...u,width:"100%"},ref:h,onDrop:b,onDragOver:O,children:t.jsx(Fo,{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:j,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)})},Fo=({taskGroup:e,tagList:u,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,userList:i,existingTaskGroupNamesByGroupId:d,onRenameClick:C,onTaskManagementRowClick:j,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:j,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}},Po=(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 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:j,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:v})=>{const[O,U]=n.useState(!1),[ee,F]=n.useState(null),[P,ne]=n.useState(null),[q,ue]=n.useState(null),[Ce,de]=n.useState(null),[he,ae]=n.useState(!1),Te=ht(),{fetchState:te,uiState:Z,filters:$e,userList:ce,taskGroupsWithTasksList:ye}=e,{tagList:ve}=u,be=qe(),je=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=>{v(A)},[v]),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:Z.searchText,showSettingsIcon:!1,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:$e,searchTextBoxStyle:{right:"108px"},onNewButtonClick:me,onSearchOpen:je,onSearchTextChanged:j,onFiltersChange:k,analytics:x,downloadState:"Not-Started",createdByUserListLoaded:ce.fetchState==="Completed"||ce.fetchState==="Error",groupByFiltersComponent:{component:t.jsx(ps,{value:Z.groupByKey,resetDisabled:Z.groupByKey==="groupName",onChange:ge,onReset:l}),height:90},getFilterOptions:()=>os("task_management",W,Te.loggedInUserRole??[],u.tagList)},E=n.useCallback(A=>{de(null),F(Y),c({...e.localData,newTaskGroupName:A})},[e.localData,c]),R=n.useCallback(()=>{de(null)},[]),b=n.useCallback(()=>{P!=null&&a(P)},[P,a]),T=n.useCallback(()=>{F(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:ve,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:F,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:be.colors.grey4,style:{zIndex:3},onBackClick:I,rightSideComponent:pt,isSearchOpen:he,source:"TaskManagementPage"}),t.jsx(Ms,{anchorEl:Ce,groupByKey:Z.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:b,onCancelClick:()=>{U(!1)}},isLoading:e.taskGroupDeleteStatus.fetchState==="In-Progress",secondaryButtonText:V.common.cancel,primaryButtonText:V.common.confirm,titleComponent:t.jsx(Jo,{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:j,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:v,uiState:O}=e,[U,ee]=n.useState([]),F=n.useRef(null);ls({scrollContainerRef:F,isEnabled:L!=="small"});const P=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,P,u),[g,e.taskGroupsWithTasksList,P,u]),values:n.useMemo(()=>Ye(e.taskGroupsWithTasksList,g,P,u),[g,e.taskGroupsWithTasksList,P,u])}),q=n.useMemo(()=>{if(r!==Y)return v;const l=[],G=v.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,v,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):(Jt*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,$,v]),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(v.map(l=>l.id)),$.current?.resetAfterIndex(0,!0)},[v]),te=n.useCallback(()=>{ee([]),$.current?.resetAfterIndex(0,!0)},[]),Z=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?Z():d(!0):r===Y?d(!1):r!=null&&m(r,g.existingTaskGroupNamesByGroupId[r])},[g.selectedTaskIds.length,g.existingTaskGroupNamesByGroupId,r,Z,d,m]),ye=n.useCallback(()=>{p(null),C()},[C,p]),ve=n.useCallback(l=>{C(),p(l)},[C,p]),be=n.useCallback(()=>{g.defaultTaskGroupId!=null&&j(g.defaultTaskGroupId)},[j,g.defaultTaskGroupId]),je=async(l,G)=>{if(l.includes(nt)){const N=l.split(".")[2],E=v.flatMap(b=>b.tasks).find(b=>b.id===N),R=G[_][re][N].priority.selectedOption;if(E!=null&&R!=null){const b=J.allTaskPriority.find(T=>T.code===R);b!=null&&h(E,{priority:b})}return}if(l.includes(at)){const N=l.split(".")[2],E=v.flatMap(b=>b.tasks).find(b=>b.id===N),R=G[_][re][N].status.selectedOption;if(E!=null&&R!=null){const b=J.allTaskStatus.find(T=>T.code===R);E!=null&&b!=null&&h(E,{status:b})}return}if(l.includes(st)){const N=l.split(".")[2],E=v.flatMap(T=>T.tasks).find(T=>T.id===N),R=v.find(T=>T.tasks.find(se=>se.id===N))?.id,b=G[_][re][N].assignees.selectedUsers.map(T=>T.userId);R!=null&&b!=null&&E!=null&&h(E,{assignees:b});return}if(l.includes(ot)){const N=l.split(".")[2],E=v.flatMap(T=>T.tasks).find(T=>T.id===N),R=v.find(T=>T.tasks.find(se=>se.id===N))?.id,b=G[_][re][N].dueDate.date;R!=null&&b!=null&&E!=null&&h(E,{dueDate:b});return}if(l.includes(tt)){const N=l.split(".")[2],E=v.flatMap(T=>T.tasks).find(T=>T.id===N),R=v.find(T=>T.tasks.find(se=>se.id===N))?.id,b=G[_][re][N].tags.selectedOptions;R!=null&&b!=null&&E!=null&&h(E,{tagIds:b});return}l.includes(we)&&ne.trigger(l);const W=Po(l,G,g);c(W)};n.useEffect(()=>{const l=ne.watch((G,{name:W})=>{W!=null&&G!=null&&$t(()=>je(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=v.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(vt,{children:({height:l,width:G})=>t.jsx(bt,{ref:$,outerRef:F,height:l,itemCount:q.length,itemSize:ue,estimatedItemSize:St,itemKey:W=>q[W].id,width:G,overscanCount:jt,itemData:{tagList:u,taskGroupsWithTasksList:q,uiState:O,collapsedGroups:U,userList:e.userList,renameActiveField:r,selectedRowIds:g.selectedTaskIds,existingTaskGroupNamesByGroupId:g.existingTaskGroupNamesByGroupId,onRenameClick:ve,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:v.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:be})})})}),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:v,anchorEl:x,groupByKey:O.groupByKey,onCreateNewGroup:Z,onExistingGroupSelection:l=>{ae(),j(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:j,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 v=n.useCallback(F=>{const P=F.dataTransfer.getData("row");z(P,a[e].id)},[z,e,a]),O=n.useCallback(F=>{F.preventDefault()},[]),U=(F,P)=>{F.dataTransfer.setData("row",P)},ee=()=>{B(a[e].id)};return t.jsx(Zo,{style:{...u,width:"100%"},ref:h,onDrop:v,onDragOver:O,children:t.jsx(Fo,{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:j,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)})},Fo=({taskGroup:e,tagList:u,showGroupName:r,uiState:h,showRenameTextField:m,isCollapsed:p,isSelectionAllowed:a,selectedRowIds:c,userList:i,existingTaskGroupNamesByGroupId:d,onRenameClick:C,onTaskManagementRowClick:j,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:j,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:J.allTaskStatus.map(d=>({label:d.name,value:d.code}))},[nt]:{selectedOption:i.priority.code,allOptions:J.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}},Po=(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`
|
|
@@ -480,9 +480,9 @@ import{Y as ht,u as qe,j as t,R as oe,iG as Y,aX as mt,_ as H,bV as gt,y as K,r
|
|
|
480
480
|
align-items: center;
|
|
481
481
|
column-gap: ${s.sp2};
|
|
482
482
|
padding-left: ${s.sp9};
|
|
483
|
-
`,
|
|
483
|
+
`,Xo=o(K)`
|
|
484
484
|
color: ${e=>e.theme.colors.primary};
|
|
485
|
-
`,
|
|
485
|
+
`,Jo=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,aj as D,J as k,di as H,aN as L,o as a,w as q}from"./index-
|
|
1
|
+
import{j as t,aj as D,J as k,di as H,aN as L,o as a,w as q}from"./index-0QGih61V.js";import{n as g,b as i}from"./vendor-rkTZJa59.js";import{R as A}from"./mui-C42whWwM.js";import{V as J}from"./CollapsableReportTable-s_gsuEBP-C1aC-SHP.js";const U=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),i.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=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),i.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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,o,w as p,R as u}from"./index-
|
|
1
|
+
import{j as t,o,w as p,R as u}from"./index-0QGih61V.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,b5 as x}from"./index-
|
|
1
|
+
import{e as c,j as t,C as n,w,b5 as x}from"./index-0QGih61V.js";import{n as r}from"./vendor-rkTZJa59.js";import{y as l}from"./TimeframeSwitcher-Du60ffZv-BeSFHMlL.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{J as M,e as _,j as t,u as f,b7 as T,aw as C,av as S,bb as E,bk as k,q as x,ab as R,v as $,bl as G,bm as H,a0 as q,l as J,V as X,o as p,w as L,ao as Z,
|
|
1
|
+
import{J as M,e as _,j as t,u as f,b7 as T,aw as C,av as S,bb as E,bk as k,q as x,ab as R,v as $,bl as G,bm as H,a0 as q,l as J,V as X,o as p,w as L,ao as Z,x as F,R as A,Z as N,W,a5 as O,ai as Y,aj as Q,a6 as U,bn as ee}from"./index-0QGih61V.js";import{f as w,b as te,n as g}from"./vendor-rkTZJa59.js";import{I as ae,T as re}from"./ReloadCard-NvfxlEQu-BnXQfMVk.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"};
|
|
@@ -13,7 +13,7 @@ import{J as M,e as _,j as t,u as f,b7 as T,aw as C,av as S,bb as E,bk as k,q as
|
|
|
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(N,{"data-testid":
|
|
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(N,{"data-testid":W("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:Y(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(Q,{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;
|