ai12z 3.0.13 → 3.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/cjs/ai12z-bot_12.cjs.entry.js +1 -1
  2. package/dist/cjs/{ai12z-search-panel-5fa6b9fc.js → ai12z-search-panel-a6ce2627.js} +21 -6
  3. package/dist/cjs/ai12z-search-panel-a6ce2627.js.map +1 -0
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/library.cjs.js +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/components/ai12z-bot/ai12z-bot.js +23 -7
  8. package/dist/collection/components/ai12z-bot/ai12z-bot.js.map +1 -1
  9. package/dist/esm/ai12z-bot_12.entry.js +4 -4
  10. package/dist/esm/{ai12z-inline-search-d046e41f.js → ai12z-inline-search-742ea5aa.js} +3 -3
  11. package/dist/esm/{ai12z-inline-search-d046e41f.js.map → ai12z-inline-search-742ea5aa.js.map} +1 -1
  12. package/dist/esm/ai12z-inline-search.entry.js +3 -3
  13. package/dist/esm/{ai12z-knowledge-box-84c06d7b.js → ai12z-knowledge-box-61edd1b8.js} +2 -2
  14. package/dist/esm/{ai12z-knowledge-box-84c06d7b.js.map → ai12z-knowledge-box-61edd1b8.js.map} +1 -1
  15. package/dist/esm/ai12z-knowledge-box.entry.js +2 -2
  16. package/dist/esm/{ai12z-search-panel-fe7c8f83.js → ai12z-search-panel-d7df7043.js} +24 -9
  17. package/dist/esm/ai12z-search-panel-d7df7043.js.map +1 -0
  18. package/dist/esm/index.js +6 -6
  19. package/dist/esm/library.js +1 -1
  20. package/dist/esm/loader.js +1 -1
  21. package/dist/esm/search-results-page.entry.js +3 -3
  22. package/dist/esm/{search-results-view-239a5088.js → search-results-view-832ccc50.js} +3 -3
  23. package/dist/esm/{search-results-view-239a5088.js.map → search-results-view-832ccc50.js.map} +1 -1
  24. package/dist/esm/{socket-service-a7dc24ef.js → socket-service-9c7e7bfc.js} +2 -2
  25. package/dist/esm/{socket-service-a7dc24ef.js.map → socket-service-9c7e7bfc.js.map} +1 -1
  26. package/dist/esm/{utils-76c67168.js → utils-61923ae6.js} +2 -2
  27. package/dist/esm/{utils-76c67168.js.map → utils-61923ae6.js.map} +1 -1
  28. package/dist/library/index.esm.js +1 -1
  29. package/dist/library/library.esm.js +1 -1
  30. package/dist/library/library.esm.js.map +1 -1
  31. package/dist/library/p-4a5123de.entry.js +2 -0
  32. package/dist/library/{p-3d69bc82.js → p-599eee15.js} +2 -2
  33. package/dist/library/{p-7dfd6e9b.js → p-5c620570.js} +2 -2
  34. package/dist/library/p-6433707a.entry.js +2 -0
  35. package/dist/library/{p-0df5c0b4.js → p-8d25d927.js} +2 -2
  36. package/dist/library/{p-0df5c0b4.js.map → p-8d25d927.js.map} +1 -1
  37. package/dist/library/{p-4660d823.js → p-9e3df302.js} +2 -2
  38. package/dist/library/{p-95e055ba.entry.js → p-b3a2de8d.entry.js} +2 -2
  39. package/dist/library/{p-cfac4c14.js → p-bcf74d74.js} +2 -2
  40. package/dist/library/{p-75377ae8.js → p-e49a0ab7.js} +2 -2
  41. package/dist/library/p-eb9ee526.entry.js +2 -0
  42. package/dist/types/components/ai12z-bot/ai12z-bot.d.ts +1 -0
  43. package/package.json +2 -2
  44. package/dist/cjs/ai12z-search-panel-5fa6b9fc.js.map +0 -1
  45. package/dist/esm/ai12z-search-panel-fe7c8f83.js.map +0 -1
  46. package/dist/library/p-89e108df.entry.js +0 -2
  47. package/dist/library/p-b9015ffe.entry.js +0 -2
  48. package/dist/library/p-f00223ec.entry.js +0 -2
  49. /package/dist/library/{p-89e108df.entry.js.map → p-4a5123de.entry.js.map} +0 -0
  50. /package/dist/library/{p-3d69bc82.js.map → p-599eee15.js.map} +0 -0
  51. /package/dist/library/{p-7dfd6e9b.js.map → p-5c620570.js.map} +0 -0
  52. /package/dist/library/{p-b9015ffe.entry.js.map → p-6433707a.entry.js.map} +0 -0
  53. /package/dist/library/{p-4660d823.js.map → p-9e3df302.js.map} +0 -0
  54. /package/dist/library/{p-95e055ba.entry.js.map → p-b3a2de8d.entry.js.map} +0 -0
  55. /package/dist/library/{p-cfac4c14.js.map → p-bcf74d74.js.map} +0 -0
  56. /package/dist/library/{p-75377ae8.js.map → p-e49a0ab7.js.map} +0 -0
  57. /package/dist/library/{p-f00223ec.entry.js.map → p-eb9ee526.entry.js.map} +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const ai12zSearchPanel = require('./ai12z-search-panel-5fa6b9fc.js');
5
+ const ai12zSearchPanel = require('./ai12z-search-panel-a6ce2627.js');
6
6
  const ai12zKnowledgeBox = require('./ai12z-knowledge-box-588f2795.js');
7
7
  const searchResultsView = require('./search-results-view-7a639d5f.js');
8
8
  const ai12zInlineSearch = require('./ai12z-inline-search-f6b766c1.js');
