import{j as e}from"./ui-vendor-ChZMp8UW.js";import{u as o}from"./useQuery-D0lkQCfK.js";import{s,S as a,H as t}from"./index-kLDukJJH.js";import{H as i}from"./Header-BhKe-yvd.js";import{F as n}from"./Footer-DENxtm0h.js";import{S as r}from"./SEOHead-4QDTPfQ2.js";import{p as c,T as l}from"./city-slug-parser-4W9YsBPA.js";import{T as d}from"./TowRequestForm-DwUZAD1m.js";import{h as m,r as u}from"./react-vendor-SJkaNtXX.js";import{C as p,a as h,b as g,c as x,d as f}from"./carousel-RqQ4y-z7.js";import{A as j,a as y,b,c as v}from"./accordion-BO-ZvMSC.js";import{k as N}from"./icons-BXTKTZdO.js";import"./supabase-vendor-CkDt80Sz.js";import"./logo-oficial-BW9aD_Pb.js";import"./input-Cxi15lE5.js";import"./alert-CXdMUDXy.js";import"./label-DNBxKrnC.js";import"./textarea-TiNaqBH-.js";import"./validators-B6ObMgjW.js";const w={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function S(e={}){let o,s,a,t,i=null,n=0,r=!1,c=!1,l=!1,d=!1;function m(){a||(h()?l=!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 l=r,u();l&&m()}function h(){const{ownerDocument:e}=s.internalEngine();return"hidden"===e.visibilityState}function g(){c||u()}function x(){c||m()}function f(){c=!0,u()}function j(){c=!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:c}=n,l=r(w,S.globalOptions),h=r(l,e);if(o=c(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 q(){const{citySlug:w}=m(),[q,O]=u.useState("client"),[$,L]=u.useState(),k=u.useRef(S({delay:4e3,stopOnInteraction:!1})),A=c(w||""),{data:T,isLoading:C}=o({queryKey:["city-page",w],queryFn:async()=>{const{data:e,error:o}=await s.from("city_pages").select("*").eq("slug",w).eq("is_active",!0).maybeSingle();if(o)throw o;return e}});u.useEffect(()=>{(null==T?void 0:T.id)&&s.from("city_pages").update({view_count:(T.view_count||0)+1}).eq("id",T.id).then(()=>{})},[null==T?void 0:T.id]);const{data:E}=o({queryKey:["city-images",w],queryFn:async()=>{const{data:e,error:o}=await s.from("blog_images").select("*").contains("city_tags",[w]);if(o)throw o;return e},enabled:!!w}),_=(null==T?void 0:T.city_name)||A.cityName,F=(null==T?void 0:T.state_abbreviation)||A.stateAbbreviation,I=(null==T?void 0:T.state)||A.state,H=(null==T?void 0:T.hero_title)||`Guincho 24 Horas em ${_}`,M=(null==T?void 0:T.hero_subtitle)||`Serviço de guincho e reboque 24h em ${_} - ${F}. Atendimento rápido e profissional.`,z=(null==T?void 0:T.meta_title)||`Guincho 24h em ${_} - ${F} | Sempre Comigo`,Q=(null==T?void 0:T.meta_description)||`Serviço de guincho 24h em ${_} - ${F}. Atendimento rápido para reboque e socorro veicular. Ligue 0800 111 8686.`,D=`/guincho/${w||""}`;if(C)return e.jsxs("div",{className:"min-h-screen",children:[e.jsx(r,{title:z,description:Q,canonical:D}),e.jsx(i,{viewMode:q,onViewModeChange:O,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 G={"@context":"https://schema.org","@type":"LocalBusiness",name:`Guincho 24h em ${_}`,description:Q,url:`https://semprecomigo.com.br/guincho/${w}`,telephone:"0800-111-8686",address:{"@type":"PostalAddress",addressLocality:_,addressRegion:F,addressCountry:"BR"},areaServed:{"@type":"City",name:_},parentOrganization:{"@type":"Organization",name:"Sempre Comigo"},openingHoursSpecification:{"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],opens:"00:00",closes:"23:59"}},P={"@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:_,item:`https://semprecomigo.com.br/guincho/${w}`}]};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(r,{title:z,description:Q,canonical:D,keywords:`guincho ${_}, guincho em ${_.toLowerCase()}, guinchos ${_.toLowerCase()}, reboque ${_}, reboque em ${_.toLowerCase()}, reboque 24 horas ${_.toLowerCase()}, guincho 24h ${_.toLowerCase()}, socorro ${F}, guincho 24 horas próximo a mim`}),e.jsxs(t,{children:[e.jsx("script",{type:"application/ld+json",children:JSON.stringify(G)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(P)})]}),e.jsx(i,{viewMode:q,onViewModeChange:O,showViewModeToggle:!1}),e.jsxs("section",{className:"relative h-[60vh] min-h-[500px] overflow-hidden",children:[E&&E.length>0?e.jsxs(p,{plugins:[k.current],className:"w-full h-full",opts:{loop:!0},children:[e.jsx(h,{className:"-ml-0",children:E.map((o,s)=>e.jsx(g,{className:"pl-0",children:e.jsxs("div",{className:"relative h-[60vh] min-h-[500px]",children:[e.jsx("img",{src:o.image_url,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"}),e.jsx("div",{className:"absolute inset-0 bg-black/60"})]})},o.id))}),e.jsx(x,{className:"left-4 bg-background/80 hover:bg-background border-0"}),e.jsx(f,{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:M}),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("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(N,{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(N,{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(N,{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]}),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 ",_]}),"? A Sempre Comigo oferece serviço de reboque e guincho 24 horas em ",_," 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,") 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 ",_," com cotação imediata e atendimento rápido. A Sempre Comigo está presente em todo o ",I," 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 ${_}?`,acceptedAnswer:{"@type":"Answer",text:`O preço do guincho em ${_} 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 ${_} funciona 24 horas?`,acceptedAnswer:{"@type":"Answer",text:`Sim, nosso serviço de guincho em ${_} funciona 24 horas, incluindo feriados e finais de semana.`}},{"@type":"Question",name:`Qual o tempo de chegada do guincho em ${_}?`,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."}}]})})}),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 ",_]}),e.jsxs(j,{type:"single",collapsible:!0,className:"space-y-3",children:[e.jsxs(y,{value:"faq-0",className:"bg-background rounded-lg border px-6",children:[e.jsxs(b,{className:"text-left font-semibold text-foreground hover:no-underline",children:["Quanto custa um guincho em ",_,"?"]}),e.jsxs(v,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["O preço do guincho em ",_," 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(y,{value:"faq-1",className:"bg-background rounded-lg border px-6",children:[e.jsxs(b,{className:"text-left font-semibold text-foreground hover:no-underline",children:["O guincho em ",_," funciona 24 horas?"]}),e.jsxs(v,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Sim! Nosso serviço de guincho em ",_," 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(y,{value:"faq-2",className:"bg-background rounded-lg border px-6",children:[e.jsxs(b,{className:"text-left font-semibold text-foreground hover:no-underline",children:["Qual o tempo de chegada do guincho em ",_,"?"]}),e.jsxs(v,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["O tempo de chegada depende da sua localização em ",_," 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.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(l,{onLocationSelect:L})]}),e.jsx("div",{className:"lg:sticky lg:top-4",children:e.jsx(d,{citySlug:w,cityName:_,state:I,serviceType:"guincho",pickupLocation:$})})]})})}),e.jsx(n,{})]})}S.globalOptions=void 0;export{q as default};