var ot=Object.defineProperty,it=Object.defineProperties;var lt=Object.getOwnPropertyDescriptors;var Re=Object.getOwnPropertySymbols;var rt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable;var Ne=(i,h,p)=>h in i?ot(i,h,{enumerable:!0,configurable:!0,writable:!0,value:p}):i[h]=p,G=(i,h)=>{for(var p in h||(h={}))rt.call(h,p)&&Ne(i,p,h[p]);if(Re)for(var p of Re(h))ct.call(h,p)&&Ne(i,p,h[p]);return i},V=(i,h)=>it(i,lt(h));var q=(i,h,p)=>new Promise((_,w)=>{var N=A=>{try{y(p.next(A))}catch(U){w(U)}},B=A=>{try{y(p.throw(A))}catch(U){w(U)}},y=A=>A.done?_(A.value):Promise.resolve(A.value).then(N,B);y((p=p.apply(i,h)).next())});import{b as fe,J as he,r,B as se,e as K,f as ye,h as C,o as d,i as n,l as x,t as c,q as T,n as z,j as P,F as Ce,k as we,w as Ae,P as ut,p as Q,Q as $e,R as Oe,S as He,T as Ke,u as Fe,a as dt,d as Ye,x as mt,E as gt,I as Be,U as pt,C as de,m as ne,V as vt,W as ft,X as ht,g as yt,Y as Ct,Z as wt,y as At}from"./index-CDFaeGj6.js";import{_ as Je}from"./no-RFwsBY1n.js";import{L as Ge}from"./LabelFilterX-eZ2mHoZ_.js";import{_ as kt}from"./index-CJoZBq3f.js";import{U as Tt}from"./UserMessagePanel-7JAZvpju.js";import{g as Ee,a as bt}from"./Api-DmXE5Lk5.js";const St="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAdCAYAAAC5UQwxAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAD5SURBVHgB7dYxDoJAEAXQ2Y2Edo/AUeQGtHZsSekJ5AaWlGtnqTfwCh4Bb0Cl0IBDYQLrArMkYCL8ZsIy4YVJmADw72HURqUuoiiKo35eVdUjinYxELOhNuZ5LjjnoX7OGEuxxEAMh5mzgiu4ggsEjbs0Sc4erqxDq5ExgSUw9eM+vWLJmmeu+9pLKTO9t3OXIrDF4gEh2Bu0r+He2dt1o35LXNY3KtrEHOfpm96uFxyDDmGDoA1KwUggBaViZLAPtcGsQBNqi1mDGgplWfr4P5PC1KlRpZSAEWHag0Kw/O4ISXEKpy+wxnBUCiYIjl5+0N8u7zlGOnveaRFkVg+2DTMAAAAASUVORK5CYII=",_t={class:"content-container-two"},xt={class:"left-content-main-left"},Ut={class:"right-content"},It={class:"right-content-top"},Dt={class:"filter-condition"},Lt={class:"right-content-list"},Pt={key:0,class:"no-data"},Rt={class:"no-text"},Nt={class:"no-text-desc"},Bt={key:1,class:"right-content-list-item"},Et=["onClick"],zt={class:"content-img"},$t=["src"],Ot={class:"content-detail"},Ht={class:"author-info"},Kt={class:"ellipsis-1"},Ft={class:"title ellipsis-2"},Yt={key:0,class:"summary ellipsis-1"},Jt={key:1,class:"tag-content"},Gt={class:"item-meta"},Qt={key:2,class:"pagination-container",style:{display:"flex","justify-content":"right","margin-top":"12px"}},jt={__name:"WhitePanel",props:{mainKey:{type:[String,Number],default:""},activeTab:{type:[String,Number],default:""},leftcontent:{type:Array,default:()=>[]},rightContent:{type:Array,default:()=>[]},pageParams:{type:Object,default:()=>{}}},emits:["left-change","open","filterChange"],setup(i,{emit:h}){const{t:p}=fe(),_=i,w=h,N=he(),B=r([]),y=r([]),{calculateRelativeTime:A}=Ke(),U=r("postTime"),S=k=>{U.value=k,w("filterChange",{sort:k})},F=k=>k?A(k):"",j=r("");se(()=>N.query,()=>{j.value=N.query.tagIds||""},{deep:!0}),se(()=>[_.leftcontent,_.rightContent],()=>{B.value=Array.isArray(_.leftcontent)?[..._.leftcontent]:[],y.value=Array.isArray(_.rightContent)?[..._.rightContent]:[]},{immediate:!0,deep:!0});const R=k=>{w("filterChange",{category:k})},I=k=>{w("handleSizeChange",k)},D=k=>{w("handleCurrentChange",k)},$=k=>w("open",k,"white");return(k,l)=>{const W=K("Avatar"),O=K("DisplayTags"),ae=K("el-pagination"),oe=ye("dompurify-html");return d(),C("div",_t,[n("div",xt,[x(Ge,{onFilterChange:R,hasTwoColumns:!0,default:j.value,categoryId:i.activeTab},null,8,["default","categoryId"])]),n("div",Ut,[n("div",It,[n("div",null,c(T(p)("informationCenter.title")),1),n("div",Dt,[n("div",{class:z(["filter-condition-item",{active:U.value==="postScore"}]),onClick:l[0]||(l[0]=m=>S("postScore"))},c(T(p)("hot")),3),n("div",{class:z(["filter-condition-item",{active:U.value==="postTime"}]),onClick:l[1]||(l[1]=m=>S("postTime"))},c(T(p)("latest")),3),n("div",{class:z(["filter-condition-item",{active:U.value==="3"}]),onClick:l[2]||(l[2]=m=>S("3"))},c(T(p)("essence")),3)])]),n("div",Lt,[y.value.length===0?(d(),C("div",Pt,[l[5]||(l[5]=n("img",{src:Je},null,-1)),n("span",Rt,c(T(p)("noMessage.bigTitleOne")),1),n("span",Nt,c(T(p)("noMessage.smallTitleOne")),1)])):(d(),C("div",Bt,[(d(!0),C(Ce,null,we(y.value,m=>{var Y,v,g,H,J,Z;return d(),C("div",{key:m.id,class:"content-item compact",onClick:M=>$(m)},[n("div",zt,[n("img",{src:m.postPictureUrl},null,8,$t)]),n("div",Ot,[n("div",Ht,[x(W,{username:m.authorName,size:"20"},null,8,["username"]),n("span",Kt,c(m.authorName),1)]),n("div",Ft,c(m.title),1),m.summary?Ae((d(),C("div",Yt,null,512)),[[oe,T(ut)(m.summary)]]):P("",!0),(Y=m.topicsList)!=null&&Y.length||(v=m.productCategoryList)!=null&&v.length?(d(),C("div",Jt,[x(O,{tagDefaultOptions:[...m.topicsList||[],...m.productCategoryList||[]],maxVisible:2,svgSize:"12px"},null,8,["tagDefaultOptions"])])):P("",!0),n("div",Gt,[n("span",null,c(F(m.postTime||"")),1),n("span",null,[l[6]||(l[6]=n("img",{src:$e,class:"m-icon"},null,-1)),Q(" "+c(((g=m.likeCount)==null?void 0:g.toLocaleString())||0),1)]),n("span",null,[l[7]||(l[7]=n("img",{src:Oe,class:"m-icon"},null,-1)),Q(" "+c(((H=m.commentCount)==null?void 0:H.toLocaleString())||0),1)]),n("span",null,[l[8]||(l[8]=n("img",{src:He,class:"m-icon"},null,-1)),Q(" "+c(((J=m.viewCount)==null?void 0:J.toLocaleString())||0),1)]),n("span",null,[l[9]||(l[9]=n("img",{src:St,class:"m-icon"},null,-1)),Q(" "+c(((Z=m.downloadCount)==null?void 0:Z.toLocaleString())||0),1)])])])],8,Et)}),128))])),i.pageParams&&i.pageParams.total>0?(d(),C("div",Qt,[x(ae,{"current-page":i.pageParams.current,"onUpdate:currentPage":l[3]||(l[3]=m=>i.pageParams.current=m),"page-size":i.pageParams.size,"onUpdate:pageSize":l[4]||(l[4]=m=>i.pageParams.size=m),"page-sizes":[5,10,20,50],total:i.pageParams.total,layout:"total, sizes, prev, pager, next, jumper","prev-disabled":i.pageParams.current<=1,"next-disabled":i.pageParams.current>=i.pageParams.pages,onSizeChange:I,onCurrentChange:D},null,8,["current-page","page-size","total","prev-disabled","next-disabled"])])):P("",!0)])])])}}},Mt={class:"content-container"},Vt={class:"left-content"},qt={class:"left-content-main"},Wt={class:"left-content-main-left"},Zt={class:"left-content-main-right"},Xt={class:"left-content-main-right-top"},en={class:"filter-condition"},tn={class:"left-content-main-right-bottom"},nn={key:0,class:"no-data"},sn={class:"no-text"},an={class:"no-text-desc"},on={class:"middle-content-list"},ln=["onClick"],rn={class:"middle-content-item-top ellipsis-1"},cn={class:"ellipsis-1 name-width"},un={class:"m-time"},dn={class:"middle-content-item-bottom"},mn={class:"m-left"},gn={class:"m-title ellipsis-1"},pn={key:0,class:"m-content ellipsis-2"},vn={class:"m-footer"},fn={key:0,class:"m-footer-label"},hn={class:"m-icon-item"},yn={class:"m-icon-item"},Cn={class:"m-icon-item"},wn=["src"],An=["src"],kn={key:0,class:"pagination-container",style:{display:"flex","justify-content":"right"}},Tn={class:"right-content"},bn={__name:"CommonPanel",props:{mainKey:{type:[String,Number],default:""},activeTab:{type:[String,Number],default:""},leftcontent:{type:Array,default:()=>[]},middleContent:{type:Array,default:()=>[]},rightContent:{type:Array,default:()=>[]},featuredRecommend:{type:Array,default:()=>[]},relatedProduct:{type:Array,default:()=>[]},personInfo:{type:Object,default:()=>{}},pageParams:{type:Object,default:()=>{}},sortType:{type:String,default:""}},emits:["left-change","open","filterChange"],setup(i,{emit:h}){const p=Fe(),_=dt(()=>p.user),{t:w}=fe(),N=Ye(),B=he(),y=i,A=h,U=r(""),S=r([]),F=r([]),j=r([]),R=r(y.sortType||"postTime");se(()=>B.query,()=>{U.value=B.query.tagIds||""},{immediate:!0,deep:!0}),se(()=>[y.leftcontent,y.middleContent,y.rightContent,y.featuredRecommend,y.sortType],()=>{S.value=Array.isArray(y.leftcontent)?[...y.leftcontent]:[],F.value=Array.isArray(y.middleContent)?[...y.middleContent]:[],j.value=Array.isArray(y.rightContent)?[...y.rightContent]:[],R.value=y.sortType?y.sortType:"postTime"},{immediate:!0,deep:!0});const I=v=>mt.contentImageFileBy192(v),D=v=>{A("filterChange",{category:v})},$=()=>{N.push({path:"/createInformation",query:{from:"informationCenter"}})},{calculateRelativeTime:k}=Ke(),l=v=>v?k(v):"",W=v=>v.replace(/<br>/g,"<br />"),O=v=>{R.value=v,A("filterChange",{sort:v})},ae=v=>{A("open",v)},oe=v=>{A("open",v)},m=v=>{A("handleSizeChange",v)},Y=v=>{A("handleCurrentChange",v)};return(v,g)=>{const H=K("Avatar"),J=K("DisplayTags"),Z=K("el-pagination"),M=ye("dompurify-html");return d(),C("div",Mt,[n("div",Vt,[n("div",qt,[n("div",Wt,[x(Ge,{categoryId:i.activeTab,hasTwoColumns:!0,default:U.value,onFilterChange:D,isTitleVisible:!0},null,8,["categoryId","default"])]),n("div",Zt,[n("div",Xt,[n("div",null,c(T(w)("informationCenter.title")),1),n("div",en,[n("div",{class:z(["filter-condition-item",{active:R.value==="postScore"}]),onClick:g[0]||(g[0]=f=>O("postScore"))},c(T(w)("hot")),3),n("div",{class:z(["filter-condition-item",{active:R.value==="postTime"}]),onClick:g[1]||(g[1]=f=>O("postTime"))},c(T(w)("latest")),3),n("div",{class:z(["filter-condition-item",{active:R.value==="3"}]),onClick:g[2]||(g[2]=f=>O("3"))},c(T(w)("essence")),3)])]),n("div",tn,[F.value.length===0?(d(),C("div",nn,[g[5]||(g[5]=n("img",{src:Je},null,-1)),n("span",sn,c(T(w)("noMessage.bigTitleOne")),1),n("span",an,c(T(w)("noMessage.smallTitleOne")),1)])):P("",!0),n("div",on,[(d(!0),C(Ce,null,we(F.value,(f,me)=>{var re,ce;return d(),C("div",{class:"middle-content-item",onClick:ke=>ae(f),key:f.id},[n("div",rn,[x(H,{username:f.authorName,size:"20"},null,8,["username"]),n("span",cn,c(f.authorName),1),n("span",un,c(l(f.postTime||"")),1)]),n("div",dn,[n("div",mn,[n("div",gn,c(f.title),1),f.summary?Ae((d(),C("div",pn,null,512)),[[M,W(f.summary)]]):P("",!0),n("div",vn,[(re=f.topicsList)!=null&&re.length||(ce=f.productCategoryList)!=null&&ce.length?(d(),C("div",fn,[x(J,{tagDefaultOptions:[...f.topicsList||[],...f.productCategoryList||[]],maxVisible:2,svgSize:"12px"},null,8,["tagDefaultOptions"])])):P("",!0),n("div",hn,[g[6]||(g[6]=n("img",{src:$e,class:"m-icon"},null,-1)),Q(" "+c(f.likeCount||0),1)]),n("div",yn,[g[7]||(g[7]=n("img",{src:Oe,class:"m-icon"},null,-1)),Q(" "+c(f.commentCount||0),1)]),n("div",Cn,[g[8]||(g[8]=n("img",{src:He,class:"m-icon"},null,-1)),Q(" "+c(f.viewCount||0),1)])])]),n("div",null,[f.postPictureUrl?(d(),C("img",{key:0,class:"m-image",src:f.postPictureUrl},null,8,wn)):(d(),C("img",{key:1,class:"m-image",src:I(me)},null,8,An))])])],8,ln)}),128)),i.pageParams&&i.pageParams.total>0?(d(),C("div",kn,[x(Z,{"current-page":i.pageParams.current,"onUpdate:currentPage":g[3]||(g[3]=f=>i.pageParams.current=f),"page-size":i.pageParams.size,"onUpdate:pageSize":g[4]||(g[4]=f=>i.pageParams.size=f),"page-sizes":[5,10,20,50],total:i.pageParams.total,layout:"total, sizes, prev, pager, next, jumper","prev-disabled":i.pageParams.current<=1,"next-disabled":i.pageParams.current>=i.pageParams.pages,onSizeChange:m,onCurrentChange:Y},null,8,["current-page","page-size","total","prev-disabled","next-disabled"])])):P("",!0)])])])])]),n("div",Tn,[x(Tt,{authUserInfo:_.value,featuredRecommend:i.featuredRecommend,relatedProduct:i.relatedProduct,isUserInfo:!0,isNewGuide:!0,isHotUser:!0,isLatestRelease:!0,isFeaturedRecommend:!0,isRelatedProduct:!0,onHandleClick:oe,onCreateArticle:$},null,8,["authUserInfo","featuredRecommend","relatedProduct"])])])}}},ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAjMSURBVHgBlVZpbBTnGX7m3Jm91+caY7x2bNIAiR1w3HKEI7SlSlthAnKBNoWk6ZG0laiUqK3UhtAIlUZVUyk/8oMkdhWiKly2lJbQtMSmThNCoHZsAsQG38fa672v2Tn77iKjJk2h/aTd/WZm572+532el8H/sN548cmNgVJPS1BlNrzS2RWQZJs3FElh88rPxWpK2D5TNz68PpvtfOrQke7b2WJu9fDRhx7YW+wU9y+rtQdExUIinkVCdGMinEDZohKEx65j+9b18PtKcO7SOE73nB/dt2PTgeZvH2r/vxy2/XpnYP7adEfzivrG2lIvNAHQ0griKQXTc1FMJy2cuTaOIy88h+nJfrCWiLSSwckTPfj8qhpIDufo83/7aFNne+fop22zn77x3pGf73ErSu9X165qrKj2QnFIyPAiTIGDzyugZpEHPl6lF71o3fcLVBUvhqLnwLAaNqxdjnRGQbFHDpx4/sne/guvt9zS4VT/6y2zg0Pt9TWLvbxbBCQXGFGEqGnQ6ZPNqjAMC163CxXFCXSPath98BUE/KVwSD74PC4svetOSGUVGBse9rp4vUOd69rzmQ6jM28GBt7ubv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YMzGFIDcsAYhb1hUtOaRsyC+ZO65kfa/93+Z46JI70dARNal2VZgbx05VnQJMpnaE9fhZdM88a1lb+fh2ZeEWhvkVPa9/Eas22hjLd1eDPbi0f3Mqy1n3g3YDE3BIahC454kZANgzgy/2uSEOOG81EaTg4sXdXa/t9s3tLhwhrqPbbRymVaoGYas8lMg5rOenUqt81mixFxjNG80s3Y2c761Y93387WvwDrbgSpmU7g4AAAAABJRU5ErkJggg==",Sn="/assets/bg-moke-Dhity4YR.png",_n={class:"information-home"},xn={key:0,class:"left-carousel"},Un={class:"overlay-caurse-content"},In={key:0,class:"title"},Dn={class:"desc-tooltip"},Ln={class:"desc ellipsis-2"},Pn={key:2,class:"btn ellipsis-1"},Rn={key:0,class:"overlay-caurse-right"},Nn=["src"],Bn={class:"chart-info"},En=["onClick"],zn={class:"iconfont icon-youjiantou"},$n={class:"iconfont icon-zuojiantou"},ve="sus_login_tip_at:information_list",Qn={__name:"index",setup(i){const{t:h,locale:p}=fe(),_=Ye(),w=he(),N=yt(),B=r(!1),y=r(w.query.q||""),A=Fe(),U=r(null),S=r(null),F=r(!1),j=r(!1),R=r(""),I=r(""),D=r({current:1,size:10,total:0,pages:0}),$=r([{label:"informationCenter.panel1Title",name:"siemensCertifiedInformation",value:"瑗块棬瀛愯璇佽祫璁�",categoryName:"瑗块棬瀛愯璇佽祫璁疭US",key:1},{label:"informationCenter.panel3Title",name:"productRelease",categoryName:"楂樿川閲忓嚭娴稴US",value:"楂樿川閲忓嚭娴�",key:2},{label:"informationCenter.panel2Title",name:"news",categoryName:"缁胯壊宸ュ巶SUS",value:"缁胯壊宸ュ巶",key:3},{label:"informationCenter.panel4Title",name:"text4",categoryName:"鎶曡瀺璧凷US",value:"鎶曡瀺璧�",key:4},{label:"informationCenter.panel5Title",name:"text3",categoryName:"鏀跨瓥瑙hSUS",value:"鏀跨瓥瑙h",key:5},{label:"informationCenter.panel6Title",name:"text2",categoryName:"瀹㈡埛妗堜緥SUS",value:"瀹㈡埛妗堜緥",key:6},{label:"informationCenter.panel7Title",name:"text1",categoryName:"浜у搧涓庤В鍐虫柟妗圫US",value:"浜у搧涓庤В鍐虫柟妗堜粙缁�",key:7},{label:"informationCenter.panel8Title",name:"industryInsight",categoryName:"琛屼笟娲炲療鐧界毊涔US",value:"琛屼笟娲炲療/鐧界毊涔�",key:8}]),k=r({label:"profile.all",name:"all",categoryName:"鍏ㄩ儴",value:"鍏ㄩ儴",key:""}),l=r("");se(A.categoryList,()=>{var t;let e=((t=A.categoryList)==null?void 0:t.filter(s=>s.categoryName==="璧勮涓績SUS"))||[];if(e!=null&&e.length){I.value=e[0].id,k.value.key=e[0].id;let s=$.value.map(o=>{let a=e[0].subList.find(L=>L.categoryName===o.categoryName);return V(G({},o),{key:(a==null?void 0:a.id)||o.key})});$.value=s,l.value=k.value.key,R.value=k.value.value}},{deep:!0,immediate:!0});const W=r([]),O=r([]),ae=r([]),oe=r(1),m=r(0),Y=r([]),v=r([]),g=r("postTime"),H=r([]),J=r([]),Z=r({}),M=new Map,f=e=>{const t=Date.now();return(e||[]).filter(s=>{if(s!=null&&s.releaseTime){const o=new Date(s.releaseTime.replace(/-/g,"/")).getTime();if(isNaN(o)||t<o)return!1}if(s!=null&&s.downTime){const o=new Date(s.downTime.replace(/-/g,"/")).getTime();if(isNaN(o)||t>=o)return!1}return!0})},me=()=>{const e=_.resolve({path:"/contactUs",query:{view_source:w.name,view_source_name:h(`${w.meta.titleKey}`)}}).href;window.open(e,"_blank")},re=(e,t,s=2)=>{const o=`${e}_${t}_${s}`;if(M.has(o))return M.get(o);if(!e)return!0;const a=document.createElement("div");a.style.position="absolute",a.style.visibility="hidden",a.style.zIndex="-1",a.style.top="0",a.style.left="0",a.style.padding="0",a.style.margin="0",a.style.border="none",a.style.width=t+"px",a.style.lineHeight="normal",a.style.fontSize="16px",a.style.fontFamily="inherit",a.style.wordBreak="break-word",a.style.whiteSpace="normal",a.style.wordWrap="break-word",a.style.display="-webkit-box",a.style.webkitBoxOrient="vertical",a.style.webkitLineClamp=s.toString(),a.style.overflow="hidden",a.textContent=e,document.body.appendChild(a);const E=(parseFloat(getComputedStyle(a).lineHeight)||21)*s,u=a.scrollHeight>E;return document.body.removeChild(a),M.set(o,!u),!u},ce=()=>q(null,null,function*(){const e=yield At();return(e==null?void 0:e.code)===200&&(e!=null&&e.data)?e.data.accessToken:""}),ke=e=>e.descInfo?re(e.descInfo,440,2):!0,Qe=["https://uat.siemens-x.com.cn/x-sus-web/activityList","https://uat.siemens-x.com.cn/x-sus-web/marketing","https://uat.siemens-x.com.cn/x-sus-web/informationCenter","https://uat.siemens-x.com.cn/x-sus-web/detail","https://uat.siemens-x.com.cn/x-sus-web/productOrSolution","https://uat.siemens-x.com.cn/x-sus-web/partners","https://uat.siemens-x.com.cn/x-sus-web/trainingCourse","https://uat.siemens-x.com.cn/x-sus-web/trainingCourseDetail","https://sus.siemens-x.com.cn/activityList","https://sus.siemens-x.com.cn/marketing","https://sus.siemens-x.com.cn/informationCenter","https://sus.siemens-x.com.cn/detail","https://sus.siemens-x.com.cn/productOrSolution","https://sus.siemens-x.com.cn/partners","https://sus.siemens-x.com.cn/trainingCourse","https://sus.siemens-x.com.cn/trainingCourseDetail","http://sus.siemens-x.com.cn","https://uat.siemens-x.com.cn/x-sus-web","http://sus.siemens-x.com.cn/","https://uat.siemens-x.com.cn/x-sus-web/"],je=e=>{if(!e)return!0;try{const t=new URL(e);return!Qe.some(s=>t.href.includes(s)||t.origin.includes(s))}catch(t){return console.warn("URL瑙f瀽澶辫触锛岄粯璁ら渶瑕佺櫥褰�:",e),!0}},Me=e=>q(null,null,function*(){const t="https://www.siemens-x.com.cn";let s="",o=A.getToken(),a="",L=!1;if(e.linkType==="custom"&&(a=JSON.parse(e.linkDetail).pcUrl,L=je(a)),!o&&(e.linkType==="product"||e.linkType==="activity"||e.linkType==="shop"||e.linkType==="custom"&&L)){A.loginDialog("2");return}switch(o&&(o=yield ce()),e.linkType){case"product":{s=o?`${t}/offering/${e.linkDetail}?accessToken=${o}`:`${t}/offering/${e.linkDetail}`;break}case"activity":{s=o?`${t}/event-detail?eventId=${e.linkDetail}&accessToken=${o}`:`${t}/event-detail?eventId=${e.linkDetail}`;break}case"shop":{s=o?`${t}/store/shop/${e.linkDetail}?accessToken=${o}`:`${t}/store/shop/${e.linkDetail}`;break}case"custom":{const E=JSON.parse(e.linkDetail).pcUrl;let u=E?new URL(E):"";o&&u&&u.searchParams.set("accessToken",o),s=(u==null?void 0:u.toString())||"";break}case"content":{s=_.resolve({path:"/detail",query:{id:e.linkDetail,tab:l.value}}).href;break}default:{s=_.resolve({path:"/trainingCourseDetail",query:{id:e.linkDetail}}).href;break}}s&&window.open(s,"_blank")}),Ve=()=>q(null,null,function*(){var o;let e=$.value.find(a=>a.key===l.value);if((e==null?void 0:e.name)==="industryInsight")return;let t=l.value?[l.value]:[];!(t!=null&&t.length)&&I.value&&(t=[I.value]);const s=yield Ee({pageNo:1,keyword:"",pageSize:5,postContentType:"",categorys:t,sortType:"postScore"});s.code==="200"&&(Y.value=((o=s.data.list)==null?void 0:o.map(a=>V(G({},a),{postPictureUrl:a.postPictureUrl?`${N}/${a.postPictureUrl}`:"",image:Sn,author:ze})))||[])}),qe=()=>q(null,null,function*(){var t;const e=yield ht({business:"content","category-id":I.value});if(e.code===200){const s=((t=e.data)==null?void 0:t.map(o=>V(G({},o),{image:o.pcImg?`${N}/${o.pcImg}`:""})))||[];J.value=f(s).slice(0,5)}}),We=(e,t)=>{if(!(e!=null&&e.length))return[];const s=[],o=e.splice(0,t*3);for(let a=0;a<o.length;a+=t)s.push({id:a+1,list:o.slice(a,a+t)});return s},Ze=()=>q(null,null,function*(){var t;if(R.value==="琛屼笟娲炲療/鐧界毊涔�")return;const e=yield bt({page:{pageNum:1,pageSize:15},x_key_word:"纰�",x_topics:"",x_verticals_markets:""});if(e.code===200){let s=((t=e.data.list)==null?void 0:t.map(o=>{let a=o.imageUrl||"";return a.startsWith("/")&&(a=a.substring(1)),V(G({},o),{imageUrl:`${N}/${a}`})}))||[];v.value=We(s,5)}}),Te=e=>{D.value.size=e,D.value.current=1,ue()},be=e=>{D.value.current=e,ue()},ue=(e=1)=>q(null,null,function*(){var o,a,L,E,u,te,pe;e&&(oe.value=e);let t=l.value?[l.value]:[];!(t!=null&&t.length)&&I.value&&(t=[I.value]);const s=yield Ee({pageNo:D.value.current,keyword:"",pageSize:D.value.size,topicsCategorys:((a=(o=H.value)==null?void 0:o.filter(b=>b.tagType===2))==null?void 0:a.map(b=>b.id))||[],productCategorys:((E=(L=H.value)==null?void 0:L.filter(b=>b.tagType===1))==null?void 0:E.map(b=>b.id))||[],tags:((te=(u=H.value)==null?void 0:u.filter(b=>b.tagType!==1&&b.tagType!==2))==null?void 0:te.map(b=>b.id))||[],postContentType:"",categorys:t,sortType:g.value==="3"?"postScore":g.value});s.code==="200"&&(m.value=s.data.total,D.value=V(G({},D.value),{total:s.data.total}),O.value=((pe=s.data.list)==null?void 0:pe.map(b=>V(G({},b),{postPictureUrl:b.postPictureUrl&&!b.postPictureUrl.startsWith("https://")?`${N}/${b.postPictureUrl}`:b.postPictureUrl,author:ze})))||[])}),Se=e=>{l.value=e==null?void 0:e.key,R.value=e==null?void 0:e.value;let t=new URL(window.location.href);t.searchParams.delete("tagIds"),t.searchParams.delete("tab"),window.history.replaceState(window.history.state,"",t.href),g.value="postTime",_e()},_e=()=>{B.value=!0,Promise.allSettled([ue(1),Ve(),Ze()]).then(()=>{}).finally(()=>{B.value=!1,at()})},xe=e=>{const t=typeof e=="string"?e:(e==null?void 0:e.label)||(e==null?void 0:e.name)||"";t&&(y.value=t)},Ue=(e,t="")=>{if(!e.id)return;let s={id:e.id,tab:l.value};t&&(s.type=t),_.push({name:"detail",query:s})},Xe=e=>{if(!e)return;const t=typeof e=="string"?e:e.label||e.title||"";y.value=t},Ie=e=>{const t=G({},w.query);e.category&&(t.category=e.category||void 0,H.value=t.category||[]),e.sort&&(t.sort=e.sort||"postScore",g.value=e.sort||"postScore"),Object.keys(t).forEach(s=>{t[s]===void 0&&delete t[s]}),ue(1)},X=()=>{if(!S.value||!U.value)return;const e=S.value,t=e.scrollWidth>e.clientWidth,s=e.scrollLeft,o=e.scrollWidth-e.clientWidth;F.value=t&&s>0,j.value=t&&s<o},et=()=>{if(!S.value)return;const e=S.value,t=300;e.scrollLeft+=t,setTimeout(X,100)},tt=()=>{if(!S.value)return;const e=S.value,t=300;e.scrollLeft-=t,setTimeout(X,100)},De=()=>{X()};let ie=null;const Le=()=>{ie&&clearTimeout(ie),ie=setTimeout(()=>{X()},150)};gt(()=>{if(w.query.tab){const e=Number(w.query.tab);$.value.find(s=>s.key===e)?l.value=e:l.value=I.value}qe(),_e(l.value),Be(()=>{S.value&&(S.value.addEventListener("scroll",De),X())}),window.addEventListener("resize",Le)}),se(p,()=>{Be(()=>{setTimeout(X,200)})}),pt(()=>{M.clear(),S.value&&S.value.removeEventListener("scroll",De),window.removeEventListener("resize",Le),ie&&clearTimeout(ie),window.removeEventListener("scroll",ge)});const ee=r(!1),le=r(!1),nt=()=>{ee.value=!1,localStorage.setItem(ve,Date.now().toString())},st=()=>{ee.value=!1,localStorage.setItem(ve,Date.now().toString()),A.loginDialog("1")},Pe=()=>{const e=localStorage.getItem(ve);if(!e)return!0;const t=Date.now(),s=parseInt(e),o=1440*60*1e3;return t-s>o},ge=()=>{var L;if(le.value||(L=A.user)!=null&&L.userId)return;const e=window.scrollY,t=window.innerHeight,s=document.documentElement.scrollHeight,o=s<=t,a=e>=s*.4;(o||a)&&(Pe()?(ee.value=!0,le.value=!0):window.removeEventListener("scroll",ge))},at=()=>{var o;if(ee.value=!1,le.value=!1,!Pe())return;const e=document.documentElement.scrollHeight,t=window.innerHeight,s=e<=t;!((o=A.user)!=null&&o.userId)&&!le.value&&(s?(ee.value=!0,le.value=!0):window.addEventListener("scroll",ge))};return(e,t)=>{var E;const s=K("el-tooltip"),o=K("el-button"),a=K("el-icon"),L=ye("loading");return Ae((d(),C("div",_n,[(E=J.value)!=null&&E.length?(d(),C("div",xn,[x(vt,{items:J.value,"use-background":!1,"show-overlay":!0,"show-indicator-titles":!1,height:"412px","indicator-position":"inside"},{default:ne(({item:u,index:te})=>[n("div",Un,[(d(),C("div",{class:"carousel-desc",key:te},[u.title?(d(),C("div",In,c(u.title),1)):P("",!0),u.descInfo?(d(),de(s,{key:1,"show-arrow":!1,disabled:ke(u),effect:"customized","popper-class":"tootip-info-desc",placement:"top"},{content:ne(()=>[n("div",Dn,c(u.descInfo),1)]),default:ne(()=>[n("div",Ln,c(u.descInfo),1)]),_:2},1032,["disabled"])):P("",!0),u.btnName?(d(),C("div",Pn,[x(o,{type:"primary",size:"large",class:"join-btn ellipsis-1",onClick:pe=>Me(u)},{default:ne(()=>[Q(c(u.btnName||T(h)("joinNow")),1)]),_:2},1032,["onClick"])])):P("",!0)])),u.image?(d(),C("div",Rn,[n("img",{src:u.image},null,8,Nn)])):P("",!0)])]),_:1},8,["items"])])):P("",!0),n("div",Bn,[n("div",null,c(T(h)("home.anchorObj.desc1")),1),n("div",{class:"btn-chart",onClick:me},[t[1]||(t[1]=n("img",{src:ft},null,-1)),n("span",null,c(T(h)("home.anchorObj.eight")),1)])]),n("div",{class:"tab-row",ref_key:"tabRowRef",ref:U},[n("div",{class:"tab-container",ref_key:"tabContainerRef",ref:S},[n("div",{class:z(["tab-item",{"active-tab":l.value===k.value.key}]),onClick:t[0]||(t[0]=u=>Se(k.value))},c(T(h)("profile.all")),3),(d(!0),C(Ce,null,we($.value,u=>(d(),C("div",{class:z(["tab-item",{"active-tab":u.key===l.value}]),key:u.name,onClick:te=>Se(u)},c(T(h)(u.label)),11,En))),128))],512),n("div",{class:z(["right-arrow",{show:j.value}]),onClick:et},[n("i",zn,[x(a,null,{default:ne(()=>[x(T(Ct))]),_:1})])],2),n("div",{class:z(["left-arrow",{show:F.value}]),onClick:tt},[n("i",$n,[x(a,null,{default:ne(()=>[x(T(wt))]),_:1})])],2)],512),R.value==="琛屼笟娲炲療/鐧界毊涔�"?(d(),de(jt,{key:1,mainKey:I.value,activeTab:l.value,leftcontent:W.value,rightContent:O.value,featuredRecommend:Y.value,initialKeyword:T(w).query.q||"",pageParams:D.value,onLeftChange:xe,onOpen:Ue,onFilterChange:Ie,onHandleSizeChange:Te,onHandleCurrentChange:be},null,8,["mainKey","activeTab","leftcontent","rightContent","featuredRecommend","initialKeyword","pageParams"])):(d(),de(bn,{key:2,sortType:g.value,mainKey:I.value,activeTab:l.value,leftContent:W.value,rightContent:ae.value,middleContent:O.value,featuredRecommend:Y.value,personInfo:Z.value,relatedProduct:v.value,initialKeyword:T(w).query.q||"",pageParams:D.value,onLeftChange:xe,onOpen:Ue,onSelect:Xe,onFilterChange:Ie,onHandleSizeChange:Te,onHandleCurrentChange:be},null,8,["sortType","mainKey","activeTab","leftContent","rightContent","middleContent","featuredRecommend","personInfo","relatedProduct","initialKeyword","pageParams"])),ee.value?(d(),de(kt,{key:3,onClose:nt,onLogin:st,message:e.$t("informationCenter.loginTipMessage")},null,8,["message"])):P("",!0)])),[[L,B.value]])}}};export{Qn as default};