import{d as n,r as s,G as i,c as r,Y as c}from"./index.89a1571a.js";import{a as p,S as l}from"./index.f2085033.js";import{r as u}from"./request.859e706d.js";import{T as m}from"./index.b2de28fd.js";const f="_swiper_5ixx8_1",b={swiper:f};function d(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!c(t)}const _=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:b.swiper,autoplay:3e3},d(e=t.value.map(o=>r(p,null,{default:()=>[r(m,{src:o.coverImage,objectFit:"cover"},null)]})))?e:{default:()=>[e]})}}});export{_ as B};
