@wexio/messenger-widget-react 1.4.0 → 1.5.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 (80) hide show
  1. package/CHANGELOG.md +127 -0
  2. package/README.md +2 -1
  3. package/dist/widget-react-3V_rXy9h2.js +2 -0
  4. package/dist/widget-react-3f61yzjR2.js +2 -0
  5. package/dist/widget-react-B-ZYj6cV2.js +2 -0
  6. package/dist/widget-react-B4Cru-SF.js +2 -0
  7. package/dist/widget-react-B5AYwhao.js +2 -0
  8. package/dist/widget-react-B6YWdHd3.js +2 -0
  9. package/dist/widget-react-BOjoaxsM2.js +2 -0
  10. package/dist/widget-react-BPFWT7Xe2.js +4 -0
  11. package/dist/widget-react-BSvxi-Z42.js +2 -0
  12. package/dist/widget-react-BbznnvpE2.js +2 -0
  13. package/dist/widget-react-Bebf7ovl.js +140 -0
  14. package/dist/widget-react-BrRmLgRl.js +163 -0
  15. package/dist/widget-react-BwK-nNjy2.js +2 -0
  16. package/dist/widget-react-BxEMz2N0.js +2 -0
  17. package/dist/widget-react-BzFUXA092.js +2 -0
  18. package/dist/widget-react-C-hnCqBf.js +2 -0
  19. package/dist/widget-react-C40Ha_9C.js +2 -0
  20. package/dist/widget-react-C7KHTFEo.js +2 -0
  21. package/dist/widget-react-CAfHMzrc2.js +2 -0
  22. package/dist/widget-react-CLJmIz_q.js +2 -0
  23. package/dist/widget-react-CLLhrdTm.js +2 -0
  24. package/dist/widget-react-CO7DyU51.js +201 -0
  25. package/dist/widget-react-CZoYXyup.js +2 -0
  26. package/dist/widget-react-C_NCNYY02.js +7 -0
  27. package/dist/widget-react-CnP2-ZB-.js +285 -0
  28. package/dist/widget-react-CuUeo68W.js +2 -0
  29. package/dist/widget-react-D2sqPDts.js +2 -0
  30. package/dist/widget-react-D5n4whHu2.js +2 -0
  31. package/dist/widget-react-D8W_ZdMH.js +2 -0
  32. package/dist/widget-react-DA0S6cIc.js +2 -0
  33. package/dist/widget-react-DE0LS-6-.js +2 -0
  34. package/dist/widget-react-DGh__emN.js +2 -0
  35. package/dist/widget-react-DIFOZ3QT.js +2 -0
  36. package/dist/widget-react-DJczk-Ax.js +2 -0
  37. package/dist/widget-react-DQJxxVB92.js +2 -0
  38. package/dist/widget-react-DS_ZoY1F.js +2 -0
  39. package/dist/widget-react-DUnaBOfT.js +10 -0
  40. package/dist/widget-react-DhLRmjli.js +2 -0
  41. package/dist/widget-react-Dl2PevZk.js +2 -0
  42. package/dist/widget-react-DmRVdLdI.js +2 -0
  43. package/dist/widget-react-DouawI6y.js +2 -0
  44. package/dist/widget-react-DozV7eMU2.js +2 -0
  45. package/dist/widget-react-Dpkdglv0.js +2 -0
  46. package/dist/widget-react-Dry9kqXE2.js +2 -0
  47. package/dist/widget-react-FX5W7RyV.js +4 -0
  48. package/dist/widget-react-G9X1DcTe.js +2 -0
  49. package/dist/widget-react-KAEA8ONo.js +2 -0
  50. package/dist/widget-react-Ov6re_Q9.js +2 -0
  51. package/dist/widget-react-XV6SIcqN2.js +2 -0
  52. package/dist/widget-react-XZ_nYDTj.js +2 -0
  53. package/dist/widget-react-oNTR-eNh.js +2 -0
  54. package/dist/widget-react-txPtcpni.js +2 -0
  55. package/dist/widget-react-zZBDvBBt2.js +2 -0
  56. package/dist/widget-react.js +50 -36283
  57. package/dist/widget-react.licenses.txt +3604 -0
  58. package/package.json +1 -1
  59. package/dist/widget-react--IUy5lNt.js +0 -510
  60. package/dist/widget-react-B7es3n1-.js +0 -32
  61. package/dist/widget-react-BAUpSGhZ.js +0 -1345
  62. package/dist/widget-react-BS9kUSRS.js +0 -255
  63. package/dist/widget-react-BT30ojz0.js +0 -371
  64. package/dist/widget-react-BXf2Ty8d.js +0 -364
  65. package/dist/widget-react-BgALABDe.js +0 -39
  66. package/dist/widget-react-BgunakAG.js +0 -566
  67. package/dist/widget-react-BkXA6ytR.js +0 -23856
  68. package/dist/widget-react-Bvtklo8g.js +0 -356
  69. package/dist/widget-react-BxEjM2it.js +0 -118
  70. package/dist/widget-react-CN_FIvMD.js +0 -834
  71. package/dist/widget-react-CTdz_dwX.js +0 -306
  72. package/dist/widget-react-Ck8JAYqT.js +0 -22122
  73. package/dist/widget-react-CyAVDflZ.js +0 -273
  74. package/dist/widget-react-DSAyUf2U.js +0 -229
  75. package/dist/widget-react-DbOJZl9F.js +0 -4932
  76. package/dist/widget-react-DgIxSjv7.js +0 -25
  77. package/dist/widget-react-Ds5J9FbQ.js +0 -27
  78. package/dist/widget-react-SI7deQTE.js +0 -35
  79. package/dist/widget-react-krPPnv02.js +0 -4438
  80. package/dist/widget-react-wSc9gIfG.js +0 -198
