PageSourceSearch

https://www.syndicalismehebdo.fr/_nuxt/B892vv2f.js

js syndicalismehebdo.fr collected 2026-09-24 09:13:53 UTC 1,732 bytes, 1 lines download raw bytes

1import{ay as u,bh as r}from"./DzWOW6Si.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="63571863-db32-45ab-b82c-6757685f8ccd",s._sentryDebugIdIdentifier="sentry-dbid-63571863-db32-45ab-b82c-6757685f8ccd")}catch{}})();const g=async s=>{const e=u(),{API_URL:a,API_VERSION:n}=e.public,o=`${a}${n}`,c={credentials:"include",headers:{"Content-Type":"application/json; charset=UTF-8"}};try{const t=await $fetch(`${o}articles/slug/${s}`,c);if(!t)throw console.warn(`[WARNING] Article not found for slug: ${s}`),r({statusCode:404,statusMessage:"Article not found"});return JSON.parse(JSON.stringify(t))}catch(t){throw console.error("[ERROR] Error fetching article by slug:",t),r({statusCode:t.statusCode||500,statusMessage:t.statusMessage||"Failed to fetch article",data:t.data||null})}},f=async s=>{var o,c;const{API_URL:e,API_VERSION:a}=u().public,n=`${e}${a}articles`;try{const t=await $fetch(n,{params:s});if(!((o=t==null?void 0:t.results)!=null&&o.length))throw r({statusCode:404,statusMessage:"No articles found"});return l(t.results[0],s),t}catch(t){console.error("[ERROR] Error fetching articles:",t);const i=((c=t.response)==null?void 0:c.status)||t.statusCode||500;throw i===404?r({statusCode:404,statusMessage:"No articles found"}):r({statusCode:i,statusMessage:t.statusMessage||"Failed to fetch articles",data:t.data||null})}},l=(s,e)=>{const{themeSlug:a,highlightSlug:n}=e;if(a&&!s.themes.some(o=>o.slug===a))throw r({statusCode:404,statusMessage:"Theme not found"});if(n&&!s.highlights.some(o=>o.slug===n))throw r({statusCode:404,statusMessage:"Highlight not found"})};export{f as a,g};

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.