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kBAAkB,CAAC,CAAC;QAAE;QAAC;QAExF,IAAIiB,KAAK,CAACyD,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACJ,MAAI,CAACrJ,YAAY,CAAC,EAAE;UAAEqJ,MAAI,CAACzD,wBAAwB,CAAC,CAAC;QAAE;QAAC;MAE9F,CAAC,CAAC;;MAGF;;MAEA;;MAEA;IAEF;EAAC;EAAA,OAAAvH,eAAA;AAAA;AAEF","sources":["webpack://smetio/./developement/js/classes/smetioAiChatBot/v1.0.0/SmetioAiChatBot.js"],"sourcesContent":["//import {test_function} from \"./../functions/test_function.js\";\r\n\r\n\r\n\r\n\r\n\r\nimport {getId} from \"./../../universal_methods/getId.js\"; \r\nimport {setId} from \"./../../universal_methods/setId.js\";\r\nimport {getAttributes} from \"./../../universal_methods/getAttributes.js\"; \r\nimport { setTxtV2 } from \"../../universal_methods/setTxtV2.js\";\r\nimport { isEmpty } from \"../../universal_methods/isEmpty.js\";\r\nimport { generateId } from \"../../universal_methods/generateId.js\";\r\n\r\n\r\n\r\nexport class SmetioAiChatBot {\r\n \r\n constructor(data = {}) {\r\n \r\n this.getId = getId;\r\n this.setId = setId;\r\n this.isEmpty = isEmpty;\r\n this.getAttributes = getAttributes;\r\n this.setTxt = setTxtV2;\r\n\r\n this.setId();\r\n\r\n this.smetioSmartbox = data.smetioSmartbox;\r\n this.fileUploader = data.fileUploader;\r\n this.files = {};\r\n this.messages = data.messages ?? \"\";\r\n this.context = [];\r\n this.inComingAiText = \"\";\r\n\r\n this.chatBox;\r\n\r\n this.mainClass = \"smetio-ai-chat-bot-\" + this.id;\r\n this.mainAttributes = {\r\n class: [\"smetio-ai-chat-bot\", this.mainClass],\r\n };\r\n\r\n this.textareaClass = \"smetio-ai-chat-bot-textarea-\" + this.id;\r\n this.textareaAttributes = {\r\n placeholder: \"Type your question here...\",\r\n class: [\"smetio-ai-chat-bot-textarea\", this.textareaClass],\r\n };\r\n \r\n this.chatBoxClass = \"smetio-ai-chat-bot-box-\" + this.id;\r\n this.chatBoxAttributes = {\r\n class: [\"smetio-ai-chat-bot-box\", this.chatBoxClass],\r\n };\r\n\r\n this.submitBtnClass = \"smetio-ai-chat-bot-controls-submit-btn-\" + this.id;\r\n this.submitBtnAttributes = {\r\n class: [\"smetio-ai-chat-bot-controls-submit-btn\", this.submitBtnClass],\r\n };\r\n\r\n this.micBtnClass = \"smetio-ai-chat-bot-controls-mic-btn-\" + this.id;\r\n this.micBtnAttributes = {\r\n class: [\"smetio-ai-chat-bot-controls-mic-btn\", this.micBtnClass],\r\n };\r\n \r\n this.stopBtnClass = \"smetio-ai-chat-bot-controls-stop-btn-\" + this.id;\r\n this.stopBtnAttributes = {\r\n class: [\"smetio-ai-chat-bot-controls-stop-btn\", this.stopBtnClass],\r\n };\r\n \r\n this.videoCallBtnClass = \"smetio-ai-chat-bot-controls-video-call-btn-\" + this.id;\r\n this.videoCallBtnAttributes = {\r\n class: [\"smetio-ai-chat-bot-controls-video-call-btn\", this.videoCallBtnClass],\r\n };\r\n \r\n this.uploadFileBtnClass = \"smetio-ai-chat-bot-controls-upload-file-btn-\" + this.id;\r\n this.uploadFileBtnAttributes = {\r\n class: [\"smetio-ai-chat-bot-controls-upload-file-btn\", this.uploadFileBtnClass],\r\n };\r\n\r\n };\r\n \r\n async getSmartBox(data = {}) {\r\n \r\n const { content } = data;\r\n\r\n const { SmetioSmartbox } = await import(/* webpackPrefetch: true */ \"../../smetioSmartbox/v1.0.0/SmetioSmartbox.js\");\r\n\r\n if (!this.smetioSmartbox) this.smetioSmartbox = new SmetioSmartbox();\r\n\r\n if (this.smetioSmartbox.hasBeenRendered && this.smetioSmartbox.currentState !== \"close\") return smartbox.reactivate();\r\n\r\n this.smetioSmartbox.title = \"AI Assistant\";\r\n this.smetioSmartbox.content = content;\r\n this.smetioSmartbox.render();\r\n \r\n };\r\n\r\n render() {\r\n\r\n this.events();\r\n\r\n const content = `\r\n
\r\n\r\n
\r\n \r\n
\r\n ${this.messages}\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n `;\r\n\r\n return this.getSmartBox({ content });\r\n\r\n };\r\n\r\n prepareButtons() {\r\n\r\n // if (this.chatBox) return false;\r\n\r\n this.mainDiv = document.querySelector(`.${this.mainClass}`);\r\n this.chatBox = document.querySelector(`.${this.chatBoxClass}`);\r\n this.textarea = document.querySelector(`.${this.textareaClass}`);\r\n this.micBtn = document.querySelector(`.${this.micBtnClass}`);\r\n this.submitBtn = document.querySelector(`.${this.submitBtnClass}`);\r\n this.stopBtn = document.querySelector(`.${this.stopBtnClass}`);\r\n this.videoCallBtn = document.querySelector(`.${this.videoCallBtnClass}`);\r\n this.uploadFileBtn = document.querySelector(`.${this.uploadFileBtnClass}`);\r\n };\r\n\r\n toggleSubmitAndMicBtn() {\r\n \r\n if (this.isEmpty(this.textarea.value.trim())) {\r\n this.micBtn.style.display = \"block\";\r\n this.submitBtn.style.display = \"none\";\r\n return false;\r\n };\r\n\r\n this.micBtn.style.display = \"none\";\r\n this.submitBtn.style.display = \"block\";\r\n\r\n };\r\n\r\n addMessageToChatBox(data = {}) {\r\n \r\n this.prepareButtons();\r\n\r\n let { messageDiv, msgType, msgSender, msg, msgTime = \"12:00\", msgTextClass = \"\" } = data;\r\n const msgSenderClass = msgSender === \"ai\" ? \"smetio-ai-chat-bot-ai-message\" : \"smetio-ai-chat-bot-user-message\";\r\n\r\n const msgTextClassParent = msgTextClass ? `${msgTextClass}-holder` : \"\";\r\n\r\n messageDiv = messageDiv ?? `\r\n
\r\n
${msg}
\r\n

