![]() 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 : |
{"version":3,"file":"8360.841bf548522155de7948.js","mappings":"yNAeA,MAsHA,EAtHiCA,IAC7B,MAAMC,GAAOC,EAAAA,EAAAA,YACP,cAACC,GAAiBF,EAClBG,GAASC,EAAAA,EAAAA,aAAYC,EAAAA,IAkB3B,IAhBAC,EAAAA,EAAAA,YAAU,KACNC,SAASC,KAAKC,UAAUC,IAAI,UAC5B,MAAMC,EAAkCJ,SAASK,eAAe,QAKhE,OAJID,GACAA,EAAYF,UAAUC,IAAI,mBAGvB,KACHH,SAASC,KAAKC,UAAUI,OAAO,UAC/B,MAAMF,EAAkCJ,SAASK,eAAe,QAC5DD,GACAA,EAAYF,UAAUI,OAAO,kBACjC,CACH,GACF,KAEEV,EACD,OAAO,KAGX,MAAMW,EAAU,GA0DhB,OAxDIX,EAAOY,WACPD,EAAQE,KACJC,IAAAA,cAACC,EAAAA,EAAY,CACTC,IAAI,aACJC,GAAG,aACHC,UAAU,cACVC,SAAS,yBACTC,KAAMpB,EAAOY,WAEZb,EAAc,CAACkB,GAAI,mBAAoBI,eAAgB,YAKhErB,EAAOsB,mBACPX,EAAQE,KACJC,IAAAA,cAACC,EAAAA,EAAY,CACTC,IAAI,eACJC,GAAG,eACHC,UAAU,cACVC,SAAS,yBACTC,KAAMpB,EAAOsB,mBAEZvB,EAAc,CAACkB,GAAI,qBAAsBI,eAAgB,qBAKlErB,EAAOuB,oBACPZ,EAAQE,KACJC,IAAAA,cAACC,EAAAA,EAAY,CACTC,IAAI,aACJC,GAAG,aACHC,UAAU,cACVC,SAAS,yBACTC,KAAMpB,EAAOuB,oBAEZxB,EAAc,CAACkB,GAAI,mBAAoBI,eAAgB,YAKhErB,EAAOwB,UACPb,EAAQE,KACJC,IAAAA,cAACC,EAAAA,EAAY,CACTC,IAAI,YACJC,GAAG,YACHC,UAAU,cACVC,SAAS,yBACTC,KAAMpB,EAAOwB,UAEZzB,EAAc,CAACkB,GAAI,kBAAmBI,eAAgB,WAM/DP,IAAAA,cAAA,OAAKI,UAAU,cACXJ,IAAAA,cAAA,OAAKI,UAAU,eACVtB,EAAM6B,UAEXX,IAAAA,cAAA,OAAKI,UAAU,cACXJ,IAAAA,cAAA,OACIG,GAAG,iBACHC,UAAU,yBAEVJ,IAAAA,cAAA,OAAKI,UAAU,aACXJ,IAAAA,cAAA,QACIG,GAAG,eACHC,UAAU,+BAET,eAGTJ,IAAAA,cAAA,OAAKI,UAAU,aACXJ,IAAAA,cAAA,QACIG,GAAG,YACHC,UAAU,oCAAkC,UAAAQ,QAEjC,IAAIC,MAAOC,cAAa,sBAEvCd,IAAAA,cAAA,QAAMI,UAAU,cACXP,MAKf,C","sources":["webpack://mattermost-webapp/./src/components/header_footer_template/header_footer_template.tsx"],"sourcesContent":["// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport React, {useEffect} from 'react';\nimport {useIntl} from 'react-intl';\nimport {useSelector} from 'react-redux';\n\nimport {getConfig} from 'mattermost-redux/selectors/entities/general';\n\nimport ExternalLink from 'components/external_link';\n\ntype Props = {\n children?: React.ReactNode | React.ReactNodeArray;\n}\n\nconst HeaderFooterNotLoggedIn = (props: Props) => {\n const intl = useIntl();\n const {formatMessage} = intl;\n const config = useSelector(getConfig);\n\n useEffect(() => {\n document.body.classList.add('sticky');\n const rootElement: HTMLElement | null = document.getElementById('root');\n if (rootElement) {\n rootElement.classList.add('container-fluid');\n }\n\n return () => {\n document.body.classList.remove('sticky');\n const rootElement: HTMLElement | null = document.getElementById('root');\n if (rootElement) {\n rootElement.classList.remove('container-fluid');\n }\n };\n }, []);\n\n if (!config) {\n return null;\n }\n\n const content = [];\n\n if (config.AboutLink) {\n content.push(\n <ExternalLink\n key='about_link'\n id='about_link'\n className='footer-link'\n location='header_footer_template'\n href={config.AboutLink}\n >\n {formatMessage({id: 'web.footer.about', defaultMessage: 'About'})}\n </ExternalLink>,\n );\n }\n\n if (config.PrivacyPolicyLink) {\n content.push(\n <ExternalLink\n key='privacy_link'\n id='privacy_link'\n className='footer-link'\n location='header_footer_template'\n href={config.PrivacyPolicyLink}\n >\n {formatMessage({id: 'web.footer.privacy', defaultMessage: 'Privacy Policy'})}\n </ExternalLink>,\n );\n }\n\n if (config.TermsOfServiceLink) {\n content.push(\n <ExternalLink\n key='terms_link'\n id='terms_link'\n className='footer-link'\n location='header_footer_template'\n href={config.TermsOfServiceLink}\n >\n {formatMessage({id: 'web.footer.terms', defaultMessage: 'Terms'})}\n </ExternalLink>,\n );\n }\n\n if (config.HelpLink) {\n content.push(\n <ExternalLink\n key='help_link'\n id='help_link'\n className='footer-link'\n location='header_footer_template'\n href={config.HelpLink}\n >\n {formatMessage({id: 'web.footer.help', defaultMessage: 'Help'})}\n </ExternalLink>,\n );\n }\n\n return (\n <div className='inner-wrap'>\n <div className='row content'>\n {props.children}\n </div>\n <div className='row footer'>\n <div\n id='footer_section'\n className='footer-pane col-xs-12'\n >\n <div className='col-xs-12'>\n <span\n id='company_name'\n className='pull-right footer-site-name'\n >\n {'Mattermost'}\n </span>\n </div>\n <div className='col-xs-12'>\n <span\n id='copyright'\n className='pull-right footer-link copyright'\n >\n {`© 2015-${new Date().getFullYear()} Mattermost, Inc.`}\n </span>\n <span className='pull-right'>\n {content}\n </span>\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default HeaderFooterNotLoggedIn;\n"],"names":["props","intl","useIntl","formatMessage","config","useSelector","getConfig","useEffect","document","body","classList","add","rootElement","getElementById","remove","content","AboutLink","push","React","ExternalLink","key","id","className","location","href","defaultMessage","PrivacyPolicyLink","TermsOfServiceLink","HelpLink","children","concat","Date","getFullYear"],"sourceRoot":""}