%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/80.870f6065.chunk.js

(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[80],{1129:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrameContextConsumer=t.FrameContextProvider=t.FrameContext=void 0;var o,r=n(0),a=(o=r)&&o.__esModule?o:{default:o};var i=void 0,c=void 0;"undefined"!==typeof document&&(i=document),"undefined"!==typeof window&&(c=window);var s=t.FrameContext=a.default.createContext({document:i,window:c}),l=s.Provider,d=s.Consumer;t.FrameContextProvider=l,t.FrameContextConsumer=d},1130:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o=n(118),r=n(1100),a=n(1109),i=n(1090),c=n(1117),s=n(1119),l=n(5),d=n(0),u=n(1024),p=n(551),m=n(1087),f=n(1099),h=n(11),b=n(370),j=n(371),y=n(1131),v=n.n(y),x=n(1);const O=Object(u.a)({productionPrefix:"iframe-"});class w 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(b.a)({...Object(p.a)(),plugins:[...Object(p.a)().plugins,Object(j.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(x.jsxs)(x.Fragment,{children:[Object(x.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n                    html {\n                    font-size: 62.5%;\n                    font-family: Poppins, Roboto, Helvetica Neue, Arial, sans-serif;\n                    }\n                "}}),Object(x.jsx)("noscript",{id:"jss-demo-insertion-point"})]})}render(){const{children:e,classes:t,theme:n}=this.props;return Object(x.jsx)(v.a,{head:this.renderHead(),ref:this.handleRef,className:Object(l.a)(t.root,"shadow"),contentDidMount:this.onContentDidMount,contentDidUpdate:this.onContentDidUpdate,children:this.state.ready?Object(x.jsx)(m.b,{jss:this.state.jss,generateClassName:O,sheetsManager:this.state.sheetsManager,children:Object(x.jsx)(f.a,{theme:n,children:Object(d.cloneElement)(e,{container:this.state.container})})}):null})}}var k=Object(h.a)((e=>({root:{backgroundColor:e.palette.background.default,flexGrow:1,height:400,border:"none"}})),{withTheme:!0})(w);function C(e){const[t,n]=Object(d.useState)(e.currentTabIndex),{component:u,raw:p,iframe:m,className:f}=e;return Object(x.jsxs)(a.a,{className:Object(l.a)(f,"shadow"),children:[Object(x.jsx)(r.a,{position:"static",color:"default",className:"shadow-0",children:Object(x.jsxs)(s.a,{classes:{root:"border-b-1",flexContainer:"justify-end"},value:t,onChange:function(e,t){n(t)},children:[u&&Object(x.jsx)(c.a,{classes:{root:"min-w-64"},icon:Object(x.jsx)(i.a,{children:"remove_red_eye"})}),p&&Object(x.jsx)(c.a,{classes:{root:"min-w-64"},icon:Object(x.jsx)(i.a,{children:"code"})})]})}),Object(x.jsxs)("div",{className:"flex justify-center max-w-full",children:[Object(x.jsx)("div",{className:0===t?"flex flex-1 max-w-full":"hidden",children:u&&(m?Object(x.jsx)(k,{children:Object(x.jsx)(u,{})}):Object(x.jsx)("div",{className:"p-24 flex flex-1 justify-center max-w-full",children:Object(x.jsx)(u,{})}))}),Object(x.jsx)("div",{className:1===t?"flex flex-1":"hidden",children:p&&Object(x.jsx)("div",{className:"flex flex-1",children:Object(x.jsx)(o.a,{component:"pre",className:"language-javascript w-full",children:p.default})})})]})]})}C.defaultProps={currentTabIndex:0};var g=C},1131:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrameContextConsumer=t.FrameContext=void 0;var o=n(1129);Object.defineProperty(t,"FrameContext",{enumerable:!0,get:function(){return o.FrameContext}}),Object.defineProperty(t,"FrameContextConsumer",{enumerable:!0,get:function(){return o.FrameContextConsumer}});var r,a=n(1132),i=(r=a)&&r.__esModule?r:{default:r};t.default=i.default},1132:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),i=u(a),c=u(n(22)),s=u(n(553)),l=n(1129),d=u(n(1133));function u(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.handleLoad=function(){o.forceUpdate()},o._isMounted=!1,o}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{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 t=this.props.contentDidMount,n=this.props.contentDidUpdate,o=e.defaultView||e.parentView,r=i.default.createElement(d.default,{contentDidMount:t,contentDidUpdate:n},i.default.createElement(l.FrameContextProvider,{value:{document:e,window:o}},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 a=this.getMountTarget();return[c.default.createPortal(this.props.head,this.getDoc().head),c.default.createPortal(r,a)]}},{key:"render",value:function(){var e=this,t=o({},this.props,{children:void 0});return delete t.head,delete t.initialContent,delete t.mountTarget,delete t.contentDidMount,delete t.contentDidUpdate,i.default.createElement("iframe",o({},t,{ref:function(t){e.node=t}}),this.renderFrameContents())}}]),t}(a.Component);p.propTypes={style:s.default.object,head:s.default.node,initialContent:s.default.string,mountTarget:s.default.string,contentDidMount:s.default.func,contentDidUpdate:s.default.func,children:s.default.oneOfType([s.default.element,s.default.arrayOf(s.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>'},t.default=p},1133:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(0),a=(i(r),i(n(553)));function i(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{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)}}]),t}(r.Component);c.propTypes={children:a.default.element.isRequired,contentDidMount:a.default.func.isRequired,contentDidUpdate:a.default.func.isRequired},t.default=c},1902:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var o=n(0),r=n.n(o),a=n(1072),i=n(1026),c=n(1);const s=Object(a.a)((e=>({root:{position:"relative"},dropdown:{position:"absolute",top:28,right:0,left:0,zIndex:1,border:"1px solid",padding:e.spacing(1),backgroundColor:e.palette.background.paper}})));function l(){const e=s(),[t,n]=r.a.useState(!1);return Object(c.jsx)(i.a,{onClickAway:()=>{n(!1)},children:Object(c.jsxs)("div",{className:e.root,children:[Object(c.jsx)("button",{type:"button",onClick:()=>{n((e=>!e))},children:"Open menu dropdown"}),t?Object(c.jsx)("div",{className:e.dropdown,children:"Click me, I will stay visible until you click outside."}):null]})})}},1903:function(e,t,n){"use strict";n.r(t),t.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport ClickAwayListener from '@material-ui/core/ClickAwayListener';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    position: 'relative',\n  },\n  dropdown: {\n    position: 'absolute',\n    top: 28,\n    right: 0,\n    left: 0,\n    zIndex: 1,\n    border: '1px solid',\n    padding: theme.spacing(1),\n    backgroundColor: theme.palette.background.paper,\n  },\n}));\n\nexport default function ClickAway() {\n  const classes = useStyles();\n  const [open, setOpen] = React.useState(false);\n\n  const handleClick = () => {\n    setOpen((prev) => !prev);\n  };\n\n  const handleClickAway = () => {\n    setOpen(false);\n  };\n\n  return (\n    <ClickAwayListener onClickAway={handleClickAway}>\n      <div className={classes.root}>\n        <button type=\"button\" onClick={handleClick}>\n          Open menu dropdown\n        </button>\n        {open ? (\n          <div className={classes.dropdown}>\n            Click me, I will stay visible until you click outside.\n          </div>\n        ) : null}\n      </div>\n    </ClickAwayListener>\n  );\n}\n"},1904:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return d}));var o=n(0),r=n.n(o),a=n(1072),i=n(1026),c=n(1025),s=n(1);const l=Object(a.a)((e=>({dropdown:{position:"fixed",width:200,top:"50%",left:"50%",transform:"translate(-50%, -50%)",border:"1px solid",padding:e.spacing(1),backgroundColor:e.palette.background.paper}})));function d(){const e=l(),[t,n]=r.a.useState(!1);return Object(s.jsx)(i.a,{onClickAway:()=>{n(!1)},children:Object(s.jsxs)("div",{children:[Object(s.jsx)("button",{type:"button",onClick:()=>{n((e=>!e))},children:"Open menu dropdown"}),t?Object(s.jsx)(c.a,{children:Object(s.jsx)("div",{className:e.dropdown,children:"Click me, I will stay visible until you click outside."})}):null]})})}},1905:function(e,t,n){"use strict";n.r(t),t.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport ClickAwayListener from '@material-ui/core/ClickAwayListener';\nimport Portal from '@material-ui/core/Portal';\n\nconst useStyles = makeStyles((theme) => ({\n  dropdown: {\n    position: 'fixed',\n    width: 200,\n    top: '50%',\n    left: '50%',\n    transform: 'translate(-50%, -50%)',\n    border: '1px solid',\n    padding: theme.spacing(1),\n    backgroundColor: theme.palette.background.paper,\n  },\n}));\n\nexport default function PortalClickAway() {\n  const classes = useStyles();\n  const [open, setOpen] = React.useState(false);\n\n  const handleClick = () => {\n    setOpen((prev) => !prev);\n  };\n\n  const handleClickAway = () => {\n    setOpen(false);\n  };\n\n  return (\n    <ClickAwayListener onClickAway={handleClickAway}>\n      <div>\n        <button type=\"button\" onClick={handleClick}>\n          Open menu dropdown\n        </button>\n        {open ? (\n          <Portal>\n            <div className={classes.dropdown}>\n              Click me, I will stay visible until you click outside.\n            </div>\n          </Portal>\n        ) : null}\n      </div>\n    </ClickAwayListener>\n  );\n}\n"},1906:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var o=n(0),r=n.n(o),a=n(1072),i=n(1026),c=n(1);const s=Object(a.a)((e=>({root:{position:"relative"},dropdown:{position:"absolute",top:28,right:0,left:0,zIndex:1,border:"1px solid",padding:e.spacing(1),backgroundColor:e.palette.background.paper}})));function l(){const e=s(),[t,n]=r.a.useState(!1);return Object(c.jsx)(i.a,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:()=>{n(!1)},children:Object(c.jsxs)("div",{className:e.root,children:[Object(c.jsx)("button",{type:"button",onClick:()=>{n((e=>!e))},children:"Open menu dropdown"}),t?Object(c.jsx)("div",{className:e.dropdown,children:"Click me, I will stay visible until you click outside."}):null]})})}},1907:function(e,t,n){"use strict";n.r(t),t.default="import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport ClickAwayListener from '@material-ui/core/ClickAwayListener';\n\nconst useStyles = makeStyles((theme) => ({\n  root: {\n    position: 'relative',\n  },\n  dropdown: {\n    position: 'absolute',\n    top: 28,\n    right: 0,\n    left: 0,\n    zIndex: 1,\n    border: '1px solid',\n    padding: theme.spacing(1),\n    backgroundColor: theme.palette.background.paper,\n  },\n}));\n\nexport default function LeadingClickAway() {\n  const classes = useStyles();\n  const [open, setOpen] = React.useState(false);\n\n  const handleClick = () => {\n    setOpen((prev) => !prev);\n  };\n\n  const handleClickAway = () => {\n    setOpen(false);\n  };\n\n  return (\n    <ClickAwayListener\n      mouseEvent=\"onMouseDown\"\n      touchEvent=\"onTouchStart\"\n      onClickAway={handleClickAway}\n    >\n      <div className={classes.root}>\n        <button type=\"button\" onClick={handleClick}>\n          Open menu dropdown\n        </button>\n        {open ? (\n          <div className={classes.dropdown}>\n            Click me, I will stay visible until you click outside.\n          </div>\n        ) : null}\n      </div>\n    </ClickAwayListener>\n  );\n}\n"},2576:function(e,t,n){"use strict";n.r(t);var o=n(1130),r=n(1098),a=n(1090),i=n(194),c=n(1072),s=n(1);const l=Object(c.a)((e=>({layoutRoot:{"& .description":{marginBottom:16}}})));t.default=function(e){return l(),Object(s.jsxs)(s.Fragment,{children:[Object(s.jsx)("div",{className:"flex flex-1 flex-grow-0 items-center justify-end",children:Object(s.jsxs)(r.a,{className:"normal-case",variant:"outlined",component:"a",href:"https://material-ui.com/components/click-away-listener",target:"_blank",role:"button",children:[Object(s.jsx)(a.a,{children:"link"}),Object(s.jsx)("span",{className:"mx-4",children:"Reference"})]})}),Object(s.jsx)(i.a,{className:"text-44 mt-32 mb-8",component:"h1",children:"Click away listener"}),Object(s.jsx)(i.a,{className:"description",children:"Detect if a click event happened outside of an element. It listens for clicks that occur somewhere in the document."}),Object(s.jsxs)("ul",{children:[Object(s.jsxs)("li",{children:["\ud83d\udce6 ",Object(s.jsx)("a",{href:"/size-snapshot",children:"1.5 kB gzipped"}),"."]}),Object(s.jsx)("li",{children:"\u269b\ufe0f Support portals"})]}),Object(s.jsx)(i.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Example"}),Object(s.jsx)(i.a,{className:"mb-16",component:"div",children:"For instance, if you need to hide a menu dropdown when people click anywhere else on your page:"}),Object(s.jsx)(i.a,{className:"mb-16",component:"div",children:Object(s.jsx)(o.a,{className:"my-24",iframe:!1,component:n(1902).default,raw:n(1903)})}),Object(s.jsxs)(i.a,{className:"mb-16",component:"div",children:["Notice that the component only accepts one child element. You can find a more advanced demo on the ",Object(s.jsx)("a",{href:"/components/menus/#menulist-composition",children:"Menu documentation section"}),"."]}),Object(s.jsx)(i.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Portal"}),Object(s.jsxs)(i.a,{className:"mb-16",component:"div",children:["The following demo uses"," ",Object(s.jsx)("a",{href:"/components/portal/",children:Object(s.jsx)("code",{children:"Portal"})})," ",'to render the dropdown into a new "subtree" outside of current DOM hierarchy.']}),Object(s.jsx)(i.a,{className:"mb-16",component:"div",children:Object(s.jsx)(o.a,{className:"my-24",iframe:!1,component:n(1904).default,raw:n(1905)})}),Object(s.jsx)(i.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Leading edge"}),Object(s.jsx)(i.a,{className:"mb-16",component:"div",children:"By default, the component responds to the trailing events (click + touch end). However, you can configure it to respond to the leading events (mouse down + touch start)."}),Object(s.jsx)(i.a,{className:"mb-16",component:"div",children:Object(s.jsx)(o.a,{className:"my-24",iframe:!1,component:n(1906).default,raw:n(1907)})}),Object(s.jsx)("blockquote",{children:Object(s.jsx)(i.a,{className:"mb-16",component:"div",children:"\u26a0\ufe0f In this mode, only interactions on the scrollbar of the document is ignored."})})]})}}}]);

Zerion Mini Shell 1.0