${msgTime}

\r\n
\r\n `\r\n this.chatBox.innerHTML += messageDiv;\r\n // let viewportHeight = window.innerHeight;\r\n // const scrollToHeight = this.chatBox.scrollHeight > (viewportHeight - 150) ? this.chatBox.scrollHeight : 0;\r\n // this.smetioSmartbox.scrollTo({ scrollHeight: scrollToHeight });\r\n this.scrollAppropriately();\r\n\r\n };\r\n\r\n scrollAppropriately() {\r\n let viewportHeight = window.innerHeight;\r\n const scrollToHeight = this.chatBox.scrollHeight > (viewportHeight - 150) ? this.chatBox.scrollHeight : 0;\r\n this.smetioSmartbox.scrollTo({ scrollHeight: scrollToHeight });\r\n };\r\n\r\n getCurrentTime() {\r\n const now = new Date();\r\n let hours = now.getHours();\r\n let minutes = now.getMinutes();\r\n\r\n // Convert to 12-hour format\r\n hours = hours % 12 || 12; // Convert 0 to 12\r\n minutes = minutes < 10 ? \"0\" + minutes : minutes; // Add leading zero if needed\r\n\r\n return `${hours}:${minutes}`;\r\n };\r\n\r\n displayUserMessage() {\r\n\r\n const msg = this.textarea.value;\r\n this.context.push({role:\"user\", parts:[{ text: msg }] });\r\n\r\n if (this.isEmpty(msg.trim())) return false;\r\n \r\n this.addMessageToChatBox({ msgSender: \"user\", msg, msgTime: this.getCurrentTime() });\r\n this.textarea.value = \"\";\r\n this.toggleSubmitAndMicBtn();\r\n\r\n this.startWaitingForAiResponse();\r\n\r\n this.sendMessage({ text: msg, type: \"text\" });\r\n\r\n };\r\n\r\n\r\n displayAiMessage(data = {}) {\r\n\r\n const currentSpinner = document.querySelector(`.${this.currentMsgTextClass}-spinner`);\r\n if (currentSpinner) currentSpinner.remove();\r\n\r\n const { msg } = data;\r\n this.inComingAiText += msg;\r\n document.querySelector(`.${this.currentMsgTextClass}`).innerHTML += msg.replace(\"```html\", \"\").replace(\"```\", \"\");\r\n \r\n this.scrollAppropriately();\r\n\r\n };\r\n\r\n updateContextWithAIText() {\r\n this.context.push({ role: \"assistant\", parts: [{ text: this.inComingAiText }] });\r\n this.inComingAiText = \"\";\r\n };\r\n\r\n startWaitingForAiResponse() {\r\n this.stopBtn.style.display = \"block\";\r\n\r\n this.submitBtn.style.display = \"none\";\r\n this.micBtn.style.display = \"none\";\r\n\r\n this.videoCallBtn.disabled = true;\r\n this.uploadFileBtn.disabled = true;\r\n this.textarea.disabled = true;\r\n\r\n this.currentMsgTextClass = `msg-${generateId({ length: 6 })}`;\r\n const msg = `

