@zeniai/web-cockpit-ui 1.14.7-qa → 1.14.8-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-CYMIIaPh-CazcteT9.js → ACHDetailsPage-HYH4LhGK-DEBeThZX.js} +3 -3
- package/dist/assets/{AIPerformancePage-DpQIi2ZW-BfbtTbJc.js → AIPerformancePage-BnHyhoNh-lxWX9fyZ.js} +35 -35
- package/dist/assets/{AccountInfoPage-Sh-82JXU-CK-JAG50.js → AccountInfoPage-ehy9LEs3-DQuaJuQC.js} +5 -5
- package/dist/assets/{AccountInfoPageContent-CsHvwqHd-Bi3KcCU6.js → AccountInfoPageContent-BpNoLQEh-DUUWW7P_.js} +13 -13
- package/dist/assets/{AccountReconDetailsDrawerPage-DlKlKwh2-COmsGMX5.js → AccountReconDetailsDrawerPage-KuO_6NjT-BhkhqQIK.js} +16 -16
- package/dist/assets/{AccountRow-CtIoeB6x-DB6L8OFQ.js → AccountRow-CKtmIbKO-BzBAql1b.js} +17 -17
- package/dist/assets/{AccountsPromoCardStack-XGoMEJWB-ewH7aqGC.js → AccountsPromoCardStack-BKVvUpdv-BiLayNkQ.js} +15 -15
- package/dist/assets/{AddAddressForCardDrawer-C6Sfh784-v8gPAmnp.js → AddAddressForCardDrawer-BebYNJoP-DW01HmxA.js} +2 -2
- package/dist/assets/{AddToWalletPage-CzD2AhWP-Y1lzrcrr.js → AddToWalletPage-BQfPsknz-CM3di5Tf.js} +13 -13
- package/dist/assets/{AgingReportsPage-D9YcQ7A--CgFqdHda.js → AgingReportsPage-DkCyQw18-D1u9Upzc.js} +7 -7
- package/dist/assets/{AllUserItems-BtS-YtE0-BnRz1B7J.js → AllUserItems-D-FQ96gE-DS0pdT0L.js} +7 -7
- package/dist/assets/{ApAgingDetailPage-BTJqRp9j-CFbtvXnt.js → ApAgingDetailPage-EI4Kx_Xo-DJ1F7n27.js} +4 -4
- package/dist/assets/{AppBasePage-B5fgkJHL-BjE5NFxw.js → AppBasePage-D4QmiB4N-Cv0_LA55.js} +4 -4
- package/dist/assets/{AppDrawerContent-C1lzepXw-DLsvksBd.js → AppDrawerContent-BF8Abz2Y-C4CgYwFq.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-Bqt15rR_-6tCXuJPM.js → ApprovalRulesSettingsPage-tsucbdIk-BvetjtCF.js} +7 -7
- package/dist/assets/{ArAgingChart-BGVvhkR5-CMJLQ0Bz.js → ArAgingChart-CIZs2s3O-DsHvPG7Q.js} +6 -6
- package/dist/assets/{ArAgingDetailPage-Ddp7z3e8-3p3-vb0v.js → ArAgingDetailPage-cC50pBdB-DAxa4kv_.js} +2 -2
- package/dist/assets/{AttachmentView-pcpYs-s8-Bb1hmV9r.js → AttachmentView-Bpla0aBf-CEmozm2v.js} +5 -5
- package/dist/assets/{BankAccountSection-CmXQQBck-5U9GbvUg.js → BankAccountSection-DhDiqg0D-C1fQqXil.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-Dp7qMaI2-DUYDyhSL.js → BankAccountWarningSection-_BSb8rEd-lAbGdxcF.js} +5 -5
- package/dist/assets/{BankConnectionsSettingsPage-ldzD1a4O-Cm0no8yC.js → BankConnectionsSettingsPage-ovzOgVIi-D87I9OOK.js} +38 -38
- package/dist/assets/{BillDetailPage-CBubcYMe-BwBKzNWZ.js → BillDetailPage-C6NJGbua-D_fc-7GH.js} +11 -11
- package/dist/assets/{BillPayApprovalRuleDetailPage-BxiRr1tP-jMPlVte-.js → BillPayApprovalRuleDetailPage-DK34f2_B-CSwpjVbx.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CLBGuxUe-BeVtWdv4.js → BillPayApprovalRulesPage-uT7vadIp-DX4vmU2u.js} +8 -8
- package/dist/assets/{BillPayPromoPage-C3takK8D-D35v8jhQ.js → BillPayPromoPage-DyvWrXiT-3xQsLUHe.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CweOkcc2-Bmcq6In9.js → BillPaySetUpPage-DQUGXwzL-Dnj5yaWm.js} +2 -2
- package/dist/assets/{BillingSettingsPage-BQSZ6DMP-BpIPoFvc.js → BillingSettingsPage-zTBJHq7Y-BV6Ca01p.js} +7 -7
- package/dist/assets/{BillsBulkReviewDrawerPage-3trPH78u-CknT1dvx.js → BillsBulkReviewDrawerPage-qYfFPFRf-BHVDK8xO.js} +1 -1
- package/dist/assets/{BoxItem-Bf7JemSM-DA-EqZ9I.js → BoxItem-CTPuYGrU-DYtDSgqa.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DXODyk9C-BNgCRU8b.js → BusinessVerificationPage-BFJpNsiW-DInJr7ZP.js} +8 -8
- package/dist/assets/{CardNumberSubText-ByVXSDZX-DEHzKLxG.js → CardNumberSubText-LPyLf3pY-CxLdtzot.js} +1 -1
- package/dist/assets/{CashbackDetailPage-9RLOXq5b-Dkm3ES1i.js → CashbackDetailPage-ByJDF7cH-jwINHAlE.js} +23 -23
- package/dist/assets/{ChargeCardDetailPage-lkNsxEdO-BUneoo-E.js → ChargeCardDetailPage-DjbwN3eA-BLSeog5S.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DV25pQMP-BOo6rIHo.js → ChargeCardListPage-BcFdegbn-DKuu9f6F.js} +1 -1
- package/dist/assets/{ChargeCardListTable-CSWl05jK-DuONjB5U.js → ChargeCardListTable-BIOmPiWw-D8SfaL8P.js} +25 -25
- package/dist/assets/ChargeCardPromoPage-D7WfGZCc-DqWg0bDn.js +219 -0
- package/dist/assets/{ChargeCardSetupPage-7mEdImT--CnvgcvBB.js → ChargeCardSetupPage-DCjJd2bu-DLt9KXzY.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-D_rKdZ5c-CEA_Rx_h.js → ChargeCardStatementsPage-YZLslSfM-DTP8_5Q0.js} +3 -3
- package/dist/assets/{ChargeCardUtils-BB7l65Bf-CPLK84z2.js → ChargeCardUtils-Bj-TvntU-Dg5OHLzk.js} +1 -1
- package/dist/assets/{ChaseOverlay-hsrWeA5X-Dcp3XMSx.js → ChaseOverlay-D5CGgOY9-B_78AAMx.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-CZNH4rCm-DdTXudjo.js → CheckDepositDrawerPage-CGicBOjt-D-PwWbfO.js} +19 -19
- package/dist/assets/{CollapsableReportTable-C73RBmaZ-D428uVrP.js → CollapsableReportTable-UQFDb8XE-4tPDRPlF.js} +46 -46
- package/dist/assets/{CompanyOfficerDetailsSection-CZWTSWyp-J81A-yw0.js → CompanyOfficerDetailsSection-CHSL02sQ-B9TP8k6M.js} +34 -34
- package/dist/assets/{CompanyPassportCard-D-hYeDRN-CHleBT8E.js → CompanyPassportCard-Byoyj6z--BlTpOAaU.js} +3 -3
- package/dist/assets/{CompanyPassportPage-fQ60DR7u-CalJr939.js → CompanyPassportPage-CJzVGPMf-CO-upSIX.js} +12 -12
- package/dist/assets/CompleteProfile-CGaFSQZ5-D40jt5XK.js +36 -0
- package/dist/assets/{ConfettiBurst-D5XTvsuG-DqvhMlLN.js → ConfettiBurst-C6in2R-G-B86Veyix.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-7KdDJirx-Cy50oCjG.js → CreateOrEditVendorPage-HV8sXBZp-MEsDNOD9.js} +10 -10
- package/dist/assets/{CreditCardPaymentDrawerPage-BNJLUnlH-HMrOhsYY.js → CreditCardPaymentDrawerPage-CcN3B0mF-C-aA8CxZ.js} +15 -15
- package/dist/assets/{CreditCardPaymentPlgSection-BwqznNRc-Bkwvl_Pm.js → CreditCardPaymentPlgSection-dBWHuBiS-md7FwEbI.js} +10 -10
- package/dist/assets/{CurrencySelectField-PwurThUn-CCLMhDMc.js → CurrencySelectField-DLqb-9fp-mhS9VcnO.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-CHJLyOyf-B-wAfl7n.js → CustomerOnboardingActivationPage-Bf64O2cX-OUwG2YXT.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-ILwY2ADL-DIj_DN1o.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BqdhqyL7-8QZEAu-d.js → CustomerOnboardingDetailPageSkeleton-DbbrMwW5-CFydRVir.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-DDio10hZ-BfoQu7jO.js → CustomerOnboardingNoStepsPage-DZGpH4MZ-T0P42e-W.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-k2OYvIqe-BCb17bIF.js → CustomerOnboardingPage-BfJlxXNX-CUa70VM1.js} +9 -9
- package/dist/assets/CustomerOnboardingProductSuitePage-BJIVmVlG-CgGO5C2r.js +202 -0
- package/dist/assets/{Dashboard-DhMPjLVy-BLMPexXk.js → Dashboard-fGyiceKA-BzN0eOpe.js} +1 -1
- package/dist/assets/{DashboardReportPage-C9YvD_24-CoC796XJ.js → DashboardReportPage-DL5dB1SI-DEQ-kpwn.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BYFOUvho-CLqmAE-P.js → DepositAccTransactionItem-Dyfob6gX-CX7faNLY.js} +4 -4
- package/dist/assets/{DepositAccTransactionListPage-DeN4-lBP-BcaZtaYF.js → DepositAccTransactionListPage-DrEbXdWa-BNgdFMXM.js} +7 -7
- package/dist/assets/{DocumentSecurityBanner-6cQ2cW7e-B-LiYCwn.js → DocumentSecurityBanner-rDtPu8vH-D4_h4X4u.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BmMEth4c-0ZA88eE1.js → DomesticWireDetailsPage-BVmsi9ei-CUemBchq.js} +1 -1
- package/dist/assets/{DownloadOverlay-D0_pmb7k-485JyjTo.js → DownloadOverlay-Dk9PoZlP-D3imuRfO.js} +6 -6
- package/dist/assets/{DrawerPage-C5u676VK-CQ6YNm3J.js → DrawerPage-BSa6DJZr-D9NnCvxY.js} +1 -1
- package/dist/assets/EditPeoplePage-Ci4ys6zZ-CrrNlTmS.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-BxjNoyj8-BPCBUC8w.js → EditReimbursementDetailPage-DemIPGJ5-B9757Dmu.js} +43 -43
- package/dist/assets/{EntityDetailPage-BfscGvkI-CDpC3UiC.js → EntityDetailPage-C_luSjQJ-Cu-KPSDu.js} +3 -3
- package/dist/assets/{EntitySummarySection-BCkLY2Py-BvmspxF4.js → EntitySummarySection-BjoUr41l-NV66C_A4.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-C4SCxViu-BTF6U5vA.js → ExpenseAutomationOverviewPage-DwRzHbCN-D7MDDzPf.js} +18 -18
- package/dist/assets/{ExpenseAutomationPage-DF1-Q4X5-DpQfueM1.js → ExpenseAutomationPage-CxTfHxhm-BvLBK1eA.js} +33 -33
- package/dist/assets/{ExpressPayPage-Cdtx03yB-CFuea7SC.js → ExpressPayPage-B9teVxc8-CO2jiwXu.js} +10 -10
- package/dist/assets/{FeaturePreviewPage-nQYT4moR-Cr3GrNZL.js → FeaturePreviewPage-LAldEIqF-C8tcud8u.js} +2 -2
- package/dist/assets/{FollowStepsSection-CRBm3eL9-BxrxyxZb.js → FollowStepsSection-ICp_6TcX-Do7FY4O7.js} +8 -8
- package/dist/assets/{GlobalReviewListPage-3iXmpaXt-DvNMoVjg.js → GlobalReviewListPage-CaSIQgOY-CLXlBnhP.js} +1 -1
- package/dist/assets/{HelpButton-Cv7-d_qL-CUvPOpAv.js → HelpButton-C-GTHvg5-DHe5_hb9.js} +1 -1
- package/dist/assets/{InformationCardStack-JCre21xs-DtS-Hddp.js → InformationCardStack-B3zlnZE6-BXUPOzl0.js} +3 -3
- package/dist/assets/{InsightsCardStack-Dekfw94R-BLPjyaig.js → InsightsCardStack-Czo2phfa-CVjFCXX9.js} +8 -8
- package/dist/assets/{InsightsSection-CLqfyvOO-xadJoIF2.js → InsightsSection-BF65nVDk-Ck5eCytH.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-o9w1-WIT-_9mLCWjO.js → IntegrationsSettingsPage-CfOJp2rR-DnJqSbGe.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-DBG1ni7g-5byzUSyT.js → InternationalWireSwiftDetailsPage-BPckWTQy-C_9kzKUy.js} +18 -18
- package/dist/assets/{InternationalWireVerificationPage-BLU4F--p-CJDTcopv.js → InternationalWireVerificationPage-IyDI0e1n-DHyr06eY.js} +19 -19
- package/dist/assets/{InviteFormPage-Bf8Mqb7S-DDTavBxx.js → InviteFormPage-GPQ5eSD8-CiDxRX8h.js} +13 -13
- package/dist/assets/{InvitePageListView-6oeT1vaB-CKIuu3RS.js → InvitePageListView-BD4bJtvG-B0K74gtE.js} +52 -52
- package/dist/assets/InvitePeoplePage-DhGjKKsO-D5tOqF8-.js +12 -0
- package/dist/assets/{InvoiceUploadSection-BiIfE0Mk-CTWHQOhW.js → InvoiceUploadSection-DzOByrtE-BE32q3YT.js} +7 -7
- package/dist/assets/{IssueChargeCardPage-Dd312Qu7-DJeAloNR.js → IssueChargeCardPage-U5Z_OXsd-CLDaQ415.js} +20 -20
- package/dist/assets/{LabeledAddressValue-BplX--OG-CiZ_SQgG.js → LabeledAddressValue-DaabTZGG-CWQotmwk.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DkhJs5ky-B6R8wPlw.js → LabeledAddressValueField-B2TfgAjp-BsfDNIIE.js} +4 -4
- package/dist/assets/{LabeledControlledCheckBoxField-SJfjkDzA-CpIAw81s.js → LabeledControlledCheckBoxField-Cb9kJIyY-DlHFWICr.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CPwrvNjy-D3f7Nu-c.js → LabeledCreatableSingleSelectField-BtboN2bE-DF3GueZh.js} +3 -3
- package/dist/assets/LabeledDocumentField-BKVHT_ih-cMXijjYr.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-D70GX0HR-Mxvvq1WO.js → LabeledDropDownFormattedTextField-CLUZVQCI-BVMu_guX.js} +7 -7
- package/dist/assets/{LabeledText-mTAE2dvH-BXZp1Sm_.js → LabeledText-DXlb_cAu-B1j2xF1t.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dx8TfHuB-DrtQGMZC.js → LabeledUserSingleSelectWithSubtitlesField-CqC0Fbjb-DTDFjdt3.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-ZGHinaTy-Bb9QLK3C.js → LabeledZeniRolesDropDownField-Dbyg4yxA-W4VJHBJD.js} +12 -12
- package/dist/assets/{LinkJETransactionPage-CNYQO-AQ-CY88gwq7.js → LinkJETransactionPage-D8sX4v-7-CsOS0tUv.js} +8 -8
- package/dist/assets/{LowBalancePopup-hdwaJezh-f3ksDR4g.js → LowBalancePopup-fUydozi0-DD4cdD_C.js} +5 -5
- package/dist/assets/{MagicLinkACHDetailsPage--DRHcaKz-WEt4M3n2.js → MagicLinkACHDetailsPage-BiZxVBT2-o-Rk17-1.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B5hbI4dU-BBmovkJC.js → MagicLinkDomesticWireDetailsPage-BO-mlqRp-Clxahb02.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BdwVZCRt-5G01_OeQ.js → MagicLinkInternationalWireDetailsPage-BSwmG-gt-CwiZ0Ksn.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DOUrPdD--DcZ_t2NE.js → MagicLinkSuccessPage-BA_B_aML-C9hrpm-L.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-Bb27jU2a-DoQ8aWp1.js → MagicLinkTitleSection-hjUfjUKg-BSNiuVs0.js} +3 -3
- package/dist/assets/{MailingDetailsSection-CdKFQB_8-DW3BDO52.js → MailingDetailsSection-zYhyH_Di-D4yENJST.js} +2 -2
- package/dist/assets/{MeetingCalenderPopup-B3sIZU3d-DQNFWJ_9.js → MeetingCalenderPopup-BbCahdTF-CVjb8WtP.js} +3 -3
- package/dist/assets/{Menu-Bsk58l8k-DveIoh_v.js → Menu-gdxz6nzv-BWb1NISh.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-P1Zh6SFD-hnAROTqH.js → MyBankConnectionsSettingsPage-B-kZp6kY-DGgRFgSz.js} +12 -12
- package/dist/assets/{MyPendingActivationChargeCardListPage-Cs7rVAdh-Cmwa__iw.js → MyPendingActivationChargeCardListPage-Cux0Zc6M-C_85HTeN.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-Cc4XfbBQ-CNw8hQXw.js → MyProfileSettingsPage-DlPCGOud-CJbICNU7.js} +6 -6
- package/dist/assets/{NavBarWithPicker-DFD5LZ4o-DVbNG2lJ.js → NavBarWithPicker-DgFXO4Py-B8a2N5H7.js} +3 -3
- package/dist/assets/{NavigationArrow-mL8dVddD-CWP10rmD.js → NavigationArrow-DfB1s0Kl-dP_dOcYr.js} +5 -5
- package/dist/assets/{NavigationDots-MPqPjbnr-B2VuEWoT.js → NavigationDots-B12u1DHV-wGjE6ymi.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-QTvziNPs-CWfcgxwK.js → NewGlobalMerchantPage-C4ljSG4I-CpKXjRxq.js} +6 -6
- package/dist/assets/{NoDataChart-C1BY1riw-DEwvHChk.js → NoDataChart-C86cs81n-BI6hUCyS.js} +1 -1
- package/dist/assets/{NoDataTable-C_4AqyDp-8AvQpHPa.js → NoDataTable-BsEI7aoI-uEd_WfDe.js} +1 -1
- package/dist/assets/{NotFoundPage-U8Zqpzgy-B6U5r_7M.js → NotFoundPage-CQVgfvr8-DylBkQRK.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-2A4Pahmq-CXgVjNli.js → NotificationSettingsPage-CamY-jUK-CVgplVyL.js} +13 -13
- package/dist/assets/NotificationsListConfig-Cj32T7Hz-BOzef_mv.js +1 -0
- package/dist/assets/{NotificationsPage-B6yKJmGI-DzN6ib9t.js → NotificationsPage-Cq5siAeE-7OwFZiNL.js} +36 -36
- package/dist/assets/{OpExByVendorPage-BnTlBXeu-CipcFkdu.js → OpExByVendorPage-D08wBmkx-kSlP6mnA.js} +4 -4
- package/dist/assets/{OverlayContainerPage-BxBOhoib-ukQtuWFC.js → OverlayContainerPage-GWXnlbZH-CEl9U8x8.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CKW73tr8-D7h3LcYD.js → PandLWithForecastPage-DD43rPhW-A1TZHqgl.js} +5 -5
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CSEVISAI-BNavlD0y.js → PaymentAccountSetupBillingAddressSection-C7GoqHot-DAesV6Ej.js} +6 -6
- package/dist/assets/{PeoplePage-BJxZJT-l-C9LL-QhI.js → PeoplePage-BwWeuQq0-CESGkAiN.js} +16 -16
- package/dist/assets/{PortfolioAllocationFormPage-C4pRhyet-BgcVpkPb.js → PortfolioAllocationFormPage-QLO1aksn-C4Nd_3VN.js} +1 -1
- package/dist/assets/{PortfolioDetails-4fbkArz6-B-yRSXBm.js → PortfolioDetails-EbWPeH4e-BydNByff.js} +7 -7
- package/dist/assets/{ProductsCarousel-gGbLzHle-BiV0Dada.js → ProductsCarousel-VTApOnqN-CMfc9ylB.js} +1 -1
- package/dist/assets/{PromoBaseCards-DUlZEg5E-xcZglFHs.js → PromoBaseCards-B0BCeySU-wfb5DzjJ.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-C_Z2lvUz-BwsPJmHe.js → QBOConnectionDialog-CKOkxTzr-DKeUf173.js} +6 -6
- package/dist/assets/{QBOSetupSection-DqWiwHwl-CaRIoZTT.js → QBOSetupSection-DycavdKb-CT5F0n4h.js} +11 -11
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-JWdrVgqW-C_wUAOQY.js → ReimbursementApprovalRuleDetailPage-PHWY-z0e-FKRZB_Ja.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BnBNwFzM-DjomTgZF.js → ReimbursementApprovalRulesPage-B6po7mmX-BMDEIvFm.js} +33 -33
- package/dist/assets/{ReimbursementDetailPage-Dyjb0qZE-Bb3CYqzm.js → ReimbursementDetailPage-Dt6DhlL1-CYLKdFSl.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-D1EqiXEa-FvZLWCiR.js → ReimbursementPromoPage-DjcsW1Av-Dq9BuWdd.js} +3 -3
- package/dist/assets/{ReimbursementSetUpPage-ClJ_4WMp-BJpe0ne4.js → ReimbursementSetUpPage-DQpxCs8Z-BKnPNPnJ.js} +5 -5
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B-uGRv6i-CHahWJGS.js → ReimbursementsBulkReviewDrawerPage-4foPx3A--CPio49Pu.js} +1 -1
- package/dist/assets/{ReloadCard-DVYCtjFP-CU_Dnd08.js → ReloadCard-CaPpBGJK-BQahT5RP.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BTu2hum1-CPyUV-1u.js → ReportTableViewSelector-D-blv3pI-NEqAb2d0.js} +7 -7
- package/dist/assets/{ReportsPage-BJEqtDDR-DrtRVAGN.js → ReportsPage-BZj7Tec8-ByPzZ3Mi.js} +5 -5
- package/dist/assets/{RevenueChart-BFS-A4qa-Cx-As_Eb.js → RevenueChart-CwhdG15z-Ossw9Srn.js} +13 -13
- package/dist/assets/{ReviewDetailsPage-C6qSCmDQ-DWlHT8F5.js → ReviewDetailsPage-CuO3d_n4-DDpHJibb.js} +13 -13
- package/dist/assets/{ReviewOverlay-DItEmr7f-AS3xzQ96.js → ReviewOverlay-DdM4zwoh-BrpeA22_.js} +1 -1
- package/dist/assets/{RoleWithToolTip-CqtMdboJ-DDxj3xxP.js → RoleWithToolTip-BNc9Cjys-BflhBmMa.js} +6 -6
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CKcDbns8-fF7PO25g.js → ScheduleDetailsFixedAssetsPage-DgwGten3-CzNnfEIV.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CYqYYvix-BNlu0RJ8.js → ScheduleDetailsPage-C4UMK1HB-2qYXZBGt.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-DUYFGZvc-9HL4QDrz.js → ScheduleSequenceTable-n_lV13zp-DSggYkAR.js} +18 -18
- package/dist/assets/{ScreenRoutes-BI6xyHHN.js → ScreenRoutes-Cu_ZW3C2.js} +35 -35
- package/dist/assets/{SetUpAccountSection-DfuZHlL6-D7lVamWi.js → SetUpAccountSection-CGBdEw5o-BsHNDPBm.js} +21 -21
- package/dist/assets/{SetUpDefaultSection-Jl4dtzx3-C3-EmpC_.js → SetUpDefaultSection-5H7JgUVZ-3gB6LAnP.js} +10 -10
- package/dist/assets/{SignIn-OTT_6lLp-BofEbUzx.js → SignIn-DpOLibjy-B1O6Z7z5.js} +4 -4
- package/dist/assets/{SignInScreen-CCNlCZPG.js → SignInScreen-CqoaPSYP.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BkL-3WNh-CmJxty83.js → SpendManagementListViewPage-C0IA6cdd-BUq3yiJp.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Buppd61y-Z26soCL-.js → SpendManagementPerTabPage-B727RQUp-BpiIJwHE.js} +14 -14
- package/dist/assets/{SpendManagementSection-BGcBRKGN-r3ndTuv4.js → SpendManagementSection-B8xyYfKM-Xch0MBI4.js} +10 -10
- package/dist/assets/{SpendMgmtSetupAccountSection-Cswh297O-ClH8d_8B.js → SpendMgmtSetupAccountSection-BHH-PFxf-BEhEOBT5.js} +13 -13
- package/dist/assets/{StatementItem-C3tUNT5A-CIQABbZw.js → StatementItem-CTOdgetS-ud-kOkz9.js} +4 -4
- package/dist/assets/{StatementsPage-DGryRE6z-DYX2UB10.js → StatementsPage-d9G6kH-f-DgcEkZX-.js} +3 -3
- package/dist/assets/{StatusSwitcher-BgWlxay9-C2yA7CjA.js → StatusSwitcher-BA7VjpgX-AJZc15_H.js} +2 -2
- package/dist/assets/{SubTabSwitcher-DwwAqq_R-C-rVBP68.js → SubTabSwitcher-DDJSCY6V-DongKB4y.js} +1 -1
- package/dist/assets/{SummaryCard-Dm0Tx9is-BOl3yzj-.js → SummaryCard-bczJjOLG-CjdZn_iI.js} +1 -1
- package/dist/assets/{TaskManagementPage-59XAl_cs-DdQCzzW7.js → TaskManagementPage-C99UjrT4-CmD3QiB_.js} +31 -31
- package/dist/assets/{TimeRangeSwitcher-D7-Jph-G-DrzBgOKv.js → TimeRangeSwitcher-DgpRdFEz-UpNf9Pio.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-CWYQWFLF-B2eT3g6m.js → TimeframeSwitcher-D7Ebofq5-DCuWRjmL.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-QOhQ3sac-DRu8hhQ-.js → TimeframeSwitcherWithToggle-BxG4mfwZ-hDOmM0BL.js} +1 -1
- package/dist/assets/{TopExCard-CTlizsDD-CbVG0KKn.js → TopExCard-Bl1HEvJK-DYu_Snz8.js} +5 -5
- package/dist/assets/{TopExDetailPage-Df3JbgcF-DygJJzQr.js → TopExDetailPage-RVGSdHNI-B2tvvcdJ.js} +2 -2
- package/dist/assets/{TransactionDetailPage-DvNpTjAp-nivJ-WE2.js → TransactionDetailPage-2pU2-JVz-DvzDNfcu.js} +30 -30
- package/dist/assets/{TransactionList-SkSPfIsE-3VqEpEta.js → TransactionList-DnERXw-A-C5LRJytL.js} +8 -8
- package/dist/assets/{TransactionListBig-CZCV_kmJ-CU-ZTueA.js → TransactionListBig-vCTvXh5y-DLaLiFSC.js} +9 -9
- package/dist/assets/{TransactionListPage-CBbyagWp-CABnQ2Ad.js → TransactionListPage-DVtqlCMZ-B-nHFVQj.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BXnlFdHR-Cg-sleYC.js → TransactionVendorDetailPage-0FE-k35E-D5OPfVkl.js} +3 -3
- package/dist/assets/{TransferDrawerPage-CxXLyKwW-CcrxmwoP.js → TransferDrawerPage-C17-lHVH-DqBTA_eG.js} +29 -29
- package/dist/assets/{TreasuryOverviewPage-3JlXZfCV-BaVWxrMw.js → TreasuryOverviewPage-DSRk9Ojd-8t6OoxPf.js} +16 -16
- package/dist/assets/{TreasuryPromoPage-BhAicq7r-BXFjeSvE.js → TreasuryPromoPage-C-8SuUVF-CFc9jz_k.js} +15 -15
- package/dist/assets/{TreasurySetupPage-BQG_Wd5U-CuRZifkf.js → TreasurySetupPage-CBN3MDev-DhwdW1pF.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-dCAtvvZk-LOpMx3mv.js → TreasuryStatementsPage-CYcFki_F-BBDbwRs0.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-irA0Cgkj-CK8dgrod.js → TreasuryTaxLetterPage-D_yfrqyw-DbMRXPvP.js} +5 -5
- package/dist/assets/{TreasuryTransferOrReviewPage-Dd1oLBma-BdudBXha.js → TreasuryTransferOrReviewPage-fm-w_JUE-C98U-Z9e.js} +36 -36
- package/dist/assets/{TrendChart-Ctquh3qH-BXdwoNzy.js → TrendChart-C6zZmjPl-pFeewMTm.js} +2 -2
- package/dist/assets/{TrendWithTransactions-CoXTnQK7-DI1VEsOz.js → TrendWithTransactions-DYpTdT3--CpsGst0w.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-Cq49D6V9-DdxXW0nh.js → UncategorizedAccountsMappingPage-BP5b7SLK-CwqyQ37l.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-CR0nZ7NM-CNMCC02w.js → UnitIntegrationPage-CEdW3T2--Dubmotz7.js} +4 -4
- package/dist/assets/{UploadAdditionalDocumentOverlay-B_DFEIlC-CURAudK_.js → UploadAdditionalDocumentOverlay-DEJxFgaz-UhYjFUhJ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-KsRgKz_Z-LsR0JToL.js → Vendor2FAPopup-DKQXhPGa-C-1Y3b9X.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-MRaehbhm-CLgE5xYR.js → VendorACHDetailsPage-CYVg93tk-NwYypD-G.js} +1 -1
- package/dist/assets/{VendorDetailPage-Cji21PBc-BCtJStdp.js → VendorDetailPage-CQptl370-FNWm9uTn.js} +18 -18
- package/dist/assets/{VendorDomesticWireDetailsPage-DhUIW9g--COJKg8zJ.js → VendorDomesticWireDetailsPage-VAGgBKEt-CNg4m5oN.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BWFbXLhQ-BxUi0-__.js → VendorFiling1099EditablePage-DT3_7-pU-BiogUCwK.js} +11 -11
- package/dist/assets/{VendorFirstReviewPage-tvh5pcvQ-THD3l6eB.js → VendorFirstReviewPage-CTu8QLSu-C9pea9HN.js} +26 -26
- package/dist/assets/{VendorInternationalWireDetailsPage-CfmZSb8O-DIxfvNFa.js → VendorInternationalWireDetailsPage-DETN5xQf-u-FhFEQH.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-V_1s9mWi-CfIMbPtN.js → VendorInternationalWireSwiftDetailsPage-CoFSDse_-CMz5sXIT.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-b9s5nqGq-C603vDJM.js → VendorsAccountsSection-B0atBQRf-DwN1P5ST.js} +6 -6
- package/dist/assets/{WarningsDrawerPage-CB4mJGTB-BdjqZZPI.js → WarningsDrawerPage-C8sUYwZn-ChnBWAPn.js} +9 -9
- package/dist/assets/{ZeniAccountDetailPage-CgSyyen1-CshTBZp2.js → ZeniAccountDetailPage-D8uZ-seh-BOZmI_Dm.js} +33 -33
- package/dist/assets/{ZeniAccountListViewPage-DjGZpdh_-ZERnQ4MU.js → ZeniAccountListViewPage-BuwG7e20-B-7yXRaY.js} +14 -14
- package/dist/assets/{ZeniAccountNavBarPieces-BJC4d2Iu-DYh40FyS.js → ZeniAccountNavBarPieces-uukfD44t-C94Q1ycz.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-D3Yt6FIj-GRZWrpyM.js → ZeniAccountPromoPage-3t3vzAGh-DdQrchgw.js} +9 -9
- package/dist/assets/{ZeniAccountSetupPage-BeCPekI4-B43tT3eQ.js → ZeniAccountSetupPage-BVzvcRnV-c8DsQZjx.js} +3 -3
- package/dist/assets/{ZeniCopyright-Dhdl9kqY-Ef9QRXwR.js → ZeniCopyright-DcAcIGRB-BE_hgGDM.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-B8VFb2l--DxgbNpeK.js → ZeniTransferAmountSlider-RA4Pva57-B-TGxP0B.js} +1 -1
- package/dist/assets/{analyticsHelper-CWmZNwFh.js → analyticsHelper-Cbfklysr.js} +1 -1
- package/dist/assets/{analyticsHelper-Cawv3PXO-W_w6SVVv.js → analyticsHelper-D2Tw-gFs-CfilQYvq.js} +1 -1
- package/dist/assets/{chartTypes-5p7NWUHx-CaLqh1mY.js → chartTypes-DX9eCHdW-B7oDG2yB.js} +1 -1
- package/dist/assets/{commonDimensions-CQlLUBWG-DzlL6K89.js → commonDimensions-C417LkG3-Cr4GHwJ7.js} +1 -1
- package/dist/assets/{detailCommon-CoAmJ6pY-B7nmx1bS.js → detailCommon-DMILWpBc--U3Fq460.js} +4 -4
- package/dist/assets/{downloadPdf-CCJjnfCZ-DhZmGI0x.js → downloadPdf-TtzJSlkj-CYWEy00G.js} +1 -1
- package/dist/assets/{index-BQuxwdpl.js → index-rGMXK0Rc.js} +2579 -2597
- package/dist/assets/{mapLoadingInProgressToTreeNode-CwyU1xs5-BVaHor8r.js → mapLoadingInProgressToTreeNode-BuX84Fl8-C9VszrPq.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-IKJYFM7_-BhnDf8Ml.js → mapSectionWithAcOnlyToTreeNode-CuqkYL_a-D2dufnQP.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-D5XTLzM7-BSt0rKdl.js → mapSpacerToTreeNode-CkoeX_hU-B3Tt6fDl.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CJMbtmIl-5p_Ma1rs.js → mapTimeframeBalancesToTreeNode-CbddU0ga-B0ctGM7F.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-SX6fBp6e-CrAiUa7Z.js → mapTimeframeBalancesToTreeNode-Dz-UvEDI-BLldSj9r.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ts5lOZtX-EAxYFN8c.js → mapTimeframeHeaderLoadingInProgressToTreeNode-C_cGYrFN-DbJ2zuiX.js} +1 -1
- package/dist/assets/{play-icon-oQKnPjZi-ikYsAriO.js → play-icon-DvnIcVvi-BFAe9r1Z.js} +3 -3
- package/dist/assets/{toCOABalancesWithID-DwvFse7w-BpGyVZma.js → toCOABalancesWithID-CEYLTlMK-DfcDAp6p.js} +1 -1
- package/dist/assets/{toChartData-BBvMC_VQ-C0NFogQd.js → toChartData-DgmHnq7q-B0J27uo6.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CUDK9KvQ-D8RX0DsH.js → treasuryColorHelper-D6-KrZju-CjJ44MCH.js} +1 -1
- package/dist/assets/{uploadAttachment-P4S_2L_v-CGkHKEhM.js → uploadAttachment-B6HsV49B-Cn4CVOXc.js} +13 -13
- package/dist/assets/{uploadReceipts-DhDnr0ap-B_HL-sz_.js → uploadReceipts-D80JLNY4-DmW4IrLG.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ChargeCardPromoPage-Cv34m9BS-CZNZStg6.js +0 -219
- package/dist/assets/CompleteProfile-DnBzaAdT-DtIxbZgo.js +0 -52
- package/dist/assets/CustomerOnboardingContainerPage-DyM4sCZd-2ugo5OTL.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-CxB32dUM-Do1nrT8y.js +0 -202
- package/dist/assets/EditPeoplePage-DAM71X8m-B2UZEnLj.js +0 -55
- package/dist/assets/InvitePeoplePage-CLvVDRca-D907h_Dw.js +0 -12
- package/dist/assets/LabeledDocumentField-DLd6UnEn-o-XnUJ1D.js +0 -41
- package/dist/assets/NotificationsListConfig-BIw5ASx2-Bj3yoWmL.js +0 -1
- package/dist/assets/VerifyDevice-CJgD3UmO-DfWOJP1r.js +0 -67
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{u as
|
|
1
|
+
import{u as X,X as v,a as Zt,M as P,c3 as Kt,j as t,aV as Xt,l as g,F as Qt,a3 as ei,o as i,T as we,gm as ti,C as R,hu as ii,p as Ne,c as oi,z as et,bL as tt,ai as it,di as ot,bT as st,jd as at,m as w,K as si,je as ai,dg as ce,ad as ri,Q as ni,h as rt,g as S,v as li,bf as z,cg as ue,fz as he,jf as pe,w as nt,d2 as lt,dq as V,cZ as dt,fI as di,s as Q,hI as ci,e as H,eY as ui,a7 as ye,ao as fe,jg as hi,bc as ct,jh as Ie,aP as pi}from"./index-rGMXK0Rc.js";import{b as x,n as r,j as O}from"./vendor-CnQcJ2Lu.js";import{k as fi}from"./SubTabSwitcher-DDJSCY6V-DongKB4y.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-Cj32T7Hz-BOzef_mv.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";function mi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:u}){const h=v(),f=X(),m=x.useCallback(b=>{d(b.id)},[d]),p=x.useCallback(b=>{u(b.id)},[u]);return e.length===0?null:t.jsxs(gi,{windowSize:h,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${f.colors.grey3}`},onTabChange:m}),t.jsx(fi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:p})]})}const gi=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
5
|
-
`,{common:{timeStrings:bt,strings:xi},dateFormat:Te,timeFormat:bi}=P.getLocalizedStrings(),wt=["today","yesterday","last_7_days_this_month","earlier_this_month","earlier_that_month"],ne=e=>e.type.concat(xi.underscore).concat(e.start.format(Te.visual.DdashMMdashYYYYFormat)),me=e=>{switch(e.type){case"today":case"yesterday":case"earlier_this_month":case"last_7_days_this_month":return bt[e.type];case"earlier_that_month":return e.start.format(Te.visual.MMMYYYYFormat)}},yt=e=>{const o=g.zeniDate(e.toUTCString()),s=g.dateNow(),a=s.diff(o,"minutes"),n=s.diff(o,"seconds"),l=60,c=24*60;return n<=l?bt.justNow:a<c&&hi(o,0)?o.format(bi.hhmmAFormat):o.format(Te.visual.MMMDFormat)},Re=e=>{switch(e.code){case"todo":return S.important;case"in_progress":return S.info;case"on_hold":return S.alert;case"done":return S.championLight;case"resolved":return S.successDark;default:return S.neutralGrey2Light}},{commentsAndNotifications:{notifications:{actionStrings:{comments:wi}}}}=P.getLocalizedStrings(),$t=e=>{e.sort((n,l)=>g.zeniDate(n.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))===!0?1:-1);let o=[...e];const s=[];let a={singleGroup:[],remainingData:[]};for(const n of wt){let l=0,c=0,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),h=1;switch(n){case"today":case"yesterday":l=n==="today"?0:1,c=n==="today"?0:1,d=g.dateNow().subtract(Math.min(g.dateNow().date(),l),"d").startOf("d"),u=g.dateNow().subtract(Math.min(g.dateNow().date(),c),"d").endOf("d"),a=ie(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup});break;case"last_7_days_this_month":o.length>0&&g.dateNow().date()>2&&(d=g.dateNow().subtract(Math.min(g.dateNow().date()-1,8),"d").startOf("d"),u=g.dateNow().subtract(2,"d").endOf("d"),a=ie(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_this_month":o.length>0&&g.dateNow().date()>9&&(d=g.dateNow().startOf("M").startOf("d"),u=g.dateNow().subtract(9,"d").endOf("d"),a=ie(o,d,u),o=a.remainingData,s.push({start:d,end:u,type:n,notifications:a.singleGroup}));break;case"earlier_that_month":for(;o.length>0;){const f=g.dateNow().subtract(h,"month").startOf("M").startOf("d"),m=g.dateNow().subtract(h,"month").endOf("M").endOf("d");h++,a=ie(o,f,m),o=a.remainingData,s.push({start:f,end:m,type:n,notifications:a.singleGroup})}break}}return s},ie=(e,o,s)=>{const a=[],n=e.map(l=>at(o,s,g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()))?(a.push(l),null):l).filter(l=>!!l);return a.sort((l,c)=>g.zeniDate(l.inboxNotification.notifiedAt.toUTCString()).isAfter(g.zeniDate(c.inboxNotification.notifiedAt.toUTCString()))===!0?-1:1),{singleGroup:a,remainingData:n}},yi=e=>{const{thread:o}=e,{newRepliesAdded:s,newCommentAdded:a}=wi;return o.comments.length===1?a:s},jt=new R(3,2,1,1,1),kt=new R(w[8],w[6],35,35,w[6]),le={lineClamp:jt,sectionWidth:kt},{common:{texts:ze,timeStrings:$i,strings:ee},commentsAndNotifications:{notifications:{strings:{newMessage:ji},actionStrings:{comments:{newCommentAdded:ki}}}}}=P.getLocalizedStrings(),Si=({notificationData:e,users:o,isHighlighted:s=!1,style:a,onNotificationTileClick:n})=>{const l=nt(),c=lt().analytics,{inboxNotification:{id:d,readAt:u,notifiedAt:h},thread:f}=e,{setRequestToOpenThread:m}=x.useContext(di),p=u!=null?"read":"unread",{metadata:{url:b,companyId:k,entityType:B},id:G}=f;return t.jsxs(Ri,{readStatus:p,isClickable:!!b,isHighlighted:s,style:a,onClick:()=>{b&&(n(d,g.toZeniUrl(b),p),(f.metadata.tab==="bill"||f.metadata.tab==="reimbursement")&&m({threadId:G,companyId:k,entityType:B})),f.metadata.application!=="cockpit"&&c.trackCommentActivity("notification","clicked",f.metadata.companyName,l.controllersList.controllers.map(T=>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(
|
|
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;
|
|
@@ -33,7 +33,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
33
33
|
border-bottom-right-radius: inherit;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
${e=>e.isHighlighted?
|
|
36
|
+
${e=>e.isHighlighted?O`
|
|
37
37
|
z-index: 1;
|
|
38
38
|
color: ${e.theme.colors.primary};
|
|
39
39
|
border: 1px solid ${e.theme.colors.primary};
|
|
@@ -43,7 +43,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
43
43
|
}
|
|
44
44
|
`:null};
|
|
45
45
|
|
|
46
|
-
${e=>e.isClickable?
|
|
46
|
+
${e=>e.isClickable?O`
|
|
47
47
|
&:hover {
|
|
48
48
|
z-index: 1;
|
|
49
49
|
color: ${e.theme.colors.primary};
|
|
@@ -61,14 +61,14 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
61
61
|
align-items: center;
|
|
62
62
|
flex-shrink: 0;
|
|
63
63
|
justify-content: end;
|
|
64
|
-
`,_i=r(
|
|
64
|
+
`,_i=r(Q)`
|
|
65
65
|
color: inherit;
|
|
66
66
|
display: -webkit-box;
|
|
67
67
|
overflow: hidden;
|
|
68
68
|
-webkit-line-clamp: ${e=>le.lineClamp.value(e.windowSize)};
|
|
69
69
|
-webkit-box-orient: vertical;
|
|
70
70
|
width: ${e=>le.sectionWidth.valuePercentage(e.windowSize)};
|
|
71
|
-
`,Di=r.strong``,Mi=r.code``,
|
|
71
|
+
`,Di=r.strong``,Mi=r.code``,Ai=r.em``,Oi=r.s``,Pi=r.span``,Bi=r.a``,Fi=r(Q)`
|
|
72
72
|
color: inherit;
|
|
73
73
|
display: -webkit-box;
|
|
74
74
|
overflow: hidden;
|
|
@@ -158,12 +158,12 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
158
158
|
align-items: baseline;
|
|
159
159
|
flex-direction: row;
|
|
160
160
|
justify-content: end;
|
|
161
|
-
`,qi=()=>v()==="small"?t.jsx(Hi,{}):t.jsx(Ei,{}),Zi={marginLeft:new R(w[2],w[5],w[7])},Ki=()=>t.jsxs(
|
|
161
|
+
`,qi=()=>v()==="small"?t.jsx(Hi,{}):t.jsx(Ei,{}),Zi={marginLeft:new R(w[2],w[5],w[7])},Ki=()=>t.jsxs(Xi,{children:[t.jsx(Se,{numberOfRows:5}),t.jsx(Se,{numberOfRows:3})]}),Se=({numberOfRows:e})=>{const o=v();return t.jsxs(Qi,{windowSize:o,children:[t.jsx(to,{children:t.jsx(z,{width:w[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(eo,{children:[...Array(e)].map(s=>t.jsx(qi,{},ce()))})]})},Xi=r.div`
|
|
162
162
|
display: block;
|
|
163
163
|
min-height: 100%;
|
|
164
164
|
flex-direction: column;
|
|
165
165
|
width: 100%;
|
|
166
|
-
`,
|
|
166
|
+
`,Qi=r.div`
|
|
167
167
|
display: flex;
|
|
168
168
|
flex-direction: column;
|
|
169
169
|
margin-bottom: ${i.sp5};
|
|
@@ -207,7 +207,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
207
207
|
border-bottom-right-radius: inherit;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
${e=>e.isHighlighted?
|
|
210
|
+
${e=>e.isHighlighted?O`
|
|
211
211
|
z-index: 1;
|
|
212
212
|
color: ${e.theme.colors.primary};
|
|
213
213
|
border: 1px solid ${e.theme.colors.primary};
|
|
@@ -217,7 +217,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
217
217
|
}
|
|
218
218
|
`:null};
|
|
219
219
|
|
|
220
|
-
${e=>e.isClickable?
|
|
220
|
+
${e=>e.isClickable?O`
|
|
221
221
|
&:hover {
|
|
222
222
|
z-index: 1;
|
|
223
223
|
color: ${e.theme.colors.primary};
|
|
@@ -239,12 +239,12 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
239
239
|
display: flex;
|
|
240
240
|
flex-direction: column;
|
|
241
241
|
gap: ${i.sp2};
|
|
242
|
-
`,Nt=r(
|
|
242
|
+
`,Nt=r(Q)`
|
|
243
243
|
color: inherit;
|
|
244
244
|
display: -webkit-box;
|
|
245
245
|
overflow: hidden;
|
|
246
246
|
-webkit-box-orient: vertical;
|
|
247
|
-
`,Tt=e=>v()==="small"?t.jsx(io,{...e}):t.jsx(Si,{...e}),{common:{all:De}}=P.getLocalizedStrings(),co=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=
|
|
247
|
+
`,Tt=e=>v()==="small"?t.jsx(io,{...e}):t.jsx(Si,{...e}),{common:{all:De}}=P.getLocalizedStrings(),co=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=X(),{getValues:u}=ue(),h=u(s);return t.jsx(uo,{style:n,children:t.jsx(he,{mode:a,checkBoxes:[{label:t.jsx(ho,{htmlFor:`${s}.${De.toLocaleLowerCase()}`,style:{color:d.colors.primary},children:me(e)}),value:De.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((f,m)=>{const p=m===0,b=e.notifications.length-1===m;return{label:t.jsx(Tt,{notificationData:f,users:o,style:{borderTopLeftRadius:p?i.sp2:void 0,borderTopRightRadius:p?i.sp2:void 0,borderBottomLeftRadius:b?i.sp2:void 0,borderBottomRightRadius:b?i.sp2:void 0},isHighlighted:h?.includes(f.inboxNotification.id)===!0,onNotificationTileClick:c}),value:f.inboxNotification.id,defaultChecked:!1,groupLabel:!1}})],name:s,isDisabled:l,style:{width:"100%"},checkBoxStyle:{padding:i.sp3},labelCheckBoxStyle:{padding:i.sp3}})})},uo=r.div`
|
|
248
248
|
display: flex;
|
|
249
249
|
align-items: center;
|
|
250
250
|
width: 100%;
|
|
@@ -253,16 +253,16 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
253
253
|
align-items: flex-start;
|
|
254
254
|
width: 100%;
|
|
255
255
|
padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp0};
|
|
256
|
-
`,{common:{all:Me}}=P.getLocalizedStrings(),po=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=
|
|
256
|
+
`,{common:{all:Me}}=P.getLocalizedStrings(),po=({notificationGroup:e,users:o,sectionId:s,checkBoxMode:a,style:n,isDisabled:l,onNotificationTileClick:c})=>{const d=X(),{getValues:u}=ue(),h=u(s),f=x.useRef([]);return x.useEffect(()=>{f.current=f.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(fo,{style:n,children:t.jsx(he,{mode:a,checkBoxes:[{label:t.jsx(Ae,{htmlFor:`${s}.${Me.toLocaleLowerCase()}`,style:{color:d.colors.primary,marginLeft:i.sp2},children:me(e)}),value:Me.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((m,p)=>{const b=p===0,k=e.notifications.length-1===p;return{label:t.jsx(Ae,{ref:B=>f.current[p]=B,htmlFor:`${s}.${m.inboxNotification.id}`,style:{padding:i.sp0},children:t.jsx(mo,{notificationData:m,users:o,style:{borderTopLeftRadius:b?i.sp2:void 0,borderTopRightRadius:b?i.sp2:void 0,borderBottomLeftRadius:k?i.sp2:void 0,borderBottomRightRadius:k?i.sp2:void 0,marginLeft:i.sp2},isHighlighted:h?.includes(m.inboxNotification.id)===!0,isSelectionMode:a==="always_on",onNotificationTileClick:c,onNotificationTileLongPress:()=>{f.current[p]?.click()}})}),value:m.inboxNotification.id,defaultChecked:!1,groupLabel:!1}})],name:s,isDisabled:l,style:{width:"100%",position:"relative"},checkBoxStyle:{padding:i.sp1,zIndex:2,left:`-${i.sp1}`,position:"absolute"},checkBoxIconStyle:{backgroundColor:d.colors.grey5}})})},fo=r.div`
|
|
257
257
|
display: flex;
|
|
258
258
|
align-items: center;
|
|
259
259
|
width: 100%;
|
|
260
|
-
`,
|
|
260
|
+
`,Ae=r(pe)`
|
|
261
261
|
display: flex;
|
|
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(),
|
|
265
|
+
`,mo=r(Tt)``,go=e=>v()==="small"?t.jsx(po,{...e}):t.jsx(co,{...e}),{commentsAndNotifications:{notifications:{message:xo}}}=P.getLocalizedStrings(),Oe={rowGap:new R(w[0],w[5],w[5])},bo=({notificationGroups:e,users:o,isFetching:s,hasMore:a,sectionId:n,checkBoxMode:l,scrollYOffset:c,currentSubTab:d,isDisabled:u,onUpdateScrollYOffset:h,onFetchNotificationGroups:f,onNotificationClick:m})=>{const p=v(),b=x.useRef(null),k=x.useRef({});x.useEffect(()=>{b.current?.resetAfterIndex(0,!0)},[p,b,e]),x.useEffect(()=>{b.current?.scrollTo(c)},[d]);const B=x.useCallback(N=>{if(k.current?.[N]!=null){const U=p==="small"&&a===!1&&N===e.length-1?Oe.rowGap.value("medium-regular"):Oe.rowGap.value(p);return k.current[N]+U}return(ht*jt.value(p)+pt)*3+ft+mt},[p,k,e]),G=x.useCallback((N,U)=>{k.current={...k.current,[N]:U},b.current?.resetAfterIndex(0,!0)},[p,b,e]),T=x.useCallback(()=>{f()},[f]),L=x.useCallback(()=>{},[]),y=et(N=>h(N),1e3,{trailing:!0}),M=N=>!a||N<e.length,j=x.useCallback(()=>a&&!s?T():L(),[a,s,T,L]),I=a?e.length+1:e.length;return t.jsx(yo,{children:t.jsx($o,{windowSize:p,children:s&&e.length===0?t.jsx(Ki,{}):s===!1&&e.length===0?t.jsx(tt,{message:xo.noNotificationsMessage,style:{padding:i.sp0}}):t.jsx(jo,{windowSize:p,children:t.jsx(it,{children:({height:N,width:U})=>t.jsx(ot,{isItemLoaded:M,itemCount:gt,loadMoreItems:j,children:({onItemsRendered:Y,ref:E})=>t.jsx(st,{ref:W=>{E(W),b.current=W},height:N,itemCount:I,itemData:{notificationGroups:e,users:o,sectionId:n,checkBoxMode:l,isDisabled:u,isItemLoaded:M,setRowHeight:G,onNotificationClick:m},onItemsRendered:Y,itemSize:B,width:U,style:{willChange:"auto"},overscanCount:xt,onScroll:({scrollOffset:W})=>{y(W)},initialScrollOffset:c,children:wo})})})})})})},wo=({index:e,style:o,data:s})=>{const{notificationGroups:a,users:n,sectionId:l,checkBoxMode:c,isItemLoaded:d,isDisabled:u,setRowHeight:h,onNotificationClick:f}=s,m=x.useRef(null),p=v();if(x.useEffect(()=>{m.current?.firstElementChild!=null&&h(e,m.current.firstElementChild.clientHeight)},[e,m,p,a[e]?.notifications]),d(e)===!0){const b=a[e],k=ne(b);return t.jsx(Pe,{style:{...o,paddingBottom:i.sp0,width:"100%"},ref:m,children:t.jsx(go,{notificationGroup:b,sectionId:`${l}.${k}`,checkBoxMode:c,isDisabled:u,users:n,onNotificationTileClick:f})},k)}return t.jsx(Pe,{ref:m,style:{...o,paddingBottom:i.sp0},children:t.jsx(Se,{numberOfRows:3})},ce())},yo=r.div`
|
|
266
266
|
display: block;
|
|
267
267
|
background-color: ${e=>e.theme.colors.grey4};
|
|
268
268
|
height: 100%;
|
|
@@ -279,7 +279,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,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:
|
|
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;
|
|
@@ -310,7 +310,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
310
310
|
border-bottom-right-radius: inherit;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
${e=>e.isHighlighted?
|
|
313
|
+
${e=>e.isHighlighted?O`
|
|
314
314
|
z-index: 1;
|
|
315
315
|
color: ${e.theme.colors.primary};
|
|
316
316
|
border: 1px solid ${e.theme.colors.primary};
|
|
@@ -342,14 +342,14 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
342
342
|
align-items: center;
|
|
343
343
|
flex-shrink: 0;
|
|
344
344
|
justify-content: end;
|
|
345
|
-
`,Uo=r(
|
|
345
|
+
`,Uo=r(Q)`
|
|
346
346
|
color: inherit;
|
|
347
347
|
|
|
348
|
-
${e=>e.statusUpdate?
|
|
348
|
+
${e=>e.statusUpdate?O`
|
|
349
349
|
display: flex;
|
|
350
350
|
flex-wrap: wrap;
|
|
351
351
|
gap: ${i.sp1};
|
|
352
|
-
`:
|
|
352
|
+
`:O`
|
|
353
353
|
display: -webkit-box;
|
|
354
354
|
overflow: hidden;
|
|
355
355
|
-webkit-line-clamp: ${de.lineClamp.value(e.windowSize)};
|
|
@@ -357,7 +357,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
357
357
|
-webkit-box-orient: vertical;
|
|
358
358
|
`};
|
|
359
359
|
width: ${e=>de.sectionWidth.valuePercentage(e.windowSize)};
|
|
360
|
-
`,Eo=r(
|
|
360
|
+
`,Eo=r(Q)`
|
|
361
361
|
color: inherit;
|
|
362
362
|
display: -webkit-box;
|
|
363
363
|
overflow: hidden;
|
|
@@ -428,7 +428,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
428
428
|
flex: 1 1 auto;
|
|
429
429
|
justify-content: ${e=>e.isLastItem?"flex-end":"start"};
|
|
430
430
|
width: ${e=>e.isLastItem?"10%":zt.valuePercentage(e.windowSize)};
|
|
431
|
-
`,
|
|
431
|
+
`,Xo=()=>{const e=v();return t.jsxs(Qo,{windowSize:e,children:[t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:w[4]}),t.jsx(z,{width:60,height:18})]}),t.jsxs(Ge,{children:[t.jsx(z,{width:180,height:w[4]}),t.jsx(z,{width:60,height:18})]})]})},Qo=r.div`
|
|
432
432
|
display: flex;
|
|
433
433
|
flex-direction: column;
|
|
434
434
|
align-items: baseline;
|
|
@@ -462,7 +462,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
462
462
|
gap: ${i.sp2};
|
|
463
463
|
flex: 1 1 auto;
|
|
464
464
|
width: 100%;
|
|
465
|
-
`,es=()=>v()==="small"?t.jsx(
|
|
465
|
+
`,es=()=>v()==="small"?t.jsx(Xo,{}):t.jsx(Zo,{}),ts={marginLeft:new R(w[2],w[5],w[7])},is=()=>t.jsxs(os,{children:[t.jsx(ve,{numberOfRows:5}),t.jsx(ve,{numberOfRows:3})]}),ve=({numberOfRows:e})=>{const o=v();return t.jsxs(ss,{windowSize:o,children:[t.jsx(rs,{children:t.jsx(z,{width:w[12],height:Ne.standardRegular.lineHeightValue})}),t.jsx(as,{children:[...Array(e)].map(s=>t.jsx(es,{},ce()))})]})},os=r.div`
|
|
466
466
|
display: block;
|
|
467
467
|
min-height: 100%;
|
|
468
468
|
flex-direction: column;
|
|
@@ -479,7 +479,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
479
479
|
`,rs=r.div`
|
|
480
480
|
display: flex;
|
|
481
481
|
padding: ${i.sp3} ${i.sp0};
|
|
482
|
-
`,ns=({notificationData:e,isSelectionMode:o=!1,isHighlighted:s=!1,style:a,onNotificationTileClick:n,onNotificationTileLongPress:l})=>{const{status:c,createTime:d,eventData:{entitiyId:u,activities:h},notificationId:f}=e,m=x.useCallback(()=>{l?.()},[l]),p=x.useCallback(k=>{k.stopPropagation(),k.cancelable&&k.preventDefault(),o?l?.():n(f,u,c,h.length>0?h[0].activityType:void 0)},[f,u,c,h,o,l,n]),b=ut({onLongPress:m},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(hs,{notificationStatus:c,isHighlighted:s,style:a,...b,onClick:p,children:[t.jsxs(Ue,{children:[t.jsx(ls,{...e}),t.jsx(cs,{createTime:d,notificationStatus:c})]}),t.jsxs(Ue,{children:[t.jsx(ds,{...e}),h.length>0&&h[0].activityType==="task_status_updated"?null:t.jsx(us,{...e})]})]})},ls=e=>t.jsx(
|
|
482
|
+
`,ns=({notificationData:e,isSelectionMode:o=!1,isHighlighted:s=!1,style:a,onNotificationTileClick:n,onNotificationTileLongPress:l})=>{const{status:c,createTime:d,eventData:{entitiyId:u,activities:h},notificationId:f}=e,m=x.useCallback(()=>{l?.()},[l]),p=x.useCallback(k=>{k.stopPropagation(),k.cancelable&&k.preventDefault(),o?l?.():n(f,u,c,h.length>0?h[0].activityType:void 0)},[f,u,c,h,o,l,n]),b=ut({onLongPress:m},{shouldPreventDefault:!1,delay:1e3});return t.jsxs(hs,{notificationStatus:c,isHighlighted:s,style:a,...b,onClick:p,children:[t.jsxs(Ue,{children:[t.jsx(ls,{...e}),t.jsx(cs,{createTime:d,notificationStatus:c})]}),t.jsxs(Ue,{children:[t.jsx(ds,{...e}),h.length>0&&h[0].activityType==="task_status_updated"?null:t.jsx(us,{...e})]})]})},ls=e=>t.jsx(Ot,{statusUpdate:!1,children:t.jsx(_t,{...e})}),ds=e=>{const{eventData:{activities:o}}=e;return t.jsx(Ot,{statusUpdate:o.length>0&&o[0].activityType==="task_status_updated"&&o[0].metadata.updates.find(s=>s.field==="status")!=null,children:t.jsx(Dt,{...e})})},cs=e=>t.jsx(ps,{children:t.jsx(Mt,{...e})}),us=e=>t.jsx(fs,{children:t.jsx(At,{...e})}),hs=r.div`
|
|
483
483
|
display: flex;
|
|
484
484
|
flex-direction: column;
|
|
485
485
|
align-items: baseline;
|
|
@@ -511,7 +511,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
511
511
|
border-bottom-right-radius: inherit;
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
${e=>e.isHighlighted?
|
|
514
|
+
${e=>e.isHighlighted?O`
|
|
515
515
|
z-index: 1;
|
|
516
516
|
color: ${e.theme.colors.primary};
|
|
517
517
|
border: 1px solid ${e.theme.colors.primary};
|
|
@@ -550,18 +550,18 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
550
550
|
width: 100%;
|
|
551
551
|
justify-content: space-between;
|
|
552
552
|
align-items: start;
|
|
553
|
-
`,
|
|
553
|
+
`,Ot=r(Q)`
|
|
554
554
|
color: inherit;
|
|
555
|
-
${e=>e.statusUpdate?
|
|
555
|
+
${e=>e.statusUpdate?O`
|
|
556
556
|
display: flex;
|
|
557
557
|
flex-wrap: wrap;
|
|
558
558
|
gap: ${i.sp2};
|
|
559
|
-
`:
|
|
559
|
+
`:O`
|
|
560
560
|
display: -webkit-box;
|
|
561
561
|
-webkit-box-orient: horizontal;
|
|
562
562
|
gap: ${i.sp1};
|
|
563
563
|
`};
|
|
564
|
-
`,Pt=e=>v()==="small"?t.jsx(ns,{...e}):t.jsx(zo,{...e}),{common:{all:Ee}}=P.getLocalizedStrings(),ms=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=
|
|
564
|
+
`,Pt=e=>v()==="small"?t.jsx(ns,{...e}):t.jsx(zo,{...e}),{common:{all:Ee}}=P.getLocalizedStrings(),ms=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=X(),{getValues:d}=ue(),u=d(o);return t.jsx(gs,{style:a,children:t.jsx(he,{mode:s,checkBoxes:[{label:t.jsx(xs,{htmlFor:`${o}.${Ee.toLocaleLowerCase()}`,style:{color:c.colors.primary},children:me(e)}),value:Ee.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((h,f)=>{const m=f===0,p=e.notifications.length-1===f;return{label:t.jsx(Pt,{notificationData:h,style:{borderTopLeftRadius:m?i.sp2:void 0,borderTopRightRadius:m?i.sp2:void 0,borderBottomLeftRadius:p?i.sp2:void 0,borderBottomRightRadius:p?i.sp2:void 0},isHighlighted:u?.includes(h.notificationId)===!0,onNotificationTileClick:l}),value:h.notificationId,defaultChecked:!1,groupLabel:!1}})],name:o,isDisabled:n,style:{width:"100%"},checkBoxStyle:{padding:i.sp3},labelCheckBoxStyle:{padding:i.sp3}})})},gs=r.div`
|
|
565
565
|
display: flex;
|
|
566
566
|
align-items: center;
|
|
567
567
|
width: 100%;
|
|
@@ -570,7 +570,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,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:Ve}}=P.getLocalizedStrings(),bs=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=
|
|
573
|
+
`,{common:{all:Ve}}=P.getLocalizedStrings(),bs=({notificationGroup:e,sectionId:o,checkBoxMode:s,style:a,isDisabled:n,onNotificationTileClick:l})=>{const c=X(),{getValues:d}=ue(),u=d(o),h=x.useRef([]);return x.useEffect(()=>{h.current=h.current.slice(0,e.notifications.length)},[e.notifications.length]),t.jsx(ws,{style:a,children:t.jsx(he,{mode:s,checkBoxes:[{label:t.jsx(He,{htmlFor:`${o}.${Ve.toLocaleLowerCase()}`,style:{color:c.colors.primary,marginLeft:i.sp2},children:me(e)}),value:Ve.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...e.notifications.map((f,m)=>{const p=m===0,b=e.notifications.length-1===m;return{label:t.jsx(He,{ref:k=>h.current[m]=k,htmlFor:`${o}.${f.notificationId}`,style:{padding:i.sp0},children:t.jsx(ys,{notificationData:f,style:{borderTopLeftRadius:p?i.sp2:void 0,borderTopRightRadius:p?i.sp2:void 0,borderBottomLeftRadius:b?i.sp2:void 0,borderBottomRightRadius:b?i.sp2:void 0,marginLeft:i.sp2},isHighlighted:u?.includes(f.notificationId)===!0,isSelectionMode:s==="always_on",onNotificationTileClick:l,onNotificationTileLongPress:()=>{h.current[m]?.click()}})}),value:f.notificationId,defaultChecked:!1,groupLabel:!1}})],name:o,isDisabled:n,style:{width:"100%",position:"relative"},checkBoxStyle:{padding:i.sp1,zIndex:2,left:`-${i.sp1}`,position:"absolute"},checkBoxIconStyle:{backgroundColor:c.colors.grey5}})})},ws=r.div`
|
|
574
574
|
display: flex;
|
|
575
575
|
align-items: center;
|
|
576
576
|
width: 100%;
|
|
@@ -596,7 +596,7 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,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",K="notificationsTable",Ft=20,na=({notificationView:e,users:o,isNotificationSettingsVisible:s,isZeniUser:a,isDisabled:n,onNotificationClick:l,onCommentNotificationClick:c,onUpdateNotificationViewUIState:d,onUpdateNotificationTabState:u,onUpdateNotificationViewCurrentTabAndSubTab:h,onUpdateNotificationViewSubTab:f,onFetchMoreNotifications:m,onUpdateNotificationStatus:p,onSettingsClick:b,onBackClick:k,onMarkAllNotificationsAsRead:B})=>{const G=
|
|
599
|
+
`,{common:{all:Ce,texts:re,footer:Ts,strings:{plus:Ls},numbers:{maximumCount:Je}},commentsAndNotifications:{notifications:{title:Is,texts:Bt,strings:qe}}}=P.getLocalizedStrings(),te={tableContainerLeftPadding:new R(w[2],w[2],w[2]),tableContainerRightPadding:new R(w[3],w[6],w[8]),tabsContainerLeftRightPadding:new R(w[3],w[6],w[8]),selectedNotificationsTextMarginLeft:new R(w[0],w[6],w[6])},Rs={selectedNotificationsText:new ni("smallRegular","standardRegular")},Ze="notificationsPage",Z="commentsNotificationsTable",K="notificationsTable",Ft=20,na=({notificationView:e,users:o,isNotificationSettingsVisible:s,isZeniUser:a,isDisabled:n,onNotificationClick:l,onCommentNotificationClick:c,onUpdateNotificationViewUIState:d,onUpdateNotificationTabState:u,onUpdateNotificationViewCurrentTabAndSubTab:h,onUpdateNotificationViewSubTab:f,onFetchMoreNotifications:m,onUpdateNotificationStatus:p,onSettingsClick:b,onBackClick:k,onMarkAllNotificationsAsRead:B})=>{const G=X(),T=v(),L=Zt({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Qe(e),[e]),values:x.useMemo(()=>Qe(e),[e])}),{currentTab:y,currentSubTab:M,notificationDetailsByTab:j,allSubTabs:I,allNotifications:N,allExternalNotifications:U,notificationsForCurrentTabAndSubTab:Y,externalNotificationsForCurrentTabAndSubTab:E}=e,W=($,C)=>$||C==="comments",Gt=x.useMemo(()=>Object.keys(j).map($=>({label:re[$],id:re[$].toLocaleLowerCase(),countDetails:{count:j[$].uiState.unreadCount,isFetching:j[$].fetchCountState.fetchState==="In-Progress"}})).filter($=>W(a,$.id)),[j,a]),Ut=x.useMemo(()=>I.map($=>({label:$==="all"?Ce:re[$],id:$})),[I]),Et=x.useMemo(()=>$t(E).filter($=>$.notifications.length>0),[E]),Vt=x.useMemo(()=>It(Y).filter($=>$.notifications.length>0),[Y]),Ht=async($,C)=>{const F=$.split(".")[0],J=[];F!=null&&(F===Z||F===K)&&(Object.values(C[F]).forEach(_=>{J.push(..._.filter(qt=>qt.includes(Ce.toLowerCase())===!1))}),u({selectedNotificationIds:J},y))};x.useEffect(()=>{const $=L.watch((C,{name:F})=>{F!=null&&C!=null&&Kt(()=>Ht(F,C))});return()=>{$.unsubscribe()}});const ge=x.useCallback(()=>{const $=[],C=j[y].selectedNotificationIdsForSubTab,F="read";if(y==="comments"){const J=U.filter(_=>_.inboxNotification.readAt==null).map(_=>_.inboxNotification.id);C.forEach(_=>{J.includes(_)&&$.push(_)})}else{const J=N.filter(_=>_.status!==F).map(_=>_.notificationId);C.forEach(_=>{J.includes(_)&&$.push(_)})}return $},[U,N,y,j]),Yt=ge().length>Ft?"disabled":n,xe=L.watch(Z),be=L.watch(K),Le=x.useCallback(()=>{m(y,M)},[m,y,M]),Wt=x.useCallback(()=>{if(y==="comments"){const $={};Object.keys(xe).forEach(C=>{$[C]=[]}),L.reset({[Z]:$,[K]:be},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}else{const $={};Object.keys(be).forEach(C=>{$[C]=[]}),L.reset({[K]:$,[Z]:xe},{keepDefaultValues:!1,keepDirty:!1,keepValues:!1})}u({selectedNotificationIds:[]},y)},[be,xe]),Jt=x.useCallback(()=>{const $=j[y].selectedNotificationIdsForSubTab,C="read",F=ge();p(y,$,C,F)},[y,j,ge,p]);return t.jsxs(_s,{children:[t.jsx(Xt,{source:"NotificationsPage",title:Is.notifications,backgroundColor:G.colors.grey4,onBackClick:k,rightSideComponent:s===!0?t.jsx(Js,{onClick:b}):t.jsx(Ws,{})}),t.jsx(As,{}),t.jsx(Ms,{windowSize:T,children:t.jsx(mi,{tabs:Gt,selectedTab:y,onTabChange:$=>{const C=g.toNotificationTabTypeStrict($);C!=null&&h(C)},subTabs:Ut,selectedSubTab:M,onSubTabChange:$=>{const C=g.toNotificationSubTabTypeStrict($);C!=null&&f(C)},subTabRightComponent:t.jsx(zs,{notificationCount:j[y].uiState.unreadCount,markAsAllReadUpdateState:j[y].markAsAllReadState.fetchState,markAsReadUpdateState:j[y].markAsReadState.fetchState,onMarkAsAllReadClick:()=>{B(y)}})})}),t.jsx(Ds,{windowSize:T,children:t.jsx(Qt,{...L,children:t.jsx("form",{id:Xe(Ze),onSubmit:L.handleSubmit(Jt),style:{width:"100%"},children:y==="comments"?t.jsx(bo,{users:o,hasMore:j[y].uiState.hasMore,isFetching:j[y].fetchState==="In-Progress",scrollYOffset:j[y].uiState.scrollYOffset[M],currentSubTab:M,checkBoxMode:j[y].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Et,sectionId:Z,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>d({scrollYOffset:{...j[y].uiState.scrollYOffset,[M]:$}},y),onNotificationClick:c}):t.jsx(ks,{hasMore:j[y].uiState.hasMore,isFetching:j[y].fetchState==="In-Progress",scrollYOffset:j[y].uiState.scrollYOffset[M],currentSubTab:M,checkBoxMode:j[y].selectedNotificationIdsForSubTab.length>0?"always_on":"checked_or_hover",notificationGroups:Vt,sectionId:K,onFetchNotificationGroups:Le,onUpdateScrollYOffset:$=>d({scrollYOffset:{...j[y].uiState.scrollYOffset,[M]:$}},y),onNotificationClick:l})})})}),j[y].selectedNotificationIdsForSubTab.length?t.jsx(ei,{formId:Xe(Ze),primaryBtn:{label:Bt.markAsRead,isLoading:j[y].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},isDisabled:Yt!=null},cancelBtn:{label:Ts.cancel,isDisabled:j[y].markAsReadState.fetchState==="In-Progress",style:{width:"135px"},onClick:Wt},helperContainerStyle:T==="small"?{width:"100%"}:{rowGap:i.sp0},footerContentStyle:{gap:i.sp2},leftSideComponent:t.jsx(we,{controller:T!=="small",children:t.jsx(Ke,{selectedNotificationsCount:j[y].selectedNotificationIdsForSubTab.length})}),topComponent:t.jsx(we,{controller:T==="small",children:t.jsx(Ke,{selectedNotificationsCount:j[y].selectedNotificationIdsForSubTab.length})}),rightSideComponent:t.jsx(we,{controller:T!=="small",children:t.jsx(Bs,{})})}):null]})},zs=({markAsAllReadUpdateState:e,markAsReadUpdateState:o,notificationCount:s,onMarkAsAllReadClick:a})=>{const n=s===0,l=x.useCallback(()=>{e!=="In-Progress"&&o!=="In-Progress"&&!n&&a()},[e,o,n,a]);return t.jsx(Os,{variant:"tertiary",size:"small",label:Bt.markAllAsRead,onClick:l,prefixIcon:e==="In-Progress"?t.jsx(oi,{size:"Small",start:!0}):t.jsx(Ps,{className:"mark-as-read"}),disabled:n,textStyle:{fontWeight:Ne.smallRegular.fontWeight},style:{borderRadius:i.sp1,border:"none",backgroundColor:"transparent",flexShrink:0,padding:i.sp0,cursor:o==="In-Progress"||e==="In-Progress"||n?"default":"pointer"}})},Ke=({selectedNotificationsCount:e})=>{const o=v();return t.jsxs(Fs,{windowSize:o,children:[t.jsx(Us,{children:t.jsx(Gs,{isCircular:e<10,children:t.jsx(Es,{children:e>Je?`${Je}${Ls}`:e})})}),t.jsxs(Ys,{windowSize:o,children:[t.jsx(Vs,{children:e>1?qe.notificationsSelected:qe.notificationSelected}),e>Ft?t.jsx(Hs,{children:re.maxLimit}):null]})]})},_s=r.div`
|
|
600
600
|
display: flex;
|
|
601
601
|
height: 100vh;
|
|
602
602
|
width: 100%;
|
|
@@ -616,10 +616,10 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
616
616
|
padding-bottom: ${i.sp0};
|
|
617
617
|
padding-left: ${e=>te.tabsContainerLeftRightPadding.valuePx(e.windowSize)};
|
|
618
618
|
padding-right: ${e=>te.tabsContainerLeftRightPadding.valuePx(e.windowSize)};
|
|
619
|
-
`,
|
|
619
|
+
`,As=r.div`
|
|
620
620
|
min-height: ${i.sp3};
|
|
621
621
|
width: 100%;
|
|
622
|
-
`,
|
|
622
|
+
`,Os=r(si)`
|
|
623
623
|
.mark-as-read {
|
|
624
624
|
color: ${e=>e.disabled===!0?e.theme.colors.grey2:e.theme.colors.hero};
|
|
625
625
|
}
|
|
@@ -638,11 +638,11 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
638
638
|
gap: ${i.sp2};
|
|
639
639
|
margin-left: ${e=>te.selectedNotificationsTextMarginLeft.valuePx(e.windowSize)};
|
|
640
640
|
`,Gs=r.div`
|
|
641
|
-
${e=>e.isCircular?
|
|
641
|
+
${e=>e.isCircular?O`
|
|
642
642
|
height: ${i.sp3};
|
|
643
643
|
width: ${i.sp3};
|
|
644
644
|
padding: ${i.sp0};
|
|
645
|
-
`:
|
|
645
|
+
`:O`
|
|
646
646
|
height: 18px;
|
|
647
647
|
min-width: ${i.sp3};
|
|
648
648
|
padding: ${i.sp0} ${i.sp1};
|
|
@@ -683,4 +683,4 @@ import{u as Q,X as v,a as Zt,M as P,c6 as Kt,j as t,aV as Qt,l as g,F as Xt,a3 a
|
|
|
683
683
|
&:hover {
|
|
684
684
|
color: ${e=>e.theme.colors.primary};
|
|
685
685
|
}
|
|
686
|
-
`,
|
|
686
|
+
`,Xe=e=>`${e}_form`,Qe=e=>{const{allNotifications:o,allExternalNotifications:s,notificationDetailsByTab:{tasks:{selectedNotificationIds:a},comments:{selectedNotificationIds:n}}}=e,l={};It(o).filter(d=>d.notifications.length>0).forEach(d=>{const u=d.notifications.map(h=>h.notificationId);l[ne(d)]=a.filter(h=>u.includes(h))});const c={};return $t(s).filter(d=>d.notifications.length>0).forEach(d=>{const u=d.notifications.map(h=>h.inboxNotification.id);c[ne(d)]=n.filter(h=>u.includes(h))}),{[Z]:c,[K]:l}},la=(e,o)=>{const s=[];return Object.values(e).forEach(a=>{a.forEach(n=>{n.includes(Ce.toLocaleLowerCase())===!1&&o.includes(n)&&s.push(n)})}),s};export{na as default,la as getSelectedNotificationIds,Xe as uniqueFormName};
|
package/dist/assets/{OpExByVendorPage-BnTlBXeu-CipcFkdu.js → OpExByVendorPage-D08wBmkx-kSlP6mnA.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as
|
|
1
|
+
import{X as H,ht as ye,M as B,u as q,z as be,j as t,Y as _e,be as Se,hs as ke,aX as we,aV as ve,hu as Be,hv as Oe,o as u,a5 as Pe,c as $e,C as F,ai as le,H as ie,a7 as je,m as O,a_ as Te,bE as De,bF as Ne,bG as Ee,g as a,s as ce,bb as Ie,b6 as Me,au as Ae,p as Z,at as Le,aa as Fe,b7 as Ve,b9 as ze,l as Re}from"./index-rGMXK0Rc.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-DX9eCHdW-B7oDG2yB.js";import{V as Ge}from"./toChartData-DgmHnq7q-B0J27uo6.js";import{m as V}from"./analyticsHelper-D2Tw-gFs-CfilQYvq.js";import{p as He}from"./TimeRangeSwitcher-DgpRdFEz-UpNf9Pio.js";import{M as qe}from"./TimeframeSwitcherWithToggle-BxG4mfwZ-hDOmM0BL.js";import{C as Xe}from"./NoDataChart-C86cs81n-BI6hUCyS.js";import{d as Je}from"./NoDataTable-BsEI7aoI-uEd_WfDe.js";import{H as Ue,k as oe}from"./detailCommon-DMILWpBc--U3Fq460.js";import{n as z}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{R as Qe,W as X}from"./CollapsableReportTable-UQFDb8XE-4tPDRPlF.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-CbddU0ga-B0ctGM7F.js";import{d as re}from"./mapLoadingInProgressToTreeNode-BuX84Fl8-C9VszrPq.js";import{l as Ze}from"./mapSpacerToTreeNode-CkoeX_hU-B3Tt6fDl.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-D7Ebofq5-DCuWRjmL.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";import"./AccountRow-CKtmIbKO-BzBAql1b.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,hw as xe,M as B,u as q,y as be,j as t,Y as _e,be as Se,hv as ke,aX
|
|
|
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(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?
|
|
25
|
+
`,ao=({active:e,payload:r,barName:o})=>{const s=[];if(r!==void 0&&e===!0){const l=r.filter(C=>C.name==o)[0],i=l.payload,h=l.color,n={amount:i.record[o].amount?.amount??0,currencyCode:i.record[o].amount?.currencyCode??"",currencySymbol:i.record[o].amount?.currencySymbol??""},p={amount:0,currencyCode:"",currencySymbol:""};let g=0,c;for(c in i.record)c.endsWith("_actual")&&(g+=i.record[c].amount?.amount??0);p.amount=g,p.currencyCode=n.currencyCode,p.currencySymbol=n.currencySymbol,s.push({barName:de(o),actual:n,color:h,total:p,timeframeTick:i.timeLabel})}return s},to=({barLabelsWithValues:e,getVendorName:r})=>t.jsx(eo,{children:t.jsxs(oo,{children:[t.jsxs(ae,{children:[t.jsx(te,{color:e[0].color,children:`${r(e[0].timeframeTick,e[0].barName)}`}),t.jsx(ne,{color:e[0].color,children:`${ee(e[0].actual)}`})]}),t.jsx(ro,{}),t.jsxs(ae,{children:[t.jsx(te,{color:a.primaryDark,children:`${B.getLocalizedStrings().chartCard.total}`}),t.jsx(ne,{children:`${ee(e[0].total)}`})]})]})}),no=e=>{const r=ao({...e});return r.length===0?null:t.jsx(to,{barLabelsWithValues:r,getVendorName:e.getVendorName})},so=We.memo(no),se=[a.graphColor34,a.graphColor05,a.graphColor08,a.graphColor11,a.graphColor13,a.graphColor19,a.graphColor29,a.graphColor28,a.graphColor20,a.graphColor21,a.graphColor22,a.graphColor14,a.graphColor35,a.graphColor31,a.graphColor33,a.graphColor32,a.graphColor36,a.graphColor02,a.graphColor06,a.graphColor04,a.graphColor10,a.graphColor12,a.graphColor15,a.graphColor18,a.graphColor17,a.graphColor07,a.graphColor34Dark,a.graphColor05Dark,a.graphColor08Dark,a.graphColor11Dark,a.graphColor13Dark,a.graphColor19Dark,a.graphColor29Dark,a.graphColor28Dark,a.graphColor20Dark,a.graphColor21Dark,a.graphColor22Dark,a.graphColor14Dark,a.graphColor35Dark,a.graphColor31Dark,a.graphColor33Dark,a.graphColor32Dark,a.graphColor36Dark,a.graphColor02Dark,a.graphColor06Dark,a.graphColor04Dark,a.graphColor10Dark,a.graphColor12Dark,a.graphColor15Dark,a.graphColor18Dark,a.graphColor17Dark,a.graphColor07Dark];class N{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=a.graphColor34,this._barColors=se.slice(),this._barColorsKeyWise=new Map}static#e=new N;getBarColor(r){const o=N.instance();return o._barColorsKeyWise.has(r)||(o._barColors.length===0&&(o._barColors=se.slice()),o._barColorsKeyWise.set(r,o._barColors.shift()??o._defaultColor)),o._barColorsKeyWise.get(r)}shouldUpdate(r){const o=N.instance(),s=Array.from(o._barColorsKeyWise.keys()).sort();return!ie(s,r)}static init(){return this.#e=new N,this.#e}static instance(){return this.#e}}const lo=N.instance(),io=(e,r)=>{const o=new Set,s={};let l;const i=r.top4VendorsAndOthers;return Object.keys(i).length>0&&Object.keys(i).forEach(h=>{i[h].forEach((n,p)=>{const g=`vendor_${p}`,c=Ke(g,"actual");o.add(c),l==null&&n.balance!=null&&(l=c),s[c]!=null?s[c].push({key:c,balance:n.balance}):s[c]=[{key:c,balance:n.balance}]})}),l!=null?Ge(e,[...o],l,s):void 0},co=m.div`
|
|
26
26
|
width: ${e=>e.width}px;
|
|
27
27
|
height: ${e=>e.height}px;
|
|
28
|
-
`;function po({selectedRangeReport:e,width:r,height:o,showBarHoverBackground:s=!1,isDetailPage:l=!1}){const i=
|
|
28
|
+
`;function po({selectedRangeReport:e,width:r,height:o,showBarHoverBackground:s=!1,isDetailPage:l=!1}){const i=y.useRef(!1),h=lo,[n,p]=y.useState(void 0);y.useEffect(()=>{i.current=!0},[]);const g=io(e.firstMonthOfFY,e),c=()=>{const d=[];return g?.orderedKeys.forEach(b=>{const S=l===!0&&!i.current;d.push(C(b,S))}),d},C=(d,b)=>t.jsx(ze,{name:d,animationDuration:b?500:void 0,style:{cursor:"pointer"},dataKey:S=>{const v=S.record;return(v[d]?.amount!=null?v[d].amount:void 0)?.amount??0},stackId:"chartByTimeSeries",fill:h.getBarColor(de(d)),onMouseEnter:()=>{n!==d&&p(d)},onMouseLeave:()=>{n!=null&&p(void 0)}},d),_=({active:d,payload:b})=>b?.find(S=>S.name===n)!=null&&n!=null&&d===!0?t.jsx(so,{active:d,payload:b,barName:n,getVendorName:f}):null,f=(d,b)=>{const S=Re.getOpexVendorTimeframeKey(d);try{const v=b.split("_")[1];return e.top4VendorsAndOthers[S][parseInt(v)].vendor.name}catch(v){return console.warn("Was not able to parse vendor index for tooltip ",v),""}};return g==null?null:t.jsx(ho,{chartData:g,showBarHoverBackground:s,barElements:c(),customToolTipContent:t.jsx(_,{}),width:r,height:o,isDetailPage:l===!0})}const ho=({chartData:e,barElements:r,customToolTipContent:o,width:s,height:l,showBarHoverBackground:i=!1,isDetailPage:h})=>{const n=q(),p=Ye(e),g=i!==!1,c=h?(s-60)/G.operating_expenses_by_vendor*(G.operating_expenses_by_vendor-e.timeseries.length):20;return t.jsx(co,{width:s,height:l,children:t.jsx(le,{children:({height:C,width:_})=>t.jsxs(Ie,{width:_,height:C,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:h?O[5]:30,margin:{top:5,right:c,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(Me,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:n.colors.grey3}),t.jsx(Ae,{dataKey:f=>f.timeLabel.label,type:"category",axisLine:{stroke:n.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject}}),t.jsx(Le,{type:"number",axisLine:!1,tickLine:!1,tick:{color:n.colors.hero,...Z.extraSmallRegular.cssObject},tickFormatter:f=>Fe("0,0.[00]a",f,p)}),t.jsx(Ve,{wrapperStyle:{zIndex:2},cursor:g?{stroke:n.colors.background,strokeWidth:(_-120)/G.operating_expenses_by_vendor,fill:n.colors.background}:!1,content:o,allowEscapeViewBox:{x:!1,y:!0}}),r]})})})};function mo(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,company_name:e.companyName,statement_file_type:e.statementFileType,timeframe:e.timeframe,timezone:e.timezone,additional_balances:e.additionalBalances,format:e.format,sort_key:e.sortKey,sort_order:e.sortOrder,is_compare_mode_on:e.isCompareModeOn,search_string:e.searchString}}function go(e){const{isCompareModeOn:r,report:o,currentTenantCompanyName:s}=e,l=[];if(r&&(l.push("this_period_vs_last_period_percent"),l.push("this_period_vs_last_period")),o.dataAvailable!=null)return{localeId:B.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",companyName:s,statementFileType:"excel",timeframe:e.timeframe,timezone:e.timezone,additionalBalances:l,format:e.reportType,sortKey:e.sortKey,sortOrder:e.sortOrder,isCompareModeOn:e.isCompareModeOn,searchString:e.searchString}}function uo(e){const r=go(e);if(r!=null)return fo(e.statementEndPoint,e.authParams,r)}async function fo(e,r,o){const s=B.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(mo(o)))}`;try{const i=await De({urlEndPoint:l,authParams:r,fileType:o.statementFileType});if(i.ok){const h=Ne(i.headers,s.defaultFileName),n=await i.arrayBuffer();Ee(n,h)}else console.error(`${s.reportErrorMessage} ${i.statusText}`)}catch(i){console.error(`${s.reportErrorMessage} ${JSON.stringify(i)}`)}}function Co({title:e,balances:r,config:o,nodeId:s}){return{children:[],id:s??X("title_string_only",[]),isLastNode:!1,reportElementData:{element:{kind:"title_string_only",title:e,data:r,numOfBalances:r.length},config:o}}}function xo({opExByVendor:e,numOfBalances:r,title:o,isLastNode:s,config:l}){const i=e.account?.accountName??"-",h=e.classBase?.className??"-",n=X("vendor_row",[],o+i+h);return{children:[],id:n,isLastNode:s,reportElementData:{element:{kind:"vendor_row",title:o,data:e,numOfBalances:r},config:l}}}function yo({title:e,balances:r,config:o,numOfBalances:s,nodeId:l}){return{children:[],id:l??X("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:r,numOfBalances:s},config:o}}}const bo=(e,r,o,s=!0)=>{const l=o.mode==="this_period_vs_period_before"?e.filter.balancesRange.numberOfPeriods+1:e.filter.balancesRange.numberOfPeriods,i=e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[];e.totalBalances?.totalBalance!=null&&i.push(e.totalBalances.totalBalance);const h=pe({balances:i,config:o}),n=[];n.push(h);const p=B.getLocalizedStrings().vendors.opExByVendor,g=o.opexByVendorConfig?.sortOrSearchInProgress??!1,c=o.opexByVendorConfig?.pageFetchInProgress??!1;if(g===!0)[...Array(10)].forEach((C,_)=>{n.push(re({title:`${_}+${p.loading}`,balances:i,config:o}))});else if(e.opexBalances.length>0){if(!r.searchString){const f=yo({title:B.getLocalizedStrings().chartCard.total,balances:e.totalBalances,config:o,numOfBalances:l});n.push(f)}const C=r.pageToken[r.timeframe],_=e.opexBalances.map((f,d)=>xo({opExByVendor:f,title:f.vendor.name,numOfBalances:l,isLastNode:d===e.opexBalances.length-1&&C==null,config:o}));n.push(..._),c===!0&&[...Array(1)].forEach((f,d)=>{n.push(re({title:`${d}+${p.loading}`,balances:i,config:o}))}),[...Array(1)].forEach((f,d)=>{n.push(Ze({title:`${d}+${p.loading}`,balances:[],config:o}))})}return e.opexBalances.length===0&&g!==!0&&n.push(Co({title:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound,balances:i,config:o})),{config:o,headerNodes:s?[h]:[],contentNodes:n}};function _o(e,r,o,s=!0){Object.assign(e.config,r);const l=So(o),i=pe({balances:l,config:r});return{config:r,headerNodes:s?[i]:[],contentNodes:[i,...e.contentNodes.slice(1)]}}const So=e=>e.totalBalances!=null?[...e.totalBalances.balances,...e.totalBalances.additionalBalances]:[],E={chartHeight:new F(288,360),wrapperPadding:new F(O[3],O[3],O[8]),contentPaddingLeft:new F(O[0],O[0],O[0]),contentPaddingRight:new F(O[3],O[3],O[8])},ko=m.div`
|
|
29
29
|
display: flex;
|
|
30
30
|
flex: 1 1 auto;
|
|
31
31
|
min-height: 100%;
|
|
@@ -97,4 +97,4 @@ import{X as G,hw as xe,M as B,u as q,y as be,j as t,Y as _e,be as Se,hv as ke,aX
|
|
|
97
97
|
`,Mo=m.div`
|
|
98
98
|
width: 100%;
|
|
99
99
|
height: calc(100vh - ${u.sp11});
|
|
100
|
-
`,Ao=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?t.jsx(vo,{children:t.jsx($e,{size:"ExtraLarge",start:!0})}):null,mr=({report:e,vendorTabsToShow:r,uiState:o,downloadParams:s,onVendorTabSelectionChanged:l,onReloadReport:i,onBackClick:h,onFetchOpExByVendors:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,onSortOrderChanged:c,onSortOrSearchStarted:C,onVendorNameAndBalanceClicked:_,onPageFetchStarted:f,previousTabPosition:d,setPreviousTabPosition:b,updateDownloadStateHandler:S,onClearSearch:v,analytics:P,onClickMenuIcon:
|
|
100
|
+
`,Ao=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?t.jsx(vo,{children:t.jsx($e,{size:"ExtraLarge",start:!0})}):null,mr=({report:e,vendorTabsToShow:r,uiState:o,downloadParams:s,onVendorTabSelectionChanged:l,onReloadReport:i,onBackClick:h,onFetchOpExByVendors:n,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,onSortOrderChanged:c,onSortOrSearchStarted:C,onVendorNameAndBalanceClicked:_,onPageFetchStarted:f,previousTabPosition:d,setPreviousTabPosition:b,updateDownloadStateHandler:S,onClearSearch:v,analytics:P,onClickMenuIcon:R})=>{const[j,I]=y.useState(o.searchString[o.timeframe]),[M,A]=y.useState(!1),k=H(),T=y.useRef(null),W=ye(r),he=W.length>1,me=B.getLocalizedStrings().reports.common,J=B.getLocalizedStrings().vendors,U=q(),ge=["month","quarter"],ue=e.availableNumberOfPeriods!=null&&e.availableNumberOfPeriods<2,L=o.mode==="compare_mode"&&!ue,K=e.allTimeframeTicks.length===0,{timeframe:$}=o,D=o.searchString[$],fe=y.useCallback(w=>{n($,D,w)},[$,D,n]),Ce=y.useCallback((w,x)=>{window.scrollTo({top:T.current?.offsetTop,behavior:"smooth"}),w.length>0?(C(!0),n(x,w,!1)):(C(!1),v(x))},[v,n,C]),Q=y.useRef(be((w,x)=>Ce(w,x),500,{trailing:!0})).current,xe=(w,x)=>{c(w,x,$),C(!0),n($,D,!1)};if(y.useEffect(()=>{async function w(){await uo({report:e,isCompareModeOn:L,downloadState:o.downloadState,reportType:"more_detailed",timeframe:o.timeframe,sortKey:o.sortKey[o.timeframe],sortOrder:o.sortOrder[o.timeframe],searchString:o.searchString[$],...s}),P?.trackDownload(z("operating_expenses_by_vendor"),V(o.timeframe),"excel",L),S("Completed")}M&&o.downloadState!=="In-Progress"&&(A(!1),S("In-Progress"),w())},[e,o,L,s,o.downloadState,M]),y.useEffect(()=>{I(D)},[D]),e.fetchState==="Error")return t.jsxs(Bo,{children:[t.jsx(Oo,{"data-testid":_e("op-ex-by-vendor-reload-page"),onClick:i,children:t.jsx(Se,{})}),t.jsx(Po,{children:me.failed})]});const Y=e.totalBalances?.totalBalance;if(o.sortOrSearchInProgress===!1&&o.pageFetchInProgress===!1&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"))return t.jsx(Ao,{fetchState:e.fetchState});if((e.fetchState==="Completed"||o.sortOrSearchInProgress===!0||o.pageFetchInProgress===!0)&&e.isReportGenerated===!0){const w=t.jsxs(t.Fragment,{children:[t.jsx(ke,{isSearchOpen:(D?.length??0)>0,searchPlaceHolder:J.common.searchPlaceholder,searchText:j??"",onSearchTextChanged:x=>{I(x),x.trim().length>=2?Q(x,$):x.trim().length==0&&Q("",$)},downloadPresent:!0}),t.jsx(we,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:K,isDownloading:o.downloadState==="In-Progress"}],onDownloadClick:async x=>{if(x==="excel")if(o.downloadState==="In-Progress"){console.log("Download is already in progress!");return}else A(!0)}}}})]});return t.jsxs(ko,{windowSize:k,children:[t.jsx(ve,{title:J.common.navBarTitle,subTitle:e.lastRefreshSuccessTime!=null?e.lastRefreshSuccessTime.utc(!0).fromNow():"",backgroundColor:U.colors.grey5,onBackClick:h,rightSideComponent:w,showMenuIcon:k==="medium-compact"||k==="small",downloadPresent:!0,onClickMenuIcon:R,source:"OpExByVendorPage"}),t.jsxs(wo,{windowSize:k,children:[he?t.jsx(Be,{allTabs:W,selectedTab:W[1].id,containerStyle:{borderBottom:`2px solid ${U.colors.grey3}`},onTabChange:x=>l(Oe(x.id)),previousTabPosition:d,setPreviousTabPosition:b}):null,t.jsx(Lo,{timeframes:ge,isCompareModeOn:L,firstMonthOfFY:e.firstMonthOfFY,allTimeframeTicks:e.allTimeframeTicks,selectedTimeframe:o.timeframe,selectedCOABalancesRange:e.filter.balancesRange,onAdditionalBalanceSelectionChanged:p,onTimeframeSelectionChanged:g,mode:o.mode,analytics:P}),Y!=null?t.jsx(Eo,{children:t.jsx(Ue,{balance:Y,dateText:zo(Y)})}):null,t.jsx(Fo,{report:e,isEmptyPeriod:K})]}),t.jsx(Vo,{reference:T,report:e,uiState:o,isEmptyPeriod:K,onAdditionalBalanceSelectionChanged:p,onVendorNameAndBalanceClicked:_,onSortOrderChanged:xe,handleFetchOpExByVendor:fe,onPageFetchStarted:f,analytics:P})]})}return t.jsx(t.Fragment,{})},Lo=({timeframes:e,firstMonthOfFY:r,allTimeframeTicks:o,selectedCOABalancesRange:s,selectedTimeframe:l,onTimeframeSelectionChanged:i,onAdditionalBalanceSelectionChanged:h,mode:n,isCompareModeOn:p,analytics:g})=>t.jsx(To,{children:t.jsxs(jo,{children:[t.jsx($o,{children:t.jsx(qe,{timeframe:{allowedTimeframes:e,selectedTimeframe:l,onTimeframeSelectionChanged:c=>{g?.trackTimeframeSwitch(V(c),z("operating_expenses_by_vendor")),(c==="month"||c==="quarter")&&i(c),n==="compare_mode"&&!p&&h(p,p?["this_period_vs_last_period_percent"]:[])}},toggle:{label:B.getLocalizedStrings().compareSwitchLabel,isOn:p,isToggleDisabled:!1,onValueChanged:c=>{g?.trackCompareMode(c,z("operating_expenses_by_vendor"),V(l)),h(c,c?["this_period_vs_last_period_percent"]:[])}}})}),t.jsx(He,{firstMonthOfFY:r,timeframe:l,timeframeTicks:o,selection:{selectedTicks:oe(o,s),highlightedOfSelectedTicks:oe(o,s)}})]})}),Fo=({isEmptyPeriod:e,report:r})=>{const o=H();return e?t.jsx(No,{children:t.jsx(Xe,{title:B.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(Do,{windowSize:o,children:t.jsx(le,{children:({height:s,width:l})=>t.jsx(po,{selectedRangeReport:r,width:l,height:s,isDetailPage:!0,showBarHoverBackground:!1})})})},Vo=({report:e,uiState:r,isEmptyPeriod:o,reference:s,onAdditionalBalanceSelectionChanged:l,onTableScroll:i,onSortOrderChanged:h,onVendorNameAndBalanceClicked:n,handleFetchOpExByVendor:p,onPageFetchStarted:g,analytics:c})=>{const C=r.mode==="compare_mode",_=k=>{c?.trackCompareFilterChange(k==="compare_mode_percent"?"percentage":"amount",z("operating_expenses_by_vendor"),V(r.timeframe),"dropdown"),l(C,[k==="compare_mode_percent"?"this_period_vs_last_period_percent":"this_period_vs_last_period"])},f=r.selectedAdditionalBalances.includes("this_period_vs_last_period_percent")?"compare_mode_percent":"compare_mode_amount",[d,b]=y.useState(void 0),[S,v]=y.useState(void 0),P=H(),R=q(),j=!(P==="small"||P==="medium-compact");y.useEffect(()=>{const k={reportId:e.reportId,mode:r.mode==="compare_mode"?"this_period_vs_period_before":"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:Te(),dataAvailable:e.dataAvailable,opexByVendorConfig:{sortKey:r.sortKey[r.timeframe],sortOrder:r.sortOrder[r.timeframe],isCompareModeOn:r.mode==="compare_mode",isAccountColumnShown:!0,isClassColumnShown:!0,onSortOrderChanged:h,sortOrSearchInProgress:r.sortOrSearchInProgress,pageFetchInProgress:r.pageFetchInProgress,onVendorNameAndBalanceClicked:n}};if(d==null||!ie(S,e)){const T=bo(e,r,k,j);v(e),b(T)}else{const T=_o(d,k,e,j);b(T)}},[r.mode,e]);const I=k=>k<e.opexBalances.length,M=()=>{r.pageToken[r.timeframe]!=null&&e.fetchState==="Completed"&&(g(),p(!0))},A=e.opexBalances.length;return t.jsx(Io,{windowSize:P,ref:s,children:o?t.jsx(Je,{}):d!=null?t.jsx(Mo,{children:t.jsx(Qe,{backgroundColor:new je(R.colors.grey4),rootNodes:d,type:"name+balances_actual",compareMode:f,isSticky:{isStickyHeader:j,isStickyName:j},treeNodePadding:{left:E.contentPaddingLeft.value(P),right:E.contentPaddingRight.value(P)},nodeOpenStatus:{},scrollPosition:r.scrollPosition,onCompareModeChanged:_,onScroll:i,infiniteLoadingProps:{isItemLoaded:I,itemCount:A,loadMoreItems:M}})}):null})},zo=e=>{const r=e.startDate,o=e.endDate,{vendors:s,dateFormat:l}=B.getLocalizedStrings();return`${s.opExByVendor.in} ${r.format(l.visual.MMMYYFormat)} - ${o.format(l.visual.MMMYYFormat)}`};export{mr as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as i,j as r}from"./index-
|
|
1
|
+
import{u as i,j as r}from"./index-rGMXK0Rc.js";import{n}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const p=n.div`
|
|
2
2
|
display: ${({isOpen:o})=>o?"block":"none"};
|
|
3
3
|
position: fixed;
|
|
4
4
|
top: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o,
|
|
1
|
+
import{j as o,D as M,u as T,X as v,Y as A,aV as re,M as c,K as ie,c as ae,C as D,p as ce,o as s,H as le,a7 as de,c0 as ge,c1 as pe,aS as me,m as P,l as Y,a_ as he,c2 as ue,a5 as fe,a6 as xe,ao as we}from"./index-rGMXK0Rc.js";import{n as r,b as F}from"./vendor-CnQcJ2Lu.js";import{L as Se}from"./NavBarWithPicker-DgFXO4Py-B8a2N5H7.js";import{m as je}from"./analyticsHelper-D2Tw-gFs-CfilQYvq.js";import{M as $e}from"./TimeframeSwitcherWithToggle-BxG4mfwZ-hDOmM0BL.js";import{R as Ce,a as Pe}from"./CollapsableReportTable-UQFDb8XE-4tPDRPlF.js";import{M as E}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import{T as be,I as ke,L as ye}from"./mapSectionWithAcOnlyToTreeNode-CuqkYL_a-D2dufnQP.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-Dz-UvEDI-BLldSj9r.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-D7Ebofq5-DCuWRjmL.js";import"./AccountRow-CKtmIbKO-BzBAql1b.js";const K="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ze=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -54,9 +54,9 @@ import{j as o,A as M,u as T,X as v,Y as A,aV as re,M as c,K as ie,d as ae,C as Y
|
|
|
54
54
|
color: ${e=>e.theme.colors.champion};
|
|
55
55
|
`,O=r(xe)`
|
|
56
56
|
color: ${e=>e.theme.colors.champion};
|
|
57
|
-
`,
|
|
57
|
+
`,_=r(fe)`
|
|
58
58
|
color: ${e=>e.theme.colors.champion};
|
|
59
|
-
`,
|
|
59
|
+
`,B=r(ue)`
|
|
60
60
|
color: ${e=>e.theme.colors.champion};
|
|
61
61
|
`,k=r.div``,y=r.div`
|
|
62
62
|
padding-left: ${s.sp3};
|
|
@@ -70,7 +70,7 @@ import{j as o,A as M,u as T,X as v,Y as A,aV as re,M as c,K as ie,d as ae,C as Y
|
|
|
70
70
|
margin: ${s.sp3} auto;
|
|
71
71
|
max-width: 422px;
|
|
72
72
|
color: ${e=>e.theme.colors.hero};
|
|
73
|
-
`,Ae=()=>{const e=T(),t=v();return o.jsxs(X,{windowSize:t,children:[o.jsx(Q,{windowSize:t,children:o.jsx(Z,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:
|
|
73
|
+
`,Ae=()=>{const e=T(),t=v();return o.jsxs(X,{windowSize:t,children:[o.jsx(Q,{windowSize:t,children:o.jsx(Z,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:q,alt:"forecast-promo",style:{width:"100%",height:"auto"}}):o.jsx("img",{src:K,alt:"forecast-promo",style:{width:"100%",height:"auto"}})})}),o.jsxs(J,{windowSize:t,children:[o.jsxs(b,{windowSize:t,children:[o.jsx(k,{children:o.jsx(ee,{})}),o.jsxs(y,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(b,{windowSize:t,children:[o.jsx(k,{children:o.jsx(oe,{})}),o.jsxs(y,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(b,{windowSize:t,children:[o.jsx(k,{children:o.jsx(te,{})}),o.jsxs(y,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})]})},Fe=()=>{const e=T(),t=v();return o.jsxs(X,{windowSize:t,children:[o.jsxs(J,{windowSize:t,children:[o.jsxs(b,{windowSize:t,style:{width:"408px"},children:[o.jsx(k,{children:o.jsx(ee,{})}),o.jsxs(y,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(b,{windowSize:t,style:{width:"275px",alignSelf:"end"},children:[o.jsx(k,{children:o.jsx(oe,{})}),o.jsxs(y,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(b,{windowSize:t,style:{width:"408px"},children:[o.jsx(k,{children:o.jsx(te,{})}),o.jsxs(y,{children:[o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(N,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]}),o.jsx(Q,{windowSize:t,children:o.jsx(Z,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:q,alt:"forecast-promo",style:{width:"640px",height:"402px"}}):o.jsx("img",{src:K,alt:"forecast-promo",style:{width:"640px",height:"402px"}})})})]})},Ne=({meetingUrl:e,onBackClick:t,onClickMenuIcon:n})=>{const a=T(),l=v(),d=()=>{window.open(e.toString(),"_blank")};return o.jsxs(ze,{"data-testid":A("forecast-promo-page"),children:[o.jsx(re,{title:c.getLocalizedStrings().forecastPromoPage.title,backgroundColor:a.colors.grey4,onBackClick:t,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:n,source:"ForecastPromoPage"}),o.jsxs(ve,{"data-testid":A("forecast-promo-container"),windowSize:l,children:[l==="small"?o.jsx(Te,{children:c.getLocalizedStrings().forecastPromoPage.promoText}):o.jsx(Le,{children:c.getLocalizedStrings().forecastPromoPage.promoText}),l==="small"?o.jsx(Ae,{}):o.jsx(Fe,{}),o.jsxs(Ie,{"data-testid":A("forecast-promo-bottom-container"),children:[o.jsx(ie,{variant:"primary",label:c.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:d}),o.jsx(Me,{children:c.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})]})};function Oe(e,t,n=!0){const a=c.getLocalizedStrings().reports,l=e.filter.balancesRange.numberOfPeriods,d=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?e.sections.expenses.balances:e.sections.income!=null?e.sections.income.balances:[],m=H({balances:d,config:t}),p=[];return p.push(m),e.idsInOrder.forEach(i=>{if(Y.isPandLReportViewSectionID(i)===!0){const f=e.sections[i];if(f==null)return;f.accountGroups.length>0?p.push(be({section:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t})):p.push(ke({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}else Y.isPandLReportViewCalculatedSectionID(i)===!0&&p.push(ye({calculatedSection:e.calculatedSections[i],numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}),{config:t,headerNodes:n?[m]:[],contentNodes:p}}function _e(e,t,n,a=!0){Object.assign(e.config,t);const l=n.sections.expenses.balances.length>0?[...n.sections.expenses.balances,...n.sections.expenses.additionalBalances]:[...n.sections.income.balances,...n.sections.income.additionalBalances],d=H({balances:l,config:t,nodeId:e.contentNodes[0].id}),m=e.contentNodes.slice(1);return m.forEach(p=>se(p,t)),{config:t,headerNodes:a?[d]:[],contentNodes:[d,...m]}}function se(e,t){Object.assign(e.reportElementData.config,t),e.children.forEach(n=>se(n,t))}const L={contentPaddingLeft:new D(P[3],P[3],P[8]),contentPaddingRight:new D(P[3],P[3],P[8])},Be=r.div`
|
|
74
74
|
display: flex;
|
|
75
75
|
flex: 1 1 auto;
|
|
76
76
|
min-height: 100%;
|
|
@@ -104,4 +104,4 @@ import{j as o,A as M,u as T,X as v,Y as A,aV as re,M as c,K as ie,d as ae,C as Y
|
|
|
104
104
|
align-items: center;
|
|
105
105
|
justify-content: center;
|
|
106
106
|
margin-bottom: ${s.sp3};
|
|
107
|
-
`,
|
|
107
|
+
`,De=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:a,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:m,onBackClick:p,isPandLReportFetching:i,onClickMenuIcon:f})=>{const h=v(),u=[];for(let g=0;g<e.length;++g)u.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:u,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ce.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const z=e[parseInt(g)];n?.(z.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:i},onBackClick:p,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:f},$={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:a,onValueChanged:l},timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:d,onTimeframeSelectionChanged:g=>m?.(g)}};return o.jsxs(Ve,{paddingLeft:L.contentPaddingLeft.value(h),paddingRight:L.contentPaddingRight.value(h),children:[o.jsx(Se,{...x}),i?"":o.jsx(We,{children:o.jsx($e,{...$})})]})},Ye=({report:e,type:t,isActualVsForecastOn:n,compareMode:a,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:m,onTableScroll:p,nodeOpenStatus:i,onNodeCollapseToggled:f})=>{const h=T(),u=v(),[x,$]=F.useState(void 0),[g,z]=F.useState(void 0),C=!(u==="small"||u==="medium-compact"),I=n===!0?"actual_vs_forecast":"none";return F.useEffect(()=>{const S={reportId:`${e.reportId}+${e.forecast?.id}`,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:I,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:Pe(t)===!0&&n===!1?"filter_forecast_nil_balances":"filter_actual_forecast_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:he()};if(x==null||!le(g,e)){const w=Oe(e,S,C);z(e),$(w)}else{const w=_e(x,S,e,C);$(w)}},[t,n,e]),x!=null?o.jsx(Ce,{backgroundColor:new de(h.colors.grey4),rootNodes:x,type:t,compareMode:a,isSticky:{isStickyHeader:C,isStickyName:C},treeNodePadding:{left:L.contentPaddingLeft.value(u),right:L.contentPaddingRight.value(u)},onAccountClick:l==null?void 0:(S,w)=>{l(S,w)},onCompareModeChanged:d,scrollPosition:m,onScroll:p,nodeOpenStatus:i,onNodeCollapseToggled:f}):null};function po({selectedTimeframe:e,isForecastVsActualOn:t,compareMode:n,forecastList:a,selectedForecast:l,pandLreport:d,type:m,meetingUrl:p,analytics:i,onForecastSelectionChanged:f,onTimeframeChanged:h,onForecastVsActualsCompareToggle:u,onAccountBalanceClick:x,onCompareModeChanged:$,scrollPosition:g,onTableScroll:z,nodeOpenStatus:C,onNodeCollapseToggled:I,onBackClick:S,onClickMenuIcon:w}){const R=[a.fetchState,d.fetchState],V=l?.index??-1;return ne(R)===!0||a.fetchState==="Completed"&&a.forecasts.length===0?o.jsx(Ne,{meetingUrl:p,onBackClick:S,onClickMenuIcon:w}):G([a.fetchState])===!0?o.jsx(U,{fetchState:Ge(R)}):o.jsxs(Be,{children:[o.jsx(De,{forecastList:a.forecasts,selectedForecastIndex:V,onForecastSelectionChanged:(j,W)=>{i?.trackForecastSwitch(M.Event.profitAndLossWithForecast,a.forecasts[W].name),f?.(j,W)},vsActualOn:t,onVsActualChanged:j=>{i?.trackForecastVsActualMode(M.Event.profitAndLossWithForecast,a.forecasts[V].name,j),u?.(j)},selectedTimeframe:e,onTimeframeChanged:j=>{i?.trackTimeframeSwitch(je(j),M.Event.profitAndLossWithForecast),h?.(j)},onBackClick:S,isPandLReportFetching:G([d.fetchState]),onClickMenuIcon:w}),d.fetchState==="In-Progress"?o.jsx(U,{fetchState:"In-Progress"}):o.jsx(Ee,{children:o.jsx(Ye,{report:d,type:m,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:$,scrollPosition:g,onTableScroll:z,nodeOpenStatus:C,onNodeCollapseToggled:I})})]})}const Ue=e=>e.reduce((t,n)=>t===!0&&n==="Completed",!0),ne=e=>e.reduce((t,n)=>t===!0||n==="Error",!1),G=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),Ge=e=>Ue(e)===!0?"Completed":ne(e)===!0?"Error":"In-Progress";export{po as default,G as isAnyInProgress};
|