ysyt-react-agent-lib 1.2.4 → 1.2.6

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.
@@ -4417,7 +4417,7 @@ const zy = (t) => {
4417
4417
  }), typeof r < "u" && (Ie.button = Object.assign({
4418
4418
  autoInsertSpace: r
4419
4419
  }, Ie.button));
4420
- const it = $A(() => Ie, Ie, (Qe, R) => {
4420
+ const ot = $A(() => Ie, Ie, (Qe, R) => {
4421
4421
  const Y = Object.keys(Qe), P = Object.keys(R);
4422
4422
  return Y.length !== P.length || Y.some((pe) => Qe[pe] !== R[pe]);
4423
4423
  }), {
@@ -4432,8 +4432,8 @@ const zy = (t) => {
4432
4432
  }), e);
4433
4433
  const je = c.useMemo(() => {
4434
4434
  var Qe, R, Y, P;
4435
- return bo(((Qe = ko.Form) === null || Qe === void 0 ? void 0 : Qe.defaultValidateMessages) || {}, ((Y = (R = it.locale) === null || R === void 0 ? void 0 : R.Form) === null || Y === void 0 ? void 0 : Y.defaultValidateMessages) || {}, ((P = it.form) === null || P === void 0 ? void 0 : P.validateMessages) || {}, (A == null ? void 0 : A.validateMessages) || {});
4436
- }, [it, A == null ? void 0 : A.validateMessages]);
4435
+ return bo(((Qe = ko.Form) === null || Qe === void 0 ? void 0 : Qe.defaultValidateMessages) || {}, ((Y = (R = ot.locale) === null || R === void 0 ? void 0 : R.Form) === null || Y === void 0 ? void 0 : Y.defaultValidateMessages) || {}, ((P = ot.form) === null || P === void 0 ? void 0 : P.validateMessages) || {}, (A == null ? void 0 : A.validateMessages) || {});
4436
+ }, [ot, A == null ? void 0 : A.validateMessages]);
4437
4437
  Object.keys(je).length > 0 && (qe = /* @__PURE__ */ c.createElement(ty.Provider, {
4438
4438
  value: je
4439
4439
  }, qe)), a && (qe = /* @__PURE__ */ c.createElement(HV, {
@@ -4444,37 +4444,37 @@ const zy = (t) => {
4444
4444
  }, qe), s && (qe = /* @__PURE__ */ c.createElement(cy, {
4445
4445
  size: s
4446
4446
  }, qe)), qe = /* @__PURE__ */ c.createElement(jy, null, qe);
4447
- const Le = c.useMemo(() => {
4447
+ const Pe = c.useMemo(() => {
4448
4448
  const Qe = Ke || {}, {
4449
4449
  algorithm: R,
4450
4450
  token: Y,
4451
4451
  components: P,
4452
4452
  cssVar: pe
4453
- } = Qe, Pe = Ly(Qe, ["algorithm", "token", "components", "cssVar"]), rt = R && (!Array.isArray(R) || R.length > 0) ? Ec(R) : NV, ze = {};
4453
+ } = Qe, Le = Ly(Qe, ["algorithm", "token", "components", "cssVar"]), it = R && (!Array.isArray(R) || R.length > 0) ? Ec(R) : NV, ze = {};
4454
4454
  Object.entries(P || {}).forEach((Qt) => {
4455
4455
  let [ft, wt] = Qt;
4456
4456
  const ve = Object.assign({}, wt);
4457
- "algorithm" in ve && (ve.algorithm === !0 ? ve.theme = rt : (Array.isArray(ve.algorithm) || typeof ve.algorithm == "function") && (ve.theme = Ec(ve.algorithm)), delete ve.algorithm), ze[ft] = ve;
4457
+ "algorithm" in ve && (ve.algorithm === !0 ? ve.theme = it : (Array.isArray(ve.algorithm) || typeof ve.algorithm == "function") && (ve.theme = Ec(ve.algorithm)), delete ve.algorithm), ze[ft] = ve;
4458
4458
  });
4459
- const ot = Object.assign(Object.assign({}, FA), Y);
4460
- return Object.assign(Object.assign({}, Pe), {
4461
- theme: rt,
4462
- token: ot,
4459
+ const nt = Object.assign(Object.assign({}, FA), Y);
4460
+ return Object.assign(Object.assign({}, Le), {
4461
+ theme: it,
4462
+ token: nt,
4463
4463
  components: ze,
4464
4464
  override: Object.assign({
4465
- override: ot
4465
+ override: nt
4466
4466
  }, ze),
4467
4467
  cssVar: pe
4468
4468
  });
4469
4469
  }, [Ke]);
4470
4470
  return S && (qe = /* @__PURE__ */ c.createElement(FV.Provider, {
4471
- value: Le
4472
- }, qe)), it.warning && (qe = /* @__PURE__ */ c.createElement(PV.Provider, {
4473
- value: it.warning
4471
+ value: Pe
4472
+ }, qe)), ot.warning && (qe = /* @__PURE__ */ c.createElement(PV.Provider, {
4473
+ value: ot.warning
4474
4474
  }, qe)), M !== void 0 && (qe = /* @__PURE__ */ c.createElement(ly, {
4475
4475
  disabled: M
4476
4476
  }, qe)), /* @__PURE__ */ c.createElement(Gt.Provider, {
4477
- value: it
4477
+ value: ot
4478
4478
  }, qe);
4479
4479
  }, Vi = (t) => {
4480
4480
  const e = c.useContext(Gt), n = c.useContext(kd);
@@ -4545,12 +4545,12 @@ function Xy() {
4545
4545
  }
4546
4546
  function S(R, Y, P) {
4547
4547
  {
4548
- var pe = C.ReactDebugCurrentFrame, Pe = pe.getStackAddendum();
4549
- Pe !== "" && (Y += "%s", P = P.concat([Pe]));
4550
- var rt = P.map(function(ze) {
4548
+ var pe = C.ReactDebugCurrentFrame, Le = pe.getStackAddendum();
4549
+ Le !== "" && (Y += "%s", P = P.concat([Le]));
4550
+ var it = P.map(function(ze) {
4551
4551
  return String(ze);
4552
4552
  });
4553
- rt.unshift("Warning: " + Y), Function.prototype.apply.call(console[R], console, rt);
4553
+ it.unshift("Warning: " + Y), Function.prototype.apply.call(console[R], console, it);
4554
4554
  }
4555
4555
  }
4556
4556
  var M = !1, I = !1, f = !1, x = !1, q = !1, E;
@@ -4566,8 +4566,8 @@ function Xy() {
4566
4566
  var pe = R.displayName;
4567
4567
  if (pe)
4568
4568
  return pe;
4569
- var Pe = Y.displayName || Y.name || "";
4570
- return Pe !== "" ? P + "(" + Pe + ")" : P;
4569
+ var Le = Y.displayName || Y.name || "";
4570
+ return Le !== "" ? P + "(" + Le + ")" : P;
4571
4571
  }
4572
4572
  function T(R) {
4573
4573
  return R.displayName || "Context";
@@ -4607,9 +4607,9 @@ function Xy() {
4607
4607
  var pe = R.displayName || null;
4608
4608
  return pe !== null ? pe : b(R.type) || "Memo";
4609
4609
  case g: {
4610
- var Pe = R, rt = Pe._payload, ze = Pe._init;
4610
+ var Le = R, it = Le._payload, ze = Le._init;
4611
4611
  try {
4612
- return b(ze(rt));
4612
+ return b(ze(it));
4613
4613
  } catch {
4614
4614
  return null;
4615
4615
  }
@@ -4685,8 +4685,8 @@ function Xy() {
4685
4685
  if (ee === void 0)
4686
4686
  try {
4687
4687
  throw Error();
4688
- } catch (Pe) {
4689
- var pe = Pe.stack.trim().match(/\n( *(at )?)/);
4688
+ } catch (Le) {
4689
+ var pe = Le.stack.trim().match(/\n( *(at )?)/);
4690
4690
  ee = pe && pe[1] || "";
4691
4691
  }
4692
4692
  return `
@@ -4708,10 +4708,10 @@ function Xy() {
4708
4708
  }
4709
4709
  var pe;
4710
4710
  oe = !0;
4711
- var Pe = Error.prepareStackTrace;
4711
+ var Le = Error.prepareStackTrace;
4712
4712
  Error.prepareStackTrace = void 0;
4713
- var rt;
4714
- rt = z.current, z.current = null, K();
4713
+ var it;
4714
+ it = z.current, z.current = null, K();
4715
4715
  try {
4716
4716
  if (Y) {
4717
4717
  var ze = function() {
@@ -4746,17 +4746,17 @@ function Xy() {
4746
4746
  }
4747
4747
  } catch (dt) {
4748
4748
  if (dt && pe && typeof dt.stack == "string") {
4749
- for (var ot = dt.stack.split(`
4749
+ for (var nt = dt.stack.split(`
4750
4750
  `), Qt = pe.stack.split(`
4751
- `), ft = ot.length - 1, wt = Qt.length - 1; ft >= 1 && wt >= 0 && ot[ft] !== Qt[wt]; )
4751
+ `), ft = nt.length - 1, wt = Qt.length - 1; ft >= 1 && wt >= 0 && nt[ft] !== Qt[wt]; )
4752
4752
  wt--;
4753
4753
  for (; ft >= 1 && wt >= 0; ft--, wt--)
4754
- if (ot[ft] !== Qt[wt]) {
4754
+ if (nt[ft] !== Qt[wt]) {
4755
4755
  if (ft !== 1 || wt !== 1)
4756
4756
  do
4757
- if (ft--, wt--, wt < 0 || ot[ft] !== Qt[wt]) {
4757
+ if (ft--, wt--, wt < 0 || nt[ft] !== Qt[wt]) {
4758
4758
  var ve = `
4759
- ` + ot[ft].replace(" at new ", " at ");
4759
+ ` + nt[ft].replace(" at new ", " at ");
4760
4760
  return R.displayName && ve.includes("<anonymous>") && (ve = ve.replace("<anonymous>", R.displayName)), typeof R == "function" && ae.set(R, ve), ve;
4761
4761
  }
4762
4762
  while (ft >= 1 && wt >= 0);
@@ -4764,7 +4764,7 @@ function Xy() {
4764
4764
  }
4765
4765
  }
4766
4766
  } finally {
4767
- oe = !1, z.current = rt, J(), Error.prepareStackTrace = Pe;
4767
+ oe = !1, z.current = it, J(), Error.prepareStackTrace = Le;
4768
4768
  }
4769
4769
  var xe = R ? R.displayName || R.name : "", ct = xe ? W(xe) : "";
4770
4770
  return typeof R == "function" && ae.set(R, ct), ct;
@@ -4796,9 +4796,9 @@ function Xy() {
4796
4796
  case d:
4797
4797
  return ce(R.type, Y, P);
4798
4798
  case g: {
4799
- var pe = R, Pe = pe._payload, rt = pe._init;
4799
+ var pe = R, Le = pe._payload, it = pe._init;
4800
4800
  try {
4801
- return ce(rt(Pe), Y, P);
4801
+ return ce(it(Le), Y, P);
4802
4802
  } catch {
4803
4803
  }
4804
4804
  }
@@ -4813,22 +4813,22 @@ function Xy() {
4813
4813
  } else
4814
4814
  ye.setExtraStackFrame(null);
4815
4815
  }
4816
- function Re(R, Y, P, pe, Pe) {
4816
+ function Re(R, Y, P, pe, Le) {
4817
4817
  {
4818
- var rt = Function.call.bind(se);
4818
+ var it = Function.call.bind(se);
4819
4819
  for (var ze in R)
4820
- if (rt(R, ze)) {
4821
- var ot = void 0;
4820
+ if (it(R, ze)) {
4821
+ var nt = void 0;
4822
4822
  try {
4823
4823
  if (typeof R[ze] != "function") {
4824
4824
  var Qt = Error((pe || "React class") + ": " + P + " type `" + ze + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof R[ze] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
4825
4825
  throw Qt.name = "Invariant Violation", Qt;
4826
4826
  }
4827
- ot = R[ze](Y, ze, pe, P, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
4827
+ nt = R[ze](Y, ze, pe, P, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
4828
4828
  } catch (ft) {
4829
- ot = ft;
4829
+ nt = ft;
4830
4830
  }
4831
- ot && !(ot instanceof Error) && (me(Pe), 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).", pe || "React class", P, ze, typeof ot), me(null)), ot instanceof Error && !(ot.message in Ce) && (Ce[ot.message] = !0, me(Pe), w("Failed %s type: %s", P, ot.message), me(null));
4831
+ nt && !(nt instanceof Error) && (me(Le), 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).", pe || "React class", P, ze, typeof nt), me(null)), nt instanceof Error && !(nt.message in Ce) && (Ce[nt.message] = !0, me(Le), w("Failed %s type: %s", P, nt.message), me(null));
4832
4832
  }
4833
4833
  }
4834
4834
  }
@@ -4903,8 +4903,8 @@ function Xy() {
4903
4903
  });
4904
4904
  }
4905
4905
  }
4906
- var st = function(R, Y, P, pe, Pe, rt, ze) {
4907
- var ot = {
4906
+ var st = function(R, Y, P, pe, Le, it, ze) {
4907
+ var nt = {
4908
4908
  // This tag allows us to uniquely identify this as a React Element
4909
4909
  $$typeof: e,
4910
4910
  // Built-in properties that belong on the element
@@ -4913,41 +4913,41 @@ function Xy() {
4913
4913
  ref: P,
4914
4914
  props: ze,
4915
4915
  // Record the component responsible for creating this element.
4916
- _owner: rt
4916
+ _owner: it
4917
4917
  };
4918
- return ot._store = {}, Object.defineProperty(ot._store, "validated", {
4918
+ return nt._store = {}, Object.defineProperty(nt._store, "validated", {
4919
4919
  configurable: !1,
4920
4920
  enumerable: !1,
4921
4921
  writable: !0,
4922
4922
  value: !1
4923
- }), Object.defineProperty(ot, "_self", {
4923
+ }), Object.defineProperty(nt, "_self", {
4924
4924
  configurable: !1,
4925
4925
  enumerable: !1,
4926
4926
  writable: !1,
4927
4927
  value: pe
4928
- }), Object.defineProperty(ot, "_source", {
4928
+ }), Object.defineProperty(nt, "_source", {
4929
4929
  configurable: !1,
4930
4930
  enumerable: !1,
4931
4931
  writable: !1,
4932
- value: Pe
4933
- }), Object.freeze && (Object.freeze(ot.props), Object.freeze(ot)), ot;
4932
+ value: Le
4933
+ }), Object.freeze && (Object.freeze(nt.props), Object.freeze(nt)), nt;
4934
4934
  };
4935
- function lt(R, Y, P, pe, Pe) {
4935
+ function lt(R, Y, P, pe, Le) {
4936
4936
  {
4937
- var rt, ze = {}, ot = null, Qt = null;
4938
- P !== void 0 && (Ye(P), ot = "" + P), ut(Y) && (Ye(Y.key), ot = "" + Y.key), _e(Y) && (Qt = Y.ref, et(Y, Pe));
4939
- for (rt in Y)
4940
- se.call(Y, rt) && !Xe.hasOwnProperty(rt) && (ze[rt] = Y[rt]);
4937
+ var it, ze = {}, nt = null, Qt = null;
4938
+ P !== void 0 && (Ye(P), nt = "" + P), ut(Y) && (Ye(Y.key), nt = "" + Y.key), _e(Y) && (Qt = Y.ref, et(Y, Le));
4939
+ for (it in Y)
4940
+ se.call(Y, it) && !Xe.hasOwnProperty(it) && (ze[it] = Y[it]);
4941
4941
  if (R && R.defaultProps) {
4942
4942
  var ft = R.defaultProps;
4943
- for (rt in ft)
4944
- ze[rt] === void 0 && (ze[rt] = ft[rt]);
4943
+ for (it in ft)
4944
+ ze[it] === void 0 && (ze[it] = ft[it]);
4945
4945
  }
4946
- if (ot || Qt) {
4946
+ if (nt || Qt) {
4947
4947
  var wt = typeof R == "function" ? R.displayName || R.name || "Unknown" : R;
4948
- ot && Te(ze, wt), Qt && Se(ze, wt);
4948
+ nt && Te(ze, wt), Qt && Se(ze, wt);
4949
4949
  }
4950
- return st(R, ot, Qt, Pe, pe, We.current, ze);
4950
+ return st(R, nt, Qt, Le, pe, We.current, ze);
4951
4951
  }
4952
4952
  }
4953
4953
  var vt = C.ReactCurrentOwner, Ot = C.ReactDebugCurrentFrame;
@@ -5016,9 +5016,9 @@ Check the top-level render call using <` + P + ">.");
5016
5016
  else if (rn(R))
5017
5017
  R._store && (R._store.validated = !0);
5018
5018
  else if (R) {
5019
- var Pe = m(R);
5020
- if (typeof Pe == "function" && Pe !== R.entries)
5021
- for (var rt = Pe.call(R), ze; !(ze = rt.next()).done; )
5019
+ var Le = m(R);
5020
+ if (typeof Le == "function" && Le !== R.entries)
5021
+ for (var it = Le.call(R), ze; !(ze = it.next()).done; )
5022
5022
  rn(ze.value) && Ke(ze.value, Y);
5023
5023
  }
5024
5024
  }
@@ -5042,13 +5042,13 @@ Check the top-level render call using <` + P + ">.");
5042
5042
  Re(P, R.props, "prop", pe, R);
5043
5043
  } else if (Y.PropTypes !== void 0 && !_t) {
5044
5044
  _t = !0;
5045
- var Pe = b(Y);
5046
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Pe || "Unknown");
5045
+ var Le = b(Y);
5046
+ w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Le || "Unknown");
5047
5047
  }
5048
5048
  typeof Y.getDefaultProps == "function" && !Y.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
5049
5049
  }
5050
5050
  }
5051
- function it(R) {
5051
+ function ot(R) {
5052
5052
  {
5053
5053
  for (var Y = Object.keys(R.props), P = 0; P < Y.length; P++) {
5054
5054
  var pe = Y[P];
@@ -5061,18 +5061,18 @@ Check the top-level render call using <` + P + ">.");
5061
5061
  }
5062
5062
  }
5063
5063
  var Vt = {};
5064
- function Be(R, Y, P, pe, Pe, rt) {
5064
+ function Be(R, Y, P, pe, Le, it) {
5065
5065
  {
5066
5066
  var ze = h(R);
5067
5067
  if (!ze) {
5068
- var ot = "";
5069
- (R === void 0 || typeof R == "object" && R !== null && Object.keys(R).length === 0) && (ot += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
5068
+ var nt = "";
5069
+ (R === void 0 || typeof R == "object" && R !== null && Object.keys(R).length === 0) && (nt += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
5070
5070
  var Qt = Kt();
5071
- Qt ? ot += Qt : ot += en();
5071
+ Qt ? nt += Qt : nt += en();
5072
5072
  var ft;
5073
- R === null ? ft = "null" : Fe(R) ? ft = "array" : R !== void 0 && R.$$typeof === e ? (ft = "<" + (b(R.type) || "Unknown") + " />", ot = " Did you accidentally export a JSX literal instead of a component?") : ft = typeof R, 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, ot);
5073
+ R === null ? ft = "null" : Fe(R) ? ft = "array" : R !== void 0 && R.$$typeof === e ? (ft = "<" + (b(R.type) || "Unknown") + " />", nt = " Did you accidentally export a JSX literal instead of a component?") : ft = typeof R, 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, nt);
5074
5074
  }
5075
- var wt = lt(R, Y, P, Pe, rt);
5075
+ var wt = lt(R, Y, P, Le, it);
5076
5076
  if (wt == null)
5077
5077
  return wt;
5078
5078
  if (ze) {
@@ -5102,7 +5102,7 @@ React keys must be passed directly to JSX without using spread:
5102
5102
  <%s key={someKey} {...props} />`, Ft, ct, Qn, ct), Vt[ct + Ft] = !0;
5103
5103
  }
5104
5104
  }
5105
- return R === r ? it(wt) : Ie(wt), wt;
5105
+ return R === r ? ot(wt) : Ie(wt), wt;
5106
5106
  }
5107
5107
  }
5108
5108
  function qe(R, Y, P) {
@@ -5111,8 +5111,8 @@ React keys must be passed directly to JSX without using spread:
5111
5111
  function je(R, Y, P) {
5112
5112
  return Be(R, Y, P, !1);
5113
5113
  }
5114
- var Le = je, Qe = qe;
5115
- cA.Fragment = r, cA.jsx = Le, cA.jsxs = Qe;
5114
+ var Pe = je, Qe = qe;
5115
+ cA.Fragment = r, cA.jsx = Pe, cA.jsxs = Qe;
5116
5116
  }()), cA;
5117
5117
  }
5118
5118
  var Rf;
@@ -9991,14 +9991,14 @@ let Qf = class Wa {
9991
9991
  r && r.forEach((i) => i(n));
9992
9992
  }
9993
9993
  };
9994
- var Tt, Mn, nt, wr, ie, ke, Zt;
9994
+ var Tt, Mn, rt, wr, ie, ke, 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
9997
  })(Tt || (Tt = {})), 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
  }(Mn || (Mn = {})), 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";
10001
- }(nt || (nt = {})), function(t) {
10001
+ }(rt || (rt = {})), function(t) {
10002
10002
  t.WEB_RTC_CONNECTING = "connecting", t.WEB_RTC_CONNECTED = "connected", t.WEB_RTC_DISCONNECTING = "disconnecting", t.WEB_RTC_DISCONNECTED = "disconnected", t.WEB_RTC_REGISTERED = "registered", t.WEB_RTC_UNREGISTERED = "unregistered", t.WEB_RTC_TERMINATED = "terminated", t.WEB_RTC_REGISTER_FAILED = "register_failed", t.WEB_RTC_ANSWER_FAILED = "answer_failed", t.WEB_RTC_SEND_DTMF = "send_dtmf";
10003
10003
  }(wr || (wr = {})), function(t) {
10004
10004
  t.CUSTOMER_INFO = "customer_info", t.CALL_PROGRESS = "call_progress", t.OUT_INCOMING_CALL = "out_call_incoming_call", t.INTERNAL_OUT_INCOMING_CALL = "internal_out_incoming_call", t.PREVIEW_OUT_INCOMING_CALL = "preview_out_incoming_call", t.OUT_SUCCESS = "out_call_success", t.OUT_FAILED = "out_call_failed", t.OUT_RINGING = "out_call_ringing", t.OUT_OFF_ANSWER = "out_call_answer", t.INTERNAL_OUT_OFF_ANSWER = "internal_out_call_answer", t.HOLD_SUCCESS = "hold_success", t.HOLD_FAILED = "hold_failed", t.UNHOLD_SUCCESS = "unhold_success", t.UNHOLD_FAILED = "unhold_failed", t.OUT_HANGUP = "out_call_hangup", t.CONSULT_RINGING = "consult_ringing", t.CONSULT_OFF_HOOK = "consult_off_hook", t.CONSULT_FAILED = "consult_failed", t.CONSULT_INCOMING = "consult_incoming", t.CONSULT_CALL_IN_SUCCESS = "consult_call_in_success", t.CONSULT_RETURN_CALL_SUCCESS = "consult_return_call_success", t.OTHER_SIDE_CONSULT_HANGUP = "other_side_consult_hangup", t.OUR_SIDE_CONSULT_HANGUP = "our_side_consult_hangup", t.AGENT_STATE = "agent_state", t.MUTE_SUCCESS = "mute_success", t.MUTE_FAILED = "mute_failed", t.UNMUTE_SUCCESS = "unmute_success", t.UNMUTE_FAILED = "unmute_failed", t.CONSULT_TRANSFER_SUCCESS = "consult_transfer_success", t.CONSULT_TRANSFER_FAILED = "consult_transfer_failed", t.CONSULT_TRANSFER_OFF_HOOK = "consult_transfer_off_hook", t.INCOMING_CALL = "incoming_call", t.INCOMING_CALL_IN = "incoming_call_in", t.PREDICT_INCOMING_CALL = "predict_incoming_call", t.DUAL_CALL_INCOMING_CALL = "dual_call_incoming_call", t.INCOMING_CALL_OFF_HOOK = "incoming_call_off_hook", t.INCOMING_CALL_IN_OFF_HOOK = "incoming_call_in_off_hook", t.INCOMING_CALL_END = "incoming_call_end", t.SATISFACTION_EVALUATION_SUCCESS = "satisfaction_evaluation_success", t.SATISFACTION_EVALUATION_FAILED = "satisfaction_evaluation_failed", t.CONSULT_THREE_WAY_SUCCESS = "consult_three_way_success", t.CONSULT_THREE_WAY_FAILED = "consult_three_way_failed", t.THREE_WAY_OUR_SIDE_HANGUP = "three_way_our_side_hangup", t.TRANSFER_FAILED = "transfer_failed", t.TRANSFER_PROGRESS = "transfer_progress", t.TRANSFER_INCOMING_CALL = "transfer_incoming_call", t.TRANSFER_OFF_HOOK = "transfer_off_hook", t.TRANSFER_END = "transfer_end", t.REJECT = "reject", t.LISTEN_CALL_FAILED = "listen_call_failed", t.LISTEN_INCOMING_CALL = "listen_incoming_call", t.LISTEN_INCOMING_CALL_OFF_HOOK = "listen_incoming_call_off_hook", t.LISTEN_HANGUP = "listen_hangup", t.EAR_SPEECH_SUCCESS = "ear_speech_success", t.EAR_SPEECH_BE_SUCCESS = "ear_speech_be_success", t.EAR_SPEECH_FAILED = "ear_speech_failed", t.STOP_EAR_SPEECH_SUCCESS = "stop_ear_speech_success", t.STOP_EAR_SPEECH_FAILED = "stop_ear_speech_failed", t.CALL_FORCE_INSERT_SUCCESS = "call_force_insert_success", t.CALL_FORCE_INSERT_SUCCESS_LISTENER = "call_force_insert_success_listener", t.CALL_FORCE_INSERT_FAILED = "call_force_insert_failed", t.CALL_SIP_INCOMING_CALL = "call_sip_incoming_call";
@@ -10179,7 +10179,7 @@ let Rw = class {
10179
10179
  async register() {
10180
10180
  var e, n;
10181
10181
  if (this.userAgent) {
10182
- this.registerer = new eu(this.userAgent, { expires: 60 }), (e = this.registerer) == null || e.stateChange.addListener((r) => {
10182
+ this.registerer = new eu(this.userAgent, { expires: 120, refreshFrequency: 80 }), (e = this.registerer) == null || e.stateChange.addListener((r) => {
10183
10183
  var o;
10184
10184
  let i;
10185
10185
  switch (r) {
@@ -11020,19 +11020,19 @@ class dn {
11020
11020
  const d = this.pendingMessages.get(l), g = performance.now() - d;
11021
11021
  _.latency = parseFloat(g.toFixed(2)), this.pendingMessages.delete(l);
11022
11022
  }
11023
- if (o !== 0 && Kf("%cWebSocket 收到消息:", "color: blue; font-weight: bold;", i), o !== nt.OUT_CALL && o !== nt.PREVIEW_OUT_CALL || (a !== 0 ? (G.reset(), de.emit(ie.OUT_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s), G.updateActionConfigs(Kn), setTimeout(() => {
11023
+ if (o !== 0 && Kf("%cWebSocket 收到消息:", "color: blue; font-weight: bold;", i), o !== rt.OUT_CALL && o !== rt.PREVIEW_OUT_CALL || (a !== 0 ? (G.reset(), de.emit(ie.OUT_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s), G.updateActionConfigs(Kn), setTimeout(() => {
11024
11024
  G.updateCustomerInfo(void 0);
11025
- }, 500), this.stateIdleChange()) : a === 0 && (de.emit(ie.OUT_SUCCESS), clearTimeout(_.autoStateTimer))), o === nt.AGENT_STATE) {
11025
+ }, 500), this.stateIdleChange()) : a === 0 && (de.emit(ie.OUT_SUCCESS), clearTimeout(_.autoStateTimer))), o === rt.AGENT_STATE) {
11026
11026
  const { state: d, state_name: g } = A;
11027
11027
  _.stateObject = { state: d, state_name: g }, (u = _.stateBeforeChange) != null && u.state || _.stateObject.state !== Tt.IDLE && (_.stateObject.state !== Tt.BUSY || g === "整理") || (_.stateBeforeChange = _.stateObject), g === "振铃中" && G.updateDisplayText(Zt.AGENT_RINGING), d === Tt.UNREGISTERED && G.updateActionConfigs(Kw), d === Tt.IDLE && _.stateObject.state === Tt.UNREGISTERED && G.updateActionConfigs(Kn), de.emit(ie.AGENT_STATE, { state: d, state_name: g });
11028
- } else if (o === nt.OUT_CALL_INCOMING_CALL) {
11028
+ } else if (o === rt.OUT_CALL_INCOMING_CALL) {
11029
11029
  try {
11030
11030
  await this.getCustomerInfo(A.trace_id || A.customer_phone);
11031
11031
  } catch (d) {
11032
11032
  console.error(d);
11033
11033
  }
11034
11034
  A.preview_task_id ? de.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 === 1 ? de.emit(ie.OUT_INCOMING_CALL, { customer_phone: A.customer_phone, session_id: A.session_id, trace_id: A.trace_id }) : A.direction === 8 && de.emit(ie.INTERNAL_OUT_INCOMING_CALL, { customer_phone: A.customer_phone, session_id: A.session_id, trace_id: A.trace_id }), _.sessionId = A.session_id, G.updateActionConfigs(Zw);
11035
- } else if (o === nt.OUT_CALL_END) if (G.updateDisplayText(""), A.device_type === 1 && A.agent_no === _.agentInfo.agent_no) G.reset(), de.emit(ie.OUT_HANGUP, { session_id: A.session_id }), G.updateActionConfigs(Kn), this.putAgentState(!0);
11035
+ } else if (o === rt.OUT_CALL_END) if (G.updateDisplayText(""), A.device_type === 1 && A.agent_no === _.agentInfo.agent_no) G.reset(), de.emit(ie.OUT_HANGUP, { session_id: A.session_id }), G.updateActionConfigs(Kn), this.putAgentState(!0);
11036
11036
  else if (A.device_type === 2 && A.agent_no === _.agentInfo.agent_no) G.reset(), de.emit(ie.OUR_SIDE_CONSULT_HANGUP, { session_id: A.session_id }), G.updateActionConfigs(Kn), this.putAgentState(!0);
11037
11037
  else if (A.device_type === 2 && A.agent_no !== _.agentInfo.agent_no)
11038
11038
  G.get("isCalling") && (G.updateDisplayText(Zt.CALLING), de.emit(ie.OTHER_SIDE_CONSULT_HANGUP, { session_id: A.session_id }), G.updateActionConfigs(yi));
@@ -11043,24 +11043,24 @@ class dn {
11043
11043
  const d = G.get("direction");
11044
11044
  d === Mn.OUTGOING ? G.updateActionConfigs(yi) : d === Mn.INCOMING && G.updateActionConfigs(Pi);
11045
11045
  } else A.device_type === 5 && A.agent_no === _.agentInfo.agent_no && (_.monitoredAgentNo = "", _.earSpeakAgent = "", G.reset(), de.emit(ie.LISTEN_HANGUP, { session_id: A.session_id }), G.updateActionConfigs(Kn), this.putAgentState(!0, 5));
11046
- else if (o === nt.OUT_CALL_RINGING) A.type === 1 && (de.emit(ie.OUT_RINGING, { session_id: _.sessionId, type: A.type }), G.updateDisplayText(Zt.RINGING));
11047
- else if (o === nt.OUT_CALL_ANSWER) clearTimeout(_.autoStateTimer), G.updateIsCalling(!0), G.updateOutCallIsAnswer(!0), G.updateDisplayText(Zt.CALLING), A.direction === 8 ? (de.emit(ie.INTERNAL_OUT_OFF_ANSWER, { session_id: _.sessionId }), G.updateActionConfigs(Ll)) : (de.emit(ie.OUT_OFF_ANSWER, { session_id: _.sessionId }), G.updateActionConfigs(yi));
11048
- else if (o === nt.CONSULT_RINGING) de.emit(ie.CONSULT_RINGING, { session_id: A.session_id }), G.updateDisplayText(Zt.AGENT_RINGING), G.updateActionConfigs([]), clearTimeout(_.autoStateTimer);
11049
- else if (o === nt.CONSULT_ANSWER) de.emit(ie.CONSULT_OFF_HOOK, { session_id: A.session_id }), G.updateConsultIsAnswer(!0), G.updateDisplayText(Zt.CONSULTING), G.updateActionConfigs(Yf);
11050
- else if (o === nt.CONSULT_FAIL) de.emit(ie.CONSULT_FAILED, { custom_reason: A.custom_reason }), G.updateDisplayText(Zt.CALLING), G.updateActionConfigs(yi);
11051
- else if (o === nt.CONSULT_CALL_IN) de.emit(ie.CONSULT_INCOMING, { agent_no: A.agent_no, agent_mane: A.agent_name, session_id: A.session_id }), _.sessionId = A.session_id, G.updateIsCalling(!0), G.updateDirection(Mn.CONSULT), G.updateDisplayText(Zt.CONSULT_CALL_IN), G.updateActionConfigs(Ma), _.enableBrowserAlert && Ro.show("📞 咨询来电", `坐席 [${A.agent_name}] 正在咨询...`, () => {
11046
+ else if (o === rt.OUT_CALL_RINGING) A.type === 1 && (de.emit(ie.OUT_RINGING, { session_id: _.sessionId, type: A.type }), G.updateDisplayText(Zt.RINGING));
11047
+ else if (o === rt.OUT_CALL_ANSWER) clearTimeout(_.autoStateTimer), G.updateIsCalling(!0), G.updateOutCallIsAnswer(!0), G.updateDisplayText(Zt.CALLING), A.direction === 8 ? (de.emit(ie.INTERNAL_OUT_OFF_ANSWER, { session_id: _.sessionId }), G.updateActionConfigs(Ll)) : (de.emit(ie.OUT_OFF_ANSWER, { session_id: _.sessionId }), G.updateActionConfigs(yi));
11048
+ else if (o === rt.CONSULT_RINGING) de.emit(ie.CONSULT_RINGING, { session_id: A.session_id }), G.updateDisplayText(Zt.AGENT_RINGING), G.updateActionConfigs([]), clearTimeout(_.autoStateTimer);
11049
+ else if (o === rt.CONSULT_ANSWER) de.emit(ie.CONSULT_OFF_HOOK, { session_id: A.session_id }), G.updateConsultIsAnswer(!0), G.updateDisplayText(Zt.CONSULTING), G.updateActionConfigs(Yf);
11050
+ else if (o === rt.CONSULT_FAIL) de.emit(ie.CONSULT_FAILED, { custom_reason: A.custom_reason }), G.updateDisplayText(Zt.CALLING), G.updateActionConfigs(yi);
11051
+ else if (o === rt.CONSULT_CALL_IN) de.emit(ie.CONSULT_INCOMING, { agent_no: A.agent_no, agent_mane: A.agent_name, session_id: A.session_id }), _.sessionId = A.session_id, G.updateIsCalling(!0), G.updateDirection(Mn.CONSULT), G.updateDisplayText(Zt.CONSULT_CALL_IN), G.updateActionConfigs(Ma), _.enableBrowserAlert && Ro.show("📞 咨询来电", `坐席 [${A.agent_name}] 正在咨询...`, () => {
11052
11052
  de.emit(ke.NOTIFICATION_CLICK, { agent_mane: A.agent_name, agent_no: A.agent_no });
11053
11053
  }, _.browserAlertTime);
11054
- else if (o === nt.CONSULT_CALL_IN_SUCCESS) de.emit(ie.CONSULT_CALL_IN_SUCCESS, { session_id: A.session_id }), G.updateConsultIsAnswer(!0), G.updateDisplayText(Zt.CALLING), G.updateActionConfigs(zw);
11055
- else if (o === nt.CONSULT_RETURN_CALL_SUCCESS) A.status === "success" ? (G.updateConsultIsAnswer(!1), de.emit(ie.CONSULT_RETURN_CALL_SUCCESS), G.updateDisplayText(Zt.CALLING), de.emit(ie.OTHER_SIDE_CONSULT_HANGUP), G.updateActionConfigs(yi)) : de.emit(ke.FAIL_NOTIFICATION, "媒体失败");
11056
- else if (o === nt.MUTE) a === 0 ? (G.updateIsMuted(!0), de.emit(ie.MUTE_SUCCESS), G.updateDisplayText(Zt.MUTING)) : (de.emit(ie.MUTE_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s));
11057
- else if (o === nt.UNMUTE) a === 0 ? (G.updateIsMuted(!1), de.emit(ie.UNMUTE_SUCCESS), G.updateDisplayText(Zt.CALLING)) : (de.emit(ie.UNMUTE_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s));
11058
- else if (o === nt.CALL_HOLD) a === 0 ? (G.updateIsHold(!0), G.updateDisplayText(Zt.HOLDING), de.emit(ie.HOLD_SUCCESS)) : (de.emit(ie.HOLD_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s));
11059
- else if (o === nt.CALL_UNHOLD) a === 0 ? (G.updateDisplayText(Zt.CALLING), G.updateIsHold(!1), de.emit(ie.UNHOLD_SUCCESS)) : (de.emit(ie.UNHOLD_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s));
11060
- else if (o === nt.CONSULT_TRANSFER) a === 0 ? de.emit(ie.CONSULT_TRANSFER_SUCCESS) : (de.emit(ie.CONSULT_TRANSFER_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s));
11061
- else if (o === nt.CONSULT_TRANSFER_FAILED) de.emit(ie.CONSULT_TRANSFER_FAILED, A.status);
11062
- else if (o === nt.CONSULT_TRANSFER_OFF_HOOK) G.updateDirection(Mn.INCOMING), G.updateDisplayText(Zt.CALLING), de.emit(ie.CONSULT_TRANSFER_OFF_HOOK), G.updateActionConfigs(Pi), G.updateIncomingIsAnswer(!0), G.updateConsultIsAnswer(!1);
11063
- else if (o === nt.INCOMING_CALL) {
11054
+ else if (o === rt.CONSULT_CALL_IN_SUCCESS) de.emit(ie.CONSULT_CALL_IN_SUCCESS, { session_id: A.session_id }), G.updateConsultIsAnswer(!0), G.updateDisplayText(Zt.CALLING), G.updateActionConfigs(zw);
11055
+ else if (o === rt.CONSULT_RETURN_CALL_SUCCESS) A.status === "success" ? (G.updateConsultIsAnswer(!1), de.emit(ie.CONSULT_RETURN_CALL_SUCCESS), G.updateDisplayText(Zt.CALLING), de.emit(ie.OTHER_SIDE_CONSULT_HANGUP), G.updateActionConfigs(yi)) : de.emit(ke.FAIL_NOTIFICATION, "媒体失败");
11056
+ else if (o === rt.MUTE) a === 0 ? (G.updateIsMuted(!0), de.emit(ie.MUTE_SUCCESS), G.updateDisplayText(Zt.MUTING)) : (de.emit(ie.MUTE_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s));
11057
+ else if (o === rt.UNMUTE) a === 0 ? (G.updateIsMuted(!1), de.emit(ie.UNMUTE_SUCCESS), G.updateDisplayText(Zt.CALLING)) : (de.emit(ie.UNMUTE_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s));
11058
+ else if (o === rt.CALL_HOLD) a === 0 ? (G.updateIsHold(!0), G.updateDisplayText(Zt.HOLDING), de.emit(ie.HOLD_SUCCESS)) : (de.emit(ie.HOLD_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s));
11059
+ else if (o === rt.CALL_UNHOLD) a === 0 ? (G.updateDisplayText(Zt.CALLING), G.updateIsHold(!1), de.emit(ie.UNHOLD_SUCCESS)) : (de.emit(ie.UNHOLD_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s));
11060
+ else if (o === rt.CONSULT_TRANSFER) a === 0 ? de.emit(ie.CONSULT_TRANSFER_SUCCESS) : (de.emit(ie.CONSULT_TRANSFER_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s));
11061
+ else if (o === rt.CONSULT_TRANSFER_FAILED) de.emit(ie.CONSULT_TRANSFER_FAILED, A.status);
11062
+ else if (o === rt.CONSULT_TRANSFER_OFF_HOOK) G.updateDirection(Mn.INCOMING), G.updateDisplayText(Zt.CALLING), de.emit(ie.CONSULT_TRANSFER_OFF_HOOK), G.updateActionConfigs(Pi), G.updateIncomingIsAnswer(!0), G.updateConsultIsAnswer(!1);
11063
+ else if (o === rt.INCOMING_CALL) {
11064
11064
  clearTimeout(_.autoStateTimer), _.sessionId = A.session_id;
11065
11065
  try {
11066
11066
  await this.getCustomerInfo(A.trace_id || A.customer_phone);
@@ -11070,8 +11070,8 @@ class dn {
11070
11070
  G.updateIsCalling(!0), G.updateDirection(Mn.INCOMING), G.updateDisplayText(Zt.INCOMING_CALL), this.inCallAutoAnswer(), A.direction === 1 && de.emit(ie.INCOMING_CALL, { customer_phone: A.customer_phone, trace_id: A.trace_id, session_id: A.session_id }), A.direction === 8 && de.emit(ie.INCOMING_CALL_IN, { customer_phone: A.customer_phone, trace_id: A.trace_id, session_id: A.session_id }), A.direction === 3 && de.emit(ie.PREDICT_INCOMING_CALL, { customer_phone: A.customer_phone, trace_id: A.trace_id, session_id: A.session_id }), A.direction === 6 && de.emit(ie.DUAL_CALL_INCOMING_CALL, { customer_phone: A.customer_phone, trace_id: A.trace_id, session_id: A.session_id }), G.updateActionConfigs(Ma), _.enableBrowserAlert && Ro.show("📞 客户来电", `客户 [${A.customer_phone}] 正在呼入...`, () => {
11071
11071
  de.emit(ke.NOTIFICATION_CLICK, { customer_phone: A.customer_phone });
11072
11072
  }, _.browserAlertTime);
11073
- } else if (o === nt.INCOMING_CALL_OFF_HOOK) G.updateIncomingIsAnswer(!0), A.direction === 8 ? (G.updateActionConfigs(Ll), de.emit(ie.INCOMING_CALL_IN_OFF_HOOK, { session_id: _.sessionId })) : (G.updateActionConfigs(Pi), de.emit(ie.INCOMING_CALL_OFF_HOOK, { session_id: _.sessionId })), G.updateDisplayText(Zt.CALLING);
11074
- else if (o === nt.INCOMING_CALL_END) if (G.updateDisplayText(""), A.device_type !== 1 && A.device_type !== 7 || A.agent_no !== _.agentInfo.agent_no) if (A.device_type === 2 && A.agent_no === _.agentInfo.agent_no) G.reset(), de.emit(ie.OUR_SIDE_CONSULT_HANGUP, { session_id: A.session_id }), this.putAgentState(!0), G.updateActionConfigs(Kn);
11073
+ } else if (o === rt.INCOMING_CALL_OFF_HOOK) G.updateIncomingIsAnswer(!0), A.direction === 8 ? (G.updateActionConfigs(Ll), de.emit(ie.INCOMING_CALL_IN_OFF_HOOK, { session_id: _.sessionId })) : (G.updateActionConfigs(Pi), de.emit(ie.INCOMING_CALL_OFF_HOOK, { session_id: _.sessionId })), G.updateDisplayText(Zt.CALLING);
11074
+ else if (o === rt.INCOMING_CALL_END) if (G.updateDisplayText(""), A.device_type !== 1 && A.device_type !== 7 || A.agent_no !== _.agentInfo.agent_no) if (A.device_type === 2 && A.agent_no === _.agentInfo.agent_no) G.reset(), de.emit(ie.OUR_SIDE_CONSULT_HANGUP, { session_id: A.session_id }), this.putAgentState(!0), G.updateActionConfigs(Kn);
11075
11075
  else if (A.device_type === 2 && A.agent_no !== _.agentInfo.agent_no) G.updateDisplayText(Zt.CALLING), de.emit(ie.OTHER_SIDE_CONSULT_HANGUP, { session_id: A.session_id }), G.updateActionConfigs(yi);
11076
11076
  else if (A.device_type === 3 && A.agent_no === _.agentInfo.agent_no) this.putAgentState(!0), G.reset(), de.emit(ie.THREE_WAY_OUR_SIDE_HANGUP, { session_id: A.session_id }), G.updateActionConfigs(Kn);
11077
11077
  else if (A.device_type === 4 && A.agent_no === _.agentInfo.agent_no) this.putAgentState(!0), G.reset(), de.emit(ie.TRANSFER_END, { session_id: A.session_id }), G.updateActionConfigs(Kn);
@@ -11081,22 +11081,22 @@ class dn {
11081
11081
  d === Mn.OUTGOING ? G.updateActionConfigs(yi) : d === Mn.INCOMING && G.updateActionConfigs(Pi);
11082
11082
  } else A.device_type === 5 && A.agent_no === _.agentInfo.agent_no && (this.putAgentState(!0, 5), _.monitoredAgentNo = "", _.earSpeakAgent = "", G.reset(), de.emit(ie.LISTEN_HANGUP, { session_id: A.session_id }), G.updateActionConfigs(Kn));
11083
11083
  else this.putAgentState(!0), G.reset(), de.emit(ie.INCOMING_CALL_END, { session_id: A.session_id }), G.updateActionConfigs(Kn);
11084
- else if (o === nt.SATISFACTION_EVALUATION) a === 0 ? de.emit(ie.SATISFACTION_EVALUATION_SUCCESS) : (de.emit(ie.SATISFACTION_EVALUATION_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s));
11085
- else if (o === nt.CONSULT_THREE_WAY) a !== 0 ? (de.emit(ie.CONSULT_THREE_WAY_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s)) : a === 0 && G.updateIsMeeting(!0);
11086
- else if (o === nt.CONSULT_THREE_WAY_RESULT) A.status === "success" ? (G.updateDirection(Mn.MEETING), G.updateDisplayText(Zt.MEETING), G.updateActionConfigs(Jw), de.emit(ie.CONSULT_THREE_WAY_SUCCESS)) : (de.emit(ie.CONSULT_THREE_WAY_FAILED, { conf_name: A.conf_name }), G.updateIsMeeting(!1));
11087
- else if (o === nt.TRANSFER_INCOMING_CALL) clearTimeout(_.autoStateTimer), A.agent_no === _.agentInfo.agent_no ? (G.updateDisplayText(Zt.TRANSFERRING), de.emit(ie.TRANSFER_PROGRESS), G.updateActionConfigs([]), G.updateTransferIsAnswer(!0)) : (_.sessionId = A.session_id, de.emit(ie.TRANSFER_INCOMING_CALL, { agent_no: A.agent_no, agent_name: A.agent_name, session_id: A.session_id }), G.updateIsCalling(!0), G.updateDirection(Mn.TRANSFER), G.updateDisplayText(Zt.TRANSFER_INCOMING_CALL), G.updateActionConfigs(Ma), _.enableBrowserAlert && Ro.show("📞 转接来电", `坐席 [${A.agent_no}] 正在转接...`, () => {
11084
+ else if (o === rt.SATISFACTION_EVALUATION) a === 0 ? de.emit(ie.SATISFACTION_EVALUATION_SUCCESS) : (de.emit(ie.SATISFACTION_EVALUATION_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s));
11085
+ else if (o === rt.CONSULT_THREE_WAY) a !== 0 ? (de.emit(ie.CONSULT_THREE_WAY_FAILED, s), de.emit(ke.FAIL_NOTIFICATION, s)) : a === 0 && G.updateIsMeeting(!0);
11086
+ else if (o === rt.CONSULT_THREE_WAY_RESULT) A.status === "success" ? (G.updateDirection(Mn.MEETING), G.updateDisplayText(Zt.MEETING), G.updateActionConfigs(Jw), de.emit(ie.CONSULT_THREE_WAY_SUCCESS)) : (de.emit(ie.CONSULT_THREE_WAY_FAILED, { conf_name: A.conf_name }), G.updateIsMeeting(!1));
11087
+ else if (o === rt.TRANSFER_INCOMING_CALL) clearTimeout(_.autoStateTimer), A.agent_no === _.agentInfo.agent_no ? (G.updateDisplayText(Zt.TRANSFERRING), de.emit(ie.TRANSFER_PROGRESS), G.updateActionConfigs([]), G.updateTransferIsAnswer(!0)) : (_.sessionId = A.session_id, de.emit(ie.TRANSFER_INCOMING_CALL, { agent_no: A.agent_no, agent_name: A.agent_name, session_id: A.session_id }), G.updateIsCalling(!0), G.updateDirection(Mn.TRANSFER), G.updateDisplayText(Zt.TRANSFER_INCOMING_CALL), G.updateActionConfigs(Ma), _.enableBrowserAlert && Ro.show("📞 转接来电", `坐席 [${A.agent_no}] 正在转接...`, () => {
11088
11088
  de.emit(ke.NOTIFICATION_CLICK, { agent_no: A.agent_no });
11089
11089
  }, _.browserAlertTime));
11090
- else if (o === nt.TRANSFER_OFF_HOOK) de.emit(ie.TRANSFER_OFF_HOOK, { session_id: _.sessionId }), G.updateTransferIsAnswer(!1), G.updateDisplayText(Zt.CALLING), G.updateActionConfigs(Pi);
11091
- else if (o === nt.TRANSFER_FAILED) {
11090
+ else if (o === rt.TRANSFER_OFF_HOOK) de.emit(ie.TRANSFER_OFF_HOOK, { session_id: _.sessionId }), G.updateTransferIsAnswer(!1), G.updateDisplayText(Zt.CALLING), G.updateActionConfigs(Pi);
11091
+ else if (o === rt.TRANSFER_FAILED) {
11092
11092
  if (A.status === "failed") {
11093
11093
  de.emit(ie.TRANSFER_FAILED, "未知原因"), de.emit(ke.FAIL_NOTIFICATION, "转接失败");
11094
11094
  const d = G.get("direction");
11095
11095
  d === Mn.OUTGOING ? G.updateActionConfigs(yi) : d === Mn.INCOMING && G.updateActionConfigs(Pi);
11096
11096
  }
11097
- } else o === nt.KICK_OFFLINE ? de.emit(ke.KICK_OFF) : o === nt.CONTINUOUS_NOT_ANSWER ? (de.emit(ke.FAIL_NOTIFICATION, `已连续 ${A.miss_count} 次未接, 设置忙碌`), this.stateBusyChange()) : o === nt.SIGN_OUT ? de.emit(ke.SIGN_OUT) : o === nt.SIGN_IN_SWITCH_DEVICE ? de.emit(ke.SIGN_IN_SWITCH_DEVICE, A) : o === nt.LISTEN_INCOMING_CALL ? (clearTimeout(_.autoStateTimer), _.sessionId = A.session_id, G.updateIsCalling(!0), G.updateDirection(Mn.INCOMING), this.inCallAutoAnswer(), G.updateDisplayText(Zt.LISTENING), G.updateActionConfigs(Ma), de.emit(ie.LISTEN_INCOMING_CALL, { session_id: A.session_id }), _.enableBrowserAlert && Ro.show("📞 监听来电", "正在来电...", () => {
11097
+ } else o === rt.KICK_OFFLINE ? de.emit(ke.KICK_OFF) : o === rt.CONTINUOUS_NOT_ANSWER ? (de.emit(ke.FAIL_NOTIFICATION, `已连续 ${A.miss_count} 次未接, 设置忙碌`), this.stateBusyChange()) : o === rt.SIGN_OUT ? de.emit(ke.SIGN_OUT) : o === rt.SIGN_IN_SWITCH_DEVICE ? de.emit(ke.SIGN_IN_SWITCH_DEVICE, A) : o === rt.LISTEN_INCOMING_CALL ? (clearTimeout(_.autoStateTimer), _.sessionId = A.session_id, G.updateIsCalling(!0), G.updateDirection(Mn.INCOMING), this.inCallAutoAnswer(), G.updateDisplayText(Zt.LISTENING), G.updateActionConfigs(Ma), de.emit(ie.LISTEN_INCOMING_CALL, { session_id: A.session_id }), _.enableBrowserAlert && Ro.show("📞 监听来电", "正在来电...", () => {
11098
11098
  de.emit(ke.NOTIFICATION_CLICK, { customer_phone: A.customer_phone });
11099
- }, _.browserAlertTime)) : o === nt.LISTEN_INCOMING_CALL_OFF_HOOK ? (_.monitoredAgentNo = A.monitored_agent_no, _.earSpeakAgent = "", G.updateIncomingIsAnswer(!0), de.emit(ie.LISTEN_INCOMING_CALL_OFF_HOOK, { session_id: _.sessionId, monitored_agent_no: A.monitored_agent_no }), G.updateActionConfigs(Hf), G.updateDisplayText(Zt.CALLING)) : o === nt.LISTEN_CALL_FAILED ? A.status === "failed" && (de.emit(ie.LISTEN_CALL_FAILED), _.monitoredAgentNo = "") : o === nt.EAR_SPEECH ? A.status === "success" ? (A.monitored_agent_no === _.agentInfo.agent_no && (G.updateActionConfigs(Ww), de.emit(ie.EAR_SPEECH_BE_SUCCESS)), A.monitor_agent_no === _.agentInfo.agent_no && (G.updateActionConfigs(Xw), de.emit(ie.EAR_SPEECH_SUCCESS, { monitored_agent_no: A.monitored_agent_no, monitor_agent_no: A.monitor_agent_no }), _.earSpeakAgent = A.monitored_agent_no)) : de.emit(ie.EAR_SPEECH_FAILED) : o === nt.STOP_EAR_SPEECH ? A.status === "success" ? (A.monitored_agent_no === _.agentInfo.agent_no && G.updateActionConfigs(Pi), A.monitor_agent_no === _.agentInfo.agent_no && G.updateActionConfigs(Hf), _.earSpeakAgent = "", de.emit(ie.STOP_EAR_SPEECH_SUCCESS)) : de.emit(ie.STOP_EAR_SPEECH_FAILED) : o === nt.CALL_FORCE_INSERT ? A.status === "success" ? (A.monitored_agent_no === _.agentInfo.agent_no && (G.updateActionConfigs($w), de.emit(ie.CALL_FORCE_INSERT_SUCCESS, { monitored_agent_no: A.monitored_agent_no, monitor_agent_no: A.monitor_agent_no })), A.monitor_agent_no === _.agentInfo.agent_no && (G.updateActionConfigs(_w), de.emit(ie.CALL_FORCE_INSERT_SUCCESS_LISTENER, { monitored_agent_no: A.monitored_agent_no, monitor_agent_no: A.monitor_agent_no }))) : de.emit(ie.CALL_FORCE_INSERT_FAILED) : o === nt.INTERNAL_CALL_START_CONSULT ? A.agent_no === _.agentInfo.agent_no ? (G.updateConsultIsAnswer(!0), G.updateActionConfigs(Yf), G.updateDisplayText(Zt.CONSULTING)) : (G.updateDisplayText(Zt.OTHER_SIDE_CONSULTING), G.updateActionConfigs([])) : o === nt.INTERNAL_CALL_END_CONSULT ? (G.updateActionConfigs(Ll), G.updateDisplayText(""), G.updateConsultIsAnswer(!1)) : o === nt.CALL_SIP_INCOMING_CALL && de.emit(ie.CALL_SIP_INCOMING_CALL);
11099
+ }, _.browserAlertTime)) : o === rt.LISTEN_INCOMING_CALL_OFF_HOOK ? (_.monitoredAgentNo = A.monitored_agent_no, _.earSpeakAgent = "", G.updateIncomingIsAnswer(!0), de.emit(ie.LISTEN_INCOMING_CALL_OFF_HOOK, { session_id: _.sessionId, monitored_agent_no: A.monitored_agent_no }), G.updateActionConfigs(Hf), G.updateDisplayText(Zt.CALLING)) : o === rt.LISTEN_CALL_FAILED ? A.status === "failed" && (de.emit(ie.LISTEN_CALL_FAILED), _.monitoredAgentNo = "") : o === rt.EAR_SPEECH ? A.status === "success" ? (A.monitored_agent_no === _.agentInfo.agent_no && (G.updateActionConfigs(Ww), de.emit(ie.EAR_SPEECH_BE_SUCCESS)), A.monitor_agent_no === _.agentInfo.agent_no && (G.updateActionConfigs(Xw), de.emit(ie.EAR_SPEECH_SUCCESS, { monitored_agent_no: A.monitored_agent_no, monitor_agent_no: A.monitor_agent_no }), _.earSpeakAgent = A.monitored_agent_no)) : de.emit(ie.EAR_SPEECH_FAILED) : o === rt.STOP_EAR_SPEECH ? A.status === "success" ? (A.monitored_agent_no === _.agentInfo.agent_no && G.updateActionConfigs(Pi), A.monitor_agent_no === _.agentInfo.agent_no && G.updateActionConfigs(Hf), _.earSpeakAgent = "", de.emit(ie.STOP_EAR_SPEECH_SUCCESS)) : de.emit(ie.STOP_EAR_SPEECH_FAILED) : o === rt.CALL_FORCE_INSERT ? A.status === "success" ? (A.monitored_agent_no === _.agentInfo.agent_no && (G.updateActionConfigs($w), de.emit(ie.CALL_FORCE_INSERT_SUCCESS, { monitored_agent_no: A.monitored_agent_no, monitor_agent_no: A.monitor_agent_no })), A.monitor_agent_no === _.agentInfo.agent_no && (G.updateActionConfigs(_w), de.emit(ie.CALL_FORCE_INSERT_SUCCESS_LISTENER, { monitored_agent_no: A.monitored_agent_no, monitor_agent_no: A.monitor_agent_no }))) : de.emit(ie.CALL_FORCE_INSERT_FAILED) : o === rt.INTERNAL_CALL_START_CONSULT ? A.agent_no === _.agentInfo.agent_no ? (G.updateConsultIsAnswer(!0), G.updateActionConfigs(Yf), G.updateDisplayText(Zt.CONSULTING)) : (G.updateDisplayText(Zt.OTHER_SIDE_CONSULTING), G.updateActionConfigs([])) : o === rt.INTERNAL_CALL_END_CONSULT ? (G.updateActionConfigs(Ll), G.updateDisplayText(""), G.updateConsultIsAnswer(!1)) : o === rt.CALL_SIP_INCOMING_CALL && de.emit(ie.CALL_SIP_INCOMING_CALL);
11100
11100
  }, this.ws.onclose = (r) => {
11101
11101
  de.emit(ke.FAIL_NOTIFICATION, "链接已断开,请检查网络"), this.stopHeartbeat();
11102
11102
  const i = G.get("isNextState");
@@ -11161,7 +11161,7 @@ class tS {
11161
11161
  if (n) {
11162
11162
  if (!G.get("actionConfigs").includes("hold")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿保持" }));
11163
11163
  if (e) throw new Error(JSON.stringify({ code: 1, msg: "当前已处于保持状态" }));
11164
- dn.__internalSend({ type: nt.CALL_HOLD, data: { session_id: n } });
11164
+ dn.__internalSend({ type: rt.CALL_HOLD, data: { session_id: n } });
11165
11165
  }
11166
11166
  }
11167
11167
  unholdCall() {
@@ -11170,7 +11170,7 @@ class tS {
11170
11170
  if (!G.get("actionConfigs").includes("unhold")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿取消保持" }));
11171
11171
  if (n) {
11172
11172
  if (!e) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于保持状态" }));
11173
- dn.__internalSend({ type: nt.CALL_UNHOLD, data: { session_id: n } });
11173
+ dn.__internalSend({ type: rt.CALL_UNHOLD, data: { session_id: n } });
11174
11174
  }
11175
11175
  }
11176
11176
  sendDTMF(e) {
@@ -11183,7 +11183,7 @@ class tS {
11183
11183
  cancelCall() {
11184
11184
  if (!G.get("isCalling")) throw new Error(JSON.stringify({ code: 1, msg: "当前没有通话" }));
11185
11185
  const e = _.sessionId;
11186
- de.emit(ie.REJECT, { session_id: e }), dn.__internalSend({ type: nt.AGENT_HANGUP, data: { session_id: e } });
11186
+ de.emit(ie.REJECT, { session_id: e }), dn.__internalSend({ type: rt.AGENT_HANGUP, data: { session_id: e } });
11187
11187
  }
11188
11188
  async consultCall(e) {
11189
11189
  this.roleMute();
@@ -11192,7 +11192,7 @@ class tS {
11192
11192
  if (i) throw new Error(JSON.stringify({ code: 1, msg: "当前正在咨询" }));
11193
11193
  if (!(n || r || o)) throw new Error(JSON.stringify({ code: 1, msg: "当前没有通话" }));
11194
11194
  if (!A) throw new Error(JSON.stringify({ code: 1, msg: "sessionId不存在" }));
11195
- dn.__internalSend({ type: nt.CONSULT_REQUEST, data: { session_id: A, consultation_agent_no: e } });
11195
+ dn.__internalSend({ type: rt.CONSULT_REQUEST, data: { session_id: A, consultation_agent_no: e } });
11196
11196
  }
11197
11197
  async answerCall() {
11198
11198
  if (G.get("answerDevice") !== 1) throw new Error(JSON.stringify({ code: 1, msg: "当前设备不支持此功能" }));
@@ -11204,7 +11204,7 @@ class tS {
11204
11204
  ru(e) ? n.trace_id = e : n.customer_phone = e.replace(/[\s\r\n-]+/g, "");
11205
11205
  const r = G.get("isCalling"), i = G.get("selectOutNumber") || "";
11206
11206
  if (r) throw new Error(JSON.stringify({ code: 1, msg: "正在呼叫中,请勿重复点击" }));
11207
- G.updateIsCalling(!0), G.updateDirection(Mn.OUTGOING), dn.__internalSend({ type: nt.OUT_CALL, data: { ...n, caller: i.replace(/[\s\r\n-]+/g, "") } });
11207
+ G.updateIsCalling(!0), G.updateDirection(Mn.OUTGOING), dn.__internalSend({ type: rt.OUT_CALL, data: { ...n, caller: i.replace(/[\s\r\n-]+/g, "") } });
11208
11208
  }
11209
11209
  previewCall(e, n) {
11210
11210
  const r = {};
@@ -11212,57 +11212,57 @@ class tS {
11212
11212
  const i = G.get("isCalling"), o = G.get("selectOutNumber") || "";
11213
11213
  if (i) throw new Error(JSON.stringify({ code: 1, msg: "正在呼叫中,请勿重复点击" }));
11214
11214
  if (typeof e != "string" || e.trim() === "") throw new Error(JSON.stringify({ code: 1, msg: "外呼号码非法" }));
11215
- G.updateIsCalling(!0), G.updateDirection(Mn.OUTGOING), dn.__internalSend({ type: nt.PREVIEW_OUT_CALL, data: { ...r, caller: o, preview_task_id: n } });
11215
+ G.updateIsCalling(!0), G.updateDirection(Mn.OUTGOING), dn.__internalSend({ type: rt.PREVIEW_OUT_CALL, data: { ...r, caller: o, preview_task_id: n } });
11216
11216
  }
11217
11217
  async hangup() {
11218
11218
  if (!G.get("isCalling")) throw new Error(JSON.stringify({ code: 1, msg: "当前没有通话" }));
11219
11219
  const e = _.sessionId;
11220
- dn.__internalSend({ type: nt.AGENT_HANGUP, data: { session_id: e } });
11220
+ dn.__internalSend({ type: rt.AGENT_HANGUP, data: { session_id: e } });
11221
11221
  }
11222
11222
  mute() {
11223
11223
  this.roleMute();
11224
11224
  const e = G.get("actionConfigs"), n = G.get("isMuted"), r = _.sessionId;
11225
11225
  if (n) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于静音状态" }));
11226
11226
  if (!e.includes("mute")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用静音" }));
11227
- dn.__internalSend({ type: nt.MUTE, data: { session_id: r } });
11227
+ dn.__internalSend({ type: rt.MUTE, data: { session_id: r } });
11228
11228
  }
11229
11229
  unmute() {
11230
11230
  this.roleMute();
11231
11231
  const e = G.get("actionConfigs"), n = G.get("isMuted"), r = _.sessionId;
11232
11232
  if (!n) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于未静音状态" }));
11233
11233
  if (!e.includes("unmute")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用静音" }));
11234
- dn.__internalSend({ type: nt.UNMUTE, data: { session_id: r } });
11234
+ dn.__internalSend({ type: rt.UNMUTE, data: { session_id: r } });
11235
11235
  }
11236
11236
  consultTransfer() {
11237
11237
  this.roleMute();
11238
11238
  const e = G.get("consultIsAnswer"), n = _.sessionId;
11239
11239
  if (!G.get("actionConfigs").includes("consult_transfer")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用咨询转移" }));
11240
11240
  if (!e) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于咨询中" }));
11241
- dn.__internalSend({ type: nt.CONSULT_TRANSFER, data: { session_id: n } });
11241
+ dn.__internalSend({ type: rt.CONSULT_TRANSFER, data: { session_id: n } });
11242
11242
  }
11243
11243
  satisfactionEvaluation() {
11244
11244
  this.roleMute();
11245
11245
  const e = _.sessionId;
11246
11246
  if (!G.get("actionConfigs").includes("satisfaction")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用满意度评价" }));
11247
- dn.__internalSend({ type: nt.SATISFACTION_EVALUATION, data: { session_id: e } });
11247
+ dn.__internalSend({ type: rt.SATISFACTION_EVALUATION, data: { session_id: e } });
11248
11248
  }
11249
11249
  startConference() {
11250
11250
  if (this.roleMute(), !G.get("actionConfigs").includes("conference")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用三方会议" }));
11251
11251
  const e = _.sessionId;
11252
11252
  if (!G.get("consultIsAnswer")) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于咨询中" }));
11253
- dn.__internalSend({ type: nt.CONSULT_THREE_WAY, data: { session_id: e } });
11253
+ dn.__internalSend({ type: rt.CONSULT_THREE_WAY, data: { session_id: e } });
11254
11254
  }
11255
11255
  consultRetrieve() {
11256
11256
  if (this.roleMute(), !G.get("actionConfigs").includes("consult_retrieve")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿取回通话" }));
11257
11257
  const e = _.sessionId;
11258
11258
  if (!G.get("consultIsAnswer")) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于咨询中" }));
11259
- dn.__internalSend({ type: nt.CONSULT_RETURN_CALL, data: { session_id: e } });
11259
+ dn.__internalSend({ type: rt.CONSULT_RETURN_CALL, data: { session_id: e } });
11260
11260
  }
11261
11261
  async transferAgent(e) {
11262
11262
  if (this.roleMute(), !G.get("actionConfigs").includes("transfer")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿转接" }));
11263
11263
  const { transferIsAnswer: n } = G.getState(), r = _.sessionId;
11264
11264
  if (n) throw new Error(JSON.stringify({ code: 1, msg: "当前正在转接" }));
11265
- dn.__internalSend({ type: nt.TRANSFER, data: { session_id: r, transfer_type: 0, transfer_dest: e } });
11265
+ dn.__internalSend({ type: rt.TRANSFER, data: { session_id: r, transfer_type: 0, transfer_dest: e } });
11266
11266
  }
11267
11267
  async transferOutline(e) {
11268
11268
  if (this.roleMute(), !G.get("actionConfigs").includes("transfer")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿转接" }));
@@ -11271,7 +11271,7 @@ class tS {
11271
11271
  const { transferIsAnswer: n } = G.getState(), r = _.sessionId;
11272
11272
  if (n) throw new Error(JSON.stringify({ code: 1, msg: "当前正在转接" }));
11273
11273
  if (n) throw new Error(JSON.stringify({ code: 1, msg: "当前正在转接" }));
11274
- dn.__internalSend({ type: nt.TRANSFER, data: { session_id: r, transfer_type: 2, transfer_dest: e } });
11274
+ dn.__internalSend({ type: rt.TRANSFER, data: { session_id: r, transfer_type: 2, transfer_dest: e } });
11275
11275
  }
11276
11276
  }
11277
11277
  var lr, Zn, cn, un, Xi, zA, JA, _i, Wr, WA, XA, ki, Qv, kv, _A, Uv;
@@ -24769,7 +24769,7 @@ function sR(t, e, n, r, i, o, A) {
24769
24769
  var Ci = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : be, AA = k.x + oA, ua = k.y + oi, ql = AA + Z, El = ua + he, yl = Math.max(AA, Ci.left), Je = Math.max(ua, Ci.top), pt = Math.min(ql, Ci.right), on = Math.min(El, Ci.bottom);
24770
24770
  return Math.max(0, (pt - yl) * (on - Je));
24771
24771
  }, fo = function() {
24772
- ze = k.y + it, ot = ze + he, Qt = k.x + Ie, ft = Qt + Z;
24772
+ ze = k.y + ot, nt = ze + he, Qt = k.x + Ie, ft = Qt + Z;
24773
24773
  };
24774
24774
  var w, S, M, I, f = e, x = f.ownerDocument, q = Aa(f), E = q.getComputedStyle(f), h = E.position, y = f.style.left, T = f.style.top, b = f.style.right, B = f.style.bottom, O = f.style.overflow, D = Q(Q({}, i[r]), o), N = x.createElement("div");
24775
24775
  (w = f.parentElement) === null || w === void 0 || w.appendChild(N), N.style.left = "".concat(f.offsetLeft, "px"), N.style.top = "".concat(f.offsetTop, "px"), N.style.position = h, N.style.height = "".concat(f.offsetHeight, "px"), N.style.width = "".concat(f.offsetWidth, "px"), f.style.left = "0", f.style.top = "0", f.style.right = "auto", f.style.bottom = "auto", f.style.overflow = "hidden";
@@ -24813,40 +24813,40 @@ function sR(t, e, n, r, i, o, A) {
24813
24813
  return;
24814
24814
  var Ue = D.offset, _e = D.targetOffset, ut = um(k, Ue), et = $(ut, 2), Te = et[0], Se = et[1], st = um(U, _e), lt = $(st, 2), vt = lt[0], Ot = lt[1];
24815
24815
  U.x -= vt, U.y -= Ot;
24816
- var $t = D.points || [], _t = $($t, 2), rn = _t[0], en = _t[1], Kt = dm(en), xt = dm(rn), mt = vo(U, Kt), Ke = vo(k, xt), $e = Q({}, D), Ie = mt.x - Ke.x + Te, it = mt.y - Ke.y + Se, Vt = Vr(Ie, it), Be = Vr(Ie, it, fe), qe = vo(U, ["t", "l"]), je = vo(k, ["t", "l"]), Le = vo(U, ["b", "r"]), Qe = vo(k, ["b", "r"]), R = D.overflow || {}, Y = R.adjustX, P = R.adjustY, pe = R.shiftX, Pe = R.shiftY, rt = function(oi) {
24816
+ var $t = D.points || [], _t = $($t, 2), rn = _t[0], en = _t[1], Kt = dm(en), xt = dm(rn), mt = vo(U, Kt), Ke = vo(k, xt), $e = Q({}, D), Ie = mt.x - Ke.x + Te, ot = mt.y - Ke.y + Se, Vt = Vr(Ie, ot), Be = Vr(Ie, ot, fe), qe = vo(U, ["t", "l"]), je = vo(k, ["t", "l"]), Pe = vo(U, ["b", "r"]), Qe = vo(k, ["b", "r"]), R = D.overflow || {}, Y = R.adjustX, P = R.adjustY, pe = R.shiftX, Le = R.shiftY, it = function(oi) {
24817
24817
  return typeof oi == "boolean" ? oi : oi >= 0;
24818
- }, ze, ot, Qt, ft;
24818
+ }, ze, nt, Qt, ft;
24819
24819
  fo();
24820
- var wt = rt(P), ve = xt[0] === Kt[0];
24821
- if (wt && xt[0] === "t" && (ot > Ye.bottom || p.current.bt)) {
24822
- var xe = it;
24820
+ var wt = it(P), ve = xt[0] === Kt[0];
24821
+ if (wt && xt[0] === "t" && (nt > Ye.bottom || p.current.bt)) {
24822
+ var xe = ot;
24823
24823
  ve ? xe -= he - ce : xe = qe.y - Qe.y - Se;
24824
24824
  var ct = Vr(Ie, xe), dt = Vr(Ie, xe, fe);
24825
24825
  // Of course use larger one
24826
24826
  ct > Vt || ct === Vt && (!Fe || // Choose recommend one
24827
- dt >= Be) ? (p.current.bt = !0, it = xe, Se = -Se, $e.points = [wi(xt, 0), wi(Kt, 0)]) : p.current.bt = !1;
24827
+ dt >= Be) ? (p.current.bt = !0, ot = xe, Se = -Se, $e.points = [wi(xt, 0), wi(Kt, 0)]) : p.current.bt = !1;
24828
24828
  }
24829
24829
  if (wt && xt[0] === "b" && (ze < Ye.top || p.current.tb)) {
24830
- var Ft = it;
24831
- ve ? Ft += he - ce : Ft = Le.y - je.y - Se;
24830
+ var Ft = ot;
24831
+ ve ? Ft += he - ce : Ft = Pe.y - je.y - Se;
24832
24832
  var Qn = Vr(Ie, Ft), ln = Vr(Ie, Ft, fe);
24833
24833
  // Of course use larger one
24834
24834
  Qn > Vt || Qn === Vt && (!Fe || // Choose recommend one
24835
- ln >= Be) ? (p.current.tb = !0, it = Ft, Se = -Se, $e.points = [wi(xt, 0), wi(Kt, 0)]) : p.current.tb = !1;
24835
+ ln >= Be) ? (p.current.tb = !0, ot = Ft, Se = -Se, $e.points = [wi(xt, 0), wi(Kt, 0)]) : p.current.tb = !1;
24836
24836
  }
24837
- var Jn = rt(Y), Kr = xt[1] === Kt[1];
24837
+ var Jn = it(Y), Kr = xt[1] === Kt[1];
24838
24838
  if (Jn && xt[1] === "l" && (ft > Ye.right || p.current.rl)) {
24839
24839
  var jn = Ie;
24840
24840
  Kr ? jn -= Z - se : jn = qe.x - Qe.x - Te;
24841
- var Pn = Vr(jn, it), Br = Vr(jn, it, fe);
24841
+ var Pn = Vr(jn, ot), Br = Vr(jn, ot, fe);
24842
24842
  // Of course use larger one
24843
24843
  Pn > Vt || Pn === Vt && (!Fe || // Choose recommend one
24844
24844
  Br >= Be) ? (p.current.rl = !0, Ie = jn, Te = -Te, $e.points = [wi(xt, 1), wi(Kt, 1)]) : p.current.rl = !1;
24845
24845
  }
24846
24846
  if (Jn && xt[1] === "r" && (Qt < Ye.left || p.current.lr)) {
24847
24847
  var Ln = Ie;
24848
- Kr ? Ln += Z - se : Ln = Le.x - je.x - Te;
24849
- var ri = Vr(Ln, it), Or = Vr(Ln, it, fe);
24848
+ Kr ? Ln += Z - se : Ln = Pe.x - je.x - Te;
24849
+ var ri = Vr(Ln, ot), Or = Vr(Ln, ot, fe);
24850
24850
  // Of course use larger one
24851
24851
  ri > Vt || ri === Vt && (!Fe || // Choose recommend one
24852
24852
  Or >= Be) ? (p.current.lr = !0, Ie = Ln, Te = -Te, $e.points = [wi(xt, 1), wi(Kt, 1)]) : p.current.lr = !1;
@@ -24854,16 +24854,16 @@ function sR(t, e, n, r, i, o, A) {
24854
24854
  fo();
24855
24855
  var Yn = pe === !0 ? 0 : pe;
24856
24856
  typeof Yn == "number" && (Qt < fe.left && (Ie -= Qt - fe.left - Te, U.x + se < fe.left + Yn && (Ie += U.x - fe.left + se - Yn)), ft > fe.right && (Ie -= ft - fe.right - Te, U.x > fe.right - Yn && (Ie += U.x - fe.right + Yn)));
24857
- var rr = Pe === !0 ? 0 : Pe;
24858
- typeof rr == "number" && (ze < fe.top && (it -= ze - fe.top - Se, U.y + ce < fe.top + rr && (it += U.y - fe.top + ce - rr)), ot > fe.bottom && (it -= ot - fe.bottom - Se, U.y > fe.bottom - rr && (it += U.y - fe.bottom + rr)));
24859
- var pr = k.x + Ie, mr = pr + Z, Zr = k.y + it, ii = Zr + he, St = U.x, Ge = St + se, ht = U.y, Et = ht + ce, Bt = Math.max(pr, St), Nt = Math.min(mr, Ge), wn = (Bt + Nt) / 2, Sn = wn - pr, Wn = Math.max(Zr, ht), ir = Math.min(ii, Et), Xn = (Wn + ir) / 2, _n = Xn - Zr;
24857
+ var rr = Le === !0 ? 0 : Le;
24858
+ typeof rr == "number" && (ze < fe.top && (ot -= ze - fe.top - Se, U.y + ce < fe.top + rr && (ot += U.y - fe.top + ce - rr)), nt > fe.bottom && (ot -= nt - fe.bottom - Se, U.y > fe.bottom - rr && (ot += U.y - fe.bottom + rr)));
24859
+ var pr = k.x + Ie, mr = pr + Z, Zr = k.y + ot, ii = Zr + he, St = U.x, Ge = St + se, ht = U.y, Et = ht + ce, Bt = Math.max(pr, St), Nt = Math.min(mr, Ge), wn = (Bt + Nt) / 2, Sn = wn - pr, Wn = Math.max(Zr, ht), ir = Math.min(ii, Et), Xn = (Wn + ir) / 2, _n = Xn - Zr;
24860
24860
  A == null || A(e, $e);
24861
- var Cn = We.right - k.x - (Ie + k.width), ji = We.bottom - k.y - (it + k.height);
24862
- Xe === 1 && (Ie = Math.round(Ie), Cn = Math.round(Cn)), He === 1 && (it = Math.round(it), ji = Math.round(ji));
24861
+ var Cn = We.right - k.x - (Ie + k.width), ji = We.bottom - k.y - (ot + k.height);
24862
+ Xe === 1 && (Ie = Math.round(Ie), Cn = Math.round(Cn)), He === 1 && (ot = Math.round(ot), ji = Math.round(ji));
24863
24863
  var Cl = {
24864
24864
  ready: !0,
24865
24865
  offsetX: Ie / Xe,
24866
- offsetY: it / He,
24866
+ offsetY: ot / He,
24867
24867
  offsetR: Cn / Xe,
24868
24868
  offsetB: ji / He,
24869
24869
  arrowX: Sn / Xe,
@@ -24972,34 +24972,34 @@ function dR() {
24972
24972
  $e.current = mt;
24973
24973
  var Ie = c.useRef([]);
24974
24974
  Ie.current = [];
24975
- var it = An(function(Je) {
24975
+ var ot = An(function(Je) {
24976
24976
  var pt;
24977
24977
  Ke(Je), ((pt = Ie.current[Ie.current.length - 1]) !== null && pt !== void 0 ? pt : mt) !== Je && (Ie.current.push(Je), p == null || p(Je));
24978
24978
  }), Vt = c.useRef(), Be = function() {
24979
24979
  clearTimeout(Vt.current);
24980
24980
  }, qe = function(pt) {
24981
24981
  var on = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
24982
- Be(), on === 0 ? it(pt) : Vt.current = setTimeout(function() {
24983
- it(pt);
24982
+ Be(), on === 0 ? ot(pt) : Vt.current = setTimeout(function() {
24983
+ ot(pt);
24984
24984
  }, on * 1e3);
24985
24985
  };
24986
24986
  c.useEffect(function() {
24987
24987
  return Be;
24988
24988
  }, []);
24989
- var je = c.useState(!1), Le = $(je, 2), Qe = Le[0], R = Le[1];
24989
+ var je = c.useState(!1), Pe = $(je, 2), Qe = Pe[0], R = Pe[1];
24990
24990
  nn(function(Je) {
24991
24991
  (!Je || mt) && R(!0);
24992
24992
  }, [mt]);
24993
- var Y = c.useState(null), P = $(Y, 2), pe = P[0], Pe = P[1], rt = c.useState(null), ze = $(rt, 2), ot = ze[0], Qt = ze[1], ft = function(pt) {
24993
+ var Y = c.useState(null), P = $(Y, 2), pe = P[0], Le = P[1], it = c.useState(null), ze = $(it, 2), nt = ze[0], Qt = ze[1], ft = function(pt) {
24994
24994
  Qt([pt.clientX, pt.clientY]);
24995
- }, wt = sR(mt, Ye, k && ot !== null ? ot : ut, B, D, N, K), ve = $(wt, 11), xe = ve[0], ct = ve[1], dt = ve[2], Ft = ve[3], Qn = ve[4], ln = ve[5], Jn = ve[6], Kr = ve[7], jn = ve[8], Pn = ve[9], Br = ve[10], Ln = oR(ye, s, l, u), ri = $(Ln, 2), Or = ri[0], Yn = ri[1], rr = Or.has("click"), pr = Yn.has("click") || Yn.has("contextMenu"), mr = An(function() {
24995
+ }, wt = sR(mt, Ye, k && nt !== null ? nt : ut, B, D, N, K), ve = $(wt, 11), xe = ve[0], ct = ve[1], dt = ve[2], Ft = ve[3], Qn = ve[4], ln = ve[5], Jn = ve[6], Kr = ve[7], jn = ve[8], Pn = ve[9], Br = ve[10], Ln = oR(ye, s, l, u), ri = $(Ln, 2), Or = ri[0], Yn = ri[1], rr = Or.has("click"), pr = Yn.has("click") || Yn.has("contextMenu"), mr = An(function() {
24996
24996
  Qe || Br();
24997
24997
  }), Zr = function() {
24998
24998
  $e.current && k && pr && qe(!1);
24999
24999
  };
25000
25000
  lR(mt, ut, Ye, mr, Zr), nn(function() {
25001
25001
  mr();
25002
- }, [ot, B]), nn(function() {
25002
+ }, [nt, B]), nn(function() {
25003
25003
  mt && !(D != null && D[B]) && mr();
25004
25004
  }, [JSON.stringify(N)]);
25005
25005
  var ii = c.useMemo(function() {
@@ -25024,13 +25024,13 @@ function dR() {
25024
25024
  R(!1), Br(), V == null || V(pt);
25025
25025
  }, _n = function() {
25026
25026
  return new Promise(function(pt) {
25027
- Wn(), Pe(function() {
25027
+ Wn(), Le(function() {
25028
25028
  return pt;
25029
25029
  });
25030
25030
  });
25031
25031
  };
25032
25032
  nn(function() {
25033
- pe && (Br(), pe(), Pe(null));
25033
+ pe && (Br(), pe(), Le(null));
25034
25034
  }, [pe]);
25035
25035
  function Cn(Je, pt, on, qn) {
25036
25036
  vt[Je] = function(an) {
@@ -25590,8 +25590,8 @@ function FR(t, e) {
25590
25590
  }
25591
25591
  function Se(Ke, $e) {
25592
25592
  N(function(Ie) {
25593
- var it = new Map(Ie);
25594
- return $e === null ? it.delete(Ke) : it.set(Ke, $e), it;
25593
+ var ot = new Map(Ie);
25594
+ return $e === null ? ot.delete(Ke) : ot.set(Ke, $e), ot;
25595
25595
  });
25596
25596
  }
25597
25597
  function st(Ke, $e) {
@@ -25610,19 +25610,19 @@ function FR(t, e) {
25610
25610
  et(0, null);
25611
25611
  return;
25612
25612
  }
25613
- for (var it = 0; it < $e; it += 1) {
25614
- var Vt = vt(it);
25613
+ for (var ot = 0; ot < $e; ot += 1) {
25614
+ var Vt = vt(ot);
25615
25615
  if (x && (Vt = Vt || 0), Vt === void 0) {
25616
- et(it - 1, void 0, !0);
25616
+ et(ot - 1, void 0, !0);
25617
25617
  break;
25618
25618
  }
25619
25619
  if (Ke += Vt, // Only one means `totalWidth` is the final width
25620
25620
  Ie === 0 && Ke <= b || // Last two width will be the final width
25621
- it === Ie - 1 && Ke + vt(Ie) <= b) {
25621
+ ot === Ie - 1 && Ke + vt(Ie) <= b) {
25622
25622
  et(Ie, null);
25623
25623
  break;
25624
25624
  } else if (Ke + fe > b) {
25625
- et(it - 1, Ke - Vt - W + K);
25625
+ et(ot - 1, Ke - Vt - W + K);
25626
25626
  break;
25627
25627
  }
25628
25628
  }
@@ -26460,11 +26460,11 @@ var pT = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
26460
26460
  Et ? pc(Bt) : Bt();
26461
26461
  }, Ot = c.useState(st), $t = $(Ot, 2), _t = $t[0], rn = $t[1], en = c.useRef(!1), Kt = c.useMemo(function() {
26462
26462
  return (m === "inline" || m === "vertical") && C ? ["vertical", C] : [m, !1];
26463
- }, [m, C]), xt = $(Kt, 2), mt = xt[0], Ke = xt[1], $e = mt === "inline", Ie = c.useState(mt), it = $(Ie, 2), Vt = it[0], Be = it[1], qe = c.useState(Ke), je = $(qe, 2), Le = je[0], Qe = je[1];
26463
+ }, [m, C]), xt = $(Kt, 2), mt = xt[0], Ke = xt[1], $e = mt === "inline", Ie = c.useState(mt), ot = $(Ie, 2), Vt = ot[0], Be = ot[1], qe = c.useState(Ke), je = $(qe, 2), Pe = je[0], Qe = je[1];
26464
26464
  c.useEffect(function() {
26465
26465
  Be(mt), Qe(Ke), en.current && ($e ? lt(_t) : vt(Li));
26466
26466
  }, [mt, Ke]);
26467
- var R = c.useState(0), Y = $(R, 2), P = Y[0], pe = Y[1], Pe = P >= be.length - 1 || Vt !== "horizontal" || S;
26467
+ var R = c.useState(0), Y = $(R, 2), P = Y[0], pe = Y[1], Le = P >= be.length - 1 || Vt !== "horizontal" || S;
26468
26468
  c.useEffect(function() {
26469
26469
  $e && rn(st);
26470
26470
  }, [st]), c.useEffect(function() {
@@ -26472,21 +26472,21 @@ var pT = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
26472
26472
  en.current = !1;
26473
26473
  };
26474
26474
  }, []);
26475
- var rt = ZR(), ze = rt.registerPath, ot = rt.unregisterPath, Qt = rt.refreshOverflowKeys, ft = rt.isSubPathKey, wt = rt.getKeyPath, ve = rt.getKeys, xe = rt.getSubPathKeys, ct = c.useMemo(function() {
26475
+ var it = ZR(), ze = it.registerPath, nt = it.unregisterPath, Qt = it.refreshOverflowKeys, ft = it.isSubPathKey, wt = it.getKeyPath, ve = it.getKeys, xe = it.getSubPathKeys, ct = c.useMemo(function() {
26476
26476
  return {
26477
26477
  registerPath: ze,
26478
- unregisterPath: ot
26478
+ unregisterPath: nt
26479
26479
  };
26480
- }, [ze, ot]), dt = c.useMemo(function() {
26480
+ }, [ze, nt]), dt = c.useMemo(function() {
26481
26481
  return {
26482
26482
  isSubPathKey: ft
26483
26483
  };
26484
26484
  }, [ft]);
26485
26485
  c.useEffect(function() {
26486
- Qt(Pe ? Li : be.slice(P + 1).map(function(Ge) {
26486
+ Qt(Le ? Li : be.slice(P + 1).map(function(Ge) {
26487
26487
  return Ge.key;
26488
26488
  }));
26489
- }, [P, Pe]);
26489
+ }, [P, Le]);
26490
26490
  var Ft = Dn(y || T && ((n = be[0]) === null || n === void 0 ? void 0 : n.key), {
26491
26491
  value: y
26492
26492
  }), Qn = $(Ft, 2), ln = Qn[0], Jn = Qn[1], Kr = qA(function(Ge) {
@@ -26570,7 +26570,7 @@ var pT = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
26570
26570
  prefixCls: "".concat(o, "-overflow"),
26571
26571
  component: "ul",
26572
26572
  itemComponent: pl,
26573
- className: Ae(o, "".concat(o, "-root"), "".concat(o, "-").concat(Vt), s, F(F({}, "".concat(o, "-inline-collapsed"), Le), "".concat(o, "-rtl"), et), A),
26573
+ className: Ae(o, "".concat(o, "-root"), "".concat(o, "-").concat(Vt), s, F(F({}, "".concat(o, "-inline-collapsed"), Pe), "".concat(o, "-rtl"), et), A),
26574
26574
  dir: p,
26575
26575
  style: a,
26576
26576
  role: "menu",
@@ -26584,7 +26584,7 @@ var pT = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
26584
26584
  return /* @__PURE__ */ c.createElement(aa, {
26585
26585
  eventKey: Cd,
26586
26586
  title: le,
26587
- disabled: Pe,
26587
+ disabled: Le,
26588
26588
  internalPopupClose: Et === 0,
26589
26589
  popupClassName: te
26590
26590
  }, Bt);
@@ -30296,9 +30296,9 @@ var p5 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
30296
30296
  var xt = Dn(!1, {
30297
30297
  defaultValue: f,
30298
30298
  value: I
30299
- }), mt = $(xt, 2), Ke = mt[0], $e = mt[1], Ie = en ? Ke : !1, it = !V && g;
30300
- (C || it && Ie && m === "combobox") && (Ie = !1);
30301
- var Vt = it ? !1 : Ie, Be = c.useCallback(function(St) {
30299
+ }), mt = $(xt, 2), Ke = mt[0], $e = mt[1], Ie = en ? Ke : !1, ot = !V && g;
30300
+ (C || ot && Ie && m === "combobox") && (Ie = !1);
30301
+ var Vt = ot ? !1 : Ie, Be = c.useCallback(function(St) {
30302
30302
  var Ge = St !== void 0 ? St : !Ie;
30303
30303
  C || ($e(Ge), Ie !== Ge && (x == null || x(Ge)));
30304
30304
  }, [C, Ie, $e, x]), qe = c.useMemo(function() {
@@ -30307,11 +30307,11 @@ var p5 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
30307
30307
  `, `\r
30308
30308
  `].includes(St);
30309
30309
  });
30310
- }, [O]), je = c.useContext(Tg) || {}, Le = je.maxCount, Qe = je.rawValues, R = function(Ge, ht, Et) {
30311
- if (!(me && yd(Le) && (Qe == null ? void 0 : Qe.size) >= Le)) {
30310
+ }, [O]), je = c.useContext(Tg) || {}, Pe = je.maxCount, Qe = je.rawValues, R = function(Ge, ht, Et) {
30311
+ if (!(me && yd(Pe) && (Qe == null ? void 0 : Qe.size) >= Pe)) {
30312
30312
  var Bt = !0, Nt = Ge;
30313
30313
  E == null || E(null);
30314
- var wn = f5(Ge, O, yd(Le) ? Le - Qe.size : void 0), Sn = Et ? null : wn;
30314
+ var wn = f5(Ge, O, yd(Pe) ? Pe - Qe.size : void 0), Sn = Et ? null : wn;
30315
30315
  return m !== "combobox" && Sn && (Nt = "", B == null || B(Sn), Be(!1), Bt = !1), b && lt !== Nt && b(Nt, {
30316
30316
  source: ht ? "typing" : "effect"
30317
30317
  }), Bt;
@@ -30326,9 +30326,9 @@ var p5 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
30326
30326
  }, [Ie]), c.useEffect(function() {
30327
30327
  Ke && C && $e(!1), C && !_e.current && Se(!1);
30328
30328
  }, [C]);
30329
- var P = uC(), pe = $(P, 2), Pe = pe[0], rt = pe[1], ze = c.useRef(!1), ot = function(Ge) {
30330
- var ht = Pe(), Et = Ge.key, Bt = Et === "Enter";
30331
- if (Bt && (m !== "combobox" && Ge.preventDefault(), Ie || Be(!0)), rt(!!lt), Et === "Backspace" && !ht && me && !lt && u.length) {
30329
+ var P = uC(), pe = $(P, 2), Le = pe[0], it = pe[1], ze = c.useRef(!1), nt = function(Ge) {
30330
+ var ht = Le(), Et = Ge.key, Bt = Et === "Enter";
30331
+ if (Bt && (m !== "combobox" && Ge.preventDefault(), Ie || Be(!0)), it(!!lt), Et === "Backspace" && !ht && me && !lt && u.length) {
30332
30332
  for (var Nt = we(u), wn = null, Sn = Nt.length - 1; Sn >= 0; Sn -= 1) {
30333
30333
  var Wn = Nt[Sn];
30334
30334
  if (!Wn.disabled) {
@@ -30498,7 +30498,7 @@ var p5 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
30498
30498
  }, De, {
30499
30499
  ref: Ye,
30500
30500
  onMouseDown: Ft,
30501
- onKeyDown: ot,
30501
+ onKeyDown: nt,
30502
30502
  onKeyUp: Qt,
30503
30503
  onFocus: xe,
30504
30504
  onBlur: ct
@@ -31113,14 +31113,14 @@ function O5(t, e) {
31113
31113
  var xe = ve;
31114
31114
  return Number.isNaN(en.current) || (xe = Math.min(xe, en.current)), xe = Math.max(xe, 0), xe;
31115
31115
  }
31116
- var xt = oe <= 0, mt = oe >= rn, Ke = he <= 0, $e = he >= v, Ie = VC(xt, mt, Ke, $e), it = function() {
31116
+ var xt = oe <= 0, mt = oe >= rn, Ke = he <= 0, $e = he >= v, Ie = VC(xt, mt, Ke, $e), ot = function() {
31117
31117
  return {
31118
31118
  x: j ? -he : he,
31119
31119
  y: oe
31120
31120
  };
31121
- }, Vt = Me(it()), Be = An(function(ve) {
31121
+ }, Vt = Me(ot()), Be = An(function(ve) {
31122
31122
  if (S) {
31123
- var xe = Q(Q({}, it()), ve);
31123
+ var xe = Q(Q({}, ot()), ve);
31124
31124
  (Vt.current.x !== xe.x || Vt.current.y !== xe.y) && (S(xe), Vt.current = xe);
31125
31125
  }
31126
31126
  });
@@ -31134,14 +31134,14 @@ function O5(t, e) {
31134
31134
  var xe = ve.currentTarget.scrollTop;
31135
31135
  xe !== oe && Fe(xe), w == null || w(ve), Be();
31136
31136
  }
31137
- var Le = function(xe) {
31137
+ var Pe = function(xe) {
31138
31138
  var ct = xe, dt = v ? v - Se.width : 0;
31139
31139
  return ct = Math.max(ct, 0), ct = Math.min(ct, dt), ct;
31140
31140
  }, Qe = An(function(ve, xe) {
31141
31141
  xe ? (pc(function() {
31142
31142
  Z(function(ct) {
31143
31143
  var dt = ct + (j ? -ve : ve);
31144
- return Le(dt);
31144
+ return Pe(dt);
31145
31145
  });
31146
31146
  }), Be()) : Fe(function(ct) {
31147
31147
  var dt = ct + ve;
@@ -31177,27 +31177,27 @@ function O5(t, e) {
31177
31177
  };
31178
31178
  }, [U, xt, mt]), nn(function() {
31179
31179
  if (v) {
31180
- var ve = Le(he);
31180
+ var ve = Pe(he);
31181
31181
  Z(ve), Be({
31182
31182
  x: ve
31183
31183
  });
31184
31184
  }
31185
31185
  }, [Se.width, v]);
31186
- var Pe = function() {
31186
+ var Le = function() {
31187
31187
  var xe, ct;
31188
31188
  (xe = vt.current) === null || xe === void 0 || xe.delayHidden(), (ct = Ot.current) === null || ct === void 0 || ct.delayHidden();
31189
- }, rt = M5(K, X, D, A, y, function() {
31189
+ }, it = M5(K, X, D, A, y, function() {
31190
31190
  return O(!0);
31191
- }, Fe, Pe);
31191
+ }, Fe, Le);
31192
31192
  c.useImperativeHandle(e, function() {
31193
31193
  return {
31194
31194
  nativeElement: z.current,
31195
- getScrollInfo: it,
31195
+ getScrollInfo: ot,
31196
31196
  scrollTo: function(xe) {
31197
31197
  function ct(dt) {
31198
31198
  return dt && tt(dt) === "object" && ("left" in dt || "top" in dt);
31199
31199
  }
31200
- ct(xe) ? (xe.left !== void 0 && Z(Le(xe.left)), rt(xe.top)) : rt(xe);
31200
+ ct(xe) ? (xe.left !== void 0 && Z(Pe(xe.left)), it(xe.top)) : it(xe);
31201
31201
  }
31202
31202
  };
31203
31203
  }), nn(function() {
@@ -31206,7 +31206,7 @@ function O5(t, e) {
31206
31206
  M(ve, X);
31207
31207
  }
31208
31208
  }, [Ue, _e, X]);
31209
- var ze = y5(X, y, D, A), ot = f == null ? void 0 : f({
31209
+ var ze = y5(X, y, D, A), nt = f == null ? void 0 : f({
31210
31210
  start: Ue,
31211
31211
  end: _e,
31212
31212
  virtual: H,
@@ -31230,7 +31230,7 @@ function O5(t, e) {
31230
31230
  style: ft,
31231
31231
  ref: K,
31232
31232
  onScroll: je,
31233
- onMouseEnter: Pe
31233
+ onMouseEnter: Le
31234
31234
  }, /* @__PURE__ */ c.createElement(mC, {
31235
31235
  prefixCls: r,
31236
31236
  height: He,
@@ -31241,7 +31241,7 @@ function O5(t, e) {
31241
31241
  ref: J,
31242
31242
  innerProps: I,
31243
31243
  rtl: j,
31244
- extra: ot
31244
+ extra: nt
31245
31245
  }, Qt))), H && He > o && /* @__PURE__ */ c.createElement(Id, {
31246
31246
  ref: vt,
31247
31247
  prefixCls: r,
@@ -31667,24 +31667,24 @@ var qC = /* @__PURE__ */ c.forwardRef(function(t, e) {
31667
31667
  }), oe = $(W, 2), ae = oe[0], le = oe[1], te = H5(I, x, ee, S, M), he = te.valueOptions, Z = te.labelOptions, ce = te.options, se = c.useCallback(function(Be) {
31668
31668
  var qe = Rg(Be);
31669
31669
  return qe.map(function(je) {
31670
- var Le, Qe, R, Y, P;
31670
+ var Pe, Qe, R, Y, P;
31671
31671
  if (W5(je))
31672
- Le = je;
31672
+ Pe = je;
31673
31673
  else {
31674
31674
  var pe;
31675
- R = je.key, Qe = je.label, Le = (pe = je.value) !== null && pe !== void 0 ? pe : R;
31675
+ R = je.key, Qe = je.label, Pe = (pe = je.value) !== null && pe !== void 0 ? pe : R;
31676
31676
  }
31677
- var Pe = he.get(Le);
31678
- if (Pe) {
31679
- var rt;
31680
- if (Qe === void 0 && (Qe = Pe == null ? void 0 : Pe[M || ee.label]), R === void 0 && (R = (rt = Pe == null ? void 0 : Pe.key) !== null && rt !== void 0 ? rt : Le), Y = Pe == null ? void 0 : Pe.disabled, P = Pe == null ? void 0 : Pe.title, process.env.NODE_ENV !== "production" && !M) {
31681
- var ze = Pe == null ? void 0 : Pe[ee.label];
31677
+ var Le = he.get(Pe);
31678
+ if (Le) {
31679
+ var it;
31680
+ if (Qe === void 0 && (Qe = Le == null ? void 0 : Le[M || ee.label]), R === void 0 && (R = (it = Le == null ? void 0 : Le.key) !== null && it !== void 0 ? it : Pe), Y = Le == null ? void 0 : Le.disabled, P = Le == null ? void 0 : Le.title, process.env.NODE_ENV !== "production" && !M) {
31681
+ var ze = Le == null ? void 0 : Le[ee.label];
31682
31682
  ze !== void 0 && !/* @__PURE__ */ c.isValidElement(ze) && !/* @__PURE__ */ c.isValidElement(Qe) && ze !== Qe && Ct(!1, "`label` of `value` is not same as `label` in Select options.");
31683
31683
  }
31684
31684
  }
31685
31685
  return {
31686
31686
  label: Qe,
31687
- value: Le,
31687
+ value: Pe,
31688
31688
  key: R,
31689
31689
  disabled: Y,
31690
31690
  title: P
@@ -31724,14 +31724,14 @@ var qC = /* @__PURE__ */ c.forwardRef(function(t, e) {
31724
31724
  }), He = c.useMemo(function() {
31725
31725
  if (r !== "tags")
31726
31726
  return ce;
31727
- var Be = we(ce), qe = function(Le) {
31728
- return he.has(Le);
31727
+ var Be = we(ce), qe = function(Pe) {
31728
+ return he.has(Pe);
31729
31729
  };
31730
- return we(fe).sort(function(je, Le) {
31731
- return je.value < Le.value ? -1 : 1;
31730
+ return we(fe).sort(function(je, Pe) {
31731
+ return je.value < Pe.value ? -1 : 1;
31732
31732
  }).forEach(function(je) {
31733
- var Le = je.value;
31734
- qe(Le) || Be.push(Xe(Le, je.label));
31733
+ var Pe = je.value;
31734
+ qe(Pe) || Be.push(Xe(Pe, je.label));
31735
31735
  }), Be;
31736
31736
  }, [Xe, ce, he, fe, r]), Ue = k5(He, ee, ae, z, S), _e = c.useMemo(function() {
31737
31737
  return r !== "tags" || !ae || Ue.some(function(Be) {
@@ -31740,15 +31740,15 @@ var qC = /* @__PURE__ */ c.forwardRef(function(t, e) {
31740
31740
  return Be[ee.value] === ae;
31741
31741
  }) ? Ue : [Xe(ae)].concat(we(Ue));
31742
31742
  }, [Xe, S, r, Ue, ae, ee]), ut = function Be(qe) {
31743
- var je = we(qe).sort(function(Le, Qe) {
31744
- return w(Le, Qe, {
31743
+ var je = we(qe).sort(function(Pe, Qe) {
31744
+ return w(Pe, Qe, {
31745
31745
  searchValue: ae
31746
31746
  });
31747
31747
  });
31748
- return je.map(function(Le) {
31749
- return Array.isArray(Le.options) ? Q(Q({}, Le), {}, {
31750
- options: Le.options.length > 0 ? Be(Le.options) : Le.options
31751
- }) : Le;
31748
+ return je.map(function(Pe) {
31749
+ return Array.isArray(Pe.options) ? Q(Q({}, Pe), {}, {
31750
+ options: Pe.options.length > 0 ? Be(Pe.options) : Pe.options
31751
+ }) : Pe;
31752
31752
  });
31753
31753
  }, et = c.useMemo(function() {
31754
31754
  return w ? ut(_e) : _e;
@@ -31764,22 +31764,22 @@ var qC = /* @__PURE__ */ c.forwardRef(function(t, e) {
31764
31764
  var P;
31765
31765
  return ((P = fe[Y]) === null || P === void 0 ? void 0 : P.value) !== (R == null ? void 0 : R.value);
31766
31766
  }))) {
31767
- var Le = L ? je : je.map(function(R) {
31767
+ var Pe = L ? je : je.map(function(R) {
31768
31768
  return R.value;
31769
31769
  }), Qe = je.map(function(R) {
31770
31770
  return wd(be(R.value));
31771
31771
  });
31772
31772
  H(
31773
31773
  // Value
31774
- K ? Le : Le[0],
31774
+ K ? Pe : Pe[0],
31775
31775
  // Option
31776
31776
  K ? Qe : Qe[0]
31777
31777
  );
31778
31778
  }
31779
31779
  }, st = c.useState(null), lt = $(st, 2), vt = lt[0], Ot = lt[1], $t = c.useState(0), _t = $($t, 2), rn = _t[0], en = _t[1], Kt = q !== void 0 ? q : r !== "combobox", xt = c.useCallback(function(Be, qe) {
31780
- var je = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Le = je.source, Qe = Le === void 0 ? "keyboard" : Le;
31780
+ var je = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Pe = je.source, Qe = Pe === void 0 ? "keyboard" : Pe;
31781
31781
  en(qe), A && r === "combobox" && Be !== null && Qe === "keyboard" && Ot(String(Be));
31782
- }, [A, r]), mt = function(qe, je, Le) {
31782
+ }, [A, r]), mt = function(qe, je, Pe) {
31783
31783
  var Qe = function() {
31784
31784
  var ft, wt = be(qe);
31785
31785
  return [L ? {
@@ -31791,32 +31791,32 @@ var qC = /* @__PURE__ */ c.forwardRef(function(t, e) {
31791
31791
  if (je && p) {
31792
31792
  var R = Qe(), Y = $(R, 2), P = Y[0], pe = Y[1];
31793
31793
  p(P, pe);
31794
- } else if (!je && V && Le !== "clear") {
31795
- var Pe = Qe(), rt = $(Pe, 2), ze = rt[0], ot = rt[1];
31796
- V(ze, ot);
31794
+ } else if (!je && V && Pe !== "clear") {
31795
+ var Le = Qe(), it = $(Le, 2), ze = it[0], nt = it[1];
31796
+ V(ze, nt);
31797
31797
  }
31798
31798
  }, Ke = Hm(function(Be, qe) {
31799
- var je, Le = K ? qe.selected : !0;
31800
- Le ? je = K ? [].concat(we(fe), [Be]) : [Be] : je = fe.filter(function(Qe) {
31799
+ var je, Pe = K ? qe.selected : !0;
31800
+ Pe ? je = K ? [].concat(we(fe), [Be]) : [Be] : je = fe.filter(function(Qe) {
31801
31801
  return Qe.value !== Be;
31802
- }), Se(je), mt(Be, Le), r === "combobox" ? Ot("") : (!Bs || g) && (le(""), Ot(""));
31802
+ }), Se(je), mt(Be, Pe), r === "combobox" ? Ot("") : (!Bs || g) && (le(""), Ot(""));
31803
31803
  }), $e = function(qe, je) {
31804
31804
  Se(qe);
31805
- var Le = je.type, Qe = je.values;
31806
- (Le === "remove" || Le === "clear") && Qe.forEach(function(R) {
31807
- mt(R.value, !1, Le);
31805
+ var Pe = je.type, Qe = je.values;
31806
+ (Pe === "remove" || Pe === "clear") && Qe.forEach(function(R) {
31807
+ mt(R.value, !1, Pe);
31808
31808
  });
31809
31809
  }, Ie = function(qe, je) {
31810
31810
  if (le(qe), Ot(null), je.source === "submit") {
31811
- var Le = (qe || "").trim();
31812
- if (Le) {
31813
- var Qe = Array.from(new Set([].concat(we(We), [Le])));
31814
- Se(Qe), mt(Le, !0), le("");
31811
+ var Pe = (qe || "").trim();
31812
+ if (Pe) {
31813
+ var Qe = Array.from(new Set([].concat(we(We), [Pe])));
31814
+ Se(Qe), mt(Pe, !0), le("");
31815
31815
  }
31816
31816
  return;
31817
31817
  }
31818
31818
  je.source !== "blur" && (r === "combobox" && Se(qe), u == null || u(qe));
31819
- }, it = function(qe) {
31819
+ }, ot = function(qe) {
31820
31820
  var je = qe;
31821
31821
  r !== "tags" && (je = qe.map(function(Qe) {
31822
31822
  var R = Z.get(Qe);
@@ -31824,8 +31824,8 @@ var qC = /* @__PURE__ */ c.forwardRef(function(t, e) {
31824
31824
  }).filter(function(Qe) {
31825
31825
  return Qe !== void 0;
31826
31826
  }));
31827
- var Le = Array.from(new Set([].concat(we(We), we(je))));
31828
- Se(Le), Le.forEach(function(Qe) {
31827
+ var Pe = Array.from(new Set([].concat(we(We), we(je))));
31828
+ Se(Pe), Pe.forEach(function(Qe) {
31829
31829
  mt(Qe, !0);
31830
31830
  });
31831
31831
  }, Vt = c.useMemo(function() {
@@ -31862,7 +31862,7 @@ var qC = /* @__PURE__ */ c.forwardRef(function(t, e) {
31862
31862
  searchValue: ae,
31863
31863
  onSearch: Ie,
31864
31864
  autoClearSearchValue: g,
31865
- onSearchSplit: it,
31865
+ onSearchSplit: ot,
31866
31866
  dropdownMatchSelectWidth: m,
31867
31867
  OptionList: CC,
31868
31868
  emptyOptions: !Te.length,
@@ -32755,7 +32755,7 @@ const OO = {
32755
32755
  空闲: 1,
32756
32756
  离线: 0,
32757
32757
  未注册: 4
32758
- }, FO = Xm(() => import("./ConsultModel-CV4qaQuF.mjs")), QO = Xm(() => import("./TransferModel-Cd3MZsmB.mjs")), fc = sn.div`
32758
+ }, FO = Xm(() => import("./ConsultModel-B0E7BXog.mjs")), QO = Xm(() => import("./TransferModel-CeDl63IH.mjs")), fc = sn.div`
32759
32759
  width: 25px;
32760
32760
  height: 25px;
32761
32761
  background: ${({
@@ -32766,7 +32766,7 @@ const OO = {
32766
32766
  justify-content: center;
32767
32767
  align-items: center;
32768
32768
  `, UD = (t) => {
32769
- var je, Le, Qe;
32769
+ var je, Pe, Qe;
32770
32770
  const {
32771
32771
  style: e,
32772
32772
  logBuiltinEnabled: n,
@@ -32977,11 +32977,14 @@ const OO = {
32977
32977
  if (P) {
32978
32978
  const {
32979
32979
  default_device: pe,
32980
- init_state: Pe,
32981
- out_display_select_switch: rt,
32982
- out_display_data: ze
32980
+ init_state: Le,
32981
+ out_display_select_switch: it,
32982
+ out_display_data: ze,
32983
+ stateObject: {
32984
+ state_name: nt
32985
+ }
32983
32986
  } = S.current.getAgentData();
32984
- W(rt === 1), rt === 1 && ae((ze || "").split("#")), U(pe), H(Pe === 1 ? "空闲" : "忙碌"), ut();
32987
+ W(it === 1), it === 1 && ae((ze || "").split("#")), U(pe), H(nt), ut();
32985
32988
  }
32986
32989
  }).on(ke.SELECT_EXTERNAL_NUMBER, (P) => {
32987
32990
  te(P);
@@ -33267,7 +33270,7 @@ const OO = {
33267
33270
  } = JSON.parse(Y.message);
33268
33271
  It.warning(P);
33269
33272
  }
33270
- }, it = async () => {
33273
+ }, ot = async () => {
33271
33274
  var R;
33272
33275
  try {
33273
33276
  await ((R = S.current) == null ? void 0 : R.call_api.forceInsert({}));
@@ -33441,7 +33444,7 @@ const OO = {
33441
33444
  name: "force_insert",
33442
33445
  size: 15,
33443
33446
  color: "#fff",
33444
- onClick: it
33447
+ onClick: ot
33445
33448
  })
33446
33449
  })
33447
33450
  },
@@ -33758,7 +33761,7 @@ const OO = {
33758
33761
  })]
33759
33762
  })
33760
33763
  }) : /* @__PURE__ */ ue.jsx(ue.Fragment, {}), /* @__PURE__ */ ue.jsx(Gg, {
33761
- children: ce && ((Le = S.current) == null ? void 0 : Le.agent_api) && /* @__PURE__ */ ue.jsx(FO, {
33764
+ children: ce && ((Pe = S.current) == null ? void 0 : Pe.agent_api) && /* @__PURE__ */ ue.jsx(FO, {
33762
33765
  open: ce,
33763
33766
  queryFetch: S.current.agent_api.getIdleAgentList,
33764
33767
  onCallBack: (R) => {