window.chatspell = { status: "hidden", initialized: !1, show() { document.getElementById("live-chat").style.visibility = "visible", document.getElementById("live-chat").style.opacity = 1, document.getElementById("live-chat").style.zIndex = 1e4, this.status = "visible", document.getElementById("live-chat-open-button").style.visibility = "hidden", document.getElementById("live-chat-open-button").style.opacity = 0, document.getElementById("live-chat-close-button").style.visibility = "visible", document.getElementById("live-chat-close-button").style.opacity = 1 }, hide() { document.getElementById("live-chat").style.opacity = 0, document.getElementById("live-chat").style.zIndex = -1e4, this.status = "hidden", document.getElementById("live-chat-close-button").style.visibility = "hidden", document.getElementById("live-chat-close-button").style.opacity = 0, document.getElementById("live-chat-open-button").style.visibility = "visible", document.getElementById("live-chat-open-button").style.opacity = 1 }, toggle() { "hidden" === window.chatspell.status ? window.chatspell.show() : window.chatspell.hide() }, init() { var domain = window.location.hostname; window.chatspell.initialized || (window.chatspell.initialized = !0, styles = "<style>#live-chat-button{position:fixed;bottom:20px;right:20px;width:60px;height:60px;border-radius:50%;background-color:#0566FF;cursor:pointer;z-index:100}#live-chat-button svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media screen and (min-width:800px){#live-chat{position:fixed;bottom:100px;right:20px;transition:visibility,opacity .15s linear;border-radius:8px;visibility:hidden;opacity:0}#live-chat iframe{width:384px;height:512px;border:none;border-radius:8px;user-select:none}}@media screen and (max-width:800px){#live-chat{position:fixed;bottom:100px;right:20px;transition:visibility,opacity .15s linear;border-radius:8px;visibility:hidden;opacity:0}#live-chat iframe{width:calc(100vw - 40px);height:calc(100vh - 100px - 100px);border:none;border-radius:8px;user-select:none}}#live-chat-close-button{visibility:hidden}<\/style>", html = '<div id="live-chat-button"> <svg id="live-chat-open-button" xmlns="http:\/\/www.w3.org\/2000\/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff" class="w-6 h-6"> <path stroke-linecap="round" stroke-linejoin="round" d="M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 01.865-.501 48.172 48.172 0 003.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"\/> <\/svg> <svg id="live-chat-close-button" xmlns="http:\/\/www.w3.org\/2000\/svg" fill="#FFFFFF" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff" class="w-6 h-6"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" fill="#FFFFFF"\/> <\/svg> <\/div><div id="live-chat"> <iframe src="https://app.chatspell.co/chats/23d2c0ae-3c9e-4f82-b796-01bc43cb5245?utm_source='+domain+'"><\/iframe> <\/div>', document.head.insertAdjacentHTML("beforeend", styles), document.body.insertAdjacentHTML("beforeend", html), document.getElementById("live-chat-button").addEventListener("click", window.chatspell.toggle), window.addEventListener("message", function (t) { "close" === t.data && window.chatspell.hide() })) } }; window.addEventListener('load', function () { window.chatspell.init(); });