!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<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function n(t,e,i,n,r,a,l){try{var o=t[a](l),s=o.value}catch(c){return void i(c)}o.done?e(s):Promise.resolve(s).then(n,r)}System.register(["./index-legacy-fdce4919.js","./index-legacy-805cfc13.js","./index-legacy-179fe8dd.js","./index.module-legacy-d96ca674.js","./index-legacy-a55d11b2.js","./index-legacy-f2d9cc85.js","./index-legacy-39907d87.js","./index-legacy-03a60eb4.js","./use-tab-status-legacy-8cf70741.js"],(function(t,i){"use strict";var r,a,l,o,s,c,u,p,d,f,y,g,m,h,S,v,b;return{setters:[t=>{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=>{S=t.s},t=>{v=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:[S.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(v,{finished:r.listState.finished,finishedText:" ",class:[S.container,S.containerInformation],onLoad:j,immediateCheck:!1},(n=e=r.list.map((t=>c(b,{class:S.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:[S.img,S.bgImg],style:t.coverImage?{backgroundImage:`url(${t.coverImage})`,backgroundSize:"cover"}:""},null),title:()=>c(p,null,[c("div",{class:[S.title,"van-ellipsis"]},[t.title]),c("div",{class:[S.content,"van-multi-ellipsis--l2"]},[t.summary]),c("div",{class:S.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}}}))}}}))}();
