import{j as e}from"./ui-vendor-4PEuZeLa.js";import{u as o}from"./useQuery-DXCMOLoD.js";import{s,S as a,H as t}from"./index-pJhVXhEU.js";import{H as i}from"./Header-Ccmu9ZV2.js";import{F as n}from"./Footer-D6zVMKkd.js";import{S as r}from"./SEOHead-D2Q2lO5Y.js";import{p as l,t as c,C as d,T as m}from"./cityTldrVariants-BFoKXxeS.js";import{T as u}from"./TowRequestForm-CjjvGALY.js";import{h as p,r as h}from"./react-vendor-SJkaNtXX.js";import{C as g,a as x,b as f,c as j,d as y}from"./carousel-Czp45-Mn.js";import{A as b,a as v,b as N,c as w}from"./accordion-CFGBLPOT.js";import{k as S}from"./icons-CPboDmvc.js";import"./supabase-vendor-CdxEYpYJ.js";import"./logo-oficial-BW9aD_Pb.js";import"./input-JzDsouLz.js";import"./alert-ByxLEOgp.js";import"./label-BtNpebIm.js";import"./textarea-BuO_puoV.js";import"./validators-B6ObMgjW.js";const q={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function O(e={}){let o,s,a,t,i=null,n=0,r=!1,l=!1,c=!1,d=!1;function m(){a||(h()?c=!0:(r||s.emit("autoplay:play"),function(){const{ownerWindow:e}=s.internalEngine();e.clearTimeout(n),n=e.setTimeout(y,t[s.selectedScrollSnap()]),i=(new Date).getTime(),s.emit("autoplay:timerset")}(),r=!0))}function u(){a||(r&&s.emit("autoplay:stop"),function(){const{ownerWindow:e}=s.internalEngine();e.clearTimeout(n),n=0,i=null,s.emit("autoplay:timerstopped")}(),r=!1)}function p(){if(h())return c=r,u();c&&m()}function h(){const{ownerDocument:e}=s.internalEngine();return"hidden"===e.visibilityState}function g(){l||u()}function x(){l||m()}function f(){l=!0,u()}function j(){l=!1,m()}function y(){const{index:e}=s.internalEngine(),a=e.clone().add(1).get(),t=s.scrollSnapList().length-1,i=o.stopOnLastSnap&&a===t;if(s.canScrollNext()?s.scrollNext(d):s.scrollTo(0,d),s.emit("autoplay:select"),i)return u();m()}return{name:"autoplay",options:e,init:function(i,n){s=i;const{mergeOptions:r,optionsAtMedia:l}=n,c=r(q,O.globalOptions),h=r(c,e);if(o=l(h),s.scrollSnapList().length<=1)return;d=o.jump,a=!1,t=function(e,o){const s=e.scrollSnapList();return"number"==typeof o?s.map(()=>o):o(s,e)}(s,o.delay);const{eventStore:y,ownerDocument:b}=s.internalEngine(),v=!!s.internalEngine().options.watchDrag,N=function(e,o){const s=e.rootNode();return o&&o(s)||s}(s,o.rootNode);y.add(b,"visibilitychange",p),v&&s.on("pointerDown",g),v&&!o.stopOnInteraction&&s.on("pointerUp",x),o.stopOnMouseEnter&&y.add(N,"mouseenter",f),o.stopOnMouseEnter&&!o.stopOnInteraction&&y.add(N,"mouseleave",j),o.stopOnFocusIn&&s.on("slideFocusStart",u),o.stopOnFocusIn&&!o.stopOnInteraction&&y.add(s.containerNode(),"focusout",m),o.playOnInit&&m()},destroy:function(){s.off("pointerDown",g).off("pointerUp",x).off("slideFocusStart",u),u(),a=!0,r=!1},play:function(e){void 0!==e&&(d=e),m()},stop:function(){r&&u()},reset:function(){r&&m()},isPlaying:function(){return r},timeUntilNext:function(){return i?t[s.selectedScrollSnap()]-((new Date).getTime()-i):null}}}function $(){var q;const{citySlug:$}=p(),[C,k]=h.useState("client"),[A,L]=h.useState(),_=h.useRef(O({delay:4e3,stopOnInteraction:!1})),E=l($||""),{data:T,isLoading:I}=o({queryKey:["city-page",$],queryFn:async()=>{const{data:e,error:o}=await s.from("city_pages").select("*").eq("slug",$).eq("is_active",!0).maybeSingle();if(o)throw o;return e}});h.useEffect(()=>{(null==T?void 0:T.id)&&$&&s.rpc("increment_city_page_view",{p_service:"guincho",p_slug:$})},[null==T?void 0:T.id,$]);const{data:P}=o({queryKey:["city-demographics",$],queryFn:async()=>{const{data:e,error:o}=await s.from("city_demographics").select("*").eq("slug",$||"").maybeSingle();return o?null:e??null},staleTime:36e5,enabled:!!$}),{data:Q}=o({queryKey:["city-images",$],queryFn:async()=>{const{data:e,error:o}=await s.from("blog_images").select("*").contains("city_tags",[$]);if(o)throw o;return e},enabled:!!$}),F=(null==T?void 0:T.city_name)||E.cityName,H=(null==T?void 0:T.state_abbreviation)||E.stateAbbreviation,z=(null==T?void 0:T.state)||E.state,M=(null==T?void 0:T.hero_title)||`Guincho 24 Horas em ${F}`,R=(null==T?void 0:T.hero_subtitle)||c($||"","guincho",P??null,F,H),D=(null==T?void 0:T.meta_title)||`Guincho 24h em ${F} - ${H} | Sempre Comigo`,G=(null==T?void 0:T.meta_description)||`Serviço de guincho 24h em ${F} - ${H}. Atendimento rápido para reboque e socorro veicular. Ligue 0800 111 8686.`,V=`/guincho/${$||""}`,B=(e,o)=>{if(!e||!e.includes("supabase.co/storage/v1/object/public/"))return e;const s=e.includes("?")?"&":"?";return`${e}${s}width=${o}&quality=78`},U=e=>[480,768,1024,1280,1920].map(o=>`${B(e,o)} ${o}w`).join(", "),W="(max-width: 768px) 100vw, (max-width: 1280px) 100vw, 1920px";if(I)return e.jsxs("div",{className:"min-h-screen",children:[e.jsx(r,{title:D,description:G,canonical:V}),e.jsx(i,{viewMode:C,onViewModeChange:k,showViewModeToggle:!1}),e.jsxs("div",{className:"container mx-auto px-4 py-16",children:[e.jsx(a,{className:"h-12 w-3/4 mb-4"}),e.jsx(a,{className:"h-6 w-1/2 mb-8"}),e.jsx(a,{className:"h-96 w-full"})]})]});const J={"@context":"https://schema.org","@type":"City",name:F,containedInPlace:{"@type":"State",name:z},address:{"@type":"PostalAddress",addressLocality:F,addressRegion:H,addressCountry:"BR"}};null!=(null==P?void 0:P.population)&&(J.populationCount=P.population);const K={"@context":"https://schema.org","@type":"LocalBusiness",name:`Guincho 24h em ${F}`,description:G,url:`https://semprecomigo.com.br/guincho/${$}`,telephone:"0800-111-8686",address:{"@type":"PostalAddress",addressLocality:F,addressRegion:H,addressCountry:"BR"},areaServed:J,parentOrganization:{"@type":"Organization",name:"Sempre Comigo"},openingHoursSpecification:{"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],opens:"00:00",closes:"23:59"}},X={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://semprecomigo.com.br"},{"@type":"ListItem",position:2,name:"Guincho",item:"https://semprecomigo.com.br/assistencia-24h"},{"@type":"ListItem",position:3,name:F,item:`https://semprecomigo.com.br/guincho/${$}`}]};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(r,{title:D,description:G,canonical:V,keywords:`guincho ${F}, guincho em ${F.toLowerCase()}, guinchos ${F.toLowerCase()}, reboque ${F}, reboque em ${F.toLowerCase()}, reboque 24 horas ${F.toLowerCase()}, guincho 24h ${F.toLowerCase()}, socorro ${H}, guincho 24 horas próximo a mim`}),e.jsxs(t,{children:[e.jsx("script",{type:"application/ld+json",children:JSON.stringify(K)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(X)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(J)}),Q&&(null==(q=Q[0])?void 0:q.image_url)&&e.jsx("link",{rel:"preload",as:"image",href:B(Q[0].image_url,768),imageSrcSet:U(Q[0].image_url),imageSizes:W,fetchPriority:"high"})]}),e.jsx(i,{viewMode:C,onViewModeChange:k,showViewModeToggle:!1}),e.jsxs("section",{className:"relative h-[60vh] min-h-[500px] overflow-hidden",children:[Q&&Q.length>0?e.jsxs(g,{plugins:[_.current],className:"w-full h-full",opts:{loop:!0},children:[e.jsx(x,{className:"-ml-0",children:Q.map((o,s)=>e.jsx(f,{className:"pl-0",children:e.jsxs("div",{className:"relative h-[60vh] min-h-[500px]",children:[e.jsx("img",{src:B(o.image_url,1280),srcSet:U(o.image_url),sizes:W,alt:o.image_alt,className:"w-full h-full object-cover",loading:0===s?"eager":"lazy",width:"1920",height:"1080",decoding:0===s?"sync":"async",fetchPriority:0===s?"high":"low"}),e.jsx("div",{className:"absolute inset-0 bg-black/60"})]})},o.id))}),e.jsx(j,{className:"left-4 bg-background/80 hover:bg-background border-0"}),e.jsx(y,{className:"right-4 bg-background/80 hover:bg-background border-0"})]}):e.jsx("div",{className:"relative h-[60vh] min-h-[500px] bg-gradient-to-br from-primary/20 to-primary/5",children:e.jsx("div",{className:"absolute inset-0 bg-black/40"})}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:e.jsxs("div",{className:"text-center text-white px-4 max-w-4xl",children:[e.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-4",children:M}),e.jsx("p",{className:"text-xl md:text-2xl mb-8",children:R}),e.jsx("a",{href:"#formulario",className:"inline-block",children:e.jsx("button",{className:"bg-primary hover:bg-primary/90 text-primary-foreground px-8 py-4 rounded-lg text-lg font-semibold transition-colors",children:"Solicitar Guincho Agora"})})]})})]}),e.jsx(d,{city:P??null,cityName:F,stateAbbr:H}),e.jsx("section",{className:"py-16 bg-muted/30",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx(S,{className:"h-8 w-8 text-primary flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg mb-2",children:"Atendimento 24h"}),e.jsx("p",{className:"text-muted-foreground",children:"Estamos disponíveis todos os dias, a qualquer hora"})]})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx(S,{className:"h-8 w-8 text-primary flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg mb-2",children:"Resposta Rápida"}),e.jsx("p",{className:"text-muted-foreground",children:"Cotação imediata e atendimento ágil"})]})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx(S,{className:"h-8 w-8 text-primary flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg mb-2",children:"Profissionais Qualificados"}),e.jsx("p",{className:"text-muted-foreground",children:"Equipe treinada e equipamentos modernos"})]})]})]})})}),e.jsx("section",{className:"py-12",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[e.jsxs("h2",{className:"text-2xl md:text-3xl font-bold mb-6 text-foreground",children:["Serviço de Guincho e Reboque em ",F," - ",H]}),e.jsxs("div",{className:"text-muted-foreground leading-relaxed space-y-4 text-lg",children:[e.jsxs("p",{children:["Precisa de ",e.jsxs("strong",{className:"text-foreground",children:["guincho em ",F]}),"? A Sempre Comigo oferece serviço de reboque e guincho 24 horas em ",F," e região metropolitana. Com uma equipe de profissionais qualificados e equipamentos modernos, atendemos emergências veiculares a qualquer hora do dia ou da noite, incluindo feriados e finais de semana."]}),e.jsxs("p",{children:["Nosso serviço de guincho em ",F," (",H,") cobre pane mecânica, pane elétrica, pneu furado, falta de combustível, acidentes e qualquer situação em que seu veículo precise ser transportado com segurança. Trabalhamos com guinchos plataforma e guinchos convencionais para atender carros, motos, SUVs e utilitários."]}),e.jsxs("p",{children:["Ligue agora para o ",e.jsx("strong",{className:"text-foreground",children:"0800 111 8686"})," e solicite seu guincho em ",F," com cotação imediata e atendimento rápido. A Sempre Comigo está presente em todo o ",z," para garantir sua segurança e tranquilidade."]})]})]})}),e.jsxs("section",{className:"py-12 bg-muted/20",children:[e.jsx(t,{children:e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:`Quanto custa um guincho em ${F}?`,acceptedAnswer:{"@type":"Answer",text:`O preço do guincho em ${F} varia conforme a distância e tipo de veículo. Ligue para 0800 111 8686 para cotação imediata.`}},{"@type":"Question",name:`O guincho em ${F} funciona 24 horas?`,acceptedAnswer:{"@type":"Answer",text:`Sim, nosso serviço de guincho em ${F} funciona 24 horas, incluindo feriados e finais de semana.`}},{"@type":"Question",name:`Qual o tempo de chegada do guincho em ${F}?`,acceptedAnswer:{"@type":"Answer",text:"O tempo varia conforme a localização, mas nosso objetivo é chegar o mais rápido possível, com atualizações em tempo real."}},{"@type":"Question",name:`Atendem a região metropolitana de ${F}?`,acceptedAnswer:{"@type":"Answer",text:`Sim. Cobrimos ${F} e toda a região metropolitana. Confirme a área exata pelo 0800 111 8686 antes de acionar o serviço.`}},{"@type":"Question",name:`Quais formas de pagamento aceitam em ${F}?`,acceptedAnswer:{"@type":"Answer",text:`Em ${F} aceitamos PIX, cartão de crédito, débito e dinheiro para serviços avulsos. Clientes com plano Sempre Comigo já têm o serviço incluído na mensalidade.`}},{"@type":"Question",name:`Posso escolher a oficina de destino do reboque em ${F}?`,acceptedAnswer:{"@type":"Answer",text:`Sim. Em ${F} você escolhe o destino do reboque: oficina da sua preferência, concessionária, sua residência ou local seguro, respeitando o limite de km do serviço.`}}]})})}),e.jsxs("div",{className:"container mx-auto px-4 max-w-3xl",children:[e.jsxs("h2",{className:"text-2xl md:text-3xl font-bold text-center mb-8 text-foreground",children:["Perguntas Frequentes - Guincho em ",F]}),e.jsxs(b,{type:"single",collapsible:!0,className:"space-y-3",children:[e.jsxs(v,{value:"faq-0",className:"bg-background rounded-lg border px-6",children:[e.jsxs(N,{className:"text-left font-semibold text-foreground hover:no-underline",children:["Quanto custa um guincho em ",F,"?"]}),e.jsxs(w,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["O preço do guincho em ",F," varia conforme a distância, tipo de veículo e horário do atendimento. Para obter uma cotação imediata e sem compromisso, ligue para o ",e.jsx("strong",{children:"0800 111 8686"})," ou preencha o formulário acima."]})]}),e.jsxs(v,{value:"faq-1",className:"bg-background rounded-lg border px-6",children:[e.jsxs(N,{className:"text-left font-semibold text-foreground hover:no-underline",children:["O guincho em ",F," funciona 24 horas?"]}),e.jsxs(w,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Sim! Nosso serviço de guincho em ",F," está disponível 24 horas por dia, 7 dias por semana, incluindo feriados e finais de semana. Basta ligar para o 0800 111 8686 a qualquer momento."]})]}),e.jsxs(v,{value:"faq-2",className:"bg-background rounded-lg border px-6",children:[e.jsxs(N,{className:"text-left font-semibold text-foreground hover:no-underline",children:["Qual o tempo de chegada do guincho em ",F,"?"]}),e.jsxs(w,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["O tempo de chegada depende da sua localização em ",F," e da disponibilidade da equipe mais próxima. Trabalhamos para garantir o menor tempo de resposta possível, com atualizações em tempo real sobre a chegada do guincho."]})]}),e.jsxs(v,{value:"faq-3",className:"bg-background rounded-lg border px-6",children:[e.jsxs(N,{className:"text-left font-semibold text-foreground hover:no-underline",children:["Atendem a região metropolitana de ",F,"?"]}),e.jsxs(w,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Sim. Cobrimos ",F," e toda a região metropolitana. Confirme a área exata pelo ",e.jsx("strong",{children:"0800 111 8686"})," antes de acionar o serviço."]})]}),e.jsxs(v,{value:"faq-4",className:"bg-background rounded-lg border px-6",children:[e.jsxs(N,{className:"text-left font-semibold text-foreground hover:no-underline",children:["Quais formas de pagamento aceitam em ",F,"?"]}),e.jsxs(w,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Em ",F," aceitamos PIX, cartão de crédito, débito e dinheiro para serviços avulsos. Clientes com plano Sempre Comigo já têm o serviço incluído na mensalidade."]})]}),e.jsxs(v,{value:"faq-5",className:"bg-background rounded-lg border px-6",children:[e.jsxs(N,{className:"text-left font-semibold text-foreground hover:no-underline",children:["Posso escolher a oficina de destino do reboque em ",F,"?"]}),e.jsxs(w,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Sim. Em ",F," você escolhe o destino do reboque: oficina da sua preferência, concessionária, sua residência ou local seguro, respeitando o limite de km do serviço."]})]})]})]})]}),e.jsx("section",{id:"formulario",className:"py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 items-start",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Sua localização"}),e.jsx("p",{className:"text-muted-foreground",children:"Detectamos automaticamente sua localização para facilitar o atendimento"})]}),e.jsx(m,{onLocationSelect:L})]}),e.jsx("div",{className:"lg:sticky lg:top-4",children:e.jsx(u,{citySlug:$,cityName:F,state:z,serviceType:"guincho",pickupLocation:A})})]})})}),e.jsx(n,{})]})}O.globalOptions=void 0;export{$ as default};