"use strict";var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,n=(t,r,a)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[r]=a;const p=require("../../../../../common/vendor.js"),s=require("../../index.js");if(!Array){p.resolveComponent("su-swiper")()}Math;const l={__name:"s-image-banner",props:{data:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(e){const l=e,c=p.computed((()=>l.data.items.map((e=>{const p="img"===e.type?e.imgUrl:e.videoUrl;return l=((e,t)=>{for(var r in t||(t={}))o.call(t,r)&&n(e,r,t[r]);if(a)for(var r of a(t))i.call(t,r)&&n(e,r,t[r]);return e})({},e),c={type:"img"===e.type?"image":"video",src:s.sheep.$url.cdn(p),poster:s.sheep.$url.cdn(e.imgUrl)},t(l,r(c));var l,c}))));return(t,r)=>({a:p.p({list:c.value,dotStyle:"dot"===e.data.indicator?"long":"tag",imageMode:"scaleToFill",dotCur:"bg-mask-40",seizeHeight:300,autoplay:e.data.autoplay,interval:1e3*e.data.interval,mode:e.data.type})})}};wx.createComponent(l);