ai12z 3.15.1-alpha.2 → 3.15.1-alpha.3
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.
- package/dist/cjs/library.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/search-results-page.cjs.entry.js +12 -10
- package/dist/collection/components/ai12z-search-panel/search-results-view.js +58 -10
- package/dist/components/index.js +1 -1
- package/dist/components/p-C81g_cTG.js +1 -0
- package/dist/components/search-results-page.js +1 -1
- package/dist/esm/library.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/search-results-page.entry.js +12 -10
- package/dist/library/library.esm.js +1 -1
- package/dist/library/p-1b526a0b.entry.js +1 -0
- package/dist/types/components/ai12z-search-panel/search-results-view.d.ts +2 -0
- package/dist/types/components.d.ts +16 -0
- package/package.json +2 -2
- package/dist/components/p-DFbjYQGk.js +0 -1
- package/dist/library/p-c358d136.entry.js +0 -1
package/dist/cjs/library.cjs.js
CHANGED
|
@@ -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;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
585
|
-
(this.searchResults.length === 0 && this.searchResultSettings.autoSearch && (index.h("div", { key: '
|
|
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
|
};
|
|
@@ -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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
578
|
-
(this.searchResults.length === 0 && this.searchResultSettings.autoSearch && (h("div", { key: '
|
|
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,
|
package/dist/components/index.js
CHANGED
|
@@ -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-
|
|
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-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();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as t,H as s,d as i,E as a,e as o,h as r}from"./p-ZGVz1_9H.js";import{d as c,o as n,i as l,p as h,F as d,a as f,r as u}from"./p-DBIwC6w6.js";import{d as b,S as m}from"./p-Cul4gRY4.js";import{d as p,S as g}from"./p-H_Oufd6v.js";import{n as v,m as y,k,a as w,i as x}from"./p-DtdLjSwM.js";import{e as C}from"./p-Crr5-qOu.js";import{d as z}from"./p-BkJ2N8cm.js";const S=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.messageSent=i(this,"messageSent",7),this.messageReceived=i(this,"messageReceived",7),this.errored=i(this,"errored",7),this.startStream=i(this,"startStream",7),this.cdnPath="https://cdn.ai12z.net/assets/cta",this.dataKey=a.DATA_KEY||"",this.dataMode=a.DATA_MODE||"prod",this.excludeTags=[],this.includeTags=[],this.query="",this.searchResultSettings={},this.searchResults=[],this.hideAllButtons=!1,this.isChat=!1,this.chatHistory=[],this.aiMessageId=null,this.thumbsId=null,this.isOpen=!1,this.capturedFile=null,this.imgFiles=[],this.displayText="",this.questionCounter=0,this.emptyMessageError=!1,this.announceMessage="",this.isRendered=!1,this.imagesBase64List=[],this.handleKeyDown=e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),this.query&&this.query.trim().length>0||this.imagesBase64List.length>0?this.handleFormSubmit(e):(this.emptyMessageError=!0,this.searchInputElem&&this.searchInputElem.focus(),setTimeout((()=>{this.emptyMessageError=!1}),3e3)))},this.adjustHeight=()=>{this.searchInputElem.style.height="auto",this.searchInputElem.style.height=this.searchInputElem.scrollHeight+"px"},this.toggleBox=e=>{e.stopPropagation(),this.isOpen=!this.isOpen},this.handleClickOutside=e=>{this.isOpen&&this.menuElem&&!this.menuElem.contains(e.target)&&(this.isOpen=!1)}}async fetchSearchResults(){const e=await n(this.dataKey,this.dataMode,this.query),t=e.docs?[...e.docs]:[];this.searchResults=[],setTimeout((()=>{this.searchResults=t}),0)}messageReceivedHandler(e){e.detail&&e.detail.data.context&&e.detail.data.context.length>0&&this.searchResultSettings.autoSearch&&(this.searchResults=e.detail.data.context||[])}async sendMessage(e,t){this.query=null!=t?t:e,this.handleFormSubmit(new SubmitEvent("submit")),this.messageSent.emit(e)}async sendJSON(e,t){this.displayText=t,this.query=e,this.handleFormSubmit(new SubmitEvent("submit")),this.messageSent.emit(e)}async configSearchSettings(){var e,t,s,i;const a={apiKey:this.dataKey,configId:this.configId,configType:"searchResult"};try{const o=await l(a,this.dataMode);if(o){if(this.searchResultSettings=o,null===(e=null==o?void 0:o.v3)||void 0===e?void 0:e.siteKey)try{const e=await C(o._id,o.v3.siteKey,"searchResult",this.dataKey,this.dataMode,(e=>{this.errored.emit(e)}));this.isRendered=!!e}catch(e){console.error("Recaptcha verification failed:",e),this.isRendered=!1}else this.isRendered=!0;if(void 0===(null===(t=this.searchResultSettings)||void 0===t?void 0:t.autoSearch)&&(this.searchResultSettings.autoSearch=!0),this.searchResultSettings.theme){let e="";e="custom"!==this.searchResultSettings.theme?`${this.cdnPath}/v2/themes/theme-${this.searchResultSettings.theme}.css`:this.searchResultSettings.customTheme;const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.appendChild(t)}if(void 0===(null===(s=this.searchResultSettings)||void 0===s?void 0:s.categorize)&&(this.searchResultSettings.categorize=!0),this.searchResultSettings.customCSS&&this.insertCustomCSS(this.searchResultSettings.customCSS),this.searchResultSettings.welcome&&this.invokeWelcomeAssets(),this.searchResultSettings.customJS){const e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src",this.searchResultSettings.customJS),null===(i=this.el.shadowRoot)||void 0===i||i.appendChild(e)}this.searchResultSettings.textareaAtBottom=!!this.searchResultSettings.hasOwnProperty("inputFieldPosition")&&"bottom"===this.searchResultSettings.inputFieldPosition}}catch(e){console.error("Error loading configuration:",e)}}async invokeWelcomeAssets(){await this.loadWelcomeAssets()}insertCustomCSS(e){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e);const s=this.el.shadowRoot;s&&s.appendChild(t)}async componentWillLoad(){h("https://cdn.ai12z.net/assets/bot/v2/tailwind.min.css",this.el);const e=new URLSearchParams(window.location.search);this.query=e.get("searchText"),await this.configSearchSettings(),document.addEventListener("click",this.handleClickOutside)}async componentDidLoad(){if(d(this.el),o.register("ai12z-search-results-page",this),o.setActive("ai12z-search-results-page"),this.query&&this.query.length>0){const e=this.el.shadowRoot.querySelector("#search-input");if(e){const t=new InputEvent("input",{bubbles:!0});Object.defineProperty(t,"target",{writable:!1,value:e}),e.value=this.query,this.searchResultSettings.loadResults&&this.query.length>3?(await this.fetchSearchResults(),this.handleFormSubmit(new SubmitEvent("submit"))):this.handleFormSubmit(new SubmitEvent("submit")),e.dispatchEvent(t)}}}disconnectedCallback(){document.removeEventListener("click",this.handleClickOutside)}surveyHandler(e){if("button"===e.detail.type)this.query=e.detail.results,this.handleFormSubmit(new SubmitEvent("submit"));else if("carousel"===e.detail.type)this.chatHistory=[...this.chatHistory,e.detail.results];else if("update"===e.detail.type){const t=this.chatHistory.findIndex((t=>t.id===e.detail.results.id));this.chatHistory=[...this.chatHistory.slice(0,t),e.detail.results,...this.chatHistory.slice(t+1)]}else if("sendMessage"===e.detail.type)e.detail.results.length>1?(this.displayText=e.detail.results[1],this.query=e.detail.results[0],this.handleFormSubmit(new SubmitEvent("submit"))):(this.query=e.detail.results[0],this.handleFormSubmit(new SubmitEvent("submit")));else if("sendJSON"===e.detail.type)this.displayText=e.detail.results[1],this.query=e.detail.results[0],this.handleFormSubmit(new SubmitEvent("submit"));else{const t=e.detail,s=`This JSON is from a form submission [${t.keyName}]: ${JSON.stringify(t.results,null,2)}. There is no need to show the form [${t.keyName}] again.`;this.query=s,this.displayText=t.completeText,this.handleFormSubmit(new SubmitEvent("submit"),{isHide:!0})}}async handleInput(e){if(this.query=e.target.value,this.query.trim().length>3)this.searchResultSettings.autoSearch&&this.fetchSearchResults();else if(!this.isChat)return this.showWelcomeTemplate=!0,void(this.searchResults=[])}async loadWelcomeAssets(){var e,t;const s=[];if(null===(e=this.searchResultSettings.welcome)||void 0===e?void 0:e.styles){const e=new Promise((e=>{v(this.el.shadowRoot,this.searchResultSettings.welcome.styles),setTimeout(e,100)}));s.push(e)}if(null===(t=this.searchResultSettings.welcome)||void 0===t?void 0:t.scripts){const e=new Promise((e=>{y(this.el.shadowRoot,this.searchResultSettings.welcome.scripts),setTimeout(e,200)}));s.push(e)}await Promise.all(s),this.query&&0!==this.query.length||(this.showWelcomeTemplate=!0)}startTimer(){var e;this.timer=k((()=>{this.questionCounter=0,w("ai12z-search-result-data",{qCounter:this.questionCounter})}),null===(e=this.searchResultSettings)||void 0===e?void 0:e.autoResetTimer)}announce(e){this.announceMessage=e,setTimeout((()=>{this.announceMessage=""}),1e3)}async handleFormSubmit(e,t){var s,i,a;if(e.stopPropagation(),e.preventDefault(),(!this.query||0===this.query.trim().length)&&this.imagesBase64List&&this.imagesBase64List.length<1)return this.emptyMessageError=!0,this.searchInputElem&&this.searchInputElem.focus(),void setTimeout((()=>{this.emptyMessageError=!1}),3e3);this.emptyMessageError=!1,this.announce("Message sent successfully"),this.showWelcomeTemplate=!1,this.isChat=!0,this.isChat&&(this.questionCounter++,w("ai12z-search-result-data",{qCounter:this.questionCounter})),0===this.chatHistory.length&&(null===(s=this.searchResultSettings)||void 0===s?void 0:s.autoResetTimer)>0&&this.isChat&&this.startTimer(),0!==this.chatHistory.length||this.socketService||(this.socketService=g.createInstance(this.dataMode,this.dataKey),await this.socketService.waitForConnection());try{let e={answer:"",formModel:null,insight_id:null};this.chatHistory.push({message:this.displayText?this.displayText:this.query,images:this.imagesBase64List,status:"success",type:"user",isHide:(null==t?void 0:t.isHide)||!1}),this.imgFiles=this.imagesBase64List.length>0?this.imagesBase64List:[],e.answer=(null===(i=this.searchResultSettings)||void 0===i?void 0:i.maxQuestion)>0&&this.questionCounter>(null===(a=this.searchResultSettings)||void 0===a?void 0:a.maxQuestion)?this.searchResultSettings.msgLimit:null==e?void 0:e.answer,this.aiMessageId="",this.thumbsId=f(),this.chatHistory.push({message:'<div class="animate-ping">...</div>',type:"ai",status:"pending",id:this.aiMessageId}),this.chatHistory.pop(),this.chatHistory=[...this.chatHistory,{message:null==e?void 0:e.answer,type:"ai",status:"success",insightId:null==e?void 0:e.insight_id,id:this.aiMessageId,thumbsId:this.thumbsId,formModel:null==e?void 0:e.formModel,isLoading:!0}],requestAnimationFrame((()=>{requestAnimationFrame((()=>{var e;x(this.questionCounter,null===(e=this.searchResultSettings)||void 0===e?void 0:e.maxQuestion)?(this.chatHistory[this.chatHistory.length-1].id=`chatbot-${f()}`,this.startStream.emit({search:this.query,maxQuestion:!0,chatData:this.chatHistory[this.chatHistory.length-1]})):this.startStream.emit({search:this.query,imgFiles:this.imgFiles})}))})),setTimeout((()=>{this.query="",this.displayText="",this.searchInputElem.value="",this.imagesBase64List=[];const e=this.el.shadowRoot.querySelector("#previewContainer");e&&(e.innerHTML=""),this.adjustHeight()}),1e3)}catch(e){console.error("Error:",e)}}onInputChange(e){if(!(e.length>0))return console.error(0===e.length||"NO IMAGE UPLOADED"),!1;this.uploadImage(e)}uploadImage(e){let t,s=[];if(!(e.length>10||this.imagesBase64List.length>10))for(var i=0;i<e.length;i++){const a=e[i].type;if(!a.match("image.*"))return;t=e[i];const o=new FileReader;o.onload=()=>{const e=this.el.shadowRoot.querySelector("#previewContainer"),t=`data:${a};base64,${o.result.split(",")[1]}`;this.imagesBase64List.push(t),s=this.imagesBase64List;const i=document.createElement("div");i.classList.add("image-Container"),i.classList.add("sc-ai12z-input-form");const r=document.createElement("img");r.setAttribute("src",o.result),r.style.width="70px",r.style.height="50px",r.style.borderRadius=".75rem";const c=document.createElement("span");c.textContent="x",c.classList.add("delete-image"),c.classList.add("sc-ai12z-input-form"),e.appendChild(i),i.appendChild(r),i.appendChild(c),c.onclick=e=>{let t=s.indexOf(e.target.previousSibling?e.target.previousSibling.src:null);t>-1&&s.splice(t,1),i.remove()}},o.readAsDataURL(t),o.onloadend=()=>{},o.onerror=e=>{console.error("something went wrong...",e)}}}async captureScreen(){try{const e=await navigator.mediaDevices.getDisplayMedia({video:!0}),t=document.createElement("video");t.srcObject=e,t.autoplay=!0,document.body.appendChild(t),await new Promise((e=>t.onloadedmetadata=e)),await new Promise((e=>setTimeout(e,500)));const s=document.createElement("canvas");s.width=t.videoWidth,s.height=t.videoHeight;const i=s.getContext("2d");i&&(i.drawImage(t,0,0,s.width,s.height),s.toBlob((e=>{if(e){const t=new File([e],`screenshot-${Date.now()}.png`,{type:"image/png"});this.capturedFile=t,this.uploadImage([t])}}),"image/png")),e.getTracks().forEach((e=>e.stop())),document.body.removeChild(t)}catch(e){console.error("Error capturing screen:",e)}}handleFollowUp(e){this.chatHistory=[],this.isChat=!1,this.showWelcomeTemplate=!0}render(){var e,t,s,i,a,o,c;return r("div",{key:"e460c9c93f9a8f02719c2a92bda77d49ebd71101",class:"flex w-full"},this.isRendered&&r("div",{key:"651544be50ba6d832ad5f14bdb2bee3516822bff",class:"search-layout"},r("div",{key:"dda155418f8734941355541b5256c815c807bbb6",class:"left-column"},r("div",{key:"321f41053a82455cc8989cad777189de0a6cc929",class:"flex flex-col relative h-full",id:"searchPanel"},r("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"}},r("form",{key:"ac837347407b570f2622eb6f5e42b21f3bf13bea",class:"flex flex-col rounded-2xl p-2.5 search-page-container",id:"searchForm"},r("div",{key:"db8aded895d30e68d474f92fbf390a94d994a687",class:"flex"},r("div",{key:"a2cc35c12e910d351724ff5f9da48df8924f0c61",class:"flex items-center justify-between"},!this.hideAllButtons&&(this.searchResultSettings.enableAttachment||this.searchResultSettings.clearMemory)&&r("div",{key:"132bc797eda5fa74226fb2219deedbf74c464bc3",class:"relative inline-block",style:{width:"5%"}},r("button",{key:"a147fbfa3ad67240c39122bfb9d5e151df0aa1ba",class:"plus-icon chat-btn-primary","aria-label":"Add Options",title:"Add images or capture screen",tabindex:"0",onClick:e=>{e.stopPropagation(),e.preventDefault(),this.toggleBox(e)}},r("svg",{key:"0e9b678990a6ab9cf3490d6cb5536936d1a32214",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",width:"20",height:"20"},r("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"}))),r("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 \n ${this.isOpen?"opacity-100 scale-100 pointer-events-auto":"opacity-0 scale-90 pointer-events-none"}`,style:{zIndex:"1001"},ref:e=>this.menuElem=e},r("ul",{key:"a98c784810fdd087ac1ef95565bf009336e45441",class:"space-y-2"},this.searchResultSettings.enableAttachment&&r("li",{key:"569863db10a23c4e134648599f026f3c51eb3f91",class:"px-4 py-2 hover:bg-gray-100 cursor-pointer flex",onClick:()=>{this.uploadImageEle.click(),this.isOpen=!1}},r("input",{key:"47ee3a42abc387ba4393dc1c9dd5fdab396f5dac",type:"file",multiple:!0,name:"files[]",id:"fileInput",accept:"image/*",class:"hidden image-upload__input",onChange:e=>{this.onInputChange(e.target.files)},ref:e=>this.uploadImageEle=e}),r("div",{key:"8976435c8299fce092a49f2039e428f8b51ec2e7",class:"mr-1"},r("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"},r("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"}))),r("div",{key:"bc96f481f6c1f694d22bc2f0e45090b6c409938f"},"Upload Images")),this.searchResultSettings.clearMemory&&r("li",{key:"afaebd68c41c143f3e112fa521d08da6818a8fca",class:"px-4 py-2 hover:bg-gray-100 cursor-pointer flex",onClick:e=>{this.handleFollowUp(e),this.toggleBox(e)}},r("div",{key:"a2e52cd39cfdecab8503b83fadbc1356d3f82683",class:"mr-1"},r("svg",{key:"b2900e23e74d5234d010fa127f28f92c93e3921a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"20",height:"20"},r("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"}))),r("div",{key:"5bb5de7e47a77c318d95ad665d164248529240bd"},"Start Over")))))),!this.hideAllButtons&&r("div",{key:"633ec465f15a67c3bbbad6b4453e95e92eceac53",class:"w-full mt-1 search-input-container"},r("div",{key:"32e7a51ce13105f0e67a1821e4fea8548c24ff8c",id:"previewContainer",class:"preview-container"}),r("label",{key:"7b23a541d12437ac8e9d88da31a1e7f32ffd40ad",htmlFor:"search-input",class:"sr-only"},"Your message"),r("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 ${(null===(e=this.searchResults)||void 0===e?void 0:e.length)>0?"input-border":""} search-input`,ref:e=>{this.searchInputElem=e,null==e||e.focus()},placeholder:this.searchResultSettings.placeholder,value:this.query,rows:1,onInput:e=>this.handleInput(e),onKeyDown:this.handleKeyDown,onKeyUp:this.adjustHeight,onFocus:()=>{this.el.shadowRoot.querySelector("#searchPanel").classList.add("input-focus-color")},onBlur:()=>this.el.shadowRoot.querySelector("#searchPanel").classList.remove("input-focus-color")}),r("div",{key:"66be72df5606a6fe6ae7b0ba051df126ccf2542a",role:"status","aria-live":"polite","aria-atomic":"true",class:"sr-only"},this.announceMessage),r("span",{key:"8ee76dcdd0536e49a390d3e0b862b9ee353e7655",class:"sr-only"},"Press Enter to send, Shift+Enter for new line")),r("div",{key:"f770127ea876b32d9a2453af4a5ed6470ea74652",class:"icons flex items-center space-x-2 "+(this.hideAllButtons?"w-full":"w-auto")},this.searchResultSettings.enableMic&&r("span",{key:"a24400ed4763ff661c14f0ea4168f6a6e5a4bed9",class:"w-full mic-icon"},r("audio-recorder",{key:"6e5d138dea73973f938601fed5883f48d77cd417","component-type":"search",onStartRecord:()=>{this.hideAllButtons=!0},onStopRecord:()=>{this.hideAllButtons=!1},onSendTranscript:e=>{setTimeout((()=>{this.searchInputElem&&(this.searchInputElem.value=e.detail,this.query=e.detail,this.componentDidLoad(),requestAnimationFrame((()=>{this.adjustHeight()})))}),500)},style:{width:"100%"}})),!this.hideAllButtons&&r("span",{key:"c12ebf1ac66f486608704008b85dc886d539c7fb",class:"search-icon"},r("button",{key:"b3b6d4d486efa763c82b03901dd6b8a46c4cc154",id:"send-message-button",class:"text-white transition rounded-lg p-1.5 self-center submit-button chat-btn-primary",onClick:e=>this.handleFormSubmit(e),"aria-label":"Send Message",tabindex:"0",title:"Send Message"},r("svg",{key:"07887f3c09596501beba47f87440881c19514fe8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",class:"size-6"},r("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"}))))))),0===this.chatHistory.length&&r("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&&r("div",{key:"4625632d449c261e54104abc362b3bf7d564dc26",class:"error-message-container "+(this.searchResultSettings.textareaAtBottom?"order-2 mt-1":"order-1 mb-1")},r("span",{key:"32ab71efb8c6396374dd52bec753a672171de921",id:"search-message-error",class:"error-msg",role:"alert"},"Message cannot be empty. Please enter a message to send.")),r("div",{key:"b2d51f6b0689a965d33100aaff8ecec09747b74c",class:"chat-content-wrapper flex-1 overflow-y-auto "+(this.searchResultSettings.textareaAtBottom?"order-1":"order-2")},this.isChat&&r("ai12z-chat",{key:"9496bab4dbed86e3a84d0bf5076cc6da2f37b3c7",chats:this.chatHistory,env:this.dataMode,query:this.query,apiKey:this.dataKey,aiMessageId:this.aiMessageId,imgFiles:this.imgFiles,target:null!==(t=this.searchResultSettings.linkTarget)&&void 0!==t?t:"_blank",voiceType:null!==(s=this.searchResultSettings.voiceType)&&void 0!==s?s:"default",voice:null!==(i=this.searchResultSettings.voice)&&void 0!==i?i:"Google US English",onFeedback:async e=>{const{feedback:t,insightId:s}=e.detail;u(this.dataKey,this.dataMode,s,t)},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&&r("div",{key:"0e062ad629db17aa5f6212d7daa6ba70ce6245f7",class:"welcome-template-container"},r("div",{key:"87b413b37072e53a4133316c137ebabb7267eb96",class:"welcome-template-content",innerHTML:null===(a=this.searchResultSettings.welcome)||void 0===a?void 0:a.message}))))),r("aside",{key:"d168fae202eda591d448eaf9fbb0453adbeb94cc",class:"quick-links-column","aria-hidden":"true"},this.searchResults&&this.searchResults.length>0&&r("div",{key:"a92f1ff77f9860161b18d1313a45dd5d734b5c97",class:{"search-results":this.searchResults&&this.searchResults.length>0}},r("h3",{key:"71bf5a7f72267403a6535aae65e916c12aaf8285",class:"title"},"Sources"),this.searchResultSettings.categorize&&r("ai12z-category",{key:"28547dfd54b745fda4a5061172d287d6f6f98495",categoryList:this.searchResults,linkTarget:null!==(o=this.searchResultSettings.linkTarget)&&void 0!==o?o:"_blank"}),!this.searchResultSettings.categorize&&r(m,{key:"d8cfccbeb544bcb02a8e41225bdfe444e19efb08",results:this.searchResults,linkTarget:null!==(c=this.searchResultSettings.linkTarget)&&void 0!==c?c:"_blank"})),!this.searchResults||0===this.searchResults.length&&this.searchResultSettings.autoSearch&&r("div",{key:"3f95602d7be2c82c7ffed7e1092564404277b77a",class:"sources-panel"},r("h3",{key:"0660bcef1874a7571ef7aecfa0f3ae68032832b7",class:"title"},"Sources"),r("div",{key:"52143a135fe5dc08b2e9907171789946e10a7daf",class:"skeleton-list"},r("div",{key:"2355bdb96a9c51b9ff51d61ae0e15e9a5f67e8ee",class:"skeleton-line"}),r("div",{key:"84894b13e0c67ec72d076596eb9d09736da55ff8",class:"skeleton-line"}),r("div",{key:"7f5ccb782498e5fc3a6d81c4273968eefd3af6d4",class:"skeleton-line short"}),r("div",{key:"5ce71fac1fa15c8b0f74f55c3fbfa0c00b6cde98",class:"divider"}),r("div",{key:"1b37d1170b94115993f46b69266be5684a8e9e10",class:"skeleton-line"}),r("div",{key:"b3506ee820d26e3583fe984953ef08cee68fc829",class:"skeleton-line short"}),r("div",{key:"96e3c7e356e7f134ace331fcaa5e432368c85bd7",class:"divider"}),r("div",{key:"1a1e3a106ac30a46996fe4f94324d8bf92c7c105",class:"skeleton-line"}),r("div",{key:"7df3a9bade97604a2bb31cc1b71546d1e3f7be11",class:"skeleton-line"}),r("div",{key:"3bf3da0a602ddc6d25a270f45926fb157d89aab2",class:"skeleton-line short"}))))))}get el(){return this}static get style(){return":host{display:block;width:100%;font-family:var(--ai12z-font-family);font-size:var(--ai12z-font-size);color:var(--ai12z-font-color, black);text-align:var(--ai12z-text-align, left)}.search-page-container{background-color:var(--ai12z-search-bar-bgcolor, rgb(244, 242, 238))}.submit-button{background-color:var(--ai12z-search-bar-button-bgcolor, var(--ai12z-primary-color))}.custom-svg-checkbox{margin-top:0.25rem;width:1rem;height:1rem;position:absolute}.follow-up-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:1rem;height:1rem;border-width:2px;flex-shrink:0;margin-top:0.25rem;border-radius:0.125rem;border-color:rgb(59 130 246)}.follow-up-input:checked{background-color:var(--ai12z-followup-bg-color);border-width:0px}.follow-up{display:flex;gap:0.5rem;color:var(--ai12z-followup-color);font-size:var(--ai12z-followup-font-size)}.image-Container{position:relative;display:inline-block;margin-right:10px}.delete-image{opacity:3;position:absolute;right:3px;top:0;cursor:pointer;line-height:10px}.plus-icon{color:var(--ai12z-plus-icon-color)}.search-panel-wrapper{height:100%;display:flex;flex-direction:column}#searchPanel{flex:1;display:flex;flex-direction:column;}.content-area{flex:1;overflow-y:auto}.welcome-template-container{flex-shrink:0;padding:1rem;background:rgba(255, 255, 255, 0.95);backdrop-filter:blur(8px);margin-left:auto;margin-right:auto;}.welcome-template-container{animation:slideUp 0.3s ease-out}@keyframes slideUp{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.error-message-container{margin-top:0.25rem}.error-msg{color:#dc2626;font-size:0.75rem;display:block;animation:slideIn 0.2s ease-out}.enter-tip{font-size:12px;color:#fff;margin-left:10px}#searchForm{margin:0px}.search-layout{display:grid;grid-template-columns:minmax(0, 1fr) 420px;gap:32px;width:100%;padding:0 16px}.left-column{height:100vh;display:flex;flex-direction:column}.quick-links-column{position:sticky;top:88px;height:-moz-fit-content;height:fit-content;}.chat-fieldset{border:2px solid var(--ai12z-primary-color);border-radius:16px;padding:12px;margin:0;background-color:var(--ai12z-primary-color)}.cta-search-results{border-top-width:1px;border-bottom-width:0px;border-color:rgb(243 244 246)}.cta-search-results-list{position:relative;padding-bottom:1.25rem;padding-top:1.25rem}.cta-search-results-list:hover{background-color:var(--ai12z-hover-bg-color)}.cta-search-container{margin-left:auto;margin-right:auto;display:flex;max-width:56rem;justify-content:space-between;-moz-column-gap:1.5rem;column-gap:1.5rem}.cta-search-container-two{display:flex;min-width:0px;-moz-column-gap:1rem;column-gap:1rem}.cta-search-container-three{min-width:0px;flex:1 1 auto}.cta-search-text{font-weight:600;line-height:1.5rem;font-size:var(--ai12z-search-result-title-font-size);color:var(--ai12z-search-result-title-color)}.cta-search-text-position{position:absolute;left:0px;right:0px;top:-1px;bottom:0px}.cta-search-description{margin-top:0.25rem;display:flex;font-size:var(--ai12z-search-result-description-font-size);line-height:1rem;line-height:1.25rem;color:var(--ai12z-search-result-description-color)}.cta-search-list-arrow{display:flex;align-items:center;flex-shrink:0;-moz-column-gap:1rem;column-gap:1rem}.custom-icon-width{width:4rem}.results-icon svg{width:1.5rem;height:1.5rem}@keyframes slideIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.chat-content-wrapper::-webkit-scrollbar{width:8px}.chat-content-wrapper::-webkit-scrollbar-track{background:var(--ai12z-scrollbar-track-color, #f1f1f1);border-radius:10px}.chat-content-wrapper::-webkit-scrollbar-button{display:none}.chat-content-wrapper::-webkit-scrollbar-thumb{background:var(--ai12z-scrollbar-thumb-color, #888);border-radius:10px}.chat-content-wrapper::-webkit-scrollbar-thumb:hover{background:var(--ai12z-scrollbar-thumb-hover-color, #555)}.chat-content-wrapper{scrollbar-width:thin;scrollbar-color:var(--ai12z-scrollbar-thumb-color, #888) var(--ai12z-scrollbar-track-color, #f1f1f1);min-height:0}@media (max-width: 768px){.search-layout{grid-template-columns:1fr;gap:16px}.quick-links-column{display:none}.welcome-template-container{padding:0.75rem}.welcome-template-content{padding:1rem;border-radius:0.75rem}.chat-content-wrapper::-webkit-scrollbar{width:4px}}.sources-panel{width:360px;padding:16px;border-radius:12px;font-family:system-ui, -apple-system, sans-serif}.title{margin:0 0 12px;font-size:16px;font-weight:600;color:#0f172a}.skeleton-list{display:flex;flex-direction:column;gap:10px}.skeleton-line{height:14px;border-radius:999px;background:linear-gradient( 90deg, #e5e7eb 25%, #f1f5f9 37%, #e5e7eb 63% );background-size:400% 100%;}.skeleton-line.short{width:65%}.divider{height:1px;background:#e2e8f0;margin:6px 0}@keyframes shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}"}},[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"]]]);function E(){"undefined"!=typeof customElements&&["search-results-page","ai12z-category","ai12z-chat","audio-recorder","item-list"].forEach((t=>{switch(t){case"search-results-page":customElements.get(e(t))||customElements.define(e(t),S);break;case"ai12z-category":customElements.get(e(t))||b();break;case"ai12z-chat":customElements.get(e(t))||p();break;case"audio-recorder":customElements.get(e(t))||z();break;case"item-list":customElements.get(e(t))||c()}}))}E();export{S,E as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as o,d as s}from"./p-
|
|
1
|
+
import{S as o,d as s}from"./p-C81g_cTG.js";const p=o,r=s;export{p as SearchResultsPage,r as defineCustomElement}
|