@wexio/messenger-widget-react 1.0.28 → 1.1.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.
Files changed (42) hide show
  1. package/dist/{widget-react-BeCDy-n82.js → widget-react--Z53yWLq2.js} +11 -3
  2. package/dist/{widget-react--j_oeaHy.js → widget-react-B1xXdkrb.js} +10 -2
  3. package/dist/{widget-react-BaROuJiw.js → widget-react-BAidDzVE.js} +11 -3
  4. package/dist/{widget-react-C68tIjqi2.js → widget-react-BApgrs0F2.js} +10 -2
  5. package/dist/{widget-react-CpCijjXq.js → widget-react-BXWBpwSG.js} +11 -3
  6. package/dist/{widget-react-DyuBV6av.js → widget-react-BeiQb2DF.js} +11 -3
  7. package/dist/{widget-react-T1KxsYpy.js → widget-react-Bewo4hAN.js} +11 -3
  8. package/dist/{widget-react-od9e0Ugq.js → widget-react-Bh-QS4id.js} +11 -3
  9. package/dist/{widget-react-HdCmkcuG.js → widget-react-Br4IdRpT.js} +11 -3
  10. package/dist/{widget-react-CWjaunNP.js → widget-react-Budvz0_j.js} +11 -3
  11. package/dist/{widget-react-B6UhqBJd.js → widget-react-C-AT2-gv.js} +10 -2
  12. package/dist/{widget-react-CPUNK9nH.js → widget-react-C1espdWC.js} +11 -3
  13. package/dist/{widget-react-D4L5tDax2.js → widget-react-C2zCJ9nY2.js} +4 -4
  14. package/dist/{widget-react-CwYIlZc0.js → widget-react-CD4t2uUl.js} +11 -3
  15. package/dist/{widget-react-Bj9TL4Kb.js → widget-react-CHovQzDz.js} +11 -3
  16. package/dist/{widget-react-BU-5w9zn2.js → widget-react-CN_ZiUtH2.js} +7 -7
  17. package/dist/{widget-react-BSrCOwHs.js → widget-react-CQ0MdjMO.js} +225 -225
  18. package/dist/{widget-react-BE-hnNxO2.js → widget-react-CRMJO52c2.js} +10 -2
  19. package/dist/{widget-react-BD4KAXKy2.js → widget-react-CRU0Mk7M2.js} +11 -3
  20. package/dist/{widget-react-DkmenoyB.js → widget-react-CXoyPTrE.js} +10 -2
  21. package/dist/{widget-react-3FsNLmkN.js → widget-react-CYNlFLU2.js} +10 -2
  22. package/dist/{widget-react-DyfWPmJL2.js → widget-react-CoGUeF_h2.js} +10 -2
  23. package/dist/{widget-react-DyMH0fHM.js → widget-react-CrpD2kq2.js} +10 -2
  24. package/dist/{widget-react-Cwn_Gz4N.js → widget-react-CtqfleDq.js} +10 -2
  25. package/dist/{widget-react-DfX-FjHu.js → widget-react-D4IN0PAd.js} +63 -63
  26. package/dist/{widget-react-EUJcOcjS.js → widget-react-D8VVnE_C.js} +11 -3
  27. package/dist/{widget-react-DEf9HRCg.js → widget-react-DCMGvY8I.js} +11 -3
  28. package/dist/{widget-react-D3g52DyI.js → widget-react-Da9YD8ww.js} +11 -3
  29. package/dist/{widget-react-CEQ-cZAm.js → widget-react-DggFuVeH.js} +11 -3
  30. package/dist/{widget-react-D5-vMxtR2.js → widget-react-DvJJgkjL2.js} +11 -3
  31. package/dist/{widget-react-CRhaCC5f.js → widget-react-Dwh_wT04.js} +11 -3
  32. package/dist/{widget-react-CPQgBGlB.js → widget-react-DxMQL_8s.js} +11 -3
  33. package/dist/{widget-react-BfYqRknT.js → widget-react-OBiIuvv4.js} +11 -3
  34. package/dist/{widget-react-D6Pydbhg.js → widget-react-PPEhhlha.js} +11 -3
  35. package/dist/{widget-react-C90ZurSx.js → widget-react-TvsiLCVT.js} +11 -3
  36. package/dist/{widget-react-D2j_XvHF.js → widget-react-eXbKkl7c.js} +11 -3
  37. package/dist/{widget-react-BlpGsLnt.js → widget-react-nq6E5YOO.js} +363 -363
  38. package/dist/{widget-react-ecrdUwW-2.js → widget-react-qRVXcyaM2.js} +10 -2
  39. package/dist/{widget-react-BwHHN-at.js → widget-react-qdPNeB-W.js} +2 -2
  40. package/dist/{widget-react-B3JUsNG42.js → widget-react-zxHGJvC92.js} +34 -32
  41. package/dist/widget-react.js +3174 -2907
  42. package/package.json +1 -1
