async function getData(t){const e=document.querySelector('meta[name="csrf-token"]').getAttribute("content");let n=await fetch(t,{method:"GET",headers:{"X-CSRF-TOKEN":e,"Content-Type":"application/json"}});return n}document.addEventListener("DOMContentLoaded",async function(){var t=document.createElement("div");t.className="floating_icon",t.style.position="fixed",t.style.bottom="150px",t.style.right="2%",t.style.zIndex="999",t.style.display="flex",t.style.flexDirection="column",t.style.gap="10px";const e=[],n="/json/floating-icon",a=await getData(n),o=await a.json(),i=o.data.icon,l=o.data.global;for(const t of i){const n=t.URL,a=t.Isinternal,o=t.ImagePath,i=t.Name,l="0"==a?'target="_blank"':"",s=`\n \n ${i}\n \n `;e.push(s)}Object.entries(l).forEach(([t,n])=>{const a=n.url,o=n.link_type,i=n.image_url,l=n.floating_name,s="0"==o?'target="_blank"':"",c=`\n \n ${l}\n \n `;e.push(c)}),t.innerHTML=e.join(""),document.body.appendChild(t)});