ai12z 3.18.1-alpha.6 → 3.18.1-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/cjs/ai12z-bot.cjs.entry.js +1 -1
  2. package/dist/cjs/ai12z-chat_2.cjs.entry.js +3 -3
  3. package/dist/cjs/ai12z-knowledge-box.cjs.entry.js +3 -3
  4. package/dist/collection/components/ai12z-bot/ai12z-bot.js +1 -1
  5. package/dist/collection/components/ai12z-cta/components/Chat.js +3 -3
  6. package/dist/collection/components/ai12z-knowledge-box/ai12z-knowledge-box.js +3 -3
  7. package/dist/components/ai12z-bot.js +1 -1
  8. package/dist/components/ai12z-chat.js +1 -1
  9. package/dist/components/ai12z-cta.js +1 -1
  10. package/dist/components/ai12z-inline-search.js +1 -1
  11. package/dist/components/ai12z-knowledge-box.js +1 -1
  12. package/dist/components/index.js +1 -1
  13. package/dist/components/p-6rjAC9SF.js +1 -0
  14. package/dist/components/{p-DGR6nHvq.js → p-79S3732-.js} +1 -1
  15. package/dist/components/{p-o2M3zLfk.js → p-8qApXH06.js} +1 -1
  16. package/dist/components/{p-ClBV2FvS.js → p-97NcHeyv.js} +1 -1
  17. package/dist/components/{p-_zqCOmQU.js → p-B7hT_aMW.js} +1 -1
  18. package/dist/components/{p-pZWsPezk.js → p-Bdo8w0x_.js} +1 -1
  19. package/dist/components/search-results-page.js +1 -1
  20. package/dist/esm/ai12z-bot.entry.js +1 -1
  21. package/dist/esm/ai12z-chat_2.entry.js +3 -3
  22. package/dist/esm/ai12z-knowledge-box.entry.js +3 -3
  23. package/dist/library/library.esm.js +1 -1
  24. package/dist/library/p-2f942d6d.entry.js +1 -0
  25. package/dist/library/{p-2a32ceca.entry.js → p-547957fa.entry.js} +1 -1
  26. package/dist/library/p-981f46d8.entry.js +1 -0
  27. package/package.json +2 -2
  28. package/dist/components/p-Dq2GbZ7c.js +0 -1
  29. package/dist/library/p-35953140.entry.js +0 -1
  30. package/dist/library/p-df5639c0.entry.js +0 -1
@@ -2834,7 +2834,7 @@ const Ai12zBot = class {
2834
2834
  if (protocol === "v2") {
2835
2835
  eventName = "query";
2836
2836
  const beaconId = sessionStorage.getItem("ai12zBeaconId");
2837
- data = Object.assign({ query, botType: this.botType, 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: beacon.buildBeacon() }));
2837
+ data = Object.assign(Object.assign({ query, botType: this.botType, 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: beacon.buildBeacon() })), { attributes: this.dataAttributes, excludeTags: this.excludeTags, includeTags: this.includeTags, meta: utils.getMetaInfo() });
2838
2838
  }
