import{d as n,r as s,o as i,c as r,_ as c}from"./index.3718c0a8.js";import{a as p,S as l}from"./index.7077e759.js";import{r as u}from"./request.a45d1be5.js";import{T as m}from"./index.ef83260a.js";const f="_swiper_ey2je_1",y={swiper:f};function b(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}const j=n({name:"banner",setup(){const t=s([]),a=async()=>{try{const{data:e}=await u.get("/api-website/open/banner/list");e&&Array.isArray(e)&&(t.value=e)}catch{}};return i(()=>{a()}),()=>{let e;return r(l,{class:y.swiper,autoplay:3e3},b(e=t.value.map(o=>r(p,null,{default:()=>[r(m,{src:o.coverImage,objectFit:"cover"},null)]})))?e:{default:()=>[e]})}}});export{j as B};
