import{r as i}from"./vendor-react-Dg0Tra3e.js";const t="www.what-anime.com";function c(){return{pingIndexNow:i.useCallback(async s=>{if(typeof window>"u"||!window.location.hostname.includes("what-anime.com")){console.log("[IndexNow] Skipping - not in production");return}try{const n=s.map(o=>o.startsWith("http")?o:`https://${t}${o}`),e=await fetch("https://www.bing.com/indexnow",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({host:t,key:"what-anime-indexnow-key",urlList:n})});e.ok?console.log("[IndexNow] Successfully pinged:",n):console.warn("[IndexNow] Failed to ping:",e.status)}catch(n){console.warn("[IndexNow] Error pinging:",n)}},[])}}export{c as u};