!function(){function t(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function e(e){for(var n=1;n{r=t.d,a=t.U,l=t.q,o=t.x,s=t.y,c=t.a,u=t.S,p=t.F,d=t.a4,f=t.a0,y=t.a1,g=t.D},t=>{m=t.M},t=>{h=t.M},t=>{v=t.s},t=>{S=t.L},t=>{b=t.C},null,null,null],execute:function(){t("default",r({name:"help-center",setup(){const t=a(),i=l(),r=o({isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,status:!0,type:"HOT_CONSULTATION",page:1,rows:20}}),j=function(){var t,i=(t=function*(){try{if(r.isClick)return;r.isClick=!0;const t=yield g.post("/edu-app/open/helpCenterContent/page",{data:e(e({},r.params),{},{catalogType:"STUDENT"})});r.listState.loading=!1;const i=t.data||{};if(r.list.length>0&&1===i.current)return;r.list=r.list.concat(i.rows||[]),r.listState.finished=i.current>=i.pages,r.params.page=i.current+1,r.listState.dataShow=r.list.length>0,r.isClick=!1}catch(t){r.listState.dataShow=!1,r.listState.finished=!0,r.isClick=!1}},function(){var e=this,i=arguments;return new Promise((function(r,a){var l=t.apply(e,i);function o(t){n(l,r,a,o,s,"next",t)}function s(t){n(l,r,a,o,s,"throw",t)}o(void 0)}))});return function(){return i.apply(this,arguments)}}(),w=t=>{r.params.keyword=t,r.params.page=1,r.list=[],r.listState.dataShow=!0,r.listState.loading=!1,r.listState.finished=!1,j()};return s((()=>{j()})),()=>{let e;return c("div",{class:[v.helpCenter,!r.listState.dataShow&&"emptyRootContainer"]},[c(h,{position:"top"},{default:()=>[c(u,{border:!1,isBack:"ANALYSIS"!=t.query.platformType},null),c(m,{onSearch:w},null)]}),r.listState.dataShow?c(S,{finished:r.listState.finished,finishedText:" ",class:[v.container,v.containerInformation],onLoad:j,immediateCheck:!1},(n=e=r.list.map((t=>c(b,{class:v.cell,onClick:()=>(t=>{"OUT"===t.linkType?window.location.href=t.linkUrl:i.push({path:"/information-detail",query:{id:t.id}})})(t),titleStyle:{display:"flex",flexDirection:"column",justifyContent:"space-between"}},{icon:()=>c("div",{class:[v.img,v.bgImg],style:t.coverImage?{backgroundImage:`url(${t.coverImage})`,backgroundSize:"cover"}:""},null),title:()=>c(p,null,[c("div",{class:[v.title,"van-ellipsis"]},[t.title]),c("div",{class:[v.content,"van-multi-ellipsis--l2"]},[t.summary]),c("div",{class:v.time},[t.createTime?d(t.createTime).format("YYYY年MM月DD日"):""])])}))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!y(n)?e:{default:()=>[e]})):c(f,{description:"暂无数据"},null)]);var n}}}))}}}))}();