PageSourceSearch

https://www.toyota.com/etc.clientlibs/tcom/clientlibs/clientlib-base.min.2793850753c4a6fc3e4a6398ab23a3f8.js

js toyota.com collected 2026-09-24 07:49:45 UTC 7,891 bytes, 4 lines download raw bytes

1!function(){"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 e(e,t){[...document.querySelectorAll(t)].forEach(o=>{const{autobind:n,bound:i}=o.dataset||{};if("false"!==n&&"true"!==i&&!o.closest('[data-prevent_entrypoint_init="true"]'))try{const n=function(e){const t=e.dataset;return Object.keys(t).filter(function(e){return e.split("cfg").length>1}).reduce(function(e,o){try{return e[o.split("cfg")[1].replace(/^([A-Z])/g,(e,t)=>t.toLowerCase())]=t[o],e}catch(e){return null}},{})}(o);new e({el:o,...n}),o.setAttribute("data-bound","true"),console.log("EntryPoint.initComponents: component bound",e.name||"",t)}catch(o){console.error("EntryPoint.initComponents: error binding component",e.name||"",t,o)}})}function t(){window.TCOM_BIND_TIMEOUT=!1,window.TCOM_COMPONENT_LIST_CACHE.forEach(({constructor:t,selector:o})=>{window.TCOM_MUTATION_TOINIT.indexOf(o)>-1&&e(t,o)}),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(t,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 n of window.TCOM_COMPONENT_LIST_CACHE){const{selector:i}=n;if(window.TCOM_MUTATION_TOINIT.indexOf(i)>-1)continue;const s="function"==typeof t.querySelectorAll?t.querySelectorAll(i):null,T="function"==typeof t.matches&&t.matches(i);(s?.length||e.target.matches(i)||T)&&o(i)}window.TCOM_MUTATION_LIST_CACHE.length=0}function i(){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}))}var s=function(t,o){if(!t||!o)return;!function(e,t){window.TCOM_COMPONENT_LIST_CACHE.some(e=>e.selector===t)||window.TCOM_COMPONENT_LIST_CACHE.push({constructor:e,selector:t})}(t,o),e(t,o),document.querySelector(".xf-modal .modal-content")&&e(t,`.xf-modal ${o}`),document.addEventListener("DOMContentLoaded",i)};const T="is-hidden";new s(class{constructor(e){this.config={initialized:!1,components:{},...e},this.config.el=document.querySelectorAll(".header-message-container"),this.config.el&&[...this.config.el].forEach(e=>{let t=e.classList.contains("is-efc");e.content=e.querySelector("div"),t?(this.efcHeaderMessage=e,this.checkEfcCookie()):(this.headerMessage=e,this.initialize())})}initialize(){const e=(new Date).toISOString();this.config.cookie=this.headerMessage.getAttribute("data-cookie")||e,this.config.cookieName=this.headerMessage.getAttribute("data-cookie-name"),this.addEventListeners(),this.initCookie()}addEventListeners(){const e=this.headerMessage.querySelector(".tcom-close-header-message");this.addClickHandler(e,this.closeHeader.bind(this))}addClickHandler(e,t){e.addEventListener("click",o=>{t(o),e.blur()}),e.addEventListener("keydown",e=>{13===e.keyCode&&t(e)})}closeHeader(){return this.updateCookie(),document.body.classList.remove("covid-msg-isVisible"),this.headerMessage.classList.add(T)}async initCookie(){let e=(await tcom_v2.util).getCookieByName(this.config.cookieName);e&&e===this.config.cookie||(document.body.classList.add("covid-msg-isVisible"),this.headerMessage.classList.remove(T))}async checkEfcCookie(){const e=await tcom_v2.util;let t=e.getCookieByName("efcsha"),o=e.getQueryParams();(t||o.sha)&&this.efcHeaderMessage.classList.remove(T)}async updateCookie(){const e=await tcom_v2.util;(new Date).toISOString();let t=parseInt(this.headerMessage.getAttribute("data-days-hidden"))||3;return e.setCookie(this.config.cookieName,this.config.cookie,t)}},".header-message")}();
2//# sourceMappingURL=headermessage.js.map
3!function(){"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);
3function n(n,e){[...document.querySelectorAll(e)].forEach(t=>{const{autobind:T,bound:o}=t.dataset||{};if("false"!==T&&"true"!==o&&!t.closest('[data-prevent_entrypoint_init="true"]'))try{const T=function(n){const e=n.dataset;return Object.keys(e).filter(function(n){return n.split("cfg").length>1}).reduce(function(n,t){try{return n[t.split("cfg")[1].replace(/^([A-Z])/g,(n,e)=>e.toLowerCase())]=e[t],n}catch(n){return null}},{})}(t);new n({el:t,...T}),t.setAttribute("data-bound","true"),console.log("EntryPoint.initComponents: component bound",n.name||"",e)}catch(t){console.error("EntryPoint.initComponents: error binding component",n.name||"",e,t)}})}function e(){window.TCOM_BIND_TIMEOUT=!1,window.TCOM_COMPONENT_LIST_CACHE.forEach(({constructor:e,selector:t})=>{window.TCOM_MUTATION_TOINIT.indexOf(t)>-1&&n(e,t)}),window.TCOM_MUTATION_TOINIT.length=0}function t(n){window.TCOM_MUTATION_TOINIT.push(n),window.TCOM_BIND_TIMEOUT&&clearTimeout(window.TCOM_BIND_TIMEOUT),window.TCOM_BIND_TIMEOUT=setTimeout(e,340)}function T(){for(const n of window.TCOM_MUTATION_LIST_CACHE)if(n?.addedNodes?.length)for(const e of n.addedNodes)if(window.TCOM_COMPONENT_LIST_CACHE?.length)for(const T of window.TCOM_COMPONENT_LIST_CACHE){const{selector:o}=T;if(window.TCOM_MUTATION_TOINIT.indexOf(o)>-1)continue;const i="function"==typeof e.querySelectorAll?e.querySelectorAll(o):null,O="function"==typeof e.matches&&e.matches(o);(i?.length||n.target.matches(o)||O)&&t(o)}window.TCOM_MUTATION_LIST_CACHE.length=0}function o(){window.TCOM_ENTRYPOINT_MUTATION_OBSERVER||(window.TCOM_ENTRYPOINT_MUTATION_OBSERVER=new MutationObserver(n=>{n?.length&&(window.TCOM_MUTATION_LIST_CACHE=[...window.window.TCOM_MUTATION_LIST_CACHE,...n],window.TCOM_ENTRYPOINT_MUTATION_OBSERVER_PROCESS&&window.cancelAnimationFrame(window.TCOM_ENTRYPOINT_MUTATION_OBSERVER_PROCESS),window.TCOM_ENTRYPOINT_MUTATION_OBSERVER_PROCESS=window.requestAnimationFrame(T))}),window.TCOM_ENTRYPOINT_MUTATION_OBSERVER.observe(document.documentElement,{subtree:!0,childList:!0}))}var i=function(e,t){if(!e||!t)return;!function(n,e){window.TCOM_COMPONENT_LIST_CACHE.some(n=>n.selector===e)||window.TCOM_COMPONENT_LIST_CACHE.push({constructor:n,selector:e})}(e,t),n(e,t),document.querySelector(".xf-modal .modal-content")&&n(e,`.xf-modal ${t}`),document.addEventListener("DOMContentLoaded",o)};new i(class{constructor(n){this.config={...n},this.initialize()}initialize(){const n=this.config.el.querySelector('.folding-panel-title [tabindex="0"]'),e=this.config.el.querySelector(".folding-panel-toggle");n&&n.addEventListener("keydown",n=>{13==n.keyCode&&e.click()}),n&&n.dataset.closeText&&e.addEventListener("change",e=>{e.target.checked?(n.innerText=n.dataset.closeText,n.classList.add("is-open"),n.dataset.aaLinkText=n.dataset.closeText):(n.innerText=n.dataset.openText,n.classList.remove("is-open"),n.dataset.aaLinkText=n.dataset.openText)})}},".folding-panel")}();
4//# sourceMappingURL=foldingpanel.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.