![]() 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 : /proc/self/root/opt/mattermost/client/ |
Upload File : |
{"version":3,"file":"7994.1ac1aab857dd76bf160d.js","mappings":"gvBAgBA,MAAMA,EAAaC,IAAAA,IAAUC,WAAA,CAAAC,YAAA,cAAVF,CAAU,4GAQvBG,EAAgBH,IAAAA,IAAUC,WAAA,CAAAC,YAAA,iBAAVF,CAAU,qDAkBjB,MAAMI,UAAiBC,IAAAA,cAA2BC,WAAAA,GAAA,SAAAC,WAAAC,EAAA,qCAC7BC,IAC5BA,EAAMC,kBACN,MAAMC,EAA6B,CAC/BC,QAASC,EAAAA,GAAiBC,cAC1BC,WAAYC,EAAAA,GAEhBC,KAAKC,MAAMC,QAAQC,UAAUT,EAA2B,GAC3D,CAEDU,MAAAA,GACI,IAAKJ,KAAKC,MAAMI,cAAgBL,KAAKC,MAAMK,OACvC,OAAO,KAGX,IAAIC,EACAnB,IAAAA,cAAA,MACIoB,GAAG,iBACHC,UAAU,aACV,cAAaT,KAAKC,MAAMK,QAEvBN,KAAKC,MAAMS,iBAcpB,OAVIV,KAAKC,MAAMU,kBACXJ,EACInB,IAAAA,cAACwB,EAAAA,EAAW,CACRC,MAAOb,KAAKC,MAAMU,iBAEjBJ,IAMTnB,IAAAA,cAAA,OACIqB,UAAU,8BACVD,GAAG,+BAEHpB,IAAAA,cAACN,EAAU,CACP0B,GAAG,aACHC,UAAU,gBAEVrB,IAAAA,cAACF,EAAa,KACTqB,EACDnB,IAAAA,cAAA,OACIoB,GAAG,oBACHC,UAAU,yBAEVrB,IAAAA,cAAA,OACIoB,GAAG,iBACHC,UAAU,cAET,IAAMT,KAAKC,MAAMI,YAAYS,UAElC1B,IAAAA,cAAC2B,EAAAA,EAAiB,CACdC,aAAa,EACbC,WAAY,CACRC,cAAe,MACfC,WAAY,GAEhBC,QAASpB,KAAKqB,kCAO1C,EACH9B,EAtEoBJ,EAAQ,aAXzBwB,gBAAeW,IAAAA,OACfhB,OAAMgB,IAAAA,OAENZ,gBAAeY,IAAAA,OACfpB,QAAOoB,IAAAA,MAAA,CAIPnB,UAASmB,IAAAA,KAAAC,aAAAA,aCHb,SAAeC,EAAAA,EAAAA,UApBf,SAAyBC,GACrB,MAAMC,GAAcC,EAAAA,EAAAA,IAAeF,GAGnC,MAAO,CACHpB,aAHgBuB,EAAAA,EAAAA,IAAeH,GAI/Bd,gBAAiBe,aAAW,EAAXA,EAAaG,YAC9BnB,gBAAiBgB,aAAW,EAAXA,EAAaI,aAC9BxB,OAAQoB,aAAW,EAAXA,EAAalB,GAE7B,IAEA,SAA4BuB,GACxB,MAAO,CACH7B,SAAS8B,EAAAA,EAAAA,oBAAmB,CACxB7B,UAASA,EAAAA,GACV4B,GAEX,GAEA,CAA4D5C,GChC5D,ECIe,WACX,MACM8C,GADOC,EAAAA,EAAAA,WACUC,cAAc,CAAC3B,GAAI,mCAAoC4B,eAAgB,qBAE9F,OACIhD,IAAAA,cAAA,OACIoB,GAAG,YACH,aAAYyB,EACZI,UAAW,EACXC,KAAK,cACL7B,UAAU,gDACV,uBAAqB,KAErBrB,IAAAA,cAAA,OACIqB,UAAU,UAEVrB,IAAAA,cAACD,EAAQ,OAIzB,C","sources":["webpack://mattermost-webapp/./src/components/sidebar/mobile_sidebar_header/contents/contents.tsx","webpack://mattermost-webapp/./src/components/sidebar/mobile_sidebar_header/contents/index.ts","webpack://mattermost-webapp/./src/components/sidebar/mobile_sidebar_header/index.ts","webpack://mattermost-webapp/./src/components/sidebar/mobile_sidebar_header/mobile_sidebar_header.tsx"],"sourcesContent":["// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport React from 'react';\nimport styled from 'styled-components';\n\nimport type {UserProfile} from '@mattermost/types/users';\n\nimport CustomStatusEmoji from 'components/custom_status/custom_status_emoji';\nimport CustomStatusModal from 'components/custom_status/custom_status_modal';\nimport WithTooltip from 'components/with_tooltip';\n\nimport {ModalIdentifiers} from 'utils/constants';\n\nimport type {ModalData} from 'types/actions';\n\nconst HeaderLine = styled.div`\n display: flex;\n padding: 2px 16px 0 0;\n flex-grow: 1;\n user-select: none;\n color: var(--sidebar-header-text-color);\n`;\n\nconst VerticalStack = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n`;\n\ntype Props = {\n teamDescription?: string;\n teamId?: string;\n currentUser: UserProfile;\n teamDisplayName?: string;\n actions: Actions;\n};\n\ntype Actions = {\n openModal: <P>(modalData: ModalData<P>) => void;\n};\n\nexport default class Contents extends React.PureComponent<Props> {\n handleCustomStatusEmojiClick = (event: React.MouseEvent) => {\n event.stopPropagation();\n const customStatusInputModalData = {\n modalId: ModalIdentifiers.CUSTOM_STATUS,\n dialogType: CustomStatusModal,\n };\n this.props.actions.openModal(customStatusInputModalData);\n };\n\n render() {\n if (!this.props.currentUser || !this.props.teamId) {\n return null;\n }\n\n let teamNameWithToolTip = (\n <h1\n id='headerTeamName'\n className='team__name'\n data-teamid={this.props.teamId}\n >\n {this.props.teamDisplayName}\n </h1>\n );\n\n if (this.props.teamDescription) {\n teamNameWithToolTip = (\n <WithTooltip\n title={this.props.teamDescription}\n >\n {teamNameWithToolTip}\n </WithTooltip>\n );\n }\n\n return (\n <div\n className='SidebarHeaderDropdownButton'\n id='sidebarHeaderDropdownButton'\n >\n <HeaderLine\n id='headerInfo'\n className='header__info'\n >\n <VerticalStack>\n {teamNameWithToolTip}\n <div\n id='headerInfoContent'\n className='header__info__content'\n >\n <div\n id='headerUsername'\n className='user__name'\n >\n {'@' + this.props.currentUser.username}\n </div>\n <CustomStatusEmoji\n showTooltip={true}\n emojiStyle={{\n verticalAlign: 'top',\n marginLeft: 2,\n }}\n onClick={this.handleCustomStatusEmojiClick as unknown as () => void}\n />\n </div>\n </VerticalStack>\n </HeaderLine>\n </div>\n );\n }\n}\n","// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport {connect} from 'react-redux';\nimport {bindActionCreators} from 'redux';\nimport type {Dispatch} from 'redux';\n\nimport {getCurrentTeam} from 'mattermost-redux/selectors/entities/teams';\nimport {getCurrentUser} from 'mattermost-redux/selectors/entities/users';\n\nimport {openModal} from 'actions/views/modals';\n\nimport type {GlobalState} from 'types/store';\n\nimport Contents from './contents';\n\nfunction mapStateToProps(state: GlobalState) {\n const currentTeam = getCurrentTeam(state);\n const currentUser = getCurrentUser(state);\n\n return {\n currentUser,\n teamDescription: currentTeam?.description,\n teamDisplayName: currentTeam?.display_name,\n teamId: currentTeam?.id,\n };\n}\n\nfunction mapDispatchToProps(dispatch: Dispatch) {\n return {\n actions: bindActionCreators({\n openModal,\n }, dispatch),\n };\n}\n\nexport default connect(mapStateToProps, mapDispatchToProps)(Contents);\n","// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport MobileSidebarHeader from './mobile_sidebar_header';\nexport default MobileSidebarHeader;\n","// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport React from 'react';\nimport {useIntl} from 'react-intl';\n\nimport Contents from './contents';\n\nexport default function MobileSidebarHeader() {\n const intl = useIntl();\n const ariaLabel = intl.formatMessage({id: 'accessibility.sections.lhsHeader', defaultMessage: 'team menu region'});\n\n return (\n <div\n id='lhsHeader'\n aria-label={ariaLabel}\n tabIndex={-1}\n role='application'\n className='SidebarHeader team__header theme a11y__region'\n data-a11y-sort-order='5'\n >\n <div\n className='d-flex'\n >\n <Contents/>\n </div>\n </div>\n );\n}\n"],"names":["HeaderLine","styled","withConfig","displayName","VerticalStack","Contents","React","constructor","arguments","_defineProperty","event","stopPropagation","customStatusInputModalData","modalId","ModalIdentifiers","CUSTOM_STATUS","dialogType","CustomStatusModal","this","props","actions","openModal","render","currentUser","teamId","teamNameWithToolTip","id","className","teamDisplayName","teamDescription","WithTooltip","title","username","CustomStatusEmoji","showTooltip","emojiStyle","verticalAlign","marginLeft","onClick","handleCustomStatusEmojiClick","_pt","isRequired","connect","state","currentTeam","getCurrentTeam","getCurrentUser","description","display_name","dispatch","bindActionCreators","ariaLabel","useIntl","formatMessage","defaultMessage","tabIndex","role"],"sourceRoot":""}