System.register(["./index-legacy.eb062188.js","./index-legacy.a530d593.js","./index-legacy.ad813f4d.js","./index.module-legacy.cb3327fe.js","./index-legacy.fad72574.js","./index-legacy.918b8c74.js","./index-legacy.3a3e070a.js","./use-tab-status-legacy.91417466.js"],(function(t){"use strict";var e,a,i,n,s,l,c,o,r,d,u,f,p,g,m,y,S;return{setters:[function(t){e=t.d,a=t.ag,i=t.r,n=t.$,s=t.c,l=t.aj,c=t.F,o=t.ai,r=t.ak,d=t.al,u=t.m,f=t.g},function(t){p=t.O},function(t){g=t.O},function(t){m=t.s},function(t){y=t.L},function(t){S=t.C},function(){},function(){}],execute:function(){t("default",e({name:"help-center",setup(){const t=a(),e=i({isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,status:!0,type:"HOT_CONSULTATION",page:1,rows:20}}),h=async()=>{try{if(e.isClick)return;e.isClick=!0;const t=await u.post(f.platformApi+"/sysNewsInformation/page",{data:{...e.params,catalogType:f.platformType}});e.listState.loading=!1;const a=t.data||{};if(e.list.length>0&&1===a.current)return;e.list=e.list.concat(a.rows||[]),e.listState.finished=a.current>=a.pages,e.params.page=a.current+1,e.listState.dataShow=e.list.length>0,e.isClick=!1}catch{e.listState.dataShow=!1,e.listState.finished=!0,e.isClick=!1}},w=t=>{e.params.keyword=t,e.params.page=1,e.list=[],e.listState.dataShow=!0,e.listState.loading=!1,e.listState.finished=!1,h()};return n((()=>{h()})),()=>{let a;return s("div",{class:[m.helpCenter,!e.listState.dataShow&&"emptyRootContainer"]},[s(g,{position:"top"},{default:()=>[s(l,{border:!1},null),s(p,{onSearch:w},null)]}),e.listState.dataShow?s(y,{finished:e.listState.finished,finishedText:" ",class:[m.container,m.containerInformation],onLoad:h,immediateCheck:!1},(i=a=e.list.map((e=>s(S,{class:m.cell,onClick:()=>(e=>{"OUT"===e.linkType?window.location.href=e.linkUrl:t.push({path:"/information-detail",query:{id:e.id}})})(e),titleStyle:{display:"flex",flexDirection:"column",justifyContent:"space-between"}},{icon:()=>s("div",{class:[m.img,m.bgImg],style:e.coverImage?{backgroundImage:`url(${e.coverImage})`,backgroundSize:"cover"}:""},null),title:()=>s(c,null,[s("div",{class:[m.title,"van-ellipsis"]},[e.title]),s("div",{class:[m.content,"van-multi-ellipsis--l2"]},[e.summary]),s("div",{class:m.time},[e.createTime?o(e.createTime).format("YYYY年MM月DD日"):""])])}))),"function"==typeof i||"[object Object]"===Object.prototype.toString.call(i)&&!d(i)?a:{default:()=>[a]})):s(r,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无数据"},null)]);var i}}}))}}}));