"use strict";(self["webpackChunkninepage"]=self["webpackChunkninepage"]||[]).push([[151],{3927:function(t,e,n){n.d(e,{Z:function(){return d}});var s=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"app"}},[e("div",{staticClass:"container"},[e("router-view")],1)])},i=[],r={name:"App",data(){return{loading:null,pathname:"",parameterObject:{},isPc:!1,socketTask:null}},watch:{},mounted(){this.$store.dispatch("fetchHistoricalSearch"),this.$store.dispatch("getAllForum",this),this.isJudgePc();let t=setInterval((()=>{0!==Object.keys(this.$store.state.user).length&&(this.useSocket(),clearInterval(t))}),1e3)},methods:{useSocket(){let t=this.getMiucmsSessionCookie()||"";this.socketTask=new WebSocket(`wss://app.gter.net/socket?token=${t}`),this.socketTask.onopen=()=>{let e=this.$store.state.user||{};e&&t&&this.socketTask.send(JSON.stringify({type:"bind",data:{token:t,uid:e.uid||0}})),setTimeout((()=>this.timedTransmission()),5e4)},this.socketTask.onclose=()=>{console.log("socket关闭了",new Date)}},timedTransmission(){1==this.socketTask.readyState&&(this.socketTask.send(JSON.stringify({type:"ping"})),setTimeout((()=>this.timedTransmission()),5e4))},getMiucmsSessionCookie(){let t=document.cookie.split(";");for(let e=0;e0){n=!1;break}if(n){let t=window.location.pathname;const e=window.location.search,n=e.substring(1);let s=Object.fromEntries(new URLSearchParams(n));if(this.pathname=t,this.parameterObject=s,-1!=this.pathname.indexOf("allSections")&&this.parameterObject["fid"])return void this.handleNeedAllSkipPc();if(-1!=this.pathname.indexOf("userIndex"))return void this.handleNeedInfo();let i="";-1!=t.indexOf("detailIndex")&&(i=`https://bbs.gter.net/thread-${s["tid"]}-${s["page"]||1}-1.html`),-1!=t.indexOf("searchResult")&&(i="https://search.gter.net/index.html?type=forum"+(s["kw"]?`&kw=${s["kw"]}`:"")),-1==t.indexOf("allSections")||s["fid"]||(i="https://bbs.gter.net/forum.php"),-1!=t.indexOf("recommend")&&(i="https://bbs.gter.net/forum.php"),-1!=t.indexOf("collect")&&(i="https://bbs.gter.net/forum.php"),"/"!=t&&""!=t&&t||(i="https://bbs.gter.net/forum.php"),i&&this.$skipUrl(i,!1)}},handleNeedInfo(){let t=this.$store.state.user||{},e="";"{}"!=JSON.stringify(t)?(e=`https://bbs.gter.net/home.php?mod=space&uid=${t.uin}`,this.$skipUrl(e,!1)):setTimeout((()=>{this.handleNeedInfo()}),300)},handleNeedAllSkipPc(){let t=this.$store.state.allForumList||[],e="",n=this.parameterObject["fid"]||null;0!=t.length?(t.forEach(((t,s)=>{t.fid==n&&(e=`https://bbs.gter.net/forum.php?gid=${t.fid}`),t.data.forEach(((t,s)=>{t.fid==n&&(e=`https://bbs.gter.net/forum-${t.fid}-${this.parameterObject["page"]||1}.html`)}))})),this.$skipUrl(e,!1)):setTimeout((()=>{this.handleNeedAllSkipPc()}),300)}}},o=r,a=n(1001),l=(0,a.Z)(o,s,i,!1,null,null,null),d=l.exports},9614:function(t,e,n){n.r(e);var s=n(2512),i=n.n(s),r=n(1736),o=n.n(r),a=new(i())({id:"icon-add",use:"icon-add-usage",viewBox:"0 0 20 20",content:'\r\n \r\n \r\n \r\n'});o().add(a);e["default"]=a},1378:function(t,e,n){n.r(e);var s=n(2512),i=n.n(s),r=n(1736),o=n.n(r),a=new(i())({id:"icon-addyellow",use:"icon-addyellow-usage",viewBox:"0 0 12 12",content:'\r\n \r\n \r\n \r\n'});o().add(a);e["default"]=a},9814:function(t,e,n){n.r(e);var s=n(2512),i=n.n(s),r=n(1736),o=n.n(r),a=new(i())({id:"icon-arrowsBlackLeft",use:"icon-arrowsBlackLeft-usage",viewBox:"0 0 7 12",content:'\r\n \r\n \r\n \r\n'});o().add(a);e["default"]=a},865:function(t,e,n){n.r(e);var s=n(2512),i=n.n(s),r=n(1736),o=n.n(r),a=new(i())({id:"icon-arrowsLeft",use:"icon-arrowsLeft-usage",viewBox:"0 0 6 11",content:'\r\n \r\n \r\n \r\n'});o().add(a);e["default"]=a},9061:function(t,e,n){n.r(e);var s=n(2512),i=n.n(s),r=n(1736),o=n.n(r),a=new(i())({id:"icon-arrowsRoundBlackLeft",use:"icon-arrowsRoundBlackLeft-usage",viewBox:"0 0 11 12",content:'\r\n \r\n \r\n \r\n'});o().add(a);e["default"]=a},5435:function(t,e,n){n.r(e);var s=n(2512),i=n.n(s),r=n(1736),o=n.n(r),a=new(i())({id:"icon-arrowsRoundLeft",use:"icon-arrowsRoundLeft-usage",viewBox:"0 0 20 20",content:'\r\n \r\n \r\n \r\n'});o().add(a);e["default"]=a},9607:function(t,e,n){var s=n(6369),i=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"svg-icon",class:t.className,attrs:{xmlns:"http://www.w3.org/2000/svg"}},[e("use",{attrs:{"xlink:href":`#icon-${t.iconClass}`,"xmlns:xlink":"http://www.w3.org/1999/xlink"}})])},r=[],o={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{iconName(){return`#icon-${this.iconClass}`},svgClass(){return this.className?"svg-icon "+this.className:"svg-icon"}}},a=o,l=n(1001),d=(0,l.Z)(a,i,r,!1,null,"7cc231e5",null),c=d.exports;s["default"].component("svg-icon",c);const h=n(7886),m=t=>t.keys().map(t);m(h)}}]);