"use strict";(self.webpackChunknpwd_crypto=self.webpackChunknpwd_crypto||[]).push([[250],{4121:(e,n,t)=>{t.d(n,{y:()=>c,s:()=>a});var r=t(2950),l=t.n(r),o=t(9547),c=function(){return l().createElement(o.Z,{fontSize:"large"})},a=function(){return l().createElement(o.Z,{fontSize:"small"})}},9250:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c});var r=t(4023),l=t(4121),o={en:"Crypto Handel"};const c=function(e){var n;return{id:"CRYPTO",nameLocale:o[null!==(n=null==e?void 0:e.language)&&void 0!==n?n:"en"],color:"#fff",backgroundColor:"#ff7300",path:"/crypto",icon:l.y,notificationIcon:l.s,app:r.Z}}},4023:(e,n,t)=>{t.d(n,{Z:()=>O});var r=t(2950),l=t.n(r),o=t(5475),c=t(5662),a=t(3839),i=t.n(a),u=t(6501),f=t(4810),m=t(245),p=t(3971),d=t(1551),s=t(8087),h=t(2072),x=t(246),y=t(7951),b=t(2453),E=t(5210),g=t(9085),v=t(7030),S=t(3377),Z=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},w=function(){return w=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var l in n=arguments[t])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e},w.apply(this,arguments)},R=i()(u.Z)(P||(P=Z(["\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  box-sizing: border-box;\n  max-height: 100%;\n"],["\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  box-sizing: border-box;\n  max-height: 100%;\n"]))),z=i().div(j||(j=Z(["\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  box-sizing: border-box;\n  padding: 1.5rem;\n  max-height: calc(100% - 7.5rem);\n"],["\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  box-sizing: border-box;\n  padding: 1.5rem;\n  max-height: calc(100% - 7.5rem);\n"]))),C=function(e){var n=(0,b.useSetRecoilState)(E.S.currentValue),t=(0,b.useSetRecoilState)(E.S.history),o=(0,b.useSetRecoilState)(E.S.balance);return(0,r.useEffect)((function(){(0,g.Z)("npwd_crypto:fetchData").then((function(e){var r=e.history,l=e.value,c=e.balance;n(l),t(r),o(c)}))}),[]),l().createElement(f.Z,{injectFirst:!0},l().createElement(y.Z,{mode:e.theme.palette.mode},l().createElement(S.v,null),l().createElement(R,null,l().createElement(d.Z,null,l().createElement(m.Z,{fontSize:24,fontWeight:"bold"},"Crypto")),l().createElement(z,null,l().createElement(c.Switch,null,l().createElement(c.Route,{path:"/crypto",exact:!0,component:s._}),l().createElement(c.Route,{path:"/crypto/history",component:h.A}),l().createElement(c.Route,{path:"/crypto/transactions",component:x.P}))),l().createElement(p.Z,null))))};const O=function(e){return l().createElement(b.RecoilRoot,null,l().createElement(o.NuiProvider,null,l().createElement(v.Z,null,l().createElement(C,w({},e)))))};var P,j}}]);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9884 characters]