import{_ as a,bx as t,Z as e,d as i,e as s,h as l,al as r,f as n,k as o,a7 as d,an as c,g as p,t as m,v as g}from"./index.286e9b79.js";import{E as y}from"./image-viewer.b538fe01.js";import"./debounce.caafe00b.js";import"./index.ed3ed02e.js";import"./position.1bd00850.js";import"./scroll.a50153b5.js";const b=a=>(m("data-v-ada697bd"),a=a(),g(),a),h={class:"banner-item-cover"},_=b((()=>l("div",{slot:"error",class:"image-slot"},[l("i",{class:"image-icon le-icon le-icon-morentupian"})],-1))),u=[b((()=>l("span",null,"1/3",-1)))],v=a({__name:"widget",props:{data:{type:[Object,Array],default:{}}},setup(a){const m=t.base_url.replace("/adminapi",""),g=a,b=e((()=>1==g.data.chamfer_style?0:10));return(a,t)=>{const e=y;return i(),s("div",{class:"banner",style:r({height:g.data.height+"px"})},[l("div",{class:d(["banner-item-photo",{corner:2==g.data.chamfer_style}])},[l("div",{class:"banner-item-image",style:r({height:g.data.height+"px"})},[l("div",h,[n(e,{style:r([{width:"100%",height:"100%"},{height:g.data.height+"px"}]),src:(v=g.data.list,null!=v[0]?v[0].image:m+"/static/images/menu/empty.png"),fit:"fill"},{default:o((()=>[_])),_:1},8,["style","src"])])],4)],2),l("div",{class:"pointer",style:r({"margin-bottom":p(b)+"px","margin-left":p(b)/2+"px"})},[g.data.indicator_style<3?(i(),s("div",{key:0,class:d(["pointer-content",{circle:1==g.data.indicator_style,strip:2==g.data.indicator_style}]),style:r({"text-align":g.data.indicator_align})},[l("span",{class:"pointer-item active",style:r({"background-color":g.data.indicator_active_color})},null,4),l("span",{class:"pointer-item",style:r({"background-color":g.data.indicator_color})},null,4),l("span",{class:"pointer-item",style:r({"background-color":g.data.indicator_color})},null,4)],6)):c("",!0),3==g.data.indicator_style?(i(),s("div",{key:1,class:"pointer-text",style:r({"text-align":g.data.indicator_align})},u,4)):c("",!0)],4)],4);var v}}},[["__scopeId","data-v-ada697bd"]]);export{v as default};
