%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/public_html/ezone.optisoft.com.ng/
Upload File :
Create Path :
Current File : /home/opti/public_html/ezone.optisoft.com.ng/72.27b7de47133f5752b114.chunk.js

(window.webpackJsonp=window.webpackJsonp||[]).push([[72],{"2ac05abd6970194ebd6d":function(e,t,r){"use strict";r.r(t);var n=r("8af190b70a6bc55c6f1b"),o=r.n(n),a=(r("8a2d1b95e05b6a321e74"),r("d7dd51e1bf6bfc2c9c3d")),i=r("0d7f0986bcd2f33d8a2a"),c=r("a28fc3c963a1d4d1a2e5"),l=r("ab4cb61bcb2dc161defb"),d=r("adc20f99e57c573c589c"),s=r("d95b0cf107403b178365"),u=r("664380d9d2ccda85ef32"),p=r("b2a3a2d222a0d2bfcbc3"),f=r("d782b72bc5b680c7122c"),b=r("f363639bc5c3c97af546"),m=(r("a72b40110d9c31c9b5c5"),r("6542cd13fd5dd1bcffd4")),y=r("58fdc783843e550fc292");function v(){return{type:y.a}}function g(e){return{type:y.b,payload:e}}var h=r("4494fe8c1967ca5d460c"),w=regeneratorRuntime.mark(x),j=regeneratorRuntime.mark(O);function x(){var e,t,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(f.select)(m.a());case 2:return e=n.sent,n.next=5,Object(f.select)(m.b());case 5:return n.sent,t="".concat(h.Qd),n.prev=7,n.next=10,Object(f.call)(b.a,t,{method:"GET",headers:new Headers({Authorization:"Bearer ".concat(e),"Content-Type":"application/json"})});case 10:return r=n.sent,console.log(r,"response get modules"),n.next=14,Object(f.put)((o=r,{type:y.c,payload:o}));case 14:n.next=20;break;case 16:return n.prev=16,n.t0=n.catch(7),n.next=20,Object(f.put)(g(n.t0));case 20:case"end":return n.stop()}var o}),w,null,[[7,16]])}function O(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.takeLatest)(y.a,x);case 2:case"end":return e.stop()}}),j)}var k,S=r("e95a63b25fb92ed15721"),A=r("6938d226fd372a75cbf9"),G=r("0d939196e59ed73c94e6"),P=r("ddb2844e88056c680a6d");function R(e,t,r,n){k||(k="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var l in o)void 0===t[l]&&(t[l]=o[l]);else t||(t=o||{});return{$$typeof:k,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}function C(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||E(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"===typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var B=Object(G.makeStyles)((function(e){return{root:{flexGrow:1},avatar:{width:e.spacing(12),height:e.spacing(12)},paper:{display:"flex",justifyContent:"flex-start",flexWrap:"wrap",alignItems:"center",padding:e.spacing(2),backgroundColor:e.palette.grey[100],overflowY:"auto","&::-webkit-scrollbar":{width:"6px",backgroundColor:e.palette.grey[50]},"&::-webkit-scrollbar-track":{"-webkitBoxShadow":"inset 0 0 6px rgba(0,0,0,0.3)",borderRadius:"10px"},"&::-webkit-scrollbar-thumb":{borderRadius:"10px","-webkit-box-shadow":"inset 0 0 6px rgba(0,0,0,0.5)",backgroundColor:e.palette.primary.main},"& a":{color:e.palette.primary.main,textDecoration:"none"}},button:{padding:e.spacing(1,4),background:e.palette.primary.main,borderRadius:"20px"},grid:{margin:e.spacing(1,0),border:"1px solid ".concat(e.palette.grey[50])},textField:{width:e.spacing(50),padding:e.spacing(0),borderRadius:e.spacing(4)},box:{width:e.spacing(20),height:e.spacing(20),flex:"0 1 11em",margin:e.spacing(1),padding:e.spacing(2),borderRadius:"10px",display:"flex",textAlign:"center",justifyContent:"center",alignItems:"center",flexDirection:"column","& img":{height:"70px",marginBottom:e.spacing(1)}}}})),H=R(G.Grid,{item:!0,xs:6,md:6},void 0,R(G.Typography,{variant:"h6",component:"h3"},void 0,"My Apps")),_=R(G.Grid,{item:!0,sm:4}),F=Object(c.b)({accessToken:m.a(),currentUser:m.b()});var U,z=Object(a.connect)(F,(function(e){return{}})),J=Object(l.compose)(z,S.withRouter,n.memo)((function(e){e.modules,e.match;var t=e.accessToken,r=e.currentUser,n=B(),a=$(o.a.useState({apps:[],text:""}),2),i=a[0],c=a[1];console.log(t,"accessToken"),o.a.useEffect((function(){c((function(e){return T(T({},e),{},{apps:P.a})}))}),[]);return R(o.a.Fragment,{},void 0,R("div",{className:n.root},void 0,R(G.Grid,{justify:"space-between",container:!0},void 0,R(G.Grid,{item:!0,xs:12},void 0,R(G.Grid,{container:!0,justify:"space-between",className:n.grid},void 0,R(G.Grid,{item:!0,xs:12},void 0,R(G.TextField,{className:n.textField,id:"outlined-search",label:"Search Apps",type:"search",variant:"outlined",value:i.text,onChange:function(e){var t=e.target.value,r=[];if(t.length>0){var n=new RegExp("^".concat(t),"i");r=P.a.sort().filter((function(e){return n.test(e.name)}))}else r=C(P.a);c((function(){return{apps:r,text:t}}))},size:"small"})))),R(G.Grid,{item:!0,xs:12,md:12},void 0,R(G.Grid,{container:!0,justify:"space-between",className:n.grid},void 0,R(G.Grid,{item:!0,sm:12,md:8},void 0,R(G.Grid,{container:!0,justify:"space-between",className:n.grid},void 0,H,R(G.Grid,{item:!0,xs:12,sm:6,style:{display:"flex",justifyContent:"flex-end"}},void 0,R(G.Button,{type:"button",variant:"contained",component:S.Link,to:"/applications/access-offers",color:"primary",className:n.button},void 0,"Buy Application"))),R(G.Grid,{container:!0,justify:"space-between"},void 0,R(G.Grid,{item:!0,sm:12,md:12,lg:12},void 0,R(G.Paper,{square:!0,className:n.paper,elevation:0},void 0,i.apps.map((function(e,o){return R(G.Paper,{className:n.box},o,R("img",{src:e.icon,alt:e.name}),R(G.Typography,{variant:"body2"},void 0,R("a",{href:"".concat(e.url,"?token=").concat(t,"&orgId=").concat(r.organisation.orgId)},void 0,e.name.replace("_"," "))))})))))),_)))))})),L=r("b0c37be7de20d933b466"),M=r("d954071182f1bafcfbb1");function q(e,t,r,n){U||(U="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var l in o)void 0===t[l]&&(t[l]=o[l]);else t||(t=o||{});return{$$typeof:U,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}var Q=Object(G.makeStyles)((function(e){return{root:{flexGrow:1},content:{flexGrow:1,padding:e.spacing(2)},active:{backgroundColor:e.palette.common.white,color:"".concat(Object(L.darken)(e.palette.primary.main,.1)," !important")}}}));var W=Object(c.b)({});var Y,K=Object(a.connect)(W,(function(e){return{}})),V=Object(l.compose)(S.withRouter,K,n.memo)((function(e){var t=Q();return q("div",{className:t.root},void 0,q(M.a,{content:q("div",{className:t.content},void 0,e.children)}))}));function X(e,t,r,n){Y||(Y="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var l in o)void 0===t[l]&&(t[l]=o[l]);else t||(t=o||{});return{$$typeof:Y,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}var Z=Object(A.makeStyles)((function(e){return{root:{flexGrow:1}}})),ee=Object(c.b)({loading:p.c(),applications:p.b()});var te,re=Object(a.connect)(ee,(function(e){return{getApplications:function(){return e(v())}}})),ne=Object(l.compose)(S.withRouter,re,n.memo)((function(e){Z();var t=e.applications;return X(V,{},void 0,X(J,{applications:t}))}));function oe(e,t,r,n){te||(te="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,a=arguments.length-3;if(t||0===a||(t={children:void 0}),1===a)t.children=n;else if(a>1){for(var i=new Array(a),c=0;c<a;c++)i[c]=arguments[c+3];t.children=i}if(t&&o)for(var l in o)void 0===t[l]&&(t[l]=o[l]);else t||(t=o||{});return{$$typeof:te,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}r.d(t,"Home",(function(){return ie}));var ae=oe("div",{},void 0,oe(i.Helmet,{},void 0,oe("title",{},void 0,"Home"),oe("meta",{name:"description",content:"Home"})),oe(ne,{}));function ie(e){Object(s.b)({key:"home",reducer:u.a}),Object(d.b)({key:"home",saga:O});var t=e.applications,r=e.getApplications;return o.a.useEffect((function(){r()}),[]),console.log(t,"applications"),ae}var ce=Object(c.b)({home:Object(p.a)(),applications:p.b()});var le=Object(a.connect)(ce,(function(e){return{getApplications:function(){return e(v())}}}));t.default=Object(l.compose)(le,n.memo)(ie)}}]);

Zerion Mini Shell 1.0