@zeniai/web-cockpit-ui 1.14.1-pune → 1.14.2-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-CRqyoYEz-DIIEbfXH.js → ACHDetailsPage-CfXmiXOX-Bw6PIXTR.js} +3 -3
- package/dist/assets/{AIPerformancePage-DAkvkXSA-DCPKp1TL.js → AIPerformancePage-BTkeAbzQ-BrardM2A.js} +48 -38
- package/dist/assets/{AccountInfoPage-6EVpo7mW-_VH4qo0L.js → AccountInfoPage-Cw14e1jO-BsUim3eq.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BWZbyIYz-DsBeIJ7e.js → AccountInfoPageContent-cvYWnpel-CJmb2W-r.js} +15 -15
- package/dist/assets/{AccountReconDetailsDrawerPage-DLd_igXD-BDzMROTl.js → AccountReconDetailsDrawerPage-DOKqIknC-DSx-KpKz.js} +12 -12
- package/dist/assets/{AccountRow-D4iz2vCr-CUjY-as_.js → AccountRow-Ca-OS9TF-boQKAn9P.js} +20 -20
- package/dist/assets/{AccountsPromoCardStack-DIly1lFF-CoHITgz2.js → AccountsPromoCardStack-CwEVkbGD-GfsHQDZG.js} +19 -19
- package/dist/assets/{AddAddressForCardDrawer-C90j4Cwr-BuafF6k2.js → AddAddressForCardDrawer-B1zyrJMb-gDNlBeVv.js} +2 -2
- package/dist/assets/{AddToWalletPage-Bo2KesYz-CXFPlcd_.js → AddToWalletPage-s7c161JX-Bbl7vvY4.js} +37 -37
- package/dist/assets/{AgingReportsPage-DuoKsSkU-BM--piTX.js → AgingReportsPage-Be-2Z_KS-Cp8WnRhH.js} +4 -4
- package/dist/assets/{AllUserItems-C0U1Brjm-1EugRjNx.js → AllUserItems-B4Iah9-Z-B79SOI6_.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-dNwAZULr-CSLYB9s5.js → ApAgingDetailPage-D_KV9urv-CMDNQ6iG.js} +4 -4
- package/dist/assets/{AppBasePage-CfkaWEbJ-DSSQmZ3n.js → AppBasePage-GbE58C1g-BcYXZw8U.js} +4 -4
- package/dist/assets/{AppDrawerContent-DlHQEgOZ-Bu6aM3IO.js → AppDrawerContent-YTvkEPk_-6eMbUyIc.js} +57 -31
- package/dist/assets/{ApprovalRulesSettingsPage-Pl7HoLmk-0ndkNfLh.js → ApprovalRulesSettingsPage-Cct7Nzfb-BnkTkJjh.js} +6 -6
- package/dist/assets/{ArAgingChart-xI9TRvfS-BJS1mtHm.js → ArAgingChart-BeVadylU-XR25EAL6.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-BMGCnP5d-CqfkCp13.js → ArAgingDetailPage-CWUA4S2q-Ww5hXmPO.js} +2 -2
- package/dist/assets/{AttachmentView-C8AgUAnY-CDH1Mcyw.js → AttachmentView-DGsub__A-BBxOr8Ij.js} +5 -5
- package/dist/assets/{BankAccountSection-DB4PEf_X-DiW8OD4p.js → BankAccountSection-CtTkNBok-D2ekA6eB.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-BNO8Gl59-DLhau1xe.js → BankAccountWarningSection-dVdrPYm5-CnmYzGhr.js} +8 -8
- package/dist/assets/BankConnectionsSettingsPage-_e4jMGI2-DH8UTyN3.js +425 -0
- package/dist/assets/{BillDetailPage-Bv86SywV-6njFGhnW.js → BillDetailPage-Dz4_gdDb-ycU3JEwF.js} +7 -7
- package/dist/assets/{BillPayApprovalRuleDetailPage-CDXxmD-3-GLg1j3lZ.js → BillPayApprovalRuleDetailPage-DcNLlDh2-B0LeGU7-.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-Ci5Ok7Zj-BsfoZbfz.js → BillPayApprovalRulesPage-C_NDjp6G-D74xT3Vs.js} +8 -8
- package/dist/assets/{BillPayPromoPage-Co2j2krO-D4iqOCut.js → BillPayPromoPage-TkLMkxeC-CRgciQY3.js} +5 -5
- package/dist/assets/BillPaySetUpPage-DTGSGVO0-BjFYWMnM.js +42 -0
- package/dist/assets/{BillingSettingsPage-CAs7DZQz-De2Ozj6L.js → BillingSettingsPage-0RLFEj6x-1Rx-lW-z.js} +5 -5
- package/dist/assets/BillsBulkReviewDrawerPage-rkkXgsz4-DCe7oECG.js +1 -0
- package/dist/assets/{BoxItem-BqLhtWoJ-DTGdC4UO.js → BoxItem-CIBzy4ZV-BGT6YXil.js} +1 -1
- package/dist/assets/BusinessVerificationPage-T63_ft8O-BLj5IAMR.js +140 -0
- package/dist/assets/{CardNumberSubText-23sLjCVt-q9DlwjXk.js → CardNumberSubText-FOFiHz-M-BomqpZHj.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DY0n94jz-DZrOsGII.js → CashbackDetailPage-C1rbQ71n-BwGr1RFv.js} +19 -19
- package/dist/assets/ChargeCardDetailPage-OgsnesGD-BZdk7_5L.js +1447 -0
- package/dist/assets/ChargeCardListPage-CLHFYydY-CXTzCBUe.js +355 -0
- package/dist/assets/{ChargeCardListTable-B7uRDVzb-nPrrXfLF.js → ChargeCardListTable-ePSGyBtc-B6G4rFZ9.js} +17 -17
- package/dist/assets/ChargeCardPromoPage-Bi9cAv-f-5sPJiGwd.js +219 -0
- package/dist/assets/ChargeCardSetupPage-DvlKbA_C-AlRyM6Q7.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-JEslDm3r-Dz93LMxW.js → ChargeCardStatementsPage-CXhcA95f-C45_cho2.js} +3 -3
- package/dist/assets/{ChargeCardUtils-B3JEziD7-BDgvm4V8.js → ChargeCardUtils--ltNyvP2-TY5I7nE-.js} +1 -1
- package/dist/assets/{ChaseOverlay-KLet3F9X-CdWRAKXV.js → ChaseOverlay-CxEiwxZq-CYOJ8ZhP.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-JYHyo9Hw-CPcUjCHP.js → CheckDepositDrawerPage-CmZbDsc3-C6Gzx2Ad.js} +16 -16
- package/dist/assets/CollapsableReportTable-CyQ4sWuS-DlLXYbkM.js +2932 -0
- package/dist/assets/{CompanyOfficerDetailsSection-DWqEolPc-hNs6b-3g.js → CompanyOfficerDetailsSection-DPufRe0m-C6FmxOML.js} +27 -27
- package/dist/assets/{CompanyPassportCard-fyolEQTs-BM4j1zkv.js → CompanyPassportCard-JgslGZ14-CZLKyeTG.js} +4 -4
- package/dist/assets/{CompanyPassportPage-CrgsRRVr-_nJlM00G.js → CompanyPassportPage-B89YFcPT-CNi42FVb.js} +144 -144
- package/dist/assets/CompleteProfile-D0RvVu97-BvDLvwiX.js +36 -0
- package/dist/assets/{ConfettiBurst-CZuMHGP8-b0M1vB-_.js → ConfettiBurst-D3BYCsW2-CicOQOeb.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Ct4Kfowi-Dl-XZ9XF.js → CreateOrEditVendorPage-C6Ddagzy-CrkxkCuT.js} +13 -13
- package/dist/assets/{CreditCardPaymentDrawerPage-Cpu-7pGN-Cu9Xh0nq.js → CreditCardPaymentDrawerPage-C3mZhiZb-D2CoSxGr.js} +6 -6
- package/dist/assets/{CreditCardPaymentPlgSection-DoMaCnIZ-CNIK2scQ.js → CreditCardPaymentPlgSection-D9oAn9qk-hoy3ieFS.js} +8 -8
- package/dist/assets/{CurrencySelectField-CCOtXLC7-QnPV5zn9.js → CurrencySelectField-BBgpim44-D9iz41su.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-Cgzif1ji-DNCyl5ny.js → CustomerOnboardingActivationPage-iG0RHsLk-C1JrpXcK.js} +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-Dh5KIySS-CJFQyXj_.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BOMwRZEO-D2W7lEqa.js → CustomerOnboardingDetailPageSkeleton-tTcayyvt-DVLGbpG0.js} +8 -8
- package/dist/assets/{CustomerOnboardingNoStepsPage-DDloVGvk-BQPG4WD2.js → CustomerOnboardingNoStepsPage-CIranNRI-DmxCUvPO.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-DHji4ZmF-D4jjwuH5.js → CustomerOnboardingPage-aq8E7XsP-D1AWzLDa.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-BA3GAX42-CxgqSMiN.js → CustomerOnboardingProductSuitePage-DRnOKNVC-BW6Dqkww.js} +3 -3
- package/dist/assets/{Dashboard-Cr5ugENA-CPUy4XRU.js → Dashboard-DyvhSbme-CqiNyEeS.js} +241 -238
- package/dist/assets/DashboardReportPage-Cy_f84RN-BBIf3h8d.js +370 -0
- package/dist/assets/{DepositAccTransactionItem-BXRfgUfE-D4R7G7HE.js → DepositAccTransactionItem-DK15lI5V-XJtPziNz.js} +4 -4
- package/dist/assets/{DepositAccTransactionListPage--7TRlqKj-BQ7qJsKp.js → DepositAccTransactionListPage-CRBhV8W1-B1ipg9Mm.js} +5 -5
- package/dist/assets/{DocumentSecurityBanner-B0Qt1FLC-B14Aeb97.js → DocumentSecurityBanner-C0bght0k-vffkcqMR.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-RoRpMC50-CSWDfu4W.js → DomesticWireDetailsPage-BX8glsOH-C_hYfUMN.js} +1 -1
- package/dist/assets/{DownloadOverlay-Cl_EXjiu-Bty6MX5F.js → DownloadOverlay-C5kTy4dA-91imq83n.js} +18 -18
- package/dist/assets/{DrawerPage-wXwAaYEB-CO0tKzRK.js → DrawerPage-Bwgpjwed-Dbn0o-MI.js} +6 -6
- package/dist/assets/{EditPeoplePage-xDL6VA_r-CcyNCb0B.js → EditPeoplePage-W-SFOxhC-DmK3cjsW.js} +10 -10
- package/dist/assets/{EditReimbursementDetailPage-BUpJPJNu-DrlJ3-JK.js → EditReimbursementDetailPage-D1Iduokd-BJNaLsWB.js} +78 -78
- package/dist/assets/{EntityDetailPage-BNXqSwVL-BmsjQ-yP.js → EntityDetailPage-BkRcX4SZ-D3jHuVtH.js} +1 -1
- package/dist/assets/{EntitySummarySection-MZ57i-bY-CkJQLOms.js → EntitySummarySection-BlJR-qOB-BGQRVSO6.js} +13 -13
- package/dist/assets/{ExpenseAutomationOverviewPage-Y3IHs4dG-C3j4Kf98.js → ExpenseAutomationOverviewPage-qT0g5t_P-9L0vQmNh.js} +20 -20
- package/dist/assets/{ExpenseAutomationPage-C0hvPLo7-6SC0Lnzr.js → ExpenseAutomationPage-CMKwWy2d-BxRd7q46.js} +3 -3
- package/dist/assets/{ExpressPayPage-Bncb54-Q-DvnTKzCq.js → ExpressPayPage-DXfqMxkG-esMjhJU_.js} +9 -9
- package/dist/assets/{FeaturePreviewPage-BnGBEF9H-qbgUmwmT.js → FeaturePreviewPage-CjZuOo_K-BURLQGI3.js} +2 -2
- package/dist/assets/{FollowStepsSection-laCvnETV-Bd5BOauY.js → FollowStepsSection-CO5MsYe6-DJwkRNbY.js} +6 -6
- package/dist/assets/{GlobalReviewListPage-CskEuHc5-Dmr2MpXl.js → GlobalReviewListPage-BIMdWu5P-DVJexznn.js} +11 -11
- package/dist/assets/{HelpButton-D5ZYyQMh-CbYd0zN7.js → HelpButton-BGHsn-1b-Cb4db_8O.js} +2 -2
- package/dist/assets/{InformationCardStack-BFJqdH9n-bSWTqBDS.js → InformationCardStack-B8rD8LSH-yY61wi0E.js} +5 -5
- package/dist/assets/{InsightsCardStack-CcoMWMiA-DoomT7wI.js → InsightsCardStack-AwXZ6ysD-CAyDZRBh.js} +7 -7
- package/dist/assets/{InsightsSection-D9PiJagu-BAVC-lZw.js → InsightsSection-BZS-MEy4-D-RgHCTj.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-CVmDobJ8-DUTif9-q.js → IntegrationsSettingsPage-D2tfKsbR-3hbSPzUb.js} +11 -11
- package/dist/assets/{InternationalWireSwiftDetailsPage-DqW88v9N-Ckhip8a0.js → InternationalWireSwiftDetailsPage-5NmSFI7x-CMxHmzOl.js} +12 -12
- package/dist/assets/{InternationalWireVerificationPage-X90z_30k-BipvB1gK.js → InternationalWireVerificationPage-C8WA6jI_-CkLLJOPd.js} +7 -7
- package/dist/assets/{InviteFormPage-BK-PRmeH-BScQiDBC.js → InviteFormPage-DC2ewDUN-BAnhpAwr.js} +23 -23
- package/dist/assets/{InvitePageListView-6-iCc4BK-BqA8heOE.js → InvitePageListView-DaShj4IM-BOaRvdOZ.js} +35 -35
- package/dist/assets/InvitePeoplePage-BbY4ZpGl-DYibhSDJ.js +12 -0
- package/dist/assets/{InvoiceUploadSection-D5aF4auL-BeD6SrG2.js → InvoiceUploadSection-DZJTULDZ-CCiLRTJv.js} +4 -4
- package/dist/assets/{IssueChargeCardPage-C_xt7hKZ-DIZL4bBR.js → IssueChargeCardPage-C1zB2vrB-BGIJGo3C.js} +25 -25
- package/dist/assets/{LabeledAddressValue-DpSK0MqC-Cj7E_lje.js → LabeledAddressValue-BDA7y5Fq-D9zYp9L5.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-_LY7c-ZC-Dc-9_BK1.js → LabeledAddressValueField-fj8E8gFz-pB5NcQXj.js} +4 -4
- package/dist/assets/{LabeledControlledCheckBoxField-FB40Z8J7-BP3P2Wmj.js → LabeledControlledCheckBoxField-aLuztBgv-CQQDZTL8.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-paSeI8_R-DbZOk4k7.js → LabeledCreatableSingleSelectField-zhHbiOVO-Du1erYiL.js} +7 -7
- package/dist/assets/{LabeledDocumentField-DiMgPKtR-CSKmqw6B.js → LabeledDocumentField-BTgmGAGq-ye6jxVF6.js} +6 -6
- package/dist/assets/{LabeledDropDownFormattedTextField-DsjpTL6X-j5IQGEbH.js → LabeledDropDownFormattedTextField-BdAKZt7q-DJYe0D29.js} +5 -5
- package/dist/assets/{LabeledText-CyXj8QWV-Bl6WT0AA.js → LabeledText-CMrFKM7D-U8mavECd.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CUT00Vix-QHUo9PdC.js → LabeledUserSingleSelectWithSubtitlesField-C8A0HrPt-Dt-qPiqg.js} +15 -15
- package/dist/assets/{LabeledZeniRolesDropDownField-D0cQlbhO-Dakmm_pD.js → LabeledZeniRolesDropDownField-BaiPRGJf-ThyMB5yW.js} +18 -18
- package/dist/assets/{LinkJETransactionPage-DaXjiQRp-CeG2b6Yz.js → LinkJETransactionPage-CWc1e0RL-uXbP7Kvy.js} +4 -4
- package/dist/assets/{LowBalancePopup-CdftTvLb-DHrY0Q9F.js → LowBalancePopup-COu8cuzS-D_SGW7IW.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-C25i1T4c-D1WMteCs.js → MagicLinkACHDetailsPage-h0Srx7SO-dPgjPO_-.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B0r3WStl-Be739DkS.js → MagicLinkDomesticWireDetailsPage-BIZqOfHW-tQ-JKEYq.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C-ev-6xJ-DjZv-CZx.js → MagicLinkInternationalWireDetailsPage-MSHTQMXn-BVkJt1cv.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-7JG3V4Qt-aQjB1Hdx.js → MagicLinkSuccessPage-BjWw4cqt-AmPRrK11.js} +3 -3
- package/dist/assets/{MagicLinkTitleSection-DEe0hhml-OAdcgqT_.js → MagicLinkTitleSection-Cll6JJDZ-CoLcdtN3.js} +4 -4
- package/dist/assets/{MailingDetailsSection-Qc65E0w3-DAFQ-tkz.js → MailingDetailsSection-DWSj0MOB-BPZUzJp9.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-Dh8meV6d-Bpx3vewx.js → MeetingCalenderPopup-CTuOhFQC-C5al8-0n.js} +3 -3
- package/dist/assets/{Menu-DyfXBl_1-ub7G94mj.js → Menu-DlBP5CCV-y1Vf24E1.js} +3 -3
- package/dist/assets/{MyBankConnectionsSettingsPage-CCFcVgyX-BtQSGmwE.js → MyBankConnectionsSettingsPage-BYqoUq4q-Da0QKGU9.js} +15 -15
- package/dist/assets/{MyPendingActivationChargeCardListPage-DS966wTB-DpfpopfQ.js → MyPendingActivationChargeCardListPage-BABBa4je-B1cN2Q5f.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BRRzMoQL-D5eo9Sqc.js → MyProfileSettingsPage-Dk_jK8-R-BnmR2m7z.js} +5 -5
- package/dist/assets/{NavBarWithPicker-BvWih0k0-Dufdt2Ka.js → NavBarWithPicker-BC2xbV2b-BcYENhJM.js} +3 -3
- package/dist/assets/{NavigationArrow-DYSL2aDL-WkPryo2E.js → NavigationArrow-BovrdeuJ-BGk3-i0K.js} +5 -5
- package/dist/assets/{NavigationDots-DyyCcIih-Dej6_J6K.js → NavigationDots-yYTGREt4-DTRiZdAJ.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DjEvzM4M-BHj9e2zb.js → NewGlobalMerchantPage-BKlPnipd-BUgMD2pk.js} +32 -32
- package/dist/assets/NoDataChart-Dhg-k7iX-B526qZJD.js +26 -0
- package/dist/assets/{NoDataTable-CXNsBBVP-DB2tU5FS.js → NoDataTable-jpCLeiDv-DPfhsNYe.js} +1 -1
- package/dist/assets/{NotFoundPage-CuuO2Mia-DK_un8VO.js → NotFoundPage-DrKqVOry-CJmDZfXH.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-C7ilxUAV-DNcmVmd9.js → NotificationSettingsPage-lojoBPQ8-BBTvd9G7.js} +5 -5
- package/dist/assets/NotificationsListConfig-jbIMYvrE-DMMvGaQE.js +1 -0
- package/dist/assets/{NotificationsPage-BjaKD99B-ChKA1ZUW.js → NotificationsPage-DJNUS9wc-8qosqB88.js} +22 -22
- package/dist/assets/{OpExByVendorPage-IuDiHnIW-D8WE3sE0.js → OpExByVendorPage-xMyUkO51-DLNCDIdB.js} +7 -7
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-D4ozS3gq.js → OverlayContainerPage-GWXnlbZH-DExKUjLx.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DLvgYpF8-DAoSI7if.js → PandLWithForecastPage-BHtPelIT-DOZ7XwiG.js} +9 -9
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CZ8ZY08D-DK5OgBuH.js → PaymentAccountSetupBillingAddressSection-B2ZBSiCT-BcCn0Sg1.js} +8 -8
- package/dist/assets/{PeoplePage-DyqY-rIV-BP1By1O6.js → PeoplePage-CzQXmGVU-3wd2TE5z.js} +31 -31
- package/dist/assets/{PortfolioAllocationFormPage-DTuKtkwr-9rUcLC7b.js → PortfolioAllocationFormPage-B1Xa0wKV-C9f5vgAD.js} +4 -4
- package/dist/assets/PortfolioDetails-BY-IK4yO-BaoJWjzR.js +218 -0
- package/dist/assets/{ProductsCarousel-CS4_yc80-PtugE9vt.js → ProductsCarousel-B7h_gH-R-XoeszqUs.js} +8 -8
- package/dist/assets/{PromoBaseCards-BZ2m6LfO-Cud5t_Fi.js → PromoBaseCards-CuJXuijt-Cwtg1Msq.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-2vJQuslh-BI_9YQGE.js → QBOConnectionDialog-DsNkkj_j-C8IchF8A.js} +4 -4
- package/dist/assets/{QBOSetupSection-Yv3Xw-yn-CG5PgwyR.js → QBOSetupSection-DkoopYHr-B4YL_CMi.js} +7 -7
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-tvJ2APRB-D4mUNHAO.js → ReimbursementApprovalRuleDetailPage-BAapaJEJ-DsiatGsD.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-_nXCDa2A-sj6jFbs4.js → ReimbursementApprovalRulesPage-BkiZVc7S-CGfJ2oyo.js} +19 -19
- package/dist/assets/ReimbursementDetailPage-S9j_KDZJ-B4Ft6bVK.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-BaEX5Ej4-EKPuTP60.js → ReimbursementPromoPage-BJJruudV-4Q4ZYCZV.js} +7 -7
- package/dist/assets/ReimbursementSetUpPage-CQdxq5lk-MGbpCaqc.js +140 -0
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-HQg1y1K--BJEZ2gJz.js → ReimbursementsBulkReviewDrawerPage-5LGKVY6X-ClMjr5Ld.js} +1 -1
- package/dist/assets/{ReloadCard-stfG9ekP-CAtXGPKA.js → ReloadCard-DBRY9FdH-DLbqkxuz.js} +6 -6
- package/dist/assets/ReportTableViewSelector-DOxnK0VV-Civ7jc9s.js +150 -0
- package/dist/assets/ReportsPage-r_MRjkkb-B5PSr911.js +121 -0
- package/dist/assets/{RevenueChart-DeDVVUge-DswYpzgj.js → RevenueChart-DhCkb0c6-CpmVmIv5.js} +25 -25
- package/dist/assets/{ReviewDetailsPage-DZqPpiln-BD-TTPjy.js → ReviewDetailsPage-DWtgiOYE-C2elGQRI.js} +12 -12
- package/dist/assets/{ReviewOverlay-DcBe94Sd-BykmGHu4.js → ReviewOverlay-CjWEPPvw-B5TX8ZjT.js} +13 -13
- package/dist/assets/RoleWithToolTip-4WCTaiOg-BCe2sjxQ.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cl8iBII0-DMtW2KW5.js → ScheduleDetailsFixedAssetsPage-CSxG7vXq-DCXxKyPi.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-D6ZxZ2uU-C3_NmU11.js → ScheduleDetailsPage-BqaZqCZJ-pwjFyU_u.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-eRImHbZn-D8TBysPL.js → ScheduleSequenceTable-H_kZuoon-C9WFZ9rS.js} +15 -15
- package/dist/assets/{ScreenRoutes-miCOug2f.js → ScreenRoutes-Ck2JOiJO.js} +35 -35
- package/dist/assets/{SetUpAccountSection-BBZNI1Xl-DXELzEMu.js → SetUpAccountSection-B9L-2aHz-CS276oDL.js} +41 -41
- package/dist/assets/{SetUpDefaultSection--9Qh-utY-c-mUbFLs.js → SetUpDefaultSection-DO9aLike-BNjhrnJW.js} +11 -11
- package/dist/assets/{SignIn-CI0Ik2va-B1YM8rEU.js → SignIn-DOSDfnki-ZWJtrmyd.js} +18 -18
- package/dist/assets/{SignInScreen-DVUMKIBQ.js → SignInScreen-B66laInZ.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-NWkSnIdD-DEongjR9.js → SpendManagementListViewPage-D6ysU0TE-fs0LZdDD.js} +14 -14
- package/dist/assets/{SpendManagementPerTabPage-CdWwn_b8-DnGEGhos.js → SpendManagementPerTabPage-CHvroeCa-SUCxwVKR.js} +38 -38
- package/dist/assets/{SpendManagementSection-DGhD95sz-VmruoRWg.js → SpendManagementSection-BaEgJPY4-DbFNSMHd.js} +11 -11
- package/dist/assets/SpendMgmtSetupAccountSection-CVaXDNNK-CaCI906W.js +206 -0
- package/dist/assets/{StatementItem-BlfBohft-U3FqyIo0.js → StatementItem-CYPCJ0XS-Bebbfivn.js} +5 -5
- package/dist/assets/StatementsPage-Cyqg2jd1-CS8CbIkz.js +58 -0
- package/dist/assets/{StatusSwitcher-C6703BAG-eDDkVLmz.js → StatusSwitcher-C5UGqQw8-L5IIUMyD.js} +4 -4
- package/dist/assets/{SubTabSwitcher-lf9S7Ubj-CmXqrtys.js → SubTabSwitcher-B3rFIZQy-fhfcG8ZL.js} +1 -1
- package/dist/assets/{SummaryCard-yghz4PLR-CvQEKxF5.js → SummaryCard-CNADDyPG-AHW1-mz3.js} +1 -1
- package/dist/assets/{TaskManagementPage-Cf523C5f-BE6A19pl.js → TaskManagementPage-CtUQXjo2-CpaAFAcY.js} +29 -29
- package/dist/assets/{TimeRangeSwitcher-BoPrOhKX-CRKXdJOA.js → TimeRangeSwitcher-BXXqX3m6-DBFCX_F3.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-DufweySH-jTXdFynw.js → TimeframeSwitcher-Bk9rjDg4-BqMFgpEZ.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-RH8QHQFd-tstiafTX.js +31 -0
- package/dist/assets/{TopExCard-DrOjlLiv-D1xK4ZLl.js → TopExCard-xJbS_mNo-B0v7lag7.js} +4 -4
- package/dist/assets/{TopExDetailPage-Ds4zlxKD-B50iPc07.js → TopExDetailPage-BDUuqAEK-Bo-vZtIP.js} +10 -10
- package/dist/assets/{TransactionDetailPage-Csl-Qjxp-DV-6_vXT.js → TransactionDetailPage-CtzLtYa8-J7xBsyNJ.js} +30 -30
- package/dist/assets/TransactionList-DS-_gBrf-B6pRX61G.js +147 -0
- package/dist/assets/{TransactionListBig-p6iVof9y-DpVKiek7.js → TransactionListBig-D9ebH5C0-D4IFnh5K.js} +10 -10
- package/dist/assets/TransactionListPage-CPjayOv5-C1z1kCC6.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-DzkUYyCr-DI4vuyOD.js → TransactionVendorDetailPage-DMYoBJ23-BkgKiHHa.js} +5 -5
- package/dist/assets/{TransferDrawerPage-B9MGSdS9-AoRYBOP9.js → TransferDrawerPage-BAghLjPn-DV8a9ZRS.js} +30 -30
- package/dist/assets/{TreasuryOverviewPage-BEzBuOWn-C_ij1-dD.js → TreasuryOverviewPage-B7EFea4a-zZd4C5QF.js} +46 -46
- package/dist/assets/{TreasuryPromoPage-C8X4X7iN-C2DHRZVT.js → TreasuryPromoPage-D7Y8yGpx-5DMBtH8J.js} +27 -27
- package/dist/assets/{TreasurySetupPage-Cb_GW75l-DHI8fRrl.js → TreasurySetupPage-B1SZd_a5-DTKitX5z.js} +6 -6
- package/dist/assets/{TreasuryStatementsPage-sOiD2QYm-BjV9xUSX.js → TreasuryStatementsPage-uakhQGBW-DM3cx3mz.js} +7 -7
- package/dist/assets/{TreasuryTaxLetterPage-DYzqfHym-C8i4pNnG.js → TreasuryTaxLetterPage-BHvr72P1-ZqD52w0m.js} +7 -7
- package/dist/assets/{TreasuryTransferOrReviewPage-CesaUuNp-BlrFvGYE.js → TreasuryTransferOrReviewPage-BBPDHav1-FgeqnaCs.js} +78 -78
- package/dist/assets/TrendChart-ChiKhGtw-BlRFpdWI.js +16 -0
- package/dist/assets/{TrendWithTransactions-CUlTYGIm-DvdNaPh-.js → TrendWithTransactions-DEMNHbbz-DBOPdxuf.js} +7 -7
- package/dist/assets/{UncategorizedAccountsMappingPage-D76VPNEd-D4SPdVXr.js → UncategorizedAccountsMappingPage-BDNznj4Y-DBTlThuY.js} +17 -17
- package/dist/assets/{UnitIntegrationPage-BsZCe-lq-DrfCSWxr.js → UnitIntegrationPage-Bgu5xfcn-CtKgXROf.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-B3tUNhKj-DN4WILBU.js → UploadAdditionalDocumentOverlay-DW6WCx4i-CGbCT0bE.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Bk-WKgMh-DrsH2xrD.js → Vendor2FAPopup-D34glhep-Bcy6uzR5.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-u8a3XF33-CrKMxXqd.js → VendorACHDetailsPage-CSqpbr2r-BGpdO99p.js} +1 -1
- package/dist/assets/{VendorDetailPage-B-RdB79n-CDKqGTzV.js → VendorDetailPage-CJw1v9tJ-BWewlDVL.js} +18 -18
- package/dist/assets/{VendorDomesticWireDetailsPage-Bhb1Dmge-BeNq1bzX.js → VendorDomesticWireDetailsPage-BY8F5AWO-DX4fuW2L.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DHRivhBg-ERVyS3P2.js → VendorFiling1099EditablePage-COYZCnYS-BBPw3drw.js} +15 -15
- package/dist/assets/VendorFirstReviewPage-BqnXdq6Q-CL1x86cX.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-Cjx1hvUL-CEdr_PZS.js → VendorInternationalWireDetailsPage-K9botaZv-yQ73nWrj.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BszRCCDh-B4pRgjkw.js → VendorInternationalWireSwiftDetailsPage-DQ_akVN_-s-XTKsWI.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D6VSJUo1-Glx5yRhz.js → VendorsAccountsSection-D5d42xeO-CJcEHkCK.js} +2 -2
- package/dist/assets/{WarningsDrawerPage-DReVGPEj-CIQlt88e.js → WarningsDrawerPage-DiA5MRFe-Bc00wID9.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-CFTB_WYX-CRRVNfVo.js → ZeniAccountDetailPage-DSCbx6BB-DGWgYb7a.js} +23 -23
- package/dist/assets/{ZeniAccountListViewPage-BmYgbIuC-DNXzp5P9.js → ZeniAccountListViewPage-7zssUaoL-DvaV5FVV.js} +21 -21
- package/dist/assets/{ZeniAccountNavBarPieces-gzy5T7nu-ZPpRmm1I.js → ZeniAccountNavBarPieces-By4S70vz-DdkCg5aL.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-AfRVTc8V-r71cWD_l.js → ZeniAccountPromoPage-Bvr4t7zq-DL50qAxB.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-YXJmpz_d-3FWCeT2b.js → ZeniAccountSetupPage-DtDN9JWk-D8j-79L6.js} +4 -4
- package/dist/assets/{ZeniCopyright-CqpcrgAZ-CH2r91yw.js → ZeniCopyright-CxC3wvp1-gbMTqRLu.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DGkzRyMW-M3i8bnVC.js → ZeniTransferAmountSlider-CcbG1sHp-Dm5uqXid.js} +1 -1
- package/dist/assets/analytics-CBL_L82S.js +7 -0
- package/dist/assets/{analyticsHelper-sgo3pabT-BeTMdSYn.js → analyticsHelper-3y6VD3VH-4b12iNu9.js} +1 -1
- package/dist/assets/{analyticsHelper-BKEOwNtm.js → analyticsHelper-D4WZaKOr.js} +1 -1
- package/dist/assets/{chartTypes-Dj-_K0Gi-EQP1Ce02.js → chartTypes-mKuCmPTG-BM7hqR_d.js} +1 -1
- package/dist/assets/{commonDimensions-CKgBEMhT-JcVoNYFG.js → commonDimensions-BHBDbLXD-D2tFRShv.js} +1 -1
- package/dist/assets/{detailCommon-vtB2ffbe-CVFboB64.js → detailCommon-1QwSQL9C-CMTdKXNR.js} +10 -10
- package/dist/assets/{downloadPdf-CiC0AXNH-CeD8Q-Pl.js → downloadPdf-DjM3Z_88-B-Yuc7DP.js} +1 -1
- package/dist/assets/{index-D3N9MvRr.js → index-CWmqNC4C.js} +3532 -3549
- package/dist/assets/mapLoadingInProgressToTreeNode-CKZd1bh4-H6b75J9k.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CWaIGa37-l4B2WAau.js → mapSectionWithAcOnlyToTreeNode-CO6ix8Ks-D7LvCMfp.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CzcEW1Rc-DpU4PyGc.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-CEDhLCxY-D-EnNeIG.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-y3lzh3vX-QR9PSTFA.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Bf3d9TrW-Cgl9vOT0.js +1 -0
- package/dist/assets/{play-icon-CF-Mkuir-D0VaB-h5.js → play-icon-DfMYCOJa-CBLpaBHA.js} +3 -3
- package/dist/assets/{toCOABalancesWithID-D1BwrImS-CU7gHn7p.js → toCOABalancesWithID-CEvuOTjK-TT4jMA7r.js} +1 -1
- package/dist/assets/{toChartData-DVTo0PPD-Xv5HtUSQ.js → toChartData-D2kGY49E-CsLrqkFw.js} +1 -1
- package/dist/assets/{treasuryColorHelper-QzSX5YTe-DRvV2CE6.js → treasuryColorHelper-k2phUKLw-Bv7jwBAj.js} +1 -1
- package/dist/assets/{uploadAttachment-BxwOR3I5-D86nKqy9.js → uploadAttachment-kyOdZMbL-CJNFoqRM.js} +7 -7
- package/dist/assets/{uploadReceipts-Buvz7DfG-CwTcUaXM.js → uploadReceipts-D80JLNY4-Cic2YR7g.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/BankConnectionsSettingsPage-BOreBo5b-D37lKtbY.js +0 -379
- package/dist/assets/BillPaySetUpPage-DjpCUZaT-Ddup2DO2.js +0 -42
- package/dist/assets/BillsBulkReviewDrawerPage-DjunAUW0-B6U5Is6f.js +0 -1
- package/dist/assets/BusinessVerificationPage-CZGOzc9Z-D6-Ww27c.js +0 -140
- package/dist/assets/ChargeCardDetailPage-NWTPnGtM-DFqwW_o-.js +0 -1447
- package/dist/assets/ChargeCardListPage-D42dfnET-BwGRx6DO.js +0 -355
- package/dist/assets/ChargeCardPromoPage-CXiXee-8-rWS9j7At.js +0 -190
- package/dist/assets/ChargeCardSetupPage-Ccc8PoCm-DOz93R9J.js +0 -36
- package/dist/assets/CollapsableReportTable-DshWn4Fc-CB5euwH7.js +0 -2860
- package/dist/assets/CompleteProfile-D_zq0Bxi-4-J8J591.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-ByWeMmBf-4mOzqlwZ.js +0 -1
- package/dist/assets/DashboardReportPage-paPVk_v2-Dvs7jyc3.js +0 -349
- package/dist/assets/InvitePeoplePage-C9AwNqIx-ByE99RmM.js +0 -12
- package/dist/assets/NoDataChart-DE6NV823-DgTs2vbZ.js +0 -26
- package/dist/assets/NotificationsListConfig-TBQMobJ5-DLtoRFYq.js +0 -1
- package/dist/assets/PortfolioDetails-DJFeMG4U-DswuDgPe.js +0 -218
- package/dist/assets/ReimbursementDetailPage-CtEAsq7u-CdLZ67Bg.js +0 -314
- package/dist/assets/ReimbursementSetUpPage-DXOqEJL4-DeydDpr0.js +0 -140
- package/dist/assets/ReportTableViewSelector-_RTCd2td-J4MgIxi7.js +0 -133
- package/dist/assets/ReportsPage-BIzz5Dt_-BPRCOVMf.js +0 -120
- package/dist/assets/RoleWithToolTip-DZO2tooH-6nbnfSfh.js +0 -22
- package/dist/assets/SpendMgmtSetupAccountSection-DG4ozkeT-CetbNb1Y.js +0 -207
- package/dist/assets/StatementsPage-CUpjL5u7-BWH36hJA.js +0 -58
- package/dist/assets/TimeframeSwitcherWithToggle-BKwe3K9l-CC0-bOos.js +0 -31
- package/dist/assets/TransactionList-2HeLZVn9-D_XSB9a8.js +0 -147
- package/dist/assets/TransactionListPage-tnL66tOu-DKTJncjo.js +0 -35
- package/dist/assets/TrendChart-kwGU0d90-D9vTA2Kh.js +0 -16
- package/dist/assets/VendorFirstReviewPage-Cn2GBsyl-cg4le0C7.js +0 -730
- package/dist/assets/analytics-DThoELaW.js +0 -7
- package/dist/assets/mapLoadingInProgressToTreeNode-0MIZwF_y-BJQcaPEZ.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-1Bdqp9WS-Bf4vh4uO.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-MPZhFWqo-DqH1QGXc.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{u as
|
|
1
|
+
import{u as X,X as v,a as Zt,M as P,c3 as Kt,j as t,aV as Xt,l as g,F as Qt,a3 as ei,o as i,T as we,gm as ti,C as R,hu as ii,p as Ne,c as oi,z as et,bL as tt,ai as it,di as ot,bT as st,jd as at,m as w,K as si,je as ai,dg as ce,ad as ri,Q as ni,h as rt,g as S,v as li,bf as z,cg as ue,fz as he,jf as pe,w as nt,d2 as lt,dq as V,cZ as dt,fI as di,s as Q,hI as ci,e as H,eY as ui,a7 as ye,ao as fe,jg as hi,bc as ct,jh as Ie,aP as pi}from"./index-CWmqNC4C.js";import{b as x,n as r,j as O}from"./vendor-CnQcJ2Lu.js";import{k as fi}from"./SubTabSwitcher-B3rFIZQy-fhfcG8ZL.js";import{d as ut}from"./useLongPress-GCK2COYQ-gxLtL5O4.js";import{A as ht,t as pt,a as ft,E as mt,L as gt,I as xt}from"./NotificationsListConfig-jbIMYvrE-DMMvGaQE.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";function mi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),f=X(),m=x.useCallback(b=>{d(b.id)},[d]),p=x.useCallback(b=>{u(b.id)},[u]);return e.length===0?null:t.jsxs(gi,{windowSize:h,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${f.colors.grey3}`},onTabChange:m}),t.jsx(fi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:p})]})}const gi=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
5
|
-
`,{common:{timeStrings:bt,strings:xi},dateFormat:Te,timeFormat:bi}=P.getLocalizedStrings(),wt=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],ne=e=>e.type.concat(xi.underscore).concat(e.start.format(Te.visual.DdashMMdashYYYYFormat)),me=e=>{switch(e.type){case"today":case"yesterday":case"earlier_this_month":case"last_7_days_this_month":return bt[e.type];case"earlier_that_month":return e.start.format(Te.visual.MMMYYYYFormat)}},yt=e=>{const o=g.zeniDate(e.toUTCString()),s=g.dateNow(),a=s.diff(o,"minutes"),n=s.diff(o,"seconds"),l=60,c=24*60;return n<=l?bt.justNow:a<c&&hi(o,0)?o.format(bi.hhmmAFormat):o.format(Te.visual.MMMDFormat)},Re=e=>{switch(e.code){case"todo":return S.important;case"in_progress":return S.info;case"on_hold":return S.alert;case"done":return S.championLight;case"resolved":return S.successDark;default:return S.neutralGrey2Light}},{commentsAndNotifications:{notifications:{actionStrings:{comments:wi}}}}=P.getLocalizedStrings(),$t=e=>{e.sort((n,l)=>g.zeniDate(n.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),a=ie(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),u=g.dateNow().subtract(2,"d").endOf("d"),a=ie(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),u=g.dateNow().subtract(9,"d").endOf("d"),a=ie(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const f=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(h,"month").endOf("M").endOf("d");h++,a=ie(o,f,m),o=a.remainingData,s.push({start:f,end:m,type:n,notifications:a.singleGroup})}break}}return s},ie=(e,o,s)=>{const a=[],n=e.map(l=>at(o,s,g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(c.inboxNotification.notifiedAt.toUTCString()))===!0?-1:1),{singleGroup:a,remainingData:n}},yi=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=wi;return o.comments.length===1?a:s},jt=new R(3,2,1,1,1),kt=new R(w[8],w[6],35,35,w[6]),le={lineClamp:jt,sectionWidth:kt},{common:{texts:ze,timeStrings:$i,strings:ee},commentsAndNotifications:{notifications:{strings:{newMessage:ji},actionStrings:{comments:{newCommentAdded:ki}}}}}=P.getLocalizedStrings(),Si=({notificationData:e,users:o,isHighlighted:s=!1,style:a,onNotificationTileClick:n})=>{const l=nt(),c=lt().analytics,{inboxNotification:{id:d,readAt:u,notifiedAt:h},thread:f}=e,{setRequestToOpenThread:m}=x.useContext(di),p=u!=null?"read":"unread",{metadata:{url:b,companyId:k,entityType:B},id:G}=f;return t.jsxs(Ri,{readStatus:p,isClickable:!!b,isHighlighted:s,style:a,onClick:()=>{b&&(n(d,g.toZeniUrl(b),p),(f.metadata.tab==="bill"||f.metadata.tab==="reimbursement")&&m({threadId:G,companyId:k,entityType:B})),f.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",f.metadata.companyName,l.controllersList.controllers.map(T=>
|
|
5
|
+
`,{common:{timeStrings:bt,strings:xi},dateFormat:Te,timeFormat:bi}=P.getLocalizedStrings(),wt=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],ne=e=>e.type.concat(xi.underscore).concat(e.start.format(Te.visual.DdashMMdashYYYYFormat)),me=e=>{switch(e.type){case"today":case"yesterday":case"earlier_this_month":case"last_7_days_this_month":return bt[e.type];case"earlier_that_month":return e.start.format(Te.visual.MMMYYYYFormat)}},yt=e=>{const o=g.zeniDate(e.toUTCString()),s=g.dateNow(),a=s.diff(o,"minutes"),n=s.diff(o,"seconds"),l=60,c=24*60;return n<=l?bt.justNow:a<c&&hi(o,0)?o.format(bi.hhmmAFormat):o.format(Te.visual.MMMDFormat)},Re=e=>{switch(e.code){case"todo":return S.important;case"in_progress":return S.info;case"on_hold":return S.alert;case"done":return S.championLight;case"resolved":return S.successDark;default:return S.neutralGrey2Light}},{commentsAndNotifications:{notifications:{actionStrings:{comments:wi}}}}=P.getLocalizedStrings(),$t=e=>{e.sort((n,l)=>g.zeniDate(n.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),a=ie(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),u=g.dateNow().subtract(2,"d").endOf("d"),a=ie(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),u=g.dateNow().subtract(9,"d").endOf("d"),a=ie(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const f=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(h,"month").endOf("M").endOf("d");h++,a=ie(o,f,m),o=a.remainingData,s.push({start:f,end:m,type:n,notifications:a.singleGroup})}break}}return s},ie=(e,o,s)=>{const a=[],n=e.map(l=>at(o,s,g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(c.inboxNotification.notifiedAt.toUTCString()))===!0?-1:1),{singleGroup:a,remainingData:n}},yi=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=wi;return o.comments.length===1?a:s},jt=new R(3,2,1,1,1),kt=new R(w[8],w[6],35,35,w[6]),le={lineClamp:jt,sectionWidth:kt},{common:{texts:ze,timeStrings:$i,strings:ee},commentsAndNotifications:{notifications:{strings:{newMessage:ji},actionStrings:{comments:{newCommentAdded:ki}}}}}=P.getLocalizedStrings(),Si=({notificationData:e,users:o,isHighlighted:s=!1,style:a,onNotificationTileClick:n})=>{const l=nt(),c=lt().analytics,{inboxNotification:{id:d,readAt:u,notifiedAt:h},thread:f}=e,{setRequestToOpenThread:m}=x.useContext(di),p=u!=null?"read":"unread",{metadata:{url:b,companyId:k,entityType:B},id:G}=f;return t.jsxs(Ri,{readStatus:p,isClickable:!!b,isHighlighted:s,style:a,onClick:()=>{b&&(n(d,g.toZeniUrl(b),p),(f.metadata.tab==="bill"||f.metadata.tab==="reimbursement")&&m({threadId:G,companyId:k,entityType:B})),f.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",f.metadata.companyName,l.controllersList.controllers.map(T=>V(T)),f.resolved?"resolved":"open",{name:dt(l.loggedInUser),email:l.loggedInUser?.userEmail??""},"db notification")},children:[t.jsx(vi,{notificationData:e,users:o}),t.jsx(Ni,{...e}),t.jsx(Ti,{timestamp:h,readStatus:p})]})},St=({notificationData:e,users:o})=>{const{thread:s}=e,{comments:a}=s,n=a[0];return a.length===0||n.body==null?t.jsx($e,{children:ji}):t.jsx($e,{children:n.body.content.map(l=>{switch(l.type){case"paragraph":return l.children.map((c,d)=>{if(Li(c)){const h=o.find(f=>f.userId===c.id);return c.id?t.jsx(Ci,{notificationData:e,user:h},`${c.id}${ee.underscore}${d}`):null}if(Ii(c)){const h=ci(c.url)??c.url;return t.jsx(Bi,{href:h,target:"_blank",rel:"noopener noreferrer nofollow",children:c.text??c.url},d)}let u=c.text;return c.bold===!0&&(u=t.jsx(Di,{children:u},d)),c.italic===!0&&(u=t.jsx(Ai,{children:u},d)),c.strikethrough===!0&&(u=t.jsx(Oi,{children:u},d)),c.code===!0&&(u=t.jsx(Mi,{children:u},d)),t.jsx(Pi,{children:u},d)});default:return t.jsx($e,{children:ki})}})})},vi=({notificationData:e,users:o})=>{const s=v();return t.jsx(Fi,{windowSize:s,children:t.jsx(St,{notificationData:e,users:o})})},Ci=({notificationData:e,user:o})=>{const{inboxNotification:{readAt:s}}=e,a=s!=null?"read":"unread";let n=t.jsxs(_e,{className:"userText",readStatus:a,children:[ee.atTheRate,ze.user,ee.space]});if(o!=null){const l=V(o,!1);n=t.jsx(t.Fragment,{children:t.jsxs(_e,{className:"userText",readStatus:a,children:[ee.atTheRate,l||ze.user,ee.space]})})}return n},vt=e=>{const o=yi(e);return t.jsx(t.Fragment,{children:o})},Ni=e=>{const o=v();return t.jsx(_i,{windowSize:o,children:t.jsx(vt,{...e})})},Ct=e=>{const{timestamp:o,readStatus:s}=e,a=yt(o);return t.jsxs(t.Fragment,{children:[t.jsx(Gi,{isNewNotification:a===$i.justNow,children:a}),t.jsx(Ui,{readStatus:s})]})},Ti=e=>{const o=v();return t.jsx(zi,{windowSize:o,children:t.jsx(Ct,{...e})})};function Li(e){return"type"in e&&e.type==="mention"}function Ii(e){return"type"in e&&e.type==="link"}const Ri=r.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: row;
|
|
8
8
|
align-items: center;
|
|
@@ -89,7 +89,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
89
89
|
border-radius: ${i.sp2};
|
|
90
90
|
flex-shrink: 0;
|
|
91
91
|
background-color: ${e=>e.readStatus==="unread"?S.info:"transparent"};
|
|
92
|
-
`,je={emptyRowItemSectionWidth:new R(120,200,250,330,400),emptyLastRowItemSectionWidth:new R(w[6],50,60,w[11],120)},Ei=()=>{const e=v();return t.jsxs(
|
|
92
|
+
`,je={emptyRowItemSectionWidth:new R(120,200,250,330,400),emptyLastRowItemSectionWidth:new R(w[6],50,60,w[11],120)},Ei=()=>{const e=v();return t.jsxs(Vi,{windowSize:e,children:[t.jsx(ke,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:je.emptyRowItemSectionWidth.value(e),height:w[4]})}),t.jsx(ke,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:je.emptyRowItemSectionWidth.value(e),height:w[4]})}),t.jsx(ke,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:je.emptyLastRowItemSectionWidth.value(e),height:18})})]})},Vi=r.div`
|
|
93
93
|
display: flex;
|
|
94
94
|
align-items: center;
|
|
95
95
|
justify-content: space-between;
|
|
@@ -120,7 +120,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
120
120
|
flex: 1 1 auto;
|
|
121
121
|
justify-content: ${e=>e.isLastItem?"flex-end":"start"};
|
|
122
122
|
width: ${e=>e.isLastItem?"10%":kt.valuePercentage(e.windowSize)};
|
|
123
|
-
`,Hi=()=>{const e=v();return t.jsxs(
|
|
123
|
+
`,Hi=()=>{const e=v();return t.jsxs(Yi,{windowSize:e,children:[t.jsxs(Wi,{children:[t.jsx(z,{width:180,height:w[4]}),t.jsx(z,{width:180,height:w[4]})]}),t.jsx(Ji,{children:t.jsx(z,{width:60,height:18})})]})},Yi=r.div`
|
|
124
124
|
display: flex;
|
|
125
125
|
align-items: baseline;
|
|
126
126
|
justify-content: space-between;
|
|
@@ -158,7 +158,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
158
158
|
align-items: baseline;
|
|
159
159
|
flex-direction: row;
|
|
160
160
|
justify-content: end;
|
|
161
|
-
`,qi=()=>v()==="small"?t.jsx(Hi,{}):t.jsx(Ei,{}),Zi={marginLeft:new R(w[2],w[5],w[7])},
|
|
161
|
+
`,qi=()=>v()==="small"?t.jsx(Hi,{}):t.jsx(Ei,{}),Zi={marginLeft:new R(w[2],w[5],w[7])},Ki=()=>t.jsxs(Xi,{children:[t.jsx(Se,{numberOfRows:5}),t.jsx(Se,{numberOfRows:3})]}),Se=({numberOfRows:e})=>{const o=v();return t.jsxs(Qi,{windowSize:o,children:[t.jsx(to,{children:t.jsx(z,{width:w[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(eo,{children:[...Array(e)].map(s=>t.jsx(qi,{},ce()))})]})},Xi=r.div`
|
|
162
162
|
display: block;
|
|
163
163
|
min-height: 100%;
|
|
164
164
|
flex-direction: column;
|
|
@@ -175,7 +175,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
175
175
|
`,to=r.div`
|
|
176
176
|
display: flex;
|
|
177
177
|
padding: ${i.sp3} ${i.sp0};
|
|
178
|
-
`,io=({notificationData:e,users:o,isSelectionMode:s=!1,isHighlighted:a=!1,style:n,onNotificationTileClick:l,onNotificationTileLongPress:c})=>{const d=nt(),u=lt().analytics,{inboxNotification:{id:h,readAt:f,notifiedAt:m},thread:p}=e,b=f!=null?"read":"unread",k=p.metadata.url,B=x.useCallback(()=>{c?.()},[c]),G=x.useCallback(L=>{L.stopPropagation(),L.cancelable&&L.preventDefault(),s?c?.():k!=null&&(l(h,g.toZeniUrl(p.metadata.url),b),p.metadata.application!=="cockpit"&&u.trackCommentActivity("notification","clicked",p.metadata.companyName,d.controllersList.controllers.map(y=>
|
|
178
|
+
`,io=({notificationData:e,users:o,isSelectionMode:s=!1,isHighlighted:a=!1,style:n,onNotificationTileClick:l,onNotificationTileLongPress:c})=>{const d=nt(),u=lt().analytics,{inboxNotification:{id:h,readAt:f,notifiedAt:m},thread:p}=e,b=f!=null?"read":"unread",k=p.metadata.url,B=x.useCallback(()=>{c?.()},[c]),G=x.useCallback(L=>{L.stopPropagation(),L.cancelable&&L.preventDefault(),s?c?.():k!=null&&(l(h,g.toZeniUrl(p.metadata.url),b),p.metadata.application!=="cockpit"&&u.trackCommentActivity("notification","clicked",p.metadata.companyName,d.controllersList.controllers.map(y=>V(y)),p.resolved?"resolved":"open",{name:dt(d.loggedInUser),email:d.loggedInUser?.userEmail??""},"db notification"))},[s,k,c,l,h,p.metadata.url,p.metadata.application,b,d.controllersList,d.loggedInUser,u,p.metadata.companyName,p.resolved]),T=ut({onLongPress:B},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(ro,{readStatus:b,isClickable:k!=null,isHighlighted:a,style:n,...T,onClick:G,children:[t.jsxs(lo,{children:[t.jsx(oo,{notificationData:e,users:o}),t.jsx(so,{...e})]}),t.jsx(ao,{timestamp:m,readStatus:b})]})},oo=({notificationData:e,users:o})=>t.jsx(Nt,{children:t.jsx(St,{notificationData:e,users:o})}),so=e=>t.jsx(Nt,{children:t.jsx(vt,{...e})}),ao=e=>t.jsx(no,{children:t.jsx(Ct,{...e})}),ro=r.div`
|
|
179
179
|
display: flex;
|
|
180
180
|
flex-direction: row;
|
|
181
181
|
align-items: baseline;
|
|
@@ -244,7 +244,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
244
244
|
display: -webkit-box;
|
|
245
245
|
overflow: hidden;
|
|
246
246
|
-webkit-box-orient: vertical;
|
|
247
|
-
`,Tt=e=>v()==="small"?t.jsx(io,{...e}):t.jsx(Si,{...e}),{common:{all:De}}=P.getLocalizedStrings(),co=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=
|
|
247
|
+
`,Tt=e=>v()==="small"?t.jsx(io,{...e}):t.jsx(Si,{...e}),{common:{all:De}}=P.getLocalizedStrings(),co=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=X(),{getValues:u}=ue(),h=u(s);return t.jsx(uo,{style:n,children:t.jsx(he,{mode:a,checkBoxes:[{label:t.jsx(ho,{htmlFor:`${s}.${De.toLocaleLowerCase()}`,style:{color:d.colors.primary},children:me(e)}),value:De.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((f,m)=>{const p=m===0,b=e.notifications.length-1===m;return{label:t.jsx(Tt,{notificationData:f,users:o,style:{borderTopLeftRadius:p?i.sp2:void 0,borderTopRightRadius:p?i.sp2:void 0,borderBottomLeftRadius:b?i.sp2:void 0,borderBottomRightRadius:b?i.sp2:void 0},isHighlighted:h?.includes(f.inboxNotification.id)===!0,onNotificationTileClick:c}),value:f.inboxNotification.id,defaultChecked:!1,groupLabel:!1}})],name:s,isDisabled:l,style:{width:"100%"},checkBoxStyle:{padding:i.sp3},labelCheckBoxStyle:{padding:i.sp3}})})},uo=r.div`
|
|
248
248
|
display: flex;
|
|
249
249
|
align-items: center;
|
|
250
250
|
width: 100%;
|
|
@@ -253,7 +253,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
253
253
|
align-items: flex-start;
|
|
254
254
|
width: 100%;
|
|
255
255
|
padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
|
|
256
|
-
`,{common:{all:Me}}=P.getLocalizedStrings(),po=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=
|
|
256
|
+
`,{common:{all:Me}}=P.getLocalizedStrings(),po=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=X(),{getValues:u}=ue(),h=u(s),f=x.useRef([]);return x.useEffect(()=>{f.current=f.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(fo,{style:n,children:t.jsx(he,{mode:a,checkBoxes:[{label:t.jsx(Ae,{htmlFor:`${s}.${Me.toLocaleLowerCase()}`,style:{color:d.colors.primary,marginLeft:i.sp2},children:me(e)}),value:Me.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((m,p)=>{const b=p===0,k=e.notifications.length-1===p;return{label:t.jsx(Ae,{ref:B=>f.current[p]=B,htmlFor:`${s}.${m.inboxNotification.id}`,style:{padding:i.sp0},children:t.jsx(mo,{notificationData:m,users:o,style:{borderTopLeftRadius:b?i.sp2:void 0,borderTopRightRadius:b?i.sp2:void 0,borderBottomLeftRadius:k?i.sp2:void 0,borderBottomRightRadius:k?i.sp2:void 0,marginLeft:i.sp2},isHighlighted:h?.includes(m.inboxNotification.id)===!0,isSelectionMode:a==="always_on",onNotificationTileClick:c,onNotificationTileLongPress:()=>{f.current[p]?.click()}})}),value:m.inboxNotification.id,defaultChecked:!1,groupLabel:!1}})],name:s,isDisabled:l,style:{width:"100%",position:"relative"},checkBoxStyle:{padding:i.sp1,zIndex:2,left:`-${i.sp1}`,position:"absolute"},checkBoxIconStyle:{backgroundColor:d.colors.grey5}})})},fo=r.div`
|
|
257
257
|
display: flex;
|
|
258
258
|
align-items: center;
|
|
259
259
|
width: 100%;
|
|
@@ -262,7 +262,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
262
262
|
align-items: flex-start;
|
|
263
263
|
width: 100%;
|
|
264
264
|
padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
|
|
265
|
-
`,mo=r(Tt)``,go=e=>v()==="small"?t.jsx(po,{...e}):t.jsx(co,{...e}),{commentsAndNotifications:{notifications:{message:xo}}}=P.getLocalizedStrings(),Oe={rowGap:new R(w[0],w[5],w[5])},bo=({notificationGroups:e,users:o,isFetching:s,hasMore:a,sectionId:n,checkBoxMode:l,scrollYOffset:c,currentSubTab:d,isDisabled:u,onUpdateScrollYOffset:h,onFetchNotificationGroups:f,onNotificationClick:m})=>{const p=v(),b=x.useRef(null),k=x.useRef({});x.useEffect(()=>{b.current?.resetAfterIndex(0,!0)},[p,b,e]),x.useEffect(()=>{b.current?.scrollTo(c)},[d]);const B=x.useCallback(N=>{if(k.current?.[N]!=null){const U=p==="small"&&a===!1&&N===e.length-1?Oe.rowGap.value("medium-regular"):Oe.rowGap.value(p);return k.current[N]+U}return(ht*jt.value(p)+pt)*3+ft+mt},[p,k,e]),G=x.useCallback((N,U)=>{k.current={...k.current,[N]:U},b.current?.resetAfterIndex(0,!0)},[p,b,e]),T=x.useCallback(()=>{f()},[f]),L=x.useCallback(()=>{},[]),y=et(N=>h(N),1e3,{trailing:!0}),M=N=>!a||N<e.length,j=x.useCallback(()=>a&&!s?T():L(),[a,s,T,L]),I=a?e.length+1:e.length;return t.jsx(yo,{children:t.jsx($o,{windowSize:p,children:s&&e.length===0?t.jsx(
|
|
265
|
+
`,mo=r(Tt)``,go=e=>v()==="small"?t.jsx(po,{...e}):t.jsx(co,{...e}),{commentsAndNotifications:{notifications:{message:xo}}}=P.getLocalizedStrings(),Oe={rowGap:new R(w[0],w[5],w[5])},bo=({notificationGroups:e,users:o,isFetching:s,hasMore:a,sectionId:n,checkBoxMode:l,scrollYOffset:c,currentSubTab:d,isDisabled:u,onUpdateScrollYOffset:h,onFetchNotificationGroups:f,onNotificationClick:m})=>{const p=v(),b=x.useRef(null),k=x.useRef({});x.useEffect(()=>{b.current?.resetAfterIndex(0,!0)},[p,b,e]),x.useEffect(()=>{b.current?.scrollTo(c)},[d]);const B=x.useCallback(N=>{if(k.current?.[N]!=null){const U=p==="small"&&a===!1&&N===e.length-1?Oe.rowGap.value("medium-regular"):Oe.rowGap.value(p);return k.current[N]+U}return(ht*jt.value(p)+pt)*3+ft+mt},[p,k,e]),G=x.useCallback((N,U)=>{k.current={...k.current,[N]:U},b.current?.resetAfterIndex(0,!0)},[p,b,e]),T=x.useCallback(()=>{f()},[f]),L=x.useCallback(()=>{},[]),y=et(N=>h(N),1e3,{trailing:!0}),M=N=>!a||N<e.length,j=x.useCallback(()=>a&&!s?T():L(),[a,s,T,L]),I=a?e.length+1:e.length;return t.jsx(yo,{children:t.jsx($o,{windowSize:p,children:s&&e.length===0?t.jsx(Ki,{}):s===!1&&e.length===0?t.jsx(tt,{message:xo.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(jo,{windowSize:p,children:t.jsx(it,{children:({height:N,width:U})=>t.jsx(ot,{isItemLoaded:M,itemCount:gt,loadMoreItems:j,children:({onItemsRendered:Y,ref:E})=>t.jsx(st,{ref:W=>{E(W),b.current=W},height:N,itemCount:I,itemData:{notificationGroups:e,users:o,sectionId:n,checkBoxMode:l,isDisabled:u,isItemLoaded:M,setRowHeight:G,onNotificationClick:m},onItemsRendered:Y,itemSize:B,width:U,style:{willChange:"auto"},overscanCount:xt,onScroll:({scrollOffset:W})=>{y(W)},initialScrollOffset:c,children:wo})})})})})})},wo=({index:e,style:o,data:s})=>{const{notificationGroups:a,users:n,sectionId:l,checkBoxMode:c,isItemLoaded:d,isDisabled:u,setRowHeight:h,onNotificationClick:f}=s,m=x.useRef(null),p=v();if(x.useEffect(()=>{m.current?.firstElementChild!=null&&h(e,m.current.firstElementChild.clientHeight)},[e,m,p,a[e]?.notifications]),d(e)===!0){const b=a[e],k=ne(b);return t.jsx(Pe,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:m,children:t.jsx(go,{notificationGroup:b,sectionId:`${l}.${k}`,checkBoxMode:c,isDisabled:u,users:n,onNotificationTileClick:f})},k)}return t.jsx(Pe,{ref:m,style:{...o,paddingBottom:i.sp0},children:t.jsx(Se,{numberOfRows:3})},ce())},yo=r.div`
|
|
266
266
|
display: block;
|
|
267
267
|
background-color: ${e=>e.theme.colors.grey4};
|
|
268
268
|
height: 100%;
|
|
@@ -279,7 +279,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
279
279
|
top: ${i.sp0};
|
|
280
280
|
left: ${i.sp0};
|
|
281
281
|
box-sizing: border-box;
|
|
282
|
-
`,{common:{in:ko,strings:Lt},dateFormat:So,commentsAndNotifications:{notifications:{actionStrings:{notifications:A}}}}=P.getLocalizedStrings(),It=e=>{e.sort((n,l)=>n.createTime.isAfter(l.createTime)===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),a=oe(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),u=g.dateNow().subtract(2,"d").endOf("d"),a=oe(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),u=g.dateNow().subtract(9,"d").endOf("d"),a=oe(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const f=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(h,"month").endOf("M").endOf("d");h++,a=oe(o,f,m),o=a.remainingData,s.push({start:f,end:m,type:n,notifications:a.singleGroup})}break}}return s},oe=(e,o,s)=>{const a=[],n=e.map(l=>at(o,s,l.createTime)?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>l.createTime.isAfter(c.createTime)===!0?-1:1),{singleGroup:a,remainingData:n}},vo=e=>{let o=A.newActivity;return e.code==="in_progress"?o=A.due.replace("__task_status__",Ie(e.name.toLocaleLowerCase())):o=A.due.replace("__task_status__",ko.toLocaleLowerCase().concat(Lt.space,Ie(e.name.toLocaleLowerCase()))),o},Co=e=>{const{eventData:{activities:o}}=e;let s=A.newActivity;if(o.length>0){const a=o[0].activityType,n=o[0].metadata.eventStatus;switch(a){case"task_archived":s=A.archive;break;case"task_deleted":s=A.delete;break;case"task_activities":s=A.activities;break;case"task_assigned":s=A.assign;break;case"task_created":s=A.create;break;case"task_due":s=n!=null?vo(n):A.dueTomorrow;break;case"task_overdue":s=A.overdue.replace("__date__",o[0].metadata.additionalInfo?.dueDate.format(So.visual.MMMDFormat)??Lt.empty);break;case"task_status_updated":s=A.statusUpdate;break}}return s},Rt=new R(3,2,1,1,1),zt=new R(w[8],33,33,33,35),de={lineClamp:Rt,sectionWidth:zt},{common:{and:Be,other:No,others:To,texts:Lo,timeStrings:Io,strings:D,tags:Ro}}=P.getLocalizedStrings(),zo=({notificationData:e,isHighlighted:o=!1,style:s,onNotificationTileClick:a})=>{const{status:n,notificationId:l,eventData:{entitiyId:c,activities:d},createTime:u}=e;return t.jsxs(Bo,{notificationStatus:n,isHighlighted:o,style:s,onClick:()=>{a(l,c,n,d.length>0?d[0].activityType:void 0)},children:[t.jsx(_o,{...e}),t.jsx(Ao,{...e}),t.jsx(Po,{...e}),t.jsx(Oo,{createTime:u,notificationStatus:n})]})},_t=e=>{const{status:o,eventData:{title:s}}=e;return t.jsx(
|
|
282
|
+
`,{common:{in:ko,strings:Lt},dateFormat:So,commentsAndNotifications:{notifications:{actionStrings:{notifications:A}}}}=P.getLocalizedStrings(),It=e=>{e.sort((n,l)=>n.createTime.isAfter(l.createTime)===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),a=oe(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),u=g.dateNow().subtract(2,"d").endOf("d"),a=oe(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),u=g.dateNow().subtract(9,"d").endOf("d"),a=oe(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const f=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(h,"month").endOf("M").endOf("d");h++,a=oe(o,f,m),o=a.remainingData,s.push({start:f,end:m,type:n,notifications:a.singleGroup})}break}}return s},oe=(e,o,s)=>{const a=[],n=e.map(l=>at(o,s,l.createTime)?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>l.createTime.isAfter(c.createTime)===!0?-1:1),{singleGroup:a,remainingData:n}},vo=e=>{let o=A.newActivity;return e.code==="in_progress"?o=A.due.replace("__task_status__",Ie(e.name.toLocaleLowerCase())):o=A.due.replace("__task_status__",ko.toLocaleLowerCase().concat(Lt.space,Ie(e.name.toLocaleLowerCase()))),o},Co=e=>{const{eventData:{activities:o}}=e;let s=A.newActivity;if(o.length>0){const a=o[0].activityType,n=o[0].metadata.eventStatus;switch(a){case"task_archived":s=A.archive;break;case"task_deleted":s=A.delete;break;case"task_activities":s=A.activities;break;case"task_assigned":s=A.assign;break;case"task_created":s=A.create;break;case"task_due":s=n!=null?vo(n):A.dueTomorrow;break;case"task_overdue":s=A.overdue.replace("__date__",o[0].metadata.additionalInfo?.dueDate.format(So.visual.MMMDFormat)??Lt.empty);break;case"task_status_updated":s=A.statusUpdate;break}}return s},Rt=new R(3,2,1,1,1),zt=new R(w[8],33,33,33,35),de={lineClamp:Rt,sectionWidth:zt},{common:{and:Be,other:No,others:To,texts:Lo,timeStrings:Io,strings:D,tags:Ro}}=P.getLocalizedStrings(),zo=({notificationData:e,isHighlighted:o=!1,style:s,onNotificationTileClick:a})=>{const{status:n,notificationId:l,eventData:{entitiyId:c,activities:d},createTime:u}=e;return t.jsxs(Bo,{notificationStatus:n,isHighlighted:o,style:s,onClick:()=>{a(l,c,n,d.length>0?d[0].activityType:void 0)},children:[t.jsx(_o,{...e}),t.jsx(Ao,{...e}),t.jsx(Po,{...e}),t.jsx(Oo,{createTime:u,notificationStatus:n})]})},_t=e=>{const{status:o,eventData:{title:s}}=e;return t.jsx(Vo,{notificationStatus:o,children:s||D.hyphen})},_o=e=>{const o=v();return t.jsx(Eo,{windowSize:o,children:t.jsx(_t,{...e})})},Do=e=>{const{eventData:{activities:o}}=e;if(o.length>0&&o[0].activityType==="task_status_updated"){const s=o[0].metadata.updates.find(a=>a.type==="code_name_pair"&&a.field==="status");if(s?.oldValue.codeNamePair!=null&&s.newValue.codeNamePair!=null)return t.jsxs(Yo,{children:[t.jsx(Fe,{backgroundColor:Re(s.oldValue.codeNamePair),children:s.oldValue.codeNamePair.name}),t.jsx(Wo,{}),t.jsx(Fe,{backgroundColor:Re(s.newValue.codeNamePair),children:s.newValue.codeNamePair.name})]})}return null},Mo=e=>{const{status:o,eventData:{authors:s,activities:a}}=e,n=s.length;if(a[0].activityType==="task_due"||a[0].activityType==="task_overdue"||a[0].activityType==="task_status_updated")return null;let l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.atTheRate,Lo.user,D.space]});return n>0&&(n>2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.atTheRate,V(s[0],!1),D.space]}),Be,t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.space,n-1,D.space,To,D.space]})]}):n===2?l=t.jsxs(t.Fragment,{children:[t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.atTheRate,V(s[0],!1),D.space]}),Be,t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.space,s.length===2?D.atTheRate+V(s[1],!1):No,D.space]})]}):l=t.jsxs(q,{className:"userText",notificationStatus:o,children:[D.atTheRate,V(s[0],!1),D.space]})),l},Dt=e=>t.jsxs(t.Fragment,{children:[t.jsx(Mo,{...e}),Co(e),t.jsx(Do,{...e})]}),Ao=e=>{const o=v(),{eventData:{activities:s}}=e;return t.jsx(Uo,{windowSize:o,statusUpdate:s.length>0&&s[0].activityType==="task_status_updated"&&s[0].metadata.updates.find(a=>a.field==="status")!=null,children:t.jsx(Dt,{...e})})},Mt=e=>{const{createTime:o,notificationStatus:s}=e,a=yt(o.toDate());return t.jsxs(t.Fragment,{children:[t.jsx(Ho,{isNewNotification:a===Io.justNow,children:a}),t.jsx(qo,{notificationStatus:s})]})},Oo=e=>{const o=v();return t.jsx(Fo,{windowSize:o,children:t.jsx(Mt,{...e})})},At=e=>{const{eventData:{activities:o}}=e;return o[0].activityType==="task_overdue"?t.jsx(ui,{tagTitle:Ro.overdue,textColor:{color:new ye(S.alert),backgroundColor:new ye("transparent"),borderColor:new ye(S.alert)},showLoader:!1}):t.jsx(Jo,{})},Po=e=>{const o=v();return t.jsx(Go,{windowSize:o,children:t.jsx(At,{...e})})},Bo=r.div`
|
|
283
283
|
display: flex;
|
|
284
284
|
flex-direction: row;
|
|
285
285
|
align-items: center;
|
|
@@ -366,12 +366,12 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
366
366
|
width: ${e=>de.sectionWidth.valuePercentage(e.windowSize)};
|
|
367
367
|
`,q=r(fe)`
|
|
368
368
|
color: ${e=>e.notificationStatus==="read"?e.theme.colors.grey1:S.brandColorJade};
|
|
369
|
-
`,
|
|
369
|
+
`,Vo=r(fe)`
|
|
370
370
|
color: inherit;
|
|
371
371
|
`,Ho=r(ct)`
|
|
372
372
|
flex-shrink: 0;
|
|
373
373
|
color: ${e=>e.isNewNotification?e.theme.colors.primary:"inherit"};
|
|
374
|
-
`,
|
|
374
|
+
`,Yo=r.div`
|
|
375
375
|
display: flex;
|
|
376
376
|
align-items: center;
|
|
377
377
|
flex-direction: row;
|
|
@@ -397,7 +397,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
397
397
|
border-radius: ${i.sp2};
|
|
398
398
|
flex-shrink: 0;
|
|
399
399
|
background-color: ${e=>e.notificationStatus==="unread"?S.info:"transparent"};
|
|
400
|
-
`,se={emptyRowItemSectionWidth:new R(120,200,280,330,400),emptyLastRowItemSectionWidth:new R(w[6],50,60,w[11],120)},Zo=()=>{const e=v();return t.jsxs(
|
|
400
|
+
`,se={emptyRowItemSectionWidth:new R(120,200,280,330,400),emptyLastRowItemSectionWidth:new R(w[6],50,60,w[11],120)},Zo=()=>{const e=v();return t.jsxs(Ko,{windowSize:e,children:[t.jsx(ae,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:se.emptyRowItemSectionWidth.value(e),height:w[4]})}),t.jsx(ae,{windowSize:e,isLastItem:!1,children:t.jsx(z,{width:se.emptyRowItemSectionWidth.value(e),height:w[4]})}),t.jsx(ae,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:se.emptyLastRowItemSectionWidth.value(e),height:18})}),t.jsx(ae,{windowSize:e,isLastItem:!0,children:t.jsx(z,{width:se.emptyLastRowItemSectionWidth.value(e),height:18})})]})},Ko=r.div`
|
|
401
401
|
display: flex;
|
|
402
402
|
align-items: center;
|
|
403
403
|
justify-content: space-between;
|
|
@@ -428,7 +428,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
428
428
|
flex: 1 1 auto;
|
|
429
429
|
justify-content: ${e=>e.isLastItem?"flex-end":"start"};
|
|
430
430
|
width: ${e=>e.isLastItem?"10%":zt.valuePercentage(e.windowSize)};
|
|
431
|
-
`,
|
|
431
|
+
`,Xo=()=>{const e=v();return t.jsxs(Qo,{windowSize:e,children:[t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:w[4]}),t.jsx(z,{width:60,height:18})]}),t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:w[4]}),t.jsx(z,{width:60,height:18})]})]})},Qo=r.div`
|
|
432
432
|
display: flex;
|
|
433
433
|
flex-direction: column;
|
|
434
434
|
align-items: baseline;
|
|
@@ -462,7 +462,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
462
462
|
gap: ${i.sp2};
|
|
463
463
|
flex: 1 1 auto;
|
|
464
464
|
width: 100%;
|
|
465
|
-
`,es=()=>v()==="small"?t.jsx(
|
|
465
|
+
`,es=()=>v()==="small"?t.jsx(Xo,{}):t.jsx(Zo,{}),ts={marginLeft:new R(w[2],w[5],w[7])},is=()=>t.jsxs(os,{children:[t.jsx(ve,{numberOfRows:5}),t.jsx(ve,{numberOfRows:3})]}),ve=({numberOfRows:e})=>{const o=v();return t.jsxs(ss,{windowSize:o,children:[t.jsx(rs,{children:t.jsx(z,{width:w[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(as,{children:[...Array(e)].map(s=>t.jsx(es,{},ce()))})]})},os=r.div`
|
|
466
466
|
display: block;
|
|
467
467
|
min-height: 100%;
|
|
468
468
|
flex-direction: column;
|
|
@@ -561,7 +561,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
561
561
|
-webkit-box-orient: horizontal;
|
|
562
562
|
gap: ${i.sp1};
|
|
563
563
|
`};
|
|
564
|
-
`,Pt=e=>v()==="small"?t.jsx(ns,{...e}):t.jsx(zo,{...e}),{common:{all:Ee}}=P.getLocalizedStrings(),ms=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=
|
|
564
|
+
`,Pt=e=>v()==="small"?t.jsx(ns,{...e}):t.jsx(zo,{...e}),{common:{all:Ee}}=P.getLocalizedStrings(),ms=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=X(),{getValues:d}=ue(),u=d(o);return t.jsx(gs,{style:a,children:t.jsx(he,{mode:s,checkBoxes:[{label:t.jsx(xs,{htmlFor:`${o}.${Ee.toLocaleLowerCase()}`,style:{color:c.colors.primary},children:me(e)}),value:Ee.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((h,f)=>{const m=f===0,p=e.notifications.length-1===f;return{label:t.jsx(Pt,{notificationData:h,style:{borderTopLeftRadius:m?i.sp2:void 0,borderTopRightRadius:m?i.sp2:void 0,borderBottomLeftRadius:p?i.sp2:void 0,borderBottomRightRadius:p?i.sp2:void 0},isHighlighted:u?.includes(h.notificationId)===!0,onNotificationTileClick:l}),value:h.notificationId,defaultChecked:!1,groupLabel:!1}})],name:o,isDisabled:n,style:{width:"100%"},checkBoxStyle:{padding:i.sp3},labelCheckBoxStyle:{padding:i.sp3}})})},gs=r.div`
|
|
565
565
|
display: flex;
|
|
566
566
|
align-items: center;
|
|
567
567
|
width: 100%;
|
|
@@ -570,7 +570,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
570
570
|
align-items: flex-start;
|
|
571
571
|
width: 100%;
|
|
572
572
|
padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
|
|
573
|
-
`,{common:{all:
|
|
573
|
+
`,{common:{all:Ve}}=P.getLocalizedStrings(),bs=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=X(),{getValues:d}=ue(),u=d(o),h=x.useRef([]);return x.useEffect(()=>{h.current=h.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(ws,{style:a,children:t.jsx(he,{mode:s,checkBoxes:[{label:t.jsx(He,{htmlFor:`${o}.${Ve.toLocaleLowerCase()}`,style:{color:c.colors.primary,marginLeft:i.sp2},children:me(e)}),value:Ve.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((f,m)=>{const p=m===0,b=e.notifications.length-1===m;return{label:t.jsx(He,{ref:k=>h.current[m]=k,htmlFor:`${o}.${f.notificationId}`,style:{padding:i.sp0},children:t.jsx(ys,{notificationData:f,style:{borderTopLeftRadius:p?i.sp2:void 0,borderTopRightRadius:p?i.sp2:void 0,borderBottomLeftRadius:b?i.sp2:void 0,borderBottomRightRadius:b?i.sp2:void 0,marginLeft:i.sp2},isHighlighted:u?.includes(f.notificationId)===!0,isSelectionMode:s==="always_on",onNotificationTileClick:l,onNotificationTileLongPress:()=>{h.current[m]?.click()}})}),value:f.notificationId,defaultChecked:!1,groupLabel:!1}})],name:o,isDisabled:n,style:{width:"100%",position:"relative"},checkBoxStyle:{padding:i.sp1,zIndex:2,left:`-${i.sp1}`,position:"absolute"},checkBoxIconStyle:{backgroundColor:c.colors.grey5}})})},ws=r.div`
|
|
574
574
|
display: flex;
|
|
575
575
|
align-items: center;
|
|
576
576
|
width: 100%;
|
|
@@ -579,7 +579,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
579
579
|
align-items: flex-start;
|
|
580
580
|
width: 100%;
|
|
581
581
|
padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
|
|
582
|
-
`,ys=r(Pt)``,$s=e=>v()==="small"?t.jsx(bs,{...e}):t.jsx(ms,{...e}),{commentsAndNotifications:{notifications:{message:js}}}=P.getLocalizedStrings(),
|
|
582
|
+
`,ys=r(Pt)``,$s=e=>v()==="small"?t.jsx(bs,{...e}):t.jsx(ms,{...e}),{commentsAndNotifications:{notifications:{message:js}}}=P.getLocalizedStrings(),Ye={rowGap:new R(w[0],w[5],w[5])},ks=({notificationGroups:e,isFetching:o,hasMore:s,sectionId:a,checkBoxMode:n,scrollYOffset:l,currentSubTab:c,isDisabled:d,onUpdateScrollYOffset:u,onFetchNotificationGroups:h,onNotificationClick:f})=>{const m=v(),p=x.useRef(null),b=x.useRef({});x.useEffect(()=>{p.current?.resetAfterIndex(0,!0)},[m,p,e]),x.useEffect(()=>{p.current?.scrollTo(l)},[c]);const k=x.useCallback(I=>{if(b.current?.[I]!=null){const N=m==="small"&&s===!1&&I===e.length-1?Ye.rowGap.value("medium-regular"):Ye.rowGap.value(m);return b.current[I]+N}return(ht*Rt.value(m)+pt)*3+ft+mt},[m,b,e]),B=x.useCallback((I,N)=>{b.current={...b.current,[I]:N},p.current?.resetAfterIndex(0,!0)},[m,p,e]),G=x.useCallback(()=>{h()},[h]),T=x.useCallback(()=>{},[]),L=et(I=>u(I),1e3,{trailing:!0}),y=I=>!s||I<e.length,M=x.useCallback(()=>s&&!o?G():T(),[s,o,G,T]),j=s?e.length+1:e.length;return t.jsx(vs,{children:t.jsx(Cs,{windowSize:m,children:o&&e.length===0?t.jsx(is,{}):o===!1&&e.length===0?t.jsx(tt,{message:js.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(Ns,{windowSize:m,children:t.jsx(it,{children:({height:I,width:N})=>t.jsx(ot,{isItemLoaded:y,itemCount:gt,loadMoreItems:M,children:({onItemsRendered:U,ref:Y})=>t.jsx(st,{ref:E=>{Y(E),p.current=E},height:I,itemCount:j,itemData:{notificationGroups:e,sectionId:a,checkBoxMode:n,isDisabled:d,isItemLoaded:y,setRowHeight:B,onNotificationClick:f},onItemsRendered:U,itemSize:k,width:N,style:{willChange:"auto"},overscanCount:xt,onScroll:({scrollOffset:E})=>{L(E)},initialScrollOffset:l,children:Ss})})})})})})},Ss=({index:e,style:o,data:s})=>{const{notificationGroups:a,sectionId:n,checkBoxMode:l,isItemLoaded:c,isDisabled:d,setRowHeight:u,onNotificationClick:h}=s,f=x.useRef(null),m=v();if(x.useEffect(()=>{f.current?.firstElementChild!=null&&u(e,f.current.firstElementChild.clientHeight)},[e,f,m,a[e]?.notifications]),c(e)===!0){const p=a[e],b=ne(p);return t.jsx(We,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:f,children:t.jsx($s,{notificationGroup:p,sectionId:`${n}.${b}`,checkBoxMode:l,isDisabled:d,onNotificationTileClick:h})},b)}return t.jsx(We,{ref:f,style:{...o,paddingBottom:i.sp0},children:t.jsx(ve,{numberOfRows:3})},ce())},vs=r.div`
|
|
583
583
|
display: block;
|
|
584
584
|
background-color: ${e=>e.theme.colors.grey4};
|
|
585
585
|
height: 100%;
|
|
@@ -596,7 +596,7 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
596
596
|
top: ${i.sp0};
|
|
597
597
|
left: ${i.sp0};
|
|
598
598
|
box-sizing: border-box;
|
|
599
|
-
`,{common:{all:Ce,texts:re,footer:Ts,strings:{plus:Ls},numbers:{maximumCount:Je}},commentsAndNotifications:{notifications:{title:Is,texts:Bt,strings:qe}}}=P.getLocalizedStrings(),te={tableContainerLeftPadding:new R(w[2],w[2],w[2]),tableContainerRightPadding:new R(w[3],w[6],w[8]),tabsContainerLeftRightPadding:new R(w[3],w[6],w[8]),selectedNotificationsTextMarginLeft:new R(w[0],w[6],w[6])},Rs={selectedNotificationsText:new ni("smallRegular","standardRegular")},Ze="notificationsPage",Z="commentsNotificationsTable",
|
|
599
|
+
`,{common:{all:Ce,texts:re,footer:Ts,strings:{plus:Ls},numbers:{maximumCount:Je}},commentsAndNotifications:{notifications:{title:Is,texts:Bt,strings:qe}}}=P.getLocalizedStrings(),te={tableContainerLeftPadding:new R(w[2],w[2],w[2]),tableContainerRightPadding:new R(w[3],w[6],w[8]),tabsContainerLeftRightPadding:new R(w[3],w[6],w[8]),selectedNotificationsTextMarginLeft:new R(w[0],w[6],w[6])},Rs={selectedNotificationsText:new ni("smallRegular","standardRegular")},Ze="notificationsPage",Z="commentsNotificationsTable",K="notificationsTable",Ft=20,na=({notificationView:e,users:o,isNotificationSettingsVisible:s,isZeniUser:a,isDisabled:n,onNotificationClick:l,onCommentNotificationClick:c,onUpdateNotificationViewUIState:d,onUpdateNotificationTabState:u,onUpdateNotificationViewCurrentTabAndSubTab:h,onUpdateNotificationViewSubTab:f,onFetchMoreNotifications:m,onUpdateNotificationStatus:p,onSettingsClick:b,onBackClick:k,onMarkAllNotificationsAsRead:B})=>{const G=X(),T=v(),L=Zt({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Qe(e),[e]),values:x.useMemo(()=>Qe(e),[e])}),{currentTab:y,currentSubTab:M,notificationDetailsByTab:j,allSubTabs:I,allNotifications:N,allExternalNotifications:U,notificationsForCurrentTabAndSubTab:Y,externalNotificationsForCurrentTabAndSubTab:E}=e,W=($,C)=>$||C==="comments",Gt=x.useMemo(()=>Object.keys(j).map($=>({label:re[$],id:re[$].toLocaleLowerCase(),countDetails:{count:j[$].uiState.unreadCount,isFetching:j[$].fetchCountState.fetchState==="In-Progress"}})).filter($=>W(a,$.id)),[j,a]),Ut=x.useMemo(()=>I.map($=>({label:$==="all"?Ce:re[$],id:$})),[I]),Et=x.useMemo(()=>$t(E).filter($=>$.notifications.length>0),[E]),Vt=x.useMemo(()=>It(Y).filter($=>$.notifications.length>0),[Y]),Ht=async($,C)=>{const F=$.split(".")[0],J=[];F!=null&&(F===Z||F===K)&&(Object.values(C[F]).forEach(_=>{J.push(..._.filter(qt=>qt.includes(Ce.toLowerCase())===!1))}),u({selectedNotificationIds:J},y))};x.useEffect(()=>{const $=L.watch((C,{name:F})=>{F!=null&&C!=null&&Kt(()=>Ht(F,C))});return()=>{$.unsubscribe()}});const ge=x.useCallback(()=>{const $=[],C=j[y].selectedNotificationIdsForSubTab,F="read";if(y==="comments"){const J=U.filter(_=>_.inboxNotification.readAt==null).map(_=>_.inboxNotification.id);C.forEach(_=>{J.includes(_)&&$.push(_)})}else{const J=N.filter(_=>_.status!==F).map(_=>_.notificationId);C.forEach(_=>{J.includes(_)&&$.push(_)})}return $},[U,N,y,j]),Yt=ge().length>Ft?"disabled":n,xe=L.watch(Z),be=L.watch(K),Le=x.useCallback(()=>{m(y,M)},[m,y,M]),Wt=x.useCallback(()=>{if(y==="comments"){const $={};Object.keys(xe).forEach(C=>{$[C]=[]}),L.reset({[Z]:$,[K]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const $={};Object.keys(be).forEach(C=>{$[C]=[]}),L.reset({[K]:$,[Z]:xe},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}u({selectedNotificationIds:[]},y)},[be,xe]),Jt=x.useCallback(()=>{const $=j[y].selectedNotificationIdsForSubTab,C="read",F=ge();p(y,$,C,F)},[y,j,ge,p]);return t.jsxs(_s,{children:[t.jsx(Xt,{source:"NotificationsPage",title:Is.notifications,backgroundColor:G.colors.grey4,onBackClick:k,rightSideComponent:s===!0?t.jsx(Js,{onClick:b}):t.jsx(Ws,{})}),t.jsx(As,{}),t.jsx(Ms,{windowSize:T,children:t.jsx(mi,{tabs:Gt,selectedTab:y,onTabChange:$=>{const C=g.toNotificationTabTypeStrict($);C!=null&&h(C)},subTabs:Ut,selectedSubTab:M,onSubTabChange:$=>{const C=g.toNotificationSubTabTypeStrict($);C!=null&&f(C)},subTabRightComponent:t.jsx(zs,{notificationCount:j[y].uiState.unreadCount,markAsAllReadUpdateState:j[y].markAsAllReadState.fetchState,markAsReadUpdateState:j[y].markAsReadState.fetchState,onMarkAsAllReadClick:()=>{B(y)}})})}),t.jsx(Ds,{windowSize:T,children:t.jsx(Qt,{...L,children:t.jsx("form",{id:Xe(Ze),onSubmit:L.handleSubmit(Jt),style:{width:"100%"},children:y==="comments"?t.jsx(bo,{users:o,hasMore:j[y].uiState.hasMore,isFetching:j[y].fetchState==="In-Progress",scrollYOffset:j[y].uiState.scrollYOffset[M],currentSubTab:M,checkBoxMode:j[y].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Et,sectionId:Z,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>d({scrollYOffset:{...j[y].uiState.scrollYOffset,[M]:$}},y),onNotificationClick:c}):t.jsx(ks,{hasMore:j[y].uiState.hasMore,isFetching:j[y].fetchState==="In-Progress",scrollYOffset:j[y].uiState.scrollYOffset[M],currentSubTab:M,checkBoxMode:j[y].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Vt,sectionId:K,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>d({scrollYOffset:{...j[y].uiState.scrollYOffset,[M]:$}},y),onNotificationClick:l})})})}),j[y].selectedNotificationIdsForSubTab.length?t.jsx(ei,{formId:Xe(Ze),primaryBtn:{label:Bt.markAsRead,isLoading:j[y].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},isDisabled:Yt!=null},cancelBtn:{label:Ts.cancel,isDisabled:j[y].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},onClick:Wt},helperContainerStyle:T==="small"?{width:"100%"}:{rowGap:i.sp0},footerContentStyle:{gap:i.sp2},leftSideComponent:t.jsx(we,{controller:T!=="small",children:t.jsx(Ke,{selectedNotificationsCount:j[y].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(we,{controller:T==="small",children:t.jsx(Ke,{selectedNotificationsCount:j[y].selectedNotificationIdsForSubTab.length})}),rightSideComponent:t.jsx(we,{controller:T!=="small",children:t.jsx(Bs,{})})}):null]})},zs=({markAsAllReadUpdateState:e,markAsReadUpdateState:o,notificationCount:s,onMarkAsAllReadClick:a})=>{const n=s===0,l=x.useCallback(()=>{e!=="In-Progress"&&o!=="In-Progress"&&!n&&a()},[e,o,n,a]);return t.jsx(Os,{variant:"tertiary",size:"small",label:Bt.markAllAsRead,onClick:l,prefixIcon:e==="In-Progress"?t.jsx(oi,{size:"Small",start:!0}):t.jsx(Ps,{className:"mark-as-read"}),disabled:n,textStyle:{fontWeight:Ne.smallRegular.fontWeight},style:{borderRadius:i.sp1,border:"none",backgroundColor:"transparent",flexShrink:0,padding:i.sp0,cursor:o==="In-Progress"||e==="In-Progress"||n?"default":"pointer"}})},Ke=({selectedNotificationsCount:e})=>{const o=v();return t.jsxs(Fs,{windowSize:o,children:[t.jsx(Us,{children:t.jsx(Gs,{isCircular:e<10,children:t.jsx(Es,{children:e>Je?`${Je}${Ls}`:e})})}),t.jsxs(Ys,{windowSize:o,children:[t.jsx(Vs,{children:e>1?qe.notificationsSelected:qe.notificationSelected}),e>Ft?t.jsx(Hs,{children:re.maxLimit}):null]})]})},_s=r.div`
|
|
600
600
|
display: flex;
|
|
601
601
|
height: 100vh;
|
|
602
602
|
width: 100%;
|
|
@@ -660,13 +660,13 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
660
660
|
align-items: center;
|
|
661
661
|
justify-content: center;
|
|
662
662
|
color: ${e=>e.theme.colors.hero};
|
|
663
|
-
`,
|
|
663
|
+
`,Vs=r(rt)`
|
|
664
664
|
display: flex;
|
|
665
665
|
`,Hs=r(li)`
|
|
666
666
|
display: flex;
|
|
667
667
|
color: ${S.important};
|
|
668
668
|
margin-left: ${i.sp1};
|
|
669
|
-
`,
|
|
669
|
+
`,Ys=r(rt)`
|
|
670
670
|
${e=>`${Rs.selectedNotificationsText.style(e.windowSize)}`};
|
|
671
671
|
color: ${e=>e.theme.colors.primary};
|
|
672
672
|
display: flex;
|
|
@@ -683,4 +683,4 @@ import{u as K,X as v,a as Zt,M as P,c2 as Xt,j as t,aW as Kt,l as g,F as Qt,a3 a
|
|
|
683
683
|
&:hover {
|
|
684
684
|
color: ${e=>e.theme.colors.primary};
|
|
685
685
|
}
|
|
686
|
-
`,
|
|
686
|
+
`,Xe=e=>`${e}_form`,Qe=e=>{const{allNotifications:o,allExternalNotifications:s,notificationDetailsByTab:{tasks:{selectedNotificationIds:a},comments:{selectedNotificationIds:n}}}=e,l={};It(o).filter(d=>d.notifications.length>0).forEach(d=>{const u=d.notifications.map(h=>h.notificationId);l[ne(d)]=a.filter(h=>u.includes(h))});const c={};return $t(s).filter(d=>d.notifications.length>0).forEach(d=>{const u=d.notifications.map(h=>h.inboxNotification.id);c[ne(d)]=n.filter(h=>u.includes(h))}),{[Z]:c,[K]:l}},la=(e,o)=>{const s=[];return Object.values(e).forEach(a=>{a.forEach(n=>{n.includes(Ce.toLocaleLowerCase())===!1&&o.includes(n)&&s.push(n)})}),s};export{na as default,la as getSelectedNotificationIds,Xe as uniqueFormName};
|
package/dist/assets/{OpExByVendorPage-IuDiHnIW-D8WE3sE0.js → OpExByVendorPage-xMyUkO51-DLNCDIdB.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as
|
|
1
|
+
import{X as H,ht as ye,M as B,u as q,z as be,j as t,Y as _e,be as Se,hs as ke,aX as we,aV as ve,hu as Be,hv as Oe,o as u,a5 as Pe,c as $e,C as F,ai as le,H as ie,a7 as je,m as O,a_ as Te,bE as De,bF as Ne,bG as Ee,g as a,s as ce,bb as Ie,b6 as Me,au as Ae,p as Z,at as Le,aa as Fe,b7 as Ve,b9 as ze,l as Re}from"./index-CWmqNC4C.js";import{b as y,n as m,f as We}from"./vendor-CnQcJ2Lu.js";import{p as Ke,d as Ye,y as G,b as de,u as ee}from"./chartTypes-mKuCmPTG-BM7hqR_d.js";import{V as Ge}from"./toChartData-D2kGY49E-CsLrqkFw.js";import{m as V}from"./analyticsHelper-3y6VD3VH-4b12iNu9.js";import{p as He}from"./TimeRangeSwitcher-BXXqX3m6-DBFCX_F3.js";import{M as qe}from"./TimeframeSwitcherWithToggle-RH8QHQFd-tstiafTX.js";import{C as Xe}from"./NoDataChart-Dhg-k7iX-B526qZJD.js";import{d as Je}from"./NoDataTable-jpCLeiDv-DPfhsNYe.js";import{H as Ue,k as oe}from"./detailCommon-1QwSQL9C-CMTdKXNR.js";import{n as z}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{R as Qe,W as X}from"./CollapsableReportTable-CyQ4sWuS-DlLXYbkM.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-y3lzh3vX-QR9PSTFA.js";import{d as re}from"./mapLoadingInProgressToTreeNode-CKZd1bh4-H6b75J9k.js";import{l as Ze}from"./mapSpacerToTreeNode-CzcEW1Rc-DpU4PyGc.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-Bk9rjDg4-BqMFgpEZ.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";import"./AccountRow-Ca-OS9TF-boQKAn9P.js";const eo=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,oo=m.div`
|
|
4
4
|
flex: display;
|
|
@@ -22,10 +22,10 @@ import{X as G,ht as be,M as B,u as q,z as xe,j as t,Y as _e,be as Se,hs as ke,aY
|
|
|
22
22
|
width: 100%;
|
|
23
23
|
height: 1px;
|
|
24
24
|
background-color: ${a.neutralGrey3Dark};
|
|
25
|
-
`,ao=({active:e,payload:r,barName:o})=>{const s=[];if(r!==void 0&&e===!0){const l=r.filter(
|
|
25
|
+
`,ao=({active:e,payload:r,barName:o})=>{const s=[];if(r!==void 0&&e===!0){const l=r.filter(C=>C.name==o)[0],i=l.payload,h=l.color,n={amount:i.record[o].amount?.amount??0,currencyCode:i.record[o].amount?.currencyCode??"",currencySymbol:i.record[o].amount?.currencySymbol??""},p={amount:0,currencyCode:"",currencySymbol:""};let g=0,c;for(c in i.record)c.endsWith("_actual")&&(g+=i.record[c].amount?.amount??0);p.amount=g,p.currencyCode=n.currencyCode,p.currencySymbol=n.currencySymbol,s.push({barName:de(o),actual:n,color:h,total:p,timeframeTick:i.timeLabel})}return s},to=({barLabelsWithValues:e,getVendorName:r})=>t.jsx(eo,{children:t.jsxs(oo,{children:[t.jsxs(ae,{children:[t.jsx(te,{color:e[0].color,children:`${r(e[0].timeframeTick,e[0].barName)}`}),t.jsx(ne,{color:e[0].color,children:`${ee(e[0].actual)}`})]}),t.jsx(ro,{}),t.jsxs(ae,{children:[t.jsx(te,{color:a.primaryDark,children:`${B.getLocalizedStrings().chartCard.total}`}),t.jsx(ne,{children:`${ee(e[0].total)}`})]})]})}),no=e=>{const r=ao({...e});return r.length===0?null:t.jsx(to,{barLabelsWithValues:r,getVendorName:e.getVendorName})},so=We.memo(no),se=[a.graphColor34,a.graphColor05,a.graphColor08,a.graphColor11,a.graphColor13,a.graphColor19,a.graphColor29,a.graphColor28,a.graphColor20,a.graphColor21,a.graphColor22,a.graphColor14,a.graphColor35,a.graphColor31,a.graphColor33,a.graphColor32,a.graphColor36,a.graphColor02,a.graphColor06,a.graphColor04,a.graphColor10,a.graphColor12,a.graphColor15,a.graphColor18,a.graphColor17,a.graphColor07,a.graphColor34Dark,a.graphColor05Dark,a.graphColor08Dark,a.graphColor11Dark,a.graphColor13Dark,a.graphColor19Dark,a.graphColor29Dark,a.graphColor28Dark,a.graphColor20Dark,a.graphColor21Dark,a.graphColor22Dark,a.graphColor14Dark,a.graphColor35Dark,a.graphColor31Dark,a.graphColor33Dark,a.graphColor32Dark,a.graphColor36Dark,a.graphColor02Dark,a.graphColor06Dark,a.graphColor04Dark,a.graphColor10Dark,a.graphColor12Dark,a.graphColor15Dark,a.graphColor18Dark,a.graphColor17Dark,a.graphColor07Dark];class N{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=a.graphColor34,this._barColors=se.slice(),this._barColorsKeyWise=new Map}static#e=new N;getBarColor(r){const o=N.instance();return o._barColorsKeyWise.has(r)||(o._barColors.length===0&&(o._barColors=se.slice()),o._barColorsKeyWise.set(r,o._barColors.shift()??o._defaultColor)),o._barColorsKeyWise.get(r)}shouldUpdate(r){const o=N.instance(),s=Array.from(o._barColorsKeyWise.keys()).sort();return!ie(s,r)}static init(){return this.#e=new N,this.#e}static instance(){return this.#e}}const lo=N.instance(),io=(e,r)=>{const o=new Set,s={};let l;const i=r.top4VendorsAndOthers;return Object.keys(i).length>0&&Object.keys(i).forEach(h=>{i[h].forEach((n,p)=>{const g=`vendor_${p}`,c=Ke(g,"actual");o.add(c),l==null&&n.balance!=null&&(l=c),s[c]!=null?s[c].push({key:c,balance:n.balance}):s[c]=[{key:c,balance:n.balance}]})}),l!=null?Ge(e,[...o],l,s):void 0},co=m.div`
|
|
26
26
|
width: ${e=>e.width}px;
|
|
27
27
|
height: ${e=>e.height}px;
|
|
28
|
-
`;function po({selectedRangeReport:e,width:r,height:o,showBarHoverBackground:s=!1,isDetailPage:l=!1}){const i=
|
|
28
|
+
`;function po({selectedRangeReport:e,width:r,height:o,showBarHoverBackground:s=!1,isDetailPage:l=!1}){const i=y.useRef(!1),h=lo,[n,p]=y.useState(void 0);y.useEffect(()=>{i.current=!0},[]);const g=io(e.firstMonthOfFY,e),c=()=>{const d=[];return g?.orderedKeys.forEach(b=>{const S=l===!0&&!i.current;d.push(C(b,S))}),d},C=(d,b)=>t.jsx(ze,{name:d,animationDuration:b?500:void 0,style:{cursor:"pointer"},dataKey:S=>{const v=S.record;return(v[d]?.amount!=null?v[d].amount:void 0)?.amount??0},stackId:"chartByTimeSeries",fill:h.getBarColor(de(d)),onMouseEnter:()=>{n!==d&&p(d)},onMouseLeave:()=>{n!=null&&p(void 0)}},d),_=({active:d,payload:b})=>b?.find(S=>S.name===n)!=null&&n!=null&&d===!0?t.jsx(so,{active:d,payload:b,barName:n,getVendorName:f}):null,f=(d,b)=>{const S=Re.getOpexVendorTimeframeKey(d);try{const v=b.split("_")[1];return e.top4VendorsAndOthers[S][parseInt(v)].vendor.name}catch(v){return console.warn("Was not able to parse vendor index for tooltip ",v),""}};return g==null?null:t.jsx(ho,{chartData:g,showBarHoverBackground:s,barElements:c(),customToolTipContent:t.jsx(_,{}),width:r,height:o,isDetailPage:l===!0})}const ho=({chartData:e,barElements:r,customToolTipContent:o,width:s,height:l,showBarHoverBackground:i=!1,isDetailPage:h})=>{const n=q(),p=Ye(e),g=i!==!1,c=h?(s-60)/G.operating_expenses_by_vendor*(G.operating_expenses_by_vendor-e.timeseries.length):20;return t.jsx(co,{width:s,height:l,children:t.jsx(le,{children:({height:C,width:_})=>t.jsxs(Ie,{width:_,height:C,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:h?O[5]:30,margin:{top:5,right:c,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(Me,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:n.colors.grey3}),t.jsx(Ae,{dataKey:f=>f.timeLabel.label,type:"category",axisLine:{stroke:n.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject}}),t.jsx(Le,{type:"number",axisLine:!1,tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject},tickFormatter:f=>Fe("0,0.[00]a",f,p)}),t.jsx(Ve,{wrapperStyle:{zIndex:2},cursor:g?{stroke:n.colors.background,strokeWidth:(_-120)/G.operating_expenses_by_vendor,fill:n.colors.background}:!1,content:o,allowEscapeViewBox:{x:!1,y:!0}}),r]})})})};function mo(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,company_name:e.companyName,statement_file_type:e.statementFileType,timeframe:e.timeframe,timezone:e.timezone,additional_balances:e.additionalBalances,format:e.format,sort_key:e.sortKey,sort_order:e.sortOrder,is_compare_mode_on:e.isCompareModeOn,search_string:e.searchString}}function go(e){const{isCompareModeOn:r,report:o,currentTenantCompanyName:s}=e,l=[];if(r&&(l.push("this_period_vs_last_period_percent"),l.push("this_period_vs_last_period")),o.dataAvailable!=null)return{localeId:B.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",companyName:s,statementFileType:"excel",timeframe:e.timeframe,timezone:e.timezone,additionalBalances:l,format:e.reportType,sortKey:e.sortKey,sortOrder:e.sortOrder,isCompareModeOn:e.isCompareModeOn,searchString:e.searchString}}function uo(e){const r=go(e);if(r!=null)return fo(e.statementEndPoint,e.authParams,r)}async function fo(e,r,o){const s=B.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(mo(o)))}`;try{const i=await De({urlEndPoint:l,authParams:r,fileType:o.statementFileType});if(i.ok){const h=Ne(i.headers,s.defaultFileName),n=await i.arrayBuffer();Ee(n,h)}else console.error(`${s.reportErrorMessage} ${i.statusText}`)}catch(i){console.error(`${s.reportErrorMessage} ${JSON.stringify(i)}`)}}function Co({title:e,balances:r,config:o,nodeId:s}){return{children:[],id:s??X("title_string_only",[]),isLastNode:!1,reportElementData:{element:{kind:"title_string_only",title:e,data:r,numOfBalances:r.length},config:o}}}function xo({opExByVendor:e,numOfBalances:r,title:o,isLastNode:s,config:l}){const i=e.account?.accountName??"-",h=e.classBase?.className??"-",n=X("vendor_row",[],o+i+h);return{children:[],id:n,isLastNode:s,reportElementData:{element:{kind:"vendor_row",title:o,data:e,numOfBalances:r},config:l}}}function yo({title:e,balances:r,config:o,numOfBalances:s,nodeId:l}){return{children:[],id:l??X("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:r,numOfBalances:s},config:o}}}const bo=(e,r,o,s=!0)=>{const l=o.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+1:e.filter.balancesRange.numberOfPeriods,i=e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[];e.totalBalances?.totalBalance!=null&&i.push(e.totalBalances.totalBalance);const h=pe({balances:i,config:o}),n=[];n.push(h);const p=B.getLocalizedStrings().vendors.opExByVendor,g=o.opexByVendorConfig?.sortOrSearchInProgress??!1,c=o.opexByVendorConfig?.pageFetchInProgress??!1;if(g===!0)[...Array(10)].forEach((C,_)=>{n.push(re({title:`${_}+${p.loading}`,balances:i,config:o}))});else if(e.opexBalances.length>0){if(!r.searchString){const f=yo({title:B.getLocalizedStrings().chartCard.total,balances:e.totalBalances,config:o,numOfBalances:l});n.push(f)}const C=r.pageToken[r.timeframe],_=e.opexBalances.map((f,d)=>xo({opExByVendor:f,title:f.vendor.name,numOfBalances:l,isLastNode:d===e.opexBalances.length-1&&C==null,config:o}));n.push(..._),c===!0&&[...Array(1)].forEach((f,d)=>{n.push(re({title:`${d}+${p.loading}`,balances:i,config:o}))}),[...Array(1)].forEach((f,d)=>{n.push(Ze({title:`${d}+${p.loading}`,balances:[],config:o}))})}return e.opexBalances.length===0&&g!==!0&&n.push(Co({title:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound,balances:i,config:o})),{config:o,headerNodes:s?[h]:[],contentNodes:n}};function _o(e,r,o,s=!0){Object.assign(e.config,r);const l=So(o),i=pe({balances:l,config:r});return{config:r,headerNodes:s?[i]:[],contentNodes:[i,...e.contentNodes.slice(1)]}}const So=e=>e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[],E={chartHeight:new F(288,360),wrapperPadding:new F(O[3],O[3],O[8]),contentPaddingLeft:new F(O[0],O[0],O[0]),contentPaddingRight:new F(O[3],O[3],O[8])},ko=m.div`
|
|
29
29
|
display: flex;
|
|
30
30
|
flex: 1 1 auto;
|
|
31
31
|
min-height: 100%;
|
|
@@ -55,7 +55,7 @@ import{X as G,ht as be,M as B,u as q,z as xe,j as t,Y as _e,be as Se,hs as ke,aY
|
|
|
55
55
|
flex-direction: column;
|
|
56
56
|
justify-content: center;
|
|
57
57
|
align-items: center;
|
|
58
|
-
|
|
58
|
+
`,Oo=m.div`
|
|
59
59
|
height: 96px;
|
|
60
60
|
width: 96px;
|
|
61
61
|
background: ${e=>e.theme.colors.background};
|
|
@@ -70,10 +70,10 @@ import{X as G,ht as be,M as B,u as q,z as xe,j as t,Y as _e,be as Se,hs as ke,aY
|
|
|
70
70
|
color: ${e=>e.theme.colors.primary};
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
`,
|
|
73
|
+
`,Po=m(Pe)`
|
|
74
74
|
margin-top: ${u.sp3};
|
|
75
75
|
color: ${e=>e.theme.colors.hero};
|
|
76
|
-
|
|
76
|
+
`,$o=m.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
padding: ${u.sp2} ${u.sp0} ${u.sp4} ${u.sp0};
|
|
79
79
|
`,jo=m.div``,To=m.div``,Do=m.div`
|
|
@@ -97,4 +97,4 @@ import{X as G,ht as be,M as B,u as q,z as xe,j as t,Y as _e,be as Se,hs as ke,aY
|
|
|
97
97
|
`,Mo=m.div`
|
|
98
98
|
width: 100%;
|
|
99
99
|
height: calc(100vh - ${u.sp11});
|
|
100
|
-
`,Ao=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?t.jsx(vo,{children:t.jsx(
|
|
100
|
+
`,Ao=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?t.jsx(vo,{children:t.jsx($e,{size:"ExtraLarge",start:!0})}):null,mr=({report:e,vendorTabsToShow:r,uiState:o,downloadParams:s,onVendorTabSelectionChanged:l,onReloadReport:i,onBackClick:h,onFetchOpExByVendors:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,onSortOrderChanged:c,onSortOrSearchStarted:C,onVendorNameAndBalanceClicked:_,onPageFetchStarted:f,previousTabPosition:d,setPreviousTabPosition:b,updateDownloadStateHandler:S,onClearSearch:v,analytics:P,onClickMenuIcon:R})=>{const[j,I]=y.useState(o.searchString[o.timeframe]),[M,A]=y.useState(!1),k=H(),T=y.useRef(null),W=ye(r),he=W.length>1,me=B.getLocalizedStrings().reports.common,J=B.getLocalizedStrings().vendors,U=q(),ge=["month","quarter"],ue=e.availableNumberOfPeriods!=null&&e.availableNumberOfPeriods<2,L=o.mode==="compare_mode"&&!ue,K=e.allTimeframeTicks.length===0,{timeframe:$}=o,D=o.searchString[$],fe=y.useCallback(w=>{n($,D,w)},[$,D,n]),Ce=y.useCallback((w,x)=>{window.scrollTo({top:T.current?.offsetTop,behavior:"smooth"}),w.length>0?(C(!0),n(x,w,!1)):(C(!1),v(x))},[v,n,C]),Q=y.useRef(be((w,x)=>Ce(w,x),500,{trailing:!0})).current,xe=(w,x)=>{c(w,x,$),C(!0),n($,D,!1)};if(y.useEffect(()=>{async function w(){await uo({report:e,isCompareModeOn:L,downloadState:o.downloadState,reportType:"more_detailed",timeframe:o.timeframe,sortKey:o.sortKey[o.timeframe],sortOrder:o.sortOrder[o.timeframe],searchString:o.searchString[$],...s}),P?.trackDownload(z("operating_expenses_by_vendor"),V(o.timeframe),"excel",L),S("Completed")}M&&o.downloadState!=="In-Progress"&&(A(!1),S("In-Progress"),w())},[e,o,L,s,o.downloadState,M]),y.useEffect(()=>{I(D)},[D]),e.fetchState==="Error")return t.jsxs(Bo,{children:[t.jsx(Oo,{"data-testid":_e("op-ex-by-vendor-reload-page"),onClick:i,children:t.jsx(Se,{})}),t.jsx(Po,{children:me.failed})]});const Y=e.totalBalances?.totalBalance;if(o.sortOrSearchInProgress===!1&&o.pageFetchInProgress===!1&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"))return t.jsx(Ao,{fetchState:e.fetchState});if((e.fetchState==="Completed"||o.sortOrSearchInProgress===!0||o.pageFetchInProgress===!0)&&e.isReportGenerated===!0){const w=t.jsxs(t.Fragment,{children:[t.jsx(ke,{isSearchOpen:(D?.length??0)>0,searchPlaceHolder:J.common.searchPlaceholder,searchText:j??"",onSearchTextChanged:x=>{I(x),x.trim().length>=2?Q(x,$):x.trim().length==0&&Q("",$)},downloadPresent:!0}),t.jsx(we,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:K,isDownloading:o.downloadState==="In-Progress"}],onDownloadClick:async x=>{if(x==="excel")if(o.downloadState==="In-Progress"){console.log("Download is already in progress!");return}else A(!0)}}}})]});return t.jsxs(ko,{windowSize:k,children:[t.jsx(ve,{title:J.common.navBarTitle,subTitle:e.lastRefreshSuccessTime!=null?e.lastRefreshSuccessTime.utc(!0).fromNow():"",backgroundColor:U.colors.grey5,onBackClick:h,rightSideComponent:w,showMenuIcon:k==="medium-compact"||k==="small",downloadPresent:!0,onClickMenuIcon:R,source:"OpExByVendorPage"}),t.jsxs(wo,{windowSize:k,children:[he?t.jsx(Be,{allTabs:W,selectedTab:W[1].id,containerStyle:{borderBottom:`2px solid ${U.colors.grey3}`},onTabChange:x=>l(Oe(x.id)),previousTabPosition:d,setPreviousTabPosition:b}):null,t.jsx(Lo,{timeframes:ge,isCompareModeOn:L,firstMonthOfFY:e.firstMonthOfFY,allTimeframeTicks:e.allTimeframeTicks,selectedTimeframe:o.timeframe,selectedCOABalancesRange:e.filter.balancesRange,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,mode:o.mode,analytics:P}),Y!=null?t.jsx(Eo,{children:t.jsx(Ue,{balance:Y,dateText:zo(Y)})}):null,t.jsx(Fo,{report:e,isEmptyPeriod:K})]}),t.jsx(Vo,{reference:T,report:e,uiState:o,isEmptyPeriod:K,onAdditionalBalanceSelectionChanged:p,onVendorNameAndBalanceClicked:_,onSortOrderChanged:xe,handleFetchOpExByVendor:fe,onPageFetchStarted:f,analytics:P})]})}return t.jsx(t.Fragment,{})},Lo=({timeframes:e,firstMonthOfFY:r,allTimeframeTicks:o,selectedCOABalancesRange:s,selectedTimeframe:l,onTimeframeSelectionChanged:i,onAdditionalBalanceSelectionChanged:h,mode:n,isCompareModeOn:p,analytics:g})=>t.jsx(To,{children:t.jsxs(jo,{children:[t.jsx($o,{children:t.jsx(qe,{timeframe:{allowedTimeframes:e,selectedTimeframe:l,onTimeframeSelectionChanged:c=>{g?.trackTimeframeSwitch(V(c),z("operating_expenses_by_vendor")),(c==="month"||c==="quarter")&&i(c),n==="compare_mode"&&!p&&h(p,p?["this_period_vs_last_period_percent"]:[])}},toggle:{label:B.getLocalizedStrings().compareSwitchLabel,isOn:p,isToggleDisabled:!1,onValueChanged:c=>{g?.trackCompareMode(c,z("operating_expenses_by_vendor"),V(l)),h(c,c?["this_period_vs_last_period_percent"]:[])}}})}),t.jsx(He,{firstMonthOfFY:r,timeframe:l,timeframeTicks:o,selection:{selectedTicks:oe(o,s),highlightedOfSelectedTicks:oe(o,s)}})]})}),Fo=({isEmptyPeriod:e,report:r})=>{const o=H();return e?t.jsx(No,{children:t.jsx(Xe,{title:B.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(Do,{windowSize:o,children:t.jsx(le,{children:({height:s,width:l})=>t.jsx(po,{selectedRangeReport:r,width:l,height:s,isDetailPage:!0,showBarHoverBackground:!1})})})},Vo=({report:e,uiState:r,isEmptyPeriod:o,reference:s,onAdditionalBalanceSelectionChanged:l,onTableScroll:i,onSortOrderChanged:h,onVendorNameAndBalanceClicked:n,handleFetchOpExByVendor:p,onPageFetchStarted:g,analytics:c})=>{const C=r.mode==="compare_mode",_=k=>{c?.trackCompareFilterChange(k==="compare_mode_percent"?"percentage":"amount",z("operating_expenses_by_vendor"),V(r.timeframe),"dropdown"),l(C,[k==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period"])},f=r.selectedAdditionalBalances.includes("this_period_vs_last_period_percent")?"compare_mode_percent":"compare_mode_amount",[d,b]=y.useState(void 0),[S,v]=y.useState(void 0),P=H(),R=q(),j=!(P==="small"||P==="medium-compact");y.useEffect(()=>{const k={reportId:e.reportId,mode:r.mode==="compare_mode"?"this_period_vs_period_before":"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:Te(),dataAvailable:e.dataAvailable,opexByVendorConfig:{sortKey:r.sortKey[r.timeframe],sortOrder:r.sortOrder[r.timeframe],isCompareModeOn:r.mode==="compare_mode",isAccountColumnShown:!0,isClassColumnShown:!0,onSortOrderChanged:h,sortOrSearchInProgress:r.sortOrSearchInProgress,pageFetchInProgress:r.pageFetchInProgress,onVendorNameAndBalanceClicked:n}};if(d==null||!ie(S,e)){const T=bo(e,r,k,j);v(e),b(T)}else{const T=_o(d,k,e,j);b(T)}},[r.mode,e]);const I=k=>k<e.opexBalances.length,M=()=>{r.pageToken[r.timeframe]!=null&&e.fetchState==="Completed"&&(g(),p(!0))},A=e.opexBalances.length;return t.jsx(Io,{windowSize:P,ref:s,children:o?t.jsx(Je,{}):d!=null?t.jsx(Mo,{children:t.jsx(Qe,{backgroundColor:new je(R.colors.grey4),rootNodes:d,type:"name+balances_actual",compareMode:f,isSticky:{isStickyHeader:j,isStickyName:j},treeNodePadding:{left:E.contentPaddingLeft.value(P),right:E.contentPaddingRight.value(P)},nodeOpenStatus:{},scrollPosition:r.scrollPosition,onCompareModeChanged:_,onScroll:i,infiniteLoadingProps:{isItemLoaded:I,itemCount:A,loadMoreItems:M}})}):null})},zo=e=>{const r=e.startDate,o=e.endDate,{vendors:s,dateFormat:l}=B.getLocalizedStrings();return`${s.opExByVendor.in} ${r.format(l.visual.MMMYYFormat)} - ${o.format(l.visual.MMMYYFormat)}`};export{mr as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as i,j as r}from"./index-
|
|
1
|
+
import{u as i,j as r}from"./index-CWmqNC4C.js";import{n}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const p=n.div`
|
|
2
2
|
display: ${({isOpen:o})=>o?"block":"none"};
|
|
3
3
|
position: fixed;
|
|
4
4
|
top: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o,D as M,u as T,X as v,Y as A,
|
|
1
|
+
import{j as o,D as M,u as T,X as v,Y as A,aV as re,M as c,K as ie,c as ae,C as D,p as ce,o as s,H as le,a7 as de,c0 as ge,c1 as pe,aS as me,m as P,l as Y,a_ as he,c2 as ue,a5 as fe,a6 as xe,ao as we}from"./index-CWmqNC4C.js";import{n as r,b as F}from"./vendor-CnQcJ2Lu.js";import{L as Se}from"./NavBarWithPicker-BC2xbV2b-BcYENhJM.js";import{m as je}from"./analyticsHelper-3y6VD3VH-4b12iNu9.js";import{M as $e}from"./TimeframeSwitcherWithToggle-RH8QHQFd-tstiafTX.js";import{R as Ce,a as Pe}from"./CollapsableReportTable-CyQ4sWuS-DlLXYbkM.js";import{M as E}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import{T as be,I as ke,L as ye}from"./mapSectionWithAcOnlyToTreeNode-CO6ix8Ks-D7LvCMfp.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-CEDhLCxY-D-EnNeIG.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-Bk9rjDg4-BqMFgpEZ.js";import"./AccountRow-Ca-OS9TF-boQKAn9P.js";const K="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ze=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -23,23 +23,23 @@ import{j as o,D as M,u as T,X as v,Y as A,aW as re,M as c,K as ie,d as ae,C as D
|
|
|
23
23
|
align-items: center;
|
|
24
24
|
justify-content: center;
|
|
25
25
|
margin-bottom: ${e=>e.windowSize==="small"?s.sp3:s.sp4};
|
|
26
|
-
`,Ie=r.div``,
|
|
26
|
+
`,Ie=r.div``,J=r.div`
|
|
27
27
|
width: ${e=>e.windowSize==="small"?"auto":"408px"};
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
|
-
`,
|
|
30
|
+
`,Q=r.div`
|
|
31
31
|
width: ${e=>e.windowSize==="small"?"100%":"calc(100% - 408px)"};
|
|
32
32
|
overflow: hidden;
|
|
33
33
|
max-width: 712px;
|
|
34
34
|
display: flex;
|
|
35
|
-
`,
|
|
35
|
+
`,Z=r.div`
|
|
36
36
|
margin-left: ${e=>e.windowSize==="small"?s.sp0:s.sp6};
|
|
37
37
|
margin-bottom: ${e=>e.windowSize==="small"?s.sp4:s.sp0};
|
|
38
38
|
background: ${e=>e.theme.colors.background};
|
|
39
39
|
border-radius: 12px;
|
|
40
40
|
border: ${e=>`1px solid ${e.theme.colors.grey5}`};
|
|
41
41
|
padding: 15px;
|
|
42
|
-
`,
|
|
42
|
+
`,b=r.div`
|
|
43
43
|
border-radius: ${s.sp12};
|
|
44
44
|
border: ${e=>`1px solid ${e.theme.colors.grey2}`};
|
|
45
45
|
padding: ${e=>e.windowSize==="small"?`${s.sp2} ${s.sp4} ${s.sp2} ${s.sp0}`:`${s.sp3} ${s.sp5} ${s.sp3} ${s.sp0}`};
|
|
@@ -70,7 +70,7 @@ import{j as o,D as M,u as T,X as v,Y as A,aW as re,M as c,K as ie,d as ae,C as D
|
|
|
70
70
|
margin: ${s.sp3} auto;
|
|
71
71
|
max-width: 422px;
|
|
72
72
|
color: ${e=>e.theme.colors.hero};
|
|
73
|
-
`,Ae=()=>{const e=T(),t=v();return o.jsxs(X,{windowSize:t,children:[o.jsx(
|
|
73
|
+
`,Ae=()=>{const e=T(),t=v();return o.jsxs(X,{windowSize:t,children:[o.jsx(Q,{windowSize:t,children:o.jsx(Z,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:q,alt:"forecast-promo",style:{width:"100%",height:"auto"}}):o.jsx("img",{src:K,alt:"forecast-promo",style:{width:"100%",height:"auto"}})})}),o.jsxs(J,{windowSize:t,children:[o.jsxs(b,{windowSize:t,children:[o.jsx(k,{children:o.jsx(ee,{})}),o.jsxs(y,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(b,{windowSize:t,children:[o.jsx(k,{children:o.jsx(oe,{})}),o.jsxs(y,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(b,{windowSize:t,children:[o.jsx(k,{children:o.jsx(te,{})}),o.jsxs(y,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})]})},Fe=()=>{const e=T(),t=v();return o.jsxs(X,{windowSize:t,children:[o.jsxs(J,{windowSize:t,children:[o.jsxs(b,{windowSize:t,style:{width:"408px"},children:[o.jsx(k,{children:o.jsx(ee,{})}),o.jsxs(y,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(b,{windowSize:t,style:{width:"275px",alignSelf:"end"},children:[o.jsx(k,{children:o.jsx(oe,{})}),o.jsxs(y,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(b,{windowSize:t,style:{width:"408px"},children:[o.jsx(k,{children:o.jsx(te,{})}),o.jsxs(y,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]}),o.jsx(Q,{windowSize:t,children:o.jsx(Z,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:q,alt:"forecast-promo",style:{width:"640px",height:"402px"}}):o.jsx("img",{src:K,alt:"forecast-promo",style:{width:"640px",height:"402px"}})})})]})},Ne=({meetingUrl:e,onBackClick:t,onClickMenuIcon:n})=>{const a=T(),l=v(),d=()=>{window.open(e.toString(),"_blank")};return o.jsxs(ze,{"data-testid":A("forecast-promo-page"),children:[o.jsx(re,{title:c.getLocalizedStrings().forecastPromoPage.title,backgroundColor:a.colors.grey4,onBackClick:t,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:n,source:"ForecastPromoPage"}),o.jsxs(ve,{"data-testid":A("forecast-promo-container"),windowSize:l,children:[l==="small"?o.jsx(Te,{children:c.getLocalizedStrings().forecastPromoPage.promoText}):o.jsx(Le,{children:c.getLocalizedStrings().forecastPromoPage.promoText}),l==="small"?o.jsx(Ae,{}):o.jsx(Fe,{}),o.jsxs(Ie,{"data-testid":A("forecast-promo-bottom-container"),children:[o.jsx(ie,{variant:"primary",label:c.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:d}),o.jsx(Me,{children:c.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})]})};function Oe(e,t,n=!0){const a=c.getLocalizedStrings().reports,l=e.filter.balancesRange.numberOfPeriods,d=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?e.sections.expenses.balances:e.sections.income!=null?e.sections.income.balances:[],m=H({balances:d,config:t}),p=[];return p.push(m),e.idsInOrder.forEach(i=>{if(Y.isPandLReportViewSectionID(i)===!0){const f=e.sections[i];if(f==null)return;f.accountGroups.length>0?p.push(be({section:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t})):p.push(ke({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}else Y.isPandLReportViewCalculatedSectionID(i)===!0&&p.push(ye({calculatedSection:e.calculatedSections[i],numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}),{config:t,headerNodes:n?[m]:[],contentNodes:p}}function _e(e,t,n,a=!0){Object.assign(e.config,t);const l=n.sections.expenses.balances.length>0?[...n.sections.expenses.balances,...n.sections.expenses.additionalBalances]:[...n.sections.income.balances,...n.sections.income.additionalBalances],d=H({balances:l,config:t,nodeId:e.contentNodes[0].id}),m=e.contentNodes.slice(1);return m.forEach(p=>se(p,t)),{config:t,headerNodes:a?[d]:[],contentNodes:[d,...m]}}function se(e,t){Object.assign(e.reportElementData.config,t),e.children.forEach(n=>se(n,t))}const L={contentPaddingLeft:new D(P[3],P[3],P[8]),contentPaddingRight:new D(P[3],P[3],P[8])},Be=r.div`
|
|
74
74
|
display: flex;
|
|
75
75
|
flex: 1 1 auto;
|
|
76
76
|
min-height: 100%;
|
|
@@ -83,7 +83,7 @@ import{j as o,D as M,u as T,X as v,Y as A,aW as re,M as c,K as ie,d as ae,C as D
|
|
|
83
83
|
width: 99.9%;
|
|
84
84
|
margin-top: ${s.sp2};
|
|
85
85
|
background-color: ${e=>e.theme.colors.grey4};
|
|
86
|
-
`,
|
|
86
|
+
`,Re=r.div`
|
|
87
87
|
display: flex;
|
|
88
88
|
width: 100%;
|
|
89
89
|
flex: 1;
|
|
@@ -92,7 +92,7 @@ import{j as o,D as M,u as T,X as v,Y as A,aW as re,M as c,K as ie,d as ae,C as D
|
|
|
92
92
|
justify-content: center;
|
|
93
93
|
align-items: center;
|
|
94
94
|
background-color: ${e=>e.theme.colors.grey4};
|
|
95
|
-
`,
|
|
95
|
+
`,U=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?o.jsx(Re,{children:o.jsx(ae,{size:"ExtraLarge",start:!0})}):null,Ve=r.div`
|
|
96
96
|
display: flex;
|
|
97
97
|
width: 100%;
|
|
98
98
|
flex-direction: column;
|
|
@@ -104,4 +104,4 @@ import{j as o,D as M,u as T,X as v,Y as A,aW as re,M as c,K as ie,d as ae,C as D
|
|
|
104
104
|
align-items: center;
|
|
105
105
|
justify-content: center;
|
|
106
106
|
margin-bottom: ${s.sp3};
|
|
107
|
-
`,De=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:a,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:m,onBackClick:p,isPandLReportFetching:i,onClickMenuIcon:f})=>{const h=v(),u=[];for(let g=0;g<e.length;++g)u.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:u,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ce.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const z=e[parseInt(g)];n?.(z.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:i},onBackClick:p,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:f},$={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:a,onValueChanged:l},timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:d,onTimeframeSelectionChanged:g=>m?.(g)}};return o.jsxs(
|
|
107
|
+
`,De=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:a,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:m,onBackClick:p,isPandLReportFetching:i,onClickMenuIcon:f})=>{const h=v(),u=[];for(let g=0;g<e.length;++g)u.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:u,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ce.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const z=e[parseInt(g)];n?.(z.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:i},onBackClick:p,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:f},$={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:a,onValueChanged:l},timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:d,onTimeframeSelectionChanged:g=>m?.(g)}};return o.jsxs(Ve,{paddingLeft:L.contentPaddingLeft.value(h),paddingRight:L.contentPaddingRight.value(h),children:[o.jsx(Se,{...x}),i?"":o.jsx(We,{children:o.jsx($e,{...$})})]})},Ye=({report:e,type:t,isActualVsForecastOn:n,compareMode:a,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:m,onTableScroll:p,nodeOpenStatus:i,onNodeCollapseToggled:f})=>{const h=T(),u=v(),[x,$]=F.useState(void 0),[g,z]=F.useState(void 0),C=!(u==="small"||u==="medium-compact"),I=n===!0?"actual_vs_forecast":"none";return F.useEffect(()=>{const S={reportId:`${e.reportId}+${e.forecast?.id}`,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:I,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:Pe(t)===!0&&n===!1?"filter_forecast_nil_balances":"filter_actual_forecast_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:he()};if(x==null||!le(g,e)){const w=Oe(e,S,C);z(e),$(w)}else{const w=_e(x,S,e,C);$(w)}},[t,n,e]),x!=null?o.jsx(Ce,{backgroundColor:new de(h.colors.grey4),rootNodes:x,type:t,compareMode:a,isSticky:{isStickyHeader:C,isStickyName:C},treeNodePadding:{left:L.contentPaddingLeft.value(u),right:L.contentPaddingRight.value(u)},onAccountClick:l==null?void 0:(S,w)=>{l(S,w)},onCompareModeChanged:d,scrollPosition:m,onScroll:p,nodeOpenStatus:i,onNodeCollapseToggled:f}):null};function po({selectedTimeframe:e,isForecastVsActualOn:t,compareMode:n,forecastList:a,selectedForecast:l,pandLreport:d,type:m,meetingUrl:p,analytics:i,onForecastSelectionChanged:f,onTimeframeChanged:h,onForecastVsActualsCompareToggle:u,onAccountBalanceClick:x,onCompareModeChanged:$,scrollPosition:g,onTableScroll:z,nodeOpenStatus:C,onNodeCollapseToggled:I,onBackClick:S,onClickMenuIcon:w}){const R=[a.fetchState,d.fetchState],V=l?.index??-1;return ne(R)===!0||a.fetchState==="Completed"&&a.forecasts.length===0?o.jsx(Ne,{meetingUrl:p,onBackClick:S,onClickMenuIcon:w}):G([a.fetchState])===!0?o.jsx(U,{fetchState:Ge(R)}):o.jsxs(Be,{children:[o.jsx(De,{forecastList:a.forecasts,selectedForecastIndex:V,onForecastSelectionChanged:(j,W)=>{i?.trackForecastSwitch(M.Event.profitAndLossWithForecast,a.forecasts[W].name),f?.(j,W)},vsActualOn:t,onVsActualChanged:j=>{i?.trackForecastVsActualMode(M.Event.profitAndLossWithForecast,a.forecasts[V].name,j),u?.(j)},selectedTimeframe:e,onTimeframeChanged:j=>{i?.trackTimeframeSwitch(je(j),M.Event.profitAndLossWithForecast),h?.(j)},onBackClick:S,isPandLReportFetching:G([d.fetchState]),onClickMenuIcon:w}),d.fetchState==="In-Progress"?o.jsx(U,{fetchState:"In-Progress"}):o.jsx(Ee,{children:o.jsx(Ye,{report:d,type:m,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:$,scrollPosition:g,onTableScroll:z,nodeOpenStatus:C,onNodeCollapseToggled:I})})]})}const Ue=e=>e.reduce((t,n)=>t===!0&&n==="Completed",!0),ne=e=>e.reduce((t,n)=>t===!0||n==="Error",!1),G=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),Ge=e=>Ue(e)===!0?"Completed":ne(e)===!0?"Error":"In-Progress";export{po as default,G as isAnyInProgress};
|