import"./scrollerText.vue_vue_type_style_index_0_scoped_7d906a56_lang-C5dFT_KQ.js";import{_ as l}from"./index-M_JNBppB.js";import{r as m,j as u,B as o,I as d,z as i,D as t,M as p,a7 as _}from"./vue-BJk78QHK.js";const g={key:0,class:"advert-top"},f={class:"marquee-wrap"},x={id:"marquee-box",class:"marquee-box"},q=["id","innerHTML"],B={__name:"scrollerText",props:{message:{type:String,default:""}},setup(n){m("https://img.alicdn.com/tfs/TB1zwftaPrguuRjy0FeXXXcbFXa-16-16.png");const c=()=>{const r=document.getElementById("marquee");if(!r)return;let s=r.getBoundingClientRect().width,e=document.getElementById("marquee-box"),a=0;setInterval(()=>{a--,-a>=s&&(a=10),e&&(e.style.left=`${a}px`)},30)};return u(()=>{setTimeout(()=>{c()},1e3)}),(r,s)=>n.message?(i(),o("div",g,[s[0]||(s[0]=t("div",{class:"ico-horn"},[t("span",{class:"iconfont icon-zizhutuiguang"})],-1)),t("div",f,[t("ul",x,[(i(),o(p,null,_(3,e=>t("li",{id:e==1?"marquee":"",key:e,class:"marquee-list",innerHTML:n.message},null,8,q)),64))])])])):d("",!0)}},T=l(B,[["__scopeId","data-v-7d906a56"]]);export{T as S};
