import{U as e,a4 as t,R as a,r as o,j as s,o as n,b as i,u as c,y as r,I as l,q as m,h as u,F as d,t as p,e as h,n as g,aG as y,ay as f,b8 as v}from"./vendor-jA_NIjzi.js";import{_ as k}from"./notice-left-icon-hWo0eXzd.js";import{S as _}from"./SvgIcon-a1Rg7hQY.js";import{u as j,l as b,a6 as w,i as C}from"./common-utils-RDWuRZ1M.js";import{_ as M,b as q,u as N,aj as S}from"./common-store-kFD1YPwN.js";import"./vendor-crypto-Vtl7-GZS.js";import"./vendor-mqtt-lYGapirz.js";const x={style:{display:"flex",width:"100%",height:"100%"}},I=["src"],A={key:1,src:k,alt:"",class:"left-icon"},R={class:"my-notice-bar-text-content"},z=["onClick"],F=M({__name:"Notice",setup(k){const{t:M}=e(),F=q(),G=t(),H=a(),{theme:J}=j(),O=N(),U=o([]);s((async()=>{await(async()=>{var e;if(!C())return;const t=await S({isMarquee:1,pageNo:1,pageSize:10});U.value=(null==(e=t.data)?void 0:e.records)||[]})()}));const B=()=>{if(!C())return G.push("/login");G.push({path:"/messageCenter",query:{type:1,from:H.path}})};return(e,t)=>{const a=y,o=f,s=v;return n(),i("div",{class:g(["home-notice-container",["home-notice-container-".concat(c(J)),"home-notice-containe-".concat(c(O).homeModel),{nologin:!c(C)()}]])},[c(F).loading?(n(),r(o,{key:0,style:{height:"100%",width:"100%"}},{template:l((()=>[u("div",x,[m(a)])])),_:1})):(n(),i(d,{key:1},[["u8","entertainment"].includes(c(O).homeModel)?(n(),i("img",{key:0,src:c(b)("wgHome/notice-left-icon-".concat(c(J),".png")),alt:"",class:"left-icon"},null,8,I)):(n(),i("img",A)),m(s,{class:"my-notice-bar",scrollable:"",color:"#7A80A1",background:"transparent"},{default:l((()=>[u("div",R,[(n(!0),i(d,null,h(U.value,(e=>(n(),i("p",{key:e.id,onClick:t=>(e=>{if(!C())return G.push("/login");G.push({path:"/messageCenter/detail",query:{id:1,item:JSON.stringify(e),from:H.path}})})(e)},p(c(w)(e.content)),9,z)))),128))])])),_:1}),["u8","entertainment"].includes(c(O).homeModel)?(n(),i("div",{key:2,class:"right",onClick:B},[u("p",null,p(c(M)("详情")),1),m(_,{name:"homeModel1-caret-right"})])):(n(),i("div",{key:3,class:"right",onClick:B},[m(_,{name:"homeModel1-noticeRightSvg"}),u("p",null,p(c(M)("查看更多")),1)]))],64))],2)}}},[["__scopeId","data-v-f3053ed8"],["__file","Notice.vue"]]);export{F as default};
