@zeniai/web-cockpit-ui 1.13.87-dev → 1.13.88-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-CW8vDdF5-BjcStneE.js → ACHDetailsPage-Dht0mfFW-Dn9VZjx5.js} +3 -3
- package/dist/assets/{AIPerformancePage-tSqRY12b-CS74oHek.js → AIPerformancePage-D8LI2uJ_-CFMKtsQV.js} +35 -35
- package/dist/assets/{AccountInfoPage-C9rcnhgb-CRWEZYsW.js → AccountInfoPage-Cw_Mdy7Z-CgHNbOHf.js} +5 -5
- package/dist/assets/{AccountInfoPageContent-DftJxUep-Cw9zyQ_s.js → AccountInfoPageContent-DadwVfBB-CcKZ7ci4.js} +20 -20
- package/dist/assets/{AccountReconDetailsDrawerPage-CBpvkm_m-BXrukYLg.js → AccountReconDetailsDrawerPage-mQx5-mCY-CXTHdi5q.js} +15 -15
- package/dist/assets/{AccountRow-cQU8OX0K-yHyqR7LP.js → AccountRow-B4i2KTVu-DZIGknQG.js} +19 -19
- package/dist/assets/{AccountsPromoCardStack-DuBj_EHe-B3WzwbTq.js → AccountsPromoCardStack-B2NngRd9-cDiIvZy1.js} +22 -22
- package/dist/assets/{AddAddressForCardDrawer-D4edy26A-B1-8tiAZ.js → AddAddressForCardDrawer-D-IznBH5-BJus8-sl.js} +2 -2
- package/dist/assets/{AddToWalletPage-Lkfz2CzH--lPqUVOg.js → AddToWalletPage-DflLtoqk-C5v1fW7G.js} +32 -32
- package/dist/assets/{AgingReportsPage-DtW2tU4n-DVEUTxX1.js → AgingReportsPage-z5SauZFW-CWSELr2T.js} +7 -7
- package/dist/assets/{AllUserItems-DcuO9Oho-D7VaO8Uf.js → AllUserItems-Cs-QjNZz-DLp9A32f.js} +5 -5
- package/dist/assets/{ApAgingDetailPage-D2UVTYqP-9KAbUMxy.js → ApAgingDetailPage-lLcH4EB_-rlPPDzk2.js} +2 -2
- package/dist/assets/{AppBasePage-iuomCofd-D1M4Ldw8.js → AppBasePage-jmR82AtE-DayOXpZP.js} +4 -4
- package/dist/assets/{AppDrawerContent-BfpdXsfY-BoqfQVbX.js → AppDrawerContent-BjVgRQD8-BmKoXH6f.js} +8 -8
- package/dist/assets/{ApprovalRulesSettingsPage-BKAWfUl9-BUmVoC9W.js → ApprovalRulesSettingsPage-zl3t7M0D-Cdqy44le.js} +7 -7
- package/dist/assets/{ArAgingChart--GzyqIlN-wEZY3asj.js → ArAgingChart-B7_os9Eg-CgtB3vV8.js} +8 -8
- package/dist/assets/{ArAgingDetailPage-A0zmG_tR--cuXu7ko.js → ArAgingDetailPage-DPGrFIuw-DbqMnESI.js} +4 -4
- package/dist/assets/{AttachmentView-D203zhS3-Blc80O1o.js → AttachmentView-B0X31J2n-CsjUR1d_.js} +5 -5
- package/dist/assets/{BankAccountSection-iz2k4H5K-CWZXnWVk.js → BankAccountSection-BGfiGdYG-BvbymoQK.js} +2 -2
- package/dist/assets/{BankAccountWarningSection-CSJXyjMA-BgaGb4P-.js → BankAccountWarningSection-Cd5lC0dV-ChbciCQi.js} +5 -5
- package/dist/assets/{BankConnectionsSettingsPage-Co5pwxWT-C5lfXSpY.js → BankConnectionsSettingsPage-DHJqJw74-BePSQANr.js} +19 -19
- package/dist/assets/{BillDetailPage-BJbdAC5y-CMbCAQ4h.js → BillDetailPage-CVPyGkX2-BrTeB9W1.js} +9 -9
- package/dist/assets/{BillPayApprovalRuleDetailPage-D4-goF6x-C23aUqzX.js → BillPayApprovalRuleDetailPage-CPvu5b92-Ms299zWc.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CpAFdET_-DdMQ64US.js → BillPayApprovalRulesPage-04rw5oF_-ByiJUcvs.js} +6 -6
- package/dist/assets/{BillPayPromoPage-DZn9Wdsi-COOh5nks.js → BillPayPromoPage-xnBNKyGo-Qs57CtUW.js} +2 -2
- package/dist/assets/{BillPaySetUpPage-BGxI3SGy--373OJdf.js → BillPaySetUpPage-2FceZZW4-B3NVG0AT.js} +2 -2
- package/dist/assets/{BillingSettingsPage-B3h6dTYD-CiH5BD6s.js → BillingSettingsPage-D2iVTCtE-DzLgV1gZ.js} +5 -5
- package/dist/assets/BillsBulkReviewDrawerPage-sdzCq1Cx-CMrpjPLV.js +1 -0
- package/dist/assets/{BoxItem-C-RN4c2j-F6XwRGQ-.js → BoxItem-dOIVDQzt-BM2Or2XI.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BEK8kZil-Di05q2Gg.js → BusinessVerificationPage-DaVB5XYz-abkyr0KT.js} +7 -7
- package/dist/assets/{CardNumberSubText-Bvs0Rr9x-DPY11oi8.js → CardNumberSubText-CX7raaMz-YubYXrEf.js} +1 -1
- package/dist/assets/{CashbackDetailPage-9aAW-23b-6kdPvDSO.js → CashbackDetailPage-xKd1BcXA-BnqvBKy2.js} +23 -23
- package/dist/assets/{ChargeCardDetailPage-DHjtLrCu-8rSs9AMN.js → ChargeCardDetailPage-D-htyuB--DNk7-kF0.js} +52 -52
- package/dist/assets/ChargeCardListPage-BFEDq_hH-CIWVY9p8.js +355 -0
- package/dist/assets/{ChargeCardListTable-jGT-e74M-5-uAUG8Z.js → ChargeCardListTable-D0rr5rCb-ubys_P-K.js} +24 -24
- package/dist/assets/ChargeCardPromoPage-C4RyYN8x-DrItIyBg.js +175 -0
- package/dist/assets/{ChargeCardSetupPage-CN5Nbcsp-Bu6r203Z.js → ChargeCardSetupPage-DdabiH79-BJYnLJP3.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-Bu_rIDAD-BeeV8bqA.js → ChargeCardStatementsPage-fcVVhHeN-3BJYN5k8.js} +4 -4
- package/dist/assets/{ChargeCardUtils-C-37hd5J-B8Ue09Ej.js → ChargeCardUtils-CHUMBmgR-CJymagC4.js} +1 -1
- package/dist/assets/{ChaseOverlay-BG833ttH-_qJdBH9y.js → ChaseOverlay-kXvIXrLn-BoWFlEip.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-B4F_yGVS-pfAuDSEr.js → CheckDepositDrawerPage-DzZGbAGe-CUI6hMoI.js} +17 -17
- package/dist/assets/{CollapsableReportTable-CtS-s84B-BR4en1d9.js → CollapsableReportTable-B7JqlhCA-D-71vAGn.js} +29 -29
- package/dist/assets/{CompanyOfficerDetailsSection-Bor8xmLS-OgNQHHeC.js → CompanyOfficerDetailsSection-Cd0QdDAc-CRTLz9vU.js} +28 -28
- package/dist/assets/{CompanyPassportCard-n-awcw82-DRSohnEc.js → CompanyPassportCard-Bhm76W7a-DhQY8aBm.js} +4 -4
- package/dist/assets/{CompanyPassportPage-WfbfWOs1-COSgoQMl.js → CompanyPassportPage-B6Urivf7-Cf5kWZCy.js} +137 -137
- package/dist/assets/CompleteProfile-Ch4TNwnb-BDWK7-aS.js +36 -0
- package/dist/assets/{ConfettiBurst-UJtKVS38-DdsiBpUw.js → ConfettiBurst-DxWLsUlB-rN2UgITP.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BMLSs7Yo-DmUQ86jB.js → CreateOrEditVendorPage-MjFD4wWW-Duct_eTQ.js} +4 -4
- package/dist/assets/{CreditCardPaymentDrawerPage-8zmbMj3u-ZPA-ktu-.js → CreditCardPaymentDrawerPage-CcZnGiIZ-Ci6NOj44.js} +17 -17
- package/dist/assets/{CreditCardPaymentPlgSection-DD7kSp5v-BuL73gip.js → CreditCardPaymentPlgSection-DEV6AUvV-Dv95csrn.js} +10 -10
- package/dist/assets/{CurrencySelectField-DGID-Pjb-B38xYqrH.js → CurrencySelectField-iFR770y_-C1fOBvED.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-pdEVqtkO-B5fJSkdd.js → CustomerOnboardingActivationPage-O_lVI1Iw-CSIlT4cV.js} +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-DY7-75zX-BNg2Axnl.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-1d9j5dWO-dyqi73hm.js → CustomerOnboardingDetailPageSkeleton-WBhn2MmI-IC_mQp6e.js} +10 -10
- package/dist/assets/{CustomerOnboardingNoStepsPage-BqrKQCFg-1lfgph7E.js → CustomerOnboardingNoStepsPage-CmnwYeBe-VDPM90YE.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-DVVWivk2-WMhFdF9M.js → CustomerOnboardingPage-DUMb3HBt-C_i7oxut.js} +5 -5
- package/dist/assets/{CustomerOnboardingProductSuitePage-D_WVGW91-B4zQnbeq.js → CustomerOnboardingProductSuitePage-DZ8c60qu-Ca-OS69A.js} +2 -2
- package/dist/assets/Dashboard-BqpjCXF4-2DYnY2Iv.js +778 -0
- package/dist/assets/DashboardReportPage-pKEtfyyz-CVEg_i3S.js +349 -0
- package/dist/assets/{DepositAccTransactionItem--OdW7LRx-zcdQHy5Q.js → DepositAccTransactionItem-CzhTsz8T-D_UbOtXk.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-BGapI5f0-BXH4xxAt.js → DepositAccTransactionListPage-BdBZvUQu-BB7xhCYl.js} +8 -8
- package/dist/assets/{DocumentSecurityBanner-Ctdvj5Tn-CM5WmW33.js → DocumentSecurityBanner-CjDxLXR5-BndWfQhM.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BGP2DLHb-CLZOaehZ.js → DomesticWireDetailsPage-Ckv29rd5-DrJPPbKc.js} +1 -1
- package/dist/assets/{DownloadOverlay-VDEpvzHH-C6KDM3Im.js → DownloadOverlay-9HCQzpew-CsaBVCuK.js} +17 -17
- package/dist/assets/{DrawerPage-BauCSJ4q-DA93KkS0.js → DrawerPage-BxA7btCQ-vpjTPccl.js} +6 -6
- package/dist/assets/{EditPeoplePage-mz7FTion-DdIStM8G.js → EditPeoplePage-B9oW6E0C-C3pRQE6D.js} +13 -13
- package/dist/assets/{EditReimbursementDetailPage-Bi_rdyjb-DXvJQD3u.js → EditReimbursementDetailPage-2_Ugsfav-CInqqrZe.js} +72 -72
- package/dist/assets/{EntityDetailPage-Bc2AVCEp-DOVttkwP.js → EntityDetailPage-Dv97bCUN-BCQJ8lei.js} +2 -2
- package/dist/assets/{EntitySummarySection-CDO6K9RG-CZ1I06e-.js → EntitySummarySection-CAz28n_B-DA_p__eJ.js} +7 -7
- package/dist/assets/{ExpenseAutomationOverviewPage-C7SAclix-Ch7r281h.js → ExpenseAutomationOverviewPage-CpVokJPL-BSrPWwJ8.js} +23 -23
- package/dist/assets/{ExpenseAutomationPage-A03nzEV--i6evGevK.js → ExpenseAutomationPage-CFRiNGRE-CFvonBSo.js} +50 -50
- package/dist/assets/{ExpressPayPage-B5QCvPtb-mYcSl8Ub.js → ExpressPayPage-BsCQmXdG-CzkMNsZH.js} +11 -11
- package/dist/assets/{FeaturePreviewPage-Czr4aIad-Bq5X23tc.js → FeaturePreviewPage-CnYlH8Tm-cl_d37Wd.js} +2 -2
- package/dist/assets/{FollowStepsSection-Cf1g5oOj-5G8g4W7R.js → FollowStepsSection-CvsH5sJq-DWW0wJJE.js} +10 -10
- package/dist/assets/{GlobalReviewListPage-BI8uyXfO-DlP3gmGv.js → GlobalReviewListPage-CKbg3WRJ-BhA6WSL7.js} +9 -9
- package/dist/assets/HelpButton-DmSTrp5G-BZ5gO3eI.js +28 -0
- package/dist/assets/{InformationCardStack-WnJWUp5O-BeMJUt9i.js → InformationCardStack-X52PXCzi-BTPqjoZv.js} +3 -3
- package/dist/assets/{InsightsCardStack-CRA0RPsW-D6ISd9AF.js → InsightsCardStack-CXxA6hpf-BZ7-Ipfo.js} +8 -8
- package/dist/assets/{InsightsSection-DvcmBPbo-Kmp0eo1Q.js → InsightsSection-obWu95-o-miX-wlBZ.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-D41_8UnK-CBjS_ZvM.js → IntegrationsSettingsPage-BFZjrnDu-BWjoBVhl.js} +7 -7
- package/dist/assets/{InternationalWireSwiftDetailsPage-BFN-eaZB-DkA8hvOx.js → InternationalWireSwiftDetailsPage-CywJ88_i-BroHKack.js} +13 -13
- package/dist/assets/{InternationalWireVerificationPage-xmoJO63s-D_kiU9kB.js → InternationalWireVerificationPage-CjunyEiQ-CkCrwyQO.js} +16 -16
- package/dist/assets/{InviteFormPage-Zy3qQng6-WUFAPnrT.js → InviteFormPage-BaaFGzDE-BIlf9-kB.js} +26 -26
- package/dist/assets/{InvitePageListView-gATEAhxa-BJvv1nxH.js → InvitePageListView-BJJQpITw-CDEymEsw.js} +36 -36
- package/dist/assets/InvitePeoplePage-7yKV1JuU-BmXtVrGW.js +12 -0
- package/dist/assets/{InvoiceUploadSection-CTbnx9F4-DxOvNNGL.js → InvoiceUploadSection-CjV8q6sM-BkASWvfN.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-BwBDVxeq-QT3JqZbp.js → IssueChargeCardPage-BTloC5fY-_HD69MiA.js} +20 -20
- package/dist/assets/{LabeledAddressValue-C5YXOhcz-DcQYX30H.js → LabeledAddressValue-C8xq-j7G-D16vnyhu.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-CMIVYcKX-IiR7eG-s.js → LabeledAddressValueField-CqhBSQ8f-lPB35Jmc.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-Dr8ND8SA-C9Qzlvtb.js → LabeledControlledCheckBoxField-D5A-8bnH-DqiGgCzm.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CrDFWvwI-C1AD80Rw.js → LabeledCreatableSingleSelectField-CB34OT80-C0m35imT.js} +3 -3
- package/dist/assets/LabeledDocumentField-MyG-6WMu-Cbf-CDaI.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-cv7zClcb-f3M9bbM_.js → LabeledDropDownFormattedTextField-DyvjlBIK-CeaVwHLj.js} +2 -2
- package/dist/assets/{LabeledText-DaM1ChQF-BwcpwF0f.js → LabeledText-CEbLfx4b-BTTGqwXz.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-ClM9Uj1y-6k_crmLc.js → LabeledUserSingleSelectWithSubtitlesField-CDXChSPU-Dz8I-s1u.js} +12 -12
- package/dist/assets/{LabeledZeniRolesDropDownField-DfAO3Vyq-C62yt72O.js → LabeledZeniRolesDropDownField-CpZOSybd-7yPpOapA.js} +24 -24
- package/dist/assets/{LinkJETransactionPage-CSlZZ9r4-ChRBBG28.js → LinkJETransactionPage-CF2S7mlj-BoLj0J2f.js} +10 -10
- package/dist/assets/{LowBalancePopup-ZfmTgr7J-C3y63M8c.js → LowBalancePopup-CI3FeJJc-CdKJER0J.js} +5 -5
- package/dist/assets/{MagicLinkACHDetailsPage-Ad9q16ze-Cc4KtwXI.js → MagicLinkACHDetailsPage-Hs-8X1gB-CIg2sh6N.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-TudYpGU_-cwp5jFX6.js → MagicLinkDomesticWireDetailsPage-JY153fBS-Cm2_mDog.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DfZQur8x-MDCFOTKW.js → MagicLinkInternationalWireDetailsPage-C7H0tqh2-n8HQkRdB.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-G9P6M-7E-bWNtOw6X.js → MagicLinkSuccessPage-DrfXx_R1-BNU78zpj.js} +5 -5
- package/dist/assets/{MagicLinkTitleSection-BnKDwhBK-wh8Yf-S0.js → MagicLinkTitleSection-GAlgtNgO-BKAs3T24.js} +3 -3
- package/dist/assets/{MailingDetailsSection-BV_-2RQM-CCg3F_6v.js → MailingDetailsSection-DwEajxFH-BrjelhuF.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-C6y2cRLo-BgxsFwD_.js → MeetingCalenderPopup-CF-RTU9K-BubT6ngE.js} +3 -3
- package/dist/assets/{Menu-Dhi3mAAc-CTdMUIt5.js → Menu-DgxJQlbW-DIVRGIXR.js} +4 -4
- package/dist/assets/{MyBankConnectionsSettingsPage-D1DMNxbh-ChPr7QXP.js → MyBankConnectionsSettingsPage-Bkn9hqAF-DqE41rF5.js} +14 -14
- package/dist/assets/{MyPendingActivationChargeCardListPage-CtxNt4Km-OhPuLid4.js → MyPendingActivationChargeCardListPage-Bg1r7PJb-DnJ-MJDd.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-ehPTh7cb-C19JE_a0.js → MyProfileSettingsPage-DFqIWGcr-jQcxs-Wf.js} +9 -9
- package/dist/assets/{NavBarWithPicker-BF7k45-H-CqiTH9vF.js → NavBarWithPicker-BJyEgvZP-C-f0-1c6.js} +4 -4
- package/dist/assets/{NavigationArrow-DKuw9kCL-2Rze1y5j.js → NavigationArrow-CUVFG2Pf-P3tdOWHt.js} +6 -9
- package/dist/assets/{NavigationDots-DfJQIsra-CF_rwB9h.js → NavigationDots-BDLMSply-CVhKiAdV.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CWyjN00H-0DvMrAS7.js → NewGlobalMerchantPage-Ck7DGlQi-CVmDfXRL.js} +9 -9
- package/dist/assets/NoDataChart-DMqFH96W--xyVCmNv.js +26 -0
- package/dist/assets/{NoDataTable-Txtz3a1x-CVIPKw2H.js → NoDataTable-B8PHBrBF-BIIbtUFT.js} +1 -1
- package/dist/assets/{NotFoundPage-DewJikvf-DquNlF_a.js → NotFoundPage-4JmEE0vS-BkO12wXJ.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-CAFlFJ9J-DNtSJXlE.js → NotificationSettingsPage-D6YQunRL-Dh3lfacW.js} +16 -16
- package/dist/assets/{NotificationsListConfig-B6PteXf7-BPHFWRyo.js → NotificationsListConfig-DZBF9h2L-DipP-kuo.js} +1 -1
- package/dist/assets/{NotificationsPage-CqmgbRYI-B1REvxM0.js → NotificationsPage-PjOFwF6H-CB9uEJYk.js} +14 -14
- package/dist/assets/{OpExByVendorPage-CYAYFvCM-CDkrX969.js → OpExByVendorPage-BNNQdeqy-v4NH_AXr.js} +6 -6
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-W0ax80yE.js → OverlayContainerPage-C0rUb6-5-Dg1IHqst.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-v5t7YeHA-c32BpF_9.js → PandLWithForecastPage-Cg3I1JPR-BHcMSGKl.js} +5 -5
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CnCCn9XQ-CNY3y6cT.js → PaymentAccountSetupBillingAddressSection-BaNMRbqw-CIIlY3kM.js} +8 -8
- package/dist/assets/{PeoplePage-D89yZGJn-CFNcLLmk.js → PeoplePage-BRnDI6mc-CLBN4-_q.js} +29 -29
- package/dist/assets/{PortfolioAllocationFormPage-Cit7ssiw-CpmTmt3z.js → PortfolioAllocationFormPage-BG5sY-R6-BBFBmc8X.js} +1 -1
- package/dist/assets/{PortfolioDetails-B1HXVeH2-D3KDftxW.js → PortfolioDetails-g9uKkfc0-2ntvLazE.js} +12 -12
- package/dist/assets/{ProductsCarousel-BeOYePu1-BPS8weXu.js → ProductsCarousel-DZmAO-Ad-BvStEG-O.js} +6 -6
- package/dist/assets/{PromoBaseCards-D1DDp9C1-BMl9m8-G.js → PromoBaseCards-B9AnaalQ-hSs7-TQL.js} +23 -23
- package/dist/assets/{QBOConnectionDialog-nb_5mvqp-CNrftMhR.js → QBOConnectionDialog-Bnhkqpjg-DkGgqNtn.js} +5 -5
- package/dist/assets/{QBOSetupSection-b-OrlvdU-D5Bh2qoF.js → QBOSetupSection-CHXmbhAv-C0u3acrS.js} +8 -8
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-vg7A7Fqa-DKxcfaTy.js → ReimbursementApprovalRuleDetailPage-B2zXkJz--CABHH5fp.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-FYfZ8-hX-DxG5e0_0.js → ReimbursementApprovalRulesPage-HuTMMWVv-E3dBhOaI.js} +15 -15
- package/dist/assets/{ReimbursementDetailPage-DHsqq__V-BbntdEZI.js → ReimbursementDetailPage-BLvwZrVh-DyidHFPC.js} +14 -14
- package/dist/assets/{ReimbursementPromoPage-D-wmyfH--DT237a-Y.js → ReimbursementPromoPage-D_mQJpBI-Dp4ArZsT.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Cneg3RyB-nHTacFs2.js → ReimbursementSetUpPage-FkxlkcbN-DldfTkkM.js} +6 -6
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-OTHapAJy-B07Bk0eB.js → ReimbursementsBulkReviewDrawerPage-Oqy1_VEa-BpS2SfWm.js} +1 -1
- package/dist/assets/{ReloadCard-D72dkm5s-DHOqIhPE.js → ReloadCard-DXOUba_M-CHzipN0D.js} +3 -3
- package/dist/assets/ReportTableViewSelector-CHN0DsMB-DHP2dHrr.js +150 -0
- package/dist/assets/ReportsPage-FPxKx4-a-CZcO3AqP.js +120 -0
- package/dist/assets/{RevenueChart-G7w1_QXE-CK6mJH77.js → RevenueChart-L0b_usU7-Cf8KBYNj.js} +13 -13
- package/dist/assets/{ReviewDetailsPage-i6ZXMuAf-CAvd4g6H.js → ReviewDetailsPage-BNpQBWoS-DCIttZXD.js} +14 -14
- package/dist/assets/{ReviewOverlay-D0tbkcpk-u3R_yBnI.js → ReviewOverlay-DDNAl3b3-DNGVMro9.js} +15 -15
- package/dist/assets/{RoleWithToolTip-w2s9tX9j-CThc8drW.js → RoleWithToolTip-B-ODIDAN-8uYeRtpZ.js} +2 -2
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-5uPqQbhv-c_seLLEr.js → ScheduleDetailsFixedAssetsPage-DqZ58bn4-KjYX5XLP.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-n2Mhm3VT-Qa9fyFQC.js → ScheduleDetailsPage-BASxSK8V-BPASbuj9.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-BbLZtq_G-B-PxnDpg.js → ScheduleSequenceTable-6xfi8GG9-DmNanpes.js} +50 -50
- package/dist/assets/{ScreenRoutes-1MbaXcJV.js → ScreenRoutes-BiNVsQKa.js} +35 -35
- package/dist/assets/{SetUpAccountSection-CuOJZCNp-D6aQorsQ.js → SetUpAccountSection-pi1sH7b5-Cq5TVamg.js} +11 -11
- package/dist/assets/{SetUpDefaultSection-D0d0yzu8-BDWGdtc-.js → SetUpDefaultSection-BpL2WnED-COlpwQhL.js} +16 -16
- package/dist/assets/{SignIn-CtZ8rTB_-wQdGuYtt.js → SignIn-Bijj9JoA-Cew9W98o.js} +12 -12
- package/dist/assets/{SignInScreen-BSTxrh_N.js → SignInScreen-BJO_D-wG.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-ymHs-MwL-BFF1eR3M.js → SpendManagementListViewPage-D5QPI34r-C-QrSt_z.js} +12 -12
- package/dist/assets/{SpendManagementPerTabPage-DwRwO5jR-DYEyp8w8.js → SpendManagementPerTabPage-BtYyuusT-Do7z39Lr.js} +44 -44
- package/dist/assets/{SpendManagementSection-B1F6rl-n-Bxu1kHsM.js → SpendManagementSection-D_HyfwAe-SNH64OwE.js} +10 -10
- package/dist/assets/{SpendMgmtSetupAccountSection-o-48qyw7-BwGu-MNC.js → SpendMgmtSetupAccountSection-B4wik5Ee-Dl8PxI-i.js} +14 -14
- package/dist/assets/{StatementItem-CK2sUgkE-C5tUfOGU.js → StatementItem-BNQblVLa-DfVA7ygW.js} +5 -5
- package/dist/assets/StatementsPage-_-cg9582-BHbhelbD.js +58 -0
- package/dist/assets/{StatusSwitcher-BppDI7-7-CaTqg34_.js → StatusSwitcher-D-0rNVEI-0aefdUDA.js} +2 -2
- package/dist/assets/{SubTabSwitcher-DTe2L8JC-D4RBO14j.js → SubTabSwitcher-D_djwADF-D-PRIZuk.js} +1 -1
- package/dist/assets/{SummaryCard-B-_3DnqQ-C4MQdd4u.js → SummaryCard-0WkhoBZC-D0OeJhk2.js} +1 -1
- package/dist/assets/{TaskManagementPage-NFVqhs6K-Bu_ZJ76r.js → TaskManagementPage-Dwna66e0-B61LD4aR.js} +29 -29
- package/dist/assets/{TimeRangeSwitcher-D5pSi1fB-XM_OXE-C.js → TimeRangeSwitcher-C_XduWs4-CbvmuLlw.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-CQ37qP58-CJPthL9i.js → TimeframeSwitcher-rcx5z-sh-BEuYgoAf.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DDX_BvPF-1t-6tvHL.js → TimeframeSwitcherWithToggle-Bvkq6Qa--BjOAxPwu.js} +1 -1
- package/dist/assets/{TopExCard-CU-kbyDP-BkqVk6Yr.js → TopExCard-J5ItU1Wy-Cu15poFM.js} +4 -4
- package/dist/assets/{TopExDetailPage-COxNovqU-TyxPPRK9.js → TopExDetailPage-Lqg8jkw2-DtS18JXg.js} +6 -6
- package/dist/assets/{TransactionDetailPage-k06RliU--jpVAAS-E.js → TransactionDetailPage-jXKnnUTd-B5jk24Y7.js} +33 -33
- package/dist/assets/{TransactionList-CuRdM1xm-CGrWmUwi.js → TransactionList-BVJHbP4d-Ch-jGNeO.js} +1 -1
- package/dist/assets/{TransactionListBig-ByLaQQUK-DVTWGGO_.js → TransactionListBig-CUi7KfHo-C4bVkVsF.js} +1 -1
- package/dist/assets/{TransactionListPage-ioT-Jexm-z12q095m.js → TransactionListPage-BFYQMXP7-C0S4ibvh.js} +3 -3
- package/dist/assets/{TransactionVendorDetailPage-Dyg9upjC-FtRQ9fft.js → TransactionVendorDetailPage-Cc45iBaC-CYlKau2p.js} +4 -4
- package/dist/assets/{TransferDrawerPage-B6zOVR7E-PtwoiwD5.js → TransferDrawerPage-D0eKdLeA-iajVz-hc.js} +6 -6
- package/dist/assets/{TreasuryOverviewPage-Cae5Kj1r-CipOXBTi.js → TreasuryOverviewPage-C-tdus29-TA5FDvFH.js} +21 -21
- package/dist/assets/{TreasuryPromoPage-iNiwYAiH-bWL0zXEM.js → TreasuryPromoPage-Cohb5lP7-CR5t6hp9.js} +13 -13
- package/dist/assets/{TreasurySetupPage-Bdl5g5Ct-DGTj2ns3.js → TreasurySetupPage-DS2_m-SO-C9dOpRDI.js} +6 -6
- package/dist/assets/{TreasuryStatementsPage-CLy-YBGI-_kq4Lb1i.js → TreasuryStatementsPage-DooqXGAQ-Nys4g6CT.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-lRsyHBLO-DlgswuUG.js → TreasuryTaxLetterPage-hpQxSwqV-C6md3T0o.js} +5 -5
- package/dist/assets/{TreasuryTransferOrReviewPage-Cbfh-a6j-DM2Y9vYh.js → TreasuryTransferOrReviewPage-LCmwI3GX-DIM186Ba.js} +18 -18
- package/dist/assets/{TrendChart-BXOatw0x-CophMwJ6.js → TrendChart-N85Ktah2-DbfJUW0C.js} +3 -3
- package/dist/assets/{TrendWithTransactions-BxoyLfjd-_bPvq9jR.js → TrendWithTransactions-Cm8gWBLF-D6KvkDCe.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-BA4o7PWu-CMrlTXMW.js → UncategorizedAccountsMappingPage-DF2hKM1m-81hpHrc8.js} +14 -14
- package/dist/assets/{UnitIntegrationPage-Clt-99RU-BrzMoE2E.js → UnitIntegrationPage-DXYXOU32-D4QmLDZr.js} +4 -4
- package/dist/assets/{UploadAdditionalDocumentOverlay-LxTjdCJQ-COub0S1H.js → UploadAdditionalDocumentOverlay-ed-RjMyM-CfzPGhhV.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DjHQdB-O-CGPHoNJv.js → Vendor2FAPopup-CNiCYT5L-CWO_4B0w.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-TaEzA3ib-BtSubgL_.js → VendorACHDetailsPage-DfERI3o4-BsWmPjPQ.js} +1 -1
- package/dist/assets/{VendorDetailPage-BeADTlAW-BEAFQ3r2.js → VendorDetailPage-BYEJTlBT-F41D5bVR.js} +11 -11
- package/dist/assets/{VendorDomesticWireDetailsPage-EpIw_vNR-C7RuY-PA.js → VendorDomesticWireDetailsPage-Cvje85xW-CoKfiQe4.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-B-jTzcx7-CbBKMdpG.js → VendorFiling1099EditablePage-Brjs_rAW-xrscdaKd.js} +11 -11
- package/dist/assets/{VendorFirstReviewPage-BrlyeQoC-BZiG_JRb.js → VendorFirstReviewPage-CjmWNXBj-gmr0s-A9.js} +45 -45
- package/dist/assets/{VendorInternationalWireDetailsPage-B22crnTD-tpyu7OIk.js → VendorInternationalWireDetailsPage-CRPZSizn-Cs0CkU1Q.js} +6 -6
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BpXZD_Eh-CX1DO0ul.js → VendorInternationalWireSwiftDetailsPage-DgOKhTmI-CrPwfH_9.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-CLrfBouK-CqWzAgHB.js → VendorsAccountsSection-CdrVkoqQ-DQSVBIpk.js} +2 -2
- package/dist/assets/{WarningsDrawerPage-CBZRy4Sm-DJIt8rHu.js → WarningsDrawerPage-vVdVeMGb-CxkitKe7.js} +5 -5
- package/dist/assets/{ZeniAccountDetailPage-Bfvuuiyl-Dadw6og4.js → ZeniAccountDetailPage-DzA2-ZfY-wtm1nTKn.js} +11 -11
- package/dist/assets/{ZeniAccountListViewPage-CTqmq_Vp-3SYD23NH.js → ZeniAccountListViewPage-BjOzn-pL-6JPmGfI4.js} +18 -18
- package/dist/assets/{ZeniAccountNavBarPieces-iNAQFffX-jEy_vHEe.js → ZeniAccountNavBarPieces-C4QCZKVg-D6pvbVi1.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-XHKL_dgv-zxVudUmY.js → ZeniAccountPromoPage-CojH6h6Y-CD2AJLZX.js} +6 -6
- package/dist/assets/{ZeniAccountSetupPage-BHMr828J-Cb9LGjcX.js → ZeniAccountSetupPage-BQ4BSW6F-BBPr3Uxy.js} +1 -1
- package/dist/assets/{ZeniCopyright-B_2DB9mm-Do8EbmHN.js → ZeniCopyright-DZ-h_Rou-a8ozaQ8I.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BnjyU6o3-D4fZwoL6.js → ZeniTransferAmountSlider-CDH-_8b0-DSbwC4eG.js} +1 -1
- package/dist/assets/{analyticsHelper-COZBEzRa.js → analyticsHelper-Bfbjyikr.js} +1 -1
- package/dist/assets/{analyticsHelper-Bh8Vo_J_-DdkQ2A3j.js → analyticsHelper-DqZXz5oK-BxmRVxaA.js} +1 -1
- package/dist/assets/{chartTypes-DpnOYtNo-C1MRDQOQ.js → chartTypes-BrP58mNO-B-70_tkk.js} +1 -1
- package/dist/assets/{commonDimensions-D2zuat_O-BjWWOnE2.js → commonDimensions-C9IpJAVN-CUmNJDhl.js} +1 -1
- package/dist/assets/{detailCommon-CloEmsTm-FeTpoyrx.js → detailCommon-nFSW0gvc-DlaVwlOn.js} +6 -6
- package/dist/assets/{downloadPdf-OWaFOL1J-_yuPyAAc.js → downloadPdf-CYD5QftD-D8rZSmdk.js} +1 -1
- package/dist/assets/{index-LFy5NlUr.js → index-CvH632ro.js} +2991 -3029
- package/dist/assets/{mapLoadingInProgressToTreeNode-Df6n7jwq-DhIXCvCe.js → mapLoadingInProgressToTreeNode-Dj9DvcOS-DbJ7Bl88.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BvlNBFiJ-CBY5TVGr.js → mapSectionWithAcOnlyToTreeNode-Bw9kw0FP-Cp0PGUTm.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-BM8XMc8I-DixdkzZo.js → mapSpacerToTreeNode-CJfnsOmt-Cn-_J65X.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B3bP14C6-CT5Uu0sF.js → mapTimeframeBalancesToTreeNode-BJdFcHRm-B1px_eKw.js} +1 -1
- package/dist/assets/{play-icon-NE4JTPpx-CK0WoxqT.js → play-icon-C1_v_oqQ-CDjV5GaD.js} +3 -3
- package/dist/assets/{toCOABalancesWithID-DN21aiLH-Bx86HqeI.js → toCOABalancesWithID-CYXJAMXX-B3cjnX0k.js} +1 -1
- package/dist/assets/{toChartData-CG9GudeA-Bcz5dDyw.js → toChartData-oAAd1YDY-DlgK3yY0.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CNX5IuXX-6ZEgxHO3.js → treasuryColorHelper-BClHzQle-D6h04w-g.js} +1 -1
- package/dist/assets/{uploadAttachment-D42oX05_-CRxK5DEq.js → uploadAttachment-Bi2HYlA8-BLU3BxOX.js} +23 -23
- package/dist/assets/{uploadReceipts-Buvz7DfG-DslgfUmv.js → uploadReceipts-Buvz7DfG-CBvWSxWy.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/BillsBulkReviewDrawerPage-Ck830aIk-BaNyoEgy.js +0 -1
- package/dist/assets/ChargeCardListPage-DzmHmoAp-BfBb-N8b.js +0 -355
- package/dist/assets/ChargeCardPromoPage-C2wn8FfE-Qh6s_V9A.js +0 -219
- package/dist/assets/CompleteProfile-D80JYwPP-BRDUY6r-.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-ChQOOhF_-C8keGYSw.js +0 -1
- package/dist/assets/Dashboard-B-fLAQ8T-DoAtb0kg.js +0 -1253
- package/dist/assets/DashboardReportPage--SAxmUu_-Dq18S8YZ.js +0 -349
- package/dist/assets/HelpButton-CWPUP9Y_-RpIu9G0D.js +0 -28
- package/dist/assets/InvitePeoplePage-DkRbCpN7-4Qef88o5.js +0 -12
- package/dist/assets/LabeledDocumentField-BG6Pu34Y-Dl5pM6Dq.js +0 -41
- package/dist/assets/NoDataChart-BHIoW_SW-DoqAVhyM.js +0 -26
- package/dist/assets/ReportTableViewSelector-DfZ5geuW-DyPrCXZD.js +0 -133
- package/dist/assets/ReportsPage-7E3Q5HHF-DXypTMXr.js +0 -120
- package/dist/assets/StatementsPage-D25LsJRp-EGUjR_Fx.js +0 -58
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,
|
|
1
|
+
import{j as t,fA as ne,o as i,bf as se,M as I,a9 as re,u as X,X as Y,a as le,c3 as ae,l as P,aW as ce,F as de,T as w,a7 as pe,C as z,f5 as me,fB as ue,eD as he,fC as fe,fD as ge,ak as xe,p as S,as as J,w as K,s as Q,m as $e}from"./index-CvH632ro.js";import{n as o,b as E}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:ye}=I.getLocalizedStrings(),B={notePadding:new z(S[3],S[4]),noteGap:new z(S[0],6)},M=(e,n)=>`${e}.${n}`,be=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
row-gap: ${i.sp3};
|
|
@@ -55,9 +55,9 @@ import{j as t,fy as ne,o as i,be as se,M as I,a5 as re,u as X,X as Y,a as le,c2
|
|
|
55
55
|
color: ${e=>e.theme.colors.primary};
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
58
|
+
`,D=o.div`
|
|
59
59
|
flex: 1;
|
|
60
|
-
`,
|
|
60
|
+
`,A=o(Q)`
|
|
61
61
|
color: ${e=>e.theme.colors.hero};
|
|
62
62
|
`,Ee=o(K)`
|
|
63
63
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -65,7 +65,7 @@ import{j as t,fy as ne,o as i,be as se,M as I,a5 as re,u as X,X as Y,a as le,c2
|
|
|
65
65
|
width: 120px;
|
|
66
66
|
text-align: center;
|
|
67
67
|
`,ke=o($e)`
|
|
68
|
-
padding: ${e=>`${i.sp1} ${
|
|
68
|
+
padding: ${e=>`${i.sp1} ${B.notePadding.valuePx(e.windowSize)}`};
|
|
69
69
|
background: ${e=>e.theme.colors.grey4};
|
|
70
70
|
border-radius: ${i.sp0} ${i.sp0} ${i.sp2} ${i.sp2};
|
|
71
71
|
text-align: left;
|
|
@@ -73,8 +73,8 @@ import{j as t,fy as ne,o as i,be as se,M as I,a5 as re,u as X,X as Y,a as le,c2
|
|
|
73
73
|
display: flex;
|
|
74
74
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
75
75
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
76
|
-
gap: ${e=>
|
|
77
|
-
`,Ce=o.div``,Pe=o.span``;function Oe({sectionId:e,monthEndInsightsNotificationLocalData:n,monthEndInsightsNotificationSettings:s,managersList:a,allUsers:f,classList:m,controllersList:x}){const u=X(),c=Y(),{sectionTitle:$,monthEndInsights:l,mode:y}=ye.settings.notifications,h=x[0],O=x.slice(1).reduce((d,r)=>d.concat(`${r.email},`),"");return t.jsxs(be,{children:[t.jsxs(je,{children:[t.jsx(we,{children:$.monthEndInsights}),t.jsx(Ce,{children:t.jsx(Ee,{children:y.email})})]}),t.jsxs(Se,{children:[t.jsxs(ve,{disabled:s.enabled==null,children:[t.jsx(
|
|
76
|
+
gap: ${e=>B.noteGap.valuePx(e.windowSize)};
|
|
77
|
+
`,Ce=o.div``,Pe=o.span``;function Oe({sectionId:e,monthEndInsightsNotificationLocalData:n,monthEndInsightsNotificationSettings:s,managersList:a,allUsers:f,classList:m,controllersList:x}){const u=X(),c=Y(),{sectionTitle:$,monthEndInsights:l,mode:y}=ye.settings.notifications,h=x[0],O=x.slice(1).reduce((d,r)=>d.concat(`${r.email},`),"");return t.jsxs(be,{children:[t.jsxs(je,{children:[t.jsx(we,{children:$.monthEndInsights}),t.jsx(Ce,{children:t.jsx(Ee,{children:y.email})})]}),t.jsxs(Se,{children:[t.jsxs(ve,{disabled:s.enabled==null,children:[t.jsx(A,{children:l.labels.notifyMe}),t.jsx(he,{defaultChecked:n.notify,checkBoxValue:M(e,"notify"),name:M(e,"notify"),checkedIconColor:s.enabled==null?u.colors.grey2:void 0})]}),t.jsx(w,{controller:s.enabled!=null,children:t.jsxs(Ie,{children:[t.jsx(D,{children:t.jsx(A,{children:l.labels.notifyOthers})}),t.jsx(D,{children:t.jsx(fe,{hideEmailTooltip:!1,showBackgroundColorIfHasAnySelectedOption:!1,shouldHaveBackgroundColor:!1,value:{allUsers:f,selectedUsers:f.filter(d=>n.recipientEmailIds.includes(d.email)),allNonUsers:[],selectedNonUsers:[]},hideMultiValueOnBlur:!1,valueToSubtitle:d=>{const r=a.findIndex(p=>p.userId===d),b=[];if(r!==-1){const p=a[r],j=ge(p.userRole.userRoles);j.length>0&&b.push(j);const N=m.find(L=>L.classId===p.userRole.accountingClassIDs[0]);return N!=null&&b.push(N.className),b}else return[]},name:M(e,"recipientEmailIds"),placeholderLabel:l.userFieldPlaceholder,customStyleConfig:{valueContainer:(d,{selectProps:r})=>({justifyContent:r.menuIsOpen===!1?"flex-end":"flex-start"}),input:(d,{selectProps:r})=>({display:r.menuIsOpen===!1?"none":"inline-grid"}),control:(d,{selectProps:r})=>({backgroundColor:r.menuIsOpen===!0?u.colors.background:"unset"}),container:(d,{selectProps:r})=>({backgroundColor:r.menuIsOpen===!0?u.colors.background:"unset"}),multiValue:(d,{selectProps:r})=>({outline:r.menuIsOpen===!1?"unset":`1px solid ${u.colors.primary}`})}})})]})}),t.jsx(w,{controller:s.enabled==null,children:t.jsxs(ke,{windowSize:c,children:[l.stopReceivingEmailsText,h?t.jsxs(Ne,{href:`mailto:${h.email}?cc=${O}&subject=${encodeURIComponent(l.stopReceivingMonthEndInsightsSubject)}`,children:[t.jsx(Pe,{children:`${h.firstName} ${h.lastName}`}),t.jsx(xe,{className:"arrowIcon"})]}):null]})})]})]})}const q=(e,n,s)=>`${e}.${n}.${s}`,Le=o.div`
|
|
78
78
|
display: flex;
|
|
79
79
|
flex-direction: column;
|
|
80
80
|
row-gap: ${i.sp3};
|
|
@@ -84,27 +84,27 @@ import{j as t,fy as ne,o as i,be as se,M as I,a5 as re,u as X,X as Y,a as le,c2
|
|
|
84
84
|
align-items: center;
|
|
85
85
|
`,Me=o(J)`
|
|
86
86
|
color: ${e=>e.theme.colors.primary};
|
|
87
|
-
`,
|
|
87
|
+
`,F=o.div`
|
|
88
88
|
display: flex;
|
|
89
89
|
`,V=o(K)`
|
|
90
90
|
color: ${e=>e.theme.colors.primary};
|
|
91
91
|
flex: 1;
|
|
92
92
|
width: 120px;
|
|
93
93
|
text-align: center;
|
|
94
|
-
`,
|
|
94
|
+
`,Te=o.div`
|
|
95
95
|
width: 120px;
|
|
96
96
|
display: flex;
|
|
97
|
-
`,
|
|
97
|
+
`,ze=o.div`
|
|
98
98
|
width: 120px;
|
|
99
99
|
display: flex;
|
|
100
100
|
padding-right: 12px;
|
|
101
|
-
`,
|
|
101
|
+
`,Ue=o(Q)`
|
|
102
102
|
color: ${e=>e.theme.colors.hero};
|
|
103
|
-
`,
|
|
103
|
+
`,Be=o.div`
|
|
104
104
|
border-radius: ${i.sp2};
|
|
105
105
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
106
106
|
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
107
|
-
`,
|
|
107
|
+
`,De=o.div`
|
|
108
108
|
display: flex;
|
|
109
109
|
justify-content: space-between;
|
|
110
110
|
align-items: center;
|
|
@@ -118,7 +118,7 @@ import{j as t,fy as ne,o as i,be as se,M as I,a5 as re,u as X,X as Y,a as le,c2
|
|
|
118
118
|
border-bottom-left-radius: ${e=>e.lastElement===!0?i.sp2:i.sp0};
|
|
119
119
|
border-bottom-right-radius: ${e=>e.lastElement===!0?i.sp2:i.sp0};
|
|
120
120
|
}
|
|
121
|
-
`;function
|
|
121
|
+
`;function Ae({sectionId:e,remindersLocalData:n,reminderNotificationSettings:s}){const{texts:a,settings:f}=I.getLocalizedStrings().common,{notifications:m}=f,x=P.NOTIFICATION_MODES.slice(0,1),u=P.REMINDER_NOTIFICATION_TYPES.filter(c=>s[c]!=null);return t.jsxs(Le,{children:[t.jsxs(Re,{children:[t.jsx(Me,{children:m.sectionTitle.reminders}),t.jsxs(F,{children:[t.jsx(V,{children:a.frequency}),t.jsx(V,{children:m.mode.email})]})]}),t.jsx(Be,{children:u.map((c,$)=>t.jsxs(De,{firstElement:$===0,lastElement:$===u.length-1,children:[t.jsx(Ue,{children:m.reminders[c]}),t.jsxs(F,{children:[t.jsx(ze,{children:t.jsx(me,{defaultValue:{allOptions:m.reminderFrequencyOptions,selectedOption:n[c].frequency},name:q(e,c,"frequency")})}),t.jsx(Te,{children:t.jsx(ue,{mode:"always_on",checkBoxes:x.map(l=>({label:"",value:l,defaultChecked:n[c].preferredMode.includes(l),groupLabel:!1})),name:q(e,c,"preferredMode"),style:{flexDirection:"row"},checkBoxContainerStyle:{justifyContent:"center"}})})]})]},c))})]})}const T={contentPadding:new z(S[3],S[8])},g="reminders",v="monthEndInsights",_="notificationSettingsPage",G=e=>`${e}_form`,{settings:Z,reloadPage:qe}=I.getLocalizedStrings().common,Fe=e=>{const n=X(),s=Y(),{notificationSettingsView:a,signedInUser:f,onFormDataChange:m,resetUpdateStatus:x,onSave:u,onCancel:c,onClickMenuIcon:$}=e,{notificationSettingsLocalData:l,allUsers:y,notificationSettings:h,classList:O,managersList:d,updateStatus:r,controllersList:b}=a,p=le({defaultValues:W(l,y)}),j=E.useCallback(R=>{m(Xe(R))},[m]),N=p.handleSubmit(()=>{u()}),L=E.useCallback(()=>{p.reset(),c()},[c]);E.useEffect(()=>{a.updateStatus.fetchState==="Completed"&&(p.reset(W(l,y)),x())},[l,a.updateStatus.fetchState,y]),E.useEffect(()=>{const R=p.watch((U,{name:oe})=>{oe!=null&&U!=null&&ae(()=>j(U))});return()=>{R.unsubscribe()}},[p,j]);const ee=Object.keys(p.formState.dirtyFields).length>0,te=f.userEmail!=null?P.isMonthEndNotificationsSectionVisibleOnSettingsPage(h.monthEndInsightsNotificationSettings,f.userEmail):!1,ie=P.isRemindersSectionVisibleOnSettingsPage(h.reminderNotificationSettings);return t.jsxs(t.Fragment,{children:[t.jsxs(Ve,{children:[t.jsx(ce,{source:"NotificationSettingsPage",title:Z.title.notifications,backgroundColor:n.colors.grey4,showBackButton:!1,showMenuIcon:s==="medium-compact"||s==="small",onClickMenuIcon:$}),t.jsx(_e,{windowSize:s,children:t.jsx(de,{...p,children:t.jsx("form",{id:G(_),onSubmit:N,children:t.jsxs(Ge,{children:[t.jsx(w,{controller:ie,children:t.jsx(Ae,{reminderNotificationSettings:h.reminderNotificationSettings,remindersLocalData:l.reminders,sectionId:g})}),t.jsx(w,{controller:te,children:t.jsx(Oe,{monthEndInsightsNotificationLocalData:l.monthEndInsights,monthEndInsightsNotificationSettings:h.monthEndInsightsNotificationSettings,sectionId:v,allUsers:y,classList:O,managersList:d,controllersList:b})})]})})})})]}),t.jsx(w,{controller:ee,children:t.jsx(pe,{style:{width:"100%"},formId:G(_),primaryBtn:{label:I.getLocalizedStrings().common.footer.save,isLoading:r.fetchState==="In-Progress",style:{width:"82px"}},cancelBtn:{label:I.getLocalizedStrings().common.footer.cancel,onClick:L,style:{width:"82px"}}})})]})};function nt(e){const{notificationSettingsView:n,onRefresh:s}=e,{fetchState:a}=n;return a==="Not-Started"||a==="In-Progress"?t.jsx(H,{children:t.jsx(ne,{fetchState:a,styles:{margin:i.sp0}})}):a==="Error"?t.jsxs(H,{children:[t.jsx(He,{onClick:s,children:t.jsx(se,{})}),t.jsx(We,{children:qe.label})]}):t.jsx(Fe,{...e})}const Ve=o.div`
|
|
122
122
|
display: flex;
|
|
123
123
|
width: 100%;
|
|
124
124
|
min-height: 100vh;
|
|
@@ -135,9 +135,9 @@ import{j as t,fy as ne,o as i,be as se,M as I,a5 as re,u as X,X as Y,a as le,c2
|
|
|
135
135
|
row-gap: ${i.sp3};
|
|
136
136
|
background-color: ${e=>e.theme.colors.grey4};
|
|
137
137
|
`,_e=o.div`
|
|
138
|
-
padding-left: ${e=>
|
|
139
|
-
padding-right: ${e=>
|
|
140
|
-
padding-bottom: ${e=>
|
|
138
|
+
padding-left: ${e=>T.contentPadding.valuePx(e.windowSize)};
|
|
139
|
+
padding-right: ${e=>T.contentPadding.valuePx(e.windowSize)};
|
|
140
|
+
padding-bottom: ${e=>T.contentPadding.valuePx(e.windowSize)};
|
|
141
141
|
`,Ge=o.div`
|
|
142
142
|
display: flex;
|
|
143
143
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as t,p as e}from"./index-
|
|
1
|
+
import{v as t,p as e}from"./index-CvH632ro.js";const r=e[5],o=59,i=e[5],l=t.standardRegular.lineHeightValue,n=1,p=1e3;export{l as A,i as E,n as I,p as L,o as a,r as t};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{u as K,X as v,a as Zt,M as P,
|
|
1
|
+
import{u as K,X as v,a as Zt,M as P,c3 as Xt,j as t,aW as Kt,l as g,F as Qt,a7 as ei,o as i,T as we,go as ti,C as R,hw as ii,v as Ne,e as oi,A as et,bL as tt,ao as it,dj as ot,bT as st,jf as at,p as w,K as si,jg as ai,dh as ce,aj as ri,Q as ni,h as rt,g as S,w as li,bg as z,cg as ue,fB as he,jh as pe,y as nt,d3 as lt,dr as V,c_ as dt,fK as di,s as Q,hL as ci,m as H,e_ as ui,ab as ye,av as fe,ji as hi,bd as ct,jj as Ie,aP as pi}from"./index-CvH632ro.js";import{b as x,n as r,j as O}from"./vendor-CnQcJ2Lu.js";import{k as fi}from"./SubTabSwitcher-D_djwADF-D-PRIZuk.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-DZBF9h2L-DipP-kuo.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.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=K(),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;
|
|
@@ -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;
|
|
@@ -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(Xi,{}):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:
|
|
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(Xi,{}):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;
|
|
@@ -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=K(),{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",X="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=K(),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:
|
|
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",X="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=K(),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===X)&&(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&&Xt(()=>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(X),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]:$,[X]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const $={};Object.keys(be).forEach(C=>{$[C]=[]}),L.reset({[X]:$,[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(Kt,{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:Ke(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:X,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>d({scrollYOffset:{...j[y].uiState.scrollYOffset,[M]:$}},y),onNotificationClick:l})})})}),j[y].selectedNotificationIdsForSubTab.length?t.jsx(ei,{formId:Ke(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(Xe,{selectedNotificationsCount:j[y].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(we,{controller:T==="small",children:t.jsx(Xe,{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"}})},Xe=({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;
|
package/dist/assets/{OpExByVendorPage-CYAYFvCM-CDkrX969.js → OpExByVendorPage-BNNQdeqy-v4NH_AXr.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as
|
|
1
|
+
import{X as H,hv as ye,M as B,u as q,A as be,j as t,Y as _e,bf as Se,hu as ke,aY as we,aW as ve,hw as Be,hx as $e,o as u,a9 as Oe,e as Pe,C as F,ao as le,H as ie,ab as je,p as $,a_ as Te,bE as De,bF as Ne,bG as Ee,g as a,s as ce,bc as Ae,b7 as Ie,aB as Me,v as Z,aA as Le,aJ as Fe,b8 as Ve,ba as ze,l as Re}from"./index-CvH632ro.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-BrP58mNO-B-70_tkk.js";import{V as Ge}from"./toChartData-oAAd1YDY-DlgK3yY0.js";import{m as V}from"./analyticsHelper-DqZXz5oK-BxmRVxaA.js";import{p as He}from"./TimeRangeSwitcher-C_XduWs4-CbvmuLlw.js";import{M as qe}from"./TimeframeSwitcherWithToggle-Bvkq6Qa--BjOAxPwu.js";import{C as Je}from"./NoDataChart-DMqFH96W--xyVCmNv.js";import{d as Ue}from"./NoDataTable-B8PHBrBF-BIIbtUFT.js";import{H as Xe,N as oe}from"./detailCommon-nFSW0gvc-DlaVwlOn.js";import{n as z}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{a as Qe,r as J}from"./CollapsableReportTable-B7JqlhCA-D-71vAGn.js";import{d as pe,l as re}from"./mapLoadingInProgressToTreeNode-Dj9DvcOS-DbJ7Bl88.js";import{l as Ze}from"./mapSpacerToTreeNode-CJfnsOmt-Cn-_J65X.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-rcx5z-sh-BEuYgoAf.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";import"./AccountRow-B4i2KTVu-DZIGknQG.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(Ae,{width:_,height:C,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:h?$[5]:30,margin:{top:5,right:c,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(Ie,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:n.colors.grey3}),t.jsx(Me,{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??J("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=J("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??J("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($[3],$[3],$[8]),contentPaddingLeft:new F($[0],$[0],$[0]),contentPaddingRight:new F($[3],$[3],$[8])},ko=m.div`
|
|
29
29
|
display: flex;
|
|
30
30
|
flex: 1 1 auto;
|
|
31
31
|
min-height: 100%;
|
|
@@ -87,14 +87,14 @@ 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
|
|
|
87
87
|
`,Eo=m.div`
|
|
88
88
|
margin-top: ${u.sp5};
|
|
89
89
|
margin-bottom: ${u.sp6};
|
|
90
|
-
`,
|
|
90
|
+
`,Ao=m.div`
|
|
91
91
|
display: flex;
|
|
92
92
|
position: sticky;
|
|
93
93
|
justify-content: center;
|
|
94
94
|
padding-top: ${u.sp8};
|
|
95
95
|
padding-left: ${e=>E.wrapperPadding.valuePx(e.windowSize)};
|
|
96
96
|
background-color: ${e=>e.theme.colors.grey4};
|
|
97
|
-
`,
|
|
97
|
+
`,Io=m.div`
|
|
98
98
|
width: 100%;
|
|
99
99
|
height: calc(100vh - ${u.sp11});
|
|
100
|
-
`,
|
|
100
|
+
`,Mo=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?t.jsx(vo,{children:t.jsx(Pe,{size:"ExtraLarge",start:!0})}):null,hr=({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:O,onClickMenuIcon:R})=>{const[j,A]=y.useState(o.searchString[o.timeframe]),[I,M]=y.useState(!1),k=H(),T=y.useRef(null),W=ye(r),he=W.length>1,me=B.getLocalizedStrings().reports.common,U=B.getLocalizedStrings().vendors,X=q(),ge=["month","quarter"],ue=e.availableNumberOfPeriods!=null&&e.availableNumberOfPeriods<2,L=o.mode==="compare_mode"&&!ue,K=e.allTimeframeTicks.length===0,{timeframe:P}=o,D=o.searchString[P],fe=y.useCallback(w=>{n(P,D,w)},[P,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,P),C(!0),n(P,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[P],...s}),O?.trackDownload(z("operating_expenses_by_vendor"),V(o.timeframe),"excel",L),S("Completed")}I&&o.downloadState!=="In-Progress"&&(M(!1),S("In-Progress"),w())},[e,o,L,s,o.downloadState,I]),y.useEffect(()=>{A(D)},[D]),e.fetchState==="Error")return t.jsxs(Bo,{children:[t.jsx($o,{"data-testid":_e("op-ex-by-vendor-reload-page"),onClick:i,children:t.jsx(Se,{})}),t.jsx(Oo,{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(Mo,{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:U.common.searchPlaceholder,searchText:j??"",onSearchTextChanged:x=>{A(x),x.trim().length>=2?Q(x,P):x.trim().length==0&&Q("",P)},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 M(!0)}}}})]});return t.jsxs(ko,{windowSize:k,children:[t.jsx(ve,{title:U.common.navBarTitle,subTitle:e.lastRefreshSuccessTime!=null?e.lastRefreshSuccessTime.utc(!0).fromNow():"",backgroundColor:X.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 ${X.colors.grey3}`},onTabChange:x=>l($e(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:O}),Y!=null?t.jsx(Eo,{children:t.jsx(Xe,{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:O})]})}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(Po,{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(Je,{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),O=H(),R=q(),j=!(O==="small"||O==="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 A=k=>k<e.opexBalances.length,I=()=>{r.pageToken[r.timeframe]!=null&&e.fetchState==="Completed"&&(g(),p(!0))},M=e.opexBalances.length;return t.jsx(Ao,{windowSize:O,ref:s,children:o?t.jsx(Ue,{}):d!=null?t.jsx(Io,{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(O),right:E.contentPaddingRight.value(O)},nodeOpenStatus:{},scrollPosition:r.scrollPosition,onCompareModeChanged:_,onScroll:i,infiniteLoadingProps:{isItemLoaded:A,itemCount:M,loadMoreItems:I}})}):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{hr 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-CvH632ro.js";import{n}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.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,10 +1,10 @@
|
|
|
1
|
-
import{j as o,D as M,u as T,X as
|
|
1
|
+
import{j as o,D as M,u as T,X as z,Y as A,aW as re,M as c,K as ie,e as ae,C as D,v as ce,o as s,H as le,ab as de,c0 as ge,c1 as pe,aS as me,p as C,l as H,a_ as he,c2 as ue,a9 as fe,aa as xe,av as we}from"./index-CvH632ro.js";import{n as r,b as F}from"./vendor-CnQcJ2Lu.js";import{H as Se}from"./NavBarWithPicker-BJyEgvZP-C-f0-1c6.js";import{m as je}from"./analyticsHelper-DqZXz5oK-BxmRVxaA.js";import{M as $e}from"./TimeframeSwitcherWithToggle-Bvkq6Qa--BjOAxPwu.js";import{a as be,W as Ce}from"./CollapsableReportTable-B7JqlhCA-D-71vAGn.js";import{M as E}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import{T as Pe,I as ke,L as ye}from"./mapSectionWithAcOnlyToTreeNode-Bw9kw0FP-Cp0PGUTm.js";import{s as G}from"./mapTimeframeBalancesToTreeNode-BJdFcHRm-B1px_eKw.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-rcx5z-sh-BEuYgoAf.js";import"./AccountRow-B4i2KTVu-DZIGknQG.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",ve=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
-
`,
|
|
7
|
+
`,ze=r.div`
|
|
8
8
|
padding: ${e=>e.windowSize==="small"?`${s.sp0} ${s.sp3}`:`${s.sp0} ${s.sp8}`};
|
|
9
9
|
text-align: center;
|
|
10
10
|
`,Le=r(pe)`
|
|
@@ -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=
|
|
73
|
+
`,Ae=()=>{const e=T(),t=z();return o.jsxs(X,{windowSize:t,children:[o.jsx(J,{windowSize:t,children:o.jsx(Q,{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(Z,{windowSize:t,children:[o.jsxs(P,{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(P,{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(P,{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=z();return o.jsxs(X,{windowSize:t,children:[o.jsxs(Z,{windowSize:t,children:[o.jsxs(P,{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(P,{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(P,{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(J,{windowSize:t,children:o.jsx(Q,{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=z(),d=()=>{window.open(e.toString(),"_blank")};return o.jsxs(ve,{"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(ze,{"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=G({balances:d,config:t}),p=[];return p.push(m),e.idsInOrder.forEach(i=>{if(H.isPandLReportViewSectionID(i)===!0){const f=e.sections[i];if(f==null)return;f.accountGroups.length>0?p.push(Pe({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 H.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=G({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(C[3],C[3],C[8]),contentPaddingRight:new D(C[3],C[3],C[8])},Be=r.div`
|
|
74
74
|
display: flex;
|
|
75
75
|
flex: 1 1 auto;
|
|
76
76
|
min-height: 100%;
|
|
@@ -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(Ve,{children:o.jsx(ae,{size:"ExtraLarge",start:!0})}):null,Re=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=
|
|
107
|
+
`,De=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:a,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:m,onBackClick:p,isPandLReportFetching:i,onClickMenuIcon:f})=>{const h=z(),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 v=e[parseInt(g)];n?.(v.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(Re,{paddingLeft:L.contentPaddingLeft.value(h),paddingRight:L.contentPaddingRight.value(h),children:[o.jsx(Se,{...x}),i?"":o.jsx(We,{children:o.jsx($e,{...$})})]})},He=({report:e,type:t,isActualVsForecastOn:n,compareMode:a,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:m,onTableScroll:p,nodeOpenStatus:i,onNodeCollapseToggled:f})=>{const h=T(),u=z(),[x,$]=F.useState(void 0),[g,v]=F.useState(void 0),b=!(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:Ce(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,b);v(e),$(w)}else{const w=_e(x,S,e,b);$(w)}},[t,n,e]),x!=null?o.jsx(be,{backgroundColor:new de(h.colors.grey4),rootNodes:x,type:t,compareMode:a,isSticky:{isStickyHeader:b,isStickyName:b},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:v,nodeOpenStatus:b,onNodeCollapseToggled:I,onBackClick:S,onClickMenuIcon:w}){const V=[a.fetchState,d.fetchState],R=l?.index??-1;return ne(V)===!0||a.fetchState==="Completed"&&a.forecasts.length===0?o.jsx(Ne,{meetingUrl:p,onBackClick:S,onClickMenuIcon:w}):Y([a.fetchState])===!0?o.jsx(U,{fetchState:Ye(V)}):o.jsxs(Be,{children:[o.jsx(De,{forecastList:a.forecasts,selectedForecastIndex:R,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[R].name,j),u?.(j)},selectedTimeframe:e,onTimeframeChanged:j=>{i?.trackTimeframeSwitch(je(j),M.Event.profitAndLossWithForecast),h?.(j)},onBackClick:S,isPandLReportFetching:Y([d.fetchState]),onClickMenuIcon:w}),d.fetchState==="In-Progress"?o.jsx(U,{fetchState:"In-Progress"}):o.jsx(Ee,{children:o.jsx(He,{report:d,type:m,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:$,scrollPosition:g,onTableScroll:v,nodeOpenStatus:b,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),Y=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),Ye=e=>Ue(e)===!0?"Completed":ne(e)===!0?"Error":"In-Progress";export{po as default,Y as isAnyInProgress};
|