%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/95.374e043a.chunk.js

(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[95],{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 c=void 0,i=void 0;"undefined"!==typeof document&&(c=document),"undefined"!==typeof window&&(i=window);var s=t.FrameContext=a.default.createContext({document:c,window:i}),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 _}));var o=n(118),r=n(1100),a=n(1109),c=n(1090),i=n(1117),s=n(1119),l=n(5),d=n(0),u=n(1024),h=n(551),f=n(1087),p=n(1099),m=n(11),j=n(370),b=n(371),x=n(1131),O=n.n(x),y=n(1);const v=Object(u.a)({productionPrefix:"iframe-"});class g 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(j.a)({...Object(h.a)(),plugins:[...Object(h.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(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:t,theme:n}=this.props;return Object(y.jsx)(O.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(y.jsx)(f.b,{jss:this.state.jss,generateClassName:v,sheetsManager:this.state.sheetsManager,children:Object(y.jsx)(p.a,{theme:n,children:Object(d.cloneElement)(e,{container:this.state.container})})}):null})}}var w=Object(m.a)((e=>({root:{backgroundColor:e.palette.background.default,flexGrow:1,height:400,border:"none"}})),{withTheme:!0})(g);function C(e){const[t,n]=Object(d.useState)(e.currentTabIndex),{component:u,raw:h,iframe:f,className:p}=e;return Object(y.jsxs)(a.a,{className:Object(l.a)(p,"shadow"),children:[Object(y.jsx)(r.a,{position:"static",color:"default",className:"shadow-0",children:Object(y.jsxs)(s.a,{classes:{root:"border-b-1",flexContainer:"justify-end"},value:t,onChange:function(e,t){n(t)},children:[u&&Object(y.jsx)(i.a,{classes:{root:"min-w-64"},icon:Object(y.jsx)(c.a,{children:"remove_red_eye"})}),h&&Object(y.jsx)(i.a,{classes:{root:"min-w-64"},icon:Object(y.jsx)(c.a,{children:"code"})})]})}),Object(y.jsxs)("div",{className:"flex justify-center max-w-full",children:[Object(y.jsx)("div",{className:0===t?"flex flex-1 max-w-full":"hidden",children:u&&(f?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===t?"flex flex-1":"hidden",children:h&&Object(y.jsx)("div",{className:"flex flex-1",children:Object(y.jsx)(o.a,{component:"pre",className:"language-javascript w-full",children:h.default})})})]})]})}C.defaultProps={currentTabIndex:0};var _=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),c=(r=a)&&r.__esModule?r:{default:r};t.default=c.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),c=u(a),i=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 h=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=c.default.createElement(d.default,{contentDidMount:t,contentDidUpdate:n},c.default.createElement(l.FrameContextProvider,{value:{document:e,window:o}},c.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[i.default.createPortal(this.props.head,this.getDoc().head),i.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,c.default.createElement("iframe",o({},t,{ref:function(t){e.node=t}}),this.renderFrameContents())}}]),t}(a.Component);h.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)])},h.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=h},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=(c(r),c(n(553)));function c(e){return e&&e.__esModule?e:{default:e}}var i=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);i.propTypes={children:a.default.element.isRequired,contentDidMount:a.default.func.isRequired,contentDidUpdate:a.default.func.isRequired},t.default=i},2141: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(1025),c=n(1072),i=n(1);const s=Object(c.a)((e=>({alert:{padding:e.spacing(1),margin:e.spacing(1,0),border:"1px solid"}})));function l(){const e=s(),[t,n]=r.a.useState(!1),o=r.a.useRef(null);return Object(i.jsxs)("div",{children:[Object(i.jsx)("button",{type:"button",onClick:()=>{n(!t)},children:t?"Unmount children":"Mount children"}),Object(i.jsxs)("div",{className:e.alert,children:["It looks like I will render here.",t?Object(i.jsx)(a.a,{container:o.current,children:Object(i.jsx)("span",{children:"But I actually render here!"})}):null]}),Object(i.jsx)("div",{className:e.alert,ref:o})]})}},2142:function(e,t,n){"use strict";n.r(t),t.default="import React from 'react';\nimport Portal from '@material-ui/core/Portal';\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst useStyles = makeStyles((theme) => ({\n  alert: {\n    padding: theme.spacing(1),\n    margin: theme.spacing(1, 0),\n    border: '1px solid',\n  },\n}));\n\nexport default function SimplePortal() {\n  const classes = useStyles();\n  const [show, setShow] = React.useState(false);\n  const container = React.useRef(null);\n\n  const handleClick = () => {\n    setShow(!show);\n  };\n\n  return (\n    <div>\n      <button type=\"button\" onClick={handleClick}>\n        {show ? 'Unmount children' : 'Mount children'}\n      </button>\n      <div className={classes.alert}>\n        It looks like I will render here.\n        {show ? (\n          <Portal container={container.current}>\n            <span>But I actually render here!</span>\n          </Portal>\n        ) : null}\n      </div>\n      <div className={classes.alert} ref={container} />\n    </div>\n  );\n}\n"},2597:function(e,t,n){"use strict";n.r(t);var o=n(1130),r=n(1098),a=n(1090),c=n(194),i=n(1072),s=n(1);const l=Object(i.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/portal",target:"_blank",role:"button",children:[Object(s.jsx)(a.a,{children:"link"}),Object(s.jsx)("span",{className:"mx-4",children:"Reference"})]})}),Object(s.jsx)(c.a,{className:"text-44 mt-32 mb-8",component:"h1",children:"Portal"}),Object(s.jsx)(c.a,{className:"description",children:'The portal component renders its children into a new "subtree" outside of current DOM hierarchy.'}),Object(s.jsx)("ul",{children:Object(s.jsxs)("li",{children:["\ud83d\udce6 ",Object(s.jsx)("a",{href:"/size-snapshot",children:"1.3 kB gzipped"})]})}),Object(s.jsxs)(c.a,{className:"mb-16",component:"div",children:["The children of the portal component will be appended to the ",Object(s.jsx)("code",{children:"container"})," ","specified. The component is used internally by the"," ",Object(s.jsx)("a",{href:"/components/modal/",children:Object(s.jsx)("code",{children:"Modal"})})," ","and"," ",Object(s.jsx)("a",{href:"/components/popper/",children:Object(s.jsx)("code",{children:"Popper"})})," ","components."]}),Object(s.jsx)(c.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Example"}),Object(s.jsx)(c.a,{className:"mb-16",component:"div",children:Object(s.jsx)(o.a,{className:"my-24",iframe:!1,component:n(2141).default,raw:n(2142)})}),Object(s.jsx)(c.a,{className:"text-32 mt-32 mb-8",component:"h2",children:"Server-side"}),Object(s.jsxs)(c.a,{className:"mb-16",component:"div",children:["React ",Object(s.jsx)("a",{href:"https://github.com/facebook/react/issues/13097",children:"doesn't support"})," the"," ",Object(s.jsx)("a",{href:"https://reactjs.org/docs/portals.html",children:Object(s.jsx)("code",{children:"createPortal()"})})," ","API on the server. You have to wait for the client-side hydration to see the children."]})]})}}}]);

Zerion Mini Shell 1.0