ysyt-react-agent-lib 1.2.30 → 1.2.32

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.
@@ -388,7 +388,7 @@ var is = /* @__PURE__ */ l.createContext({
388
388
  cache: cE(),
389
389
  defaultCache: !0
390
390
  });
391
- function Nt(t) {
391
+ function Tt(t) {
392
392
  if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
393
393
  return t;
394
394
  }
@@ -427,7 +427,7 @@ function Fd() {
427
427
  function lE(t, e) {
428
428
  if (e && (rt(e) == "object" || typeof e == "function")) return e;
429
429
  if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
430
- return Nt(t);
430
+ return Tt(t);
431
431
  }
432
432
  function pi(t) {
433
433
  var e = Fd();
@@ -1415,7 +1415,7 @@ var db = /* @__PURE__ */ function(t) {
1415
1415
  var e = pi(n);
1416
1416
  function n(r, i) {
1417
1417
  var o;
1418
- yn(this, n), o = e.call(this), P(Nt(o), "result", ""), P(Nt(o), "unitlessCssVar", void 0), P(Nt(o), "lowPriority", void 0);
1418
+ yn(this, n), o = e.call(this), P(Tt(o), "result", ""), P(Tt(o), "unitlessCssVar", void 0), P(Tt(o), "lowPriority", void 0);
1419
1419
  var a = rt(r);
1420
1420
  return o.unitlessCssVar = i, r instanceof n ? o.result = "(".concat(r.result, ")") : a === "number" ? o.result = Nc(r) : a === "string" && (o.result = r), o;
1421
1421
  }
@@ -1458,7 +1458,7 @@ var db = /* @__PURE__ */ function(t) {
1458
1458
  var e = pi(n);
1459
1459
  function n(r) {
1460
1460
  var i;
1461
- return yn(this, n), i = e.call(this), P(Nt(i), "result", 0), r instanceof n ? i.result = r.result : typeof r == "number" && (i.result = r), i;
1461
+ return yn(this, n), i = e.call(this), P(Tt(i), "result", 0), r instanceof n ? i.result = r.result : typeof r == "number" && (i.result = r), i;
1462
1462
  }
1463
1463
  return En(n, [{
1464
1464
  key: "add",
@@ -3986,9 +3986,9 @@ function jS(t, e, n, r) {
3986
3986
  L.current = !1, clearTimeout(_.current);
3987
3987
  };
3988
3988
  }, []);
3989
- var ve = l.useRef(!1);
3989
+ var Ce = l.useRef(!1);
3990
3990
  Kt(function() {
3991
- S && (ve.current = !0), S !== void 0 && G === Ii && ((ve.current || S) && (E == null || E(S)), ve.current = !0);
3991
+ S && (Ce.current = !0), S !== void 0 && G === Ii && ((Ce.current || S) && (E == null || E(S)), Ce.current = !0);
3992
3992
  }, [S, G]);
3993
3993
  var Be = Z;
3994
3994
  return te[Qr] && le === Do && (Be = j({
@@ -4113,9 +4113,9 @@ function KS(t) {
4113
4113
  yn(this, o);
4114
4114
  for (var s = arguments.length, A = new Array(s), c = 0; c < s; c++)
4115
4115
  A[c] = arguments[c];
4116
- return a = i.call.apply(i, [this].concat(A)), P(Nt(a), "state", {
4116
+ return a = i.call.apply(i, [this].concat(A)), P(Tt(a), "state", {
4117
4117
  keyEntities: []
4118
- }), P(Nt(a), "removeKey", function(u) {
4118
+ }), P(Tt(a), "removeKey", function(u) {
4119
4119
  a.setState(function(d) {
4120
4120
  var g = d.keyEntities.map(function(p) {
4121
4121
  return p.key !== u ? p : j(j({}, p), {}, {
@@ -4293,7 +4293,7 @@ const ew = (t) => {
4293
4293
  switch: le,
4294
4294
  transfer: Se,
4295
4295
  avatar: xe,
4296
- message: ve,
4296
+ message: Ce,
4297
4297
  tag: Be,
4298
4298
  table: je,
4299
4299
  card: Ue,
@@ -4326,8 +4326,8 @@ const ew = (t) => {
4326
4326
  return B;
4327
4327
  const Q = fe || y.getPrefixCls("");
4328
4328
  return He ? `${Q}-${He}` : Q;
4329
- }, [y.getPrefixCls, t.prefixCls]), Tt = w || y.iconPrefixCls || HA, mt = n || y.csp;
4330
- oS(Tt, mt);
4329
+ }, [y.getPrefixCls, t.prefixCls]), Mt = w || y.iconPrefixCls || HA, mt = n || y.csp;
4330
+ oS(Mt, mt);
4331
4331
  const ze = ES(I, y.theme, {
4332
4332
  prefixCls: Vt("")
4333
4333
  });
@@ -4345,7 +4345,7 @@ const ew = (t) => {
4345
4345
  popupMatchSelectWidth: v ?? p,
4346
4346
  popupOverflow: C,
4347
4347
  getPrefixCls: Vt,
4348
- iconPrefixCls: Tt,
4348
+ iconPrefixCls: Mt,
4349
4349
  theme: ze,
4350
4350
  segmented: x,
4351
4351
  statistic: f,
@@ -4381,7 +4381,7 @@ const ew = (t) => {
4381
4381
  switch: le,
4382
4382
  transfer: Se,
4383
4383
  avatar: xe,
4384
- message: ve,
4384
+ message: Ce,
4385
4385
  tag: Be,
4386
4386
  table: je,
4387
4387
  card: Ue,
@@ -4423,10 +4423,10 @@ const ew = (t) => {
4423
4423
  }), {
4424
4424
  layer: vt
4425
4425
  } = l.useContext(is), ke = l.useMemo(() => ({
4426
- prefixCls: Tt,
4426
+ prefixCls: Mt,
4427
4427
  csp: mt,
4428
4428
  layer: vt ? "antd" : void 0
4429
- }), [Tt, mt, vt]);
4429
+ }), [Mt, mt, vt]);
4430
4430
  let we = /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(YS, {
4431
4431
  dropdownMatchSelectWidth: p
4432
4432
  }), e);
@@ -4450,15 +4450,15 @@ const ew = (t) => {
4450
4450
  token: fe,
4451
4451
  components: Q,
4452
4452
  cssVar: re
4453
- } = He, X = WS(He, ["algorithm", "token", "components", "cssVar"]), Ce = B && (!Array.isArray(B) || B.length > 0) ? Il(B) : Uv, Pe = {};
4453
+ } = He, X = WS(He, ["algorithm", "token", "components", "cssVar"]), ve = B && (!Array.isArray(B) || B.length > 0) ? Il(B) : Uv, Pe = {};
4454
4454
  Object.entries(Q || {}).forEach((Pt) => {
4455
4455
  let [ft, It] = Pt;
4456
4456
  const Ee = Object.assign({}, It);
4457
- "algorithm" in Ee && (Ee.algorithm === !0 ? Ee.theme = Ce : (Array.isArray(Ee.algorithm) || typeof Ee.algorithm == "function") && (Ee.theme = Il(Ee.algorithm)), delete Ee.algorithm), Pe[ft] = Ee;
4457
+ "algorithm" in Ee && (Ee.algorithm === !0 ? Ee.theme = ve : (Array.isArray(Ee.algorithm) || typeof Ee.algorithm == "function") && (Ee.theme = Il(Ee.algorithm)), delete Ee.algorithm), Pe[ft] = Ee;
4458
4458
  });
4459
4459
  const et = Object.assign(Object.assign({}, Ua), fe);
4460
4460
  return Object.assign(Object.assign({}, X), {
4461
- theme: Ce,
4461
+ theme: ve,
4462
4462
  token: et,
4463
4463
  components: Pe,
4464
4464
  override: Object.assign({
@@ -4547,10 +4547,10 @@ function rw() {
4547
4547
  {
4548
4548
  var re = y.ReactDebugCurrentFrame, X = re.getStackAddendum();
4549
4549
  X !== "" && (fe += "%s", Q = Q.concat([X]));
4550
- var Ce = Q.map(function(Pe) {
4550
+ var ve = Q.map(function(Pe) {
4551
4551
  return String(Pe);
4552
4552
  });
4553
- Ce.unshift("Warning: " + fe), Function.prototype.apply.call(console[B], console, Ce);
4553
+ ve.unshift("Warning: " + fe), Function.prototype.apply.call(console[B], console, ve);
4554
4554
  }
4555
4555
  }
4556
4556
  var O = !1, x = !1, f = !1, M = !1, E = !1, b;
@@ -4607,9 +4607,9 @@ function rw() {
4607
4607
  var re = B.displayName || null;
4608
4608
  return re !== null ? re : R(B.type) || "Memo";
4609
4609
  case g: {
4610
- var X = B, Ce = X._payload, Pe = X._init;
4610
+ var X = B, ve = X._payload, Pe = X._init;
4611
4611
  try {
4612
- return R(Pe(Ce));
4612
+ return R(Pe(ve));
4613
4613
  } catch {
4614
4614
  return null;
4615
4615
  }
@@ -4710,8 +4710,8 @@ function rw() {
4710
4710
  se = !0;
4711
4711
  var X = Error.prepareStackTrace;
4712
4712
  Error.prepareStackTrace = void 0;
4713
- var Ce;
4714
- Ce = Y.current, Y.current = null, V();
4713
+ var ve;
4714
+ ve = Y.current, Y.current = null, V();
4715
4715
  try {
4716
4716
  if (fe) {
4717
4717
  var Pe = function() {
@@ -4764,7 +4764,7 @@ function rw() {
4764
4764
  }
4765
4765
  }
4766
4766
  } finally {
4767
- se = !1, Y.current = Ce, W(), Error.prepareStackTrace = X;
4767
+ se = !1, Y.current = ve, W(), Error.prepareStackTrace = X;
4768
4768
  }
4769
4769
  var De = B ? B.displayName || B.name : "", lt = De ? J(De) : "";
4770
4770
  return typeof B == "function" && ce.set(B, lt), lt;
@@ -4796,9 +4796,9 @@ function rw() {
4796
4796
  case d:
4797
4797
  return de(B.type, fe, Q);
4798
4798
  case g: {
4799
- var re = B, X = re._payload, Ce = re._init;
4799
+ var re = B, X = re._payload, ve = re._init;
4800
4800
  try {
4801
- return de(Ce(X), fe, Q);
4801
+ return de(ve(X), fe, Q);
4802
4802
  } catch {
4803
4803
  }
4804
4804
  }
@@ -4806,7 +4806,7 @@ function rw() {
4806
4806
  return "";
4807
4807
  }
4808
4808
  var le = Object.prototype.hasOwnProperty, Se = {}, xe = y.ReactDebugCurrentFrame;
4809
- function ve(B) {
4809
+ function Ce(B) {
4810
4810
  if (B) {
4811
4811
  var fe = B._owner, Q = de(B.type, B._source, fe ? fe.type : null);
4812
4812
  xe.setExtraStackFrame(Q);
@@ -4815,9 +4815,9 @@ function rw() {
4815
4815
  }
4816
4816
  function Be(B, fe, Q, re, X) {
4817
4817
  {
4818
- var Ce = Function.call.bind(le);
4818
+ var ve = Function.call.bind(le);
4819
4819
  for (var Pe in B)
4820
- if (Ce(B, Pe)) {
4820
+ if (ve(B, Pe)) {
4821
4821
  var et = void 0;
4822
4822
  try {
4823
4823
  if (typeof B[Pe] != "function") {
@@ -4828,7 +4828,7 @@ function rw() {
4828
4828
  } catch (ft) {
4829
4829
  et = ft;
4830
4830
  }
4831
- et && !(et instanceof Error) && (ve(X), w("%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).", re || "React class", Q, Pe, typeof et), ve(null)), et instanceof Error && !(et.message in Se) && (Se[et.message] = !0, ve(X), w("Failed %s type: %s", Q, et.message), ve(null));
4831
+ et && !(et instanceof Error) && (Ce(X), w("%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).", re || "React class", Q, Pe, typeof et), Ce(null)), et instanceof Error && !(et.message in Se) && (Se[et.message] = !0, Ce(X), w("Failed %s type: %s", Q, et.message), Ce(null));
4832
4832
  }
4833
4833
  }
4834
4834
  }
@@ -4903,7 +4903,7 @@ function rw() {
4903
4903
  });
4904
4904
  }
4905
4905
  }
4906
- var At = function(B, fe, Q, re, X, Ce, Pe) {
4906
+ var At = function(B, fe, Q, re, X, ve, Pe) {
4907
4907
  var et = {
4908
4908
  // This tag allows us to uniquely identify this as a React Element
4909
4909
  $$typeof: e,
@@ -4913,7 +4913,7 @@ function rw() {
4913
4913
  ref: Q,
4914
4914
  props: Pe,
4915
4915
  // Record the component responsible for creating this element.
4916
- _owner: Ce
4916
+ _owner: ve
4917
4917
  };
4918
4918
  return et._store = {}, Object.defineProperty(et._store, "validated", {
4919
4919
  configurable: !1,
@@ -4934,14 +4934,14 @@ function rw() {
4934
4934
  };
4935
4935
  function ct(B, fe, Q, re, X) {
4936
4936
  {
4937
- var Ce, Pe = {}, et = null, Pt = null;
4937
+ var ve, Pe = {}, et = null, Pt = null;
4938
4938
  Q !== void 0 && (Ke(Q), et = "" + Q), ut(fe) && (Ke(fe.key), et = "" + fe.key), _e(fe) && (Pt = fe.ref, $e(fe, X));
4939
- for (Ce in fe)
4940
- le.call(fe, Ce) && !it.hasOwnProperty(Ce) && (Pe[Ce] = fe[Ce]);
4939
+ for (ve in fe)
4940
+ le.call(fe, ve) && !it.hasOwnProperty(ve) && (Pe[ve] = fe[ve]);
4941
4941
  if (B && B.defaultProps) {
4942
4942
  var ft = B.defaultProps;
4943
- for (Ce in ft)
4944
- Pe[Ce] === void 0 && (Pe[Ce] = ft[Ce]);
4943
+ for (ve in ft)
4944
+ Pe[ve] === void 0 && (Pe[ve] = ft[ve]);
4945
4945
  }
4946
4946
  if (et || Pt) {
4947
4947
  var It = typeof B == "function" ? B.displayName || B.name || "Unknown" : B;
@@ -4978,7 +4978,7 @@ Check the render method of \`` + B + "`.";
4978
4978
  function Vt(B) {
4979
4979
  return "";
4980
4980
  }
4981
- var Tt = {};
4981
+ var Mt = {};
4982
4982
  function mt(B) {
4983
4983
  {
4984
4984
  var fe = en();
@@ -4997,9 +4997,9 @@ Check the top-level render call using <` + Q + ">.");
4997
4997
  return;
4998
4998
  B._store.validated = !0;
4999
4999
  var Q = mt(fe);
5000
- if (Tt[Q])
5000
+ if (Mt[Q])
5001
5001
  return;
5002
- Tt[Q] = !0;
5002
+ Mt[Q] = !0;
5003
5003
  var re = "";
5004
5004
  B && B._owner && B._owner !== Ct.current && (re = " It was passed a child from " + R(B._owner.type) + "."), $t(B), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Q, re), $t(null);
5005
5005
  }
@@ -5018,7 +5018,7 @@ Check the top-level render call using <` + Q + ">.");
5018
5018
  else if (B) {
5019
5019
  var X = m(B);
5020
5020
  if (typeof X == "function" && X !== B.entries)
5021
- for (var Ce = X.call(B), Pe; !(Pe = Ce.next()).done; )
5021
+ for (var ve = X.call(B), Pe; !(Pe = ve.next()).done; )
5022
5022
  rn(Pe.value) && ze(Pe.value, fe);
5023
5023
  }
5024
5024
  }
@@ -5061,7 +5061,7 @@ Check the top-level render call using <` + Q + ">.");
5061
5061
  }
5062
5062
  }
5063
5063
  var vt = {};
5064
- function ke(B, fe, Q, re, X, Ce) {
5064
+ function ke(B, fe, Q, re, X, ve) {
5065
5065
  {
5066
5066
  var Pe = h(B);
5067
5067
  if (!Pe) {
@@ -5072,7 +5072,7 @@ Check the top-level render call using <` + Q + ">.");
5072
5072
  var ft;
5073
5073
  B === null ? ft = "null" : Ue(B) ? ft = "array" : B !== void 0 && B.$$typeof === e ? (ft = "<" + (R(B.type) || "Unknown") + " />", et = " Did you accidentally export a JSX literal instead of a component?") : ft = typeof B, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ft, et);
5074
5074
  }
5075
- var It = ct(B, fe, Q, X, Ce);
5075
+ var It = ct(B, fe, Q, X, ve);
5076
5076
  if (It == null)
5077
5077
  return It;
5078
5078
  if (Pe) {
@@ -9991,10 +9991,10 @@ let Hf = class Xs {
9991
9991
  r && r.forEach((i) => i(n));
9992
9992
  }
9993
9993
  };
9994
- var Mt, Tn, ot, ur, ie, Ge, zt;
9994
+ var Nt, Tn, ot, ur, ie, Ge, zt;
9995
9995
  (function(t) {
9996
9996
  t[t.IDLE = 1] = "IDLE", t[t.BUSY = 2] = "BUSY", t[t.RINGING = 3] = "RINGING", t[t.OFFLINE = 0] = "OFFLINE", t[t.UNREGISTERED = 4] = "UNREGISTERED";
9997
- })(Mt || (Mt = {})), function(t) {
9997
+ })(Nt || (Nt = {})), function(t) {
9998
9998
  t.OUTGOING = "outgoing", t.INCOMING = "incoming", t.CONSULT = "consult", t.MEETING = "meeting", t.TRANSFER = "transfer", t.PREDICT_OUT_CALL = "predict_out_call";
9999
9999
  }(Tn || (Tn = {})), function(t) {
10000
10000
  t[t.OUT_CALL = 100] = "OUT_CALL", t[t.AGENT_STATE = 101] = "AGENT_STATE", t[t.OUT_CALL_INCOMING_CALL = 102] = "OUT_CALL_INCOMING_CALL", t[t.OUT_CALL_RINGING = 103] = "OUT_CALL_RINGING", t[t.OUT_CALL_ANSWER = 104] = "OUT_CALL_ANSWER", t[t.CALL_HOLD = 105] = "CALL_HOLD", t[t.CALL_UNHOLD = 106] = "CALL_UNHOLD", t[t.OUT_CALL_END = 107] = "OUT_CALL_END", t[t.CONSULT_REQUEST = 108] = "CONSULT_REQUEST", t[t.CONSULT_RINGING = 109] = "CONSULT_RINGING", t[t.CONSULT_ANSWER = 110] = "CONSULT_ANSWER", t[t.CONSULT_FAIL = 111] = "CONSULT_FAIL", t[t.MUTE = 112] = "MUTE", t[t.UNMUTE = 113] = "UNMUTE", t[t.CONSULT_CALL_IN = 114] = "CONSULT_CALL_IN", t[t.CONSULT_CALL_IN_SUCCESS = 115] = "CONSULT_CALL_IN_SUCCESS", t[t.CONSULT_RETURN_CALL = 125] = "CONSULT_RETURN_CALL", t[t.CONSULT_RETURN_CALL_SUCCESS = 126] = "CONSULT_RETURN_CALL_SUCCESS", t[t.CONSULT_TRANSFER = 116] = "CONSULT_TRANSFER", t[t.CONSULT_TRANSFER_FAILED = 118] = "CONSULT_TRANSFER_FAILED", t[t.CONSULT_TRANSFER_OFF_HOOK = 117] = "CONSULT_TRANSFER_OFF_HOOK", t[t.INCOMING_CALL = 119] = "INCOMING_CALL", t[t.INCOMING_CALL_OFF_HOOK = 120] = "INCOMING_CALL_OFF_HOOK", t[t.INCOMING_CALL_END = 121] = "INCOMING_CALL_END", t[t.SATISFACTION_EVALUATION = 122] = "SATISFACTION_EVALUATION", t[t.CONSULT_THREE_WAY = 123] = "CONSULT_THREE_WAY", t[t.CONSULT_THREE_WAY_RESULT = 124] = "CONSULT_THREE_WAY_RESULT", t[t.TRANSFER = 127] = "TRANSFER", t[t.TRANSFER_FAILED = 128] = "TRANSFER_FAILED", t[t.TRANSFER_INCOMING_CALL = 129] = "TRANSFER_INCOMING_CALL", t[t.TRANSFER_OFF_HOOK = 130] = "TRANSFER_OFF_HOOK", t[t.AGENT_HANGUP = 131] = "AGENT_HANGUP", t[t.KICK_OFFLINE = 132] = "KICK_OFFLINE", t[t.CONTINUOUS_NOT_ANSWER = 133] = "CONTINUOUS_NOT_ANSWER", t[t.PREVIEW_OUT_CALL = 134] = "PREVIEW_OUT_CALL", t[t.SIGN_OUT = 135] = "SIGN_OUT", t[t.SIGN_IN_SWITCH_DEVICE = 136] = "SIGN_IN_SWITCH_DEVICE", t[t.LISTEN_CALL_FAILED = 137] = "LISTEN_CALL_FAILED", t[t.LISTEN_INCOMING_CALL = 138] = "LISTEN_INCOMING_CALL", t[t.LISTEN_INCOMING_CALL_OFF_HOOK = 139] = "LISTEN_INCOMING_CALL_OFF_HOOK", t[t.EAR_SPEECH = 140] = "EAR_SPEECH", t[t.STOP_EAR_SPEECH = 141] = "STOP_EAR_SPEECH", t[t.CALL_FORCE_INSERT = 142] = "CALL_FORCE_INSERT", t[t.INTERNAL_CALL_START_CONSULT = 145] = "INTERNAL_CALL_START_CONSULT", t[t.INTERNAL_CALL_END_CONSULT = 146] = "INTERNAL_CALL_END_CONSULT", t[t.CALL_SIP_INCOMING_CALL = 147] = "CALL_SIP_INCOMING_CALL";
@@ -10028,7 +10028,7 @@ const ge = { on: (t, e) => (ma.on(t, e), ge), off(t, e) {
10028
10028
  ma.emit(t, e), ma.emit(Ge.EVENT_ALL, { event: t, data: e });
10029
10029
  }, clearAllListeners() {
10030
10030
  ma.all.clear();
10031
- } }, q = { agentInfo: {}, isRtcReconnecting: !1, sessionId: "", enableBrowserAlert: !1, autoStateTimer: null, autoAnswerTimer: null, logBuiltinEnabled: !1, browserAlertTime: 3e3, latency: 0, monitoredAgentNo: "", earSpeakAgent: "", stateObject: { state: Mt.BUSY, state_name: "忙碌" }, isAgentHangup: !1 }, br = { isCalling: !1, direction: null, outCallIsAnswer: !1, incomingIsAnswer: !1, transferIsAnswer: !1, isMeeting: !1, isHold: !1, displayText: "", isMuted: !1, consultIsAnswer: !1, actionConfigs: [], answerDevice: 1, selectOutNumber: "", customerObject: void 0, isNextState: !0, isSipConnected: !1 }, H = new class extends B0 {
10031
+ } }, q = { agentInfo: {}, isRtcReconnecting: !1, sessionId: "", enableBrowserAlert: !1, autoStateTimer: null, autoAnswerTimer: null, logBuiltinEnabled: !1, browserAlertTime: 3e3, latency: 0, monitoredAgentNo: "", earSpeakAgent: "", stateObject: { state: Nt.BUSY, state_name: "忙碌" }, isAgentHangup: !1 }, br = { isCalling: !1, direction: null, outCallIsAnswer: !1, incomingIsAnswer: !1, transferIsAnswer: !1, isMeeting: !1, isHold: !1, displayText: "", isMuted: !1, consultIsAnswer: !1, actionConfigs: [], answerDevice: 1, selectOutNumber: "", customerObject: void 0, isNextState: !0, isSipConnected: !1 }, H = new class extends B0 {
10032
10032
  updateIsCalling(t) {
10033
10033
  this.setState({ isCalling: t });
10034
10034
  }
@@ -10040,7 +10040,7 @@ const ge = { on: (t, e) => (ma.on(t, e), ge), off(t, e) {
10040
10040
  }
10041
10041
  updateIsHold(t) {
10042
10042
  var n;
10043
- if (((n = q.stateObject) == null ? void 0 : n.state) === Mt.UNREGISTERED) return;
10043
+ if (((n = q.stateObject) == null ? void 0 : n.state) === Nt.UNREGISTERED) return;
10044
10044
  const e = this.get("actionConfigs");
10045
10045
  if (t) {
10046
10046
  const r = [...e.filter((i) => i !== "hold")];
@@ -10063,7 +10063,7 @@ const ge = { on: (t, e) => (ma.on(t, e), ge), off(t, e) {
10063
10063
  }
10064
10064
  updateIsMuted(t) {
10065
10065
  var n;
10066
- if (((n = q.stateObject) == null ? void 0 : n.state) === Mt.UNREGISTERED) return;
10066
+ if (((n = q.stateObject) == null ? void 0 : n.state) === Nt.UNREGISTERED) return;
10067
10067
  const e = this.get("actionConfigs");
10068
10068
  if (t) {
10069
10069
  const r = [...e.filter((i) => i !== "mute")];
@@ -10098,7 +10098,7 @@ const ge = { on: (t, e) => (ma.on(t, e), ge), off(t, e) {
10098
10098
  this.setState({ customerObject: t });
10099
10099
  }
10100
10100
  updateIsNextState(t) {
10101
- this.setState({ isNextState: t }), t ? ge.emit(Ge.NETWORK_ONLINE) : (q.stateObject = { state: Mt.OFFLINE, state_name: "离线" }, this.updateActionConfigs([]), ge.emit(ie.AGENT_STATE, q.stateObject), ge.emit(Ge.NETWORK_OFFLINE));
10101
+ this.setState({ isNextState: t }), t ? ge.emit(Ge.NETWORK_ONLINE) : (q.stateObject = { state: Nt.OFFLINE, state_name: "离线" }, this.updateActionConfigs([]), ge.emit(ie.AGENT_STATE, q.stateObject), ge.emit(Ge.NETWORK_OFFLINE));
10102
10102
  }
10103
10103
  updateIsSipConnected(t) {
10104
10104
  this.setState({ isSipConnected: t });
@@ -10826,7 +10826,7 @@ class Va {
10826
10826
  const { agent_no: o } = q.agentInfo;
10827
10827
  await ((s) => wn(`${kr}/device/change`, s))({ agent_no: o, answer_device: i }), H.updateAnswerDevice(i);
10828
10828
  const a = H.get("actionConfigs");
10829
- H.updateActionConfigs(a), i === 2 && q.stateObject.state === Mt.UNREGISTERED && await this._changeState({ data: { ...q.stateBeforeChange, state_name: q.stateBeforeChange.state === Mt.IDLE ? "空闲" : "忙碌" } }, "q"), r == null || r({ code: 0, msg: "请求成功" });
10829
+ H.updateActionConfigs(a), i === 2 && q.stateObject.state === Nt.UNREGISTERED && await this._changeState({ data: { ...q.stateBeforeChange, state_name: q.stateBeforeChange.state === Nt.IDLE ? "空闲" : "忙碌" } }, "q"), r == null || r({ code: 0, msg: "请求成功" });
10830
10830
  } catch (n) {
10831
10831
  throw ge.emit(Ge.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
10832
10832
  }
@@ -10851,7 +10851,7 @@ class Va {
10851
10851
  try {
10852
10852
  q.autoStateTimer && (clearTimeout(q.autoStateTimer), q.autoStateTimer = null), this.roleData.agentInfo(), this.roleData.requestInfo(e);
10853
10853
  const { data: r, success: i } = e, { state: o, state_name: a } = r, { agent_no: s } = q.agentInfo;
10854
- await zf({ agent_no: s, state_name: a, state: o }, n), o === Mt.IDLE ? H.updateActionConfigs(Wn) : o === Mt.BUSY && H.updateActionConfigs(fA), q.stateObject = { state: o, state_name: a }, i == null || i({ code: 0, msg: "请求成功" });
10854
+ await zf({ agent_no: s, state_name: a, state: o }, n), o === Nt.IDLE ? H.updateActionConfigs(Wn) : o === Nt.BUSY && H.updateActionConfigs(fA), q.stateObject = { state: o, state_name: a }, i == null || i({ code: 0, msg: "请求成功" });
10855
10855
  } catch (r) {
10856
10856
  throw ge.emit(Ge.FAIL_NOTIFICATION, JSON.parse(r.message).msg), r;
10857
10857
  }
@@ -10874,7 +10874,7 @@ class Va {
10874
10874
  const { data: r, success: i } = e, { state: o, state_name: a } = r;
10875
10875
  this.roleData.changeState(o, a);
10876
10876
  const { agent_no: s } = q.agentInfo;
10877
- await zf({ agent_no: s, state_name: a, state: o }, n), (q.stateObject.state === Mt.IDLE || q.stateObject.state === Mt.BUSY && a !== "整理") && (q.stateBeforeChange = q.stateObject), o === Mt.IDLE ? H.updateActionConfigs(Wn) : o === Mt.BUSY && H.updateActionConfigs(fA), q.stateObject = { state: o, state_name: a }, i == null || i({ code: 0, msg: "请求成功" });
10877
+ await zf({ agent_no: s, state_name: a, state: o }, n), (q.stateObject.state === Nt.IDLE || q.stateObject.state === Nt.BUSY && a !== "整理") && (q.stateBeforeChange = q.stateObject), o === Nt.IDLE ? H.updateActionConfigs(Wn) : o === Nt.BUSY && H.updateActionConfigs(fA), q.stateObject = { state: o, state_name: a }, i == null || i({ code: 0, msg: "请求成功" });
10878
10878
  } catch (r) {
10879
10879
  throw ge.emit(Ge.FAIL_NOTIFICATION, JSON.parse(r.message).msg), r;
10880
10880
  }
@@ -11014,7 +11014,7 @@ class un {
11014
11014
  }
11015
11015
  stateIdleChange(e) {
11016
11016
  const { state: n } = q.stateObject;
11017
- n !== Mt.IDLE && this.apiClient._changeState({ data: { ...q.stateBeforeChange, state_name: q.stateBeforeChange.state === Mt.IDLE ? "空闲" : "忙碌" } }, e);
11017
+ n !== Nt.IDLE && this.apiClient._changeState({ data: { ...q.stateBeforeChange, state_name: q.stateBeforeChange.state === Nt.IDLE ? "空闲" : "忙碌" } }, e);
11018
11018
  }
11019
11019
  inCallAutoAnswer() {
11020
11020
  const { soft_device_auto_answer: e, auto_answer_time: n } = q.agentInfo, r = e === 1, i = H.get("direction");
@@ -11042,14 +11042,14 @@ class un {
11042
11042
  const { post_call_process_time: r } = q.agentInfo, i = r || 0;
11043
11043
  if (q.autoStateTimer && (clearTimeout(q.autoStateTimer), q.autoStateTimer = null), H.updateCustomerInfo(void 0), i > 0) {
11044
11044
  const { state: o } = q.stateObject;
11045
- if (o === Mt.IDLE) return;
11046
- this.apiClient._changeState({ data: { state: Mt.BUSY, state_name: "整理" } }, "ez"), q.autoStateTimer = setTimeout(() => {
11045
+ if (o === Nt.IDLE) return;
11046
+ this.apiClient._changeState({ data: { state: Nt.BUSY, state_name: "整理" } }, "ez"), q.autoStateTimer = setTimeout(() => {
11047
11047
  q.autoStateTimer = null, this.stateIdleChange(`delay${i}`);
11048
11048
  }, 1e3 * i);
11049
11049
  } else this.stateIdleChange("delay0");
11050
11050
  }
11051
11051
  stateBusyChange() {
11052
- q.sessionId = "", clearTimeout(q.autoStateTimer), H.updateCustomerInfo(void 0), this.apiClient._changeState({ data: { state: Mt.BUSY, state_name: "忙碌" } }, "dm");
11052
+ q.sessionId = "", clearTimeout(q.autoStateTimer), H.updateCustomerInfo(void 0), this.apiClient._changeState({ data: { state: Nt.BUSY, state_name: "忙碌" } }, "dm");
11053
11053
  }
11054
11054
  initWebSocket() {
11055
11055
  var n;
@@ -11069,9 +11069,9 @@ class un {
11069
11069
  H.updateCustomerInfo(void 0);
11070
11070
  }, 500), this.stateIdleChange("h")) : s === 0 && (ge.emit(ie.OUT_SUCCESS), q.sessionId = a.session_id, H.updateIsCalling(!0), clearTimeout(q.autoStateTimer))), o === ot.AGENT_STATE) {
11071
11071
  const { state: d, state_name: g } = a;
11072
- q.stateObject = { state: d, state_name: g }, (u = q.stateBeforeChange) != null && u.state || q.stateObject.state !== Mt.IDLE && (q.stateObject.state !== Mt.BUSY || g === "整理") || (q.stateBeforeChange = q.stateObject), g === "振铃中" && H.updateDisplayText(zt.AGENT_RINGING);
11072
+ q.stateObject = { state: d, state_name: g }, (u = q.stateBeforeChange) != null && u.state || q.stateObject.state !== Nt.IDLE && (q.stateObject.state !== Nt.BUSY || g === "整理") || (q.stateBeforeChange = q.stateObject), g === "振铃中" && H.updateDisplayText(zt.AGENT_RINGING);
11073
11073
  const p = H.get("isCalling");
11074
- d !== Mt.UNREGISTERED || p || H.updateActionConfigs(Xw), d === Mt.IDLE && q.stateObject.state === Mt.UNREGISTERED && H.updateActionConfigs(Wn), ge.emit(ie.AGENT_STATE, { state: d, state_name: g });
11074
+ d !== Nt.UNREGISTERED || p || H.updateActionConfigs(Xw), d === Nt.IDLE && H.updateActionConfigs(Wn), ge.emit(ie.AGENT_STATE, { state: d, state_name: g });
11075
11075
  } else if (o === ot.OUT_CALL_INCOMING_CALL) q.isAgentHangup = !1, a.preview_task_id ? (this.getCustomerInfo(a.trace_id || a.customer_phone, "preview_out_incoming_call"), ge.emit(ie.PREVIEW_OUT_INCOMING_CALL, { customer_phone: a.customer_phone, session_id: a.session_id, preview_task_id: a.preview_task_id, trace_id: a.trace_id })) : a.direction === 0 ? (this.getCustomerInfo(a.trace_id || a.customer_phone, "out_call_incoming_call"), ge.emit(ie.OUT_INCOMING_CALL, { customer_phone: a.customer_phone, session_id: a.session_id, trace_id: a.trace_id })) : a.direction === 8 && (this.getCustomerInfo(a.trace_id || a.customer_phone, "internal_out_incoming_call"), ge.emit(ie.INTERNAL_OUT_INCOMING_CALL, { customer_phone: a.customer_phone, session_id: a.session_id, trace_id: a.trace_id })), q.sessionId = a.session_id, H.updateActionConfigs($w, a.direction !== 8);
11076
11076
  else if (o === ot.OUT_CALL_END) {
11077
11077
  if (q.sessionId !== a.session_id) return;
@@ -11361,13 +11361,13 @@ const PA = class PA {
11361
11361
  n = Ri.includes("https") ? `wss://${r}` : `ws://${r}`;
11362
11362
  const { agent_no: i } = q.agentInfo;
11363
11363
  un.getInstance({ url: `${n}/ccs-ws/api/v1/ws/call/${i}?Authorization=`, sipClient: nt(this, Pn) }), setTimeout(() => {
11364
- nt(this, mn)._changeState({ data: { state: Mt.BUSY, state_name: "忙碌" }, success: () => {
11365
- H.updateDisplayText(""), ge.emit(ie.AGENT_STATE, { state: Mt.BUSY, state_name: "忙碌" });
11364
+ nt(this, mn)._changeState({ data: { state: Nt.BUSY, state_name: "忙碌" }, success: () => {
11365
+ H.updateDisplayText(""), ge.emit(ie.AGENT_STATE, { state: Nt.BUSY, state_name: "忙碌" });
11366
11366
  } }, "d");
11367
11367
  }, 10);
11368
11368
  } else un.__internalClose(), H.updateIsCalling(!1), H.updateOutCallIsAnswer(!1), H.updateIncomingIsAnswer(!1), H.updateIsMuted(!1), H.updateConsultIsAnswer(!1), H.updateIsHold(!1), H.updateCustomerInfo(void 0), H.updateDisplayText("离线");
11369
11369
  })), ln(this, Xa, H.subscribeKey("answerDevice", async (e) => {
11370
- e === 1 ? q.stateObject.state === Mt.UNREGISTERED && await nt(this, mn)._changeState({ data: { ...q.stateBeforeChange, state_name: q.stateBeforeChange.state === Mt.IDLE ? "空闲" : "忙碌" } }, "qq") : await this.destroyRtc();
11370
+ e === 1 ? q.stateObject.state === Nt.UNREGISTERED && await nt(this, mn)._changeState({ data: { ...q.stateBeforeChange, state_name: q.stateBeforeChange.state === Nt.IDLE ? "空闲" : "忙碌" } }, "qq") : await this.destroyRtc();
11371
11371
  })), this.on(Ge.KICK_OFF, () => {
11372
11372
  this.destroy();
11373
11373
  }), window.addEventListener("beforeunload", (e) => {
@@ -11404,7 +11404,7 @@ const PA = class PA {
11404
11404
  const u = await wn(`${_i}/audio/list`, {});
11405
11405
  ln(this, ro, u.data), q.logBuiltinEnabled = n || !1, q.browserAlertTime = r || 5e3, await nt(this, mn)._agentLogin(Kc), an.info("初始化成功", "index.ts");
11406
11406
  const { current_answer_device: d, current_state: g, out_display_number: p, out_display_select_switch: v } = q.agentInfo;
11407
- g === Mt.IDLE ? (H.updateActionConfigs(Wn), q.stateObject = { state: g, state_name: "空闲" }, q.stateBeforeChange = q.stateObject) : g === Mt.BUSY ? (H.updateActionConfigs(fA), q.stateObject = { state: g, state_name: "忙碌" }, q.stateBeforeChange = q.stateObject) : g === Mt.UNREGISTERED && (H.updateActionConfigs(fA), q.stateObject = { state: g, state_name: "未注册" }), v === 1 ? H.updateSelectOutNumber(p) : H.updateSelectOutNumber(""), H.updateAnswerDevice(d), Va.setInitRtcFn(this.initWebRtc), d === 1 && (await this.initWebRtc(), s.setSipClient(nt(this, Pn))), ln(this, gn, new s2(nt(this, Pn))), q.enableBrowserAlert = e, e && Fo.requestPermission(), ge.emit(Ge.AGENT_INIT_STATUS, !0), ln(this, io, !0), clearInterval(lr._timer), lr._timer = null, vs(this, Hi, q0).call(this), i == null || i();
11407
+ g === Nt.IDLE ? (H.updateActionConfigs(Wn), q.stateObject = { state: g, state_name: "空闲" }, q.stateBeforeChange = q.stateObject) : g === Nt.BUSY ? (H.updateActionConfigs(fA), q.stateObject = { state: g, state_name: "忙碌" }, q.stateBeforeChange = q.stateObject) : g === Nt.UNREGISTERED && (H.updateActionConfigs(fA), q.stateObject = { state: g, state_name: "未注册" }), v === 1 ? H.updateSelectOutNumber(p) : H.updateSelectOutNumber(""), H.updateAnswerDevice(d), Va.setInitRtcFn(this.initWebRtc), d === 1 && (await this.initWebRtc(), s.setSipClient(nt(this, Pn))), ln(this, gn, new s2(nt(this, Pn))), q.enableBrowserAlert = e, e && Fo.requestPermission(), ge.emit(Ge.AGENT_INIT_STATUS, !0), ln(this, io, !0), clearInterval(lr._timer), lr._timer = null, vs(this, Hi, q0).call(this), i == null || i();
11408
11408
  } });
11409
11409
  } catch {
11410
11410
  ge.emit(Ge.AGENT_INIT_STATUS, !1), ln(this, io, !1);
@@ -11441,7 +11441,7 @@ const PA = class PA {
11441
11441
  const e = (n) => (...r) => n.apply(this, r);
11442
11442
  return { changeDevice: e((n) => nt(this, mn).changeDevice(n)), changeState: e(async (n) => {
11443
11443
  const r = H.get("answerDevice");
11444
- if (q.stateObject.state === Mt.UNREGISTERED && r === 1) {
11444
+ if (q.stateObject.state === Nt.UNREGISTERED && r === 1) {
11445
11445
  await nt(this, Pn).reconnect();
11446
11446
  let i = "";
11447
11447
  const o = new URL(Ri).host;
@@ -18981,7 +18981,7 @@ var Gp = /* @__PURE__ */ function(t) {
18981
18981
  var e = pi(n);
18982
18982
  function n(r, i) {
18983
18983
  var o;
18984
- return yn(this, n), o = e.call(this, "Async Validation Error"), P(Nt(o), "errors", void 0), P(Nt(o), "fields", void 0), o.errors = r, o.fields = i, o;
18984
+ return yn(this, n), o = e.call(this, "Async Validation Error"), P(Tt(o), "errors", void 0), P(Tt(o), "fields", void 0), o.errors = r, o.fields = i, o;
18985
18985
  }
18986
18986
  return En(n);
18987
18987
  }(/* @__PURE__ */ sd(Error));
@@ -19732,27 +19732,27 @@ var gg = /* @__PURE__ */ function(t) {
19732
19732
  var e = pi(n);
19733
19733
  function n(r) {
19734
19734
  var i;
19735
- if (yn(this, n), i = e.call(this, r), P(Nt(i), "state", {
19735
+ if (yn(this, n), i = e.call(this, r), P(Tt(i), "state", {
19736
19736
  resetCount: 0
19737
- }), P(Nt(i), "cancelRegisterFunc", null), P(Nt(i), "mounted", !1), P(Nt(i), "touched", !1), P(Nt(i), "dirty", !1), P(Nt(i), "validatePromise", void 0), P(Nt(i), "prevValidating", void 0), P(Nt(i), "errors", Sr), P(Nt(i), "warnings", Sr), P(Nt(i), "cancelRegister", function() {
19737
+ }), P(Tt(i), "cancelRegisterFunc", null), P(Tt(i), "mounted", !1), P(Tt(i), "touched", !1), P(Tt(i), "dirty", !1), P(Tt(i), "validatePromise", void 0), P(Tt(i), "prevValidating", void 0), P(Tt(i), "errors", Sr), P(Tt(i), "warnings", Sr), P(Tt(i), "cancelRegister", function() {
19738
19738
  var A = i.props, c = A.preserve, u = A.isListField, d = A.name;
19739
19739
  i.cancelRegisterFunc && i.cancelRegisterFunc(u, c, fn(d)), i.cancelRegisterFunc = null;
19740
- }), P(Nt(i), "getNamePath", function() {
19740
+ }), P(Tt(i), "getNamePath", function() {
19741
19741
  var A = i.props, c = A.name, u = A.fieldContext, d = u.prefixName, g = d === void 0 ? [] : d;
19742
19742
  return c !== void 0 ? [].concat(Re(g), Re(c)) : [];
19743
- }), P(Nt(i), "getRules", function() {
19743
+ }), P(Tt(i), "getRules", function() {
19744
19744
  var A = i.props, c = A.rules, u = c === void 0 ? [] : c, d = A.fieldContext;
19745
19745
  return u.map(function(g) {
19746
19746
  return typeof g == "function" ? g(d) : g;
19747
19747
  });
19748
- }), P(Nt(i), "refresh", function() {
19748
+ }), P(Tt(i), "refresh", function() {
19749
19749
  i.mounted && i.setState(function(A) {
19750
19750
  var c = A.resetCount;
19751
19751
  return {
19752
19752
  resetCount: c + 1
19753
19753
  };
19754
19754
  });
19755
- }), P(Nt(i), "metaCache", null), P(Nt(i), "triggerMetaEvent", function(A) {
19755
+ }), P(Tt(i), "metaCache", null), P(Tt(i), "triggerMetaEvent", function(A) {
19756
19756
  var c = i.props.onMetaChange;
19757
19757
  if (c) {
19758
19758
  var u = j(j({}, i.getMeta()), {}, {
@@ -19761,7 +19761,7 @@ var gg = /* @__PURE__ */ function(t) {
19761
19761
  ka(i.metaCache, u) || c(u), i.metaCache = u;
19762
19762
  } else
19763
19763
  i.metaCache = null;
19764
- }), P(Nt(i), "onStoreChange", function(A, c, u) {
19764
+ }), P(Tt(i), "onStoreChange", function(A, c, u) {
19765
19765
  var d = i.props, g = d.shouldUpdate, p = d.dependencies, v = p === void 0 ? [] : p, C = d.onReset, m = u.store, y = i.getNamePath(), w = i.getValue(A), I = i.getValue(m), O = c && jo(c, y);
19766
19766
  switch (u.type === "valueUpdate" && u.source === "external" && !ka(w, I) && (i.touched = !0, i.dirty = !0, i.validatePromise = null, i.errors = Sr, i.warnings = Sr, i.triggerMetaEvent()), u.type) {
19767
19767
  case "reset":
@@ -19816,7 +19816,7 @@ var gg = /* @__PURE__ */ function(t) {
19816
19816
  break;
19817
19817
  }
19818
19818
  g === !0 && i.reRender();
19819
- }), P(Nt(i), "validateRules", function(A) {
19819
+ }), P(Tt(i), "validateRules", function(A) {
19820
19820
  var c = i.getNamePath(), u = i.getValue(), d = A || {}, g = d.triggerName, p = d.validateOnly, v = p === void 0 ? !1 : p, C = Promise.resolve().then(/* @__PURE__ */ mo(/* @__PURE__ */ qn().mark(function m() {
19821
19821
  var y, w, I, O, x, f, M;
19822
19822
  return qn().wrap(function(b) {
@@ -19871,26 +19871,26 @@ var gg = /* @__PURE__ */ function(t) {
19871
19871
  }, m);
19872
19872
  })));
19873
19873
  return v || (i.validatePromise = C, i.dirty = !0, i.errors = Sr, i.warnings = Sr, i.triggerMetaEvent(), i.reRender()), C;
19874
- }), P(Nt(i), "isFieldValidating", function() {
19874
+ }), P(Tt(i), "isFieldValidating", function() {
19875
19875
  return !!i.validatePromise;
19876
- }), P(Nt(i), "isFieldTouched", function() {
19876
+ }), P(Tt(i), "isFieldTouched", function() {
19877
19877
  return i.touched;
19878
- }), P(Nt(i), "isFieldDirty", function() {
19878
+ }), P(Tt(i), "isFieldDirty", function() {
19879
19879
  if (i.dirty || i.props.initialValue !== void 0)
19880
19880
  return !0;
19881
19881
  var A = i.props.fieldContext, c = A.getInternalHooks($i), u = c.getInitialValue;
19882
19882
  return u(i.getNamePath()) !== void 0;
19883
- }), P(Nt(i), "getErrors", function() {
19883
+ }), P(Tt(i), "getErrors", function() {
19884
19884
  return i.errors;
19885
- }), P(Nt(i), "getWarnings", function() {
19885
+ }), P(Tt(i), "getWarnings", function() {
19886
19886
  return i.warnings;
19887
- }), P(Nt(i), "isListField", function() {
19887
+ }), P(Tt(i), "isListField", function() {
19888
19888
  return i.props.isListField;
19889
- }), P(Nt(i), "isList", function() {
19889
+ }), P(Tt(i), "isList", function() {
19890
19890
  return i.props.isList;
19891
- }), P(Nt(i), "isPreserve", function() {
19891
+ }), P(Tt(i), "isPreserve", function() {
19892
19892
  return i.props.preserve;
19893
- }), P(Nt(i), "getMeta", function() {
19893
+ }), P(Tt(i), "getMeta", function() {
19894
19894
  i.prevValidating = i.isFieldValidating();
19895
19895
  var A = {
19896
19896
  touched: i.isFieldTouched(),
@@ -19901,7 +19901,7 @@ var gg = /* @__PURE__ */ function(t) {
19901
19901
  validated: i.validatePromise === null
19902
19902
  };
19903
19903
  return A;
19904
- }), P(Nt(i), "getOnlyChild", function(A) {
19904
+ }), P(Tt(i), "getOnlyChild", function(A) {
19905
19905
  if (typeof A == "function") {
19906
19906
  var c = i.getMeta();
19907
19907
  return j(j({}, i.getOnlyChild(A(i.getControlled(), c, i.props.fieldContext))), {}, {
@@ -19916,10 +19916,10 @@ var gg = /* @__PURE__ */ function(t) {
19916
19916
  child: u[0],
19917
19917
  isFunction: !1
19918
19918
  };
19919
- }), P(Nt(i), "getValue", function(A) {
19919
+ }), P(Tt(i), "getValue", function(A) {
19920
19920
  var c = i.props.fieldContext.getFieldsValue, u = i.getNamePath();
19921
19921
  return $r(A || c(!0), u);
19922
- }), P(Nt(i), "getControlled", function() {
19922
+ }), P(Tt(i), "getControlled", function() {
19923
19923
  var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = i.props, u = c.name, d = c.trigger, g = c.validateTrigger, p = c.getValueFromEvent, v = c.normalize, C = c.valuePropName, m = c.getValueProps, y = c.fieldContext, w = g !== void 0 ? g : y.validateTrigger, I = i.getNamePath(), O = y.getInternalHooks, x = y.getFieldsValue, f = O($i), M = f.dispatch, E = i.getValue(), b = m || function(N) {
19924
19924
  return P({}, C, N);
19925
19925
  }, h = A[d], S = u !== void 0 ? b(E) : {};
@@ -19952,7 +19952,7 @@ var gg = /* @__PURE__ */ function(t) {
19952
19952
  }), T;
19953
19953
  }), r.fieldContext) {
19954
19954
  var o = r.fieldContext.getInternalHooks, a = o($i), s = a.initEntityValue;
19955
- s(Nt(i));
19955
+ s(Tt(i));
19956
19956
  }
19957
19957
  return i;
19958
19958
  }
@@ -21238,7 +21238,7 @@ var P3 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
21238
21238
  R(!0), i == null || i(pe);
21239
21239
  }, xe = function(pe) {
21240
21240
  D.current && (D.current = !1), R(!1), o == null || o(pe);
21241
- }, ve = function(pe) {
21241
+ }, Ce = function(pe) {
21242
21242
  L(""), U(), F.current && bA(F.current, pe, r);
21243
21243
  }, Be = ue && "".concat(u, "-out-of-range"), je = function() {
21244
21244
  var pe = mr(t, [
@@ -21296,7 +21296,7 @@ var P3 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
21296
21296
  return /* @__PURE__ */ ne.createElement(_1, Le({}, b, {
21297
21297
  prefixCls: u,
21298
21298
  className: Ae(p, Be),
21299
- handleReset: ve,
21299
+ handleReset: Ce,
21300
21300
  value: _,
21301
21301
  focused: T,
21302
21302
  triggerFocus: U,
@@ -21664,9 +21664,9 @@ const cs = /* @__PURE__ */ Nr((t, e) => {
21664
21664
  } = t, O = e5(t, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
21665
21665
  if (process.env.NODE_ENV !== "production") {
21666
21666
  const {
21667
- deprecated: ve
21667
+ deprecated: Ce
21668
21668
  } = pn("Input");
21669
- ve(!("bordered" in t), "bordered", "variant");
21669
+ Ce(!("bordered" in t), "bordered", "variant");
21670
21670
  }
21671
21671
  const {
21672
21672
  getPrefixCls: x,
@@ -21680,27 +21680,27 @@ const cs = /* @__PURE__ */ Nr((t, e) => {
21680
21680
  } = mi("input"), R = x("input", n), N = Te(null), D = ni(R), [F, k, U] = I1(R, m), [Z] = x1(R, D), {
21681
21681
  compactSize: K,
21682
21682
  compactItemClassnames: G
21683
- } = aa(R, f), L = qi((ve) => {
21683
+ } = aa(R, f), L = qi((Ce) => {
21684
21684
  var Be;
21685
- return (Be = o ?? K) !== null && Be !== void 0 ? Be : ve;
21685
+ return (Be = o ?? K) !== null && Be !== void 0 ? Be : Ce;
21686
21686
  }), _ = ne.useContext(gi), V = a ?? _, {
21687
21687
  status: W,
21688
21688
  hasFeedback: Y,
21689
21689
  feedbackIcon: ee
21690
21690
  } = hn(Zr), J = Ac(W, i), se = $3(t) || !!Y, ce = Te(se);
21691
21691
  if (process.env.NODE_ENV !== "production") {
21692
- const ve = pn("Input");
21692
+ const Ce = pn("Input");
21693
21693
  Kt(() => {
21694
21694
  var Be;
21695
- se && !ce.current && process.env.NODE_ENV !== "production" && ve(document.activeElement === ((Be = N.current) === null || Be === void 0 ? void 0 : Be.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), ce.current = se;
21695
+ se && !ce.current && process.env.NODE_ENV !== "production" && Ce(document.activeElement === ((Be = N.current) === null || Be === void 0 ? void 0 : Be.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), ce.current = se;
21696
21696
  }, [se]);
21697
21697
  }
21698
- const ue = oC(N, !0), te = (ve) => {
21699
- ue(), s == null || s(ve);
21700
- }, me = (ve) => {
21701
- ue(), A == null || A(ve);
21702
- }, z = (ve) => {
21703
- ue(), y == null || y(ve);
21698
+ const ue = oC(N, !0), te = (Ce) => {
21699
+ ue(), s == null || s(Ce);
21700
+ }, me = (Ce) => {
21701
+ ue(), A == null || A(Ce);
21702
+ }, z = (Ce) => {
21703
+ ue(), y == null || y(Ce);
21704
21704
  }, de = (Y || c) && /* @__PURE__ */ ne.createElement(ne.Fragment, null, c, Y && ee), le = iC(u ?? M), [Se, xe] = hg("input", I, r);
21705
21705
  return F(Z(/* @__PURE__ */ ne.createElement(Q3, Object.assign({
21706
21706
  ref: Vr(e, N),
@@ -23516,9 +23516,9 @@ const pR = {
23516
23516
  style: K,
23517
23517
  classNames: G,
23518
23518
  styles: L
23519
- } = mi("button"), _ = (n = E ?? U) !== null && n !== void 0 ? n : !0, V = F("btn", o), [W, Y, ee] = AR(V), J = hn(gi), se = p ?? J, ce = hn(cC), ue = Or(() => hR(i), [i]), [te, me] = Et(ue.loading), [z, de] = Et(!1), le = Te(null), Se = go(e, le), xe = Vy.count(m) === 1 && !y && !js(R), ve = Te(!0);
23520
- ne.useEffect(() => (ve.current = !1, () => {
23521
- ve.current = !0;
23519
+ } = mi("button"), _ = (n = E ?? U) !== null && n !== void 0 ? n : !0, V = F("btn", o), [W, Y, ee] = AR(V), J = hn(gi), se = p ?? J, ce = hn(cC), ue = Or(() => hR(i), [i]), [te, me] = Et(ue.loading), [z, de] = Et(!1), le = Te(null), Se = go(e, le), xe = Vy.count(m) === 1 && !y && !js(R), Ce = Te(!0);
23520
+ ne.useEffect(() => (Ce.current = !1, () => {
23521
+ Ce.current = !0;
23522
23522
  }), []), Kt(() => {
23523
23523
  let Me = null;
23524
23524
  ue.delay > 0 ? Me = setTimeout(() => {
@@ -23585,7 +23585,7 @@ const pR = {
23585
23585
  existIcon: !!y,
23586
23586
  prefixCls: V,
23587
23587
  loading: te,
23588
- mount: ve.current
23588
+ mount: Ce.current
23589
23589
  }), $e = m || m === 0 ? C5(m, xe && _) : null;
23590
23590
  if (tt.href !== void 0)
23591
23591
  return W(/* @__PURE__ */ ne.createElement("a", Object.assign({}, tt, {
@@ -24245,7 +24245,7 @@ var YR = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "classNa
24245
24245
  ($e = ce()).setSelectionRange.apply($e, Re(z));
24246
24246
  }
24247
24247
  }, [z]);
24248
- var le = X1(m, C), Se = (n = le.max) !== null && n !== void 0 ? n : c, xe = Number(Se) > 0, ve = le.strategy(U), Be = !!Se && ve > Se, je = function(Fe, Me) {
24248
+ var le = X1(m, C), Se = (n = le.max) !== null && n !== void 0 ? n : c, xe = Number(Se) > 0, Ce = le.strategy(U), Be = !!Se && Ce > Se, je = function(Fe, Me) {
24249
24249
  var At = Me;
24250
24250
  !_.current && le.exceedFormatter && le.max && le.strategy(Me) > le.max && (At = le.exceedFormatter(Me, {
24251
24251
  max: le.max
@@ -24267,9 +24267,9 @@ var YR = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "classNa
24267
24267
  }, qe = g, be;
24268
24268
  le.show && (le.showFormatter ? be = le.showFormatter({
24269
24269
  value: U,
24270
- count: ve,
24270
+ count: Ce,
24271
24271
  maxLength: Se
24272
- }) : be = "".concat(ve).concat(xe ? " / ".concat(Se) : ""), qe = /* @__PURE__ */ ne.createElement(ne.Fragment, null, qe, /* @__PURE__ */ ne.createElement("span", {
24272
+ }) : be = "".concat(Ce).concat(xe ? " / ".concat(Se) : ""), qe = /* @__PURE__ */ ne.createElement(ne.Fragment, null, qe, /* @__PURE__ */ ne.createElement("span", {
24273
24273
  className: Ae("".concat(v, "-data-count"), x == null ? void 0 : x.count),
24274
24274
  style: f == null ? void 0 : f.count
24275
24275
  }, be)));
@@ -24712,11 +24712,11 @@ var NC = /* @__PURE__ */ l.forwardRef(function(t, e) {
24712
24712
  onEnterPrepare: k,
24713
24713
  visible: A,
24714
24714
  onVisibleChanged: function(xe) {
24715
- var ve;
24716
- m == null || (ve = m.onVisibleChanged) === null || ve === void 0 || ve.call(m, xe), s(xe);
24715
+ var Ce;
24716
+ m == null || (Ce = m.onVisibleChanged) === null || Ce === void 0 || Ce.call(m, xe), s(xe);
24717
24717
  }
24718
24718
  }), function(Se, xe) {
24719
- var ve = Se.className, Be = Se.style, je = Ae(i, ve, r);
24719
+ var Ce = Se.className, Be = Se.style, je = Ae(i, Ce, r);
24720
24720
  return /* @__PURE__ */ l.createElement("div", {
24721
24721
  ref: Vr(le, e, xe),
24722
24722
  className: je,
@@ -24902,9 +24902,9 @@ function hO(t, e, n, r, i, o, a) {
24902
24902
  top: -ue,
24903
24903
  right: se - te,
24904
24904
  bottom: ce - ue
24905
- }, ve = F.htmlRegion, Be = "visible", je = "visibleFirst";
24906
- ve !== "scroll" && ve !== je && (ve = Be);
24907
- var Ue = ve === je, Ie = fm(xe, g), pe = fm(Se, g), Oe = ve === Be ? pe : Ie, Ke = Ue ? pe : Oe;
24905
+ }, Ce = F.htmlRegion, Be = "visible", je = "visibleFirst";
24906
+ Ce !== "scroll" && Ce !== je && (Ce = Be);
24907
+ var Ue = Ce === je, Ie = fm(xe, g), pe = fm(Se, g), Oe = Ce === Be ? pe : Ie, Ke = Ue ? pe : Oe;
24908
24908
  f.style.left = "auto", f.style.top = "auto", f.style.right = "0", f.style.bottom = "0";
24909
24909
  var tt = f.getBoundingClientRect();
24910
24910
  f.style.left = S, f.style.top = T, f.style.right = R, f.style.bottom = N, f.style.overflow = D, (x = f.parentElement) === null || x === void 0 || x.removeChild(k);
@@ -24913,43 +24913,43 @@ function hO(t, e, n, r, i, o, a) {
24913
24913
  return;
24914
24914
  var be = F.offset, _e = F.targetOffset, ut = pm(L, be), $e = $(ut, 2), Fe = $e[0], Me = $e[1], At = pm(U, _e), ct = $(At, 2), Ct = ct[0], Bt = ct[1];
24915
24915
  U.x -= Ct, U.y -= Bt;
24916
- var $t = F.points || [], Xt = $($t, 2), rn = Xt[0], en = Xt[1], Vt = mm(en), Tt = mm(rn), mt = wo(U, Vt), ze = wo(L, Tt), Xe = j({}, F), Ne = mt.x - ze.x + Fe, at = mt.y - ze.y + Me, vt = yr(Ne, at), ke = yr(Ne, at, pe), we = wo(U, ["t", "l"]), Ve = wo(L, ["t", "l"]), Ye = wo(U, ["b", "r"]), He = wo(L, ["b", "r"]), B = F.overflow || {}, fe = B.adjustX, Q = B.adjustY, re = B.shiftX, X = B.shiftY, Ce = function(oi) {
24916
+ var $t = F.points || [], Xt = $($t, 2), rn = Xt[0], en = Xt[1], Vt = mm(en), Mt = mm(rn), mt = wo(U, Vt), ze = wo(L, Mt), Xe = j({}, F), Ne = mt.x - ze.x + Fe, at = mt.y - ze.y + Me, vt = yr(Ne, at), ke = yr(Ne, at, pe), we = wo(U, ["t", "l"]), Ve = wo(L, ["t", "l"]), Ye = wo(U, ["b", "r"]), He = wo(L, ["b", "r"]), B = F.overflow || {}, fe = B.adjustX, Q = B.adjustY, re = B.shiftX, X = B.shiftY, ve = function(oi) {
24917
24917
  return typeof oi == "boolean" ? oi : oi >= 0;
24918
24918
  }, Pe, et, Pt, ft;
24919
24919
  Co();
24920
- var It = Ce(Q), Ee = Tt[0] === Vt[0];
24921
- if (It && Tt[0] === "t" && (et > Ke.bottom || p.current.bt)) {
24920
+ var It = ve(Q), Ee = Mt[0] === Vt[0];
24921
+ if (It && Mt[0] === "t" && (et > Ke.bottom || p.current.bt)) {
24922
24922
  var De = at;
24923
24923
  Ee ? De -= me - de : De = we.y - He.y - Me;
24924
24924
  var lt = yr(Ne, De), dt = yr(Ne, De, pe);
24925
24925
  // Of course use larger one
24926
24926
  lt > vt || lt === vt && (!Ue || // Choose recommend one
24927
- dt >= ke) ? (p.current.bt = !0, at = De, Me = -Me, Xe.points = [wi(Tt, 0), wi(Vt, 0)]) : p.current.bt = !1;
24927
+ dt >= ke) ? (p.current.bt = !0, at = De, Me = -Me, Xe.points = [wi(Mt, 0), wi(Vt, 0)]) : p.current.bt = !1;
24928
24928
  }
24929
- if (It && Tt[0] === "b" && (Pe < Ke.top || p.current.tb)) {
24929
+ if (It && Mt[0] === "b" && (Pe < Ke.top || p.current.tb)) {
24930
24930
  var Qt = at;
24931
24931
  Ee ? Qt += me - de : Qt = Ye.y - Ve.y - Me;
24932
24932
  var Un = yr(Ne, Qt), dn = yr(Ne, Qt, pe);
24933
24933
  // Of course use larger one
24934
24934
  Un > vt || Un === vt && (!Ue || // Choose recommend one
24935
- dn >= ke) ? (p.current.tb = !0, at = Qt, Me = -Me, Xe.points = [wi(Tt, 0), wi(Vt, 0)]) : p.current.tb = !1;
24935
+ dn >= ke) ? (p.current.tb = !0, at = Qt, Me = -Me, Xe.points = [wi(Mt, 0), wi(Vt, 0)]) : p.current.tb = !1;
24936
24936
  }
24937
- var _n = Ce(fe), zr = Tt[1] === Vt[1];
24938
- if (_n && Tt[1] === "l" && (ft > Ke.right || p.current.rl)) {
24937
+ var _n = ve(fe), zr = Mt[1] === Vt[1];
24938
+ if (_n && Mt[1] === "l" && (ft > Ke.right || p.current.rl)) {
24939
24939
  var Zn = Ne;
24940
24940
  zr ? Zn -= z - le : Zn = we.x - He.x - Fe;
24941
24941
  var Kn = yr(Zn, at), Br = yr(Zn, at, pe);
24942
24942
  // Of course use larger one
24943
24943
  Kn > vt || Kn === vt && (!Ue || // Choose recommend one
24944
- Br >= ke) ? (p.current.rl = !0, Ne = Zn, Fe = -Fe, Xe.points = [wi(Tt, 1), wi(Vt, 1)]) : p.current.rl = !1;
24944
+ Br >= ke) ? (p.current.rl = !0, Ne = Zn, Fe = -Fe, Xe.points = [wi(Mt, 1), wi(Vt, 1)]) : p.current.rl = !1;
24945
24945
  }
24946
- if (_n && Tt[1] === "r" && (Pt < Ke.left || p.current.lr)) {
24946
+ if (_n && Mt[1] === "r" && (Pt < Ke.left || p.current.lr)) {
24947
24947
  var Vn = Ne;
24948
24948
  zr ? Vn += z - le : Vn = Ye.x - Ve.x - Fe;
24949
24949
  var ri = yr(Vn, at), Fr = yr(Vn, at, pe);
24950
24950
  // Of course use larger one
24951
24951
  ri > vt || ri === vt && (!Ue || // Choose recommend one
24952
- Fr >= ke) ? (p.current.lr = !0, Ne = Vn, Fe = -Fe, Xe.points = [wi(Tt, 1), wi(Vt, 1)]) : p.current.lr = !1;
24952
+ Fr >= ke) ? (p.current.lr = !0, Ne = Vn, Fe = -Fe, Xe.points = [wi(Mt, 1), wi(Vt, 1)]) : p.current.lr = !1;
24953
24953
  }
24954
24954
  Co();
24955
24955
  var zn = re === !0 ? 0 : re;
@@ -25043,9 +25043,9 @@ function mO(t, e, n, r, i, o, a, s) {
25043
25043
  var vO = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
25044
25044
  function CO() {
25045
25045
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yg, e = /* @__PURE__ */ l.forwardRef(function(n, r) {
25046
- var i = n.prefixCls, o = i === void 0 ? "rc-trigger-popup" : i, a = n.children, s = n.action, A = s === void 0 ? "hover" : s, c = n.showAction, u = n.hideAction, d = n.popupVisible, g = n.defaultPopupVisible, p = n.onPopupVisibleChange, v = n.afterPopupVisibleChange, C = n.mouseEnterDelay, m = n.mouseLeaveDelay, y = m === void 0 ? 0.1 : m, w = n.focusDelay, I = n.blurDelay, O = n.mask, x = n.maskClosable, f = x === void 0 ? !0 : x, M = n.getPopupContainer, E = n.forceRender, b = n.autoDestroy, h = n.destroyPopupOnHide, S = n.popup, T = n.popupClassName, R = n.popupStyle, N = n.popupPlacement, D = n.builtinPlacements, F = D === void 0 ? {} : D, k = n.popupAlign, U = n.zIndex, Z = n.stretch, K = n.getPopupClassNameFromAlign, G = n.fresh, L = n.alignPoint, _ = n.onPopupClick, V = n.onPopupAlign, W = n.arrow, Y = n.popupMotion, ee = n.maskMotion, J = n.popupTransitionName, se = n.popupAnimation, ce = n.maskTransitionName, ue = n.maskAnimation, te = n.className, me = n.getTriggerDOMNode, z = St(n, vO), de = b || h || !1, le = l.useState(!1), Se = $(le, 2), xe = Se[0], ve = Se[1];
25046
+ var i = n.prefixCls, o = i === void 0 ? "rc-trigger-popup" : i, a = n.children, s = n.action, A = s === void 0 ? "hover" : s, c = n.showAction, u = n.hideAction, d = n.popupVisible, g = n.defaultPopupVisible, p = n.onPopupVisibleChange, v = n.afterPopupVisibleChange, C = n.mouseEnterDelay, m = n.mouseLeaveDelay, y = m === void 0 ? 0.1 : m, w = n.focusDelay, I = n.blurDelay, O = n.mask, x = n.maskClosable, f = x === void 0 ? !0 : x, M = n.getPopupContainer, E = n.forceRender, b = n.autoDestroy, h = n.destroyPopupOnHide, S = n.popup, T = n.popupClassName, R = n.popupStyle, N = n.popupPlacement, D = n.builtinPlacements, F = D === void 0 ? {} : D, k = n.popupAlign, U = n.zIndex, Z = n.stretch, K = n.getPopupClassNameFromAlign, G = n.fresh, L = n.alignPoint, _ = n.onPopupClick, V = n.onPopupAlign, W = n.arrow, Y = n.popupMotion, ee = n.maskMotion, J = n.popupTransitionName, se = n.popupAnimation, ce = n.maskTransitionName, ue = n.maskAnimation, te = n.className, me = n.getTriggerDOMNode, z = St(n, vO), de = b || h || !1, le = l.useState(!1), Se = $(le, 2), xe = Se[0], Ce = Se[1];
25047
25047
  nn(function() {
25048
- ve(MC());
25048
+ Ce(MC());
25049
25049
  }, []);
25050
25050
  var Be = l.useRef({}), je = l.useContext(um), Ue = l.useMemo(function() {
25051
25051
  return {
@@ -25062,11 +25062,11 @@ function CO() {
25062
25062
  return (Sn == null ? void 0 : Sn.contains(Je)) || ((pt = wA(Sn)) === null || pt === void 0 ? void 0 : pt.host) === Je || Je === Sn || (Ke == null ? void 0 : Ke.contains(Je)) || ((on = wA(Ke)) === null || on === void 0 ? void 0 : on.host) === Je || Je === Ke || Object.values(Be.current).some(function(cn) {
25063
25063
  return (cn == null ? void 0 : cn.contains(Je)) || Je === cn;
25064
25064
  });
25065
- }), $t = gm(o, Y, se, J), Xt = gm(o, ee, ue, ce), rn = l.useState(g || !1), en = $(rn, 2), Vt = en[0], Tt = en[1], mt = d ?? Vt, ze = sn(function(Je) {
25066
- d === void 0 && Tt(Je);
25065
+ }), $t = gm(o, Y, se, J), Xt = gm(o, ee, ue, ce), rn = l.useState(g || !1), en = $(rn, 2), Vt = en[0], Mt = en[1], mt = d ?? Vt, ze = sn(function(Je) {
25066
+ d === void 0 && Mt(Je);
25067
25067
  });
25068
25068
  nn(function() {
25069
- Tt(d || !1);
25069
+ Mt(d || !1);
25070
25070
  }, [d]);
25071
25071
  var Xe = l.useRef(mt);
25072
25072
  Xe.current = mt;
@@ -25090,7 +25090,7 @@ function CO() {
25090
25090
  nn(function(Je) {
25091
25091
  (!Je || mt) && B(!0);
25092
25092
  }, [mt]);
25093
- var fe = l.useState(null), Q = $(fe, 2), re = Q[0], X = Q[1], Ce = l.useState(null), Pe = $(Ce, 2), et = Pe[0], Pt = Pe[1], ft = function(pt) {
25093
+ var fe = l.useState(null), Q = $(fe, 2), re = Q[0], X = Q[1], ve = l.useState(null), Pe = $(ve, 2), et = Pe[0], Pt = Pe[1], ft = function(pt) {
25094
25094
  Pt([pt.clientX, pt.clientY]);
25095
25095
  }, It = hO(mt, Ke, L && et !== null ? et : ut, N, F, k, V), Ee = $(It, 11), De = Ee[0], lt = Ee[1], dt = Ee[2], Qt = Ee[3], Un = Ee[4], dn = Ee[5], _n = Ee[6], zr = Ee[7], Zn = Ee[8], Kn = Ee[9], Br = Ee[10], Vn = dO(xe, A, c, u), ri = $(Vn, 2), Fr = ri[0], zn = ri[1], or = Fr.has("click"), vr = zn.has("click") || zn.has("contextMenu"), Cr = sn(function() {
25096
25096
  He || Br();
@@ -25671,7 +25671,7 @@ function GO(t) {
25671
25671
  function qO(t, e) {
25672
25672
  var n = t.prefixCls, r = n === void 0 ? "rc-overflow" : n, i = t.data, o = i === void 0 ? [] : i, a = t.renderItem, s = t.renderRawItem, A = t.itemKey, c = t.itemWidth, u = c === void 0 ? 10 : c, d = t.ssr, g = t.style, p = t.className, v = t.maxCount, C = t.renderRest, m = t.renderRawRest, y = t.suffix, w = t.component, I = w === void 0 ? "div" : w, O = t.itemComponent, x = t.onVisibleChange, f = St(t, HO), M = d === "full", E = PO(), b = Ca(E, null), h = $(b, 2), S = h[0], T = h[1], R = S || 0, N = Ca(E, /* @__PURE__ */ new Map()), D = $(N, 2), F = D[0], k = D[1], U = Ca(E, 0), Z = $(U, 2), K = Z[0], G = Z[1], L = Ca(E, 0), _ = $(L, 2), V = _[0], W = _[1], Y = Ca(E, 0), ee = $(Y, 2), J = ee[0], se = ee[1], ce = Et(null), ue = $(ce, 2), te = ue[0], me = ue[1], z = Et(null), de = $(z, 2), le = de[0], Se = de[1], xe = l.useMemo(function() {
25673
25673
  return le === null && M ? Number.MAX_SAFE_INTEGER : le || 0;
25674
- }, [le, S]), ve = Et(!1), Be = $(ve, 2), je = Be[0], Ue = Be[1], Ie = "".concat(r, "-item"), pe = Math.max(K, V), Oe = v === PC, Ke = o.length && Oe, tt = v === QC, it = Ke || typeof v == "number" && o.length > v, qe = Or(function() {
25674
+ }, [le, S]), Ce = Et(!1), Be = $(Ce, 2), je = Be[0], Ue = Be[1], Ie = "".concat(r, "-item"), pe = Math.max(K, V), Oe = v === PC, Ke = o.length && Oe, tt = v === QC, it = Ke || typeof v == "number" && o.length > v, qe = Or(function() {
25675
25675
  var ze = o;
25676
25676
  return Ke ? S === null && M ? ze = o : ze = o.slice(0, Math.min(o.length, R / u)) : typeof v == "number" && (ze = o.slice(0, v)), ze;
25677
25677
  }, [o, u, S, v, Ke]), be = Or(function() {
@@ -25768,13 +25768,13 @@ function qO(t, e) {
25768
25768
  className: "".concat(Ie, "-rest"),
25769
25769
  registerSize: At,
25770
25770
  display: Bt
25771
- }, Vt = C || GO, Tt = m ? /* @__PURE__ */ l.createElement(MA.Provider, {
25771
+ }, Vt = C || GO, Mt = m ? /* @__PURE__ */ l.createElement(MA.Provider, {
25772
25772
  value: j(j({}, Xt), en)
25773
25773
  }, m(be)) : /* @__PURE__ */ l.createElement(Da, Le({}, Xt, en), typeof Vt == "function" ? Vt(be) : Vt), mt = /* @__PURE__ */ l.createElement(I, Le({
25774
25774
  className: Ae(!tt && r, p),
25775
25775
  style: g,
25776
25776
  ref: e
25777
- }, f), qe.map(rn), it ? Tt : null, y && /* @__PURE__ */ l.createElement(Da, Le({}, Xt, {
25777
+ }, f), qe.map(rn), it ? Mt : null, y && /* @__PURE__ */ l.createElement(Da, Le({}, Xt, {
25778
25778
  responsive: Oe,
25779
25779
  responsiveDisabled: !Ke,
25780
25780
  order: xe,
@@ -26354,7 +26354,7 @@ function pM(t) {
26354
26354
  var mM = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], vM = ["active"], CM = /* @__PURE__ */ l.forwardRef(function(t, e) {
26355
26355
  var n = t.style, r = t.className, i = t.title, o = t.eventKey, a = t.warnKey, s = t.disabled, A = t.internalPopupClose, c = t.children, u = t.itemIcon, d = t.expandIcon, g = t.popupClassName, p = t.popupOffset, v = t.popupStyle, C = t.onClick, m = t.onMouseEnter, y = t.onMouseLeave, w = t.onTitleClick, I = t.onTitleMouseEnter, O = t.onTitleMouseLeave, x = St(t, mM), f = UC(o), M = l.useContext(Kr), E = M.prefixCls, b = M.mode, h = M.openKeys, S = M.disabled, T = M.overflowDisabled, R = M.activeKey, N = M.selectedKeys, D = M.itemIcon, F = M.expandIcon, k = M.onItemClick, U = M.onOpenChange, Z = M.onActive, K = l.useContext(Eg), G = K._internalRenderSubMenuItem, L = l.useContext(qC), _ = L.isSubPathKey, V = Aa(), W = "".concat(E, "-submenu"), Y = S || s, ee = l.useRef(), J = l.useRef();
26356
26356
  process.env.NODE_ENV !== "production" && a && bt(!1, "SubMenu should not leave undefined `key`.");
26357
- var se = u ?? D, ce = d ?? F, ue = h.includes(o), te = !T && ue, me = _(N, o), z = KC(o, Y, I, O), de = z.active, le = St(z, vM), Se = l.useState(!1), xe = $(Se, 2), ve = xe[0], Be = xe[1], je = function(ct) {
26357
+ var se = u ?? D, ce = d ?? F, ue = h.includes(o), te = !T && ue, me = _(N, o), z = KC(o, Y, I, O), de = z.active, le = St(z, vM), Se = l.useState(!1), xe = $(Se, 2), Ce = xe[0], Be = xe[1], je = function(ct) {
26358
26358
  Y || Be(ct);
26359
26359
  }, Ue = function(ct) {
26360
26360
  je(!0), m == null || m({
@@ -26367,8 +26367,8 @@ var mM = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
26367
26367
  domEvent: ct
26368
26368
  });
26369
26369
  }, pe = l.useMemo(function() {
26370
- return de || (b !== "inline" ? ve || _([R], o) : !1);
26371
- }, [b, de, R, ve, o, _]), Oe = VC(V.length), Ke = function(ct) {
26370
+ return de || (b !== "inline" ? Ce || _([R], o) : !1);
26371
+ }, [b, de, R, Ce, o, _]), Oe = VC(V.length), Ke = function(ct) {
26372
26372
  Y || (w == null || w({
26373
26373
  key: o,
26374
26374
  domEvent: ct
@@ -26543,7 +26543,7 @@ function wm(t, e, n, r, i) {
26543
26543
  return e && (o = Id(e, a, i)), Ig(o, n);
26544
26544
  }
26545
26545
  var SM = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], Vi = [], wM = /* @__PURE__ */ l.forwardRef(function(t, e) {
26546
- var n, r = t, i = r.prefixCls, o = i === void 0 ? "rc-menu" : i, a = r.rootClassName, s = r.style, A = r.className, c = r.tabIndex, u = c === void 0 ? 0 : c, d = r.items, g = r.children, p = r.direction, v = r.id, C = r.mode, m = C === void 0 ? "vertical" : C, y = r.inlineCollapsed, w = r.disabled, I = r.disabledOverflow, O = r.subMenuOpenDelay, x = O === void 0 ? 0.1 : O, f = r.subMenuCloseDelay, M = f === void 0 ? 0.1 : f, E = r.forceSubMenuRender, b = r.defaultOpenKeys, h = r.openKeys, S = r.activeKey, T = r.defaultActiveFirst, R = r.selectable, N = R === void 0 ? !0 : R, D = r.multiple, F = D === void 0 ? !1 : D, k = r.defaultSelectedKeys, U = r.selectedKeys, Z = r.onSelect, K = r.onDeselect, G = r.inlineIndent, L = G === void 0 ? 24 : G, _ = r.motion, V = r.defaultMotions, W = r.triggerSubMenuAction, Y = W === void 0 ? "hover" : W, ee = r.builtinPlacements, J = r.itemIcon, se = r.expandIcon, ce = r.overflowedIndicator, ue = ce === void 0 ? "..." : ce, te = r.overflowedIndicatorPopupClassName, me = r.getPopupContainer, z = r.onClick, de = r.onOpenChange, le = r.onKeyDown, Se = r.openAnimation, xe = r.openTransitionName, ve = r._internalRenderMenuItem, Be = r._internalRenderSubMenuItem, je = r._internalComponents, Ue = St(r, SM), Ie = l.useMemo(function() {
26546
+ var n, r = t, i = r.prefixCls, o = i === void 0 ? "rc-menu" : i, a = r.rootClassName, s = r.style, A = r.className, c = r.tabIndex, u = c === void 0 ? 0 : c, d = r.items, g = r.children, p = r.direction, v = r.id, C = r.mode, m = C === void 0 ? "vertical" : C, y = r.inlineCollapsed, w = r.disabled, I = r.disabledOverflow, O = r.subMenuOpenDelay, x = O === void 0 ? 0.1 : O, f = r.subMenuCloseDelay, M = f === void 0 ? 0.1 : f, E = r.forceSubMenuRender, b = r.defaultOpenKeys, h = r.openKeys, S = r.activeKey, T = r.defaultActiveFirst, R = r.selectable, N = R === void 0 ? !0 : R, D = r.multiple, F = D === void 0 ? !1 : D, k = r.defaultSelectedKeys, U = r.selectedKeys, Z = r.onSelect, K = r.onDeselect, G = r.inlineIndent, L = G === void 0 ? 24 : G, _ = r.motion, V = r.defaultMotions, W = r.triggerSubMenuAction, Y = W === void 0 ? "hover" : W, ee = r.builtinPlacements, J = r.itemIcon, se = r.expandIcon, ce = r.overflowedIndicator, ue = ce === void 0 ? "..." : ce, te = r.overflowedIndicatorPopupClassName, me = r.getPopupContainer, z = r.onClick, de = r.onOpenChange, le = r.onKeyDown, Se = r.openAnimation, xe = r.openTransitionName, Ce = r._internalRenderMenuItem, Be = r._internalRenderSubMenuItem, je = r._internalComponents, Ue = St(r, SM), Ie = l.useMemo(function() {
26547
26547
  return [wm(g, d, Vi, je, o), wm(g, d, Vi, {}, o)];
26548
26548
  }, [g, d, je]), pe = $(Ie, 2), Oe = pe[0], Ke = pe[1], tt = l.useState(!1), it = $(tt, 2), qe = it[0], be = it[1], _e = l.useRef(), ut = nM(v), $e = p === "rtl";
26549
26549
  process.env.NODE_ENV !== "production" && bt(!Se && !xe, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
@@ -26560,7 +26560,7 @@ var SM = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
26560
26560
  wt ? Cl(Dt) : Dt();
26561
26561
  }, Bt = l.useState(At), $t = $(Bt, 2), Xt = $t[0], rn = $t[1], en = l.useRef(!1), Vt = l.useMemo(function() {
26562
26562
  return (m === "inline" || m === "vertical") && y ? ["vertical", y] : [m, !1];
26563
- }, [m, y]), Tt = $(Vt, 2), mt = Tt[0], ze = Tt[1], Xe = mt === "inline", Ne = l.useState(mt), at = $(Ne, 2), vt = at[0], ke = at[1], we = l.useState(ze), Ve = $(we, 2), Ye = Ve[0], He = Ve[1];
26563
+ }, [m, y]), Mt = $(Vt, 2), mt = Mt[0], ze = Mt[1], Xe = mt === "inline", Ne = l.useState(mt), at = $(Ne, 2), vt = at[0], ke = at[1], we = l.useState(ze), Ve = $(we, 2), Ye = Ve[0], He = Ve[1];
26564
26564
  l.useEffect(function() {
26565
26565
  ke(mt), He(ze), en.current && (Xe ? ct(Xt) : Ct(Vi));
26566
26566
  }, [mt, ze]);
@@ -26572,7 +26572,7 @@ var SM = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
26572
26572
  en.current = !1;
26573
26573
  };
26574
26574
  }, []);
26575
- var Ce = eM(), Pe = Ce.registerPath, et = Ce.unregisterPath, Pt = Ce.refreshOverflowKeys, ft = Ce.isSubPathKey, It = Ce.getKeyPath, Ee = Ce.getKeys, De = Ce.getSubPathKeys, lt = l.useMemo(function() {
26575
+ var ve = eM(), Pe = ve.registerPath, et = ve.unregisterPath, Pt = ve.refreshOverflowKeys, ft = ve.isSubPathKey, It = ve.getKeyPath, Ee = ve.getKeys, De = ve.getSubPathKeys, lt = l.useMemo(function() {
26576
26576
  return {
26577
26577
  registerPath: Pe,
26578
26578
  unregisterPath: et
@@ -26650,10 +26650,10 @@ var SM = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
26650
26650
  }, []);
26651
26651
  var Yr = l.useMemo(function() {
26652
26652
  return {
26653
- _internalRenderMenuItem: ve,
26653
+ _internalRenderMenuItem: Ce,
26654
26654
  _internalRenderSubMenuItem: Be
26655
26655
  };
26656
- }, [ve, Be]), ii = vt !== "horizontal" || I ? Oe : (
26656
+ }, [Ce, Be]), ii = vt !== "horizontal" || I ? Oe : (
26657
26657
  // Need wrap for overflow dropdown that do not response for open
26658
26658
  Oe.map(function(Ze, ht) {
26659
26659
  return (
@@ -27390,7 +27390,7 @@ const WM = /* @__PURE__ */ l.forwardRef((t, e) => {
27390
27390
  }, typeof ue == "function" ? ue() : ue), me = k("tooltip", i), z = k(), de = t["data-popover-inject"];
27391
27391
  let le = Y;
27392
27392
  !("open" in t) && !("visible" in t) && J && (le = !1);
27393
- const Se = /* @__PURE__ */ l.isValidElement(c) && !L1(c) ? c : /* @__PURE__ */ l.createElement("span", null, c), xe = Se.props, ve = !xe.className || typeof xe.className == "string" ? Ae(xe.className, o || `${me}-open`) : xe.className, [Be, je, Ue] = k1(me, !de), Ie = $C(me, s), pe = Ie.arrowStyle, Oe = Ae(h, {
27393
+ const Se = /* @__PURE__ */ l.isValidElement(c) && !L1(c) ? c : /* @__PURE__ */ l.createElement("span", null, c), xe = Se.props, Ce = !xe.className || typeof xe.className == "string" ? Ae(xe.className, o || `${me}-open`) : xe.className, [Be, je, Ue] = k1(me, !de), Ie = $C(me, s), pe = Ie.arrowStyle, Oe = Ae(h, {
27394
27394
  [`${me}-rtl`]: U === "rtl"
27395
27395
  }, Ie.className, b, je, Ue, Z, G.root, T == null ? void 0 : T.root), Ke = Ae(G.body, T == null ? void 0 : T.body), [tt, it] = rc("Tooltip", R.zIndex), qe = /* @__PURE__ */ l.createElement(qM, Object.assign({}, R, {
27396
27396
  zIndex: tt,
@@ -27423,7 +27423,7 @@ const WM = /* @__PURE__ */ l.forwardRef((t, e) => {
27423
27423
  },
27424
27424
  destroyTooltipOnHide: !!g
27425
27425
  }), le ? Gr(Se, {
27426
- className: ve
27426
+ className: Ce
27427
27427
  }) : Se);
27428
27428
  return Be(/* @__PURE__ */ l.createElement(nc.Provider, {
27429
27429
  value: it
@@ -29073,11 +29073,11 @@ var Ay = /* @__PURE__ */ l.forwardRef(function(t, e) {
29073
29073
  if (z > 0) {
29074
29074
  var le, Se, xe;
29075
29075
  me.height = N ? (le = p.current[W]) === null || le === void 0 ? void 0 : le.offsetHeight : m == null ? void 0 : m.offsetHeight;
29076
- for (var ve = 0, Be = 0; Be < z; Be++) {
29076
+ for (var Ce = 0, Be = 0; Be < z; Be++) {
29077
29077
  var je;
29078
- ve += ((je = p.current[f[f.length - 1 - Be].key]) === null || je === void 0 ? void 0 : je.offsetHeight) + R;
29078
+ Ce += ((je = p.current[f[f.length - 1 - Be].key]) === null || je === void 0 ? void 0 : je.offsetHeight) + R;
29079
29079
  }
29080
- var Ue = (N ? ve : z * S) * (r.startsWith("top") ? 1 : -1), Ie = !N && m !== null && m !== void 0 && m.offsetWidth && (Se = p.current[W]) !== null && Se !== void 0 && Se.offsetWidth ? ((m == null ? void 0 : m.offsetWidth) - S * 2 * (z < 3 ? z : 3)) / ((xe = p.current[W]) === null || xe === void 0 ? void 0 : xe.offsetWidth) : 1;
29080
+ var Ue = (N ? Ce : z * S) * (r.startsWith("top") ? 1 : -1), Ie = !N && m !== null && m !== void 0 && m.offsetWidth && (Se = p.current[W]) !== null && Se !== void 0 && Se.offsetWidth ? ((m == null ? void 0 : m.offsetWidth) - S * 2 * (z < 3 ? z : 3)) / ((xe = p.current[W]) === null || xe === void 0 ? void 0 : xe.offsetWidth) : 1;
29081
29081
  me.transform = "translate3d(".concat(de, ", ").concat(Ue, "px, 0) scaleX(").concat(Ie, ")");
29082
29082
  } else
29083
29083
  me.transform = "translate3d(".concat(de, ", 0, 0)");
@@ -29986,7 +29986,7 @@ var Um = function(e) {
29986
29986
  d8(function() {
29987
29987
  K(F.current.scrollWidth);
29988
29988
  }, [Y]);
29989
- var J = function(de, le, Se, xe, ve) {
29989
+ var J = function(de, le, Se, xe, Ce) {
29990
29990
  return /* @__PURE__ */ l.createElement("span", {
29991
29991
  title: my(de),
29992
29992
  className: Ae("".concat(W, "-item"), P({}, "".concat(W, "-item-disabled"), Se))
@@ -29995,10 +29995,10 @@ var Um = function(e) {
29995
29995
  }, le), xe && /* @__PURE__ */ l.createElement(Ec, {
29996
29996
  className: "".concat(W, "-item-remove"),
29997
29997
  onMouseDown: Um,
29998
- onClick: ve,
29998
+ onClick: Ce,
29999
29999
  customizeIcon: y
30000
30000
  }, "×"));
30001
- }, se = function(de, le, Se, xe, ve, Be) {
30001
+ }, se = function(de, le, Se, xe, Ce, Be) {
30002
30002
  var je = function(Ie) {
30003
30003
  Um(Ie), M(!o);
30004
30004
  };
@@ -30009,11 +30009,11 @@ var Um = function(e) {
30009
30009
  value: de,
30010
30010
  disabled: Se,
30011
30011
  closable: xe,
30012
- onClose: ve,
30012
+ onClose: Ce,
30013
30013
  isMaxTag: !!Be
30014
30014
  }));
30015
30015
  }, ce = function(de) {
30016
- var le = de.disabled, Se = de.label, xe = de.value, ve = !u && !le, Be = Se;
30016
+ var le = de.disabled, Se = de.label, xe = de.value, Ce = !u && !le, Be = Se;
30017
30017
  if (typeof I == "number" && (typeof Se == "string" || typeof Se == "number")) {
30018
30018
  var je = String(Be);
30019
30019
  je.length > I && (Be = "".concat(je.slice(0, I), "..."));
@@ -30021,7 +30021,7 @@ var Um = function(e) {
30021
30021
  var Ue = function(pe) {
30022
30022
  pe && pe.stopPropagation(), E(de);
30023
30023
  };
30024
- return typeof f == "function" ? se(xe, Be, le, ve, Ue) : J(de, Be, le, ve, Ue);
30024
+ return typeof f == "function" ? se(xe, Be, le, Ce, Ue) : J(de, Be, le, Ce, Ue);
30025
30025
  }, ue = function(de) {
30026
30026
  if (!i.length)
30027
30027
  return null;
@@ -30360,7 +30360,7 @@ function b8(t) {
30360
30360
  var S8 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction", "omitDomProps", "displayValues", "onDisplayValuesChange", "emptyOptions", "notFoundContent", "onClear", "mode", "disabled", "loading", "getInputElement", "getRawInputElement", "open", "defaultOpen", "onDropdownVisibleChange", "activeValue", "onActiveValueChange", "activeDescendantId", "searchValue", "autoClearSearchValue", "onSearch", "onSearchSplit", "tokenSeparators", "allowClear", "prefix", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"], w8 = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"], FA = function(e) {
30361
30361
  return e === "tags" || e === "multiple";
30362
30362
  }, Ey = /* @__PURE__ */ l.forwardRef(function(t, e) {
30363
- var n, r = t.id, i = t.prefixCls, o = t.className, a = t.showSearch, s = t.tagRender, A = t.direction, c = t.omitDomProps, u = t.displayValues, d = t.onDisplayValuesChange, g = t.emptyOptions, p = t.notFoundContent, v = p === void 0 ? "Not Found" : p, C = t.onClear, m = t.mode, y = t.disabled, w = t.loading, I = t.getInputElement, O = t.getRawInputElement, x = t.open, f = t.defaultOpen, M = t.onDropdownVisibleChange, E = t.activeValue, b = t.onActiveValueChange, h = t.activeDescendantId, S = t.searchValue, T = t.autoClearSearchValue, R = t.onSearch, N = t.onSearchSplit, D = t.tokenSeparators, F = t.allowClear, k = t.prefix, U = t.suffixIcon, Z = t.clearIcon, K = t.OptionList, G = t.animation, L = t.transitionName, _ = t.dropdownStyle, V = t.dropdownClassName, W = t.dropdownMatchSelectWidth, Y = t.dropdownRender, ee = t.dropdownAlign, J = t.placement, se = t.builtinPlacements, ce = t.getPopupContainer, ue = t.showAction, te = ue === void 0 ? [] : ue, me = t.onFocus, z = t.onBlur, de = t.onKeyUp, le = t.onKeyDown, Se = t.onMouseDown, xe = St(t, S8), ve = FA(m), Be = (a !== void 0 ? a : ve) || m === "combobox", je = j({}, xe);
30363
+ var n, r = t.id, i = t.prefixCls, o = t.className, a = t.showSearch, s = t.tagRender, A = t.direction, c = t.omitDomProps, u = t.displayValues, d = t.onDisplayValuesChange, g = t.emptyOptions, p = t.notFoundContent, v = p === void 0 ? "Not Found" : p, C = t.onClear, m = t.mode, y = t.disabled, w = t.loading, I = t.getInputElement, O = t.getRawInputElement, x = t.open, f = t.defaultOpen, M = t.onDropdownVisibleChange, E = t.activeValue, b = t.onActiveValueChange, h = t.activeDescendantId, S = t.searchValue, T = t.autoClearSearchValue, R = t.onSearch, N = t.onSearchSplit, D = t.tokenSeparators, F = t.allowClear, k = t.prefix, U = t.suffixIcon, Z = t.clearIcon, K = t.OptionList, G = t.animation, L = t.transitionName, _ = t.dropdownStyle, V = t.dropdownClassName, W = t.dropdownMatchSelectWidth, Y = t.dropdownRender, ee = t.dropdownAlign, J = t.placement, se = t.builtinPlacements, ce = t.getPopupContainer, ue = t.showAction, te = ue === void 0 ? [] : ue, me = t.onFocus, z = t.onBlur, de = t.onKeyUp, le = t.onKeyDown, Se = t.onMouseDown, xe = St(t, S8), Ce = FA(m), Be = (a !== void 0 ? a : Ce) || m === "combobox", je = j({}, xe);
30364
30364
  w8.forEach(function(xt) {
30365
30365
  delete je[xt];
30366
30366
  }), c == null || c.forEach(function(xt) {
@@ -30393,10 +30393,10 @@ var S8 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
30393
30393
  nn(function() {
30394
30394
  Vt(!0);
30395
30395
  }, []);
30396
- var Tt = Qn(!1, {
30396
+ var Mt = Qn(!1, {
30397
30397
  defaultValue: f,
30398
30398
  value: x
30399
- }), mt = $(Tt, 2), ze = mt[0], Xe = mt[1], Ne = en ? ze : !1, at = !v && g;
30399
+ }), mt = $(Mt, 2), ze = mt[0], Xe = mt[1], Ne = en ? ze : !1, at = !v && g;
30400
30400
  (y || at && Ne && m === "combobox") && (Ne = !1);
30401
30401
  var vt = at ? !1 : Ne, ke = l.useCallback(function(xt) {
30402
30402
  var Ze = xt !== void 0 ? xt : !Ne;
@@ -30408,7 +30408,7 @@ var S8 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
30408
30408
  `].includes(xt);
30409
30409
  });
30410
30410
  }, [D]), Ve = l.useContext(kg) || {}, Ye = Ve.maxCount, He = Ve.rawValues, B = function(Ze, ht, wt) {
30411
- if (!(ve && Rd(Ye) && (He == null ? void 0 : He.size) >= Ye)) {
30411
+ if (!(Ce && Rd(Ye) && (He == null ? void 0 : He.size) >= Ye)) {
30412
30412
  var Dt = !0, kt = Ze;
30413
30413
  b == null || b(null);
30414
30414
  var Rn = E8(Ze, D, Rd(Ye) ? Ye - He.size : void 0), On = wt ? null : Rn;
@@ -30422,13 +30422,13 @@ var S8 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
30422
30422
  });
30423
30423
  };
30424
30424
  l.useEffect(function() {
30425
- !Ne && !ve && m !== "combobox" && B("", !1, !1);
30425
+ !Ne && !Ce && m !== "combobox" && B("", !1, !1);
30426
30426
  }, [Ne]), l.useEffect(function() {
30427
30427
  ze && y && Xe(!1), y && !_e.current && Me(!1);
30428
30428
  }, [y]);
30429
- var Q = py(), re = $(Q, 2), X = re[0], Ce = re[1], Pe = l.useRef(!1), et = function(Ze) {
30429
+ var Q = py(), re = $(Q, 2), X = re[0], ve = re[1], Pe = l.useRef(!1), et = function(Ze) {
30430
30430
  var ht = X(), wt = Ze.key, Dt = wt === "Enter";
30431
- if (Dt && (m !== "combobox" && Ze.preventDefault(), Ne || ke(!0)), Ce(!!ct), wt === "Backspace" && !ht && ve && !ct && u.length) {
30431
+ if (Dt && (m !== "combobox" && Ze.preventDefault(), Ne || ke(!0)), ve(!!ct), wt === "Backspace" && !ht && Ce && !ct && u.length) {
30432
30432
  for (var kt = Re(u), Rn = null, On = kt.length - 1; On >= 0; On -= 1) {
30433
30433
  var Xn = kt[On];
30434
30434
  if (!Xn.disabled) {
@@ -30517,10 +30517,10 @@ var S8 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
30517
30517
  triggerOpen: vt,
30518
30518
  id: r,
30519
30519
  showSearch: Be,
30520
- multiple: ve,
30520
+ multiple: Ce,
30521
30521
  toggleOpen: ke
30522
30522
  });
30523
- }, [t, v, vt, Ne, r, Be, ve, ke]), Br = !!U || w, Vn;
30523
+ }, [t, v, vt, Ne, r, Be, Ce, ke]), Br = !!U || w, Vn;
30524
30524
  Br && (Vn = /* @__PURE__ */ l.createElement(Ec, {
30525
30525
  className: Ae("".concat(i, "-arrow"), P({}, "".concat(i, "-arrow-loading"), w)),
30526
30526
  customizeIcon: U,
@@ -30540,7 +30540,7 @@ var S8 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
30540
30540
  }), B("", !1, !1);
30541
30541
  }, Fr = e8(i, ri, u, F, Z, y, ct, m), zn = Fr.allowClear, or = Fr.clearIcon, vr = /* @__PURE__ */ l.createElement(K, {
30542
30542
  ref: be
30543
- }), Cr = Ae(i, o, P(P(P(P(P(P(P(P(P(P({}, "".concat(i, "-focused"), Fe), "".concat(i, "-multiple"), ve), "".concat(i, "-single"), !ve), "".concat(i, "-allow-clear"), F), "".concat(i, "-show-arrow"), Br), "".concat(i, "-disabled"), y), "".concat(i, "-loading"), w), "".concat(i, "-open"), Ne), "".concat(i, "-customize-input"), Ct), "".concat(i, "-show-search"), Be)), Yr = /* @__PURE__ */ l.createElement(Cy, {
30543
+ }), Cr = Ae(i, o, P(P(P(P(P(P(P(P(P(P({}, "".concat(i, "-focused"), Fe), "".concat(i, "-multiple"), Ce), "".concat(i, "-single"), !Ce), "".concat(i, "-allow-clear"), F), "".concat(i, "-show-arrow"), Br), "".concat(i, "-disabled"), y), "".concat(i, "-loading"), w), "".concat(i, "-open"), Ne), "".concat(i, "-customize-input"), Ct), "".concat(i, "-show-search"), Be)), Yr = /* @__PURE__ */ l.createElement(Cy, {
30544
30544
  ref: it,
30545
30545
  disabled: y,
30546
30546
  prefixCls: i,
@@ -31040,11 +31040,11 @@ var Td = /* @__PURE__ */ l.forwardRef(function(t, e) {
31040
31040
  ee.current = G, l.useEffect(function() {
31041
31041
  if (y) {
31042
31042
  var ue, te = function(de) {
31043
- var le = V.current, Se = le.dragging, xe = le.pageY, ve = le.startTop;
31043
+ var le = V.current, Se = le.dragging, xe = le.pageY, Ce = le.startTop;
31044
31044
  Zt.cancel(ue);
31045
31045
  var Be = T.current.getBoundingClientRect(), je = d / (c ? Be.width : Be.height);
31046
31046
  if (Se) {
31047
- var Ue = (Md(de, c) - xe) * je, Ie = ve;
31047
+ var Ue = (Md(de, c) - xe) * je, Ie = Ce;
31048
31048
  !S && c ? Ie -= Ue : Ie += Ue;
31049
31049
  var pe = Y.current, Oe = ee.current, Ke = Oe ? Ie / Oe : 0, tt = Math.ceil(Ke * pe);
31050
31050
  tt = Math.max(tt, 0), tt = Math.min(tt, pe), ue = Zt(function() {
@@ -31131,7 +31131,7 @@ function U8(t, e) {
31131
31131
  return Object.values(F.maps).reduce(function(Ee, De) {
31132
31132
  return Ee + De;
31133
31133
  }, 0);
31134
- }, [F.id, F.maps]), K = U && u && (Math.max(a * u.length, Z) > o || !!C), G = v === "rtl", L = Ae(r, P({}, "".concat(r, "-rtl"), G), i), _ = u || j8, V = Te(), W = Te(), Y = Te(), ee = Et(0), J = $(ee, 2), se = J[0], ce = J[1], ue = Et(0), te = $(ue, 2), me = te[0], z = te[1], de = Et(!1), le = $(de, 2), Se = le[0], xe = le[1], ve = function() {
31134
+ }, [F.id, F.maps]), K = U && u && (Math.max(a * u.length, Z) > o || !!C), G = v === "rtl", L = Ae(r, P({}, "".concat(r, "-rtl"), G), i), _ = u || j8, V = Te(), W = Te(), Y = Te(), ee = Et(0), J = $(ee, 2), se = J[0], ce = J[1], ue = Et(0), te = $(ue, 2), me = te[0], z = te[1], de = Et(!1), le = $(de, 2), Se = le[0], xe = le[1], Ce = function() {
31135
31135
  xe(!0);
31136
31136
  }, Be = function() {
31137
31137
  xe(!1);
@@ -31213,7 +31213,7 @@ function U8(t, e) {
31213
31213
  var De = Ee;
31214
31214
  return Number.isNaN(en.current) || (De = Math.min(De, en.current)), De = Math.max(De, 0), De;
31215
31215
  }
31216
- var Tt = se <= 0, mt = se >= rn, ze = me <= 0, Xe = me >= C, Ne = Sy(Tt, mt, ze, Xe), at = function() {
31216
+ var Mt = se <= 0, mt = se >= rn, ze = me <= 0, Xe = me >= C, Ne = Sy(Mt, mt, ze, Xe), at = function() {
31217
31217
  return {
31218
31218
  x: G ? -me : me,
31219
31219
  y: se
@@ -31247,7 +31247,7 @@ function U8(t, e) {
31247
31247
  var dt = lt + Ee;
31248
31248
  return dt;
31249
31249
  });
31250
- }), B = M8(U, Tt, mt, ze, Xe, !!C, He), fe = $(B, 2), Q = fe[0], re = fe[1];
31250
+ }), B = M8(U, Mt, mt, ze, Xe, !!C, He), fe = $(B, 2), Q = fe[0], re = fe[1];
31251
31251
  B8(U, V, function(Ee, De, lt, dt) {
31252
31252
  var Qt = dt;
31253
31253
  return Ne(Ee, De, lt) ? !1 : !Qt || !Qt._virtualHandled ? (Qt && (Qt._virtualHandled = !0), Q({
@@ -31262,7 +31262,7 @@ function U8(t, e) {
31262
31262
  });
31263
31263
  }), nn(function() {
31264
31264
  function Ee(lt) {
31265
- var dt = Tt && lt.detail < 0, Qt = mt && lt.detail > 0;
31265
+ var dt = Mt && lt.detail < 0, Qt = mt && lt.detail > 0;
31266
31266
  U && !dt && !Qt && lt.preventDefault();
31267
31267
  }
31268
31268
  var De = V.current;
@@ -31275,7 +31275,7 @@ function U8(t, e) {
31275
31275
  }), function() {
31276
31276
  De.removeEventListener("wheel", Q), De.removeEventListener("DOMMouseScroll", re), De.removeEventListener("MozMousePixelScroll", Ee);
31277
31277
  };
31278
- }, [U, Tt, mt]), nn(function() {
31278
+ }, [U, Mt, mt]), nn(function() {
31279
31279
  if (C) {
31280
31280
  var Ee = Ye(me);
31281
31281
  z(Ee), ke({
@@ -31286,7 +31286,7 @@ function U8(t, e) {
31286
31286
  var X = function() {
31287
31287
  var De, lt;
31288
31288
  (De = Ct.current) === null || De === void 0 || De.delayHidden(), (lt = Bt.current) === null || lt === void 0 || lt.delayHidden();
31289
- }, Ce = k8(V, _, F, a, S, function() {
31289
+ }, ve = k8(V, _, F, a, S, function() {
31290
31290
  return D(!0);
31291
31291
  }, Ue, X);
31292
31292
  l.useImperativeHandle(e, function() {
@@ -31297,7 +31297,7 @@ function U8(t, e) {
31297
31297
  function lt(dt) {
31298
31298
  return dt && rt(dt) === "object" && ("left" in dt || "top" in dt);
31299
31299
  }
31300
- lt(De) ? (De.left !== void 0 && z(Ye(De.left)), Ce(De.top)) : Ce(De);
31300
+ lt(De) ? (De.left !== void 0 && z(Ye(De.left)), ve(De.top)) : ve(De);
31301
31301
  }
31302
31302
  };
31303
31303
  }), nn(function() {
@@ -31349,7 +31349,7 @@ function U8(t, e) {
31349
31349
  scrollRange: qe,
31350
31350
  rtl: G,
31351
31351
  onScroll: we,
31352
- onStartMove: ve,
31352
+ onStartMove: Ce,
31353
31353
  onStopMove: Be,
31354
31354
  spinSize: Xt,
31355
31355
  containerSize: Me.height,
@@ -31363,7 +31363,7 @@ function U8(t, e) {
31363
31363
  scrollRange: C,
31364
31364
  rtl: G,
31365
31365
  onScroll: we,
31366
- onStartMove: ve,
31366
+ onStartMove: Ce,
31367
31367
  onStopMove: Be,
31368
31368
  spinSize: $t,
31369
31369
  containerSize: Me.width,
@@ -31400,8 +31400,8 @@ var q8 = function(e, n) {
31400
31400
  return A === "combobox" ? !1 : O.has(ue);
31401
31401
  }, [A, Re(O).toString(), O.size]), U = function(te) {
31402
31402
  for (var me = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, z = T.length, de = 0; de < z; de += 1) {
31403
- var le = (te + de * me + z) % z, Se = T[le] || {}, xe = Se.group, ve = Se.data;
31404
- if (!xe && !(ve != null && ve.disabled) && (k(ve.value) || !N))
31403
+ var le = (te + de * me + z) % z, Se = T[le] || {}, xe = Se.group, Ce = Se.data;
31404
+ if (!xe && !(Ce != null && Ce.disabled) && (k(Ce.value) || !N))
31405
31405
  return le;
31406
31406
  }
31407
31407
  return -1;
@@ -31539,7 +31539,7 @@ var q8 = function(e, n) {
31539
31539
  }, function(ue, te) {
31540
31540
  var me = ue.group, z = ue.groupOption, de = ue.data, le = ue.label, Se = ue.value, xe = de.key;
31541
31541
  if (me) {
31542
- var ve, Be = (ve = de.title) !== null && ve !== void 0 ? ve : Ym(le) ? le.toString() : void 0;
31542
+ var Ce, Be = (Ce = de.title) !== null && Ce !== void 0 ? Ce : Ym(le) ? le.toString() : void 0;
31543
31543
  return /* @__PURE__ */ l.createElement("div", {
31544
31544
  className: Ae(S, "".concat(S, "-group"), de.className),
31545
31545
  title: Be
@@ -31776,8 +31776,8 @@ var xy = /* @__PURE__ */ l.forwardRef(function(t, e) {
31776
31776
  }
31777
31777
  var X = me.get(Ye);
31778
31778
  if (X) {
31779
- var Ce;
31780
- if (He === void 0 && (He = X == null ? void 0 : X[O || ee.label]), B === void 0 && (B = (Ce = X == null ? void 0 : X.key) !== null && Ce !== void 0 ? Ce : Ye), fe = X == null ? void 0 : X.disabled, Q = X == null ? void 0 : X.title, process.env.NODE_ENV !== "production" && !O) {
31779
+ var ve;
31780
+ if (He === void 0 && (He = X == null ? void 0 : X[O || ee.label]), B === void 0 && (B = (ve = X == null ? void 0 : X.key) !== null && ve !== void 0 ? ve : Ye), fe = X == null ? void 0 : X.disabled, Q = X == null ? void 0 : X.title, process.env.NODE_ENV !== "production" && !O) {
31781
31781
  var Pe = X == null ? void 0 : X[ee.label];
31782
31782
  Pe !== void 0 && !/* @__PURE__ */ l.isValidElement(Pe) && !/* @__PURE__ */ l.isValidElement(He) && Pe !== He && bt(!1, "`label` of `value` is not same as `label` in Select options.");
31783
31783
  }
@@ -31792,10 +31792,10 @@ var xy = /* @__PURE__ */ l.forwardRef(function(t, e) {
31792
31792
  });
31793
31793
  }, [ee, O, me]), Se = Qn(U, {
31794
31794
  value: k
31795
- }), xe = $(Se, 2), ve = xe[0], Be = xe[1], je = l.useMemo(function() {
31796
- var ke, we = V && ve === null ? [] : ve, Ve = le(we);
31795
+ }), xe = $(Se, 2), Ce = xe[0], Be = xe[1], je = l.useMemo(function() {
31796
+ var ke, we = V && Ce === null ? [] : Ce, Ve = le(we);
31797
31797
  return r === "combobox" && u8((ke = Ve[0]) === null || ke === void 0 ? void 0 : ke.value) ? [] : Ve;
31798
- }, [ve, le, r, V]), Ue = Z8(je, me), Ie = $(Ue, 2), pe = Ie[0], Oe = Ie[1], Ke = l.useMemo(function() {
31798
+ }, [Ce, le, r, V]), Ue = Z8(je, me), Ie = $(Ue, 2), pe = Ie[0], Oe = Ie[1], Ke = l.useMemo(function() {
31799
31799
  if (!r && pe.length === 1) {
31800
31800
  var ke = pe[0];
31801
31801
  if (ke.value === null && (ke.label === null || ke.label === void 0))
@@ -31876,7 +31876,7 @@ var xy = /* @__PURE__ */ l.forwardRef(function(t, e) {
31876
31876
  V ? He : He[0]
31877
31877
  );
31878
31878
  }
31879
- }, At = l.useState(null), ct = $(At, 2), Ct = ct[0], Bt = ct[1], $t = l.useState(0), Xt = $($t, 2), rn = Xt[0], en = Xt[1], Vt = E !== void 0 ? E : r !== "combobox", Tt = l.useCallback(function(ke, we) {
31879
+ }, At = l.useState(null), ct = $(At, 2), Ct = ct[0], Bt = ct[1], $t = l.useState(0), Xt = $($t, 2), rn = Xt[0], en = Xt[1], Vt = E !== void 0 ? E : r !== "combobox", Mt = l.useCallback(function(ke, we) {
31880
31880
  var Ve = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Ye = Ve.source, He = Ye === void 0 ? "keyboard" : Ye;
31881
31881
  en(we), a && r === "combobox" && ke !== null && He === "keyboard" && Bt(String(ke));
31882
31882
  }, [a, r]), mt = function(we, Ve, Ye) {
@@ -31892,7 +31892,7 @@ var xy = /* @__PURE__ */ l.forwardRef(function(t, e) {
31892
31892
  var B = He(), fe = $(B, 2), Q = fe[0], re = fe[1];
31893
31893
  p(Q, re);
31894
31894
  } else if (!Ve && v && Ye !== "clear") {
31895
- var X = He(), Ce = $(X, 2), Pe = Ce[0], et = Ce[1];
31895
+ var X = He(), ve = $(X, 2), Pe = ve[0], et = ve[1];
31896
31896
  v(Pe, et);
31897
31897
  }
31898
31898
  }, ze = Jm(function(ke, we) {
@@ -31932,7 +31932,7 @@ var xy = /* @__PURE__ */ l.forwardRef(function(t, e) {
31932
31932
  var ke = h !== !1 && m !== !1;
31933
31933
  return j(j({}, te), {}, {
31934
31934
  flattenOptions: Fe,
31935
- onActiveValue: Tt,
31935
+ onActiveValue: Mt,
31936
31936
  defaultActiveFirstOption: Vt,
31937
31937
  onSelect: ze,
31938
31938
  menuItemSelectedIcon: b,
@@ -31946,7 +31946,7 @@ var xy = /* @__PURE__ */ l.forwardRef(function(t, e) {
31946
31946
  maxCount: G,
31947
31947
  optionRender: f
31948
31948
  });
31949
- }, [G, te, Fe, Tt, Vt, ze, b, tt, ee, h, m, S, R, D, W, f]);
31949
+ }, [G, te, Fe, Mt, Vt, ze, b, tt, ee, h, m, S, R, D, W, f]);
31950
31950
  return process.env.NODE_ENV !== "production" && ($8(t), eN(de, ee)), /* @__PURE__ */ l.createElement(kg.Provider, {
31951
31951
  value: vt
31952
31952
  }, /* @__PURE__ */ l.createElement(Ey, Le({}, L, {
@@ -32306,11 +32306,11 @@ const By = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Fy = (t, e) => {
32306
32306
  if (Ct !== "combobox")
32307
32307
  return Ct === By ? "combobox" : Ct;
32308
32308
  }, [t.mode]), le = de === "multiple" || de === "tags", Se = gN(t.suffixIcon, t.showArrow), xe = (n = I ?? w) !== null && n !== void 0 ? n : Z, {
32309
- status: ve,
32309
+ status: Ce,
32310
32310
  hasFeedback: Be,
32311
32311
  isFormItemInput: je,
32312
32312
  feedbackIcon: Ue
32313
- } = l.useContext(Zr), Ie = Ac(ve, m);
32313
+ } = l.useContext(Zr), Ie = Ac(Ce, m);
32314
32314
  let pe;
32315
32315
  C !== void 0 ? pe = C : de === "combobox" ? pe = null : pe = (F == null ? void 0 : F("Select")) || /* @__PURE__ */ l.createElement(oN, {
32316
32316
  componentName: "Select"
@@ -32887,7 +32887,7 @@ const HN = {
32887
32887
  空闲: 1,
32888
32888
  离线: 0,
32889
32889
  未注册: 4
32890
- }, ZN = nv(() => import("./ConsultModel-Drj_G5X0.mjs")), KN = nv(() => import("./TransferModel-DnkmhYXF.mjs")), ml = An.div`
32890
+ }, ZN = nv(() => import("./ConsultModel-CcMYAtNh.mjs")), KN = nv(() => import("./TransferModel-D-41l7tw.mjs")), ml = An.div`
32891
32891
  width: 25px;
32892
32892
  height: 25px;
32893
32893
  background: ${({
@@ -32919,15 +32919,15 @@ const HN = {
32919
32919
  idle: m,
32920
32920
  unavailable: y,
32921
32921
  selectOutNumberColor: w
32922
- } = e || {}, I = Te(), O = Te(), [x, f] = Et(new Audio(NN)), M = Te(), E = Te(), [b, h] = Et(), [S, T] = Et(), [R, N] = Et(!1), [D, F] = Et((/* @__PURE__ */ new Date()).getTime()), [k, U] = Et(), [Z, K] = Et(), [G, L] = Et([]), [_, V] = Et([]), [W, Y] = Et(""), [ee, J] = Et(!1), [se, ce] = Et([]), [ue, te] = Et(""), [me, z] = Et(""), [de, le] = Et(!1), [Se, xe] = Et(!1), [ve, Be] = Et(), [je, Ue] = Et((/* @__PURE__ */ new Date()).getTime()), [Ie, pe] = Et(!0), [Oe, Ke] = Et(""), tt = (Q) => {
32922
+ } = e || {}, I = Te(), O = Te(), [x, f] = Et(new Audio(NN)), M = Te(), E = Te(), [b, h] = Et(), [S, T] = Et(), [R, N] = Et(!1), [D, F] = Et((/* @__PURE__ */ new Date()).getTime()), [k, U] = Et(), [Z, K] = Et(), [G, L] = Et([]), [_, V] = Et([]), [W, Y] = Et(""), [ee, J] = Et(!1), [se, ce] = Et([]), [ue, te] = Et(""), [me, z] = Et(""), [de, le] = Et(!1), [Se, xe] = Et(!1), [Ce, Be] = Et(), [je, Ue] = Et((/* @__PURE__ */ new Date()).getTime()), [Ie, pe] = Et(!0), [Oe, Ke] = Et(""), tt = (Q) => {
32923
32923
  switch (Q) {
32924
- case Mt.IDLE:
32924
+ case Nt.IDLE:
32925
32925
  return m || "#1D92E9";
32926
- case Mt.BUSY:
32926
+ case Nt.BUSY:
32927
32927
  return C || "#F5212D";
32928
- case Mt.UNREGISTERED:
32928
+ case Nt.UNREGISTERED:
32929
32929
  return y || "#faad14";
32930
- case Mt.OFFLINE:
32930
+ case Nt.OFFLINE:
32931
32931
  return y || "#8c8c8c";
32932
32932
  default:
32933
32933
  return "#1D92E9";
@@ -33001,7 +33001,7 @@ const HN = {
33001
33001
  var Q, re;
33002
33002
  (Q = I.current) == null || Q.on(Ge.EVENT_ALL, ({
33003
33003
  event: X,
33004
- data: Ce
33004
+ data: ve
33005
33005
  }) => {
33006
33006
  switch (X) {
33007
33007
  // 播放等待音
@@ -33014,16 +33014,18 @@ const HN = {
33014
33014
  case ie.OUT_INCOMING_CALL:
33015
33015
  case ie.INTERNAL_OUT_INCOMING_CALL: {
33016
33016
  c == null || c(X, {
33017
- customer_phone: Ce.customer_phone,
33018
- session_id: Ce.session_id
33017
+ customer_phone: ve.customer_phone,
33018
+ session_id: ve.session_id,
33019
+ trace_id: ve.trace_id
33019
33020
  });
33020
33021
  return;
33021
33022
  }
33022
33023
  case ie.PREVIEW_OUT_INCOMING_CALL: {
33023
33024
  c == null || c(ie.PREVIEW_OUT_INCOMING_CALL, {
33024
- customer_phone: Ce.customer_phone,
33025
- session_id: Ce.session_id,
33026
- preview_task_id: Ce.preview_task_id
33025
+ customer_phone: ve.customer_phone,
33026
+ session_id: ve.session_id,
33027
+ preview_task_id: ve.preview_task_id,
33028
+ trace_id: ve.trace_id
33027
33029
  });
33028
33030
  return;
33029
33031
  }
@@ -33036,7 +33038,7 @@ const HN = {
33036
33038
  case ie.OUT_RINGING:
33037
33039
  case ie.CONSULT_OFF_HOOK: {
33038
33040
  X === ie.OUT_OFF_ANSWER && (c == null || c(X, {
33039
- session_id: Ce.session_id
33041
+ session_id: ve.session_id
33040
33042
  })), be(x);
33041
33043
  return;
33042
33044
  }
@@ -33048,17 +33050,17 @@ const HN = {
33048
33050
  case ie.INCOMING_CALL_IN:
33049
33051
  case ie.INCOMING_CALL: {
33050
33052
  Be("in"), be(E.current), (X === ie.CONSULT_INCOMING || X === ie.TRANSFER_INCOMING_CALL) && (c == null || c(X, {
33051
- agent_no: Ce.agent_no,
33052
- agent_name: Ce.agent_name,
33053
- session_id: Ce.session_id
33053
+ agent_no: ve.agent_no,
33054
+ agent_name: ve.agent_name,
33055
+ session_id: ve.session_id
33054
33056
  })), X === ie.INCOMING_CALL ? c == null || c(ie.INCOMING_CALL, {
33055
- customer_phone: Ce.customer_phone,
33056
- session_id: Ce.session_id
33057
+ customer_phone: ve.customer_phone,
33058
+ session_id: ve.session_id
33057
33059
  }) : X === ie.INCOMING_CALL_IN ? c == null || c(ie.INCOMING_CALL_IN, {
33058
- customer_phone: Ce.customer_phone,
33059
- session_id: Ce.session_id
33060
+ customer_phone: ve.customer_phone,
33061
+ session_id: ve.session_id
33060
33062
  }) : X === ie.LISTEN_INCOMING_CALL && (c == null || c(ie.LISTEN_INCOMING_CALL, {
33061
- session_id: Ce.session_id
33063
+ session_id: ve.session_id
33062
33064
  }));
33063
33065
  const {
33064
33066
  soft_device_ring_switch: Pe
@@ -33070,8 +33072,8 @@ const HN = {
33070
33072
  // 预测试外呼来电
33071
33073
  case ie.PREDICT_INCOMING_CALL: {
33072
33074
  Be("out"), be(E.current), X === ie.PREDICT_INCOMING_CALL && (c == null || c(ie.PREDICT_INCOMING_CALL, {
33073
- customer_phone: Ce.customer_phone,
33074
- session_id: Ce.session_id
33075
+ customer_phone: ve.customer_phone,
33076
+ session_id: ve.session_id
33075
33077
  }));
33076
33078
  const {
33077
33079
  soft_device_ring_switch: Pe
@@ -33082,8 +33084,8 @@ const HN = {
33082
33084
  }
33083
33085
  case ie.DUAL_CALL_INCOMING_CALL: {
33084
33086
  Be("out"), be(E.current), X === ie.DUAL_CALL_INCOMING_CALL && (c == null || c(ie.DUAL_CALL_INCOMING_CALL, {
33085
- customer_phone: Ce.customer_phone,
33086
- session_id: Ce.session_id
33087
+ customer_phone: ve.customer_phone,
33088
+ session_id: ve.session_id
33087
33089
  }));
33088
33090
  const {
33089
33091
  soft_device_ring_switch: Pe
@@ -33099,10 +33101,10 @@ const HN = {
33099
33101
  case ie.INCOMING_CALL_IN_OFF_HOOK:
33100
33102
  case ie.INCOMING_CALL_OFF_HOOK: {
33101
33103
  X === ie.LISTEN_INCOMING_CALL_OFF_HOOK ? c == null || c(X, {
33102
- session_id: Ce.session_id,
33103
- monitored_agent_no: Ce.monitored_agent_no
33104
+ session_id: ve.session_id,
33105
+ monitored_agent_no: ve.monitored_agent_no
33104
33106
  }) : c == null || c(X, {
33105
- session_id: Ce.session_id
33107
+ session_id: ve.session_id
33106
33108
  }), be(M.current);
33107
33109
  return;
33108
33110
  }
@@ -33116,11 +33118,11 @@ const HN = {
33116
33118
  case ie.OTHER_SIDE_CONSULT_HANGUP:
33117
33119
  case ie.INCOMING_CALL_END: {
33118
33120
  if (c == null || c(X, {
33119
- session_id: Ce.session_id
33121
+ session_id: ve.session_id
33120
33122
  }), be(M.current), be(x), Be(void 0), le(!1), xe(!1), X === ie.OUT_HANGUP || X === ie.INCOMING_CALL_END) {
33121
33123
  const {
33122
33124
  isAgentHangup: Pe
33123
- } = Ce, {
33125
+ } = ve, {
33124
33126
  agent_hangup_ring_switch: et
33125
33127
  } = I.current.getAgentData();
33126
33128
  !Pe && et && qe(E.current, !1);
@@ -33129,22 +33131,22 @@ const HN = {
33129
33131
  }
33130
33132
  case ie.REJECT:
33131
33133
  c == null || c(X, {
33132
- session_id: Ce.session_id
33134
+ session_id: ve.session_id
33133
33135
  });
33134
33136
  return;
33135
33137
  case ie.CUSTOMER_INFO:
33136
- c(X, Ce);
33138
+ c(X, ve);
33137
33139
  return;
33138
33140
  default:
33139
33141
  return null;
33140
33142
  }
33141
33143
  }), (re = I.current) == null || re.on(ie.AGENT_STATE, (X) => {
33142
- if (K(X.state_name), F((/* @__PURE__ */ new Date()).getTime()), c == null || c(ie.AGENT_STATE, X), X.state === Mt.UNREGISTERED) {
33144
+ if (K(X.state_name), F((/* @__PURE__ */ new Date()).getTime()), c == null || c(ie.AGENT_STATE, X), X.state === Nt.UNREGISTERED) {
33143
33145
  Rt.warning("当前已掉线,自动重连中,请检查网络"), be(x);
33144
33146
  const {
33145
- soft_device_ring_switch: Ce
33147
+ soft_device_ring_switch: ve
33146
33148
  } = I.current.getAgentData();
33147
- if (!Ce) return;
33149
+ if (!ve) return;
33148
33150
  be(M.current);
33149
33151
  }
33150
33152
  }).on(ie.CALL_PROGRESS, (X) => {
@@ -33156,14 +33158,14 @@ const HN = {
33156
33158
  }).on(Ge.AGENT_INIT_STATUS, (X) => {
33157
33159
  if (X) {
33158
33160
  const {
33159
- default_device: Ce,
33161
+ default_device: ve,
33160
33162
  out_display_select_switch: Pe,
33161
33163
  out_display_data: et,
33162
33164
  stateObject: {
33163
33165
  state_name: Pt
33164
33166
  }
33165
33167
  } = I.current.getAgentData();
33166
- J(Pe === 1), Pe === 1 && ce((et || "").split("#")), U(Ce), K(Pt), Fe();
33168
+ J(Pe === 1), Pe === 1 && ce((et || "").split("#")), U(ve), K(Pt), Fe();
33167
33169
  }
33168
33170
  }).on(Ge.SELECT_EXTERNAL_NUMBER, (X) => {
33169
33171
  te(X);
@@ -33199,20 +33201,20 @@ const HN = {
33199
33201
  c == null || c(ie.STOP_EAR_SPEECH_SUCCESS), Rt.success("停止耳语");
33200
33202
  }).on(ie.CALL_FORCE_INSERT_SUCCESS, ({
33201
33203
  monitored_agent_no: X,
33202
- monitor_agent_no: Ce
33204
+ monitor_agent_no: ve
33203
33205
  }) => {
33204
33206
  c == null || c(ie.CALL_FORCE_INSERT_SUCCESS, {
33205
33207
  monitored_agent_no: X,
33206
- monitor_agent_no: Ce
33208
+ monitor_agent_no: ve
33207
33209
  }), Rt.success("强插成功");
33208
33210
  }).on(ie.CALL_FORCE_INSERT_SUCCESS_LISTENER, ({
33209
33211
  monitored_agent_no: X,
33210
- monitor_agent_no: Ce
33212
+ monitor_agent_no: ve
33211
33213
  }) => {
33212
33214
  c == null || c(ie.CALL_FORCE_INSERT_SUCCESS_LISTENER, {
33213
33215
  monitored_agent_no: X,
33214
- monitor_agent_no: Ce
33215
- }), Rt.success(`${Ce}强插`);
33216
+ monitor_agent_no: ve
33217
+ }), Rt.success(`${ve}强插`);
33216
33218
  }).on(Ge.SIGN_IN_SWITCH_DEVICE, (X) => {
33217
33219
  c == null || c(Ge.SIGN_IN_SWITCH_DEVICE), Rt.success(`已被切换${X.answer_device === 2 ? "手机模式" : "SIP 话机"}设备`);
33218
33220
  }).on(ie.CALL_SIP_INCOMING_CALL, () => {
@@ -33286,9 +33288,9 @@ const HN = {
33286
33288
  await ((re = I.current) == null ? void 0 : re.call_api.makeCall(Q));
33287
33289
  } catch (X) {
33288
33290
  const {
33289
- msg: Ce
33291
+ msg: ve
33290
33292
  } = JSON.parse(X.message);
33291
- Rt.warning(Ce);
33293
+ Rt.warning(ve);
33292
33294
  }
33293
33295
  }, At = async () => {
33294
33296
  var Q;
@@ -33339,9 +33341,9 @@ const HN = {
33339
33341
  await ((re = I.current) == null ? void 0 : re.call_api.consultCall(Q));
33340
33342
  } catch (X) {
33341
33343
  const {
33342
- msg: Ce
33344
+ msg: ve
33343
33345
  } = JSON.parse(X.message);
33344
- Rt.warning(Ce);
33346
+ Rt.warning(ve);
33345
33347
  }
33346
33348
  }, rn = async () => {
33347
33349
  var Q;
@@ -33373,7 +33375,7 @@ const HN = {
33373
33375
  } = JSON.parse(re.message);
33374
33376
  Rt.warning(X);
33375
33377
  }
33376
- }, Tt = () => {
33378
+ }, Mt = () => {
33377
33379
  var Q;
33378
33380
  try {
33379
33381
  (Q = I.current) == null || Q.call_api.unmute();
@@ -33409,9 +33411,9 @@ const HN = {
33409
33411
  await ((re = I.current) == null ? void 0 : re.call_api.transferAgent(Q));
33410
33412
  } catch (X) {
33411
33413
  const {
33412
- msg: Ce
33414
+ msg: ve
33413
33415
  } = JSON.parse(X.message);
33414
- Rt.warning(Ce);
33416
+ Rt.warning(ve);
33415
33417
  }
33416
33418
  }, Ne = async (Q) => {
33417
33419
  var re;
@@ -33419,9 +33421,9 @@ const HN = {
33419
33421
  await ((re = I.current) == null ? void 0 : re.call_api.transferOutline(Q));
33420
33422
  } catch (X) {
33421
33423
  const {
33422
- msg: Ce
33424
+ msg: ve
33423
33425
  } = JSON.parse(X.message);
33424
- Rt.warning(Ce);
33426
+ Rt.warning(ve);
33425
33427
  }
33426
33428
  }, at = async () => {
33427
33429
  var Q;
@@ -33524,7 +33526,7 @@ const HN = {
33524
33526
  name: "unmute",
33525
33527
  icon: /* @__PURE__ */ ae.jsx(yt, {
33526
33528
  name: "guanbimk",
33527
- onClick: Tt,
33529
+ onClick: Mt,
33528
33530
  color: "#1D92E9",
33529
33531
  size: 25
33530
33532
  })
@@ -33652,9 +33654,9 @@ const HN = {
33652
33654
  },
33653
33655
  children: /* @__PURE__ */ ae.jsx(jy, {
33654
33656
  onCallBack: (re) => {
33655
- var Ce;
33657
+ var ve;
33656
33658
  const X = Oe + re;
33657
- Ke(X), (Ce = I.current) == null || Ce.call_api.sendDTMF(re);
33659
+ Ke(X), (ve = I.current) == null || ve.call_api.sendDTMF(re);
33658
33660
  }
33659
33661
  })
33660
33662
  }),
@@ -33924,12 +33926,12 @@ const HN = {
33924
33926
  },
33925
33927
  children: [/* @__PURE__ */ ae.jsxs("span", {
33926
33928
  children: [S == null ? void 0 : S.province, "-", S == null ? void 0 : S.city]
33927
- }), ve && /* @__PURE__ */ ae.jsxs("span", {
33928
- children: ["当月", ve === "out" ? "呼出次数:" : "呼入次数:", /* @__PURE__ */ ae.jsx("span", {
33929
+ }), Ce && /* @__PURE__ */ ae.jsxs("span", {
33930
+ children: ["当月", Ce === "out" ? "呼出次数:" : "呼入次数:", /* @__PURE__ */ ae.jsx("span", {
33929
33931
  style: {
33930
33932
  color: "#1D92E9"
33931
33933
  },
33932
- children: ve === "out" ? S == null ? void 0 : S.contact_count_month : S == null ? void 0 : S.in_contact_count_month
33934
+ children: Ce === "out" ? S == null ? void 0 : S.contact_count_month : S == null ? void 0 : S.in_contact_count_month
33933
33935
  })]
33934
33936
  })]
33935
33937
  }), /* @__PURE__ */ ae.jsx("div", {
@@ -33938,12 +33940,12 @@ const HN = {
33938
33940
  justifyContent: "flex-end",
33939
33941
  alignItems: "center"
33940
33942
  },
33941
- children: ve && /* @__PURE__ */ ae.jsxs("span", {
33942
- children: ["总", ve === "out" ? "呼出次数:" : "呼入次数:", /* @__PURE__ */ ae.jsx("span", {
33943
+ children: Ce && /* @__PURE__ */ ae.jsxs("span", {
33944
+ children: ["总", Ce === "out" ? "呼出次数:" : "呼入次数:", /* @__PURE__ */ ae.jsx("span", {
33943
33945
  style: {
33944
33946
  color: "#1D92E9"
33945
33947
  },
33946
- children: ve === "out" ? (S == null ? void 0 : S.contact_count) || 0 : (S == null ? void 0 : S.in_contact_count) || 0
33948
+ children: Ce === "out" ? (S == null ? void 0 : S.contact_count) || 0 : (S == null ? void 0 : S.in_contact_count) || 0
33947
33949
  })]
33948
33950
  })
33949
33951
  })]
@@ -33976,13 +33978,13 @@ const HN = {
33976
33978
  return (t = jn.getInstance()) == null ? void 0 : t.getRealTimeCustomerInfo();
33977
33979
  }, WD = async (t) => {
33978
33980
  var e, n;
33979
- if (t !== Mt.IDLE && t !== Mt.BUSY)
33981
+ if (t !== Nt.IDLE && t !== Nt.BUSY)
33980
33982
  throw new Error("Invalid agent state");
33981
33983
  try {
33982
33984
  await ((n = (e = jn.getInstance()) == null ? void 0 : e.agent_api) == null ? void 0 : n.changeState({
33983
33985
  data: {
33984
33986
  state: t,
33985
- state_name: t === Mt.IDLE ? "空闲" : "忙碌"
33987
+ state_name: t === Nt.IDLE ? "空闲" : "忙碌"
33986
33988
  }
33987
33989
  }));
33988
33990
  } catch (r) {