PageSourceSearch

https://www.carstar.ca/_next/static/chunks/8218-0eb17daebab09c1d.js

js carstar.ca collected 2026-09-28 10:48:41 UTC 51,436 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4659,7040,8218],{108629:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(695155),l=n(212115),o=n(447650),s=n(738637),r=n.n(s),a=n(135695),d=n(986713);function c(e){let{locationOperatingHours:t,onClose:n,holidayDisclaimer:o}=e,s=(0,a.usePathname)(),[r,c]=(0,l.useState)("en");(0,l.useEffect)(()=>{c((0,d.Mc)(s))},[s]);let u="en"===r?["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]:["Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche"];function p(e){if(!e)return"";let[t,n]=e.split(":"),i=parseInt(t,10),l=i>=12?"pm":"am";return i=i%12||12,"".concat(i,":").concat(n||"00").concat(l)}return(0,i.jsx)("div",{className:"fixed inset-0 bg-black/90 flex md:items-center items-end justify-center z-[600]",onClick:n,role:"presentation",children:(0,i.jsxs)("div",{className:"relative transform overflow-hidden rounded-tl-lg rounded-tr-lg md:rounded-lg bg-white    px-4 pt-5 pb-3 text-left shadow-xl transition-all w-full md:max-w-[19em] md:p-6",onClick:e=>{e.stopPropagation()},children:[(0,i.jsxs)("button",{onClick:n,type:"button","aria-label":"Close modal",className:"w-[30px] h-[30px] focus:ring-2 focus:ring-[#EFEFEF] focus:ring-offset-2 focus:outline-hidden rounded-full bg-[#EFEFEF] hover:bg-[#EFEFEF] flex items-center justify-center absolute right-3 top-3 cursor-pointer",children:[(0,i.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M3.99997 4.81663L1.14163 7.67497C1.03469 7.78191 0.898579 7.83538 0.733301 7.83538C0.568023 7.83538 0.431912 7.78191 0.324967 7.67497C0.218023 7.56802 0.164551 7.43191 0.164551 7.26663C0.164551 7.10136 0.218023 6.96525 0.324967 6.8583L3.1833 3.99997L0.324967 1.14163C0.218023 1.03469 0.164551 0.898579 0.164551 0.733301C0.164551 0.568023 0.218023 0.431912 0.324967 0.324967C0.431912 0.218023 0.568023 0.164551 0.733301 0.164551C0.898579 0.164551 1.03469 0.218023 1.14163 0.324967L3.99997 3.1833L6.8583 0.324967C6.96525 0.218023 7.10136 0.164551 7.26663 0.164551C7.43191 0.164551 7.56802 0.218023 7.67497 0.324967C7.78191 0.431912 7.83538 0.568023 7.83538 0.733301C7.83538 0.898579 7.78191 1.03469 7.67497 1.14163L4.81663 3.99997L7.67497 6.8583C7.78191 6.96525 7.83538 7.10136 7.83538 7.26663C7.83538 7.43191 7.78191 7.56802 7.67497 7.67497C7.56802 7.78191 7.43191 7.83538 7.26663 7.83538C7.10136 7.83538 6.96525 7.78191 6.8583 7.67497L3.99997 4.81663Z",fill:"black"})}),(0,i.jsx)("span",{className:"sr-only opacity-0",children:"Close"})]}),(0,i.jsx)("div",{className:"text-left",children:(0,i.jsx)("h2",{className:"text-xl font-bold mb-3 w-4/5",children:"en"===r?"Hours of Operation":"Heures d'ouverture"})}),o&&(0,i.jsx)("div",{className:"text-left",children:(0,i.jsx)("p",{className:"text-grey text-[0.75em] leading-[1.3em] italic font-normal",children:o})}),(0,i.jsx)("div",{className:"text-gray-800 leading-relaxed mt-1 overflow-auto max-h-[65vh]",children:(0,i.jsx)("table",{className:"w-full text-left",children:(0,i.jsx)("tbody",{children:u.map((e,n)=>{let l=t.find(e=>e.dayOfWeekId-1===n),o=l&&l.openTime&&l.closeTime?"".concat(p(l.openTime)," - ").concat(p(l.closeTime)):"en"===r?"Closed":"Ferm\xe9";return(0,i.jsxs)("tr",{className:"text-grey font-medium text-base ".concat(n!==u.length-1?"border-b border-[#D9D9D9]":""),children:[(0,i.jsx)("td",{className:"py-2 max-w-[40%] w-[40%] min-w-[6.25em]",children:e}),(0,i.jsx)("td",{className:"py-2",children:o})]},e)})})})})]})})}function u(e){let{locationOperatingHours:t,onClose:n,holidayDisclaimer:s}=e;return(0,l.useEffect)(()=>(window.innerWidth<767&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[]),o.createPortal((0,i.jsx)(c,{locationOperatingHours:t,onClose:n,holidayDisclaimer:s}),document.body)}c.propTypes={locationOperatingHours:r().arrayOf(r().shape({dayOfWeekId:r().number.isRequired,openTime:r().string,closeTime:r().string})).isRequired,onClose:r().func.isRequired,holidayDisclaimer:r().string},u.propTypes={locationOperatingHours:r().arrayOf(r().shape({dayOfWeekId:r().number.isRequired,openTime:r().str
1ing,closeTime:r().string})).isRequired,onClose:r().func.isRequired,holidayDisclaimer:r().string}},168519:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var i=n(695155),l=n(212115),o=n(519988),s=n(738637),r=n.n(s),a=n(135695),d=n(404659),c=n(986713),u=n(901177),p=n(787079),m=n(755086),C=n(647824),g=n(399338),h=n(108629);function x(e){var t,n,o,s;let{data:r,setShowMobileInfoWindow:x}=e;if(!r)return null;let[v,w]=(0,l.useState)(!1),[b,y]=(0,l.useState)(!1);function j(e){if(!e)return"";let[t,n]=e.split(":"),i=parseInt(t,10),l=i>=12?"pm":"am";return i=i%12||12,"".concat(i,":").concat(n||"00").concat(l)}let L=()=>{x(),y(!1)},H=e=>{console.log(e),y(!0)},N=e=>{console.log(e),y(!0)},R=(0,a.usePathname)(),[k,M]=(0,l.useState)("en");return(0,l.useEffect)(()=>{M((0,c.Mc)(R))},[R]),(0,i.jsxs)("div",{onClick:()=>N(r),id:"infowindow-".concat(r.id),className:"infowindow-full fixed inset-0 z-[99] block overflow-hidden bg-black/40 backdrop-blur-[.25em] md:relative md:inset-auto md:z-[2] md:h-auto md:w-auto md:bg-white",children:[b&&(0,i.jsx)("button",{type:"button",onClick:L,className:"absolute inset-0 w-full h-full opacity-0 z-[100]",children:"\xa0"}),(0,i.jsxs)("div",{onClick:()=>H(r),className:"fixed left-0 right-0 z-[101] max-h-[calc(100svh-env(safe-area-inset-bottom,0px))] w-full overflow-y-auto overscroll-contain rounded-tl-[10px] rounded-tr-[10px] bg-white p-5 pb-[calc(env(safe-area-inset-bottom,0px)+20px)] md:static md:left-1/2 md:top-1/2 md:max-h-none md:w-[18.75em] md:-translate-x-1/2 md:-translate-y-1/2 md:transform md:overflow-visible",style:{bottom:"env(safe-area-inset-bottom, 0px)"},children:[(0,i.jsxs)("div",{className:"relative flex",children:[(0,i.jsxs)("div",{className:"w-[80%]",children:[(0,i.jsx)(d.default,{href:"/locations/".concat((0,u.r_)("".concat(null==r?void 0:r.state,"/").concat(null==r?void 0:r.city,"/").concat(null==r?void 0:r.name,"-").concat(null==r?void 0:r.storeId))),className:"mb-1 text-[20px] font-semibold leading-[24px] text-black",children:"fr"===k&&(null==r?void 0:r.name_FR)?null==r?void 0:r.name_FR:null==r?void 0:r.name}),(0,i.jsxs)("div",{className:"flex items-center gap-1 text-[.6em] leading-[22px] text-[#757575]",children:[(null==r?void 0:r.avgRating)>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.A,{rating:null==r?void 0:r.avgRating,ratingTotal:null==r?void 0:r.ratingTotal}),(null==r?void 0:r.miles)>0&&(0,i.jsx)("p",{children:"\xb7"})]}),(0,i.jsx)("p",{className:"font-medium",children:(!r.miles||r.miles<=0?"":"(".concat(Math.ceil(r.miles)," mi)")).replace(/[()]/g,"").trim()})]})]}),(0,i.jsx)("div",{className:"w-[20%]",children:(0,i.jsx)("div",{className:"absolute right-0 flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full bg-[#EFEFEF]",children:(0,i.jsx)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:L,children:(0,i.jsx)("path",{d:"M3.99997 4.81663L1.14163 7.67497C1.03469 7.78191 0.898579 7.83538 0.733301 7.83538C0.568023 7.83538 0.431912 7.78191 0.324967 7.67497C0.218023 7.56802 0.164551 7.43191 0.164551 7.26663C0.164551 7.10136 0.218023 6.96525 0.324967 6.8583L3.1833 3.99997L0.324967 1.14163C0.218023 1.03469 0.164551 0.898579 0.164551 0.733301C0.164551 0.568023 0.218023 0.431912 0.324967 0.324967C0.431912 0.218023 0.568023 0.164551 0.733301 0.164551C0.898579 0.164551 1.03469 0.218023 1.14163 0.324967L3.99997 3.1833L6.8583 0.324967C6.96525 0.218023 7.10136 0.164551 7.26663 0.164551C7.43191 0.164551 7.56802 0.218023 7.67497 0.324967C7.78191 0.431912 7.83538 0.568023 7.83538 0.733301C7.83538 0.898579 7.78191 1.03469 7.67497 1.14163L4.81663 3.99997L7.67497 6.8583C7.78191 6.96525 7.83538 7.10136 7.83538 7.26663C7.83538 7.43191 7.78191 7.56802 7.67497 7.67497C7.56802 7.78191 7.43191 7.83538 7.26663 7.83538C7.10136 7.83538 6.96525 7.78191 6.8583 7.67497L3.99997 4.81663Z",fill:"black"})})})})]}),(0,i.jsx)("div",{className:"mb-[25px] mt-2 scrollbar-hide mr-[-20px] w-[calc(100%+20px)] overflow-x-auto",children:(0,i.jsxs)("div",{className:"flex min-w-max gap-3 pr-4",children:[(0,i.jsxs)(d.default,{href:"/locations/".concat((0,u.r_)("".concat(null==r?void 0:r.state,"/").concat(null==r?void 0:r.city,"/").concat(null==r?void 0:r.name,"-").concat(null==r?void 0:r.storeId))),className:"!flex leading-[1em] items-center gap-2 whitespace-nowrap rounded-[100px] bg-[#F7F7F7] px-4 py-[11px] backdrop-blur-[5px]",children:[(0,i.jsx)("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M7.10509 14.9809C6.94572 14.9809 6.812
116 14.927 6.70441 14.8191C6.59678 14.7114 6.54297 14.5778 6.54297 14.4184V10.5963C6.54297 10.5184 6.54803 10.4405 6.55816 10.3626C6.56816 10.2848 6.58566 10.2107 6.61066 10.1404L7.37659 7.97407C7.46697 7.70407 7.63078 7.48463 7.86803 7.31576C8.10528 7.14701 8.37078 7.06263 8.66453 7.06263H12.9598C13.2535 7.06263 13.519 7.14701 13.7563 7.31576C13.9935 7.48463 14.1573 7.70407 14.2477 7.97407L15.0137 10.1404C15.0387 10.2107 15.0562 10.2848 15.0662 10.3626C15.0763 10.4405 15.0813 10.5184 15.0813 10.5963V14.4184C15.0813 14.5778 15.0274 14.7114 14.9195 14.8191C14.8117 14.927 14.678 14.9809 14.5187 14.9809C14.3592 14.9809 14.2256 14.927 14.118 14.8191C14.0102 14.7114 13.9563 14.5778 13.9563 14.4184V13.7838H7.66797V14.4184C7.66797 14.5778 7.61403 14.7114 7.50616 14.8191C7.39828 14.927 7.26459 14.9809 7.10509 14.9809ZM7.75441 9.62988H13.8699L13.3376 8.11545C13.3232 8.06745 13.2968 8.02901 13.2583 8.00013C13.2198 7.97126 13.1741 7.95682 13.1212 7.95682H8.50309C8.45009 7.95682 8.40441 7.97126 8.36603 8.00013C8.32753 8.02901 8.30109 8.06745 8.28672 8.11545L7.75441 9.62988ZM8.59103 12.3846C8.79128 12.3846 8.95909 12.3169 9.09447 12.1816C9.22997 12.0461 9.29772 11.8782 9.29772 11.6779C9.29772 11.4777 9.22997 11.3099 9.09447 11.1745C8.95909 11.039 8.79128 10.9713 8.59103 10.9713C8.39078 10.9713 8.22291 11.039 8.08741 11.1745C7.95203 11.3099 7.88434 11.4777 7.88434 11.6779C7.88434 11.8782 7.95203 12.0461 8.08741 12.1816C8.22291 12.3169 8.39078 12.3846 8.59103 12.3846ZM13.0333 12.3846C13.2335 12.3846 13.4014 12.3169 13.5369 12.1816C13.6723 12.0461 13.74 11.8782 13.74 11.6779C13.74 11.4777 13.6723 11.3099 13.5369 11.1745C13.4014 11.039 13.2335 10.9713 13.0333 10.9713C12.833 10.9713 12.6652 11.039 12.5298 11.1745C12.3943 11.3099 12.3266 11.4777 12.3266 11.6779C12.3266 11.8782 12.3943 12.0461 12.5298 12.1816C12.6652 12.3169 12.833 12.3846 13.0333 12.3846ZM3.62941 8.98095V7.65401H4.95634V8.98095H3.62941ZM7.00441 4.85595V3.52901H8.33134V4.85595H7.00441ZM3.62941 11.9809V10.654H4.95634V11.9809H3.62941ZM3.62941 14.9809V13.654H4.95634V14.9809H3.62941ZM0.917969 14.9809V6.08182C0.917969 5.76545 1.02878 5.49645 1.25041 5.27482C1.47203 5.0532 1.74103 4.94238 2.05741 4.94238H4.29297V1.95682C4.29297 1.64057 4.40378 1.37157 4.62541 1.14982C4.84703 0.928196 5.11603 0.817383 5.43241 0.817383H9.90353C10.2198 0.817383 10.4887 0.928196 10.7103 1.14982C10.932 1.37157 11.0428 1.64057 11.0428 1.95682V5.47601H9.91797V1.94238H5.41797V6.06738H2.04297V14.9809H0.917969ZM7.43716 12.8896H14.1872V10.5241H7.43716V12.8896Z",fill:"#B2B2B2"})}),(0,i.jsx)("span",{className:"text-[.65em] font-semibold leading-[1em] text-[#6D6D6D]",children:"en"===k?"Store Details":"D\xe9tails du centre"})]}),(0,i.jsxs)(d.default,{href:"https://www.google.com/maps?ll=".concat(r.latitude,",").concat(r.longitude,"&z=7&t=m&hl=en-US&gl=US&mapclient=embed&daddr=").concat(encodeURIComponent("".concat(r.city," ").concat(r.state)),"@").concat(r.latitude,",").concat(r.longitude),target:"_blank",rel:"noreferrer",className:"!flex leading-[1em] items-center gap-2 whitespace-nowrap rounded-[100px] bg-[#F7F7F7] px-4 py-[11px] backdrop-blur-[5px]",children:[(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M6.31202 7.81251H9.31202V8.65045C9.31202 8.79657 9.37621 8.89732 9.50459 8.9527C9.63296 9.00795 9.75002 8.9827 9.85577 8.87695L11.0586 7.67395C11.1798 7.55157 11.2405 7.40876 11.2405 7.24551C11.2405 7.08214 11.1789 6.93926 11.0558 6.81689L9.85577 5.62307C9.75002 5.51732 9.63296 5.4907 9.50459 5.5432C9.37621 5.5957 9.31202 5.69539 9.31202 5.84226V6.68751H5.86484C5.67284 6.68751 5.51184 6.75245 5.38184 6.88232C5.25196 7.01232 5.18702 7.17332 5.18702 7.36532V9.50001C5.18702 9.65939 5.24096 9.79295 5.34884 9.9007C5.45671 10.0086 5.59034 10.0625 5.74971 10.0625C5.90921 10.0625 6.04277 10.0086 6.1504 9.9007C6.25815 9.79295 6.31202 9.65939 6.31202 9.50001V7.81251ZM8.00102 15.0239C7.83177 15.0239 7.66502 14.9901 7.50077 14.9223C7.33652 14.8546 7.18646 14.7529 7.05059 14.6173L1.38227 8.94895C1.24665 8.8137 1.14496 8.66426 1.07721 8.50064C1.00946 8.33701 0.975586 8.17064 0.975586 8.00151C0.975586 7.83226 1.00946 7.66551 1.07721 7.50126C1.14496 7.33701 1.24665 7.18695 1.38227 7.05107L7.05059 1.38276C7.18584 1.24714 7.33527 1.14545 7.4989 1.0777C7.66252 1.00995 7.8289 0.976074 7.99802 0.976074C8.16727 0.976074 8.33402 1.00995 8.49827 1.0777C8.66252 1.14545 8.81259 1.24714 8.94846 1.38276L14.6168 7.05107C14.7524 7.18632 14.8541 7.33576 14.9218 7.49939C14.9896 7.66301 15.0235 7.82939 15.0235 7.99851C15.0235 8.16776 14.9896 8.33451 14.9218 8.49876C14.8541 8.66301 14.7524 8.81307 14.6168 8.94895L8.94846 14.6173C8.81321 14.7529 8.66377 14.8546 8.50015 14.9223C8.33652 14.9901 8.1701
15 15.0239 8.00102 15.0239ZM7.8409 13.8414C7.88415 13.8846 7.93702 13.9063 7.99952 13.9063C8.06202 13.9063 8.1149 13.8846 8.15815 13.8414L13.8409 8.15864C13.8841 8.11539 13.9058 8.06251 13.9058 8.00001C13.9058 7.93751 13.8841 7.88464 13.8409 7.84139L8.15815 2.15864C8.1149 2.11539 8.06202 2.09376 7.99952 2.09376C7.93702 2.09376 7.88415 2.11539 7.8409 2.15864L2.15815 7.84139C2.1149 7.88464 2.09327 7.93751 2.09327 8.00001C2.09327 8.06251 2.1149 8.11539 2.15815 8.15864L7.8409 13.8414Z",fill:"#B2B2B2"})}),(0,i.jsx)("span",{className:"text-[13px] font-semibold leading-[1em] text-[#6D6D6D]",children:"en"===k?"Directions":"Itin\xe9raires"})]}),(null==r?void 0:null===(t=r.locationDetail)||void 0===t?void 0:t.progi_widget_key)&&(null==r?void 0:null===(n=r.locationDetail)||void 0===n?void 0:n.progi_sup_supplier_id)&&(0,i.jsxs)(d.default,{href:"/locations/".concat((0,u.r_)("".concat(null==r?void 0:r.state,"/").concat(null==r?void 0:r.city,"/").concat(null==r?void 0:r.name,"-").concat(null==r?void 0:r.storeId))),rel:"noopener noreferrer",className:"!flex leading-[1em] items-center gap-2 whitespace-nowrap rounded-[100px] bg-[#F7F7F7] px-4 py-[11px] backdrop-blur-[5px]",children:[(0,i.jsx)("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M1.48081 14.375C1.10194 14.375 0.78125 14.2438 0.51875 13.9813C0.25625 13.7188 0.125 13.3981 0.125 13.0192V4.48081C0.125 4.10194 0.25625 3.78125 0.51875 3.51875C0.78125 3.25625 1.10194 3.125 1.48081 3.125H3.77113L4.75194 2.06206C4.87594 1.92756 5.02537 1.82113 5.20025 1.74275C5.375 1.66425 5.55825 1.625 5.75 1.625H8.79331C8.95269 1.625 9.08625 1.67894 9.194 1.78681C9.30188 1.89469 9.35581 2.02831 9.35581 2.18769C9.35581 2.34719 9.30188 2.48075 9.194 2.58838C9.08625 2.69613 8.95269 2.75 8.79331 2.75H5.64913L4.27306 4.25H1.48081C1.41344 4.25 1.35813 4.27163 1.31488 4.31488C1.27163 4.35813 1.25 4.41344 1.25 4.48081V13.0192C1.25 13.0866 1.27163 13.1419 1.31488 13.1851C1.35813 13.2284 1.41344 13.25 1.48081 13.25H13.0192C13.0866 13.25 13.1419 13.2284 13.1851 13.1851C13.2284 13.1419 13.25 13.0866 13.25 13.0192V7.20669C13.25 7.04731 13.3039 6.91375 13.4118 6.806C13.5197 6.69812 13.6533 6.64419 13.8127 6.64419C13.9722 6.64419 14.1058 6.69812 14.2134 6.806C14.3211 6.91375 14.375 7.04731 14.375 7.20669V13.0192C14.375 13.3981 14.2438 13.7188 13.9813 13.9813C13.7188 14.2438 13.3981 14.375 13.0192 14.375H1.48081ZM13.25 2.75H12.3125C12.1531 2.75 12.0195 2.69606 11.9116 2.58819C11.8039 2.48031 11.75 2.34669 11.75 2.18731C11.75 2.02781 11.8039 1.89425 11.9116 1.78662C12.0195 1.67887 12.1531 1.625 12.3125 1.625H13.25V0.6875C13.25 0.528125 13.3039 0.394563 13.4118 0.286813C13.5197 0.178938 13.6533 0.125 13.8127 0.125C13.9722 0.125 14.1058 0.178938 14.2134 0.286813C14.3211 0.394563 14.375 0.528125 14.375 0.6875V1.625H15.3125C15.4719 1.625 15.6054 1.67894 15.7132 1.78681C15.8211 1.89469 15.875 2.02831 15.875 2.18769C15.875 2.34719 15.8211 2.48075 15.7132 2.58838C15.6054 2.69613 15.4719 2.75 15.3125 2.75H14.375V3.6875C14.375 3.84688 14.3211 3.9805 14.2132 4.08838C14.1053 4.19613 13.9717 4.25 13.8123 4.25C13.6528 4.25 13.5192 4.19613 13.4116 4.08838C13.3039 3.9805 13.25 3.84688 13.25 3.6875V2.75ZM7.25 11.8364C8.11063 11.8364 8.84019 11.5372 9.43869 10.9387C10.0372 10.3402 10.3364 9.61063 10.3364 8.75C10.3364 7.88937 10.0372 7.15981 9.43869 6.56131C8.84019 5.96281 8.11063 5.66356 7.25 5.66356C6.38937 5.66356 5.65981 5.96281 5.06131 6.56131C4.46281 7.15981 4.16356 7.88937 4.16356 8.75C4.16356 9.61063 4.46281 10.3402 5.06131 10.9387C5.65981 11.5372 6.38937 11.8364 7.25 11.8364ZM7.25 10.7116C6.69612 10.7116 6.23075 10.5231 5.85388 10.1461C5.47688 9.76925 5.28837 9.30388 5.28837 8.75C5.28837 8.19612 5.47688 7.73075 5.85388 7.35387C6.23075 6.97687 6.69612 6.78838 7.25 6.78838C7.80388 6.78838 8.26925 6.97687 8.64613 7.35387C9.02313 7.73075 9.21163 8.19612 9.21163 8.75C9.21163 9.30388 9.02313 9.76925 8.64613 10.1461C8.26925 10.5231 7.80388 10.7116 7.25 10.7116Z",fill:"#B2B2B2"})}),(0,i.jsx)("span",{className:"text-[13px] font-semibold leading-[1em] text-[#6D6D6D]",children:"en"===k?"Photo Estimate":"Estimation photo"})]})]})}),(0,i.jsxs)("div",{className:"my-[25px] w-full",children:[(0,i.jsxs)("p",{className:"text-base m-0 font-medium leading-[22px] text-[#757575]",children:[(0,C.A)(r),""!==j(null===(o=(0,g.A)(null==r?void 0:r.locationOperatingHours))||void 0===o?void 0:o.closeTime)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"px-[3px]",children:"\xb7"}),(0,i.jsxs)("span",{children:["en"===k?"Closed":"Ferm\xe9"," ",j(null===(s=(0,g.A)(null==r?void 0:r.locationOperatingHours))||void 0===s?void 0:s.closeTime)]})]}):null,(0,i.jsx)("span",{className:"px-[3px]",children:"\xb7"}),(0,i.jsx)("button",{type:"button",className:"text-[16px] font-medium leading-[22px] text-[#757575] underline underline-offset-[1px]",onClick:e=>{e.preventDefault(),w(!0)},children:"en"===k?"View Hours":"Afficher les heures"})]}),(0,i.jsx)("p",{className:"text-base m-0 font-medium leading-[22px] text-[#757575]",children:r.address1}),(0,i.jsxs)("p",{className:"text-base m-0 font-medium leading-[22px] text-[#757575]",children:[r.city,", ",r.state," ",r.postalcode]}),v&&(0,i.jsx)(h.A,{locationOperatingHours:(null==r?void 0:r.locationOperatingHours)||[],onClose:()=>w(!1),holidayDisclaimer:null==r?void 0:r.holidayDisclaimer})]}),(0,i.jsxs)("div",{className:"mt-[25px] flex w-full flex-col gap-3",children:[(0,i.jsx)(f,{widgetHtml:null==r?void 0:r.scheduleLinkText}),(0,i.jsxs)(d.default,{href:"tel:".concat((0,p.A)(r.marchexNumber||r.ph
1one)),className:"h-[46px] w-full cursor-pointer rounded-[100px] bg-[linear-gradient(92deg,_#E51937_73.44%,_#910015_98.65%)] p-3 py-3.5 text-center text-[15px] font-semibold leading-[16px] text-white backdrop-blur-[5px]","data-marchex-number":r.marchexNumber||"","data-analytics-event":"call","data-analytics-phone":r.marchexNumber||r.phone,"data-analytics-source":r.marchexNumber?"marchex":"direct",children:["en"===k?"Call":"t\xe9l\xe9phonez"," ",(0,p.A)(r.marchexNumber||r.phone)]})]})]})]})}function f(e){let{widgetHtml:t}=e;return(0,l.useEffect)(()=>{if(!t)return;let e=document.createElement("div");e.innerHTML=t;let n=e.querySelector("script");if(n&&n.src&&!document.querySelector('script[src="'.concat(n.src,'"]'))){let e=document.createElement("script");e.src=n.src,e.async=!0,document.body.appendChild(e)}},[t]),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:t?t.replace(/<script[\s\S]*?<\/script>/gi,""):""}})}function v(e){if(!e)return"";let[t,n]=e.split(":"),i=parseInt(t,10),l=i>=12?"pm":"am";return i=i%12||12,"".concat(i,":").concat(n||"00").concat(l)}function w(e){var t,n,o,s,r,x;let{data:f}=e,[w,b]=(0,l.useState)(!1),y=(0,a.usePathname)(),[j,L]=(0,l.useState)("en");return(0,l.useEffect)(()=>{L((0,c.Mc)(y))},[y]),(0,i.jsx)("div",{id:"infowindow-".concat(f.id),className:"fixed bottom-0 left-0 right-0 top-0 z-[2] block h-[100vh] w-[100vw] bg-black bg-opacity-40 backdrop-filter md:relative md:bottom-[unset] md:left-[unset] md:right-[unset] md:top-[unset] md:h-auto md:w-auto md:bg-white",children:(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"relative flex",children:(0,i.jsxs)("div",{className:"w-[80%]",children:[(0,i.jsx)(d.default,{href:"/locations/".concat((0,u.r_)("".concat(null==f?void 0:f.state,"/").concat(null==f?void 0:f.city,"/").concat(null==f?void 0:f.name,"-").concat(null==f?void 0:f.storeId))),className:"mb-1 text-[20px] font-semibold leading-[24px] text-black",children:"fr"===j&&(null==f?void 0:f.name_FR)?null==f?void 0:f.name_FR:null==f?void 0:f.name}),(0,i.jsxs)("div",{className:"flex items-center gap-1 text-[12px] text-[#757575]",children:[(null==f?void 0:f.avgRating)>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.A,{rating:null==f?void 0:f.avgRating,ratingTotal:null==f?void 0:f.ratingTotal}),(null==f?void 0:f.miles)>0&&(0,i.jsx)("p",{children:"\xb7"})]}),(0,i.jsx)("p",{className:"font-medium",children:!f.miles||f.miles<=0?"":"".concat(Math.ceil(f.miles)," mi")})]})]})}),(0,i.jsx)("div",{className:"my-[25px] w-full",children:(0,i.jsxs)("div",{className:"flex min-w-max gap-3 pr-4",children:[(0,i.jsxs)("div",{className:"flex items-center gap-[10px] whitespace-nowrap rounded-[100px] bg-[#F7F7F7] px-[18px] py-[11px] backdrop-blur-[5px]",children:[(0,i.jsx)("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M7.10509 14.9809C6.94572 14.9809 6.81216 14.927 6.70441 14.8191C6.59678 14.7114 6.54297 14.5778 6.54297 14.4184V10.5963C6.54297 10.5184 6.54803 10.4405 6.55816 10.3626C6.56816 10.2848 6.58566 10.2107 6.61066 10.1404L7.37659 7.97407C7.46697 7.70407 7.63078 7.48463 7.86803 7.31576C8.10528 7.14701 8.37078 7.06263 8.66453 7.06263H12.9598C13.2535 7.06263 13.519 7.14701 13.7563 7.31576C13.9935 7.48463 14.1573 7.70407 14.2477 7.97407L15.0137 10.1404C15.0387 10.2107 15.0562 10.2848 15.0662 10.3626C15.0763 10.4405 15.0813 10.5184 15.0813 10.5963V14.4184C15.0813 14.5778 15.0274 14.7114 14.9195 14.8191C14.8117 14.927 14.678 14.9809 14.5187 14.9809C14.3592 14.9809 14.2256 14.927 14.118 14.8191C14.0102 14.7114 13.9563 14.5778 13.9563 14.4184V13.7838H7.66797V14.4184C7.66797 14.5778 7.61403 14.7114 7.50616 14.8191C7.39828 14.927 7.26459 14.9809 7.10509 14.9809ZM7.75441 9.62988H13.8699L13.3376 8.11545C13.3232 8.06745 13.2968 8.02901 13.2583 8.00013C13.2198 7.97126 13.1741 7.95682 13.1212 7.95682H8.50309C8.45009 7.95682 8.40441 7.97126 8.36603 8.00013C8.32753 8.02901 8.30109 8.06745 8.28672 8.11545L7.75441 9.62988ZM8.59103 12.3846C8.79128 12.3846 8.95909 12.3169 9.09447 12.1816C9.22997 12.0461 9.29772 11.8782 9.29772 11.6779C9.29772 11.4777 9.22997 11.3099 9.09447 11.1745C8.95909 11.039 8.79128 10.9713 8.59103 10.9713C8.39
1078 10.9713 8.22291 11.039 8.08741 11.1745C7.95203 11.3099 7.88434 11.4777 7.88434 11.6779C7.88434 11.8782 7.95203 12.0461 8.08741 12.1816C8.22291 12.3169 8.39078 12.3846 8.59103 12.3846ZM13.0333 12.3846C13.2335 12.3846 13.4014 12.3169 13.5369 12.1816C13.6723 12.0461 13.74 11.8782 13.74 11.6779C13.74 11.4777 13.6723 11.3099 13.5369 11.1745C13.4014 11.039 13.2335 10.9713 13.0333 10.9713C12.833 10.9713 12.6652 11.039 12.5298 11.1745C12.3943 11.3099 12.3266 11.4777 12.3266 11.6779C12.3266 11.8782 12.3943 12.0461 12.5298 12.1816C12.6652 12.3169 12.833 12.3846 13.0333 12.3846ZM3.62941 8.98095V7.65401H4.95634V8.98095H3.62941ZM7.00441 4.85595V3.52901H8.33134V4.85595H7.00441ZM3.62941 11.9809V10.654H4.95634V11.9809H3.62941ZM3.62941 14.9809V13.654H4.95634V14.9809H3.62941ZM0.917969 14.9809V6.08182C0.917969 5.76545 1.02878 5.49645 1.25041 5.27482C1.47203 5.0532 1.74103 4.94238 2.05741 4.94238H4.29297V1.95682C4.29297 1.64057 4.40378 1.37157 4.62541 1.14982C4.84703 0.928196 5.11603 0.817383 5.43241 0.817383H9.90353C10.2198 0.817383 10.4887 0.928196 10.7103 1.14982C10.932 1.37157 11.0428 1.64057 11.0428 1.95682V5.47601H9.91797V1.94238H5.41797V6.06738H2.04297V14.9809H0.917969ZM7.43716 12.8896H14.1872V10.5241H7.43716V12.8896Z",fill:"#B2B2B2"})}),(0,i.jsx)(d.default,{href:"/locations/".concat((0,u.r_)("".concat(null==f?void 0:f.state,"/").concat(null==f?void 0:f.city,"/").concat(null==f?void 0:f.name,"-").concat(null==f?void 0:f.storeId))),className:"text-[13px] font-semibold leading-[17px] text-[#6D6D6D] focus:outline-none",style:{outline:"none"},children:"en"===j?"Store Details":"D\xe9tails du centre"})]}),(0,i.jsxs)("div",{className:"flex items-center gap-[10px] whitespace-nowrap rounded-[100px] bg-[#F7F7F7] px-[18px] py-[11px] backdrop-blur-[5px]",children:[(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M6.31202 7.81251H9.31202V8.65045C9.31202 8.79657 9.37621 8.89732 9.50459 8.9527C9.63296 9.00795 9.75002 8.9827 9.85577 8.87695L11.0586 7.67395C11.1798 7.55157 11.2405 7.40876 11.2405 7.24551C11.2405 7.08214 11.1789 6.93926 11.0558 6.81689L9.85577 5.62307C9.75002 5.51732 9.63296 5.4907 9.50459 5.5432C9.37621 5.5957 9.31202 5.69539 9.31202 5.84226V6.68751H5.86484C5.67284 6.68751 5.51184 6.75245 5.38184 6.88232C5.25196 7.01232 5.18702 7.17332 5.18702 7.36532V9.50001C5.18702 9.65939 5.24096 9.79295 5.34884 9.9007C5.45671 10.0086 5.59034 10.0625 5.74971 10.0625C5.90921 10.0625 6.04277 10.0086 6.1504 9.9007C6.25815 9.79295 6.31202 9.65939 6.31202 9.50001V7.81251ZM8.00102 15.0239C7.83177 15.0239 7.66502 14.9901 7.50077 14.9223C7.33652 14.8546 7.18646 14.7529 7.05059 14.6173L1.38227 8.94895C1.24665 8.8137 1.14496 8.66426 1.07721 8.50064C1.00946 8.33701 0.975586 8.17064 0.975586 8.00151C0.975586 7.83226 1.00946 7.66551 1.07721 7.50126C1.14496 7.33701 1.24665 7.18695 1.38227 7.05107L7.05059 1.38276C7.18584 1.24714 7.33527 1.14545 7.4989 1.0777C7.66252 1.00995 7.8289 0.976074 7.99802 0.976074C8.16727 0.976074 8.33402 1.00995 8.49827 1.0777C8.66252 1.14545 8.81259 1.24714 8.94846 1.38276L14.6168 7.05107C14.7524 7.18632 14.8541 7.33576 14.9218 7.49939C14.9896 7.66301 15.0235 7.82939 15.0235 7.99851C15.0235 8.16776 14.9896 8.33451 14.9218 8.49876C14.8541 8.66301 14.7524 8.81307 14.6168 8.94895L8.94846 14.6173C8.81321 14.7529 8.66377 14.8546 8.50015 14.9223C8.33652 14.9901 8.17015 15.0239 8.00102 15.0239ZM7.8409 13.8414C7.88415 13.8846 7.93702 13.9063 7.99952 13.9063C8.06202 13.9063 8.1149 13.8846 8.15815 13.8414L13.8409 8.15864C13.8841 8.11539 13.9058 8.06251 13.9058 8.00001C13.9058 7.93751 13.8841 7.88464 13.8409 7.84139L8.15815 2.15864C8.1149 2.11539 8.06202 2.09376 7.99952 2.09376C7.93702 2.09376 7.88415 2.11539 7.8409 2.15864L2.15815 7.84139C2.1149 7.88464 2.09327 7.93751 2.09327 8.00001C2.09327 8.06251 2.1149 8.11539 2.15815 8.15864L7.8409 13.8414Z",fill:"#B2B2B2"})}),(0,i.jsx)(d.default,{className:"map-info-actions direction-links",href:"https://www.google.com/maps?ll=".concat(f.latitude,",").concat(f.longitude,"&z=7&t=m&hl=en-US&gl=US&mapclient=embed&daddr=").concat(encodeURIComponent("".concat(f.city," ").concat(f.state)),"@").concat(f.latitude,",").concat(f.longitude),target:"_blank",rel:"noreferrer",children:(0,i.jsx)("span",{className:"text-[13px] font-semibold leading-[17px] text-[#6D6D6D]",children:"en"===j?"Directions":"Itin\xe9raires"})})]}),(null==f?void 0:null===(t=f.locationDetail)||void 0===t?void 0:t.progi_widget_key)&&(null==f?void 0:null===(n=f.locationDetail)||void 0===n?void 0:n.progi_sup_supplier_id)&&(0,i.jsxs)("div",{className:"flex lg:hidden items-center gap-[10px] whitespace-nowrap rounded-[100px] bg-[#F7F7F7] px-[18px] py-[11px] backdrop-blur-[5px]",children:[(0,i.jsx)("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M1.48081 14.375C1.10194 14.375 0.78125 14.2438 0.51875 13.9813C0.25625 13.7188 0.125 13.3981 0.125 13.0192V4.48081C0.125 4.10194 0.25625 3.78125 0.51875 3.51875C0.78125 3.25625 1.10194 3.125 1.48081 3.125H3.77113L4.75194 2.06206C4.87594 1.92756 5.02537 1.82113 5.20025 1.74275C5.375 1.66425 5.55825 1.625 5.75 1.625H8.79331C8.95269 1.625 9.08625 1.67894 9.194 1.78681C9.30188 1.89469 9.35581 2.02831 9.35581 2.18769C9.35581 2.34719 9.30188 2.48075 9.194 2.58838C9.08625 2.69613 8.95269 2.75 8.79331 2.75H5.64913L4.27306 4.25H1.48081C1.41344 4.25 1.35813 4.27163 1.31488 4.31488C1.27163 4.35813 1.25 4.41344 1.25 4.48081V13.0192C1.25 13.0866 1.27163 13.1419 1.31488 13.1851C1.35813 13.2284 1.41344 13.25 1.48081 13.25H13.0192C13.0866 13.25 13.1419 13.2284 13.1851 13.1851C13.2284 13.1419 13.25 13.0866 13.25 13.0192V7.20669C13.25 7.04731 13.3039 6.91375 13.4118 6.806C13.5197 6.69812 13.6533 6.64419 13.8127 6.64419C13.9722 6.64419 14.1058 6.69812 14.2134 6.806C14.3211 6.91375 14.375 7.04731 14.375 7.20669V13.0192C14.375 13.3981 14.2438 13.7188 13.9813 13.9813C13.7188 14.2438 13.3981 14.375 13.0192 14.375H1.48081ZM13.25 2.75H12.3125C12.1531 2.75 12.0195 2.69606 11.9116 2.58819C11.8039 2.48031 11.75 2.34669 
111.75 2.18731C11.75 2.02781 11.8039 1.89425 11.9116 1.78662C12.0195 1.67887 12.1531 1.625 12.3125 1.625H13.25V0.6875C13.25 0.528125 13.3039 0.394563 13.4118 0.286813C13.5197 0.178938 13.6533 0.125 13.8127 0.125C13.9722 0.125 14.1058 0.178938 14.2134 0.286813C14.3211 0.394563 14.375 0.528125 14.375 0.6875V1.625H15.3125C15.4719 1.625 15.6054 1.67894 15.7132 1.78681C15.8211 1.89469 15.875 2.02831 15.875 2.18769C15.875 2.34719 15.8211 2.48075 15.7132 2.58838C15.6054 2.69613 15.4719 2.75 15.3125 2.75H14.375V3.6875C14.375 3.84688 14.3211 3.9805 14.2132 4.08838C14.1053 4.19613 13.9717 4.25 13.8123 4.25C13.6528 4.25 13.5192 4.19613 13.4116 4.08838C13.3039 3.9805 13.25 3.84688 13.25 3.6875V2.75ZM7.25 11.8364C8.11063 11.8364 8.84019 11.5372 9.43869 10.9387C10.0372 10.3402 10.3364 9.61063 10.3364 8.75C10.3364 7.88937 10.0372 7.15981 9.43869 6.56131C8.84019 5.96281 8.11063 5.66356 7.25 5.66356C6.38937 5.66356 5.65981 5.96281 5.06131 6.56131C4.46281 7.15981 4.16356 7.88937 4.16356 8.75C4.16356 9.61063 4.46281 10.3402 5.06131 10.9387C5.65981 11.5372 6.38937 11.8364 7.25 11.8364ZM7.25 10.7116C6.69612 10.7116 6.23075 10.5231 5.85388 10.1461C5.47688 9.76925 5.28837 9.30388 5.28837 8.75C5.28837 8.19612 5.47688 7.73075 5.85388 7.35387C6.23075 6.97687 6.69612 6.78838 7.25 6.78838C7.80388 6.78838 8.26925 6.97687 8.64613 7.35387C9.02313 7.73075 9.21163 8.19612 9.21163 8.75C9.21163 9.30388 9.02313 9.76925 8.64613 10.1461C8.26925 10.5231 7.80388 10.7116 7.25 10.7116Z",fill:"#B2B2B2"})}),(0,i.jsx)(d.default,{href:{pathname:"/en/locations/".concat((0,u.r_)("".concat(null==f?void 0:f.state,"/").concat(null==f?void 0:f.city,"/").concat(null==f?void 0:f.name,"-").concat(null==f?void 0:f.storeId))),hash:"estimate"},scroll:!1,rel:"noopener noreferrer",className:"text-[13px] font-semibold leading-[17px] text-[#6D6D6D]",children:(0,i.jsx)("span",{className:"text-[13px] font-semibold leading-[17px] text-[#6D6D6D]",children:"en"===j?" Photo 
1Estimate":" Estimation photo"})})]})]})}),(0,i.jsxs)("div",{className:"my-[25px] w-full",children:[(0,i.jsxs)("p",{className:"text-base m-0 font-medium leading-[22px] text-[#757575]",children:[(0,C.A)(f),""!==v(null===(o=(0,g.A)(null==f?void 0:f.locationOperatingHours))||void 0===o?void 0:o.closeTime)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"px-[4px]",children:"\xb7"}),(0,i.jsxs)("span",{children:["en"===j?"Closed":"Ferm\xe9"," ",v(null===(s=(0,g.A)(null==f?void 0:f.locationOperatingHours))||void 0===s?void 0:s.closeTime)]})]}):null,(0,i.jsx)("span",{className:"px-[4px]",children:"\xb7"}),(0,i.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),b(!0)},className:"text-[16px] font-medium leading-[22px] text-[#757575] underline underline-offset-[1px]",children:"en"===j?"View Hours":"Afficher les heures"})]}),(0,i.jsx)("p",{className:"text-base m-0 font-medium leading-[22px] text-[#757575]",children:f.address1}),(0,i.jsxs)("p",{className:"text-base m-0 font-medium leading-[22px] text-[#757575]",children:[f.city,", ",f.state," ",f.postalcode]}),w&&(0,i.jsx)(h.A,{locationOperatingHours:(null==f?void 0:f.locationOperatingHours)||[],onClose:()=>b(!1),holidayDisclaimer:null==f?void 0:f.holidayDisclaimer})]}),(0,i.jsxs)("div",{className:"mt-[25px] flex w-full flex-col gap-[10px]",children:[(null===(r=f.locationDetail)||void 0===r?void 0:r.progi_widget_key)&&(null===(x=f.locationDetail)||void 0===x?void 0:x.progi_sup_supplier_id)&&"string"==typeof f.locationDetail.progi_widget_key&&!f.locationDetail.progi_widget_key.trim().startsWith("<div")&&(0,i.jsx)("a",{href:"/locations/".concat((0,u.r_)("".concat(null==f?void 0:f.state,"/").concat(null==f?void 0:f.city,"/").concat(null==f?void 0:f.name,"-").concat(null==f?void 0:f.storeId)),"#appointment"),className:"h-[46px] w-full cursor-pointer rounded-[100px] bg-[#434343] p-3 py-3.5 text-center text-[15px] font-semibold leading-[16px] text-white backdrop-blur-[5px] hover:bg-[#3F3F3F]",children:"en"===j?"Book Appointment":"Prendre rendez-vous"}),(0,i.jsxs)(d.default,{href:"tel:".concat((0,p.A)(f.marchexNumber||f.phone)),className:"primary-red h-[46px] w-full p-3 py-3.5 leading-[16px]","data-marchex-number":f.marchexNumber||"","data-analytics-event":"call","data-analytics-phone":f.marchexNumber||f.phone,"data-analytics-source":f.marchexNumber?"marchex":"direct",children:["en"===j?"Call":"t\xe9l\xe9phonez"," ",(0,p.A)(f.marchexNumber||f.phone)]})]})]})})}n(526866),x.propTypes={data:r().shape({id:r().oneOfType([r().string,r().number]).isRequired,name:r().string.isRequired,name_FR:r().string.isRequired,address:r().string.isRequired,phone:r().string.isRequired,marchexNumber:r().string,productNames:r().string,loadingHours:r().string,trainingHours:r().string,miles:r().number.isRequired,city:r().string.isRequired,state:r().string.isRequired,latitude:r().number.isRequired,longitude:r().number.isRequired,googlePlaceId:r().string,address1:r().string,holidayDisclaimer:r().string,postalcode:r().string,baseId:r().oneOfType([r().string,r().number]),scheduleLinkText:r().string,locationDetail:r().shape({progi_widget_key:r().string,progi_sup_supplier_id:r().string}),locationOperatingHours:r().arrayOf(r().shape({openTime:r().string,closeTime:r().string})),avgRating:r().number,ratingTotal:r().number,storeId:r().number}).isRequired,setShowMobileInfoWindow:r().func.isRequired},f.propTypes={widgetHtml:r().string},w.propTypes={data:r().shape({id:r().oneOfType([r().string,r().number]).isRequired,name:r().string.isRequired,name_FR:r().string.isRequired,address1:r().string.isRequired,city:r().string.isRequired,state:r().string.isRequired,phone:r().string.isRequired,marchexNumber:r().string,postalcode:r().string,loadingHours:r().string,trainingHours:r().string,miles:r().number.isRequired,zipcode:r().string,holidayDisclaimer:r().string,latitude:r().number.isRequired,longitude:r().number.isRequired,baseId:r().string.isRequired,locationDetail:r().shape({starRating:r().number.isRequired,progi_widget_key:r().string,progi_sup_supplier_id:r().string}
1).isRequired,locationOperatingHours:r().shape({openTime:r().string,closeTime:r().string}),googlePlaceId:r().string,scheduleLinkText:r().string,avgRating:r().number,ratingTotal:r().number,storeId:r().number}).isRequired};var b=n(913513),y=n(966766),j=n(956937),L=n(657507);function H(e){let{pois:t,setSelectedCenter:n,hoveredItem:s,setIsCluster:r,setSelectedLocation:a,handleCloseMobileInfo:d,onMarkersLoaded:c}=e,u=(0,o.ko)(),[p,m]=(0,l.useState)({}),C=(0,l.useRef)(null),g=(0,l.useRef)(null),{width:h}=(0,j.A)(),[x,f]=(0,l.useState)(h<=900);(0,l.useEffect)(()=>{f(h<=900)},[h]),(0,l.useEffect)(()=>{if(!s||!C.current)return;let e=C.current.clusters.find(e=>{var t;return(null==e?void 0:null===(t=e.markers)||void 0===t?void 0:t.length)>1&&e.markers.some(e=>{var t,n,i,l;return(null===(t=e.qt)||void 0===t?void 0:t.lat)===s.latitude&&(null===(n=e.qt)||void 0===n?void 0:n.lng)===s.longitude||(null===(i=e.ut)||void 0===i?void 0:i.lat)===s.latitude&&(null===(l=e.ut)||void 0===l?void 0:l.lng)===s.longitude})});g.current=e,r(!!e);let t=null==s?void 0:s.latitude,i=null==s?void 0:s.longitude;if(u.panTo({lat:t,lng:i}),!x){let e=document.getElementsByClassName("map-sidebar")[0].getBoundingClientRect(),t=window.innerWidth/2-(window.innerWidth-(e.x+e.width))/2;u.panBy(-(t/4*1),-200)}u.setOptions(),n(s)},[s,C.current]);let v={render:e=>{var t,n;let{count:i,position:l}=e;return l.lat()===(null==g?void 0:null===(t=g.current)||void 0===t?void 0:t.position.lat())&&(l.lng(),null==g||null===(n=g.current)||void 0===n||n.position.lng()),new google.maps.Marker({label:{text:String(i),color:"#ffff"},map:u,icon:{path:google.maps.SymbolPath.CIRCLE,fillColor:"#B7142C",fillOpacity:.75,strokeColor:"#E51937",strokeWeight:2,scale:25},position:l,zIndex:Number(google.maps.Marker.MAX_ZINDEX)+i})}};(0,l.useEffect)(()=>{u&&!C.current&&(C.current=new b.w1({map:u,renderer:v}))},[u]),(0,l.useEffect)(()=>{var e;null===(e=C.current)||void 0===e||e.clearMarkers()},[t]),(0,l.useEffect)(()=>{var e;Object.keys(p).length===t.length&&c(),null===(e=C.current)||void 0===e||e.addMarkers(Object.values(p))},[p,t.length,c]);let w=(e,t)=>{(!e||!p[t])&&(e||p[t])&&m(n=>{if(e)return{...n,[t]:e};let i={...n};return delete i[t],i})},H=(0,l.useCallback)((e,t)=>{if(u&&e.latLng){if(u.panTo(e.latLng),!x){let e=document.getElementsByClassName("map-sidebar")[0].getBoundingClientRect(),t=window.innerWidth/2-(window.innerWidth-(e.x+e.width))/2;u.panBy(-(t/4*1),-200)}u.setOptions(),n(t),r(!1),a(null),d()}});return(0,i.jsx)(i.Fragment,{children:t.map(e=>(0,i.jsx)(o.J8,{position:{lat:e.latitude,lng:e.longitude},ref:t=>w(t,e.id),clickable:!0,onClick:t=>H(t,e),children:(0,i.jsx)(y.default,{src:L.A,width:45,height:45,alt:"map-pin",style:s&&s!==e&&{opacity:.7}})},e.id))})}let N=l.memo(H);function R(e){let{data:t=[],hoveredItem:n,isCluster:s,isMobile:r,setIsCluster:d,setSelectedLocation:c,setShowMobileInfoWindow:u,handleCheckMobileView:p,zipcode:m,countryRegion:C,enableLatLngSelect:g=!1,onLatLngSelect:h=()=>{},initialCenter:f=null,mapId:v,onMarkersLoaded:b}=e,y=(0,a.useSearchParams)(),[j,L]=(0,l.useState)(f),H=n||j,[R,k]=(0,l.useState)(!1),M=y.get("name");(0,l.useEffect)(()=>{f&&M?L({lat:f.lat+-1,lng:f.lng+(r?-1:-10)}):f&&!M&&L(f)},[f,M]);let V=()=>"US"===C||"us"===C?{lat:39.8283,lng:-98.5795}:"CA"===C||"ca"===C?{lat:56.1304,lng:-106.3468}:{lat:39.8283,lng:-98.5795};(0,l.useEffect)(()=>{if(r&&H&&!R){let{scrollY:e}=window;document.body.style.position="fixed",document.body.style.top="-".concat(e,"px"),document.body.style.width="100%",document.body.style.overflow="hidden",p()}else{let e=-+parseInt(document.body.style.top||"0",10);document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",window.scrollTo(0,e)}},[r,H,R,p]);let D=(()=>{if(M)return V();if(t.length){var e,n;return{lat:parseFloat(null===(e=t[0])||void 0===e?void 0:e.latitude)||V().lat,lng:parseFloat(null===(n=t[0])||void 0===n?void 0:n.longitude)||V().lng}}return V()})(),q=M?{lat:D.lat+-1,lng:D.lng+(r?-1:-10)}:D,T=()=>{k(!R),u()};return(0,i.jsx)(o.c4,{apiKey:"AIzaSyBVPYD1Albvi-x0-dHtwzvqpHd9LqB1K14",children:(0,i.jsx)("div",{className:"map-section",style:{height:"100%"},children:(0,i.jsxs)(o.T5,{...v?{mapId:v}:{},defaultCenter:j||q,defaultZoom:M?r?3.2:4.7:r?7:9.5,maxZoom:18,mapTypeControl:!1,mapTypeControlOptions:{position:"TOP_RIGHT"},streetViewControlOptions:!1,fullscreenControl:!1,streetViewControl:!1,onClick:e=>{if(!g)return;let t={lat:e.detail.latLng.lat,lng:e.detail.latLng.lng};L(t),h(t)},options:{disableDefaultUI:!1},children:[!g&&(0,i.jsx)(N,{pois:t,setSelectedCenter:L,hoveredItem:n,setSelectedLocation:c,setIsCluster:d,handleCloseMobileInfo:T,onMarkersLoaded:()=>{b()}}),g&&j&&(0,i.jsx)(o.pH,{position:{lat:j.lat,lng:j.lng}
1,icon:{url:"https://maps.gstatic.com/mapfiles/ms2/micons/red-dot.png"},onLoad:()=>console.log("Marker loaded")},"".concat(j.lat,"-").concat(j.lng)),H&&!s&&!r&&!g&&(0,i.jsx)(o.Fu,{onCloseClick:()=>{L(null),c(null)},position:{lat:H.latitude,lng:H.longitude},anchor:H.anchor,pixelOffset:[185,-23],children:(0,i.jsx)(w,{data:H,onSelect:()=>L(null),zipcode:m})}),r&&H&&!R&&(0,i.jsx)(x,{data:H,setShowMobileInfoWindow:T,zipcode:m})]})})})}H.propTypes={pois:r().arrayOf(r().shape({id:r().oneOfType([r().string,r().number]).isRequired,latitude:r().number.isRequired,longitude:r().number.isRequired})).isRequired,setSelectedCenter:r().func.isRequired,hoveredItem:r().shape({latitude:r().number.isRequired,longitude:r().number.isRequired}),setIsCluster:r().func.isRequired,setSelectedLocation:r().func.isRequired,handleCloseMobileInfo:r().func.isRequired,onMarkersLoaded:r().func};let k=l.memo(R);R.propTypes={data:r().arrayOf(r().shape({id:r().oneOfType([r().string,r().number]).isRequired,name:r().string.isRequired,address:r().string.isRequired,phone:r().string.isRequired,latitude:r().number.isRequired,longitude:r().number.isRequired})).isRequired,hoveredItem:r().shape({latitude:r().number.isRequired,longitude:r().number.isRequired}),isCluster:r().bool.isRequired,isMobile:r().bool.isRequired,setIsCluster:r().func.isRequired,setSelectedLocation:r().func.isRequired,setShowMobileInfoWindow:r().func.isRequired,handleCheckMobileView:r().func.isRequired,zipcode:r().string,countryRegion:r().string,enableLatLngSelect:r().bool,onLatLngSelect:r().func,initialCenter:r().shape({lat:r().number.isRequired,lng:r().number.isRequired}),mapId:r().string,onMarkersLoaded:r().func}},399338:(e,t,n)=>{"use strict";function i(e){if(!Array.isArray(e)||0===e.length)return null;let t=new Date().getDay(),n=e.find(e=>e.dayOfWeekId===t);if(n)return{openTime:n.openTime,closeTime:n.closeTime};let i=e[0];return i?{openTime:i.openTime,closeTime:i.closeTime}:null}n.d(t,{A:()=>i})},404659:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(695155),l=n(212115),o=n(738637),s=n.n(o),r=n(406874),a=n.n(r);function d(e){let{href:t,children:n,backgroundColor:o="",textColor:s="",hoverBackgroundColor:r="",hoverTextColor:d="",underlineOnHover:c=!1,target:u="_self",rel:p="",className:m="",onClick:C=()=>{},onChange:g=()=>{}}=e,[h,x]=(0,l.useState)(!1),f={backgroundColor:o,color:s,...h&&{backgroundColor:r,color:d,textDecoration:c?"underline":"none"}};return(0,i.jsxs)(i.Fragment,{children:[null!=t&&""!==t&&(0,i.jsx)(a(),{href:t,target:u,rel:p,style:f,className:"".concat(m," inline-block transition-colors cursor-pointer font-sans ").concat(c?"hover:underline":"no-underline"," "),onClick:e=>{C(e),g(e)},onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:n}),(null==t||""===t)&&(0,i.jsx)(i.Fragment,{children:" "})]})}d.propTypes={href:s().string.isRequired,children:s().node.isRequired,backgroundColor:s().string,textColor:s().string,hoverBackgroundColor:s().string,hoverTextColor:s().string,underlineOnHover:s().bool,target:s().string,rel:s().string,className:s().string,onClick:s().func,onChange:s().func};let c=d},526866:()=>{},647824:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(695155);n(212115);var l=n(399338);function o(e,t){if(!(null==e?void 0:e.locationOperatingHours)||!Array.isArray(e.locationOperatingHours)||!e.locationOperatingHours[0])return null;let{openTime:n,closeTime:o}=(0,l.A)(e.locationOperatingHours);if(!n&&!o)return(0,i.jsx)("span",{style:{color:"#E51937"},children:"en"===t?"Closed":"Ferm\xe9e"});if(!n||!o)return null;let s=new Date,[r,a]=n.split(":").map(Number),[d,c]=o.split(":").map(Number),u=new Date(s.getFullYear(),s.getMonth(),s.getDate(),r,a),p=new Date(s.getFullYear(),s.getMonth(),s.getDate(),d,c),m="",C="Open"==(m=s<u||s>=p?"en"===t?"Closed":"Ferm\xe9e":s>=new Date(p.getTime()-36e5)?"en"===t?"Closes Soon":"Ferme bient\xf4t":"en"===t?"Open":"Ouvert")||"Ouvert"===m?"#1DB954":"#E51937";return(0,i.jsx)("span",{style:{color:C},children:m})}},657507:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let i={src:"/_next/static/media/carstar-map-icon.7493502c.svg",height:77,width:73,blurWidth:0,blurHeight:0}},755086:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(695155);
1n(212115);var l=n(738637),o=n.n(l);function s(e){let{rating:t,ratingTotal:n}=e,l=[];for(let e=1;e<=5;e+=1)if(e<=Math.floor(t))l.push((0,i.jsx)("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"#E51937",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M6.99992 10.1503L3.70409 12.6586C3.60686 12.7169 3.5145 12.7412 3.427 12.7315C3.3395 12.7218 3.25686 12.6975 3.17909 12.6586C3.10131 12.6197 3.04297 12.5565 3.00409 12.469C2.9652 12.3815 2.9652 12.2891 3.00409 12.1919L4.25825 8.05026L1.16659 5.80443C1.06936 5.74609 1.00617 5.67318 0.977002 5.58568C0.947835 5.49818 0.952696 5.40582 0.991585 5.30859C1.03047 5.21137 1.08395 5.13845 1.152 5.08984C1.22006 5.04123 1.3027 5.01693 1.39992 5.01693H5.30825L6.59159 0.816927C6.63047 0.719705 6.68395 0.641927 6.752 0.583594C6.82006 0.52526 6.9027 0.496094 6.99992 0.496094C7.09714 0.496094 7.17978 0.52526 7.24784 0.583594C7.31589 0.641927 7.36936 0.719705 7.40825 0.816927L8.69159 5.01693H12.5999C12.6971 5.01693 12.7798 5.04123 12.8478 5.08984C12.9159 5.13845 12.9694 5.21137 13.0083 5.30859C13.0471 5.40582 13.052 5.49818 13.0228 5.58568C12.9937 5.67318 12.9305 5.74609 12.8333 5.80443L9.74158 8.05026L10.9958 12.1919C11.0346 12.2891 11.0346 12.3815 10.9958 12.469C10.9569 12.5565 10.8985 12.6197 10.8208 12.6586C10.743 12.6975 10.6603 12.7218 10.5728 12.7315C10.4853 12.7412 10.393 12.7169 10.2958 12.6586L6.99992 10.1503Z"})},e));else if(e===Math.floor(t)+1&&t%1!=0){let n=t%1;l.push((0,i.jsxs)("svg",{width:"14",height:"13",viewBox:"0 0 14 13",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"half-fill-".concat(e),children:[(0,i.jsx)("stop",{offset:n,stopColor:"#505050"}),(0,i.jsx)("stop",{offset:n,stopColor:"transparent"})]})}),(0,i.jsx)("path",{d:"M6.99988 2.21644V9.09977L9.79988 11.2581L8.74988 7.69977L11.3749 5.83311H8.10821L6.99988 2.21644ZM6.99988 10.1498L3.70405 12.6581C3.60682 12.7164 3.51446 12.7407 3.42696 12.731C3.33946 12.7213 3.25682 12.697 3.17905 12.6581C3.10127 12.6192 3.04294 12.556 3.00405 12.4685C2.96516 12.381 2.96516 12.2887 3.00405 12.1914L4.25821 8.04977L1.16655 5.80394C1.06285 5.74903 0.998031 5.67697 0.972092 5.58776C0.946173 5.49854 0.952657 5.40533 0.991546 5.30811C1.03044 5.21088 1.08419 5.13797 1.15281 5.08936C1.22145 5.04074 1.3038 5.01644 1.39988 5.01644H5.32102L6.59155 0.816439C6.62521 0.713189 6.67736 0.633903 6.74803 0.578584C6.81871 0.523264 6.90266 0.495605 6.99988 0.495605C7.0971 0.495605 7.18105 0.523264 7.25173 0.578584C7.3224 0.633903 7.37455 0.713189 7.40821 0.816439L8.67874 5.01644H12.5999C12.696 5.01644 12.7783 5.04074 12.847 5.08936C12.9156 5.13797 12.9693 5.21088 13.0082 5.30811C13.0471 5.40533 13.0536 5.49854 13.0277 5.58776C13.0017 5.67697 12.9369 5.74903 12.8332 5.80394L9.74155 8.04977L10.9957 12.1914C11.0346 12.2887 11.0346 12.381 10.9957 12.4685C10.9568 12.556 10.8985 12.6192 10.8207 12.6581C10.7429 12.697 10.6603 12.7213 10.5728 12.731C10.4853 12.7407 10.3929 12.7164 10.2957 12.6581L6.99988 10.1498Z",fill:"#E51937"})]},e))}else l.push((0,i.jsx)("svg",{width:"14",height:"13",viewBox:"0 0 14 13",stroke:"#505050",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M6.99992 10.1503L3.70409 12.6586C3.60686 12.7169 3.5145 12.7412 3.427 12.7315C3.3395 12.7218 3.25686 12.6975 3.17909 12.6586C3.10131 12.6197 3.04297 12.5565 3.00409 12.469C2.9652 12.3815 2.9652 12.2891 3.00409 12.1919L4.25825 8.05026L1.16659 5.80443C1.06936 5.74609 1.00617 5.67318 0.977002 5.58568C0.947835 5.49818 0.952696 5.40582 0.991585 5.30859C1.03047 5.21137 1.08395 5.13845 1.152 5.08984C1.22006 5.04123 1.3027 5.01693 1.39992 5.01693H5.30825L6.59159 0.816927C6.63047 0.719705 6.68395 0.641927 6.752 0.583594C6.82006 0.52526 6.9027 0.496094 6.99992 0.496094C7.09714 0.496094 7.17978 0.52526 7.24784 0.583594C7.31589 0.641927 7.36936 0.719705 7.40825 0.816927L8.69159 5.01693H12.5999C12.6971 5.01693 12.7798 5.04123 12.8478 5.08984C12.9159 5.13845 12.9694 5.21137 13.0083 5.30859C13.0471 5.40582 13.052 5.49818 13.0228 5.58568C12.9937 5.67318 12.9305 5.74609 12.8333 5.80443L9.74158 8.05026L10.9958 12.1919C11.0346 12.2891 11.0346 12.3815 10.9958 12.469C10.9569 12.5565 10.8985 12.6197 10.8208 12.6586C10.743 12.6975 10.6603 12.7218 10.5728 12.7315C10.4853 12.7412 10.393 12.7169 10.2958 12.6586L6.99992 10.1503Z"})},e));return 0===t?null:(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)("p",{className:"font-medium",children:t}),(0,i.jsx)("div",{className:"flex items-center",children:l}),(0,i.jsx)("p",{className:"font-medium",children:n&&"(".concat(n,")")})]})}s.propTypes={rating:o().number,ratingTotal:o().number}},787079:(e,t,n)=>{"use strict";function i(e){if(!e||/^\+?\d{1,3}$/.test(e))return"";let t=e.replace(/\D/g,"");return((11===t.length&&"1"===t[0]||11===t.length&&t.startsWith("01"))&&(t=t.slice(-10)),t.length>
110&&(t=t.slice(-10)),10===t.length)?"(".concat(t.slice(0,3),") ").concat(t.slice(3,6),"-").concat(t.slice(6)):t}n.d(t,{A:()=>i})},956937:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(212115);let l=()=>{let[e,t]=(0,i.useState)({width:void 0,height:void 0});return(0,i.useEffect)(()=>{function e(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),e}},986713:(e,t,n)=>{"use strict";n.d(t,{JW:()=>o,Mc:()=>l});var i=n(857383);function l(e){let t="en",n=e;{let e=i.A.get("lang");if(e&&["en","fr"].includes(e))return e}if(n||(console.log("getLangCode - Getting path from window.location.pathname"),console.log("getLangCode - window:",window),console.log("getLangCode - window.location:",window.location),console.log("getLangCode - window.location.pathname:",window.location.pathname),n=window.location.pathname),n){let e=n.match(/^\/(en|fr)(\/|$)/);if(e){let[,n]=e;t=n}}return t}let o=(e,t)=>{if(e.startsWith("http")||e.startsWith("tel:")||e.startsWith("mailto:")||"/"===e)return e;let n=t;if(!n){let e=i.A.get("lang");e&&["en","fr"].includes(e)&&(n=e)}if(!n){console.log("prefixLang - Getting path from window.location.pathname"),console.log("prefixLang - window:",window),console.log("prefixLang - window.location:",window.location),console.log("prefixLang - window.location.pathname:",window.location.pathname);let e=window.location.pathname.match(/^\/(en|fr)(\/|$)/);n=e?e[1]:null}n||(n="en");let l=e.startsWith("/")?e.slice(1):e;return"/".concat(n,"/").concat(l)}},992472:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});let i=n(623464).A.create({baseURL:"https://document.carstar.ca",timeout:15e3});i.interceptors.response.use(e=>e,e=>{var t,n,i,l,o;return console.error("=== API ERROR INTERCEPTED ==="),console.error("URL:",null===(t=e.config)||void 0===t?void 0:t.url),console.error("Method:",null===(n=e.config)||void 0===n?void 0:n.method),console.error("Status:",null===(i=e.response)||void 0===i?void 0:i.status),console.error("Status Text:",null===(l=e.response)||void 0===l?void 0:l.statusText),console.error("Error Message:",e.message),console.error("Error Code:",e.code),console.error("Response Data:",null===(o=e.response)||void 0===o?void 0:o.data),console.error("Stack:",e.stack),console.error("Timestamp:",new Date().toISOString()),console.error("============================"),Promise.reject(e)});let l=i}}]);

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.