import{d as k,r as I,s as x,c as f,e,f as a,g as c,n as r,u as b,h,i as l,F as g,j as u,k as p,A as B,_ as C}from"./index.0308b213.js";const $={key:0,class:"top-image-banner"},N={key:0,class:"banner"},V={key:1,class:"top-image-banner2"},F={class:"bg-image2"},S=["src"],T={class:"banner2"},j=["src"],w=k({props:{config:null},setup(n){const i=n;let d=I(0);const y=t=>{d.value=t},v=x(()=>{let t={};return i.config.bgImage&&(t.backgroundImage=`url(${i.config.bgImage})`,t.height=`${i.config.height}px`),t});return(t,z)=>{const m=f("el-carousel-item"),_=f("el-carousel");return n.config.style===0?(e(),a("div",$,[c("div",{class:"bg-image",style:r(b(v))},null,4),n.config.banner.length>0?(e(),a("div",N,[h(_,{height:"200px","indicator-position":"none"},{default:l(()=>[(e(!0),a(g,null,u(n.config.banner,(s,o)=>(e(),p(m,{key:`top-banner-${o}`,class:"carousel-item"},{default:l(()=>[c("div",{class:"banner-image",style:r({"background-image":`url(${s.image})`})},null,4)]),_:2},1024))),128))]),_:1})])):B("",!0)])):(e(),a("div",V,[c("div",F,[(e(!0),a(g,null,u(n.config.banner,(s,o)=>(e(),a("img",{src:s.image2,class:"bg-img",alt:"",key:s.id,style:r({opacity:o===b(d)?1:0})},null,12,S))),128))]),c("div",T,[h(_,{height:"300px !important;","indicator-position":"none",interval:n.config.time*1e3,onChange:y},{default:l(()=>[(e(!0),a(g,null,u(n.config.banner,(s,o)=>(e(),p(m,{key:`top-banner-${o}`,class:"carItem"},{default:l(()=>[c("img",{src:s.image,alt:"",class:"carImg"},null,8,j)]),_:2},1024))),128))]),_:1},8,["interval"])])]))}}});const E=C(w,[["__scopeId","data-v-67537b1d"]]);export{E as default};