@@ -1,834 +0,0 @@
1
- globalThis.process === void 0 && (globalThis.process = {
2
- env: {},
3
- nextTick: function(e) {
4
- setTimeout(e, 0);
5
- },
6
- emit: function() {
7
- return !1;
8
- }
9
- });
10
- import "react";
11
- import "react-dom";
12
- import "react/jsx-runtime";
13
- import "react-dom/client";
14
- import { a as e, l as t, o as n, s as r, t as i, u as a } from "./widget-react-DbOJZl9F.js";
15
- import { forwardRef as o, useCallback as s, useImperativeHandle as c, useRef as l } from "react";
16
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
17
- //#region node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs
18
- function f(e) {
19
- e.values.forEach((e) => e.stop());
20
- }
21
- function p(e, t) {
22
- [...t].reverse().forEach((r) => {
23
- let i = e.getVariant(r);
24
- i && n(e, i), e.variantChildren && e.variantChildren.forEach((e) => {
25
- p(e, t);
26
- });
27
- });
28
- }
29
- function m(e, t) {
30
- if (Array.isArray(t)) return p(e, t);
31
- if (typeof t == "string") return p(e, [t]);
32
- n(e, t);
33
- }
34
- function h() {
35
- let t = !1, n = /* @__PURE__ */ new Set(), i = {
36
- subscribe(e) {
37
- return n.add(e), () => void n.delete(e);
38
- },
39
- start(i, a) {
40
- r(t, "controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");
41
- let o = [];
42
- return n.forEach((t) => {
43
- o.push(e(t, i, { transitionOverride: a }));
44
- }), Promise.all(o);
45
- },
46
- set(e) {
47
- return r(t, "controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."), n.forEach((t) => {
48
- m(t, e);
49
- });
50
- },
51
- stop() {
52
- n.forEach((e) => {
53
- f(e);
54
- });
55
- },
56
- mount() {
57
- return t = !0, () => {
58
- t = !1, i.stop();
59
- };
60
- }
61
- };
62
- return i;
63
- }
64
- //#endregion
65
- //#region node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs
66
- function g() {
67
- let e = a(h);
68
- return t(e.mount, []), e;
69
- }
70
- var _ = g;
71
- //#endregion
72
- //#region components/widget/icons/animated.tsx
73
- function v(...e) {
74
- return e.filter(Boolean).join(" ");
75
- }
76
- var y = {
77
- normal: {
78
- d: "m12 19-7-7 7-7",
79
- translateX: 0
80
- },
81
- animate: {
82
- d: "m12 19-7-7 7-7",
83
- translateX: [
84
- 0,
85
- 3,
86
- 0
87
- ],
88
- transition: { duration: .4 }
89
- }
90
- }, b = {
91
- normal: { d: "M19 12H5" },
92
- animate: {
93
- d: [
94
- "M19 12H5",
95
- "M19 12H10",
96
- "M19 12H5"
97
- ],
98
- transition: { duration: .4 }
99
- }
100
- }, x = o(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...a }, o) => {
101
- let f = _(), p = l(!1);
102
- c(o, () => (p.current = !0, {
103
- startAnimation: () => f.start("animate"),
104
- stopAnimation: () => f.start("normal")
105
- }));
106
- let m = s((t) => {
107
- p.current ? e?.(t) : f.start("animate");
108
- }, [f, e]), h = s((e) => {
109
- p.current ? t?.(e) : f.start("normal");
110
- }, [f, t]);
111
- return /* @__PURE__ */ u("div", {
112
- className: v(n),
113
- onMouseEnter: m,
114
- onMouseLeave: h,
115
- ...a,
116
- children: /* @__PURE__ */ d("svg", {
117
- fill: "none",
118
- height: r,
119
- stroke: "currentColor",
120
- strokeLinecap: "round",
121
- strokeLinejoin: "round",
122
- strokeWidth: "2",
123
- viewBox: "0 0 24 24",
124
- width: r,
125
- xmlns: "http://www.w3.org/2000/svg",
126
- children: [/* @__PURE__ */ u(i.path, {
127
- animate: f,
128
- d: "m12 19-7-7 7-7",
129
- variants: y
130
- }), /* @__PURE__ */ u(i.path, {
131
- animate: f,
132
- d: "M19 12H5",
133
- variants: b
134
- })]
135
- })
136
- });
137
- });
138
- x.displayName = "ArrowLeftIcon";
139
- var S = {
140
- normal: { d: "M5 12h14" },
141
- animate: {
142
- d: [
143
- "M5 12h14",
144
- "M5 12h9",
145
- "M5 12h14"
146
- ],
147
- transition: { duration: .4 }
148
- }
149
- }, C = {
150
- normal: {
151
- d: "m12 5 7 7-7 7",
152
- translateX: 0
153
- },
154
- animate: {
155
- d: "m12 5 7 7-7 7",
156
- translateX: [
157
- 0,
158
- -3,
159
- 0
160
- ],
161
- transition: { duration: .4 }
162
- }
163
- }, w = o(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...a }, o) => {
164
- let f = _(), p = l(!1);
165
- c(o, () => (p.current = !0, {
166
- startAnimation: () => f.start("animate"),
167
- stopAnimation: () => f.start("normal")
168
- }));
169
- let m = s((t) => {
170
- p.current ? e?.(t) : f.start("animate");
171
- }, [f, e]), h = s((e) => {
172
- p.current ? t?.(e) : f.start("normal");
173
- }, [f, t]);
174
- return /* @__PURE__ */ u("div", {
175
- className: v(n),
176
- onMouseEnter: m,
177
- onMouseLeave: h,
178
- ...a,
179
- children: /* @__PURE__ */ d("svg", {
180
- fill: "none",
181
- height: r,
182
- stroke: "currentColor",
183
- strokeLinecap: "round",
184
- strokeLinejoin: "round",
185
- strokeWidth: "2",
186
- viewBox: "0 0 24 24",
187
- width: r,
188
- xmlns: "http://www.w3.org/2000/svg",
189
- children: [/* @__PURE__ */ u(i.path, {
190
- animate: f,
191
- d: "M5 12h14",
192
- variants: S
193
- }), /* @__PURE__ */ u(i.path, {
194
- animate: f,
195
- d: "m12 5 7 7-7 7",
196
- variants: C
197
- })]
198
- })
199
- });
200
- });
201
- w.displayName = "ArrowRightIcon";
202
- var T = {
203
- times: [
204
- 0,
205
- .4,
206
- 1
207
- ],
208
- duration: .5
209
- }, E = o(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...a }, o) => {
210
- let d = _(), f = l(!1);
211
- c(o, () => (f.current = !0, {
212
- startAnimation: () => d.start("animate"),
213
- stopAnimation: () => d.start("normal")
214
- }));
215
- let p = s((t) => {
216
- f.current ? e?.(t) : d.start("animate");
217
- }, [d, e]), m = s((e) => {
218
- f.current ? t?.(e) : d.start("normal");
219
- }, [d, t]);
220
- return /* @__PURE__ */ u("div", {
221
- className: v(n),
222
- onMouseEnter: p,
223
- onMouseLeave: m,
224
- ...a,
225
- children: /* @__PURE__ */ u("svg", {
226
- fill: "none",
227
- height: r,
228
- stroke: "currentColor",
229
- strokeLinecap: "round",
230
- strokeLinejoin: "round",
231
- strokeWidth: "2",
232
- viewBox: "0 0 24 24",
233
- width: r,
234
- xmlns: "http://www.w3.org/2000/svg",
235
- children: /* @__PURE__ */ u(i.path, {
236
- animate: d,
237
- d: "m6 9 6 6 6-6",
238
- transition: T,
239
- variants: {
240
- normal: { y: 0 },
241
- animate: { y: [
242
- 0,
243
- 2,
244
- 0
245
- ] }
246
- }
247
- })
248
- })
249
- });
250
- });
251
- E.displayName = "ChevronDownIcon";
252
- var D = {
253
- times: [
254
- 0,
255
- .4,
256
- 1
257
- ],
258
- duration: .5
259
- }, O = o(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...a }, o) => {
260
- let d = _(), f = l(!1);
261
- c(o, () => (f.current = !0, {
262
- startAnimation: () => d.start("animate"),
263
- stopAnimation: () => d.start("normal")
264
- }));
265
- let p = s((t) => {
266
- f.current ? e?.(t) : d.start("animate");
267
- }, [d, e]), m = s((e) => {
268
- f.current ? t?.(e) : d.start("normal");
269
- }, [d, t]);
270
- return /* @__PURE__ */ u("div", {
271
- className: v(n),
272
- onMouseEnter: p,
273
- onMouseLeave: m,
274
- ...a,
275
- children: /* @__PURE__ */ u("svg", {
276
- fill: "none",
277
- height: r,
278
- stroke: "currentColor",
279
- strokeLinecap: "round",
280
- strokeLinejoin: "round",
281
- strokeWidth: "2",
282
- viewBox: "0 0 24 24",
283
- width: r,
284
- xmlns: "http://www.w3.org/2000/svg",
285
- children: /* @__PURE__ */ u(i.path, {
286
- animate: d,
287
- d: "m9 18 6-6-6-6",
288
- transition: D,
289
- variants: {
290
- normal: { x: 0 },
291
- animate: { x: [
292
- 0,
293
- 2,
294
- 0
295
- ] }
296
- }
297
- })
298
- })
299
- });
300
- });
301
- O.displayName = "ChevronRightIcon";
302
- var k = {
303
- duration: .6,
304
- opacity: { duration: .2 }
305
- }, A = {
306
- normal: {
307
- pathLength: 1,
308
- opacity: 1
309
- },
310
- animate: {
311
- opacity: [0, 1],
312
- pathLength: [0, 1]
313
- }
314
- }, j = o(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...a }, o) => {
315
- let f = _(), p = l(!1);
316
- c(o, () => (p.current = !0, {
317
- startAnimation: () => f.start("animate"),
318
- stopAnimation: () => f.start("normal")
319
- }));
320
- let m = s((t) => {
321
- p.current ? e?.(t) : f.start("animate");
322
- }, [f, e]), h = s((e) => {
323
- p.current ? t?.(e) : f.start("normal");
324
- }, [f, t]);
325
- return /* @__PURE__ */ u("div", {
326
- className: v(n),
327
- onMouseEnter: m,
328
- onMouseLeave: h,
329
- ...a,
330
- children: /* @__PURE__ */ d("svg", {
331
- fill: "none",
332
- height: r,
333
- stroke: "currentColor",
334
- strokeLinecap: "round",
335
- strokeLinejoin: "round",
336
- strokeWidth: "2",
337
- viewBox: "0 0 24 24",
338
- width: r,
339
- xmlns: "http://www.w3.org/2000/svg",
340
- children: [/* @__PURE__ */ u("path", { d: "M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }), /* @__PURE__ */ u(i.path, {
341
- animate: f,
342
- d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",
343
- transition: k,
344
- variants: A
345
- })]
346
- })
347
- });
348
- });
349
- j.displayName = "HomeIcon";
350
- var M = {
351
- normal: {
352
- scale: 1,
353
- rotate: 0
354
- },
355
- animate: {
356
- scale: 1.05,
357
- rotate: [
358
- 0,
359
- -7,
360
- 7,
361
- 0
362
- ],
363
- transition: {
364
- rotate: {
365
- duration: .5,
366
- ease: "easeInOut"
367
- },
368
- scale: {
369
- type: "spring",
370
- stiffness: 400,
371
- damping: 10
372
- }
373
- }
374
- }
375
- }, N = o(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...a }, o) => {
376
- let d = _(), f = l(!1);
377
- c(o, () => (f.current = !0, {
378
- startAnimation: () => d.start("animate"),
379
- stopAnimation: () => d.start("normal")
380
- }));
381
- let p = s((t) => {
382
- f.current ? e?.(t) : d.start("animate");
383
- }, [d, e]), m = s((e) => {
384
- f.current ? t?.(e) : d.start("normal");
385
- }, [d, t]);
386
- return /* @__PURE__ */ u("div", {
387
- className: v(n),
388
- onMouseEnter: p,
389
- onMouseLeave: m,
390
- ...a,
391
- children: /* @__PURE__ */ u(i.svg, {
392
- animate: d,
393
- fill: "none",
394
- height: r,
395
- stroke: "currentColor",
396
- strokeLinecap: "round",
397
- strokeLinejoin: "round",
398
- strokeWidth: "2",
399
- variants: M,
400
- viewBox: "0 0 24 24",
401
- width: r,
402
- xmlns: "http://www.w3.org/2000/svg",
403
- children: /* @__PURE__ */ u("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })
404
- })
405
- });
406
- });
407
- N.displayName = "MessageSquareIcon";
408
- var P = {
409
- normal: { y: 0 },
410
- animate: {
411
- y: [
412
- 0,
413
- -3,
414
- 0,
415
- -2,
416
- 0
417
- ],
418
- transition: {
419
- duration: .6,
420
- ease: "easeInOut"
421
- }
422
- }
423
- }, F = o(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...a }, o) => {
424
- let f = _(), p = l(!1);
425
- c(o, () => (p.current = !0, {
426
- startAnimation: () => f.start("animate"),
427
- stopAnimation: () => f.start("normal")
428
- }));
429
- let m = s((t) => {
430
- p.current ? e?.(t) : f.start("animate");
431
- }, [f, e]), h = s((e) => {
432
- p.current ? t?.(e) : f.start("normal");
433
- }, [f, t]);
434
- return /* @__PURE__ */ u("div", {
435
- className: v(n),
436
- onMouseEnter: m,
437
- onMouseLeave: h,
438
- ...a,
439
- children: /* @__PURE__ */ d("svg", {
440
- fill: "none",
441
- height: r,
442
- overflow: "visible",
443
- stroke: "currentColor",
444
- strokeLinecap: "round",
445
- strokeLinejoin: "round",
446
- strokeWidth: "2",
447
- viewBox: "0 0 24 24",
448
- width: r,
449
- xmlns: "http://www.w3.org/2000/svg",
450
- children: [
451
- /* @__PURE__ */ u("path", { d: "M12 19v3" }),
452
- /* @__PURE__ */ u("path", { d: "M19 10v2a7 7 0 0 1-14 0v-2" }),
453
- /* @__PURE__ */ u(i.rect, {
454
- animate: f,
455
- height: "13",
456
- rx: "3",
457
- variants: P,
458
- width: "6",
459
- x: "9",
460
- y: "2"
461
- })
462
- ]
463
- })
464
- });
465
- });
466
- F.displayName = "MicIcon";
467
- var I = { normal: { y: 0 } }, L = { transition: {
468
- times: [
469
- 0,
470
- .2,
471
- .5,
472
- 1
473
- ],
474
- duration: .5,
475
- stiffness: 260,
476
- damping: 20
477
- } }, R = {
478
- ...I,
479
- animate: {
480
- y: [
481
- 0,
482
- 2,
483
- 0,
484
- 0
485
- ],
486
- ...L
487
- }
488
- }, z = {
489
- ...I,
490
- animate: {
491
- y: [
492
- 0,
493
- 0,
494
- 2,
495
- 0
496
- ],
497
- ...L
498
- }
499
- }, B = o(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...a }, o) => {
500
- let f = _(), p = l(!1);
501
- c(o, () => (p.current = !0, {
502
- startAnimation: () => f.start("animate"),
503
- stopAnimation: () => f.start("normal")
504
- }));
505
- let m = s((t) => {
506
- p.current ? e?.(t) : f.start("animate");
507
- }, [f, e]), h = s((e) => {
508
- p.current ? t?.(e) : f.start("normal");
509
- }, [f, t]);
510
- return /* @__PURE__ */ u("div", {
511
- className: v(n),
512
- onMouseEnter: m,
513
- onMouseLeave: h,
514
- ...a,
515
- children: /* @__PURE__ */ d("svg", {
516
- fill: "none",
517
- height: r,
518
- stroke: "currentColor",
519
- strokeLinecap: "round",
520
- strokeLinejoin: "round",
521
- strokeWidth: "2",
522
- viewBox: "0 0 24 24",
523
- width: r,
524
- xmlns: "http://www.w3.org/2000/svg",
525
- children: [/* @__PURE__ */ u(i.rect, {
526
- animate: f,
527
- height: "16",
528
- rx: "1",
529
- variants: R,
530
- width: "4",
531
- x: "6",
532
- y: "4"
533
- }), /* @__PURE__ */ u(i.rect, {
534
- animate: f,
535
- height: "16",
536
- rx: "1",
537
- variants: z,
538
- width: "4",
539
- x: "14",
540
- y: "4"
541
- })]
542
- })
543
- });
544
- });
545
- B.displayName = "PauseIcon";
546
- var V = {
547
- normal: {
548
- x: 0,
549
- rotate: 0
550
- },
551
- animate: {
552
- x: [
553
- 0,
554
- -1,
555
- 2,
556
- 0
557
- ],
558
- rotate: [
559
- 0,
560
- -10,
561
- 0,
562
- 0
563
- ],
564
- transition: {
565
- duration: .5,
566
- times: [
567
- 0,
568
- .2,
569
- .5,
570
- 1
571
- ],
572
- stiffness: 260,
573
- damping: 20
574
- }
575
- }
576
- }, H = o(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...a }, o) => {
577
- let d = _(), f = l(!1);
578
- c(o, () => (f.current = !0, {
579
- startAnimation: () => d.start("animate"),
580
- stopAnimation: () => d.start("normal")
581
- }));
582
- let p = s((t) => {
583
- f.current ? e?.(t) : d.start("animate");
584
- }, [d, e]), m = s((e) => {
585
- f.current ? t?.(e) : d.start("normal");
586
- }, [d, t]);
587
- return /* @__PURE__ */ u("div", {
588
- className: v(n),
589
- onMouseEnter: p,
590
- onMouseLeave: m,
591
- ...a,
592
- children: /* @__PURE__ */ u(i.svg, {
593
- fill: "none",
594
- height: r,
595
- stroke: "currentColor",
596
- strokeLinecap: "round",
597
- strokeLinejoin: "round",
598
- strokeWidth: "2",
599
- viewBox: "0 0 24 24",
600
- width: r,
601
- xmlns: "http://www.w3.org/2000/svg",
602
- children: /* @__PURE__ */ u(i.polygon, {
603
- animate: d,
604
- points: "6 3 20 12 6 21 6 3",
605
- variants: V
606
- })
607
- })
608
- });
609
- });
610
- H.displayName = "PlayIcon";
611
- var U = o(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...a }, o) => {
612
- let f = _(), p = l(!1);
613
- c(o, () => (p.current = !0, {
614
- startAnimation: () => f.start("animate"),
615
- stopAnimation: () => f.start("normal")
616
- }));
617
- let m = s((t) => {
618
- p.current ? e?.(t) : f.start("animate");
619
- }, [f, e]), h = s((e) => {
620
- p.current ? t?.(e) : f.start("normal");
621
- }, [f, t]);
622
- return /* @__PURE__ */ u("div", {
623
- className: v(n),
624
- onMouseEnter: m,
625
- onMouseLeave: h,
626
- ...a,
627
- children: /* @__PURE__ */ d(i.svg, {
628
- animate: f,
629
- fill: "none",
630
- height: r,
631
- stroke: "currentColor",
632
- strokeLinecap: "round",
633
- strokeLinejoin: "round",
634
- strokeWidth: "2",
635
- transition: {
636
- duration: 1,
637
- bounce: .3
638
- },
639
- variants: {
640
- normal: {
641
- x: 0,
642
- y: 0
643
- },
644
- animate: {
645
- x: [
646
- 0,
647
- 0,
648
- -3,
649
- 0
650
- ],
651
- y: [
652
- 0,
653
- -4,
654
- 0,
655
- 0
656
- ]
657
- }
658
- },
659
- viewBox: "0 0 24 24",
660
- width: r,
661
- xmlns: "http://www.w3.org/2000/svg",
662
- children: [/* @__PURE__ */ u("circle", {
663
- cx: "11",
664
- cy: "11",
665
- r: "8"
666
- }), /* @__PURE__ */ u("path", { d: "m21 21-4.3-4.3" })]
667
- })
668
- });
669
- });
670
- U.displayName = "SearchIcon";
671
- var W = {
672
- initial: {
673
- y: 0,
674
- fill: "none"
675
- },
676
- hover: {
677
- y: [
678
- 0,
679
- -1,
680
- 0,
681
- 0
682
- ],
683
- fill: "currentColor",
684
- transition: {
685
- duration: 1,
686
- bounce: .3
687
- }
688
- }
689
- }, G = {
690
- initial: {
691
- opacity: 1,
692
- x: 0,
693
- y: 0
694
- },
695
- blink: () => ({
696
- opacity: [
697
- 0,
698
- 1,
699
- 0,
700
- 0,
701
- 0,
702
- 0,
703
- 1
704
- ],
705
- transition: {
706
- duration: 2,
707
- type: "spring",
708
- stiffness: 70,
709
- damping: 10,
710
- mass: .4
711
- }
712
- })
713
- }, K = o(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...a }, o) => {
714
- let f = _(), p = _(), m = l(!1);
715
- c(o, () => (m.current = !0, {
716
- startAnimation: () => {
717
- p.start("hover"), f.start("blink", { delay: 1 });
718
- },
719
- stopAnimation: () => {
720
- p.start("initial"), f.start("initial");
721
- }
722
- }));
723
- let h = s((t) => {
724
- m.current ? e?.(t) : (p.start("hover"), f.start("blink", { delay: 1 }));
725
- }, [
726
- e,
727
- p,
728
- f
729
- ]), g = s((e) => {
730
- m.current ? t?.(e) : (p.start("initial"), f.start("initial"));
731
- }, [
732
- p,
733
- f,
734
- t
735
- ]);
736
- return /* @__PURE__ */ u("div", {
737
- className: v(n),
738
- onMouseEnter: h,
739
- onMouseLeave: g,
740
- ...a,
741
- children: /* @__PURE__ */ d("svg", {
742
- fill: "none",
743
- height: r,
744
- stroke: "currentColor",
745
- strokeLinecap: "round",
746
- strokeLinejoin: "round",
747
- strokeWidth: "2",
748
- viewBox: "0 0 24 24",
749
- width: r,
750
- xmlns: "http://www.w3.org/2000/svg",
751
- children: [
752
- /* @__PURE__ */ u(i.path, {
753
- animate: p,
754
- d: "M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",
755
- variants: W
756
- }),
757
- /* @__PURE__ */ u(i.path, {
758
- animate: f,
759
- d: "M20 3v4",
760
- variants: G
761
- }),
762
- /* @__PURE__ */ u(i.path, {
763
- animate: f,
764
- d: "M22 5h-4",
765
- variants: G
766
- }),
767
- /* @__PURE__ */ u(i.path, {
768
- animate: f,
769
- d: "M4 17v2",
770
- variants: G
771
- }),
772
- /* @__PURE__ */ u(i.path, {
773
- animate: f,
774
- d: "M5 18H3",
775
- variants: G
776
- })
777
- ]
778
- })
779
- });
780
- });
781
- K.displayName = "SparklesIcon";
782
- var q = {
783
- normal: {
784
- opacity: 1,
785
- pathLength: 1
786
- },
787
- animate: {
788
- opacity: [0, 1],
789
- pathLength: [0, 1]
790
- }
791
- }, J = o(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...a }, o) => {
792
- let f = _(), p = l(!1);
793
- c(o, () => (p.current = !0, {
794
- startAnimation: () => f.start("animate"),
795
- stopAnimation: () => f.start("normal")
796
- }));
797
- let m = s((t) => {
798
- p.current ? e?.(t) : f.start("animate");
799
- }, [f, e]), h = s((e) => {
800
- p.current ? t?.(e) : f.start("normal");
801
- }, [f, t]);
802
- return /* @__PURE__ */ u("div", {
803
- className: v(n),
804
- onMouseEnter: m,
805
- onMouseLeave: h,
806
- ...a,
807
- children: /* @__PURE__ */ d("svg", {
808
- fill: "none",
809
- height: r,
810
- stroke: "currentColor",
811
- strokeLinecap: "round",
812
- strokeLinejoin: "round",
813
- strokeWidth: "2",
814
- viewBox: "0 0 24 24",
815
- width: r,
816
- xmlns: "http://www.w3.org/2000/svg",
817
- children: [/* @__PURE__ */ u(i.path, {
818
- animate: f,
819
- d: "M18 6 6 18",
820
- variants: q
821
- }), /* @__PURE__ */ u(i.path, {
822
- animate: f,
823
- d: "m6 6 12 12",
824
- transition: { delay: .2 },
825
- variants: q
826
- })]
827
- })
828
- });
829
- });
830
- J.displayName = "XIcon";
831
- //#endregion
832
- export { F as a, U as c, N as i, J as l, E as n, B as o, j as r, H as s, x as t, _ as u };
833
-
834
- //# sourceMappingURL=widget-react-CN_FIvMD.js.map