"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[914],{914:(i,l,e)=>{e.r(l),e.d(l,{default:()=>A});var t=e(29747),a=e(14232),n=e(10983),o=e(20735),d=e(30908),r=e(88554),s=e(73812),I=e(5087),E=e(19802),c=e(19009),m=e(57532),p=e(88806),_=e(18079),u=e(63276),M=e(44364),g=e(32586),h=e(63381),S=e(36384);let L={checkmark:{background:M.l.GLOBAL.ORANGE,borderRadius:g.Z.CIRCLE,color:M.l.GLOBAL.WHITE,height:12,marginRight:h.E.SIZE_05,marginTop:h.E.SIZE_01,padding:3,width:12},clickable:{span:{textDecoration:"underline",cursor:"pointer",display:"block"}},container:{border:_.s.SOLID_GRAY_20_1PX,borderRadius:g.Z.RADIUS_15,padding:h.E.SIZE_20,[u.MQ.L]:{padding:h.E.SIZE_30}},containerModal:{[u.MQ.L]:{padding:h.E.SIZE_15}},details:[S.Il.labelHeadline,{alignItems:"flex-start",[u.MQ.M]:(0,S._R)(12,20)}],items:[S.Il.labelCopyTight,{"> li":{display:"flex",flex:"0 0 50%",marginTop:h.E.SIZE_15,[u.MQ.M]:{flex:"0 0 50%",marginTop:h.E.SIZE_15,paddingRight:h.E.SIZE_40},[u.MQ.L]:{flex:"0 0 50%",maxWidth:1e3}},color:M.l.LIGHT.GRAY_70,display:"flex",flexWrap:"wrap",listStyle:"none",margin:0,marginBottom:h.E.SIZE_10,padding:0,[u.MQ.M]:(0,S._R)(12,15),[u.MQ.L]:{flex:"0 0 100%",marginTop:h.E.SIZE_10}}],itemsInModal:{"> li":{"& > span:first-of-type":{height:12,padding:3,width:12,marginTop:2},flex:"0 0 50%",fontSize:12,marginTop:h.E.SIZE_15,[u.MQ.XL]:{flex:"0 0 50%",marginTop:h.E.SIZE_15,paddingRight:h.E.SIZE_10}},marginBottom:h.E.SIZE_05,[u.MQ.M]:(0,S._R)(12,15),[u.MQ.L]:{...(0,S._R)(15,20),marginBottom:h.E.SIZE_15}},itemsInModalForCommercialInstaller:{"> li":{flex:"0 0 100%",[u.MQ.L]:{flex:"0 0 100%"}}},pledgeContainer:{marginTop:h.E.SIZE_20},title:[S.Il.primarySubhead,{color:M.l.GLOBAL.BLACK,marginBottom:h.E.SIZE_10,[u.MQ.M]:{marginBottom:h.E.SIZE_05}}],titleInModal:{marginBottom:14,[u.MQ.M]:{marginBottom:14},[u.MQ.L]:{...(0,S._R)(15,20),marginBottom:14}}},A=function(i){let{carType:l,openStaticModal:e,isPresentedInModal:_,installerProductSubType:u=I.X.PASSENGER,moreDetailsDataId:M,openAllShopsModal:g,isMobileInstall:h}=i,S=u===I.X.TRAILER,A=S||u===I.X.COMMERCIAL,T=i=>{e(!0===i?E.u.ROADSIDE_ASSISTANCE:u===I.X.COMMERCIAL?E.u.WHATS_INCLUDED_WITH_INSTALLATION_FOR_COMMERCIAL_TIRE:S?E.u.WHATS_INCLUDED_WITH_INSTALLATION_FOR_TRAILER_TIRE:E.u.WHATS_INCLUDED_WITH_INSTALLATION)},R=(0,a.useMemo)(()=>{var i;return null===(i=p._.filter(i=>i.subTypes.includes(u))[0])||void 0===i?void 0:i.bulletPoints},[u]),C=S?(0,m.ui)("pdp.installation.whatsIncluded.trailerTitle"):(0,m.ui)("pdp.installation.whatsIncluded.title");return R?(0,t.FD)("div",{css:[L.container,_&&L.containerModal],children:[(0,t.Y)("h3",{css:[L.title,_&&L.titleInModal],children:C}),(0,t.Y)("ul",{css:[L.items,_&&L.itemsInModal,!_&&A&&L.itemsForCommercialInstaller,_&&A&&L.itemsInModalForCommercialInstaller],children:(R||[]).map(i=>{var l;return(0,t.FD)("li",{children:[(0,t.Y)(n.default,{name:o.Ze.CHECKMARK,css:L.checkmark}),(null===(l=i.modalName)||void 0===l?void 0:l.includes("RoadAssistanceModal"))?(0,t.Y)("div",{css:L.clickable,onClick:()=>T(!0),children:(0,t.Y)(r.A,{children:(0,m.ui)(i.text)})}):h&&(0,m.ui)(i.text)===(0,m.ui)("pdp.installation.whatsIncluded.items.shop")?(0,t.Y)("span",{children:(0,m.ui)("pdp.installation.whatsIncluded.items.mobileInstall")}):(0,t.Y)("span",{children:(0,m.ui)(i.text)})]},i.text)})}),(0,t.Y)(d.A,{as:"button",onClick:()=>T(!0),theme:c.C.LIGHT,css:L.details,"data-component":M||"More details link",children:(0,m.ui)("pdp.installation.whatsIncluded.details")}),(0,t.Y)("div",{css:L.pledgeContainer,children:(0,t.Y)(s.A,{onOpenAllShopsModal:g,carType:l})})]}):null}}}]);