import{j as e}from"./ui-vendor-4PEuZeLa.js";import{u as o}from"./useQuery-B4H78kLp.js";import{s,S as a,H as t}from"./index-DC4rLu7_.js";import{H as i}from"./Header-DAAc8EnU.js";import{F as n}from"./Footer-Bl3jo1Hs.js";import{S as r}from"./SEOHead-DetuBT9o.js";import{p as c,T as l}from"./city-slug-parser-Cs62ZEwO.js";import{T as d}from"./TowRequestForm-DDAuc_GR.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-Dgwpv2JX.js";import{A as j,a as b,b as v,c as y}from"./accordion-CHNbBYy_.js";import{k as N}from"./icons-BXTKTZdO.js";import"./supabase-vendor-CdxEYpYJ.js";import"./logo-oficial-BW9aD_Pb.js";import"./input-DV0retKJ.js";import"./alert-LV4gZCPU.js";import"./label-DQXHisk6.js";import"./textarea-CWP2YVAx.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(b,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 b(){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:b,ownerDocument:v}=s.internalEngine(),y=!!s.internalEngine().options.watchDrag,N=function(e,o){const s=e.rootNode();return o&&o(s)||s}(s,o.rootNode);b.add(v,"visibilitychange",p),y&&s.on("pointerDown",g),y&&!o.stopOnInteraction&&s.on("pointerUp",x),o.stopOnMouseEnter&&b.add(N,"mouseenter",f),o.stopOnMouseEnter&&!o.stopOnInteraction&&b.add(N,"mouseleave",j),o.stopOnFocusIn&&s.on("slideFocusStart",u),o.stopOnFocusIn&&!o.stopOnInteraction&&b.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"),[$,k]=u.useState(),A=u.useRef(S({delay:4e3,stopOnInteraction:!1})),C=c(w||""),{data:L,isLoading:E}=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==L?void 0:L.id)&&s.from("city_pages").update({view_count:(L.view_count||0)+1}).eq("id",L.id).then(()=>{})},[null==L?void 0:L.id]);const{data:T}=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}),I=(null==L?void 0:L.city_name)||C.cityName,Q=(null==L?void 0:L.state_abbreviation)||C.stateAbbreviation,_=(null==L?void 0:L.state)||C.state,H=(null==L?void 0:L.hero_title)||`Guincho 24 Horas em ${I}`,F=(null==L?void 0:L.hero_subtitle)||`Serviço de guincho e reboque 24h em ${I} - ${Q}. Atendimento rápido e profissional.`,M=(null==L?void 0:L.meta_title)||`Guincho 24h em ${I} - ${Q} | Sempre Comigo`,P=(null==L?void 0:L.meta_description)||`Serviço de guincho 24h em ${I} - ${Q}. Atendimento rápido para reboque e socorro veicular. Ligue 0800 111 8686.`,z=`/guincho/${w||""}`;if(E)return e.jsxs("div",{className:"min-h-screen",children:[e.jsx(r,{title:M,description:P,canonical:z}),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 D={"@context":"https://schema.org","@type":"LocalBusiness",name:`Guincho 24h em ${I}`,description:P,url:`https://semprecomigo.com.br/guincho/${w}`,telephone:"0800-111-8686",address:{"@type":"PostalAddress",addressLocality:I,addressRegion:Q,addressCountry:"BR"},areaServed:{"@type":"City",name:I},parentOrganization:{"@type":"Organization",name:"Sempre Comigo"},openingHoursSpecification:{"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],opens:"00:00",closes:"23:59"}},G={"@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:I,item:`https://semprecomigo.com.br/guincho/${w}`}]};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(r,{title:M,description:P,canonical:z,keywords:`guincho ${I}, guincho em ${I.toLowerCase()}, guinchos ${I.toLowerCase()}, reboque ${I}, reboque em ${I.toLowerCase()}, reboque 24 horas ${I.toLowerCase()}, guincho 24h ${I.toLowerCase()}, socorro ${Q}, guincho 24 horas próximo a mim`}),e.jsxs(t,{children:[e.jsx("script",{type:"application/ld+json",children:JSON.stringify(D)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(G)})]}),e.jsx(i,{viewMode:q,onViewModeChange:O,showViewModeToggle:!1}),e.jsxs("section",{className:"relative h-[60vh] min-h-[500px] overflow-hidden",children:[T&&T.length>0?e.jsxs(p,{plugins:[A.current],className:"w-full h-full",opts:{loop:!0},children:[e.jsx(h,{className:"-ml-0",children:T.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:F}),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 ",I," - ",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 ",I]}),"? A Sempre Comigo oferece serviço de reboque e guincho 24 horas em ",I," 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 ",I," (",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 ",I," com cotação imediata e atendimento rápido. A Sempre Comigo está presente em todo o ",_," 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 ${I}?`,acceptedAnswer:{"@type":"Answer",text:`O preço do guincho em ${I} 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 ${I} funciona 24 horas?`,acceptedAnswer:{"@type":"Answer",text:`Sim, nosso serviço de guincho em ${I} funciona 24 horas, incluindo feriados e finais de semana.`}},{"@type":"Question",name:`Qual o tempo de chegada do guincho em ${I}?`,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 ${I}?`,acceptedAnswer:{"@type":"Answer",text:`Sim. Cobrimos ${I} 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 ${I}?`,acceptedAnswer:{"@type":"Answer",text:`Em ${I} 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 ${I}?`,acceptedAnswer:{"@type":"Answer",text:`Sim. Em ${I} 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 ",I]}),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 ",I,"?"]}),e.jsxs(y,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["O preço do guincho em ",I," 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 ",I," funciona 24 horas?"]}),e.jsxs(y,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Sim! Nosso serviço de guincho em ",I," 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 ",I,"?"]}),e.jsxs(y,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["O tempo de chegada depende da sua localização em ",I," 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 ",I,"?"]}),e.jsxs(y,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Sim. Cobrimos ",I," 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 ",I,"?"]}),e.jsxs(y,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Em ",I," 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 ",I,"?"]}),e.jsxs(y,{className:"text-muted-foreground",style:{lineHeight:1.6},children:["Sim. Em ",I," 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(l,{onLocationSelect:k})]}),e.jsx("div",{className:"lg:sticky lg:top-4",children:e.jsx(d,{citySlug:w,cityName:I,state:_,serviceType:"guincho",pickupLocation:$})})]})})}),e.jsx(n,{})]})}S.globalOptions=void 0;export{q as default};