PageSourceSearch

https://www.toyota.com/etc.clientlibs/tcom/clientlibs/clientlib-ma…ev2.min.dea4c39ceeb6dd527d1b8bdde91e341e.js

js toyota.com collected 2026-09-24 07:49:30 UTC 24,764 bytes, 2 lines download raw bytes

1!function(){var e,t,i={42817:function(e,t){"use strict";window.TCOM_COMPONENT_LIST_CACHE||(window.TCOM_COMPONENT_LIST_CACHE=[]),window.TCOM_MUTATION_LIST_CACHE||(window.TCOM_MUTATION_LIST_CACHE=[]),window.TCOM_MUTATION_TOINIT||(window.TCOM_MUTATION_TOINIT=[]),window.TCOM_ENTRYPOINT_MUTATION_OBSERVER||(window.TCOM_ENTRYPOINT_MUTATION_OBSERVER=null),window.TCOM_ENTRYPOINT_MUTATION_OBSERVER_PROCESS||(window.TCOM_ENTRYPOINT_MUTATION_OBSERVER_PROCESS=null),window.TCOM_BIND_TIMEOUT||(window.TCOM_BIND_TO=null);function i(e,t){[...document.querySelectorAll(t)].forEach(i=>{const{autobind:s,bound:o}=i.dataset||{};if("false"!==s&&"true"!==o&&!i.closest('[data-prevent_entrypoint_init="true"]'))try{const s=function(e){const t=e.dataset;return Object.keys(t).filter(function(e){return e.split("cfg").length>1}).reduce(function(e,i){try{return e[i.split("cfg")[1].replace(/^([A-Z])/g,(e,t)=>t.toLowerCase())]=t[i],e}catch(e){return null}},{})}(i);new e({el:i,...s}),i.setAttribute("data-bound","true"),console.log("EntryPoint.initComponents: component bound",e.name||"",t)}catch(i){console.error("EntryPoint.initComponents: error binding component",e.name||"",t,i)}})}function s(){window.TCOM_BIND_TIMEOUT=!1,window.TCOM_COMPONENT_LIST_CACHE.forEach(({constructor:e,selector:t})=>{window.TCOM_MUTATION_TOINIT.indexOf(t)>-1&&i(e,t)}),window.TCOM_MUTATION_TOINIT.length=0}function o(e){window.TCOM_MUTATION_TOINIT.push(e),window.TCOM_BIND_TIMEOUT&&clearTimeout(window.TCOM_BIND_TIMEOUT),window.TCOM_BIND_TIMEOUT=setTimeout(s,340)}function n(){for(const e of window.TCOM_MUTATION_LIST_CACHE)if(e?.addedNodes?.length)for(const t of e.addedNodes)if(window.TCOM_COMPONENT_LIST_CACHE?.length)for(const i of window.TCOM_COMPONENT_LIST_CACHE){const{selector:s}=i;if(window.TCOM_MUTATION_TOINIT.indexOf(s)>-1)continue;const n="function"==typeof t.querySelectorAll?t.querySelectorAll(s):null,a="function"==typeof t.matches&&t.matches(s);(n?.length||e.target.matches(s)||a)&&o(s)}window.TCOM_MUTATION_LIST_CACHE.length=0}function a(){window.TCOM_ENTRYPOINT_MUTATION_OBSERVER||(window.TCOM_ENTRYPOINT_MUTATION_OBSERVER=new MutationObserver(e=>{e?.length&&(window.TCOM_MUTATION_LIST_CACHE=[...window.window.TCOM_MUTATION_LIST_CACHE,...e],window.TCOM_ENTRYPOINT_MUTATION_OBSERVER_PROCESS&&window.cancelAnimationFrame(window.TCOM_ENTRYPOINT_MUTATION_OBSERVER_PROCESS),window.TCOM_ENTRYPOINT_MUTATION_OBSERVER_PROCESS=window.requestAnimationFrame(n))}),window.TCOM_ENTRYPOINT_MUTATION_OBSERVER.observe(document.documentElement,{subtree:!0,childList:!0}))}t.A=function(e,t){if(!e||!t)return;!function(e,t){window.TCOM_COMPONENT_LIST_CACHE.some(e=>e.selector===t)||window.TCOM_COMPONENT_LIST_CACHE.push({constructor:e,selector:t})}(e,t),i(e,t),document.querySelector(".xf-modal .modal-content")&&i(e,`.xf-modal ${t}`),document.addEventListener("DOMContentLoaded",a)}},45314:function(e,t,i){var s={"./offer-apr.js":[95255,[95255]],"./offer-cash.js":[74023,[74023]],"./offer-lease.js":[19892,[19892]]};function o(e){try{if(!i.o(s,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}catch(e){return Promise.reject(e)}var t=s[e],o=t[0];return i.e(t[1][0]).then(function(){return i(o)})}o.keys=function(){return Object.keys(s)},o.id=45314,e.exports=o},48957:function(e){"use strict";e.exports=JSON.parse('{"en":{"cashBack":"Cash Back","getYour":"GET YOUR","for":"FOR","withThe":"WITH THE","get":"GET","perMonth":"per month","monthsStr":"months","dueAtSiging":"due at signing","explore":"Explore","viewOffer":"View Offer","viewLeaseOffer":"View Lease Offer","viewAllOffers":"VIEW ALL OFFERS","viewDeal":"VIEW DEAL","seeDeals":"SEE DEALS","viewMoreDeals":"VIEW MORE DEALS","viewOffers":"View More Offers","Months":"mos","forStr":"for","mo":"/mo","APR":"APR"},"es":{"cashBack":"Reembolso","getYour":"OBTÉN TU","for":"POR","withThe":"CON EL","get":"RECIBE","perMonth":"al mes","monthsStr":"meses","Months":"meses","dueAtSiging":"al firmar","explore":"Explora","viewAllOffers":"VER PROMOCIONES","viewOffer":"Ver Promoción","viewLeaseOffer":"Ver oferta de arrend
1amiento","viewDeal":"VER OFERTA","seeDeals":"VER OFERTAS","viewMoreDeals":"MÁS OFERTAS","viewOffers":"Ver Promociones","forStr":"por","mo":"/mes","APR":"APR"}}')}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return i[e](n,n.exports,o),n.exports}o.m=i,o.d=function(e,t){for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce(function(t,i){return o.f[i](e,t),t},[]))},o.u=function(e){return"clientlib-site/resources/js/"+(63594===e?"youtube-modal/js/youtube-modal":e)+"."+{19892:"fad90e1377fadde2553a",38114:"54b8df928952d2499de7",63594:"eeabde6cfcb4c17b75a8",74023:"454eb5bd743163ae8404",95255:"4e673d64710dd55103f8"}[e]+".js"},o.miniCssF=function(e){return"clientlib-site/resources/css/youtube-modal/js/youtube-modal.4411bdb968f2347d302e.css"},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="aem-maven-archetype:",o.l=function(i,s,n,a){if(e[i])e[i].push(s);else{var r,l;if(void 0!==n)for(var c=document.getElementsByTagName("script"),f=0;f<c.length;f++){var d=c[f];if(d.getAttribute("src")==i||d.getAttribute("data-webpack")==t+n){r=d;break}}r||(l=!0,(r=document.createElement("script")).charset="utf-8",o.nc&&r.setAttribute("nonce",o.nc),r.setAttribute("data-webpack",t+n),r.src=i),e[i]=[s];var u=function(t,s){r.onerror=r.onload=null,clearTimeout(h);var o=e[i];if(delete e[i],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach(function(e){return e(s)}),t)return t(s)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),l&&document.head.appendChild(r)}},o.dn=function(e){var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},o.p="/etc.clientlibs/tcom/clientlibs/",function(){if("undefined"!=typeof document){var e=function(e){return new Promise(function(t,i){var s=o.miniCssF(e),n=o.p+s;if(function(e,t){for(var i=document.getElementsByTagName("link"),s=0;s<i.length;s++){var o=(a=i[s]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var n=document.getElementsByTagName("style");for(s=0;s<n.length;s++){var a;if((o=(a=n[s]).getAttribute("data-href"))===e||o===t)return a}}(s,n))return t();!function(e,t,i,s,n){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",o.nc&&(a.nonce=o.nc),a.onerror=a.onload=function(i){if(a.onerror=a.onload=null,"load"===i.type)s();else{var o=i&&i.type,r=i&&i.target&&i.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+r+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=o,l.request=r,a.parentNode&&a.parentNode.removeChild(a),n(l)}},a.href=t,i?i.parentNode.insertBefore(a,i.nextSibling):document.head.appendChild(a)}(e,n,null,t,i)})},t={74380:0};o.f.miniCss=function(i,s){t[i]?s.push(t[i]):0!==t[i]&&{63594:1}[i]&&s.push(t[i]=e(i).then(function(){t[i]=0},function(e){throw delete t[i],e}))}}}(),function(){var e={74380:0};o.f.j=function(t,i){var s=o.o(e,t)?e[t]:void 0;if(0!==s)if(s)i.push(s[2]);else{var n=new Promise(function(i,o){s=e[t]=[i,o]});i.push(s[2]=n);var a=new Error;o.l(o.p+o.u(t),function(i){if(o.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var n=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+r+")",a.name="ChunkLoadError",a.type=n,a.request=r,a.event=i,s[1](a)}},"chunk-"+t,t)}};var t=function(t,i){var s,n,a=i[0],r=i[1],l=i[2],c=0;if(a.some(function(t){return 0!==e[t]})){for(s in r)o.o(r,s)&&(o.m[s]=r[s]);if(l)l(o)}for(t&&t(i);c<a.length;c++)n=a[c],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0},i=self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))}(),function(){"use strict";var e=o(42817);var t=o(48957);class i{constructor(e){this.config={offer:{},salesEvent:{},slide:{type:void 0,deleted:!1,index:void 0,node:void 0},slideSuppressions:[],zipRegion:void 0,zipTda:void 0,...e},this.config.carousel=document.querySelector(".marquee-wrapper .carousel-container"),this.config.slideWrapperEl=this.config.el.querySelector(".marquee-slide-wrapper"),this.config.slide.video=this.config.el.querySelector(".video-player"),this.config.ctaWrapperEl=this.config.el.querySelector(".cta-wrapper"),this.config.slide.index=this.config.slideWrapperEl.dataset.aaIndex,this.config.theme=this.config.slideWrapperEl.dataset.theme,this.config.showOffer=this.config.slideWrapperEl.dataset.showOffer,this.openCutline=null,this.lang=document.querySelectorAll("html")[0].getAttribute("lang"),this.handleBeforeSlide=this.handleBeforeSlide.bind(this),this.initialize(),null!=tcom_v2.util.getCookieByName("zipcode")&&this.setSlideOffer(tcom_v2.util.getCookieByName("zipcode")),this.slideSuppresion(),this.deeplinkSlide(),this.buttonEvenListener(),(async()=>{const e=await window.tcom_v2.getPubsub();e.subscribe("tcom.geolocation.zipcode.change",(e,t)=>{this.setSlideOffer(t.zipcode)}
1),e.subscribe("tcom.geolocation.tda.set",(e,t)=>{this.slideSuppresion(),this.setSlideOffer(tcom_v2.util.getCookieByName("zipcode"))}),e.subscribe("youtube.modal.close",()=>{this.dispatchPlayPause("playCarousel")})})()}initialize(){this.config.offerEl=this.config.el.querySelector(".offer-container"),this.config.offerElWrapper=this.config.el.querySelector(".offer-wrapper");this.config.carousel?.querySelectorAll(".cmp-carousel__item");let e=this.config.slideWrapperEl.classList;for(let t=0;t<e.length;t++){const i=e[t];/suppress-.*/.test(i)&&this.config.slideSuppressions.push(i.replace(/suppress-/g,""))}if(this.config.slide.video&&this.toggleAutoPlay(),this.config.offerElWrapper.dataset.series&&this.config.offerElWrapper.dataset.series.length>0){let e=this.config.offerElWrapper.dataset.series.split("/");this.config.offer.seriesYear=e[e.length-1],this.config.offer.series=e[e.length-2]}this.config.salesEvent.enabled=this.config.slideWrapperEl.dataset.offerSeEnabled,this.config.salesEvent.dates={start:this.config.slideWrapperEl.dataset.offerSeStartDate,end:this.config.slideWrapperEl.dataset.offerSeEndDate},this.config.salesEvent.images={large:this.config.slideWrapperEl.dataset.offerSeLargeImage,small:this.config.slideWrapperEl.dataset.offerSeSmallImage},this.config.salesEvent.labels={moreThanFifteenDays:this.config.slideWrapperEl.dataset.offerSeMoreThanFifteenDaysLabel,lessThanFifteenDays:this.config.slideWrapperEl.dataset.offerSeFewerThanFifteenDaysLabel,secondToLastDay:this.config.slideWrapperEl.dataset.offerSeSecondToLastDayLabel,lastDay:this.config.slideWrapperEl.dataset.offerSeLastDayLabel};let t=(new Date).toLocaleDateString("en-US"),i=new Date(this.config.salesEvent.dates.start).toLocaleDateString("en-US"),s=new Date(this.config.salesEvent.dates.end).toLocaleDateString("en-US"),o=Math.floor((Date.parse(t)-Date.parse(i))/864e5),n=this.config.slideWrapperEl.querySelector(".slide-info");switch(this.config.salesEvent.daysRemaining=Math.floor((Date.parse(s)-Date.parse(t))/864e5),!0){case this.config.salesEvent.daysRemaining<15&&this.config.salesEvent.daysRemaining>1:this.config.salesEvent.labels.calculated=this.config.salesEvent.labels.lessThanFifteenDays.replace(/\{([^)]+)\}/gi,this.config.salesEvent.daysRemaining+1);break;case 1==this.config.salesEvent.daysRemaining:this.config.salesEvent.labels.calculated=this.config.salesEvent.labels.secondToLastDay;break;case 0==this.config.salesEvent.daysRemaining:this.config.salesEvent.labels.calculated=this.config.salesEvent.labels.lastDay;break;default:this.config.salesEvent.labels.calculated=this.config.salesEvent.labels.moreThanFifteenDays}if(-1!=Math.sign(o)&&-1!=Math.sign(this.config.salesEvent.daysRemaining)||(this.config.salesEvent.enabled=!1),"true"==this.config.salesEvent.enabled){if(n.querySelector(".title")?.classList.add("hide"),n.querySelector(".sales-event-logo").classList.remove("hide"),n.querySelector(".copy").innerHTML=this.config.salesEvent.labels.calculated,"phone"==this.getCurrentQuery()&&n.classList.contains("below-jelly")){const e=this.config.slideWrapperEl.querySelector(".slide-info .copy"),t=window.getComputedStyle(e,null);let i=e.clientWidth;i-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),i>325&&n.classList.add("long-copy")}}else if("phone"==this.getCurrentQuery()&&n.classList.contains("below-jelly")){this.config.slideWrapperEl.querySelector(".slide-info .copy").innerHTML||n.classList.add("no-copy")}window.addEventListener("marquee.before.slide",this.handleBeforeSlide),window.addEventListener("marquee.play",e=>{e.stopImmediatePropagation(),this.dispatchPlayPause("playCarousel")}),window.addEventListener("marquee.pause",e=>{e.stopImmediatePropagation(),this.handleAfterSlide()}),window.addEventListener("modalClosed",e=>{e.stopImmediatePropagation();const t=this.lang,i=window.location.pathname.split("/"),s="es"===t?`espanol/${i[2]}`:i[1],o="es"===t?3:2;i.filter(e=>""!==e).length>o&&history.replaceState(null,null,`/${s}/`)}),[...document.querySelectorAll(".marquee-slide-v2 video")].forEach((e,t)=>{e.autoplay=!0})}handleBeforeSlide(){this.toggleAutoPlay()}handleAfterSlide(){this.config.carousel.querySelector(".cmp-carousel__item.active .video-control").classList.contains("button-play")&&setTimeout(()=>{this.dispatchPlayPause("pauseCarousel")},10)}async setSlideOffer(e){const i=new URLSearchParams(window.location.search);let s="",n=["lease","cash","apr"],a=this.config.slideWrapperEl.querySelector(".slide-info");for(const[e,t]of i)s="forceoffertype"==e.toLowerCase()?t.toLowerCase():null;if("none"!=s&&"novehicle"!=this.config.offer.series){if(s&&(n="generic"===s?["cash"]:["lease","cash","apr"].sort((e,t)=>
1e==s?-1:t==s?1:0)),this.config.offer.series&&this.config.offer.seriesYear&&"true"===this.config.showOffer){if(this.config.offer.data=await o.g.tcom_v2.callService("getRawOffers",e,this.config.offer.series,this.config.offer.seriesYear),this.config.offer.data.offerBundle&&this.config.offer.data.offerBundle.offers){let i;s&&"generic"!=s&&(i=this.config.offer.data.offerBundle.offers.find((e,t)=>e.offerType.toLowerCase()==s));let r=i||this.config.offer.data.offerBundle.offers.find((e,t)=>-1!=n.indexOf(e.offerType.toLowerCase()));if(r){a.classList.contains("no-offer")&&this.config.slideWrapperEl.classList.contains("no-offer")&&(a.classList.remove("no-offer"),this.config.slideWrapperEl.classList.remove("no-offer"));const i=await o(45314)(`./offer-${r.offerType.toLowerCase()}.js`);let s=i.default(this.config.offer,r).markup;this.config.offerEl.querySelector(".content-wrapper").innerHTML=s;let l=i.default(this.config.offer,r).analyticsData;this.config.slideWrapperEl.setAttribute("data-aa-context-data",JSON.stringify(l));for(const e in l)l.hasOwnProperty(e)&&this.config.slideWrapperEl.setAttribute(`data-aa-${e}`,l[e]);const c=this.lang,f=t[c];let d=document.createElement("a"),u=this.config.slideWrapperEl.dataset.offersLinkText,h=this.config.ctaWrapperEl,p=h.children&&h.children,g=p[0],m=`${"es"==c?"/espanol/":"/"}local-specials/${this.config.offer.series?`series/${this.config.offer.series}/`:"/"}${this.config.offer.seriesYear?`year/${this.config.offer.seriesYear}/`:"/"}${r.offerId?`incentiveid/${r.offerId}/`:"/"}${e?`?zipcode=${e}`:""}`,y=f.viewLeaseOffer.length>22?"longer-char":"";d.classList.add("view-offer","button","secondary",r.offerType.toLowerCase()),""!==y&&d.classList.add(y),"dark"===this.config.theme&&d.classList.add("dark"),d.setAttribute("href",m),d.setAttribute("data-offer-series-code",r.seriesList.series.id),d.setAttribute("data-offer-series-year",r.seriesList.series.year),d.setAttribute("tabindex",1==this.config.slide.index?"0":-1),d.setAttribute("data-aa-action","km-hero-hp-click"),d.setAttribute("data-link-metrics","km-hero-hp-click"),d.innerHTML=`<span class="link-text" aria-hidden="true">${"lease"==r.offerType.toLowerCase()?f.viewLeaseOffer:u||f.viewOffers}\n                                                    <svg class="arrow default" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.06825 0.905047C5.67772 0.514523 5.04456 0.514522 4.65403 0.905047C4.26351 1.29557 4.26351 1.92874 4.65404 2.31926L8.18912 5.85434L4.65321 9.39025C4.26269 9.78077 4.26269 10.4139 4.65321 10.8045C5.04373 11.195 5.6769 11.195 6.06742 10.8045L10.2849 6.58702C10.2937 6.57884 10.3023 6.57046 10.3109 6.5619C10.7014 6.17138 10.7014 5.53821 10.3109 5.14769L6.06825 0.905047Z" fill="currentColor"></path></svg>\n                                                </span>`,p&&0==p.length?h.appendChild(d):p&&p.length>=1&&!n.some(e=>g.classList.contains(e))&&!d.isEqualNode(g)?h.insertBefore(d,g):p&&p.length>0&&n.some(e=>g.classList.contains(e))&&!d.isEqualNode(g)&&h.replaceChild(d,g);let w=new CustomEvent("updateCarouselAnalytics",{});window.dispatchEvent(w)}else{let e=this.config.ctaWrapperEl.querySelector(".view-offer");e?(e.remove(),this.config.offerEl.querySelector(".content-wrapper").innerHTML=""):(this.config.slideWrapperEl.classList.add("no-offer"),a.classList.add("no-offer")),this.resetOfferAnalytics()}}}else this.resetOfferAnalytics();this.removeClassByPrefix(a,"ctas-"),a.classList.add(`ctas-${this.config.ctaWrapperEl.children.length}`)}else this.resetOfferAnalytics()}removeClassByPrefix(e,t){var i=new RegExp("\\b"+t+"[^ ]*[ ]?\\b","g");return e.className=e.className.replace(i,""),e}resetOfferAnalytics(){let e={offer_title:this.config.offerElWrapper.dataset.offerTitle||void 0,offer_description:this.config.offerElWrapper.dataset.offerDescription||void 0,offer_series_code:this.config.offer.series,offer_series_year:this.config.offer.seriesYear,offer_type:void 0,offer_term:void 0,offer_rate:void 0,offer_id:void 0,series_code:this.config.offer.series,series_year:this.config.offer.seriesYear,offer_amount:void 0,offer_monthlyPayment:void 0,offer_amountDue:void 0};this.config.slideWrapperEl.setAttribute("data-aa-context-data",JSON.stringify(e));for(const t in e)e.hasOwnProperty(t)&&this.config.slideWrapperEl.setAttribute(`data-aa-${t}`,e[t])}deeplinkSlide(){if(-1===window.location.pathname.indexOf("marquee/slide"))return;const e=window._dL.page.initial_content_section.split("/"),t=Number(e[2])-1;let i=this.config.carousel.querySelectorAll(".js_slide"),s=Array.from(i)[t],o=s&&s.querySelector(".youtube-button");if(!s)return;let n=new CustomEvent("carouselSlideTo",{detail:{index:t}});window.dispatchEvent(n),o&&setTimeout(()=>{o.click()},1e3)}slideSuppresion(){if(!this.config.carousel)return;let e=document.getElementsByTagName("html")[0].classList,t="true"==this.config.carousel.querySelector(".cmp-carousel").dataset.cmpInfinite;
1for(let t=0;t<e.length;t++){const i=e[t];/.*-region/.test(i)&&-1==i.indexOf("non")&&(this.config.zipRegion=i.replace(/-region/g,"")),/.*-tda/.test(i)&&-1==i.indexOf("non")&&(this.config.zipTda=i.replace(/-tda/g,""))}if(-1!=this.config.slideSuppressions.indexOf(this.config.zipRegion)||-1!=this.config.slideSuppressions.indexOf(this.config.zipTda)){if(this.config.slide.deleted)return;let e=this.config.carousel.querySelectorAll(".js_slide"),i=this.config.carousel.querySelectorAll(".pagination .carousel-dots li");this.config.slide.deleted=!0,this.config.slide.index=this.config.slideWrapperEl.dataset.aaIndex,this.config.slide.node=this.config.el.parentNode,this.config.removedDot=i[this.config.slide.index-1],null==this.config.slide.node.dataset.infiniteClone&&i&&i[this.config.slide.index-1].remove(),this.config.el.parentNode.remove(),(this.config.slide.index==e.length-2&&this.config.slide.node.isSameNode(e[0])||1==this.config.slide.index&&this.config.slide.node.isSameNode(e[e.length-1]))&&this.config.el.parentNode.remove();let s=new CustomEvent("resetCarouselContainer",{detail:{infinite:t,carouselEl:this.config.carousel}});window.dispatchEvent(s)}else if(-1==this.config.slideSuppressions.indexOf(this.config.zipRegion)||-1==this.config.slideSuppressions.indexOf(this.config.zipTda)){if(!this.config.slide.deleted)return;let e=this.config.carousel.querySelectorAll(".js_slide"),i=this.config.carousel.querySelector(".js_slides"),s=this.config.carousel.querySelector(".pagination .carousel-dots");if(this.config.slide.deleted=!1,null==this.config.slide.node.dataset.infiniteClone){let o=t?this.config.slide.index:this.config.slide.index-1;i.insertBefore(this.config.slide.node,e[o]),s.insertBefore(this.config.removedDot,s.children[this.config.slide.index-1])}let o=new CustomEvent("resetCarouselContainer",{detail:{infinite:t,carouselEl:this.config.carousel}});window.dispatchEvent(o)}}buttonEvenListener(){let e=this;[].slice.call(this.config.el.querySelectorAll("button")).forEach((t,i)=>{t.addEventListener("click",_.throttle(async t=>{const i=document.querySelector(".paused");if(t.target.classList.contains("info-button")){t.preventDefault();const s=await tcom_v2.getCutline();if(!i&&this.dispatchPlayPause("pauseCarousel"),this.config.carousel.querySelector(".cmp-carousel__item.active .video-control").classList.contains("button-pause")&&this.dispatchPlayPause("pauseCarousel"),e.openCutline=new s({parent:document.body,cutline:t.target.getAttribute("data-cutline"),useDefaultAnalytics:!1,contentSection:"more info overlay",contentSubSection:"",fullscreen:!0,theme:t.target.dataset.cutlineTheme}),window.innerWidth>=1024){let e=document.querySelector(".marquee-wrapper .cmp-carousel__actions");e?.classList?.add("hideArrows")}}if(t.target.classList.contains("youtube-button")){!i&&this.dispatchPlayPause("pauseCarousel");let e=t.target.getAttribute("data-youtube-id");t.target.getAttribute("data-youtube-id")&&t.target.getAttribute("data-youtube-playlist-id")&&(e=null),async function({title:e,ytid:t,useDefaultAnalytics:i,contentSection:s,contentSubSection:n,contextData:a,analyticsParent:r,autoplay:l,isMuted:c,playlistid:f}){Promise.all([o.e(38114),o.e(63594)]).then(o.bind(o,54257)).then(async o=>new(0,o.default)({modal:new(await window.tcom_v2.getModal())({theme:"video",fullscreen:!0,destroyOnHide:!0,title:e,isYtvideoEnabled:!0,analyticsParent:r}).render(),socialApps:["facebook","twitter"],ytid:t,title:e,useDefaultAnalytics:i,contentSection:s,contentSubSection:n,contextData:a,autoplay:l,isMuted:c,playlistid:f,analyticsParent:r}))}({title:t.target.getAttribute("data-youtube-modal-title"),ytid:e,useDefaultAnalytics:!1,contentSection:this.config.el.querySelector(".marquee-slide-wrapper").getAttribute("data-aa-content-section")||"",contentSubSection:this.config.el.querySelector(".marquee-slide-wrapper").getAttribute("data-aa-content-subsection")||"",analyticsParent:this.config.el.querySelector(".marquee-slide-wrapper"),autoplay:t.target.getAttribute("data-youtube-autoplay"),playlistid:t.target.getAttribute("data-youtube-playlist-id")})}t.target.classList.contains("button-pause")?(t.preventDefault(),this.dispatchPlayPause("pauseCarousel")):t.target.classList.contains("button-play")&&(t.preventDefault(),this.dispatchPlayPause("playCarousel"))},50))})}dispatchPlayPause(e){let t=this.config.carousel.querySelector(".cmp-carousel__item.active .video-control"),i=this.config.carousel.querySelector(".cmp-carousel__item.active .video-player"),s=document.querySelector(".navigation-dots.active");"playCarousel"===e?(s.classList.remove("paused"),t.setAttribute("data-aa-link-text","play"),t.classList.remove("button-play"),t.classList.add("button-pause"),i?.play()):(s.classList.add("paused"),t.setAttribute("data-aa-link-text","pause"),t.classList.remove("button-pause"),t.classList.add("button-play"),i?.pause());let o={detail:{remainingDuration:this.getElementPercentage()}},n=new CustomEvent(e,o);window.dispatchEvent(n)}getElementPercentage(){const e=document.querySelector("li.active.paused");if(e){const t=window.getComputedStyle(e,":after"),i=Number(t.width.replace("px",""))/e.offsetWidth*100;return console.log(`navigation is ${i.toFixed(2)}% complete`),i.toFixed(2)}}getCurrentQuery(){let e=window.innerWidth;return e<=767?"phone":e>=768&&e<=1439?"tablet":e>=1440&&e<=1919?"desktop":e>=1920?"desktopLg":void 0}toggleAutoPlay(){if(this.config.slide.video&&"false"===this.config.slide.video.dataset.videoAutoplay){const e=this.config.el.querySelector(".video-control");setTimeout(()=>{this.config.slide.video.pause()},300),e.classList.remove("button-pause"),e.classList.add("button-play")}}}document.body.classList.contains("edit-mode")||new e.A(i,".marquee-slide")}()}();
2//# sourceMappingURL=marqueeslidev2.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.