(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{1377:function(e,t,a){e.exports={PC_PAGE_MIN:"1024px",PC_PAGE_MAX:"1200px",phoneLandscape:"screen and (max-height: 500px) and (orientation: landscape)",phonePortrait:"screen and (max-width: 500px) and (orientation: portrait)",tabletPortrait:"screen and (orientation: portrait) and (min-width: 501px) and (max-width: 1024px) and (min-height: 501px) and (max-height: 1366px)",tabletLandscape:"screen and (orientation: landscape) and (min-height: 501px) and (max-height: 1024px) and (min-width: 501px) and (max-width: 1366px)",col_box:"_26OgXb6rYoes7n0D4B6vTZ",row_box:"lj38Wor8cZnOHUVxA7dd6",workCard:"_1PZTiaAbcL7IbmIhmtrleU",imgBox:"MPFE0REXCMGYLkwRiIbUB",imgBox_shadow:"_13DkAFwypoadpuEHj06Awf",imgBox_tag:"_3vmSehFOG8fpU69CIxsT4l",infoBox:"_3u7O617G8YoERyFUbtDw2X",infoBox_title:"_1k9jhDBlF-1PCTTAU0DKez",infoBox_author:"_3KpQqpiMbHqheAGNFR373v",authorName:"_1mnHrwV9jL2daZiY0rS26g",author_imgBox:"Cdk3nIq6xRtHsyzH1aAzo",icon:"_1Fb_t5GBC-K33ODiwz2EMZ",text:"x6TByIF5k-wB1juQCr3hF",infoBox_data:"_2ICCQAmEIBXJb9DgfqPw5t",tips:"_2hOKAGe8ds6G1Be0gr4n42"}},1386:function(e,t,a){"use strict";a.d(t,"a",(function(){return j}));var n=a(1),r=a.n(n),o=a(51),i=a(24),l=a(8),c=a(236),s=a(173),m=a.n(s),d=a(93),p=Object.defineProperty,u=Object.defineProperties,h=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,w=(e,t,a)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,g=(e,t)=>{for(var a in t||(t={}))x.call(t,a)&&w(e,a,t[a]);if(b)for(var a of b(t))f.call(t,a)&&w(e,a,t[a]);return e};const E=()=>{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)};class v extends n.PureComponent{constructor(){super(...arguments),this.state={visible:!1,confirmLoading:!1},this.hide=()=>{this.setState({visible:!1})},this.show=()=>{this.setState({visible:!0})},this.onOk=null,this.onCancel=null,this.registerCancel=e=>{this.onCancel=e},this.registerOk=e=>{this.onOk=e}}componentDidMount(){setTimeout(()=>{this.setState({visible:!0})},50)}render(){const e="reactnode"===this.props.childrenType?this.props.children:r.a.createElement(n.Suspense,{fallback:r.a.createElement(r.a.Fragment,null)},Object(n.cloneElement)(this.props.children,g({close:()=>{var e;this.props.close(this),null==(e=this.onCancel)||e.call(this)},closeAll:this.props.closeAll,registerOk:this.registerOk,registerCancel:this.registerCancel},this.props.componentProps)));return this.state.visible&&r.a.createElement(d.a,(t=g({},this.props.modalProps),u(t,h({onClose:()=>{var e;this.hide(),null==(e=this.props.modalProps)||e.onClose()}}))),e);var t}}var y=new class{constructor(){this.modalWrapDomMap=new Map,this.open=(e,t)=>{"function"==typeof e?this.insertComponentToDom(e,null==t?void 0:t.props,"modal",null==t?void 0:t.modalProps):this.insertReactNodeToDom(e,null==t?void 0:t.modalProps)},this.openModal=(e,t,a)=>{this.open(e,{props:t,modalProps:a})},this.insertReactNodeToDom=(e,t)=>{const a=E(),o=document.createElement("div");document.body.appendChild(o);const i=Object(n.createRef)(),l=r.a.createElement(v,{type:"modal",id:a,close:this.close,ref:i,closeAll:this.closeAll,childrenType:"reactnode",modalProps:t},e);this.modalWrapDomMap.set(a,{dom:o,ref:i}),m.a.render(l,o)},this.insertComponentToDom=(e,t,a,o)=>{const i=E();console.log(i);const l=document.createElement("div");document.body.appendChild(l);const c=Object(n.createRef)(),s=r.a.createElement(v,{type:a,id:i,close:this.close,componentProps:t,ref:c,closeAll:this.closeAll,modalProps:o},r.a.createElement(e,null));this.modalWrapDomMap.set(i,{dom:l,ref:c}),m.a.render(s,l)},this.close=e=>{e.hide();const t=e.props.id;setTimeout(()=>{var e;const a=null==(e=this.modalWrapDomMap.get(t))?void 0:e.dom;a&&(m.a.unmountComponentAtNode(a),document.body.removeChild(a)),this.modalWrapDomMap.delete(t)},200)},this.closeAll=()=>{this.modalWrapDomMap.forEach(({dom:e,ref:t})=>{t.current&&this.close(t.current)})}}};const O=a(1377);function _(e){let t=e%60;return t<10&&(t="0"+t),{second:t,minute:Math.floor(e/60)}}const j=e=>{const{data:t,onPlay:a}=e,n=()=>{return e=void 0,n=null,o=function*(){y.open(r.a.createElement("video",{autoPlay:!0,controls:!0,style:{width:"100%"},className:O.playVideo,src:t.playUrl},"Do not support video.")),null==a||a()},new Promise((t,a)=>{var r=e=>{try{l(o.next(e))}catch(e){a(e)}},i=e=>{try{l(o.throw(e))}catch(e){a(e)}},l=e=>e.done?t(e.value):Promise.resolve(e.value).then(r,i);l((o=o.apply(e,n)).next())});var e,n,o};return r.a.createElement("div",{onClick:()=>n(),className:`${O.workCard} ${O.col_box}`},r.a.createElement("div",{onClick:()=>null,className:O.imgBox},r.a.createElement(o.c,{hash:t.previewUrl,width:300,height:200,fit:"contain"}),r.a.createElement("div",{className:O.imgBox_tag},`${_(t.duration).minute}:${_(t.duration).second}`),r.a.createElement("div",{className:O.imgBox_shadow})),r.a.createElement("div",{className:`${O.infoBox} ${O.col_box}`},r.a.createElement("div",{className:""+O.col_box},r.a.createElement(l.a,{style:{height:40},wrap:!0,lineClamp:2,size:14,className:O.infoBox_title},t.title),r.a.createElement("div",{className:`${O.infoBox_data} ${O.row_box}`},r.a.createElement("div",{className:`${O.icon} ${O.row_box}`},r.a.createElement(i.a,{icon:"view-bbk",style:{fontSize:13}}),r.a.createElement(l.a,{size:12,className:O.text},Object(c.c)(t.playCount)))))))}},1398:function(e,t,a){e.exports={PC_PAGE_MIN:"1024px",PC_PAGE_MAX:"1200px",phoneLandscape:"screen and (max-height: 500px) and (orientation: landscape)",phonePortrait:"screen and (max-width: 500px) and (orientation: portrait)",tablet:"screen and (orientation: portrait) and (min-width: 501px) and (max-width: 1024px) and (min-height: 501px) and (max-height: 1366px), screen and (orientation: landscape) and (min-height: 501px) and (max-height: 1024px) and (min-width: 501px) and (max-width: 1366px)",withPrefix:"_2M1vin9xA81hHE55hbfuz8",filter:"_2M-qTi823FrOyLqUTOTgsK",tagList:"_1fXgmyCy8qEkTugSc5XVFf",tagList_item:"_2byugNOjsV5_rSPJmXvyDO",active:"_1ll4InEqZetU8PX3Z3zs5y",workList:"_2p590X3xza5oTJJZ3ToFcx",itemWrap:"_1yZ6NeMjfGScb4F10xmspg",freeCreate:"_1kPlzcaKM1Pva4Z1Js3Igc",btn:"_3I0n2A1qF2YapSZRPVI-BZ",tooltip:"_2EbRjEdNq24qWl4KDLWuyt",horizontal:"_2BQlH8mwTwYsEPkLzGjL-5",vertical:"_2ZuDq3KZmx_Jsvj_Ct8VZ1"}},1491:function(e,t,a){e.exports={phone:"screen and (max-width: 500px), screen and (max-height: 500px)",PC_PAGE_MIN:"1024px",PC_PAGE_MAX:"1200px",phoneLandscape:"screen and (max-height: 500px) and (orientation: landscape)",phonePortrait:"screen and (max-width: 500px) and (orientation: portrait)",tabletPortrait:"screen and (orientation: portrait) and (min-width: 501px) and (max-width: 1024px) and (min-height: 501px) and (max-height: 1366px)",tabletLandscape:"screen and (orientation: landscape) and (min-height: 501px) and (max-height: 1024px) and (min-width: 501px) and (max-width: 1366px)",banner:"_2PcVy2PEDRfz4Up6wcJEyU",banner_container:"_1pIIqZN0r9b5um6moN8_Jz",carousel:"_12-esTLCDOtIXa8nIbuTtV",entry:"GLcVLeOxz1dHDwlT7Y-XO",carousel_container:"_3LQRMipE6WEOWIO7c4B-JA",screenshots:"rJQ4lE89VBa6UEc4AJKqD",jumpList:"_2HZaD77J4WnN1bMKXFqLs5",jumpList_item:"a0uK79H9Iu79Llq9BmK6u",jumpList_content:"_1leU480iGwCJkwBqd_3h7-",text:"_2qpJZOlNUhp1U83UMeIplJ",jumpList_img:"_3MVUwabxj0kMDriKEuyds9"}},1492:function(e,t,a){e.exports={wrapper:"_254oJ1ujpVrmh9gxcqFzIL",horizontal:"_1oghKRhWBeWaHCX23hAS_C",vertical:"fDksoM910GnXSJiSXQO-j",loadingWrapper:"_2IcgkkcB-yux92Ay-97Yhe",hasContent:"vnxA-LzLF0xXeHCdHPkbO",scrollBoxAnchor:"_29qHxOvzPkVcMxsKvQDMmR"}},1493:function(e,t,a){e.exports={phone:"screen and (max-width: 500px), screen and (max-height: 500px)",tablet:"screen and (orientation: portrait) and (min-width: 501px) and (max-width: 1024px) and (min-height: 501px) and (max-height: 1366px), screen and (orientation: landscape) and (min-height: 501px) and (max-height: 1024px) and (min-width: 501px) and (max-width: 1366px)",container:"_2av6l19aN7Z2VOHoSI6VFB",main:"qccJ3_U5P4QsnfPUZP4fX",btn:"zV098CSR1LSkZpyptgTMZ",btnHover_prefetch:"_16N41e7q3EM2bln2wsIlyO"}},1494:function(e,t,a){e.exports={phone:"screen and (max-width: 500px), screen and (max-height: 500px)",tablet:"screen and (orientation: portrait) and (min-width: 501px) and (max-width: 1024px) and (min-height: 501px) and (max-height: 1366px), screen and (orientation: landscape) and (min-height: 501px) and (max-height: 1024px) and (min-width: 501px) and (max-width: 1366px)",header:"_3F_qVORLuUn5lyN16weKK",home_2022:"_9m6A3-68k5itHRQwRNTQr"}},1620:function(e,t,a){"use strict";a.r(t);var n=a(1),r=a.n(n),o=a(68),i=a(503),l=a(7),c=a(51),s=a(1370),m=a(75),d=a(104),p=a(252);const u=a(1491),h=[{name:"创建模型",imgUrl:d.a.home_model_1,link:"/me/content?type=model"},{name:"建造地图",imgUrl:d.a.home_model_2,link:"/me/content"},{name:"制作音乐",imgUrl:d.a.home_model_3,link:"/me/content?type=music"}],b=r.a.memo(e=>{const t=Object(p.b)(),a=r.a.useRef(Object(l.g)()),[n,i]=(r.a.useRef(Object(l.f)()),r.a.useState(!1)),[d,b]=r.a.useState([]),[x,f]=r.a.useState(Object(l.f)());r.a.useEffect(()=>{w().catch(e=>{console.log("err")})},[]);const w=()=>{return e=void 0,a=null,n=function*(){try{i(!0);const e=yield t.rpc.website.api.getValidBannerList({offset:0,limit:6});b(e||[]),i(!1)}catch(e){i(!1)}},new Promise((t,r)=>{var o=e=>{try{l(n.next(e))}catch(e){r(e)}},i=e=>{try{l(n.throw(e))}catch(e){r(e)}},l=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,i);l((n=n.apply(e,a)).next())});var e,a,n};return r.a.createElement("div",{className:u.banner},r.a.createElement(o.a,null,r.a.createElement("div",{className:u.banner_container},r.a.createElement("div",{className:u.carousel,onMouseEnter:()=>{f(!a.current)},onMouseOut:()=>{a.current||f(!1)}},r.a.createElement("div",{className:u.carousel_container},d.length>0?r.a.createElement(s.a,{showArrows:x,autoPlay:d.length>1,infiniteLoop:d.length>1},d.map((e,t)=>r.a.createElement(m.a,{to:e.banner_link,key:"banner-"+t},r.a.createElement("div",{className:u.screenshots},r.a.createElement(c.c,{className:u.screenshots_banner,hash:a.current?e.banner_mobile:e.banner_pc,width:800,height:200}))))):null)),r.a.createElement("div",{className:u.entry},r.a.createElement("ul",{className:u.jumpList},h.map(e=>r.a.createElement("li",{className:u.jumpList_item,key:e.name,onClick:()=>window.location.href=e.link},r.a.createElement("div",{className:u.jumpList_content},r.a.createElement(c.c,{className:u.jumpList_img,hash:e.imgUrl,width:375,height:125,fit:"contain"}),r.a.createElement("p",{className:u.text},e.name)))))))))});b.displayName="HomeBanner";var x=a(156),f=a(73),w=a(57),g=a(131),E=Object.defineProperty,v=Object.defineProperties,y=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,P=(e,t,a)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;function N(e,t){var a;const[r,o]=Object(n.useState)([]),[i,l]=Object(n.useState)(!1),[c,s]=Object(n.useState)(!1),m=null!=(a=null==t?void 0:t.pageSize)?a:20,d=Object(n.useRef)(new WeakMap),p=Object(n.useCallback)(()=>{const t=d.current;return t.set(e,{pageIndex:-1,loading:!1}),o([]),l(!0),()=>{t.delete(e)}},[e]);Object(n.useEffect)(()=>p(),[p]);return{data:r,hasMore:i,loadMore:Object(n.useCallback)(()=>{return t=this,a=null,n=function*(){const t=d.current,a=t.get(e);if(!a||a.loading)return;const n=a.pageIndex+1;t.set(e,{pageIndex:n,loading:!0}),s(!0),e({limit:m,offset:n*m}).then(({count:a,rows:r})=>{const i=t.get(e);i&&i.pageIndex===n&&o(e=>{const t=[...e,...r];return l(r.length>=m&&a>t.length),t})}).finally(()=>{const a=t.get(e);a&&a.pageIndex===n&&(t.set(e,((e,t)=>v(e,y(t)))(((e,t)=>{for(var a in t||(t={}))_.call(t,a)&&P(e,a,t[a]);if(O)for(var a of O(t))j.call(t,a)&&P(e,a,t[a]);return e})({},a),{loading:!1})),s(!1))}).catch(e=>{})},new Promise((e,r)=>{var o=e=>{try{l(n.next(e))}catch(e){r(e)}},i=e=>{try{l(n.throw(e))}catch(e){r(e)}},l=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,i);l((n=n.apply(t,a)).next())});var t,a,n},[e,m]),loading:c,reloadData:p}}var k=a(138),C=a(60),L=a(505),I=a(170),M=a(133),A=a(326),S=a(94),B=a(22);var D=a(516),T=a.n(D);function R(){}var U=function(e){var t;const a=Object(n.useRef)(!0),[r,o]=Object(n.useState)(!1),[i,l]=Object(n.useState)(null),c=null!=(t=null==e?void 0:e.element)?t:i,s=Object(n.useRef)(null==e?void 0:e.onIntersected);return s.current=null==e?void 0:e.onIntersected,Object(n.useEffect)(()=>{if(!c)return R;if(window.IntersectionObserver&&window.IntersectionObserverEntry){const e=new IntersectionObserver(e=>{o(e[0].isIntersecting)});return e.observe(c),()=>{e&&e.disconnect()}}a.current=!1;const e=T()(()=>{if(!a.current){const{top:e,bottom:t}=c.getBoundingClientRect();o(e<=window.innerHeight&&t>=0)}},500,{leading:!0,trailing:!0});return window.addEventListener("scroll",e,!0),()=>{a.current=!0,window.removeEventListener("scroll",e,!0)}},[c]),Object(n.useEffect)(()=>{r&&s.current&&s.current()},[r]),(null==e?void 0:e.element)?{isIntersected:r}:{isIntersected:r,element:i,setElement:l}};const z=a(1492);function F(){}function H({direction:e,api:t,renderItem:a,loadingElem:o,className:i,onDataChange:l}){const{loading:c,data:s,hasMore:m,loadMore:d}=N(t,{pageSize:16}),p=function(e,t=300){const[a,r]=Object(n.useState)(e),o=Object(n.useRef)(-1);return Object(n.useEffect)(()=>(window.clearTimeout(o.current),o.current=window.setTimeout(()=>{r(e)},t),()=>{window.clearTimeout(o.current)}),[t,e]),a}(s),u=Object(n.useRef)(l),{isIntersected:h,setElement:b}=U();return Object(n.useEffect)(()=>{h&&m&&d().catch(F)},[h,m,d,p]),Object(n.useEffect)(()=>{var e;null==(e=u.current)||e.call(u,s)},[s]),r.a.createElement("div",{className:Object(B.a)(i,z.wrapper,z[e],s.length>0&&z.hasContent)},s.map(e=>a(e)),r.a.createElement("div",{ref:b,className:Object(B.a)(z.scrollBoxAnchor)}),c&&(null!=o?o:r.a.createElement("div",{className:z.loadingWrapper},r.a.createElement(S.a,null))))}var q=a(1386),W=a(132),G=a(215),Z=a(349),J=a(24),X=Object.defineProperty,V=Object.defineProperties,K=Object.getOwnPropertyDescriptors,$=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,ee=(e,t,a)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;const te=a(1398);function ae(){const[e,t]=r.a.useState({id:0,type:-1,workList:[],isPro:!1});return{preview:(e,a,n)=>{switch(e.type){case x.c.model:case x.c.music:t({id:e.contentId,type:e.type,workList:a,isPro:null!=n&&n});break;case x.c.game:default:window.location.href=Object(I.c)(e.playContainerName)}},elem:e.type>=0&&r.a.createElement(r.a.Suspense,{fallback:r.a.createElement(M.a,{children:null})},r.a.createElement(A.a,{invisible:!e.id,contentId:e.id,contentList:e.workList,isPro:e.isPro,onClose:()=>{t({id:0,type:-1,workList:[],isPro:!1})},type:e.type}))}}function ne({filter:e}){const t="desktop"===Object(l.b)()||Object(W.a)()?"vertical":"horizontal",{preview:a,elem:o}=ae(),[i,c]=Object(n.useState)([]),s=Object(n.useMemo)(()=>()=>C.a.content.getHomepageRecommendListUsingGet({limit:30,offset:0,type:x.c[e],childSuitable:Object(W.a)()}).then(e=>{var t,a;return{count:Math.min(null!=(t=e.count)?t:0,30),rows:(null!=(a=e.rows)?a:[]).map(e=>k.a.workCardTypeTransfer(e))}}),[e]),m=Object(n.useMemo)(()=>()=>C.a.course.getHomepageCourseListUsingGet({limit:30,offset:0}).then(e=>{var t,a;return{count:Math.min(null!=(t=e.count)?t:0,30),rows:null!=(a=e.rows)?a:[]}}),[]);return e===x.e.tutorial?r.a.createElement(r.a.Fragment,null,r.a.createElement(H,{direction:t,api:m,className:Object(B.a)(te.workList,te[t]),renderItem:e=>r.a.createElement("div",{className:te.itemWrap,key:e.id},r.a.createElement(q.a,{data:e,onPlay:()=>{C.a.course.incCoursePlayCountUsingPost(e.id).catch(()=>null)}}))})):r.a.createElement(r.a.Fragment,null,r.a.createElement(H,{direction:t,onDataChange:c,api:s,className:Object(B.a)(te.workList,te[t]),renderItem:e=>r.a.createElement("div",{className:te.itemWrap,key:e.contentId},r.a.createElement(L.a,{data:e,onPlay:e=>a(e,i)}))}),o)}function re(){const e="desktop"===Object(l.b)()?"vertical":"horizontal",{preview:t,elem:a}=ae(),[o,i]=Object(n.useState)([]),c=Object(n.useMemo)(()=>e=>C.a.content.getHomepageTrendListUsingGet({limit:30,offset:0}).then(e=>{var t,a;return{count:Math.min(null!=(t=e.count)?t:0,30),rows:(null!=(a=e.rows)?a:[]).map(e=>k.a.workCardTypeTransfer(e))}}),[]);return r.a.createElement(r.a.Fragment,null,r.a.createElement(H,{direction:e,onDataChange:i,api:c,className:Object(B.a)(te.workList,te[e]),renderItem:e=>r.a.createElement("div",{className:te.itemWrap,key:e.contentId},r.a.createElement(L.a,{data:e,onPlay:e=>t(e,o)}))}),a)}function oe(){const e=Object(l.b)(),t="desktop"===e?"vertical":"horizontal",{preview:a,elem:o}=ae(),[i,c]=Object(n.useState)([]),[s,m]=Object(n.useState)(!1),d=Object(n.useCallback)(()=>{return e=this,t=null,a=function*(){let e;var t;(t=e||(e={}))[t.recommended=0]="recommended",t[t.latest=1]="latest",t[t.keyword=2]="keyword";const a=yield G.a.map.listMapsUsingGet({orderBy:0,limit:24,offset:0,tabKey1:"mapPopular"}).finally(()=>{setTimeout(()=>{m(!0)},0)});return((e,t)=>V(e,K(t)))(((e,t)=>{for(var a in t||(t={}))Q.call(t,a)&&ee(e,a,t[a]);if($)for(var a of $(t))Y.call(t,a)&&ee(e,a,t[a]);return e})({},a),{count:Math.min(24,a.count),rows:a.rows.map(e=>k.a.createraMapTransfer(e))})},new Promise((n,r)=>{var o=e=>{try{l(a.next(e))}catch(e){r(e)}},i=e=>{try{l(a.throw(e))}catch(e){r(e)}},l=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,i);l((a=a.apply(e,t)).next())});var e,t,a},[]);return s&&0===i.length?r.a.createElement(r.a.Fragment,null):r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:te.filter},r.a.createElement("h5",{className:te.withPrefix+" flex"},"PRO版推荐内容",r.a.createElement(Z.a,{placement:"bottom",align:"left",tooltipClass:te.tooltip,removeArrow:!0,content:r.a.createElement("div",{style:{fontSize:12,lineHeight:"18px",textAlign:"left",color:"black",fontWeight:400}},r.a.createElement("span",null," 什么是“PRO版”?"),r.a.createElement("br",null),r.a.createElement("span",null,"神岛推出了新的地图和模型编辑器,"),"mobile"===e&&r.a.createElement("br",null),r.a.createElement("span",null,"集成了海量新功能。"),r.a.createElement("br",null),r.a.createElement("span",null,"赶紧去体验一下吧!"))},r.a.createElement(J.a,{size:16,style:{marginLeft:8},icon:"warning"})))),r.a.createElement(H,{direction:t,onDataChange:c,api:d,className:Object(B.a)(te.workList,te[t]),renderItem:e=>r.a.createElement("div",{className:te.itemWrap,key:e.contentId},r.a.createElement(L.a,{cardType:x.b.pro,data:e,onPlay:e=>{const t=i.filter(e=>e.type===x.c.model);a(e,t,!0)}}))}),o)}var ie=a(1412);const le=a(1398);const ce=e=>{const t=Object(f.g)(),a=Object(w.k)(),[i,l]=r.a.useState((c=a.get("filter"),Object(W.a)()?[x.e.model,x.e.music].includes(c)?c:x.e.tutorial:[x.e.game,x.e.model,x.e.music].includes(c)?c:x.e.common));var c;Object(ie.c)(),Object(n.useEffect)(()=>{a.set("filter",i),a.update(t.push)},[i]);const s=r.a.createElement("div",{className:le.filter},r.a.createElement("h5",{className:le.withPrefix},"推荐内容"),r.a.createElement("ul",{className:le.tagList},(Object(W.a)()?x.a:x.d).map(e=>r.a.createElement("li",{onClick:()=>{l(e.type)},className:`${le.tagList_item} ${i===e.type?le.active:""}`,key:e.type},e.name)))),m=r.a.createElement("div",{className:le.filter},r.a.createElement("h5",{className:le.withPrefix},"潜力新作"));return r.a.createElement(o.a,null,r.a.createElement("div",{className:le.homeBody},r.a.createElement(oe,null),s,r.a.createElement(ne,{filter:i}),!Object(W.a)()&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{height:"8px"}}),m,r.a.createElement(re,null)),r.a.createElement("div",{className:le.freeCreate},r.a.createElement("p",null,"是时候释放你的创意了!"),r.a.createElement(g.a,{type:"primary",color:"red-gradient",className:le.btn,onClick:()=>{const e=[x.e.common,x.e.game,x.e.tutorial].some(e=>e===i);window.location.href="/me/content?type="+(e?"map":i)}},"开始创作"))))};var se=a(46),me=a(61),de=a(155);const pe=a(1493),ue=r.a.memo(()=>{const{href:e}=new URL("/play/world-hall",de.b);return r.a.createElement("div",{className:pe.container},r.a.createElement("div",{className:pe.main,onClick:()=>window.open(e)},r.a.createElement("div",{className:pe.btn}),r.a.createElement("div",{className:pe.btnHover_prefetch})))});ue.displayName="NotLoginHomeBanner";const he=a(1494),be=r.a.memo(()=>{const e=Object(f.g)(),t=Object(w.b)(),a=Object(se.b)(me.c);return t&&("requestAnimationFrame"in window?window.requestAnimationFrame(()=>{e.replace("/maas")}):setTimeout(()=>{e.replace("/maas")})),r.a.createElement("div",{className:he.home_2022},r.a.createElement(o.c,{fullWidth:!0},Object(l.f)()&&r.a.createElement("div",{className:he.header},r.a.createElement(i.a,null)),a.isLogin?r.a.createElement(b,null):r.a.createElement(ue,null),r.a.createElement(ce,null)))});be.displayName="Home";t.default=be}}]);