VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /opt/mattermost/client/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/mattermost/client/5774.fa83b11ff71d0180554d.js.map
{"version":3,"file":"5774.fa83b11ff71d0180554d.js","mappings":"qOAeO,SAASA,EAAkCC,GAC9C,MAAO,CACHC,KAAMC,EAAAA,GAAYC,oCAClBH,OAER,CAKO,SAASI,EAA8CJ,GAC1D,OAAKA,EAOE,CACHC,KAAMC,EAAAA,GAAYG,mDAClBL,QARO,CACHC,KAAMC,EAAAA,GAAYI,qDAClBN,KAAM,KAQlB,CAEO,SAASO,IAAiF,IAAlEC,EAAOC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAC,EACtC,OAAOG,MAAOC,EAAUC,KACpB,IAAId,EACJ,IACIA,QAAae,EAAAA,GAAQC,qBAAqBR,EAC9C,CAAE,MAAOS,GAGL,OAFAC,EAAAA,EAAAA,IAAuBD,EAAOJ,EAAUC,GACxCD,GAASM,EAAAA,EAAAA,IAASF,IACX,CAACA,MAAOA,EACnB,CAEA,MAAO,CAACjB,OAAK,CAErB,CAEO,SAASoB,IAAmF,IAA1DC,EAAMZ,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,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AAA,IAE5B,OAAKH,GAAYE,EAMVE,IAAAA,cAACpE,EAAiB,MALd,IAMf,C","sources":["webpack://mattermost-webapp/./src/actions/views/admin.ts","webpack://mattermost-webapp/./src/components/cloud_effects/admin_cloud_effects.ts","webpack://mattermost-webapp/./src/components/common/hooks/useShowAdminLimitReached.ts","webpack://mattermost-webapp/./src/components/common/hooks/usePreference.ts","webpack://mattermost-webapp/./src/components/cloud_effects/index.tsx"],"sourcesContent":["// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport type {ServerError} from '@mattermost/types/errors';\nimport type {UserReportOptions, UserReport, UserReportFilter} from '@mattermost/types/reports';\n\nimport {logError} from 'mattermost-redux/actions/errors';\nimport {forceLogoutIfNecessary} from 'mattermost-redux/actions/helpers';\nimport {Client4} from 'mattermost-redux/client';\n\nimport {ActionTypes} from 'utils/constants';\n\nimport type {ActionFuncAsync} from 'types/store';\nimport type {AdminConsoleUserManagementTableProperties} from 'types/store/views';\n\nexport function setNeedsLoggedInLimitReachedCheck(data: boolean) {\n    return {\n        type: ActionTypes.NEEDS_LOGGED_IN_LIMIT_REACHED_CHECK,\n        data,\n    };\n}\n\n/**\n * Action to set the properties of the admin console user management table. Only pass the properties you want to set/modify. If you pass no properties, the table properties will be cleared.\n */\nexport function setAdminConsoleUsersManagementTableProperties(data?: Partial<AdminConsoleUserManagementTableProperties>) {\n    if (!data) {\n        return {\n            type: ActionTypes.CLEAR_ADMIN_CONSOLE_USER_MANAGEMENT_TABLE_PROPERTIES,\n            data: null,\n        };\n    }\n\n    return {\n        type: ActionTypes.SET_ADMIN_CONSOLE_USER_MANAGEMENT_TABLE_PROPERTIES,\n        data,\n    };\n}\n\nexport function getUserReports(options = {} as UserReportOptions): ActionFuncAsync<UserReport[]> {\n    return async (dispatch, getState) => {\n        let data;\n        try {\n            data = await Client4.getUsersForReporting(options);\n        } catch (error) {\n            forceLogoutIfNecessary(error, dispatch, getState);\n            dispatch(logError(error));\n            return {error: error as ServerError};\n        }\n\n        return {data};\n    };\n}\n\nexport function getUserCountForReporting(filter = {} as UserReportFilter): ActionFuncAsync<number> {\n    return async (dispatch, getState) => {\n        let data;\n        try {\n            data = await Client4.getUserCountForReporting(filter);\n        } catch (error) {\n            forceLogoutIfNecessary(error, dispatch, getState);\n            dispatch(logError(error));\n            return {error: error as ServerError};\n        }\n\n        return {data};\n    };\n}\n\nexport function startUsersBatchExport(tableFilters = {} as UserReportOptions): ActionFuncAsync {\n    return async (dispatch, getState) => {\n        try {\n            await Client4.startUsersBatchExport(tableFilters);\n        } catch (error) {\n            forceLogoutIfNecessary(error, dispatch, getState);\n            dispatch(logError(error));\n            return {error: error as ServerError};\n        }\n\n        return {data: true};\n    };\n}\n","// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport useShowAdminLimitReached from 'components/common/hooks/useShowAdminLimitReached';\n\nexport default function AdminCloudEffects() {\n    useShowAdminLimitReached();\n\n    return null;\n}\n","// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\n// import React from 'react';\nimport {defineMessage, useIntl} from 'react-intl';\nimport {useDispatch, useSelector} from 'react-redux';\n\nimport {setNeedsLoggedInLimitReachedCheck} from 'actions/views/admin';\nimport {closeModal, openModal} from 'actions/views/modals';\nimport {getNeedsLoggedInLimitReachedCheck} from 'selectors/views/admin';\n\nimport CloudUsageModal from 'components/cloud_usage_modal';\nimport useOpenPricingModal from 'components/common/hooks/useOpenPricingModal';\n\nimport {ModalIdentifiers, Preferences} from 'utils/constants';\n\nimport useGetLimits from './useGetLimits';\nimport useGetUsage from './useGetUsage';\nimport usePreference from './usePreference';\n\n// intended to only be run for admins of cloud instances.\nexport default function useShowAdminLimitReached() {\n    const usage = useGetUsage();\n    const dispatch = useDispatch();\n    const intl = useIntl();\n    const [limits, limitsLoaded] = useGetLimits();\n    const needsLoggedInLimitReachedCheck = useSelector(getNeedsLoggedInLimitReachedCheck);\n    const messageLimit = limits?.messages?.history;\n    const [shownLimitsReachedOnLogin, setShownLimitsReachedOnLogin] = usePreference(\n        Preferences.CATEGORY_CLOUD_LIMITS,\n        Preferences.SHOWN_LIMITS_REACHED_ON_LOGIN,\n    );\n    const openPricingModal = useOpenPricingModal();\n\n    if (!limitsLoaded || !usage.messages.historyLoaded || messageLimit === undefined || !needsLoggedInLimitReachedCheck || shownLimitsReachedOnLogin === 'true') {\n        return;\n    }\n\n    if (usage.messages.history > messageLimit) {\n        setShownLimitsReachedOnLogin('true');\n        dispatch(openModal({\n            modalId: ModalIdentifiers.CLOUD_LIMITS,\n            dialogType: CloudUsageModal,\n            dialogProps: {\n                title: defineMessage({\n                    id: 'workspace_limits.modals.limits_reached.title',\n                    defaultMessage: '{limitName} limit reached',\n                    values: {\n                        limitName: intl.formatMessage({\n                            id: 'workspace_limits.modals.limits_reached.title.message_history',\n                            defaultMessage: 'Message history',\n                        }),\n                    },\n                }),\n                description: defineMessage({\n                    id: 'workspace_limits.modals.limits_reached.description.message_history',\n                    defaultMessage: 'Your sent message history is no longer available but you can still send messages. Upgrade to a paid plan and get unlimited access to your message history.',\n                }),\n                secondaryAction: {\n                    message: defineMessage({\n                        id: 'workspace_limits.modals.close',\n                        defaultMessage: 'Close',\n                    }),\n                    onClick: () => {\n                        dispatch(closeModal(ModalIdentifiers.CLOUD_LIMITS));\n                    },\n                },\n                primaryAction: {\n                    message: defineMessage({\n                        id: 'workspace_limits.modals.view_plan_options',\n                        defaultMessage: 'View plan options',\n                    }),\n                    onClick: () => {\n                        dispatch(closeModal(ModalIdentifiers.CLOUD_LIMITS));\n                        openPricingModal({trackingLocation: 'admin_login_limit_reached_dashboard'});\n                    },\n                },\n                onClose: () => {\n                    dispatch(closeModal(ModalIdentifiers.CLOUD_LIMITS));\n                },\n                needsTheme: true,\n            },\n        }));\n    }\n    dispatch(setNeedsLoggedInLimitReachedCheck(false));\n}\n","// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport {useCallback, useMemo} from 'react';\nimport {useDispatch, useSelector} from 'react-redux';\n\nimport type {PreferenceType} from '@mattermost/types/preferences';\n\nimport {savePreferences} from 'mattermost-redux/actions/preferences';\nimport {getCurrentUserId} from 'mattermost-redux/selectors/entities/common';\nimport {get as getPreference} from 'mattermost-redux/selectors/entities/preferences';\nimport type {ActionResult} from 'mattermost-redux/types/actions';\n\nimport type {GlobalState} from 'types/store';\n\nexport default function usePreference(category: string, name: string): [string | undefined, (value: string) => Promise<ActionResult>] {\n    const dispatch = useDispatch();\n\n    const userId = useSelector(getCurrentUserId);\n    const preferenceValue = useSelector((state: GlobalState) => getPreference(state, category, name));\n\n    const setPreference = useCallback((value: string) => {\n        const preference: PreferenceType = {\n            category,\n            name,\n            user_id: userId,\n            value,\n        };\n        return dispatch(savePreferences(userId, [preference]));\n    }, [category, dispatch, name, userId]);\n\n    return useMemo(() => ([preferenceValue, setPreference]), [preferenceValue, setPreference]);\n}\n","// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport React from 'react';\nimport {useSelector} from 'react-redux';\n\nimport {isCurrentLicenseCloud} from 'mattermost-redux/selectors/entities/cloud';\nimport {isCurrentUserSystemAdmin} from 'mattermost-redux/selectors/entities/users';\n\nimport AdminCloudEffects from './admin_cloud_effects';\n\nexport default function CloudEffectsWrapper() {\n    const isCloud = useSelector(isCurrentLicenseCloud);\n\n    const isAdmin = useSelector(isCurrentUserSystemAdmin);\n\n    if (!isCloud || !isAdmin) {\n        return null;\n    }\n\n    // This render can become more complex if need be, rendering multiple\n    // effect components according to conditions.\n    return <AdminCloudEffects/>;\n}\n"],"names":["setNeedsLoggedInLimitReachedCheck","data","type","ActionTypes","NEEDS_LOGGED_IN_LIMIT_REACHED_CHECK","setAdminConsoleUsersManagementTableProperties","SET_ADMIN_CONSOLE_USER_MANAGEMENT_TABLE_PROPERTIES","CLEAR_ADMIN_CONSOLE_USER_MANAGEMENT_TABLE_PROPERTIES","getUserReports","options","arguments","length","undefined","async","dispatch","getState","Client4","getUsersForReporting","error","forceLogoutIfNecessary","logError","getUserCountForReporting","filter","startUsersBatchExport","tableFilters","AdminCloudEffects","_limits$messages","usage","useGetUsage","useDispatch","intl","useIntl","limits","limitsLoaded","useGetLimits","needsLoggedInLimitReachedCheck","useSelector","getNeedsLoggedInLimitReachedCheck","messageLimit","messages","history","shownLimitsReachedOnLogin","setShownLimitsReachedOnLogin","category","name","userId","getCurrentUserId","preferenceValue","state","getPreference","setPreference","useCallback","value","preference","user_id","savePreferences","useMemo","usePreference","Preferences","CATEGORY_CLOUD_LIMITS","SHOWN_LIMITS_REACHED_ON_LOGIN","openPricingModal","useOpenPricingModal","historyLoaded","openModal","modalId","ModalIdentifiers","CLOUD_LIMITS","dialogType","CloudUsageModal","dialogProps","title","defineMessage","id","defaultMessage","values","limitName","formatMessage","description","secondaryAction","message","onClick","closeModal","primaryAction","trackingLocation","onClose","needsTheme","useShowAdminLimitReached","CloudEffectsWrapper","isCloud","isCurrentLicenseCloud","isAdmin","isCurrentUserSystemAdmin","React"],"sourceRoot":""}

VaKeR 2022