import{j as e}from"./ui-vendor-D7Fh8Ky-.js";import{u as o}from"./useQuery-CVQmtqFg.js";import{s as a,H as s}from"./index--q9pcdAZ.js";import{H as t}from"./Header-CDlt40OO.js";import{F as i}from"./Footer-C1C81Pws.js";import{S as n}from"./SEOHead-YTlsfBRz.js";import{p as r,t as l,C as c,T as d}from"./cityTldrVariants-_Mx-BcfH.js";import{T as m}from"./TowRequestForm-D33DLJsF.js";import{e as u,r as p}from"./react-vendor-1IeSgoWF.js";import{C as g,a as h,b as x,c as f,d as y}from"./carousel-xVPcPW1H.js";import{A as j,a as b,b as v,c as N}from"./accordion-N-LIf9yg.js";import{k as w}from"./icons-hyxClt4Z.js";import"./supabase-vendor-Dr45T5gF.js";import"./logo-oficial-BW9aD_Pb.js";import"./input-CXAAeI1i.js";import"./alert-BK1Zysgl.js";import"./label-BEHDRi30.js";import"./textarea-BngVFzn8.js";import"./validators-B6ObMgjW.js";import"./registrarLead-Dw0HT5Fo.js";const S={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function q(e={}){let o,a,s,t,i=null,n=0,r=!1,l=!1,c=!1,d=!1;function m(){s||(g()?c=!0:(r||a.emit("autoplay:play"),function(){const{ownerWindow:e}=a.internalEngine();e.clearTimeout(n),n=e.setTimeout(j,t[a.selectedScrollSnap()]),i=(new Date).getTime(),a.emit("autoplay:timerset")}(),r=!0))}function u(){s||(r&&a.emit("autoplay:stop"),function(){const{ownerWindow:e}=a.internalEngine();e.clearTimeout(n),n=0,i=null,a.emit("autoplay:timerstopped")}(),r=!1)}function p(){if(g())return c=r,u();c&&m()}function g(){const{ownerDocument:e}=a.internalEngine();return"hidden"===e.visibilityState}function h(){l||u()}function x(){l||m()}function f(){l=!0,u()}function y(){l=!1,m()}function j(){const{index:e}=a.internalEngine(),s=e.clone().add(1).get(),t=a.scrollSnapList().length-1,i=o.stopOnLastSnap&&s===t;if(a.canScrollNext()?a.scrollNext(d):a.scrollTo(0,d),a.emit("autoplay:select"),i)return u();m()}return{name:"autoplay",options:e,init:function(i,n){a=i;const{mergeOptions:r,optionsAtMedia:l}=n,c=r(S,q.globalOptions),g=r(c,e);if(o=l(g),a.scrollSnapList().length<=1)return;d=o.jump,s=!1,t=function(e,o){const a=e.scrollSnapList();return"number"==typeof o?a.map(()=>o):o(a,e)}(a,o.delay);const{eventStore:j,ownerDocument:b}=a.internalEngine(),v=!!a.internalEngine().options.watchDrag,N=function(e,o){const a=e.rootNode();return o&&o(a)||a}(a,o.rootNode);j.add(b,"visibilitychange",p),v&&a.on("pointerDown",h),v&&!o.stopOnInteraction&&a.on("pointerUp",x),o.stopOnMouseEnter&&j.add(N,"mouseenter",f),o.stopOnMouseEnter&&!o.stopOnInteraction&&j.add(N,"mouseleave",y),o.stopOnFocusIn&&a.on("slideFocusStart",u),o.stopOnFocusIn&&!o.stopOnInteraction&&j.add(a.containerNode(),"focusout",m),o.playOnInit&&m()},destroy:function(){a.off("pointerDown",h).off("pointerUp",x).off("slideFocusStart",u),u(),s=!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[a.selectedScrollSnap()]-((new Date).getTime()-i):null}}}function O(){var S;const{citySlug:O}=u(),[$,k]=p.useState("client"),[A,C]=p.useState(),L=p.useRef(q({delay:4e3,stopOnInteraction:!1})),_=r(O||""),{data:E}=o({queryKey:["city-page",O],queryFn:async()=>{const{data:e,error:o}=await a.from("city_pages").select("*").eq("slug",O).eq("is_active",!0).maybeSingle();if(o)throw o;return e}});p.useEffect(()=>{(null==E?void 0:E.id)&&O&&a.rpc("increment_city_page_view",{p_service:"guincho",p_slug:O})},[null==E?void 0:E.id,O]);const{data:T}=o({queryKey:["city-demographics",O],queryFn:async()=>{const{data:e,error:o}=await a.from("city_demographics").select("*").eq("slug",O||"").maybeSingle();return o?null:e??null},staleTime:36e5,enabled:!!O}),{data:I}=o({queryKey:["city-images",O],queryFn:async()=>{const{data:e,error:o}=await a.from("blog_images").select("*").contains("city_tags",[O]);if(o)throw o;return e},enabled:!!O}),P=(null==E?void 0:E.city_name)||_.cityName,Q=(null==E?void 0:E.state_abbreviation)||_.stateAbbreviation,F=(null==E?void 0:E.state)||_.state,H=(null==E?void 0:E.hero_title)||`Guincho 24 Horas em ${P}`,z=(null==E?void 0:E.hero_subtitle)||l(O||"","guincho",T??null,P,Q),R=(null==E?void 0:E.meta_title)||`Guincho 24h em ${P} - ${Q} | Sempre Comigo`,D=(null==E?void 0:E.meta_description)||`Serviço de guincho 24h em ${P} - ${Q}. Atendimento rápido para reboque e socorro veicular. Ligue 0800 111 8686.`,M=`/guincho/${O||""}`,G=(e,o)=>{if(!e||!e.includes("supabase.co/storage/v1/object/public/"))return e;const a=e.includes("?")?"&":"?";return`${e}${a}width=${o}&quality=78`},B=e=>[480,768,1024,1280,1920].map(o=>`${G(e,o)} ${o}w`).join(", "),J="(max-width: 768px) 100vw, (max-width: 1280px) 100vw, 1920px",U={"@context":"https://schema.org","@type":"City",name:P,containedInPlace:{"@type":"State",name:F},address:{"@type":"PostalAddress",addressLocality:P,addressRegion:Q,addressCountry:"BR"}};null!=(null==T?void 0:T.population)&&(U.populationCount=T.population);const V={"@context":"https://schema.org","@type":"LocalBusiness",name:`Guincho 24h em ${P}`,description:D,url:`https://semprecomigo.com.br/guincho/${O}`,telephone:"0800-111-8686",address:{"@type":"PostalAddress",addressLocality:P,addressRegion:Q,addressCountry:"BR"},areaServed:U,parentOrganization:{"@type":"Organization",name:"Sempre Comigo"},openingHoursSpecification:{"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],opens:"00:00",closes:"23:59"}},W={"@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:P,item:`https://semprecomigo.com.br/guincho/${O}`}]};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(n,{title:R,description:D,canonical:M,keywords:`guincho ${P}, guincho em ${P.toLowerCase()}, guinchos ${P.toLowerCase()}, reboque ${P}, reboque em ${P.toLowerCase()}, reboque 24 horas ${P.toLowerCase()}, guincho 24h ${P.toLowerCase()}, socorro ${Q}, guincho 24 horas próximo a mim`}),e.jsxs(s,{children:[e.jsx("script",{type:"application/ld+json",children:JSON.stringify(V)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(W)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(U)}),I&&(null==(S=I[0])?void 0:S.image_url)&&e.jsx("link",{rel:"preload",as:"image",href:G(I[0].image_url,768),imageSrcSet:B(I[0].image_url),imageSizes:J,fetchPriority:"high"})]}),e.jsx(t,{viewMode:$,onViewModeChange:k,showViewModeToggle:!1}),e.jsxs("section",{className:"relative h-[60vh] min-h-[500px] overflow-hidden",children:[I&&I.length>0?e.jsxs(g,{plugins:[L.current],className:"w-full h-full",opts:{loop:!0},children:[e.jsx(h,{className:"-ml-0",children:I.map((o,a)=>e.jsx(x,{className:"pl-0",children:e.jsxs("div",{className:"relative h-[60vh] min-h-[500px]",children:[e.jsx("img",{src:G(o.image_url,1280),srcSet:B(o.image_url),sizes:J,alt:o.image_alt,className:"w-full h-full object-cover",loading:0===a?"eager":"lazy",width:"1920",height:"1080",decoding:0===a?"sync":"async",fetchPriority:0===a?"high":"low"}),e.jsx("div",{className:"absolute inset-0 bg-black/60"})]})},o.id))}),e.jsx(f,{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:H}),e.jsx("p",{className:"text-xl md:text-2xl mb-8",children:z}),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(c,{city:T??null,cityName:P,stateAbbr:Q}),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(w,{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(w,{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(w,{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 ",P," - ",Q]}),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 ",P]}),"? A Sempre Comigo oferece serviço de reboque e guincho 24 horas em ",P," 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 ",P," (",Q,") 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 ",P," com cotação imediata e atendimento rápido. A Sempre Comigo está presente em todo o ",F," para garantir sua segurança e tranquilidade."]})]})]})}),e.jsxs("section",{className:"py-12 bg-muted/20",children:[e.jsx(s,{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 ${P}?`,acceptedAnswer:{"@type":"Answer",text:`O preço do guincho em ${P} 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 ${P} funciona 24 horas?`,acceptedAnswer:{"@type":"Answer",text:`Sim, nosso serviço de guincho em ${P} funciona 24 horas, incluindo feriados e finais de semana.`}},{"@type":"Question",name:`Qual o tempo de chegada do guincho em ${P}?`,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 ${P}?`,acceptedAnswer:{"@type":"Answer",text:`Sim. Cobrimos ${P} 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 ${P}?`,acceptedAnswer:{"@type":"Answer",text:`Em ${P} 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 ${P}?`,acceptedAnswer:{"@type":"Answer",text:`Sim. Em ${P} 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 ",P]}),e.jsxs(j,{type:"single",collapsible:!0,className:"space-y-3",children:[e.jsxs(b,{value:"faq-0",className:"bg-background rounded-lg border px-6",children:[e.jsxs(v,{className:"text-left font-semibold text-foreground hover:no-underline",children:["Quanto custa um guincho em ",P,"?"]}),e.jsxs(N,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["O preço do guincho em ",P," 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(b,{value:"faq-1",className:"bg-background rounded-lg border px-6",children:[e.jsxs(v,{className:"text-left font-semibold text-foreground hover:no-underline",children:["O guincho em ",P," funciona 24 horas?"]}),e.jsxs(N,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Sim! Nosso serviço de guincho em ",P," 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(b,{value:"faq-2",className:"bg-background rounded-lg border px-6",children:[e.jsxs(v,{className:"text-left font-semibold text-foreground hover:no-underline",children:["Qual o tempo de chegada do guincho em ",P,"?"]}),e.jsxs(N,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["O tempo de chegada depende da sua localização em ",P," 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(b,{value:"faq-3",className:"bg-background rounded-lg border px-6",children:[e.jsxs(v,{className:"text-left font-semibold text-foreground hover:no-underline",children:["Atendem a região metropolitana de ",P,"?"]}),e.jsxs(N,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Sim. Cobrimos ",P," 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(b,{value:"faq-4",className:"bg-background rounded-lg border px-6",children:[e.jsxs(v,{className:"text-left font-semibold text-foreground hover:no-underline",children:["Quais formas de pagamento aceitam em ",P,"?"]}),e.jsxs(N,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Em ",P," 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(b,{value:"faq-5",className:"bg-background rounded-lg border px-6",children:[e.jsxs(v,{className:"text-left font-semibold text-foreground hover:no-underline",children:["Posso escolher a oficina de destino do reboque em ",P,"?"]}),e.jsxs(N,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Sim. Em ",P," 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(d,{onLocationSelect:C})]}),e.jsx("div",{className:"lg:sticky lg:top-4",children:e.jsx(m,{citySlug:O,cityName:P,state:F,serviceType:"guincho",pickupLocation:A})})]})})}),e.jsx(i,{})]})}q.globalOptions=void 0;export{O as default};