%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/
Upload File :
Create Path :
Current File : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/34.15641afa.chunk.js

(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[34],{1129:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FrameContextConsumer=n.FrameContextProvider=n.FrameContext=void 0;var a,r=t(0),s=(a=r)&&a.__esModule?a:{default:a};var i=void 0,c=void 0;"undefined"!==typeof document&&(i=document),"undefined"!==typeof window&&(c=window);var o=n.FrameContext=s.default.createContext({document:i,window:c}),l=o.Provider,d=o.Consumer;n.FrameContextProvider=l,n.FrameContextConsumer=d},1130:function(e,n,t){"use strict";t.d(n,"a",(function(){return N}));var a=t(118),r=t(1100),s=t(1109),i=t(1090),c=t(1117),o=t(1119),l=t(5),d=t(0),m=t(1024),p=t(551),u=t(1087),j=t(1099),x=t(11),h=t(370),b=t(371),f=t(1131),g=t.n(f),O=t(1);const v=Object(m.a)({productionPrefix:"iframe-"});class y extends d.Component{constructor(){super(...arguments),this.state={ready:!1},this.handleRef=e=>{this.contentDocument=e?e.node.contentDocument:null},this.onContentDidMount=()=>{this.setState({ready:!0,jss:Object(h.a)({...Object(p.a)(),plugins:[...Object(p.a)().plugins,Object(b.a)()],insertionPoint:this.contentDocument.querySelector("#jss-demo-insertion-point")}),sheetsManager:new Map,container:this.contentDocument.body})},this.onContentDidUpdate=()=>{this.contentDocument.body.dir=this.props.theme.direction},this.renderHead=()=>Object(O.jsxs)(O.Fragment,{children:[Object(O.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n                    html {\n                    font-size: 62.5%;\n                    font-family: Poppins, Roboto, Helvetica Neue, Arial, sans-serif;\n                    }\n                "}}),Object(O.jsx)("noscript",{id:"jss-demo-insertion-point"})]})}render(){const{children:e,classes:n,theme:t}=this.props;return Object(O.jsx)(g.a,{head:this.renderHead(),ref:this.handleRef,className:Object(l.a)(n.root,"shadow"),contentDidMount:this.onContentDidMount,contentDidUpdate:this.onContentDidUpdate,children:this.state.ready?Object(O.jsx)(u.b,{jss:this.state.jss,generateClassName:v,sheetsManager:this.state.sheetsManager,children:Object(O.jsx)(j.a,{theme:t,children:Object(d.cloneElement)(e,{container:this.state.container})})}):null})}}var G=Object(x.a)((e=>({root:{backgroundColor:e.palette.background.default,flexGrow:1,height:400,border:"none"}})),{withTheme:!0})(y);function w(e){const[n,t]=Object(d.useState)(e.currentTabIndex),{component:m,raw:p,iframe:u,className:j}=e;return Object(O.jsxs)(s.a,{className:Object(l.a)(j,"shadow"),children:[Object(O.jsx)(r.a,{position:"static",color:"default",className:"shadow-0",children:Object(O.jsxs)(o.a,{classes:{root:"border-b-1",flexContainer:"justify-end"},value:n,onChange:function(e,n){t(n)},children:[m&&Object(O.jsx)(c.a,{classes:{root:"min-w-64"},icon:Object(O.jsx)(i.a,{children:"remove_red_eye"})}),p&&Object(O.jsx)(c.a,{classes:{root:"min-w-64"},icon:Object(O.jsx)(i.a,{children:"code"})})]})}),Object(O.jsxs)("div",{className:"flex justify-center max-w-full",children:[Object(O.jsx)("div",{className:0===n?"flex flex-1 max-w-full":"hidden",children:m&&(u?Object(O.jsx)(G,{children:Object(O.jsx)(m,{})}):Object(O.jsx)("div",{className:"p-24 flex flex-1 justify-center max-w-full",children:Object(O.jsx)(m,{})}))}),Object(O.jsx)("div",{className:1===n?"flex flex-1":"hidden",children:p&&Object(O.jsx)("div",{className:"flex flex-1",children:Object(O.jsx)(a.a,{component:"pre",className:"language-javascript w-full",children:p.default})})})]})]})}w.defaultProps={currentTabIndex:0};var N=w},1131:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FrameContextConsumer=n.FrameContext=void 0;var a=t(1129);Object.defineProperty(n,"FrameContext",{enumerable:!0,get:function(){return a.FrameContext}}),Object.defineProperty(n,"FrameContextConsumer",{enumerable:!0,get:function(){return a.FrameContextConsumer}});var r,s=t(1132),i=(r=s)&&r.__esModule?r:{default:r};n.default=i.default},1132:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},r=function(){function e(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(n,t,a){return t&&e(n.prototype,t),a&&e(n,a),n}}(),s=t(0),i=m(s),c=m(t(22)),o=m(t(553)),l=t(1129),d=m(t(1133));function m(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function n(e,t){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n);var a=function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?e:n}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return a.handleLoad=function(){a.forceUpdate()},a._isMounted=!1,a}return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),r(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var e=this.getDoc();e&&"complete"===e.readyState?this.forceUpdate():this.node.addEventListener("load",this.handleLoad)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.node.removeEventListener("load",this.handleLoad)}},{key:"getDoc",value:function(){return this.node?this.node.contentDocument:null}},{key:"getMountTarget",value:function(){var e=this.getDoc();return this.props.mountTarget?e.querySelector(this.props.mountTarget):e.body.children[0]}},{key:"renderFrameContents",value:function(){if(!this._isMounted)return null;var e=this.getDoc();if(!e)return null;var n=this.props.contentDidMount,t=this.props.contentDidUpdate,a=e.defaultView||e.parentView,r=i.default.createElement(d.default,{contentDidMount:n,contentDidUpdate:t},i.default.createElement(l.FrameContextProvider,{value:{document:e,window:a}},i.default.createElement("div",{className:"frame-content"},this.props.children)));e.body.children.length<1&&(e.open("text/html","replace"),e.write(this.props.initialContent),e.close());var s=this.getMountTarget();return[c.default.createPortal(this.props.head,this.getDoc().head),c.default.createPortal(r,s)]}},{key:"render",value:function(){var e=this,n=a({},this.props,{children:void 0});return delete n.head,delete n.initialContent,delete n.mountTarget,delete n.contentDidMount,delete n.contentDidUpdate,i.default.createElement("iframe",a({},n,{ref:function(n){e.node=n}}),this.renderFrameContents())}}]),n}(s.Component);p.propTypes={style:o.default.object,head:o.default.node,initialContent:o.default.string,mountTarget:o.default.string,contentDidMount:o.default.func,contentDidUpdate:o.default.func,children:o.default.oneOfType([o.default.element,o.default.arrayOf(o.default.element)])},p.defaultProps={style:{},head:null,children:void 0,mountTarget:void 0,contentDidMount:function(){},contentDidUpdate:function(){},initialContent:'<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'},n.default=p},1133:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function e(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(n,t,a){return t&&e(n.prototype,t),a&&e(n,a),n}}(),r=t(0),s=(i(r),i(t(553)));function i(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function n(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?e:n}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),a(n,[{key:"componentDidMount",value:function(){this.props.contentDidMount()}},{key:"componentDidUpdate",value:function(){this.props.contentDidUpdate()}},{key:"render",value:function(){return r.Children.only(this.props.children)}}]),n}(r.Component);c.propTypes={children:s.default.element.isRequired,contentDidMount:s.default.func.isRequired,contentDidUpdate:s.default.func.isRequired},n.default=c},1172:function(e,n,t){"use strict";var a=t(7),r=t(2),s=t(0),i=t(8),c=t(11),o=[0,1,2,3,4,5,6,7,8,9,10],l=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=parseFloat(e);return"".concat(t/n).concat(String(e).replace(String(t),"")||"px")}var m=s.forwardRef((function(e,n){var t=e.alignContent,c=void 0===t?"stretch":t,o=e.alignItems,l=void 0===o?"stretch":o,d=e.classes,m=e.className,p=e.component,u=void 0===p?"div":p,j=e.container,x=void 0!==j&&j,h=e.direction,b=void 0===h?"row":h,f=e.item,g=void 0!==f&&f,O=e.justify,v=e.justifyContent,y=void 0===v?"flex-start":v,G=e.lg,w=void 0!==G&&G,N=e.md,C=void 0!==N&&N,P=e.sm,S=void 0!==P&&P,T=e.spacing,F=void 0===T?0:T,R=e.wrap,k=void 0===R?"wrap":R,D=e.xl,M=void 0!==D&&D,L=e.xs,_=void 0!==L&&L,I=e.zeroMinWidth,W=void 0!==I&&I,E=Object(a.a)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),A=Object(i.a)(d.root,m,x&&[d.container,0!==F&&d["spacing-xs-".concat(String(F))]],g&&d.item,W&&d.zeroMinWidth,"row"!==b&&d["direction-xs-".concat(String(b))],"wrap"!==k&&d["wrap-xs-".concat(String(k))],"stretch"!==l&&d["align-items-xs-".concat(String(l))],"stretch"!==c&&d["align-content-xs-".concat(String(c))],"flex-start"!==(O||y)&&d["justify-content-xs-".concat(String(O||y))],!1!==_&&d["grid-xs-".concat(String(_))],!1!==S&&d["grid-sm-".concat(String(S))],!1!==C&&d["grid-md-".concat(String(C))],!1!==w&&d["grid-lg-".concat(String(w))],!1!==M&&d["grid-xl-".concat(String(M))]);return s.createElement(u,Object(r.a)({className:A,ref:n},E))})),p=Object(c.a)((function(e){return Object(r.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,n){var t={};return o.forEach((function(a){var r=e.spacing(a);0!==r&&(t["spacing-".concat(n,"-").concat(a)]={margin:"-".concat(d(r,2)),width:"calc(100% + ".concat(d(r),")"),"& > $item":{padding:d(r,2)}})})),t}(e,"xs"),e.breakpoints.keys.reduce((function(n,t){return function(e,n,t){var a={};l.forEach((function(e){var n="grid-".concat(t,"-").concat(e);if(!0!==e)if("auto"!==e){var r="".concat(Math.round(e/12*1e8)/1e6,"%");a[n]={flexBasis:r,flexGrow:0,maxWidth:r}}else a[n]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else a[n]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===t?Object(r.a)(e,a):e[n.breakpoints.up(t)]=a}(n,e,t),n}),{}))}),{name:"MuiGrid"})(m);n.a=p},1189:function(e,n,t){"use strict";var a=t(0),r=t(381),s=t(1);const i=Object(a.forwardRef)((function(e,n){const{code:t,language:a,...i}=e;return Object(s.jsx)(r.a,{component:"pre",className:"language-".concat(a||"jsx"),ref:n,...i,children:t})}));n.a=i},1982:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return j}));var a=t(0),r=t.n(a),s=t(1072),i=t(1172),c=t(1036),o=t(1094),l=t(1093),d=t(1120),m=t(193),p=t(1);const u=Object(s.a)((e=>({root:{flexGrow:1},paper:{height:140,width:100},control:{padding:e.spacing(2)}})));function j(){const[e,n]=r.a.useState(2),t=u();return Object(p.jsxs)(i.a,{container:!0,className:t.root,spacing:2,children:[Object(p.jsx)(i.a,{item:!0,xs:12,children:Object(p.jsx)(i.a,{container:!0,justifyContent:"center",spacing:e,children:[0,1,2].map((e=>Object(p.jsx)(i.a,{item:!0,children:Object(p.jsx)(m.a,{className:t.paper})},e)))})}),Object(p.jsx)(i.a,{item:!0,xs:12,children:Object(p.jsx)(m.a,{className:t.control,children:Object(p.jsx)(i.a,{container:!0,children:Object(p.jsxs)(i.a,{item:!0,children:[Object(p.jsx)(c.a,{children:"spacing"}),Object(p.jsx)(l.a,{name:"spacing","aria-label":"spacing",value:e.toString(),onChange:e=>{n(Number(e.target.value))},row:!0,children:[0,1,2,3,4,5,6,7,8,9,10].map((e=>Object(p.jsx)(o.a,{value:e.toString(),control:Object(p.jsx)(d.a,{}),label:e.toString()},e)))})]})})})})]})}},1983:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Grid from '@material-ui/core/Grid';\nimport FormLabel from '@material-ui/core/FormLabel';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport RadioGroup from '@material-ui/core/RadioGroup';\nimport Radio from '@material-ui/core/Radio';\nimport Paper from '@material-ui/core/Paper';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n  },\n  paper: {\n    height: 140,\n    width: 100,\n  },\n  control: {\n    padding: theme.spacing(2),\n  },\n}));\n\nexport default function SpacingGrid() {\n  const [spacing, setSpacing] = React.useState(2);\n  const classes = useStyles();\n\n  const handleChange = (event) => {\n    setSpacing(Number(event.target.value));\n  };\n\n  return (\n    <Grid container className={classes.root} spacing={2}>\n      <Grid item xs={12}>\n        <Grid container justifyContent=\"center\" spacing={spacing}>\n          {[0, 1, 2].map((value) => (\n            <Grid key={value} item>\n              <Paper className={classes.paper} />\n            </Grid>\n          ))}\n        </Grid>\n      </Grid>\n      <Grid item xs={12}>\n        <Paper className={classes.control}>\n          <Grid container>\n            <Grid item>\n              <FormLabel>spacing</FormLabel>\n              <RadioGroup\n                name=\"spacing\"\n                aria-label=\"spacing\"\n                value={spacing.toString()}\n                onChange={handleChange}\n                row\n              >\n                {[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((value) => (\n                  <FormControlLabel\n                    key={value}\n                    value={value.toString()}\n                    control={<Radio />}\n                    label={value.toString()}\n                  />\n                ))}\n              </RadioGroup>\n            </Grid>\n          </Grid>\n        </Paper>\n      </Grid>\n    </Grid>\n  );\n}\n"},1984:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return o}));t(0);var a=t(1072),r=t(193),s=t(1172),i=t(1);const c=Object(a.a)((e=>({root:{flexGrow:1},paper:{padding:e.spacing(2),textAlign:"center",color:e.palette.text.secondary}})));function o(){const e=c();return Object(i.jsx)("div",{className:e.root,children:Object(i.jsxs)(s.a,{container:!0,spacing:3,children:[Object(i.jsx)(s.a,{item:!0,xs:12,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=12"})}),Object(i.jsx)(s.a,{item:!0,xs:6,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=6"})}),Object(i.jsx)(s.a,{item:!0,xs:6,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=6"})}),Object(i.jsx)(s.a,{item:!0,xs:3,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=3"})}),Object(i.jsx)(s.a,{item:!0,xs:3,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=3"})}),Object(i.jsx)(s.a,{item:!0,xs:3,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=3"})}),Object(i.jsx)(s.a,{item:!0,xs:3,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=3"})})]})})}},1985:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Paper from '@material-ui/core/Paper';\nimport Grid from '@material-ui/core/Grid';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n  },\n  paper: {\n    padding: theme.spacing(2),\n    textAlign: 'center',\n    color: theme.palette.text.secondary,\n  },\n}));\n\nexport default function CenteredGrid() {\n  const classes = useStyles();\n\n  return (\n    <div className={classes.root}>\n      <Grid container spacing={3}>\n        <Grid item xs={12}>\n          <Paper className={classes.paper}>xs=12</Paper>\n        </Grid>\n        <Grid item xs={6}>\n          <Paper className={classes.paper}>xs=6</Paper>\n        </Grid>\n        <Grid item xs={6}>\n          <Paper className={classes.paper}>xs=6</Paper>\n        </Grid>\n        <Grid item xs={3}>\n          <Paper className={classes.paper}>xs=3</Paper>\n        </Grid>\n        <Grid item xs={3}>\n          <Paper className={classes.paper}>xs=3</Paper>\n        </Grid>\n        <Grid item xs={3}>\n          <Paper className={classes.paper}>xs=3</Paper>\n        </Grid>\n        <Grid item xs={3}>\n          <Paper className={classes.paper}>xs=3</Paper>\n        </Grid>\n      </Grid>\n    </div>\n  );\n}\n"},1986:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return o}));t(0);var a=t(1072),r=t(193),s=t(1172),i=t(1);const c=Object(a.a)((e=>({root:{flexGrow:1},paper:{padding:e.spacing(2),textAlign:"center",color:e.palette.text.secondary}})));function o(){const e=c();return Object(i.jsx)("div",{className:e.root,children:Object(i.jsxs)(s.a,{container:!0,spacing:3,children:[Object(i.jsx)(s.a,{item:!0,xs:12,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=12"})}),Object(i.jsx)(s.a,{item:!0,xs:12,sm:6,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=12 sm=6"})}),Object(i.jsx)(s.a,{item:!0,xs:12,sm:6,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=12 sm=6"})}),Object(i.jsx)(s.a,{item:!0,xs:6,sm:3,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=6 sm=3"})}),Object(i.jsx)(s.a,{item:!0,xs:6,sm:3,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=6 sm=3"})}),Object(i.jsx)(s.a,{item:!0,xs:6,sm:3,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=6 sm=3"})}),Object(i.jsx)(s.a,{item:!0,xs:6,sm:3,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=6 sm=3"})})]})})}},1987:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Paper from '@material-ui/core/Paper';\nimport Grid from '@material-ui/core/Grid';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n  },\n  paper: {\n    padding: theme.spacing(2),\n    textAlign: 'center',\n    color: theme.palette.text.secondary,\n  },\n}));\n\nexport default function FullWidthGrid() {\n  const classes = useStyles();\n\n  return (\n    <div className={classes.root}>\n      <Grid container spacing={3}>\n        <Grid item xs={12}>\n          <Paper className={classes.paper}>xs=12</Paper>\n        </Grid>\n        <Grid item xs={12} sm={6}>\n          <Paper className={classes.paper}>xs=12 sm=6</Paper>\n        </Grid>\n        <Grid item xs={12} sm={6}>\n          <Paper className={classes.paper}>xs=12 sm=6</Paper>\n        </Grid>\n        <Grid item xs={6} sm={3}>\n          <Paper className={classes.paper}>xs=6 sm=3</Paper>\n        </Grid>\n        <Grid item xs={6} sm={3}>\n          <Paper className={classes.paper}>xs=6 sm=3</Paper>\n        </Grid>\n        <Grid item xs={6} sm={3}>\n          <Paper className={classes.paper}>xs=6 sm=3</Paper>\n        </Grid>\n        <Grid item xs={6} sm={3}>\n          <Paper className={classes.paper}>xs=6 sm=3</Paper>\n        </Grid>\n      </Grid>\n    </div>\n  );\n}\n"},1988:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return h}));var a=t(0),r=t.n(a),s=t(1172),i=t(1035),c=t(1036),o=t(1094),l=t(1093),d=t(1120),m=t(193),p=t(1072),u=t(1189),j=t(1);const x=Object(p.a)((e=>({root:{flexGrow:1},demo:{height:240},paper:{padding:e.spacing(2),height:"100%",color:e.palette.text.secondary},control:{padding:e.spacing(2)}})));function h(){const e=x(),[n,t]=r.a.useState("row"),[a,p]=r.a.useState("center"),[h,b]=r.a.useState("center"),f='\n<Grid\n  container\n  direction="'.concat(n,'"\n  justifyContent="').concat(a,'"\n  alignItems="').concat(h,'"\n>\n');return Object(j.jsxs)(s.a,{container:!0,className:e.root,children:[Object(j.jsx)(s.a,{item:!0,xs:12,children:Object(j.jsx)(s.a,{container:!0,spacing:2,className:e.demo,alignItems:h,direction:n,justifyContent:a,children:[0,1,2].map((n=>Object(j.jsx)(s.a,{item:!0,children:Object(j.jsx)(m.a,{className:e.paper,style:{paddingTop:10*(n+1),paddingBottom:10*(n+1)},children:"Cell ".concat(n+1)})},n)))})}),Object(j.jsx)(s.a,{item:!0,xs:12,children:Object(j.jsx)(m.a,{className:e.control,children:Object(j.jsxs)(s.a,{container:!0,spacing:3,children:[Object(j.jsx)(s.a,{item:!0,xs:12,children:Object(j.jsxs)(i.a,{component:"fieldset",children:[Object(j.jsx)(c.a,{children:"direction"}),Object(j.jsxs)(l.a,{row:!0,name:"direction","aria-label":"direction",value:n,onChange:e=>{t(e.target.value)},children:[Object(j.jsx)(o.a,{value:"row",control:Object(j.jsx)(d.a,{}),label:"row"}),Object(j.jsx)(o.a,{value:"row-reverse",control:Object(j.jsx)(d.a,{}),label:"row-reverse"}),Object(j.jsx)(o.a,{value:"column",control:Object(j.jsx)(d.a,{}),label:"column"}),Object(j.jsx)(o.a,{value:"column-reverse",control:Object(j.jsx)(d.a,{}),label:"column-reverse"})]})]})}),Object(j.jsx)(s.a,{item:!0,xs:12,children:Object(j.jsxs)(i.a,{component:"fieldset",children:[Object(j.jsx)(c.a,{children:"justifyContent"}),Object(j.jsxs)(l.a,{row:!0,name:"justifyContent","aria-label":"justifyContent",value:a,onChange:e=>{p(e.target.value)},children:[Object(j.jsx)(o.a,{value:"flex-start",control:Object(j.jsx)(d.a,{}),label:"flex-start"}),Object(j.jsx)(o.a,{value:"center",control:Object(j.jsx)(d.a,{}),label:"center"}),Object(j.jsx)(o.a,{value:"flex-end",control:Object(j.jsx)(d.a,{}),label:"flex-end"}),Object(j.jsx)(o.a,{value:"space-between",control:Object(j.jsx)(d.a,{}),label:"space-between"}),Object(j.jsx)(o.a,{value:"space-around",control:Object(j.jsx)(d.a,{}),label:"space-around"}),Object(j.jsx)(o.a,{value:"space-evenly",control:Object(j.jsx)(d.a,{}),label:"space-evenly"})]})]})}),Object(j.jsx)(s.a,{item:!0,xs:12,children:Object(j.jsxs)(i.a,{component:"fieldset",children:[Object(j.jsx)(c.a,{children:"alignItems"}),Object(j.jsxs)(l.a,{row:!0,name:"alignItems","aria-label":"align items",value:h,onChange:e=>{b(e.target.value)},children:[Object(j.jsx)(o.a,{value:"flex-start",control:Object(j.jsx)(d.a,{}),label:"flex-start"}),Object(j.jsx)(o.a,{value:"center",control:Object(j.jsx)(d.a,{}),label:"center"}),Object(j.jsx)(o.a,{value:"flex-end",control:Object(j.jsx)(d.a,{}),label:"flex-end"}),Object(j.jsx)(o.a,{value:"stretch",control:Object(j.jsx)(d.a,{}),label:"stretch"}),Object(j.jsx)(o.a,{value:"baseline",control:Object(j.jsx)(d.a,{}),label:"baseline"})]})]})})]})})}),Object(j.jsx)(s.a,{item:!0,xs:12,children:Object(j.jsx)(u.a,{code:f,language:"jsx"})})]})}},1989:function(e,n,t){"use strict";t.r(n),n.default='import React from \'react\';\nimport Grid from \'@material-ui/core/Grid\';\nimport FormControl from \'@material-ui/core/FormControl\';\nimport FormLabel from \'@material-ui/core/FormLabel\';\nimport FormControlLabel from \'@material-ui/core/FormControlLabel\';\nimport RadioGroup from \'@material-ui/core/RadioGroup\';\nimport Radio from \'@material-ui/core/Radio\';\nimport Paper from \'@material-ui/core/Paper\';\nimport { makeStyles } from \'@material-ui/core/styles\';\nimport HighlightedCode from \'app/main/documentation/material-ui-components/utils/HighlightedCode\';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n  },\n  demo: {\n    height: 240,\n  },\n  paper: {\n    padding: theme.spacing(2),\n    height: \'100%\',\n    color: theme.palette.text.secondary,\n  },\n  control: {\n    padding: theme.spacing(2),\n  },\n}));\n\nexport default function InteractiveGrid() {\n  const classes = useStyles();\n  const [direction, setDirection] = React.useState(\'row\');\n  const [justifyContent, setJustifyContent] = React.useState(\'center\');\n  const [alignItems, setAlignItems] = React.useState(\'center\');\n\n  const jsx = `\n<Grid\n  container\n  direction="${direction}"\n  justifyContent="${justifyContent}"\n  alignItems="${alignItems}"\n>\n`;\n\n  return (\n    <Grid container className={classes.root}>\n      <Grid item xs={12}>\n        <Grid\n          container\n          spacing={2}\n          className={classes.demo}\n          alignItems={alignItems}\n          direction={direction}\n          justifyContent={justifyContent}\n        >\n          {[0, 1, 2].map((value) => (\n            <Grid key={value} item>\n              <Paper\n                className={classes.paper}\n                style={{ paddingTop: (value + 1) * 10, paddingBottom: (value + 1) * 10 }}\n              >\n                {`Cell ${value + 1}`}\n              </Paper>\n            </Grid>\n          ))}\n        </Grid>\n      </Grid>\n      <Grid item xs={12}>\n        <Paper className={classes.control}>\n          <Grid container spacing={3}>\n            <Grid item xs={12}>\n              <FormControl component="fieldset">\n                <FormLabel>direction</FormLabel>\n                <RadioGroup\n                  row\n                  name="direction"\n                  aria-label="direction"\n                  value={direction}\n                  onChange={(event) => {\n                    setDirection(event.target.value);\n                  }}\n                >\n                  <FormControlLabel value="row" control={<Radio />} label="row" />\n                  <FormControlLabel value="row-reverse" control={<Radio />} label="row-reverse" />\n                  <FormControlLabel value="column" control={<Radio />} label="column" />\n                  <FormControlLabel\n                    value="column-reverse"\n                    control={<Radio />}\n                    label="column-reverse"\n                  />\n                </RadioGroup>\n              </FormControl>\n            </Grid>\n            <Grid item xs={12}>\n              <FormControl component="fieldset">\n                <FormLabel>justifyContent</FormLabel>\n                <RadioGroup\n                  row\n                  name="justifyContent"\n                  aria-label="justifyContent"\n                  value={justifyContent}\n                  onChange={(event) => {\n                    setJustifyContent(event.target.value);\n                  }}\n                >\n                  <FormControlLabel value="flex-start" control={<Radio />} label="flex-start" />\n                  <FormControlLabel value="center" control={<Radio />} label="center" />\n                  <FormControlLabel value="flex-end" control={<Radio />} label="flex-end" />\n                  <FormControlLabel\n                    value="space-between"\n                    control={<Radio />}\n                    label="space-between"\n                  />\n                  <FormControlLabel value="space-around" control={<Radio />} label="space-around" />\n                  <FormControlLabel value="space-evenly" control={<Radio />} label="space-evenly" />\n                </RadioGroup>\n              </FormControl>\n            </Grid>\n            <Grid item xs={12}>\n              <FormControl component="fieldset">\n                <FormLabel>alignItems</FormLabel>\n                <RadioGroup\n                  row\n                  name="alignItems"\n                  aria-label="align items"\n                  value={alignItems}\n                  onChange={(event) => {\n                    setAlignItems(event.target.value);\n                  }}\n                >\n                  <FormControlLabel value="flex-start" control={<Radio />} label="flex-start" />\n                  <FormControlLabel value="center" control={<Radio />} label="center" />\n                  <FormControlLabel value="flex-end" control={<Radio />} label="flex-end" />\n                  <FormControlLabel value="stretch" control={<Radio />} label="stretch" />\n                  <FormControlLabel value="baseline" control={<Radio />} label="baseline" />\n                </RadioGroup>\n              </FormControl>\n            </Grid>\n          </Grid>\n        </Paper>\n      </Grid>\n      <Grid item xs={12}>\n        <HighlightedCode code={jsx} language="jsx" />\n      </Grid>\n    </Grid>\n  );\n}\n'},1990:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return o}));t(0);var a=t(1072),r=t(193),s=t(1172),i=t(1);const c=Object(a.a)((e=>({root:{flexGrow:1},paper:{padding:e.spacing(2),textAlign:"center",color:e.palette.text.secondary}})));function o(){const e=c();return Object(i.jsxs)("div",{className:e.root,children:[Object(i.jsxs)(s.a,{container:!0,spacing:3,children:[Object(i.jsx)(s.a,{item:!0,xs:!0,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs"})}),Object(i.jsx)(s.a,{item:!0,xs:!0,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs"})}),Object(i.jsx)(s.a,{item:!0,xs:!0,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs"})})]}),Object(i.jsxs)(s.a,{container:!0,spacing:3,children:[Object(i.jsx)(s.a,{item:!0,xs:!0,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs"})}),Object(i.jsx)(s.a,{item:!0,xs:6,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs=6"})}),Object(i.jsx)(s.a,{item:!0,xs:!0,children:Object(i.jsx)(r.a,{className:e.paper,children:"xs"})})]})]})}},1991:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Paper from '@material-ui/core/Paper';\nimport Grid from '@material-ui/core/Grid';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n  },\n  paper: {\n    padding: theme.spacing(2),\n    textAlign: 'center',\n    color: theme.palette.text.secondary,\n  },\n}));\n\nexport default function AutoGrid() {\n  const classes = useStyles();\n\n  return (\n    <div className={classes.root}>\n      <Grid container spacing={3}>\n        <Grid item xs>\n          <Paper className={classes.paper}>xs</Paper>\n        </Grid>\n        <Grid item xs>\n          <Paper className={classes.paper}>xs</Paper>\n        </Grid>\n        <Grid item xs>\n          <Paper className={classes.paper}>xs</Paper>\n        </Grid>\n      </Grid>\n      <Grid container spacing={3}>\n        <Grid item xs>\n          <Paper className={classes.paper}>xs</Paper>\n        </Grid>\n        <Grid item xs={6}>\n          <Paper className={classes.paper}>xs=6</Paper>\n        </Grid>\n        <Grid item xs>\n          <Paper className={classes.paper}>xs</Paper>\n        </Grid>\n      </Grid>\n    </div>\n  );\n}\n"},1992:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return d}));t(0);var a=t(1072),r=t(1172),s=t(193),i=t(194),c=t(221),o=t(1);const l=Object(a.a)((e=>({root:{flexGrow:1},paper:{padding:e.spacing(2),margin:"auto",maxWidth:500},image:{width:128,height:128},img:{margin:"auto",display:"block",maxWidth:"100%",maxHeight:"100%"}})));function d(){const e=l();return Object(o.jsx)("div",{className:e.root,children:Object(o.jsx)(s.a,{className:e.paper,children:Object(o.jsxs)(r.a,{container:!0,spacing:2,children:[Object(o.jsx)(r.a,{item:!0,children:Object(o.jsx)(c.a,{className:e.image,children:Object(o.jsx)("img",{className:e.img,alt:"complex",src:"/material-ui-static/images/grid/complex.jpg"})})}),Object(o.jsxs)(r.a,{item:!0,xs:12,sm:!0,container:!0,children:[Object(o.jsxs)(r.a,{item:!0,xs:!0,container:!0,direction:"column",spacing:2,children:[Object(o.jsxs)(r.a,{item:!0,xs:!0,children:[Object(o.jsx)(i.a,{gutterBottom:!0,variant:"subtitle1",children:"Standard license"}),Object(o.jsx)(i.a,{variant:"body2",gutterBottom:!0,children:"Full resolution 1920x1080 \u2022 JPEG"}),Object(o.jsx)(i.a,{variant:"body2",color:"textSecondary",children:"ID: 1030114"})]}),Object(o.jsx)(r.a,{item:!0,children:Object(o.jsx)(i.a,{variant:"body2",style:{cursor:"pointer"},children:"Remove"})})]}),Object(o.jsx)(r.a,{item:!0,children:Object(o.jsx)(i.a,{variant:"subtitle1",children:"$19.00"})})]})]})})})}},1993:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Grid from '@material-ui/core/Grid';\nimport Paper from '@material-ui/core/Paper';\nimport Typography from '@material-ui/core/Typography';\nimport ButtonBase from '@material-ui/core/ButtonBase';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n  },\n  paper: {\n    padding: theme.spacing(2),\n    margin: 'auto',\n    maxWidth: 500,\n  },\n  image: {\n    width: 128,\n    height: 128,\n  },\n  img: {\n    margin: 'auto',\n    display: 'block',\n    maxWidth: '100%',\n    maxHeight: '100%',\n  },\n}));\n\nexport default function ComplexGrid() {\n  const classes = useStyles();\n\n  return (\n    <div className={classes.root}>\n      <Paper className={classes.paper}>\n        <Grid container spacing={2}>\n          <Grid item>\n            <ButtonBase className={classes.image}>\n              <img className={classes.img} alt=\"complex\" src=\"/material-ui-static/images/grid/complex.jpg\" />\n            </ButtonBase>\n          </Grid>\n          <Grid item xs={12} sm container>\n            <Grid item xs container direction=\"column\" spacing={2}>\n              <Grid item xs>\n                <Typography gutterBottom variant=\"subtitle1\">\n                  Standard license\n                </Typography>\n                <Typography variant=\"body2\" gutterBottom>\n                  Full resolution 1920x1080 \u2022 JPEG\n                </Typography>\n                <Typography variant=\"body2\" color=\"textSecondary\">\n                  ID: 1030114\n                </Typography>\n              </Grid>\n              <Grid item>\n                <Typography variant=\"body2\" style={{ cursor: 'pointer' }}>\n                  Remove\n                </Typography>\n              </Grid>\n            </Grid>\n            <Grid item>\n              <Typography variant=\"subtitle1\">$19.00</Typography>\n            </Grid>\n          </Grid>\n        </Grid>\n      </Paper>\n    </div>\n  );\n}\n"},1994:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return d}));var a=t(0),r=t.n(a),s=t(1072),i=t(193),c=t(1172),o=t(1);const l=Object(s.a)((e=>({root:{flexGrow:1},paper:{padding:e.spacing(1),textAlign:"center",color:e.palette.text.secondary}})));function d(){const e=l();function n(){return Object(o.jsxs)(r.a.Fragment,{children:[Object(o.jsx)(c.a,{item:!0,xs:4,children:Object(o.jsx)(i.a,{className:e.paper,children:"item"})}),Object(o.jsx)(c.a,{item:!0,xs:4,children:Object(o.jsx)(i.a,{className:e.paper,children:"item"})}),Object(o.jsx)(c.a,{item:!0,xs:4,children:Object(o.jsx)(i.a,{className:e.paper,children:"item"})})]})}return Object(o.jsx)("div",{className:e.root,children:Object(o.jsxs)(c.a,{container:!0,spacing:1,children:[Object(o.jsx)(c.a,{container:!0,item:!0,xs:12,spacing:3,children:Object(o.jsx)(n,{})}),Object(o.jsx)(c.a,{container:!0,item:!0,xs:12,spacing:3,children:Object(o.jsx)(n,{})}),Object(o.jsx)(c.a,{container:!0,item:!0,xs:12,spacing:3,children:Object(o.jsx)(n,{})})]})})}},1995:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Paper from '@material-ui/core/Paper';\nimport Grid from '@material-ui/core/Grid';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n  },\n  paper: {\n    padding: theme.spacing(1),\n    textAlign: 'center',\n    color: theme.palette.text.secondary,\n  },\n}));\n\nexport default function NestedGrid() {\n  const classes = useStyles();\n\n  function FormRow() {\n    return (\n      <React.Fragment>\n        <Grid item xs={4}>\n          <Paper className={classes.paper}>item</Paper>\n        </Grid>\n        <Grid item xs={4}>\n          <Paper className={classes.paper}>item</Paper>\n        </Grid>\n        <Grid item xs={4}>\n          <Paper className={classes.paper}>item</Paper>\n        </Grid>\n      </React.Fragment>\n    );\n  }\n\n  return (\n    <div className={classes.root}>\n      <Grid container spacing={1}>\n        <Grid container item xs={12} spacing={3}>\n          <FormRow />\n        </Grid>\n        <Grid container item xs={12} spacing={3}>\n          <FormRow />\n        </Grid>\n        <Grid container item xs={12} spacing={3}>\n          <FormRow />\n        </Grid>\n      </Grid>\n    </div>\n  );\n}\n"},1996:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return m}));t(0);var a=t(193),r=t(1072),s=t(1172),i=t(1124),c=t(194),o=t(1);const l=Object(r.a)((e=>({root:{flexGrow:1,overflow:"hidden",padding:e.spacing(0,3)},paper:{maxWidth:400,margin:"".concat(e.spacing(1),"px auto"),padding:e.spacing(2)}}))),d="Truncation should be conditionally applicable on this long line of text\n as this is a much longer line than what the container can support. ";function m(){const e=l();return Object(o.jsxs)("div",{className:e.root,children:[Object(o.jsx)(a.a,{className:e.paper,children:Object(o.jsxs)(s.a,{container:!0,wrap:"nowrap",spacing:2,children:[Object(o.jsx)(s.a,{item:!0,children:Object(o.jsx)(i.a,{children:"W"})}),Object(o.jsx)(s.a,{item:!0,xs:!0,zeroMinWidth:!0,children:Object(o.jsx)(c.a,{noWrap:!0,children:d})})]})}),Object(o.jsx)(a.a,{className:e.paper,children:Object(o.jsxs)(s.a,{container:!0,wrap:"nowrap",spacing:2,children:[Object(o.jsx)(s.a,{item:!0,children:Object(o.jsx)(i.a,{children:"W"})}),Object(o.jsx)(s.a,{item:!0,xs:!0,children:Object(o.jsx)(c.a,{noWrap:!0,children:d})})]})}),Object(o.jsx)(a.a,{className:e.paper,children:Object(o.jsxs)(s.a,{container:!0,wrap:"nowrap",spacing:2,children:[Object(o.jsx)(s.a,{item:!0,children:Object(o.jsx)(i.a,{children:"W"})}),Object(o.jsx)(s.a,{item:!0,xs:!0,children:Object(o.jsx)(c.a,{children:d})})]})})]})}},1997:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport Paper from '@material-ui/core/Paper';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Grid from '@material-ui/core/Grid';\nimport Avatar from '@material-ui/core/Avatar';\nimport Typography from '@material-ui/core/Typography';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n    overflow: 'hidden',\n    padding: theme.spacing(0, 3),\n  },\n  paper: {\n    maxWidth: 400,\n    margin: `${theme.spacing(1)}px auto`,\n    padding: theme.spacing(2),\n  },\n}));\n\nconst message = `Truncation should be conditionally applicable on this long line of text\n as this is a much longer line than what the container can support. `;\n\nexport default function AutoGridNoWrap() {\n  const classes = useStyles();\n\n  return (\n    <div className={classes.root}>\n      <Paper className={classes.paper}>\n        <Grid container wrap=\"nowrap\" spacing={2}>\n          <Grid item>\n            <Avatar>W</Avatar>\n          </Grid>\n          <Grid item xs zeroMinWidth>\n            <Typography noWrap>{message}</Typography>\n          </Grid>\n        </Grid>\n      </Paper>\n      <Paper className={classes.paper}>\n        <Grid container wrap=\"nowrap\" spacing={2}>\n          <Grid item>\n            <Avatar>W</Avatar>\n          </Grid>\n          <Grid item xs>\n            <Typography noWrap>{message}</Typography>\n          </Grid>\n        </Grid>\n      </Paper>\n      <Paper className={classes.paper}>\n        <Grid container wrap=\"nowrap\" spacing={2}>\n          <Grid item>\n            <Avatar>W</Avatar>\n          </Grid>\n          <Grid item xs>\n            <Typography>{message}</Typography>\n          </Grid>\n        </Grid>\n      </Paper>\n    </div>\n  );\n}\n"},1998:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return d}));t(0);var a=t(1072),r=t(194),s=t(193),i=t(1108),c=t(1172),o=t(1);const l=Object(a.a)((e=>({container:{display:"grid",gridTemplateColumns:"repeat(12, 1fr)",gridGap:e.spacing(3)},paper:{padding:e.spacing(1),textAlign:"center",color:e.palette.text.secondary,whiteSpace:"nowrap",marginBottom:e.spacing(1)},divider:{margin:e.spacing(2,0)}})));function d(){const e=l();return Object(o.jsxs)("div",{children:[Object(o.jsx)(r.a,{variant:"subtitle1",gutterBottom:!0,children:"Material-UI Grid:"}),Object(o.jsxs)(c.a,{container:!0,spacing:3,children:[Object(o.jsx)(c.a,{item:!0,xs:3,children:Object(o.jsx)(s.a,{className:e.paper,children:"xs=3"})}),Object(o.jsx)(c.a,{item:!0,xs:3,children:Object(o.jsx)(s.a,{className:e.paper,children:"xs=3"})}),Object(o.jsx)(c.a,{item:!0,xs:3,children:Object(o.jsx)(s.a,{className:e.paper,children:"xs=3"})}),Object(o.jsx)(c.a,{item:!0,xs:3,children:Object(o.jsx)(s.a,{className:e.paper,children:"xs=3"})}),Object(o.jsx)(c.a,{item:!0,xs:8,children:Object(o.jsx)(s.a,{className:e.paper,children:"xs=8"})}),Object(o.jsx)(c.a,{item:!0,xs:4,children:Object(o.jsx)(s.a,{className:e.paper,children:"xs=4"})})]}),Object(o.jsx)(i.a,{className:e.divider}),Object(o.jsx)(r.a,{variant:"subtitle1",gutterBottom:!0,children:"CSS Grid Layout:"}),Object(o.jsxs)("div",{className:e.container,children:[Object(o.jsx)("div",{style:{gridColumnEnd:"span 3"},children:Object(o.jsx)(s.a,{className:e.paper,children:"xs=3"})}),Object(o.jsx)("div",{style:{gridColumnEnd:"span 3"},children:Object(o.jsx)(s.a,{className:e.paper,children:"xs=3"})}),Object(o.jsx)("div",{style:{gridColumnEnd:"span 3"},children:Object(o.jsx)(s.a,{className:e.paper,children:"xs=3"})}),Object(o.jsx)("div",{style:{gridColumnEnd:"span 3"},children:Object(o.jsx)(s.a,{className:e.paper,children:"xs=3"})}),Object(o.jsx)("div",{style:{gridColumnEnd:"span 8"},children:Object(o.jsx)(s.a,{className:e.paper,children:"xs=8"})}),Object(o.jsx)("div",{style:{gridColumnEnd:"span 4"},children:Object(o.jsx)(s.a,{className:e.paper,children:"xs=4"})})]})]})}},1999:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Typography from '@material-ui/core/Typography';\nimport Paper from '@material-ui/core/Paper';\nimport Divider from '@material-ui/core/Divider';\nimport Grid from '@material-ui/core/Grid';\n\nconst useStyles = makeStyles((theme) => ({\n  container: {\n    display: 'grid',\n    gridTemplateColumns: 'repeat(12, 1fr)',\n    gridGap: theme.spacing(3),\n  },\n  paper: {\n    padding: theme.spacing(1),\n    textAlign: 'center',\n    color: theme.palette.text.secondary,\n    whiteSpace: 'nowrap',\n    marginBottom: theme.spacing(1),\n  },\n  divider: {\n    margin: theme.spacing(2, 0),\n  },\n}));\n\nexport default function CSSGrid() {\n  const classes = useStyles();\n\n  return (\n    <div>\n      <Typography variant=\"subtitle1\" gutterBottom>\n        Material-UI Grid:\n      </Typography>\n      <Grid container spacing={3}>\n        <Grid item xs={3}>\n          <Paper className={classes.paper}>xs=3</Paper>\n        </Grid>\n        <Grid item xs={3}>\n          <Paper className={classes.paper}>xs=3</Paper>\n        </Grid>\n        <Grid item xs={3}>\n          <Paper className={classes.paper}>xs=3</Paper>\n        </Grid>\n        <Grid item xs={3}>\n          <Paper className={classes.paper}>xs=3</Paper>\n        </Grid>\n        <Grid item xs={8}>\n          <Paper className={classes.paper}>xs=8</Paper>\n        </Grid>\n        <Grid item xs={4}>\n          <Paper className={classes.paper}>xs=4</Paper>\n        </Grid>\n      </Grid>\n      <Divider className={classes.divider} />\n      <Typography variant=\"subtitle1\" gutterBottom>\n        CSS Grid Layout:\n      </Typography>\n      <div className={classes.container}>\n        <div style={{ gridColumnEnd: 'span 3' }}>\n          <Paper className={classes.paper}>xs=3</Paper>\n        </div>\n        <div style={{ gridColumnEnd: 'span 3' }}>\n          <Paper className={classes.paper}>xs=3</Paper>\n        </div>\n        <div style={{ gridColumnEnd: 'span 3' }}>\n          <Paper className={classes.paper}>xs=3</Paper>\n        </div>\n        <div style={{ gridColumnEnd: 'span 3' }}>\n          <Paper className={classes.paper}>xs=3</Paper>\n        </div>\n        <div style={{ gridColumnEnd: 'span 8' }}>\n          <Paper className={classes.paper}>xs=8</Paper>\n        </div>\n        <div style={{ gridColumnEnd: 'span 4' }}>\n          <Paper className={classes.paper}>xs=4</Paper>\n        </div>\n      </div>\n    </div>\n  );\n}\n"},2583:function(e,n,t){"use strict";t.r(n);var a=t(1130),r=t(118),s=t(1098),i=t(1090),c=t(194),o=t(1072),l=t(1);const d=Object(o.a)((e=>({layoutRoot:{"& .description":{marginBottom:16}}})));n.default=function(e){return d(),Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)("div",{className:"flex flex-1 flex-grow-0 items-center justify-end",children:Object(l.jsxs)(s.a,{className:"normal-case",variant:"outlined",component:"a",href:"https://material-ui.com/components/grid",target:"_blank",role:"button",children:[Object(l.jsx)(i.a,{children:"link"}),Object(l.jsx)("span",{className:"mx-4",children:"Reference"})]})}),Object(l.jsx)(c.a,{className:"text-44 mt-32 mb-8",component:"h1",children:"Grid"}),Object(l.jsx)(c.a,{className:"description",children:"The Material Design responsive layout grid adapts to screen size and orientation, ensuring consistency across layouts."}),Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["The ",Object(l.jsx)("a",{href:"https://material.io/design/layout/responsive-layout-grid.html",children:"grid"})," creates visual consistency between layouts while allowing flexibility across a wide variety of designs. Material Design\u2019s responsive UI is based on a 12-column grid layout."]}),Object(l.jsx)("blockquote",{children:Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["\u26a0\ufe0f The ",Object(l.jsx)("code",{children:"Grid"})," component shouldn't be confused with a data grid; it is closer to a layout grid. For a data grid head to"," ",Object(l.jsxs)("a",{href:"/components/data-grid/",children:["the ",Object(l.jsx)("code",{children:"DataGrid"})," component"]}),"."]})}),Object(l.jsx)(c.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"How it works"}),Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["The grid system is implemented with the ",Object(l.jsx)("code",{children:"Grid"})," component:"]}),Object(l.jsxs)("ul",{children:[Object(l.jsxs)("li",{children:["It uses ",Object(l.jsx)("a",{href:"https://www.w3.org/TR/css-flexbox-1/",children:"CSS\u2019s Flexible Box module"})," for high flexibility."]}),Object(l.jsxs)("li",{children:["There are two types of layout: ",Object(l.jsx)("em",{children:"containers"})," and ",Object(l.jsx)("em",{children:"items"}),"."]}),Object(l.jsx)("li",{children:"Item widths are set in percentages, so they\u2019re always fluid and sized relative to their parent element."}),Object(l.jsx)("li",{children:"Items have padding to create the spacing between individual items."}),Object(l.jsx)("li",{children:"There are five grid breakpoints: xs, sm, md, lg, and xl."})]}),Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["If you are ",Object(l.jsx)("strong",{children:"new to or unfamiliar with flexbox"}),", we encourage you to read this"," ",Object(l.jsx)("a",{href:"https://css-tricks.com/snippets/css/a-guide-to-flexbox/",children:"CSS-Tricks flexbox"})," ","guide."]}),Object(l.jsx)(c.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Spacing"}),Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["The responsive grid focuses on consistent spacing widths, rather than column width. Material Design margins and columns follow an ",Object(l.jsx)("strong",{children:"8px"})," square baseline grid. The spacing property is an integer between 0 and 10 inclusive. By default, the spacing between two grid items follows a linear function: ",Object(l.jsx)("code",{children:"output(spacing) = spacing * 8px"}),", e.g."," ",Object(l.jsx)("code",{children:"spacing={2}"})," creates a 16px wide gap."]}),Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["This output transformation function can be customized"," ",Object(l.jsx)("a",{href:"/customization/spacing/",children:"using the theme"}),"."]}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1982).default,raw:t(1983)})}),Object(l.jsx)(c.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Fluid grids"}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:"Fluid grids use columns that scale and resize content. A fluid grid\u2019s layout can use breakpoints to determine if the layout needs to change dramatically."}),Object(l.jsx)(c.a,{className:"text-24 mt-32 mb-8",component:"h3",children:"Basic grid"}),Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["The column widths apply at all breakpoints (i.e. ",Object(l.jsx)("code",{children:"xs"})," and up)."]}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1984).default,raw:t(1985)})}),Object(l.jsx)(c.a,{className:"text-24 mt-32 mb-8",component:"h3",children:"Grid with breakpoints"}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:"Some columns have multiple widths defined, causing the layout to change at the defined breakpoint."}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1986).default,raw:t(1987)})}),Object(l.jsx)(c.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Interactive"}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:"Below is an interactive demo that lets you explore the visual results of the different settings:"}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1988).default,raw:t(1989)})}),Object(l.jsx)(c.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Auto-layout"}),Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["The Auto-layout makes the ",Object(l.jsx)("em",{children:"items"})," equitably share the available space. That also means you can set the width of one ",Object(l.jsx)("em",{children:"item"})," and the others will automatically resize around it."]}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1990).default,raw:t(1991)})}),Object(l.jsx)(c.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Complex Grid"}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:"The following demo doesn't follow the Material Design specification, but illustrates how the grid can be used to build complex layouts."}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1992).default,raw:t(1993)})}),Object(l.jsx)(c.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Nested Grid"}),Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["The ",Object(l.jsx)("code",{children:"container"})," and ",Object(l.jsx)("code",{children:"item"})," properties are two independent booleans. They can be combined."]}),Object(l.jsx)("blockquote",{children:Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["A flex ",Object(l.jsx)("strong",{children:"container"})," is the box generated by an element with a computed display of ",Object(l.jsx)("code",{children:"flex"})," or ",Object(l.jsx)("code",{children:"inline-flex"}),". In-flow children of a flex container are called flex ",Object(l.jsx)("strong",{children:"items"})," and are laid out using the flex layout model."]})}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:Object(l.jsx)("a",{href:"https://www.w3.org/TR/css-flexbox-1/#box-model",children:"https://www.w3.org/TR/css-flexbox-1/#box-model"})}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1994).default,raw:t(1995)})}),Object(l.jsx)(c.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Limitations"}),Object(l.jsx)(c.a,{className:"text-24 mt-32 mb-8",component:"h3",children:"Negative margin"}),Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["There is one limitation with the negative margin we use to implement the spacing between items. A horizontal scroll will appear if a negative margin goes beyond the"," ",Object(l.jsx)("code",{children:"<body>"}),". There are 3 available workarounds:"]}),Object(l.jsxs)("ol",{children:[Object(l.jsxs)("li",{children:["Not using the spacing feature and implementing it in user space"," ",Object(l.jsx)("code",{children:"spacing={0}"})," (default)."]}),Object(l.jsxs)("li",{children:["Applying padding to the parent with at least half the spacing value applied to the child:",Object(l.jsx)(r.a,{component:"pre",className:"language-jsx",children:" \n<body>\n <div style={{ padding: 20 }}>\n   <Grid container spacing={5}>\n     //...\n   </Grid>\n </div>\n</body>\n"})]}),Object(l.jsxs)("li",{children:["Adding ",Object(l.jsx)("code",{children:"overflow-x: hidden;"})," to the parent."]})]}),Object(l.jsx)(c.a,{className:"text-24 mt-32 mb-8",component:"h3",children:"white-space: nowrap;"}),Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["The initial setting on flex items is ",Object(l.jsx)("code",{children:"min-width: auto"}),". It's causing a positioning conflict when the children is using ",Object(l.jsx)("code",{children:"white-space: nowrap;"}),". You can experience the issue with:"]}),Object(l.jsx)(r.a,{component:"pre",className:"language-jsx",children:" \n<Grid item xs>\n  <Typography noWrap>\n"}),Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["In order for the item to stay within the container you need to set ",Object(l.jsx)("code",{children:"min-width: 0"}),". In practice, you can set the ",Object(l.jsx)("code",{children:"zeroMinWidth"})," property:"]}),Object(l.jsx)(r.a,{component:"pre",className:"language-jsx",children:" \n<Grid item xs zeroMinWidth>\n  <Typography noWrap>\n"}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1996).default,raw:t(1997)})}),Object(l.jsx)(c.a,{className:"text-24 mt-32 mb-8",component:"h3",children:"direction: column | column-reverse"}),Object(l.jsxs)(c.a,{className:"mb-16",component:"div",children:["Though the ",Object(l.jsx)("code",{children:"Grid"})," component has a ",Object(l.jsx)("code",{children:"direction"})," property that allows values of ",Object(l.jsx)("code",{children:"row"}),", ",Object(l.jsx)("code",{children:"row-reverse"}),", ",Object(l.jsx)("code",{children:"column"}),", and"," ",Object(l.jsx)("code",{children:"column-reverse"}),", there are some features that are not supported within"," ",Object(l.jsx)("code",{children:"column"})," and ",Object(l.jsx)("code",{children:"column-reverse"})," containers. The properties which define the number of grids the component will use for a given breakpoint (",Object(l.jsx)("code",{children:"xs"}),","," ",Object(l.jsx)("code",{children:"sm"}),", ",Object(l.jsx)("code",{children:"md"}),", ",Object(l.jsx)("code",{children:"lg"}),", and ",Object(l.jsx)("code",{children:"xl"}),") are focused on controlling width and do ",Object(l.jsx)("strong",{children:"not"})," have similar effects on height within"," ",Object(l.jsx)("code",{children:"column"})," and ",Object(l.jsx)("code",{children:"column-reverse"})," containers. If used within"," ",Object(l.jsx)("code",{children:"column"})," or ",Object(l.jsx)("code",{children:"column-reverse"})," containers, these properties may have undesirable effects on the width of the ",Object(l.jsx)("code",{children:"Grid"})," elements."]}),Object(l.jsx)(c.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"CSS Grid Layout"}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:"Material-UI doesn't provide any CSS Grid functionality itself, but as seen below you can easily use CSS Grid to layout your pages."}),Object(l.jsx)(c.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1998).default,raw:t(1999)})})]})}}}]);

Zerion Mini Shell 1.0