{"size": 8517, "ext": "js", "max_stars_repo_path": "client/20.dfeb1436ca93018363a0.js", "max_stars_repo_name": "nafisfaysal/mogiTeams", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/20.dfeb1436ca93018363a0.js", "max_issues_repo_name": "nafisfaysal/mogiTeams", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/20.dfeb1436ca93018363a0.js", "max_forks_repo_name": "nafisfaysal/mogiTeams", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 4258.5, "max_line_length": 8465, "alphanum_fraction": 0.7567218504}
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1464:function(e,a){},1466:function(e,a){},1986:function(e,a,t){"use strict";t.r(a);var r=t(310),s=t(14),l=t(101),n=t(13),o=(t(137),t(172),t(35),t(595),t(33)),i=t.n(o),c=t(1445),u=t.n(c),m=t(7),d=t.n(m),g=t(1108),E=t(1106),f=t(0),_=t(1165);const p=({type:e,title:a})=>{let t=null;if(e)switch(e){case f.l.LOCAL_STORAGE:t=d.a.createElement(g.a,{id:"error.local_storage.title",defaultMessage:"Cannot Load Mattermost"});break;case f.l.PERMALINK_NOT_FOUND:t=d.a.createElement(g.a,{id:"permalink.error.title",defaultMessage:"Message Not Found"});break;case f.l.OAUTH_ACCESS_DENIED:t=d.a.createElement(g.a,{id:"error.oauth_access_denied.title",defaultMessage:"Authorization Error"});break;case f.l.OAUTH_MISSING_CODE:t=d.a.createElement(g.a,{id:"error.oauth_missing_code.title",defaultMessage:"Mattermost Needs Your Help"});break;case f.l.TEAM_NOT_FOUND:t=d.a.createElement(g.a,{id:"error.team_not_found.title",defaultMessage:"Team Not Found"});break;case f.l.CHANNEL_NOT_FOUND:t=d.a.createElement(g.a,{id:"error.channel_not_found.title",defaultMessage:"Channel Not Found"});break;case f.l.PAGE_NOT_FOUND:default:t=d.a.createElement(g.a,{id:"error.not_found.title",defaultMessage:"Page Not Found"})}else t=a||n.hb("error.generic.title","Error");return t};p.propTypes={type:i.a.oneOfType([i.a.string,i.a.oneOf([null])]),title:i.a.string.isRequired};var h=p,N=t(28);const b=({url:e,messageId:a,defaultMessage:t})=>d.a.createElement("a",{href:e,rel:"noopener noreferrer",target:"_blank"},d.a.createElement(g.a,{id:a,defaultMessage:t}));b.propTypes={url:i.a.string,messageId:i.a.string,defaultMessage:i.a.string},b.defaultProps={url:"",messageId:"",defaultMessage:""};var M=b;const O=({type:e,message:a,service:t,isGuest:r})=>{let s=null;if(e)switch(e){case f.l.LOCAL_STORAGE:s=d.a.createElement("div",null,d.a.createElement(g.a,{id:"error.local_storage.message",defaultMessage:"Mattermost was unable to load because a setting in your browser prevents the use of its local storage features. To allow Mattermost to load, try the following actions:"}),d.a.createElement("ul",null,d.a.createElement("li",null,d.a.createElement(g.a,{id:"error.local_storage.help1",defaultMessage:"Enable cookies"})),d.a.createElement("li",null,d.a.createElement(g.a,{id:"error.local_storage.help2",defaultMessage:"Turn off private browsing"})),d.a.createElement("li",null,d.a.createElement(g.a,{id:"error.local_storage.help3",defaultMessage:"Use a supported browser (IE 11, Chrome 61+, Firefox 60+, Safari 12+, Edge 42+)"}))));break;case f.l.PERMALINK_NOT_FOUND:s=d.a.createElement("p",null,d.a.createElement(g.a,{id:"permalink.error.access",defaultMessage:"Permalink belongs to a deleted message or to a channel to which you do not have access."}));break;case f.l.TEAM_NOT_FOUND:s=d.a.createElement("p",null,d.a.createElement(g.a,{id:"error.team_not_found.message",defaultMessage:"The team you're requesting is private or does not exist. Please contact your Administrator for an invitation."}));break;case f.l.CHANNEL_NOT_FOUND:s=d.a.createElement("p",null,r?d.a.createElement(g.a,{id:"error.channel_not_found.message_guest",defaultMessage:"Your guest account has no channels assigned. Please contact an administrator."}):d.a.createElement(g.a,{id:"error.channel_not_found.message",defaultMessage:"The channel you're requesting is private or does not exist. Please contact an Administrator to be added to the channel."}));break;case f.l.OAUTH_MISSING_CODE:s=d.a.createElement("div",null,d.a.createElement("p",null,d.a.createElement(g.a,{id:"error.oauth_missing_code",defaultMessage:"The service provider {service} did not provide an authorization code in the redirect URL.",values:{service:t}})),d.a.createElement("p",null,d.a.createElement(g.a,{id:"error.oauth_missing_code.google",defaultMessage:"For {link} make sure your administrator enabled the Google+ API.",values:{link:d.a.createElement(M,{url:"https://docs.mattermost.com/deployment/sso-google.html",messageId:Object(N.b)("error.oauth_missing_code.google.link"),defaultMessage:"Google Apps"})}})),d.a.createElement("p",null,d.a.createElement(g.a,{id:"error.oauth_missing_code.office365",defaultMessage:"For {link} make sure the administrator of your Microsoft organization has enabled the Mattermost app.",values:{link:d.a.createElement(M,{url:"https://docs.mattermost.com/deployment/sso-office.html",messageId:Object(N.b)("error.oauth_missing_code.office365.link"),defaultMessage:"Office 365"})}})),d.a.createElement("p",null,d.a.createElement(g.a,{id:"error.oauth_missing_code.gitlab",defaultMessage:"For {link} please make sure you followed the setup instructions.",values:{link:d.a.createElement(M,{url:"https://docs.mattermost.com/deployment/sso-gitlab.html",messageId:Object(N.b)("error.oauth_missing_code.gitlab.link"),defaultMessage:"GitLab"})}})),d.a.createElement("p",null,d.a.createElement(g.a,{id:"error.oauth_missing_code.forum",defaultMessage:"If you reviewed the above and are still having trouble with configuration, you may post in our {link} where we'll be happy to help with issues during setup.",values:{link:d.a.createElement(M,{url:"https://forum.mattermost.org/c/trouble-shoot",messageId:Object(N.b)("error.oauth_missing_code.forum.link"),defaultMessage:"Troubleshooting forum"})}})));break;case f.l.OAUTH_ACCESS_DENIED:s=d.a.createElement("p",null,d.a.createElement(g.a,{id:"error.oauth_access_denied",defaultMessage:"You must authorize Mattermost to log in with {service}.",values:{service:t}}));break;case f.l.PAGE_NOT_FOUND:default:s=d.a.createElement("p",null,d.a.createElement(g.a,{id:"error.not_found.message",defaultMessage:"The page you were trying to reach does not exist"}))}else s=a?d.a.createElement("p",null,a):d.a.createElement("p",null,d.a.createElement(g.a,{id:"error.generic.message",defaultMessage:"An error has occurred."}));return s};O.propTypes={type:i.a.oneOfType([i.a.string,i.a.oneOf([null])]),message:i.a.string,service:i.a.string,isGuest:i.a.bool};var k,y,v,T=O;class A extends d.a.PureComponent{componentDidMount(){document.body.setAttribute("class","sticky error")}componentWillUnmount(){document.body.removeAttribute("class")}render(){const{isGuest:e}=this.props,a=new URLSearchParams(this.props.location.search),t=a.get("s");let r=!1;if(t){a.delete("s");const e="-----BEGIN PUBLIC KEY-----\n"+this.props.asymmetricSigningPublicKey+"\n-----END PUBLIC KEY-----",s=u.a.createVerify("sha256");s.update("/error?"+a.toString()),r=s.verify(e,t,"base64")}const s=a.get("type"),l=r&&a.get("title")||"",n=r&&a.get("message")||"",o=r&&a.get("service")||"",i=r&&a.get("returnTo")||"";let c;return c=s===f.l.PERMALINK_NOT_FOUND&&i?d.a.createElement(E.a,{to:i},d.a.createElement(g.a,{id:"error.generic.link",defaultMessage:"Back to Mattermost"})):s===f.l.TEAM_NOT_FOUND?d.a.createElement(E.a,{to:"/"},d.a.createElement(g.a,{id:"error.generic.link",defaultMessage:"Back to {siteName}",values:{siteName:this.props.siteName}})):s===f.l.CHANNEL_NOT_FOUND&&e?d.a.createElement(E.a,{to:"/"},d.a.createElement(g.a,{id:"error.channelNotFound.guest_link",defaultMessage:"Back"})):s===f.l.CHANNEL_NOT_FOUND?d.a.createElement(E.a,{to:a.get("returnTo")},d.a.createElement(g.a,{id:"error.channelNotFound.link",defaultMessage:"Back to {defaultChannelName}",values:{defaultChannelName:f.j.DEFAULT_CHANNEL_UI_NAME}})):s===f.l.OAUTH_ACCESS_DENIED||s===f.l.OAUTH_MISSING_CODE?d.a.createElement(E.a,{to:"/"},d.a.createElement(g.a,{id:"error.generic.link_login",defaultMessage:"Back to Login Page"})):d.a.createElement(E.a,{to:"/"},d.a.createElement(g.a,{id:"error.generic.link",defaultMessage:"Back to {siteName}",values:{siteName:this.props.siteName}})),d.a.createElement("div",{className:"container-fluid"},d.a.createElement("div",{className:"error__container"},d.a.createElement("div",{className:"error__icon"},d.a.createElement(_.a,null)),d.a.createElement("h2",null,d.a.createElement(h,{type:s,title:l})),d.a.createElement(T,{type:s,message:n,service:o,isGuest:e}),c))}}k=A,y="propTypes",v={location:i.a.shape({search:i.a.string.isRequired}).isRequired,asymmetricSigningPublicKey:i.a.string,siteName:i.a.string,isGuest:i.a.bool},y in k?Object.defineProperty(k,y,{value:v,enumerable:!0,configurable:!0,writable:!0}):k[y]=v;a.default=Object(r.connect)((function(e){const a=Object(s.getConfig)(e),t=Object(l.getCurrentUser)(e);return{siteName:a.SiteName,asymmetricSigningPublicKey:a.AsymmetricSigningPublicKey,isGuest:Boolean(t&&Object(n.W)(t))}}))(A)}}]);
//# sourceMappingURL=20.dfeb1436ca93018363a0.js.map