@telelogx/analytick-widget 1.0.0 → 1.0.2

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.
@@ -87,19 +87,19 @@ function $() {
87
87
  }
88
88
  function I(n2, l2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
89
89
  var a2, h2, y2, w2, d2, g2, _2, m2 = t2 && t2.__k || v$1, b = l2.length;
90
- for (f2 = P$1(u2, l2, m2, f2, b), a2 = 0; a2 < b; a2++) null != (y2 = u2.__k[a2]) && (h2 = -1 == y2.__i ? p$1 : m2[y2.__i] || p$1, y2.__i = a2, g2 = O(n2, y2, h2, i2, r2, o2, e2, f2, c2, s2), w2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && B$2(h2.ref, null, y2), s2.push(y2.ref, y2.__c || w2, y2)), null == d2 && null != w2 && (d2 = w2), (_2 = !!(4 & y2.__u)) || h2.__k === y2.__k ? f2 = A$1(y2, f2, n2, _2) : "function" == typeof y2.type && void 0 !== g2 ? f2 = g2 : w2 && (f2 = w2.nextSibling), y2.__u &= -7);
90
+ for (f2 = P$1(u2, l2, m2, f2, b), a2 = 0; a2 < b; a2++) null != (y2 = u2.__k[a2]) && (h2 = -1 == y2.__i ? p$1 : m2[y2.__i] || p$1, y2.__i = a2, g2 = O(n2, y2, h2, i2, r2, o2, e2, f2, c2, s2), w2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && B$2(h2.ref, null, y2), s2.push(y2.ref, y2.__c || w2, y2)), null == d2 && null != w2 && (d2 = w2), (_2 = !!(4 & y2.__u)) || h2.__k === y2.__k ? f2 = A$2(y2, f2, n2, _2) : "function" == typeof y2.type && void 0 !== g2 ? f2 = g2 : w2 && (f2 = w2.nextSibling), y2.__u &= -7);
91
91
  return u2.__e = d2, f2;
92
92
  }
93
93
  function P$1(n2, l2, u2, t2, i2) {
94
94
  var r2, o2, e2, f2, c2, s2 = u2.length, a2 = s2, h2 = 0;
95
95
  for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++) null != (o2 = l2[r2]) && "boolean" != typeof o2 && "function" != typeof o2 ? (f2 = r2 + h2, (o2 = n2.__k[r2] = "string" == typeof o2 || "number" == typeof o2 || "bigint" == typeof o2 || o2.constructor == String ? m$1(null, o2, null, null, null) : w$1(o2) ? m$1(k$1, { children: o2 }, null, null, null) : null == o2.constructor && o2.__b > 0 ? m$1(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : o2).__ = n2, o2.__b = n2.__b + 1, e2 = null, -1 != (c2 = o2.__i = L(o2, u2, f2, a2)) && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), null == e2 || null == e2.__v ? (-1 == c2 && (i2 > s2 ? h2-- : i2 < s2 && h2++), "function" != typeof o2.type && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
96
- if (a2) for (r2 = 0; r2 < s2; r2++) null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), D$1(e2, e2));
96
+ if (a2) for (r2 = 0; r2 < s2; r2++) null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), D$2(e2, e2));
97
97
  return t2;
98
98
  }
99
- function A$1(n2, l2, u2, t2) {
99
+ function A$2(n2, l2, u2, t2) {
100
100
  var i2, r2;
101
101
  if ("function" == typeof n2.type) {
102
- for (i2 = n2.__k, r2 = 0; i2 && r2 < i2.length; r2++) i2[r2] && (i2[r2].__ = n2, l2 = A$1(i2[r2], l2, u2, t2));
102
+ for (i2 = n2.__k, r2 = 0; i2 && r2 < i2.length; r2++) i2[r2] && (i2[r2].__ = n2, l2 = A$2(i2[r2], l2, u2, t2));
103
103
  return l2;
104
104
  }
105
105
  n2.__e != l2 && (t2 && (l2 && n2.type && !l2.parentNode && (l2 = S(n2)), u2.insertBefore(n2.__e, l2 || null)), l2 = n2.__e);
@@ -247,7 +247,7 @@ function B$2(n2, u2, t2) {
247
247
  l$1.__e(n3, t2);
248
248
  }
249
249
  }
250
- function D$1(n2, u2, t2) {
250
+ function D$2(n2, u2, t2) {
251
251
  var i2, r2;
252
252
  if (l$1.unmount && l$1.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current != n2.__e || B$2(i2, null, u2)), null != (i2 = n2.__c)) {
253
253
  if (i2.componentWillUnmount) try {
@@ -257,7 +257,7 @@ function D$1(n2, u2, t2) {
257
257
  }
258
258
  i2.base = i2.__P = null;
259
259
  }
260
- if (i2 = n2.__k) for (r2 = 0; r2 < i2.length; r2++) i2[r2] && D$1(i2[r2], u2, t2 || "function" != typeof n2.type);
260
+ if (i2 = n2.__k) for (r2 = 0; r2 < i2.length; r2++) i2[r2] && D$2(i2[r2], u2, t2 || "function" != typeof n2.type);
261
261
  t2 || g$1(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
262
262
  }
263
263
  function E$1(n2, l2, u2) {
@@ -305,12 +305,316 @@ n = v$1.slice, l$1 = { __e: function(n2, l2, u2, t2) {
305
305
  }, x$1.prototype.render = k$1, i$1 = [], o$1 = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e$1 = function(n2, l2) {
306
306
  return n2.__v.__b - l2.__v.__b;
307
307
  }, $.__r = 0, f$2 = /(PointerCapture)$|Capture$/i, c$1 = 0, s$1 = F$1(false), a$1 = F$1(true), h$1 = 0;
308
- var f$1 = 0;
309
- function u$1(e2, t2, n2, o2, i2, u2) {
308
+ var t, r, u$1, i, o = 0, f$1 = [], c = l$1, e = c.__b, a = c.__r, v = c.diffed, l = c.__c, m = c.unmount, s = c.__;
309
+ function p(n2, t2) {
310
+ c.__h && c.__h(r, n2, o || t2), o = 0;
311
+ var u2 = r.__H || (r.__H = { __: [], __h: [] });
312
+ return n2 >= u2.__.length && u2.__.push({}), u2.__[n2];
313
+ }
314
+ function d(n2) {
315
+ return o = 1, h(D$1, n2);
316
+ }
317
+ function h(n2, u2, i2) {
318
+ var o2 = p(t++, 2);
319
+ if (o2.t = n2, !o2.__c && (o2.__ = [i2 ? i2(u2) : D$1(void 0, u2), function(n3) {
320
+ var t2 = o2.__N ? o2.__N[0] : o2.__[0], r2 = o2.t(t2, n3);
321
+ t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
322
+ }], o2.__c = r, !r.__f)) {
323
+ var f2 = function(n3, t2, r2) {
324
+ if (!o2.__c.__H) return true;
325
+ var u3 = o2.__c.__H.__.filter(function(n4) {
326
+ return !!n4.__c;
327
+ });
328
+ if (u3.every(function(n4) {
329
+ return !n4.__N;
330
+ })) return !c2 || c2.call(this, n3, t2, r2);
331
+ var i3 = o2.__c.props !== n3;
332
+ return u3.forEach(function(n4) {
333
+ if (n4.__N) {
334
+ var t3 = n4.__[0];
335
+ n4.__ = n4.__N, n4.__N = void 0, t3 !== n4.__[0] && (i3 = true);
336
+ }
337
+ }), c2 && c2.call(this, n3, t2, r2) || i3;
338
+ };
339
+ r.__f = true;
340
+ var c2 = r.shouldComponentUpdate, e2 = r.componentWillUpdate;
341
+ r.componentWillUpdate = function(n3, t2, r2) {
342
+ if (this.__e) {
343
+ var u3 = c2;
344
+ c2 = void 0, f2(n3, t2, r2), c2 = u3;
345
+ }
346
+ e2 && e2.call(this, n3, t2, r2);
347
+ }, r.shouldComponentUpdate = f2;
348
+ }
349
+ return o2.__N || o2.__;
350
+ }
351
+ function y(n2, u2) {
352
+ var i2 = p(t++, 3);
353
+ !c.__s && C(i2.__H, u2) && (i2.__ = n2, i2.u = u2, r.__H.__h.push(i2));
354
+ }
355
+ function A$1(n2) {
356
+ return o = 5, T$1(function() {
357
+ return { current: n2 };
358
+ }, []);
359
+ }
360
+ function T$1(n2, r2) {
361
+ var u2 = p(t++, 7);
362
+ return C(u2.__H, r2) && (u2.__ = n2(), u2.__H = r2, u2.__h = n2), u2.__;
363
+ }
364
+ function q$1(n2, t2) {
365
+ return o = 8, T$1(function() {
366
+ return n2;
367
+ }, t2);
368
+ }
369
+ function x(n2) {
370
+ var u2 = r.context[n2.__c], i2 = p(t++, 9);
371
+ return i2.c = n2, u2 ? (null == i2.__ && (i2.__ = true, u2.sub(r)), u2.props.value) : n2.__;
372
+ }
373
+ function j$1() {
374
+ for (var n2; n2 = f$1.shift(); ) if (n2.__P && n2.__H) try {
375
+ n2.__H.__h.forEach(z), n2.__H.__h.forEach(B$1), n2.__H.__h = [];
376
+ } catch (t2) {
377
+ n2.__H.__h = [], c.__e(t2, n2.__v);
378
+ }
379
+ }
380
+ c.__b = function(n2) {
381
+ r = null, e && e(n2);
382
+ }, c.__ = function(n2, t2) {
383
+ n2 && t2.__k && t2.__k.__m && (n2.__m = t2.__k.__m), s && s(n2, t2);
384
+ }, c.__r = function(n2) {
385
+ a && a(n2), t = 0;
386
+ var i2 = (r = n2.__c).__H;
387
+ i2 && (u$1 === r ? (i2.__h = [], r.__h = [], i2.__.forEach(function(n3) {
388
+ n3.__N && (n3.__ = n3.__N), n3.u = n3.__N = void 0;
389
+ })) : (i2.__h.forEach(z), i2.__h.forEach(B$1), i2.__h = [], t = 0)), u$1 = r;
390
+ }, c.diffed = function(n2) {
391
+ v && v(n2);
392
+ var t2 = n2.__c;
393
+ t2 && t2.__H && (t2.__H.__h.length && (1 !== f$1.push(t2) && i === c.requestAnimationFrame || ((i = c.requestAnimationFrame) || w)(j$1)), t2.__H.__.forEach(function(n3) {
394
+ n3.u && (n3.__H = n3.u), n3.u = void 0;
395
+ })), u$1 = r = null;
396
+ }, c.__c = function(n2, t2) {
397
+ t2.some(function(n3) {
398
+ try {
399
+ n3.__h.forEach(z), n3.__h = n3.__h.filter(function(n4) {
400
+ return !n4.__ || B$1(n4);
401
+ });
402
+ } catch (r2) {
403
+ t2.some(function(n4) {
404
+ n4.__h && (n4.__h = []);
405
+ }), t2 = [], c.__e(r2, n3.__v);
406
+ }
407
+ }), l && l(n2, t2);
408
+ }, c.unmount = function(n2) {
409
+ m && m(n2);
410
+ var t2, r2 = n2.__c;
411
+ r2 && r2.__H && (r2.__H.__.forEach(function(n3) {
412
+ try {
413
+ z(n3);
414
+ } catch (n4) {
415
+ t2 = n4;
416
+ }
417
+ }), r2.__H = void 0, t2 && c.__e(t2, r2.__v));
418
+ };
419
+ var k = "function" == typeof requestAnimationFrame;
420
+ function w(n2) {
421
+ var t2, r2 = function() {
422
+ clearTimeout(u2), k && cancelAnimationFrame(t2), setTimeout(n2);
423
+ }, u2 = setTimeout(r2, 35);
424
+ k && (t2 = requestAnimationFrame(r2));
425
+ }
426
+ function z(n2) {
427
+ var t2 = r, u2 = n2.__c;
428
+ "function" == typeof u2 && (n2.__c = void 0, u2()), r = t2;
429
+ }
430
+ function B$1(n2) {
431
+ var t2 = r;
432
+ n2.__c = n2.__(), r = t2;
433
+ }
434
+ function C(n2, t2) {
435
+ return !n2 || n2.length !== t2.length || t2.some(function(t3, r2) {
436
+ return t3 !== n2[r2];
437
+ });
438
+ }
439
+ function D$1(n2, t2) {
440
+ return "function" == typeof t2 ? t2(n2) : t2;
441
+ }
442
+ function g(n2, t2) {
443
+ for (var e2 in t2) n2[e2] = t2[e2];
444
+ return n2;
445
+ }
446
+ function E(n2, t2) {
447
+ for (var e2 in n2) if ("__source" !== e2 && !(e2 in t2)) return true;
448
+ for (var r2 in t2) if ("__source" !== r2 && n2[r2] !== t2[r2]) return true;
449
+ return false;
450
+ }
451
+ function N(n2, t2) {
452
+ this.props = n2, this.context = t2;
453
+ }
454
+ (N.prototype = new x$1()).isPureReactComponent = true, N.prototype.shouldComponentUpdate = function(n2, t2) {
455
+ return E(this.props, n2) || E(this.state, t2);
456
+ };
457
+ var T = l$1.__b;
458
+ l$1.__b = function(n2) {
459
+ n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), T && T(n2);
460
+ };
461
+ var A = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.forward_ref") || 3911;
462
+ function D(n2) {
463
+ function t2(t3) {
464
+ var e2 = g({}, t3);
465
+ return delete e2.ref, n2(e2, t3.ref || null);
466
+ }
467
+ return t2.$$typeof = A, t2.render = n2, t2.prototype.isReactComponent = t2.__f = true, t2.displayName = "ForwardRef(" + (n2.displayName || n2.name) + ")", t2;
468
+ }
469
+ var F = l$1.__e;
470
+ l$1.__e = function(n2, t2, e2, r2) {
471
+ if (n2.then) {
472
+ for (var u2, o2 = t2; o2 = o2.__; ) if ((u2 = o2.__c) && u2.__c) return null == t2.__e && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n2, t2);
473
+ }
474
+ F(n2, t2, e2, r2);
475
+ };
476
+ var U = l$1.unmount;
477
+ function V(n2, t2, e2) {
478
+ return n2 && (n2.__c && n2.__c.__H && (n2.__c.__H.__.forEach(function(n3) {
479
+ "function" == typeof n3.__c && n3.__c();
480
+ }), n2.__c.__H = null), null != (n2 = g({}, n2)).__c && (n2.__c.__P === e2 && (n2.__c.__P = t2), n2.__c.__e = true, n2.__c = null), n2.__k = n2.__k && n2.__k.map(function(n3) {
481
+ return V(n3, t2, e2);
482
+ })), n2;
483
+ }
484
+ function W(n2, t2, e2) {
485
+ return n2 && e2 && (n2.__v = null, n2.__k = n2.__k && n2.__k.map(function(n3) {
486
+ return W(n3, t2, e2);
487
+ }), n2.__c && n2.__c.__P === t2 && (n2.__e && e2.appendChild(n2.__e), n2.__c.__e = true, n2.__c.__P = e2)), n2;
488
+ }
489
+ function P() {
490
+ this.__u = 0, this.o = null, this.__b = null;
491
+ }
492
+ function j(n2) {
493
+ var t2 = n2.__.__c;
494
+ return t2 && t2.__a && t2.__a(n2);
495
+ }
496
+ function B() {
497
+ this.i = null, this.l = null;
498
+ }
499
+ l$1.unmount = function(n2) {
500
+ var t2 = n2.__c;
501
+ t2 && t2.__R && t2.__R(), t2 && 32 & n2.__u && (n2.type = null), U && U(n2);
502
+ }, (P.prototype = new x$1()).__c = function(n2, t2) {
503
+ var e2 = t2.__c, r2 = this;
504
+ null == r2.o && (r2.o = []), r2.o.push(e2);
505
+ var u2 = j(r2.__v), o2 = false, i2 = function() {
506
+ o2 || (o2 = true, e2.__R = null, u2 ? u2(l2) : l2());
507
+ };
508
+ e2.__R = i2;
509
+ var l2 = function() {
510
+ if (!--r2.__u) {
511
+ if (r2.state.__a) {
512
+ var n3 = r2.state.__a;
513
+ r2.__v.__k[0] = W(n3, n3.__c.__P, n3.__c.__O);
514
+ }
515
+ var t3;
516
+ for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); ) t3.forceUpdate();
517
+ }
518
+ };
519
+ r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
520
+ }, P.prototype.componentWillUnmount = function() {
521
+ this.o = [];
522
+ }, P.prototype.render = function(n2, e2) {
523
+ if (this.__b) {
524
+ if (this.__v.__k) {
525
+ var r2 = document.createElement("div"), o2 = this.__v.__k[0].__c;
526
+ this.__v.__k[0] = V(this.__b, r2, o2.__O = o2.__P);
527
+ }
528
+ this.__b = null;
529
+ }
530
+ var i2 = e2.__a && _(k$1, null, n2.fallback);
531
+ return i2 && (i2.__u &= -33), [_(k$1, null, e2.__a ? null : n2.children), i2];
532
+ };
533
+ var H = function(n2, t2, e2) {
534
+ if (++e2[1] === e2[0] && n2.l.delete(t2), n2.props.revealOrder && ("t" !== n2.props.revealOrder[0] || !n2.l.size)) for (e2 = n2.i; e2; ) {
535
+ for (; e2.length > 3; ) e2.pop()();
536
+ if (e2[1] < e2[0]) break;
537
+ n2.i = e2 = e2[2];
538
+ }
539
+ };
540
+ (B.prototype = new x$1()).__a = function(n2) {
541
+ var t2 = this, e2 = j(t2.__v), r2 = t2.l.get(n2);
542
+ return r2[0]++, function(u2) {
543
+ var o2 = function() {
544
+ t2.props.revealOrder ? (r2.push(u2), H(t2, n2, r2)) : u2();
545
+ };
546
+ e2 ? e2(o2) : o2();
547
+ };
548
+ }, B.prototype.render = function(n2) {
549
+ this.i = null, this.l = /* @__PURE__ */ new Map();
550
+ var t2 = H$1(n2.children);
551
+ n2.revealOrder && "b" === n2.revealOrder[0] && t2.reverse();
552
+ for (var e2 = t2.length; e2--; ) this.l.set(t2[e2], this.i = [1, 0, this.i]);
553
+ return n2.children;
554
+ }, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
555
+ var n2 = this;
556
+ this.l.forEach(function(t2, e2) {
557
+ H(n2, e2, t2);
558
+ });
559
+ };
560
+ var q = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103, G = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, J = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, K = /[A-Z0-9]/g, Q = "undefined" != typeof document, X = function(n2) {
561
+ return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n2);
562
+ };
563
+ x$1.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t2) {
564
+ Object.defineProperty(x$1.prototype, t2, { configurable: true, get: function() {
565
+ return this["UNSAFE_" + t2];
566
+ }, set: function(n2) {
567
+ Object.defineProperty(this, t2, { configurable: true, writable: true, value: n2 });
568
+ } });
569
+ });
570
+ var en = l$1.event;
571
+ function rn() {
572
+ }
573
+ function un() {
574
+ return this.cancelBubble;
575
+ }
576
+ function on() {
577
+ return this.defaultPrevented;
578
+ }
579
+ l$1.event = function(n2) {
580
+ return en && (n2 = en(n2)), n2.persist = rn, n2.isPropagationStopped = un, n2.isDefaultPrevented = on, n2.nativeEvent = n2;
581
+ };
582
+ var cn = { enumerable: false, configurable: true, get: function() {
583
+ return this.class;
584
+ } }, fn = l$1.vnode;
585
+ l$1.vnode = function(n2) {
586
+ "string" == typeof n2.type && (function(n3) {
587
+ var t2 = n3.props, e2 = n3.type, u2 = {}, o2 = -1 === e2.indexOf("-");
588
+ for (var i2 in t2) {
589
+ var l2 = t2[i2];
590
+ if (!("value" === i2 && "defaultValue" in t2 && null == l2 || Q && "children" === i2 && "noscript" === e2 || "class" === i2 || "className" === i2)) {
591
+ var c2 = i2.toLowerCase();
592
+ "defaultValue" === i2 && "value" in t2 && null == t2.value ? i2 = "value" : "download" === i2 && true === l2 ? l2 = "" : "translate" === c2 && "no" === l2 ? l2 = false : "o" === c2[0] && "n" === c2[1] ? "ondoubleclick" === c2 ? i2 = "ondblclick" : "onchange" !== c2 || "input" !== e2 && "textarea" !== e2 || X(t2.type) ? "onfocus" === c2 ? i2 = "onfocusin" : "onblur" === c2 ? i2 = "onfocusout" : J.test(i2) && (i2 = c2) : c2 = i2 = "oninput" : o2 && G.test(i2) ? i2 = i2.replace(K, "-$&").toLowerCase() : null === l2 && (l2 = void 0), "oninput" === c2 && u2[i2 = c2] && (i2 = "oninputCapture"), u2[i2] = l2;
593
+ }
594
+ }
595
+ "select" == e2 && u2.multiple && Array.isArray(u2.value) && (u2.value = H$1(t2.children).forEach(function(n4) {
596
+ n4.props.selected = -1 != u2.value.indexOf(n4.props.value);
597
+ })), "select" == e2 && null != u2.defaultValue && (u2.value = H$1(t2.children).forEach(function(n4) {
598
+ n4.props.selected = u2.multiple ? -1 != u2.defaultValue.indexOf(n4.props.value) : u2.defaultValue == n4.props.value;
599
+ })), t2.class && !t2.className ? (u2.class = t2.class, Object.defineProperty(u2, "className", cn)) : (t2.className && !t2.class || t2.class && t2.className) && (u2.class = u2.className = t2.className), n3.props = u2;
600
+ })(n2), n2.$$typeof = q, fn && fn(n2);
601
+ };
602
+ var an = l$1.__r;
603
+ l$1.__r = function(n2) {
604
+ an && an(n2), n2.__c;
605
+ };
606
+ var sn = l$1.diffed;
607
+ l$1.diffed = function(n2) {
608
+ sn && sn(n2);
609
+ var t2 = n2.props, e2 = n2.__e;
610
+ null != e2 && "textarea" === n2.type && "value" in t2 && t2.value !== e2.value && (e2.value = null == t2.value ? "" : t2.value);
611
+ };
612
+ var f = 0;
613
+ function u(e2, t2, n2, o2, i2, u2) {
310
614
  t2 || (t2 = {});
311
615
  var a2, c2, p2 = t2;
312
616
  if ("ref" in p2) for (c2 in p2 = {}, t2) "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
313
- var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f$1, __i: -1, __u: 0, __source: i2, __self: u2 };
617
+ var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f, __i: -1, __u: 0, __source: i2, __self: u2 };
314
618
  if ("function" == typeof e2 && (a2 = e2.defaultProps)) for (c2 in a2) void 0 === p2[c2] && (p2[c2] = a2[c2]);
