athena-xai-chat 1.0.62 → 1.0.64

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.
@@ -2425,7 +2425,7 @@ class LQ {
2425
2425
  async loadQuestions() {
2426
2426
  const A = document.documentElement.lang || "en";
2427
2427
  try {
2428
- const B = await WQ(/* @__PURE__ */ Object.assign({ "../config/questions.de.backup.json": () => import("./questions.de.backup-DTJDDoUG.js"), "../config/questions.de.json": () => import("./questions.de-BL_Z0O76.js"), "../config/questions.en.backup.json": () => import("./questions.en.backup-CNLB--Eo.js"), "../config/questions.en.json": () => import("./questions.en-BcqpUBdA.js"), "../config/questions.fr.backup.json": () => import("./questions.fr.backup-lXq4fpcI.js"), "../config/questions.fr.json": () => import("./questions.fr-PiDeDbsl.js"), "../config/questions.it.backup.json": () => import("./questions.it.backup-CsuVtmln.js"), "../config/questions.it.json": () => import("./questions.it-Ao3kA7lK.js") }), `../config/questions.${A}.json`, 3);
2428
+ const B = await WQ(/* @__PURE__ */ Object.assign({ "../config/questions.de.backup.json": () => import("./questions.de.backup-DTJDDoUG.js"), "../config/questions.de.json": () => import("./questions.de-BL_Z0O76.js"), "../config/questions.en.backup.json": () => import("./questions.en.backup-CNLB--Eo.js"), "../config/questions.en.json": () => import("./questions.en-BcqpUBdA.js"), "../config/questions.fr.backup.json": () => import("./questions.fr.backup-lXq4fpcI.js"), "../config/questions.fr.json": () => import("./questions.fr-PiDeDbsl.js"), "../config/questions.it.backup.json": () => import("./questions.it.backup-CsuVtmln.js"), "../config/questions.it.json": () => import("./questions.it-CPhyE9V9.js") }), `../config/questions.${A}.json`, 3);
2429
2429
  this._questions = B.default;
2430
2430
  } catch {
2431
2431
  console.warn(`Falling back to English questions because "${A}" not found.`);
@@ -6033,9 +6033,9 @@ let rA = class extends y {
6033
6033
  const g = this._selectedResult;
6034
6034
  if (!g) return;
6035
6035
  const A = Object.entries(g.categories || {}).reduce(
6036
- (Q, [f, t]) => {
6037
- const o = f.replace("category", "item_category");
6038
- return Q[o] = t, Q;
6036
+ (B, [C, e]) => {
6037
+ const Q = C.replace("category", "item_category");
6038
+ return B[Q] = e, B;
6039
6039
  },
6040
6040
  {}
6041
6041
  );
@@ -6051,9 +6051,15 @@ let rA = class extends y {
6051
6051
  ...A
6052
6052
  }
6053
6053
  ]
6054
- }), await $(500);
6055
- const B = g?.link ?? "", C = B.includes("?") ? "&" : "?", e = `${B}${C}is-from-gift-finder=true`;
6056
- window.open(e, "_blank", "noopener,noreferrer");
6054
+ }), await $(500), window.open(g?.link ?? "", "_blank", "noopener,noreferrer"), setTimeout(() => {
6055
+ window.dispatchEvent(
6056
+ new CustomEvent("giftfinder:product-click", {
6057
+ detail: {
6058
+ productId: g?.sku
6059
+ }
6060
+ })
6061
+ );
6062
+ }, 750);
6057
6063
  }
6058
6064
  async _changeExplanation() {
6059
6065
  if (!this.results.length || !this._swiperInstance) return;