import{S as k,C as b}from"./carousel.faa29078.1750111005555.js";import{q as x,r as f,w as z,H as C,o,e as n,A as s,F as c,J as w,M as _,j as V,i as v,a3 as S,f as u,aI as g,h as B}from"./index.737529e8.1750111005555.js";const E="/assets/manuntencao.1a230691.1750111005555.webp",M="/assets/encanador.b823adf8.1750111005555.webp",F="/assets/faz-tudo.a7d2df21.1750111005555.webp",N="/assets/pedreiro.e289afa2.1750111005555.webp",j="/assets/pintor.9a640bc2.1750111005555.webp",H="/assets/eletricista.9808465d.1750111005555.webp";const I={key:0,class:"d-flex flex-wrap gap-6 justify-center"},P={class:"pa-3 w-100 h-100"},A={__name:"servicos-home",setup(R){const{width:l}=x(),r=f(!1);r.value=l.value<768,z(l,()=>{r.value=l.value<768});const i=C(),t=f(0),d=[{img:E,alt:"Manuntenção",route:"/construcao"},{img:M,alt:"Encanador",route:"/construcao"},{img:F,alt:"Faz Tudo",route:"/construcao"},{img:N,alt:"Pedreiro",route:"/construcao"},{img:j,alt:"Pintor",route:"/construcao"},{img:H,alt:"Eletricista",route:"/construcao"}],h=()=>{(t.value+1===6||t.value===6)&&setTimeout(()=>{t.value=0},4e3)};return(T,p)=>(o(),n(c,null,[s(r)?_("",!0):(o(),n("div",I,[(o(),n(c,null,w(d,(e,m)=>u(g,{key:m,"lazy-src":e.img,src:e.img,alt:e.alt,width:"400",style:{"max-width":"400px"},onClick:a=>s(i).push(e.route),class:"cursor-pointer img-servicos"},null,8,["lazy-src","src","alt","onClick"])),64))])),s(r)?(o(),V(s(b),{key:1,"items-to-show":1,ref:"carousel",modelValue:s(t),"onUpdate:modelValue":p[0]||(p[0]=e=>S(t)?t.value=e:null),autoplay:4e3,onSlideEnd:h},{slides:v(({slideWidth:e,currentSlide:m})=>[(o(),n(c,null,w(d,(a,y)=>u(s(k),{key:y},{default:v(()=>[B("div",P,[u(g,{"lazy-src":a.img,src:a.img,alt:a.alt,width:e,onClick:W=>s(i).push(a.route),class:"cursor-pointer img-servicos"},null,8,["lazy-src","src","alt","width","onClick"])])]),_:2},1024)),64))]),_:1},8,["modelValue"])):_("",!0)],64))}};export{A as default};
