function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _inherits(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var _createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),PlatformTitle=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this,n));return i.state={title_show:""},i}return _inherits(t,n),_createClass(t,[{key:"componentDidMount",value:function(){var n=this;isMobileDevice()&&this.props.title_mobile!=null&&this.props.title_mobile.replace(/\s*/g,"").length>0?this.setState(function(){return{title_show:n.props.title_mobile}}):this.setState(function(){return{title_show:n.props.title_web}})}},{key:"render",value:function(){return this.state.title_show}}]),t}(React.Component),ShortTitle;PlatformTitle.defaultProps={title_web:"",title_mobile:""};PlatformTitle.propTypes={title_web:PropTypes.string,title_mobile:PropTypes.string};ShortTitle=function(n){function t(n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this,n));return i.state={short_title:i.props.title},i}return _inherits(t,n),_createClass(t,[{key:"componentDidMount",value:function(){var n=this;this.props.title!=null&&this.props.title.replace(/\s*/g,"").length>0&&(isMobileDevice()?$(window).width()>=1400?this.props.mobile_width1400>0&&this.setState(function(){return{short_title:cutString(n.props.title,n.props.mobile_width1400)}}):this.props.mobile_width1399>0&&this.setState(function(){return{short_title:cutString(n.props.title,n.props.mobile_width1399)}}):$(window).width()>=1400?this.props.pc_width1400>0&&this.setState(function(){return{short_title:cutString(n.props.title,n.props.pc_width1400)}}):this.props.pc_width1399>0&&this.setState(function(){return{short_title:cutString(n.props.title,n.props.pc_width1399)}}))}},{key:"render",value:function(){return React.createElement("span",{dangerouslySetInnerHTML:{__html:this.state.short_title}})}}]),t}(React.Component);ShortTitle.defaultProps={title:"",pc_width1400:0,pc_width1399:0,mobile_width1400:0,mobile_width1399:0};ShortTitle.propTypes={title:PropTypes.string,pc_width1400:PropTypes.number,pc_width1399:PropTypes.number,mobile_width1400:PropTypes.number,mobile_width1399:PropTypes.number}