@2uinc/frontend-component-xpert-chatbot 1.40.12 → 1.40.13
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 +35 -15
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
|
@@ -21002,21 +21002,41 @@ const xy = (e) => ({
|
|
|
21002
21002
|
}
|
|
21003
21003
|
}), ky = (e, t) => ({
|
|
21004
21004
|
img: ({ src: n, alt: r }) => /* @__PURE__ */ _.jsx(K0, { fallback: /* @__PURE__ */ _.jsx("div", { children: "Loading image..." }), children: /* @__PURE__ */ _.jsx(Od, { src: n, alt: r }) }),
|
|
21005
|
-
a: ({ children: n,
|
|
21006
|
-
|
|
21007
|
-
|
|
21008
|
-
|
|
21009
|
-
|
|
21010
|
-
|
|
21011
|
-
|
|
21012
|
-
|
|
21013
|
-
|
|
21014
|
-
|
|
21015
|
-
|
|
21016
|
-
|
|
21017
|
-
|
|
21018
|
-
|
|
21019
|
-
|
|
21005
|
+
a: ({ children: n, href: r, ...a }) => {
|
|
21006
|
+
const i = (u) => {
|
|
21007
|
+
const s = u?.type === "keydown", l = typeof u?.button != "number" || u.button === 0;
|
|
21008
|
+
if (!(!s && !l) && (u?.preventDefault?.(), u?.currentTarget?.dataset && (u.currentTarget.dataset.xpertLinkOpened = "1"), e?.(u), r))
|
|
21009
|
+
try {
|
|
21010
|
+
window.open(r, "_blank", "noopener,noreferrer");
|
|
21011
|
+
} catch {
|
|
21012
|
+
}
|
|
21013
|
+
};
|
|
21014
|
+
return /* @__PURE__ */ _.jsx(
|
|
21015
|
+
"a",
|
|
21016
|
+
{
|
|
21017
|
+
...a,
|
|
21018
|
+
href: r,
|
|
21019
|
+
target: "_blank",
|
|
21020
|
+
rel: "noopener noreferrer",
|
|
21021
|
+
onPointerDown: i,
|
|
21022
|
+
onClick: (u) => {
|
|
21023
|
+
if (u?.currentTarget?.dataset?.xpertLinkOpened === "1") {
|
|
21024
|
+
u.preventDefault(), delete u.currentTarget.dataset.xpertLinkOpened;
|
|
21025
|
+
return;
|
|
21026
|
+
}
|
|
21027
|
+
i(u);
|
|
21028
|
+
},
|
|
21029
|
+
onKeyDown: (u) => {
|
|
21030
|
+
(u.key === "Enter" || u.key === " ") && i(u);
|
|
21031
|
+
},
|
|
21032
|
+
style: {
|
|
21033
|
+
color: "-webkit-link",
|
|
21034
|
+
textDecoration: "underline"
|
|
21035
|
+
},
|
|
21036
|
+
children: n
|
|
21037
|
+
}
|
|
21038
|
+
);
|
|
21039
|
+
},
|
|
21020
21040
|
p: ({ children: n, ...r }) => /* @__PURE__ */ _.jsx("p", { ...r, style: t, children: n }),
|
|
21021
21041
|
"document-source": ({ children: n, node: r }) => {
|
|
21022
21042
|
const a = r?.properties?.dataIndex;
|