2839
2839
  else {
2840
2840
  eventName = "evaluate_query";
@@ -931,7 +931,7 @@ const MyChat = class {
931
931
  if (protocol === "v2") {
932
932
  eventName = "query";
933
933
  const beaconId = sessionStorage.getItem("ai12zBeaconId");
934
- data = Object.assign({ query: this.query, conversation_id: this.conversationId || "", base64_images: ((_c = this.imgFiles) === null || _c === void 0 ? void 0 : _c.length) > 0 ? this.imgFiles : undefined, beacon_id: this.settings.disableBeacon ? "" : beaconId !== null && beaconId !== void 0 ? beaconId : "" }, (this.settings.disableBeacon || beaconId ? {} : { beacon_data: beacon.buildBeacon() }));
934
+ data = Object.assign(Object.assign({ query: this.query, conversation_id: this.conversationId || "", base64_images: ((_c = this.imgFiles) === null || _c === void 0 ? void 0 : _c.length) > 0 ? this.imgFiles : undefined, beacon_id: this.settings.disableBeacon ? "" : beaconId !== null && beaconId !== void 0 ? beaconId : "" }, (this.settings.disableBeacon || beaconId ? {} : { beacon_data: beacon.buildBeacon() })), { attributes: this.dataAttributes, excludeTags: this.chatExcludeTags, includeTags: this.chatIncludeTags, meta: utils.getMetaInfo() });
935
935
  }
936
936
  else {
937
937
  eventName = "evaluate_query";
@@ -1141,7 +1141,7 @@ const MyChat = class {
1141
1141
  render() {
1142
1142
  var _a;
1143
1143
  const email = "";
1144
- return (index.h("div", { key: 'd6729c1bfeda05fc16be01c031cb56109f38ac55' }, index.h("ul", { key: '9eddfd9e00ed40d7f8862825276ba9783c156a48', id: "main-content", tabindex: "-1", class: {
1144
+ return (index.h("div", { key: '8c7eb47de3df215b16be245508523f2bdfe2ec62' }, index.h("ul", { key: '3964600732eabc85fcd19843e788a428a33ced04', id: "main-content", tabindex: "-1", class: {
1145
1145
  "chat-list": true,
1146
1146
  "custom-list": this.componentType === "search",
1147
1147
  // "custom-chat-top-height": this.componentType === "search",
@@ -1217,7 +1217,7 @@ const MyChat = class {
1217
1217
  projectId: this.getProjectId(),
1218
1218
  questionText: analyticsService.getQuestionText(this.chats, chat.insightId) || "",
1219
1219
  }), class: "chat-thumbs-up", "aria-label": "Thumbs Down", tabindex: "0" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "w-6 h-6" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54" }))), index.h("button", { class: "copy-btn", tabindex: "0", "aria-label": "Send Email" }, index.h("a", { href: `mailto:${email}?subject=${encodeURIComponent((_e = this.chats[idx - 1]) === null || _e === void 0 ? void 0 : _e.message)}&body=${encodeURIComponent(this.removeHtmlTags(chat.clipboard))}`, target: "_blank", "aria-label": "Send Email" }, index.h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", stroke: "currentColor", "stroke-width": "0.3", class: "w-6 h-6" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.75 5.25L3 6V18L3.75 18.75H20.25L21 18V6L20.25 5.25H3.75ZM4.5 7.6955V17.25H19.5V7.69525L11.9999 14.5136L4.5 7.6955ZM18.3099 6.75H5.68986L11.9999 12.4864L18.3099 6.75Z", fill: "currentColor" }), " "))))))));
1220
- }), index.h("div", { key: 'e6215d4a53393410524d4464b3c70a2e5249eca2', class: "scroll-bottom" }))));
1220
+ }), index.h("div", { key: '5ee47a4243891b0de0dad6e0e3d545732035f279', class: "scroll-bottom" }))));
1221
1221
  }
1222
1222
  get element() { return index.getElement(this); }
1223
1223
  static get watchers() { return {
@@ -502,7 +502,7 @@ const Ai12zKnowledgeBox = class {
502
502
  if (protocol === "v2") {
503
503
  eventName = "query";
504
504
  const beaconId = sessionStorage.getItem("ai12zBeaconId");
505
- data = Object.assign({ query: this.question, conversation_id: this.questionId || "", beacon_id: this.kbSettings.disableBeacon ? "" : beaconId !== null && beaconId !== void 0 ? beaconId : "" }, (this.kbSettings.disableBeacon || beaconId ? {} : { beacon_data: beacon.buildBeacon() }));
505
+ data = Object.assign(Object.assign({ query: this.question, conversation_id: this.questionId || "", beacon_id: this.kbSettings.disableBeacon ? "" : beaconId !== null && beaconId !== void 0 ? beaconId : "" }, (this.kbSettings.disableBeacon || beaconId ? {} : { beacon_data: beacon.buildBeacon() })), { meta: utils.getMetaInfo() });
506
506
  }
507
507
  else {
508
508
  eventName = "evaluate_query";
@@ -616,7 +616,7 @@ const Ai12zKnowledgeBox = class {
616
616
  }
617
617
  render() {
618
618
  var _a, _b;
619
- return (index.h("div", { key: '528e6cbda6ea9876d54a866e3fb4532c87d80f55', class: "ai12z-kb-wrapper" }, this.error ? index.h("p", { class: "ai12z-suggest-error-msg" }, "Error please try again!") : null, this.items.map(item => {
619
+ return (index.h("div", { key: '3f393830c0530b5d4c341fbbee280378e6fe503a', class: "ai12z-kb-wrapper" }, this.error ? index.h("p", { class: "ai12z-suggest-error-msg" }, "Error please try again!") : null, this.items.map(item => {
620
620
  var _a, _b, _c, _d;
621
621
  return (index.h("div", { class: "prose max-w-none ai12z-suggest-container" }, index.h("div", null, index.h("div", null, index.h("div", { class: "flex flex-row gap-1" }, index.h("div", { class: "flex items-center gap-2 mb-3", style: { width: "90%" } }, ((_a = this.kbSettings) === null || _a === void 0 ? void 0 : _a.showTitle) && (index.h("svg", { width: "28", height: "28", viewBox: "0 0 48 48", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", class: "diamond-icon" + (this.isLoading && !this.finalResponse ? " loading" : "") }, index.h("path", { d: "M24 2c-3 8-8 13-16 16 8 3 13 8 16 16 3-8 8-13 16-16-8-3-13-8-16-16z" }))), ((_b = this.kbSettings) === null || _b === void 0 ? void 0 : _b.showTitle) && (index.h("h5", { class: "text-lg font-semibold text-gray-800 m-0" }, !this.finalResponse ? "Generating..." : (_c = this.kbSettings.title) !== null && _c !== void 0 ? _c : "AI Overview"))), item.thumbsUpDown && !this.isLoading && (index.h("div", null, index.h("button", { id: `thumbsUp_${item.insightId}`, onClick: () => {
622
622
  var _a;
@@ -637,7 +637,7 @@ const Ai12zKnowledgeBox = class {
637
637
  questionText: this.question,
638
638
  });
639
639
  }, class: "chat-thumbs-down", "aria-label": "Thumbs Down" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "w-6 h-6" }, index.h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54" }))))))), !this.isLoading && (index.h("div", null, ((_d = this.searchResults) === null || _d === void 0 ? void 0 : _d.controlType) !== "form" && (index.h("ai12z-chat-message", { id: item.id, text: this.currentStreamingText, kbSettings: this.kbSettings, "show-button": this.showButton, streaming: this.isStreaming && item.id === this.domId })), index.h("div", { class: { "ai12z-suggest-relevance": true, "ai12z-suggest-hide": !item["isRelevance"] } }, index.h("a", { href: "" }, item === null || item === void 0 ? void 0 : item["relevanceScore"])), index.h("div", { class: "custom-privacy" }, index.h("slot", { name: "custom-privacy" })))), this.isLoading && (index.h("div", { class: "w-full rounded-md", id: "spinner" }, index.h("div", { class: "flex animate-pulse space-x-4" }, index.h("div", { class: "flex-1 space-y-3 py-1" }, index.h("div", { class: "h-4 rounded bg-gray-200" }), index.h("div", { class: "space-y-3" }, index.h("div", { class: "grid grid-cols-3 gap-4" }, index.h("div", { class: "col-span-2 h-4 rounded bg-gray-200" }), index.h("div", { class: "col-span-1 h-4 rounded bg-gray-200" })), index.h("div", { class: "h-4 rounded bg-gray-200" })))))))));
640
- }), ((_a = this.kbSettings) === null || _a === void 0 ? void 0 : _a.questionType) === "staticHtml" && this.items.length === 0 && this.welcomeReady && (index.h("div", { key: '040e61ffaf585e45110353b455e8b9dcc4d5f57c', class: "ai12z-suggest-answer", innerHTML: (_b = this.kbSettings.welcome) === null || _b === void 0 ? void 0 : _b.message }))));
640
+ }), ((_a = this.kbSettings) === null || _a === void 0 ? void 0 : _a.questionType) === "staticHtml" && this.items.length === 0 && this.welcomeReady && (index.h("div", { key: '82fef6df435074c106995d6a2e027c0760a45125', class: "ai12z-suggest-answer", innerHTML: (_b = this.kbSettings.welcome) === null || _b === void 0 ? void 0 : _b.message }))));
641
641
  }
642
642
  static get assetsDirs() { return ["assets"]; }
643
643
  get el() { return index.getElement(this); }
@@ -1800,7 +1800,7 @@ export class Ai12zBot {
1800
1800
  if (protocol === "v2") {
1801
1801
  eventName = "query";
1802
1802
  const beaconId = sessionStorage.getItem("ai12zBeaconId");
1803
- data = Object.assign({ query, botType: this.botType, 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() }));
1803
+ data = Object.assign(Object.assign({ query, botType: this.botType, 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() })), { attributes: this.dataAttributes, excludeTags: this.excludeTags, includeTags: this.includeTags, meta: getMetaInfo() });
1804
1804
  }
1805
1805
  else {
1806
1806
  eventName = "evaluate_query";
@@ -924,7 +924,7 @@ export class MyChat {
924
924
  if (protocol === "v2") {
925
925
  eventName = "query";
926
926
  const beaconId = sessionStorage.getItem("ai12zBeaconId");
927
- data = Object.assign({ query: this.query, conversation_id: this.conversationId || "", base64_images: ((_c = this.imgFiles) === null || _c === void 0 ? void 0 : _c.length) > 0 ? this.imgFiles : undefined, beacon_id: this.settings.disableBeacon ? "" : beaconId !== null && beaconId !== void 0 ? beaconId : "" }, (this.settings.disableBeacon || beaconId ? {} : { beacon_data: buildBeacon() }));
927
+ data = Object.assign(Object.assign({ query: this.query, conversation_id: this.conversationId || "", base64_images: ((_c = this.imgFiles) === null || _c === void 0 ? void 0 : _c.length) > 0 ? this.imgFiles : undefined, beacon_id: this.settings.disableBeacon ? "" : beaconId !== null && beaconId !== void 0 ? beaconId : "" }, (this.settings.disableBeacon || beaconId ? {} : { beacon_data: buildBeacon() })), { attributes: this.dataAttributes, excludeTags: this.chatExcludeTags, includeTags: this.chatIncludeTags, meta: getMetaInfo() });
928
928
  }
929
929
  else {
930
930
  eventName = "evaluate_query";
@@ -1134,7 +1134,7 @@ export class MyChat {
1134
1134
  render() {
1135
1135
  var _a;
1136
1136
  const email = "";
1137
- return (h("div", { key: 'd6729c1bfeda05fc16be01c031cb56109f38ac55' }, h("ul", { key: '9eddfd9e00ed40d7f8862825276ba9783c156a48', id: "main-content", tabindex: "-1", class: {
1137
+ return (h("div", { key: '8c7eb47de3df215b16be245508523f2bdfe2ec62' }, h("ul", { key: '3964600732eabc85fcd19843e788a428a33ced04', id: "main-content", tabindex: "-1", class: {
1138
1138
  "chat-list": true,
1139
1139
  "custom-list": this.componentType === "search",
1140
1140
  // "custom-chat-top-height": this.componentType === "search",
@@ -1210,7 +1210,7 @@ export class MyChat {
1210
1210
  projectId: this.getProjectId(),
1211
1211
  questionText: getQuestionText(this.chats, chat.insightId) || "",
1212
1212
  }), class: "chat-thumbs-up", "aria-label": "Thumbs Down", tabindex: "0" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "w-6 h-6" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54" }))), h("button", { class: "copy-btn", tabindex: "0", "aria-label": "Send Email" }, h("a", { href: `mailto:${email}?subject=${encodeURIComponent((_e = this.chats[idx - 1]) === null || _e === void 0 ? void 0 : _e.message)}&body=${encodeURIComponent(this.removeHtmlTags(chat.clipboard))}`, target: "_blank", "aria-label": "Send Email" }, h("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", stroke: "currentColor", "stroke-width": "0.3", class: "w-6 h-6" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.75 5.25L3 6V18L3.75 18.75H20.25L21 18V6L20.25 5.25H3.75ZM4.5 7.6955V17.25H19.5V7.69525L11.9999 14.5136L4.5 7.6955ZM18.3099 6.75H5.68986L11.9999 12.4864L18.3099 6.75Z", fill: "currentColor" }), " "))))))));
1213
- }), h("div", { key: 'e6215d4a53393410524d4464b3c70a2e5249eca2', class: "scroll-bottom" }))));
1213
+ }), h("div", { key: '5ee47a4243891b0de0dad6e0e3d545732035f279', class: "scroll-bottom" }))));
1214
1214
  }
1215
1215
  static get is() { return "ai12z-chat"; }
1216
1216
  static get encapsulation() { return "shadow"; }
@@ -496,7 +496,7 @@ export class Ai12zKnowledgeBox {
496
496
  if (protocol === "v2") {
497
497
  eventName = "query";
498
498
  const beaconId = sessionStorage.getItem("ai12zBeaconId");
499
- data = Object.assign({ query: this.question, conversation_id: this.questionId || "", beacon_id: this.kbSettings.disableBeacon ? "" : beaconId !== null && beaconId !== void 0 ? beaconId : "" }, (this.kbSettings.disableBeacon || beaconId ? {} : { beacon_data: buildBeacon() }));
499
+ data = Object.assign(Object.assign({ query: this.question, conversation_id: this.questionId || "", beacon_id: this.kbSettings.disableBeacon ? "" : beaconId !== null && beaconId !== void 0 ? beaconId : "" }, (this.kbSettings.disableBeacon || beaconId ? {} : { beacon_data: buildBeacon() })), { meta: getMetaInfo() });
500
500
  }
501
501
  else {
502
502
  eventName = "evaluate_query";
@@ -610,7 +610,7 @@ export class Ai12zKnowledgeBox {
610
610
  }
611
611
  render() {
612
612
  var _a, _b;
613
- return (h("div", { key: '528e6cbda6ea9876d54a866e3fb4532c87d80f55', class: "ai12z-kb-wrapper" }, this.error ? h("p", { class: "ai12z-suggest-error-msg" }, "Error please try again!") : null, this.items.map(item => {
613
+ return (h("div", { key: '3f393830c0530b5d4c341fbbee280378e6fe503a', class: "ai12z-kb-wrapper" }, this.error ? h("p", { class: "ai12z-suggest-error-msg" }, "Error please try again!") : null, this.items.map(item => {
614
614
  var _a, _b, _c, _d;
615
615
  return (h("div", { class: "prose max-w-none ai12z-suggest-container" }, h("div", null, h("div", null, h("div", { class: "flex flex-row gap-1" }, h("div", { class: "flex items-center gap-2 mb-3", style: { width: "90%" } }, ((_a = this.kbSettings) === null || _a === void 0 ? void 0 : _a.showTitle) && (h("svg", { width: "28", height: "28", viewBox: "0 0 48 48", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", class: "diamond-icon" + (this.isLoading && !this.finalResponse ? " loading" : "") }, h("path", { d: "M24 2c-3 8-8 13-16 16 8 3 13 8 16 16 3-8 8-13 16-16-8-3-13-8-16-16z" }))), ((_b = this.kbSettings) === null || _b === void 0 ? void 0 : _b.showTitle) && (h("h5", { class: "text-lg font-semibold text-gray-800 m-0" }, !this.finalResponse ? "Generating..." : (_c = this.kbSettings.title) !== null && _c !== void 0 ? _c : "AI Overview"))), item.thumbsUpDown && !this.isLoading && (h("div", null, h("button", { id: `thumbsUp_${item.insightId}`, onClick: () => {
616
616
  var _a;
@@ -631,7 +631,7 @@ export class Ai12zKnowledgeBox {
631
631
  questionText: this.question,
632
632
  });
633
633
  }, class: "chat-thumbs-down", "aria-label": "Thumbs Down" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "w-6 h-6" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54" }))))))), !this.isLoading && (h("div", null, ((_d = this.searchResults) === null || _d === void 0 ? void 0 : _d.controlType) !== "form" && (h("ai12z-chat-message", { id: item.id, text: this.currentStreamingText, kbSettings: this.kbSettings, "show-button": this.showButton, streaming: this.isStreaming && item.id === this.domId })), h("div", { class: { "ai12z-suggest-relevance": true, "ai12z-suggest-hide": !item["isRelevance"] } }, h("a", { href: "" }, item === null || item === void 0 ? void 0 : item["relevanceScore"])), h("div", { class: "custom-privacy" }, h("slot", { name: "custom-privacy" })))), this.isLoading && (h("div", { class: "w-full rounded-md", id: "spinner" }, h("div", { class: "flex animate-pulse space-x-4" }, h("div", { class: "flex-1 space-y-3 py-1" }, h("div", { class: "h-4 rounded bg-gray-200" }), h("div", { class: "space-y-3" }, h("div", { class: "grid grid-cols-3 gap-4" }, h("div", { class: "col-span-2 h-4 rounded bg-gray-200" }), h("div", { class: "col-span-1 h-4 rounded bg-gray-200" })), h("div", { class: "h-4 rounded bg-gray-200" })))))))));
634
- }), ((_a = this.kbSettings) === null || _a === void 0 ? void 0 : _a.questionType) === "staticHtml" && this.items.length === 0 && this.welcomeReady && (h("div", { key: '040e61ffaf585e45110353b455e8b9dcc4d5f57c', class: "ai12z-suggest-answer", innerHTML: (_b = this.kbSettings.welcome) === null || _b === void 0 ? void 0 : _b.message }))));
634
+ }), ((_a = this.kbSettings) === null || _a === void 0 ? void 0 : _a.questionType) === "staticHtml" && this.items.length === 0 && this.welcomeReady && (h("div", { key: '82fef6df435074c106995d6a2e027c0760a45125', class: "ai12z-suggest-answer", innerHTML: (_b = this.kbSettings.welcome) === null || _b === void 0 ? void 0 : _b.message }))));
635
635
  }
636
636
  static get is() { return "ai12z-knowledge-box"; }
637
637
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- import{A as o,d as s}from"./p-DGR6nHvq.js";const p=o,r=s;export{p as Ai12zBot,r as defineCustomElement}
1
+ import{A as o,d as s}from"./p-79S3732-.js";const p=o,r=s;export{p as Ai12zBot,r as defineCustomElement}
@@ -1 +1 @@
1
- import{M as o,d as s}from"./p-o2M3zLfk.js";const p=o,r=s;export{p as Ai12zChat,r as defineCustomElement}
1
+ import{M as o,d as p}from"./p-8qApXH06.js";const s=o,r=p;export{s as Ai12zChat,r as defineCustomElement}
@@ -1 +1 @@
1
- import{A as o,d as s}from"./p-ClBV2FvS.js";const p=o,r=s;export{p as Ai12zCta,r as defineCustomElement}
1
+ import{A as o,d as s}from"./p-97NcHeyv.js";const p=o,r=s;export{p as Ai12zCta,r as defineCustomElement}
@@ -1 +1 @@
1
- import{A as s,d as o}from"./p-pZWsPezk.js";const p=s,r=o;export{p as Ai12zInlineSearch,r as defineCustomElement}
1
+ import{A as o,d as s}from"./p-Bdo8w0x_.js";const p=o,r=s;export{p as Ai12zInlineSearch,r as defineCustomElement}
@@ -1 +1 @@
1
- import{A as o,d as s}from"./p-Dq2GbZ7c.js";const p=o,r=s;export{p as Ai12zKnowledgeBox,r as defineCustomElement}
1
+ import{A as o,d as r}from"./p-6rjAC9SF.js";const s=o,p=r;export{s as Ai12zKnowledgeBox,p as defineCustomElement}
@@ -1 +1 @@
1
- import{g as e}from"./p-rVmRQ8bG.js";export{a as getAssetPath,r as render,s as setAssetPath,b as setNonce,c as setPlatformOptions}from"./p-rVmRQ8bG.js";export{A as Ai12zBeacon}from"./p-DAbUgLyU.js";export{A as Ai12zBot}from"./p-DGR6nHvq.js";export{A as Ai12zCta}from"./p-ClBV2FvS.js";export{A as Ai12zKnowledgeBox}from"./p-Dq2GbZ7c.js";export{S as Ai12zSearchPanel}from"./p-B4yEREni.js";export{S as Ai12zSearchResultsPage}from"./p-_zqCOmQU.js";export{A as Ai12zInlineSearch}from"./p-pZWsPezk.js";export{A as Ai12zForm}from"./p-DcOKHO2y.js";export{A as Ai12zContainer}from"./p-C_vJzk90.js";e();
1
+ import{g as o}from"./p-rVmRQ8bG.js";export{a as getAssetPath,r as render,s as setAssetPath,b as setNonce,c as setPlatformOptions}from"./p-rVmRQ8bG.js";export{A as Ai12zBeacon}from"./p-DAbUgLyU.js";export{A as Ai12zBot}from"./p-79S3732-.js";export{A as Ai12zCta}from"./p-97NcHeyv.js";export{A as Ai12zKnowledgeBox}from"./p-6rjAC9SF.js";export{S as Ai12zSearchPanel}from"./p-B4yEREni.js";export{S as Ai12zSearchResultsPage}from"./p-B7hT_aMW.js";export{A as Ai12zInlineSearch}from"./p-Bdo8w0x_.js";export{A as Ai12zForm}from"./p-DcOKHO2y.js";export{A as Ai12zContainer}from"./p-C_vJzk90.js";o();