widget-chatbot 2.0.7-alpha.5 → 2.0.7-alpha.7

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.
@@ -1,4 +1,4 @@
1
- import ft, { version as Lr, createContext as Ve, useContext as ze, useState as W, useRef as re, useMemo as V, useEffect as pe, memo as G, Fragment as Tt, Children as Mr, isValidElement as Nr, cloneElement as Fr, createElement as zt, useCallback as Ir } from "react";
1
+ import ft, { version as Lr, createContext as Ve, useContext as ze, useState as W, useRef as re, useMemo as z, useEffect as pe, memo as K, Fragment as Tt, Children as Mr, isValidElement as Nr, cloneElement as Fr, createElement as zt, useCallback as Ir } from "react";
2
2
  import ot from "axios";
3
3
  import je from "dayjs";
4
4
  import { version as $r, Modal as fn, Collapse as gn, Typography as ie, Button as le, Form as Se, notification as _e, Radio as Ur, Divider as Hr, Input as gt, Image as Wr, Skeleton as Re, Avatar as Bn, Upload as Yn, Spin as Br, Tooltip as tt, Tag as Yr, Badge as Vr, Grid as Me, Empty as Vn, Popover as Gt, Mentions as pn, Select as hn, DatePicker as zr, Result as Gr, Tabs as Dt } from "antd";
