PageSourceSearch

https://www.esl.fr/themes/custom/esl_theme/assets/node_modules/%40…lPriceFetcher.97c438361477dd60cb52.js?v=1.x

js esl.fr collected 2026-09-28 23:33:16 UTC 2,283 bytes, 1 lines download raw bytes

1var schoolPriceFetcher;(()=>{"use strict";var e={d:(n,r)=>{for(var t in r)e.o(r,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:r[t]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{fetchPrices:()=>i});const r={kaplan:"KIL",alpadia:"ALP",esl:"ESL"},t=e=>r[e];const o=(e,n={},r,o="GET")=>{return i=void 0,c=void 0,s=function*(){var i;const c=(()=>{const e=window.KLG_BRAND;if(!e)throw new Error("Brand is not defined in the running environment. Please provide one.");return e})(),a=(()=>{const e=window.KLG_NG_LOCALE;if(!e)throw new Error("Locale is not defined in the running environment. Please provide one.");return e})(),s=(()=>{const e=window.KLG_API_BASE_PATH;if(!e)throw new Error("Base path is not defined in the running environment. Please provide one.");return e})();(e=>{if(!e)throw new Error("Request cannot be performed because the URL is missing. Please provide one.")})(e);try{const u={method:o,body:null!==(i=JSON.stringify(r))&&void 0!==i?i:void 0,headers:new Headers({"accept-company":t(c),"accept-language":a})},d=((e,n={})=>{const r=new URL(e);return Object.entries(n).forEach((([e,n])=>r.searchParams.append(e,n))),r})(`${s}${e}`,n),l=yield fetch(d,u);if(l.ok)return{data:yield l.json(),status:"success"};{const{error:e,status:n,timestamp:r}=yield l.json();return{error:{error:e,status:n,timestamp:r},status:"error"}}}catch(e){return{error:e,status:"error"}}},new((a=void 0)||(a=Promise))((function(e,n){function r(e){try{o(s.next(e))}catch(e){n(e)}}function t(e){try{o(s.throw(e))}catch(e){n(e)}}function o(n){var o;n.done?e(n.value):(o=n.value,o instanceof a?o:new a((function(e){e(o)}))).then(r,t)}o((s=s.apply(i,c||[])).next())}));var i,c,a,s};const i=e=>{return n=void 0,r=void 0,i=function*(){return o("/pricing/v1/schools",{schoolCodes:e})},new((t=void 0)||(t=Promise))((function(e,o){function c(e){try{s(i.next(e))}catch(e){o(e)}}function a(e){try{s(i.throw(e))}catch(e){o(e)}}function s(n){var r;n.done?e(n.value):(r=n.value,r instanceof t?r:new t((function(e){e(r)}))).then(c,a)}s((i=i.apply(n,r||[])).next())}));var n,r,t,i};schoolPriceFetcher=n})();

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.