widget-chatbot 2.0.7-alpha.8 → 2.0.7-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/widget-chatbot.es.js +1071 -1072
  2. package/package.json +1 -1
@@ -1,7 +1,7 @@
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
- import ot from "axios";
1
+ import ft, { version as Lr, createContext as Ve, useContext as ze, useState as W, useRef as oe, useMemo as K, useEffect as pe, memo as X, Fragment as Tt, Children as Mr, isValidElement as Nr, cloneElement as Fr, createElement as zt, useCallback as Ir } from "react";
2
+ import rt from "axios";
3
3
  import je from "dayjs";
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";
4
+ import { version as $r, Modal as fn, Collapse as gn, Typography as ie, Button as fe, Form as Se, notification as _e, Radio as Ur, Divider as Hr, Input as gt, Image as Br, Skeleton as Re, Avatar as Wn, Upload as Yn, Spin as Wr, Tag as Yr, Tooltip as lt, 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";
5
5
  import { io as qr } from "socket.io-client";
6
6
  import Kr from "react-markdown";
7
7
  import Pr from "remark-gfm";
@@ -55,12 +55,12 @@ function qt() {
55
55
  return Ot = c() ? Object.assign : function(s, i) {
56
56
  for (var a, l = o(s), g, m = 1; m < arguments.length; m++) {
57
57
  a = Object(arguments[m]);
58
- for (var p in a)
59
- n.call(a, p) && (l[p] = a[p]);
58
+ for (var h in a)
59
+ n.call(a, h) && (l[h] = a[h]);
60
60
  if (e) {
61
61
  g = e(a);
62
- for (var h = 0; h < g.length; h++)
63
- r.call(a, g[h]) && (l[g[h]] = a[g[h]]);
62
+ for (var p = 0; p < g.length; p++)
63
+ r.call(a, g[p]) && (l[g[p]] = a[g[p]]);
64
64
  }
65
65
  }
66
66
  return l;
@@ -85,11 +85,11 @@ function to() {
85
85
  }
86
86
  var o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = Object.prototype.hasOwnProperty, s = { key: !0, ref: !0, __self: !0, __source: !0 };
87
87
  function i(a, l, g) {
88
- var m, p = {}, h = null, y = null;
89
- g !== void 0 && (h = "" + g), l.key !== void 0 && (h = "" + l.key), l.ref !== void 0 && (y = l.ref);
90
- for (m in l) c.call(l, m) && !s.hasOwnProperty(m) && (p[m] = l[m]);
91
- if (a && a.defaultProps) for (m in l = a.defaultProps, l) p[m] === void 0 && (p[m] = l[m]);
92
- return { $$typeof: n, type: a, key: h, ref: y, props: p, _owner: o.current };
88
+ var m, h = {}, p = null, y = null;
89
+ g !== void 0 && (p = "" + g), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (y = l.ref);
90
+ for (m in l) c.call(l, m) && !s.hasOwnProperty(m) && (h[m] = l[m]);
91
+ if (a && a.defaultProps) for (m in l = a.defaultProps, l) h[m] === void 0 && (h[m] = l[m]);
92
+ return { $$typeof: n, type: a, key: p, ref: y, props: h, _owner: o.current };
93
93
  }
94
94
  return Ze.jsx = i, Ze.jsxs = i, Ze;
95
95
  }
@@ -108,48 +108,48 @@ function no() {
108
108
  process.env.NODE_ENV !== "production" && function() {
109
109
  var n = ft, r = qt(), o = 60103, c = 60106;
110
110
  e.Fragment = 60107;
111
- var s = 60108, i = 60114, a = 60109, l = 60110, g = 60112, m = 60113, p = 60120, h = 60115, y = 60116, j = 60121, v = 60122, S = 60117, T = 60129, w = 60131;
111
+ var s = 60108, i = 60114, a = 60109, l = 60110, g = 60112, m = 60113, h = 60120, p = 60115, y = 60116, j = 60121, v = 60122, S = 60117, T = 60129, _ = 60131;
112
112
  if (typeof Symbol == "function" && Symbol.for) {
113
113
  var x = Symbol.for;
114
- o = x("react.element"), c = x("react.portal"), e.Fragment = x("react.fragment"), s = x("react.strict_mode"), i = x("react.profiler"), a = x("react.provider"), l = x("react.context"), g = x("react.forward_ref"), m = x("react.suspense"), p = x("react.suspense_list"), h = x("react.memo"), y = x("react.lazy"), j = x("react.block"), v = x("react.server.block"), S = x("react.fundamental"), x("react.scope"), x("react.opaque.id"), T = x("react.debug_trace_mode"), x("react.offscreen"), w = x("react.legacy_hidden");
114
+ o = x("react.element"), c = x("react.portal"), e.Fragment = x("react.fragment"), s = x("react.strict_mode"), i = x("react.profiler"), a = x("react.provider"), l = x("react.context"), g = x("react.forward_ref"), m = x("react.suspense"), h = x("react.suspense_list"), p = x("react.memo"), y = x("react.lazy"), j = x("react.block"), v = x("react.server.block"), S = x("react.fundamental"), x("react.scope"), x("react.opaque.id"), T = x("react.debug_trace_mode"), x("react.offscreen"), _ = x("react.legacy_hidden");
115
115
  }
116
116
  var E = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
117
117
  function b(d) {
118
118
  if (d === null || typeof d != "object")
119
119
  return null;
120
- var D = E && d[E] || d[f];
121
- return typeof D == "function" ? D : null;
120
+ var R = E && d[E] || d[f];
121
+ return typeof R == "function" ? R : 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 D = arguments.length, U = new Array(D > 1 ? D - 1 : 0), Q = 1; Q < D; Q++)
126
+ for (var R = arguments.length, U = new Array(R > 1 ? R - 1 : 0), Q = 1; Q < R; Q++)
127
127
  U[Q - 1] = arguments[Q];
128
128
  A("error", d, U);
129
129
  }
130
130
  }
131
- function A(d, D, U) {
131
+ function A(d, R, U) {
132
132
  {
133
133
  var Q = u.ReactDebugCurrentFrame, he = Q.getStackAddendum();
134
- he !== "" && (D += "%s", U = U.concat([he]));
135
- var ge = U.map(function(oe) {
136
- return "" + oe;
134
+ he !== "" && (R += "%s", U = U.concat([he]));
135
+ var ge = U.map(function(se) {
136
+ return "" + se;
137
137
  });
138
- ge.unshift("Warning: " + D), Function.prototype.apply.call(console[d], console, ge);
138
+ ge.unshift("Warning: " + R), Function.prototype.apply.call(console[d], console, ge);
139
139
  }
140
140
  }
141
- var N = !1;
142
- function O(d) {
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));
141
+ var L = !1;
142
+ function D(d) {
143
+ return !!(typeof d == "string" || typeof d == "function" || d === e.Fragment || d === i || d === T || d === s || d === m || d === h || d === _ || L || typeof d == "object" && d !== null && (d.$$typeof === y || d.$$typeof === p || d.$$typeof === a || d.$$typeof === l || d.$$typeof === g || d.$$typeof === S || d.$$typeof === j || d[0] === v));
144
144
  }
145
- function _(d, D, U) {
146
- var Q = D.displayName || D.name || "";
145
+ function B(d, R, U) {
146
+ var Q = R.displayName || R.name || "";
147
147
  return d.displayName || (Q !== "" ? U + "(" + Q + ")" : U);
148
148
  }
149
- function R(d) {
149
+ function w(d) {
150
150
  return d.displayName || "Context";
151
151
  }
152
- function H(d) {
152
+ function N(d) {
153
153
  if (d == null)
154
154
  return null;
155
155
  if (typeof d.tag == "number" && C("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."), typeof d == "function")
@@ -167,27 +167,27 @@ function no() {
167
167
  return "StrictMode";
168
168
  case m:
169
169
  return "Suspense";
170
- case p:
170
+ case h:
171
171
  return "SuspenseList";
172
172
  }
173
173
  if (typeof d == "object")
174
174
  switch (d.$$typeof) {
175
175
  case l:
176
- var D = d;
177
- return R(D) + ".Consumer";
176
+ var R = d;
177
+ return w(R) + ".Consumer";
178
178
  case a:
179
179
  var U = d;
180
- return R(U._context) + ".Provider";
180
+ return w(U._context) + ".Provider";
181
181
  case g:
182
- return _(d, d.render, "ForwardRef");
183
- case h:
184
- return H(d.type);
182
+ return B(d, d.render, "ForwardRef");
183
+ case p:
184
+ return N(d.type);
185
185
  case j:
186
- return H(d._render);
186
+ return N(d._render);
187
187
  case y: {
188
188
  var Q = d, he = Q._payload, ge = Q._init;
189
189
  try {
190
- return H(ge(he));
190
+ return N(ge(he));
191
191
  } catch {
192
192
  return null;
193
193
  }
@@ -195,18 +195,18 @@ function no() {
195
195
  }
196
196
  return null;
197
197
  }
198
- var G = 0, q, F, se, te, k, M, P;
199
- function B() {
198
+ var G = 0, H, F, re, te, k, M, Z;
199
+ function V() {
200
200
  }
201
- B.__reactDisabledLog = !0;
202
- function Y() {
201
+ V.__reactDisabledLog = !0;
202
+ function P() {
203
203
  {
204
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;
205
+ H = console.log, F = console.info, re = console.warn, te = console.error, k = console.group, M = console.groupCollapsed, Z = console.groupEnd;
206
206
  var d = {
207
207
  configurable: !0,
208
208
  enumerable: !0,
209
- value: B,
209
+ value: V,
210
210
  writable: !0
211
211
  };
212
212
  Object.defineProperties(console, {
@@ -222,7 +222,7 @@ function no() {
222
222
  G++;
223
223
  }
224
224
  }
225
- function Z() {
225
+ function ee() {
226
226
  {
227
227
  if (G--, G === 0) {
228
228
  var d = {
@@ -232,13 +232,13 @@ function no() {
232
232
  };
233
233
  Object.defineProperties(console, {
234
234
  log: r({}, d, {
235
- value: q
235
+ value: H
236
236
  }),
237
237
  info: r({}, d, {
238
238
  value: F
239
239
  }),
240
240
  warn: r({}, d, {
241
- value: se
241
+ value: re
242
242
  }),
243
243
  error: r({}, d, {
244
244
  value: te
@@ -250,37 +250,37 @@ function no() {
250
250
  value: M
251
251
  }),
252
252
  groupEnd: r({}, d, {
253
- value: P
253
+ value: Z
254
254
  })
255
255
  });
256
256
  }
257
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, J;
261
- function ee(d, D, U) {
260
+ var J = u.ReactCurrentDispatcher, q;
261
+ function z(d, R, U) {
262
262
  {
263
- if (J === void 0)
263
+ if (q === void 0)
264
264
  try {
265
265
  throw Error();
266
266
  } catch (he) {
267
267
  var Q = he.stack.trim().match(/\n( *(at )?)/);
268
- J = Q && Q[1] || "";
268
+ q = Q && Q[1] || "";
269
269
  }
270
270
  return `
271
- ` + J + d;
271
+ ` + q + d;
272
272
  }
273
273
  }
274
- var $ = !1, V;
274
+ var $ = !1, Y;
275
275
  {
276
- var de = typeof WeakMap == "function" ? WeakMap : Map;
277
- V = new de();
276
+ var ae = typeof WeakMap == "function" ? WeakMap : Map;
277
+ Y = new ae();
278
278
  }
279
- function L(d, D) {
279
+ function O(d, R) {
280
280
  if (!d || $)
281
281
  return "";
282
282
  {
283
- var U = V.get(d);
283
+ var U = Y.get(d);
284
284
  if (U !== void 0)
285
285
  return U;
286
286
  }
@@ -289,30 +289,30 @@ function no() {
289
289
  var he = Error.prepareStackTrace;
290
290
  Error.prepareStackTrace = void 0;
291
291
  var ge;
292
- ge = X.current, X.current = null, Y();
292
+ ge = J.current, J.current = null, P();
293
293
  try {
294
- if (D) {
295
- var oe = function() {
294
+ if (R) {
295
+ var se = function() {
296
296
  throw Error();
297
297
  };
298
- if (Object.defineProperty(oe.prototype, "props", {
298
+ if (Object.defineProperty(se.prototype, "props", {
299
299
  set: function() {
300
300
  throw Error();
301
301
  }
302
302
  }), typeof Reflect == "object" && Reflect.construct) {
303
303
  try {
304
- Reflect.construct(oe, []);
304
+ Reflect.construct(se, []);
305
305
  } catch (Le) {
306
306
  Q = Le;
307
307
  }
308
- Reflect.construct(d, [], oe);
308
+ Reflect.construct(d, [], se);
309
309
  } else {
310
310
  try {
311
- oe.call();
311
+ se.call();
312
312
  } catch (Le) {
313
313
  Q = Le;
314
314
  }
315
- d.call(oe.prototype);
315
+ d.call(se.prototype);
316
316
  }
317
317
  } else {
318
318
  try {
@@ -325,90 +325,90 @@ function no() {
325
325
  } catch (Le) {
326
326
  if (Le && Q && typeof Le.stack == "string") {
327
327
  for (var ne = Le.stack.split(`
328
- `), Te = Q.stack.split(`
329
- `), me = ne.length - 1, ve = Te.length - 1; me >= 1 && ve >= 0 && ne[me] !== Te[ve]; )
330
- ve--;
331
- for (; me >= 1 && ve >= 0; me--, ve--)
332
- if (ne[me] !== Te[ve]) {
333
- if (me !== 1 || ve !== 1)
328
+ `), Ee = Q.stack.split(`
329
+ `), ye = ne.length - 1, be = Ee.length - 1; ye >= 1 && be >= 0 && ne[ye] !== Ee[be]; )
330
+ be--;
331
+ for (; ye >= 1 && be >= 0; ye--, be--)
332
+ if (ne[ye] !== Ee[be]) {
333
+ if (ye !== 1 || be !== 1)
334
334
  do
335
- if (me--, ve--, ve < 0 || ne[me] !== Te[ve]) {
335
+ if (ye--, be--, be < 0 || ne[ye] !== Ee[be]) {
336
336
  var Oe = `
337
- ` + ne[me].replace(" at new ", " at ");
338
- return typeof d == "function" && V.set(d, Oe), Oe;
337
+ ` + ne[ye].replace(" at new ", " at ");
338
+ return typeof d == "function" && Y.set(d, Oe), Oe;
339
339
  }
340
- while (me >= 1 && ve >= 0);
340
+ while (ye >= 1 && be >= 0);
341
341
  break;
342
342
  }
343
343
  }
344
344
  } finally {
345
- $ = !1, X.current = ge, Z(), Error.prepareStackTrace = he;
345
+ $ = !1, J.current = ge, ee(), Error.prepareStackTrace = he;
346
346
  }
347
- var Xe = d ? d.displayName || d.name : "", dn = Xe ? ee(Xe) : "";
348
- return typeof d == "function" && V.set(d, dn), dn;
347
+ var Xe = d ? d.displayName || d.name : "", dn = Xe ? z(Xe) : "";
348
+ return typeof d == "function" && Y.set(d, dn), dn;
349
349
  }
350
- function be(d, D, U) {
351
- return L(d, !1);
350
+ function me(d, R, U) {
351
+ return O(d, !1);
352
352
  }
353
- function Ee(d) {
354
- var D = d.prototype;
355
- return !!(D && D.isReactComponent);
353
+ function Ce(d) {
354
+ var R = d.prototype;
355
+ return !!(R && R.isReactComponent);
356
356
  }
357
- function fe(d, D, U) {
357
+ function ce(d, R, U) {
358
358
  if (d == null)
359
359
  return "";
360
360
  if (typeof d == "function")
361
- return L(d, Ee(d));
361
+ return O(d, Ce(d));
362
362
  if (typeof d == "string")
363
- return ee(d);
363
+ return z(d);
364
364
  switch (d) {
365
365
  case m:
366
- return ee("Suspense");
367
- case p:
368
- return ee("SuspenseList");
366
+ return z("Suspense");
367
+ case h:
368
+ return z("SuspenseList");
369
369
  }
370
370
  if (typeof d == "object")
371
371
  switch (d.$$typeof) {
372
372
  case g:
373
- return be(d.render);
374
- case h:
375
- return fe(d.type, D, U);
373
+ return me(d.render);
374
+ case p:
375
+ return ce(d.type, R, U);
376
376
  case j:
377
- return be(d._render);
377
+ return me(d._render);
378
378
  case y: {
379
379
  var Q = d, he = Q._payload, ge = Q._init;
380
380
  try {
381
- return fe(ge(he), D, U);
381
+ return ce(ge(he), R, U);
382
382
  } catch {
383
383
  }
384
384
  }
385
385
  }
386
386
  return "";
387
387
  }
388
- var Ce = {}, Ne = u.ReactDebugCurrentFrame;
388
+ var Te = {}, Ne = u.ReactDebugCurrentFrame;
389
389
  function ke(d) {
390
390
  if (d) {
391
- var D = d._owner, U = fe(d.type, d._source, D ? D.type : null);
391
+ var R = d._owner, U = ce(d.type, d._source, R ? R.type : null);
392
392
  Ne.setExtraStackFrame(U);
393
393
  } else
394
394
  Ne.setExtraStackFrame(null);
395
395
  }
396
- function it(d, D, U, Q, he) {
396
+ function st(d, R, U, Q, he) {
397
397
  {
398
398
  var ge = Function.call.bind(Object.prototype.hasOwnProperty);
399
- for (var oe in d)
400
- if (ge(d, oe)) {
399
+ for (var se in d)
400
+ if (ge(d, se)) {
401
401
  var ne = void 0;
402
402
  try {
403
- if (typeof d[oe] != "function") {
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
- throw Te.name = "Invariant Violation", Te;
403
+ if (typeof d[se] != "function") {
404
+ var Ee = Error((Q || "React class") + ": " + U + " type `" + se + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[se] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
405
+ throw Ee.name = "Invariant Violation", Ee;
406
406
  }
407
- ne = d[oe](D, oe, Q, U, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
408
- } catch (me) {
409
- ne = me;
407
+ ne = d[se](R, se, Q, U, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
408
+ } catch (ye) {
409
+ ne = ye;
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).", 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));
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, se, typeof ne), ke(null)), ne instanceof Error && !(ne.message in Te) && (Te[ne.message] = !0, ke(he), C("Failed %s type: %s", U, ne.message), ke(null));
412
412
  }
413
413
  }
414
414
  }
@@ -417,30 +417,30 @@ function no() {
417
417
  ref: !0,
418
418
  __self: !0,
419
419
  __source: !0
420
- }, Be, rn;
420
+ }, We, rn;
421
421
  function yr(d) {
422
422
  if (qe.call(d, "ref")) {
423
- var D = Object.getOwnPropertyDescriptor(d, "ref").get;
424
- if (D && D.isReactWarning)
423
+ var R = Object.getOwnPropertyDescriptor(d, "ref").get;
424
+ if (R && R.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 D = Object.getOwnPropertyDescriptor(d, "key").get;
432
- if (D && D.isReactWarning)
431
+ var R = Object.getOwnPropertyDescriptor(d, "key").get;
432
+ if (R && R.isReactWarning)
433
433
  return !1;
434
434
  }
435
435
  return d.key !== void 0;
436
436
  }
437
- function br(d, D) {
437
+ function br(d, R) {
438
438
  typeof d.ref == "string" && Ge.current;
439
439
  }
440
- function Cr(d, D) {
440
+ function Cr(d, R) {
441
441
  {
442
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));
443
+ We || (We = !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));
444
444
  };
445
445
  U.isReactWarning = !0, Object.defineProperty(d, "key", {
446
446
  get: U,
@@ -448,10 +448,10 @@ function no() {
448
448
  });
449
449
  }
450
450
  }
451
- function Tr(d, D) {
451
+ function Tr(d, R) {
452
452
  {
453
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));
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));
455
455
  };
456
456
  U.isReactWarning = !0, Object.defineProperty(d, "ref", {
457
457
  get: U,
@@ -459,15 +459,15 @@ function no() {
459
459
  });
460
460
  }
461
461
  }
462
- var Er = function(d, D, U, Q, he, ge, oe) {
462
+ var Er = function(d, R, U, Q, he, ge, se) {
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: D,
468
+ key: R,
469
469
  ref: U,
470
- props: oe,
470
+ props: se,
471
471
  // Record the component responsible for creating this element.
472
472
  _owner: ge
473
473
  };
@@ -488,28 +488,28 @@ function no() {
488
488
  value: he
489
489
  }), Object.freeze && (Object.freeze(ne.props), Object.freeze(ne)), ne;
490
490
  };
491
- function Sr(d, D, U, Q, he) {
491
+ function Sr(d, R, U, Q, he) {
492
492
  {
493
- var ge, oe = {}, ne = null, Te = null;
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]);
493
+ var ge, se = {}, ne = null, Ee = null;
494
+ U !== void 0 && (ne = "" + U), vr(R) && (ne = "" + R.key), yr(R) && (Ee = R.ref, br(R, he));
495
+ for (ge in R)
496
+ qe.call(R, ge) && !Ke.hasOwnProperty(ge) && (se[ge] = R[ge]);
497
497
  if (d && d.defaultProps) {
498
- var me = d.defaultProps;
499
- for (ge in me)
500
- oe[ge] === void 0 && (oe[ge] = me[ge]);
498
+ var ye = d.defaultProps;
499
+ for (ge in ye)
500
+ se[ge] === void 0 && (se[ge] = ye[ge]);
501
501
  }
502
- if (ne || Te) {
503
- var ve = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
504
- ne && Cr(oe, ve), Te && Tr(oe, ve);
502
+ if (ne || Ee) {
503
+ var be = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
504
+ ne && Cr(se, be), Ee && Tr(se, be);
505
505
  }
506
- return Er(d, ne, Te, he, Q, Ge.current, oe);
506
+ return Er(d, ne, Ee, he, Q, Ge.current, se);
507
507
  }
508
508
  }
509
509
  var kt = u.ReactCurrentOwner, on = u.ReactDebugCurrentFrame;
510
510
  function Pe(d) {
511
511
  if (d) {
512
- var D = d._owner, U = fe(d.type, d._source, D ? D.type : null);
512
+ var R = d._owner, U = ce(d.type, d._source, R ? R.type : null);
513
513
  on.setExtraStackFrame(U);
514
514
  } else
515
515
  on.setExtraStackFrame(null);
@@ -522,7 +522,7 @@ function no() {
522
522
  function sn() {
523
523
  {
524
524
  if (kt.current) {
525
- var d = H(kt.current.type);
525
+ var d = N(kt.current.type);
526
526
  if (d)
527
527
  return `
528
528
 
@@ -537,77 +537,77 @@ Check the render method of \`` + d + "`.";
537
537
  var an = {};
538
538
  function _r(d) {
539
539
  {
540
- var D = sn();
541
- if (!D) {
540
+ var R = sn();
541
+ if (!R) {
542
542
  var U = typeof d == "string" ? d : d.displayName || d.name;
543
- U && (D = `
543
+ U && (R = `
544
544
 
545
545
  Check the top-level render call using <` + U + ">.");
546
546
  }
547
- return D;
547
+ return R;
548
548
  }
549
549
  }
550
- function cn(d, D) {
550
+ function cn(d, R) {
551
551
  {
552
552
  if (!d._store || d._store.validated || d.key != null)
553
553
  return;
554
554
  d._store.validated = !0;
555
- var U = _r(D);
555
+ var U = _r(R);
556
556
  if (an[U])
557
557
  return;
558
558
  an[U] = !0;
559
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);
560
+ d && d._owner && d._owner !== kt.current && (Q = " It was passed a child from " + N(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, D) {
563
+ function ln(d, R) {
564
564
  {
565
565
  if (typeof d != "object")
566
566
  return;
567
567
  if (Array.isArray(d))
568
568
  for (var U = 0; U < d.length; U++) {
569
569
  var Q = d[U];
570
- Rt(Q) && cn(Q, D);
570
+ Rt(Q) && cn(Q, R);
571
571
  }
572
572
  else if (Rt(d))
573
573
  d._store && (d._store.validated = !0);
574
574
  else if (d) {
575
575
  var he = b(d);
576
576
  if (typeof he == "function" && he !== d.entries)
577
- for (var ge = he.call(d), oe; !(oe = ge.next()).done; )
578
- Rt(oe.value) && cn(oe.value, D);
577
+ for (var ge = he.call(d), se; !(se = ge.next()).done; )
578
+ Rt(se.value) && cn(se.value, R);
579
579
  }
580
580
  }
581
581
  }
582
582
  function jr(d) {
583
583
  {
584
- var D = d.type;
585
- if (D == null || typeof D == "string")
584
+ var R = d.type;
585
+ if (R == null || typeof R == "string")
586
586
  return;
587
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.
588
+ if (typeof R == "function")
589
+ U = R.propTypes;
590
+ else if (typeof R == "object" && (R.$$typeof === g || // Note: Memo only checks outer props here.
591
591
  // Inner props are checked in the reconciler.
592
- D.$$typeof === h))
593
- U = D.propTypes;
592
+ R.$$typeof === p))
593
+ U = R.propTypes;
594
594
  else
595
595
  return;
596
596
  if (U) {
597
- var Q = H(D);
598
- it(U, d.props, "prop", Q, d);
599
- } else if (D.PropTypes !== void 0 && !At) {
597
+ var Q = N(R);
598
+ st(U, d.props, "prop", Q, d);
599
+ } else if (R.PropTypes !== void 0 && !At) {
600
600
  At = !0;
601
- var he = H(D);
601
+ var he = N(R);
602
602
  C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", he || "Unknown");
603
603
  }
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.");
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.");
605
605
  }
606
606
  }
607
607
  function kr(d) {
608
608
  {
609
- for (var D = Object.keys(d.props), U = 0; U < D.length; U++) {
610
- var Q = D[U];
609
+ for (var R = Object.keys(d.props), U = 0; U < R.length; U++) {
610
+ var Q = R[U];
611
611
  if (Q !== "children" && Q !== "key") {
612
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;
@@ -616,22 +616,22 @@ Check the top-level render call using <` + U + ">.");
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, D, U, Q, he, ge) {
619
+ function un(d, R, U, Q, he, ge) {
620
620
  {
621
- var oe = O(d);
622
- if (!oe) {
621
+ var se = D(d);
622
+ if (!se) {
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.");
625
- var Te = wr();
626
- Te ? ne += Te : ne += sn();
627
- var me;
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);
625
+ var Ee = wr();
626
+ Ee ? ne += Ee : ne += sn();
627
+ var ye;
628
+ d === null ? ye = "null" : Array.isArray(d) ? ye = "array" : d !== void 0 && d.$$typeof === o ? (ye = "<" + (N(d.type) || "Unknown") + " />", ne = " Did you accidentally export a JSX literal instead of a component?") : ye = 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", ye, ne);
629
629
  }
630
- var ve = Sr(d, D, U, he, ge);
631
- if (ve == null)
632
- return ve;
633
- if (oe) {
634
- var Oe = D.children;
630
+ var be = Sr(d, R, U, he, ge);
631
+ if (be == null)
632
+ return be;
633
+ if (se) {
634
+ var Oe = R.children;
635
635
  if (Oe !== void 0)
636
636
  if (Q)
637
637
  if (Array.isArray(Oe)) {
@@ -643,14 +643,14 @@ Check the top-level render call using <` + U + ">.");
643
643
  else
644
644
  ln(Oe, d);
645
645
  }
646
- return d === e.Fragment ? kr(ve) : jr(ve), ve;
646
+ return d === e.Fragment ? kr(be) : jr(be), be;
647
647
  }
648
648
  }
649
- function Ar(d, D, U) {
650
- return un(d, D, U, !0);
649
+ function Ar(d, R, U) {
650
+ return un(d, R, U, !0);
651
651
  }
652
- function Rr(d, D, U) {
653
- return un(d, D, U, !1);
652
+ function Rr(d, R, U) {
653
+ return un(d, R, 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.8", Gn = "chat_session", so = "user_uttered", io = "bot_uttered", ao = "ehelp_bot_uttered", co = "bot_reason_uttered";
665
+ const oo = "2.0.7-alpha.9", 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"
@@ -692,7 +692,7 @@ const lo = "https://sfchatbot.dataon.com", uo = [
692
692
  label: "I’d like to explain further",
693
693
  value: "another"
694
694
  }
695
- ], nt = $r, rt = Lr, fo = oo, go = "https://sfchatbot.dataon.com/openai-service-dev/", St = "https://res.cloudinary.com/dcvolkyfb/image/upload/v1740135794/svg/bot_profile_hlnyop.png", Kt = "YYYY-MM-DD", wt = "HH:mm", bn = "N/A", Mt = [
695
+ ], tt = $r, nt = Lr, fo = oo, go = "https://sfchatbot.dataon.com/openai-service-dev/", St = "https://res.cloudinary.com/dcvolkyfb/image/upload/v1740135794/svg/bot_profile_hlnyop.png", Kt = "YYYY-MM-DD", wt = "HH:mm", bn = "N/A", Mt = [
696
696
  // Raster (bitmap)
697
697
  ".jpg",
698
698
  ".jpeg",
@@ -714,7 +714,7 @@ const lo = "https://sfchatbot.dataon.com", uo = [
714
714
  ".orf",
715
715
  ".psd",
716
716
  ".xcf"
717
- ], Nt = "w-widget-content-container", Ft = "w-ticket-detail-content-container", po = "w-wrapper-body", ho = "w-wrapper-body-helpdesk", at = "w-header", It = {
717
+ ], Nt = "w-widget-content-container", Ft = "w-ticket-detail-content-container", po = "w-wrapper-body", ho = "w-wrapper-body-helpdesk", it = "w-header", It = {
718
718
  FADE_IN: "w-fade-in-animate"
719
719
  }, xo = "https://placehold.co/600x400?text=No+Image", ut = 3, mo = "GoHRDev2025WorkPlazeDataOnDotCom", Qe = "(Helpdesk Widget Chatbot)", yo = (e) => JSON.parse((e == null ? void 0 : e.replaceAll("/get_started", "")) || "{}"), qn = (e) => {
720
720
  var n;
@@ -887,7 +887,7 @@ const $e = (e = ".w-wrapper-body") => {
887
887
  return e == null ? void 0 : e.replaceAll(`.${r}`, `_avatar.${r}`);
888
888
  }
889
889
  return e;
890
- }, Zt = (e) => `https://ui-avatars.com/api/?background=e5e5e5&color=000${e && typeof e == "string" ? `&name=${e.replaceAll(" ", "+")}` : ""}`, Tn = (e) => URL.parse(e) && new URL(e), Zn = Ve({}), ue = () => ze(Zn), wo = ({
890
+ }, Zt = (e) => `https://ui-avatars.com/api/?background=e5e5e5&color=000${e && typeof e == "string" ? `&name=${e.replaceAll(" ", "+")}` : ""}`, Tn = (e) => URL.parse(e) && new URL(e), Zn = Ve({}), de = () => ze(Zn), wo = ({
891
891
  children: e,
892
892
  getStartedPayload: n,
893
893
  socketURL: r,
@@ -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 = z(() => ({
903
+ const [h, p] = W(!1), [y, j] = W("va"), [v, S] = W(!1), [T, _] = W({}), [x, E] = W(!1), [f, b] = W(!1), [u, C] = W(!1), A = oe(!1), L = K(() => ({
904
904
  getStartedPayload: n,
905
905
  socketURL: r,
906
906
  socketPath: o,
@@ -922,9 +922,9 @@ const $e = (e = ".w-wrapper-body") => {
922
922
  l,
923
923
  g,
924
924
  m
925
- ]), O = z(() => Kn(T == null ? void 0 : T.access_token), [T == null ? void 0 : T.access_token]);
925
+ ]), D = K(() => Kn(T == null ? void 0 : T.access_token), [T == null ? void 0 : T.access_token]);
926
926
  return pe(() => {
927
- w(yo(n));
927
+ _(yo(n));
928
928
  }, [n]), pe(() => {
929
929
  _t({
930
930
  chatbot_version: fo
@@ -934,15 +934,15 @@ const $e = (e = ".w-wrapper-body") => {
934
934
  {
935
935
  value: {
936
936
  objInitPayload: T,
937
- setOpenWidget: h,
938
- isOpenWidget: p,
937
+ setOpenWidget: p,
938
+ isOpenWidget: h,
939
939
  activeTab: y,
940
940
  setActiveTab: j,
941
941
  isExpand: v,
942
942
  setExpand: S,
943
- setObjInitPayload: w,
944
- parsedJWT: O,
945
- widgetProps: N,
943
+ setObjInitPayload: _,
944
+ parsedJWT: D,
945
+ widgetProps: L,
946
946
  isFirstOpenWidget: x,
947
947
  setFirstOpenWidget: E,
948
948
  isFirstRenderHelpdesk: A,
@@ -955,19 +955,19 @@ const $e = (e = ".w-wrapper-body") => {
955
955
  }
956
956
  );
957
957
  }, Qn = Ve({}), _o = () => ze(Qn), jo = ({ children: e }) => {
958
- const { objInitPayload: n } = ue(), [r, o] = W({}), c = () => {
958
+ const { objInitPayload: n } = de(), [r, o] = W({}), c = () => {
959
959
  var i;
960
- (i = ot(
960
+ (i = rt(
961
961
  `${(n == null ? void 0 : n.uriService) || go}optional/translations`
962
962
  )) == null || i.then(({ data: a }) => {
963
963
  var l;
964
964
  if (a) {
965
965
  const g = Object.keys((l = Object.values(a)) == null ? void 0 : l[0]), m = {};
966
- g == null || g.forEach((p) => {
967
- var h;
968
- (h = Object.keys(a)) == null || h.forEach((y) => {
966
+ g == null || g.forEach((h) => {
967
+ var p;
968
+ (p = Object.keys(a)) == null || p.forEach((y) => {
969
969
  var j;
970
- m[p == null ? void 0 : p.toLowerCase()] = (j = a == null ? void 0 : a[y]) == null ? void 0 : j[p];
970
+ m[h == null ? void 0 : h.toLowerCase()] = (j = a == null ? void 0 : a[y]) == null ? void 0 : j[h];
971
971
  });
972
972
  }), o(m);
973
973
  }
@@ -978,10 +978,10 @@ const $e = (e = ".w-wrapper-body") => {
978
978
  var g;
979
979
  const l = a.target.result;
980
980
  try {
981
- const p = l.transaction("keyvaluepairs", "readonly").objectStore("keyvaluepairs"), h = p == null ? void 0 : p.get((g = n == null ? void 0 : n.lang) == null ? void 0 : g.toLowerCase());
982
- h.onsuccess = () => {
983
- o(h == null ? void 0 : h.result);
984
- }, h.onerror = () => {
981
+ const h = l.transaction("keyvaluepairs", "readonly").objectStore("keyvaluepairs"), p = h == null ? void 0 : h.get((g = n == null ? void 0 : n.lang) == null ? void 0 : g.toLowerCase());
982
+ p.onsuccess = () => {
983
+ o(p == null ? void 0 : p.result);
984
+ }, p.onerror = () => {
985
985
  c();
986
986
  };
987
987
  } catch {
@@ -995,73 +995,73 @@ const $e = (e = ".w-wrapper-body") => {
995
995
  s();
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
- 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({}), O = re(null), _ = re(null), R = re(null), H = re(""), G = re(""), {
1000
- objInitPayload: q,
998
+ var z;
999
+ const [n, r] = W([]), [o, c] = W(!1), [s, i] = W(!1), [a, l] = W({}), [g, m] = W(!0), [h, p] = W(!1), [y, j] = W(!1), [v, S] = W(!1), [T, _] = W(!1), [x, E] = W(""), [f, b] = W(!1), [u, C] = W(!1), [A, L] = W({}), D = oe(null), B = oe(null), w = oe(null), N = oe(""), G = oe(""), {
1000
+ objInitPayload: H,
1001
1001
  widgetProps: F,
1002
- setOpenWidget: se,
1002
+ setOpenWidget: re,
1003
1003
  setFirstOpenWidget: te,
1004
1004
  isFirstRenderHelpdesk: k,
1005
1005
  setUserInputHide: M
1006
- } = ue(), P = ($) => {
1007
- var de;
1008
- const V = we($, "text_feedback_link") && we($, "text");
1009
- r((L) => {
1006
+ } = de(), Z = ($) => {
1007
+ var ae;
1008
+ const Y = we($, "text_feedback_link") && we($, "text");
1009
+ r((O) => {
1010
1010
  var Ne, ke;
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({
1011
+ const Ce = [...bo(O)], ce = Ce[Ce.length - 1], Te = $.id && $.id !== "" ? $.id : ((Ne = $.metadata) == null ? void 0 : Ne.id) || ((ke = $.metadata) == null ? void 0 : ke.message_id) || "";
1012
+ return (ce == null ? void 0 : ce.id) === Te ? (ce.text = `${(ce == null ? void 0 : ce.text) || ""}${($ == null ? void 0 : $.text) || ""}`, $ != null && $.tag && (ce.tag = $.tag)) : Ce.push({
1013
1013
  ...$,
1014
- id: Ce,
1015
- ...V && { type: "text" },
1014
+ id: Te,
1015
+ ...Y && { type: "text" },
1016
1016
  sender: "response"
1017
- }), Co(Ee);
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(() => {
1017
+ }), Co(Ce);
1018
+ }), C(!0), m(!1), c(!1), M(((ae = $ == null ? void 0 : $.metadata) == null ? void 0 : ae.userInput) === "hide"), i(!1), D != null && D.current && clearTimeout(D == null ? void 0 : D.current), D.current = setTimeout(() => {
1019
1019
  C(!1);
1020
- }, 1750), _ != null && _.current && clearTimeout(_ == null ? void 0 : _.current), _.current = setTimeout(() => {
1020
+ }, 1750), B != null && B.current && clearTimeout(B == null ? void 0 : B.current), B.current = setTimeout(() => {
1021
1021
  m(!0);
1022
1022
  }, 2e3), $e();
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
- H.current = fe, _t({ session_id: fe == null ? void 0 : fe.session_id });
1027
- }), (L = R.current) == null || L.on(io, P), (be = R.current) == null || be.on(ao, (fe) => {
1028
- const Ce = JSON.parse(fe || "{}");
1029
- we(Ce, "iswidget") && w(Ce == null ? void 0 : Ce.iswidget);
1030
- }), (Ee = R.current) == null || Ee.on(co, (fe) => {
1023
+ }, V = ($) => {
1024
+ var Y, ae, O, me, Ce;
1025
+ $ && P({ msg: F == null ? void 0 : F.getStartedPayload }), (Y = w.current) == null || Y.emit("session_request", { session_id: null }), (ae = w.current) == null || ae.on("session_confirm", (ce) => {
1026
+ N.current = ce, _t({ session_id: ce == null ? void 0 : ce.session_id });
1027
+ }), (O = w.current) == null || O.on(io, Z), (me = w.current) == null || me.on(ao, (ce) => {
1028
+ const Te = JSON.parse(ce || "{}");
1029
+ we(Te, "iswidget") && _(Te == null ? void 0 : Te.iswidget);
1030
+ }), (Ce = w.current) == null || Ce.on(co, (ce) => {
1031
1031
  try {
1032
- const Ce = typeof fe == "string" ? JSON.parse(fe) : fe, { id: Ne } = Ce || {};
1032
+ const Te = typeof ce == "string" ? JSON.parse(ce) : ce, { id: Ne } = Te || {};
1033
1033
  if (!Ne) return;
1034
- const ke = Ne.split("|")[0], it = Ce.tag, Ge = Ce.reason;
1035
- N((qe) => {
1036
- const Ke = qe[ke] || {}, Be = {
1034
+ const ke = Ne.split("|")[0], st = Te.tag, Ge = Te.reason;
1035
+ L((qe) => {
1036
+ const Ke = qe[ke] || {}, We = {
1037
1037
  ...Ke.tag !== void 0 ? { tag: Ke.tag } : {},
1038
1038
  ...Ke.reason !== void 0 ? { reason: Ke.reason } : {}
1039
1039
  };
1040
- return typeof it < "u" && (Be.tag = it), Ge && (Be.reason = (Be.reason || "") + Ge), {
1040
+ return typeof st < "u" && (We.tag = st), Ge && (We.reason = (We.reason || "") + Ge), {
1041
1041
  ...qe,
1042
- [ke]: Be
1042
+ [ke]: We
1043
1043
  };
1044
- }), it && !Ge && m(!0);
1045
- } catch (Ce) {
1046
- console.error("Error parsing BOT_REASON_UTTERED:", Ce);
1044
+ }), st && !Ge && m(!0);
1045
+ } catch (Te) {
1046
+ console.error("Error parsing BOT_REASON_UTTERED:", Te);
1047
1047
  }
1048
1048
  }), v || S(!0), te(!1);
1049
- }, Y = ({
1049
+ }, P = ({
1050
1050
  msg: $,
1051
- additionalConfig: V = {},
1052
- isShowLoadingResponse: de = !0
1051
+ additionalConfig: Y = {},
1052
+ isShowLoadingResponse: ae = !0
1053
1053
  }) => {
1054
- var L;
1055
- (L = R.current) == null || L.emit(so, {
1056
- customData: { language: q == null ? void 0 : q.lang },
1054
+ var O;
1055
+ (O = w.current) == null || O.emit(so, {
1056
+ customData: { language: H == null ? void 0 : H.lang },
1057
1057
  message: $,
1058
- session_id: H == null ? void 0 : H.current,
1059
- ...V
1060
- }), de ? c(!0) : i(!0);
1061
- }, Z = ($ = !1) => {
1062
- var de, L;
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(
1058
+ session_id: N == null ? void 0 : N.current,
1059
+ ...Y
1060
+ }), ae ? c(!0) : i(!0);
1061
+ }, ee = ($ = !1) => {
1062
+ var ae, O;
1063
+ w.current && ((ae = w.current) == null || ae.off(), (O = w.current) == null || O.disconnect(), w.current = null), k.current = !1;
1064
+ const Y = 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
- V.on("connect", () => B($)), V.on("connect_error", (be) => {
1075
+ Y.on("connect", () => V($)), Y.on("connect_error", (me) => {
1076
1076
  console.error("connect_error widget-chatbot : ", {
1077
- err: be,
1077
+ err: me,
1078
1078
  socketURL: F == null ? void 0 : F.socketURL,
1079
1079
  socketPath: F == null ? void 0 : F.widgetProps
1080
1080
  }), S(!1);
1081
- }), V.io.on("reconnect", () => {
1081
+ }), Y.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
- }), R.current = V;
1087
- }, X = () => {
1086
+ }), w.current = Y;
1087
+ }, J = () => {
1088
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);
1089
+ (!(($ = w == null ? void 0 : w.current) != null && $.connected) || !v) && (ee(), re(!1));
1090
+ }, q = () => S(!1);
1091
+ return pe(() => (re(!1), ee(), window.addEventListener("online", J), window.addEventListener("offline", q), () => {
1092
+ var $, Y;
1093
+ w.current && (($ = w.current) == null || $.off("connect", V), (Y = w.current) == null || Y.disconnect(), w.current = null), window.removeEventListener("online", J), window.removeEventListener("offline", q);
1094
1094
  }), [
1095
- JSON.stringify(q || {}),
1095
+ JSON.stringify(H || {}),
1096
1096
  F == null ? void 0 : F.socketURL,
1097
1097
  F == null ? void 0 : F.socketPath
1098
1098
  ]), /* @__PURE__ */ t.jsx(
@@ -1101,16 +1101,16 @@ const $e = (e = ".w-wrapper-body") => {
1101
1101
  value: {
1102
1102
  setChats: r,
1103
1103
  chats: n,
1104
- onSendMsg: Y,
1104
+ onSendMsg: P,
1105
1105
  isWaitResponse: o,
1106
- socket: R == null ? void 0 : R.current,
1107
- sessionId: (ee = H == null ? void 0 : H.current) == null ? void 0 : ee.session_id,
1106
+ socket: w == null ? void 0 : w.current,
1107
+ sessionId: (z = N == null ? void 0 : N.current) == null ? void 0 : z.session_id,
1108
1108
  loadingRegenerate: s,
1109
1109
  file: a,
1110
1110
  setFile: l,
1111
1111
  connected: v,
1112
1112
  isHandshakeWidget: T,
1113
- createSocket: Z,
1113
+ createSocket: ee,
1114
1114
  currRegenerateId: G,
1115
1115
  thinkingText: x,
1116
1116
  setThinkingText: E,
@@ -1122,8 +1122,8 @@ const $e = (e = ".w-wrapper-body") => {
1122
1122
  setStreamingCompleted: m,
1123
1123
  // <- optional
1124
1124
  reasonMap: A,
1125
- isShowUpload: p,
1126
- setShowUpload: h,
1125
+ isShowUpload: h,
1126
+ setShowUpload: p,
1127
1127
  isLoadingUpload: y,
1128
1128
  setLoadingUpload: j
1129
1129
  },
@@ -1417,8 +1417,8 @@ 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 = z(() => e ? "w-modal-container-feedback" : "", [e]);
1421
- return nt != null && nt.startsWith("5") ? /* @__PURE__ */ t.jsx(
1420
+ const o = K(() => e ? "w-modal-container-feedback" : "", [e]);
1421
+ return tt != null && tt.startsWith("5") ? /* @__PURE__ */ t.jsx(
1422
1422
  fn,
1423
1423
  {
1424
1424
  rootClassName: o,
@@ -1446,7 +1446,7 @@ const $e = (e = ".w-wrapper-body") => {
1446
1446
  getContainer: "#w-widget-content",
1447
1447
  width: 300,
1448
1448
  ...r,
1449
- ...rt != null && rt.startsWith("18") ? {
1449
+ ...nt != null && nt.startsWith("18") ? {
1450
1450
  open: n
1451
1451
  } : { visible: n },
1452
1452
  maskStyle: {
@@ -1464,7 +1464,7 @@ const $e = (e = ".w-wrapper-body") => {
1464
1464
  }
1465
1465
  )
1466
1466
  );
1467
- }, tr = K(Do), Oo = ({ childrenData: e, children: n, tag: r, reason: o }) => {
1467
+ }, tr = X(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 = K(Oo), En = ({ props: e, isModal: n = !1 }) => {
1512
+ }, Lo = X(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) => {
@@ -1555,14 +1555,14 @@ const $e = (e = ".w-wrapper-body") => {
1555
1555
  const o = I(
1556
1556
  "OpenDetailTable",
1557
1557
  "Open Detail Table"
1558
- ), c = I("TableDetail", "Tabel Detail"), { widgetProps: s, objInitPayload: i } = ue(), [a, l] = W(!1);
1558
+ ), c = I("TableDetail", "Tabel Detail"), { widgetProps: s, objInitPayload: i } = de(), [a, l] = W(!1);
1559
1559
  return /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(Lo, { childrenData: e, tag: n, reason: r, children: (g, m) => /* @__PURE__ */ t.jsx(
1560
1560
  Kr,
1561
1561
  {
1562
1562
  remarkPlugins: [Pr],
1563
1563
  components: {
1564
- table: ({ ...p }) => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1565
- /* @__PURE__ */ t.jsx(En, { props: p }),
1564
+ table: ({ ...h }) => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1565
+ /* @__PURE__ */ t.jsx(En, { props: h }),
1566
1566
  /* @__PURE__ */ t.jsx(
1567
1567
  "div",
1568
1568
  {
@@ -1572,7 +1572,7 @@ const $e = (e = ".w-wrapper-body") => {
1572
1572
  padding: "5px 0px 10px 0px"
1573
1573
  },
1574
1574
  children: /* @__PURE__ */ t.jsx(
1575
- le,
1575
+ fe,
1576
1576
  {
1577
1577
  onClick: () => {
1578
1578
  l(!0);
@@ -1593,16 +1593,16 @@ const $e = (e = ".w-wrapper-body") => {
1593
1593
  onCancel: () => {
1594
1594
  l(!1);
1595
1595
  },
1596
- children: /* @__PURE__ */ t.jsx(En, { props: p, isModal: !0 })
1596
+ children: /* @__PURE__ */ t.jsx(En, { props: h, isModal: !0 })
1597
1597
  }
1598
1598
  )
1599
1599
  ] }),
1600
- p: (p) => /* @__PURE__ */ t.jsx(
1600
+ p: (h) => /* @__PURE__ */ t.jsx(
1601
1601
  "p",
1602
1602
  {
1603
- ...p,
1603
+ ...h,
1604
1604
  style: {
1605
- ...(p == null ? void 0 : p.style) || {},
1605
+ ...(h == null ? void 0 : h.style) || {},
1606
1606
  ...m === "think" && {
1607
1607
  fontSize: 12,
1608
1608
  color: "grey"
@@ -1610,21 +1610,21 @@ const $e = (e = ".w-wrapper-body") => {
1610
1610
  }
1611
1611
  }
1612
1612
  ),
1613
- code: ({ className: p, children: h }) => {
1614
- const y = /language-(\w+)/.exec(p || "");
1613
+ code: ({ className: h, children: p }) => {
1614
+ const y = /language-(\w+)/.exec(h || "");
1615
1615
  return y ? /* @__PURE__ */ t.jsx(
1616
1616
  Xr,
1617
1617
  {
1618
1618
  language: y[1],
1619
1619
  style: Ao,
1620
1620
  PreTag: "div",
1621
- children: String(h).replace(/\n$/, "")
1621
+ children: String(p).replace(/\n$/, "")
1622
1622
  }
1623
- ) : /* @__PURE__ */ t.jsx(ie.Text, { code: !0, children: h });
1623
+ ) : /* @__PURE__ */ t.jsx(ie.Text, { code: !0, children: p });
1624
1624
  },
1625
- a: (p) => {
1625
+ a: (h) => {
1626
1626
  var S;
1627
- const h = p.href, y = (S = p.children) == null ? void 0 : S[0], j = Tn(h), v = Tn(
1627
+ const p = h.href, y = (S = h.children) == null ? void 0 : S[0], j = Tn(p), v = Tn(
1628
1628
  i == null ? void 0 : i.uriBackend
1629
1629
  );
1630
1630
  return !j && v ? /* @__PURE__ */ t.jsx(
@@ -1633,18 +1633,18 @@ const $e = (e = ".w-wrapper-body") => {
1633
1633
  className: "w-link-path",
1634
1634
  onClick: (T) => {
1635
1635
  T.stopPropagation();
1636
- const w = `${h}`;
1637
- s != null && s.history && s.history.push(w);
1636
+ const _ = `${p}`;
1637
+ s != null && s.history && s.history.push(_);
1638
1638
  },
1639
1639
  children: y
1640
1640
  }
1641
- ) : /* @__PURE__ */ t.jsx("a", { ...p, target: "_blank", className: "w-link-path" });
1641
+ ) : /* @__PURE__ */ t.jsx("a", { ...h, target: "_blank", className: "w-link-path" });
1642
1642
  }
1643
1643
  },
1644
1644
  children: g
1645
1645
  }
1646
1646
  ) }) });
1647
- }, nr = K(Mo), No = () => /* @__PURE__ */ t.jsxs(
1647
+ }, nr = X(Mo), No = () => /* @__PURE__ */ t.jsxs(
1648
1648
  "svg",
1649
1649
  {
1650
1650
  width: "24",
@@ -1756,7 +1756,7 @@ const $e = (e = ".w-wrapper-body") => {
1756
1756
  "aria-hidden": "true",
1757
1757
  children: /* @__PURE__ */ t.jsx("path", { d: "M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z" })
1758
1758
  }
1759
- ) }), Wo = () => /* @__PURE__ */ t.jsx("span", { role: "img", "aria-label": "left", className: "anticon anticon-left", children: /* @__PURE__ */ t.jsx(
1759
+ ) }), Bo = () => /* @__PURE__ */ t.jsx("span", { role: "img", "aria-label": "left", className: "anticon anticon-left", children: /* @__PURE__ */ t.jsx(
1760
1760
  "svg",
1761
1761
  {
1762
1762
  viewBox: "64 64 896 896",
@@ -1767,7 +1767,7 @@ const $e = (e = ".w-wrapper-body") => {
1767
1767
  "aria-hidden": "true",
1768
1768
  children: /* @__PURE__ */ t.jsx("path", { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" })
1769
1769
  }
1770
- ) }), Bo = () => /* @__PURE__ */ t.jsx("span", { role: "img", "aria-label": "right", className: "anticon anticon-right", children: /* @__PURE__ */ t.jsx(
1770
+ ) }), Wo = () => /* @__PURE__ */ t.jsx("span", { role: "img", "aria-label": "right", className: "anticon anticon-right", children: /* @__PURE__ */ t.jsx(
1771
1771
  "svg",
1772
1772
  {
1773
1773
  viewBox: "64 64 896 896",
@@ -1972,14 +1972,14 @@ 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 = z(() => ({
1975
+ const o = K(() => ({
1976
1976
  minimize: Fo,
1977
1977
  expand: Io,
1978
1978
  send: $o,
1979
1979
  stop: Uo,
1980
1980
  sync: Ho,
1981
- left: Wo,
1982
- right: Bo,
1981
+ left: Bo,
1982
+ right: Wo,
1983
1983
  like: () => /* @__PURE__ */ t.jsx(Yo, { ...n }),
1984
1984
  dislike: () => /* @__PURE__ */ t.jsx(Vo, { ...n }),
1985
1985
  delete: zo,
@@ -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 = z(() => n === "va", [n]);
2000
+ const [n, r] = W("va"), o = K(() => n === "va", [n]);
2001
2001
  return /* @__PURE__ */ t.jsx(
2002
2002
  rr.Provider,
2003
2003
  {
@@ -2022,40 +2022,40 @@ 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 = z(() => {
2025
+ ), [i] = Se.useForm(), [a, l] = W(!1), [g, m] = W(""), { setChats: h } = De(), { objInitPayload: p, isUserInputHide: y } = de(), { activeTab: j } = Ue(), v = K(() => {
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 = z(() => {
2029
+ }, [e]), S = K(() => {
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 = z(() => {
2034
- if (h != null && h.uriBackend)
2033
+ }, [e]), T = K(() => {
2034
+ if (p != null && p.uriBackend)
2035
2035
  try {
2036
- return new URL(h.uriBackend).origin;
2036
+ return new URL(p.uriBackend).origin;
2037
2037
  } catch {
2038
2038
  return "";
2039
2039
  }
2040
2040
  return "";
2041
- }, [h == null ? void 0 : h.uriBackend]), w = (x) => {
2042
- var _;
2041
+ }, [p == null ? void 0 : p.uriBackend]), _ = (x) => {
2042
+ var B;
2043
2043
  const E = x === "like" ? e == null ? void 0 : e.text_thumbsup_link : e == null ? void 0 : e.text_thumbsdown_link, {
2044
2044
  access_token: f = "",
2045
2045
  companycode: b = "",
2046
2046
  companyid: u = "",
2047
2047
  uriBackend: C = "",
2048
2048
  uriBackendEnt: A = "",
2049
- lang: N = ""
2050
- } = h || {}, O = g === "another" ? i == null ? void 0 : i.getFieldValue("additional_feedback") : g;
2051
- (_ = ot({
2049
+ lang: L = ""
2050
+ } = p || {}, D = g === "another" ? i == null ? void 0 : i.getFieldValue("additional_feedback") : g;
2051
+ (B = rt({
2052
2052
  method: "POST",
2053
2053
  url: E,
2054
2054
  data: {
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: O
2058
+ additional_feedback: D
2059
2059
  }
2060
2060
  },
2061
2061
  headers: {
@@ -2067,37 +2067,37 @@ const $e = (e = ".w-wrapper-body") => {
2067
2067
  uriBackendEnt: `${A}`,
2068
2068
  "custom-origin": `${T}`,
2069
2069
  "Acc-Name": `${b.toUpperCase()}`,
2070
- Language: `${N}`
2070
+ Language: `${L}`
2071
2071
  }
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({
2072
+ })) == null || B.then((w) => {
2073
+ var N, G, H;
2074
+ (w == null ? void 0 : w.status) === 200 && (a && l(!1), (N = _e) == null || N.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
- }), (q = _e) == null || q.success({
2079
+ }), (H = _e) == null || H.success({
2080
2080
  message: c,
2081
2081
  className: "w-notification-content"
2082
- }), p((F) => {
2083
- var se;
2084
- return (se = F == null ? void 0 : F.map((te) => {
2082
+ }), h((F) => {
2083
+ var re;
2084
+ return (re = F == null ? void 0 : F.map((te) => {
2085
2085
  var M;
2086
2086
  if (we(te, "chats")) {
2087
- const P = (M = te == null ? void 0 : te.chats) == null ? void 0 : M.map((B) => (B == null ? void 0 : B.indexChat) === (e == null ? void 0 : e.indexChat) ? {
2088
- ...B,
2087
+ const Z = (M = te == null ? void 0 : te.chats) == null ? void 0 : M.map((V) => (V == null ? void 0 : V.indexChat) === (e == null ? void 0 : e.indexChat) ? {
2088
+ ...V,
2089
2089
  feedback: x
2090
- } : B);
2090
+ } : V);
2091
2091
  return {
2092
2092
  ...te,
2093
- chats: P
2093
+ chats: Z
2094
2094
  };
2095
2095
  }
2096
2096
  return (e == null ? void 0 : e.id) === (te == null ? void 0 : te.id) ? {
2097
2097
  ...te,
2098
2098
  feedback: x
2099
2099
  } : te;
2100
- })) == null ? void 0 : se.flat();
2100
+ })) == null ? void 0 : re.flat();
2101
2101
  }));
2102
2102
  });
2103
2103
  };
@@ -2106,16 +2106,16 @@ const $e = (e = ".w-wrapper-body") => {
2106
2106
  (x = _e) == null || x.destroy();
2107
2107
  }, [j]), y ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2108
2108
  v && /* @__PURE__ */ t.jsx(
2109
- le,
2109
+ fe,
2110
2110
  {
2111
2111
  icon: /* @__PURE__ */ t.jsx(xe, { type: "like", chatProps: e }),
2112
2112
  onClick: () => {
2113
- (e == null ? void 0 : e.feedback) !== "like" && w("like");
2113
+ (e == null ? void 0 : e.feedback) !== "like" && _("like");
2114
2114
  }
2115
2115
  }
2116
2116
  ),
2117
2117
  S && /* @__PURE__ */ t.jsx(
2118
- le,
2118
+ fe,
2119
2119
  {
2120
2120
  icon: /* @__PURE__ */ t.jsx(xe, { type: "dislike", chatProps: e }),
2121
2121
  onClick: () => {
@@ -2133,7 +2133,7 @@ const $e = (e = ".w-wrapper-body") => {
2133
2133
  l(!1);
2134
2134
  },
2135
2135
  onOk: () => {
2136
- w("dislike");
2136
+ _("dislike");
2137
2137
  },
2138
2138
  children: [
2139
2139
  /* @__PURE__ */ t.jsx("p", { style: { textAlign: "center", fontWeight: 600, fontSize: 14 }, children: n }),
@@ -2162,7 +2162,7 @@ const $e = (e = ".w-wrapper-body") => {
2162
2162
  }
2163
2163
  )
2164
2164
  ] });
2165
- }, os = K(rs), ss = ({
2165
+ }, os = X(rs), ss = ({
2166
2166
  showFeedback: e = !0,
2167
2167
  showRegenerate: n = !0,
2168
2168
  position: r = "left",
@@ -2175,8 +2175,8 @@ const $e = (e = ".w-wrapper-body") => {
2175
2175
  onSendMsg: l,
2176
2176
  setChats: g,
2177
2177
  loadingRegenerate: m,
2178
- currRegenerateId: p
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(() => {
2178
+ currRegenerateId: h
2179
+ } = De(), p = K(() => o == null ? void 0 : o.sender, [o]), y = K(() => a == null ? void 0 : a.filter((_) => (_ == null ? void 0 : _.sender) === "client"), [a]), j = K(() => n && p === "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", [p, y, a, o, n]), v = K(() => {
2180
2180
  switch (r) {
2181
2181
  case "left":
2182
2182
  return "flex-start";
@@ -2185,17 +2185,17 @@ const $e = (e = ".w-wrapper-body") => {
2185
2185
  case "right":
2186
2186
  return "flex-end";
2187
2187
  }
2188
- }, [r]), S = z(() => e && (o == null ? void 0 : o.text_FeedbackIcons) === "hidup", [o, e]), T = () => {
2188
+ }, [r]), S = K(() => e && (o == null ? void 0 : o.text_FeedbackIcons) === "hidup", [o, e]), T = () => {
2189
2189
  if (!s) return;
2190
2190
  i(!1);
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];
2191
+ const _ = 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];
2192
2192
  g(
2193
2193
  (E = []) => E == null ? void 0 : E.map((f, b) => b === (E == null ? void 0 : E.length) - 1 && (f == null ? void 0 : f.sender) === "response" ? {
2194
2194
  ...f,
2195
2195
  generated_id: (x == null ? void 0 : x.generated_id) ?? c
2196
2196
  } : f)
2197
- ), p.current = (x == null ? void 0 : x.generated_id) ?? c, l({
2198
- msg: w == null ? void 0 : w.text,
2197
+ ), h.current = (x == null ? void 0 : x.generated_id) ?? c, l({
2198
+ msg: _ == null ? void 0 : _.text,
2199
2199
  additionalConfig: {
2200
2200
  generate_id: (x == null ? void 0 : x.generated_id) ?? c
2201
2201
  },
@@ -2212,7 +2212,7 @@ const $e = (e = ".w-wrapper-body") => {
2212
2212
  },
2213
2213
  children: [
2214
2214
  j && /* @__PURE__ */ t.jsx(
2215
- le,
2215
+ fe,
2216
2216
  {
2217
2217
  loading: m,
2218
2218
  disabled: !s,
@@ -2226,8 +2226,8 @@ const $e = (e = ".w-wrapper-body") => {
2226
2226
  ]
2227
2227
  }
2228
2228
  ) });
2229
- }, Vt = K(ss), is = ({ nameFallback: e = "", ...n }) => /* @__PURE__ */ t.jsx(
2230
- Wr,
2229
+ }, Vt = X(ss), is = ({ nameFallback: e = "", ...n }) => /* @__PURE__ */ t.jsx(
2230
+ Br,
2231
2231
  {
2232
2232
  ...typeof (n == null ? void 0 : n.onError) != "function" && {
2233
2233
  fallback: Zt(e)
@@ -2236,10 +2236,10 @@ const $e = (e = ".w-wrapper-body") => {
2236
2236
  loading: "lazy",
2237
2237
  ...n
2238
2238
  }
2239
- ), Qt = K(is), as = ({ nameFallback: e = "", ...n }) => {
2240
- const r = re(0);
2239
+ ), Qt = X(is), as = ({ nameFallback: e = "", ...n }) => {
2240
+ const r = oe(0);
2241
2241
  return /* @__PURE__ */ t.jsx(
2242
- Bn,
2242
+ Wn,
2243
2243
  {
2244
2244
  ...n,
2245
2245
  src: /* @__PURE__ */ t.jsx(
@@ -2256,33 +2256,33 @@ const $e = (e = ".w-wrapper-body") => {
2256
2256
  )
2257
2257
  }
2258
2258
  );
2259
- }, Ye = K(as);
2260
- Ye.Group = Bn.Group;
2259
+ }, Ye = X(as);
2260
+ Ye.Group = Wn.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 = K(cs), ls = () => {
2267
- const { widgetProps: e } = ue();
2266
+ ] }), or = X(cs), ls = () => {
2267
+ const { widgetProps: e } = de();
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 = K(ls), us = ({ src: e, name: n }) => /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2272
+ }, en = X(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 = K(us), ds = ({ ...e }) => {
2276
- var m, p;
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
- const h = l == null ? void 0 : l[(l == null ? void 0 : l.length) - 1];
2279
- return (h == null ? void 0 : h.generated_id) === c.current;
2275
+ ] }), pt = X(us), ds = ({ ...e }) => {
2276
+ var m, h;
2277
+ const [n, r] = W(1), { loadingRegenerate: o, currRegenerateId: c } = De(), { isExpand: s, widgetProps: i } = de(), a = K(() => e == null ? void 0 : e.sender, [e]), l = K(() => e == null ? void 0 : e.chats, [e == null ? void 0 : e.chats]), g = K(() => {
2278
+ const p = l == null ? void 0 : l[(l == null ? void 0 : l.length) - 1];
2279
+ return (p == null ? void 0 : p.generated_id) === c.current;
2280
2280
  }, [l, e, c.current]);
2281
2281
  return pe(() => {
2282
2282
  !o && (l == null ? void 0 : l.length) > 0 && (r(l == null ? void 0 : l.length), $e());
2283
2283
  }, [o]), o && g ? /* @__PURE__ */ t.jsx(en, {}) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2284
2284
  a === "response" && /* @__PURE__ */ t.jsx(pt, { name: i == null ? void 0 : i.title, src: St }),
2285
- /* @__PURE__ */ t.jsx("div", { style: { display: "flex", gap: 8 }, children: l == null ? void 0 : l.map((h, y) => {
2285
+ /* @__PURE__ */ t.jsx("div", { style: { display: "flex", gap: 8 }, children: l == null ? void 0 : l.map((p, y) => {
2286
2286
  var S;
2287
2287
  const j = y === ((S = e == null ? void 0 : e.chats) == null ? void 0 : S.length) - 1, v = n === y + 1;
2288
2288
  return /* @__PURE__ */ t.jsxs(
@@ -2306,8 +2306,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2306
2306
  {
2307
2307
  className: `w-bubble-chat w-bubble-chat-regenerate ${`w-${a}`} ${s ? "w-bubble-chat-regenerate-expand" : ""}`,
2308
2308
  children: [
2309
- /* @__PURE__ */ t.jsx(nr, { tag: h == null ? void 0 : h.tag, reason: h == null ? void 0 : h.reason, children: h == null ? void 0 : h.text }),
2310
- a === "response" && /* @__PURE__ */ t.jsx("span", { style: { fontSize: 12, color: "rgba(0,0,0,0.4)" }, children: h == null ? void 0 : h.timestamp })
2309
+ /* @__PURE__ */ t.jsx(nr, { tag: p == null ? void 0 : p.tag, reason: p == null ? void 0 : p.reason, children: p == null ? void 0 : p.text }),
2310
+ a === "response" && /* @__PURE__ */ t.jsx("span", { style: { fontSize: 12, color: "rgba(0,0,0,0.4)" }, children: p == null ? void 0 : p.timestamp })
2311
2311
  ]
2312
2312
  }
2313
2313
  )
@@ -2318,7 +2318,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2318
2318
  {
2319
2319
  showFeedback: !0,
2320
2320
  showRegenerate: !1,
2321
- ...h
2321
+ ...p
2322
2322
  }
2323
2323
  )
2324
2324
  ]
@@ -2337,14 +2337,14 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2337
2337
  ),
2338
2338
  /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 4, alignItems: "center" }, children: [
2339
2339
  /* @__PURE__ */ t.jsx(
2340
- le,
2340
+ fe,
2341
2341
  {
2342
2342
  size: "small",
2343
2343
  shape: "circle",
2344
2344
  disabled: n === 1,
2345
2345
  icon: /* @__PURE__ */ t.jsx(xe, { type: "left" }),
2346
2346
  onClick: () => {
2347
- n > 1 && r((h) => h - 1);
2347
+ n > 1 && r((p) => p - 1);
2348
2348
  }
2349
2349
  }
2350
2350
  ),
@@ -2354,22 +2354,22 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2354
2354
  (m = e == null ? void 0 : e.chats) == null ? void 0 : m.length
2355
2355
  ] }),
2356
2356
  /* @__PURE__ */ t.jsx(
2357
- le,
2357
+ fe,
2358
2358
  {
2359
2359
  size: "small",
2360
2360
  shape: "circle",
2361
- disabled: n === ((p = e == null ? void 0 : e.chats) == null ? void 0 : p.length),
2361
+ disabled: n === ((h = e == null ? void 0 : e.chats) == null ? void 0 : h.length),
2362
2362
  icon: /* @__PURE__ */ t.jsx(xe, { type: "right" }),
2363
2363
  onClick: () => {
2364
- var h;
2365
- n < ((h = e == null ? void 0 : e.chats) == null ? void 0 : h.length) && r((y) => y + 1);
2364
+ var p;
2365
+ n < ((p = e == null ? void 0 : e.chats) == null ? void 0 : p.length) && r((y) => y + 1);
2366
2366
  }
2367
2367
  }
2368
2368
  )
2369
2369
  ] })
2370
2370
  ] })
2371
2371
  ] });
2372
- }, fs = K(ds), gs = ({ date: e, format: n, sender: r, ...o }) => {
2372
+ }, fs = X(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 = K(gs), ps = ({ showResponseInfo: e = !0, ...n }) => {
2392
+ }, ht = X(gs), ps = ({ showResponseInfo: e = !0, ...n }) => {
2393
2393
  var m;
2394
- const { loadingRegenerate: r, chats: o, reasonMap: c } = De(), { widgetProps: s } = ue(), i = z(
2394
+ const { loadingRegenerate: r, chats: o, reasonMap: c } = De(), { widgetProps: s } = de(), i = K(
2395
2395
  () => (o == null ? void 0 : o.length) - 1 === (n == null ? void 0 : n.indexChat),
2396
2396
  [o]
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]);
2397
+ ), a = K(() => n == null ? void 0 : n.sender, [n]), l = K(() => ((n == null ? void 0 : n.id) || "").split("|")[0], [n]), g = K(() => 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 = K(ps), hs = () => {
2414
+ }, dt = X(ps), hs = () => {
2415
2415
  const e = I(
2416
2416
  "PleaseUploadFile",
2417
2417
  "Please upload specify file that needed to complete your request"
@@ -2453,7 +2453,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2453
2453
  c(g == null ? void 0 : g.file);
2454
2454
  },
2455
2455
  children: /* @__PURE__ */ t.jsx(
2456
- le,
2456
+ fe,
2457
2457
  {
2458
2458
  icon: /* @__PURE__ */ t.jsx(xe, { type: "upload" }),
2459
2459
  disabled: s,
@@ -2463,7 +2463,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2463
2463
  }
2464
2464
  ),
2465
2465
  /* @__PURE__ */ t.jsx(
2466
- le,
2466
+ fe,
2467
2467
  {
2468
2468
  type: "dashed",
2469
2469
  onClick: l,
@@ -2475,13 +2475,13 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2475
2475
  ]
2476
2476
  }
2477
2477
  );
2478
- }, xs = K(hs), ms = () => {
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 = () => {
2478
+ }, xs = X(hs), ms = () => {
2479
+ const [e, n] = W(!1), [r, o] = W(!1), [c, s] = W(!1), [i, a] = W(3), [l, g] = W(!1), [m, h] = W(""), { widgetProps: p } = de(), { onSendMsg: y, chats: j } = De(), { onSubmitPYPwd: v = () => {
2480
2480
  }, onCheckPYAccess: S = () => {
2481
- } } = (h == null ? void 0 : h.onPayslipFn) || {}, T = I(
2481
+ } } = (p == null ? void 0 : p.onPayslipFn) || {}, T = I(
2482
2482
  "ProvidePasswordPayslip",
2483
2483
  "Please provide your password account to access the download"
2484
- ), w = I("Cancel", "Cancel"), x = I("Submit", "Submit"), E = I("Password", "Password"), f = I("IsRequired", "Is Required"), b = I(
2484
+ ), _ = I("Cancel", "Cancel"), x = I("Submit", "Submit"), E = I("Password", "Password"), f = I("IsRequired", "Is Required"), b = I(
2485
2485
  "PrepareTheFiles",
2486
2486
  "Prepare the files"
2487
2487
  ), u = I(
@@ -2493,50 +2493,50 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2493
2493
  ), A = I(
2494
2494
  "WrongPwdPayslip",
2495
2495
  "The password you entered is incorrect. Please try again or contact support if you need assistance"
2496
- ), N = I(
2496
+ ), L = I(
2497
2497
  "SessionExpired",
2498
2498
  "Session expired. Please log in again to continue"
2499
- ), [O] = Se.useForm(), _ = () => {
2500
- var G, q, F;
2501
- s(!0), g(!0), (F = (q = (G = S()) == null ? void 0 : G.then((se) => {
2499
+ ), [D] = Se.useForm(), B = () => {
2500
+ var G, H, F;
2501
+ s(!0), g(!0), (F = (H = (G = S()) == null ? void 0 : G.then((re) => {
2502
2502
  var k, M;
2503
- const te = (M = (k = se == null ? void 0 : se.data) == null ? void 0 : k.DATA) == null ? void 0 : M.RESULT;
2504
- te && y({ msg: "Valid" }), n(te), p("");
2505
- })) == null ? void 0 : q.catch((se) => {
2506
- p(se == null ? void 0 : se.toString());
2503
+ const te = (M = (k = re == null ? void 0 : re.data) == null ? void 0 : k.DATA) == null ? void 0 : M.RESULT;
2504
+ te && y({ msg: "Valid" }), n(te), h("");
2505
+ })) == null ? void 0 : H.catch((re) => {
2506
+ h(re == null ? void 0 : re.toString());
2507
2507
  })) == null || F.finally(() => {
2508
2508
  o(!1), g(!1);
2509
2509
  });
2510
- }, R = () => {
2510
+ }, w = () => {
2511
2511
  y({ msg: "cancel" }), s(!1);
2512
- }, H = () => {
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
- var F, se;
2517
- o(!0), (se = (F = v(G)) == null ? void 0 : F.then(({ data: te }) => {
2512
+ }, N = () => {
2513
+ var H;
2514
+ const G = D == null ? void 0 : D.getFieldValue("pwd");
2515
+ (H = D == null ? void 0 : D.validateFields()) == null || H.then(() => {
2516
+ var F, re;
2517
+ o(!0), (re = (F = v(G)) == null ? void 0 : F.then(({ data: te }) => {
2518
2518
  var k;
2519
- (k = te == null ? void 0 : te.DATA) != null && k.ISVALID ? _() : (p(A), a(i - 1), o(!1));
2520
- })) == null || se.catch((te) => {
2521
- var M, P, B, Y, Z;
2519
+ (k = te == null ? void 0 : te.DATA) != null && k.ISVALID ? B() : (h(A), a(i - 1), o(!1));
2520
+ })) == null || re.catch((te) => {
2521
+ var M, Z, V, P, ee;
2522
2522
  const k = te == null ? void 0 : te.response;
2523
2523
  if ((k == null ? void 0 : k.status) === 401) {
2524
- const X = (P = (M = k == null ? void 0 : k.data) == null ? void 0 : M.ERRORS) == null ? void 0 : P.includes(
2524
+ const J = (Z = (M = k == null ? void 0 : k.data) == null ? void 0 : M.ERRORS) == null ? void 0 : Z.includes(
2525
2525
  "ACCESS_TOKEN_EXPIRED"
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(
2526
+ ), q = (ee = (P = (V = k == null ? void 0 : k.data) == null ? void 0 : V.MESSAGE) == null ? void 0 : P.toLowerCase()) == null ? void 0 : ee.includes(
2527
2527
  "invalid password"
2528
2528
  );
2529
- X && p(N), J && (p(A), a(i - 1), o(!1));
2529
+ J && h(L), q && (h(A), a(i - 1), o(!1));
2530
2530
  } else
2531
- p(te == null ? void 0 : te.toString());
2531
+ h(te == null ? void 0 : te.toString());
2532
2532
  o(!1);
2533
2533
  });
2534
2534
  });
2535
2535
  };
2536
2536
  return pe(() => {
2537
- var q;
2537
+ var H;
2538
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" && _();
2539
+ ((H = G == null ? void 0 : G.attachment) == null ? void 0 : H.type) === "show_password_wp" && B();
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: O,
2562
+ form: D,
2563
2563
  layout: "vertical",
2564
2564
  style: { display: "flex", flexDirection: "column", gap: 8 },
2565
2565
  children: [
@@ -2579,12 +2579,12 @@ 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: R, children: w }),
2582
+ /* @__PURE__ */ t.jsx(fe, { disabled: r, onClick: w, children: _ }),
2583
2583
  /* @__PURE__ */ t.jsx(
2584
- le,
2584
+ fe,
2585
2585
  {
2586
2586
  type: "primary",
2587
- onClick: H,
2587
+ onClick: N,
2588
2588
  loading: r,
2589
2589
  htmlType: "submit",
2590
2590
  children: x
@@ -2597,13 +2597,13 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2597
2597
  )
2598
2598
  }
2599
2599
  ) : null;
2600
- }, ys = K(ms), vs = ({ ...e }) => {
2600
+ }, ys = X(ms), vs = ({ ...e }) => {
2601
2601
  var a;
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
- var g, m, p, h;
2602
+ const { objInitPayload: n } = de(), [r, o] = W(!1), c = I("Error", "Error"), s = K(() => Kn(n == null ? void 0 : n.access_token), [n]), i = () => {
2603
+ var g, m, h, p;
2604
2604
  o(!0);
2605
2605
  const l = e == null ? void 0 : e.attachment;
2606
- (h = (p = (m = ot({
2606
+ (p = (h = (m = rt({
2607
2607
  method: "POST",
2608
2608
  url: l == null ? void 0 : l.endpoint,
2609
2609
  data: l == null ? void 0 : l.body,
@@ -2616,10 +2616,10 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2616
2616
  },
2617
2617
  responseType: "blob"
2618
2618
  })) == null ? void 0 : m.then((y) => {
2619
- var w;
2620
- const j = (w = l == null ? void 0 : l.body) == null ? void 0 : w.media, v = `${l == null ? void 0 : l.filename}.${j}`, S = new Blob([y == null ? void 0 : y.data]), T = URL == null ? void 0 : URL.createObjectURL(S);
2619
+ var _;
2620
+ const j = (_ = l == null ? void 0 : l.body) == null ? void 0 : _.media, v = `${l == null ? void 0 : l.filename}.${j}`, S = new Blob([y == null ? void 0 : y.data]), T = URL == null ? void 0 : URL.createObjectURL(S);
2621
2621
  Pt({ downloadURL: T, fileName: v }), URL.revokeObjectURL(T);
2622
- })) == null ? void 0 : p.catch((y) => {
2622
+ })) == null ? void 0 : h.catch((y) => {
2623
2623
  var v, S, T;
2624
2624
  const j = y == null ? void 0 : y.message;
2625
2625
  (v = _e) == null || v.destroy(), (S = _e) == null || S.config({
@@ -2632,7 +2632,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2632
2632
  className: "w-notification-content",
2633
2633
  duration: 3
2634
2634
  });
2635
- })) == null || h.finally(() => {
2635
+ })) == null || p.finally(() => {
2636
2636
  o(!1);
2637
2637
  });
2638
2638
  };
@@ -2642,10 +2642,10 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2642
2642
  className: "w-bubble-chat w-response",
2643
2643
  onClick: i,
2644
2644
  style: { cursor: "pointer" },
2645
- children: /* @__PURE__ */ t.jsxs(Br, { spinning: r, children: [
2645
+ children: /* @__PURE__ */ t.jsxs(Wr, { spinning: r, children: [
2646
2646
  /* @__PURE__ */ t.jsx(ie.Link, { children: (a = e == null ? void 0 : e.attachment) == null ? void 0 : a.filename }),
2647
2647
  /* @__PURE__ */ t.jsx(
2648
- le,
2648
+ fe,
2649
2649
  {
2650
2650
  icon: /* @__PURE__ */ t.jsx(
2651
2651
  xe,
@@ -2660,8 +2660,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2660
2660
  ] })
2661
2661
  }
2662
2662
  );
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(() => {
2663
+ }, bs = X(vs), Cs = ({ ...e }) => {
2664
+ const n = oe(), r = I("DownloadChart", "Download Chart"), o = K(() => e == null ? void 0 : e.attachment, [e == null ? void 0 : e.attachment]), c = K(() => {
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;
@@ -2701,7 +2701,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2701
2701
  }
2702
2702
  ),
2703
2703
  /* @__PURE__ */ t.jsx("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ t.jsx(
2704
- le,
2704
+ fe,
2705
2705
  {
2706
2706
  onClick: () => {
2707
2707
  s();
@@ -2710,7 +2710,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2710
2710
  }
2711
2711
  ) })
2712
2712
  ] });
2713
- }, Ts = K(Cs), Es = ({ ...e }) => {
2713
+ }, Ts = X(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,8 +2726,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2726
2726
  default:
2727
2727
  return null;
2728
2728
  }
2729
- }, Ss = K(Es), ws = () => {
2730
- const { isOpenWidget: e, widgetProps: n } = ue(), { chats: r, isWaitResponse: o } = De(), { activeTab: c } = Ue();
2729
+ }, Ss = X(Es), ws = () => {
2730
+ const { isOpenWidget: e, widgetProps: n } = de(), { chats: r, isWaitResponse: o } = De(), { activeTab: c } = Ue();
2731
2731
  return pe(() => {
2732
2732
  $e();
2733
2733
  }, [c]), e ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -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 = K(ws), sr = () => {
2751
- const { objInitPayload: e, setObjInitPayload: n, parsedJWT: r } = ue(), o = z(() => {
2750
+ }, _s = X(ws), sr = () => {
2751
+ const { objInitPayload: e, setObjInitPayload: n, parsedJWT: r } = de(), o = K(() => {
2752
2752
  var s;
2753
2753
  return {
2754
2754
  Authorization: `Bearer ${e == null ? void 0 : e.access_token}`,
@@ -2759,9 +2759,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2759
2759
  };
2760
2760
  }, [e]);
2761
2761
  return async (s) => {
2762
- var g, m, p;
2762
+ var g, m, h;
2763
2763
  const { onSuccess: i, onError: a, onFinally: l } = s ?? {};
2764
- (p = (m = (g = ot({
2764
+ (h = (m = (g = rt({
2765
2765
  url: e == null ? void 0 : e.uriBackend,
2766
2766
  params: {
2767
2767
  ofid: "sfsystem.RefreshToken",
@@ -2772,9 +2772,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2772
2772
  },
2773
2773
  headers: o,
2774
2774
  method: "POST"
2775
- })) == null ? void 0 : g.then((h) => {
2775
+ })) == null ? void 0 : g.then((p) => {
2776
2776
  var v;
2777
- const y = (v = h == null ? void 0 : h.data) == null ? void 0 : v.DATA, j = {
2777
+ const y = (v = p == null ? void 0 : p.data) == null ? void 0 : v.DATA, j = {
2778
2778
  access_token: y == null ? void 0 : y.JWT_TOKEN,
2779
2779
  refresh_token: e == null ? void 0 : e.refresh_token,
2780
2780
  uagent: e == null ? void 0 : e.uagent,
@@ -2787,16 +2787,16 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2787
2787
  uriBackendHRMGO: e == null ? void 0 : e.uriBackendHRMGO,
2788
2788
  config: e == null ? void 0 : e.config
2789
2789
  };
2790
- n(j), typeof i == "function" && i(h);
2791
- })) == null ? void 0 : m.catch((h) => {
2792
- typeof a == "function" && a(h);
2793
- })) == null || p.finally(() => {
2790
+ n(j), typeof i == "function" && i(p);
2791
+ })) == null ? void 0 : m.catch((p) => {
2792
+ typeof a == "function" && a(p);
2793
+ })) == null || h.finally(() => {
2794
2794
  typeof l == "function" && l();
2795
2795
  });
2796
2796
  };
2797
2797
  }, xt = () => {
2798
2798
  var i;
2799
- const e = re(new AbortController()), { objInitPayload: n, parsedJWT: r } = ue(), o = sr(), c = {
2799
+ const e = oe(new AbortController()), { objInitPayload: n, parsedJWT: r } = de(), o = sr(), c = {
2800
2800
  Authorization: `Bearer ${n == null ? void 0 : n.access_token}`,
2801
2801
  coid: r == null ? void 0 : r.COID,
2802
2802
  "Acc-Name": (i = r == null ? void 0 : r.INSTANCE) == null ? void 0 : i.toLowerCase(),
@@ -2807,12 +2807,12 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2807
2807
  endpoint: l,
2808
2808
  method: g = "POST",
2809
2809
  headers: m,
2810
- apiType: p = "go",
2811
- ...h
2810
+ apiType: h = "go",
2811
+ ...p
2812
2812
  }) => {
2813
- var T, w, x, E, f, b;
2813
+ var T, _, x, E, f, b;
2814
2814
  const j = {
2815
- url: p === "lc" ? n == null ? void 0 : n.uriBackend : p === "go" && l ? `${n == null ? void 0 : n.uriBackendHRMGO}${l}` : a,
2815
+ url: h === "lc" ? n == null ? void 0 : n.uriBackend : h === "go" && l ? `${n == null ? void 0 : n.uriBackendHRMGO}${l}` : a,
2816
2816
  ...e.current && {
2817
2817
  signal: (T = e == null ? void 0 : e.current) == null ? void 0 : T.signal
2818
2818
  },
@@ -2822,8 +2822,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2822
2822
  "Company-Code": n == null ? void 0 : n.companycode
2823
2823
  },
2824
2824
  method: g,
2825
- ...h
2826
- }, v = (w = ot) == null ? void 0 : w.create(j);
2825
+ ...p
2826
+ }, v = (_ = rt) == null ? void 0 : _.create(j);
2827
2827
  return (E = (x = v == null ? void 0 : v.interceptors) == null ? void 0 : x.request) == null || E.use(
2828
2828
  (u) => (n != null && n.access_token && (u.headers.Authorization = `Bearer ${n == null ? void 0 : n.access_token}`), u),
2829
2829
  (u) => {
@@ -2835,8 +2835,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2835
2835
  var A;
2836
2836
  const C = u == null ? void 0 : u.config;
2837
2837
  if (((A = u == null ? void 0 : u.response) == null ? void 0 : A.status) === 401) {
2838
- const N = await o();
2839
- return C.headers.Authorization = `Bearer ${N}`, ot(C);
2838
+ const L = await o();
2839
+ return C.headers.Authorization = `Bearer ${L}`, rt(C);
2840
2840
  }
2841
2841
  return Promise == null ? void 0 : Promise.reject(u);
2842
2842
  }
@@ -2847,10 +2847,10 @@ 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 O;
2850
+ var B;
2851
2851
  const e = I(
2852
- "ContinueWithoutUpload",
2853
- "Continue without Upload"
2852
+ "NoFileSelected",
2853
+ "No File Selected"
2854
2854
  ), {
2855
2855
  onSendMsg: n,
2856
2856
  setChats: r,
@@ -2862,88 +2862,87 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2862
2862
  connected: l,
2863
2863
  isInputDisabled: g,
2864
2864
  isShowUpload: m,
2865
- setShowUpload: p,
2866
- isLoadingUpload: h,
2865
+ setShowUpload: h,
2866
+ isLoadingUpload: p,
2867
2867
  setLoadingUpload: y
2868
- } = De(), { isUserInputHide: j } = ue(), { isActiveTabVA: v } = Ue(), S = z(() => {
2869
- var R;
2870
- const _ = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
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;
2868
+ } = De(), { isUserInputHide: j } = de(), { isActiveTabVA: v } = Ue(), S = K(() => {
2869
+ var N;
2870
+ const w = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
2871
+ return (w == null ? void 0 : w.sender) === "response" && ((N = w == null ? void 0 : w.attachment) == null ? void 0 : N.type) === "fileuploader";
2872
+ }, [a]), T = oe(), [_, x] = W(!1), [E, f] = W(!1), b = K(() => o || !E, [E, o]), u = xt(), C = (w, N) => u(w === "hrm-go" ? {
2873
+ apiType: "go",
2874
+ endpoint: "/upload/temp",
2875
+ data: N
2876
+ } : {
2877
+ apiType: "lc",
2878
+ params: {
2879
+ ofid: "SFUtil.UploadFile"
2880
+ },
2881
+ data: N
2882
+ }), A = () => {
2883
+ var P, ee;
2874
2884
  y(!0);
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
- apiType: "lc",
2878
- params: {
2879
- ofid: "SFUtil.UploadFile"
2880
- },
2881
- data: _
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
- y(!1);
2885
+ const w = new FormData(), N = new FormData(), G = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1], H = G == null ? void 0 : G.attachment, F = (H == null ? void 0 : H.prefix) || "WP", re = (H == null ? void 0 : H.apiType) || "lc", te = `${F}-${+/* @__PURE__ */ new Date()}`, k = /* @__PURE__ */ new Date(), M = k.getFullYear(), Z = String(k.getMonth() + 1).padStart(2, "0"), V = `${M}/${Z}`;
2886
+ w.append("file", s), w == null || w.append("rename", te), w == null || w.append("action", "UPLOAD"), w == null || w.append("filefield", te), w == null || w.append("method", "eligible"), w == null || w.append("hash", !1), w == null || w.append("subFolder", V), w == null || w.append("code", H == null ? void 0 : H.code), N.append("FILE", s), N.append("UPLOAD_CODE", H == null ? void 0 : H.UPLOAD_CODE), N.append("UPLOAD_TYPE", H == null ? void 0 : H.UPLOAD_TYPE), (ee = (P = C(re, re === "lc" ? w : N)) == null ? void 0 : P.then((J) => {
2887
+ var ae, O, me, Ce, ce;
2888
+ const q = (ae = J == null ? void 0 : J.data) == null ? void 0 : ae.DATA, z = (me = (O = q == null ? void 0 : q.LIST) == null ? void 0 : O.TEMP_PATH) == null ? void 0 : me.split("/"), $ = `${z == null ? void 0 : z[(z == null ? void 0 : z.length) - 2]}/${z == null ? void 0 : z[(z == null ? void 0 : z.length) - 1]}`, Y = re === "hrm-go" ? $ : `sf-filename ${(ce = (Ce = q == null ? void 0 : q.FILENAMES) == null ? void 0 : Ce[0]) == null ? void 0 : ce.SERVERFILE}`;
2889
+ n({ msg: Y }), h(!1);
2890
+ })) == null || ee.finally(() => {
2891
+ y(!1), i({});
2890
2892
  });
2891
- }, A = () => {
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
- if (!(_ != null && _.trim()) || o) return;
2895
- f(!1), n({ msg: _ }), x(!w);
2896
- const R = {
2897
- text: _,
2893
+ }, L = () => {
2894
+ var G, H, F, re;
2895
+ const w = (F = (H = (G = T == null ? void 0 : T.current) == null ? void 0 : G.resizableTextArea) == null ? void 0 : H.textArea) == null ? void 0 : F.value;
2896
+ if (!(w != null && w.trim()) || o) return;
2897
+ f(!1), n({ msg: w }), x(!_);
2898
+ const N = {
2899
+ text: w,
2898
2900
  sender: "client",
2899
2901
  type: "text",
2900
- timestamp: (F = je()) == null ? void 0 : F.format("hh:mm A")
2902
+ timestamp: (re = je()) == null ? void 0 : re.format("hh:mm A")
2901
2903
  };
2902
- r((se) => [...se, R]), $e();
2903
- }, N = () => {
2904
+ r((te) => [...te, N]), $e();
2905
+ }, D = () => {
2904
2906
  n({ msg: "SKIP_WAITING_RESPONSE" });
2905
2907
  };
2906
2908
  return pe(() => {
2907
- var _;
2908
- T != null && T.current && v && ((_ = T == null ? void 0 : T.current) == null || _.focus());
2909
+ var w;
2910
+ T != null && T.current && v && ((w = T == null ? void 0 : T.current) == null || w.focus());
2909
2911
  }, [v]), pe(() => {
2910
- S && p(!0);
2912
+ S && h(!0);
2911
2913
  }, [S]), j ? null : m ? /* @__PURE__ */ t.jsxs("div", { className: "w-input-container", style: { alignItems: "center" }, children: [
2912
- /* @__PURE__ */ t.jsx(ie.Text, { children: s == null ? void 0 : s.name }),
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
+ /* @__PURE__ */ t.jsx(
2915
+ ie.Text,
2916
+ {
2917
+ ...!(s != null && s.name) && {
2918
+ type: "secondary"
2919
+ },
2920
+ children: (s == null ? void 0 : s.name) || e
2921
+ }
2922
+ ),
2923
+ ((B = Object == null ? void 0 : Object.keys(s || {})) == null ? void 0 : B.length) > 0 ? /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2914
2924
  /* @__PURE__ */ t.jsx(
2915
- le,
2925
+ fe,
2916
2926
  {
2917
2927
  danger: !0,
2918
2928
  icon: /* @__PURE__ */ t.jsx(xe, { type: "delete" }),
2919
2929
  shape: "circle",
2920
2930
  onClick: () => i({}),
2921
- disabled: h
2931
+ disabled: p
2922
2932
  }
2923
2933
  ),
2924
2934
  /* @__PURE__ */ t.jsx(
2925
- le,
2935
+ fe,
2926
2936
  {
2927
2937
  className: "w-send-btn",
2928
2938
  style: { backgroundColor: "var(--primary-color, #395ebc)" },
2929
2939
  icon: /* @__PURE__ */ t.jsx(xe, { type: "send" }),
2930
2940
  shape: "circle",
2931
- onClick: C,
2932
- loading: h
2941
+ onClick: A,
2942
+ loading: p
2933
2943
  }
2934
2944
  )
2935
- ] }) : /* @__PURE__ */ t.jsx(tt, { title: e, children: /* @__PURE__ */ t.jsx(
2936
- le,
2937
- {
2938
- icon: /* @__PURE__ */ t.jsx(xe, { type: "close" }),
2939
- shape: "circle",
2940
- onClick: () => {
2941
- p(!1), n({
2942
- msg: "CANCEL UPLOAD"
2943
- });
2944
- }
2945
- }
2946
- ) })
2945
+ ] }) : null
2947
2946
  ] }) : /* @__PURE__ */ t.jsxs("div", { className: "w-input-container", children: [
2948
2947
  /* @__PURE__ */ t.jsx(
2949
2948
  gt.TextArea,
@@ -2952,40 +2951,40 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
2952
2951
  disabled: g || !l,
2953
2952
  ref: T,
2954
2953
  placeholder: "Type a message...",
2955
- onKeyDown: (_) => {
2956
- ((_ == null ? void 0 : _.code) === "Enter" || (_ == null ? void 0 : _.key) === "Enter") && !(_ != null && _.shiftKey) && A();
2954
+ onKeyDown: (w) => {
2955
+ ((w == null ? void 0 : w.code) === "Enter" || (w == null ? void 0 : w.key) === "Enter") && !(w != null && w.shiftKey) && L();
2957
2956
  },
2958
- onChange: ({ target: { value: _ } }) => {
2959
- const R = /\S/;
2957
+ onChange: ({ target: { value: w } }) => {
2958
+ const N = /\S/;
2960
2959
  _t({
2961
- input_va_value: _
2962
- }), _ && (R != null && R.test(_)) ? f(!0) : _ != null && _.trim() || f(!1);
2960
+ input_va_value: w
2961
+ }), w && (N != null && N.test(w)) ? f(!0) : w != null && w.trim() || f(!1);
2963
2962
  }
2964
2963
  },
2965
- w
2964
+ _
2966
2965
  ),
2967
2966
  o || c ? /* @__PURE__ */ t.jsx(
2968
- le,
2967
+ fe,
2969
2968
  {
2970
2969
  style: { border: "none" },
2971
2970
  icon: /* @__PURE__ */ t.jsx(xe, { type: "stop" }),
2972
2971
  shape: "circle",
2973
- onClick: N,
2972
+ onClick: D,
2974
2973
  size: "large"
2975
2974
  }
2976
2975
  ) : /* @__PURE__ */ t.jsx(
2977
- le,
2976
+ fe,
2978
2977
  {
2979
2978
  className: `w-send-btn ${b ? "w-send-btn-disabled" : ""}`,
2980
2979
  disabled: b || g,
2981
2980
  style: { backgroundColor: "var(--primary-color, #395ebc)" },
2982
2981
  icon: /* @__PURE__ */ t.jsx(xe, { type: "send" }),
2983
2982
  shape: "circle",
2984
- onClick: A
2983
+ onClick: L
2985
2984
  }
2986
2985
  )
2987
2986
  ] });
2988
- }, ks = K(js), As = ({ taskStatus: e }) => {
2987
+ }, ks = X(js), As = ({ taskStatus: e }) => {
2989
2988
  const n = I("InProgress", "In Progress"), r = I("New", "New"), o = I("Closed", "Closed"), c = I("Done", "Done"), s = I("HDCancelled", "Cancelled"), i = {
2990
2989
  "In Progress": n,
2991
2990
  Open: r,
@@ -3002,7 +3001,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3002
3001
  Fixed: "#bbfab7",
3003
3002
  Done: "#bbfab7",
3004
3003
  Cancelled: "#FFF2D6"
3005
- }, l = z(() => a[e] || a.Closed, [e]), g = z(() => i[e] || e, [e]);
3004
+ }, l = K(() => a[e] || a.Closed, [e]), g = K(() => i[e] || e, [e]);
3006
3005
  return /* @__PURE__ */ t.jsx(Yr, { color: l, children: /* @__PURE__ */ t.jsx(
3007
3006
  ie.Text,
3008
3007
  {
@@ -3012,7 +3011,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3012
3011
  children: g
3013
3012
  }
3014
3013
  ) }, e);
3015
- }, ir = K(As), Rs = ({ onClick: e, ...n }) => /* @__PURE__ */ t.jsxs(
3014
+ }, ir = X(As), Rs = ({ onClick: e, ...n }) => /* @__PURE__ */ t.jsxs(
3016
3015
  "div",
3017
3016
  {
3018
3017
  className: "w-ticket-card-container",
@@ -3054,8 +3053,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3054
3053
  ] })
3055
3054
  ]
3056
3055
  }
3057
- ), Ds = K(Rs), ar = Ve({}), He = () => ze(ar), Os = ({ children: e }) => {
3058
- const n = xt(), [r, o] = W([]), [c, s] = W(""), [i, a] = W(!1), [l, g] = W(!0), [m, p] = W(0), h = (y) => {
3056
+ ), Ds = X(Rs), ar = Ve({}), He = () => ze(ar), Os = ({ children: e }) => {
3057
+ const n = xt(), [r, o] = W([]), [c, s] = W(""), [i, a] = W(!1), [l, g] = W(!0), [m, h] = W(0), p = (y) => {
3059
3058
  var j, v, S, T;
3060
3059
  g(!0), (T = (S = n({
3061
3060
  endpoint: "/helpdesk/myticket/ticket-list",
@@ -3078,15 +3077,15 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3078
3077
  ORDER: "DESC"
3079
3078
  }
3080
3079
  }
3081
- })) == null ? void 0 : S.then((w) => {
3080
+ })) == null ? void 0 : S.then((_) => {
3082
3081
  var x, E, f;
3083
- (x = w == null ? void 0 : w.data) != null && x.DATA && o((f = (E = w == null ? void 0 : w.data) == null ? void 0 : E.DATA) == null ? void 0 : f.LIST);
3082
+ (x = _ == null ? void 0 : _.data) != null && x.DATA && o((f = (E = _ == null ? void 0 : _.data) == null ? void 0 : E.DATA) == null ? void 0 : f.LIST);
3084
3083
  })) == null || T.finally(() => {
3085
3084
  g(!1);
3086
3085
  });
3087
3086
  };
3088
3087
  return pe(() => {
3089
- h();
3088
+ p();
3090
3089
  }, []), /* @__PURE__ */ t.jsx(
3091
3090
  ar.Provider,
3092
3091
  {
@@ -3094,18 +3093,18 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3094
3093
  listTicket: r,
3095
3094
  ticketId: c,
3096
3095
  setTicketId: s,
3097
- getListTicket: h,
3096
+ getListTicket: p,
3098
3097
  openFilter: i,
3099
3098
  setOpenFilter: a,
3100
3099
  loadingListTicket: l,
3101
3100
  countFilters: m,
3102
- setCountFilters: p
3101
+ setCountFilters: h
3103
3102
  },
3104
3103
  children: e
3105
3104
  }
3106
3105
  );
3107
3106
  }, Ls = () => {
3108
- const e = I("SubjectSearch", "Subject Search"), n = I("AdvanceFilter", "Advance Filter"), r = re(null), { getListTicket: o, setOpenFilter: c, loadingListTicket: s, countFilters: i } = He();
3107
+ const e = I("SubjectSearch", "Subject Search"), n = I("AdvanceFilter", "Advance Filter"), r = oe(null), { getListTicket: o, setOpenFilter: c, loadingListTicket: s, countFilters: i } = He();
3109
3108
  return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, marginBottom: 12 }, children: [
3110
3109
  /* @__PURE__ */ t.jsx(
3111
3110
  gt,
@@ -3121,8 +3120,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3121
3120
  allowClear: !0
3122
3121
  }
3123
3122
  ),
3124
- /* @__PURE__ */ t.jsx(tt, { title: `${n} (${i})`, children: /* @__PURE__ */ t.jsx(Vr, { count: i, children: /* @__PURE__ */ t.jsx(
3125
- le,
3123
+ /* @__PURE__ */ t.jsx(lt, { title: `${n} (${i})`, children: /* @__PURE__ */ t.jsx(Vr, { count: i, children: /* @__PURE__ */ t.jsx(
3124
+ fe,
3126
3125
  {
3127
3126
  loading: s,
3128
3127
  icon: /* @__PURE__ */ t.jsx(xe, { type: "filter" }),
@@ -3132,8 +3131,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3132
3131
  }
3133
3132
  ) }) })
3134
3133
  ] }) });
3135
- }, Ms = K(Ls), cr = Ve({}), We = () => ze(cr), Ns = ({ children: e }) => {
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) => {
3134
+ }, Ms = X(Ls), cr = Ve({}), Be = () => ze(cr), Ns = ({ children: e }) => {
3135
+ const n = oe(null), r = oe(0), o = oe(!1), c = oe(null), [s, i] = W([]), [a, l] = W(0), [g, m] = W(!1), { objInitPayload: h, parsedJWT: p, isFirstRenderHelpdesk: y, setShowReadyWSHD: j } = de(), v = sr(), S = (E) => {
3137
3136
  const f = new WebSocket(E);
3138
3137
  f.onopen = () => {
3139
3138
  o.current = !0, r.current = 0, l(0), j(!0);
@@ -3144,33 +3143,33 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3144
3143
  `${Qe} - WebSocket disconnected:`,
3145
3144
  b
3146
3145
  ), 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
- }, f.onmessage = w(f), n.current = f;
3146
+ }, f.onmessage = _(f), n.current = f;
3148
3147
  }, T = async () => {
3149
- var _, R, H;
3150
- if (((_ = n.current) == null ? void 0 : _.readyState) === (WebSocket == null ? void 0 : WebSocket.CONNECTING)) return;
3148
+ var B, w, N;
3149
+ if (((B = n.current) == null ? void 0 : B.readyState) === (WebSocket == null ? void 0 : WebSocket.CONNECTING)) return;
3151
3150
  const {
3152
3151
  access_token: E,
3153
3152
  companyid: f = "",
3154
3153
  companycode: b = "",
3155
3154
  lang: u = "",
3156
3155
  uriBackendHRMGO: C = ""
3157
- } = p ?? {};
3156
+ } = h ?? {};
3158
3157
  if (!E || !f || !b) {
3159
3158
  console.warn(
3160
3159
  `${Qe} - Missing required WebSocket credentials.`
3161
3160
  );
3162
3161
  return;
3163
3162
  }
3164
- const A = `Bearer ${E}`, N = (R = `${C}/ws`) == null ? void 0 : R.replace("https://", "wss://"), O = {
3163
+ const A = `Bearer ${E}`, L = (w = `${C}/ws`) == null ? void 0 : w.replace("https://", "wss://"), D = {
3165
3164
  COMPANY_ID: f.toString(),
3166
3165
  COMPANY_CODE: b.toLowerCase(),
3167
3166
  LANGUAGE: u,
3168
- ACC_NAME: (H = h == null ? void 0 : h.INSTANCE) == null ? void 0 : H.toLowerCase(),
3167
+ ACC_NAME: (N = p == null ? void 0 : p.INSTANCE) == null ? void 0 : N.toLowerCase(),
3169
3168
  TOKEN: A
3170
3169
  };
3171
3170
  try {
3172
3171
  const G = await So(
3173
- O,
3172
+ D,
3174
3173
  mo
3175
3174
  );
3176
3175
  if (!G || o.current || (r == null ? void 0 : r.current) >= ut) {
@@ -3179,14 +3178,14 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3179
3178
  );
3180
3179
  return;
3181
3180
  }
3182
- n.current && n.current.close(), S(`${N}?t=${G}`);
3181
+ n.current && n.current.close(), S(`${L}?t=${G}`);
3183
3182
  } catch (G) {
3184
3183
  console.error(
3185
3184
  `${Qe} - Failed to encrypt token:`,
3186
3185
  G
3187
3186
  );
3188
3187
  }
3189
- }, w = (E) => (f) => {
3188
+ }, _ = (E) => (f) => {
3190
3189
  var b;
3191
3190
  try {
3192
3191
  if ((f == null ? void 0 : f.data) === "PING")
@@ -3236,7 +3235,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3236
3235
  );
3237
3236
  }, Fs = () => {
3238
3237
  var a;
3239
- const { widgetProps: e } = ue(), { listTicket: n, setTicketId: r, loadingListTicket: o } = He(), { onSendMsg: c, setGetResponse: s } = We(), { xs: i } = Me.useBreakpoint();
3238
+ const { widgetProps: e } = de(), { listTicket: n, setTicketId: r, loadingListTicket: o } = He(), { onSendMsg: c, setGetResponse: s } = Be(), { xs: i } = Me.useBreakpoint();
3240
3239
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3241
3240
  /* @__PURE__ */ t.jsx(Ms, {}),
3242
3241
  o ? /* @__PURE__ */ t.jsx("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: (a = Array.from({ length: 5 })) == null ? void 0 : a.map((l, g) => /* @__PURE__ */ t.jsx(
@@ -3281,19 +3280,19 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3281
3280
  }
3282
3281
  )
3283
3282
  ] });
3284
- }, Is = K(Fs), $s = ({ children: e, open: n, onClose: r, footer: o, styleContainer: c }) => {
3285
- var h;
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) => {
3283
+ }, Is = X(Fs), $s = ({ children: e, open: n, onClose: r, footer: o, styleContainer: c }) => {
3284
+ var p;
3285
+ const [s, i] = W(!1), a = oe(), l = oe(null), g = oe(), m = K(() => n ? "w-fade-in-animate" : "w-fade-out-animate", [n]), h = (y) => {
3287
3286
  y.code === "Escape" && !y.shiftKey && !y.altKey && !y.ctrlKey && y.key === "Escape" && (y.stopPropagation(), typeof r == "function" && r());
3288
3287
  };
3289
3288
  return pe(() => {
3290
3289
  const y = g.current;
3291
3290
  return y && (clearTimeout(l.current), l.current = setTimeout(() => {
3292
3291
  y == null || y.focus();
3293
- }, 250), y == null || y.addEventListener("keydown", p)), n && i(!1), clearTimeout(a == null ? void 0 : a.current), a.current = setTimeout(() => {
3292
+ }, 250), y == null || y.addEventListener("keydown", h)), n && i(!1), clearTimeout(a == null ? void 0 : a.current), a.current = setTimeout(() => {
3294
3293
  n || i(!0);
3295
3294
  }, 300), () => {
3296
- y && (y == null || y.removeEventListener("keydown", p));
3295
+ y && (y == null || y.removeEventListener("keydown", h));
3297
3296
  };
3298
3297
  }, [n]), /* @__PURE__ */ t.jsxs(
3299
3298
  "div",
@@ -3304,7 +3303,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3304
3303
  style: {
3305
3304
  display: s ? "none" : "block",
3306
3305
  height: "100%",
3307
- ...((h = Object == null ? void 0 : Object.keys(c || {})) == null ? void 0 : h.length) > 0 && {
3306
+ ...((p = Object == null ? void 0 : Object.keys(c || {})) == null ? void 0 : p.length) > 0 && {
3308
3307
  ...c
3309
3308
  }
3310
3309
  },
@@ -3314,14 +3313,14 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3314
3313
  ]
3315
3314
  }
3316
3315
  );
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(() => {
3316
+ }, lr = X($s), ur = Ve({}), ot = () => ze(ur), Us = ({ children: e }) => {
3317
+ const [n, r] = W([]), [o, c] = W({}), [s, i] = W(!0), [a, l] = W({}), g = oe(!1), m = xt(), { ticketId: h } = He(), { ws: p, setGetResponse: y } = Be(), { parsedJWT: j } = de(), v = K(() => {
3319
3318
  var C;
3320
3319
  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
3320
  ...A
3322
3321
  }))) == null ? void 0 : C.filter((A) => {
3323
- var N;
3324
- return ((N = Object.keys(A || {})) == null ? void 0 : N.length) > 0;
3322
+ var L;
3323
+ return ((L = Object.keys(A || {})) == null ? void 0 : L.length) > 0;
3325
3324
  });
3326
3325
  return Xt({ ArrObj: u, key: "EMP_ID" });
3327
3326
  }, [o]), S = () => {
@@ -3332,18 +3331,18 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3332
3331
  data: {
3333
3332
  LIMIT: 9999,
3334
3333
  PAGE: 1,
3335
- TASK_ID: p
3334
+ TASK_ID: h
3336
3335
  }
3337
3336
  })) == null ? void 0 : E.then((b) => {
3338
- var u, C, A, N, O, _;
3337
+ var u, C, A, L, D, B;
3339
3338
  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 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
- ...H,
3339
+ const w = (B = (D = (L = b == null ? void 0 : b.data) == null ? void 0 : L.DATA) == null ? void 0 : D.LIST) == null ? void 0 : B.map((N) => ({
3340
+ ...N,
3342
3341
  ACTOR: {
3343
- ...H == null ? void 0 : H.ACTOR
3342
+ ...N == null ? void 0 : N.ACTOR
3344
3343
  }
3345
3344
  }));
3346
- r(Et(R));
3345
+ r(Et(w));
3347
3346
  } else
3348
3347
  r({});
3349
3348
  })) == null || f.finally(() => {
@@ -3355,7 +3354,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3355
3354
  endpoint: "/helpdesk/myticket/get",
3356
3355
  method: "POST",
3357
3356
  data: {
3358
- TASK_ID: p
3357
+ TASK_ID: h
3359
3358
  }
3360
3359
  })) == null || E.then((f) => {
3361
3360
  var b, u, C;
@@ -3365,25 +3364,25 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3365
3364
  } else
3366
3365
  c({});
3367
3366
  });
3368
- }, w = (E) => {
3367
+ }, _ = (E) => {
3369
3368
  var u;
3370
3369
  const f = (u = E == null ? void 0 : E.ACTOR) == null ? void 0 : u.EMP_ID, b = j == null ? void 0 : j.EMP_ID;
3371
3370
  y(!0), l((C) => ({
3372
3371
  ...C,
3373
3372
  [f]: !1
3374
3373
  })), g.current || r((C) => {
3375
- const A = Jt(C), N = f == b ? "to" : "from", O = [...A, { ...E, CHAT_ALIGN: N }];
3376
- return Et(O);
3374
+ const A = Jt(C), L = f == b ? "to" : "from", D = [...A, { ...E, CHAT_ALIGN: L }];
3375
+ return Et(D);
3377
3376
  }), g.current = !1;
3378
3377
  }, x = (E) => {
3379
3378
  if ((E == null ? void 0 : E.data) !== "PING") {
3380
3379
  const f = JSON.parse((E == null ? void 0 : E.data) || "{}"), { DATA: b = {}, EVENT: u = "" } = f ?? {};
3381
- (u === "RECEIVE_MESSAGE" || u === "RECEIVE_ANOTHER_MESSAGE") && w(b);
3380
+ (u === "RECEIVE_MESSAGE" || u === "RECEIVE_ANOTHER_MESSAGE") && _(b);
3382
3381
  }
3383
3382
  };
3384
- return pe(() => (p && (S(), T()), h && p && (h == null || h.addEventListener("message", x)), () => {
3385
- h && p && (h == null || h.removeEventListener("message", x));
3386
- }), [p]), /* @__PURE__ */ t.jsx(
3383
+ return pe(() => (h && (S(), T()), p && h && (p == null || p.addEventListener("message", x)), () => {
3384
+ p && h && (p == null || p.removeEventListener("message", x));
3385
+ }), [h]), /* @__PURE__ */ t.jsx(
3387
3386
  ur.Provider,
3388
3387
  {
3389
3388
  value: {
@@ -3400,10 +3399,10 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3400
3399
  }
3401
3400
  );
3402
3401
  }, Hs = ({ onClose: e }) => {
3403
- const { xs: n } = Me.useBreakpoint(), { employees: r, detailTicket: o, loadingChats: c } = st(), { userOnline: s } = We(), i = z(() => {
3402
+ const { xs: n } = Me.useBreakpoint(), { employees: r, detailTicket: o, loadingChats: c } = ot(), { userOnline: s } = Be(), i = K(() => {
3404
3403
  var l;
3405
3404
  return (l = r == null ? void 0 : r.map((g) => g == null ? void 0 : g.FULL_NAME)) == null ? void 0 : l.join(", ");
3406
- }, [r]), a = z(() => n ? "click" : "hover", [n]);
3405
+ }, [r]), a = K(() => n ? "click" : "hover", [n]);
3407
3406
  return c ? /* @__PURE__ */ t.jsxs("div", { className: "w-ticket-detail-header-container", children: [
3408
3407
  /* @__PURE__ */ t.jsx(Re.Avatar, {}),
3409
3408
  /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
@@ -3414,7 +3413,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3414
3413
  ] }) : /* @__PURE__ */ t.jsxs("div", { className: "w-ticket-detail-header-container", children: [
3415
3414
  /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8 }, children: [
3416
3415
  /* @__PURE__ */ t.jsx(
3417
- le,
3416
+ fe,
3418
3417
  {
3419
3418
  icon: /* @__PURE__ */ t.jsx(xe, { type: "down" }),
3420
3419
  style: { border: "none" },
@@ -3435,7 +3434,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3435
3434
  },
3436
3435
  children: r == null ? void 0 : r.map((l, g) => {
3437
3436
  const m = s == null ? void 0 : s.includes(l == null ? void 0 : l.EMP_ID);
3438
- return /* @__PURE__ */ t.jsx(tt, { title: l == null ? void 0 : l.FULL_NAME, trigger: a, children: /* @__PURE__ */ zt(
3437
+ return /* @__PURE__ */ t.jsx(lt, { title: l == null ? void 0 : l.FULL_NAME, trigger: a, children: /* @__PURE__ */ zt(
3439
3438
  Ye,
3440
3439
  {
3441
3440
  ...m && {
@@ -3454,7 +3453,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3454
3453
  ),
3455
3454
  /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", flexDirection: "column", width: 150 }, children: [
3456
3455
  /* @__PURE__ */ t.jsx(
3457
- tt,
3456
+ lt,
3458
3457
  {
3459
3458
  title: `${o == null ? void 0 : o.TASK_CODE} - ${o == null ? void 0 : o.SUBJECT}`,
3460
3459
  trigger: a,
@@ -3465,7 +3464,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3465
3464
  ] })
3466
3465
  }
3467
3466
  ),
3468
- /* @__PURE__ */ t.jsx(tt, { title: i, trigger: a, children: /* @__PURE__ */ t.jsx(
3467
+ /* @__PURE__ */ t.jsx(lt, { title: i, trigger: a, children: /* @__PURE__ */ t.jsx(
3469
3468
  ie.Text,
3470
3469
  {
3471
3470
  type: "secondary",
@@ -3480,8 +3479,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3480
3479
  ] }),
3481
3480
  /* @__PURE__ */ t.jsx(ir, { taskStatus: o == null ? void 0 : o.STATUS })
3482
3481
  ] });
3483
- }, Ws = K(Hs), Bs = ({ ...e }) => {
3484
- const n = z(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
3482
+ }, Bs = X(Hs), Ws = ({ ...e }) => {
3483
+ const n = K(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
3485
3484
  return /* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${n}`}`, children: [
3486
3485
  /* @__PURE__ */ t.jsx(
3487
3486
  "p",
@@ -3500,8 +3499,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3500
3499
  }
3501
3500
  )
3502
3501
  ] });
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(() => {
3502
+ }, Ys = X(Ws), Vs = ({ ...e }) => {
3503
+ const n = I("Download", "Download"), r = K(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), o = K(() => {
3505
3504
  var l;
3506
3505
  const a = e == null ? void 0 : e.ATTACHMENT;
3507
3506
  if (a)
@@ -3512,13 +3511,13 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3512
3511
  return a;
3513
3512
  }
3514
3513
  return "";
3515
- }, [e]), c = z(() => {
3514
+ }, [e]), c = K(() => {
3516
3515
  if (o != null && o.includes(".")) {
3517
3516
  const a = o == null ? void 0 : o.split(".");
3518
3517
  return `.${a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1]}`;
3519
3518
  }
3520
3519
  return "";
3521
- }, [e, o]), s = z(() => Mt == null ? void 0 : Mt.includes(c), [e, c]), i = () => {
3520
+ }, [e, o]), s = K(() => Mt == null ? void 0 : Mt.includes(c), [e, c]), i = () => {
3522
3521
  Pt({
3523
3522
  downloadURL: e == null ? void 0 : e.ATTACHMENT,
3524
3523
  fileName: o,
@@ -3543,7 +3542,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3543
3542
  )
3544
3543
  ] }),
3545
3544
  s && /* @__PURE__ */ t.jsx(
3546
- le,
3545
+ fe,
3547
3546
  {
3548
3547
  onClick: i,
3549
3548
  style: {
@@ -3568,8 +3567,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3568
3567
  ]
3569
3568
  }
3570
3569
  ) });
3571
- }, zs = K(Vs), Gs = ({ ...e }) => {
3572
- const n = z(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
3570
+ }, zs = X(Vs), Gs = ({ ...e }) => {
3571
+ const n = K(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
3573
3572
  return /* @__PURE__ */ t.jsxs("div", { className: "w-ticket-info-chat-container", children: [
3574
3573
  /* @__PURE__ */ t.jsx(
3575
3574
  ht,
@@ -3581,8 +3580,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3581
3580
  ),
3582
3581
  /* @__PURE__ */ t.jsx(ie.Text, { children: e == null ? void 0 : e.MESSAGE })
3583
3582
  ] });
3584
- }, qs = K(Gs), dr = () => {
3585
- const { widgetProps: e } = ue(), n = Je.enc.Hex.parse(
3583
+ }, qs = X(Gs), dr = () => {
3584
+ const { widgetProps: e } = de(), n = Je.enc.Hex.parse(
3586
3585
  Je.enc.Utf8.parse(e == null ? void 0 : e.keyEncrypt).toString()
3587
3586
  ), r = {
3588
3587
  mode: Je.mode.ECB,
@@ -3602,8 +3601,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3602
3601
  return {
3603
3602
  paramsEncrypt: (i) => {
3604
3603
  const [a, l = null] = i.split("?"), g = a.split("/").map((m) => {
3605
- const [, p = null] = m.split(":");
3606
- return p && (e != null && e.keyEncrypt) ? c(p) : m;
3604
+ const [, h = null] = m.split(":");
3605
+ return h && (e != null && e.keyEncrypt) ? c(h) : m;
3607
3606
  }).join("/");
3608
3607
  return l ? `${g}?${l}` : g;
3609
3608
  },
@@ -3616,7 +3615,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3616
3615
  ), o = I(
3617
3616
  "ThisFAQIsUnavailable",
3618
3617
  "This FAQ is unavailable"
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]);
3618
+ ), { paramsEncrypt: c } = dr(), { widgetProps: s } = de(), i = K(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), a = K(() => e == null ? void 0 : e.FAQ_ID, [e]);
3620
3619
  return /* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${i}`}`, children: [
3621
3620
  /* @__PURE__ */ t.jsx(
3622
3621
  ie.Text,
@@ -3633,7 +3632,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3633
3632
  }
3634
3633
  ),
3635
3634
  a ? /* @__PURE__ */ t.jsx(
3636
- le,
3635
+ fe,
3637
3636
  {
3638
3637
  block: !0,
3639
3638
  onClick: () => {
@@ -3654,7 +3653,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3654
3653
  }
3655
3654
  )
3656
3655
  ] });
3657
- }, Ps = K(Ks), Xs = ({ ...e }) => {
3656
+ }, Ps = X(Ks), Xs = ({ ...e }) => {
3658
3657
  switch (e == null ? void 0 : e.CHAT_TYPE) {
3659
3658
  case "info":
3660
3659
  return /* @__PURE__ */ t.jsx(qs, { ...e });
@@ -3665,19 +3664,19 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3665
3664
  default:
3666
3665
  return null;
3667
3666
  }
3668
- }, Js = K(Xs), Zs = () => {
3667
+ }, Js = X(Xs), Zs = () => {
3669
3668
  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 = 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
- const v = p == null ? void 0 : p.map((S) => S == null ? void 0 : S.FULL_NAME);
3672
- if ((p == null ? void 0 : p.length) > 2) {
3673
- const S = v == null ? void 0 : v.filter((w, x) => x <= 1), T = v == null ? void 0 : v.filter((w, x) => x > 1);
3669
+ const [e, n] = W([]), r = I("And", "and"), o = I("IsTyping", "Is Typing"), c = I("People", "People"), { employees: s, setTypingOtherEmp: i, objTypingOtherEmp: a } = ot(), { ws: l, setGetResponse: g } = Be(), { parsedJWT: m } = de(), h = K(() => e == null ? void 0 : e.filter((v) => a == null ? void 0 : a[v == null ? void 0 : v.EMP_ID]), [a, e]), p = K(() => {
3670
+ const v = h == null ? void 0 : h.map((S) => S == null ? void 0 : S.FULL_NAME);
3671
+ if ((h == null ? void 0 : h.length) > 2) {
3672
+ const S = v == null ? void 0 : v.filter((_, x) => x <= 1), T = v == null ? void 0 : v.filter((_, x) => x > 1);
3674
3673
  return `${S == null ? void 0 : S.join(", ")}, ${r} ${T == null ? void 0 : T.length} ${c} ${o}`;
3675
3674
  }
3676
3675
  return `${v == null ? void 0 : v.join(", ")} ${o}`;
3677
- }, [e, p]), y = (v) => {
3676
+ }, [e, h]), y = (v) => {
3678
3677
  if ((v == null ? void 0 : v.data) !== "PING") {
3679
- const S = JSON.parse((v == null ? void 0 : v.data) || "{}"), { DATA: T = {}, EVENT: w = "" } = S ?? {}, x = T == null ? void 0 : T.EMPLOYEE_ID, E = m == null ? void 0 : m.EMP_ID;
3680
- if (w === "TYPING") {
3678
+ const S = JSON.parse((v == null ? void 0 : v.data) || "{}"), { DATA: T = {}, EVENT: _ = "" } = S ?? {}, x = T == null ? void 0 : T.EMPLOYEE_ID, E = m == null ? void 0 : m.EMP_ID;
3679
+ if (_ === "TYPING") {
3681
3680
  x === E ? g(!1) : i((u) => ({
3682
3681
  ...u,
3683
3682
  [x]: T == null ? void 0 : T.IS_TYPING
@@ -3693,7 +3692,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3693
3692
  ArrObj: C,
3694
3693
  key: "EMPLOYEE_ID"
3695
3694
  });
3696
- return A == null ? void 0 : A.filter((N) => N == null ? void 0 : N.IS_TYPING);
3695
+ return A == null ? void 0 : A.filter((L) => L == null ? void 0 : L.IS_TYPING);
3697
3696
  });
3698
3697
  }
3699
3698
  }
@@ -3719,17 +3718,17 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3719
3718
  backgroundColor: "#fde3cf",
3720
3719
  cursor: "pointer"
3721
3720
  },
3722
- children: p == null ? void 0 : p.map((v, S) => /* @__PURE__ */ t.jsx(tt, { title: v == null ? void 0 : v.FULL_NAME, children: /* @__PURE__ */ t.jsx(Ye, { src: v == null ? void 0 : v.PHOTO, nameFallback: v == null ? void 0 : v.FULL_NAME }) }, S))
3721
+ children: h == null ? void 0 : h.map((v, S) => /* @__PURE__ */ t.jsx(lt, { title: v == null ? void 0 : v.FULL_NAME, children: /* @__PURE__ */ t.jsx(Ye, { src: v == null ? void 0 : v.PHOTO, nameFallback: v == null ? void 0 : v.FULL_NAME }) }, S))
3723
3722
  }
3724
3723
  ),
3725
- /* @__PURE__ */ t.jsx(ie.Text, { children: h }),
3726
- (p == null ? void 0 : p.length) > 0 ? /* @__PURE__ */ t.jsx(or, {}) : null
3724
+ /* @__PURE__ */ t.jsx(ie.Text, { children: p }),
3725
+ (h == null ? void 0 : h.length) > 0 ? /* @__PURE__ */ t.jsx(or, {}) : null
3727
3726
  ]
3728
3727
  }
3729
3728
  );
3730
- }, Qs = K(Zs), ei = () => {
3729
+ }, Qs = X(Zs), ei = () => {
3731
3730
  var s;
3732
- const { chats: e } = st(), { widgetProps: n } = ue(), { activeTab: r } = Ue(), o = re(), { xs: c } = Me.useBreakpoint();
3731
+ const { chats: e } = ot(), { widgetProps: n } = de(), { activeTab: r } = Ue(), o = oe(), { xs: c } = Me.useBreakpoint();
3733
3732
  return pe(() => {
3734
3733
  clearTimeout(o.current), o.current = setTimeout(() => {
3735
3734
  $e(".w-ticket-detail-content-container");
@@ -3744,11 +3743,11 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3744
3743
  const a = e == null ? void 0 : e[i];
3745
3744
  return /* @__PURE__ */ t.jsxs(Tt, { children: [
3746
3745
  /* @__PURE__ */ t.jsx("div", { className: "w-datekey-chats", children: (l = je(i)) == null ? void 0 : l.format("ddd, DD MMMM YYYY") }),
3747
- /* @__PURE__ */ t.jsx("div", { className: "w-bubble-chat-container", children: (g = Xn(a)) == null ? void 0 : g.map((m, p) => {
3746
+ /* @__PURE__ */ t.jsx("div", { className: "w-bubble-chat-container", children: (g = Xn(a)) == null ? void 0 : g.map((m, h) => {
3748
3747
  var j, v;
3749
- const h = (m == null ? void 0 : m.CHAT_ALIGN) === "to" ? "client" : "response", y = m == null ? void 0 : m.CHAT_TYPE;
3748
+ const p = (m == null ? void 0 : m.CHAT_ALIGN) === "to" ? "client" : "response", y = m == null ? void 0 : m.CHAT_TYPE;
3750
3749
  return /* @__PURE__ */ t.jsxs(Tt, { children: [
3751
- h === "response" && y !== "info" && /* @__PURE__ */ t.jsx(
3750
+ p === "response" && y !== "info" && /* @__PURE__ */ t.jsx(
3752
3751
  pt,
3753
3752
  {
3754
3753
  src: (j = m == null ? void 0 : m.ACTOR) == null ? void 0 : j.PHOTO,
@@ -3756,7 +3755,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3756
3755
  }
3757
3756
  ),
3758
3757
  /* @__PURE__ */ t.jsx(Js, { ...m })
3759
- ] }, p);
3758
+ ] }, h);
3760
3759
  }) })
3761
3760
  ] }, i);
3762
3761
  }),
@@ -3764,9 +3763,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3764
3763
  ]
3765
3764
  }
3766
3765
  );
3767
- }, ti = K(ei), ni = () => {
3766
+ }, ti = X(ei), ni = () => {
3768
3767
  var s, i;
3769
- const { chats: e, loadingChats: n } = st(), { widgetProps: r } = ue(), { xs: o } = Me.useBreakpoint(), c = z(() => {
3768
+ const { chats: e, loadingChats: n } = ot(), { widgetProps: r } = de(), { xs: o } = Me.useBreakpoint(), c = K(() => {
3770
3769
  var l;
3771
3770
  const a = [Ft];
3772
3771
  return o && (r != null && r.isSF ? a == null || a.push(
@@ -3829,8 +3828,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3829
3828
  children: /* @__PURE__ */ t.jsx(Vn, {})
3830
3829
  }
3831
3830
  ) : /* @__PURE__ */ t.jsx(ti, {});
3832
- }, ri = K(ni), oi = ({ ...e }) => {
3833
- const n = re(0);
3831
+ }, ri = X(ni), oi = ({ ...e }) => {
3832
+ const n = oe(0);
3834
3833
  return /* @__PURE__ */ t.jsxs(
3835
3834
  "div",
3836
3835
  {
@@ -3863,15 +3862,15 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3863
3862
  ]
3864
3863
  }
3865
3864
  );
3866
- }, si = K(oi), ii = ({ setLoadingUpload: e, isLoadingUpload: n }) => {
3867
- var T, w;
3868
- const r = xt(), [o, c] = W({}), s = re(null), i = I(
3865
+ }, si = X(oi), ii = ({ setLoadingUpload: e, isLoadingUpload: n }) => {
3866
+ var T, _;
3867
+ const r = xt(), [o, c] = W({}), s = oe(null), i = I(
3869
3868
  "ImageMustSmallerThan",
3870
3869
  "Image must smaller than"
3871
3870
  ), a = I(
3872
3871
  "MaximumFileSizeExceeded",
3873
3872
  "Maximum file size exceeded"
3874
- ), { onSendMsg: l } = We(), { employees: g, setChats: m, isFromSelf: p } = st(), { ticketId: h } = He(), { activeTab: y } = Ue(), j = () => {
3873
+ ), { onSendMsg: l } = Be(), { employees: g, setChats: m, isFromSelf: h } = ot(), { ticketId: p } = He(), { activeTab: y } = Ue(), j = () => {
3875
3874
  var x;
3876
3875
  (x = r({
3877
3876
  endpoint: "/upload/get-upload-config",
@@ -3913,27 +3912,27 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3913
3912
  "Content-Type": "multipart/form-data"
3914
3913
  }
3915
3914
  })) == null ? void 0 : f.then((u) => {
3916
- var C, A, N, O, _;
3915
+ var C, A, L, D, B;
3917
3916
  if ((A = (C = u == null ? void 0 : u.data) == null ? void 0 : C.DATA) != null && A.LIST) {
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,
3917
+ const w = (D = (L = u == null ? void 0 : u.data) == null ? void 0 : L.DATA) == null ? void 0 : D.LIST, N = {
3918
+ ATTACHMENT: w == null ? void 0 : w.VIEW_PATH,
3920
3919
  FAQ_ID: null,
3921
3920
  MESSAGE: "",
3922
- CREATED_DATE: (_ = je()) == null ? void 0 : _.format(`${Kt} HH:mm:ss`),
3921
+ CREATED_DATE: (B = je()) == null ? void 0 : B.format(`${Kt} HH:mm:ss`),
3923
3922
  CHAT_ALIGN: "to",
3924
3923
  CHAT_TYPE: "chat"
3925
3924
  };
3926
3925
  m((G) => {
3927
- const F = [...Jt(G), H];
3926
+ const F = [...Jt(G), N];
3928
3927
  return Et(F);
3929
- }), p.current = !0, l({
3928
+ }), h.current = !0, l({
3930
3929
  event: "SEND_MESSAGE",
3931
3930
  data: {
3932
- ATTACHMENT: R == null ? void 0 : R.TEMP_PATH,
3931
+ ATTACHMENT: w == null ? void 0 : w.TEMP_PATH,
3933
3932
  FAQ_ID: null,
3934
3933
  MESSAGE: "",
3935
3934
  EMPLOYEES: g == null ? void 0 : g.map((G) => G == null ? void 0 : G.EMP_ID),
3936
- TASK_ID: h
3935
+ TASK_ID: p
3937
3936
  }
3938
3937
  }), clearTimeout(s.current), s.current = setTimeout(() => {
3939
3938
  $e(".w-ticket-detail-content-container");
@@ -3953,12 +3952,12 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3953
3952
  {
3954
3953
  beforeUpload: v,
3955
3954
  fileList: [],
3956
- accept: (w = (T = o == null ? void 0 : o.EXT_LIST) == null ? void 0 : T.split(",")) == null ? void 0 : w.map((x) => `.${x}`),
3955
+ accept: (_ = (T = o == null ? void 0 : o.EXT_LIST) == null ? void 0 : T.split(",")) == null ? void 0 : _.map((x) => `.${x}`),
3957
3956
  onChange: (x) => {
3958
3957
  S(x == null ? void 0 : x.file);
3959
3958
  },
3960
3959
  children: /* @__PURE__ */ t.jsx(
3961
- le,
3960
+ fe,
3962
3961
  {
3963
3962
  loading: n,
3964
3963
  icon: /* @__PURE__ */ t.jsx(xe, { type: "paper-clip" }),
@@ -3968,9 +3967,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3968
3967
  )
3969
3968
  }
3970
3969
  );
3971
- }, ai = K(ii), ci = (e) => {
3970
+ }, ai = X(ii), ci = (e) => {
3972
3971
  var o;
3973
- const n = re(null), r = re(null);
3972
+ const n = oe(null), r = oe(null);
3974
3973
  return r != null && r.current && ((o = r.current) == null || o.update(e)), pe(() => {
3975
3974
  var s;
3976
3975
  const c = (s = window == null ? void 0 : window.customElements) == null ? void 0 : s.get("em-emoji-picker");
@@ -3979,24 +3978,24 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
3979
3978
  };
3980
3979
  }, []), ft.createElement("div", { ref: n });
3981
3980
  }, li = ({ refInput: e }) => {
3982
- const { xs: n } = Me.useBreakpoint(), r = z(() => n ? "click" : "hover", [n]), o = () => {
3983
- var h;
3984
- const s = (h = e == null ? void 0 : e.current) == null ? void 0 : h.textarea;
3981
+ const { xs: n } = Me.useBreakpoint(), r = K(() => n ? "click" : "hover", [n]), o = () => {
3982
+ var p;
3983
+ const s = (p = e == null ? void 0 : e.current) == null ? void 0 : p.textarea;
3985
3984
  if (!s)
3986
3985
  return !1;
3987
- const { selectionStart: i, selectionEnd: a, value: l } = s, g = l == null ? void 0 : l.substring(0, i), m = l == null ? void 0 : l.substring(i, a), p = l == null ? void 0 : l.substring(a);
3986
+ const { selectionStart: i, selectionEnd: a, value: l } = s, g = l == null ? void 0 : l.substring(0, i), m = l == null ? void 0 : l.substring(i, a), h = l == null ? void 0 : l.substring(a);
3988
3987
  return {
3989
3988
  before: g,
3990
3989
  selectedText: m,
3991
- after: p,
3990
+ after: h,
3992
3991
  selectionStart: i,
3993
3992
  selectionEnd: a,
3994
3993
  text: l
3995
3994
  };
3996
3995
  }, c = (s) => {
3997
- var p, h;
3998
- (p = e == null ? void 0 : e.current) == null || p.focus();
3999
- const i = (h = e == null ? void 0 : e.current) == null ? void 0 : h.textarea, a = s == null ? void 0 : s.native;
3996
+ var h, p;
3997
+ (h = e == null ? void 0 : e.current) == null || h.focus();
3998
+ const i = (p = e == null ? void 0 : e.current) == null ? void 0 : p.textarea, a = s == null ? void 0 : s.native;
4000
3999
  if (!i) return;
4001
4000
  const { before: l, after: g } = o(), m = `${l}${a}${g}`;
4002
4001
  typeof document.execCommand == "function" ? document.execCommand("insertText", !1, a) : i.value = m;
@@ -4014,14 +4013,14 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4014
4013
  theme: "auto"
4015
4014
  }
4016
4015
  ),
4017
- children: /* @__PURE__ */ t.jsx(le, { icon: /* @__PURE__ */ t.jsx(xe, { type: "smile" }), style: { border: "none" } })
4016
+ children: /* @__PURE__ */ t.jsx(fe, { icon: /* @__PURE__ */ t.jsx(xe, { type: "smile" }), style: { border: "none" } })
4018
4017
  }
4019
4018
  );
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(() => {
4019
+ }, ui = X(li), di = () => {
4020
+ const [e, n] = W(0), [r, o] = W(!1), c = oe(null), s = oe(null), i = oe(!1), a = oe(null), { onSendMsg: l, setGetResponse: g, isGetResponse: m } = Be(), { ticketId: h } = He(), { isActiveTabVA: p } = Ue(), { employees: y, setChats: j, isFromSelf: v, detailTicket: S } = ot(), T = K(() => r || !m, [r, m]), _ = K(() => {
4022
4021
  var b;
4023
4022
  return ((b = S == null ? void 0 : S.STATUS) == null ? void 0 : b.toString().toLowerCase()) === "closed";
4024
- }, [S == null ? void 0 : S.STATUS]), x = z(() => y == null ? void 0 : y.map((b) => ({
4023
+ }, [S == null ? void 0 : S.STATUS]), x = K(() => y == null ? void 0 : y.map((b) => ({
4025
4024
  ...b,
4026
4025
  label: /* @__PURE__ */ t.jsx(
4027
4026
  Gt,
@@ -4033,7 +4032,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4033
4032
  ),
4034
4033
  value: b == null ? void 0 : b.FULL_NAME
4035
4034
  })), [y]), E = () => {
4036
- var C, A, N;
4035
+ var C, A, L;
4037
4036
  g(!1);
4038
4037
  const b = (A = (C = c == null ? void 0 : c.current) == null ? void 0 : C.textarea) == null ? void 0 : A.value;
4039
4038
  l({
@@ -4042,45 +4041,45 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4042
4041
  ATTACHMENT: "",
4043
4042
  FAQ_ID: null,
4044
4043
  MESSAGE: b,
4045
- EMPLOYEES: y == null ? void 0 : y.map((O) => O == null ? void 0 : O.EMP_ID),
4046
- TASK_ID: p
4044
+ EMPLOYEES: y == null ? void 0 : y.map((D) => D == null ? void 0 : D.EMP_ID),
4045
+ TASK_ID: h
4047
4046
  }
4048
4047
  });
4049
4048
  const u = {
4050
4049
  ATTACHMENT: "",
4051
4050
  FAQ_ID: null,
4052
4051
  MESSAGE: b,
4053
- CREATED_DATE: (N = je()) == null ? void 0 : N.format(`${Kt} HH:mm:ss`),
4052
+ CREATED_DATE: (L = je()) == null ? void 0 : L.format(`${Kt} HH:mm:ss`),
4054
4053
  CHAT_ALIGN: "to",
4055
4054
  CHAT_TYPE: "chat"
4056
4055
  };
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);
4056
+ j((D) => {
4057
+ const w = [...Jt(D), u];
4058
+ return Et(w);
4059
+ }), v.current = !0, $e(".w-ticket-detail-content-container"), n((D) => D + 1);
4061
4060
  }, f = () => {
4062
4061
  window.clearTimeout(s.current), i.current || (i.current = !0, l({
4063
4062
  event: "TYPING",
4064
4063
  data: {
4065
- TASK_ID: p,
4064
+ TASK_ID: h,
4066
4065
  IS_TYPING: !0
4067
4066
  }
4068
4067
  })), s.current = setTimeout(() => {
4069
4068
  l({
4070
4069
  event: "TYPING",
4071
4070
  data: {
4072
- TASK_ID: p,
4071
+ TASK_ID: h,
4073
4072
  IS_TYPING: !1
4074
4073
  }
4075
4074
  }), i.current = !1;
4076
4075
  }, 250);
4077
4076
  };
4078
4077
  return pe(() => {
4079
- c != null && c.current && !h && p && (clearTimeout(a.current), a.current = setTimeout(() => {
4078
+ c != null && c.current && !p && h && (clearTimeout(a.current), a.current = setTimeout(() => {
4080
4079
  var b;
4081
4080
  (b = c == null ? void 0 : c.current) == null || b.focus();
4082
4081
  }, 500));
4083
- }, [h, p]), w ? null : /* @__PURE__ */ t.jsxs(
4082
+ }, [p, h]), _ ? null : /* @__PURE__ */ t.jsxs(
4084
4083
  "div",
4085
4084
  {
4086
4085
  className: "w-input-container",
@@ -4112,8 +4111,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4112
4111
  ((b == null ? void 0 : b.code) === "Enter" || (b == null ? void 0 : b.key) === "Enter") && !(b != null && b.shiftKey) && E();
4113
4112
  },
4114
4113
  filterOption: (b, u) => {
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();
4114
+ var L, D, B;
4115
+ const C = (L = b == null ? void 0 : b.toString()) == null ? void 0 : L.toLowerCase(), A = (B = (D = u == null ? void 0 : u.FULL_NAME) == null ? void 0 : D.toString()) == null ? void 0 : B.toLowerCase();
4117
4116
  return A == null ? void 0 : A.includes(C);
4118
4117
  },
4119
4118
  children: x == null ? void 0 : x.map((b, u) => /* @__PURE__ */ t.jsx(pn.Option, { ...b, children: b == null ? void 0 : b.label }, u))
@@ -4121,7 +4120,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4121
4120
  e
4122
4121
  ),
4123
4122
  /* @__PURE__ */ t.jsx(
4124
- le,
4123
+ fe,
4125
4124
  {
4126
4125
  loading: T,
4127
4126
  disabled: T,
@@ -4140,7 +4139,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4140
4139
  ]
4141
4140
  }
4142
4141
  );
4143
- }, fi = K(di), gi = ({ title: e, subTitle: n, onClose: r, open: o, styleWrapper: c }) => {
4142
+ }, fi = X(di), gi = ({ title: e, subTitle: n, onClose: r, open: o, styleWrapper: c }) => {
4144
4143
  var s;
4145
4144
  return o ? /* @__PURE__ */ t.jsx(
4146
4145
  "div",
@@ -4153,7 +4152,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4153
4152
  e && /* @__PURE__ */ t.jsx(ie.Text, { style: { fontSize: 16, fontWeight: 600 }, children: e }),
4154
4153
  n && /* @__PURE__ */ t.jsx("div", { className: "w-banner-subtitle", children: n }),
4155
4154
  typeof r == "function" && /* @__PURE__ */ t.jsx("div", { className: "w-banner-close-btn", children: /* @__PURE__ */ t.jsx(
4156
- le,
4155
+ fe,
4157
4156
  {
4158
4157
  style: { border: "none", background: "transparent" },
4159
4158
  icon: /* @__PURE__ */ t.jsx(xe, { type: "close" }),
@@ -4163,11 +4162,11 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4163
4162
  ] })
4164
4163
  }
4165
4164
  ) : null;
4166
- }, fr = K(gi), pi = () => {
4165
+ }, fr = X(gi), pi = () => {
4167
4166
  const e = I(
4168
4167
  "ForMoreInformationOfThisTicket",
4169
4168
  "For more information of this ticket"
4170
- ), n = I("ClickHere", "Click here"), { ticketId: r } = He(), { widgetProps: o } = ue(), { encrypt: c } = dr();
4169
+ ), n = I("ClickHere", "Click here"), { ticketId: r } = He(), { widgetProps: o } = de(), { encrypt: c } = dr();
4171
4170
  return /* @__PURE__ */ t.jsx(
4172
4171
  fr,
4173
4172
  {
@@ -4194,27 +4193,27 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4194
4193
  }
4195
4194
  }
4196
4195
  );
4197
- }, hi = K(pi), xi = ({ onClose: e, visible: n }) => /* @__PURE__ */ t.jsx(lr, { open: n, onClose: e, children: /* @__PURE__ */ t.jsxs(Us, { children: [
4198
- /* @__PURE__ */ t.jsx(Ws, { onClose: e }),
4196
+ }, hi = X(pi), xi = ({ onClose: e, visible: n }) => /* @__PURE__ */ t.jsx(lr, { open: n, onClose: e, children: /* @__PURE__ */ t.jsxs(Us, { children: [
4197
+ /* @__PURE__ */ t.jsx(Bs, { onClose: e }),
4199
4198
  /* @__PURE__ */ t.jsx(hi, {}),
4200
4199
  /* @__PURE__ */ t.jsx(ri, {}),
4201
4200
  /* @__PURE__ */ t.jsx(fi, {})
4202
- ] }) }), mi = K(xi), yi = () => {
4201
+ ] }) }), mi = X(xi), yi = () => {
4203
4202
  const e = I("AdvanceFilter", "Advance Filter"), n = I("Subject", "Subject"), r = I(
4204
4203
  "TicketCategory",
4205
4204
  "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 = z(() => {
4207
- const O = `${s}/${i}/${a}`, _ = `${l}/${g}`, R = `${m}/${p}`;
4205
+ ), 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"), h = I("Done", "Done"), p = I("Closed", "Closed"), y = I("HDCancelled", "Cancelled"), j = I("Clear", "Clear"), v = I("Filter", "Filter"), S = xt(), [T] = Se.useForm(), { openFilter: _, setOpenFilter: x, getListTicket: E, setCountFilters: f } = He(), [b, u] = W([]), C = K(() => {
4206
+ const D = `${s}/${i}/${a}`, B = `${l}/${g}`, w = `${m}/${h}`;
4208
4207
  return [
4209
- { value: 3, label: O },
4210
- { value: 1, label: _ },
4211
- { value: 4, label: R },
4212
- { value: 6, label: h },
4208
+ { value: 3, label: D },
4209
+ { value: 1, label: B },
4210
+ { value: 4, label: w },
4211
+ { value: 6, label: p },
4213
4212
  { value: 8, label: y }
4214
4213
  ];
4215
4214
  }, []), A = () => {
4216
- var O;
4217
- (O = S({
4215
+ var D;
4216
+ (D = S({
4218
4217
  endpoint: "/helpdesk/category/list",
4219
4218
  data: {
4220
4219
  LIMIT: 999999,
@@ -4222,24 +4221,24 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4222
4221
  SELECTOR: "*",
4223
4222
  SORT: { FIELD: "ORDER_NO", ORDER: "ASC" }
4224
4223
  }
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;
4224
+ })) == null || D.then((B) => {
4225
+ var w, N, G;
4226
+ if ((w = B == null ? void 0 : B.data) != null && w.DATA) {
4227
+ const H = (G = (N = B == null ? void 0 : B.data) == null ? void 0 : N.DATA) == null ? void 0 : G.LIST;
4229
4228
  u(
4230
- q == null ? void 0 : q.map((F) => ({
4229
+ H == null ? void 0 : H.map((F) => ({
4231
4230
  label: F == null ? void 0 : F.CATEGORY_NAME,
4232
4231
  value: F == null ? void 0 : F.CATEGORY_CODE
4233
4232
  }))
4234
4233
  );
4235
4234
  }
4236
4235
  });
4237
- }, N = () => {
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
- f(_ == null ? void 0 : _.length);
4236
+ }, L = () => {
4237
+ var w, N;
4238
+ const D = T == null ? void 0 : T.getFieldsValue(!0);
4239
+ E(D);
4240
+ const B = (N = (w = Object.values(D || {})) == null ? void 0 : w.flat()) == null ? void 0 : N.filter(Boolean);
4241
+ f(B == null ? void 0 : B.length);
4243
4242
  };
4244
4243
  return pe(() => {
4245
4244
  A();
@@ -4247,27 +4246,27 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4247
4246
  lr,
4248
4247
  {
4249
4248
  styleContainer: { height: "calc(100% - 50px)" },
4250
- open: w,
4249
+ open: _,
4251
4250
  onClose: () => {
4252
4251
  x(!1);
4253
4252
  },
4254
4253
  footer: /* @__PURE__ */ t.jsxs("div", { className: "w-ticket-list-advance-filter-footer", children: [
4255
4254
  /* @__PURE__ */ t.jsx(
4256
- le,
4255
+ fe,
4257
4256
  {
4258
4257
  onClick: () => {
4259
- T == null || T.resetFields(), N();
4258
+ T == null || T.resetFields(), L();
4260
4259
  },
4261
4260
  children: j
4262
4261
  },
4263
4262
  "clear"
4264
4263
  ),
4265
4264
  /* @__PURE__ */ t.jsx(
4266
- le,
4265
+ fe,
4267
4266
  {
4268
4267
  type: "primary",
4269
4268
  onClick: () => {
4270
- N(), x(!1);
4269
+ L(), x(!1);
4271
4270
  },
4272
4271
  children: v
4273
4272
  },
@@ -4278,7 +4277,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4278
4277
  /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, justifyContent: "space-between" }, children: [
4279
4278
  /* @__PURE__ */ t.jsx(ie.Text, { strong: !0, style: { fontSize: 16 }, children: e }),
4280
4279
  /* @__PURE__ */ t.jsx(
4281
- le,
4280
+ fe,
4282
4281
  {
4283
4282
  icon: /* @__PURE__ */ t.jsx(xe, { type: "close" }),
4284
4283
  onClick: () => {
@@ -4296,7 +4295,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4296
4295
  ]
4297
4296
  }
4298
4297
  );
4299
- }, vi = K(yi), bi = () => {
4298
+ }, vi = X(yi), bi = () => {
4300
4299
  const e = I(
4301
4300
  "ReconnectManually",
4302
4301
  "Reconnect Manually"
@@ -4308,7 +4307,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4308
4307
  retryCountState: s,
4309
4308
  setRetryCountState: i,
4310
4309
  retryCountRef: a
4311
- } = We(), l = z(() => s === ut ? `${n} ${r}` : `${n} ${o}`, [s]);
4310
+ } = Be(), l = K(() => s === ut ? `${n} ${r}` : `${n} ${o}`, [s]);
4312
4311
  return /* @__PURE__ */ t.jsx(
4313
4312
  "div",
4314
4313
  {
@@ -4328,7 +4327,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4328
4327
  },
4329
4328
  title: l,
4330
4329
  extra: s === ut ? /* @__PURE__ */ t.jsx(
4331
- le,
4330
+ fe,
4332
4331
  {
4333
4332
  type: "primary",
4334
4333
  onClick: () => {
@@ -4350,8 +4349,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4350
4349
  )
4351
4350
  }
4352
4351
  );
4353
- }, Ci = K(bi), Ti = () => {
4354
- const { setTicketId: e, ticketId: n, openFilter: r } = He(), { onSendMsg: o, setGetResponse: c } = We(), { showReadyWSHD: s } = ue();
4352
+ }, Ci = X(bi), Ti = () => {
4353
+ const { setTicketId: e, ticketId: n, openFilter: r } = He(), { onSendMsg: o, setGetResponse: c } = Be(), { showReadyWSHD: s } = de();
4355
4354
  return s ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
4356
4355
  /* @__PURE__ */ t.jsx(
4357
4356
  mi,
@@ -4370,8 +4369,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
4370
4369
  /* @__PURE__ */ t.jsx("div", { style: { display: !n && !r ? "block" : "none" }, children: /* @__PURE__ */ t.jsx(Is, {}) }),
4371
4370
  /* @__PURE__ */ t.jsx(vi, {})
4372
4371
  ] }) : /* @__PURE__ */ t.jsx(Ci, {});
4373
- }, Ei = K(Ti);
4374
- var ct = { exports: {} }, $t = {}, yt = { exports: {} }, vt = { exports: {} }, ae = {};
4372
+ }, Ei = X(Ti);
4373
+ var at = { exports: {} }, $t = {}, yt = { exports: {} }, vt = { exports: {} }, le = {};
4375
4374
  /** @license React v16.13.1
4376
4375
  * react-is.production.min.js
4377
4376
  *
@@ -4382,9 +4381,9 @@ var ct = { exports: {} }, $t = {}, yt = { exports: {} }, vt = { exports: {} }, a
4382
4381
  */
4383
4382
  var Sn;
4384
4383
  function Si() {
4385
- if (Sn) return ae;
4384
+ if (Sn) return le;
4386
4385
  Sn = 1;
4387
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, j = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
4386
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, j = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
4388
4387
  function x(f) {
4389
4388
  if (typeof f == "object" && f !== null) {
4390
4389
  var b = f.$$typeof;
@@ -4396,7 +4395,7 @@ function Si() {
4396
4395
  case o:
4397
4396
  case s:
4398
4397
  case c:
4399
- case p:
4398
+ case h:
4400
4399
  return f;
4401
4400
  default:
4402
4401
  switch (f = f && f.$$typeof, f) {
@@ -4418,35 +4417,35 @@ function Si() {
4418
4417
  function E(f) {
4419
4418
  return x(f) === g;
4420
4419
  }
4421
- return ae.AsyncMode = l, ae.ConcurrentMode = g, ae.ContextConsumer = a, ae.ContextProvider = i, ae.Element = n, ae.ForwardRef = m, ae.Fragment = o, ae.Lazy = j, ae.Memo = y, ae.Portal = r, ae.Profiler = s, ae.StrictMode = c, ae.Suspense = p, ae.isAsyncMode = function(f) {
4420
+ return le.AsyncMode = l, le.ConcurrentMode = g, le.ContextConsumer = a, le.ContextProvider = i, le.Element = n, le.ForwardRef = m, le.Fragment = o, le.Lazy = j, le.Memo = y, le.Portal = r, le.Profiler = s, le.StrictMode = c, le.Suspense = h, le.isAsyncMode = function(f) {
4422
4421
  return E(f) || x(f) === l;
4423
- }, ae.isConcurrentMode = E, ae.isContextConsumer = function(f) {
4422
+ }, le.isConcurrentMode = E, le.isContextConsumer = function(f) {
4424
4423
  return x(f) === a;
4425
- }, ae.isContextProvider = function(f) {
4424
+ }, le.isContextProvider = function(f) {
4426
4425
  return x(f) === i;
4427
- }, ae.isElement = function(f) {
4426
+ }, le.isElement = function(f) {
4428
4427
  return typeof f == "object" && f !== null && f.$$typeof === n;
4429
- }, ae.isForwardRef = function(f) {
4428
+ }, le.isForwardRef = function(f) {
4430
4429
  return x(f) === m;
4431
- }, ae.isFragment = function(f) {
4430
+ }, le.isFragment = function(f) {
4432
4431
  return x(f) === o;
4433
- }, ae.isLazy = function(f) {
4432
+ }, le.isLazy = function(f) {
4434
4433
  return x(f) === j;
4435
- }, ae.isMemo = function(f) {
4434
+ }, le.isMemo = function(f) {
4436
4435
  return x(f) === y;
4437
- }, ae.isPortal = function(f) {
4436
+ }, le.isPortal = function(f) {
4438
4437
  return x(f) === r;
4439
- }, ae.isProfiler = function(f) {
4438
+ }, le.isProfiler = function(f) {
4440
4439
  return x(f) === s;
4441
- }, ae.isStrictMode = function(f) {
4440
+ }, le.isStrictMode = function(f) {
4442
4441
  return x(f) === c;
4443
- }, ae.isSuspense = function(f) {
4444
- return x(f) === p;
4445
- }, ae.isValidElementType = function(f) {
4446
- return typeof f == "string" || typeof f == "function" || f === o || f === g || f === s || f === c || f === p || f === h || typeof f == "object" && f !== null && (f.$$typeof === j || f.$$typeof === y || f.$$typeof === i || f.$$typeof === a || f.$$typeof === m || f.$$typeof === S || f.$$typeof === T || f.$$typeof === w || f.$$typeof === v);
4447
- }, ae.typeOf = x, ae;
4442
+ }, le.isSuspense = function(f) {
4443
+ return x(f) === h;
4444
+ }, le.isValidElementType = function(f) {
4445
+ return typeof f == "string" || typeof f == "function" || f === o || f === g || f === s || f === c || f === h || f === p || typeof f == "object" && f !== null && (f.$$typeof === j || f.$$typeof === y || f.$$typeof === i || f.$$typeof === a || f.$$typeof === m || f.$$typeof === S || f.$$typeof === T || f.$$typeof === _ || f.$$typeof === v);
4446
+ }, le.typeOf = x, le;
4448
4447
  }
4449
- var ce = {};
4448
+ var ue = {};
4450
4449
  /** @license React v16.13.1
4451
4450
  * react-is.development.js
4452
4451
  *
@@ -4458,85 +4457,85 @@ var ce = {};
4458
4457
  var wn;
4459
4458
  function wi() {
4460
4459
  return wn || (wn = 1, process.env.NODE_ENV !== "production" && function() {
4461
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, j = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
4462
- function x(L) {
4463
- return typeof L == "string" || typeof L == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4464
- L === o || L === g || L === s || L === c || L === p || L === h || typeof L == "object" && L !== null && (L.$$typeof === j || L.$$typeof === y || L.$$typeof === i || L.$$typeof === a || L.$$typeof === m || L.$$typeof === S || L.$$typeof === T || L.$$typeof === w || L.$$typeof === v);
4460
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, j = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
4461
+ function x(O) {
4462
+ return typeof O == "string" || typeof O == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4463
+ O === o || O === g || O === s || O === c || O === h || O === p || typeof O == "object" && O !== null && (O.$$typeof === j || O.$$typeof === y || O.$$typeof === i || O.$$typeof === a || O.$$typeof === m || O.$$typeof === S || O.$$typeof === T || O.$$typeof === _ || O.$$typeof === v);
4465
4464
  }
4466
- function E(L) {
4467
- if (typeof L == "object" && L !== null) {
4468
- var be = L.$$typeof;
4469
- switch (be) {
4465
+ function E(O) {
4466
+ if (typeof O == "object" && O !== null) {
4467
+ var me = O.$$typeof;
4468
+ switch (me) {
4470
4469
  case n:
4471
- var Ee = L.type;
4472
- switch (Ee) {
4470
+ var Ce = O.type;
4471
+ switch (Ce) {
4473
4472
  case l:
4474
4473
  case g:
4475
4474
  case o:
4476
4475
  case s:
4477
4476
  case c:
4478
- case p:
4479
- return Ee;
4477
+ case h:
4478
+ return Ce;
4480
4479
  default:
4481
- var fe = Ee && Ee.$$typeof;
4482
- switch (fe) {
4480
+ var ce = Ce && Ce.$$typeof;
4481
+ switch (ce) {
4483
4482
  case a:
4484
4483
  case m:
4485
4484
  case j:
4486
4485
  case y:
4487
4486
  case i:
4488
- return fe;
4487
+ return ce;
4489
4488
  default:
4490
- return be;
4489
+ return me;
4491
4490
  }
4492
4491
  }
4493
4492
  case r:
4494
- return be;
4493
+ return me;
4495
4494
  }
4496
4495
  }
4497
4496
  }
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
- function te(L) {
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;
4497
+ var f = l, b = g, u = a, C = i, A = n, L = m, D = o, B = j, w = y, N = r, G = s, H = c, F = h, re = !1;
4498
+ function te(O) {
4499
+ return re || (re = !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(O) || E(O) === l;
4501
4500
  }
4502
- function k(L) {
4503
- return E(L) === g;
4501
+ function k(O) {
4502
+ return E(O) === g;
4504
4503
  }
4505
- function M(L) {
4506
- return E(L) === a;
4504
+ function M(O) {
4505
+ return E(O) === a;
4507
4506
  }
4508
- function P(L) {
4509
- return E(L) === i;
4507
+ function Z(O) {
4508
+ return E(O) === i;
4510
4509
  }
4511
- function B(L) {
4512
- return typeof L == "object" && L !== null && L.$$typeof === n;
4510
+ function V(O) {
4511
+ return typeof O == "object" && O !== null && O.$$typeof === n;
4513
4512
  }
4514
- function Y(L) {
4515
- return E(L) === m;
4513
+ function P(O) {
4514
+ return E(O) === m;
4516
4515
  }
4517
- function Z(L) {
4518
- return E(L) === o;
4516
+ function ee(O) {
4517
+ return E(O) === o;
4519
4518
  }
4520
- function X(L) {
4521
- return E(L) === j;
4519
+ function J(O) {
4520
+ return E(O) === j;
4522
4521
  }
4523
- function J(L) {
4524
- return E(L) === y;
4522
+ function q(O) {
4523
+ return E(O) === y;
4525
4524
  }
4526
- function ee(L) {
4527
- return E(L) === r;
4525
+ function z(O) {
4526
+ return E(O) === r;
4528
4527
  }
4529
- function $(L) {
4530
- return E(L) === s;
4528
+ function $(O) {
4529
+ return E(O) === s;
4531
4530
  }
4532
- function V(L) {
4533
- return E(L) === c;
4531
+ function Y(O) {
4532
+ return E(O) === c;
4534
4533
  }
4535
- function de(L) {
4536
- return E(L) === p;
4534
+ function ae(O) {
4535
+ return E(O) === h;
4537
4536
  }
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
- }()), ce;
4537
+ ue.AsyncMode = f, ue.ConcurrentMode = b, ue.ContextConsumer = u, ue.ContextProvider = C, ue.Element = A, ue.ForwardRef = L, ue.Fragment = D, ue.Lazy = B, ue.Memo = w, ue.Portal = N, ue.Profiler = G, ue.StrictMode = H, ue.Suspense = F, ue.isAsyncMode = te, ue.isConcurrentMode = k, ue.isContextConsumer = M, ue.isContextProvider = Z, ue.isElement = V, ue.isForwardRef = P, ue.isFragment = ee, ue.isLazy = J, ue.isMemo = q, ue.isPortal = z, ue.isProfiler = $, ue.isStrictMode = Y, ue.isSuspense = ae, ue.isValidElementType = x, ue.typeOf = E;
4538
+ }()), ue;
4540
4539
  }
4541
4540
  var _n;
4542
4541
  function gr() {
@@ -4553,9 +4552,9 @@ var Ht, kn;
4553
4552
  function pr() {
4554
4553
  return kn || (kn = 1, Ht = Function.call.bind(Object.prototype.hasOwnProperty)), Ht;
4555
4554
  }
4556
- var Wt, An;
4555
+ var Bt, An;
4557
4556
  function _i() {
4558
- if (An) return Wt;
4557
+ if (An) return Bt;
4559
4558
  An = 1;
4560
4559
  var e = function() {
4561
4560
  };
@@ -4574,25 +4573,25 @@ function _i() {
4574
4573
  if (process.env.NODE_ENV !== "production") {
4575
4574
  for (var m in s)
4576
4575
  if (o(s, m)) {
4577
- var p;
4576
+ var h;
4578
4577
  try {
4579
4578
  if (typeof s[m] != "function") {
4580
- var h = Error(
4579
+ var p = Error(
4581
4580
  (l || "React class") + ": " + a + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
4582
4581
  );
4583
- throw h.name = "Invariant Violation", h;
4582
+ throw p.name = "Invariant Violation", p;
4584
4583
  }
4585
- p = s[m](i, m, l, a, null, n);
4584
+ h = s[m](i, m, l, a, null, n);
4586
4585
  } catch (j) {
4587
- p = j;
4586
+ h = j;
4588
4587
  }
4589
- if (p && !(p instanceof Error) && e(
4590
- (l || "React class") + ": type specification of " + a + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
4591
- ), p instanceof Error && !(p.message in r)) {
4592
- r[p.message] = !0;
4588
+ if (h && !(h instanceof Error) && e(
4589
+ (l || "React class") + ": type specification of " + a + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
4590
+ ), h instanceof Error && !(h.message in r)) {
4591
+ r[h.message] = !0;
4593
4592
  var y = g ? g() : "";
4594
4593
  e(
4595
- "Failed " + a + " type: " + p.message + (y ?? "")
4594
+ "Failed " + a + " type: " + h.message + (y ?? "")
4596
4595
  );
4597
4596
  }
4598
4597
  }
@@ -4600,11 +4599,11 @@ function _i() {
4600
4599
  }
4601
4600
  return c.resetWarningCache = function() {
4602
4601
  process.env.NODE_ENV !== "production" && (r = {});
4603
- }, Wt = c, Wt;
4602
+ }, Bt = c, Bt;
4604
4603
  }
4605
- var Bt, Rn;
4604
+ var Wt, Rn;
4606
4605
  function ji() {
4607
- if (Rn) return Bt;
4606
+ if (Rn) return Wt;
4608
4607
  Rn = 1;
4609
4608
  var e = gr(), n = qt(), r = /* @__PURE__ */ tn(), o = /* @__PURE__ */ pr(), c = /* @__PURE__ */ _i(), s = function() {
4610
4609
  };
@@ -4619,14 +4618,14 @@ function ji() {
4619
4618
  function i() {
4620
4619
  return null;
4621
4620
  }
4622
- return Bt = function(a, l) {
4621
+ return Wt = function(a, l) {
4623
4622
  var g = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
4624
- function p(k) {
4623
+ function h(k) {
4625
4624
  var M = k && (g && k[g] || k[m]);
4626
4625
  if (typeof M == "function")
4627
4626
  return M;
4628
4627
  }
4629
- var h = "<<anonymous>>", y = {
4628
+ var p = "<<anonymous>>", y = {
4630
4629
  array: T("array"),
4631
4630
  bigint: T("bigint"),
4632
4631
  bool: T("boolean"),
@@ -4635,17 +4634,17 @@ function ji() {
4635
4634
  object: T("object"),
4636
4635
  string: T("string"),
4637
4636
  symbol: T("symbol"),
4638
- any: w(),
4637
+ any: _(),
4639
4638
  arrayOf: x,
4640
4639
  element: E(),
4641
4640
  elementType: f(),
4642
4641
  instanceOf: b,
4643
- node: N(),
4642
+ node: L(),
4644
4643
  objectOf: C,
4645
4644
  oneOf: u,
4646
4645
  oneOfType: A,
4647
- shape: _,
4648
- exact: R
4646
+ shape: B,
4647
+ exact: w
4649
4648
  };
4650
4649
  function j(k, M) {
4651
4650
  return k === M ? k !== 0 || 1 / k === 1 / M : k !== k && M !== M;
@@ -4656,34 +4655,34 @@ function ji() {
4656
4655
  v.prototype = Error.prototype;
4657
4656
  function S(k) {
4658
4657
  if (process.env.NODE_ENV !== "production")
4659
- var M = {}, P = 0;
4660
- function B(Z, X, J, ee, $, V, de) {
4661
- if (ee = ee || h, V = V || J, de !== r) {
4658
+ var M = {}, Z = 0;
4659
+ function V(ee, J, q, z, $, Y, ae) {
4660
+ if (z = z || p, Y = Y || q, ae !== r) {
4662
4661
  if (l) {
4663
- var L = new Error(
4662
+ var O = new Error(
4664
4663
  "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
4664
  );
4666
- throw L.name = "Invariant Violation", L;
4665
+ throw O.name = "Invariant Violation", O;
4667
4666
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
4668
- var be = ee + ":" + J;
4669
- !M[be] && // Avoid spamming the console because they are often not actionable except for lib authors
4670
- P < 3 && (s(
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
- ), M[be] = !0, P++);
4667
+ var me = z + ":" + q;
4668
+ !M[me] && // Avoid spamming the console because they are often not actionable except for lib authors
4669
+ Z < 3 && (s(
4670
+ "You are manually calling a React.PropTypes validation function for the `" + Y + "` prop on `" + z + "`. 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
+ ), M[me] = !0, Z++);
4673
4672
  }
4674
4673
  }
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);
4674
+ return J[q] == null ? ee ? J[q] === null ? new v("The " + $ + " `" + Y + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new v("The " + $ + " `" + Y + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : k(J, q, z, $, Y);
4676
4675
  }
4677
- var Y = B.bind(null, !1);
4678
- return Y.isRequired = B.bind(null, !0), Y;
4676
+ var P = V.bind(null, !1);
4677
+ return P.isRequired = V.bind(null, !0), P;
4679
4678
  }
4680
4679
  function T(k) {
4681
- function M(P, B, Y, Z, X, J) {
4682
- var ee = P[B], $ = q(ee);
4680
+ function M(Z, V, P, ee, J, q) {
4681
+ var z = Z[V], $ = H(z);
4683
4682
  if ($ !== k) {
4684
- var V = F(ee);
4683
+ var Y = F(z);
4685
4684
  return new v(
4686
- "Invalid " + Z + " `" + X + "` of type " + ("`" + V + "` supplied to `" + Y + "`, expected ") + ("`" + k + "`."),
4685
+ "Invalid " + ee + " `" + J + "` of type " + ("`" + Y + "` supplied to `" + P + "`, expected ") + ("`" + k + "`."),
4687
4686
  { expectedType: k }
4688
4687
  );
4689
4688
  }
@@ -4691,54 +4690,54 @@ function ji() {
4691
4690
  }
4692
4691
  return S(M);
4693
4692
  }
4694
- function w() {
4693
+ function _() {
4695
4694
  return S(i);
4696
4695
  }
4697
4696
  function x(k) {
4698
- function M(P, B, Y, Z, X) {
4697
+ function M(Z, V, P, ee, J) {
4699
4698
  if (typeof k != "function")
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."));
4699
+ return new v("Property `" + J + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
4700
+ var q = Z[V];
4701
+ if (!Array.isArray(q)) {
4702
+ var z = H(q);
4703
+ return new v("Invalid " + ee + " `" + J + "` of type " + ("`" + z + "` supplied to `" + P + "`, expected an array."));
4705
4704
  }
4706
- for (var $ = 0; $ < J.length; $++) {
4707
- var V = k(J, $, Y, Z, X + "[" + $ + "]", r);
4708
- if (V instanceof Error)
4709
- return V;
4705
+ for (var $ = 0; $ < q.length; $++) {
4706
+ var Y = k(q, $, P, ee, J + "[" + $ + "]", r);
4707
+ if (Y instanceof Error)
4708
+ return Y;
4710
4709
  }
4711
4710
  return null;
4712
4711
  }
4713
4712
  return S(M);
4714
4713
  }
4715
4714
  function E() {
4716
- function k(M, P, B, Y, Z) {
4717
- var X = M[P];
4718
- if (!a(X)) {
4719
- var J = q(X);
4720
- return new v("Invalid " + Y + " `" + Z + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected a single ReactElement."));
4715
+ function k(M, Z, V, P, ee) {
4716
+ var J = M[Z];
4717
+ if (!a(J)) {
4718
+ var q = H(J);
4719
+ return new v("Invalid " + P + " `" + ee + "` of type " + ("`" + q + "` supplied to `" + V + "`, expected a single ReactElement."));
4721
4720
  }
4722
4721
  return null;
4723
4722
  }
4724
4723
  return S(k);
4725
4724
  }
4726
4725
  function f() {
4727
- function k(M, P, B, Y, Z) {
4728
- var X = M[P];
4729
- if (!e.isValidElementType(X)) {
4730
- var J = q(X);
4731
- return new v("Invalid " + Y + " `" + Z + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected a single ReactElement type."));
4726
+ function k(M, Z, V, P, ee) {
4727
+ var J = M[Z];
4728
+ if (!e.isValidElementType(J)) {
4729
+ var q = H(J);
4730
+ return new v("Invalid " + P + " `" + ee + "` of type " + ("`" + q + "` supplied to `" + V + "`, expected a single ReactElement type."));
4732
4731
  }
4733
4732
  return null;
4734
4733
  }
4735
4734
  return S(k);
4736
4735
  }
4737
4736
  function b(k) {
4738
- function M(P, B, Y, Z, X) {
4739
- if (!(P[B] instanceof k)) {
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 + "`."));
4737
+ function M(Z, V, P, ee, J) {
4738
+ if (!(Z[V] instanceof k)) {
4739
+ var q = k.name || p, z = te(Z[V]);
4740
+ return new v("Invalid " + ee + " `" + J + "` of type " + ("`" + z + "` supplied to `" + P + "`, expected ") + ("instance of `" + q + "`."));
4742
4741
  }
4743
4742
  return null;
4744
4743
  }
@@ -4749,30 +4748,30 @@ function ji() {
4749
4748
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
4750
4749
  "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
4750
  ) : s("Invalid argument supplied to oneOf, expected an array.")), i;
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]))
4751
+ function M(Z, V, P, ee, J) {
4752
+ for (var q = Z[V], z = 0; z < k.length; z++)
4753
+ if (j(q, k[z]))
4755
4754
  return null;
4756
- var $ = JSON.stringify(k, function(de, L) {
4757
- var be = F(L);
4758
- return be === "symbol" ? String(L) : L;
4755
+ var $ = JSON.stringify(k, function(ae, O) {
4756
+ var me = F(O);
4757
+ return me === "symbol" ? String(O) : O;
4759
4758
  });
4760
- return new v("Invalid " + Z + " `" + X + "` of value `" + String(J) + "` " + ("supplied to `" + Y + "`, expected one of " + $ + "."));
4759
+ return new v("Invalid " + ee + " `" + J + "` of value `" + String(q) + "` " + ("supplied to `" + P + "`, expected one of " + $ + "."));
4761
4760
  }
4762
4761
  return S(M);
4763
4762
  }
4764
4763
  function C(k) {
4765
- function M(P, B, Y, Z, X) {
4764
+ function M(Z, V, P, ee, J) {
4766
4765
  if (typeof k != "function")
4767
- return new v("Property `" + X + "` of component `" + Y + "` has invalid PropType notation inside objectOf.");
4768
- var J = P[B], ee = q(J);
4769
- if (ee !== "object")
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;
4766
+ return new v("Property `" + J + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
4767
+ var q = Z[V], z = H(q);
4768
+ if (z !== "object")
4769
+ return new v("Invalid " + ee + " `" + J + "` of type " + ("`" + z + "` supplied to `" + P + "`, expected an object."));
4770
+ for (var $ in q)
4771
+ if (o(q, $)) {
4772
+ var Y = k(q, $, P, ee, J + "." + $, r);
4773
+ if (Y instanceof Error)
4774
+ return Y;
4776
4775
  }
4777
4776
  return null;
4778
4777
  }
@@ -4782,76 +4781,76 @@ function ji() {
4782
4781
  if (!Array.isArray(k))
4783
4782
  return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), i;
4784
4783
  for (var M = 0; M < k.length; M++) {
4785
- var P = k[M];
4786
- if (typeof P != "function")
4784
+ var Z = k[M];
4785
+ if (typeof Z != "function")
4787
4786
  return s(
4788
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(P) + " at index " + M + "."
4787
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(Z) + " at index " + M + "."
4789
4788
  ), i;
4790
4789
  }
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
- if (L == null)
4790
+ function V(P, ee, J, q, z) {
4791
+ for (var $ = [], Y = 0; Y < k.length; Y++) {
4792
+ var ae = k[Y], O = ae(P, ee, J, q, z, r);
4793
+ if (O == null)
4795
4794
  return null;
4796
- L.data && o(L.data, "expectedType") && $.push(L.data.expectedType);
4795
+ O.data && o(O.data, "expectedType") && $.push(O.data.expectedType);
4797
4796
  }
4798
- var be = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
4799
- return new v("Invalid " + J + " `" + ee + "` supplied to " + ("`" + X + "`" + be + "."));
4797
+ var me = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
4798
+ return new v("Invalid " + q + " `" + z + "` supplied to " + ("`" + J + "`" + me + "."));
4800
4799
  }
4801
- return S(B);
4800
+ return S(V);
4802
4801
  }
4803
- function N() {
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."));
4802
+ function L() {
4803
+ function k(M, Z, V, P, ee) {
4804
+ return N(M[Z]) ? null : new v("Invalid " + P + " `" + ee + "` supplied to " + ("`" + V + "`, expected a ReactNode."));
4806
4805
  }
4807
4806
  return S(k);
4808
4807
  }
4809
- function O(k, M, P, B, Y) {
4808
+ function D(k, M, Z, V, P) {
4810
4809
  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 `" + Y + "`."
4810
+ (k || "React class") + ": " + M + " type `" + Z + "." + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
4812
4811
  );
4813
4812
  }
4814
- function _(k) {
4815
- function M(P, B, Y, Z, X) {
4816
- var J = P[B], ee = q(J);
4817
- if (ee !== "object")
4818
- return new v("Invalid " + Z + " `" + X + "` of type `" + ee + "` " + ("supplied to `" + Y + "`, expected `object`."));
4813
+ function B(k) {
4814
+ function M(Z, V, P, ee, J) {
4815
+ var q = Z[V], z = H(q);
4816
+ if (z !== "object")
4817
+ return new v("Invalid " + ee + " `" + J + "` of type `" + z + "` " + ("supplied to `" + P + "`, expected `object`."));
4819
4818
  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
- if (de)
4825
- return de;
4819
+ var Y = k[$];
4820
+ if (typeof Y != "function")
4821
+ return D(P, ee, J, $, F(Y));
4822
+ var ae = Y(q, $, P, ee, J + "." + $, r);
4823
+ if (ae)
4824
+ return ae;
4826
4825
  }
4827
4826
  return null;
4828
4827
  }
4829
4828
  return S(M);
4830
4829
  }
4831
- function R(k) {
4832
- function M(P, B, Y, Z, X) {
4833
- var J = P[B], ee = q(J);
4834
- if (ee !== "object")
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
- if (!de)
4830
+ function w(k) {
4831
+ function M(Z, V, P, ee, J) {
4832
+ var q = Z[V], z = H(q);
4833
+ if (z !== "object")
4834
+ return new v("Invalid " + ee + " `" + J + "` of type `" + z + "` " + ("supplied to `" + P + "`, expected `object`."));
4835
+ var $ = n({}, Z[V], k);
4836
+ for (var Y in $) {
4837
+ var ae = k[Y];
4838
+ if (o(k, Y) && typeof ae != "function")
4839
+ return D(P, ee, J, Y, F(ae));
4840
+ if (!ae)
4842
4841
  return new v(
4843
- "Invalid " + Z + " `" + X + "` key `" + V + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(P[B], null, " ") + `
4842
+ "Invalid " + ee + " `" + J + "` key `" + Y + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(Z[V], null, " ") + `
4844
4843
  Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
4845
4844
  );
4846
- var L = de(J, V, Y, Z, X + "." + V, r);
4847
- if (L)
4848
- return L;
4845
+ var O = ae(q, Y, P, ee, J + "." + Y, r);
4846
+ if (O)
4847
+ return O;
4849
4848
  }
4850
4849
  return null;
4851
4850
  }
4852
4851
  return S(M);
4853
4852
  }
4854
- function H(k) {
4853
+ function N(k) {
4855
4854
  switch (typeof k) {
4856
4855
  case "number":
4857
4856
  case "string":
@@ -4861,20 +4860,20 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
4861
4860
  return !k;
4862
4861
  case "object":
4863
4862
  if (Array.isArray(k))
4864
- return k.every(H);
4863
+ return k.every(N);
4865
4864
  if (k === null || a(k))
4866
4865
  return !0;
4867
- var M = p(k);
4866
+ var M = h(k);
4868
4867
  if (M) {
4869
- var P = M.call(k), B;
4868
+ var Z = M.call(k), V;
4870
4869
  if (M !== k.entries) {
4871
- for (; !(B = P.next()).done; )
4872
- if (!H(B.value))
4870
+ for (; !(V = Z.next()).done; )
4871
+ if (!N(V.value))
4873
4872
  return !1;
4874
4873
  } else
4875
- for (; !(B = P.next()).done; ) {
4876
- var Y = B.value;
4877
- if (Y && !H(Y[1]))
4874
+ for (; !(V = Z.next()).done; ) {
4875
+ var P = V.value;
4876
+ if (P && !N(P[1]))
4878
4877
  return !1;
4879
4878
  }
4880
4879
  } else
@@ -4887,14 +4886,14 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
4887
4886
  function G(k, M) {
4888
4887
  return k === "symbol" ? !0 : M ? M["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && M instanceof Symbol : !1;
4889
4888
  }
4890
- function q(k) {
4889
+ function H(k) {
4891
4890
  var M = typeof k;
4892
4891
  return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : G(M, k) ? "symbol" : M;
4893
4892
  }
4894
4893
  function F(k) {
4895
4894
  if (typeof k > "u" || k === null)
4896
4895
  return "" + k;
4897
- var M = q(k);
4896
+ var M = H(k);
4898
4897
  if (M === "object") {
4899
4898
  if (k instanceof Date)
4900
4899
  return "date";
@@ -4903,7 +4902,7 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
4903
4902
  }
4904
4903
  return M;
4905
4904
  }
4906
- function se(k) {
4905
+ function re(k) {
4907
4906
  var M = F(k);
4908
4907
  switch (M) {
4909
4908
  case "array":
@@ -4918,10 +4917,10 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
4918
4917
  }
4919
4918
  }
4920
4919
  function te(k) {
4921
- return !k.constructor || !k.constructor.name ? h : k.constructor.name;
4920
+ return !k.constructor || !k.constructor.name ? p : k.constructor.name;
4922
4921
  }
4923
4922
  return y.checkPropTypes = c, y.resetWarningCache = c.resetWarningCache, y.PropTypes = y, y;
4924
- }, Bt;
4923
+ }, Wt;
4925
4924
  }
4926
4925
  var Yt, Dn;
4927
4926
  function ki() {
@@ -4933,12 +4932,12 @@ function ki() {
4933
4932
  function r() {
4934
4933
  }
4935
4934
  return r.resetWarningCache = n, Yt = function() {
4936
- function o(i, a, l, g, m, p) {
4937
- if (p !== e) {
4938
- var h = new Error(
4935
+ function o(i, a, l, g, m, h) {
4936
+ if (h !== e) {
4937
+ var p = new Error(
4939
4938
  "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"
4940
4939
  );
4941
- throw h.name = "Invariant Violation", h;
4940
+ throw p.name = "Invariant Violation", p;
4942
4941
  }
4943
4942
  }
4944
4943
  o.isRequired = o;
@@ -5000,7 +4999,7 @@ function Ai() {
5000
4999
  }
5001
5000
  return bt.exports = n, bt.exports.clsx = n, bt.exports;
5002
5001
  }
5003
- var ye = {}, Fe = {}, Mn;
5002
+ var ve = {}, Fe = {}, Mn;
5004
5003
  function jt() {
5005
5004
  if (Mn) return Fe;
5006
5005
  Mn = 1, Object.defineProperty(Fe, "__esModule", {
@@ -5058,22 +5057,22 @@ function Ri() {
5058
5057
  }
5059
5058
  var Fn;
5060
5059
  function nn() {
5061
- if (Fn) return ye;
5062
- Fn = 1, Object.defineProperty(ye, "__esModule", {
5060
+ if (Fn) return ve;
5061
+ Fn = 1, Object.defineProperty(ve, "__esModule", {
5063
5062
  value: !0
5064
- }), ye.addClassName = f, ye.addEvent = i, ye.addUserSelectStyles = w, ye.createCSSTransform = y, ye.createSVGTransform = j, ye.getTouch = S, ye.getTouchIdentifier = T, ye.getTranslation = v, ye.innerHeight = m, ye.innerWidth = p, ye.matchesSelector = c, ye.matchesSelectorAndParentsTo = s, ye.offsetXYFromParent = h, ye.outerHeight = l, ye.outerWidth = g, ye.removeClassName = b, ye.removeEvent = a, ye.scheduleRemoveUserSelectStyles = x;
5063
+ }), ve.addClassName = f, ve.addEvent = i, ve.addUserSelectStyles = _, ve.createCSSTransform = y, ve.createSVGTransform = j, ve.getTouch = S, ve.getTouchIdentifier = T, ve.getTranslation = v, ve.innerHeight = m, ve.innerWidth = h, ve.matchesSelector = c, ve.matchesSelectorAndParentsTo = s, ve.offsetXYFromParent = p, ve.outerHeight = l, ve.outerWidth = g, ve.removeClassName = b, ve.removeEvent = a, ve.scheduleRemoveUserSelectStyles = x;
5065
5064
  var e = jt(), n = r(Ri());
5066
5065
  function r(u, C) {
5067
- if (typeof WeakMap == "function") var A = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
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);
5066
+ if (typeof WeakMap == "function") var A = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap();
5067
+ return (r = function(D, B) {
5068
+ if (!B && D && D.__esModule) return D;
5069
+ var w, N, G = { __proto__: null, default: D };
5070
+ if (D === null || typeof D != "object" && typeof D != "function") return G;
5071
+ if (w = B ? L : A) {
5072
+ if (w.has(D)) return w.get(D);
5073
+ w.set(D, G);
5075
5074
  }
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]);
5075
+ for (const H in D) H !== "default" && {}.hasOwnProperty.call(D, H) && ((N = (w = Object.defineProperty) && Object.getOwnPropertyDescriptor(D, H)) && (N.get || N.set) ? w(G, H, N) : G[H] = D[H]);
5077
5076
  return G;
5078
5077
  })(u, C);
5079
5078
  }
@@ -5084,29 +5083,29 @@ function nn() {
5084
5083
  })), (0, e.isFunction)(u[o]) ? u[o](C) : !1;
5085
5084
  }
5086
5085
  function s(u, C, A) {
5087
- let N = u;
5086
+ let L = u;
5088
5087
  do {
5089
- if (c(N, C)) return !0;
5090
- if (N === A) return !1;
5091
- N = N.parentNode;
5092
- } while (N);
5088
+ if (c(L, C)) return !0;
5089
+ if (L === A) return !1;
5090
+ L = L.parentNode;
5091
+ } while (L);
5093
5092
  return !1;
5094
5093
  }
5095
- function i(u, C, A, N) {
5094
+ function i(u, C, A, L) {
5096
5095
  if (!u) return;
5097
- const O = {
5096
+ const D = {
5098
5097
  capture: !0,
5099
- ...N
5098
+ ...L
5100
5099
  };
5101
- u.addEventListener ? u.addEventListener(C, A, O) : u.attachEvent ? u.attachEvent("on" + C, A) : u["on" + C] = A;
5100
+ u.addEventListener ? u.addEventListener(C, A, D) : u.attachEvent ? u.attachEvent("on" + C, A) : u["on" + C] = A;
5102
5101
  }
5103
- function a(u, C, A, N) {
5102
+ function a(u, C, A, L) {
5104
5103
  if (!u) return;
5105
- const O = {
5104
+ const D = {
5106
5105
  capture: !0,
5107
- ...N
5106
+ ...L
5108
5107
  };
5109
- u.removeEventListener ? u.removeEventListener(C, A, O) : u.detachEvent ? u.detachEvent("on" + C, A) : u["on" + C] = null;
5108
+ u.removeEventListener ? u.removeEventListener(C, A, D) : u.detachEvent ? u.detachEvent("on" + C, A) : u["on" + C] = null;
5110
5109
  }
5111
5110
  function l(u) {
5112
5111
  let C = u.clientHeight;
@@ -5123,19 +5122,19 @@ function nn() {
5123
5122
  const A = u.ownerDocument.defaultView.getComputedStyle(u);
5124
5123
  return C -= (0, e.int)(A.paddingTop), C -= (0, e.int)(A.paddingBottom), C;
5125
5124
  }
5126
- function p(u) {
5125
+ function h(u) {
5127
5126
  let C = u.clientWidth;
5128
5127
  const A = u.ownerDocument.defaultView.getComputedStyle(u);
5129
5128
  return C -= (0, e.int)(A.paddingLeft), C -= (0, e.int)(A.paddingRight), C;
5130
5129
  }
5131
- function h(u, C, A) {
5132
- const O = C === C.ownerDocument.body ? {
5130
+ function p(u, C, A) {
5131
+ const D = C === C.ownerDocument.body ? {
5133
5132
  left: 0,
5134
5133
  top: 0
5135
- } : C.getBoundingClientRect(), _ = (u.clientX + C.scrollLeft - O.left) / A, R = (u.clientY + C.scrollTop - O.top) / A;
5134
+ } : C.getBoundingClientRect(), B = (u.clientX + C.scrollLeft - D.left) / A, w = (u.clientY + C.scrollTop - D.top) / A;
5136
5135
  return {
5137
- x: _,
5138
- y: R
5136
+ x: B,
5137
+ y: w
5139
5138
  };
5140
5139
  }
5141
5140
  function y(u, C) {
@@ -5149,14 +5148,14 @@ function nn() {
5149
5148
  }
5150
5149
  function v(u, C, A) {
5151
5150
  let {
5152
- x: N,
5153
- y: O
5154
- } = u, _ = `translate(${N}${A},${O}${A})`;
5151
+ x: L,
5152
+ y: D
5153
+ } = u, B = `translate(${L}${A},${D}${A})`;
5155
5154
  if (C) {
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})` + _;
5155
+ const w = `${typeof C.x == "string" ? C.x : C.x + A}`, N = `${typeof C.y == "string" ? C.y : C.y + A}`;
5156
+ B = `translate(${w}, ${N})` + B;
5158
5157
  }
5159
- return _;
5158
+ return B;
5160
5159
  }
5161
5160
  function S(u, C) {
5162
5161
  return u.targetTouches && (0, e.findInArray)(u.targetTouches, (A) => C === A.identifier) || u.changedTouches && (0, e.findInArray)(u.changedTouches, (A) => C === A.identifier);
@@ -5165,7 +5164,7 @@ function nn() {
5165
5164
  if (u.targetTouches && u.targetTouches[0]) return u.targetTouches[0].identifier;
5166
5165
  if (u.changedTouches && u.changedTouches[0]) return u.changedTouches[0].identifier;
5167
5166
  }
5168
- function w(u) {
5167
+ function _(u) {
5169
5168
  if (!u) return;
5170
5169
  let C = u.getElementById("react-draggable-style-el");
5171
5170
  C || (C = u.createElement("style"), C.type = "text/css", C.id = "react-draggable-style-el", C.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
@@ -5195,7 +5194,7 @@ function nn() {
5195
5194
  function b(u, C) {
5196
5195
  u.classList ? u.classList.remove(C) : u.className = u.className.replace(new RegExp(`(?:^|\\s)${C}(?!\\S)`, "g"), "");
5197
5196
  }
5198
- return ye;
5197
+ return ve;
5199
5198
  }
5200
5199
  var Ae = {}, In;
5201
5200
  function xr() {
@@ -5204,21 +5203,21 @@ function xr() {
5204
5203
  value: !0
5205
5204
  }), Ae.canDragX = c, Ae.canDragY = s, Ae.createCoreData = a, Ae.createDraggableData = l, Ae.getBoundPosition = r, Ae.getControlPosition = i, Ae.snapToGrid = o;
5206
5205
  var e = jt(), n = nn();
5207
- function r(p, h, y) {
5208
- if (!p.props.bounds) return [h, y];
5206
+ function r(h, p, y) {
5207
+ if (!h.props.bounds) return [p, y];
5209
5208
  let {
5210
5209
  bounds: j
5211
- } = p.props;
5210
+ } = h.props;
5212
5211
  j = typeof j == "string" ? j : g(j);
5213
- const v = m(p);
5212
+ const v = m(h);
5214
5213
  if (typeof j == "string") {
5215
5214
  const {
5216
5215
  ownerDocument: S
5217
5216
  } = v, T = S.defaultView;
5218
- let w;
5219
- if (j === "parent" ? w = v.parentNode : w = v.getRootNode().querySelector(j), !(w instanceof T.HTMLElement))
5217
+ let _;
5218
+ if (j === "parent" ? _ = v.parentNode : _ = v.getRootNode().querySelector(j), !(_ instanceof T.HTMLElement))
5220
5219
  throw new Error('Bounds selector "' + j + '" could not find an element.');
5221
- const x = w, E = T.getComputedStyle(v), f = T.getComputedStyle(x);
5220
+ const x = _, E = T.getComputedStyle(v), f = T.getComputedStyle(x);
5222
5221
  j = {
5223
5222
  left: -v.offsetLeft + (0, e.int)(f.paddingLeft) + (0, e.int)(E.marginLeft),
5224
5223
  top: -v.offsetTop + (0, e.int)(f.paddingTop) + (0, e.int)(E.marginTop),
@@ -5226,73 +5225,73 @@ function xr() {
5226
5225
  bottom: (0, n.innerHeight)(x) - (0, n.outerHeight)(v) - v.offsetTop + (0, e.int)(f.paddingBottom) - (0, e.int)(E.marginBottom)
5227
5226
  };
5228
5227
  }
5229
- return (0, e.isNum)(j.right) && (h = Math.min(h, j.right)), (0, e.isNum)(j.bottom) && (y = Math.min(y, j.bottom)), (0, e.isNum)(j.left) && (h = Math.max(h, j.left)), (0, e.isNum)(j.top) && (y = Math.max(y, j.top)), [h, y];
5228
+ return (0, e.isNum)(j.right) && (p = Math.min(p, j.right)), (0, e.isNum)(j.bottom) && (y = Math.min(y, j.bottom)), (0, e.isNum)(j.left) && (p = Math.max(p, j.left)), (0, e.isNum)(j.top) && (y = Math.max(y, j.top)), [p, y];
5230
5229
  }
5231
- function o(p, h, y) {
5232
- const j = Math.round(h / p[0]) * p[0], v = Math.round(y / p[1]) * p[1];
5230
+ function o(h, p, y) {
5231
+ const j = Math.round(p / h[0]) * h[0], v = Math.round(y / h[1]) * h[1];
5233
5232
  return [j, v];
5234
5233
  }
5235
- function c(p) {
5236
- return p.props.axis === "both" || p.props.axis === "x";
5234
+ function c(h) {
5235
+ return h.props.axis === "both" || h.props.axis === "x";
5237
5236
  }
5238
- function s(p) {
5239
- return p.props.axis === "both" || p.props.axis === "y";
5237
+ function s(h) {
5238
+ return h.props.axis === "both" || h.props.axis === "y";
5240
5239
  }
5241
- function i(p, h, y) {
5242
- const j = typeof h == "number" ? (0, n.getTouch)(p, h) : null;
5243
- if (typeof h == "number" && !j) return null;
5240
+ function i(h, p, y) {
5241
+ const j = typeof p == "number" ? (0, n.getTouch)(h, p) : null;
5242
+ if (typeof p == "number" && !j) return null;
5244
5243
  const v = m(y), S = y.props.offsetParent || v.offsetParent || v.ownerDocument.body;
5245
- return (0, n.offsetXYFromParent)(j || p, S, y.props.scale);
5244
+ return (0, n.offsetXYFromParent)(j || h, S, y.props.scale);
5246
5245
  }
5247
- function a(p, h, y) {
5248
- const j = !(0, e.isNum)(p.lastX), v = m(p);
5246
+ function a(h, p, y) {
5247
+ const j = !(0, e.isNum)(h.lastX), v = m(h);
5249
5248
  return j ? {
5250
5249
  node: v,
5251
5250
  deltaX: 0,
5252
5251
  deltaY: 0,
5253
- lastX: h,
5252
+ lastX: p,
5254
5253
  lastY: y,
5255
- x: h,
5254
+ x: p,
5256
5255
  y
5257
5256
  } : {
5258
5257
  node: v,
5259
- deltaX: h - p.lastX,
5260
- deltaY: y - p.lastY,
5261
- lastX: p.lastX,
5262
- lastY: p.lastY,
5263
- x: h,
5258
+ deltaX: p - h.lastX,
5259
+ deltaY: y - h.lastY,
5260
+ lastX: h.lastX,
5261
+ lastY: h.lastY,
5262
+ x: p,
5264
5263
  y
5265
5264
  };
5266
5265
  }
5267
- function l(p, h) {
5268
- const y = p.props.scale;
5266
+ function l(h, p) {
5267
+ const y = h.props.scale;
5269
5268
  return {
5270
- node: h.node,
5271
- x: p.state.x + h.deltaX / y,
5272
- y: p.state.y + h.deltaY / y,
5273
- deltaX: h.deltaX / y,
5274
- deltaY: h.deltaY / y,
5275
- lastX: p.state.x,
5276
- lastY: p.state.y
5269
+ node: p.node,
5270
+ x: h.state.x + p.deltaX / y,
5271
+ y: h.state.y + p.deltaY / y,
5272
+ deltaX: p.deltaX / y,
5273
+ deltaY: p.deltaY / y,
5274
+ lastX: h.state.x,
5275
+ lastY: h.state.y
5277
5276
  };
5278
5277
  }
5279
- function g(p) {
5278
+ function g(h) {
5280
5279
  return {
5281
- left: p.left,
5282
- top: p.top,
5283
- right: p.right,
5284
- bottom: p.bottom
5280
+ left: h.left,
5281
+ top: h.top,
5282
+ right: h.right,
5283
+ bottom: h.bottom
5285
5284
  };
5286
5285
  }
5287
- function m(p) {
5288
- const h = p.findDOMNode();
5289
- if (!h)
5286
+ function m(h) {
5287
+ const p = h.findDOMNode();
5288
+ if (!p)
5290
5289
  throw new Error("<DraggableCore>: Unmounted during event!");
5291
- return h;
5290
+ return p;
5292
5291
  }
5293
5292
  return Ae;
5294
5293
  }
5295
- var lt = {}, Ct = {}, $n;
5294
+ var ct = {}, Ct = {}, $n;
5296
5295
  function mr() {
5297
5296
  if ($n) return Ct;
5298
5297
  $n = 1, Object.defineProperty(Ct, "__esModule", {
@@ -5304,21 +5303,21 @@ function mr() {
5304
5303
  }
5305
5304
  var Un;
5306
5305
  function Di() {
5307
- if (Un) return lt;
5308
- Un = 1, Object.defineProperty(lt, "__esModule", {
5306
+ if (Un) return ct;
5307
+ Un = 1, Object.defineProperty(ct, "__esModule", {
5309
5308
  value: !0
5310
- }), lt.default = void 0;
5309
+ }), ct.default = void 0;
5311
5310
  var e = l(ft), n = a(/* @__PURE__ */ hr()), r = a(zn), o = nn(), c = xr(), s = jt(), i = a(mr());
5312
5311
  function a(v) {
5313
5312
  return v && v.__esModule ? v : { default: v };
5314
5313
  }
5315
5314
  function l(v, S) {
5316
- if (typeof WeakMap == "function") var T = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap();
5315
+ if (typeof WeakMap == "function") var T = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
5317
5316
  return (l = function(x, E) {
5318
5317
  if (!E && x && x.__esModule) return x;
5319
5318
  var f, b, u = { __proto__: null, default: x };
5320
5319
  if (x === null || typeof x != "object" && typeof x != "function") return u;
5321
- if (f = E ? w : T) {
5320
+ if (f = E ? _ : T) {
5322
5321
  if (f.has(x)) return f.get(x);
5323
5322
  f.set(x, u);
5324
5323
  }
@@ -5330,20 +5329,20 @@ function Di() {
5330
5329
  return (S = m(S)) in v ? Object.defineProperty(v, S, { value: T, enumerable: !0, configurable: !0, writable: !0 }) : v[S] = T, v;
5331
5330
  }
5332
5331
  function m(v) {
5333
- var S = p(v, "string");
5332
+ var S = h(v, "string");
5334
5333
  return typeof S == "symbol" ? S : S + "";
5335
5334
  }
5336
- function p(v, S) {
5335
+ function h(v, S) {
5337
5336
  if (typeof v != "object" || !v) return v;
5338
5337
  var T = v[Symbol.toPrimitive];
5339
5338
  if (T !== void 0) {
5340
- var w = T.call(v, S);
5341
- if (typeof w != "object") return w;
5339
+ var _ = T.call(v, S);
5340
+ if (typeof _ != "object") return _;
5342
5341
  throw new TypeError("@@toPrimitive must return a primitive value.");
5343
5342
  }
5344
5343
  return (S === "string" ? String : Number)(v);
5345
5344
  }
5346
- const h = {
5345
+ const p = {
5347
5346
  touch: {
5348
5347
  start: "touchstart",
5349
5348
  move: "touchmove",
@@ -5355,7 +5354,7 @@ function Di() {
5355
5354
  stop: "mouseup"
5356
5355
  }
5357
5356
  };
5358
- let y = h.mouse, j = class extends e.Component {
5357
+ let y = p.mouse, j = class extends e.Component {
5359
5358
  constructor() {
5360
5359
  super(...arguments), g(this, "dragging", !1), g(this, "lastX", NaN), g(this, "lastY", NaN), g(this, "touchIdentifier", null), g(this, "mounted", !1), g(this, "handleDragStart", (S) => {
5361
5360
  if (this.props.onMouseDown(S), !this.props.allowAnyClick && typeof S.button == "number" && S.button !== 0) return !1;
@@ -5363,9 +5362,9 @@ function Di() {
5363
5362
  if (!T || !T.ownerDocument || !T.ownerDocument.body)
5364
5363
  throw new Error("<DraggableCore> not mounted on DragStart!");
5365
5364
  const {
5366
- ownerDocument: w
5365
+ ownerDocument: _
5367
5366
  } = T;
5368
- if (this.props.disabled || !(S.target instanceof w.defaultView.Node) || this.props.handle && !(0, o.matchesSelectorAndParentsTo)(S.target, this.props.handle, T) || this.props.cancel && (0, o.matchesSelectorAndParentsTo)(S.target, this.props.cancel, T))
5367
+ if (this.props.disabled || !(S.target instanceof _.defaultView.Node) || this.props.handle && !(0, o.matchesSelectorAndParentsTo)(S.target, this.props.handle, T) || this.props.cancel && (0, o.matchesSelectorAndParentsTo)(S.target, this.props.cancel, T))
5369
5368
  return;
5370
5369
  S.type === "touchstart" && !this.props.allowMobileScroll && S.preventDefault();
5371
5370
  const x = (0, o.getTouchIdentifier)(S);
@@ -5376,20 +5375,20 @@ function Di() {
5376
5375
  x: f,
5377
5376
  y: b
5378
5377
  } = E, u = (0, c.createCoreData)(this, f, b);
5379
- (0, i.default)("DraggableCore: handleDragStart: %j", u), (0, i.default)("calling", this.props.onStart), !(this.props.onStart(S, u) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, o.addUserSelectStyles)(w), this.dragging = !0, this.lastX = f, this.lastY = b, (0, o.addEvent)(w, y.move, this.handleDrag), (0, o.addEvent)(w, y.stop, this.handleDragStop));
5378
+ (0, i.default)("DraggableCore: handleDragStart: %j", u), (0, i.default)("calling", this.props.onStart), !(this.props.onStart(S, u) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, o.addUserSelectStyles)(_), this.dragging = !0, this.lastX = f, this.lastY = b, (0, o.addEvent)(_, y.move, this.handleDrag), (0, o.addEvent)(_, y.stop, this.handleDragStop));
5380
5379
  }), g(this, "handleDrag", (S) => {
5381
5380
  const T = (0, c.getControlPosition)(S, this.touchIdentifier, this);
5382
5381
  if (T == null) return;
5383
5382
  let {
5384
- x: w,
5383
+ x: _,
5385
5384
  y: x
5386
5385
  } = T;
5387
5386
  if (Array.isArray(this.props.grid)) {
5388
- let b = w - this.lastX, u = x - this.lastY;
5387
+ let b = _ - this.lastX, u = x - this.lastY;
5389
5388
  if ([b, u] = (0, c.snapToGrid)(this.props.grid, b, u), !b && !u) return;
5390
- w = this.lastX + b, x = this.lastY + u;
5389
+ _ = this.lastX + b, x = this.lastY + u;
5391
5390
  }
5392
- const E = (0, c.createCoreData)(this, w, x);
5391
+ const E = (0, c.createCoreData)(this, _, x);
5393
5392
  if ((0, i.default)("DraggableCore: handleDrag: %j", E), this.props.onDrag(S, E) === !1 || this.mounted === !1) {
5394
5393
  try {
5395
5394
  this.handleDragStop(new MouseEvent("mouseup"));
@@ -5399,29 +5398,29 @@ function Di() {
5399
5398
  }
5400
5399
  return;
5401
5400
  }
5402
- this.lastX = w, this.lastY = x;
5401
+ this.lastX = _, this.lastY = x;
5403
5402
  }), g(this, "handleDragStop", (S) => {
5404
5403
  if (!this.dragging) return;
5405
5404
  const T = (0, c.getControlPosition)(S, this.touchIdentifier, this);
5406
5405
  if (T == null) return;
5407
5406
  let {
5408
- x: w,
5407
+ x: _,
5409
5408
  y: x
5410
5409
  } = T;
5411
5410
  if (Array.isArray(this.props.grid)) {
5412
- let u = w - this.lastX || 0, C = x - this.lastY || 0;
5413
- [u, C] = (0, c.snapToGrid)(this.props.grid, u, C), w = this.lastX + u, x = this.lastY + C;
5411
+ let u = _ - this.lastX || 0, C = x - this.lastY || 0;
5412
+ [u, C] = (0, c.snapToGrid)(this.props.grid, u, C), _ = this.lastX + u, x = this.lastY + C;
5414
5413
  }
5415
- const E = (0, c.createCoreData)(this, w, x);
5414
+ const E = (0, c.createCoreData)(this, _, x);
5416
5415
  if (this.props.onStop(S, E) === !1 || this.mounted === !1) return !1;
5417
5416
  const b = this.findDOMNode();
5418
5417
  b && this.props.enableUserSelectHack && (0, o.scheduleRemoveUserSelectStyles)(b.ownerDocument), (0, i.default)("DraggableCore: handleDragStop: %j", E), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, b && ((0, i.default)("DraggableCore: Removing handlers"), (0, o.removeEvent)(b.ownerDocument, y.move, this.handleDrag), (0, o.removeEvent)(b.ownerDocument, y.stop, this.handleDragStop));
5419
- }), g(this, "onMouseDown", (S) => (y = h.mouse, this.handleDragStart(S))), g(this, "onMouseUp", (S) => (y = h.mouse, this.handleDragStop(S))), g(this, "onTouchStart", (S) => (y = h.touch, this.handleDragStart(S))), g(this, "onTouchEnd", (S) => (y = h.touch, this.handleDragStop(S)));
5418
+ }), g(this, "onMouseDown", (S) => (y = p.mouse, this.handleDragStart(S))), g(this, "onMouseUp", (S) => (y = p.mouse, this.handleDragStop(S))), g(this, "onTouchStart", (S) => (y = p.touch, this.handleDragStart(S))), g(this, "onTouchEnd", (S) => (y = p.touch, this.handleDragStop(S)));
5420
5419
  }
5421
5420
  componentDidMount() {
5422
5421
  this.mounted = !0;
5423
5422
  const S = this.findDOMNode();
5424
- S && (0, o.addEvent)(S, h.touch.start, this.onTouchStart, {
5423
+ S && (0, o.addEvent)(S, p.touch.start, this.onTouchStart, {
5425
5424
  passive: !1
5426
5425
  });
5427
5426
  }
@@ -5432,7 +5431,7 @@ function Di() {
5432
5431
  const {
5433
5432
  ownerDocument: T
5434
5433
  } = S;
5435
- (0, o.removeEvent)(T, h.mouse.move, this.handleDrag), (0, o.removeEvent)(T, h.touch.move, this.handleDrag), (0, o.removeEvent)(T, h.mouse.stop, this.handleDragStop), (0, o.removeEvent)(T, h.touch.stop, this.handleDragStop), (0, o.removeEvent)(S, h.touch.start, this.onTouchStart, {
5434
+ (0, o.removeEvent)(T, p.mouse.move, this.handleDrag), (0, o.removeEvent)(T, p.touch.move, this.handleDrag), (0, o.removeEvent)(T, p.mouse.stop, this.handleDragStop), (0, o.removeEvent)(T, p.touch.stop, this.handleDragStop), (0, o.removeEvent)(S, p.touch.start, this.onTouchStart, {
5436
5435
  passive: !1
5437
5436
  }), this.props.enableUserSelectHack && (0, o.scheduleRemoveUserSelectStyles)(T);
5438
5437
  }
@@ -5440,8 +5439,8 @@ function Di() {
5440
5439
  // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
5441
5440
  // the underlying DOM node ourselves. See the README for more information.
5442
5441
  findDOMNode() {
5443
- var S, T, w;
5444
- return (S = this.props) != null && S.nodeRef ? (w = (T = this.props) == null ? void 0 : T.nodeRef) == null ? void 0 : w.current : r.default.findDOMNode(this);
5442
+ var S, T, _;
5443
+ return (S = this.props) != null && S.nodeRef ? (_ = (T = this.props) == null ? void 0 : T.nodeRef) == null ? void 0 : _.current : r.default.findDOMNode(this);
5445
5444
  }
5446
5445
  render() {
5447
5446
  return /* @__PURE__ */ e.cloneElement(e.Children.only(this.props.children), {
@@ -5456,7 +5455,7 @@ function Di() {
5456
5455
  });
5457
5456
  }
5458
5457
  };
5459
- return lt.default = j, g(j, "displayName", "DraggableCore"), g(j, "propTypes", {
5458
+ return ct.default = j, g(j, "displayName", "DraggableCore"), g(j, "propTypes", {
5460
5459
  /**
5461
5460
  * `allowAnyClick` allows dragging using any mouse button.
5462
5461
  * By default, we only accept the left button.
@@ -5601,7 +5600,7 @@ function Di() {
5601
5600
  onMouseDown: function() {
5602
5601
  },
5603
5602
  scale: 1
5604
- }), lt;
5603
+ }), ct;
5605
5604
  }
5606
5605
  var Hn;
5607
5606
  function Oi() {
@@ -5614,13 +5613,13 @@ function Oi() {
5614
5613
  return l.default;
5615
5614
  }
5616
5615
  }), e.default = void 0;
5617
- var n = p(ft), r = m(/* @__PURE__ */ hr()), o = m(zn), c = Ai(), s = nn(), i = xr(), a = jt(), l = m(Di()), g = m(mr());
5616
+ var n = h(ft), r = m(/* @__PURE__ */ hr()), o = m(zn), c = Ai(), s = nn(), i = xr(), a = jt(), l = m(Di()), g = m(mr());
5618
5617
  function m(T) {
5619
5618
  return T && T.__esModule ? T : { default: T };
5620
5619
  }
5621
- function p(T, w) {
5620
+ function h(T, _) {
5622
5621
  if (typeof WeakMap == "function") var x = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
5623
- return (p = function(f, b) {
5622
+ return (h = function(f, b) {
5624
5623
  if (!b && f && f.__esModule) return f;
5625
5624
  var u, C, A = { __proto__: null, default: f };
5626
5625
  if (f === null || typeof f != "object" && typeof f != "function") return A;
@@ -5628,43 +5627,43 @@ function Oi() {
5628
5627
  if (u.has(f)) return u.get(f);
5629
5628
  u.set(f, A);
5630
5629
  }
5631
- for (const N in f) N !== "default" && {}.hasOwnProperty.call(f, N) && ((C = (u = Object.defineProperty) && Object.getOwnPropertyDescriptor(f, N)) && (C.get || C.set) ? u(A, N, C) : A[N] = f[N]);
5630
+ for (const L in f) L !== "default" && {}.hasOwnProperty.call(f, L) && ((C = (u = Object.defineProperty) && Object.getOwnPropertyDescriptor(f, L)) && (C.get || C.set) ? u(A, L, C) : A[L] = f[L]);
5632
5631
  return A;
5633
- })(T, w);
5632
+ })(T, _);
5634
5633
  }
5635
- function h() {
5636
- return h = Object.assign ? Object.assign.bind() : function(T) {
5637
- for (var w = 1; w < arguments.length; w++) {
5638
- var x = arguments[w];
5634
+ function p() {
5635
+ return p = Object.assign ? Object.assign.bind() : function(T) {
5636
+ for (var _ = 1; _ < arguments.length; _++) {
5637
+ var x = arguments[_];
5639
5638
  for (var E in x) ({}).hasOwnProperty.call(x, E) && (T[E] = x[E]);
5640
5639
  }
5641
5640
  return T;
5642
- }, h.apply(null, arguments);
5641
+ }, p.apply(null, arguments);
5643
5642
  }
5644
- function y(T, w, x) {
5645
- return (w = j(w)) in T ? Object.defineProperty(T, w, { value: x, enumerable: !0, configurable: !0, writable: !0 }) : T[w] = x, T;
5643
+ function y(T, _, x) {
5644
+ return (_ = j(_)) in T ? Object.defineProperty(T, _, { value: x, enumerable: !0, configurable: !0, writable: !0 }) : T[_] = x, T;
5646
5645
  }
5647
5646
  function j(T) {
5648
- var w = v(T, "string");
5649
- return typeof w == "symbol" ? w : w + "";
5647
+ var _ = v(T, "string");
5648
+ return typeof _ == "symbol" ? _ : _ + "";
5650
5649
  }
5651
- function v(T, w) {
5650
+ function v(T, _) {
5652
5651
  if (typeof T != "object" || !T) return T;
5653
5652
  var x = T[Symbol.toPrimitive];
5654
5653
  if (x !== void 0) {
5655
- var E = x.call(T, w);
5654
+ var E = x.call(T, _);
5656
5655
  if (typeof E != "object") return E;
5657
5656
  throw new TypeError("@@toPrimitive must return a primitive value.");
5658
5657
  }
5659
- return (w === "string" ? String : Number)(T);
5658
+ return (_ === "string" ? String : Number)(T);
5660
5659
  }
5661
5660
  class S extends n.Component {
5662
5661
  // React 16.3+
5663
5662
  // Arity (props, state)
5664
- static getDerivedStateFromProps(w, x) {
5663
+ static getDerivedStateFromProps(_, x) {
5665
5664
  let {
5666
5665
  position: E
5667
- } = w, {
5666
+ } = _, {
5668
5667
  prevPropsPosition: f
5669
5668
  } = x;
5670
5669
  return E && (!f || E.x !== f.x || E.y !== f.y) ? ((0, g.default)("Draggable: getDerivedStateFromProps %j", {
@@ -5678,8 +5677,8 @@ function Oi() {
5678
5677
  }
5679
5678
  }) : null;
5680
5679
  }
5681
- constructor(w) {
5682
- super(w), y(this, "onDragStart", (x, E) => {
5680
+ constructor(_) {
5681
+ super(_), y(this, "onDragStart", (x, E) => {
5683
5682
  if ((0, g.default)("Draggable: onDragStart: %j", E), this.props.onStart(x, (0, i.createDraggableData)(this, E)) === !1) return !1;
5684
5683
  this.setState({
5685
5684
  dragging: !0,
@@ -5700,8 +5699,8 @@ function Oi() {
5700
5699
  y: A
5701
5700
  } = b;
5702
5701
  b.x += this.state.slackX, b.y += this.state.slackY;
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;
5702
+ const [L, D] = (0, i.getBoundPosition)(this, b.x, b.y);
5703
+ b.x = L, 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;
5705
5704
  }
5706
5705
  if (this.props.onDrag(x, f) === !1) return !1;
5707
5706
  this.setState(b);
@@ -5727,17 +5726,17 @@ function Oi() {
5727
5726
  // Whether or not we have been dragged before.
5728
5727
  dragged: !1,
5729
5728
  // Current transform x and y.
5730
- x: w.position ? w.position.x : w.defaultPosition.x,
5731
- y: w.position ? w.position.y : w.defaultPosition.y,
5729
+ x: _.position ? _.position.x : _.defaultPosition.x,
5730
+ y: _.position ? _.position.y : _.defaultPosition.y,
5732
5731
  prevPropsPosition: {
5733
- ...w.position
5732
+ ..._.position
5734
5733
  },
5735
5734
  // Used for compensating for out-of-bounds drags
5736
5735
  slackX: 0,
5737
5736
  slackY: 0,
5738
5737
  // Can only determine if SVG after mounting
5739
5738
  isElementSVG: !1
5740
- }, w.position && !(w.onDrag || w.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
5739
+ }, _.position && !(_.onDrag || _.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
5741
5740
  }
5742
5741
  componentDidMount() {
5743
5742
  typeof window.SVGElement < "u" && this.findDOMNode() instanceof window.SVGElement && this.setState({
@@ -5752,12 +5751,12 @@ function Oi() {
5752
5751
  // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
5753
5752
  // the underlying DOM node ourselves. See the README for more information.
5754
5753
  findDOMNode() {
5755
- var w, x;
5756
- return ((x = (w = this.props) == null ? void 0 : w.nodeRef) == null ? void 0 : x.current) ?? o.default.findDOMNode(this);
5754
+ var _, x;
5755
+ return ((x = (_ = this.props) == null ? void 0 : _.nodeRef) == null ? void 0 : x.current) ?? o.default.findDOMNode(this);
5757
5756
  }
5758
5757
  render() {
5759
5758
  const {
5760
- axis: w,
5759
+ axis: _,
5761
5760
  bounds: x,
5762
5761
  children: E,
5763
5762
  defaultPosition: f,
@@ -5765,23 +5764,23 @@ function Oi() {
5765
5764
  defaultClassNameDragging: u,
5766
5765
  defaultClassNameDragged: C,
5767
5766
  position: A,
5768
- positionOffset: N,
5769
- scale: O,
5770
- ..._
5767
+ positionOffset: L,
5768
+ scale: D,
5769
+ ...B
5771
5770
  } = this.props;
5772
- let R = {}, H = null;
5773
- const q = !!!A || this.state.dragging, F = A || f, se = {
5771
+ let w = {}, N = null;
5772
+ const H = !!!A || this.state.dragging, F = A || f, re = {
5774
5773
  // Set left if horizontal drag is enabled
5775
- x: (0, i.canDragX)(this) && q ? this.state.x : F.x,
5774
+ x: (0, i.canDragX)(this) && H ? this.state.x : F.x,
5776
5775
  // Set top if vertical drag is enabled
5777
- y: (0, i.canDragY)(this) && q ? this.state.y : F.y
5776
+ y: (0, i.canDragY)(this) && H ? this.state.y : F.y
5778
5777
  };
5779
- this.state.isElementSVG ? H = (0, s.createSVGTransform)(se, N) : R = (0, s.createCSSTransform)(se, N);
5778
+ this.state.isElementSVG ? N = (0, s.createSVGTransform)(re, L) : w = (0, s.createCSSTransform)(re, L);
5780
5779
  const te = (0, c.clsx)(E.props.className || "", b, {
5781
5780
  [u]: this.state.dragging,
5782
5781
  [C]: this.state.dragged
5783
5782
  });
5784
- return /* @__PURE__ */ n.createElement(l.default, h({}, _, {
5783
+ return /* @__PURE__ */ n.createElement(l.default, p({}, B, {
5785
5784
  onStart: this.onDragStart,
5786
5785
  onDrag: this.onDrag,
5787
5786
  onStop: this.onDragStop
@@ -5789,9 +5788,9 @@ function Oi() {
5789
5788
  className: te,
5790
5789
  style: {
5791
5790
  ...E.props.style,
5792
- ...R
5791
+ ...w
5793
5792
  },
5794
- transform: H
5793
+ transform: N
5795
5794
  }));
5796
5795
  }
5797
5796
  }
@@ -5917,15 +5916,15 @@ function Oi() {
5917
5916
  });
5918
5917
  }($t)), $t;
5919
5918
  }
5920
- var Wn;
5919
+ var Bn;
5921
5920
  function Li() {
5922
- if (Wn) return ct.exports;
5923
- Wn = 1;
5921
+ if (Bn) return at.exports;
5922
+ Bn = 1;
5924
5923
  const {
5925
5924
  default: e,
5926
5925
  DraggableCore: n
5927
5926
  } = Oi();
5928
- return ct.exports = e, ct.exports.default = e, ct.exports.DraggableCore = n, ct.exports;
5927
+ return at.exports = e, at.exports.default = e, at.exports.DraggableCore = n, at.exports;
5929
5928
  }
5930
5929
  var Mi = Li();
5931
5930
  const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) => n ? /* @__PURE__ */ t.jsx(Gt, { ...r, visible: r == null ? void 0 : r.open, children: e }) : e, Ii = () => {
@@ -5936,11 +5935,11 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
5936
5935
  x: 0,
5937
5936
  y: 250,
5938
5937
  maxY: window.innerHeight - 200
5939
- }), [s, i] = W(!1), [a, l] = W(!1), g = re(), m = re(null), p = re(null), h = re(null), y = re({
5938
+ }), [s, i] = W(!1), [a, l] = W(!1), g = oe(), m = oe(null), h = oe(null), p = oe(null), y = oe({
5940
5939
  x: 0,
5941
5940
  y: 0
5942
- }), { widgetProps: j, setOpenWidget: v, isFirstOpenWidget: S, setFirstOpenWidget: T } = ue(), { onSendMsg: w, connected: x, isHandshakeWidget: E } = De(), f = () => {
5943
- v(!0), w({ msg: j == null ? void 0 : j.getStartedPayload });
5941
+ }), { widgetProps: j, setOpenWidget: v, isFirstOpenWidget: S, setFirstOpenWidget: T } = de(), { onSendMsg: _, connected: x, isHandshakeWidget: E } = De(), f = () => {
5942
+ v(!0), _({ msg: j == null ? void 0 : j.getStartedPayload });
5944
5943
  }, b = () => {
5945
5944
  const A = window.innerHeight;
5946
5945
  c({
@@ -5950,12 +5949,12 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
5950
5949
  maxY: A - 200
5951
5950
  });
5952
5951
  }, u = () => {
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
- i(!0), h.current.style.right = "0px";
5952
+ clearTimeout(m.current), clearTimeout(h.current), p.current && (s && (p.current.style.right = "0px"), s || (p.current.style.right = "-25px", m.current = setTimeout(() => {
5953
+ i(!0), p.current.style.right = "0px";
5955
5954
  }, 300)));
5956
5955
  }, C = () => {
5957
- clearTimeout(p.current), s && (h.current.style.right = "-15px", p.current = setTimeout(() => {
5958
- i(!1), h.current.style.right = "-28px";
5956
+ clearTimeout(h.current), s && (p.current.style.right = "-15px", h.current = setTimeout(() => {
5957
+ i(!1), p.current.style.right = "-28px";
5959
5958
  }, 2500));
5960
5959
  };
5961
5960
  return pe(() => {
@@ -5980,24 +5979,24 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
5980
5979
  },
5981
5980
  handle: ".w-handler-launcher-widget",
5982
5981
  axis: "y",
5983
- onDrag: (A, N) => {
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
- y: N.y
5982
+ onDrag: (A, L) => {
5983
+ const D = Math.abs(L.x - y.current.x), B = Math.abs(L.y - y.current.y);
5984
+ (D > 3 || B > 3) && l(!0), c((w) => ({
5985
+ ...w,
5986
+ y: L.y
5988
5987
  }));
5989
5988
  },
5990
5989
  position: {
5991
5990
  x: o == null ? void 0 : o.x,
5992
5991
  y: o == null ? void 0 : o.y
5993
5992
  },
5994
- onStart: (A, N) => {
5995
- y.current = { x: N.x, y: N.y }, l(!1);
5993
+ onStart: (A, L) => {
5994
+ y.current = { x: L.x, y: L.y }, l(!1);
5996
5995
  },
5997
5996
  children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
5998
5997
  "div",
5999
5998
  {
6000
- ref: h,
5999
+ ref: p,
6001
6000
  className: `w-launcher-container w-handler-launcher-widget ${s ? "w-show-launcher" : "w-hide-launcher"}`,
6002
6001
  onClick: () => {
6003
6002
  a || (S || (T(!0), f()), v(!0));
@@ -6023,14 +6022,14 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
6023
6022
  )
6024
6023
  }
6025
6024
  );
6026
- }, $i = K(Ii), Ui = () => {
6025
+ }, $i = X(Ii), Ui = () => {
6027
6026
  const e = I("NotConnected", "Not Connected"), n = I(
6028
6027
  "CannotAutoReconnect",
6029
6028
  "Cannot auto reconnect"
6030
6029
  ), r = I(
6031
6030
  "ReconnectManually",
6032
6031
  "Reconnect Manually"
6033
- ), [o, c] = W(!1), { connected: s, createSocket: i } = De(), { widgetProps: a } = ue();
6032
+ ), [o, c] = W(!1), { connected: s, createSocket: i } = De(), { widgetProps: a } = de();
6034
6033
  return pe(() => {
6035
6034
  c(!s);
6036
6035
  }, [s]), /* @__PURE__ */ t.jsx(
@@ -6058,18 +6057,18 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
6058
6057
  open: !s && o
6059
6058
  }
6060
6059
  );
6061
- }, Hi = K(
6060
+ }, Hi = X(
6062
6061
  Ui
6063
- ), Wi = () => {
6064
- const { xs: e } = Me.useBreakpoint(), [n, r] = W(!1), { isOpenWidget: o, widgetProps: c } = ue(), { isActiveTabVA: s } = Ue(), i = re(null), a = z(() => {
6062
+ ), Bi = () => {
6063
+ const { xs: e } = Me.useBreakpoint(), [n, r] = W(!1), { isOpenWidget: o, widgetProps: c } = de(), { isActiveTabVA: s } = Ue(), i = oe(null), a = K(() => {
6065
6064
  var m;
6066
6065
  const g = [Nt];
6067
6066
  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(" ");
6068
6067
  }, [e, c == null ? void 0 : c.isSF]), l = Ir(
6069
6068
  (g) => {
6070
- var p;
6069
+ var h;
6071
6070
  const m = [g, It == null ? void 0 : It.FADE_IN];
6072
- return c != null && c.isSF && (m == null || m.push(`${g}-sf`)), e && (c != null && c.isSF ? m == null || m.push(`${g}-sf-mobile`) : m == null || m.push(`${g}-mobile`)), (p = m == null ? void 0 : m.filter(Boolean)) == null ? void 0 : p.join(" ");
6071
+ return c != null && c.isSF && (m == null || m.push(`${g}-sf`)), e && (c != null && c.isSF ? m == null || m.push(`${g}-sf-mobile`) : m == null || m.push(`${g}-mobile`)), (h = m == null ? void 0 : m.filter(Boolean)) == null ? void 0 : h.join(" ");
6073
6072
  },
6074
6073
  [c == null ? void 0 : c.isSF, e]
6075
6074
  );
@@ -6085,15 +6084,15 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
6085
6084
  /* @__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
6085
  /* @__PURE__ */ t.jsx(Hi, {})
6087
6086
  ] }) : /* @__PURE__ */ t.jsx($i, {});
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(
6087
+ }, Wi = X(Bi), Yi = ({ items: e, ...n }) => tt != null && tt.startsWith("5") || nt != null && nt.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
6088
  Dt.TabPane,
6090
6089
  {
6091
6090
  ...r,
6092
6091
  key: r == null ? void 0 : r.key,
6093
6092
  tab: r == null ? void 0 : r.label
6094
6093
  }
6095
- )) }), Vi = K(Yi), zi = () => {
6096
- const { isOpenWidget: e, isUserInputHide: n } = ue(), { setActiveTab: r, activeTab: o } = Ue(), c = I(
6094
+ )) }), Vi = X(Yi), zi = () => {
6095
+ const { isOpenWidget: e, isUserInputHide: n } = de(), { setActiveTab: r, activeTab: o } = Ue(), c = I(
6097
6096
  "VirtualAssistant",
6098
6097
  "Virtual Assistant"
6099
6098
  ), s = I("Helpdesk", "Helpdesk"), { xs: i } = Me.useBreakpoint();
@@ -6132,26 +6131,26 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
6132
6131
  )
6133
6132
  }
6134
6133
  ) : null;
6135
- }, Gi = K(zi), qi = () => {
6136
- const { isOpenWidget: e, setOpenWidget: n, setExpand: r, isExpand: o, widgetProps: c } = ue(), { xs: s } = Me.useBreakpoint(), i = z(() => {
6134
+ }, Gi = X(zi), qi = () => {
6135
+ const { isOpenWidget: e, setOpenWidget: n, setExpand: r, isExpand: o, widgetProps: c } = de(), { xs: s } = Me.useBreakpoint(), i = K(() => {
6137
6136
  const { title: a = "", modelName: l = "" } = c;
6138
6137
  return l ? `${a} (${l})` : a;
6139
6138
  }, [c == null ? void 0 : c.title, c == null ? void 0 : c.modelName]);
6140
6139
  return e ? /* @__PURE__ */ t.jsxs(
6141
6140
  "div",
6142
6141
  {
6143
- className: `${at}-container`,
6142
+ className: `${it}-container`,
6144
6143
  ...s && {
6145
6144
  style: {
6146
6145
  borderRadius: 0
6147
6146
  }
6148
6147
  },
6149
6148
  children: [
6150
- /* @__PURE__ */ t.jsxs("div", { className: `${at}-text`, children: [
6151
- /* @__PURE__ */ t.jsx("h4", { className: `${at}-title`, children: i }),
6152
- /* @__PURE__ */ t.jsx("span", { className: `${at}-subtitle`, children: c == null ? void 0 : c.subTitle })
6149
+ /* @__PURE__ */ t.jsxs("div", { className: `${it}-text`, children: [
6150
+ /* @__PURE__ */ t.jsx("h4", { className: `${it}-title`, children: i }),
6151
+ /* @__PURE__ */ t.jsx("span", { className: `${it}-subtitle`, children: c == null ? void 0 : c.subTitle })
6153
6152
  ] }),
6154
- /* @__PURE__ */ t.jsxs("div", { className: `${at}-action`, children: [
6153
+ /* @__PURE__ */ t.jsxs("div", { className: `${it}-action`, children: [
6155
6154
  !s && /* @__PURE__ */ t.jsx(
6156
6155
  xe,
6157
6156
  {
@@ -6178,8 +6177,8 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
6178
6177
  ]
6179
6178
  }
6180
6179
  ) : null;
6181
- }, Ki = K(qi), Pi = () => {
6182
- const { isExpand: e, isOpenWidget: n, isFirstOpenWidget: r, setOpenWidget: o } = ue(), { xs: c } = Me.useBreakpoint(), s = z(() => {
6180
+ }, Ki = X(qi), Pi = () => {
6181
+ const { isExpand: e, isOpenWidget: n, isFirstOpenWidget: r, setOpenWidget: o } = de(), { xs: c } = Me.useBreakpoint(), s = K(() => {
6183
6182
  var a;
6184
6183
  const i = [
6185
6184
  c && n && "w-container-widget-mobile",
@@ -6200,13 +6199,13 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
6200
6199
  children: [
6201
6200
  /* @__PURE__ */ t.jsx(Ki, {}),
6202
6201
  /* @__PURE__ */ t.jsx("div", { id: "w-widget-content", children: /* @__PURE__ */ t.jsxs(ns, { children: [
6203
- /* @__PURE__ */ t.jsx(ko, { children: /* @__PURE__ */ t.jsx(Bi, {}) }),
6202
+ /* @__PURE__ */ t.jsx(ko, { children: /* @__PURE__ */ t.jsx(Wi, {}) }),
6204
6203
  /* @__PURE__ */ t.jsx(Gi, {})
6205
6204
  ] }) })
6206
6205
  ]
6207
6206
  }
6208
6207
  );
6209
- }, Xi = K(Pi), da = ({
6208
+ }, Xi = X(Pi), da = ({
6210
6209
  getStartedPayload: e,
6211
6210
  socketURL: n,
6212
6211
  socketPath: r,