@@ -117,36 +117,36 @@ function no() {
117
117
  function b(d) {
118
118
  if (d === null || typeof d != "object")
119
119
  return null;
120
- var R = E && d[E] || d[f];
121
- return typeof R == "function" ? R : null;
120
+ var D = E && d[E] || d[f];
121
+ return typeof D == "function" ? D : null;
122
122
  }
123
123
  var u = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
124
124
  function C(d) {
125
125
  {
126
- for (var R = arguments.length, $ = new Array(R > 1 ? R - 1 : 0), J = 1; J < R; J++)
127
- $[J - 1] = arguments[J];
128
- A("error", d, $);
126
+ for (var D = arguments.length, U = new Array(D > 1 ? D - 1 : 0), Q = 1; Q < D; Q++)
127
+ U[Q - 1] = arguments[Q];
128
+ A("error", d, U);
129
129
  }
130
130
  }
131
- function A(d, R, $) {
131
+ function A(d, D, U) {
132
132
  {
133
- var J = u.ReactDebugCurrentFrame, he = J.getStackAddendum();
134
- he !== "" && (R += "%s", $ = $.concat([he]));
135
- var ge = $.map(function(oe) {
133
+ var Q = u.ReactDebugCurrentFrame, he = Q.getStackAddendum();
134
+ he !== "" && (D += "%s", U = U.concat([he]));
135
+ var ge = U.map(function(oe) {
136
136
  return "" + oe;
137
137
  });
138
- ge.unshift("Warning: " + R), Function.prototype.apply.call(console[d], console, ge);
138
+ ge.unshift("Warning: " + D), Function.prototype.apply.call(console[d], console, ge);
139
139
  }
140
140
  }
141
141
  var N = !1;
142
- function D(d) {
142
+ function O(d) {
143
143
  return !!(typeof d == "string" || typeof d == "function" || d === e.Fragment || d === i || d === T || d === s || d === m || d === p || d === w || N || typeof d == "object" && d !== null && (d.$$typeof === y || d.$$typeof === h || d.$$typeof === a || d.$$typeof === l || d.$$typeof === g || d.$$typeof === S || d.$$typeof === j || d[0] === v));
144
144
  }
145
- function _(d, R, $) {
146
- var J = R.displayName || R.name || "";
147
- return d.displayName || (J !== "" ? $ + "(" + J + ")" : $);
145
+ function _(d, D, U) {
146
+ var Q = D.displayName || D.name || "";
147
+ return d.displayName || (Q !== "" ? U + "(" + Q + ")" : U);
148
148
  }
149
- function O(d) {
149
+ function R(d) {
150
150
  return d.displayName || "Context";
151
151
  }
152
152
  function H(d) {
@@ -173,11 +173,11 @@ function no() {
173
173
  if (typeof d == "object")
174
174
  switch (d.$$typeof) {
175
175
  case l:
176
- var R = d;
177
- return O(R) + ".Consumer";
176
+ var D = d;
177
+ return R(D) + ".Consumer";
178
178
  case a:
179
- var $ = d;
180
- return O($._context) + ".Provider";
179
+ var U = d;
180
+ return R(U._context) + ".Provider";
181
181
  case g:
182
182
  return _(d, d.render, "ForwardRef");
183
183
  case h:
@@ -185,7 +185,7 @@ function no() {
185
185
  case j:
186
186
  return H(d._render);
187
187
  case y: {
188
- var J = d, he = J._payload, ge = J._init;
188
+ var Q = d, he = Q._payload, ge = Q._init;
189
189
  try {
190
190
  return H(ge(he));
191
191
  } catch {
@@ -195,14 +195,14 @@ function no() {
195
195
  }
196
196
  return null;
197
197
  }
198
- var q = 0, K, F, se, te, k, M, P;
198
+ var G = 0, q, F, se, te, k, M, P;
199
199
  function B() {
200
200
  }
201
201
  B.__reactDisabledLog = !0;
202
- function z() {
202
+ function Y() {
203
203
  {
204
- if (q === 0) {
205
- K = console.log, F = console.info, se = console.warn, te = console.error, k = console.group, M = console.groupCollapsed, P = console.groupEnd;
204
+ if (G === 0) {
205
+ q = console.log, F = console.info, se = console.warn, te = console.error, k = console.group, M = console.groupCollapsed, P = console.groupEnd;
206
206
  var d = {
207
207
  configurable: !0,
208
208
  enumerable: !0,
@@ -219,12 +219,12 @@ function no() {
219
219
  groupEnd: d
220
220
  });
221
221
  }
222
- q++;
222
+ G++;
223
223
  }
224
224
  }
225
- function Q() {
225
+ function Z() {
226
226
  {
227
- if (q--, q === 0) {
227
+ if (G--, G === 0) {
228
228
  var d = {
229
229
  configurable: !0,
230
230
  enumerable: !0,
@@ -232,7 +232,7 @@ function no() {
232
232
  };
233
233
  Object.defineProperties(console, {
234
234
  log: r({}, d, {
235
- value: K
235
+ value: q
236
236
  }),
237
237
  info: r({}, d, {
238
238
  value: F
@@ -254,44 +254,44 @@ function no() {
254
254
  })
255
255
  });
256
256
  }
257
- q < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
257
+ G < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
258
258
  }
259
259
  }
260
- var X = u.ReactCurrentDispatcher, Z;
261
- function ee(d, R, $) {
260
+ var X = u.ReactCurrentDispatcher, J;
261
+ function ee(d, D, U) {
262
262
  {
263
- if (Z === void 0)
263
+ if (J === void 0)
264
264
  try {
265
265
  throw Error();
266
266
  } catch (he) {
267
- var J = he.stack.trim().match(/\n( *(at )?)/);
268
- Z = J && J[1] || "";
267
+ var Q = he.stack.trim().match(/\n( *(at )?)/);
268
+ J = Q && Q[1] || "";
269
269
  }
270
270
  return `
271
- ` + Z + d;
271
+ ` + J + d;
272
272
  }
273
273
  }
274
- var U = !1, Y;
274
+ var $ = !1, V;
275
275
  {
276
276
  var de = typeof WeakMap == "function" ? WeakMap : Map;
277
- Y = new de();
277
+ V = new de();
278
278
  }
279
- function L(d, R) {
280
- if (!d || U)
279
+ function L(d, D) {
280
+ if (!d || $)
281
281
  return "";
282
282
  {
283
- var $ = Y.get(d);
284
- if ($ !== void 0)
285
- return $;
283
+ var U = V.get(d);
284
+ if (U !== void 0)
285
+ return U;
286
286
  }
287
- var J;
288
- U = !0;
287
+ var Q;
288
+ $ = !0;
289
289
  var he = Error.prepareStackTrace;
290
290
  Error.prepareStackTrace = void 0;
291
291
  var ge;
292
- ge = X.current, X.current = null, z();
292
+ ge = X.current, X.current = null, Y();
293
293
  try {
294
- if (R) {
294
+ if (D) {
295
295
  var oe = function() {
296
296
  throw Error();
297
297
  };
@@ -303,14 +303,14 @@ function no() {
303
303
  try {
304
304
  Reflect.construct(oe, []);
305
305
  } catch (Le) {
306
- J = Le;
306
+ Q = Le;
307
307
  }
308
308
  Reflect.construct(d, [], oe);
309
309
  } else {
310
310
  try {
311
311
  oe.call();
312
312
  } catch (Le) {
313
- J = Le;
313
+ Q = Le;
314
314
  }
315
315
  d.call(oe.prototype);
316
316
  }
@@ -318,14 +318,14 @@ function no() {
318
318
  try {
319
319
  throw Error();
320
320
  } catch (Le) {
321
- J = Le;
321
+ Q = Le;
322
322
  }
323
323
  d();
324
324
  }
325
325
  } catch (Le) {
326
- if (Le && J && typeof Le.stack == "string") {
326
+ if (Le && Q && typeof Le.stack == "string") {
327
327
  for (var ne = Le.stack.split(`
328
- `), Te = J.stack.split(`
328
+ `), Te = Q.stack.split(`
329
329
  `), me = ne.length - 1, ve = Te.length - 1; me >= 1 && ve >= 0 && ne[me] !== Te[ve]; )
330
330
  ve--;
331
331
  for (; me >= 1 && ve >= 0; me--, ve--)
@@ -335,26 +335,26 @@ function no() {
335
335
  if (me--, ve--, ve < 0 || ne[me] !== Te[ve]) {
336
336
  var Oe = `
337
337
  ` + ne[me].replace(" at new ", " at ");
338
- return typeof d == "function" && Y.set(d, Oe), Oe;
338
+ return typeof d == "function" && V.set(d, Oe), Oe;
339
339
  }
340
340
  while (me >= 1 && ve >= 0);
341
341
  break;
342
342
  }
343
343
  }
344
344
  } finally {
345
- U = !1, X.current = ge, Q(), Error.prepareStackTrace = he;
345
+ $ = !1, X.current = ge, Z(), Error.prepareStackTrace = he;
346
346
  }
347
347
  var Xe = d ? d.displayName || d.name : "", dn = Xe ? ee(Xe) : "";
348
- return typeof d == "function" && Y.set(d, dn), dn;
348
+ return typeof d == "function" && V.set(d, dn), dn;
349
349
  }
350
- function be(d, R, $) {
350
+ function be(d, D, U) {
351
351
  return L(d, !1);
352
352
  }
353
353
  function Ee(d) {
354
- var R = d.prototype;
355
- return !!(R && R.isReactComponent);
354
+ var D = d.prototype;
355
+ return !!(D && D.isReactComponent);
356
356
  }
357
- function fe(d, R, $) {
357
+ function fe(d, D, U) {
358
358
  if (d == null)
359
359
  return "";
360
360
  if (typeof d == "function")
@@ -372,13 +372,13 @@ function no() {
372
372
  case g:
373
373
  return be(d.render);
374
374
  case h:
375
- return fe(d.type, R, $);
375
+ return fe(d.type, D, U);
376
376
  case j:
377
377
  return be(d._render);
378
378
  case y: {
379
- var J = d, he = J._payload, ge = J._init;
379
+ var Q = d, he = Q._payload, ge = Q._init;
380
380
  try {
381
- return fe(ge(he), R, $);
381
+ return fe(ge(he), D, U);
382
382
  } catch {
383
383
  }
384
384
  }
@@ -388,12 +388,12 @@ function no() {
388
388
  var Ce = {}, Ne = u.ReactDebugCurrentFrame;
389
389
  function ke(d) {
390
390
  if (d) {
391
- var R = d._owner, $ = fe(d.type, d._source, R ? R.type : null);
392
- Ne.setExtraStackFrame($);
391
+ var D = d._owner, U = fe(d.type, d._source, D ? D.type : null);
392
+ Ne.setExtraStackFrame(U);
393
393
  } else
394
394
  Ne.setExtraStackFrame(null);
395
395
  }
396
- function it(d, R, $, J, he) {
396
+ function it(d, D, U, Q, he) {
397
397
  {
398
398
  var ge = Function.call.bind(Object.prototype.hasOwnProperty);
399
399
  for (var oe in d)
@@ -401,14 +401,14 @@ function no() {
401
401
  var ne = void 0;
402
402
  try {
403
403
  if (typeof d[oe] != "function") {
404
- var Te = Error((J || "React class") + ": " + $ + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
404
+ var Te = Error((Q || "React class") + ": " + U + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
405
405
  throw Te.name = "Invariant Violation", Te;
406
406
  }
407
- ne = d[oe](R, oe, J, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
407
+ ne = d[oe](D, oe, Q, U, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
408
408
  } catch (me) {
409
409
  ne = me;
410
410
  }
411
- ne && !(ne instanceof Error) && (ke(he), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", J || "React class", $, oe, typeof ne), ke(null)), ne instanceof Error && !(ne.message in Ce) && (Ce[ne.message] = !0, ke(he), C("Failed %s type: %s", $, ne.message), ke(null));
411
+ ne && !(ne instanceof Error) && (ke(he), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Q || "React class", U, oe, typeof ne), ke(null)), ne instanceof Error && !(ne.message in Ce) && (Ce[ne.message] = !0, ke(he), C("Failed %s type: %s", U, ne.message), ke(null));
412
412
  }
413
413
  }
414
414
  }
@@ -420,53 +420,53 @@ function no() {
420
420
  }, Be, rn;
421
421
  function yr(d) {
422
422
  if (qe.call(d, "ref")) {
423
- var R = Object.getOwnPropertyDescriptor(d, "ref").get;
424
- if (R && R.isReactWarning)
423
+ var D = Object.getOwnPropertyDescriptor(d, "ref").get;
424
+ if (D && D.isReactWarning)
425
425
  return !1;
426
426
  }
427
427
  return d.ref !== void 0;
428
428
  }
429
429
  function vr(d) {
430
430
  if (qe.call(d, "key")) {
431
- var R = Object.getOwnPropertyDescriptor(d, "key").get;
432
- if (R && R.isReactWarning)
431
+ var D = Object.getOwnPropertyDescriptor(d, "key").get;
432
+ if (D && D.isReactWarning)
433
433
  return !1;
434
434
  }
435
435
  return d.key !== void 0;
436
436
  }
437
- function br(d, R) {
437
+ function br(d, D) {
438
438
  typeof d.ref == "string" && Ge.current;
439
439
  }
440
- function Cr(d, R) {
440
+ function Cr(d, D) {
441
441
  {
442
- var $ = function() {
443
- Be || (Be = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R));
442
+ var U = function() {
443
+ Be || (Be = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", D));
444
444
  };
445
- $.isReactWarning = !0, Object.defineProperty(d, "key", {
446
- get: $,
445
+ U.isReactWarning = !0, Object.defineProperty(d, "key", {
446
+ get: U,
447
447
  configurable: !0
448
448
  });
449
449
  }
450
450
  }
451
- function Tr(d, R) {
451
+ function Tr(d, D) {
452
452
  {
453
- var $ = function() {
454
- rn || (rn = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R));
453
+ var U = function() {
454
+ rn || (rn = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", D));
455
455
  };
456
- $.isReactWarning = !0, Object.defineProperty(d, "ref", {
457
- get: $,
456
+ U.isReactWarning = !0, Object.defineProperty(d, "ref", {
457
+ get: U,
458
458
  configurable: !0
459
459
  });
460
460
  }
461
461
  }
462
- var Er = function(d, R, $, J, he, ge, oe) {
462
+ var Er = function(d, D, U, Q, he, ge, oe) {
463
463
  var ne = {
464
464
  // This tag allows us to uniquely identify this as a React Element
465
465
  $$typeof: o,
466
466
  // Built-in properties that belong on the element
467
467
  type: d,
468
- key: R,
469
- ref: $,
468
+ key: D,
469
+ ref: U,
470
470
  props: oe,
471
471
  // Record the component responsible for creating this element.
472
472
  _owner: ge
@@ -480,7 +480,7 @@ function no() {
480
480
  configurable: !1,
481
481
  enumerable: !1,
482
482
  writable: !1,
483
- value: J
483
+ value: Q
484
484
  }), Object.defineProperty(ne, "_source", {
485
485
  configurable: !1,
486
486
  enumerable: !1,
@@ -488,12 +488,12 @@ function no() {
488
488
  value: he
489
489
  }), Object.freeze && (Object.freeze(ne.props), Object.freeze(ne)), ne;
490
490
  };
491
- function Sr(d, R, $, J, he) {
491
+ function Sr(d, D, U, Q, he) {
492
492
  {
493
493
  var ge, oe = {}, ne = null, Te = null;
494
- $ !== void 0 && (ne = "" + $), vr(R) && (ne = "" + R.key), yr(R) && (Te = R.ref, br(R, he));
495
- for (ge in R)
496
- qe.call(R, ge) && !Ke.hasOwnProperty(ge) && (oe[ge] = R[ge]);
494
+ U !== void 0 && (ne = "" + U), vr(D) && (ne = "" + D.key), yr(D) && (Te = D.ref, br(D, he));
495
+ for (ge in D)
496
+ qe.call(D, ge) && !Ke.hasOwnProperty(ge) && (oe[ge] = D[ge]);
497
497
  if (d && d.defaultProps) {
498
498
  var me = d.defaultProps;
499
499
  for (ge in me)
@@ -503,14 +503,14 @@ function no() {
503
503
  var ve = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
504
504
  ne && Cr(oe, ve), Te && Tr(oe, ve);
505
505
  }
506
- return Er(d, ne, Te, he, J, Ge.current, oe);
506
+ return Er(d, ne, Te, he, Q, Ge.current, oe);
507
507
  }
508
508
  }
509
509
  var kt = u.ReactCurrentOwner, on = u.ReactDebugCurrentFrame;
510
510
  function Pe(d) {
511
511
  if (d) {
512
- var R = d._owner, $ = fe(d.type, d._source, R ? R.type : null);
513
- on.setExtraStackFrame($);
512
+ var D = d._owner, U = fe(d.type, d._source, D ? D.type : null);
513
+ on.setExtraStackFrame(U);
514
514
  } else
515
515
  on.setExtraStackFrame(null);
516
516
  }
@@ -537,37 +537,37 @@ Check the render method of \`` + d + "`.";
537
537
  var an = {};
538
538
  function _r(d) {
539
539
  {
540
- var R = sn();
541
- if (!R) {
542
- var $ = typeof d == "string" ? d : d.displayName || d.name;
543
- $ && (R = `
540
+ var D = sn();
541
+ if (!D) {
542
+ var U = typeof d == "string" ? d : d.displayName || d.name;
543
+ U && (D = `
544
544
 
545
- Check the top-level render call using <` + $ + ">.");
545
+ Check the top-level render call using <` + U + ">.");
546
546
  }
547
- return R;
547
+ return D;
548
548
  }
549
549
  }
550
- function cn(d, R) {
550
+ function cn(d, D) {
551
551
  {
552
552
  if (!d._store || d._store.validated || d.key != null)
553
553
  return;
554
554
  d._store.validated = !0;
555
- var $ = _r(R);
556
- if (an[$])
555
+ var U = _r(D);
556
+ if (an[U])
557
557
  return;
558
- an[$] = !0;
559
- var J = "";
560
- d && d._owner && d._owner !== kt.current && (J = " It was passed a child from " + H(d._owner.type) + "."), Pe(d), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', $, J), Pe(null);
558
+ an[U] = !0;
559
+ var Q = "";
560
+ d && d._owner && d._owner !== kt.current && (Q = " It was passed a child from " + H(d._owner.type) + "."), Pe(d), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', U, Q), Pe(null);
561
561
  }
562
562
  }
563
- function ln(d, R) {
563
+ function ln(d, D) {
564
564
  {
565
565
  if (typeof d != "object")
566
566
  return;
567
567
  if (Array.isArray(d))
568
- for (var $ = 0; $ < d.length; $++) {
569
- var J = d[$];
570
- Rt(J) && cn(J, R);
568
+ for (var U = 0; U < d.length; U++) {
569
+ var Q = d[U];
570
+ Rt(Q) && cn(Q, D);
571
571
  }
572
572
  else if (Rt(d))
573
573
  d._store && (d._store.validated = !0);
@@ -575,50 +575,50 @@ Check the top-level render call using <` + $ + ">.");
575
575
  var he = b(d);
576
576
  if (typeof he == "function" && he !== d.entries)
577
577
  for (var ge = he.call(d), oe; !(oe = ge.next()).done; )
578
- Rt(oe.value) && cn(oe.value, R);
578
+ Rt(oe.value) && cn(oe.value, D);
579
579
  }
580
580
  }
581
581
  }
582
582
  function jr(d) {
583
583
  {
584
- var R = d.type;
585
- if (R == null || typeof R == "string")
584
+ var D = d.type;
585
+ if (D == null || typeof D == "string")
586
586
  return;
587
- var $;
588
- if (typeof R == "function")
589
- $ = R.propTypes;
590
- else if (typeof R == "object" && (R.$$typeof === g || // Note: Memo only checks outer props here.
587
+ var U;
588
+ if (typeof D == "function")
589
+ U = D.propTypes;
590
+ else if (typeof D == "object" && (D.$$typeof === g || // Note: Memo only checks outer props here.
591
591
  // Inner props are checked in the reconciler.
592
- R.$$typeof === h))
593
- $ = R.propTypes;
592
+ D.$$typeof === h))
593
+ U = D.propTypes;
594
594
  else
595
595
  return;
596
- if ($) {
597
- var J = H(R);
598
- it($, d.props, "prop", J, d);
599
- } else if (R.PropTypes !== void 0 && !At) {
596
+ if (U) {
597
+ var Q = H(D);
598
+ it(U, d.props, "prop", Q, d);
599
+ } else if (D.PropTypes !== void 0 && !At) {
600
600
  At = !0;
601
- var he = H(R);
601
+ var he = H(D);
602
602
  C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", he || "Unknown");
603
603
  }
604
- typeof R.getDefaultProps == "function" && !R.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
604
+ typeof D.getDefaultProps == "function" && !D.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
605
605
  }
606
606
  }
607
607
  function kr(d) {
608
608
  {
609
- for (var R = Object.keys(d.props), $ = 0; $ < R.length; $++) {
610
- var J = R[$];
611
- if (J !== "children" && J !== "key") {
612
- Pe(d), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", J), Pe(null);
609
+ for (var D = Object.keys(d.props), U = 0; U < D.length; U++) {
610
+ var Q = D[U];
611
+ if (Q !== "children" && Q !== "key") {
612
+ Pe(d), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Q), Pe(null);
613
613
  break;
614
614
  }
615
615
  }
616
616
  d.ref !== null && (Pe(d), C("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
617
617
  }
618
618
  }
619
- function un(d, R, $, J, he, ge) {
619
+ function un(d, D, U, Q, he, ge) {
620
620
  {
621
- var oe = D(d);
621
+ var oe = O(d);
622
622
  if (!oe) {
623
623
  var ne = "";
624
624
  (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (ne += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -627,13 +627,13 @@ Check the top-level render call using <` + $ + ">.");
627
627
  var me;
628
628
  d === null ? me = "null" : Array.isArray(d) ? me = "array" : d !== void 0 && d.$$typeof === o ? (me = "<" + (H(d.type) || "Unknown") + " />", ne = " Did you accidentally export a JSX literal instead of a component?") : me = typeof d, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", me, ne);
629
629
  }
630
- var ve = Sr(d, R, $, he, ge);
630
+ var ve = Sr(d, D, U, he, ge);
631
631
  if (ve == null)
632
632
  return ve;
633
633
  if (oe) {
634
- var Oe = R.children;
634
+ var Oe = D.children;
635
635
  if (Oe !== void 0)
636
- if (J)
636
+ if (Q)
637
637
  if (Array.isArray(Oe)) {
638
638
  for (var Xe = 0; Xe < Oe.length; Xe++)
639
639
  ln(Oe[Xe], d);
@@ -646,11 +646,11 @@ Check the top-level render call using <` + $ + ">.");
646
646
  return d === e.Fragment ? kr(ve) : jr(ve), ve;
647
647
  }
648
648
  }
649
- function Ar(d, R, $) {
650
- return un(d, R, $, !0);
649
+ function Ar(d, D, U) {
650
+ return un(d, D, U, !0);
651
651
  }
652
- function Rr(d, R, $) {
653
- return un(d, R, $, !1);
652
+ function Rr(d, D, U) {
653
+ return un(d, D, U, !1);
654
654
  }
655
655
  var Dr = Rr, Or = Ar;
656
656
  e.jsx = Dr, e.jsxs = Or;
@@ -662,7 +662,7 @@ function ro() {
662
662
  return vn || (vn = 1, process.env.NODE_ENV === "production" ? mt.exports = to() : mt.exports = no()), mt.exports;
663
663
  }
664
664
  var t = ro();
665
- const oo = "2.0.7-alpha.5", Gn = "chat_session", so = "user_uttered", io = "bot_uttered", ao = "ehelp_bot_uttered", co = "bot_reason_uttered";
665
+ const oo = "2.0.7-alpha.7", Gn = "chat_session", so = "user_uttered", io = "bot_uttered", ao = "ehelp_bot_uttered", co = "bot_reason_uttered";
666
666
  JSON.stringify({
667
667
  enabled_agents: ["Alice", "Maria", "Jani"],
668
668
  default_active_agent: "Alice"
@@ -900,7 +900,7 @@ const $e = (e = ".w-wrapper-body") => {
900
900
  modelName: g,
901
901
  isSF: m
902
902
  }) => {
903
- const [p, h] = W(!1), [y, j] = W("va"), [v, S] = W(!1), [T, w] = W({}), [x, E] = W(!1), [f, b] = W(!1), [u, C] = W(!1), A = re(!1), N = V(() => ({
903
+ const [p, h] = W(!1), [y, j] = W("va"), [v, S] = W(!1), [T, w] = W({}), [x, E] = W(!1), [f, b] = W(!1), [u, C] = W(!1), A = re(!1), N = z(() => ({
904
904
  getStartedPayload: n,
905
905
  socketURL: r,
906
906
  socketPath: o,
@@ -922,7 +922,7 @@ const $e = (e = ".w-wrapper-body") => {
922
922
  l,
923
923
  g,
924
924
  m
925
- ]), D = V(() => Kn(T == null ? void 0 : T.access_token), [T == null ? void 0 : T.access_token]);
925
+ ]), O = z(() => Kn(T == null ? void 0 : T.access_token), [T == null ? void 0 : T.access_token]);
926
926
  return pe(() => {
927
927
  w(yo(n));
928
928
  }, [n]), pe(() => {
@@ -941,7 +941,7 @@ const $e = (e = ".w-wrapper-body") => {
941
941
  isExpand: v,
942
942
  setExpand: S,
943
943
  setObjInitPayload: w,
944
- parsedJWT: D,
944
+ parsedJWT: O,
945
945
  widgetProps: N,
946
946
  isFirstOpenWidget: x,
947
947
  setFirstOpenWidget: E,
@@ -996,38 +996,38 @@ const $e = (e = ".w-wrapper-body") => {
996
996
  }, [n == null ? void 0 : n.uriService, n == null ? void 0 : n.lang]), /* @__PURE__ */ t.jsx(Qn.Provider, { value: { langDatas: r }, children: e });
997
997
  }, er = Ve({}), De = () => ze(er), ko = ({ children: e }) => {
998
998
  var ee;
999
- const [n, r] = W([]), [o, c] = W(!1), [s, i] = W(!1), [a, l] = W({}), [g, m] = W(!0), [p, h] = W(!1), [y, j] = W(!1), [v, S] = W(!1), [T, w] = W(!1), [x, E] = W(""), [f, b] = W(!1), [u, C] = W(!1), [A, N] = W({}), D = re(null), _ = re(null), O = re(null), H = re(""), q = re(""), {
1000
- objInitPayload: K,
999
+ const [n, r] = W([]), [o, c] = W(!1), [s, i] = W(!1), [a, l] = W({}), [g, m] = W(!0), [p, h] = W(!1), [y, j] = W(!1), [v, S] = W(!1), [T, w] = W(!1), [x, E] = W(""), [f, b] = W(!1), [u, C] = W(!1), [A, N] = W({}), O = re(null), _ = re(null), R = re(null), H = re(""), G = re(""), {
1000
+ objInitPayload: q,
1001
1001
  widgetProps: F,
1002
1002
  setOpenWidget: se,
1003
1003
  setFirstOpenWidget: te,
1004
1004
  isFirstRenderHelpdesk: k,
1005
1005
  setUserInputHide: M
1006
- } = ue(), P = (U) => {
1006
+ } = ue(), P = ($) => {
1007
1007
  var de;
1008
- const Y = we(U, "text_feedback_link") && we(U, "text");
1008
+ const V = we($, "text_feedback_link") && we($, "text");
1009
1009
  r((L) => {
1010
1010
  var Ne, ke;
1011
- const Ee = [...bo(L)], fe = Ee[Ee.length - 1], Ce = U.id && U.id !== "" ? U.id : ((Ne = U.metadata) == null ? void 0 : Ne.id) || ((ke = U.metadata) == null ? void 0 : ke.message_id) || "";
1012
- return (fe == null ? void 0 : fe.id) === Ce ? (fe.text = `${(fe == null ? void 0 : fe.text) || ""}${(U == null ? void 0 : U.text) || ""}`, U != null && U.tag && (fe.tag = U.tag)) : Ee.push({
1013
- ...U,
1011
+ const Ee = [...bo(L)], fe = Ee[Ee.length - 1], Ce = $.id && $.id !== "" ? $.id : ((Ne = $.metadata) == null ? void 0 : Ne.id) || ((ke = $.metadata) == null ? void 0 : ke.message_id) || "";
1012
+ return (fe == null ? void 0 : fe.id) === Ce ? (fe.text = `${(fe == null ? void 0 : fe.text) || ""}${($ == null ? void 0 : $.text) || ""}`, $ != null && $.tag && (fe.tag = $.tag)) : Ee.push({
1013
+ ...$,
1014
1014
  id: Ce,
1015
- ...Y && { type: "text" },
1015
+ ...V && { type: "text" },
1016
1016
  sender: "response"
1017
1017
  }), Co(Ee);
1018
- }), C(!0), m(!1), c(!1), M(((de = U == null ? void 0 : U.metadata) == null ? void 0 : de.userInput) === "hide"), i(!1), D != null && D.current && clearTimeout(D == null ? void 0 : D.current), D.current = setTimeout(() => {
1018
+ }), C(!0), m(!1), c(!1), M(((de = $ == null ? void 0 : $.metadata) == null ? void 0 : de.userInput) === "hide"), i(!1), O != null && O.current && clearTimeout(O == null ? void 0 : O.current), O.current = setTimeout(() => {
1019
1019
  C(!1);
1020
1020
  }, 1750), _ != null && _.current && clearTimeout(_ == null ? void 0 : _.current), _.current = setTimeout(() => {
1021
1021
  m(!0);
1022
1022
  }, 2e3), $e();
1023
- }, B = (U) => {
1024
- var Y, de, L, be, Ee;
1025
- U && z({ msg: F == null ? void 0 : F.getStartedPayload }), (Y = O.current) == null || Y.emit("session_request", { session_id: null }), (de = O.current) == null || de.on("session_confirm", (fe) => {
1023
+ }, B = ($) => {
1024
+ var V, de, L, be, Ee;
1025
+ $ && Y({ msg: F == null ? void 0 : F.getStartedPayload }), (V = R.current) == null || V.emit("session_request", { session_id: null }), (de = R.current) == null || de.on("session_confirm", (fe) => {
1026
1026
  H.current = fe, _t({ session_id: fe == null ? void 0 : fe.session_id });
1027
- }), (L = O.current) == null || L.on(io, P), (be = O.current) == null || be.on(ao, (fe) => {
1027
+ }), (L = R.current) == null || L.on(io, P), (be = R.current) == null || be.on(ao, (fe) => {
1028
1028
  const Ce = JSON.parse(fe || "{}");
1029
1029
  we(Ce, "iswidget") && w(Ce == null ? void 0 : Ce.iswidget);
1030
- }), (Ee = O.current) == null || Ee.on(co, (fe) => {
1030
+ }), (Ee = R.current) == null || Ee.on(co, (fe) => {
1031
1031
  try {
1032
1032
  const Ce = typeof fe == "string" ? JSON.parse(fe) : fe, { id: Ne } = Ce || {};
1033
1033
  if (!Ne) return;
@@ -1046,22 +1046,22 @@ const $e = (e = ".w-wrapper-body") => {
1046
1046
  console.error("Error parsing BOT_REASON_UTTERED:", Ce);
1047
1047
  }
1048
1048
  }), v || S(!0), te(!1);
1049
- }, z = ({
1050
- msg: U,
1051
- additionalConfig: Y = {},
1049
+ }, Y = ({
1050
+ msg: $,
1051
+ additionalConfig: V = {},
1052
1052
  isShowLoadingResponse: de = !0
1053
1053
  }) => {
1054
1054
  var L;
1055
- (L = O.current) == null || L.emit(so, {
1056
- customData: { language: K == null ? void 0 : K.lang },
1057
- message: U,
1055
+ (L = R.current) == null || L.emit(so, {
1056
+ customData: { language: q == null ? void 0 : q.lang },
1057
+ message: $,
1058
1058
  session_id: H == null ? void 0 : H.current,
1059
- ...Y
1059
+ ...V
1060
1060
  }), de ? c(!0) : i(!0);
1061
- }, Q = (U = !1) => {
1061
+ }, Z = ($ = !1) => {
1062
1062
  var de, L;
1063
- O.current && ((de = O.current) == null || de.off(), (L = O.current) == null || L.disconnect(), O.current = null), k.current = !1;
1064
- const Y = qr(
1063
+ R.current && ((de = R.current) == null || de.off(), (L = R.current) == null || L.disconnect(), R.current = null), k.current = !1;
1064
+ const V = qr(
1065
1065
  `${To(F == null ? void 0 : F.socketURL)}://${qn(
1066
1066
  F == null ? void 0 : F.socketURL
1067
1067
  )}`,
@@ -1072,27 +1072,27 @@ const $e = (e = ".w-wrapper-body") => {
1072
1072
  reconnectionAttempts: 1
1073
1073
  }
1074
1074
  );
1075
- Y.on("connect", () => B(U)), Y.on("connect_error", (be) => {
1075
+ V.on("connect", () => B($)), V.on("connect_error", (be) => {
1076
1076
  console.error("connect_error widget-chatbot : ", {
1077
1077
  err: be,
1078
1078
  socketURL: F == null ? void 0 : F.socketURL,
1079
1079
  socketPath: F == null ? void 0 : F.widgetProps
1080
1080
  }), S(!1);
1081
- }), Y.io.on("reconnect", () => {
1081
+ }), V.io.on("reconnect", () => {
1082
1082
  console.error("reconnect widget-chatbot : ", {
1083
1083
  socketURL: F == null ? void 0 : F.socketURL,
1084
1084
  socketPath: F == null ? void 0 : F.widgetProps
1085
1085
  }), S(!1);
1086
- }), O.current = Y;
1086
+ }), R.current = V;
1087
1087
  }, X = () => {
1088
- var U;
1089
- (!((U = O == null ? void 0 : O.current) != null && U.connected) || !v) && (Q(), se(!1));
1090
- }, Z = () => S(!1);
1091
- return pe(() => (se(!1), Q(), window.addEventListener("online", X), window.addEventListener("offline", Z), () => {
1092
- var U, Y;
1093
- O.current && ((U = O.current) == null || U.off("connect", B), (Y = O.current) == null || Y.disconnect(), O.current = null), window.removeEventListener("online", X), window.removeEventListener("offline", Z);
1088
+ var $;
1089
+ (!(($ = R == null ? void 0 : R.current) != null && $.connected) || !v) && (Z(), se(!1));
1090
+ }, J = () => S(!1);
1091
+ return pe(() => (se(!1), Z(), window.addEventListener("online", X), window.addEventListener("offline", J), () => {
1092
+ var $, V;
1093
+ R.current && (($ = R.current) == null || $.off("connect", B), (V = R.current) == null || V.disconnect(), R.current = null), window.removeEventListener("online", X), window.removeEventListener("offline", J);
1094
1094
  }), [
1095
- JSON.stringify(K || {}),
1095
+ JSON.stringify(q || {}),
1096
1096
  F == null ? void 0 : F.socketURL,
1097
1097
  F == null ? void 0 : F.socketPath
1098
1098
  ]), /* @__PURE__ */ t.jsx(
@@ -1101,17 +1101,17 @@ const $e = (e = ".w-wrapper-body") => {
1101
1101
  value: {
1102
1102
  setChats: r,
1103
1103
  chats: n,
1104
- onSendMsg: z,
1104
+ onSendMsg: Y,
1105
1105
  isWaitResponse: o,
1106
- socket: O == null ? void 0 : O.current,
1106
+ socket: R == null ? void 0 : R.current,
1107
1107
  sessionId: (ee = H == null ? void 0 : H.current) == null ? void 0 : ee.session_id,
1108
1108
  loadingRegenerate: s,
1109
1109
  file: a,
1110
1110
  setFile: l,
1111
1111
  connected: v,
1112
1112
  isHandshakeWidget: T,
1113
- createSocket: Q,
1114
- currRegenerateId: q,
1113
+ createSocket: Z,
1114
+ currRegenerateId: G,
1115
1115
  thinkingText: x,
1116
1116
  setThinkingText: E,
1117
1117
  isThinkingCompleted: f,
@@ -1417,7 +1417,7 @@ const $e = (e = ".w-wrapper-body") => {
1417
1417
  return ((i = Object.keys(r || {})) == null ? void 0 : i.length) > 0 ? o ? `WPUI_${c}` : s : n;
1418
1418
  }, Do = ({ isFeedback: e = !1, open: n, ...r }) => {
1419
1419
  var c;
1420
- const o = V(() => e ? "w-modal-container-feedback" : "", [e]);
1420
+ const o = z(() => e ? "w-modal-container-feedback" : "", [e]);
1421
1421
  return nt != null && nt.startsWith("5") ? /* @__PURE__ */ t.jsx(
1422
1422
  fn,
1423
1423
  {
@@ -1464,7 +1464,7 @@ const $e = (e = ".w-wrapper-body") => {
1464
1464
  }
1465
1465
  )
1466
1466
  );
1467
- }, tr = G(Do), Oo = ({ childrenData: e, children: n, tag: r, reason: o }) => {
1467
+ }, tr = K(Do), Oo = ({ childrenData: e, children: n, tag: r, reason: o }) => {
1468
1468
  const c = I("ThinkProcess", "Think Process"), i = [{ type: "text", value: typeof e == "string" ? e : "" }], a = typeof o == "string" ? o.replace(/\s+/g, " ").trim() : "", l = a.length > 0;
1469
1469
  return /* @__PURE__ */ t.jsxs("div", { children: [
1470
1470
  l && /* @__PURE__ */ t.jsx(
@@ -1509,7 +1509,7 @@ const $e = (e = ".w-wrapper-body") => {
1509
1509
  ),
1510
1510
  i.map((g, m) => /* @__PURE__ */ t.jsx(Tt, { children: n(g.value, "text") }, m))
1511
1511
  ] });
1512
- }, Lo = G(Oo), En = ({ props: e, isModal: n = !1 }) => {
1512
+ }, Lo = K(Oo), En = ({ props: e, isModal: n = !1 }) => {
1513
1513
  const r = (o, c) => {
1514
1514
  var s;
1515
1515
  return (s = Mr) == null ? void 0 : s.map(o, (i) => {
@@ -1644,7 +1644,7 @@ const $e = (e = ".w-wrapper-body") => {
1644
1644
  children: g
1645
1645
  }
1646
1646
  ) }) });
1647
- }, nr = G(Mo), No = () => /* @__PURE__ */ t.jsxs(
1647
+ }, nr = K(Mo), No = () => /* @__PURE__ */ t.jsxs(
1648
1648
  "svg",
1649
1649
  {
1650
1650
  width: "24",
@@ -1972,7 +1972,7 @@ const $e = (e = ".w-wrapper-body") => {
1972
1972
  children: /* @__PURE__ */ t.jsx("path", { d: "M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z" })
1973
1973
  }
1974
1974
  ), xe = ({ type: e = "", chatProps: n, ...r }) => {
1975
- const o = V(() => ({
1975
+ const o = z(() => ({
1976
1976
  minimize: Fo,
1977
1977
  expand: Io,
1978
1978
  send: $o,
@@ -1997,7 +1997,7 @@ const $e = (e = ".w-wrapper-body") => {
1997
1997
  }), [e, n, r]);
1998
1998
  return /* @__PURE__ */ t.jsx(Jr, { component: o == null ? void 0 : o[e], ...r });
1999
1999
  }, rr = Ve({}), Ue = () => ze(rr), ns = ({ children: e }) => {
2000
- const [n, r] = W("va"), o = V(() => n === "va", [n]);
2000
+ const [n, r] = W("va"), o = z(() => n === "va", [n]);
2001
2001
  return /* @__PURE__ */ t.jsx(
2002
2002
  rr.Provider,
2003
2003
  {
@@ -2022,15 +2022,15 @@ const $e = (e = ".w-wrapper-body") => {
2022
2022
  ), s = I(
2023
2023
  "AdditionalFeedback",
2024
2024
  "Additional Feedback"
2025
- ), [i] = Se.useForm(), [a, l] = W(!1), [g, m] = W(""), { setChats: p } = De(), { objInitPayload: h, isUserInputHide: y } = ue(), { activeTab: j } = Ue(), v = V(() => {
2025
+ ), [i] = Se.useForm(), [a, l] = W(!1), [g, m] = W(""), { setChats: p } = De(), { objInitPayload: h, isUserInputHide: y } = ue(), { activeTab: j } = Ue(), v = z(() => {
2026
2026
  var E;
2027
2027
  const x = we(e, "feedback") ? (e == null ? void 0 : e.feedback) === "like" || (e == null ? void 0 : e.feedback) === "" : !0;
2028
2028
  return typeof (e == null ? void 0 : e.text_thumbsup_link) == "string" && ((E = e == null ? void 0 : e.text_thumbsup_link) == null ? void 0 : E.trim()) !== "" && x;
2029
- }, [e]), S = V(() => {
2029
+ }, [e]), S = z(() => {
2030
2030
  var E;
2031
2031
  const x = we(e, "feedback") ? (e == null ? void 0 : e.feedback) === "dislike" || (e == null ? void 0 : e.feedback) === "" : !0;
2032
2032
  return typeof (e == null ? void 0 : e.text_thumbsdown_link) == "string" && ((E = e == null ? void 0 : e.text_thumbsdown_link) == null ? void 0 : E.trim()) !== "" && x;
2033
- }, [e]), T = V(() => {
2033
+ }, [e]), T = z(() => {
2034
2034
  if (h != null && h.uriBackend)
2035
2035
  try {
2036
2036
  return new URL(h.uriBackend).origin;
@@ -2047,7 +2047,7 @@ const $e = (e = ".w-wrapper-body") => {
2047
2047
  uriBackend: C = "",
2048
2048
  uriBackendEnt: A = "",
2049
2049
  lang: N = ""
2050
- } = h || {}, D = g === "another" ? i == null ? void 0 : i.getFieldValue("additional_feedback") : g;
2050
+ } = h || {}, O = g === "another" ? i == null ? void 0 : i.getFieldValue("additional_feedback") : g;
2051
2051
  (_ = ot({
2052
2052
  method: "POST",
2053
2053
  url: E,
@@ -2055,7 +2055,7 @@ const $e = (e = ".w-wrapper-body") => {
2055
2055
  message_id: e == null ? void 0 : e.id,
2056
2056
  response_type: x === "like" ? "thumbs_up" : "thumbs_down",
2057
2057
  ...x === "dislike" && {
2058
- additional_feedback: D
2058
+ additional_feedback: O
2059
2059
  }
2060
2060
  },
2061
2061
  headers: {
@@ -2069,14 +2069,14 @@ const $e = (e = ".w-wrapper-body") => {
2069
2069
  "Acc-Name": `${b.toUpperCase()}`,
2070
2070
  Language: `${N}`
2071
2071
  }
2072
- })) == null || _.then((O) => {
2073
- var H, q, K;
2074
- (O == null ? void 0 : O.status) === 200 && (a && l(!1), (H = _e) == null || H.destroy(), (q = _e) == null || q.config({
2072
+ })) == null || _.then((R) => {
2073
+ var H, G, q;
2074
+ (R == null ? void 0 : R.status) === 200 && (a && l(!1), (H = _e) == null || H.destroy(), (G = _e) == null || G.config({
2075
2075
  getContainer: () => document.querySelector(".w-widget-content-container"),
2076
2076
  top: 28,
2077
2077
  placement: "top",
2078
2078
  duration: 3
2079
- }), (K = _e) == null || K.success({
2079
+ }), (q = _e) == null || q.success({
2080
2080
  message: c,
2081
2081
  className: "w-notification-content"
2082
2082
  }), p((F) => {
@@ -2162,7 +2162,7 @@ const $e = (e = ".w-wrapper-body") => {
2162
2162
  }
2163
2163
  )
2164
2164
  ] });
2165
- }, os = G(rs), ss = ({
2165
+ }, os = K(rs), ss = ({
2166
2166
  showFeedback: e = !0,
2167
2167
  showRegenerate: n = !0,
2168
2168
  position: r = "left",
@@ -2176,7 +2176,7 @@ const $e = (e = ".w-wrapper-body") => {
2176
2176
  setChats: g,
2177
2177
  loadingRegenerate: m,
2178
2178
  currRegenerateId: p
2179
- } = De(), h = V(() => o == null ? void 0 : o.sender, [o]), y = V(() => a == null ? void 0 : a.filter((w) => (w == null ? void 0 : w.sender) === "client"), [a]), j = V(() => n && h === "response" && (y == null ? void 0 : y.length) > 0 && (o == null ? void 0 : o.indexChat) === (a == null ? void 0 : a.length) - 1 && (o == null ? void 0 : o.text_FeedbackIcons) === "hidup", [h, y, a, o, n]), v = V(() => {
2179
+ } = De(), h = z(() => o == null ? void 0 : o.sender, [o]), y = z(() => a == null ? void 0 : a.filter((w) => (w == null ? void 0 : w.sender) === "client"), [a]), j = z(() => n && h === "response" && (y == null ? void 0 : y.length) > 0 && (o == null ? void 0 : o.indexChat) === (a == null ? void 0 : a.length) - 1 && (o == null ? void 0 : o.text_FeedbackIcons) === "hidup", [h, y, a, o, n]), v = z(() => {
2180
2180
  switch (r) {
2181
2181
  case "left":
2182
2182
  return "flex-start";
@@ -2185,7 +2185,7 @@ const $e = (e = ".w-wrapper-body") => {
2185
2185
  case "right":
2186
2186
  return "flex-end";
2187
2187
  }
2188
- }, [r]), S = V(() => e && (o == null ? void 0 : o.text_FeedbackIcons) === "hidup", [o, e]), T = () => {
2188
+ }, [r]), S = z(() => e && (o == null ? void 0 : o.text_FeedbackIcons) === "hidup", [o, e]), T = () => {
2189
2189
  if (!s) return;
2190
2190
  i(!1);
2191
2191
  const w = y == null ? void 0 : y[(y == null ? void 0 : y.length) - 1], x = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
@@ -2226,7 +2226,7 @@ const $e = (e = ".w-wrapper-body") => {
2226
2226
  ]
2227
2227
  }
2228
2228
  ) });
2229
- }, Vt = G(ss), is = ({ nameFallback: e = "", ...n }) => /* @__PURE__ */ t.jsx(
2229
+ }, Vt = K(ss), is = ({ nameFallback: e = "", ...n }) => /* @__PURE__ */ t.jsx(
2230
2230
  Wr,
2231
2231
  {
2232
2232
  ...typeof (n == null ? void 0 : n.onError) != "function" && {
@@ -2236,7 +2236,7 @@ const $e = (e = ".w-wrapper-body") => {
2236
2236
  loading: "lazy",
2237
2237
  ...n
2238
2238
  }
2239
- ), Qt = G(is), as = ({ nameFallback: e = "", ...n }) => {
2239
+ ), Qt = K(is), as = ({ nameFallback: e = "", ...n }) => {
2240
2240
  const r = re(0);
2241
2241
  return /* @__PURE__ */ t.jsx(
2242
2242
  Bn,
@@ -2256,25 +2256,25 @@ const $e = (e = ".w-wrapper-body") => {
2256
2256
  )
2257
2257
  }
2258
2258
  );
2259
- }, Ye = G(as);
2259
+ }, Ye = K(as);
2260
2260
  Ye.Group = Bn.Group;
2261
2261
  const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", children: [
2262
2262
  /* @__PURE__ */ t.jsx("div", {}),
2263
2263
  /* @__PURE__ */ t.jsx("div", {}),
2264
2264
  /* @__PURE__ */ t.jsx("div", {}),
2265
2265
  /* @__PURE__ */ t.jsx("div", {})
2266
- ] }), or = G(cs), ls = () => {
2266
+ ] }), or = K(cs), ls = () => {
2267
2267
  const { widgetProps: e } = ue();
2268
2268
  return /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2269
2269
  /* @__PURE__ */ t.jsx(Ye, { src: St, nameFallback: e == null ? void 0 : e.title }),
2270
2270
  /* @__PURE__ */ t.jsx(or, {})
2271
2271
  ] });
2272
- }, en = G(ls), us = ({ src: e, name: n }) => /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2272
+ }, en = K(ls), us = ({ src: e, name: n }) => /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2273
2273
  /* @__PURE__ */ t.jsx(Ye, { src: e, preview: !1, nameFallback: n }),
2274
2274
  /* @__PURE__ */ t.jsx(ie.Text, { children: n })
2275
- ] }), pt = G(us), ds = ({ ...e }) => {
2275
+ ] }), pt = K(us), ds = ({ ...e }) => {
2276
2276
  var m, p;
2277
- const [n, r] = W(1), { loadingRegenerate: o, currRegenerateId: c } = De(), { isExpand: s, widgetProps: i } = ue(), a = V(() => e == null ? void 0 : e.sender, [e]), l = V(() => e == null ? void 0 : e.chats, [e == null ? void 0 : e.chats]), g = V(() => {
2277
+ const [n, r] = W(1), { loadingRegenerate: o, currRegenerateId: c } = De(), { isExpand: s, widgetProps: i } = ue(), a = z(() => e == null ? void 0 : e.sender, [e]), l = z(() => e == null ? void 0 : e.chats, [e == null ? void 0 : e.chats]), g = z(() => {
2278
2278
  const h = l == null ? void 0 : l[(l == null ? void 0 : l.length) - 1];
2279
2279
  return (h == null ? void 0 : h.generated_id) === c.current;
2280
2280
  }, [l, e, c.current]);
@@ -2369,7 +2369,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2369
2369
  ] })
2370
2370
  ] })
2371
2371
  ] });
2372
- }, fs = G(ds), gs = ({ date: e, format: n, sender: r, ...o }) => {
2372
+ }, fs = K(ds), gs = ({ date: e, format: n, sender: r, ...o }) => {
2373
2373
  var c, s;
2374
2374
  return /* @__PURE__ */ t.jsx(
2375
2375
  ie.Text,
@@ -2389,12 +2389,12 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2389
2389
  children: n ? (s = je(e)) == null ? void 0 : s.format(n) : e
2390
2390
  }
2391
2391
  );
2392
- }, ht = G(gs), ps = ({ showResponseInfo: e = !0, ...n }) => {
2392
+ }, ht = K(gs), ps = ({ showResponseInfo: e = !0, ...n }) => {
2393
2393
  var m;
2394
- const { loadingRegenerate: r, chats: o, reasonMap: c } = De(), { widgetProps: s } = ue(), i = V(
2394
+ const { loadingRegenerate: r, chats: o, reasonMap: c } = De(), { widgetProps: s } = ue(), i = z(
2395
2395
  () => (o == null ? void 0 : o.length) - 1 === (n == null ? void 0 : n.indexChat),
2396
2396
  [o]
2397
- ), a = V(() => n == null ? void 0 : n.sender, [n]), l = V(() => ((n == null ? void 0 : n.id) || "").split("|")[0], [n]), g = V(() => c == null ? void 0 : c[l], [c, l, n]);
2397
+ ), a = z(() => n == null ? void 0 : n.sender, [n]), l = z(() => ((n == null ? void 0 : n.id) || "").split("|")[0], [n]), g = z(() => c == null ? void 0 : c[l], [c, l, n]);
2398
2398
  return ((m = n == null ? void 0 : n.chats) == null ? void 0 : m.length) > 0 ? /* @__PURE__ */ t.jsx(fs, { ...n }) : r && i ? /* @__PURE__ */ t.jsx(en, {}) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2399
2399
  a === "response" && e && /* @__PURE__ */ t.jsx(pt, { name: s == null ? void 0 : s.title, src: St }),
2400
2400
  /* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${a}`}`, children: [
@@ -2411,7 +2411,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2411
2411
  ] }),
2412
2412
  /* @__PURE__ */ t.jsx(Vt, { ...n })
2413
2413
  ] });
2414
- }, dt = G(ps), hs = () => {
2414
+ }, dt = K(ps), hs = () => {
2415
2415
  const e = I(
2416
2416
  "PleaseUploadFile",
2417
2417
  "Please upload specify file that needed to complete your request"
@@ -2475,7 +2475,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2475
2475
  ]
2476
2476
  }
2477
2477
  );
2478
- }, xs = G(hs), ms = () => {
2478
+ }, xs = K(hs), ms = () => {
2479
2479
  const [e, n] = W(!1), [r, o] = W(!1), [c, s] = W(!1), [i, a] = W(3), [l, g] = W(!1), [m, p] = W(""), { widgetProps: h } = ue(), { onSendMsg: y, chats: j } = De(), { onSubmitPYPwd: v = () => {
2480
2480
  }, onCheckPYAccess: S = () => {
2481
2481
  } } = (h == null ? void 0 : h.onPayslipFn) || {}, T = I(
@@ -2496,37 +2496,37 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2496
2496
  ), N = I(
2497
2497
  "SessionExpired",
2498
2498
  "Session expired. Please log in again to continue"
2499
- ), [D] = Se.useForm(), _ = () => {
2500
- var q, K, F;
2501
- s(!0), g(!0), (F = (K = (q = S()) == null ? void 0 : q.then((se) => {
2499
+ ), [O] = Se.useForm(), _ = () => {
2500
+ var G, q, F;
2501
+ s(!0), g(!0), (F = (q = (G = S()) == null ? void 0 : G.then((se) => {
2502
2502
  var k, M;
2503
2503
  const te = (M = (k = se == null ? void 0 : se.data) == null ? void 0 : k.DATA) == null ? void 0 : M.RESULT;
2504
2504
  te && y({ msg: "Valid" }), n(te), p("");
2505
- })) == null ? void 0 : K.catch((se) => {
2505
+ })) == null ? void 0 : q.catch((se) => {
2506
2506
  p(se == null ? void 0 : se.toString());
2507
2507
  })) == null || F.finally(() => {
2508
2508
  o(!1), g(!1);
2509
2509
  });
2510
- }, O = () => {
2510
+ }, R = () => {
2511
2511
  y({ msg: "cancel" }), s(!1);
2512
2512
  }, H = () => {
2513
- var K;
2514
- const q = D == null ? void 0 : D.getFieldValue("pwd");
2515
- (K = D == null ? void 0 : D.validateFields()) == null || K.then(() => {
2513
+ var q;
2514
+ const G = O == null ? void 0 : O.getFieldValue("pwd");
2515
+ (q = O == null ? void 0 : O.validateFields()) == null || q.then(() => {
2516
2516
  var F, se;
2517
- o(!0), (se = (F = v(q)) == null ? void 0 : F.then(({ data: te }) => {
2517
+ o(!0), (se = (F = v(G)) == null ? void 0 : F.then(({ data: te }) => {
2518
2518
  var k;
2519
2519
  (k = te == null ? void 0 : te.DATA) != null && k.ISVALID ? _() : (p(A), a(i - 1), o(!1));
2520
2520
  })) == null || se.catch((te) => {
2521
- var M, P, B, z, Q;
2521
+ var M, P, B, Y, Z;
2522
2522
  const k = te == null ? void 0 : te.response;
2523
2523
  if ((k == null ? void 0 : k.status) === 401) {
2524
2524
  const X = (P = (M = k == null ? void 0 : k.data) == null ? void 0 : M.ERRORS) == null ? void 0 : P.includes(
2525
2525
  "ACCESS_TOKEN_EXPIRED"
2526
- ), Z = (Q = (z = (B = k == null ? void 0 : k.data) == null ? void 0 : B.MESSAGE) == null ? void 0 : z.toLowerCase()) == null ? void 0 : Q.includes(
2526
+ ), J = (Z = (Y = (B = k == null ? void 0 : k.data) == null ? void 0 : B.MESSAGE) == null ? void 0 : Y.toLowerCase()) == null ? void 0 : Z.includes(
2527
2527
  "invalid password"
2528
2528
  );
2529
- X && p(N), Z && (p(A), a(i - 1), o(!1));
2529
+ X && p(N), J && (p(A), a(i - 1), o(!1));
2530
2530
  } else
2531
2531
  p(te == null ? void 0 : te.toString());
2532
2532
  o(!1);
@@ -2534,9 +2534,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2534
2534
  });
2535
2535
  };
2536
2536
  return pe(() => {
2537
- var K;
2538
- const q = j == null ? void 0 : j[(j == null ? void 0 : j.length) - 1];
2539
- ((K = q == null ? void 0 : q.attachment) == null ? void 0 : K.type) === "show_password_wp" && _();
2537
+ var q;
2538
+ const G = j == null ? void 0 : j[(j == null ? void 0 : j.length) - 1];
2539
+ ((q = G == null ? void 0 : G.attachment) == null ? void 0 : q.type) === "show_password_wp" && _();
2540
2540
  }, []), c ? l ? /* @__PURE__ */ t.jsx(
2541
2541
  dt,
2542
2542
  {
@@ -2559,7 +2559,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2559
2559
  children: /* @__PURE__ */ t.jsxs(
2560
2560
  Se,
2561
2561
  {
2562
- form: D,
2562
+ form: O,
2563
2563
  layout: "vertical",
2564
2564
  style: { display: "flex", flexDirection: "column", gap: 8 },
2565
2565
  children: [
@@ -2579,7 +2579,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2579
2579
  }
2580
2580
  ),
2581
2581
  /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8 }, children: [
2582
- /* @__PURE__ */ t.jsx(le, { disabled: r, onClick: O, children: w }),
2582
+ /* @__PURE__ */ t.jsx(le, { disabled: r, onClick: R, children: w }),
2583
2583
  /* @__PURE__ */ t.jsx(
2584
2584
  le,
2585
2585
  {
@@ -2597,9 +2597,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2597
2597
  )
2598
2598
  }
2599
2599
  ) : null;
2600
- }, ys = G(ms), vs = ({ ...e }) => {
2600
+ }, ys = K(ms), vs = ({ ...e }) => {
2601
2601
  var a;
2602
- const { objInitPayload: n } = ue(), [r, o] = W(!1), c = I("Error", "Error"), s = V(() => Kn(n == null ? void 0 : n.access_token), [n]), i = () => {
2602
+ const { objInitPayload: n } = ue(), [r, o] = W(!1), c = I("Error", "Error"), s = z(() => Kn(n == null ? void 0 : n.access_token), [n]), i = () => {
2603
2603
  var g, m, p, h;
2604
2604
  o(!0);
2605
2605
  const l = e == null ? void 0 : e.attachment;
@@ -2660,8 +2660,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2660
2660
  ] })
2661
2661
  }
2662
2662
  );
2663
- }, bs = G(vs), Cs = ({ ...e }) => {
2664
- const n = re(), r = I("DownloadChart", "Download Chart"), o = V(() => e == null ? void 0 : e.attachment, [e == null ? void 0 : e.attachment]), c = V(() => {
2663
+ }, bs = K(vs), Cs = ({ ...e }) => {
2664
+ const n = re(), r = I("DownloadChart", "Download Chart"), o = z(() => e == null ? void 0 : e.attachment, [e == null ? void 0 : e.attachment]), c = z(() => {
2665
2665
  var i;
2666
2666
  return (i = o == null ? void 0 : o.data) == null ? void 0 : i.map((a, l) => {
2667
2667
  var g, m;
@@ -2710,7 +2710,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2710
2710
  }
2711
2711
  ) })
2712
2712
  ] });
2713
- }, Ts = G(Cs), Es = ({ ...e }) => {
2713
+ }, Ts = K(Cs), Es = ({ ...e }) => {
2714
2714
  var n, r, o, c, s;
2715
2715
  switch (!0) {
2716
2716
  case ((n = et(e)) == null ? void 0 : n.text):
@@ -2726,7 +2726,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2726
2726
  default:
2727
2727
  return null;
2728
2728
  }
2729
- }, Ss = G(Es), ws = () => {
2729
+ }, Ss = K(Es), ws = () => {
2730
2730
  const { isOpenWidget: e, widgetProps: n } = ue(), { chats: r, isWaitResponse: o } = De(), { activeTab: c } = Ue();
2731
2731
  return pe(() => {
2732
2732
  $e();
@@ -2747,8 +2747,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2747
2747
  }) }),
2748
2748
  o && /* @__PURE__ */ t.jsx(en, {})
2749
2749
  ] }) : null;
2750
- }, _s = G(ws), sr = () => {
2751
- const { objInitPayload: e, setObjInitPayload: n, parsedJWT: r } = ue(), o = V(() => {
2750
+ }, _s = K(ws), sr = () => {
2751
+ const { objInitPayload: e, setObjInitPayload: n, parsedJWT: r } = ue(), o = z(() => {
2752
2752
  var s;
2753
2753
  return {
2754
2754
  Authorization: `Bearer ${e == null ? void 0 : e.access_token}`,
@@ -2847,7 +2847,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2847
2847
  e != null && e.current && ((a = e == null ? void 0 : e.current) == null || a.abort(), e.current = new AbortController());
2848
2848
  }, pe(() => () => s.abort(), []), s;
2849
2849
  }, js = () => {
2850
- var D;
2850
+ var O;
2851
2851
  const e = I(
2852
2852
  "ContinueWithoutUpload",
2853
2853
  "Continue without Upload"
@@ -2865,41 +2865,41 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2865
2865
  setShowUpload: p,
2866
2866
  isLoadingUpload: h,
2867
2867
  setLoadingUpload: y
2868
- } = De(), { isUserInputHide: j } = ue(), { isActiveTabVA: v } = Ue(), S = V(() => {
2869
- var O;
2868
+ } = De(), { isUserInputHide: j } = ue(), { isActiveTabVA: v } = Ue(), S = z(() => {
2869
+ var R;
2870
2870
  const _ = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
2871
- return (_ == null ? void 0 : _.sender) === "response" && ((O = _ == null ? void 0 : _.attachment) == null ? void 0 : O.type) === "fileuploader";
2872
- }, [a]), T = re(), [w, x] = W(!1), [E, f] = W(!1), b = V(() => o || !E, [E, o]), u = xt(), C = () => {
2873
- var se, te;
2871
+ return (_ == null ? void 0 : _.sender) === "response" && ((R = _ == null ? void 0 : _.attachment) == null ? void 0 : R.type) === "fileuploader";
2872
+ }, [a]), T = re(), [w, x] = W(!1), [E, f] = W(!1), b = z(() => o || !E, [E, o]), u = xt(), C = () => {
2873
+ var k, M, P, B;
2874
2874
  y(!0);
2875
- const _ = new FormData(), O = `WP-${+/* @__PURE__ */ new Date()}`, H = /* @__PURE__ */ new Date(), q = H.getFullYear(), K = String(H.getMonth() + 1).padStart(2, "0"), F = `${q}/${K}`;
2876
- _.append("file", s), _ == null || _.append("rename", O), _ == null || _.append("action", "UPLOAD"), _ == null || _.append("filefield", O), _ == null || _.append("method", "eligible"), _ == null || _.append("hash", !1), _ == null || _.append("subFolder", F), _ == null || _.append("code", "companylogo"), (te = (se = u({
2875
+ const _ = new FormData(), R = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1], G = `${((k = R == null ? void 0 : R.attachment) == null ? void 0 : k.prefix) || "WP"}-${+/* @__PURE__ */ new Date()}`, q = /* @__PURE__ */ new Date(), F = q.getFullYear(), se = String(q.getMonth() + 1).padStart(2, "0"), te = `${F}/${se}`;
2876
+ _.append("file", s), _ == null || _.append("rename", G), _ == null || _.append("action", "UPLOAD"), _ == null || _.append("filefield", G), _ == null || _.append("method", "eligible"), _ == null || _.append("hash", !1), _ == null || _.append("subFolder", te), _ == null || _.append("code", (M = R == null ? void 0 : R.attachment) == null ? void 0 : M.code), (B = (P = u({
2877
2877
  apiType: "lc",
2878
2878
  params: {
2879
2879
  ofid: "SFUtil.UploadFile"
2880
2880
  },
2881
2881
  data: _
2882
- })) == null ? void 0 : se.then((k) => {
2883
- var B, z, Q;
2884
- const M = (B = k == null ? void 0 : k.data) == null ? void 0 : B.DATA;
2885
- console.log("r", k, M);
2886
- const P = (Q = (z = M == null ? void 0 : M.FILENAMES) == null ? void 0 : z[0]) == null ? void 0 : Q.SERVERFILE;
2887
- n({ msg: `sf-filename ${P}` }), p(!1);
2888
- })) == null || te.finally(() => {
2882
+ })) == null ? void 0 : P.then((Y) => {
2883
+ var J, ee, $;
2884
+ const Z = (J = Y == null ? void 0 : Y.data) == null ? void 0 : J.DATA;
2885
+ console.log("r", Y, Z);
2886
+ const X = ($ = (ee = Z == null ? void 0 : Z.FILENAMES) == null ? void 0 : ee[0]) == null ? void 0 : $.SERVERFILE;
2887
+ n({ msg: `sf-filename ${X}` }), p(!1);
2888
+ })) == null || B.finally(() => {
2889
2889
  y(!1);
2890
2890
  });
2891
2891
  }, A = () => {
2892
- var H, q, K, F;
2893
- const _ = (K = (q = (H = T == null ? void 0 : T.current) == null ? void 0 : H.resizableTextArea) == null ? void 0 : q.textArea) == null ? void 0 : K.value;
2892
+ var H, G, q, F;
2893
+ const _ = (q = (G = (H = T == null ? void 0 : T.current) == null ? void 0 : H.resizableTextArea) == null ? void 0 : G.textArea) == null ? void 0 : q.value;
2894
2894
  if (!(_ != null && _.trim()) || o) return;
2895
2895
  f(!1), n({ msg: _ }), x(!w);
2896
- const O = {
2896
+ const R = {
2897
2897
  text: _,
2898
2898
  sender: "client",
2899
2899
  type: "text",
2900
2900
  timestamp: (F = je()) == null ? void 0 : F.format("hh:mm A")
2901
2901
  };
2902
- r((se) => [...se, O]), $e();
2902
+ r((se) => [...se, R]), $e();
2903
2903
  }, N = () => {
2904
2904
  n({ msg: "SKIP_WAITING_RESPONSE" });
2905
2905
  };
@@ -2910,7 +2910,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2910
2910
  S && p(!0);
2911
2911
  }, [S]), j ? null : m ? /* @__PURE__ */ t.jsxs("div", { className: "w-input-container", style: { alignItems: "center" }, children: [
2912
2912
  /* @__PURE__ */ t.jsx(ie.Text, { children: s == null ? void 0 : s.name }),
2913
- ((D = Object == null ? void 0 : Object.keys(s || {})) == null ? void 0 : D.length) > 0 ? /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2913
+ ((O = Object == null ? void 0 : Object.keys(s || {})) == null ? void 0 : O.length) > 0 ? /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2914
2914
  /* @__PURE__ */ t.jsx(
2915
2915
  le,
2916
2916
  {
@@ -2956,10 +2956,10 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2956
2956
  ((_ == null ? void 0 : _.code) === "Enter" || (_ == null ? void 0 : _.key) === "Enter") && !(_ != null && _.shiftKey) && A();
2957
2957
  },
2958
2958
  onChange: ({ target: { value: _ } }) => {
2959
- const O = /\S/;
2959
+ const R = /\S/;
2960
2960
  _t({
2961
2961
  input_va_value: _
2962
- }), _ && (O != null && O.test(_)) ? f(!0) : _ != null && _.trim() || f(!1);
2962
+ }), _ && (R != null && R.test(_)) ? f(!0) : _ != null && _.trim() || f(!1);
2963
2963
  }
2964
2964
  },
2965
2965
  w
@@ -2985,7 +2985,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2985
2985
  }
2986
2986
  )
2987
2987
  ] });
2988
- }, ks = G(js), As = ({ taskStatus: e }) => {
2988
+ }, ks = K(js), As = ({ taskStatus: e }) => {
2989
2989
  const n = I("InProgress", "In Progress"), r = I("New", "New"), o = I("Closed", "Closed"), c = I("Done", "Done"), s = I("HDCancelled", "Cancelled"), i = {
2990
2990
  "In Progress": n,
2991
2991
  Open: r,
@@ -3002,7 +3002,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3002
3002
  Fixed: "#bbfab7",
3003
3003
  Done: "#bbfab7",
3004
3004
  Cancelled: "#FFF2D6"
3005
- }, l = V(() => a[e] || a.Closed, [e]), g = V(() => i[e] || e, [e]);
3005
+ }, l = z(() => a[e] || a.Closed, [e]), g = z(() => i[e] || e, [e]);
3006
3006
  return /* @__PURE__ */ t.jsx(Yr, { color: l, children: /* @__PURE__ */ t.jsx(
3007
3007
  ie.Text,
3008
3008
  {
@@ -3012,7 +3012,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3012
3012
  children: g
3013
3013
  }
3014
3014
  ) }, e);
3015
- }, ir = G(As), Rs = ({ onClick: e, ...n }) => /* @__PURE__ */ t.jsxs(
3015
+ }, ir = K(As), Rs = ({ onClick: e, ...n }) => /* @__PURE__ */ t.jsxs(
3016
3016
  "div",
3017
3017
  {
3018
3018
  className: "w-ticket-card-container",
@@ -3054,7 +3054,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3054
3054
  ] })
3055
3055
  ]
3056
3056
  }
3057
- ), Ds = G(Rs), ar = Ve({}), He = () => ze(ar), Os = ({ children: e }) => {
3057
+ ), Ds = K(Rs), ar = Ve({}), He = () => ze(ar), Os = ({ children: e }) => {
3058
3058
  const n = xt(), [r, o] = W([]), [c, s] = W(""), [i, a] = W(!1), [l, g] = W(!0), [m, p] = W(0), h = (y) => {
3059
3059
  var j, v, S, T;
3060
3060
  g(!0), (T = (S = n({
@@ -3132,7 +3132,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3132
3132
  }
3133
3133
  ) }) })
3134
3134
  ] }) });
3135
- }, Ms = G(Ls), cr = Ve({}), We = () => ze(cr), Ns = ({ children: e }) => {
3135
+ }, Ms = K(Ls), cr = Ve({}), We = () => ze(cr), Ns = ({ children: e }) => {
3136
3136
  const n = re(null), r = re(0), o = re(!1), c = re(null), [s, i] = W([]), [a, l] = W(0), [g, m] = W(!1), { objInitPayload: p, parsedJWT: h, isFirstRenderHelpdesk: y, setShowReadyWSHD: j } = ue(), v = sr(), S = (E) => {
3137
3137
  const f = new WebSocket(E);
3138
3138
  f.onopen = () => {
@@ -3146,7 +3146,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3146
3146
  ), o.current = !1, j(!1), !(b != null && b.wasClean) && (r == null ? void 0 : r.current) < ut && (r.current += 1, l((u) => u + 1), clearTimeout(c.current), c.current = setTimeout(T, 2e3));
3147
3147
  }, f.onmessage = w(f), n.current = f;
3148
3148
  }, T = async () => {
3149
- var _, O, H;
3149
+ var _, R, H;
3150
3150
  if (((_ = n.current) == null ? void 0 : _.readyState) === (WebSocket == null ? void 0 : WebSocket.CONNECTING)) return;
3151
3151
  const {
3152
3152
  access_token: E,
@@ -3161,7 +3161,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3161
3161
  );
3162
3162
  return;
3163
3163
  }
3164
- const A = `Bearer ${E}`, N = (O = `${C}/ws`) == null ? void 0 : O.replace("https://", "wss://"), D = {
3164
+ const A = `Bearer ${E}`, N = (R = `${C}/ws`) == null ? void 0 : R.replace("https://", "wss://"), O = {
3165
3165
  COMPANY_ID: f.toString(),
3166
3166
  COMPANY_CODE: b.toLowerCase(),
3167
3167
  LANGUAGE: u,
@@ -3169,21 +3169,21 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3169
3169
  TOKEN: A
3170
3170
  };
3171
3171
  try {
3172
- const q = await So(
3173
- D,
3172
+ const G = await So(
3173
+ O,
3174
3174
  mo
3175
3175
  );
3176
- if (!q || o.current || (r == null ? void 0 : r.current) >= ut) {
3176
+ if (!G || o.current || (r == null ? void 0 : r.current) >= ut) {
3177
3177
  console.warn(
3178
3178
  `${Qe} - Skipping WebSocket connection attempt.`
3179
3179
  );
3180
3180
  return;
3181
3181
  }
3182
- n.current && n.current.close(), S(`${N}?t=${q}`);
3183
- } catch (q) {
3182
+ n.current && n.current.close(), S(`${N}?t=${G}`);
3183
+ } catch (G) {
3184
3184
  console.error(
3185
3185
  `${Qe} - Failed to encrypt token:`,
3186
- q
3186
+ G
3187
3187
  );
3188
3188
  }
3189
3189
  }, w = (E) => (f) => {
@@ -3281,9 +3281,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3281
3281
  }
3282
3282
  )
3283
3283
  ] });
3284
- }, Is = G(Fs), $s = ({ children: e, open: n, onClose: r, footer: o, styleContainer: c }) => {
3284
+ }, Is = K(Fs), $s = ({ children: e, open: n, onClose: r, footer: o, styleContainer: c }) => {
3285
3285
  var h;
3286
- const [s, i] = W(!1), a = re(), l = re(null), g = re(), m = V(() => n ? "w-fade-in-animate" : "w-fade-out-animate", [n]), p = (y) => {
3286
+ const [s, i] = W(!1), a = re(), l = re(null), g = re(), m = z(() => n ? "w-fade-in-animate" : "w-fade-out-animate", [n]), p = (y) => {
3287
3287
  y.code === "Escape" && !y.shiftKey && !y.altKey && !y.ctrlKey && y.key === "Escape" && (y.stopPropagation(), typeof r == "function" && r());
3288
3288
  };
3289
3289
  return pe(() => {
@@ -3314,8 +3314,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3314
3314
  ]
3315
3315
  }
3316
3316
  );
3317
- }, lr = G($s), ur = Ve({}), st = () => ze(ur), Us = ({ children: e }) => {
3318
- const [n, r] = W([]), [o, c] = W({}), [s, i] = W(!0), [a, l] = W({}), g = re(!1), m = xt(), { ticketId: p } = He(), { ws: h, setGetResponse: y } = We(), { parsedJWT: j } = ue(), v = V(() => {
3317
+ }, lr = K($s), ur = Ve({}), st = () => ze(ur), Us = ({ children: e }) => {
3318
+ const [n, r] = W([]), [o, c] = W({}), [s, i] = W(!0), [a, l] = W({}), g = re(!1), m = xt(), { ticketId: p } = He(), { ws: h, setGetResponse: y } = We(), { parsedJWT: j } = ue(), v = z(() => {
3319
3319
  var C;
3320
3320
  const E = (o == null ? void 0 : o.CREATED_BY) ?? {}, f = (o == null ? void 0 : o.ASSIGNEE) ?? {}, b = (o == null ? void 0 : o.OTHER_ASSIGNEE) ?? [], u = (C = [E, f, ...b].map((A) => ({
3321
3321
  ...A
@@ -3335,15 +3335,15 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3335
3335
  TASK_ID: p
3336
3336
  }
3337
3337
  })) == null ? void 0 : E.then((b) => {
3338
- var u, C, A, N, D, _;
3338
+ var u, C, A, N, O, _;
3339
3339
  if (((A = (C = (u = b == null ? void 0 : b.data) == null ? void 0 : u.DATA) == null ? void 0 : C.LIST) == null ? void 0 : A.length) > 0) {
3340
- const O = (_ = (D = (N = b == null ? void 0 : b.data) == null ? void 0 : N.DATA) == null ? void 0 : D.LIST) == null ? void 0 : _.map((H) => ({
3340
+ const R = (_ = (O = (N = b == null ? void 0 : b.data) == null ? void 0 : N.DATA) == null ? void 0 : O.LIST) == null ? void 0 : _.map((H) => ({
3341
3341
  ...H,
3342
3342
  ACTOR: {
3343
3343
  ...H == null ? void 0 : H.ACTOR
3344
3344
  }
3345
3345
  }));
3346
- r(Et(O));
3346
+ r(Et(R));
3347
3347
  } else
3348
3348
  r({});
3349
3349
  })) == null || f.finally(() => {
@@ -3372,8 +3372,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3372
3372
  ...C,
3373
3373
  [f]: !1
3374
3374
  })), g.current || r((C) => {
3375
- const A = Jt(C), N = f == b ? "to" : "from", D = [...A, { ...E, CHAT_ALIGN: N }];
3376
- return Et(D);
3375
+ const A = Jt(C), N = f == b ? "to" : "from", O = [...A, { ...E, CHAT_ALIGN: N }];
3376
+ return Et(O);
3377
3377
  }), g.current = !1;
3378
3378
  }, x = (E) => {
3379
3379
  if ((E == null ? void 0 : E.data) !== "PING") {
@@ -3400,10 +3400,10 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3400
3400
  }
3401
3401
  );
3402
3402
  }, Hs = ({ onClose: e }) => {
3403
- const { xs: n } = Me.useBreakpoint(), { employees: r, detailTicket: o, loadingChats: c } = st(), { userOnline: s } = We(), i = V(() => {
3403
+ const { xs: n } = Me.useBreakpoint(), { employees: r, detailTicket: o, loadingChats: c } = st(), { userOnline: s } = We(), i = z(() => {
3404
3404
  var l;
3405
3405
  return (l = r == null ? void 0 : r.map((g) => g == null ? void 0 : g.FULL_NAME)) == null ? void 0 : l.join(", ");
3406
- }, [r]), a = V(() => n ? "click" : "hover", [n]);
3406
+ }, [r]), a = z(() => n ? "click" : "hover", [n]);
3407
3407
  return c ? /* @__PURE__ */ t.jsxs("div", { className: "w-ticket-detail-header-container", children: [
3408
3408
  /* @__PURE__ */ t.jsx(Re.Avatar, {}),
3409
3409
  /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
@@ -3480,8 +3480,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3480
3480
  ] }),
3481
3481
  /* @__PURE__ */ t.jsx(ir, { taskStatus: o == null ? void 0 : o.STATUS })
3482
3482
  ] });
3483
- }, Ws = G(Hs), Bs = ({ ...e }) => {
3484
- const n = V(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
3483
+ }, Ws = K(Hs), Bs = ({ ...e }) => {
3484
+ const n = z(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
3485
3485
  return /* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${n}`}`, children: [
3486
3486
  /* @__PURE__ */ t.jsx(
3487
3487
  "p",
@@ -3500,8 +3500,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3500
3500
  }
3501
3501
  )
3502
3502
  ] });
3503
- }, Ys = G(Bs), Vs = ({ ...e }) => {
3504
- const n = I("Download", "Download"), r = V(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), o = V(() => {
3503
+ }, Ys = K(Bs), Vs = ({ ...e }) => {
3504
+ const n = I("Download", "Download"), r = z(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), o = z(() => {
3505
3505
  var l;
3506
3506
  const a = e == null ? void 0 : e.ATTACHMENT;
3507
3507
  if (a)
@@ -3512,13 +3512,13 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3512
3512
  return a;
3513
3513
  }
3514
3514
  return "";
3515
- }, [e]), c = V(() => {
3515
+ }, [e]), c = z(() => {
3516
3516
  if (o != null && o.includes(".")) {
3517
3517
  const a = o == null ? void 0 : o.split(".");
3518
3518
  return `.${a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1]}`;
3519
3519
  }
3520
3520
  return "";
3521
- }, [e, o]), s = V(() => Mt == null ? void 0 : Mt.includes(c), [e, c]), i = () => {
3521
+ }, [e, o]), s = z(() => Mt == null ? void 0 : Mt.includes(c), [e, c]), i = () => {
3522
3522
  Pt({
3523
3523
  downloadURL: e == null ? void 0 : e.ATTACHMENT,
3524
3524
  fileName: o,
@@ -3568,8 +3568,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3568
3568
  ]
3569
3569
  }
3570
3570
  ) });
3571
- }, zs = G(Vs), Gs = ({ ...e }) => {
3572
- const n = V(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
3571
+ }, zs = K(Vs), Gs = ({ ...e }) => {
3572
+ const n = z(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
3573
3573
  return /* @__PURE__ */ t.jsxs("div", { className: "w-ticket-info-chat-container", children: [
3574
3574
  /* @__PURE__ */ t.jsx(
3575
3575
  ht,
@@ -3581,7 +3581,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3581
3581
  ),
3582
3582
  /* @__PURE__ */ t.jsx(ie.Text, { children: e == null ? void 0 : e.MESSAGE })
3583
3583
  ] });
3584
- }, qs = G(Gs), dr = () => {
3584
+ }, qs = K(Gs), dr = () => {
3585
3585
  const { widgetProps: e } = ue(), n = Je.enc.Hex.parse(
3586
3586
  Je.enc.Utf8.parse(e == null ? void 0 : e.keyEncrypt).toString()
3587
3587
  ), r = {
@@ -3616,7 +3616,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3616
3616
  ), o = I(
3617
3617
  "ThisFAQIsUnavailable",
3618
3618
  "This FAQ is unavailable"
3619
- ), { paramsEncrypt: c } = dr(), { widgetProps: s } = ue(), i = V(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), a = V(() => e == null ? void 0 : e.FAQ_ID, [e]);
3619
+ ), { paramsEncrypt: c } = dr(), { widgetProps: s } = ue(), i = z(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), a = z(() => e == null ? void 0 : e.FAQ_ID, [e]);
3620
3620
  return /* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${i}`}`, children: [
3621
3621
  /* @__PURE__ */ t.jsx(
3622
3622
  ie.Text,
@@ -3654,7 +3654,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3654
3654
  }
3655
3655
  )
3656
3656
  ] });
3657
- }, Ps = G(Ks), Xs = ({ ...e }) => {
3657
+ }, Ps = K(Ks), Xs = ({ ...e }) => {
3658
3658
  switch (e == null ? void 0 : e.CHAT_TYPE) {
3659
3659
  case "info":
3660
3660
  return /* @__PURE__ */ t.jsx(qs, { ...e });
@@ -3665,9 +3665,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3665
3665
  default:
3666
3666
  return null;
3667
3667
  }
3668
- }, Js = G(Xs), Zs = () => {
3668
+ }, Js = K(Xs), Zs = () => {
3669
3669
  var j;
3670
- const [e, n] = W([]), r = I("And", "and"), o = I("IsTyping", "Is Typing"), c = I("People", "People"), { employees: s, setTypingOtherEmp: i, objTypingOtherEmp: a } = st(), { ws: l, setGetResponse: g } = We(), { parsedJWT: m } = ue(), p = V(() => e == null ? void 0 : e.filter((v) => a == null ? void 0 : a[v == null ? void 0 : v.EMP_ID]), [a, e]), h = V(() => {
3670
+ const [e, n] = W([]), r = I("And", "and"), o = I("IsTyping", "Is Typing"), c = I("People", "People"), { employees: s, setTypingOtherEmp: i, objTypingOtherEmp: a } = st(), { ws: l, setGetResponse: g } = We(), { parsedJWT: m } = ue(), p = z(() => e == null ? void 0 : e.filter((v) => a == null ? void 0 : a[v == null ? void 0 : v.EMP_ID]), [a, e]), h = z(() => {
3671
3671
  const v = p == null ? void 0 : p.map((S) => S == null ? void 0 : S.FULL_NAME);
3672
3672
  if ((p == null ? void 0 : p.length) > 2) {
3673
3673
  const S = v == null ? void 0 : v.filter((w, x) => x <= 1), T = v == null ? void 0 : v.filter((w, x) => x > 1);
@@ -3727,7 +3727,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3727
3727
  ]
3728
3728
  }
3729
3729
  );
3730
- }, Qs = G(Zs), ei = () => {
3730
+ }, Qs = K(Zs), ei = () => {
3731
3731
  var s;
3732
3732
  const { chats: e } = st(), { widgetProps: n } = ue(), { activeTab: r } = Ue(), o = re(), { xs: c } = Me.useBreakpoint();
3733
3733
  return pe(() => {
@@ -3764,9 +3764,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3764
3764
  ]
3765
3765
  }
3766
3766
  );
3767
- }, ti = G(ei), ni = () => {
3767
+ }, ti = K(ei), ni = () => {
3768
3768
  var s, i;
3769
- const { chats: e, loadingChats: n } = st(), { widgetProps: r } = ue(), { xs: o } = Me.useBreakpoint(), c = V(() => {
3769
+ const { chats: e, loadingChats: n } = st(), { widgetProps: r } = ue(), { xs: o } = Me.useBreakpoint(), c = z(() => {
3770
3770
  var l;
3771
3771
  const a = [Ft];
3772
3772
  return o && (r != null && r.isSF ? a == null || a.push(
@@ -3829,7 +3829,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3829
3829
  children: /* @__PURE__ */ t.jsx(Vn, {})
3830
3830
  }
3831
3831
  ) : /* @__PURE__ */ t.jsx(ti, {});
3832
- }, ri = G(ni), oi = ({ ...e }) => {
3832
+ }, ri = K(ni), oi = ({ ...e }) => {
3833
3833
  const n = re(0);
3834
3834
  return /* @__PURE__ */ t.jsxs(
3835
3835
  "div",
@@ -3863,7 +3863,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3863
3863
  ]
3864
3864
  }
3865
3865
  );
3866
- }, si = G(oi), ii = ({ setLoadingUpload: e, isLoadingUpload: n }) => {
3866
+ }, si = K(oi), ii = ({ setLoadingUpload: e, isLoadingUpload: n }) => {
3867
3867
  var T, w;
3868
3868
  const r = xt(), [o, c] = W({}), s = re(null), i = I(
3869
3869
  "ImageMustSmallerThan",
@@ -3913,26 +3913,26 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3913
3913
  "Content-Type": "multipart/form-data"
3914
3914
  }
3915
3915
  })) == null ? void 0 : f.then((u) => {
3916
- var C, A, N, D, _;
3916
+ var C, A, N, O, _;
3917
3917
  if ((A = (C = u == null ? void 0 : u.data) == null ? void 0 : C.DATA) != null && A.LIST) {
3918
- const O = (D = (N = u == null ? void 0 : u.data) == null ? void 0 : N.DATA) == null ? void 0 : D.LIST, H = {
3919
- ATTACHMENT: O == null ? void 0 : O.VIEW_PATH,
3918
+ const R = (O = (N = u == null ? void 0 : u.data) == null ? void 0 : N.DATA) == null ? void 0 : O.LIST, H = {
3919
+ ATTACHMENT: R == null ? void 0 : R.VIEW_PATH,
3920
3920
  FAQ_ID: null,
3921
3921
  MESSAGE: "",
3922
3922
  CREATED_DATE: (_ = je()) == null ? void 0 : _.format(`${Kt} HH:mm:ss`),
3923
3923
  CHAT_ALIGN: "to",
3924
3924
  CHAT_TYPE: "chat"
3925
3925
  };
3926
- m((q) => {
3927
- const F = [...Jt(q), H];
3926
+ m((G) => {
3927
+ const F = [...Jt(G), H];
3928
3928
  return Et(F);
3929
3929
  }), p.current = !0, l({
3930
3930
  event: "SEND_MESSAGE",
3931
3931
  data: {
3932
- ATTACHMENT: O == null ? void 0 : O.TEMP_PATH,
3932
+ ATTACHMENT: R == null ? void 0 : R.TEMP_PATH,
3933
3933
  FAQ_ID: null,
3934
3934
  MESSAGE: "",
3935
- EMPLOYEES: g == null ? void 0 : g.map((q) => q == null ? void 0 : q.EMP_ID),
3935
+ EMPLOYEES: g == null ? void 0 : g.map((G) => G == null ? void 0 : G.EMP_ID),
3936
3936
  TASK_ID: h
3937
3937
  }
3938
3938
  }), clearTimeout(s.current), s.current = setTimeout(() => {
@@ -3968,7 +3968,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3968
3968
  )
3969
3969
  }
3970
3970
  );
3971
- }, ai = G(ii), ci = (e) => {
3971
+ }, ai = K(ii), ci = (e) => {
3972
3972
  var o;
3973
3973
  const n = re(null), r = re(null);
3974
3974
  return r != null && r.current && ((o = r.current) == null || o.update(e)), pe(() => {
@@ -3979,7 +3979,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3979
3979
  };
3980
3980
  }, []), ft.createElement("div", { ref: n });
3981
3981
  }, li = ({ refInput: e }) => {
3982
- const { xs: n } = Me.useBreakpoint(), r = V(() => n ? "click" : "hover", [n]), o = () => {
3982
+ const { xs: n } = Me.useBreakpoint(), r = z(() => n ? "click" : "hover", [n]), o = () => {
3983
3983
  var h;
3984
3984
  const s = (h = e == null ? void 0 : e.current) == null ? void 0 : h.textarea;
3985
3985
  if (!s)
@@ -4017,11 +4017,11 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4017
4017
  children: /* @__PURE__ */ t.jsx(le, { icon: /* @__PURE__ */ t.jsx(xe, { type: "smile" }), style: { border: "none" } })
4018
4018
  }
4019
4019
  );
4020
- }, ui = G(li), di = () => {
4021
- const [e, n] = W(0), [r, o] = W(!1), c = re(null), s = re(null), i = re(!1), a = re(null), { onSendMsg: l, setGetResponse: g, isGetResponse: m } = We(), { ticketId: p } = He(), { isActiveTabVA: h } = Ue(), { employees: y, setChats: j, isFromSelf: v, detailTicket: S } = st(), T = V(() => r || !m, [r, m]), w = V(() => {
4020
+ }, ui = K(li), di = () => {
4021
+ const [e, n] = W(0), [r, o] = W(!1), c = re(null), s = re(null), i = re(!1), a = re(null), { onSendMsg: l, setGetResponse: g, isGetResponse: m } = We(), { ticketId: p } = He(), { isActiveTabVA: h } = Ue(), { employees: y, setChats: j, isFromSelf: v, detailTicket: S } = st(), T = z(() => r || !m, [r, m]), w = z(() => {
4022
4022
  var b;
4023
4023
  return ((b = S == null ? void 0 : S.STATUS) == null ? void 0 : b.toString().toLowerCase()) === "closed";
4024
- }, [S == null ? void 0 : S.STATUS]), x = V(() => y == null ? void 0 : y.map((b) => ({
4024
+ }, [S == null ? void 0 : S.STATUS]), x = z(() => y == null ? void 0 : y.map((b) => ({
4025
4025
  ...b,
4026
4026
  label: /* @__PURE__ */ t.jsx(
4027
4027
  Gt,
@@ -4042,7 +4042,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4042
4042
  ATTACHMENT: "",
4043
4043
  FAQ_ID: null,
4044
4044
  MESSAGE: b,
4045
- EMPLOYEES: y == null ? void 0 : y.map((D) => D == null ? void 0 : D.EMP_ID),
4045
+ EMPLOYEES: y == null ? void 0 : y.map((O) => O == null ? void 0 : O.EMP_ID),
4046
4046
  TASK_ID: p
4047
4047
  }
4048
4048
  });
@@ -4054,10 +4054,10 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4054
4054
  CHAT_ALIGN: "to",
4055
4055
  CHAT_TYPE: "chat"
4056
4056
  };
4057
- j((D) => {
4058
- const O = [...Jt(D), u];
4059
- return Et(O);
4060
- }), v.current = !0, $e(".w-ticket-detail-content-container"), n((D) => D + 1);
4057
+ j((O) => {
4058
+ const R = [...Jt(O), u];
4059
+ return Et(R);
4060
+ }), v.current = !0, $e(".w-ticket-detail-content-container"), n((O) => O + 1);
4061
4061
  }, f = () => {
4062
4062
  window.clearTimeout(s.current), i.current || (i.current = !0, l({
4063
4063
  event: "TYPING",
@@ -4112,8 +4112,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4112
4112
  ((b == null ? void 0 : b.code) === "Enter" || (b == null ? void 0 : b.key) === "Enter") && !(b != null && b.shiftKey) && E();
4113
4113
  },
4114
4114
  filterOption: (b, u) => {
4115
- var N, D, _;
4116
- const C = (N = b == null ? void 0 : b.toString()) == null ? void 0 : N.toLowerCase(), A = (_ = (D = u == null ? void 0 : u.FULL_NAME) == null ? void 0 : D.toString()) == null ? void 0 : _.toLowerCase();
4115
+ var N, O, _;
4116
+ const C = (N = b == null ? void 0 : b.toString()) == null ? void 0 : N.toLowerCase(), A = (_ = (O = u == null ? void 0 : u.FULL_NAME) == null ? void 0 : O.toString()) == null ? void 0 : _.toLowerCase();
4117
4117
  return A == null ? void 0 : A.includes(C);
4118
4118
  },
4119
4119
  children: x == null ? void 0 : x.map((b, u) => /* @__PURE__ */ t.jsx(pn.Option, { ...b, children: b == null ? void 0 : b.label }, u))
@@ -4140,7 +4140,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4140
4140
  ]
4141
4141
  }
4142
4142
  );
4143
- }, fi = G(di), gi = ({ title: e, subTitle: n, onClose: r, open: o, styleWrapper: c }) => {
4143
+ }, fi = K(di), gi = ({ title: e, subTitle: n, onClose: r, open: o, styleWrapper: c }) => {
4144
4144
  var s;
4145
4145
  return o ? /* @__PURE__ */ t.jsx(
4146
4146
  "div",
@@ -4163,7 +4163,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4163
4163
  ] })
4164
4164
  }
4165
4165
  ) : null;
4166
- }, fr = G(gi), pi = () => {
4166
+ }, fr = K(gi), pi = () => {
4167
4167
  const e = I(
4168
4168
  "ForMoreInformationOfThisTicket",
4169
4169
  "For more information of this ticket"
@@ -4194,27 +4194,27 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4194
4194
  }
4195
4195
  }
4196
4196
  );
4197
- }, hi = G(pi), xi = ({ onClose: e, visible: n }) => /* @__PURE__ */ t.jsx(lr, { open: n, onClose: e, children: /* @__PURE__ */ t.jsxs(Us, { children: [
4197
+ }, hi = K(pi), xi = ({ onClose: e, visible: n }) => /* @__PURE__ */ t.jsx(lr, { open: n, onClose: e, children: /* @__PURE__ */ t.jsxs(Us, { children: [
4198
4198
  /* @__PURE__ */ t.jsx(Ws, { onClose: e }),
4199
4199
  /* @__PURE__ */ t.jsx(hi, {}),
4200
4200
  /* @__PURE__ */ t.jsx(ri, {}),
4201
4201
  /* @__PURE__ */ t.jsx(fi, {})
4202
- ] }) }), mi = G(xi), yi = () => {
4202
+ ] }) }), mi = K(xi), yi = () => {
4203
4203
  const e = I("AdvanceFilter", "Advance Filter"), n = I("Subject", "Subject"), r = I(
4204
4204
  "TicketCategory",
4205
4205
  "Ticket Category"
4206
- ), o = I("TicketStatus", "Ticket Status"), c = I("CreatedDate", "Created Date"), s = I("New", "New"), i = I("Open", "Open"), a = I("Reopen", "Reopen"), l = I("InProgress", "In Progress"), g = I("Responded", "Responded"), m = I("Fixed", "Fixed"), p = I("Done", "Done"), h = I("Closed", "Closed"), y = I("HDCancelled", "Cancelled"), j = I("Clear", "Clear"), v = I("Filter", "Filter"), S = xt(), [T] = Se.useForm(), { openFilter: w, setOpenFilter: x, getListTicket: E, setCountFilters: f } = He(), [b, u] = W([]), C = V(() => {
4207
- const D = `${s}/${i}/${a}`, _ = `${l}/${g}`, O = `${m}/${p}`;
4206
+ ), o = I("TicketStatus", "Ticket Status"), c = I("CreatedDate", "Created Date"), s = I("New", "New"), i = I("Open", "Open"), a = I("Reopen", "Reopen"), l = I("InProgress", "In Progress"), g = I("Responded", "Responded"), m = I("Fixed", "Fixed"), p = I("Done", "Done"), h = I("Closed", "Closed"), y = I("HDCancelled", "Cancelled"), j = I("Clear", "Clear"), v = I("Filter", "Filter"), S = xt(), [T] = Se.useForm(), { openFilter: w, setOpenFilter: x, getListTicket: E, setCountFilters: f } = He(), [b, u] = W([]), C = z(() => {
4207
+ const O = `${s}/${i}/${a}`, _ = `${l}/${g}`, R = `${m}/${p}`;
4208
4208
  return [
4209
- { value: 3, label: D },
4209
+ { value: 3, label: O },
4210
4210
  { value: 1, label: _ },
4211
- { value: 4, label: O },
4211
+ { value: 4, label: R },
4212
4212
  { value: 6, label: h },
4213
4213
  { value: 8, label: y }
4214
4214
  ];
4215
4215
  }, []), A = () => {
4216
- var D;
4217
- (D = S({
4216
+ var O;
4217
+ (O = S({
4218
4218
  endpoint: "/helpdesk/category/list",
4219
4219
  data: {
4220
4220
  LIMIT: 999999,
@@ -4222,12 +4222,12 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4222
4222
  SELECTOR: "*",
4223
4223
  SORT: { FIELD: "ORDER_NO", ORDER: "ASC" }
4224
4224
  }
4225
- })) == null || D.then((_) => {
4226
- var O, H, q;
4227
- if ((O = _ == null ? void 0 : _.data) != null && O.DATA) {
4228
- const K = (q = (H = _ == null ? void 0 : _.data) == null ? void 0 : H.DATA) == null ? void 0 : q.LIST;
4225
+ })) == null || O.then((_) => {
4226
+ var R, H, G;
4227
+ if ((R = _ == null ? void 0 : _.data) != null && R.DATA) {
4228
+ const q = (G = (H = _ == null ? void 0 : _.data) == null ? void 0 : H.DATA) == null ? void 0 : G.LIST;
4229
4229
  u(
4230
- K == null ? void 0 : K.map((F) => ({
4230
+ q == null ? void 0 : q.map((F) => ({
4231
4231
  label: F == null ? void 0 : F.CATEGORY_NAME,
4232
4232
  value: F == null ? void 0 : F.CATEGORY_CODE
4233
4233
  }))
@@ -4235,10 +4235,10 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4235
4235
  }
4236
4236
  });
4237
4237
  }, N = () => {
4238
- var O, H;
4239
- const D = T == null ? void 0 : T.getFieldsValue(!0);
4240
- E(D);
4241
- const _ = (H = (O = Object.values(D || {})) == null ? void 0 : O.flat()) == null ? void 0 : H.filter(Boolean);
4238
+ var R, H;
4239
+ const O = T == null ? void 0 : T.getFieldsValue(!0);
4240
+ E(O);
4241
+ const _ = (H = (R = Object.values(O || {})) == null ? void 0 : R.flat()) == null ? void 0 : H.filter(Boolean);
4242
4242
  f(_ == null ? void 0 : _.length);
4243
4243
  };
4244
4244
  return pe(() => {
@@ -4296,7 +4296,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4296
4296
  ]
4297
4297
  }
4298
4298
  );
4299
- }, vi = G(yi), bi = () => {
4299
+ }, vi = K(yi), bi = () => {
4300
4300
  const e = I(
4301
4301
  "ReconnectManually",
4302
4302
  "Reconnect Manually"
@@ -4308,7 +4308,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4308
4308
  retryCountState: s,
4309
4309
  setRetryCountState: i,
4310
4310
  retryCountRef: a
4311
- } = We(), l = V(() => s === ut ? `${n} ${r}` : `${n} ${o}`, [s]);
4311
+ } = We(), l = z(() => s === ut ? `${n} ${r}` : `${n} ${o}`, [s]);
4312
4312
  return /* @__PURE__ */ t.jsx(
4313
4313
  "div",
4314
4314
  {
@@ -4350,7 +4350,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4350
4350
  )
4351
4351
  }
4352
4352
  );
4353
- }, Ci = G(bi), Ti = () => {
4353
+ }, Ci = K(bi), Ti = () => {
4354
4354
  const { setTicketId: e, ticketId: n, openFilter: r } = He(), { onSendMsg: o, setGetResponse: c } = We(), { showReadyWSHD: s } = ue();
4355
4355
  return s ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
4356
4356
  /* @__PURE__ */ t.jsx(
@@ -4370,7 +4370,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4370
4370
  /* @__PURE__ */ t.jsx("div", { style: { display: !n && !r ? "block" : "none" }, children: /* @__PURE__ */ t.jsx(Is, {}) }),
4371
4371
  /* @__PURE__ */ t.jsx(vi, {})
4372
4372
  ] }) : /* @__PURE__ */ t.jsx(Ci, {});
4373
- }, Ei = G(Ti);
4373
+ }, Ei = K(Ti);
4374
4374
  var ct = { exports: {} }, $t = {}, yt = { exports: {} }, vt = { exports: {} }, ae = {};
4375
4375
  /** @license React v16.13.1
4376
4376
  * react-is.production.min.js
@@ -4495,7 +4495,7 @@ function wi() {
4495
4495
  }
4496
4496
  }
4497
4497
  }
4498
- var f = l, b = g, u = a, C = i, A = n, N = m, D = o, _ = j, O = y, H = r, q = s, K = c, F = p, se = !1;
4498
+ var f = l, b = g, u = a, C = i, A = n, N = m, O = o, _ = j, R = y, H = r, G = s, q = c, F = p, se = !1;
4499
4499
  function te(L) {
4500
4500
  return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(L) || E(L) === l;
4501
4501
  }
@@ -4511,31 +4511,31 @@ function wi() {
4511
4511
  function B(L) {
4512
4512
  return typeof L == "object" && L !== null && L.$$typeof === n;
4513
4513
  }
4514
- function z(L) {
4514
+ function Y(L) {
4515
4515
  return E(L) === m;
4516
4516
  }
4517
- function Q(L) {
4517
+ function Z(L) {
4518
4518
  return E(L) === o;
4519
4519
  }
4520
4520
  function X(L) {
4521
4521
  return E(L) === j;
4522
4522
  }
4523
- function Z(L) {
4523
+ function J(L) {
4524
4524
  return E(L) === y;
4525
4525
  }
4526
4526
  function ee(L) {
4527
4527
  return E(L) === r;
4528
4528
  }
4529
- function U(L) {
4529
+ function $(L) {
4530
4530
  return E(L) === s;
4531
4531
  }
4532
- function Y(L) {
4532
+ function V(L) {
4533
4533
  return E(L) === c;
4534
4534
  }
4535
4535
  function de(L) {
4536
4536
  return E(L) === p;
4537
4537
  }
4538
- ce.AsyncMode = f, ce.ConcurrentMode = b, ce.ContextConsumer = u, ce.ContextProvider = C, ce.Element = A, ce.ForwardRef = N, ce.Fragment = D, ce.Lazy = _, ce.Memo = O, ce.Portal = H, ce.Profiler = q, ce.StrictMode = K, ce.Suspense = F, ce.isAsyncMode = te, ce.isConcurrentMode = k, ce.isContextConsumer = M, ce.isContextProvider = P, ce.isElement = B, ce.isForwardRef = z, ce.isFragment = Q, ce.isLazy = X, ce.isMemo = Z, ce.isPortal = ee, ce.isProfiler = U, ce.isStrictMode = Y, ce.isSuspense = de, ce.isValidElementType = x, ce.typeOf = E;
4538
+ ce.AsyncMode = f, ce.ConcurrentMode = b, ce.ContextConsumer = u, ce.ContextProvider = C, ce.Element = A, ce.ForwardRef = N, ce.Fragment = O, ce.Lazy = _, ce.Memo = R, ce.Portal = H, ce.Profiler = G, ce.StrictMode = q, ce.Suspense = F, ce.isAsyncMode = te, ce.isConcurrentMode = k, ce.isContextConsumer = M, ce.isContextProvider = P, ce.isElement = B, ce.isForwardRef = Y, ce.isFragment = Z, ce.isLazy = X, ce.isMemo = J, ce.isPortal = ee, ce.isProfiler = $, ce.isStrictMode = V, ce.isSuspense = de, ce.isValidElementType = x, ce.typeOf = E;
4539
4539
  }()), ce;
4540
4540
  }
4541
4541
  var _n;
@@ -4645,7 +4645,7 @@ function ji() {
4645
4645
  oneOf: u,
4646
4646
  oneOfType: A,
4647
4647
  shape: _,
4648
- exact: O
4648
+ exact: R
4649
4649
  };
4650
4650
  function j(k, M) {
4651
4651
  return k === M ? k !== 0 || 1 / k === 1 / M : k !== k && M !== M;
@@ -4657,33 +4657,33 @@ function ji() {
4657
4657
  function S(k) {
4658
4658
  if (process.env.NODE_ENV !== "production")
4659
4659
  var M = {}, P = 0;
4660
- function B(Q, X, Z, ee, U, Y, de) {
4661
- if (ee = ee || h, Y = Y || Z, de !== r) {
4660
+ function B(Z, X, J, ee, $, V, de) {
4661
+ if (ee = ee || h, V = V || J, de !== r) {
4662
4662
  if (l) {
4663
4663
  var L = new Error(
4664
4664
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
4665
4665
  );
4666
4666
  throw L.name = "Invariant Violation", L;
4667
4667
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
4668
- var be = ee + ":" + Z;
4668
+ var be = ee + ":" + J;
4669
4669
  !M[be] && // Avoid spamming the console because they are often not actionable except for lib authors
4670
4670
  P < 3 && (s(
4671
- "You are manually calling a React.PropTypes validation function for the `" + Y + "` prop on `" + ee + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
4671
+ "You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + ee + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
4672
4672
  ), M[be] = !0, P++);
4673
4673
  }
4674
4674
  }
4675
- return X[Z] == null ? Q ? X[Z] === null ? new v("The " + U + " `" + Y + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new v("The " + U + " `" + Y + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : k(X, Z, ee, U, Y);
4675
+ return X[J] == null ? Z ? X[J] === null ? new v("The " + $ + " `" + V + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new v("The " + $ + " `" + V + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : k(X, J, ee, $, V);
4676
4676
  }
4677
- var z = B.bind(null, !1);
4678
- return z.isRequired = B.bind(null, !0), z;
4677
+ var Y = B.bind(null, !1);
4678
+ return Y.isRequired = B.bind(null, !0), Y;
4679
4679
  }
4680
4680
  function T(k) {
4681
- function M(P, B, z, Q, X, Z) {
4682
- var ee = P[B], U = K(ee);
4683
- if (U !== k) {
4684
- var Y = F(ee);
4681
+ function M(P, B, Y, Z, X, J) {
4682
+ var ee = P[B], $ = q(ee);
4683
+ if ($ !== k) {
4684
+ var V = F(ee);
4685
4685
  return new v(
4686
- "Invalid " + Q + " `" + X + "` of type " + ("`" + Y + "` supplied to `" + z + "`, expected ") + ("`" + k + "`."),
4686
+ "Invalid " + Z + " `" + X + "` of type " + ("`" + V + "` supplied to `" + Y + "`, expected ") + ("`" + k + "`."),
4687
4687
  { expectedType: k }
4688
4688
  );
4689
4689
  }
@@ -4695,50 +4695,50 @@ function ji() {
4695
4695
  return S(i);
4696
4696
  }
4697
4697
  function x(k) {
4698
- function M(P, B, z, Q, X) {
4698
+ function M(P, B, Y, Z, X) {
4699
4699
  if (typeof k != "function")
4700
- return new v("Property `" + X + "` of component `" + z + "` has invalid PropType notation inside arrayOf.");
4701
- var Z = P[B];
4702
- if (!Array.isArray(Z)) {
4703
- var ee = K(Z);
4704
- return new v("Invalid " + Q + " `" + X + "` of type " + ("`" + ee + "` supplied to `" + z + "`, expected an array."));
4700
+ return new v("Property `" + X + "` of component `" + Y + "` has invalid PropType notation inside arrayOf.");
4701
+ var J = P[B];
4702
+ if (!Array.isArray(J)) {
4703
+ var ee = q(J);
4704
+ return new v("Invalid " + Z + " `" + X + "` of type " + ("`" + ee + "` supplied to `" + Y + "`, expected an array."));
4705
4705
  }
4706
- for (var U = 0; U < Z.length; U++) {
4707
- var Y = k(Z, U, z, Q, X + "[" + U + "]", r);
4708
- if (Y instanceof Error)
4709
- return Y;
4706
+ for (var $ = 0; $ < J.length; $++) {
4707
+ var V = k(J, $, Y, Z, X + "[" + $ + "]", r);
4708
+ if (V instanceof Error)
4709
+ return V;
4710
4710
  }
4711
4711
  return null;
4712
4712
  }
4713
4713
  return S(M);
4714
4714
  }
4715
4715
  function E() {
4716
- function k(M, P, B, z, Q) {
4716
+ function k(M, P, B, Y, Z) {
4717
4717
  var X = M[P];
4718
4718
  if (!a(X)) {
4719
- var Z = K(X);
4720
- return new v("Invalid " + z + " `" + Q + "` of type " + ("`" + Z + "` supplied to `" + B + "`, expected a single ReactElement."));
4719
+ var J = q(X);
4720
+ return new v("Invalid " + Y + " `" + Z + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected a single ReactElement."));
4721
4721
  }
4722
4722
  return null;
4723
4723
  }
4724
4724
  return S(k);
4725
4725
  }
4726
4726
  function f() {
4727
- function k(M, P, B, z, Q) {
4727
+ function k(M, P, B, Y, Z) {
4728
4728
  var X = M[P];
4729
4729
  if (!e.isValidElementType(X)) {
4730
- var Z = K(X);
4731
- return new v("Invalid " + z + " `" + Q + "` of type " + ("`" + Z + "` supplied to `" + B + "`, expected a single ReactElement type."));
4730
+ var J = q(X);
4731
+ return new v("Invalid " + Y + " `" + Z + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected a single ReactElement type."));
4732
4732
  }
4733
4733
  return null;
4734
4734
  }
4735
4735
  return S(k);
4736
4736
  }
4737
4737
  function b(k) {
4738
- function M(P, B, z, Q, X) {
4738
+ function M(P, B, Y, Z, X) {
4739
4739
  if (!(P[B] instanceof k)) {
4740
- var Z = k.name || h, ee = te(P[B]);
4741
- return new v("Invalid " + Q + " `" + X + "` of type " + ("`" + ee + "` supplied to `" + z + "`, expected ") + ("instance of `" + Z + "`."));
4740
+ var J = k.name || h, ee = te(P[B]);
4741
+ return new v("Invalid " + Z + " `" + X + "` of type " + ("`" + ee + "` supplied to `" + Y + "`, expected ") + ("instance of `" + J + "`."));
4742
4742
  }
4743
4743
  return null;
4744
4744
  }
@@ -4749,30 +4749,30 @@ function ji() {
4749
4749
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
4750
4750
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
4751
4751
  ) : s("Invalid argument supplied to oneOf, expected an array.")), i;
4752
- function M(P, B, z, Q, X) {
4753
- for (var Z = P[B], ee = 0; ee < k.length; ee++)
4754
- if (j(Z, k[ee]))
4752
+ function M(P, B, Y, Z, X) {
4753
+ for (var J = P[B], ee = 0; ee < k.length; ee++)
4754
+ if (j(J, k[ee]))
4755
4755
  return null;
4756
- var U = JSON.stringify(k, function(de, L) {
4756
+ var $ = JSON.stringify(k, function(de, L) {
4757
4757
  var be = F(L);
4758
4758
  return be === "symbol" ? String(L) : L;
4759
4759
  });
4760
- return new v("Invalid " + Q + " `" + X + "` of value `" + String(Z) + "` " + ("supplied to `" + z + "`, expected one of " + U + "."));
4760
+ return new v("Invalid " + Z + " `" + X + "` of value `" + String(J) + "` " + ("supplied to `" + Y + "`, expected one of " + $ + "."));
4761
4761
  }
4762
4762
  return S(M);
4763
4763
  }
4764
4764
  function C(k) {
4765
- function M(P, B, z, Q, X) {
4765
+ function M(P, B, Y, Z, X) {
4766
4766
  if (typeof k != "function")
4767
- return new v("Property `" + X + "` of component `" + z + "` has invalid PropType notation inside objectOf.");
4768
- var Z = P[B], ee = K(Z);
4767
+ return new v("Property `" + X + "` of component `" + Y + "` has invalid PropType notation inside objectOf.");
4768
+ var J = P[B], ee = q(J);
4769
4769
  if (ee !== "object")
4770
- return new v("Invalid " + Q + " `" + X + "` of type " + ("`" + ee + "` supplied to `" + z + "`, expected an object."));
4771
- for (var U in Z)
4772
- if (o(Z, U)) {
4773
- var Y = k(Z, U, z, Q, X + "." + U, r);
4774
- if (Y instanceof Error)
4775
- return Y;
4770
+ return new v("Invalid " + Z + " `" + X + "` of type " + ("`" + ee + "` supplied to `" + Y + "`, expected an object."));
4771
+ for (var $ in J)
4772
+ if (o(J, $)) {
4773
+ var V = k(J, $, Y, Z, X + "." + $, r);
4774
+ if (V instanceof Error)
4775
+ return V;
4776
4776
  }
4777
4777
  return null;
4778
4778
  }
@@ -4788,39 +4788,39 @@ function ji() {
4788
4788
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(P) + " at index " + M + "."
4789
4789
  ), i;
4790
4790
  }
4791
- function B(z, Q, X, Z, ee) {
4792
- for (var U = [], Y = 0; Y < k.length; Y++) {
4793
- var de = k[Y], L = de(z, Q, X, Z, ee, r);
4791
+ function B(Y, Z, X, J, ee) {
4792
+ for (var $ = [], V = 0; V < k.length; V++) {
4793
+ var de = k[V], L = de(Y, Z, X, J, ee, r);
4794
4794
  if (L == null)
4795
4795
  return null;
4796
- L.data && o(L.data, "expectedType") && U.push(L.data.expectedType);
4796
+ L.data && o(L.data, "expectedType") && $.push(L.data.expectedType);
4797
4797
  }
4798
- var be = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
4799
- return new v("Invalid " + Z + " `" + ee + "` supplied to " + ("`" + X + "`" + be + "."));
4798
+ var be = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
4799
+ return new v("Invalid " + J + " `" + ee + "` supplied to " + ("`" + X + "`" + be + "."));
4800
4800
  }
4801
4801
  return S(B);
4802
4802
  }
4803
4803
  function N() {
4804
- function k(M, P, B, z, Q) {
4805
- return H(M[P]) ? null : new v("Invalid " + z + " `" + Q + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
4804
+ function k(M, P, B, Y, Z) {
4805
+ return H(M[P]) ? null : new v("Invalid " + Y + " `" + Z + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
4806
4806
  }
4807
4807
  return S(k);
4808
4808
  }
4809
- function D(k, M, P, B, z) {
4809
+ function O(k, M, P, B, Y) {
4810
4810
  return new v(
4811
- (k || "React class") + ": " + M + " type `" + P + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + z + "`."
4811
+ (k || "React class") + ": " + M + " type `" + P + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Y + "`."
4812
4812
  );
4813
4813
  }
4814
4814
  function _(k) {
4815
- function M(P, B, z, Q, X) {
4816
- var Z = P[B], ee = K(Z);
4815
+ function M(P, B, Y, Z, X) {
4816
+ var J = P[B], ee = q(J);
4817
4817
  if (ee !== "object")
4818
- return new v("Invalid " + Q + " `" + X + "` of type `" + ee + "` " + ("supplied to `" + z + "`, expected `object`."));
4819
- for (var U in k) {
4820
- var Y = k[U];
4821
- if (typeof Y != "function")
4822
- return D(z, Q, X, U, F(Y));
4823
- var de = Y(Z, U, z, Q, X + "." + U, r);
4818
+ return new v("Invalid " + Z + " `" + X + "` of type `" + ee + "` " + ("supplied to `" + Y + "`, expected `object`."));
4819
+ for (var $ in k) {
4820
+ var V = k[$];
4821
+ if (typeof V != "function")
4822
+ return O(Y, Z, X, $, F(V));
4823
+ var de = V(J, $, Y, Z, X + "." + $, r);
4824
4824
  if (de)
4825
4825
  return de;
4826
4826
  }
@@ -4828,22 +4828,22 @@ function ji() {
4828
4828
  }
4829
4829
  return S(M);
4830
4830
  }
4831
- function O(k) {
4832
- function M(P, B, z, Q, X) {
4833
- var Z = P[B], ee = K(Z);
4831
+ function R(k) {
4832
+ function M(P, B, Y, Z, X) {
4833
+ var J = P[B], ee = q(J);
4834
4834
  if (ee !== "object")
4835
- return new v("Invalid " + Q + " `" + X + "` of type `" + ee + "` " + ("supplied to `" + z + "`, expected `object`."));
4836
- var U = n({}, P[B], k);
4837
- for (var Y in U) {
4838
- var de = k[Y];
4839
- if (o(k, Y) && typeof de != "function")
4840
- return D(z, Q, X, Y, F(de));
4835
+ return new v("Invalid " + Z + " `" + X + "` of type `" + ee + "` " + ("supplied to `" + Y + "`, expected `object`."));
4836
+ var $ = n({}, P[B], k);
4837
+ for (var V in $) {
4838
+ var de = k[V];
4839
+ if (o(k, V) && typeof de != "function")
4840
+ return O(Y, Z, X, V, F(de));
4841
4841
  if (!de)
4842
4842
  return new v(
4843
- "Invalid " + Q + " `" + X + "` key `" + Y + "` supplied to `" + z + "`.\nBad object: " + JSON.stringify(P[B], null, " ") + `
4843
+ "Invalid " + Z + " `" + X + "` key `" + V + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(P[B], null, " ") + `
4844
4844
  Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
4845
4845
  );
4846
- var L = de(Z, Y, z, Q, X + "." + Y, r);
4846
+ var L = de(J, V, Y, Z, X + "." + V, r);
4847
4847
  if (L)
4848
4848
  return L;
4849
4849
  }
@@ -4873,8 +4873,8 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
4873
4873
  return !1;
4874
4874
  } else
4875
4875
  for (; !(B = P.next()).done; ) {
4876
- var z = B.value;
4877
- if (z && !H(z[1]))
4876
+ var Y = B.value;
4877
+ if (Y && !H(Y[1]))
4878
4878
  return !1;
4879
4879
  }
4880
4880
  } else
@@ -4884,17 +4884,17 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
4884
4884
  return !1;
4885
4885
  }
4886
4886
  }
4887
- function q(k, M) {
4887
+ function G(k, M) {
4888
4888
  return k === "symbol" ? !0 : M ? M["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && M instanceof Symbol : !1;
4889
4889
  }
4890
- function K(k) {
4890
+ function q(k) {
4891
4891
  var M = typeof k;
4892
- return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : q(M, k) ? "symbol" : M;
4892
+ return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : G(M, k) ? "symbol" : M;
4893
4893
  }
4894
4894
  function F(k) {
4895
4895
  if (typeof k > "u" || k === null)
4896
4896
  return "" + k;
4897
- var M = K(k);
4897
+ var M = q(k);
4898
4898
  if (M === "object") {
4899
4899
  if (k instanceof Date)
4900
4900
  return "date";
@@ -5065,16 +5065,16 @@ function nn() {
5065
5065
  var e = jt(), n = r(Ri());
5066
5066
  function r(u, C) {
5067
5067
  if (typeof WeakMap == "function") var A = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
5068
- return (r = function(D, _) {
5069
- if (!_ && D && D.__esModule) return D;
5070
- var O, H, q = { __proto__: null, default: D };
5071
- if (D === null || typeof D != "object" && typeof D != "function") return q;
5072
- if (O = _ ? N : A) {
5073
- if (O.has(D)) return O.get(D);
5074
- O.set(D, q);
5068
+ return (r = function(O, _) {
5069
+ if (!_ && O && O.__esModule) return O;
5070
+ var R, H, G = { __proto__: null, default: O };
5071
+ if (O === null || typeof O != "object" && typeof O != "function") return G;
5072
+ if (R = _ ? N : A) {
5073
+ if (R.has(O)) return R.get(O);
5074
+ R.set(O, G);
5075
5075
  }
5076
- for (const K in D) K !== "default" && {}.hasOwnProperty.call(D, K) && ((H = (O = Object.defineProperty) && Object.getOwnPropertyDescriptor(D, K)) && (H.get || H.set) ? O(q, K, H) : q[K] = D[K]);
5077
- return q;
5076
+ for (const q in O) q !== "default" && {}.hasOwnProperty.call(O, q) && ((H = (R = Object.defineProperty) && Object.getOwnPropertyDescriptor(O, q)) && (H.get || H.set) ? R(G, q, H) : G[q] = O[q]);
5077
+ return G;
5078
5078
  })(u, C);
5079
5079
  }
5080
5080
  let o = "";
@@ -5094,19 +5094,19 @@ function nn() {
5094
5094
  }
5095
5095
  function i(u, C, A, N) {
5096
5096
  if (!u) return;
5097
- const D = {
5097
+ const O = {
5098
5098
  capture: !0,
5099
5099
  ...N
5100
5100
  };
5101
- u.addEventListener ? u.addEventListener(C, A, D) : u.attachEvent ? u.attachEvent("on" + C, A) : u["on" + C] = A;
5101
+ u.addEventListener ? u.addEventListener(C, A, O) : u.attachEvent ? u.attachEvent("on" + C, A) : u["on" + C] = A;
5102
5102
  }
5103
5103
  function a(u, C, A, N) {
5104
5104
  if (!u) return;
5105
- const D = {
5105
+ const O = {
5106
5106
  capture: !0,
5107
5107
  ...N
5108
5108
  };
5109
- u.removeEventListener ? u.removeEventListener(C, A, D) : u.detachEvent ? u.detachEvent("on" + C, A) : u["on" + C] = null;
5109
+ u.removeEventListener ? u.removeEventListener(C, A, O) : u.detachEvent ? u.detachEvent("on" + C, A) : u["on" + C] = null;
5110
5110
  }
5111
5111
  function l(u) {
5112
5112
  let C = u.clientHeight;
@@ -5129,13 +5129,13 @@ function nn() {
5129
5129
  return C -= (0, e.int)(A.paddingLeft), C -= (0, e.int)(A.paddingRight), C;
5130
5130
  }
5131
5131
  function h(u, C, A) {
5132
- const D = C === C.ownerDocument.body ? {
5132
+ const O = C === C.ownerDocument.body ? {
5133
5133
  left: 0,
5134
5134
  top: 0
5135
- } : C.getBoundingClientRect(), _ = (u.clientX + C.scrollLeft - D.left) / A, O = (u.clientY + C.scrollTop - D.top) / A;
5135
+ } : C.getBoundingClientRect(), _ = (u.clientX + C.scrollLeft - O.left) / A, R = (u.clientY + C.scrollTop - O.top) / A;
5136
5136
  return {
5137
5137
  x: _,
5138
- y: O
5138
+ y: R
5139
5139
  };
5140
5140
  }
5141
5141
  function y(u, C) {
@@ -5150,11 +5150,11 @@ function nn() {
5150
5150
  function v(u, C, A) {
5151
5151
  let {
5152
5152
  x: N,
5153
- y: D
5154
- } = u, _ = `translate(${N}${A},${D}${A})`;
5153
+ y: O
5154
+ } = u, _ = `translate(${N}${A},${O}${A})`;
5155
5155
  if (C) {
5156
- const O = `${typeof C.x == "string" ? C.x : C.x + A}`, H = `${typeof C.y == "string" ? C.y : C.y + A}`;
5157
- _ = `translate(${O}, ${H})` + _;
5156
+ const R = `${typeof C.x == "string" ? C.x : C.x + A}`, H = `${typeof C.y == "string" ? C.y : C.y + A}`;
5157
+ _ = `translate(${R}, ${H})` + _;
5158
5158
  }
5159
5159
  return _;
5160
5160
  }
@@ -5700,8 +5700,8 @@ function Oi() {
5700
5700
  y: A
5701
5701
  } = b;
5702
5702
  b.x += this.state.slackX, b.y += this.state.slackY;
5703
- const [N, D] = (0, i.getBoundPosition)(this, b.x, b.y);
5704
- b.x = N, b.y = D, b.slackX = this.state.slackX + (C - b.x), b.slackY = this.state.slackY + (A - b.y), f.x = b.x, f.y = b.y, f.deltaX = b.x - this.state.x, f.deltaY = b.y - this.state.y;
5703
+ const [N, O] = (0, i.getBoundPosition)(this, b.x, b.y);
5704
+ b.x = N, b.y = O, b.slackX = this.state.slackX + (C - b.x), b.slackY = this.state.slackY + (A - b.y), f.x = b.x, f.y = b.y, f.deltaX = b.x - this.state.x, f.deltaY = b.y - this.state.y;
5705
5705
  }
5706
5706
  if (this.props.onDrag(x, f) === !1) return !1;
5707
5707
  this.setState(b);
@@ -5766,17 +5766,17 @@ function Oi() {
5766
5766
  defaultClassNameDragged: C,
5767
5767
  position: A,
5768
5768
  positionOffset: N,
5769
- scale: D,
5769
+ scale: O,
5770
5770
  ..._
5771
5771
  } = this.props;
5772
- let O = {}, H = null;
5773
- const K = !!!A || this.state.dragging, F = A || f, se = {
5772
+ let R = {}, H = null;
5773
+ const q = !!!A || this.state.dragging, F = A || f, se = {
5774
5774
  // Set left if horizontal drag is enabled
5775
- x: (0, i.canDragX)(this) && K ? this.state.x : F.x,
5775
+ x: (0, i.canDragX)(this) && q ? this.state.x : F.x,
5776
5776
  // Set top if vertical drag is enabled
5777
- y: (0, i.canDragY)(this) && K ? this.state.y : F.y
5777
+ y: (0, i.canDragY)(this) && q ? this.state.y : F.y
5778
5778
  };
5779
- this.state.isElementSVG ? H = (0, s.createSVGTransform)(se, N) : O = (0, s.createCSSTransform)(se, N);
5779
+ this.state.isElementSVG ? H = (0, s.createSVGTransform)(se, N) : R = (0, s.createCSSTransform)(se, N);
5780
5780
  const te = (0, c.clsx)(E.props.className || "", b, {
5781
5781
  [u]: this.state.dragging,
5782
5782
  [C]: this.state.dragged
@@ -5789,7 +5789,7 @@ function Oi() {
5789
5789
  className: te,
5790
5790
  style: {
5791
5791
  ...E.props.style,
5792
- ...O
5792
+ ...R
5793
5793
  },
5794
5794
  transform: H
5795
5795
  }));
@@ -5950,9 +5950,9 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
5950
5950
  maxY: A - 200
5951
5951
  });
5952
5952
  }, u = () => {
5953
- clearTimeout(m.current), clearTimeout(p.current), s && (h.current.style.right = "0px"), s || (h.current.style.right = "-25px", m.current = setTimeout(() => {
5953
+ clearTimeout(m.current), clearTimeout(p.current), h.current && (s && (h.current.style.right = "0px"), s || (h.current.style.right = "-25px", m.current = setTimeout(() => {
5954
5954
  i(!0), h.current.style.right = "0px";
5955
- }, 300));
5955
+ }, 300)));
5956
5956
  }, C = () => {
5957
5957
  clearTimeout(p.current), s && (h.current.style.right = "-15px", p.current = setTimeout(() => {
5958
5958
  i(!1), h.current.style.right = "-28px";
@@ -5981,9 +5981,9 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
5981
5981
  handle: ".w-handler-launcher-widget",
5982
5982
  axis: "y",
5983
5983
  onDrag: (A, N) => {
5984
- const D = Math.abs(N.x - y.current.x), _ = Math.abs(N.y - y.current.y);
5985
- (D > 3 || _ > 3) && l(!0), c((O) => ({
5986
- ...O,
5984
+ const O = Math.abs(N.x - y.current.x), _ = Math.abs(N.y - y.current.y);
5985
+ (O > 3 || _ > 3) && l(!0), c((R) => ({
5986
+ ...R,
5987
5987
  y: N.y
5988
5988
  }));
5989
5989
  },
@@ -6023,7 +6023,7 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
6023
6023
  )
6024
6024
  }
6025
6025
  );
6026
- }, $i = G(Ii), Ui = () => {
6026
+ }, $i = K(Ii), Ui = () => {
6027
6027
  const e = I("NotConnected", "Not Connected"), n = I(
6028
6028
  "CannotAutoReconnect",
6029
6029
  "Cannot auto reconnect"
@@ -6058,10 +6058,10 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
6058
6058
  open: !s && o
6059
6059
  }
6060
6060
  );
6061
- }, Hi = G(
6061
+ }, Hi = K(
6062
6062
  Ui
6063
6063
  ), Wi = () => {
6064
- const { xs: e } = Me.useBreakpoint(), [n, r] = W(!1), { isOpenWidget: o, widgetProps: c } = ue(), { isActiveTabVA: s } = Ue(), i = re(null), a = V(() => {
6064
+ const { xs: e } = Me.useBreakpoint(), [n, r] = W(!1), { isOpenWidget: o, widgetProps: c } = ue(), { isActiveTabVA: s } = Ue(), i = re(null), a = z(() => {
6065
6065
  var m;
6066
6066
  const g = [Nt];
6067
6067
  return e && (c != null && c.isSF ? g == null || g.push(`${Nt}-sf-mobile`) : g == null || g.push(`${Nt}-mobile`)), (m = g == null ? void 0 : g.filter(Boolean)) == null ? void 0 : m.join(" ");
@@ -6085,14 +6085,14 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
6085
6085
  /* @__PURE__ */ t.jsx("div", { style: { display: s ? "none" : "block" }, children: /* @__PURE__ */ t.jsx("div", { className: l(ho), children: /* @__PURE__ */ t.jsx(Ns, { children: /* @__PURE__ */ t.jsx(Os, { children: /* @__PURE__ */ t.jsx(Ei, {}) }) }) }) }),
6086
6086
  /* @__PURE__ */ t.jsx(Hi, {})
6087
6087
  ] }) : /* @__PURE__ */ t.jsx($i, {});
6088
- }, Bi = G(Wi), Yi = ({ items: e, ...n }) => nt != null && nt.startsWith("5") || rt != null && rt.startsWith("18") ? /* @__PURE__ */ t.jsx(Dt, { ...n, items: e }) : /* @__PURE__ */ t.jsx(Dt, { ...n, children: e == null ? void 0 : e.map(({ ...r }) => /* @__PURE__ */ zt(
6088
+ }, Bi = K(Wi), Yi = ({ items: e, ...n }) => nt != null && nt.startsWith("5") || rt != null && rt.startsWith("18") ? /* @__PURE__ */ t.jsx(Dt, { ...n, items: e }) : /* @__PURE__ */ t.jsx(Dt, { ...n, children: e == null ? void 0 : e.map(({ ...r }) => /* @__PURE__ */ zt(
6089
6089
  Dt.TabPane,
6090
6090
  {
6091
6091
  ...r,
6092
6092
  key: r == null ? void 0 : r.key,
6093
6093
  tab: r == null ? void 0 : r.label
6094
6094
  }
6095
- )) }), Vi = G(Yi), zi = () => {
6095
+ )) }), Vi = K(Yi), zi = () => {
6096
6096
  const { isOpenWidget: e, isUserInputHide: n } = ue(), { setActiveTab: r, activeTab: o } = Ue(), c = I(
6097
6097
  "VirtualAssistant",
6098
6098
  "Virtual Assistant"
@@ -6132,8 +6132,8 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
6132
6132
  )
6133
6133
  }
6134
6134
  ) : null;
6135
- }, Gi = G(zi), qi = () => {
6136
- const { isOpenWidget: e, setOpenWidget: n, setExpand: r, isExpand: o, widgetProps: c } = ue(), { xs: s } = Me.useBreakpoint(), i = V(() => {
6135
+ }, Gi = K(zi), qi = () => {
6136
+ const { isOpenWidget: e, setOpenWidget: n, setExpand: r, isExpand: o, widgetProps: c } = ue(), { xs: s } = Me.useBreakpoint(), i = z(() => {
6137
6137
  const { title: a = "", modelName: l = "" } = c;
6138
6138
  return l ? `${a} (${l})` : a;
6139
6139
  }, [c == null ? void 0 : c.title, c == null ? void 0 : c.modelName]);
@@ -6178,8 +6178,8 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
6178
6178
  ]
6179
6179
  }
6180
6180
  ) : null;
6181
- }, Ki = G(qi), Pi = () => {
6182
- const { isExpand: e, isOpenWidget: n, isFirstOpenWidget: r, setOpenWidget: o } = ue(), { xs: c } = Me.useBreakpoint(), s = V(() => {
6181
+ }, Ki = K(qi), Pi = () => {
6182
+ const { isExpand: e, isOpenWidget: n, isFirstOpenWidget: r, setOpenWidget: o } = ue(), { xs: c } = Me.useBreakpoint(), s = z(() => {
6183
6183
  var a;
6184
6184
  const i = [
6185
6185
  c && n && "w-container-widget-mobile",
@@ -6206,7 +6206,7 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
6206
6206
  ]
6207
6207
  }
6208
6208
  );
6209
- }, Xi = G(Pi), da = ({
6209
+ }, Xi = K(Pi), da = ({
6210
6210
  getStartedPayload: e,
6211
6211
  socketURL: n,
6212
6212
  socketPath: r,