(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[87532],{9006:(s,e,r)=>{"use strict";r.d(e,{A:()=>c});var a=r(87687),l=r(52751),n=r(31928),t=r(19901),i=r(44386);let o=(0,n.I)("label")({name:"Wrapper",class:"wfao701",propsAsIs:!1}),c=function(s){let{active:e,handleToggle:r,children:n,...c}=s,d=l.useId();return(0,a.jsxs)(o,{htmlFor:d,...c,children:[(0,a.jsx)(i.A,{id:d,active:e,handleToggle:r,handleFocusColor:null,handleColor:e?"var(--color-text)":"var(--color-gray-400)"}),(0,a.jsx)(t.A,{size:16}),n]})};r(41133)},34250:(s,e,r)=>{"use strict";r.d(e,{I4:()=>i,Qc:()=>n,sD:()=>o,y6:()=>t});var a=r(31928),l=r(59341);let n=(0,a.I)("div")({name:"GridStructure",class:"g1nrkimi",propsAsIs:!1}),t=(0,a.I)("div")({name:"BaseCodeWrapper",class:"bu47715",propsAsIs:!1}),i=(0,a.I)(l.P.div)({name:"LabeledColumn",class:"ljraie7",propsAsIs:!0}),o=(0,a.I)(l.P.div)({name:"LabeledRow",class:"l12tgnsh",propsAsIs:!0});r(97406)},26726:(s,e,r)=>{"use strict";r.d(e,{A:()=>d});var a=r(87687),l=r(52751),n=r(31928),t=r(20120),i=r(9006);let o=(0,n.I)("div")({name:"Wrapper",class:"w1n5e7hb",propsAsIs:!1}),c=(0,n.I)(function(s){let{isPerspectiveEnabled:e,setIsPerspectiveEnabled:r,...l}=s;return(0,a.jsx)(i.A,{active:e,handleToggle:()=>r(!e),...l,children:"Show Perspective"})})({name:"GridPerspectiveToggle",class:"g19jnwoh",propsAsIs:!0}),d=function(s){let{defaultPerspectiveEnabled:e=!0,children:r,hidePerspectiveControl:n,...i}=s,d=l.useId().replace(/:/g,""),[p,u]=l.useState(e);return(0,a.jsx)(t.Ay,{...i,id:"grid-demo-".concat(d),outputWrapper:null,controlPosition:"top",children:s=>(0,a.jsxs)(o,{children:[r({...s,isPerspectiveEnabled:p}),!n&&(0,a.jsx)(c,{id:d,isPerspectiveEnabled:p,setIsPerspectiveEnabled:u})]})})};r(73428)},78727:(s,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>b});var a=r(87687),l=r(31928),n=r(59341),t=r(68852),i=r(20120),o=r(51311),c=r(26726),d=r(4230),p=r(34250);let u=(0,l.I)("div")({name:"SliderWrapper",class:"s1fftbvh",propsAsIs:!1}),h=(0,l.I)("div")({name:"Row",class:"r140tnfz",propsAsIs:!1}),m=(0,l.I)("div")({name:"Wrapper",class:"w1bh82s1",propsAsIs:!1}),g=(0,l.I)(n.P.div)({name:"Layer",class:"l2ojbp0",propsAsIs:!0}),I=(0,l.I)("div")({name:"ChildWrapper",class:"c1w7cg6c",propsAsIs:!1}),x=(0,l.I)("div")({name:"GridTrack",class:"g1bs9awy",propsAsIs:!1}),w=(0,l.I)(p.y6)({name:"CodeWrapper",class:"cxas8em",propsAsIs:!0}),b=function(){return(0,a.jsx)(c.A,{initialValues:{numOfChildren:3,height:300},customGrid:{gridTemplateColumns:"1fr"},controls:[(0,a.jsx)(u,{children:(0,a.jsx)(i.oP,{id:"numOfChildren",label:"Number of Children",min:1,max:5,step:1,handleFocusColor:"white",wrapperStyle:{width:400,maxWidth:"80vw"}})},"numOfChildren")],children:s=>{let{numOfChildren:e,height:r,isPerspectiveEnabled:l}=s,n=".parent {\n display: grid;\n height: ".concat(r,"px;\n} ");return(0,a.jsxs)(h,{children:[(0,a.jsx)(w,{children:(0,a.jsx)(o.default,{omitCopyButton:!0,lockedToColorMode:"dark",code:n,lang:"css"})}),(0,a.jsxs)(m,{style:{height:r},children:[(0,a.jsx)(g,{style:{transform:l?"translateX(10%) skewY(18deg) scaleX(0.85)":"translateX(0%) skewY(0deg) scaleX(1)"},children:(0,a.jsx)(p.Qc,{style:{gap:2},children:(0,t.y1)(e).map(s=>(0,a.jsx)(x,{},s))})}),(0,a.jsx)(g,{style:{transform:l?"translateX(-10%) skewY(18deg) scaleX(0.85)":"translateX(0%) skewY(0deg) scaleX(1)"},children:(0,a.jsx)(I,{children:(0,t.y1)(e).map(s=>(0,a.jsx)(d.A,{layout:!1,style:{opacity:l?.8:1}},s))})})]})]})}})};r(33541)},4230:(s,e,r)=>{"use strict";r.d(e,{A:()=>o});var a=r(87687),l=r(31928),n=r(59341);let t=(0,l.I)(n.P.div)({name:"Wrapper",class:"wg9umku",propsAsIs:!0}),i=(0,l.I)(n.P.div)({name:"InnerWrapper",class:"iizukyq",propsAsIs:!0}),o=function(s){let{ref:e,primary:r,layout:l=!0,style:o={},wrapperStyle:c={},textWrapperStyle:d={},children:p,...u}=s;return(0,a.jsx)(t,{ref:e,layout:l,initial:{borderRadius:4},style:{background:r?"hsl(50deg 100% 90%)":"var(--color-gray-500)",...o},...u,children:(0,a.jsx)(i,{layout:l,initial:{borderRadius:2},style:{color:r?"black":"var(--color-text)",background:r?"hsl(50deg 100% 50%)":"var(--color-gray-100)",...c},children:(0,a.jsx)(n.P.span,{layout:l,style:{display:"inline-block",...d},children:p})})})};r(49452)},41133:s=>{s.exports={wfao701:"wfao701"}},97406:s=>{s.exports={g1nrkimi:"g1nrkimi",bu47715:"bu47715",ljraie7:"ljraie7",l12tgnsh:"l12tgnsh"}},73428:s=>{s.exports={w1n5e7hb:"w1n5e7hb",g19jnwoh:"g19jnwoh"}},33541:s=>{s.exports={s1fftbvh:"s1fftbvh",r140tnfz:"r140tnfz",w1bh82s1:"w1bh82s1",l2ojbp0:"l2ojbp0",c1w7cg6c:"c1w7cg6c",g1bs9awy:"g1bs9awy",cxas8em:"cxas8em"}},49452:s=>{s.exports={wg9umku:"wg9umku",fadeFromTransparent:"fadeFromTransparent",iizukyq:"iizukyq"}}}]); //# sourceMappingURL=87532.19ccacb3c4bd6904.js.map