ai12z 3.17.3 → 3.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ai12z-bot.cjs.entry.js +116 -25
- package/dist/cjs/library.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ai12z-bot/ai12z-bot.js +118 -26
- package/dist/components/ai12z-bot.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-BDHD9yF0.js +1 -0
- package/dist/esm/ai12z-bot.entry.js +116 -25
- package/dist/esm/library.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/library/library.esm.js +1 -1
- package/dist/library/p-8cca467d.entry.js +1 -0
- package/dist/types/components/ai12z-bot/ai12z-bot.d.ts +14 -5
- package/package.json +2 -2
- package/dist/components/p-DuqaNpwU.js +0 -1
- package/dist/library/p-7392e3e7.entry.js +0 -1
|
@@ -1065,6 +1065,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
1065
1065
|
return t;
|
|
1066
1066
|
};
|
|
1067
1067
|
const logger = new Logger("Ai12zBot");
|
|
1068
|
+
const STREAM_END_TIMEOUT_MS = 30000;
|
|
1068
1069
|
const Ai12zBot = class {
|
|
1069
1070
|
constructor(hostRef) {
|
|
1070
1071
|
registerInstance(this, hostRef);
|
|
@@ -1146,6 +1147,7 @@ const Ai12zBot = class {
|
|
|
1146
1147
|
this.liveAgentListenersRegistered = false;
|
|
1147
1148
|
this.shortcuts = DEFAULT_SHORTCUTS;
|
|
1148
1149
|
this.announceMessage = ""; // For accessibility announcements
|
|
1150
|
+
this.isSending = false;
|
|
1149
1151
|
this.messageRefs = [];
|
|
1150
1152
|
// Replace your existing handlePaste method with this enhanced version
|
|
1151
1153
|
this.handlePaste = (event) => {
|
|
@@ -1258,8 +1260,14 @@ const Ai12zBot = class {
|
|
|
1258
1260
|
}
|
|
1259
1261
|
};
|
|
1260
1262
|
this.handleSend = async (eleValue, options = {}) => {
|
|
1261
|
-
var _a, _b;
|
|
1262
|
-
const { isHide = false, isLiveChatEnded = false } = options;
|
|
1263
|
+
var _a, _b, _c;
|
|
1264
|
+
const { isHide = false, isLiveChatEnded = false, bypassSendGuard = false } = options;
|
|
1265
|
+
// Acquire the lock before any await.
|
|
1266
|
+
if ((this.isSending || this.isStreaming) && !bypassSendGuard) {
|
|
1267
|
+
this.query = "";
|
|
1268
|
+
return false;
|
|
1269
|
+
}
|
|
1270
|
+
this.isSending = true;
|
|
1263
1271
|
const queryText = typeof this.query === "string" ? this.query.trim() : "";
|
|
1264
1272
|
const displayText = typeof eleValue === "string" ? eleValue.trim() : "";
|
|
1265
1273
|
const inputText = ((_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.value.trim()) || "";
|
|
@@ -1267,11 +1275,15 @@ const Ai12zBot = class {
|
|
|
1267
1275
|
const resolvedDisplayText = displayText || (!isHide ? resolvedQuery : "");
|
|
1268
1276
|
if (!resolvedQuery && this.imagesBase64List.length === 0) {
|
|
1269
1277
|
this.showEmptyMessageValidation();
|
|
1270
|
-
|
|
1278
|
+
this.query = "";
|
|
1279
|
+
this.isSending = false;
|
|
1280
|
+
return false;
|
|
1271
1281
|
}
|
|
1272
1282
|
if (!isHide && !resolvedDisplayText && this.imagesBase64List.length === 0) {
|
|
1283
|
+
this.query = "";
|
|
1284
|
+
this.isSending = false;
|
|
1273
1285
|
this.showEmptyMessageValidation();
|
|
1274
|
-
return;
|
|
1286
|
+
return false;
|
|
1275
1287
|
}
|
|
1276
1288
|
this.emptyMessageError = false;
|
|
1277
1289
|
this.surveyDomId = "";
|
|
@@ -1290,11 +1302,19 @@ const Ai12zBot = class {
|
|
|
1290
1302
|
if (this.showWelcomeScreen && this.botSettings.botVersion === "v1") {
|
|
1291
1303
|
this.showWelcomeScreen = false;
|
|
1292
1304
|
}
|
|
1293
|
-
|
|
1294
|
-
|
|
1305
|
+
try {
|
|
1306
|
+
if (this.messages.length === 0 || !((_b = this.socket) === null || _b === void 0 ? void 0 : _b.connected)) {
|
|
1307
|
+
await this.socketConnection();
|
|
1308
|
+
}
|
|
1309
|
+
else if (!this.socket || !this.socket.connected) {
|
|
1310
|
+
await this.socketConnection();
|
|
1311
|
+
}
|
|
1295
1312
|
}
|
|
1296
|
-
|
|
1297
|
-
|
|
1313
|
+
catch (error) {
|
|
1314
|
+
console.error("Error in handleSend:", error);
|
|
1315
|
+
this.query = "";
|
|
1316
|
+
this.isSending = false;
|
|
1317
|
+
return false;
|
|
1298
1318
|
}
|
|
1299
1319
|
// if (inputValue.trim()) {
|
|
1300
1320
|
const now = new Date();
|
|
@@ -1341,6 +1361,9 @@ const Ai12zBot = class {
|
|
|
1341
1361
|
if (this.botSettings.maxQuestion > 0 && this.questionCounter > this.botSettings.maxQuestion && !this.isLiveAgent && !isLiveChatEnded) {
|
|
1342
1362
|
// console.log("Max question limit reached")
|
|
1343
1363
|
this.inputEl.value = "";
|
|
1364
|
+
this.query = "";
|
|
1365
|
+
this.releaseSendLock();
|
|
1366
|
+
return false;
|
|
1344
1367
|
}
|
|
1345
1368
|
else {
|
|
1346
1369
|
this.currentDomId = "";
|
|
@@ -1352,16 +1375,18 @@ const Ai12zBot = class {
|
|
|
1352
1375
|
this.inputEl.value = "";
|
|
1353
1376
|
}
|
|
1354
1377
|
this.query = "";
|
|
1378
|
+
this.isSending = false;
|
|
1355
1379
|
}
|
|
1356
1380
|
else {
|
|
1357
1381
|
this.checkLiveAgentMode();
|
|
1358
1382
|
this.isStreaming = true;
|
|
1359
1383
|
this.ignoreChunks = false;
|
|
1360
|
-
this.
|
|
1384
|
+
this.resetStreamEndWatchdog();
|
|
1385
|
+
this.invokeSocket(resolvedQuery);
|
|
1361
1386
|
}
|
|
1362
1387
|
}
|
|
1363
1388
|
// this.invokeSocket()
|
|
1364
|
-
const parent = (
|
|
1389
|
+
const parent = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector("#previewContainer");
|
|
1365
1390
|
if (parent) {
|
|
1366
1391
|
parent.innerHTML = "";
|
|
1367
1392
|
}
|
|
@@ -1369,6 +1394,7 @@ const Ai12zBot = class {
|
|
|
1369
1394
|
this.rowCount = 1;
|
|
1370
1395
|
this.showSubmit = false;
|
|
1371
1396
|
// }
|
|
1397
|
+
return true;
|
|
1372
1398
|
};
|
|
1373
1399
|
this.agentMessageCreated = (message) => {
|
|
1374
1400
|
var _a;
|
|
@@ -1713,6 +1739,7 @@ const Ai12zBot = class {
|
|
|
1713
1739
|
this.showWelcomeScreen = true;
|
|
1714
1740
|
this.showHistory = false;
|
|
1715
1741
|
this.isOpened = true;
|
|
1742
|
+
this.releaseSendLock();
|
|
1716
1743
|
// Focus input if available
|
|
1717
1744
|
setTimeout(() => {
|
|
1718
1745
|
var _a;
|
|
@@ -1760,9 +1787,6 @@ const Ai12zBot = class {
|
|
|
1760
1787
|
}
|
|
1761
1788
|
async sendMessage(message, displayText, options) {
|
|
1762
1789
|
this.query = message;
|
|
1763
|
-
// if (!this.isChatOpen) {
|
|
1764
|
-
// this.isChatOpen = true
|
|
1765
|
-
// }
|
|
1766
1790
|
this.handleSend(displayText !== null && displayText !== void 0 ? displayText : message, options);
|
|
1767
1791
|
}
|
|
1768
1792
|
async sendQuery(query) {
|
|
@@ -1771,9 +1795,6 @@ const Ai12zBot = class {
|
|
|
1771
1795
|
}
|
|
1772
1796
|
async sendJSON(jsonData, displayText) {
|
|
1773
1797
|
this.query = JSON.stringify(jsonData);
|
|
1774
|
-
// if (!this.isChatOpen) {
|
|
1775
|
-
// this.isChatOpen = true
|
|
1776
|
-
// }
|
|
1777
1798
|
this.handleSend(displayText);
|
|
1778
1799
|
}
|
|
1779
1800
|
async openBot(expanded = false) {
|
|
@@ -1903,6 +1924,28 @@ const Ai12zBot = class {
|
|
|
1903
1924
|
this.clearEvents();
|
|
1904
1925
|
}
|
|
1905
1926
|
}
|
|
1927
|
+
releaseSendLock() {
|
|
1928
|
+
this.clearStreamEndWatchdog();
|
|
1929
|
+
this.isStreaming = false;
|
|
1930
|
+
this.isSending = false;
|
|
1931
|
+
}
|
|
1932
|
+
clearStreamEndWatchdog() {
|
|
1933
|
+
if (this.streamEndWatchdog) {
|
|
1934
|
+
clearTimeout(this.streamEndWatchdog);
|
|
1935
|
+
this.streamEndWatchdog = undefined;
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
resetStreamEndWatchdog() {
|
|
1939
|
+
this.clearStreamEndWatchdog();
|
|
1940
|
+
this.streamEndWatchdog = setTimeout(() => {
|
|
1941
|
+
this.streamEndWatchdog = undefined;
|
|
1942
|
+
if (!this.isStreaming) {
|
|
1943
|
+
return;
|
|
1944
|
+
}
|
|
1945
|
+
console.error("Socket response timed out before completion");
|
|
1946
|
+
this.failTurn("Something went wrong. Please try again.");
|
|
1947
|
+
}, STREAM_END_TIMEOUT_MS);
|
|
1948
|
+
}
|
|
1906
1949
|
componentDidLoad() {
|
|
1907
1950
|
var _a;
|
|
1908
1951
|
setBotElement(this.el); // register globally
|
|
@@ -1984,6 +2027,7 @@ const Ai12zBot = class {
|
|
|
1984
2027
|
// fire scrollToBottom() against a torn-down component.
|
|
1985
2028
|
if (this.autoScrollTimer)
|
|
1986
2029
|
clearTimeout(this.autoScrollTimer);
|
|
2030
|
+
this.clearStreamEndWatchdog();
|
|
1987
2031
|
}
|
|
1988
2032
|
handleClickOutside(event) {
|
|
1989
2033
|
// Check if the clicked target is outside the menu
|
|
@@ -2255,6 +2299,7 @@ const Ai12zBot = class {
|
|
|
2255
2299
|
const responseEvent = protocol === "v2" ? "chunk" : "response";
|
|
2256
2300
|
const endEvent = protocol === "v2" ? "complete" : "end_response";
|
|
2257
2301
|
this.socket.on(responseEvent, async (event) => {
|
|
2302
|
+
this.resetStreamEndWatchdog();
|
|
2258
2303
|
const { id, idChanged } = ensureMessageId(this.currentDomId, this.messages, "chatbot");
|
|
2259
2304
|
this.currentDomId = id;
|
|
2260
2305
|
if (idChanged)
|
|
@@ -2269,6 +2314,12 @@ const Ai12zBot = class {
|
|
|
2269
2314
|
});
|
|
2270
2315
|
});
|
|
2271
2316
|
this.socket.on(endEvent, async (rawData) => {
|
|
2317
|
+
if (!rawData) {
|
|
2318
|
+
console.error("Received empty end response payload");
|
|
2319
|
+
this.failTurn("Something went wrong. Please try again.");
|
|
2320
|
+
return;
|
|
2321
|
+
}
|
|
2322
|
+
this.clearStreamEndWatchdog();
|
|
2272
2323
|
// For v2, adapt the response format to match legacy expectations
|
|
2273
2324
|
const data = protocol === "v2" ? adaptCompleteToLegacy(rawData) : rawData;
|
|
2274
2325
|
if (data.showInput !== undefined && typeof data.showInput === "boolean") {
|
|
@@ -2383,12 +2434,12 @@ const Ai12zBot = class {
|
|
|
2383
2434
|
this.updateBotState();
|
|
2384
2435
|
}
|
|
2385
2436
|
this.scrollToBottom();
|
|
2386
|
-
this.
|
|
2437
|
+
this.releaseSendLock();
|
|
2387
2438
|
this.currentDomId = "";
|
|
2388
2439
|
}
|
|
2389
2440
|
catch (error) {
|
|
2390
2441
|
console.error("Error handling end_response:", error);
|
|
2391
|
-
this.
|
|
2442
|
+
this.releaseSendLock();
|
|
2392
2443
|
}
|
|
2393
2444
|
});
|
|
2394
2445
|
});
|
|
@@ -2470,7 +2521,7 @@ const Ai12zBot = class {
|
|
|
2470
2521
|
}
|
|
2471
2522
|
}
|
|
2472
2523
|
// ✅ Handle the survey completion rendering
|
|
2473
|
-
handleSurveyCompletionRender(processedResults) {
|
|
2524
|
+
async handleSurveyCompletionRender(processedResults) {
|
|
2474
2525
|
// console.log("Survey completed with results:", processedResults)
|
|
2475
2526
|
// Find and update the message
|
|
2476
2527
|
const idx = this.messages.findIndex(item => item.surveyDomId === processedResults.domId);
|
|
@@ -2479,8 +2530,26 @@ const Ai12zBot = class {
|
|
|
2479
2530
|
this.surveyDomId = processedResults.domId;
|
|
2480
2531
|
// Update conversations with completed HTML
|
|
2481
2532
|
this.updateConversations(processedResults.completedHtml, {});
|
|
2533
|
+
// Use the JSON payload as the query and the completion text as display text.
|
|
2534
|
+
const surveyQuery = processedResults.jsonData;
|
|
2535
|
+
this.query = surveyQuery;
|
|
2536
|
+
let sent = false;
|
|
2482
2537
|
// Send the JSON data message
|
|
2483
|
-
|
|
2538
|
+
try {
|
|
2539
|
+
sent = await this.handleSend(processedResults.completeText, { isHide: true, bypassSendGuard: true });
|
|
2540
|
+
}
|
|
2541
|
+
finally {
|
|
2542
|
+
if (!sent) {
|
|
2543
|
+
console.error("Failed to send form data in finally block");
|
|
2544
|
+
}
|
|
2545
|
+
if (this.query === surveyQuery) {
|
|
2546
|
+
this.query = "";
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
if (!sent) {
|
|
2550
|
+
console.error("Failed to send form data");
|
|
2551
|
+
return;
|
|
2552
|
+
}
|
|
2484
2553
|
this.formSubmitted.emit(processedResults.sender.data);
|
|
2485
2554
|
// Scroll to bottom
|
|
2486
2555
|
this.scrollToBottom();
|
|
@@ -2616,20 +2685,37 @@ const Ai12zBot = class {
|
|
|
2616
2685
|
this.messages = [...this.messages];
|
|
2617
2686
|
}
|
|
2618
2687
|
this.isStreaming = false;
|
|
2688
|
+
this.isSending = false;
|
|
2619
2689
|
});
|
|
2620
2690
|
this.socket.on("connect_error", error => {
|
|
2621
2691
|
this.errored.emit(error);
|
|
2622
2692
|
this.announce("Unable to connect to chat server. Please try again.");
|
|
2623
2693
|
console.error("Connection error:", error);
|
|
2624
2694
|
});
|
|
2695
|
+
this.socket.on("error", () => {
|
|
2696
|
+
if (this.isStreaming)
|
|
2697
|
+
this.failTurn("Something went wrong. Please try again.");
|
|
2698
|
+
});
|
|
2625
2699
|
this.socket.on("disconnect", () => {
|
|
2626
2700
|
// console.log("Disconnected from Socket.IO server")
|
|
2627
2701
|
this.socket.off("response");
|
|
2628
2702
|
this.socket.off("chunk");
|
|
2629
2703
|
// Handle disconnection if needed
|
|
2704
|
+
if (this.isStreaming)
|
|
2705
|
+
this.failTurn("Connection lost. Please try again.");
|
|
2630
2706
|
});
|
|
2631
2707
|
}
|
|
2632
|
-
|
|
2708
|
+
failTurn(message) {
|
|
2709
|
+
// Release the lock so another message can be sent.
|
|
2710
|
+
this.releaseSendLock();
|
|
2711
|
+
const last = this.messages[this.messages.length - 1];
|
|
2712
|
+
if (last && !last.isUser && last.isLoading) {
|
|
2713
|
+
last.text = message;
|
|
2714
|
+
last.isLoading = false;
|
|
2715
|
+
this.messages = [...this.messages];
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
invokeSocket(query) {
|
|
2633
2719
|
var _a;
|
|
2634
2720
|
const protocol = getBackendProtocol(this.dataMode);
|
|
2635
2721
|
let data;
|
|
@@ -2637,13 +2723,13 @@ const Ai12zBot = class {
|
|
|
2637
2723
|
if (protocol === "v2") {
|
|
2638
2724
|
eventName = "query";
|
|
2639
2725
|
const beaconId = sessionStorage.getItem("ai12zBeaconId");
|
|
2640
|
-
data = Object.assign({ query
|
|
2726
|
+
data = Object.assign({ query, conversation_id: this.conversationId || "", base64_images: ((_a = this.imagesBase64List) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.imagesBase64List : undefined, beacon_id: this.botSettings.disableBeacon ? "" : beaconId !== null && beaconId !== void 0 ? beaconId : "" }, (this.botSettings.disableBeacon || beaconId ? {} : { beacon_data: buildBeacon() }));
|
|
2641
2727
|
}
|
|
2642
2728
|
else {
|
|
2643
2729
|
eventName = "evaluate_query";
|
|
2644
2730
|
data = {
|
|
2645
2731
|
apiKey: this.dataKey,
|
|
2646
|
-
query
|
|
2732
|
+
query,
|
|
2647
2733
|
conversationId: this.conversationId,
|
|
2648
2734
|
event: "evaluate_query",
|
|
2649
2735
|
attributes: this.dataAttributes,
|
|
@@ -2680,6 +2766,7 @@ const Ai12zBot = class {
|
|
|
2680
2766
|
.catch(error => {
|
|
2681
2767
|
console.error("Error in processDataOverride:", error);
|
|
2682
2768
|
this.errored.emit(error);
|
|
2769
|
+
this.releaseSendLock();
|
|
2683
2770
|
this.announce("An error occurred while sending your message.");
|
|
2684
2771
|
});
|
|
2685
2772
|
}
|
|
@@ -2712,6 +2799,7 @@ const Ai12zBot = class {
|
|
|
2712
2799
|
stopResponse() {
|
|
2713
2800
|
this.ignoreChunks = true; // drop future chunks
|
|
2714
2801
|
this.isStreaming = false;
|
|
2802
|
+
this.releaseSendLock();
|
|
2715
2803
|
this.messages[this.messages.length - 1].isLoading = false;
|
|
2716
2804
|
// this.socket.off('response');
|
|
2717
2805
|
}
|
|
@@ -2813,9 +2901,12 @@ const Ai12zBot = class {
|
|
|
2813
2901
|
this.liveAgentSessionId = "";
|
|
2814
2902
|
this.liveAgentConversationId = "";
|
|
2815
2903
|
this.liveAgentButtonText = "Talk to a Live Agent";
|
|
2816
|
-
|
|
2904
|
+
const llmMessage = ((_a = this.botSettings) === null || _a === void 0 ? void 0 : _a.llmMessageOnDisconnect) !== ""
|
|
2817
2905
|
? (_b = this.botSettings) === null || _b === void 0 ? void 0 : _b.llmMessageOnDisconnect
|
|
2818
|
-
: "The live agent has been disconnected. Please do not initiate the live agent directive again."
|
|
2906
|
+
: "The live agent has been disconnected. Please do not initiate the live agent directive again.";
|
|
2907
|
+
const displayText = ((_c = this.botSettings) === null || _c === void 0 ? void 0 : _c.userMessageOnDisconnect) !== "" ? (_d = this.botSettings) === null || _d === void 0 ? void 0 : _d.userMessageOnDisconnect : "The live agent has ended the conversation.";
|
|
2908
|
+
this.query = llmMessage;
|
|
2909
|
+
void this.handleSend(displayText, { isLiveChatEnded: true, bypassSendGuard: true });
|
|
2819
2910
|
this.announce("Live agent chat ended");
|
|
2820
2911
|
this.clearEvents();
|
|
2821
2912
|
}
|
package/dist/esm/library.js
CHANGED
|
@@ -43,5 +43,5 @@ var patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
|
43
43
|
|
|
44
44
|
patchBrowser().then(async (options) => {
|
|
45
45
|
await globalScripts();
|
|
46
|
-
return bootstrapLazy(JSON.parse("[[\"ai12z-knowledge-box\",[[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\",[[0,\"dynamic-form\",{\"form\":[8],\"formSettings\":[1032,\"form-settings\"],\"formsettings\":[8],\"theme\":[8]}]]],[\"ai12z-spinner\",[[2,\"ai12z-spinner\",{\"class\":[1]}]]],[\"item-list\",[[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-beacon\",[[0,\"ai12z-beacon\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"disable\":[516]},null,{\"dataKey\":[{\"onPropChange\":0}],\"dataMode\":[{\"onPropChange\":0}],\"disable\":[{\"onPropChange\":0}]}]]],[\"ai12z-container\",[[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\",[[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\",[[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\",[[0,\"ai12z-category\",{\"categoryList\":[520,\"category-list\"],\"linkTarget\":[513,\"link-target\"]},[[4,\"clearResults\",\"clearResultsHandler\"]],{\"categoryList\":[{\"watchCategoryList\":0}]}],[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\",[[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\"],\"openMenuUpward\":[4,\"open-menu-upward\"],\"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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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);
|
|
46
|
+
return bootstrapLazy(JSON.parse("[[\"ai12z-knowledge-box\",[[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\",[[0,\"dynamic-form\",{\"form\":[8],\"formSettings\":[1032,\"form-settings\"],\"formsettings\":[8],\"theme\":[8]}]]],[\"ai12z-spinner\",[[2,\"ai12z-spinner\",{\"class\":[1]}]]],[\"item-list\",[[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-beacon\",[[0,\"ai12z-beacon\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"disable\":[516]},null,{\"dataKey\":[{\"onPropChange\":0}],\"dataMode\":[{\"onPropChange\":0}],\"disable\":[{\"onPropChange\":0}]}]]],[\"ai12z-container\",[[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\",[[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\",[[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\",[[0,\"ai12z-category\",{\"categoryList\":[520,\"category-list\"],\"linkTarget\":[513,\"link-target\"]},[[4,\"clearResults\",\"clearResultsHandler\"]],{\"categoryList\":[{\"watchCategoryList\":0}]}],[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\",[[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\"],\"openMenuUpward\":[4,\"open-menu-upward\"],\"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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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],\"isSending\":[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);
|
|
47
47
|
});
|
package/dist/esm/loader.js
CHANGED
|
@@ -4,7 +4,7 @@ export { s as setNonce } from './index-DrTyKvbY.js';
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
6
6
|
await globalScripts();
|
|
7
|
-
return bootstrapLazy(JSON.parse("[[\"ai12z-knowledge-box\",[[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\",[[0,\"dynamic-form\",{\"form\":[8],\"formSettings\":[1032,\"form-settings\"],\"formsettings\":[8],\"theme\":[8]}]]],[\"ai12z-spinner\",[[2,\"ai12z-spinner\",{\"class\":[1]}]]],[\"item-list\",[[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-beacon\",[[0,\"ai12z-beacon\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"disable\":[516]},null,{\"dataKey\":[{\"onPropChange\":0}],\"dataMode\":[{\"onPropChange\":0}],\"disable\":[{\"onPropChange\":0}]}]]],[\"ai12z-container\",[[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\",[[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\",[[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\",[[0,\"ai12z-category\",{\"categoryList\":[520,\"category-list\"],\"linkTarget\":[513,\"link-target\"]},[[4,\"clearResults\",\"clearResultsHandler\"]],{\"categoryList\":[{\"watchCategoryList\":0}]}],[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\",[[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\"],\"openMenuUpward\":[4,\"open-menu-upward\"],\"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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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);
|
|
7
|
+
return bootstrapLazy(JSON.parse("[[\"ai12z-knowledge-box\",[[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\",[[0,\"dynamic-form\",{\"form\":[8],\"formSettings\":[1032,\"form-settings\"],\"formsettings\":[8],\"theme\":[8]}]]],[\"ai12z-spinner\",[[2,\"ai12z-spinner\",{\"class\":[1]}]]],[\"item-list\",[[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-beacon\",[[0,\"ai12z-beacon\",{\"dataKey\":[513,\"data-key\"],\"dataMode\":[513,\"data-mode\"],\"disable\":[516]},null,{\"dataKey\":[{\"onPropChange\":0}],\"dataMode\":[{\"onPropChange\":0}],\"disable\":[{\"onPropChange\":0}]}]]],[\"ai12z-container\",[[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\",[[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\",[[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\",[[0,\"ai12z-category\",{\"categoryList\":[520,\"category-list\"],\"linkTarget\":[513,\"link-target\"]},[[4,\"clearResults\",\"clearResultsHandler\"]],{\"categoryList\":[{\"watchCategoryList\":0}]}],[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\",[[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\"],\"openMenuUpward\":[4,\"open-menu-upward\"],\"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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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],\"isSending\":[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
8
|
};
|
|
9
9
|
|
|
10
10
|
export { defineCustomElements };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,B as t,c as a,H as n,w as o,N as i,g as r,b as d}from"./p-DrTyKvbY.js";export{s as setNonce}from"./p-DrTyKvbY.js";var c=e=>{const t=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return t.call(this,e);const a=t.call(this,!1),s=this.childNodes;if(e)for(let e=0;e<s.length;e++)2!==s[e].nodeType&&a.appendChild(s[e].cloneNode(!0));return a}};(()=>{t.isDev&&!t.isTesting&&a("Running in development mode."),t.cloneNodeFix&&c(n.prototype);const s=t.scriptDataOpts?o.document&&Array.from(o.document.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)):null,r=import.meta.url,d=t.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==r&&(d.resourcesUrl=new URL(".",r).href),e(d)})().then((async e=>(await r(),d(JSON.parse('[["p-8421d322",[[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}]}]]],["p-cee8f0d9",[[0,"dynamic-form",{"form":[8],"formSettings":[1032,"form-settings"],"formsettings":[8],"theme":[8]}]]],["p-9f812fb1",[[2,"ai12z-spinner",{"class":[1]}]]],["p-399cbd12",[[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]}]]],["p-5d06fa91",[[0,"ai12z-beacon",{"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"disable":[516]},null,{"dataKey":[{"onPropChange":0}],"dataMode":[{"onPropChange":0}],"disable":[{"onPropChange":0}]}]]],["p-011b77dd",[[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}]}]]],["p-acaf89a9",[[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}]}]]],["p-cc717ebf",[[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}]}]]],["p-901079eb",[[0,"ai12z-category",{"categoryList":[520,"category-list"],"linkTarget":[513,"link-target"]},[[4,"clearResults","clearResultsHandler"]],{"categoryList":[{"watchCategoryList":0}]}],[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]}]]],["p-c580c2ec",[[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"],"openMenuUpward":[4,"open-menu-upward"],"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}]}]]],["p-26ae3f92",[[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"]]]]],["p-27e7129a",[[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"]]]]],["p-64e9659d",[[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"]}]]],["p-f0da6325",[[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}]}]]],["p-3fc2b8d9",[[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]}]]],["p-61d61d51",[[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]}]]],["p-c76d1511",[[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}]}]]],["p-7392e3e7",[[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}]}]]]]'),e))));
|
|
1
|
+
import{p as e,B as t,c as a,H as n,w as o,N as i,g as r,b as d}from"./p-DrTyKvbY.js";export{s as setNonce}from"./p-DrTyKvbY.js";var c=e=>{const t=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return t.call(this,e);const a=t.call(this,!1),s=this.childNodes;if(e)for(let e=0;e<s.length;e++)2!==s[e].nodeType&&a.appendChild(s[e].cloneNode(!0));return a}};(()=>{t.isDev&&!t.isTesting&&a("Running in development mode."),t.cloneNodeFix&&c(n.prototype);const s=t.scriptDataOpts?o.document&&Array.from(o.document.querySelectorAll("script")).find((e=>new RegExp(`/${i}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===i)):null,r=import.meta.url,d=t.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==r&&(d.resourcesUrl=new URL(".",r).href),e(d)})().then((async e=>(await r(),d(JSON.parse('[["p-8421d322",[[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}]}]]],["p-cee8f0d9",[[0,"dynamic-form",{"form":[8],"formSettings":[1032,"form-settings"],"formsettings":[8],"theme":[8]}]]],["p-9f812fb1",[[2,"ai12z-spinner",{"class":[1]}]]],["p-399cbd12",[[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]}]]],["p-5d06fa91",[[0,"ai12z-beacon",{"dataKey":[513,"data-key"],"dataMode":[513,"data-mode"],"disable":[516]},null,{"dataKey":[{"onPropChange":0}],"dataMode":[{"onPropChange":0}],"disable":[{"onPropChange":0}]}]]],["p-011b77dd",[[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}]}]]],["p-acaf89a9",[[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}]}]]],["p-cc717ebf",[[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}]}]]],["p-901079eb",[[0,"ai12z-category",{"categoryList":[520,"category-list"],"linkTarget":[513,"link-target"]},[[4,"clearResults","clearResultsHandler"]],{"categoryList":[{"watchCategoryList":0}]}],[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]}]]],["p-c580c2ec",[[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"],"openMenuUpward":[4,"open-menu-upward"],"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}]}]]],["p-26ae3f92",[[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"]]]]],["p-27e7129a",[[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"]]]]],["p-64e9659d",[[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"]}]]],["p-f0da6325",[[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}]}]]],["p-3fc2b8d9",[[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]}]]],["p-61d61d51",[[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]}]]],["p-c76d1511",[[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}]}]]],["p-8cca467d",[[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],"isSending":[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}]}]]]]'),e))));
|