@2uinc/frontend-component-xpert-chatbot 1.40.31-alpha.1 → 1.40.31-alpha.2
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 +11 -5
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
|
@@ -2832,15 +2832,20 @@ function Gu({
|
|
|
2832
2832
|
children: i,
|
|
2833
2833
|
...o
|
|
2834
2834
|
}) {
|
|
2835
|
-
const { isMobile: s } = Ie(jt), [u, l] = Te(!1), c = u ? "Expand chatbot launch button" : "Collapse chatbot launch button", h = (
|
|
2836
|
-
const
|
|
2835
|
+
const { isMobile: s } = Ie(jt), [u, l] = Te(!1), c = u ? "Expand chatbot launch button" : "Collapse chatbot launch button", h = (m) => {
|
|
2836
|
+
const y = m.target?.closest?.(
|
|
2837
2837
|
'[data-collapse-toggle="true"]'
|
|
2838
2838
|
);
|
|
2839
|
-
if (!s && r &&
|
|
2840
|
-
|
|
2839
|
+
if (!s && r && y) {
|
|
2840
|
+
m.preventDefault(), m.stopPropagation(), l((b) => !b);
|
|
2841
2841
|
return;
|
|
2842
2842
|
}
|
|
2843
|
-
n(
|
|
2843
|
+
n(m);
|
|
2844
|
+
}, p = (m) => {
|
|
2845
|
+
const y = m.target?.closest?.(
|
|
2846
|
+
'[data-collapse-toggle="true"]'
|
|
2847
|
+
);
|
|
2848
|
+
!s && r && y && m.preventDefault();
|
|
2844
2849
|
};
|
|
2845
2850
|
return /* @__PURE__ */ S.jsxs(
|
|
2846
2851
|
"button",
|
|
@@ -2859,6 +2864,7 @@ function Gu({
|
|
|
2859
2864
|
t
|
|
2860
2865
|
),
|
|
2861
2866
|
style: a,
|
|
2867
|
+
onMouseDown: p,
|
|
2862
2868
|
onClick: h,
|
|
2863
2869
|
...o,
|
|
2864
2870
|
children: [
|