const i=["store","products","product","group","domain","language","currency","basket","legal","clientarea","checkout","payment","announcements","knowledgebase","blog","admin","api","sanctum","livewire","sitemap.xml","robots.txt"];function u(t){return(t||"").toLowerCase().replace(/ı/g,"i").replace(/ğ/g,"g").replace(/ü/g,"u").replace(/ş/g,"s").replace(/ö/g,"o").replace(/ç/g,"c").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").substring(0,180)}document.addEventListener("DOMContentLoaded",()=>{const t=document.querySelector('input[name="title"]'),e=document.querySelector('input[name="slug"]'),n=document.querySelector("#slugReservedWarning");if(!t||!e)return;let a=!1;e.addEventListener("input",()=>a=!0),t.addEventListener("input",()=>{a||(e.value=u(t.value)),l()}),e.addEventListener("input",l);function l(){const s=e.value.toLowerCase();i.includes(s)?(e.classList.add("is-invalid"),n&&(n.style.display="block")):(e.classList.remove("is-invalid"),n&&(n.style.display="none"))}});
