@mypatientspace/chatbot-widget 1.0.71 → 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,48 +14850,54 @@ 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.71"
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};
@@ -14901,7 +14907,7 @@ const Ba = () => {
14901
14907
  opacity: 1;
14902
14908
  }
14903
14909
  }
14904
- `, v1 = U.button`
14910
+ `, x1 = H.button`
14905
14911
  position: absolute;
14906
14912
  top: 0;
14907
14913
  right: 0;
@@ -14930,7 +14936,7 @@ const Ba = () => {
14930
14936
  @media (hover: none) {
14931
14937
  opacity: 1;
14932
14938
  }
14933
- `, x1 = U.div`
14939
+ `, S1 = H.div`
14934
14940
  display: flex;
14935
14941
  gap: 6px;
14936
14942
  padding: 16px 12px 8px;
@@ -14942,7 +14948,7 @@ const Ba = () => {
14942
14948
  &::-webkit-scrollbar {
14943
14949
  display: none;
14944
14950
  }
14945
- `, S1 = U.button`
14951
+ `, C1 = H.button`
14946
14952
  display: flex;
14947
14953
  align-items: center;
14948
14954
  gap: 4px;
@@ -14975,28 +14981,28 @@ const Ba = () => {
14975
14981
  cursor: not-allowed;
14976
14982
  transform: none;
14977
14983
  }
14978
- `, C1 = () => {
14979
- 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 || [];
14980
- 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)
14981
14987
  return null;
14982
14988
  const g = (z) => {
14983
14989
  l.onQuickAction?.(z), s(z);
14984
14990
  }, A = (z) => {
14985
14991
  h.current && z.deltaY !== 0 && (z.preventDefault(), h.current.scrollLeft += z.deltaY);
14986
14992
  };
14987
- return /* @__PURE__ */ S.jsxs(b1, { theme: u, children: [
14988
- /* @__PURE__ */ S.jsx(
14989
- v1,
14993
+ return /* @__PURE__ */ x.jsxs(v1, { theme: u, children: [
14994
+ /* @__PURE__ */ x.jsx(
14995
+ x1,
14990
14996
  {
14991
14997
  className: "close-button",
14992
14998
  theme: u,
14993
14999
  onClick: () => T(!0),
14994
15000
  "aria-label": "Dismiss quick actions",
14995
- children: /* @__PURE__ */ S.jsx(su, { size: 10 })
15001
+ children: /* @__PURE__ */ x.jsx(su, { size: 10 })
14996
15002
  }
14997
15003
  ),
14998
- /* @__PURE__ */ S.jsx(x1, { ref: h, onWheel: A, children: x.map((z, k) => /* @__PURE__ */ S.jsx(
14999
- S1,
15004
+ /* @__PURE__ */ x.jsx(S1, { ref: h, onWheel: A, children: S.map((z, k) => /* @__PURE__ */ x.jsx(
15005
+ C1,
15000
15006
  {
15001
15007
  theme: u,
15002
15008
  onClick: () => g(z),
@@ -15007,7 +15013,7 @@ const Ba = () => {
15007
15013
  k
15008
15014
  )) })
15009
15015
  ] });
15010
- }, T1 = U.div`
15016
+ }, E1 = H.div`
15011
15017
  display: flex;
15012
15018
  gap: 12px;
15013
15019
  padding: 12px 0;
@@ -15019,7 +15025,7 @@ const Ba = () => {
15019
15025
  &::-webkit-scrollbar {
15020
15026
  display: none;
15021
15027
  }
15022
- `, E1 = U.button`
15028
+ `, z1 = H.button`
15023
15029
  flex-shrink: 0;
15024
15030
  width: 160px;
15025
15031
  padding: 0;
@@ -15041,17 +15047,17 @@ const Ba = () => {
15041
15047
  &:active {
15042
15048
  transform: translateY(0);
15043
15049
  }
15044
- `, z1 = U.div`
15050
+ `, A1 = H.div`
15045
15051
  position: relative;
15046
15052
  width: 100%;
15047
15053
  height: 100px;
15048
15054
  background-color: ${({ theme: l }) => l.colors.surface};
15049
15055
  overflow: hidden;
15050
- `, A1 = U.img`
15056
+ `, M1 = H.img`
15051
15057
  width: 100%;
15052
15058
  height: 100%;
15053
15059
  object-fit: cover;
15054
- `, M1 = U.div`
15060
+ `, w1 = H.div`
15055
15061
  width: 100%;
15056
15062
  height: 100%;
15057
15063
  display: flex;
@@ -15060,10 +15066,10 @@ const Ba = () => {
15060
15066
  background-color: ${({ theme: l }) => l.colors.surface};
15061
15067
  color: ${({ theme: l }) => l.colors.contentCardTextLight};
15062
15068
  font-size: 12px;
15063
- `, w1 = U.div`
15069
+ `, O1 = H.div`
15064
15070
  padding: 10px 12px;
15065
15071
  flex: 1;
15066
- `, O1 = U.h4`
15072
+ `, _1 = H.h4`
15067
15073
  margin: 0 0 4px 0;
15068
15074
  font-family: ${({ theme: l }) => l.fontFamily};
15069
15075
  font-size: 13px;
@@ -15075,7 +15081,7 @@ const Ba = () => {
15075
15081
  -webkit-box-orient: vertical;
15076
15082
  overflow: hidden;
15077
15083
  text-overflow: ellipsis;
15078
- `, _1 = U.span`
15084
+ `, $1 = H.span`
15079
15085
  position: absolute;
15080
15086
  top: 8px;
15081
15087
  left: 8px;
@@ -15088,15 +15094,15 @@ const Ba = () => {
15088
15094
  background-color: rgba(0, 0, 0, 0.5);
15089
15095
  border-radius: 6px;
15090
15096
  backdrop-filter: blur(4px);
15091
- `, $1 = C.memo(function({
15097
+ `, D1 = C.memo(function({
15092
15098
  citation: u,
15093
15099
  theme: s,
15094
15100
  onClick: r
15095
15101
  }) {
15096
- return /* @__PURE__ */ S.jsxs(E1, { theme: s, onClick: r, "aria-label": u.title, children: [
15097
- /* @__PURE__ */ S.jsxs(z1, { theme: s, children: [
15098
- u.thumbnail ? /* @__PURE__ */ S.jsx(
15099
- 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,
15100
15106
  {
15101
15107
  src: u.thumbnail,
15102
15108
  alt: u.title,
@@ -15105,30 +15111,30 @@ const Ba = () => {
15105
15111
  d.target.style.display = "none";
15106
15112
  }
15107
15113
  }
15108
- ) : /* @__PURE__ */ S.jsx(M1, { theme: s, children: "No image" }),
15109
- 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 })
15110
15116
  ] }),
15111
- /* @__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 }) })
15112
15118
  ] });
15113
- }), 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 }) {
15114
15120
  const h = C.useRef(null);
15115
15121
  if (!u || u.length === 0)
15116
15122
  return null;
15117
- const y = (x) => {
15118
- r?.(x), d ? d(x) : x.content && window.open(x.content, "_blank", "noopener,noreferrer");
15119
- }, T = (x) => {
15120
- 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);
15121
15127
  };
15122
- return /* @__PURE__ */ S.jsx(T1, { ref: h, onWheel: T, children: u.map((x) => /* @__PURE__ */ S.jsx(
15123
- $1,
15128
+ return /* @__PURE__ */ x.jsx(E1, { ref: h, onWheel: T, children: u.map((S) => /* @__PURE__ */ x.jsx(
15129
+ D1,
15124
15130
  {
15125
- citation: x,
15131
+ citation: S,
15126
15132
  theme: s,
15127
- onClick: () => y(x)
15133
+ onClick: () => y(S)
15128
15134
  },
15129
- x.id
15135
+ S.id
15130
15136
  )) });
15131
- }), B1 = yn`
15137
+ }), R1 = yn`
15132
15138
  from {
15133
15139
  opacity: 0;
15134
15140
  transform: translateY(8px);
@@ -15137,17 +15143,17 @@ const Ba = () => {
15137
15143
  opacity: 1;
15138
15144
  transform: translateY(0);
15139
15145
  }
15140
- `, R1 = U.div`
15146
+ `, j1 = H.div`
15141
15147
  display: flex;
15142
15148
  flex-direction: column;
15143
15149
  align-items: ${({ isUser: l }) => l ? "flex-end" : "flex-start"};
15144
15150
  margin-bottom: 12px;
15145
- animation: ${B1} 0.3s ease-out;
15151
+ animation: ${R1} 0.3s ease-out;
15146
15152
 
15147
15153
  @media (prefers-reduced-motion: reduce) {
15148
15154
  animation: none;
15149
15155
  }
15150
- `, j1 = U.div`
15156
+ `, N1 = H.div`
15151
15157
  max-width: ${({ isUser: l }) => l ? "80%" : "100%"};
15152
15158
  padding: ${({ isUser: l }) => l ? "12px 16px" : "0"};
15153
15159
  border-radius: ${({ isUser: l }) => l ? "16px" : "0"};
@@ -15190,12 +15196,12 @@ const Ba = () => {
15190
15196
  font-family: monospace;
15191
15197
  font-size: 13px;
15192
15198
  }
15193
- `, N1 = U.span`
15199
+ `, H1 = H.span`
15194
15200
  font-size: 11px;
15195
15201
  color: ${({ theme: l }) => l.colors.textLight};
15196
15202
  margin-top: 4px;
15197
15203
  font-family: ${({ theme: l }) => l.fontFamily};
15198
- `, H1 = U.span`
15204
+ `, U1 = H.span`
15199
15205
  font-size: 11px;
15200
15206
  margin-left: 6px;
15201
15207
  color: ${({ status: l, theme: u }) => {
@@ -15208,7 +15214,7 @@ const Ba = () => {
15208
15214
  return u.colors.textLight;
15209
15215
  }
15210
15216
  }};
15211
- `, U1 = U.button`
15217
+ `, k1 = H.button`
15212
15218
  display: flex;
15213
15219
  align-items: center;
15214
15220
  justify-content: center;
@@ -15226,15 +15232,15 @@ const Ba = () => {
15226
15232
  background-color: ${({ theme: l }) => l.colors.primary};
15227
15233
  color: ${({ theme: l }) => l.colors.white};
15228
15234
  }
15229
- `, k1 = (l) => l.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }), q1 = C.memo(({ message: l, theme: u, onCitationClick: s, onCardExpand: r }) => {
15230
- 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 = () => {
15231
15237
  T.current && (h ? (T.current.pause(), T.current.currentTime = 0, y(!1)) : (T.current.play(), y(!0)));
15232
15238
  }, g = () => {
15233
15239
  y(!1);
15234
15240
  };
15235
- return /* @__PURE__ */ S.jsxs(R1, { isUser: d, children: [
15236
- /* @__PURE__ */ S.jsx(
15237
- j1,
15241
+ return /* @__PURE__ */ x.jsxs(j1, { isUser: d, children: [
15242
+ /* @__PURE__ */ x.jsx(
15243
+ N1,
15238
15244
  {
15239
15245
  isUser: d,
15240
15246
  isError: l.status === "error",
@@ -15242,8 +15248,8 @@ const Ba = () => {
15242
15248
  dangerouslySetInnerHTML: { __html: l.content.replace(/\n/g, "<br>") }
15243
15249
  }
15244
15250
  ),
15245
- !d && l.citations && l.citations.length > 0 && /* @__PURE__ */ S.jsx(
15246
- D1,
15251
+ !d && l.citations && l.citations.length > 0 && /* @__PURE__ */ x.jsx(
15252
+ B1,
15247
15253
  {
15248
15254
  citations: l.citations,
15249
15255
  theme: u,
@@ -15251,8 +15257,8 @@ const Ba = () => {
15251
15257
  onCardExpand: r
15252
15258
  }
15253
15259
  ),
15254
- l.audioUrl && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
15255
- /* @__PURE__ */ S.jsx(
15260
+ l.audioUrl && /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
15261
+ /* @__PURE__ */ x.jsx(
15256
15262
  "audio",
15257
15263
  {
15258
15264
  ref: T,
@@ -15261,24 +15267,24 @@ const Ba = () => {
15261
15267
  style: { display: "none" }
15262
15268
  }
15263
15269
  ),
15264
- /* @__PURE__ */ S.jsx(
15265
- U1,
15270
+ /* @__PURE__ */ x.jsx(
15271
+ k1,
15266
15272
  {
15267
15273
  theme: u,
15268
15274
  isPlaying: h,
15269
- onClick: x,
15275
+ onClick: S,
15270
15276
  "aria-label": h ? "Stop audio" : "Play audio",
15271
15277
  title: h ? "Stop audio" : "Play audio",
15272
- 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 })
15273
15279
  }
15274
15280
  )
15275
15281
  ] }),
15276
- d && /* @__PURE__ */ S.jsxs(N1, { theme: u, children: [
15277
- k1(l.timestamp),
15278
- 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" })
15279
15285
  ] })
15280
15286
  ] });
15281
- }), L1 = yn`
15287
+ }), Y1 = yn`
15282
15288
  from {
15283
15289
  opacity: 0;
15284
15290
  transform: translateY(4px);
@@ -15287,42 +15293,42 @@ const Ba = () => {
15287
15293
  opacity: 1;
15288
15294
  transform: translateY(0);
15289
15295
  }
15290
- `, Y1 = yn`
15296
+ `, G1 = yn`
15291
15297
  0%, 60%, 100% {
15292
15298
  transform: translateY(0);
15293
15299
  }
15294
15300
  30% {
15295
15301
  transform: translateY(-4px);
15296
15302
  }
15297
- `, G1 = U.div`
15303
+ `, Q1 = H.div`
15298
15304
  display: flex;
15299
15305
  align-items: center;
15300
15306
  gap: 8px;
15301
15307
  padding: 8px 4px;
15302
- animation: ${L1} 0.2s ease-out;
15303
- `, Q1 = U.span`
15308
+ animation: ${Y1} 0.2s ease-out;
15309
+ `, X1 = H.span`
15304
15310
  font-size: 13px;
15305
15311
  font-family: ${({ theme: l }) => l.fontFamily};
15306
15312
  color: ${({ theme: l }) => l.colors.textLight};
15307
15313
  font-style: italic;
15308
- `, X1 = U.span`
15314
+ `, V1 = H.span`
15309
15315
  display: inline-flex;
15310
15316
  align-items: center;
15311
15317
  gap: 3px;
15312
15318
  margin-left: 2px;
15313
- `, Rc = U.span`
15319
+ `, Rc = H.span`
15314
15320
  width: 5px;
15315
15321
  height: 5px;
15316
15322
  border-radius: 50%;
15317
15323
  background-color: ${({ theme: l }) => l.colors.primary};
15318
- animation: ${Y1} 1s infinite ease-in-out;
15324
+ animation: ${G1} 1s infinite ease-in-out;
15319
15325
  animation-delay: ${({ delay: l }) => l}ms;
15320
15326
 
15321
15327
  @media (prefers-reduced-motion: reduce) {
15322
15328
  animation: none;
15323
15329
  opacity: 0.6;
15324
15330
  }
15325
- `, V1 = (l) => {
15331
+ `, Z1 = (l) => {
15326
15332
  switch (l) {
15327
15333
  case "thinking":
15328
15334
  return "Thinking";
@@ -15345,27 +15351,27 @@ const Ba = () => {
15345
15351
  default:
15346
15352
  return "Thinking";
15347
15353
  }
15348
- }, Z1 = ({ theme: l, status: u }) => {
15349
- 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);
15350
15356
  return C.useEffect(() => {
15351
- 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));
15352
15358
  }, [s]), C.useEffect(() => {
15353
15359
  if (!h) return;
15354
15360
  const g = T.current;
15355
- return r.length < g.length ? x.current = setTimeout(() => {
15361
+ return r.length < g.length ? S.current = setTimeout(() => {
15356
15362
  d(g.slice(0, r.length + 1));
15357
15363
  }, 25) : y(!1), () => {
15358
- x.current && clearTimeout(x.current);
15364
+ S.current && clearTimeout(S.current);
15359
15365
  };
15360
- }, [r, h]), /* @__PURE__ */ S.jsxs(G1, { children: [
15361
- /* @__PURE__ */ S.jsx(Q1, { theme: l, children: r }),
15362
- /* @__PURE__ */ S.jsxs(X1, { children: [
15363
- /* @__PURE__ */ S.jsx(Rc, { delay: 0, theme: l }),
15364
- /* @__PURE__ */ S.jsx(Rc, { delay: 150, theme: l }),
15365
- /* @__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 })
15366
15372
  ] })
15367
15373
  ] });
15368
- }, K1 = U.div`
15374
+ }, J1 = H.div`
15369
15375
  flex: 1;
15370
15376
  overflow-y: auto;
15371
15377
  padding: 16px;
@@ -15403,7 +15409,7 @@ const Ba = () => {
15403
15409
  &:hover::-webkit-scrollbar-thumb:hover {
15404
15410
  background-color: ${({ scrollbarThumbHover: l }) => l};
15405
15411
  }
15406
- `, J1 = U.div`
15412
+ `, W1 = H.div`
15407
15413
  display: flex;
15408
15414
  flex: 1;
15409
15415
  align-items: center;
@@ -15412,7 +15418,7 @@ const Ba = () => {
15412
15418
  font-size: 14px;
15413
15419
  text-align: center;
15414
15420
  padding: 20px;
15415
- `, W1 = U.div`
15421
+ `, F1 = H.div`
15416
15422
  display: flex;
15417
15423
  flex: 1;
15418
15424
  flex-direction: column;
@@ -15421,7 +15427,7 @@ const Ba = () => {
15421
15427
  gap: 12px;
15422
15428
  color: ${({ color: l }) => l};
15423
15429
  font-size: 14px;
15424
- `, F1 = U.div`
15430
+ `, I1 = H.div`
15425
15431
  width: 32px;
15426
15432
  height: 32px;
15427
15433
  border: 3px solid ${({ color: l }) => l}20;
@@ -15434,12 +15440,12 @@ const Ba = () => {
15434
15440
  transform: rotate(360deg);
15435
15441
  }
15436
15442
  }
15437
- `, I1 = U.div`
15443
+ `, P1 = H.div`
15438
15444
  display: flex;
15439
15445
  align-items: center;
15440
15446
  justify-content: center;
15441
15447
  padding: 12px 0;
15442
- `, P1 = U.div`
15448
+ `, tv = H.div`
15443
15449
  width: 20px;
15444
15450
  height: 20px;
15445
15451
  border: 2px solid ${({ color: l }) => l}20;
@@ -15452,8 +15458,8 @@ const Ba = () => {
15452
15458
  transform: rotate(360deg);
15453
15459
  }
15454
15460
  }
15455
- `, tv = ({ onCardExpand: l }) => {
15456
- 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);
15457
15463
  C.useLayoutEffect(() => {
15458
15464
  const Q = g.current;
15459
15465
  if (!Q || r || u.length === 0) return;
@@ -15468,27 +15474,27 @@ const Ba = () => {
15468
15474
  }, [u, s, r]);
15469
15475
  const X = C.useCallback(() => {
15470
15476
  const Q = g.current;
15471
- !Q || z.current || Q.scrollTop <= 50 && T?.hasMore && !T.isLoadingMore && (A.current = Q.scrollHeight, z.current = !0, x());
15472
- }, [T, x]);
15477
+ !Q || z.current || Q.scrollTop <= 50 && T?.hasMore && !T.isLoadingMore && (A.current = Q.scrollHeight, z.current = !0, S());
15478
+ }, [T, S]);
15473
15479
  return C.useEffect(() => {
15474
15480
  const Q = g.current;
15475
15481
  if (Q)
15476
15482
  return Q.addEventListener("scroll", X, { passive: !0 }), () => Q.removeEventListener("scroll", X);
15477
- }, [X]), /* @__PURE__ */ S.jsx(
15478
- K1,
15483
+ }, [X]), /* @__PURE__ */ x.jsx(
15484
+ J1,
15479
15485
  {
15480
15486
  ref: g,
15481
15487
  fontFamily: h.fontFamily,
15482
15488
  scrollbarThumb: h.colors.scrollbarThumb,
15483
15489
  scrollbarThumbHover: h.colors.scrollbarThumbHover,
15484
15490
  background: h.colors.background,
15485
- children: r ? /* @__PURE__ */ S.jsxs(W1, { color: h.colors.textLight, children: [
15486
- /* @__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 }),
15487
15493
  "Loading..."
15488
- ] }) : 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: [
15489
- T?.isLoadingMore && /* @__PURE__ */ S.jsx(I1, { children: /* @__PURE__ */ S.jsx(P1, { color: h.colors.primary }) }),
15490
- u.map((Q) => /* @__PURE__ */ S.jsx(
15491
- 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,
15492
15498
  {
15493
15499
  message: Q,
15494
15500
  theme: h,
@@ -15497,12 +15503,12 @@ const Ba = () => {
15497
15503
  },
15498
15504
  Q.id
15499
15505
  )),
15500
- s && /* @__PURE__ */ S.jsx(Z1, { theme: h, status: d })
15506
+ s && /* @__PURE__ */ x.jsx(K1, { theme: h, status: d })
15501
15507
  ] })
15502
15508
  }
15503
15509
  );
15504
15510
  }, fg = (l = {}) => {
15505
- 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);
15506
15512
  C.useEffect(() => {
15507
15513
  const Y = window.SpeechRecognition || window.webkitSpeechRecognition;
15508
15514
  return Y && (g(!0), A.current = new Y(), A.current.continuous = !0, A.current.interimResults = !0, A.current.lang = r), () => {
@@ -15540,41 +15546,41 @@ const Ba = () => {
15540
15546
  }, []);
15541
15547
  return {
15542
15548
  isRecording: d,
15543
- isSupported: x,
15549
+ isSupported: S,
15544
15550
  transcript: y,
15545
15551
  startRecording: z,
15546
15552
  stopRecording: k,
15547
15553
  toggleRecording: X,
15548
15554
  clearTranscript: Q
15549
15555
  };
15550
- }, ev = U.div`
15556
+ }, nv = H.div`
15551
15557
  display: flex;
15552
15558
  flex-direction: column;
15553
15559
  gap: 4px;
15554
15560
  padding: 10px 12px;
15555
- `, nv = U.div`
15561
+ `, av = H.div`
15556
15562
  display: flex;
15557
15563
  align-items: center;
15558
15564
  justify-content: space-between;
15559
15565
  gap: 8px;
15560
- `, av = U.span`
15566
+ `, lv = H.span`
15561
15567
  font-family: ${({ theme: l }) => l.fontFamily};
15562
15568
  font-size: 11px;
15563
15569
  color: ${({ theme: l }) => l.colors.textLight};
15564
15570
  flex-shrink: 0;
15565
- `, lv = U.span`
15571
+ `, iv = H.span`
15566
15572
  flex: 1;
15567
15573
  font-family: ${({ theme: l }) => l.fontFamily};
15568
15574
  font-size: 14px;
15569
15575
  font-weight: 600;
15570
15576
  color: ${({ theme: l }) => l.colors.text};
15571
15577
  line-height: 1.3;
15572
- `, iv = U.div`
15578
+ `, ov = H.div`
15573
15579
  display: flex;
15574
15580
  align-items: center;
15575
15581
  gap: 4px;
15576
15582
  flex-shrink: 0;
15577
- `, ov = U.button`
15583
+ `, uv = H.button`
15578
15584
  padding: 4px 8px;
15579
15585
  border: none;
15580
15586
  border-radius: 6px;
@@ -15590,7 +15596,7 @@ const Ba = () => {
15590
15596
  background-color: ${({ theme: l }) => l.colors.surface};
15591
15597
  color: ${({ theme: l }) => l.colors.text};
15592
15598
  }
15593
- `, uv = U.button`
15599
+ `, rv = H.button`
15594
15600
  display: flex;
15595
15601
  align-items: center;
15596
15602
  justify-content: center;
@@ -15608,20 +15614,20 @@ const Ba = () => {
15608
15614
  background-color: ${({ theme: l }) => l.colors.surface};
15609
15615
  color: ${({ theme: l }) => l.colors.text};
15610
15616
  }
15611
- `, dg = C.memo(({ question: l, progress: u, onCancel: s, onSkip: r, theme: d }) => /* @__PURE__ */ S.jsx(ev, { children: /* @__PURE__ */ S.jsxs(nv, { children: [
15612
- 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: [
15613
15619
  u.currentIndex + 1,
15614
15620
  "/",
15615
15621
  u.totalQuestions
15616
15622
  ] }),
15617
- /* @__PURE__ */ S.jsx(lv, { theme: d, children: l }),
15618
- /* @__PURE__ */ S.jsxs(iv, { children: [
15619
- r && /* @__PURE__ */ S.jsx(ov, { theme: d, onClick: r, type: "button", children: "Skip" }),
15620
- /* @__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 }) })
15621
15627
  ] })
15622
15628
  ] }) }));
15623
15629
  dg.displayName = "SurveyHeader";
15624
- const rv = U.button`
15630
+ const cv = H.button`
15625
15631
  display: flex;
15626
15632
  align-items: center;
15627
15633
  gap: 8px;
@@ -15646,7 +15652,7 @@ const rv = U.button`
15646
15652
  &:active {
15647
15653
  transform: scale(0.99);
15648
15654
  }
15649
- `, cv = U.span`
15655
+ `, sv = H.span`
15650
15656
  display: flex;
15651
15657
  align-items: center;
15652
15658
  justify-content: center;
@@ -15659,37 +15665,37 @@ const rv = U.button`
15659
15665
  font-family: ${({ theme: l }) => l.fontFamily};
15660
15666
  font-size: 11px;
15661
15667
  font-weight: 600;
15662
- `, sv = U.span`
15668
+ `, fv = H.span`
15663
15669
  flex: 1;
15664
15670
  font-family: ${({ theme: l }) => l.fontFamily};
15665
15671
  font-size: 13px;
15666
15672
  color: ${({ theme: l }) => l.colors.text};
15667
- `, fv = U.span`
15673
+ `, dv = H.span`
15668
15674
  display: flex;
15669
15675
  align-items: center;
15670
15676
  color: ${({ theme: l }) => l.colors.textLight};
15671
15677
  opacity: ${({ isVisible: l }) => l ? 1 : 0};
15672
15678
  transition: opacity 0.2s ease;
15673
- `, hg = C.memo(({ label: l, index: u, isSelected: s, onSelect: r, theme: d }) => /* @__PURE__ */ S.jsxs(
15674
- rv,
15679
+ `, hg = C.memo(({ label: l, index: u, isSelected: s, onSelect: r, theme: d }) => /* @__PURE__ */ x.jsxs(
15680
+ cv,
15675
15681
  {
15676
15682
  theme: d,
15677
15683
  isSelected: s,
15678
15684
  onClick: r,
15679
15685
  type: "button",
15680
15686
  children: [
15681
- /* @__PURE__ */ S.jsx(cv, { theme: d, isSelected: s, children: u + 1 }),
15682
- /* @__PURE__ */ S.jsx(sv, { theme: d, children: l }),
15683
- /* @__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 }) })
15684
15690
  ]
15685
15691
  }
15686
15692
  ));
15687
15693
  hg.displayName = "ChoiceOption";
15688
- const dv = U.div`
15694
+ const hv = H.div`
15689
15695
  display: flex;
15690
15696
  flex-direction: column;
15691
15697
  gap: 6px;
15692
- `, hv = U.button`
15698
+ `, pv = H.button`
15693
15699
  display: flex;
15694
15700
  align-items: center;
15695
15701
  gap: 8px;
@@ -15705,7 +15711,7 @@ const dv = U.div`
15705
15711
  &:hover {
15706
15712
  background-color: ${({ theme: l }) => l.colors.surveyOptionBgHover};
15707
15713
  }
15708
- `, pv = U.span`
15714
+ `, gv = H.span`
15709
15715
  display: flex;
15710
15716
  align-items: center;
15711
15717
  justify-content: center;
@@ -15715,16 +15721,16 @@ const dv = U.div`
15715
15721
  border-radius: 5px;
15716
15722
  background-color: ${({ theme: l }) => l.colors.surveyNumberBg};
15717
15723
  color: ${({ theme: l }) => l.colors.surveyNumberText};
15718
- `, gv = U.span`
15724
+ `, mv = H.span`
15719
15725
  flex: 1;
15720
15726
  font-family: ${({ theme: l }) => l.fontFamily};
15721
15727
  font-size: 13px;
15722
15728
  color: ${({ theme: l }) => l.colors.textLight};
15723
- `, mv = U.div`
15729
+ `, yv = H.div`
15724
15730
  display: flex;
15725
15731
  gap: 8px;
15726
15732
  align-items: center;
15727
- `, yv = U.input`
15733
+ `, bv = H.input`
15728
15734
  flex: 1;
15729
15735
  padding: 8px 12px;
15730
15736
  border: 1px solid ${({ theme: l }) => l.colors.border};
@@ -15743,7 +15749,7 @@ const dv = U.div`
15743
15749
  &::placeholder {
15744
15750
  color: ${({ theme: l }) => l.colors.textLight};
15745
15751
  }
15746
- `, bv = U.button`
15752
+ `, vv = H.button`
15747
15753
  display: flex;
15748
15754
  align-items: center;
15749
15755
  justify-content: center;
@@ -15766,47 +15772,47 @@ const dv = U.div`
15766
15772
  `, pg = C.memo(({ onSubmit: l, theme: u, placeholder: s = "Type your answer..." }) => {
15767
15773
  const [r, d] = C.useState(!1), [h, y] = C.useState(""), T = () => {
15768
15774
  h.trim() && l(h.trim());
15769
- }, x = (g) => {
15775
+ }, S = (g) => {
15770
15776
  g.key === "Enter" && !g.shiftKey && (g.preventDefault(), T());
15771
15777
  };
15772
- return r ? /* @__PURE__ */ S.jsx(dv, { children: /* @__PURE__ */ S.jsxs(mv, { theme: u, children: [
15773
- /* @__PURE__ */ S.jsx(
15774
- yv,
15778
+ return r ? /* @__PURE__ */ x.jsx(hv, { children: /* @__PURE__ */ x.jsxs(yv, { theme: u, children: [
15779
+ /* @__PURE__ */ x.jsx(
15780
+ bv,
15775
15781
  {
15776
15782
  theme: u,
15777
15783
  value: h,
15778
15784
  onChange: (g) => y(g.target.value),
15779
- onKeyDown: x,
15785
+ onKeyDown: S,
15780
15786
  placeholder: s,
15781
15787
  autoFocus: !0
15782
15788
  }
15783
15789
  ),
15784
- /* @__PURE__ */ S.jsx(
15785
- bv,
15790
+ /* @__PURE__ */ x.jsx(
15791
+ vv,
15786
15792
  {
15787
15793
  theme: u,
15788
15794
  onClick: T,
15789
15795
  disabled: !h.trim(),
15790
15796
  type: "button",
15791
- children: /* @__PURE__ */ S.jsx(wl, { size: 18 })
15797
+ children: /* @__PURE__ */ x.jsx(wl, { size: 18 })
15792
15798
  }
15793
15799
  )
15794
- ] }) }) : /* @__PURE__ */ S.jsxs(
15795
- hv,
15800
+ ] }) }) : /* @__PURE__ */ x.jsxs(
15801
+ pv,
15796
15802
  {
15797
15803
  theme: u,
15798
15804
  isActive: !1,
15799
15805
  onClick: () => d(!0),
15800
15806
  type: "button",
15801
15807
  children: [
15802
- /* @__PURE__ */ S.jsx(pv, { theme: u, children: /* @__PURE__ */ S.jsx(ob, { size: 12 }) }),
15803
- /* @__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" })
15804
15810
  ]
15805
15811
  }
15806
15812
  );
15807
15813
  });
15808
15814
  pg.displayName = "OtherOption";
15809
- const vv = U.div`
15815
+ const xv = H.div`
15810
15816
  display: flex;
15811
15817
  flex-direction: column;
15812
15818
  gap: 4px;
@@ -15825,11 +15831,11 @@ const vv = U.div`
15825
15831
  r(z);
15826
15832
  } else
15827
15833
  y(/* @__PURE__ */ new Set([g])), r(l[g]);
15828
- }, x = (g) => {
15834
+ }, S = (g) => {
15829
15835
  r(g);
15830
15836
  };
15831
- return /* @__PURE__ */ S.jsxs(vv, { children: [
15832
- l.map((g, A) => /* @__PURE__ */ S.jsx(
15837
+ return /* @__PURE__ */ x.jsxs(xv, { children: [
15838
+ l.map((g, A) => /* @__PURE__ */ x.jsx(
15833
15839
  hg,
15834
15840
  {
15835
15841
  label: g,
@@ -15840,30 +15846,30 @@ const vv = U.div`
15840
15846
  },
15841
15847
  A
15842
15848
  )),
15843
- s && /* @__PURE__ */ S.jsx(
15849
+ s && /* @__PURE__ */ x.jsx(
15844
15850
  pg,
15845
15851
  {
15846
- onSubmit: x,
15852
+ onSubmit: S,
15847
15853
  theme: d
15848
15854
  }
15849
15855
  )
15850
15856
  ] });
15851
15857
  });
15852
15858
  lu.displayName = "ChoiceOptions";
15853
- const xv = U.div`
15859
+ const Sv = H.div`
15854
15860
  display: flex;
15855
15861
  flex-direction: column;
15856
15862
  gap: 8px;
15857
- `, Sv = U.div`
15863
+ `, Cv = H.div`
15858
15864
  display: flex;
15859
15865
  flex-direction: column;
15860
15866
  gap: 4px;
15861
- `, Cv = U.div`
15867
+ `, Tv = H.div`
15862
15868
  position: relative;
15863
15869
  height: 8px;
15864
15870
  border-radius: 4px;
15865
15871
  background-color: ${({ theme: l }) => l.colors.borderLight};
15866
- `, Tv = U.div`
15872
+ `, Ev = H.div`
15867
15873
  position: absolute;
15868
15874
  left: 0;
15869
15875
  top: 0;
@@ -15872,7 +15878,7 @@ const xv = U.div`
15872
15878
  border-radius: 4px;
15873
15879
  background-color: ${({ theme: l }) => l.colors.primary};
15874
15880
  transition: width 0.1s ease;
15875
- `, Ev = U.input`
15881
+ `, zv = H.input`
15876
15882
  position: absolute;
15877
15883
  top: -6px;
15878
15884
  left: 0;
@@ -15881,9 +15887,9 @@ const xv = U.div`
15881
15887
  margin: 0;
15882
15888
  opacity: 0;
15883
15889
  cursor: pointer;
15884
- `, zv = U.div`
15890
+ `, Av = H.div`
15885
15891
  position: relative;
15886
- `, Av = U.div`
15892
+ `, Mv = H.div`
15887
15893
  display: flex;
15888
15894
  align-items: center;
15889
15895
  justify-content: center;
@@ -15894,18 +15900,18 @@ const xv = U.div`
15894
15900
  font-size: 18px;
15895
15901
  font-weight: 600;
15896
15902
  color: ${({ theme: l }) => l.colors.primary};
15897
- `, Mv = U.div`
15903
+ `, wv = H.div`
15898
15904
  display: flex;
15899
15905
  justify-content: space-between;
15900
- `, Bp = U.span`
15906
+ `, Bp = H.span`
15901
15907
  font-family: ${({ theme: l }) => l.fontFamily};
15902
15908
  font-size: 11px;
15903
15909
  color: ${({ theme: l }) => l.colors.textLight};
15904
- `, wv = U.div`
15910
+ `, Ov = H.div`
15905
15911
  display: flex;
15906
15912
  justify-content: space-between;
15907
15913
  align-items: center;
15908
- `, Ov = U.button`
15914
+ `, _v = H.button`
15909
15915
  display: flex;
15910
15916
  align-items: center;
15911
15917
  justify-content: center;
@@ -15926,15 +15932,15 @@ const xv = U.div`
15926
15932
  transform: scale(0.95);
15927
15933
  }
15928
15934
  `, gg = C.memo(({ scale: l, onSubmit: u, theme: s }) => {
15929
- 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) => {
15930
- 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));
15931
15937
  };
15932
- return /* @__PURE__ */ S.jsxs(xv, { children: [
15933
- /* @__PURE__ */ S.jsxs(Sv, { children: [
15934
- /* @__PURE__ */ S.jsxs(zv, { children: [
15935
- /* @__PURE__ */ S.jsx(Cv, { theme: s, children: /* @__PURE__ */ S.jsx(Tv, { theme: s, percentage: g }) }),
15936
- /* @__PURE__ */ S.jsx(
15937
- 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,
15938
15944
  {
15939
15945
  theme: s,
15940
15946
  type: "range",
@@ -15945,19 +15951,19 @@ const xv = U.div`
15945
15951
  }
15946
15952
  )
15947
15953
  ] }),
15948
- /* @__PURE__ */ S.jsxs(Mv, { children: [
15949
- /* @__PURE__ */ S.jsx(Bp, { theme: s, children: h || r }),
15950
- /* @__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 })
15951
15957
  ] })
15952
15958
  ] }),
15953
- /* @__PURE__ */ S.jsxs(wv, { children: [
15954
- /* @__PURE__ */ S.jsx(Av, { theme: s, children: T }),
15955
- /* @__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 }) })
15956
15962
  ] })
15957
15963
  ] });
15958
15964
  });
15959
15965
  gg.displayName = "ScaleInput";
15960
- const _v = U.div`
15966
+ const $v = H.div`
15961
15967
  display: flex;
15962
15968
  flex-direction: column;
15963
15969
  border: 1.5px solid ${({ theme: l }) => l.colors.border};
@@ -15969,7 +15975,7 @@ const _v = U.div`
15969
15975
  border-color: ${({ theme: l }) => l.colors.primary};
15970
15976
  box-shadow: 0 0 0 3px ${({ theme: l }) => l.colors.accentLight};
15971
15977
  }
15972
- `, $v = U.textarea`
15978
+ `, Dv = H.textarea`
15973
15979
  flex: 1;
15974
15980
  padding: 12px 16px 8px;
15975
15981
  border: none;
@@ -15987,13 +15993,13 @@ const _v = U.div`
15987
15993
  &::placeholder {
15988
15994
  color: ${({ theme: l }) => l.colors.textLight};
15989
15995
  }
15990
- `, Dv = U.div`
15996
+ `, Bv = H.div`
15991
15997
  display: flex;
15992
15998
  justify-content: flex-end;
15993
15999
  align-items: center;
15994
16000
  gap: 8px;
15995
16001
  padding: 4px 12px 8px;
15996
- `, Bv = U.button`
16002
+ `, Rv = H.button`
15997
16003
  display: flex;
15998
16004
  align-items: center;
15999
16005
  justify-content: center;
@@ -16013,7 +16019,7 @@ const _v = U.div`
16013
16019
  &:active:not(:disabled) {
16014
16020
  transform: scale(0.95);
16015
16021
  }
16016
- `, Rv = (l) => yn`
16022
+ `, jv = (l) => yn`
16017
16023
  0% {
16018
16024
  box-shadow: 0 0 0 0 ${l}66;
16019
16025
  }
@@ -16023,7 +16029,7 @@ const _v = U.div`
16023
16029
  100% {
16024
16030
  box-shadow: 0 0 0 0 ${l}00;
16025
16031
  }
16026
- `, jv = U.button`
16032
+ `, Nv = H.button`
16027
16033
  display: flex;
16028
16034
  align-items: center;
16029
16035
  justify-content: center;
@@ -16035,7 +16041,7 @@ const _v = U.div`
16035
16041
  color: ${({ theme: l, isRecording: u }) => u ? l.colors.white : l.colors.textLight};
16036
16042
  cursor: pointer;
16037
16043
  transition: background-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
16038
- 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;
16039
16045
 
16040
16046
  &:hover {
16041
16047
  background-color: ${({ theme: l, isRecording: u }) => u ? l.colors.recording : l.colors.border};
@@ -16046,7 +16052,7 @@ const _v = U.div`
16046
16052
  transform: scale(0.95);
16047
16053
  }
16048
16054
  `, qc = C.memo(({ onSubmit: l, theme: u, placeholder: s = "Type your answer..." }) => {
16049
- 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({
16050
16056
  onError: (X) => {
16051
16057
  console.error("Voice recording error:", X);
16052
16058
  }
@@ -16059,9 +16065,9 @@ const _v = U.div`
16059
16065
  }, z = (X) => {
16060
16066
  X.key === "Enter" && !X.shiftKey && (X.preventDefault(), A());
16061
16067
  }, k = () => h ? "Listening..." : s;
16062
- return /* @__PURE__ */ S.jsxs(_v, { theme: u, children: [
16063
- /* @__PURE__ */ S.jsx(
16064
- $v,
16068
+ return /* @__PURE__ */ x.jsxs($v, { theme: u, children: [
16069
+ /* @__PURE__ */ x.jsx(
16070
+ Dv,
16065
16071
  {
16066
16072
  theme: u,
16067
16073
  value: r,
@@ -16071,42 +16077,42 @@ const _v = U.div`
16071
16077
  rows: 1
16072
16078
  }
16073
16079
  ),
16074
- /* @__PURE__ */ S.jsxs(Dv, { children: [
16075
- y && /* @__PURE__ */ S.jsx(
16076
- jv,
16080
+ /* @__PURE__ */ x.jsxs(Bv, { children: [
16081
+ y && /* @__PURE__ */ x.jsx(
16082
+ Nv,
16077
16083
  {
16078
16084
  theme: u,
16079
- onClick: x,
16085
+ onClick: S,
16080
16086
  isRecording: h,
16081
16087
  "aria-label": h ? "Stop recording" : "Start voice recording",
16082
16088
  title: h ? "Stop recording" : "Start voice recording",
16083
16089
  type: "button",
16084
- children: /* @__PURE__ */ S.jsx(ig, { size: 18 })
16090
+ children: /* @__PURE__ */ x.jsx(ig, { size: 18 })
16085
16091
  }
16086
16092
  ),
16087
- /* @__PURE__ */ S.jsx(
16088
- Bv,
16093
+ /* @__PURE__ */ x.jsx(
16094
+ Rv,
16089
16095
  {
16090
16096
  theme: u,
16091
16097
  onClick: A,
16092
16098
  disabled: !r.trim(),
16093
16099
  type: "button",
16094
- children: /* @__PURE__ */ S.jsx(wl, { size: 18 })
16100
+ children: /* @__PURE__ */ x.jsx(wl, { size: 18 })
16095
16101
  }
16096
16102
  )
16097
16103
  ] })
16098
16104
  ] });
16099
16105
  });
16100
16106
  qc.displayName = "TextInput";
16101
- const Nv = U.div`
16107
+ const Hv = H.div`
16102
16108
  display: flex;
16103
16109
  flex-direction: column;
16104
16110
  gap: 8px;
16105
- `, Hv = U.div`
16111
+ `, Uv = H.div`
16106
16112
  display: flex;
16107
16113
  gap: 8px;
16108
16114
  align-items: center;
16109
- `, Uv = U.input`
16115
+ `, kv = H.input`
16110
16116
  flex: 1;
16111
16117
  padding: 10px 12px;
16112
16118
  border: 1px solid ${({ theme: l }) => l.colors.border};
@@ -16133,7 +16139,7 @@ const Nv = U.div`
16133
16139
  margin: 0;
16134
16140
  }
16135
16141
  -moz-appearance: textfield;
16136
- `, kv = U.button`
16142
+ `, qv = H.button`
16137
16143
  display: flex;
16138
16144
  align-items: center;
16139
16145
  justify-content: center;
@@ -16161,7 +16167,7 @@ const Nv = U.div`
16161
16167
  min: d,
16162
16168
  max: h
16163
16169
  }) => {
16164
- const [y, T] = C.useState(""), x = (k) => {
16170
+ const [y, T] = C.useState(""), S = (k) => {
16165
16171
  const X = k.target.value;
16166
16172
  if (X === "" || X === "-") {
16167
16173
  T(X);
@@ -16178,36 +16184,36 @@ const Nv = U.div`
16178
16184
  const k = r ? parseFloat(y) : parseInt(y, 10);
16179
16185
  return !(isNaN(k) || d !== void 0 && k < d || h !== void 0 && k > h);
16180
16186
  };
16181
- return /* @__PURE__ */ S.jsx(Nv, { children: /* @__PURE__ */ S.jsxs(Hv, { children: [
16182
- /* @__PURE__ */ S.jsx(
16183
- Uv,
16187
+ return /* @__PURE__ */ x.jsx(Hv, { children: /* @__PURE__ */ x.jsxs(Uv, { children: [
16188
+ /* @__PURE__ */ x.jsx(
16189
+ kv,
16184
16190
  {
16185
16191
  theme: u,
16186
16192
  type: "text",
16187
16193
  inputMode: r ? "decimal" : "numeric",
16188
16194
  value: y,
16189
- onChange: x,
16195
+ onChange: S,
16190
16196
  onKeyDown: A,
16191
16197
  placeholder: s
16192
16198
  }
16193
16199
  ),
16194
- /* @__PURE__ */ S.jsx(
16195
- kv,
16200
+ /* @__PURE__ */ x.jsx(
16201
+ qv,
16196
16202
  {
16197
16203
  theme: u,
16198
16204
  onClick: g,
16199
16205
  disabled: !z(),
16200
16206
  type: "button",
16201
- children: /* @__PURE__ */ S.jsx(wl, { size: 18 })
16207
+ children: /* @__PURE__ */ x.jsx(wl, { size: 18 })
16202
16208
  }
16203
16209
  )
16204
16210
  ] }) });
16205
16211
  });
16206
16212
  Lc.displayName = "NumberInput";
16207
- const qv = U.div`
16213
+ const Lv = H.div`
16208
16214
  display: flex;
16209
16215
  gap: 8px;
16210
- `, Rp = U.button`
16216
+ `, Rp = H.button`
16211
16217
  flex: 1;
16212
16218
  display: flex;
16213
16219
  align-items: center;
@@ -16237,8 +16243,8 @@ const qv = U.div`
16237
16243
  theme: u,
16238
16244
  yesLabel: s = "Yes",
16239
16245
  noLabel: r = "No"
16240
- }) => /* @__PURE__ */ S.jsxs(qv, { children: [
16241
- /* @__PURE__ */ S.jsx(
16246
+ }) => /* @__PURE__ */ x.jsxs(Lv, { children: [
16247
+ /* @__PURE__ */ x.jsx(
16242
16248
  Rp,
16243
16249
  {
16244
16250
  theme: u,
@@ -16248,7 +16254,7 @@ const qv = U.div`
16248
16254
  children: s
16249
16255
  }
16250
16256
  ),
16251
- /* @__PURE__ */ S.jsx(
16257
+ /* @__PURE__ */ x.jsx(
16252
16258
  Rp,
16253
16259
  {
16254
16260
  theme: u,
@@ -16260,15 +16266,15 @@ const qv = U.div`
16260
16266
  )
16261
16267
  ] }));
16262
16268
  mg.displayName = "BooleanInput";
16263
- const Lv = U.div`
16269
+ const Yv = H.div`
16264
16270
  display: flex;
16265
16271
  flex-direction: column;
16266
16272
  gap: 8px;
16267
- `, Yv = U.div`
16273
+ `, Gv = H.div`
16268
16274
  display: flex;
16269
16275
  gap: 8px;
16270
16276
  align-items: center;
16271
- `, Gv = U.input`
16277
+ `, Qv = H.input`
16272
16278
  flex: 1;
16273
16279
  padding: 10px 12px;
16274
16280
  border: 1px solid ${({ theme: l }) => l.colors.border};
@@ -16294,7 +16300,7 @@ const Lv = U.div`
16294
16300
  opacity: 1;
16295
16301
  }
16296
16302
  }
16297
- `, Qv = U.button`
16303
+ `, Xv = H.button`
16298
16304
  display: flex;
16299
16305
  align-items: center;
16300
16306
  justify-content: center;
@@ -16320,9 +16326,9 @@ const Lv = U.div`
16320
16326
  }, y = (T) => {
16321
16327
  T.key === "Enter" && (T.preventDefault(), h());
16322
16328
  };
16323
- return /* @__PURE__ */ S.jsx(Lv, { children: /* @__PURE__ */ S.jsxs(Yv, { children: [
16324
- /* @__PURE__ */ S.jsx(
16325
- Gv,
16329
+ return /* @__PURE__ */ x.jsx(Yv, { children: /* @__PURE__ */ x.jsxs(Gv, { children: [
16330
+ /* @__PURE__ */ x.jsx(
16331
+ Qv,
16326
16332
  {
16327
16333
  theme: u,
16328
16334
  type: s ? "datetime-local" : "date",
@@ -16331,20 +16337,20 @@ const Lv = U.div`
16331
16337
  onKeyDown: y
16332
16338
  }
16333
16339
  ),
16334
- /* @__PURE__ */ S.jsx(
16335
- Qv,
16340
+ /* @__PURE__ */ x.jsx(
16341
+ Xv,
16336
16342
  {
16337
16343
  theme: u,
16338
16344
  onClick: h,
16339
16345
  disabled: !r,
16340
16346
  type: "button",
16341
- children: /* @__PURE__ */ S.jsx(wl, { size: 18 })
16347
+ children: /* @__PURE__ */ x.jsx(wl, { size: 18 })
16342
16348
  }
16343
16349
  )
16344
16350
  ] }) });
16345
16351
  });
16346
16352
  Yc.displayName = "DateInput";
16347
- const Xv = U.div`
16353
+ const Vv = H.div`
16348
16354
  display: flex;
16349
16355
  flex-direction: column;
16350
16356
  margin: 12px 16px 6px;
@@ -16354,7 +16360,7 @@ const Xv = U.div`
16354
16360
  overflow: hidden;
16355
16361
  max-height: 350px;
16356
16362
  overflow-y: auto;
16357
- `, Vv = U.div`
16363
+ `, Zv = H.div`
16358
16364
  padding: 0 12px 12px;
16359
16365
  `, yg = C.memo(({
16360
16366
  questionInfo: l,
@@ -16364,13 +16370,13 @@ const Xv = U.div`
16364
16370
  onCancel: d,
16365
16371
  theme: h
16366
16372
  }) => {
16367
- 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 = () => {
16368
16374
  switch (y) {
16369
16375
  case "CHOICE":
16370
- return /* @__PURE__ */ S.jsx(
16376
+ return /* @__PURE__ */ x.jsx(
16371
16377
  lu,
16372
16378
  {
16373
- options: x || [],
16379
+ options: S || [],
16374
16380
  allowMultiple: A,
16375
16381
  allowOther: z,
16376
16382
  onSelect: s,
@@ -16378,33 +16384,33 @@ const Xv = U.div`
16378
16384
  }
16379
16385
  );
16380
16386
  case "CHOICE_WITH_SCALE":
16381
- return g ? /* @__PURE__ */ S.jsx(
16387
+ return g ? /* @__PURE__ */ x.jsx(
16382
16388
  gg,
16383
16389
  {
16384
16390
  scale: g,
16385
16391
  onSubmit: s,
16386
16392
  theme: h
16387
16393
  }
16388
- ) : /* @__PURE__ */ S.jsx(
16394
+ ) : /* @__PURE__ */ x.jsx(
16389
16395
  lu,
16390
16396
  {
16391
- options: x || [],
16397
+ options: S || [],
16392
16398
  onSelect: s,
16393
16399
  theme: h
16394
16400
  }
16395
16401
  );
16396
16402
  case "CHOICE_WITH_IMAGES":
16397
- return /* @__PURE__ */ S.jsx(
16403
+ return /* @__PURE__ */ x.jsx(
16398
16404
  lu,
16399
16405
  {
16400
- options: x || [],
16406
+ options: S || [],
16401
16407
  allowOther: z,
16402
16408
  onSelect: s,
16403
16409
  theme: h
16404
16410
  }
16405
16411
  );
16406
16412
  case "STRING":
16407
- return /* @__PURE__ */ S.jsx(
16413
+ return /* @__PURE__ */ x.jsx(
16408
16414
  qc,
16409
16415
  {
16410
16416
  onSubmit: s,
@@ -16413,7 +16419,7 @@ const Xv = U.div`
16413
16419
  }
16414
16420
  );
16415
16421
  case "INTEGER":
16416
- return /* @__PURE__ */ S.jsx(
16422
+ return /* @__PURE__ */ x.jsx(
16417
16423
  Lc,
16418
16424
  {
16419
16425
  onSubmit: s,
@@ -16423,7 +16429,7 @@ const Xv = U.div`
16423
16429
  }
16424
16430
  );
16425
16431
  case "DECIMAL":
16426
- return /* @__PURE__ */ S.jsx(
16432
+ return /* @__PURE__ */ x.jsx(
16427
16433
  Lc,
16428
16434
  {
16429
16435
  onSubmit: s,
@@ -16433,7 +16439,7 @@ const Xv = U.div`
16433
16439
  }
16434
16440
  );
16435
16441
  case "BOOLEAN":
16436
- return /* @__PURE__ */ S.jsx(
16442
+ return /* @__PURE__ */ x.jsx(
16437
16443
  mg,
16438
16444
  {
16439
16445
  onSubmit: s,
@@ -16441,7 +16447,7 @@ const Xv = U.div`
16441
16447
  }
16442
16448
  );
16443
16449
  case "DATE":
16444
- return /* @__PURE__ */ S.jsx(
16450
+ return /* @__PURE__ */ x.jsx(
16445
16451
  Yc,
16446
16452
  {
16447
16453
  onSubmit: s,
@@ -16450,7 +16456,7 @@ const Xv = U.div`
16450
16456
  }
16451
16457
  );
16452
16458
  case "DATE_TIME":
16453
- return /* @__PURE__ */ S.jsx(
16459
+ return /* @__PURE__ */ x.jsx(
16454
16460
  Yc,
16455
16461
  {
16456
16462
  onSubmit: s,
@@ -16459,7 +16465,7 @@ const Xv = U.div`
16459
16465
  }
16460
16466
  );
16461
16467
  default:
16462
- return /* @__PURE__ */ S.jsx(
16468
+ return /* @__PURE__ */ x.jsx(
16463
16469
  qc,
16464
16470
  {
16465
16471
  onSubmit: s,
@@ -16469,8 +16475,8 @@ const Xv = U.div`
16469
16475
  );
16470
16476
  }
16471
16477
  };
16472
- return /* @__PURE__ */ S.jsxs(Xv, { theme: h, children: [
16473
- /* @__PURE__ */ S.jsx(
16478
+ return /* @__PURE__ */ x.jsxs(Vv, { theme: h, children: [
16479
+ /* @__PURE__ */ x.jsx(
16474
16480
  dg,
16475
16481
  {
16476
16482
  question: T,
@@ -16480,14 +16486,14 @@ const Xv = U.div`
16480
16486
  theme: h
16481
16487
  }
16482
16488
  ),
16483
- /* @__PURE__ */ S.jsx(Vv, { children: X() })
16489
+ /* @__PURE__ */ x.jsx(Zv, { children: X() })
16484
16490
  ] });
16485
16491
  });
16486
16492
  yg.displayName = "SurveyContainer";
16487
- const jp = U.div`
16493
+ const jp = H.div`
16488
16494
  background-color: ${({ theme: l }) => l.colors.background};
16489
16495
  border-radius: 0 0 ${({ theme: l }) => l.borderRadius} ${({ theme: l }) => l.borderRadius};
16490
- `, Zv = U.div`
16496
+ `, Kv = H.div`
16491
16497
  display: flex;
16492
16498
  flex-direction: column;
16493
16499
  border: 1.5px solid ${({ theme: l }) => l.colors.border};
@@ -16500,7 +16506,7 @@ const jp = U.div`
16500
16506
  border-color: ${({ theme: l }) => l.colors.primary};
16501
16507
  box-shadow: 0 0 0 3px ${({ theme: l }) => l.colors.accentLight};
16502
16508
  }
16503
- `, Kv = U.textarea`
16509
+ `, Jv = H.textarea`
16504
16510
  flex: 1;
16505
16511
  padding: 12px 16px 8px;
16506
16512
  border: none;
@@ -16522,19 +16528,19 @@ const jp = U.div`
16522
16528
  &:disabled {
16523
16529
  cursor: not-allowed;
16524
16530
  }
16525
- `, Jv = U.div`
16531
+ `, Wv = H.div`
16526
16532
  display: flex;
16527
16533
  justify-content: flex-end;
16528
16534
  align-items: center;
16529
16535
  gap: 8px;
16530
16536
  padding: 4px 12px 8px;
16531
- `, Np = U.div`
16537
+ `, Np = H.div`
16532
16538
  padding: 0 16px 10px;
16533
16539
  text-align: center;
16534
16540
  font-size: 10px;
16535
16541
  color: ${({ theme: l }) => l.colors.textLight};
16536
16542
  font-family: ${({ theme: l }) => l.fontFamily};
16537
- `, Wv = U.button`
16543
+ `, Fv = H.button`
16538
16544
  display: flex;
16539
16545
  align-items: center;
16540
16546
  justify-content: center;
@@ -16554,7 +16560,7 @@ const jp = U.div`
16554
16560
  &:active:not(:disabled) {
16555
16561
  transform: scale(0.95);
16556
16562
  }
16557
- `, Fv = (l) => yn`
16563
+ `, Iv = (l) => yn`
16558
16564
  0% {
16559
16565
  box-shadow: 0 0 0 0 ${l}66;
16560
16566
  }
@@ -16564,7 +16570,7 @@ const jp = U.div`
16564
16570
  100% {
16565
16571
  box-shadow: 0 0 0 0 ${l}00;
16566
16572
  }
16567
- `, Iv = U.button`
16573
+ `, Pv = H.button`
16568
16574
  display: flex;
16569
16575
  align-items: center;
16570
16576
  justify-content: center;
@@ -16576,7 +16582,7 @@ const jp = U.div`
16576
16582
  color: ${({ theme: l, isRecording: u }) => u ? l.colors.white : l.colors.textLight};
16577
16583
  cursor: pointer;
16578
16584
  transition: background-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
16579
- 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;
16580
16586
 
16581
16587
  &:hover {
16582
16588
  background-color: ${({ theme: l, isRecording: u }) => u ? l.colors.recording : l.colors.border};
@@ -16586,7 +16592,7 @@ const jp = U.div`
16586
16592
  &:active {
16587
16593
  transform: scale(0.95);
16588
16594
  }
16589
- `, Pv = () => {
16595
+ `, tx = () => {
16590
16596
  const {
16591
16597
  sendMessage: l,
16592
16598
  isTyping: u,
@@ -16596,7 +16602,7 @@ const jp = U.div`
16596
16602
  currentQuestion: h,
16597
16603
  surveyProgress: y,
16598
16604
  submitSurveyAnswer: T,
16599
- skipSurveyQuestion: x,
16605
+ skipSurveyQuestion: S,
16600
16606
  cancelSurvey: g
16601
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({
16602
16608
  onError: (Lt) => {
@@ -16629,23 +16635,23 @@ const jp = U.div`
16629
16635
  !A && !u && X.current && X.current.focus();
16630
16636
  }, [A, u]);
16631
16637
  const Yt = () => Y ? "Listening..." : Q;
16632
- return A && h ? /* @__PURE__ */ S.jsxs(jp, { theme: r, children: [
16633
- /* @__PURE__ */ S.jsx(
16638
+ return A && h ? /* @__PURE__ */ x.jsxs(jp, { theme: r, children: [
16639
+ /* @__PURE__ */ x.jsx(
16634
16640
  yg,
16635
16641
  {
16636
16642
  questionInfo: h,
16637
16643
  progress: y,
16638
16644
  onAnswer: T,
16639
- onSkip: x,
16645
+ onSkip: S,
16640
16646
  onCancel: g,
16641
16647
  theme: r
16642
16648
  }
16643
16649
  ),
16644
- vt && /* @__PURE__ */ S.jsx(Np, { theme: r, children: vt })
16645
- ] }) : /* @__PURE__ */ S.jsxs(jp, { theme: r, children: [
16646
- /* @__PURE__ */ S.jsxs(Zv, { theme: r, disabled: Xt, children: [
16647
- /* @__PURE__ */ S.jsx(
16648
- 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,
16649
16655
  {
16650
16656
  ref: X,
16651
16657
  theme: r,
@@ -16658,39 +16664,39 @@ const jp = U.div`
16658
16664
  rows: 1
16659
16665
  }
16660
16666
  ),
16661
- /* @__PURE__ */ S.jsxs(Jv, { children: [
16662
- R && /* @__PURE__ */ S.jsx(
16663
- Iv,
16667
+ /* @__PURE__ */ x.jsxs(Wv, { children: [
16668
+ R && /* @__PURE__ */ x.jsx(
16669
+ Pv,
16664
16670
  {
16665
16671
  theme: r,
16666
16672
  onClick: Nt,
16667
16673
  isRecording: Y,
16668
16674
  "aria-label": Y ? "Stop recording" : "Start voice recording",
16669
16675
  title: Y ? "Stop recording" : "Start voice recording",
16670
- children: /* @__PURE__ */ S.jsx(ig, { size: 18 })
16676
+ children: /* @__PURE__ */ x.jsx(ig, { size: 18 })
16671
16677
  }
16672
16678
  ),
16673
- /* @__PURE__ */ S.jsx(
16674
- Wv,
16679
+ /* @__PURE__ */ x.jsx(
16680
+ Fv,
16675
16681
  {
16676
16682
  theme: r,
16677
16683
  onClick: N,
16678
16684
  disabled: L,
16679
16685
  "aria-label": "Send message",
16680
- children: /* @__PURE__ */ S.jsx(wl, { size: 18 })
16686
+ children: /* @__PURE__ */ x.jsx(wl, { size: 18 })
16681
16687
  }
16682
16688
  )
16683
16689
  ] })
16684
16690
  ] }),
16685
- vt && /* @__PURE__ */ S.jsx(Np, { theme: r, children: vt })
16691
+ vt && /* @__PURE__ */ x.jsx(Np, { theme: r, children: vt })
16686
16692
  ] });
16687
- }, tx = yn`
16693
+ }, ex = yn`
16688
16694
  from { opacity: 0; }
16689
16695
  to { opacity: 1; }
16690
- `, ex = yn`
16696
+ `, nx = yn`
16691
16697
  from { opacity: 1; }
16692
16698
  to { opacity: 0; }
16693
- `, nx = U.div`
16699
+ `, ax = H.div`
16694
16700
  position: absolute;
16695
16701
  inset: 0;
16696
16702
  z-index: 10;
@@ -16699,12 +16705,12 @@ const jp = U.div`
16699
16705
  background-color: ${({ theme: l }) => l.colors.background};
16700
16706
  border-radius: inherit;
16701
16707
  overflow: hidden;
16702
- 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`};
16703
16709
 
16704
16710
  @media (prefers-reduced-motion: reduce) {
16705
16711
  animation: none;
16706
16712
  }
16707
- `, ax = U.div`
16713
+ `, lx = H.div`
16708
16714
  display: flex;
16709
16715
  align-items: center;
16710
16716
  justify-content: space-between;
@@ -16712,7 +16718,7 @@ const jp = U.div`
16712
16718
  background-color: ${({ theme: l }) => l.colors.secondary};
16713
16719
  color: ${({ theme: l }) => l.colors.headerText};
16714
16720
  flex-shrink: 0;
16715
- `, lx = U.h3`
16721
+ `, ix = H.h3`
16716
16722
  margin: 0;
16717
16723
  font-family: ${({ theme: l }) => l.fontFamily};
16718
16724
  font-size: 16px;
@@ -16723,11 +16729,11 @@ const jp = U.div`
16723
16729
  white-space: nowrap;
16724
16730
  flex: 1;
16725
16731
  margin-right: 8px;
16726
- `, ix = U.div`
16732
+ `, ox = H.div`
16727
16733
  display: flex;
16728
16734
  align-items: center;
16729
16735
  gap: 6px;
16730
- `, Hp = U.button`
16736
+ `, Hp = H.button`
16731
16737
  display: flex;
16732
16738
  align-items: center;
16733
16739
  justify-content: center;
@@ -16749,7 +16755,7 @@ const jp = U.div`
16749
16755
  &:active {
16750
16756
  background-color: ${({ theme: l }) => `${l.colors.headerText}66`};
16751
16757
  }
16752
- `, ox = U.div`
16758
+ `, ux = H.div`
16753
16759
  flex: 1;
16754
16760
  overflow-y: auto;
16755
16761
  -webkit-overflow-scrolling: touch;
@@ -16769,21 +16775,21 @@ const jp = U.div`
16769
16775
  &::-webkit-scrollbar-thumb:hover {
16770
16776
  background-color: ${({ theme: l }) => l.colors.scrollbarThumbHover};
16771
16777
  }
16772
- `, ux = U.img`
16778
+ `, rx = H.img`
16773
16779
  max-width: 100%;
16774
16780
  max-height: 35%;
16775
16781
  height: auto;
16776
16782
  display: block;
16777
16783
  margin: 16px auto 0;
16778
16784
  border-radius: 8px;
16779
- `, rx = U.video`
16785
+ `, cx = H.video`
16780
16786
  max-width: 90%;
16781
16787
  max-height: 360px;
16782
16788
  display: block;
16783
16789
  margin: 16px auto 0;
16784
16790
  border-radius: 8px;
16785
16791
  background-color: ${({ theme: l }) => l.colors.surface};
16786
- `, Up = U.div`
16792
+ `, Up = H.div`
16787
16793
  max-width: 90%;
16788
16794
  margin: 16px auto 0;
16789
16795
  padding: 16px;
@@ -16793,14 +16799,14 @@ const jp = U.div`
16793
16799
  flex-direction: column;
16794
16800
  align-items: center;
16795
16801
  gap: 12px;
16796
- `, kp = U.audio`
16802
+ `, kp = H.audio`
16797
16803
  width: 100%;
16798
- `, cx = U.img`
16804
+ `, sx = H.img`
16799
16805
  width: 80px;
16800
16806
  height: 80px;
16801
16807
  border-radius: 8px;
16802
16808
  object-fit: cover;
16803
- `, sx = U.div`
16809
+ `, fx = H.div`
16804
16810
  max-width: 90%;
16805
16811
  margin: 16px auto 0;
16806
16812
  padding: 16px;
@@ -16810,7 +16816,7 @@ const jp = U.div`
16810
16816
  align-items: center;
16811
16817
  gap: 12px;
16812
16818
  background-color: ${({ theme: l }) => l.colors.surface};
16813
- `, fx = U.a`
16819
+ `, dx = H.a`
16814
16820
  display: inline-flex;
16815
16821
  align-items: center;
16816
16822
  gap: 8px;
@@ -16827,12 +16833,12 @@ const jp = U.div`
16827
16833
  &:hover {
16828
16834
  background-color: ${({ theme: l }) => l.colors.primaryDark};
16829
16835
  }
16830
- `, dx = U.img`
16836
+ `, hx = H.img`
16831
16837
  width: 100%;
16832
16838
  max-height: 120px;
16833
16839
  object-fit: cover;
16834
16840
  border-radius: 8px;
16835
- `, qp = U.div`
16841
+ `, qp = H.div`
16836
16842
  padding: 16px;
16837
16843
  font-family: ${({ theme: l }) => l.fontFamily};
16838
16844
  font-size: 14px;
@@ -16884,12 +16890,12 @@ const jp = U.div`
16884
16890
  em {
16885
16891
  font-style: italic;
16886
16892
  }
16887
- `, hx = C.memo(function({
16893
+ `, px = C.memo(function({
16888
16894
  citation: u,
16889
16895
  theme: s,
16890
16896
  onClose: r
16891
16897
  }) {
16892
- 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(() => {
16893
16899
  T(!0);
16894
16900
  }, []);
16895
16901
  C.useEffect(() => {
@@ -16901,8 +16907,8 @@ const jp = U.div`
16901
16907
  if (!u.content) return null;
16902
16908
  switch (u.contentFormat?.toUpperCase()) {
16903
16909
  case "VIDEO":
16904
- return /* @__PURE__ */ S.jsx(
16905
- rx,
16910
+ return /* @__PURE__ */ x.jsx(
16911
+ cx,
16906
16912
  {
16907
16913
  theme: s,
16908
16914
  src: u.content,
@@ -16916,9 +16922,9 @@ const jp = U.div`
16916
16922
  }
16917
16923
  );
16918
16924
  case "AUDIO":
16919
- return /* @__PURE__ */ S.jsxs(Up, { theme: s, children: [
16920
- u.thumbnail && /* @__PURE__ */ S.jsx(
16921
- cx,
16925
+ return /* @__PURE__ */ x.jsxs(Up, { theme: s, children: [
16926
+ u.thumbnail && /* @__PURE__ */ x.jsx(
16927
+ sx,
16922
16928
  {
16923
16929
  src: u.thumbnail,
16924
16930
  alt: u.title,
@@ -16927,7 +16933,7 @@ const jp = U.div`
16927
16933
  }
16928
16934
  }
16929
16935
  ),
16930
- /* @__PURE__ */ S.jsx(
16936
+ /* @__PURE__ */ x.jsx(
16931
16937
  kp,
16932
16938
  {
16933
16939
  src: u.content,
@@ -16938,9 +16944,9 @@ const jp = U.div`
16938
16944
  )
16939
16945
  ] });
16940
16946
  case "PDF":
16941
- return /* @__PURE__ */ S.jsxs(sx, { theme: s, children: [
16942
- u.thumbnail && /* @__PURE__ */ S.jsx(
16943
- dx,
16947
+ return /* @__PURE__ */ x.jsxs(fx, { theme: s, children: [
16948
+ u.thumbnail && /* @__PURE__ */ x.jsx(
16949
+ hx,
16944
16950
  {
16945
16951
  src: u.thumbnail,
16946
16952
  alt: u.title,
@@ -16949,23 +16955,23 @@ const jp = U.div`
16949
16955
  }
16950
16956
  }
16951
16957
  ),
16952
- /* @__PURE__ */ S.jsxs(
16953
- fx,
16958
+ /* @__PURE__ */ x.jsxs(
16959
+ dx,
16954
16960
  {
16955
16961
  theme: s,
16956
16962
  href: u.content,
16957
16963
  target: "_blank",
16958
16964
  rel: "noopener noreferrer",
16959
16965
  children: [
16960
- /* @__PURE__ */ S.jsx(Py, { size: 16 }),
16966
+ /* @__PURE__ */ x.jsx(Py, { size: 16 }),
16961
16967
  "Open PDF"
16962
16968
  ]
16963
16969
  }
16964
16970
  )
16965
16971
  ] });
16966
16972
  default:
16967
- return /* @__PURE__ */ S.jsx(
16968
- ux,
16973
+ return /* @__PURE__ */ x.jsx(
16974
+ rx,
16969
16975
  {
16970
16976
  src: u.content,
16971
16977
  alt: u.title,
@@ -16976,25 +16982,25 @@ const jp = U.div`
16976
16982
  );
16977
16983
  }
16978
16984
  };
16979
- return /* @__PURE__ */ S.jsxs(nx, { theme: s, isClosing: y, children: [
16980
- /* @__PURE__ */ S.jsxs(ax, { theme: s, children: [
16981
- /* @__PURE__ */ S.jsx(lx, { theme: s, children: u.title }),
16982
- /* @__PURE__ */ S.jsxs(ix, { children: [
16983
- /* @__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(
16984
16990
  Hp,
16985
16991
  {
16986
16992
  theme: s,
16987
16993
  onClick: h,
16988
16994
  "aria-label": d ? "Collapse chat" : "Expand chat",
16989
- 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 })
16990
16996
  }
16991
16997
  ),
16992
- /* @__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 }) })
16993
16999
  ] })
16994
17000
  ] }),
16995
- /* @__PURE__ */ S.jsxs(ox, { theme: s, children: [
17001
+ /* @__PURE__ */ x.jsxs(ux, { theme: s, children: [
16996
17002
  g(),
16997
- 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(
16998
17004
  kp,
16999
17005
  {
17000
17006
  src: A,
@@ -17004,16 +17010,16 @@ const jp = U.div`
17004
17010
  },
17005
17011
  z
17006
17012
  )) }),
17007
- u.detailHtml ? /* @__PURE__ */ S.jsx(
17013
+ u.detailHtml ? /* @__PURE__ */ x.jsx(
17008
17014
  qp,
17009
17015
  {
17010
17016
  theme: s,
17011
17017
  dangerouslySetInnerHTML: { __html: u.detailHtml }
17012
17018
  }
17013
- ) : 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
17014
17020
  ] })
17015
17021
  ] });
17016
- }), px = yn`
17022
+ }), gx = yn`
17017
17023
  from {
17018
17024
  opacity: 0;
17019
17025
  transform: translateY(20px) scale(0.95);
@@ -17022,7 +17028,7 @@ const jp = U.div`
17022
17028
  opacity: 1;
17023
17029
  transform: translateY(0) scale(1);
17024
17030
  }
17025
- `, gx = yn`
17031
+ `, mx = yn`
17026
17032
  from {
17027
17033
  opacity: 1;
17028
17034
  transform: translateY(0) scale(1);
@@ -17031,14 +17037,14 @@ const jp = U.div`
17031
17037
  opacity: 0;
17032
17038
  transform: translateY(20px) scale(0.95);
17033
17039
  }
17034
- `, mx = yn`
17040
+ `, yx = yn`
17035
17041
  from {
17036
17042
  opacity: 0;
17037
17043
  }
17038
17044
  to {
17039
17045
  opacity: 1;
17040
17046
  }
17041
- `, yx = U.div`
17047
+ `, bx = H.div`
17042
17048
  display: ${({ isVisible: l }) => l ? "block" : "none"};
17043
17049
  position: fixed;
17044
17050
  top: 0;
@@ -17048,12 +17054,12 @@ const jp = U.div`
17048
17054
  background-color: rgba(0, 0, 0, 0.5);
17049
17055
  backdrop-filter: blur(4px);
17050
17056
  z-index: 2147483646;
17051
- animation: ${mx} 0.2s ease-out;
17057
+ animation: ${yx} 0.2s ease-out;
17052
17058
 
17053
17059
  @media (prefers-reduced-motion: reduce) {
17054
17060
  animation: none;
17055
17061
  }
17056
- `, bx = U.div`
17062
+ `, vx = H.div`
17057
17063
  position: ${({ floatingMode: l, useAbsolutePositioning: u, isExpanded: s }) => s ? "fixed" : u ? "absolute" : l ? "fixed" : "relative"};
17058
17064
  ${({ floatingMode: l, position: u, isExpanded: s, useAbsolutePositioning: r }) => s ? `
17059
17065
  top: 20px;
@@ -17088,7 +17094,16 @@ const jp = U.div`
17088
17094
  @media (prefers-reduced-motion: reduce) {
17089
17095
  transition: none;
17090
17096
  }
17091
- `, 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`
17092
17107
  display: ${({ isOpen: l }) => l ? "none" : "flex"};
17093
17108
  align-items: center;
17094
17109
  justify-content: center;
@@ -17112,11 +17127,11 @@ const jp = U.div`
17112
17127
  &:active {
17113
17128
  transform: scale(0.95);
17114
17129
  }
17115
- `, xx = U.img`
17130
+ `, Sx = H.img`
17116
17131
  width: 100%;
17117
17132
  height: 100%;
17118
17133
  object-fit: contain;
17119
- `, Sx = U.div`
17134
+ `, Cx = H.div`
17120
17135
  display: ${({ floatingMode: l, isOpen: u, isClosing: s }) => l ? u || s ? "flex" : "none" : "flex"};
17121
17136
  flex-direction: column;
17122
17137
  width: ${({ floatingMode: l, isExpanded: u, useAbsolutePositioning: s }) => l ? u ? "calc(100vw - 40px)" : "380px" : s ? "auto" : "100%"};
@@ -17133,7 +17148,7 @@ const jp = U.div`
17133
17148
  box-shadow: ${({ theme: l, floatingMode: u, isExpanded: s }) => u || s ? l.shadow : "none"};
17134
17149
  overflow: hidden;
17135
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;
17136
- 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"};
17137
17152
 
17138
17153
  @media (prefers-reduced-motion: reduce) {
17139
17154
  animation: none;
@@ -17142,29 +17157,30 @@ const jp = U.div`
17142
17157
 
17143
17158
  @media (max-width: 420px) {
17144
17159
  ${({ floatingMode: l, isExpanded: u }) => l && !u && `
17145
- width: calc(100vw - 40px);
17146
- height: calc(100vh - 100px);
17147
- max-height: 600px;
17160
+ width: 100%;
17161
+ height: 100%;
17162
+ max-height: 100%;
17163
+ border-radius: 0;
17148
17164
  `}
17149
17165
  }
17150
- `, Cx = () => {
17151
- 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) => {
17152
- 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);
17153
17169
  }, []), A = C.useCallback(() => {
17154
- x(null);
17170
+ S(null);
17155
17171
  }, []), z = s.fabIcon || d?.chatUiConfig?.fabIcon || "https://web.mypatientspace.com/img/logo-symbol.png";
17156
- return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
17157
- /* @__PURE__ */ S.jsx(yx, { isVisible: h }),
17158
- /* @__PURE__ */ S.jsxs(
17159
- bx,
17172
+ return /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
17173
+ /* @__PURE__ */ x.jsx(bx, { isVisible: h }),
17174
+ /* @__PURE__ */ x.jsxs(
17175
+ vx,
17160
17176
  {
17161
17177
  position: s.position || "bottom-right",
17162
17178
  floatingMode: y,
17163
17179
  useAbsolutePositioning: s.useAbsolutePositioning,
17164
17180
  isExpanded: h,
17165
17181
  children: [
17166
- y && /* @__PURE__ */ S.jsx(
17167
- vx,
17182
+ y && /* @__PURE__ */ x.jsx(
17183
+ xx,
17168
17184
  {
17169
17185
  theme: r,
17170
17186
  isOpen: l,
@@ -17172,11 +17188,11 @@ const jp = U.div`
17172
17188
  onClick: u,
17173
17189
  "aria-label": "Open chat",
17174
17190
  "aria-expanded": l,
17175
- children: /* @__PURE__ */ S.jsx(xx, { src: z, alt: "Chat" })
17191
+ children: /* @__PURE__ */ x.jsx(Sx, { src: z, alt: "Chat" })
17176
17192
  }
17177
17193
  ),
17178
- /* @__PURE__ */ S.jsxs(
17179
- Sx,
17194
+ /* @__PURE__ */ x.jsxs(
17195
+ Cx,
17180
17196
  {
17181
17197
  theme: r,
17182
17198
  isOpen: l,
@@ -17185,12 +17201,12 @@ const jp = U.div`
17185
17201
  isExpanded: h,
17186
17202
  useAbsolutePositioning: s.useAbsolutePositioning,
17187
17203
  children: [
17188
- /* @__PURE__ */ S.jsx(y1, {}),
17189
- /* @__PURE__ */ S.jsx(C1, {}),
17190
- /* @__PURE__ */ S.jsx(tv, { onCardExpand: g }),
17191
- /* @__PURE__ */ S.jsx(Pv, {}),
17192
- T && /* @__PURE__ */ S.jsx(
17193
- 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,
17194
17210
  {
17195
17211
  citation: T,
17196
17212
  theme: r,
@@ -17204,7 +17220,7 @@ const jp = U.div`
17204
17220
  }
17205
17221
  )
17206
17222
  ] });
17207
- }, Tx = {
17223
+ }, Ex = {
17208
17224
  position: "bottom-right",
17209
17225
  colorMode: "light"
17210
17226
  };
@@ -17225,15 +17241,15 @@ const Ce = {
17225
17241
  startNewChat: () => {
17226
17242
  console.warn("ChatbotWidget: Widget not initialized. Call init() first.");
17227
17243
  }
17228
- }, Ex = ({
17244
+ }, zx = ({
17229
17245
  config: l,
17230
17246
  onMount: u
17231
17247
  }) => {
17232
17248
  const s = C.useRef(null), r = C.useCallback((d) => {
17233
17249
  s.current = d;
17234
17250
  }, []);
17235
- return /* @__PURE__ */ S.jsx(t1, { config: l, onConfigUpdate: r, children: /* @__PURE__ */ S.jsx(zx, { onMount: u, updateConfigRef: s }) });
17236
- }, zx = ({
17251
+ return /* @__PURE__ */ x.jsx(t1, { config: l, onConfigUpdate: r, children: /* @__PURE__ */ x.jsx(Ax, { onMount: u, updateConfigRef: s }) });
17252
+ }, Ax = ({
17237
17253
  onMount: l,
17238
17254
  updateConfigRef: u
17239
17255
  }) => {
@@ -17248,15 +17264,15 @@ const Ce = {
17248
17264
  },
17249
17265
  startNewChat: h
17250
17266
  });
17251
- }, [s, r, d, h, l, u]), /* @__PURE__ */ S.jsx(Cx, {});
17252
- }, Ax = {
17267
+ }, [s, r, d, h, l, u]), /* @__PURE__ */ x.jsx(Tx, {});
17268
+ }, Mx = {
17253
17269
  init: (l) => {
17254
17270
  if (Tl) {
17255
17271
  console.warn("ChatbotWidget: Already initialized. Call destroy() first to reinitialize.");
17256
17272
  return;
17257
17273
  }
17258
17274
  const u = {
17259
- ...Tx,
17275
+ ...Ex,
17260
17276
  ...l,
17261
17277
  // floatingMode defaults to false (embedded is default)
17262
17278
  floatingMode: l.floatingMode ?? !1
@@ -17282,8 +17298,8 @@ const Ce = {
17282
17298
  container: Io
17283
17299
  });
17284
17300
  Tl = Lp.createRoot(s), Tl.render(
17285
- /* @__PURE__ */ S.jsx(Uc, { value: r, children: /* @__PURE__ */ S.jsx(
17286
- Ex,
17301
+ /* @__PURE__ */ x.jsx(Uc, { value: r, children: /* @__PURE__ */ x.jsx(
17302
+ zx,
17287
17303
  {
17288
17304
  config: u,
17289
17305
  onMount: (d) => {
@@ -17312,9 +17328,9 @@ const Ce = {
17312
17328
  update: (l) => Ce.updateConfig(l),
17313
17329
  startNewChat: () => Ce.startNewChat()
17314
17330
  };
17315
- window.ChatbotWidget = Ax;
17331
+ window.ChatbotWidget = Mx;
17316
17332
  let fa = null, hn = null, Po = null, zi = null, El = null, tu = !1;
17317
- const Mx = {
17333
+ const wx = {
17318
17334
  init: (l) => {
17319
17335
  if (fa) {
17320
17336
  console.warn("ChatbotWidgetDemo: Already initialized. Call destroy() first to reinitialize.");
@@ -17335,7 +17351,7 @@ const Mx = {
17335
17351
  key: "mps-demo",
17336
17352
  container: Po
17337
17353
  }), El = l, fa = Lp.createRoot(u), fa.render(
17338
- /* @__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 }) })
17339
17355
  ), console.log("ChatbotWidgetDemo: Initialized successfully.");
17340
17356
  },
17341
17357
  destroy: () => {
@@ -17347,12 +17363,12 @@ const Mx = {
17347
17363
  return;
17348
17364
  }
17349
17365
  El = { ...El, ...l }, fa.render(
17350
- /* @__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 }) })
17351
17367
  );
17352
17368
  },
17353
17369
  getConfig: () => window.ChatbotWidget ? {} : (console.warn("ChatbotWidgetDemo: Widget not available."), {})
17354
17370
  };
17355
- window.ChatbotWidgetDemo = Mx;
17371
+ window.ChatbotWidgetDemo = wx;
17356
17372
  export {
17357
- Mx as default
17373
+ wx as default
17358
17374
  };