1"use strict";(self.webpackChunkneo_ssr=self.webpackChunkneo_ssr||[]).push([[8019],{54554:(t,e,a)=>{var i=a(46518),r=a(48981),s=a(35610),n=a(91291),o=a(26198),c=a(34527),l=a(96837),d=a(1469),h=a(97040),g=a(84606),u=a(70597)("splice"),f=Math.max,p=Math.min;i({target:"Array",proto:!0,forced:!u},{splice:function(t,e){var a,i,u,m,v,w,y=r(this),b=o(y),A=s(t,b),_=arguments.length;for(0===_?a=i=0:1===_?(a=0,i=b-A):(a=_-2,i=p(f(n(e),0),b-A)),l(b+a-i),u=d(y,i),m=0;m<i;m++)(v=A+m)in y&&h(u,m,y[v]);if(u.length=i,a<i){for(m=A;m<b-i;m++)w=m+a,(v=m+i)in y?y[w]=y[v]:g(y,w);for(m=b;m>b-i+a;m--)g(y,m-1)}else if(a>i)for(m=b-i;m>A;m--)w=m+a-1,(v=m+i-1)in y?y[w]=y[v]:g(y,w);for(m=0;m<a;m++)y[m+A]=arguments[m+2];return c(y,b-i+a),u}})},85794:(t,e,a)=>{a.r(e),a.d(e,{default:()=>O});var i=a(10467),r=a(64467),s=a(61029),n=a.n(s),o=a(29570),c=a.n(o),l=a(88480),d=a.n(l),h=a(93761),g=a.n(h),u=a(54756),f=a.n(u),p=(a(28706),a(52675),a(2008),a(51629),a(23792),a(62062),a(54554),a(67945),a(84185),a(83851),a(81278),a(79432),a(26099),a(3362),a(47764),a(23500),a(62953),a(7350)),m=a.n(p),v=a(38221),w=a.n(v),y=a(59335),b=(a(69085),a(79991)),A=function(t,e){e("setErrorMsg",t,{root:!0})};const _={namespaced:!0,state:function(){return{tag:null,tagHotArticle:null}},actions:{fetchTagDetails:function(t,e){var a=t.commit,i=t.rootState;return new Promise(function(t,r){b.A.getTagDetails(e,i.token).then(function(s){if(s.error){var n=Object.assign({},s,{params:e,api:"model.getTagDetails"});a("setErrorMsg",n,{root:!0}),r(n)}else a("setErrorMsg",null,{root:!0}),a("setTagDetails",s.data),a("setSEO",{title:"#".concat(s.data.title," - ").concat(i.setting.site_name),keywords:s.data.tag},{root:!0}),t()}).catch(function(t){A(t,a),r(t)})})},fetchTagHotArticle:function(t,e){t.state;var a=t.commit,i=t.rootState;return new Promise(function(t,r){b.A.getTagHotArticle(e,i.token).then(function(i){if(i.error){var s=Object.assign({},i,{req:e,api:"model.getTagHotArticle"});a("setErrorMsg",s,{root:!0}),r(s)}else a("setErrorMsg",null,{root:!0}),a("setTagHotArticle",i);t()}).catch(function(t){A(t,a),r(t)})})}},mutations:{setTagDetails:function(t,e){t.tag=e},setTagHotArticle:function(t,e){t.tagHotArticle=e}}};function C(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,i)}return a}function L(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?C(Object(a),!0).forEach(function(e){(0,r.A)(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):C(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}const T={name:"TagPage",components:{HotArticleBlock:a(92071).A,SsArticleCard:g(),SsArticleCardLoading:d(),SsLoading:c(),SsRecommendTag:n()},asyncData:function(t){var e=t.store,a=t.route,i=(t.router,a.params.keyword),r=void 0===i?"":i;return e.registerModule("tag",_),Promise.all([e.dispatch("tag/fetchTagDetails",{title:r}),e.dispatch("tag/fetchTagHotArticle",{limit:12,offset:0,tag:r})])},data:function(){return{clientType:"phone",widthLimit:1152,cardType:"group",articleList:[],params:{limit:12,offset:0,created_at:0},hotArticle:[],tagInfo:{title:"",article_count:0},loadingMax:3,loading:!1,loadEnd:!1,loaded:!1,total:0}},computed:L(L({},(0,y.mapState)(["terminalType"])),{},{placeholderCount:function(){return this.articleList.length%this.loadingMax?this.loadingMax-this.articleList.length%this.loadingMax:0}}),created:function(){var t=this.$store.state.tag,e=t.tag,a=t.tagHotArticle;if(this.tagInfo=e,a){if(this.articleList=a.data.map(function(t){return t}),this.total=a.total,this.loaded=!0,this.loadEnd=this.total<=12,19144!==this.tagInfo.id)return;a.total<=2?this.insertCustomData(this.articleList.length-1):this.articleList[2].isCustomData||this.insertCustomData(2)}},beforeMount:function(){this.params.created_at=window.GLOBAL_TIMESTAMP,this.getHotAticleApi(),this.resize()},mounted:function(){window.addEventListener("scroll",this.reachBottom),window.addEventListener("resize",this.resize)},destroyed:function(){window.removeEventListener("scroll",this.reachBottom),window.removeEventListener("resize",this.resize)},methods:{insertCustomData:function(t){this.articleList.splice(t,0,{isCu
1stomData:!0,banner:"https://cdnfile.sspai.com/10/24/2025/article/3358f776-ffc9-a525-7249-62806c461d49.png",title:"䏿´¾ ï½ VOL.242èä¸èè¿·ä½ ä¸»æºçæªæ¥",url:"https://sspai.com/bullet/1761288592",author:{slug:"aishi",nickname:"æ¨ç³",avatar:"https://cdnfile.sspai.com/2022/04/01/avatar/dfac91740898375805b9c48b78162c76.jpeg"}})},fetchData:function(){var t=this;return(0,i.A)(f().mark(function e(){var a,i;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=2,t.$http.get("/article/tag/page/get",{params:{limit:t.params.limit,offset:t.params.offset,tag:t.$route.params.keyword,created_at:t.params.created_at}});case 2:if(!(a=e.sent).error){e.next=3;break}throw new Error(a.msg);case 3:t.articleList=t.articleList.concat(a.data),t.total=a.total,t.loadEnd=t.total<=t.params.offset+t.params.limit,e.next=5;break;case 4:e.prev=4,i=e.catch(1),t.$toast({type:"error",message:i.message});case 5:t.loading=!1,t.loaded=!0;case 6:case"end":return e.stop()}},e,null,[[1,4]])}))()},getHotAticleApi:function(){var t=this;return(0,i.A)(f().mark(function e(){var a;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.$http.get("/article/tag/hot/page/get?limit=3&offset=0&tag=".concat(t.$route.params.keyword));case 1:0===(a=e.sent).error&&(t.hotArticle=a.data);case 2:case"end":return e.stop()}},e)}))()},loadMore:function(){this.loading||this.loadEnd||(this.params.offset+=this.params.limit,this.fetchData())},reachBottom:m()(function(){if(!(window.innerWidth<this.widthLimit)){var t=document.querySelector("html");Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)<350&&this.loadMore()}},100),resize:w()(function(){this.loadingMax=window.innerWidth<768?1:window.innerWidth<880?2:3,this.clientType=this.terminalType,"pc"===this.terminalType&&document&&document.body.clientWidth<=this.widthLimit&&(this.clientType="iPad")})}},k=T;const O=(0,a(14486).A)(k,function(){var t=this,e=t._self._c;return e("div",{staticClass:"tag-page"},[e("div",{staticClass:"head"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.tagInfo.title,expression:"tagInfo.title"}],staticClass:"text"},[t._v("#"+t._s(t.tagInfo.title))])]),e("div",{staticClass:"tag__page__container"},[e("div",{staticClass:"count"},[t._v("\n ç¸å
³æç« "+t._s(t.tagInfo.article_count)+" ç¯\n ")]),e("div",{staticClass:"content"},[e("div",{staticClass:"article"},[t._l(t.articleList,function(a){return e("div",{key:a.id,staticClass:"articleCard"},[e("ss-articleCard",{attrs:{"card-type":t.cardType,"card-obj":a}})],1)}),t._l(t.placeholderCount,function(t){return e("i",{key:t,staticClass:"articleCard"})}),t.loading?t._l(t.loadingMax,function(a){return e("ss-articleCardLoading",{key:a,staticClass:"articleCard",attrs:{"card-type":t.cardType}})}):t._e(),e("SsLoading",{staticClass:"comp__SsLoading",attrs:{"btn-load-visible":!0,loading:t.loading,"load-end":t.loadEnd,"no-data-available":t.loaded&&!t.articleList.length,"no-data-available-text":"ææ æ°æ®","load-end-text":"æ²¡ææ´å¤æ°æ®äº"},on:{click:t.loadMore}})],2),e("div",{staticClass:"right__wrapper"},[e("div",{directives:[{name:"sticky",rawName:"v-sticky",value:{top:24,ignore:[".comp__SsCustomHeader"],validWidth:[t.widthLimit],validHeight:[860]},expression:"{top: 24, ignore: ['.comp__SsCustomHeader'], validWidth: [widthLimit], validHeight: [860]}"}],staticClass:"right"},[e("ss-recommend-tag"),e("HotArticleBlock",{directives:[{name:"show",rawName:"v-show",value:t.hotArticle.length,expression:"hotArticle.length"}],attrs:{lists:t.hotArticle,"terminal-type":t.clientType}})],1)])])])])},[],!1,null,"457374c4",null).exports}}]);
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.