PageSourceSearch

https://fibladi.com/assets/getAds-Cyyd0nKJ.js

js fibladi.com collected 2026-10-02 10:29:22 UTC 813 bytes, 1 lines download raw bytes

1import{b as n}from"./query-DSCVHH2G.js";const o="https://apinews.fibladi.com/api/ads/feed",u=async e=>{const s=await fetch(`${o}${e>1?"?limit="+e:""}`);if(!s.ok)throw new Error("Failed to fetch ads feed");return(await s.json()).map(t=>({id:t.id,title:t.title,image:t.image,link:t.LinkToshop,lang:/[\u0600-\u06FF]/.test(t.title)?"ar":"fr",Video:r(t.Video)}))},a=e=>n({queryKey:["adsFeed",e],queryFn:()=>u(e),staleTime:1e3*60*20});function r(e){var s,i;if(!e)return null;if(e.includes("youtube.com")||e.includes("youtu.be")){let t=null;return e.includes("/shorts/")?t=(s=e.split("/shorts/")[1])==null?void 0:s.split("?")[0]:e.includes("youtu.be")?t=(i=e.split("/").pop())==null?void 0:i.split("?")[0]:t=new URL(e).searchParams.get("v"),t?`https://www.youtube.com/embed/${t}`:null}return null}export{u as f,a 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.