(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-df14cbb0"],{"04f5":function(t,e,a){"use strict";a("09ac")},"09ac":function(t,e,a){},"641e":function(t,e,a){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"nav-bar",class:{"nav-bar-with-banner":t.finalShowAdsBanner}},[e("button",{staticClass:"nav-back-btn",on:{click:t.goBack}}),t.title?e("div",{staticClass:"nav-title"},[t._v(t._s(t.title))]):t._e()])},s=[],o=a("2f62"),n={name:"NavigationBar",props:{title:String},computed:{...Object(o["c"])(["finalShowAdsBanner"])},methods:{goBack(){this.$router.go(-1)}}},r=n,c=(a("04f5"),a("2877")),d=Object(c["a"])(r,i,s,!1,null,"37c0e14c",null);e["a"]=d.exports},"9f8b":function(t,e,a){},b837:function(t,e,a){"use strict";a("9f8b")},eb78:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-container"},[e("navigation-bar",{attrs:{title:t.$route.query.title}}),e("div",{staticClass:"field-theme-list"},[t._l(t.data,(function(a){return e("theme-item",{key:a.productId,staticClass:"field-theme-item",attrs:{data:a,"page-id":t.pageId}})})),t._l(t.emptyData,(function(a){return e("empty-item",{key:a.productId,staticClass:"field-theme-item",attrs:{info:t.$t("emptyInfo")}})}))],2),e("div",{staticClass:"footer"},[t.isLoading?e("div",{staticClass:"loading"}):t._e()]),e("back-to-top")],1)},s=[],o=(a("c2d8"),a("6d29")),n=a.n(o),r=a("9cbb"),c=a("641e"),d=a("205c"),u=a("46da"),l=a("76cb"),h=a("ed08"),p=a("6039"),g=a("c69e"),m={name:"ThemeList",components:{NavigationBar:c["a"],BackToTop:d["a"],ThemeItem:u["a"],EmptyItem:l["a"]},provide(){return{pageId:this.$route.query.type}},data(){return{order:2,isLoading:!1,isAnimating:!1,page:1,pageSize:10,hasMore:!0,data:[],PAGE_TYPE:r["k"],pageId:this.$route.query.type}},computed:{isTop100Page(){return"topList"===this.$route.name},emptyData(){const t=this.data.length;return t<=3?r["b"].slice(0,3-t):[]}},created(){this.$route.query.id?(this.getInitData(),this.$bus.$on(r["c"].LOGIN,this.getInitData)):this.$router.replace({name:"Voting"})},mounted(){window.addEventListener("scroll",this.loadMore,!1);const t={clientInfo:Object(h["c"])(),contentType:this.$route.query.id,pageId:this.pageId,source:this.$route.query.source||r["n"]||"",trackIds:[this.$route.query.id]};Object(p["b"])(t)},beforeDestroy(){window.removeEventListener("scroll",this.loadMore,!1),this.$bus.$off(r["c"].LOGIN,this.getInitData)},methods:{getInitData(){this.page=1,this.getPageData()},async getPageData(){let t;this.isLoading=!0;const e=this.$route.query.id;try{if(this.isTop100Page){var a;const i={pageIndex:this.page,pageSize:this.pageSize,subjectId:(null===(a=r["s"][r["p"]])||void 0===a?void 0:a[e])||r["s"].SG[e]};t=await Object(g["b"])(i)}else{var i;const a={subjectId:(null===(i=r["s"][r["p"]])||void 0===i?void 0:i[e])||r["s"].SG[e],pageIndex:this.page,pageSize:this.pageSize,order:3};this.isShowOrder&&(a.order=this.order),t=await Object(g["a"])(a)}const{apiCode:s,apiData:o,apiMessage:c}=t;if("0"===s){const t=(null===o||void 0===o?void 0:o.products)||[];this.data=1===this.page?t:this.data.concat(t),this.hasMore=t.length>=this.pageSize}else n()({message:c||"Network Error",duration:3e3})}catch(c){var s,o;n()({message:(null===(s=c.response)||void 0===s||null===(o=s.data)||void 0===o?void 0:o.apiMessage)||c.message||"Network Error",duration:3e3})}this.isLoading=!1},loadMore(){const t=document.documentElement.scrollHeight-window.scrollY-document.documentElement.clientHeight;t<100&&this.hasMore&&!this.isLoading&&this.page<10&&(this.page++,this.getPageData())}}},b=m,v=(a("b837"),a("2877")),f=Object(v["a"])(b,i,s,!1,null,"0151d9d0",null);e["default"]=f.exports}}]);