1import{k as M,j as e,r as u,at as b,ao as k,Q as c,ai as B,aj as H,al as s,B as r,ap as N,aq as G,ar as U,o as D,au as z,T as g,q as d,p as W,H as T,W as y,X as A,aA as V,an as $}from"./index-Cu2llfOr.js";import{u as q}from"./useCollisionCenters-BhBxSbcU.js";const Y=M(e.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"Place"),R=u.createContext({}),C=()=>u.useContext(R),Q=({children:n})=>{const{location:i}=b(),t=k(),{isIncreaseMobile:a}=c(),{seo:l,pageRetrieve:x,isDataLoaded:m,isLoading:I,error:f,fields:L,extractedFields:o,isFetching:S}=B(),{getCollisionCenters:j,collisionCenters:p,isLoading:O,error:E,isDataLoaded:h,isFetching:v}=q();u.useEffect(()=>{j(null,null)},[j]),u.useEffect(()=>{i&&x(H.COLLISION_CENTER_PAGE,i,null,[s.COLLISION_CENTER_LOCATION_ABOUT_US,s.COLLISION_CENTER_LOCATION_BANNER,s.COLLISION_CENTER_LOCATION_SERVICES,s.COLLISION_CENTER_LOCATION_CERTIFIED,s.COLLISION_CENTER_LOCATION_CERTIFICATION_GRID,s.COLLISION_CENTER_LOCATION_MAP])},[x,i]);const w=u.useMemo(()=>({collisionCenters:p,aboutUs:o==null?void 0:o[s.COLLISION_CENTER_LOCATION_ABOUT_US],banner:o==null?void 0:o[s.COLLISION_CENTER_LOCATION_BANNER],services:o==null?void 0:o[s.COLLISION_CENTER_LOCATION_SERVICES],certified:o==null?void 0:o[s.COLLISION_CENTER_LOCATION_CERTIFIED],certificationGrid:o==null?void 0:o[s.COLLISION_CENTER_LOCATION_CERTIFICATION_GRID],locationMap:o==null?void 0:o[s.COLLISION_CENTER_LOCATION_MAP]}),[p,o]),P=u.useMemo(()=>{const _=a?500:720;return I||O?e.jsx(r,{minHeight:_,children:e.jsx(N,{isLoading:!0})}):f||E?e.jsx(G,{minHeight:_,config:{redirectButtonTitle:"Collision Center",redirectButtonHandler:()=>t(U.COLLISION_CENTER)}}):!m||!h?e.jsx(r,{minHeight:_}):m&&L.length===0||h&&p.length===0?e.jsx(r,{minHeight:_,children:e.jsx(r,{justifyContent:"center",alignItems:"center",py:4,children:e.jsx(D,{children:"No Collision Center Location Details available at the moment. Please check back later."})})}):e.jsxs(r,{minHeight:_,children:[e.jsx(z,{seo:l}),n]})},[n,p.length,E,f,L.length,h,O,m,a,I,t,l]);return e.jsxs(R.Provider,{value:w,children:[(S||v)&&e.jsx(N,{isLoading:!0}),P]})},X=()=>{const{isIncreaseMobile:n}=c(),{aboutUs:i}=C();return e.jsxs(r,{display:"flex",flexDirection:"column",alignItems:"center",gap:2,px:n?3:10,py:5,children:[e.jsx(g,{variant:n?"h4":"h3",color:"primary.main",children:i.about_us_header}),e.jsx(d,{variant:n?"body1":"h6",muiTypographyProps:{textAlign:"center"},children:i.about_us_text})]})},J=({locationData:n})=>{const{isIncreaseMobile:i}=c(),{banner:t}=C();return e.jsxs(r,{bgcolor:"background.default",display:"flex",flexDirection:i?"column":"row",px:i?3:10,py:i?5:10,children:[e.jsx(r,{flex:2,m:"auto",children:e.jsx(r,{component:"img",width:"100%",src:t.banner_image,alt:t.banner_image_alt_text})}),e.jsxs(r,{flex:3,display:"flex",flexDirection:"column",alignItems:i?"center":"flex-start",gap:1,pt:i?4:5,px:i?3:8,children:[e.jsxs(r,{display:"flex",flexDirection:i?"column":"row",alignItems:i?"center":"flex-start",gap:2,children:[e.jsx(Y,{color:"primary",sx:{fontSize:40,mt:1.5}}),e.jsx(g,{variant:"h3",color:"primary.main",muiTypographyProps:{textAlign:i?"center":"left"},children:n.make})]}),e.jsxs(d,{color:"background.blue",variant:i?"body1":"h6",muiTypographyProps:{textAlign:i?"center":"left"},onClick:()=>window.open(n.mapRef,"_blank"),children:[n.address,", ",n.city,", ",n.state," ",n.zip]}),e.jsx(W,{variant:i?"body1":"h6",color:"primary.main",onClick:()=>{window.location.href=`tel:${n.phoneNumber}`},children:n.phoneNumber}),n.serviceHours.map((a,l)=>e.jsx(d,{variant:i?"body1":"h6",color:"primary.main",children:a},l)),(t.cta_button_1_url||t.cta_button_2_url)&&e.jsxs(r,{display:"flex",flexDirection:i?"column":"row",gap:2,pt:1,alignSelf:i?"center":"flex-start",children:[t.cta_button_1_url&&e.jsx(T,{variant:"contained",size:"large",onClick:()=>window.open(t.cta_button_1_url,"_blank"),children:t.cta_button_1_label}),t.cta_button_2_url&&e.jsx(T,{variant:"contained",size:"large",onClick:()=>window.open(t.cta_button_2_url,"_blank"),children:t.cta_button_2_label})]})]})]})},K=()=>{const{isIncreaseMobile:n}=c(),{certified:i}=C();return i.certified_image?e.jsx(r,{width:"100%",display:"flex",justifyContent:"center",my:n?5:0,px:n?3:0,pt:n?5:2,pb:5,children:e.jsx(r,{component:"img",width:n?"80%":"50%",src:i.certified_image,alt:i.certified_image_alt_text})}):null},Z=()=>{const{isIncreaseMobile:n}=c(),{services:i}=C();return e.jsx(r,{display:"flex",flexWrap:"wrap",gap:n?5:10,px:n?3:10,py:n?0:5,justifyContent:"space-between",children:i.service.map(t=>e.jsxs(r,{width:520,display:"flex",gap:2,children:[e.jsx(y.Image,{src:`${t.img}?v=${A.STATIC_IMAGE_VERSION}`,alt:"car",width:n?25:30,style:{height:n?25:30,marginTop:10}}),e.jsxs(r,{display:"flex",flexDirection:"column",gap:2,children:[e.jsx(g,{variant:n?"h5":"h4",color:"primary.main",children:t.name}),e.jsx(d,{variant:n?"body1":"h6",children:t.description})]})]},t.name))})};function F(){const{isIncreaseMobile:n}=c(),{certificationGrid:i}=C();return i?e.jsx(r,{display:"grid",justifyContent:n?"space-evenly":"center",gridTemplateColumns:n?"repeat(3, 15%)":"repeat(auto-fill, 208px)",gap:2,marginTop:n?2:10,pb:4,children:i.certification_image.map((t,a)=>e.jsx(r,{width:n?"110px":"208px",height:n?"52px":"98px",borderRadius:n?"5px":"10px",backgroundColor:"background.lightBlue",display:"flex",justifyContent:"center",justifySelf:"center",alignItems:"center",children:e.jsx(r,{component:"img",src:t.cert_image,alt:t.cert_image_alt_text,sx:{maxHeight:n?50:90,maxWidth:n?110:208}})},a))}):null}const ee=()=>{const{isIncreaseMobile:n}=c(),{locationMap:i}=C();return i!=null&&i.map_embed_url?e.jsx(r,{px:n?3:10,py:n?5:8,children:e.jsx(r,{component:"iframe",src:i.map_embed_url,width:"100%",height:n?300:450,sx:{border:0,display:"block"},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Location map"})}):null},ne=()=>{var l;const n=V(),{location:i}=b(),{collisionCenters:t}=C(),a=((l=n.state)==null?void 0:l.center)??t.filter(x=>x.urlParam===i)[0];return e.jsxs(r,{children:[e.jsx(J,{locationData:a}),e.jsx(X,{}),e.jsx(Z,{}),e.jsx(ee,{}),e.jsx(F,{}),e.jsx(K,{})]})},re=()=>e.jsx($,{children:e.jsx(Q,{children:e.jsx(y.ImageEngineProvider,{deliveryAddress:A.IMAGE_ENGINE_URL,children:e.jsx(ne,{})})})});export{re 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.