`;\r\n this.addMessageToChatBox({ msgSender: \"ai\", msg, msgTime: this.getCurrentTime(), msgTextClass: this.currentMsgTextClass });\r\n \r\n };\r\n\r\n stopWaitingForAiResponse() {\r\n this.stopBtn.style.display = \"none\";\r\n\r\n this.submitBtn.style.display = \"none\";\r\n this.micBtn.style.display = \"block\";\r\n\r\n this.videoCallBtn.disabled = false;\r\n this.uploadFileBtn.disabled = false;\r\n this.textarea.disabled = false;\r\n\r\n };\r\n\r\n\r\n handleEnterKeyPress(event) {\r\n if (event.key === \"Enter\") {\r\n // Prevent the default behavior of Enter in a textarea (newline)\r\n event.preventDefault();\r\n\r\n // Call your function here\r\n this.displayUserMessage();\r\n };\r\n };\r\n\r\n async handleResponseFromServer(data = {}) {\r\n const { responseType, responseContent } = data;\r\n if (responseType === \"text\") return this.displayAiMessage({ msg: responseContent });\r\n\r\n // this.stopWaitingForAiResponse();\r\n };\r\n\r\n async sendMessage(data = {}) {\r\n const axios = (await import(/* webpackPrefetch: true */ \"axios\")).default;\r\n // const apiEndPoint = window.apiEndPoint;\r\n // const language = window.userLanguage;\r\n\r\n const apiEndPoint = window.apiEndPoint;\r\n const language = window.userLanguage;\r\n const appClass = { appUserInterface: \"business\" }; // TEMPORARY SOLUTION\r\n const sideMenuToUse = \"messages\";\r\n const urlDestination = \"create\";\r\n\r\n const url = `${apiEndPoint}/apps/${appClass.appUserInterface}/${sideMenuToUse}/${urlDestination}/${language}`;\r\n const messageContent = {\r\n type: data.type ?? \"text\", // CAN ALSO BE A FILE\r\n text: data.text ?? \"\",\r\n file: data.file ?? {}\r\n };\r\n\r\n fetch(url, {\r\n method: 'POST',\r\n headers: { 'Content-Type': 'application/json' },\r\n body: JSON.stringify({ messageTarget: \"aiAgent\", messageContent, context:this.context })\r\n }).then(response => {\r\n const reader = response.body.getReader();\r\n const decoder = new TextDecoder();\r\n\r\n const read = () =>{\r\n return reader.read().then(({ done, value }) => {\r\n if (done) {\r\n console.log('Stream finished');\r\n this.updateContextWithAIText()\r\n return;\r\n }\r\n \r\n const msgObj = decoder.decode(value);\r\n console.log(msgObj); // Process streamed text chunks\r\n\r\n this.handleResponseFromServer(JSON.parse( msgObj ));\r\n \r\n return read();\r\n });\r\n }\r\n\r\n return read();\r\n }).catch((error) => {\r\n console.log(\"An error occured \",error);\r\n return window.smetioVisitor.showNotification({ type: \"danger\", body: [{ message: \"txt423\" }] });\r\n\r\n }).finally(() => {\r\n this.stopWaitingForAiResponse(); \r\n }); \r\n\r\n // await axios.post(url, { messageTarget: \"aiAgent\", messageContent }, { responseType: 'stream' }).then(async (response) => {\r\n \r\n // console.log(\"response is \", response);\r\n\r\n // // // const reader = response.data.getReader();\r\n // // const decoder = new TextDecoder();\r\n \r\n\r\n // // while (true) {\r\n // // const { done, value } = await reader.read();\r\n // // if (done) break;\r\n\r\n // // const chunkText = decoder.decode(value, { stream: true });\r\n \r\n // // console.log(\"chunkText is \", chunkText,\" ***********\");\r\n\r\n // // };\r\n\r\n\r\n // // let result = response.data;\r\n\r\n // // if (result.error) return window.smetioVisitor.showNotification({ type: \"danger\", body: [{ message: result.msg }] });\r\n\r\n // // this.handleResponseFromServer(result.msg);\r\n\r\n // }).catch((error) => {\r\n // console.log(\"An error occured \",error);\r\n // return window.smetioVisitor.showNotification({ type: \"danger\", body: [{ message: \"txt423\" }] });\r\n\r\n // }).finally(() => {\r\n // this.stopWaitingForAiResponse(); \r\n // }); \r\n \r\n\r\n };\r\n\r\n events() {\r\n\r\n document.body.addEventListener(\"input\", (event) => {\r\n this.prepareButtons();\r\n\r\n if (event.target.classList.contains(this.textareaClass)) {\r\n // Reset height to recalculate based on content\r\n this.textarea.style.height = 'auto';\r\n // Set height to match content\r\n this.textarea.style.height = `${this.textarea.scrollHeight}px`;\r\n \r\n this.toggleSubmitAndMicBtn();\r\n \r\n };\r\n \r\n });\r\n\r\n document.body.addEventListener(\"keydown\", (event) => {\r\n this.prepareButtons();\r\n\r\n if (event.target.classList.contains(this.textareaClass)) { this.handleEnterKeyPress(event); };\r\n \r\n }); \r\n\r\n\r\n document.body.addEventListener(\"mousedown\", (event) => {\r\n this.prepareButtons();\r\n\r\n if (event.target.classList.contains(this.submitBtnClass)) { this.displayUserMessage(); };\r\n\r\n if (event.target.classList.contains(this.stopBtnClass)) { this.stopWaitingForAiResponse(); };\r\n \r\n });\r\n\r\n\r\n // $(\"body\").on(\"mousedown\", \".\"+this.uploadFilesBtnClass, ()=>{\r\n\r\n // $(\".\"+this.uploadFilesInputClass).trigger(\"click\");\r\n\r\n // });\t\r\n\r\n };\r\n\r\n};\r\n"],"names":["getId","setId","getAttributes","setTxtV2","isEmpty","generateId","SmetioAiChatBot","_data$messages","data","arguments","length","undefined","_classCallCheck","setTxt","smetioSmartbox","fileUploader","files","messages","context","inComingAiText","chatBox","mainClass","id","mainAttributes","textareaClass","textareaAttributes","placeholder","chatBoxClass","chatBoxAttributes","submitBtnClass","submitBtnAttributes","micBtnClass","micBtnAttributes","stopBtnClass","stopBtnAttributes","videoCallBtnClass","videoCallBtnAttributes","uploadFileBtnClass","uploadFileBtnAttributes","_createClass","key","value","_getSmartBox","_asyncToGenerator","regeneratorRuntime","mark","_callee","content","_yield$import","SmetioSmartbox","_args","wrap","_callee$","_context","prev","next","sent","hasBeenRendered","currentState","abrupt","smartbox","reactivate","title","render","stop","getSmartBox","apply","events","concat","prepareButtons","mainDiv","document","querySelector","textarea","micBtn","submitBtn","stopBtn","videoCallBtn","uploadFileBtn","toggleSubmitAndMicBtn","trim","style","display","addMessageToChatBox","_messageDiv","messageDiv","msgType","msgSender","msg","_data$msgTime","msgTime","_data$msgTextClass","msgTextClass","msgSenderClass","msgTextClassParent","innerHTML","scrollAppropriately","viewportHeight","window","innerHeight","scrollToHeight","scrollHeight","scrollTo","getCurrentTime","now","Date","hours","getHours","minutes","getMinutes","displayUserMessage","push","role","parts","text","startWaitingForAiResponse","sendMessage","type","displayAiMessage","currentSpinner","currentMsgTextClass","remove","replace","updateContextWithAIText","disabled","stopWaitingForAiResponse","handleEnterKeyPress","event","preventDefault","_handleResponseFromServer","_callee2","responseType","responseContent","_args2","_callee2$","_context2","handleResponseFromServer","_sendMessage","_callee3","_data$type","_data$text","_data$file","_this","axios","apiEndPoint","language","appClass","sideMenuToUse","urlDestination","url","messageContent","_args3","_callee3$","_context3","userLanguage","appUserInterface","file","fetch","method","headers","body","JSON","stringify","messageTarget","then","response","reader","getReader","decoder","TextDecoder","read","_ref","done","console","log","msgObj","decode","parse","error","smetioVisitor","showNotification","message","_this2","addEventListener","target","classList","contains","height"],"sourceRoot":""}