athena-xai-chat 1.0.62 → 1.0.63

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.
@@ -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;