You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/layouts__SimpleLayouts.asyn...

1 line
1.9 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[62],{68183:function(e,t,n){n.r(t);var a=n(7557),i=n.n(a),o=n(82242),s=n.n(o),r=n(41498),u=n.n(r),c=n(79800),l=n.n(c),g=n(39647),d=n.n(g),f=n(59301),h=n(92736),p=n(81863),b=n(75210),x=n(80629),v=n(29521),m=n(37712),S=["loading","children","globalSetting","user","account"];t.default=(0,x.connect)((function(e){var t=e.loading,n=e.globalSetting;return{loading:t,user:e.user,globalSetting:n,account:e.account}}))((function(e){e.loading,e.children,e.globalSetting,e.user,e.account;var t=d()(e,S),n=(0,x.useLocation)(),a=(0,f.useState)(!1),o=l()(a,2),r=o[0],c=o[1];function g(){return(g=u()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"1"===sessionStorage.getItem("text")&&setTimeout((function(){sessionStorage.setItem("text","2")}),2e3);case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,f.useEffect)((function(){var e=0;setInterval((function(){e++,"0"!==sessionStorage.getItem("indexstatus")?c(e%2==0):c(!1)}),500)}),[]),(0,f.useEffect)((function(){setInterval((function(){!function(){g.apply(this,arguments)}()}),2e3)}),[]),(0,m.jsxs)(h.ZP,{locale:p.Z,autoInsertSpaceInButton:!1,children:[r&&(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{style:{background:"linear-gradient( 90deg, rgba(252,17,17,0.6) 0%, rgba(255,29,29,0) 100%)",position:"absolute",left:0,zIndex:100,width:"50%",height:"100%"}}),(0,m.jsx)("div",{style:{background:"linear-gradient( 270deg, rgba(252,17,17,0.6) 0%, rgba(255,29,29,0) 100%)",position:"absolute",right:0,zIndex:100,width:"50%",height:"100%"}})]}),"kepukehuan.educoder.net"!==document.domain&&(0,m.jsx)(b.Z,s()({},t)),(0,m.jsx)("section",{className:v.Z.layoutMainClass,style:{marginTop:"/training"==n.pathname?"-72px":""},children:(0,m.jsx)(x.Outlet,{})})]})}))},44e3:function(e,t,n){var a=n(84966),i=n(86737);const o=a.ZP;o.Header=a.h4,o.Footer=a.$_,o.Content=a.VY,o.Sider=i.Z,t.Z=o}}]);