(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[45727],{98300:(e,n,t)=>{"use strict";t.d(n,{A:()=>o,M:()=>r});var s=t(29549),l=t(68793);let r=l.createContext({code:"",lang:""}),o=l.memo(function(e){let{code:n,lang:t,children:l}=e;return(0,s.jsx)(r.Provider,{value:{code:n,lang:t},children:l})})},56562:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>g});var s=t(29549),l=t(24299),r=t(13320),o=t(49851),i=t(98300);let c="flexbox",a={flexbox:".container {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.element {\n width: 50%;\n height: 50%;\n}",grid:".container {\n display: grid;\n place-content: center;\n}\n\n.element {\n width: 50%;\n height: 50%;\n}"};var d=t(3069);let p=(0,l.I)(d.P.div)({name:"Wrapper",class:"wz06ft9",propsAsIs:!0}),u=(0,l.I)(d.P.div)({name:"InnerWrapper",class:"it9po97",propsAsIs:!0});t(85486);let h=(0,l.I)("div")({name:"Row",class:"rmzh41",propsAsIs:!1}),x=(0,l.I)("div")({name:"Column",class:"c1lje9ew",propsAsIs:!1}),m=(0,l.I)(x)({name:"CodeColumn",class:"c1a4nfp1",propsAsIs:!0}),f=(0,l.I)(x)({name:"DemoColumn",class:"d1hj7c07",propsAsIs:!0}),j=(0,l.I)(o.A)({name:"Container",class:"cx58d8v",propsAsIs:!0}),I=(0,l.I)(function(e){let{ref:n,children:t,...l}=e;return(0,s.jsx)(p,{ref:n,layout:!0,...l,children:(0,s.jsx)(u,{layout:!0,children:(0,s.jsx)(d.P.span,{layout:!0,children:t})})})})({name:"ChildElement",class:"c1ho0wkr",propsAsIs:!0}),g=function(e){let{codeOutput:n}=e;return(0,s.jsx)(r.Ay,{initialValues:{layoutMode:c},controlPosition:"top",customGrid:{gridTemplateColumns:"1fr"},outputWrapper:null,controls:[(0,s.jsx)(r.Cd,{id:"layoutMode",label:"Layout Algorithm",options:["flexbox","grid"]},"layoutMode")],children:e=>{let{layoutMode:t}=e;return(0,s.jsxs)(h,{children:[(0,s.jsx)(m,{children:(0,s.jsx)(i.A,{lang:"css",code:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a[e]}(t),children:n})}),(0,s.jsx)(f,{children:(0,s.jsx)(j,{style:{display:"grid"===t?"grid":"flex",justifyContent:"center",alignContent:"grid"===t?"center":void 0,alignItems:"flexbox"===t?"center":void 0},children:(0,s.jsx)(I,{children:".element"})})})]})}})};t(83677)},83677:e=>{e.exports={rmzh41:"rmzh41",c1lje9ew:"c1lje9ew",c1a4nfp1:"c1a4nfp1",d1hj7c07:"d1hj7c07",cx58d8v:"cx58d8v",c1ho0wkr:"c1ho0wkr"}},85486:e=>{e.exports={wz06ft9:"wz06ft9",it9po97:"it9po97"}}}]); //# sourceMappingURL=45727.72ed2f5a33133a2e.js.map