1import{e as Z,a0 as V,r as x,j as e,D as R,ay as J,N as U,aE as K,A as X}from"./vendor-ToLLDpS-.js";import{O as Y,v as ee,W as se,L as z,S as te,N as ae}from"./index-BHIVzZ7i.js";import{o as w,p as le}from"./cloudinaryUrl-CtYExpLT.js";import{g as ie}from"./google-reviews-C9G3vDaG.js";import"./content-category-Cfm5wumt.js";const o="https://pneusquebec.net",u="(438) 817-4112",p={weekdays:"Lundi au vendredi: 9:00 à 17:00",saturday:"Samedi: 10:00 à 16:00",sunday:"Dimanche: 10:00 à 13:00"},d=(s,l)=>s?s.replace(/\{\{locations?\}\}/gi,l):"",ne={"riviere-des-prairies-pointe-aux-trembles":"Rivière-des-Prairies","mercier-hochelaga-maisonneuve":"Hochelaga-Maisonneuve","montreal-nord":"Montréal-Nord","saint-leonard":"Saint-Léonard",montreal:"Montréal",anjou:"Anjou"},re=s=>ne[s==null?void 0:s.slug]||String((s==null?void 0:s.name)||"").split("â")[0].trim(),F=(s,l,i)=>String((s==null?void 0:s.slug)||"").startsWith("pose-de-pneus")?`Pose pneu camion à ${re(l)} | Pneus Québec`:d(s==null?void 0:s.meta_title_template,i)||`${s==null?void 0:s.name} à ${i}`,ce=s=>{if(typeof s!="string"||!s)return null;const l=s.match(/<iframe[^>]+src="([^"]+)"/i);if(!l)return null;const i=l[1];return/^https:\/\/www\.google\.com\/maps\/embed/i.test(i)?i:null},oe=({title:s,content:l})=>e.jsx("div",{className:"w-full mb-4",children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(U,{className:"w-4 h-4 text-gray-700 mt-0.5 flex-shrink-0"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold text-gray-900 text-sm",children:s}),l&&e.jsx("p",{className:"text-gray-600 text-xs leading-relaxed mt-1",children:l})]})]})}),de=({question:s,answer:l,index:i})=>{const[g,_]=x.useState(!1),f=`faq-panel-${i}`,y=`faq-button-${i}`;return e.jsxs("div",{className:"border border-gray-200 rounded-lg mb-3",children:[e.jsxs("button",{type:"button",id:y,"aria-expanded":g,"aria-controls":f,onClick:()=>_(!g),className:"w-full flex items-center justify-between p-4 text-left",children:[e.jsx("span",{className:"font-medium text-gray-900",children:s}),g?e.jsx(K,{className:"w-5 h-5 text-brand-blue flex-shrink-0 ml-2","aria-hidden":"true"}):e.jsx(X,{className:"w-5 h-5 text-brand-blue flex-shrink-0 ml-2","aria-hidden":"true"})]}),g&&e.jsx("div",{id:f,role:"region","aria-labelledby":y,className:"px-4 pb-4 text-gray-600 text-sm leading-relaxed",children:l})]})};function be(){const{t:s}=Z("services"),{combinedSlug:l}=V(),[i,g]=x.useState(null),[_,f]=x.useState(!0),[y,I]=x.useState(null),[me,xe]=x.useState(0);x.useEffect(()=>{let a=!1;return(async()=>{var c;try{f(!0);const h=await le.get(`/services/page/${l}`);if(a)return;g(h.data),I(null)}catch(h){if(a)return;console.error("Error fetching service page:",h),I(((c=h.response)==null?void 0:c.status)===404?"Page not found":"Failed to load page")}finally{a||f(!1)}})(),()=>{a=!0}},[l]);const H=x.useMemo(()=>{if(!i)return null;const{serviceType:a,location:n}=i,c=n.name,h=a.slug,W=n.slug,m=`/services/${h}-${W}`,G=F(a,n,c),O=d(a.meta_description_template,c)||`Service de ${a.name.toLowerCase()} à ${c}. Contactez-nous pour plus d'informations.`,q=Array.isArray(a.faq_items)?a.faq_items:[],C=d(a.hero_title_template,c)||`${a.name} à ${c}`,A=String(a.slug||"").startsWith("pose-de-pneus")?"/pose-de-pneus-de-camion-lourd":null,k={"@context":"https://schema.org","@graph":[Y,{"@type":"Service","@id":`${o}${m}#service`,name:C,description:O,provider:{"@id":ee},areaServed:{"@type":"City",name:c,containedInPlace:{"@type":"City",name:"Montréal"}},serviceType:a.name,url:`${o}${m}`,image:a.hero_image_url?String(a.hero_image_url).trim():void 0},{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Accueil",item:`${o}/`},...A?[{"@type":"ListItem",position:2,name:a.name,item:`${o}${A}`}]:[],{"@type":"ListItem",position:A?3:2,name:C,item:`${o}${m}`}]},{"@type":"WebPage","@id":`${o}${m}`,url:`${o}${m}`,name:G,description:O,inLanguage:"fr-CA",isPartOf:{"@id":se},about:{"@id":`${o}${m}#service`}}]};return q.length>0&&k["@graph"].push({"@type":"FAQPage","@id":`${o}${m}#faq`,mainEntity:q.map(D=>
1({"@type":"Question",name:D.question,acceptedAnswer:{"@type":"Answer",text:D.answer}}))}),k},[i]);if(_)return e.jsx("div",{className:"min-h-screen flex items-center justify-center",children:e.jsx("div",{className:"w-8 h-8 border-2 border-brand-blue border-t-transparent rounded-full animate-spin"})});if(y||!i)return e.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center",children:[e.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-4",children:s("dynamicPage.pageNotFound")}),e.jsx(z,{to:"/",className:"text-brand-blue hover:underline",children:s("dynamicPage.backToHome")})]});const{serviceType:t,location:b,otherServices:v}=i,r=b.name,M=t.slug,L=b.slug,T=F(t,b,r),B=d(t.meta_description_template,r)||`Service de ${t.name.toLowerCase()} Ã ${r}. Contactez-nous pour plus d'informations.`,E=d(t.hero_title_template,r),j=d(t.section1_title_template,r),N=d(t.section3_title_template,r),P=Array.isArray(t.section1_bullet_points)?t.section1_bullet_points:[],S=Array.isArray(t.section2_items)?t.section2_items:[],$=Array.isArray(t.faq_items)?t.faq_items:[],Q=`/services/${M}-${L}`;return e.jsxs("div",{className:"bg-white",children:[e.jsx(te,{titleOverride:T,description:B,url:Q,image:t.hero_image_url,structuredData:H,hasEnglishVersion:!1}),e.jsx("section",{className:"bg-white",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4 py-12 lg:py-16",children:e.jsxs("div",{className:"flex flex-col lg:flex-row gap-8 items-center",children:[t.hero_image_url&&e.jsx("div",{className:"lg:w-1/2",children:e.jsx("img",{src:w(t.hero_image_url,800),alt:E,width:"600",height:"400",fetchpriority:"high",decoding:"async",className:"w-full aspect-[3/2] max-h-[400px] rounded-lg shadow-lg object-cover"})}),e.jsxs("div",{className:`${t.hero_image_url?"lg:w-1/2":"w-full"} flex flex-col items-center text-center`,children:[e.jsx("h1",{className:"text-3xl lg:text-4xl font-bold text-gray-900 mb-4",children:E}),t.hero_subtitle&&e.jsx("p",{className:"text-gray-600 mb-6 text-lg",children:t.hero_subtitle}),e.jsxs("a",{href:`tel:+1${u.replace(/[^0-9]/g,"")}`,"aria-label":s("dynamicPage.callAriaLabel",{phone:u}),className:"inline-flex items-center gap-2 bg-brand-blue text-white font-semibold text-lg px-8 py-3 rounded-lg hover:bg-blue-600 transition-colors mb-8",children:[e.jsx(R,{className:"w-5 h-5","aria-hidden":"true"}),u]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-8 w-full justify-center",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("img",{src:ie,alt:s("dynamicPage.googleReviewsAlt"),width:"256",height:"144",loading:"lazy",decoding:"async",className:"h-16 object-contain mb-1"}),e.jsx("span",{className:"text-sm text-gray-600",children:s("dynamicPage.googleReviewsLabel")})]}),e.jsxs("div",{className:"text-left",children:[e.jsxs("h2",{className:"font-semibold text-gray-900 text-lg mb-2 flex items-center gap-2",children:[e.jsx(J,{className:"w-4 h-4"}),s("dynamicPage.businessHoursTitle")]}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[e.jsx("li",{children:p.weekdays}),e.jsx("li",{children:p.saturday}),e.jsx("li",{children:p.sunday})]})]})]})]})]})})}),e.jsx("section",{className:"py-16 lg:py-20 bg-white border-t border-gray-100",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 text-center",children:[e.jsx("h2",{className:"text-2xl lg:text-3xl font-bold text-gray-900 mb-12",children:s("dynamicPage.otherServicesAt",{location:r})}),e.jsxs("div",{className:"flex flex-col sm:flex-row justify-center items-center sm:items-start gap-12 sm:gap-16",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("img",{src:"https://res.cloudinary.com/ddl4lobgx/image/upload/f_auto,q_auto,w_200,c_limit/v1767648341/icon-service-mobile_gckqda.png",alt:s("dynamicPage.fleetInspectionIconAlt"),width:"112",height:"112",loading:"lazy",decoding:"async",className:"w-24 h-24 lg:w-28 lg:h-28 object-contain mb-4"}),e.jsx("span",{className:"text-base text-gray-700 max-w-[180px]",children:s("dynamicPage.fleetInspectionLabel")})]}),e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("img",{src:"https://res.cloudinary.com/ddl4lobgx/image/upload/f_auto,q_auto,w_200,c_limit/v1767648341/icon-pose-pneus_y6dhzg.png",alt:s("dynamicPage.tireInstallationIconAlt"),width:"112",he
1ight:"112",loading:"lazy",decoding:"async",className:"w-24 h-24 lg:w-28 lg:h-28 object-contain mb-4"}),e.jsx("span",{className:"text-base text-gray-700 max-w-[180px]",children:s("dynamicPage.tireInstallationLabel")})]})]})]})}),(j||t.section1_content||P.length>0)&&e.jsx("section",{className:"py-12 lg:py-16",style:{backgroundColor:"#5FE1E6"},children:e.jsx("div",{className:"max-w-6xl mx-auto px-4",children:e.jsxs("div",{className:"flex flex-col lg:flex-row gap-8 items-center",children:[e.jsxs("div",{className:t.section1_image_url?"lg:w-1/2":"w-full",children:[j&&e.jsx("h2",{className:"text-2xl lg:text-3xl font-bold text-gray-900 mb-4",children:j}),t.section1_content&&e.jsx("p",{className:"text-gray-600 mb-6 leading-relaxed",children:t.section1_content}),P.length>0&&e.jsx("ul",{className:"space-y-3",children:P.map((a,n)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"w-2 h-2 bg-brand-blue rounded-full mt-2 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:a})]},n))})]}),t.section1_image_url&&e.jsx("div",{className:"lg:w-1/2",children:e.jsx("img",{src:w(t.section1_image_url,700),alt:j||s("dynamicPage.serviceImageAlt"),width:"600",height:"350",loading:"lazy",decoding:"async",className:"w-full aspect-[12/7] max-h-[350px] rounded-lg shadow-lg object-cover"})})]})})}),(t.section2_title||S.length>0)&&e.jsx("section",{className:"py-12 lg:py-16 bg-white",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4",children:e.jsxs("div",{className:"flex flex-col lg:flex-row gap-8 items-center",children:[e.jsxs("div",{className:t.section2_image_url?"w-full lg:w-1/2":"w-full max-w-3xl mx-auto",children:[t.section2_title&&e.jsx("h2",{className:"text-2xl lg:text-3xl font-bold text-gray-900 mb-6",children:t.section2_title}),S.length>0&&e.jsx("div",{className:"w-full",children:S.map((a,n)=>e.jsx(oe,{title:a.title,content:a.content},n))})]}),t.section2_image_url&&e.jsx("div",{className:"w-full lg:w-1/2",children:e.jsx("img",{src:w(t.section2_image_url,700),alt:t.section2_title||s("dynamicPage.servicesAlt"),width:"600",height:"350",loading:"lazy",decoding:"async",className:"w-full aspect-[12/7] max-h-[350px] rounded-lg shadow-lg object-cover"})})]})})}),e.jsx("section",{className:"py-12 lg:py-16 bg-white",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4",children:e.jsxs("div",{className:"flex flex-col lg:flex-row gap-8 items-center",children:[e.jsxs("div",{className:"w-full lg:w-1/2",children:[v.length>0&&e.jsx("h2",{className:"text-2xl lg:text-3xl font-bold text-gray-900 mb-6",children:s("dynamicPage.otherServicesOffered",{location:r})}),v.length>0&&e.jsx("div",{className:"mb-8",children:v.map(a=>e.jsxs(z,{to:`/services/${a.slug}-${L}`,className:"flex items-center justify-between py-3 border-b border-gray-200 group hover:bg-gray-50 transition-colors",children:[e.jsx("span",{className:"text-brand-blue font-bold group-hover:text-blue-700 transition-colors",children:d(a.hero_title_template,r)||a.name}),e.jsx(U,{className:"w-5 h-5 text-brand-blue group-hover:text-blue-700 transition-colors"})]},a.id))}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:s("dynamicPage.contactUs")}),e.jsxs("a",{href:`tel:+1${u.replace(/[^0-9]/g,"")}`,"aria-label":s("dynamicPage.callAriaLabel",{phone:u}),className:"inline-flex items-center gap-2 bg-brand-blue text-white font-medium px-5 py-2 rounded-lg hover:bg-blue-600 transition-colors mb-3",children:[e.jsx(R,{className:"w-4 h-4","aria-hidden":"true"}),u]}),e.jsx(ae,{as:"p",className:"text-gray-600 text-sm",children:"[email protected]"})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:s("dynamicPage.businessHoursTitle")}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[e.jsx("li",{children:p.weekdays}),e.jsx("li",{children:p.saturday}),e.jsx("li",{children:p.sunday})]})]})]})]}),(()=>{const a=ce(b.map_embed_code);return a?e.jsx("div",{className:"w-full lg:w-1/2",children:e.jsx("iframe",{src:a,title:s("dynamicPage.mapTitle",{location:b.name}),width:"600",height:"450",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",allowFullScreen:!0,className:"w-full rounded-lg shadow-lg h-full min-h-[300px] border-0"})}):null})()]})})}),(N||t.section3_content||$.length>0)&&e.jsx("section",{className:"py-12 lg:py-16",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4",children:e.jsxs("div",{className:"flex flex-col lg:flex-row gap-8 items-start",children:[e.jsxs("div",{className:t.
1section3_image_url?"w-full lg:w-1/2":"w-full max-w-3xl mx-auto",children:[N&&e.jsx("h2",{className:"text-2xl lg:text-3xl font-bold text-gray-900 mb-4",children:N}),t.section3_content&&e.jsx("p",{className:"text-gray-600 leading-relaxed mb-8",children:t.section3_content}),$.length>0&&e.jsxs("div",{className:"mt-6",children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:s("dynamicPage.frequentlyAskedQuestions")}),e.jsx("div",{children:$.map((a,n)=>e.jsx(de,{index:n,question:a.question,answer:a.answer},n))})]})]}),t.section3_image_url&&e.jsx("div",{className:"w-full lg:w-1/2 self-stretch",children:e.jsx("img",{src:w(t.section3_image_url,700),alt:N||s("dynamicPage.serviceImageAlt"),width:"600",height:"350",loading:"lazy",decoding:"async",className:"w-full h-full rounded-lg shadow-lg object-cover min-h-[300px]"})})]})})})]})}export{be as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.