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-unOD6nfS.js";import{u as j,l as b,a6 as M,i as w}from"./common-utils-8H8K2JPG.js";import{_ as C,b as q,u as S,aj as N}from"./common-store-e_1WBubm.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=C({__name:"Notice",setup(k){const{t:C}=e(),F=q(),G=t(),H=a(),{theme:J}=j(),O=S(),U=o([]);s((async()=>{await(async()=>{var e;if(!w())return;const t=await N({isMarquee:1,pageNo:1,pageSize:10});U.value=(null==(e=t.data)?void 0:e.records)||[]})()}));const B=()=>{if(!w())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(w)()}]])},[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(!w())return G.push("/login");G.push({path:"/messageCenter/detail",query:{id:1,item:JSON.stringify(e),from:H.path}})})(e)},p(c(M)(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(C)("详情")),1),m(_,{name:"homeModel1-caret-right"})])):(n(),i("div",{key:3,class:"right",onClick:B},[m(_,{name:"homeModel1-noticeRightSvg"}),u("p",null,p(c(C)("查看更多")),1)]))],64))],2)}}},[["__scopeId","data-v-f3053ed8"],["__file","Notice.vue"]]);export{F as default};
