PageSourceSearch

https://www.toyota.com/etc.clientlibs/tcom/clientlibs/clientlib-ti…set.min.df5e63e0628bdced1ab9788b1f956743.js

js toyota.com collected 2026-09-24 07:49:37 UTC 7,091 bytes, 2 lines download raw bytes

1!function(){"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),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 e(t,e){[...document.querySelectorAll(e)].forEach(n=>{const{autobind:o,bound:i}=n.dataset||{};if("false"!==o&&"true"!==i&&!n.closest('[data-prevent_entrypoint_init="true"]'))try{const o=function(t){const e=t.dataset;return Object.keys(e).filter(function(t){return t.split("cfg").length>1}).reduce(function(t,n){try{return t[n.split("cfg")[1].replace(/^([A-Z])/g,(t,e)=>e.toLowerCase())]=e[n],t}catch(t){return null}},{})}(n);new t({el:n,...o}),n.setAttribute("data-bound","true"),console.log("EntryPoint.initComponents: component bound",t.name||"",e)}catch(n){console.error("EntryPoint.initComponents: error binding component",t.name||"",e,n)}})}function n(){window.TCOM_BIND_TIMEOUT=!1,window.TCOM_COMPONENT_LIST_CACHE.forEach(({constructor:t,selector:n})=>{window.TCOM_MUTATION_TOINIT.indexOf(n)>-1&&e(t,n)}),window.TCOM_MUTATION_TOINIT.length=0}function o(t){window.TCOM_MUTATION_TOINIT.push(t),window.TCOM_BIND_TIMEOUT&&clearTimeout(window.TCOM_BIND_TIMEOUT),window.TCOM_BIND_TIMEOUT=setTimeout(n,340)}function i(){for(const t of window.TCOM_MUTATION_LIST_CACHE)if(t?.addedNodes?.length)for(const e of t.addedNodes)if(window.TCOM_COMPONENT_LIST_CACHE?.length)for(const n of window.TCOM_COMPONENT_LIST_CACHE){const{selector:i}=n;if(window.TCOM_MUTATION_TOINIT.indexOf(i)>-1)continue;const s="function"==typeof e.querySelectorAll?e.querySelectorAll(i):null,r="function"==typeof e.matches&&e.matches(i);(s?.length||t.target.matches(i)||r)&&o(i)}window.TCOM_MUTATION_LIST_CACHE.length=0}function s(){window.TCOM_ENTRYPOINT_MUTATION_OBSERVER||(window.TCOM_ENTRYPOINT_MUTATION_OBSERVER=new MutationObserver(t=>{t?.length&&(window.TCOM_MUTATION_LIST_CACHE=[...window.window.TCOM_MUTATION_LIST_CACHE,...t],window.TCOM_ENTRYPOINT_MUTATION_OBSERVER_PROCESS&&window.cancelAnimationFrame(window.TCOM_ENTRYPOINT_MUTATION_OBSERVER_PROCESS),window.TCOM_ENTRYPOINT_MUTATION_OBSERVER_PROCESS=window.requestAnimationFrame(i))}),window.TCOM_ENTRYPOINT_MUTATION_OBSERVER.observe(document.documentElement,{subtree:!0,childList:!0}))}var r=function(t,n){if(!t||!n)return;!function(t,e){window.TCOM_COMPONENT_LIST_CACHE.some(t=>t.selector===e)||window.TCOM_COMPONENT_LIST_CACHE.push({constructor:t,selector:e})}(t,n),e(t,n),document.querySelector(".xf-modal .modal-content")&&e(t,`.xf-modal ${n}`),document.addEventListener("DOMContentLoaded",s)};new r(class{constructor(t){this.config={...t},this.descriptionEl=this.config.el.querySelector(".ttac-text");let e=this.config.el.querySelector(".entune-connect");e&&this.initEntuneConnect(e),this.descriptionEl&&this.descriptionEl.classList.contains("show-disclaimers")&&this.appendDisclaimersList(),this.enhanceRoadsideAssistance()}async initEntuneConnect(t){let e=await tcom_v2.getEntuneConenctModal();this.entuneModal=new e({basePath:"section/select-model",rootPath:window.location.pathname.slice(1,-1),headunit:!0}),t.addEventListener("click",()=>{this.entuneModal._router("section/select-model")})}async appendDisclaimersList(){let e=await t.g.tcom_v2.disclaimers.getDisclaimerCaptionsHTML(this.descriptionEl,"disclaimer-list",!0);this.descriptionEl.insertAdjacentHTML("beforeend",e)}enhanceRoadsideAssistance(){const t=/(\d{1}-?\d{3}-?\d{3}-?\d{4})/g;this.config.el.querySelectorAll(".roadside-assistance").forEach(e=>{const n=e.textContent.match(t);if(!n)return;const o=n[0],i=o.replace(/\D/g,""),[s,r=""]=e.textContent.split(o),c=document.createElement("a");c.className="roadside-assistance__link",c.href=`tel:+${i}`,c.setAttribute("aria-label",`Call Toyota Roadside Assistance at ${o}`),c.innerHTML=`\n                ${this.escapeHtml(s)}
1\n                <span class="roadside-assistance__phone">${this.escapeHtml(o)}</span>\n                <svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 11 11" fill="none" class="copy-icon" aria-hidden="true">\n                    <path d="M1.45508 0C0.655762 0 0 0.655757 0 1.45508V6.95312C0 7.75245 0.655762 8.4082 1.45508 8.4082H6.95312C7.75244 8.4082 8.4082 7.75245 8.4082 6.95312V1.45508C8.4082 0.655757 7.75244 0 6.95312 0H1.45508ZM1.45508 0.792969H6.95312C7.32643 0.792969 7.61328 1.08177 7.61328 1.45508V6.95312C7.61328 7.32643 7.32643 7.61328 6.95312 7.61328H1.45508C1.08178 7.61328 0.792969 7.32643 0.792969 6.95312V1.45508C0.792969 1.08177 1.08178 0.79297 1.45508 0.792969Z" fill="black"/>\n                    <path d="M8.00977 2.17188C7.90465 2.17198 7.80386 2.21378 7.72953 2.28812C7.65519 2.36245 7.61339 2.46324 7.61328 2.56836C7.61339 2.67348 7.65519 2.77427 7.72953 2.8486C7.80386 2.92294 7.90465 2.96474 8.00977 2.96484H9.12891C9.49892 2.96484 9.78907 3.25694 9.78907 3.62695V9.125C9.78907 9.49501 9.49892 9.78516 9.12891 9.78516H3.63086C3.26085 9.78516 2.96875 9.49501 2.96875 9.125V8.00781C2.96896 7.9556 2.95886 7.90385 2.93903 7.85555C2.9192 7.80724 2.89003 7.76332 2.8532 7.72631C2.81637 7.6893 2.7726 7.65991 2.72439 7.63985C2.67618 7.61978 2.62449 7.60943 2.57227 7.60938C2.52005 7.60943 2.46836 7.61978 2.42015 7.63985C2.37194 7.65991 2.32817 7.6893 2.29134 7.72631C2.2545 7.76332 2.22534 7.80724 2.20551 7.85555C2.18568 7.90385 2.17558 7.9556 2.17578 8.00781V9.125C2.17578 9.92399 2.83187 10.5801 3.63086 10.5801H9.12891C9.9279 10.5801 10.584 9.92399 10.584 9.125V3.62695C10.584 2.82797 9.9279 2.17188 9.12891 2.17188H8.00977Z" fill="black"/>\n                </svg>\n                <span class="tooltip" role="status" aria-live="polite">Copied!</span>\n                ${this.escapeHtml(r)}\n            `.trim(),e.replaceChildren(c),c.addEventListener("click",t=>{const e=window.innerWidth<768;e||(t.preventDefault(),navigator.clipboard?.writeText?navigator.clipboard.writeText(o).then(()=>{this.showTooltip(c,3e3)}).catch(t=>{console.error("Clipboard write failed:",t)}):console.error("Clipboard API unavailable. Ensure page is served over HTTPS.")),window.tcom_v2?.analytics?.fireWithContext?.("aa-link",t.currentTarget,{link_text:"roadside-assistance-phone",link_type:e?"phone":"copy",link_trigger:"click",link_url:t.currentTarget.href})})})}escapeHtml(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}showTooltip(t,e=3e3){const n=t.querySelector(".tooltip");n&&(t.setAttribute("data-tooltip","shown"),setTimeout(()=>{t.setAttribute("data-tooltip","hiding");const e=()=>{t.removeAttribute("data-tooltip"),n.removeEventListener("transitionend",e)};n.addEventListener("transitionend",e,{once:!0})},e))}},".titletextasset")}();
2//# sourceMappingURL=titletextasset.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.