import{d as n,r as s,o as i,c as r,_ as c}from"./index.ce3b9611.js";import{a as p,S as l}from"./index.2d008658.js";import{r as u}from"./request.41580fd8.js";import{T as m}from"./index.a63a39cc.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 S=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{S as B};