315
619
  return l$1.vnode && l$1.vnode(l2), l2;
316
620
  }
@@ -1580,155 +1884,21 @@ class Client {
1580
1884
  /**
1581
1885
  * NACK a message. It is preferable to acknowledge a message by calling [nack]{@link IMessage#nack} directly
1582
1886
  * on the {@link IMessage} handled by a subscription callback:
1583
- *
1584
- * ```javascript
1585
- * var callback = function (message) {
1586
- * // process the message
1587
- * // an error occurs, nack it
1588
- * message.nack();
1589
- * };
1590
- * client.subscribe(destination, callback, {'ack': 'client'});
1591
- * ```
1592
- */
1593
- nack(messageId, subscriptionId, headers = {}) {
1594
- this._checkConnection();
1595
- this._stompHandler.nack(messageId, subscriptionId, headers);
1596
- }
1597
- }
1598
- var t, r, u, i, o = 0, f = [], c = l$1, e = c.__b, a = c.__r, v = c.diffed, l = c.__c, m = c.unmount, s = c.__;
1599
- function p(n2, t2) {
1600
- c.__h && c.__h(r, n2, o || t2), o = 0;
1601
- var u2 = r.__H || (r.__H = { __: [], __h: [] });
1602
- return n2 >= u2.__.length && u2.__.push({}), u2.__[n2];
1603
- }
1604
- function d(n2) {
1605
- return o = 1, h(D, n2);
1606
- }
1607
- function h(n2, u2, i2) {
1608
- var o2 = p(t++, 2);
1609
- if (o2.t = n2, !o2.__c && (o2.__ = [i2 ? i2(u2) : D(void 0, u2), function(n3) {
1610
- var t2 = o2.__N ? o2.__N[0] : o2.__[0], r2 = o2.t(t2, n3);
1611
- t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
1612
- }], o2.__c = r, !r.__f)) {
1613
- var f2 = function(n3, t2, r2) {
1614
- if (!o2.__c.__H) return true;
1615
- var u3 = o2.__c.__H.__.filter(function(n4) {
1616
- return !!n4.__c;
1617
- });
1618
- if (u3.every(function(n4) {
1619
- return !n4.__N;
1620
- })) return !c2 || c2.call(this, n3, t2, r2);
1621
- var i3 = o2.__c.props !== n3;
1622
- return u3.forEach(function(n4) {
1623
- if (n4.__N) {
1624
- var t3 = n4.__[0];
1625
- n4.__ = n4.__N, n4.__N = void 0, t3 !== n4.__[0] && (i3 = true);
1626
- }
1627
- }), c2 && c2.call(this, n3, t2, r2) || i3;
1628
- };
1629
- r.__f = true;
1630
- var c2 = r.shouldComponentUpdate, e2 = r.componentWillUpdate;
1631
- r.componentWillUpdate = function(n3, t2, r2) {
1632
- if (this.__e) {
1633
- var u3 = c2;
1634
- c2 = void 0, f2(n3, t2, r2), c2 = u3;
1635
- }
1636
- e2 && e2.call(this, n3, t2, r2);
1637
- }, r.shouldComponentUpdate = f2;
1638
- }
1639
- return o2.__N || o2.__;
1640
- }
1641
- function y(n2, u2) {
1642
- var i2 = p(t++, 3);
1643
- !c.__s && C(i2.__H, u2) && (i2.__ = n2, i2.u = u2, r.__H.__h.push(i2));
1644
- }
1645
- function A(n2) {
1646
- return o = 5, T$1(function() {
1647
- return { current: n2 };
1648
- }, []);
1649
- }
1650
- function T$1(n2, r2) {
1651
- var u2 = p(t++, 7);
1652
- return C(u2.__H, r2) && (u2.__ = n2(), u2.__H = r2, u2.__h = n2), u2.__;
1653
- }
1654
- function q$1(n2, t2) {
1655
- return o = 8, T$1(function() {
1656
- return n2;
1657
- }, t2);
1658
- }
1659
- function x(n2) {
1660
- var u2 = r.context[n2.__c], i2 = p(t++, 9);
1661
- return i2.c = n2, u2 ? (null == i2.__ && (i2.__ = true, u2.sub(r)), u2.props.value) : n2.__;
1662
- }
1663
- function j$1() {
1664
- for (var n2; n2 = f.shift(); ) if (n2.__P && n2.__H) try {
1665
- n2.__H.__h.forEach(z), n2.__H.__h.forEach(B$1), n2.__H.__h = [];
1666
- } catch (t2) {
1667
- n2.__H.__h = [], c.__e(t2, n2.__v);
1887
+ *
1888
+ * ```javascript
1889
+ * var callback = function (message) {
1890
+ * // process the message
1891
+ * // an error occurs, nack it
1892
+ * message.nack();
1893
+ * };
1894
+ * client.subscribe(destination, callback, {'ack': 'client'});
1895
+ * ```
1896
+ */
1897
+ nack(messageId, subscriptionId, headers = {}) {
1898
+ this._checkConnection();
1899
+ this._stompHandler.nack(messageId, subscriptionId, headers);
1668
1900
  }
1669
1901
  }
1670
- c.__b = function(n2) {
1671
- r = null, e && e(n2);
1672
- }, c.__ = function(n2, t2) {
1673
- n2 && t2.__k && t2.__k.__m && (n2.__m = t2.__k.__m), s && s(n2, t2);
1674
- }, c.__r = function(n2) {
1675
- a && a(n2), t = 0;
1676
- var i2 = (r = n2.__c).__H;
1677
- i2 && (u === r ? (i2.__h = [], r.__h = [], i2.__.forEach(function(n3) {
1678
- n3.__N && (n3.__ = n3.__N), n3.u = n3.__N = void 0;
1679
- })) : (i2.__h.forEach(z), i2.__h.forEach(B$1), i2.__h = [], t = 0)), u = r;
1680
- }, c.diffed = function(n2) {
1681
- v && v(n2);
1682
- var t2 = n2.__c;
1683
- t2 && t2.__H && (t2.__H.__h.length && (1 !== f.push(t2) && i === c.requestAnimationFrame || ((i = c.requestAnimationFrame) || w)(j$1)), t2.__H.__.forEach(function(n3) {
1684
- n3.u && (n3.__H = n3.u), n3.u = void 0;
1685
- })), u = r = null;
1686
- }, c.__c = function(n2, t2) {
1687
- t2.some(function(n3) {
1688
- try {
1689
- n3.__h.forEach(z), n3.__h = n3.__h.filter(function(n4) {
1690
- return !n4.__ || B$1(n4);
1691
- });
1692
- } catch (r2) {
1693
- t2.some(function(n4) {
1694
- n4.__h && (n4.__h = []);
1695
- }), t2 = [], c.__e(r2, n3.__v);
1696
- }
1697
- }), l && l(n2, t2);
1698
- }, c.unmount = function(n2) {
1699
- m && m(n2);
1700
- var t2, r2 = n2.__c;
1701
- r2 && r2.__H && (r2.__H.__.forEach(function(n3) {
1702
- try {
1703
- z(n3);
1704
- } catch (n4) {
1705
- t2 = n4;
1706
- }
1707
- }), r2.__H = void 0, t2 && c.__e(t2, r2.__v));
1708
- };
1709
- var k = "function" == typeof requestAnimationFrame;
1710
- function w(n2) {
1711
- var t2, r2 = function() {
1712
- clearTimeout(u2), k && cancelAnimationFrame(t2), setTimeout(n2);
1713
- }, u2 = setTimeout(r2, 35);
1714
- k && (t2 = requestAnimationFrame(r2));
1715
- }
1716
- function z(n2) {
1717
- var t2 = r, u2 = n2.__c;
1718
- "function" == typeof u2 && (n2.__c = void 0, u2()), r = t2;
1719
- }
1720
- function B$1(n2) {
1721
- var t2 = r;
1722
- n2.__c = n2.__(), r = t2;
1723
- }
1724
- function C(n2, t2) {
1725
- return !n2 || n2.length !== t2.length || t2.some(function(t3, r2) {
1726
- return t3 !== n2[r2];
1727
- });
1728
- }
1729
- function D(n2, t2) {
1730
- return "function" == typeof t2 ? t2(n2) : t2;
1731
- }
1732
1902
  const StompConnectionContext = Q$1(null);
1733
1903
  const useStompConnectionContext = () => {
1734
1904
  const context = x(StompConnectionContext);
@@ -1739,15 +1909,15 @@ const useStompConnectionContext = () => {
1739
1909
  };
1740
1910
  const StompConnectionProvider = ({ children }) => {
1741
1911
  const [connectionState, setConnectionState] = d("disconnected");
1742
- const clientRef = A(null);
1743
- const configRef = A(null);
1744
- const userRef = A(null);
1745
- const isConnectingRef = A(false);
1746
- const connectionStateRef = A("disconnected");
1747
- const subscriptionsRef = A(/* @__PURE__ */ new Map());
1748
- const messageCallbacksRef = A(/* @__PURE__ */ new Set());
1749
- const announcementCallbacksRef = A(/* @__PURE__ */ new Set());
1750
- const tokenRefreshCallbacksRef = A(/* @__PURE__ */ new Set());
1912
+ const clientRef = A$1(null);
1913
+ const configRef = A$1(null);
1914
+ const userRef = A$1(null);
1915
+ const isConnectingRef = A$1(false);
1916
+ const connectionStateRef = A$1("disconnected");
1917
+ const subscriptionsRef = A$1(/* @__PURE__ */ new Map());
1918
+ const messageCallbacksRef = A$1(/* @__PURE__ */ new Set());
1919
+ const announcementCallbacksRef = A$1(/* @__PURE__ */ new Set());
1920
+ const tokenRefreshCallbacksRef = A$1(/* @__PURE__ */ new Set());
1751
1921
  const updateConnectionState = q$1((state) => {
1752
1922
  if (connectionStateRef.current !== state) {
1753
1923
  console.log("STOMP Context: Connection state changed from", connectionStateRef.current, "to", state);
@@ -1989,11 +2159,11 @@ const StompConnectionProvider = ({ children }) => {
1989
2159
  onAnnouncement,
1990
2160
  onTokenRefresh
1991
2161
  };
1992
- return /* @__PURE__ */ u$1(StompConnectionContext.Provider, { value: contextValue, children });
2162
+ return /* @__PURE__ */ u(StompConnectionContext.Provider, { value: contextValue, children });
1993
2163
  };
1994
2164
  const WidgetContext = Q$1(null);
1995
2165
  const WidgetProvider = ({ value, children }) => {
1996
- return /* @__PURE__ */ u$1(WidgetContext.Provider, { value, children });
2166
+ return /* @__PURE__ */ u(WidgetContext.Provider, { value, children });
1997
2167
  };
1998
2168
  const useWidgetContext = () => {
1999
2169
  const context = x(WidgetContext);
@@ -4540,168 +4710,6 @@ class Browser {
4540
4710
  }
4541
4711
  }
4542
4712
  Browser.type = "languageDetector";
4543
- function g(n2, t2) {
4544
- for (var e2 in t2) n2[e2] = t2[e2];
4545
- return n2;
4546
- }
4547
- function E(n2, t2) {
4548
- for (var e2 in n2) if ("__source" !== e2 && !(e2 in t2)) return true;
4549
- for (var r2 in t2) if ("__source" !== r2 && n2[r2] !== t2[r2]) return true;
4550
- return false;
4551
- }
4552
- function N(n2, t2) {
4553
- this.props = n2, this.context = t2;
4554
- }
4555
- (N.prototype = new x$1()).isPureReactComponent = true, N.prototype.shouldComponentUpdate = function(n2, t2) {
4556
- return E(this.props, n2) || E(this.state, t2);
4557
- };
4558
- var T = l$1.__b;
4559
- l$1.__b = function(n2) {
4560
- n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), T && T(n2);
4561
- };
4562
- var F = l$1.__e;
4563
- l$1.__e = function(n2, t2, e2, r2) {
4564
- if (n2.then) {
4565
- for (var u2, o2 = t2; o2 = o2.__; ) if ((u2 = o2.__c) && u2.__c) return null == t2.__e && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n2, t2);
4566
- }
4567
- F(n2, t2, e2, r2);
4568
- };
4569
- var U = l$1.unmount;
4570
- function V(n2, t2, e2) {
4571
- return n2 && (n2.__c && n2.__c.__H && (n2.__c.__H.__.forEach(function(n3) {
4572
- "function" == typeof n3.__c && n3.__c();
4573
- }), n2.__c.__H = null), null != (n2 = g({}, n2)).__c && (n2.__c.__P === e2 && (n2.__c.__P = t2), n2.__c.__e = true, n2.__c = null), n2.__k = n2.__k && n2.__k.map(function(n3) {
4574
- return V(n3, t2, e2);
4575
- })), n2;
4576
- }
4577
- function W(n2, t2, e2) {
4578
- return n2 && e2 && (n2.__v = null, n2.__k = n2.__k && n2.__k.map(function(n3) {
4579
- return W(n3, t2, e2);
4580
- }), n2.__c && n2.__c.__P === t2 && (n2.__e && e2.appendChild(n2.__e), n2.__c.__e = true, n2.__c.__P = e2)), n2;
4581
- }
4582
- function P() {
4583
- this.__u = 0, this.o = null, this.__b = null;
4584
- }
4585
- function j(n2) {
4586
- var t2 = n2.__.__c;
4587
- return t2 && t2.__a && t2.__a(n2);
4588
- }
4589
- function B() {
4590
- this.i = null, this.l = null;
4591
- }
4592
- l$1.unmount = function(n2) {
4593
- var t2 = n2.__c;
4594
- t2 && t2.__R && t2.__R(), t2 && 32 & n2.__u && (n2.type = null), U && U(n2);
4595
- }, (P.prototype = new x$1()).__c = function(n2, t2) {
4596
- var e2 = t2.__c, r2 = this;
4597
- null == r2.o && (r2.o = []), r2.o.push(e2);
4598
- var u2 = j(r2.__v), o2 = false, i2 = function() {
4599
- o2 || (o2 = true, e2.__R = null, u2 ? u2(l2) : l2());
4600
- };
4601
- e2.__R = i2;
4602
- var l2 = function() {
4603
- if (!--r2.__u) {
4604
- if (r2.state.__a) {
4605
- var n3 = r2.state.__a;
4606
- r2.__v.__k[0] = W(n3, n3.__c.__P, n3.__c.__O);
4607
- }
4608
- var t3;
4609
- for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); ) t3.forceUpdate();
4610
- }
4611
- };
4612
- r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
4613
- }, P.prototype.componentWillUnmount = function() {
4614
- this.o = [];
4615
- }, P.prototype.render = function(n2, e2) {
4616
- if (this.__b) {
4617
- if (this.__v.__k) {
4618
- var r2 = document.createElement("div"), o2 = this.__v.__k[0].__c;
4619
- this.__v.__k[0] = V(this.__b, r2, o2.__O = o2.__P);
4620
- }
4621
- this.__b = null;
4622
- }
4623
- var i2 = e2.__a && _(k$1, null, n2.fallback);
4624
- return i2 && (i2.__u &= -33), [_(k$1, null, e2.__a ? null : n2.children), i2];
4625
- };
4626
- var H = function(n2, t2, e2) {
4627
- if (++e2[1] === e2[0] && n2.l.delete(t2), n2.props.revealOrder && ("t" !== n2.props.revealOrder[0] || !n2.l.size)) for (e2 = n2.i; e2; ) {
4628
- for (; e2.length > 3; ) e2.pop()();
4629
- if (e2[1] < e2[0]) break;
4630
- n2.i = e2 = e2[2];
4631
- }
4632
- };
4633
- (B.prototype = new x$1()).__a = function(n2) {
4634
- var t2 = this, e2 = j(t2.__v), r2 = t2.l.get(n2);
4635
- return r2[0]++, function(u2) {
4636
- var o2 = function() {
4637
- t2.props.revealOrder ? (r2.push(u2), H(t2, n2, r2)) : u2();
4638
- };
4639
- e2 ? e2(o2) : o2();
4640
- };
4641
- }, B.prototype.render = function(n2) {
4642
- this.i = null, this.l = /* @__PURE__ */ new Map();
4643
- var t2 = H$1(n2.children);
4644
- n2.revealOrder && "b" === n2.revealOrder[0] && t2.reverse();
4645
- for (var e2 = t2.length; e2--; ) this.l.set(t2[e2], this.i = [1, 0, this.i]);
4646
- return n2.children;
4647
- }, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
4648
- var n2 = this;
4649
- this.l.forEach(function(t2, e2) {
4650
- H(n2, e2, t2);
4651
- });
4652
- };
4653
- var q = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103, G = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, J = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, K = /[A-Z0-9]/g, Q = "undefined" != typeof document, X = function(n2) {
4654
- return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n2);
4655
- };
4656
- x$1.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t2) {
4657
- Object.defineProperty(x$1.prototype, t2, { configurable: true, get: function() {
4658
- return this["UNSAFE_" + t2];
4659
- }, set: function(n2) {
4660
- Object.defineProperty(this, t2, { configurable: true, writable: true, value: n2 });
4661
- } });
4662
- });
4663
- var en = l$1.event;
4664
- function rn() {
4665
- }
4666
- function un() {
4667
- return this.cancelBubble;
4668
- }
4669
- function on() {
4670
- return this.defaultPrevented;
4671
- }
4672
- l$1.event = function(n2) {
4673
- return en && (n2 = en(n2)), n2.persist = rn, n2.isPropagationStopped = un, n2.isDefaultPrevented = on, n2.nativeEvent = n2;
4674
- };
4675
- var cn = { enumerable: false, configurable: true, get: function() {
4676
- return this.class;
4677
- } }, fn = l$1.vnode;
4678
- l$1.vnode = function(n2) {
4679
- "string" == typeof n2.type && (function(n3) {
4680
- var t2 = n3.props, e2 = n3.type, u2 = {}, o2 = -1 === e2.indexOf("-");
4681
- for (var i2 in t2) {
4682
- var l2 = t2[i2];
4683
- if (!("value" === i2 && "defaultValue" in t2 && null == l2 || Q && "children" === i2 && "noscript" === e2 || "class" === i2 || "className" === i2)) {
4684
- var c2 = i2.toLowerCase();
4685
- "defaultValue" === i2 && "value" in t2 && null == t2.value ? i2 = "value" : "download" === i2 && true === l2 ? l2 = "" : "translate" === c2 && "no" === l2 ? l2 = false : "o" === c2[0] && "n" === c2[1] ? "ondoubleclick" === c2 ? i2 = "ondblclick" : "onchange" !== c2 || "input" !== e2 && "textarea" !== e2 || X(t2.type) ? "onfocus" === c2 ? i2 = "onfocusin" : "onblur" === c2 ? i2 = "onfocusout" : J.test(i2) && (i2 = c2) : c2 = i2 = "oninput" : o2 && G.test(i2) ? i2 = i2.replace(K, "-$&").toLowerCase() : null === l2 && (l2 = void 0), "oninput" === c2 && u2[i2 = c2] && (i2 = "oninputCapture"), u2[i2] = l2;
4686
- }
4687
- }
4688
- "select" == e2 && u2.multiple && Array.isArray(u2.value) && (u2.value = H$1(t2.children).forEach(function(n4) {
4689
- n4.props.selected = -1 != u2.value.indexOf(n4.props.value);
4690
- })), "select" == e2 && null != u2.defaultValue && (u2.value = H$1(t2.children).forEach(function(n4) {
4691
- n4.props.selected = u2.multiple ? -1 != u2.defaultValue.indexOf(n4.props.value) : u2.defaultValue == n4.props.value;
4692
- })), t2.class && !t2.className ? (u2.class = t2.class, Object.defineProperty(u2, "className", cn)) : (t2.className && !t2.class || t2.class && t2.className) && (u2.class = u2.className = t2.className), n3.props = u2;
4693
- })(n2), n2.$$typeof = q, fn && fn(n2);
4694
- };
4695
- var an = l$1.__r;
4696
- l$1.__r = function(n2) {
4697
- an && an(n2), n2.__c;
4698
- };
4699
- var sn = l$1.diffed;
4700
- l$1.diffed = function(n2) {
4701
- sn && sn(n2);
4702
- var t2 = n2.props, e2 = n2.__e;
4703
- null != e2 && "textarea" === n2.type && "value" in t2 && t2.value !== e2.value && (e2.value = null == t2.value ? "" : t2.value);
4704
- };
4705
4713
  const warn = (i18n, code, msg, rest) => {
4706
4714
  var _a, _b, _c, _d;
4707
4715
  const args = [msg, __spreadValues({
@@ -4829,7 +4837,7 @@ class ReportNamespaces {
4829
4837
  }
4830
4838
  }
4831
4839
  const usePrevious = (value, ignore) => {
4832
- const ref = A();
4840
+ const ref = A$1();
4833
4841
  y(() => {
4834
4842
  ref.current = value;
4835
4843
  }, [value, ignore]);
@@ -4878,7 +4886,7 @@ const useTranslation = (ns, props = {}) => {
4878
4886
  let joinedNS = namespaces.join();
4879
4887
  if (props.lng) joinedNS = `${props.lng}${joinedNS}`;
4880
4888
  const previousJoinedNS = usePrevious(joinedNS);
4881
- const isMounted = A(true);
4889
+ const isMounted = A$1(true);
4882
4890
  y(() => {
4883
4891
  const {
4884
4892
  bindI18n,
@@ -5884,8 +5892,8 @@ const useAPIService = (config) => {
5884
5892
  const FallbackUI = ({ error, errorInfo, retryCount, maxRetries, onRetry, onReset, showDetails = false }) => {
5885
5893
  const canRetry = retryCount < maxRetries;
5886
5894
  const isMaxRetriesReached = retryCount >= maxRetries;
5887
- return /* @__PURE__ */ u$1("div", { className: "fixed bottom-5 right-5 bg-white border border-red-200 rounded-lg shadow-lg p-4 max-w-sm z-[1000]", children: /* @__PURE__ */ u$1("div", { className: "flex items-start", children: [
5888
- /* @__PURE__ */ u$1("div", { className: "flex-shrink-0", children: /* @__PURE__ */ u$1("svg", { className: "h-5 w-5 text-red-400", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ u$1(
5895
+ return /* @__PURE__ */ u("div", { className: "fixed bottom-5 right-5 bg-white border border-red-200 rounded-lg shadow-lg p-4 max-w-sm z-[1000]", children: /* @__PURE__ */ u("div", { className: "flex items-start", children: [
5896
+ /* @__PURE__ */ u("div", { className: "flex-shrink-0", children: /* @__PURE__ */ u("svg", { className: "h-5 w-5 text-red-400", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ u(
5889
5897
  "path",
5890
5898
  {
5891
5899
  fillRule: "evenodd",
@@ -5893,30 +5901,30 @@ const FallbackUI = ({ error, errorInfo, retryCount, maxRetries, onRetry, onReset
5893
5901
  clipRule: "evenodd"
5894
5902
  }
5895
5903
  ) }) }),
5896
- /* @__PURE__ */ u$1("div", { className: "ml-3 flex-1", children: [
5897
- /* @__PURE__ */ u$1("h3", { className: "text-sm font-medium text-red-800", children: isMaxRetriesReached ? "Widget Error" : "Temporary Error" }),
5898
- /* @__PURE__ */ u$1("div", { className: "mt-2 text-sm text-red-700", children: [
5899
- /* @__PURE__ */ u$1("p", { children: isMaxRetriesReached ? "The widget encountered an error and couldn't recover automatically." : "The widget encountered an error but will retry automatically." }),
5900
- retryCount > 0 && /* @__PURE__ */ u$1("p", { className: "mt-1 text-xs text-red-600", children: [
5904
+ /* @__PURE__ */ u("div", { className: "ml-3 flex-1", children: [
5905
+ /* @__PURE__ */ u("h3", { className: "text-sm font-medium text-red-800", children: isMaxRetriesReached ? "Widget Error" : "Temporary Error" }),
5906
+ /* @__PURE__ */ u("div", { className: "mt-2 text-sm text-red-700", children: [
5907
+ /* @__PURE__ */ u("p", { children: isMaxRetriesReached ? "The widget encountered an error and couldn't recover automatically." : "The widget encountered an error but will retry automatically." }),
5908
+ retryCount > 0 && /* @__PURE__ */ u("p", { className: "mt-1 text-xs text-red-600", children: [
5901
5909
  "Retry attempt: ",
5902
5910
  retryCount,
5903
5911
  "/",
5904
5912
  maxRetries
5905
5913
  ] })
5906
5914
  ] }),
5907
- showDetails && error && /* @__PURE__ */ u$1("details", { className: "mt-2", children: [
5908
- /* @__PURE__ */ u$1("summary", { className: "text-xs text-red-600 cursor-pointer hover:text-red-800", children: "Show technical details" }),
5909
- /* @__PURE__ */ u$1("div", { className: "mt-1 text-xs text-red-600 font-mono bg-red-50 p-2 rounded border", children: [
5910
- /* @__PURE__ */ u$1("p", { className: "font-semibold", children: "Error:" }),
5911
- /* @__PURE__ */ u$1("p", { className: "mb-2", children: error.message }),
5912
- (errorInfo == null ? void 0 : errorInfo.componentStack) && /* @__PURE__ */ u$1(k$1, { children: [
5913
- /* @__PURE__ */ u$1("p", { className: "font-semibold", children: "Component Stack:" }),
5914
- /* @__PURE__ */ u$1("pre", { className: "whitespace-pre-wrap text-xs", children: errorInfo.componentStack })
5915
+ showDetails && error && /* @__PURE__ */ u("details", { className: "mt-2", children: [
5916
+ /* @__PURE__ */ u("summary", { className: "text-xs text-red-600 cursor-pointer hover:text-red-800", children: "Show technical details" }),
5917
+ /* @__PURE__ */ u("div", { className: "mt-1 text-xs text-red-600 font-mono bg-red-50 p-2 rounded border", children: [
5918
+ /* @__PURE__ */ u("p", { className: "font-semibold", children: "Error:" }),
5919
+ /* @__PURE__ */ u("p", { className: "mb-2", children: error.message }),
5920
+ (errorInfo == null ? void 0 : errorInfo.componentStack) && /* @__PURE__ */ u(k$1, { children: [
5921
+ /* @__PURE__ */ u("p", { className: "font-semibold", children: "Component Stack:" }),
5922
+ /* @__PURE__ */ u("pre", { className: "whitespace-pre-wrap text-xs", children: errorInfo.componentStack })
5915
5923
  ] })
5916
5924
  ] })
5917
5925
  ] }),
5918
- /* @__PURE__ */ u$1("div", { className: "mt-3 flex space-x-2", children: [
5919
- canRetry && /* @__PURE__ */ u$1(
5926
+ /* @__PURE__ */ u("div", { className: "mt-3 flex space-x-2", children: [
5927
+ canRetry && /* @__PURE__ */ u(
5920
5928
  "button",
5921
5929
  {
5922
5930
  type: "button",
@@ -5925,7 +5933,7 @@ const FallbackUI = ({ error, errorInfo, retryCount, maxRetries, onRetry, onReset
5925
5933
  children: "Retry Now"
5926
5934
  }
5927
5935
  ),
5928
- /* @__PURE__ */ u$1(
5936
+ /* @__PURE__ */ u(
5929
5937
  "button",
5930
5938
  {
5931
5939
  type: "button",
@@ -6014,7 +6022,7 @@ class WidgetErrorBoundary extends x$1 {
6014
6022
  if (this.props.fallback) {
6015
6023
  return this.props.fallback;
6016
6024
  }
6017
- return /* @__PURE__ */ u$1(
6025
+ return /* @__PURE__ */ u(
6018
6026
  FallbackUI,
6019
6027
  {
6020
6028
  error: this.state.error,
@@ -6162,8 +6170,8 @@ const handleUserValidationError = (error, storageService) => {
6162
6170
  };
6163
6171
  const usePersistence = ({ state, dispatch, storageService, orgId, widgetId }) => {
6164
6172
  const storageKey = `analytick-widget-${orgId}-${widgetId}`;
6165
- const stateRef = A(state);
6166
- const dispatchRef = A(dispatch);
6173
+ const stateRef = A$1(state);
6174
+ const dispatchRef = A$1(dispatch);
6167
6175
  stateRef.current = state;
6168
6176
  dispatchRef.current = dispatch;
6169
6177
  const loadPersistedState = q$1(() => __async(null, null, function* () {
@@ -6287,9 +6295,9 @@ const createPersistenceService = (orgId, widgetId) => {
6287
6295
  return createLocalStorageService(config);
6288
6296
  };
6289
6297
  const ChatIcon = () => {
6290
- return /* @__PURE__ */ u$1("svg", { width: "29", height: "31", viewBox: "0 0 29 31", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "w-7 h-8", role: "img", "aria-label": "Chat", children: [
6291
- /* @__PURE__ */ u$1("title", { children: "Chat" }),
6292
- /* @__PURE__ */ u$1(
6298
+ return /* @__PURE__ */ u("svg", { width: "29", height: "31", viewBox: "0 0 29 31", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "w-7 h-8", role: "img", "aria-label": "Chat", children: [
6299
+ /* @__PURE__ */ u("title", { children: "Chat" }),
6300
+ /* @__PURE__ */ u(
6293
6301
  "path",
6294
6302
  {
6295
6303
  d: "M28.093 31C28.093 31 23.3641 29.2031 19.5382 27.7637H3.44856C1.54359 27.7637 0 26.182 0 24.232V3.53064C0 1.58163 1.54359 0 3.44856 0H24.6424C26.5474 0 28.092 1.58163 28.092 3.53064V21.36L28.093 21.359V31ZM23.9407 19.392C23.6104 18.9976 23.0288 18.9526 22.6444 19.2899C22.6143 19.3159 19.6192 21.8886 14.0445 21.8886C8.54082 21.8886 5.49968 19.334 5.44462 19.2879C5.05922 18.9516 4.48062 18.9986 4.15028 19.392C3.81894 19.7874 3.86499 20.381 4.25039 20.7204C4.39353 20.8445 7.80005 23.7715 14.0445 23.7715C20.2919 23.7715 23.6995 20.8445 23.8406 20.7204C24.226 20.381 24.2721 19.7874 23.9407 19.392Z",
@@ -6299,15 +6307,15 @@ const ChatIcon = () => {
6299
6307
  ] });
6300
6308
  };
6301
6309
  const CloseIcon = () => {
6302
- return /* @__PURE__ */ u$1("svg", { width: "16", height: "10", viewBox: "0 0 16 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "w-4 h-2.5", role: "img", "aria-label": "Close", children: [
6303
- /* @__PURE__ */ u$1("title", { children: "Close" }),
6304
- /* @__PURE__ */ u$1("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 1.79401L1.79401 0L8 6.20599L14.206 0L16 1.79401L8 9.79401L0 1.79401Z", fill: "white" })
6310
+ return /* @__PURE__ */ u("svg", { width: "16", height: "10", viewBox: "0 0 16 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "w-4 h-2.5", role: "img", "aria-label": "Close", children: [
6311
+ /* @__PURE__ */ u("title", { children: "Close" }),
6312
+ /* @__PURE__ */ u("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 1.79401L1.79401 0L8 6.20599L14.206 0L16 1.79401L8 9.79401L0 1.79401Z", fill: "white" })
6305
6313
  ] });
6306
6314
  };
6307
6315
  const NotificationBadge$1 = ({ count, isRTL }) => {
6308
6316
  const positionClasses = isRTL ? "-top-1 -left-1" : "-top-1 -right-1";
6309
6317
  const displayCount = count > 9 ? "9+" : count.toString();
6310
- return /* @__PURE__ */ u$1("output", { className: `absolute ${positionClasses} bg-red-500 text-white rounded-full w-5 h-5 text-xs flex items-center justify-center font-bold min-w-5`, "aria-label": `${count} unread messages`, children: displayCount });
6318
+ return /* @__PURE__ */ u("output", { className: `absolute ${positionClasses} bg-red-500 text-white rounded-full w-5 h-5 text-xs flex items-center justify-center font-bold min-w-5`, "aria-label": `${count} unread messages`, children: displayCount });
6311
6319
  };
6312
6320
  const TriggerButton = () => {
6313
6321
  const { state, dispatch } = useWidgetContext();
@@ -6334,7 +6342,7 @@ const TriggerButton = () => {
6334
6342
  }
6335
6343
  };
6336
6344
  const positionClasses = getPositionClasses();
6337
- return /* @__PURE__ */ u$1(
6345
+ return /* @__PURE__ */ u(
6338
6346
  "button",
6339
6347
  {
6340
6348
  type: "button",
@@ -6364,8 +6372,8 @@ const TriggerButton = () => {
6364
6372
  },
6365
6373
  "aria-label": state.isOpen ? "Close chat" : "Open chat",
6366
6374
  children: [
6367
- state.isOpen ? /* @__PURE__ */ u$1(CloseIcon, {}) : /* @__PURE__ */ u$1(ChatIcon, {}),
6368
- state.unreadCount > 0 && !state.isOpen && /* @__PURE__ */ u$1(NotificationBadge$1, { count: state.unreadCount, isRTL })
6375
+ state.isOpen ? /* @__PURE__ */ u(CloseIcon, {}) : /* @__PURE__ */ u(ChatIcon, {}),
6376
+ state.unreadCount > 0 && !state.isOpen && /* @__PURE__ */ u(NotificationBadge$1, { count: state.unreadCount, isRTL })
6369
6377
  ]
6370
6378
  }
6371
6379
  );
@@ -6373,7 +6381,7 @@ const TriggerButton = () => {
6373
6381
  const useChatMessaging = () => {
6374
6382
  const { state, dispatch } = useWidgetContext();
6375
6383
  const { sendMessage, isConnected } = useStompConnectionContext();
6376
- const writingTimeoutRef = A(null);
6384
+ const writingTimeoutRef = A$1(null);
6377
6385
  const handleSendMessage = q$1(
6378
6386
  (messageContent) => __async(null, null, function* () {
6379
6387
  if (!state.user || !state.widgetConfig || !state.channelId || !isConnected) {
@@ -6443,7 +6451,7 @@ const useChatMessaging = () => {
6443
6451
  };
6444
6452
  const MessageInput = ({ onSendMessage, disabled = false, placeholder, className = "", isWriting = false }) => {
6445
6453
  const [message, setMessage] = d("");
6446
- const textareaRef = A(null);
6454
+ const textareaRef = A$1(null);
6447
6455
  const { t: t2, isRTL } = useWidgetTranslation();
6448
6456
  const handleSubmit = (e2) => {
6449
6457
  e2.preventDefault();
@@ -6463,8 +6471,8 @@ const MessageInput = ({ onSendMessage, disabled = false, placeholder, className
6463
6471
  handleSubmit(e2);
6464
6472
  }
6465
6473
  };
6466
- return /* @__PURE__ */ u$1("div", { className: `border-t border-gray-200 p-4 max-sm:p-3 ${className}`, children: /* @__PURE__ */ u$1("form", { onSubmit: handleSubmit, className: "flex items-start gap-2 max-sm:gap-1.5", children: [
6467
- /* @__PURE__ */ u$1("div", { className: "flex-1", children: /* @__PURE__ */ u$1(
6474
+ return /* @__PURE__ */ u("div", { className: `border-t border-gray-200 p-4 max-sm:p-3 ${className}`, children: /* @__PURE__ */ u("form", { onSubmit: handleSubmit, className: "flex items-start gap-2 max-sm:gap-1.5", children: [
6475
+ /* @__PURE__ */ u("div", { className: "flex-1", children: /* @__PURE__ */ u(
6468
6476
  "textarea",
6469
6477
  {
6470
6478
  ref: textareaRef,
@@ -6495,7 +6503,7 @@ const MessageInput = ({ onSendMessage, disabled = false, placeholder, className
6495
6503
  }
6496
6504
  }
6497
6505
  ) }),
6498
- /* @__PURE__ */ u$1(
6506
+ /* @__PURE__ */ u(
6499
6507
  "button",
6500
6508
  {
6501
6509
  type: "submit",
@@ -6524,7 +6532,7 @@ const MessageInput = ({ onSendMessage, disabled = false, placeholder, className
6524
6532
  }
6525
6533
  },
6526
6534
  "aria-label": t2("chat.input.send", "Send message"),
6527
- children: /* @__PURE__ */ u$1("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", className: `max-sm:w-5 max-sm:h-5 ${isRTL ? "rotate-180" : ""}`, "aria-hidden": "true", children: /* @__PURE__ */ u$1("path", { d: "M2.01 21L23 12 2.01 3 2 10l15 2-15 2z", fill: "currentColor" }) })
6535
+ children: /* @__PURE__ */ u("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", className: `max-sm:w-5 max-sm:h-5 ${isRTL ? "rotate-180" : ""}`, "aria-hidden": "true", children: /* @__PURE__ */ u("path", { d: "M2.01 21L23 12 2.01 3 2 10l15 2-15 2z", fill: "currentColor" }) })
6528
6536
  }
6529
6537
  )
6530
6538
  ] }) });
@@ -6571,8 +6579,8 @@ const ButtonMessage = ({ content, className = "" }) => {
6571
6579
  const onButtonClick = (buttonId, payload) => {
6572
6580
  handleButtonClick(buttonId, payload);
6573
6581
  };
6574
- return /* @__PURE__ */ u$1("div", { className: `button-message ${className}`, children: [
6575
- content.text && /* @__PURE__ */ u$1(
6582
+ return /* @__PURE__ */ u("div", { className: `button-message ${className}`, children: [
6583
+ content.text && /* @__PURE__ */ u(
6576
6584
  "p",
6577
6585
  {
6578
6586
  className: "leading-relaxed mb-3",
@@ -6583,7 +6591,7 @@ const ButtonMessage = ({ content, className = "" }) => {
6583
6591
  children: content.text
6584
6592
  }
6585
6593
  ),
6586
- /* @__PURE__ */ u$1("div", { className: "space-y-2", children: content.buttons.map((button) => /* @__PURE__ */ u$1(
6594
+ /* @__PURE__ */ u("div", { className: "space-y-2", children: content.buttons.map((button) => /* @__PURE__ */ u(
6587
6595
  "button",
6588
6596
  {
6589
6597
  type: "button",
@@ -6624,8 +6632,8 @@ const DocumentMessage = ({ content, className = "" }) => {
6624
6632
  const handleDownloadClick = () => {
6625
6633
  handleDownload(content.url, content.filename);
6626
6634
  };
6627
- return /* @__PURE__ */ u$1("div", { className: `document-message ${className}`, children: /* @__PURE__ */ u$1("div", { className: "bg-gray-50 border border-gray-200 rounded-lg p-4 max-w-sm", children: /* @__PURE__ */ u$1("div", { className: "flex items-center space-x-3", children: [
6628
- /* @__PURE__ */ u$1("div", { className: "flex-shrink-0", children: /* @__PURE__ */ u$1("div", { className: "w-10 h-10 bg-blue-100 rounded-lg flex items-center justify-center", children: /* @__PURE__ */ u$1("svg", { className: "w-5 h-5 text-blue-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u$1(
6635
+ return /* @__PURE__ */ u("div", { className: `document-message ${className}`, children: /* @__PURE__ */ u("div", { className: "bg-gray-50 border border-gray-200 rounded-lg p-4 max-w-sm", children: /* @__PURE__ */ u("div", { className: "flex items-center space-x-3", children: [
6636
+ /* @__PURE__ */ u("div", { className: "flex-shrink-0", children: /* @__PURE__ */ u("div", { className: "w-10 h-10 bg-blue-100 rounded-lg flex items-center justify-center", children: /* @__PURE__ */ u("svg", { className: "w-5 h-5 text-blue-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u(
6629
6637
  "path",
6630
6638
  {
6631
6639
  strokeLinecap: "round",
@@ -6634,8 +6642,8 @@ const DocumentMessage = ({ content, className = "" }) => {
6634
6642
  d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
6635
6643
  }
6636
6644
  ) }) }) }),
6637
- /* @__PURE__ */ u$1("div", { className: "flex-1 min-w-0", children: [
6638
- /* @__PURE__ */ u$1(
6645
+ /* @__PURE__ */ u("div", { className: "flex-1 min-w-0", children: [
6646
+ /* @__PURE__ */ u(
6639
6647
  "p",
6640
6648
  {
6641
6649
  className: "font-medium text-gray-900 truncate",
@@ -6646,7 +6654,7 @@ const DocumentMessage = ({ content, className = "" }) => {
6646
6654
  children: content.filename
6647
6655
  }
6648
6656
  ),
6649
- /* @__PURE__ */ u$1(
6657
+ /* @__PURE__ */ u(
6650
6658
  "div",
6651
6659
  {
6652
6660
  className: "flex items-center space-x-2 text-gray-500",
@@ -6655,14 +6663,14 @@ const DocumentMessage = ({ content, className = "" }) => {
6655
6663
  fontSize: "calc(var(--widget-font-size, 14px) * 0.8)"
6656
6664
  },
6657
6665
  children: [
6658
- /* @__PURE__ */ u$1("span", { children: getFileExtension(content.filename) }),
6659
- /* @__PURE__ */ u$1("span", { children: "•" }),
6660
- /* @__PURE__ */ u$1("span", { children: formatFileSize(content.size) })
6666
+ /* @__PURE__ */ u("span", { children: getFileExtension(content.filename) }),
6667
+ /* @__PURE__ */ u("span", { children: "•" }),
6668
+ /* @__PURE__ */ u("span", { children: formatFileSize(content.size) })
6661
6669
  ]
6662
6670
  }
6663
6671
  )
6664
6672
  ] }),
6665
- /* @__PURE__ */ u$1("button", { type: "button", onClick: handleDownloadClick, className: "flex-shrink-0 p-2 text-blue-600 hover:bg-blue-50 rounded-lg transition-colors", title: "Download file", children: /* @__PURE__ */ u$1("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u$1(
6673
+ /* @__PURE__ */ u("button", { type: "button", onClick: handleDownloadClick, className: "flex-shrink-0 p-2 text-blue-600 hover:bg-blue-50 rounded-lg transition-colors", title: "Download file", children: /* @__PURE__ */ u("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u(
6666
6674
  "path",
6667
6675
  {
6668
6676
  strokeLinecap: "round",
@@ -6687,9 +6695,9 @@ const ImageMessage = ({ content, className = "" }) => {
6687
6695
  window.open(content.url, "_blank");
6688
6696
  };
6689
6697
  if (hasError) {
6690
- return /* @__PURE__ */ u$1("div", { className: `image-message ${className}`, children: [
6691
- /* @__PURE__ */ u$1("div", { className: "bg-gray-100 border border-gray-200 rounded-lg p-4 text-center", children: /* @__PURE__ */ u$1("div", { className: "text-gray-500 text-sm", children: [
6692
- /* @__PURE__ */ u$1("svg", { className: "w-8 h-8 mx-auto mb-2", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u$1(
6698
+ return /* @__PURE__ */ u("div", { className: `image-message ${className}`, children: [
6699
+ /* @__PURE__ */ u("div", { className: "bg-gray-100 border border-gray-200 rounded-lg p-4 text-center", children: /* @__PURE__ */ u("div", { className: "text-gray-500 text-sm", children: [
6700
+ /* @__PURE__ */ u("svg", { className: "w-8 h-8 mx-auto mb-2", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u(
6693
6701
  "path",
6694
6702
  {
6695
6703
  strokeLinecap: "round",
@@ -6698,15 +6706,15 @@ const ImageMessage = ({ content, className = "" }) => {
6698
6706
  d: "M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"
6699
6707
  }
6700
6708
  ) }),
6701
- /* @__PURE__ */ u$1("p", { children: "Image could not be loaded" })
6709
+ /* @__PURE__ */ u("p", { children: "Image could not be loaded" })
6702
6710
  ] }) }),
6703
- content.caption && /* @__PURE__ */ u$1("p", { className: "text-sm text-gray-600 mt-2", children: content.caption })
6711
+ content.caption && /* @__PURE__ */ u("p", { className: "text-sm text-gray-600 mt-2", children: content.caption })
6704
6712
  ] });
6705
6713
  }
6706
- return /* @__PURE__ */ u$1("div", { className: `image-message ${className}`, children: [
6707
- /* @__PURE__ */ u$1("div", { className: "relative max-w-sm", children: [
6708
- isLoading && /* @__PURE__ */ u$1("div", { className: "absolute inset-0 bg-gray-100 rounded-lg flex items-center justify-center", children: /* @__PURE__ */ u$1("div", { className: "animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600" }) }),
6709
- /* @__PURE__ */ u$1(
6714
+ return /* @__PURE__ */ u("div", { className: `image-message ${className}`, children: [
6715
+ /* @__PURE__ */ u("div", { className: "relative max-w-sm", children: [
6716
+ isLoading && /* @__PURE__ */ u("div", { className: "absolute inset-0 bg-gray-100 rounded-lg flex items-center justify-center", children: /* @__PURE__ */ u("div", { className: "animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600" }) }),
6717
+ /* @__PURE__ */ u(
6710
6718
  "button",
6711
6719
  {
6712
6720
  type: "button",
@@ -6714,11 +6722,11 @@ const ImageMessage = ({ content, className = "" }) => {
6714
6722
  className: "w-full h-auto rounded-lg cursor-pointer hover:opacity-90 transition-opacity border-none bg-transparent p-0",
6715
6723
  "aria-label": `Open image in new tab: ${content.caption || "Shared image"}`,
6716
6724
  style: { display: isLoading ? "none" : "block" },
6717
- children: /* @__PURE__ */ u$1("img", { src: content.url, alt: content.caption || "Shared image", className: "w-full h-auto rounded-lg", onLoad: handleImageLoad, onError: handleImageError })
6725
+ children: /* @__PURE__ */ u("img", { src: content.url, alt: content.caption || "Shared image", className: "w-full h-auto rounded-lg", onLoad: handleImageLoad, onError: handleImageError })
6718
6726
  }
6719
6727
  )
6720
6728
  ] }),
6721
- content.caption && /* @__PURE__ */ u$1("p", { className: "text-sm text-gray-600 mt-2", children: content.caption })
6729
+ content.caption && /* @__PURE__ */ u("p", { className: "text-sm text-gray-600 mt-2", children: content.caption })
6722
6730
  ] });
6723
6731
  };
6724
6732
  const SelectMessage = ({ content, className = "" }) => {
@@ -6728,8 +6736,8 @@ const SelectMessage = ({ content, className = "" }) => {
6728
6736
  setSelectedOption(optionId);
6729
6737
  handleSelectOption(optionId, title);
6730
6738
  };
6731
- return /* @__PURE__ */ u$1("div", { className: `select-message ${className}`, children: [
6732
- content.text && /* @__PURE__ */ u$1(
6739
+ return /* @__PURE__ */ u("div", { className: `select-message ${className}`, children: [
6740
+ content.text && /* @__PURE__ */ u(
6733
6741
  "p",
6734
6742
  {
6735
6743
  className: "leading-relaxed mb-3",
@@ -6740,7 +6748,7 @@ const SelectMessage = ({ content, className = "" }) => {
6740
6748
  children: content.text
6741
6749
  }
6742
6750
  ),
6743
- /* @__PURE__ */ u$1("div", { className: "space-y-2", children: content.options.map((option) => /* @__PURE__ */ u$1(
6751
+ /* @__PURE__ */ u("div", { className: "space-y-2", children: content.options.map((option) => /* @__PURE__ */ u(
6744
6752
  "button",
6745
6753
  {
6746
6754
  type: "button",
@@ -6751,17 +6759,17 @@ const SelectMessage = ({ content, className = "" }) => {
6751
6759
  focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2
6752
6760
  ${selectedOption === option.id ? "bg-blue-50 border-blue-500 text-blue-700" : selectedOption !== null ? "bg-gray-50 border-gray-200 text-gray-400 cursor-not-allowed" : "bg-white border-gray-200 hover:bg-gray-50 hover:border-gray-300"}
6753
6761
  `,
6754
- children: /* @__PURE__ */ u$1("div", { className: "flex items-start justify-between", children: [
6755
- /* @__PURE__ */ u$1("div", { className: "flex-1", children: [
6756
- /* @__PURE__ */ u$1("p", { className: "text-sm font-medium", children: option.title }),
6757
- option.description && /* @__PURE__ */ u$1("p", { className: "text-xs text-gray-500 mt-1", children: option.description })
6762
+ children: /* @__PURE__ */ u("div", { className: "flex items-start justify-between", children: [
6763
+ /* @__PURE__ */ u("div", { className: "flex-1", children: [
6764
+ /* @__PURE__ */ u("p", { className: "text-sm font-medium", children: option.title }),
6765
+ option.description && /* @__PURE__ */ u("p", { className: "text-xs text-gray-500 mt-1", children: option.description })
6758
6766
  ] }),
6759
- selectedOption === option.id && /* @__PURE__ */ u$1("div", { className: "flex-shrink-0 ml-2", children: /* @__PURE__ */ u$1("svg", { className: "w-4 h-4 text-blue-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u$1("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }) })
6767
+ selectedOption === option.id && /* @__PURE__ */ u("div", { className: "flex-shrink-0 ml-2", children: /* @__PURE__ */ u("svg", { className: "w-4 h-4 text-blue-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }) })
6760
6768
  ] })
6761
6769
  },
6762
6770
  option.id
6763
6771
  )) }),
6764
- selectedOption && /* @__PURE__ */ u$1("p", { className: "text-xs text-gray-500 mt-2", children: "Option selected. Your response has been sent." })
6772
+ selectedOption && /* @__PURE__ */ u("p", { className: "text-xs text-gray-500 mt-2", children: "Option selected. Your response has been sent." })
6765
6773
  ] });
6766
6774
  };
6767
6775
  const processBoldText = (line) => {
@@ -6850,7 +6858,7 @@ const TextMessage = ({ content, className = "" }) => {
6850
6858
  const parsedElements = T$1(() => {
6851
6859
  return parseSimpleMarkdown(content.body);
6852
6860
  }, [content.body]);
6853
- return /* @__PURE__ */ u$1("div", { className: `text-message ${className}`, children: /* @__PURE__ */ u$1(
6861
+ return /* @__PURE__ */ u("div", { className: `text-message ${className}`, children: /* @__PURE__ */ u(
6854
6862
  "div",
6855
6863
  {
6856
6864
  className: "leading-relaxed break-words",
@@ -6861,17 +6869,17 @@ const TextMessage = ({ content, className = "" }) => {
6861
6869
  children: parsedElements.map((element) => {
6862
6870
  switch (element.type) {
6863
6871
  case "bold":
6864
- return /* @__PURE__ */ u$1("strong", { className: "font-semibold", style: { color: "inherit" }, children: element.content }, element.id);
6872
+ return /* @__PURE__ */ u("strong", { className: "font-semibold", style: { color: "inherit" }, children: element.content }, element.id);
6865
6873
  case "italic":
6866
- return /* @__PURE__ */ u$1("em", { className: "italic", style: { color: "inherit" }, children: element.content }, element.id);
6874
+ return /* @__PURE__ */ u("em", { className: "italic", style: { color: "inherit" }, children: element.content }, element.id);
6867
6875
  case "code":
6868
- return /* @__PURE__ */ u$1("code", { className: "bg-widget-gray-100 px-1 py-0.5 rounded text-xs", style: { color: "inherit" }, children: element.content }, element.id);
6876
+ return /* @__PURE__ */ u("code", { className: "bg-widget-gray-100 px-1 py-0.5 rounded text-xs", style: { color: "inherit" }, children: element.content }, element.id);
6869
6877
  case "link":
6870
- return /* @__PURE__ */ u$1("a", { href: element.href, target: "_blank", rel: "noopener noreferrer", className: "text-widget-primary no-underline hover:underline", children: element.content }, element.id);
6878
+ return /* @__PURE__ */ u("a", { href: element.href, target: "_blank", rel: "noopener noreferrer", className: "text-widget-primary no-underline hover:underline", children: element.content }, element.id);
6871
6879
  case "br":
6872
- return /* @__PURE__ */ u$1("br", {}, element.id);
6880
+ return /* @__PURE__ */ u("br", {}, element.id);
6873
6881
  default:
6874
- return /* @__PURE__ */ u$1("span", { style: { color: "inherit" }, children: element.content }, element.id);
6882
+ return /* @__PURE__ */ u("span", { style: { color: "inherit" }, children: element.content }, element.id);
6875
6883
  }
6876
6884
  })
6877
6885
  }
@@ -6881,14 +6889,14 @@ const MessageStatusIndicator = ({ status }) => {
6881
6889
  const getStatusIcon = () => {
6882
6890
  switch (status) {
6883
6891
  case "SENT":
6884
- return /* @__PURE__ */ u$1("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", className: "animate-spin", "aria-hidden": "true", children: [
6885
- /* @__PURE__ */ u$1("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeDasharray: "31.416", strokeDashoffset: "31.416", className: "opacity-25" }),
6886
- /* @__PURE__ */ u$1("path", { d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z", fill: "currentColor" })
6892
+ return /* @__PURE__ */ u("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", className: "animate-spin", "aria-hidden": "true", children: [
6893
+ /* @__PURE__ */ u("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeDasharray: "31.416", strokeDashoffset: "31.416", className: "opacity-25" }),
6894
+ /* @__PURE__ */ u("path", { d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z", fill: "currentColor" })
6887
6895
  ] });
6888
6896
  case "DELIVERED":
6889
- return /* @__PURE__ */ u$1("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ u$1("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z", fill: "currentColor" }) });
6897
+ return /* @__PURE__ */ u("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ u("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z", fill: "currentColor" }) });
6890
6898
  case "READ":
6891
- return /* @__PURE__ */ u$1("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ u$1("path", { d: "M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z", fill: "currentColor" }) });
6899
+ return /* @__PURE__ */ u("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ u("path", { d: "M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z", fill: "currentColor" }) });
6892
6900
  default:
6893
6901
  return null;
6894
6902
  }
@@ -6905,9 +6913,9 @@ const MessageStatusIndicator = ({ status }) => {
6905
6913
  return "";
6906
6914
  }
6907
6915
  };
6908
- return /* @__PURE__ */ u$1("div", { className: "flex items-center gap-1 text-xs opacity-70", children: [
6916
+ return /* @__PURE__ */ u("div", { className: "flex items-center gap-1 text-xs opacity-70", children: [
6909
6917
  getStatusIcon(),
6910
- /* @__PURE__ */ u$1("span", { className: "sr-only", children: getStatusText() })
6918
+ /* @__PURE__ */ u("span", { className: "sr-only", children: getStatusText() })
6911
6919
  ] });
6912
6920
  };
6913
6921
  const MessageBubble = ({ message, isRTL }) => {
@@ -6916,27 +6924,27 @@ const MessageBubble = ({ message, isRTL }) => {
6916
6924
  const renderMessageContent = () => {
6917
6925
  switch (message.content.type) {
6918
6926
  case "TEXT":
6919
- return /* @__PURE__ */ u$1(TextMessage, { content: message.content });
6927
+ return /* @__PURE__ */ u(TextMessage, { content: message.content });
6920
6928
  case "IMAGE":
6921
- return /* @__PURE__ */ u$1(ImageMessage, { content: message.content });
6929
+ return /* @__PURE__ */ u(ImageMessage, { content: message.content });
6922
6930
  case "DOCUMENT":
6923
- return /* @__PURE__ */ u$1(DocumentMessage, { content: message.content });
6931
+ return /* @__PURE__ */ u(DocumentMessage, { content: message.content });
6924
6932
  case "BUTTON":
6925
- return /* @__PURE__ */ u$1(ButtonMessage, { content: message.content });
6933
+ return /* @__PURE__ */ u(ButtonMessage, { content: message.content });
6926
6934
  case "SELECT":
6927
- return /* @__PURE__ */ u$1(SelectMessage, { content: message.content });
6935
+ return /* @__PURE__ */ u(SelectMessage, { content: message.content });
6928
6936
  case "ARTICLE":
6929
6937
  case "CARDS":
6930
6938
  case "FORM":
6931
- return /* @__PURE__ */ u$1("p", { className: "text-sm leading-relaxed italic text-gray-500", children: [
6939
+ return /* @__PURE__ */ u("p", { className: "text-sm leading-relaxed italic text-gray-500", children: [
6932
6940
  message.content.type,
6933
6941
  " message (not yet implemented)"
6934
6942
  ] });
6935
6943
  default:
6936
- return /* @__PURE__ */ u$1("p", { className: "text-sm leading-relaxed italic text-gray-500", children: "Unknown message type" });
6944
+ return /* @__PURE__ */ u("p", { className: "text-sm leading-relaxed italic text-gray-500", children: "Unknown message type" });
6937
6945
  }
6938
6946
  };
6939
- return /* @__PURE__ */ u$1("div", { className: `flex items-center gap-2 ${shouldAlignRight ? isRTL ? "justify-start" : "justify-end" : isRTL ? "justify-end" : "justify-start"}`, children: /* @__PURE__ */ u$1(
6947
+ return /* @__PURE__ */ u("div", { className: `flex items-center gap-2 ${shouldAlignRight ? isRTL ? "justify-start" : "justify-end" : isRTL ? "justify-end" : "justify-start"}`, children: /* @__PURE__ */ u(
6940
6948
  "div",
6941
6949
  {
6942
6950
  className: `max-w-xs lg:max-w-sm px-4 py-2 rounded-lg ${isRTL ? shouldAlignRight ? "rounded-bl-sm" : "rounded-br-sm" : shouldAlignRight ? "rounded-br-sm" : "rounded-bl-sm"}`,
@@ -6946,7 +6954,7 @@ const MessageBubble = ({ message, isRTL }) => {
6946
6954
  },
6947
6955
  children: [
6948
6956
  renderMessageContent(),
6949
- shouldAlignRight && /* @__PURE__ */ u$1("div", { className: `flex items-center gap-1 mt-1 ${isRTL ? "justify-start" : "justify-end"}`, children: /* @__PURE__ */ u$1(MessageStatusIndicator, { status: message.metadata.status }) })
6957
+ shouldAlignRight && /* @__PURE__ */ u("div", { className: `flex items-center gap-1 mt-1 ${isRTL ? "justify-start" : "justify-end"}`, children: /* @__PURE__ */ u(MessageStatusIndicator, { status: message.metadata.status }) })
6950
6958
  ]
6951
6959
  }
6952
6960
  ) });
@@ -6954,7 +6962,7 @@ const MessageBubble = ({ message, isRTL }) => {
6954
6962
  const MessageList = ({ messages, className = "" }) => {
6955
6963
  const { isRTL } = useWidgetTranslation();
6956
6964
  const { state } = useWidgetContext();
6957
- const scrollRef = A(null);
6965
+ const scrollRef = A$1(null);
6958
6966
  const getBackgroundColor = () => {
6959
6967
  var _a, _b;
6960
6968
  return ((_b = (_a = state.widgetConfig) == null ? void 0 : _a.uiConfigs) == null ? void 0 : _b.backgroundColor) || "#ffffff";
@@ -6964,7 +6972,7 @@ const MessageList = ({ messages, className = "" }) => {
6964
6972
  scrollRef.current.scrollTop = scrollRef.current.scrollHeight;
6965
6973
  }
6966
6974
  }, [messages]);
6967
- return /* @__PURE__ */ u$1(
6975
+ return /* @__PURE__ */ u(
6968
6976
  "div",
6969
6977
  {
6970
6978
  ref: scrollRef,
@@ -6975,19 +6983,19 @@ const MessageList = ({ messages, className = "" }) => {
6975
6983
  style: {
6976
6984
  backgroundColor: getBackgroundColor()
6977
6985
  },
6978
- children: messages.map((message) => /* @__PURE__ */ u$1(MessageBubble, { message, isRTL }, message.id))
6986
+ children: messages.map((message) => /* @__PURE__ */ u(MessageBubble, { message, isRTL }, message.id))
6979
6987
  }
6980
6988
  );
6981
6989
  };
6982
6990
  const TypingIndicator = () => {
6983
6991
  const { t: t2 } = useWidgetTranslation();
6984
- return /* @__PURE__ */ u$1("div", { className: "flex items-center gap-2 px-4 py-2 text-sm text-gray-500", children: [
6985
- /* @__PURE__ */ u$1("div", { className: "flex gap-1", children: [
6986
- /* @__PURE__ */ u$1("div", { className: "w-2 h-2 bg-gray-400 rounded-full animate-bounce", style: { animationDelay: "0ms" } }),
6987
- /* @__PURE__ */ u$1("div", { className: "w-2 h-2 bg-gray-400 rounded-full animate-bounce", style: { animationDelay: "150ms" } }),
6988
- /* @__PURE__ */ u$1("div", { className: "w-2 h-2 bg-gray-400 rounded-full animate-bounce", style: { animationDelay: "300ms" } })
6992
+ return /* @__PURE__ */ u("div", { className: "flex items-center gap-2 px-4 py-2 text-sm text-gray-500", children: [
6993
+ /* @__PURE__ */ u("div", { className: "flex gap-1", children: [
6994
+ /* @__PURE__ */ u("div", { className: "w-2 h-2 bg-gray-400 rounded-full animate-bounce", style: { animationDelay: "0ms" } }),
6995
+ /* @__PURE__ */ u("div", { className: "w-2 h-2 bg-gray-400 rounded-full animate-bounce", style: { animationDelay: "150ms" } }),
6996
+ /* @__PURE__ */ u("div", { className: "w-2 h-2 bg-gray-400 rounded-full animate-bounce", style: { animationDelay: "300ms" } })
6989
6997
  ] }),
6990
- /* @__PURE__ */ u$1("span", { children: t2("chat.writing", "Writing...") })
6998
+ /* @__PURE__ */ u("span", { children: t2("chat.writing", "Writing...") })
6991
6999
  ] });
6992
7000
  };
6993
7001
  const WindowHeader = ({ title, subtitle, onClose, className = "", logoUrl }) => {
@@ -6998,7 +7006,7 @@ const WindowHeader = ({ title, subtitle, onClose, className = "", logoUrl }) =>
6998
7006
  yield changeLanguage(nextLang);
6999
7007
  services == null ? void 0 : services.themeService.applyRTLLayout(nextLang.startsWith("ar"));
7000
7008
  });
7001
- return /* @__PURE__ */ u$1(
7009
+ return /* @__PURE__ */ u(
7002
7010
  "div",
7003
7011
  {
7004
7012
  className: `
@@ -7011,9 +7019,9 @@ const WindowHeader = ({ title, subtitle, onClose, className = "", logoUrl }) =>
7011
7019
  borderBottomColor: "rgba(0, 0, 0, 0.1)"
7012
7020
  },
7013
7021
  children: [
7014
- /* @__PURE__ */ u$1("div", { className: "flex items-center gap-3 max-sm:gap-2", children: [
7015
- /* @__PURE__ */ u$1("div", { className: "w-8 h-8 max-sm:w-7 max-sm:h-7 bg-white rounded-full flex items-center justify-center overflow-hidden", children: [
7016
- logoUrl ? /* @__PURE__ */ u$1(
7022
+ /* @__PURE__ */ u("div", { className: "flex items-center gap-3 max-sm:gap-2", children: [
7023
+ /* @__PURE__ */ u("div", { className: "w-8 h-8 max-sm:w-7 max-sm:h-7 bg-white rounded-full flex items-center justify-center overflow-hidden", children: [
7024
+ logoUrl ? /* @__PURE__ */ u(
7017
7025
  "img",
7018
7026
  {
7019
7027
  src: logoUrl,
@@ -7026,15 +7034,15 @@ const WindowHeader = ({ title, subtitle, onClose, className = "", logoUrl }) =>
7026
7034
  }
7027
7035
  }
7028
7036
  ) : null,
7029
- /* @__PURE__ */ u$1("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", className: `text-blue-600 max-sm:w-3.5 max-sm:h-3.5 ${logoUrl ? "hidden" : ""}`, "aria-hidden": "true", children: /* @__PURE__ */ u$1("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z", fill: "currentColor" }) })
7037
+ /* @__PURE__ */ u("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", className: `text-blue-600 max-sm:w-3.5 max-sm:h-3.5 ${logoUrl ? "hidden" : ""}`, "aria-hidden": "true", children: /* @__PURE__ */ u("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z", fill: "currentColor" }) })
7030
7038
  ] }),
7031
- /* @__PURE__ */ u$1("div", { className: "flex flex-col", children: [
7032
- title && /* @__PURE__ */ u$1("h2", { className: "text-lg max-sm:text-base font-semibold leading-tight", style: { color: "var(--widget-text-color, #FFFFFF)" }, children: title }),
7033
- subtitle && /* @__PURE__ */ u$1("p", { className: "text-sm max-sm:text-xs opacity-80 leading-tight", style: { color: "var(--widget-text-color, #FFFFFF)" }, children: subtitle })
7039
+ /* @__PURE__ */ u("div", { className: "flex flex-col", children: [
7040
+ title && /* @__PURE__ */ u("h2", { className: "text-lg max-sm:text-base font-semibold leading-tight", style: { color: "var(--widget-text-color, #FFFFFF)" }, children: title }),
7041
+ subtitle && /* @__PURE__ */ u("p", { className: "text-sm max-sm:text-xs opacity-80 leading-tight", style: { color: "var(--widget-text-color, #FFFFFF)" }, children: subtitle })
7034
7042
  ] })
7035
7043
  ] }),
7036
- /* @__PURE__ */ u$1("div", { className: `flex items-center ${isRTL ? "ml-2" : "mr-2"} gap-2`, children: [
7037
- /* @__PURE__ */ u$1(
7044
+ /* @__PURE__ */ u("div", { className: `flex items-center ${isRTL ? "ml-2" : "mr-2"} gap-2`, children: [
7045
+ /* @__PURE__ */ u(
7038
7046
  "button",
7039
7047
  {
7040
7048
  type: "button",
@@ -7046,7 +7054,7 @@ const WindowHeader = ({ title, subtitle, onClose, className = "", logoUrl }) =>
7046
7054
  children: (currentLanguage == null ? void 0 : currentLanguage.startsWith("ar")) ? "EN" : "AR"
7047
7055
  }
7048
7056
  ),
7049
- onClose && /* @__PURE__ */ u$1(
7057
+ onClose && /* @__PURE__ */ u(
7050
7058
  "button",
7051
7059
  {
7052
7060
  type: "button",
@@ -7061,7 +7069,7 @@ const WindowHeader = ({ title, subtitle, onClose, className = "", logoUrl }) =>
7061
7069
  touchAction: "manipulation"
7062
7070
  },
7063
7071
  "aria-label": "Close chat",
7064
- children: /* @__PURE__ */ u$1("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", className: "text-white max-sm:w-4 max-sm:h-4", "aria-hidden": "true", children: /* @__PURE__ */ u$1("path", { d: "M5 12h14", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
7072
+ children: /* @__PURE__ */ u("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", className: "text-white max-sm:w-4 max-sm:h-4", "aria-hidden": "true", children: /* @__PURE__ */ u("path", { d: "M5 12h14", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
7065
7073
  }
7066
7074
  )
7067
7075
  ] })
@@ -7135,7 +7143,7 @@ const ChatWindow = ({ className = "" }) => {
7135
7143
  }
7136
7144
  return void 0;
7137
7145
  };
7138
- return /* @__PURE__ */ u$1(
7146
+ return /* @__PURE__ */ u(
7139
7147
  "div",
7140
7148
  {
7141
7149
  className: `
@@ -7145,7 +7153,7 @@ const ChatWindow = ({ className = "" }) => {
7145
7153
  `,
7146
7154
  dir: isRTL ? "rtl" : "ltr",
7147
7155
  children: [
7148
- /* @__PURE__ */ u$1(
7156
+ /* @__PURE__ */ u(
7149
7157
  WindowHeader,
7150
7158
  {
7151
7159
  title: getHeaderTitle(),
@@ -7154,12 +7162,12 @@ const ChatWindow = ({ className = "" }) => {
7154
7162
  logoUrl: getLogoUrl()
7155
7163
  }
7156
7164
  ),
7157
- /* @__PURE__ */ u$1("div", { className: "flex-1 flex flex-col pb-[81px] max-sm:pb-[72px]", children: [
7158
- /* @__PURE__ */ u$1("div", { className: "flex-1 overflow-hidden max-h-[475px] relative", children: [
7159
- /* @__PURE__ */ u$1(MessageList, { messages: messagesWithGreeting, className: "h-full" }),
7160
- state.isWriting && /* @__PURE__ */ u$1("div", { className: "absolute bottom-0 left-0 right-0 bg-white", children: /* @__PURE__ */ u$1(TypingIndicator, {}) })
7165
+ /* @__PURE__ */ u("div", { className: "flex-1 flex flex-col pb-[81px] max-sm:pb-[72px]", children: [
7166
+ /* @__PURE__ */ u("div", { className: "flex-1 overflow-hidden max-h-[475px] relative", children: [
7167
+ /* @__PURE__ */ u(MessageList, { messages: messagesWithGreeting, className: "h-full" }),
7168
+ state.isWriting && /* @__PURE__ */ u("div", { className: "absolute bottom-0 left-0 right-0 bg-white", children: /* @__PURE__ */ u(TypingIndicator, {}) })
7161
7169
  ] }),
7162
- /* @__PURE__ */ u$1("div", { className: "absolute bottom-[69px] left-0 right-0 bg-white", children: /* @__PURE__ */ u$1(MessageInput, { onSendMessage: handleSendTextMessage, disabled: state.connectionState !== "connected", placeholder: getInputPlaceholder(), isWriting: state.isWriting }) })
7170
+ /* @__PURE__ */ u("div", { className: "absolute bottom-[69px] left-0 right-0 bg-white", children: /* @__PURE__ */ u(MessageInput, { onSendMessage: handleSendTextMessage, disabled: state.connectionState !== "connected", placeholder: getInputPlaceholder(), isWriting: state.isWriting }) })
7163
7171
  ] })
7164
7172
  ]
7165
7173
  }
@@ -7174,15 +7182,15 @@ const FAQItem = ({ item, isExpanded = false, onToggle }) => {
7174
7182
  const answer = isArabic ? item.answerInArabic || item.answer : item.answer;
7175
7183
  const expanded = onToggle ? isExpanded : internalExpanded;
7176
7184
  const handleToggle = onToggle || (() => setInternalExpanded(!internalExpanded));
7177
- return /* @__PURE__ */ u$1("div", { className: "border-b border-gray-100 last:border-b-0", children: [
7178
- /* @__PURE__ */ u$1("button", { type: "button", onClick: handleToggle, className: `w-full p-4 text-left hover:bg-gray-50 transition-colors ${isRTL ? "text-right" : ""}`, "aria-expanded": expanded, children: /* @__PURE__ */ u$1("div", { className: "flex items-center justify-between gap-3", children: [
7179
- /* @__PURE__ */ u$1("h3", { className: "text-sm font-medium text-gray-900 flex-1", children: question }),
7180
- /* @__PURE__ */ u$1("div", { className: `flex-shrink-0 transition-transform duration-200 ${expanded ? "rotate-180" : ""}`, children: /* @__PURE__ */ u$1("svg", { className: "w-5 h-5 text-gray-500", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-label": expanded ? "Collapse" : "Expand", children: [
7181
- /* @__PURE__ */ u$1("title", { children: expanded ? "Collapse" : "Expand" }),
7182
- /* @__PURE__ */ u$1("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" })
7185
+ return /* @__PURE__ */ u("div", { className: "border-b border-gray-100 last:border-b-0", children: [
7186
+ /* @__PURE__ */ u("button", { type: "button", onClick: handleToggle, className: `w-full p-4 text-left hover:bg-gray-50 transition-colors ${isRTL ? "text-right" : ""}`, "aria-expanded": expanded, children: /* @__PURE__ */ u("div", { className: "flex items-center justify-between gap-3", children: [
7187
+ /* @__PURE__ */ u("h3", { className: "text-sm font-medium text-gray-900 flex-1", children: question }),
7188
+ /* @__PURE__ */ u("div", { className: `flex-shrink-0 transition-transform duration-200 ${expanded ? "rotate-180" : ""}`, children: /* @__PURE__ */ u("svg", { className: "w-5 h-5 text-gray-500", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-label": expanded ? "Collapse" : "Expand", children: [
7189
+ /* @__PURE__ */ u("title", { children: expanded ? "Collapse" : "Expand" }),
7190
+ /* @__PURE__ */ u("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" })
7183
7191
  ] }) })
7184
7192
  ] }) }),
7185
- expanded && /* @__PURE__ */ u$1("div", { className: `px-4 pb-4 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u$1("div", { className: "text-sm text-gray-600 leading-relaxed", children: answer }) })
7193
+ expanded && /* @__PURE__ */ u("div", { className: `px-4 pb-4 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u("div", { className: "text-sm text-gray-600 leading-relaxed", children: answer }) })
7186
7194
  ] });
7187
7195
  };
7188
7196
  const FAQList = ({ items, title, showAll = false, maxItems = 5, enableScrolling = true }) => {
@@ -7201,12 +7209,12 @@ const FAQList = ({ items, title, showAll = false, maxItems = 5, enableScrolling
7201
7209
  setExpandedItems(newExpanded);
7202
7210
  };
7203
7211
  if (items.length === 0) {
7204
- return /* @__PURE__ */ u$1("div", { className: `text-center py-8 text-gray-500 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u$1("p", { className: "text-sm", children: t2("faq.noItems", "No FAQ items available") }) });
7212
+ return /* @__PURE__ */ u("div", { className: `text-center py-8 text-gray-500 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u("p", { className: "text-sm", children: t2("faq.noItems", "No FAQ items available") }) });
7205
7213
  }
7206
- return /* @__PURE__ */ u$1("div", { className: `bg-white ${enableScrolling ? "h-full overflow-y-auto" : ""}`, children: [
7207
- title && /* @__PURE__ */ u$1("div", { className: `px-4 py-3 border-b border-gray-200 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u$1("h2", { className: "text-lg font-semibold text-gray-900", children: title }) }),
7208
- /* @__PURE__ */ u$1("div", { className: "divide-y divide-gray-100", children: displayItems.map((item, index) => /* @__PURE__ */ u$1(FAQItem, { item, isExpanded: expandedItems.has(index), onToggle: () => toggleItem(index) }, `${item.question}-${index}`)) }),
7209
- hasMoreItems && !showAllItems && /* @__PURE__ */ u$1("div", { className: "p-4 border-t border-gray-100", children: /* @__PURE__ */ u$1("button", { type: "button", onClick: () => setShowAllItems(true), className: "w-full py-2 px-4 text-sm font-medium text-blue-600 hover:text-blue-700 hover:bg-blue-50 rounded-md transition-colors", children: [
7214
+ return /* @__PURE__ */ u("div", { className: `bg-white ${enableScrolling ? "h-full overflow-y-auto" : ""}`, children: [
7215
+ title && /* @__PURE__ */ u("div", { className: `px-4 py-3 border-b border-gray-200 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u("h2", { className: "text-lg font-semibold text-gray-900", children: title }) }),
7216
+ /* @__PURE__ */ u("div", { className: "divide-y divide-gray-100", children: displayItems.map((item, index) => /* @__PURE__ */ u(FAQItem, { item, isExpanded: expandedItems.has(index), onToggle: () => toggleItem(index) }, `${item.question}-${index}`)) }),
7217
+ hasMoreItems && !showAllItems && /* @__PURE__ */ u("div", { className: "p-4 border-t border-gray-100", children: /* @__PURE__ */ u("button", { type: "button", onClick: () => setShowAllItems(true), className: "w-full py-2 px-4 text-sm font-medium text-blue-600 hover:text-blue-700 hover:bg-blue-50 rounded-md transition-colors", children: [
7210
7218
  t2("faq.showMore", "Show more FAQs"),
7211
7219
  " (",
7212
7220
  items.length - maxItems,
@@ -7232,8 +7240,8 @@ const FAQSearchInput = ({ value, onChange, onSearch, isLoading = false, placehol
7232
7240
  onChange("");
7233
7241
  onSearch("");
7234
7242
  }, [onChange, onSearch]);
7235
- return /* @__PURE__ */ u$1("div", { className: "p-4 border-b border-gray-200", children: /* @__PURE__ */ u$1("form", { onSubmit: handleSubmit, className: "relative", children: /* @__PURE__ */ u$1("div", { className: "relative", children: [
7236
- /* @__PURE__ */ u$1(
7243
+ return /* @__PURE__ */ u("div", { className: "p-4 border-b border-gray-200", children: /* @__PURE__ */ u("form", { onSubmit: handleSubmit, className: "relative", children: /* @__PURE__ */ u("div", { className: "relative", children: [
7244
+ /* @__PURE__ */ u(
7237
7245
  "input",
7238
7246
  {
7239
7247
  type: "text",
@@ -7244,42 +7252,42 @@ const FAQSearchInput = ({ value, onChange, onSearch, isLoading = false, placehol
7244
7252
  disabled: isLoading
7245
7253
  }
7246
7254
  ),
7247
- value && !isLoading && /* @__PURE__ */ u$1(
7255
+ value && !isLoading && /* @__PURE__ */ u(
7248
7256
  "button",
7249
7257
  {
7250
7258
  type: "button",
7251
7259
  onClick: handleClear,
7252
7260
  className: `absolute ${isRTL ? "left-8" : "right-8"} top-1/2 transform -translate-y-1/2 p-1 text-gray-400 hover:text-gray-600 transition-colors`,
7253
7261
  "aria-label": t2("faq.search.clear", "Clear"),
7254
- children: /* @__PURE__ */ u$1("svg", { className: "w-3 h-3", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u$1("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
7262
+ children: /* @__PURE__ */ u("svg", { className: "w-3 h-3", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
7255
7263
  }
7256
7264
  ),
7257
- /* @__PURE__ */ u$1("div", { className: `absolute ${isRTL ? "left-3" : "right-3"} top-1/2 transform -translate-y-1/2 pointer-events-none`, children: isLoading ? /* @__PURE__ */ u$1("div", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-blue-500" }) : /* @__PURE__ */ u$1("svg", { className: "w-4 h-4 text-gray-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u$1("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) })
7265
+ /* @__PURE__ */ u("div", { className: `absolute ${isRTL ? "left-3" : "right-3"} top-1/2 transform -translate-y-1/2 pointer-events-none`, children: isLoading ? /* @__PURE__ */ u("div", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-blue-500" }) : /* @__PURE__ */ u("svg", { className: "w-4 h-4 text-gray-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) })
7258
7266
  ] }) }) });
7259
7267
  };
7260
7268
  const FAQSearchResults = ({ results, isLoading, hasSearched }) => {
7261
7269
  const { t: t2, isRTL } = useWidgetTranslation();
7262
7270
  if (isLoading) {
7263
- return /* @__PURE__ */ u$1("div", { className: "flex-1 flex items-center justify-center p-8", children: /* @__PURE__ */ u$1("div", { className: "text-center", children: [
7264
- /* @__PURE__ */ u$1("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto mb-4" }),
7265
- /* @__PURE__ */ u$1("p", { className: "text-sm text-gray-500", children: t2("faq.search.searching", "Searching...") })
7271
+ return /* @__PURE__ */ u("div", { className: "flex-1 flex items-center justify-center p-8", children: /* @__PURE__ */ u("div", { className: "text-center", children: [
7272
+ /* @__PURE__ */ u("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto mb-4" }),
7273
+ /* @__PURE__ */ u("p", { className: "text-sm text-gray-500", children: t2("faq.search.searching", "Searching...") })
7266
7274
  ] }) });
7267
7275
  }
7268
7276
  if (!hasSearched) {
7269
- return /* @__PURE__ */ u$1("div", { className: `flex-1 flex items-center justify-center p-8 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u$1("div", { className: "text-center text-gray-500", children: [
7270
- /* @__PURE__ */ u$1("svg", { className: "w-16 h-16 mx-auto mb-4 text-gray-300", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-label": t2("faq.search.icon", "Search icon"), children: [
7271
- /* @__PURE__ */ u$1("title", { children: t2("faq.search.icon", "Search icon") }),
7272
- /* @__PURE__ */ u$1("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1, d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" })
7277
+ return /* @__PURE__ */ u("div", { className: `flex-1 flex items-center justify-center p-8 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u("div", { className: "text-center text-gray-500", children: [
7278
+ /* @__PURE__ */ u("svg", { className: "w-16 h-16 mx-auto mb-4 text-gray-300", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-label": t2("faq.search.icon", "Search icon"), children: [
7279
+ /* @__PURE__ */ u("title", { children: t2("faq.search.icon", "Search icon") }),
7280
+ /* @__PURE__ */ u("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1, d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" })
7273
7281
  ] }),
7274
- /* @__PURE__ */ u$1("h3", { className: "text-lg font-medium text-gray-900 mb-2", children: t2("faq.search.prompt.title", "Search FAQs") }),
7275
- /* @__PURE__ */ u$1("p", { className: "text-sm", children: t2("faq.search.prompt.description", "Enter a question or keyword to find relevant FAQs") })
7282
+ /* @__PURE__ */ u("h3", { className: "text-lg font-medium text-gray-900 mb-2", children: t2("faq.search.prompt.title", "Search FAQs") }),
7283
+ /* @__PURE__ */ u("p", { className: "text-sm", children: t2("faq.search.prompt.description", "Enter a question or keyword to find relevant FAQs") })
7276
7284
  ] }) });
7277
7285
  }
7278
7286
  if (results.length === 0) {
7279
- return /* @__PURE__ */ u$1("div", { className: `flex-1 flex items-center justify-center p-8 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u$1("div", { className: "text-center text-gray-500", children: [
7280
- /* @__PURE__ */ u$1("svg", { className: "w-16 h-16 mx-auto mb-4 text-gray-300", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-label": t2("faq.search.noResults.icon", "No results icon"), children: [
7281
- /* @__PURE__ */ u$1("title", { children: t2("faq.search.noResults.icon", "No results icon") }),
7282
- /* @__PURE__ */ u$1(
7287
+ return /* @__PURE__ */ u("div", { className: `flex-1 flex items-center justify-center p-8 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u("div", { className: "text-center text-gray-500", children: [
7288
+ /* @__PURE__ */ u("svg", { className: "w-16 h-16 mx-auto mb-4 text-gray-300", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-label": t2("faq.search.noResults.icon", "No results icon"), children: [
7289
+ /* @__PURE__ */ u("title", { children: t2("faq.search.noResults.icon", "No results icon") }),
7290
+ /* @__PURE__ */ u(
7283
7291
  "path",
7284
7292
  {
7285
7293
  strokeLinecap: "round",
@@ -7289,13 +7297,13 @@ const FAQSearchResults = ({ results, isLoading, hasSearched }) => {
7289
7297
  }
7290
7298
  )
7291
7299
  ] }),
7292
- /* @__PURE__ */ u$1("h3", { className: "text-lg font-medium text-gray-900 mb-2", children: t2("faq.search.noResults.title", "No results found") }),
7293
- /* @__PURE__ */ u$1("p", { className: "text-sm", children: t2("faq.search.noResults.description", "No FAQs found. Try different keywords.") })
7300
+ /* @__PURE__ */ u("h3", { className: "text-lg font-medium text-gray-900 mb-2", children: t2("faq.search.noResults.title", "No results found") }),
7301
+ /* @__PURE__ */ u("p", { className: "text-sm", children: t2("faq.search.noResults.description", "No FAQs found. Try different keywords.") })
7294
7302
  ] }) });
7295
7303
  }
7296
- return /* @__PURE__ */ u$1("div", { className: "flex-1 max-h-[475px] flex flex-col", children: [
7297
- /* @__PURE__ */ u$1("div", { className: `p-4 border-b border-gray-100 flex-shrink-0 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u$1("p", { className: "text-sm text-gray-600", children: results.length === 1 ? t2("faq.search.results.single", "1 result found") : t2("faq.search.results.multiple", "{count} results found").replace("{count}", results.length.toString()) }) }),
7298
- /* @__PURE__ */ u$1("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ u$1(FAQList, { items: results, showAll: true }) })
7304
+ return /* @__PURE__ */ u("div", { className: "flex-1 max-h-[475px] flex flex-col", children: [
7305
+ /* @__PURE__ */ u("div", { className: `p-4 border-b border-gray-100 flex-shrink-0 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u("p", { className: "text-sm text-gray-600", children: results.length === 1 ? t2("faq.search.results.single", "1 result found") : t2("faq.search.results.multiple", "{count} results found").replace("{count}", results.length.toString()) }) }),
7306
+ /* @__PURE__ */ u("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ u(FAQList, { items: results, showAll: true }) })
7299
7307
  ] });
7300
7308
  };
7301
7309
  const useFAQData = () => {
@@ -7369,7 +7377,7 @@ const FAQWindow = () => {
7369
7377
  const [searchResults, setSearchResults] = d([]);
7370
7378
  const [hasSearched, setHasSearched] = d(false);
7371
7379
  const [isSearching, setIsSearching] = d(false);
7372
- const searchTimeoutRef = A();
7380
+ const searchTimeoutRef = A$1();
7373
7381
  const allFAQs = getAllFAQs();
7374
7382
  const performSearch = q$1(
7375
7383
  (query) => {
@@ -7409,30 +7417,30 @@ const FAQWindow = () => {
7409
7417
  };
7410
7418
  }, []);
7411
7419
  if (isLoading) {
7412
- return /* @__PURE__ */ u$1("div", { className: `flex flex-col h-full bg-white ${isRTL ? "rtl" : ""}`, children: [
7413
- /* @__PURE__ */ u$1("div", { className: "flex items-center justify-between p-4 border-b border-gray-200", children: /* @__PURE__ */ u$1("h2", { className: "text-lg font-semibold text-gray-900", children: t2("faq.title", "Frequently Asked Questions") }) }),
7414
- /* @__PURE__ */ u$1("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ u$1("div", { className: "text-center", children: [
7415
- /* @__PURE__ */ u$1("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto mb-4" }),
7416
- /* @__PURE__ */ u$1("p", { className: "text-sm text-gray-500", children: t2("faq.loading", "Loading FAQs...") })
7420
+ return /* @__PURE__ */ u("div", { className: `flex flex-col h-full bg-white ${isRTL ? "rtl" : ""}`, children: [
7421
+ /* @__PURE__ */ u("div", { className: "flex items-center justify-between p-4 border-b border-gray-200", children: /* @__PURE__ */ u("h2", { className: "text-lg font-semibold text-gray-900", children: t2("faq.title", "Frequently Asked Questions") }) }),
7422
+ /* @__PURE__ */ u("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ u("div", { className: "text-center", children: [
7423
+ /* @__PURE__ */ u("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto mb-4" }),
7424
+ /* @__PURE__ */ u("p", { className: "text-sm text-gray-500", children: t2("faq.loading", "Loading FAQs...") })
7417
7425
  ] }) })
7418
7426
  ] });
7419
7427
  }
7420
7428
  if (error) {
7421
- return /* @__PURE__ */ u$1("div", { className: `flex flex-col h-full bg-white ${isRTL ? "rtl" : ""}`, children: [
7422
- /* @__PURE__ */ u$1("div", { className: "flex items-center justify-between p-4 border-b border-gray-200", children: /* @__PURE__ */ u$1("h2", { className: "text-lg font-semibold text-gray-900", children: t2("faq.title", "Frequently Asked Questions") }) }),
7423
- /* @__PURE__ */ u$1("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ u$1("div", { className: `text-center p-4 ${isRTL ? "text-right" : ""}`, children: [
7424
- /* @__PURE__ */ u$1("p", { className: "text-sm text-red-600 mb-2", children: t2("faq.error", "Failed to load FAQs") }),
7425
- /* @__PURE__ */ u$1("p", { className: "text-xs text-gray-500", children: error })
7429
+ return /* @__PURE__ */ u("div", { className: `flex flex-col h-full bg-white ${isRTL ? "rtl" : ""}`, children: [
7430
+ /* @__PURE__ */ u("div", { className: "flex items-center justify-between p-4 border-b border-gray-200", children: /* @__PURE__ */ u("h2", { className: "text-lg font-semibold text-gray-900", children: t2("faq.title", "Frequently Asked Questions") }) }),
7431
+ /* @__PURE__ */ u("div", { className: "flex-1 flex items-center justify-center", children: /* @__PURE__ */ u("div", { className: `text-center p-4 ${isRTL ? "text-right" : ""}`, children: [
7432
+ /* @__PURE__ */ u("p", { className: "text-sm text-red-600 mb-2", children: t2("faq.error", "Failed to load FAQs") }),
7433
+ /* @__PURE__ */ u("p", { className: "text-xs text-gray-500", children: error })
7426
7434
  ] }) })
7427
7435
  ] });
7428
7436
  }
7429
- return /* @__PURE__ */ u$1("div", { className: `flex flex-col h-full bg-white ${isRTL ? "rtl" : ""}`, children: [
7430
- /* @__PURE__ */ u$1("div", { className: "flex items-center justify-between p-4 border-b border-gray-200", children: [
7431
- /* @__PURE__ */ u$1("h2", { className: "text-lg font-semibold text-gray-900", children: t2("faq.title", "Frequently Asked Questions") }),
7432
- /* @__PURE__ */ u$1("div", { className: "w-6 h-6 text-gray-400", children: /* @__PURE__ */ u$1("svg", { fill: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u$1("path", { d: "M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zM12 17.25h.007v.008H12v-.008z" }) }) })
7437
+ return /* @__PURE__ */ u("div", { className: `flex flex-col h-full bg-white ${isRTL ? "rtl" : ""}`, children: [
7438
+ /* @__PURE__ */ u("div", { className: "flex items-center justify-between p-4 border-b border-gray-200", children: [
7439
+ /* @__PURE__ */ u("h2", { className: "text-lg font-semibold text-gray-900", children: t2("faq.title", "Frequently Asked Questions") }),
7440
+ /* @__PURE__ */ u("div", { className: "w-6 h-6 text-gray-400", children: /* @__PURE__ */ u("svg", { fill: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ u("path", { d: "M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zM12 17.25h.007v.008H12v-.008z" }) }) })
7433
7441
  ] }),
7434
- /* @__PURE__ */ u$1(FAQSearchInput, { value: searchQuery, onChange: handleInputChange, onSearch: handleSearch, isLoading: isSearching, placeholder: t2("faq.search.placeholder", "Search FAQs...") }),
7435
- hasSearched ? /* @__PURE__ */ u$1(FAQSearchResults, { results: searchResults, isLoading: isSearching, hasSearched, query: searchQuery }) : /* @__PURE__ */ u$1("div", { className: "flex-1 max-h-[475px]", children: /* @__PURE__ */ u$1(FAQList, { items: allFAQs, showAll: true }) })
7442
+ /* @__PURE__ */ u(FAQSearchInput, { value: searchQuery, onChange: handleInputChange, onSearch: handleSearch, isLoading: isSearching, placeholder: t2("faq.search.placeholder", "Search FAQs...") }),
7443
+ hasSearched ? /* @__PURE__ */ u(FAQSearchResults, { results: searchResults, isLoading: isSearching, hasSearched, query: searchQuery }) : /* @__PURE__ */ u("div", { className: "flex-1 max-h-[475px]", children: /* @__PURE__ */ u(FAQList, { items: allFAQs, showAll: true }) })
7436
7444
  ] });
7437
7445
  };
7438
7446
  const OrganizationLogo = () => {
@@ -7445,28 +7453,28 @@ const OrganizationLogo = () => {
7445
7453
  setLogoError(true);
7446
7454
  };
7447
7455
  if (logoError) {
7448
- return /* @__PURE__ */ u$1("div", { className: "w-8 h-8 max-sm:w-6 max-sm:h-6 bg-white rounded" });
7456
+ return /* @__PURE__ */ u("div", { className: "w-8 h-8 max-sm:w-6 max-sm:h-6 bg-white rounded" });
7449
7457
  }
7450
- return /* @__PURE__ */ u$1("img", { src: logoUrl, alt: "Organization logo", className: "w-8 h-8 max-sm:w-6 max-sm:h-6 rounded object-contain", onError: handleImageError });
7458
+ return /* @__PURE__ */ u("img", { src: logoUrl, alt: "Organization logo", className: "w-8 h-8 max-sm:w-6 max-sm:h-6 rounded object-contain", onError: handleImageError });
7451
7459
  };
7452
7460
  const PopularFAQs = ({ maxItems = 3, onClick }) => {
7453
7461
  const { t: t2, isRTL } = useWidgetTranslation();
7454
7462
  const { getPopularFAQs, isLoading, error } = useFAQData();
7455
7463
  const popularFAQs = getPopularFAQs(maxItems);
7456
7464
  if (isLoading) {
7457
- return /* @__PURE__ */ u$1("div", { className: `bg-white/10 bg-gray-100 rounded-lg p-4 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u$1("div", { className: "animate-pulse", children: [
7458
- /* @__PURE__ */ u$1("div", { className: "h-4 bg-white/20 rounded mb-3" }),
7459
- /* @__PURE__ */ u$1("div", { className: "space-y-2", children: [
7460
- /* @__PURE__ */ u$1("div", { className: "h-3 bg-white/20 rounded" }),
7461
- /* @__PURE__ */ u$1("div", { className: "h-3 bg-white/20 rounded w-3/4" })
7465
+ return /* @__PURE__ */ u("div", { className: `bg-white/10 bg-gray-100 rounded-lg p-4 ${isRTL ? "text-right" : ""}`, children: /* @__PURE__ */ u("div", { className: "animate-pulse", children: [
7466
+ /* @__PURE__ */ u("div", { className: "h-4 bg-white/20 rounded mb-3" }),
7467
+ /* @__PURE__ */ u("div", { className: "space-y-2", children: [
7468
+ /* @__PURE__ */ u("div", { className: "h-3 bg-white/20 rounded" }),
7469
+ /* @__PURE__ */ u("div", { className: "h-3 bg-white/20 rounded w-3/4" })
7462
7470
  ] })
7463
7471
  ] }) });
7464
7472
  }
7465
7473
  if (error || popularFAQs.length === 0) {
7466
7474
  return null;
7467
7475
  }
7468
- return /* @__PURE__ */ u$1("div", { className: "bg-white/10 bg-gray-100 rounded-lg", children: [
7469
- /* @__PURE__ */ u$1(
7476
+ return /* @__PURE__ */ u("div", { className: "bg-white/10 bg-gray-100 rounded-lg", children: [
7477
+ /* @__PURE__ */ u(
7470
7478
  "button",
7471
7479
  {
7472
7480
  type: "button",
@@ -7478,20 +7486,20 @@ const PopularFAQs = ({ maxItems = 3, onClick }) => {
7478
7486
  "--tw-ring-color": "var(--widget-primary-color, #3C5BFF)"
7479
7487
  },
7480
7488
  children: [
7481
- /* @__PURE__ */ u$1("h4", { className: "text-sm max-sm:text-sm font-semibold text-gray-900", children: t2("home.searchHelp", "Search for help") }),
7482
- /* @__PURE__ */ u$1("div", { className: "w-4 h-4 max-sm:w-5 max-sm:h-5 flex-shrink-0", style: { color: "var(--widget-primary-color, #3C5BFF)" }, children: /* @__PURE__ */ u$1("svg", { viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.75", "aria-hidden": "true", children: [
7483
- /* @__PURE__ */ u$1("circle", { cx: "7", cy: "7", r: "5" }),
7484
- /* @__PURE__ */ u$1("path", { d: "M13 13l-3-3" })
7489
+ /* @__PURE__ */ u("h4", { className: "text-sm max-sm:text-sm font-semibold text-gray-900", children: t2("home.searchHelp", "Search for help") }),
7490
+ /* @__PURE__ */ u("div", { className: "w-4 h-4 max-sm:w-5 max-sm:h-5 flex-shrink-0", style: { color: "var(--widget-primary-color, #3C5BFF)" }, children: /* @__PURE__ */ u("svg", { viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.75", "aria-hidden": "true", children: [
7491
+ /* @__PURE__ */ u("circle", { cx: "7", cy: "7", r: "5" }),
7492
+ /* @__PURE__ */ u("path", { d: "M13 13l-3-3" })
7485
7493
  ] }) })
7486
7494
  ]
7487
7495
  }
7488
7496
  ),
7489
- /* @__PURE__ */ u$1("div", { className: "bg-white/5", children: /* @__PURE__ */ u$1(FAQList, { items: popularFAQs, maxItems, showAll: false, enableScrolling: false }) })
7497
+ /* @__PURE__ */ u("div", { className: "bg-white/5", children: /* @__PURE__ */ u(FAQList, { items: popularFAQs, maxItems, showAll: false, enableScrolling: false }) })
7490
7498
  ] });
7491
7499
  };
7492
7500
  const SendMessageButton = ({ onClick }) => {
7493
7501
  const { t: t2 } = useWidgetTranslation();
7494
- return /* @__PURE__ */ u$1(
7502
+ return /* @__PURE__ */ u(
7495
7503
  "button",
7496
7504
  {
7497
7505
  type: "button",
@@ -7503,26 +7511,26 @@ const SendMessageButton = ({ onClick }) => {
7503
7511
  "--tw-ring-color": "var(--widget-primary-color, #3C5BFF)"
7504
7512
  },
7505
7513
  children: [
7506
- /* @__PURE__ */ u$1("div", { className: "flex flex-col items-start", children: [
7507
- /* @__PURE__ */ u$1("h4", { className: "text-sm max-sm:text-sm font-semibold text-gray-900", children: t2("home.sendMessage", "Send us a message") }),
7508
- /* @__PURE__ */ u$1("p", { className: "text-sm max-sm:text-xs text-gray-600 mt-1", children: t2("home.replyTime", "We typically reply within a day") })
7514
+ /* @__PURE__ */ u("div", { className: "flex flex-col items-start", children: [
7515
+ /* @__PURE__ */ u("h4", { className: "text-sm max-sm:text-sm font-semibold text-gray-900", children: t2("home.sendMessage", "Send us a message") }),
7516
+ /* @__PURE__ */ u("p", { className: "text-sm max-sm:text-xs text-gray-600 mt-1", children: t2("home.replyTime", "We typically reply within a day") })
7509
7517
  ] }),
7510
- /* @__PURE__ */ u$1("div", { className: "w-4 h-4 max-sm:w-5 max-sm:h-5 flex-shrink-0", style: { color: "var(--widget-primary-color, #3C5BFF)" }, children: /* @__PURE__ */ u$1("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ u$1("path", { d: "M6 3l6 5-6 5V3z" }) }) })
7518
+ /* @__PURE__ */ u("div", { className: "w-4 h-4 max-sm:w-5 max-sm:h-5 flex-shrink-0", style: { color: "var(--widget-primary-color, #3C5BFF)" }, children: /* @__PURE__ */ u("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ u("path", { d: "M6 3l6 5-6 5V3z" }) }) })
7511
7519
  ]
7512
7520
  }
7513
7521
  );
7514
7522
  };
7515
7523
  const QuickActionButtons = ({ onSendMessage, onSearchHelp }) => {
7516
- return /* @__PURE__ */ u$1("div", { className: "flex flex-col gap-3 p-4 max-sm:p-3 max-sm:gap-2", children: [
7517
- /* @__PURE__ */ u$1(SendMessageButton, { onClick: onSendMessage }),
7518
- /* @__PURE__ */ u$1(PopularFAQs, { maxItems: 3, onClick: onSearchHelp })
7524
+ return /* @__PURE__ */ u("div", { className: "flex flex-col gap-3 p-4 max-sm:p-3 max-sm:gap-2", children: [
7525
+ /* @__PURE__ */ u(SendMessageButton, { onClick: onSendMessage }),
7526
+ /* @__PURE__ */ u(PopularFAQs, { maxItems: 3, onClick: onSearchHelp })
7519
7527
  ] });
7520
7528
  };
7521
7529
  const WelcomeMessage = () => {
7522
7530
  const { t: t2 } = useWidgetTranslation();
7523
- return /* @__PURE__ */ u$1("div", { className: "text-white", children: [
7524
- /* @__PURE__ */ u$1("h2", { className: "text-2xl max-sm:text-xl font-bold opacity-70 mb-1", children: t2("home.greeting", "Hello there") }),
7525
- /* @__PURE__ */ u$1("h3", { className: "text-2xl max-sm:text-xl font-bold", children: t2("home.question", "How can we help?") })
7531
+ return /* @__PURE__ */ u("div", { className: "text-white", children: [
7532
+ /* @__PURE__ */ u("h2", { className: "text-2xl max-sm:text-xl font-bold opacity-70 mb-1", children: t2("home.greeting", "Hello there") }),
7533
+ /* @__PURE__ */ u("h3", { className: "text-2xl max-sm:text-xl font-bold", children: t2("home.question", "How can we help?") })
7526
7534
  ] });
7527
7535
  };
7528
7536
  const HomeWindow = () => {
@@ -7534,8 +7542,8 @@ const HomeWindow = () => {
7534
7542
  const handleSearchHelp = () => {
7535
7543
  dispatch({ type: "SET_CURRENT_WINDOW", payload: "faq" });
7536
7544
  };
7537
- return /* @__PURE__ */ u$1("div", { className: `flex flex-col h-full ${isRTL ? "rtl" : ""}`, children: [
7538
- /* @__PURE__ */ u$1(
7545
+ return /* @__PURE__ */ u("div", { className: `flex flex-col h-full ${isRTL ? "rtl" : ""}`, children: [
7546
+ /* @__PURE__ */ u(
7539
7547
  "div",
7540
7548
  {
7541
7549
  className: "absolute inset-0",
@@ -7544,30 +7552,30 @@ const HomeWindow = () => {
7544
7552
  }
7545
7553
  }
7546
7554
  ),
7547
- /* @__PURE__ */ u$1("div", { className: "relative flex flex-col h-full overflow-y-auto overflow-x-hidden", children: [
7548
- /* @__PURE__ */ u$1("div", { className: "flex flex-col gap-6 p-5 max-sm:p-4 pt-5 max-sm:pt-4 flex-shrink-0", children: [
7549
- /* @__PURE__ */ u$1("div", { className: "flex justify-between items-end", children: /* @__PURE__ */ u$1(OrganizationLogo, {}) }),
7550
- /* @__PURE__ */ u$1(WelcomeMessage, {})
7555
+ /* @__PURE__ */ u("div", { className: "relative flex flex-col h-full overflow-y-auto overflow-x-hidden", children: [
7556
+ /* @__PURE__ */ u("div", { className: "flex flex-col gap-6 p-5 max-sm:p-4 pt-5 max-sm:pt-4 flex-shrink-0", children: [
7557
+ /* @__PURE__ */ u("div", { className: "flex justify-between items-end", children: /* @__PURE__ */ u(OrganizationLogo, {}) }),
7558
+ /* @__PURE__ */ u(WelcomeMessage, {})
7551
7559
  ] }),
7552
- /* @__PURE__ */ u$1("div", { className: "flex-1 min-h-0 bg-white", children: /* @__PURE__ */ u$1(QuickActionButtons, { onSendMessage: handleSendMessage, onSearchHelp: handleSearchHelp }) })
7560
+ /* @__PURE__ */ u("div", { className: "flex-1 min-h-0 bg-white", children: /* @__PURE__ */ u(QuickActionButtons, { onSendMessage: handleSendMessage, onSearchHelp: handleSearchHelp }) })
7553
7561
  ] })
7554
7562
  ] });
7555
7563
  };
7556
7564
  const HelpIcon = ({ isActive = false, className = "" }) => {
7557
7565
  const strokeColor = isActive ? "var(--widget-secondary-color, #6B7280)" : "var(--widget-text-primary, #1A1A1A)";
7558
- return /* @__PURE__ */ u$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", className, role: "img", "aria-label": "Help", children: [
7559
- /* @__PURE__ */ u$1("title", { children: "Help" }),
7560
- /* @__PURE__ */ u$1("circle", { cx: "12", cy: "12", r: "9.25", stroke: strokeColor, strokeWidth: "1.7" }),
7561
- /* @__PURE__ */ u$1("path", { d: "M9.66 9C9.66 7.34315 10.9932 6 12.66 6C14.3268 6 15.66 7.34315 15.66 9C15.66 10.6569 14.3268 12 12.66 12", stroke: strokeColor, strokeWidth: "1.7", strokeLinecap: "round" }),
7562
- /* @__PURE__ */ u$1("circle", { cx: "12.66", cy: "16", r: "1.77", fill: strokeColor })
7566
+ return /* @__PURE__ */ u("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", className, role: "img", "aria-label": "Help", children: [
7567
+ /* @__PURE__ */ u("title", { children: "Help" }),
7568
+ /* @__PURE__ */ u("circle", { cx: "12", cy: "12", r: "9.25", stroke: strokeColor, strokeWidth: "1.7" }),
7569
+ /* @__PURE__ */ u("path", { d: "M9.66 9C9.66 7.34315 10.9932 6 12.66 6C14.3268 6 15.66 7.34315 15.66 9C15.66 10.6569 14.3268 12 12.66 12", stroke: strokeColor, strokeWidth: "1.7", strokeLinecap: "round" }),
7570
+ /* @__PURE__ */ u("circle", { cx: "12.66", cy: "16", r: "1.77", fill: strokeColor })
7563
7571
  ] });
7564
7572
  };
7565
7573
  const HomeIcon = ({ isActive = false, className = "" }) => {
7566
7574
  const fillColor = isActive ? "var(--widget-secondary-color, #6B7280)" : "var(--widget-text-primary, #1A1A1A)";
7567
- return /* @__PURE__ */ u$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", className, role: "img", "aria-label": "Home", children: [
7568
- /* @__PURE__ */ u$1("title", { children: "Home" }),
7569
- /* @__PURE__ */ u$1("path", { d: "M2 12L12 2L22 12", stroke: fillColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
7570
- /* @__PURE__ */ u$1(
7575
+ return /* @__PURE__ */ u("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", className, role: "img", "aria-label": "Home", children: [
7576
+ /* @__PURE__ */ u("title", { children: "Home" }),
7577
+ /* @__PURE__ */ u("path", { d: "M2 12L12 2L22 12", stroke: fillColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
7578
+ /* @__PURE__ */ u(
7571
7579
  "path",
7572
7580
  {
7573
7581
  d: "M3 21V9L12 2L21 9V21H15V16C15 15.4477 14.5523 15 14 15H10C9.44772 15 9 15.4477 9 16V21H3Z",
@@ -7582,9 +7590,9 @@ const HomeIcon = ({ isActive = false, className = "" }) => {
7582
7590
  };
7583
7591
  const MessagesIcon = ({ isActive = false, className = "" }) => {
7584
7592
  const fillColor = isActive ? "var(--widget-secondary-color, #6B7280)" : "var(--widget-text-primary, #1A1A1A)";
7585
- return /* @__PURE__ */ u$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", className, role: "img", "aria-label": "Messages", children: [
7586
- /* @__PURE__ */ u$1("title", { children: "Messages" }),
7587
- /* @__PURE__ */ u$1(
7593
+ return /* @__PURE__ */ u("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", className, role: "img", "aria-label": "Messages", children: [
7594
+ /* @__PURE__ */ u("title", { children: "Messages" }),
7595
+ /* @__PURE__ */ u(
7588
7596
  "path",
7589
7597
  {
7590
7598
  d: "M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z",
@@ -7595,13 +7603,13 @@ const MessagesIcon = ({ isActive = false, className = "" }) => {
7595
7603
  strokeLinejoin: "round"
7596
7604
  }
7597
7605
  ),
7598
- isActive && /* @__PURE__ */ u$1("circle", { cx: "11.04", cy: "16", r: "1.77", fill: fillColor })
7606
+ isActive && /* @__PURE__ */ u("circle", { cx: "11.04", cy: "16", r: "1.77", fill: fillColor })
7599
7607
  ] });
7600
7608
  };
7601
7609
  const NotificationBadge = ({ count, className = "" }) => {
7602
7610
  if (count <= 0) return null;
7603
7611
  const displayCount = count > 99 ? "99+" : count.toString();
7604
- return /* @__PURE__ */ u$1(
7612
+ return /* @__PURE__ */ u(
7605
7613
  "div",
7606
7614
  {
7607
7615
  className: `absolute -top-1 -right-1 bg-red-500 text-white text-xs font-medium rounded-full min-w-[18px] h-[18px] flex items-center justify-center px-1 ${className}`,
@@ -7642,7 +7650,7 @@ const Navigation = ({ className = "" }) => {
7642
7650
  showBadge: false
7643
7651
  }
7644
7652
  ];
7645
- return /* @__PURE__ */ u$1(
7653
+ return /* @__PURE__ */ u(
7646
7654
  "nav",
7647
7655
  {
7648
7656
  className: `
@@ -7659,7 +7667,7 @@ const Navigation = ({ className = "" }) => {
7659
7667
  children: navigationTabs.map((tab) => {
7660
7668
  const isActive = state.currentWindow === tab.id;
7661
7669
  const IconComponent = tab.icon;
7662
- return /* @__PURE__ */ u$1(
7670
+ return /* @__PURE__ */ u(
7663
7671
  "button",
7664
7672
  {
7665
7673
  type: "button",
@@ -7682,11 +7690,11 @@ const Navigation = ({ className = "" }) => {
7682
7690
  "aria-label": tab.label,
7683
7691
  "aria-current": isActive ? "page" : void 0,
7684
7692
  children: [
7685
- /* @__PURE__ */ u$1("div", { className: "relative", children: [
7686
- /* @__PURE__ */ u$1(IconComponent, { isActive, className: "w-6 h-6" }),
7687
- tab.showBadge && state.unreadCount > 0 && /* @__PURE__ */ u$1(NotificationBadge, { count: state.unreadCount })
7693
+ /* @__PURE__ */ u("div", { className: "relative", children: [
7694
+ /* @__PURE__ */ u(IconComponent, { isActive, className: "w-6 h-6" }),
7695
+ tab.showBadge && state.unreadCount > 0 && /* @__PURE__ */ u(NotificationBadge, { count: state.unreadCount })
7688
7696
  ] }),
7689
- /* @__PURE__ */ u$1(
7697
+ /* @__PURE__ */ u(
7690
7698
  "span",
7691
7699
  {
7692
7700
  className: "text-sm max-sm:text-xs font-medium leading-none",
@@ -7711,20 +7719,20 @@ const WidgetContent = () => {
7711
7719
  const renderCurrentWindow = () => {
7712
7720
  switch (state.currentWindow) {
7713
7721
  case "home":
7714
- return /* @__PURE__ */ u$1(HomeWindow, {});
7722
+ return /* @__PURE__ */ u(HomeWindow, {});
7715
7723
  case "chat":
7716
- return /* @__PURE__ */ u$1(ChatWindow, {});
7724
+ return /* @__PURE__ */ u(ChatWindow, {});
7717
7725
  case "faq":
7718
- return /* @__PURE__ */ u$1(FAQWindow, {});
7726
+ return /* @__PURE__ */ u(FAQWindow, {});
7719
7727
  case "news":
7720
- return /* @__PURE__ */ u$1("div", { className: "flex-1 p-4", children: "News Window - Coming Soon" });
7728
+ return /* @__PURE__ */ u("div", { className: "flex-1 p-4", children: "News Window - Coming Soon" });
7721
7729
  default:
7722
- return /* @__PURE__ */ u$1(HomeWindow, {});
7730
+ return /* @__PURE__ */ u(HomeWindow, {});
7723
7731
  }
7724
7732
  };
7725
- return /* @__PURE__ */ u$1("div", { className: "flex-1 overflow-hidden relative flex flex-col", children: [
7726
- /* @__PURE__ */ u$1("div", { className: "flex-1 overflow-hidden", children: renderCurrentWindow() }),
7727
- /* @__PURE__ */ u$1(Navigation, {})
7733
+ return /* @__PURE__ */ u("div", { className: "flex-1 overflow-hidden relative flex flex-col", children: [
7734
+ /* @__PURE__ */ u("div", { className: "flex-1 overflow-hidden", children: renderCurrentWindow() }),
7735
+ /* @__PURE__ */ u(Navigation, {})
7728
7736
  ] });
7729
7737
  };
7730
7738
  const initialWidgetState = {
@@ -7902,10 +7910,10 @@ const WidgetManager = ({ config }) => {
7902
7910
  initializeWidget();
7903
7911
  }, []);
7904
7912
  if (initError) {
7905
- return /* @__PURE__ */ u$1("div", { className: "fixed bottom-5 right-5 bg-red-50 border border-red-200 rounded-lg p-4 max-w-sm z-[1000]", children: /* @__PURE__ */ u$1("div", { className: "flex items-center", children: [
7906
- /* @__PURE__ */ u$1("div", { className: "flex-shrink-0", children: /* @__PURE__ */ u$1("svg", { className: "h-5 w-5 text-red-400", viewBox: "0 0 20 20", fill: "currentColor", "aria-label": "Error icon", children: [
7907
- /* @__PURE__ */ u$1("title", { children: "Error" }),
7908
- /* @__PURE__ */ u$1(
7913
+ return /* @__PURE__ */ u("div", { className: "fixed bottom-5 right-5 bg-red-50 border border-red-200 rounded-lg p-4 max-w-sm z-[1000]", children: /* @__PURE__ */ u("div", { className: "flex items-center", children: [
7914
+ /* @__PURE__ */ u("div", { className: "flex-shrink-0", children: /* @__PURE__ */ u("svg", { className: "h-5 w-5 text-red-400", viewBox: "0 0 20 20", fill: "currentColor", "aria-label": "Error icon", children: [
7915
+ /* @__PURE__ */ u("title", { children: "Error" }),
7916
+ /* @__PURE__ */ u(
7909
7917
  "path",
7910
7918
  {
7911
7919
  fillRule: "evenodd",
@@ -7914,16 +7922,16 @@ const WidgetManager = ({ config }) => {
7914
7922
  }
7915
7923
  )
7916
7924
  ] }) }),
7917
- /* @__PURE__ */ u$1("div", { className: "ml-3", children: [
7918
- /* @__PURE__ */ u$1("h3", { className: "text-sm font-medium text-red-800", children: "Widget Error" }),
7919
- /* @__PURE__ */ u$1("p", { className: "text-sm text-red-700 mt-1", children: initError })
7925
+ /* @__PURE__ */ u("div", { className: "ml-3", children: [
7926
+ /* @__PURE__ */ u("h3", { className: "text-sm font-medium text-red-800", children: "Widget Error" }),
7927
+ /* @__PURE__ */ u("p", { className: "text-sm text-red-700 mt-1", children: initError })
7920
7928
  ] })
7921
7929
  ] }) });
7922
7930
  }
7923
7931
  if (!isInitialized) {
7924
- return /* @__PURE__ */ u$1("div", { className: "fixed bottom-5 right-5 w-14 h-14 rounded-full bg-gray-200 animate-pulse z-[1000]" });
7932
+ return /* @__PURE__ */ u("div", { className: "fixed bottom-5 right-5 w-14 h-14 rounded-full bg-gray-200 animate-pulse z-[1000]" });
7925
7933
  }
7926
- return /* @__PURE__ */ u$1(
7934
+ return /* @__PURE__ */ u(
7927
7935
  WidgetErrorBoundary,
7928
7936
  {
7929
7937
  maxRetries: 3,
@@ -7931,7 +7939,7 @@ const WidgetManager = ({ config }) => {
7931
7939
  onError: (error, errorInfo) => {
7932
7940
  console.error("Widget Error Boundary:", error, errorInfo);
7933
7941
  },
7934
- children: /* @__PURE__ */ u$1("div", { className: "font-widget text-widget-base leading-relaxed text-widget-text-primary", children: /* @__PURE__ */ u$1(
7942
+ children: /* @__PURE__ */ u("div", { className: "font-widget text-widget-base leading-relaxed text-widget-text-primary", children: /* @__PURE__ */ u(
7935
7943
  WidgetProvider,
7936
7944
  {
7937
7945
  value: {
@@ -7940,7 +7948,7 @@ const WidgetManager = ({ config }) => {
7940
7948
  config,
7941
7949
  services: { apiService, themeService, i18nService, persistenceService }
7942
7950
  },
7943
- children: /* @__PURE__ */ u$1(WidgetWithConnection, {})
7951
+ children: /* @__PURE__ */ u(WidgetWithConnection, {})
7944
7952
  }
7945
7953
  ) })
7946
7954
  }
@@ -7949,7 +7957,7 @@ const WidgetManager = ({ config }) => {
7949
7957
  const WidgetWithConnection = () => {
7950
7958
  const { state, dispatch, config } = useWidgetContext();
7951
7959
  const { initializeConnection, connectionState, onMessage, onTokenRefresh, refreshConnection } = useStompConnectionContext();
7952
- const connectionInitializedRef = A(false);
7960
+ const connectionInitializedRef = A$1(false);
7953
7961
  y(() => {
7954
7962
  if (state.user && state.widgetConfig && config && !connectionInitializedRef.current) {
7955
7963
  connectionInitializedRef.current = true;
@@ -8047,9 +8055,9 @@ const WidgetWithConnection = () => {
8047
8055
  return `fixed bottom-20 right-5 ${width} ${height}`;
8048
8056
  }
8049
8057
  };
8050
- return /* @__PURE__ */ u$1(k$1, { children: [
8051
- /* @__PURE__ */ u$1(TriggerButton, {}),
8052
- state.isOpen && /* @__PURE__ */ u$1(
8058
+ return /* @__PURE__ */ u(k$1, { children: [
8059
+ /* @__PURE__ */ u(TriggerButton, {}),
8060
+ state.isOpen && /* @__PURE__ */ u(
8053
8061
  "div",
8054
8062
  {
8055
8063
  className: `${getPositionClasses()} bg-white rounded-2xl shadow-xl border border-gray-200 z-[999] flex flex-col overflow-hidden
@@ -8058,14 +8066,14 @@ const WidgetWithConnection = () => {
8058
8066
  max-sm:fixed max-sm:inset-4 max-sm:bottom-20 max-sm:w-auto max-sm:h-auto max-sm:max-h-[calc(100vh-8rem)] max-sm:rounded-xl
8059
8067
  max-sm:landscape:inset-2 max-sm:landscape:bottom-16 max-sm:landscape:max-h-[calc(100vh-4rem)]
8060
8068
  scrollbar-thin scrollbar-thumb-gray-300 scrollbar-track-gray-100`,
8061
- children: /* @__PURE__ */ u$1(WidgetContent, {})
8069
+ children: /* @__PURE__ */ u(WidgetContent, {})
8062
8070
  }
8063
8071
  )
8064
8072
  ] });
8065
8073
  };
8066
8074
  const widgetCss = '/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-cyan-200:oklch(91.7% .08 205.041);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--shadow-sm:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.-top-1{top:calc(var(--spacing)*-1)}.top-1{top:calc(var(--spacing)*1)}.top-1\\/2{top:50%}.top-4{top:calc(var(--spacing)*4)}.top-5{top:calc(var(--spacing)*5)}.top-20{top:calc(var(--spacing)*20)}.-right-1{right:calc(var(--spacing)*-1)}.right-0{right:calc(var(--spacing)*0)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-5{right:calc(var(--spacing)*5)}.right-8{right:calc(var(--spacing)*8)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-5{bottom:calc(var(--spacing)*5)}.bottom-20{bottom:calc(var(--spacing)*20)}.bottom-\\[69px\\]{bottom:69px}.-left-1{left:calc(var(--spacing)*-1)}.left-0{left:calc(var(--spacing)*0)}.left-1{left:calc(var(--spacing)*1)}.left-1\\/2{left:50%}.left-3{left:calc(var(--spacing)*3)}.left-5{left:calc(var(--spacing)*5)}.left-8{left:calc(var(--spacing)*8)}.z-10{z-index:10}.z-\\[999\\]{z-index:999}.z-\\[1000\\]{z-index:1000}.z-\\[1001\\]{z-index:1001}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.h-2{height:calc(var(--spacing)*2)}.h-2\\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-14{height:calc(var(--spacing)*14)}.h-15{height:calc(var(--spacing)*15)}.h-16{height:calc(var(--spacing)*16)}.h-\\[18px\\]{height:18px}.h-\\[81px\\]{height:81px}.h-\\[500px\\]{height:500px}.h-\\[704px\\]{height:704px}.h-\\[800px\\]{height:800px}.h-auto{height:auto}.h-full{height:100%}.max-h-\\[475px\\]{max-height:475px}.max-h-\\[704px\\]{max-height:704px}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\\[44px\\]{min-height:44px}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-3\\/4{width:75%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-14{width:calc(var(--spacing)*14)}.w-15{width:calc(var(--spacing)*15)}.w-16{width:calc(var(--spacing)*16)}.w-96{width:calc(var(--spacing)*96)}.w-\\[320px\\]{width:320px}.w-\\[400px\\]{width:400px}.w-\\[480px\\]{width:480px}.w-full{width:100%}.max-w-\\[calc\\(100vw-2\\.5rem\\)\\]{max-width:calc(100vw - 2.5rem)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-\\[18px\\]{min-width:18px}.min-w-\\[44px\\]{min-width:44px}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.-translate-x-1{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce{animation:var(--animate-bounce)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-manipulation{touch-action:manipulation}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-stretch{justify-content:stretch}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.rounded-br-sm{border-bottom-right-radius:var(--radius-sm)}.rounded-bl-sm{border-bottom-left-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-3{border-style:var(--tw-border-style);border-width:3px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-none{--tw-border-style:none;border-style:none}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-600{border-color:var(--color-blue-600)}.border-blue-800{border-color:var(--color-blue-800)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-300{border-color:var(--color-red-300)}.border-transparent{border-color:#0000}.border-yellow-200{border-color:var(--color-yellow-200)}.border-t-blue-500{border-top-color:var(--color-blue-500)}.bg-\\[var\\(--widget-primary-color\\)\\]{background-color:var(--widget-primary-color)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.bg-white\\/5{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.bg-white\\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.bg-white\\/15{background-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.bg-white\\/15{background-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.bg-white\\/20{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.bg-white\\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-blue-600{--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-900{--tw-gradient-from:var(--color-blue-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-blue-600{--tw-gradient-via:var(--color-blue-600);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-blue-700{--tw-gradient-to:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-800{--tw-gradient-to:var(--color-blue-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-cyan-200{--tw-gradient-to:var(--color-cyan-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-\\[2px\\]{padding-inline:2px}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-8{padding-block:calc(var(--spacing)*8)}.py-\\[18px\\]{padding-block:18px}.pt-5{padding-top:calc(var(--spacing)*5)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-12{padding-right:calc(var(--spacing)*12)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-\\[81px\\]{padding-bottom:81px}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-12{padding-left:calc(var(--spacing)*12)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-words{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-red-400{color:var(--color-red-400)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.text-yellow-700{color:var(--color-yellow-700)}.text-yellow-800{color:var(--color-yellow-800)}.italic{font-style:italic}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.no-underline{text-decoration-line:none}.opacity-25{opacity:.25}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.last\\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\\:-translate-y-0\\.5:hover{--tw-translate-y:calc(var(--spacing)*-.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:bg-\\[var\\(--widget-primary-color\\)\\]\\/90:hover{background-color:var(--widget-primary-color)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-\\[var\\(--widget-primary-color\\)\\]\\/90:hover{background-color:color-mix(in oklab,var(--widget-primary-color)90%,transparent)}}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\\:bg-red-200:hover{background-color:var(--color-red-200)}.hover\\:bg-white\\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/10:hover{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.hover\\:bg-white\\/25:hover{background-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/25:hover{background-color:color-mix(in oklab,var(--color-white)25%,transparent)}}.hover\\:bg-yellow-200:hover{background-color:var(--color-yellow-200)}.hover\\:text-blue-500:hover{color:var(--color-blue-500)}.hover\\:text-blue-700:hover{color:var(--color-blue-700)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-red-800:hover{color:var(--color-red-800)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:shadow-sm:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\\:border-transparent:focus{border-color:#0000}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\\:ring-gray-500:focus{--tw-ring-color:var(--color-gray-500)}.focus\\:ring-red-500:focus{--tw-ring-color:var(--color-red-500)}.focus\\:ring-white\\/50:focus{--tw-ring-color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-white\\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.focus\\:ring-yellow-500:focus{--tw-ring-color:var(--color-yellow-500)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-blue-600:focus{--tw-ring-offset-color:var(--color-blue-600)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:translate-y-0:active{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:bg-gray-50:active{background-color:var(--color-gray-50)}.active\\:bg-gray-100:active{background-color:var(--color-gray-100)}.active\\:bg-gray-300:active{background-color:var(--color-gray-300)}.active\\:bg-white\\/20:active{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.active\\:bg-white\\/20:active{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.active\\:text-blue-600:active{color:var(--color-blue-600)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-100:disabled{background-color:var(--color-gray-100)}.disabled\\:bg-gray-300:disabled{background-color:var(--color-gray-300)}.disabled\\:opacity-50:disabled{opacity:.5}@media (hover:hover){.disabled\\:hover\\:text-gray-400:disabled:hover{color:var(--color-gray-400)}}@media (prefers-reduced-motion:reduce){.motion-reduce\\:transition-none{transition-property:none}@media (hover:hover){.motion-reduce\\:hover\\:scale-100:hover{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}}.motion-reduce\\:active\\:scale-100:active{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}}@media not all and (min-width:40rem){.max-sm\\:fixed{position:fixed}.max-sm\\:inset-4{inset:calc(var(--spacing)*4)}.max-sm\\:top-4{top:calc(var(--spacing)*4)}.max-sm\\:right-2{right:calc(var(--spacing)*2)}.max-sm\\:right-4{right:calc(var(--spacing)*4)}.max-sm\\:bottom-4{bottom:calc(var(--spacing)*4)}.max-sm\\:bottom-16{bottom:calc(var(--spacing)*16)}.max-sm\\:bottom-20{bottom:calc(var(--spacing)*20)}.max-sm\\:left-2{left:calc(var(--spacing)*2)}.max-sm\\:left-4{left:calc(var(--spacing)*4)}.max-sm\\:mb-2{margin-bottom:calc(var(--spacing)*2)}.max-sm\\:h-3{height:calc(var(--spacing)*3)}.max-sm\\:h-3\\.5{height:calc(var(--spacing)*3.5)}.max-sm\\:h-4{height:calc(var(--spacing)*4)}.max-sm\\:h-5{height:calc(var(--spacing)*5)}.max-sm\\:h-6{height:calc(var(--spacing)*6)}.max-sm\\:h-7{height:calc(var(--spacing)*7)}.max-sm\\:h-14{height:calc(var(--spacing)*14)}.max-sm\\:h-\\[72px\\]{height:72px}.max-sm\\:h-auto{height:auto}.max-sm\\:max-h-\\[calc\\(100vh-8rem\\)\\]{max-height:calc(100vh - 8rem)}.max-sm\\:min-h-\\[40px\\]{min-height:40px}.max-sm\\:w-3{width:calc(var(--spacing)*3)}.max-sm\\:w-3\\.5{width:calc(var(--spacing)*3.5)}.max-sm\\:w-4{width:calc(var(--spacing)*4)}.max-sm\\:w-5{width:calc(var(--spacing)*5)}.max-sm\\:w-6{width:calc(var(--spacing)*6)}.max-sm\\:w-7{width:calc(var(--spacing)*7)}.max-sm\\:w-14{width:calc(var(--spacing)*14)}.max-sm\\:w-\\[calc\\(100vw-2\\.5rem\\)\\]{width:calc(100vw - 2.5rem)}.max-sm\\:w-auto{width:auto}.max-sm\\:min-w-\\[40px\\]{min-width:40px}.max-sm\\:gap-1\\.5{gap:calc(var(--spacing)*1.5)}.max-sm\\:gap-2{gap:calc(var(--spacing)*2)}:where(.max-sm\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}.max-sm\\:rounded-xl{border-radius:var(--radius-xl)}.max-sm\\:p-1{padding:calc(var(--spacing)*1)}.max-sm\\:p-1\\.5{padding:calc(var(--spacing)*1.5)}.max-sm\\:p-2{padding:calc(var(--spacing)*2)}.max-sm\\:p-2\\.5{padding:calc(var(--spacing)*2.5)}.max-sm\\:p-3{padding:calc(var(--spacing)*3)}.max-sm\\:p-4{padding:calc(var(--spacing)*4)}.max-sm\\:px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.max-sm\\:px-3{padding-inline:calc(var(--spacing)*3)}.max-sm\\:px-\\[1px\\]{padding-inline:1px}.max-sm\\:py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.max-sm\\:py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.max-sm\\:py-\\[14px\\]{padding-block:14px}.max-sm\\:pt-4{padding-top:calc(var(--spacing)*4)}.max-sm\\:pr-3{padding-right:calc(var(--spacing)*3)}.max-sm\\:pr-10{padding-right:calc(var(--spacing)*10)}.max-sm\\:pb-\\[72px\\]{padding-bottom:72px}.max-sm\\:pl-10{padding-left:calc(var(--spacing)*10)}.max-sm\\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.max-sm\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.max-sm\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.max-sm\\:text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}}@media (min-width:40rem){.sm\\:h-\\[704px\\]{height:704px}.sm\\:w-96{width:calc(var(--spacing)*96)}}@media (min-width:48rem){.md\\:h-\\[704px\\]{height:704px}}@media (min-width:64rem){.lg\\:max-w-sm{max-width:var(--container-sm)}}@media not all and (min-width:40rem){@media (orientation:landscape){.max-sm\\:landscape\\:inset-2{inset:calc(var(--spacing)*2)}.max-sm\\:landscape\\:top-2{top:calc(var(--spacing)*2)}.max-sm\\:landscape\\:right-4{right:calc(var(--spacing)*4)}.max-sm\\:landscape\\:bottom-2{bottom:calc(var(--spacing)*2)}.max-sm\\:landscape\\:bottom-16{bottom:calc(var(--spacing)*16)}.max-sm\\:landscape\\:left-4{left:calc(var(--spacing)*4)}.max-sm\\:landscape\\:max-h-\\[calc\\(100vh-4rem\\)\\]{max-height:calc(100vh - 4rem)}}}.\\[\\&_\\*\\]\\:text-right *{text-align:right}}:host{all:initial;z-index:var(--widget-z-index,2147480000);font-family:var(--widget-font-family,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell",sans-serif);font-size:var(--widget-font-size-base,14px);color:var(--widget-text-primary,#000);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;pointer-events:none;direction:ltr;line-height:1.4;display:block;position:fixed;bottom:0;right:0}:host([dir=rtl]){direction:rtl;left:0;right:auto}:host *{pointer-events:auto}:host *,:host :before,:host :after{box-sizing:border-box}:host .fixed{position:fixed}:host .absolute{position:absolute}:host .relative{position:relative}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}';
8067
8075
  const getWidgetStyles = () => widgetCss;
8068
- class AnalytickWidget extends HTMLElement {
8076
+ let AnalytickWidget$1 = class AnalytickWidget extends HTMLElement {
8069
8077
  constructor() {
8070
8078
  super();
8071
8079
  __publicField(this, "shadowRoot");
@@ -8073,7 +8081,10 @@ class AnalytickWidget extends HTMLElement {
8073
8081
  __publicField(this, "isInitialized", false);
8074
8082
  this.shadowRoot = this.attachShadow({ mode: "closed" });
8075
8083
  }
8076
- // Properties to allow programmatic access
8084
+ static get observedAttributes() {
8085
+ return ["org-id", "widget-id", "base-url", "primary-color", "secondary-color", "theme", "language", "position", "auto-open", "greeting-message", "rtl"];
8086
+ }
8087
+ // Getters and Setters for properties
8077
8088
  get orgId() {
8078
8089
  return this.getAttribute("org-id");
8079
8090
  }
@@ -8109,8 +8120,47 @@ class AnalytickWidget extends HTMLElement {
8109
8120
  if (value) this.setAttribute("secondary-color", value);
8110
8121
  else this.removeAttribute("secondary-color");
8111
8122
  }
8112
- static get observedAttributes() {
8113
- return ["org-id", "widget-id", "base-url", "primary-color", "secondary-color"];
8123
+ get theme() {
8124
+ return this.getAttribute("theme");
8125
+ }
8126
+ set theme(value) {
8127
+ if (value) this.setAttribute("theme", value);
8128
+ else this.removeAttribute("theme");
8129
+ }
8130
+ get language() {
8131
+ return this.getAttribute("language");
8132
+ }
8133
+ set language(value) {
8134
+ if (value) this.setAttribute("language", value);
8135
+ else this.removeAttribute("language");
8136
+ }
8137
+ get position() {
8138
+ return this.getAttribute("position");
8139
+ }
8140
+ set position(value) {
8141
+ if (value) this.setAttribute("position", value);
8142
+ else this.removeAttribute("position");
8143
+ }
8144
+ get autoOpen() {
8145
+ return this.hasAttribute("auto-open");
8146
+ }
8147
+ set autoOpen(value) {
8148
+ if (value) this.setAttribute("auto-open", "");
8149
+ else this.removeAttribute("auto-open");
8150
+ }
8151
+ get greetingMessage() {
8152
+ return this.getAttribute("greeting-message");
8153
+ }
8154
+ set greetingMessage(value) {
8155
+ if (value) this.setAttribute("greeting-message", value);
8156
+ else this.removeAttribute("greeting-message");
8157
+ }
8158
+ get rtl() {
8159
+ return this.hasAttribute("rtl");
8160
+ }
8161
+ set rtl(value) {
8162
+ if (value) this.setAttribute("rtl", "");
8163
+ else this.removeAttribute("rtl");
8114
8164
  }
8115
8165
  connectedCallback() {
8116
8166
  if (!this.isInitialized) {
@@ -8135,10 +8185,8 @@ class AnalytickWidget extends HTMLElement {
8135
8185
  this.updateTheme();
8136
8186
  return;
8137
8187
  }
8138
- if (name === "org-id" || name === "widget-id" || name === "base-url") {
8139
- this.isInitialized = false;
8140
- this.initializeWidget();
8141
- }
8188
+ this.isInitialized = false;
8189
+ this.initializeWidget();
8142
8190
  }
8143
8191
  initializeWidget() {
8144
8192
  if (this.isInitialized) {
@@ -8159,17 +8207,33 @@ class AnalytickWidget extends HTMLElement {
8159
8207
  this.renderError("Invalid base URL configuration");
8160
8208
  return;
8161
8209
  }
8162
- const language = this.detectLanguage();
8210
+ const language = this.getAttribute("language") || this.detectLanguage();
8211
+ const themeName = this.getAttribute("theme");
8212
+ const position = this.getAttribute("position");
8213
+ const autoOpen = this.hasAttribute("auto-open");
8214
+ const greetingMessage = this.getAttribute("greeting-message");
8215
+ const rtl = this.hasAttribute("rtl");
8216
+ const primaryColor = this.getAttribute("primary-color");
8217
+ const secondaryColor = this.getAttribute("secondary-color");
8163
8218
  this.config = {
8164
8219
  orgId: orgId.trim(),
8165
8220
  widgetId: widgetId.trim(),
8166
8221
  baseUrl: baseUrl.trim(),
8167
- language
8222
+ language,
8223
+ themeName: themeName || void 0,
8224
+ position: position || void 0,
8225
+ autoOpen,
8226
+ greetingMessage: greetingMessage || void 0,
8227
+ rtl,
8228
+ theme: {
8229
+ primaryColor: (primaryColor == null ? void 0 : primaryColor.trim()) || void 0,
8230
+ secondaryColor: (secondaryColor == null ? void 0 : secondaryColor.trim()) || void 0
8231
+ }
8168
8232
  };
8169
8233
  this.setupShadowDOM();
8170
8234
  try {
8171
8235
  G$1(
8172
- /* @__PURE__ */ u$1(StompConnectionProvider, { children: /* @__PURE__ */ u$1(WidgetManager, { config: this.config }) }),
8236
+ /* @__PURE__ */ u(StompConnectionProvider, { children: /* @__PURE__ */ u(WidgetManager, { config: this.config }) }),
8173
8237
  this.shadowRoot
8174
8238
  );
8175
8239
  this.isInitialized = true;
@@ -8283,11 +8347,11 @@ class AnalytickWidget extends HTMLElement {
8283
8347
  </div>
8284
8348
  `;
8285
8349
  }
8286
- }
8350
+ };
8287
8351
  const init = (config) => {
8288
8352
  if (typeof window === "undefined") return;
8289
8353
  if (!customElements.get("analytick-widget")) {
8290
- customElements.define("analytick-widget", AnalytickWidget);
8354
+ customElements.define("analytick-widget", AnalytickWidget$1);
8291
8355
  }
8292
8356
  if (config) {
8293
8357
  const widget = document.createElement("analytick-widget");
@@ -8305,12 +8369,35 @@ const init = (config) => {
8305
8369
  return widget;
8306
8370
  }
8307
8371
  };
8372
+ const AnalytickWidget2 = D((props, ref) => {
8373
+ if (typeof window === "undefined") return null;
8374
+ if (!customElements.get("analytick-widget")) {
8375
+ customElements.define("analytick-widget", AnalytickWidget$1);
8376
+ }
8377
+ return _("analytick-widget", {
8378
+ "org-id": props.orgId,
8379
+ "widget-id": props.widgetId,
8380
+ "base-url": props.baseUrl,
8381
+ "primary-color": props.primaryColor,
8382
+ "secondary-color": props.secondaryColor,
8383
+ theme: props.theme,
8384
+ language: props.language,
8385
+ position: props.position,
8386
+ "auto-open": props.autoOpen ? "" : void 0,
8387
+ "greeting-message": props.greetingMessage,
8388
+ rtl: props.rtl ? "" : void 0,
8389
+ ref: ref || null
8390
+ });
8391
+ });
8308
8392
  if (typeof window !== "undefined" && !customElements.get("analytick-widget")) {
8309
- customElements.define("analytick-widget", AnalytickWidget);
8393
+ customElements.define("analytick-widget", AnalytickWidget$1);
8310
8394
  }
8311
8395
  if (typeof window !== "undefined") {
8312
8396
  const globalWidget = {
8313
- AnalytickWidget,
8397
+ AnalytickWidget: AnalytickWidget$1,
8398
+ // Keep class for global access
8399
+ AnalytickWidgetComponent: AnalytickWidget2,
8400
+ // Functional component
8314
8401
  init,
8315
8402
  // Version info for debugging
8316
8403
  version: "1.0.0"
@@ -8321,6 +8408,7 @@ if (typeof window !== "undefined") {
8321
8408
  windowWithWidget.Widget.Analytick = globalWidget;
8322
8409
  }
8323
8410
  export {
8324
- AnalytickWidget,
8411
+ AnalytickWidget2 as AnalytickWidget,
8412
+ AnalytickWidget$1 as AnalytickWidgetElement,
8325
8413
  init
8326
8414
  };