![]() 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 : |
"use strict";(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[6676],{26676:(e,t,s)=>{s.r(t),s.d(t,{default:()=>C});var i=s(23453),n=s(52602),o=s(97282),r=s(35631),a=s(57898),m=s(8361),l=s(65952),c=s(26614),d=s(77440),u=s(80635),p=s(63647),y=s(97023),g=s.n(y),f=s(14778),h=s(85406),_=s(17518),b=s(78451),v=s(75644),E=s(4715);const M=[{name:"apiv3_deprecation",adminOnly:!0,title:g().createElement(f.FormattedMessage,{id:"system_notice.title",defaultMessage:"Notice from Mattermost"}),body:g().createElement(f.FormattedMessage,{id:"system_notice.body.api3",defaultMessage:"If you’ve created or installed integrations in the last two years, find out how <link>recent changes</link> may have affected them.",values:{link:e=>g().createElement(_.A,{href:"https://api.mattermost.com/#tag/APIv3-Deprecation",location:"system_notices"},e)}}),allowForget:!0,show:(e,t)=>!(t.InstallationDate>=new Date(2018,5,16,0,0,0,0).getTime())},{name:"advanced_permissions",adminOnly:!0,title:g().createElement(f.FormattedMessage,{id:"system_notice.title",defaultMessage:"Notice from Mattermost"}),body:g().createElement(f.FormattedMessage,{id:"system_notice.body.permissions",defaultMessage:"Some policy and permission System Console settings have moved with the release of <link>advanced permissions</link> into Mattermost Free and Professional.",values:{link:e=>g().createElement(_.A,{href:b.Uk.ONBOARD_ADVANCED_PERMISSIONS,location:"system_notices"},e)}}),allowForget:!0,show:(e,t,s)=>!("false"===s.IsLicensed||t.InstallationDate>new Date(2018,5,16,0,0,0,0).getTime()||"true"===s.IsLicensed&&s.IssuedAt>new Date(2018,5,16,0,0,0,0).getTime())},{name:"ee_upgrade_advice",adminOnly:!0,title:g().createElement(f.FormattedMessage,{id:"system_notice.title",defaultMessage:"Notice from Mattermost"}),body:g().createElement(f.FormattedMessage,{id:"system_notice.body.ee_upgrade_advice",defaultMessage:"Enterprise Edition is recommended to ensure optimal operation and reliability. <link>Learn more</link>.",values:{link:e=>g().createElement(_.A,{href:"https://mattermost.com/performance",location:"system_notices"},e)}}),allowForget:!1,show:(e,t,s,i)=>!(!i||Object.hasOwn(i,"TOTAL_USERS")||i.TOTAL_USERS&&i.TOTAL_USERS<1e4||"true"===s.IsLicensed&&"true"===s.Cluster)},{name:"ie11_deprecation",title:g().createElement(f.FormattedMessage,{id:"system_notice.title",defaultMessage:"Notice from Mattermost"}),allowForget:!1,body:g().createElement(f.FormattedMessage,{id:"system_notice.body.ie11_deprecation",defaultMessage:"Your browser, IE11, will no longer be supported in an upcoming release. <link>Find out how to move to another browser in one simple step</link>.",values:{link:e=>g().createElement(_.A,{href:"https://forum.mattermost.com/t/mattermost-is-dropping-support-for-internet-explorer-ie11-in-v5-16/7575",location:"system_notices"},e)}}),show:e=>!v.l(e,"5.16.0")&&!!E.VN()},{name:"GMasDM",allowForget:!0,title:g().createElement(f.FormattedMessage,{id:"system_notice.title.gm_as_dm",defaultMessage:"Updates to Group Messages"}),icon:g().createElement(h.InformationOutlineIcon,null),body:g().createElement(f.FormattedMessage,{id:"system_noticy.body.gm_as_dm",defaultMessage:"You will now be notified for all activity in your group messages along with a notification badge for every new message.{br}{br}You can configure this in notification preferences for each group message.",values:{br:g().createElement("br",null)}}),show:(e,t,s,i,n)=>"G"===(null==n?void 0:n.type)}];var w=s(62688),A=s.n(w),S=(s(17046),s(4290),s(37266));function N(e,t,s){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var s=t.call(e,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class F extends g().PureComponent{constructor(){var e;super(...arguments),e=this,N(this,"getCurrentNotice",(()=>{for(const t of this.props.notices){var e;if(!this.props.dismissedNotices[t.name]&&!this.props.preferences[t.name]&&(!t.adminOnly||this.props.isSystemAdmin)&&null!==(e=t.show)&&void 0!==e&&e.call(t,this.props.serverVersion,this.props.config,this.props.license,this.props.analytics,this.props.currentChannel))return t}return null})),N(this,"hide",(function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const s=e.getCurrentNotice();s&&(t||e.props.actions.savePreferences(e.props.currentUserId,[{user_id:e.props.currentUserId,category:b.pm.CATEGORY_SYSTEM_NOTICE,name:s.name,value:"dismissed"}]),e.props.actions.dismissNotice(s.name))})),N(this,"hideAndRemind",(()=>{this.hide(!0)})),N(this,"hideAndForget",(()=>{this.hide(!1)}))}componentDidMount(){this.props.isSystemAdmin&&this.props.actions.getStandardAnalytics()}componentDidUpdate(e){e.isSystemAdmin!==this.props.isSystemAdmin&&this.props.isSystemAdmin&&this.props.actions.getStandardAnalytics()}render(){const e=this.getCurrentNotice();if(null==e)return null;let t;e.adminOnly&&(t=g().createElement("div",{className:"system-notice__info"},g().createElement("i",{className:"fa fa-eye",title:this.props.intl.formatMessage({id:"system_notice.adminVisible.icon",defaultMessage:"Only visible to System Admins Icon"})}),g().createElement(f.FormattedMessage,{id:"system_notice.adminVisible",defaultMessage:"Only visible to System Admins"})));const s=e.icon||g().createElement(S.A,null);return g().createElement("div",{className:"system-notice bg--white"},g().createElement("div",{className:"system-notice__logo"},s),g().createElement("div",{className:"system-notice__body"},g().createElement("div",{className:"system-notice__title"},e.title),e.body,t,g().createElement("div",{className:"system-notice__footer"},g().createElement("button",{id:"systemnotice_remindme",className:"btn btn-sm btn-primary",onClick:this.hideAndRemind},g().createElement(f.FormattedMessage,{id:"system_notice.remind_me",defaultMessage:"Remind Me Later"})),e.allowForget&&g().createElement("button",{id:"systemnotice_dontshow",className:"btn btn-sm btn-tertiary",onClick:this.hideAndForget},g().createElement(f.FormattedMessage,{id:"system_notice.dont_show",defaultMessage:"Don't Show Again"})))))}}N(F,"propTypes",{currentUserId:A().string.isRequired,notices:A().array.isRequired,preferences:A().objectOf(A().any).isRequired,dismissedNotices:A().any.isRequired,isSystemAdmin:A().bool,serverVersion:A().string.isRequired,actions:A().shape({}).isRequired});const I=(0,f.injectIntl)(F),O=(0,d.dI)("getSystemNoticePreferences",b.pm.CATEGORY_SYSTEM_NOTICE),k=(0,m.Mz)("getPreferenceNameMap",O,(e=>{const t={};return e.forEach((e=>{t[e.name]=e})),t})),C=(0,i.connect)((function(e){const t=(0,c.Ay)(e),s=(0,c.zj)(e),i=e.entities.general.serverVersion,n=e.entities.admin.analytics;return{currentUserId:e.entities.users.currentUserId,preferences:k(e),dismissedNotices:e.views.notice.hasBeenDismissed,isSystemAdmin:(0,u.y4)(e,{permission:a.xB.MANAGE_SYSTEM}),notices:M,config:s,license:t,serverVersion:i,analytics:n,currentChannel:(0,l.Lw)(e)}}),(function(e){return{actions:(0,n.bindActionCreators)({savePreferences:r.SF,dismissNotice:p.L,getStandardAnalytics:o.ur},e)}}))(I)}}]); //# sourceMappingURL=6676.e59640a10b2d636ca479.js.map