PageSourceSearch

https://www.autoscout24.it/assets/as24es/javascripts/lazyLoader-C7kfFdlf.min.js

js autoscout24.it collected 2026-09-24 09:52:08 UTC 3,252 bytes, 1 lines download raw bytes

1import{R as p}from"./internalContextEvent-BDbbW3eX.min.js";import{f as g}from"./Config-wmGNsJa3.min.js";var l=Object.freeze({__proto__:null,AuthDialogCloseEvent:"AUTH_DIALOG_CLOSE_EVENT",AuthDialogFragmentReadyEvent:"AUTH_DIALOG_FRAGMENT_READY_EVENT",AuthDialogTypeChangeEvent:"AUTH_DIALOG_TYPE_CHANGE_EVENT"}),m=function(t,e){return new CustomEvent(t,e)};const E={"fr-BE":"/fr","nl-BE":"/nl"},L=(t,e)=>{const s=e.ssoIdentityApi.standaloneLogin;if(t.useStandaloneAuthPage!==!0||e.features.sharedStandaloneAuthEnabled!==!0||!s)return;const{location:o}=globalThis,r=new URL(s,o.origin),n=E[e.culture];return n&&r.origin===o.origin&&!r.pathname.startsWith(`${n}/`)&&(r.pathname=`${n}${r.pathname}`),r.searchParams.set("callerId",t.clientId),r.searchParams.set("redirectUrl",t.redirectUrl||o.href),t.bundleId&&r.searchParams.set("bundleId",t.bundleId),t.tp&&r.searchParams.set("tp",t.tp),r.href},a={css:()=>document.getElementById("as24-authPopupCss"),js:()=>document.getElementById("as24-authPopupJs"),loadingIndicator:()=>document.getElementById("as24-es-loadingIndicator"),darkBackground:()=>document.getElementById("as24-es-darkBackground")},c=()=>({loadCssByURL:(t,e)=>new Promise((s,o)=>{if(!a.css()){const n=document.createElement("link");n.id=t,n.type="text/css",n.rel="stylesheet",n.href=e,n.addEventListener("load",()=>s(!0)),n.addEventListener("error",i=>o(i)),document.body.appendChild(n)}}),loadScriptByURL:(t,e)=>new Promise((s,o)=>{if(!a.js()){const n=document.createElement("script");n.type="module",n.src=e,n.id=t,n.addEventListener("load",()=>s(!0)),n.addEventListener("error",i=>o(i)),document.body.appendChild(n)}}),loadVersions:async t=>{try{const e=await fetch(`${t}/get-assets-version`,{method:"GET"});return e.ok?await e.json():null}catch{return null}}}),f=async t=>{if(a.css()!==null&&a.js()!==null)return!0;try{const e=await c().loadVersions(t);if(e){const s=e.css?await c().loadCssByURL("as24-authPopupCss",e.css):!0,o=await c().loadScriptByURL("as24-authPopupJs",e.js);return s&&o}else return console.error("cant load assets versions"),!1}catch(e){return console.error(e),Promise.reject(e)}},d=()=>({hideLoadingIndicator:()=>{a.darkBackground().classList.add("hide-div")},showLoadingIndicator:()=>{a.darkBackground().classList.remove("hide-div")}}),u=()=>({hideLoading:()=>{a.darkBackground().addEventListener("click",()=>{d().hideLoadingIndicator()})},runPopup:(t,e)=>{d().showLoadingIndicator();const s=!a.darkBackground().classList.contains("hide-div");f(e).then(o=>{o&&s?(d().hideLoadingIndicator(),document.dispatchEvent(new CustomEvent(p,{detail:{clientId:t.clientId,bundleId:t.bundleId,redirectUrl:t.redirectUrl,tp:t.tp,overrideText:t.overrideText,hideDealerButton:t.hideDealerButton}}))):console.error("Cant inject popup")}).catch(o=>{d().hideLoadingIndicator(),console.error(o)})}}),h=()=>{const e=g("as24-lazyAuthPopup");if(!e)throw Error("No config found!");document.addEventListener(l.AuthDialogTypeChangeEvent,s=>{const o=s.detail,r=L(o,e);if(r){globalThis.location.assign(r);return}u().hideLoading(),u().runPopup(o,e.entryServiceApi.assetsVersion)}),document.dispatchEvent(m(l.AuthDialogFragmentReadyEvent,{detail:{}}))};document.readyState!=="loading"?h():document.addEventListener("DOMContentLoaded",()=>{h()});

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.