document.addEventListener("DOMContentLoaded", async function() { let idChat_324981_8821 = "cs_Vdog__vaa_"; const sleepMAI = (delay) => new Promise((resolve) => setTimeout(resolve, delay)) const baseUrl = "https://hcb.makeai.it/chat" await sleepMAI(4000) console.log("Start MakeAIBot 🤖") var tk = "2342-rmll-r-da-asdf-g-tr-74km32-g-tegf"; var co = conf(baseUrl, tk).then((co)=>{ if(co == undefined){ console.log("Error T:011"); const elementoDaRimuovere = document.getElementById(idChat_324981_8821); if (elementoDaRimuovere) { elementoDaRimuovere.remove(); } else { console.log("Elemento non trovato!"); } return; } let firstColor = co.c[0]; let secondColor = co.c[1]; let name = co.n; let logo = co.l; let style = `#` + idChat_324981_8821 + ` { margin: 0; padding: 0; font-family: "Lato", sans-serif; background-color: #f6f7f9; z-index: 100000000; position: fixed; } #` + idChat_324981_8821 + `_b { display: flex; flex-direction: row-reverse; position: fixed; bottom: 0; right: 0; width: auto; height: 84px; } #` + idChat_324981_8821 + ` *::-webkit-scrollbar { width: 6px; } #` + idChat_324981_8821 + ` *::-webkit-scrollbar-track { background: #f1f1f100; } #` + idChat_324981_8821 + ` *::-webkit-scrollbar-thumb { background: #a6acb0; border-radius:3px; } #` + idChat_324981_8821 + ` *::-webkit-scrollbar-thumb:hover { background: #555; } /* #` + idChat_324981_8821 + ` *::-webkit-scrollbar { display: none; } */ #` + idChat_324981_8821 + ` h1 { margin: 0; font-size: 16px; line-height: 1; color:white; } #` + idChat_324981_8821 + ` button { color: inherit; background-color: transparent; border: 0; outline: 0 !important; cursor: pointer; border-radius: 50% !important; text-align: center; padding: 0; } #` + idChat_324981_8821 + `_b a:first-child button{ margin: 16px 16px 16px 8px; } #` + idChat_324981_8821 + `_b .bc-chatbox { width: 52px; height: 52px; color: #fff; background-color: ` + firstColor + `; background-position: center center; background-repeat: no-repeat; box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.15); border: 0; border-radius: 50% !important; cursor: pointer; margin: 16px 8px 16px 8px; } #` + idChat_324981_8821 + ` textarea { box-sizing: border-box; width: 100%; margin: 0; max-height: 200px!important; height: 24px; padding: 0 calc(16px / 2); font-family: inherit; font-size: 16px; line-height: calc(16px + 16px / 2)!important; color: #696969; background-color: white!important; border: 0; outline: 0 !important; resize: none; overflow-y: scroll; } #` + idChat_324981_8821 + ` textarea::placeholder { color: #696969; } #` + idChat_324981_8821 + ` .chatbox-popup { display: flex!important; position: fixed; box-shadow: 5px 5px 25px 0 rgba(46, 61, 73, 0.2); flex-direction: column; display: none; bottom: calc(2 * 16px + 52px); right: 16px; width: 377px; height: auto; max-height: 80%; background-color: #fff; border-radius: 16px !important; } #` + idChat_324981_8821 + ` .chatbox-popup .chatbox-popup__header { box-sizing: border-box; display: flex; width: 100%; padding: 16px; color: #fff; background-color: ` + firstColor + `; align-items: center; justify-content: space-around; border-top-right-radius: 12px; border-top-left-radius: 12px; } #` + idChat_324981_8821 + ` .chatbox-popup .chatbox-popup__header .chatbox-popup__avatar { margin-top: -32px; background-color: ` + firstColor + `; border: 5px solid rgba(0, 0, 0, 0.1); border-radius: 50%!important; } #` + idChat_324981_8821 + ` .chatbox-popup .chatbox-popup__main { box-sizing: border-box; width: 100%; padding: calc(2 * 16px) 16px; line-height: calc(16px + 16px / 2); color: #696969; text-align: center; display: flex; flex-direction: column; flex-wrap: nowrap; max-height: calc(100% - 300px); overflow-y:scroll; } #` + idChat_324981_8821 + ` .chatbox-popup .chatbox-popup__footer { box-sizing: border-box; display: flex; width: 100%; padding: 16px; border-top: 1px solid #ddd; align-items: center; justify-content: space-around; border-bottom-right-radius: 12px; border-bottom-left-radius: 12px; } #` + idChat_324981_8821 + ` .chatbox-panel { display: flex; position: absolute; box-shadow: 5px 5px 25px 0 rgba(46, 61, 73, 0.2); flex-direction: column; display: none; top: 0; right: 0; bottom: 0; width: 377px; background-color: #fff; } #` + idChat_324981_8821 + ` .chatbox-panel .chatbox-panel__header { box-sizing: border-box; display: flex; width: 100%; padding: 16px; color: #fff; background-color: ` + firstColor + `; align-items: center; justify-content: space-around; flex: 0 0 auto; } #` + idChat_324981_8821 + ` .chatbox-panel .chatbox-panel__main { box-sizing: border-box; width: 100%; padding: calc(2 * 16px) 16px; line-height: calc(16px + 16px / 2); color: #696969; text-align: center; flex: 1 1 auto; } #` + idChat_324981_8821 + ` .chatbox-panel .chatbox-panel__footer { box-sizing: border-box; display: flex; width: 100%; padding: 16px; border-top: 1px solid #ddd; align-items: center; justify-content: space-around; flex: 0 0 auto; } #` + idChat_324981_8821 + ` .chatbox-panel .chatbox-panel__footer { box-sizing: border-box; display: flex; width: 100%; padding: 16px; border-top: 1px solid #ddd; align-items: center; justify-content: space-around; flex: 0 0 auto; } #` + idChat_324981_8821 + ` .chatbox-popup__main__msg.l-msg,.chatbox-popup__main__msg.r-msg{ width: auto; max-width: 80%; overflow: hidden; text-align: left; border: 1px solid #a6acb0; border-radius: 14px!important; overflow-y: visible; overflow-x: clip; padding: 12px; margin-bottom: 10px; } #` + idChat_324981_8821 + ` .chatbox-popup__main__msg.l-msg{ background-color: rgb(253, 253, 253); align-self: start; } #` + idChat_324981_8821 + ` .chatbox-popup__main__msg.r-msg{ background-color: ` + secondColor + `; align-self: end; } #` + idChat_324981_8821 + ` .chatbox-popup__main__msg.l-msg.typing{ display: flex; flex-direction: row; } #` + idChat_324981_8821 + ` .chatbox-popup__main__msg.l-msg.typing *{ margin: 3px; } #` + idChat_324981_8821 + ` .chatbox-popup__main__msg.l-msg.typing div:nth-child(2) svg{ fill: ` + firstColor + `; } #` + idChat_324981_8821 + ` .loader { text-align: center; } #` + idChat_324981_8821 + ` .loader span { display: inline-block; vertical-align: middle; width: 10px; height: 10px; background: black; border-radius: 50px!important; animation: loader 0.8s infinite alternate; } #` + idChat_324981_8821 + ` .loader span:nth-of-type(2) { animation-delay: 0.2s; } #` + idChat_324981_8821 + ` .loader span:nth-of-type(3) { animation-delay: 0.6s; } @keyframes loader { 0% { opacity: 0.9; transform: scale(0.5); } 100% { opacity: 0.1; transform: scale(1); } } `; let c_324981_8821 = ""; const styleSheet = document.createElement("style"); styleSheet.innerText = style, document.head.appendChild(styleSheet); const container = createElementFromHTML("
") , btnCont = createElementFromHTML("") , buttonUno = createElementFromHTML('') , buttonDue = createElementFromHTML('') , section = createElementFromHTML('