PageSourceSearch

https://www.mercier.com/_nuxt/BxnfHZQh.js

js mercier.com collected 2026-10-07 09:19:13 UTC 1,050 bytes, 1 lines download raw bytes

1import{A as n}from"./CjZfUkTZ.js";const g=5,p=()=>{const o=n(),a=async(s,t,e=!1)=>{try{const r=t&&t!=="all"?`&universe=${t}`:"",c=e?"&limited=true":"";return(await $fetch(o.public.BACK_END+o.public.BACK_END_API_VERSION+`/pages?tag=${s}${r}${c}`,{method:"GET",headers:{"x-api-token":o.public.APPLICATION_TOKEN}})).content}catch(r){return console.error(`Error fetching blog posts for tag ${s}:`,r),[]}};return{fetchBlogPostsByTag:a,fetchAllBlogPosts:async(s,t=!1)=>{try{const[e,r,c]=await Promise.all([a("actualites",s,t),a("guide_achat",s,t),a("prestations",s,t)]);return{actualityPosts:e,guidePosts:r,advicePosts:c}}catch(e){return console.error("Error fetching all blog posts:",e),{actualityPosts:[],guidePosts:[],advicePosts:[]}}},fetchAllPages:async s=>{try{const t=s&&s!=="all"?`?universe=${s}`:"";return(await $fetch(o.public.BACK_END+o.public.BACK_END_API_VERSION+`/pages${t}`,{method:"GET",headers:{"x-api-token":o.public.APPLICATION_TOKEN}})).content}catch(t){return console.error("Error fetching all pages:",t),[]}}}};export{g as L,p as u};

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.