1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[42375,97636],{42375:function(e,t,a){a.r(t),a.d(t,{default:function(){return n}});const r=window.tcom_v2.analytics;window.tcom_v2.util.getCookieByName;var i={fireLoadedTag:function(){r.fire("aa-pageload",{content_section:"hybrid warranty details overlay"})},fireCtaClickTag:function(e){r.fire("aa-link",{...r.getLinkProps(event.target,{link_text:e,link_trigger:"aa-link",link_type_title:"Full Specs",list_item_index:1,link_button_action:"full specs download hybrid warranty link"}),content_section:"hybrid warranty overlay"})}};class n{constructor(e){this.config={element:document.createElement("div"),...e},this.initialize()}initialize(){let e=this.getModalData(this.config.force.data.appName,this.config.force.data.modalType);this.config.element.classList.add("hybrid-warranty-modal-wrapper"),this.config.element.innerHTML=this.formatMarkup(e),this.config.modal.setContent(this.config.element,!1),this.config.modal.setTitle(e.ModalTitle),this.config.modal.setLoading(!1),i.fireLoadedTag(),document.querySelector(".theme-hybrid-warranty").parentElement.focus(),this.updateModalHeight(),window.addEventListener("resize",e=>{this.updateModalHeight()});let t=this.config.element.querySelector(".download-link");t&&t.addEventListener("click",this.onDownloadClick)}updateModalHeight(){"phone"!=tcom_v2.util.getCurrentQuery()&&document.documentElement.clientHeight>=600?(document.querySelector(".theme-hybrid-warranty .modal-wrapper").style.height=`${document.querySelector(".theme-hybrid-warranty .modal-body-wrapper").offsetHeight}px`,document.querySelector(".theme-hybrid-warranty .modal-body-wrapper").style.height="auto"):(document.querySelector(".theme-hybrid-warranty .modal-wrapper").style.height="auto",document.querySelector(".theme-hybrid-warranty .modal-body-wrapper").style.height="100%")}getModalData(e,t){let a={ModalID:"prius-warranty",ModalTitle:"Warranty Details",HeadLine:"Extended Hybrid Battery Warranty",BodyContent:"We are proud to announce a significant enhancement to our Hybrid Battery Warranty. Starting with 2020 model year, every Toyota hybrid battery warranty is being increased from 8 years or 100,000 miles, to 10 years or 150,000 miles. This enhancement serves as an indication of our confidence in the quality, dependability, and reliability of our products.",Disclaimer:"Refer to applicable Warranty and maintenance Guide for full details. Eligible for hybrid plug-in and fuel-cell vehicles",cta:[]};if("alt-fuel"==e){let e=t||"generic-warranty";return window.warrantyData&&JSON.parse(window.warrantyData)[e]}return window.warrantyData&&JSON.parse(window.warrantyData)||a}formatMarkup(e){return`\n <div class="hybrid-warranty-wrapper">\n <h2 class="subtitle">\n ${e.HeadLine}\n </h2>\n <div class="description">\n ${e.BodyContent}\n </div>\n <div class="disclaimer">${e.Disclaimer}</div>\n <div class="cta-wrapper">${this.createCtas(e.cta)}</div>\n </div>\n `}close=()=>{this.config.modal.destroy()};createCtas(e){if(!e)return"";let t="";return e.forEach(e=>{t+=`<a href="${e.href}" class="download-link">${e.title}</a>`}),t}onDownloadClick=e=>{let t=e.currentTarget.textContent;i.fireCtaClickTag(t)}}}}]); 2//# sourceMappingURL=42375.84c054ab83aefbeaff8e.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.