ai12z 3.15.1-alpha.2 → 3.15.1-alpha.4

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 (33) hide show
  1. package/dist/cjs/ai12z-bot.cjs.entry.js +1 -3
  2. package/dist/cjs/ai12z-cta.cjs.entry.js +1 -3
  3. package/dist/cjs/library.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/search-results-page.cjs.entry.js +12 -10
  6. package/dist/collection/components/ai12z-bot/ai12z-bot.js +1 -3
  7. package/dist/collection/components/ai12z-cta/ai12z-cta.js +1 -3
  8. package/dist/collection/components/ai12z-search-panel/search-results-view.js +58 -10
  9. package/dist/components/ai12z-bot.js +1 -1
  10. package/dist/components/ai12z-cta.js +1 -1
  11. package/dist/components/index.js +1 -1
  12. package/dist/components/p-C81g_cTG.js +1 -0
  13. package/dist/components/p-T7hfVn0q.js +1 -0
  14. package/dist/components/p-c9R9wdZM.js +1 -0
  15. package/dist/components/search-results-page.js +1 -1
  16. package/dist/esm/ai12z-bot.entry.js +1 -3
  17. package/dist/esm/ai12z-cta.entry.js +1 -3
  18. package/dist/esm/library.js +1 -1
  19. package/dist/esm/loader.js +1 -1
  20. package/dist/esm/search-results-page.entry.js +12 -10
  21. package/dist/library/library.esm.js +1 -1
  22. package/dist/library/p-0064ee30.entry.js +1 -0
  23. package/dist/library/p-1b526a0b.entry.js +1 -0
  24. package/dist/library/p-35d4d829.entry.js +1 -0
  25. package/dist/types/components/ai12z-search-panel/search-results-view.d.ts +2 -0
  26. package/dist/types/components.d.ts +16 -0
  27. package/package.json +2 -2
  28. package/dist/components/p-BuetJrTJ.js +0 -1
  29. package/dist/components/p-DFbjYQGk.js +0 -1
  30. package/dist/components/p-JjsXw6fP.js +0 -1
  31. package/dist/library/p-9f22fc60.entry.js +0 -1
  32. package/dist/library/p-c358d136.entry.js +0 -1
  33. package/dist/library/p-f769df2f.entry.js +0 -1
@@ -1653,9 +1653,7 @@ const Ai12zBot = class {
1653
1653
  this.botSettings = Object.assign(Object.assign({}, this.botSettings), settings);
1654
1654
  }
