1"use strict";(self.webpackChunkbit_stack=self.webpackChunkbit_stack||[]).push([[6544],{39809:function(e,r,n){var t=n(45987),i=n(74165),a=n(15861),o=n(70885),d=n(1413),s=n(83655),c=n(93895),l=n(47313),u=n(33947),p=n(65033),h=n(28303),x=n(63830),m=n(48310),f=n(20527),b=n(14055),g=n(36668),j=n(14195),w=n(83213),y=n(96187),C=n(36269),v=n(93719),S=n(61003),_=n(52211),Z=n(46417),k=["to","primary","open","IconCom"],I=(0,s.default)(u.ZP).withConfig({displayName:"Sidebar__StyledDrawer",componentId:"sc-1grquaw-0"})(["width:260px;position:relative;& .MuiPaper-root{width:inherit;flex-shrink:0;background-color:",";display:grid;grid-template-rows:",";height:100vh;}@media (max-width:600px){width:180px;}"],(function(e){return e.theme.bg2}),(function(e){return e.isAdmin?"80px 1fr 70px":"80px 1fr"})),A=s.default.div.withConfig({displayName:"Sidebar__StyledLogo",componentId:"sc-1grquaw-1"})(["padding:24px 32px;"]),N=s.default.a.withConfig({displayName:"Sidebar__Title",componentId:"sc-1grquaw-2"})(["font-family:'Gilroy-bold4';display:flex;font-size:28px;align-items:center;pointer-events:auto;justify-self:flex-start;margin-right:12px;text-decoration:none;line-height:36px;color:",";svg{width:130px;height:40px;}:hover{cursor:pointer;}"],(function(e){return e.theme.text1})),L=(0,s.default)(m.Z).withConfig({displayName:"Sidebar__StyledList",componentId:"sc-1grquaw-3"})([""]),q=s.default.div.withConfig({displayName:"Sidebar__StyledContent",componentId:"sc-1grquaw-4"})(["overflow-y:auto;::-webkit-scrollbar{width:2px;}::-webkit-scrollbar-thumb{background-color:",";border-radius:50px;}.iconStyle{font-size:20px;margin-right:8px;}"],(function(e){return e.theme.bg0})),z=s.default.div.withConfig({displayName:"Sidebar__StyledCollapseBox",componentId:"sc-1grquaw-5"})([""]),E="ACTIVE",W=(0,s.default)((function(e){var r=Object.assign({},e);return(0,Z.jsx)(f.ZP,(0,d.Z)({},r))})).attrs({activeClassName:E}).withConfig({displayName:"Sidebar__StyledListItem",componentId:"sc-1grquaw-6"})(["padding:0 32px!important;height:64px;width:100%;display:grid!important;grid-template-columns:12px 1fr 8px;grid-column-gap:8px;:hover{background-color:",";}&.","{background-color:",";}"],(function(e){var r=e.theme;return(0,b.DZ)(.8,r.bg1)}),E,(function(e){return e.theme.bg1})),H=(0,s.default)((function(e){var r=Object.assign({},e);return(0,Z.jsx)(f.ZP,(0,d.Z)({},r))})).withConfig({displayName:"Sidebar__ListItemLink",componentId:"sc-1grquaw-7"})(["padding:0 32px!important;height:64px;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;"]),P=(0,s.default)(w.Z).withConfig({displayName:"Sidebar__ListItemLinkText",componentId:"sc-1grquaw-8"})(["& .MuiTypography-root{font-family:Inter-Bold!important;}font-size:16px;color:",";"],(function(e){return e.theme.text1})),M=s.default.div.withConfig({displayName:"Sidebar__StyledItemLabel",componentId:"sc-1grquaw-9"})(["font-family:Inter-Bold;font-size:16px;color:",";margin-left:8px;"],(function(e){return e.theme.text1})),O=s.default.div.withConfig({displayName:"Sidebar__StyledLogOut",componentId:"sc-1grquaw-10"})(["display:flex;flex-direction:row;align-items:center;cursor:pointer;padding:24px 32px;width:100%;border-top:1px solid rgba(255,255,255,0.2);background-color:",";"],(function(e){return e.theme.bg2})),R=s.default.span.withConfig({displayName:"Sidebar__StyledLogOutLabel",componentId:"sc-1grquaw-11"})(["font-size:16px;font-family:Inter-Bold;color:",";line-height:20px;margin-left:8px;"],(function(e){return e.theme.text1}));s.default.div.withConfig({displayName:"Sidebar__StyledCircle",componentId:"sc-1grquaw-12"})(["width:8px;height:8px;background:",";border-radius:50%;overflow:hidden;"],(function(e){return e.theme.text9}));r.Z=(0,x.EN)((function(e){var r=e.history,n=e.location.pathname,s=e.routers,u=e.isAdmin,x=(0,j.Z)().text1,m=(0,v.yw)(),f=(0,o.Z)(m,2),b=(f[0],f[1]),w=(0,S.fL)();(0,l.useEffect)((function(){if(n){var e=n.split("/"),r="/"+e[1]+"/"+e[2],t=document.getElementById(r);if(t)t.parentNode.childNodes.forEach((function(e){e.id==r?e.style.backgroundColor="#242C3C":e.style.backgroundColor=""}))}}),[n]);var E=function(){var e=(0,a.Z)((0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(null),r.push("/login"),w(),e.next=5,(0,C.U6)();case 5:(0,_.ej)("sid")&&(0,_.A0)("sid");case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}
1(),B=function e(r){var t=r.children,i=r.name,a=r.url,s=r.icon,c=(0,l.useState)(!1),u=(0,o.Z)(c,2),h=u[0],x=u[1];return(0,l.useEffect)((function(){var e,r=null!==(e=n.split("/")[2])&&void 0!==e?e:"apiHub";n&&a&&r===a.split("/")[2]&&x(!0)}),[]),t?(0,Z.jsxs)(z,{id:a,children:[(0,Z.jsx)(F,{IconCom:s||null,to:a,primary:i,open:h,onClick:function(e){e.preventDefault(),x(!h)},disableRipple:!0}),(0,Z.jsx)(p.Z,{in:h,timeout:"auto",unmountOnExit:!0,children:(0,Z.jsx)(L,{disablePadding:!0,children:t.map((function(r,n){return(0,l.createElement)(e,(0,d.Z)((0,d.Z)({},r),{},{key:n}))}))})})]},a):a?(0,Z.jsx)(D,(0,d.Z)({},r)):null},D=function(e){return(0,Z.jsxs)(W,{component:h.OL,to:e.url,children:[(0,Z.jsx)(g.Z,{icon:e.icon,size:20,color:x}),(0,Z.jsx)(M,{children:e.name}),(e.props,null)]},e.url)},F=function(e){var r=e.to,n=e.primary,i=e.open,a=e.IconCom,o=(0,t.Z)(e,k),s=null;return null!=i&&(s=(0,Z.jsx)(g.Z,{icon:i?"arrow-drop-up":"arrow-drop-down",size:22,color:x})),(0,Z.jsxs)(H,(0,d.Z)((0,d.Z)({button:!0,component:h.rU,to:r},o),{},{children:[a?(0,Z.jsx)(a,{className:"iconStyle"}):null,(0,Z.jsx)(P,{primary:n}),s]}))};return(0,Z.jsxs)(I,{variant:"permanent",isAdmin:u,children:[(0,Z.jsx)(A,{children:(0,Z.jsx)(N,{href:".",children:(0,Z.jsx)(y.Z.Logo1Svg,{})})}),(0,Z.jsx)(q,{children:(0,Z.jsx)(L,{children:(0,l.useMemo)((function(){return s.map((function(e,r){return(0,l.createElement)(B,(0,d.Z)((0,d.Z)({},e),{},{key:r}))}))}),[])})}),u?(0,Z.jsxs)(O,{onClick:E,children:[(0,Z.jsx)(g.Z,{icon:"logout-box",size:20,color:x}),(0,Z.jsx)(R,{children:(0,Z.jsx)(c.cC,{id:"Log Out"})})]}):null]})}))},6544:function(e,r,n){n.r(r),n.d(r,{default:function(){return w}});var t=n(83655),i=n(93895),a=n(47313),o=n(39809),d=n(63830),s=n(97075),c=n(96187),l=n(99259),u=n(46417),p=(0,a.lazy)((function(){return n.e(714).then(n.bind(n,60714))})),h=(0,a.lazy)((function(){return n.e(3880).then(n.bind(n,83880))})),x=(0,a.lazy)((function(){return n.e(3170).then(n.bind(n,43170))})),m=(0,a.lazy)((function(){return n.e(4526).then(n.bind(n,74526))})),f=(0,a.lazy)((function(){return Promise.all([n.e(8073),n.e(796)]).then(n.bind(n,80796))})),b=t.default.div.withConfig({displayName:"Dashboard__PageWrapper",componentId:"sc-e86iti-0"})(["width:100%;height:100%;display:flex;flex-direction:row;max-width:100vw;"]),g=t.default.div.withConfig({displayName:"Dashboard__StyledContent",componentId:"sc-e86iti-1"})(["flex-grow:1;width:calc(100vw - 260px);min-height:100vh;padding:20px 24px;background-color:",";@media (max-width:600px){width:calc(100vw - 180px);}"],(function(e){return e.theme.bg4})),j=t.default.div.withConfig({displayName:"Dashboard__StyledLazyBox",componentId:"sc-e86iti-2"})(["width:100%;height:100vh;display:flex;align-items:center;justify-content:center;"]);function w(e){var r=(0,s.dq)(),n=[{name:(0,u.jsx)(i.cC,{id:"API Hub"}),icon:c.Z.nodesSvg,props:"apiHub",url:"/dashboard/apiHub",children:[{name:(0,u.jsx)(i.cC,{id:"Market"}),url:"/dashboard/apiHub/market",props:"market"},{name:(0,u.jsx)(i.cC,{id:"My apps"}),url:"/dashboard/apiHub/myApps",props:"myApps"},{name:(0,u.jsx)(i.cC,{id:"Explorer"}),url:"/dashboard/apiHub/explorer",props:"explorer"}]},{name:(0,u.jsx)(i.cC,{id:"PoScan"}),icon:c.Z.posCanSvg,props:"poScan",url:"/dashboard/poScan",children:[{name:(0,u.jsx)(i.cC,{id:"Overview"}),url:"/dashboard/poScan/overview",props:"home"},{name:(0,u.jsx)(i.cC,{id:"Staked"}),url:"/dashboard/poScan/staked",props:"staked"},{name:(0,u.jsx)(i.cC,{id:"Rewards"}),url:"/dashboard/poScan/rewards",props:"rewards"},{name:(0,u.jsx)(i.cC,{id:"Slashes"}),url:"/dashboard/poScan/slashes",props:"slashes"},{name:(0,u.jsx)(i.cC,{id:"My Address"}),url:"/dashboard/poScan/myAddresses",props:"myAddress"}]},{name:(0,u.jsx)(i.cC,{id:"AlertScan"}),icon:c.Z.alarmSvg,props:"alarm",url:"/dashboard/alertScan",children:[{name:(0,u.jsx)(i.cC,{id:"Monitor"}),url:"/dashboard/alertScan/monitor",props:"monitor"},{name:(0,u.jsx)(i.cC,{id:"Alarm Record"}),url:"/dashboard/alertScan/record",props:"record"}]},{name:(0,u.jsx)(i.cC,{id:"User Center"}),icon:c.Z.userSvg,props:"apiHub",url:"/dashboard/user",children:[{name:(0,u.jsx)(i.cC,{id:"Funds"}),url:"/dashboard/user/funds",props:"funds"},{name:(0,u.jsx)(i.cC,{id:"Add Funds"}),url:"/dashboard/user/addFunds",props:"addFunds"},{name:(0,u.jsx)(i.cC,{id:"Referral Earning"}),url:"/dashboard/user/referralEarning",props:"referralEarning"},{name:(0,u.jsx)(i.cC,{id:"Account Settings"}),url:"/dashboard/user/account/settings",props:"accountSettings"},{name:(0,u.jsx)(i.cC,{id:"Error Records"}),url:"/dashboard/user/account/errorRecords",props:"errorRecords"}]}];return(0,u.jsx)(b,{children:(0,a.useMemo)((function(){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.Z,{routers:n}),(0,u.jsx)(g,{children:(0,u.jsx)(a.Suspense,{fallback:(0,u.jsx)(j,{children:(0,u.jsx)(l.Z,{})}),children:r?(0,u.jsxs)(d.rs,{children:[(0,u.jsx)(d.AW,{exact:!0,path:"/dashboard",render:function(){return(0,u.jsx)(d.l_,{to:"/dashboard/verification"})}}),(0,u.jsx)(d.AW,{path:"/dashboard/apiHub/",render:function(){return(0,u.jsx)(d.l_,{to:"/dashboard/verification"})}}),(0,u.jsx)(d.AW,{path:"/dashboard/poScan/",render:function(){return(0,u.jsx)(d.l_,{to:"/dashboard/verification"})}}),(0,u.jsx)(d.AW,{strict:!0,path:"/dashboard/verification",component:f}),(0,u.jsx)(d.AW,{render:function(){return(0,u.jsx)(d.l_,{to:"/"})}})]}):(0,u.jsxs)(d.rs,{children:[(0,u.jsx)(d.AW,{exact:!0,path:"/dashboard",render:function(){return(0,u.jsx)(d.l_,{to:"/dashboard/apiHub"})}}),(0,u.jsx)(d.AW,{strict:!0,path:"/dashboard/poScan",component:p}),(0,u.jsx)(d.AW,{strict:!0,path:"/dashboard/user",component:x}),(0,u.jsx)(d.AW,{strict:!0,path:"/dashboard/apiHub",component:h}),(0,u.jsx)(d.AW,{strict:!0,path:"/dashboard/alertScan",component:m}),(0,u.jsx)(d.AW,{render:function(){return(0,u.jsx)(d.l_,{to:"/"})}})]})})})]})}),[r])})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.