PageSourceSearch

https://www.toyota.com/etc.clientlibs/tcom/clientlibs/clientlib-si…/resources/js/73663.cb3bedd71c3c90b3f975.js

js toyota.com collected 2026-09-24 07:52:07 UTC 3,614 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[73663],{73663:function(e,t,a){var r=a(25330),i=a(21524);const s={avalonhybrid:"avalon",camryhybrid:"camry",highlanderhybrid:"highlander",priusplugin:"prius-plug-in",rav4hybrid:"rav4"};function n(e){switch(e.offerType){case"APR":return{months:e.apr.tiers.tier[0].term[0].duration,rate:e.apr.tiers.tier[0].term[0].rate,extraCashAmount:e.apr.tiers.tier[0].term[0].extraCashAmount,extraCashLabel:e.apr.tiers.tier[0].term[0].extraCashLabel};case"Lease":return{monthlyPayment:Math.floor(e.lease.tiers.tier[0].term[0].monthlyPayment),months:e.lease.tiers.tier[0].term[0].duration,due:Math.floor(e.lease.tiers.tier[0].term[0].dueAtSigningAmount),extraCashAmount:e.lease.tiers.tier[0].term[0].extraCashAmount,extraCashLabel:e.lease.tiers.tier[0].term[0].extraCashLabel,desc:[e.lease,e.dueLabel,e.months,e.monthLabel].join(" ")};case"Cash":return{formattedCash:"$"+(e.cash?e.cash.cashAmount:"0"),extraCashAmount:e.extraCashAmount,extraCashLabel:e.extraCashLabel}}}function l(e,t){return e?e=(e=(e=e.replace(/(\$\d*\/month|\$\d*(,\d*)?|\d.\d%|\d{1,2} (months?|days?)|\d{4}(\.\d)?)/gi,"<strong>$1</strong>")).replace(/\$/g,"<sup>$</sup>")).replace(/(camry|camry hybrid|avalon|avalon hybrid|fj cruiser|land cruiser|4runner|highlander|sienna|highlander hybrid|yaris|prius|prius c|prius v|prius plug-in|tacoma|tundra|corolla|avalon|venza|rav4|rav4 ev)/gi,"<strong>$1</strong>"):t||""}function o(e){var t,a=[],r=["year","month","day"];if(-1===e.indexOf("-"))return new Date(e);t=e.split("-");for(let e=0;e<3;
1e++)a[r[e]]=t[e];return a.month+"/"+a.day+"/"+a.year}function d(e,t){let a="";if(e&&e.disclaimer)for(let t of e.disclaimer)a+=`<p>${t}</p>`;return t&&""!==t&&(a+="<p>"+t+"</p>"),a}function c(e){let t=("object"==typeof e.seriesList[0]?[e.seriesList[0]]:e.seriesList)[0],a=t.included&&t.included.split(/, |,/)||"",r="base";a&&a.length>=1&&(r=a[0].split("-")[1]);const i=s[t.id],n=i||t.id;return t.year+"/"+n+"/"+r+".png"}async function u(e,t){const{offerImage:a,jellyPath:r,isSpecialEdition:i}=e,{cardImage:s,cardImage2:n}=e.offerCard,l="https://www.buyatoyota.com/GS10";let o="/content/dam/toyota/jellies/max/",d=r||"";"card"===t&&i&&s?(o=l,d=s):"cardRotated"===t?i&&n?(o=l,d=n):d=d.replace(/(\d+)(\.png)/,"$1-front$2"):"detail"===t&&i&&a&&(o=l,d=a);let c=d&&`${o}${d}`;const u=c&&await tcom_v2.callService("getDynamicMediaImage",c);return i&&c||u.Scene7AssetURL}t.default=(0,r.default)((e,t,a,r,s)=>{const m={zipCode:e,tdaCode:s,offerId:r,series:t.toString().replace(/-/g,"").replace("chr","c-hr"),year:a,lang:document.documentElement.getAttribute("lang"),brandId:1};return s||delete m.tdaCode,{url:(0,i.Sw)(e),parseParams:{offerId:r},parser:async function(e){return await async function(e,t,a){const r=new Date,i=new Date(r.getFullYear(),r.getMonth(),r.getDate());e.seriesList=Array.isArray(e.seriesList)?e.seriesList:[e.seriesList.series];const s=e.seriesList.filter(e=>e.id===t&&e.year==a)[0];return e.jellyPath=c(e),{...e,title:e.title||"",formattedDescription:l(e.description,e.title),formattedDisclaimers:d(e.disclaimer,e.additionalDisclaimers),isFutureOffer:new Date(o(e.startDate))>i,isExpiredOffer:new Date(o(e.endDate))<i,formattedEndDate:o(e.endDate),formattedStartDate:o(e.startDate),jellyPath:c(e),jellyPathCard:await u(e,"card"),jellyPathCardRotated:await u(e,"cardRotated"),jellyPathDetail:await u(e,"detail"),seriesName:s.name,series:t,year:a,...n(e)}}(e[0].offerBundle.offers.filter(e=>e.offerId===r)[0],t,a)},dataType:"jsonp",urlParameters:m}})}}]);
2//# sourceMappingURL=73663.cb3bedd71c3c90b3f975.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.