import{a,N as t,f as e}from"./souav-I_ihqEhP.js";import{S as s,a as l,P as i,N as o,A as n}from"./chunk-C68fSiJm.js";import{C as c,r as u,P as r,Q as d,B as m,O as h,H as p,U as f,u as k,V as j,N as v,M as x,S as w,W as g}from"./chunk-BRI0aX6c.js";import"./chunk-D1JGNTfG.js";import"./chunk-9PZSJnHb.js";import"./chunk-Bf-nSo-6.js";import"./chunk-DwkOxDMO.js";import"./chunk-CMQyd8eO.js";import"./chunk-a7obrEbD.js";import"./chunk-DQhVL27x.js";import"./chunk-cn7T4ICr.js";import"./chunk-Bh3yC0yB.js";import"./chunk-DjdYu-xF.js";import"./chunk-BHPWSuhB.js";/* empty css              */const y=["onClick"],C=c({__name:"BottomFloatAdView",setup(c){const C=[i,o,n],B=a(),S=u(!0),b=u(!1),A=u(1),N=a=>{},_=()=>{};function F(a){b.value=!0,A.value=Math.floor(a.width*a.naturalHeight/a.naturalWidth)}return(a,i)=>S.value?(v(),r("div",{key:0,class:j(["fixed bottom-[56px] z-[20] flex w-full max-w-[480px] flex-col",b.value?"h-auto":"h-1"])},[b.value?(v(),r("i",{key:0,class:"iconfont icon-close self-end leading-none text-white/80",style:{"font-size":"25px"},onClick:i[0]||(i[0]=a=>S.value=!1)})):d("",!0),m(k(s),{spaceBetween:10,slidesPerView:1,centeredSlides:!0,autoplay:!0,pagination:{clickable:!0,dynamicBullets:!1,el:null},navigation:!1,loop:!1,modules:C,class:"flex w-full",onSwiper:N,onSlideChange:_},{default:h(()=>[(v(!0),r(p,null,f(k(B).bottomFloatAd,(a,s)=>(v(),x(k(l),{key:s},{default:h(()=>[w("div",{class:"relative flex w-full flex-col",onClick:t=>{return s=a,void e.clickAd(s);var s},style:g({height:"".concat(A.value,"px")})},[m(t,{"is-ad":!0,"ad-id":a.contentId,"ad-title":a.title,src:a.img,class:"flex w-full items-center justify-center object-contain",isNoLoading:!0,loadFinishCB:F},null,8,["ad-id","ad-title","src"])],12,y)]),_:2},1024))),128))]),_:1})],2)):d("",!0)}});export{C as default};
