PageSourceSearch

https://www.landroverdfw.com/static/ws/specials/bundle.974a1681ecc1ee55d46e0b1891531d26.js

js landroverdfw.com collected 2026-09-30 19:02:05 UTC 237,658 bytes, 2 lines download raw bytes

1(()=>{var e,t,n,i,a={62(e,t,n){"use strict";n.d(t,{H:()=>i});const i=e=>[...new Set(e)].filter(e=>e).join(" ")||null},973(e,t,n){e.exports={...n(174)}},331(e,t,n){e.exports={...n(335)}},194(e,t,n){"use strict";n.d(t,{A:()=>v});var i=n(594),a=n.n(i),s=n(40),o=n(252),l=n(62),r=n(174),c=n(935),d=n.n(c);d().string,d().bool,d().string,d().string,d().shape(),d().string,d().string,d().string,d().string,d().string,d().string,d().number,d().string,d().string.isRequired,d().string,d().string,d().number,d().string,d().string,d().string.isRequired,d().arrayOf(d().string),d().string,d().shape({openInNewTab:d().bool}),d().bool,d().shape({id:d().string,applicableCondition:d().string,applicableMake:d().string,incentive:d().shape({type:d().string}),incentiveEffectiveDate:d().string,incentiveExpirationDate:d().string,globalVehicleId:d().string,globalVehicleTrimIds:d().arrayOf(d().string),manufacturerOffer:d().bool,trim:d().shape({model:d().string,year:d().oneOfType([d().string,d().number])})});var p=n(409);var m=n(623),u=n(820);const g=e=>{if("string"!=typeof e)return e??null;return e.trim()||null},h=e=>Boolean(e)&&e!==p.N0.NO_SHOW&&e!==p.N0.NO_SHOW_ON_SPECIAL,f=(e,t)=>{const n=h(e),i=h(t);return n&&i?`Offer valid on ${e} through ${t}`:i?`Offer valid through ${t}`:n?`Offer valid on ${e}`:null},y=e=>{if(!e)return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:t.toLocaleDateString("en-US",{timeZone:"UTC"})},w=e=>{if(!e)return null;const{type:t,title:n,description:i,disclaimer:a,additionalDetails:s,discountType:o,discountValue:l,couponCode:r,startDate:c,startDateDisplay:d,endDate:m,endDateDisplay:u,incentiveData:w}=e,b=[];let x=null,E=null,v=null,I=null,k=null,C=null,_=null;if(t===p.g.INCENTIVE){x=g(w?.title)||g(w?.shortTitle),E=g(w?.offerDetails);const e=y(w?.incentiveEffectiveDate),t=y(w?.incentiveExpirationDate),n=(T=w?.disclaimer,T&&T.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()||null);x&&b.push(x),E&&b.push(E);const i=f(e,t);i&&b.push(i),n&&b.push(`Disclaimer: ${n}`),h(e)&&(v=w?.incentiveEffectiveDate),h(t)&&(I=w?.incentiveExpirationDate)}else{if(x=g(n),x&&b.push(x),t===p.g.SERVICE||t===p.g.PARTS){const e=((e,t)=>{if(!e||null==t)return null;switch(e.toUpperCase()){case"AMOUNT":return`$${t} off`;case"PERCENT":return`${t}% off`;case"FIXED":return`$${t}`;case"STARTING_AT":return`Starting at $${t}`;default:return null}})(o,l);e&&b.push(e);const t=g(r);t&&b.push(`Coupon code: ${t}`),"FIXED"===o?.toUpperCase()&&null!=l&&(k=String(l))}E=g(i),E&&b.push(E);const e=f(d,u);e&&b.push(e);const y=g(a);y&&b.push(`Disclaimer: ${y}`);const w=g(s);w&&b.push(w),h(d)&&(v=c),h(u)&&(I=m)}var T;const N=b.length?b.map(e=>e.trim().replace(/\.$/,"")).filter(Boolean).join(". "):null;if(t===p.g.INCENTIVE&&N){const e=g(w?.trim?.model);e&&N.includes(e)&&(C=e,_=w?.trim?.year||null)}return{srOnlyText:N,name:x,description:E,validFrom:v||null,validThrough:I||null,price:k,model:C,modelYear:_}},b=({promo:e})=>{const t=(e=>w(e)?.srOnlyText??null)(e);return t?a().createElement("div",{id:`sr-only-${e.id}`,className:"sr-only"},t):null},x=({promo:e})=>{const t=(e=>{const t=w(e);if(!t)return null;const{name:n,description:i,validFrom:a,validThrough:s,price:o,model:l,modelYear:r}=t,c=l?{"@type":"Vehicle",model:l,...r&&{vehicleModelDate:r}}:null;return n||i||a||s||o||c?{"@context":"https://schema.org","@type":"Offer",...n&&{name:n},...i&&{description:i},...a&&{validFrom:a},...s&&{validThrough:s},...o&&{price:o,priceCurrency:"USD"},...c&&{itemOffered:c}}:null})(e);if(!t)return null;const n=JSON.stringify(t).replace(/</g,"\\u003c");return a().createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:n}})},E=({promoIndex:e,isMobile:t=!1,isVisible:n=!0,promo:c,role:d=null,positionLabel:g=null,roleDescription:h=null,noNeedAriaCurrent:f=!1,isCurrent:y=!1,autoPlay:w=!0})=>{const{aspectRatio:E,enableCarousel:v}=(0,i.useContext)(u.G),I=(0,r.useFlags)(),k=(0,r.useLabels)(),C=(0,r.useSitemap)(),_=(0,i.useRef)(null),{designs:T}=(0,s.useSelector)(e=>e.designs),N=(0,s.useSelector)(e=>e.account),S=(0,s.useSelector)(e=>e.personalized),{id:D}
1=(0,s.useSelector)(e=>e.accountId),O=(0,m.P_)(E)&&t,{autoGenerated:P=!1,condition:A="NEW",customAssets:R={},customAssetVideos:L={},destinationLabel:z="",destinationUrl:M="",id:q,inventoryCount:F=0,oemId:B=null,title:j="",type:V}=c,U=R&&(R[E]||R[`${E}_video`])||L&&L[E],X="Desktop4x3"===E,H="Desktop9x16"===E,W=["promo",`promo-type-${V.toLowerCase()}`,U?"custom-asset":"non-custom-asset",O&&"false"===v?"mb-4":"","Desktop9x16"===E||"Mobile9x16"===E?"vertical":"",(X||H)&&"true"===v?"mx-xl-4":""],{url:K,isFullSlideLink:G}=(({condition:e,label:t,url:n,inventoryCount:i,isCustomAsset:a,labels:s,sitemap:o,type:l})=>{let r,c,d,m;switch(l){case p.g.EVENT:case p.g.PARTS:case p.g.SERVICE:c="default"===t?"":s.get(t),r="default"===n?"":n;break;case p.g.VEHICLE:case p.g.INCENTIVE:d=s.get("VIEW_[NUMBER]_QUALIFYING_VEHICLE(S)"),d=d.replace("[number]",`${i}`),m="CPO"===e?o.get("INVENTORY_LISTING_DEFAULT_AUTO_USED"):o.get("INVENTORY_LISTING_DEFAULT_AUTO_NEW"),c=t&&"default"!==t&&"VIEW_[NUMBER]_QUALIFYING_VEHICLE(S)"!==t?s.get(t):d,r=n&&"default"!==n?n:m}return{url:r,label:c,isFullSlideLink:a&&r}})({condition:A,label:z,url:M,inventoryCount:F,isCustomAsset:U,labels:k,sitemap:C,type:V});return(0,i.useEffect)(()=>{let e;return"undefined"!=typeof window&&n&&(t?e=setTimeout(()=>window.DDC.mobile.slidein.init(),500):"function"==typeof window.jQuery&&window?.DDC?.modules&&$(document).trigger("modulesRefresh",{modules:{dialog:window?.DDC?.modules?.dialog}})),()=>{clearTimeout(e)}},[t,n]),n?a().createElement("div",{className:(0,l.H)(W),"data-promo-id":q,"data-oem-id":B,"data-title":B?null:j,"data-auto-generated":P,"data-url-href":G?K:null,role:d,"aria-current":f?null:y||n?"true":"false","aria-roledescription":h,"aria-label":g,ref:_,"aria-labelledby":`sr-only-${c.id}`},U&&I["enable-specials-offer-schema"]&&a().createElement(a().Fragment,null,a().createElement(b,{promo:c}),a().createElement(x,{promo:c})),a().createElement(o.T2,{promo:c,accountId:D,account:N,personalized:S,aspectRatioProp:E,designConfig:(0,o.tF)(c,T),promoIndex:e,autoPlay:w})):null},v=(0,i.memo)(E)},820(e,t,n){"use strict";n.d(t,{G:()=>i});const i=(0,n(594).createContext)({})},409(e,t,n){"use strict";n.d(t,{N0:()=>p,Oy:()=>d,Q7:()=>m,Xq:()=>u,a:()=>a,aR:()=>s,eU:()=>c,g:()=>i,hD:()=>o,ll:()=>l,mH:()=>r});const i={EVENT:"EVENT",INCENTIVE:"INCENTIVE",PARTS:"PARTS",SERVICE:"SERVICE",VEHICLE:"VEHICLE"},a={SET_ACCOUNT:"SET_ACCOUNT",SET_PERSONALIZED:"SET_PERSONALIZED",SET_HAS_DATA:"SET_HAS_DATA",SET_POSITION_DATA:"SET_POSITION_DATA",CLOSE_MODAL:"CLOSE_MODAL",OPEN_MODAL:"OPEN_MODAL",SET_LISTINGS_CAROUSEL_SLIDE_CONDITIONS:"SET_LISTINGS_CAROUSEL_SLIDE_CONDITIONS",SET_VEHICLE_ID:"SET_VEHICLE_ID",SET_ACCOUNT_ID:"SET_ACCOUNT_ID",SET_DESIGNS:"SET_DESIGNS",SET_VARIATION_REF:"SET_VARIATION_REF"},s={DESKTOP_10X1:"Desktop10x1",DESKTOP_9x16:"Desktop9x16",DESKTOP_4X1:"Desktop4x1",DESKTOP_4X3:"Desktop4x3",DESKTOP_9X16:"Desktop9x16",MOBILE_4X3:"Mobile4x3",MOBILE_4X3_SLIDESHOW:"Mobile4x3_slideshow",MOBILE_4X3_COUPON:"Mobile4x3_coupon",MOBILE_9X16:"Mobile9x16"},o={bmw:{desktop:{width:475,height:194},mobile:{width:400,height:163}},mini:{desktop:{width:18,height:7},mobile:{width:3,height:2}},mazda:{desktop:{width:32,height:9},mobile:{width:192,height:179}},stellantis:{desktop:{width:16,height:5},mobile:{width:4,height:3}}},l=[{name:"bmw",members:["bmwgroup"]},{name:"mini",members:["minigroup"]},{name:"mazda",members:["mnao"]},{name:"stellantis",members:["cllc","cllcpr","fca","fiat","alfaromeo"]}],r=(new Map([["Desktop10x1","banner"],["Desktop4x1","slideshow"],["Desktop4x3","listing"],["Desktop9x16","vertical"],["Mobile4x3_slideshow","slideshow"],["Mobile4x3_coupon","listing"],["Mobile9x16","vertical"]]),new Map([["short_horizontal_slide","Desktop10x1"],["tall_horizontal_slide","Desktop4x1"],["short_vertical_coupon","Desktop4x3"],["tall_vertical_coupon","Desktop9x16"]])),c=new Map([["short_vertical_slide","Mobile4x3_slideshow"],["short_vertical_coupon","Mobile4x3_coupon"],["tall_vertical_coupon","Mobile9x16"]]),d=(new Map([["banner",["Desktop10x1"]],["slideshow",["Desktop4x1","Mobile4x3_slideshow"]],["listing",["Desktop4x3","Mobile4x3_coupon"]],["vertical",["Desktop9x16","Mobile9x16"]]]),new Map([["Desktop10x1",[10,1]],["Desktop4x1",[4,1]],["Desktop4x3",[4,3]],["Mobile4x3_slideshow",[4,3]],["Mobile4x3_coupon",[4,3]],["Desktop9x16",[9,16
1]],["Mobile9x16",[9,16]]])),p={NO_SHOW:"NO_SHOW",NO_SHOW_ON_SPECIAL:"NO_SHOW_ON_SPECIAL"},m="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",u=["tall_horizontal_slide","tall_vertical_coupon","short_horizontal_slide","short_vertical_coupon","short_vertical_slide"]},790(e,t,n){"use strict";n.d(t,{A:()=>l});var i=n(409);const a={},s={id:""},o={designs:[]},l={account:(e=a,{type:t,payload:n})=>t===i.a.SET_ACCOUNT?{...e,...n}:e,personalized:(e=!1,{type:t,payload:n})=>t===i.a.SET_PERSONALIZED&&void 0!==n?n:e,hasdata:(e=!1,{type:t,payload:n})=>t===i.a.SET_HAS_DATA?n:e,positionData:(e={},{type:t,payload:n})=>t===i.a.SET_POSITION_DATA?{...e,...n}:e,modal:(e={},{type:t})=>{switch(t){case i.a.OPEN_MODAL:return{...e,isModalOpen:!0};case i.a.CLOSE_MODAL:return{...e,isModalOpen:!1};default:return e}},general:(e={},{type:t,payload:n})=>t===i.a.SET_LISTINGS_CAROUSEL_SLIDE_CONDITIONS?{...e,...n}:e,vehicleInfo:(e=!1,{type:t,payload:n})=>t===i.a.SET_VEHICLE_ID?n:e,accountId:(e=s,{type:t,payload:n})=>t===i.a.SET_ACCOUNT_ID?{...e,id:n}:e,designs:(e=o,{type:t,payload:n})=>t===i.a.SET_DESIGNS?{...e,designs:n}:e,variationRef:(e="",{type:t,payload:n})=>t===i.a.SET_VARIATION_REF?n:e}},623(e,t,n){"use strict";n.d(t,{P_:()=>a,Pl:()=>o,SS:()=>c,mq:()=>s,n9:()=>p,nD:()=>d,xq:()=>l});var i=n(409);const a=e=>e===i.aR.DESKTOP_4X3||e===i.aR.MOBILE_4X3_COUPON||e===i.aR.MOBILE_4X3_SLIDESHOW||e===i.aR.DESKTOP_9X16||e===i.aR.MOBILE_9X16,s=(e,t)=>"mazda"===e?(e=>e&&/v9_OEM_MAZDA_0003_V1/i.test(e)?{desktop:{width:1920,height:760},mobile:{width:768,height:958}}:{desktop:{width:32,height:9},mobile:{width:192,height:179}})(t):i.hD[e],o=e=>Boolean(e)&&/mazda/i.test(e),l=e=>{const{id:t,topLevelAccount:n}=e;let a;return i.ll.every(e=>{const{name:i,members:s}=e;return!(s.includes(t)||n&&n.some(e=>s.includes(e)))||(a=i,!1)}),a},r=[{name:"mazda",patterns:["mazda","mnao"]},{name:"bmw",patterns:["bmwgroup","bmw"]},{name:"mini",patterns:["minigroup","mini"]},{name:"stellantis",patterns:["stellantis","cllc","fca","fiat","alfaromeo","alfa romeo","chrysler","dodge","jeep"]}],c=e=>{const t=[];"string"==typeof e&&t.push(e.toLowerCase());const n="undefined"!=typeof window&&window.DDC&&window.DDC.dataLayer;if(n){const e=n.site||{},i=e.design||{},a=e=>Array.isArray(e)?e:[e],s=a(e.franchises);[...1===s.length?s:[],...a(e.profiles),i.variationId].filter(e=>"string"==typeof e).forEach(e=>t.push(e.toLowerCase()))}let i;return r.every(({name:e,patterns:n})=>!t.some(e=>n.some(t=>((e,t)=>{const n=e.indexOf(t);return-1!==n&&(0===n||!/[a-z0-9]/.test(e[n-1]))})(e,t)))||(i=e,!1)),i},d=(e,t)=>{const n=t?i.eU:i.mH;return i.Xq.includes(e)?n.get(e):e},p=(e,t,n,i=1200)=>{if(!e)return{isCouponCaro:e};if(t)return{isCouponCaro:e,slidesToScroll:1};let a;return n?(a=4,i>=992?a=3:i>=764&&(a=2)):a=i>=992?3:2,{isCouponCaro:e,slidesToScroll:a}}},989(e,t,n){"use strict";n.d(t,{lp:()=>a,oD:()=>s});var i=n(409);const a=(e,t,n,a,s)=>{const o=navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("AppleWebKit"),l="true"===a&&o,r=void 0!==e.destinationUrl&&void 0!==e.destinationLabel;return(void 0!==e.additionalDetails||void 0!==e.disclaimer||null!=t&&0!==Object.keys(t).length||r&&n===i.aR.MOBILE_6X1||l||e.couponCode||"true"===s)&&e.type&&e.id},s=e=>"true"===e?"visible":"hidden"},743(e){e.exports={isNode:!1,isBrowser:!0,enforceServerSide:()=>{throw new Error("You are attempting to use code in the browser that has been designated server-side only. Such activity is known by the state of California to lead to usage of the dark side of the Force.")}}},335(e,t,n){e.exports=n(743)},19(e,t,n){e.exports=function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(e),a=n(t);const s=e=>[...new Set(e)].filter(e=>e).join(" ")||null;var o=function(e){var t=e.skeletonClasses,n=e.height,a=e.width,o=e.aspectRatio,l=e.circle,r=e.placeholderImage,c=e.imageAlt,d=e.dataTestId,p={height:n,width:a},m=[];return r||m.push("skeleton-shimmer"),m.push(t),m.push(o||l?"embed-responsive":null),"4by3"===o&&m.push("embed-responsive-4by3"),"1by1"===o&&m.push("embed-responsive-1by1"),l&&m.push("rounded-circle","embed-responsive-1by1"),r?i.default.createElement("img",{src:r,loading:"eager",fetchPriority:"high",className:s(m),style:p,alt:c}):i.default.createElement("span",{"aria-hidden":"true",className:s(m),style:p,"data-testid":d})};
1return o.propTypes={skeletonClasses:a.default.string,height:a.default.string,width:a.default.string,aspectRatio:a.default.string,circle:a.default.bool,placeholderImage:a.default.string,imageAlt:a.default.string,dataTestId:a.default.string},o.defaultProps={skeletonClasses:"",height:"",width:"",aspectRatio:null,circle:!1,placeholderImage:"",imageAlt:"",dataTestId:void 0},o.displayName="Skeleton",o}(n(594),n(935))},252(e,t,n){"use strict";n.d(t,{T2:()=>un,FE:()=>J,tF:()=>Ce,sx:()=>Ee,He:()=>ve});var i=n(935),a=n.n(i),s=n(594),o=n.n(s),l=n(174);const r=HTMLReactParser;var c=n.n(r),d=n(40),p=n(452),m=n(766),u=n(206),g=n.n(u);const h=e=>[...new Set(e)].filter(e=>e).join(" ")||null,f=(0,s.createContext)({}),y=(0,s.createContext)({}),w=(0,s.createContext)({}),b={EVENT:"EVENT",INCENTIVE:"INCENTIVE",PARTS:"PARTS",SERVICE:"SERVICE",VEHICLE:"VEHICLE"},x="short_horizontal",E="short_vertical",v="tall_horizontal",I="tall_vertical",k={DESKTOP_10X1:"Desktop10x1",DESKTOP_9X16:"Desktop9x16",DESKTOP_4X1:"Desktop4x1",DESKTOP_4X3:"Desktop4x3",MOBILE_4X3:"Mobile4x3",MOBILE_4X3_SLIDESHOW:"Mobile4x3_slideshow",MOBILE_4X3_COUPON:"Mobile4x3_coupon",MOBILE_6X1:"Mobile6x1",MOBILE_9X16:"Mobile9x16",DESKTOP_9X16_COUPON:"Desktop9x16_coupon",MOBILE_9X16_COUPON:"Mobile9x16_coupon"},C={bmw:{desktop:{width:475,height:194},mobile:{width:400,height:163}},mini:{desktop:{width:18,height:7},mobile:{width:3,height:2}},mazda:{desktop:{width:32,height:9},mobile:{width:192,height:179}},stellantis:{desktop:{width:16,height:5},mobile:{width:4,height:3}}},_=[{name:"bmw",members:["bmwgroup"]},{name:"mini",members:["minigroup"]},{name:"mazda",members:["mnao"]},{name:"stellantis",members:["cllc","cllcpr","fca","fiat","alfaromeo"]}],T=new Map([["Desktop10x1","banner"],["Desktop10x1_slide","banner_slide"],["Desktop4x1","slideshow"],["Desktop4x3","listing"],["Desktop9x16","vertical"],["Mobile4x3_slideshow","slideshow"],["Mobile4x3_coupon","listing"],["Mobile9x16","vertical"],["Desktop9x16_coupon","vertical_coupon"],["Mobile9x16_coupon","vertical_coupon"]]),N=new Map([["Desktop10x1","short_horizontal_slide"],["Desktop4x1","tall_horizontal_slide"],["Desktop4x3","short_vertical_coupon"],["Desktop9x16","tall_vertical_coupon"],["Mobile4x3_slideshow","short_vertical_slide"],["Mobile4x3_coupon","short_vertical_coupon"],["Mobile9x16","tall_vertical_coupon"]]),S=new Map([["Desktop10x1","short_horizontal"],["Desktop4x1","tall_horizontal"],["Desktop4x3","short_vertical"],["Desktop9x16","tall_vertical"],["Mobile4x3_slideshow","short_vertical"],["Mobile4x3_coupon","short_vertical"],["Mobile9x16","tall_vertical"]]),D=new Map([["Desktop10x1","short_horizontal_srp"],["Desktop9x16","tall_vertical_srp"],["Mobile9x16","tall_vertical_srp"]]),O=new Map([["Desktop9x16",[9,16]],["Desktop10x1",[10,1]],["Desktop4x1",[4,1]],["Desktop4x3",[4,3]],["Mobile4x3_slideshow",[4,3]],["Mobile4x3_coupon",[4,3]],["Mobile6x1",[6,1]],["Mobile9x16",[9,16]],["9x16ImageAspect",[1.13,1]]]),P={NO_SHOW:"NO_SHOW",NO_SHOW_ON_SPECIAL:"NO_SHOW_ON_SPECIAL"},A="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",R="ws-specials",L="ws-specials-preview";function $(e,t,n,i){const a=(0,s.useRef)(t);(0,s.useLayoutEffect)(()=>{a.current=t},[t]),(0,s.useEffect)(()=>{const t=n?.current??window;if(!t||!t.addEventListener)return null;const s=e=>{a.current(e)};return t.addEventListener(e,s,i),()=>{t.removeEventListener(e,s,i)}},[e,n,i])}const z=e=>T.get(e),M=(e,t)=>"ws-inv-listing"===e?D.get(t):N.get(t),q=e=>e===k.DESKTOP_4X3||e===k.MOBILE_4X3||e===k.MOBILE_4X3_COUPON||e===k.MOBILE_4X3_SLIDESHOW,F=e=>e===k.MOBILE_4X3_SLIDESHOW||e===k.MOBILE_4X3_COUPON,B=e=>Boolean(e)&&/mazda/i.test(e),j=e=>{const{id:t,topLevelAccount:n}=e;let i;return _.every(e=>{const{name:a,members:s}=e;return!(s.includes(t)||n&&n.some(e=>s.includes(e)))||(i=a,!1)}),i},V=[{name:"mazda",patterns:["mazda","mnao"]},{name:"bmw",patterns:["bmwgroup","bmw"]},{name:"mini",patterns:["minigroup","mini"]},{name:"stellantis",patterns:["stellantis","cllc","fca","fiat","alfaromeo","alfa romeo","chrysler","dodge","jeep"]}],U=e=>{const t=[];"string"==typeof e&&t.push(e.toLowerCase());const n="undefined"!=typeof window&&window.DDC&&window.DDC.dataLayer;if(n){const e=n.site||{},i=e.design||{},a=e=>Array.isArray(e)?e:[e],s=a(e.franchises);[...1===s.length?s:[],...a(e.profiles),i.variationId].filter(e=>
1"string"==typeof e).forEach(e=>t.push(e.toLowerCase()))}let i;return V.every(({name:e,patterns:n})=>!t.some(e=>n.some(t=>((e,t)=>{const n=e.indexOf(t);return-1!==n&&(0===n||!/[a-z0-9]/.test(e[n-1]))})(e,t)))||(i=e,!1)),i},X=(e="",t="")=>{if(((e="",t="")=>{const n=t.split("=");return new RegExp(`.*[?&]${n[0]}=.*`).test(e)})(e,t)||!t)return e;const n=e&&e.includes("?")?"&":"?";return`${e}${n}${t}`},H=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],W=[b.PARTS,b.SERVICE],K=({couponCode:e,showExpirationChip:t,endDateDisplay:n,expirationDatePreview:i,type:a,labels:s})=>{const o="EXPIRATION_DATE"===t;if(o){if((!n||[P.NO_SHOW,P.NO_SHOW_ON_SPECIAL].includes(n))&&!i)return{chipContent:null,isExpirationChip:o};const e=(e=>{const t=/^(\d{2})\/(\d{2})\/(\d{4})$/.exec(e);if(!t)return e;const[,n,i,a]=t;return`${H[Number(n)-1]} ${Number(i)}, ${a}`})(i||n);return{chipContent:`${s.get("EXPIRES_WS_SPECIALS")} ${e}`,isExpirationChip:o}}return"NONE"!==t&&W.includes(a)&&e?{chipContent:`${s.get("COUPON_CODE")}: ${e}`,isExpirationChip:o}:{chipContent:null,isExpirationChip:o}},G=(e,t,n)=>{let i=null;switch(t){case P.NO_SHOW:i=e===P.NO_SHOW_ON_SPECIAL?`<div>${n.get("NO_EXPIRATION_DATE")}</div>`:`<div>${n.get("START_DATE_END_DATE_NO_EXPIRATION").replace("START_DATE",e)}</div>`;break;case P.NO_SHOW_ON_SPECIAL:i=e===P.NO_SHOW_ON_SPECIAL?"<div />":`<div>${n.get("OFFER_VALID_ON")} ${e}</div>`;break;default:i=e===P.NO_SHOW_ON_SPECIAL?`<div>${n.get("EXPIRES_WS_SPECIALS")} ${t}</div>`:`<div>${n.get("OFFER_ONLY_VALID_THROUGH_DATES").replace("START_DATE",e).replace("END_DATE",t)}</div>`}return i},Y=e=>{let t=[];return"string"==typeof e&&(t=e.split(",").map(e=>e.trim()).filter(e=>e)),t},Q=e=>{let t=0,n=0;const i=e.length;for(;n<i;)t=(t<<5)-t+e.charCodeAt(n++)|0;return t.toString()},J=(e,t,n,i,a,s="")=>{const{autoGeneratedSpecialLimit:o,enablePersonalization:r,limitByInventory:c,limitByPromotionType:d,limitByTags:p,limitByTagsType:m,"listing.config.id":u,displayLimit:g,excludeModelOffersWithoutPhotos:h,aspectRatio:f,enableCarousel:y,specialCount:w}=e,b=(0,l.useFlags)(),{widgetName:x}=(0,l.useRequestData)(),E=b["account-info-for-specials"];let v=f;x===R&&(v={[k.DESKTOP_9X16]:"Desktop9x16_coupon",[k.MOBILE_9X16]:"Mobile9x16_coupon",[k.DESKTOP_10X1]:"Desktop10x1_slide"}[f]||v);const I=v===k.DESKTOP_4X3||v===k.MOBILE_4X3_COUPON||v===k.DESKTOP_9X16_COUPON||v===k.MOBILE_9X16_COUPON;let C=w||g;"0"===g&&(C=w||"30"),"false"!==y||I||(C="1");let _="No Limit"===o?"30":o;return"false"===o&&(_="3"),{promoRO:{accountId:t,deviceType:a,locale:n,autoGeneratedSpecialLimit:_,types:Y(d),placements:z(v)},filterRO:{limitByInventory:c,limitByTags:Y(p),limitByTagsType:m,listingConfigId:u,specialCount:C,excludeModelOffersWithoutPhotos:h,vehicleId:s},eo:{pixallId:i,enablePersonalization:r},removeVcdaRequest:"true",requireAccountInfo:`${E}`}},Z={detailsButtonData:a().shape({id:a().string,type:a().string}),title:a().string},ee={accountId:a().string.isRequired,autoGenerated:a().bool.isRequired,additionalDetails:a().string,condition:a().string,couponCode:a().string,ctaConfig:a().shape({type:a().string.isRequired,openInNewTab:a().bool,dynamicParams:a().shape({})}),customAssets:a().shape({}).isRequired,description:a().string,destinationLabel:a().string,destinationUrl:a().string,disclaimer:a().string,discountType:a().string,discountValue:a().oneOfType([a().number,a().string,a().node]),endDate:a().string.isRequired,endDateDisplay:a().string,expirationDatePreview:a().string,globalVehicleId:a().string,globalVehicleTrimIds:a().arrayOf(a().string),id:a().any.isRequired,imageUrl:a().string,incentiveData:a().shape({applicableBodyStyle:a().string,applicableModel:a().string,applicableTrims:a().string,applicableYear:a().number,applicableCondition:a().string,applicableMake:a().string,conditional:a().bool,disclaimer:a().string,globalVehicleTrimIds:a().arrayOf(a().string),incentive:a().shape({aprTerms:a().arrayOf(a().shape({term:a().oneOfType([a().number,a().string]),value:a().oneOfType([a().number,a().string])})),bestAprTerm:a().shape({term:a().oneOfType([a().number,a().string]),value:a().oneOfType([a().number,a().string])}),lenderName:a().string,type:a().string}),incentiveEffectiveDate:a().string,incentiveExpirationDate:a().string,incentiveId:a().string,manufacturerOffer:a().bool,metaData:a().bool,offerDetails:a().string,
1shortTitle:a().string,title:a().string,trim:a().shape({}),unique_id:a().string}),incentiveId:a().string,inventoryCount:a().number,locked:a().bool,mandatory:a().bool,oemId:a().string,placement:a().arrayOf(a().shape({enabled:a().bool,i18n:a().shape({}),location:a().string})),showExpirationChip:a().string,startDate:a().string.isRequired,startDateDisplay:a().string,tags:a().array,title:a().string,type:a().string.isRequired,userDefinedPriority:a().number,vehicleImages:a().arrayOf(a().string),year:a().number},te={promoIndex:a().number,ctaButtonClasses:a().oneOfType([a().arrayOf(a().string),a().string]),isShowAppleWallet:a().bool},ne={applicableVehicle:a().string,promoExternal:a().shape(ee),style:a().shape({}),promoIndex:a().number};function ie(e,t="en_US",n=!1){if("undefined"==typeof Intl||!Intl.NumberFormat)return e.toString();const i={style:"currency",currency:t.length&&t.indexOf("CA")>-1?"CAD":"USD"};let a;return"number"!=typeof e?(console.warn("formatCurrency: unexpected currency value: ".concat(e," of type ").concat(typeof e)),""):(n?a=e:(a=Math.round(e),i.minimumFractionDigits=0),new Intl.NumberFormat(t.replace("_","-"),i).format(a))}function ae(e,t="en_US",n={}){if("undefined"==typeof Intl||!Intl.DateTimeFormat)return e.toString();let i;return e instanceof Date?i=e:("string"==typeof e||Number.isInteger(e))&&(i=new Date(e)),i&&Number.isFinite(i.getTime())?new Intl.DateTimeFormat(t.replace("_","-"),n).format(i):""}const se=[52,325,520,768,1200,1600,2e3],oe=/(?:^|\/\/)(pictures|images|static)(-np)?\.([a-z0-9-]+\.)*dealer\.com(?=[/:?#]|$)/,le=e=>oe.test(e)||/\/static\/assets\//.test(e),re=(e="",t=0,n=void 0)=>{const i={src:"",width:0};if(t>0)if(i.src=e,le(e)&&(n>0||null==n)){const a=n||t;i.width=((e=0)=>se.reduce((t,n)=>e>t?n:t))(a),i.src=X(e,`impolicy=downsize_bkpt&w=${i.width}`)}else le(e)&&0===n&&(i.width=1200,i.src=X(e,"impolicy=downsize_bkpt&w=1200"));return i},ce=({background:e,width:t,bkgImageWidth:n,croppedBackgroundImage:i})=>{if(!e)return{backgroundColor:"var(--color-neutral-1000)"};const a=re(i||e.backgroundImage,t,n);return{backgroundColor:`var(${e.backgroundColor||"--color-neutral-1000"})`,backgroundImage:`url("${a.src}")`,backgroundPosition:"center",backgroundSize:"cover",overflow:"hidden"}},de=(e,t)=>e/new Map([[x,5],[E,1],[v,2],[I,.75]]).get(t),pe=(e,t,n)=>"foreground"===n?e?.[t]?.croppedForegroundImage:"background"===n?e?.[t]?.croppedBackgroundImage:void 0,me=(e,t,n,i,a,s)=>{const l=i.get("OFF"),r="true"===a;let c,d;const p=(e,t)=>[t.slice(0,e),t.slice(e)];switch(t){case"PERCENT":d=`${n}% ${l}`;break;case"AMOUNT":{c=ie(n,e,!0);const t=p(1,c);d=o().createElement("div",null,o().createElement("sup",{style:r?{fontSize:"38%",top:"-1em"}:null},t[0]),t[1],` ${l}`)}break;case"FIXED":{c=ie(n,e,!0);const t=p(1,c);d=o().createElement("div",null,o().createElement("sup",{style:r?{fontSize:"38%",top:"-1em"}:null},t[0]),t[1])}break;case"STARTING_AT":{c=ie(n,e,!0);const t=p(1,c);d=o().createElement("div",{style:s},o().createElement("p",{style:s?.labelStyles},i.get("STARTING_AT_SCM_UI")),o().createElement("div",{style:{marginLeft:"4px"}},o().createElement("sup",{style:r?{fontSize:"38%",top:"-1em"}:null},t[0]),t[1]))}break;default:d=null}return d},ue=e=>c()(`${e.replace(/\n/g,"<br>")}`),ge=(e,t)=>{let n=[];return e?(n=e.map(e=>`<div>${t.get(e.label)}: ${e.number}</div>`),n?.join(" ")):""},he=(e,t)=>{if("string"!=typeof e)return e;const n="true"===t?"reduced-dollar-sign":"";let i=e;const a=e.split("$"),s=o().createElement("sup",{className:n},"$");if(a.length>1){const e=1,t=[...a];let n=0;for(let i=0;i<Math.floor(a.length/e-1);i++)n+=e,t.splice(n+i,0,s);i=o().createElement(o().Fragment,null,t)}return i},fe=(e,t)=>({title:t>0?e.get("NEW_ARRIVAL"):e.get("NO_MATCHING_VEHICLES"),subtitle:t>0?e.get("PHOTO_COMING_SOON"):null}),ye=({croppedBackgroundStyles:e,defaultStyles:t,sizes:n,placementName:i})=>((e,t)=>{if(!e||!t)return!1;const n=e[t];if(!n||!n.backgroundImageCoordinates)return!1;const i=n.backgroundImageCoordinates;return Object.keys(i).length>0})(n,i)?e:t,we=({condition:e,label:t,url:n,inventoryCount:i,isCustomAsset:a,labels:s,sitemap:o,type:l})=>{let r,c,d,p,m,u,g;switch(l){case b.EVENT:c="default"===t?"":s.get(t),r="default"===n?"":n;break;case b.PARTS:case b.SERVICE:d="COMPOSER_PROMOTION_LEAD",p=s.get("REQUEST_MORE_INFO"),m=o.get("PROMOTIONS_FORM_FRAGMENT"),"/page-un
1available.htm"!==n||m||(l===b.SERVICE?m=o.get("SERVICE_DEFAULT"):l===b.PARTS&&(m=o.get("PARTS_DEFAULT"))),c=t&&"default"!==t?s.get(t):p,r=n&&"default"!==n&&"/page-unavailable.htm"!==n?n:m;break;case b.VEHICLE:case b.INCENTIVE:p=s.get("VIEW_[NUMBER]_QUALIFYING_VEHICLE(S)"),p=p.replace("[number]",`${i}`),m="CPO"===e?o.get("INVENTORY_LISTING_DEFAULT_AUTO_USED"):o.get("INVENTORY_LISTING_DEFAULT_AUTO_NEW"),c=t&&"default"!==t&&"VIEW_[NUMBER]_QUALIFYING_VEHICLE(S)"!==t?s.get(t):p,r=n&&"default"!==n?n:m}return"undefined"!=typeof window&&Boolean(window.Cookies)&&(u=window.Cookies.get("t3website")||null),u&&(g=(new DOMParser).parseFromString(u,"text/xml").getElementsByTagName("cookieguid")[0].childNodes[0].nodeValue,r=n.replace("[fordSessionId]",g)),n.includes("[fordSessionId]")&&!g&&(r=n.replace("[fordSessionId]","")),{url:r,label:c,isFullSlideLink:a&&r}},be=(e,t,n)=>{let i="0px";if("true"===e&&"1"!==t)switch(n){case k.MOBILE_6X1:case k.MOBILE_4X3_SLIDESHOW:i="48px";break;default:i="0px"}return`calc(100% + ${i})`},xe=(e,t)=>{if("string"!=typeof e||0===e.length)throw new Error(`${t} must be a non-zero length string. Got: ${e}.`)},Ee=e=>{if("undefined"!=typeof window){const t=window.DDC||{};"specialsEvent"===e.event&&t.pushToGtmDataLayer?t.pushToGtmDataLayer(e):((e,t,n)=>{xe(e,"Widget name"),xe(t,"Widget id");if("undefined"!=typeof window){const{DDC:i={}}=window,a={action:"clicked",element:void 0,elementCTA:void 0,event:"widgetUserEvent",fieldValue:void 0,formEventId:void 0,formId:void 0,nonInteractive:!1,sourceData:void 0,value:void 0,widgetId:t,widgetName:e,widgetState:"default"};i.fireTrackingEvent&&i.fireTrackingEvent({result:null!=n&&n.result?null==n?void 0:n.result:void 0,...a,...n}),i.fireTrackingEvent}})(e.widgetName,e.windowId,e)}},ve=(e,t=null)=>{if(null===localStorage.getItem(e)){const n=t||Math.round(globalThis.performance.now());localStorage.setItem(e,n),((e,t)=>{"undefined"!=typeof window&&window.newrelic&&"object"==typeof window.newrelic&&window.newrelic.setCustomAttribute(e,t)})(e,n)}},Ie=e=>{let{primaryText:t,primarySuffix:n,secondaryText:i,tertiaryText:a}=e;try{const e=JSON.parse(t);e&&"object"==typeof e&&(t=e.value||"",n=e.suffix||"")}catch{}try{const e=JSON.parse(i);e&&"object"==typeof e&&(i=e.value||"",a=e.tertiary||"")}catch{}return{primaryText:t,primarySuffix:n,secondaryText:i,tertiaryText:a}},ke=(e,t)=>e&&{...e,incentiveId:e?.id,error:null,condition:e?.applicableCondition,effectiveDate:ae(e?.incentiveEffectiveDate,t,{timeZone:"UTC"}),expirationDate:ae(e?.incentiveExpirationDate,t,{timeZone:"UTC"}),make:e?.applicableMake,specific:{_type:e?.incentive.type,...e?.incentive},vehicleTrims:[{vehicleId:e?.globalVehicleId,vehicleTrimIds:e?.globalVehicleTrimIds}]},Ce=(e,t)=>{if(t&&(!Array.isArray(t)||0!==t.length))return t.filter(t=>t.id===e.designConfigId)[0]},_e=({title:e,subtitle:t,containerClasses:n=[],containerStyles:i={}})=>{const{isMobile:a}=(0,s.useContext)(w),l=h(["d-flex","flex-column","justify-content-center","align-items-center","font-weight-bold","overflow-hidden","bg-white",a?"no-image-container-mobile":"no-image-container",...n]);return o().createElement("div",{className:l,style:{...i,zIndex:1}},o().createElement("img",{className:h(["no-image-picture"]),src:"/static/assets/images/specials/no-image.svg",alt:""}),o().createElement("h2",{className:h(["text-dark","text-center"])},e,t?o().createElement("div",{className:h(["text-muted"])},t):null))};_e.propTypes={title:a().string,subtitle:a().string,containerClasses:a().arrayOf(a().string),containerStyles:a().shape({})},_e.defaultProps={title:"",subtitle:"",containerClasses:[],containerStyles:{}};const Te=({alt:e,className:t=null,src:n,style:i={},width:a})=>{const{widgetName:r}=(0,l.useRequestData)(),[c,d]=(0,s.useState)(0);(0,s.useEffect)(()=>{ve(`${r}-image-container-starting`)},[]);const p=(0,s.useMemo)(()=>{const e=re(n,a>c?a:c);return d(e.width),e.src},[n,a,c]);return o().createElement("img",{className:t,style:i,alt:e,onLoad:()=>{ve(`${r}-first-promo-img-load`)},src:p})};Te.propTypes={alt:a().string.isRequired,className:a().string,src:a().string.isRequired,style:a().shape({}),width:a().number.isRequired},Te.defaultProps={className:"",style:{}};var Ne=(0,s.memo)(Te,function(e,t){return JSON.stringify(e)===JSON.stringify(t)});const Se={[k.DESKTOP_10X1]:.75,[k.DESKTOP_4X1]:.85,[k.DESKTOP_4X3]:.9},De=({urls:e,className:t,padding:n,containerWidth:i,aspectRatio:a,overlay:l})=>{const r=((e,t)=>{const n="slant"===t?.style;switch(e){case k.DESKTOP_4X1:return n?.35:.4;case k.DESKTOP_10X1:return.3;default:return 1}})(a,l),c=i*r,d=c*(2/3),p=c*(1/3),m=(0,s.useRef)(null),[u,g]=(0,s.use
1State)(d),[h,f]=(0,s.useState)(null),[y,w]=(0,s.useState)(p),[b,x]=(0,s.useState)(null),[E,v]=(0,s.useState)(null);(0,s.useEffect)(()=>{let t=!1;return(e=>Promise.all(e.map(e=>new Promise(t=>{const n=new Image;n.onload=()=>t({width:n.naturalWidth,height:n.naturalHeight}),n.onerror=()=>t({width:1,height:1}),n.src=e}))))(e).then(e=>{if(t)return;const n=m.current?.clientHeight||null,i=((e,t,n)=>{const i=n[0].width/n[0].height,a=n[1].width/n[1].height,s=n[2].width/n[2].height,o=1/a+1/s,l=(e-4-4*i)/(i*o+1),r=t?(t-4)/o:l,c=Math.max(0,Math.min(l,r));return{leftWidth:i*(c*o+4),leftHeight:c*o+4,rightWidth:c,rightImg1Height:c/a,rightImg2Height:c/s}})(c,n?n*(Se[a]||1):null,e);g(i.leftWidth),f(i.leftHeight),w(i.rightWidth),x(i.rightImg1Height),v(i.rightImg2Height)}),()=>{t=!0}},[e,c,a]);const I={width:"100%",height:"100%",display:"block",objectFit:"cover"};return o().createElement("div",{ref:m,className:"collage-layout-wrapper",style:{display:"flex",gap:"4px",height:"100%",justifyContent:"center",alignItems:"center",padding:n,overflow:"hidden"}},o().createElement("div",{style:{width:`${u}px`,height:h?`${h}px`:"100%",overflow:"hidden",minWidth:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"}},o().createElement(Ne,{alt:"",key:Q(e[0]),src:e[0],className:t,style:I,width:Math.round(u)})),o().createElement("div",{style:{width:`${y}px`,minWidth:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"4px"}},o().createElement("div",{style:{height:b?`${b}px`:"50%",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white",width:"100%"}},o().createElement(Ne,{alt:"",key:Q(e[1]),src:e[1],className:t,style:I,width:Math.round(y)})),o().createElement("div",{style:{height:E?`${E}px`:"50%",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white",width:"100%"}},o().createElement(Ne,{alt:"",key:Q(e[2]),src:e[2],className:t,style:I,width:Math.round(y)}))))};De.propTypes={urls:a().arrayOf(a().string).isRequired,className:a().string,padding:a().string,containerWidth:a().number.isRequired,aspectRatio:a().string,overlay:a().shape({style:a().string,inset:a().bool})},De.defaultProps={className:null,padding:"0",aspectRatio:null,overlay:null};const Oe=({urls:e,className:t,padding:n,containerWidth:i})=>{const a=Math.round(i/2);return o().createElement("div",{className:"two-layout-wrapper",style:{display:"flex",gap:"4px",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",boxSizing:"border-box",padding:n,overflow:"hidden"}},e.map((e,n)=>{return o().createElement("div",{key:Q(e),style:{flex:"1 1 50%",minWidth:0,overflow:"hidden",display:"flex",alignItems:"center",height:"100%"}},o().createElement(Ne,{alt:"",src:e,className:t,style:(i=n,{height:"100%",width:"auto",maxWidth:"100%",maxHeight:"100%",display:"block",objectFit:"contain",marginLeft:0===i?"auto":void 0,marginRight:1===i?"auto":void 0}),width:a}));var i}))};Oe.propTypes={urls:a().arrayOf(a().string).isRequired,className:a().string,padding:a().string,containerWidth:a().number.isRequired},Oe.defaultProps={className:null,padding:"0"};const Pe="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ae={ONE:"one",TWO:"two",THREE:"three",TAPER:"taper",COLLAGE:"collage"},Re=Ae.ONE,Le=e=>{switch(e){case Ae.TWO:return 2;case Ae.THREE:case Ae.TAPER:case Ae.COLLAGE:return 3;default:return 1}},$e=(e,t,n)=>{const i=t&&"string"==typeof t&&""!==t.trim(),a=(i?[t]:e||[]).length;return 0!==a&&!i&&(a<=2||!!n)},ze=(e,t,n={})=>t?[k.DESKTOP_4X3,k.MOBILE_4X3].includes(e)?n["4x3"]||"8px 8px 4px 8px":[k.DESKTOP_4X1].includes(e)?n["4x1Float"]||"8px 8px 8px 0":[k.DESKTOP_9X16,k.MOBILE_9X16,k.DESKTOP_9X16_COUPON,k.MOBILE_9X16_COUPON].includes(e)?n["9x16Float"]||"8px 0":[k.DESKTOP_10X1].includes(e)?"4px":"0":"0",Me=(e,t,n=!1,i=0,a={},s=null,l=!1,r=null,c=null,d=null,p=null,m=!1)=>{const u=r&&"string"==typeof r&&""!==r.trim(),g=u?[r]:e||[];let h=g,f=null;if(!u&&d){f=((e,t)=>!e||t<=0?Re:t>=Le(e)?e:t>=2?Ae.TWO:Re)(d,g.length);const e=Le(f);g.length>e&&(h=g.slice(0,e))}const y=h.length,w=!!m;if(!y||0===y){const{title:e="",subtitle:t="",containerStyles:n={},containerClasses:i=[]}=a;
1return o().createElement(_e,{title:e,subtitle:t,containerClasses:i,containerStyles:n})}const b=h&&h.map((e,t)=>{const n=(e=>{let t="25";return 1===y&&(t=i||100),2===y&&(t=45),3===y&&f===Ae.TAPER?t=[28,38,28][e]||25:3===y&&f===Ae.COLLAGE?t=100:3===y&&f===Ae.THREE?t=30:3===y&&1===e&&(t=l?30:35),t})(t),a=(e=>{const t={};if(u){switch(t.objectFit="contain",t.maxWidth="100%",t.maxHeight="100%",c){case k.DESKTOP_9X16:case k.MOBILE_9X16:case k.DESKTOP_9X16_COUPON:case k.MOBILE_9X16_COUPON:t.width="80%";break;case k.DESKTOP_4X1:case k.DESKTOP_10X1:if("block"!==p?.style){t.width="77%";break}t.width="65%";break;default:t.width="40%"}return t}if(1===y&&(t.margin="auto",t.zIndex="50",t.objectFit="contain",t.width="100%",t.height="100%"),2===y&&(t.zIndex="50"),3===y)if(f===Ae.TAPER){switch(e){case 0:case 2:t.zIndex="75",t.height="80%";break;case 1:t.zIndex="100",t.height="100%"}t.alignSelf="center"}else if(f===Ae.COLLAGE)t.width="100%",t.height="100%",t.objectFit="contain",t.display="block";else if(f===Ae.THREE)t.height="100%",t.width="auto",t.objectFit="contain",t.flex="0 1 auto",t.minWidth="0";else switch(e){case 0:t.margin="auto 0 auto 15px",t.zIndex="50";break;case 1:t.zIndex="100",t.margin="auto 5px";break;case 2:t.margin="auto 15px auto 0",t.zIndex="50"}return y>1&&f===Ae.TAPER&&(t.filter="drop-shadow(0 0 5px rgba(0, 0, 0, 0.40))"),t.objectFit="contain",t.maxHeight="100%",t})(t);return u||1===y||f===Ae.COLLAGE||f===Ae.THREE||(f===Ae.TAPER?a.maxWidth=`${n}%`:a.width=`${n}%`),o().createElement(Ne,{alt:"",key:Q(e),src:e,className:s,style:a,width:10*n})});return 1!==y||u?2===y?o().createElement(Oe,{urls:h,className:s,padding:ze(c,w),containerWidth:t}):f===Ae.THREE&&3===y?o().createElement("div",{className:"three-layout-wrapper",style:{display:"flex",gap:"4px",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",overflow:"hidden",boxSizing:"border-box",padding:ze(c,w)}},b):f===Ae.TAPER&&3===y?o().createElement("div",{className:"taper-layout-wrapper",style:{display:"flex",gap:"1px",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",overflow:"hidden",boxSizing:"border-box",padding:ze(c,w)}},b):f===Ae.COLLAGE&&3===y?o().createElement(De,{urls:h,className:s,padding:ze(c,w,{"4x1Float":"0 8px 0 0","9x16Float":"8px 0 4px 0","9x16":"8px 8px 4px 8px"}),containerWidth:t,aspectRatio:c,overlay:p}):b:o().createElement("div",{className:"one-layout-wrapper",style:{width:"100%",height:"100%",overflow:"hidden",boxSizing:"border-box",padding:ze(c,w)}},b)},qe=(e,t,n,i="",a=!1,s=0,l={},r=!1)=>{let c,d=null;if(e)return null;if(!t||""===t){const{title:e="",subtitle:t="",containerClasses:n=[],containerStyles:i={}}=l;return o().createElement(_e,{title:e,subtitle:t,containerClasses:n,containerStyles:i})}return t&&(c=s>0?s:a?"50":"65",d=o().createElement(Ne,{alt:i,className:"incentive-image",src:t,style:{margin:r?"auto auto 25px":"auto",width:`${c}%`},width:Math.floor(n*c/100)})),d},Fe=({ratio:e,isVertical:t,color:n,opacity:i})=>({clipPath:t?`polygon(100% 0%, 100% 100%, 0% 100%, 0% ${"9x16"===e?"20px":"8%"})`:"polygon(100% 0%, 100% 100%, 3% 100%, 0% 0%)",overlayStyle:` linear-gradient(-${"4x3"===e?2:4}deg, color-mix(in srgb, var(${n}) ${100*i-5}%, transparent) ${"9x16"===e?"calc(100% - 80px)":"87%"}, color-mix(in srgb, var(${n}) ${100*i}%, transparent) ${"9x16"===e?"calc(100% - 40px)":"90%"}, transparent 100%, color-mix(in srgb, var(${n}) ${50*i}%, transparent) 97%, transparent 98%)`}),Be=({overlay:e,useContentColorMix:t,isReverse:n,isVertical:i,insetVisible:a,ratio:s})=>{if(void 0!==e){let l,r,c="";if("block"!==e.style&&(r=((e,t,n,i)=>({fade:{horizontal:{default:"to right",reverse:"to right"},vertical:{default:"to bottom",reverse:"to top"}},slant:{horizontal:{default:"257deg",reverse:"98deg"},vertical:{default:q(e)?"-2deg":"-4deg",reverse:"89deg"}}}[t][n][i]))(s,e.style,i?"vertical":"horizontal",n?"reverse":"default")),"fade"===e.style)l=t?`linear-gradient(${r}, transparent, transparent 0%, color-mix(in srgb, var(${e.color}) ${100*e.opacity}%, transparent) 6%, color-mix(in srgb, var(${e.color}) ${100*e.opacity}%, transparent)`:`linear-gradient(${r}, transparent, transparent 0%, var(${e.color}) 6%, var(${e.color}) 100%)`;else if("slant"===e.style)if(s===k.DESKTOP_4X1)c=i?"polygon(100% 0%, 100% 100%, 0% 100%, 0% 8%)":"polygon(100% 0%, 100% 100%, 3% 100%, 0% 0%)",l=t?`linear-gradient(${r}, color-mix(in srgb, var(${e.color}) ${100*e.opacity}%, transparent) 82%,\n\t\t\t\t\t\t\tcolor-mix(in srgb, var(${e.color}) ${50*e.opacity}%, transparent) 0%,\n\t\t\t\t\t\t\tcolor-mix(in srgb, var(${e.color}) ${50*e.opacity}%, transparent) 88%,\n\t\t\t\t\t\t\ttransparent 0%)`:`linear-gradient(${r}, var(${e.color}) ${i?97:94}%,\n\t\t\t\t\t\t\tcolor-mix(in srgb, var(${e.color}) 40%, transparent) 0%,\n\t\t\t\t\t\t\tcolor-mix(in srgb, var(${e.color}) 98%, transparent) ${i?100:98}%,\n\t\t\t\t\t\t\ttransparent 0%)`;else if(q(s)){const{clipPath:t,overlayStyle:n}=Fe({ratio:"4x3",isVertical:i,color:e.color,opacity:e.opacity});c=t,l=n}else if((o=s)===k.DESKTOP_9X16||o===k.DESKTOP_9X16_COUPON||o===k.MOBILE_9X16||o===k.MOBILE_9X16_COUPON){const{clipPath:t,overlayStyle:n}=Fe({ratio:"9x16",isVertical:i,color:e.color,opacity:e.opacity});c=t,l=n}else c=i?"polygon(100% 0%, 100% 100%, 0% 100%, 0% 8%)":"polygon(100% 0%, 100% 100%, 3% 100%, 0% 0%)",l=t?`linear-gradient(${r}, color-mix(in srgb, var(${e.color}) ${100*e.opacity}%, transparent) ${i?"89%":"94%"},\n\t\t\t\t\t\t\tcolor-mix(in srgb, var(${e.color}) ${50*e.opacity}%, transparent) 0%,\n\t\t\t\t\t\t\tcolor-mix(in srgb, var(${e.color}) ${50*e.opacity}%, transparent) 98%,\n\t\t\t\t\t\t\ttransparent 0%)`:`linear-gradient(${r}, var(${e.color}) ${i?97:94}%,\n\t\t\t\t\t\t\tcolor-mix(in srgb, var(${e.color}) 40%, transparent) 0%,\n\t\t\t\t\t\t\tcolor-mix(in srgb, var(${e.color}) 98%, transparent) ${i?100:98}%,\n\t\t\t\t\t\t\ttransparent 0%)`;else l=t?`color-mix(in srgb, var(${e.color}) ${100*e.opacity}%, transparent)`:`var(${e.color})`;const d={backgroundImage:"block"!==e.style?l:"",backgroundColor:"block"===e.style?l:"",backdropFilter:e.blur?"blur(3px)":"",backgroundClip:e.inset&&a?"content-box":"",clipPath:c};return t?d:{background:l,opacity:e.opacity}}return{};var o},je=e=>e>
1.6?"text-dark":"text-light",Ve=(e,t)=>{const n=((e,t)=>{if(!e||"object"!=typeof e)return;const{sizes:n}=e,i=t&&S instanceof Map?S.get(t):void 0,a=e=>{if(!e?.brightnessScore)return;const t=e.brightnessScore;return"number"==typeof t&&Number.isFinite(t)?t:void 0};if(i&&n&&n[i]){const e=a(n[i]);if(void 0!==e)return e}const s=a(e);return void 0!==s?s:void 0})(e,t),i=((e,t)=>{if(!e||"object"!=typeof e)return;const n=e.overlay,{sizes:i}=e,a=t&&S instanceof Map?S.get(t):void 0;return a&&i?.[a]?.overlay?{...n,...i[a].overlay}:n})(e,t),a=((e,t)=>{if(!e||"object"!=typeof e)return null;const n=Object.values(Ae),{sizes:i}=e,a=t&&S instanceof Map?S.get(t):void 0;if(a&&i?.[a]?.thumbnailLayout){const e=i[a].thumbnailLayout;if(n.includes(e))return e}return e.thumbnailLayout&&n.includes(e.thumbnailLayout)?e.thumbnailLayout:null})(e,t);return{background:e.background,overlay:i,textColor:void 0!==n?je(n):"text-light",foreground:e.foregroundImage,sizes:e.sizes,thumbnailLayout:a,logoUrl:e.logoUrl,noForegroundImage:e.noForegroundImage}},Ue=[".mp4",".webm",".ogg",".ogv",".mov"],Xe=(e="")=>e&&"string"==typeof e?e.split("|")[0].trim():"",He=(e="")=>{if(!e)return!1;const t=Xe(e).split("?")[0].toLowerCase();return Ue.some(e=>t.endsWith(e))},We=({pushOutsiderCtaPrint:e,promoIndex:t,accountId:n="",isShowAppleWallet:i})=>{const a=(0,s.useContext)(f),{personalized:r,isCustomAsset:c,promo:d}=(0,s.useContext)(w),{widgetName:p,windowId:m,locale:u}=(0,l.useRequestData)(),{aspectRatio:g}=(0,s.useContext)(y),h=(0,l.useLabels)(),b=(0,l.useFlags)(),x=g===k.DESKTOP_4X1||g===k.MOBILE_4X3_SLIDESHOW,E=j(a),v=x&&"mini"===E,I=x&&"bmw"===E;return o().createElement("div",{className:"my-3 py-1 cta-print",role:"none",onClick:async()=>{const a=await(async({accountId:e,flags:t})=>{const n={accountId:e,flags:t,retries:t["wsm-account-data-distributor-retries"]};try{const e=await fetch("/api/widget/ws-specials/account-data-distributor",{method:"POST",headers:{"content-type":"application/json;charset=UTF-8"},body:JSON.stringify({parameters:n})}),t=await e.json();return t&&t.accountDataDistributor||{}}catch(e){return console.error("Error fetching account data distributor:",e),{}}})({accountId:n,flags:b});-1!==window.navigator.userAgent.indexOf("CriOS")?(({promo:e,labels:t,locale:n,accountDataDistributor:i,isDisclosure:a})=>{const s=window.open("","_blank"),{phoneNumbers:o=[],dealerInfo:{name:l="",state:r="",postalCode:c="",address1:d="",address2:p="",address3:m="",city:u=""}={}}=i;let g="";const{title:h,disclaimer:f,startDateDisplay:y,endDateDisplay:w,type:b,discountType:x,discountValue:E,description:v,additionalDetails:I,couponCode:k,incentiveId:C,incentiveData:_}=e;let T="";["PARTS","SERVICE"].includes(b)&&"NO_DISCOUNT"!==x&&(g=((e,t,n,i,a,s)=>{const o=i.get("OFF"),l=!1;let r,c;const d=(e,t)=>[t.slice(0,e),t.slice(e)];switch(t){case"PERCENT":c=`${n}% ${o}`;break;case"AMOUNT":{r=ie(n,e,!0);const t=d(1,r);c=`<div>\n\t\t\t\t\t\t<sup style=null>\n\t\t\t\t\t\t\t${t[0]}\n\t\t\t\t\t\t</sup>\n\t\t\t\t\t\t${t[1]}\n\t\t\t\t\t\t${o}\n\t\t\t\t\t</div>`}break;case"FIXED":{r=ie(n,e,!0);const t=d(1,r);c=`<div>\n\t\t\t\t\t\t<sup style=null>\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t${t[0]}\n\t\t\t\t\t\t</sup>\n\t\t\t\t\t\t${t[1]}\n\t\t\t\t\t</div>`}break;case"STARTING_AT":{r=ie(n,e,!0);const t=d(1,r);c=`<div\n\t\t\t\t\t\t\tstyle={${s}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p style={${s?.labelStyles}}>\n\t\t\t\t\t\t\t\t${i.get("STARTING_AT_SCM_UI")}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\tmarginLeft: '4px',\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<sup\n\t\t\t\t\t\t\t\t\tstyle={\n\t\t\t\t\t\t\t\t\t\t${l}\n\t\t\t\t\t\t\t\t\t\t\t? { fontSize: '38%', top: '-1em' }\n\t\t\t\t\t\t\t\t\t\t\t: null\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t${t[0]}\n\t\t\t\t\t\t\t\t</sup>\n\t\t\t\t\t\t\t\t${t[1]}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`}break;default:c=null}return c})(n,x,E,t,0,{display:"flex",alignItems:"",justifyContent:"",fontSize:"14px",labelStyles:{marginBottom:"0px"}})),"INCENTIVE"===b&&C&&Object.keys(_).length&&(T=`${t.get("OFFER_ONLY_VALIDATE")} ${ae(_?.incentiveEffectiveDate,n,{timeZone:"UTC"})} ${t.get("THROUGH")}
1 ${ae(_?.incentiveExpirationDate,n,{timeZone:"UTC"})}`);const N="INCENTIVE"!==b?h:_?.title,S="INCENTIVE"===b&&_?.offerDetails,D="INCENTIVE"!==b?f:_?.disclaimer,O="INCENTIVE"===b&&_.applicableTrims?_.applicableTrims:"",P="INCENTIVE"!==b?G(y,w,t):T;s.document.write("<html>\n\t<head>\n\t\t<title>Print</title>\n\t\t<style>\n\n\t\t\t.print-view-ios {\n\t\t\t\tfont-family: Arial\n\t\t\t\tpadding: 60px 40px 40px 40px;\n\t\t\t}\n\n\t\t\t.start-end-date {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 12.25px;\n\t\t\t\tline-height: 18px;\n\t\t\t}\n\t\t\t.heading,\n\t\t\t.discount,\n\t\t\t.applicable-trims,\n\t\t\t.disclaimer-title {\n\t\t\t\tfont-weight: 600;\n\t\t\t\tfont-size: 17.5px;\n\t\t\t\tline-height: 22px;\n\t\t\t\tpadding-top: 8px;\n\t\t\t\tpadding-bottom: 4px;\n\t\t\t}\n\t\t\t.heading {\n\t\t\t\tpadding: 8px 0px;\n\t\t\t\tpadding-top: 0;\n\t\t\t}\n\n\t\t\t.discount {\n\t\t\t\tpadding: 8px 0;\n\t\t\t}\n\n\t\t\t.description,\n\t\t\t.offer-details {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 14px;\n\t\t\t\tline-height: 21px;\n\t\t\t\tpadding-top: 4px;\n\t\t\t\tpadding-bottom: 4px;\n\t\t\t}\n\t\t\t.additional-details,\n\t\t\t.coupon-code {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 12.25px;\n\t\t\t\tline-height: 18px;\n\t\t\t\tpadding: 4px 0;\n\t\t\t}\n\t\t\t.disclaimer-title {\n\t\t\t\tpadding: 18px 0;\n\t\t\t}\n\n\t\t\t.coupon,\n\t\t\t.details {\n\t\t\t\tfont-weight: 600;\n\t\t\t}\n\n\t\t\t.dealership {\n\t\t\t\tfont-size: 24px;\n\t\t\t\tfont-weight: bold;\n\t\t\t\tmargin: 0 0 4px 0;\n\t\t\t}\n\t\t\t.address1 {\n\t\t\t\tmargin-top: 8px;\n\t\t\t}\n\t\t\t.phone {\n\t\t\t\tmargin-top: 8px;\n\t\t\t}\n\n\t\t\t.underline {\n\t\t\t\twidth: 30%;\n\t\t\t\tborder-bottom: 1px solid;\n\t\t\t\tmargin: 20px 0;\n\t\t\t}\n\n\t\t</style>\n\t</head>\n\t<body>"),s.document.write(`<div class='print-view-ios'>\n\t\t<div class='dealership'>${l}</div>\n\t\t${d?`<div class='address1'>${d}. ${u}, ${r} ${c}</div>`:""}\n\t\t${p?`<div class='address2'>${p}. ${u}, ${r} ${c}</div>`:""}\n\t\t${m?`<div class='address3'>${m}. ${u}, ${r} ${c}</div>`:""}\n\t\t${o?.length?`<div class='phone'>${ge(o,t)}</div>`:""}\n\t\t<hr class='underline'/>\n\t\t<div class='heading'>${N}</div>\n\t\t<div class='start-end-date'>${P}</div>\n\t\t${S?`<div class='offer-details'>${S}</div>`:""}\n\n\t\t${v?`<div class='description'>${v}</div>`:""}\n\n\t\t${g?`<div class='discount'>${g}</div>`:""}\n\n\t\t${I?`<div class='additional-details'>\n\t\t \t<div class='h5 details' style='font-weight: bold;'>${t.get("DETAILS")}:</div>\n\t\t\t${I}\n\t\t</div>`:""}\n\n\t\t${k?`<div class='coupon-code'>\n\t\t\t<div class='h5 coupon' style='font-weight: bold;'>${t.get("COUPON_CODE")}:</div>\n\t\t\t${k}\n\t\t</div>`:""}\n\n\t\t${O.length>0?`<div>\n\t\t\t<div class='applicable-trims'>${t.get("APPLICABLE_TRIMS")}:</div>\n\t\t\t\t<div>${O}</div>\n\t\t\t</div>`:""}\n\t\t${D?`<div>\n\t\t\t\t<div class='disclaimer-title'>${t.get(a?"DISCLOSURE":"DISCLAIMERS")}:</div>\n\t\t\t\t<div class='text-muted small'>${D}</div>\n\t\t\t</div>`:""}\n\t</div>`),s.document.write("</body></html>"),setTimeout(()=>{s.print(),s.close()},100)})({promo:d,labels:h,locale:u,accountDataDistributor:a,isDisclosure:v||I}):e(a);const{autoGenerated:s,id:o,incentiveData:{title:l}={},oemId:f,title:y,type:w}=d;Ee({appleWallet:!!i,widgetName:p,windowId:m,event:"specialsEvent",specialType:"click",specialCategory:w.charAt(0)+w.slice(1).toLowerCase(),specialId:o,specialPlacementType:M(p,g),specialPersonalized:r,specialAutoGen:s,nonInteractive:!1,promoIndex:t,customAsset:c,oemId:f,title:y||l})}},o().createElement("span",{className:"ddc-icon ddc-icon-print"}),o().createElement("span",null," "),o().createElement("span",null,h.get("PRINT")))};function Ke(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}We.propTypes={promoIndex:a().number,pushOutsiderCtaPrint:a().func,accountId:a().string,isShowAppleWallet:a().bool},We.defaultProps={promoIndex:0,pushOutsiderCtaPrint:()=>{},isShowAppleWallet:!1,accountId:""},Ke("/* stylelint-disable indentation, block-opening-brace-space-before, at-rule-empty-line-before, max-empty-lines, declaration-block-semicolon-newline-after */\n.aspect-ratio-box-inner-wrapper {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n}\n.aspect-ratio-box-inner-wrapper .flex-row,\n.aspect-ratio-box-inner-wrapper .wrapper {\n  height: 100%;\n}\n.aspect-ratio-box-inner-wrapper.fixed-program-aspect-ratio {\n  display: flex;\n  align-items: center;\n  background-size: cover;\n  background-position: center;\n}");const Ge=({children:e,innerWrapperStyle:t={},wrapperStyleClasses:n="",isSkeleton:i=!1,aspectRatio:a,allowOverflow:r=!1,account:c=null})=>{const{deviceType:p}=(0,l.useRequestData)(),m=(0,s.useContext)(f),u=c&&Object.keys(c).length?c:m,[g,y]=O.get(a),w={},b=h([`aspect-ratio-${g}-${y}`,n]);let x=a!==k.MOBILE_4X3_COUPON&&a!==k.DESKTOP_4X3?`${g}/${y}`:void 0;const E=a===k.DESKTOP_4X1||a===k.MOBILE_4X3_SLIDESHOW,v=(0,d.useSelector)(e=>e.variationRef),I=u&&Object.keys(u).length?j(u)||U(u.accountId)||(B(v)?"mazda":void 0):void 0,_=I&&E?(T=I,N=v,"mazda"===T?(e=>e&&/v9_OEM_MAZDA_0003_V1/i.test(e)?{desktop:{width:1920,height:760},mobile:{width:768,height:958}}:{desktop:{width:32,height:9},mobile:{width:192,height:179}})(N):C[T])[p.toLowerCase()]:void 0;var T,N;const S=_&&("mazda"===I||"stellantis"===I);return S&&(x=`${_.width}/${_.height}`,w.aspectRatio=x,w.height="auto",w.paddingTop=`calc(${_.height} / ${_.width} * 100%)`),o().createElement("div",{className:b,style:{...w,aspectRatio:x,position:"relative",height:r?"100%":""}},o().createElement("div",{className:h(["aspect-ratio-box-inner-wrapper",S&&!i&&"fixed-program-aspect-ratio"]),style:{...t,border:"0"}},e))};Ge.propTypes={innerWrapperStyle:a().shape({}),isSkeleton:a().bool,wrapperStyleClasses:a().string,aspectRatio:a().string,allowOverflow:a().bool,account:a().shape({})},Ge.defaultProps={innerWrapperStyle:{},isSkeleton:!1,wrapperStyleClasses:"",aspectRatio:"",allowOverflow:!1,account:null};const Ye={width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",position:"relative",zIndex:1},Qe={position:"relative",width:"100%",height:"100%"},Je={position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",zIndex:2},Ze={width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.46)",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",lineHeight:1,paddingLeft:0},et=(0,s.forwardRef)(({promo:e,width:t},n)=>{const{title:i,customAssets:a={},customAssetVideos:r={}}=e,{aspectRatio:c}=(0,s.useContext)(y),p=(0,s.useContext)(f),{widgetName:m}
1=(0,l.useRequestData)(),u=m===L,[g,h]=(0,s.useState)(""),[w,b]=(0,s.useState)(""),x=(0,s.useRef)(null),E=`${c}_video`,{imageUrl:v,altText:I,isVideoAsset:C,resolvedVideoUrl:_}=(0,s.useMemo)(()=>{const e=a[E]||r[E.replace("_video","")]||a[c]||r[c];if(!e)return{imageUrl:"",altText:i,isVideoAsset:!1,resolvedVideoUrl:""};const t="object"==typeof e&&null!==e,n=t?e.xmlUrl||e.highestUrl||"":e,{altText:s,url:o}=((e="")=>{let t=null,n=e;if(!e)return{altText:t,url:n};const i=/[?&]altText=([^&]+)(&|$)/,a=e.match(i);return a&&(t=decodeURIComponent(a[1]),n=e.replace(i,(e,t,n)=>e.startsWith("?")&&""===n?"":e.startsWith("?")&&"&"===n?"?":n||""),n.endsWith("?")&&(n=n.substring(0,n.length-1))),{altText:t,url:n}})(n),l=t&&(((e=[])=>{if(!Array.isArray(e)||0===e.length)return"";const t=[...e].filter(e=>e&&"number"==typeof e.rate&&e.url).sort((e,t)=>e.rate-t.rate);if(0===t.length)return"";const n=(()=>{if("undefined"==typeof navigator)return 700;const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!e)return 700;if(e.saveData)return 240;const t=Number(e.downlink||0);if(t>0)return t<1?240:t<2.5?500:t<5?700:1500;const n=(e.effectiveType||"").toLowerCase();return"slow-2g"===n||"2g"===n?240:"3g"===n?500:"4g"===n?1500:700})(),i=[...t].reverse().find(e=>e.rate<=n);return i?i.url:t[0].url})(e.sources||[])||e.highestUrl)||"",d=l||o,p=He(d)?((e="")=>{const t=Xe(e);if(!He(t))return t;const n=(()=>{if("undefined"==typeof navigator)return"medium";const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!e)return"medium";if(e.saveData)return"lowest";const t=Number(e.downlink||0);if(t>0)return t<1?"lowest":t<2.5?"low":t<5?"medium":t<8?"high":"highest";const n=(e.effectiveType||"").toLowerCase();return"slow-2g"===n||"2g"===n?"lowest":"3g"===n?"low":"4g"===n?"high":"medium"})(),[i,a=""]=t.split("?"),s=/_(lowest|low|medium|high|highest)(\.[^./]+)$/i;if(!s.test(i))return t;const o=i.replace(s,`_${n}$2`);return a?`${o}?${a}`:o})(d):"",m=He(d);return{imageUrl:o,altText:s||i,isVideoAsset:Boolean(l)||m,resolvedVideoUrl:p||l||""}},[a,r,c,i,E]);let T;(0,s.useImperativeHandle)(n,()=>({videoElement:x.current,isVideo:C,getDuration:()=>x.current?.duration||0,getCurrentTime:()=>x.current?.currentTime||0,setCurrentTime:e=>{x.current&&(x.current.currentTime=e)},play:()=>x.current?.play(),pause:()=>x.current?.pause()}));const N=c===k.DESKTOP_4X1||c===k.MOBILE_4X3_SLIDESHOW,S=c===k.DESKTOP_9X16||c===k.MOBILE_9X16||c===k.DESKTOP_9X16_COUPON||c===k.MOBILE_9X16_COUPON,D=(0,d.useSelector)(e=>e.variationRef),O=j(p)||U(p?.accountId)||(B(D)?"mazda":void 0),P=("mazda"===O||"stellantis"===O)&&N,A=N&&("bmw"===O||"mini"===O);(0,s.useEffect)(()=>{if(t>0&&v&&!C){const e=re(v,t);"string"==typeof e.src&&h(e)}},[t,v,C]);const R=_||v,$=((e="")=>{if(!e)return"";const[t,n=""]=e.split("?"),i=t.replace(/((_highest)|(_lowest)|(_low)|(_medium)|(_high))\.mp4$/i,"_largethumb.jpg");return n?`${i}?${n}`:i})(R),z=((e="")=>{if(!e)return"";const[t,n=""]=e.split("?"),i=t.replace(/^https:\/\/videos2\.inv-svc-np\.dealer\.com\//i,"https://videos2.dealer.com/");return i===t?"":n?`${i}?${n}`:i})($);(0,s.useEffect)(()=>{b($||R||v)},[$,R,v]);const M=C&&S;let q=Ye.height;P&&!C&&(q="auto");const F={...Ye,objectFit:C?M?"contain":"cover":Ye.objectFit,objectPosition:M?"top center":Ye.objectPosition,height:q,...M?{backgroundColor:"#fff"}:{}},V=o().createElement("div",{style:Qe},o().createElement("img",{alt:I,"data-image-url":w,"data-is-video":"false",style:F,src:w,onError:()=>{z&&w!==z&&b(z)}}),o().createElement("div",{style:Je,"aria-hidden":"true"},o().createElement("div",{style:Ze},"▶"))),X=o().createElement("video",{ref:x,"aria-label":"","data-image-url":R||v,"data-object-fit":F.objectFit,"data-object-position":F.objectPosition,"data-is-video":"true",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",style:F},o().createElement("source",{src:R||v}));let H=o().createElement("img",{alt:"","data-image-url":v,"data-is-video":"false",style:F,src:g.src?g.src:v});return C&&(H=u?V:X),T=A?o().createElement("div",{className:"h-100 custom-asset"},H):o().createElement(Ge,{aspectRatio:c,innerWrapperStyle:P?{backgroundImage:`url(${v})`}:{display:"flex"}},P?o().createElement(o().Fragment,null,C?null:o().createElement("div",{className:"fixed-program-aspect-ratio-blurred-box"}),H):H),T});
1et.displayName="CustomAssetPromo",et.propTypes={promo:a().shape(ee).isRequired,width:a().number.isRequired};const tt=e=>[...new Set(e)].filter(e=>e).join(" ")||null,nt="CASH_BACK",it="PROMOTION_FROM",at="POTENTIAL_EV_TAX_CREDIT",st=({disclaimer:e,isDisclosure:t})=>{const n=(0,l.useLabels)();return e?o().createElement("div",{className:"text-muted small mt-4"},o().createElement("p",{dangerouslySetInnerHTML:{__html:`${t?n.get("DISCLOSURE"):n.get("DISCLAIMER")}: ${e}`}})):null};st.propTypes={disclaimer:a().string,isDisclosure:a().bool},st.defaultProps={disclaimer:"",isDisclosure:!1},st.displayName="IncentiveDisclaimer";const ot=({incentiveId:e,incentiveAccountId:t,incentiveName:n,condition:i,newListingPath:a,usedListingPath:s})=>{const r=(0,l.useLabels)(),{showIncentiveApplicableVehiclesLink:c}=(0,l.usePrefs)();let d="";return d="NEW"===i?a:s,d&&"true"===c?(d=`${d}?incentiveId=${encodeURIComponent(e)}&incentiveAccountId=${encodeURIComponent(t)}`,"CERTIFIED"===i&&(d=`${d}&compositeType=certified`),o().createElement("a",{className:"small text-capitalize",href:d,"data-ga-event":"incentives|click|view inventory","data-incentive-id":e,"data-incentive-name":n},r.get("VIEW_APPLICABLE_VEHICLES"))):null};function lt(e,t="en_US",n=!1){const i={style:"currency",currency:t.length&&t.indexOf("CA")>-1?"CAD":"USD"};let a;if("number"!=typeof e)return"";n?a=e:(a=Math.round(e),i.minimumFractionDigits=0);const s=new Intl.NumberFormat(t.replace("_","-"),i).format(a);return"fr_CA"===t&&s.endsWith("CA")?s.replace("CA","").trim():s}ot.propTypes={incentiveId:a().string.isRequired,incentiveAccountId:a().string.isRequired,incentiveName:a().string,condition:a().string,newListingPath:a().string,usedListingPath:a().string},ot.defaultProps={incentiveName:"",condition:"NEW",newListingPath:null,usedListingPath:null},ot.displayName="ListingLink";const rt=e=>{const{locale:t}=(0,l.useRequestData)(),n=(0,l.useLabels)();let i=null;if(e&&e.length){let a;e.forEach(e=>{a=o().createElement(o().Fragment,null,a,o().createElement("li",{className:"list-group-item p-0 pb-1"},`${function(e,t="en_US"){return"number"!=typeof e?"":new Intl.NumberFormat(t.replace("_","-")).format(e)}(e.value,t)}${n.get("PERCENT_APR_FOR")} ${e.term} ${n.get("MONTHS")}`))}),i=o().createElement("ul",{className:"list-group list-group-flush mt-4"},a)}return i};rt.propTypes={incentiveTerms:a().arrayOf(a().shape({term:a().number.isRequired,value:a().number.isRequired}))},rt.defaultProps={incentiveTerms:[]},rt.displayName="TermsList";const ct=({incentive:e,isPotentialTaxCredit:t})=>{const n=(0,l.useLabels)(),i=(0,l.useFlags)(),a=i["enable-content-link-data"],{locale:s}=(0,l.useRequestData)();let r=null,c=null,d=null;if(e&&e.specific){const{effectiveDate:l,expirationDate:p,specific:m={},incentiveContentLinkData:u}=e;l&&p?d=o().createElement("p",null,`${n.get("EFFECTIVE_X_THROUGH_X").replace(/({{\w+_?}})/gm,e=>"{{START_DATE}}"===e?l:"{{END_DATE}}"===e?p:"")}\n\t\t\t\t\t`):!l&&p&&(d=o().createElement("p",null,`${n.get("EFFECTIVE_THROUGH_X").replace("{{END_DATE}}",p)}\n\t\t\t\t\t`)),c=i["show-cashBack-program-label"]&&e.content?m.cashOption?o().createElement("p",null,`${lt(m.cashOption,s)} ${e.content}`):null:m.cashOption?o().createElement("p",null,`${lt(m.cashOption,s)} ${t?n.get(at):n.get(nt)}`):null;const g=m.cashDue?o().createElement("p",null,`${lt(m.cashDue,s)} ${n.get("CASH_DUE_AT_SIGNING")}`):null,h=m.monthlyPayment?o().createElement("p",null,`${lt(m.monthlyPayment,s)} ${n.get("PER_MONTH")}`,m.cashOption?o().createElement(o().Fragment,null,o().createElement("br",null),`${lt(m.cashOption,s)} ${n.get(nt)}`):null):"",f=m.type||m._type,y=(e=[])=>0!==e.length&&a?e.map(e=>{const{url:t,i18NText:n=""}=e;return o().createElement("a",{className:"small d-inline-block text-link",href:t,target:"_blank",rel:"noreferrer"},n)}):null;if(f)switch(f){case"CASH":r=o().createElement(o().Fragment,null,c,y(u),d);break;case"FINANCE":r=o().createElement(o().Fragment,null,o().createElement(rt,{incentiveTerms:m.terms,locale:s,labels:n}),y(u),d,g);break;case"CASH_AND_FINANCE":r=o().createElement(o().Fragment,null,o().createElement(rt,{incentiveTerms:m.terms,locale:s,labels:n}),m.cashOption?o().createElement(o().Fragment,null,o().createElement("p",null,n.get("AND")),c
1):null,y(u),d,g);break;case"CASH_OR_FINANCE":r=o().createElement(o().Fragment,null,o().createElement(rt,{incentiveTerms:m.terms,locale:s,labels:n}),m.cashOption?o().createElement(o().Fragment,null,o().createElement("p",null,n.get("OR")),c):null,y(u),d,g);break;case"LEASE":r=o().createElement(o().Fragment,null,h,y(u),d,g);break;case"UNDEFINED_TERM":r=o().createElement(o().Fragment,null,c,y(u),d,g);break;default:r=o().createElement(o().Fragment,null,y(u),d)}}return r};ct.propTypes={incentive:a().shape({key:a().string,title:a().string,label:a().string,offerDetails:a().string,shortTitle:a().string,disclaimer:a().string,effectiveDate:a().string,expirationDate:a().string,conditional:a().bool,make:a().string,condition:a().string,manufacturerOffer:a().bool,specific:a().shape({})}).isRequired,isPotentialTaxCredit:a().bool.isRequired},ct.displayName="SpecificDetails";const dt=({incentive:e,newListingPath:t,usedListingPath:n,account:i,isMultiIncentive:a})=>{const s=(0,l.useLabels)(),{key:r,specific:c,title:d,shortTitle:p,offerDetails:m,make:u,condition:g,manufacturerOffer:h,disclaimer:f,effectiveDate:y,expirationDate:w,incentiveContentLinkData:b}=e,{incentiveId:x,incentiveAccountId:E}=function(e){let t={incentiveAccountId:"",incentiveId:""};if("string"==typeof e){const n=e.split("_");n.length>1&&(t={incentiveAccountId:n[0],incentiveId:n[1]})}return t}(r),v=((e={},t,n,i)=>{let a=i;t&&(a=n);let o=it;const l=e.type?e.type:e._type;if(l)switch(l){case"CASH":o="CASH_OFFER_FROM";break;case"FINANCE":case"UNDEFINED_TERM":o="FINANCE_OFFER_FROM";break;case"CASH_AND_FINANCE":o="FINANCE_AND_CASH_OFFER_FROM";break;case"CASH_OR_FINANCE":o="FINANCE_OR_CASH_OFFER_FROM";break;case"LEASE":o="LEASE_OFFER_FROM";break;default:o=it}return`${s.get(o)} ${a}`})(c,h,u,i.name),I=d===s.get(at),k=m||y||w||b?.length||c?.cashOption||c?.cashDue||c?.monthlyPayment||c?.terms||t||n||f;return o().createElement(o().Fragment,null,!a&&o().createElement(o().Fragment,null,!I&&o().createElement("h4",{className:"mt-2 mb-0 h5","data-testid":"offerType"},v),o().createElement("p",{className:"mt-0"},d),k&&o().createElement("h4",{className:"mt-2 mb-0 h5 text-capitalize"},s.get("DETAILS"))),o().createElement("p",null,m),o().createElement(ct,{incentive:e,isPotentialTaxCredit:I}),o().createElement(ot,{incentiveId:x,incentiveAccountId:E,incentiveName:p,condition:g,newListingPath:t,usedListingPath:n}),a&&o().createElement(st,{disclaimer:f}))};dt.propTypes={newListingPath:a().string,usedListingPath:a().string,incentive:a().shape({key:a().string,title:a().string,label:a().string,offerDetails:a().string,shortTitle:a().string,disclaimer:a().string,effectiveDate:a().string,expirationDate:a().string,conditional:a().bool,make:a().string,condition:a().string,manufacturerOffer:a().bool,specific:a().shape({}),incentiveContentLinkData:a().arrayOf(a().shape({}))}).isRequired,account:a().shape({name:a().string}),isMultiIncentive:a().bool},dt.defaultProps={newListingPath:null,usedListingPath:null,account:null,isMultiIncentive:null},dt.displayName="IncentiveDetails";const pt=({vehicleData:e})=>{const{images:t,pricing:n,title:i,condition:a}=e,s=(e=>{const{dprice:t,dPrice:n,eprice:i,ePrice:a,...s}=e;return{dPrice:n||t,ePrice:a||i,...s}})(n),{dPrice:l}=s,r=l?.find(e=>e?.isFinalPrice),c=t[0],d=i[0],p=d?.startsWith(a)?d:`${a} ${d}`,m=c?.uri?.replace("pictures.qa.dealer.com","pictures.dealer.com");return o().createElement("div",{className:"vehicle-info row mx-0"},o().createElement("img",{src:m,alt:c.alt,role:"presentation",title:c.title,className:"col-xs-4 col-sm-12 px-0 mb-md-3",style:{aspectRatio:"auto 4 / 3"}}),o().createElement("div",{className:"col-xs-8 col-sm-12 px-md-0 vehicle-title"},o().createElement("h6",{className:"mb-2"},i.length>1&&p),o().createElement("h4",{className:"my-0 d-block"},i.length>1?i[1].trim():p),o().createElement("span",{className:"font-weight-bold"},r?.value)))},mt=a().shape({uri:a().string,alt:a().string,title:a().string}),ut=a().arrayOf(a().shape({value:a().string,isFinalPrice:a().bool})),gt=a().shape({images:a().arrayOf(mt),pricing:a().shape({dprice:ut}),title:a().arrayOf(a().string),condition:a().string});pt.propTypes={vehicleData:gt.isRequired},pt.displayName="VehicleInfo";const ht=({children:e,title:t,isGrouping:n})=>
1{const[i,a]=(0,s.useState)(!1);return o().createElement("div",null,n?o().createElement(p.PanelGroup,{className:"my-2",id:t},o().createElement(p.Panel,{onToggle:()=>a(!i)},o().createElement(p.Panel.Heading,null,o().createElement(p.Panel.Title,{toggle:!0},o().createElement("h4",{className:"d-flex align-items-start my-4"},o().createElement("i",{className:`ddc-icon icon-style-collapse align-self-start ${i?"ddc-icon-collapse":"ddc-icon-expand"} mr-3`}),o().createElement("span",null,t)))),o().createElement(p.Panel.Collapse,null,o().createElement(p.Panel.Body,{className:"ml-5"},o().createElement("div",null,e))))):o().createElement("div",null,o().createElement("p",null,o().createElement("strong",null,t)),o().createElement("div",null,o().createElement("div",null,e))))};ht.propTypes={title:a().string.isRequired,children:a().element.isRequired,isGrouping:a().bool.isRequired},ht.displayName="IncentiveContent";const ft=({incentives:e,account:t,newListingPath:n,usedListingPath:i,titleOptions:a,isGrouping:s,vehicleData:r,isMobile:c,isMultiIncentive:d})=>{const p=(0,l.useLabels)(),m=(e,t)=>{const{incentiveTitleDisplay:n,incentiveTitleCustom:i}=a;let s;switch(n){case"regular":s=e;break;case"custom":s=p.get(i)||p.get("DEALER_OFFER");break;default:s=t}return s},u=(e=[],a,l)=>0===e.length?null:o().createElement("div",{className:"facet-list facet-list-border-top",key:a},o().createElement("div",{className:"facet-list-group border-0 pb-0 "+(0===l?"pt-0":""),role:"tablist"},s&&o().createElement("h6",{className:"my-0"},((e,t="")=>{const n=new Map([["CASH","CASH_INCENTIVE"],["FINANCE","FINANCE_INCENTIVE"],["LEASE","LEASE_INCENTIVE"],["UNDEFINED_TERM","UNDEFINED_TERM_INCENTIVE"],["CASH_AND_FINANCE","CASH_AND_FINANCE_INCENTIVE"],["CASH_OR_FINANCE","CASH_OR_FINANCE_INCENTIVE"],["PROMOTION","PROMOTION_INCENTIVE"],["CONDITIONAL","CONDITIONAL_INCENTIVE_GROUP"]]).get(t);return n?e.get(n):t})(p,a)),e.map(e=>o().createElement(ht,{title:m(e.title,e.shortTitle),isGrouping:s,key:`${a}-${e.uniqueId}`},o().createElement(dt,{incentive:e,account:t,newListingPath:n,usedListingPath:i,isMultiIncentive:d})))));return o().createElement("div",{className:"row"},o().createElement("div",{className:"col-sm-4 pr-md-4"},o().createElement(pt,{vehicleData:r})),o().createElement("div",{className:"col-sm-8 pl-md-4 "+(c?"incentive-modal-wrapper":"")},Object.keys(e).map((t,n)=>u(e[t],t,n))))};ft.propTypes={vehicleData:gt.isRequired,isMobile:a().bool.isRequired,incentives:a().objectOf(a().arrayOf(a().shape({condition:a().string.isRequired,conditional:a().bool.isRequired,content:a().string,disclaimer:a().string.isRequired,effectiveDate:a().string.isRequired,expirationDate:a().string.isRequired,key:a().string.isRequired,make:a().string.isRequired,manufacturerOffer:a().bool,offerDetails:a().string.isRequired,shortTitle:a().string.isRequired,title:a().string.isRequired,uniqueId:a().string.isRequired}))),titleOptions:a().shape({incentiveTitleDisplay:a().string.isRequired,incentiveTitleCustom:a().string.isRequired}).isRequired,isGrouping:a().bool.isRequired,account:a().shape({name:a().string,id:a().string}).isRequired,newListingPath:a().string,usedListingPath:a().string,isMultiIncentive:a().bool},ft.defaultProps={newListingPath:"",usedListingPath:"",incentives:{}},ft.displayName="IncentiveGroup";const yt={widgetId:"",widgetName:"wsm-incentive-modal",widgetState:"default",event:"widgetUserEvent",element:"",elementCTA:void 0,action:"clicked",result:"",fieldValue:void 0,formId:void 0,formEventId:void 0,value:void 0};function wt(e){const t=window&&window.jQuery?window.jQuery(document):{};Object.keys(t).length>0&&t.trigger("trackEvent",{...yt,...e})}const bt=({account:e,incentive:t,isOpen:n,newListingPath:i,onModalClose:a,usedListingPath:s,cta:r,applePassBtn:c,titleOptions:d,title:m,isGrouping:u,subTitle:g,vehicleData:h,groupIncentive:f,isMobile:y,ctaPrint:w,isDisclosure:b})=>{const{shortTitle:x,disclaimer:E}=t,{windowId:v,widgetName:I}=(0,l.useRequestData)(),k=Object.keys(f).length>0,C=()=>{a(),function(e,t){wt({widgetId:t,widgetName:e,widgetState:"Special dialog",element:"Close button",result:"Closed dialog"})}(I,v)},_=o().createElement("div",{className:"incentive-modal"},o().createElement("h2",{className:"mt-0 mb-2"},m),o().createElement("p",{className:"font-weight-normal ddc-font-size-small mb-0 modal-sub-title"},g));return o().createElement(p.Modal,{show:n,onHide:C,onShow:()=>
1{if(t&&Object.keys(t).length>0){const{title:e}=t;!function(e,t,n){wt({widgetId:t,widgetName:e,element:"Specials details link",elementCTA:n,result:"Opened dialog"})}(I,v,e)}},className:tt(["m-1",k?"multi-incentive-modal":"single-incentive-modal",y&&"dock-right"])},o().createElement(p.Modal.Header,null,o().createElement(p.Modal.Title,{className:"text-center"},o().createElement("button",{type:"button","aria-label":"Close",className:"close text-muted",onClick:C},o().createElement("i",{className:tt(["ddc-icon",...k?["ddc-icon-remove2","ddc-icon-size-large"]:["ddc-icon-close"]]),"aria-hidden":"true"})),o().createElement("span",{className:tt([...k?[]:["h3","my-0","px-5"]])},k?_:x))),o().createElement(p.Modal.Body,null,k?o().createElement(ft,{incentives:f,account:e,newListingPath:i,usedListingPath:s,titleOptions:d,isGrouping:u,vehicleData:h,isMobile:y,isMultiIncentive:k}):o().createElement(o().Fragment,null,o().createElement(dt,{incentive:t,newListingPath:i,usedListingPath:s,account:e,isMultiIncentive:k}),null!==r&&o().createElement(o().Fragment,null,r),null!==c&&o().createElement(o().Fragment,null,c),null!==w&&o().createElement(o().Fragment,null,w),o().createElement(st,{disclaimer:E,isDisclosure:b}))))};bt.propTypes={incentive:a().shape({key:a().string,title:a().string,label:a().string,offerDetails:a().string,shortTitle:a().string,disclaimer:a().string,effectiveDate:a().string,expirationDate:a().string,conditional:a().bool,make:a().string,condition:a().string,manufacturerOffer:a().bool,specific:a().shape({})}),isOpen:a().bool.isRequired,onModalClose:a().func.isRequired,account:a().shape({name:a().string,id:a().string}).isRequired,newListingPath:a().string,usedListingPath:a().string,cta:a().shape({clickEvent:a().func,classes:a().arrayOf(a().string),isVisible:a().bool,label:a().string,url:a().string,promo:a().shape({})}),applePassBtn:a().shape({title:a().string,description:a().string,disclaimer:a().string,discountValue:a().string,promoDiscountType:a().string,endDateDisplay:a().string,id:a().string,promoDetails:a().string,incentive:a().shape({})}),titleOptions:a().shape({incentiveTitleDisplay:a().string.isRequired,incentiveTitleCustom:a().string.isRequired}),title:a().string,subTitle:a().string,isMobile:a().bool,isGrouping:a().bool,vehicleData:gt,groupIncentive:a().objectOf(a().arrayOf(a().shape({condition:a().string.isRequired,conditional:a().bool.isRequired,content:a().string,disclaimer:a().string.isRequired,effectiveDate:a().string.isRequired,expirationDate:a().string.isRequired,key:a().string.isRequired,make:a().string.isRequired,manufacturerOffer:a().bool,offerDetails:a().string.isRequired,shortTitle:a().string.isRequired,title:a().string.isRequired,uniqueId:a().string.isRequired}))),ctaPrint:a().shape({pushOutsiderCtaPrint:a().func}),isDisclosure:a().bool},bt.defaultProps={newListingPath:null,usedListingPath:null,cta:null,applePassBtn:null,titleOptions:{incentiveTitleDisplay:"",incentiveTitleCustom:""},title:"",subTitle:"",isMobile:!0,isGrouping:!1,groupIncentive:{},incentive:{},vehicleData:{},ctaPrint:null,isDisclosure:!1},bt.displayName="IncentiveModal",function(){if("undefined"==typeof window)return;const e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML='.modal.multi-incentive-modal .modal-dialog {\n  width: 762px;\n  max-width: 100%;\n}\n.modal.multi-incentive-modal .modal-body {\n  padding: 24px 64px 64px;\n}\n@media only screen and (max-width: 767px) {\n  .modal.multi-incentive-modal .modal-body {\n    padding: 16px 16px 32px;\n  }\n}\n@media only screen and (max-width: 767px) {\n  .modal.multi-incentive-modal .incentive-modal {\n    text-align: left;\n  }\n}\n.modal.multi-incentive-modal .modal-content {\n  max-height: calc(100vh - 64px);\n  overflow-y: auto;\n}\n.modal.multi-incentive-modal .modal-content .modal-header {\n  background-color: inherit;\n}\n.modal.multi-incentive-modal .modal-content div.facet-list:last-child .facet-list-group {\n  border-bottom: none;\n}\n.modal.multi-incentive-modal .modal-content div#normalFuelType h4 {\n  margin: 0;\n  padding: 16px 0 8px 0;\n}\n.modal.multi-incentive-modal .modal-content div#normalFuelType h4:first-of-type {\n  padding-top: 0;\n}\n.modal.multi-incentive-modal .modal-content div#normalFuelType p {\n  margin-bottom: 8px;\n}\n.modal.multi-incentive-modal .modal-content div#normalFuelType span {\n  display: block;\n  padding-bottom: 16px;\n  border-bottom: 1px solid var(--color-neutral-100);\n}\n.modal.multi-incentive-modal .modal-content div#normalFuelType small {\n  display: inline-block;\n}\n.modal.multi-incentive-modal .modal-content div#normalFuelType span:last-of-type {\n  border-bottom: none;\n  padding-bottom: 0px;\n}
1\n.modal.multi-incentive-modal.dock-right .modal-content {\n  max-height: 100vh;\n}\n.modal.multi-incentive-modal.dock-right div#normalFuelType span:last-of-type {\n  padding-bottom: 16px;\n}\n.modal.multi-incentive-modal.responsive:not(.dock-right) {\n  padding: 0 32px;\n}\n.modal.multi-incentive-modal.responsive:not(.dock-right) .modal-dialog {\n  width: auto;\n  max-width: 896px;\n  min-width: 704px;\n}\n.modal.multi-incentive-modal .incentive-modal-wrapper {\n  margin-top: 16px;\n}\n.modal.multi-incentive-modal .incentive-modal-wrapper .facet-list:first-child {\n  padding-top: 16px;\n}\n.modal.multi-incentive-modal .modal-title .close {\n  color: var(--color-neutral-1000-alpha-6);\n  opacity: 1;\n}\n.modal.multi-incentive-modal .modal-title .close:focus, .modal.multi-incentive-modal .modal-title .close:hover {\n  opacity: 1;\n}\n.modal.multi-incentive-modal .modal-title .close:hover {\n  color: var(--color-neutral-1000);\n}\n.modal.multi-incentive-modal .modal-title .close:focus {\n  color: var(--color-neutral-1000-alpha-6);\n}\n.modal.multi-incentive-modal .facet-list {\n  position: relative;\n}\n.modal.multi-incentive-modal .facet-list.facet-list-border-top::before {\n  content: "";\n  position: absolute;\n  top: 0;\n  left: 15px;\n  width: calc(100% - 30px);\n  height: 1px;\n  background-color: var(--color-neutral-100);\n}\n@media only screen and (min-width: 768px) {\n  .modal.multi-incentive-modal .facet-list.facet-list-border-top:first-child::before {\n    content: none;\n  }\n}\n.modal.multi-incentive-modal .vehicle-info .vehicle-title {\n  padding-left: 12px;\n}\n@media only screen and (max-width: 479px) {\n  .modal.multi-incentive-modal .modal-sub-title {\n    max-width: 236px;\n  }\n}',document.head.appendChild(e)}();const xt=({isOpen:e,isMobile:t,onModalClose:n,promo:i,cta:a,applePassBtn:r,ctaPrint:c,isDisclosure:d})=>{const m=(0,l.useLabels)(),{locale:u}=(0,l.useRequestData)(),{reduceDollarSignSize:g}=(0,l.usePrefs)(),{additionalDetails:h="",couponCode:f="",ctaConfig:{type:y},description:w="",disclaimer:x="",discountType:E,discountValue:v,endDateDisplay:I="",startDateDisplay:k="",title:C="",type:_,modalTitle:T}=i;let N=null;const S=i?.secondaryCtaConfig?.type||"";return[b.PARTS,b.SERVICE].includes(_)&&"NO_DISCOUNT"!==E&&(N=me(u,E,v,m,g,{display:"flex",justifyContent:"center",alignItems:"center",labelStyles:{marginBottom:"0px"}})),(0,s.useEffect)(()=>{"undefined"!=typeof window&&t&&window.DDC.mobile.slidein.init()},[]),o().createElement(p.Modal,{show:e,onHide:n,className:"m-1 "+(t?"dock-right":"details-modal")},o().createElement(p.Modal.Header,null,o().createElement(p.Modal.Title,{className:"text-center"},o().createElement("span",{className:"h3 my-0 px-5"},T?m.get(T):o().createElement(o().Fragment,null,C,N)))),o().createElement(p.Modal.Body,null,o().createElement("div",{dangerouslySetInnerHTML:{__html:G(k,I,m)}}),o().createElement("p",null,w),null!==a&&o().createElement("div",{onClick:()=>{"LEAD"!==y&&"LEAD"!==S||n("CTA")},onKeyDown:e=>{("LEAD"===y&&"Enter"===e.key||"LEAD"===S&&"Enter"===e.key)&&n("CTA")},role:"presentation"},a),null!==r&&o().createElement(o().Fragment,null,r),null!==c&&o().createElement(o().Fragment,null,c),h?o().createElement(o().Fragment,null,o().createElement("h4",{className:"mt-2 mb-0 h5"},m.get("DETAILS")),o().createElement("p",null,ue(`${h}`))):null,f?o().createElement(o().Fragment,null,o().createElement("h4",{className:"mt-2 mb-0 h5"},m.get("COUPON_CODE")),o().createElement("p",null,f)):null,x?o().createElement(o().Fragment,null,o().createElement("h4",{className:"mt-2 mb-0 h5"},d?m.get("DISCLOSURE"):m.get("DISCLAIMER")),o().createElement("div",{className:"text-muted small"},o().createElement("p",null,ue(`${x}`)))):null),o().createElement("button",{type:"button","aria-label":"Close",className:"close text-muted close-modal",onClick:n},o().createElement("i",{className:"ddc-icon ddc-icon-close","aria-hidden":"true"})))};xt.propTypes={isOpen:a().bool.isRequired,isMobile:a().bool.isRequired,onModalClose:a().func.isRequired,promo:a().shape(ee).isRequired,cta:a().element,applePassBtn:a().shape(ne),ctaPrint:a().shape({pushOutsiderCtaPrint:a().func}),isDisclosure:a().bool},xt.defaultProps={ctaPrint:null,cta:null,isDisclosure:!1,applePassBtn:null};
1const Et=({promoIndex:e,ctaButtonClasses:t=[],isShowAppleWallet:n,secondaryButtonStyle:i})=>{let a=null,r=null,c=null;const{widgetName:d,windowId:m}=(0,l.useRequestData)(),{aspectRatio:u}=(0,s.useContext)(y),{personalized:g,isCustomAsset:f,ctaLabel:b,ctaUrl:x,secondaryCtaLabel:E,secondaryCtaUrl:v,promo:I}=(0,s.useContext)(w),k=(0,s.useRef)(),C=(0,l.useLabels)(),_=(0,l.useSitemap)().get("PROMOTIONS_LEAD_FORM_FRAGMENT"),{autoGenerated:T,id:N,incentiveData:{title:S}={},oemId:D,title:O,type:P,secondaryCtaConfig:A}=I,R=e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),k.current)&&k.current.querySelector("button").click()},L=()=>{const e=document.querySelector(".ddc-icon-close");e&&e.click()},$=()=>{const t="LEAD"===x?"dialog lead form":"click";"LEAD"===x&&L(),Ee({appleWallet:!!n,widgetName:d,windowId:m,event:"specialsEvent",specialType:t,specialCategory:P.charAt(0)+P.slice(1)?.toLowerCase(),specialId:N,specialPlacementType:M(d,u),specialPersonalized:g,specialAutoGen:T,nonInteractive:!1,promoIndex:e,customAsset:f,oemId:D,title:O||S})},z=()=>{const t="LEAD"===v?"dialog lead form":"click";"LEAD"===v&&L(),Ee({appleWallet:!!n,widgetName:d,windowId:m,event:"specialsEvent",specialType:t,specialCategory:P.charAt(0)+P.slice(1)?.toLowerCase(),specialId:N,specialPlacementType:M(d,u),specialPersonalized:g,specialAutoGen:T,nonInteractive:!1,promoIndex:e,customAsset:f,oemId:D,title:O||S})},q=({buttonStyle:e,ctaType:n})=>{const i="primary-cta"===n,a=i?b:E,s=i?$:z;return o().createElement(p.Button,{role:"button",className:h(["dialog",t]),onClick:s,bsSize:"small",bsStyle:e,onKeyDown:R,"data-width":"375","data-title":a,"data-href":`${_}?promotionId=${N}`},a,o().createElement("p",{className:"sr-only"},"Open Lead form"))},F=x&&"default"!==x&&b&&"default"!==b;return F&&(a="LEAD"===x?q({buttonStyle:"primary",ctaType:"primary-cta"}):o().createElement(p.Button,{className:h([t]),onClick:()=>{$()},bsSize:"small",bsStyle:"primary",href:x,target:I?.ctaConfig?.openInNewTab?"_blank":"_self"},b,o().createElement("p",{className:"sr-only"},"request more info"===b?.toLowerCase()?o().createElement("span",{className:"hidden"},O):null,I?.ctaConfig?.openInNewTab?C.get("OPEN_IN_NEW_TAB"):C.get("OPEN_IN_SAME_TAB")))),I?.secondaryDestinationUrl&&I?.secondaryDestinationLabel&&(r="LEAD"===v?q({buttonStyle:"default",ctaType:"secondary-cta"}):o().createElement(p.Button,{className:h([t]),onClick:()=>{z()},bsSize:"small",bsStyle:"default",href:v,target:A?.openInNewTab?"_blank":"_self"},E,o().createElement("p",{className:"sr-only"},"request more info"===E?.toLowerCase()?o().createElement("span",{className:"hidden"},O):null,A?.openInNewTab?C.get("OPEN_IN_NEW_TAB"):C.get("OPEN_IN_SAME_TAB")))),c=F&&"block"===i?o().createElement("div",{ref:k,"data-testid":"cta-double-block"},o().createElement("div",{className:"d-block","data-testid":"cta-primary-cta"},a),o().createElement("div",{className:"d-block mt-1","data-testid":"cta-secondary-cta"},r)):F&&"inline"===i||"force"===i?o().createElement("div",{ref:k,"data-testid":"cta-double-inline"},o().createElement("div",{className:"d-inline-block","data-testid":"cta-primary-cta"},a),o().createElement("div",{className:"ml-1 d-inline-block","data-testid":"cta-secondary-cta"},r)):o().createElement("div",null,o().createElement("div",{ref:k,"data-testid":"cta-single"},a)),c};Et.propTypes=te,Et.defaultProps={promoIndex:1,ctaButtonClasses:[]};const vt=({applicableVehicle:e="",promoExternal:t,style:n,promoIndex:i})=>{const{promo:a,personalized:r,isCustomAsset:c}=(0,s.useContext)(w),{aspectRatio:d}=(0,s.useContext)(y),{id:p,title:u,incentiveData:g,additionalDetails:f,disclaimer:x,discountValue:E,discountType:v,description:I,type:k,endDateDisplay:C,oemId:_,autoGenerated:T}=t||a,N=(0,m.hysteriFetch)("ws-specials-apple-pass"),{widgetName:S,windowId:D,locale:O}=(0,l.useRequestData)(),P=(0,l.useLabels)(),A=P.get("OFF"),R=window.DDC.dataLayer.dealership.dealershipName;let L,$,z,q;switch(v){case"PERCENT":L=`${E}% ${A}`;break;case"AMOUNT":q=ie(E,O,!0),L=`${q} ${A}`;break;case"FIXED":L=ie(E,O,!0);break;case"STARTING_AT":L=`${P.get("STARTING_AT_SCM_UI")} ${ie(E,O,!0)}`;break;default:L=null}let F=L&&"FIXED"===v?P.get("PRICE"):P.get("SPECIALS_DISCOUNT");k===b.INCENTIVE&&g&&"object"==typeof g&&Object.keys(g).length&&(L=e,F="",$=g.offerDetails,z=g.incentiveExpirationDate);const B=o().createElement("button",{type:"button",onClick:()=>{Ee({appleWallet:!0,widgetName:S,windowId:D,event:"specialsEvent",specialType:"apple wallet click",
1specialCategory:k.charAt(0)+k.slice(1).toLowerCase(),specialId:p,specialPlacementType:M(S,d),specialPersonalized:r,specialAutoGen:T,nonInteractive:!1,promoIndex:i,customAsset:c,oemId:_,title:u||g?.title}),N("/api/widget/ws-specials/pass",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({parameters:{title:u,description:k===b.INCENTIVE?$:I,disclaimer:x,discountDisplay:L||"",accountName:R,endDateDisplay:k===b.INCENTIVE?ae(z,O,{timeZone:"UTC"}):C,id:p,promoDetails:f,titleLabel:P.get("TITLE"),offerDetails:P.get("OFFER_DETAILS"),disclaimerLabel:P.get("DISCLAIMERS"),descriptionLabel:P.get("DESCRIPTION"),discountLabel:F||""}})}).then(e=>{const t=Uint8Array.from(e.body.data),n=new Blob([t.buffer],{type:"application/vnd.apple.pkpass"}),i=window.URL.createObjectURL(n),a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download","promo.pkpass"),a.click()}).catch(e=>{throw new Error(`Apple Pass fetch error: ${e}`)})},style:n,className:h(["btn","btn-link","d-block","p-0"])},o().createElement("img",{src:`https://images.dealer.com/apple/pass/templates/${O}/apple-logo.svg`,alt:"Apple Wallet Logo"}));return B};vt.propTypes=ne;const It=({promoIndex:e,btnStyle:t,btnSize:n,classes:i="",listingConfigId:a="",applicableVehicle:r="",onShowLeadDialog:c,ctaPrint:d,textColor:m})=>{const{widgetName:u,windowId:g,locale:x}=(0,l.useRequestData)(),E=(0,l.useLabels)(),v=(0,s.useContext)(f),{aspectRatio:I,enablePrint:k,enableAppleWallet:C}=(0,s.useContext)(y),{isCustomAsset:_,personalized:T,promo:N,isMobile:S}=(0,s.useContext)(w),[D,O]=(0,s.useState)(!1);let P=null,A=null,R=null;const $=navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("AppleWebKit"),z=(0,s.useMemo)(()=>$&&(N?.enabledAppleWallet||"true"===C),[C,N?.enabledAppleWallet,$]),q=v&&j(v),F="bmw"===q||"mini"===q,B=u===L&&"foxmazda"===v?.id?"Details & Disclaimers":F?E.get("CLICK_HERE_FOR_OFFER_DETAILS"):E.get("OFFER_DETAILS_AND_DISCLAIMERS"),{id:V,type:U,title:X,autoGenerated:H,incentiveData:W,incentiveData:{title:K}={}}=N;z&&(R=o().createElement(vt,{applicableVehicle:r,promoIndex:e}));const G=((e,t,n)=>{const i="undefined"!=typeof window&&window.navigator.userAgent.includes("iPhone")&&window.navigator.userAgent.includes("AppleWebKit")&&(e?.enabledAppleWallet||"true"===n),a=e.additionalDetails&&e.additionalDetails.length>0||e.incentiveData&&Object.keys(e.incentiveData).length>0||e.disclaimer&&e.disclaimer.length>0||i,s=e?.secondaryDestinationLabel&&e?.secondaryDestinationUrl;return(a||e.couponCode||"true"===t||s)&&e.type&&e.id})(N,k,C);if(G){const s=a?`&listingConfigId=${a}`:`?promotionId=${V}&promotionType=${U}&showDetailsPromotion=false`,l="true"===k&&d?o().cloneElement(d,{isShowAppleWallet:z}):"",r=()=>{O(!1),_&&c(!1)};if(D){const t=window.DDC.dataLayer.dealership.dealershipName;A=U===b.INCENTIVE?o().createElement(bt,{account:{...v,name:t},incentive:ke(W,x),isOpen:D,isMobile:S,applePassBtn:R,onModalClose:r,cta:o().createElement(Et,{promoIndex:e,isShowAppleWallet:z,secondaryButtonStyle:"force"}),ctaPrint:l,isDisclosure:F}):o().createElement(xt,{isOpen:D,isMobile:S,onModalClose:r,promo:N,cta:o().createElement(Et,{promoIndex:e,isShowAppleWallet:z,secondaryButtonStyle:"force"}),applePassBtn:R,ctaPrint:l,isDisclosure:F})}const f=t=>{t.preventDefault(),t.stopPropagation(),_&&(c(!0),S&&window.DDC.mobile.slidein.deactivateOverlay()),O(!0),Ee({appleWallet:!!z,widgetName:u,windowId:g,event:"specialsEvent",specialType:"disclaimer click",specialCategory:U.charAt(0)+U.slice(1).toLowerCase(),specialId:V,specialPlacementType:M(u,I),specialPersonalized:T,specialAutoGen:H,nonInteractive:!1,promoIndex:e,customAsset:_,title:X||K})};P=o().createElement(o().Fragment,null,o().createElement(p.Button,{bsStyle:t||"link",bsSize:n||void 0,className:h([m,"py-1","details-and-disclaimer-button",...Array.isArray(i)?i:[i]]),"data-width":"670","data-title":B,"data-href":s,"data-promo-tracking-label":"dialog","data-promo-tracking-action":"click","data-promo-tracking-description":"disclaimer details",onClick:e=>f(e),rel:"nofollow"},B,o().createElement("p",{className:"sr-only"},U===b.INCENTIVE?"Open Incentive Modal":"Open Details Modal")),A)}return P};It.propTypes={promoIndex:a().number,classes:a().string,ctaButtonClasse
1s:a().arrayOf(a().string),listingConfigId:a().string,applicableVehicle:a().string,ctaPrint:a().shape({pushOutsiderCtaPrint:a().func}),textColor:a().string},"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self;var kt,Ct,_t={exports:{}};"undefined"!=typeof self&&self,_t.exports=(kt=o(),Ct=g(),function(){var e={156:function(e){e.exports=kt},111:function(e){e.exports=Ct},582:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return s},__asyncDelegator:function(){return C},__asyncGenerator:function(){return k},__asyncValues:function(){return _},__await:function(){return I},__awaiter:function(){return g},__classPrivateFieldGet:function(){return O},__classPrivateFieldIn:function(){return A},__classPrivateFieldSet:function(){return P},__createBinding:function(){return f},__decorate:function(){return l},__esDecorate:function(){return c},__exportStar:function(){return y},__extends:function(){return a},__generator:function(){return h},__importDefault:function(){return D},__importStar:function(){return S}
vendor: 8,732 bytes, line 1
1,__makeTemplateObject:function(){return T},__metadata:function(){return u},__param:function(){return r},__propKey:function(){return p},__read:function(){return b},__rest:function(){return o},__runInitializers:function(){return d},__setFunctionName:function(){return m},__spread:function(){return x},__spreadArray:function(){return v},__spreadArrays:function(){return E},__values:function(){return w}});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)};function o(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n}function l(e,t,n,i){var a,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(o=(s<3?a(o):s>3?a(t,n,o):a(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function r(e,t){return function(n,i){t(n,i,e)}}function c(e,t,n,i,a,s){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var l,r=i.kind,c="getter"===r?"get":"setter"===r?"set":"value",d=!t&&e?i.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,i.name):{}),m=!1,u=n.length-1;u>=0;u--){var g={};for(var h in i)g[h]="access"===h?{}:i[h];for(var h in i.access)g.access[h]=i.access[h];g.addInitializer=function(e){if(m)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(e||null))};var f=(0,n[u])("accessor"===r?{get:p.get,set:p.set}:p[c],g);if("accessor"===r){if(void 0===f)continue;if(null===f||"object"!=typeof f)throw new TypeError("Object expected");(l=o(f.get))&&(p.get=l),(l=o(f.set))&&(p.set=l),(l=o(f.init))&&a.unshift(l)}else(l=o(f))&&("field"===r?a.unshift(l):p[c]=l)}d&&Object.defineProperty(d,i.name,p),m=!0}function d(e,t,n){for(var i=arguments.length>2,a=0;a<t.length;a++)n=i?t[a].call(e,n):t[a].call(e);return i?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function m(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function g(e,t,n,i){return new(n||(n=Promise))(function(a,s){function o(e){try{r(i.next(e))}catch(e){s(e)}}function l(e){try{r(i.throw(e))}catch(e){s(e)}}function r(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,l)}r((i=i.apply(e,t||[])).next())})}function h(e,t){var n,i,a,s,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function l(l){return function(r){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(o=0)),o;)try{if(n=1,i&&(a=2&l[0]?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,i=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){o.label=l[1];break}if(6===l[0]&&o.label<a[1]){o.label=a[1],a=l;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(l);break}a[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(e){l=[6,e],i=0}finally{n=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,r])}}}var f=Object.create?function(e,t,n,i){void 0===i&&(i=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,a)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function w(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return o}function x(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function E(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),a=0;for(t=0;t<n;t++)for(var s=arguments[t],o=0,l=s.length;o<l;o++,a++)i[a]=s[o];return i}function v(e,t,n){if(n||2===arguments.length)for(var i,a=0,s=t.length;a<s;a++)!i&&a in t||(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}function I(e){return this instanceof I?(this.v=e,this):new I(e)}function k(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,a=n.apply(e,t||[]),s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(e){a[e]&&(i[e]=function(t){return new Promise(function(n,i){s.push([e,t,n,i])>1||l(e,t)})})}function l(e,t){try{(n=a[e](t)).value instanceof I?Promise.resolve(n.value.v).then(r,c):d(s[0][2],n)}catch(e){d(s[0][3],e)}var n}function r(e){l("next",e)}function c(e){l("throw",e)}function d(e,t){e(t),s.shift(),s.length&&l(s[0][0],s[0][1])}}function C(e){var t,n;return t={},i("next"),i("throw",function(e){throw e}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,a){t[i]=e[i]?function(t){return(n=!n)?{value:I(e[i](t)),done:!1}:a?a(t):t}:a}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=w(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise(function(i,a){!function(e,t,n,i){Promise.resolve(i).then(function(t){e({value:t,done:n})},t)}(i,a,(t=e[n](t)).done,t.value)})}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return N(t,e),t}function D(e){return e&&e.__esModule?e:{default:e}}function O(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function P(e,t,n,i,a){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?a.call(e,n):a?a.value=n:t.set(e,n),n}function A(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:a,__assign:s,__rest:o,__decorate:l,__param:r,__metadata:u,__awaiter:g,__generator:h,__createBinding:f,__exportStar:y,__values:w,__read:b,__spread:x,__spreadArrays:E,__spreadArray:v,__await:I,__asyncGenerator:k,__asyncDelegator:C,__asyncValues:_,__makeTemplateOb
1ject:T,__importStar:S,__importDefault:D,__classPrivateFieldGet:O,__classPrivateFieldSet:P,__classPrivateFieldIn:A}}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.PrintContextConsumer=void 0;var t=n(582),a=n(156),s=n(111),o=Object.prototype.hasOwnProperty.call(a,"createContext"),l=Object.prototype.hasOwnProperty.call(a,"useMemo")&&Object.prototype.hasOwnProperty.call(a,"useCallback"),r=o?a.createContext({}):null;e.PrintContextConsumer=r?r.Consumer:function(){return null};var c={copyStyles:!0,pageStyle:"\n        @page {\n            /* Remove browser default header (title) and footer (url) */\n            margin: 0;\n        }\n        @media print {\n            body {\n                /* Tell browsers to print background colors */\n                -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n                color-adjust: exact; /* Firefox */\n            }\n        }\n    ",removeAfterPrint:!1,suppressErrors:!1},d=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.startPrint=function(e){var t=n.props,i=t.onAfterPrint,a=t.onPrintError,s=t.print,o=t.documentTitle;setTimeout(function(){var t,l;if(e.contentWindow)if(e.contentWindow.focus(),s)s(e).then(function(){return null==i?void 0:i()}).then(function(){return n.handleRemoveIframe()}).catch(function(e){a?a("print",e):n.logMessages(["An error was thrown by the specified `print` function"])});else{if(e.contentWindow.print){var r=null!==(l=null===(t=e.contentDocument)||void 0===t?void 0:t.title)&&void 0!==l?l:"",c=e.ownerDocument.title;o&&(e.ownerDocument.title=o,e.contentDocument&&(e.contentDocument.title=o)),e.contentWindow.print(),o&&(e.ownerDocument.title=c,e.contentDocument&&(e.contentDocument.title=r))}else n.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);null==i||i(),n.handleRemoveIframe()}else n.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])},500)},n.triggerPrint=function(e){var t=n.props,i=t.onBeforePrint,a=t.onPrintError;if(i){var s=i();s&&"function"==typeof s.then?s.then(function(){n.startPrint(e)}).catch(function(e){a&&a("onBeforePrint",e)}):n.startPrint(e)}else n.startPrint(e)},n.handleClick=function(){var e=n.props,t=e.onBeforeGetContent,i=e.onPrintError;if(t){var a=t();a&&"function"==typeof a.then?a.then(n.handlePrint).catch(function(e){i&&i("onBeforeGetContent",e)}):n.handlePrint()}else n.handlePrint()},n.handlePrint=function(){var e=n.props,i=e.bodyClass,a=e.content,o=e.copyStyles,l=e.fonts,r=e.pageStyle,c=e.nonce,d=a();if(void 0!==d)if(null!==d){var p=document.createElement("iframe");p.width="".concat(document.documentElement.clientWidth,"px"),p.height="".concat(document.documentElement.clientHeight,"px"),p.style.position="absolute",p.style.top="-".concat(document.documentElement.clientHeight+100,"px"),p.style.left="-".concat(document.documentElement.clientWidth+100,"px"),p.id="printWindow",p.srcdoc="<!DOCTYPE html>";var m=(0,s.findDOMNode)(d);if(m){var u=m.cloneNode(!0),g=u instanceof Text,h=document.querySelectorAll("link[rel='stylesheet']"),f=g?[]:u.querySelectorAll("img"),y=g?[]:u.querySelectorAll("video"),w=l?l.length:0;n.numResourcesToLoad=h.length+f.length+y.length+w,n.resourcesLoaded=[],n.resourcesErrored=[];var b=function(e,i){n.resourcesLoaded.includes(e)?n.logMessages(["Tried to mark a resource that has already been handled",e],"debug"):(i?(n.logMessages(t.__spreadArray(['"react-to-
1print" was unable to load a resource but will continue attempting to print the page'],t.__read(i),!1)),n.resourcesErrored.push(e)):n.resourcesLoaded.push(e),n.resourcesLoaded.length+n.resourcesErrored.length===n.numResourcesToLoad&&n.triggerPrint(p))};p.onload=function(){var e,a,s,d;p.onload=null;var h=p.contentDocument||(null===(a=p.contentWindow)||void 0===a?void 0:a.document);if(h){h.body.appendChild(u),l&&((null===(s=p.contentDocument)||void 0===s?void 0:s.fonts)&&(null===(d=p.contentWindow)||void 0===d?void 0:d.FontFace)?l.forEach(function(e){var t=new FontFace(e.family,e.source,{weight:e.weight,style:e.style});p.contentDocument.fonts.add(t),t.loaded.then(function(){b(t)}).catch(function(e){b(t,["Failed loading the font:",t,"Load error:",e])})}):(l.forEach(function(e){return b(e)}),n.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var w="function"==typeof r?r():r;if("string"!=typeof w)n.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof w,'". Styles from `pageStyle` will not be applied.')]);else{var x=h.createElement("style");c&&(x.setAttribute("nonce",c),h.head.setAttribute("nonce",c)),x.appendChild(h.createTextNode(w)),h.head.appendChild(x)}if(i&&(e=h.body.classList).add.apply(e,t.__spreadArray([],t.__read(i.split(" ")),!1)),!g){for(var E=g?[]:m.querySelectorAll("canvas"),v=h.querySelectorAll("canvas"),I=0;I<E.length;++I){var k=E[I],C=v[I].getContext("2d");C&&C.drawImage(k,0,0)}var _=function(e){var t=f[e],n=t.getAttribute("src");if(n){var i=new Image;i.onload=function(){return b(t)},i.onerror=function(e,n,i,a,s){return b(t,["Error loading <img>",t,"Error",s])},i.src=n}else b(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',t])};for(I=0;I<f.length;I++)_(I);var T=function(e){var t=y[e];t.preload="auto";var n=t.getAttribute("poster");if(n){var i=new Image;i.onload=function(){return b(t)},i.onerror=function(e,i,a,s,o){return b(t,["Error loading video poster",n,"for video",t,"Error:",o])},i.src=n}else t.readyState>=2?b(t):(t.onloadeddata=function(){return b(t)},t.onerror=function(e,n,i,a,s){return b(t,["Error loading video",t,"Error",s])},t.onstalled=function(){return b(t,["Loading video stalled, skipping",t])})};for(I=0;I<y.length;I++)T(I);var N="input",S=m.querySelectorAll(N),D=h.querySelectorAll(N);for(I=0;I<S.length;I++)D[I].value=S[I].value;var O="input[type=checkbox],input[type=radio]",P=m.querySelectorAll(O),A=h.querySelectorAll(O);for(I=0;I<P.length;I++)A[I].checked=P[I].checked;var R="select",L=m.querySelectorAll(R),$=h.querySelectorAll(R);for(I=0;I<L.length;I++)$[I].value=L[I].value}if(o)for(var z=document.querySelectorAll("style, link[rel='stylesheet']"),M=function(e,t){var i=z[e];if("style"===i.tagName.toLowerCase()){var a=h.createElement(i.tagName),s=i.sheet;if(s){var o="";try{for(var l=s.cssRules.length,r=0;r<l;++r)"string"==typeof s.cssRules[r].cssText&&(o+="".concat(s.cssRules[r].cssText,"\r\n"))}catch(e){n.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",i],"warning")}a.setAttribute("id","react-to-print-".concat(e)),c&&a.setAttribute("nonce",c),a.appendChild(h.createTextNode(o)),h.head.appendChild(a)}}else if(i.getAttribute("href"))if(i.hasAttribute("disabled"))n.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",i],"warning"),b(i);else{for(var d=h.createElement(i.tagName),p=(r=0,i.attributes.length);r<p;++r){var m=i.attributes[r];m&&d.setAttribute(m.nodeName,m.nodeValue||"")}d.onload=function(){return b(d)},d.onerror=function(e,t,n,i,a){return b(d,["Failed to load",d,"Error:",a])},c&&d.setAttribute("nonce",c),h.head.appendChild(d)}
1else n.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",i],"warning"),b(i)},q=(I=0,z.length);I<q;++I)M(I)}0!==n.numResourcesToLoad&&o||n.triggerPrint(p)},n.handleRemoveIframe(!0),document.body.appendChild(p)}else n.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else n.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else n.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},n.handleRemoveIframe=function(e){var t=n.props.removeAfterPrint;if(e||t){var i=document.getElementById("printWindow");i&&document.body.removeChild(i)}},n.logMessages=function(e,t){void 0===t&&(t="error"),n.props.suppressErrors||("error"===t?console.error(e):"warning"===t?console.warn(e):"debug"===t&&console.debug(e))},n}return t.__extends(n,e),n.prototype.render=function(){var e=this.props,t=e.children,n=e.trigger;if(n)return a.cloneElement(n(),{onClick:this.handleClick});if(!r)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var i={handlePrint:this.handleClick};return a.createElement(r.Provider,{value:i},t)},n.defaultProps=c,n}(a.Component);e.default=d,e.useReactToPrint=function(e){if(!l)return e.suppressErrors||console.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var n=a.useMemo(function(){return new d(t.__assign(t.__assign({},c),e))},[e]);return a.useCallback(function(){return n.handleClick()},[n])}}(),i}()),Ke(".print-view-details {\n  display: none;\n}\n\n@media all {\n  .print-view-details {\n    overflow: hidden;\n    height: 0;\n    display: none;\n    font-family: inherit;\n  }\n}\n@media print {\n  .top-wrapper {\n    padding: 50px 40px 0;\n  }\n  .image4x3 {\n    padding: 0 125px;\n  }\n  .print-view-details {\n    overflow: visible;\n    display: block;\n    padding: 60px 40px 40px 40px;\n  }\n  .print-view-details .start-end-date {\n    font-weight: 400;\n    font-size: 12.25px;\n    line-height: 18px;\n  }\n  .print-view-details .heading,\n  .print-view-details .discount,\n  .print-view-details .applicable-trims,\n  .print-view-details .disclaimer-title {\n    font-weight: 600;\n    font-size: 17.5px;\n    line-height: 22px;\n    padding-top: 8px;\n    padding-bottom: 4px;\n  }\n  .print-view-details .applicable-trims {\n    padding-top: 0;\n  }\n  .print-view-details .heading {\n    padding: 8px 0;\n    padding-top: 0;\n  }\n  .print-view-details .discount {\n    padding: 8px 0;\n  }\n  .print-view-details .description,\n  .print-view-details .offer-details {\n    font-weight: 400;\n    font-size: 14px;\n    line-height: 21px;\n    padding-top: 4px;\n    padding-bottom: 4px;\n  }\n  .print-view-details .additional-details,\n  .print-view-details .coupon-code {\n    font-weight: 400;\n    font-size: 12.25px;\n    line-height: 18px;\n    padding: 4px 0;\n  }\n  .print-view-details .disclaimer-title {\n    padding: 18px 0;\n  }\n  .print-view-details .coupon,\n  .print-view-details .details {\n    font-weight: 600;\n  }\n  .dealership {\n    font-size: 24px;\n    font-weight: bold;\n    margin: 0 0 4px 0;\n  }\n  .address1 {\n    margin-top: 8px;\n  }\n  .phone {\n    margin-top: 8px;\n  }\n  .underline {\n    width: 30%;\n    border-bottom: 1px solid;\n    margin: 20px 0;\n  }\n}\n.cta-print {\n  cursor: pointer;\n}");const Tt=(0,s.forwardRef)((e,t)=>{const{componentToPrintRef:n,isDisclosure:i,promoFromExternal:a,accountDataDistributor:r}=e,{aspectRatio:c}=(0,s.useContext)(y),{promo:d}=(0,s.useContext)(w),{title:p,description:m,additionalDetails:u,disclaimer:g,endDateDisplay:h="",startDateDisplay:f="",couponCode:x,type:E,discountType:v,discountValue:I,incentiveId:k,incentiveData:C}=d||a,_=(0,l.useLabels)(),{locale:T}=(0,l.useRequestData)();let N=null,S="";[b.PARTS,b.SERVICE].includes(E)&&"NO_DISCOUNT"!==v&&(N=me(T,v,I,_,null,{display:"flex",alignItems:"",justifyContent:"",fontSize:"14px",labelStyles:{marginBottom:"0px"}})),E===b.INCENTIVE&&k&&C&&(S=`${_.get("OFFER_ONLY_VALIDATE")} ${ae(C.incentiveEffectiveDate,T,{timeZone:"UTC"})} ${_.get("THROUGH")} ${ae(C.incentiveExpirationDate,T,{timeZone:"UTC"})}`);const D=E!==b.INCENTIVE?p:C?.title,O=E===b.INCENTIVE&&C?.offerDetails,P=E!==b.INCENTIVE?g:C?.disclaimer,A=E===b.INCENTIVE&&C.applicableTrims?C.applicableTrims:"",R=E!==b.INCENTIVE?G(f,h,_):S,L=_t.exports.useReactToPrint({content:()=>n.current,documentTitle:c,removeAfterPrint:!1});return(0,s.useImperativeHandle)(t,()=>({onPrintView:L})),o().createElement("div",{className:"print-view-details",style:{fontFamily:"Arial"}},r&&"object"==typeof r&&Object.keys(r).length?(e=>{const{phoneNumbers:t=[],dealerInfo:{name:n="",state:i="",postalCode:a="",address1:s="",address2:l="",address3:r="",city:c=""}={}}=e;return o().createElement(o().Fragment,null,n&&o().createElement("div",{className:"dealership"},n),s&&o().createElement("div",{className:"address1"},`${s}. ${c}, ${i} ${a}`),l&&o().createElement("div",{className:"address2"},`${l}. ${c}, ${i} ${a}`),r&&o().createElement("div",{className:"address3"},`${r}. ${c}, ${i} ${a}`),t.length?o().createElement("div",{className:"phone",dangerouslySetInnerHTML:{__html:ge(t,_)}}):"")})(r):null,o().createElement("div",{className:"underline"}),o().createElement("div",{className:"heading"},D),o().createElement("div",{className:"start-end-date"},o().createElement("div",{dangerouslySetInnerHTML:{__html:R}})),O&&o().createElement("div",{className:"offer-details"},O),m&&o().createElement("div",{className:"description"},m),N&&o().createElement("div",{className:"discount"},N),u&&o().createElement("div",{className:"additional-details"},o().createElement("div",{className:"h5 details"},_.get("DETAILS"),":"),o().createElement("div",null,ue(u))),x&&o().createElement("div",{className:"coupon-code"},o().createElement("div",{className:"h5 coupon"},_.get("COUPON_CODE"),":"),x),A.length>0&&o().createElement(o().Fragment,null,o().createElement("div",{className:"applicable-trims"},_.get("APPLICABLE_TRIMS"),":"),o().createElement("div",null,A)),P&&o().createElement(o().Fragment,null,o().createElement("div",{className:"disclaimer-title"},i?_.get("DISCLOSURE"):_.get("DISCLAIMERS"),":"),o().createElement("div",{className:"text-muted small"},ue(P))))});function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Nt.apply(null,arguments)}Tt.propTypes={promoFromExternal:a().shape({}).isRequired,componentToPrintRef:a().oneOfType([a().func,a().shape({})]).isRequired,isDisclosure:a().bool.isRequired,accountDataDistributor:a().shape({}).isRequired};const St=({id:e,content:t,isExpirationChip:n,classes:i=[],wrapInSpan:a=!1,style:s})=>t?o().createElement("div",{id:a?void 0:e,className:h(["coupon-code",...i,n&&"expire-date-or-coupon-tag"]),style:s},a?o().createElement("span",{className:h(["d-block"]),id:e},t):t):null;St.propTypes={id:a().string,content:a().node,isExpirationChip:a().bool,classes:a().arrayOf(a().string),wrapInSpan:a().bool,style:a().objectOf(a().oneOfType([a().string,a().number]))},St.defaultProps={id:void 0,content:null,isExpirationChip:!1,classes:[],wrapInSpan:!1,style:void 0};const Dt=({styles:e={},optimizedPosition:t})=>{const n={zIndex:0,position:t||"absolute",top:0,bottom:0,left:0,right:0};return o().createElement("div",{className:"image-background",style:{...e,...n}})};Dt.propTypes={styles:a().shape({}),optimizedPosition:a().string},Dt.defaultProps={styles:{},optimizedPosition:""};var Ot=(0,s.memo)(Dt,function(e,t){return JSON.stringify(e)===JSON.stringify(t)});const Pt=({children:e=null,className:t=null,style:n={},width:i,wrapperStyle:a={},optimizedPosition:r,imageUrl:c=null})=>{const{widgetName:d}=(0,l.useRequestData)(),p=n;'url("undefined")'===p.backgroundImage&&delete p.backgroundImage;const m=(e,t)=>
1{const n=new Image;n.onload=()=>ve(e),n.src=t},u=(0,s.useMemo)(()=>{if(c){const e=re(c,i);return e.src&&i>e.width&&m(`${d}-image-container-starting`,e.src),{...p,position:"relative",backgroundImage:e.src?`url("${e.src}")`:"none"}}if(p&&p.backgroundImage){const e=/(.*)url\(["'](.+)["']\)(.*)/.exec(p.backgroundImage.replace(/\t/g,"").replace(/\n/g,""));if(e&&e.length>=4){const[t,n,a,s]=e;if(!a.startsWith("data:")){const e=re(a,i);return e.src&&i>e.width&&m(`${d}-image-container-starting`,e.src),{...p,position:"relative",backgroundImage:e.src?`${n}url("${e.src}")${s}`:`${n}none${s}`}}}}return p},[p,i,c,d]);return o().createElement("div",{className:t,style:a},o().createElement(Ot,{styles:u,optimizedPosition:r}),e)};Pt.propTypes={children:a().node,className:a().string,width:a().number,style:a().shape({}),wrapperStyle:a().shape({}),optimizedPosition:a().string,imageUrl:a().string},Pt.defaultProps={children:null,className:"",width:0,style:{},wrapperStyle:{},optimizedPosition:"",imageUrl:null};const At=(e,t=[])=>(t=[...t,...o().Children.toArray(e)],e&&e.props&&e.props.children?At(e.props.children,t):t),Rt=e=>At(e).map(({key:e,ref:t,type:n,props:{children:i,...a}})=>({key:e,ref:t,type:n,props:a}));var Lt=(0,s.memo)(Pt,function(e,t){const{children:n,...i}=e,{children:a,...s}=t;return JSON.stringify(i)===JSON.stringify(s)&&JSON.stringify(Rt(n))===JSON.stringify(Rt(a))});const $t=(e,t)=>{if(!e)return;e.style.setProperty("font-size","");const n=parseFloat(window.getComputedStyle(e).fontSize);if(e.scrollWidth<=t)return;let i=n;const a=.5*n;for(;e.scrollWidth>t&&i>a;)i-=.5,e.style.setProperty("font-size",`${i}px`,"important");i>a&&(i-=.5,e.style.setProperty("font-size",`${i}px`,"important"))},zt=({primaryText:e,secondaryText:t,suffix:n,type:i,id:a,className:l})=>{const r=(0,s.useRef)(null),c=(0,s.useRef)(null),d=(0,s.useRef)(null);return(0,s.useEffect)(()=>{const e=r.current,t=c.current,i=d.current;if(!t||!e)return;const a=()=>{const a=e.clientWidth;$t(t,a),n||$t(i,a)};a();const s=e.closest(".wsm-specials-display")||e.parentElement,o=new ResizeObserver(a);return o.observe(s),()=>o.disconnect()},[e,t,n]),e?o().createElement("div",{ref:r,className:h(["emphasized-text",n&&"emphasized-text--horizontal",l])},o().createElement("span",{ref:c,id:`emphasized-primary-${i}-${a}`,className:"emphasized-text__primary"},e),n?o().createElement("div",{className:"emphasized-text__right-col"},o().createElement("span",{className:"emphasized-text__suffix"},n),t&&o().createElement("span",{ref:d,id:`emphasized-secondary-${i}-${a}`,className:"emphasized-text__secondary"},t)):t&&o().createElement("span",{ref:d,id:`emphasized-secondary-${i}-${a}`,className:"emphasized-text__secondary"},t)):null};zt.propTypes={primaryText:a().string,secondaryText:a().string,suffix:a().string,type:a().string,id:a().string,className:a().string},zt.defaultProps={primaryText:void 0,secondaryText:void 0,suffix:void 0,type:void 0,id:void 0,className:void 0};const Mt={short_horizontal:{horizontal:{maxWidth:"6.6cqw"},vertical:{maxHeight:"2.7cqw"},square:{maxWidth:"1.8cqw",maxHeight:"1.8cqw"},top:"0.5cqw",left:"0.5cqw"},short_vertical:{horizontal:{maxWidth:"22.8cqw"},vertical:{maxHeight:"12cqw"},square:{maxWidth:"8.4cqw",maxHeight:"8.4cqw"},top:"2cqw",left:"2cqw"},tall_horizontal:{horizontal:{maxWidth:"13.2cqw"},vertical:{maxHeight:"6.6cqw"},square:{maxWidth:"4.5cqw",maxHeight:"4.5cqw"},top:"1.2cqw",left:"1.2cqw"},tall_vertical:{horizontal:{maxWidth:"24.8cqw"},vertical:{maxHeight:"14cqw"},square:{maxWidth:"10.4cqw",maxHeight:"10.4cqw"},top:"2.5cqw",left:"2.5cqw"}},qt={tall_horizontal:"2cqw",short_vertical:"1.6cqw",tall_vertical:"1.6cqw"},Ft=(e,t)=>`calc(${e} + ${t})`,Bt=({logoUrl:e,ratio:t,inset:n,promoType:i,foregroundImage:a})=>{const[l,r]=(0,s.useState)({maxWidth:"80px",maxHeight:"80px"});if(!e)return null;const c=Mt[t]||Mt.short_horizontal,d=n&&!("INCENTIVE"===i&&!a||"VEHICLE"===i&&!a||""===a)&&qt[t],p=d?Ft(c.top,d):c.top,m=d?Ft(c.left,d):c.left;return o().createElement("img",{src:e,alt:"Dealer Logo",onLoad:e=>{const{naturalWidth:t,naturalHeight:n}=e.target,i=((e,t)=>{const n=e/t;return n>1.2?"horizontal":n<.8?"vertical":"square"})(t,n);r(c[i])},style:{position:"absolute",top:p,left:m,...l,objectFit:"contain",zIndex:2}})};Bt.propTypes={logoUrl:a().string,ratio:a().string,inset:a().bool,promoType:a().string,foregroundImage:a().string},Bt.defaultProps={logoUrl:"",ratio:"",inset:!1,promoType:"",foregroundImage:""};const jt=({backgroundImage:e,coordinates:t,stencilContainerRef:n})=>{const{containerDimensions:i}=(0,s.useContext)(w)||{}
1,[a,o]=(0,s.useState)(null),l=(e=>{if(!e)return null;const t=new URL(e).searchParams.get("w");return t?Number(t):null})(e);return(0,s.useEffect)(()=>{if(e&&t&&Object.keys(t).length&&n&&n.current){let a;a=i>0?i:n.current.getBoundingClientRect().width;const{width:s,left:r,top:c}=((e,t,n)=>{if(n===t)return e;const i=n/t;return{width:e.width*i,left:e.left*i,top:e.top*i}})(t,t.originalImageWidth,l);o({backgroundImage:`url(${e})`,backgroundPosition:`-${r*(a/s)}px -${c*(a/s)}px`,backgroundSize:l*(a/s)+"px auto",backgroundRepeat:"no-repeat"})}else o({backgroundColor:"var(--color-neutral-1000)",backgroundImage:e?`url("${e}")`:void 0,backgroundPosition:"center",backgroundSize:"cover",overflow:"hidden"})},[e,t,n,i,l]),a},Vt="undefined"!=typeof window&&window.navigator.userAgent.includes("iPhone")&&window.navigator.userAgent.includes("AppleWebKit"),Ut=({promoIndex:e,description:t,ctaButtonClasses:n,details:i,discountDisplay:a,title:s,couponCode:l,overlayTitleMargin:r,isHorizontalPadding:c,type:d,id:p,isShowAppleWallet:m,emphasizedType:u,primaryText:g,secondaryText:f,labels:y,endDateDisplay:w,showExpirationChip:b,expirationDatePreview:x})=>{const E=("VEHICLE"===d||"EVENT"===d||"INCENTIVE"===d)&&"PRIMARY_TEXT"===u&&g,{chipContent:v,isExpirationChip:I}=K({couponCode:l,showExpirationChip:b,endDateDisplay:w,expirationDatePreview:x,type:d,labels:y});return o().createElement(o().Fragment,null,s?o().createElement("h2",{id:`header-${d}-${p}`,className:h(["promo-title"]),style:{marginTop:r,...c&&{paddingLeft:"2.67%",paddingRight:"2.67%"}}},s):null,o().createElement("div",{className:h(["mid-data-block","d-flex"]),style:{...c&&{paddingLeft:"2.67%",paddingRight:"2.67%"},...E&&{marginTop:"auto",marginBottom:"auto"}}},E&&o().createElement(zt,{primaryText:g,secondaryText:f,type:d,id:p}),!E&&t&&o().createElement("p",{id:`content-${d}-${p}`,className:h(["block-1","m-0","promo-description"]),style:{marginRight:"1.25%"}},t),!E&&a&&o().createElement("div",{id:`discount-${d}-${p}`,className:h(["block-2","font-weight-bold","text-capitalize","discount","align-self-center",t?"text-center":"text-right"])},a)),o().createElement("div",{className:h(["bottom-wrapper","d-block"]),style:c?{paddingLeft:"2.67%",paddingRight:"2.67%",paddingBottom:"2.67%"}:void 0},o().createElement(Et,{promoIndex:e,ctaButtonClasses:n,isShowAppleWallet:m,secondaryButtonStyle:"block"}),o().createElement("div",{className:h(["details-and-code"])},o().createElement("div",null,i),o().createElement("div",{style:{display:"flex",flexDirection:"column"}},o().createElement(St,{id:`coupon-${d}-${p}`,content:v,isExpirationChip:I,classes:["mt-0"]}),m&&o().createElement(vt,{style:{width:"30cqw",height:"fit-content",border:"none",marginTop:"2px"},promoIndex:e})))))},Xt=({applicableVehicle:e,promoIndex:t,discountDisplay:n="",title:i,width:a,triggerPrint:r,offerDetails:c,accountId:d})=>{let p,m="text-light";const u=(0,l.useLabels)(),{reduceDollarSignSize:g,aspectRatio:f}=(0,s.useContext)(y),{promo:x,isMobile:E,designConfig:v={},isDesignConfig:k}=(0,s.useContext)(w),{vehicleImages:C,type:_,inventoryCount:T,imageUrl:N,description:D,id:O,couponCode:P,enabledAppleWallet:A,enabledAppleWalletForPreview:R,emphasizedType:L,endDateDisplay:$,showExpirationChip:z,expirationDatePreview:M,primaryText:q,primarySuffix:F,secondaryText:B,tertiaryText:j}=x,{primaryText:V,primarySuffix:U,secondaryText:X,tertiaryText:H}=Ie({primaryText:q,primarySuffix:F,secondaryText:B,tertiaryText:j}),W=!0===R||A&&Vt;let G,Y,Q,J,Z,ee,te,ne="";const ie=(0,s.useRef)(null);k&&(({background:G,overlay:Q,textColor:m,foreground:Y,sizes:J,logoUrl:ee,thumbnailLayout:Z,noForegroundImage:te}=Ve(v,f)),ne="block"===Q?.style?"2%":"fade"===Q?.style||"slant"===Q?.style?"":"12%");const ae=J?.[I]?.imagePadding,se=["text-light"===m?"btn-inverse":""],oe=h(["pl-0","text-decoration-underline","text-transform-none","text-left"]),le=h(["image-subsection-wrapper","d-flex","flex-row","justify-content-center","align-items-center"]),me=Q?.inset?{paddingLeft:"2.67%",paddingRight:"2.67%"}:void 0,ue=fe(u,T),ge=h(["promo-data-section","w-100","d-flex","flex-column",Q?"overlay-styles-applied":"","fade"===Q?.style?"overlay-styles-fade":"","slant"===Q?.style?"overlay-styles-slant":"","flex-shrink-0","align-middle",m]),we=Q?.inset?{paddingLeft:"2.67%",paddingRight:"2.67%",paddingBottom:"2.67%"}:{padding:"2.6%"},be=J?.[I]?.backgroundImageCoordinates?.originalImageWidth||0,xe=pe(J,I,"foreground"),Ee=pe(J,I,"background"),ve=re(G?.backgroundImage,a,be),ke=jt({backgroundImage:ve.src,coordinates:J?.[I]?.backgroundImageCoordinates,stencilContainerRef:ie}),Ce=ce({background:G,width:a,bkgImageWidth:be}
1),_e=Ee?ce({background:G,croppedBackgroundImage:Ee,width:a,bkgImageWidth:be}):ye({croppedBackgroundStyles:ke,defaultStyles:Ce,sizes:J,placementName:I});if([b.PARTS,b.SERVICE,b.EVENT].includes(_)){const e=()=>{let e;if(Q?.inset)switch(Q?.style){case"fade":e="55%";break;case"slant":e="57%";break;default:e="50%"}return e};p=o().createElement("div",{ref:ie,style:_e,className:h([`promo-type-${_.toLowerCase()}`,"d-flex","flex-column","w-100","h-100","justify-content-between"])},o().createElement(Bt,{logoUrl:ee,ratio:S.get(f),inset:!!Q?.inset,promoType:_,foregroundImage:xe||Y}),o().createElement(Ge,{aspectRatio:"9x16ImageAspect"},!te&&o().createElement(Lt,Nt({},Q?.inset&&{optimizedPosition:"relative"},{className:h(["image",Q?.inset&&"box-inset-x box-inset-t"]),style:{backgroundImage:`url("${Pe}")`,backgroundPosition:"center",height:Q?.inset?"100%":"",backgroundSize:"cover",backgroundColor:"transparent"},imageUrl:xe||Y||N,wrapperStyle:{height:Q?.inset?"100%":"",...Q?.inset&&{padding:"2.67%",paddingBottom:0}},width:a}))),o().createElement("div",{className:ge,style:{flexBasis:"50%",position:"relative",bottom:Q?.inset?"0":"",height:e(),...Be({overlay:Q,useContentColorMix:!0,isReverse:!1,isVertical:!0,insetVisible:!0,ratio:f}),...we}},Ut({ctaButtonClasses:se,overlayTitleMargin:ne,isHorizontalPadding:Q?.inset,description:he(D,g),details:o().createElement(It,{btnSize:"sm",classes:oe,ctaButtonClasses:se,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)}),textColor:m}),discountDisplay:n,labels:u,couponCode:P,promoIndex:0,title:he(i,g),type:_,id:O,isShowAppleWallet:W,emphasizedType:L,primaryText:V,secondaryText:X,endDateDisplay:$,showExpirationChip:z,expirationDatePreview:M})))}else if(_===b.VEHICLE){const e=$e(C,Y,Z),s=Be({overlay:Q,useContentColorMix:!0,isReverse:!1,isVertical:!0,insetVisible:!0,ratio:f});p=o().createElement("div",{className:h(["promo-type-vehicle","d-flex","flex-column","w-100","h-100","justify-content-between"]),ref:ie,style:_e},o().createElement(Bt,{logoUrl:ee,ratio:S.get(f),inset:!!Q?.inset,promoType:_,foregroundImage:xe||Y}),o().createElement(Ge,{aspectRatio:"9x16ImageAspect",wrapperStyleClasses:e?"has-thumbnail-layout "+("collage"===Z?"collage-layout":""):""},!te&&(xe?o().createElement(Lt,Nt({},ae&&{optimizedPosition:"relative"},{className:h(["image",ae&&"box-inset-x box-inset-t"]),style:{backgroundImage:`url("${Pe}")`,backgroundPosition:"center",height:ae?"100%":"",backgroundSize:ae?"contain":"cover",backgroundColor:"transparent",backgroundRepeat:"no-repeat",...ae&&{padding:"7%",backgroundOrigin:"content-box"}},imageUrl:xe||Y||N,wrapperStyle:{height:ae?"100%":"",...ae&&{padding:"2.67%",paddingBottom:0}},width:a})):o().createElement("div",{key:O,className:le,style:{zIndex:1,position:"relative"}},Me(C,C.length>1?a:100,E,C.length>1?50:30,{title:ue.title,subtitle:ue.subtitle},"vehicle-image",!0,Y,f,Z,Q,ae)))),o().createElement("div",{className:ge,style:{...s,...we}},Ut({ctaButtonClasses:se,overlayTitleMargin:ne,isHorizontalPadding:Q?.inset,description:he(D,g),details:o().createElement(It,{btnSize:"sm",classes:oe,ctaButtonClasses:se,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)}),textColor:m}),discountDisplay:n,labels:u,couponCode:P,promoIndex:0,title:he(i,g),type:_,id:O,isShowAppleWallet:W,emphasizedType:L,primaryText:V,secondaryText:X,endDateDisplay:$,showExpirationChip:z,expirationDatePreview:M})))}else if(_&&_===b.INCENTIVE){const n=Be({overlay:Q,useContentColorMix:!0,isReverse:!1,isVertical:!0,insetVisible:!0,ratio:f}),{chipContent:s,isExpirationChip:l}=K({couponCode:P,showExpirationChip:z,endDateDisplay:$,expirationDatePreview:M,type:_,labels:u});p=o().createElement("div",{ref:ie,style:_e,className:h(["promo-type-incentive","d-flex","flex-column","w-100","h-100","justify-content-between"])},o().createElement(Bt,{logoUrl:ee,ratio:S.get(f),inset:!!Q?.inset,promoType:_,foregroundImage:xe||Y}),o().createElement(Ge,{aspectRatio:"9x16ImageAspect"},!te&&(Y?o().createElement(Lt,Nt({},Q?.inset&&{optimizedPosition:"relative"},{className:h(["image",Q?.inset&&"box-inset-x box-inset-t"]),style:{backgroundImage:`url("${Pe}")`,backgroundPosition:"center",height:Q?.inset?"100%":"",backgroundSize:"cover",backgroundColor:"transparent"},imageUrl:xe||Y,wrapperStyle:{height:Q?.inset?"100%":""},width:a})):o().createElement("div",{className:le,style:{flexBasis:"50%",alignItems:"center",...me}},qe(te,N,de(a,I),"",E,75,{title:ue.title,subtitle:ue.subtitle})))),o().createElement("div",{className:ge,style:{flexBasis:a/2+"px",...n,...we}},o().createElement("div",{className:h(["h-100 d-flex flex-column"]),style:{...we}},e||i?o().createElement("h2",{id:`header-${_}-${O}`,className:h(["promo-title"]),style:{marginTop:ne}},e,!("PRIMARY_TEXT"===L&&V)&&i&&o().createElement("span",{className:h(["font-weight-normal","w-100","d-block"]),style:{paddingTop:"2.6%"}},he(i,g))):null,o().createElement("div",{className:h(["my-auto","d-flex","flex-column"])},"PRIMARY_TEXT"===L&&V&&o().createElement(zt,{primaryText:V,secondaryText:X,suffix:U,type:_,id:O}),"PRIMARY_TEXT"===L&&V&&H&&o().createElement("p",{id:`tertiary-${_}-${O}`},H),!("PRIMARY_TEXT"===L&&V)&&c&&o().createElement("p",{id:`content-${_}-${O}`},he(c,g))),o().createElement("div",{className:h(["bottom-wrapper","w-100"])},o().createElement("div",{className:h(["buttons-wrapper","w-100"])}
1,o().createElement(Et,{promoIndex:t,ctaButtonClasses:se,isShowAppleWallet:W,secondaryButtonStyle:"block"}),o().createElement("div",{className:h(["w-100","d-flex","align-items-end","justify-content-between"])},o().createElement(It,{btnSize:"sm",classes:oe,ctaButtonClasses:se,applicableVehicle:e,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)}),textColor:m}),o().createElement("div",{style:{display:"flex",flexDirection:"column"}},o().createElement(St,{id:`coupon-${_}-${O}`,content:s,isExpirationChip:l,classes:["mt-0"],style:{paddingTop:"1.25%"}}),W&&o().createElement(vt,{style:{width:"30cqw",height:"fit-content",border:"none",marginTop:"2px"},promoIndex:t}))))))))}return o().createElement("div",{className:h(["expanded-bg-image","h-100"]),style:{background:`${_e?.backgroundImage} ${_e?.backgroundPosition?.split(" ")[0]} 100% / ${_e?.backgroundSize}`}},p)};Xt.propTypes={...Z};const Ht=({applicableVehicle:e,promoIndex:t,discountDisplay:n="",title:i,width:a,triggerPrint:l,offerDetails:r,accountId:c})=>{const{aspectRatio:d}=(0,s.useContext)(y),{widgetName:p}=(0,s.useContext)(w);return o().createElement("div",{className:"desktop-9-16-wrapper h-100"},o().createElement(Ge,{aspectRatio:d,allowOverflow:!0},o().createElement(Xt,{applicableVehicle:e,promoIndex:t,discountDisplay:n,title:i,width:a,triggerPrint:l,widgetName:p,offerDetails:r,accountId:c})))};Ht.propTypes=Z;const Wt=({couponCode:e,promoIndex:t,ctaButtonClasses:n,details:i,labels:a,type:s,id:l,endDateDisplay:r,showExpirationChip:c,expirationDatePreview:d})=>{const{chipContent:p,isExpirationChip:m}=K({couponCode:e,showExpirationChip:c,endDateDisplay:r,expirationDatePreview:d,type:s,labels:a});return o().createElement(o().Fragment,null,o().createElement("div",{className:h(["cta-wrapper"])},o().createElement(Et,{promoIndex:t,ctaButtonClasses:h([n])}),o().createElement("div",{className:h(["text-nowrap"])},i),o().createElement(St,{id:`coupon-${s}-${l}`,content:p,isExpirationChip:m,classes:["text-center","d-inline-block"],wrapInSpan:!0})))};Ke("/* stylelint-disable unit-no-unknown, property-no-unknown, scss/at-rule-no-unknown */\n/* stylelint-disable unit-no-unknown, property-no-unknown, scss/at-rule-no-unknown */\n.aspect-ratio-10-1 {\n  height: 0;\n  padding-bottom: 0;\n  padding-top: calc(1 / 10 * 100%);\n  width: 100%;\n  box-sizing: border-box;\n  position: relative;\n}\n\n.wsm-specials-display.desktop10x1 .promo-type-vehicle.has-thumbnail-layout > .image {\n  flex: 0 0 30% !important;\n  width: 30% !important;\n  max-width: 30% !important;\n  overflow: hidden !important;\n}\n.wsm-specials-display.desktop10x1 .promo-type-vehicle.has-thumbnail-layout > .image .image-subsection-wrapper {\n  height: 100% !important;\n}\n.wsm-specials-display.desktop10x1 .promo-type-vehicle.has-thumbnail-layout > .promo-info {\n  flex: 1 1 70% !important;\n  width: 70% !important;\n  max-width: 70% !important;\n  min-width: 0 !important;\n}\n.wsm-specials-display.desktop10x1 h2 {\n  line-height: 1;\n}\n.wsm-specials-display.desktop10x1 .promo-type-incentive .emphasized-text--horizontal {\n  gap: 0.44cqw;\n}\n.wsm-specials-display.desktop10x1 .promo-type-incentive .emphasized-text--horizontal .emphasized-text__primary {\n  font-size: 3.72cqw;\n}\n.wsm-specials-display.desktop10x1.custom-asset img {\n  width: 100%;\n}\n.wsm-specials-display.desktop10x1.custom-asset .details-and-disclaimer-button {\n  height: auto;\n  bottom: -20px;\n}\n.wsm-specials-display.desktop10x1 .discount {\n  line-height: 1.2;\n}\n.wsm-specials-display.desktop10x1 .image {\n  width: 20%;\n  height: 100%;\n}\n.wsm-specials-display.desktop10x1 .promo-info {\n  top: 0;\n}\n.wsm-specials-display.desktop10x1 .promo-info.extended-width {\n  width: 80%;\n}\n.wsm-specials-display.desktop10x1 .padding-2 {\n  padding-left: 2%;\n}\n.wsm-specials-display.desktop10x1 .padding-8 {\n  padding-left: 8%;\n}\n.wsm-specials-display.desktop10x1 .promo-type-service .promo-info,\n.wsm-specials-display.desktop10x1 .promo-type-parts .promo-info,\n.wsm-specials-display.desktop10x1 .promo-type-event .promo-info,\n.wsm-specials-display.desktop10x1 .promo-type-vehicle .promo-info {\n  z-index: 1;\n}\n.wsm-specials-display.desktop10x1 .box-inset {\n  padding: 2.67% 0;\n}\n.wsm-specials-display.desktop10x1 .box-inset-left {\n  padding-left: 2.67%;\n}\n.wsm-specials-display.desktop10x1 .box-inset-right {\n  padding-right: 2.67%;\n}\n\n.wsm-specials-display.desktop10x1 h2 {\n  font-size: 2cqw;\n  margin: 0 0 0.5%;\n}\n.wsm-specials-display.desktop10x1 h2 span {\n  font-size: 2.3cqw;\n}
1\n.wsm-specials-display.desktop10x1 .no-image-container span,\n.wsm-specials-display.desktop10x1 .no-image-container h2 {\n  font-size: 1.3cqw;\n}\n.wsm-specials-display.desktop10x1 p {\n  font-size: 1.3cqw;\n  margin: 0 0 0.5%;\n}\n.wsm-specials-display.desktop10x1 .asset-disclaimer button {\n  font-size: 1.2cqw;\n}\n.wsm-specials-display.desktop10x1 .discount {\n  font-size: 2.5cqw;\n  line-height: 1;\n}\n.wsm-specials-display.desktop10x1 .emphasized-text__primary {\n  font-size: 2.5cqw;\n}\n.wsm-specials-display.desktop10x1 .emphasized-text__secondary {\n  font-size: 1.3cqw;\n}\n.wsm-specials-display.desktop10x1 .emphasized-text__suffix {\n  font-size: 1.3cqw;\n}\n.wsm-specials-display.desktop10x1 .load-more {\n  font-size: 1.3cqw;\n}\n.wsm-specials-display.desktop10x1 .cta-wrapper a,\n.wsm-specials-display.desktop10x1 .cta-wrapper button, .wsm-specials-display.desktop10x1 .bottom-wrapper a,\n.wsm-specials-display.desktop10x1 .bottom-wrapper button {\n  font-size: 1.2cqw;\n}\n.wsm-specials-display.desktop10x1 .details-and-disclaimer-button {\n  font-size: 1.2cqw;\n}\n.wsm-specials-display.desktop10x1 .coupon-code {\n  font-size: 1.2cqw;\n}\n.wsm-specials-display.desktop10x1 .expire-date-or-coupon-tag {\n  background-color: #CEE2FF;\n  color: #00528A;\n  border-radius: 999px;\n  padding: 0.3em 0.6em;\n  font-size: 1.2cqw;\n  font-weight: 600;\n  text-align: center;\n  display: inline-block;\n}\n.wsm-specials-display.desktop10x1 .expire-date-or-coupon-tag {\n  padding: 0.1em 0.5em;\n}");const Kt=({applicableVehicle:e="",promoIndex:t,discountDisplay:n="",title:i,width:a,triggerPrint:r,offerDetails:c,accountId:d})=>{let p,m="text-light";const u=(0,l.useLabels)(),{promo:g,isMobile:f,designConfig:v={},isDesignConfig:I}=(0,s.useContext)(w),{reduceDollarSignSize:k,aspectRatio:C}=(0,s.useContext)(y),{id:_,imageUrl:T,type:N,vehicleImages:D,description:O,couponCode:P,emphasizedType:A,endDateDisplay:R,showExpirationChip:L,expirationDatePreview:$,primaryText:z,primarySuffix:M,secondaryText:q,tertiaryText:F}=g,{primaryText:B,primarySuffix:j,secondaryText:V,tertiaryText:U}=Ie({primaryText:z,primarySuffix:M,secondaryText:q,tertiaryText:F});let X,H,W,K,G,Y,Q,J="padding-2",Z="20%";const ee=(0,s.useRef)(null);if(I){({background:X,overlay:W,textColor:m,foreground:H,sizes:K,logoUrl:Y,thumbnailLayout:G,noForegroundImage:Q}=Ve(v,C));const e="block"===W?.style;J=e?"padding-2":"padding-8",Z=e?"20%":"22%"}const te=K?.[x]?.imagePadding,ne=["text-light"===m?"btn-inverse":""],ie=h(["pr-0","text-decoration-underline","text-transform-none"]),ae=h(["d-flex","justify-content-center",m]),se=fe(u,g.inventoryCount),oe=re(X?.backgroundImage,a),le=pe(K,x,"foreground"),me=pe(K,x,"background"),ue=jt({backgroundImage:oe.src,coordinates:K?.[x]?.backgroundImageCoordinates,stencilContainerRef:ee}),ge=ce({background:X,width:a}),we=me?ce({background:X,croppedBackgroundImage:me,width:a}):ye({croppedBackgroundStyles:ue,defaultStyles:ge,sizes:K,placementName:x});if([b.PARTS,b.SERVICE,b.EVENT].includes(N)&&(p=o().createElement("div",{ref:ee,className:h([`promo-type-${N.toLowerCase()}`,"w-100","d-flex","h-100",""]),style:we},o().createElement(Bt,{logoUrl:Y,ratio:S.get(C),promoType:N,foregroundImage:le||H}),!Q&&o().createElement(Lt,{key:_,className:h(["image","d-flex"]),style:{backgroundImage:`url("${Pe}")`,backgroundPosition:"center",backgroundSize:"cover",width:le&&"block"===W?.style&&!W?.inset?"100%":Z},imageUrl:le||H||T,width:de(a,x),optimizedPosition:le&&"block"===W?.style&&!W?.inset&&"relative"}),o().createElement("div",{className:h(["promo-info","d-flex","h-100"]),style:{...Be({overlay:W,useContentColorMix:!0}),width:"block"===W?.style?"80%":"100%",position:Q&&"absolute",right:Q&&"0"}},o().createElement("div",{className:h([ae,"text","flex-column",J]),style:{flex:2}},i?o().createElement("h2",{className:h(["font-weight-bold"]),id:`header-${N}-${_}`},he(i,k)):null,"PRIMARY_TEXT"!==A&&O&&o().createElement("p",{id:`content-${N}-${_}`,className:h(["description"])},he(O,k))),"PRIMARY_TEXT"===A?o().createElement("div",{className:h(["d-flex","align-items-center","justify-content-end",m]),style:{flex:1,minWidth:0,overflow:"hidden"}},o().createElement(zt,{primaryText:B,secondaryText:V})):n&&o().createElement("div",{className:h(["d-flex","align-items-center","justify-content-end","font-weight-bold","text-capitalize","discount",m]),style:{flex:1},id:`discount-${N}-${_}`},n),o().createElement("div",{className:h(["d-flex","text-right","align-items-center","justify-content-end",m]),style:{flex:1,paddingRight:"2.5%"}}
1,Wt({couponCode:P,promoIndex:t,ctaButtonClasses:ne,details:o().createElement(It,{btnSize:"sm",classes:ie,ctaButtonClasses:ne,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)}),textColor:m}),labels:u,type:N,id:_,endDateDisplay:R,showExpirationChip:L,expirationDatePreview:$}))))),N&&N===b.VEHICLE){const e=h(["image-subsection-wrapper","d-flex",D&&1===D.length?"single-vehicle-image-wrapper":"flex-row","justify-content-center","align-items-center","flex-shrink-0","align-middle"]),n=Be({overlay:W,useContentColorMix:!0}),s=$e(D,H,G);p=o().createElement("div",{ref:ee,className:h(["promo-type-vehicle","w-100","d-flex","h-100","",s&&"has-thumbnail-layout"]),style:we},o().createElement(Bt,{logoUrl:Y,ratio:S.get(C),promoType:N,foregroundImage:le||H}),o().createElement("div",{className:h(["image","d-flex","justify-content-center","align-items-center"])},!Q&&(le?o().createElement(Lt,{optimizedPosition:te||"block"===W?.style?"relative":"absolute",key:_,className:h(["image","d-flex","w-100",te?"box-inset box-inset-left":""]),style:{backgroundImage:`url("${Pe}")`,backgroundPosition:"center",width:te||"block"===W?.style?"100%":"22%",backgroundSize:te?"contain":"cover",backgroundRepeat:"no-repeat"},imageUrl:le,width:de(a,E),wrapperStyle:te?{padding:"5%"}:{}}):o().createElement("div",{key:_,className:e,style:{zIndex:1,flexBasis:"100%",alignItems:"center",height:"auto",padding:"5%"}},Me(D,a,f,D.length>1?30:50,{title:se.title,subtitle:se.subtitle},"vehicle-image",!0,H,C,G,W,te)))),o().createElement("div",{className:h(["promo-info","block"!==W?.style?"w-100":"extended-width","d-flex","h-100",W&&W.blur?"blur":""]),style:n},o().createElement("div",{className:h([ae,"flex-column",J]),style:{flex:2}},i?o().createElement("h2",{id:`header-${N}-${_}`},he(i,k),o().createElement("span",{className:"sr-only"},he(i,k))):null,"PRIMARY_TEXT"!==A&&O&&o().createElement("p",{id:`content-${N}-${_}`,className:h(["description"])},he(O,k))),"PRIMARY_TEXT"===A&&o().createElement("div",{className:h(["d-flex","align-items-center","justify-content-end",m]),style:{flex:1,minWidth:0,overflow:"hidden"}},o().createElement(zt,{primaryText:B,secondaryText:V})),o().createElement("div",{className:h([ae,"text-right","flex-column","align-items-end"]),style:{flex:1,marginLeft:"2cqw",paddingRight:"2.5%"}},Wt({couponCode:P,ctaButtonClasses:ne,details:o().createElement(It,{btnSize:"sm",classes:ie,ctaButtonClasses:ne,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)}),textColor:m}),labels:u,type:N,id:_,endDateDisplay:R,showExpirationChip:L,expirationDatePreview:$}))))}if(N&&N===b.INCENTIVE){const n="PRIMARY_TEXT"===A&&B;p=o().createElement("div",{ref:ee,className:h(["promo-type-incentive","w-100","d-flex","h-100","",Q?"justify-content-end":""]),style:we},o().createElement(Bt,{logoUrl:Y,ratio:S.get(C),promoType:N,foregroundImage:le||H}),!Q&&(H?o().createElement(Lt,{key:_,className:h(["image","d-flex"]),style:{backgroundImage:`url("${Pe}")`,backgroundPosition:"center",backgroundSize:"cover",width:le&&"block"===W?.style&&!W?.inset?"100%":Z},imageUrl:le||H,width:de(a,x),optimizedPosition:le&&"block"===W?.style&&!W?.inset&&"relative"}):o().createElement("div",{key:_,className:h(["image","d-flex","position-relative","justify-content-center","align-items-center"])},qe(Q,T,a/2,"",f,65,{title:se.title,subtitle:se.subtitle,aspectRatio:"desktop10x1"}))),o().createElement("div",{className:h(["promo-info","d-flex","h-100","block"!==W?.style&&H&&!Q?"w-100":"","extended-width"]),style:{...Be({overlay:W,useContentColorMix:!0}),zIndex:111}},o().createElement("div",{className:h([ae,"w-100",J,n?"justify-content-between align-items-center":""])},n?o().createElement(o().Fragment,null,e?o().createElement("h2",{id:`header-${N}-${_}`},e):null,o().createElement("div",null,n&&o().createElement(zt,{primaryText:B,secondaryText:V,suffix:j,type:N,id:_}),n&&B&&U&&o().createElement("p",null,U),!n&&c&&o().createElement("p",{id:`content-${N}-${_}`},he(c,k)))):o().createElement("div",{className:h(["left-section","d-flex","flex-column","justify-content-center"])},e?o().createElement("h2",{id:`header-${N}-${_}`},e):null,o().createElement("p",{id:`content-${N}-${_}`},he(i,k))),o().createElement("div",{className:h([ae,"flex-column","text-right","align-items-end"]),style:{...n?{}:{flex:1},paddingRight:"2.67%"}}
1,Wt({couponCode:P,promoIndex:t,ctaButtonClasses:ne,details:o().createElement(It,{promoIndex:t,btnSize:"sm",classes:ie,applicableVehicle:e,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)}),textColor:m}),labels:u,type:N,id:_,endDateDisplay:R,showExpirationChip:L,expirationDatePreview:$})))))}return o().createElement(Ge,{aspectRatio:C},p)};Kt.propTypes=Z,Ke('/* stylelint-disable unit-no-unknown, property-no-unknown, scss/at-rule-no-unknown */\n/* stylelint-disable unit-no-unknown, property-no-unknown, scss/at-rule-no-unknown */\n.aspect-ratio-9-16 {\n  height: 0;\n  padding-bottom: 0;\n  padding-top: calc(16 / 9 * 100%);\n  width: 100%;\n  box-sizing: border-box;\n  position: relative;\n}\n\n.wsm-specials-display.desktop9x16 [class^=aspect-ratio-].has-thumbnail-layout, .wsm-specials-display.mobile9x16 [class^=aspect-ratio-].has-thumbnail-layout {\n  flex: 0 0 33.5% !important;\n  overflow: hidden !important;\n}\n.wsm-specials-display.desktop9x16 [class^=aspect-ratio-].has-thumbnail-layout.collage-layout, .wsm-specials-display.mobile9x16 [class^=aspect-ratio-].has-thumbnail-layout.collage-layout {\n  flex: 0 0 25% !important;\n  margin-top: 8%;\n}\n.wsm-specials-display.desktop9x16 [class^=aspect-ratio-].has-thumbnail-layout ~ .promo-data-section, .wsm-specials-display.mobile9x16 [class^=aspect-ratio-].has-thumbnail-layout ~ .promo-data-section {\n  flex: 0 0 66.5% !important;\n}\n.wsm-specials-display.desktop9x16.single-vehicle-image-wrapper img, .wsm-specials-display.mobile9x16.single-vehicle-image-wrapper img {\n  max-height: -webkit-fill-available;\n}\n.wsm-specials-display.desktop9x16.single-vehicle-image-wrapper + .promo-data-section, .wsm-specials-display.mobile9x16.single-vehicle-image-wrapper + .promo-data-section {\n  min-height: unset;\n}\n.wsm-specials-display.desktop9x16 .desktop-9-16-wrapper::after, .wsm-specials-display.mobile9x16 .desktop-9-16-wrapper::after {\n  content: "";\n  display: block;\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  top: 0;\n  left: 0;\n  backdrop-filter: blur(5px);\n  z-index: 0;\n  transform: translateZ(0);\n  -webkit-backface-visibility: hidden;\n}\n.wsm-specials-display.desktop9x16 .desktop-9-16-wrapper [class*=promo-type-], .wsm-specials-display.mobile9x16 .desktop-9-16-wrapper [class*=promo-type-] {\n  position: relative;\n  z-index: 1;\n}\n\n.slick-list.ws-specials-slide-transitioning .desktop-9-16-wrapper::after {\n  backdrop-filter: none;\n}\n\n.wsm-specials-display.desktop9x16 .promo-data-section, .wsm-specials-display.mobile9x16 .promo-data-section {\n  background-color: #000;\n  flex: 1;\n  min-height: 50%;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section .emphasized-text__primary, .wsm-specials-display.mobile9x16 .promo-data-section .emphasized-text__primary {\n  font-size: 17.94cqw;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section .emphasized-text__secondary, .wsm-specials-display.mobile9x16 .promo-data-section .emphasized-text__secondary {\n  font-size: 4.48cqw;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section .emphasized-text--horizontal, .wsm-specials-display.mobile9x16 .promo-data-section .emphasized-text--horizontal {\n  gap: 1.79cqw;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section .emphasized-text--horizontal .emphasized-text__primary, .wsm-specials-display.mobile9x16 .promo-data-section .emphasized-text--horizontal .emphasized-text__primary {\n  font-size: 17.94cqw;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section .emphasized-text--horizontal .emphasized-text__secondary, .wsm-specials-display.mobile9x16 .promo-data-section .emphasized-text--horizontal .emphasized-text__secondary {\n  font-size: 4.48cqw;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section.overlay-styles-applied, .wsm-specials-display.mobile9x16 .promo-data-section.overlay-styles-applied {\n  background-color: unset;\n  z-index: 1;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section.overlay-styles-fade, .wsm-specials-display.desktop9x16 .promo-data-section.overlay-styles-slant, .wsm-specials-display.mobile9x16 .promo-data-section.overlay-styles-fade, .wsm-specials-display.mobile9x16 .promo-data-section.overlay-styles-slant {\n  margin-top: -30px;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section.overlay-styles-fade .promo-title, .wsm-specials-display.desktop9x16 .promo-data-section.overlay-styles-slant .promo-title, .wsm-specials-display.mobile9x16 .promo-data-section.overlay-styles-fade .promo-title, .wsm-specials-display.mobile9x16 .promo-data-section.overlay-styles-slant .promo-title {\n  margin-top: 30px;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section .block-1, .wsm-specials-display.mobile9x16 .promo-data-section .block-1 {\n  flex: 2;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section .block-2, .wsm-specials-display.mobile9x16 .promo-data-section .block-2 {\n  flex: 1;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section .bottom-wrapper, .wsm-specials-display.mobile9x16 .promo-data-section .bottom-wrapper {\n  margin-top: auto;\n  display: flex;\n  justify-content: space-between;\n  margin-top: auto;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section .bottom-wrapper .details-and-code, .wsm-specials-display.mobile9x16 .promo-data-section .bottom-wrapper .details-and-code {\n  display: flex;\n  gap: 4px;\n  justify-content: space-between;\n  align-items: end;\n}\n.wsm-specials-display.desktop9x16 .promo-data-section .bottom-wrapper .coupon-code, .wsm-specials-display.mobile9x16 .promo-data-section .bottom-wrapper .coupon-code {\n  margin-top: auto;\n  text-align: right;\n}\n.wsm-specials-display.desktop9x16 .box-inset-x, .wsm-specials-display.mobile9x16 .box-inset-x {\n  padding: 0 2.67%;\n}\n.wsm-specials-display.desktop9x16 .box-inset, .wsm-specials-display.mobile9x16 .box-inset {\n  padding: 2.67%;\n}\n.wsm-specials-display.desktop9x16 .box-inset-b, .wsm-specials-display.mobile9x16 .box-inset-b {\n  padding-bottom: 2.67%;\n}\n.wsm-specials-display.desktop9x16 .box-inset-t, .wsm-specials-display.mobile9x16 .box-inset-t {\n  padding-top: 2.67%;\n}\n\n.wsm-specials-display.desktop9x16 h2 {\n  font-size: 5.5cqw;\n  margin: 0 0 0.5%;\n}\n.wsm-specials-display.desktop9x16 h2 span {\n  font-size: 5cqw;\n}\n.wsm-specials-display.desktop9x16 .no-image-container span,\n.wsm-specials-display.desktop9x16 .no-image-container h2 {\n  font-size: 4cqw;\n}\n.wsm-specials-display.desktop9x16 p {\n  font-size: 4cqw;\n  margin: 0 0 0.5%;\n}\n.wsm-specials-display.desktop9x16 .asset-disclaimer button {\n  font-size: 3cqw;\n}\n.wsm-specials-display.desktop9x16 .discount {\n  font-size: 6cqw;\n  line-height: 1;\n}\n.wsm-specials-display.desktop9x16 .emphasized-text__primary {\n  font-size: 6cqw;\n}\n.wsm-specials-display.desktop9x16 .emphasized-text__secondary {\n  font-size: 4cqw;\n}\n.wsm-specials-display.desktop9x16 .emphasized-text__suffix {\n  font-size: 4cqw;\n}\n.wsm-specials-display.desktop9x16 .load-more {\n  font-size: 4cqw;\n}\n.wsm-specials-display.desktop9x16 .cta-wrapper a,\n.wsm-specials-display.desktop9x16 .cta-wrapper button, .wsm-specials-display.desktop9x16 .bottom-wrapper a,\n.wsm-specials-display.desktop9x16 .bottom-wrapper button {\n  font-size: 3cqw;\n}\n.wsm-specials-display.desktop9x16 .details-and-disclaimer-button {\n  font-size: 3cqw;\n}\n.wsm-specials-display.desktop9x16 .coupon-code {\n  font-size: 3cqw;\n}\n.wsm-specials-display.desktop9x16 .expire-date-or-coupon-tag {\n  background-color: #CEE2FF;\n  color: #00528A;\n  border-radius: 999px;\n  padding: 0.3em 0.6em;\n  font-size: 3cqw;\n  font-weight: 600;\n  text-align: center;\n  display: inline-block;\n}\n.wsm-specials-display.mobile9x16 .coupon-code {\n  font-size: 3cqw;\n}\n.wsm-specials-display.mobile9x16 .expire-date-or-coupon-tag {\n  background-color: #CEE2FF;\n  color: #00528A;\n  border-radius: 999px;\n  padding: 0.3em 0.6em;\n  font-size: 2.5cqw;\n  font-weight: 600;\n  text-align: center !important;\n  display: inline-block;\n}');const Gt=({applicableVehicle:e,promoIndex:t,discountDisplay:n="",title:i,width:a,triggerPrint:l,offerDetails:r,accountId:c})=>{const{aspectRatio:d}=(0,s.useContext)(y);return o().createElement("div",{className:"mobile-9-16-wrapper"},o().createElement(Ge,{aspectRatio:d},Xt({applicableVehicle:e,promoIndex:t,discountDisplay:n,title:i,width:a,triggerPrint:l,offerDetails:r,accountId:c})))};Gt.propTypes=Z;
1const Yt=({couponCode:e,promoIndex:t,ctaButtonClasses:n,details:i,labels:a,type:s,id:l,emphasizedType:r,endDateDisplay:c,showExpirationChip:d,expirationDatePreview:p})=>{const{chipContent:m,isExpirationChip:u}=K({couponCode:e,showExpirationChip:d,endDateDisplay:c,expirationDatePreview:p,type:s,labels:a});return o().createElement(o().Fragment,null,o().createElement("div",{className:h(["cta-wrapper"]),style:"PRIMARY_TEXT"===r?{marginTop:"1cqw"}:{}},o().createElement(Et,{promoIndex:t,ctaButtonClasses:h([n]),secondaryButtonStyle:"inline"}),o().createElement("div",{className:h(["d-flex","justify-content-between","align-items-center"]),style:{marginTop:"1.25%",marginBottom:"1.25%"}},o().createElement("div",{className:h(["text-nowrap"])},i),o().createElement(St,{id:`coupon-${s}-${l}`,content:m,isExpirationChip:u,wrapInSpan:!0}))))};Ke("/* stylelint-disable unit-no-unknown, property-no-unknown, scss/at-rule-no-unknown */\n/* stylelint-disable unit-no-unknown, property-no-unknown, scss/at-rule-no-unknown */\n.aspect-ratio-4-1 {\n  height: 0;\n  padding-bottom: 0;\n  padding-top: calc(1 / 4 * 100%);\n  width: 100%;\n  box-sizing: border-box;\n  position: relative;\n}\n\n.wsm-specials-display.desktop4x1 .image.has-thumbnail-layout {\n  flex: 0 0 50% !important;\n  overflow: hidden !important;\n}\n.wsm-specials-display.desktop4x1 .image.has-thumbnail-layout.slant-layout {\n  flex: 0 0 40% !important;\n}\n.wsm-specials-display.desktop4x1 .image.has-thumbnail-layout .image-subsection-wrapper {\n  height: 100% !important;\n}\n.wsm-specials-display.desktop4x1 .image.has-thumbnail-layout ~ .promo-info {\n  flex: 1 1 41.7% !important;\n  width: 41.7% !important;\n}\n.wsm-specials-display.desktop4x1 .image.has-thumbnail-layout.slant-layout ~ .promo-info {\n  flex: 1 1 60% !important;\n  width: 60% !important;\n}\n.wsm-specials-display.desktop4x1 .image.has-thumbnail-layout ~ .box-content-incentive-vehicle {\n  width: 50% !important;\n}\n.wsm-specials-display.desktop4x1 h2 {\n  line-height: 1;\n}\n.wsm-specials-display.desktop4x1 .discount {\n  line-height: 1.2;\n}\n.wsm-specials-display.desktop4x1 .promo-type-incentive .emphasized-text--horizontal {\n  gap: 0.6cqw;\n}\n.wsm-specials-display.desktop4x1 .promo-type-incentive .emphasized-text--horizontal .emphasized-text__primary {\n  font-size: 4.48cqw;\n}\n.wsm-specials-display.desktop4x1 .image {\n  width: 50%;\n  height: 100%;\n}\n.wsm-specials-display.desktop4x1 .padding-2 {\n  padding: 2%;\n}\n.wsm-specials-display.desktop4x1 .asset-disclaimer {\n  background-color: #acabac;\n}\n.wsm-specials-display.desktop4x1 .padding-4 {\n  padding: 4%;\n}\n.wsm-specials-display.desktop4x1 .box-inset {\n  padding: 2.67% 0;\n}\n.wsm-specials-display.desktop4x1 .box-content-incentive-vehicle {\n  padding: 2.67% 3% 2.67% 4%;\n}\n.wsm-specials-display.desktop4x1 .box-content-fixed-ops {\n  padding: 2.67% 3.2% 2.67% 4.7%;\n}\n.wsm-specials-display.desktop4x1 .box-inset-left {\n  padding-left: 2.67%;\n}\n.wsm-specials-display.desktop4x1 .box-inset-right {\n  padding-right: 2.67%;\n}\n.wsm-specials-display.desktop4x1 .no-image-container {\n  height: auto !important;\n}\n.wsm-specials-display.desktop4x1 .promo-type-service .promo-info,\n.wsm-specials-display.desktop4x1 .promo-type-incentive .promo-info,\n.wsm-specials-display.desktop4x1 .promo-type-parts .promo-info,\n.wsm-specials-display.desktop4x1 .promo-type-event .promo-info {\n  z-index: 1;\n  position: absolute;\n  right: 0;\n}\n.wsm-specials-display.desktop4x1 div .bg-dnd-bmw {\n  background-color: #1c69d3;\n}\n.wsm-specials-display.desktop4x1 div .bg-dnd-mini {\n  background-color: #000;\n}\n.wsm-specials-display.desktop4x1 div .bg-dnd-bmw,\n.wsm-specials-display.desktop4x1 div .bg-dnd-mini {\n  height: 40.6px;\n}\n@media (max-width: 767px) {\n  .wsm-specials-display.desktop4x1 div .bg-dnd-bmw,\n  .wsm-specials-display.desktop4x1 div .bg-dnd-mini {\n    height: 32px;\n  }\n}\n@media (min-width: 768px) and (max-width: 1199px) {\n  .wsm-specials-display.desktop4x1 div .bg-dnd-bmw,\n  .wsm-specials-display.desktop4x1 div .bg-dnd-mini {\n    height: 35.8px;\n  }\n}\n.wsm-specials-display.desktop4x1 div .dnd-button-bmw-mini :focus {\n  outline: none;\n  text-decoration: none;\n}\n.wsm-specials-display.desktop4x1 div .dnd-button-bmw-mini button {\n  font-size: 18px;\n}\n@media (max-width: 767px) {\n  .wsm-specials-display.desktop4x1 div .dnd-button-bmw-mini button {\n    font-size: 14px;\n  }\n}\n@media (min-width: 768px) and (max-width: 1199px) {\n  .wsm-specials-display.desktop4x1 div .dnd-button-bmw-mini button {\n    font-size: 16px;\n  }\n}\n.wsm-specials-display.desktop4x1 div .dnd-button-bmw-mini:hover {\n  text-decoration: none;\n}\n\n.wsm-specials-display.desktop4x1 h2 {\n  font-size: 2.25cqw;\n  margin: 0 0 0.5%;\n}\n.wsm-specials-display.desktop4x1 h2 span {\n  font-size: 2.5cqw;\n}\n.wsm-specials-display.desktop4x1 .no-image-container span,\n.wsm-specials-display.desktop4x1 .no-image-container h2 {\n  font-size: 1.5cqw;\n}\n.wsm-specials-display.desktop4x1 p {\n  font-size: 1.5cqw;\n  margin: 0 0 0.5%;\n}\n.wsm-specials-display.desktop4x1 .asset-disclaimer button {\n  font-size: 1cqw;\n}\n.wsm-specials-display.desktop4x1 .discount {\n  font-size: 2.5cqw;\n  line-height: 1;\n}\n.wsm-specials-display.desktop4x1 .emphasized-text__primary {\n  font-size: 2.5cqw;\n}\n.wsm-specials-display.desktop4x1 .emphasized-text__secondary {\n  font-size: 1.5cqw;\n}\n.wsm-specials-display.desktop4x1 .emphasized-text__suffix {\n  font-size: 1.5cqw;\n}\n.wsm-specials-display.desktop4x1 .load-more {\n  font-size: 1.5cqw;\n}\n.wsm-specials-display.desktop4x1 .cta-wrapper a,\n.wsm-specials-display.desktop4x1 .cta-wrapper button, .wsm-specials-display.desktop4x1 .bottom-wrapper a,\n.wsm-specials-display.desktop4x1 .bottom-wrapper button {\n  font-size: 1cqw;\n}\n.wsm-specials-display.desktop4x1 .details-and-disclaimer-button {\n  font-size: 1cqw;\n}\n.wsm-specials-display.desktop4x1 .coupon-code {\n  font-size: 1cqw;\n}\n.wsm-specials-display.desktop4x1 .expire-date-or-coupon-tag {\n  background-color: #CEE2FF;\n  color: #00528A;\n  border-radius: 999px;\n  padding: 0.3em 0.6em;\n  font-size: 1cqw;\n  font-weight: 600;\n  text-align: center;\n  display: inline-block;\n}\n.wsm-specials-display.desktop4x1 .expire-date-or-coupon-tag {\n  line-height: 1.5cqw;\n}");const Qt=({applicableVehicle:e="",promoIndex:t,discountDisplay:n="",title:i,width:a,triggerPrint:r,offerDetails:c,accountId:d})=>{const p=(0,l.useLabels)(),{promo:m,isMobile:u,designConfig:g={},isDesignConfig:f}=(0,s.useContext)(w),{reduceDollarSignSize:x,aspectRatio:E}=(0,s.useContext)(y),{id:I,imageUrl:k,type:C,vehicleImages:_,description:T,couponCode:N,emphasizedType:D,endDateDisplay:O,showExpirationChip:P,expirationDatePreview:A,primaryText:R,primarySuffix:L,secondaryText:$,tertiaryText:z}=m,{primaryText:M,primarySuffix:q,secondaryText:F,tertiaryText:B}=Ie({primaryText:R,primarySuffix:L,secondaryText:$,tertiaryText:z});let j,V="text-light";const U=h(["pr-0","pl-0","text-decoration-underline","text-transform-none"]),X=h(["d-flex","justify-content-center","promo-info",V]);let H,W,K,G,Y,Q,J,Z,ee,te="50%";const ne=(0,s.useRef)(null);if(f)switch(({background:H,overlay:K,textColor:V,foreground:W,sizes:G,logoUrl:Z,thumbnailLayout:Y,noForegroundImage:ee}=Ve(g,E)),Q=pe(G,v,"foreground"),J=pe(G,v,"background"),K?.style){case"slant":te=[b.VEHICLE].includes(C)&&!Q?"80%":"63%";break;case"fade":te=[b.VEHICLE].includes(C)&&!Q?"56%":"53%"}const ie=["text-light"===V?"btn-inverse":""],ae=G?.[v]?.imagePadding,se=re(H?.backgroundImage,a),oe=Be({overlay:K,useContentColorMix:!0,isReverse:!1,isVertical:!1,insetVisible:!0,ratio:E}),le=fe(p,m.inventoryCount),me=jt({backgroundImage:se.src,coordinates:G?.[v]?.backgroundImageCoordinates,stencilContainerRef:ne}),ue=ce({background:H,width:a}
1),ge=J?ce({background:H,croppedBackgroundImage:J,width:a}):ye({croppedBackgroundStyles:me,defaultStyles:ue,sizes:G,placementName:v});if([b.PARTS,b.SERVICE,b.EVENT].includes(C)&&(j=o().createElement("div",{ref:ne,style:ge,className:h([`promo-type-${C.toLowerCase()}`,"w-100","d-flex","h-100",""])},o().createElement(o().Fragment,null,o().createElement(Bt,{logoUrl:Z,ratio:S.get(E),inset:!!K?.inset,promoType:C,foregroundImage:Q||W}),!ee&&o().createElement(Lt,{optimizedPosition:"relative",key:I,className:h(["image","d-flex",K?.inset?"box-inset box-inset-left":""]),style:{backgroundImage:`url("${Pe}")`,backgroundPosition:"center",backgroundSize:"cover",width:"100%"},imageUrl:Q||W||k,width:de(a,v)}),o().createElement("div",{className:h([X,"flex-column","h-100",K?.inset?"box-inset box-inset-right":""]),style:{width:te,...oe}}),o().createElement("div",{style:{zIndex:"1",position:"absolute",right:0},className:h(["w-50","h-100","d-flex","flex-column","justify-content-center","box-content-fixed-ops"])},i?o().createElement("h2",{id:`header-${C}-${I}`,className:h(["font-weight-bold",V]),style:{marginTop:"1.25%",marginBottom:"1.25%"}},he(i,x)):null,n&&"PRIMARY_TEXT"!==D&&o().createElement("div",{id:`discount-${C}-${I}`,className:h([V,"font-weight-bold","text-capitalize","discount"])},n),"PRIMARY_TEXT"===D&&o().createElement(zt,{primaryText:M,secondaryText:F,className:V}),"PRIMARY_TEXT"!==D&&T&&o().createElement("p",{id:`content-${C}-${I}`,className:h(["description",V]),style:{marginTop:"1.25%",marginBottom:"1.25%"}},he(T,x)),o().createElement("div",{className:h([V]),style:{marginTop:"1.25%",marginBottom:"1.25%"}},Yt({couponCode:N,promoIndex:t,ctaButtonClasses:ie,details:o().createElement(It,{btnSize:"sm",classes:U,ctaButtonClasses:ie,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)}),textColor:V}),labels:p,type:C,id:I,endDateDisplay:O,showExpirationChip:P,expirationDatePreview:A})))))),C&&C===b.VEHICLE){const e=h(["image-subsection-wrapper","d-flex",_&&1===_.length?"single-vehicle-image-wrapper":"flex-row","justify-content-center","align-items-center","flex-shrink-0","align-middle"]),n=$e(_,W,Y);j=o().createElement("div",{ref:ne,style:ge,className:h(["promo-type-vehicle","w-100","d-flex","h-100",""])},o().createElement("div",{className:h(["w-100","d-flex","position-relative"])},o().createElement(Bt,{logoUrl:Z,ratio:S.get(E),inset:!!K?.inset,promoType:C,foregroundImage:Q||W}),o().createElement("div",{className:h(["image","d-flex","position-relative","justify-content-center","align-items-center",ae?"box-inset box-inset-left":"",n?"has-thumbnail-layout "+("slant"===K?.style?"slant-layout":""):""])},!ee&&(Q?o().createElement(Lt,{optimizedPosition:"relative",key:I,className:h(["image","d-flex","w-100"]),style:{backgroundImage:`url("${Pe}")`,backgroundPosition:"center",width:"100%",backgroundRepeat:"no-repeat",backgroundSize:ae?"contain":"cover",...ae&&{padding:"5%",backgroundOrigin:"content-box"}},imageUrl:Q,width:de(a,v)}):o().createElement("div",{key:I,className:e,style:{zIndex:1,flexBasis:"100%",alignItems:"center",padding:"5%"}},Me(_,a,u,_.length>1?30:50,{title:le.title,subtitle:le.subtitle},"vehicle-image",!0,W,E,Y,K,ae)))),o().createElement("div",{className:h(["promo-info","d-flex","h-100",K?.inset?"box-inset box-inset-right":""]),style:{width:te,...oe,position:Q&&"absolute",right:0}}),o().createElement("div",{style:{zIndex:"1",position:"absolute",right:0},className:h([V,"w-50","h-100","d-flex","flex-column","justify-content-center","box-content-incentive-vehicle"])},i?o().createElement("h2",{id:`header-${C}-${I}`,className:h([V])},he(i,x),o().createElement("span",{className:"sr-only"},he(i,x))):null,"PRIMARY_TEXT"===D&&o().createElement(zt,{primaryText:M,secondaryText:F,className:V}),"PRIMARY_TEXT"!==D&&T&&o().createElement("p",{id:`content-${C}-${I}`,className:h(["description",V])},he(T,x)),Yt({couponCode:N,ctaButtonClasses:ie,details:o().createElement(It,{btnSize:"sm",textColor:V,classes:U,ctaButtonClasses:ie,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)})}),labels:p,type:C,id:I,emphasizedType:D,endDateDisplay:O,showExpirationChip:P,expirationDatePreview:A}))))}return C&&C===b.INCENTIVE&&(j=o().createElement("div",{ref:ne,style:ge,className:h(["promo-type-incentive","w-100","d-flex","h-100",""])},o().createElement(Bt,{logoUrl:Z,ratio:S.get(E),inset:!!K?.inset,promoType:C,foregroundImage:Q||W}),!ee&&(W?o().createElement(Lt,{optimizedPosition:"relative",key:I,className:h(["image","d-flex",K?.inset?"box-inset box-inset-left":""]),style:{backgroundImage:`url("${Pe}")`,backgroundPosition:"center",width:"100%",backgroundRepeat:"no-repeat",backgroundSize:"cover"},imageUrl:Q||W,width:de(a,v)}):o().createElement("div",{key:I,className:h(["image","d-flex","position-relative","justify-content-center","align-items-center"])},qe(ee,k,a/2,"",u,65,{title:le.title,subtitle:le.subtitle,aspectRatio:"desktop4x1"}))),o().createElement("div",{className:h(["promo-info","d-flex","h-100",V,"flex-column","justify-content-center",K?.inset?"box-inset box-inset-right":""]),style:{width:te,...oe}}),o().createElement("div",{style:{zIndex:"1",position:"absolute",right:0},className:h([V,"w-50","h-100","d-flex","flex-column","justify-content-center","box-content-incentive-vehicle"])},e?o().createElement("h2",{id:`header-${C}-${I}`},e):null,"PRIMARY_TEXT"===D&&M||!i?null:o().createElement("p",{id:`content-${C}-${I}`},he(i,x)),"PRIMARY_TEXT"===D&&M&&o().createElement(zt,{primaryText:M,secondaryText:F,suffix:q,type:C,id:I}),"PRIMARY_TEXT"===D&&M&&B&&o().createElement("p",null,B),!("PRIMARY_TEXT"===D&&M)&&c&&o().createElement("p",{id:`content-${C}-${I}`},he(c,x)),o().createElement("div",{className:h([V]),style:{paddingRight:"2.5%"}}
1,Yt({couponCode:N,promoIndex:t,ctaButtonClasses:ie,details:o().createElement(It,{btnSize:"sm",classes:U,ctaButtonClasses:ie,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)}),textColor:V}),labels:p,type:C,id:I,endDateDisplay:O,showExpirationChip:P,expirationDatePreview:A}))))),o().createElement(Ge,{aspectRatio:E},j)};Qt.propTypes=Z;const Jt=({promoIndex:e,description:t,ctaButtonClasses:n,details:i,discountDisplay:a,title:s,couponCode:l,overlayTitleMargin:r,isHorizontalPadding:c,hasDetailsButton:d=!0,type:p,id:m,emphasizedType:u,primaryText:g,secondaryText:f,labels:y,endDateDisplay:w,showExpirationChip:b,expirationDatePreview:x})=>{const E="PRIMARY_TEXT"===u,{chipContent:v,isExpirationChip:I}=K({couponCode:l,showExpirationChip:b,endDateDisplay:w,expirationDatePreview:x,type:p,labels:y});return o().createElement("div",{className:h(["d-flex","flex-column","justify-content-between","w-100","h-100"]),style:c?{paddingLeft:"2.67%",paddingRight:"2.67%"}:void 0},o().createElement("div",{className:h(["text-data-upper"]),style:{marginTop:r}},s?o().createElement("h2",{id:`header-${p}-${m}`},s):null,!E&&t&&o().createElement("p",{id:`content-${p}-${m}`},t)),o().createElement("div",{className:h(["bottom-wrapper","align-items-end"]),style:c?{paddingBottom:"2.67%"}:void 0},o().createElement("div",{className:h(["buttons-wrapper","d-flex","flex-column","justify-content-end"])},o().createElement(Et,{promoIndex:e,ctaButtonClasses:h([n])}),d?i:null),o().createElement("div",{className:h(["text-capitalize","text-right","discount"])},E?o().createElement(zt,{primaryText:g,secondaryText:f}):o().createElement(o().Fragment,null,a&&o().createElement("div",{id:`discount-${p}-${m}`,className:h(["font-weight-bold"])},a),o().createElement(St,{id:`coupon-${p}-${m}`,content:v,isExpirationChip:I})))))},Zt=({applicableVehicle:e,promoIndex:t,discountDisplay:n="",title:i,width:a,triggerPrint:r,offerDetails:c,accountId:d})=>{let p,m="text-light";const u=(0,l.useLabels)(),{reduceDollarSignSize:g,aspectRatio:f}=(0,s.useContext)(y),{promo:x,isMobile:v,designConfig:I={},isDesignConfig:k}=(0,s.useContext)(w),{vehicleImages:C,type:_,inventoryCount:T,imageUrl:N,description:D,id:O,couponCode:P,emphasizedType:A,endDateDisplay:R,showExpirationChip:L,expirationDatePreview:$,primaryText:z,primarySuffix:M,secondaryText:q,tertiaryText:F}=x,{primaryText:B,primarySuffix:j,secondaryText:V,tertiaryText:U}=Ie({primaryText:z,primarySuffix:M,secondaryText:q,tertiaryText:F}),X=h(["pl-0","text-decoration-underline","text-transform-none","text-left"]),H=h(["image-subsection-wrapper","d-flex","flex-row","justify-content-center","align-items-center"]),W=fe(u,T);let G,Y,Q,J,Z,ee,te,ne="";const ie=(0,s.useRef)(null);k&&(({background:G,overlay:Q,textColor:m,foreground:Y,sizes:J,logoUrl:ee,thumbnailLayout:Z,noForegroundImage:te}=Ve(I,f)),ne="block"===Q?.style?"2%":"7%");const ae=["text-light"===m?"btn-inverse":""],se=h(["promo-data-section","d-flex","flex-column","w-100",Q?"overlay-styles-applied":"","flex-shrink-0","align-middle",m]),oe=re(G?.backgroundImage,a),le=pe(J,E,"foreground"),me=pe(J,E,"background"),ue=J?.[E]?.imagePadding,ge=jt({backgroundImage:oe.src,coordinates:J?.[E]?.backgroundImageCoordinates,stencilContainerRef:ie}),we=ce({background:G,width:a}),be=me?ce({background:G,croppedBackgroundImage:me,width:a}):ye({croppedBackgroundStyles:ge,defaultStyles:we,sizes:J,placementName:E});if([b.PARTS,b.SERVICE,b.EVENT].includes(_))p=o().createElement("div",{ref:ie,style:be,className:h([`promo-type-${_.toLowerCase()}`,"w-100","d-flex","h-100","flex-column","justify-content-between"])},o().createElement(Bt,{logoUrl:ee,ratio:S.get(f),inset:!!Q?.inset,promoType:_,foregroundImage:le||Y}),!te&&o().createElement(Lt,{optimizedPosition:"relative",className:h(["image","w-100",Q?.inset&&"box-inset-x box-inset-t"]),wrapperStyle:{height:"block"!==Q?.style?"50%":"40%",position:"block"!==Q?.style&&"absolute",...Q?.inset&&{padding:"2.67%",paddingBottom:0}},style:{backgroundImage:`url("${Pe}")`,backgroundPosition:"center",backgroundSize:"cover",backgroundColor:"transparent",height:"100%"},imageUrl:le||Y||N,width:a}),o().createElement("div",{className:se,style:{height:"60%",position:"block"!==Q?.style||te?"absolute":"relative",bottom:0,...Be({overlay:Q,useContentColorMix:!0,isReverse:!1,isVertical:!0,insetVisible:!0,ratio:f}),...Q?.inset?{padding:"2.67%",paddingTop:0}:{padding:"2.6%"}}}
1,Jt({ctaButtonClasses:ae,overlayTitleMargin:ne,isHorizontalPadding:Q?.inset,description:he(D,g),details:o().createElement(It,{btnSize:"sm",classes:X,ctaButtonClasses:ae,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)}),textColor:m}),discountDisplay:n,labels:u,couponCode:P,promoIndex:0,title:he(i,g),type:_,id:O,emphasizedType:A,primaryText:B,secondaryText:V,endDateDisplay:R,showExpirationChip:L,expirationDatePreview:$})));else if(_===b.VEHICLE){const e=()=>te||"block"!==Q?.style&&le?"absolute":"relative",s=$e(C,Y,Z);p=o().createElement("div",{className:h(["promo-type-vehicle","w-100","d-flex","h-100","flex-column","justify-content-between"]),ref:ie,style:be},o().createElement(Bt,{logoUrl:ee,ratio:S.get(f),inset:!!Q?.inset,promoType:_,foregroundImage:le||Y}),!te&&(le?o().createElement(Lt,{optimizedPosition:"relative",key:O,wrapperStyle:{height:"block"!==Q?.style?"50%":"40%",position:"block"!==Q?.style&&"absolute",...ue&&"block"!==Q?.style?{padding:"2.67% 2.67% 6%"}:{padding:"2.67%"}},className:h(["image","d-flex","w-100",ue&&"box-inset-x box-inset-t"]),style:{backgroundImage:`url("${Pe}")`,backgroundPosition:"center",width:"100%",backgroundRepeat:"no-repeat",backgroundSize:ue?"contain":"cover",backgroundOrigin:"content-box"},imageUrl:le,width:de(a,E)}):o().createElement("div",{key:O,className:h([H,s&&"has-thumbnail-layout"]),style:{zIndex:1}},Me(C,C.length>1?a:100,v,C.length>1?50:30,{title:W.title,subtitle:W.subtitle},"vehicle-image",!0,Y,f,Z,Q,ue))),o().createElement("div",{className:se,style:{height:"60%",position:e(),bottom:0,...Be({overlay:Q,useContentColorMix:!0,isReverse:!1,isVertical:!0,insetVisible:!0,ratio:f}),...Q?.inset?{padding:"2.67%",paddingTop:0}:{padding:"2.6%"}}},Jt({ctaButtonClasses:ae,overlayTitleMargin:ne,isHorizontalPadding:Q?.inset,description:he(D,g),details:o().createElement(It,{textColor:m,btnSize:"sm",classes:X,ctaButtonClasses:ae,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)})}),discountDisplay:n,labels:u,couponCode:P,promoIndex:0,title:he(i,g),type:_,id:O,emphasizedType:A,primaryText:B,secondaryText:V,endDateDisplay:R,showExpirationChip:L,expirationDatePreview:$})))}else if(_&&_===b.INCENTIVE){const n=Be({overlay:Q,useContentColorMix:!0,isReverse:!1,isVertical:!0,insetVisible:!0,ratio:f}),{chipContent:s,isExpirationChip:l}=K({couponCode:P,showExpirationChip:L,endDateDisplay:R,expirationDatePreview:$,type:_,labels:u});p=o().createElement("div",{ref:ie,style:be,className:h(["promo-type-incentive","w-100","d-flex","h-100","flex-column","justify-content-between"])},o().createElement(Bt,{logoUrl:ee,ratio:S.get(f),inset:!!Q?.inset,promoType:_,foregroundImage:le||Y}),!te&&(Y?o().createElement(Lt,{optimizedPosition:"relative",key:O,wrapperStyle:{height:"block"!==Q?.style?"50%":"40%",position:"block"!==Q?.style&&te?"absolute":"relative"},className:h(["image","d-flex","w-100",Q?.inset&&"box-inset-x box-inset-t"]),style:{backgroundImage:`url("${Pe}")`,backgroundPosition:"center",width:"100%",backgroundRepeat:"no-repeat",backgroundSize:"cover"},imageUrl:le||Y,width:de(a,E)}):o().createElement("div",{className:H,style:{alignItems:"center",height:"40%"}},qe(te,N,a/2,"",v,45,{title:W.title,subtitle:W.subtitle}))),o().createElement("div",{className:se,style:{height:"60%",...n,position:"absolute",bottom:0,...Q?.inset?{padding:"2.67%",paddingTop:0}:{padding:"2.6%"}}},o().createElement("div",{className:h(["d-flex","h-100","flex-column"]),style:{...Q?.inset?{padding:"2.67%",paddingTop:0}:{padding:0}}},e||i?o().createElement("h2",{style:{marginTop:ne}},e,!("PRIMARY_TEXT"===A&&B)&&i&&o().createElement("span",{className:h(["w-100","d-block","font-weight-normal"])},he(i,g))):null,"PRIMARY_TEXT"===A&&B?o().createElement("div",{className:"d-flex h-100 align-items-end justify-content-between"},o().createElement("div",{className:h(["bottom-wrapper"])},o().createElement("div",{className:h(["buttons-wrapper"])},o().createElement(Et,{promoIndex:t,ctaButtonClasses:h([...ae])}),o().createElement(It,{textColor:m,btnSize:"sm",classes:X,ctaButtonClasses:ae,applicableVehicle:e,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)})}))),o().createElement("div",{className:"emphasized-text-wrapper text-right"},o().createElement(zt,{primaryText:B,secondaryText:V,suffix:j,type:_,id:O}),U&&o().createElement("p",null,U),o().createElement(St,{id:`coupon-${_}-${O}`,content:s,isExpirationChip:l}))):o().createElement(o().Fragment,null,c&&o().createElement("p",null,he(c,g)),o().createElement("div",{className:h(["bottom-wrapper"])},o().createElement("div",{className:h(["buttons-wrapper"])}
1,o().createElement(Et,{promoIndex:t,ctaButtonClasses:h([...ae])}),o().createElement(It,{textColor:m,btnSize:"sm",classes:X,ctaButtonClasses:ae,applicableVehicle:e,ctaPrint:o().createElement(We,{accountId:d,promoIndex:t,pushOutsiderCtaPrint:e=>r(e)})})),o().createElement(St,{id:`coupon-${_}-${O}`,content:s,isExpirationChip:l}))))))}return p};Zt.propTypes={...Z},Ke("/* stylelint-disable unit-no-unknown, property-no-unknown, scss/at-rule-no-unknown */\n/* stylelint-disable unit-no-unknown, property-no-unknown, scss/at-rule-no-unknown */\n.aspect-ratio-4-3 {\n  height: 0;\n  padding-bottom: 0;\n  padding-top: calc(3 / 4 * 100%);\n  width: 100%;\n  box-sizing: border-box;\n  position: relative;\n}\n\n.wsm-specials-display.desktop4x3 .image-subsection-wrapper.has-thumbnail-layout, .wsm-specials-display.mobile4x3 .image-subsection-wrapper.has-thumbnail-layout {\n  flex: 0 0 40% !important;\n  overflow: hidden !important;\n}\n.wsm-specials-display.desktop4x3 .image-subsection-wrapper.has-thumbnail-layout ~ .promo-data-section, .wsm-specials-display.mobile4x3 .image-subsection-wrapper.has-thumbnail-layout ~ .promo-data-section {\n  height: 60% !important;\n  flex: 0 0 60% !important;\n}\n.wsm-specials-display.desktop4x3.single-vehicle-image-wrapper img, .wsm-specials-display.mobile4x3.single-vehicle-image-wrapper img {\n  max-height: -webkit-fill-available;\n}\n.wsm-specials-display.desktop4x3.single-vehicle-image-wrapper + .promo-data-section, .wsm-specials-display.mobile4x3.single-vehicle-image-wrapper + .promo-data-section {\n  min-height: unset;\n}\n.wsm-specials-display.desktop4x3 .promo-data-section, .wsm-specials-display.mobile4x3 .promo-data-section {\n  background-color: #000;\n  color: white;\n}\n.wsm-specials-display.desktop4x3 .promo-data-section.overlay-styles-applied, .wsm-specials-display.mobile4x3 .promo-data-section.overlay-styles-applied {\n  background-color: unset;\n}\n.wsm-specials-display.desktop4x3 .promo-data-section .block-1, .wsm-specials-display.mobile4x3 .promo-data-section .block-1 {\n  flex: 2;\n}\n.wsm-specials-display.desktop4x3 .promo-data-section .block-2, .wsm-specials-display.mobile4x3 .promo-data-section .block-2 {\n  flex: 1;\n}\n.wsm-specials-display.desktop4x3 .promo-data-section .bottom-wrapper, .wsm-specials-display.mobile4x3 .promo-data-section .bottom-wrapper {\n  margin-top: auto;\n  display: flex;\n  justify-content: space-between;\n}\n.wsm-specials-display.desktop4x3 .promo-data-section .bottom-wrapper .coupon-code, .wsm-specials-display.mobile4x3 .promo-data-section .bottom-wrapper .coupon-code {\n  margin-top: auto;\n}\n.wsm-specials-display.desktop4x3 .promo-type-incentive .buttons-wrapper a, .wsm-specials-display.mobile4x3 .promo-type-incentive .buttons-wrapper a {\n  font-size: 2.6cqw !important;\n}\n.wsm-specials-display.desktop4x3 .promo-type-incentive .emphasized-text-wrapper, .wsm-specials-display.mobile4x3 .promo-type-incentive .emphasized-text-wrapper {\n  display: flex;\n  flex-direction: column;\n  align-items: flex-end;\n  min-width: 0;\n  overflow: hidden;\n}\n.wsm-specials-display.desktop4x3 .promo-type-incentive .emphasized-text--horizontal, .wsm-specials-display.mobile4x3 .promo-type-incentive .emphasized-text--horizontal {\n  gap: 1.79cqw;\n}\n.wsm-specials-display.desktop4x3 .promo-type-incentive .emphasized-text--horizontal .emphasized-text__primary, .wsm-specials-display.mobile4x3 .promo-type-incentive .emphasized-text--horizontal .emphasized-text__primary {\n  font-size: 9.87cqw;\n}\n.wsm-specials-display.desktop4x3 .custom-asset, .wsm-specials-display.mobile4x3 .custom-asset {\n  position: relative;\n}\n.wsm-specials-display.desktop4x3 .asset-disclaimer, .wsm-specials-display.mobile4x3 .asset-disclaimer {\n  background-color: #acabac;\n}\n.wsm-specials-display.desktop4x3 .box-inset-x, .wsm-specials-display.mobile4x3 .box-inset-x {\n  padding: 0 2.67%;\n}\n.wsm-specials-display.desktop4x3 .box-inset, .wsm-specials-display.mobile4x3 .box-inset {\n  padding: 2.67%;\n}\n.wsm-specials-display.desktop4x3 .box-inset-b, .wsm-specials-display.mobile4x3 .box-inset-b {\n  padding-bottom: 2.67%;\n}\n.wsm-specials-display.desktop4x3 .box-inset-t, .wsm-specials-display.mobile4x3 .box-inset-t {\n  padding-top: 2.67%;\n}\n.wsm-specials-display.mobile4x3 .custom-asset .bg-dnd-bmw {\n  background-color: #1c69d3;\n}\n.wsm-specials-display.mobile4x3 .custom-asset .bg-dnd-mini {\n  background-color: #000;\n}\n.wsm-specials-display.mobile4x3 .custom-asset .dnd-button-bmw-mini :focus {\n  outline: none;\n}\n.wsm-specials-display.mobile4x3 .custom-asset .dnd-button-bmw-mini button {\n  font-size: 14px;\n  height: 32px;\n}\n.wsm-specials-display.desktop4x3 .no-image-picture {\n  width: 30%;\n}\n\n.aspect-ratio-desktop-4x3.coupon-carousel .promo {\n  max-width: none;\n  margin: 8px;\n  height: 100%;\n  width: auto;\n}\n\n.wsm-specials-display.desktop4x3 h2 {\n  font-size: 4cqw;\n  margin: 0 0 0.5%;\n}\n.wsm-specials-display.desktop4x3 h2 span {\n  font-size: 4cqw;\n}\n.wsm-specials-display.desktop4x3 .no-image-container span,\n.wsm-specials-display.desktop4x3 .no-image-container h2 {\n  font-size: 3cqw;\n}\n.wsm-specials-display.desktop4x3 p {\n  font-size: 3cqw;\n  margin: 0 0 0.5%;\n}\n.wsm-specials-display.desktop4x3 .asset-disclaimer button {\n  font-size: 2.6cqw;\n}\n.wsm-specials-display.desktop4x3 .discount {\n  font-size: 5.5cqw;\n  line-height: 1;\n}\n.wsm-specials-display.desktop4x3 .emphasized-text__primary {\n  font-size: 5.5cqw;\n}\n.wsm-specials-display.desktop4x3 .emphasized-text__secondary {\n  font-size: 3cqw;\n}\n.wsm-specials-display.desktop4x3 .emphasized-text__suffix {\n  font-size: 3cqw;\n}\n.wsm-specials-display.desktop4x3 .load-more {\n  font-size: 3cqw;\n}\n.wsm-specials-display.desktop4x3 .cta-wrapper a,\n.wsm-specials-display.desktop4x3 .cta-wrapper button, .wsm-specials-display.desktop4x3 .bottom-wrapper a,\n.wsm-specials-display.desktop4x3 .bottom-wrapper button {\n  font-size: 2.6cqw;\n}\n.wsm-specials-display.desktop4x3 .details-and-disclaimer-button {\n  font-size: 2.6cqw;\n}\n.wsm-specials-display.desktop4x3 .coupon-code {\n  font-size: 2.6cqw;\n}\n.wsm-specials-display.desktop4x3 .expire-date-or-coupon-tag {\n  background-color: #CEE2FF;\n  color: #00528A;\n  border-radius: 999px;\n  padding: 0.3em 0.6em;\n  font-size: 2.6cqw;\n  font-weight: 600;\n  text-align: center;\n  display: inline-block;\n}\n.wsm-specials-display.desktop4x3 .expire-date-or-coupon-tag {\n  padding-top: 0.5em;\n  padding-bottom: 0.5em;\n  line-height: 2.6cqw;\n}");const en=({applicableVehicle:e,promoIndex:t,discountDisplay:n="",title:i,width:a,triggerPrint:l,offerDetails:r,accountId:c})=>{const{aspectRatio:d}=(0,s.useContext)(y);return o().createElement(Ge,{aspectRatio:d},Zt({applicableVehicle:e,promoIndex:t,discountDisplay:n,title:i,width:a,triggerPrint:l,offerDetails:r,accountId:c}))};en.propTypes=Z,Ke("/* stylelint-disable unit-no-unknown, property-no-unknown, scss/at-rule-no-unknown */\n/* stylelint-disable unit-no-unknown, property-no-unknown, scss/at-rule-no-unknown */\n.aspect-ratio-4-3 {\n  height: 0;\n  padding-bottom: 0;\n  padding-top: calc(3 / 4 * 100%);\n  width: 100%;\n  box-sizing: border-box;\n  position: relative;\n}\n\n.aspect-ratio-mobile-4x3 .promo {\n  width: 100%;\n  max-width: none;\n  margin-left: 0 !important;\n  margin-right: 0 !important;\n}\n.aspect-ratio-mobile-4x3 .no-image-container img,\n.aspect-ratio-mobile-4x3 .no-image-container-mobile img {\n  width: 25% !important;\n  padding-top: 2%;\n}\n.aspect-ratio-mobile-4x3 div .custom-asset .bg-dnd-bmw {\n  background-color: #1c69d3;\n}\n.aspect-ratio-mobile-4x3 div .custom-asset .bg-dnd-mini {\n  background-color: #000;\n}\n.aspect-ratio-mobile-4x3 div .custom-asset .dnd-button-bmw-mini :focus {\n  outline: none;\n  text-decoration: none;\n}\n.aspect-ratio-mobile-4x3 div .custom-asset .dnd-button-bmw-mini .dnd-button-bmw-mini:hover {\n  text-decoration: none;\n}\n.aspect-ratio-mobile-4x3 div .custom-asset .dnd-button-bmw-mini button {\n  font-size: 2.6cqw !important;\n  height: 6cqw;\n}\n\n.wsm-specials-display.mobile4x3 h2 {\n  font-size: 4cqw;\n  margin: 0 0 0.5%;\n}\n.wsm-specials-display.mobile4x3 p,\n.wsm-specials-display.mobile4x3 span {\n  font-size: 3cqw;\n}\n.wsm-specials-display.mobile4x3 .discount {\n  font-size: 6.5cqw;\n  line-height: 1;\n}\n.wsm-specials-display.mobile4x3 .emphasized-text__primary {\n  font-size: 6.5cqw;\n}\n.wsm-specials-display.mobile4x3 .emphasized-text__secondary {\n  font-size: 3cqw;\n}\n.wsm-specials-display.mobile4x3 .emphasized-text__suffix {\n  font-size: 3cqw;\n}\n.wsm-specials-display.mobile4x3 .load-more,\n.wsm-specials-display.mobile4x3 .coupon-code {\n  font-size: 3cqw;\n}\n.wsm-specials-display.mobile4x3 .expire-date-or-coupon-tag {\n  background-color: #CEE2FF;\n  color: #00528A;\n  border-radius: 999px;\n  padding: 0.3em 0.6em;\n  font-size: 3cqw;\n  font-weight: 600;\n  text-align: center;\n  display: inline-block;\n}\n.wsm-specials-display.mobile4x3 .asset-disclaimer .btn-link {\n  font-size: 3cqw;\n}\n.wsm-specials-display.mobile4x3 .cta-wrapper .btn-link {\n  font-size: 3cqw;\n}\n.wsm-specials-display.mobile4x3 .cta-wrapper .btn-primary {\n  font-size: 3cqw;\n}\n.wsm-specials-display.mobile4x3 .emphasized-text__primary {\n  font-size: 7.5cqw;\n}");const tn=({applicableVehicle:e,promoIndex:t,discountDisplay:n="",title:i,width:a,triggerPrint:l,offerDetails:r,accountId:c})=>{const{aspectRatio:d}=(0,s.useContext)(y);return o().createElement(Ge,{aspectRatio:d},Zt({applicableVehicle:e,promoIndex:t,discountDisplay:n,title:i,width:a,triggerPrint:l,offerDetails:r,accountId:c}))};tn.propTypes=Z;const nn={Desktop9x16:Ht,Desktop10x1:Kt,Desktop4x3:en,Mobile4x3:tn,Mobile9x16:Gt,Desktop4x1:Qt};Ke('/* stylelint-disable unit-no-unknown, property-no-unknown, scss/at-rule-no-unknown */\n.wsm-specials-display .discount {\n  font-size: 22px;\n}\n\n.wsm-specials-display {\n  container: promo-text-wrapper/inline-size;\n}\n.wsm-specials-display .cta-wrapper,\n.wsm-specials-display .buttons-wrapper {\n  min-width: 0;\n}\n.wsm-specials-display .cta-wrapper .btn,\n.wsm-specials-display .buttons-wrapper .btn {\n  white-space: nowrap;\n}\n.wsm-specials-display .design-config-background.blur:after {\n  
1content: "";\n  backdrop-filter: blur(4px);\n  position: absolute;\n  width: 100%;\n  height: 100%;\n}\n.wsm-specials-display .custom-asset img {\n  width: 100%;\n}\n.wsm-specials-display .no-image-container {\n  padding: 3%;\n}\n.wsm-specials-display .no-image-container .no-image-picture {\n  width: 40%;\n}\n.wsm-specials-display .no-image-container-mobile {\n  min-width: 150px;\n  width: 25%;\n}\n.wsm-specials-display .no-image-container-mobile img {\n  width: 45%;\n}\n.wsm-specials-display .no-image-container-mobile h2 {\n  padding-bottom: 5px !important;\n}\n.wsm-specials-display .no-image-container-mobile .h3 {\n  font-size: clamp(0.8rem, 2vw, 3rem) !important;\n}\n\n.details-modal .close-modal,\n.dock-right .close-modal {\n  position: absolute;\n  right: 15px;\n  top: 15px;\n}\n\n.details-and-disclaimer-button:after {\n  display: none;\n}\n\n.rendered-promo-wrapper {\n  position: relative;\n  transition: box-shadow 0.15s;\n}\n.rendered-promo-wrapper:hover {\n  box-shadow: 0 0 0 3px var(--color-primary-300);\n}\n.rendered-promo-wrapper .top-layer {\n  z-index: 999999;\n  position: absolute;\n  top: 1px;\n  left: 1px;\n}\n.rendered-promo-wrapper .top-layer .resize-and-position-button {\n  padding: 4px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.tooltip-inner {\n  background-color: white;\n  border: 1px solid rgba(0, 0, 0, 0.7);\n  border-radius: 4px;\n  padding: 4px 8px;\n  color: black;\n  font-size: 12px;\n}\n\n.tooltip-arrow {\n  display: none !important;\n}\n\n/* stylelint-disable unit-no-unknown */\n.emphasized-text {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  margin: 0;\n  min-width: 0;\n  overflow: hidden;\n}\n.emphasized-text__primary {\n  display: block;\n  font-weight: 700;\n  line-height: 120%;\n  white-space: nowrap;\n}\n.emphasized-text__secondary {\n  display: block;\n  font-weight: 400;\n  line-height: 120%;\n  white-space: nowrap;\n}\n.emphasized-text--horizontal {\n  flex-direction: row;\n  align-items: center;\n  justify-content: flex-start;\n}\n.emphasized-text--horizontal .emphasized-text__right-col {\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n}\n.emphasized-text--horizontal .emphasized-text__suffix {\n  display: block;\n  font-weight: 700;\n  line-height: 120%;\n  white-space: nowrap;\n}');const an=({promoIndex:e,discountDisplay:t,width:n,triggerPrint:i,accountId:a=""})=>{const{widgetName:r}=(0,l.useRequestData)(),c=(0,l.useLabels)(),{promo:d}=(0,s.useContext)(w),{aspectRatio:p,showIncentiveTitleCondition:m,showIncentiveTitleBodystyle:u,showIncentiveTitleMake:g,useIncentiveShortTitle:h}=(0,s.useContext)(y),{incentiveData:f}=d,b="object"==typeof f&&null!==f&&Object.keys(f).length>0,{title:x}=b?f:d,E=F(p)?k.MOBILE_4X3:p;let v,I;if(b){const{applicableCondition:e,shortTitle:t,trim:n}=f;I="true"===h||r===L?t||x:x||t,n&&Object.keys(n).length&&(v=n.year&&n.make&&n.model?`${n.year} ${"true"===g?n.make:""} ${n.model}`:"","true"===m&&(v=`${c.get(e)} ${v}`),"true"===u&&(v=`${v} ${n.bodyStyle}`))}else I=x;const C=nn[E];return C?o().createElement(C,{accountId:a,applicableVehicle:v,promoIndex:e,discountDisplay:t,title:I,width:n,triggerPrint:i}):null};an.propTypes={promoIndex:a().number,discountDisplay:a().oneOfType([a().number,a().string,a().shape({})]),width:a().number.isRequired,triggerPrint:a().func,accountId:a().string.isRequired},an.defaultProps={promoIndex:0,discountDisplay:"",triggerPrint:null};const sn=e=>{const{content:t,tltProps:n,placement:i="right",className:a="light",children:s,showTime:l=250,hideTime:r=400}=e;return o().createElement(p.OverlayTrigger,{trigger:["hover","focus","click"],placement:i,delay:{show:l,hide:r},overlay:o().createElement(p.Tooltip,Nt({className:a},n),t)},s)};sn.propTypes={content:a().string,placement:a().string,className:a().string,children:a().oneOfType([a().arrayOf(a().node),a().node]),showTime:a().number,hideTime:a().number,tltProps:a().shape({})},sn.defaultProps={content:"Tooltip content goes here",placement:"right",className:"dark",children:null,showTime:250,hideTime:400,tltProps:{}};const on=()=>React.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8484 0.351351C12.6234 0.126381 12.3182 0 12 0C11.6818 0 11.3766 0.126381 11.1516 0.351351L8.75153 2.7514C8.58376 2.91923 8.46951 3.13303 8.42322 3.3
16578C8.37694 3.59853 8.40071 3.83977 8.49151 4.05902C8.58232 4.27826 8.73609 4.46566 8.93338 4.59752C9.13068 4.72939 9.36264 4.7998 9.59995 4.79985H10.8V10.8H4.79985V9.59995C4.7998 9.36264 4.72939 9.13068 4.59752 8.93338C4.46566 8.73609 4.27826 8.58232 4.05902 8.49151C3.83977 8.40071 3.59853 8.37694 3.36578 8.42322C3.13303 8.46951 2.91923 8.58376 2.7514 8.75153L0.351351 11.1516C0.126381 11.3766 0 11.6818 0 12C0 12.3182 0.126381 12.6234 0.351351 12.8484L2.7514 15.2485C2.91923 15.4162 3.13303 15.5305 3.36578 15.5768C3.59853 15.6231 3.83977 15.5993 4.05902 15.5085C4.27826 15.4177 4.46566 15.2639 4.59752 15.0666C4.72939 14.8693 4.7998 14.6374 4.79985 14.4001V13.2H10.8V19.2002H9.59995C9.36264 19.2002 9.13068 19.2706 8.93338 19.4025C8.73609 19.5343 8.58232 19.7217 8.49151 19.941C8.40071 20.1602 8.37694 20.4015 8.42322 20.6342C8.46951 20.867 8.58376 21.0808 8.75153 21.2486L11.1516 23.6487C11.3766 23.8736 11.6818 24 12 24C12.3182 24 12.6234 23.8736 12.8484 23.6487L15.2485 21.2486C15.4162 21.0808 15.5305 20.867 15.5768 20.6342C15.6231 20.4015 15.5993 20.1602 15.5085 19.941C15.4177 19.7217 15.2639 19.5343 15.0666 19.4025C14.8693 19.2706 14.6374 19.2002 14.4001 19.2002H13.2V13.2H19.2002V14.4001C19.2002 14.6374 19.2706 14.8693 19.4025 15.0666C19.5343 15.2639 19.7217 15.4177 19.941 15.5085C20.1602 15.5993 20.4015 15.6231 20.6342 15.5768C20.867 15.5305 21.0808 15.4162 21.2486 15.2485L23.6487 12.8484C23.8736 12.6234 24 12.3182 24 12C24 11.6818 23.8736 11.3766 23.6487 11.1516L21.2486 8.75153C21.0808 8.58376 20.867 8.46951 20.6342 8.42322C20.4015 8.37694 20.1602 8.40071 19.941 8.49151C19.7217 8.58232 19.5343 8.73609 19.4025 8.93338C19.2706 9.13068 19.2002 9.36264 19.2002 9.59995V10.8H13.2V4.79985H14.4001C14.6374 4.7998 14.8693 4.72939 15.0666 4.59752C15.2639 4.46566 15.4177 4.27826 15.5085 4.05902C15.5993 3.83977 15.6231 3.59853 15.5768 3.36578C15.5305 3.13303 15.4162 2.91923 15.2485 2.7514L12.8484 0.351351Z",fill:"black"})),ln=({onClick:e})=>{const t=(0,l.useLabels)();return React.createElement("div",{className:"top-layer"},React.createElement(sn,{content:t.get("RESIZE_AND_POSITION"),placement:"bottom",tltProps:{id:"resize-and-position"}},React.createElement(p.Button,{bsSize:"xs",onClick:e,style:{backgroundColor:"white"},className:"resize-and-position-button"},React.createElement(on,null))))};ln.propTypes={onClick:a().func},ln.defaultProps={onClick:()=>{}};var rn={exports:{}};rn.exports=function(e,t){const n=e=>[...new Set(e)].filter(e=>e).join(" ")||null;var i=function(t){var i=t.skeletonClasses,a=t.height,s=t.width,o=t.aspectRatio,l=t.circle,r=t.placeholderImage,c=t.imageAlt,d=t.dataTestId,p={height:a,width:s},m=[];return r||m.push("skeleton-shimmer"),m.push(i),m.push(o||l?"embed-responsive":null),"4by3"===o&&m.push("embed-responsive-4by3"),"1by1"===o&&m.push("embed-responsive-1by1"),l&&m.push("rounded-circle","embed-responsive-1by1"),r?e.createElement("img",{src:r,loading:"eager",fetchPriority:"high",className:n(m),style:p,alt:c}):e.createElement("span",{"aria-hidden":"true",className:n(m),style:p,"data-testid":d})};return i.propTypes={skeletonClasses:t.string,height:t.string,width:t.string,aspectRatio:t.string,circle:t.bool,placeholderImage:t.string,imageAlt:t.string,dataTestId:t.string},i.defaultProps={skeletonClasses:"",height:"",width:"",aspectRatio:null,circle:!1,placeholderImage:"",imageAlt:"",dataTestId:void 0},i.displayName="Skeleton",i}(o(),a());var cn=rn.exports;const dn=({placeholderImage:e,windowId:t,account:n,aspectRatio:i})=>{let a;const s=n&&(j(n)||U(n.accountId)),l="bmw"===s||"mini"===s,r=o().createElement(cn,{placeholderImage:e||A,width:"100%",height:"100%",skeletonClasses:`custom-asset skeleton-shimmer custom-asset-placeholder-${t}`,imageAlt:"blank gif"});return a=l?r:o().createElement(Ge,{aspectRatio:i,account:n,isSkeleton:!0},r),a};dn.propTypes={placeholderImage:a().string,aspectRatio:a().string.isRequired,windowId:a().string,account:a().shape({})};const pn=({ratio:e,displayLimit:t,enableCarousel:n,placeholderImage:i,aspectRatio:a,windowId:s,type:l,title:r,account:c})=>{const d=`${"true"===n&&"1"!==t?"1px solid #ddd":null}`;let p,m=null;const u="INCENTIVE"===l;switch(a){case k.DESKTOP_10X1:m=o().createElement("div",{className:`d-flex flex-row w-100 default-asset-placeholder-incentive-${s}`,style:{aspectRatio:e,backgroundImage:"",backgroundPosition:"center bottom",backgroundSize:"cover"},fetchpriority:"high"},o().createElement("div",{className:"w-25 d-flex justify-content-center align-items-center"},o().createElement(cn,{placeholderImage:i||A,width:u?"65%":"100%",height:!u&&"100%",skeletonClasse
1s:`${!u&&"skeleton-shimmer"} default-asset-placeholder-${s} \n\t\t\t\t\t\t\t\tdefault-asset-placeholder flex-shrink-0 fade-image-wrapper image`,imageAlt:r||""})),o().createElement("div",{className:"h-100 d-flex flex-column justify-content-center px-5",style:{width:"60%"}},o().createElement(cn,{height:"24%",skeletonClasses:"my-3"}),o().createElement(cn,{height:"18%",skeletonClasses:"my-3"})),o().createElement("div",{className:"h-100 d-flex flex-column justify-content-center pr-5",style:{width:"15%"}},o().createElement(cn,{height:"24%",skeletonClasses:"my-3"}),o().createElement(cn,{height:"18%",skeletonClasses:"my-3"}))),p={borderBottom:d};break;case k.MOBILE_4X3_SLIDESHOW:m=o().createElement("div",{className:h(["d-flex","promo-card","flex-column","h-100"])},o().createElement("div",{className:`\n\t\t\t\t\t\t\tw-100 d-flex justify-content-center align-items-center \n\t\t\t\t\t\t\tdefault-asset-placeholder-incentive-${s} default-${l}`,style:{backgroundImage:"",backgroundPosition:"center bottom",backgroundSize:"cover",height:"45%"},fetchpriority:"high"},o().createElement(cn,{placeholderImage:i||A,width:u?"45%":"100%",height:!u&&"100%",skeletonClasses:`${!u&&"skeleton-shimmer"} default-asset-placeholder-${s} flex-grow-1 default-asset-placeholder`,imageAlt:r||""})),o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex flex-column justify-content-center text",style:{height:"60%",padding:"5px 20px"}},o().createElement(cn,{height:"30px",skeletonClasses:"my-3"}),o().createElement(cn,{height:"25px",skeletonClasses:"my-3"}),o().createElement(cn,{height:"15px",width:"50%",skeletonClasses:"my-3"}),o().createElement(cn,{height:"15px",skeletonClasses:"my-3"})))),p={borderBottom:d};break;case k.DESKTOP_4X1:m=o().createElement("div",{className:`d-flex flex-row h-100 default-asset-placeholder-incentive-${s}`,fetchpriority:"high",style:{backgroundImage:"",backgroundPosition:"center bottom",backgroundSize:"cover"}},o().createElement("div",{className:"w-50 d-flex justify-content-center align-items-center"},o().createElement(cn,{width:u?"65%":"100%",height:!u&&"100%",placeholderImage:i||A,skeletonClasses:`custom-asset ${!u&&"skeleton-shimmer"} default-asset-placeholder-${s} default-asset-placeholder`,imageAlt:r||""})),o().createElement("div",{className:"d-flex flex-column justify-content-center px-4 w-50"},o().createElement(cn,{height:"15%",skeletonClasses:"my-3"}),o().createElement(cn,{height:"13%",skeletonClasses:"my-3"}),o().createElement(cn,{height:"10%",skeletonClasses:"my-3"}),o().createElement(cn,{height:"9%",width:"50%",skeletonClasses:"my-3"}),o().createElement(cn,{height:"10%",skeletonClasses:"my-3"})));break;case k.MOBILE_9X16:m=o().createElement("div",{className:h(["d-flex","promo-card","flex-column","h-100","border"])},o().createElement("div",{className:`\n\t\t\t\t\t\t\tw-100 d-flex justify-content-center align-items-center \n\t\t\t\t\t\t\tdefault-asset-placeholder-incentive-${s} default-${l}`,style:{backgroundImage:"",backgroundPosition:"center bottom",backgroundSize:"cover",height:"45%"},fetchpriority:"high"},o().createElement(cn,{placeholderImage:i||A,width:u?"45%":"100%",height:!u&&"100%",skeletonClasses:`${!u&&"skeleton-shimmer"} default-asset-placeholder-${s} flex-grow-1 default-asset-placeholder`,imageAlt:r||""})),o().createElement(o().Fragment,null,o().createElement("div",{className:"d-flex flex-column justify-content-center px-4 text",style:{height:"60%",padding:"5px 20px"}},o().createElement("div",{className:"skeleton-shimmer my-3 py-4 h-30"},o().createElement(cn,{height:"30px",skeletonClasses:"my-3"})),o().createElement("div",{className:"skeleton-shimmer my-3 py-3 h-20"},o().createElement(cn,{height:"25px",skeletonClasses:"my-3"})),o().createElement("div",{className:"skeleton-shimmer my-3 py-3 h-10 w-50"},o().createElement(cn,{height:"15px",width:"50%",skeletonClasses:"my-3"})),o().createElement("div",{className:"skeleton-shimmer my-3 py-3 h-10"},o().createElement(cn,{height:"15px",skeletonClasses:"my-3"}))))),p={borderBottom:d};break;case k.DESKTOP_9X16:m=o().createElement("div",{className:`d-flex flex-column h-100 default-asset-placeholder-incentive-${s}`,style:{backgroundImage:"",backgroundPosition:"center bottom",backgroundSize:"cover"}},o().createElement("div",{className:"w-100 d-flex h-50"},o().createElement(cn,{width:u?"65%":"100%",height:!u&&"100%",placeholderImage:i||A,skeletonClasse
1s:`custom-asset ${!u&&"skeleton-shimmer"} default-asset-placeholder-${s} default-asset-placeholder`})),o().createElement("div",{className:"d-flex flex-column px-4 pt-5 w-100 h-50 border shimmer-blocks-container text"},o().createElement("div",{className:"shimmer-container skeleton-shimmer my-3 py-4 h-15"},o().createElement(cn,{height:"15%",width:"100%",skeletonClasses:"my-3"})),o().createElement("div",{className:"shimmer-container skeleton-shimmer my-3 py-3 h-13"},o().createElement(cn,{height:"13%",width:"100%",skeletonClasses:"my-3"})),o().createElement("div",{className:"shimmer-container skeleton-shimmer my-3 py-3 h-9 w-50"},o().createElement(cn,{height:"9%",width:"50%",skeletonClasses:"my-3"})),o().createElement("div",{className:"shimmer-container skeleton-shimmer my-3 py-3 h-10"},o().createElement(cn,{height:"10%",width:"100%",skeletonClasses:"my-3"}))))}return o().createElement(Ge,{aspectRatio:a,account:c,innerWrapperStyle:p,isSkeleton:!0},m)};pn.propTypes={ratio:a().string,enableCarousel:a().string,displayLimit:a().string,placeholderImage:a().string,aspectRatio:a().string,windowId:a().string.isRequired,type:a().string,title:a().string,account:a().shape({})},pn.defaultProps={ratio:"9/16",enableCarousel:"false",displayLimit:"1",placeholderImage:"",aspectRatio:"Desktop9x16",type:"event",title:"",account:null},Ke(".wsm-specials-display-main-container {\n  position: relative;\n}\n.wsm-specials-display-main-container #top-skeleton-wrapper {\n  border: #D0D1D3 1px solid;\n}\n.wsm-specials-display-main-container #top-skeleton-wrapper .default-asset-placeholder {\n  object-fit: cover;\n  object-position: center;\n}\n.wsm-specials-display-main-container #top-skeleton-wrapper .shimmer-blocks-container {\n  height: 270px !important;\n}\n.wsm-specials-display-main-container #top-skeleton-wrapper .shimmer-blocks-container .shimmer-container {\n  display: block;\n  background-color: #e1e1e1;\n  min-height: 35px !important;\n  width: 100%;\n  min-width: 100px;\n  margin-bottom: 15px;\n}\n.wsm-specials-display-main-container #top-skeleton-wrapper .default-INCENTIVE img {\n  max-width: 45%;\n}");const mn=e=>{const{aspectRatio:t,enableCarousel:n,displayLimit:i,customAssets:a,imageUrl:s,windowId:l,filteredPromosLength:r}=e;let c="";const d=(t===k.MOBILE_6X1||t===k.MOBILE_4X3_SLIDESHOW)&&r?.length>2;a?c=a:t!==k.MOBILE_6X1&&(c=s);const p=[t===k.MOBILE_4X3_SLIDESHOW&&"false"===n?"mb-4":""],m=[k.MOBILE_4X3_SLIDESHOW,k.DESKTOP_10X1,k.MOBILE_6X1].includes(t)&&r?.length>2,u=()=>"true"===n&&"1"!==i&&o().createElement("div",{className:"align-items-center justify-content-between indicator-placeholder "+(m?"d-flex":"d-none"),style:{height:t===k.DESKTOP_10X1?"50px":"48px"},id:`indicator-placeholder-${l}`},o().createElement("div",{className:"d-flex justify-content-center align-items-center flex-grow-1"},o().createElement(cn,{height:"8px",width:"8px",circle:!0,skeletonClasses:"mx-2"}),o().createElement(cn,{height:"8px",width:"8px",circle:!0,skeletonClasses:"mx-2"}),o().createElement(cn,{height:"8px",width:"8px",circle:!0,skeletonClasses:"mx-2"}),o().createElement(cn,{height:"8px",width:"8px",circle:!0,skeletonClasses:"mx-2"})),t===k.DESKTOP_10X1?o().createElement(o().Fragment,null,o().createElement(cn,{height:"35px",width:"35px",circle:!0,skeletonClasses:"mx-4"}),o().createElement(cn,{height:"35px",width:"35px",circle:!0,skeletonClasses:"mx-3 ml-4"}),o().createElement(cn,{height:"35px",width:"35px",circle:!0,skeletonClasses:"ml-3 mr-6"})):o().createElement(cn,{height:t===k.MOBILE_6X1?"28px":"30px",width:t===k.MOBILE_6X1?"28px":"30px",circle:!0,skeletonClasses:"m-4"}));return o().createElement(o().Fragment,null,o().createElement("div",{id:"top-skeleton-wrapper",style:{height:d?be(n,i,t):null},className:h(p)},o().createElement("div",{id:`spe-custom-asset-wrapper-${l}`,className:a?"d-block":"d-none"},o().createElement(dn,Nt({},e,{placeholderImage:c})),m&&o().createElement(u,null)),o().createElement("div",{id:`spe-default-asset-wrapper-${l}`,className:a?"d-none":"d-block"},o().createElement(pn,Nt({},e,{placeholderImage:c})),m&&o().createElement(u,null))))};mn.propTypes={aspectRatio:a().string.isRequired,enableCarousel:a().string,displayLimit:a().string,customAssets:a().string,imageUrl:a().string,ratio:a().string,windowId:a().string.isRequired,filteredPromosLength:a().number,account:a().shape({})}
1,mn.defaultProps={enableCarousel:"false",displayLimit:"1",customAssets:"",imageUrl:"",ratio:"9/16",filteredPromosLength:1,account:null};const un=({promo:e,account:t,personalized:n,aspectRatioProp:i,designConfig:a={},accountId:r,enabledResizeAndPosition:c=!1,onResizeAndPositionButtonClick:d=()=>{},promoIndex:p=null})=>{const{locale:m,widgetName:u,windowId:g,deviceType:b}=(0,l.useRequestData)(),x={...t,accountId:r},[E,v]=(0,s.useState)(0),[I,C]=(0,s.useState)(!1),_=(0,s.useRef)(null),T=function(e){const[t,n]=(0,s.useState)(!1);return $("mouseenter",()=>{n(!0)},e),$("mouseleave",()=>{n(!1)},e),t}(_),[N,S]=(0,s.useState)({}),D=(0,s.useRef)(null),P=(0,s.useRef)(null),A=(0,l.useLabels)(),L=u===R?(0,l.usePrefs)():((e,t)=>{const{vehicleCardLayout:n}=e;let i;i="grid"===n&&"MOBILE"!==t?k.DESKTOP_9X16:"MOBILE"===t?k.MOBILE_9X16:k.DESKTOP_10X1;const a={aspectRatio:i};return Object.entries(e).reduce((e,[t,n])=>{if(t.includes("scm")){const i=t.split("scm")[1];e[i.substring(0,1).toLowerCase()+i.substring(1)]=n}return{...e,...a}},{})})((0,l.usePrefs)(),b),z=i||L.aspectRatio,{reduceDollarSignSize:q,enablePrint:B}=L,V=(0,l.useSitemap)(),X=V.get("PROMOTIONS_LEAD_FORM_FRAGMENT");let H,W=null;const[K,G]=O.get(z),Y=z!==k.MOBILE_4X3_COUPON&&z!==k.DESKTOP_4X3?`${K}/${G}`:void 0,Q=Object.keys(a).length>0,[J]=((e,t)=>{const n=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if("undefined"!=typeof window&&n&&n.current&&"undefined"!=typeof IntersectionObserver){const i=n.current,a=new IntersectionObserver(n=>{const[i]=n;i.intersectionRatio>=e&&(t(),a.disconnect())},{threshold:e});a.observe(i)}},[e]),[n]})(.99,()=>{(({widgetName:e,windowId:t,aspectRatio:n,promo:i,index:a,personalized:s})=>{const o="undefined"!=typeof window&&window.navigator.userAgent.includes("iPhone")&&window.navigator.userAgent.includes("AppleWebKit")&&n===k.MOBILE_9X16||n===k.MOBILE_9X16_COUPON;i&&Ee({widgetName:e,windowId:t,event:"specialsEvent",specialType:"impression",specialCategory:i.type.charAt(0)+i.type.slice(1).toLowerCase(),specialId:i.id,specialPlacementType:M(e,n),specialPersonalized:s,specialAutoGen:i.autoGenerated,nonInteractive:!0,promoIndex:a,customAsset:i.customAssets&&Object.values(i.customAssets).some(e=>"string"==typeof e&&e.length>0),appleWallet:o&&i?.enabledAppleWallet||!1})})({widgetName:u,windowId:g,aspectRatio:z,promo:e,index:0,personalized:n})});if((0,s.useEffect)(()=>{const e=J.current.parentElement;let t;return"function"==typeof ResizeObserver?(t=new ResizeObserver(e=>{v(e[0].contentRect.width)}),t.observe(e)):v(e.getBoundingClientRect().width),()=>{t&&t.unobserve(e)}},[J]),!e||!t)return o().createElement("div",{ref:J},o().createElement(mn,{ratio:Y,aspectRatio:z,account:x,enableCarousel:"false",displayLimit:"1",windowId:g,filteredPromosLength:1}));const{condition:Z="NEW",autoGenerated:ee,customAssets:te={},customAssetVideos:ne={},incentiveData:{title:ie}={},destinationLabel:ae="",secondaryDestinationLabel:se="",destinationUrl:oe="",secondaryDestinationUrl:le="",secondaryCtaConfig:ce={},inventoryCount:de=0,type:pe,imageUrl:ue,discountType:ge,discountValue:he,id:fe,oemId:ye,title:be,thirdPartyTrackingData:xe=""}=e,ve=!!(te&&(te[z]||te[`${z}_video`])||ne&&ne[z]),{url:Ie,label:ke,isFullSlideLink:Ce}=we({condition:Z,label:ae,url:oe,inventoryCount:de,isCustomAsset:ve,labels:A,sitemap:V,type:pe}),{url:_e,label:Te}=we({condition:Z,label:se,url:le,inventoryCount:de,isCustomAsset:ve,labels:A,sitemap:V,type:pe}),Ne="LEAD"===Ie;let Se,De=Ce;const Oe=z===k.DESKTOP_4X1||z===k.MOBILE_4X3_SLIDESHOW,Pe=j(t)||U(r),Ae=Oe&&"mini"===Pe,Re=Oe&&"bmw"===Pe,Le=(e=>e===k.DESKTOP_4X3||e===k.MOBILE_4X3_SLIDESHOW||e===k.MOBILE_4X3_COUPON||e===k.DESKTOP_4X1)(z),$e={display:"flex",alignItems:z===k.DESKTOP_4X1?"center":"flex-end",flexDirection:z===k.DESKTOP_4X1?"row":"column",justifyContent:"",textAlign:"end",labelStyles:{fontWeight:"normal"}},ze=me(m,ge,he,A,q,$e),Me=h([!Le||Re||Ae?"":"text-dark","btn-no-decoration",Re||Ae?"fs-bolder w-100 text-light":"font-weight-normal",Re?"dnd-button-bmw-mini bg-dnd-bmw":"",Ae?"dnd-button-bmw-mini text-uppercase bg-dnd-mini":""]),qe=h(["absolute-bottom","bg-neutral-300","text-dark","w-100","py-2","btn-no-decoration","font-weight-normal","rounded-0"]),Fe={Desktop9x16:qe,Mobile9x16:qe,Desktop10x1:h(["btn-no-decoration","font-weight-normal","rounded-0","pl-0"]),Desktop4x3:Me,Mobile4x3:Me,Desktop4x1:Me},Be={personalized:n,isCustomAsset:ve,ctaLabel:ke,ctaUrl:Ie,secondaryCtaLabel:Te,secondaryCtaUrl:_e,secondaryCtaConfig:ce,promo:e,isMobile:"MOBILE"===b,designConfig:a,widgetName:u,isDesignConfig:Q,containerDimensions:{containerWidth:E}};if(ve){De=!!Ie;const t=h(["asset-disclaimer","absolute-left","disclaimer-on-aspect-ratio-box",z===k.DESKTOP_9X16||z===k.MOBILE_9X16?"absolute-bottom-left w-50":"",Re||Ae?"absolute-top w-100 dnd-button-bmw-mini d-flex":"absolute-bottom","absolute-left","disclaimer-on-aspect-ratio-box"]),n=o().createElement(It,{classes:Fe[F(z)?k.MOBILE_4X3:z],ctaButtonClasse
1s:["my-4"],btnStyle:"link",btnSize:"small",listingConfigId:"",applicableVehicle:"",onShowLeadDialog:e=>C(e),ctaPrint:o().createElement(We,{accountId:r,promoIndex:0,pushOutsiderCtaPrint:e=>{e&&S(e),D?.current?.onPrintView()}})}),i=e=>[k.DESKTOP_10X1].includes(e),a=e?.additionalDetails&&e.additionalDetails.length>0||e?.disclaimer&&e.disclaimer.length>0;De?(a&&(W=o().createElement(o().Fragment,null,o().createElement("div",{className:i(z)?"":t,style:i(z)?void 0:{zIndex:3}},z!==k.DESKTOP_10X1?n:null),o().createElement("div",{className:"d-inline"},z===k.DESKTOP_10X1?n:null))),H=o().createElement("div",{id:"container"},o().createElement(et,{width:E,promo:e}))):H=o().createElement(o().Fragment,null,o().createElement("div",{id:"container"},o().createElement(et,{width:E,promo:e}),a&&o().createElement("div",{className:i(z)?"":t,style:i(z)?void 0:{zIndex:3}},z!==k.DESKTOP_10X1?n:null)),a&&o().createElement("div",{className:"d-inline"},z===k.DESKTOP_10X1?n:null))}else H=o().createElement(an,{accountId:r,promoIndex:0,discountDisplay:ze,width:E,triggerPrint:e=>{e&&S(e),D?.current?.onPrintView()}});if(De){const t=()=>{Ee({appleWallet:!1,widgetName:u,windowId:g,event:"specialsEvent",specialType:"click",specialCategory:pe.charAt(0)+pe.slice(1).toLowerCase(),specialId:fe,specialPlacementType:M(u,z),specialPersonalized:n,specialAutoGen:ee,nonInteractive:!1,customAsset:!0,oemId:ye,title:be||ie,promoIndex:p})};Se=Ne?o().createElement("a",{href:"#","data-href":`${X}?promotionId=${fe}`,onClick:()=>{t()},rel:"noreferrer",className:I?"":"dialog","data-width":"375","data-title":ke||ae},H):o().createElement("a",{href:"NO_DESTINATION_URL"===Ie?void 0:Ie,target:e?.ctaConfig?.openInNewTab?"_blank":"_self",onClick:()=>{t()},rel:"noreferrer"},H),W&&(Se=o().createElement("div",{className:"position-relative"},Se,W))}const je=(0,s.useMemo)(()=>{let e;return e=c?o().createElement("div",{className:"rendered-promo-wrapper"},o().createElement("div",{style:{pointerEvents:"none"}},H),o().createElement("div",{style:{pointerEvents:"none"}},W),T&&!ve&&(""!==a?.background?.backgroundImage||""!==a?.foregroundImage)&&o().createElement(ln,{onClick:()=>{d(z)}})):De?Se:H,e},[c,T,Se,H,W]),Ve=o().createElement(mn,{ratio:Y,aspectRatio:z,account:x,enableCarousel:"false",customAssets:re(te[z],E).src,imageUrl:re(ue,E).src,displayLimit:"1",windowId:g,filteredPromosLength:1});let Ue;return void 0!==a&&Object.keys(a).length&&(Ue={id:a.id,name:a.name,scope:a.scope}),"undefined"!=typeof window?o().createElement(s.Suspense,{fallback:Ve},o().createElement("div",{id:`promo-${pe}-${fe}`,key:e.id,ref:J,className:h(["wsm-specials-display","wsm-specials-display-main-container","position-relative",`promo-type-${pe.toLowerCase()}`,F(z)?k.MOBILE_4X3.toLowerCase():z.toLowerCase(),ve?"custom-asset":"h-100"]),"data-third-party-tracking-object":xe,"data-design-config-id":Ue?.id,"data-design-config-name":Ue?.name,"data-design-config-scope":Ue?.scope,"data-account-id":r,"data-testid":z.toLowerCase(),"aria-labelledby":ve||"ws-inv-listing"!==u&&u!==R?null:`header-${pe}-${fe} content-${pe}-${fe} discount-${pe}-${fe} coupon-${pe}-${fe}`},o().createElement(w.Provider,{value:Be},o().createElement(y.Provider,{value:i?{...L,aspectRatio:i}:L},o().createElement(f.Provider,{value:x},o().createElement("div",{className:"h-100",ref:_},je,"LEAD"===_e&&o().createElement("div",{className:h(["dialog","d-none"])},"Open Lead form")),"true"===B&&e?o().createElement("div",{ref:P},o().createElement(Tt,{accountDataDistributor:N,ref:D,componentToPrintRef:P,isDisclosure:Re||Ae})):null))))):Ve};un.propTypes={aspectRatioProp:a().string,promo:a().shape(ee),designConfig:a().shape({}),account:a().shape({}),personalized:a().bool,accountId:a().string.isRequired,enabledResizeAndPosition:a().bool,onResizeAndPositionButtonClick:a().func,promoIndex:a().number},un.defaultProps={aspectRatioProp:"",designConfig:{},promo:void 0,account:null,personalized:!1,enabledResizeAndPosition:!1,onResizeAndPositionButtonClick:()=>{},promoIndex:null}},766(e){"use strict";e.exports=DDC.Hysterics},174(e){"use strict";e.exports=DDC.WsmCommonData},935(e){"use strict";e.exports=PropTypes},594(e){"use strict";e.exports=React},452(e){"use strict";e.exports=ReactBootstrap},206(e){"use strict";e.exports=ReactDOM},40(e){"use strict";e.exports=ReactRedux}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return a[e].call(n.exports,n,n.exports,o),n.exports}o.m=a,o.n=e=>
1{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,n)=>(o.f[n](e,t),t),[])),o.u=e=>"bundle."+e+".3b6b56a9757723e463843c2fcbcba5bb.js",o.miniCssF=e=>792===e?"bundle.e99f433ca8c17e09156870b1880daf82.css":"bundle."+e+".3d717d2169bd89a8e2c03d589d82e538.css",o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="ws-specials:",o.l=(n,i,a,s)=>{if(e[n])e[n].push(i);else{var l,r;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var p=c[d];if(p.getAttribute("src")==n||p.getAttribute("data-webpack")==t+a){l=p;break}}l||(r=!0,(l=document.createElement("script")).charset="utf-8",o.nc&&l.setAttribute("nonce",o.nc),l.setAttribute("data-webpack",t+a),l.src=n),e[n]=[i];var m=(t,i)=>{l.onerror=l.onload=null,clearTimeout(u);var a=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach(e=>e(i)),t)return t(i)},u=setTimeout(m.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=m.bind(null,l.onerror),l.onload=m.bind(null,l.onload),r&&document.head.appendChild(l)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/static/ws/specials/",n=e=>new Promise((t,n)=>{var i=o.miniCssF(e),a=o.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),i=0;i<n.length;i++){var a=(o=n[i]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===t))return o}var s=document.getElementsByTagName("style");for(i=0;i<s.length;i++){var o;if((a=(o=s[i]).getAttribute("data-href"))===e||a===t)return o}})(i,a))return t();((e,t,n,i)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.onerror=a.onload=s=>{if(a.onerror=a.onload=null,"load"===s.type)n();else{var o=s&&("load"===s.type?"missing":s.type),l=s&&s.target&&s.target.href||t,r=new Error("Loading CSS chunk "+e+" failed.\n("+l+")");r.code="CSS_CHUNK_LOAD_FAILED",r.type=o,r.request=l,a.parentNode.removeChild(a),i(r)}},a.href=t,document.head.appendChild(a)})(e,a,t,n)}),i={792:0},o.f.miniCss=(e,t)=>{i[e]?t.push(i[e]):0!==i[e]&&{599:1}[e]&&t.push(i[e]=n(e).then(()=>{i[e]=0},t=>{throw delete i[e],t}))},(()=>{var e={792:0};o.f.j=(t,n)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var a=new Promise((n,a)=>i=e[t]=[n,a]);n.push(i[2]=a);var s=o.p+o.u(t),l=new Error;o.l(s,n=>{if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",l.name="ChunkLoadError",l.type=a,l.request=s,i[1](l)}},"chunk-"+t,t)}};var t=(t,n)=>{var i,a,[s,l,r]=n,c=0;if(s.some(t=>0!==e[t])){for(i in l)o.o(l,i)&&(o.m[i]=l[i]);if(r)r(o)}for(t&&t(n);c<s.length;c++)a=s[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=globalThis.webpackChunkws_specials=globalThis.webpackChunkws_specials||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e=o(206),t=o(594),n=o.n(t),i=o(40),a=o(973);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s.apply(null,arguments)}class l extends n().Component{constructor(e){super(e),this.renderDelegate=this.renderDelegate.bind(this)}renderDelegate({labels:e}){const{HeadingTag:t,headingText:i,widgetId:a,toggleCollapse:o,showIcon:l,headingClasses:r,iconClasses:c}=this.props,d=[...c];let p={};if(o){const e="ddc-icon-expand";d.push(e),d.push("icon-style-collapse"),p={role:"button","data-toggle":"collapse","data-target":`#${a}-collapse`,"data-expand-icon-class":`${e}`,"data-collapse-icon-class":"ddc-icon-collapse","aria-expanded":"false","aria-controls":`${a}-collapse`}}return n().createElement(t,s({className:r.join(" ")},p),l&&n().createElement(n().Fragment,null,n().createElement("i",{className:d.join(" ")})," "),e.getHTML(i))}render(){return this.props.headingText&&"FALSE"!==this.props.headingText.toUpperCase()?n().createElement(a.Common,{render:this.renderDelegate}):null}}l.defaultProps={HeadingTag:"h3",headingText:""};const r=l,c=e=>{const{id:t,children:i,toggleCollapse:a}=e;return a?n().createElement("div",{id:`${t}-collapse`,className:"collapse collapse-content"},i):i};c.defaultProps={toggleCollapse:!1};const d=c;var p=o(62),m=o(331),u=o(174),g=o(252),h=o(820);const f="undefined"!=typeof window,y=({children:e,placeholder:n=null,maxWait:i=5e3})=>{const[a,s]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{"complete"===document.readyState?s(!0):(async e=>Promise.race([new Promise(e=>{window.addEventListener("load",()=>{e("pageLoad")})}),new Promise(t=>{setTimeout(()=>{t("maxWait")},e)})]))(i).then(e=>{s(!0)})},[i]),f&&a?React.createElement(t.Suspense,{fallback:n},e):n};y.displayName="DeferredComponent";const w=y;var b=o(194),x=o(409);const E=(e,t)=>{if(!e||0===t.length)return!0;const{min:n,max:i}=e;return t.some(e=>Number(e)>=n&&Number(e)<=i)},v=e=>{const t={MAKE:"",MODEL:"",TRIM:"",YEAR:""};for(const n of e)t[n.field]=n.value;return t},I=(e,t,n)=>{e[t]?e[t].add(n):e[t]=new Set([n])},k=(e,t)=>{if(!Object.keys(t).length)return e;const n=e.filter(e=>e.type===x.g.VEHICLE);if(!n.length)return e;const{mmtMapping:i,makes:a,models:s,trims:o}=((e,t,n,i,a)=>{const s=new Set([]),o=new Set([]),l={};for(const r of e)for(const e of r.filterRules){const c=v(e);
1if(c.YEAR&&!c.MAKE&&I(l,"::",r.id),E(c.YEAR,a)){if(i.includes(c.TRIM)){n.length||(o.add(c.MODEL),I(l,`${c.MAKE}:${c.MODEL}`,r.id)),t.length||(s.add(c.MAKE),I(l,c.MAKE,r.id));const e=`${c.MAKE}:${c.MODEL}:${c.TRIM}`;I(l,e,r.id)}if(n.includes(c.MODEL)){t.length||(s.add(c.MAKE),I(l,c.MAKE,r.id));const e=`${c.MAKE}:${c.MODEL}`;I(l,e,r.id)}if(t.includes(c.MAKE)){const e=`${c.MAKE}`;I(l,e,r.id)}}}return{mmtMapping:l,makes:t.length?t:Array.from(s),models:n.length?n:Array.from(o),trims:i}})(n,t.make||[],t.model||[],t.trim||[],t.year||[]);let l=new Set([]),r=new Set([]),c=new Set([]);for(const e of a){const t=`${e}`;if(i[t]){c=new Set([...c,...i[t]]);for(const t of s){const n=`${e}:${t}`;if(i[n]){r=new Set([...r,...i[n]]);for(const n of o){const a=`${e}:${t}:${n}`;i[a]&&(l=new Set([...l,...i[a]]))}}}}}const d=((...e)=>e.find(e=>e&&e.size>0)||null)(l,r,c,i["::"]);return d?n.filter(e=>d.has(e.id)):e};var C=o(452);const _=({onClick:e,showMoreBtn:t})=>{const i=(0,u.useLabels)();let a;return a=t?n().createElement(C.Button,{className:"d-block w-100 load-more",onClick:()=>e(),bsStyle:"primary",bsSize:"lg","aria-label":"Load More"},i.get("LOAD_MORE"),n().createElement("i",{className:"ddc-icon ddc-icon-arrow1-down text-light pl-3"})):null,a},T=n().lazy(()=>o.e(599).then(o.bind(o,599))),N=[".mp4",".webm",".ogg",".ogv",".mov"],S=(e="")=>N.some(t=>((e="")=>"string"==typeof e?e.split("|")[0].trim():"")(e).split("?")[0].toLowerCase().endsWith(t)),D=({promos:e,isMobile:i,width:a,isCoupon:s,filterParams:o,csrPlaceholder:l})=>{const r=k(e,o),{enableCarousel:c,aspectRatio:d,showLoadMoreButton:p}=(0,t.useContext)(h.G),m=d===x.aR.DESKTOP_9X16||d===x.aR.MOBILE_9X16,u=m?8:9,g=i?4:u;let f;const y="true"===c&&s&&!i&&!m,E="true"===c&&m,v=e=>r.slice(0,e),[I,C]=(0,t.useState)("true"===p&&r.length>g),[N,D]=(0,t.useState)(I?v(g):r);(0,t.useEffect)(()=>{!i&&I&&D(v(a+48<992?6:u))},[a]);const O=n().createElement(w,{placeholder:l},n().createElement(T,{isMobile:i,promos:r,width:a,isCouponCaro:y||E})),P=d===x.aR.DESKTOP_4X1||d===x.aR.DESKTOP_10X1||d===x.aR.MOBILE_4X3_SLIDESHOW||d===x.aR.MOBILE_4X3_COUPON;if(1===r.length){const e=P&&((e,t)=>{if(!e)return!1;const n=`${t}_video`;return[e?.customAssetVideoForms?.[n],e?.customAssetVideoForms?.[t],e?.customAssets?.[n],e?.customAssets?.[t],e?.customAssetVideos?.[n],e?.customAssetVideos?.[t]].some(e=>!!e&&("object"==typeof e?[e.highestUrl,e.xmlUrl,...Array.isArray(e.sources)?e.sources.map(e=>e?.url):[]].some(e=>e&&S(e)):S(e)))})(r[0],d);if(e)f=O;else{const e=n().createElement(b.A,{isMobile:i,isVisible:!0,promo:r[0]});e&&(f=n().createElement("div",{className:"single-promo-container","data-testid":"single-container"},n().createElement("div",{className:"single-promo"},n().createElement("div",null,e))))}}else f=s?y&&r.length>2||E&&!i&&r.length>2||E&&i&&r.length>1||"true"===c&&i&&!m&&r.length>1?O:n().createElement("div",{className:"coupon-container d-flex flex-wrap"},N?.map(e=>n().createElement(b.A,{isMobile:i,isVisible:!0,promo:e,key:e.id})),n().createElement(_,{onClick:()=>{D(r),C(!1)},showMoreBtn:I})):O;return f},O=()=>"undefined"!=typeof window&&window.newrelic&&"object"==typeof window.newrelic,P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;O()&&window.newrelic.addPageAction(e,t)},A=e=>({type:x.a.SET_HAS_DATA,payload:e}),R=e=>({type:x.a.SET_PERSONALIZED,payload:e});const L=e=>({type:x.a.SET_ACCOUNT,payload:e});var $=o(766);const z=new class{getInstance(e,t){return this.proxyService||(this.proxyService=(0,$.hysteriFetch)("specialsData",{[$.wrappers.timeout.contextKey]:{timeout:e},[$.wrappers.retries]:t})),this.proxyService}},M=e=>({type:x.a.SET_DESIGNS,payload:e}),q=(e={})=>{const t={...e.customAssets||{}};return Object.entries(e.customAssetVideos||{}).forEach(([e,n])=>{n&&(t[e]=t[e]||n,t[`${e}_video`]=t[`${e}_video`]||n)}),{...e,customAssets:t}},F=e=>{const[n,a]=(0,t.useState)({promos:[],isLoading:!0}),{locale:s,deviceType:o}=(0,u.useRequestData)(),l=(0,u.useFlags)(),r=z.getInstance(l["ws-specials-client-timeout"],l["ws-s
1pecials-client-retries"]),{vehicleId:c}=(0,i.useSelector)(e=>e.vehicleInfo),{id:d}=(0,i.useSelector)(e=>e.accountId),p=(0,i.useDispatch)(),m="undefined"!=typeof window&&Boolean(window.Cookies);let h=null,f=null;m&&(h=window.Cookies.get("abc")??window.Cookies.get("pxa_id")??null,f=window.DDC.dataLayer.page.pageInfo??window.DDC.dataLayer.page.pageInfo??null);const y=(0,g.FE)(e,d,s,h,o,c);if("undefined"!=typeof window){const e="true"===sessionStorage.getItem("pixallCookieIsSet");P("ws-specials-usePromos-fetch",{pixallIdMissing:!h&&e})}return(0,t.useEffect)(()=>{r("/api/widget/ws-specials/promos",{method:"POST",headers:{"content-type":"application/json;charset=UTF-8","x-page-id":f?f.pageId:"","x-page-name":f?f.pageName:"","x-page-path":f?f.pagePath:""},body:JSON.stringify({parameters:y})}).then(e=>{if(!e)return(0,g.He)("ws-specials-promos-fetched-no-response"),void a({promos:[],isLoading:!1});const{promos:t,personalized:n,accountInfo:i,designs:s}=e,o=((e=[])=>Array.isArray(e)?e.map(q):[])(t);p(R(n||!1)),p(A(!0)),p(L(i)),p(M(s)),a({promos:o,isLoading:!1}),(0,g.He)("ws-specials-promos-fetched-success")}).catch(e=>{const t=e.message;throw a({promos:[],isLoading:!1}),(0,g.He)("ws-specials-promos-fetched-with-error"),P("ws-specials-error",{parameters:y,errorMsg:t}),new Error(`PROMOS/CLIENT/PROMOS ENDPOINT FETCH ERROR: ${e.message}`)})},[]),[n]};var B=o(623);const j=(e="",t="")=>{const n=t.split("=");return new RegExp(`.*[?&]${n[0]}=.*`).test(e)},V=[52,325,520,768,1200,1600,2e3],U=/(?:^|\/\/)(pictures|images|static)(-np)?\.([a-z0-9-]+\.)*dealer\.com(?=[/:?#]|$)/,X=(e,t=0)=>{const n={src:"",width:0};var i;return t>0&&(n.src=e,i=e,(U.test(i)||/\/static\/assets\//.test(i))&&(n.width=((e=0)=>V.reduce((t,n)=>e>t?n:t))(t),n.src=((e="",t="")=>{if(j(e,t)||!t)return e;const n=e&&e.includes("?")?"&":"?";return`${e}${n}${t}`})(e,`impolicy=downsize_bkpt&w=${n.width}`))),n};var H=o(989),W=o(19),K=o.n(W);const G=({children:e,innerWrapperStyle:a,isSkeleton:s})=>{const{aspectRatio:o}=(0,t.useContext)(h.G),{deviceType:l}=(0,u.useRequestData)(),[r,c]=x.Oy.get(o),d={};let p=o!==x.aR.MOBILE_4X3_COUPON&&o!==x.aR.DESKTOP_4X3?`${r}/${c}`:void 0;const m=(0,i.useSelector)(e=>e.account),{id:g}=(0,i.useSelector)(e=>e.accountId),f=(0,i.useSelector)(e=>e.variationRef),y=o===x.aR.DESKTOP_4X1||o===x.aR.MOBILE_4X3_SLIDESHOW,w=(0,B.xq)(m)||(0,B.SS)(g)||((0,B.Pl)(f)?"mazda":void 0),b=w&&y&&l?(0,B.mq)(w,f)[l.toLowerCase()]:void 0,E=b&&("mazda"===w||"stellantis"===w);return E&&(p=`${b.width}/${b.height}`,d.aspectRatio=p,d.height="auto",d.paddingTop=`calc(${b.height} / ${b.width} * 100%)`),n().createElement("div",{"data-testid":"aspect-ratio-box",className:`aspect-ratio-${r}-${c}`,style:{...d,aspectRatio:p}}
1,n().createElement("div",{"data-testid":"inner-wrapper",className:`aspect-ratio-box-inner-wrapper ${E&&!s?"fixed-program-aspect-ratio":""} `,style:{...a,border:"0"}},e))},Y=({placeholderImage:e,windowId:t,account:i})=>{let a;const s=i&&(0,B.xq)(i),o="bmw"===s||"mini"===s,l=n().createElement(K(),{placeholderImage:e||x.Q7,width:"100%",height:"100%",skeletonClasses:`custom-asset skeleton-shimmer custom-asset-placeholder-${t}`,imageAlt:"blank gif"});return a=o?l:n().createElement(G,{isSkeleton:!0},l),a},Q=({ratio:e,displayLimit:i,enableCarousel:a,placeholderImage:s,aspectRatio:o,windowId:l,isServer:r,modelOfferBackgroundImage:c,type:d,title:m})=>{const u=`${"true"===a&&"1"!==i?"1px solid #ddd":null}`;let g,h=null;const f=!r&&"INCENTIVE"===d;switch(o){case x.aR.MOBILE_6X1:h=n().createElement("div",{style:{aspectRatio:e},className:(0,p.H)(["wrapper","d-flex","py-3"])},n().createElement(K(),{width:"15%",skeletonClasses:"mr-2 ml-3 d-block"}),n().createElement(K(),{width:"55%",skeletonClasses:"mx-2 title"}),n().createElement(K(),{width:"30%",skeletonClasses:"ml-2 mr-3 cta-wrapper"})),g={border:u};break;case x.aR.DESKTOP_10X1:h=n().createElement("div",{className:`d-flex flex-row w-100 default-asset-placeholder-incentive-${l}`,style:{aspectRatio:e,backgroundImage:f?`url(${c})`:"",backgroundPosition:"center bottom",backgroundSize:"cover"},fetchpriority:"high"},n().createElement("div",{className:"w-25 d-flex justify-content-center align-items-center"},n().createElement(K(),{placeholderImage:s||x.Q7,width:f?"65%":"100%",height:!f&&"100%",skeletonClasses:`${!f&&"skeleton-shimmer"} default-asset-placeholder-${l} \n\t\t\t\t\t\t\t\tdefault-asset-placeholder flex-shrink-0 fade-image-wrapper image`,imageAlt:m})),n().createElement("div",{className:"h-100 d-flex flex-column justify-content-center px-5",style:{width:"60%"}},n().createElement(K(),{height:"24%",skeletonClasses:"my-3"}),n().createElement(K(),{height:"18%",skeletonClasses:"my-3"})),n().createElement("div",{className:"h-100 d-flex flex-column justify-content-center pr-5",style:{width:"15%"}},n().createElement(K(),{height:"24%",skeletonClasses:"my-3"}),n().createElement(K(),{height:"18%",skeletonClasses:"my-3"}))),g={borderBottom:u};break;case x.aR.MOBILE_4X3_SLIDESHOW:h=n().createElement("div",{className:(0,p.H)(["d-flex","promo-card","flex-column","h-100"])},n().createElement("div",{className:`\n\t\t\t\t\t\t\tw-100 d-flex justify-content-center align-items-center \n\t\t\t\t\t\t\tdefault-asset-placeholder-incentive-${l} default-${d}`,style:{backgroundImage:f?`url(${c})`:"",backgroundPosition:"center bottom",backgroundSize:"cover",height:"45%"},fetchpriority:"high"},n().createElement(K(),{placeholderImage:s||x.Q7,width:f?"45%":"100%",height:!f&&"100%",skeletonClasses:`${!f&&"skeleton-shimmer"} default-asset-placeholder-${l} flex-grow-1 default-asset-placeholder`,imageAlt:m})),n().createElement(t.Fragment,null,n().createElement("div",{className:"d-flex flex-column justify-content-center text",style:{height:"60%",padding:"5px 20px"}},n().createElement(K(),{height:"30px",skeletonClasses:"my-3"}),n().createElement(K(),{height:"25px",skeletonClasses:"my-3"}),n().createElement(K(),{height:"15px",width:"50%",skeletonClasses:"my-3"}),n().createElement(K(),{height:"15px",skeletonClasses:"my-3"})))),g={borderBottom:u};break;case x.aR.DESKTOP_4X1:h=n().createElement("div",{className:`d-flex flex-row h-100 default-asset-placeholder-incentive-${l}`,fetchpriority:"high",style:{backgroundImage:f?`url(${c})`:"",backgroundPosition:"center bottom",backgroundSize:"cover"}},n().createElement("div",{className:"w-50 d-flex justify-content-center align-items-center"},n().createElement(K(),{width:f?"65%":"100%",height:!f&&"100%",placeholderImage:s||x.Q7,skeletonClasses:`custom-asset ${!f&&"skeleton-shimmer"} default-asset-placeholder-${l} default-asset-placeholder`,imageAlt:m})),n().createElement("div",{className:"d-flex flex-column justify-content-center px-4 w-50"},n().createElement(K(),{height:"15%",skeletonClasses:"my-3"}),n().createElement(K(),{height:"13%",skeletonClasses:"my-3"}
1),n().createElement(K(),{height:"10%",skeletonClasses:"my-3"}),n().createElement(K(),{height:"9%",width:"50%",skeletonClasses:"my-3"}),n().createElement(K(),{height:"10%",skeletonClasses:"my-3"})));break;default:h=n().createElement(K(),{placeholderImage:s||x.Q7,width:"100%",height:"100%",skeletonClasses:`skeleton-shimmer default-asset-placeholder-${l} default-asset-placeholder`,imageAlt:m})}return n().createElement(G,{innerWrapperStyle:g,isSkeleton:!0},h)},J=(e,t,n)=>{let i="0px";if("true"===e&&"1"!==t)switch(n){case x.aR.MOBILE_6X1:case x.aR.MOBILE_4X3_SLIDESHOW:i="48px";break;default:i="0px"}return`calc(100% + ${i})`};function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Z.apply(null,arguments)}const ee=e=>{const{aspectRatio:t,enableCarousel:i,displayLimit:a,customAssets:s,imageUrl:o,windowId:l,filteredPromosLength:r,isServer:c,showSlideshowIndicatorDots:d}=e;let m="";const u=t===x.aR.MOBILE_4X3_SLIDESHOW&&r>2;m=s||o;const g=[t===x.aR.MOBILE_4X3_SLIDESHOW&&"false"===i?"mb-4":""],h=[x.aR.MOBILE_4X3_SLIDESHOW,x.aR.DESKTOP_10X1].includes(t)&&r>2,f=()=>"true"===i&&"1"!==a&&n().createElement("div",{className:"align-items-center justify-content-between indicator-placeholder "+(h?"d-flex":"d-none"),style:{height:""+(t===x.aR.DESKTOP_10X1?"50px":"48px")},id:`indicator-placeholder-${l}`},n().createElement("div",{className:"d-flex justify-content-center align-items-center flex-grow-1",style:{visibility:(0,H.oD)(d)}},n().createElement(K(),{height:"8px",width:"8px",circle:!0,skeletonClasses:"mx-2"}),n().createElement(K(),{height:"8px",width:"8px",circle:!0,skeletonClasses:"mx-2"}),n().createElement(K(),{height:"8px",width:"8px",circle:!0,skeletonClasses:"mx-2"}),n().createElement(K(),{height:"8px",width:"8px",circle:!0,skeletonClasses:"mx-2"})),t===x.aR.DESKTOP_10X1?n().createElement(n().Fragment,null,n().createElement(K(),{height:"35px",width:"35px",circle:!0,skeletonClasses:"mx-4"}),n().createElement(K(),{height:"35px",width:"35px",circle:!0,skeletonClasses:"mx-3 ml-4"}),n().createElement(K(),{height:"35px",width:"35px",circle:!0,skeletonClasses:"ml-3 mr-6"})):n().createElement(K(),{height:"30px",width:"30px",circle:!0,skeletonClasses:"m-4"}));return n().createElement(n().Fragment,null,n().createElement("div",{id:"top-skeleton-wrapper",style:{height:u?J(i,a,t):null},className:(0,p.H)(g)},n().createElement("div",{id:`spe-custom-asset-wrapper-${l}`,className:""+(s?"d-block":"d-none")},n().createElement(Y,Z({},e,{placeholderImage:m})),(c||h)&&n().createElement(f,null)),n().createElement("div",{id:`spe-default-asset-wrapper-${l}`,className:""+(!s&&o?"d-block":"d-none")},n().createElement(Q,Z({},e,{placeholderImage:m})),(c||h)&&n().createElement(f,null))))};function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},te.apply(null,arguments)}const ne=e=>e&&"undefined"!==e&&"null"!==e?e:"",ie=(e={})=>{const t={...e.customAssets||{}};return Object.entries(e.customAssetVideos||{}).forEach(([e,n])=>{n&&(t[e]=t[e]||n,t[`${e}_video`]=t[`${e}_video`]||n)}),{...e,customAssets:t}},ae=()=>{const e=(0,t.useRef)(),a=(0,u.useFlags)(),[s,o]=(0,t.useState)(0),[l,r]=(0,t.useState)(!1),[c,d]=(0,t.useState)(),[f,y]=(0,t.useState)(),[w,b]=(0,t.useState)({}),{deviceType:E,windowId:v}=(0,u.useRequestData)(),I="MOBILE"===E,k=(0,u.usePrefs)(),C={...k,aspectRatio:(0,B.nD)(k.aspectRatio,I)},{aspectRatio:_,enableAppleWallet:T,enableCarousel:N,enablePrint:S,displayLimit:O,showSlideshowIndicatorDots:P}=C,$=(0,B.P_)(_),z=m.isBrowser&&window?.DDC?.WidgetData["ws-specials"]?.[v]?.preloadedPromos;let q,j;const[V,U]=x.Oy.get(_);let W=_!==x.aR.MOBILE_4X3_COUPON&&_!==x.aR.DESKTOP_4X3&&_!==x.aR.DESKTOP_9X16&&_!==x.aR.MOBILE_9X16?`${V}/${U}`:void 0;const{isPriorityContent:K}=(0,i.useSelector)(e=>e.positionData),G=(0,i.useSelector)(e=>e.account),{id:Y}=(0,i.useSelector)(e=>e.accountId),Q=(0,i.useSelector)(e=>e.variationRef),J=(0,B.xq)(G)||(0,B.SS)(Y)||((0,B.Pl)(Q)?"mazda":void 0),Z=_
1===x.aR.DESKTOP_4X1||_===x.aR.MOBILE_4X3_SLIDESHOW,ae=J&&Z&&E?(0,B.mq)(J,Q)[E.toLowerCase()]:void 0;ae&&(W=`${ae.width}/${ae.height}`),z?[j]=(()=>{const e=(0,i.useDispatch)(),{windowId:n}=(0,u.useRequestData)(),[a,s]=(0,t.useState)({promos:[],isLoading:!0});return(0,t.useEffect)(()=>{(async()=>{const t=await window.DDC.WidgetData["ws-specials"][n].preloadedPromos,{promos:i,personalized:a,accountInfo:o,designs:l}=t;s({promos:i,isLoading:!1}),e(R(a||!1)),e(A(!0)),e(L(o)),e(M(l))})()},[]),[a]})():[q]=F(C);const{promos:se,isLoading:oe}=z?j:q;let le;const re=(!m.isBrowser||oe||!se)&&_!==x.aR.DESKTOP_4X3&&_!==x.aR.MOBILE_4X3_COUPON&&_!==x.aR.DESKTOP_9X16&&_!==x.aR.MOBILE_9X16;(0,t.useEffect)(()=>{(0,g.He)("ws-specials-starting");const e=globalThis.performance.getEntriesByType("navigation")[0];(0,g.He)("ws-specials-request-start",e.requestStart),(0,g.He)("ws-specials-ttfb",e.responseStart)},[]),(0,t.useEffect)(()=>{window?.DDC?.pubsub?.subscribe("ws-inv-data/facets",()=>{if([x.aR.DESKTOP_10X1].includes(_)){const e=(e=>{const t=["year","make","model","trim"];let n={};return e.forEach(e=>{t.includes(e.id)&&(n={...n,[`${e.id}`]:e.values.map(e=>e.value)})}),n})(window.DDC.InvData.getAppliedFilters());b(e)}})},[]);const ce=(0,t.useMemo)(()=>{let e=Array.isArray(se)?se.map(ie):se;if(se&&se.length){e=se.filter(e=>!e.incentiveId||e?.incentiveData),e=e.map(ie);const t=1===e.length?e[0]:void 0;if(d(t),t&&"object"==typeof t&&Object.keys(t).length>0){const e=(0,H.lp)(t,"incentive"===t.type?t:void 0,_,T,S);y(e)}}return e},[se]);switch((0,t.useEffect)(()=>{if(oe)return()=>{};const t=e.current.parentElement;let n,i;if("function"==typeof ResizeObserver?(n=new ResizeObserver(e=>{o(e[0].contentRect.width)}),n.observe(t)):o(t.getBoundingClientRect().width),a["enabled-skeleton-ws-specials"]&&"function"==typeof MutationObserver){const e={attributes:!1,childList:!0,subtree:!0};i=new MutationObserver((e,t)=>{for(const t of e)if(t.removedNodes.length>0)for(let e=0;e<t.removedNodes.length;e++){const n=t.removedNodes[e];if(n&&"id"in n&&"top-skeleton-wrapper"===n.id){r(!0);break}}}),i.observe(t,e)}return()=>{n&&n.unobserve(t),i&&"function"==typeof i.unobserve&&i.unobserve(t)}},[e,oe]),_){case"Mobile4x3_slideshow":le=`aspect-ratio-mobile-4x3 coupon-listing slideshow ${!c&&"coupon-carousel"}`;break;case"Mobile4x3_coupon":le=`aspect-ratio-mobile-4x3 coupon-listing ${"true"===N&&"coupon-carousel"}`;break;case"Desktop4x1":default:le="aspect-ratio-desktop-4x1 overflow-hidden";break;case"Desktop9x16":le="aspect-ratio-desktop-9x16 overflow-hidden "+("true"===N&&ce.length>2?"coupon-carousel mb-8":"coupon-listing");break;case"Desktop4x3":le="aspect-ratio-desktop-4x3 coupon-listing "+("true"===N&&ce.length>2?"coupon-carousel mb-8":"");break;case"Mobile9x16":le="aspect-ratio-mobile-9x16 overflow-hidden "+("true"===N?"coupon-carousel":"coupon-listing");break;case"Desktop10x1":le="aspect-ratio-desktop-10x1 "+(!c||f?"mb-8":"")}const de=[le,oe||se&&0!==se.length?"":"d-none","position-relative"].filter(Boolean),pe=["w-100","bg-transparent"],me={isMobile:I,width:s,isCoupon:$};return n().createElement(h.G.Provider,{value:C},n().createElement("div",{ref:e,className:(0,p.H)(de),"data-testid":"ws-specials-widget-container"},a["enabled-skeleton-ws-specials"]?n().createElement("div",{className:(0,p.H)(pe),id:`ws-specials-inner-${v}`,style:l?{}:{aspectRatio:K&&W}},(()=>{if(re&&K)return n().createElement(ee,{isServer:!0,ratio:W,aspectRatio:_,enableCarousel:N,displayLimit:O,windowId:v,account:G,showSlideshowIndicatorDots:P});if(ce?.length){const{customAssets:e={},imageUrl:t="",type:i,title:a}=ce.length&&ce[0],o=_===x.aR.DESKTOP_4X3||_===x.aR.MOBILE_4X3_COUPON||_===x.aR.DESKTOP_9X16||_===x.aR.MOBILE_9X16,l=ne(e[_]||e[`${_}_video`]),r=ne(t),c=/\.(mp4|webm|ogg|ogv|mov)(\?.*)?$/i.test(l.split("|")[0].trim()),d=K&&!o?n().createElement(ee,{title:a,type:i,ratio:W,filteredPromosLength:ce.length,windowId:v,aspectRatio:_,enableCarousel:N,displayLimit:O,customAssets:X(l,s).src||(c?x.Q7:l),imageUrl:X(r,s).src||r,account:G,showSlideshowIndicatorDots:P}):null;return n().createElement(D,te({key:`template-wrapper-${_}-${ce?.length||0}`,promos:ce},me,{filterParams:w,csrPlaceholder:d}))}return null})()):n().createElement("div",{className:(0,p.H)(pe)},ce&&ce.length?n().createElement(D,te({promos:ce,filterParams:w},me)):null)))},se=(e,t,n)=>{const i=["ddc-content",t];return e&&i.push(e),n&&i.push("collapse-container"),i},oe=(e,t,n)=>{const i=[],{widgetHeading:a,headingIconClasses:s,headingIconSize:o,headingIconStyle:l}=e;return a&&t&&(i.push("ddc-icon"),n||i.push(`ddc-icon-${l}`),o&&i.push(`ddc-icon-size-${o}`),s&&i.push(s)),i}
1,le=(e,t,n)=>{const i=[],{headingSize:a,headingStyles:s,headingClasses:o}=e;return i.push("widget-heading"),"MOBILE"===t&&i.push("ddc-heading"),o&&i.push(o),a&&i.push(a),s&&i.push(`ddc-heading-${s}`),n&&i.push("collapse-heading"),i},re=({outputWrapperDiv:e,store:t,widgetId:a,widgetName:s})=>{const o=t.getState(),l=o.prefs||{},c=l.widgetHeading&&"true"===l.toggleCollapse||!1,p=!!l.headingIconStyle||c;const m=n().createElement(i.Provider,{store:t},n().createElement(r,{HeadingTag:l.headingTag,headingText:l.widgetHeading,widgetId:a,toggleCollapse:c,showIcon:p,headingClasses:le(l,o.requestData.deviceType,c),iconClasses:oe(l,p,c)}),n().createElement(d,{id:a,toggleCollapse:c},n().createElement(ae,null)));if(e){if(!s)throw new Error("widgetName is required if outputWrapperDiv is true.");return n().createElement("div",{id:`${a}-app-root`,className:se(l.widgetClasses,s,c).join(" "),"data-widget-name":s,"data-widget-id":a},m)}return m},ce=RTK;const de=[],pe={requestData:function(e={},t=null){return!t.error&&t.payload&&"WS_SCRIPTS_SET_REQUEST_DATA"===t.type?t.payload:e},prefs:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_SET_PREFS"!==t.type?e:t.payload},labels:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_ADD_LABELS"!==t.type?e:{...e,...t.payload}},sitemap:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_ADD_SITEMAP"!==t.type?e:{...e,...t.payload}},flags:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_SET_FEATURE_FLAGS"!==t.type?e:t.payload}};function me(e){const[t,n]=(()=>{let e={},t={};const n=[];try{e=o(790).A,n.push("../reducers")}catch(e){}try{t=Object(function(){var e=new Error("Cannot find module '../features'");throw e.code="MODULE_NOT_FOUND",e}()),n.push("../features")}catch(e){}return[{...e,...t},n]})();return(0,ce.configureStore)({reducer:{...t,...pe},middleware:e=>e().concat(de),preloadedState:e})}const ue={};(()=>{const t=(n="ws-specials",window.DDC&&window.DDC.WS&&window.DDC.WS.state&&window.DDC.WS.state[n]?window.DDC.WS.state[n]:{});var n;Object.keys(t).forEach(n=>{const i=me(((e,t)=>{let n=e[t];return"string"==typeof n&&(n=JSON.parse(n)),n})(t,n));ue[n]=i,(0,e.hydrate)(React.createElement(re,{outputWrapperDiv:!1,store:i,widgetId:n}),document.getElementById(`${n}-app-root`)),delete t[n]})})()})()})();
2//# sourceMappingURL=bundle.974a1681ecc1ee55d46e0b1891531d26.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.