@@ -12,12 +12,188 @@ import "react-dom";
12
12
  import "react/jsx-runtime";
13
13
  import "react-dom/client";
14
14
  import { c as e, d as t } from "./widget-react-B9XrHKqv.js";
15
- import { D as n, F as r, h as i, m as a, r as o, w as s, z as c } from "./widget-react-DfX-FjHu.js";
15
+ import { E as n, F as r, h as i, m as a, r as o, w as s, z as c } from "./widget-react-D4IN0PAd.js";
16
16
  import { i as l, n as u, o as d, t as f } from "./widget-react-CQ0DMi7b.js";
17
17
  import { useCallback as p, useEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
18
18
  import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
19
+ //#region lib/graphql/queries/generated/news.generated.tsx
20
+ var x = {}, S = c`
21
+ query VisitorNewsList($args: VisitorNewsListArgs) {
22
+ visitorNewsList(args: $args) {
23
+ items {
24
+ _id
25
+ title
26
+ slug
27
+ excerpt
28
+ publishedAt
29
+ upstreamUpdatedAt
30
+ reactionCounts
31
+ coverImageUrl {
32
+ _id
33
+ url
34
+ }
35
+ externalCoverImageUrl
36
+ authors {
37
+ _id
38
+ name
39
+ photo {
40
+ _id
41
+ url
42
+ }
43
+ }
44
+ categories {
45
+ _id
46
+ slug
47
+ label
48
+ }
49
+ tags {
50
+ _id
51
+ slug
52
+ label
53
+ }
54
+ }
55
+ meta {
56
+ totalCount
57
+ currentPage
58
+ totalPages
59
+ hasNextPage
60
+ hasPreviousPage
61
+ }
62
+ }
63
+ }
64
+ `;
65
+ function C(e) {
66
+ return r(S, {
67
+ ...x,
68
+ ...e
69
+ });
70
+ }
71
+ var w = c`
72
+ query VisitorNewsPostCard($args: VisitorNewsPostArgs!) {
73
+ visitorNewsPost(args: $args) {
74
+ _id
75
+ title
76
+ excerpt
77
+ coverImageUrl {
78
+ _id
79
+ url
80
+ }
81
+ externalCoverImageUrl
82
+ }
83
+ }
84
+ `;
85
+ function T(e) {
86
+ return r(w, {
87
+ ...x,
88
+ ...e
89
+ });
90
+ }
91
+ var E = c`
92
+ query VisitorNewsPost($args: VisitorNewsPostArgs!) {
93
+ visitorNewsPost(args: $args) {
94
+ _id
95
+ title
96
+ slug
97
+ excerpt
98
+ contentMarkdown
99
+ bodyFormat
100
+ locale
101
+ publishedAt
102
+ upstreamUpdatedAt
103
+ viewCount
104
+ reactionCounts
105
+ viewerReaction
106
+ sourceUrl
107
+ coverImageUrl {
108
+ _id
109
+ url
110
+ }
111
+ externalCoverImageUrl
112
+ source {
113
+ _id
114
+ name
115
+ type
116
+ }
117
+ authors {
118
+ _id
119
+ name
120
+ photo {
121
+ _id
122
+ url
123
+ }
124
+ }
125
+ categories {
126
+ _id
127
+ slug
128
+ label
129
+ }
130
+ tags {
131
+ _id
132
+ slug
133
+ label
134
+ }
135
+ translations {
136
+ _id
137
+ locale
138
+ slug
139
+ }
140
+ }
141
+ }
142
+ `;
143
+ function D(e) {
144
+ return r(E, {
145
+ ...x,
146
+ ...e
147
+ });
148
+ }
149
+ var O = c`
150
+ query VisitorNewsRelated($postId: ID!, $limit: Int, $locale: String) {
151
+ visitorNewsRelated(postId: $postId, limit: $limit, locale: $locale) {
152
+ _id
153
+ title
154
+ slug
155
+ excerpt
156
+ publishedAt
157
+ coverImageUrl {
158
+ _id
159
+ url
160
+ }
161
+ externalCoverImageUrl
162
+ }
163
+ }
164
+ `;
165
+ function k(e) {
166
+ return r(O, {
167
+ ...x,
168
+ ...e
169
+ });
170
+ }
171
+ c`
172
+ mutation RecordVisitorNewsView($postId: String!) {
173
+ recordVisitorNewsView(postId: $postId) {
174
+ ok
175
+ }
176
+ }
177
+ `;
178
+ var A = c`
179
+ query VisitorNewsListSlim($args: VisitorNewsListArgs) {
180
+ visitorNewsList(args: $args) {
181
+ items {
182
+ _id
183
+ title
184
+ }
185
+ }
186
+ }
187
+ `;
188
+ function j(e) {
189
+ return r(A, {
190
+ ...x,
191
+ ...e
192
+ });
193
+ }
194
+ //#endregion
19
195
  //#region dummy/news.ts
20
- var x = [
196
+ var M = [
21
197
  {
22
198
  id: "demo-news-1",
23
199
  publishedAt: "2026-04-30T10:00:00.000Z",
@@ -88,8 +264,8 @@ var x = [
88
264
  tagSlugs: ["ai", "analytics"]
89
265
  }
90
266
  ];
91
- function S(e) {
92
- return x.map(({ tagSlugs: t, authorIds: n, categorySlug: r, ...i }) => ({
267
+ function N(e) {
268
+ return M.map(({ tagSlugs: t, authorIds: n, categorySlug: r, ...i }) => ({
93
269
  ...i,
94
270
  title: e.raw(`news.${i.id}.title`),
95
271
  excerpt: e.raw(`news.${i.id}.excerpt`),
@@ -105,7 +281,7 @@ function S(e) {
105
281
  }))
106
282
  }));
107
283
  }
108
- var C = f("megaphone", [
284
+ var P = f("megaphone", [
109
285
  ["path", {
110
286
  d: "M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",
111
287
  key: "q8bfy3"
@@ -121,7 +297,7 @@ var C = f("megaphone", [
121
297
  ]);
122
298
  //#endregion
123
299
  //#region components/ui/icon.tsx
124
- function w({ icon: e, size: t = 20, strokeWidth: n = 2, className: r, ...i }) {
300
+ function F({ icon: e, size: t = 20, strokeWidth: n = 2, className: r, ...i }) {
125
301
  return /* @__PURE__ */ y(e, {
126
302
  width: t,
127
303
  height: t,
@@ -132,7 +308,7 @@ function w({ icon: e, size: t = 20, strokeWidth: n = 2, className: r, ...i }) {
132
308
  }
133
309
  //#endregion
134
310
  //#region components/ui/skeleton.tsx
135
- function T({ className: e, ...t }) {
311
+ function I({ className: e, ...t }) {
136
312
  return /* @__PURE__ */ y("div", {
137
313
  "data-slot": "skeleton",
138
314
  className: u("animate-pulse rounded-wx-sm bg-wx-bg-elevated", e),
@@ -141,7 +317,7 @@ function T({ className: e, ...t }) {
141
317
  }
142
318
  //#endregion
143
319
  //#region components/widget/author-avatars.tsx
144
- function E(e) {
320
+ function L(e) {
145
321
  if (!Array.isArray(e)) return;
146
322
  let t = e.map((e) => {
147
323
  if (!e || typeof e != "object") return null;
@@ -156,7 +332,7 @@ function E(e) {
156
332
  }).filter((e) => !!e);
157
333
  return t.length > 0 ? t : void 0;
158
334
  }
159
- function D({ authors: e, max: t = 3, className: n }) {
335
+ function R({ authors: e, max: t = 3, className: n }) {
160
336
  return !e || e.length === 0 ? null : /* @__PURE__ */ y("span", {
161
337
  className: `flex items-center -space-x-1.5 ${n ?? ""}`,
162
338
  children: e.slice(0, t).map((e) => e.photoUrl ? /* @__PURE__ */ y("img", {
@@ -173,7 +349,7 @@ function D({ authors: e, max: t = 3, className: n }) {
173
349
  }
174
350
  //#endregion
175
351
  //#region components/widget/sticky-search-header.tsx
176
- function O({ value: t, onChange: n, placeholder: r, className: i }) {
352
+ function z({ value: t, onChange: n, placeholder: r, className: i }) {
177
353
  return /* @__PURE__ */ b("div", {
178
354
  className: u("sticky top-0 z-10 flex items-center gap-2.5 border-wx-border border-b bg-wx-bg px-4", i),
179
355
  children: [/* @__PURE__ */ y(e, {
@@ -190,13 +366,13 @@ function O({ value: t, onChange: n, placeholder: r, className: i }) {
190
366
  }
191
367
  //#endregion
192
368
  //#region lib/use-scroll-restore.ts
193
- var k = /* @__PURE__ */ new Map();
194
- function A(e) {
369
+ var B = /* @__PURE__ */ new Map();
370
+ function V(e) {
195
371
  let t = g(null);
196
372
  return m(() => {
197
373
  let n = t.current;
198
374
  if (!n) return;
199
- let r = k.get(e) ?? 0, i = !1, a = performance.now(), o = () => {
375
+ let r = B.get(e) ?? 0, i = !1, a = performance.now(), o = () => {
200
376
  if (i || !t.current) return;
201
377
  let e = t.current;
202
378
  if (e.scrollHeight - e.clientHeight >= r) {
@@ -211,7 +387,7 @@ function A(e) {
211
387
  };
212
388
  requestAnimationFrame(o);
213
389
  let s = () => {
214
- k.set(e, n.scrollTop);
390
+ B.set(e, n.scrollTop);
215
391
  };
216
392
  return n.addEventListener("scroll", s, { passive: !0 }), () => {
217
393
  i = !0, n.removeEventListener("scroll", s);
@@ -219,182 +395,6 @@ function A(e) {
219
395
  }, [e]), t;
220
396
  }
221
397
  //#endregion
222
- //#region lib/graphql/queries/generated/news.generated.tsx
223
- var j = {}, M = c`
224
- query VisitorNewsList($args: VisitorNewsListArgs) {
225
- visitorNewsList(args: $args) {
226
- items {
227
- _id
228
- title
229
- slug
230
- excerpt
231
- publishedAt
232
- upstreamUpdatedAt
233
- reactionCounts
234
- coverImageUrl {
235
- _id
236
- url
237
- }
238
- externalCoverImageUrl
239
- authors {
240
- _id
241
- name
242
- photo {
243
- _id
244
- url
245
- }
246
- }
247
- categories {
248
- _id
249
- slug
250
- label
251
- }
252
- tags {
253
- _id
254
- slug
255
- label
256
- }
257
- }
258
- meta {
259
- totalCount
260
- currentPage
261
- totalPages
262
- hasNextPage
263
- hasPreviousPage
264
- }
265
- }
266
- }
267
- `;
268
- function N(e) {
269
- return r(M, {
270
- ...j,
271
- ...e
272
- });
273
- }
274
- var P = c`
275
- query VisitorNewsPostCard($args: VisitorNewsPostArgs!) {
276
- visitorNewsPost(args: $args) {
277
- _id
278
- title
279
- excerpt
280
- coverImageUrl {
281
- _id
282
- url
283
- }
284
- externalCoverImageUrl
285
- }
286
- }
287
- `;
288
- function F(e) {
289
- return r(P, {
290
- ...j,
291
- ...e
292
- });
293
- }
294
- var I = c`
295
- query VisitorNewsPost($args: VisitorNewsPostArgs!) {
296
- visitorNewsPost(args: $args) {
297
- _id
298
- title
299
- slug
300
- excerpt
301
- contentMarkdown
302
- bodyFormat
303
- locale
304
- publishedAt
305
- upstreamUpdatedAt
306
- viewCount
307
- reactionCounts
308
- viewerReaction
309
- sourceUrl
310
- coverImageUrl {
311
- _id
312
- url
313
- }
314
- externalCoverImageUrl
315
- source {
316
- _id
317
- name
318
- type
319
- }
320
- authors {
321
- _id
322
- name
323
- photo {
324
- _id
325
- url
326
- }
327
- }
328
- categories {
329
- _id
330
- slug
331
- label
332
- }
333
- tags {
334
- _id
335
- slug
336
- label
337
- }
338
- translations {
339
- _id
340
- locale
341
- slug
342
- }
343
- }
344
- }
345
- `;
346
- function L(e) {
347
- return r(I, {
348
- ...j,
349
- ...e
350
- });
351
- }
352
- var R = c`
353
- query VisitorNewsRelated($postId: ID!, $limit: Int, $locale: String) {
354
- visitorNewsRelated(postId: $postId, limit: $limit, locale: $locale) {
355
- _id
356
- title
357
- slug
358
- excerpt
359
- publishedAt
360
- coverImageUrl {
361
- _id
362
- url
363
- }
364
- externalCoverImageUrl
365
- }
366
- }
367
- `;
368
- function z(e) {
369
- return r(R, {
370
- ...j,
371
- ...e
372
- });
373
- }
374
- c`
375
- mutation RecordVisitorNewsView($postId: String!) {
376
- recordVisitorNewsView(postId: $postId) {
377
- ok
378
- }
379
- }
380
- `;
381
- var B = c`
382
- query VisitorNewsListSlim($args: VisitorNewsListArgs) {
383
- visitorNewsList(args: $args) {
384
- items {
385
- _id
386
- title
387
- }
388
- }
389
- }
390
- `;
391
- function V(e) {
392
- return r(B, {
393
- ...j,
394
- ...e
395
- });
396
- }
397
- //#endregion
398
398
  //#region components/widget/tabs/news-tab/helpers.ts
399
399
  function H(e) {
400
400
  if (!e.upstreamUpdatedAt) return !1;
@@ -416,38 +416,38 @@ function U(e) {
416
416
  //#region components/widget/tabs/news-tab/index.tsx
417
417
  var W = 10, G = 240;
418
418
  function K({ isDummy: e, onOpenArticle: t }) {
419
- let r = l("news"), i = l("demo"), a = d(), s = n(), [c, u] = _(""), f = J(c, 300), g = f.length >= 2, x = s.previewData?.newsPosts, E = !e && Array.isArray(x) && x.length > 0, [D, k] = _(W), { data: j, error: M, loading: P, fetchMore: F } = N({
419
+ let r = l("news"), i = l("demo"), a = d(), s = n(), [c, u] = _(""), f = J(c, 300), g = f.length >= 2, x = s.previewData?.newsPosts, S = !e && Array.isArray(x) && x.length > 0, [w, T] = _(W), { data: E, error: D, loading: O, fetchMore: k } = C({
420
420
  variables: { args: {
421
421
  locale: a,
422
422
  limit: W,
423
423
  offset: 0,
424
424
  ...g ? { query: f } : {}
425
425
  } },
426
- skip: e || E,
426
+ skip: e || S,
427
427
  notifyOnNetworkStatusChange: !0
428
428
  });
429
429
  m(() => {
430
- k(W);
431
- }, [f, E]);
432
- let I = h(() => (j?.visitorNewsList.items ?? []).filter((e) => !!e).map(q), [j]), L = E ? (x ?? []).filter((e) => !!e && typeof e == "object").map(q) : [], R = p((e) => e.title.toLowerCase().includes(f.toLowerCase()) || e.excerpt.toLowerCase().includes(f.toLowerCase()), [f]), z = e ? g ? S(i).filter(R) : S(i) : E ? g ? L.filter(R) : L : I, B = E || e ? z.slice(0, D) : z, V = h(() => e || E ? D < z.length : j?.visitorNewsList.meta.hasNextPage ?? !1, [
430
+ T(W);
431
+ }, [f, S]);
432
+ let A = h(() => (E?.visitorNewsList.items ?? []).filter((e) => !!e).map(q), [E]), j = S ? (x ?? []).filter((e) => !!e && typeof e == "object").map(q) : [], M = p((e) => e.title.toLowerCase().includes(f.toLowerCase()) || e.excerpt.toLowerCase().includes(f.toLowerCase()), [f]), L = e ? g ? N(i).filter(M) : N(i) : S ? g ? j.filter(M) : j : A, R = S || e ? L.slice(0, w) : L, B = h(() => e || S ? w < L.length : E?.visitorNewsList.meta.hasNextPage ?? !1, [
433
433
  e,
434
- E,
435
- D,
436
- z.length,
437
- j
434
+ S,
435
+ w,
436
+ L.length,
437
+ E
438
438
  ]), [H, U] = _(!1), K = p(async () => {
439
- if (!(!V || H)) {
440
- if (e || E) {
441
- k((e) => e + W);
439
+ if (!(!B || H)) {
440
+ if (e || S) {
441
+ T((e) => e + W);
442
442
  return;
443
443
  }
444
444
  U(!0);
445
445
  try {
446
- await F({
446
+ await k({
447
447
  variables: { args: {
448
448
  locale: a,
449
449
  limit: W,
450
- offset: j?.visitorNewsList.items.length ?? 0,
450
+ offset: E?.visitorNewsList.items.length ?? 0,
451
451
  ...g ? { query: f } : {}
452
452
  } },
453
453
  updateQuery: (e, { fetchMoreResult: t }) => {
@@ -468,20 +468,20 @@ function K({ isDummy: e, onOpenArticle: t }) {
468
468
  }
469
469
  }
470
470
  }, [
471
- V,
471
+ B,
472
472
  H,
473
473
  e,
474
- E,
474
+ S,
475
475
  g,
476
476
  f,
477
477
  a,
478
- F,
479
- j
480
- ]), X = A("news"), Z = p((e) => {
478
+ k,
479
+ E
480
+ ]), X = V("news"), Z = p((e) => {
481
481
  let t = e.currentTarget;
482
482
  t.scrollHeight - t.clientHeight - t.scrollTop < G && K();
483
- }, [K]), Q = z.length > 0 || g, $ = !e && !E && P && B.length === 0;
484
- return M && B.length === 0 ? /* @__PURE__ */ y("div", {
483
+ }, [K]), Q = L.length > 0 || g, $ = !e && !S && O && R.length === 0;
484
+ return D && R.length === 0 ? /* @__PURE__ */ y("div", {
485
485
  className: "flex flex-1 flex-col items-center justify-center gap-3 px-6 py-12 text-center",
486
486
  children: /* @__PURE__ */ y("p", {
487
487
  className: "text-sm text-wx-fg-muted",
@@ -491,7 +491,7 @@ function K({ isDummy: e, onOpenArticle: t }) {
491
491
  className: "flex-1",
492
492
  viewportRef: X,
493
493
  onScroll: Z,
494
- children: [Q && /* @__PURE__ */ y(O, {
494
+ children: [Q && /* @__PURE__ */ y(z, {
495
495
  value: c,
496
496
  onChange: u,
497
497
  placeholder: r("searchPlaceholder")
@@ -499,21 +499,21 @@ function K({ isDummy: e, onOpenArticle: t }) {
499
499
  className: "flex flex-col gap-3 px-4 pt-4 pb-6",
500
500
  children: $ ? Array.from({ length: 3 }).map((e, t) => /* @__PURE__ */ b("div", {
501
501
  className: "overflow-hidden rounded-wx-lg bg-wx-bg-elevated",
502
- children: [/* @__PURE__ */ y(T, { className: "aspect-[16/10] w-full rounded-none" }), /* @__PURE__ */ b("div", {
502
+ children: [/* @__PURE__ */ y(I, { className: "aspect-[16/10] w-full rounded-none" }), /* @__PURE__ */ b("div", {
503
503
  className: "space-y-2 px-5 py-4",
504
504
  children: [
505
- /* @__PURE__ */ y(T, { className: "h-3 w-3/4" }),
506
- /* @__PURE__ */ y(T, { className: "h-3 w-1/2" }),
507
- /* @__PURE__ */ y(T, { className: "mt-1 h-2 w-1/3" })
505
+ /* @__PURE__ */ y(I, { className: "h-3 w-3/4" }),
506
+ /* @__PURE__ */ y(I, { className: "h-3 w-1/2" }),
507
+ /* @__PURE__ */ y(I, { className: "mt-1 h-2 w-1/3" })
508
508
  ]
509
509
  })]
510
- }, t)) : B.length === 0 ? /* @__PURE__ */ b("div", {
510
+ }, t)) : R.length === 0 ? /* @__PURE__ */ b("div", {
511
511
  className: "flex flex-1 flex-col items-center justify-center gap-3 px-6 py-12 text-center",
512
512
  children: [
513
513
  /* @__PURE__ */ y("div", {
514
514
  className: "flex h-14 w-14 items-center justify-center rounded-full bg-wx-bg-elevated text-wx-fg-muted",
515
- children: /* @__PURE__ */ y(w, {
516
- icon: C,
515
+ children: /* @__PURE__ */ y(F, {
516
+ icon: P,
517
517
  size: 28
518
518
  })
519
519
  }),
@@ -526,14 +526,14 @@ function K({ isDummy: e, onOpenArticle: t }) {
526
526
  children: r("emptyBody")
527
527
  })
528
528
  ]
529
- }) : /* @__PURE__ */ b(v, { children: [B.map((e, n) => /* @__PURE__ */ y(Y, {
529
+ }) : /* @__PURE__ */ b(v, { children: [R.map((e, n) => /* @__PURE__ */ y(Y, {
530
530
  item: e,
531
531
  locale: a,
532
532
  delay: n < W ? n * .04 : 0,
533
533
  onClick: () => t(e.id)
534
534
  }, e.id)), H && /* @__PURE__ */ y("div", {
535
535
  className: "flex justify-center py-3",
536
- children: /* @__PURE__ */ y(T, { className: "h-3 w-24" })
536
+ children: /* @__PURE__ */ y(I, { className: "h-3 w-24" })
537
537
  })] })
538
538
  })]
539
539
  });
@@ -579,7 +579,7 @@ function J(e, t) {
579
579
  }, [e, t]), n;
580
580
  }
581
581
  function Y({ item: e, locale: n, delay: r, onClick: o }) {
582
- let s = l("news"), c = e.categories ?? (e.category ? [e.category] : []), d = E(e.authors);
582
+ let s = l("news"), c = e.categories ?? (e.category ? [e.category] : []), d = L(e.authors);
583
583
  return /* @__PURE__ */ b(t.button, {
584
584
  type: "button",
585
585
  onClick: o,
@@ -613,7 +613,7 @@ function Y({ item: e, locale: n, delay: r, onClick: o }) {
613
613
  className: "text-[10px] font-semibold uppercase tracking-wide text-wx-primary",
614
614
  children: e.label
615
615
  }, e.slug))
616
- }), /* @__PURE__ */ y(D, {
616
+ }), /* @__PURE__ */ y(R, {
617
617
  authors: d,
618
618
  className: "shrink-0"
619
619
  })]
@@ -650,6 +650,6 @@ function Y({ item: e, locale: n, delay: r, onClick: o }) {
650
650
  });
651
651
  }
652
652
  //#endregion
653
- export { F as a, A as c, E as d, T as f, S as h, V as i, O as l, C as m, U as n, L as o, w as p, H as r, z as s, K as t, D as u };
653
+ export { z as a, I as c, N as d, j as f, k as h, V as i, F as l, D as m, U as n, R as o, T as p, H as r, L as s, K as t, P as u };
654
654
 
655
- //# sourceMappingURL=widget-react-BSrCOwHs.js.map
655
+ //# sourceMappingURL=widget-react-CQ0MdjMO.js.map
@@ -127,7 +127,14 @@ var t = /* @__PURE__ */ e({
127
127
  passkeyRegister: "Вперше? Створіть passkey",
128
128
  passkeyError: "Не вдалося увійти. Спробуйте ще раз.",
129
129
  passkeyNoCredential: "На цьому пристрої ще немає passkey — натисніть «Створіть passkey», щоб додати.",
130
- googleSignInDemo: "Продовжити з Google"
130
+ googleSignInDemo: "Продовжити з Google",
131
+ connectingOperator: "Оператора призначено, зачекайте…",
132
+ withOperator: "Тепер з вами {name}",
133
+ operatorConnected: "Оператор приєднався",
134
+ chatResolved: "Розмову завершено",
135
+ chatResolvedByYou: "Розмову завершено вами",
136
+ chatResolvedByOperator: "Розмову завершено — {name}",
137
+ resolveConversation: "Завершити розмову"
131
138
  }, s = {
132
139
  title: "Перш ніж почати",
133
140
  subtitle: "Кілька деталей, щоб наша команда могла швидше допомогти.",
@@ -159,6 +166,7 @@ var t = /* @__PURE__ */ e({
159
166
  articlesCount: "{count, plural, =0 {Без статей} one {Статей: #} few {Статей: #} many {Статей: #} other {Статей: #}}",
160
167
  authorsByline: "Автори {first}{remaining, plural, =0 {} one { та ще #} few { та ще #} many { та ще #} other { та ще #}}"
161
168
  }, l = {
169
+ unread: "Непрочитані новини",
162
170
  emptyTitle: "Поки що нічого нового",
163
171
  emptyBody: "Заходьте сюди за продуктовими новинами й оголошеннями.",
164
172
  helpful: "Чи була ця стаття корисною?",
@@ -343,4 +351,4 @@ var t = /* @__PURE__ */ e({
343
351
  //#endregion
344
352
  export { t as n, y as t };
345
353
 
346
- //# sourceMappingURL=widget-react-BE-hnNxO2.js.map
354
+ //# sourceMappingURL=widget-react-CRMJO52c2.js.map
@@ -127,7 +127,14 @@ var t = /* @__PURE__ */ e({
127
127
  passkeyRegister: "第一次嗎? 設定通行金鑰",
128
128
  passkeyError: "無法登入。請再試一次。",
129
129
  passkeyNoCredential: "此裝置上尚無通行金鑰 — 點擊「設定通行金鑰」來建立一個。",
130
- googleSignInDemo: "使用 Google 繼續"
130
+ googleSignInDemo: "使用 Google 繼續",
131
+ connectingOperator: "已指派客服,請稍候…",
132
+ withOperator: "您現在正在與 {name} 聊天",
133
+ operatorConnected: "客服已連線",
134
+ chatResolved: "對話已解決",
135
+ chatResolvedByYou: "您已解決此對話",
136
+ chatResolvedByOperator: "{name} 已解決此對話",
137
+ resolveConversation: "解決對話"
131
138
  }, s = {
132
139
  title: "開始之前",
133
140
  subtitle: "請提供一些資訊,讓我們的團隊能更快協助您。",
@@ -172,7 +179,8 @@ var t = /* @__PURE__ */ e({
172
179
  articleNotTranslated: "本貼文尚未提供您所用語言的版本。",
173
180
  readOriginal: "閱讀原文",
174
181
  relatedTitle: "相關",
175
- writtenBy: "作者:{names}"
182
+ writtenBy: "作者:{names}",
183
+ unread: "未讀消息"
176
184
  }, u = {
177
185
  ariaLabel: "回應",
178
186
  tapAria: "用 {emoji} 回應"
@@ -343,4 +351,4 @@ var t = /* @__PURE__ */ e({
343
351
  //#endregion
344
352
  export { t as n, y as t };
345
353
 
346
- //# sourceMappingURL=widget-react-BD4KAXKy2.js.map
354
+ //# sourceMappingURL=widget-react-CRU0Mk7M2.js.map