@wexio/messenger-widget-react 1.2.4 → 1.3.0
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/CHANGELOG.md +51 -1
- package/README.md +15 -1
- package/dist/{widget-react-DubCiNev.js → widget-react--IUy5lNt.js} +21 -20
- package/dist/{widget-react-CIy9jXND.js → widget-react-B7es3n1-.js} +1 -1
- package/dist/{widget-react-2tTH7-bO.js → widget-react-BAUpSGhZ.js} +1 -1
- package/dist/{widget-react-CtvdaJvy.js → widget-react-BXf2Ty8d.js} +4 -4
- package/dist/{widget-react-AwEaD0v2.js → widget-react-BZ-SHa2o.js} +169 -273
- package/dist/{widget-react-faSyVXFQ.js → widget-react-BgALABDe.js} +1 -1
- package/dist/{widget-react-DXP6EOCM.js → widget-react-BkXA6ytR.js} +1 -1
- package/dist/{widget-react-DV3UnggB.js → widget-react-CHSNuztJ.js} +137 -226
- package/dist/widget-react-CN_FIvMD.js +834 -0
- package/dist/widget-react-CuphoFsN.js +229 -0
- package/dist/{widget-react-DNFROpaS.js → widget-react-D8Z8cGhJ.js} +40 -48
- package/dist/{widget-react-B9X7Tn7t.js → widget-react-DSUX0aJn.js} +42 -50
- package/dist/{widget-react-CAsPo1rw.js → widget-react-DWgRcZF7.js} +127 -127
- package/dist/{widget-react-B9XrHKqv.js → widget-react-DbOJZl9F.js} +1238 -2052
- package/dist/{widget-react-BlTmXnei.js → widget-react-DgIxSjv7.js} +1 -1
- package/dist/widget-react-Ds5J9FbQ.js +27 -0
- package/dist/{widget-react-CK8xTxwO.js → widget-react-Dtx_fW3V.js} +4895 -4454
- package/dist/{widget-react-B8rXZyxg.js → widget-react-SI7deQTE.js} +1 -1
- package/dist/{widget-react-yTVzOzaU.js → widget-react-l5oryxYk.js} +87 -87
- package/dist/{widget-react-DDEFbIbU.js → widget-react-vXfa9GKf.js} +95 -117
- package/dist/widget-react-wSc9gIfG.js +198 -0
- package/dist/widget-react.d.ts +2 -2
- package/dist/widget-react.js +9370 -4672
- package/package.json +1 -1
|
@@ -11,23 +11,23 @@ import "react";
|
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "react/jsx-runtime";
|
|
13
13
|
import "react-dom/client";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { i as
|
|
17
|
-
import {
|
|
18
|
-
import { t as
|
|
19
|
-
import { a as
|
|
20
|
-
import { useEffect as
|
|
21
|
-
import { jsx as
|
|
14
|
+
import { F as e, M as t, b as n, c as r, ht as i, it as a, k as o, l as ee, rt as te, u as s, y as c } from "./widget-react-Dtx_fW3V.js";
|
|
15
|
+
import { i as l, n as u } from "./widget-react-krPPnv02.js";
|
|
16
|
+
import { i as d } from "./widget-react-CN_FIvMD.js";
|
|
17
|
+
import { o as f, p as ne, s as p, t as m } from "./widget-react-BZ-SHa2o.js";
|
|
18
|
+
import { t as re } from "./widget-react-SI7deQTE.js";
|
|
19
|
+
import { a as ie, c as ae, i as h, l as g, n as _, o as oe, r as v, s as y, t as b } from "./widget-react-vXfa9GKf.js";
|
|
20
|
+
import { useEffect as x, useMemo as S, useRef as C, useState as se } from "react";
|
|
21
|
+
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
22
22
|
//#region components/widget/help-article-view/helpers.ts
|
|
23
|
-
function
|
|
23
|
+
function ce(e) {
|
|
24
24
|
let t = (e) => Array.isArray(e) ? e : [];
|
|
25
25
|
return {
|
|
26
26
|
id: String(e._id ?? ""),
|
|
27
27
|
title: typeof e.title == "string" ? e.title : "",
|
|
28
28
|
excerpt: typeof e.excerpt == "string" ? e.excerpt : "",
|
|
29
29
|
content: typeof e.content == "string" ? e.content : "",
|
|
30
|
-
contentFormat: e.contentFormat ===
|
|
30
|
+
contentFormat: e.contentFormat === y.HTML ? y.HTML : y.MARKDOWN,
|
|
31
31
|
authors: t(e.authors).filter((e) => !!e && typeof e == "object").map((e) => ({
|
|
32
32
|
_id: String(e._id ?? ""),
|
|
33
33
|
name: typeof e.name == "string" ? e.name : null,
|
|
@@ -42,63 +42,63 @@ function D(e) {
|
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region components/widget/help-article-view/index.tsx
|
|
45
|
-
function
|
|
46
|
-
let
|
|
47
|
-
if (
|
|
48
|
-
let e =
|
|
49
|
-
return Array.isArray(e) ? e.find((e) => e && typeof e == "object" && e.slug ===
|
|
45
|
+
function E({ slug: u, locale: E, isDummy: D, onHandoff: O, onOpenArticle: k, onOpenTranslation: A, onTitleResolved: j }) {
|
|
46
|
+
let M = l("help"), N = l("demo"), P = t(), { config: F } = o(), I = F.messenger?.showRelatedHelpArticles ?? !0, L = F.messenger?.showReactionCounts ?? !0, R = re(), [z, B] = se(E), V = ie(z, N), H = S(() => {
|
|
47
|
+
if (D) return null;
|
|
48
|
+
let e = P.previewData?.helpArticles;
|
|
49
|
+
return Array.isArray(e) ? e.find((e) => e && typeof e == "object" && e.slug === u) ?? null : null;
|
|
50
50
|
}, [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
]),
|
|
51
|
+
P.previewData,
|
|
52
|
+
D,
|
|
53
|
+
u
|
|
54
|
+
]), U = !!H, { data: W, loading: ue } = p({
|
|
55
55
|
variables: { args: {
|
|
56
|
-
slug:
|
|
57
|
-
locale:
|
|
56
|
+
slug: u,
|
|
57
|
+
locale: E
|
|
58
58
|
} },
|
|
59
|
-
skip:
|
|
60
|
-
}), [q] = f(), { trackLinkClick: J } = r(), Y =
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
]), Z =
|
|
59
|
+
skip: D || U
|
|
60
|
+
}), G = te(), K = ee(G && !D && !U ? e.article(G, u, E) : null, W), [q] = f(), { trackLinkClick: J } = r(), Y = C(null), X = S(() => D ? i(V).find((e) => e.slug === u) : null, [
|
|
61
|
+
D,
|
|
62
|
+
u,
|
|
63
|
+
V
|
|
64
|
+
]), Z = D ? X ? {
|
|
65
65
|
id: X.id,
|
|
66
66
|
title: X.title,
|
|
67
67
|
excerpt: X.excerpt,
|
|
68
68
|
content: X.contentMarkdown,
|
|
69
|
-
contentFormat:
|
|
69
|
+
contentFormat: y.MARKDOWN,
|
|
70
70
|
authors: X.authors,
|
|
71
71
|
tags: X.tags,
|
|
72
72
|
reactionCounts: null,
|
|
73
|
-
locale:
|
|
73
|
+
locale: z,
|
|
74
74
|
translations: []
|
|
75
|
-
} : null :
|
|
76
|
-
...
|
|
77
|
-
reactionCounts:
|
|
78
|
-
locale:
|
|
75
|
+
} : null : U && H ? {
|
|
76
|
+
...ce(H),
|
|
77
|
+
reactionCounts: H.reactionCounts ?? null,
|
|
78
|
+
locale: E,
|
|
79
79
|
translations: []
|
|
80
|
-
} :
|
|
81
|
-
id:
|
|
82
|
-
title:
|
|
83
|
-
excerpt:
|
|
84
|
-
content:
|
|
85
|
-
contentFormat:
|
|
86
|
-
authors:
|
|
87
|
-
tags:
|
|
88
|
-
reactionCounts:
|
|
89
|
-
locale:
|
|
90
|
-
translations:
|
|
91
|
-
} : null, { data:
|
|
80
|
+
} : K?.visitorHelpArticle ? {
|
|
81
|
+
id: K.visitorHelpArticle._id,
|
|
82
|
+
title: K.visitorHelpArticle.title,
|
|
83
|
+
excerpt: K.visitorHelpArticle.excerpt ?? "",
|
|
84
|
+
content: K.visitorHelpArticle.content,
|
|
85
|
+
contentFormat: K.visitorHelpArticle.contentFormat,
|
|
86
|
+
authors: K.visitorHelpArticle.authors,
|
|
87
|
+
tags: K.visitorHelpArticle.tags,
|
|
88
|
+
reactionCounts: K.visitorHelpArticle.reactionCounts ?? null,
|
|
89
|
+
locale: K.visitorHelpArticle.locale,
|
|
90
|
+
translations: K.visitorHelpArticle.translations
|
|
91
|
+
} : null, { data: de } = ne({
|
|
92
92
|
variables: {
|
|
93
93
|
articleId: Z?.id ?? "",
|
|
94
94
|
limit: 5,
|
|
95
|
-
locale:
|
|
95
|
+
locale: E
|
|
96
96
|
},
|
|
97
|
-
skip:
|
|
98
|
-
}),
|
|
99
|
-
if (!
|
|
100
|
-
let e = (
|
|
101
|
-
let e =
|
|
97
|
+
skip: D || U || !Z?.id || !I
|
|
98
|
+
}), fe = S(() => {
|
|
99
|
+
if (!U || !Z?.id) return [];
|
|
100
|
+
let e = (P.previewData?.helpArticles ?? []).filter((e) => !!e && typeof e == "object"), t = new Set((Z.tags ?? []).map((e) => typeof e == "object" && e && "slug" in e ? String(e.slug) : null).filter((e) => !!e)), n = (() => {
|
|
101
|
+
let e = H;
|
|
102
102
|
if (!e) return null;
|
|
103
103
|
let t = e.folderId;
|
|
104
104
|
if (typeof t == "string") return t;
|
|
@@ -122,141 +122,141 @@ function O({ slug: l, locale: O, isDummy: k, onHandoff: ae, onOpenArticle: A, on
|
|
|
122
122
|
excerpt: typeof e.excerpt == "string" ? e.excerpt : null
|
|
123
123
|
}));
|
|
124
124
|
}, [
|
|
125
|
-
W,
|
|
126
|
-
Z,
|
|
127
125
|
U,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
Z,
|
|
127
|
+
H,
|
|
128
|
+
P.previewData
|
|
129
|
+
]), Q = U ? fe : de?.visitorHelpRelated ?? [], pe = D || U ? null : W?.visitorHelpArticle?.viewerReaction ?? null, me = !D && !U && W?.visitorHelpArticle ? [W.visitorHelpArticle._id, ...(W.visitorHelpArticle.translations ?? []).map((e) => e._id)] : Z?.id ? [Z.id] : [];
|
|
130
|
+
x(() => {
|
|
131
|
+
D || !Z?.id || !a() || q({ variables: { articleId: Z.id } }).catch(() => {});
|
|
132
132
|
}, [
|
|
133
133
|
Z?.id,
|
|
134
|
-
|
|
134
|
+
D,
|
|
135
135
|
q
|
|
136
|
-
]),
|
|
137
|
-
|
|
138
|
-
url: `/help/${
|
|
136
|
+
]), x(() => {
|
|
137
|
+
D || U || !Z?.id || Y.current !== Z.id && (Y.current = Z.id, J({
|
|
138
|
+
url: `/help/${u}`,
|
|
139
139
|
targetType: "HELP_ARTICLE",
|
|
140
140
|
targetRefId: Z.id
|
|
141
141
|
}));
|
|
142
142
|
}, [
|
|
143
143
|
Z?.id,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
D,
|
|
145
|
+
U,
|
|
146
|
+
u,
|
|
147
147
|
J
|
|
148
|
-
]),
|
|
149
|
-
let
|
|
150
|
-
if (!
|
|
148
|
+
]), oe(Z?.title, j);
|
|
149
|
+
let he = () => O();
|
|
150
|
+
if (!ue && !Z) return /* @__PURE__ */ w("div", {
|
|
151
151
|
className: "flex flex-1 flex-col items-center justify-center px-6 py-12",
|
|
152
|
-
children: /* @__PURE__ */
|
|
152
|
+
children: /* @__PURE__ */ w(c, { children: /* @__PURE__ */ w(n, {
|
|
153
153
|
className: "py-8 text-center",
|
|
154
|
-
children: /* @__PURE__ */
|
|
154
|
+
children: /* @__PURE__ */ w("p", {
|
|
155
155
|
className: "text-sm font-semibold text-wx-fg",
|
|
156
|
-
children:
|
|
156
|
+
children: M("articleNotFound")
|
|
157
157
|
})
|
|
158
158
|
}) })
|
|
159
159
|
});
|
|
160
|
-
let
|
|
161
|
-
return !
|
|
160
|
+
let ge = E.split("-")[0].toLowerCase(), $ = Z ? Z.locale.split("-")[0].toLowerCase() : null;
|
|
161
|
+
return !D && !U && !F.contentLocaleFallback && $ !== null && $ !== ge ? /* @__PURE__ */ w("div", {
|
|
162
162
|
className: "flex flex-1 flex-col items-center justify-center px-6 py-12",
|
|
163
|
-
children: /* @__PURE__ */
|
|
163
|
+
children: /* @__PURE__ */ w(c, { children: /* @__PURE__ */ w(n, {
|
|
164
164
|
className: "py-8 text-center",
|
|
165
|
-
children: /* @__PURE__ */
|
|
165
|
+
children: /* @__PURE__ */ w("p", {
|
|
166
166
|
className: "text-sm font-semibold text-wx-fg",
|
|
167
|
-
children:
|
|
167
|
+
children: M("articleNotTranslated")
|
|
168
168
|
})
|
|
169
169
|
}) })
|
|
170
|
-
}) : Z ? /* @__PURE__ */
|
|
170
|
+
}) : Z ? /* @__PURE__ */ w(s, {
|
|
171
171
|
className: "flex-1",
|
|
172
|
-
children: /* @__PURE__ */
|
|
172
|
+
children: /* @__PURE__ */ T("div", {
|
|
173
173
|
className: "flex flex-col px-5 pt-5 pb-12",
|
|
174
174
|
children: [
|
|
175
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ w("h2", {
|
|
176
176
|
className: "text-xl leading-tight font-bold text-wx-fg",
|
|
177
177
|
children: Z.title
|
|
178
178
|
}),
|
|
179
|
-
Z.authors.length > 0 && /* @__PURE__ */
|
|
179
|
+
Z.authors.length > 0 && /* @__PURE__ */ T("p", {
|
|
180
180
|
className: "mt-2 flex items-center gap-2 text-xs text-wx-fg-muted",
|
|
181
|
-
children: [/* @__PURE__ */
|
|
181
|
+
children: [/* @__PURE__ */ w("span", {
|
|
182
182
|
className: "flex -space-x-1.5",
|
|
183
|
-
children: Z.authors.slice(0, 3).map((e) => /* @__PURE__ */
|
|
183
|
+
children: Z.authors.slice(0, 3).map((e) => /* @__PURE__ */ w("span", {
|
|
184
184
|
className: "h-5 w-5 overflow-hidden rounded-full bg-wx-bg-elevated ring-1 ring-wx-bg",
|
|
185
185
|
"aria-hidden": "true",
|
|
186
|
-
children: e.photo?.url ? /* @__PURE__ */
|
|
186
|
+
children: e.photo?.url ? /* @__PURE__ */ w("img", {
|
|
187
187
|
src: e.photo.url,
|
|
188
188
|
alt: "",
|
|
189
189
|
className: "h-full w-full object-cover"
|
|
190
|
-
}) : /* @__PURE__ */
|
|
190
|
+
}) : /* @__PURE__ */ w("span", {
|
|
191
191
|
className: "flex h-full w-full items-center justify-center text-[10px] font-semibold uppercase text-wx-fg-muted",
|
|
192
192
|
children: (e.name ?? "?").charAt(0)
|
|
193
193
|
})
|
|
194
194
|
}, e._id))
|
|
195
|
-
}), /* @__PURE__ */
|
|
195
|
+
}), /* @__PURE__ */ w("span", { children: M("writtenBy", { names: Z.authors.map((e) => e.name ?? "").filter(Boolean).join(", ") }) })]
|
|
196
196
|
}),
|
|
197
|
-
Z.tags.length > 0 && /* @__PURE__ */
|
|
197
|
+
Z.tags.length > 0 && /* @__PURE__ */ w("div", {
|
|
198
198
|
className: "mt-2 flex flex-wrap gap-1",
|
|
199
|
-
children: Z.tags.map((e) => /* @__PURE__ */
|
|
199
|
+
children: Z.tags.map((e) => /* @__PURE__ */ w("span", {
|
|
200
200
|
className: "rounded-full bg-wx-bg-elevated px-2 py-0.5 text-[11px] font-medium text-wx-fg-muted",
|
|
201
201
|
children: e.label
|
|
202
202
|
}, e._id))
|
|
203
203
|
}),
|
|
204
|
-
Z.excerpt && /* @__PURE__ */
|
|
204
|
+
Z.excerpt && /* @__PURE__ */ w("p", {
|
|
205
205
|
className: "mt-2 mb-5 text-sm text-wx-fg-muted",
|
|
206
206
|
children: Z.excerpt
|
|
207
207
|
}),
|
|
208
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ w(v, {
|
|
209
209
|
content: Z.content,
|
|
210
|
-
isHtml: Z.contentFormat ===
|
|
210
|
+
isHtml: Z.contentFormat === y.HTML || g(Z.content),
|
|
211
211
|
markdownMarginClass: "mt-3"
|
|
212
212
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ T(m, {
|
|
214
214
|
type: "button",
|
|
215
215
|
variant: "solid",
|
|
216
216
|
size: "lg",
|
|
217
217
|
className: "mt-6 w-full shrink-0 min-h-12",
|
|
218
|
-
onClick:
|
|
219
|
-
...
|
|
220
|
-
children: [/* @__PURE__ */
|
|
221
|
-
ref:
|
|
218
|
+
onClick: he,
|
|
219
|
+
...R.parentHandlers,
|
|
220
|
+
children: [/* @__PURE__ */ w(d, {
|
|
221
|
+
ref: R.iconRef,
|
|
222
222
|
size: 16
|
|
223
|
-
}), /* @__PURE__ */
|
|
223
|
+
}), /* @__PURE__ */ w("span", { children: M("unresolvedCta") })]
|
|
224
224
|
}),
|
|
225
|
-
Z.id && /* @__PURE__ */
|
|
226
|
-
surface:
|
|
225
|
+
Z.id && /* @__PURE__ */ w(b, {
|
|
226
|
+
surface: ae.HELP,
|
|
227
227
|
itemId: Z.id,
|
|
228
228
|
reactionCounts: Z.reactionCounts,
|
|
229
|
-
viewerReaction:
|
|
230
|
-
groupItemIds:
|
|
231
|
-
isDummy:
|
|
232
|
-
showCounts:
|
|
229
|
+
viewerReaction: pe,
|
|
230
|
+
groupItemIds: me,
|
|
231
|
+
isDummy: D,
|
|
232
|
+
showCounts: L,
|
|
233
233
|
className: "mt-4"
|
|
234
234
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
-
currentLocale:
|
|
237
|
-
locales:
|
|
238
|
-
allowedLocales:
|
|
239
|
-
onSelect:
|
|
235
|
+
/* @__PURE__ */ w(_, {
|
|
236
|
+
currentLocale: D ? z : Z.locale,
|
|
237
|
+
locales: D ? [...h] : Z.translations.map((e) => e.locale),
|
|
238
|
+
allowedLocales: D ? void 0 : F.supportedLocales,
|
|
239
|
+
onSelect: D ? (e) => B(e) : (e) => {
|
|
240
240
|
let t = Z.translations.find((t) => t.locale === e);
|
|
241
|
-
t &&
|
|
241
|
+
t && A?.(t.slug, t.locale);
|
|
242
242
|
},
|
|
243
243
|
className: "mt-6"
|
|
244
244
|
}),
|
|
245
|
-
|
|
245
|
+
I && Q.length > 0 && /* @__PURE__ */ T("section", {
|
|
246
246
|
className: "mt-6",
|
|
247
|
-
children: [/* @__PURE__ */
|
|
247
|
+
children: [/* @__PURE__ */ w("p", {
|
|
248
248
|
className: "mb-2 text-xs font-semibold tracking-wide text-wx-fg-muted uppercase",
|
|
249
|
-
children:
|
|
250
|
-
}), /* @__PURE__ */
|
|
249
|
+
children: M("relatedTitle")
|
|
250
|
+
}), /* @__PURE__ */ w("ul", {
|
|
251
251
|
className: "flex flex-col gap-1.5",
|
|
252
|
-
children: Q.map((e) => /* @__PURE__ */
|
|
252
|
+
children: Q.map((e) => /* @__PURE__ */ w("li", { children: /* @__PURE__ */ T("button", {
|
|
253
253
|
type: "button",
|
|
254
|
-
onClick: () =>
|
|
254
|
+
onClick: () => k?.(e.slug),
|
|
255
255
|
className: "flex w-full flex-col items-start gap-0.5 rounded-wx-lg bg-wx-bg-elevated px-3 py-2 text-left transition-colors hover:bg-wx-bg-elevated/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wx-primary",
|
|
256
|
-
children: [/* @__PURE__ */
|
|
256
|
+
children: [/* @__PURE__ */ w("span", {
|
|
257
257
|
className: "block truncate text-sm font-medium text-wx-fg",
|
|
258
258
|
children: e.title
|
|
259
|
-
}), e.excerpt && /* @__PURE__ */
|
|
259
|
+
}), e.excerpt && /* @__PURE__ */ w("span", {
|
|
260
260
|
className: "line-clamp-1 block text-xs text-wx-fg-muted",
|
|
261
261
|
children: e.excerpt
|
|
262
262
|
})]
|
|
@@ -265,25 +265,25 @@ function O({ slug: l, locale: O, isDummy: k, onHandoff: ae, onOpenArticle: A, on
|
|
|
265
265
|
})
|
|
266
266
|
]
|
|
267
267
|
})
|
|
268
|
-
}) : /* @__PURE__ */
|
|
268
|
+
}) : /* @__PURE__ */ w(le, {});
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
return /* @__PURE__ */
|
|
270
|
+
function le() {
|
|
271
|
+
return /* @__PURE__ */ w(s, {
|
|
272
272
|
className: "flex-1",
|
|
273
|
-
children: /* @__PURE__ */
|
|
273
|
+
children: /* @__PURE__ */ T("div", {
|
|
274
274
|
className: "flex flex-col px-5 pt-5 pb-12",
|
|
275
275
|
"aria-busy": "true",
|
|
276
276
|
"aria-live": "polite",
|
|
277
277
|
children: [
|
|
278
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ T("div", {
|
|
279
279
|
className: "animate-pulse space-y-2.5",
|
|
280
|
-
children: [/* @__PURE__ */
|
|
280
|
+
children: [/* @__PURE__ */ w("div", { className: "h-5 w-3/4 rounded-md bg-wx-bg-elevated" }), /* @__PURE__ */ w("div", { className: "h-5 w-1/2 rounded-md bg-wx-bg-elevated" })]
|
|
281
281
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ T("div", {
|
|
283
283
|
className: "mt-4 flex items-center gap-2 animate-pulse",
|
|
284
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ w("div", { className: "h-5 w-5 rounded-full bg-wx-bg-elevated" }), /* @__PURE__ */ w("div", { className: "h-3 w-32 rounded-md bg-wx-bg-elevated" })]
|
|
285
285
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ w("div", {
|
|
287
287
|
className: "mt-6 space-y-2.5 animate-pulse",
|
|
288
288
|
children: [
|
|
289
289
|
"w-full",
|
|
@@ -294,13 +294,13 @@ function ie() {
|
|
|
294
294
|
"w-full",
|
|
295
295
|
"w-11/12",
|
|
296
296
|
"w-7/12"
|
|
297
|
-
].map((e, t) => /* @__PURE__ */
|
|
297
|
+
].map((e, t) => /* @__PURE__ */ w("div", { className: u("h-3 rounded-md bg-wx-bg-elevated", e) }, t))
|
|
298
298
|
})
|
|
299
299
|
]
|
|
300
300
|
})
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
//#endregion
|
|
304
|
-
export {
|
|
304
|
+
export { E as HelpArticleView };
|
|
305
305
|
|
|
306
|
-
//# sourceMappingURL=widget-react-
|
|
306
|
+
//# sourceMappingURL=widget-react-DWgRcZF7.js.map
|