import v from"./DEdyn6s7.js";import{m as s,A as a,j as e,k as o,F as c,B as i,l as r,t as l,w as d,q as x,_ as y,i as B}from"./BCLrUOBx.js";import N from"./3yN3dRTL.js";import w from"./-hq_PDZF.js";import"./zH0z38ay.js";import"./x_rD_Ya3.js";import"./CTAcmMAz.js";import"./a5umXhxZ.js";import"./Bxmfm8sn.js";import"./Di7fl9dA.js";import"./BnLnKt_p.js";import"./Ce8lFovl.js";const V={key:0},$={class:"flash-slider"},A={class:"flex sided title"},F={class:"flex gap-10"},C={class:"area-content"},M={__name:"FlashSale",props:{deactivate:{type:Boolean,default:!0},flashSales:{type:Array,default(){return[]}}},setup(n){return(m,E)=>{const _=v,u=y,p=N,f=w;return n.flashSales&&n.flashSales.length?(e(),s("div",V,[o("div",$,[o("div",null,[(e(!0),s(c,null,i(n.flashSales,(t,h)=>(e(),s("div",{class:"area home-section",key:h},[o("div",A,[o("div",F,[o("h4",null,l(t.title),1),r(_,{"end-time":t.end_time},null,8,["end-time"])]),r(u,{class:"link",to:`/flash-sale/${t.id}`},{default:d(()=>[x(l(m.$t("featured.showAll")),1)]),_:2},1032,["to"])]),o("div",C,[t.products&&t.products.length?(e(),B(f,{key:0,addInitEvt:!0,"image-count":t.products.length},{content:d(()=>[(e(!0),s(c,null,i(t.products,(k,g)=>(e(),s("li",{key:g,class:"center-text"},[r(p,{"flash-product":k},null,8,["flash-product"])]))),128))]),_:2},1032,["image-count"])):a("",!0)])]))),128))])])])):a("",!0)}}};export{M as default};
