"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[73874,79606],{1127:(e,t,n)=>{n.d(t,{Pr:()=>o,f6:()=>r,lX:()=>a,wD:()=>i});var a=function(e){return e.FULLSCREEN="fullscreen",e.OVERLAY="overlay",e}({}),i=function(e){return e.DARK="dark",e.LIGHT="light",e.ORANGE="orange",e}({}),r=function(e){return e.FADE="FADE",e.SLIDE_LEFT="SLIDE_LEFT",e.SLIDE_UP="SLIDE_UP",e}({}),o=function(e){return e.CONTENT="CONTENT",e.HOW_TO="HOW_TO",e}({})},10004:(e,t,n)=>{n.d(t,{J:()=>a});function a(e,t){return Number(e).toFixed(t)}},14566:(e,t,n)=>{n.r(t),n.d(t,{default:()=>q});var a=n(41364),i=n(20903),r=n(50965),o=n(12115),l=n(47684);async function c(e){return await (0,l.q$)({endpoint:"/simple-score-by-product-line",includeAuthorization:!0,method:"get",query:{productLine:e}})}var d=n(54006),s=n(31399),u=n(33400),g=n(82462),m=n(72554),p=n(31277),I=n(40145),h=n(71106),A=n(47411),S=n(64795),L=n(23659),T=n(6621),f=function(e){return e.SIDETREAD="sidetread",e.SIDEWALL="sidewall",e.TREADFULL="treadfull",e.TREADONLY="treadonly",e}({}),R=n(25289),E=n(40539),_=n(91916),C=n(16652),b=n(80130),v=n(68852),y=n(44787);let D=[225,240,300,300],G={[R.dj.S]:{height:175,width:225},[R.dj.M]:{height:292,width:346},[R.dj.L]:{height:292,width:346},[R.dj.XL]:{height:355,width:420}};var w=n(96521);let M=e=>(0,o.useMemo)(()=>e.map(e=>({productTypeId:e.productTypeId||0,image:e.image,type:w.uq.SiteCatalogProductImage,productImageType:e.productImageType})),[e]),O=e=>{let[t,n]=(0,o.useState)(!1),[a,i]=(0,o.useState)(0),[r,l]=(0,o.useState)(0),c=e.some(e=>e.type===w.uq.SiteCatalogProductImage&&e.productImageType===w.w7.Unavailable),d=e.filter(e=>e.type===w.uq.SiteCatalogProductImage);function s(e,t,n){let a=t[e];return n.findIndex(e=>e===a)}return{closeModal:function(){i(s(r,d,e)),n(!1)},currentZoomIndex:r,isModalOpen:t,isUnavailable:c,openModal:function(){l(s(a,e,d)),n(!t)},setCurrentZoomIndex:l,zoomImageList:d}};var N=n(73874),x=n(79423);function Y(e){let t=Number(e);return isNaN(t)?0:t}var F=n(15586),H=n(64385),W=n(68536),B=n(71561);let k={S:195,M:215,XL:260},P={bottomSection:{alignItems:"flex-end",display:"flex",width:"100%",[R.MQ.XL]:{width:"50%"}},bottomSectionTop:{alignItems:"flex-start"},brand:{marginBottom:W.E.SIZE_10,[R.MQ.M]:{marginBottom:W.E.SIZE_15},[R.MQ.XL]:{fontSize:"".concat(1,"rem"),marginBottom:W.E.SIZE_15}},imageContainer:{height:G[R.dj.S].height,position:"relative",width:G[R.dj.S].width,[R.MQ.M]:{height:G[R.dj.M].height,width:G[R.dj.M].width},[R.MQ.XL]:{height:G[R.dj.XL].height,width:G[R.dj.XL].width}},imageInnerWrapper:{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},imageOutWrapper:{a:{width:"100%"},alignItems:"flex-end",border:F.s.SOLID_GRAY_20_1PX,borderRadius:H.Z.RADIUS_10,display:"flex",height:k.S,justifyContent:"center",minHeight:"100%",position:"relative",[R.MQ.M]:{height:k.M},[R.MQ.XL]:{height:k.XL}},info:{padding:"".concat(W.E.SIZE_25,"px 0 0"),[R.MQ.M]:{padding:"".concat(W.E.SIZE_15,"px 0 ").concat(W.E.SIZE_20,"px 0")},[R.MQ.XL]:{padding:"".concat(W.E.SIZE_20,"px 0 ").concat(W.E.SIZE_30,"px 0")}},leftSection:{display:"flex",justifyContent:"space-between",flexDirection:"column"},rating:{display:"flex",alignItems:"center"},ratingBars:{width:"100%"},ratingBarsSection:{display:"none",[R.MQ.XL]:{display:"flex"}},ratingQuantity:{[R.MQ.XL]:{display:"none"}},ratingValue:[y.Il.smallCopy,{whiteSpace:"nowrap",[R.MQ.XL]:{fontSize:20,fontWeight:"bold"}}],reviews:{alignItems:"flex-end",display:"flex",flexDirection:"column",marginBottom:W.E.SIZE_20,width:"100%"},reviewsCount:[y.Il.smallCopyBold,{color:E.l.LIGHT.GRAY_70,display:"none",textAlign:"right",[R.MQ.XL]:{display:"block"}}],rightSection:{display:"flex",flexWrap:"wrap",a:{display:"contents"}},root:{"&:nth-child(1)":{marginTop:W.E.SIZE_170},position:"relative",[R.MQ.L]:{paddingBottom:W.E.SIZE_50,width:"100%"}},simpleScoreCardWrapper:{backgroundColor:"#fff",cursor:"pointer",marginBottom:W.E.SIZE_05,padding:"0 ".concat(W.E.SIZE_10,"px")},specList:[y.Il.smallCopyTight,{color:E.l.GLOBAL.BLACK,textAlign:"right",width:"100%",[R.MQ.XL]:[y.Il.smallCopy,{textAlign:"left"}]}],title:[y.Il.smallCopyTight,{color:E.l.LIGHT.GRAY_70}],viewImages:{"&:hover":{filter:"brightness(0)"},bottom:W.E.SIZE_10,display:"flex",position:"absolute",right:W.E.SIZE_10+3,zIndex:1},viewTire:{margin:"".concat(W.E.SIZE_60,"px 0px"),display:"flex",justifyContent:"space-around"},warrantyInfo:{alignItems:"center",display:"flex",justifyContent:"flex-end",zIndex:B.M.TOP,[R.MQ.XL]:{justifyContent:"flex-start"}},warrantyInfoIcon:{height:10,marginLeft:W.E.SIZE_05,width:10},wrapper:{alignItems:"center",[R.MQ.M]:{display:"flex",alignItems:"flex-end"},[R.MQ.L]:{display:"flex",flexDirection:"column",alignItems:"flex-start"}}},Z=[p.dw[p.ju.CROPPED_GENERATOR](G)];function U(e){let{rating:t}=e,{bk:n}=(0,T.A)();return(0,a.Y)(A.A,{bgColor:E.l.LIGHT.OFF_WHITE,color:E.l.GLOBAL.BLACK,number:t,width:n!==R.dj.XL?65:78,"data-element":"Stars","data-component":"StarsWrapper"})}let j=function(e){var t;let{productLineScore:n,images:l,brandImage:c,productRating:p,salePrice:A,lineName:T,category:R,type:G,warranty:w,speedRating:F,loadIndex:H,utqg:W,sideWall:B,lineUrl:k}=e,j=(t=null!=l?l:[],(0,o.useMemo)(()=>(function(e){let t={[f.SIDETREAD]:-1,[f.SIDEWALL]:-1,[f.TREADFULL]:-1,[f.TREADONLY]:-1};return(e.forEach((e,n)=>{t[e.productImageType]=n}),t[f.SIDETREAD]>=0)?e[t[f.SIDETREAD]].image:t[f.TREADFULL]>=0?e[t[f.TREADFULL]].image:t[f.SIDEWALL]>=0?e[t[f.SIDEWALL]].image:e.length>0?e[0].image:{src:"https://images.simpletire.com/image/upload/v1617286846/steer/common/s-tire-skeleton.svg",altText:"No Product Image"}})(t),[t])),{closeModal:Q,openModal:X,isModalOpen:K,currentZoomIndex:z,setCurrentZoomIndex:V,zoomImageList:q,isUnavailable:J}=O(M(l)),$=function(e){let{category:t,type:n,warranty:a,speedRating:i,loadIndex:r,utqg:l,sideWall:c}=e;return(0,o.useMemo)(()=>{let e=[];return t&&e.push(t),n&&e.push((0,v.ui)("catalog.productListing.subType",{subType:n})),a&&(a>0?e.push("".concat(a/1e3,"k mile warranty")):e.push("No mileage warranty")),i&&e.push("Speed rating: ".concat(i)),r&&e.push("Load: ".concat(r)),l&&e.push("UTQG: ".concat(l)),c&&e.push(c),e},[t,n,a,i,r,l,c])}({category:R,loadIndex:H,sideWall:B,speedRating:F,type:G,utqg:W,warranty:w}),[ee,et]=(0,o.useState)(!1),[en,ea]=(0,o.useState)(!1),ei=(0,o.useCallback)(()=>{et(e=>!e)},[]),er=(0,o.useCallback)(()=>{ea(!0)},[]),eo=(0,o.useCallback)(()=>{ea(!1)},[]),el=[];for(let[e,t]of Object.entries(p))if(!["totalReviews","buyRatio","overallRating"].includes(e)){let n={label:e[0].toUpperCase()+e.slice(1),value:+t};el.push(n)}let ec=(0,L.Z$)(e=>e.openModal);return(0,a.FD)("div",{"data-testid":"simple-score-by-product-line-item","data-component":"SimpleScoreByProductLineItem",children:[(0,a.FD)(i.A,{css:P.root,"data-element":"Grid",children:[(0,a.Y)(r.A,{css:P.imageOutWrapper,gridColumnM:"2/5",gridColumnL:"1/7","data-element":"GridItem",children:(0,a.FD)("div",{css:P.imageInnerWrapper,children:[(0,a.Y)("div",{css:P.simpleScoreCardWrapper,onClick:e=>{e.preventDefault(),e.stopPropagation(),ec({handlDuraScore:n.handlDuraScore,handlDuraScoreRange:n.handlDuraScoreRange,isDurability:n.isDurability,longevityScore:n.longevityScore,longevityScoreRange:n.longevityScoreRange,simpleScore:n.simpleScore,simpleScoreRange:n.simpleScoreRange,tractionScore:n.tractionScore,tractionScoreRange:n.tractionScoreRange})},children:(0,a.Y)(h.A,{simpleScore:n&&+(null==n?void 0:n.simpleScore),simpleScoreRange:n&&n.simpleScoreRange,isSmall:!0,"data-element":"SimpleScoreCard"})}),(0,a.Y)(m.default,{customContainerStyles:P.imageContainer,src:j.src,altText:j.altText,fill:!0,widths:D,transformationHandlers:Z,"data-element":"Image"}),!J&&(0,a.Y)("div",{onClick:e=>{e.stopPropagation()},children:(0,a.Y)("button",{css:P.viewImages,onClick:X,children:(0,a.Y)(u.default,{name:g.Ze.GALLERY})})})]})}),(0,a.FD)(r.A,{css:P.info,isGrid:!0,gridColumnM:"5/8",gridColumnL:"7/15","data-element":"GridItem",children:[(0,a.Y)(r.A,{css:P.leftSection,gridColumnS:"1/3",gridColumnM:"1/3",gridColumnL:"1/5","data-element":"GridItem",children:(0,a.FD)("div",{children:[(0,a.Y)("div",{css:P.brand,children:(0,a.Y)(d.default,{brand:c,customLabelStyles:P.brandLabel,"data-element":"BrandLogoOrLabel"})}),(0,a.Y)("div",{css:P.wrapper,children:(0,a.Y)("span",{css:[{color:E.l.LIGHT.GRAY_70},y.Il.tertiaryHeadline],children:"".concat((0,v.ui)("common.startingAtPrice")," ").concat((0,b.nT)(100*+A))})}),(0,a.Y)("h3",{css:P.title,children:(0,a.Y)("span",{children:T})})]})}),(0,a.FD)(r.A,{css:P.rightSection,gridColumnS:"3/5",gridColumnM:"3/4",gridColumnL:"5/9","data-element":"GridItem",children:[p&&(0,a.Y)("div",{css:P.reviews,children:(0,a.FD)("div",{children:[(0,a.FD)("div",{css:P.rating,children:[(0,a.Y)(U,{rating:Y(p.overallRating)}),(0,a.FD)("span",{css:P.ratingValue,children:[(0,a.Y)("span",{children:function(e){let t=Y(e);return 0===t?(0,v.ui)("ratings.notavailable"):"".concat(t.toFixed(1)," ")}(p.overallRating)}),(0,a.FD)("span",{css:P.ratingQuantity,children:["(",p.totalReviews,")"]})]})]}),(0,a.Y)("div",{css:P.reviewsCount,children:(0,v.ui)("catalog.productListing.customerReviews",{number:p.totalReviews})})]})}),(0,a.Y)("div",{css:[P.bottomSection,!p&&P.bottomSectionTop],children:(0,a.Y)("ul",{css:P.specList,children:null==$?void 0:$.map(e=>e&&"string"==typeof e&&e.includes("warranty")?(0,a.Y)("li",{children:(0,a.FD)("span",{css:P.warrantyInfo,children:[(0,a.FD)("span",{children:[e," "]}),(0,a.Y)(u.default,{name:g.Ze.INFO,css:P.warrantyInfoIcon,onClick:e=>{e.preventDefault(),e.stopPropagation(),er()}})]})},e):(0,a.Y)("li",{children:e},e))})}),(0,a.Y)("div",{css:[P.bottomSection,P.ratingBarsSection,!p&&P.bottomSectionTop],children:(0,a.Y)("div",{css:P.ratingBars,children:(0,a.Y)(I.A,{ratings:el,display:_.o.COMPACT,theme:C.C.LIGHT,"data-element":"RatingsList"})})})]})]}),(0,a.Y)(r.A,{css:P.viewTire,gridColumnM:"4/6",gridColumnL:"7/11","data-element":"GridItem",children:(0,a.Y)(s.A,{as:"a",href:k,theme:C.C.LIGHT,css:P.viewTireButton,"data-element":"Button",children:(0,v.ui)("simpleScoreByProductLine.viewTire")})})]}),!J&&(0,a.Y)(x.A,{brand:c,handleClose:Q,assetList:q,isModalOpen:K,currentIndex:z,setCurrentIndex:V}),(0,a.Y)(N.default,{isOpen:ee,onClose:ei,openManufacturersWarrantiesModal:er,"data-element":"PuncturedModal"}),(0,a.Y)(S.default,{isOpen:en,onClose:eo,openRoadHazardModal:ei,"data-element":"ManufacturersWarrantiesModal"})]})},Q={handlDuraScore:0,handlDuraScoreRange:"N/A",isDurability:!1,longevityScore:0,longevityScoreRange:"N/A",simpleScore:0,simpleScoreRange:"N/A",tractionScore:0,tractionScoreRange:"N/A"},X={image:null,label:"Continental"},K={buyRatio:"N/A",comfort:"N/A",dry:"N/A",noise:"N/A",overallRating:0,totalReviews:0,treadwear:"N/A",wet:"N/A",winter:"N/A"},z=function(e){let{productLine:t}=e,[n,i]=(0,o.useState)(null);return(0,o.useEffect)(()=>{(async()=>{let e=await c(t);e.isSuccess&&i(e.data)})()},[t]),(0,a.Y)(j,{brandImage:(null==n?void 0:n.brandImage)||X,category:(null==n?void 0:n.category)||"",images:(null==n?void 0:n.images)||[],lineName:(null==n?void 0:n.lineName)||"",loadIndex:(null==n?void 0:n.loadIndex)||"",productLineScore:(null==n?void 0:n.productLineScore)||Q,productRating:(null==n?void 0:n.productRating)||K,salePrice:(null==n?void 0:n.salePrice)||"0",sideWall:(null==n?void 0:n.sideWall)||"",speedRating:(null==n?void 0:n.speedRating)||"",type:(null==n?void 0:n.type)||"",utqg:(null==n?void 0:n.utqg)||"",warranty:(null==n?void 0:n.warranty)||0,lineUrl:(null==n?void 0:n.lineUrl)||"","data-element":"SimpleScoreByProductLineItem","data-component":"SimpleScoreByProductLineContainer"})};var V=n(50299);let q=function(e){let{productLine:t}=e;return(0,a.Y)("div",{"data-component":"module-simple-score-by-product-line",children:(0,a.Y)(i.A,{css:V.R.spacingTopS60XL80,"data-element":"Grid",children:(0,a.Y)(r.A,{gridColumnL:"3/13",gridColumnXL:"2/14","data-element":"GridItem",children:(0,a.Y)(z,{productLine:t,"data-element":"SimpleScoreByProductLineContainer"})})})})}},15933:(e,t,n)=>{n.d(t,{_:()=>a});function a(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},23659:(e,t,n)=>{n.d(t,{Z$:()=>d,qy:()=>c});var a=n(41364),i=n(12115),r=n(54880);let o=(0,r.q6)(),l={handlDuraScore:0,handlDuraScoreRange:"N/A",isDurability:!1,longevityScore:0,longevityScoreRange:"N/A",simpleScore:0,simpleScoreRange:"N/A",tractionScore:0,tractionScoreRange:"N/A"};function c(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(l),[n,a]=(0,i.useState)(!1),r=(0,i.useCallback)(e=>{t(e),a(!0)},[]);return{closeModal:(0,i.useCallback)(()=>{a(!1)},[]),currentModalData:e,isModalOpen:n,openModal:r,resetModal:(0,i.useCallback)(()=>{t(l)},[])}}();return(0,a.Y)(o.Provider,{value:n,"data-element":"unknown","data-component":"SimpleScoreCardModalContextProvider",children:t})}let d=(e,t)=>(0,r.i7)(o,e,t)},30577:(e,t,n)=>{n.r(t),n.d(t,{default:()=>L});var a=n(41364),i=n(12115),r=n(78353),o=n.n(r),l=n(6621),c=n(25289),d=n(40539),s=n(1127),u=n(16652),g=n(56242),m=n(71561),p=n(71512),I=n(68852),h=n(82462),A=n(44275),S=n(71391);(0,p.H)();let L=function(e){let{children:t,contentLabel:n,customContainerStyles:r,hasCloseButton:p=!0,hasDefaultPadding:L=!0,useSliderToClose:T=!1,isFullscreen:f=!1,isHalfscreen:R,isOpen:E,onBack:_,onAfterClose:C,onAfterOpen:b,onClose:v,overlayZIndex:y,id:D,theme:G=s.wD.LIGHT,contentCss:w,customIconCss:M}=e,O=G===s.wD.LIGHT?u.C.LIGHT:u.C.DARK,{bk:N}=(0,l.A)(),x=N===c.dj.S||N===c.dj.M||f,Y=x?s.lX.FULLSCREEN:s.lX.OVERLAY,F=x?S.lY[s.f6.FADE]:S.lY[s.f6.SLIDE_LEFT],H=(0,i.useRef)(null),W=e=>{(null==H?void 0:H.current)&&e.clientY-H.current.y>=20&&v(),window.removeEventListener("mouseup",W)};return(0,a.FD)(o(),{id:D,contentLabel:n,isOpen:E,onAfterClose:C,onAfterOpen:b,onRequestClose:v,closeTimeoutMS:g.E.MS350,style:{overlay:{backgroundColor:!x&&d.l.LIGHT.GRAY_70||"transparent",opacity:+!!E,transition:"opacity ".concat(g.E.MS350,"ms ease-in-out ").concat(g.E.MS100,"ms"),zIndex:null!=y?y:m.M.MODAL},content:{overflowX:"hidden",overflowY:"auto",...w}},css:[S.Ay[Y],S.Ay[G],!x&&R&&S.Ay.halfscreen,F.default,L&&x&&S.Ay.fullScreenPadding,E&&F.open,r],"data-element":"ReactModal","data-component":"Modal",children:[(_||p)&&(0,a.FD)("div",{css:S.Ay.actions,className:"close-button",children:[_&&(0,a.Y)(A.A,{as:"button","aria-label":(0,I.ui)("modal.back"),onClick:_,icon:h.Ze.CHEVRON_LEFT,theme:O}),p&&(0,a.Y)(A.A,{as:"button",icon:h.Ze.CLOSE,"aria-label":(0,I.ui)("common.modal.close",{contentLabel:n}),onClick:v,theme:O,css:[!_&&S.Ay.close,M]})]}),T&&(0,a.Y)("div",{css:S.Ay.closeSlider,onMouseDown:e=>{H.current={x:e.clientX,y:e.clientY},window.addEventListener("mouseup",W)}}),t]})}},33227:(e,t,n)=>{n.d(t,{l:()=>a});let a={MAX_RATING:5,MIN_RATING:1}},40145:(e,t,n)=>{n.d(t,{A:()=>f});var a=n(41364),i=n(33227),r=n(91916),o=n(16652),l=n(82686),c=n(68852),d=n(64006),s=n(25289),u=n(40539),g=n(64385),m=n(68536),p=n(44787);let I={RATING_BAR_HEIGHT:5,DEFAULT:{RATINGS_BOTTOM_MARGIN:13,LABEL_MIN_WIDTH:80,RATING_MIN_WIDTH:22,FIVE_STARS_RATING_MIN_WIDTH:30},COMPACT:{RATINGS_BOTTOM_MARGIN:5,LABEL_MIN_WIDTH:60,RATING_MIN_WIDTH:18,FIVE_STARS_RATING_MIN_WIDTH:25}},h={bar:{borderRadius:g.Z.RADIUS_10,display:"block",height:I.RATING_BAR_HEIGHT},barContainer:{width:"100%",display:"flex",alignItems:"center",position:"relative"},barFull:{width:"100%"},barProgress:{position:"absolute"},container:{display:"flex",justifyContent:"space-between"},customContainer:{alignItems:"center"},rating:{textAlign:"right"},reviewsBarFull:{backgroundColor:u.l.GLOBAL.WHITE},reviewsBarProgress:{minWidth:m.E.SIZE_120,[s.MQ.M]:{minWidth:"520px"},[s.MQ.L]:{minWidth:"431px"},[s.MQ.XL]:{minWidth:"550px"}},reviewsRating:{marginLeft:m.E.SIZE_40},shopDetailsEmphasized:{color:u.l.GLOBAL.WHITE},yelpStarsContainer:{justifyContent:"flex-end"}},A={[o.C.DARK]:{barFull:{backgroundColor:u.l.DARK.GRAY_80},barProgress:{backgroundColor:u.l.GLOBAL.ORANGE},container:{color:u.l.DARK.GRAY_40},emphasized:{color:u.l.GLOBAL.WHITE},fiveStarsRating:{color:u.l.GLOBAL.WHITE}},[o.C.LIGHT]:{barFull:{backgroundColor:u.l.LIGHT.OFF_WHITE},barProgress:{backgroundColor:u.l.LIGHT.GRAY_70},container:{color:u.l.LIGHT.GRAY_70},emphasized:{color:u.l.LIGHT.GRAY_70},fiveStarsRating:{color:u.l.LIGHT.GRAY_70}},[o.C.ORANGE]:{barFull:{backgroundColor:u.l.LIGHT.GRAY_20},barProgress:{backgroundColor:u.l.GLOBAL.ORANGE},container:{color:u.l.LIGHT.GRAY_70},emphasized:{color:u.l.LIGHT.GRAY_70},fiveStarsRating:{color:u.l.LIGHT.GRAY_70}}},S={[r.o.COMPACT]:{container:{"&:not(:last-child)":{marginBottom:I.COMPACT.RATINGS_BOTTOM_MARGIN}},emphasized:p.Il.secondarySubhead,fiveStarsContainer:{rating:{minWidth:I.COMPACT.FIVE_STARS_RATING_MIN_WIDTH}},fiveStarsRating:{minWidth:I.COMPACT.FIVE_STARS_RATING_MIN_WIDTH},label:[p.Il.smallCopyTight,{marginRight:m.E.SIZE_10,minWidth:I.COMPACT.LABEL_MIN_WIDTH}],rating:[p.Il.secondarySubhead,{marginLeft:m.E.SIZE_10,minWidth:I.COMPACT.RATING_MIN_WIDTH}]},[r.o.DEFAULT]:{container:{"&:not(:last-child)":{marginBottom:I.DEFAULT.RATINGS_BOTTOM_MARGIN}},emphasized:[p.Il.primarySubhead,{lineHeight:22/15}],fiveStarsContainer:{rating:{minWidth:I.DEFAULT.FIVE_STARS_RATING_MIN_WIDTH}},fiveStarsRating:{minWidth:I.DEFAULT.FIVE_STARS_RATING_MIN_WIDTH},label:[p.Il.bodyCopy,{marginRight:m.E.SIZE_40,minWidth:I.DEFAULT.LABEL_MIN_WIDTH}],rating:[p.Il.bodyCopy,{marginLeft:m.E.SIZE_25,minWidth:I.DEFAULT.RATING_MIN_WIDTH}]}},L={RATING_HIGHLIGHT_THRESHOLD:4},T=function(e){let{display:t=r.o.DEFAULT,isShopDetailsRating:n,label:s,value:u,theme:g=o.C.DARK}=e,m=u>=L.RATING_HIGHLIGHT_THRESHOLD,p=(0,l.Ty)(u),I="".concat((0,l.qW)(u,i.l.MAX_RATING),"%"),T=" ".concat((0,c.ui)("common.ratings.outOf")," ").concat(i.l.MAX_RATING),f=[S[t].emphasized,A[g].emphasized,n&&h.shopDetailsEmphasized];return(0,a.FD)("li",{css:[h.container,n&&h.customContainer,S[t].container,A[g].container],"data-component":"RatingsBar",children:[s&&(0,a.Y)("span",{css:S[t].label,children:s}),(0,a.FD)("div",{css:[h.barContainer,n&&h.reviewsBarProgress],children:[(0,a.Y)("span",{css:[h.bar,h.barFull,n?h.reviewsBarFull:A[g].barFull]}),(0,a.Y)("span",{css:[h.bar,h.barProgress,A[g].barProgress,{width:I}]})]}),(0,a.Y)("span",{css:[n&&h.reviewsRating,h.rating,S[t].rating,m&&f],children:0===p?(0,c.ui)("ratings.notavailable"):p}),(0,a.Y)("span",{css:d.Jq,children:T})]})},f=function(e){let{customContainerStyles:t,display:n=r.o.DEFAULT,isShopDetailsRating:i=!1,ratings:l,theme:c=o.C.DARK}=e;return(0,a.Y)("ul",{css:t,"data-component":"RatingsList",children:l.map(e=>{let{label:t,value:r}=e;return(0,a.Y)(T,{display:n,label:t,value:r,theme:c,isShopDetailsRating:i},t)})})}},40247:(e,t,n)=>{n.r(t),n.d(t,{default:()=>I});var a=n(41364),i=n(16652),r=n(68852),o=n(64006),l=n(13380),c=n(40539),d=n(64385);let s={ANIMATION_STEP:n(56242).E.MS200,CIRCLE_MARGIN:5,CIRCLE_SIZE:6,DARK_ACTIVE:c.l.DARK.GRAY_40,DARK_DEFAULT:c.l.DARK.GRAY_80,LIGHT_ACTIVE:c.l.GLOBAL.BLACK,LIGHT_DEFAULT:c.l.LIGHT.GRAY_20},u=(0,l.i7)({"0%":{background:s.DARK_DEFAULT},"16.66667%":{background:s.DARK_DEFAULT},"33.33333%":{background:s.DARK_ACTIVE},"50%":{background:s.DARK_ACTIVE},"66.66667%":{background:s.DARK_DEFAULT},"83.33333%":{background:s.DARK_DEFAULT}}),g=(0,l.i7)({"0%":{background:s.LIGHT_DEFAULT},"16.66667%":{background:s.LIGHT_DEFAULT},"33.33333%":{background:s.LIGHT_ACTIVE},"50%":{background:s.LIGHT_ACTIVE},"66.66667%":{background:s.LIGHT_DEFAULT},"83.33333%":{background:s.LIGHT_DEFAULT}}),m={borderRadius:d.Z.CIRCLE,content:'""',display:"block",height:s.CIRCLE_SIZE,width:s.CIRCLE_SIZE},p={circle:{...m,"&:after":{animationDelay:"".concat(2*s.ANIMATION_STEP,"ms"),left:s.CIRCLE_SIZE+s.CIRCLE_MARGIN},"&:after, &:before":{...m,content:'""',position:"absolute"},"&:before":{animationDelay:"0s",left:-(s.CIRCLE_SIZE+s.CIRCLE_MARGIN)},animationDelay:"".concat(s.ANIMATION_STEP,"ms"),left:s.CIRCLE_SIZE+s.CIRCLE_MARGIN,position:"relative"},container:{display:"block",width:2*s.CIRCLE_MARGIN+3*s.CIRCLE_SIZE},[i.C.DARK]:{"&, &:after, &:before":{animationDuration:"".concat(3*s.ANIMATION_STEP,"ms"),animationIterationCount:"infinite",animationName:u,background:s.DARK_DEFAULT}},[i.C.LIGHT]:{"&, &:after, &:before":{animationDuration:"".concat(3*s.ANIMATION_STEP,"ms"),animationIterationCount:"infinite",animationName:g,background:c.l.LIGHT.GRAY_20}}},I=function(e){let{customContainerStyles:t,label:n=(0,r.ui)("common.loading.label"),theme:l=i.C.LIGHT}=e;return(0,a.FD)("div",{css:[p.container,t],"data-testid":"loading-indicator","data-component":"Loading",children:[(0,a.Y)("span",{css:o.Jq,children:n}),(0,a.Y)("span",{css:[p.container,p.circle,p[l]]})]})}},47411:(e,t,n)=>{n.d(t,{A:()=>E});var a,i=n(41364),r=n(12115);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:null!=e?e:100}),g=e=>({maxWidth:null!=e?e:100,width:null!=e?e:100}),m=e=>e?{[s.MQ.S]:{width:e[s.dj.S]},[s.MQ.M]:{width:e[s.dj.M]},[s.MQ.L]:{width:e[s.dj.L]},[s.MQ.XL]:{width:e[s.dj.XL]}}:{},p=e=>e?{[s.MQ.S]:{width:e[s.dj.S],maxWidth:e[s.dj.S]},[s.MQ.M]:{width:e[s.dj.M],maxWidth:e[s.dj.M]},[s.MQ.L]:{width:e[s.dj.L],maxWidth:e[s.dj.L]},[s.MQ.XL]:{width:e[s.dj.XL],maxWidth:e[s.dj.XL]}}:{},I={container:{position:"relative"},frontStars:{left:0,overflow:"hidden",position:"absolute",top:0}},h={BACKGROUND_STARS:"/static/assets/five-stars-bkg.svg",FRONT_STARS:"/static/assets/five-stars.svg",FRONT_STARS_ORANGE:"/static/assets/five-stars-orange.svg"},A={BACKGROUND_STARS:"five stars background",FRONT_STARTS:"five stars"},S=function(e){let{isOrange:t,rating:n,width:a,widthsForBreakpoint:r}=e,o=Math.round(100*n/5);return(0,i.FD)("div",{"aria-hidden":"true",css:[I.container,u(a),m(r)],"data-component":"StarRating",children:[(0,i.Y)("div",{children:(0,i.Y)("img",{css:[g(a),p(r)],src:h.BACKGROUND_STARS,alt:A.BACKGROUND_STARS})}),(0,i.Y)("div",{css:I.frontStars,style:{width:"".concat(o,"%")},children:(0,i.Y)("img",{css:[g(a),p(r)],src:t?h.FRONT_STARS_ORANGE:h.FRONT_STARS,alt:A.FRONT_STARTS})})]})};var L=n(40539),T=n(33227),f=n(82686),R=n(87607);let E=function(e){let{bgColor:t=L.l.LIGHT.GRAY_20,number:n,color:a=L.l.GLOBAL.ORANGE,embedded:o=!1,width:s,widthsForBreakpoint:u,ssr:g=!1}=e,m=(0,r.useId)(),p=(0,f.qW)(n,T.l.MAX_RATING);return g?(0,i.Y)("div",{css:R.Ay.containerServerSide,children:(0,i.Y)(S,{rating:n,width:s,widthsForBreakpoint:u,isOrange:!0})}):(0,i.FD)("div",{css:[R.Ay.container,(0,R.UI)(s),(0,R.Q4)(u)],children:[(0,i.Y)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",css:{height:0,width:0},focusable:"false",width:"100%",height:"100%",viewBox:"0 0 ".concat(d.hS.FIVE_STARS.w," ").concat(d.hS.FIVE_STARS.h),children:(0,i.FD)("linearGradient",{id:m,gradientUnits:"userSpaceOnUse",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,i.Y)("stop",{offset:"".concat(p,"%"),stopColor:a}),(0,i.Y)("stop",{offset:"0%",stopColor:t})]})}),o?(0,i.Y)("span",{css:[{"--rating-gradient-id":"url(#".concat(m,")")},(0,R.UI)(s),(0,R.Q4)(u),R.Ay.stars,R.Ay.embedded],children:(0,i.Y)(l,{})}):(0,i.Y)(c.default,{css:[{"--rating-gradient-id":"url(#".concat(m,")")},(0,R.UI)(s),(0,R.Q4)(u),R.Ay.stars],name:d.Ze.FIVE_STARS})]})}},53689:(e,t,n)=>{n.d(t,{FU:()=>l,IB:()=>c});var a=n(41364),i=n(12115),r=n(54880);let o=(0,r.q6)();function l(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{window.onYouTubeIframeAPIReady=()=>{t(!0)}},[]),{isYoutubeScriptReady:e}}();return(0,a.Y)(o.Provider,{value:n,"data-element":"unknown","data-component":"YoutubeScriptContextProvider",children:t})}let c=(e,t)=>(0,r.i7)(o,e,t)},57905:(e,t,n)=>{n.d(t,{A:()=>c,Z:()=>d});var a=n(41364),i=n(12115),r=n(67914),o=n(54880);let l=(0,o.q6)();function c(e){let{children:t}=e,n=function(){let e=(0,i.useRef)(0),t=(0,i.useCallback)(()=>!(e.current>=4)&&(e.current+=1,!0),[]),n=(0,i.useCallback)(()=>{e.current=0},[]);return(0,i.useEffect)(()=>(r.o.routeChangeComplete.on(n),()=>{r.o.routeChangeComplete.off(n)}),[n]),{increaseCount:t}}();return(0,a.Y)(l.Provider,{value:n,"data-element":"unknown","data-component":"ComponentErrorBoundaryCounterContextProvider",children:t})}let d=(e,t)=>(0,o.i7)(l,e,t)},71106:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(41364),i=n(12115),r=n(68852),o=n(33400),l=n(82462),c=n(10004),d=n(13380),s=n(40539),u=n(68536),g=n(44787);let m={centre:{backgroundColor:s.l.GLOBAL.WHITE,borderTopLeftRadius:"75px",borderTopRightRadius:" 75px",bottom:"-1px",height:"72%",left:"50%",position:"absolute",transform:"translateX(-50%)",width:"72%",zIndex:10},centreWithOffWhite:{backgroundColor:s.l.LIGHT.OFF_WHITE},coloredOverlay:{animationDuration:"1.5s",animationFillMode:"forwards",animationTimingFunction:"ease",borderTopLeftRadius:"75px",borderTopRightRadius:"75px",height:"100%",position:"absolute",width:"100%"},container:{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},header:{alignItems:"center",display:"flex",marginBottom:u.E.SIZE_05},infoIcon:{marginLeft:u.E.SIZE_05},main:{backgroundImage:"repeating-conic-gradient(from -90deg at 50% 100%,".concat(s.l.LIGHT.GRAY_20," 0deg,").concat(s.l.LIGHT.GRAY_20," 15deg, ").concat(s.l.GLOBAL.WHITE," 14deg,").concat(s.l.GLOBAL.WHITE," 18deg )"),borderTopLeftRadius:"75px",borderTopRightRadius:" 75px",height:"75px",position:"relative",width:"150px"},mainWithOffWhiteBackground:{backgroundImage:"repeating-conic-gradient(from -90deg at 50% 100%,".concat(s.l.LIGHT.GRAY_20," 0deg,").concat(s.l.LIGHT.GRAY_20," 15deg, ").concat(s.l.LIGHT.OFF_WHITE," 14deg,").concat(s.l.LIGHT.OFF_WHITE," 18deg )")},scoreRangePlacementVertical:{flexDirection:"column","& > p":[g.gI.primaryHeadline.base],"& > span":{display:"none"},"& > .horizontalScore":[g.Il.labelHeadline,{color:s.l.GLOBAL.ORANGE,marginTop:u.E.SIZE_05,textTransform:"uppercase"}]},scoreRangePlacementVerticalBrand:{flexDirection:"column","& > p":[g.Il.topPicksPrice],"& > span":{display:"none"},"& > .horizontalScore":[g.Il.smallCopyBold,{color:s.l.GLOBAL.BLACK,marginTop:u.E.SIZE_05,textTransform:"uppercase"}]},scoreRangeWrapper:{"& .horizontalScore":{textTransform:"capitalize"},"& > p":[g.gI.primaryHeadline.base,{fontWeight:"bolder"}],"& > span":[{backgroundColor:s.l.GLOBAL.BLACK,borderRadius:"50%",height:u.E.SIZE_08,marginLeft:u.E.SIZE_05,marginRight:u.E.SIZE_05,width:u.E.SIZE_08}],alignItems:"center",display:"flex",marginTop:u.E.SIZE_10},scoreRangeWrapperSmall:{marginTop:u.E.SIZE_05,"& > p":[g.Il.bodyCopy,{fontWeight:"bolder"}]},scorerDot:{backgroundColor:s.l.GLOBAL.BLACK,borderRadius:"50%",bottom:"0",height:"18px",left:"50%",position:"absolute",transform:"translateX(-50%)",width:"18px"},scorerTick:{animationDuration:"1.5s",animationFillMode:"forwards",animationTimingFunction:"ease",backgroundColor:s.l.GLOBAL.BLACK,clipPath:"polygon(0 50%, 100% 85%, 100% 15%)",height:"18px",left:"-27px",position:"absolute",transformOrigin:"right center",width:"36px"},scoreUnavailable:[g.gI.primaryHeadline.base,{marginTop:u.E.SIZE_20}],scoreUnavailableSmall:[g.gI.tertiaryHeadline.base,{marginTop:u.E.SIZE_10}],smallMain:{borderTopLeftRadius:"45px",borderTopRightRadius:"45px",height:"45px",width:"90px"},smallScorerDot:{height:"10px",width:"10px"},smallScorerTick:{left:"-13px",height:"10px",width:"18px"},title:[g.Il.bodyCopy,{fontWeight:"500"}],underlinedOverlay:{backgroundImage:"repeating-conic-gradient(from -90deg at 50% 100%,transparent 0deg,transparent 15deg,".concat(s.l.GLOBAL.WHITE," 14deg, ").concat(s.l.GLOBAL.WHITE," 18deg)"),borderTopLeftRadius:"75px",borderTopRightRadius:"75px",height:"100%",position:"absolute",width:"100%"},underlinedOverlayWithOffWhite:{backgroundImage:"repeating-conic-gradient(from -90deg at 50% 100%,transparent 0deg,transparent 15deg,".concat(s.l.LIGHT.OFF_WHITE," 14deg, ").concat(s.l.LIGHT.OFF_WHITE," 18deg)")},wrapper:{alignItems:"flex-start",display:"flex",flexDirection:"column",justifyContent:"center"}},p=e=>({transform:"rotate(".concat(e,"deg)"),animationName:(0,d.i7)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(".concat(e,"deg)")}})}),I=e=>({animationName:(0,d.i7)({"0%":{backgroundImage:"conic-gradient(from -90deg at 50% 100%,".concat(s.l.GLOBAL.ORANGE," 0deg,transparent 0)")},"100%":{backgroundImage:"conic-gradient(from -90deg at 50% 100%,".concat(s.l.GLOBAL.ORANGE," 0,").concat(s.l.GLOBAL.ORANGE," ").concat((e||0)/10*180,"deg,transparent 0)")}})});function h(e){let{customCenterStyle:t,displayHeaderWithLearnMoreLink:n=!0,simpleScore:d=0,simpleScoreRange:s="good",isSimpleScoreRangePlacementVertical:u=!1,isSimpleScoreRangePlacementVerticalBrand:g,offWhite:h=!1,isSmall:A=!1}=e,S=(0,i.useMemo)(()=>3>=Number(d)?+d/10*180-10:+d/10*180+5,[d]),L=(0,c.J)(d,1);return(0,a.Y)("div",{css:m.mainWrapper,"data-component":"SimpleScoreCard",children:(0,a.FD)("div",{css:m.container,children:[n&&(0,a.FD)("div",{css:m.header,children:[(0,a.FD)("p",{css:m.title,children:[" ",(0,r.ui)("catalog.simpleScore.title")]}),(0,a.Y)(o.default,{name:l.Ze.INFO,css:m.infoIcon})]}),(0,a.FD)("div",{css:[m.main,A&&m.smallMain,h&&m.mainWithOffWhiteBackground],children:[(0,a.Y)("div",{css:[m.centre,h&&m.centreWithOffWhite,t],children:(0,a.Y)("div",{css:[m.scorerDot,A&&m.smallScorerDot],children:(0,a.Y)("div",{css:[m.scorerTick,A&&m.smallScorerTick,p(S)]})})}),(0,a.Y)("div",{css:[m.coloredOverlay,I(+L)]}),(0,a.Y)("div",{css:[m.underlinedOverlay,h&&m.underlinedOverlayWithOffWhite]})]}),0!==d?(0,a.FD)("div",{css:[m.scoreRangeWrapper,A&&m.scoreRangeWrapperSmall,u&&m.scoreRangePlacementVertical,g&&m.scoreRangePlacementVerticalBrand],children:[(0,a.Y)("p",{children:(0,r.ui)("catalog.simpleScore.score",{simpleScore:L})}),(0,a.Y)("span",{}),(0,a.Y)("p",{className:"horizontalScore",children:s})]}):(0,a.Y)("p",{css:[m.scoreUnavailable,A&&m.scoreUnavailableSmall],children:(0,r.ui)("catalog.simpleScore.scoreUnavailable")})]})})}},73874:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(41364),i=n(24668);let r=function(e){let{isOpen:t,onClose:n,openManufacturersWarrantiesModal:r}=e;return(0,a.Y)(i.A,{isOpen:t,onClose:n,openManufacturersWarrantiesModal:r,"data-element":"CheckoutPuncturedModal","data-component":"PuncturedModal"})}},82686:(e,t,n)=>{function a(e,t){return e/t*100}function i(e){return e>0?e.toFixed(1):0}function r(e){let[t,n]=e.split("/");return parseInt(n,10)/parseInt(t,10)*100}n.d(t,{Ty:()=>i,qW:()=>a,rb:()=>r})},87607:(e,t,n)=>{n.d(t,{Ay:()=>c,Q4:()=>l,UI:()=>o});var a=n(25289),i=n(68536);let r={container:{alignItems:"center",display:"flex",marginRight:i.E.SIZE_05},containerServerSide:{margin:"3px ".concat(i.E.SIZE_05,"px 0 0")},embedded:{display:"flex"},rating:{lineHeight:"inherit",marginLeft:i.E.SIZE_10,marginTop:i.E.SIZE_01},ratingContainer:{alignItems:"center",display:"flex"},stars:{svg:{fill:"var(--rating-gradient-id)"}}},o=e=>({width:e||"auto"}),l=e=>e?{[a.MQ.S]:{width:e[a.dj.S]},[a.MQ.M]:{width:e[a.dj.M]},[a.MQ.L]:{width:e[a.dj.L]},[a.MQ.XL]:{width:e[a.dj.XL]}}:{},c=r},91916:(e,t,n)=>{n.d(t,{o:()=>a});var a=function(e){return e.COMPACT="compact",e.DEFAULT="default",e}({})},96521:(e,t,n)=>{n.d(t,{uq:()=>i,w7:()=>a});var a=function(e){return e.Sidetread="sidetread",e.Sidewall="sidewall",e.Treadfull="treadfull",e.Treadonly="treadonly",e.Unavailable="unavailable",e.View360="view360",e}({}),i=function(e){return e.SiteCatalogProductImage="SiteCatalogProductImage",e}({})}}]);