@2uinc/frontend-component-xpert-chatbot 1.36.0-alpha.15 → 1.36.0-alpha.17
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 -14
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -19916,18 +19916,18 @@ const zT = () => /* @__PURE__ */ S.jsx(
|
|
19916
19916
|
)
|
19917
19917
|
}
|
19918
19918
|
), od = ({ src: e, alt: t, ...n }) => {
|
19919
|
-
const { streaming: r } = oe(Xe), a = tt(null), [i, u] = ce(!1), [s, l] = ce(!
|
19919
|
+
const { streaming: r } = oe(Xe), a = tt(null), [i, u] = ce(!1), [s, l] = ce(!1);
|
19920
19920
|
return Ne(() => {
|
19921
|
-
const
|
19922
|
-
if (!
|
19923
|
-
const
|
19924
|
-
([
|
19925
|
-
u(
|
19921
|
+
const c = a.current;
|
19922
|
+
if (!c) return;
|
19923
|
+
const d = new IntersectionObserver(
|
19924
|
+
([f]) => {
|
19925
|
+
u(f.isIntersecting);
|
19926
19926
|
},
|
19927
19927
|
{ threshold: 0.01 }
|
19928
19928
|
);
|
19929
|
-
return
|
19930
|
-
|
19929
|
+
return d.observe(c), () => {
|
19930
|
+
d.disconnect();
|
19931
19931
|
};
|
19932
19932
|
}, []), /* @__PURE__ */ S.jsxs(
|
19933
19933
|
"div",
|
@@ -19944,18 +19944,15 @@ const zT = () => /* @__PURE__ */ S.jsx(
|
|
19944
19944
|
role: "img",
|
19945
19945
|
"aria-label": t || "Image",
|
19946
19946
|
children: [
|
19947
|
-
(r ||
|
19948
|
-
i && !r && !
|
19947
|
+
(r || s) && /* @__PURE__ */ S.jsx(zT, {}),
|
19948
|
+
i && !r && !s && /* @__PURE__ */ S.jsx(
|
19949
19949
|
"img",
|
19950
19950
|
{
|
19951
19951
|
src: e,
|
19952
19952
|
alt: t,
|
19953
19953
|
loading: "lazy",
|
19954
|
-
onLoad: () => {
|
19955
|
-
l(!1);
|
19956
|
-
},
|
19957
19954
|
onError: () => {
|
19958
|
-
l(!
|
19955
|
+
l(!0);
|
19959
19956
|
},
|
19960
19957
|
style: {
|
19961
19958
|
maxWidth: "100%",
|