%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/26.a51912ab.chunk.js

(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[26],{1130:function(e,n,t){"use strict";t.d(n,"a",(function(){return I}));var a=t(118),o=t(1100),r=t(1109),i=t(1090),s=t(1117),c=t(1119),l=t(5),m=t(0),u=t(1024),p=t(551),d=t(1087),h=t(1099),b=t(11),j=t(370),f=t(371),g=t(1131),x=t.n(g),y=t(1);const O=Object(u.a)({productionPrefix:"iframe-"});class v extends m.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(j.a)({...Object(p.a)(),plugins:[...Object(p.a)().plugins,Object(f.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(y.jsxs)(y.Fragment,{children:[Object(y.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n                    html {\n                    font-size: 62.5%;\n                    font-family: Poppins, Roboto, Helvetica Neue, Arial, sans-serif;\n                    }\n                "}}),Object(y.jsx)("noscript",{id:"jss-demo-insertion-point"})]})}render(){const{children:e,classes:n,theme:t}=this.props;return Object(y.jsx)(x.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(y.jsx)(d.b,{jss:this.state.jss,generateClassName:O,sheetsManager:this.state.sheetsManager,children:Object(y.jsx)(h.a,{theme:t,children:Object(m.cloneElement)(e,{container:this.state.container})})}):null})}}var w=Object(b.a)((e=>({root:{backgroundColor:e.palette.background.default,flexGrow:1,height:400,border:"none"}})),{withTheme:!0})(v);function B(e){const[n,t]=Object(m.useState)(e.currentTabIndex),{component:u,raw:p,iframe:d,className:h}=e;return Object(y.jsxs)(r.a,{className:Object(l.a)(h,"shadow"),children:[Object(y.jsx)(o.a,{position:"static",color:"default",className:"shadow-0",children:Object(y.jsxs)(c.a,{classes:{root:"border-b-1",flexContainer:"justify-end"},value:n,onChange:function(e,n){t(n)},children:[u&&Object(y.jsx)(s.a,{classes:{root:"min-w-64"},icon:Object(y.jsx)(i.a,{children:"remove_red_eye"})}),p&&Object(y.jsx)(s.a,{classes:{root:"min-w-64"},icon:Object(y.jsx)(i.a,{children:"code"})})]})}),Object(y.jsxs)("div",{className:"flex justify-center max-w-full",children:[Object(y.jsx)("div",{className:0===n?"flex flex-1 max-w-full":"hidden",children:u&&(d?Object(y.jsx)(w,{children:Object(y.jsx)(u,{})}):Object(y.jsx)("div",{className:"p-24 flex flex-1 justify-center max-w-full",children:Object(y.jsx)(u,{})}))}),Object(y.jsx)("div",{className:1===n?"flex flex-1":"hidden",children:p&&Object(y.jsx)("div",{className:"flex flex-1",children:Object(y.jsx)(a.a,{component:"pre",className:"language-javascript w-full",children:p.default})})})]})]})}B.defaultProps={currentTabIndex:0};var I=B},1159:function(e,n,t){"use strict";var a=t(552),o=t(1127);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(0)),i=(0,a(t(1128)).default)(r.createElement("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"}),"Mail");n.default=i},1164:function(e,n,t){"use strict";var a=t(552),o=t(1127);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(0)),i=(0,a(t(1128)).default)(r.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");n.default=i},1174:function(e,n,t){"use strict";var a=t(552),o=t(1127);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(0)),i=(0,a(t(1128)).default)(r.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");n.default=i},1234:function(e,n,t){"use strict";var a=t(552),o=t(1127);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(0)),i=(0,a(t(1128)).default)(r.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");n.default=i},1249:function(e,n,t){"use strict";var a=t(552),o=t(1127);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(0)),i=(0,a(t(1128)).default)(r.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");n.default=i},1293:function(e,n,t){"use strict";var a=t(552),o=t(1127);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(0)),i=(0,a(t(1128)).default)(r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"}),"AccountCircle");n.default=i},1342:function(e,n,t){"use strict";var a=t(2),o=t(0),r=t(11),i={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},s=function(e){return Object(a.a)({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};n.a=Object(r.a)((function(e){return{"@global":{html:i,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Object(a.a)({margin:0},s(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(e){var n=e.children,t=void 0===n?null:n;return e.classes,o.createElement(o.Fragment,null,t)}))},1343:function(e,n,t){"use strict";var a=t(2),o=t(7),r=t(0),i=t(8),s=t(11),c=t(109),l=r.forwardRef((function(e,n){var t=e.classes,s=e.className,l=Object(o.a)(e,["classes","className"]),m=r.useContext(c.a);return r.createElement("div",Object(a.a)({className:Object(i.a)(t.root,s,"flex-start"===m.alignItems&&t.alignItemsFlexStart),ref:n},l))}));n.a=Object(s.a)({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(l)},1344:function(e,n,t){"use strict";var a=t(2),o=t(64),r=t(7),i=t(0),s=t(287),c=t(58),l=t(43),m=t(70),u=t(25),p={entering:{transform:"none"},entered:{transform:"none"}},d={enter:c.b.enteringScreen,exit:c.b.leavingScreen},h=i.forwardRef((function(e,n){var t=e.children,c=e.disableStrictModeCompat,h=void 0!==c&&c,b=e.in,j=e.onEnter,f=e.onEntered,g=e.onEntering,x=e.onExit,y=e.onExited,O=e.onExiting,v=e.style,w=e.timeout,B=void 0===w?d:w,I=e.TransitionComponent,M=void 0===I?s.a:I,N=Object(r.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=Object(l.a)(),k=T.unstable_strictMode&&!h,S=i.useRef(null),C=Object(u.a)(t.ref,n),A=Object(u.a)(k?S:void 0,C),R=function(e){return function(n,t){if(e){var a=k?[S.current,n]:[n,t],r=Object(o.a)(a,2),i=r[0],s=r[1];void 0===s?e(i):e(i,s)}}},E=R(g),L=R((function(e,n){Object(m.b)(e);var t=Object(m.a)({style:v,timeout:B},{mode:"enter"});e.style.webkitTransition=T.transitions.create("transform",t),e.style.transition=T.transitions.create("transform",t),j&&j(e,n)})),P=R(f),F=R(O),z=R((function(e){var n=Object(m.a)({style:v,timeout:B},{mode:"exit"});e.style.webkitTransition=T.transitions.create("transform",n),e.style.transition=T.transitions.create("transform",n),x&&x(e)})),G=R(y);return i.createElement(M,Object(a.a)({appear:!0,in:b,nodeRef:k?S:void 0,onEnter:L,onEntered:P,onEntering:E,onExit:z,onExited:G,onExiting:F,timeout:B},N),(function(e,n){return i.cloneElement(t,Object(a.a)({style:Object(a.a)({transform:"scale(0)",visibility:"exited"!==e||b?void 0:"hidden"},p[e],v,t.props.style),ref:A},n))}))}));n.a=h},1689:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return d}));t(0);var a=t(1072),o=t(1100),r=t(1101),i=t(194),s=t(1098),c=t(1028),l=t(1164),m=t.n(l),u=t(1);const p=Object(a.a)((e=>({root:{flexGrow:1},menuButton:{marginRight:e.spacing(2)},title:{flexGrow:1}})));function d(){const e=p();return Object(u.jsx)("div",{className:e.root,children:Object(u.jsx)(o.a,{position:"static",children:Object(u.jsxs)(r.a,{children:[Object(u.jsx)(c.a,{edge:"start",className:e.menuButton,color:"inherit","aria-label":"menu",children:Object(u.jsx)(m.a,{})}),Object(u.jsx)(i.a,{variant:"h6",className:e.title,children:"News"}),Object(u.jsx)(s.a,{color:"inherit",children:"Login"})]})})})}},1690:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Typography from '@material-ui/core/Typography';\nimport Button from '@material-ui/core/Button';\nimport IconButton from '@material-ui/core/IconButton';\nimport MenuIcon from '@material-ui/icons/Menu';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n  },\n  menuButton: {\n    marginRight: theme.spacing(2),\n  },\n  title: {\n    flexGrow: 1,\n  },\n}));\n\nexport default function ButtonAppBar() {\n  const classes = useStyles();\n\n  return (\n    <div className={classes.root}>\n      <AppBar position=\"static\">\n        <Toolbar>\n          <IconButton edge=\"start\" className={classes.menuButton} color=\"inherit\" aria-label=\"menu\">\n            <MenuIcon />\n          </IconButton>\n          <Typography variant=\"h6\" className={classes.title}>\n            News\n          </Typography>\n          <Button color=\"inherit\">Login</Button>\n        </Toolbar>\n      </AppBar>\n    </div>\n  );\n}\n"},1691:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return k}));var a=t(0),o=t.n(a),r=t(1072),i=t(31),s=t(1100),c=t(1101),l=t(1028),m=t(194),u=t(549),p=t(1114),d=t(1092),h=t(536),b=t(1164),j=t.n(b),f=t(1249),g=t.n(f),x=t(1293),y=t.n(x),O=t(1159),v=t.n(O),w=t(1692),B=t.n(w),I=t(1234),M=t.n(I),N=t(1);const T=Object(r.a)((e=>({grow:{flexGrow:1},menuButton:{marginRight:e.spacing(2)},title:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},search:{position:"relative",borderRadius:e.shape.borderRadius,backgroundColor:Object(i.a)(e.palette.common.white,.15),"&:hover":{backgroundColor:Object(i.a)(e.palette.common.white,.25)},marginRight:e.spacing(2),marginLeft:0,width:"100%",[e.breakpoints.up("sm")]:{marginLeft:e.spacing(3),width:"auto"}},searchIcon:{padding:e.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"},inputRoot:{color:"inherit"},inputInput:{padding:e.spacing(1,1,1,0),paddingLeft:"calc(1em + ".concat(e.spacing(4),"px)"),transition:e.transitions.create("width"),width:"100%",[e.breakpoints.up("md")]:{width:"20ch"}},sectionDesktop:{display:"none",[e.breakpoints.up("md")]:{display:"flex"}},sectionMobile:{display:"flex",[e.breakpoints.up("md")]:{display:"none"}}})));function k(){const e=T(),[n,t]=o.a.useState(null),[a,r]=o.a.useState(null),i=Boolean(n),b=Boolean(a),f=e=>{t(e.currentTarget)},x=()=>{r(null)},O=()=>{t(null),x()},w="primary-search-account-menu",I=Object(N.jsxs)(h.a,{anchorEl:n,anchorOrigin:{vertical:"top",horizontal:"right"},id:w,keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:i,onClose:O,children:[Object(N.jsx)(d.a,{onClick:O,children:"Profile"}),Object(N.jsx)(d.a,{onClick:O,children:"My account"})]}),k="primary-search-account-menu-mobile",S=Object(N.jsxs)(h.a,{anchorEl:a,anchorOrigin:{vertical:"top",horizontal:"right"},id:k,keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:b,onClose:x,children:[Object(N.jsxs)(d.a,{children:[Object(N.jsx)(l.a,{"aria-label":"show 4 new mails",color:"inherit",children:Object(N.jsx)(p.a,{badgeContent:4,color:"secondary",children:Object(N.jsx)(v.a,{})})}),Object(N.jsx)("p",{children:"Messages"})]}),Object(N.jsxs)(d.a,{children:[Object(N.jsx)(l.a,{"aria-label":"show 11 new notifications",color:"inherit",children:Object(N.jsx)(p.a,{badgeContent:11,color:"secondary",children:Object(N.jsx)(B.a,{})})}),Object(N.jsx)("p",{children:"Notifications"})]}),Object(N.jsxs)(d.a,{onClick:f,children:[Object(N.jsx)(l.a,{"aria-label":"account of current user","aria-controls":"primary-search-account-menu","aria-haspopup":"true",color:"inherit",children:Object(N.jsx)(y.a,{})}),Object(N.jsx)("p",{children:"Profile"})]})]});return Object(N.jsxs)("div",{className:e.grow,children:[Object(N.jsx)(s.a,{position:"static",children:Object(N.jsxs)(c.a,{children:[Object(N.jsx)(l.a,{edge:"start",className:e.menuButton,color:"inherit","aria-label":"open drawer",children:Object(N.jsx)(j.a,{})}),Object(N.jsx)(m.a,{className:e.title,variant:"h6",noWrap:!0,children:"Material-UI"}),Object(N.jsxs)("div",{className:e.search,children:[Object(N.jsx)("div",{className:e.searchIcon,children:Object(N.jsx)(g.a,{})}),Object(N.jsx)(u.a,{placeholder:"Search\u2026",classes:{root:e.inputRoot,input:e.inputInput},inputProps:{"aria-label":"search"}})]}),Object(N.jsx)("div",{className:e.grow}),Object(N.jsxs)("div",{className:e.sectionDesktop,children:[Object(N.jsx)(l.a,{"aria-label":"show 4 new mails",color:"inherit",children:Object(N.jsx)(p.a,{badgeContent:4,color:"secondary",children:Object(N.jsx)(v.a,{})})}),Object(N.jsx)(l.a,{"aria-label":"show 17 new notifications",color:"inherit",children:Object(N.jsx)(p.a,{badgeContent:17,color:"secondary",children:Object(N.jsx)(B.a,{})})}),Object(N.jsx)(l.a,{edge:"end","aria-label":"account of current user","aria-controls":w,"aria-haspopup":"true",onClick:f,color:"inherit",children:Object(N.jsx)(y.a,{})})]}),Object(N.jsx)("div",{className:e.sectionMobile,children:Object(N.jsx)(l.a,{"aria-label":"show more","aria-controls":k,"aria-haspopup":"true",onClick:e=>{r(e.currentTarget)},color:"inherit",children:Object(N.jsx)(M.a,{})})})]})}),S,I]})}},1692:function(e,n,t){"use strict";var a=t(552),o=t(1127);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(0)),i=(0,a(t(1128)).default)(r.createElement("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),"Notifications");n.default=i},1693:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { alpha, makeStyles } from '@material-ui/core/styles';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport IconButton from '@material-ui/core/IconButton';\nimport Typography from '@material-ui/core/Typography';\nimport InputBase from '@material-ui/core/InputBase';\nimport Badge from '@material-ui/core/Badge';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport Menu from '@material-ui/core/Menu';\nimport MenuIcon from '@material-ui/icons/Menu';\nimport SearchIcon from '@material-ui/icons/Search';\nimport AccountCircle from '@material-ui/icons/AccountCircle';\nimport MailIcon from '@material-ui/icons/Mail';\nimport NotificationsIcon from '@material-ui/icons/Notifications';\nimport MoreIcon from '@material-ui/icons/MoreVert';\n\nconst useStyles = makeStyles((theme) => ({\n  grow: {\n    flexGrow: 1,\n  },\n  menuButton: {\n    marginRight: theme.spacing(2),\n  },\n  title: {\n    display: 'none',\n    [theme.breakpoints.up('sm')]: {\n      display: 'block',\n    },\n  },\n  search: {\n    position: 'relative',\n    borderRadius: theme.shape.borderRadius,\n    backgroundColor: alpha(theme.palette.common.white, 0.15),\n    '&:hover': {\n      backgroundColor: alpha(theme.palette.common.white, 0.25),\n    },\n    marginRight: theme.spacing(2),\n    marginLeft: 0,\n    width: '100%',\n    [theme.breakpoints.up('sm')]: {\n      marginLeft: theme.spacing(3),\n      width: 'auto',\n    },\n  },\n  searchIcon: {\n    padding: theme.spacing(0, 2),\n    height: '100%',\n    position: 'absolute',\n    pointerEvents: 'none',\n    display: 'flex',\n    alignItems: 'center',\n    justifyContent: 'center',\n  },\n  inputRoot: {\n    color: 'inherit',\n  },\n  inputInput: {\n    padding: theme.spacing(1, 1, 1, 0),\n    // vertical padding + font size from searchIcon\n    paddingLeft: `calc(1em + ${theme.spacing(4)}px)`,\n    transition: theme.transitions.create('width'),\n    width: '100%',\n    [theme.breakpoints.up('md')]: {\n      width: '20ch',\n    },\n  },\n  sectionDesktop: {\n    display: 'none',\n    [theme.breakpoints.up('md')]: {\n      display: 'flex',\n    },\n  },\n  sectionMobile: {\n    display: 'flex',\n    [theme.breakpoints.up('md')]: {\n      display: 'none',\n    },\n  },\n}));\n\nexport default function PrimarySearchAppBar() {\n  const classes = useStyles();\n  const [anchorEl, setAnchorEl] = React.useState(null);\n  const [mobileMoreAnchorEl, setMobileMoreAnchorEl] = React.useState(null);\n\n  const isMenuOpen = Boolean(anchorEl);\n  const isMobileMenuOpen = Boolean(mobileMoreAnchorEl);\n\n  const handleProfileMenuOpen = (event) => {\n    setAnchorEl(event.currentTarget);\n  };\n\n  const handleMobileMenuClose = () => {\n    setMobileMoreAnchorEl(null);\n  };\n\n  const handleMenuClose = () => {\n    setAnchorEl(null);\n    handleMobileMenuClose();\n  };\n\n  const handleMobileMenuOpen = (event) => {\n    setMobileMoreAnchorEl(event.currentTarget);\n  };\n\n  const menuId = 'primary-search-account-menu';\n  const renderMenu = (\n    <Menu\n      anchorEl={anchorEl}\n      anchorOrigin={{ vertical: 'top', horizontal: 'right' }}\n      id={menuId}\n      keepMounted\n      transformOrigin={{ vertical: 'top', horizontal: 'right' }}\n      open={isMenuOpen}\n      onClose={handleMenuClose}\n    >\n      <MenuItem onClick={handleMenuClose}>Profile</MenuItem>\n      <MenuItem onClick={handleMenuClose}>My account</MenuItem>\n    </Menu>\n  );\n\n  const mobileMenuId = 'primary-search-account-menu-mobile';\n  const renderMobileMenu = (\n    <Menu\n      anchorEl={mobileMoreAnchorEl}\n      anchorOrigin={{ vertical: 'top', horizontal: 'right' }}\n      id={mobileMenuId}\n      keepMounted\n      transformOrigin={{ vertical: 'top', horizontal: 'right' }}\n      open={isMobileMenuOpen}\n      onClose={handleMobileMenuClose}\n    >\n      <MenuItem>\n        <IconButton aria-label=\"show 4 new mails\" color=\"inherit\">\n          <Badge badgeContent={4} color=\"secondary\">\n            <MailIcon />\n          </Badge>\n        </IconButton>\n        <p>Messages</p>\n      </MenuItem>\n      <MenuItem>\n        <IconButton aria-label=\"show 11 new notifications\" color=\"inherit\">\n          <Badge badgeContent={11} color=\"secondary\">\n            <NotificationsIcon />\n          </Badge>\n        </IconButton>\n        <p>Notifications</p>\n      </MenuItem>\n      <MenuItem onClick={handleProfileMenuOpen}>\n        <IconButton\n          aria-label=\"account of current user\"\n          aria-controls=\"primary-search-account-menu\"\n          aria-haspopup=\"true\"\n          color=\"inherit\"\n        >\n          <AccountCircle />\n        </IconButton>\n        <p>Profile</p>\n      </MenuItem>\n    </Menu>\n  );\n\n  return (\n    <div className={classes.grow}>\n      <AppBar position=\"static\">\n        <Toolbar>\n          <IconButton\n            edge=\"start\"\n            className={classes.menuButton}\n            color=\"inherit\"\n            aria-label=\"open drawer\"\n          >\n            <MenuIcon />\n          </IconButton>\n          <Typography className={classes.title} variant=\"h6\" noWrap>\n            Material-UI\n          </Typography>\n          <div className={classes.search}>\n            <div className={classes.searchIcon}>\n              <SearchIcon />\n            </div>\n            <InputBase\n              placeholder=\"Search\u2026\"\n              classes={{\n                root: classes.inputRoot,\n                input: classes.inputInput,\n              }}\n              inputProps={{ 'aria-label': 'search' }}\n            />\n          </div>\n          <div className={classes.grow} />\n          <div className={classes.sectionDesktop}>\n            <IconButton aria-label=\"show 4 new mails\" color=\"inherit\">\n              <Badge badgeContent={4} color=\"secondary\">\n                <MailIcon />\n              </Badge>\n            </IconButton>\n            <IconButton aria-label=\"show 17 new notifications\" color=\"inherit\">\n              <Badge badgeContent={17} color=\"secondary\">\n                <NotificationsIcon />\n              </Badge>\n            </IconButton>\n            <IconButton\n              edge=\"end\"\n              aria-label=\"account of current user\"\n              aria-controls={menuId}\n              aria-haspopup=\"true\"\n              onClick={handleProfileMenuOpen}\n              color=\"inherit\"\n            >\n              <AccountCircle />\n            </IconButton>\n          </div>\n          <div className={classes.sectionMobile}>\n            <IconButton\n              aria-label=\"show more\"\n              aria-controls={mobileMenuId}\n              aria-haspopup=\"true\"\n              onClick={handleMobileMenuOpen}\n              color=\"inherit\"\n            >\n              <MoreIcon />\n            </IconButton>\n          </div>\n        </Toolbar>\n      </AppBar>\n      {renderMobileMenu}\n      {renderMenu}\n    </div>\n  );\n}\n"},1694:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return O}));var a=t(0),o=t.n(a),r=t(1072),i=t(1100),s=t(1101),c=t(194),l=t(1028),m=t(1164),u=t.n(m),p=t(1293),d=t.n(p),h=t(1095),b=t(1094),j=t(1037),f=t(1092),g=t(536),x=t(1);const y=Object(r.a)((e=>({root:{flexGrow:1},menuButton:{marginRight:e.spacing(2)},title:{flexGrow:1}})));function O(){const e=y(),[n,t]=o.a.useState(!0),[a,r]=o.a.useState(null),m=Boolean(a),p=()=>{r(null)};return Object(x.jsxs)("div",{className:e.root,children:[Object(x.jsx)(j.a,{children:Object(x.jsx)(b.a,{control:Object(x.jsx)(h.a,{checked:n,onChange:e=>{t(e.target.checked)},"aria-label":"login switch"}),label:n?"Logout":"Login"})}),Object(x.jsx)(i.a,{position:"static",children:Object(x.jsxs)(s.a,{children:[Object(x.jsx)(l.a,{edge:"start",className:e.menuButton,color:"inherit","aria-label":"menu",children:Object(x.jsx)(u.a,{})}),Object(x.jsx)(c.a,{variant:"h6",className:e.title,children:"Photos"}),n&&Object(x.jsxs)("div",{children:[Object(x.jsx)(l.a,{"aria-label":"account of current user","aria-controls":"menu-appbar","aria-haspopup":"true",onClick:e=>{r(e.currentTarget)},color:"inherit",children:Object(x.jsx)(d.a,{})}),Object(x.jsxs)(g.a,{id:"menu-appbar",anchorEl:a,anchorOrigin:{vertical:"top",horizontal:"right"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:m,onClose:p,children:[Object(x.jsx)(f.a,{onClick:p,children:"Profile"}),Object(x.jsx)(f.a,{onClick:p,children:"My account"})]})]})]})})]})}},1695:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Typography from '@material-ui/core/Typography';\nimport IconButton from '@material-ui/core/IconButton';\nimport MenuIcon from '@material-ui/icons/Menu';\nimport AccountCircle from '@material-ui/icons/AccountCircle';\nimport Switch from '@material-ui/core/Switch';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport FormGroup from '@material-ui/core/FormGroup';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport Menu from '@material-ui/core/Menu';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n  },\n  menuButton: {\n    marginRight: theme.spacing(2),\n  },\n  title: {\n    flexGrow: 1,\n  },\n}));\n\nexport default function MenuAppBar() {\n  const classes = useStyles();\n  const [auth, setAuth] = React.useState(true);\n  const [anchorEl, setAnchorEl] = React.useState(null);\n  const open = Boolean(anchorEl);\n\n  const handleChange = (event) => {\n    setAuth(event.target.checked);\n  };\n\n  const handleMenu = (event) => {\n    setAnchorEl(event.currentTarget);\n  };\n\n  const handleClose = () => {\n    setAnchorEl(null);\n  };\n\n  return (\n    <div className={classes.root}>\n      <FormGroup>\n        <FormControlLabel\n          control={<Switch checked={auth} onChange={handleChange} aria-label=\"login switch\" />}\n          label={auth ? 'Logout' : 'Login'}\n        />\n      </FormGroup>\n      <AppBar position=\"static\">\n        <Toolbar>\n          <IconButton edge=\"start\" className={classes.menuButton} color=\"inherit\" aria-label=\"menu\">\n            <MenuIcon />\n          </IconButton>\n          <Typography variant=\"h6\" className={classes.title}>\n            Photos\n          </Typography>\n          {auth && (\n            <div>\n              <IconButton\n                aria-label=\"account of current user\"\n                aria-controls=\"menu-appbar\"\n                aria-haspopup=\"true\"\n                onClick={handleMenu}\n                color=\"inherit\"\n              >\n                <AccountCircle />\n              </IconButton>\n              <Menu\n                id=\"menu-appbar\"\n                anchorEl={anchorEl}\n                anchorOrigin={{\n                  vertical: 'top',\n                  horizontal: 'right',\n                }}\n                keepMounted\n                transformOrigin={{\n                  vertical: 'top',\n                  horizontal: 'right',\n                }}\n                open={open}\n                onClose={handleClose}\n              >\n                <MenuItem onClick={handleClose}>Profile</MenuItem>\n                <MenuItem onClick={handleClose}>My account</MenuItem>\n              </Menu>\n            </div>\n          )}\n        </Toolbar>\n      </AppBar>\n    </div>\n  );\n}\n"},1696:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return j}));t(0);var a=t(1100),o=t(1101),r=t(1028),i=t(194),s=t(549),c=t(1072),l=t(31),m=t(1164),u=t.n(m),p=t(1249),d=t.n(p),h=t(1);const b=Object(c.a)((e=>({root:{flexGrow:1},menuButton:{marginRight:e.spacing(2)},title:{flexGrow:1,display:"none",[e.breakpoints.up("sm")]:{display:"block"}},search:{position:"relative",borderRadius:e.shape.borderRadius,backgroundColor:Object(l.a)(e.palette.common.white,.15),"&:hover":{backgroundColor:Object(l.a)(e.palette.common.white,.25)},marginLeft:0,width:"100%",[e.breakpoints.up("sm")]:{marginLeft:e.spacing(1),width:"auto"}},searchIcon:{padding:e.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"},inputRoot:{color:"inherit"},inputInput:{padding:e.spacing(1,1,1,0),paddingLeft:"calc(1em + ".concat(e.spacing(4),"px)"),transition:e.transitions.create("width"),width:"100%",[e.breakpoints.up("sm")]:{width:"12ch","&:focus":{width:"20ch"}}}})));function j(){const e=b();return Object(h.jsx)("div",{className:e.root,children:Object(h.jsx)(a.a,{position:"static",children:Object(h.jsxs)(o.a,{children:[Object(h.jsx)(r.a,{edge:"start",className:e.menuButton,color:"inherit","aria-label":"open drawer",children:Object(h.jsx)(u.a,{})}),Object(h.jsx)(i.a,{className:e.title,variant:"h6",noWrap:!0,children:"Material-UI"}),Object(h.jsxs)("div",{className:e.search,children:[Object(h.jsx)("div",{className:e.searchIcon,children:Object(h.jsx)(d.a,{})}),Object(h.jsx)(s.a,{placeholder:"Search\u2026",classes:{root:e.inputRoot,input:e.inputInput},inputProps:{"aria-label":"search"}})]})]})})})}},1697:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport IconButton from '@material-ui/core/IconButton';\nimport Typography from '@material-ui/core/Typography';\nimport InputBase from '@material-ui/core/InputBase';\nimport { alpha, makeStyles } from '@material-ui/core/styles';\nimport MenuIcon from '@material-ui/icons/Menu';\nimport SearchIcon from '@material-ui/icons/Search';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n  },\n  menuButton: {\n    marginRight: theme.spacing(2),\n  },\n  title: {\n    flexGrow: 1,\n    display: 'none',\n    [theme.breakpoints.up('sm')]: {\n      display: 'block',\n    },\n  },\n  search: {\n    position: 'relative',\n    borderRadius: theme.shape.borderRadius,\n    backgroundColor: alpha(theme.palette.common.white, 0.15),\n    '&:hover': {\n      backgroundColor: alpha(theme.palette.common.white, 0.25),\n    },\n    marginLeft: 0,\n    width: '100%',\n    [theme.breakpoints.up('sm')]: {\n      marginLeft: theme.spacing(1),\n      width: 'auto',\n    },\n  },\n  searchIcon: {\n    padding: theme.spacing(0, 2),\n    height: '100%',\n    position: 'absolute',\n    pointerEvents: 'none',\n    display: 'flex',\n    alignItems: 'center',\n    justifyContent: 'center',\n  },\n  inputRoot: {\n    color: 'inherit',\n  },\n  inputInput: {\n    padding: theme.spacing(1, 1, 1, 0),\n    // vertical padding + font size from searchIcon\n    paddingLeft: `calc(1em + ${theme.spacing(4)}px)`,\n    transition: theme.transitions.create('width'),\n    width: '100%',\n    [theme.breakpoints.up('sm')]: {\n      width: '12ch',\n      '&:focus': {\n        width: '20ch',\n      },\n    },\n  },\n}));\n\nexport default function SearchAppBar() {\n  const classes = useStyles();\n\n  return (\n    <div className={classes.root}>\n      <AppBar position=\"static\">\n        <Toolbar>\n          <IconButton\n            edge=\"start\"\n            className={classes.menuButton}\n            color=\"inherit\"\n            aria-label=\"open drawer\"\n          >\n            <MenuIcon />\n          </IconButton>\n          <Typography className={classes.title} variant=\"h6\" noWrap>\n            Material-UI\n          </Typography>\n          <div className={classes.search}>\n            <div className={classes.searchIcon}>\n              <SearchIcon />\n            </div>\n            <InputBase\n              placeholder=\"Search\u2026\"\n              classes={{\n                root: classes.inputRoot,\n                input: classes.inputInput,\n              }}\n              inputProps={{ 'aria-label': 'search' }}\n            />\n          </div>\n        </Toolbar>\n      </AppBar>\n    </div>\n  );\n}\n"},1698:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return p}));t(0);var a=t(1072),o=t(1100),r=t(1101),i=t(194),s=t(1028),c=t(1164),l=t.n(c),m=t(1);const u=Object(a.a)((e=>({root:{flexGrow:1},menuButton:{marginRight:e.spacing(2)}})));function p(){const e=u();return Object(m.jsx)("div",{className:e.root,children:Object(m.jsx)(o.a,{position:"static",children:Object(m.jsxs)(r.a,{variant:"dense",children:[Object(m.jsx)(s.a,{edge:"start",className:e.menuButton,color:"inherit","aria-label":"menu",children:Object(m.jsx)(l.a,{})}),Object(m.jsx)(i.a,{variant:"h6",color:"inherit",children:"Photos"})]})})})}},1699:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Typography from '@material-ui/core/Typography';\nimport IconButton from '@material-ui/core/IconButton';\nimport MenuIcon from '@material-ui/icons/Menu';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n  },\n  menuButton: {\n    marginRight: theme.spacing(2),\n  },\n}));\n\nexport default function DenseAppBar() {\n  const classes = useStyles();\n\n  return (\n    <div className={classes.root}>\n      <AppBar position=\"static\">\n        <Toolbar variant=\"dense\">\n          <IconButton edge=\"start\" className={classes.menuButton} color=\"inherit\" aria-label=\"menu\">\n            <MenuIcon />\n          </IconButton>\n          <Typography variant=\"h6\" color=\"inherit\">\n            Photos\n          </Typography>\n        </Toolbar>\n      </AppBar>\n    </div>\n  );\n}\n"},1700:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return j}));t(0);var a=t(1100),o=t(1101),r=t(1028),i=t(194),s=t(1072),c=t(1164),l=t.n(c),m=t(1249),u=t.n(m),p=t(1234),d=t.n(p),h=t(1);const b=Object(s.a)((e=>({root:{flexGrow:1},menuButton:{marginRight:e.spacing(2)},toolbar:{minHeight:128,alignItems:"flex-start",paddingTop:e.spacing(1),paddingBottom:e.spacing(2)},title:{flexGrow:1,alignSelf:"flex-end"}})));function j(){const e=b();return Object(h.jsx)("div",{className:e.root,children:Object(h.jsx)(a.a,{position:"static",children:Object(h.jsxs)(o.a,{className:e.toolbar,children:[Object(h.jsx)(r.a,{edge:"start",className:e.menuButton,color:"inherit","aria-label":"open drawer",children:Object(h.jsx)(l.a,{})}),Object(h.jsx)(i.a,{className:e.title,variant:"h5",noWrap:!0,children:"Material-UI"}),Object(h.jsx)(r.a,{"aria-label":"search",color:"inherit",children:Object(h.jsx)(u.a,{})}),Object(h.jsx)(r.a,{"aria-label":"display more actions",edge:"end",color:"inherit",children:Object(h.jsx)(d.a,{})})]})})})}},1701:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport IconButton from '@material-ui/core/IconButton';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\nimport MenuIcon from '@material-ui/icons/Menu';\nimport SearchIcon from '@material-ui/icons/Search';\nimport MoreIcon from '@material-ui/icons/MoreVert';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    flexGrow: 1,\n  },\n  menuButton: {\n    marginRight: theme.spacing(2),\n  },\n  toolbar: {\n    minHeight: 128,\n    alignItems: 'flex-start',\n    paddingTop: theme.spacing(1),\n    paddingBottom: theme.spacing(2),\n  },\n  title: {\n    flexGrow: 1,\n    alignSelf: 'flex-end',\n  },\n}));\n\nexport default function ProminentAppBar() {\n  const classes = useStyles();\n\n  return (\n    <div className={classes.root}>\n      <AppBar position=\"static\">\n        <Toolbar className={classes.toolbar}>\n          <IconButton\n            edge=\"start\"\n            className={classes.menuButton}\n            color=\"inherit\"\n            aria-label=\"open drawer\"\n          >\n            <MenuIcon />\n          </IconButton>\n          <Typography className={classes.title} variant=\"h5\" noWrap>\n            Material-UI\n          </Typography>\n          <IconButton aria-label=\"search\" color=\"inherit\">\n            <SearchIcon />\n          </IconButton>\n          <IconButton aria-label=\"display more actions\" edge=\"end\" color=\"inherit\">\n            <MoreIcon />\n          </IconButton>\n        </Toolbar>\n      </AppBar>\n    </div>\n  );\n}\n"},1702:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return S}));var a=t(0),o=t.n(a),r=t(1072),i=t(1100),s=t(1342),c=t(1101),l=t(194),m=t(1028),u=t(193),p=t(1102),d=t(1033),h=t(1034),b=t(1343),j=t(1103),f=t(1107),g=t(1124),x=t(1164),y=t.n(x),O=t(1174),v=t.n(O),w=t(1249),B=t.n(w),I=t(1234),M=t.n(I),N=t(1);const T=[{id:1,primary:"Brunch this week?",secondary:"I'll be in the neighbourhood this week. Let's grab a bite to eat",person:"/material-ui-static/images/avatar/5.jpg"},{id:2,primary:"Birthday Gift",secondary:"Do you have a suggestion for a good present for John on his work\n      anniversary. I am really confused & would love your thoughts on it.",person:"/material-ui-static/images/avatar/1.jpg"},{id:3,primary:"Recipe to try",secondary:"I am try out this new BBQ recipe, I think this might be amazing",person:"/material-ui-static/images/avatar/2.jpg"},{id:4,primary:"Yes!",secondary:"I have the tickets to the ReactConf for this year.",person:"/material-ui-static/images/avatar/3.jpg"},{id:5,primary:"Doctor's Appointment",secondary:"My appointment for the doctor was rescheduled for next Saturday.",person:"/material-ui-static/images/avatar/4.jpg"},{id:6,primary:"Discussion",secondary:"Menus that are generated by the bottom app bar (such as a bottom\n      navigation drawer or overflow menu) open as bottom sheets at a higher elevation\n      than the bar.",person:"/material-ui-static/images/avatar/5.jpg"},{id:7,primary:"Summer BBQ",secondary:"Who wants to have a cookout this weekend? I just got some furniture\n      for my backyard and would love to fire up the grill.",person:"/material-ui-static/images/avatar/1.jpg"}],k=Object(r.a)((e=>({text:{padding:e.spacing(2,2,0)},paper:{paddingBottom:50},list:{marginBottom:e.spacing(2)},subheader:{backgroundColor:e.palette.background.paper},appBar:{top:"auto",bottom:0},grow:{flexGrow:1},fabButton:{position:"absolute",zIndex:1,top:-30,left:0,right:0,margin:"0 auto"}})));function S(){const e=k();return Object(N.jsxs)(o.a.Fragment,{children:[Object(N.jsx)(s.a,{}),Object(N.jsxs)(u.a,{square:!0,className:e.paper,children:[Object(N.jsx)(l.a,{className:e.text,variant:"h5",gutterBottom:!0,children:"Inbox"}),Object(N.jsx)(d.a,{className:e.list,children:T.map((n=>{let{id:t,primary:a,secondary:r,person:i}=n;return Object(N.jsxs)(o.a.Fragment,{children:[1===t&&Object(N.jsx)(f.a,{className:e.subheader,children:"Today"}),3===t&&Object(N.jsx)(f.a,{className:e.subheader,children:"Yesterday"}),Object(N.jsxs)(h.a,{button:!0,children:[Object(N.jsx)(b.a,{children:Object(N.jsx)(g.a,{alt:"Profile Picture",src:i})}),Object(N.jsx)(j.a,{primary:a,secondary:r})]})]},t)}))})]}),Object(N.jsx)(i.a,{position:"fixed",color:"primary",className:e.appBar,children:Object(N.jsxs)(c.a,{children:[Object(N.jsx)(m.a,{edge:"start",color:"inherit","aria-label":"open drawer",children:Object(N.jsx)(y.a,{})}),Object(N.jsx)(p.a,{color:"secondary","aria-label":"add",className:e.fabButton,children:Object(N.jsx)(v.a,{})}),Object(N.jsx)("div",{className:e.grow}),Object(N.jsx)(m.a,{color:"inherit",children:Object(N.jsx)(B.a,{})}),Object(N.jsx)(m.a,{edge:"end",color:"inherit",children:Object(N.jsx)(M.a,{})})]})})]})}},1703:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport AppBar from '@material-ui/core/AppBar';\nimport CssBaseline from '@material-ui/core/CssBaseline';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Typography from '@material-ui/core/Typography';\nimport IconButton from '@material-ui/core/IconButton';\nimport Paper from '@material-ui/core/Paper';\nimport Fab from '@material-ui/core/Fab';\nimport List from '@material-ui/core/List';\nimport ListItem from '@material-ui/core/ListItem';\nimport ListItemAvatar from '@material-ui/core/ListItemAvatar';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport ListSubheader from '@material-ui/core/ListSubheader';\nimport Avatar from '@material-ui/core/Avatar';\nimport MenuIcon from '@material-ui/icons/Menu';\nimport AddIcon from '@material-ui/icons/Add';\nimport SearchIcon from '@material-ui/icons/Search';\nimport MoreIcon from '@material-ui/icons/MoreVert';\n\nconst messages = [\n  {\n    id: 1,\n    primary: 'Brunch this week?',\n    secondary: \"I'll be in the neighbourhood this week. Let's grab a bite to eat\",\n    person: '/material-ui-static/images/avatar/5.jpg',\n  },\n  {\n    id: 2,\n    primary: 'Birthday Gift',\n    secondary: `Do you have a suggestion for a good present for John on his work\n      anniversary. I am really confused & would love your thoughts on it.`,\n    person: '/material-ui-static/images/avatar/1.jpg',\n  },\n  {\n    id: 3,\n    primary: 'Recipe to try',\n    secondary: 'I am try out this new BBQ recipe, I think this might be amazing',\n    person: '/material-ui-static/images/avatar/2.jpg',\n  },\n  {\n    id: 4,\n    primary: 'Yes!',\n    secondary: 'I have the tickets to the ReactConf for this year.',\n    person: '/material-ui-static/images/avatar/3.jpg',\n  },\n  {\n    id: 5,\n    primary: \"Doctor's Appointment\",\n    secondary: 'My appointment for the doctor was rescheduled for next Saturday.',\n    person: '/material-ui-static/images/avatar/4.jpg',\n  },\n  {\n    id: 6,\n    primary: 'Discussion',\n    secondary: `Menus that are generated by the bottom app bar (such as a bottom\n      navigation drawer or overflow menu) open as bottom sheets at a higher elevation\n      than the bar.`,\n    person: '/material-ui-static/images/avatar/5.jpg',\n  },\n  {\n    id: 7,\n    primary: 'Summer BBQ',\n    secondary: `Who wants to have a cookout this weekend? I just got some furniture\n      for my backyard and would love to fire up the grill.`,\n    person: '/material-ui-static/images/avatar/1.jpg',\n  },\n];\n\nconst useStyles = makeStyles((theme) => ({\n  text: {\n    padding: theme.spacing(2, 2, 0),\n  },\n  paper: {\n    paddingBottom: 50,\n  },\n  list: {\n    marginBottom: theme.spacing(2),\n  },\n  subheader: {\n    backgroundColor: theme.palette.background.paper,\n  },\n  appBar: {\n    top: 'auto',\n    bottom: 0,\n  },\n  grow: {\n    flexGrow: 1,\n  },\n  fabButton: {\n    position: 'absolute',\n    zIndex: 1,\n    top: -30,\n    left: 0,\n    right: 0,\n    margin: '0 auto',\n  },\n}));\n\nexport default function BottomAppBar() {\n  const classes = useStyles();\n\n  return (\n    <React.Fragment>\n      <CssBaseline />\n      <Paper square className={classes.paper}>\n        <Typography className={classes.text} variant=\"h5\" gutterBottom>\n          Inbox\n        </Typography>\n        <List className={classes.list}>\n          {messages.map(({ id, primary, secondary, person }) => (\n            <React.Fragment key={id}>\n              {id === 1 && <ListSubheader className={classes.subheader}>Today</ListSubheader>}\n              {id === 3 && <ListSubheader className={classes.subheader}>Yesterday</ListSubheader>}\n              <ListItem button>\n                <ListItemAvatar>\n                  <Avatar alt=\"Profile Picture\" src={person} />\n                </ListItemAvatar>\n                <ListItemText primary={primary} secondary={secondary} />\n              </ListItem>\n            </React.Fragment>\n          ))}\n        </List>\n      </Paper>\n      <AppBar position=\"fixed\" color=\"primary\" className={classes.appBar}>\n        <Toolbar>\n          <IconButton edge=\"start\" color=\"inherit\" aria-label=\"open drawer\">\n            <MenuIcon />\n          </IconButton>\n          <Fab color=\"secondary\" aria-label=\"add\" className={classes.fabButton}>\n            <AddIcon />\n          </Fab>\n          <div className={classes.grow} />\n          <IconButton color=\"inherit\">\n            <SearchIcon />\n          </IconButton>\n          <IconButton edge=\"end\" color=\"inherit\">\n            <MoreIcon />\n          </IconButton>\n        </Toolbar>\n      </AppBar>\n    </React.Fragment>\n  );\n}\n"},1704:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return b}));var a=t(0),o=t.n(a),r=t(1100),i=t(1101),s=t(194),c=t(1342),l=t(2559),m=t(1304),u=t(1705),p=t(1040),d=t(1);function h(e){const{children:n,window:t}=e,a=Object(l.a)({target:t?t():void 0});return Object(d.jsx)(p.a,{appear:!1,direction:"down",in:!a,children:n})}function b(e){return Object(d.jsxs)(o.a.Fragment,{children:[Object(d.jsx)(c.a,{}),Object(d.jsx)(h,{...e,children:Object(d.jsx)(r.a,{children:Object(d.jsx)(i.a,{children:Object(d.jsx)(s.a,{variant:"h6",children:"Scroll to Hide App Bar"})})})}),Object(d.jsx)(i.a,{}),Object(d.jsx)(u.a,{children:Object(d.jsx)(m.a,{my:2,children:[...new Array(12)].map((()=>"Cras mattis consectetur purus sit amet fermentum.\nCras justo odio, dapibus ac facilisis in, egestas eget quam.\nMorbi leo risus, porta ac consectetur ac, vestibulum at eros.\nPraesent commodo cursus magna, vel scelerisque nisl consectetur et.")).join("\n")})})]})}},1705:function(e,n,t){"use strict";var a=t(2),o=t(7),r=t(20),i=t(0),s=t(8),c=t(11),l=t(15),m=i.forwardRef((function(e,n){var t=e.classes,r=e.className,c=e.component,m=void 0===c?"div":c,u=e.disableGutters,p=void 0!==u&&u,d=e.fixed,h=void 0!==d&&d,b=e.maxWidth,j=void 0===b?"lg":b,f=Object(o.a)(e,["classes","className","component","disableGutters","fixed","maxWidth"]);return i.createElement(m,Object(a.a)({className:Object(s.a)(t.root,r,h&&t.fixed,p&&t.disableGutters,!1!==j&&t["maxWidth".concat(Object(l.a)(String(j)))]),ref:n},f))}));n.a=Object(c.a)((function(e){return{root:Object(r.a)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"block"},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(e.breakpoints.values).reduce((function(n,t){var a=e.breakpoints.values[t];return 0!==a&&(n[e.breakpoints.up(t)]={maxWidth:a}),n}),{}),maxWidthXs:Object(r.a)({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:Object(r.a)({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:Object(r.a)({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:Object(r.a)({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:Object(r.a)({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(m)},1706:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport PropTypes from 'prop-types';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Typography from '@material-ui/core/Typography';\nimport CssBaseline from '@material-ui/core/CssBaseline';\nimport useScrollTrigger from '@material-ui/core/useScrollTrigger';\nimport Box from '@material-ui/core/Box';\nimport Container from '@material-ui/core/Container';\nimport Slide from '@material-ui/core/Slide';\n\nfunction HideOnScroll(props) {\n  const { children, window } = props;\n  // Note that you normally won't need to set the window ref as useScrollTrigger\n  // will default to window.\n  // This is only being set here because the demo is in an iframe.\n  const trigger = useScrollTrigger({ target: window ? window() : undefined });\n\n  return (\n    <Slide appear={false} direction=\"down\" in={!trigger}>\n      {children}\n    </Slide>\n  );\n}\n\nHideOnScroll.propTypes = {\n  children: PropTypes.element.isRequired,\n  /**\n   * Injected by the documentation to work in an iframe.\n   * You won't need it on your project.\n   */\n  window: PropTypes.func,\n};\n\nexport default function HideAppBar(props) {\n  return (\n    <React.Fragment>\n      <CssBaseline />\n      <HideOnScroll {...props}>\n        <AppBar>\n          <Toolbar>\n            <Typography variant=\"h6\">Scroll to Hide App Bar</Typography>\n          </Toolbar>\n        </AppBar>\n      </HideOnScroll>\n      <Toolbar />\n      <Container>\n        <Box my={2}>\n          {[...new Array(12)]\n            .map(\n              () => `Cras mattis consectetur purus sit amet fermentum.\nCras justo odio, dapibus ac facilisis in, egestas eget quam.\nMorbi leo risus, porta ac consectetur ac, vestibulum at eros.\nPraesent commodo cursus magna, vel scelerisque nisl consectetur et.`,\n            )\n            .join('\\n')}\n        </Box>\n      </Container>\n    </React.Fragment>\n  );\n}\n"},1707:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return h}));var a=t(0),o=t.n(a),r=t(1100),i=t(1101),s=t(194),c=t(1342),l=t(2559),m=t(1304),u=t(1705),p=t(1);function d(e){const{children:n,window:t}=e,a=Object(l.a)({disableHysteresis:!0,threshold:0,target:t?t():void 0});return o.a.cloneElement(n,{elevation:a?4:0})}function h(e){return Object(p.jsxs)(o.a.Fragment,{children:[Object(p.jsx)(c.a,{}),Object(p.jsx)(d,{...e,children:Object(p.jsx)(r.a,{children:Object(p.jsx)(i.a,{children:Object(p.jsx)(s.a,{variant:"h6",children:"Scroll to Elevate App Bar"})})})}),Object(p.jsx)(i.a,{}),Object(p.jsx)(u.a,{children:Object(p.jsx)(m.a,{my:2,children:[...new Array(12)].map((()=>"Cras mattis consectetur purus sit amet fermentum.\nCras justo odio, dapibus ac facilisis in, egestas eget quam.\nMorbi leo risus, porta ac consectetur ac, vestibulum at eros.\nPraesent commodo cursus magna, vel scelerisque nisl consectetur et.")).join("\n")})})]})}},1708:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport PropTypes from 'prop-types';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Typography from '@material-ui/core/Typography';\nimport CssBaseline from '@material-ui/core/CssBaseline';\nimport useScrollTrigger from '@material-ui/core/useScrollTrigger';\nimport Box from '@material-ui/core/Box';\nimport Container from '@material-ui/core/Container';\n\nfunction ElevationScroll(props) {\n  const { children, window } = props;\n  // Note that you normally won't need to set the window ref as useScrollTrigger\n  // will default to window.\n  // This is only being set here because the demo is in an iframe.\n  const trigger = useScrollTrigger({\n    disableHysteresis: true,\n    threshold: 0,\n    target: window ? window() : undefined,\n  });\n\n  return React.cloneElement(children, {\n    elevation: trigger ? 4 : 0,\n  });\n}\n\nElevationScroll.propTypes = {\n  children: PropTypes.element.isRequired,\n  /**\n   * Injected by the documentation to work in an iframe.\n   * You won't need it on your project.\n   */\n  window: PropTypes.func,\n};\n\nexport default function ElevateAppBar(props) {\n  return (\n    <React.Fragment>\n      <CssBaseline />\n      <ElevationScroll {...props}>\n        <AppBar>\n          <Toolbar>\n            <Typography variant=\"h6\">Scroll to Elevate App Bar</Typography>\n          </Toolbar>\n        </AppBar>\n      </ElevationScroll>\n      <Toolbar />\n      <Container>\n        <Box my={2}>\n          {[...new Array(12)]\n            .map(\n              () => `Cras mattis consectetur purus sit amet fermentum.\nCras justo odio, dapibus ac facilisis in, egestas eget quam.\nMorbi leo risus, porta ac consectetur ac, vestibulum at eros.\nPraesent commodo cursus magna, vel scelerisque nisl consectetur et.`,\n            )\n            .join('\\n')}\n        </Box>\n      </Container>\n    </React.Fragment>\n  );\n}\n"},1709:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return y}));var a=t(0),o=t.n(a),r=t(1100),i=t(1101),s=t(194),c=t(1072),l=t(1342),m=t(2559),u=t(1304),p=t(1705),d=t(1102),h=t(1345),b=t.n(h),j=t(1344),f=t(1);const g=Object(c.a)((e=>({root:{position:"fixed",bottom:e.spacing(2),right:e.spacing(2)}})));function x(e){const{children:n,window:t}=e,a=g(),o=Object(m.a)({target:t?t():void 0,disableHysteresis:!0,threshold:100});return Object(f.jsx)(j.a,{in:o,children:Object(f.jsx)("div",{onClick:e=>{const n=(e.target.ownerDocument||document).querySelector("#back-to-top-anchor");n&&n.scrollIntoView({behavior:"smooth",block:"center"})},role:"presentation",className:a.root,children:n})})}function y(e){return Object(f.jsxs)(o.a.Fragment,{children:[Object(f.jsx)(l.a,{}),Object(f.jsx)(r.a,{children:Object(f.jsx)(i.a,{children:Object(f.jsx)(s.a,{variant:"h6",children:"Scroll to see button"})})}),Object(f.jsx)(i.a,{id:"back-to-top-anchor"}),Object(f.jsx)(p.a,{children:Object(f.jsx)(u.a,{my:2,children:[...new Array(12)].map((()=>"Cras mattis consectetur purus sit amet fermentum.\nCras justo odio, dapibus ac facilisis in, egestas eget quam.\nMorbi leo risus, porta ac consectetur ac, vestibulum at eros.\nPraesent commodo cursus magna, vel scelerisque nisl consectetur et.")).join("\n")})}),Object(f.jsx)(x,{...e,children:Object(f.jsx)(d.a,{color:"secondary",size:"small","aria-label":"scroll back to top",children:Object(f.jsx)(b.a,{})})})]})}},1710:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport PropTypes from 'prop-types';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\nimport CssBaseline from '@material-ui/core/CssBaseline';\nimport useScrollTrigger from '@material-ui/core/useScrollTrigger';\nimport Box from '@material-ui/core/Box';\nimport Container from '@material-ui/core/Container';\nimport Fab from '@material-ui/core/Fab';\nimport KeyboardArrowUpIcon from '@material-ui/icons/KeyboardArrowUp';\nimport Zoom from '@material-ui/core/Zoom';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    position: 'fixed',\n    bottom: theme.spacing(2),\n    right: theme.spacing(2),\n  },\n}));\n\nfunction ScrollTop(props) {\n  const { children, window } = props;\n  const classes = useStyles();\n  // Note that you normally won't need to set the window ref as useScrollTrigger\n  // will default to window.\n  // This is only being set here because the demo is in an iframe.\n  const trigger = useScrollTrigger({\n    target: window ? window() : undefined,\n    disableHysteresis: true,\n    threshold: 100,\n  });\n\n  const handleClick = (event) => {\n    const anchor = (event.target.ownerDocument || document).querySelector('#back-to-top-anchor');\n\n    if (anchor) {\n      anchor.scrollIntoView({ behavior: 'smooth', block: 'center' });\n    }\n  };\n\n  return (\n    <Zoom in={trigger}>\n      <div onClick={handleClick} role=\"presentation\" className={classes.root}>\n        {children}\n      </div>\n    </Zoom>\n  );\n}\n\nScrollTop.propTypes = {\n  children: PropTypes.element.isRequired,\n  /**\n   * Injected by the documentation to work in an iframe.\n   * You won't need it on your project.\n   */\n  window: PropTypes.func,\n};\n\nexport default function BackToTop(props) {\n  return (\n    <React.Fragment>\n      <CssBaseline />\n      <AppBar>\n        <Toolbar>\n          <Typography variant=\"h6\">Scroll to see button</Typography>\n        </Toolbar>\n      </AppBar>\n      <Toolbar id=\"back-to-top-anchor\" />\n      <Container>\n        <Box my={2}>\n          {[...new Array(12)]\n            .map(\n              () => `Cras mattis consectetur purus sit amet fermentum.\nCras justo odio, dapibus ac facilisis in, egestas eget quam.\nMorbi leo risus, porta ac consectetur ac, vestibulum at eros.\nPraesent commodo cursus magna, vel scelerisque nisl consectetur et.`,\n            )\n            .join('\\n')}\n        </Box>\n      </Container>\n      <ScrollTop {...props}>\n        <Fab color=\"secondary\" size=\"small\" aria-label=\"scroll back to top\">\n          <KeyboardArrowUpIcon />\n        </Fab>\n      </ScrollTop>\n    </React.Fragment>\n  );\n}\n"},2558:function(e,n,t){"use strict";t.r(n);var a=t(1130),o=t(118),r=t(1098),i=t(1090),s=t(194),c=t(1072),l=t(1);const m=Object(c.a)((e=>({layoutRoot:{"& .description":{marginBottom:16}}})));n.default=function(e){return m(),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)(r.a,{className:"normal-case",variant:"outlined",component:"a",href:"https://material-ui.com/components/app-bar",target:"_blank",role:"button",children:[Object(l.jsx)(i.a,{children:"link"}),Object(l.jsx)("span",{className:"mx-4",children:"Reference"})]})}),Object(l.jsx)(s.a,{className:"text-44 mt-32 mb-8",component:"h1",children:"App Bar"}),Object(l.jsx)(s.a,{className:"description",children:"The App Bar displays information and actions relating to the current screen."}),Object(l.jsxs)(s.a,{className:"mb-16",component:"div",children:["The ",Object(l.jsx)("a",{href:"https://material.io/design/components/app-bars-top.html",children:"top App Bar"})," ","provides content and actions related to the current screen. It\u2019s used for branding, screen titles, navigation, and actions."]}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:"It can transform into a contextual action bar or be used as a navbar."}),Object(l.jsx)(s.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Simple App Bar"}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1689).default,raw:t(1690)})}),Object(l.jsx)(s.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"App Bar with a primary search field"}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:"A primary searchbar."}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1691).default,raw:t(1693)})}),Object(l.jsx)(s.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"App Bar with menu"}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1694).default,raw:t(1695)})}),Object(l.jsx)(s.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"App Bar with search field"}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:"A side searchbar."}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1696).default,raw:t(1697)})}),Object(l.jsx)(s.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Dense (desktop only)"}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1698).default,raw:t(1699)})}),Object(l.jsx)(s.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Prominent"}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:"A prominent app bar."}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!1,component:t(1700).default,raw:t(1701)})}),Object(l.jsx)(s.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Bottom App Bar"}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!0,component:t(1702).default,raw:t(1703)})}),Object(l.jsx)(s.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Fixed placement"}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:"When you render the app bar position fixed, the dimension of the element doesn't impact the rest of the page. This can cause some part of your content to be invisible, behind the app bar. Here are 3 possible solutions:"}),Object(l.jsxs)("ol",{children:[Object(l.jsxs)("li",{children:["You can use ",Object(l.jsx)("code",{children:'position="sticky"'})," instead of fixed. \u26a0\ufe0f sticky is not supported by IE 11."]}),Object(l.jsxs)("li",{children:["You can render a second ",Object(l.jsx)("code",{children:"<Toolbar />"})," component:"]})]}),Object(l.jsx)(o.a,{component:"pre",className:"language-jsx",children:' \nfunction App() {\n  return (\n    <React.Fragment>\n      <AppBar position="fixed">\n        <Toolbar>{/* content */}</Toolbar>\n      </AppBar>\n      <Toolbar />\n    </React.Fragment>\n  );\n}\n'}),Object(l.jsx)("ol",{start:"3",children:Object(l.jsxs)("li",{children:["You can use ",Object(l.jsx)("code",{children:"theme.mixins.toolbar"})," CSS:"]})}),Object(l.jsx)(o.a,{component:"pre",className:"language-jsx",children:' \nconst useStyles = makeStyles(theme => ({\n  offset: theme.mixins.toolbar,\n}))\n\nfunction App() {\n  const classes = useStyles();\n  return (\n    <React.Fragment>\n      <AppBar position="fixed">\n        <Toolbar>{/* content */}</Toolbar>\n      </AppBar>\n      <div className={classes.offset} />\n    </React.Fragment>\n  )\n};\n'}),Object(l.jsx)(s.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Scrolling"}),Object(l.jsxs)(s.a,{className:"mb-16",component:"div",children:["You can use the ",Object(l.jsx)("code",{children:"useScrollTrigger()"})," hook to respond to user scroll actions."]}),Object(l.jsx)(s.a,{className:"text-24 mt-32 mb-8",component:"h3",children:"Hide App Bar"}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:"The app bar hides on scroll down to leave more space for reading."}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!0,component:t(1704).default,raw:t(1706)})}),Object(l.jsx)(s.a,{className:"text-24 mt-32 mb-8",component:"h3",children:"Elevate App Bar"}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:"The app bar elevates on scroll to communicate that the user is not at the top of the page."}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!0,component:t(1707).default,raw:t(1708)})}),Object(l.jsx)(s.a,{className:"text-24 mt-32 mb-8",component:"h3",children:"Back to top"}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:"A floating action buttons appears on scroll to make it easy to get back to the top of the page."}),Object(l.jsx)(s.a,{className:"mb-16",component:"div",children:Object(l.jsx)(a.a,{className:"my-24",iframe:!0,component:t(1709).default,raw:t(1710)})}),Object(l.jsx)(s.a,{className:"text-24 mt-32 mb-8",component:"h3",children:Object(l.jsx)("code",{children:"useScrollTrigger([options]) => trigger"})}),Object(l.jsx)(s.a,{className:"text-16 mt-32 mb-8",component:"h4",children:"Arguments"}),Object(l.jsx)("ol",{children:Object(l.jsxs)("li",{children:[Object(l.jsxs)(s.a,{className:"mb-16",component:"div",children:[Object(l.jsx)("code",{children:"options"})," (",Object(l.jsx)("em",{children:"Object"})," [optional]):"]}),Object(l.jsxs)("ul",{children:[Object(l.jsxs)("li",{children:[Object(l.jsx)("code",{children:"options.disableHysteresis"})," (",Object(l.jsx)("em",{children:"Boolean"})," [optional]): Defaults to"," ",Object(l.jsx)("code",{children:"false"}),". Disable the hysteresis. Ignore the scroll direction when determining the ",Object(l.jsx)("code",{children:"trigger"})," value."]}),Object(l.jsxs)("li",{children:[Object(l.jsx)("code",{children:"options.target"})," (",Object(l.jsx)("em",{children:"Node"})," [optional]): Defaults to"," ",Object(l.jsx)("code",{children:"window"}),"."]}),Object(l.jsxs)("li",{children:[Object(l.jsx)("code",{children:"options.threshold"})," (",Object(l.jsx)("em",{children:"Number"})," [optional]): Defaults to"," ",Object(l.jsx)("code",{children:"100"}),". Change the ",Object(l.jsx)("code",{children:"trigger"})," value when the vertical scroll strictly crosses this threshold (exclusive)."]})]})]})}),Object(l.jsx)(s.a,{className:"text-16 mt-32 mb-8",component:"h4",children:"Returns"}),Object(l.jsxs)(s.a,{className:"mb-16",component:"div",children:[Object(l.jsx)("code",{children:"trigger"}),": Does the scroll position match the criteria?"]}),Object(l.jsx)(s.a,{className:"text-16 mt-32 mb-8",component:"h4",children:"Examples"}),Object(l.jsx)(o.a,{component:"pre",className:"language-jsx",children:" \nimport useScrollTrigger from '@material-ui/core/useScrollTrigger';\n\nfunction HideOnScroll(props) {\n  const trigger = useScrollTrigger();\n  return (\n    <Slide in={!trigger}>\n      <div>Hello</div>\n    </Slide>\n  );\n}\n"})]})}},2559:function(e,n,t){"use strict";t.d(n,"a",(function(){return c}));var a=t(2),o=t(7),r=t(0);function i(e,n){var t=n.disableHysteresis,a=void 0!==t&&t,o=n.threshold,r=void 0===o?100:o,i=n.target,s=e.current;return i&&(e.current=void 0!==i.pageYOffset?i.pageYOffset:i.scrollTop),!(!a&&void 0!==s&&e.current<s)&&e.current>r}var s="undefined"!==typeof window?window:null;function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getTrigger,t=void 0===n?i:n,c=e.target,l=void 0===c?s:c,m=Object(o.a)(e,["getTrigger","target"]),u=r.useRef(),p=r.useState((function(){return t(u,m)})),d=p[0],h=p[1];return r.useEffect((function(){var e=function(){h(t(u,Object(a.a)({target:l},m)))};return e(),l.addEventListener("scroll",e),function(){l.removeEventListener("scroll",e)}}),[l,t,JSON.stringify(m)]),d}}}]);

Zerion Mini Shell 1.0