@mypatientspace/chatbot-widget 1.0.70 → 1.0.72

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.
@@ -44,7 +44,7 @@ var np;
44
44
  function G0() {
45
45
  return np || (np = 1, Tc.exports = Y0()), Tc.exports;
46
46
  }
47
- var S = G0(), Ec = { exports: {} }, Ti = {}, zc = { exports: {} }, Ac = {};
47
+ var x = G0(), Ec = { exports: {} }, Ti = {}, zc = { exports: {} }, Ac = {};
48
48
  var ap;
49
49
  function Q0() {
50
50
  return ap || (ap = 1, (function(l) {
@@ -67,9 +67,9 @@ function Q0() {
67
67
  if (at !== K) {
68
68
  D[0] = at;
69
69
  t: for (var Tt = 0, Mt = D.length, v = Mt >>> 1; Tt < v; ) {
70
- var H = 2 * (Tt + 1) - 1, W = D[H], F = H + 1, rt = D[F];
70
+ var U = 2 * (Tt + 1) - 1, W = D[U], F = U + 1, rt = D[F];
71
71
  if (0 > d(W, at))
72
- F < Mt && 0 > d(rt, W) ? (D[Tt] = rt, D[F] = at, Tt = F) : (D[Tt] = W, D[H] = at, Tt = H);
72
+ F < Mt && 0 > d(rt, W) ? (D[Tt] = rt, D[F] = at, Tt = F) : (D[Tt] = W, D[U] = at, Tt = U);
73
73
  else if (F < Mt && 0 > d(rt, at))
74
74
  D[Tt] = rt, D[F] = at, Tt = F;
75
75
  else break t;
@@ -92,19 +92,19 @@ function Q0() {
92
92
  return y.now() - T;
93
93
  };
94
94
  }
95
- var x = [], g = [], A = 1, z = null, k = 3, X = !1, Q = !1, Y = !1, R = !1, Z = typeof setTimeout == "function" ? setTimeout : null, P = typeof clearTimeout == "function" ? clearTimeout : null, V = typeof setImmediate < "u" ? setImmediate : null;
95
+ var S = [], g = [], A = 1, z = null, k = 3, X = !1, Q = !1, Y = !1, R = !1, Z = typeof setTimeout == "function" ? setTimeout : null, P = typeof clearTimeout == "function" ? clearTimeout : null, V = typeof setImmediate < "u" ? setImmediate : null;
96
96
  function ut(D) {
97
97
  for (var K = s(g); K !== null; ) {
98
98
  if (K.callback === null) r(g);
99
99
  else if (K.startTime <= D)
100
- r(g), K.sortIndex = K.expirationTime, u(x, K);
100
+ r(g), K.sortIndex = K.expirationTime, u(S, K);
101
101
  else break;
102
102
  K = s(g);
103
103
  }
104
104
  }
105
105
  function N(D) {
106
106
  if (Y = !1, ut(D), !Q)
107
- if (s(x) !== null)
107
+ if (s(S) !== null)
108
108
  Q = !0, it || (it = !0, Yt());
109
109
  else {
110
110
  var K = s(g);
@@ -126,7 +126,7 @@ function Q0() {
126
126
  var at = k;
127
127
  try {
128
128
  e: {
129
- for (ut(D), z = s(x); z !== null && !(z.expirationTime > D && L()); ) {
129
+ for (ut(D), z = s(S); z !== null && !(z.expirationTime > D && L()); ) {
130
130
  var Tt = z.callback;
131
131
  if (typeof Tt == "function") {
132
132
  z.callback = null, k = z.priorityLevel;
@@ -137,9 +137,9 @@ function Q0() {
137
137
  z.callback = Mt, ut(D), K = !0;
138
138
  break e;
139
139
  }
140
- z === s(x) && r(x), ut(D);
141
- } else r(x);
142
- z = s(x);
140
+ z === s(S) && r(S), ut(D);
141
+ } else r(S);
142
+ z = s(S);
143
143
  }
144
144
  if (z !== null) K = !0;
145
145
  else {
@@ -250,7 +250,7 @@ function Q0() {
250
250
  startTime: at,
251
251
  expirationTime: Mt,
252
252
  sortIndex: -1
253
- }, at > Tt ? (D.sortIndex = at, u(g, D), s(x) === null && D === s(g) && (Y ? (P(J), J = -1) : Y = !0, Te(N, at - Tt))) : (D.sortIndex = Mt, u(x, D), Q || X || (Q = !0, it || (it = !0, Yt()))), D;
253
+ }, at > Tt ? (D.sortIndex = at, u(g, D), s(S) === null && D === s(g) && (Y ? (P(J), J = -1) : Y = !0, Te(N, at - Tt))) : (D.sortIndex = Mt, u(S, D), Q || X || (Q = !0, it || (it = !0, Yt()))), D;
254
254
  }, l.unstable_shouldYield = L, l.unstable_wrapCallback = function(D) {
255
255
  var K = k;
256
256
  return function() {
@@ -274,7 +274,7 @@ var ip;
274
274
  function V0() {
275
275
  if (ip) return ct;
276
276
  ip = 1;
277
- var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), u = /* @__PURE__ */ Symbol.for("react.portal"), s = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), d = /* @__PURE__ */ Symbol.for("react.profiler"), h = /* @__PURE__ */ Symbol.for("react.consumer"), y = /* @__PURE__ */ Symbol.for("react.context"), T = /* @__PURE__ */ Symbol.for("react.forward_ref"), x = /* @__PURE__ */ Symbol.for("react.suspense"), g = /* @__PURE__ */ Symbol.for("react.memo"), A = /* @__PURE__ */ Symbol.for("react.lazy"), z = /* @__PURE__ */ Symbol.for("react.activity"), k = Symbol.iterator;
277
+ var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), u = /* @__PURE__ */ Symbol.for("react.portal"), s = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), d = /* @__PURE__ */ Symbol.for("react.profiler"), h = /* @__PURE__ */ Symbol.for("react.consumer"), y = /* @__PURE__ */ Symbol.for("react.context"), T = /* @__PURE__ */ Symbol.for("react.forward_ref"), S = /* @__PURE__ */ Symbol.for("react.suspense"), g = /* @__PURE__ */ Symbol.for("react.memo"), A = /* @__PURE__ */ Symbol.for("react.lazy"), z = /* @__PURE__ */ Symbol.for("react.activity"), k = Symbol.iterator;
278
278
  function X(v) {
279
279
  return v === null || typeof v != "object" ? null : (v = k && v[k] || v["@@iterator"], typeof v == "function" ? v : null);
280
280
  }
@@ -289,23 +289,23 @@ function V0() {
289
289
  enqueueSetState: function() {
290
290
  }
291
291
  }, Y = Object.assign, R = {};
292
- function Z(v, H, W) {
293
- this.props = v, this.context = H, this.refs = R, this.updater = W || Q;
292
+ function Z(v, U, W) {
293
+ this.props = v, this.context = U, this.refs = R, this.updater = W || Q;
294
294
  }
295
- Z.prototype.isReactComponent = {}, Z.prototype.setState = function(v, H) {
295
+ Z.prototype.isReactComponent = {}, Z.prototype.setState = function(v, U) {
296
296
  if (typeof v != "object" && typeof v != "function" && v != null)
297
297
  throw Error(
298
298
  "takes an object of state variables to update or a function which returns an object of state variables."
299
299
  );
300
- this.updater.enqueueSetState(this, v, H, "setState");
300
+ this.updater.enqueueSetState(this, v, U, "setState");
301
301
  }, Z.prototype.forceUpdate = function(v) {
302
302
  this.updater.enqueueForceUpdate(this, v, "forceUpdate");
303
303
  };
304
304
  function P() {
305
305
  }
306
306
  P.prototype = Z.prototype;
307
- function V(v, H, W) {
308
- this.props = v, this.context = H, this.refs = R, this.updater = W || Q;
307
+ function V(v, U, W) {
308
+ this.props = v, this.context = U, this.refs = R, this.updater = W || Q;
309
309
  }
310
310
  var ut = V.prototype = new P();
311
311
  ut.constructor = V, Y(ut, Z.prototype), ut.isPureReactComponent = !0;
@@ -313,31 +313,31 @@ function V0() {
313
313
  function it() {
314
314
  }
315
315
  var J = { H: null, A: null, T: null, S: null }, Nt = Object.prototype.hasOwnProperty;
316
- function Xt(v, H, W) {
316
+ function Xt(v, U, W) {
317
317
  var F = W.ref;
318
318
  return {
319
319
  $$typeof: l,
320
320
  type: v,
321
- key: H,
321
+ key: U,
322
322
  ref: F !== void 0 ? F : null,
323
323
  props: W
324
324
  };
325
325
  }
326
- function L(v, H) {
327
- return Xt(v.type, H, v.props);
326
+ function L(v, U) {
327
+ return Xt(v.type, U, v.props);
328
328
  }
329
329
  function vt(v) {
330
330
  return typeof v == "object" && v !== null && v.$$typeof === l;
331
331
  }
332
332
  function Yt(v) {
333
- var H = { "=": "=0", ":": "=2" };
333
+ var U = { "=": "=0", ":": "=2" };
334
334
  return "$" + v.replace(/[=:]/g, function(W) {
335
- return H[W];
335
+ return U[W];
336
336
  });
337
337
  }
338
338
  var Lt = /\/+/g;
339
- function Pt(v, H) {
340
- return typeof v == "object" && v !== null && v.key != null ? Yt("" + v.key) : H.toString(36);
339
+ function Pt(v, U) {
340
+ return typeof v == "object" && v !== null && v.key != null ? Yt("" + v.key) : U.toString(36);
341
341
  }
342
342
  function Te(v) {
343
343
  switch (v.status) {
@@ -347,11 +347,11 @@ function V0() {
347
347
  throw v.reason;
348
348
  default:
349
349
  switch (typeof v.status == "string" ? v.then(it, it) : (v.status = "pending", v.then(
350
- function(H) {
351
- v.status === "pending" && (v.status = "fulfilled", v.value = H);
350
+ function(U) {
351
+ v.status === "pending" && (v.status = "fulfilled", v.value = U);
352
352
  },
353
- function(H) {
354
- v.status === "pending" && (v.status = "rejected", v.reason = H);
353
+ function(U) {
354
+ v.status === "pending" && (v.status = "rejected", v.reason = U);
355
355
  }
356
356
  )), v.status) {
357
357
  case "fulfilled":
@@ -362,7 +362,7 @@ function V0() {
362
362
  }
363
363
  throw v;
364
364
  }
365
- function D(v, H, W, F, rt) {
365
+ function D(v, U, W, F, rt) {
366
366
  var pt = typeof v;
367
367
  (pt === "undefined" || pt === "boolean") && (v = null);
368
368
  var Et = !1;
@@ -383,7 +383,7 @@ function V0() {
383
383
  case A:
384
384
  return Et = v._init, D(
385
385
  Et(v._payload),
386
- H,
386
+ U,
387
387
  W,
388
388
  F,
389
389
  rt
@@ -391,7 +391,7 @@ function V0() {
391
391
  }
392
392
  }
393
393
  if (Et)
394
- return rt = rt(v), Et = F === "" ? "." + Pt(v, 0) : F, N(rt) ? (W = "", Et != null && (W = Et.replace(Lt, "$&/") + "/"), D(rt, H, W, "", function(bn) {
394
+ return rt = rt(v), Et = F === "" ? "." + Pt(v, 0) : F, N(rt) ? (W = "", Et != null && (W = Et.replace(Lt, "$&/") + "/"), D(rt, U, W, "", function(bn) {
395
395
  return bn;
396
396
  })) : rt != null && (vt(rt) && (rt = L(
397
397
  rt,
@@ -399,14 +399,14 @@ function V0() {
399
399
  Lt,
400
400
  "$&/"
401
401
  ) + "/") + Et
402
- )), H.push(rt)), 1;
402
+ )), U.push(rt)), 1;
403
403
  Et = 0;
404
404
  var fe = F === "" ? "." : F + ":";
405
405
  if (N(v))
406
406
  for (var Kt = 0; Kt < v.length; Kt++)
407
407
  F = v[Kt], pt = fe + Pt(F, Kt), Et += D(
408
408
  F,
409
- H,
409
+ U,
410
410
  W,
411
411
  pt,
412
412
  rt
@@ -415,7 +415,7 @@ function V0() {
415
415
  for (v = Kt.call(v), Kt = 0; !(F = v.next()).done; )
416
416
  F = F.value, pt = fe + Pt(F, Kt++), Et += D(
417
417
  F,
418
- H,
418
+ U,
419
419
  W,
420
420
  pt,
421
421
  rt
@@ -424,48 +424,48 @@ function V0() {
424
424
  if (typeof v.then == "function")
425
425
  return D(
426
426
  Te(v),
427
- H,
427
+ U,
428
428
  W,
429
429
  F,
430
430
  rt
431
431
  );
432
- throw H = String(v), Error(
433
- "Objects are not valid as a React child (found: " + (H === "[object Object]" ? "object with keys {" + Object.keys(v).join(", ") + "}" : H) + "). If you meant to render a collection of children, use an array instead."
432
+ throw U = String(v), Error(
433
+ "Objects are not valid as a React child (found: " + (U === "[object Object]" ? "object with keys {" + Object.keys(v).join(", ") + "}" : U) + "). If you meant to render a collection of children, use an array instead."
434
434
  );
435
435
  }
436
436
  return Et;
437
437
  }
438
- function K(v, H, W) {
438
+ function K(v, U, W) {
439
439
  if (v == null) return v;
440
440
  var F = [], rt = 0;
441
441
  return D(v, F, "", "", function(pt) {
442
- return H.call(W, pt, rt++);
442
+ return U.call(W, pt, rt++);
443
443
  }), F;
444
444
  }
445
445
  function at(v) {
446
446
  if (v._status === -1) {
447
- var H = v._result;
448
- H = H(), H.then(
447
+ var U = v._result;
448
+ U = U(), U.then(
449
449
  function(W) {
450
450
  (v._status === 0 || v._status === -1) && (v._status = 1, v._result = W);
451
451
  },
452
452
  function(W) {
453
453
  (v._status === 0 || v._status === -1) && (v._status = 2, v._result = W);
454
454
  }
455
- ), v._status === -1 && (v._status = 0, v._result = H);
455
+ ), v._status === -1 && (v._status = 0, v._result = U);
456
456
  }
457
457
  if (v._status === 1) return v._result.default;
458
458
  throw v._result;
459
459
  }
460
460
  var Tt = typeof reportError == "function" ? reportError : function(v) {
461
461
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
462
- var H = new window.ErrorEvent("error", {
462
+ var U = new window.ErrorEvent("error", {
463
463
  bubbles: !0,
464
464
  cancelable: !0,
465
465
  message: typeof v == "object" && v !== null && typeof v.message == "string" ? String(v.message) : String(v),
466
466
  error: v
467
467
  });
468
- if (!window.dispatchEvent(H)) return;
468
+ if (!window.dispatchEvent(U)) return;
469
469
  } else if (typeof process == "object" && typeof process.emit == "function") {
470
470
  process.emit("uncaughtException", v);
471
471
  return;
@@ -473,24 +473,24 @@ function V0() {
473
473
  console.error(v);
474
474
  }, Mt = {
475
475
  map: K,
476
- forEach: function(v, H, W) {
476
+ forEach: function(v, U, W) {
477
477
  K(
478
478
  v,
479
479
  function() {
480
- H.apply(this, arguments);
480
+ U.apply(this, arguments);
481
481
  },
482
482
  W
483
483
  );
484
484
  },
485
485
  count: function(v) {
486
- var H = 0;
486
+ var U = 0;
487
487
  return K(v, function() {
488
- H++;
489
- }), H;
488
+ U++;
489
+ }), U;
490
490
  },
491
491
  toArray: function(v) {
492
- return K(v, function(H) {
493
- return H;
492
+ return K(v, function(U) {
493
+ return U;
494
494
  }) || [];
495
495
  },
496
496
  only: function(v) {
@@ -501,7 +501,7 @@ function V0() {
501
501
  return v;
502
502
  }
503
503
  };
504
- return ct.Activity = z, ct.Children = Mt, ct.Component = Z, ct.Fragment = s, ct.Profiler = d, ct.PureComponent = V, ct.StrictMode = r, ct.Suspense = x, ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = J, ct.__COMPILER_RUNTIME = {
504
+ return ct.Activity = z, ct.Children = Mt, ct.Component = Z, ct.Fragment = s, ct.Profiler = d, ct.PureComponent = V, ct.StrictMode = r, ct.Suspense = S, ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = J, ct.__COMPILER_RUNTIME = {
505
505
  __proto__: null,
506
506
  c: function(v) {
507
507
  return J.H.useMemoCache(v);
@@ -512,15 +512,15 @@ function V0() {
512
512
  };
513
513
  }, ct.cacheSignal = function() {
514
514
  return null;
515
- }, ct.cloneElement = function(v, H, W) {
515
+ }, ct.cloneElement = function(v, U, W) {
516
516
  if (v == null)
517
517
  throw Error(
518
518
  "The argument must be a React element, but you passed " + v + "."
519
519
  );
520
520
  var F = Y({}, v.props), rt = v.key;
521
- if (H != null)
522
- for (pt in H.key !== void 0 && (rt = "" + H.key), H)
523
- !Nt.call(H, pt) || pt === "key" || pt === "__self" || pt === "__source" || pt === "ref" && H.ref === void 0 || (F[pt] = H[pt]);
521
+ if (U != null)
522
+ for (pt in U.key !== void 0 && (rt = "" + U.key), U)
523
+ !Nt.call(U, pt) || pt === "key" || pt === "__self" || pt === "__source" || pt === "ref" && U.ref === void 0 || (F[pt] = U[pt]);
524
524
  var pt = arguments.length - 2;
525
525
  if (pt === 1) F.children = W;
526
526
  else if (1 < pt) {
@@ -541,11 +541,11 @@ function V0() {
541
541
  $$typeof: h,
542
542
  _context: v
543
543
  }, v;
544
- }, ct.createElement = function(v, H, W) {
544
+ }, ct.createElement = function(v, U, W) {
545
545
  var F, rt = {}, pt = null;
546
- if (H != null)
547
- for (F in H.key !== void 0 && (pt = "" + H.key), H)
548
- Nt.call(H, F) && F !== "key" && F !== "__self" && F !== "__source" && (rt[F] = H[F]);
546
+ if (U != null)
547
+ for (F in U.key !== void 0 && (pt = "" + U.key), U)
548
+ Nt.call(U, F) && F !== "key" && F !== "__self" && F !== "__source" && (rt[F] = U[F]);
549
549
  var Et = arguments.length - 2;
550
550
  if (Et === 1) rt.children = W;
551
551
  else if (1 < Et) {
@@ -567,14 +567,14 @@ function V0() {
567
567
  _payload: { _status: -1, _result: v },
568
568
  _init: at
569
569
  };
570
- }, ct.memo = function(v, H) {
570
+ }, ct.memo = function(v, U) {
571
571
  return {
572
572
  $$typeof: g,
573
573
  type: v,
574
- compare: H === void 0 ? null : H
574
+ compare: U === void 0 ? null : U
575
575
  };
576
576
  }, ct.startTransition = function(v) {
577
- var H = J.T, W = {};
577
+ var U = J.T, W = {};
578
578
  J.T = W;
579
579
  try {
580
580
  var F = v(), rt = J.S;
@@ -582,47 +582,47 @@ function V0() {
582
582
  } catch (pt) {
583
583
  Tt(pt);
584
584
  } finally {
585
- H !== null && W.types !== null && (H.types = W.types), J.T = H;
585
+ U !== null && W.types !== null && (U.types = W.types), J.T = U;
586
586
  }
587
587
  }, ct.unstable_useCacheRefresh = function() {
588
588
  return J.H.useCacheRefresh();
589
589
  }, ct.use = function(v) {
590
590
  return J.H.use(v);
591
- }, ct.useActionState = function(v, H, W) {
592
- return J.H.useActionState(v, H, W);
593
- }, ct.useCallback = function(v, H) {
594
- return J.H.useCallback(v, H);
591
+ }, ct.useActionState = function(v, U, W) {
592
+ return J.H.useActionState(v, U, W);
593
+ }, ct.useCallback = function(v, U) {
594
+ return J.H.useCallback(v, U);
595
595
  }, ct.useContext = function(v) {
596
596
  return J.H.useContext(v);
597
597
  }, ct.useDebugValue = function() {
598
- }, ct.useDeferredValue = function(v, H) {
599
- return J.H.useDeferredValue(v, H);
600
- }, ct.useEffect = function(v, H) {
601
- return J.H.useEffect(v, H);
598
+ }, ct.useDeferredValue = function(v, U) {
599
+ return J.H.useDeferredValue(v, U);
600
+ }, ct.useEffect = function(v, U) {
601
+ return J.H.useEffect(v, U);
602
602
  }, ct.useEffectEvent = function(v) {
603
603
  return J.H.useEffectEvent(v);
604
604
  }, ct.useId = function() {
605
605
  return J.H.useId();
606
- }, ct.useImperativeHandle = function(v, H, W) {
607
- return J.H.useImperativeHandle(v, H, W);
608
- }, ct.useInsertionEffect = function(v, H) {
609
- return J.H.useInsertionEffect(v, H);
610
- }, ct.useLayoutEffect = function(v, H) {
611
- return J.H.useLayoutEffect(v, H);
612
- }, ct.useMemo = function(v, H) {
613
- return J.H.useMemo(v, H);
614
- }, ct.useOptimistic = function(v, H) {
615
- return J.H.useOptimistic(v, H);
616
- }, ct.useReducer = function(v, H, W) {
617
- return J.H.useReducer(v, H, W);
606
+ }, ct.useImperativeHandle = function(v, U, W) {
607
+ return J.H.useImperativeHandle(v, U, W);
608
+ }, ct.useInsertionEffect = function(v, U) {
609
+ return J.H.useInsertionEffect(v, U);
610
+ }, ct.useLayoutEffect = function(v, U) {
611
+ return J.H.useLayoutEffect(v, U);
612
+ }, ct.useMemo = function(v, U) {
613
+ return J.H.useMemo(v, U);
614
+ }, ct.useOptimistic = function(v, U) {
615
+ return J.H.useOptimistic(v, U);
616
+ }, ct.useReducer = function(v, U, W) {
617
+ return J.H.useReducer(v, U, W);
618
618
  }, ct.useRef = function(v) {
619
619
  return J.H.useRef(v);
620
620
  }, ct.useState = function(v) {
621
621
  return J.H.useState(v);
622
- }, ct.useSyncExternalStore = function(v, H, W) {
622
+ }, ct.useSyncExternalStore = function(v, U, W) {
623
623
  return J.H.useSyncExternalStore(
624
624
  v,
625
- H,
625
+ U,
626
626
  W
627
627
  );
628
628
  }, ct.useTransition = function() {
@@ -639,14 +639,14 @@ function Z0() {
639
639
  if (up) return be;
640
640
  up = 1;
641
641
  var l = Gc();
642
- function u(x) {
643
- var g = "https://react.dev/errors/" + x;
642
+ function u(S) {
643
+ var g = "https://react.dev/errors/" + S;
644
644
  if (1 < arguments.length) {
645
645
  g += "?args[]=" + encodeURIComponent(arguments[1]);
646
646
  for (var A = 2; A < arguments.length; A++)
647
647
  g += "&args[]=" + encodeURIComponent(arguments[A]);
648
648
  }
649
- return "Minified React error #" + x + "; visit " + g + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
649
+ return "Minified React error #" + S + "; visit " + g + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
650
650
  }
651
651
  function s() {
652
652
  }
@@ -667,75 +667,75 @@ function Z0() {
667
667
  p: 0,
668
668
  findDOMNode: null
669
669
  }, d = /* @__PURE__ */ Symbol.for("react.portal");
670
- function h(x, g, A) {
670
+ function h(S, g, A) {
671
671
  var z = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
672
672
  return {
673
673
  $$typeof: d,
674
674
  key: z == null ? null : "" + z,
675
- children: x,
675
+ children: S,
676
676
  containerInfo: g,
677
677
  implementation: A
678
678
  };
679
679
  }
680
680
  var y = l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
681
- function T(x, g) {
682
- if (x === "font") return "";
681
+ function T(S, g) {
682
+ if (S === "font") return "";
683
683
  if (typeof g == "string")
684
684
  return g === "use-credentials" ? g : "";
685
685
  }
686
- return be.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = r, be.createPortal = function(x, g) {
686
+ return be.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = r, be.createPortal = function(S, g) {
687
687
  var A = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
688
688
  if (!g || g.nodeType !== 1 && g.nodeType !== 9 && g.nodeType !== 11)
689
689
  throw Error(u(299));
690
- return h(x, g, null, A);
691
- }, be.flushSync = function(x) {
690
+ return h(S, g, null, A);
691
+ }, be.flushSync = function(S) {
692
692
  var g = y.T, A = r.p;
693
693
  try {
694
- if (y.T = null, r.p = 2, x) return x();
694
+ if (y.T = null, r.p = 2, S) return S();
695
695
  } finally {
696
696
  y.T = g, r.p = A, r.d.f();
697
697
  }
698
- }, be.preconnect = function(x, g) {
699
- typeof x == "string" && (g ? (g = g.crossOrigin, g = typeof g == "string" ? g === "use-credentials" ? g : "" : void 0) : g = null, r.d.C(x, g));
700
- }, be.prefetchDNS = function(x) {
701
- typeof x == "string" && r.d.D(x);
702
- }, be.preinit = function(x, g) {
703
- if (typeof x == "string" && g && typeof g.as == "string") {
698
+ }, be.preconnect = function(S, g) {
699
+ typeof S == "string" && (g ? (g = g.crossOrigin, g = typeof g == "string" ? g === "use-credentials" ? g : "" : void 0) : g = null, r.d.C(S, g));
700
+ }, be.prefetchDNS = function(S) {
701
+ typeof S == "string" && r.d.D(S);
702
+ }, be.preinit = function(S, g) {
703
+ if (typeof S == "string" && g && typeof g.as == "string") {
704
704
  var A = g.as, z = T(A, g.crossOrigin), k = typeof g.integrity == "string" ? g.integrity : void 0, X = typeof g.fetchPriority == "string" ? g.fetchPriority : void 0;
705
705
  A === "style" ? r.d.S(
706
- x,
706
+ S,
707
707
  typeof g.precedence == "string" ? g.precedence : void 0,
708
708
  {
709
709
  crossOrigin: z,
710
710
  integrity: k,
711
711
  fetchPriority: X
712
712
  }
713
- ) : A === "script" && r.d.X(x, {
713
+ ) : A === "script" && r.d.X(S, {
714
714
  crossOrigin: z,
715
715
  integrity: k,
716
716
  fetchPriority: X,
717
717
  nonce: typeof g.nonce == "string" ? g.nonce : void 0
718
718
  });
719
719
  }
720
- }, be.preinitModule = function(x, g) {
721
- if (typeof x == "string")
720
+ }, be.preinitModule = function(S, g) {
721
+ if (typeof S == "string")
722
722
  if (typeof g == "object" && g !== null) {
723
723
  if (g.as == null || g.as === "script") {
724
724
  var A = T(
725
725
  g.as,
726
726
  g.crossOrigin
727
727
  );
728
- r.d.M(x, {
728
+ r.d.M(S, {
729
729
  crossOrigin: A,
730
730
  integrity: typeof g.integrity == "string" ? g.integrity : void 0,
731
731
  nonce: typeof g.nonce == "string" ? g.nonce : void 0
732
732
  });
733
733
  }
734
- } else g == null && r.d.M(x);
735
- }, be.preload = function(x, g) {
736
- if (typeof x == "string" && typeof g == "object" && g !== null && typeof g.as == "string") {
734
+ } else g == null && r.d.M(S);
735
+ }, be.preload = function(S, g) {
736
+ if (typeof S == "string" && typeof g == "object" && g !== null && typeof g.as == "string") {
737
737
  var A = g.as, z = T(A, g.crossOrigin);
738
- r.d.L(x, A, {
738
+ r.d.L(S, A, {
739
739
  crossOrigin: z,
740
740
  integrity: typeof g.integrity == "string" ? g.integrity : void 0,
741
741
  nonce: typeof g.nonce == "string" ? g.nonce : void 0,
@@ -747,22 +747,22 @@ function Z0() {
747
747
  media: typeof g.media == "string" ? g.media : void 0
748
748
  });
749
749
  }
750
- }, be.preloadModule = function(x, g) {
751
- if (typeof x == "string")
750
+ }, be.preloadModule = function(S, g) {
751
+ if (typeof S == "string")
752
752
  if (g) {
753
753
  var A = T(g.as, g.crossOrigin);
754
- r.d.m(x, {
754
+ r.d.m(S, {
755
755
  as: typeof g.as == "string" && g.as !== "script" ? g.as : void 0,
756
756
  crossOrigin: A,
757
757
  integrity: typeof g.integrity == "string" ? g.integrity : void 0
758
758
  });
759
- } else r.d.m(x);
760
- }, be.requestFormReset = function(x) {
761
- r.d.r(x);
762
- }, be.unstable_batchedUpdates = function(x, g) {
763
- return x(g);
764
- }, be.useFormState = function(x, g, A) {
765
- return y.H.useFormState(x, g, A);
759
+ } else r.d.m(S);
760
+ }, be.requestFormReset = function(S) {
761
+ r.d.r(S);
762
+ }, be.unstable_batchedUpdates = function(S, g) {
763
+ return S(g);
764
+ }, be.useFormState = function(S, g, A) {
765
+ return y.H.useFormState(S, g, A);
766
766
  }, be.useFormStatus = function() {
767
767
  return y.H.useHostTransitionStatus();
768
768
  }, be.version = "19.2.3", be;
@@ -823,7 +823,7 @@ function J0() {
823
823
  }
824
824
  return null;
825
825
  }
826
- function x(t) {
826
+ function S(t) {
827
827
  if (h(t) !== t)
828
828
  throw Error(r(188));
829
829
  }
@@ -846,8 +846,8 @@ function J0() {
846
846
  }
847
847
  if (i.child === o.child) {
848
848
  for (o = i.child; o; ) {
849
- if (o === n) return x(i), t;
850
- if (o === a) return x(i), e;
849
+ if (o === n) return S(i), t;
850
+ if (o === a) return S(i), e;
851
851
  o = o.sibling;
852
852
  }
853
853
  throw Error(r(188));
@@ -949,7 +949,7 @@ function J0() {
949
949
  function v(t) {
950
950
  return { current: t };
951
951
  }
952
- function H(t) {
952
+ function U(t) {
953
953
  0 > Mt || (t.current = Tt[Mt], Tt[Mt] = null, Mt--);
954
954
  }
955
955
  function W(t, e) {
@@ -977,10 +977,10 @@ function J0() {
977
977
  t = 0;
978
978
  }
979
979
  }
980
- H(F), W(F, t);
980
+ U(F), W(F, t);
981
981
  }
982
982
  function Kt() {
983
- H(F), H(rt), H(pt);
983
+ U(F), U(rt), U(pt);
984
984
  }
985
985
  function bn(t) {
986
986
  t.memoizedState !== null && W(Et, t);
@@ -988,7 +988,7 @@ function J0() {
988
988
  e !== n && (W(rt, t), W(F, n));
989
989
  }
990
990
  function da(t) {
991
- rt.current === t && (H(F), H(rt)), Et.current === t && (H(Et), bi._currentValue = at);
991
+ rt.current === t && (U(F), U(rt)), Et.current === t && (U(Et), bi._currentValue = at);
992
992
  }
993
993
  var Ol, gt;
994
994
  function st(t) {
@@ -2584,7 +2584,7 @@ Error generating stack: ` + a.message + `
2584
2584
  W(Vu, e._currentValue), e._currentValue = n;
2585
2585
  }
2586
2586
  function zn(t) {
2587
- t._currentValue = Vu.current, H(Vu);
2587
+ t._currentValue = Vu.current, U(Vu);
2588
2588
  }
2589
2589
  function Zu(t, e, n) {
2590
2590
  for (; t !== null; ) {
@@ -3382,7 +3382,7 @@ Error generating stack: ` + a.message + `
3382
3382
  W(oo, Rn), W(nl, nl.current);
3383
3383
  }
3384
3384
  function lr() {
3385
- Rn = oo.current, H(nl), H(oo);
3385
+ Rn = oo.current, U(nl), U(oo);
3386
3386
  }
3387
3387
  var He = v(null), We = null;
3388
3388
  function Zn(t) {
@@ -3399,7 +3399,7 @@ Error generating stack: ` + a.message + `
3399
3399
  W(Ft, Ft.current), W(He, He.current);
3400
3400
  }
3401
3401
  function Ue(t) {
3402
- H(He), We === t && (We = null), H(Ft);
3402
+ U(He), We === t && (We = null), U(Ft);
3403
3403
  }
3404
3404
  var Ft = v(0);
3405
3405
  function uo(t) {
@@ -5710,7 +5710,7 @@ Error generating stack: ` + a.message + `
5710
5710
  case 10:
5711
5711
  return zn(e.type), Qt(e), null;
5712
5712
  case 19:
5713
- if (H(Ft), a = e.memoizedState, a === null) return Qt(e), null;
5713
+ if (U(Ft), a = e.memoizedState, a === null) return Qt(e), null;
5714
5714
  if (i = (e.flags & 128) !== 0, o = a.rendering, o === null)
5715
5715
  if (i) li(a, !1);
5716
5716
  else {
@@ -5743,7 +5743,7 @@ Error generating stack: ` + a.message + `
5743
5743
  ), Ct && Tn(e, a.treeForkCount), t) : (Qt(e), null);
5744
5744
  case 22:
5745
5745
  case 23:
5746
- return Ue(e), lr(), a = e.memoizedState !== null, t !== null ? t.memoizedState !== null !== a && (e.flags |= 8192) : a && (e.flags |= 8192), a ? (n & 536870912) !== 0 && (e.flags & 128) === 0 && (Qt(e), e.subtreeFlags & 6 && (e.flags |= 8192)) : Qt(e), n = e.updateQueue, n !== null && So(e, n.retryQueue), n = null, t !== null && t.memoizedState !== null && t.memoizedState.cachePool !== null && (n = t.memoizedState.cachePool.pool), a = null, e.memoizedState !== null && e.memoizedState.cachePool !== null && (a = e.memoizedState.cachePool.pool), a !== n && (e.flags |= 2048), t !== null && H(Ta), null;
5746
+ return Ue(e), lr(), a = e.memoizedState !== null, t !== null ? t.memoizedState !== null !== a && (e.flags |= 8192) : a && (e.flags |= 8192), a ? (n & 536870912) !== 0 && (e.flags & 128) === 0 && (Qt(e), e.subtreeFlags & 6 && (e.flags |= 8192)) : Qt(e), n = e.updateQueue, n !== null && So(e, n.retryQueue), n = null, t !== null && t.memoizedState !== null && t.memoizedState.cachePool !== null && (n = t.memoizedState.cachePool.pool), a = null, e.memoizedState !== null && e.memoizedState.cachePool !== null && (a = e.memoizedState.cachePool.pool), a !== n && (e.flags |= 2048), t !== null && U(Ta), null;
5747
5747
  case 24:
5748
5748
  return n = null, t !== null && (n = t.memoizedState.cache), e.memoizedState.cache !== n && (e.flags |= 2048), zn(ee), Qt(e), null;
5749
5749
  case 25:
@@ -5778,14 +5778,14 @@ Error generating stack: ` + a.message + `
5778
5778
  }
5779
5779
  return t = e.flags, t & 65536 ? (e.flags = t & -65537 | 128, e) : null;
5780
5780
  case 19:
5781
- return H(Ft), null;
5781
+ return U(Ft), null;
5782
5782
  case 4:
5783
5783
  return Kt(), null;
5784
5784
  case 10:
5785
5785
  return zn(e.type), null;
5786
5786
  case 22:
5787
5787
  case 23:
5788
- return Ue(e), lr(), t !== null && H(Ta), t = e.flags, t & 65536 ? (e.flags = t & -65537 | 128, e) : null;
5788
+ return Ue(e), lr(), t !== null && U(Ta), t = e.flags, t & 65536 ? (e.flags = t & -65537 | 128, e) : null;
5789
5789
  case 24:
5790
5790
  return zn(ee), null;
5791
5791
  case 25:
@@ -5814,14 +5814,14 @@ Error generating stack: ` + a.message + `
5814
5814
  Ue(e);
5815
5815
  break;
5816
5816
  case 19:
5817
- H(Ft);
5817
+ U(Ft);
5818
5818
  break;
5819
5819
  case 10:
5820
5820
  zn(e.type);
5821
5821
  break;
5822
5822
  case 22:
5823
5823
  case 23:
5824
- Ue(e), lr(), t !== null && H(Ta);
5824
+ Ue(e), lr(), t !== null && U(Ta);
5825
5825
  break;
5826
5826
  case 24:
5827
5827
  zn(ee);
@@ -10725,7 +10725,7 @@ function dy(l) {
10725
10725
  function hy(l) {
10726
10726
  return Zp(au("", null, null, null, [""], l = Vp(l), 0, [0], l));
10727
10727
  }
10728
- function au(l, u, s, r, d, h, y, T, x) {
10728
+ function au(l, u, s, r, d, h, y, T, S) {
10729
10729
  for (var g = 0, A = 0, z = y, k = 0, X = 0, Q = 0, Y = 1, R = 1, Z = 1, P = 0, V = "", ut = d, N = h, it = r, J = V; R; )
10730
10730
  switch (Q = P, P = Ye()) {
10731
10731
  // (
@@ -10756,7 +10756,7 @@ function au(l, u, s, r, d, h, y, T, x) {
10756
10756
  switch (mn()) {
10757
10757
  case 42:
10758
10758
  case 47:
10759
- Wo(py(fy(Ye(), eu()), u, s), x);
10759
+ Wo(py(fy(Ye(), eu()), u, s), S);
10760
10760
  break;
10761
10761
  default:
10762
10762
  J += "/";
@@ -10776,7 +10776,7 @@ function au(l, u, s, r, d, h, y, T, x) {
10776
10776
  R = 0;
10777
10777
  // ;
10778
10778
  case 59 + A:
10779
- Z == -1 && (J = _t(J, /\f/g, "")), X > 0 && pn(J) - z && Wo(X > 32 ? dp(J + ";", r, s, z - 1) : dp(_t(J, " ", "") + ";", r, s, z - 2), x);
10779
+ Z == -1 && (J = _t(J, /\f/g, "")), X > 0 && pn(J) - z && Wo(X > 32 ? dp(J + ";", r, s, z - 1) : dp(_t(J, " ", "") + ";", r, s, z - 2), S);
10780
10780
  break;
10781
10781
  // @ ;
10782
10782
  case 59:
@@ -10831,11 +10831,11 @@ function au(l, u, s, r, d, h, y, T, x) {
10831
10831
  }
10832
10832
  return h;
10833
10833
  }
10834
- function fp(l, u, s, r, d, h, y, T, x, g, A) {
10834
+ function fp(l, u, s, r, d, h, y, T, S, g, A) {
10835
10835
  for (var z = d - 1, k = d === 0 ? h : [""], X = Vc(k), Q = 0, Y = 0, R = 0; Q < r; ++Q)
10836
10836
  for (var Z = 0, P = Ai(l, z + 1, z = ny(Y = y[Q])), V = l; Z < X; ++Z)
10837
- (V = Qp(Y > 0 ? k[Z] + " " + P : _t(P, /&\f/g, k[Z]))) && (x[R++] = V);
10838
- return ru(l, u, s, d === 0 ? Qc : T, x, g, A);
10837
+ (V = Qp(Y > 0 ? k[Z] + " " + P : _t(P, /&\f/g, k[Z]))) && (S[R++] = V);
10838
+ return ru(l, u, s, d === 0 ? Qc : T, S, g, A);
10839
10839
  }
10840
10840
  function py(l, u, s) {
10841
10841
  return ru(l, u, s, Yp, ou(uy()), Ai(l, 2, -2), 0);
@@ -10918,9 +10918,9 @@ var by = function(u, s, r) {
10918
10918
  if (r = r.parent, !r) return;
10919
10919
  if (!(u.props.length === 1 && s.charCodeAt(0) !== 58 && !hp.get(r)) && !d) {
10920
10920
  hp.set(u, !0);
10921
- for (var h = [], y = xy(s, h), T = r.props, x = 0, g = 0; x < y.length; x++)
10921
+ for (var h = [], y = xy(s, h), T = r.props, S = 0, g = 0; S < y.length; S++)
10922
10922
  for (var A = 0; A < T.length; A++, g++)
10923
- u.props[g] = h[x] ? y[x].replace(/&\f/g, T[A]) : T[A] + " " + y[x];
10923
+ u.props[g] = h[S] ? y[S].replace(/&\f/g, T[A]) : T[A] + " " + y[S];
10924
10924
  }
10925
10925
  }
10926
10926
  }, Cy = function(u) {
@@ -11124,14 +11124,14 @@ var Ty = function(u, s, r, d) {
11124
11124
  T.push(Y);
11125
11125
  }
11126
11126
  );
11127
- var x, g = [Sy, Cy];
11127
+ var S, g = [Sy, Cy];
11128
11128
  {
11129
11129
  var A, z = [gy, yy(function(Y) {
11130
11130
  A.insert(Y);
11131
11131
  })], k = my(g.concat(d, z)), X = function(R) {
11132
11132
  return zl(hy(R), k);
11133
11133
  };
11134
- x = function(R, Z, P, V) {
11134
+ S = function(R, Z, P, V) {
11135
11135
  A = P, X(R ? R + "{" + Z.styles + "}" : Z.styles), V && (Q.inserted[Z.name] = !0);
11136
11136
  };
11137
11137
  }
@@ -11148,7 +11148,7 @@ var Ty = function(u, s, r, d) {
11148
11148
  nonce: u.nonce,
11149
11149
  inserted: h,
11150
11150
  registered: {},
11151
- insert: x
11151
+ insert: S
11152
11152
  };
11153
11153
  return Q.sheet.hydrate(T), Q;
11154
11154
  }, C = Gc();
@@ -11170,14 +11170,14 @@ var gp;
11170
11170
  function Ay() {
11171
11171
  if (gp) return Bt;
11172
11172
  gp = 1;
11173
- var l = typeof Symbol == "function" && Symbol.for, u = l ? /* @__PURE__ */ Symbol.for("react.element") : 60103, s = l ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = l ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, d = l ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, h = l ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, y = l ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, T = l ? /* @__PURE__ */ Symbol.for("react.context") : 60110, x = l ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, g = l ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, A = l ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, z = l ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, k = l ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, X = l ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, Q = l ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, Y = l ? /* @__PURE__ */ Symbol.for("react.block") : 60121, R = l ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, Z = l ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, P = l ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
11173
+ var l = typeof Symbol == "function" && Symbol.for, u = l ? /* @__PURE__ */ Symbol.for("react.element") : 60103, s = l ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = l ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, d = l ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, h = l ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, y = l ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, T = l ? /* @__PURE__ */ Symbol.for("react.context") : 60110, S = l ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, g = l ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, A = l ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, z = l ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, k = l ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, X = l ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, Q = l ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, Y = l ? /* @__PURE__ */ Symbol.for("react.block") : 60121, R = l ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, Z = l ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, P = l ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
11174
11174
  function V(N) {
11175
11175
  if (typeof N == "object" && N !== null) {
11176
11176
  var it = N.$$typeof;
11177
11177
  switch (it) {
11178
11178
  case u:
11179
11179
  switch (N = N.type, N) {
11180
- case x:
11180
+ case S:
11181
11181
  case g:
11182
11182
  case r:
11183
11183
  case h:
@@ -11204,8 +11204,8 @@ function Ay() {
11204
11204
  function ut(N) {
11205
11205
  return V(N) === g;
11206
11206
  }
11207
- return Bt.AsyncMode = x, Bt.ConcurrentMode = g, Bt.ContextConsumer = T, Bt.ContextProvider = y, Bt.Element = u, Bt.ForwardRef = A, Bt.Fragment = r, Bt.Lazy = Q, Bt.Memo = X, Bt.Portal = s, Bt.Profiler = h, Bt.StrictMode = d, Bt.Suspense = z, Bt.isAsyncMode = function(N) {
11208
- return ut(N) || V(N) === x;
11207
+ return Bt.AsyncMode = S, Bt.ConcurrentMode = g, Bt.ContextConsumer = T, Bt.ContextProvider = y, Bt.Element = u, Bt.ForwardRef = A, Bt.Fragment = r, Bt.Lazy = Q, Bt.Memo = X, Bt.Portal = s, Bt.Profiler = h, Bt.StrictMode = d, Bt.Suspense = z, Bt.isAsyncMode = function(N) {
11208
+ return ut(N) || V(N) === S;
11209
11209
  }, Bt.isConcurrentMode = ut, Bt.isContextConsumer = function(N) {
11210
11210
  return V(N) === T;
11211
11211
  }, Bt.isContextProvider = function(N) {
@@ -11278,14 +11278,14 @@ function wy() {
11278
11278
  function y(Q) {
11279
11279
  return l.isMemo(Q) ? d : h[Q.$$typeof] || u;
11280
11280
  }
11281
- var T = Object.defineProperty, x = Object.getOwnPropertyNames, g = Object.getOwnPropertySymbols, A = Object.getOwnPropertyDescriptor, z = Object.getPrototypeOf, k = Object.prototype;
11281
+ var T = Object.defineProperty, S = Object.getOwnPropertyNames, g = Object.getOwnPropertySymbols, A = Object.getOwnPropertyDescriptor, z = Object.getPrototypeOf, k = Object.prototype;
11282
11282
  function X(Q, Y, R) {
11283
11283
  if (typeof Y != "string") {
11284
11284
  if (k) {
11285
11285
  var Z = z(Y);
11286
11286
  Z && Z !== k && X(Q, Z, R);
11287
11287
  }
11288
- var P = x(Y);
11288
+ var P = S(Y);
11289
11289
  g && (P = P.concat(g(Y)));
11290
11290
  for (var V = y(Q), ut = y(Y), N = 0; N < P.length; ++N) {
11291
11291
  var it = P[N];
@@ -11455,8 +11455,8 @@ function wi(l, u, s) {
11455
11455
  }
11456
11456
  case "function": {
11457
11457
  if (l !== void 0) {
11458
- var x = gn, g = s(l);
11459
- return gn = x, wi(l, u, g);
11458
+ var S = gn, g = s(l);
11459
+ return gn = S, wi(l, u, g);
11460
11460
  }
11461
11461
  break;
11462
11462
  }
@@ -11479,8 +11479,8 @@ function Ry(l, u, s) {
11479
11479
  var T = y;
11480
11480
  u != null && u[T] !== void 0 ? r += h + "{" + u[T] + "}" : bp(T) && (r += $c(h) + ":" + vp(h, T) + ";");
11481
11481
  } else if (Array.isArray(y) && typeof y[0] == "string" && (u == null || u[y[0]] === void 0))
11482
- for (var x = 0; x < y.length; x++)
11483
- bp(y[x]) && (r += $c(h) + ":" + vp(h, y[x]) + ";");
11482
+ for (var S = 0; S < y.length; S++)
11483
+ bp(y[S]) && (r += $c(h) + ":" + vp(h, y[S]) + ";");
11484
11484
  else {
11485
11485
  var g = wi(l, u, y);
11486
11486
  switch (h) {
@@ -11511,8 +11511,8 @@ function cu(l, u, s) {
11511
11511
  }
11512
11512
  for (var T = 1; T < l.length; T++)
11513
11513
  if (d += wi(s, u, l[T]), r) {
11514
- var x = h;
11515
- d += x[T];
11514
+ var S = h;
11515
+ d += S[T];
11516
11516
  }
11517
11517
  xp.lastIndex = 0;
11518
11518
  for (var g = "", A; (A = xp.exec(d)) !== null; )
@@ -11558,14 +11558,14 @@ var jy = function(u) {
11558
11558
  typeof l.className == "string" ? y = Wp(u.registered, h, l.className) : l.className != null && (y = l.className + " ");
11559
11559
  var T = cu(h, void 0, C.useContext(Fc));
11560
11560
  y += u.key + "-" + T.name;
11561
- var x = {};
11561
+ var S = {};
11562
11562
  for (var g in l)
11563
- $i.call(l, g) && g !== "css" && g !== kc && (x[g] = l[g]);
11564
- return x.className = y, s && (x.ref = s), /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement(Ny, {
11563
+ $i.call(l, g) && g !== "css" && g !== kc && (S[g] = l[g]);
11564
+ return S.className = y, s && (S.ref = s), /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement(Ny, {
11565
11565
  cache: u,
11566
11566
  serialized: T,
11567
11567
  isStringTag: typeof d == "string"
11568
- }), /* @__PURE__ */ C.createElement(d, x));
11568
+ }), /* @__PURE__ */ C.createElement(d, S));
11569
11569
  }), Pc = Hy, Cp = function(u, s) {
11570
11570
  var r = arguments;
11571
11571
  if (s == null || !$i.call(s, "css"))
@@ -11588,8 +11588,8 @@ var Uy = /* @__PURE__ */ Wc(function(l, u) {
11588
11588
  nonce: u.sheet.nonce,
11589
11589
  container: u.sheet.container,
11590
11590
  speedy: u.sheet.isSpeedy
11591
- }), T = !1, x = document.querySelector('style[data-emotion="' + h + " " + r.name + '"]');
11592
- return u.sheet.tags.length && (y.before = u.sheet.tags[0]), x !== null && (T = !0, x.setAttribute("data-emotion", h), y.hydrate([x])), d.current = [y, T], function() {
11591
+ }), T = !1, S = document.querySelector('style[data-emotion="' + h + " " + r.name + '"]');
11592
+ return u.sheet.tags.length && (y.before = u.sheet.tags[0]), S !== null && (T = !0, S.setAttribute("data-emotion", h), y.hydrate([S])), d.current = [y, T], function() {
11593
11593
  y.flush();
11594
11594
  };
11595
11595
  }, [u]), Sp(function() {
@@ -11599,8 +11599,8 @@ var Uy = /* @__PURE__ */ Wc(function(l, u) {
11599
11599
  return;
11600
11600
  }
11601
11601
  if (r.next !== void 0 && Jc(u, r.next, !0), y.tags.length) {
11602
- var x = y.tags[y.tags.length - 1].nextElementSibling;
11603
- y.before = x, y.flush();
11602
+ var S = y.tags[y.tags.length - 1].nextElementSibling;
11603
+ y.before = S, y.flush();
11604
11604
  }
11605
11605
  u.insert("", r, y, !1);
11606
11606
  }, [u, r.name]), null;
@@ -11621,10 +11621,10 @@ function yn() {
11621
11621
  }
11622
11622
  };
11623
11623
  }
11624
- var Oi = S.Fragment, q = function(u, s, r) {
11625
- return $i.call(s, "css") ? S.jsx(Pc, Ic(u, s), r) : S.jsx(u, s, r);
11624
+ var Oi = x.Fragment, q = function(u, s, r) {
11625
+ return $i.call(s, "css") ? x.jsx(Pc, Ic(u, s), r) : x.jsx(u, s, r);
11626
11626
  }, ot = function(u, s, r) {
11627
- return $i.call(s, "css") ? S.jsxs(Pc, Ic(u, s), r) : S.jsxs(u, s, r);
11627
+ return $i.call(s, "css") ? x.jsxs(Pc, Ic(u, s), r) : x.jsxs(u, s, r);
11628
11628
  };
11629
11629
  const nt = {
11630
11630
  // API Settings
@@ -11678,7 +11678,7 @@ const nt = {
11678
11678
  onReinitWidget: s,
11679
11679
  onUpdateWidget: r
11680
11680
  }) => {
11681
- const [d, h] = C.useState("form"), [y, T] = C.useState(!1), [x, g] = C.useState(null), [A, z] = C.useState(!1), [k, X] = C.useState(0), Q = C.useRef(null), Y = C.useCallback((L) => {
11681
+ const [d, h] = C.useState("form"), [y, T] = C.useState(!1), [S, g] = C.useState(null), [A, z] = C.useState(!1), [k, X] = C.useState(0), Q = C.useRef(null), Y = C.useCallback((L) => {
11682
11682
  Q.current = L;
11683
11683
  }, []), [R, Z] = C.useState(() => {
11684
11684
  const L = u.initialConfig;
@@ -11811,7 +11811,7 @@ const nt = {
11811
11811
  setViewMode: h,
11812
11812
  mockEnabled: y,
11813
11813
  setMockEnabled: T,
11814
- widgetApi: x,
11814
+ widgetApi: S,
11815
11815
  setWidgetApi: g,
11816
11816
  widgetConfig: R,
11817
11817
  updateWidgetConfig: N,
@@ -11828,7 +11828,7 @@ const nt = {
11828
11828
  u,
11829
11829
  d,
11830
11830
  y,
11831
- x,
11831
+ S,
11832
11832
  R,
11833
11833
  N,
11834
11834
  it,
@@ -11840,7 +11840,7 @@ const nt = {
11840
11840
  k
11841
11841
  ]
11842
11842
  );
11843
- return /* @__PURE__ */ S.jsx(eg.Provider, { value: Xt, children: l });
11843
+ return /* @__PURE__ */ x.jsx(eg.Provider, { value: Xt, children: l });
11844
11844
  };
11845
11845
  const ng = (...l) => l.filter((u, s, r) => !!u && u.trim() !== "" && r.indexOf(u) === s).join(" ").trim();
11846
11846
  const qy = (l) => l.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
@@ -11879,10 +11879,10 @@ const Qy = C.forwardRef(
11879
11879
  children: h,
11880
11880
  iconNode: y,
11881
11881
  ...T
11882
- }, x) => C.createElement(
11882
+ }, S) => C.createElement(
11883
11883
  "svg",
11884
11884
  {
11885
- ref: x,
11885
+ ref: S,
11886
11886
  ...Yy,
11887
11887
  width: u,
11888
11888
  height: u,
@@ -12258,7 +12258,7 @@ const xb = [
12258
12258
  placeholder: h,
12259
12259
  type: y = "text",
12260
12260
  multiline: T = !1,
12261
- rows: x = 3,
12261
+ rows: S = 3,
12262
12262
  required: g = !1
12263
12263
  }) {
12264
12264
  const A = {
@@ -12276,7 +12276,7 @@ const xb = [
12276
12276
  ")"
12277
12277
  ] })
12278
12278
  ] }),
12279
- T ? /* @__PURE__ */ q("textarea", { css: [Da.input, Da.textarea], rows: x, ...A }) : /* @__PURE__ */ q("input", { css: Da.input, type: y, ...A })
12279
+ T ? /* @__PURE__ */ q("textarea", { css: [Da.input, Da.textarea], rows: S, ...A }) : /* @__PURE__ */ q("input", { css: Da.input, type: y, ...A })
12280
12280
  ] });
12281
12281
  }), ra = {
12282
12282
  container: G`
@@ -12574,13 +12574,13 @@ const xb = [
12574
12574
  onChange: d,
12575
12575
  placeholder: h = "Add item..."
12576
12576
  }) {
12577
- const [y, T] = C.useState(""), x = () => {
12577
+ const [y, T] = C.useState(""), S = () => {
12578
12578
  const z = y.trim();
12579
12579
  z && !r.includes(z) && (d([...r, z]), T(""));
12580
12580
  }, g = (z) => {
12581
12581
  d(r.filter((k, X) => X !== z));
12582
12582
  }, A = (z) => {
12583
- z.key === "Enter" && (z.preventDefault(), x());
12583
+ z.key === "Enter" && (z.preventDefault(), S());
12584
12584
  };
12585
12585
  return /* @__PURE__ */ ot("div", { css: on.container, children: [
12586
12586
  /* @__PURE__ */ ot("label", { css: on.label, children: [
@@ -12603,7 +12603,7 @@ const xb = [
12603
12603
  placeholder: h
12604
12604
  }
12605
12605
  ),
12606
- /* @__PURE__ */ q("button", { css: on.addButton, onClick: x, disabled: !y.trim(), children: /* @__PURE__ */ q(rb, { size: 18 }) })
12606
+ /* @__PURE__ */ q("button", { css: on.addButton, onClick: S, disabled: !y.trim(), children: /* @__PURE__ */ q(rb, { size: 18 }) })
12607
12607
  ] }),
12608
12608
  /* @__PURE__ */ q("div", { css: on.tagsContainer, children: r.length === 0 ? /* @__PURE__ */ q("span", { css: on.emptyMessage, children: "No items added" }) : r.map((z, k) => /* @__PURE__ */ ot("div", { css: on.tag, children: [
12609
12609
  /* @__PURE__ */ q("span", { css: on.tagText, children: z }),
@@ -12857,7 +12857,7 @@ const Pe = {
12857
12857
  }
12858
12858
  `
12859
12859
  }, Eb = C.memo(function() {
12860
- const { widgetConfig: u, updateWidgetConfig: s, mockEnabled: r, setMockEnabled: d, reinitWidget: h } = tn(), [y, T] = C.useState(!1), [x, g] = C.useState(""), [A, z] = C.useState(!1), k = (N) => {
12860
+ const { widgetConfig: u, updateWidgetConfig: s, mockEnabled: r, setMockEnabled: d, reinitWidget: h } = tn(), [y, T] = C.useState(!1), [S, g] = C.useState(""), [A, z] = C.useState(!1), k = (N) => {
12861
12861
  s({ apiEndpoint: N });
12862
12862
  }, X = (N) => {
12863
12863
  s({ token: N });
@@ -12872,11 +12872,11 @@ const Pe = {
12872
12872
  }, P = () => {
12873
12873
  h();
12874
12874
  }, V = C.useCallback(() => {
12875
- const N = Tb(x);
12875
+ const N = Tb(S);
12876
12876
  s(N), z(!0), setTimeout(() => {
12877
12877
  z(!1), T(!1), g("");
12878
12878
  }, 1e3);
12879
- }, [x, s]), ut = !!(u.apiEndpoint && u.token);
12879
+ }, [S, s]), ut = !!(u.apiEndpoint && u.token);
12880
12880
  return /* @__PURE__ */ ot(un, { title: "API Configuration", action: /* @__PURE__ */ ot("button", { type: "button", css: Pe.importButton, onClick: () => T(!y), children: [
12881
12881
  /* @__PURE__ */ q(gb, { size: 12 }),
12882
12882
  "Import cURL"
@@ -12886,7 +12886,7 @@ const Pe = {
12886
12886
  "textarea",
12887
12887
  {
12888
12888
  css: Pe.curlTextarea,
12889
- value: x,
12889
+ value: S,
12890
12890
  onChange: (N) => g(N.target.value),
12891
12891
  placeholder: "Paste cURL command here..."
12892
12892
  }
@@ -12897,7 +12897,7 @@ const Pe = {
12897
12897
  type: "button",
12898
12898
  css: Pe.parseButton,
12899
12899
  onClick: V,
12900
- disabled: !x.trim(),
12900
+ disabled: !S.trim(),
12901
12901
  children: A ? /* @__PURE__ */ ot(Oi, { children: [
12902
12902
  /* @__PURE__ */ q(Ky, { size: 12 }),
12903
12903
  " Imported"
@@ -13309,7 +13309,7 @@ const Rb = C.memo(function() {
13309
13309
  const A = Db(u);
13310
13310
  h(JSON.stringify(A, null, 2)), T("");
13311
13311
  }, [u]);
13312
- const x = () => {
13312
+ const S = () => {
13313
13313
  try {
13314
13314
  const A = JSON.parse(d), z = Bb(A);
13315
13315
  s(z), r(), T("");
@@ -13334,7 +13334,7 @@ const Rb = C.memo(function() {
13334
13334
  }
13335
13335
  ),
13336
13336
  /* @__PURE__ */ ot("div", { css: ca.actions, children: [
13337
- /* @__PURE__ */ q("button", { css: [ca.button, ca.primaryButton], onClick: x, children: "Apply" }),
13337
+ /* @__PURE__ */ q("button", { css: [ca.button, ca.primaryButton], onClick: S, children: "Apply" }),
13338
13338
  /* @__PURE__ */ q("button", { css: [ca.button, ca.secondaryButton], onClick: g, children: "Copy" })
13339
13339
  ] }),
13340
13340
  y && /* @__PURE__ */ q("div", { css: ca.error, children: y })
@@ -13654,7 +13654,7 @@ const Rb = C.memo(function() {
13654
13654
  showContentSettings: y = !0,
13655
13655
  showQuickActions: T = !0
13656
13656
  }) {
13657
- const { viewMode: x, setViewMode: g, widgetApi: A } = tn();
13657
+ const { viewMode: S, setViewMode: g, widgetApi: A } = tn();
13658
13658
  return /* @__PURE__ */ ot("div", { css: dn.panel, children: [
13659
13659
  /* @__PURE__ */ ot("div", { css: dn.header, children: [
13660
13660
  /* @__PURE__ */ q("h1", { css: dn.title, children: "Widget Demo" }),
@@ -13664,7 +13664,7 @@ const Rb = C.memo(function() {
13664
13664
  "button",
13665
13665
  {
13666
13666
  type: "button",
13667
- css: [dn.modeButton, x === "form" && dn.modeButtonActive],
13667
+ css: [dn.modeButton, S === "form" && dn.modeButtonActive],
13668
13668
  onClick: () => g("form"),
13669
13669
  children: [
13670
13670
  /* @__PURE__ */ q(eb, { size: 14 }),
@@ -13676,7 +13676,7 @@ const Rb = C.memo(function() {
13676
13676
  "button",
13677
13677
  {
13678
13678
  type: "button",
13679
- css: [dn.modeButton, x === "json" && dn.modeButtonActive],
13679
+ css: [dn.modeButton, S === "json" && dn.modeButtonActive],
13680
13680
  onClick: () => g("json"),
13681
13681
  children: [
13682
13682
  /* @__PURE__ */ q(Vy, { size: 14 }),
@@ -13686,7 +13686,7 @@ const Rb = C.memo(function() {
13686
13686
  )
13687
13687
  ] })
13688
13688
  ] }),
13689
- u && x === "json" ? /* @__PURE__ */ q(Rb, {}) : /* @__PURE__ */ ot("div", { css: dn.formContainer, children: [
13689
+ u && S === "json" ? /* @__PURE__ */ q(Rb, {}) : /* @__PURE__ */ ot("div", { css: dn.formContainer, children: [
13690
13690
  r && /* @__PURE__ */ q(Eb, {}),
13691
13691
  s && /* @__PURE__ */ q(Cb, {}),
13692
13692
  d && /* @__PURE__ */ q(zb, {}),
@@ -13748,7 +13748,7 @@ const Rb = C.memo(function() {
13748
13748
  box-shadow: none;
13749
13749
  `
13750
13750
  }, qb = C.memo(function({ widgetContainerId: u = "demo-widget-container" }) {
13751
- const { widgetConfig: s, getWidgetConfig: r, mockEnabled: d, widgetWasOpen: h, setWidgetWasOpen: y, setContainerElement: T, reinitTrigger: x, setWidgetApi: g, updateWidgetConfig: A } = tn(), z = C.useRef(null), k = C.useRef(!1), X = C.useRef(null);
13751
+ const { widgetConfig: s, getWidgetConfig: r, mockEnabled: d, widgetWasOpen: h, setWidgetWasOpen: y, setContainerElement: T, reinitTrigger: S, setWidgetApi: g, updateWidgetConfig: A } = tn(), z = C.useRef(null), k = C.useRef(!1), X = C.useRef(null);
13752
13752
  C.useEffect(() => (T(z.current), () => T(null)), [T]);
13753
13753
  const Q = C.useCallback(() => {
13754
13754
  if (!window.ChatbotWidget) {
@@ -13773,7 +13773,7 @@ const Rb = C.memo(function() {
13773
13773
  Q();
13774
13774
  }, 50)), () => {
13775
13775
  X.current && clearTimeout(X.current);
13776
- }), [d, s.quickActions, x]);
13776
+ }), [d, s.quickActions, S]);
13777
13777
  const Y = s.floatingMode, R = Y ? "Floating Preview" : "Embedded Preview", Z = Y ? "Click the FAB button in the corner to open the chat" : "The widget is rendered inside this container";
13778
13778
  return /* @__PURE__ */ ot("div", { css: Sl.panel, children: [
13779
13779
  /* @__PURE__ */ ot("div", { css: Sl.header, children: [
@@ -13980,14 +13980,14 @@ const Rb = C.memo(function() {
13980
13980
  };
13981
13981
  u.assistantId && (T.assistantId = u.assistantId), u.contextPatientId && (T.contextPatientId = u.contextPatientId), u.sessionId && (T.sessionId = u.sessionId);
13982
13982
  try {
13983
- const x = await fetch(h, {
13983
+ const S = await fetch(h, {
13984
13984
  method: "POST",
13985
13985
  headers: y,
13986
13986
  body: JSON.stringify(T)
13987
13987
  });
13988
- if (!x.ok)
13989
- throw new Error(`HTTP error! status: ${x.status}`);
13990
- const g = x.body?.getReader();
13988
+ if (!S.ok)
13989
+ throw new Error(`HTTP error! status: ${S.status}`);
13990
+ const g = S.body?.getReader();
13991
13991
  if (!g)
13992
13992
  throw new Error("Response body is not readable");
13993
13993
  const A = new TextDecoder();
@@ -14022,8 +14022,8 @@ const Rb = C.memo(function() {
14022
14022
  if (X)
14023
14023
  break;
14024
14024
  }
14025
- } catch (x) {
14026
- const g = x instanceof Error ? x.message : "Unknown error";
14025
+ } catch (S) {
14026
+ const g = S instanceof Error ? S.message : "Unknown error";
14027
14027
  s.onError(g);
14028
14028
  }
14029
14029
  }, Kb = (l) => l.replace(/<[^>]*>/g, "").replace(/\s+/g, " ").trim(), Jb = (l, u) => {
@@ -14129,16 +14129,16 @@ const Rb = C.memo(function() {
14129
14129
  const y = `${d}?${h.toString()}`, T = {};
14130
14130
  r && (T.Authorization = `Bearer ${r}`);
14131
14131
  try {
14132
- const x = await fetch(y, {
14132
+ const S = await fetch(y, {
14133
14133
  method: "GET",
14134
14134
  headers: T
14135
14135
  });
14136
- if (!x.ok) {
14137
- if (x.status === 404)
14136
+ if (!S.ok) {
14137
+ if (S.status === 404)
14138
14138
  return { messages: [] };
14139
- throw new Error(`HTTP error! status: ${x.status}`);
14139
+ throw new Error(`HTTP error! status: ${S.status}`);
14140
14140
  }
14141
- const g = await x.json();
14141
+ const g = await S.json();
14142
14142
  let A, z, k = !1;
14143
14143
  const X = g._embedded ? Object.keys(g._embedded)[0] : null;
14144
14144
  if (X && Array.isArray(g._embedded[X]) ? (A = g._embedded[X], g.page && (z = {
@@ -14161,8 +14161,8 @@ const Rb = C.memo(function() {
14161
14161
  citations: Array.isArray(R.citations) ? R.citations.map(cg) : void 0
14162
14162
  };
14163
14163
  }), sessionId: Q, page: z, hasNextPage: k };
14164
- } catch (x) {
14165
- const g = x instanceof Error ? x.message : "Unknown error";
14164
+ } catch (S) {
14165
+ const g = S instanceof Error ? S.message : "Unknown error";
14166
14166
  return { messages: [], error: g };
14167
14167
  }
14168
14168
  }, Fb = async (l) => {
@@ -14178,8 +14178,8 @@ const Rb = C.memo(function() {
14178
14178
  });
14179
14179
  if (!y.ok)
14180
14180
  throw new Error(`HTTP error! status: ${y.status}`);
14181
- const T = await y.json(), x = T.assistants || T.data || T;
14182
- return Array.isArray(x) ? { assistants: x.map((A) => ({
14181
+ const T = await y.json(), S = T.assistants || T.data || T;
14182
+ return Array.isArray(S) ? { assistants: S.map((A) => ({
14183
14183
  ...A,
14184
14184
  id: A.id || "",
14185
14185
  name: A.name || ""
@@ -14237,7 +14237,7 @@ const Rb = C.memo(function() {
14237
14237
  source: "FITNESS TODAY"
14238
14238
  }
14239
14239
  ], t1 = ({ config: l, children: u, onConfigUpdate: s }) => {
14240
- const [r, d] = C.useState(l), [h, y] = C.useState([]), [T, x] = C.useState(!(r.floatingMode ?? !1)), [g, A] = C.useState(!1), [z, k] = C.useState(!1), [X, Q] = C.useState(void 0), [Y, R] = C.useState(!1), [Z, P] = C.useState(!1), [V, ut] = C.useState(null), [N, it] = C.useState(null), [J, Nt] = C.useState(null), [Xt, L] = C.useState(null), [vt, Yt] = C.useState(null), [Lt, Pt] = C.useState(null), Te = Ib(r.colorMode), D = C.useMemo(() => {
14240
+ const [r, d] = C.useState(l), [h, y] = C.useState([]), [T, S] = C.useState(!(r.floatingMode ?? !1)), [g, A] = C.useState(!1), [z, k] = C.useState(!1), [X, Q] = C.useState(void 0), [Y, R] = C.useState(!1), [Z, P] = C.useState(!1), [V, ut] = C.useState(null), [N, it] = C.useState(null), [J, Nt] = C.useState(null), [Xt, L] = C.useState(null), [vt, Yt] = C.useState(null), [Lt, Pt] = C.useState(null), Te = Ib(r.colorMode), D = C.useMemo(() => {
14241
14241
  const gt = V?.chatUiConfig?.theme, st = r.theme, mt = Qb(Te);
14242
14242
  return {
14243
14243
  colors: {
@@ -14343,10 +14343,10 @@ const Rb = C.memo(function() {
14343
14343
  }
14344
14344
  }, [T, Y, r.greeting, Z, V, J]);
14345
14345
  const Mt = C.useCallback(() => {
14346
- x(!0), r.onOpen?.();
14346
+ S(!0), r.onOpen?.();
14347
14347
  }, [r]), v = C.useCallback(() => {
14348
- x(!1), A(!1), r.onClose?.();
14349
- }, [r]), H = C.useCallback(() => {
14348
+ S(!1), A(!1), r.onClose?.();
14349
+ }, [r]), U = C.useCallback(() => {
14350
14350
  A((gt) => !gt);
14351
14351
  }, []), W = C.useCallback(() => {
14352
14352
  T ? v() : Mt();
@@ -14549,7 +14549,7 @@ const Rb = C.memo(function() {
14549
14549
  open: Mt,
14550
14550
  close: v,
14551
14551
  toggle: W,
14552
- toggleExpanded: H,
14552
+ toggleExpanded: U,
14553
14553
  // Survey
14554
14554
  currentQuestion: vt,
14555
14555
  surveyProgress: Lt,
@@ -14562,7 +14562,7 @@ const Rb = C.memo(function() {
14562
14562
  pagination: Xt,
14563
14563
  loadMoreMessages: Et
14564
14564
  };
14565
- return /* @__PURE__ */ S.jsx(sg.Provider, { value: Ol, children: u });
14565
+ return /* @__PURE__ */ x.jsx(sg.Provider, { value: Ol, children: u });
14566
14566
  };
14567
14567
  var e1 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, n1 = /* @__PURE__ */ Kp(
14568
14568
  function(l) {
@@ -14593,7 +14593,7 @@ var e1 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
14593
14593
  }, o1 = function l(u, s) {
14594
14594
  var r = u.__emotion_real === u, d = r && u.__emotion_base || u, h, y;
14595
14595
  s !== void 0 && (h = s.label, y = s.target);
14596
- var T = Dp(u, s, r), x = T || $p(d), g = !x("as");
14596
+ var T = Dp(u, s, r), S = T || $p(d), g = !S("as");
14597
14597
  return function() {
14598
14598
  var A = arguments, z = r && u.__emotion_styles !== void 0 ? u.__emotion_styles.slice(0) : [];
14599
14599
  if (h !== void 0 && z.push("label:" + h + ";"), A[0] == null || A[0].raw === void 0)
@@ -14615,7 +14615,7 @@ var e1 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
14615
14615
  typeof R.className == "string" ? ut = Wp(Z.registered, N, R.className) : R.className != null && (ut = R.className + " ");
14616
14616
  var Nt = cu(z.concat(N), Z.registered, it);
14617
14617
  ut += Z.key + "-" + Nt.name, y !== void 0 && (ut += " " + y);
14618
- var Xt = g && T === void 0 ? $p(V) : x, L = {};
14618
+ var Xt = g && T === void 0 ? $p(V) : S, L = {};
14619
14619
  for (var vt in R)
14620
14620
  g && vt === "as" || Xt(vt) && (L[vt] = R[vt]);
14621
14621
  return L.className = ut, P && (L.ref = P), /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement(i1, {
@@ -14771,16 +14771,16 @@ var e1 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
14771
14771
  "svg",
14772
14772
  "text",
14773
14773
  "tspan"
14774
- ], U = o1.bind(null);
14774
+ ], H = o1.bind(null);
14775
14775
  u1.forEach(function(l) {
14776
- U[l] = U(l);
14776
+ H[l] = H(l);
14777
14777
  });
14778
14778
  const Ba = () => {
14779
14779
  const l = C.useContext(sg);
14780
14780
  if (!l)
14781
14781
  throw new Error("useChat must be used within a ChatProvider");
14782
14782
  return l;
14783
- }, r1 = U.div`
14783
+ }, r1 = H.div`
14784
14784
  display: flex;
14785
14785
  align-items: center;
14786
14786
  justify-content: space-between;
@@ -14788,11 +14788,11 @@ const Ba = () => {
14788
14788
  background-color: ${({ theme: l }) => l.colors.secondary};
14789
14789
  color: ${({ theme: l }) => l.colors.headerText};
14790
14790
  border-radius: ${({ theme: l }) => l.borderRadius} ${({ theme: l }) => l.borderRadius} 0 0;
14791
- `, c1 = U.div`
14791
+ `, c1 = H.div`
14792
14792
  display: flex;
14793
14793
  align-items: center;
14794
14794
  gap: 12px;
14795
- `, s1 = U.div`
14795
+ `, s1 = H.div`
14796
14796
  display: flex;
14797
14797
  align-items: center;
14798
14798
  justify-content: center;
@@ -14800,27 +14800,27 @@ const Ba = () => {
14800
14800
  height: 40px;
14801
14801
  border-radius: ${({ hasCustomIcon: l }) => l ? "0" : "50%"};
14802
14802
  background-color: ${({ hasCustomIcon: l, theme: u }) => l ? "transparent" : `${u.colors.headerText}33`};
14803
- `, f1 = U.img`
14803
+ `, f1 = H.img`
14804
14804
  width: 100%;
14805
14805
  height: 100%;
14806
14806
  object-fit: contain;
14807
- `, d1 = U.div`
14807
+ `, d1 = H.div`
14808
14808
  display: flex;
14809
14809
  flex-direction: column;
14810
- `, h1 = U.h2`
14810
+ `, h1 = H.h2`
14811
14811
  margin: 0;
14812
14812
  font-size: 16px;
14813
14813
  font-weight: 600;
14814
14814
  font-family: ${({ fontFamily: l }) => l};
14815
14815
  line-height: 1.2;
14816
- `, p1 = U.span`
14816
+ `, p1 = H.span`
14817
14817
  margin: 0;
14818
14818
  font-size: 12px;
14819
14819
  font-weight: 400;
14820
14820
  font-family: ${({ fontFamily: l }) => l};
14821
14821
  opacity: 0.9;
14822
14822
  line-height: 1.2;
14823
- `, g1 = U.div`
14823
+ `, g1 = H.div`
14824
14824
  display: flex;
14825
14825
  align-items: center;
14826
14826
  gap: 4px;
@@ -14830,7 +14830,7 @@ const Ba = () => {
14830
14830
  font-family: ${({ fontFamily: l }) => l};
14831
14831
  opacity: 0.8;
14832
14832
  line-height: 1.2;
14833
- `, Bc = U.button`
14833
+ `, Bc = H.button`
14834
14834
  display: flex;
14835
14835
  align-items: center;
14836
14836
  justify-content: center;
@@ -14850,56 +14850,64 @@ const Ba = () => {
14850
14850
  &:active {
14851
14851
  background-color: ${({ theme: l }) => `${l.colors.headerText}66`};
14852
14852
  }
14853
- `, m1 = U.div`
14853
+ `, m1 = H.div`
14854
14854
  display: flex;
14855
14855
  align-items: center;
14856
14856
  gap: 6px;
14857
- `, y1 = () => {
14858
- const { close: l, config: u, theme: s, assistant: r, isExpanded: d, toggleExpanded: h, startNewChat: y } = Ba(), T = u.headerTitle || r?.chatUiConfig?.avatarTitle || "AI Doctor", x = u.headerIcon || r?.chatUiConfig?.avatarImage?.iconURL || r?.chatUiConfig?.avatarImage?.thumbnailURL || "https://web.mypatientspace.com/img/logo-symbol.png", g = u.headerSubtitle || r?.chatUiConfig?.headerSubtitle, A = u.brandingText || r?.chatUiConfig?.brandingText || "Developed by myPatientSpace";
14859
- return /* @__PURE__ */ S.jsxs(r1, { theme: s, children: [
14860
- /* @__PURE__ */ S.jsxs(c1, { children: [
14861
- /* @__PURE__ */ S.jsx(s1, { theme: s, hasCustomIcon: !0, children: /* @__PURE__ */ S.jsx(f1, { src: x, alt: "" }) }),
14862
- /* @__PURE__ */ S.jsxs(d1, { children: [
14863
- /* @__PURE__ */ S.jsx(h1, { fontFamily: s.fontFamily, children: T }),
14864
- g && /* @__PURE__ */ S.jsx(p1, { fontFamily: s.fontFamily, children: g }),
14865
- /* @__PURE__ */ S.jsxs(g1, { fontFamily: s.fontFamily, children: [
14857
+ `, y1 = H.div`
14858
+ display: flex;
14859
+
14860
+ @media (max-width: 420px) {
14861
+ ${({ floatingMode: l }) => l && "display: none;"}
14862
+ }
14863
+ `, b1 = () => {
14864
+ const { close: l, config: u, theme: s, assistant: r, isExpanded: d, toggleExpanded: h, startNewChat: y } = Ba(), T = u.headerTitle || r?.chatUiConfig?.avatarTitle || "AI Doctor", S = u.headerIcon || r?.chatUiConfig?.avatarImage?.iconURL || r?.chatUiConfig?.avatarImage?.thumbnailURL || "https://web.mypatientspace.com/img/logo-symbol.png", g = u.headerSubtitle || r?.chatUiConfig?.headerSubtitle, A = u.brandingText || r?.chatUiConfig?.brandingText || "Developed by myPatientSpace";
14865
+ return /* @__PURE__ */ x.jsxs(r1, { theme: s, children: [
14866
+ /* @__PURE__ */ x.jsxs(c1, { children: [
14867
+ /* @__PURE__ */ x.jsx(s1, { theme: s, hasCustomIcon: !0, children: /* @__PURE__ */ x.jsx(f1, { src: S, alt: "" }) }),
14868
+ /* @__PURE__ */ x.jsxs(d1, { children: [
14869
+ /* @__PURE__ */ x.jsx(h1, { fontFamily: s.fontFamily, children: T }),
14870
+ g && /* @__PURE__ */ x.jsx(p1, { fontFamily: s.fontFamily, children: g }),
14871
+ /* @__PURE__ */ x.jsxs(g1, { fontFamily: s.fontFamily, children: [
14866
14872
  A,
14867
14873
  " v",
14868
- "1.0.70"
14874
+ "1.0.72"
14869
14875
  ] })
14870
14876
  ] })
14871
14877
  ] }),
14872
- /* @__PURE__ */ S.jsxs(m1, { children: [
14873
- /* @__PURE__ */ S.jsx(
14878
+ /* @__PURE__ */ x.jsxs(m1, { children: [
14879
+ /* @__PURE__ */ x.jsx(
14874
14880
  Bc,
14875
14881
  {
14876
14882
  theme: s,
14877
14883
  onClick: y,
14878
14884
  "aria-label": "Start new chat",
14879
- children: /* @__PURE__ */ S.jsx(hb, { size: 16 })
14885
+ children: /* @__PURE__ */ x.jsx(hb, { size: 16 })
14880
14886
  }
14881
14887
  ),
14882
- /* @__PURE__ */ S.jsx(
14888
+ /* @__PURE__ */ x.jsx(y1, { floatingMode: u.floatingMode, children: /* @__PURE__ */ x.jsx(
14883
14889
  Bc,
14884
14890
  {
14885
14891
  theme: s,
14886
14892
  onClick: h,
14887
14893
  "aria-label": d ? "Collapse chat" : "Expand chat",
14888
- children: d ? /* @__PURE__ */ S.jsx(og, { size: 16 }) : /* @__PURE__ */ S.jsx(lg, { size: 16 })
14894
+ children: d ? /* @__PURE__ */ x.jsx(og, { size: 16 }) : /* @__PURE__ */ x.jsx(lg, { size: 16 })
14889
14895
  }
14890
- ),
14891
- u.floatingMode && /* @__PURE__ */ S.jsx(Bc, { theme: s, onClick: l, "aria-label": "Minimize chat", children: /* @__PURE__ */ S.jsx(ag, { size: 16 }) })
14896
+ ) }),
14897
+ u.floatingMode && /* @__PURE__ */ x.jsx(Bc, { theme: s, onClick: l, "aria-label": "Minimize chat", children: /* @__PURE__ */ x.jsx(ag, { size: 16 }) })
14892
14898
  ] })
14893
14899
  ] });
14894
- }, b1 = U.div`
14900
+ }, v1 = H.div`
14895
14901
  position: relative;
14896
14902
  background-color: ${({ theme: l }) => l.colors.background};
14897
14903
  border-bottom: 1px solid ${({ theme: l }) => l.colors.borderLight};
14898
14904
 
14899
- &:hover .close-button {
14900
- opacity: 1;
14905
+ @media (hover: hover) {
14906
+ &:hover .close-button {
14907
+ opacity: 1;
14908
+ }
14901
14909
  }
14902
- `, v1 = U.button`
14910
+ `, x1 = H.button`
14903
14911
  position: absolute;
14904
14912
  top: 0;
14905
14913
  right: 0;
@@ -14918,11 +14926,17 @@ const Ba = () => {
14918
14926
  justify-content: center;
14919
14927
  z-index: 1;
14920
14928
 
14921
- &:hover {
14922
- color: ${({ theme: l }) => l.colors.text};
14923
- background-color: ${({ theme: l }) => l.colors.border};
14929
+ @media (hover: hover) {
14930
+ &:hover {
14931
+ color: ${({ theme: l }) => l.colors.text};
14932
+ background-color: ${({ theme: l }) => l.colors.border};
14933
+ }
14934
+ }
14935
+
14936
+ @media (hover: none) {
14937
+ opacity: 1;
14924
14938
  }
14925
- `, x1 = U.div`
14939
+ `, S1 = H.div`
14926
14940
  display: flex;
14927
14941
  gap: 6px;
14928
14942
  padding: 16px 12px 8px;
@@ -14934,7 +14948,7 @@ const Ba = () => {
14934
14948
  &::-webkit-scrollbar {
14935
14949
  display: none;
14936
14950
  }
14937
- `, S1 = U.button`
14951
+ `, C1 = H.button`
14938
14952
  display: flex;
14939
14953
  align-items: center;
14940
14954
  gap: 4px;
@@ -14950,10 +14964,12 @@ const Ba = () => {
14950
14964
  white-space: nowrap;
14951
14965
  transition: all 0.2s ease;
14952
14966
 
14953
- &:hover {
14954
- background-color: ${({ theme: l, isActive: u }) => u ? l.colors.primaryDark : l.colors.surface};
14955
- border-color: ${({ theme: l, isActive: u }) => u ? l.colors.primaryDark : l.colors.primary};
14956
- color: ${({ theme: l, isActive: u }) => u ? l.colors.white : l.colors.text};
14967
+ @media (hover: hover) {
14968
+ &:hover {
14969
+ background-color: ${({ theme: l, isActive: u }) => u ? l.colors.primaryDark : l.colors.surface};
14970
+ border-color: ${({ theme: l, isActive: u }) => u ? l.colors.primaryDark : l.colors.primary};
14971
+ color: ${({ theme: l, isActive: u }) => u ? l.colors.white : l.colors.text};
14972
+ }
14957
14973
  }
14958
14974
 
14959
14975
  &:active {
@@ -14965,28 +14981,28 @@ const Ba = () => {
14965
14981
  cursor: not-allowed;
14966
14982
  transform: none;
14967
14983
  }
14968
- `, C1 = () => {
14969
- const { config: l, theme: u, sendMessage: s, assistant: r, isTyping: d } = Ba(), h = C.useRef(null), [y, T] = C.useState(!1), x = l.quickActions?.length ? l.quickActions : r?.chatUiConfig?.initialPrompts || [];
14970
- if (x.length === 0 || y)
14984
+ `, T1 = () => {
14985
+ const { config: l, theme: u, sendMessage: s, assistant: r, isTyping: d } = Ba(), h = C.useRef(null), [y, T] = C.useState(!1), S = l.quickActions?.length ? l.quickActions : r?.chatUiConfig?.initialPrompts || [];
14986
+ if (S.length === 0 || y)
14971
14987
  return null;
14972
14988
  const g = (z) => {
14973
14989
  l.onQuickAction?.(z), s(z);
14974
14990
  }, A = (z) => {
14975
14991
  h.current && z.deltaY !== 0 && (z.preventDefault(), h.current.scrollLeft += z.deltaY);
14976
14992
  };
14977
- return /* @__PURE__ */ S.jsxs(b1, { theme: u, children: [
14978
- /* @__PURE__ */ S.jsx(
14979
- v1,
14993
+ return /* @__PURE__ */ x.jsxs(v1, { theme: u, children: [
14994
+ /* @__PURE__ */ x.jsx(
14995
+ x1,
14980
14996
  {
14981
14997
  className: "close-button",
14982
14998
  theme: u,
14983
14999
  onClick: () => T(!0),
14984
15000
  "aria-label": "Dismiss quick actions",
14985
- children: /* @__PURE__ */ S.jsx(su, { size: 10 })
15001
+ children: /* @__PURE__ */ x.jsx(su, { size: 10 })
14986
15002
  }
14987
15003
  ),
14988
- /* @__PURE__ */ S.jsx(x1, { ref: h, onWheel: A, children: x.map((z, k) => /* @__PURE__ */ S.jsx(
14989
- S1,
15004
+ /* @__PURE__ */ x.jsx(S1, { ref: h, onWheel: A, children: S.map((z, k) => /* @__PURE__ */ x.jsx(
15005
+ C1,
14990
15006
  {
14991
15007
  theme: u,
14992
15008
  onClick: () => g(z),
@@ -14997,7 +15013,7 @@ const Ba = () => {
14997
15013
  k
14998
15014
  )) })
14999
15015
  ] });
15000
- }, T1 = U.div`
15016
+ }, E1 = H.div`
15001
15017
  display: flex;
15002
15018
  gap: 12px;
15003
15019
  padding: 12px 0;
@@ -15009,7 +15025,7 @@ const Ba = () => {
15009
15025
  &::-webkit-scrollbar {
15010
15026
  display: none;
15011
15027
  }
15012
- `, E1 = U.button`
15028
+ `, z1 = H.button`
15013
15029
  flex-shrink: 0;
15014
15030
  width: 160px;
15015
15031
  padding: 0;
@@ -15031,17 +15047,17 @@ const Ba = () => {
15031
15047
  &:active {
15032
15048
  transform: translateY(0);
15033
15049
  }
15034
- `, z1 = U.div`
15050
+ `, A1 = H.div`
15035
15051
  position: relative;
15036
15052
  width: 100%;
15037
15053
  height: 100px;
15038
15054
  background-color: ${({ theme: l }) => l.colors.surface};
15039
15055
  overflow: hidden;
15040
- `, A1 = U.img`
15056
+ `, M1 = H.img`
15041
15057
  width: 100%;
15042
15058
  height: 100%;
15043
15059
  object-fit: cover;
15044
- `, M1 = U.div`
15060
+ `, w1 = H.div`
15045
15061
  width: 100%;
15046
15062
  height: 100%;
15047
15063
  display: flex;
@@ -15050,10 +15066,10 @@ const Ba = () => {
15050
15066
  background-color: ${({ theme: l }) => l.colors.surface};
15051
15067
  color: ${({ theme: l }) => l.colors.contentCardTextLight};
15052
15068
  font-size: 12px;
15053
- `, w1 = U.div`
15069
+ `, O1 = H.div`
15054
15070
  padding: 10px 12px;
15055
15071
  flex: 1;
15056
- `, O1 = U.h4`
15072
+ `, _1 = H.h4`
15057
15073
  margin: 0 0 4px 0;
15058
15074
  font-family: ${({ theme: l }) => l.fontFamily};
15059
15075
  font-size: 13px;
@@ -15065,7 +15081,7 @@ const Ba = () => {
15065
15081
  -webkit-box-orient: vertical;
15066
15082
  overflow: hidden;
15067
15083
  text-overflow: ellipsis;
15068
- `, _1 = U.span`
15084
+ `, $1 = H.span`
15069
15085
  position: absolute;
15070
15086
  top: 8px;
15071
15087
  left: 8px;
@@ -15078,15 +15094,15 @@ const Ba = () => {
15078
15094
  background-color: rgba(0, 0, 0, 0.5);
15079
15095
  border-radius: 6px;
15080
15096
  backdrop-filter: blur(4px);
15081
- `, $1 = C.memo(function({
15097
+ `, D1 = C.memo(function({
15082
15098
  citation: u,
15083
15099
  theme: s,
15084
15100
  onClick: r
15085
15101
  }) {
15086
- return /* @__PURE__ */ S.jsxs(E1, { theme: s, onClick: r, "aria-label": u.title, children: [
15087
- /* @__PURE__ */ S.jsxs(z1, { theme: s, children: [
15088
- u.thumbnail ? /* @__PURE__ */ S.jsx(
15089
- A1,
15102
+ return /* @__PURE__ */ x.jsxs(z1, { theme: s, onClick: r, "aria-label": u.title, children: [
15103
+ /* @__PURE__ */ x.jsxs(A1, { theme: s, children: [
15104
+ u.thumbnail ? /* @__PURE__ */ x.jsx(
15105
+ M1,
15090
15106
  {
15091
15107
  src: u.thumbnail,
15092
15108
  alt: u.title,
@@ -15095,30 +15111,30 @@ const Ba = () => {
15095
15111
  d.target.style.display = "none";
15096
15112
  }
15097
15113
  }
15098
- ) : /* @__PURE__ */ S.jsx(M1, { theme: s, children: "No image" }),
15099
- u.contentType && /* @__PURE__ */ S.jsx(_1, { theme: s, children: u.contentType })
15114
+ ) : /* @__PURE__ */ x.jsx(w1, { theme: s, children: "No image" }),
15115
+ u.contentType && /* @__PURE__ */ x.jsx($1, { theme: s, children: u.contentType })
15100
15116
  ] }),
15101
- /* @__PURE__ */ S.jsx(w1, { theme: s, children: /* @__PURE__ */ S.jsx(O1, { theme: s, children: u.title }) })
15117
+ /* @__PURE__ */ x.jsx(O1, { theme: s, children: /* @__PURE__ */ x.jsx(_1, { theme: s, children: u.title }) })
15102
15118
  ] });
15103
- }), D1 = C.memo(function({ citations: u, theme: s, onCitationClick: r, onCardExpand: d }) {
15119
+ }), B1 = C.memo(function({ citations: u, theme: s, onCitationClick: r, onCardExpand: d }) {
15104
15120
  const h = C.useRef(null);
15105
15121
  if (!u || u.length === 0)
15106
15122
  return null;
15107
- const y = (x) => {
15108
- r?.(x), d ? d(x) : x.content && window.open(x.content, "_blank", "noopener,noreferrer");
15109
- }, T = (x) => {
15110
- h.current && x.deltaY !== 0 && (x.preventDefault(), h.current.scrollLeft += x.deltaY);
15123
+ const y = (S) => {
15124
+ r?.(S), d ? d(S) : S.content && window.open(S.content, "_blank", "noopener,noreferrer");
15125
+ }, T = (S) => {
15126
+ h.current && S.deltaY !== 0 && (S.preventDefault(), h.current.scrollLeft += S.deltaY);
15111
15127
  };
15112
- return /* @__PURE__ */ S.jsx(T1, { ref: h, onWheel: T, children: u.map((x) => /* @__PURE__ */ S.jsx(
15113
- $1,
15128
+ return /* @__PURE__ */ x.jsx(E1, { ref: h, onWheel: T, children: u.map((S) => /* @__PURE__ */ x.jsx(
15129
+ D1,
15114
15130
  {
15115
- citation: x,
15131
+ citation: S,
15116
15132
  theme: s,
15117
- onClick: () => y(x)
15133
+ onClick: () => y(S)
15118
15134
  },
15119
- x.id
15135
+ S.id
15120
15136
  )) });
15121
- }), B1 = yn`
15137
+ }), R1 = yn`
15122
15138
  from {
15123
15139
  opacity: 0;
15124
15140
  transform: translateY(8px);
@@ -15127,17 +15143,17 @@ const Ba = () => {
15127
15143
  opacity: 1;
15128
15144
  transform: translateY(0);
15129
15145
  }
15130
- `, R1 = U.div`
15146
+ `, j1 = H.div`
15131
15147
  display: flex;
15132
15148
  flex-direction: column;
15133
15149
  align-items: ${({ isUser: l }) => l ? "flex-end" : "flex-start"};
15134
15150
  margin-bottom: 12px;
15135
- animation: ${B1} 0.3s ease-out;
15151
+ animation: ${R1} 0.3s ease-out;
15136
15152
 
15137
15153
  @media (prefers-reduced-motion: reduce) {
15138
15154
  animation: none;
15139
15155
  }
15140
- `, j1 = U.div`
15156
+ `, N1 = H.div`
15141
15157
  max-width: ${({ isUser: l }) => l ? "80%" : "100%"};
15142
15158
  padding: ${({ isUser: l }) => l ? "12px 16px" : "0"};
15143
15159
  border-radius: ${({ isUser: l }) => l ? "16px" : "0"};
@@ -15180,12 +15196,12 @@ const Ba = () => {
15180
15196
  font-family: monospace;
15181
15197
  font-size: 13px;
15182
15198
  }
15183
- `, N1 = U.span`
15199
+ `, H1 = H.span`
15184
15200
  font-size: 11px;
15185
15201
  color: ${({ theme: l }) => l.colors.textLight};
15186
15202
  margin-top: 4px;
15187
15203
  font-family: ${({ theme: l }) => l.fontFamily};
15188
- `, H1 = U.span`
15204
+ `, U1 = H.span`
15189
15205
  font-size: 11px;
15190
15206
  margin-left: 6px;
15191
15207
  color: ${({ status: l, theme: u }) => {
@@ -15198,7 +15214,7 @@ const Ba = () => {
15198
15214
  return u.colors.textLight;
15199
15215
  }
15200
15216
  }};
15201
- `, U1 = U.button`
15217
+ `, k1 = H.button`
15202
15218
  display: flex;
15203
15219
  align-items: center;
15204
15220
  justify-content: center;
@@ -15216,15 +15232,15 @@ const Ba = () => {
15216
15232
  background-color: ${({ theme: l }) => l.colors.primary};
15217
15233
  color: ${({ theme: l }) => l.colors.white};
15218
15234
  }
15219
- `, k1 = (l) => l.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }), q1 = C.memo(({ message: l, theme: u, onCitationClick: s, onCardExpand: r }) => {
15220
- const d = l.sender === "user", [h, y] = C.useState(!1), T = C.useRef(null), x = () => {
15235
+ `, q1 = (l) => l.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }), L1 = C.memo(({ message: l, theme: u, onCitationClick: s, onCardExpand: r }) => {
15236
+ const d = l.sender === "user", [h, y] = C.useState(!1), T = C.useRef(null), S = () => {
15221
15237
  T.current && (h ? (T.current.pause(), T.current.currentTime = 0, y(!1)) : (T.current.play(), y(!0)));
15222
15238
  }, g = () => {
15223
15239
  y(!1);
15224
15240
  };
15225
- return /* @__PURE__ */ S.jsxs(R1, { isUser: d, children: [
15226
- /* @__PURE__ */ S.jsx(
15227
- j1,
15241
+ return /* @__PURE__ */ x.jsxs(j1, { isUser: d, children: [
15242
+ /* @__PURE__ */ x.jsx(
15243
+ N1,
15228
15244
  {
15229
15245
  isUser: d,
15230
15246
  isError: l.status === "error",
@@ -15232,8 +15248,8 @@ const Ba = () => {
15232
15248
  dangerouslySetInnerHTML: { __html: l.content.replace(/\n/g, "<br>") }
15233
15249
  }
15234
15250
  ),
15235
- !d && l.citations && l.citations.length > 0 && /* @__PURE__ */ S.jsx(
15236
- D1,
15251
+ !d && l.citations && l.citations.length > 0 && /* @__PURE__ */ x.jsx(
15252
+ B1,
15237
15253
  {
15238
15254
  citations: l.citations,
15239
15255
  theme: u,
@@ -15241,8 +15257,8 @@ const Ba = () => {
15241
15257
  onCardExpand: r
15242
15258
  }
15243
15259
  ),
15244
- l.audioUrl && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
15245
- /* @__PURE__ */ S.jsx(
15260
+ l.audioUrl && /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
15261
+ /* @__PURE__ */ x.jsx(
15246
15262
  "audio",
15247
15263
  {
15248
15264
  ref: T,
@@ -15251,24 +15267,24 @@ const Ba = () => {
15251
15267
  style: { display: "none" }
15252
15268
  }
15253
15269
  ),
15254
- /* @__PURE__ */ S.jsx(
15255
- U1,
15270
+ /* @__PURE__ */ x.jsx(
15271
+ k1,
15256
15272
  {
15257
15273
  theme: u,
15258
15274
  isPlaying: h,
15259
- onClick: x,
15275
+ onClick: S,
15260
15276
  "aria-label": h ? "Stop audio" : "Play audio",
15261
15277
  title: h ? "Stop audio" : "Play audio",
15262
- children: h ? /* @__PURE__ */ S.jsx(vb, { size: 16 }) : /* @__PURE__ */ S.jsx(yb, { size: 16 })
15278
+ children: h ? /* @__PURE__ */ x.jsx(vb, { size: 16 }) : /* @__PURE__ */ x.jsx(yb, { size: 16 })
15263
15279
  }
15264
15280
  )
15265
15281
  ] }),
15266
- d && /* @__PURE__ */ S.jsxs(N1, { theme: u, children: [
15267
- k1(l.timestamp),
15268
- l.status !== "sent" && /* @__PURE__ */ S.jsx(H1, { status: l.status, theme: u, children: l.status === "sending" ? "Sending..." : "Failed" })
15282
+ d && /* @__PURE__ */ x.jsxs(H1, { theme: u, children: [
15283
+ q1(l.timestamp),
15284
+ l.status !== "sent" && /* @__PURE__ */ x.jsx(U1, { status: l.status, theme: u, children: l.status === "sending" ? "Sending..." : "Failed" })
15269
15285
  ] })
15270
15286
  ] });
15271
- }), L1 = yn`
15287
+ }), Y1 = yn`
15272
15288
  from {
15273
15289
  opacity: 0;
15274
15290
  transform: translateY(4px);
@@ -15277,42 +15293,42 @@ const Ba = () => {
15277
15293
  opacity: 1;
15278
15294
  transform: translateY(0);
15279
15295
  }
15280
- `, Y1 = yn`
15296
+ `, G1 = yn`
15281
15297
  0%, 60%, 100% {
15282
15298
  transform: translateY(0);
15283
15299
  }
15284
15300
  30% {
15285
15301
  transform: translateY(-4px);
15286
15302
  }
15287
- `, G1 = U.div`
15303
+ `, Q1 = H.div`
15288
15304
  display: flex;
15289
15305
  align-items: center;
15290
15306
  gap: 8px;
15291
15307
  padding: 8px 4px;
15292
- animation: ${L1} 0.2s ease-out;
15293
- `, Q1 = U.span`
15308
+ animation: ${Y1} 0.2s ease-out;
15309
+ `, X1 = H.span`
15294
15310
  font-size: 13px;
15295
15311
  font-family: ${({ theme: l }) => l.fontFamily};
15296
15312
  color: ${({ theme: l }) => l.colors.textLight};
15297
15313
  font-style: italic;
15298
- `, X1 = U.span`
15314
+ `, V1 = H.span`
15299
15315
  display: inline-flex;
15300
15316
  align-items: center;
15301
15317
  gap: 3px;
15302
15318
  margin-left: 2px;
15303
- `, Rc = U.span`
15319
+ `, Rc = H.span`
15304
15320
  width: 5px;
15305
15321
  height: 5px;
15306
15322
  border-radius: 50%;
15307
15323
  background-color: ${({ theme: l }) => l.colors.primary};
15308
- animation: ${Y1} 1s infinite ease-in-out;
15324
+ animation: ${G1} 1s infinite ease-in-out;
15309
15325
  animation-delay: ${({ delay: l }) => l}ms;
15310
15326
 
15311
15327
  @media (prefers-reduced-motion: reduce) {
15312
15328
  animation: none;
15313
15329
  opacity: 0.6;
15314
15330
  }
15315
- `, V1 = (l) => {
15331
+ `, Z1 = (l) => {
15316
15332
  switch (l) {
15317
15333
  case "thinking":
15318
15334
  return "Thinking";
@@ -15335,27 +15351,27 @@ const Ba = () => {
15335
15351
  default:
15336
15352
  return "Thinking";
15337
15353
  }
15338
- }, Z1 = ({ theme: l, status: u }) => {
15339
- const s = V1(u), [r, d] = C.useState(""), [h, y] = C.useState(!1), T = C.useRef(s), x = C.useRef(null);
15354
+ }, K1 = ({ theme: l, status: u }) => {
15355
+ const s = Z1(u), [r, d] = C.useState(""), [h, y] = C.useState(!1), T = C.useRef(s), S = C.useRef(null);
15340
15356
  return C.useEffect(() => {
15341
- x.current && clearTimeout(x.current), (s !== T.current || r === "") && (T.current = s, d(""), y(!0));
15357
+ S.current && clearTimeout(S.current), (s !== T.current || r === "") && (T.current = s, d(""), y(!0));
15342
15358
  }, [s]), C.useEffect(() => {
15343
15359
  if (!h) return;
15344
15360
  const g = T.current;
15345
- return r.length < g.length ? x.current = setTimeout(() => {
15361
+ return r.length < g.length ? S.current = setTimeout(() => {
15346
15362
  d(g.slice(0, r.length + 1));
15347
15363
  }, 25) : y(!1), () => {
15348
- x.current && clearTimeout(x.current);
15364
+ S.current && clearTimeout(S.current);
15349
15365
  };
15350
- }, [r, h]), /* @__PURE__ */ S.jsxs(G1, { children: [
15351
- /* @__PURE__ */ S.jsx(Q1, { theme: l, children: r }),
15352
- /* @__PURE__ */ S.jsxs(X1, { children: [
15353
- /* @__PURE__ */ S.jsx(Rc, { delay: 0, theme: l }),
15354
- /* @__PURE__ */ S.jsx(Rc, { delay: 150, theme: l }),
15355
- /* @__PURE__ */ S.jsx(Rc, { delay: 300, theme: l })
15366
+ }, [r, h]), /* @__PURE__ */ x.jsxs(Q1, { children: [
15367
+ /* @__PURE__ */ x.jsx(X1, { theme: l, children: r }),
15368
+ /* @__PURE__ */ x.jsxs(V1, { children: [
15369
+ /* @__PURE__ */ x.jsx(Rc, { delay: 0, theme: l }),
15370
+ /* @__PURE__ */ x.jsx(Rc, { delay: 150, theme: l }),
15371
+ /* @__PURE__ */ x.jsx(Rc, { delay: 300, theme: l })
15356
15372
  ] })
15357
15373
  ] });
15358
- }, K1 = U.div`
15374
+ }, J1 = H.div`
15359
15375
  flex: 1;
15360
15376
  overflow-y: auto;
15361
15377
  padding: 16px;
@@ -15393,7 +15409,7 @@ const Ba = () => {
15393
15409
  &:hover::-webkit-scrollbar-thumb:hover {
15394
15410
  background-color: ${({ scrollbarThumbHover: l }) => l};
15395
15411
  }
15396
- `, J1 = U.div`
15412
+ `, W1 = H.div`
15397
15413
  display: flex;
15398
15414
  flex: 1;
15399
15415
  align-items: center;
@@ -15402,7 +15418,7 @@ const Ba = () => {
15402
15418
  font-size: 14px;
15403
15419
  text-align: center;
15404
15420
  padding: 20px;
15405
- `, W1 = U.div`
15421
+ `, F1 = H.div`
15406
15422
  display: flex;
15407
15423
  flex: 1;
15408
15424
  flex-direction: column;
@@ -15411,7 +15427,7 @@ const Ba = () => {
15411
15427
  gap: 12px;
15412
15428
  color: ${({ color: l }) => l};
15413
15429
  font-size: 14px;
15414
- `, F1 = U.div`
15430
+ `, I1 = H.div`
15415
15431
  width: 32px;
15416
15432
  height: 32px;
15417
15433
  border: 3px solid ${({ color: l }) => l}20;
@@ -15424,12 +15440,12 @@ const Ba = () => {
15424
15440
  transform: rotate(360deg);
15425
15441
  }
15426
15442
  }
15427
- `, I1 = U.div`
15443
+ `, P1 = H.div`
15428
15444
  display: flex;
15429
15445
  align-items: center;
15430
15446
  justify-content: center;
15431
15447
  padding: 12px 0;
15432
- `, P1 = U.div`
15448
+ `, tv = H.div`
15433
15449
  width: 20px;
15434
15450
  height: 20px;
15435
15451
  border: 2px solid ${({ color: l }) => l}20;
@@ -15442,8 +15458,8 @@ const Ba = () => {
15442
15458
  transform: rotate(360deg);
15443
15459
  }
15444
15460
  }
15445
- `, tv = ({ onCardExpand: l }) => {
15446
- const { messages: u, isTyping: s, isLoading: r, streamingStatus: d, theme: h, config: y, pagination: T, loadMoreMessages: x } = Ba(), g = C.useRef(null), A = C.useRef(0), z = C.useRef(!1), k = C.useRef(null);
15461
+ `, ev = ({ onCardExpand: l }) => {
15462
+ const { messages: u, isTyping: s, isLoading: r, streamingStatus: d, theme: h, config: y, pagination: T, loadMoreMessages: S } = Ba(), g = C.useRef(null), A = C.useRef(0), z = C.useRef(!1), k = C.useRef(null);
15447
15463
  C.useLayoutEffect(() => {
15448
15464
  const Q = g.current;
15449
15465
  if (!Q || r || u.length === 0) return;
@@ -15458,27 +15474,27 @@ const Ba = () => {
15458
15474
  }, [u, s, r]);
15459
15475
  const X = C.useCallback(() => {
15460
15476
  const Q = g.current;
15461
- !Q || z.current || Q.scrollTop <= 50 && T?.hasMore && !T.isLoadingMore && (A.current = Q.scrollHeight, z.current = !0, x());
15462
- }, [T, x]);
15477
+ !Q || z.current || Q.scrollTop <= 50 && T?.hasMore && !T.isLoadingMore && (A.current = Q.scrollHeight, z.current = !0, S());
15478
+ }, [T, S]);
15463
15479
  return C.useEffect(() => {
15464
15480
  const Q = g.current;
15465
15481
  if (Q)
15466
15482
  return Q.addEventListener("scroll", X, { passive: !0 }), () => Q.removeEventListener("scroll", X);
15467
- }, [X]), /* @__PURE__ */ S.jsx(
15468
- K1,
15483
+ }, [X]), /* @__PURE__ */ x.jsx(
15484
+ J1,
15469
15485
  {
15470
15486
  ref: g,
15471
15487
  fontFamily: h.fontFamily,
15472
15488
  scrollbarThumb: h.colors.scrollbarThumb,
15473
15489
  scrollbarThumbHover: h.colors.scrollbarThumbHover,
15474
15490
  background: h.colors.background,
15475
- children: r ? /* @__PURE__ */ S.jsxs(W1, { color: h.colors.textLight, children: [
15476
- /* @__PURE__ */ S.jsx(F1, { color: h.colors.primary }),
15491
+ children: r ? /* @__PURE__ */ x.jsxs(F1, { color: h.colors.textLight, children: [
15492
+ /* @__PURE__ */ x.jsx(I1, { color: h.colors.primary }),
15477
15493
  "Loading..."
15478
- ] }) : u.length === 0 && !s ? /* @__PURE__ */ S.jsx(J1, { color: h.colors.textLight, children: "Send a message to start the conversation" }) : /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
15479
- T?.isLoadingMore && /* @__PURE__ */ S.jsx(I1, { children: /* @__PURE__ */ S.jsx(P1, { color: h.colors.primary }) }),
15480
- u.map((Q) => /* @__PURE__ */ S.jsx(
15481
- q1,
15494
+ ] }) : u.length === 0 && !s ? /* @__PURE__ */ x.jsx(W1, { color: h.colors.textLight, children: "Send a message to start the conversation" }) : /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
15495
+ T?.isLoadingMore && /* @__PURE__ */ x.jsx(P1, { children: /* @__PURE__ */ x.jsx(tv, { color: h.colors.primary }) }),
15496
+ u.map((Q) => /* @__PURE__ */ x.jsx(
15497
+ L1,
15482
15498
  {
15483
15499
  message: Q,
15484
15500
  theme: h,
@@ -15487,12 +15503,12 @@ const Ba = () => {
15487
15503
  },
15488
15504
  Q.id
15489
15505
  )),
15490
- s && /* @__PURE__ */ S.jsx(Z1, { theme: h, status: d })
15506
+ s && /* @__PURE__ */ x.jsx(K1, { theme: h, status: d })
15491
15507
  ] })
15492
15508
  }
15493
15509
  );
15494
15510
  }, fg = (l = {}) => {
15495
- const { onTranscript: u, onError: s, language: r = "en-US" } = l, [d, h] = C.useState(!1), [y, T] = C.useState(""), [x, g] = C.useState(!1), A = C.useRef(null);
15511
+ const { onTranscript: u, onError: s, language: r = "en-US" } = l, [d, h] = C.useState(!1), [y, T] = C.useState(""), [S, g] = C.useState(!1), A = C.useRef(null);
15496
15512
  C.useEffect(() => {
15497
15513
  const Y = window.SpeechRecognition || window.webkitSpeechRecognition;
15498
15514
  return Y && (g(!0), A.current = new Y(), A.current.continuous = !0, A.current.interimResults = !0, A.current.lang = r), () => {
@@ -15530,41 +15546,41 @@ const Ba = () => {
15530
15546
  }, []);
15531
15547
  return {
15532
15548
  isRecording: d,
15533
- isSupported: x,
15549
+ isSupported: S,
15534
15550
  transcript: y,
15535
15551
  startRecording: z,
15536
15552
  stopRecording: k,
15537
15553
  toggleRecording: X,
15538
15554
  clearTranscript: Q
15539
15555
  };
15540
- }, ev = U.div`
15556
+ }, nv = H.div`
15541
15557
  display: flex;
15542
15558
  flex-direction: column;
15543
15559
  gap: 4px;
15544
15560
  padding: 10px 12px;
15545
- `, nv = U.div`
15561
+ `, av = H.div`
15546
15562
  display: flex;
15547
15563
  align-items: center;
15548
15564
  justify-content: space-between;
15549
15565
  gap: 8px;
15550
- `, av = U.span`
15566
+ `, lv = H.span`
15551
15567
  font-family: ${({ theme: l }) => l.fontFamily};
15552
15568
  font-size: 11px;
15553
15569
  color: ${({ theme: l }) => l.colors.textLight};
15554
15570
  flex-shrink: 0;
15555
- `, lv = U.span`
15571
+ `, iv = H.span`
15556
15572
  flex: 1;
15557
15573
  font-family: ${({ theme: l }) => l.fontFamily};
15558
15574
  font-size: 14px;
15559
15575
  font-weight: 600;
15560
15576
  color: ${({ theme: l }) => l.colors.text};
15561
15577
  line-height: 1.3;
15562
- `, iv = U.div`
15578
+ `, ov = H.div`
15563
15579
  display: flex;
15564
15580
  align-items: center;
15565
15581
  gap: 4px;
15566
15582
  flex-shrink: 0;
15567
- `, ov = U.button`
15583
+ `, uv = H.button`
15568
15584
  padding: 4px 8px;
15569
15585
  border: none;
15570
15586
  border-radius: 6px;
@@ -15580,7 +15596,7 @@ const Ba = () => {
15580
15596
  background-color: ${({ theme: l }) => l.colors.surface};
15581
15597
  color: ${({ theme: l }) => l.colors.text};
15582
15598
  }
15583
- `, uv = U.button`
15599
+ `, rv = H.button`
15584
15600
  display: flex;
15585
15601
  align-items: center;
15586
15602
  justify-content: center;
@@ -15598,20 +15614,20 @@ const Ba = () => {
15598
15614
  background-color: ${({ theme: l }) => l.colors.surface};
15599
15615
  color: ${({ theme: l }) => l.colors.text};
15600
15616
  }
15601
- `, dg = C.memo(({ question: l, progress: u, onCancel: s, onSkip: r, theme: d }) => /* @__PURE__ */ S.jsx(ev, { children: /* @__PURE__ */ S.jsxs(nv, { children: [
15602
- u && /* @__PURE__ */ S.jsxs(av, { theme: d, children: [
15617
+ `, dg = C.memo(({ question: l, progress: u, onCancel: s, onSkip: r, theme: d }) => /* @__PURE__ */ x.jsx(nv, { children: /* @__PURE__ */ x.jsxs(av, { children: [
15618
+ u && /* @__PURE__ */ x.jsxs(lv, { theme: d, children: [
15603
15619
  u.currentIndex + 1,
15604
15620
  "/",
15605
15621
  u.totalQuestions
15606
15622
  ] }),
15607
- /* @__PURE__ */ S.jsx(lv, { theme: d, children: l }),
15608
- /* @__PURE__ */ S.jsxs(iv, { children: [
15609
- r && /* @__PURE__ */ S.jsx(ov, { theme: d, onClick: r, type: "button", children: "Skip" }),
15610
- /* @__PURE__ */ S.jsx(uv, { theme: d, onClick: s, "aria-label": "Cancel survey", children: /* @__PURE__ */ S.jsx(su, { size: 16 }) })
15623
+ /* @__PURE__ */ x.jsx(iv, { theme: d, children: l }),
15624
+ /* @__PURE__ */ x.jsxs(ov, { children: [
15625
+ r && /* @__PURE__ */ x.jsx(uv, { theme: d, onClick: r, type: "button", children: "Skip" }),
15626
+ /* @__PURE__ */ x.jsx(rv, { theme: d, onClick: s, "aria-label": "Cancel survey", children: /* @__PURE__ */ x.jsx(su, { size: 16 }) })
15611
15627
  ] })
15612
15628
  ] }) }));
15613
15629
  dg.displayName = "SurveyHeader";
15614
- const rv = U.button`
15630
+ const cv = H.button`
15615
15631
  display: flex;
15616
15632
  align-items: center;
15617
15633
  gap: 8px;
@@ -15636,7 +15652,7 @@ const rv = U.button`
15636
15652
  &:active {
15637
15653
  transform: scale(0.99);
15638
15654
  }
15639
- `, cv = U.span`
15655
+ `, sv = H.span`
15640
15656
  display: flex;
15641
15657
  align-items: center;
15642
15658
  justify-content: center;
@@ -15649,37 +15665,37 @@ const rv = U.button`
15649
15665
  font-family: ${({ theme: l }) => l.fontFamily};
15650
15666
  font-size: 11px;
15651
15667
  font-weight: 600;
15652
- `, sv = U.span`
15668
+ `, fv = H.span`
15653
15669
  flex: 1;
15654
15670
  font-family: ${({ theme: l }) => l.fontFamily};
15655
15671
  font-size: 13px;
15656
15672
  color: ${({ theme: l }) => l.colors.text};
15657
- `, fv = U.span`
15673
+ `, dv = H.span`
15658
15674
  display: flex;
15659
15675
  align-items: center;
15660
15676
  color: ${({ theme: l }) => l.colors.textLight};
15661
15677
  opacity: ${({ isVisible: l }) => l ? 1 : 0};
15662
15678
  transition: opacity 0.2s ease;
15663
- `, hg = C.memo(({ label: l, index: u, isSelected: s, onSelect: r, theme: d }) => /* @__PURE__ */ S.jsxs(
15664
- rv,
15679
+ `, hg = C.memo(({ label: l, index: u, isSelected: s, onSelect: r, theme: d }) => /* @__PURE__ */ x.jsxs(
15680
+ cv,
15665
15681
  {
15666
15682
  theme: d,
15667
15683
  isSelected: s,
15668
15684
  onClick: r,
15669
15685
  type: "button",
15670
15686
  children: [
15671
- /* @__PURE__ */ S.jsx(cv, { theme: d, isSelected: s, children: u + 1 }),
15672
- /* @__PURE__ */ S.jsx(sv, { theme: d, children: l }),
15673
- /* @__PURE__ */ S.jsx(fv, { theme: d, isVisible: s, className: "choice-arrow", children: /* @__PURE__ */ S.jsx(Fy, { size: 16 }) })
15687
+ /* @__PURE__ */ x.jsx(sv, { theme: d, isSelected: s, children: u + 1 }),
15688
+ /* @__PURE__ */ x.jsx(fv, { theme: d, children: l }),
15689
+ /* @__PURE__ */ x.jsx(dv, { theme: d, isVisible: s, className: "choice-arrow", children: /* @__PURE__ */ x.jsx(Fy, { size: 16 }) })
15674
15690
  ]
15675
15691
  }
15676
15692
  ));
15677
15693
  hg.displayName = "ChoiceOption";
15678
- const dv = U.div`
15694
+ const hv = H.div`
15679
15695
  display: flex;
15680
15696
  flex-direction: column;
15681
15697
  gap: 6px;
15682
- `, hv = U.button`
15698
+ `, pv = H.button`
15683
15699
  display: flex;
15684
15700
  align-items: center;
15685
15701
  gap: 8px;
@@ -15695,7 +15711,7 @@ const dv = U.div`
15695
15711
  &:hover {
15696
15712
  background-color: ${({ theme: l }) => l.colors.surveyOptionBgHover};
15697
15713
  }
15698
- `, pv = U.span`
15714
+ `, gv = H.span`
15699
15715
  display: flex;
15700
15716
  align-items: center;
15701
15717
  justify-content: center;
@@ -15705,16 +15721,16 @@ const dv = U.div`
15705
15721
  border-radius: 5px;
15706
15722
  background-color: ${({ theme: l }) => l.colors.surveyNumberBg};
15707
15723
  color: ${({ theme: l }) => l.colors.surveyNumberText};
15708
- `, gv = U.span`
15724
+ `, mv = H.span`
15709
15725
  flex: 1;
15710
15726
  font-family: ${({ theme: l }) => l.fontFamily};
15711
15727
  font-size: 13px;
15712
15728
  color: ${({ theme: l }) => l.colors.textLight};
15713
- `, mv = U.div`
15729
+ `, yv = H.div`
15714
15730
  display: flex;
15715
15731
  gap: 8px;
15716
15732
  align-items: center;
15717
- `, yv = U.input`
15733
+ `, bv = H.input`
15718
15734
  flex: 1;
15719
15735
  padding: 8px 12px;
15720
15736
  border: 1px solid ${({ theme: l }) => l.colors.border};
@@ -15733,7 +15749,7 @@ const dv = U.div`
15733
15749
  &::placeholder {
15734
15750
  color: ${({ theme: l }) => l.colors.textLight};
15735
15751
  }
15736
- `, bv = U.button`
15752
+ `, vv = H.button`
15737
15753
  display: flex;
15738
15754
  align-items: center;
15739
15755
  justify-content: center;
@@ -15756,47 +15772,47 @@ const dv = U.div`
15756
15772
  `, pg = C.memo(({ onSubmit: l, theme: u, placeholder: s = "Type your answer..." }) => {
15757
15773
  const [r, d] = C.useState(!1), [h, y] = C.useState(""), T = () => {
15758
15774
  h.trim() && l(h.trim());
15759
- }, x = (g) => {
15775
+ }, S = (g) => {
15760
15776
  g.key === "Enter" && !g.shiftKey && (g.preventDefault(), T());
15761
15777
  };
15762
- return r ? /* @__PURE__ */ S.jsx(dv, { children: /* @__PURE__ */ S.jsxs(mv, { theme: u, children: [
15763
- /* @__PURE__ */ S.jsx(
15764
- yv,
15778
+ return r ? /* @__PURE__ */ x.jsx(hv, { children: /* @__PURE__ */ x.jsxs(yv, { theme: u, children: [
15779
+ /* @__PURE__ */ x.jsx(
15780
+ bv,
15765
15781
  {
15766
15782
  theme: u,
15767
15783
  value: h,
15768
15784
  onChange: (g) => y(g.target.value),
15769
- onKeyDown: x,
15785
+ onKeyDown: S,
15770
15786
  placeholder: s,
15771
15787
  autoFocus: !0
15772
15788
  }
15773
15789
  ),
15774
- /* @__PURE__ */ S.jsx(
15775
- bv,
15790
+ /* @__PURE__ */ x.jsx(
15791
+ vv,
15776
15792
  {
15777
15793
  theme: u,
15778
15794
  onClick: T,
15779
15795
  disabled: !h.trim(),
15780
15796
  type: "button",
15781
- children: /* @__PURE__ */ S.jsx(wl, { size: 18 })
15797
+ children: /* @__PURE__ */ x.jsx(wl, { size: 18 })
15782
15798
  }
15783
15799
  )
15784
- ] }) }) : /* @__PURE__ */ S.jsxs(
15785
- hv,
15800
+ ] }) }) : /* @__PURE__ */ x.jsxs(
15801
+ pv,
15786
15802
  {
15787
15803
  theme: u,
15788
15804
  isActive: !1,
15789
15805
  onClick: () => d(!0),
15790
15806
  type: "button",
15791
15807
  children: [
15792
- /* @__PURE__ */ S.jsx(pv, { theme: u, children: /* @__PURE__ */ S.jsx(ob, { size: 12 }) }),
15793
- /* @__PURE__ */ S.jsx(gv, { theme: u, children: "Something else" })
15808
+ /* @__PURE__ */ x.jsx(gv, { theme: u, children: /* @__PURE__ */ x.jsx(ob, { size: 12 }) }),
15809
+ /* @__PURE__ */ x.jsx(mv, { theme: u, children: "Something else" })
15794
15810
  ]
15795
15811
  }
15796
15812
  );
15797
15813
  });
15798
15814
  pg.displayName = "OtherOption";
15799
- const vv = U.div`
15815
+ const xv = H.div`
15800
15816
  display: flex;
15801
15817
  flex-direction: column;
15802
15818
  gap: 4px;
@@ -15815,11 +15831,11 @@ const vv = U.div`
15815
15831
  r(z);
15816
15832
  } else
15817
15833
  y(/* @__PURE__ */ new Set([g])), r(l[g]);
15818
- }, x = (g) => {
15834
+ }, S = (g) => {
15819
15835
  r(g);
15820
15836
  };
15821
- return /* @__PURE__ */ S.jsxs(vv, { children: [
15822
- l.map((g, A) => /* @__PURE__ */ S.jsx(
15837
+ return /* @__PURE__ */ x.jsxs(xv, { children: [
15838
+ l.map((g, A) => /* @__PURE__ */ x.jsx(
15823
15839
  hg,
15824
15840
  {
15825
15841
  label: g,
@@ -15830,30 +15846,30 @@ const vv = U.div`
15830
15846
  },
15831
15847
  A
15832
15848
  )),
15833
- s && /* @__PURE__ */ S.jsx(
15849
+ s && /* @__PURE__ */ x.jsx(
15834
15850
  pg,
15835
15851
  {
15836
- onSubmit: x,
15852
+ onSubmit: S,
15837
15853
  theme: d
15838
15854
  }
15839
15855
  )
15840
15856
  ] });
15841
15857
  });
15842
15858
  lu.displayName = "ChoiceOptions";
15843
- const xv = U.div`
15859
+ const Sv = H.div`
15844
15860
  display: flex;
15845
15861
  flex-direction: column;
15846
15862
  gap: 8px;
15847
- `, Sv = U.div`
15863
+ `, Cv = H.div`
15848
15864
  display: flex;
15849
15865
  flex-direction: column;
15850
15866
  gap: 4px;
15851
- `, Cv = U.div`
15867
+ `, Tv = H.div`
15852
15868
  position: relative;
15853
15869
  height: 8px;
15854
15870
  border-radius: 4px;
15855
15871
  background-color: ${({ theme: l }) => l.colors.borderLight};
15856
- `, Tv = U.div`
15872
+ `, Ev = H.div`
15857
15873
  position: absolute;
15858
15874
  left: 0;
15859
15875
  top: 0;
@@ -15862,7 +15878,7 @@ const xv = U.div`
15862
15878
  border-radius: 4px;
15863
15879
  background-color: ${({ theme: l }) => l.colors.primary};
15864
15880
  transition: width 0.1s ease;
15865
- `, Ev = U.input`
15881
+ `, zv = H.input`
15866
15882
  position: absolute;
15867
15883
  top: -6px;
15868
15884
  left: 0;
@@ -15871,9 +15887,9 @@ const xv = U.div`
15871
15887
  margin: 0;
15872
15888
  opacity: 0;
15873
15889
  cursor: pointer;
15874
- `, zv = U.div`
15890
+ `, Av = H.div`
15875
15891
  position: relative;
15876
- `, Av = U.div`
15892
+ `, Mv = H.div`
15877
15893
  display: flex;
15878
15894
  align-items: center;
15879
15895
  justify-content: center;
@@ -15884,18 +15900,18 @@ const xv = U.div`
15884
15900
  font-size: 18px;
15885
15901
  font-weight: 600;
15886
15902
  color: ${({ theme: l }) => l.colors.primary};
15887
- `, Mv = U.div`
15903
+ `, wv = H.div`
15888
15904
  display: flex;
15889
15905
  justify-content: space-between;
15890
- `, Bp = U.span`
15906
+ `, Bp = H.span`
15891
15907
  font-family: ${({ theme: l }) => l.fontFamily};
15892
15908
  font-size: 11px;
15893
15909
  color: ${({ theme: l }) => l.colors.textLight};
15894
- `, wv = U.div`
15910
+ `, Ov = H.div`
15895
15911
  display: flex;
15896
15912
  justify-content: space-between;
15897
15913
  align-items: center;
15898
- `, Ov = U.button`
15914
+ `, _v = H.button`
15899
15915
  display: flex;
15900
15916
  align-items: center;
15901
15917
  justify-content: center;
@@ -15916,15 +15932,15 @@ const xv = U.div`
15916
15932
  transform: scale(0.95);
15917
15933
  }
15918
15934
  `, gg = C.memo(({ scale: l, onSubmit: u, theme: s }) => {
15919
- const { min: r, max: d, minLabel: h, maxLabel: y } = l, [T, x] = C.useState(Math.floor((r + d) / 2)), g = (T - r) / (d - r) * 100, A = (z) => {
15920
- x(parseInt(z.target.value, 10));
15935
+ const { min: r, max: d, minLabel: h, maxLabel: y } = l, [T, S] = C.useState(Math.floor((r + d) / 2)), g = (T - r) / (d - r) * 100, A = (z) => {
15936
+ S(parseInt(z.target.value, 10));
15921
15937
  };
15922
- return /* @__PURE__ */ S.jsxs(xv, { children: [
15923
- /* @__PURE__ */ S.jsxs(Sv, { children: [
15924
- /* @__PURE__ */ S.jsxs(zv, { children: [
15925
- /* @__PURE__ */ S.jsx(Cv, { theme: s, children: /* @__PURE__ */ S.jsx(Tv, { theme: s, percentage: g }) }),
15926
- /* @__PURE__ */ S.jsx(
15927
- Ev,
15938
+ return /* @__PURE__ */ x.jsxs(Sv, { children: [
15939
+ /* @__PURE__ */ x.jsxs(Cv, { children: [
15940
+ /* @__PURE__ */ x.jsxs(Av, { children: [
15941
+ /* @__PURE__ */ x.jsx(Tv, { theme: s, children: /* @__PURE__ */ x.jsx(Ev, { theme: s, percentage: g }) }),
15942
+ /* @__PURE__ */ x.jsx(
15943
+ zv,
15928
15944
  {
15929
15945
  theme: s,
15930
15946
  type: "range",
@@ -15935,19 +15951,19 @@ const xv = U.div`
15935
15951
  }
15936
15952
  )
15937
15953
  ] }),
15938
- /* @__PURE__ */ S.jsxs(Mv, { children: [
15939
- /* @__PURE__ */ S.jsx(Bp, { theme: s, children: h || r }),
15940
- /* @__PURE__ */ S.jsx(Bp, { theme: s, children: y || d })
15954
+ /* @__PURE__ */ x.jsxs(wv, { children: [
15955
+ /* @__PURE__ */ x.jsx(Bp, { theme: s, children: h || r }),
15956
+ /* @__PURE__ */ x.jsx(Bp, { theme: s, children: y || d })
15941
15957
  ] })
15942
15958
  ] }),
15943
- /* @__PURE__ */ S.jsxs(wv, { children: [
15944
- /* @__PURE__ */ S.jsx(Av, { theme: s, children: T }),
15945
- /* @__PURE__ */ S.jsx(Ov, { theme: s, onClick: () => u(T), type: "button", children: /* @__PURE__ */ S.jsx(wl, { size: 18 }) })
15959
+ /* @__PURE__ */ x.jsxs(Ov, { children: [
15960
+ /* @__PURE__ */ x.jsx(Mv, { theme: s, children: T }),
15961
+ /* @__PURE__ */ x.jsx(_v, { theme: s, onClick: () => u(T), type: "button", children: /* @__PURE__ */ x.jsx(wl, { size: 18 }) })
15946
15962
  ] })
15947
15963
  ] });
15948
15964
  });
15949
15965
  gg.displayName = "ScaleInput";
15950
- const _v = U.div`
15966
+ const $v = H.div`
15951
15967
  display: flex;
15952
15968
  flex-direction: column;
15953
15969
  border: 1.5px solid ${({ theme: l }) => l.colors.border};
@@ -15959,7 +15975,7 @@ const _v = U.div`
15959
15975
  border-color: ${({ theme: l }) => l.colors.primary};
15960
15976
  box-shadow: 0 0 0 3px ${({ theme: l }) => l.colors.accentLight};
15961
15977
  }
15962
- `, $v = U.textarea`
15978
+ `, Dv = H.textarea`
15963
15979
  flex: 1;
15964
15980
  padding: 12px 16px 8px;
15965
15981
  border: none;
@@ -15977,13 +15993,13 @@ const _v = U.div`
15977
15993
  &::placeholder {
15978
15994
  color: ${({ theme: l }) => l.colors.textLight};
15979
15995
  }
15980
- `, Dv = U.div`
15996
+ `, Bv = H.div`
15981
15997
  display: flex;
15982
15998
  justify-content: flex-end;
15983
15999
  align-items: center;
15984
16000
  gap: 8px;
15985
16001
  padding: 4px 12px 8px;
15986
- `, Bv = U.button`
16002
+ `, Rv = H.button`
15987
16003
  display: flex;
15988
16004
  align-items: center;
15989
16005
  justify-content: center;
@@ -16003,7 +16019,7 @@ const _v = U.div`
16003
16019
  &:active:not(:disabled) {
16004
16020
  transform: scale(0.95);
16005
16021
  }
16006
- `, Rv = (l) => yn`
16022
+ `, jv = (l) => yn`
16007
16023
  0% {
16008
16024
  box-shadow: 0 0 0 0 ${l}66;
16009
16025
  }
@@ -16013,7 +16029,7 @@ const _v = U.div`
16013
16029
  100% {
16014
16030
  box-shadow: 0 0 0 0 ${l}00;
16015
16031
  }
16016
- `, jv = U.button`
16032
+ `, Nv = H.button`
16017
16033
  display: flex;
16018
16034
  align-items: center;
16019
16035
  justify-content: center;
@@ -16025,7 +16041,7 @@ const _v = U.div`
16025
16041
  color: ${({ theme: l, isRecording: u }) => u ? l.colors.white : l.colors.textLight};
16026
16042
  cursor: pointer;
16027
16043
  transition: background-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
16028
- animation: ${({ isRecording: l, theme: u }) => l ? Rv(u.colors.recording) : "none"} 1.5s infinite;
16044
+ animation: ${({ isRecording: l, theme: u }) => l ? jv(u.colors.recording) : "none"} 1.5s infinite;
16029
16045
 
16030
16046
  &:hover {
16031
16047
  background-color: ${({ theme: l, isRecording: u }) => u ? l.colors.recording : l.colors.border};
@@ -16036,7 +16052,7 @@ const _v = U.div`
16036
16052
  transform: scale(0.95);
16037
16053
  }
16038
16054
  `, qc = C.memo(({ onSubmit: l, theme: u, placeholder: s = "Type your answer..." }) => {
16039
- const [r, d] = C.useState(""), { isRecording: h, isSupported: y, transcript: T, toggleRecording: x, clearTranscript: g } = fg({
16055
+ const [r, d] = C.useState(""), { isRecording: h, isSupported: y, transcript: T, toggleRecording: S, clearTranscript: g } = fg({
16040
16056
  onError: (X) => {
16041
16057
  console.error("Voice recording error:", X);
16042
16058
  }
@@ -16049,9 +16065,9 @@ const _v = U.div`
16049
16065
  }, z = (X) => {
16050
16066
  X.key === "Enter" && !X.shiftKey && (X.preventDefault(), A());
16051
16067
  }, k = () => h ? "Listening..." : s;
16052
- return /* @__PURE__ */ S.jsxs(_v, { theme: u, children: [
16053
- /* @__PURE__ */ S.jsx(
16054
- $v,
16068
+ return /* @__PURE__ */ x.jsxs($v, { theme: u, children: [
16069
+ /* @__PURE__ */ x.jsx(
16070
+ Dv,
16055
16071
  {
16056
16072
  theme: u,
16057
16073
  value: r,
@@ -16061,42 +16077,42 @@ const _v = U.div`
16061
16077
  rows: 1
16062
16078
  }
16063
16079
  ),
16064
- /* @__PURE__ */ S.jsxs(Dv, { children: [
16065
- y && /* @__PURE__ */ S.jsx(
16066
- jv,
16080
+ /* @__PURE__ */ x.jsxs(Bv, { children: [
16081
+ y && /* @__PURE__ */ x.jsx(
16082
+ Nv,
16067
16083
  {
16068
16084
  theme: u,
16069
- onClick: x,
16085
+ onClick: S,
16070
16086
  isRecording: h,
16071
16087
  "aria-label": h ? "Stop recording" : "Start voice recording",
16072
16088
  title: h ? "Stop recording" : "Start voice recording",
16073
16089
  type: "button",
16074
- children: /* @__PURE__ */ S.jsx(ig, { size: 18 })
16090
+ children: /* @__PURE__ */ x.jsx(ig, { size: 18 })
16075
16091
  }
16076
16092
  ),
16077
- /* @__PURE__ */ S.jsx(
16078
- Bv,
16093
+ /* @__PURE__ */ x.jsx(
16094
+ Rv,
16079
16095
  {
16080
16096
  theme: u,
16081
16097
  onClick: A,
16082
16098
  disabled: !r.trim(),
16083
16099
  type: "button",
16084
- children: /* @__PURE__ */ S.jsx(wl, { size: 18 })
16100
+ children: /* @__PURE__ */ x.jsx(wl, { size: 18 })
16085
16101
  }
16086
16102
  )
16087
16103
  ] })
16088
16104
  ] });
16089
16105
  });
16090
16106
  qc.displayName = "TextInput";
16091
- const Nv = U.div`
16107
+ const Hv = H.div`
16092
16108
  display: flex;
16093
16109
  flex-direction: column;
16094
16110
  gap: 8px;
16095
- `, Hv = U.div`
16111
+ `, Uv = H.div`
16096
16112
  display: flex;
16097
16113
  gap: 8px;
16098
16114
  align-items: center;
16099
- `, Uv = U.input`
16115
+ `, kv = H.input`
16100
16116
  flex: 1;
16101
16117
  padding: 10px 12px;
16102
16118
  border: 1px solid ${({ theme: l }) => l.colors.border};
@@ -16123,7 +16139,7 @@ const Nv = U.div`
16123
16139
  margin: 0;
16124
16140
  }
16125
16141
  -moz-appearance: textfield;
16126
- `, kv = U.button`
16142
+ `, qv = H.button`
16127
16143
  display: flex;
16128
16144
  align-items: center;
16129
16145
  justify-content: center;
@@ -16151,7 +16167,7 @@ const Nv = U.div`
16151
16167
  min: d,
16152
16168
  max: h
16153
16169
  }) => {
16154
- const [y, T] = C.useState(""), x = (k) => {
16170
+ const [y, T] = C.useState(""), S = (k) => {
16155
16171
  const X = k.target.value;
16156
16172
  if (X === "" || X === "-") {
16157
16173
  T(X);
@@ -16168,36 +16184,36 @@ const Nv = U.div`
16168
16184
  const k = r ? parseFloat(y) : parseInt(y, 10);
16169
16185
  return !(isNaN(k) || d !== void 0 && k < d || h !== void 0 && k > h);
16170
16186
  };
16171
- return /* @__PURE__ */ S.jsx(Nv, { children: /* @__PURE__ */ S.jsxs(Hv, { children: [
16172
- /* @__PURE__ */ S.jsx(
16173
- Uv,
16187
+ return /* @__PURE__ */ x.jsx(Hv, { children: /* @__PURE__ */ x.jsxs(Uv, { children: [
16188
+ /* @__PURE__ */ x.jsx(
16189
+ kv,
16174
16190
  {
16175
16191
  theme: u,
16176
16192
  type: "text",
16177
16193
  inputMode: r ? "decimal" : "numeric",
16178
16194
  value: y,
16179
- onChange: x,
16195
+ onChange: S,
16180
16196
  onKeyDown: A,
16181
16197
  placeholder: s
16182
16198
  }
16183
16199
  ),
16184
- /* @__PURE__ */ S.jsx(
16185
- kv,
16200
+ /* @__PURE__ */ x.jsx(
16201
+ qv,
16186
16202
  {
16187
16203
  theme: u,
16188
16204
  onClick: g,
16189
16205
  disabled: !z(),
16190
16206
  type: "button",
16191
- children: /* @__PURE__ */ S.jsx(wl, { size: 18 })
16207
+ children: /* @__PURE__ */ x.jsx(wl, { size: 18 })
16192
16208
  }
16193
16209
  )
16194
16210
  ] }) });
16195
16211
  });
16196
16212
  Lc.displayName = "NumberInput";
16197
- const qv = U.div`
16213
+ const Lv = H.div`
16198
16214
  display: flex;
16199
16215
  gap: 8px;
16200
- `, Rp = U.button`
16216
+ `, Rp = H.button`
16201
16217
  flex: 1;
16202
16218
  display: flex;
16203
16219
  align-items: center;
@@ -16227,8 +16243,8 @@ const qv = U.div`
16227
16243
  theme: u,
16228
16244
  yesLabel: s = "Yes",
16229
16245
  noLabel: r = "No"
16230
- }) => /* @__PURE__ */ S.jsxs(qv, { children: [
16231
- /* @__PURE__ */ S.jsx(
16246
+ }) => /* @__PURE__ */ x.jsxs(Lv, { children: [
16247
+ /* @__PURE__ */ x.jsx(
16232
16248
  Rp,
16233
16249
  {
16234
16250
  theme: u,
@@ -16238,7 +16254,7 @@ const qv = U.div`
16238
16254
  children: s
16239
16255
  }
16240
16256
  ),
16241
- /* @__PURE__ */ S.jsx(
16257
+ /* @__PURE__ */ x.jsx(
16242
16258
  Rp,
16243
16259
  {
16244
16260
  theme: u,
@@ -16250,15 +16266,15 @@ const qv = U.div`
16250
16266
  )
16251
16267
  ] }));
16252
16268
  mg.displayName = "BooleanInput";
16253
- const Lv = U.div`
16269
+ const Yv = H.div`
16254
16270
  display: flex;
16255
16271
  flex-direction: column;
16256
16272
  gap: 8px;
16257
- `, Yv = U.div`
16273
+ `, Gv = H.div`
16258
16274
  display: flex;
16259
16275
  gap: 8px;
16260
16276
  align-items: center;
16261
- `, Gv = U.input`
16277
+ `, Qv = H.input`
16262
16278
  flex: 1;
16263
16279
  padding: 10px 12px;
16264
16280
  border: 1px solid ${({ theme: l }) => l.colors.border};
@@ -16284,7 +16300,7 @@ const Lv = U.div`
16284
16300
  opacity: 1;
16285
16301
  }
16286
16302
  }
16287
- `, Qv = U.button`
16303
+ `, Xv = H.button`
16288
16304
  display: flex;
16289
16305
  align-items: center;
16290
16306
  justify-content: center;
@@ -16310,9 +16326,9 @@ const Lv = U.div`
16310
16326
  }, y = (T) => {
16311
16327
  T.key === "Enter" && (T.preventDefault(), h());
16312
16328
  };
16313
- return /* @__PURE__ */ S.jsx(Lv, { children: /* @__PURE__ */ S.jsxs(Yv, { children: [
16314
- /* @__PURE__ */ S.jsx(
16315
- Gv,
16329
+ return /* @__PURE__ */ x.jsx(Yv, { children: /* @__PURE__ */ x.jsxs(Gv, { children: [
16330
+ /* @__PURE__ */ x.jsx(
16331
+ Qv,
16316
16332
  {
16317
16333
  theme: u,
16318
16334
  type: s ? "datetime-local" : "date",
@@ -16321,20 +16337,20 @@ const Lv = U.div`
16321
16337
  onKeyDown: y
16322
16338
  }
16323
16339
  ),
16324
- /* @__PURE__ */ S.jsx(
16325
- Qv,
16340
+ /* @__PURE__ */ x.jsx(
16341
+ Xv,
16326
16342
  {
16327
16343
  theme: u,
16328
16344
  onClick: h,
16329
16345
  disabled: !r,
16330
16346
  type: "button",
16331
- children: /* @__PURE__ */ S.jsx(wl, { size: 18 })
16347
+ children: /* @__PURE__ */ x.jsx(wl, { size: 18 })
16332
16348
  }
16333
16349
  )
16334
16350
  ] }) });
16335
16351
  });
16336
16352
  Yc.displayName = "DateInput";
16337
- const Xv = U.div`
16353
+ const Vv = H.div`
16338
16354
  display: flex;
16339
16355
  flex-direction: column;
16340
16356
  margin: 12px 16px 6px;
@@ -16344,7 +16360,7 @@ const Xv = U.div`
16344
16360
  overflow: hidden;
16345
16361
  max-height: 350px;
16346
16362
  overflow-y: auto;
16347
- `, Vv = U.div`
16363
+ `, Zv = H.div`
16348
16364
  padding: 0 12px 12px;
16349
16365
  `, yg = C.memo(({
16350
16366
  questionInfo: l,
@@ -16354,13 +16370,13 @@ const Xv = U.div`
16354
16370
  onCancel: d,
16355
16371
  theme: h
16356
16372
  }) => {
16357
- const { type: y, question: T, options: x, scale: g, allowMultiple: A, allowOther: z, placeholder: k } = l, X = () => {
16373
+ const { type: y, question: T, options: S, scale: g, allowMultiple: A, allowOther: z, placeholder: k } = l, X = () => {
16358
16374
  switch (y) {
16359
16375
  case "CHOICE":
16360
- return /* @__PURE__ */ S.jsx(
16376
+ return /* @__PURE__ */ x.jsx(
16361
16377
  lu,
16362
16378
  {
16363
- options: x || [],
16379
+ options: S || [],
16364
16380
  allowMultiple: A,
16365
16381
  allowOther: z,
16366
16382
  onSelect: s,
@@ -16368,33 +16384,33 @@ const Xv = U.div`
16368
16384
  }
16369
16385
  );
16370
16386
  case "CHOICE_WITH_SCALE":
16371
- return g ? /* @__PURE__ */ S.jsx(
16387
+ return g ? /* @__PURE__ */ x.jsx(
16372
16388
  gg,
16373
16389
  {
16374
16390
  scale: g,
16375
16391
  onSubmit: s,
16376
16392
  theme: h
16377
16393
  }
16378
- ) : /* @__PURE__ */ S.jsx(
16394
+ ) : /* @__PURE__ */ x.jsx(
16379
16395
  lu,
16380
16396
  {
16381
- options: x || [],
16397
+ options: S || [],
16382
16398
  onSelect: s,
16383
16399
  theme: h
16384
16400
  }
16385
16401
  );
16386
16402
  case "CHOICE_WITH_IMAGES":
16387
- return /* @__PURE__ */ S.jsx(
16403
+ return /* @__PURE__ */ x.jsx(
16388
16404
  lu,
16389
16405
  {
16390
- options: x || [],
16406
+ options: S || [],
16391
16407
  allowOther: z,
16392
16408
  onSelect: s,
16393
16409
  theme: h
16394
16410
  }
16395
16411
  );
16396
16412
  case "STRING":
16397
- return /* @__PURE__ */ S.jsx(
16413
+ return /* @__PURE__ */ x.jsx(
16398
16414
  qc,
16399
16415
  {
16400
16416
  onSubmit: s,
@@ -16403,7 +16419,7 @@ const Xv = U.div`
16403
16419
  }
16404
16420
  );
16405
16421
  case "INTEGER":
16406
- return /* @__PURE__ */ S.jsx(
16422
+ return /* @__PURE__ */ x.jsx(
16407
16423
  Lc,
16408
16424
  {
16409
16425
  onSubmit: s,
@@ -16413,7 +16429,7 @@ const Xv = U.div`
16413
16429
  }
16414
16430
  );
16415
16431
  case "DECIMAL":
16416
- return /* @__PURE__ */ S.jsx(
16432
+ return /* @__PURE__ */ x.jsx(
16417
16433
  Lc,
16418
16434
  {
16419
16435
  onSubmit: s,
@@ -16423,7 +16439,7 @@ const Xv = U.div`
16423
16439
  }
16424
16440
  );
16425
16441
  case "BOOLEAN":
16426
- return /* @__PURE__ */ S.jsx(
16442
+ return /* @__PURE__ */ x.jsx(
16427
16443
  mg,
16428
16444
  {
16429
16445
  onSubmit: s,
@@ -16431,7 +16447,7 @@ const Xv = U.div`
16431
16447
  }
16432
16448
  );
16433
16449
  case "DATE":
16434
- return /* @__PURE__ */ S.jsx(
16450
+ return /* @__PURE__ */ x.jsx(
16435
16451
  Yc,
16436
16452
  {
16437
16453
  onSubmit: s,
@@ -16440,7 +16456,7 @@ const Xv = U.div`
16440
16456
  }
16441
16457
  );
16442
16458
  case "DATE_TIME":
16443
- return /* @__PURE__ */ S.jsx(
16459
+ return /* @__PURE__ */ x.jsx(
16444
16460
  Yc,
16445
16461
  {
16446
16462
  onSubmit: s,
@@ -16449,7 +16465,7 @@ const Xv = U.div`
16449
16465
  }
16450
16466
  );
16451
16467
  default:
16452
- return /* @__PURE__ */ S.jsx(
16468
+ return /* @__PURE__ */ x.jsx(
16453
16469
  qc,
16454
16470
  {
16455
16471
  onSubmit: s,
@@ -16459,8 +16475,8 @@ const Xv = U.div`
16459
16475
  );
16460
16476
  }
16461
16477
  };
16462
- return /* @__PURE__ */ S.jsxs(Xv, { theme: h, children: [
16463
- /* @__PURE__ */ S.jsx(
16478
+ return /* @__PURE__ */ x.jsxs(Vv, { theme: h, children: [
16479
+ /* @__PURE__ */ x.jsx(
16464
16480
  dg,
16465
16481
  {
16466
16482
  question: T,
@@ -16470,14 +16486,14 @@ const Xv = U.div`
16470
16486
  theme: h
16471
16487
  }
16472
16488
  ),
16473
- /* @__PURE__ */ S.jsx(Vv, { children: X() })
16489
+ /* @__PURE__ */ x.jsx(Zv, { children: X() })
16474
16490
  ] });
16475
16491
  });
16476
16492
  yg.displayName = "SurveyContainer";
16477
- const jp = U.div`
16493
+ const jp = H.div`
16478
16494
  background-color: ${({ theme: l }) => l.colors.background};
16479
16495
  border-radius: 0 0 ${({ theme: l }) => l.borderRadius} ${({ theme: l }) => l.borderRadius};
16480
- `, Zv = U.div`
16496
+ `, Kv = H.div`
16481
16497
  display: flex;
16482
16498
  flex-direction: column;
16483
16499
  border: 1.5px solid ${({ theme: l }) => l.colors.border};
@@ -16490,7 +16506,7 @@ const jp = U.div`
16490
16506
  border-color: ${({ theme: l }) => l.colors.primary};
16491
16507
  box-shadow: 0 0 0 3px ${({ theme: l }) => l.colors.accentLight};
16492
16508
  }
16493
- `, Kv = U.textarea`
16509
+ `, Jv = H.textarea`
16494
16510
  flex: 1;
16495
16511
  padding: 12px 16px 8px;
16496
16512
  border: none;
@@ -16512,19 +16528,19 @@ const jp = U.div`
16512
16528
  &:disabled {
16513
16529
  cursor: not-allowed;
16514
16530
  }
16515
- `, Jv = U.div`
16531
+ `, Wv = H.div`
16516
16532
  display: flex;
16517
16533
  justify-content: flex-end;
16518
16534
  align-items: center;
16519
16535
  gap: 8px;
16520
16536
  padding: 4px 12px 8px;
16521
- `, Np = U.div`
16537
+ `, Np = H.div`
16522
16538
  padding: 0 16px 10px;
16523
16539
  text-align: center;
16524
16540
  font-size: 10px;
16525
16541
  color: ${({ theme: l }) => l.colors.textLight};
16526
16542
  font-family: ${({ theme: l }) => l.fontFamily};
16527
- `, Wv = U.button`
16543
+ `, Fv = H.button`
16528
16544
  display: flex;
16529
16545
  align-items: center;
16530
16546
  justify-content: center;
@@ -16544,7 +16560,7 @@ const jp = U.div`
16544
16560
  &:active:not(:disabled) {
16545
16561
  transform: scale(0.95);
16546
16562
  }
16547
- `, Fv = (l) => yn`
16563
+ `, Iv = (l) => yn`
16548
16564
  0% {
16549
16565
  box-shadow: 0 0 0 0 ${l}66;
16550
16566
  }
@@ -16554,7 +16570,7 @@ const jp = U.div`
16554
16570
  100% {
16555
16571
  box-shadow: 0 0 0 0 ${l}00;
16556
16572
  }
16557
- `, Iv = U.button`
16573
+ `, Pv = H.button`
16558
16574
  display: flex;
16559
16575
  align-items: center;
16560
16576
  justify-content: center;
@@ -16566,7 +16582,7 @@ const jp = U.div`
16566
16582
  color: ${({ theme: l, isRecording: u }) => u ? l.colors.white : l.colors.textLight};
16567
16583
  cursor: pointer;
16568
16584
  transition: background-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
16569
- animation: ${({ isRecording: l, theme: u }) => l ? Fv(u.colors.recording) : "none"} 1.5s infinite;
16585
+ animation: ${({ isRecording: l, theme: u }) => l ? Iv(u.colors.recording) : "none"} 1.5s infinite;
16570
16586
 
16571
16587
  &:hover {
16572
16588
  background-color: ${({ theme: l, isRecording: u }) => u ? l.colors.recording : l.colors.border};
@@ -16576,7 +16592,7 @@ const jp = U.div`
16576
16592
  &:active {
16577
16593
  transform: scale(0.95);
16578
16594
  }
16579
- `, Pv = () => {
16595
+ `, tx = () => {
16580
16596
  const {
16581
16597
  sendMessage: l,
16582
16598
  isTyping: u,
@@ -16586,7 +16602,7 @@ const jp = U.div`
16586
16602
  currentQuestion: h,
16587
16603
  surveyProgress: y,
16588
16604
  submitSurveyAnswer: T,
16589
- skipSurveyQuestion: x,
16605
+ skipSurveyQuestion: S,
16590
16606
  cancelSurvey: g
16591
16607
  } = Ba(), A = h !== null, [z, k] = C.useState(""), X = C.useRef(null), Q = s.placeholder || d?.chatUiConfig?.placeholder || "Type a message...", { isRecording: Y, isSupported: R, transcript: Z, toggleRecording: P, clearTranscript: V } = fg({
16592
16608
  onError: (Lt) => {
@@ -16619,23 +16635,23 @@ const jp = U.div`
16619
16635
  !A && !u && X.current && X.current.focus();
16620
16636
  }, [A, u]);
16621
16637
  const Yt = () => Y ? "Listening..." : Q;
16622
- return A && h ? /* @__PURE__ */ S.jsxs(jp, { theme: r, children: [
16623
- /* @__PURE__ */ S.jsx(
16638
+ return A && h ? /* @__PURE__ */ x.jsxs(jp, { theme: r, children: [
16639
+ /* @__PURE__ */ x.jsx(
16624
16640
  yg,
16625
16641
  {
16626
16642
  questionInfo: h,
16627
16643
  progress: y,
16628
16644
  onAnswer: T,
16629
- onSkip: x,
16645
+ onSkip: S,
16630
16646
  onCancel: g,
16631
16647
  theme: r
16632
16648
  }
16633
16649
  ),
16634
- vt && /* @__PURE__ */ S.jsx(Np, { theme: r, children: vt })
16635
- ] }) : /* @__PURE__ */ S.jsxs(jp, { theme: r, children: [
16636
- /* @__PURE__ */ S.jsxs(Zv, { theme: r, disabled: Xt, children: [
16637
- /* @__PURE__ */ S.jsx(
16638
- Kv,
16650
+ vt && /* @__PURE__ */ x.jsx(Np, { theme: r, children: vt })
16651
+ ] }) : /* @__PURE__ */ x.jsxs(jp, { theme: r, children: [
16652
+ /* @__PURE__ */ x.jsxs(Kv, { theme: r, disabled: Xt, children: [
16653
+ /* @__PURE__ */ x.jsx(
16654
+ Jv,
16639
16655
  {
16640
16656
  ref: X,
16641
16657
  theme: r,
@@ -16648,39 +16664,39 @@ const jp = U.div`
16648
16664
  rows: 1
16649
16665
  }
16650
16666
  ),
16651
- /* @__PURE__ */ S.jsxs(Jv, { children: [
16652
- R && /* @__PURE__ */ S.jsx(
16653
- Iv,
16667
+ /* @__PURE__ */ x.jsxs(Wv, { children: [
16668
+ R && /* @__PURE__ */ x.jsx(
16669
+ Pv,
16654
16670
  {
16655
16671
  theme: r,
16656
16672
  onClick: Nt,
16657
16673
  isRecording: Y,
16658
16674
  "aria-label": Y ? "Stop recording" : "Start voice recording",
16659
16675
  title: Y ? "Stop recording" : "Start voice recording",
16660
- children: /* @__PURE__ */ S.jsx(ig, { size: 18 })
16676
+ children: /* @__PURE__ */ x.jsx(ig, { size: 18 })
16661
16677
  }
16662
16678
  ),
16663
- /* @__PURE__ */ S.jsx(
16664
- Wv,
16679
+ /* @__PURE__ */ x.jsx(
16680
+ Fv,
16665
16681
  {
16666
16682
  theme: r,
16667
16683
  onClick: N,
16668
16684
  disabled: L,
16669
16685
  "aria-label": "Send message",
16670
- children: /* @__PURE__ */ S.jsx(wl, { size: 18 })
16686
+ children: /* @__PURE__ */ x.jsx(wl, { size: 18 })
16671
16687
  }
16672
16688
  )
16673
16689
  ] })
16674
16690
  ] }),
16675
- vt && /* @__PURE__ */ S.jsx(Np, { theme: r, children: vt })
16691
+ vt && /* @__PURE__ */ x.jsx(Np, { theme: r, children: vt })
16676
16692
  ] });
16677
- }, tx = yn`
16693
+ }, ex = yn`
16678
16694
  from { opacity: 0; }
16679
16695
  to { opacity: 1; }
16680
- `, ex = yn`
16696
+ `, nx = yn`
16681
16697
  from { opacity: 1; }
16682
16698
  to { opacity: 0; }
16683
- `, nx = U.div`
16699
+ `, ax = H.div`
16684
16700
  position: absolute;
16685
16701
  inset: 0;
16686
16702
  z-index: 10;
@@ -16689,12 +16705,12 @@ const jp = U.div`
16689
16705
  background-color: ${({ theme: l }) => l.colors.background};
16690
16706
  border-radius: inherit;
16691
16707
  overflow: hidden;
16692
- animation: ${({ isClosing: l }) => l ? G`${ex} 0.2s ease-in forwards` : G`${tx} 0.2s ease-out`};
16708
+ animation: ${({ isClosing: l }) => l ? G`${nx} 0.2s ease-in forwards` : G`${ex} 0.2s ease-out`};
16693
16709
 
16694
16710
  @media (prefers-reduced-motion: reduce) {
16695
16711
  animation: none;
16696
16712
  }
16697
- `, ax = U.div`
16713
+ `, lx = H.div`
16698
16714
  display: flex;
16699
16715
  align-items: center;
16700
16716
  justify-content: space-between;
@@ -16702,7 +16718,7 @@ const jp = U.div`
16702
16718
  background-color: ${({ theme: l }) => l.colors.secondary};
16703
16719
  color: ${({ theme: l }) => l.colors.headerText};
16704
16720
  flex-shrink: 0;
16705
- `, lx = U.h3`
16721
+ `, ix = H.h3`
16706
16722
  margin: 0;
16707
16723
  font-family: ${({ theme: l }) => l.fontFamily};
16708
16724
  font-size: 16px;
@@ -16713,11 +16729,11 @@ const jp = U.div`
16713
16729
  white-space: nowrap;
16714
16730
  flex: 1;
16715
16731
  margin-right: 8px;
16716
- `, ix = U.div`
16732
+ `, ox = H.div`
16717
16733
  display: flex;
16718
16734
  align-items: center;
16719
16735
  gap: 6px;
16720
- `, Hp = U.button`
16736
+ `, Hp = H.button`
16721
16737
  display: flex;
16722
16738
  align-items: center;
16723
16739
  justify-content: center;
@@ -16739,7 +16755,7 @@ const jp = U.div`
16739
16755
  &:active {
16740
16756
  background-color: ${({ theme: l }) => `${l.colors.headerText}66`};
16741
16757
  }
16742
- `, ox = U.div`
16758
+ `, ux = H.div`
16743
16759
  flex: 1;
16744
16760
  overflow-y: auto;
16745
16761
  -webkit-overflow-scrolling: touch;
@@ -16759,21 +16775,21 @@ const jp = U.div`
16759
16775
  &::-webkit-scrollbar-thumb:hover {
16760
16776
  background-color: ${({ theme: l }) => l.colors.scrollbarThumbHover};
16761
16777
  }
16762
- `, ux = U.img`
16778
+ `, rx = H.img`
16763
16779
  max-width: 100%;
16764
16780
  max-height: 35%;
16765
16781
  height: auto;
16766
16782
  display: block;
16767
16783
  margin: 16px auto 0;
16768
16784
  border-radius: 8px;
16769
- `, rx = U.video`
16785
+ `, cx = H.video`
16770
16786
  max-width: 90%;
16771
16787
  max-height: 360px;
16772
16788
  display: block;
16773
16789
  margin: 16px auto 0;
16774
16790
  border-radius: 8px;
16775
16791
  background-color: ${({ theme: l }) => l.colors.surface};
16776
- `, Up = U.div`
16792
+ `, Up = H.div`
16777
16793
  max-width: 90%;
16778
16794
  margin: 16px auto 0;
16779
16795
  padding: 16px;
@@ -16783,14 +16799,14 @@ const jp = U.div`
16783
16799
  flex-direction: column;
16784
16800
  align-items: center;
16785
16801
  gap: 12px;
16786
- `, kp = U.audio`
16802
+ `, kp = H.audio`
16787
16803
  width: 100%;
16788
- `, cx = U.img`
16804
+ `, sx = H.img`
16789
16805
  width: 80px;
16790
16806
  height: 80px;
16791
16807
  border-radius: 8px;
16792
16808
  object-fit: cover;
16793
- `, sx = U.div`
16809
+ `, fx = H.div`
16794
16810
  max-width: 90%;
16795
16811
  margin: 16px auto 0;
16796
16812
  padding: 16px;
@@ -16800,7 +16816,7 @@ const jp = U.div`
16800
16816
  align-items: center;
16801
16817
  gap: 12px;
16802
16818
  background-color: ${({ theme: l }) => l.colors.surface};
16803
- `, fx = U.a`
16819
+ `, dx = H.a`
16804
16820
  display: inline-flex;
16805
16821
  align-items: center;
16806
16822
  gap: 8px;
@@ -16817,12 +16833,12 @@ const jp = U.div`
16817
16833
  &:hover {
16818
16834
  background-color: ${({ theme: l }) => l.colors.primaryDark};
16819
16835
  }
16820
- `, dx = U.img`
16836
+ `, hx = H.img`
16821
16837
  width: 100%;
16822
16838
  max-height: 120px;
16823
16839
  object-fit: cover;
16824
16840
  border-radius: 8px;
16825
- `, qp = U.div`
16841
+ `, qp = H.div`
16826
16842
  padding: 16px;
16827
16843
  font-family: ${({ theme: l }) => l.fontFamily};
16828
16844
  font-size: 14px;
@@ -16874,12 +16890,12 @@ const jp = U.div`
16874
16890
  em {
16875
16891
  font-style: italic;
16876
16892
  }
16877
- `, hx = C.memo(function({
16893
+ `, px = C.memo(function({
16878
16894
  citation: u,
16879
16895
  theme: s,
16880
16896
  onClose: r
16881
16897
  }) {
16882
- const { isExpanded: d, toggleExpanded: h } = Ba(), [y, T] = C.useState(!1), x = C.useCallback(() => {
16898
+ const { isExpanded: d, toggleExpanded: h } = Ba(), [y, T] = C.useState(!1), S = C.useCallback(() => {
16883
16899
  T(!0);
16884
16900
  }, []);
16885
16901
  C.useEffect(() => {
@@ -16891,8 +16907,8 @@ const jp = U.div`
16891
16907
  if (!u.content) return null;
16892
16908
  switch (u.contentFormat?.toUpperCase()) {
16893
16909
  case "VIDEO":
16894
- return /* @__PURE__ */ S.jsx(
16895
- rx,
16910
+ return /* @__PURE__ */ x.jsx(
16911
+ cx,
16896
16912
  {
16897
16913
  theme: s,
16898
16914
  src: u.content,
@@ -16906,9 +16922,9 @@ const jp = U.div`
16906
16922
  }
16907
16923
  );
16908
16924
  case "AUDIO":
16909
- return /* @__PURE__ */ S.jsxs(Up, { theme: s, children: [
16910
- u.thumbnail && /* @__PURE__ */ S.jsx(
16911
- cx,
16925
+ return /* @__PURE__ */ x.jsxs(Up, { theme: s, children: [
16926
+ u.thumbnail && /* @__PURE__ */ x.jsx(
16927
+ sx,
16912
16928
  {
16913
16929
  src: u.thumbnail,
16914
16930
  alt: u.title,
@@ -16917,7 +16933,7 @@ const jp = U.div`
16917
16933
  }
16918
16934
  }
16919
16935
  ),
16920
- /* @__PURE__ */ S.jsx(
16936
+ /* @__PURE__ */ x.jsx(
16921
16937
  kp,
16922
16938
  {
16923
16939
  src: u.content,
@@ -16928,9 +16944,9 @@ const jp = U.div`
16928
16944
  )
16929
16945
  ] });
16930
16946
  case "PDF":
16931
- return /* @__PURE__ */ S.jsxs(sx, { theme: s, children: [
16932
- u.thumbnail && /* @__PURE__ */ S.jsx(
16933
- dx,
16947
+ return /* @__PURE__ */ x.jsxs(fx, { theme: s, children: [
16948
+ u.thumbnail && /* @__PURE__ */ x.jsx(
16949
+ hx,
16934
16950
  {
16935
16951
  src: u.thumbnail,
16936
16952
  alt: u.title,
@@ -16939,23 +16955,23 @@ const jp = U.div`
16939
16955
  }
16940
16956
  }
16941
16957
  ),
16942
- /* @__PURE__ */ S.jsxs(
16943
- fx,
16958
+ /* @__PURE__ */ x.jsxs(
16959
+ dx,
16944
16960
  {
16945
16961
  theme: s,
16946
16962
  href: u.content,
16947
16963
  target: "_blank",
16948
16964
  rel: "noopener noreferrer",
16949
16965
  children: [
16950
- /* @__PURE__ */ S.jsx(Py, { size: 16 }),
16966
+ /* @__PURE__ */ x.jsx(Py, { size: 16 }),
16951
16967
  "Open PDF"
16952
16968
  ]
16953
16969
  }
16954
16970
  )
16955
16971
  ] });
16956
16972
  default:
16957
- return /* @__PURE__ */ S.jsx(
16958
- ux,
16973
+ return /* @__PURE__ */ x.jsx(
16974
+ rx,
16959
16975
  {
16960
16976
  src: u.content,
16961
16977
  alt: u.title,
@@ -16966,25 +16982,25 @@ const jp = U.div`
16966
16982
  );
16967
16983
  }
16968
16984
  };
16969
- return /* @__PURE__ */ S.jsxs(nx, { theme: s, isClosing: y, children: [
16970
- /* @__PURE__ */ S.jsxs(ax, { theme: s, children: [
16971
- /* @__PURE__ */ S.jsx(lx, { theme: s, children: u.title }),
16972
- /* @__PURE__ */ S.jsxs(ix, { children: [
16973
- /* @__PURE__ */ S.jsx(
16985
+ return /* @__PURE__ */ x.jsxs(ax, { theme: s, isClosing: y, children: [
16986
+ /* @__PURE__ */ x.jsxs(lx, { theme: s, children: [
16987
+ /* @__PURE__ */ x.jsx(ix, { theme: s, children: u.title }),
16988
+ /* @__PURE__ */ x.jsxs(ox, { children: [
16989
+ /* @__PURE__ */ x.jsx(
16974
16990
  Hp,
16975
16991
  {
16976
16992
  theme: s,
16977
16993
  onClick: h,
16978
16994
  "aria-label": d ? "Collapse chat" : "Expand chat",
16979
- children: d ? /* @__PURE__ */ S.jsx(og, { size: 16 }) : /* @__PURE__ */ S.jsx(lg, { size: 16 })
16995
+ children: d ? /* @__PURE__ */ x.jsx(og, { size: 16 }) : /* @__PURE__ */ x.jsx(lg, { size: 16 })
16980
16996
  }
16981
16997
  ),
16982
- /* @__PURE__ */ S.jsx(Hp, { theme: s, onClick: x, "aria-label": "Close", children: /* @__PURE__ */ S.jsx(su, { size: 16 }) })
16998
+ /* @__PURE__ */ x.jsx(Hp, { theme: s, onClick: S, "aria-label": "Close", children: /* @__PURE__ */ x.jsx(su, { size: 16 }) })
16983
16999
  ] })
16984
17000
  ] }),
16985
- /* @__PURE__ */ S.jsxs(ox, { theme: s, children: [
17001
+ /* @__PURE__ */ x.jsxs(ux, { theme: s, children: [
16986
17002
  g(),
16987
- u.audioRenditions && u.audioRenditions.length > 0 && /* @__PURE__ */ S.jsx(Up, { theme: s, children: u.audioRenditions.map((A, z) => /* @__PURE__ */ S.jsx(
17003
+ u.audioRenditions && u.audioRenditions.length > 0 && /* @__PURE__ */ x.jsx(Up, { theme: s, children: u.audioRenditions.map((A, z) => /* @__PURE__ */ x.jsx(
16988
17004
  kp,
16989
17005
  {
16990
17006
  src: A,
@@ -16994,16 +17010,16 @@ const jp = U.div`
16994
17010
  },
16995
17011
  z
16996
17012
  )) }),
16997
- u.detailHtml ? /* @__PURE__ */ S.jsx(
17013
+ u.detailHtml ? /* @__PURE__ */ x.jsx(
16998
17014
  qp,
16999
17015
  {
17000
17016
  theme: s,
17001
17017
  dangerouslySetInnerHTML: { __html: u.detailHtml }
17002
17018
  }
17003
- ) : u.description ? /* @__PURE__ */ S.jsx(qp, { theme: s, children: /* @__PURE__ */ S.jsx("p", { children: u.description }) }) : null
17019
+ ) : u.description ? /* @__PURE__ */ x.jsx(qp, { theme: s, children: /* @__PURE__ */ x.jsx("p", { children: u.description }) }) : null
17004
17020
  ] })
17005
17021
  ] });
17006
- }), px = yn`
17022
+ }), gx = yn`
17007
17023
  from {
17008
17024
  opacity: 0;
17009
17025
  transform: translateY(20px) scale(0.95);
@@ -17012,7 +17028,7 @@ const jp = U.div`
17012
17028
  opacity: 1;
17013
17029
  transform: translateY(0) scale(1);
17014
17030
  }
17015
- `, gx = yn`
17031
+ `, mx = yn`
17016
17032
  from {
17017
17033
  opacity: 1;
17018
17034
  transform: translateY(0) scale(1);
@@ -17021,14 +17037,14 @@ const jp = U.div`
17021
17037
  opacity: 0;
17022
17038
  transform: translateY(20px) scale(0.95);
17023
17039
  }
17024
- `, mx = yn`
17040
+ `, yx = yn`
17025
17041
  from {
17026
17042
  opacity: 0;
17027
17043
  }
17028
17044
  to {
17029
17045
  opacity: 1;
17030
17046
  }
17031
- `, yx = U.div`
17047
+ `, bx = H.div`
17032
17048
  display: ${({ isVisible: l }) => l ? "block" : "none"};
17033
17049
  position: fixed;
17034
17050
  top: 0;
@@ -17038,12 +17054,12 @@ const jp = U.div`
17038
17054
  background-color: rgba(0, 0, 0, 0.5);
17039
17055
  backdrop-filter: blur(4px);
17040
17056
  z-index: 2147483646;
17041
- animation: ${mx} 0.2s ease-out;
17057
+ animation: ${yx} 0.2s ease-out;
17042
17058
 
17043
17059
  @media (prefers-reduced-motion: reduce) {
17044
17060
  animation: none;
17045
17061
  }
17046
- `, bx = U.div`
17062
+ `, vx = H.div`
17047
17063
  position: ${({ floatingMode: l, useAbsolutePositioning: u, isExpanded: s }) => s ? "fixed" : u ? "absolute" : l ? "fixed" : "relative"};
17048
17064
  ${({ floatingMode: l, position: u, isExpanded: s, useAbsolutePositioning: r }) => s ? `
17049
17065
  top: 20px;
@@ -17078,7 +17094,16 @@ const jp = U.div`
17078
17094
  @media (prefers-reduced-motion: reduce) {
17079
17095
  transition: none;
17080
17096
  }
17081
- `, vx = U.button`
17097
+
17098
+ @media (max-width: 420px) {
17099
+ ${({ floatingMode: l, isExpanded: u }) => l && !u && `
17100
+ top: 0;
17101
+ left: 0;
17102
+ right: 0;
17103
+ bottom: 0;
17104
+ `}
17105
+ }
17106
+ `, xx = H.button`
17082
17107
  display: ${({ isOpen: l }) => l ? "none" : "flex"};
17083
17108
  align-items: center;
17084
17109
  justify-content: center;
@@ -17102,11 +17127,11 @@ const jp = U.div`
17102
17127
  &:active {
17103
17128
  transform: scale(0.95);
17104
17129
  }
17105
- `, xx = U.img`
17130
+ `, Sx = H.img`
17106
17131
  width: 100%;
17107
17132
  height: 100%;
17108
17133
  object-fit: contain;
17109
- `, Sx = U.div`
17134
+ `, Cx = H.div`
17110
17135
  display: ${({ floatingMode: l, isOpen: u, isClosing: s }) => l ? u || s ? "flex" : "none" : "flex"};
17111
17136
  flex-direction: column;
17112
17137
  width: ${({ floatingMode: l, isExpanded: u, useAbsolutePositioning: s }) => l ? u ? "calc(100vw - 40px)" : "380px" : s ? "auto" : "100%"};
@@ -17123,7 +17148,7 @@ const jp = U.div`
17123
17148
  box-shadow: ${({ theme: l, floatingMode: u, isExpanded: s }) => u || s ? l.shadow : "none"};
17124
17149
  overflow: hidden;
17125
17150
  transition: width 0.25s ease, height 0.25s ease, max-height 0.25s ease, border-radius 0.25s ease, box-shadow 0.25s ease;
17126
- animation: ${({ floatingMode: l, isClosing: u }) => l ? u ? G`${gx} 0.2s ease-out forwards` : G`${px} 0.3s ease-out` : "none"};
17151
+ animation: ${({ floatingMode: l, isClosing: u }) => l ? u ? G`${mx} 0.2s ease-out forwards` : G`${gx} 0.3s ease-out` : "none"};
17127
17152
 
17128
17153
  @media (prefers-reduced-motion: reduce) {
17129
17154
  animation: none;
@@ -17132,29 +17157,30 @@ const jp = U.div`
17132
17157
 
17133
17158
  @media (max-width: 420px) {
17134
17159
  ${({ floatingMode: l, isExpanded: u }) => l && !u && `
17135
- width: calc(100vw - 40px);
17136
- height: calc(100vh - 100px);
17137
- max-height: 600px;
17160
+ width: 100%;
17161
+ height: 100%;
17162
+ max-height: 100%;
17163
+ border-radius: 0;
17138
17164
  `}
17139
17165
  }
17140
- `, Cx = () => {
17141
- const { isOpen: l, toggle: u, config: s, theme: r, assistant: d, isExpanded: h } = Ba(), y = s.floatingMode ?? !1, [T, x] = C.useState(null), g = C.useCallback((k) => {
17142
- x(k);
17166
+ `, Tx = () => {
17167
+ const { isOpen: l, toggle: u, config: s, theme: r, assistant: d, isExpanded: h } = Ba(), y = s.floatingMode ?? !1, [T, S] = C.useState(null), g = C.useCallback((k) => {
17168
+ S(k);
17143
17169
  }, []), A = C.useCallback(() => {
17144
- x(null);
17170
+ S(null);
17145
17171
  }, []), z = s.fabIcon || d?.chatUiConfig?.fabIcon || "https://web.mypatientspace.com/img/logo-symbol.png";
17146
- return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
17147
- /* @__PURE__ */ S.jsx(yx, { isVisible: h }),
17148
- /* @__PURE__ */ S.jsxs(
17149
- bx,
17172
+ return /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
17173
+ /* @__PURE__ */ x.jsx(bx, { isVisible: h }),
17174
+ /* @__PURE__ */ x.jsxs(
17175
+ vx,
17150
17176
  {
17151
17177
  position: s.position || "bottom-right",
17152
17178
  floatingMode: y,
17153
17179
  useAbsolutePositioning: s.useAbsolutePositioning,
17154
17180
  isExpanded: h,
17155
17181
  children: [
17156
- y && /* @__PURE__ */ S.jsx(
17157
- vx,
17182
+ y && /* @__PURE__ */ x.jsx(
17183
+ xx,
17158
17184
  {
17159
17185
  theme: r,
17160
17186
  isOpen: l,
@@ -17162,11 +17188,11 @@ const jp = U.div`
17162
17188
  onClick: u,
17163
17189
  "aria-label": "Open chat",
17164
17190
  "aria-expanded": l,
17165
- children: /* @__PURE__ */ S.jsx(xx, { src: z, alt: "Chat" })
17191
+ children: /* @__PURE__ */ x.jsx(Sx, { src: z, alt: "Chat" })
17166
17192
  }
17167
17193
  ),
17168
- /* @__PURE__ */ S.jsxs(
17169
- Sx,
17194
+ /* @__PURE__ */ x.jsxs(
17195
+ Cx,
17170
17196
  {
17171
17197
  theme: r,
17172
17198
  isOpen: l,
@@ -17175,12 +17201,12 @@ const jp = U.div`
17175
17201
  isExpanded: h,
17176
17202
  useAbsolutePositioning: s.useAbsolutePositioning,
17177
17203
  children: [
17178
- /* @__PURE__ */ S.jsx(y1, {}),
17179
- /* @__PURE__ */ S.jsx(C1, {}),
17180
- /* @__PURE__ */ S.jsx(tv, { onCardExpand: g }),
17181
- /* @__PURE__ */ S.jsx(Pv, {}),
17182
- T && /* @__PURE__ */ S.jsx(
17183
- hx,
17204
+ /* @__PURE__ */ x.jsx(b1, {}),
17205
+ /* @__PURE__ */ x.jsx(T1, {}),
17206
+ /* @__PURE__ */ x.jsx(ev, { onCardExpand: g }),
17207
+ /* @__PURE__ */ x.jsx(tx, {}),
17208
+ T && /* @__PURE__ */ x.jsx(
17209
+ px,
17184
17210
  {
17185
17211
  citation: T,
17186
17212
  theme: r,
@@ -17194,7 +17220,7 @@ const jp = U.div`
17194
17220
  }
17195
17221
  )
17196
17222
  ] });
17197
- }, Tx = {
17223
+ }, Ex = {
17198
17224
  position: "bottom-right",
17199
17225
  colorMode: "light"
17200
17226
  };
@@ -17215,15 +17241,15 @@ const Ce = {
17215
17241
  startNewChat: () => {
17216
17242
  console.warn("ChatbotWidget: Widget not initialized. Call init() first.");
17217
17243
  }
17218
- }, Ex = ({
17244
+ }, zx = ({
17219
17245
  config: l,
17220
17246
  onMount: u
17221
17247
  }) => {
17222
17248
  const s = C.useRef(null), r = C.useCallback((d) => {
17223
17249
  s.current = d;
17224
17250
  }, []);
17225
- return /* @__PURE__ */ S.jsx(t1, { config: l, onConfigUpdate: r, children: /* @__PURE__ */ S.jsx(zx, { onMount: u, updateConfigRef: s }) });
17226
- }, zx = ({
17251
+ return /* @__PURE__ */ x.jsx(t1, { config: l, onConfigUpdate: r, children: /* @__PURE__ */ x.jsx(Ax, { onMount: u, updateConfigRef: s }) });
17252
+ }, Ax = ({
17227
17253
  onMount: l,
17228
17254
  updateConfigRef: u
17229
17255
  }) => {
@@ -17238,15 +17264,15 @@ const Ce = {
17238
17264
  },
17239
17265
  startNewChat: h
17240
17266
  });
17241
- }, [s, r, d, h, l, u]), /* @__PURE__ */ S.jsx(Cx, {});
17242
- }, Ax = {
17267
+ }, [s, r, d, h, l, u]), /* @__PURE__ */ x.jsx(Tx, {});
17268
+ }, Mx = {
17243
17269
  init: (l) => {
17244
17270
  if (Tl) {
17245
17271
  console.warn("ChatbotWidget: Already initialized. Call destroy() first to reinitialize.");
17246
17272
  return;
17247
17273
  }
17248
17274
  const u = {
17249
- ...Tx,
17275
+ ...Ex,
17250
17276
  ...l,
17251
17277
  // floatingMode defaults to false (embedded is default)
17252
17278
  floatingMode: l.floatingMode ?? !1
@@ -17272,8 +17298,8 @@ const Ce = {
17272
17298
  container: Io
17273
17299
  });
17274
17300
  Tl = Lp.createRoot(s), Tl.render(
17275
- /* @__PURE__ */ S.jsx(Uc, { value: r, children: /* @__PURE__ */ S.jsx(
17276
- Ex,
17301
+ /* @__PURE__ */ x.jsx(Uc, { value: r, children: /* @__PURE__ */ x.jsx(
17302
+ zx,
17277
17303
  {
17278
17304
  config: u,
17279
17305
  onMount: (d) => {
@@ -17302,9 +17328,9 @@ const Ce = {
17302
17328
  update: (l) => Ce.updateConfig(l),
17303
17329
  startNewChat: () => Ce.startNewChat()
17304
17330
  };
17305
- window.ChatbotWidget = Ax;
17331
+ window.ChatbotWidget = Mx;
17306
17332
  let fa = null, hn = null, Po = null, zi = null, El = null, tu = !1;
17307
- const Mx = {
17333
+ const wx = {
17308
17334
  init: (l) => {
17309
17335
  if (fa) {
17310
17336
  console.warn("ChatbotWidgetDemo: Already initialized. Call destroy() first to reinitialize.");
@@ -17325,7 +17351,7 @@ const Mx = {
17325
17351
  key: "mps-demo",
17326
17352
  container: Po
17327
17353
  }), El = l, fa = Lp.createRoot(u), fa.render(
17328
- /* @__PURE__ */ S.jsx(Uc, { value: zi, children: /* @__PURE__ */ S.jsx(wp, { config: l }) })
17354
+ /* @__PURE__ */ x.jsx(Uc, { value: zi, children: /* @__PURE__ */ x.jsx(wp, { config: l }) })
17329
17355
  ), console.log("ChatbotWidgetDemo: Initialized successfully.");
17330
17356
  },
17331
17357
  destroy: () => {
@@ -17337,12 +17363,12 @@ const Mx = {
17337
17363
  return;
17338
17364
  }
17339
17365
  El = { ...El, ...l }, fa.render(
17340
- /* @__PURE__ */ S.jsx(Uc, { value: zi, children: /* @__PURE__ */ S.jsx(wp, { config: El }) })
17366
+ /* @__PURE__ */ x.jsx(Uc, { value: zi, children: /* @__PURE__ */ x.jsx(wp, { config: El }) })
17341
17367
  );
17342
17368
  },
17343
17369
  getConfig: () => window.ChatbotWidget ? {} : (console.warn("ChatbotWidgetDemo: Widget not available."), {})
17344
17370
  };
17345
- window.ChatbotWidgetDemo = Mx;
17371
+ window.ChatbotWidgetDemo = wx;
17346
17372
  export {
17347
- Mx as default
17373
+ wx as default
17348
17374
  };