"use strict";(self.webpackChunk_digicms_admin=self.webpackChunk_digicms_admin||[]).push([[3981],{38364:function(u,d,e){e.r(d),e.d(d,{default:function(){return D}});var t=e(32735),o=e(5636),m=e(99357),r=e(5141),c=e(58521),p=e(96709),s=e(27649),n=e(72850),g=e(15335),E=e(5803),f=e(31842),y=e(83292),h=e(60216),C=e.n(h),P=e(49372),M=e(27677);const T=(0,y.default)(M.K)`
  align-items: flex-start;
`,v=({hasCreatedContentType:i})=>{const{formatMessage:l}=(0,o.useIntl)();return t.createElement("div",null,t.createElement(n.x,{paddingLeft:6,paddingBottom:10},t.createElement(T,{spacing:5},t.createElement(P.Z,{as:"h1",variant:"alpha"},l(i?{id:"app.components.HomePage.welcome.again",defaultMessage:"Welcome \u{1F44B}"}:{id:"app.components.HomePage.welcome",defaultMessage:"Welcome on board!"})))))};v.defaultProps={hasCreatedContentType:void 0},v.propTypes={hasCreatedContentType:C().bool};var H=v;const B=()=>{const{collectionTypes:i,singleTypes:l,isLoading:L}=(0,f.bP)(),{push:x}=(0,r.useHistory)(),O=a=>{a.preventDefault(),x("/plugins/content-type-builder/content-types/create-content-type")},A=(0,t.useMemo)(()=>{const a=I=>I.filter(W=>W.isDisplayed);return a(i).length>1||a(l).length>0},[i,l]);return L?t.createElement(c.LoadingIndicatorPage,null):t.createElement(p.A,null,t.createElement(o.FormattedMessage,{id:"HomePage.helmet.title",defaultMessage:"Homepage"},a=>t.createElement(m.Helmet,{title:a[0]})),t.createElement(s.o,null,t.createElement(n.x,{padding:10},t.createElement(g.r,null,t.createElement(E.P,{col:8,s:12},t.createElement(H,{onCreateCT:O,hasCreatedContentType:A}))))))};var D=(0,t.memo)(B)},96709:function(u,d,e){e.d(d,{A:function(){return s}});var t=e(32735),o=e(60216),m=e(83292),r=e(72850);const c=(0,m.default)(r.x)`
  display: grid;
  grid-template-columns: ${({hasSideNav:n})=>n?"auto 1fr":"1fr"};
`,p=(0,m.default)(r.x)`
  overflow-x: hidden;
`,s=({sideNav:n,children:g})=>t.createElement(c,{hasSideNav:Boolean(n)},n,t.createElement(p,{paddingBottom:10},g));s.defaultProps={sideNav:void 0},s.propTypes={children:o.node.isRequired,sideNav:o.node}}}]);
