| 35 | ` |
| 36 | |
| 37 | const chatButtonHtml = (data) => ` |
| 38 | <div class="sqlbot-assistant-chat-button"> |
| 39 | <img style="height:30px;width:30px;display:none;" src="${data.float_icon}"> |
| 40 | <svg style="display:none;" data-v-39a51454="" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="none"> |
| 41 | <path fill="#149CC5" d="M28.333 13.669h-.231c.138.758.207 1.527.206 2.298.005.946-.107 1.89-.335 2.808h.65a1.05 1.05 0 0 0 1.05-1.05V15.01a1.343 1.343 0 0 0-1.34-1.341"></path> |
| 42 | <path fill="#69CAA4" d="M1.692 15.967c0-.77.068-1.54.206-2.298h-.23a1.34 1.34 0 0 0-1.342 1.34v2.716a1.05 1.05 0 0 0 1.05 1.05h.651a11.4 11.4 0 0 1-.335-2.808"></path> |
| 43 | <path fill="url(#a)" d="M15 3.795c-6.89 0-12.474 5.282-12.474 12.171 0 6.89 5.585 10.239 12.474 10.239s12.474-3.35 12.474-10.238c0-6.89-5.585-12.172-12.474-12.172m3.026 17.33h-6.052a6 6 0 0 1-2.484-.535c-.564-.256-2.208.282-2.663-.127-.551-.495.117-1.969-.221-2.636a6.014 6.014 0 0 1 5.368-8.73h6.052a6.014 6.014 0 0 1 0 12.029"></path> |
| 44 | <path fill="url(#b)" d="M15 3.795c-6.89 0-12.474 5.282-12.474 12.171 0 6.89 5.585 10.239 12.474 10.239s12.474-3.35 12.474-10.238c0-6.89-5.585-12.172-12.474-12.172m3.026 17.33h-6.052a6 6 0 0 1-2.484-.535c-.564-.256-2.208.282-2.663-.127-.551-.495.117-1.969-.221-2.636a6.014 6.014 0 0 1 5.368-8.73h6.052a6.014 6.014 0 0 1 0 12.029"></path> |
| 45 | <path fill="#75CCCC" d="M10.546 14.915h-1.78v3.88h1.78zM14.12 13.193h-1.78v5.602h1.78zM17.694 15.438h-1.78v3.357h1.78zM21.233 12.452h-1.779v6.343h1.78z"></path> |
| 46 | <defs> |
| 47 | <linearGradient id="a" x1="6.65" x2="25.099" y1="4.441" y2="29.249" gradientUnits="userSpaceOnUse"> |
| 48 | <stop stop-color="#B2F288"></stop> |
| 49 | <stop offset=".181" stop-color="#80D79C"></stop> |
| 50 | <stop offset=".371" stop-color="#52BEAD"></stop> |
| 51 | <stop offset=".554" stop-color="#2FAABB"></stop> |
| 52 | <stop offset=".724" stop-color="#159CC5"></stop> |
| 53 | <stop offset=".878" stop-color="#0594CB"></stop> |
| 54 | <stop offset="1" stop-color="#0091CD"></stop> |
| 55 | </linearGradient> |
| 56 | <linearGradient id="b" x1="6.65" x2="25.099" y1="4.441" y2="29.249" gradientUnits="userSpaceOnUse"> |
| 57 | <stop stop-color="#B2F288"></stop> |
| 58 | <stop offset=".181" stop-color="#80D79C"></stop> |
| 59 | <stop offset=".371" stop-color="#52BEAD"></stop> |
| 60 | <stop offset=".554" stop-color="#2FAABB"></stop> |
| 61 | <stop offset=".724" stop-color="#159CC5"></stop> |
| 62 | <stop offset=".878" stop-color="#0594CB"></stop> |
| 63 | <stop offset="1" stop-color="#0091CD"></stop> |
| 64 | </linearGradient> |
| 65 | </defs> |
| 66 | </svg> |
| 67 | </div>` |
| 68 | |
| 69 | const getChatContainerHtml = (data) => { |
| 70 | let srcUrl = `${data.domain_url}/#/assistant?id=${data.id}&online=${!!data.online}&name=${encodeURIComponent(data.name)}` |