"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6064,52498],{14863:(e,t,a)=>{a.r(t),a.d(t,{default:()=>Z});var i=a(29747),r=a(735),n=a.n(r),o=a(18847),l=a.n(o),c=a(14232),d=a(24964),s=a(10983),p=a(20735),g=a(30735),E=a(30908),u=a(88554),I=a(70630),h=a(9526),m=a(57532),_=a(25e3),T=a(29060),S=a(18079),b=a(63276),A=a(44364),f=a(32586),L=a(63381),R=a(36384);let v={closeBtn:{justifyContent:"center",margin:"".concat(L.E.SIZE_40,"px 0"),width:"100%"},container:{paddingTop:L.E.SIZE_70,[b.MQ.M]:{padding:"".concat(L.E.SIZE_110,"px ").concat(L.E.SIZE_20,"px 0")},[b.MQ.L]:{padding:"".concat(L.E.SIZE_80,"px 0 0")}},content:{"& ul li":[R.Il.primarySubhead,{":before":{content:'"•"',display:"inline-block",fontSize:7,padding:"".concat(L.E.SIZE_05,"px ").concat(L.E.SIZE_15,"px ").concat(L.E.SIZE_05,"px ").concat(L.E.SIZE_05,"px"),position:"relative"},display:"flex",listStyle:"none",marginBottom:L.E.SIZE_10,paddingLeft:0}],b:{color:A.l.GLOBAL.BLACK,display:"block"},color:A.l.LIGHT.GRAY_70,p:[R.Il.bodyCopy,{marginBottom:22}],ul:{marginBottom:L.E.SIZE_40,paddingLeft:"1.75rem",[b.MQ.M]:{marginBottom:L.E.SIZE_60}}},contentContainer:{marginTop:L.E.SIZE_40,u:{cursor:"pointer"}},imageContainer:{width:"100%"},imageWrapper:{margin:"0 ".concat(-L.E.SIZE_20,"px ").concat(L.E.SIZE_40,"px"),[b.MQ.M]:{margin:"0 ".concat(-L.E.SIZE_40,"px ").concat(L.E.SIZE_60,"px")},[b.MQ.L]:{margin:"0 ".concat(-L.E.SIZE_60,"px ").concat(L.E.SIZE_60,"px")}},recommendedBadge:[R.Il.secondarySubhead,{backgroundColor:A.l.GLOBAL.ORANGE,borderRadius:f.Z.RADIUS_5,bottom:L.E.SIZE_10,color:A.l.GLOBAL.WHITE,display:"flex",left:L.E.SIZE_15,padding:"".concat(L.E.SIZE_02,"px ").concat(L.E.SIZE_05,"px"),position:"absolute",svg:{paddingLeft:L.E.SIZE_05,width:15,height:16}}],rhContent:{padding:"".concat(L.E.SIZE_20,"px ").concat(L.E.SIZE_15,"px ").concat(L.E.SIZE_20,"px ").concat(L.E.SIZE_20,"px"),h2:R.Il.primarySubhead,"> p > a":{margin:"".concat(L.E.SIZE_20,"px 0"),span:{textDecoration:"underline"},"&:hover":{color:A.l.GLOBAL.BLACK}},"> p, > p > a span":[R.Il.smallCopyTight,{color:A.l.LIGHT.GRAY_70}]},rhImageContainer:{position:"relative"},rhSection:{border:S.s.SOLID_OFF_WHITE_5PX,borderRadius:f.Z.RADIUS_15,overflow:"hidden"},secondarySubtitle:{marginTop:L.E.SIZE_60},subtitle:[R.Il.largeCopy,{marginBottom:L.E.SIZE_40,u:{cursor:"pointer"},[b.MQ.M]:{marginBottom:L.E.SIZE_60}}],title:[R.gI.primaryHeadline.base,{marginBottom:L.E.SIZE_30,maxWidth:250}]},C=l()(()=>a.e(52498).then(a.bind(a,52498)),{loadableGenerated:{webpack:()=>[52498]}}),Z=(0,c.memo)(function(e){let{isOpen:t,onClose:a,openRoadHazardModal:r}=e,n=(0,m.ui)("checkout.services.manufacturersWarranties.title");return(0,i.Y)(I.default,{contentLabel:n,theme:h.wD.LIGHT,onClose:a,isOpen:t,"data-element":"Modal","data-component":"ManufacturersWarrantiesModal",children:(0,i.FD)("div",{css:v.container,children:[(0,i.Y)("h1",{css:v.title,children:(0,m.ui)("checkout.services.manufacturersWarranties.title")}),(0,i.Y)(u.A,{css:v.subtitle,"data-element":"Markdown",children:(0,m.ui)("checkout.services.manufacturersWarranties.subtitle")}),(0,i.Y)("div",{css:v.imageWrapper,children:(0,i.Y)(g.default,{altText:T.yg.altText||n,src:T.yg.src,customContainerStyles:v.imageContainer,widths:[384,480,480],"data-element":"Image"})}),(0,i.Y)("div",{css:v.contentContainer,children:(0,i.Y)(u.A,{css:v.content,"data-element":"Markdown",children:(0,m.ui)("checkout.services.manufacturersWarranties.content")})}),(0,i.Y)("div",{css:v.secondarySubtitle,children:(0,i.Y)(u.A,{css:v.subtitle,"data-element":"Markdown",children:(0,m.ui)("checkout.services.manufacturersWarranties.secondarySubtitle")})}),(0,i.FD)("div",{css:v.rhSection,children:[(0,i.FD)("div",{css:v.rhImageContainer,children:[(0,i.Y)(g.default,{altText:T.Pm.altText||n,src:T.Pm.src,widths:[384,480,480],"data-element":"Image"}),(0,i.FD)("span",{css:v.recommendedBadge,children:[(0,i.Y)("span",{children:(0,m.ui)("checkout.services.manufacturersWarranties.recommended")}),(0,i.Y)(s.default,{name:p.Ze.WARRANTY,"data-element":"Icon"})]})]}),(0,i.FD)("div",{css:v.rhContent,children:[(0,i.Y)("h2",{children:(0,m.ui)("checkout.services.punctured.title")}),(0,i.FD)("p",{children:[(0,i.Y)("span",{children:(0,m.ui)("checkout.services.manufacturersWarranties.rhContent")}),(0,i.Y)(E.A,{onClick:()=>{a(),r()},"data-element":"Link",children:(0,m.ui)("checkout.services.manufacturersWarranties.viewDetails")})]}),(0,i.Y)(C,{headers:_.Q,data:_.E,"data-element":"ComparisonChart"})]})]}),(0,i.Y)(d.A,{css:v.closeBtn,onClick:a,"data-element":"Button",children:(0,m.ui)("checkout.services.punctured.close")})]})})},(e,t)=>n()(e,t))},25e3:(e,t,a)=>{a.d(t,{E:()=>r,Q:()=>i});let i=["","Manufacturer's warranties","Replacement coverage"],r=[{title:"Material defects",hasWarranties:!0,hasRoadHazard:!1},{title:"Premature wear & tear",hasWarranties:!0,hasRoadHazard:!1},{title:"Punctures",hasWarranties:!1,hasRoadHazard:!0},{title:"Bruises",hasWarranties:!1,hasRoadHazard:!0},{title:"Impact damage",hasWarranties:!1,hasRoadHazard:!0},{title:"Protection for 3 years",hasWarranties:!1,hasRoadHazard:!0},{title:"Replacement up to 100% of the tire cost",hasWarranties:!1,hasRoadHazard:!0},{title:"Repairs reimbursed up to $25 per tire, per ocurrence",hasWarranties:!1,hasRoadHazard:!0}]},33625:(e,t,a)=>{a.d(t,{A:()=>S});var i=a(29747),r=a(24964),n=a(30735),o=a(88554),l=a(70630),c=a(99595),d=a(9526),s=a(57532),p=a(52498),g=a(25e3),E=a(29060),u=a(18079),I=a(63276),h=a(44364),m=a(63381),_=a(36384);let T={closeBtn:{justifyContent:"center",margin:"".concat(m.E.SIZE_40,"px 0"),width:"100%"},closeBtnPirelli:{backgroundColor:h.l.GLOBAL.YELLOW,border:u.s.SOLID_YELLOW_2PX,borderRadius:"0px",color:h.l.GLOBAL.BLACK},container:{paddingTop:m.E.SIZE_70,[I.MQ.M]:{padding:"".concat(m.E.SIZE_110,"px ").concat(m.E.SIZE_20,"px 0")},[I.MQ.L]:{padding:"".concat(m.E.SIZE_80,"px 0 0")}},content:{"& ul li":[_.Il.primarySubhead,{":before":{content:'"•"',display:"inline-block",fontSize:7,padding:"".concat(m.E.SIZE_05,"px ").concat(m.E.SIZE_15,"px ").concat(m.E.SIZE_05,"px ").concat(m.E.SIZE_05,"px"),position:"relative"},display:"flex",listStyle:"none",marginBottom:m.E.SIZE_10,paddingLeft:0}],color:h.l.LIGHT.GRAY_70,p:[_.Il.bodyCopy,{marginBottom:22}],ul:{marginBottom:m.E.SIZE_40,paddingLeft:"1.75rem",[I.MQ.M]:{marginBottom:m.E.SIZE_60}}},contentContainer:{marginTop:m.E.SIZE_40,u:{cursor:"pointer"}},imageContainer:{width:"100%"},imageWrapper:{margin:"0 ".concat(-m.E.SIZE_20,"px ").concat(m.E.SIZE_40,"px"),[I.MQ.M]:{margin:"0 ".concat(-m.E.SIZE_40,"px ").concat(m.E.SIZE_60,"px")},[I.MQ.L]:{margin:"0 ".concat(-m.E.SIZE_60,"px ").concat(m.E.SIZE_60,"px")}},subtitle:[_.Il.largeCopy,{marginBottom:m.E.SIZE_40,u:{cursor:"pointer"},[I.MQ.M]:{marginBottom:m.E.SIZE_60}}],title:[_.gI.primaryHeadline.base,{marginBottom:m.E.SIZE_30,maxWidth:200}],titlePirelli:{maxWidth:400}},S=function(e){let{isOpen:t,onClose:a,openManufacturersWarrantiesModal:u}=e,I=e=>{"U"===e.target.tagName&&(a(),u())},{isSourcePirelliWidget:h}=(0,c.A)(),m=h?"Free "+(0,s.ui)("checkout.services.punctured.title")+"!":(0,s.ui)("checkout.services.punctured.title"),_=h?(0,s.ui)("checkout.services.punctured.subtitlePirelli"):(0,s.ui)("checkout.services.punctured.subtitle");return(0,i.Y)(l.default,{contentLabel:m,theme:d.wD.LIGHT,onClose:a,isOpen:t,"data-element":"Modal","data-component":"PuncturedModal",children:(0,i.FD)("div",{css:T.container,children:[(0,i.Y)("h1",{css:[T.title,h&&T.titlePirelli],children:h?(0,i.Y)("span",{children:m}):(0,i.Y)(o.A,{children:m})}),(0,i.Y)("div",{css:T.subtitle,onClick:I,children:(0,i.Y)(o.A,{css:T.subtitle,"data-element":"Markdown",children:_})}),(0,i.Y)("div",{css:T.imageWrapper,children:(0,i.Y)(n.default,{altText:E.Pm.altText||m,src:E.Pm.src,customContainerStyles:T.imageContainer,widths:[384,480,480],"data-element":"Image"})}),(0,i.Y)(p.default,{headers:g.Q,data:g.E,onManufacturersWarrantiesIconClick:u,"data-element":"ComparisonChart"}),(0,i.Y)("div",{css:T.contentContainer,onClick:I,children:(0,i.Y)(o.A,{css:T.content,"data-element":"Markdown",children:(0,s.ui)("checkout.services.punctured.content")})}),(0,i.Y)(r.A,{css:[T.closeBtn,h&&T.closeBtnPirelli],onClick:a,"data-element":"Button",children:h?"Got it!":(0,s.ui)("checkout.services.punctured.close")})]})})}},52498:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var i=a(29747),r=a(10983),n=a(20735),o=a(44364),l=a(32586),c=a(63381),d=a(36384);let s={checkmark:{background:o.l.GLOBAL.ORANGE,borderRadius:l.Z.CIRCLE,color:o.l.GLOBAL.WHITE,height:12,margin:"auto",marginBottom:"auto",marginTop:"auto",padding:3,width:12},colTitle:[d.Il.smallCopy,{color:o.l.LIGHT.GRAY_70,fontWeight:"bold",justifyContent:"center",lineHeight:"14px",paddingTop:c.E.SIZE_08,textAlign:"center"}],greyBg:{background:o.l.LIGHT.GRAY_10},infoIcon:{cursor:"pointer",display:"inline-flex",height:10,left:3,position:"relative",top:3,width:10},roundBottom:{position:"relative",":after":{background:o.l.LIGHT.GRAY_10,borderBottomLeftRadius:8,borderBottomRightRadius:8,bottom:"-12px",content:"''",display:"block",height:"12px",left:"0px",position:"absolute",width:"100%"}},roundTop:{borderTopLeftRadius:8,borderTopRightRadius:8},rowTitle:[d.Il.smallCopy,{color:o.l.LIGHT.GRAY_70,lineHeight:"14px",paddingTop:c.E.SIZE_05,textAlign:"left",width:"46%"}],table:{display:"flex",flexDirection:"column",width:"100%"},tableRowWrapper:{"& > :nth-child(3)":{background:o.l.LIGHT.GRAY_10},display:"flex",flexDirection:"row"},tcell:{display:"flex",flexGrow:0,flexShrink:0,padding:c.E.SIZE_05,verticalAlign:"top",width:"30%"},trow:{boxSizing:"border-box",display:"table-row",flexDirection:"row",flexWrap:"nowrap",width:"100%"}},p=function(e){let{label:t,headers:a,data:o,onManufacturersWarrantiesIconClick:l}=e;return(0,i.FD)("div",{role:"table","aria-label":t,css:s.table,"data-component":"ComparisonChart",children:[(0,i.Y)("div",{role:"row",css:s.trow,children:(0,i.Y)("div",{css:s.tableRowWrapper,children:a&&a.map((e,t)=>e?(0,i.Y)("div",{role:"columnheader",css:[s.tcell,s.colTitle,2===t&&s.roundTop],children:(0,i.FD)("span",{children:[(0,i.Y)("span",{children:e}),1===t&&l&&(0,i.Y)(r.default,{name:n.Ze.INFO,css:s.infoIcon,onClick:l})]})},t):(0,i.Y)("div",{role:"cell",css:s.rowTitle},t))})}),o.length&&o.map((e,t)=>(0,i.Y)("div",{role:"row",css:s.trow,children:(0,i.FD)("div",{css:s.tableRowWrapper,children:[(0,i.Y)("div",{role:"columnheader",css:s.rowTitle,children:e.title}),(0,i.Y)("div",{css:s.tcell,role:"cell",children:e.hasWarranties?(0,i.Y)(r.default,{name:n.Ze.CHECKMARK,css:s.checkmark}):null}),(0,i.Y)("div",{css:[s.tcell,t===o.length-1&&s.roundBottom],role:"cell",children:e.hasRoadHazard?(0,i.Y)(r.default,{name:n.Ze.CHECKMARK,css:s.checkmark}):null})]})},e.title))]})}},64791:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});var i=a(29747),r=a(33625);let n=function(e){let{isOpen:t,onClose:a,openManufacturersWarrantiesModal:n}=e;return(0,i.Y)(r.A,{isOpen:t,onClose:a,openManufacturersWarrantiesModal:n,"data-element":"CheckoutPuncturedModal","data-component":"PuncturedModal"})}},71303:(e,t,a)=>{a.d(t,{O:()=>S,A:()=>b});var i=a(29747),r=a(24964),n=a(10983),o=a(20735),l=a(40994),c=a(57532),d=a(30469),s=a(63276),p=a(44364),g=a(63381),E=a(36384);let u={brandPageSources:{color:p.l.GLOBAL.WHITE},brandPageTitle:{color:p.l.GLOBAL.WHITE},catalogPage:[E.Il.secondaryHeadline],catalogPageNoReviews:{textAlign:"center"},catalogPageSources:[E.Il.smallCopy],reviewPageTitle:[E.Il.primaryHeadline,{color:p.l.GLOBAL.BLACK}],source:{color:p.l.LIGHT.GRAY_70,".preposition":{display:"none",[s.MQ.M]:{display:"inline-block"}}},sources:[E.Il.bodyCopy,{color:p.l.LIGHT.GRAY_70,display:"flex",flexDirection:"column",paddingTop:g.E.SIZE_05}],title:[E.Il.primaryHeadline],titleContainer:{display:"inline",float:"left",paddingBottom:g.E.SIZE_30,paddingTop:g.E.SIZE_30,[s.MQ.L]:{display:"block",float:"inherit"}}},I=function(e){let{title:t,sources:a,isBrandPage:r,isCatalogPage:n,isReviewPage:o}=e,l=(null==a?void 0:a.simpleTire)||(null==a?void 0:a.googleShopping);return(0,i.FD)("div",{css:o&&u.titleContainer,"data-component":"ReviewScoreSource",children:[(0,i.Y)("h3",{css:[o?u.reviewPageTitle:u.title,r&&u.brandPageTitle,n&&u.catalogPage,n&&!l&&u.catalogPageNoReviews],children:t}),!!l&&(0,i.FD)("span",{css:[u.sources,r&&u.brandPageSources,n&&u.catalogPageSources],children:[!!(null==a?void 0:a.simpleTire)&&(0,i.Y)("span",{css:u.source,children:(0,d.u)("reviews.simpleTire.name",{number:a.simpleTire,preposition:(0,i.Y)("span",{className:"preposition",children:(0,c.ui)("reviews.simpleTire.preposition")},"st-preposition")})}),!!(null==a?void 0:a.googleShopping)&&(0,i.Y)("span",{css:u.source,children:(0,d.u)("reviews.google.name",{number:null==a?void 0:a.googleShopping,preposition:(0,i.Y)("span",{className:"preposition",children:(0,c.ui)("reviews.google.preposition")},"google-preposition")})})]})]})};var h=a(18079);let m={brandPageRoot:{background:p.l.DARK.GRAY_95},brandPageSubTitle:{color:p.l.DARK.GRAY_40,textAlign:"center"},brandPageTitle:{color:p.l.GLOBAL.WHITE},catalogPageRoot:{alignItems:"center",background:p.l.LIGHT.GRAY_10,borderRadius:10,display:"flex",flexDirection:"column",justifyContent:"center",paddingBottom:g.E.SIZE_30,paddingTop:g.E.SIZE_30,[s.MQ.M]:{borderRadius:15}},catalogPagesubtitle:[E.Il.smallCopy],catalogPageTitle:{fontSize:"36px",fontWeight:"bold"},noDataTitle:[(0,E._R)(18,15),{fontWeight:"bold",lineHeight:"2.4"}],root:{alignItems:"center",background:p.l.LIGHT.GRAY_10,borderRadius:10,display:"flex",flexDirection:"column",justifyContent:"center",paddingBottom:g.E.SIZE_30,paddingTop:g.E.SIZE_30,[s.MQ.M]:{borderRadius:15}},star:{color:p.l.GLOBAL.ORANGE,height:10,position:"absolute",right:-15,top:5,width:10},subtitle:[E.Il.bodyCopy,{color:p.l.LIGHT.GRAY_70,textAlign:"center"}],title:[E.Il.jumboHeadline],titleWrapper:{position:"relative"}},_={brandPageContainer:{flexDirection:"column",gap:g.E.SIZE_15,[s.MQ.M]:{flexDirection:"row"}},brandPageCta:{"&:hover":{borderColor:"".concat(p.l.DARK.GRAY_80," !important")},alignItems:"center",background:"transparent",border:h.s.SOLID_GRAY_80_1PX,borderWidth:g.E.SIZE_02,color:p.l.GLOBAL.WHITE,display:"flex",justifyContent:"center",paddingBottom:g.E.SIZE_20,paddingTop:g.E.SIZE_20,width:"100%",[s.MQ.M]:{paddingLeft:g.E.SIZE_25,paddingRight:g.E.SIZE_25,fontSize:15}},brandPageSources:{color:p.l.GLOBAL.WHITE},brandPageTitle:{color:p.l.GLOBAL.WHITE},catalogPage:{display:"flex"},catalogPageCtaContainer:{marginTop:g.E.SIZE_30},catalogPageWriteExp:{marginTop:g.E.SIZE_10},catalogPageWriteReview:{borderTop:"none",marginTop:g.E.SIZE_30,paddingTop:"0",[s.MQ.L]:{paddingTop:"0",marginTop:g.E.SIZE_30}},container:{display:"flex",flexDirection:"row",gap:g.E.SIZE_20,justifyContent:"space-between",marginBottom:g.E.SIZE_20,[s.MQ.M]:{gap:0,marginBottom:g.E.SIZE_40},[s.MQ.XL]:{marginBottom:g.E.SIZE_60}},cta:[(0,E._R)(12,15),{background:p.l.LIGHT.OFF_WHITE,fontWeight:700,height:35,paddingLeft:g.E.SIZE_15,paddingRight:g.E.SIZE_15,[s.MQ.M]:{paddingLeft:g.E.SIZE_25,paddingRight:g.E.SIZE_25,fontSize:15}}],ctaContainer:{alignItems:"center",display:"flex",justifyContent:"center",marginTop:g.E.SIZE_20},ctaWrapper:{display:"flex",flexDirection:"row-reverse",gap:g.E.SIZE_10,[s.MQ.M]:{gap:g.E.SIZE_20},[s.MQ.L]:{gap:g.E.SIZE_10},[s.MQ.XL]:{gap:g.E.SIZE_20}},ctaWrapperUpdate:{width:"100%",[s.MQ.L]:{width:"initial"}},icon:{marginLeft:g.E.SIZE_10},noReviews:{[s.MQ.S]:{flexDirection:"column"},[s.MQ.L]:{flexDirection:"row"}},reviewCTA:{float:"right",marginTop:g.E.SIZE_40,[s.MQ.L]:{display:"none"}},reviewPageCta:[(0,E._R)(15,15),{background:p.l.GLOBAL.WHITE,fontWeight:700,height:50,justifyContent:"center",paddingLeft:g.E.SIZE_15,paddingRight:g.E.SIZE_15,width:"100%"}],reviewPageTitle:[E.Il.primaryHeadline,{color:p.l.GLOBAL.BLACK}],reviewsContainer:{flexGrow:1,justifyContent:"flex-end",marginBottom:g.E.SIZE_40,marginTop:g.E.SIZE_40,[s.MQ.M]:{marginTop:g.E.SIZE_20,marginBottom:0},[s.MQ.XL]:{marginBottom:g.E.SIZE_20}},root:{clear:"both",display:"grid",gridGap:"1rem",gridTemplateColumns:"repeat(2, 1fr)",height:"100%"},source:{color:p.l.LIGHT.GRAY_70,".preposition":{display:"none",[s.MQ.M]:{display:"inline-block"}}},sources:[E.Il.bodyCopy,{color:p.l.LIGHT.GRAY_70,display:"flex",flexDirection:"column",paddingTop:g.E.SIZE_05}],title:[E.Il.primaryHeadline],titleContainer:{paddingBottom:g.E.SIZE_30,paddingTop:g.E.SIZE_30},viewTireCta:{},viewTireCtaOnReview:[(0,E._R)(15,15),{fontWeight:700,height:50,justifyContent:"center",paddingLeft:g.E.SIZE_15,paddingRight:g.E.SIZE_15,width:"50%",[s.MQ.M]:{paddingLeft:g.E.SIZE_25,paddingRight:g.E.SIZE_25,width:"60%"},[s.MQ.L]:{width:"initial"}}],writeExp:[E.Il.secondaryHeadline,{marginTop:g.E.SIZE_20,textAlign:"center"}],writeReview:{alignItems:"center",borderTop:"1px solid ".concat(p.l.LIGHT.GRAY_20),display:"flex",flexDirection:"column",justifyContent:"center",marginTop:g.E.SIZE_60,paddingTop:g.E.SIZE_60,[s.MQ.L]:{paddingTop:g.E.SIZE_80,marginTop:g.E.SIZE_80}}};function T(e){let{title:t,hasStar:a,subtitle:r,isBrandPage:l,isCatalogPage:c}=e,d="No data"===t;return(0,i.FD)("div",{css:[!c&&m.root,l&&m.brandPageRoot,c&&m.catalogPageRoot],"data-component":"ReviewMomentCard",children:[(0,i.FD)("div",{css:m.titleWrapper,children:[(0,i.Y)("h1",{css:[!c&&m.title,l&&m.brandPageTitle,c&&d&&m.noDataTitle,c&&!d&&m.catalogPageTitle],children:t}),a&&(0,i.Y)(n.default,{name:o.Ze.STARTEST,css:m.star})]}),(0,i.Y)("p",{css:[m.subtitle,l&&m.brandPageSubTitle,c&&m.catalogPagesubtitle],children:r})]})}function S(e){let{sources:t,title:a,writeReviewLink:d,writeReviewLinkLabel:s,reviews:p,isReviewPage:g,viewTireLink:E,isBrandPage:u=!1,isCatalogPage:h=!1,total:m}=e,T=!!(null==p?void 0:p.length)||!!m;return(0,i.FD)("div",{css:[!h&&_.container,!T&&!u&&_.noReviews,u&&_.brandPageContainer,g&&_.reviewsContainer],"data-component":"ReviewHeader",children:[!g&&(0,i.Y)(I,{title:a,sources:t,isReviewPage:g,isBrandPage:u,isCatalogPage:h}),(0,i.FD)("div",{css:[_.ctaWrapper,g&&_.ctaWrapperUpdate],children:[E&&!h&&(0,i.Y)(r.A,{css:g?_.viewTireCtaOnReview:_.viewTireCta,as:"a",href:E,children:(0,c.ui)("reviews.viewTire")}),u?(0,i.Y)("div",{children:(0,i.Y)(r.A,{css:[g?_.reviewPageCta:_.cta,u&&_.brandPageCta],as:"a",href:null==d?void 0:d.href,style:l.l.OUTLINED,isExternal:null==d?void 0:d.isExternal,children:s})}):T?!h&&(0,i.Y)("div",{css:_.writeReviewWrapper,children:(0,i.Y)(r.A,{css:g?_.reviewPageCta:_.cta,as:"a",href:null==d?void 0:d.href,style:l.l.OUTLINED,isExternal:null==d?void 0:d.isExternal,children:s})}):(0,i.FD)("div",{css:[_.writeReview,h&&_.catalogPageWriteReview],children:[(0,i.Y)(n.default,{name:o.Ze.STAR_OUTLINE,css:_.star}),(0,i.Y)("h3",{css:[_.writeExp,h&&_.catalogPageWriteExp],children:(0,c.ui)("reviews.shareExp")}),(0,i.Y)("div",{css:[_.ctaContainer,h&&_.catalogPageCtaContainer],children:(0,i.FD)(r.A,{css:g?_.reviewpagecta:_.cta,as:"a",href:null==d?void 0:d.href,style:l.l.OUTLINED,isExternal:null==d?void 0:d.isExternal,children:[(0,i.Y)("span",{children:s}),h&&(0,i.Y)(n.default,{name:o.Ze.CHEVRON_RIGHT,css:_.icon})]})})]})]})]})}let b=function(e){let{momentList:t,ratingStars:a,isBrandPage:n,isCatalogPage:o,isReviewPage:c,sources:d,writeReviewLink:s,writeReviewLinkLabel:p,title:g}=e;return(0,i.FD)("div",{"data-component":"ReviewSummary",children:[c&&(0,i.FD)("div",{children:[(0,i.Y)(I,{title:g,sources:d,isReviewPage:c,isBrandPage:n}),(0,i.Y)("div",{css:_.reviewCTA,children:(0,i.Y)(r.A,{css:c?_.reviewPageCta:_.cta,as:"a",href:null==s?void 0:s.href,style:l.l.OUTLINED,isExternal:null==s?void 0:s.isExternal,children:p})})]}),(0,i.FD)("div",{css:_.root,children:[a?(0,i.Y)(T,{title:a+"",hasStar:!0,subtitle:"overall rating",isBrandPage:n,isCatalogPage:o}):null,t&&t.map(e=>{let{value:t,label:a}=e;return(0,i.Y)(T,{title:t,subtitle:a,isBrandPage:n,isCatalogPage:o},a)})]})]})}},80105:(e,t,a)=>{a.d(t,{o:()=>i});var i=function(e){return e.COMPACT="compact",e.DEFAULT="default",e}({})},89536:(e,t,a)=>{a.d(t,{A:()=>f});var i=a(29747),r=a(80105),n=a(19009),o=a(57532),l=a(96861),c=a(63276),d=a(44364),s=a(32586),p=a(63381),g=a(36384);let E={RATING_BAR_HEIGHT:10,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}},u={bar:{borderRadius:s.Z.RADIUS_10,display:"block",height:E.RATING_BAR_HEIGHT},barContainer:{width:"100%",display:"flex",alignItems:"center",position:"relative"},barFull:{width:"100%"},barProgress:{position:"absolute"},brandPageBarFull:{background:d.l.DARK.GRAY_80},brandPageRating:{color:d.l.GLOBAL.WHITE,fontWeight:400},container:{display:"flex",justifyContent:"space-between"},customContainer:{alignItems:"center"},rating:{textAlign:"right"},reviewsBarFull:{backgroundColor:d.l.GLOBAL.WHITE},reviewsBarProgress:{minWidth:p.E.SIZE_120,[c.MQ.M]:{minWidth:"520px"},[c.MQ.L]:{minWidth:"431px"},[c.MQ.XL]:{minWidth:"550px"}},reviewsRating:{marginLeft:p.E.SIZE_40}},I={[n.C.DARK]:{barFull:{backgroundColor:d.l.DARK.GRAY_80},barProgress:{backgroundColor:d.l.GLOBAL.ORANGE},container:{color:d.l.DARK.GRAY_40},emphasized:{color:d.l.GLOBAL.WHITE},fiveStarsRating:{color:d.l.GLOBAL.WHITE}},[n.C.LIGHT]:{barFull:{backgroundColor:d.l.LIGHT.OFF_WHITE},barProgress:{backgroundColor:d.l.LIGHT.GRAY_70},container:{color:d.l.LIGHT.GRAY_70},emphasized:{color:d.l.LIGHT.GRAY_70},fiveStarsRating:{color:d.l.LIGHT.GRAY_70}},[n.C.ORANGE]:{barFull:{backgroundColor:d.l.LIGHT.GRAY_20},barProgress:{backgroundColor:d.l.GLOBAL.ORANGE},container:{color:d.l.LIGHT.GRAY_70},emphasized:{color:d.l.GLOBAL.BLACK},fiveStarsRating:{color:d.l.LIGHT.GRAY_70}}},h={[r.o.COMPACT]:{container:{"&:not(:last-child)":{marginBottom:E.COMPACT.RATINGS_BOTTOM_MARGIN}},emphasized:g.Il.secondarySubhead,fiveStarsContainer:{rating:{minWidth:E.COMPACT.FIVE_STARS_RATING_MIN_WIDTH}},fiveStarsRating:{minWidth:E.COMPACT.FIVE_STARS_RATING_MIN_WIDTH},label:[g.Il.smallCopyTight,{marginRight:p.E.SIZE_10,minWidth:E.COMPACT.LABEL_MIN_WIDTH}],rating:[g.Il.smallCopyTight,{marginLeft:p.E.SIZE_10,minWidth:E.COMPACT.RATING_MIN_WIDTH}]},[r.o.DEFAULT]:{container:{"&:not(:last-child)":{marginBottom:E.DEFAULT.RATINGS_BOTTOM_MARGIN}},emphasized:[g.Il.primarySubhead,{lineHeight:22/15}],fiveStarsContainer:{rating:{minWidth:E.DEFAULT.FIVE_STARS_RATING_MIN_WIDTH}},fiveStarsRating:{minWidth:E.DEFAULT.FIVE_STARS_RATING_MIN_WIDTH},label:[g.Il.bodyCopy,{marginRight:p.E.SIZE_40,minWidth:E.DEFAULT.LABEL_MIN_WIDTH}],rating:[g.Il.bodyCopy,{marginLeft:p.E.SIZE_25,minWidth:E.DEFAULT.RATING_MIN_WIDTH}]}},m=function(e){let{display:t=r.o.DEFAULT,label:a,percentage:c,theme:d=n.C.DARK,isBrandPage:s}=e,p=" ".concat((0,o.ui)("common.ratings.outOf")," 100"),g=[h[t].emphasized,I[d].emphasized];return(0,i.FD)("li",{css:[u.container,h[t].container,I[d].container],"data-component":"LinearProgressBar",children:[(0,i.FD)("div",{css:u.barContainer,children:[(0,i.Y)("span",{css:[u.bar,u.barFull,I[d].barFull,s&&u.brandPageBarFull]}),(0,i.Y)("span",{css:[u.bar,u.barProgress,I[d].barProgress,{width:c+"%"}]})]}),(0,i.Y)("span",{css:[u.rating,h[t].rating,g,s&&u.brandPageRating],children:a}),(0,i.Y)("span",{css:l.Jq,children:p})]})};var _=a(32265),T=a(25244);let S={brandPageButton:{color:d.l.GLOBAL.WHITE},root:{display:"flex"},button:[g.Il.bodyCopyTight,{cursor:"pointer",fontWeight:450,height:48,margin:"-14px -10px -14px -20px",opacity:.7,width:48}],borderBottom:{textDecoration:"underline"}},b=function(e){let{buttonLabel:t,numberOfStars:a,onClick:r,bgColor:n,color:o=d.l.GLOBAL.ORANGE,width:l,isBrandPage:c}=e;return(0,i.FD)("div",{css:S.root,"data-component":"LinkWithStars",children:[(0,i.Y)("button",{css:[S.button,!!r&&S.borderBottom,c&&S.brandPageButton],onClick:()=>{r&&r(a)},children:(0,i.Y)("span",{children:t})}),(0,i.Y)(T.A,{color:o,number:a,bgColor:n,width:l,"data-element":"Stars"})]})},A={brandPageTitle:{color:d.l.GLOBAL.WHITE},catalogPageTitle:[g.Il.tertiaryHeadline,{marginTop:p.E.SIZE_10,marginBottom:p.E.SIZE_20,[c.MQ.M]:{marginBottom:p.E.SIZE_20},[c.MQ.XL]:{marginBottom:p.E.SIZE_20}}],progressBar:{flexGrow:1,marginLeft:p.E.SIZE_30},row:{display:"flex"},title:[g.Il.tertiaryHeadline,{marginBottom:p.E.SIZE_20,[c.MQ.M]:{marginBottom:p.E.SIZE_40},[c.MQ.XL]:{marginBottom:p.E.SIZE_20}}],wrapper:{display:"flex",flexDirection:"column",gap:p.E.SIZE_06}},f=function(e){let{data:t,title:a,onClickStar:r,isBrandPage:o,isCatalogPage:l}=e,c=t.reduce((e,t)=>e+t.value,0);return(0,i.FD)("div",{"data-component":"ReviewBreakdown",children:[(0,i.Y)("h2",{css:[A.title,o&&A.brandPageTitle,l&&A.catalogPageTitle],children:a}),(0,i.Y)("div",{css:A.wrapper,children:t.map((e,t)=>{let{value:a,label:l}=e;return(0,i.FD)("div",{css:A.row,children:[(0,i.Y)(b,{bgColor:o?d.l.DARK.GRAY_80:d.l.LIGHT.GRAY_20,buttonLabel:l,color:d.l.GLOBAL.ORANGE,onClick:a>0?r:void 0,width:60,numberOfStars:+l,isBrandPage:o}),(0,i.Y)("ul",{css:A.progressBar,children:(0,i.Y)(m,{label:a+"",theme:n.C.ORANGE,percentage:(0,_.qW)(a,c),isBrandPage:o})})]},t)})})]})}}}]);