text: (window.webpackJsonp=window.webpackJsonp||[]).push([[356],{1749:function(e,t,c){"use strict";c.r(t),c.d(t,"DefaultPageSelector",(function(){return l}));var r=c(366),s=c(425),i=c(441),n=c(412),a=c(12),o=c(402),u=c(577),p=c(929);class l extends r.PureComponent{constructor(){super(...arguments),this.state={checking:!0},this.checkIfNeedsRedirecting=async()=>{const{currentUser:e,router:t,location:c}=this.props,r=Object(a.a)(u.b);!Object(o.b)(e)||Object.keys(c.query).length>0||r===u.a?this.setState({checking:!1}):r===u.c||(await Object(s.y)({filter:"isFavorite",ps:1})).paging.total>0?t.replace("/projects/favorite"):(Object(o.a)(e,"provisioning")&&0===(await Object(s.y)({ps:1})).paging.total&&this.props.router.replace("/projects/create"),this.setState({checking:!1}))}}componentDidMount(){this.checkIfNeedsRedirecting()}render(){const{checking:e}=this.state;return e?null:r.createElement(p.a,{isFavorite:!1})}}t.default=Object(i.a)(Object(n.a)(l))},929:function(e,t,c){"use strict";var r=c(382),s=c(380),i=c(385);t.a=Object(r.b)(e=>({currentUser:Object(i.getCurrentUser)(e),qualifiers:Object(i.getAppState)(e).qualifiers}))(Object(s.a)(()=>Promise.all([c.e(0),c.e(3),c.e(4),c.e(17),c.e(277)]).then(c.bind(null,1120))))}}]);
  //# sourceMappingURL=356.m.cae428fa.chunk.js.map