PageSourceSearch

https://aivpn.space/_nuxt/Dn916bL6.js

js aivpn.space collected 2026-10-02 01:08:57 UTC 2,430 bytes, 1 lines download raw bytes

1import{k as i,m,p as A}from"./DjimhBmC.js";import{a as s}from"./DnhJi7zZ.js";function b(t){const l=i().public.contentApiUrl,p=()=>typeof t=="string"?t:t.value;async function g(u,n={}){const a=new URLSearchParams({...n,locale:p()}),c=await fetch(`${l}/api${u}?${a.toString()}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!c.ok)throw new Error(`Strapi API error: ${c.status}`);return(await c.json()).data}return{get:g}}function y(t){const r=b(t);async function l(n={}){const a={sort:"publishedAt:desc",populate:"*",...n};return await r.get("/articles",a)}async function p(n){return await r.get(`/articles/${n}`,{populate:"*"})}async function g(n){const a=await r.get("/articles",{"filters[slug][$eq]":n,populate:"*"});return Array.isArray(a)&&a.length>0?a[0]:null}async function u(n=5,a){const c=await l({sort:"publishedAt:desc","pagination[limit]":n});return a?c.filter(o=>o.documentId!==a):c}return{getAll:l,getById:p,getBySlug:g,getLatest:u}}function d(){const{locale:t}=m();return A(()=>t.value)}const w=()=>{const t=d();return{articles:y(t),getGlobal:async()=>{const e=i().public.contentApiUrl;return await s(`${e}/api/global`,{params:{locale:t.value,populate:["header_nav_items","footer_menu_sitemap_items","footer_menu_navigation_items"]}},"$UMHoidYcOS")},getFrontPage:async()=>{const e=i().public.contentApiUrl;return await s(`${e}/api/front-page?populate=*`,{params:{locale:t.value,populate:["faq_items"]}},"$M9-nKKdcWP")},getBlogPage:async()=>{const e=i().public.contentApiUrl;return await s(`${e}/api/blog-page?populate=*`,{params:{locale:t.value}},"$Hk01N1F8Ea")},getAffiliatePage:async()=>{const e=i().public.contentApiUrl;return await s(`${e}/api/affiliate-page`,{params:{locale:t.value,populate:["hero_image","benefits_items","benefits_items.image","why_items","why_items.image","audience_items.icon","audience_items.background","faq_items","cta_image"]}},"$j323c3Yz25")},getFeedbackPage:async()=>{const e=i().public.contentApiUrl;return await s(`${e}/api/page-feedback`,{params:{locale:t.value,populate:["feedback_options"]}},"$73MX590_HM")},getWelcomePage:async()=>{const e=i().public.contentApiUrl;return await s(`${e}/api/page-welcome`,{params:{locale:t.value}},"$MeVEOybC_5")},getLegalPage:async o=>{const f=i().public.contentApiUrl;return await s(`${f}/api/legal-pages`,{params:{locale:t.value,"filters[slug][$eq]":o,"pagination[pageSize]":1}},"$sEk9JjAzCr")}}};export{d as a,y as b,w 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.