@2uinc/frontend-component-xpert-chatbot 1.11.0-alpha.6 → 1.11.0-alpha.8
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/lib/index.min.js +6 -7
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -2822,21 +2822,20 @@ const Eu = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTg3MSIgaGVpZ2h0PSI1NjQiIH
|
|
2822
2822
|
clearTimeout(p);
|
2823
2823
|
};
|
2824
2824
|
}, [t.delayMs]), Ie(() => {
|
2825
|
-
|
2826
|
-
return;
|
2827
|
-
const p = window.addEventListener("mousemove", (m) => {
|
2825
|
+
let p = (m) => {
|
2828
2826
|
if (!(o != null && o.current))
|
2829
2827
|
return;
|
2830
2828
|
i.current.querySelectorAll(
|
2831
2829
|
".xpert_chatbot__animated_graduate__pupil"
|
2832
2830
|
).forEach((I) => {
|
2833
|
-
var b = I.getBoundingClientRect(), C = (m.pageX - b.left) / 30 + "px", x = (m.pageY - window.scrollY - b.top) / 30 + "px";
|
2831
|
+
var b = I.getBoundingClientRect(), C = (m.pageX - window.scrollX - b.left) / 30 + "px", x = (m.pageY - window.scrollY - b.top) / 30 + "px";
|
2834
2832
|
I.style.transform = "translate3d(" + C + "," + x + ", 0px)";
|
2835
2833
|
});
|
2836
|
-
});
|
2837
|
-
return () => {
|
2838
|
-
window.removeEventListener("mousemove", p);
|
2839
2834
|
};
|
2835
|
+
if (!(o != null && o.current || !t.delayMs))
|
2836
|
+
return window.addEventListener("mousemove", p), () => {
|
2837
|
+
window.removeEventListener("mousemove", p);
|
2838
|
+
};
|
2840
2839
|
}, [t.delayMs]);
|
2841
2840
|
const l = () => {
|
2842
2841
|
a || (o.current = !0);
|