1655
1655
  async componentWillLoad() {
1656
- utils.checkStatus(this.dataKey, this.dataMode).then(enable => {
1657
- this.canRender = enable;
1658
- });
1656
+ this.canRender = await utils.checkStatus(this.dataKey, this.dataMode);
1659
1657
  this.checkCustomSlot();
1660
1658
  this.timestamp = utils.formatTimestamp(new Date());
1661
1659
  this.updateScreenSize();
@@ -333,9 +333,7 @@ const Ai12zCta = class {
333
333
  this.formSubmitted.emit(event.detail.data);
334
334
  }
335
335
  async componentWillLoad() {
336
- utils.checkStatus(this.dataKey, this.dataMode).then(enable => {
337
- this.canRender = enable;
338
- });
336
+ this.canRender = await utils.checkStatus(this.dataKey, this.dataMode);
339
337
  utils.insertStyles(`https://cdn.ai12z.net/assets/bot/v2/tailwind.min.css`, this.el);
340
338
  appStore.setParentComponentState("cta", this.dataKey, this.dataMode);
341
339
  await this.configCtaSettings();
@@ -45,7 +45,7 @@ var patchCloneNodeFix = (HTMLElementPrototype) => {
45
45
 
46
46
  patchBrowser().then(async (options) => {
47
47
  await index.globalScripts();
48
- return index.bootstrapLazy(JSON.parse("[[\"ai12z-knowledge-box.cjs\",[[257,\"ai12z-knowledge-box\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[1537,\"config-id\"],\"question\":[1537],\"socket\":[1032],\"isLoading\":[1028,\"is-loading\"],\"questionId\":[32],\"isInitialized\":[32],\"kbSettings\":[32],\"searchResults\":[32],\"items\":[32],\"error\":[32],\"domId\":[32],\"surveyDomId\":[32],\"buttons\":[32],\"currentStreamingText\":[32],\"isStreaming\":[32],\"finalResponse\":[32],\"scriptArray\":[32],\"showButton\":[32],\"welcomeReady\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},null,{\"question\":[{\"watchPropHandler\":0}],\"domId\":[{\"watchStateHandler\":0}]}]]],[\"dynamic-form.cjs\",[[0,\"dynamic-form\",{\"form\":[8],\"formSettings\":[1032,\"form-settings\"],\"formsettings\":[8],\"theme\":[8]}]]],[\"ai12z-spinner.cjs\",[[2,\"ai12z-spinner\",{\"class\":[1]}]]],[\"item-list.cjs\",[[0,\"item-list\",{\"inputType\":[1,\"input-type\"],\"carouselType\":[1,\"carousel-type\"],\"customTemplate\":[16],\"customSource\":[8,\"custom-source\"],\"llm\":[16],\"customStyles\":[1,\"custom-styles\"],\"customScripts\":[1,\"custom-scripts\"],\"isExpanded\":[4,\"is-expanded\"],\"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]}]]],[\"ai12z-container.cjs\",[[1,\"ai12z-container\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"instanceId\":[513,\"instance-id\"],\"parameters\":[513],\"renderType\":[1537,\"render-type\"],\"contentTemplate\":[513,\"content-template\"],\"isLoading\":[32],\"error\":[32],\"contentText\":[32],\"htmlWidgetMarkup\":[32],\"domId\":[32]},null,{\"parameters\":[{\"onParametersChanged\":0}],\"contentTemplate\":[{\"onContentTemplateChanged\":0}]}]]],[\"ai12z-form.cjs\",[[1,\"ai12z-form\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"isLoading\":[32],\"error\":[32],\"isReady\":[32],\"honeypotValue\":[32],\"loadDynamicForm\":[64]},null,{\"keyName\":[{\"watchLoadProps\":0}]}]]],[\"ai12z-chat-message.cjs\",[[1,\"ai12z-chat-message\",{\"text\":[1],\"streaming\":[4],\"kbSettings\":[8,\"kb-settings\"],\"showButton\":[4,\"show-button\"],\"isExpanded\":[32],\"isCollapsing\":[32],\"canExpand\":[32]},[[4,\"initializeScripts\",\"handleInitializeScripts\"]],{\"text\":[{\"onTextChange\":0}]}]]],[\"ai12z-category_2.cjs\",[[0,\"ai12z-category\",{\"categoryList\":[520,\"category-list\"],\"linkTarget\":[513,\"link-target\"]},[[4,\"clearResults\",\"clearResultsHandler\"]]],[0,\"audio-recorder\",{\"componentType\":[1,\"component-type\"],\"dataKey\":[32],\"dataMode\":[32],\"isRecording\":[32],\"isProcessing\":[32],\"time\":[32],\"transcript\":[32],\"fullTranscript\":[32],\"isSpeechRecognitionSupported\":[32],\"userCountry\":[32]}]]],[\"ai12z-chat_2.cjs\",[[0,\"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\"],\"chatLength\":[2,\"chat-length\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"imagesBase64List\":[32],\"showShortcutsDialog\":[32],\"shortcuts\":[32],\"searchInput\":[32],\"submitted\":[32],\"showErrorMessage\":[32],\"hideAllButtons\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32]},[[4,\"stateChanged\",\"stateChangedHandler\"],[4,\"clearInput\",\"clearInputHandler\"]]],[1,\"ai12z-chat\",{\"chatId\":[1,\"chat-id\"],\"chats\":[1032],\"query\":[1025],\"apiKey\":[1,\"api-key\"],\"aiMessageId\":[1025,\"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\":[16],\"customstyle\":[1],\"customJS\":[1,\"custom-j-s\"],\"avatarUrl\":[1,\"avatar-url\"],\"settings\":[8],\"scrollBottom\":[32],\"copied\":[32],\"isPlayed\":[32],\"buttons\":[32],\"itemList\":[32],\"currentChatData\":[32],\"currentTemplate\":[32],\"currentPage\":[32],\"currentResponse\":[32],\"currentSlide\":[32],\"scriptArray\":[32],\"isProse\":[32],\"isProcessingEndResponse\":[32],\"surveyDomId\":[32],\"focusedIndex\":[32],\"hydrateMessagesFromState\":[64]},[[8,\"streamResponse\",\"streamResponseHandler\"],[8,\"endResponse\",\"endResponseHandler\"],[0,\"buttonClick\",\"buttonClickHandler\"],[4,\"stopStream\",\"stopStreamInputHandler\"],[4,\"startStream\",\"startStreamInputHandler\"]],{\"chats\":[{\"watchHandler\":0}]}]]],[\"ai12z-inline-search.cjs\",[[1,\"ai12z-inline-search\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"resultPosition\":[1,\"result-position\"],\"autoSearch\":[4,\"auto-search\"],\"categorize\":[4],\"settings\":[16],\"formData\":[32],\"conversationHistory\":[32],\"searchResults\":[32],\"isOpen\":[32]},[[4,\"survey\",\"surveyHandler\"]]]]],[\"search-results-page.cjs\",[[1,\"search-results-page\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"dataAttributes\":[1,\"data-attributes\"],\"configId\":[1,\"config-id\"],\"query\":[32],\"searchResultSettings\":[32],\"searchResults\":[32],\"hideAllButtons\":[32],\"isChat\":[32],\"chatHistory\":[32],\"aiMessageId\":[32],\"socketService\":[32],\"thumbsId\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"imgFiles\":[32],\"displayText\":[32],\"showWelcomeTemplate\":[32],\"timer\":[32],\"questionCounter\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32],\"isRendered\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},[[4,\"messageReceived\",\"messageReceivedHandler\"],[4,\"survey\",\"surveyHandler\"]]]]],[\"chatbot-history_2.cjs\",[[1,\"chatbot-history\",{\"chatList\":[16],\"botName\":[1,\"bot-name\"],\"chatlogo\":[1],\"heading\":[1],\"styles\":[1],\"scripts\":[1],\"showDeleteModal\":[32],\"chatToDelete\":[32],\"activeId\":[32],\"focusedIndex\":[32]}],[1,\"delete-confirmation-modal\",{\"show\":[4],\"dialogTitle\":[1,\"dialog-title\"],\"message\":[1],\"confirmButtonText\":[1,\"confirm-button-text\"],\"cancelButtonText\":[1,\"cancel-button-text\"]}]]],[\"ai12z-cta.cjs\",[[257,\"ai12z-cta\",{\"isCta\":[1028,\"is-cta\"],\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[513,\"data-attributes\"],\"options\":[16],\"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],\"announceMessage\":[32],\"showHistory\":[32],\"conversationHistory\":[32],\"isRendered\":[32],\"openModal\":[64],\"sendMessage\":[64],\"sendJSON\":[64],\"closeModal\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"survey\",\"surveyHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]],[\"ai12z-search-panel.cjs\",[[1,\"ai12z-search-panel\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"categorize\":[4],\"placeholder\":[1],\"redirectUrl\":[1,\"redirect-url\"],\"query\":[32],\"searchResults\":[32],\"hideAllButtons\":[32]}]]],[\"chat-avatar_6.cjs\",[[0,\"interaction-buttons\",{\"message\":[8],\"chatArray\":[16],\"currentIndex\":[2,\"current-index\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"voiceType\":[1,\"voice-type\"],\"voice\":[1],\"source\":[1],\"conversationId\":[1,\"conversation-id\"],\"projectId\":[1,\"project-id\"],\"isPlayed\":[32],\"audioElement\":[32],\"copied\":[32]}],[1,\"privacy-modal\",{\"message\":[1],\"show\":[4]}],[0,\"chat-avatar\",{\"senderType\":[1,\"sender-type\"],\"avatarUrl\":[1,\"avatar-url\"]}],[0,\"hamburger-menu\",{\"isToggled\":[1540,\"is-toggled\"],\"messages\":[16],\"botSettings\":[8,\"bot-settings\"],\"isLiveAgentEnabled\":[4,\"is-live-agent-enabled\"],\"liveAgentButtonText\":[1,\"live-agent-button-text\"],\"hasCheckedLiveAgent\":[32]},null,{\"isToggled\":[{\"watchToggled\":0}],\"messages\":[{\"watchMessages\":0}],\"liveAgentButtonText\":[{\"watchLiveAgentButtonText\":0}]}],[257,\"live-agent-chat\",{\"config\":[8],\"isApiReady\":[32],\"startChat\":[64]}],[1,\"typing-indicator\",{\"size\":[2],\"color\":[1],\"spacing\":[2]}]]],[\"image-uploader_2.cjs\",[[0,\"image-uploader\",{\"maxImages\":[2,\"max-images\"],\"disabled\":[4],\"images\":[16],\"targetElement\":[16],\"removeImageAtIndex\":[64]},[[4,\"isElementAvailable\",\"handleIsOpened\"],[4,\"capturedImgUpload\",\"handleCapturedImage\"]]],[1,\"keyboard-shortcuts-dialog\",{\"show\":[4],\"shortcuts\":[16],\"groupedShortcuts\":[32]},null,{\"show\":[{\"handleShowChange\":0}],\"shortcuts\":[{\"handleShortcutsChange\":0}]}]]],[\"ai12z-bot.cjs\",[[257,\"ai12z-bot\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[520,\"data-attributes\"],\"excludeTags\":[16],\"includeTags\":[16],\"liveAgentButtonText\":[32],\"isLiveAgentEnabled\":[32],\"isTypingIndicatorVisible\":[32],\"botSettings\":[32],\"canRender\":[32],\"voiceType\":[32],\"voice\":[32],\"showSubmit\":[32],\"hideAllButtons\":[32],\"showMenu\":[32],\"isProse\":[32],\"isLiveAgent\":[32],\"isConnectingLiveAgent\":[32],\"showWelcomeScreen\":[32],\"showHistory\":[32],\"conversationId\":[32],\"surveyDomId\":[32],\"searchResults\":[32],\"buttons\":[32],\"currentDomId\":[32],\"messages\":[32],\"questionCounter\":[32],\"visitorID\":[32],\"timestamp\":[32],\"rowCount\":[32],\"isBot\":[32],\"conversationHistory\":[32],\"query\":[32],\"scriptArray\":[32],\"imagesBase64List\":[32],\"focusedIndex\":[32],\"isAnimated\":[32],\"isMinimized\":[32],\"isStreaming\":[32],\"showErrorMessage\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"isOpened\":[32],\"isContent\":[32],\"isExpanded\":[32],\"isToggled\":[32],\"showPrivacy\":[32],\"isRendered\":[32],\"showShortcutsDialog\":[32],\"showLiveAgentEndDialog\":[32],\"liveAgentSessionId\":[32],\"liveAgentConversationId\":[32],\"liveAgentProviderName\":[32],\"liveAgentListenersRegistered\":[32],\"shortcuts\":[32],\"announceMessage\":[32],\"liveAgentDirective\":[32],\"sendMessage\":[64],\"sendQuery\":[64],\"sendJSON\":[64],\"openBot\":[64],\"action\":[64],\"setProcessDataOverride\":[64],\"configureSettings\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"buttonClick\",\"buttonClickHandler\"],[0,\"sendQueryToBot\",\"sendQueryToBotHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"],[0,\"openChat\",\"openChatHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]]]"), options);
48
+ return index.bootstrapLazy(JSON.parse("[[\"ai12z-knowledge-box.cjs\",[[257,\"ai12z-knowledge-box\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[1537,\"config-id\"],\"question\":[1537],\"socket\":[1032],\"isLoading\":[1028,\"is-loading\"],\"questionId\":[32],\"isInitialized\":[32],\"kbSettings\":[32],\"searchResults\":[32],\"items\":[32],\"error\":[32],\"domId\":[32],\"surveyDomId\":[32],\"buttons\":[32],\"currentStreamingText\":[32],\"isStreaming\":[32],\"finalResponse\":[32],\"scriptArray\":[32],\"showButton\":[32],\"welcomeReady\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},null,{\"question\":[{\"watchPropHandler\":0}],\"domId\":[{\"watchStateHandler\":0}]}]]],[\"dynamic-form.cjs\",[[0,\"dynamic-form\",{\"form\":[8],\"formSettings\":[1032,\"form-settings\"],\"formsettings\":[8],\"theme\":[8]}]]],[\"ai12z-spinner.cjs\",[[2,\"ai12z-spinner\",{\"class\":[1]}]]],[\"item-list.cjs\",[[0,\"item-list\",{\"inputType\":[1,\"input-type\"],\"carouselType\":[1,\"carousel-type\"],\"customTemplate\":[16],\"customSource\":[8,\"custom-source\"],\"llm\":[16],\"customStyles\":[1,\"custom-styles\"],\"customScripts\":[1,\"custom-scripts\"],\"isExpanded\":[4,\"is-expanded\"],\"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]}]]],[\"ai12z-container.cjs\",[[1,\"ai12z-container\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"instanceId\":[513,\"instance-id\"],\"parameters\":[513],\"renderType\":[1537,\"render-type\"],\"contentTemplate\":[513,\"content-template\"],\"isLoading\":[32],\"error\":[32],\"contentText\":[32],\"htmlWidgetMarkup\":[32],\"domId\":[32]},null,{\"parameters\":[{\"onParametersChanged\":0}],\"contentTemplate\":[{\"onContentTemplateChanged\":0}]}]]],[\"ai12z-form.cjs\",[[1,\"ai12z-form\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"isLoading\":[32],\"error\":[32],\"isReady\":[32],\"honeypotValue\":[32],\"loadDynamicForm\":[64]},null,{\"keyName\":[{\"watchLoadProps\":0}]}]]],[\"ai12z-chat-message.cjs\",[[1,\"ai12z-chat-message\",{\"text\":[1],\"streaming\":[4],\"kbSettings\":[8,\"kb-settings\"],\"showButton\":[4,\"show-button\"],\"isExpanded\":[32],\"isCollapsing\":[32],\"canExpand\":[32]},[[4,\"initializeScripts\",\"handleInitializeScripts\"]],{\"text\":[{\"onTextChange\":0}]}]]],[\"ai12z-category_2.cjs\",[[0,\"ai12z-category\",{\"categoryList\":[520,\"category-list\"],\"linkTarget\":[513,\"link-target\"]},[[4,\"clearResults\",\"clearResultsHandler\"]]],[0,\"audio-recorder\",{\"componentType\":[1,\"component-type\"],\"dataKey\":[32],\"dataMode\":[32],\"isRecording\":[32],\"isProcessing\":[32],\"time\":[32],\"transcript\":[32],\"fullTranscript\":[32],\"isSpeechRecognitionSupported\":[32],\"userCountry\":[32]}]]],[\"ai12z-chat_2.cjs\",[[0,\"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\"],\"chatLength\":[2,\"chat-length\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"imagesBase64List\":[32],\"showShortcutsDialog\":[32],\"shortcuts\":[32],\"searchInput\":[32],\"submitted\":[32],\"showErrorMessage\":[32],\"hideAllButtons\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32]},[[4,\"stateChanged\",\"stateChangedHandler\"],[4,\"clearInput\",\"clearInputHandler\"]]],[1,\"ai12z-chat\",{\"chatId\":[1,\"chat-id\"],\"chats\":[1032],\"query\":[1025],\"apiKey\":[1,\"api-key\"],\"aiMessageId\":[1025,\"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\":[16],\"customstyle\":[1],\"customJS\":[1,\"custom-j-s\"],\"avatarUrl\":[1,\"avatar-url\"],\"settings\":[8],\"scrollBottom\":[32],\"copied\":[32],\"isPlayed\":[32],\"buttons\":[32],\"itemList\":[32],\"currentChatData\":[32],\"currentTemplate\":[32],\"currentPage\":[32],\"currentResponse\":[32],\"currentSlide\":[32],\"scriptArray\":[32],\"isProse\":[32],\"isProcessingEndResponse\":[32],\"surveyDomId\":[32],\"focusedIndex\":[32],\"hydrateMessagesFromState\":[64]},[[8,\"streamResponse\",\"streamResponseHandler\"],[8,\"endResponse\",\"endResponseHandler\"],[0,\"buttonClick\",\"buttonClickHandler\"],[4,\"stopStream\",\"stopStreamInputHandler\"],[4,\"startStream\",\"startStreamInputHandler\"]],{\"chats\":[{\"watchHandler\":0}]}]]],[\"ai12z-inline-search.cjs\",[[1,\"ai12z-inline-search\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"resultPosition\":[1,\"result-position\"],\"autoSearch\":[4,\"auto-search\"],\"categorize\":[4],\"settings\":[16],\"formData\":[32],\"conversationHistory\":[32],\"searchResults\":[32],\"isOpen\":[32]},[[4,\"survey\",\"surveyHandler\"]]]]],[\"search-results-page.cjs\",[[1,\"search-results-page\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"dataAttributes\":[1,\"data-attributes\"],\"excludeTags\":[16],\"includeTags\":[16],\"configId\":[1,\"config-id\"],\"query\":[32],\"searchResultSettings\":[32],\"searchResults\":[32],\"hideAllButtons\":[32],\"isChat\":[32],\"chatHistory\":[32],\"aiMessageId\":[32],\"socketService\":[32],\"thumbsId\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"imgFiles\":[32],\"displayText\":[32],\"showWelcomeTemplate\":[32],\"timer\":[32],\"questionCounter\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32],\"isRendered\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},[[4,\"messageReceived\",\"messageReceivedHandler\"],[4,\"survey\",\"surveyHandler\"]]]]],[\"chatbot-history_2.cjs\",[[1,\"chatbot-history\",{\"chatList\":[16],\"botName\":[1,\"bot-name\"],\"chatlogo\":[1],\"heading\":[1],\"styles\":[1],\"scripts\":[1],\"showDeleteModal\":[32],\"chatToDelete\":[32],\"activeId\":[32],\"focusedIndex\":[32]}],[1,\"delete-confirmation-modal\",{\"show\":[4],\"dialogTitle\":[1,\"dialog-title\"],\"message\":[1],\"confirmButtonText\":[1,\"confirm-button-text\"],\"cancelButtonText\":[1,\"cancel-button-text\"]}]]],[\"ai12z-cta.cjs\",[[257,\"ai12z-cta\",{\"isCta\":[1028,\"is-cta\"],\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[513,\"data-attributes\"],\"options\":[16],\"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],\"announceMessage\":[32],\"showHistory\":[32],\"conversationHistory\":[32],\"isRendered\":[32],\"openModal\":[64],\"sendMessage\":[64],\"sendJSON\":[64],\"closeModal\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"survey\",\"surveyHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]],[\"ai12z-search-panel.cjs\",[[1,\"ai12z-search-panel\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"categorize\":[4],\"placeholder\":[1],\"redirectUrl\":[1,\"redirect-url\"],\"query\":[32],\"searchResults\":[32],\"hideAllButtons\":[32]}]]],[\"chat-avatar_6.cjs\",[[0,\"interaction-buttons\",{\"message\":[8],\"chatArray\":[16],\"currentIndex\":[2,\"current-index\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"voiceType\":[1,\"voice-type\"],\"voice\":[1],\"source\":[1],\"conversationId\":[1,\"conversation-id\"],\"projectId\":[1,\"project-id\"],\"isPlayed\":[32],\"audioElement\":[32],\"copied\":[32]}],[1,\"privacy-modal\",{\"message\":[1],\"show\":[4]}],[0,\"chat-avatar\",{\"senderType\":[1,\"sender-type\"],\"avatarUrl\":[1,\"avatar-url\"]}],[0,\"hamburger-menu\",{\"isToggled\":[1540,\"is-toggled\"],\"messages\":[16],\"botSettings\":[8,\"bot-settings\"],\"isLiveAgentEnabled\":[4,\"is-live-agent-enabled\"],\"liveAgentButtonText\":[1,\"live-agent-button-text\"],\"hasCheckedLiveAgent\":[32]},null,{\"isToggled\":[{\"watchToggled\":0}],\"messages\":[{\"watchMessages\":0}],\"liveAgentButtonText\":[{\"watchLiveAgentButtonText\":0}]}],[257,\"live-agent-chat\",{\"config\":[8],\"isApiReady\":[32],\"startChat\":[64]}],[1,\"typing-indicator\",{\"size\":[2],\"color\":[1],\"spacing\":[2]}]]],[\"image-uploader_2.cjs\",[[0,\"image-uploader\",{\"maxImages\":[2,\"max-images\"],\"disabled\":[4],\"images\":[16],\"targetElement\":[16],\"removeImageAtIndex\":[64]},[[4,\"isElementAvailable\",\"handleIsOpened\"],[4,\"capturedImgUpload\",\"handleCapturedImage\"]]],[1,\"keyboard-shortcuts-dialog\",{\"show\":[4],\"shortcuts\":[16],\"groupedShortcuts\":[32]},null,{\"show\":[{\"handleShowChange\":0}],\"shortcuts\":[{\"handleShortcutsChange\":0}]}]]],[\"ai12z-bot.cjs\",[[257,\"ai12z-bot\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[520,\"data-attributes\"],\"excludeTags\":[16],\"includeTags\":[16],\"liveAgentButtonText\":[32],\"isLiveAgentEnabled\":[32],\"isTypingIndicatorVisible\":[32],\"botSettings\":[32],\"canRender\":[32],\"voiceType\":[32],\"voice\":[32],\"showSubmit\":[32],\"hideAllButtons\":[32],\"showMenu\":[32],\"isProse\":[32],\"isLiveAgent\":[32],\"isConnectingLiveAgent\":[32],\"showWelcomeScreen\":[32],\"showHistory\":[32],\"conversationId\":[32],\"surveyDomId\":[32],\"searchResults\":[32],\"buttons\":[32],\"currentDomId\":[32],\"messages\":[32],\"questionCounter\":[32],\"visitorID\":[32],\"timestamp\":[32],\"rowCount\":[32],\"isBot\":[32],\"conversationHistory\":[32],\"query\":[32],\"scriptArray\":[32],\"imagesBase64List\":[32],\"focusedIndex\":[32],\"isAnimated\":[32],\"isMinimized\":[32],\"isStreaming\":[32],\"showErrorMessage\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"isOpened\":[32],\"isContent\":[32],\"isExpanded\":[32],\"isToggled\":[32],\"showPrivacy\":[32],\"isRendered\":[32],\"showShortcutsDialog\":[32],\"showLiveAgentEndDialog\":[32],\"liveAgentSessionId\":[32],\"liveAgentConversationId\":[32],\"liveAgentProviderName\":[32],\"liveAgentListenersRegistered\":[32],\"shortcuts\":[32],\"announceMessage\":[32],\"liveAgentDirective\":[32],\"sendMessage\":[64],\"sendQuery\":[64],\"sendJSON\":[64],\"openBot\":[64],\"action\":[64],\"setProcessDataOverride\":[64],\"configureSettings\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"buttonClick\",\"buttonClickHandler\"],[0,\"sendQueryToBot\",\"sendQueryToBotHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"],[0,\"openChat\",\"openChatHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]]]"), options);
49
49
  });
50
50
 
51
51
  exports.setNonce = index.setNonce;
@@ -5,7 +5,7 @@ var index = require('./index-Ct2DwlDF.js');
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await index.globalScripts();
8
- return index.bootstrapLazy(JSON.parse("[[\"ai12z-knowledge-box.cjs\",[[257,\"ai12z-knowledge-box\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[1537,\"config-id\"],\"question\":[1537],\"socket\":[1032],\"isLoading\":[1028,\"is-loading\"],\"questionId\":[32],\"isInitialized\":[32],\"kbSettings\":[32],\"searchResults\":[32],\"items\":[32],\"error\":[32],\"domId\":[32],\"surveyDomId\":[32],\"buttons\":[32],\"currentStreamingText\":[32],\"isStreaming\":[32],\"finalResponse\":[32],\"scriptArray\":[32],\"showButton\":[32],\"welcomeReady\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},null,{\"question\":[{\"watchPropHandler\":0}],\"domId\":[{\"watchStateHandler\":0}]}]]],[\"dynamic-form.cjs\",[[0,\"dynamic-form\",{\"form\":[8],\"formSettings\":[1032,\"form-settings\"],\"formsettings\":[8],\"theme\":[8]}]]],[\"ai12z-spinner.cjs\",[[2,\"ai12z-spinner\",{\"class\":[1]}]]],[\"item-list.cjs\",[[0,\"item-list\",{\"inputType\":[1,\"input-type\"],\"carouselType\":[1,\"carousel-type\"],\"customTemplate\":[16],\"customSource\":[8,\"custom-source\"],\"llm\":[16],\"customStyles\":[1,\"custom-styles\"],\"customScripts\":[1,\"custom-scripts\"],\"isExpanded\":[4,\"is-expanded\"],\"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]}]]],[\"ai12z-container.cjs\",[[1,\"ai12z-container\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"instanceId\":[513,\"instance-id\"],\"parameters\":[513],\"renderType\":[1537,\"render-type\"],\"contentTemplate\":[513,\"content-template\"],\"isLoading\":[32],\"error\":[32],\"contentText\":[32],\"htmlWidgetMarkup\":[32],\"domId\":[32]},null,{\"parameters\":[{\"onParametersChanged\":0}],\"contentTemplate\":[{\"onContentTemplateChanged\":0}]}]]],[\"ai12z-form.cjs\",[[1,\"ai12z-form\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"isLoading\":[32],\"error\":[32],\"isReady\":[32],\"honeypotValue\":[32],\"loadDynamicForm\":[64]},null,{\"keyName\":[{\"watchLoadProps\":0}]}]]],[\"ai12z-chat-message.cjs\",[[1,\"ai12z-chat-message\",{\"text\":[1],\"streaming\":[4],\"kbSettings\":[8,\"kb-settings\"],\"showButton\":[4,\"show-button\"],\"isExpanded\":[32],\"isCollapsing\":[32],\"canExpand\":[32]},[[4,\"initializeScripts\",\"handleInitializeScripts\"]],{\"text\":[{\"onTextChange\":0}]}]]],[\"ai12z-category_2.cjs\",[[0,\"ai12z-category\",{\"categoryList\":[520,\"category-list\"],\"linkTarget\":[513,\"link-target\"]},[[4,\"clearResults\",\"clearResultsHandler\"]]],[0,\"audio-recorder\",{\"componentType\":[1,\"component-type\"],\"dataKey\":[32],\"dataMode\":[32],\"isRecording\":[32],\"isProcessing\":[32],\"time\":[32],\"transcript\":[32],\"fullTranscript\":[32],\"isSpeechRecognitionSupported\":[32],\"userCountry\":[32]}]]],[\"ai12z-chat_2.cjs\",[[0,\"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\"],\"chatLength\":[2,\"chat-length\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"imagesBase64List\":[32],\"showShortcutsDialog\":[32],\"shortcuts\":[32],\"searchInput\":[32],\"submitted\":[32],\"showErrorMessage\":[32],\"hideAllButtons\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32]},[[4,\"stateChanged\",\"stateChangedHandler\"],[4,\"clearInput\",\"clearInputHandler\"]]],[1,\"ai12z-chat\",{\"chatId\":[1,\"chat-id\"],\"chats\":[1032],\"query\":[1025],\"apiKey\":[1,\"api-key\"],\"aiMessageId\":[1025,\"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\":[16],\"customstyle\":[1],\"customJS\":[1,\"custom-j-s\"],\"avatarUrl\":[1,\"avatar-url\"],\"settings\":[8],\"scrollBottom\":[32],\"copied\":[32],\"isPlayed\":[32],\"buttons\":[32],\"itemList\":[32],\"currentChatData\":[32],\"currentTemplate\":[32],\"currentPage\":[32],\"currentResponse\":[32],\"currentSlide\":[32],\"scriptArray\":[32],\"isProse\":[32],\"isProcessingEndResponse\":[32],\"surveyDomId\":[32],\"focusedIndex\":[32],\"hydrateMessagesFromState\":[64]},[[8,\"streamResponse\",\"streamResponseHandler\"],[8,\"endResponse\",\"endResponseHandler\"],[0,\"buttonClick\",\"buttonClickHandler\"],[4,\"stopStream\",\"stopStreamInputHandler\"],[4,\"startStream\",\"startStreamInputHandler\"]],{\"chats\":[{\"watchHandler\":0}]}]]],[\"ai12z-inline-search.cjs\",[[1,\"ai12z-inline-search\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"resultPosition\":[1,\"result-position\"],\"autoSearch\":[4,\"auto-search\"],\"categorize\":[4],\"settings\":[16],\"formData\":[32],\"conversationHistory\":[32],\"searchResults\":[32],\"isOpen\":[32]},[[4,\"survey\",\"surveyHandler\"]]]]],[\"search-results-page.cjs\",[[1,\"search-results-page\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"dataAttributes\":[1,\"data-attributes\"],\"configId\":[1,\"config-id\"],\"query\":[32],\"searchResultSettings\":[32],\"searchResults\":[32],\"hideAllButtons\":[32],\"isChat\":[32],\"chatHistory\":[32],\"aiMessageId\":[32],\"socketService\":[32],\"thumbsId\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"imgFiles\":[32],\"displayText\":[32],\"showWelcomeTemplate\":[32],\"timer\":[32],\"questionCounter\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32],\"isRendered\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},[[4,\"messageReceived\",\"messageReceivedHandler\"],[4,\"survey\",\"surveyHandler\"]]]]],[\"chatbot-history_2.cjs\",[[1,\"chatbot-history\",{\"chatList\":[16],\"botName\":[1,\"bot-name\"],\"chatlogo\":[1],\"heading\":[1],\"styles\":[1],\"scripts\":[1],\"showDeleteModal\":[32],\"chatToDelete\":[32],\"activeId\":[32],\"focusedIndex\":[32]}],[1,\"delete-confirmation-modal\",{\"show\":[4],\"dialogTitle\":[1,\"dialog-title\"],\"message\":[1],\"confirmButtonText\":[1,\"confirm-button-text\"],\"cancelButtonText\":[1,\"cancel-button-text\"]}]]],[\"ai12z-cta.cjs\",[[257,\"ai12z-cta\",{\"isCta\":[1028,\"is-cta\"],\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[513,\"data-attributes\"],\"options\":[16],\"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],\"announceMessage\":[32],\"showHistory\":[32],\"conversationHistory\":[32],\"isRendered\":[32],\"openModal\":[64],\"sendMessage\":[64],\"sendJSON\":[64],\"closeModal\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"survey\",\"surveyHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]],[\"ai12z-search-panel.cjs\",[[1,\"ai12z-search-panel\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"categorize\":[4],\"placeholder\":[1],\"redirectUrl\":[1,\"redirect-url\"],\"query\":[32],\"searchResults\":[32],\"hideAllButtons\":[32]}]]],[\"chat-avatar_6.cjs\",[[0,\"interaction-buttons\",{\"message\":[8],\"chatArray\":[16],\"currentIndex\":[2,\"current-index\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"voiceType\":[1,\"voice-type\"],\"voice\":[1],\"source\":[1],\"conversationId\":[1,\"conversation-id\"],\"projectId\":[1,\"project-id\"],\"isPlayed\":[32],\"audioElement\":[32],\"copied\":[32]}],[1,\"privacy-modal\",{\"message\":[1],\"show\":[4]}],[0,\"chat-avatar\",{\"senderType\":[1,\"sender-type\"],\"avatarUrl\":[1,\"avatar-url\"]}],[0,\"hamburger-menu\",{\"isToggled\":[1540,\"is-toggled\"],\"messages\":[16],\"botSettings\":[8,\"bot-settings\"],\"isLiveAgentEnabled\":[4,\"is-live-agent-enabled\"],\"liveAgentButtonText\":[1,\"live-agent-button-text\"],\"hasCheckedLiveAgent\":[32]},null,{\"isToggled\":[{\"watchToggled\":0}],\"messages\":[{\"watchMessages\":0}],\"liveAgentButtonText\":[{\"watchLiveAgentButtonText\":0}]}],[257,\"live-agent-chat\",{\"config\":[8],\"isApiReady\":[32],\"startChat\":[64]}],[1,\"typing-indicator\",{\"size\":[2],\"color\":[1],\"spacing\":[2]}]]],[\"image-uploader_2.cjs\",[[0,\"image-uploader\",{\"maxImages\":[2,\"max-images\"],\"disabled\":[4],\"images\":[16],\"targetElement\":[16],\"removeImageAtIndex\":[64]},[[4,\"isElementAvailable\",\"handleIsOpened\"],[4,\"capturedImgUpload\",\"handleCapturedImage\"]]],[1,\"keyboard-shortcuts-dialog\",{\"show\":[4],\"shortcuts\":[16],\"groupedShortcuts\":[32]},null,{\"show\":[{\"handleShowChange\":0}],\"shortcuts\":[{\"handleShortcutsChange\":0}]}]]],[\"ai12z-bot.cjs\",[[257,\"ai12z-bot\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[520,\"data-attributes\"],\"excludeTags\":[16],\"includeTags\":[16],\"liveAgentButtonText\":[32],\"isLiveAgentEnabled\":[32],\"isTypingIndicatorVisible\":[32],\"botSettings\":[32],\"canRender\":[32],\"voiceType\":[32],\"voice\":[32],\"showSubmit\":[32],\"hideAllButtons\":[32],\"showMenu\":[32],\"isProse\":[32],\"isLiveAgent\":[32],\"isConnectingLiveAgent\":[32],\"showWelcomeScreen\":[32],\"showHistory\":[32],\"conversationId\":[32],\"surveyDomId\":[32],\"searchResults\":[32],\"buttons\":[32],\"currentDomId\":[32],\"messages\":[32],\"questionCounter\":[32],\"visitorID\":[32],\"timestamp\":[32],\"rowCount\":[32],\"isBot\":[32],\"conversationHistory\":[32],\"query\":[32],\"scriptArray\":[32],\"imagesBase64List\":[32],\"focusedIndex\":[32],\"isAnimated\":[32],\"isMinimized\":[32],\"isStreaming\":[32],\"showErrorMessage\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"isOpened\":[32],\"isContent\":[32],\"isExpanded\":[32],\"isToggled\":[32],\"showPrivacy\":[32],\"isRendered\":[32],\"showShortcutsDialog\":[32],\"showLiveAgentEndDialog\":[32],\"liveAgentSessionId\":[32],\"liveAgentConversationId\":[32],\"liveAgentProviderName\":[32],\"liveAgentListenersRegistered\":[32],\"shortcuts\":[32],\"announceMessage\":[32],\"liveAgentDirective\":[32],\"sendMessage\":[64],\"sendQuery\":[64],\"sendJSON\":[64],\"openBot\":[64],\"action\":[64],\"setProcessDataOverride\":[64],\"configureSettings\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"buttonClick\",\"buttonClickHandler\"],[0,\"sendQueryToBot\",\"sendQueryToBotHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"],[0,\"openChat\",\"openChatHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]]]"), options);
8
+ return index.bootstrapLazy(JSON.parse("[[\"ai12z-knowledge-box.cjs\",[[257,\"ai12z-knowledge-box\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[1537,\"config-id\"],\"question\":[1537],\"socket\":[1032],\"isLoading\":[1028,\"is-loading\"],\"questionId\":[32],\"isInitialized\":[32],\"kbSettings\":[32],\"searchResults\":[32],\"items\":[32],\"error\":[32],\"domId\":[32],\"surveyDomId\":[32],\"buttons\":[32],\"currentStreamingText\":[32],\"isStreaming\":[32],\"finalResponse\":[32],\"scriptArray\":[32],\"showButton\":[32],\"welcomeReady\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},null,{\"question\":[{\"watchPropHandler\":0}],\"domId\":[{\"watchStateHandler\":0}]}]]],[\"dynamic-form.cjs\",[[0,\"dynamic-form\",{\"form\":[8],\"formSettings\":[1032,\"form-settings\"],\"formsettings\":[8],\"theme\":[8]}]]],[\"ai12z-spinner.cjs\",[[2,\"ai12z-spinner\",{\"class\":[1]}]]],[\"item-list.cjs\",[[0,\"item-list\",{\"inputType\":[1,\"input-type\"],\"carouselType\":[1,\"carousel-type\"],\"customTemplate\":[16],\"customSource\":[8,\"custom-source\"],\"llm\":[16],\"customStyles\":[1,\"custom-styles\"],\"customScripts\":[1,\"custom-scripts\"],\"isExpanded\":[4,\"is-expanded\"],\"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]}]]],[\"ai12z-container.cjs\",[[1,\"ai12z-container\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"instanceId\":[513,\"instance-id\"],\"parameters\":[513],\"renderType\":[1537,\"render-type\"],\"contentTemplate\":[513,\"content-template\"],\"isLoading\":[32],\"error\":[32],\"contentText\":[32],\"htmlWidgetMarkup\":[32],\"domId\":[32]},null,{\"parameters\":[{\"onParametersChanged\":0}],\"contentTemplate\":[{\"onContentTemplateChanged\":0}]}]]],[\"ai12z-form.cjs\",[[1,\"ai12z-form\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"keyName\":[513,\"key-name\"],\"isLoading\":[32],\"error\":[32],\"isReady\":[32],\"honeypotValue\":[32],\"loadDynamicForm\":[64]},null,{\"keyName\":[{\"watchLoadProps\":0}]}]]],[\"ai12z-chat-message.cjs\",[[1,\"ai12z-chat-message\",{\"text\":[1],\"streaming\":[4],\"kbSettings\":[8,\"kb-settings\"],\"showButton\":[4,\"show-button\"],\"isExpanded\":[32],\"isCollapsing\":[32],\"canExpand\":[32]},[[4,\"initializeScripts\",\"handleInitializeScripts\"]],{\"text\":[{\"onTextChange\":0}]}]]],[\"ai12z-category_2.cjs\",[[0,\"ai12z-category\",{\"categoryList\":[520,\"category-list\"],\"linkTarget\":[513,\"link-target\"]},[[4,\"clearResults\",\"clearResultsHandler\"]]],[0,\"audio-recorder\",{\"componentType\":[1,\"component-type\"],\"dataKey\":[32],\"dataMode\":[32],\"isRecording\":[32],\"isProcessing\":[32],\"time\":[32],\"transcript\":[32],\"fullTranscript\":[32],\"isSpeechRecognitionSupported\":[32],\"userCountry\":[32]}]]],[\"ai12z-chat_2.cjs\",[[0,\"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\"],\"chatLength\":[2,\"chat-length\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"imagesBase64List\":[32],\"showShortcutsDialog\":[32],\"shortcuts\":[32],\"searchInput\":[32],\"submitted\":[32],\"showErrorMessage\":[32],\"hideAllButtons\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32]},[[4,\"stateChanged\",\"stateChangedHandler\"],[4,\"clearInput\",\"clearInputHandler\"]]],[1,\"ai12z-chat\",{\"chatId\":[1,\"chat-id\"],\"chats\":[1032],\"query\":[1025],\"apiKey\":[1,\"api-key\"],\"aiMessageId\":[1025,\"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\":[16],\"customstyle\":[1],\"customJS\":[1,\"custom-j-s\"],\"avatarUrl\":[1,\"avatar-url\"],\"settings\":[8],\"scrollBottom\":[32],\"copied\":[32],\"isPlayed\":[32],\"buttons\":[32],\"itemList\":[32],\"currentChatData\":[32],\"currentTemplate\":[32],\"currentPage\":[32],\"currentResponse\":[32],\"currentSlide\":[32],\"scriptArray\":[32],\"isProse\":[32],\"isProcessingEndResponse\":[32],\"surveyDomId\":[32],\"focusedIndex\":[32],\"hydrateMessagesFromState\":[64]},[[8,\"streamResponse\",\"streamResponseHandler\"],[8,\"endResponse\",\"endResponseHandler\"],[0,\"buttonClick\",\"buttonClickHandler\"],[4,\"stopStream\",\"stopStreamInputHandler\"],[4,\"startStream\",\"startStreamInputHandler\"]],{\"chats\":[{\"watchHandler\":0}]}]]],[\"ai12z-inline-search.cjs\",[[1,\"ai12z-inline-search\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"resultPosition\":[1,\"result-position\"],\"autoSearch\":[4,\"auto-search\"],\"categorize\":[4],\"settings\":[16],\"formData\":[32],\"conversationHistory\":[32],\"searchResults\":[32],\"isOpen\":[32]},[[4,\"survey\",\"surveyHandler\"]]]]],[\"search-results-page.cjs\",[[1,\"search-results-page\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"dataAttributes\":[1,\"data-attributes\"],\"excludeTags\":[16],\"includeTags\":[16],\"configId\":[1,\"config-id\"],\"query\":[32],\"searchResultSettings\":[32],\"searchResults\":[32],\"hideAllButtons\":[32],\"isChat\":[32],\"chatHistory\":[32],\"aiMessageId\":[32],\"socketService\":[32],\"thumbsId\":[32],\"isOpen\":[32],\"capturedFile\":[32],\"imgFiles\":[32],\"displayText\":[32],\"showWelcomeTemplate\":[32],\"timer\":[32],\"questionCounter\":[32],\"emptyMessageError\":[32],\"announceMessage\":[32],\"isRendered\":[32],\"sendMessage\":[64],\"sendJSON\":[64]},[[4,\"messageReceived\",\"messageReceivedHandler\"],[4,\"survey\",\"surveyHandler\"]]]]],[\"chatbot-history_2.cjs\",[[1,\"chatbot-history\",{\"chatList\":[16],\"botName\":[1,\"bot-name\"],\"chatlogo\":[1],\"heading\":[1],\"styles\":[1],\"scripts\":[1],\"showDeleteModal\":[32],\"chatToDelete\":[32],\"activeId\":[32],\"focusedIndex\":[32]}],[1,\"delete-confirmation-modal\",{\"show\":[4],\"dialogTitle\":[1,\"dialog-title\"],\"message\":[1],\"confirmButtonText\":[1,\"confirm-button-text\"],\"cancelButtonText\":[1,\"cancel-button-text\"]}]]],[\"ai12z-cta.cjs\",[[257,\"ai12z-cta\",{\"isCta\":[1028,\"is-cta\"],\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[513,\"data-attributes\"],\"options\":[16],\"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],\"announceMessage\":[32],\"showHistory\":[32],\"conversationHistory\":[32],\"isRendered\":[32],\"openModal\":[64],\"sendMessage\":[64],\"sendJSON\":[64],\"closeModal\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"survey\",\"surveyHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]],[\"ai12z-search-panel.cjs\",[[1,\"ai12z-search-panel\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"categorize\":[4],\"placeholder\":[1],\"redirectUrl\":[1,\"redirect-url\"],\"query\":[32],\"searchResults\":[32],\"hideAllButtons\":[32]}]]],[\"chat-avatar_6.cjs\",[[0,\"interaction-buttons\",{\"message\":[8],\"chatArray\":[16],\"currentIndex\":[2,\"current-index\"],\"dataKey\":[1,\"data-key\"],\"dataMode\":[1,\"data-mode\"],\"voiceType\":[1,\"voice-type\"],\"voice\":[1],\"source\":[1],\"conversationId\":[1,\"conversation-id\"],\"projectId\":[1,\"project-id\"],\"isPlayed\":[32],\"audioElement\":[32],\"copied\":[32]}],[1,\"privacy-modal\",{\"message\":[1],\"show\":[4]}],[0,\"chat-avatar\",{\"senderType\":[1,\"sender-type\"],\"avatarUrl\":[1,\"avatar-url\"]}],[0,\"hamburger-menu\",{\"isToggled\":[1540,\"is-toggled\"],\"messages\":[16],\"botSettings\":[8,\"bot-settings\"],\"isLiveAgentEnabled\":[4,\"is-live-agent-enabled\"],\"liveAgentButtonText\":[1,\"live-agent-button-text\"],\"hasCheckedLiveAgent\":[32]},null,{\"isToggled\":[{\"watchToggled\":0}],\"messages\":[{\"watchMessages\":0}],\"liveAgentButtonText\":[{\"watchLiveAgentButtonText\":0}]}],[257,\"live-agent-chat\",{\"config\":[8],\"isApiReady\":[32],\"startChat\":[64]}],[1,\"typing-indicator\",{\"size\":[2],\"color\":[1],\"spacing\":[2]}]]],[\"image-uploader_2.cjs\",[[0,\"image-uploader\",{\"maxImages\":[2,\"max-images\"],\"disabled\":[4],\"images\":[16],\"targetElement\":[16],\"removeImageAtIndex\":[64]},[[4,\"isElementAvailable\",\"handleIsOpened\"],[4,\"capturedImgUpload\",\"handleCapturedImage\"]]],[1,\"keyboard-shortcuts-dialog\",{\"show\":[4],\"shortcuts\":[16],\"groupedShortcuts\":[32]},null,{\"show\":[{\"handleShowChange\":0}],\"shortcuts\":[{\"handleShortcutsChange\":0}]}]]],[\"ai12z-bot.cjs\",[[257,\"ai12z-bot\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"configId\":[513,\"config-id\"],\"dataAttributes\":[520,\"data-attributes\"],\"excludeTags\":[16],\"includeTags\":[16],\"liveAgentButtonText\":[32],\"isLiveAgentEnabled\":[32],\"isTypingIndicatorVisible\":[32],\"botSettings\":[32],\"canRender\":[32],\"voiceType\":[32],\"voice\":[32],\"showSubmit\":[32],\"hideAllButtons\":[32],\"showMenu\":[32],\"isProse\":[32],\"isLiveAgent\":[32],\"isConnectingLiveAgent\":[32],\"showWelcomeScreen\":[32],\"showHistory\":[32],\"conversationId\":[32],\"surveyDomId\":[32],\"searchResults\":[32],\"buttons\":[32],\"currentDomId\":[32],\"messages\":[32],\"questionCounter\":[32],\"visitorID\":[32],\"timestamp\":[32],\"rowCount\":[32],\"isBot\":[32],\"conversationHistory\":[32],\"query\":[32],\"scriptArray\":[32],\"imagesBase64List\":[32],\"focusedIndex\":[32],\"isAnimated\":[32],\"isMinimized\":[32],\"isStreaming\":[32],\"showErrorMessage\":[32],\"errorMessage\":[32],\"emptyMessageError\":[32],\"isOpened\":[32],\"isContent\":[32],\"isExpanded\":[32],\"isToggled\":[32],\"showPrivacy\":[32],\"isRendered\":[32],\"showShortcutsDialog\":[32],\"showLiveAgentEndDialog\":[32],\"liveAgentSessionId\":[32],\"liveAgentConversationId\":[32],\"liveAgentProviderName\":[32],\"liveAgentListenersRegistered\":[32],\"shortcuts\":[32],\"announceMessage\":[32],\"liveAgentDirective\":[32],\"sendMessage\":[64],\"sendQuery\":[64],\"sendJSON\":[64],\"openBot\":[64],\"action\":[64],\"setProcessDataOverride\":[64],\"configureSettings\":[64]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"buttonClick\",\"buttonClickHandler\"],[0,\"sendQueryToBot\",\"sendQueryToBotHandler\"],[0,\"deleteChatHistory\",\"deleteChatHistoryHandler\"],[0,\"chatClick\",\"chatClickHandler\"],[0,\"openChat\",\"openChatHandler\"],[0,\"formComplete\",\"formSubmittedHandler\"]],{\"dataKey\":[{\"onDataKeyChange\":0}],\"dataMode\":[{\"onDataModeChange\":0}]}]]]]"), options);
9
9
  };
10
10
 
11
11
  exports.setNonce = index.setNonce;
@@ -21,6 +21,8 @@ const SearchResultsPage = class {
21
21
  this.cdnPath = "https://cdn.ai12z.net/assets/cta";
22
22
  this.dataKey = index.Env.DATA_KEY || "";
23
23
  this.dataMode = index.Env.DATA_MODE || "prod";
24
+ this.excludeTags = [];
25
+ this.includeTags = [];
24
26
  this.query = "";
25
27
  this.searchResultSettings = {};
26
28
  this.searchResults = [];
@@ -539,25 +541,25 @@ const SearchResultsPage = class {
539
541
  }
540
542
  render() {
541
543
  var _a, _b, _c, _d, _e, _f, _g;
542
- return (index.h("div", { key: 'ec064aedbd7df60d7c691d3a4a76488a37118747', class: "flex w-full" }, this.isRendered && (index.h("div", { key: '5cbc8b431d3efccedb34a2a030ff913eece4a78d', class: "search-layout" }, index.h("div", { key: '5b0a20311ef081fd4b5a0b1d8a2b71815359084a', class: "left-column" }, index.h("div", { key: 'cb58944fb5f951361277ec7e09632abba83ca6c3', class: `flex flex-col relative h-full`, id: "searchPanel" }, index.h("fieldset", { key: 'd5c28ccfef8d93ccfddd064873dbea24ac8e21b3', class: `chat-fieldset ${this.searchResultSettings.textareaAtBottom ? "order-2" : "order-1"}`, style: this.searchResultSettings.textareaAtBottom ? { position: "sticky", bottom: "0", zIndex: "1000" } : { position: "sticky", top: "0", zIndex: "1000" } }, index.h("form", { key: 'fa8fcd7a5b80a96496ab758fa50f1ea4200e4352', class: "flex flex-col rounded-2xl p-2.5 search-page-container", id: "searchForm" }, index.h("div", { key: '4e91c1706e40cb05b2a1ad3ad7ab002c910469dc', class: "flex" }, index.h("div", { key: 'db7eea833f3c26902fa13bfc9fdeebbaa0f4328d', class: "flex items-center justify-between" }, !this.hideAllButtons && (this.searchResultSettings.enableAttachment || this.searchResultSettings.clearMemory) && (index.h("div", { key: '484c11bff7f17a9920e8a75914dd7b96fdb4b86e', class: "relative inline-block", style: { width: "5%" } }, index.h("button", { key: '2c91b160c432564cfb5e9279cbbdbafc4d6dfd33', class: "plus-icon chat-btn-primary", "aria-label": "Add Options", title: "Add images or capture screen", tabindex: "0", onClick: e => {
544
+ return (index.h("div", { key: 'e460c9c93f9a8f02719c2a92bda77d49ebd71101', class: "flex w-full" }, this.isRendered && (index.h("div", { key: '651544be50ba6d832ad5f14bdb2bee3516822bff', class: "search-layout" }, index.h("div", { key: 'dda155418f8734941355541b5256c815c807bbb6', class: "left-column" }, index.h("div", { key: '321f41053a82455cc8989cad777189de0a6cc929', class: `flex flex-col relative h-full`, id: "searchPanel" }, index.h("fieldset", { key: '894e0c06e119556464f908932a9c1d1ddeccfb7a', class: `chat-fieldset ${this.searchResultSettings.textareaAtBottom ? "order-2" : "order-1"}`, style: this.searchResultSettings.textareaAtBottom ? { position: "sticky", bottom: "0", zIndex: "1000" } : { position: "sticky", top: "0", zIndex: "1000" } }, index.h("form", { key: 'ac837347407b570f2622eb6f5e42b21f3bf13bea', class: "flex flex-col rounded-2xl p-2.5 search-page-container", id: "searchForm" }, index.h("div", { key: 'db8aded895d30e68d474f92fbf390a94d994a687', class: "flex" }, index.h("div", { key: 'a2cc35c12e910d351724ff5f9da48df8924f0c61', class: "flex items-center justify-between" }, !this.hideAllButtons && (this.searchResultSettings.enableAttachment || this.searchResultSettings.clearMemory) && (index.h("div", { key: '132bc797eda5fa74226fb2219deedbf74c464bc3', class: "relative inline-block", style: { width: "5%" } }, index.h("button", { key: 'a147fbfa3ad67240c39122bfb9d5e151df0aa1ba', class: "plus-icon chat-btn-primary", "aria-label": "Add Options", title: "Add images or capture screen", tabindex: "0", onClick: e => {
543
545
  e.stopPropagation();
544
546
  e.preventDefault();
545
547
  this.toggleBox(e);
546
- } }, index.h("svg", { key: 'f876743296e6c9f29731551d6e60780d2d95a4d4', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", width: "20", height: "20" }, index.h("path", { key: 'ed87dd9ea50ced5010a92773e81e250cecc7798d', d: "M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z" }))), index.h("div", { key: '27814d695edee9426b5bd2e46abc0e983ce2da9b', class: `absolute left-0 ${this.searchResultSettings.textareaAtBottom ? "bottom-full mb-1" : "top-full mt-1"} w-48 bg-white rounded-lg shadow-lg transition-all duration-300 ease-in-out
547
- ${this.isOpen ? "opacity-100 scale-100 pointer-events-auto" : "opacity-0 scale-90 pointer-events-none"}`, style: { zIndex: "1001" }, ref: el => (this.menuElem = el) }, index.h("ul", { key: '3c2ae5dbaf9503d2df42f05378abf90fbddd4df6', class: "space-y-2" }, this.searchResultSettings.enableAttachment && (index.h("li", { key: 'd12d4418a7c8ab66c66537420074c0e4e1ff8eab', class: "px-4 py-2 hover:bg-gray-100 cursor-pointer flex", onClick: () => {
548
+ } }, index.h("svg", { key: '0e9b678990a6ab9cf3490d6cb5536936d1a32214', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", width: "20", height: "20" }, index.h("path", { key: '11b12145fe2eb09592ded58f2674e5bce3ec4642', d: "M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z" }))), index.h("div", { key: '4cc4fb57360a4a6af52edbc631a0888c70a1d537', class: `absolute left-0 ${this.searchResultSettings.textareaAtBottom ? "bottom-full mb-1" : "top-full mt-1"} w-48 bg-white rounded-lg shadow-lg transition-all duration-300 ease-in-out
549
+ ${this.isOpen ? "opacity-100 scale-100 pointer-events-auto" : "opacity-0 scale-90 pointer-events-none"}`, style: { zIndex: "1001" }, ref: el => (this.menuElem = el) }, index.h("ul", { key: 'a98c784810fdd087ac1ef95565bf009336e45441', class: "space-y-2" }, this.searchResultSettings.enableAttachment && (index.h("li", { key: '569863db10a23c4e134648599f026f3c51eb3f91', class: "px-4 py-2 hover:bg-gray-100 cursor-pointer flex", onClick: () => {
548
550
  this.uploadImageEle.click();
549
551
  this.isOpen = false;
550
- } }, index.h("input", { key: 'ae8bd139701e297c9d7e7e8e3c92bdd455ca94fd', type: "file", multiple: true, name: "files[]", id: "fileInput", accept: "image/*", class: "hidden image-upload__input", onChange: ($event) => {
552
+ } }, index.h("input", { key: '47ee3a42abc387ba4393dc1c9dd5fdab396f5dac', type: "file", multiple: true, name: "files[]", id: "fileInput", accept: "image/*", class: "hidden image-upload__input", onChange: ($event) => {
551
553
  this.onInputChange($event.target.files);
552
- }, ref: el => (this.uploadImageEle = el) }), index.h("div", { key: '5e964e9a5058284ee6733bc8d5173cc0a290dcae', class: "mr-1" }, index.h("svg", { key: '69f473fb93855c19cba439b248d2d45b6fcdb51b', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 shrink-0" }, index.h("path", { key: 'f3e1900b6a95611f32849de6b36f72f7e3e4d82f', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M18.0322 5.02393C17.7488 5.00078 17.3766 5 16.8 5H11.5002C11.3 6 11.0989 6.91141 10.8903 7.85409C10.7588 8.44955 10.6432 8.97304 10.3675 9.41399C10.1262 9.80009 9.80009 10.1262 9.41399 10.3675C8.97304 10.6432 8.44955 10.7588 7.85409 10.8903C7.81276 10.8994 7.77108 10.9086 7.72906 10.9179L5.21693 11.4762C5.1442 11.4924 5.07155 11.5001 5 11.5002V16.8C5 17.3766 5.00078 17.7488 5.02393 18.0322C5.04612 18.3038 5.0838 18.4045 5.109 18.454C5.20487 18.6422 5.35785 18.7951 5.54601 18.891C5.59546 18.9162 5.69617 18.9539 5.96784 18.9761C6.25118 18.9992 6.62345 19 7.2 19H10C10.5523 19 11 19.4477 11 20C11 20.5523 10.5523 21 10 21H7.16144C6.6343 21 6.17954 21 5.80497 20.9694C5.40963 20.9371 5.01641 20.8658 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3.13419 18.9836 3.06287 18.5904 3.03057 18.195C2.99997 17.8205 2.99998 17.3657 3 16.8385L3 11C3 8.92477 4.02755 6.93324 5.4804 5.4804C6.93324 4.02755 8.92477 3 11 3L16.8385 3C17.3657 2.99998 17.8205 2.99997 18.195 3.03057C18.5904 3.06287 18.9836 3.13419 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C20.8658 5.01641 20.9371 5.40963 20.9694 5.80497C21 6.17954 21 6.6343 21 7.16144V10C21 10.5523 20.5523 11 20 11C19.4477 11 19 10.5523 19 10V7.2C19 6.62345 18.9992 6.25118 18.9761 5.96784C18.9539 5.69617 18.9162 5.59546 18.891 5.54601C18.7951 5.35785 18.6422 5.20487 18.454 5.109C18.4045 5.0838 18.3038 5.04612 18.0322 5.02393ZM5.28014 9.41336L7.2952 8.96556C8.08861 8.78925 8.24308 8.74089 8.35381 8.67166C8.48251 8.59121 8.59121 8.48251 8.67166 8.35381C8.74089 8.24308 8.78925 8.08861 8.96556 7.2952L9.41336 5.28014C8.51014 5.59289 7.63524 6.15398 6.89461 6.89461C6.15398 7.63524 5.59289 8.51014 5.28014 9.41336ZM17 15C17 14.4477 17.4477 14 18 14C18.5523 14 19 14.4477 19 15V17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H19V21C19 21.5523 18.5523 22 18 22C17.4477 22 17 21.5523 17 21V19H15C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17H17V15Z", fill: "currentColor" }))), index.h("div", { key: 'f99fd5a9548e8c8a6b83fd7293f8eeeacdfb8ca6' }, "Upload Images"))), this.searchResultSettings.clearMemory && (index.h("li", { key: '9fbd7e0b3bcf9b4cd314c8c2235f33c2d9aeb243', class: "px-4 py-2 hover:bg-gray-100 cursor-pointer flex", onClick: e => {
554
+ }, ref: el => (this.uploadImageEle = el) }), index.h("div", { key: '8976435c8299fce092a49f2039e428f8b51ec2e7', class: "mr-1" }, index.h("svg", { key: '1aa5eb2d962ba453d1164c86fbaa83dd0d1ed856', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 shrink-0" }, index.h("path", { key: '513e092264ca8d8edcaf9a1b34902ae4309a1ce9', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M18.0322 5.02393C17.7488 5.00078 17.3766 5 16.8 5H11.5002C11.3 6 11.0989 6.91141 10.8903 7.85409C10.7588 8.44955 10.6432 8.97304 10.3675 9.41399C10.1262 9.80009 9.80009 10.1262 9.41399 10.3675C8.97304 10.6432 8.44955 10.7588 7.85409 10.8903C7.81276 10.8994 7.77108 10.9086 7.72906 10.9179L5.21693 11.4762C5.1442 11.4924 5.07155 11.5001 5 11.5002V16.8C5 17.3766 5.00078 17.7488 5.02393 18.0322C5.04612 18.3038 5.0838 18.4045 5.109 18.454C5.20487 18.6422 5.35785 18.7951 5.54601 18.891C5.59546 18.9162 5.69617 18.9539 5.96784 18.9761C6.25118 18.9992 6.62345 19 7.2 19H10C10.5523 19 11 19.4477 11 20C11 20.5523 10.5523 21 10 21H7.16144C6.6343 21 6.17954 21 5.80497 20.9694C5.40963 20.9371 5.01641 20.8658 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3.13419 18.9836 3.06287 18.5904 3.03057 18.195C2.99997 17.8205 2.99998 17.3657 3 16.8385L3 11C3 8.92477 4.02755 6.93324 5.4804 5.4804C6.93324 4.02755 8.92477 3 11 3L16.8385 3C17.3657 2.99998 17.8205 2.99997 18.195 3.03057C18.5904 3.06287 18.9836 3.13419 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C20.8658 5.01641 20.9371 5.40963 20.9694 5.80497C21 6.17954 21 6.6343 21 7.16144V10C21 10.5523 20.5523 11 20 11C19.4477 11 19 10.5523 19 10V7.2C19 6.62345 18.9992 6.25118 18.9761 5.96784C18.9539 5.69617 18.9162 5.59546 18.891 5.54601C18.7951 5.35785 18.6422 5.20487 18.454 5.109C18.4045 5.0838 18.3038 5.04612 18.0322 5.02393ZM5.28014 9.41336L7.2952 8.96556C8.08861 8.78925 8.24308 8.74089 8.35381 8.67166C8.48251 8.59121 8.59121 8.48251 8.67166 8.35381C8.74089 8.24308 8.78925 8.08861 8.96556 7.2952L9.41336 5.28014C8.51014 5.59289 7.63524 6.15398 6.89461 6.89461C6.15398 7.63524 5.59289 8.51014 5.28014 9.41336ZM17 15C17 14.4477 17.4477 14 18 14C18.5523 14 19 14.4477 19 15V17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H19V21C19 21.5523 18.5523 22 18 22C17.4477 22 17 21.5523 17 21V19H15C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17H17V15Z", fill: "currentColor" }))), index.h("div", { key: 'bc96f481f6c1f694d22bc2f0e45090b6c409938f' }, "Upload Images"))), this.searchResultSettings.clearMemory && (index.h("li", { key: 'afaebd68c41c143f3e112fa521d08da6818a8fca', class: "px-4 py-2 hover:bg-gray-100 cursor-pointer flex", onClick: e => {
553
555
  this.handleFollowUp(e);
554
556
  this.toggleBox(e);
555
- } }, index.h("div", { key: '7a2a5fad78711df38cf5f6340147d8141001b169', class: "mr-1" }, index.h("svg", { key: '7a2fda7c20e1e69c5df81a30b7ea2c756cc0fab9', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", width: "20", height: "20" }, index.h("path", { key: '9d23f382aa01099f85ac29fc32f0b3a0d8d1c601', "fill-rule": "evenodd", d: "M4.755 10.059a7.5 7.5 0 0 1 12.548-3.364l1.903 1.903h-3.183a.75.75 0 1 0 0 1.5h4.992a.75.75 0 0 0 .75-.75V4.356a.75.75 0 0 0-1.5 0v3.18l-1.9-1.9A9 9 0 0 0 3.306 9.67a.75.75 0 1 0 1.45.388Zm15.408 3.352a.75.75 0 0 0-.919.53 7.5 7.5 0 0 1-12.548 3.364l-1.902-1.903h3.183a.75.75 0 0 0 0-1.5H2.984a.75.75 0 0 0-.75.75v4.992a.75.75 0 0 0 1.5 0v-3.18l1.9 1.9a9 9 0 0 0 15.059-4.035.75.75 0 0 0-.53-.918Z", "clip-rule": "evenodd" }))), index.h("div", { key: '19cf3b291617cb9014e7173800e23ba5ee78ceb1' }, "Start Over")))))))), !this.hideAllButtons && (index.h("div", { key: '56282475cb3514d5680be227df1a3be774a29ec8', class: "w-full mt-1 search-input-container" }, index.h("div", { key: '815287ba90d69de149483aeeb313624a54cb8c9d', id: "previewContainer", class: "preview-container" }), index.h("label", { key: '7b158ad429a5fdad3f79d1e91f4e43363264cff6', htmlFor: "search-input", class: "sr-only" }, "Your message"), index.h("textarea", { key: '9d1c9f3b95fcfd6fcfc71624571430c8d6661e2d', id: "search-input", "aria-describedby": this.emptyMessageError ? "search-message-error search-hint" : "search-hint", "aria-invalid": this.emptyMessageError, class: `bg-inherit w-full outline-none resize-none ${((_a = this.searchResults) === null || _a === void 0 ? void 0 : _a.length) > 0 ? "input-border" : ""} search-input`, ref: el => {
557
+ } }, index.h("div", { key: 'a2e52cd39cfdecab8503b83fadbc1356d3f82683', class: "mr-1" }, index.h("svg", { key: 'b2900e23e74d5234d010fa127f28f92c93e3921a', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", width: "20", height: "20" }, index.h("path", { key: 'b384765e843e029b6034bf48034d3138a7e845f6', "fill-rule": "evenodd", d: "M4.755 10.059a7.5 7.5 0 0 1 12.548-3.364l1.903 1.903h-3.183a.75.75 0 1 0 0 1.5h4.992a.75.75 0 0 0 .75-.75V4.356a.75.75 0 0 0-1.5 0v3.18l-1.9-1.9A9 9 0 0 0 3.306 9.67a.75.75 0 1 0 1.45.388Zm15.408 3.352a.75.75 0 0 0-.919.53 7.5 7.5 0 0 1-12.548 3.364l-1.902-1.903h3.183a.75.75 0 0 0 0-1.5H2.984a.75.75 0 0 0-.75.75v4.992a.75.75 0 0 0 1.5 0v-3.18l1.9 1.9a9 9 0 0 0 15.059-4.035.75.75 0 0 0-.53-.918Z", "clip-rule": "evenodd" }))), index.h("div", { key: '5bb5de7e47a77c318d95ad665d164248529240bd' }, "Start Over")))))))), !this.hideAllButtons && (index.h("div", { key: '633ec465f15a67c3bbbad6b4453e95e92eceac53', class: "w-full mt-1 search-input-container" }, index.h("div", { key: '32e7a51ce13105f0e67a1821e4fea8548c24ff8c', id: "previewContainer", class: "preview-container" }), index.h("label", { key: '7b23a541d12437ac8e9d88da31a1e7f32ffd40ad', htmlFor: "search-input", class: "sr-only" }, "Your message"), index.h("textarea", { key: 'bc6b3e742fb74ee44cdf8bc8b59f6c3b14d381d5', id: "search-input", "aria-describedby": this.emptyMessageError ? "search-message-error search-hint" : "search-hint", "aria-invalid": this.emptyMessageError, class: `bg-inherit w-full outline-none resize-none ${((_a = this.searchResults) === null || _a === void 0 ? void 0 : _a.length) > 0 ? "input-border" : ""} search-input`, ref: el => {
556
558
  this.searchInputElem = el;
557
559
  el === null || el === void 0 ? void 0 : el.focus();
558
560
  }, placeholder: this.searchResultSettings.placeholder, value: this.query, rows: 1, onInput: event => this.handleInput(event), onKeyDown: this.handleKeyDown, onKeyUp: this.adjustHeight, onFocus: () => {
559
561
  this.el.shadowRoot.querySelector("#searchPanel").classList.add("input-focus-color");
560
- }, onBlur: () => this.el.shadowRoot.querySelector("#searchPanel").classList.remove("input-focus-color") }), index.h("div", { key: '47b59abf36d6bd25e63277cb879b14b77139f072', role: "status", "aria-live": "polite", "aria-atomic": "true", class: "sr-only" }, this.announceMessage), index.h("span", { key: 'e8e923eb721aff3f32c0edc8946c63f3f637be44', class: "sr-only" }, "Press Enter to send, Shift+Enter for new line"))), index.h("div", { key: '4e991673952e48d449a492026c25fe2cb0e6af89', class: `icons flex items-center space-x-2 ${this.hideAllButtons ? "w-full" : "w-auto"}` }, this.searchResultSettings.enableMic && (index.h("span", { key: '37e6110b974ad66b1b919545a10b5655026691bd', class: "w-full mic-icon" }, index.h("audio-recorder", { key: 'd047c395b1aa0aaf9540cebe747df802ff910496', "component-type": "search", onStartRecord: _ev => {
562
+ }, onBlur: () => this.el.shadowRoot.querySelector("#searchPanel").classList.remove("input-focus-color") }), index.h("div", { key: '66be72df5606a6fe6ae7b0ba051df126ccf2542a', role: "status", "aria-live": "polite", "aria-atomic": "true", class: "sr-only" }, this.announceMessage), index.h("span", { key: '8ee76dcdd0536e49a390d3e0b862b9ee353e7655', class: "sr-only" }, "Press Enter to send, Shift+Enter for new line"))), index.h("div", { key: 'f770127ea876b32d9a2453af4a5ed6470ea74652', class: `icons flex items-center space-x-2 ${this.hideAllButtons ? "w-full" : "w-auto"}` }, this.searchResultSettings.enableMic && (index.h("span", { key: 'a24400ed4763ff661c14f0ea4168f6a6e5a4bed9', class: "w-full mic-icon" }, index.h("audio-recorder", { key: '6e5d138dea73973f938601fed5883f48d77cd417', "component-type": "search", onStartRecord: _ev => {
561
563
  // console.log("test", ev)
562
564
  this.hideAllButtons = true;
563
565
  }, onStopRecord: _ev => {
@@ -576,13 +578,13 @@ const SearchResultsPage = class {
576
578
  });
577
579
  }
578
580
  }, 500);
579
- }, style: { width: "100%" } }))), !this.hideAllButtons && (index.h("span", { key: 'c70ecc73061059419b7580b3a8ec016aae79a78f', class: "search-icon" }, index.h("button", { key: 'b0098a988c6f647a5d18bb908333789203b8d175', id: "send-message-button", class: "text-white transition rounded-lg p-1.5 self-center submit-button chat-btn-primary", onClick: event => this.handleFormSubmit(event), "aria-label": "Send Message", tabindex: "0", title: "Send Message" }, index.h("svg", { key: 'f5f5384a893c6428da5191cd7027d69b74e1c8e6', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", class: "size-6" }, index.h("path", { key: 'e200594cb3c4f58dad9016ef9968d5279c5b1cd8', "fill-rule": "evenodd", d: "M8 14a.75.75 0 0 1-.75-.75V4.56L4.03 7.78a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.75 4.56v8.69A.75.75 0 0 1 8 14Z", "clip-rule": "evenodd" })))))))), this.chatHistory.length === 0 && (index.h("div", { key: 'a30ec62df38c0948ee2a26c64d8a3524af178d87', class: `enter-tip ${this.searchResultSettings.textareaAtBottom ? "order-2 mt-1" : "order-1 mb-1"}`, role: "tooltip" }, "Tip: Press Enter to send, Shift+Enter for new line"))), this.emptyMessageError && (index.h("div", { key: '87a60945124ce40e9335491a4c4edef1a9a650ff', class: `error-message-container ${this.searchResultSettings.textareaAtBottom ? "order-2 mt-1" : "order-1 mb-1"}` }, index.h("span", { key: 'c5c7c695e17258c14c0498bd10a6f83b7fc02465', id: "search-message-error", class: "error-msg", role: "alert" }, "Message cannot be empty. Please enter a message to send."))), index.h("div", { key: 'bc7b965e227d33c62191e2447b5af7e6ed62dbfc', class: `chat-content-wrapper flex-1 overflow-y-auto ${this.searchResultSettings.textareaAtBottom ? "order-1" : "order-2"}` }, this.isChat && (index.h("ai12z-chat", { key: '80d16cf07a767b3f5a8c86b64b2b05ae96ca721e',
581
+ }, style: { width: "100%" } }))), !this.hideAllButtons && (index.h("span", { key: 'c12ebf1ac66f486608704008b85dc886d539c7fb', class: "search-icon" }, index.h("button", { key: 'b3b6d4d486efa763c82b03901dd6b8a46c4cc154', id: "send-message-button", class: "text-white transition rounded-lg p-1.5 self-center submit-button chat-btn-primary", onClick: event => this.handleFormSubmit(event), "aria-label": "Send Message", tabindex: "0", title: "Send Message" }, index.h("svg", { key: '07887f3c09596501beba47f87440881c19514fe8', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", class: "size-6" }, index.h("path", { key: '21d89f94d3bf9b267e8849c1259f0915990d790c', "fill-rule": "evenodd", d: "M8 14a.75.75 0 0 1-.75-.75V4.56L4.03 7.78a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.75 4.56v8.69A.75.75 0 0 1 8 14Z", "clip-rule": "evenodd" })))))))), this.chatHistory.length === 0 && (index.h("div", { key: '5d455a4cb7be58228663610e8a8aed8db3a68fd0', class: `enter-tip ${this.searchResultSettings.textareaAtBottom ? "order-2 mt-1" : "order-1 mb-1"}`, role: "tooltip" }, "Tip: Press Enter to send, Shift+Enter for new line"))), this.emptyMessageError && (index.h("div", { key: '4625632d449c261e54104abc362b3bf7d564dc26', class: `error-message-container ${this.searchResultSettings.textareaAtBottom ? "order-2 mt-1" : "order-1 mb-1"}` }, index.h("span", { key: '32ab71efb8c6396374dd52bec753a672171de921', id: "search-message-error", class: "error-msg", role: "alert" }, "Message cannot be empty. Please enter a message to send."))), index.h("div", { key: 'b2d51f6b0689a965d33100aaff8ecec09747b74c', class: `chat-content-wrapper flex-1 overflow-y-auto ${this.searchResultSettings.textareaAtBottom ? "order-1" : "order-2"}` }, this.isChat && (index.h("ai12z-chat", { key: '9496bab4dbed86e3a84d0bf5076cc6da2f37b3c7',
580
582
  // socket={this.socket}
581
583
  chats: this.chatHistory, env: this.dataMode, query: this.query, apiKey: this.dataKey, aiMessageId: this.aiMessageId, imgFiles: this.imgFiles, target: (_b = this.searchResultSettings.linkTarget) !== null && _b !== void 0 ? _b : "_blank", voiceType: (_c = this.searchResultSettings.voiceType) !== null && _c !== void 0 ? _c : "default", voice: (_d = this.searchResultSettings.voice) !== null && _d !== void 0 ? _d : "Google US English", onFeedback: async (event) => {
582
584
  const { feedback, insightId } = event.detail;
583
585
  utils.sendFeedback(this.dataKey, this.dataMode, insightId, feedback);
584
- }, componentType: "search", dataAttributes: this.dataAttributes, socketIn: this.socketService, customJS: this.searchResultSettings.customJS, customstyle: this.searchResultSettings.customCSS, avatarUrl: this.searchResultSettings.botAvatar, settings: this.searchResultSettings })), this.showWelcomeTemplate && (index.h("div", { key: 'a9aad72d15e023cac75f7f77ddd8ff8e81a7d1b5', class: "welcome-template-container" }, index.h("div", { key: '3bd9befa93c4ba615dd3e89a38641dba9e1e7ba1', class: "welcome-template-content", innerHTML: (_e = this.searchResultSettings.welcome) === null || _e === void 0 ? void 0 : _e.message })))))), index.h("aside", { key: '567a46237b8ed757f33b15d4d7a2006e6d7c9e66', class: "quick-links-column", "aria-hidden": "true" }, this.searchResults && this.searchResults.length > 0 && (index.h("div", { key: '3fa34acaca471cf06dda61d4e3a870b8299051fb', class: { "search-results": this.searchResults && this.searchResults.length > 0 } }, index.h("h3", { key: '6998de65d81f0c269ead38ee34a69d7768a9e4cb', class: "title" }, "Sources"), this.searchResultSettings.categorize && (index.h("ai12z-category", { key: '9ca877f3362fd0db8da5b360341c4e7899181ea3', categoryList: this.searchResults, linkTarget: (_f = this.searchResultSettings.linkTarget) !== null && _f !== void 0 ? _f : "_blank" })), !this.searchResultSettings.categorize && index.h(SearchResult.SearchResult, { key: 'a8548ea4ede2244c879ffc747f4a88b39d98c352', results: this.searchResults, linkTarget: (_g = this.searchResultSettings.linkTarget) !== null && _g !== void 0 ? _g : "_blank" }))), !this.searchResults ||
585
- (this.searchResults.length === 0 && this.searchResultSettings.autoSearch && (index.h("div", { key: 'd5f54b0cd00daef3b9fca12f4ac55c90108555c0', class: "sources-panel" }, index.h("h3", { key: '12ee2ef054e81ff80e4b51e1c0e2df587aba656b', class: "title" }, "Sources"), index.h("div", { key: 'a2064c532a8c45ab7a276b29ecb649f8d78b350a', class: "skeleton-list" }, index.h("div", { key: '48f94b3d8a4e32ffd2a4d8fd04fc35ab57f0a916', class: "skeleton-line" }), index.h("div", { key: 'd4ae628639798ed7042cf566057407bd97a48cb5', class: "skeleton-line" }), index.h("div", { key: 'afffcb3536f319ddf4a369711af06f85bd9dd845', class: "skeleton-line short" }), index.h("div", { key: '570a7c60ca36469f71f8c8d56608a0675d744244', class: "divider" }), index.h("div", { key: '7df10951ab4415c7628a4feaccff5db49b46c310', class: "skeleton-line" }), index.h("div", { key: '93eff788b5d535702b013cd7597114cfb3e15dcd', class: "skeleton-line short" }), index.h("div", { key: '0216208144bf09c7bc430c76d63493f26ec263fd', class: "divider" }), index.h("div", { key: '29a4a1d59b8905bf78abe21307ee569dc1f30af1', class: "skeleton-line" }), index.h("div", { key: 'd3dff4636e37107fac5eb3262ddd5f07846cf7aa', class: "skeleton-line" }), index.h("div", { key: 'e4b133beb7466a5651deb63c656acb4c387bde2a', class: "skeleton-line short" }))))))))));
586
+ }, componentType: "search", dataAttributes: this.dataAttributes, socketIn: this.socketService, customJS: this.searchResultSettings.customJS, customstyle: this.searchResultSettings.customCSS, avatarUrl: this.searchResultSettings.botAvatar, settings: this.searchResultSettings, chatExcludeTags: this.excludeTags, chatIncludeTags: this.includeTags })), this.showWelcomeTemplate && (index.h("div", { key: '0e062ad629db17aa5f6212d7daa6ba70ce6245f7', class: "welcome-template-container" }, index.h("div", { key: '87b413b37072e53a4133316c137ebabb7267eb96', class: "welcome-template-content", innerHTML: (_e = this.searchResultSettings.welcome) === null || _e === void 0 ? void 0 : _e.message })))))), index.h("aside", { key: 'd168fae202eda591d448eaf9fbb0453adbeb94cc', class: "quick-links-column", "aria-hidden": "true" }, this.searchResults && this.searchResults.length > 0 && (index.h("div", { key: 'a92f1ff77f9860161b18d1313a45dd5d734b5c97', class: { "search-results": this.searchResults && this.searchResults.length > 0 } }, index.h("h3", { key: '71bf5a7f72267403a6535aae65e916c12aaf8285', class: "title" }, "Sources"), this.searchResultSettings.categorize && (index.h("ai12z-category", { key: '28547dfd54b745fda4a5061172d287d6f6f98495', categoryList: this.searchResults, linkTarget: (_f = this.searchResultSettings.linkTarget) !== null && _f !== void 0 ? _f : "_blank" })), !this.searchResultSettings.categorize && index.h(SearchResult.SearchResult, { key: 'd8cfccbeb544bcb02a8e41225bdfe444e19efb08', results: this.searchResults, linkTarget: (_g = this.searchResultSettings.linkTarget) !== null && _g !== void 0 ? _g : "_blank" }))), !this.searchResults ||
587
+ (this.searchResults.length === 0 && this.searchResultSettings.autoSearch && (index.h("div", { key: '3f95602d7be2c82c7ffed7e1092564404277b77a', class: "sources-panel" }, index.h("h3", { key: '0660bcef1874a7571ef7aecfa0f3ae68032832b7', class: "title" }, "Sources"), index.h("div", { key: '52143a135fe5dc08b2e9907171789946e10a7daf', class: "skeleton-list" }, index.h("div", { key: '2355bdb96a9c51b9ff51d61ae0e15e9a5f67e8ee', class: "skeleton-line" }), index.h("div", { key: '84894b13e0c67ec72d076596eb9d09736da55ff8', class: "skeleton-line" }), index.h("div", { key: '7f5ccb782498e5fc3a6d81c4273968eefd3af6d4', class: "skeleton-line short" }), index.h("div", { key: '5ce71fac1fa15c8b0f74f55c3fbfa0c00b6cde98', class: "divider" }), index.h("div", { key: '1b37d1170b94115993f46b69266be5684a8e9e10', class: "skeleton-line" }), index.h("div", { key: 'b3506ee820d26e3583fe984953ef08cee68fc829', class: "skeleton-line short" }), index.h("div", { key: '96e3c7e356e7f134ace331fcaa5e432368c85bd7', class: "divider" }), index.h("div", { key: '1a1e3a106ac30a46996fe4f94324d8bf92c7c105', class: "skeleton-line" }), index.h("div", { key: '7df3a9bade97604a2bb31cc1b71546d1e3f7be11', class: "skeleton-line" }), index.h("div", { key: '3bf3da0a602ddc6d25a270f45926fb157d89aab2', class: "skeleton-line short" }))))))))));
586
588
  }
587
589
  get el() { return index.getElement(this); }
588
590
  };
@@ -706,9 +706,7 @@ export class Ai12zBot {
706
706
  this.botSettings = Object.assign(Object.assign({}, this.botSettings), settings);
707
707
  }
708
708
  async componentWillLoad() {
709
- checkStatus(this.dataKey, this.dataMode).then(enable => {
710
- this.canRender = enable;
711
- });
709
+ this.canRender = await checkStatus(this.dataKey, this.dataMode);
712
710
  this.checkCustomSlot();
713
711
  this.timestamp = formatTimestamp(new Date());
714
712
  this.updateScreenSize();
@@ -313,9 +313,7 @@ export class Ai12zCta {
313
313
  this.formSubmitted.emit(event.detail.data);
314
314
  }
315
315
  async componentWillLoad() {
316
- checkStatus(this.dataKey, this.dataMode).then(enable => {
317
- this.canRender = enable;
318
- });
316
+ this.canRender = await checkStatus(this.dataKey, this.dataMode);
319
317
  insertStyles(`https://cdn.ai12z.net/assets/bot/v2/tailwind.min.css`, this.el);
320
318
  setParentComponentState("cta", this.dataKey, this.dataMode);
321
319
  await this.configCtaSettings();
@@ -11,6 +11,8 @@ export class SearchResultsPage {
11
11
  this.cdnPath = "https://cdn.ai12z.net/assets/cta";
12
12
  this.dataKey = Env.DATA_KEY || "";
13
13
  this.dataMode = Env.DATA_MODE || "prod";
14
+ this.excludeTags = [];
15
+ this.includeTags = [];
14
16
  this.query = "";
15
17
  this.searchResultSettings = {};
16
18
  this.searchResults = [];
@@ -532,25 +534,25 @@ export class SearchResultsPage {
532
534
  }
533
535
  render() {
534
536
  var _a, _b, _c, _d, _e, _f, _g;
535
- return (h("div", { key: 'ec064aedbd7df60d7c691d3a4a76488a37118747', class: "flex w-full" }, this.isRendered && (h("div", { key: '5cbc8b431d3efccedb34a2a030ff913eece4a78d', class: "search-layout" }, h("div", { key: '5b0a20311ef081fd4b5a0b1d8a2b71815359084a', class: "left-column" }, h("div", { key: 'cb58944fb5f951361277ec7e09632abba83ca6c3', class: `flex flex-col relative h-full`, id: "searchPanel" }, h("fieldset", { key: 'd5c28ccfef8d93ccfddd064873dbea24ac8e21b3', class: `chat-fieldset ${this.searchResultSettings.textareaAtBottom ? "order-2" : "order-1"}`, style: this.searchResultSettings.textareaAtBottom ? { position: "sticky", bottom: "0", zIndex: "1000" } : { position: "sticky", top: "0", zIndex: "1000" } }, h("form", { key: 'fa8fcd7a5b80a96496ab758fa50f1ea4200e4352', class: "flex flex-col rounded-2xl p-2.5 search-page-container", id: "searchForm" }, h("div", { key: '4e91c1706e40cb05b2a1ad3ad7ab002c910469dc', class: "flex" }, h("div", { key: 'db7eea833f3c26902fa13bfc9fdeebbaa0f4328d', class: "flex items-center justify-between" }, !this.hideAllButtons && (this.searchResultSettings.enableAttachment || this.searchResultSettings.clearMemory) && (h("div", { key: '484c11bff7f17a9920e8a75914dd7b96fdb4b86e', class: "relative inline-block", style: { width: "5%" } }, h("button", { key: '2c91b160c432564cfb5e9279cbbdbafc4d6dfd33', class: "plus-icon chat-btn-primary", "aria-label": "Add Options", title: "Add images or capture screen", tabindex: "0", onClick: e => {
537
+ return (h("div", { key: 'e460c9c93f9a8f02719c2a92bda77d49ebd71101', class: "flex w-full" }, this.isRendered && (h("div", { key: '651544be50ba6d832ad5f14bdb2bee3516822bff', class: "search-layout" }, h("div", { key: 'dda155418f8734941355541b5256c815c807bbb6', class: "left-column" }, h("div", { key: '321f41053a82455cc8989cad777189de0a6cc929', class: `flex flex-col relative h-full`, id: "searchPanel" }, h("fieldset", { key: '894e0c06e119556464f908932a9c1d1ddeccfb7a', class: `chat-fieldset ${this.searchResultSettings.textareaAtBottom ? "order-2" : "order-1"}`, style: this.searchResultSettings.textareaAtBottom ? { position: "sticky", bottom: "0", zIndex: "1000" } : { position: "sticky", top: "0", zIndex: "1000" } }, h("form", { key: 'ac837347407b570f2622eb6f5e42b21f3bf13bea', class: "flex flex-col rounded-2xl p-2.5 search-page-container", id: "searchForm" }, h("div", { key: 'db8aded895d30e68d474f92fbf390a94d994a687', class: "flex" }, h("div", { key: 'a2cc35c12e910d351724ff5f9da48df8924f0c61', class: "flex items-center justify-between" }, !this.hideAllButtons && (this.searchResultSettings.enableAttachment || this.searchResultSettings.clearMemory) && (h("div", { key: '132bc797eda5fa74226fb2219deedbf74c464bc3', class: "relative inline-block", style: { width: "5%" } }, h("button", { key: 'a147fbfa3ad67240c39122bfb9d5e151df0aa1ba', class: "plus-icon chat-btn-primary", "aria-label": "Add Options", title: "Add images or capture screen", tabindex: "0", onClick: e => {
536
538
  e.stopPropagation();
537
539
  e.preventDefault();
538
540
  this.toggleBox(e);
539
- } }, h("svg", { key: 'f876743296e6c9f29731551d6e60780d2d95a4d4', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", width: "20", height: "20" }, h("path", { key: 'ed87dd9ea50ced5010a92773e81e250cecc7798d', d: "M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z" }))), h("div", { key: '27814d695edee9426b5bd2e46abc0e983ce2da9b', class: `absolute left-0 ${this.searchResultSettings.textareaAtBottom ? "bottom-full mb-1" : "top-full mt-1"} w-48 bg-white rounded-lg shadow-lg transition-all duration-300 ease-in-out
540
- ${this.isOpen ? "opacity-100 scale-100 pointer-events-auto" : "opacity-0 scale-90 pointer-events-none"}`, style: { zIndex: "1001" }, ref: el => (this.menuElem = el) }, h("ul", { key: '3c2ae5dbaf9503d2df42f05378abf90fbddd4df6', class: "space-y-2" }, this.searchResultSettings.enableAttachment && (h("li", { key: 'd12d4418a7c8ab66c66537420074c0e4e1ff8eab', class: "px-4 py-2 hover:bg-gray-100 cursor-pointer flex", onClick: () => {
541
+ } }, h("svg", { key: '0e9b678990a6ab9cf3490d6cb5536936d1a32214', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", width: "20", height: "20" }, h("path", { key: '11b12145fe2eb09592ded58f2674e5bce3ec4642', d: "M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z" }))), h("div", { key: '4cc4fb57360a4a6af52edbc631a0888c70a1d537', class: `absolute left-0 ${this.searchResultSettings.textareaAtBottom ? "bottom-full mb-1" : "top-full mt-1"} w-48 bg-white rounded-lg shadow-lg transition-all duration-300 ease-in-out
542
+ ${this.isOpen ? "opacity-100 scale-100 pointer-events-auto" : "opacity-0 scale-90 pointer-events-none"}`, style: { zIndex: "1001" }, ref: el => (this.menuElem = el) }, h("ul", { key: 'a98c784810fdd087ac1ef95565bf009336e45441', class: "space-y-2" }, this.searchResultSettings.enableAttachment && (h("li", { key: '569863db10a23c4e134648599f026f3c51eb3f91', class: "px-4 py-2 hover:bg-gray-100 cursor-pointer flex", onClick: () => {
541
543
  this.uploadImageEle.click();
542
544
  this.isOpen = false;
543
- } }, h("input", { key: 'ae8bd139701e297c9d7e7e8e3c92bdd455ca94fd', type: "file", multiple: true, name: "files[]", id: "fileInput", accept: "image/*", class: "hidden image-upload__input", onChange: ($event) => {
545
+ } }, h("input", { key: '47ee3a42abc387ba4393dc1c9dd5fdab396f5dac', type: "file", multiple: true, name: "files[]", id: "fileInput", accept: "image/*", class: "hidden image-upload__input", onChange: ($event) => {
544
546
  this.onInputChange($event.target.files);
545
- }, ref: el => (this.uploadImageEle = el) }), h("div", { key: '5e964e9a5058284ee6733bc8d5173cc0a290dcae', class: "mr-1" }, h("svg", { key: '69f473fb93855c19cba439b248d2d45b6fcdb51b', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 shrink-0" }, h("path", { key: 'f3e1900b6a95611f32849de6b36f72f7e3e4d82f', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M18.0322 5.02393C17.7488 5.00078 17.3766 5 16.8 5H11.5002C11.3 6 11.0989 6.91141 10.8903 7.85409C10.7588 8.44955 10.6432 8.97304 10.3675 9.41399C10.1262 9.80009 9.80009 10.1262 9.41399 10.3675C8.97304 10.6432 8.44955 10.7588 7.85409 10.8903C7.81276 10.8994 7.77108 10.9086 7.72906 10.9179L5.21693 11.4762C5.1442 11.4924 5.07155 11.5001 5 11.5002V16.8C5 17.3766 5.00078 17.7488 5.02393 18.0322C5.04612 18.3038 5.0838 18.4045 5.109 18.454C5.20487 18.6422 5.35785 18.7951 5.54601 18.891C5.59546 18.9162 5.69617 18.9539 5.96784 18.9761C6.25118 18.9992 6.62345 19 7.2 19H10C10.5523 19 11 19.4477 11 20C11 20.5523 10.5523 21 10 21H7.16144C6.6343 21 6.17954 21 5.80497 20.9694C5.40963 20.9371 5.01641 20.8658 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3.13419 18.9836 3.06287 18.5904 3.03057 18.195C2.99997 17.8205 2.99998 17.3657 3 16.8385L3 11C3 8.92477 4.02755 6.93324 5.4804 5.4804C6.93324 4.02755 8.92477 3 11 3L16.8385 3C17.3657 2.99998 17.8205 2.99997 18.195 3.03057C18.5904 3.06287 18.9836 3.13419 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C20.8658 5.01641 20.9371 5.40963 20.9694 5.80497C21 6.17954 21 6.6343 21 7.16144V10C21 10.5523 20.5523 11 20 11C19.4477 11 19 10.5523 19 10V7.2C19 6.62345 18.9992 6.25118 18.9761 5.96784C18.9539 5.69617 18.9162 5.59546 18.891 5.54601C18.7951 5.35785 18.6422 5.20487 18.454 5.109C18.4045 5.0838 18.3038 5.04612 18.0322 5.02393ZM5.28014 9.41336L7.2952 8.96556C8.08861 8.78925 8.24308 8.74089 8.35381 8.67166C8.48251 8.59121 8.59121 8.48251 8.67166 8.35381C8.74089 8.24308 8.78925 8.08861 8.96556 7.2952L9.41336 5.28014C8.51014 5.59289 7.63524 6.15398 6.89461 6.89461C6.15398 7.63524 5.59289 8.51014 5.28014 9.41336ZM17 15C17 14.4477 17.4477 14 18 14C18.5523 14 19 14.4477 19 15V17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H19V21C19 21.5523 18.5523 22 18 22C17.4477 22 17 21.5523 17 21V19H15C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17H17V15Z", fill: "currentColor" }))), h("div", { key: 'f99fd5a9548e8c8a6b83fd7293f8eeeacdfb8ca6' }, "Upload Images"))), this.searchResultSettings.clearMemory && (h("li", { key: '9fbd7e0b3bcf9b4cd314c8c2235f33c2d9aeb243', class: "px-4 py-2 hover:bg-gray-100 cursor-pointer flex", onClick: e => {
547
+ }, ref: el => (this.uploadImageEle = el) }), h("div", { key: '8976435c8299fce092a49f2039e428f8b51ec2e7', class: "mr-1" }, h("svg", { key: '1aa5eb2d962ba453d1164c86fbaa83dd0d1ed856', width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 shrink-0" }, h("path", { key: '513e092264ca8d8edcaf9a1b34902ae4309a1ce9', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M18.0322 5.02393C17.7488 5.00078 17.3766 5 16.8 5H11.5002C11.3 6 11.0989 6.91141 10.8903 7.85409C10.7588 8.44955 10.6432 8.97304 10.3675 9.41399C10.1262 9.80009 9.80009 10.1262 9.41399 10.3675C8.97304 10.6432 8.44955 10.7588 7.85409 10.8903C7.81276 10.8994 7.77108 10.9086 7.72906 10.9179L5.21693 11.4762C5.1442 11.4924 5.07155 11.5001 5 11.5002V16.8C5 17.3766 5.00078 17.7488 5.02393 18.0322C5.04612 18.3038 5.0838 18.4045 5.109 18.454C5.20487 18.6422 5.35785 18.7951 5.54601 18.891C5.59546 18.9162 5.69617 18.9539 5.96784 18.9761C6.25118 18.9992 6.62345 19 7.2 19H10C10.5523 19 11 19.4477 11 20C11 20.5523 10.5523 21 10 21H7.16144C6.6343 21 6.17954 21 5.80497 20.9694C5.40963 20.9371 5.01641 20.8658 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3.13419 18.9836 3.06287 18.5904 3.03057 18.195C2.99997 17.8205 2.99998 17.3657 3 16.8385L3 11C3 8.92477 4.02755 6.93324 5.4804 5.4804C6.93324 4.02755 8.92477 3 11 3L16.8385 3C17.3657 2.99998 17.8205 2.99997 18.195 3.03057C18.5904 3.06287 18.9836 3.13419 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C20.8658 5.01641 20.9371 5.40963 20.9694 5.80497C21 6.17954 21 6.6343 21 7.16144V10C21 10.5523 20.5523 11 20 11C19.4477 11 19 10.5523 19 10V7.2C19 6.62345 18.9992 6.25118 18.9761 5.96784C18.9539 5.69617 18.9162 5.59546 18.891 5.54601C18.7951 5.35785 18.6422 5.20487 18.454 5.109C18.4045 5.0838 18.3038 5.04612 18.0322 5.02393ZM5.28014 9.41336L7.2952 8.96556C8.08861 8.78925 8.24308 8.74089 8.35381 8.67166C8.48251 8.59121 8.59121 8.48251 8.67166 8.35381C8.74089 8.24308 8.78925 8.08861 8.96556 7.2952L9.41336 5.28014C8.51014 5.59289 7.63524 6.15398 6.89461 6.89461C6.15398 7.63524 5.59289 8.51014 5.28014 9.41336ZM17 15C17 14.4477 17.4477 14 18 14C18.5523 14 19 14.4477 19 15V17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H19V21C19 21.5523 18.5523 22 18 22C17.4477 22 17 21.5523 17 21V19H15C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17H17V15Z", fill: "currentColor" }))), h("div", { key: 'bc96f481f6c1f694d22bc2f0e45090b6c409938f' }, "Upload Images"))), this.searchResultSettings.clearMemory && (h("li", { key: 'afaebd68c41c143f3e112fa521d08da6818a8fca', class: "px-4 py-2 hover:bg-gray-100 cursor-pointer flex", onClick: e => {
546
548
  this.handleFollowUp(e);
547
549
  this.toggleBox(e);
548
- } }, h("div", { key: '7a2a5fad78711df38cf5f6340147d8141001b169', class: "mr-1" }, h("svg", { key: '7a2fda7c20e1e69c5df81a30b7ea2c756cc0fab9', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", width: "20", height: "20" }, h("path", { key: '9d23f382aa01099f85ac29fc32f0b3a0d8d1c601', "fill-rule": "evenodd", d: "M4.755 10.059a7.5 7.5 0 0 1 12.548-3.364l1.903 1.903h-3.183a.75.75 0 1 0 0 1.5h4.992a.75.75 0 0 0 .75-.75V4.356a.75.75 0 0 0-1.5 0v3.18l-1.9-1.9A9 9 0 0 0 3.306 9.67a.75.75 0 1 0 1.45.388Zm15.408 3.352a.75.75 0 0 0-.919.53 7.5 7.5 0 0 1-12.548 3.364l-1.902-1.903h3.183a.75.75 0 0 0 0-1.5H2.984a.75.75 0 0 0-.75.75v4.992a.75.75 0 0 0 1.5 0v-3.18l1.9 1.9a9 9 0 0 0 15.059-4.035.75.75 0 0 0-.53-.918Z", "clip-rule": "evenodd" }))), h("div", { key: '19cf3b291617cb9014e7173800e23ba5ee78ceb1' }, "Start Over")))))))), !this.hideAllButtons && (h("div", { key: '56282475cb3514d5680be227df1a3be774a29ec8', class: "w-full mt-1 search-input-container" }, h("div", { key: '815287ba90d69de149483aeeb313624a54cb8c9d', id: "previewContainer", class: "preview-container" }), h("label", { key: '7b158ad429a5fdad3f79d1e91f4e43363264cff6', htmlFor: "search-input", class: "sr-only" }, "Your message"), h("textarea", { key: '9d1c9f3b95fcfd6fcfc71624571430c8d6661e2d', id: "search-input", "aria-describedby": this.emptyMessageError ? "search-message-error search-hint" : "search-hint", "aria-invalid": this.emptyMessageError, class: `bg-inherit w-full outline-none resize-none ${((_a = this.searchResults) === null || _a === void 0 ? void 0 : _a.length) > 0 ? "input-border" : ""} search-input`, ref: el => {
550
+ } }, h("div", { key: 'a2e52cd39cfdecab8503b83fadbc1356d3f82683', class: "mr-1" }, h("svg", { key: 'b2900e23e74d5234d010fa127f28f92c93e3921a', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", width: "20", height: "20" }, h("path", { key: 'b384765e843e029b6034bf48034d3138a7e845f6', "fill-rule": "evenodd", d: "M4.755 10.059a7.5 7.5 0 0 1 12.548-3.364l1.903 1.903h-3.183a.75.75 0 1 0 0 1.5h4.992a.75.75 0 0 0 .75-.75V4.356a.75.75 0 0 0-1.5 0v3.18l-1.9-1.9A9 9 0 0 0 3.306 9.67a.75.75 0 1 0 1.45.388Zm15.408 3.352a.75.75 0 0 0-.919.53 7.5 7.5 0 0 1-12.548 3.364l-1.902-1.903h3.183a.75.75 0 0 0 0-1.5H2.984a.75.75 0 0 0-.75.75v4.992a.75.75 0 0 0 1.5 0v-3.18l1.9 1.9a9 9 0 0 0 15.059-4.035.75.75 0 0 0-.53-.918Z", "clip-rule": "evenodd" }))), h("div", { key: '5bb5de7e47a77c318d95ad665d164248529240bd' }, "Start Over")))))))), !this.hideAllButtons && (h("div", { key: '633ec465f15a67c3bbbad6b4453e95e92eceac53', class: "w-full mt-1 search-input-container" }, h("div", { key: '32e7a51ce13105f0e67a1821e4fea8548c24ff8c', id: "previewContainer", class: "preview-container" }), h("label", { key: '7b23a541d12437ac8e9d88da31a1e7f32ffd40ad', htmlFor: "search-input", class: "sr-only" }, "Your message"), h("textarea", { key: 'bc6b3e742fb74ee44cdf8bc8b59f6c3b14d381d5', id: "search-input", "aria-describedby": this.emptyMessageError ? "search-message-error search-hint" : "search-hint", "aria-invalid": this.emptyMessageError, class: `bg-inherit w-full outline-none resize-none ${((_a = this.searchResults) === null || _a === void 0 ? void 0 : _a.length) > 0 ? "input-border" : ""} search-input`, ref: el => {
549
551
  this.searchInputElem = el;
550
552
  el === null || el === void 0 ? void 0 : el.focus();
551
553
  }, placeholder: this.searchResultSettings.placeholder, value: this.query, rows: 1, onInput: event => this.handleInput(event), onKeyDown: this.handleKeyDown, onKeyUp: this.adjustHeight, onFocus: () => {
552
554
  this.el.shadowRoot.querySelector("#searchPanel").classList.add("input-focus-color");
553
- }, onBlur: () => this.el.shadowRoot.querySelector("#searchPanel").classList.remove("input-focus-color") }), h("div", { key: '47b59abf36d6bd25e63277cb879b14b77139f072', role: "status", "aria-live": "polite", "aria-atomic": "true", class: "sr-only" }, this.announceMessage), h("span", { key: 'e8e923eb721aff3f32c0edc8946c63f3f637be44', class: "sr-only" }, "Press Enter to send, Shift+Enter for new line"))), h("div", { key: '4e991673952e48d449a492026c25fe2cb0e6af89', class: `icons flex items-center space-x-2 ${this.hideAllButtons ? "w-full" : "w-auto"}` }, this.searchResultSettings.enableMic && (h("span", { key: '37e6110b974ad66b1b919545a10b5655026691bd', class: "w-full mic-icon" }, h("audio-recorder", { key: 'd047c395b1aa0aaf9540cebe747df802ff910496', "component-type": "search", onStartRecord: _ev => {
555
+ }, onBlur: () => this.el.shadowRoot.querySelector("#searchPanel").classList.remove("input-focus-color") }), h("div", { key: '66be72df5606a6fe6ae7b0ba051df126ccf2542a', role: "status", "aria-live": "polite", "aria-atomic": "true", class: "sr-only" }, this.announceMessage), h("span", { key: '8ee76dcdd0536e49a390d3e0b862b9ee353e7655', class: "sr-only" }, "Press Enter to send, Shift+Enter for new line"))), h("div", { key: 'f770127ea876b32d9a2453af4a5ed6470ea74652', class: `icons flex items-center space-x-2 ${this.hideAllButtons ? "w-full" : "w-auto"}` }, this.searchResultSettings.enableMic && (h("span", { key: 'a24400ed4763ff661c14f0ea4168f6a6e5a4bed9', class: "w-full mic-icon" }, h("audio-recorder", { key: '6e5d138dea73973f938601fed5883f48d77cd417', "component-type": "search", onStartRecord: _ev => {
554
556
  // console.log("test", ev)
555
557
  this.hideAllButtons = true;
556
558
  }, onStopRecord: _ev => {
@@ -569,13 +571,13 @@ export class SearchResultsPage {
569
571
  });
570
572
  }
571
573
  }, 500);
572
- }, style: { width: "100%" } }))), !this.hideAllButtons && (h("span", { key: 'c70ecc73061059419b7580b3a8ec016aae79a78f', class: "search-icon" }, h("button", { key: 'b0098a988c6f647a5d18bb908333789203b8d175', id: "send-message-button", class: "text-white transition rounded-lg p-1.5 self-center submit-button chat-btn-primary", onClick: event => this.handleFormSubmit(event), "aria-label": "Send Message", tabindex: "0", title: "Send Message" }, h("svg", { key: 'f5f5384a893c6428da5191cd7027d69b74e1c8e6', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", class: "size-6" }, h("path", { key: 'e200594cb3c4f58dad9016ef9968d5279c5b1cd8', "fill-rule": "evenodd", d: "M8 14a.75.75 0 0 1-.75-.75V4.56L4.03 7.78a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.75 4.56v8.69A.75.75 0 0 1 8 14Z", "clip-rule": "evenodd" })))))))), this.chatHistory.length === 0 && (h("div", { key: 'a30ec62df38c0948ee2a26c64d8a3524af178d87', class: `enter-tip ${this.searchResultSettings.textareaAtBottom ? "order-2 mt-1" : "order-1 mb-1"}`, role: "tooltip" }, "Tip: Press Enter to send, Shift+Enter for new line"))), this.emptyMessageError && (h("div", { key: '87a60945124ce40e9335491a4c4edef1a9a650ff', class: `error-message-container ${this.searchResultSettings.textareaAtBottom ? "order-2 mt-1" : "order-1 mb-1"}` }, h("span", { key: 'c5c7c695e17258c14c0498bd10a6f83b7fc02465', id: "search-message-error", class: "error-msg", role: "alert" }, "Message cannot be empty. Please enter a message to send."))), h("div", { key: 'bc7b965e227d33c62191e2447b5af7e6ed62dbfc', class: `chat-content-wrapper flex-1 overflow-y-auto ${this.searchResultSettings.textareaAtBottom ? "order-1" : "order-2"}` }, this.isChat && (h("ai12z-chat", { key: '80d16cf07a767b3f5a8c86b64b2b05ae96ca721e',
574
+ }, style: { width: "100%" } }))), !this.hideAllButtons && (h("span", { key: 'c12ebf1ac66f486608704008b85dc886d539c7fb', class: "search-icon" }, h("button", { key: 'b3b6d4d486efa763c82b03901dd6b8a46c4cc154', id: "send-message-button", class: "text-white transition rounded-lg p-1.5 self-center submit-button chat-btn-primary", onClick: event => this.handleFormSubmit(event), "aria-label": "Send Message", tabindex: "0", title: "Send Message" }, h("svg", { key: '07887f3c09596501beba47f87440881c19514fe8', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", class: "size-6" }, h("path", { key: '21d89f94d3bf9b267e8849c1259f0915990d790c', "fill-rule": "evenodd", d: "M8 14a.75.75 0 0 1-.75-.75V4.56L4.03 7.78a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.75 4.56v8.69A.75.75 0 0 1 8 14Z", "clip-rule": "evenodd" })))))))), this.chatHistory.length === 0 && (h("div", { key: '5d455a4cb7be58228663610e8a8aed8db3a68fd0', class: `enter-tip ${this.searchResultSettings.textareaAtBottom ? "order-2 mt-1" : "order-1 mb-1"}`, role: "tooltip" }, "Tip: Press Enter to send, Shift+Enter for new line"))), this.emptyMessageError && (h("div", { key: '4625632d449c261e54104abc362b3bf7d564dc26', class: `error-message-container ${this.searchResultSettings.textareaAtBottom ? "order-2 mt-1" : "order-1 mb-1"}` }, h("span", { key: '32ab71efb8c6396374dd52bec753a672171de921', id: "search-message-error", class: "error-msg", role: "alert" }, "Message cannot be empty. Please enter a message to send."))), h("div", { key: 'b2d51f6b0689a965d33100aaff8ecec09747b74c', class: `chat-content-wrapper flex-1 overflow-y-auto ${this.searchResultSettings.textareaAtBottom ? "order-1" : "order-2"}` }, this.isChat && (h("ai12z-chat", { key: '9496bab4dbed86e3a84d0bf5076cc6da2f37b3c7',
573
575
  // socket={this.socket}
574
576
  chats: this.chatHistory, env: this.dataMode, query: this.query, apiKey: this.dataKey, aiMessageId: this.aiMessageId, imgFiles: this.imgFiles, target: (_b = this.searchResultSettings.linkTarget) !== null && _b !== void 0 ? _b : "_blank", voiceType: (_c = this.searchResultSettings.voiceType) !== null && _c !== void 0 ? _c : "default", voice: (_d = this.searchResultSettings.voice) !== null && _d !== void 0 ? _d : "Google US English", onFeedback: async (event) => {
575
577
  const { feedback, insightId } = event.detail;
576
578
  sendFeedback(this.dataKey, this.dataMode, insightId, feedback);
577
- }, componentType: "search", dataAttributes: this.dataAttributes, socketIn: this.socketService, customJS: this.searchResultSettings.customJS, customstyle: this.searchResultSettings.customCSS, avatarUrl: this.searchResultSettings.botAvatar, settings: this.searchResultSettings })), this.showWelcomeTemplate && (h("div", { key: 'a9aad72d15e023cac75f7f77ddd8ff8e81a7d1b5', class: "welcome-template-container" }, h("div", { key: '3bd9befa93c4ba615dd3e89a38641dba9e1e7ba1', class: "welcome-template-content", innerHTML: (_e = this.searchResultSettings.welcome) === null || _e === void 0 ? void 0 : _e.message })))))), h("aside", { key: '567a46237b8ed757f33b15d4d7a2006e6d7c9e66', class: "quick-links-column", "aria-hidden": "true" }, this.searchResults && this.searchResults.length > 0 && (h("div", { key: '3fa34acaca471cf06dda61d4e3a870b8299051fb', class: { "search-results": this.searchResults && this.searchResults.length > 0 } }, h("h3", { key: '6998de65d81f0c269ead38ee34a69d7768a9e4cb', class: "title" }, "Sources"), this.searchResultSettings.categorize && (h("ai12z-category", { key: '9ca877f3362fd0db8da5b360341c4e7899181ea3', categoryList: this.searchResults, linkTarget: (_f = this.searchResultSettings.linkTarget) !== null && _f !== void 0 ? _f : "_blank" })), !this.searchResultSettings.categorize && h(SearchResult, { key: 'a8548ea4ede2244c879ffc747f4a88b39d98c352', results: this.searchResults, linkTarget: (_g = this.searchResultSettings.linkTarget) !== null && _g !== void 0 ? _g : "_blank" }))), !this.searchResults ||
578
- (this.searchResults.length === 0 && this.searchResultSettings.autoSearch && (h("div", { key: 'd5f54b0cd00daef3b9fca12f4ac55c90108555c0', class: "sources-panel" }, h("h3", { key: '12ee2ef054e81ff80e4b51e1c0e2df587aba656b', class: "title" }, "Sources"), h("div", { key: 'a2064c532a8c45ab7a276b29ecb649f8d78b350a', class: "skeleton-list" }, h("div", { key: '48f94b3d8a4e32ffd2a4d8fd04fc35ab57f0a916', class: "skeleton-line" }), h("div", { key: 'd4ae628639798ed7042cf566057407bd97a48cb5', class: "skeleton-line" }), h("div", { key: 'afffcb3536f319ddf4a369711af06f85bd9dd845', class: "skeleton-line short" }), h("div", { key: '570a7c60ca36469f71f8c8d56608a0675d744244', class: "divider" }), h("div", { key: '7df10951ab4415c7628a4feaccff5db49b46c310', class: "skeleton-line" }), h("div", { key: '93eff788b5d535702b013cd7597114cfb3e15dcd', class: "skeleton-line short" }), h("div", { key: '0216208144bf09c7bc430c76d63493f26ec263fd', class: "divider" }), h("div", { key: '29a4a1d59b8905bf78abe21307ee569dc1f30af1', class: "skeleton-line" }), h("div", { key: 'd3dff4636e37107fac5eb3262ddd5f07846cf7aa', class: "skeleton-line" }), h("div", { key: 'e4b133beb7466a5651deb63c656acb4c387bde2a', class: "skeleton-line short" }))))))))));
579
+ }, componentType: "search", dataAttributes: this.dataAttributes, socketIn: this.socketService, customJS: this.searchResultSettings.customJS, customstyle: this.searchResultSettings.customCSS, avatarUrl: this.searchResultSettings.botAvatar, settings: this.searchResultSettings, chatExcludeTags: this.excludeTags, chatIncludeTags: this.includeTags })), this.showWelcomeTemplate && (h("div", { key: '0e062ad629db17aa5f6212d7daa6ba70ce6245f7', class: "welcome-template-container" }, h("div", { key: '87b413b37072e53a4133316c137ebabb7267eb96', class: "welcome-template-content", innerHTML: (_e = this.searchResultSettings.welcome) === null || _e === void 0 ? void 0 : _e.message })))))), h("aside", { key: 'd168fae202eda591d448eaf9fbb0453adbeb94cc', class: "quick-links-column", "aria-hidden": "true" }, this.searchResults && this.searchResults.length > 0 && (h("div", { key: 'a92f1ff77f9860161b18d1313a45dd5d734b5c97', class: { "search-results": this.searchResults && this.searchResults.length > 0 } }, h("h3", { key: '71bf5a7f72267403a6535aae65e916c12aaf8285', class: "title" }, "Sources"), this.searchResultSettings.categorize && (h("ai12z-category", { key: '28547dfd54b745fda4a5061172d287d6f6f98495', categoryList: this.searchResults, linkTarget: (_f = this.searchResultSettings.linkTarget) !== null && _f !== void 0 ? _f : "_blank" })), !this.searchResultSettings.categorize && h(SearchResult, { key: 'd8cfccbeb544bcb02a8e41225bdfe444e19efb08', results: this.searchResults, linkTarget: (_g = this.searchResultSettings.linkTarget) !== null && _g !== void 0 ? _g : "_blank" }))), !this.searchResults ||
580
+ (this.searchResults.length === 0 && this.searchResultSettings.autoSearch && (h("div", { key: '3f95602d7be2c82c7ffed7e1092564404277b77a', class: "sources-panel" }, h("h3", { key: '0660bcef1874a7571ef7aecfa0f3ae68032832b7', class: "title" }, "Sources"), h("div", { key: '52143a135fe5dc08b2e9907171789946e10a7daf', class: "skeleton-list" }, h("div", { key: '2355bdb96a9c51b9ff51d61ae0e15e9a5f67e8ee', class: "skeleton-line" }), h("div", { key: '84894b13e0c67ec72d076596eb9d09736da55ff8', class: "skeleton-line" }), h("div", { key: '7f5ccb782498e5fc3a6d81c4273968eefd3af6d4', class: "skeleton-line short" }), h("div", { key: '5ce71fac1fa15c8b0f74f55c3fbfa0c00b6cde98', class: "divider" }), h("div", { key: '1b37d1170b94115993f46b69266be5684a8e9e10', class: "skeleton-line" }), h("div", { key: 'b3506ee820d26e3583fe984953ef08cee68fc829', class: "skeleton-line short" }), h("div", { key: '96e3c7e356e7f134ace331fcaa5e432368c85bd7', class: "divider" }), h("div", { key: '1a1e3a106ac30a46996fe4f94324d8bf92c7c105', class: "skeleton-line" }), h("div", { key: '7df3a9bade97604a2bb31cc1b71546d1e3f7be11', class: "skeleton-line" }), h("div", { key: '3bf3da0a602ddc6d25a270f45926fb157d89aab2', class: "skeleton-line short" }))))))))));
579
581
  }
580
582
  static get is() { return "search-results-page"; }
581
583
  static get encapsulation() { return "shadow"; }
@@ -650,6 +652,52 @@ export class SearchResultsPage {
650
652
  "reflect": false,
651
653
  "attribute": "data-attributes"
652
654
  },
655
+ "excludeTags": {
656
+ "type": "unknown",
657
+ "mutable": false,
658
+ "complexType": {
659
+ "original": "Array<string>",
660
+ "resolved": "string[]",
661
+ "references": {
662
+ "Array": {
663
+ "location": "global",
664
+ "id": "global::Array"
665
+ }
666
+ }
667
+ },
668
+ "required": false,
669
+ "optional": false,
670
+ "docs": {
671
+ "tags": [],
672
+ "text": ""
673
+ },
674
+ "getter": false,
675
+ "setter": false,
676
+ "defaultValue": "[]"
677
+ },
678
+ "includeTags": {
679
+ "type": "unknown",
680
+ "mutable": false,
681
+ "complexType": {
682
+ "original": "Array<string>",
683
+ "resolved": "string[]",
684
+ "references": {
685
+ "Array": {
686
+ "location": "global",
687
+ "id": "global::Array"
688
+ }
689
+ }
690
+ },
691
+ "required": false,
692
+ "optional": false,
693
+ "docs": {
694
+ "tags": [],
695
+ "text": ""
696
+ },
697
+ "getter": false,
698
+ "setter": false,
699
+ "defaultValue": "[]"
700
+ },
653
701
  "configId": {
654
702
  "type": "string",
655
703
  "mutable": false,
@@ -1 +1 @@
1
- import{A as o,d as r}from"./p-BuetJrTJ.js";const s=o,t=r;export{s as Ai12zBot,t as defineCustomElement}
1
+ import{A as o,d as s}from"./p-T7hfVn0q.js";const p=o,r=s;export{p as Ai12zBot,r as defineCustomElement}
@@ -1 +1 @@
1
- import{A as s,d as o}from"./p-JjsXw6fP.js";const p=s,r=o;export{p as Ai12zCta,r as defineCustomElement}
1
+ import{A as o,d as s}from"./p-c9R9wdZM.js";const p=o,r=s;export{p as Ai12zCta,r as defineCustomElement}
@@ -1 +1 @@
1
- import{g as e}from"./p-ZGVz1_9H.js";export{a as getAssetPath,r as render,s as setAssetPath,b as setNonce,c as setPlatformOptions}from"./p-ZGVz1_9H.js";export{A as Ai12zBot}from"./p-BuetJrTJ.js";export{A as Ai12zCta}from"./p-JjsXw6fP.js";export{A as Ai12zKnowledgeBox}from"./p-DrX20dxC.js";export{S as Ai12zSearchPanel}from"./p-BmUFHK-0.js";export{S as Ai12zSearchResultsPage}from"./p-DFbjYQGk.js";export{A as Ai12zInlineSearch}from"./p-BNi-pmSE.js";export{A as Ai12zForm}from"./p-C9rXDQ8C.js";export{A as Ai12zContainer}from"./p-BvLFdH7U.js";e();
1
+ import{g as e}from"./p-ZGVz1_9H.js";export{a as getAssetPath,r as render,s as setAssetPath,b as setNonce,c as setPlatformOptions}from"./p-ZGVz1_9H.js";export{A as Ai12zBot}from"./p-T7hfVn0q.js";export{A as Ai12zCta}from"./p-c9R9wdZM.js";export{A as Ai12zKnowledgeBox}from"./p-DrX20dxC.js";export{S as Ai12zSearchPanel}from"./p-BmUFHK-0.js";export{S as Ai12zSearchResultsPage}from"./p-C81g_cTG.js";export{A as Ai12zInlineSearch}from"./p-BNi-pmSE.js";export{A as Ai12zForm}from"./p-C9rXDQ8C.js";export{A as Ai12zContainer}from"./p-BvLFdH7U.js";e();