@@ -40,7 +40,7 @@ var patchCloneNodeFix = (HTMLElementPrototype) => {
40
40
 
41
41
  patchBrowser().then(async (options) => {
42
42
  await appGlobals.globalScripts();
43
- return index.bootstrapLazy([["ai12z-inline-search.cjs",[[1,"ai12z-inline-search",{"dataMode":[1,"data-mode"],"dataKey":[1,"data-key"],"resultPosition":[1,"result-position"],"autoSearch":[4,"auto-search"],"categorize":[4],"formData":[32],"conversationHistory":[32],"searchResults":[32],"isOpen":[32]},[[4,"survey","surveyHandler"]]]]],["search-results-page.cjs",[[1,"search-results-page",{"dataKey":[1,"data-key"],"dataMode":[1,"data-mode"],"placeholder":[1],"categorize":[4],"loadResults":[4,"load-results"],"query":[32],"searchResults":[32],"hideAllButtons":[32],"isChat":[32],"chatHistory":[32],"aiMessageId":[32],"socketService":[32],"thumbsId":[32],"isOpen":[32],"capturedFile":[32],"imgFiles":[32],"displayText":[32]},[[4,"survey","surveyHandler"]]]]],["ai12z-knowledge-box.cjs",[[1,"ai12z-knowledge-box",{"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"question":[1537],"relavanceScore":[4,"relavance-score"],"feedback":[4],"socket":[1032],"isLoading":[1028,"is-loading"],"questionId":[32],"searchResults":[32],"items":[32],"error":[32],"domId":[32],"surveyDomId":[32],"buttons":[32]},null,{"question":["watchPropHandler"],"domId":["watchStateHandler"],"surveyDomId":["watchSurveyDomIdHandler"]}]]],["list-data.cjs",[[1,"list-data",{"template":[1],"inputType":[1,"input-type"],"itemsPerRow":[2,"items-per-row"],"items":[1040],"formSettings":[8,"form-settings"],"itemsPerPage":[2,"items-per-page"],"emptyMessage":[1,"empty-message"],"currentPage":[32],"showMoreState":[32],"showPanel":[32],"activeIndex":[32],"activeButton":[32],"activeButtonIndex":[32],"showImageOnMore":[32]}]]],["ai12z-carousel.cjs",[[1,"ai12z-carousel",{"items":[16],"inputType":[1,"input-type"],"itemsPerRow":[2,"items-per-row"],"activeIndex":[32],"activeButton":[32],"activeButtonIndex":[32]}]]],["ai12z-mic.cjs",[[1,"ai12z-mic",{"isListening":[1028,"is-listening"],"transcript":[32],"isRecording":[32]}]]],["ai12z-spinner.cjs",[[2,"ai12z-spinner",{"class":[1]}]]],["dynamic-form.cjs",[[1,"dynamic-form",{"form":[8],"formSettings":[1032,"form-settings"],"formsettings":[8],"theme":[8]}]]],["ai12z-bot_12.cjs",[[1,"ai12z-bot",{"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"configId":[513,"config-id"],"dataAttributes":[513,"data-attributes"],"excludeTags":[16],"includeTags":[16],"botSettings":[32],"isOpen":[32],"isListening":[32],"showSubmit":[32],"hideAllButtons":[32],"showMenu":[32],"botlogo":[32],"botAvatar":[32],"showWelcomeScreen":[32],"hideInput":[32],"showHistory":[32],"conversationId":[32],"surveyDomId":[32],"searchResults":[32],"buttons":[32],"currentDomId":[32],"messages":[32],"questionCounter":[32],"isChatOpen":[32],"visitorID":[32],"timestamp":[32],"rowCount":[32],"isBot":[32],"conversationHistory":[32],"isMenuOpen":[32],"query":[32],"scriptArray":[32],"isAnimated":[32],"isMinimized":[32],"isOpened":[32],"isContent":[32],"isExpanded":[32],"isToggled":[32],"showTextarea":[32],"showPrivacy":[32],"sendMessage":[64],"sendQuery":[64],"sendJSON":[64],"openBot":[64],"action":[64]},[[0,"buttonClick","buttonClickHandler"],[0,"sendQueryToBot","sendQueryToBotHandler"],[0,"deleteChatHistory","deleteChatHistoryHandler"],[0,"chatClick","chatClickHandler"],[0,"openChat","openChatHandler"],[0,"formComplete","formSubmittedHandler"],[0,"keydown","handleKeyDown"]],{"currentDomId":["watchStateHandler"],"surveyDomId":["watchSurveyDomIdHandler"]}],[1,"ai12z-cta",{"isCta":[1028,"is-cta"],"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"configId":[513,"config-id"],"dataAttributes":[1,"data-attributes"],"excludeTags":[16],"includeTags":[16],"socketService":[32],"ctaSettings":[32],"showModal":[32],"timer":[32],"questionCounter":[32],"formData":[32],"searchResults":[32],"error":[32],"conversationId":[32],"canRender":[32],"chatHistory":[32],"isChat":[32],"aiMessageId":[32],"thumbsId":[32],"imgFiles":[32],"openModal":[64],"sendMessage":[64],"sendJSON":[64],"closeModal":[64]},[[4,"keydown","handleKeyDown"],[4,"survey","surveyHandler"],[0,"formComplete","formSubmittedHandler"]]],[1,"ai12z-search-panel",{"dataKey":[1,"data-key"],"dataMode":[1,"data-mode"],"categorize":[4],"placeholder":[1],"redirectUrl":[1,"redirect-url"],"query":[32],"searchResults":[32],"hideAllButtons":[32]}],[1,"bot-popover",{"popoverConfig":[8,"popover-config"],"isBack":[32],"isVisible":[32]}],[1,"chatbot-history",{"chatList":[16],"botName":[1,"bot-name"],"chatlogo":[1],"heading":[1]}],[1,"chatbot-welcome",{"buttonsList":[16],"welcomeMessage":[1,"welcome-message"],"welcomelogo":[1]}],[1,"privacy-modal",{"message":[1],"show":[4]}],[1,"ai12z-input-form",{"isChat":[4,"is-chat"],"placeholder":[1],"buttonText":[1,"button-text"],"followUpLabel":[1,"follow-up-label"],"iconSrc":[1,"icon-src"],"isImageUpload":[4,"is-image-upload"],"isEnableMic":[4,"is-enable-mic"],"componentType":[1,"component-type"],"searchInput":[32],"submitted":[32],"showErrorMessage":[32],"hideAllButtons":[32],"isOpen":[32],"capturedFile":[32]},[[4,"stateChanged","stateChangedHandler"],[4,"clearInput","clearInputHandler"]]],[1,"ai12z-chat",{"chatId":[1,"chat-id"],"chats":[1032],"query":[1025],"apiKey":[1,"api-key"],"aiMessageId":[1,"ai-message-id"],"imgFiles":[1032,"img-files"],"env":[1025],"conversationId":[1025,"conversation-id"],"dataAttributes":[8,"data-attributes"],"chatExcludeTags":[16],"chatIncludeTags":[16],"target":[1],"voiceType":[1,"voice-type"],"voice":[1],"componentType":[1,"component-type"],"chatPosition":[1,"chat-position"],"socketIn":[8,"socket-in"],"scrollBottom":[32],"copied":[32],"isPlayed":[32],"buttons":[32],"itemList":[32],"currentChatData":[32],"currentTemplate":[32],"currentPage":[32],"currentResponse":[32],"currentSlide":[32],"scriptArray":[32]},[[8,"streamResponse","streamResponseHandler"],[8,"endResponse","endResponseHandler"],[0,"buttonClick","buttonClickHandler"],[4,"stopStream","stopStreamInputHandler"],[4,"startStream","startStreamInputHandler"]],{"chats":["watchHandler"]}],[1,"ai12z-category",{"categoryList":[520,"category-list"],"linkTarget":[513,"link-target"]},[[4,"clearResults","clearResultsHandler"]]],[1,"audio-recorder",{"componentType":[1,"component-type"],"isRecording":[32],"time":[32],"transcript":[32],"fullTranscript":[32]}],[1,"item-list",{"inputType":[1,"input-type"],"carouselType":[1,"carousel-type"],"customTemplate":[16],"customSource":[8,"custom-source"],"currentPage":[32],"htmlTemplate":[32],"currentIndex":[32],"formSettings":[32],"itemsPerPage":[32],"emptyMessage":[32],"buttonText":[32],"panelTemplate":[32],"panelIndex":[32],"panelName":[32],"items":[32],"theme":[32],"selectByIndex":[64],"selectByName":[64]}]]]], options);
43
+ return index.bootstrapLazy([["ai12z-inline-search.cjs",[[1,"ai12z-inline-search",{"dataMode":[1,"data-mode"],"dataKey":[1,"data-key"],"resultPosition":[1,"result-position"],"autoSearch":[4,"auto-search"],"categorize":[4],"formData":[32],"conversationHistory":[32],"searchResults":[32],"isOpen":[32]},[[4,"survey","surveyHandler"]]]]],["search-results-page.cjs",[[1,"search-results-page",{"dataKey":[1,"data-key"],"dataMode":[1,"data-mode"],"placeholder":[1],"categorize":[4],"loadResults":[4,"load-results"],"query":[32],"searchResults":[32],"hideAllButtons":[32],"isChat":[32],"chatHistory":[32],"aiMessageId":[32],"socketService":[32],"thumbsId":[32],"isOpen":[32],"capturedFile":[32],"imgFiles":[32],"displayText":[32]},[[4,"survey","surveyHandler"]]]]],["ai12z-knowledge-box.cjs",[[1,"ai12z-knowledge-box",{"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"question":[1537],"relavanceScore":[4,"relavance-score"],"feedback":[4],"socket":[1032],"isLoading":[1028,"is-loading"],"questionId":[32],"searchResults":[32],"items":[32],"error":[32],"domId":[32],"surveyDomId":[32],"buttons":[32]},null,{"question":["watchPropHandler"],"domId":["watchStateHandler"],"surveyDomId":["watchSurveyDomIdHandler"]}]]],["list-data.cjs",[[1,"list-data",{"template":[1],"inputType":[1,"input-type"],"itemsPerRow":[2,"items-per-row"],"items":[1040],"formSettings":[8,"form-settings"],"itemsPerPage":[2,"items-per-page"],"emptyMessage":[1,"empty-message"],"currentPage":[32],"showMoreState":[32],"showPanel":[32],"activeIndex":[32],"activeButton":[32],"activeButtonIndex":[32],"showImageOnMore":[32]}]]],["ai12z-carousel.cjs",[[1,"ai12z-carousel",{"items":[16],"inputType":[1,"input-type"],"itemsPerRow":[2,"items-per-row"],"activeIndex":[32],"activeButton":[32],"activeButtonIndex":[32]}]]],["ai12z-mic.cjs",[[1,"ai12z-mic",{"isListening":[1028,"is-listening"],"transcript":[32],"isRecording":[32]}]]],["ai12z-spinner.cjs",[[2,"ai12z-spinner",{"class":[1]}]]],["dynamic-form.cjs",[[1,"dynamic-form",{"form":[8],"formSettings":[1032,"form-settings"],"formsettings":[8],"theme":[8]}]]],["ai12z-bot_12.cjs",[[1,"ai12z-bot",{"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"configId":[513,"config-id"],"dataAttributes":[513,"data-attributes"],"excludeTags":[16],"includeTags":[16],"botSettings":[32],"canRender":[32],"isOpen":[32],"isListening":[32],"showSubmit":[32],"hideAllButtons":[32],"showMenu":[32],"botlogo":[32],"botAvatar":[32],"showWelcomeScreen":[32],"hideInput":[32],"showHistory":[32],"conversationId":[32],"surveyDomId":[32],"searchResults":[32],"buttons":[32],"currentDomId":[32],"messages":[32],"questionCounter":[32],"isChatOpen":[32],"visitorID":[32],"timestamp":[32],"rowCount":[32],"isBot":[32],"conversationHistory":[32],"isMenuOpen":[32],"query":[32],"scriptArray":[32],"isAnimated":[32],"isMinimized":[32],"isOpened":[32],"isContent":[32],"isExpanded":[32],"isToggled":[32],"showTextarea":[32],"showPrivacy":[32],"sendMessage":[64],"sendQuery":[64],"sendJSON":[64],"openBot":[64],"action":[64]},[[0,"buttonClick","buttonClickHandler"],[0,"sendQueryToBot","sendQueryToBotHandler"],[0,"deleteChatHistory","deleteChatHistoryHandler"],[0,"chatClick","chatClickHandler"],[0,"openChat","openChatHandler"],[0,"formComplete","formSubmittedHandler"],[0,"keydown","handleKeyDown"]],{"currentDomId":["watchStateHandler"],"surveyDomId":["watchSurveyDomIdHandler"]}],[1,"ai12z-cta",{"isCta":[1028,"is-cta"],"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"configId":[513,"config-id"],"dataAttributes":[1,"data-attributes"],"excludeTags":[16],"includeTags":[16],"socketService":[32],"ctaSettings":[32],"showModal":[32],"timer":[32],"questionCounter":[32],"formData":[32],"searchResults":[32],"error":[32],"conversationId":[32],"canRender":[32],"chatHistory":[32],"isChat":[32],"aiMessageId":[32],"thumbsId":[32],"imgFiles":[32],"openModal":[64],"sendMessage":[64],"sendJSON":[64],"closeModal":[64]},[[4,"keydown","handleKeyDown"],[4,"survey","surveyHandler"],[0,"formComplete","formSubmittedHandler"]]],[1,"ai12z-search-panel",{"dataKey":[1,"data-key"],"dataMode":[1,"data-mode"],"categorize":[4],"placeholder":[1],"redirectUrl":[1,"redirect-url"],"query":[32],"searchResults":[32],"hideAllButtons":[32]}],[1,"bot-popover",{"popoverConfig":[8,"popover-config"],"isBack":[32],"isVisible":[32]}],[1,"chatbot-history",{"chatList":[16],"botName":[1,"bot-name"],"chatlogo":[1],"heading":[1]}],[1,"chatbot-welcome",{"buttonsList":[16],"welcomeMessage":[1,"welcome-message"],"welcomelogo":[1]}],[1,"privacy-modal",{"message":[1],"show":[4]}],[1,"ai12z-input-form",{"isChat":[4,"is-chat"],"placeholder":[1],"buttonText":[1,"button-text"],"followUpLabel":[1,"follow-up-label"],"iconSrc":[1,"icon-src"],"isImageUpload":[4,"is-image-upload"],"isEnableMic":[4,"is-enable-mic"],"componentType":[1,"component-type"],"searchInput":[32],"submitted":[32],"showErrorMessage":[32],"hideAllButtons":[32],"isOpen":[32],"capturedFile":[32]},[[4,"stateChanged","stateChangedHandler"],[4,"clearInput","clearInputHandler"]]],[1,"ai12z-chat",{"chatId":[1,"chat-id"],"chats":[1032],"query":[1025],"apiKey":[1,"api-key"],"aiMessageId":[1,"ai-message-id"],"imgFiles":[1032,"img-files"],"env":[1025],"conversationId":[1025,"conversation-id"],"dataAttributes":[8,"data-attributes"],"chatExcludeTags":[16],"chatIncludeTags":[16],"target":[1],"voiceType":[1,"voice-type"],"voice":[1],"componentType":[1,"component-type"],"chatPosition":[1,"chat-position"],"socketIn":[8,"socket-in"],"scrollBottom":[32],"copied":[32],"isPlayed":[32],"buttons":[32],"itemList":[32],"currentChatData":[32],"currentTemplate":[32],"currentPage":[32],"currentResponse":[32],"currentSlide":[32],"scriptArray":[32]},[[8,"streamResponse","streamResponseHandler"],[8,"endResponse","endResponseHandler"],[0,"buttonClick","buttonClickHandler"],[4,"stopStream","stopStreamInputHandler"],[4,"startStream","startStreamInputHandler"]],{"chats":["watchHandler"]}],[1,"ai12z-category",{"categoryList":[520,"category-list"],"linkTarget":[513,"link-target"]},[[4,"clearResults","clearResultsHandler"]]],[1,"audio-recorder",{"componentType":[1,"component-type"],"isRecording":[32],"time":[32],"transcript":[32],"fullTranscript":[32]}],[1,"item-list",{"inputType":[1,"input-type"],"carouselType":[1,"carousel-type"],"customTemplate":[16],"customSource":[8,"custom-source"],"currentPage":[32],"htmlTemplate":[32],"currentIndex":[32],"formSettings":[32],"itemsPerPage":[32],"emptyMessage":[32],"buttonText":[32],"panelTemplate":[32],"panelIndex":[32],"panelName":[32],"items":[32],"theme":[32],"selectByIndex":[64],"selectByName":[64]}]]]], options);
44
44
  });
45
45
 
46
46
  exports.setNonce = index.setNonce;
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["ai12z-inline-search.cjs",[[1,"ai12z-inline-search",{"dataMode":[1,"data-mode"],"dataKey":[1,"data-key"],"resultPosition":[1,"result-position"],"autoSearch":[4,"auto-search"],"categorize":[4],"formData":[32],"conversationHistory":[32],"searchResults":[32],"isOpen":[32]},[[4,"survey","surveyHandler"]]]]],["search-results-page.cjs",[[1,"search-results-page",{"dataKey":[1,"data-key"],"dataMode":[1,"data-mode"],"placeholder":[1],"categorize":[4],"loadResults":[4,"load-results"],"query":[32],"searchResults":[32],"hideAllButtons":[32],"isChat":[32],"chatHistory":[32],"aiMessageId":[32],"socketService":[32],"thumbsId":[32],"isOpen":[32],"capturedFile":[32],"imgFiles":[32],"displayText":[32]},[[4,"survey","surveyHandler"]]]]],["ai12z-knowledge-box.cjs",[[1,"ai12z-knowledge-box",{"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"question":[1537],"relavanceScore":[4,"relavance-score"],"feedback":[4],"socket":[1032],"isLoading":[1028,"is-loading"],"questionId":[32],"searchResults":[32],"items":[32],"error":[32],"domId":[32],"surveyDomId":[32],"buttons":[32]},null,{"question":["watchPropHandler"],"domId":["watchStateHandler"],"surveyDomId":["watchSurveyDomIdHandler"]}]]],["list-data.cjs",[[1,"list-data",{"template":[1],"inputType":[1,"input-type"],"itemsPerRow":[2,"items-per-row"],"items":[1040],"formSettings":[8,"form-settings"],"itemsPerPage":[2,"items-per-page"],"emptyMessage":[1,"empty-message"],"currentPage":[32],"showMoreState":[32],"showPanel":[32],"activeIndex":[32],"activeButton":[32],"activeButtonIndex":[32],"showImageOnMore":[32]}]]],["ai12z-carousel.cjs",[[1,"ai12z-carousel",{"items":[16],"inputType":[1,"input-type"],"itemsPerRow":[2,"items-per-row"],"activeIndex":[32],"activeButton":[32],"activeButtonIndex":[32]}]]],["ai12z-mic.cjs",[[1,"ai12z-mic",{"isListening":[1028,"is-listening"],"transcript":[32],"isRecording":[32]}]]],["ai12z-spinner.cjs",[[2,"ai12z-spinner",{"class":[1]}]]],["dynamic-form.cjs",[[1,"dynamic-form",{"form":[8],"formSettings":[1032,"form-settings"],"formsettings":[8],"theme":[8]}]]],["ai12z-bot_12.cjs",[[1,"ai12z-bot",{"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"configId":[513,"config-id"],"dataAttributes":[513,"data-attributes"],"excludeTags":[16],"includeTags":[16],"botSettings":[32],"isOpen":[32],"isListening":[32],"showSubmit":[32],"hideAllButtons":[32],"showMenu":[32],"botlogo":[32],"botAvatar":[32],"showWelcomeScreen":[32],"hideInput":[32],"showHistory":[32],"conversationId":[32],"surveyDomId":[32],"searchResults":[32],"buttons":[32],"currentDomId":[32],"messages":[32],"questionCounter":[32],"isChatOpen":[32],"visitorID":[32],"timestamp":[32],"rowCount":[32],"isBot":[32],"conversationHistory":[32],"isMenuOpen":[32],"query":[32],"scriptArray":[32],"isAnimated":[32],"isMinimized":[32],"isOpened":[32],"isContent":[32],"isExpanded":[32],"isToggled":[32],"showTextarea":[32],"showPrivacy":[32],"sendMessage":[64],"sendQuery":[64],"sendJSON":[64],"openBot":[64],"action":[64]},[[0,"buttonClick","buttonClickHandler"],[0,"sendQueryToBot","sendQueryToBotHandler"],[0,"deleteChatHistory","deleteChatHistoryHandler"],[0,"chatClick","chatClickHandler"],[0,"openChat","openChatHandler"],[0,"formComplete","formSubmittedHandler"],[0,"keydown","handleKeyDown"]],{"currentDomId":["watchStateHandler"],"surveyDomId":["watchSurveyDomIdHandler"]}],[1,"ai12z-cta",{"isCta":[1028,"is-cta"],"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"configId":[513,"config-id"],"dataAttributes":[1,"data-attributes"],"excludeTags":[16],"includeTags":[16],"socketService":[32],"ctaSettings":[32],"showModal":[32],"timer":[32],"questionCounter":[32],"formData":[32],"searchResults":[32],"error":[32],"conversationId":[32],"canRender":[32],"chatHistory":[32],"isChat":[32],"aiMessageId":[32],"thumbsId":[32],"imgFiles":[32],"openModal":[64],"sendMessage":[64],"sendJSON":[64],"closeModal":[64]},[[4,"keydown","handleKeyDown"],[4,"survey","surveyHandler"],[0,"formComplete","formSubmittedHandler"]]],[1,"ai12z-search-panel",{"dataKey":[1,"data-key"],"dataMode":[1,"data-mode"],"categorize":[4],"placeholder":[1],"redirectUrl":[1,"redirect-url"],"query":[32],"searchResults":[32],"hideAllButtons":[32]}],[1,"bot-popover",{"popoverConfig":[8,"popover-config"],"isBack":[32],"isVisible":[32]}],[1,"chatbot-history",{"chatList":[16],"botName":[1,"bot-name"],"chatlogo":[1],"heading":[1]}],[1,"chatbot-welcome",{"buttonsList":[16],"welcomeMessage":[1,"welcome-message"],"welcomelogo":[1]}],[1,"privacy-modal",{"message":[1],"show":[4]}],[1,"ai12z-input-form",{"isChat":[4,"is-chat"],"placeholder":[1],"buttonText":[1,"button-text"],"followUpLabel":[1,"follow-up-label"],"iconSrc":[1,"icon-src"],"isImageUpload":[4,"is-image-upload"],"isEnableMic":[4,"is-enable-mic"],"componentType":[1,"component-type"],"searchInput":[32],"submitted":[32],"showErrorMessage":[32],"hideAllButtons":[32],"isOpen":[32],"capturedFile":[32]},[[4,"stateChanged","stateChangedHandler"],[4,"clearInput","clearInputHandler"]]],[1,"ai12z-chat",{"chatId":[1,"chat-id"],"chats":[1032],"query":[1025],"apiKey":[1,"api-key"],"aiMessageId":[1,"ai-message-id"],"imgFiles":[1032,"img-files"],"env":[1025],"conversationId":[1025,"conversation-id"],"dataAttributes":[8,"data-attributes"],"chatExcludeTags":[16],"chatIncludeTags":[16],"target":[1],"voiceType":[1,"voice-type"],"voice":[1],"componentType":[1,"component-type"],"chatPosition":[1,"chat-position"],"socketIn":[8,"socket-in"],"scrollBottom":[32],"copied":[32],"isPlayed":[32],"buttons":[32],"itemList":[32],"currentChatData":[32],"currentTemplate":[32],"currentPage":[32],"currentResponse":[32],"currentSlide":[32],"scriptArray":[32]},[[8,"streamResponse","streamResponseHandler"],[8,"endResponse","endResponseHandler"],[0,"buttonClick","buttonClickHandler"],[4,"stopStream","stopStreamInputHandler"],[4,"startStream","startStreamInputHandler"]],{"chats":["watchHandler"]}],[1,"ai12z-category",{"categoryList":[520,"category-list"],"linkTarget":[513,"link-target"]},[[4,"clearResults","clearResultsHandler"]]],[1,"audio-recorder",{"componentType":[1,"component-type"],"isRecording":[32],"time":[32],"transcript":[32],"fullTranscript":[32]}],[1,"item-list",{"inputType":[1,"input-type"],"carouselType":[1,"carousel-type"],"customTemplate":[16],"customSource":[8,"custom-source"],"currentPage":[32],"htmlTemplate":[32],"currentIndex":[32],"formSettings":[32],"itemsPerPage":[32],"emptyMessage":[32],"buttonText":[32],"panelTemplate":[32],"panelIndex":[32],"panelName":[32],"items":[32],"theme":[32],"selectByIndex":[64],"selectByName":[64]}]]]], options);
11
+ return index.bootstrapLazy([["ai12z-inline-search.cjs",[[1,"ai12z-inline-search",{"dataMode":[1,"data-mode"],"dataKey":[1,"data-key"],"resultPosition":[1,"result-position"],"autoSearch":[4,"auto-search"],"categorize":[4],"formData":[32],"conversationHistory":[32],"searchResults":[32],"isOpen":[32]},[[4,"survey","surveyHandler"]]]]],["search-results-page.cjs",[[1,"search-results-page",{"dataKey":[1,"data-key"],"dataMode":[1,"data-mode"],"placeholder":[1],"categorize":[4],"loadResults":[4,"load-results"],"query":[32],"searchResults":[32],"hideAllButtons":[32],"isChat":[32],"chatHistory":[32],"aiMessageId":[32],"socketService":[32],"thumbsId":[32],"isOpen":[32],"capturedFile":[32],"imgFiles":[32],"displayText":[32]},[[4,"survey","surveyHandler"]]]]],["ai12z-knowledge-box.cjs",[[1,"ai12z-knowledge-box",{"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"question":[1537],"relavanceScore":[4,"relavance-score"],"feedback":[4],"socket":[1032],"isLoading":[1028,"is-loading"],"questionId":[32],"searchResults":[32],"items":[32],"error":[32],"domId":[32],"surveyDomId":[32],"buttons":[32]},null,{"question":["watchPropHandler"],"domId":["watchStateHandler"],"surveyDomId":["watchSurveyDomIdHandler"]}]]],["list-data.cjs",[[1,"list-data",{"template":[1],"inputType":[1,"input-type"],"itemsPerRow":[2,"items-per-row"],"items":[1040],"formSettings":[8,"form-settings"],"itemsPerPage":[2,"items-per-page"],"emptyMessage":[1,"empty-message"],"currentPage":[32],"showMoreState":[32],"showPanel":[32],"activeIndex":[32],"activeButton":[32],"activeButtonIndex":[32],"showImageOnMore":[32]}]]],["ai12z-carousel.cjs",[[1,"ai12z-carousel",{"items":[16],"inputType":[1,"input-type"],"itemsPerRow":[2,"items-per-row"],"activeIndex":[32],"activeButton":[32],"activeButtonIndex":[32]}]]],["ai12z-mic.cjs",[[1,"ai12z-mic",{"isListening":[1028,"is-listening"],"transcript":[32],"isRecording":[32]}]]],["ai12z-spinner.cjs",[[2,"ai12z-spinner",{"class":[1]}]]],["dynamic-form.cjs",[[1,"dynamic-form",{"form":[8],"formSettings":[1032,"form-settings"],"formsettings":[8],"theme":[8]}]]],["ai12z-bot_12.cjs",[[1,"ai12z-bot",{"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"configId":[513,"config-id"],"dataAttributes":[513,"data-attributes"],"excludeTags":[16],"includeTags":[16],"botSettings":[32],"canRender":[32],"isOpen":[32],"isListening":[32],"showSubmit":[32],"hideAllButtons":[32],"showMenu":[32],"botlogo":[32],"botAvatar":[32],"showWelcomeScreen":[32],"hideInput":[32],"showHistory":[32],"conversationId":[32],"surveyDomId":[32],"searchResults":[32],"buttons":[32],"currentDomId":[32],"messages":[32],"questionCounter":[32],"isChatOpen":[32],"visitorID":[32],"timestamp":[32],"rowCount":[32],"isBot":[32],"conversationHistory":[32],"isMenuOpen":[32],"query":[32],"scriptArray":[32],"isAnimated":[32],"isMinimized":[32],"isOpened":[32],"isContent":[32],"isExpanded":[32],"isToggled":[32],"showTextarea":[32],"showPrivacy":[32],"sendMessage":[64],"sendQuery":[64],"sendJSON":[64],"openBot":[64],"action":[64]},[[0,"buttonClick","buttonClickHandler"],[0,"sendQueryToBot","sendQueryToBotHandler"],[0,"deleteChatHistory","deleteChatHistoryHandler"],[0,"chatClick","chatClickHandler"],[0,"openChat","openChatHandler"],[0,"formComplete","formSubmittedHandler"],[0,"keydown","handleKeyDown"]],{"currentDomId":["watchStateHandler"],"surveyDomId":["watchSurveyDomIdHandler"]}],[1,"ai12z-cta",{"isCta":[1028,"is-cta"],"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"configId":[513,"config-id"],"dataAttributes":[1,"data-attributes"],"excludeTags":[16],"includeTags":[16],"socketService":[32],"ctaSettings":[32],"showModal":[32],"timer":[32],"questionCounter":[32],"formData":[32],"searchResults":[32],"error":[32],"conversationId":[32],"canRender":[32],"chatHistory":[32],"isChat":[32],"aiMessageId":[32],"thumbsId":[32],"imgFiles":[32],"openModal":[64],"sendMessage":[64],"sendJSON":[64],"closeModal":[64]},[[4,"keydown","handleKeyDown"],[4,"survey","surveyHandler"],[0,"formComplete","formSubmittedHandler"]]],[1,"ai12z-search-panel",{"dataKey":[1,"data-key"],"dataMode":[1,"data-mode"],"categorize":[4],"placeholder":[1],"redirectUrl":[1,"redirect-url"],"query":[32],"searchResults":[32],"hideAllButtons":[32]}],[1,"bot-popover",{"popoverConfig":[8,"popover-config"],"isBack":[32],"isVisible":[32]}],[1,"chatbot-history",{"chatList":[16],"botName":[1,"bot-name"],"chatlogo":[1],"heading":[1]}],[1,"chatbot-welcome",{"buttonsList":[16],"welcomeMessage":[1,"welcome-message"],"welcomelogo":[1]}],[1,"privacy-modal",{"message":[1],"show":[4]}],[1,"ai12z-input-form",{"isChat":[4,"is-chat"],"placeholder":[1],"buttonText":[1,"button-text"],"followUpLabel":[1,"follow-up-label"],"iconSrc":[1,"icon-src"],"isImageUpload":[4,"is-image-upload"],"isEnableMic":[4,"is-enable-mic"],"componentType":[1,"component-type"],"searchInput":[32],"submitted":[32],"showErrorMessage":[32],"hideAllButtons":[32],"isOpen":[32],"capturedFile":[32]},[[4,"stateChanged","stateChangedHandler"],[4,"clearInput","clearInputHandler"]]],[1,"ai12z-chat",{"chatId":[1,"chat-id"],"chats":[1032],"query":[1025],"apiKey":[1,"api-key"],"aiMessageId":[1,"ai-message-id"],"imgFiles":[1032,"img-files"],"env":[1025],"conversationId":[1025,"conversation-id"],"dataAttributes":[8,"data-attributes"],"chatExcludeTags":[16],"chatIncludeTags":[16],"target":[1],"voiceType":[1,"voice-type"],"voice":[1],"componentType":[1,"component-type"],"chatPosition":[1,"chat-position"],"socketIn":[8,"socket-in"],"scrollBottom":[32],"copied":[32],"isPlayed":[32],"buttons":[32],"itemList":[32],"currentChatData":[32],"currentTemplate":[32],"currentPage":[32],"currentResponse":[32],"currentSlide":[32],"scriptArray":[32]},[[8,"streamResponse","streamResponseHandler"],[8,"endResponse","endResponseHandler"],[0,"buttonClick","buttonClickHandler"],[4,"stopStream","stopStreamInputHandler"],[4,"startStream","startStreamInputHandler"]],{"chats":["watchHandler"]}],[1,"ai12z-category",{"categoryList":[520,"category-list"],"linkTarget":[513,"link-target"]},[[4,"clearResults","clearResultsHandler"]]],[1,"audio-recorder",{"componentType":[1,"component-type"],"isRecording":[32],"time":[32],"transcript":[32],"fullTranscript":[32]}],[1,"item-list",{"inputType":[1,"input-type"],"carouselType":[1,"carousel-type"],"customTemplate":[16],"customSource":[8,"custom-source"],"currentPage":[32],"htmlTemplate":[32],"currentIndex":[32],"formSettings":[32],"itemsPerPage":[32],"emptyMessage":[32],"buttonText":[32],"panelTemplate":[32],"panelIndex":[32],"panelName":[32],"items":[32],"theme":[32],"selectByIndex":[64],"selectByName":[64]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -1,7 +1,7 @@
1
- import { h, Env } from "@stencil/core";
1
+ import { h, Env, Host } from "@stencil/core";
2
2
  import { io } from "socket.io-client";
3
3
  import showdown from "showdown";
4
- import { getEndpoint, generateUUID, updateButtonEvents, getConfig, getOrCreateVisitorId, getComponentByControlType, splitContent, getMetaInfo } from "../../utils/utils";
4
+ import { getEndpoint, generateUUID, updateButtonEvents, getConfig, getOrCreateVisitorId, getComponentByControlType, splitContent, getMetaInfo, checkStatus, } from "../../utils/utils";
5
5
  import Handlebars from "handlebars";
6
6
  import { setBotElement } from "../../utils/global-store";
7
7
  // import $ from "jquery"
@@ -232,6 +232,7 @@ export class Ai12zBot {
232
232
  this.excludeTags = [];
233
233
  this.includeTags = [];
234
234
  this.botSettings = {};
235
+ this.canRender = true;
235
236
  this.isOpen = false;
236
237
  this.isListening = false;
237
238
  this.showSubmit = false;
@@ -437,6 +438,13 @@ export class Ai12zBot {
437
438
  }
438
439
  }
439
440
  connectedCallback() {
441
+ //this.parseMyObjectProp(this.myObject);
442
+ checkStatus(this.dataKey, this.dataMode).then(enable => {
443
+ this.canRender = enable;
444
+ // if (!enable) {
445
+ // console.log("ai12z canRender", this.canRender)
446
+ // }
447
+ });
440
448
  this.configBot();
441
449
  }
442
450
  componentWillLoad() {
@@ -458,7 +466,7 @@ export class Ai12zBot {
458
466
  if (!this.botSettings.botVersion) {
459
467
  this.botSettings.botVersion = "v1"; // Default to v1 if not specified
460
468
  }
461
- if (this.botSettings.botVersion === "v2" && !this.botSettings.isExpanded) {
469
+ if (this.botSettings.botVersion === "v2" && !this.botSettings.isExpanded && !this.isBot) {
462
470
  // this.botSettings.imageUpload = true
463
471
  this.isMinimized = true;
464
472
  }
@@ -483,6 +491,7 @@ export class Ai12zBot {
483
491
  for (var i = 0; i < slot.length; i++) {
484
492
  if (slot[i].tagName.toLowerCase() === "bot" || slot[i].getAttribute("slot") === "bot") {
485
493
  this.isBot = true;
494
+ this.isExpanded = false;
486
495
  }
487
496
  }
488
497
  }
@@ -1076,6 +1085,9 @@ export class Ai12zBot {
1076
1085
  width: (_b = (_a = this.botSettings) === null || _a === void 0 ? void 0 : _a.botWidth) !== null && _b !== void 0 ? _b : "35%",
1077
1086
  height: (_d = (_c = this.botSettings) === null || _c === void 0 ? void 0 : _c.botHeight) !== null && _d !== void 0 ? _d : "80%",
1078
1087
  };
1088
+ if (!this.canRender) {
1089
+ return (h(Host, null, h("span", { style: { display: "none" } }, "Failed to load ai12z bot control due to insufficient fund")));
1090
+ }
1079
1091
  return this.botSettings.botVersion === "v1" ? (h("div", null, h("div", { class: {
1080
1092
  "right": ((_f = this.botSettings) === null || _f === void 0 ? void 0 : _f.botPosition) === "right",
1081
1093
  "left": ((_g = this.botSettings) === null || _g === void 0 ? void 0 : _g.botPosition) === "left",
@@ -1235,15 +1247,18 @@ export class Ai12zBot {
1235
1247
  this.isContent = false;
1236
1248
  this.isOpened = true;
1237
1249
  this.isExpanded = true;
1238
- } }, h("div", { class: "font-bold text-body2 text-white hidden md:flex pl-3 items-center" }, "Return to AI", h("i", { class: "inline-block pl-3 ai-minimize-icon block wes-icon--loading text-body1", style: { color: " rgb(255, 255, 255)" } }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 16", fill: "none" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.30775 9.15362H14.077C14.4231 9.15362 14.577 9.5767 14.3462 9.80747L10.6539 13.4998C10.4231 13.7305 10.4231 14.0767 10.6539 14.3075L11.5001 15.1536C11.7308 15.3844 12.077 15.3844 12.3077 15.1536L19.0385 8.38439C19.2693 8.15362 19.2693 7.80747 19.0385 7.5767L12.3077 0.845928C12.077 0.615159 11.7308 0.615159 11.5001 0.845928L10.6924 1.65362C10.4616 1.88439 10.4616 2.23054 10.6924 2.46131L14.3847 6.15362C14.6154 6.42285 14.4616 6.84593 14.1154 6.84593H1.34621C1.03852 6.84593 0.769287 7.0767 0.769287 7.38439V8.53824C0.769287 8.84593 1.00006 9.15362 1.30775 9.15362Z", fill: "white" })))))), this.isExpanded && !this.isOpened && h("privacy-modal", { show: this.showPrivacy, message: this.botSettings.privacyTemplate })))), h("div", { slot: "bot", class: "fab pointer-events-auto fixed right-7 whitespace-nowrap transition-transform duration-300 ease-in-out", style: {
1250
+ } }, h("div", { class: "font-bold text-body2 text-white hidden md:flex pl-3 items-center" }, "Return to AI", h("i", { class: "inline-block pl-3 ai-minimize-icon block wes-icon--loading text-body1", style: { color: " rgb(255, 255, 255)" } }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 16", fill: "none" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.30775 9.15362H14.077C14.4231 9.15362 14.577 9.5767 14.3462 9.80747L10.6539 13.4998C10.4231 13.7305 10.4231 14.0767 10.6539 14.3075L11.5001 15.1536C11.7308 15.3844 12.077 15.3844 12.3077 15.1536L19.0385 8.38439C19.2693 8.15362 19.2693 7.80747 19.0385 7.5767L12.3077 0.845928C12.077 0.615159 11.7308 0.615159 11.5001 0.845928L10.6924 1.65362C10.4616 1.88439 10.4616 2.23054 10.6924 2.46131L14.3847 6.15362C14.6154 6.42285 14.4616 6.84593 14.1154 6.84593H1.34621C1.03852 6.84593 0.769287 7.0767 0.769287 7.38439V8.53824C0.769287 8.84593 1.00006 9.15362 1.30775 9.15362Z", fill: "white" })))))), this.isExpanded && !this.isOpened && h("privacy-modal", { show: this.showPrivacy, message: this.botSettings.privacyTemplate })))), h("div", {
1251
+ // slot="bot"
1252
+ class: "fab pointer-events-auto fixed right-7 whitespace-nowrap transition-transform duration-300 ease-in-out", style: {
1239
1253
  opacity: this.isMinimized ? "1" : "0",
1240
1254
  transform: this.isMinimized ? "translateX(0)" : "translateX(-100%)",
1241
1255
  pointerEvents: this.isMinimized ? "auto" : "none",
1242
1256
  transformOrigin: "50% 50% 0px",
1243
- } }, h("button", { class: "rounded-full flex cursor-pointer items-center pr-[14px] md:gap-x-3 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-blue-focused", tabindex: "0", onClick: () => {
1257
+ }, onClick: () => {
1244
1258
  this.openChat();
1245
- } }, h("div", { class: "w-10 h-10 flex items-center justify-center bg-white rounded-full border relative" }, this.botSettings.botLaunchIcon && h("img", { src: this.botSettings.botLaunchIcon, alt: "bot icon", class: "w-8 h-8 rounded-lg" }), !this.botSettings.botLaunchIcon && (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", stroke: "#2095ae" }, h("g", { "stroke-width": "0" }), h("g", { "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", null, " ", h("path", { d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", stroke: "#2095ae", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), " ")))), h("span", { class: "font-medium text-white" }, "Ask ", (_23 = this.botSettings) === null || _23 === void 0 ? void 0 :
1246
- _23.botName)))));
1259
+ }
1260
+ }, this.isBot && h("slot", { name: "bot" }), !this.isBot && (h("button", { class: "rounded-full flex cursor-pointer items-center pr-[14px] md:gap-x-3 focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-blue-focused", tabindex: "0" }, h("div", { class: "w-10 h-10 flex items-center justify-center bg-white rounded-full border relative" }, this.botSettings.botLaunchIcon && h("img", { src: this.botSettings.botLaunchIcon, alt: "bot icon", class: "w-8 h-8 rounded-lg" }), !this.botSettings.botLaunchIcon && (h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", stroke: "#2095ae" }, h("g", { "stroke-width": "0" }), h("g", { "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", null, " ", h("path", { d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", stroke: "#2095ae", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }), " ")))), h("span", { class: "font-medium text-white" }, "Ask ", (_23 = this.botSettings) === null || _23 === void 0 ? void 0 :
1261
+ _23.botName))))));
1247
1262
  }
1248
1263
  static get is() { return "ai12z-bot"; }
1249
1264
  static get encapsulation() { return "shadow"; }
@@ -1376,6 +1391,7 @@ export class Ai12zBot {
1376
1391
  static get states() {
1377
1392
  return {
1378
1393
  "botSettings": {},
1394
+ "canRender": {},
1379
1395
  "isOpen": {},
1380
1396
  "isListening": {},
1381
1397
  "showSubmit": {},