ysyt-react-agent-lib 1.2.28 → 1.2.30

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.
@@ -1229,22 +1229,22 @@ var ab = function t(e) {
1229
1229
  }), R = $(T, 2), N = R[0], D = R[1];
1230
1230
  m = j(j({}, m), D), C += "".concat(h).concat(N);
1231
1231
  } else {
1232
- let U = function(q, K) {
1232
+ let U = function(Z, K) {
1233
1233
  process.env.NODE_ENV !== "production" && (rt(E) !== "object" || !(E != null && E[xv])) && [eb, tb].concat(Re(v)).forEach(function(_) {
1234
- return _(q, K, {
1234
+ return _(Z, K, {
1235
1235
  path: c,
1236
1236
  hashId: s,
1237
1237
  parentSelectors: a
1238
1238
  });
1239
1239
  });
1240
- var G = q.replace(/[A-Z]/g, function(_) {
1240
+ var G = Z.replace(/[A-Z]/g, function(_) {
1241
1241
  return "-".concat(_.toLowerCase());
1242
1242
  }), L = K;
1243
- !PE[q] && typeof L == "number" && L !== 0 && (L = "".concat(L, "px")), q === "animationName" && K !== null && K !== void 0 && K._keyframe && (y(K), L = K.getName(s)), C += "".concat(G, ":").concat(L, ";");
1243
+ !PE[Z] && typeof L == "number" && L !== 0 && (L = "".concat(L, "px")), Z === "animationName" && K !== null && K !== void 0 && K._keyframe && (y(K), L = K.getName(s)), C += "".concat(G, ":").concat(L, ";");
1244
1244
  };
1245
1245
  var F, k = (F = E == null ? void 0 : E.value) !== null && F !== void 0 ? F : E;
1246
- rt(E) === "object" && E !== null && E !== void 0 && E[Rv] && Array.isArray(k) ? k.forEach(function(q) {
1247
- U(M, q);
1246
+ rt(E) === "object" && E !== null && E !== void 0 && E[Rv] && Array.isArray(k) ? k.forEach(function(Z) {
1247
+ U(M, Z);
1248
1248
  }) : U(M, k);
1249
1249
  }
1250
1250
  });
@@ -1277,14 +1277,14 @@ function Tl(t, e) {
1277
1277
  if (F)
1278
1278
  return [F, x, k, {}, s, c];
1279
1279
  }
1280
- var U = e(), q = ab(U, {
1280
+ var U = e(), Z = ab(U, {
1281
1281
  hashId: i,
1282
1282
  hashPriority: v,
1283
1283
  layer: O ? o : void 0,
1284
1284
  path: r.join("-"),
1285
1285
  transformers: y,
1286
1286
  linters: w
1287
- }), K = $(q, 2), G = K[0], L = K[1], _ = qs(G), V = Ov(f, _);
1287
+ }), K = $(Z, 2), G = K[0], L = K[1], _ = qs(G), V = Ov(f, _);
1288
1288
  return [_, x, V, L, s, c];
1289
1289
  },
1290
1290
  // Remove cache if no need
@@ -1306,9 +1306,9 @@ function Tl(t, e) {
1306
1306
  prepend: O ? !1 : "queue",
1307
1307
  attachTo: C,
1308
1308
  priority: c
1309
- }, q = typeof a == "function" ? a() : a;
1310
- q && (U.csp = {
1311
- nonce: q
1309
+ }, Z = typeof a == "function" ? a() : a;
1310
+ Z && (U.csp = {
1311
+ nonce: Z
1312
1312
  });
1313
1313
  var K = [], G = [];
1314
1314
  Object.keys(k).forEach(function(_) {
@@ -1669,12 +1669,12 @@ function mb() {
1669
1669
  }
1670
1670
  }
1671
1671
  }
1672
- var f = a, M = o, E = t, b = A, h = n, S = g, T = d, R = e, N = i, D = r, F = c, k = u, U = !1, q = !1;
1672
+ var f = a, M = o, E = t, b = A, h = n, S = g, T = d, R = e, N = i, D = r, F = c, k = u, U = !1, Z = !1;
1673
1673
  function K(z) {
1674
1674
  return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
1675
1675
  }
1676
1676
  function G(z) {
1677
- return q || (q = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
1677
+ return Z || (Z = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
1678
1678
  }
1679
1679
  function L(z) {
1680
1680
  return x(z) === a;
@@ -2031,7 +2031,7 @@ function Bb(t) {
2031
2031
  return T && Object.keys(C.unitless || {}).forEach(function(W) {
2032
2032
  V.add(Ls(W, T.prefix)), V.add(Ls(W, af(w, T.prefix)));
2033
2033
  }), fb(k, V);
2034
- }, [k, w, T == null ? void 0 : T.prefix]), q = Ob(k), K = q.max, G = q.min, L = {
2034
+ }, [k, w, T == null ? void 0 : T.prefix]), Z = Ob(k), K = Z.max, G = Z.min, L = {
2035
2035
  theme: E,
2036
2036
  token: S,
2037
2037
  hashId: h,
@@ -3919,7 +3919,7 @@ const QS = function(t, e, n) {
3919
3919
  }, []), [d, o];
3920
3920
  };
3921
3921
  function jS(t, e, n, r) {
3922
- var i = r.motionEnter, o = i === void 0 ? !0 : i, a = r.motionAppear, s = a === void 0 ? !0 : a, A = r.motionLeave, c = A === void 0 ? !0 : A, u = r.motionDeadline, d = r.motionLeaveImmediately, g = r.onAppearPrepare, p = r.onEnterPrepare, v = r.onLeavePrepare, C = r.onAppearStart, m = r.onEnterStart, y = r.onLeaveStart, w = r.onAppearActive, I = r.onEnterActive, O = r.onLeaveActive, x = r.onAppearEnd, f = r.onEnterEnd, M = r.onLeaveEnd, E = r.onVisibleChanged, b = La(), h = $(b, 2), S = h[0], T = h[1], R = OS(Ii), N = $(R, 2), D = N[0], F = N[1], k = La(null), U = $(k, 2), q = U[0], K = U[1], G = D(), L = Te(!1), _ = Te(null);
3922
+ var i = r.motionEnter, o = i === void 0 ? !0 : i, a = r.motionAppear, s = a === void 0 ? !0 : a, A = r.motionLeave, c = A === void 0 ? !0 : A, u = r.motionDeadline, d = r.motionLeaveImmediately, g = r.onAppearPrepare, p = r.onEnterPrepare, v = r.onLeavePrepare, C = r.onAppearStart, m = r.onEnterStart, y = r.onLeaveStart, w = r.onAppearActive, I = r.onEnterActive, O = r.onLeaveActive, x = r.onAppearEnd, f = r.onEnterEnd, M = r.onLeaveEnd, E = r.onVisibleChanged, b = La(), h = $(b, 2), S = h[0], T = h[1], R = OS(Ii), N = $(R, 2), D = N[0], F = N[1], k = La(null), U = $(k, 2), Z = U[0], K = U[1], G = D(), L = Te(!1), _ = Te(null);
3923
3923
  function V() {
3924
3924
  return n();
3925
3925
  }
@@ -3990,7 +3990,7 @@ function jS(t, e, n, r) {
3990
3990
  Kt(function() {
3991
3991
  S && (ve.current = !0), S !== void 0 && G === Ii && ((ve.current || S) && (E == null || E(S)), ve.current = !0);
3992
3992
  }, [S, G]);
3993
- var Be = q;
3993
+ var Be = Z;
3994
3994
  return te[Qr] && le === Do && (Be = j({
3995
3995
  transition: "none"
3996
3996
  }, Be)), [G, le, Be, S ?? e];
@@ -4273,7 +4273,7 @@ const ew = (t) => {
4273
4273
  drawer: F,
4274
4274
  skeleton: k,
4275
4275
  steps: U,
4276
- image: q,
4276
+ image: Z,
4277
4277
  layout: K,
4278
4278
  list: G,
4279
4279
  mentions: L,
@@ -4361,7 +4361,7 @@ const ew = (t) => {
4361
4361
  drawer: F,
4362
4362
  skeleton: k,
4363
4363
  steps: U,
4364
- image: q,
4364
+ image: Z,
4365
4365
  input: ce,
4366
4366
  textArea: ue,
4367
4367
  layout: K,
@@ -4617,14 +4617,14 @@ function rw() {
4617
4617
  }
4618
4618
  return null;
4619
4619
  }
4620
- var N = Object.assign, D = 0, F, k, U, q, K, G, L;
4620
+ var N = Object.assign, D = 0, F, k, U, Z, K, G, L;
4621
4621
  function _() {
4622
4622
  }
4623
4623
  _.__reactDisabledLog = !0;
4624
4624
  function V() {
4625
4625
  {
4626
4626
  if (D === 0) {
4627
- F = console.log, k = console.info, U = console.warn, q = console.error, K = console.group, G = console.groupCollapsed, L = console.groupEnd;
4627
+ F = console.log, k = console.info, U = console.warn, Z = console.error, K = console.group, G = console.groupCollapsed, L = console.groupEnd;
4628
4628
  var B = {
4629
4629
  configurable: !0,
4630
4630
  enumerable: !0,
@@ -4663,7 +4663,7 @@ function rw() {
4663
4663
  value: U
4664
4664
  }),
4665
4665
  error: N({}, B, {
4666
- value: q
4666
+ value: Z
4667
4667
  }),
4668
4668
  group: N({}, B, {
4669
4669
  value: K
@@ -5808,8 +5808,8 @@ const lw = function(t, e) {
5808
5808
  c = A, R++;
5809
5809
  break;
5810
5810
  case 26:
5811
- U = T.slice(R + 4, R + 4 + T[R + 3]).map(function(q) {
5812
- return k[k.length - 1 - q];
5811
+ U = T.slice(R + 4, R + 4 + T[R + 3]).map(function(Z) {
5812
+ return k[k.length - 1 - Z];
5813
5813
  }), k.splice(k.length - T[R + 2], T[R + 2], a[T[R + 1]].apply(null, U)), R += 4 + T[R + 3];
5814
5814
  break;
5815
5815
  case 27:
@@ -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
- } }, Z = { 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: 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 {
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 = Z.stateObject) == null ? void 0 : n.state) === Mt.UNREGISTERED) return;
10043
+ if (((n = q.stateObject) == null ? void 0 : n.state) === Mt.UNREGISTERED) return;
10044
10044
  const e = this.get("actionConfigs");
10045
10045
  if (t) {
10046
10046
  const r = [...e.filter((i) => i !== "hold")];
@@ -10055,7 +10055,7 @@ const ge = { on: (t, e) => (ma.on(t, e), ge), off(t, e) {
10055
10055
  this.setState({ displayText: t }), ge.emit(ie.CALL_PROGRESS, t);
10056
10056
  }
10057
10057
  updateActionConfigs(t, e = !0) {
10058
- const { show_satisfaction: n } = Z.agentInfo || {}, r = this.get("answerDevice"), i = t.filter((o) => (n !== 0 || o !== "satisfaction" || !e) && (r !== 2 && r !== 3 || o !== "answer"));
10058
+ const { show_satisfaction: n } = q.agentInfo || {}, r = this.get("answerDevice"), i = t.filter((o) => (n !== 0 || o !== "satisfaction" || !e) && (r !== 2 && r !== 3 || o !== "answer"));
10059
10059
  this.setState({ actionConfigs: i }), ge.emit(Ge.PHONE_BAR_OPERATION, i);
10060
10060
  }
10061
10061
  updateConsultIsAnswer(t) {
@@ -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 = Z.stateObject) == null ? void 0 : n.state) === Mt.UNREGISTERED) return;
10066
+ if (((n = q.stateObject) == null ? void 0 : n.state) === Mt.UNREGISTERED) return;
10067
10067
  const e = this.get("actionConfigs");
10068
10068
  if (t) {
10069
10069
  const r = [...e.filter((i) => i !== "mute")];
@@ -10092,13 +10092,13 @@ const ge = { on: (t, e) => (ma.on(t, e), ge), off(t, e) {
10092
10092
  updateCustomerInfo(t) {
10093
10093
  const e = this.get("displayText");
10094
10094
  if (t && e) {
10095
- const { contact_count: n, customer_name: r, phone: i, city: o, province: a, is_vip: s, in_contact_count: A, trace_id: c, contact_count_month: u, in_contact_count_month: d, type: g } = t;
10096
- ge.emit(ie.CUSTOMER_INFO, { customer_name: r || "未知客户", phone: i, city: o || "未知", province: a || "未知", contact_count: n || 0, in_contact_count: A || 0, is_vip: s, trace_id: c, contact_count_month: u || 0, in_contact_count_month: d || 0, type: g });
10095
+ const { contact_count: n, customer_name: r, phone: i, city: o, province: a, is_vip: s, in_contact_count: A, trace_id: c, contact_count_month: u, in_contact_count_month: d, type: g, session_id: p } = t;
10096
+ ge.emit(ie.CUSTOMER_INFO, { customer_name: r || "未知客户", phone: i, city: o || "未知", province: a || "未知", contact_count: n || 0, in_contact_count: A || 0, is_vip: s, trace_id: c, contact_count_month: u || 0, in_contact_count_month: d || 0, type: g, session_id: p });
10097
10097
  } else ge.emit(ie.CUSTOMER_INFO, void 0);
10098
10098
  this.setState({ customerObject: t });
10099
10099
  }
10100
10100
  updateIsNextState(t) {
10101
- this.setState({ isNextState: t }), t ? ge.emit(Ge.NETWORK_ONLINE) : (Z.stateObject = { state: Mt.OFFLINE, state_name: "离线" }, this.updateActionConfigs([]), ge.emit(ie.AGENT_STATE, Z.stateObject), ge.emit(Ge.NETWORK_OFFLINE));
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));
10102
10102
  }
10103
10103
  updateIsSipConnected(t) {
10104
10104
  this.setState({ isSipConnected: t });
@@ -10528,7 +10528,7 @@ const zf = (t, e) => wn(`${kr}/state/change?h=${e}`, t, { h: e }), Jw = () => as
10528
10528
  class an {
10529
10529
  static log(e, n = {}) {
10530
10530
  const { level: r = "info", module: i = "", timestamp: o = !0 } = n;
10531
- if (Z.logBuiltinEnabled) {
10531
+ if (q.logBuiltinEnabled) {
10532
10532
  const A = i ? `[${i}]` : "", c = o ? `[${(/* @__PURE__ */ new Date()).toLocaleString()}]` : "";
10533
10533
  switch (r) {
10534
10534
  case "debug":
@@ -10540,7 +10540,7 @@ class an {
10540
10540
  console.error(`${c}${A} ${e}`);
10541
10541
  }
10542
10542
  }
10543
- const a = Z.agentInfo.agent_no;
10543
+ const a = q.agentInfo.agent_no;
10544
10544
  if (a) {
10545
10545
  const A = JSON.stringify({ level: r, module: i, content: e, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
10546
10546
  (s = { agent_no: a, content: A }, wn("/v1/aicc/ccs/softphone/log", s)).catch(() => {
@@ -10582,7 +10582,7 @@ class _w {
10582
10582
  async start() {
10583
10583
  const e = Hf.makeURI(`sip:${this.config.user}@${this.config.server}`);
10584
10584
  if (!e) throw new Error("无效的SIP配置");
10585
- const n = { uri: e, authorizationUsername: this.config.user, authorizationPassword: this.config.password, sendInitialProvisionalResponse: !1, transportOptions: { server: this.config.webSocket, connectionTimeout: 10, keepAliveInterval: 20, keepAliveDebounce: 10 }, contactName: this.config.user, contactParams: { transport: "wss" }, userAgentString: "SwiftSIP/2.0.21", sessionDescriptionHandlerFactoryOptions: { alwaysAcquireMediaFirst: !0, peerConnectionConfiguration: { iceServers: [{ urls: "stun:stun.l.google.com:19302" }], iceCandidatePoolSize: 0, iceTransportPolicy: "all", rtcpMuxPolicy: "require", bundlePolicy: "balanced", certificates: void 0, peerIdentity: void 0 }, iceGatheringTimeout: 1e3 }, logBuiltinEnabled: Z.logBuiltinEnabled };
10585
+ const n = { uri: e, authorizationUsername: this.config.user, authorizationPassword: this.config.password, sendInitialProvisionalResponse: !1, transportOptions: { server: this.config.webSocket, connectionTimeout: 10, keepAliveInterval: 20, keepAliveDebounce: 10 }, contactName: this.config.user, contactParams: { transport: "wss" }, userAgentString: "SwiftSIP/2.0.21", sessionDescriptionHandlerFactoryOptions: { alwaysAcquireMediaFirst: !0, peerConnectionConfiguration: { iceServers: [{ urls: "stun:stun.l.google.com:19302" }], iceCandidatePoolSize: 0, iceTransportPolicy: "all", rtcpMuxPolicy: "require", bundlePolicy: "balanced", certificates: void 0, peerIdentity: void 0 }, iceGatheringTimeout: 1e3 }, logBuiltinEnabled: q.logBuiltinEnabled };
10586
10586
  this.userAgent = new Hf(n), this.setupEventListeners(), await this.userAgent.start(), await this.register();
10587
10587
  }
10588
10588
  setupEventListeners() {
@@ -10594,7 +10594,7 @@ class _w {
10594
10594
  n = ur.WEB_RTC_CONNECTING;
10595
10595
  break;
10596
10596
  case gt.Connected:
10597
- n = ur.WEB_RTC_CONNECTED, this.reconnectAttempts = 0, Z.isRtcReconnecting = !1, H.updateIsSipConnected(!0), this.reconnectTimer && (clearTimeout(this.reconnectTimer), this.reconnectTimer = null);
10597
+ n = ur.WEB_RTC_CONNECTED, this.reconnectAttempts = 0, q.isRtcReconnecting = !1, H.updateIsSipConnected(!0), this.reconnectTimer && (clearTimeout(this.reconnectTimer), this.reconnectTimer = null);
10598
10598
  break;
10599
10599
  case gt.Disconnecting:
10600
10600
  n = ur.WEB_RTC_DISCONNECTING, H.updateIsSipConnected(!1);
@@ -10603,7 +10603,7 @@ class _w {
10603
10603
  if (H.updateIsSipConnected(!1), this.isManuallyStopped) return an.warn("手动断开,不触发重连", "sip-client.ts 204"), void console.warn("[SIP] 手动断开,不触发重连");
10604
10604
  ge.emit(Ge.FAIL_NOTIFICATION, "软电话链接失败"), n = ur.WEB_RTC_DISCONNECTED;
10605
10605
  const i = H.get("answerDevice");
10606
- if (!Z.isRtcReconnecting && this.reconnectAttempts < this.maxReconnectAttempts && i === 1) {
10606
+ if (!q.isRtcReconnecting && this.reconnectAttempts < this.maxReconnectAttempts && i === 1) {
10607
10607
  this.reconnectAttempts++;
10608
10608
  const o = 1e3 * this.reconnectAttempts;
10609
10609
  an.warn(`SIP WebSocket 断开,第 ${this.reconnectAttempts} 次尝试重连,${o}ms 后重试...`, "sip-client.ts 219"), this.reconnectTimer = setTimeout(() => {
@@ -10693,7 +10693,7 @@ class _w {
10693
10693
  async answerCall() {
10694
10694
  var e;
10695
10695
  if (!this.incomingInvitation) throw new Error("无来电可接听");
10696
- Z.autoAnswerTimer && (clearTimeout(Z.autoAnswerTimer), Z.autoAnswerTimer = null);
10696
+ q.autoAnswerTimer && (clearTimeout(q.autoAnswerTimer), q.autoAnswerTimer = null);
10697
10697
  try {
10698
10698
  await this.incomingInvitation.accept(), this.activeSession = this.incomingInvitation, this.incomingInvitation = null;
10699
10699
  } catch (n) {
@@ -10744,14 +10744,14 @@ class _w {
10744
10744
  this.userAgent && (await this.userAgent.stop(), this.userAgent = null);
10745
10745
  }
10746
10746
  async reconnect() {
10747
- if (!Z.isRtcReconnecting) {
10748
- Z.isRtcReconnecting = !0;
10747
+ if (!q.isRtcReconnecting) {
10748
+ q.isRtcReconnecting = !0;
10749
10749
  try {
10750
10750
  this.isManuallyStopped = !1, await this.destroy(), await this.start(), this.isOffline = !1, this.reconnectAttempts = 0;
10751
10751
  } catch (e) {
10752
- console.error("重连失败", e), Z.isRtcReconnecting = !1;
10752
+ console.error("重连失败", e), q.isRtcReconnecting = !1;
10753
10753
  } finally {
10754
- Z.isRtcReconnecting = !1;
10754
+ q.isRtcReconnecting = !1;
10755
10755
  }
10756
10756
  }
10757
10757
  }
@@ -10765,7 +10765,7 @@ class _w {
10765
10765
  o.type === "candidate-pair" && o.state === "succeeded" && o.currentRoundTripTime != null && (i.rtt = +(1e3 * o.currentRoundTripTime).toFixed(2)), o.type === "inbound-rtp" && o.kind === "audio" && (i.jitter = +(1e3 * o.jitter).toFixed(2), i.packetsLost = o.packetsLost, i.packetsReceived = o.packetsReceived, o.bytesReceived && o.timestamp && (i.recvBitrate = +(o.bytesReceived / 1024).toFixed(2))), o.type === "outbound-rtp" && o.kind === "audio" && (i.packetsSent = o.packetsSent, o.bytesSent && o.timestamp && (i.sendBitrate = +(o.bytesSent / 1024).toFixed(2))), o.type === "codec" && o.mimeType && (i.codec = o.mimeType);
10766
10766
  }), { ...i, rtt: (i == null ? void 0 : i.rtt) || 40 };
10767
10767
  }
10768
- return { rtt: Z.latency || 1 };
10768
+ return { rtt: q.latency || 1 };
10769
10769
  }
10770
10770
  }
10771
10771
  class Fo {
@@ -10800,12 +10800,12 @@ class Va {
10800
10800
  constructor() {
10801
10801
  this.roleData = { agentInfo: () => {
10802
10802
  var e;
10803
- if (!((e = Z.agentInfo) != null && e.agent_no)) throw new Error(JSON.stringify({ code: 1, msg: "请先登录" }));
10803
+ if (!((e = q.agentInfo) != null && e.agent_no)) throw new Error(JSON.stringify({ code: 1, msg: "请先登录" }));
10804
10804
  }, requestInfo: (e) => {
10805
10805
  if (!e.data) throw new Error(JSON.stringify({ code: 1, msg: 'Parameter "data" is required' }));
10806
10806
  }, changeDevice: (e) => {
10807
10807
  if (!e) throw new Error(JSON.stringify({ code: 1, msg: 'Parameter "device" is required' }));
10808
- const { answer_devices: n } = Z.agentInfo;
10808
+ const { answer_devices: n } = q.agentInfo;
10809
10809
  if (!n.split(",").map((r) => Number(r)).includes(e)) throw new Error(JSON.stringify({ code: 1, msg: "当前状态不支持" }));
10810
10810
  }, changeState: (e, n) => {
10811
10811
  if (!e) throw new Error(JSON.stringify({ code: 1, msg: 'Parameter "state" is required' }));
@@ -10813,7 +10813,7 @@ class Va {
10813
10813
  if (e === 2 && (n === "通话中" || n === "整理")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态不支持" }));
10814
10814
  if (![1, 2].includes(e)) throw new Error(JSON.stringify({ code: 1, msg: "当前状态不支持" }));
10815
10815
  }, setAgentExplicit: (e) => {
10816
- const { out_display_select_switch: n, out_display_data: r } = Z.agentInfo;
10816
+ const { out_display_select_switch: n, out_display_data: r } = q.agentInfo;
10817
10817
  if (n !== 1) throw new Error(JSON.stringify({ code: 1, msg: "当前坐席设置未开启允许指定外显" }));
10818
10818
  if (!e) throw new Error(JSON.stringify({ code: 1, msg: 'Parameter "number" is required' }));
10819
10819
  if (!(r || "").split("#").includes(e)) throw new Error(JSON.stringify({ code: 1, msg: "当前外显号码不存在" }));
@@ -10823,10 +10823,10 @@ class Va {
10823
10823
  this.roleData.agentInfo(), this.roleData.requestInfo(e);
10824
10824
  const { data: n, success: r } = e, { device: i } = n;
10825
10825
  i === 1 && await Va.initRtcFn(), this.roleData.changeDevice(i);
10826
- const { agent_no: o } = Z.agentInfo;
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 && Z.stateObject.state === Mt.UNREGISTERED && await this._changeState({ data: { ...Z.stateBeforeChange, state_name: Z.stateBeforeChange.state === Mt.IDLE ? "空闲" : "忙碌" } }, "q"), r == null || r({ code: 0, msg: "请求成功" });
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: "请求成功" });
10830
10830
  } catch (n) {
10831
10831
  throw ge.emit(Ge.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
10832
10832
  }
@@ -10841,7 +10841,7 @@ class Va {
10841
10841
  async _agentLogin(e) {
10842
10842
  try {
10843
10843
  const r = await (n = { agent_no: e }, wn(`${kr}/agent/login`, n));
10844
- Z.agentInfo = r.data;
10844
+ q.agentInfo = r.data;
10845
10845
  } catch (r) {
10846
10846
  throw ge.emit(Ge.FAIL_NOTIFICATION, JSON.parse(r.message).msg), r;
10847
10847
  }
@@ -10849,9 +10849,9 @@ class Va {
10849
10849
  }
10850
10850
  async _changeState(e, n) {
10851
10851
  try {
10852
- Z.autoStateTimer && (clearTimeout(Z.autoStateTimer), Z.autoStateTimer = null), this.roleData.agentInfo(), this.roleData.requestInfo(e);
10853
- const { data: r, success: i } = e, { state: o, state_name: a } = r, { agent_no: s } = Z.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), Z.stateObject = { state: o, state_name: a }, i == null || i({ code: 0, msg: "请求成功" });
10852
+ q.autoStateTimer && (clearTimeout(q.autoStateTimer), q.autoStateTimer = null), this.roleData.agentInfo(), this.roleData.requestInfo(e);
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: "请求成功" });
10855
10855
  } catch (r) {
10856
10856
  throw ge.emit(Ge.FAIL_NOTIFICATION, JSON.parse(r.message).msg), r;
10857
10857
  }
@@ -10870,18 +10870,18 @@ class Va {
10870
10870
  async changeState(e, n) {
10871
10871
  try {
10872
10872
  if (H.get("isCalling")) throw new Error(JSON.stringify({ code: 1, msg: "当前正在通话中,请勿切换设备" }));
10873
- Z.autoStateTimer && (clearTimeout(Z.autoStateTimer), Z.autoStateTimer = null), this.roleData.agentInfo(), this.roleData.requestInfo(e);
10873
+ q.autoStateTimer && (clearTimeout(q.autoStateTimer), q.autoStateTimer = null), this.roleData.agentInfo(), this.roleData.requestInfo(e);
10874
10874
  const { data: r, success: i } = e, { state: o, state_name: a } = r;
10875
10875
  this.roleData.changeState(o, a);
10876
- const { agent_no: s } = Z.agentInfo;
10877
- await zf({ agent_no: s, state_name: a, state: o }, n), (Z.stateObject.state === Mt.IDLE || Z.stateObject.state === Mt.BUSY && a !== "整理") && (Z.stateBeforeChange = Z.stateObject), o === Mt.IDLE ? H.updateActionConfigs(Wn) : o === Mt.BUSY && H.updateActionConfigs(fA), Z.stateObject = { state: o, state_name: a }, i == null || i({ code: 0, msg: "请求成功" });
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: "请求成功" });
10878
10878
  } catch (r) {
10879
10879
  throw ge.emit(Ge.FAIL_NOTIFICATION, JSON.parse(r.message).msg), r;
10880
10880
  }
10881
10881
  }
10882
10882
  async getIdleAgentList(e) {
10883
10883
  var r;
10884
- const { agent_no: n } = Z.agentInfo;
10884
+ const { agent_no: n } = q.agentInfo;
10885
10885
  try {
10886
10886
  this.roleData.agentInfo();
10887
10887
  const i = await ((o) => wn(`${kr}/agent/free`, o))({ agent_no: n });
@@ -10903,7 +10903,7 @@ class Va {
10903
10903
  var n;
10904
10904
  try {
10905
10905
  this.roleData.agentInfo(), this.roleData.requestInfo(e), this.roleData.setAgentExplicit(e.data.number);
10906
- const { agent_id: r } = Z.agentInfo;
10906
+ const { agent_id: r } = q.agentInfo;
10907
10907
  await ((i) => wn(`${_i}/agent/update`, i))({ agent_id: r, out_display_number: e.data.number }), H.updateSelectOutNumber(e.data.number), (n = e.success) == null || n.call(e, { code: 0, msg: "请求成功" });
10908
10908
  } catch (r) {
10909
10909
  throw ge.emit(Ge.FAIL_NOTIFICATION, JSON.parse(r.message).msg), r;
@@ -10924,7 +10924,7 @@ class Va {
10924
10924
  async getCallRecord(e) {
10925
10925
  try {
10926
10926
  this.roleData.agentInfo();
10927
- const { success: n } = e, r = /* @__PURE__ */ new Date(), i = new Date(r.getFullYear(), r.getMonth(), r.getDate(), 0, 0, 0), o = new Date(r.getFullYear(), r.getMonth(), r.getDate(), 23, 59, 59), a = [this.formatDate(i), this.formatDate(o)], { agent_no: s } = Z.agentInfo, A = await ((g) => wn(`${_i}/agent/recordpage`, g))({ start_time: a[0], end_time: a[1], page_no: 1, page_size: 10, agent_no: s }), { code: c, msg: u, data: d } = A;
10927
+ const { success: n } = e, r = /* @__PURE__ */ new Date(), i = new Date(r.getFullYear(), r.getMonth(), r.getDate(), 0, 0, 0), o = new Date(r.getFullYear(), r.getMonth(), r.getDate(), 23, 59, 59), a = [this.formatDate(i), this.formatDate(o)], { agent_no: s } = q.agentInfo, A = await ((g) => wn(`${_i}/agent/recordpage`, g))({ start_time: a[0], end_time: a[1], page_no: 1, page_size: 10, agent_no: s }), { code: c, msg: u, data: d } = A;
10928
10928
  n == null || n({ code: c, msg: u, data: d });
10929
10929
  } catch (n) {
10930
10930
  throw ge.emit(Ge.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
@@ -10933,7 +10933,7 @@ class Va {
10933
10933
  async logout(e) {
10934
10934
  this.roleData.agentInfo();
10935
10935
  try {
10936
- const { agent_no: n } = Z.agentInfo, { data: r, success: i } = e;
10936
+ const { agent_no: n } = q.agentInfo, { data: r, success: i } = e;
10937
10937
  await ((o) => wn(`${kr}/agent/logout`, o))({ ...r, agent_no: n }), i == null || i({ code: 0, msg: "" });
10938
10938
  } catch (n) {
10939
10939
  throw ge.emit(Ge.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
@@ -10941,16 +10941,16 @@ class Va {
10941
10941
  }
10942
10942
  async listenCall(e) {
10943
10943
  try {
10944
- const { agent_no: n } = Z.agentInfo, { data: r, success: i } = e;
10944
+ const { agent_no: n } = q.agentInfo, { data: r, success: i } = e;
10945
10945
  if (this.roleData.agentInfo(), this.roleData.requestInfo(e), !r.monitored_agent_no) throw new Error(JSON.stringify({ code: 1, msg: 'Parameter "monitored_agent_no" is required' }));
10946
- await ((o) => wn(`${kr}/call/monitor`, o))({ ...r, monitor_agent_no: n }), Z.monitoredAgentNo = r.monitored_agent_no, i == null || i({ code: 0, msg: "" });
10946
+ await ((o) => wn(`${kr}/call/monitor`, o))({ ...r, monitor_agent_no: n }), q.monitoredAgentNo = r.monitored_agent_no, i == null || i({ code: 0, msg: "" });
10947
10947
  } catch (n) {
10948
10948
  throw ge.emit(Ge.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
10949
10949
  }
10950
10950
  }
10951
10951
  async earCall(e) {
10952
10952
  try {
10953
- const { agentInfo: n, monitoredAgentNo: r } = Z, { agent_no: i } = n;
10953
+ const { agentInfo: n, monitoredAgentNo: r } = q, { agent_no: i } = n;
10954
10954
  this.roleData.agentInfo();
10955
10955
  const { success: o } = e;
10956
10956
  if (!r) throw new Error(JSON.stringify({ code: 1, msg: "当前未有监听坐席" }));
@@ -10961,7 +10961,7 @@ class Va {
10961
10961
  }
10962
10962
  async stopEarCall(e) {
10963
10963
  try {
10964
- const { agentInfo: n, earSpeakAgent: r } = Z;
10964
+ const { agentInfo: n, earSpeakAgent: r } = q;
10965
10965
  if (!r) throw new Error(JSON.stringify({ code: 1, msg: "当前没有正在耳语的坐席" }));
10966
10966
  const { agent_no: i } = n;
10967
10967
  this.roleData.agentInfo();
@@ -10973,7 +10973,7 @@ class Va {
10973
10973
  }
10974
10974
  async forceInsert(e) {
10975
10975
  try {
10976
- const { agentInfo: n, monitoredAgentNo: r } = Z, { agent_no: i } = n;
10976
+ const { agentInfo: n, monitoredAgentNo: r } = q, { agent_no: i } = n;
10977
10977
  this.roleData.agentInfo();
10978
10978
  const { success: o } = e;
10979
10979
  if (!r) throw new Error(JSON.stringify({ code: 1, msg: "当前未有监听坐席" }));
@@ -10984,7 +10984,7 @@ class Va {
10984
10984
  }
10985
10985
  async forceDisconnect(e) {
10986
10986
  try {
10987
- const { agentInfo: n, monitoredAgentNo: r } = Z, { agent_no: i } = n;
10987
+ const { agentInfo: n, monitoredAgentNo: r } = q, { agent_no: i } = n;
10988
10988
  this.roleData.agentInfo();
10989
10989
  const { success: o } = e;
10990
10990
  if (!r) throw new Error(JSON.stringify({ code: 1, msg: "当前未有监听坐席" }));
@@ -10995,7 +10995,7 @@ class Va {
10995
10995
  }
10996
10996
  }
10997
10997
  const a2 = console.log, Jf = (...t) => {
10998
- Z.logBuiltinEnabled && a2(...t);
10998
+ q.logBuiltinEnabled && a2(...t);
10999
10999
  };
11000
11000
  let ai = null;
11001
11001
  class un {
@@ -11013,23 +11013,23 @@ class un {
11013
11013
  this.sipClient = e;
11014
11014
  }
11015
11015
  stateIdleChange(e) {
11016
- const { state: n } = Z.stateObject;
11017
- n !== Mt.IDLE && this.apiClient._changeState({ data: { ...Z.stateBeforeChange, state_name: Z.stateBeforeChange.state === Mt.IDLE ? "空闲" : "忙碌" } }, e);
11016
+ const { state: n } = q.stateObject;
11017
+ n !== Mt.IDLE && this.apiClient._changeState({ data: { ...q.stateBeforeChange, state_name: q.stateBeforeChange.state === Mt.IDLE ? "空闲" : "忙碌" } }, e);
11018
11018
  }
11019
11019
  inCallAutoAnswer() {
11020
- const { soft_device_auto_answer: e, auto_answer_time: n } = Z.agentInfo, r = e === 1, i = H.get("direction");
11020
+ const { soft_device_auto_answer: e, auto_answer_time: n } = q.agentInfo, r = e === 1, i = H.get("direction");
11021
11021
  if (r && i === Tn.INCOMING) {
11022
11022
  const o = Number(n) || 0;
11023
- o > 0 && (Z.autoAnswerTimer = setTimeout(() => {
11023
+ o > 0 && (q.autoAnswerTimer = setTimeout(() => {
11024
11024
  var a;
11025
- (a = this.sipClient) == null || a.answerCall(), Z.autoAnswerTimer = null;
11025
+ (a = this.sipClient) == null || a.answerCall(), q.autoAnswerTimer = null;
11026
11026
  }, o > 0 ? 1e3 * o - 500 : 0));
11027
11027
  }
11028
11028
  }
11029
11029
  async getCustomerInfo(e, n) {
11030
11030
  try {
11031
11031
  await this.apiClient._getInCallCrmDetail({ data: { phone: e }, success: (r) => {
11032
- const i = r.data ? { ...r.data, type: n } : { phone: r.data.phone, is_vip: 0, customer_name: "未知客户", city: "未知", province: "未知", contact_count: 0, in_contact_count: 0, trace_id: r.data.trace_id, contact_count_month: 0, in_contact_count_month: 0, type: n };
11032
+ const i = r.data ? { ...r.data, type: n, session_id: q.sessionId } : { phone: r.data.phone, is_vip: 0, customer_name: "未知客户", city: "未知", province: "未知", contact_count: 0, in_contact_count: 0, trace_id: r.data.trace_id, contact_count_month: 0, in_contact_count_month: 0, session_id: q.sessionId, type: n };
11033
11033
  H.updateCustomerInfo(i);
11034
11034
  } });
11035
11035
  } catch {
@@ -11038,18 +11038,18 @@ class un {
11038
11038
  putAgentState(e, n) {
11039
11039
  if (!e) return;
11040
11040
  if (n === 5) return void this.stateIdleChange("device_type5");
11041
- Z.sessionId = "";
11042
- const { post_call_process_time: r } = Z.agentInfo, i = r || 0;
11043
- if (Z.autoStateTimer && (clearTimeout(Z.autoStateTimer), Z.autoStateTimer = null), H.updateCustomerInfo(void 0), i > 0) {
11044
- const { state: o } = Z.stateObject;
11041
+ q.sessionId = "";
11042
+ const { post_call_process_time: r } = q.agentInfo, i = r || 0;
11043
+ if (q.autoStateTimer && (clearTimeout(q.autoStateTimer), q.autoStateTimer = null), H.updateCustomerInfo(void 0), i > 0) {
11044
+ const { state: o } = q.stateObject;
11045
11045
  if (o === Mt.IDLE) return;
11046
- this.apiClient._changeState({ data: { state: Mt.BUSY, state_name: "整理" } }, "ez"), Z.autoStateTimer = setTimeout(() => {
11047
- Z.autoStateTimer = null, this.stateIdleChange(`delay${i}`);
11046
+ this.apiClient._changeState({ data: { state: Mt.BUSY, state_name: "整理" } }, "ez"), q.autoStateTimer = setTimeout(() => {
11047
+ q.autoStateTimer = null, this.stateIdleChange(`delay${i}`);
11048
11048
  }, 1e3 * i);
11049
11049
  } else this.stateIdleChange("delay0");
11050
11050
  }
11051
11051
  stateBusyChange() {
11052
- Z.sessionId = "", clearTimeout(Z.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: Mt.BUSY, state_name: "忙碌" } }, "dm");
11053
11053
  }
11054
11054
  initWebSocket() {
11055
11055
  var n;
@@ -11063,78 +11063,78 @@ class un {
11063
11063
  const i = JSON.parse(r.data), { type: o, data: a, code: s, msg: A, msg_id: c } = i;
11064
11064
  if (o === 0 && c) {
11065
11065
  const d = this.pendingMessages.get(c), g = performance.now() - d;
11066
- Z.latency = parseFloat(g.toFixed(2)), this.pendingMessages.delete(c);
11066
+ q.latency = parseFloat(g.toFixed(2)), this.pendingMessages.delete(c);
11067
11067
  }
11068
- if (o !== 0 && Jf("%cWebSocket 收到消息:", "color: blue; font-weight: bold;", i), o !== ot.OUT_CALL && o !== ot.PREVIEW_OUT_CALL || (Z.isAgentHangup = !1, s !== 0 ? (H.reset(), ge.emit(ie.OUT_FAILED, A), ge.emit(Ge.FAIL_NOTIFICATION, A), H.updateActionConfigs(Wn), setTimeout(() => {
11068
+ if (o !== 0 && Jf("%cWebSocket 收到消息:", "color: blue; font-weight: bold;", i), o !== ot.OUT_CALL && o !== ot.PREVIEW_OUT_CALL || (q.isAgentHangup = !1, s !== 0 ? (H.reset(), ge.emit(ie.OUT_FAILED, A), ge.emit(Ge.FAIL_NOTIFICATION, A), H.updateActionConfigs(Wn), setTimeout(() => {
11069
11069
  H.updateCustomerInfo(void 0);
11070
- }, 500), this.stateIdleChange("h")) : s === 0 && (ge.emit(ie.OUT_SUCCESS), Z.sessionId = a.session_id, H.updateIsCalling(!0), clearTimeout(Z.autoStateTimer))), o === ot.AGENT_STATE) {
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
- Z.stateObject = { state: d, state_name: g }, (u = Z.stateBeforeChange) != null && u.state || Z.stateObject.state !== Mt.IDLE && (Z.stateObject.state !== Mt.BUSY || g === "整理") || (Z.stateBeforeChange = Z.stateObject), g === "振铃中" && H.updateDisplayText(zt.AGENT_RINGING);
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);
11073
11073
  const p = H.get("isCalling");
11074
- d !== Mt.UNREGISTERED || p || H.updateActionConfigs(Xw), d === Mt.IDLE && Z.stateObject.state === Mt.UNREGISTERED && H.updateActionConfigs(Wn), ge.emit(ie.AGENT_STATE, { state: d, state_name: g });
11075
- } else if (o === ot.OUT_CALL_INCOMING_CALL) Z.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 })), Z.sessionId = a.session_id, H.updateActionConfigs($w, a.direction !== 8);
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 });
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
- if (Z.sessionId !== a.session_id) return;
11078
- if (H.updateDisplayText(""), a.device_type === 1 && a.agent_no === Z.agentInfo.agent_no) H.reset(), ge.emit(ie.OUT_HANGUP, { session_id: a.session_id, isAgentHangup: Z.isAgentHangup }), H.updateActionConfigs(Wn), this.putAgentState(!0);
11079
- else if (a.device_type === 2 && a.agent_no === Z.agentInfo.agent_no) H.reset(), ge.emit(ie.OUR_SIDE_CONSULT_HANGUP, { session_id: a.session_id }), H.updateActionConfigs(Wn), this.putAgentState(!0);
11080
- else if (a.device_type === 2 && a.agent_no !== Z.agentInfo.agent_no)
11081
- H.get("isCalling") && (H.updateDisplayText(zt.CALLING), ge.emit(ie.OTHER_SIDE_CONSULT_HANGUP, { session_id: a.session_id, isAgentHangup: Z.isAgentHangup }), H.updateActionConfigs(Si));
11082
- else if (a.device_type === 3 && a.agent_no === Z.agentInfo.agent_no) H.reset(), ge.emit(ie.THREE_WAY_OUR_SIDE_HANGUP, { session_id: a.session_id }), H.updateActionConfigs(Wn), this.putAgentState(!0);
11083
- else if (a.device_type === 4 && a.agent_no === Z.agentInfo.agent_no) H.reset(), ge.emit(ie.TRANSFER_END, { session_id: a.session_id }), H.updateActionConfigs(Wn), this.putAgentState(!0);
11084
- else if (a.device_type === 4 && a.agent_no !== Z.agentInfo.agent_no) {
11077
+ if (q.sessionId !== a.session_id) return;
11078
+ if (H.updateDisplayText(""), a.device_type === 1 && a.agent_no === q.agentInfo.agent_no) H.reset(), ge.emit(ie.OUT_HANGUP, { session_id: a.session_id, isAgentHangup: q.isAgentHangup }), H.updateActionConfigs(Wn), this.putAgentState(!0);
11079
+ else if (a.device_type === 2 && a.agent_no === q.agentInfo.agent_no) H.reset(), ge.emit(ie.OUR_SIDE_CONSULT_HANGUP, { session_id: a.session_id }), H.updateActionConfigs(Wn), this.putAgentState(!0);
11080
+ else if (a.device_type === 2 && a.agent_no !== q.agentInfo.agent_no)
11081
+ H.get("isCalling") && (H.updateDisplayText(zt.CALLING), ge.emit(ie.OTHER_SIDE_CONSULT_HANGUP, { session_id: a.session_id, isAgentHangup: q.isAgentHangup }), H.updateActionConfigs(Si));
11082
+ else if (a.device_type === 3 && a.agent_no === q.agentInfo.agent_no) H.reset(), ge.emit(ie.THREE_WAY_OUR_SIDE_HANGUP, { session_id: a.session_id }), H.updateActionConfigs(Wn), this.putAgentState(!0);
11083
+ else if (a.device_type === 4 && a.agent_no === q.agentInfo.agent_no) H.reset(), ge.emit(ie.TRANSFER_END, { session_id: a.session_id }), H.updateActionConfigs(Wn), this.putAgentState(!0);
11084
+ else if (a.device_type === 4 && a.agent_no !== q.agentInfo.agent_no) {
11085
11085
  ge.emit(ie.TRANSFER_FAILED, "未知原因"), ge.emit(Ge.FAIL_NOTIFICATION, "转接失败");
11086
11086
  const d = H.get("direction");
11087
11087
  d === Tn.OUTGOING ? H.updateActionConfigs(Si) : d === Tn.INCOMING && H.updateActionConfigs(Ki);
11088
- } else a.device_type === 5 && a.agent_no === Z.agentInfo.agent_no && (Z.monitoredAgentNo = "", Z.earSpeakAgent = "", H.reset(), ge.emit(ie.LISTEN_HANGUP, { session_id: a.session_id }), H.updateActionConfigs(Wn), this.putAgentState(!0, 5));
11089
- } else if (o === ot.OUT_CALL_RINGING) a.type === 1 && (Z.isAgentHangup = !1, ge.emit(ie.OUT_RINGING, { session_id: Z.sessionId, type: a.type }), H.updateDisplayText(zt.RINGING));
11090
- else if (o === ot.OUT_CALL_ANSWER) Z.isAgentHangup = !1, clearTimeout(Z.autoStateTimer), H.updateIsCalling(!0), H.updateOutCallIsAnswer(!0), H.updateDisplayText(zt.CALLING), a.direction === 8 ? (ge.emit(ie.INTERNAL_OUT_OFF_ANSWER, { session_id: Z.sessionId }), H.updateActionConfigs(Vc)) : (ge.emit(ie.OUT_OFF_ANSWER, { session_id: Z.sessionId }), H.updateActionConfigs(Si));
11091
- else if (o === ot.CONSULT_RINGING) Z.isAgentHangup = !1, ge.emit(ie.CONSULT_RINGING, { session_id: a.session_id }), H.updateDisplayText(zt.AGENT_RINGING), H.updateActionConfigs([]), clearTimeout(Z.autoStateTimer);
11092
- else if (o === ot.CONSULT_ANSWER) Z.isAgentHangup = !1, ge.emit(ie.CONSULT_OFF_HOOK, { session_id: a.session_id }), H.updateConsultIsAnswer(!0), H.updateDisplayText(zt.CONSULTING), H.updateActionConfigs(Yf);
11088
+ } else a.device_type === 5 && a.agent_no === q.agentInfo.agent_no && (q.monitoredAgentNo = "", q.earSpeakAgent = "", H.reset(), ge.emit(ie.LISTEN_HANGUP, { session_id: a.session_id }), H.updateActionConfigs(Wn), this.putAgentState(!0, 5));
11089
+ } else if (o === ot.OUT_CALL_RINGING) a.type === 1 && (q.isAgentHangup = !1, ge.emit(ie.OUT_RINGING, { session_id: q.sessionId, type: a.type }), H.updateDisplayText(zt.RINGING));
11090
+ else if (o === ot.OUT_CALL_ANSWER) q.isAgentHangup = !1, clearTimeout(q.autoStateTimer), H.updateIsCalling(!0), H.updateOutCallIsAnswer(!0), H.updateDisplayText(zt.CALLING), a.direction === 8 ? (ge.emit(ie.INTERNAL_OUT_OFF_ANSWER, { session_id: q.sessionId }), H.updateActionConfigs(Vc)) : (ge.emit(ie.OUT_OFF_ANSWER, { session_id: q.sessionId }), H.updateActionConfigs(Si));
11091
+ else if (o === ot.CONSULT_RINGING) q.isAgentHangup = !1, ge.emit(ie.CONSULT_RINGING, { session_id: a.session_id }), H.updateDisplayText(zt.AGENT_RINGING), H.updateActionConfigs([]), clearTimeout(q.autoStateTimer);
11092
+ else if (o === ot.CONSULT_ANSWER) q.isAgentHangup = !1, ge.emit(ie.CONSULT_OFF_HOOK, { session_id: a.session_id }), H.updateConsultIsAnswer(!0), H.updateDisplayText(zt.CONSULTING), H.updateActionConfigs(Yf);
11093
11093
  else if (o === ot.CONSULT_FAIL) ge.emit(ie.CONSULT_FAILED, { custom_reason: a.custom_reason }), H.updateDisplayText(zt.CALLING), H.updateActionConfigs(Si);
11094
- else if (o === ot.CONSULT_CALL_IN) Z.isAgentHangup = !1, ge.emit(ie.CONSULT_INCOMING, { agent_no: a.agent_no, agent_mane: a.agent_name, session_id: a.session_id }), Z.sessionId = a.session_id, H.updateIsCalling(!0), H.updateDirection(Tn.CONSULT), H.updateDisplayText(zt.CONSULT_CALL_IN), H.updateActionConfigs(Ts), Z.enableBrowserAlert && Fo.show("📞 咨询来电", `坐席 [${a.agent_name}] 正在咨询...`, () => {
11094
+ else if (o === ot.CONSULT_CALL_IN) q.isAgentHangup = !1, ge.emit(ie.CONSULT_INCOMING, { agent_no: a.agent_no, agent_mane: a.agent_name, session_id: a.session_id }), q.sessionId = a.session_id, H.updateIsCalling(!0), H.updateDirection(Tn.CONSULT), H.updateDisplayText(zt.CONSULT_CALL_IN), H.updateActionConfigs(Ts), q.enableBrowserAlert && Fo.show("📞 咨询来电", `坐席 [${a.agent_name}] 正在咨询...`, () => {
11095
11095
  ge.emit(Ge.NOTIFICATION_CLICK, { agent_mane: a.agent_name, agent_no: a.agent_no });
11096
- }, Z.browserAlertTime);
11096
+ }, q.browserAlertTime);
11097
11097
  else if (o === ot.CONSULT_CALL_IN_SUCCESS) ge.emit(ie.CONSULT_CALL_IN_SUCCESS, { session_id: a.session_id }), H.updateConsultIsAnswer(!0), H.updateDisplayText(zt.CALLING), H.updateActionConfigs(e2);
11098
11098
  else if (o === ot.CONSULT_RETURN_CALL_SUCCESS) a.status === "success" ? (H.updateConsultIsAnswer(!1), ge.emit(ie.CONSULT_RETURN_CALL_SUCCESS), H.updateDisplayText(zt.CALLING), ge.emit(ie.OTHER_SIDE_CONSULT_HANGUP), H.updateActionConfigs(Si)) : ge.emit(Ge.FAIL_NOTIFICATION, "媒体失败");
11099
11099
  else if (o === ot.MUTE) s === 0 ? (H.updateIsMuted(!0), ge.emit(ie.MUTE_SUCCESS), H.updateDisplayText(zt.MUTING)) : (ge.emit(ie.MUTE_FAILED, A), ge.emit(Ge.FAIL_NOTIFICATION, A));
11100
11100
  else if (o === ot.UNMUTE) s === 0 ? (H.updateIsMuted(!1), ge.emit(ie.UNMUTE_SUCCESS), H.updateDisplayText(zt.CALLING)) : (ge.emit(ie.UNMUTE_FAILED, A), ge.emit(Ge.FAIL_NOTIFICATION, A));
11101
11101
  else if (o === ot.CALL_HOLD) s === 0 ? (H.updateIsHold(!0), H.updateDisplayText(zt.HOLDING), ge.emit(ie.HOLD_SUCCESS)) : (ge.emit(ie.HOLD_FAILED, A), ge.emit(Ge.FAIL_NOTIFICATION, A));
11102
11102
  else if (o === ot.CALL_UNHOLD) s === 0 ? (H.updateDisplayText(zt.CALLING), H.updateIsHold(!1), ge.emit(ie.UNHOLD_SUCCESS)) : (ge.emit(ie.UNHOLD_FAILED, A), ge.emit(Ge.FAIL_NOTIFICATION, A));
11103
- else if (o === ot.CONSULT_TRANSFER) Z.isAgentHangup = !1, s === 0 ? ge.emit(ie.CONSULT_TRANSFER_SUCCESS) : (ge.emit(ie.CONSULT_TRANSFER_FAILED, A), ge.emit(Ge.FAIL_NOTIFICATION, A));
11103
+ else if (o === ot.CONSULT_TRANSFER) q.isAgentHangup = !1, s === 0 ? ge.emit(ie.CONSULT_TRANSFER_SUCCESS) : (ge.emit(ie.CONSULT_TRANSFER_FAILED, A), ge.emit(Ge.FAIL_NOTIFICATION, A));
11104
11104
  else if (o === ot.CONSULT_TRANSFER_FAILED) ge.emit(ie.CONSULT_TRANSFER_FAILED, a.status);
11105
11105
  else if (o === ot.CONSULT_TRANSFER_OFF_HOOK) H.updateDirection(Tn.INCOMING), H.updateDisplayText(zt.CALLING), ge.emit(ie.CONSULT_TRANSFER_OFF_HOOK), H.updateActionConfigs(Ki), H.updateIncomingIsAnswer(!0), H.updateConsultIsAnswer(!1);
11106
- else if (o === ot.INCOMING_CALL) Z.isAgentHangup = !1, clearTimeout(Z.autoStateTimer), Z.sessionId = a.session_id, H.updateIsCalling(!0), H.updateDirection(Tn.INCOMING), H.updateDisplayText(zt.INCOMING_CALL), this.inCallAutoAnswer(), a.direction === 1 && (this.getCustomerInfo(a.trace_id || a.customer_phone, "incoming_call"), ge.emit(ie.INCOMING_CALL, { customer_phone: a.customer_phone, trace_id: a.trace_id, session_id: a.session_id })), a.direction === 8 && (this.getCustomerInfo(a.trace_id || a.customer_phone, "incoming_call_in"), ge.emit(ie.INCOMING_CALL_IN, { customer_phone: a.customer_phone, trace_id: a.trace_id, session_id: a.session_id })), a.direction === 3 && (this.getCustomerInfo(a.trace_id || a.customer_phone, "predict_incoming_call"), ge.emit(ie.PREDICT_INCOMING_CALL, { customer_phone: a.customer_phone, trace_id: a.trace_id, session_id: a.session_id })), a.direction === 6 && (this.getCustomerInfo(a.trace_id || a.customer_phone, "out_call_incoming_call"), ge.emit(ie.DUAL_CALL_INCOMING_CALL, { customer_phone: a.customer_phone, trace_id: a.trace_id, session_id: a.session_id })), H.updateActionConfigs(Ts), Z.enableBrowserAlert && Fo.show("📞 客户来电", `客户 [${a.customer_phone}] 正在呼入...`, () => {
11106
+ else if (o === ot.INCOMING_CALL) q.isAgentHangup = !1, clearTimeout(q.autoStateTimer), q.sessionId = a.session_id, H.updateIsCalling(!0), H.updateDirection(Tn.INCOMING), H.updateDisplayText(zt.INCOMING_CALL), this.inCallAutoAnswer(), a.direction !== 1 && a.direction !== 4 && a.direction !== 7 || (this.getCustomerInfo(a.trace_id || a.customer_phone, "incoming_call"), ge.emit(ie.INCOMING_CALL, { customer_phone: a.customer_phone, trace_id: a.trace_id, session_id: a.session_id })), a.direction === 8 && (this.getCustomerInfo(a.trace_id || a.customer_phone, "incoming_call_in"), ge.emit(ie.INCOMING_CALL_IN, { customer_phone: a.customer_phone, trace_id: a.trace_id, session_id: a.session_id })), a.direction === 3 && (this.getCustomerInfo(a.trace_id || a.customer_phone, "predict_incoming_call"), ge.emit(ie.PREDICT_INCOMING_CALL, { customer_phone: a.customer_phone, trace_id: a.trace_id, session_id: a.session_id })), a.direction === 6 && (this.getCustomerInfo(a.trace_id || a.customer_phone, "dual_call_incoming_call"), ge.emit(ie.DUAL_CALL_INCOMING_CALL, { customer_phone: a.customer_phone, trace_id: a.trace_id, session_id: a.session_id })), H.updateActionConfigs(Ts), q.enableBrowserAlert && Fo.show("📞 客户来电", `客户 [${a.customer_phone}] 正在呼入...`, () => {
11107
11107
  ge.emit(Ge.NOTIFICATION_CLICK, { customer_phone: a.customer_phone });
11108
- }, Z.browserAlertTime);
11109
- else if (o === ot.INCOMING_CALL_OFF_HOOK) H.updateIncomingIsAnswer(!0), a.direction === 8 ? (H.updateActionConfigs(Vc), ge.emit(ie.INCOMING_CALL_IN_OFF_HOOK, { session_id: Z.sessionId })) : (H.updateActionConfigs(Ki), ge.emit(ie.INCOMING_CALL_OFF_HOOK, { session_id: Z.sessionId })), H.updateDisplayText(zt.CALLING);
11108
+ }, q.browserAlertTime);
11109
+ else if (o === ot.INCOMING_CALL_OFF_HOOK) H.updateIncomingIsAnswer(!0), a.direction === 8 ? (H.updateActionConfigs(Vc), ge.emit(ie.INCOMING_CALL_IN_OFF_HOOK, { session_id: q.sessionId })) : (H.updateActionConfigs(Ki), ge.emit(ie.INCOMING_CALL_OFF_HOOK, { session_id: q.sessionId })), H.updateDisplayText(zt.CALLING);
11110
11110
  else if (o === ot.INCOMING_CALL_END) {
11111
- if (Z.sessionId !== a.session_id) return;
11112
- if (H.updateDisplayText(""), a.device_type !== 1 && a.device_type !== 7 || a.agent_no !== Z.agentInfo.agent_no) if (a.device_type === 2 && a.agent_no === Z.agentInfo.agent_no) H.reset(), ge.emit(ie.OUR_SIDE_CONSULT_HANGUP, { session_id: a.session_id }), this.putAgentState(!0), H.updateActionConfigs(Wn);
11113
- else if (a.device_type === 2 && a.agent_no !== Z.agentInfo.agent_no) H.updateDisplayText(zt.CALLING), ge.emit(ie.OTHER_SIDE_CONSULT_HANGUP, { session_id: a.session_id, isAgentHangup: Z.isAgentHangup }), H.updateActionConfigs(Si);
11114
- else if (a.device_type === 3 && a.agent_no === Z.agentInfo.agent_no) this.putAgentState(!0), H.reset(), ge.emit(ie.THREE_WAY_OUR_SIDE_HANGUP, { session_id: a.session_id }), H.updateActionConfigs(Wn);
11115
- else if (a.device_type === 4 && a.agent_no === Z.agentInfo.agent_no) this.putAgentState(!0), H.reset(), ge.emit(ie.TRANSFER_END, { session_id: a.session_id }), H.updateActionConfigs(Wn);
11116
- else if (a.device_type === 4 && a.agent_no !== Z.agentInfo.agent_no) {
11111
+ if (q.sessionId !== a.session_id) return;
11112
+ if (H.updateDisplayText(""), a.device_type !== 1 && a.device_type !== 7 || a.agent_no !== q.agentInfo.agent_no) if (a.device_type === 2 && a.agent_no === q.agentInfo.agent_no) H.reset(), ge.emit(ie.OUR_SIDE_CONSULT_HANGUP, { session_id: a.session_id }), this.putAgentState(!0), H.updateActionConfigs(Wn);
11113
+ else if (a.device_type === 2 && a.agent_no !== q.agentInfo.agent_no) H.updateDisplayText(zt.CALLING), ge.emit(ie.OTHER_SIDE_CONSULT_HANGUP, { session_id: a.session_id, isAgentHangup: q.isAgentHangup }), H.updateActionConfigs(Si);
11114
+ else if (a.device_type === 3 && a.agent_no === q.agentInfo.agent_no) this.putAgentState(!0), H.reset(), ge.emit(ie.THREE_WAY_OUR_SIDE_HANGUP, { session_id: a.session_id }), H.updateActionConfigs(Wn);
11115
+ else if (a.device_type === 4 && a.agent_no === q.agentInfo.agent_no) this.putAgentState(!0), H.reset(), ge.emit(ie.TRANSFER_END, { session_id: a.session_id }), H.updateActionConfigs(Wn);
11116
+ else if (a.device_type === 4 && a.agent_no !== q.agentInfo.agent_no) {
11117
11117
  ge.emit(ie.TRANSFER_FAILED, "未知原因"), ge.emit(Ge.FAIL_NOTIFICATION, "转接失败");
11118
11118
  const d = H.get("direction");
11119
11119
  d === Tn.OUTGOING ? H.updateActionConfigs(Si) : d === Tn.INCOMING && H.updateActionConfigs(Ki);
11120
- } else a.device_type === 5 && a.agent_no === Z.agentInfo.agent_no && (this.putAgentState(!0, 5), Z.monitoredAgentNo = "", Z.earSpeakAgent = "", H.reset(), ge.emit(ie.LISTEN_HANGUP, { session_id: a.session_id }), H.updateActionConfigs(Wn));
11121
- else this.putAgentState(!0), H.reset(), ge.emit(ie.INCOMING_CALL_END, { session_id: a.session_id, isAgentHangup: Z.isAgentHangup }), H.updateActionConfigs(Wn);
11120
+ } else a.device_type === 5 && a.agent_no === q.agentInfo.agent_no && (this.putAgentState(!0, 5), q.monitoredAgentNo = "", q.earSpeakAgent = "", H.reset(), ge.emit(ie.LISTEN_HANGUP, { session_id: a.session_id }), H.updateActionConfigs(Wn));
11121
+ else this.putAgentState(!0), H.reset(), ge.emit(ie.INCOMING_CALL_END, { session_id: a.session_id, isAgentHangup: q.isAgentHangup }), H.updateActionConfigs(Wn);
11122
11122
  } else if (o === ot.SATISFACTION_EVALUATION) s === 0 ? ge.emit(ie.SATISFACTION_EVALUATION_SUCCESS) : (ge.emit(ie.SATISFACTION_EVALUATION_FAILED, A), ge.emit(Ge.FAIL_NOTIFICATION, A));
11123
11123
  else if (o === ot.CONSULT_THREE_WAY) s !== 0 ? (ge.emit(ie.CONSULT_THREE_WAY_FAILED, A), ge.emit(Ge.FAIL_NOTIFICATION, A)) : s === 0 && H.updateIsMeeting(!0);
11124
11124
  else if (o === ot.CONSULT_THREE_WAY_RESULT) a.status === "success" ? (H.updateDirection(Tn.MEETING), H.updateDisplayText(zt.MEETING), H.updateActionConfigs(t2), ge.emit(ie.CONSULT_THREE_WAY_SUCCESS)) : (ge.emit(ie.CONSULT_THREE_WAY_FAILED, { conf_name: a.conf_name }), H.updateIsMeeting(!1));
11125
- else if (o === ot.TRANSFER_INCOMING_CALL) Z.isAgentHangup = !1, clearTimeout(Z.autoStateTimer), a.agent_no === Z.agentInfo.agent_no ? (H.updateDisplayText(zt.TRANSFERRING), ge.emit(ie.TRANSFER_PROGRESS), H.updateActionConfigs([]), H.updateTransferIsAnswer(!0)) : (Z.sessionId = a.session_id, ge.emit(ie.TRANSFER_INCOMING_CALL, { agent_no: a.agent_no, agent_name: a.agent_name, session_id: a.session_id }), H.updateIsCalling(!0), H.updateDirection(Tn.TRANSFER), H.updateDisplayText(zt.TRANSFER_INCOMING_CALL), H.updateActionConfigs(Ts), Z.enableBrowserAlert && Fo.show("📞 转接来电", `坐席 [${a.agent_no}] 正在转接...`, () => {
11125
+ else if (o === ot.TRANSFER_INCOMING_CALL) q.isAgentHangup = !1, clearTimeout(q.autoStateTimer), a.agent_no === q.agentInfo.agent_no ? (H.updateDisplayText(zt.TRANSFERRING), ge.emit(ie.TRANSFER_PROGRESS), H.updateActionConfigs([]), H.updateTransferIsAnswer(!0)) : (q.sessionId = a.session_id, ge.emit(ie.TRANSFER_INCOMING_CALL, { agent_no: a.agent_no, agent_name: a.agent_name, session_id: a.session_id }), H.updateIsCalling(!0), H.updateDirection(Tn.TRANSFER), H.updateDisplayText(zt.TRANSFER_INCOMING_CALL), H.updateActionConfigs(Ts), q.enableBrowserAlert && Fo.show("📞 转接来电", `坐席 [${a.agent_no}] 正在转接...`, () => {
11126
11126
  ge.emit(Ge.NOTIFICATION_CLICK, { agent_no: a.agent_no });
11127
- }, Z.browserAlertTime));
11128
- else if (o === ot.TRANSFER_OFF_HOOK) ge.emit(ie.TRANSFER_OFF_HOOK, { session_id: Z.sessionId }), H.updateTransferIsAnswer(!1), H.updateDisplayText(zt.CALLING), H.updateActionConfigs(Ki, a.direction !== 8);
11127
+ }, q.browserAlertTime));
11128
+ else if (o === ot.TRANSFER_OFF_HOOK) ge.emit(ie.TRANSFER_OFF_HOOK, { session_id: q.sessionId }), H.updateTransferIsAnswer(!1), H.updateDisplayText(zt.CALLING), H.updateActionConfigs(Ki, a.direction !== 8);
11129
11129
  else if (o === ot.TRANSFER_FAILED) {
11130
11130
  if (a.status === "failed") {
11131
11131
  ge.emit(ie.TRANSFER_FAILED, "未知原因"), ge.emit(Ge.FAIL_NOTIFICATION, "转接失败");
11132
11132
  const d = H.get("direction");
11133
11133
  d === Tn.OUTGOING ? H.updateActionConfigs(Si) : d === Tn.INCOMING && H.updateActionConfigs(Ki);
11134
11134
  }
11135
- } else o === ot.KICK_OFFLINE ? ge.emit(Ge.KICK_OFF) : o === ot.CONTINUOUS_NOT_ANSWER ? (ge.emit(Ge.FAIL_NOTIFICATION, `已连续 ${a.miss_count} 次未接, 设置忙碌`), this.stateBusyChange()) : o === ot.SIGN_OUT ? ge.emit(Ge.SIGN_OUT) : o === ot.SIGN_IN_SWITCH_DEVICE ? ge.emit(Ge.SIGN_IN_SWITCH_DEVICE, a) : o === ot.LISTEN_INCOMING_CALL ? (clearTimeout(Z.autoStateTimer), Z.sessionId = a.session_id, H.updateIsCalling(!0), H.updateDirection(Tn.INCOMING), this.inCallAutoAnswer(), H.updateDisplayText(zt.LISTENING), H.updateActionConfigs(Ts), ge.emit(ie.LISTEN_INCOMING_CALL, { session_id: a.session_id }), Z.enableBrowserAlert && Fo.show("📞 监听来电", "正在来电...", () => {
11135
+ } else o === ot.KICK_OFFLINE ? ge.emit(Ge.KICK_OFF) : o === ot.CONTINUOUS_NOT_ANSWER ? (ge.emit(Ge.FAIL_NOTIFICATION, `已连续 ${a.miss_count} 次未接, 设置忙碌`), this.stateBusyChange()) : o === ot.SIGN_OUT ? ge.emit(Ge.SIGN_OUT) : o === ot.SIGN_IN_SWITCH_DEVICE ? ge.emit(Ge.SIGN_IN_SWITCH_DEVICE, a) : o === ot.LISTEN_INCOMING_CALL ? (clearTimeout(q.autoStateTimer), q.sessionId = a.session_id, H.updateIsCalling(!0), H.updateDirection(Tn.INCOMING), this.inCallAutoAnswer(), H.updateDisplayText(zt.LISTENING), H.updateActionConfigs(Ts), ge.emit(ie.LISTEN_INCOMING_CALL, { session_id: a.session_id }), q.enableBrowserAlert && Fo.show("📞 监听来电", "正在来电...", () => {
11136
11136
  ge.emit(Ge.NOTIFICATION_CLICK, { customer_phone: a.customer_phone });
11137
- }, Z.browserAlertTime)) : o === ot.LISTEN_INCOMING_CALL_OFF_HOOK ? (Z.monitoredAgentNo = a.monitored_agent_no, Z.earSpeakAgent = "", H.updateIncomingIsAnswer(!0), ge.emit(ie.LISTEN_INCOMING_CALL_OFF_HOOK, { session_id: Z.sessionId, monitored_agent_no: a.monitored_agent_no }), H.updateActionConfigs(Wf), H.updateDisplayText(zt.CALLING)) : o === ot.LISTEN_CALL_FAILED ? a.status === "failed" && (ge.emit(ie.LISTEN_CALL_FAILED), Z.monitoredAgentNo = "") : o === ot.EAR_SPEECH ? a.status === "success" ? (a.monitored_agent_no === Z.agentInfo.agent_no && (H.updateActionConfigs(n2), ge.emit(ie.EAR_SPEECH_BE_SUCCESS)), a.monitor_agent_no === Z.agentInfo.agent_no && (H.updateActionConfigs(r2), ge.emit(ie.EAR_SPEECH_SUCCESS, { monitored_agent_no: a.monitored_agent_no, monitor_agent_no: a.monitor_agent_no }), Z.earSpeakAgent = a.monitored_agent_no)) : ge.emit(ie.EAR_SPEECH_FAILED) : o === ot.STOP_EAR_SPEECH ? a.status === "success" ? (a.monitored_agent_no === Z.agentInfo.agent_no && H.updateActionConfigs(Ki), a.monitor_agent_no === Z.agentInfo.agent_no && H.updateActionConfigs(Wf), Z.earSpeakAgent = "", ge.emit(ie.STOP_EAR_SPEECH_SUCCESS)) : ge.emit(ie.STOP_EAR_SPEECH_FAILED) : o === ot.CALL_FORCE_INSERT ? a.status === "success" ? (a.monitored_agent_no === Z.agentInfo.agent_no && (H.updateActionConfigs(o2), ge.emit(ie.CALL_FORCE_INSERT_SUCCESS, { monitored_agent_no: a.monitored_agent_no, monitor_agent_no: a.monitor_agent_no })), a.monitor_agent_no === Z.agentInfo.agent_no && (H.updateActionConfigs(i2), ge.emit(ie.CALL_FORCE_INSERT_SUCCESS_LISTENER, { monitored_agent_no: a.monitored_agent_no, monitor_agent_no: a.monitor_agent_no }))) : ge.emit(ie.CALL_FORCE_INSERT_FAILED) : o === ot.INTERNAL_CALL_START_CONSULT ? a.agent_no === Z.agentInfo.agent_no ? (H.updateConsultIsAnswer(!0), H.updateActionConfigs(Yf), H.updateDisplayText(zt.CONSULTING)) : (H.updateDisplayText(zt.OTHER_SIDE_CONSULTING), H.updateActionConfigs([])) : o === ot.INTERNAL_CALL_END_CONSULT ? (H.updateActionConfigs(Vc), H.updateDisplayText(""), H.updateConsultIsAnswer(!1)) : o === ot.CALL_SIP_INCOMING_CALL && ge.emit(ie.CALL_SIP_INCOMING_CALL);
11137
+ }, q.browserAlertTime)) : o === ot.LISTEN_INCOMING_CALL_OFF_HOOK ? (q.monitoredAgentNo = a.monitored_agent_no, q.earSpeakAgent = "", H.updateIncomingIsAnswer(!0), ge.emit(ie.LISTEN_INCOMING_CALL_OFF_HOOK, { session_id: q.sessionId, monitored_agent_no: a.monitored_agent_no }), H.updateActionConfigs(Wf), H.updateDisplayText(zt.CALLING)) : o === ot.LISTEN_CALL_FAILED ? a.status === "failed" && (ge.emit(ie.LISTEN_CALL_FAILED), q.monitoredAgentNo = "") : o === ot.EAR_SPEECH ? a.status === "success" ? (a.monitored_agent_no === q.agentInfo.agent_no && (H.updateActionConfigs(n2), ge.emit(ie.EAR_SPEECH_BE_SUCCESS)), a.monitor_agent_no === q.agentInfo.agent_no && (H.updateActionConfigs(r2), ge.emit(ie.EAR_SPEECH_SUCCESS, { monitored_agent_no: a.monitored_agent_no, monitor_agent_no: a.monitor_agent_no }), q.earSpeakAgent = a.monitored_agent_no)) : ge.emit(ie.EAR_SPEECH_FAILED) : o === ot.STOP_EAR_SPEECH ? a.status === "success" ? (a.monitored_agent_no === q.agentInfo.agent_no && H.updateActionConfigs(Ki), a.monitor_agent_no === q.agentInfo.agent_no && H.updateActionConfigs(Wf), q.earSpeakAgent = "", ge.emit(ie.STOP_EAR_SPEECH_SUCCESS)) : ge.emit(ie.STOP_EAR_SPEECH_FAILED) : o === ot.CALL_FORCE_INSERT ? a.status === "success" ? (a.monitored_agent_no === q.agentInfo.agent_no && (H.updateActionConfigs(o2), ge.emit(ie.CALL_FORCE_INSERT_SUCCESS, { monitored_agent_no: a.monitored_agent_no, monitor_agent_no: a.monitor_agent_no })), a.monitor_agent_no === q.agentInfo.agent_no && (H.updateActionConfigs(i2), ge.emit(ie.CALL_FORCE_INSERT_SUCCESS_LISTENER, { monitored_agent_no: a.monitored_agent_no, monitor_agent_no: a.monitor_agent_no }))) : ge.emit(ie.CALL_FORCE_INSERT_FAILED) : o === ot.INTERNAL_CALL_START_CONSULT ? a.agent_no === q.agentInfo.agent_no ? (H.updateConsultIsAnswer(!0), H.updateActionConfigs(Yf), H.updateDisplayText(zt.CONSULTING)) : (H.updateDisplayText(zt.OTHER_SIDE_CONSULTING), H.updateActionConfigs([])) : o === ot.INTERNAL_CALL_END_CONSULT ? (H.updateActionConfigs(Vc), H.updateDisplayText(""), H.updateConsultIsAnswer(!1)) : o === ot.CALL_SIP_INCOMING_CALL && ge.emit(ie.CALL_SIP_INCOMING_CALL);
11138
11138
  }, this.ws.onclose = (r) => {
11139
11139
  ge.emit(Ge.FAIL_NOTIFICATION, "链接已断开,请检查网络"), this.stopHeartbeat();
11140
11140
  const i = H.get("isNextState");
@@ -11189,13 +11189,13 @@ class s2 {
11189
11189
  this.sipClient = null, this.sipClient = e;
11190
11190
  }
11191
11191
  roleMute() {
11192
- const e = H.get("isCalling"), n = Z.sessionId;
11192
+ const e = H.get("isCalling"), n = q.sessionId;
11193
11193
  if (!e) throw new Error(JSON.stringify({ code: 1, msg: "当前没有通话" }));
11194
11194
  if (!n) throw new Error(JSON.stringify({ code: 1, msg: "当前没有通话" }));
11195
11195
  }
11196
11196
  holdCall() {
11197
11197
  this.roleMute();
11198
- const e = H.get("isHold"), { sessionId: n } = Z;
11198
+ const e = H.get("isHold"), { sessionId: n } = q;
11199
11199
  if (n) {
11200
11200
  if (!H.get("actionConfigs").includes("hold")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿保持" }));
11201
11201
  if (e) throw new Error(JSON.stringify({ code: 1, msg: "当前已处于保持状态" }));
@@ -11204,7 +11204,7 @@ class s2 {
11204
11204
  }
11205
11205
  unholdCall() {
11206
11206
  this.roleMute();
11207
- const { isHold: e } = H.getState(), { sessionId: n } = Z;
11207
+ const { isHold: e } = H.getState(), { sessionId: n } = q;
11208
11208
  if (!H.get("actionConfigs").includes("unhold")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿取消保持" }));
11209
11209
  if (n) {
11210
11210
  if (!e) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于保持状态" }));
@@ -11220,12 +11220,12 @@ class s2 {
11220
11220
  }
11221
11221
  cancelCall() {
11222
11222
  if (!H.get("isCalling")) throw an.error("当前没有通话", "call-api.ts 81 cancelCall"), new Error(JSON.stringify({ code: 1, msg: "当前没有通话" }));
11223
- const e = Z.sessionId;
11223
+ const e = q.sessionId;
11224
11224
  ge.emit(ie.REJECT, { session_id: e }), un.__internalSend({ type: ot.AGENT_HANGUP, data: { session_id: e } });
11225
11225
  }
11226
11226
  async consultCall(e) {
11227
11227
  this.roleMute();
11228
- const { isCalling: n, outCallIsAnswer: r, consultIsAnswer: i, incomingIsAnswer: o } = H.getState(), a = Z.sessionId;
11228
+ const { isCalling: n, outCallIsAnswer: r, consultIsAnswer: i, incomingIsAnswer: o } = H.getState(), a = q.sessionId;
11229
11229
  if (!H.get("actionConfigs").includes("consult")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用咨询" }));
11230
11230
  if (i) throw new Error(JSON.stringify({ code: 1, msg: "当前正在咨询" }));
11231
11231
  if (!(n || r || o)) throw new Error(JSON.stringify({ code: 1, msg: "当前没有通话" }));
@@ -11242,67 +11242,67 @@ class s2 {
11242
11242
  const n = {};
11243
11243
  au(e) ? n.trace_id = e : n.customer_phone = e.replace(/[\s\r\n-]+/g, "");
11244
11244
  const r = H.get("isCalling"), i = H.get("selectOutNumber") || "";
11245
- if (r) throw an.error(`正在呼叫中,请勿重复点击;session id: ${Z.sessionId}`, "call-api.ts 142 makeCall"), new Error(JSON.stringify({ code: 1, msg: "正在呼叫中,请勿重复点击" }));
11245
+ if (r) throw an.error(`正在呼叫中,请勿重复点击;session id: ${q.sessionId}`, "call-api.ts 142 makeCall"), new Error(JSON.stringify({ code: 1, msg: "正在呼叫中,请勿重复点击" }));
11246
11246
  H.updateDirection(Tn.OUTGOING), un.__internalSend({ type: ot.OUT_CALL, data: { ...n, caller: i.replace(/[\s\r\n-]+/g, "") } });
11247
11247
  }
11248
11248
  previewCall(e, n) {
11249
11249
  const r = {};
11250
11250
  au(e) ? r.trace_id = e : r.customer_phone = e.replace(/[\s\r\n-]+/g, "");
11251
11251
  const i = H.get("isCalling"), o = H.get("selectOutNumber") || "";
11252
- if (i) throw an.error(`正在呼叫中,请勿重复点击;session id: ${Z.sessionId}`, "call-api.ts 162 previewCall"), new Error(JSON.stringify({ code: 1, msg: "正在呼叫中,请勿重复点击" }));
11252
+ if (i) throw an.error(`正在呼叫中,请勿重复点击;session id: ${q.sessionId}`, "call-api.ts 162 previewCall"), new Error(JSON.stringify({ code: 1, msg: "正在呼叫中,请勿重复点击" }));
11253
11253
  if (typeof e != "string" || e.trim() === "") throw new Error(JSON.stringify({ code: 1, msg: "外呼号码非法" }));
11254
11254
  H.updateDirection(Tn.OUTGOING), un.__internalSend({ type: ot.PREVIEW_OUT_CALL, data: { ...r, caller: o, preview_task_id: n } });
11255
11255
  }
11256
11256
  async hangup() {
11257
11257
  if (!H.get("isCalling")) throw an.error("当前没有通话", "call-api.ts 178 hangup"), new Error(JSON.stringify({ code: 1, msg: "当前没有通话" }));
11258
- Z.isAgentHangup = !0;
11259
- const e = Z.sessionId;
11258
+ q.isAgentHangup = !0;
11259
+ const e = q.sessionId;
11260
11260
  un.__internalSend({ type: ot.AGENT_HANGUP, data: { session_id: e } }), await this.sipClient.hangup();
11261
11261
  }
11262
11262
  mute() {
11263
11263
  this.roleMute();
11264
- const e = H.get("actionConfigs"), n = H.get("isMuted"), r = Z.sessionId;
11264
+ const e = H.get("actionConfigs"), n = H.get("isMuted"), r = q.sessionId;
11265
11265
  if (n) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于静音状态" }));
11266
11266
  if (!e.includes("mute")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用静音" }));
11267
11267
  un.__internalSend({ type: ot.MUTE, data: { session_id: r } });
11268
11268
  }
11269
11269
  unmute() {
11270
11270
  this.roleMute();
11271
- const e = H.get("actionConfigs"), n = H.get("isMuted"), r = Z.sessionId;
11271
+ const e = H.get("actionConfigs"), n = H.get("isMuted"), r = q.sessionId;
11272
11272
  if (!n) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于未静音状态" }));
11273
11273
  if (!e.includes("unmute")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用静音" }));
11274
11274
  un.__internalSend({ type: ot.UNMUTE, data: { session_id: r } });
11275
11275
  }
11276
11276
  consultTransfer() {
11277
11277
  this.roleMute();
11278
- const e = H.get("consultIsAnswer"), n = Z.sessionId, r = H.get("actionConfigs");
11278
+ const e = H.get("consultIsAnswer"), n = q.sessionId, r = H.get("actionConfigs");
11279
11279
  if (!r.includes("consult_transfer")) throw an.error(`当前状态请勿调用咨询转移; actionConfigs:${r.join(",")}; consultIsAnswer: ${e}; session id: ${n}`, "call-api.ts 228 consultTransfer"), new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用咨询转移" }));
11280
11280
  if (!e) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于咨询中" }));
11281
11281
  un.__internalSend({ type: ot.CONSULT_TRANSFER, data: { session_id: n } });
11282
11282
  }
11283
11283
  satisfactionEvaluation() {
11284
11284
  this.roleMute();
11285
- const e = Z.sessionId, n = H.get("actionConfigs");
11285
+ const e = q.sessionId, n = H.get("actionConfigs");
11286
11286
  if (!n.includes("satisfaction")) throw an.error(`当前状态请勿调用满意度评价; actionConfigs:${n.join(",")}; session id: ${e}`, "call-api.ts 243 satisfactionEvaluation"), new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用满意度评价" }));
11287
11287
  un.__internalSend({ type: ot.SATISFACTION_EVALUATION, data: { session_id: e } });
11288
11288
  }
11289
11289
  startConference() {
11290
11290
  this.roleMute();
11291
- const e = Z.sessionId, n = H.get("actionConfigs");
11291
+ const e = q.sessionId, n = H.get("actionConfigs");
11292
11292
  if (!n.includes("conference")) throw an.error(`当前状态请勿调用三方会议; actionConfigs:${n.join(",")}; session id: ${e}`, "call-api.ts 264 startConference"), new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用三方会议" }));
11293
11293
  if (!H.get("consultIsAnswer")) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于咨询中" }));
11294
11294
  un.__internalSend({ type: ot.CONSULT_THREE_WAY, data: { session_id: e } });
11295
11295
  }
11296
11296
  consultRetrieve() {
11297
11297
  this.roleMute();
11298
- const e = H.get("actionConfigs"), n = Z.sessionId;
11298
+ const e = H.get("actionConfigs"), n = q.sessionId;
11299
11299
  if (!e.includes("consult_retrieve")) throw an.error(`当前状态请勿取回通话; actionConfigs:${e.join(",")}; session id: ${n}`, "call-api.ts 285 consultRetrieve"), new Error(JSON.stringify({ code: 1, msg: "当前状态请勿取回通话" }));
11300
11300
  if (!H.get("consultIsAnswer")) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于咨询中" }));
11301
11301
  un.__internalSend({ type: ot.CONSULT_RETURN_CALL, data: { session_id: n } });
11302
11302
  }
11303
11303
  async transferAgent(e) {
11304
11304
  this.roleMute();
11305
- const n = H.get("actionConfigs"), r = Z.sessionId;
11305
+ const n = H.get("actionConfigs"), r = q.sessionId;
11306
11306
  if (!n.includes("transfer")) throw an.error(`当前状态请勿转接; actionConfigs:${n.join(",")}; session id: ${r}`, "call-api.ts 306 transferAgent"), new Error(JSON.stringify({ code: 1, msg: "当前状态请勿转接" }));
11307
11307
  const { transferIsAnswer: i } = H.getState();
11308
11308
  if (i) throw new Error(JSON.stringify({ code: 1, msg: "当前正在转接" }));
@@ -11310,7 +11310,7 @@ class s2 {
11310
11310
  }
11311
11311
  async transferOutline(e) {
11312
11312
  this.roleMute();
11313
- const n = Z.sessionId, r = H.get("actionConfigs");
11313
+ const n = q.sessionId, r = H.get("actionConfigs");
11314
11314
  if (!r.includes("transfer")) throw an.error(`当前状态请勿转接; actionConfigs:${r.join(",")}; session id: ${n}`, "call-api.ts 330 transferOutline"), new Error(JSON.stringify({ code: 1, msg: "当前状态请勿转接" }));
11315
11315
  if (!e) throw new Error(JSON.stringify({ code: 1, msg: "号码不能为空" }));
11316
11316
  if (!/^\d+$/.test(e)) throw an.error(`当前状态请勿转接; 转接号码:${e}; session id: ${n}`, "call-api.ts 339 transferOutline"), new Error(JSON.stringify({ code: 1, msg: "号码格式错误" }));
@@ -11340,7 +11340,7 @@ const PA = class PA {
11340
11340
  }), ln(this, ts, () => {
11341
11341
  }), this.initWebRtc = async () => {
11342
11342
  if (nt(this, Pn)) return;
11343
- const e = Z.agentInfo.sip_account_list.find((n) => n.device_type === 1);
11343
+ const e = q.agentInfo.sip_account_list.find((n) => n.device_type === 1);
11344
11344
  if (!e) throw new Error(JSON.stringify({ code: 1, msg: "未找到 sip_account_list" }));
11345
11345
  {
11346
11346
  const n = e.sip_register_addr;
@@ -11359,7 +11359,7 @@ const PA = class PA {
11359
11359
  let n = "";
11360
11360
  const r = new URL(Ri).host;
11361
11361
  n = Ri.includes("https") ? `wss://${r}` : `ws://${r}`;
11362
- const { agent_no: i } = Z.agentInfo;
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
11364
  nt(this, mn)._changeState({ data: { state: Mt.BUSY, state_name: "忙碌" }, success: () => {
11365
11365
  H.updateDisplayText(""), ge.emit(ie.AGENT_STATE, { state: Mt.BUSY, state_name: "忙碌" });
@@ -11367,7 +11367,7 @@ const PA = class PA {
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 ? Z.stateObject.state === Mt.UNREGISTERED && await nt(this, mn)._changeState({ data: { ...Z.stateBeforeChange, state_name: Z.stateBeforeChange.state === Mt.IDLE ? "空闲" : "忙碌" } }, "qq") : await this.destroyRtc();
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();
11371
11371
  })), this.on(Ge.KICK_OFF, () => {
11372
11372
  this.destroy();
11373
11373
  }), window.addEventListener("beforeunload", (e) => {
@@ -11402,9 +11402,9 @@ const PA = class PA {
11402
11402
  const c = await wn(`${_i}/ring/query`, {});
11403
11403
  ln(this, Ni, c.data);
11404
11404
  const u = await wn(`${_i}/audio/list`, {});
11405
- ln(this, ro, u.data), Z.logBuiltinEnabled = n || !1, Z.browserAlertTime = r || 5e3, await nt(this, mn)._agentLogin(Kc), an.info("初始化成功", "index.ts");
11406
- const { current_answer_device: d, current_state: g, out_display_number: p, out_display_select_switch: v } = Z.agentInfo;
11407
- g === Mt.IDLE ? (H.updateActionConfigs(Wn), Z.stateObject = { state: g, state_name: "空闲" }, Z.stateBeforeChange = Z.stateObject) : g === Mt.BUSY ? (H.updateActionConfigs(fA), Z.stateObject = { state: g, state_name: "忙碌" }, Z.stateBeforeChange = Z.stateObject) : g === Mt.UNREGISTERED && (H.updateActionConfigs(fA), Z.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))), Z.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();
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
+ 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();
11408
11408
  } });
11409
11409
  } catch {
11410
11410
  ge.emit(Ge.AGENT_INIT_STATUS, !1), ln(this, io, !1);
@@ -11425,7 +11425,7 @@ const PA = class PA {
11425
11425
  }
11426
11426
  async destroy() {
11427
11427
  var e, n;
11428
- lr._instance && (await this.destroyRtc(), (e = nt(this, Xa)) == null || e.call(this), (n = nt(this, $a)) == null || n.call(this), clearInterval(nt(this, to)), un.__internalClose(), ge.emit(Ge.DESTROY), this.offAll(), lr._instance = null, H.reset(), H.updateSelectOutNumber(""), clearInterval(lr._timer), clearTimeout(Z.autoStateTimer), Z.autoStateTimer = null, lr._timer = null);
11428
+ lr._instance && (await this.destroyRtc(), (e = nt(this, Xa)) == null || e.call(this), (n = nt(this, $a)) == null || n.call(this), clearInterval(nt(this, to)), un.__internalClose(), ge.emit(Ge.DESTROY), this.offAll(), lr._instance = null, H.reset(), H.updateSelectOutNumber(""), clearInterval(lr._timer), clearTimeout(q.autoStateTimer), q.autoStateTimer = null, lr._timer = null);
11429
11429
  }
11430
11430
  get call_api() {
11431
11431
  const e = (n) => (...r) => n.apply(this, r);
@@ -11441,12 +11441,12 @@ 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 (Z.stateObject.state === Mt.UNREGISTERED && r === 1) {
11444
+ if (q.stateObject.state === Mt.UNREGISTERED && r === 1) {
11445
11445
  await nt(this, Pn).reconnect();
11446
11446
  let i = "";
11447
11447
  const o = new URL(Ri).host;
11448
11448
  i = Ri.includes("https") ? `wss://${o}` : `ws://${o}`;
11449
- const { agent_no: a } = Z.agentInfo;
11449
+ const { agent_no: a } = q.agentInfo;
11450
11450
  un.getInstance({ url: `${i}/ccs-ws/api/v1/ws/call/${a}?Authorization=`, sipClient: nt(this, Pn) });
11451
11451
  }
11452
11452
  await nt(this, mn).changeState(n, "c");
@@ -11458,7 +11458,7 @@ const PA = class PA {
11458
11458
  }, listenAgentCall: (n) => nt(this, mn).listenCall(n) };
11459
11459
  }
11460
11460
  getAgentData() {
11461
- const { agent_no: e, agent_name: n, answer_devices: r, out_display_data: i, out_display_select_switch: o, current_state: a } = Z.agentInfo, { stateObject: s } = Z, { soft_device_ring_switch: A, agent_hangup_ring_switch: c } = nt(this, Ni), u = { 1: "软电话", 2: "手机模式", 3: "SIP话机" };
11461
+ const { agent_no: e, agent_name: n, answer_devices: r, out_display_data: i, out_display_select_switch: o, current_state: a } = q.agentInfo, { stateObject: s } = q, { soft_device_ring_switch: A, agent_hangup_ring_switch: c } = nt(this, Ni), u = { 1: "软电话", 2: "手机模式", 3: "SIP话机" };
11462
11462
  return { agent_no: e, agent_name: n, init_state: a, default_device: H.get("answerDevice"), out_display_data: i, out_display_select_switch: o, answer_devices: (r || "").split(",").map((d) => ({ value: Number(d), label: u[Number(d)] })), stateObject: s, soft_device_ring_switch: A === 1, agent_hangup_ring_switch: c === 1 };
11463
11463
  }
11464
11464
  async getRealTimeCustomerInfo() {
@@ -11466,11 +11466,11 @@ const PA = class PA {
11466
11466
  }
11467
11467
  setBrowserAlert(e) {
11468
11468
  if (typeof e != "boolean") throw new Error(JSON.stringify({ code: 1, msg: "参数类型错误" }));
11469
- Z.logBuiltinEnabled = e || !1;
11469
+ q.logBuiltinEnabled = e || !1;
11470
11470
  }
11471
11471
  setBrowserAlertTime(e) {
11472
11472
  if (typeof e != "number") throw new Error(JSON.stringify({ code: 1, msg: "参数类型错误" }));
11473
- Z.browserAlertTime = e || 3e3;
11473
+ q.browserAlertTime = e || 3e3;
11474
11474
  }
11475
11475
  getEarSpeakAgent() {
11476
11476
  const { sounds_url: e } = nt(this, no), { soft_device_ring_audio_id: n } = nt(this, Ni), r = nt(this, ro).find(({ audio_id: i }) => i === n);
@@ -12567,21 +12567,21 @@ function dI(t, e, n) {
12567
12567
  return function(f, M, E) {
12568
12568
  var b = f.attrs, h = f.componentStyle, S = f.defaultProps, T = f.foldedComponentIds, R = f.styledComponentId, N = f.target, D = ne.useContext(f1), F = Ah(), k = f.shouldForwardProp || F.shouldForwardProp;
12569
12569
  process.env.NODE_ENV !== "production" && qg(R);
12570
- var U = D2(M, D, S) || Yo, q = function(W, Y, ee) {
12570
+ var U = D2(M, D, S) || Yo, Z = function(W, Y, ee) {
12571
12571
  for (var J, se = rr(rr({}, Y), { className: void 0, theme: ee }), ce = 0; ce < W.length; ce += 1) {
12572
12572
  var ue = Wo(J = W[ce]) ? J(se) : J;
12573
12573
  for (var te in ue) se[te] = te === "className" ? Xi(se[te], ue[te]) : te === "style" ? rr(rr({}, se[te]), ue[te]) : ue[te];
12574
12574
  }
12575
12575
  return Y.className && (se.className = Xi(se.className, Y.className)), se;
12576
- }(b, M, U), K = q.as || N, G = {};
12577
- for (var L in q) q[L] === void 0 || L[0] === "$" || L === "as" || L === "theme" && q.theme === U || (L === "forwardedAs" ? G.as = q.forwardedAs : k && !k(L, K) || (G[L] = q[L], k || process.env.NODE_ENV !== "development" || l2(L) || lh.has(L) || !lu.has(K) || (lh.add(L), console.warn('styled-components: it looks like an unknown prop "'.concat(L, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
12576
+ }(b, M, U), K = Z.as || N, G = {};
12577
+ for (var L in Z) Z[L] === void 0 || L[0] === "$" || L === "as" || L === "theme" && Z.theme === U || (L === "forwardedAs" ? G.as = Z.forwardedAs : k && !k(L, K) || (G[L] = Z[L], k || process.env.NODE_ENV !== "development" || l2(L) || lh.has(L) || !lu.has(K) || (lh.add(L), console.warn('styled-components: it looks like an unknown prop "'.concat(L, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
12578
12578
  var _ = function(W, Y) {
12579
12579
  var ee = Ah(), J = W.generateAndInjectStyles(Y, ee.styleSheet, ee.stylis);
12580
12580
  return process.env.NODE_ENV !== "production" && qg(J), J;
12581
- }(h, q);
12581
+ }(h, Z);
12582
12582
  process.env.NODE_ENV !== "production" && f.warnTooManyClasses && f.warnTooManyClasses(_);
12583
12583
  var V = Xi(T, R);
12584
- return _ && (V += " " + _), q.className && (V += " " + q.className), G[Wc(K) && !lu.has(K) ? "class" : "className"] = V, E && (G.ref = E), Zy(K, G);
12584
+ return _ && (V += " " + _), Z.className && (V += " " + Z.className), G[Wc(K) && !lu.has(K) ? "class" : "className"] = V, E && (G.ref = E), Zy(K, G);
12585
12585
  }(I, O, x);
12586
12586
  }
12587
12587
  w.displayName = d;
@@ -18302,8 +18302,8 @@ function ug() {
18302
18302
  };
18303
18303
  function R(N, D) {
18304
18304
  for (M = N, E = D, e = 0; !S && b && !F && e < h.length; e++) {
18305
- var F, k = h[e], U = T.p, q = k[2];
18306
- N > 3 ? (F = q === D) && (E = k[(M = k[4]) ? 5 : (M = 3, 3)], k[4] = k[5] = t) : k[0] <= U && ((F = N < 2 && U < k[1]) ? (M = 0, T.v = D, T.n = k[1]) : U < q && (F = N < 3 || k[0] > D || D > q) && (k[4] = N, k[5] = D, T.n = q, M = 0));
18305
+ var F, k = h[e], U = T.p, Z = k[2];
18306
+ N > 3 ? (F = Z === D) && (E = k[(M = k[4]) ? 5 : (M = 3, 3)], k[4] = k[5] = t) : k[0] <= U && ((F = N < 2 && U < k[1]) ? (M = 0, T.v = D, T.n = k[1]) : U < Z && (F = N < 3 || k[0] > D || D > Z) && (k[4] = N, k[5] = D, T.n = Z, M = 0));
18307
18307
  }
18308
18308
  if (F || N > 1) return a;
18309
18309
  throw S = !0, D;
@@ -20736,8 +20736,8 @@ var gd = /* @__PURE__ */ l.createContext({
20736
20736
  );
20737
20737
  var k, U = typeof A == "function";
20738
20738
  if (U) {
20739
- var q = E.getFieldsValue(!0);
20740
- k = A(q, E);
20739
+ var Z = E.getFieldsValue(!0);
20740
+ k = A(Z, E);
20741
20741
  } else
20742
20742
  k = A;
20743
20743
  h(!U);
@@ -20966,8 +20966,8 @@ const fg = Xp ? (
20966
20966
  id: L.id,
20967
20967
  required: L.required
20968
20968
  }, L.label)));
20969
- const q = qi(g), K = Ae(R, `${R}-${c}`, {
20970
- [`${R}-${q}`]: q,
20969
+ const Z = qi(g), K = Ae(R, `${R}-${c}`, {
20970
+ [`${R}-${Z}`]: Z,
20971
20971
  [`${R}-rtl`]: r === "rtl",
20972
20972
  [`${R}-block`]: I
20973
20973
  }, a, s, F, k, N), G = l.useMemo(() => ({
@@ -21101,15 +21101,15 @@ var _1 = /* @__PURE__ */ ne.forwardRef(function(t, e) {
21101
21101
  var n, r, i, o = t.inputElement, a = t.children, s = t.prefixCls, A = t.prefix, c = t.suffix, u = t.addonBefore, d = t.addonAfter, g = t.className, p = t.style, v = t.disabled, C = t.readOnly, m = t.focused, y = t.triggerFocus, w = t.allowClear, I = t.value, O = t.handleReset, x = t.hidden, f = t.classes, M = t.classNames, E = t.dataAttrs, b = t.styles, h = t.components, S = t.onClear, T = a ?? o, R = (h == null ? void 0 : h.affixWrapper) || "span", N = (h == null ? void 0 : h.groupWrapper) || "span", D = (h == null ? void 0 : h.wrapper) || "span", F = (h == null ? void 0 : h.groupAddon) || "span", k = Te(null), U = function(de) {
21102
21102
  var le;
21103
21103
  (le = k.current) !== null && le !== void 0 && le.contains(de.target) && (y == null || y());
21104
- }, q = F3(t), K = /* @__PURE__ */ Ky(T, {
21104
+ }, Z = F3(t), K = /* @__PURE__ */ Ky(T, {
21105
21105
  value: I,
21106
- className: Ae((n = T.props) === null || n === void 0 ? void 0 : n.className, !q && (M == null ? void 0 : M.variant)) || null
21106
+ className: Ae((n = T.props) === null || n === void 0 ? void 0 : n.className, !Z && (M == null ? void 0 : M.variant)) || null
21107
21107
  }), G = Te(null);
21108
21108
  if (ne.useImperativeHandle(e, function() {
21109
21109
  return {
21110
21110
  nativeElement: G.current || k.current
21111
21111
  };
21112
- }), q) {
21112
+ }), Z) {
21113
21113
  var L = null;
21114
21114
  if (w) {
21115
21115
  var _ = !v && !C && I, V = "".concat(s, "-clear-icon"), W = rt(w) === "object" && w !== null && w !== void 0 && w.clearIcon ? w.clearIcon : "✖";
@@ -21176,9 +21176,9 @@ function X1(t, e) {
21176
21176
  var P3 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], Q3 = /* @__PURE__ */ Nr(function(t, e) {
21177
21177
  var n = t.autoComplete, r = t.onChange, i = t.onFocus, o = t.onBlur, a = t.onPressEnter, s = t.onKeyDown, A = t.onKeyUp, c = t.prefixCls, u = c === void 0 ? "rc-input" : c, d = t.disabled, g = t.htmlSize, p = t.className, v = t.maxLength, C = t.suffix, m = t.showCount, y = t.count, w = t.type, I = w === void 0 ? "text" : w, O = t.classes, x = t.classNames, f = t.styles, M = t.onCompositionStart, E = t.onCompositionEnd, b = St(t, P3), h = Et(!1), S = $(h, 2), T = S[0], R = S[1], N = Te(!1), D = Te(!1), F = Te(null), k = Te(null), U = function(pe) {
21178
21178
  F.current && J1(F.current, pe);
21179
- }, q = Qn(t.defaultValue, {
21179
+ }, Z = Qn(t.defaultValue, {
21180
21180
  value: t.value
21181
- }), K = $(q, 2), G = K[0], L = K[1], _ = G == null ? "" : String(G), V = Et(null), W = $(V, 2), Y = W[0], ee = W[1], J = X1(y, m), se = J.max || v, ce = J.strategy(_), ue = !!se && ce > se;
21181
+ }), K = $(Z, 2), G = K[0], L = K[1], _ = G == null ? "" : String(G), V = Et(null), W = $(V, 2), Y = W[0], ee = W[1], J = X1(y, m), se = J.max || v, ce = J.strategy(_), ue = !!se && ce > se;
21182
21182
  ta(e, function() {
21183
21183
  var Ie;
21184
21184
  return {
@@ -21677,7 +21677,7 @@ const cs = /* @__PURE__ */ Nr((t, e) => {
21677
21677
  style: h,
21678
21678
  classNames: S,
21679
21679
  styles: T
21680
- } = mi("input"), R = x("input", n), N = Te(null), D = ni(R), [F, k, U] = I1(R, m), [q] = x1(R, D), {
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
21683
  } = aa(R, f), L = qi((ve) => {
@@ -21702,7 +21702,7 @@ const cs = /* @__PURE__ */ Nr((t, e) => {
21702
21702
  }, z = (ve) => {
21703
21703
  ue(), y == null || y(ve);
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
- return F(q(/* @__PURE__ */ ne.createElement(Q3, Object.assign({
21705
+ return F(Z(/* @__PURE__ */ ne.createElement(Q3, Object.assign({
21706
21706
  ref: Vr(e, N),
21707
21707
  prefixCls: R,
21708
21708
  autoComplete: E
@@ -21886,12 +21886,12 @@ const a5 = /* @__PURE__ */ l.forwardRef((t, e) => {
21886
21886
  },
21887
21887
  nativeElement: D.current
21888
21888
  }));
21889
- const k = (Y) => A ? A(Y) : Y, [U, q] = l.useState(Qs(k(o || "")));
21889
+ const k = (Y) => A ? A(Y) : Y, [U, Z] = l.useState(Qs(k(o || "")));
21890
21890
  l.useEffect(() => {
21891
- a !== void 0 && q(Qs(a));
21891
+ a !== void 0 && Z(Qs(a));
21892
21892
  }, [a]);
21893
21893
  const K = sn((Y) => {
21894
- q(Y), m && m(Y), s && Y.length === r && Y.every((ee) => ee) && Y.some((ee, J) => U[J] !== ee) && s(Y.join(""));
21894
+ Z(Y), m && m(Y), s && Y.length === r && Y.every((ee) => ee) && Y.some((ee, J) => U[J] !== ee) && s(Y.join(""));
21895
21895
  }), G = sn((Y, ee) => {
21896
21896
  let J = Re(U);
21897
21897
  for (let ce = 0; ce < Y; ce += 1)
@@ -22363,9 +22363,9 @@ function dC(t) {
22363
22363
  };
22364
22364
  }, []);
22365
22365
  var C = function(O) {
22366
- var x = T5(O), f = x.pageX, M = x.pageY, E = n.current.getBoundingClientRect(), b = E.x, h = E.y, S = E.width, T = E.height, R = e.current.getBoundingClientRect(), N = R.width, D = R.height, F = N / 2, k = D / 2, U = Math.max(0, Math.min(f - b, S)) - F, q = Math.max(0, Math.min(M - h, T)) - k, K = {
22366
+ var x = T5(O), f = x.pageX, M = x.pageY, E = n.current.getBoundingClientRect(), b = E.x, h = E.y, S = E.width, T = E.height, R = e.current.getBoundingClientRect(), N = R.width, D = R.height, F = N / 2, k = D / 2, U = Math.max(0, Math.min(f - b, S)) - F, Z = Math.max(0, Math.min(M - h, T)) - k, K = {
22367
22367
  x: U,
22368
- y: r === "x" ? d.y : q
22368
+ y: r === "x" ? d.y : Z
22369
22369
  };
22370
22370
  if (N === 0 && D === 0 || N !== D)
22371
22371
  return !1;
@@ -22561,26 +22561,26 @@ var P5 = [{
22561
22561
  }], Q5 = /* @__PURE__ */ Nr(function(t, e) {
22562
22562
  var n = t.value, r = t.defaultValue, i = t.prefixCls, o = i === void 0 ? R5 : i, a = t.onChange, s = t.onChangeComplete, A = t.className, c = t.style, u = t.panelRender, d = t.disabledAlpha, g = d === void 0 ? !1 : d, p = t.disabled, v = p === void 0 ? !1 : p, C = t.components, m = k5(C), y = $(m, 1), w = y[0], I = D5(r || O5, n), O = $(I, 2), x = O[0], f = O[1], M = Or(function() {
22563
22563
  return x.setA(1).toRgbString();
22564
- }, [x]), E = function(q, K) {
22565
- n || f(q), a == null || a(q, K);
22566
- }, b = function(q) {
22567
- return new fi(x.setHue(q));
22568
- }, h = function(q) {
22569
- return new fi(x.setA(q / 100));
22570
- }, S = function(q) {
22571
- E(b(q), {
22564
+ }, [x]), E = function(Z, K) {
22565
+ n || f(Z), a == null || a(Z, K);
22566
+ }, b = function(Z) {
22567
+ return new fi(x.setHue(Z));
22568
+ }, h = function(Z) {
22569
+ return new fi(x.setA(Z / 100));
22570
+ }, S = function(Z) {
22571
+ E(b(Z), {
22572
22572
  type: "hue",
22573
- value: q
22573
+ value: Z
22574
22574
  });
22575
- }, T = function(q) {
22576
- E(h(q), {
22575
+ }, T = function(Z) {
22576
+ E(h(Z), {
22577
22577
  type: "alpha",
22578
- value: q
22578
+ value: Z
22579
22579
  });
22580
- }, R = function(q) {
22581
- s && s(b(q));
22582
- }, N = function(q) {
22583
- s && s(h(q));
22580
+ }, R = function(Z) {
22581
+ s && s(b(Z));
22582
+ }, N = function(Z) {
22583
+ s && s(h(Z));
22584
22584
  }, D = Ae("".concat(o, "-panel"), A, P({}, "".concat(o, "-panel-disabled"), v)), F = {
22585
22585
  prefixCls: o,
22586
22586
  disabled: v,
@@ -23512,7 +23512,7 @@ const pR = {
23512
23512
  getPrefixCls: F,
23513
23513
  direction: k,
23514
23514
  autoInsertSpace: U,
23515
- className: q,
23515
+ className: Z,
23516
23516
  style: K,
23517
23517
  classNames: G,
23518
23518
  styles: L
@@ -23573,7 +23573,7 @@ const pR = {
23573
23573
  [`${V}-block`]: O,
23574
23574
  [`${V}-rtl`]: k === "rtl",
23575
23575
  [`${V}-icon-end`]: w === "end"
23576
- }, Ue, v, C, q), qe = Object.assign(Object.assign({}, K), M), be = Ae(f == null ? void 0 : f.icon, G.icon), _e = Object.assign(Object.assign({}, (g == null ? void 0 : g.icon) || {}), L.icon || {}), ut = y && !te ? /* @__PURE__ */ ne.createElement(pd, {
23576
+ }, Ue, v, C, Z), qe = Object.assign(Object.assign({}, K), M), be = Ae(f == null ? void 0 : f.icon, G.icon), _e = Object.assign(Object.assign({}, (g == null ? void 0 : g.icon) || {}), L.icon || {}), ut = y && !te ? /* @__PURE__ */ ne.createElement(pd, {
23577
23577
  prefixCls: V,
23578
23578
  className: be,
23579
23579
  style: _e
@@ -23694,7 +23694,7 @@ const CC = /* @__PURE__ */ l.forwardRef((t, e) => {
23694
23694
  className: k,
23695
23695
  prefixCls: O,
23696
23696
  type: "search"
23697
- }), q = (G) => {
23697
+ }), Z = (G) => {
23698
23698
  w.current = !0, p == null || p(G);
23699
23699
  }, K = (G) => {
23700
23700
  w.current = !1, v == null || v(G);
@@ -23704,7 +23704,7 @@ const CC = /* @__PURE__ */ l.forwardRef((t, e) => {
23704
23704
  onPressEnter: S
23705
23705
  }, U, {
23706
23706
  size: f,
23707
- onCompositionStart: q,
23707
+ onCompositionStart: Z,
23708
23708
  onCompositionEnd: K,
23709
23709
  addonAfter: N,
23710
23710
  suffix: a,
@@ -24191,10 +24191,10 @@ var YR = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "classNa
24191
24191
  } else
24192
24192
  b();
24193
24193
  }, [T]);
24194
- var q = l.useRef(), K = function() {
24195
- Zt.cancel(q.current);
24194
+ var Z = l.useRef(), K = function() {
24195
+ Zt.cancel(Z.current);
24196
24196
  }, G = function(W) {
24197
- T === gl && (s == null || s(W), a && (K(), q.current = Zt(function() {
24197
+ T === gl && (s == null || s(W), a && (K(), Z.current = Zt(function() {
24198
24198
  U();
24199
24199
  })));
24200
24200
  };
@@ -24217,7 +24217,7 @@ var YR = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "classNa
24217
24217
  var n, r = t.defaultValue, i = t.value, o = t.onFocus, a = t.onBlur, s = t.onChange, A = t.allowClear, c = t.maxLength, u = t.onCompositionStart, d = t.onCompositionEnd, g = t.suffix, p = t.prefixCls, v = p === void 0 ? "rc-textarea" : p, C = t.showCount, m = t.count, y = t.className, w = t.style, I = t.disabled, O = t.hidden, x = t.classNames, f = t.styles, M = t.onResize, E = t.onClear, b = t.onPressEnter, h = t.readOnly, S = t.autoSize, T = t.onKeyDown, R = St(t, JR), N = Qn(r, {
24218
24218
  value: i,
24219
24219
  defaultValue: r
24220
- }), D = $(N, 2), F = D[0], k = D[1], U = F == null ? "" : String(F), q = ne.useState(!1), K = $(q, 2), G = K[0], L = K[1], _ = ne.useRef(!1), V = ne.useState(null), W = $(V, 2), Y = W[0], ee = W[1], J = Te(null), se = Te(null), ce = function() {
24220
+ }), D = $(N, 2), F = D[0], k = D[1], U = F == null ? "" : String(F), Z = ne.useState(!1), K = $(Z, 2), G = K[0], L = K[1], _ = ne.useRef(!1), V = ne.useState(null), W = $(V, 2), Y = W[0], ee = W[1], J = Te(null), se = Te(null), ce = function() {
24221
24221
  var Fe;
24222
24222
  return (Fe = se.current) === null || Fe === void 0 ? void 0 : Fe.textArea;
24223
24223
  }, ue = function() {
@@ -24458,7 +24458,7 @@ const tO = /* @__PURE__ */ Nr((t, e) => {
24458
24458
  }
24459
24459
  };
24460
24460
  });
24461
- const D = m("input", r), F = ni(D), [k, U, q] = I1(D, u), [K] = $R(D, F), {
24461
+ const D = m("input", r), F = ni(D), [k, U, Z] = I1(D, u), [K] = $R(D, F), {
24462
24462
  compactSize: G,
24463
24463
  compactItemClassnames: L
24464
24464
  } = aa(D, y), _ = qi((ee) => {
@@ -24472,7 +24472,7 @@ const tO = /* @__PURE__ */ Nr((t, e) => {
24472
24472
  styles: Object.assign(Object.assign({}, M), p),
24473
24473
  disabled: b,
24474
24474
  allowClear: Y,
24475
- className: Ae(q, F, d, u, L, O),
24475
+ className: Ae(Z, F, d, u, L, O),
24476
24476
  classNames: Object.assign(Object.assign(Object.assign({}, c), f), {
24477
24477
  textarea: Ae({
24478
24478
  [`${D}-sm`]: _ === "small",
@@ -24668,7 +24668,7 @@ var TC = /* @__PURE__ */ l.memo(function(t) {
24668
24668
  });
24669
24669
  process.env.NODE_ENV !== "production" && (TC.displayName = "PopupContent");
24670
24670
  var NC = /* @__PURE__ */ l.forwardRef(function(t, e) {
24671
- var n = t.popup, r = t.className, i = t.prefixCls, o = t.style, a = t.target, s = t.onVisibleChanged, A = t.open, c = t.keepDom, u = t.fresh, d = t.onClick, g = t.mask, p = t.arrow, v = t.arrowPos, C = t.align, m = t.motion, y = t.maskMotion, w = t.forceRender, I = t.getPopupContainer, O = t.autoDestroy, x = t.portal, f = t.zIndex, M = t.onMouseEnter, E = t.onMouseLeave, b = t.onPointerEnter, h = t.onPointerDownCapture, S = t.ready, T = t.offsetX, R = t.offsetY, N = t.offsetR, D = t.offsetB, F = t.onAlign, k = t.onPrepare, U = t.stretch, q = t.targetWidth, K = t.targetHeight, G = typeof n == "function" ? n() : n, L = A || c, _ = (I == null ? void 0 : I.length) > 0, V = l.useState(!I || !_), W = $(V, 2), Y = W[0], ee = W[1];
24671
+ var n = t.popup, r = t.className, i = t.prefixCls, o = t.style, a = t.target, s = t.onVisibleChanged, A = t.open, c = t.keepDom, u = t.fresh, d = t.onClick, g = t.mask, p = t.arrow, v = t.arrowPos, C = t.align, m = t.motion, y = t.maskMotion, w = t.forceRender, I = t.getPopupContainer, O = t.autoDestroy, x = t.portal, f = t.zIndex, M = t.onMouseEnter, E = t.onMouseLeave, b = t.onPointerEnter, h = t.onPointerDownCapture, S = t.ready, T = t.offsetX, R = t.offsetY, N = t.offsetR, D = t.offsetB, F = t.onAlign, k = t.onPrepare, U = t.stretch, Z = t.targetWidth, K = t.targetHeight, G = typeof n == "function" ? n() : n, L = A || c, _ = (I == null ? void 0 : I.length) > 0, V = l.useState(!I || !_), W = $(V, 2), Y = W[0], ee = W[1];
24672
24672
  if (nn(function() {
24673
24673
  !Y && _ && a && ee(!0);
24674
24674
  }, [Y, _, a]), !Y)
@@ -24684,7 +24684,7 @@ var NC = /* @__PURE__ */ l.forwardRef(function(t, e) {
24684
24684
  me ? (se.right = N, se.left = J) : (se.left = T, se.right = J), z ? (se.bottom = D, se.top = J) : (se.top = R, se.bottom = J);
24685
24685
  }
24686
24686
  var de = {};
24687
- return U && (U.includes("height") && K ? de.height = K : U.includes("minHeight") && K && (de.minHeight = K), U.includes("width") && q ? de.width = q : U.includes("minWidth") && q && (de.minWidth = q)), A || (de.pointerEvents = "none"), /* @__PURE__ */ l.createElement(x, {
24687
+ return U && (U.includes("height") && K ? de.height = K : U.includes("minHeight") && K && (de.minHeight = K), U.includes("width") && Z ? de.width = Z : U.includes("minWidth") && Z && (de.minWidth = Z)), A || (de.pointerEvents = "none"), /* @__PURE__ */ l.createElement(x, {
24688
24688
  open: w || L,
24689
24689
  getContainer: I && function() {
24690
24690
  return I(a);
@@ -24882,8 +24882,8 @@ function hO(t, e, n, r, i, o, a) {
24882
24882
  height: 0
24883
24883
  };
24884
24884
  else {
24885
- var q, K, G = n.getBoundingClientRect();
24886
- G.x = (q = G.x) !== null && q !== void 0 ? q : G.left, G.y = (K = G.y) !== null && K !== void 0 ? K : G.top, U = {
24885
+ var Z, K, G = n.getBoundingClientRect();
24886
+ G.x = (Z = G.x) !== null && Z !== void 0 ? Z : G.left, G.y = (K = G.y) !== null && K !== void 0 ? K : G.top, U = {
24887
24887
  x: G.x,
24888
24888
  y: G.y,
24889
24889
  width: G.width,
@@ -25043,7 +25043,7 @@ 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, q = 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], ve = Se[1];
25047
25047
  nn(function() {
25048
25048
  ve(MC());
25049
25049
  }, []);
@@ -25114,7 +25114,7 @@ function CO() {
25114
25114
  };
25115
25115
  });
25116
25116
  var xt = l.useState(0), Ze = $(xt, 2), ht = Ze[0], wt = Ze[1], Dt = l.useState(0), kt = $(Dt, 2), Rn = kt[0], On = kt[1], Xn = function() {
25117
- if (q && ut) {
25117
+ if (Z && ut) {
25118
25118
  var pt = ut.getBoundingClientRect();
25119
25119
  wt(pt.width), On(pt.height);
25120
25120
  }
@@ -25223,7 +25223,7 @@ function CO() {
25223
25223
  offsetR: Qt,
25224
25224
  offsetB: Un,
25225
25225
  onAlign: Cr,
25226
- stretch: q,
25226
+ stretch: Z,
25227
25227
  targetWidth: ht / zr,
25228
25228
  targetHeight: Rn / Zn
25229
25229
  })));
@@ -25317,13 +25317,13 @@ function xO(t, e) {
25317
25317
  ne.useImperativeHandle(e, function() {
25318
25318
  return F.current;
25319
25319
  });
25320
- var q = function(J) {
25320
+ var Z = function(J) {
25321
25321
  N(J), b == null || b(J);
25322
25322
  };
25323
25323
  bO({
25324
25324
  visible: D,
25325
25325
  triggerRef: U,
25326
- onVisibleChange: q,
25326
+ onVisibleChange: Z,
25327
25327
  autoFocus: f,
25328
25328
  overlayRef: k
25329
25329
  });
@@ -25366,7 +25366,7 @@ function xO(t, e) {
25366
25366
  popupVisible: D,
25367
25367
  stretch: _() ? "minWidth" : "",
25368
25368
  popup: L(),
25369
- onPopupVisibleChange: q,
25369
+ onPopupVisibleChange: Z,
25370
25370
  onPopupClick: K,
25371
25371
  getPopupContainer: v
25372
25372
  }), W);
@@ -25669,7 +25669,7 @@ function GO(t) {
25669
25669
  return "+ ".concat(t.length, " ...");
25670
25670
  }
25671
25671
  function qO(t, e) {
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), q = $(U, 2), K = q[0], G = q[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() {
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
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() {
25675
25675
  var ze = o;
@@ -25951,8 +25951,8 @@ function _O(t, e, n, r, i, o, a, s, A, c) {
25951
25951
  (ym.includes(v) || [ya, Ea].includes(v)) && p.preventDefault();
25952
25952
  var b = function(k) {
25953
25953
  if (k) {
25954
- var U = k, q = k.querySelector("a");
25955
- q != null && q.getAttribute("href") && (U = q);
25954
+ var U = k, Z = k.querySelector("a");
25955
+ Z != null && Z.getAttribute("href") && (U = Z);
25956
25956
  var K = O.get(k);
25957
25957
  s(K), g(), u.current = Zt(function() {
25958
25958
  d.current === K && U.focus();
@@ -26128,7 +26128,7 @@ var iM = ["title", "attribute", "elementRef"], oM = ["style", "className", "even
26128
26128
  item: T.current,
26129
26129
  domEvent: ce
26130
26130
  };
26131
- }, U = s || f, q = KC(i, N, u, d), K = q.active, G = St(q, aM), L = M.includes(i), _ = VC(F.length), V = function(ce) {
26131
+ }, U = s || f, Z = KC(i, N, u, d), K = Z.active, G = St(Z, aM), L = M.includes(i), _ = VC(F.length), V = function(ce) {
26132
26132
  if (!N) {
26133
26133
  var ue = k(ce);
26134
26134
  g == null || g(TA(ue)), I(ue);
@@ -26352,7 +26352,7 @@ function pM(t) {
26352
26352
  }));
26353
26353
  }
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
- 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, q = 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();
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
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) {
26358
26358
  Y || Be(ct);
@@ -26378,7 +26378,7 @@ var mM = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
26378
26378
  }), it = function(ct) {
26379
26379
  b !== "inline" && U(o, ct);
26380
26380
  }, qe = function() {
26381
- q(o);
26381
+ Z(o);
26382
26382
  }, be = f && "".concat(f, "-popup"), _e = l.useMemo(function() {
26383
26383
  return /* @__PURE__ */ l.createElement(zC, {
26384
26384
  icon: b !== "horizontal" ? ce : void 0,
@@ -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, q = 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, ve = 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.");
@@ -26623,7 +26623,7 @@ var SM = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
26623
26623
  var Rn = j(j({}, ht), {}, {
26624
26624
  selectedKeys: kt
26625
26625
  });
26626
- Dt ? K == null || K(Rn) : q == null || q(Rn);
26626
+ Dt ? K == null || K(Rn) : Z == null || Z(Rn);
26627
26627
  }
26628
26628
  !F && At.length && vt !== "inline" && Ct(Vi);
26629
26629
  }, zn = xa(function(Ze) {
@@ -27060,14 +27060,14 @@ const Im = {
27060
27060
  }, []);
27061
27061
  const D = () => {
27062
27062
  M(!I, "clickTrigger");
27063
- }, F = mr(y, ["collapsed"]), k = I ? g : d, U = FM(k) ? `${k}px` : String(k), q = parseFloat(String(g || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
27063
+ }, F = mr(y, ["collapsed"]), k = I ? g : d, U = FM(k) ? `${k}px` : String(k), Z = parseFloat(String(g || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
27064
27064
  onClick: D,
27065
27065
  className: Ae(`${h}-zero-width-trigger`, `${h}-zero-width-trigger-${u ? "right" : "left"}`),
27066
27066
  style: p
27067
27067
  }, i || /* @__PURE__ */ l.createElement(WC, null)) : null, K = b === "rtl" == !u, _ = {
27068
27068
  expanded: K ? /* @__PURE__ */ l.createElement(xA, null) : /* @__PURE__ */ l.createElement(xd, null),
27069
27069
  collapsed: K ? /* @__PURE__ */ l.createElement(xd, null) : /* @__PURE__ */ l.createElement(xA, null)
27070
- }[I ? "collapsed" : "expanded"], V = i !== null ? q || /* @__PURE__ */ l.createElement("div", {
27070
+ }[I ? "collapsed" : "expanded"], V = i !== null ? Z || /* @__PURE__ */ l.createElement("div", {
27071
27071
  className: `${h}-trigger`,
27072
27072
  onClick: D,
27073
27073
  style: {
@@ -27080,7 +27080,7 @@ const Im = {
27080
27080
  width: U
27081
27081
  }), Y = Ae(h, `${h}-${s}`, {
27082
27082
  [`${h}-collapsed`]: !!I,
27083
- [`${h}-has-trigger`]: c && i !== null && !q,
27083
+ [`${h}-has-trigger`]: c && i !== null && !Z,
27084
27084
  [`${h}-below`]: !!x,
27085
27085
  [`${h}-zero-width`]: parseFloat(U) === 0
27086
27086
  }, r, T, R), ee = l.useMemo(() => ({
@@ -27095,7 +27095,7 @@ const Im = {
27095
27095
  ref: e
27096
27096
  }), /* @__PURE__ */ l.createElement("div", {
27097
27097
  className: `${h}-children`
27098
- }, o), c || x && q ? V : null)));
27098
+ }, o), c || x && Z ? V : null)));
27099
27099
  });
27100
27100
  process.env.NODE_ENV !== "production" && (PM.displayName = "Sider");
27101
27101
  var QM = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, jM = function(e, n) {
@@ -27225,7 +27225,7 @@ var Oo = {
27225
27225
  }, HM = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], GM = function(e, n) {
27226
27226
  var r = e.overlayClassName, i = e.trigger, o = i === void 0 ? ["hover"] : i, a = e.mouseEnterDelay, s = a === void 0 ? 0 : a, A = e.mouseLeaveDelay, c = A === void 0 ? 0.1 : A, u = e.overlayStyle, d = e.prefixCls, g = d === void 0 ? "rc-tooltip" : d, p = e.children, v = e.onVisibleChange, C = e.afterVisibleChange, m = e.transitionName, y = e.animation, w = e.motion, I = e.placement, O = I === void 0 ? "right" : I, x = e.align, f = x === void 0 ? {} : x, M = e.destroyTooltipOnHide, E = M === void 0 ? !1 : M, b = e.defaultVisible, h = e.getTooltipContainer, S = e.overlayInnerStyle;
27227
27227
  e.arrowContent;
27228
- var T = e.overlay, R = e.id, N = e.showArrow, D = N === void 0 ? !0 : N, F = e.classNames, k = e.styles, U = St(e, HM), q = fg(R), K = Te(null);
27228
+ var T = e.overlay, R = e.id, N = e.showArrow, D = N === void 0 ? !0 : N, F = e.classNames, k = e.styles, U = St(e, HM), Z = fg(R), K = Te(null);
27229
27229
  ta(n, function() {
27230
27230
  return K.current;
27231
27231
  });
@@ -27235,13 +27235,13 @@ var Oo = {
27235
27235
  return /* @__PURE__ */ l.createElement(Mg, {
27236
27236
  key: "content",
27237
27237
  prefixCls: g,
27238
- id: q,
27238
+ id: Z,
27239
27239
  bodyClassName: F == null ? void 0 : F.body,
27240
27240
  overlayInnerStyle: j(j({}, S), k == null ? void 0 : k.body)
27241
27241
  }, T);
27242
27242
  }, _ = function() {
27243
27243
  var W = l.Children.only(p), Y = (W == null ? void 0 : W.props) || {}, ee = j(j({}, Y), {}, {
27244
- "aria-describedby": T ? q : null
27244
+ "aria-describedby": T ? Z : null
27245
27245
  });
27246
27246
  return /* @__PURE__ */ l.cloneElement(p, ee);
27247
27247
  };
@@ -27346,7 +27346,7 @@ const WM = /* @__PURE__ */ l.forwardRef((t, e) => {
27346
27346
  getPopupContainer: F,
27347
27347
  getPrefixCls: k,
27348
27348
  direction: U,
27349
- className: q,
27349
+ className: Z,
27350
27350
  style: K,
27351
27351
  classNames: G,
27352
27352
  styles: L
@@ -27392,7 +27392,7 @@ const WM = /* @__PURE__ */ l.forwardRef((t, e) => {
27392
27392
  !("open" in t) && !("visible" in t) && J && (le = !1);
27393
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, {
27394
27394
  [`${me}-rtl`]: U === "rtl"
27395
- }, Ie.className, b, je, Ue, q, 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, {
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,
27397
27397
  showArrow: N,
27398
27398
  placement: x,
@@ -28573,7 +28573,7 @@ const oT = {
28573
28573
  other: {
28574
28574
  motionName: `${c}-zoom-big`
28575
28575
  }
28576
- }, N = o("menu", u || i.prefixCls), D = ni(N), [F, k, U] = rT(N, D, !r), q = Ae(`${N}-${p}`, A == null ? void 0 : A.className, d), K = l.useMemo(() => {
28576
+ }, N = o("menu", u || i.prefixCls), D = ni(N), [F, k, U] = rT(N, D, !r), Z = Ae(`${N}-${p}`, A == null ? void 0 : A.className, d), K = l.useMemo(() => {
28577
28577
  var L, _;
28578
28578
  if (typeof v == "function" || fl(v))
28579
28579
  return v || null;
@@ -28608,7 +28608,7 @@ const oT = {
28608
28608
  }, E, {
28609
28609
  inlineCollapsed: T,
28610
28610
  style: Object.assign(Object.assign({}, A == null ? void 0 : A.style), g),
28611
- className: q,
28611
+ className: Z,
28612
28612
  prefixCls: N,
28613
28613
  direction: s,
28614
28614
  defaultMotions: R,
@@ -28683,7 +28683,7 @@ const fs = (t) => {
28683
28683
  S.deprecated(!(de in t), de, le);
28684
28684
  });
28685
28685
  }
28686
- const N = E("dropdown", i), D = ni(N), [F, k, U] = d6(N, D), [, q] = Dr(), K = l.Children.only(OO(o) ? /* @__PURE__ */ l.createElement("span", null, o) : o), G = Gr(K, {
28686
+ const N = E("dropdown", i), D = ni(N), [F, k, U] = d6(N, D), [, Z] = Dr(), K = l.Children.only(OO(o) ? /* @__PURE__ */ l.createElement("span", null, o) : o), G = Gr(K, {
28687
28687
  className: Ae(`${N}-trigger`, {
28688
28688
  [`${N}-rtl`]: b === "rtl"
28689
28689
  }, K.props.className),
@@ -28699,9 +28699,9 @@ const fs = (t) => {
28699
28699
  }), J = BC({
28700
28700
  arrowPointAtCenter: typeof r == "object" && r.pointAtCenter,
28701
28701
  autoAdjustOverflow: I,
28702
- offset: q.marginXXS,
28703
- arrowWidth: r ? q.sizePopupArrow : 0,
28704
- borderRadius: q.borderRadius
28702
+ offset: Z.marginXXS,
28703
+ arrowWidth: r ? Z.sizePopupArrow : 0,
28704
+ borderRadius: Z.borderRadius
28705
28705
  }), se = l.useCallback(() => {
28706
28706
  n != null && n.selectable && (n != null && n.multiple) || (v == null || v(!1, {
28707
28707
  source: "menu"
@@ -28811,7 +28811,7 @@ const dT = /* @__PURE__ */ l.forwardRef((t, e) => {
28811
28811
  styles: x
28812
28812
  } = t, f = uT(t, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [M, E] = Array.isArray(u) ? u : [u, u], b = Nm(E), h = Nm(M), S = Dm(E), T = Dm(M), R = qr(v, {
28813
28813
  keepEmpty: !0
28814
- }), N = d === void 0 && C === "horizontal" ? "center" : d, D = r("space", m), [F, k, U] = P1(D), q = Ae(D, a, k, `${D}-${C}`, {
28814
+ }), N = d === void 0 && C === "horizontal" ? "center" : d, D = r("space", m), [F, k, U] = P1(D), Z = Ae(D, a, k, `${D}-${C}`, {
28815
28815
  [`${D}-rtl`]: i === "rtl",
28816
28816
  [`${D}-align-${N}`]: N,
28817
28817
  [`${D}-gap-row-${E}`]: b,
@@ -28837,7 +28837,7 @@ const dT = /* @__PURE__ */ l.forwardRef((t, e) => {
28837
28837
  const V = {};
28838
28838
  return I && (V.flexWrap = "wrap"), !h && T && (V.columnGap = M), !b && S && (V.rowGap = E), F(/* @__PURE__ */ l.createElement("div", Object.assign({
28839
28839
  ref: e,
28840
- className: q,
28840
+ className: Z,
28841
28841
  style: Object.assign(Object.assign(Object.assign({}, V), s), w)
28842
28842
  }, f), /* @__PURE__ */ l.createElement(cT, {
28843
28843
  value: _
@@ -28887,7 +28887,7 @@ const ry = (t) => {
28887
28887
  overlayStyle: N,
28888
28888
  destroyPopupOnHide: D,
28889
28889
  dropdownRender: F
28890
- } = t, k = gT(t, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]), U = n("dropdown", i), q = `${U}-button`, K = {
28890
+ } = t, k = gT(t, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]), U = n("dropdown", i), Z = `${U}-button`, K = {
28891
28891
  menu: p,
28892
28892
  arrow: v,
28893
28893
  autoFocus: C,
@@ -28905,7 +28905,7 @@ const ry = (t) => {
28905
28905
  }, {
28906
28906
  compactSize: G,
28907
28907
  compactItemClassnames: L
28908
- } = aa(U, r), _ = Ae(q, L, g);
28908
+ } = aa(U, r), _ = Ae(Z, L, g);
28909
28909
  "overlay" in t && (K.overlay = m), "open" in t && (K.open = I), "placement" in t ? K.placement = x : K.placement = r === "rtl" ? "bottomLeft" : "bottomRight";
28910
28910
  const V = /* @__PURE__ */ l.createElement($o, {
28911
28911
  type: o,
@@ -28955,7 +28955,7 @@ process.env.NODE_ENV !== "production" && (sy.displayName = "InfoCircleFilled");
28955
28955
  var Ay = /* @__PURE__ */ l.forwardRef(function(t, e) {
28956
28956
  var n = t.prefixCls, r = t.style, i = t.className, o = t.duration, a = o === void 0 ? 4.5 : o, s = t.showProgress, A = t.pauseOnHover, c = A === void 0 ? !0 : A, u = t.eventKey, d = t.content, g = t.closable, p = t.closeIcon, v = p === void 0 ? "x" : p, C = t.props, m = t.onClick, y = t.onNoticeClose, w = t.times, I = t.hovering, O = l.useState(!1), x = $(O, 2), f = x[0], M = x[1], E = l.useState(0), b = $(E, 2), h = b[0], S = b[1], T = l.useState(0), R = $(T, 2), N = R[0], D = R[1], F = I || f, k = a > 0 && s, U = function() {
28957
28957
  y(u);
28958
- }, q = function(W) {
28958
+ }, Z = function(W) {
28959
28959
  (W.key === "Enter" || W.code === "Enter" || W.keyCode === st.ENTER) && U();
28960
28960
  };
28961
28961
  l.useEffect(function() {
@@ -29003,7 +29003,7 @@ var Ay = /* @__PURE__ */ l.forwardRef(function(t, e) {
29003
29003
  }, d), g && /* @__PURE__ */ l.createElement("a", Le({
29004
29004
  tabIndex: 0,
29005
29005
  className: "".concat(_, "-close"),
29006
- onKeyDown: q,
29006
+ onKeyDown: Z,
29007
29007
  "aria-label": "Close"
29008
29008
  }, G, {
29009
29009
  onClick: function(W) {
@@ -29043,8 +29043,8 @@ var Ay = /* @__PURE__ */ l.forwardRef(function(t, e) {
29043
29043
  b && O.length > 1 && x(function(F) {
29044
29044
  return F.filter(function(k) {
29045
29045
  return f.some(function(U) {
29046
- var q = U.key;
29047
- return k === q;
29046
+ var Z = U.key;
29047
+ return k === Z;
29048
29048
  });
29049
29049
  });
29050
29050
  });
@@ -29065,7 +29065,7 @@ var Ay = /* @__PURE__ */ l.forwardRef(function(t, e) {
29065
29065
  A(r);
29066
29066
  }
29067
29067
  }), function(F, k) {
29068
- var U = F.config, q = F.className, K = F.style, G = F.index, L = U, _ = L.key, V = L.times, W = String(_), Y = U, ee = Y.className, J = Y.style, se = Y.classNames, ce = Y.styles, ue = St(Y, ST), te = f.findIndex(function(pe) {
29068
+ var U = F.config, Z = F.className, K = F.style, G = F.index, L = U, _ = L.key, V = L.times, W = String(_), Y = U, ee = Y.className, J = Y.style, se = Y.classNames, ce = Y.styles, ue = St(Y, ST), te = f.findIndex(function(pe) {
29069
29069
  return pe.key === W;
29070
29070
  }), me = {};
29071
29071
  if (b) {
@@ -29084,7 +29084,7 @@ var Ay = /* @__PURE__ */ l.forwardRef(function(t, e) {
29084
29084
  }
29085
29085
  return /* @__PURE__ */ ne.createElement("div", {
29086
29086
  ref: k,
29087
- className: Ae("".concat(i, "-notice-wrapper"), q, se == null ? void 0 : se.wrapper),
29087
+ className: Ae("".concat(i, "-notice-wrapper"), Z, se == null ? void 0 : se.wrapper),
29088
29088
  style: j(j(j({}, K), me), ce == null ? void 0 : ce.wrapper),
29089
29089
  onMouseEnter: function() {
29090
29090
  return x(function(Oe) {
@@ -29750,7 +29750,7 @@ const $T = /* @__PURE__ */ l.forwardRef((t, e) => {
29750
29750
  G.keyCode === st.ESC && F(!1, G);
29751
29751
  }, U = (G) => {
29752
29752
  F(G);
29753
- }, q = BA(o), K = BA(a);
29753
+ }, Z = BA(o), K = BA(a);
29754
29754
  return E(/* @__PURE__ */ l.createElement(gs, Object.assign({
29755
29755
  placement: A,
29756
29756
  trigger: c,
@@ -29769,9 +29769,9 @@ const $T = /* @__PURE__ */ l.forwardRef((t, e) => {
29769
29769
  ref: e,
29770
29770
  open: N,
29771
29771
  onOpenChange: U,
29772
- overlay: q || K ? /* @__PURE__ */ l.createElement(fy, {
29772
+ overlay: Z || K ? /* @__PURE__ */ l.createElement(fy, {
29773
29773
  prefixCls: M,
29774
- title: q,
29774
+ title: Z,
29775
29775
  content: K
29776
29776
  }) : null,
29777
29777
  transitionName: mg(S, "zoom-big", y.transitionName),
@@ -29982,7 +29982,7 @@ var Um = function(e) {
29982
29982
  }, f8 = function(e) {
29983
29983
  var n = e.id, r = e.prefixCls, i = e.values, o = e.open, a = e.searchValue, s = e.autoClearSearchValue, A = e.inputRef, c = e.placeholder, u = e.disabled, d = e.mode, g = e.showSearch, p = e.autoFocus, v = e.autoComplete, C = e.activeDescendantId, m = e.tabIndex, y = e.removeIcon, w = e.maxTagCount, I = e.maxTagTextLength, O = e.maxTagPlaceholder, x = O === void 0 ? function(z) {
29984
29984
  return "+ ".concat(z.length, " ...");
29985
- } : O, f = e.tagRender, M = e.onToggleOpen, E = e.onRemove, b = e.onInputChange, h = e.onInputPaste, S = e.onInputKeyDown, T = e.onInputMouseDown, R = e.onInputCompositionStart, N = e.onInputCompositionEnd, D = e.onInputBlur, F = l.useRef(null), k = Et(0), U = $(k, 2), q = U[0], K = U[1], G = Et(!1), L = $(G, 2), _ = L[0], V = L[1], W = "".concat(r, "-selection"), Y = o || d === "multiple" && s === !1 || d === "tags" ? a : "", ee = d === "tags" || d === "multiple" && s === !1 || g && (o || _);
29985
+ } : O, f = e.tagRender, M = e.onToggleOpen, E = e.onRemove, b = e.onInputChange, h = e.onInputPaste, S = e.onInputKeyDown, T = e.onInputMouseDown, R = e.onInputCompositionStart, N = e.onInputCompositionEnd, D = e.onInputBlur, F = l.useRef(null), k = Et(0), U = $(k, 2), Z = U[0], K = U[1], G = Et(!1), L = $(G, 2), _ = L[0], V = L[1], W = "".concat(r, "-selection"), Y = o || d === "multiple" && s === !1 || d === "tags" ? a : "", ee = d === "tags" || d === "multiple" && s === !1 || g && (o || _);
29986
29986
  d8(function() {
29987
29987
  K(F.current.scrollWidth);
29988
29988
  }, [Y]);
@@ -30032,7 +30032,7 @@ var Um = function(e) {
30032
30032
  }, te = /* @__PURE__ */ l.createElement("div", {
30033
30033
  className: "".concat(W, "-search"),
30034
30034
  style: {
30035
- width: q
30035
+ width: Z
30036
30036
  },
30037
30037
  onFocus: function() {
30038
30038
  V(!0);
@@ -30084,14 +30084,14 @@ var Um = function(e) {
30084
30084
  D && y && !R && (U = y), l.useEffect(function() {
30085
30085
  D && N(!1);
30086
30086
  }, [D, y]);
30087
- var q = u !== "combobox" && !d && !C ? !1 : !!U, K = h === void 0 ? my(k) : h, G = l.useMemo(function() {
30087
+ var Z = u !== "combobox" && !d && !C ? !1 : !!U, K = h === void 0 ? my(k) : h, G = l.useMemo(function() {
30088
30088
  return k ? null : /* @__PURE__ */ l.createElement("span", {
30089
30089
  className: "".concat(r, "-selection-placeholder"),
30090
- style: q ? {
30090
+ style: Z ? {
30091
30091
  visibility: "hidden"
30092
30092
  } : void 0
30093
30093
  }, p);
30094
- }, [k, q, p, r]);
30094
+ }, [k, Z, p, r]);
30095
30095
  return /* @__PURE__ */ l.createElement("span", {
30096
30096
  className: "".concat(r, "-selection-wrap")
30097
30097
  }, /* @__PURE__ */ l.createElement("span", {
@@ -30123,7 +30123,7 @@ var Um = function(e) {
30123
30123
  })), !D && k ? /* @__PURE__ */ l.createElement("span", {
30124
30124
  className: "".concat(r, "-selection-item"),
30125
30125
  title: K,
30126
- style: q ? {
30126
+ style: Z ? {
30127
30127
  visibility: "hidden"
30128
30128
  } : void 0
30129
30129
  }, k.label) : null, G);
@@ -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, q = 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), ve = FA(m), Be = (a !== void 0 ? a : ve) || m === "combobox", je = j({}, xe);
30364
30364
  w8.forEach(function(xt) {
30365
30365
  delete je[xt];
30366
30366
  }), c == null || c.forEach(function(xt) {
@@ -30538,7 +30538,7 @@ var S8 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
30538
30538
  type: "clear",
30539
30539
  values: u
30540
30540
  }), B("", !1, !1);
30541
- }, Fr = e8(i, ri, u, F, q, y, ct, m), zn = Fr.allowClear, or = Fr.clearIcon, vr = /* @__PURE__ */ l.createElement(K, {
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
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, {
30544
30544
  ref: it,
@@ -30930,8 +30930,8 @@ function k8(t, e, n, r, i, o, a, s) {
30930
30930
  return nn(function() {
30931
30931
  if (d && d.times < Vm) {
30932
30932
  if (!t.current) {
30933
- g(function(q) {
30934
- return j({}, q);
30933
+ g(function(Z) {
30934
+ return j({}, Z);
30935
30935
  });
30936
30936
  return;
30937
30937
  }
@@ -30996,7 +30996,7 @@ function k8(t, e, n, r, i, o, a, s) {
30996
30996
  };
30997
30997
  }
30998
30998
  var Td = /* @__PURE__ */ l.forwardRef(function(t, e) {
30999
- var n = t.prefixCls, r = t.rtl, i = t.scrollOffset, o = t.scrollRange, a = t.onStartMove, s = t.onStopMove, A = t.onScroll, c = t.horizontal, u = t.spinSize, d = t.containerSize, g = t.style, p = t.thumbStyle, v = t.showScrollBar, C = l.useState(!1), m = $(C, 2), y = m[0], w = m[1], I = l.useState(null), O = $(I, 2), x = O[0], f = O[1], M = l.useState(null), E = $(M, 2), b = E[0], h = E[1], S = !r, T = l.useRef(), R = l.useRef(), N = l.useState(v), D = $(N, 2), F = D[0], k = D[1], U = l.useRef(), q = function() {
30999
+ var n = t.prefixCls, r = t.rtl, i = t.scrollOffset, o = t.scrollRange, a = t.onStartMove, s = t.onStopMove, A = t.onScroll, c = t.horizontal, u = t.spinSize, d = t.containerSize, g = t.style, p = t.thumbStyle, v = t.showScrollBar, C = l.useState(!1), m = $(C, 2), y = m[0], w = m[1], I = l.useState(null), O = $(I, 2), x = O[0], f = O[1], M = l.useState(null), E = $(M, 2), b = E[0], h = E[1], S = !r, T = l.useRef(), R = l.useRef(), N = l.useState(v), D = $(N, 2), F = D[0], k = D[1], U = l.useRef(), Z = function() {
31000
31000
  v === !0 || v === !1 || (clearTimeout(U.current), k(!0), U.current = setTimeout(function() {
31001
31001
  k(!1);
31002
31002
  }, 3e3));
@@ -31067,12 +31067,12 @@ var Td = /* @__PURE__ */ l.forwardRef(function(t, e) {
31067
31067
  };
31068
31068
  }
31069
31069
  }, [y]), l.useEffect(function() {
31070
- return q(), function() {
31070
+ return Z(), function() {
31071
31071
  clearTimeout(U.current);
31072
31072
  };
31073
31073
  }, [i]), l.useImperativeHandle(e, function() {
31074
31074
  return {
31075
- delayHidden: q
31075
+ delayHidden: Z
31076
31076
  };
31077
31077
  });
31078
31078
  var J = "".concat(n, "-scrollbar"), se = {
@@ -31106,7 +31106,7 @@ var Td = /* @__PURE__ */ l.forwardRef(function(t, e) {
31106
31106
  className: Ae(J, P(P(P({}, "".concat(J, "-horizontal"), c), "".concat(J, "-vertical"), !c), "".concat(J, "-visible"), F)),
31107
31107
  style: j(j({}, se), g),
31108
31108
  onMouseDown: _,
31109
- onMouseMove: q
31109
+ onMouseMove: Z
31110
31110
  }, /* @__PURE__ */ l.createElement("div", {
31111
31111
  ref: R,
31112
31112
  className: Ae("".concat(J, "-thumb"), P({}, "".concat(J, "-thumb-moving"), y)),
@@ -31127,11 +31127,11 @@ var Q8 = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style
31127
31127
  function U8(t, e) {
31128
31128
  var n = t.prefixCls, r = n === void 0 ? "rc-virtual-list" : n, i = t.className, o = t.height, a = t.itemHeight, s = t.fullHeight, A = s === void 0 ? !0 : s, c = t.style, u = t.data, d = t.children, g = t.itemKey, p = t.virtual, v = t.direction, C = t.scrollWidth, m = t.component, y = m === void 0 ? "div" : m, w = t.onScroll, I = t.onVirtualScroll, O = t.onVisibleChange, x = t.innerProps, f = t.extraRender, M = t.styles, E = t.showScrollBar, b = E === void 0 ? "optional" : E, h = St(t, Q8), S = l.useCallback(function(Ee) {
31129
31129
  return typeof g == "function" ? g(Ee) : Ee == null ? void 0 : Ee[g];
31130
- }, [g]), T = D8(S), R = $(T, 4), N = R[0], D = R[1], F = R[2], k = R[3], U = !!(p !== !1 && o && a), q = l.useMemo(function() {
31130
+ }, [g]), T = D8(S), R = $(T, 4), N = R[0], D = R[1], F = R[2], k = R[3], U = !!(p !== !1 && o && a), Z = l.useMemo(function() {
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, q) > 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], ve = function() {
31135
31135
  xe(!0);
31136
31136
  }, Be = function() {
31137
31137
  xe(!1);
@@ -31405,9 +31405,9 @@ var q8 = function(e, n) {
31405
31405
  return le;
31406
31406
  }
31407
31407
  return -1;
31408
- }, q = l.useState(function() {
31408
+ }, Z = l.useState(function() {
31409
31409
  return U(0);
31410
- }), K = $(q, 2), G = K[0], L = K[1], _ = function(te) {
31410
+ }), K = $(Z, 2), G = K[0], L = K[1], _ = function(te) {
31411
31411
  var me = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
31412
31412
  L(te);
31413
31413
  var z = {
@@ -31746,7 +31746,7 @@ function rN(t) {
31746
31746
  return !t || rt(t) !== "object";
31747
31747
  }
31748
31748
  var xy = /* @__PURE__ */ l.forwardRef(function(t, e) {
31749
- var n = t.id, r = t.mode, i = t.prefixCls, o = i === void 0 ? "rc-select" : i, a = t.backfill, s = t.fieldNames, A = t.inputValue, c = t.searchValue, u = t.onSearch, d = t.autoClearSearchValue, g = d === void 0 ? !0 : d, p = t.onSelect, v = t.onDeselect, C = t.dropdownMatchSelectWidth, m = C === void 0 ? !0 : C, y = t.filterOption, w = t.filterSort, I = t.optionFilterProp, O = t.optionLabelProp, x = t.options, f = t.optionRender, M = t.children, E = t.defaultActiveFirstOption, b = t.menuItemSelectedIcon, h = t.virtual, S = t.direction, T = t.listHeight, R = T === void 0 ? 200 : T, N = t.listItemHeight, D = N === void 0 ? 20 : N, F = t.labelRender, k = t.value, U = t.defaultValue, q = t.labelInValue, K = t.onChange, G = t.maxCount, L = St(t, tN), _ = Y8(n), V = FA(r), W = !!(!x && M), Y = l.useMemo(function() {
31749
+ var n = t.id, r = t.mode, i = t.prefixCls, o = i === void 0 ? "rc-select" : i, a = t.backfill, s = t.fieldNames, A = t.inputValue, c = t.searchValue, u = t.onSearch, d = t.autoClearSearchValue, g = d === void 0 ? !0 : d, p = t.onSelect, v = t.onDeselect, C = t.dropdownMatchSelectWidth, m = C === void 0 ? !0 : C, y = t.filterOption, w = t.filterSort, I = t.optionFilterProp, O = t.optionLabelProp, x = t.options, f = t.optionRender, M = t.children, E = t.defaultActiveFirstOption, b = t.menuItemSelectedIcon, h = t.virtual, S = t.direction, T = t.listHeight, R = T === void 0 ? 200 : T, N = t.listItemHeight, D = N === void 0 ? 20 : N, F = t.labelRender, k = t.value, U = t.defaultValue, Z = t.labelInValue, K = t.onChange, G = t.maxCount, L = St(t, tN), _ = Y8(n), V = FA(r), W = !!(!x && M), Y = l.useMemo(function() {
31750
31750
  return y === void 0 && r === "combobox" ? !1 : y;
31751
31751
  }, [y, r]), ee = l.useMemo(
31752
31752
  function() {
@@ -31864,7 +31864,7 @@ var xy = /* @__PURE__ */ l.forwardRef(function(t, e) {
31864
31864
  var Q;
31865
31865
  return ((Q = pe[fe]) === null || Q === void 0 ? void 0 : Q.value) !== (B == null ? void 0 : B.value);
31866
31866
  }))) {
31867
- var Ye = q ? Ve : Ve.map(function(B) {
31867
+ var Ye = Z ? Ve : Ve.map(function(B) {
31868
31868
  return B.value;
31869
31869
  }), He = Ve.map(function(B) {
31870
31870
  return Od(Oe(B.value));
@@ -31882,7 +31882,7 @@ var xy = /* @__PURE__ */ l.forwardRef(function(t, e) {
31882
31882
  }, [a, r]), mt = function(we, Ve, Ye) {
31883
31883
  var He = function() {
31884
31884
  var ft, It = Oe(we);
31885
- return [q ? {
31885
+ return [Z ? {
31886
31886
  label: It == null ? void 0 : It[ee.label],
31887
31887
  value: we,
31888
31888
  key: (ft = It == null ? void 0 : It.key) !== null && ft !== void 0 ? ft : we
@@ -32294,7 +32294,7 @@ const By = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Fy = (t, e) => {
32294
32294
  renderEmpty: F,
32295
32295
  direction: k,
32296
32296
  virtual: U,
32297
- popupMatchSelectWidth: q,
32297
+ popupMatchSelectWidth: Z,
32298
32298
  popupOverflow: K
32299
32299
  } = l.useContext(Ut), G = mi("select"), [, L] = Dr(), _ = g ?? (L == null ? void 0 : L.controlHeight), V = D("select", r), W = D(), Y = O ?? k, {
32300
32300
  compactSize: ee,
@@ -32305,7 +32305,7 @@ const By = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Fy = (t, e) => {
32305
32305
  } = t;
32306
32306
  if (Ct !== "combobox")
32307
32307
  return Ct === By ? "combobox" : Ct;
32308
- }, [t.mode]), le = de === "multiple" || de === "tags", Se = gN(t.suffixIcon, t.showArrow), xe = (n = I ?? w) !== null && n !== void 0 ? n : q, {
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
32309
  status: ve,
32310
32310
  hasFeedback: Be,
32311
32311
  isFormItemInput: je,
@@ -32553,8 +32553,8 @@ const Ug = (t) => {
32553
32553
  h(!0);
32554
32554
  });
32555
32555
  return U(), () => {
32556
- var q;
32557
- (q = U == null ? void 0 : U.cancel) === null || q === void 0 || q.call(U);
32556
+ var Z;
32557
+ (Z = U == null ? void 0 : U.cancel) === null || Z === void 0 || Z.call(U);
32558
32558
  };
32559
32559
  }
32560
32560
  h(!1);
@@ -32887,7 +32887,7 @@ const HN = {
32887
32887
  空闲: 1,
32888
32888
  离线: 0,
32889
32889
  未注册: 4
32890
- }, ZN = nv(() => import("./ConsultModel-CezJCRet.mjs")), KN = nv(() => import("./TransferModel-BMxrJAIi.mjs")), ml = An.div`
32890
+ }, ZN = nv(() => import("./ConsultModel-Drj_G5X0.mjs")), KN = nv(() => import("./TransferModel-DnkmhYXF.mjs")), ml = An.div`
32891
32891
  width: 25px;
32892
32892
  height: 25px;
32893
32893
  background: ${({
@@ -32919,7 +32919,7 @@ 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(), [q, 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), [ve, Be] = Et(), [je, Ue] = Et((/* @__PURE__ */ new Date()).getTime()), [Ie, pe] = Et(!0), [Oe, Ke] = Et(""), tt = (Q) => {
32923
32923
  switch (Q) {
32924
32924
  case Mt.IDLE:
32925
32925
  return m || "#1D92E9";
@@ -33003,7 +33003,7 @@ const HN = {
33003
33003
  event: X,
33004
33004
  data: Ce
33005
33005
  }) => {
33006
- switch (console.log(X), X) {
33006
+ switch (X) {
33007
33007
  // 播放等待音
33008
33008
  // 外呼成功\被咨询者振铃
33009
33009
  case ie.OUT_SUCCESS:
@@ -33676,7 +33676,7 @@ const HN = {
33676
33676
  }
33677
33677
  }
33678
33678
  },
33679
- children: [q ? /* @__PURE__ */ ae.jsx(Ug, {
33679
+ children: [Z ? /* @__PURE__ */ ae.jsx(Ug, {
33680
33680
  spinning: R,
33681
33681
  children: /* @__PURE__ */ ae.jsxs(gI, {
33682
33682
  height: v,
@@ -33707,7 +33707,7 @@ const HN = {
33707
33707
  }
33708
33708
  })
33709
33709
  }), /* @__PURE__ */ ae.jsxs(hI, {
33710
- background: tt(qN[q] ?? 2),
33710
+ background: tt(qN[Z] ?? 2),
33711
33711
  children: [/* @__PURE__ */ ae.jsxs("div", {
33712
33712
  className: "ysyt-strip",
33713
33713
  children: [/* @__PURE__ */ ae.jsx("div", {
@@ -33751,12 +33751,12 @@ const HN = {
33751
33751
  display: "flex",
33752
33752
  alignItems: "center"
33753
33753
  },
33754
- children: [q === "空闲" ? /* @__PURE__ */ ae.jsx(yt, {
33754
+ children: [Z === "空闲" ? /* @__PURE__ */ ae.jsx(yt, {
33755
33755
  name: "kongxian",
33756
33756
  color: "#fff",
33757
33757
  size: 20
33758
33758
  }) : /* @__PURE__ */ ae.jsx(ae.Fragment, {
33759
- children: q === "未注册" ? /* @__PURE__ */ ae.jsx(yt, {
33759
+ children: Z === "未注册" ? /* @__PURE__ */ ae.jsx(yt, {
33760
33760
  name: "unregistered",
33761
33761
  size: 20
33762
33762
  }) : /* @__PURE__ */ ae.jsx(yt, {
@@ -33767,7 +33767,7 @@ const HN = {
33767
33767
  style: {
33768
33768
  margin: "0 10px"
33769
33769
  },
33770
- children: q
33770
+ children: Z
33771
33771
  }), /* @__PURE__ */ ae.jsx(yt, {
33772
33772
  name: "xia",
33773
33773
  color: "#fff"