!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.a0,d=t.a1,f=t.D},t=>{y=t.M},t=>{h=t.M},t=>{g=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,page:1,rows:20}}),v=function(){var t,i=(t=function*(){try{if(r.isClick)return;r.isClick=!0;const t=yield f.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)}}(),j=t=>{r.params.keyword=t,r.params.page=1,r.list=[],r.listState.dataShow=!0,r.listState.loading=!1,r.listState.finished=!1,v()};return s((()=>{v()})),()=>{let e;return c("div",{class:[g.helpCenter,!r.listState.dataShow&&"emptyRootContainer"]},["ANALYSIS"==t.query.platformType?null:c(h,{position:"top"},{default:()=>[c(u,{border:!1},null),c(y,{onSearch:j},null)]}),r.listState.dataShow?c(S,{finished:r.listState.finished,finishedText:" ",class:g.container,onLoad:v,immediateCheck:!1},(n=e=r.list.map((t=>c(b,{titleClass:[g.title,"van-ellipsis"],title:t.title,isLink:!0,onClick:()=>{i.push({path:"help-detail",query:{id:t.id}})}},null))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!d(n)?e:{default:()=>[e]})):c("div",{style:{height:"calc(100vh - var(--header-height))"}},[c(p,{description:"暂无数据"},null)])]);var n}}}))}}}))}();