"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30544],{3379:(e,t,n)=>{n.d(t,{B:()=>o});var l=n(14232),a=n(63748);let i=(0,a.qW)();function o(){let{shouldUnsubscribeInViewport:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=(0,l.useState)(!i),o=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(!(0,a.Bd)()||!o.current||!i)return;let t=new IntersectionObserver(l=>{l.forEach(l=>{n(l.isIntersecting),l.isIntersecting&&e&&t.disconnect()})});return t.observe(o.current),()=>{t.disconnect()}},[o,t,n,e]),{isInViewport:t,targetRef:o}}},12754:(e,t,n)=>{n.d(t,{A:()=>u});var l=n(29747),a=n(51263),i=n(62122),o=n(97070);function s(e){let{isSimpleShop:t}=e;return(0,l.Y)(o.A,{isSimpleShop:t,"data-element":"PurchaseIncludesValueProp","data-component":"PurchaseIncludesContainer"})}s.displayName="PurchaseIncludesContainer";let r=(0,i.A)(s);var d=n(75024),c=n(99639);let u=function(e){let{isHomePage:t,isSimpleShop:n}=e;return(0,l.FD)("div",{"data-component":"ProductDetailPurchaseIncludesAndShopWithConfidence",children:[(0,l.Y)(a.default,{fullbleed:!0,css:c.A.purchaseIncludes,"data-element":"GridItem",children:(0,l.Y)(r,{isHomePage:t,isSimpleShop:n,"data-element":"PurchaseIncludesContainer"})}),(0,l.Y)(a.default,{fullbleed:!0,css:[c.A.shopWithConfidence,n&&c.A.shopWithConfidenceUpdate],"data-element":"GridItem",children:(0,l.Y)(d.A,{isHomePage:t,isSimpleShop:n,"data-element":"ShopWithConfidence"})})]})}},12828:(e,t,n)=>{n.d(t,{A:()=>g});var l=n(29747),a=n(14e3),i=n(14232),o=n(51263),s=n(23911),r=n(99595),d=n(25838),c=n(3297),u=n(54292),p=n(32384),m=n(63276),h=n(22840),I=n(38124);let S={cartCarousel:{".shop-card-carousel-container":{".shop-card-carousel-item":{":first-of-type":{[m.MQ.L]:{marginLeft:0}}}}},installationShopCardCarousel:{".shop-card-carousel-container":{".shop-card-carousel-item":{"&:first-of-type":{marginLeft:h.SS.S,[m.MQ.M]:{marginLeft:h.SS.M},[m.MQ.L]:{marginLeft:(0,I.J)({breakpoint:"L",columns:1,includeExtraGutter:!0,includeContainerMargin:!0})}}}}}},g=function(e){let{setShopIdOfDetailsModal:t,toggleShopDetailModal:n,shopsInCarousel:m,openDynamicModal:h,selectedInstaller:I,handleSelectedInstallerChangeOnCarousel:g,onConfirm:E,selectedTime:f,onClickAppointment:C,pdpCarousel:A,setIsAllShopModalOpen:T,isCart:M,isLoadingInstallerSchedule:L,totalShopCount:_}=e,v=(0,i.useMemo)(()=>{if((0,u.o)()){let e=p._v.getItem(c.v[c.y.INSTALLER_IDS]),t=e?e.split(",").map(e=>e.trim()):[],n=m.filter(e=>!(t.length>0)||t.includes(e.id));return n.length>0?n:m}return m},[m]),b=(0,a.useSearchParams)(),{isComingFromWidget:y}=(0,r.A)(),O=null==b?void 0:b.get("openShopDetailModal"),D=(0,i.useCallback)(e=>{t(e),n()},[t,n]);return(0,i.useEffect)(()=>{y&&O&&D(O)},[D,O,y]),(0,l.Y)(o.default,{gridRow:"3",fullbleed:!0,css:S.installationShopCardCarousel,"data-element":"GridItem","data-component":"ShopCarousel",children:(0,l.Y)(s.A,{shops:v,openDynamicModal:h,selectedInstaller:v.length===m.length?I:v[0].id,handleSelectedInstallerChange:g,handleOpenShopDetails:D,analyticsEventSuffix:d.g.INSTALLATION_EVENT_ON_PDP_SUFFIX,selectedTime:f,onClickAppointment:C,isLoadingInstallerSchedule:L,totalShopCount:_,handleConfirm:E,setIsAllShopModalOpen:T,customContainerStyles:M?S.cartCarousel:void 0,isCarousel:!0,pdpCarousel:A,"data-element":"InstallationShopCardCarousel"})})}},13932:(e,t,n)=>{n.d(t,{Gs:()=>h,p0:()=>I});var l=n(29747),a=n(14e3),i=n(14232),o=n(87115),s=n(26779),r=n(79478),d=n(82562),c=n(36307),u=n(91066);let p=(0,c.q6)(),m=[r.ph[r.bw.CHECKOUT_SHIPPING],r.ph[r.bw.CHECKOUT_SERVICES],r.ph[r.bw.CHECKOUT_PAYMENT]];function h(e){let{children:t}=e,n=function(){let e=(0,s.A)(),t=(0,a.usePathname)(),[n,l]=(0,i.useState)(!(0,u.f5)(t)),[r,c]=(0,i.useState)(!1),[p,h]=(0,i.useState)(""),[I,S]=(0,i.useState)(""),[g,E]=(0,i.useState)(o.o.DEFAULT);(0,i.useEffect)(()=>{let e=e=>{let{isVisible:t}=e;(0,i.startTransition)(()=>{l(t)})};return d.o.setNavVisibility.on(e),()=>{d.o.setNavVisibility.off(e)}},[]);let f=(0,i.useCallback)(n=>{t!==m[n]&&e.push(m[n])},[e,t]),C=(0,i.useCallback)(e=>()=>{h(t=>{let n=t;t||(n=o.T.BROWSE_TIRES);let l=t===o.T.LEARN;return S(l?o.T.LEARN:e),l&&(n=o.T.LEARN),n})},[]),A=(0,i.useCallback)(e=>"target"in e?()=>{e&&(null==e?void 0:e.target)===o.T.BROWSE_TIRES&&S("Brand"),c(!0),h(e.target)}:void 0,[]),T=(0,i.useCallback)(()=>{S(e=>""!==e?"":e),h(e=>""!==e?"":e)},[]),M=(0,i.useCallback)(()=>{h(e=>""!==e?"":e)},[]),L=(0,i.useCallback)(()=>{c(!1)},[]);return{activeCategory:I,activeLink:p,createSelectCategoryHandler:C,createSelectLinkHandler:A,handleClearCategory:T,handleClearLink:M,handleCloseSubNav:L,isSubNavOpen:r,isVisible:n,navigateToStep:f,setActiveLink:h,setIsVisible:l,setNavTheme:(0,i.useCallback)(e=>{E(t=>t!==e?e:t)},[]),theme:g,toggleSubNav:(0,i.useCallback)(()=>{c(e=>!e)},[])}}();return(0,l.Y)(p.Provider,{value:n,"data-element":"unknown","data-component":"NavContextProvider",children:t})}let I=(e,t)=>(0,c.i7)(p,e,t)},25017:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(18079),a=n(63276),i=n(44364),o=n(63381),s=n(36384);let r={allInstallationShopsModal:{padding:0,[a.MQ.L]:{minWidth:768}},bottomSeparator:{marginBottom:0,marginTop:o.E.SIZE_60,[a.MQ.L]:{marginBottom:0,marginTop:o.E.SIZE_80}},brandPromotion:{marginRight:o.E.SIZE_05,marginBottom:0},brandPromotions:{marginTop:o.E.SIZE_10,display:"inline-flex"},button:{marginTop:o.E.SIZE_30,[a.MQ.S]:{width:"100%",alignItems:"center",justifyContent:"center"}},changeZipCode:{display:"inline-block",marginLeft:o.E.SIZE_10,"> span":{borderBottom:"2px dotted"},"> span: hover":{borderBottomColor:"transparent"}},changeZipCodeElem:[s.Il.smallCopyTight,{color:i.l.LIGHT.GRAY_70,marginBottom:o.E.SIZE_05,[a.MQ.XL]:[s.Il.bodyCopyTight]}],customtabStyles:{" > button":{maxWidth:"165px"," > span:last-child":{top:o.E.SIZE_10}},justifyContent:"flex-start"},description:[s.Il.smallCopyTight,{color:i.l.LIGHT.GRAY_70,fontSize:"12px",justifyContent:"center"}],headline:[s.Il.primaryHeadline,{color:i.l.GLOBAL.BLACK,marginBottom:o.E.SIZE_10,[a.MQ.M]:{marginBottom:o.E.SIZE_20}}],headlineInfo:[s.Il.smallCopyTight,{color:i.l.LIGHT.GRAY_70,marginBottom:o.E.SIZE_05,[a.MQ.XL]:[s.Il.bodyCopyTight]}],installationShopCardCarouselTitle:[s.Il.tertiaryHeadline,{marginTop:o.E.SIZE_10,marginBottom:o.E.SIZE_20,[a.MQ.M]:{marginTop:o.E.SIZE_20,marginBottom:o.E.SIZE_30}}],installationShopDetailModal:{padding:0,[a.MQ.L]:{minWidth:768}},installersTab:{marginTop:o.E.SIZE_30,marginBottom:0,div:{marginBottom:0}},separator:{borderBottom:l.s.SOLID_GRAY_20_1PX,marginBottom:o.E.SIZE_60,[a.MQ.L]:{marginBottom:o.E.SIZE_80}},shopModal:{display:"flex",flexDirection:"column"},skeletonView:{display:"flex",flexDirection:"column",[a.MQ.M]:{flexDirection:"row"}},skeletonWrapper:{marginTop:o.E.SIZE_40},subTitle:{color:i.l.GLOBAL.BLACK,[a.MQ.M]:{width:"80%"},[a.MQ.L]:{width:"63%"},[a.MQ.XL]:{width:"50%"}},title:[s.Il.bodyCopyTight,{fontWeight:"bold",justifyContent:"center"}],verifiedShops:{color:i.l.GLOBAL.BLACK,fontWeight:"700"},whatsIncludedToggle:{"& p":[s.Il.secondarySubhead,{color:i.l.LIGHT.GRAY_70,letterSpacing:"-0.01em",textDecorationLine:"underline",[a.MQ.L]:s.gI.tertiaryHeadline.base}],"& svg":{color:i.l.LIGHT.GRAY_70,width:"8px",height:"5px"}}}},25772:(e,t,n)=>{n.r(t),n.d(t,{default:()=>e1});var l=n(29747),a=n(51263),i=n(74755),o=n(88772),s=n(62122),r=n(35667),d=n(99639),c=n(29215),u=n(20027);function p(){let e=(0,u.T2)(),t=(0,u._2)(),n=(0,c.i)(e=>!!e.technicalSpecs),s=(0,o.J)(e=>e.userType===r.ve.FLEET);return n&&(e||t||s)?(0,l.Y)(a.default,{fullbleed:!0,children:(0,l.Y)("div",{css:d.A.plaTechSpecs,children:(0,l.Y)(i.A,{isPDP:!(e||t)})})}):null}p.displayName="PLAPLPTechSpecsAndFAQs";let m=(0,s.A)(p);var h=n(34769),I=n(14232),S=n(56372),g=n(70630),E=n(76709),f=n(71548),C=n(63276),A=n(63381);let T={installation:[function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{[e]:A.E.SIZE_60+t,[C.MQ.M]:{[e]:A.E.SIZE_80+t}}}("marginTop"),{[C.MQ.L]:{marginTop:A.E.SIZE_120}}],modal:{[C.MQ.L]:{minWidth:768}}};function M(e){let{closeShopDetailModal:t,installationShopDetailsModalOpen:n,shopIdOfDetailsModal:a}=e,{productId:i,productSubType:o,quantity:s}=(0,c.i)(e=>({productId:e.productId,productSubType:e.productInfo.productSubType,quantity:e.quantity})),r=(0,E.uF)(e=>e.selectedInstaller),{openStaticModal:d,openDynamicModal:u}=(0,f.$H)(e=>({openStaticModal:e.openStaticModal,openDynamicModal:e.openDynamicModal}));return(0,l.Y)(g.default,{contentLabel:"Shop Details Modal",hasCloseButton:!0,onClose:t,isHalfscreen:!0,isOpen:n,customContainerStyles:T.installationShopDetailModal,"data-element":"Modal","data-component":"InstallationShopDetailsModal",children:(0,l.Y)(S.default,{installerId:a,openDynamicModal:u,openStaticModal:d,itemId:i,quantity:s,selectedInstaller:r,productSubType:o,"data-element":"DynamicInstallationShopDetails"})})}M.displayName="InstallationShopDetailsModal";let L=(0,s.A)(M);var _=n(34251),v=n(98976),b=n(64398),y=n(99241);function O(e){let{closeShopDetailModal:t,setShopIdOfDetailsModal:n,toggleShopDetailModal:a}=e,{productId:i,quantity:o,setSelectedShopSavingCost:s}=(0,c.i)(e=>({productId:e.productId,quantity:e.quantity,setSelectedShopSavingCost:e.setSelectedShopSavingCost})),{handleConfirmShippingForm:r,handleSelectInstaller:d,brandPromotionList:u,isInstallerValidating:p,siteInstallers:m}=(0,y.Xs)(e=>({brandPromotionList:e.brandPromotionList,handleConfirmShippingForm:e.handleConfirmShippingForm,handleSelectInstaller:e.handleSelectInstaller,isInstallerValidating:e.isInstallerValidating,siteInstallers:e.siteInstallers})),{getInstallerSchedule:h,isLoadingInstallerSchedule:S,selectedInstaller:C,selectedTime:A,setIsLoadingInstallerSchedule:M}=(0,E.uF)(e=>{var t,n;return{getInstallerSchedule:e.getInstallerSchedule,isLoadingInstallerSchedule:e.isLoadingInstallerSchedule,selectedInstaller:e.selectedInstaller,selectedTime:null!==(n=null===(t=e.shippingForm)||void 0===t?void 0:t.selectedTime)&&void 0!==n?n:void 0,setIsLoadingInstallerSchedule:e.setIsLoadingInstallerSchedule}}),{isAllShopModalOpen:L,setIsAllShopModalOpen:O}=(0,_.W)(e=>({isAllShopModalOpen:e.isAllShopModalOpen,setIsAllShopModalOpen:e.setIsAllShopModalOpen})),{openStaticModal:D,openDynamicModal:Y}=(0,f.$H)(e=>({openStaticModal:e.openStaticModal,openDynamicModal:e.openDynamicModal}));return(0,I.useEffect)(()=>{if(C&&(null==m?void 0:m.length)&&m.filter(e=>e.id===C).length){var e,n;s(null!==(n=null===(e=m.find(e=>e.id===C))||void 0===e?void 0:e.savingCost)&&void 0!==n?n:"")}C||t()},[C,m,s,t]),(0,l.Y)(g.default,{contentLabel:"all-shop-modal",hasCloseButton:!0,onClose:()=>O(!1),isOpen:L,overlayZIndex:b.M.MODAL-10,isHalfscreen:!0,customContainerStyles:T.modal,"data-element":"Modal","data-component":"PickShopModal",children:(0,l.Y)(v.A,{shops:m||[],brandPromotionList:u,openStaticModal:D,openDynamicModal:Y,handleSelectInstaller:d,selectedInstaller:C,selectedTime:A,quantity:o,productId:i,getInstallerSchedule:h,isLoadingShopData:p,isLoadingInstallerSchedule:S,setIsLoadingInstallerSchedule:M,toggleShopDetailModal:a,setShopIdOfDetailsModal:n,onConfirm:r,"data-element":"PickShop"})})}O.displayName="PickShopModal";let D=(0,s.A)(O);function Y(){let[e,t]=(0,I.useState)(!1),[n,a]=(0,I.useState)(""),i=(0,I.useCallback)(()=>{t(!1)},[]),o=(0,I.useCallback)(()=>{t(e=>!e)},[]);return(0,l.FD)("div",{"data-component":"AllShopAndInstallationShopDetailsModalContainer",children:[(0,l.Y)(D,{closeShopDetailModal:i,setShopIdOfDetailsModal:a,toggleShopDetailModal:o,"data-element":"PickShopModal"}),(0,l.Y)(L,{closeShopDetailModal:i,installationShopDetailsModalOpen:e,shopIdOfDetailsModal:n,"data-element":"InstallationShopDetailsModal"})]})}Y.displayName="AllShopAndInstallationShopDetailsModalContainer";let N=(0,s.A)(Y);var P=n(55570),R=n(20735),w=n(9012),B=n(57532);function G(){let{setIsAllShopModalOpen:e,setIsAppointmentModalOpen:t}=(0,_.W)(e=>({setIsAllShopModalOpen:e.setIsAllShopModalOpen,setIsAppointmentModalOpen:e.setIsAppointmentModalOpen})),{isOpenTimeChangeModalOnPdp:n,setIsOpenTimeChangeModalOnPdp:a,removeInstaller:i}=(0,w.Hq)(e=>({isOpenTimeChangeModalOnPdp:e.isOpenTimeChangeModalOnPdp,removeInstaller:e.removeInstaller,setIsOpenTimeChangeModalOnPdp:e.setIsOpenTimeChangeModalOnPdp})),o=(0,I.useCallback)(()=>{a(!1)},[a]),s=(0,I.useCallback)(()=>{a(!1),t(!0)},[a,t]),r=(0,I.useCallback)(()=>{a(!1),e(!0)},[a,e]),d=(0,I.useCallback)(()=>{a(!1),i()},[a,i]);return(0,l.Y)(P.A,{id:"change-time-modal-open-pdp",isOpen:n,onClose:o,onBrowseShops:r,onChangeTime:s,icon:R.Ze.CLOCK,title:(0,B.ui)("cart.changeTimeModal.title"),description:(0,B.ui)("cart.changeTimeModal.description"),onRemoveInstall:d,"data-element":"ChangeTimeModal","data-component":"ChangeTimeModalContainer"})}G.displayName="ChangeTimeModalContainer";let Z=(0,s.A)(G);var k=n(5660);function H(){let e=(0,_.W)(e=>e.isAppointmentModalOpen),{installerSchedule:t,shippingForm:n}=(0,E.uF)(e=>({installerSchedule:e.installerSchedule,shippingForm:e.shippingForm})),a=(0,c.i)(e=>e.productInfo.productSubType),{cancelAppointment:i,handleConfirmShippingForm:o,onCloseAppointmentModal:s,siteInstallers:r}=(0,y.Xs)(e=>({cancelAppointment:e.cancelAppointment,handleConfirmShippingForm:e.handleConfirmShippingForm,onCloseAppointmentModal:e.onCloseAppointmentModal,siteInstallers:e.siteInstallers}));return(0,l.Y)(k.A,{isOpen:e,onClose:s,siteInstallerScheduleResponse:t,shops:r,cancelAppointment:i,onConfirm:o,initialValue:n,productSubType:a,"data-element":"InstallationAppointmentSelectionModal","data-component":"InstallationAppointmentSelectionModalContainer"})}H.displayName="InstallationAppointmentSelectionModalContainer";let U=(0,s.A)(H);var F=n(18847),x=n.n(F),Q=n(6833),W=n(14579),z=n(30908),X=n(47792),K=n(30913),q=n(20331),V=n(84859),j=n(52986),J=n(3379),$=n(25838),ee=n(32586),et=n(3297),en=n(19009),el=n(52980),ea=n(70266),ei=n(78096),eo=n(32384),es=n(87115),er=n(2879),ed=n(25017),ec=n(44364);let eu={headline:[n(36384).Il.primaryHeadline,{color:ec.l.GLOBAL.BLACK,marginBottom:A.E.SIZE_10,[C.MQ.M]:{marginBottom:A.E.SIZE_20}}],subTitle:{color:ec.l.GLOBAL.BLACK,[C.MQ.M]:{width:"80%"},[C.MQ.L]:{width:"63%"},[C.MQ.XL]:{width:"50%"}}},ep=(0,I.memo)(function(e){let{isOversized:t}=e;return(0,l.FD)("div",{css:eu.headline,"data-component":"InstallersHead",children:[(0,l.Y)("h2",{children:(0,B.ui)("pdp.installation.primaryHeadline")}),(0,l.Y)("p",{css:eu.subTitle,children:t?(0,B.ui)("pdp.installation.oversizedSubtitle"):""})]})});var em=n(735),eh=n.n(em),eI=n(2177),eS=n(46605),eg=n(24202);let eE={promoTags:{animation:{FADE_IN_ANIMATION:"".concat(eg.qG," ").concat(eS.E.MS200,"ms ease"),HEADER_MAX_WIDTH:140}.FADE_IN_ANIMATION,marginBottom:-A.E.SIZE_05,marginTop:A.E.SIZE_25,[C.MQ.L]:{marginTop:A.E.SIZE_20}}},ef=(0,I.memo)(function(e){let{brandPromotionListToShow:t,openDynamicModal:n}=e;return(0,l.Y)("div",{css:eE.promoTags,"data-component":"PromoTags",children:(0,l.Y)(eI.default,{tags:t,openDynamicModal:n,"data-element":"PromoTagCarousel"})})},(e,t)=>eh()(e,t));var eC=n(12828),eA=n(24964),eT=n(53345),eM=n(98471),eL=n(65215),e_=n(40994),ev=n(18360),eb=n(12040);let ey={buttonTitle:null,desc:(0,B.ui)("installer.notification.unavailableDesc"),icon:R.Ze.INSTALL_UNAVAILABLE,title:(0,B.ui)("installer.notification.unavailableTitle")},eO={buttonTitle:(0,B.ui)("installer.button.noZip"),desc:(0,B.ui)("installer.notification.noShopsDesc"),icon:R.Ze.SHOPS_BIG,title:(0,B.ui)("installer.notification.noShopsTitle")},eD={buttonTitle:(0,B.ui)("installer.button.changeZip"),desc:(0,B.ui)("installer.notification.noShopsDesc"),icon:R.Ze.SHOPS_BIG,title:(0,B.ui)("installer.notification.noShopsTitle")};var eY=n(87448),eN=n(86839);let eP=(0,I.memo)(function(e){let{zipCode:t,installationStatus:n,size:i,isInViewport:o,isSubNavOpen:s,setActiveLink:r,toggleSubNav:d,onZipModalClose:c,shopsIsAvailable:u,isInstallable:p}=e,[m,h]=(0,I.useState)(!1),{title:S,desc:g,buttonTitle:E,icon:f}=function(e){let{zipCode:t,installationStatus:n,shopsIsAvailable:l,isInstallable:a}=e,i=n&&n.toLowerCase()===eb.U.SiteProductInstallationUnavailable.toLowerCase();return t?(i||!l)&&a?eD:ey:eO}({zipCode:t,installationStatus:n,shopsIsAvailable:u,isInstallable:p}),C=(0,I.useCallback)(()=>{h(!0),d(),r(es.T.LOCATION)},[d,r]);return(0,I.useEffect)(()=>{!s&&m&&c&&(c(),h(!1))},[s,m,c]),(0,l.Y)(a.default,{fullbleed:!0,"data-element":"GridItem","data-component":"UnInstallable",children:(0,l.FD)(W.default,{"data-element":"Grid",children:[(0,l.Y)(a.default,{gridRowS:t&&i?"3":"4",gridRowM:t&&i?"3":"4",gridRowL:t&&i?"3":"4",gridColumnM:"start/end",gridColumnL:"3/end","data-element":"GridItem",children:(0,l.FD)("div",{css:t&&i?eN.A.overlapScenery:eN.A.centerCta,children:[t&&i&&(0,l.Y)(ev.default,{title:S,description:g,icon:f}),E&&(0,l.Y)(eA.A,{css:eN.A.button,style:e_.l.SOLID,theme:en.C.DARK,onClick:C,children:E}),t&&!i&&(0,l.Y)(eY.A,{})]})}),(0,l.Y)(a.default,{gridRowS:"2",gridRowM:"3",gridRowL:"3",fullbleed:!0,"data-element":"GridItem",children:(0,l.Y)(eL.A,{"aria-label":(0,B.ui)("checkout.footer.illustrationAltText"),vehicleType:eT.Wd.AUDI_A6,sceneryType:eM.C5.URBAN,animateIn:o,css:[eN.A.illustration],"data-element":"InstallationAnimation"})})]})})});function eR(e){var t;let{brandPromotionList:n=[],shops:i,openStaticModal:o,openDynamicModal:s,onChange:r,onConfirm:d,selectedTime:c,onClickAppointment:u,selectedInstaller:p,setSelectedInstaller:m,toggleAllShopModal:h,isInstallable:f,installationStatus:C,onZipModalClose:A,productSubType:T,isOversized:M,size:L,isSubNavOpen:v,setActiveLink:b,toggleSubNav:O,zipCode:D,isLoadingInstallerSchedule:Y,itemId:N,quantity:P,isLoading:R}=e,{isAllInstallationShopsModalOpen:w,setIsAllInstallationShopsModalOpen:G}=(0,y.Xs)(e=>({isAllInstallationShopsModalOpen:e.isAllInstallationShopsModalOpen,setIsAllInstallationShopsModalOpen:e.setIsAllInstallationShopsModalOpen})),{isInViewport:Z,targetRef:k}=(0,J.B)({shouldUnsubscribeInViewport:!0}),H=!!i,U=(0,E.uF)(e=>e.selectedDayAndTime),F=(0,V._)(e=>1===Number(e.isSimpleShop));ei.A.info("isSimpleShop: ",F);let x=(0,I.useMemo)(()=>{if(!i)return[];if(p){let e=i.find(e=>e.id===p);if(e)return[e,...i.filter(e=>e.id!==p)].slice(0,4)}return i.slice(0,4)},[i,p]),ec=(0,I.useMemo)(()=>n.filter(e=>e.showInInstallationOnPDP),[n]),[eu,em]=(0,I.useState)(!1),[eh,eI]=(0,I.useState)(""),[eS,eg]=(0,I.useState)(!1),[eE,eA]=(0,I.useState)(!1),eT=eo._v.getItem(et.v[et.y.PRE_SELECTED_INSTALLER_TYPE]),eM=(0,j.M)(D),eL=f&&D||U,e_=null!==(t=null==i?void 0:i.length)&&void 0!==t?t:0,{setSelectedTab:ev,hasMobileInstall:eb,selectedTab:ey,showInstallerTabs:eO}=(0,_.W)(e=>({setSelectedTab:e.setSelectedTab,hasMobileInstall:e.hasMobileInstall,selectedTab:e.selectedTab,showInstallerTabs:e.showInstallerTabs})),[eD,eY]=(0,I.useState)(K.zH.LEFT),eN=(0,I.useCallback)(()=>{eA(e=>!e)},[]),eR=(0,I.useCallback)(()=>{G(!0),h()},[G,h]),ew=(0,I.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";H&&(""!==e?(el.A.addToDataLayer({event:"tireiInstallationCardClicked",location:t}),(0,ea.X)($.g.SELECT_INSTALLER,{location:t}),m(e),r&&r(e)):(c&&(el.A.addToDataLayer({event:"tireiInstallationUnselected",location:t}),(0,ea.X)($.g.UNSELECT_INSTALLER,{location:t}),m(""),r&&r("")),!c&&p&&m(p)),em(!0),eE&&eA(!1))},[eE,r,p,c,m,H]),eB=(0,I.useCallback)(e=>{ew(e,"carousel")},[ew]),eG=(0,I.useCallback)(e=>{ew(e,"Shop Details Modal")},[ew]);(0,I.useEffect)(()=>{eu&&w&&em(!1)},[eu,w]),(0,I.useEffect)(()=>{eM&&eS&&eg(!1),"true"===eT?(eY(K.zH.MID),ev(Q.Si.MOBILE)):(eY(K.zH.LEFT),ev(Q.Si.LOCAL))},[eM,eS,ev,eT]);let[eZ,ek]=(0,I.useState)(!1);return(0,I.useEffect)(()=>{!v&&eZ&&A&&(A(),ek(!1))},[v,eZ,A]),(0,I.useEffect)(()=>{eY(ey===Q.Si.MOBILE?K.zH.MID:K.zH.LEFT)},[ey]),(0,l.FD)("div",{ref:k,"data-component":"Installers",children:[(0,l.Y)(a.default,{fullbleed:!0,"data-element":"GridItem",children:(0,l.FD)(W.default,{"data-element":"Grid",children:[(0,l.FD)(a.default,{gridColumnM:"start/end",gridColumnL:"3/end",gridRowM:"1","data-element":"GridItem",children:[(0,l.Y)(ep,{isOversized:M,"data-element":"InstallersHead"}),f&&H&&D&&(0,l.FD)("div",{children:[R?(0,l.Y)(X.A,{width:"70%",height:"22px",radius:ee.Z.RADIUS_8}):(0,l.Y)("div",{css:ed.A.headlineInfo,children:(0,l.FD)("p",{children:[(0,l.Y)(z.A,{as:"button",theme:en.C.LIGHT,borderless:!0,onClick:eR,css:ed.A.changeZipCode,children:"".concat(e_," ").concat((0,B.ui)("pdp.installation.verifiedShops")," ")}),(0,l.FD)("span",{children:[" ",(0,B.ui)("pdp.installation.near")]}),(0,l.Y)("span",{css:ed.A.verifiedShops,children:" ".concat(D,": •")}),(0,l.Y)(z.A,{as:"button",theme:en.C.LIGHT,borderless:!0,onClick:()=>{ek(!0),O(),b(es.T.LOCATION)},css:ed.A.changeZipCode,children:(0,l.Y)("span",{css:ed.A.changeZipCodeElem,children:(0,B.ui)("pdp.installation.changeZipCode")})})]})}),(0,l.Y)(er.A,{productSubTypes:[T]})]}),f&&eb&&D&&eO&&(0,l.Y)(a.default,{gridColumnS:"2/6",gridColumnL:"3/8",gridColumnXL:"3/8",css:ed.A.installersTab,"data-element":"GridItem","data-component":"ShopMobileAndShopTabComponent",children:(0,l.Y)(q.A,{tabsLabels:[(0,l.FD)("div",{children:[(0,l.Y)("span",{css:ed.A.title,children:F?(0,B.ui)("pdp.installation.simpleShops"):(0,B.ui)("pdp.installation.localShops")}),(0,l.Y)("span",{css:ed.A.description,children:(0,B.ui)("pdp.installation.localShopsDesc")})]},1),(0,l.FD)("div",{children:[(0,l.Y)("span",{css:ed.A.title,children:(0,B.ui)("pdp.installation.mobileInstall")}),(0,l.Y)("span",{css:ed.A.description,children:(0,B.ui)("pdp.installation.mobileInstallDesc")})]},2)],id:"installers-tab",value:eD,onChange:e=>{eY(e),ev(0==e?Q.Si.LOCAL:Q.Si.MOBILE)},customStyles:ed.A.customtabStyles,"data-element":"Tabs",children:(0,l.Y)("span",{})})})]}),(!f||!H)&&!R&&(0,l.Y)(eP,{isInViewport:Z,zipCode:D,installationStatus:C,size:L,isSubNavOpen:v,setActiveLink:b,toggleSubNav:O,onZipModalClose:A,isInstallable:f,shopsIsAvailable:H}),eL&&(0,l.Y)(a.default,{gridRow:"2",gridColumnL:"3/end",children:ec.length>0&&(0,l.Y)(ef,{brandPromotionListToShow:ec,openDynamicModal:s})}),eL&&(R?(0,l.Y)(a.default,{gridRow:"3",gridColumnL:"3/end",fullbleed:!0,css:ed.A.installationShopCardCarousel,children:(0,l.Y)("div",{children:(0,l.Y)("div",{css:ed.A.skeletonWrapper,children:(0,l.Y)("div",{css:ed.A.skeletonView,children:[,,,,,].fill(0).map((e,t)=>(0,l.Y)(X.A,{width:"100%",height:"375px",radius:ee.Z.RADIUS_8,css:ed.A.skeletonSize},t))})})})}):x.length>0?(0,l.Y)(eC.A,{shopsInCarousel:x,setShopIdOfDetailsModal:eI,toggleShopDetailModal:eN,openDynamicModal:s,selectedInstaller:p,handleSelectedInstallerChangeOnCarousel:eB,selectedTime:c,onClickAppointment:u,setIsAllShopModalOpen:eR,onConfirm:d,isLoadingInstallerSchedule:Y,totalShopCount:e_,pdpCarousel:!0}):null),(0,l.Y)(a.default,{gridColumnL:"4/13",gridRow:"5",css:[ed.A.separator,ed.A.bottomSeparator],"data-element":"GridItem"})]})}),eL&&x.length>0&&(0,l.Y)(g.default,{contentLabel:"Shop Details Modal",hasCloseButton:!0,onClose:eN,isHalfscreen:!0,isOpen:eE,customContainerStyles:ed.A.installationShopDetailModal,children:(0,l.Y)(S.default,{installerId:eh,openDynamicModal:s,openStaticModal:o,handleSelectButtonClick:eG,itemId:N,quantity:P,selectedInstaller:p,toggleShopDetailModal:eN,productSubType:T})})]})}var ew=n(13932),eB=n(80912),eG=n(54292),eZ=n(86990);let ek=x()(()=>Promise.all([n.e(98972),n.e(38285),n.e(81675)]).then(n.bind(n,15044)),{loadableGenerated:{webpack:()=>[15044]}});function eH(){var e,t;let{carType:n,installationStatus:a,isInstallable:i,isOversized:s,itemId:r,productInfo:d,quantity:u}=(0,c.i)(e=>({carType:e.carType,installationStatus:e.installationStatus,isInstallable:e.isInstallable,isOversized:e.isOversized,itemId:e.productId,productInfo:e.productInfo,quantity:e.quantity})),{brandPromotionList:p,handleConfirmShippingForm:m,handleSelectInstaller:h,installerStatusCode:S,isLoading:g,siteInstallers:C}=(0,y.Xs)(e=>({brandPromotionList:e.brandPromotionList,handleConfirmShippingForm:e.handleConfirmShippingForm,handleSelectInstaller:e.handleSelectInstaller,installerStatusCode:e.installerStatusCode,isLoading:e.isInstallerValidating,siteInstallers:e.siteInstallers})),A=(0,o.J)(e=>{var t,n;return null!==(n=null===(t=e.userPersonalizationData)||void 0===t?void 0:t.userLocation)&&void 0!==n?n:void 0}),{setIsAllShopModalOpen:T,setIsAppointmentModalOpen:M}=(0,_.W)(e=>({setIsAllShopModalOpen:e.setIsAllShopModalOpen,setIsAppointmentModalOpen:e.setIsAppointmentModalOpen})),L=(0,w.Hq)(e=>e.setSelectedShopOnCatalog),{isLoadingInstallerSchedule:v,shippingForm:b,selectedInstaller:O,setSelectedInstaller:D}=(0,E.uF)(e=>({isLoadingInstallerSchedule:e.isLoadingInstallerSchedule,selectedInstaller:e.selectedInstaller,setSelectedInstaller:e.setSelectedInstaller,shippingForm:e.shippingForm})),{openStaticModal:Y,openDynamicModal:N}=(0,f.$H)(e=>({openStaticModal:e.openStaticModal,openDynamicModal:e.openDynamicModal})),{setActiveLink:P,toggleSubNav:R,isSubNavOpen:B}=(0,ew.p0)(e=>({setActiveLink:e.setActiveLink,toggleSubNav:e.toggleSubNav,isSubNavOpen:e.isSubNavOpen})),G=null!==(e=null==A?void 0:A.zip)&&void 0!==e?e:void 0,{size:Z,productSubType:k}=d,H=null!==(t=null==b?void 0:b.selectedTime)&&void 0!==t?t:void 0,U=(0,I.useRef)(null),F=(0,I.useMemo)(()=>{if(!C||0==C.length)return null;if((0,eG.o)()){let e,t=eo.ds.getItem(eB.W[eB.y.SELECTED_SHOP]),n=eo._v.getItem(et.v.INSTALLER_ID_SELECTED)||t;if(n){let t=JSON.parse(n);C&&C.length>0&&C.slice().forEach(function(n,l){Number(n.id)===t&&(e=n,C.splice(l,1),D(n.id),L(n))})}e&&(null==C||C.unshift(e))}return C},[C,D,L]),x=(0,I.useCallback)(()=>{M(!0)},[M]),Q=(0,I.useCallback)(()=>{T(e=>!e)},[T]),W=(0,I.useCallback)(()=>{U&&U.current&&!B&&setTimeout(()=>{var e;null===(e=U.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})},eS.E.MS2000)},[B]);return S?(0,l.Y)(ek,{statusCode:S}):(0,l.Y)("div",{id:eZ.Z.INSTALLATION_ANCHOR,ref:U,"data-component":"ProductDetailInstallers",children:(0,l.Y)(eR,{shops:F,brandPromotionList:p,openStaticModal:Y,openDynamicModal:N,onChange:h,selectedTime:H,onClickAppointment:x,selectedInstaller:O,setSelectedInstaller:D,isInstallable:i,installationStatus:a,onZipModalClose:W,productSubType:k,isOversized:s,onConfirm:m,toggleAllShopModal:Q,size:Z,isSubNavOpen:B,setActiveLink:P,toggleSubNav:R,zipCode:G,isLoadingInstallerSchedule:v,itemId:r,quantity:u,carType:n,isLoading:g,"data-element":"Installers"})})}eH.displayName="ProductDetailInstallers";let eU=(0,s.A)(eH);function eF(){let e=(0,c.i)(e=>e.productId),t=(0,y.Xs)(e=>{var t,n;return null===(n=e.siteInstallers)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.id}),{installerIdOfCartSummary:n,siteProductsLength:l}=(0,_.W)(e=>{var t,n,l,a;return{installerIdOfCartSummary:null===(n=e.cartSummary)||void 0===n?void 0:null===(t=n.installerDetails)||void 0===t?void 0:t.installerId,siteProductsLength:null===(a=e.cartSummary)||void 0===a?void 0:null===(l=a.siteProducts)||void 0===l?void 0:l.length}}),a=(0,E.uF)(e=>e.getInstallerSchedule),i=n||t;return(0,I.useEffect)(()=>{i&&e&&a(i,e)},[i,a,e,l]),null}eF.displayName="GetInstallerScheduleEffect";let ex=(0,s.A)(eF);var eQ=n(22020);function eW(){let e=(0,eQ.ZS)(e=>e.setItemLink);return(0,I.useEffect)(()=>{e("")},[e]),null}eW.displayName="SetItemLinkEffect";let ez=(0,s.A)(eW);var eX=n(37393),eK=n(53303);function eq(){let e=(0,y.Xs)(e=>{var t;return null===(t=e.siteInstallers)||void 0===t?void 0:t.find(e=>!0===e.isSelected&&e.selectedTime)}),{installerDetailsValid:t,isCartSummaryModalOpen:n,removeInstallationAlert:l,setIsShowingRemoveInstallationAlert:a}=(0,_.W)(e=>{var t,n;return{installerDetailsValid:!!(null===(t=e.cartSummary)||void 0===t?void 0:t.installerDetails),isCartSummaryModalOpen:e.isCartSummaryModalOpen,removeInstallationAlert:null===(n=e.cartSummary)||void 0===n?void 0:n.removeInstallationAlert,setIsShowingRemoveInstallationAlert:e.setIsShowingRemoveInstallationAlert}}),{hasUserSelectedInstaller:i,isLoadingInstallerSchedule:o,selectedInstaller:s,selectedTimeValid:r,setSelectedInstaller:d,setCartShipping:c}=(0,E.uF)(e=>{var t;return{hasUserSelectedInstaller:e.hasUserSelectedInstaller,isLoadingInstallerSchedule:e.isLoadingInstallerSchedule,selectedInstaller:e.selectedInstaller,selectedTimeValid:!!(null===(t=e.shippingForm)||void 0===t?void 0:t.selectedTime),setCartShipping:e.setCartShipping,setSelectedInstaller:e.setSelectedInstaller}});return(0,I.useEffect)(()=>{!s&&e&&t&&!i&&d(e.id)},[e,i,t,s,d]),(0,I.useEffect)(()=>{n&&l&&s&&s.length>0&&(a(!0),c(void 0),(0,eX.TV)(null,eK.A.CART_SHIPPING,"",{maxAge:2592e3,path:"/",secure:!1,domain:eK.A.DOMAIN}),d(""))},[n,l,s,c,d,a]),(0,I.useEffect)(()=>{n&&!o&&!t&&s&&r&&d("")},[o,t,n,s,r,d]),null}eq.displayName="UpdateSelectedInstallerEffect";let eV=(0,s.A)(eq),ej=function(){return(0,l.FD)(l.FK,{children:[(0,l.Y)(eV,{"data-element":"UpdateSelectedInstallerEffect"}),(0,l.Y)(ex,{"data-element":"GetInstallerScheduleEffect"}),(0,l.Y)(ez,{"data-element":"SetItemLinkEffect"})]})},eJ=function(){return(0,l.FD)("div",{"data-component":"ProductDetailInstallersContainer",children:[(0,l.Y)(eU,{"data-element":"ProductDetailInstallers"}),(0,l.Y)(N,{"data-element":"AllShopAndInstallationShopDetailsModalContainer"}),(0,l.Y)(U,{"data-element":"InstallationAppointmentSelectionModalContainer"}),(0,l.Y)(Z,{"data-element":"ChangeTimeModalContainer"}),(0,l.Y)(ej,{"data-element":"ProductDetailInstallersEffects"})]})};function e$(){let e=(0,o.J)(e=>e.userType),t=(0,h.bc)(e=>e.isOutOfStockInNonPDPPage);return e===r.ve.SPECIAL_ORDER||t?null:(0,l.Y)(a.default,{fullbleed:!0,css:T.installation,children:(0,l.Y)(eJ,{})})}e$.displayName="ProductDetailInstallersAndModals";let e0=(0,s.A)(e$);var e2=n(12754);let e1=function(){return(0,l.FD)("div",{"data-component":"ProductDetailMiddleSection",children:[(0,l.Y)(m,{"data-element":"PLAPLPTechSpecsAndFAQs"}),(0,l.Y)(e0,{"data-element":"ProductDetailInstallersAndModals"}),(0,l.Y)(e2.A,{"data-element":"ProductDetailPurchaseIncludesAndShopWithConfidence"})]})}},42330:(e,t,n)=>{var l;n.d(t,{l:()=>a}),n(99742);let a={DEFAULT_ZOOM_LEVEL:13,GOOGLE_API_KEY:(l="AIzaSyBvMeJJOTIcPWeZiaLjnf0bTfo4Se7koFY",void 0!==l)?l:"",MARKER_ICON_PATH:"/static/assets/pdp/marker.png",MARKER_SMALL_ICON_PATH:"/static/assets/pdp/marker-small.png",MAX_ZOOM_LEVEL:21,MIN_ZOOM_LEVEL:1}},42507:(e,t,n)=>{n.d(t,{S:()=>l});let l=e=>{var t;return null===(t=e.find(e=>e.types.includes("postal_code")))||void 0===t?void 0:t.long_name}},49478:(e,t,n)=>{n.d(t,{HU:()=>s,IC:()=>r});var l=n(29747),a=n(14232),i=n(36307);let o=(0,i.q6)();function s(e){let{children:t}=e,n=function(){let[e,t]=(0,a.useState)(!1),n=(0,a.useCallback)(()=>{new window.google.maps.Geocoder,t(!0)},[]);return(0,a.useEffect)(()=>{window.initGoogleMap=n},[n]),{isGoogleMapScriptLoaded:e}}();return(0,l.Y)(o.Provider,{value:n,"data-element":"unknown","data-component":"GoogleMapScriptContextProvider",children:t})}let r=(e,t)=>(0,i.i7)(o,e,t)},49801:(e,t,n)=>{n.d(t,{FU:()=>i,rH:()=>r,wg:()=>o});var l=n(42507),a=n(42330);let i={SCRIPT_SRC:"https://maps.googleapis.com/maps/api/js?key=".concat(a.l.GOOGLE_API_KEY,"&loading=async&callback=initGoogleMap&libraries=places"),SCRIPT_ID:"google-maps-apis"},o=e=>{let{latitude:t,longitude:n}=e;return new Promise((e,a)=>{var i,o,s;(null===(s=window)||void 0===s?void 0:null===(o=s.google)||void 0===o?void 0:null===(i=o.maps)||void 0===i?void 0:i.Geocoder)||a(null),new window.google.maps.Geocoder().geocode({location:{lat:t,lng:n}},(t,n)=>{if(n===window.google.maps.GeocoderStatus.OK&&(null==t?void 0:t.length)){let n=t[0]&&t[0].address_components.length?(0,l.S)(t[0].address_components):null;return n?e({id:t[0].place_id,main:n}):a(null)}})})},s=e=>new Promise((t,n)=>{var l,a,i;(null===(i=window)||void 0===i?void 0:null===(a=i.google)||void 0===a?void 0:null===(l=a.maps)||void 0===l?void 0:l.Geocoder)||n(null),new window.google.maps.Geocoder().geocode({address:e},(e,l)=>{l===window.google.maps.GeocoderStatus.OK&&e?t(e):n("Geocode failed: ".concat(l))})}),r=e=>s("".concat(e," us zipcode"))},50220:(e,t,n)=>{n.d(t,{ts:()=>O,CN:()=>D});var l=n(29747),a=n(89617),i=n.n(a),o=n(14e3),s=n(14232),r=n(98123),d=n(80912),c=n(3297),u=n(52980),p=n(49801),m=n(78096),h=n(83962),I=n(25838),S=n(70266);let g=(e,t)=>{(0,S.X)(I.g.LOCATION_POPUP,{Allow:e,"Dont Allow":t})},E=e=>(0,h.c)(new Date(e.timestamp),new Date)>90,f=()=>new Promise((e,t)=>{if(!navigator.geolocation)return;let n=i().get(d.W[d.y.BROWSER_LOCATION_PERMISSION]),l=new Date,a={miliseconds:l.getTime(),timeAsString:l.toUTCString()},o={allow:()=>({formattedTimestamp:a.timeAsString,response:"allow",timestamp:a.miliseconds}),declined:e=>({formattedTimestamp:e?new Date(e).toUTCString():a.timeAsString,response:"denied",timestamp:e||a.miliseconds,isExpired:!1})};navigator.geolocation.getCurrentPosition(function(t){let{coords:{latitude:l,longitude:a}}=t;g(!0,!1);let s={latitude:l,longitude:a};if(i().set(d.W[d.y.BROWSER_LOCATION_DATA],s),u.A.addToDataLayer({event:"isGeolocation",lat:l,lng:a}),n){e(s);return}i().set(d.W[d.y.BROWSER_LOCATION_PERMISSION],o.allow()),e(s)},function(e){if(1==e.code){let l=n&&E(n)?{...n,isExpired:!0}:o.declined(n?n.timestamp:null);g(!1,!0),i().remove(d.W[d.y.BROWSER_LOCATION_DATA]),i().set(d.W[d.y.BROWSER_LOCATION_PERMISSION],l),t({errorCode:e.code,isDenied:!0})}else t({errorCode:e.code,isDenied:!0})})});var C=n(32384),A=n(36307),T=n(91066),M=n(20721),L=n(84859),_=n(49478),v=n(88772);let b={VEHICLE_METADATA_KEY:d.W[d.y.VEHICLE_METADATA],USER_LOCATION_ZIP_KEY:d.W[d.y.USER_LOCATION_ZIP]},y=(0,A.q6)();function O(e){let{children:t}=e,n=function(){let e=(0,L._)(e=>e.userIp),t=(0,_.IC)(e=>e.isGoogleMapScriptLoaded),n=(0,v.J)(e=>e.updateLocation),l=(0,o.usePathname)(),a=(0,T.Z4)(l),[h,I]=(0,s.useState)(!1),[S,g]=(0,s.useState)(!1),A=(0,s.useRef)(!1),y=(0,s.useCallback)(async()=>{try{C._v.removeItem(c.v[c.y.BROWSER_LOCATION_REQUEST_DISABLED]),A.current=!0;let t=await f();if(t)if(t.isDenied)1===t.errorCode?e&&e!==r.Ch&&(n({userLocationGooglePlacesId:"",userLocationZip:"",userIp:e}),i().set(d.W[d.y.ZIP_SET_BY],"ip"),u.A.addToDataLayer({event:"isServerlocation",zip:e,source:"userIp"})):(2===t.errorCode&&g(!0),I(!0));else try{let e=await (0,p.wg)(t);e&&n({userLocationGooglePlacesId:e.id,userLocationZip:e.main})}catch(e){m.A.error("updateUserZipFromLatLng",e)}}catch(e){m.A.error("updateLocationFromBrowser",e)}},[e,n]);return(0,s.useEffect)(()=>{var e;if((0,M.M8)()||(null!==(e=i().get(b.USER_LOCATION_ZIP_KEY))&&void 0!==e?e:null))return;let n=i().get(d.W[d.y.BROWSER_LOCATION_PERMISSION]);(!n||E(n))&&t&&!A.current&&(a?C._v.setItem(c.v[c.y.BROWSER_LOCATION_REQUEST_DISABLED],"true"):y())},[t,y,a]),{browserLocationFailed:S,hideUseCurrentLocation:h,setBrowserLocationFailed:g}}();return(0,l.Y)(y.Provider,{value:n,"data-element":"unknown","data-component":"UserLocationContextProvider",children:t})}let D=(e,t)=>(0,A.i7)(y,e,t)},55570:(e,t,n)=>{n.d(t,{A:()=>I});var l=n(29747),a=n(24964),i=n(10983),o=n(30908),s=n(52467),r=n(40994),d=n(19009),c=n(57532),u=n(44364),p=n(63381),m=n(36384);let h={button:{width:"100%",justifyContent:"center"},description:[m.Il.smallCopy,{color:u.l.LIGHT.GRAY_70,marginTop:p.E.SIZE_10,textAlign:"center"}],link:{justifyContent:"center",margin:"auto"},mb20:{marginBottom:p.E.SIZE_20},mb30:{marginBottom:p.E.SIZE_20},modalContent:{paddingTop:p.E.SIZE_60,"& > span":{justifyContent:"center"}},mt40:{marginTop:p.E.SIZE_40},title:[m.Il.secondaryHeadline,{marginTop:p.E.SIZE_25,textAlign:"center"}]},I=function(e){let{id:t,isOpen:n,onClose:u,onChangeTime:p,onBrowseShops:m,title:I,description:S,icon:g,onRemoveInstall:E}=e;return(0,l.Y)(s.A,{contentLabel:t,"data-component":t,customContentStyles:h.modalContent,isOpen:n,onClose:u,children:(0,l.FD)("div",{css:h.modalContent,children:[(0,l.Y)(i.default,{name:g,css:h.icon,"data-element":"Icon"}),(0,l.Y)("h3",{css:h.title,children:I}),(0,l.Y)("p",{css:h.description,children:S}),(0,l.Y)(a.A,{css:[h.button,h.mt40,h.mb20],onClick:p,theme:d.C.LIGHT,"data-component":t,children:(0,c.ui)("cart.changeTimeModal.changeTime")}),(0,l.Y)(a.A,{css:[h.button,h.mb30],onClick:m,style:r.l.OUTLINED,theme:d.C.LIGHT,"data-component":t,children:(0,c.ui)("cart.changeTimeModal.browseShops")}),(0,l.Y)(o.A,{theme:d.C.LIGHT,as:"button",css:h.link,onClick:E,"data-element":"Link",children:(0,c.ui)("cart.changeTimeModal.noInstall")})]})})}},75024:(e,t,n)=>{n.d(t,{A:()=>A});var l=n(29747),a=n(14579),i=n(51263),o=n(2236),s=n(10983),r=n(20735),d=n(62122),c=n(57532);let u=[{heading:"98%",detail:"of customers approve"},{heading:"Top 500",detail:"fastest growing company in US"},{heading:"20,000+",detail:"certified installers"},{heading:"7,000+",detail:"local distributors"},{heading:"6M+",detail:"customers served"}];var p=n(63276),m=n(44364),h=n(22840),I=n(32586),S=n(63381),g=n(38124),E=n(36384);let f={carouselItem:{"&:last-of-type":{marginRight:h.SS.S,[p.MQ.M]:{marginRight:h.SS.M},[p.MQ.L]:{marginRight:(0,g.J)({breakpoint:"L",columns:1,includeExtraGutter:!0,includeContainerMargin:!0})},[p.MQ.XL]:{marginRight:(0,g.J)({breakpoint:"XL",columns:1,includeExtraGutter:!0,includeContainerMargin:!0})}},marginRight:S.E.SIZE_30,maxWidth:100,width:"unset",[p.MQ.M]:{marginRight:S.E.SIZE_60,maxWidth:180},[p.MQ.XL]:{marginRight:S.E.SIZE_80}},checkmark:{background:m.l.GLOBAL.BLACK,borderRadius:I.Z.CIRCLE,color:m.l.GLOBAL.WHITE,height:12,marginLeft:S.E.SIZE_05,padding:3,width:12},heading:{display:"flex",justifyContent:"space-between",marginBottom:S.E.SIZE_20,[p.MQ.L]:{display:"block",marginBottom:S.E.SIZE_30}},learnMoreButton:[E.Il.labelCopyTight,{color:m.l.LIGHT.GRAY_70,span:{borderColor:m.l.LIGHT.GRAY_70},":hover, :focus":{span:{borderColor:m.l.GLOBAL.BLACK}}}],statDetail:[E.Il.labelCopyTight,{color:m.l.LIGHT.GRAY_70,display:"block",lineHeight:1.25,[p.MQ.L]:E.Il.bodyCopyTight}],statHeading:[E.Il.primaryHeadline,{display:"block",marginBottom:S.E.SIZE_05,whiteSpace:"nowrap",[p.MQ.L]:{marginBottom:S.E.SIZE_05}}],statWrapper:{display:"flex"},title:[E.Il.tertiaryHeadline,{alignItems:"center",display:"flex",[p.MQ.L]:{marginBottom:S.E.SIZE_05}}]};function C(e){let{isOnModal:t,isSimpleShop:n}=e;return(0,l.FD)(a.default,{"data-element":"Grid","data-component":"ShopWithConfidence",children:[!n&&(0,l.Y)(i.default,{gridColumnL:t?void 0:"3/end",gridColumnXL:t?void 0:"1/wrapper-end",css:f.heading,children:(0,l.FD)("h2",{css:f.title,children:[(0,l.Y)("span",{children:(0,c.ui)("pdp.shopWithConfidence.title")}),(0,l.Y)(s.default,{name:r.Ze.CHECKMARK,css:f.checkmark})]})}),(0,l.Y)(i.default,{gridColumnL:t?void 0:"3/end",gridColumnXL:t?void 0:n?"3/end":"1/wrapper-end",css:f.carouselContainer,"data-element":"GridItem",children:n?(0,l.FD)(o.A,{children:[(0,l.FD)("span",{css:f.carouselItem,children:[(0,l.Y)("span",{css:f.statHeading,children:"300+"}),(0,l.FD)("span",{css:f.statDetail,children:[(0,l.Y)("span",{children:"Tire brands."})," ",(0,l.Y)("br",{}),(0,l.Y)("span",{children:"All the top brands."})]})]}),(0,l.FD)("span",{css:f.carouselItem,children:[(0,l.Y)("span",{css:f.statHeading,children:"5M+"}),(0,l.Y)("span",{css:f.statDetail,children:(0,l.Y)("span",{children:"customers served"})})]})]}):(0,l.Y)(o.A,{children:u.map(e=>(0,l.FD)("span",{css:f.carouselItem,children:[(0,l.Y)("span",{css:f.statHeading,children:e.heading}),(0,l.Y)("span",{css:f.statDetail,children:e.detail})]},e.heading))})})]})}C.displayName="ShopWithConfidence";let A=(0,d.A)(C)},82580:(e,t,n)=>{n.d(t,{KT:()=>r,VG:()=>p,Io:()=>h,m7:()=>d});let l={LINEAR:function(e,t,n,l){return(n-t)*e/l+t},EASE_IN_QUAD:function(e,t,n,l){return(n-t)*(e/=l)*e+t},EASE_OUT_QUAD:function(e,t,n,l){return-(n-t)*(e/=l)*(e-2)+t},EASE_IN_OUT_QUAD:function(e,t,n,l){var a=n-t;return(e/=l/2)<1?a/2*e*e+t:-a/2*(--e*(e-2)-1)+t},EASE_IN_CUBIC:function(e,t,n,l){return(n-t)*(e/=l)*e*e+t},EASE_OUT_CUBIC:function(e,t,n,l){return(n-t)*((e=e/l-1)*e*e+1)+t},EASE_IN_OUT_CUBIC:function(e,t,n,l){var a=n-t;return(e/=l/2)<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t},EASE_IN_QUART:function(e,t,n,l){return(n-t)*(e/=l)*e*e*e+t},EASE_OUT_QUART:function(e,t,n,l){return-(n-t)*((e=e/l-1)*e*e*e-1)+t},EASE_IN_OUT_QUART:function(e,t,n,l){var a=n-t;return(e/=l/2)<1?a/2*e*e*e*e+t:-a/2*((e-=2)*e*e*e-2)+t},EASE_IN_QUINT:function(e,t,n,l){return(n-t)*(e/=l)*e*e*e*e+t},EASE_OUT_QUINT:function(e,t,n,l){return(n-t)*((e=e/l-1)*e*e*e*e+1)+t},EASE_IN_OUT_QUINT:function(e,t,n,l){var a=n-t;return(e/=l/2)<1?a/2*e*e*e*e*e+t:a/2*((e-=2)*e*e*e*e+2)+t},EASE_IN_SINE:function(e,t,n,l){var a=n-t;return-a*Math.cos(e/l*(Math.PI/2))+a+t},EASE_OUT_SINE:function(e,t,n,l){return(n-t)*Math.sin(e/l*(Math.PI/2))+t},EASE_IN_OUT_SINE:function(e,t,n,l){return-(n-t)/2*(Math.cos(Math.PI*e/l)-1)+t},EASE_IN_EXPO:function(e,t,n,l){return 0==e?t:(n-t)*Math.pow(2,10*(e/l-1))+t},EASE_OUT_EXPO:function(e,t,n,l){var a=n-t;return e==l?t+a:a*(-Math.pow(2,-10*e/l)+1)+t},EASE_IN_OUT_EXPO:function(e,t,n,l){var a=n-t;return 0===e?t:e===l?t+a:(e/=l/2)<1?a/2*Math.pow(2,10*(e-1))+t:a/2*(-Math.pow(2,-10*--e)+2)+t},EASE_IN_CIRC:function(e,t,n,l){return-(n-t)*(Math.sqrt(1-(e/=l)*e)-1)+t},EASE_OUT_CIRC:function(e,t,n,l){return(n-t)*Math.sqrt(1-(e=e/l-1)*e)+t},EASE_IN_OUT_CIRC:function(e,t,n,l){var a=n-t;return(e/=l/2)<1?-a/2*(Math.sqrt(1-e*e)-1)+t:a/2*(Math.sqrt(1-(e-=2)*e)+1)+t},EASE_IN_ELASTIC:function(e,t,n,l){var a,i,o,s=n-t;return(o=1.70158,i=0,a=s,0===e)?t:1==(e/=l)?t+s:(i||(i=.3*l),a{for(let e in a)a[e]&&a[e]()};class o{set direction(e){let t=e!==this._direction;this._direction=e,t&&i()}get direction(){return this._direction}set x(e){let t=e!==this._x;this._x=e,t&&i()}get x(){return this._x}set y(e){let t=e!==this._y;this._y=e,t&&i()}get y(){return this._y}constructor(){this._direction="",this._x=0,this._y=0}}let s=new o,r=()=>({direction:s.direction,x:s.x,y:s.y}),d=e=>(e.y<0&&(e.y=0),s.y>e.y?s.direction="up":s.ye.x?s.direction="left":s.x1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0;return c.from=l?l.offsetTop:window.scrollY||window.pageYOffset,c.duration=t,c.to=e,c.cb=n,u=!1,c.to!==c.from?window.requestAnimationFrame(m(l)):n&&n(),()=>{u=!0}},m=e=>()=>{if(u)return;let t=c.fps*c.duration;c.y=l.EASE_OUT_CUBIC(c.iteration,c.from,c.to,t),c.iteration++,c.y=Math.round(c.y),c.iteration<=t?(e?e.scrollTop=c.y:window.scrollTo(0,c.y),requestAnimationFrame(m(e))):(c.iteration=0,c.y=0,c.cb&&c.cb())},h=(e,t,n,l,a)=>{e.current&&p(e.current.offsetTop+(a||0),t/1e3,n,l)}},87115:(e,t,n)=>{n.d(t,{T:()=>a,o:()=>l});var l=function(e){return e.ALTERNATE="alternate",e.DEFAULT="default",e}({}),a=function(e){return e.ACCOUNT="ACCOUNT",e.BROWSE_TIRES="BROWSE TIRES",e.LEARN="LEARN",e.LOCATION="LOCATION",e}({})},95641:(e,t,n)=>{n.d(t,{A:()=>E});var l=n(29747),a=n(14579),i=n(51263),o=n(30908),s=n(47792),r=n(35947),d=n(32586),c=n(19009),u=n(57532),p=n(63276),m=n(44364),h=n(22840),I=n(63381),S=n(36384);let g={changeZipCode:{display:"inline-block",marginLeft:I.E.SIZE_10,span:{border:"none"}},changeZipCodeElem:[S.Il.smallCopyTight,{color:m.l.LIGHT.GRAY_70,marginBottom:I.E.SIZE_10,borderBottom:"2px dotted ".concat(m.l.LIGHT.GRAY_70," !important;"),[p.MQ.XL]:[S.Il.bodyCopyTight]}],heading:[S.Il.primaryHeadline,{marginBottom:I.E.SIZE_10}],headline:[S.Il.primaryHeadline,{[p.MQ.S]:{marginTop:I.E.SIZE_20},[p.MQ.M]:{marginTop:I.E.SIZE_40},marginBottom:I.E.SIZE_10}],headlineInfo:[S.Il.smallCopyTight,{color:m.l.LIGHT.GRAY_70,marginBottom:I.E.SIZE_05,[p.MQ.XL]:[S.Il.bodyCopyTight]}],locationLink:{display:"inline","& > span > span":{borderBottom:"1px solid ".concat(m.l.LIGHT.GRAY_70)}},modalSubtitle:{fontSize:12},root:[{marginTop:I.E.SIZE_40,color:m.l.GLOBAL.BLACK,[p.MQ.L]:{marginRight:-h.DM.XL,marginBottom:h.DM.XL}}],subTitle:[S.Il.smallCopyTight,{"& > p":{display:"inline-block"},color:m.l.LIGHT.GRAY_70,display:"inline-block",[p.MQ.M]:S.Il.bodyCopyTight}],title:[S.Il.primaryHeadline],verifiedShops:{color:m.l.GLOBAL.BLACK,fontWeight:"700",marginRight:I.E.SIZE_05}},E=function(e){let{customContainerStyle:t,isLocationModalOpen:n,shops:p,title:m,toggleLocationModal:h,userLocation:I,isLoadingShopData:S}=e;return(0,l.FD)(a.default,{"data-element":"Grid","data-component":"SelectShop",children:[(0,l.FD)(i.default,{gridColumnS:"1/end",gridColumnL:"1/end",gridRowM:"1",css:[g.title,t],"data-element":"GridItem",children:[(0,l.Y)("h2",{css:g.headline,children:m}),(0,l.Y)("div",{css:g.headlineInfo,children:S?(0,l.Y)(s.A,{width:"70%",height:"22px",radius:d.Z.RADIUS_8}):(0,l.FD)("p",{children:[(0,l.Y)("span",{children:"".concat((null==p?void 0:p.length)||0," ").concat((0,u.ui)("pdp.installation.verifiedShops")," ").concat((0,u.ui)("pdp.installation.near")," ")}),(0,l.FD)("span",{css:g.verifiedShops,children:[null==I?void 0:I.zip,":"]}),(0,l.Y)("span",{children:" •"}),(0,l.Y)(o.A,{as:"button",theme:c.C.LIGHT,borderless:!0,onClick:()=>{h()},css:g.changeZipCode,children:(0,l.Y)("span",{css:g.changeZipCodeElem,children:(0,u.ui)("pdp.installation.changeZipCode")})})]})})]}),(0,l.Y)(r.A,{isOpen:n,onClose:h,"data-element":"LocationModal"})]})}},98976:(e,t,n)=>{n.d(t,{A:()=>y});var l=n(29747),a=n(14e3),i=n(14232),o=n(32297),s=n(6833),r=n(14579),d=n(51263),c=n(30913),u=n(95641),p=n(20331),m=n(84859),h=n(76706),I=n(52986),S=n(99595),g=n(91066),E=n(57532),f=n(34251),C=n(9012),A=n(2879),T=n(63276),M=n(44364),L=n(63381),_=n(36384);let v={barStyles:{"& > p":[_.Il.smallCopyTight,{textDecoration:"underline",color:M.l.LIGHT.GRAY_70,[T.MQ.XL]:[_.Il.bodyCopyTight]}]},button:{marginTop:L.E.SIZE_30,[T.MQ.S]:{width:"100%",alignItems:"center",justifyContent:"center"},[T.MQ.M]:{width:"auto",padding:"0 ".concat(L.E.SIZE_60,"px"),alignItems:"center",justifyContent:"center"}},changeZipCode:{display:"inline-block",marginLeft:L.E.SIZE_10,span:{border:"none"}},changeZipCodeElem:[_.Il.smallCopyTight,{color:M.l.LIGHT.GRAY_70,marginBottom:L.E.SIZE_10,textDecoration:"underline",[T.MQ.XL]:[_.Il.bodyCopyTight]}],customShopContainer:{padding:0,[T.MQ.M]:{padding:0}},customtabStyles:{" > button":{maxWidth:"165px"," > span:last-child":{top:L.E.SIZE_10}},justifyContent:"flex-start"},description:[_.Il.smallCopyTight,{color:M.l.LIGHT.GRAY_70,fontSize:"12px",justifyContent:"center"}],included:{},installersTab:{marginTop:L.E.SIZE_30,marginBottom:0,div:{marginBottom:0}},title:[_.Il.bodyCopyTight,{fontWeight:"bold",justifyContent:"center"}]};var b=n(84732);let y=function(e){let{userLocation:t,shops:n,brandPromotionList:T,getInstallerSchedule:M,openDynamicModal:L,handleSelectInstaller:_,selectedInstaller:y,selectedTime:O,openStaticModal:D,onConfirm:Y,productId:N,customStyles:P,isLoadingShopData:R=!1,isLoadingInstallerSchedule:w,setIsLoadingInstallerSchedule:B,setShopIdOfDetailsModal:G,toggleShopDetailModal:Z,currentPickupTab:k=c.zH.LEFT,onTabChange:H,isPDP:U}=e,[F,x]=(0,i.useState)(!1),{setIsAppointmentModalOpen:Q,cartSummary:W,setSelectedTab:z,hasMobileInstall:X,selectedTab:K,isCartSummaryModalOpen:q,showInstallerTabs:V}=(0,f.W)(e=>({cartSummary:e.cartSummary,hasMobileInstall:e.hasMobileInstall,isCartSummaryModalOpen:e.isCartSummaryModalOpen,selectedTab:e.selectedTab,setIsAppointmentModalOpen:e.setIsAppointmentModalOpen,setSelectedTab:e.setSelectedTab,showInstallerTabs:e.showInstallerTabs})),{currentTab:j,setCurrentTab:J}=(0,C.Hq)(e=>({currentTab:e.currentTab,setCurrentTab:e.setCurrentTab})),$=(0,m._)(e=>1===Number(e.isSimpleShop)),[ee,et]=(0,i.useState)(U&&!q?K===s.Si.MOBILE?c.zH.MID:c.zH.LEFT:U&&q?j:k),en=(0,I.M)(null==t?void 0:t.zip,!0),el=(0,a.usePathname)(),ea=(0,g.f5)(el),ei=(0,a.useSearchParams)(),eo=null==ei?void 0:ei.get("openAllShopsModal"),es=null==ei?void 0:ei.get("activeShippingType"),{isComingFromWidget:er}=(0,S.A)();(0,i.useEffect)(()=>{(q||ea)&&z(j===c.zH.MID?s.Si.MOBILE:s.Si.LOCAL)},[]),(0,i.useEffect)(()=>{U&&ea||(et(K===s.Si.MOBILE?c.zH.MID:c.zH.LEFT),J(K===s.Si.MOBILE?c.zH.MID:c.zH.LEFT))},[K,J,et,U,ea]),(0,i.useEffect)(()=>{en&&et(c.zH.LEFT)},[en]);let ed=async()=>{B(!0),await M(y,N),Q(!0),B(!1)},ec=null==W?void 0:W.siteProducts.map(e=>e.productSubType),eu=e=>{et(e),z(0==e?s.Si.LOCAL:s.Si.MOBILE),H&&H(e)};(0,i.useEffect)(()=>{eu(k)},[]),(0,i.useEffect)(()=>{er&&eo&&es===h.l.MOBILEINSTALL&&et(c.zH.MID)},[er,es,eo]);let ep=n.findIndex(e=>e.id===y),em=ep?(0,b.B)(n,ep):n;return(0,l.FD)(r.default,{css:P,"data-element":"Grid","data-component":"PickShop",children:[(0,l.Y)(d.default,{fullbleed:!0,"data-element":"GridItem",children:(0,l.Y)(u.A,{isLocationModalOpen:F,toggleLocationModal:()=>{x(!F)},userLocation:t,title:(0,E.ui)("pdp.installation.pickShop.title"),shops:n,prefix:(0,E.ui)("checkout.shipping.shippingInfo.verifiedShop",{numberOfShops:n.length}),isLoadingShopData:R,"data-element":"SelectShop"})}),(0,l.Y)(d.default,{fullbleed:!0,css:v.included,"data-element":"GridItem",children:(0,l.Y)(A.A,{productSubTypes:ec,"data-element":"WhatsIncluded"})}),(0,l.Y)(d.default,{fullbleed:!0,gridColumnM:"1/9","data-element":"GridItem",children:X&&V&&(0,l.Y)(d.default,{gridColumnS:"1/6",gridColumnL:"3/8",gridColumnXL:"3/8",css:v.installersTab,"data-element":"GridItem","data-component":"ShopMobileAndShopTabComponent",children:(0,l.Y)(p.A,{tabsLabels:[(0,l.FD)("div",{children:[(0,l.Y)("span",{css:v.title,children:$?(0,E.ui)("pdp.installation.simpleShops"):(0,E.ui)("pdp.installation.localShops")}),(0,l.Y)("span",{css:v.description,children:(0,E.ui)("pdp.installation.localShopsDesc")})]},1),(0,l.FD)("div",{children:[(0,l.Y)("span",{css:v.title,children:(0,E.ui)("pdp.installation.mobileInstall")}),(0,l.Y)("span",{css:v.description,children:(0,E.ui)("pdp.installation.mobileInstallDesc")})]},2)],id:"installers-tab",value:ee,onChange:eu,customStyles:v.customtabStyles,"data-element":"Tabs",children:(0,l.Y)("span",{})})})}),(0,l.Y)(d.default,{fullbleed:!0,"data-element":"GridItem",children:(0,l.Y)(o.default,{shops:R?[]:em,brandPromotionList:T,selectedInstaller:y,handleSelectedInstallerChange:_,openDynamicModal:L,isLoadingShopData:R,customContainerStyle:v.customShopContainer,selectedTime:O,handleOpenShopDetails:e=>{G&&Z&&(G(e),Z())},onClickAppointment:ed,onConfirm:Y,hideStaticMap:!0,isCarousel:!0,openStaticModal:D,isLoadingInstallerSchedule:w,onTabChange:()=>eu(c.zH.LEFT),"data-element":"AllInstallationShops"})})]})}}}]);