PageSourceSearch

https://www.terdav.com/wwwroot/dist/scripts/pages/lr/services/CircuitsService.ZVT9rb0Z.js

js terdav.com collected 2026-10-02 06:51:10 UTC 1,295 bytes, 1 lines download raw bytes

1import{fetchData as s}from"../../../helpers/fetchData.DwT-HUBy.js";import{isTrackingParam as n,buildFilterUrl as c}from"../../../helpers/urlFilters.2qJqQBbT.js";import{L as i}from"../errors/LrErrorHandler.CIzVwpLt.js";import"../errors/Error.BejVME5u.js";import"../../../abstracts/ApplicationError.Dpe_DGh1.js";import"../errors/LrErrorTypes.CdcUcBkU.js";class p{configProvider=null;_baseUrl=(()=>{const r=new URL(window.location.href);for(const t of[...r.searchParams.keys()])n(t)&&r.searchParams.delete(t);const o=r.searchParams.toString();return r.pathname+(o?"?"+o:"")})();setConfigProvider(r){this.configProvider=r}async getAllCircuits(r){try{if(!this.configProvider)throw i.createConfigError("ConfigProvider non configuré");const o=this.configProvider.getUrlPost();if(!o)throw i.createDataNotFoundError("URL de filtre non configurée");const t=c(r.filters,void 0,r.sort),a=new URLSearchParams(t);a.set("absolutePath",this._baseUrl),a.set("page",String(r.page));const e=await s(`${o}?${a.toString()}`);if(!e.ok)throw i.createApiFetchError("Erreur lors de la récupération des circuits",500,{endpoint:o,originalError:e.error?.message});if(typeof e.data!="string")return e.data}catch(o){throw i.handleError(o,"Erreur lors de la récupération des circuits"),o}}}export{p as CircuitsService};

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.