athena-xai-chat 1.0.61 → 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
|
-
(
|
|
6037
|
-
const
|
|
6038
|
-
return 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
|
-
|
|
6056
|
-
|
|
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;
|
|
@@ -6681,7 +6687,10 @@ let yA = class extends y {
|
|
|
6681
6687
|
}
|
|
6682
6688
|
_resetChat() {
|
|
6683
6689
|
this.addEventListener("select-chat-reset", async () => {
|
|
6684
|
-
this._isVisible = !0, await this.selectChatController?.reset()
|
|
6690
|
+
this._isVisible = !0, await this.selectChatController?.reset(), window.innerWidth <= 768 && this._isVisible && window.scrollTo({
|
|
6691
|
+
top: 60,
|
|
6692
|
+
behavior: "smooth"
|
|
6693
|
+
});
|
|
6685
6694
|
});
|
|
6686
6695
|
}
|
|
6687
6696
|
async _initializeChat() {
|