import{d as n,r as s,D as i,c as r,Y as c}from"./index.fdb8061e.js";import{a as p,S as l}from"./index.baa7e1bd.js";import{r as u}from"./request.08b2dc2e.js";import{T as m}from"./index.a02fe9ea.js";const f="_swiper_hyobf_1",y={swiper:f};function b(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:y.swiper,autoplay:3e3},b(e=t.value.map(o=>r(p,null,{default:()=>[r(m,{src:o.coverImage},null)]})))?e:{default:()=>[e]})}}});export{_ as B};
