"use strict";(self.webpackChunk_digicms_admin=self.webpackChunk_digicms_admin||[]).push([[3981],{77660:(D,m,e)=>{e.r(m),e.d(m,{default:()=>B});var t=e(32735),d=e(5636),i=e(99357),g=e(5141),p=e(88425),u=e(11856),y=e(16540),s=e(9808),r=e(78330),c=e(19615);const f=e.p+"7e9af4fb7e723fcebf1f.svg";var h=e(85539),v=e(60216),C=e.n(v),E=e(95602),H=e(90662);const T=(0,c.default)(H.Stack)`
  align-items: flex-start;
`,l=({hasCreatedContentType:o})=>{const{formatMessage:a}=(0,d.useIntl)();return t.createElement("div",null,t.createElement(s.Box,{paddingLeft:6,paddingBottom:10},t.createElement(T,{spacing:5},t.createElement(E.Typography,{as:"h1",variant:"alpha"},a(o?{id:"app.components.HomePage.welcome.again",defaultMessage:"Welcome \u{1F44B}"}:{id:"app.components.HomePage.welcome",defaultMessage:"Welcome on board!"})))))};l.defaultProps={hasCreatedContentType:void 0},l.propTypes={hasCreatedContentType:C().bool};const M=l,P=(0,c.default)(s.Box)`
  position: absolute;
  top: 0;
  right: 0;

  img {
    width: ${150/16}rem;
  }
`,L=()=>{const{collectionTypes:o,singleTypes:a,isLoading:x}=(0,h.bP)(),{push:F}=(0,g.useHistory)(),G=n=>{n.preventDefault(),F("/plugins/content-type-builder/content-types/create-content-type")},I=(0,t.useMemo)(()=>{const n=S=>S.filter(j=>j.isDisplayed);return n(o).length>1||n(a).length>0},[o,a]);return x?t.createElement(p.LoadingIndicatorPage,null):t.createElement(u.Layout,null,t.createElement(d.FormattedMessage,{id:"HomePage.helmet.title",defaultMessage:"Homepage"},n=>t.createElement(i.Helmet,{title:n[0]})),t.createElement(y.Main,null,t.createElement(P,null,t.createElement("img",{alt:"","aria-hidden":!0,src:f})),t.createElement(s.Box,{padding:10},t.createElement(r.Grid,null,t.createElement(r.GridItem,{col:8,s:12},t.createElement(M,{onCreateCT:G,hasCreatedContentType:I}))))))},B=(0,t.memo)(L)}}]);
