fetch(`https://www.chatsage.co/api/get-chatbot-status/fe0b09fa-b4b3-4461-a9d5-5e256b87aa83`,{method:"GET",mode:"cors",cache:"no-store"}).then(_=>{if(!_.ok)throw Error("Network response was not ok");return _.json()}).then(_=>{"public"===_.visibility&&function _(){let $=document.createElement("iframe");$.style.position="fixed",$.style.bottom="80px",$.style.right="20px",$.style.width="460px",$.style.height="80dvh",$.style.border="none",$.style.borderRadius="10px",$.style.boxShadow="0 0 10px rgba(0,0,0,0.1)",$.style.zIndex="9999",$.style.backgroundColor="#ffffff";let t=document.createElement("button");t.style.position="fixed",t.style.bottom="20px",t.style.right="20px",t.style.width="50px",t.style.height="50px",t.style.padding="0",t.style.backgroundColor="#3B82F6",t.style.border="none",t.style.borderRadius="50%",t.style.cursor="pointer",t.style.zIndex="10000",t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.addEventListener("mouseenter",()=>{t.style.transform="scale(1.1)",t.style.transitionProperty="transform",t.style.transitionDuration="150ms",t.style.transitionTimingFunction="cubic-bezier(0.4, 0, 0.2, 1)"}),t.addEventListener("mouseleave",()=>{t.style.transform="scale(1)"}),t.innerHTML=`
`;let e=!1;t.addEventListener("click",function _(){"none"===$.style.display?(e||($.src=`https://www.chatsage.co/chatbot-embedding/fe0b09fa-b4b3-4461-a9d5-5e256b87aa83`,e=!0),$.style.display="block",t.innerHTML=`
`):($.style.display="none",t.style.backgroundColor="#3B82F6",t.innerHTML=`
`)}),$.style.display="none",document.body.appendChild($),document.body.appendChild(t)}()}).catch(_=>{console.error("Error fetching chatbot status:",_)});