ysyt-react-agent-lib 1.1.32 → 1.1.33

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.
@@ -782,14 +782,14 @@ var K1 = function(A, t, n) {
782
782
  }, h = Ns(o, a, u, d, l);
783
783
  return [V, u, h];
784
784
  };
785
- function FA() {
786
- return FA = Object.assign ? Object.assign.bind() : function(e) {
785
+ function OA() {
786
+ return OA = Object.assign ? Object.assign.bind() : function(e) {
787
787
  for (var A = 1; A < arguments.length; A++) {
788
788
  var t = arguments[A];
789
789
  for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
790
790
  }
791
791
  return e;
792
- }, FA.apply(null, arguments);
792
+ }, OA.apply(null, arguments);
793
793
  }
794
794
  var j1 = {
795
795
  animationIterationCount: 1,
@@ -1327,7 +1327,7 @@ function yu(e, A) {
1327
1327
  ), E = $(v, 3), p = E[0], I = E[1], R = E[2];
1328
1328
  return function(S) {
1329
1329
  var D;
1330
- return !f || Q || !h ? D = /* @__PURE__ */ c.createElement(hI, null) : D = /* @__PURE__ */ c.createElement("style", FA({}, O(O({}, co, I), jn, R), {
1330
+ return !f || Q || !h ? D = /* @__PURE__ */ c.createElement(hI, null) : D = /* @__PURE__ */ c.createElement("style", OA({}, O(O({}, co, I), jn, R), {
1331
1331
  dangerouslySetInnerHTML: {
1332
1332
  __html: p
1333
1333
  }
@@ -3928,16 +3928,16 @@ function Hy(e, A, t, n) {
3928
3928
  T(Gr), L(null, !0);
3929
3929
  }
3930
3930
  var AA = at(function(TA) {
3931
- var OA = x();
3932
- if (OA !== Gr) {
3931
+ var UA = x();
3932
+ if (UA !== Gr) {
3933
3933
  var EA = H();
3934
3934
  if (!(TA && !TA.deadline && TA.target !== EA)) {
3935
3935
  var gA = W.current, SA;
3936
- OA === es && gA ? SA = M == null ? void 0 : M(EA, TA) : OA === ts && gA ? SA = g == null ? void 0 : g(EA, TA) : OA === ns && gA && (SA = Q == null ? void 0 : Q(EA, TA)), gA && SA !== !1 && P();
3936
+ UA === es && gA ? SA = M == null ? void 0 : M(EA, TA) : UA === ts && gA ? SA = g == null ? void 0 : g(EA, TA) : UA === ns && gA && (SA = Q == null ? void 0 : Q(EA, TA)), gA && SA !== !1 && P();
3937
3937
  }
3938
3938
  }
3939
- }), z = Yy(AA), iA = $(z, 1), aA = iA[0], lA = function(OA) {
3940
- switch (OA) {
3939
+ }), z = Yy(AA), iA = $(z, 1), aA = iA[0], lA = function(UA) {
3940
+ switch (UA) {
3941
3941
  case es:
3942
3942
  return O(O(O({}, Zn, d), Li, C), Hi, y);
3943
3943
  case ts:
@@ -3951,8 +3951,8 @@ function Hy(e, A, t, n) {
3951
3951
  return lA(N);
3952
3952
  }, [N]), hA = Ly(N, !e, function(TA) {
3953
3953
  if (TA === Zn) {
3954
- var OA = tA[Zn];
3955
- return OA ? OA(H()) : p0;
3954
+ var UA = tA[Zn];
3955
+ return UA ? UA(H()) : p0;
3956
3956
  }
3957
3957
  if (sA in tA) {
3958
3958
  var EA;
@@ -3971,10 +3971,10 @@ function Hy(e, A, t, n) {
3971
3971
  R(A);
3972
3972
  var TA = G.current;
3973
3973
  G.current = !0;
3974
- var OA;
3975
- !TA && A && a && (OA = es), TA && A && i && (OA = ts), (TA && !A && l || !TA && V && !A && l) && (OA = ns);
3976
- var EA = lA(OA);
3977
- OA && (e || EA[Zn]) ? (T(OA), cA()) : T(Gr), IA.current = A;
3974
+ var UA;
3975
+ !TA && A && a && (UA = es), TA && A && i && (UA = ts), (TA && !A && l || !TA && V && !A && l) && (UA = ns);
3976
+ var EA = lA(UA);
3977
+ UA && (e || EA[Zn]) ? (T(UA), cA()) : T(Gr), IA.current = A;
3978
3978
  }
3979
3979
  }, [A]), Je(function() {
3980
3980
  // Cancel appear
@@ -4144,7 +4144,7 @@ function $y(e) {
4144
4144
  C[f] = h[f], delete h[f];
4145
4145
  }), delete h.keys, /* @__PURE__ */ c.createElement(m, h, s.map(function(f, q) {
4146
4146
  var y = f.status, w = Ie(f, Xy), B = y === Nu || y === Zu;
4147
- return /* @__PURE__ */ c.createElement(A, FA({}, C, {
4147
+ return /* @__PURE__ */ c.createElement(A, OA({}, C, {
4148
4148
  key: w.key,
4149
4149
  visible: B,
4150
4150
  eventProps: w,
@@ -4296,7 +4296,7 @@ const sw = (e) => {
4296
4296
  message: fA,
4297
4297
  tag: bA,
4298
4298
  table: TA,
4299
- card: OA,
4299
+ card: UA,
4300
4300
  tabs: EA,
4301
4301
  timeline: gA,
4302
4302
  timePicker: SA,
@@ -4384,7 +4384,7 @@ const sw = (e) => {
4384
4384
  message: fA,
4385
4385
  tag: bA,
4386
4386
  table: TA,
4387
- card: OA,
4387
+ card: UA,
4388
4388
  tabs: EA,
4389
4389
  timeline: gA,
4390
4390
  timePicker: SA,
@@ -4833,7 +4833,7 @@ function uw() {
4833
4833
  }
4834
4834
  }
4835
4835
  var TA = Array.isArray;
4836
- function OA(b) {
4836
+ function UA(b) {
4837
4837
  return TA(b);
4838
4838
  }
4839
4839
  function EA(b) {
@@ -5008,7 +5008,7 @@ Check the top-level render call using <` + j + ">.");
5008
5008
  {
5009
5009
  if (typeof b != "object")
5010
5010
  return;
5011
- if (OA(b))
5011
+ if (UA(b))
5012
5012
  for (var j = 0; j < b.length; j++) {
5013
5013
  var pA = b[j];
5014
5014
  it(pA) && HA(pA, K);
@@ -5070,7 +5070,7 @@ Check the top-level render call using <` + j + ">.");
5070
5070
  var ke = Pe();
5071
5071
  ke ? oe += ke : oe += tt();
5072
5072
  var he;
5073
- b === null ? he = "null" : OA(b) ? he = "array" : b !== void 0 && b.$$typeof === A ? (he = "<" + (S(b.type) || "Unknown") + " />", oe = " Did you accidentally export a JSX literal instead of a component?") : he = typeof b, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, oe);
5073
+ b === null ? he = "null" : UA(b) ? he = "array" : b !== void 0 && b.$$typeof === A ? (he = "<" + (S(b.type) || "Unknown") + " />", oe = " Did you accidentally export a JSX literal instead of a component?") : he = typeof b, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, oe);
5074
5074
  }
5075
5075
  var Me = ce(b, K, j, ZA, re);
5076
5076
  if (Me == null)
@@ -5079,7 +5079,7 @@ Check the top-level render call using <` + j + ">.");
5079
5079
  var qA = K.children;
5080
5080
  if (qA !== void 0)
5081
5081
  if (pA)
5082
- if (OA(qA)) {
5082
+ if (UA(qA)) {
5083
5083
  for (var QA = 0; QA < qA.length; QA++)
5084
5084
  $A(qA[QA], b);
5085
5085
  Object.freeze && Object.freeze(qA);
@@ -10021,7 +10021,7 @@ class U0 {
10021
10021
  n && n.forEach((r) => r(t));
10022
10022
  }
10023
10023
  }
10024
- var Ee, Rt, ae, Qn, eA, UA, At;
10024
+ var Ee, Rt, ae, Qn, eA, FA, At;
10025
10025
  (function(e) {
10026
10026
  e[e.IDLE = 1] = "IDLE", e[e.BUSY = 2] = "BUSY", e[e.RINGING = 3] = "RINGING", e[e.OFFLINE = 0] = "OFFLINE", e[e.UNREGISTERED = 4] = "UNREGISTERED";
10027
10027
  })(Ee || (Ee = {})), function(e) {
@@ -10034,7 +10034,7 @@ var Ee, Rt, ae, Qn, eA, UA, At;
10034
10034
  e.CUSTOMER_INFO = "customer_info", e.CALL_PROGRESS = "call_progress", e.OUT_INCOMING_CALL = "out_call_incoming_call", e.PREVIEW_OUT_INCOMING_CALL = "preview_out_incoming_call", e.OUT_SUCCESS = "out_call_success", e.OUT_FAILED = "out_call_failed", e.OUT_RINGING = "out_call_ringing", e.OUT_OFF_ANSWER = "out_call_answer", e.HOLD_SUCCESS = "hold_success", e.HOLD_FAILED = "hold_failed", e.UNHOLD_SUCCESS = "unhold_success", e.UNHOLD_FAILED = "unhold_failed", e.OUT_HANGUP = "out_call_hangup", e.CONSULT_RINGING = "consult_ringing", e.CONSULT_OFF_HOOK = "consult_off_hook", e.CONSULT_FAILED = "consult_failed", e.CONSULT_INCOMING = "consult_incoming", e.CONSULT_CALL_IN_SUCCESS = "consult_call_in_success", e.CONSULT_RETURN_CALL_SUCCESS = "consult_return_call_success", e.OTHER_SIDE_CONSULT_HANGUP = "other_side_consult_hangup", e.OUR_SIDE_CONSULT_HANGUP = "our_side_consult_hangup", e.AGENT_STATE = "agent_state", e.MUTE_SUCCESS = "mute_success", e.MUTE_FAILED = "mute_failed", e.UNMUTE_SUCCESS = "unmute_success", e.UNMUTE_FAILED = "unmute_failed", e.CONSULT_TRANSFER_SUCCESS = "consult_transfer_success", e.CONSULT_TRANSFER_FAILED = "consult_transfer_failed", e.CONSULT_TRANSFER_OFF_HOOK = "consult_transfer_off_hook", e.INCOMING_CALL = "incoming_call", e.PREDICT_INCOMING_CALL = "predict_incoming_call", e.INCOMING_CALL_OFF_HOOK = "incoming_call_off_hook", e.INCOMING_CALL_END = "incoming_call_end", e.SATISFACTION_EVALUATION_SUCCESS = "satisfaction_evaluation_success", e.SATISFACTION_EVALUATION_FAILED = "satisfaction_evaluation_failed", e.CONSULT_THREE_WAY_SUCCESS = "consult_three_way_success", e.CONSULT_THREE_WAY_FAILED = "consult_three_way_failed", e.THREE_WAY_OUR_SIDE_HANGUP = "three_way_our_side_hangup", e.TRANSFER_FAILED = "transfer_failed", e.TRANSFER_PROGRESS = "transfer_progress", e.TRANSFER_INCOMING_CALL = "transfer_incoming_call", e.TRANSFER_OFF_HOOK = "transfer_off_hook", e.TRANSFER_END = "transfer_end", e.REJECT = "reject", e.LISTEN_CALL_FAILED = "listen_call_failed", e.LISTEN_INCOMING_CALL = "listen_incoming_call", e.LISTEN_INCOMING_CALL_OFF_HOOK = "listen_incoming_call_off_hook", e.LISTEN_HANGUP = "listen_hangup", e.EAR_SPEECH_SUCCESS = "ear_speech_success", e.EAR_SPEECH_BE_SUCCESS = "ear_speech_be_success", e.EAR_SPEECH_FAILED = "ear_speech_failed", e.STOP_EAR_SPEECH_SUCCESS = "stop_ear_speech_success", e.STOP_EAR_SPEECH_FAILED = "stop_ear_speech_failed", e.CALL_FORCE_INSERT_SUCCESS = "call_force_insert_success", e.CALL_FORCE_INSERT_SUCCESS_LISTENER = "call_force_insert_success_listener", e.CALL_FORCE_INSERT_FAILED = "call_force_insert_failed";
10035
10035
  }(eA || (eA = {})), function(e) {
10036
10036
  e.EVENT_ALL = "event_all", e.NOTIFICATION_CLICK = "notification_click", e.UPDATE_ANSWER_DEVICE = "update_answer_device", e.PHONE_BAR_OPERATION = "phone_bar_operation", e.AGENT_INIT_STATUS = "agent_init_status", e.WEBSITE_DELAY = "website_delay", e.SELECT_EXTERNAL_NUMBER = "select_external_number", e.FAIL_NOTIFICATION = "fail_notification", e.KICK_OFF = "kick_off", e.DESTROY = "destroy", e.NETWORK_OFFLINE = "network_offline", e.NETWORK_ONLINE = "network_online", e.SIGN_OUT = "sign_out", e.SIGN_IN_SWITCH_DEVICE = "sign_in_switch_device";
10037
- }(UA || (UA = {})), function(e) {
10037
+ }(FA || (FA = {})), function(e) {
10038
10038
  e.RINGING = "客户振铃", e.AGENT_RINGING = "振铃中", e.CALLING = "通话中", e.CONSULTING = "正在咨询", e.CONSULT_CALL_IN = "咨询来电", e.INCOMING_CALL = "客户来电", e.MEETING = "会议中", e.TRANSFERRING = "转接中", e.TRANSFER_INCOMING_CALL = "转接来电", e.HOLDING = "保持中", e.MUTING = "静音中", e.LISTENING = "监听来电", e.LINKING = "正在链接";
10039
10039
  }(At || (At = {}));
10040
10040
  const jo = function(e) {
@@ -10055,7 +10055,7 @@ const jo = function(e) {
10055
10055
  }(), VA = { on: (e, A) => (jo.on(e, A), VA), off(e, A) {
10056
10056
  jo.off(e, A);
10057
10057
  }, emit(e, A) {
10058
- jo.emit(e, A), jo.emit(UA.EVENT_ALL, { event: e, data: A });
10058
+ jo.emit(e, A), jo.emit(FA.EVENT_ALL, { event: e, data: A });
10059
10059
  }, clearAllListeners() {
10060
10060
  jo.all.clear();
10061
10061
  } }, _ = { agentInfo: {}, isRtcReconnecting: !1, sessionId: "", enableBrowserAlert: !1, autoStateTimer: null, autoAnswerTimer: null, logBuiltinEnabled: !1, browserAlertTime: 3e3, latency: 0, monitoredAgentNo: "", earSpeakAgent: "" }, Mn = { 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 }, Y = new class extends U0 {
@@ -10086,7 +10086,7 @@ const jo = function(e) {
10086
10086
  }
10087
10087
  updateActionConfigs(e) {
10088
10088
  const { show_satisfaction: A } = _.agentInfo || {}, t = this.get("answerDevice"), n = e.filter((r) => (A !== 0 || r !== "satisfaction") && (t !== 2 || r !== "answer"));
10089
- this.setState({ actionConfigs: n }), VA.emit(UA.PHONE_BAR_OPERATION, n);
10089
+ this.setState({ actionConfigs: n }), VA.emit(FA.PHONE_BAR_OPERATION, n);
10090
10090
  }
10091
10091
  updateConsultIsAnswer(e) {
10092
10092
  this.setState({ consultIsAnswer: e });
@@ -10108,7 +10108,7 @@ const jo = function(e) {
10108
10108
  this.setState({ incomingIsAnswer: e });
10109
10109
  }
10110
10110
  updateAnswerDevice(e) {
10111
- this.setState({ answerDevice: e }), VA.emit(UA.UPDATE_ANSWER_DEVICE, e);
10111
+ this.setState({ answerDevice: e }), VA.emit(FA.UPDATE_ANSWER_DEVICE, e);
10112
10112
  }
10113
10113
  updateIsMeeting(e) {
10114
10114
  this.setState({ isMeeting: e });
@@ -10117,7 +10117,7 @@ const jo = function(e) {
10117
10117
  this.setState({ transferIsAnswer: e });
10118
10118
  }
10119
10119
  updateSelectOutNumber(e) {
10120
- VA.emit(UA.SELECT_EXTERNAL_NUMBER, e), this.setState({ selectOutNumber: e });
10120
+ VA.emit(FA.SELECT_EXTERNAL_NUMBER, e), this.setState({ selectOutNumber: e });
10121
10121
  }
10122
10122
  updateCustomerInfo(e) {
10123
10123
  const A = this.get("displayText");
@@ -10128,7 +10128,7 @@ const jo = function(e) {
10128
10128
  this.setState({ customerObject: e });
10129
10129
  }
10130
10130
  updateIsNextState(e) {
10131
- this.setState({ isNextState: e }), e ? VA.emit(UA.NETWORK_ONLINE) : (_.stateObject = { state: Ee.OFFLINE, state_name: "离线" }, this.updateActionConfigs([]), VA.emit(eA.AGENT_STATE, _.stateObject), VA.emit(UA.NETWORK_OFFLINE));
10131
+ this.setState({ isNextState: e }), e ? VA.emit(FA.NETWORK_ONLINE) : (_.stateObject = { state: Ee.OFFLINE, state_name: "离线" }, this.updateActionConfigs([]), VA.emit(eA.AGENT_STATE, _.stateObject), VA.emit(FA.NETWORK_OFFLINE));
10132
10132
  }
10133
10133
  updateIsSipConnected(e) {
10134
10134
  this.setState({ isSipConnected: e });
@@ -10144,7 +10144,7 @@ const jo = function(e) {
10144
10144
  }
10145
10145
  }(Mn), kd = new class extends U0 {
10146
10146
  updateRttObject(e) {
10147
- this.setState({ rttObject: e }), VA.emit(UA.WEBSITE_DELAY, e);
10147
+ this.setState({ rttObject: e }), VA.emit(FA.WEBSITE_DELAY, e);
10148
10148
  }
10149
10149
  }({ rttObject: { rtt: null, jitter: null, packetsLost: null, packetsReceived: null, packetsSent: null, sendBitrate: null, recvBitrate: null, codec: null } });
10150
10150
  let jw = class {
@@ -10153,7 +10153,7 @@ let jw = class {
10153
10153
  var r, i;
10154
10154
  (r = n.rttObject) != null && r.rtt && ((((i = n.rttObject) == null ? void 0 : i.rtt) || 0) === 0 ? this.isOffline || (this.isOffline = !0, this.handleOffline()) : this.isOffline && (this.isOffline = !1, this.handleOnline()));
10155
10155
  }, this.handleOffline = () => {
10156
- console.warn("[SIPClient] 网络断开,准备销毁 SIP 客户端", (/* @__PURE__ */ new Date()).toLocaleString()), this.destroy();
10156
+ console.warn("[SIPClient] 网络断开,准备销毁 SIP 客户端", (/* @__PURE__ */ new Date()).toLocaleString()), VA.emit(FA.FAIL_NOTIFICATION, "网络断开,准备销毁 SIP 客户端"), this.destroy();
10157
10157
  }, this.handleOnline = () => {
10158
10158
  console.warn("[SIPClient] 网络恢复,准备重新启动 SIP 客户端", (/* @__PURE__ */ new Date()).toLocaleString()), this.reconnect();
10159
10159
  }, kd.subscribe(this.handleNetworkInfoChange);
@@ -10180,7 +10180,7 @@ let jw = class {
10180
10180
  break;
10181
10181
  case ge.Disconnected: {
10182
10182
  if (Y.updateIsSipConnected(!1), this.isManuallyStopped) return void console.warn("[SIP] 手动断开,不触发重连");
10183
- VA.emit(UA.FAIL_NOTIFICATION, "软电话链接失败"), t = Qn.WEB_RTC_DISCONNECTED;
10183
+ VA.emit(FA.FAIL_NOTIFICATION, "软电话链接失败"), t = Qn.WEB_RTC_DISCONNECTED;
10184
10184
  const r = Y.get("answerDevice");
10185
10185
  if (!_.isRtcReconnecting && this.reconnectAttempts < this.maxReconnectAttempts && r === 1) {
10186
10186
  this.reconnectAttempts++;
@@ -10188,7 +10188,7 @@ let jw = class {
10188
10188
  console.warn(`SIP WebSocket 断开,第 ${this.reconnectAttempts} 次尝试重连,${i}ms 后重试...`), this.reconnectTimer = setTimeout(() => {
10189
10189
  this.reconnect();
10190
10190
  }, i);
10191
- } else this.reconnectAttempts >= this.maxReconnectAttempts && (console.error("SIP 重连失败:已达到最大重试次数"), VA.emit(UA.FAIL_NOTIFICATION, "SIP 重连失败:已达到最大重试次数"));
10191
+ } else this.reconnectAttempts >= this.maxReconnectAttempts && (console.error("SIP 重连失败:已达到最大重试次数"), VA.emit(FA.FAIL_NOTIFICATION, "SIP 重连失败:已达到最大重试次数"));
10192
10192
  break;
10193
10193
  }
10194
10194
  default:
@@ -10220,10 +10220,10 @@ let jw = class {
10220
10220
  Y.updateDisplayText(""), r = Qn.WEB_RTC_REGISTERED;
10221
10221
  break;
10222
10222
  case Ye.Unregistered:
10223
- r = Qn.WEB_RTC_UNREGISTERED;
10223
+ VA.emit(FA.FAIL_NOTIFICATION, "或注册超时失效"), r = Qn.WEB_RTC_UNREGISTERED;
10224
10224
  break;
10225
10225
  case Ye.Terminated:
10226
- VA.emit(UA.FAIL_NOTIFICATION, "注册流程已终止,无法再注册(如 UA 停止,或网络不可达)"), r = Qn.WEB_RTC_TERMINATED;
10226
+ r = Qn.WEB_RTC_TERMINATED;
10227
10227
  break;
10228
10228
  default:
10229
10229
  r = "unknown";
@@ -12116,7 +12116,7 @@ class Hd {
12116
12116
  const n = await (t = { agent_no: A }, Wt(`${Yn}/agent/login`, t));
12117
12117
  _.agentInfo = n.data;
12118
12118
  } catch (n) {
12119
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
12119
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
12120
12120
  }
12121
12121
  var t;
12122
12122
  }
@@ -12126,7 +12126,7 @@ class Hd {
12126
12126
  const { data: t, success: n } = A, { state: r, state_name: i } = t, { agent_no: o } = _.agentInfo;
12127
12127
  await ep({ agent_no: o, state_name: i, state: r }), r === Ee.IDLE ? Y.updateActionConfigs(zt) : r === Ee.BUSY && Y.updateActionConfigs(zs), _.stateObject = { state: r, state_name: i }, n == null || n({ code: 0, msg: "请求成功" });
12128
12128
  } catch (t) {
12129
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12129
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12130
12130
  }
12131
12131
  }
12132
12132
  async _getInCallCrmDetail(A) {
@@ -12137,7 +12137,7 @@ class Hd {
12137
12137
  const i = await ((o) => Wt(`${cs}/crm/popups`, o))({ ...r });
12138
12138
  (t = A.success) == null || t.call(A, i);
12139
12139
  } catch (n) {
12140
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
12140
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
12141
12141
  }
12142
12142
  }
12143
12143
  async changeDevice(A) {
@@ -12151,7 +12151,7 @@ class Hd {
12151
12151
  const o = Y.get("actionConfigs");
12152
12152
  Y.updateActionConfigs(o), r === 2 && _.stateObject.state === Ee.UNREGISTERED && await this._changeState({ data: { ..._.stateBeforeChange, state_name: _.stateBeforeChange.state === Ee.IDLE ? "空闲" : "忙碌" } }), n == null || n({ code: 0, msg: "请求成功" });
12153
12153
  } catch (t) {
12154
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12154
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12155
12155
  }
12156
12156
  }
12157
12157
  async changeState(A) {
@@ -12163,7 +12163,7 @@ class Hd {
12163
12163
  const { agent_no: o } = _.agentInfo;
12164
12164
  await ep({ agent_no: o, state_name: i, state: r }), (_.stateObject.state === Ee.IDLE || _.stateObject.state === Ee.BUSY && i !== "整理") && (_.stateBeforeChange = _.stateObject), r === Ee.IDLE ? Y.updateActionConfigs(zt) : r === Ee.BUSY && Y.updateActionConfigs(zs), _.stateObject = { state: r, state_name: i }, n == null || n({ code: 0, msg: "请求成功" });
12165
12165
  } catch (t) {
12166
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12166
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12167
12167
  }
12168
12168
  }
12169
12169
  async getIdleAgentList(A) {
@@ -12174,7 +12174,7 @@ class Hd {
12174
12174
  const r = await ((i) => Wt(`${Yn}/agent/free`, i))({ agent_no: t });
12175
12175
  (n = A.success) == null || n.call(A, r);
12176
12176
  } catch (r) {
12177
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(r.message).msg), r;
12177
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(r.message).msg), r;
12178
12178
  }
12179
12179
  }
12180
12180
  async getAgentState(A) {
@@ -12183,7 +12183,7 @@ class Hd {
12183
12183
  const n = await Wt(`${cs}/agent/statecfg/list`, {}), r = (n.data || []).filter((i) => i.enable === 0).filter((i) => i.state !== 0 && i.state !== 3).filter((i) => i.state_name !== "通话中" && i.state_name !== "整理" && i.state_name !== "未注册" && i.state_name !== "离线接听").map((i) => ({ state: i.state, state_name: i.state_name })).reverse();
12184
12184
  (t = A.success) == null || t.call(A, { ...n, data: r });
12185
12185
  } catch (n) {
12186
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
12186
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
12187
12187
  }
12188
12188
  }
12189
12189
  async setAgentExplicit(A) {
@@ -12193,7 +12193,7 @@ class Hd {
12193
12193
  const { agent_id: n } = _.agentInfo;
12194
12194
  await ((r) => Wt(`${cs}/agent/update`, r))({ agent_id: n, out_display_number: A.data.number }), Y.updateSelectOutNumber(A.data.number), (t = A.success) == null || t.call(A, { code: 0, msg: "请求成功" });
12195
12195
  } catch (n) {
12196
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
12196
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
12197
12197
  }
12198
12198
  }
12199
12199
  async checkAgentLogin(A) {
@@ -12205,7 +12205,7 @@ class Hd {
12205
12205
  const r = await ((i) => Wt(`${Yn}/agent/islogin`, i))({ agent_no: n });
12206
12206
  (t = A.success) == null || t.call(A, r);
12207
12207
  } catch (n) {
12208
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
12208
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(n.message).msg), n;
12209
12209
  }
12210
12210
  }
12211
12211
  async getCallRecord(A) {
@@ -12214,7 +12214,7 @@ class Hd {
12214
12214
  const { success: t } = A, n = /* @__PURE__ */ new Date(), r = new Date(n.getFullYear(), n.getMonth(), n.getDate(), 0, 0, 0), i = new Date(n.getFullYear(), n.getMonth(), n.getDate(), 23, 59, 59), o = [this.formatDate(r), this.formatDate(i)], { agent_no: a } = _.agentInfo, s = await ((d) => Wt(`${cs}/agent/recordpage`, d))({ start_time: o[0], end_time: o[1], page_no: 1, page_size: 10, agent_no: a }), { code: l, msg: u, data: V } = s;
12215
12215
  t == null || t({ code: l, msg: u, data: V });
12216
12216
  } catch (t) {
12217
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12217
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12218
12218
  }
12219
12219
  }
12220
12220
  async logout(A) {
@@ -12223,7 +12223,7 @@ class Hd {
12223
12223
  const { agent_no: t } = _.agentInfo, { data: n, success: r } = A;
12224
12224
  await ((i) => Wt(`${Yn}/agent/logout`, i))({ ...n, agent_no: t }), r == null || r({ code: 0, msg: "" });
12225
12225
  } catch (t) {
12226
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12226
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12227
12227
  }
12228
12228
  }
12229
12229
  async listenCall(A) {
@@ -12232,7 +12232,7 @@ class Hd {
12232
12232
  if (this.roleData.agentInfo(), this.roleData.requestInfo(A), !n.monitored_agent_no) throw new Error(JSON.stringify({ code: 1, msg: 'Parameter "monitored_agent_no" is required' }));
12233
12233
  await ((i) => Wt(`${Yn}/call/monitor`, i))({ ...n, monitor_agent_no: t }), _.monitoredAgentNo = n.monitored_agent_no, r == null || r({ code: 0, msg: "" });
12234
12234
  } catch (t) {
12235
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12235
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12236
12236
  }
12237
12237
  }
12238
12238
  async earCall(A) {
@@ -12243,7 +12243,7 @@ class Hd {
12243
12243
  if (!n) throw new Error(JSON.stringify({ code: 1, msg: "当前未有监听坐席" }));
12244
12244
  await ((o) => Wt(`${Yn}/call/whisper`, o))({ monitored_agent_no: n, monitor_agent_no: r }), i == null || i({ code: 0, msg: "" });
12245
12245
  } catch (t) {
12246
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12246
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12247
12247
  }
12248
12248
  }
12249
12249
  async stopEarCall(A) {
@@ -12255,7 +12255,7 @@ class Hd {
12255
12255
  const { success: i } = A;
12256
12256
  await ((o) => Wt(`${Yn}/call/stopwhisper`, o))({ monitor_agent_no: r, monitored_agent_no: n }), i == null || i({ code: 0, msg: "" });
12257
12257
  } catch (t) {
12258
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12258
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12259
12259
  }
12260
12260
  }
12261
12261
  async forceInsert(A) {
@@ -12266,7 +12266,7 @@ class Hd {
12266
12266
  if (!n) throw new Error(JSON.stringify({ code: 1, msg: "当前未有监听坐席" }));
12267
12267
  await ((o) => Wt(`${Yn}/call/bargein`, o))({ monitored_agent_no: n, monitor_agent_no: r }), i == null || i({ code: 0, msg: "" });
12268
12268
  } catch (t) {
12269
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12269
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12270
12270
  }
12271
12271
  }
12272
12272
  async forceDisconnect(A) {
@@ -12277,7 +12277,7 @@ class Hd {
12277
12277
  if (!n) throw new Error(JSON.stringify({ code: 1, msg: "当前未有监听坐席" }));
12278
12278
  await ((o) => Wt(`${Yn}/call/intercept`, o))({ monitored_agent_no: n, monitor_agent_no: r }), i == null || i({ code: 0, msg: "" });
12279
12279
  } catch (t) {
12280
- throw VA.emit(UA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12280
+ throw VA.emit(FA.FAIL_NOTIFICATION, JSON.parse(t.message).msg), t;
12281
12281
  }
12282
12282
  }
12283
12283
  }
@@ -12550,13 +12550,13 @@ class xM {
12550
12550
  dn(`满意度评价失败: ${A}`);
12551
12551
  }).on(eA.CUSTOMER_INFO, (A) => {
12552
12552
  this.customerInfo = A, this.render();
12553
- }).on(UA.SELECT_EXTERNAL_NUMBER, (A) => {
12553
+ }).on(FA.SELECT_EXTERNAL_NUMBER, (A) => {
12554
12554
  this.selectNumber = A;
12555
- }).on(UA.FAIL_NOTIFICATION, (A) => {
12555
+ }).on(FA.FAIL_NOTIFICATION, (A) => {
12556
12556
  dn(A);
12557
- }).on(UA.KICK_OFF, () => {
12557
+ }).on(FA.KICK_OFF, () => {
12558
12558
  Yc("您的座席账号已在别处登录,请重新登录。如非您本人操作,请及时修改密码。"), this.isLoad = !1, this.render();
12559
- }), VA.on(UA.EVENT_ALL, ({ event: A }) => {
12559
+ }), VA.on(FA.EVENT_ALL, ({ event: A }) => {
12560
12560
  switch (A) {
12561
12561
  case eA.OUT_SUCCESS:
12562
12562
  case eA.CONSULT_RINGING:
@@ -12991,7 +12991,7 @@ class dt {
12991
12991
  const V = this.pendingMessages.get(l), d = performance.now() - V;
12992
12992
  _.latency = parseFloat(d.toFixed(2)), this.pendingMessages.delete(l);
12993
12993
  }
12994
- if (i !== 0 && np("%cWebSocket 收到消息:", "color: blue; font-weight: bold;", r), i !== ae.OUT_CALL && i !== ae.PREVIEW_OUT_CALL || (a !== 0 ? (Y.reset(), VA.emit(eA.OUT_FAILED, s), VA.emit(UA.FAIL_NOTIFICATION, s), Y.updateActionConfigs(zt), setTimeout(() => {
12994
+ if (i !== 0 && np("%cWebSocket 收到消息:", "color: blue; font-weight: bold;", r), i !== ae.OUT_CALL && i !== ae.PREVIEW_OUT_CALL || (a !== 0 ? (Y.reset(), VA.emit(eA.OUT_FAILED, s), VA.emit(FA.FAIL_NOTIFICATION, s), Y.updateActionConfigs(zt), setTimeout(() => {
12995
12995
  Y.updateCustomerInfo(void 0);
12996
12996
  }, 500), this.stateIdleChange()) : a === 0 && (VA.emit(eA.OUT_SUCCESS), clearTimeout(_.autoStateTimer))), i === ae.AGENT_STATE) {
12997
12997
  const { state: V, state_name: d } = o;
@@ -13012,13 +13012,13 @@ class dt {
13012
13012
  else if (o.device_type === 3 && o.agent_no === _.agentInfo.agent_no) this.putAgentState(!0), Y.reset(), VA.emit(eA.THREE_WAY_OUR_SIDE_HANGUP, { session_id: o.session_id }), Y.updateActionConfigs(zt);
13013
13013
  else if (o.device_type === 4 && o.agent_no === _.agentInfo.agent_no) this.putAgentState(!0), Y.reset(), VA.emit(eA.TRANSFER_END, { session_id: o.session_id }), Y.updateActionConfigs(zt);
13014
13014
  else if (o.device_type === 4 && o.agent_no !== _.agentInfo.agent_no) {
13015
- VA.emit(eA.TRANSFER_FAILED, "未知原因"), VA.emit(UA.FAIL_NOTIFICATION, "转接失败");
13015
+ VA.emit(eA.TRANSFER_FAILED, "未知原因"), VA.emit(FA.FAIL_NOTIFICATION, "转接失败");
13016
13016
  const V = Y.get("direction");
13017
13017
  V === Rt.OUTGOING ? Y.updateActionConfigs(xr) : V === Rt.INCOMING && Y.updateActionConfigs(ni);
13018
13018
  } else o.device_type === 5 && o.agent_no === _.agentInfo.agent_no && (this.putAgentState(!0, 5), _.monitoredAgentNo = "", _.earSpeakAgent = "", Y.reset(), VA.emit(eA.LISTEN_HANGUP, { session_id: o.session_id }), Y.updateActionConfigs(zt));
13019
13019
  if (i === ae.OUT_CALL_RINGING && o.type === 1 && (VA.emit(eA.OUT_RINGING, { session_id: _.sessionId, type: o.type }), Y.updateDisplayText(At.RINGING)), i === ae.OUT_CALL_ANSWER && (clearTimeout(_.autoStateTimer), Y.updateIsCalling(!0), VA.emit(eA.OUT_OFF_ANSWER, { session_id: _.sessionId }), Y.updateOutCallIsAnswer(!0), Y.updateDisplayText(At.CALLING), Y.updateActionConfigs(xr)), i === ae.CONSULT_RINGING && (VA.emit(eA.CONSULT_RINGING, { session_id: o.session_id }), Y.updateDisplayText(At.AGENT_RINGING), Y.updateActionConfigs([]), clearTimeout(_.autoStateTimer)), i === ae.CONSULT_ANSWER && (VA.emit(eA.CONSULT_OFF_HOOK, { session_id: o.session_id }), Y.updateConsultIsAnswer(!0), Y.updateDisplayText(At.CONSULTING), Y.updateActionConfigs(sM)), i === ae.CONSULT_FAIL && (VA.emit(eA.CONSULT_FAILED, { custom_reason: o.custom_reason }), Y.updateDisplayText(At.CALLING), Y.updateActionConfigs(xr)), i === ae.CONSULT_CALL_IN && (VA.emit(eA.CONSULT_INCOMING, { agent_no: o.agent_no, agent_mane: o.agent_name, session_id: o.session_id }), _.sessionId = o.session_id, Y.updateIsCalling(!0), Y.updateDirection(Rt.CONSULT), Y.updateDisplayText(At.CONSULT_CALL_IN), Y.updateActionConfigs(os), _.enableBrowserAlert && Ji.show("📞 咨询来电", `坐席 [${o.agent_name}] 正在咨询...`, () => {
13020
- VA.emit(UA.NOTIFICATION_CLICK, { agent_mane: o.agent_name, agent_no: o.agent_no });
13021
- }, _.browserAlertTime)), i === ae.CONSULT_CALL_IN_SUCCESS && (VA.emit(eA.CONSULT_CALL_IN_SUCCESS, { session_id: o.session_id }), Y.updateConsultIsAnswer(!0), Y.updateDisplayText(At.CALLING), Y.updateActionConfigs(lM)), i === ae.CONSULT_RETURN_CALL_SUCCESS && (o.status === "success" ? (Y.updateConsultIsAnswer(!1), VA.emit(eA.CONSULT_RETURN_CALL_SUCCESS), Y.updateDisplayText(At.CALLING), VA.emit(eA.OTHER_SIDE_CONSULT_HANGUP), Y.updateActionConfigs(xr)) : VA.emit(UA.FAIL_NOTIFICATION, "媒体失败")), i === ae.MUTE && (a === 0 ? (Y.updateIsMuted(!0), VA.emit(eA.MUTE_SUCCESS), Y.updateDisplayText(At.MUTING)) : (VA.emit(eA.MUTE_FAILED, s), VA.emit(UA.FAIL_NOTIFICATION, s))), i === ae.UNMUTE && (a === 0 ? (Y.updateIsMuted(!1), VA.emit(eA.UNMUTE_SUCCESS), Y.updateDisplayText(At.CALLING)) : (VA.emit(eA.UNMUTE_FAILED, s), VA.emit(UA.FAIL_NOTIFICATION, s))), i === ae.CALL_HOLD && (a === 0 ? (Y.updateIsHold(!0), Y.updateDisplayText(At.HOLDING), VA.emit(eA.HOLD_SUCCESS)) : (VA.emit(eA.HOLD_FAILED, s), VA.emit(UA.FAIL_NOTIFICATION, s))), i === ae.CALL_UNHOLD && (a === 0 ? (Y.updateDisplayText(At.CALLING), Y.updateIsHold(!1), VA.emit(eA.UNHOLD_SUCCESS)) : (VA.emit(eA.UNHOLD_FAILED, s), VA.emit(UA.FAIL_NOTIFICATION, s))), i === ae.CONSULT_TRANSFER && (a === 0 ? VA.emit(eA.CONSULT_TRANSFER_SUCCESS) : (VA.emit(eA.CONSULT_TRANSFER_FAILED, s), VA.emit(UA.FAIL_NOTIFICATION, s))), i === ae.CONSULT_TRANSFER_FAILED && VA.emit(eA.CONSULT_TRANSFER_FAILED, o.status), i === ae.CONSULT_TRANSFER_OFF_HOOK && (Y.updateDirection(Rt.INCOMING), Y.updateDisplayText(At.CALLING), VA.emit(eA.CONSULT_TRANSFER_OFF_HOOK), Y.updateActionConfigs(ni), Y.updateIncomingIsAnswer(!0), Y.updateConsultIsAnswer(!1)), i === ae.INCOMING_CALL) {
13020
+ VA.emit(FA.NOTIFICATION_CLICK, { agent_mane: o.agent_name, agent_no: o.agent_no });
13021
+ }, _.browserAlertTime)), i === ae.CONSULT_CALL_IN_SUCCESS && (VA.emit(eA.CONSULT_CALL_IN_SUCCESS, { session_id: o.session_id }), Y.updateConsultIsAnswer(!0), Y.updateDisplayText(At.CALLING), Y.updateActionConfigs(lM)), i === ae.CONSULT_RETURN_CALL_SUCCESS && (o.status === "success" ? (Y.updateConsultIsAnswer(!1), VA.emit(eA.CONSULT_RETURN_CALL_SUCCESS), Y.updateDisplayText(At.CALLING), VA.emit(eA.OTHER_SIDE_CONSULT_HANGUP), Y.updateActionConfigs(xr)) : VA.emit(FA.FAIL_NOTIFICATION, "媒体失败")), i === ae.MUTE && (a === 0 ? (Y.updateIsMuted(!0), VA.emit(eA.MUTE_SUCCESS), Y.updateDisplayText(At.MUTING)) : (VA.emit(eA.MUTE_FAILED, s), VA.emit(FA.FAIL_NOTIFICATION, s))), i === ae.UNMUTE && (a === 0 ? (Y.updateIsMuted(!1), VA.emit(eA.UNMUTE_SUCCESS), Y.updateDisplayText(At.CALLING)) : (VA.emit(eA.UNMUTE_FAILED, s), VA.emit(FA.FAIL_NOTIFICATION, s))), i === ae.CALL_HOLD && (a === 0 ? (Y.updateIsHold(!0), Y.updateDisplayText(At.HOLDING), VA.emit(eA.HOLD_SUCCESS)) : (VA.emit(eA.HOLD_FAILED, s), VA.emit(FA.FAIL_NOTIFICATION, s))), i === ae.CALL_UNHOLD && (a === 0 ? (Y.updateDisplayText(At.CALLING), Y.updateIsHold(!1), VA.emit(eA.UNHOLD_SUCCESS)) : (VA.emit(eA.UNHOLD_FAILED, s), VA.emit(FA.FAIL_NOTIFICATION, s))), i === ae.CONSULT_TRANSFER && (a === 0 ? VA.emit(eA.CONSULT_TRANSFER_SUCCESS) : (VA.emit(eA.CONSULT_TRANSFER_FAILED, s), VA.emit(FA.FAIL_NOTIFICATION, s))), i === ae.CONSULT_TRANSFER_FAILED && VA.emit(eA.CONSULT_TRANSFER_FAILED, o.status), i === ae.CONSULT_TRANSFER_OFF_HOOK && (Y.updateDirection(Rt.INCOMING), Y.updateDisplayText(At.CALLING), VA.emit(eA.CONSULT_TRANSFER_OFF_HOOK), Y.updateActionConfigs(ni), Y.updateIncomingIsAnswer(!0), Y.updateConsultIsAnswer(!1)), i === ae.INCOMING_CALL) {
13022
13022
  clearTimeout(_.autoStateTimer), _.sessionId = o.session_id;
13023
13023
  try {
13024
13024
  await this.getCustomerInfo(o.trace_id || o.customer_phone);
@@ -13026,7 +13026,7 @@ class dt {
13026
13026
  console.error(V);
13027
13027
  }
13028
13028
  Y.updateIsCalling(!0), Y.updateDirection(Rt.INCOMING), this.inCallAutoAnswer(), Y.updateDisplayText(At.INCOMING_CALL), o.direction === 1 && VA.emit(eA.INCOMING_CALL, { customer_phone: o.customer_phone, trace_id: o.trace_id, session_id: o.session_id }), o.direction === 3 && (VA.emit(eA.PREDICT_INCOMING_CALL, { customer_phone: o.customer_phone, trace_id: o.trace_id, session_id: o.session_id }), (u = this.sipClient) == null || u.answerCall()), Y.updateActionConfigs(os), _.enableBrowserAlert && Ji.show("📞 客户来电", `客户 [${o.customer_phone}] 正在呼入...`, () => {
13029
- VA.emit(UA.NOTIFICATION_CLICK, { customer_phone: o.customer_phone });
13029
+ VA.emit(FA.NOTIFICATION_CLICK, { customer_phone: o.customer_phone });
13030
13030
  }, _.browserAlertTime);
13031
13031
  }
13032
13032
  if (i === ae.INCOMING_CALL_OFF_HOOK && (Y.updateIncomingIsAnswer(!0), VA.emit(eA.INCOMING_CALL_OFF_HOOK, { session_id: _.sessionId }), Y.updateActionConfigs(ni), Y.updateDisplayText(At.CALLING)), i === ae.INCOMING_CALL_END) if (Y.updateDisplayText(""), o.device_type === 1 && o.agent_no === _.agentInfo.agent_no) this.putAgentState(!0), Y.reset(), VA.emit(eA.INCOMING_CALL_END, { session_id: o.session_id }), Y.updateActionConfigs(zt);
@@ -13035,19 +13035,19 @@ class dt {
13035
13035
  else if (o.device_type === 3 && o.agent_no === _.agentInfo.agent_no) this.putAgentState(!0), Y.reset(), VA.emit(eA.THREE_WAY_OUR_SIDE_HANGUP, { session_id: o.session_id }), Y.updateActionConfigs(zt);
13036
13036
  else if (o.device_type === 4 && o.agent_no === _.agentInfo.agent_no) this.putAgentState(!0), Y.reset(), VA.emit(eA.TRANSFER_END, { session_id: o.session_id }), Y.updateActionConfigs(zt);
13037
13037
  else if (o.device_type === 4 && o.agent_no !== _.agentInfo.agent_no) {
13038
- VA.emit(eA.TRANSFER_FAILED, "未知原因"), VA.emit(UA.FAIL_NOTIFICATION, "转接失败");
13038
+ VA.emit(eA.TRANSFER_FAILED, "未知原因"), VA.emit(FA.FAIL_NOTIFICATION, "转接失败");
13039
13039
  const V = Y.get("direction");
13040
13040
  V === Rt.OUTGOING ? Y.updateActionConfigs(xr) : V === Rt.INCOMING && Y.updateActionConfigs(ni);
13041
13041
  } else o.device_type === 5 && o.agent_no === _.agentInfo.agent_no && (this.putAgentState(!0, 5), _.monitoredAgentNo = "", _.earSpeakAgent = "", Y.reset(), VA.emit(eA.LISTEN_HANGUP, { session_id: o.session_id }), Y.updateActionConfigs(zt));
13042
- if (i === ae.SATISFACTION_EVALUATION && (a === 0 ? VA.emit(eA.SATISFACTION_EVALUATION_SUCCESS) : (VA.emit(eA.SATISFACTION_EVALUATION_FAILED, s), VA.emit(UA.FAIL_NOTIFICATION, s))), i === ae.CONSULT_THREE_WAY && (a !== 0 ? (VA.emit(eA.CONSULT_THREE_WAY_FAILED, s), VA.emit(UA.FAIL_NOTIFICATION, s)) : a === 0 && Y.updateIsMeeting(!0)), i === ae.CONSULT_THREE_WAY_RESULT && (o.status === "success" ? (Y.updateDirection(Rt.MEETING), Y.updateDisplayText(At.MEETING), Y.updateActionConfigs(cM), VA.emit(eA.CONSULT_THREE_WAY_SUCCESS)) : (VA.emit(eA.CONSULT_THREE_WAY_FAILED, { conf_name: o.conf_name }), Y.updateIsMeeting(!1))), i === ae.TRANSFER_INCOMING_CALL && (clearTimeout(_.autoStateTimer), o.agent_no === _.agentInfo.agent_no ? (Y.updateDisplayText(At.TRANSFERRING), VA.emit(eA.TRANSFER_PROGRESS), Y.updateActionConfigs([]), Y.updateTransferIsAnswer(!0)) : (_.sessionId = o.session_id, VA.emit(eA.TRANSFER_INCOMING_CALL, { agent_no: o.agent_no, agent_name: o.agent_name, session_id: o.session_id }), Y.updateIsCalling(!0), Y.updateDirection(Rt.TRANSFER), Y.updateDisplayText(At.TRANSFER_INCOMING_CALL), Y.updateActionConfigs(os), _.enableBrowserAlert && Ji.show("📞 转接来电", `坐席 [${o.agent_no}] 正在转接...`, () => {
13043
- VA.emit(UA.NOTIFICATION_CLICK, { agent_no: o.agent_no });
13042
+ if (i === ae.SATISFACTION_EVALUATION && (a === 0 ? VA.emit(eA.SATISFACTION_EVALUATION_SUCCESS) : (VA.emit(eA.SATISFACTION_EVALUATION_FAILED, s), VA.emit(FA.FAIL_NOTIFICATION, s))), i === ae.CONSULT_THREE_WAY && (a !== 0 ? (VA.emit(eA.CONSULT_THREE_WAY_FAILED, s), VA.emit(FA.FAIL_NOTIFICATION, s)) : a === 0 && Y.updateIsMeeting(!0)), i === ae.CONSULT_THREE_WAY_RESULT && (o.status === "success" ? (Y.updateDirection(Rt.MEETING), Y.updateDisplayText(At.MEETING), Y.updateActionConfigs(cM), VA.emit(eA.CONSULT_THREE_WAY_SUCCESS)) : (VA.emit(eA.CONSULT_THREE_WAY_FAILED, { conf_name: o.conf_name }), Y.updateIsMeeting(!1))), i === ae.TRANSFER_INCOMING_CALL && (clearTimeout(_.autoStateTimer), o.agent_no === _.agentInfo.agent_no ? (Y.updateDisplayText(At.TRANSFERRING), VA.emit(eA.TRANSFER_PROGRESS), Y.updateActionConfigs([]), Y.updateTransferIsAnswer(!0)) : (_.sessionId = o.session_id, VA.emit(eA.TRANSFER_INCOMING_CALL, { agent_no: o.agent_no, agent_name: o.agent_name, session_id: o.session_id }), Y.updateIsCalling(!0), Y.updateDirection(Rt.TRANSFER), Y.updateDisplayText(At.TRANSFER_INCOMING_CALL), Y.updateActionConfigs(os), _.enableBrowserAlert && Ji.show("📞 转接来电", `坐席 [${o.agent_no}] 正在转接...`, () => {
13043
+ VA.emit(FA.NOTIFICATION_CLICK, { agent_no: o.agent_no });
13044
13044
  }, _.browserAlertTime))), i === ae.TRANSFER_OFF_HOOK && (VA.emit(eA.TRANSFER_OFF_HOOK, { session_id: _.sessionId }), Y.updateTransferIsAnswer(!1), Y.updateDisplayText(At.CALLING), Y.updateActionConfigs(ni)), i === ae.TRANSFER_FAILED && o.status === "failed") {
13045
- VA.emit(eA.TRANSFER_FAILED, "未知原因"), VA.emit(UA.FAIL_NOTIFICATION, "转接失败");
13045
+ VA.emit(eA.TRANSFER_FAILED, "未知原因"), VA.emit(FA.FAIL_NOTIFICATION, "转接失败");
13046
13046
  const V = Y.get("direction");
13047
13047
  V === Rt.OUTGOING ? Y.updateActionConfigs(xr) : V === Rt.INCOMING && Y.updateActionConfigs(ni);
13048
13048
  }
13049
- i === ae.KICK_OFFLINE && VA.emit(UA.KICK_OFF), i === ae.CONTINUOUS_NOT_ANSWER && (VA.emit(UA.FAIL_NOTIFICATION, `已连续 ${o.miss_count} 次未接, 设置忙碌`), this.stateBusyChange()), i === ae.SIGN_OUT && VA.emit(UA.SIGN_OUT), i === ae.SIGN_IN_SWITCH_DEVICE && VA.emit(UA.SIGN_IN_SWITCH_DEVICE, o), i === ae.LISTEN_INCOMING_CALL && (clearTimeout(_.autoStateTimer), _.sessionId = o.session_id, Y.updateIsCalling(!0), Y.updateDirection(Rt.INCOMING), this.inCallAutoAnswer(), Y.updateDisplayText(At.LISTENING), Y.updateActionConfigs(os), VA.emit(eA.LISTEN_INCOMING_CALL, { session_id: o.session_id }), _.enableBrowserAlert && Ji.show("📞 监听来电", "正在来电...", () => {
13050
- VA.emit(UA.NOTIFICATION_CLICK, { customer_phone: o.customer_phone });
13049
+ i === ae.KICK_OFFLINE && VA.emit(FA.KICK_OFF), i === ae.CONTINUOUS_NOT_ANSWER && (VA.emit(FA.FAIL_NOTIFICATION, `已连续 ${o.miss_count} 次未接, 设置忙碌`), this.stateBusyChange()), i === ae.SIGN_OUT && VA.emit(FA.SIGN_OUT), i === ae.SIGN_IN_SWITCH_DEVICE && VA.emit(FA.SIGN_IN_SWITCH_DEVICE, o), i === ae.LISTEN_INCOMING_CALL && (clearTimeout(_.autoStateTimer), _.sessionId = o.session_id, Y.updateIsCalling(!0), Y.updateDirection(Rt.INCOMING), this.inCallAutoAnswer(), Y.updateDisplayText(At.LISTENING), Y.updateActionConfigs(os), VA.emit(eA.LISTEN_INCOMING_CALL, { session_id: o.session_id }), _.enableBrowserAlert && Ji.show("📞 监听来电", "正在来电...", () => {
13050
+ VA.emit(FA.NOTIFICATION_CLICK, { customer_phone: o.customer_phone });
13051
13051
  }, _.browserAlertTime)), i === ae.LISTEN_INCOMING_CALL_OFF_HOOK && (_.monitoredAgentNo = o.monitored_agent_no, _.earSpeakAgent = "", Y.updateIncomingIsAnswer(!0), VA.emit(eA.LISTEN_INCOMING_CALL_OFF_HOOK, { session_id: _.sessionId, monitored_agent_no: o.monitored_agent_no }), Y.updateActionConfigs(Wh), Y.updateDisplayText(At.CALLING)), i === ae.LISTEN_CALL_FAILED && o.status === "failed" && (VA.emit(eA.LISTEN_CALL_FAILED), _.monitoredAgentNo = ""), i === ae.EAR_SPEECH && (o.status === "success" ? (o.monitored_agent_no === _.agentInfo.agent_no && (Y.updateActionConfigs(uM), VA.emit(eA.EAR_SPEECH_BE_SUCCESS)), o.monitor_agent_no === _.agentInfo.agent_no && (Y.updateActionConfigs(VM), VA.emit(eA.EAR_SPEECH_SUCCESS, { monitored_agent_no: o.monitored_agent_no, monitor_agent_no: o.monitor_agent_no }), _.earSpeakAgent = o.monitored_agent_no)) : VA.emit(eA.EAR_SPEECH_FAILED)), i === ae.STOP_EAR_SPEECH && (o.status === "success" ? (o.monitored_agent_no === _.agentInfo.agent_no && Y.updateActionConfigs(ni), o.monitor_agent_no === _.agentInfo.agent_no && Y.updateActionConfigs(Wh), _.earSpeakAgent = "", VA.emit(eA.STOP_EAR_SPEECH_SUCCESS)) : VA.emit(eA.STOP_EAR_SPEECH_FAILED)), i === ae.CALL_FORCE_INSERT && (o.status === "success" ? (o.monitored_agent_no === _.agentInfo.agent_no && (Y.updateActionConfigs(gM), VA.emit(eA.CALL_FORCE_INSERT_SUCCESS, { monitored_agent_no: o.monitored_agent_no, monitor_agent_no: o.monitor_agent_no })), o.monitor_agent_no === _.agentInfo.agent_no && (Y.updateActionConfigs(dM), VA.emit(eA.CALL_FORCE_INSERT_SUCCESS_LISTENER, { monitored_agent_no: o.monitored_agent_no, monitor_agent_no: o.monitor_agent_no }))) : VA.emit(eA.CALL_FORCE_INSERT_FAILED));
13052
13052
  }, this.ws.onclose = () => {
13053
13053
  this.stopHeartbeat(), this.manualClose || setTimeout(() => this.initWebSocket(), this.reconnectDelay);
@@ -13267,7 +13267,7 @@ const El = class El {
13267
13267
  } });
13268
13268
  }, 10);
13269
13269
  } else yn(this, mr, _.stateObject), dt.__internalClose(), Y.updateDisplayText("离线");
13270
- })), this.on(UA.KICK_OFF, () => {
13270
+ })), this.on(FA.KICK_OFF, () => {
13271
13271
  this.destroy();
13272
13272
  }), window.addEventListener("beforeunload", (A) => {
13273
13273
  A.returnValue = "", this.destroy();
@@ -13308,10 +13308,10 @@ const El = class El {
13308
13308
  const { viewHtmlElement: u, rttHTML: V } = A || {};
13309
13309
  _.logBuiltinEnabled = n || !1, _.browserAlertTime = r || 5e3, await te(this, ft)._agentLogin(us);
13310
13310
  const { current_answer_device: d, current_state: h, out_display_number: m, out_display_select_switch: C } = _.agentInfo;
13311
- (i || h) === Ee.IDLE ? (Y.updateActionConfigs(zt), _.stateObject = { state: i || h, state_name: "空闲" }, _.stateBeforeChange = _.stateObject) : (i || h) === Ee.BUSY ? (Y.updateActionConfigs(zs), _.stateObject = { state: h, state_name: "忙碌" }, _.stateBeforeChange = _.stateObject) : (i || h) === Ee.UNREGISTERED && (Y.updateActionConfigs(zs), _.stateObject = { state: h, state_name: "未注册" }), C === 1 ? Y.updateSelectOutNumber(m) : Y.updateSelectOutNumber(""), Y.updateAnswerDevice(o || d), (o || d) === 1 && (await this.initWebRtc(), l.setSipClient(te(this, nn))), yn(this, ct, new FM(te(this, nn))), A && u && (yn(this, Kr, !0), new xM({ container: u, rttHTML: V, statusParams: { state: _.stateObject.state, statusName: _.stateObject.state_name } }, this, te(this, ct))), _.enableBrowserAlert = t, t && Ji.requestPermission(), VA.emit(UA.AGENT_INIT_STATUS, !0), yn(this, lo, !0), clearInterval(gn._timer), gn._timer = null, za(this, _r, _0).call(this);
13311
+ (i || h) === Ee.IDLE ? (Y.updateActionConfigs(zt), _.stateObject = { state: i || h, state_name: "空闲" }, _.stateBeforeChange = _.stateObject) : (i || h) === Ee.BUSY ? (Y.updateActionConfigs(zs), _.stateObject = { state: h, state_name: "忙碌" }, _.stateBeforeChange = _.stateObject) : (i || h) === Ee.UNREGISTERED && (Y.updateActionConfigs(zs), _.stateObject = { state: h, state_name: "未注册" }), C === 1 ? Y.updateSelectOutNumber(m) : Y.updateSelectOutNumber(""), Y.updateAnswerDevice(o || d), (o || d) === 1 && (await this.initWebRtc(), l.setSipClient(te(this, nn))), yn(this, ct, new FM(te(this, nn))), A && u && (yn(this, Kr, !0), new xM({ container: u, rttHTML: V, statusParams: { state: _.stateObject.state, statusName: _.stateObject.state_name } }, this, te(this, ct))), _.enableBrowserAlert = t, t && Ji.requestPermission(), VA.emit(FA.AGENT_INIT_STATUS, !0), yn(this, lo, !0), clearInterval(gn._timer), gn._timer = null, za(this, _r, _0).call(this);
13312
13312
  } });
13313
13313
  } catch {
13314
- te(this, Kr) && dn("初始化失败"), VA.emit(UA.AGENT_INIT_STATUS, !1), yn(this, lo, !1);
13314
+ te(this, Kr) && dn("初始化失败"), VA.emit(FA.AGENT_INIT_STATUS, !1), yn(this, lo, !1);
13315
13315
  }
13316
13316
  }
13317
13317
  on(A, t) {
@@ -13329,7 +13329,7 @@ const El = class El {
13329
13329
  }
13330
13330
  async destroy() {
13331
13331
  var A, t;
13332
- gn._instance && (await this.destroyRtc(), clearInterval(te(this, so)), dt.__internalClose(), VA.emit(UA.DESTROY), this.offAll(), (A = te(this, Da)) == null || A.call(this), (t = te(this, xa)) == null || t.call(this), yn(this, Kr, !1), gn._instance = null, Y.reset(), Y.updateSelectOutNumber(""), clearInterval(gn._timer), gn._timer = null);
13332
+ gn._instance && (await this.destroyRtc(), clearInterval(te(this, so)), dt.__internalClose(), VA.emit(FA.DESTROY), this.offAll(), (A = te(this, Da)) == null || A.call(this), (t = te(this, xa)) == null || t.call(this), yn(this, Kr, !1), gn._instance = null, Y.reset(), Y.updateSelectOutNumber(""), clearInterval(gn._timer), gn._timer = null);
13333
13333
  }
13334
13334
  get call_api() {
13335
13335
  const A = (t) => (...n) => {
@@ -20054,7 +20054,7 @@ var Db = ["prefixCls", "className", "style", "checked", "disabled", "defaultChec
20054
20054
  title: d,
20055
20055
  style: i,
20056
20056
  ref: f
20057
- }, /* @__PURE__ */ c.createElement("input", FA({}, m, {
20057
+ }, /* @__PURE__ */ c.createElement("input", OA({}, m, {
20058
20058
  className: "".concat(n, "-input"),
20059
20059
  ref: C,
20060
20060
  onChange: g,
@@ -21855,7 +21855,7 @@ O(Vg, "defaultProps", {
21855
21855
  });
21856
21856
  function tv(e) {
21857
21857
  var A, t = e.name, n = Ie(e, GR), r = c.useContext(wo), i = c.useContext(rl), o = t !== void 0 ? gt(t) : void 0, a = (A = n.isListField) !== null && A !== void 0 ? A : !!i, s = "keep";
21858
- return a || (s = "_".concat((o || []).join("_"))), process.env.NODE_ENV !== "production" && n.preserve === !1 && a && o.length <= 1 && ve(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ c.createElement(Vg, FA({
21858
+ return a || (s = "_".concat((o || []).join("_"))), process.env.NODE_ENV !== "production" && n.preserve === !1 && a && o.length <= 1 && ve(!1, "`preserve` should not apply on Form.List fields."), /* @__PURE__ */ c.createElement(Vg, OA({
21859
21859
  key: s,
21860
21860
  name: o,
21861
21861
  isListField: a
@@ -22616,7 +22616,7 @@ var od = /* @__PURE__ */ c.createContext({
22616
22616
  }, /* @__PURE__ */ c.createElement(wo.Provider, {
22617
22617
  value: N
22618
22618
  }, F));
22619
- return u === !1 ? G : /* @__PURE__ */ c.createElement(u, FA({}, w, {
22619
+ return u === !1 ? G : /* @__PURE__ */ c.createElement(u, OA({}, w, {
22620
22620
  ref: B,
22621
22621
  onSubmit: function(H) {
22622
22622
  H.preventDefault(), H.stopPropagation(), v.submit();
@@ -22991,7 +22991,7 @@ var ov = /* @__PURE__ */ nA.forwardRef(function(e, A) {
22991
22991
  className: oA("".concat(a, "-suffix"), Q == null ? void 0 : Q.suffix),
22992
22992
  style: E == null ? void 0 : E.suffix
22993
22993
  }, G, l);
22994
- L = /* @__PURE__ */ nA.createElement(S, FA({
22994
+ L = /* @__PURE__ */ nA.createElement(S, OA({
22995
22995
  className: AA,
22996
22996
  style: E == null ? void 0 : E.affixWrapper,
22997
22997
  onClick: k
@@ -23122,7 +23122,7 @@ var lD = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
23122
23122
  "classNames",
23123
23123
  "onClear"
23124
23124
  ]);
23125
- return /* @__PURE__ */ nA.createElement("input", FA({
23125
+ return /* @__PURE__ */ nA.createElement("input", OA({
23126
23126
  autoComplete: t
23127
23127
  }, gA, {
23128
23128
  onChange: hA,
@@ -23140,7 +23140,7 @@ var lD = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
23140
23140
  },
23141
23141
  onCompositionEnd: J
23142
23142
  }));
23143
- }, OA = function() {
23143
+ }, UA = function() {
23144
23144
  var gA = Number(iA) > 0;
23145
23145
  if (C || z.show) {
23146
23146
  var SA = z.showFormatter ? z.showFormatter({
@@ -23155,14 +23155,14 @@ var lD = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
23155
23155
  }
23156
23156
  return null;
23157
23157
  };
23158
- return /* @__PURE__ */ nA.createElement(ov, FA({}, E, {
23158
+ return /* @__PURE__ */ nA.createElement(ov, OA({}, E, {
23159
23159
  prefixCls: u,
23160
23160
  className: oA(h, bA),
23161
23161
  handleReset: fA,
23162
23162
  value: X,
23163
23163
  focused: R,
23164
23164
  triggerFocus: k,
23165
- suffix: OA(),
23165
+ suffix: UA(),
23166
23166
  disabled: V,
23167
23167
  classes: B,
23168
23168
  classNames: M,
@@ -23430,7 +23430,7 @@ var Ft = /* @__PURE__ */ c.forwardRef(function(e, A) {
23430
23430
  msTransform: "rotate(".concat(i, "deg)"),
23431
23431
  transform: "rotate(".concat(i, "deg)")
23432
23432
  } : void 0, q = uv(s), y = $(q, 2), w = y[0], B = y[1];
23433
- return /* @__PURE__ */ c.createElement("span", FA({
23433
+ return /* @__PURE__ */ c.createElement("span", OA({
23434
23434
  role: "img",
23435
23435
  "aria-label": n.name
23436
23436
  }, l, {
@@ -23449,7 +23449,7 @@ Ft.displayName = "AntdIcon";
23449
23449
  Ft.getTwoToneColor = ID;
23450
23450
  Ft.setTwoToneColor = Vv;
23451
23451
  var wD = function(A, t) {
23452
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
23452
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
23453
23453
  ref: t,
23454
23454
  icon: gD
23455
23455
  }));
@@ -23814,14 +23814,14 @@ const xD = /* @__PURE__ */ c.forwardRef((e, A) => {
23814
23814
  }))));
23815
23815
  });
23816
23816
  var TD = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { tag: "path", attrs: { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, name: "eye-invisible", theme: "outlined" }, FD = function(A, t) {
23817
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
23817
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
23818
23818
  ref: t,
23819
23819
  icon: TD
23820
23820
  }));
23821
23821
  }, hv = /* @__PURE__ */ c.forwardRef(FD);
23822
23822
  process.env.NODE_ENV !== "production" && (hv.displayName = "EyeInvisibleOutlined");
23823
23823
  var OD = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" }, UD = function(A, t) {
23824
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
23824
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
23825
23825
  ref: t,
23826
23826
  icon: OD
23827
23827
  }));
@@ -23888,7 +23888,7 @@ const kD = (e) => e ? /* @__PURE__ */ c.createElement(pv, null) : /* @__PURE__ *
23888
23888
  });
23889
23889
  process.env.NODE_ENV !== "production" && (fv.displayName = "Input.Password");
23890
23890
  var ND = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }, ZD = function(A, t) {
23891
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
23891
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
23892
23892
  ref: t,
23893
23893
  icon: ND
23894
23894
  }));
@@ -23969,7 +23969,7 @@ function HD(e, A) {
23969
23969
  }
23970
23970
  ["default", "primary", "danger"].concat(yA(Wr));
23971
23971
  var JD = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" }, PD = function(A, t) {
23972
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
23972
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
23973
23973
  ref: t,
23974
23974
  icon: JD
23975
23975
  }));
@@ -24447,7 +24447,7 @@ var lx = [{
24447
24447
  prefixCls: i,
24448
24448
  disabled: m,
24449
24449
  color: M
24450
- }, F = /* @__PURE__ */ nA.createElement(nA.Fragment, null, /* @__PURE__ */ nA.createElement(rx, FA({
24450
+ }, F = /* @__PURE__ */ nA.createElement(nA.Fragment, null, /* @__PURE__ */ nA.createElement(rx, OA({
24451
24451
  onChange: v
24452
24452
  }, T, {
24453
24453
  onChangeComplete: a
@@ -24455,7 +24455,7 @@ var lx = [{
24455
24455
  className: "".concat(i, "-slider-container")
24456
24456
  }, /* @__PURE__ */ nA.createElement("div", {
24457
24457
  className: oA("".concat(i, "-slider-group"), O({}, "".concat(i, "-slider-group-disabled-alpha"), d))
24458
- }, /* @__PURE__ */ nA.createElement(y, FA({}, T, {
24458
+ }, /* @__PURE__ */ nA.createElement(y, OA({}, T, {
24459
24459
  type: "hue",
24460
24460
  colors: lx,
24461
24461
  min: 0,
@@ -24463,7 +24463,7 @@ var lx = [{
24463
24463
  value: M.getHue(),
24464
24464
  onChange: I,
24465
24465
  onChangeComplete: S
24466
- })), !d && /* @__PURE__ */ nA.createElement(y, FA({}, T, {
24466
+ })), !d && /* @__PURE__ */ nA.createElement(y, OA({}, T, {
24467
24467
  type: "alpha",
24468
24468
  colors: [{
24469
24469
  percent: 0,
@@ -24574,7 +24574,7 @@ let dx = /* @__PURE__ */ function() {
24574
24574
  }]);
24575
24575
  }();
24576
24576
  var gx = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, hx = function(A, t) {
24577
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
24577
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
24578
24578
  ref: t,
24579
24579
  icon: gx
24580
24580
  }));
@@ -25412,7 +25412,7 @@ const Kx = {
25412
25412
  }
25413
25413
  const {
25414
25414
  compactSize: TA,
25415
- compactItemClassnames: OA
25415
+ compactItemClassnames: UA
25416
25416
  } = xo(H, F), EA = {
25417
25417
  large: "lg",
25418
25418
  small: "sm",
@@ -25435,7 +25435,7 @@ const Kx = {
25435
25435
  [`${H}-block`]: B,
25436
25436
  [`${H}-rtl`]: F === "rtl",
25437
25437
  [`${H}-icon-end`]: y === "end"
25438
- }, OA, m, C, Z), LA = Object.assign(Object.assign({}, L), Q), kA = oA(g == null ? void 0 : g.icon, N.icon), _A = Object.assign(Object.assign({}, (d == null ? void 0 : d.icon) || {}), G.icon || {}), Ve = q && !tA ? /* @__PURE__ */ nA.createElement(ld, {
25438
+ }, UA, m, C, Z), LA = Object.assign(Object.assign({}, L), Q), kA = oA(g == null ? void 0 : g.icon, N.icon), _A = Object.assign(Object.assign({}, (d == null ? void 0 : d.icon) || {}), G.icon || {}), Ve = q && !tA ? /* @__PURE__ */ nA.createElement(ld, {
25439
25439
  prefixCls: H,
25440
25440
  className: kA,
25441
25441
  style: _A
@@ -25467,7 +25467,7 @@ const Kx = {
25467
25467
  onClick: bA,
25468
25468
  disabled: iA,
25469
25469
  ref: CA
25470
- }), Ve, ee, OA && /* @__PURE__ */ nA.createElement(Yx, {
25470
+ }), Ve, ee, UA && /* @__PURE__ */ nA.createElement(Yx, {
25471
25471
  prefixCls: H
25472
25472
  }));
25473
25473
  return qs(S) || (RA = /* @__PURE__ */ nA.createElement(ug, {
@@ -25962,7 +25962,7 @@ function pT(e, A) {
25962
25962
  var t = e.children, n = typeof t == "function" ? [t] : Pn(t);
25963
25963
  return process.env.NODE_ENV !== "production" && (n.length > 1 ? fi(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : n.length === 0 && fi(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), n.map(function(r, i) {
25964
25964
  var o = (r == null ? void 0 : r.key) || "".concat(hT, "-").concat(i);
25965
- return /* @__PURE__ */ c.createElement(Ov, FA({}, e, {
25965
+ return /* @__PURE__ */ c.createElement(Ov, OA({}, e, {
25966
25966
  key: o,
25967
25967
  ref: i === 0 ? A : void 0
25968
25968
  }), r);
@@ -26067,7 +26067,7 @@ var vT = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "classNa
26067
26067
  return (R === iu || R === ou) && (X.overflowY = "hidden", X.overflowX = "hidden"), /* @__PURE__ */ c.createElement(br, {
26068
26068
  onResize: N,
26069
26069
  disabled: !(o || a)
26070
- }, /* @__PURE__ */ c.createElement("textarea", FA({}, h, {
26070
+ }, /* @__PURE__ */ c.createElement("textarea", OA({}, h, {
26071
26071
  ref: w,
26072
26072
  style: X,
26073
26073
  className: oA(n, s, O({}, "".concat(n, "-disabled"), u)),
@@ -26112,7 +26112,7 @@ var vT = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "classNa
26112
26112
  !X.current && sA.exceedFormatter && sA.max && sA.strategy(wA) > sA.max && (le = sA.exceedFormatter(wA, {
26113
26113
  max: sA.max
26114
26114
  }), wA !== le && cA([aA().selectionStart || 0, aA().selectionEnd || 0])), F(le), il(RA.currentTarget, RA, a, le);
26115
- }, OA = function(RA) {
26115
+ }, UA = function(RA) {
26116
26116
  X.current = !0, u == null || u(RA);
26117
26117
  }, EA = function(RA) {
26118
26118
  X.current = !1, TA(RA, RA.currentTarget.value), V == null || V(RA);
@@ -26163,14 +26163,14 @@ var vT = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "classNa
26163
26163
  hidden: B,
26164
26164
  readOnly: p,
26165
26165
  onClear: v
26166
- }, /* @__PURE__ */ nA.createElement(ET, FA({}, S, {
26166
+ }, /* @__PURE__ */ nA.createElement(ET, OA({}, S, {
26167
26167
  autoSize: I,
26168
26168
  maxLength: l,
26169
26169
  onKeyDown: SA,
26170
26170
  onChange: gA,
26171
26171
  onFocus: jA,
26172
26172
  onBlur: zA,
26173
- onCompositionStart: OA,
26173
+ onCompositionStart: UA,
26174
26174
  onCompositionEnd: EA,
26175
26175
  className: oA(M == null ? void 0 : M.textarea),
26176
26176
  style: U(U({}, g == null ? void 0 : g.textarea), {}, {
@@ -26508,7 +26508,7 @@ function UT(e) {
26508
26508
  }
26509
26509
  function GT(e) {
26510
26510
  var A = e.prefixCls, t = e.open, n = e.zIndex, r = e.mask, i = e.motion;
26511
- return r ? /* @__PURE__ */ c.createElement(bo, FA({}, i, {
26511
+ return r ? /* @__PURE__ */ c.createElement(bo, OA({}, i, {
26512
26512
  motionAppear: !0,
26513
26513
  visible: t,
26514
26514
  removeOnLeave: !0
@@ -26562,7 +26562,7 @@ var Yv = /* @__PURE__ */ c.forwardRef(function(e, A) {
26562
26562
  onResize: T,
26563
26563
  disabled: !s
26564
26564
  }, function(sA) {
26565
- return /* @__PURE__ */ c.createElement(bo, FA({
26565
+ return /* @__PURE__ */ c.createElement(bo, OA({
26566
26566
  motionAppear: !0,
26567
26567
  motionEnter: !0,
26568
26568
  motionLeave: !0,
@@ -26766,7 +26766,7 @@ function ZT(e, A, t, n, r, i, o) {
26766
26766
  bottom: aA - lA
26767
26767
  }, fA = T.htmlRegion, bA = "visible", TA = "visibleFirst";
26768
26768
  fA !== "scroll" && fA !== TA && (fA = bA);
26769
- var OA = fA === TA, EA = vm(IA, d), gA = vm(CA, d), SA = fA === bA ? gA : EA, jA = OA ? gA : SA;
26769
+ var UA = fA === TA, EA = vm(IA, d), gA = vm(CA, d), SA = fA === bA ? gA : EA, jA = UA ? gA : SA;
26770
26770
  g.style.left = "auto", g.style.top = "auto", g.style.right = "0", g.style.bottom = "0";
26771
26771
  var zA = g.getBoundingClientRect();
26772
26772
  g.style.left = I, g.style.top = R, g.style.right = S, g.style.bottom = D, g.style.overflow = x, (M = g.parentElement) === null || M === void 0 || M.removeChild(F);
@@ -26785,7 +26785,7 @@ function ZT(e, A, t, n, r, i, o) {
26785
26785
  qA ? QA -= hA - cA : QA = vA.y - GA.y - wA;
26786
26786
  var ue = In(MA, QA), de = In(MA, QA, gA);
26787
26787
  // Of course use larger one
26788
- ue > qe || ue === qe && (!OA || // Choose recommend one
26788
+ ue > qe || ue === qe && (!UA || // Choose recommend one
26789
26789
  de >= DA) ? (h.current.bt = !0, ie = QA, wA = -wA, $A.points = [Ur(Re, 0), Ur(Pe, 0)]) : h.current.bt = !1;
26790
26790
  }
26791
26791
  if (Me && Re[0] === "b" && (PA < jA.top || h.current.tb)) {
@@ -26793,7 +26793,7 @@ function ZT(e, A, t, n, r, i, o) {
26793
26793
  qA ? Ge += hA - cA : Ge = KA.y - NA.y - wA;
26794
26794
  var Yt = In(MA, Ge), Vt = In(MA, Ge, gA);
26795
26795
  // Of course use larger one
26796
- Yt > qe || Yt === qe && (!OA || // Choose recommend one
26796
+ Yt > qe || Yt === qe && (!UA || // Choose recommend one
26797
26797
  Vt >= DA) ? (h.current.tb = !0, ie = Ge, wA = -wA, $A.points = [Ur(Re, 0), Ur(Pe, 0)]) : h.current.tb = !1;
26798
26798
  }
26799
26799
  var _t = re(K), _n = Re[1] === Pe[1];
@@ -26802,7 +26802,7 @@ function ZT(e, A, t, n, r, i, o) {
26802
26802
  _n ? Lt -= J - sA : Lt = vA.x - GA.x - RA;
26803
26803
  var Ht = In(Lt, ie), Gn = In(Lt, ie, gA);
26804
26804
  // Of course use larger one
26805
- Ht > qe || Ht === qe && (!OA || // Choose recommend one
26805
+ Ht > qe || Ht === qe && (!UA || // Choose recommend one
26806
26806
  Gn >= DA) ? (h.current.rl = !0, MA = Lt, RA = -RA, $A.points = [Ur(Re, 1), Ur(Pe, 1)]) : h.current.rl = !1;
26807
26807
  }
26808
26808
  if (_t && Re[1] === "r" && (ke < jA.left || h.current.lr)) {
@@ -26810,7 +26810,7 @@ function ZT(e, A, t, n, r, i, o) {
26810
26810
  _n ? Jt += J - sA : Jt = KA.x - NA.x - RA;
26811
26811
  var cr = In(Jt, ie), kn = In(Jt, ie, gA);
26812
26812
  // Of course use larger one
26813
- cr > qe || cr === qe && (!OA || // Choose recommend one
26813
+ cr > qe || cr === qe && (!UA || // Choose recommend one
26814
26814
  kn >= DA) ? (h.current.lr = !0, MA = Jt, RA = -RA, $A.points = [Ur(Re, 1), Ur(Pe, 1)]) : h.current.lr = !1;
26815
26815
  }
26816
26816
  Qi();
@@ -26909,7 +26909,7 @@ function HT() {
26909
26909
  rt(function() {
26910
26910
  fA(Gv());
26911
26911
  }, []);
26912
- var bA = c.useRef({}), TA = c.useContext(mm), OA = c.useMemo(function() {
26912
+ var bA = c.useRef({}), TA = c.useContext(mm), UA = c.useMemo(function() {
26913
26913
  return {
26914
26914
  registerSubPopup: function(fe, ot) {
26915
26915
  bA.current[fe] = ot, TA == null || TA.registerSubPopup(fe, ot);
@@ -27050,7 +27050,7 @@ function HT() {
27050
27050
  }, /* @__PURE__ */ c.createElement(Nv, {
27051
27051
  getTriggerDOMNode: hA
27052
27052
  }, Vc)), Vr.current && /* @__PURE__ */ c.createElement(mm.Provider, {
27053
- value: OA
27053
+ value: UA
27054
27054
  }, /* @__PURE__ */ c.createElement(Yv, {
27055
27055
  portal: e,
27056
27056
  ref: LA,
@@ -27211,7 +27211,7 @@ function $T(e, A) {
27211
27211
  className: oA((t = v.props) === null || t === void 0 ? void 0 : t.className, x && H()),
27212
27212
  ref: $r(v) ? Xn(k, Ii(v)) : void 0
27213
27213
  }), P = f;
27214
- return !P && M.indexOf("contextMenu") !== -1 && (P = ["click"]), /* @__PURE__ */ nA.createElement(ic, FA({
27214
+ return !P && M.indexOf("contextMenu") !== -1 && (P = ["click"]), /* @__PURE__ */ nA.createElement(ic, OA({
27215
27215
  builtinPlacements: h
27216
27216
  }, p, {
27217
27217
  prefixCls: o,
@@ -27463,7 +27463,7 @@ function a4(e, A) {
27463
27463
  });
27464
27464
  var g = {};
27465
27465
  y && (g["aria-hidden"] = !0);
27466
- var Q = /* @__PURE__ */ c.createElement(f, FA({
27466
+ var Q = /* @__PURE__ */ c.createElement(f, OA({
27467
27467
  className: oA(!n && t, u),
27468
27468
  style: U(U({}, M), V)
27469
27469
  }, g, q, {
@@ -27513,14 +27513,14 @@ var Vl = /* @__PURE__ */ nA.createContext(null), c4 = ["component"], u4 = ["clas
27513
27513
  var n = c.useContext(Vl);
27514
27514
  if (!n) {
27515
27515
  var r = A.component, i = r === void 0 ? "div" : r, o = Ie(A, c4);
27516
- return /* @__PURE__ */ c.createElement(i, FA({}, o, {
27516
+ return /* @__PURE__ */ c.createElement(i, OA({}, o, {
27517
27517
  ref: t
27518
27518
  }));
27519
27519
  }
27520
27520
  var a = n.className, s = Ie(n, u4), l = A.className, u = Ie(A, V4);
27521
27521
  return /* @__PURE__ */ c.createElement(Vl.Provider, {
27522
27522
  value: null
27523
- }, /* @__PURE__ */ c.createElement(ca, FA({
27523
+ }, /* @__PURE__ */ c.createElement(ca, OA({
27524
27524
  ref: t,
27525
27525
  className: oA(a, l)
27526
27526
  }, s, u)));
@@ -27533,7 +27533,7 @@ function h4(e) {
27533
27533
  function p4(e, A) {
27534
27534
  var t = e.prefixCls, n = t === void 0 ? "rc-overflow" : t, r = e.data, i = r === void 0 ? [] : r, o = e.renderItem, a = e.renderRawItem, s = e.itemKey, l = e.itemWidth, u = l === void 0 ? 10 : l, V = e.ssr, d = e.style, h = e.className, m = e.maxCount, C = e.renderRest, f = e.renderRawRest, q = e.suffix, y = e.component, w = y === void 0 ? "div" : y, B = e.itemComponent, M = e.onVisibleChange, g = Ie(e, g4), Q = V === "full", v = l4(), E = Wo(v, null), p = $(E, 2), I = p[0], R = p[1], S = I || 0, D = Wo(v, /* @__PURE__ */ new Map()), x = $(D, 2), T = x[0], F = x[1], k = Wo(v, 0), Z = $(k, 2), L = Z[0], N = Z[1], G = Wo(v, 0), X = $(G, 2), H = X[0], W = X[1], P = Wo(v, 0), AA = $(P, 2), z = AA[0], iA = AA[1], aA = we(null), lA = $(aA, 2), tA = lA[0], hA = lA[1], J = we(null), cA = $(J, 2), sA = cA[0], CA = cA[1], IA = c.useMemo(function() {
27535
27535
  return sA === null && Q ? Number.MAX_SAFE_INTEGER : sA || 0;
27536
- }, [sA, I]), fA = we(!1), bA = $(fA, 2), TA = bA[0], OA = bA[1], EA = "".concat(n, "-item"), gA = Math.max(L, H), SA = m === Lv, jA = i.length && SA, zA = m === Hv, XA = jA || typeof m == "number" && i.length > m, LA = xn(function() {
27536
+ }, [sA, I]), fA = we(!1), bA = $(fA, 2), TA = bA[0], UA = bA[1], EA = "".concat(n, "-item"), gA = Math.max(L, H), SA = m === Lv, jA = i.length && SA, zA = m === Hv, XA = jA || typeof m == "number" && i.length > m, LA = xn(function() {
27537
27537
  var HA = i;
27538
27538
  return jA ? I === null && Q ? HA = i : HA = i.slice(0, Math.min(i.length, S / u)) : typeof m == "number" && (HA = i.slice(0, m)), HA;
27539
27539
  }, [i, u, I, m, jA]), kA = xn(function() {
@@ -27545,7 +27545,7 @@ function p4(e, A) {
27545
27545
  return HA;
27546
27546
  }, [o]);
27547
27547
  function ee(HA, $A, MA) {
27548
- sA === HA && ($A === void 0 || $A === tA) || (CA(HA), MA || (OA(HA < i.length - 1), M == null || M(HA)), $A !== void 0 && hA($A));
27548
+ sA === HA && ($A === void 0 || $A === tA) || (CA(HA), MA || (UA(HA < i.length - 1), M == null || M(HA)), $A !== void 0 && hA($A));
27549
27549
  }
27550
27550
  function RA(HA, $A) {
27551
27551
  R($A.clientWidth);
@@ -27616,7 +27616,7 @@ function p4(e, A) {
27616
27616
  }, a(HA, $A));
27617
27617
  } : function(HA, $A) {
27618
27618
  var MA = _A(HA, $A);
27619
- return /* @__PURE__ */ c.createElement(ca, FA({}, $e, {
27619
+ return /* @__PURE__ */ c.createElement(ca, OA({}, $e, {
27620
27620
  order: $A,
27621
27621
  key: MA,
27622
27622
  item: HA,
@@ -27632,11 +27632,11 @@ function p4(e, A) {
27632
27632
  display: Fe
27633
27633
  }, Pe = C || h4, Re = f ? /* @__PURE__ */ c.createElement(Vl.Provider, {
27634
27634
  value: U(U({}, $e), tt)
27635
- }, f(kA)) : /* @__PURE__ */ c.createElement(ca, FA({}, $e, tt), typeof Pe == "function" ? Pe(kA) : Pe), me = /* @__PURE__ */ c.createElement(w, FA({
27635
+ }, f(kA)) : /* @__PURE__ */ c.createElement(ca, OA({}, $e, tt), typeof Pe == "function" ? Pe(kA) : Pe), me = /* @__PURE__ */ c.createElement(w, OA({
27636
27636
  className: oA(!zA && n, h),
27637
27637
  style: d,
27638
27638
  ref: A
27639
- }, g), LA.map(it), XA ? Re : null, q && /* @__PURE__ */ c.createElement(ca, FA({}, $e, {
27639
+ }, g), LA.map(it), XA ? Re : null, q && /* @__PURE__ */ c.createElement(ca, OA({}, $e, {
27640
27640
  responsive: SA,
27641
27641
  responsiveDisabled: !jA,
27642
27642
  order: IA,
@@ -27972,7 +27972,7 @@ var R4 = ["title", "attribute", "elementRef"], D4 = ["style", "className", "even
27972
27972
  key: "render",
27973
27973
  value: function() {
27974
27974
  var r = this.props, i = r.title, o = r.attribute, a = r.elementRef, s = Ie(r, R4), l = Cn(s, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
27975
- return ve(!o, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ c.createElement(ar.Item, FA({}, o, {
27975
+ return ve(!o, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ c.createElement(ar.Item, OA({}, o, {
27976
27976
  title: typeof i == "string" ? i : void 0
27977
27977
  }, l, {
27978
27978
  ref: a
@@ -28004,7 +28004,7 @@ var R4 = ["title", "attribute", "elementRef"], D4 = ["style", "className", "even
28004
28004
  v(r), m == null || m(aA);
28005
28005
  }, AA = {};
28006
28006
  e.role === "option" && (AA["aria-selected"] = G);
28007
- var z = /* @__PURE__ */ c.createElement(T4, FA({
28007
+ var z = /* @__PURE__ */ c.createElement(T4, OA({
28008
28008
  ref: R,
28009
28009
  elementRef: x,
28010
28010
  role: l === null ? "none" : l || "menuitem",
@@ -28035,14 +28035,14 @@ function O4(e, A) {
28035
28035
  return n.registerPath(t, r), function() {
28036
28036
  n.unregisterPath(t, r);
28037
28037
  };
28038
- }, [r]), n ? null : /* @__PURE__ */ c.createElement(F4, FA({}, e, {
28038
+ }, [r]), n ? null : /* @__PURE__ */ c.createElement(F4, OA({}, e, {
28039
28039
  ref: A
28040
28040
  }));
28041
28041
  }
28042
28042
  const ac = /* @__PURE__ */ c.forwardRef(O4);
28043
28043
  var U4 = ["className", "children"], G4 = function(A, t) {
28044
28044
  var n = A.className, r = A.children, i = Ie(A, U4), o = c.useContext(zn), a = o.prefixCls, s = o.mode, l = o.rtl;
28045
- return /* @__PURE__ */ c.createElement("ul", FA({
28045
+ return /* @__PURE__ */ c.createElement("ul", OA({
28046
28046
  className: oA(a, l && "".concat(a, "-rtl"), "".concat(a, "-sub"), "".concat(a, "-").concat(s === "inline" ? "inline" : "vertical"), n),
28047
28047
  role: "menu"
28048
28048
  }, i, {
@@ -28198,7 +28198,7 @@ function K4(e) {
28198
28198
  }, C ? null : /* @__PURE__ */ c.createElement(Qa, {
28199
28199
  mode: i,
28200
28200
  locked: !d.current
28201
- }, /* @__PURE__ */ c.createElement(bo, FA({
28201
+ }, /* @__PURE__ */ c.createElement(bo, OA({
28202
28202
  visible: q
28203
28203
  }, y, {
28204
28204
  forceRender: s,
@@ -28218,7 +28218,7 @@ var j4 = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
28218
28218
  process.env.NODE_ENV !== "production" && o && ve(!1, "SubMenu should not leave undefined `key`.");
28219
28219
  var iA = u ?? x, aA = V ?? T, lA = p.includes(i), tA = !R && lA, hA = X(D, i), J = AE(i, P, w, B), cA = J.active, sA = Ie(J, L4), CA = c.useState(!1), IA = $(CA, 2), fA = IA[0], bA = IA[1], TA = function(ce) {
28220
28220
  P || bA(ce);
28221
- }, OA = function(ce) {
28221
+ }, UA = function(ce) {
28222
28222
  TA(!0), f == null || f({
28223
28223
  key: i,
28224
28224
  domEvent: ce
@@ -28252,7 +28252,7 @@ var j4 = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
28252
28252
  }, /* @__PURE__ */ c.createElement("i", {
28253
28253
  className: "".concat(W, "-arrow")
28254
28254
  }));
28255
- }, [E, aA, e, tA, W]), Ve = /* @__PURE__ */ c.createElement("div", FA({
28255
+ }, [E, aA, e, tA, W]), Ve = /* @__PURE__ */ c.createElement("div", OA({
28256
28256
  role: "menuitem",
28257
28257
  style: SA,
28258
28258
  className: "".concat(W, "-title"),
@@ -28290,14 +28290,14 @@ var j4 = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
28290
28290
  onVisibleChange: XA
28291
28291
  }, Ve);
28292
28292
  }
28293
- var wA = /* @__PURE__ */ c.createElement(ar.Item, FA({
28293
+ var wA = /* @__PURE__ */ c.createElement(ar.Item, OA({
28294
28294
  ref: A,
28295
28295
  role: "none"
28296
28296
  }, M, {
28297
28297
  component: "li",
28298
28298
  style: t,
28299
28299
  className: oA(W, "".concat(W, "-").concat(E), n, O(O(O(O({}, "".concat(W, "-open"), tA), "".concat(W, "-active"), gA), "".concat(W, "-selected"), hA), "".concat(W, "-disabled"), P)),
28300
- onMouseEnter: OA,
28300
+ onMouseEnter: UA,
28301
28301
  onMouseLeave: EA
28302
28302
  }), Ve, !R && /* @__PURE__ */ c.createElement(K4, {
28303
28303
  id: kA,
@@ -28324,7 +28324,7 @@ var j4 = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
28324
28324
  };
28325
28325
  }, [r]);
28326
28326
  var a;
28327
- return o ? a = i : a = /* @__PURE__ */ c.createElement(H4, FA({
28327
+ return o ? a = i : a = /* @__PURE__ */ c.createElement(H4, OA({
28328
28328
  ref: A
28329
28329
  }, e), i), /* @__PURE__ */ c.createElement(Xv.Provider, {
28330
28330
  value: r
@@ -28343,7 +28343,7 @@ var J4 = ["className", "title", "eventKey", "children"], P4 = /* @__PURE__ */ c.
28343
28343
  var t = e.className, n = e.title;
28344
28344
  e.eventKey;
28345
28345
  var r = e.children, i = Ie(e, J4), o = c.useContext(zn), a = o.prefixCls, s = "".concat(a, "-item-group");
28346
- return /* @__PURE__ */ c.createElement("li", FA({
28346
+ return /* @__PURE__ */ c.createElement("li", OA({
28347
28347
  ref: A,
28348
28348
  role: "presentation"
28349
28349
  }, i, {
@@ -28361,7 +28361,7 @@ var J4 = ["className", "title", "eventKey", "children"], P4 = /* @__PURE__ */ c.
28361
28361
  }, r));
28362
28362
  }), sc = /* @__PURE__ */ c.forwardRef(function(e, A) {
28363
28363
  var t = e.eventKey, n = e.children, r = Fo(t), i = yg(n, r), o = oc();
28364
- return o ? i : /* @__PURE__ */ c.createElement(P4, FA({
28364
+ return o ? i : /* @__PURE__ */ c.createElement(P4, OA({
28365
28365
  ref: A
28366
28366
  }, Cn(e, ["warnKey"])), i);
28367
28367
  });
@@ -28372,17 +28372,17 @@ function md(e, A, t) {
28372
28372
  return (e || []).map(function(a, s) {
28373
28373
  if (a && ne(a) === "object") {
28374
28374
  var l = a, u = l.label, V = l.children, d = l.key, h = l.type, m = l.extra, C = Ie(l, W4), f = d ?? "tmp-".concat(s);
28375
- return V || h === "group" ? h === "group" ? /* @__PURE__ */ c.createElement(r, FA({
28375
+ return V || h === "group" ? h === "group" ? /* @__PURE__ */ c.createElement(r, OA({
28376
28376
  key: f
28377
28377
  }, C, {
28378
28378
  title: u
28379
- }), md(V, A, t)) : /* @__PURE__ */ c.createElement(i, FA({
28379
+ }), md(V, A, t)) : /* @__PURE__ */ c.createElement(i, OA({
28380
28380
  key: f
28381
28381
  }, C, {
28382
28382
  title: u
28383
- }), md(V, A, t)) : h === "divider" ? /* @__PURE__ */ c.createElement(o, FA({
28383
+ }), md(V, A, t)) : h === "divider" ? /* @__PURE__ */ c.createElement(o, OA({
28384
28384
  key: f
28385
- }, C)) : /* @__PURE__ */ c.createElement(n, FA({
28385
+ }, C)) : /* @__PURE__ */ c.createElement(n, OA({
28386
28386
  key: f
28387
28387
  }, C, {
28388
28388
  extra: m
@@ -28405,7 +28405,7 @@ function Rm(e, A, t, n, r) {
28405
28405
  return A && (i = md(A, o, r)), yg(i, t);
28406
28406
  }
28407
28407
  var z4 = ["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"], ri = [], X4 = /* @__PURE__ */ c.forwardRef(function(e, A) {
28408
- var t, n = e, r = n.prefixCls, i = r === void 0 ? "rc-menu" : r, o = n.rootClassName, a = n.style, s = n.className, l = n.tabIndex, u = l === void 0 ? 0 : l, V = n.items, d = n.children, h = n.direction, m = n.id, C = n.mode, f = C === void 0 ? "vertical" : C, q = n.inlineCollapsed, y = n.disabled, w = n.disabledOverflow, B = n.subMenuOpenDelay, M = B === void 0 ? 0.1 : B, g = n.subMenuCloseDelay, Q = g === void 0 ? 0.1 : g, v = n.forceSubMenuRender, E = n.defaultOpenKeys, p = n.openKeys, I = n.activeKey, R = n.defaultActiveFirst, S = n.selectable, D = S === void 0 ? !0 : S, x = n.multiple, T = x === void 0 ? !1 : x, F = n.defaultSelectedKeys, k = n.selectedKeys, Z = n.onSelect, L = n.onDeselect, N = n.inlineIndent, G = N === void 0 ? 24 : N, X = n.motion, H = n.defaultMotions, W = n.triggerSubMenuAction, P = W === void 0 ? "hover" : W, AA = n.builtinPlacements, z = n.itemIcon, iA = n.expandIcon, aA = n.overflowedIndicator, lA = aA === void 0 ? "..." : aA, tA = n.overflowedIndicatorPopupClassName, hA = n.getPopupContainer, J = n.onClick, cA = n.onOpenChange, sA = n.onKeyDown, CA = n.openAnimation, IA = n.openTransitionName, fA = n._internalRenderMenuItem, bA = n._internalRenderSubMenuItem, TA = n._internalComponents, OA = Ie(n, z4), EA = c.useMemo(function() {
28408
+ var t, n = e, r = n.prefixCls, i = r === void 0 ? "rc-menu" : r, o = n.rootClassName, a = n.style, s = n.className, l = n.tabIndex, u = l === void 0 ? 0 : l, V = n.items, d = n.children, h = n.direction, m = n.id, C = n.mode, f = C === void 0 ? "vertical" : C, q = n.inlineCollapsed, y = n.disabled, w = n.disabledOverflow, B = n.subMenuOpenDelay, M = B === void 0 ? 0.1 : B, g = n.subMenuCloseDelay, Q = g === void 0 ? 0.1 : g, v = n.forceSubMenuRender, E = n.defaultOpenKeys, p = n.openKeys, I = n.activeKey, R = n.defaultActiveFirst, S = n.selectable, D = S === void 0 ? !0 : S, x = n.multiple, T = x === void 0 ? !1 : x, F = n.defaultSelectedKeys, k = n.selectedKeys, Z = n.onSelect, L = n.onDeselect, N = n.inlineIndent, G = N === void 0 ? 24 : N, X = n.motion, H = n.defaultMotions, W = n.triggerSubMenuAction, P = W === void 0 ? "hover" : W, AA = n.builtinPlacements, z = n.itemIcon, iA = n.expandIcon, aA = n.overflowedIndicator, lA = aA === void 0 ? "..." : aA, tA = n.overflowedIndicatorPopupClassName, hA = n.getPopupContainer, J = n.onClick, cA = n.onOpenChange, sA = n.onKeyDown, CA = n.openAnimation, IA = n.openTransitionName, fA = n._internalRenderMenuItem, bA = n._internalRenderSubMenuItem, TA = n._internalComponents, UA = Ie(n, z4), EA = c.useMemo(function() {
28409
28409
  return [Rm(d, V, ri, TA, i), Rm(d, V, ri, {}, i)];
28410
28410
  }, [d, V, TA]), gA = $(EA, 2), SA = gA[0], jA = gA[1], zA = c.useState(!1), XA = $(zA, 2), LA = XA[0], kA = XA[1], _A = c.useRef(), Ve = Q4(m), ee = h === "rtl";
28411
28411
  process.env.NODE_ENV !== "production" && ve(!CA && !IA, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
@@ -28526,7 +28526,7 @@ var z4 = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
28526
28526
  }, YA)
28527
28527
  );
28528
28528
  })
28529
- ), Se = /* @__PURE__ */ c.createElement(ar, FA({
28529
+ ), Se = /* @__PURE__ */ c.createElement(ar, OA({
28530
28530
  id: m,
28531
28531
  ref: _A,
28532
28532
  prefixCls: "".concat(i, "-overflow"),
@@ -28558,7 +28558,7 @@ var z4 = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
28558
28558
  pA(pe);
28559
28559
  },
28560
28560
  onKeyDown: En
28561
- }, OA));
28561
+ }, UA));
28562
28562
  return /* @__PURE__ */ c.createElement(Cg.Provider, {
28563
28563
  value: $n
28564
28564
  }, /* @__PURE__ */ c.createElement(Jv.Provider, {
@@ -28603,14 +28603,14 @@ ja.SubMenu = Ka;
28603
28603
  ja.ItemGroup = sc;
28604
28604
  ja.Divider = wg;
28605
28605
  var _4 = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, $4 = function(A, t) {
28606
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
28606
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
28607
28607
  ref: t,
28608
28608
  icon: _4
28609
28609
  }));
28610
28610
  }, rE = /* @__PURE__ */ c.forwardRef($4);
28611
28611
  process.env.NODE_ENV !== "production" && (rE.displayName = "BarsOutlined");
28612
28612
  var A2 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, e2 = function(A, t) {
28613
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
28613
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
28614
28614
  ref: t,
28615
28615
  icon: A2
28616
28616
  }));
@@ -28961,7 +28961,7 @@ const Dm = {
28961
28961
  });
28962
28962
  process.env.NODE_ENV !== "production" && (l2.displayName = "Sider");
28963
28963
  var c2 = { 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" }, u2 = function(A, t) {
28964
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
28964
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
28965
28965
  ref: t,
28966
28966
  icon: c2
28967
28967
  }));
@@ -29107,7 +29107,7 @@ var ki = {
29107
29107
  });
29108
29108
  return /* @__PURE__ */ c.cloneElement(h, AA);
29109
29109
  };
29110
- return /* @__PURE__ */ c.createElement(ic, FA({
29110
+ return /* @__PURE__ */ c.createElement(ic, OA({
29111
29111
  popupClassName: oA(n, T == null ? void 0 : T.root),
29112
29112
  prefixCls: d,
29113
29113
  popup: G,
@@ -29252,9 +29252,9 @@ const E2 = /* @__PURE__ */ c.forwardRef((e, A) => {
29252
29252
  }, typeof lA == "function" ? lA() : lA), hA = F("tooltip", r), J = F(), cA = e["data-popover-inject"];
29253
29253
  let sA = P;
29254
29254
  !("open" in e) && !("visible" in e) && z && (sA = !1);
29255
- const CA = /* @__PURE__ */ c.isValidElement(l) && !PC(l) ? l : /* @__PURE__ */ c.createElement("span", null, l), IA = CA.props, fA = !IA.className || typeof IA.className == "string" ? oA(IA.className, i || `${hA}-open`) : IA.className, [bA, TA, OA] = jC(hA, !cA), EA = sE(hA, a), gA = EA.arrowStyle, SA = oA(p, {
29255
+ const CA = /* @__PURE__ */ c.isValidElement(l) && !PC(l) ? l : /* @__PURE__ */ c.createElement("span", null, l), IA = CA.props, fA = !IA.className || typeof IA.className == "string" ? oA(IA.className, i || `${hA}-open`) : IA.className, [bA, TA, UA] = jC(hA, !cA), EA = sE(hA, a), gA = EA.arrowStyle, SA = oA(p, {
29256
29256
  [`${hA}-rtl`]: k === "rtl"
29257
- }, EA.className, E, TA, OA, Z, N.root, R == null ? void 0 : R.root), jA = oA(N.body, R == null ? void 0 : R.body), [zA, XA] = Hl("Tooltip", S.zIndex), LA = /* @__PURE__ */ c.createElement(p2, Object.assign({}, S, {
29257
+ }, EA.className, E, TA, UA, Z, N.root, R == null ? void 0 : R.root), jA = oA(N.body, R == null ? void 0 : R.body), [zA, XA] = Hl("Tooltip", S.zIndex), LA = /* @__PURE__ */ c.createElement(p2, Object.assign({}, S, {
29258
29258
  zIndex: zA,
29259
29259
  showArrow: D,
29260
29260
  placement: M,
@@ -30794,21 +30794,21 @@ const dE = Ha;
30794
30794
  dE.Button = VE;
30795
30795
  const N2 = /* @__PURE__ */ nA.createContext({});
30796
30796
  var Z2 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, name: "check-circle", theme: "filled" }, K2 = function(A, t) {
30797
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
30797
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
30798
30798
  ref: t,
30799
30799
  icon: Z2
30800
30800
  }));
30801
30801
  }, gE = /* @__PURE__ */ c.forwardRef(K2);
30802
30802
  process.env.NODE_ENV !== "production" && (gE.displayName = "CheckCircleFilled");
30803
30803
  var j2 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "exclamation-circle", theme: "filled" }, L2 = function(A, t) {
30804
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
30804
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
30805
30805
  ref: t,
30806
30806
  icon: j2
30807
30807
  }));
30808
30808
  }, hE = /* @__PURE__ */ c.forwardRef(L2);
30809
30809
  process.env.NODE_ENV !== "production" && (hE.displayName = "ExclamationCircleFilled");
30810
30810
  var H2 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" }, J2 = function(A, t) {
30811
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
30811
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
30812
30812
  ref: t,
30813
30813
  icon: H2
30814
30814
  }));
@@ -30847,7 +30847,7 @@ var fE = /* @__PURE__ */ c.forwardRef(function(e, A) {
30847
30847
  closeIcon: m
30848
30848
  } : {};
30849
30849
  }, [d, m]), N = vi(L, !0), G = 100 - (!p || p < 0 ? 0 : p > 100 ? 100 : p), X = "".concat(t, "-notice");
30850
- return /* @__PURE__ */ c.createElement("div", FA({}, C, {
30850
+ return /* @__PURE__ */ c.createElement("div", OA({}, C, {
30851
30851
  ref: A,
30852
30852
  className: oA(X, r, O({}, "".concat(X, "-closable"), d)),
30853
30853
  style: n,
@@ -30862,7 +30862,7 @@ var fE = /* @__PURE__ */ c.forwardRef(function(e, A) {
30862
30862
  onClick: f
30863
30863
  }), /* @__PURE__ */ c.createElement("div", {
30864
30864
  className: "".concat(X, "-content")
30865
- }, V), d && /* @__PURE__ */ c.createElement("a", FA({
30865
+ }, V), d && /* @__PURE__ */ c.createElement("a", OA({
30866
30866
  tabIndex: 0,
30867
30867
  className: "".concat(X, "-close"),
30868
30868
  onKeyDown: Z,
@@ -30916,7 +30916,7 @@ var fE = /* @__PURE__ */ c.forwardRef(function(e, A) {
30916
30916
  var F;
30917
30917
  q(h.current[(F = g[g.length - 1]) === null || F === void 0 ? void 0 : F.key]);
30918
30918
  }
30919
- }, [g, E]), /* @__PURE__ */ nA.createElement(Aw, FA({
30919
+ }, [g, E]), /* @__PURE__ */ nA.createElement(Aw, OA({
30920
30920
  key: n,
30921
30921
  className: oA(r, "".concat(r, "-").concat(n), d == null ? void 0 : d.list, i, O(O({}, "".concat(r, "-stack"), !!E), "".concat(r, "-stack-expanded"), D)),
30922
30922
  style: o,
@@ -30939,8 +30939,8 @@ var fE = /* @__PURE__ */ c.forwardRef(function(e, A) {
30939
30939
  var TA;
30940
30940
  fA += ((TA = h.current[g[g.length - 1 - bA].key]) === null || TA === void 0 ? void 0 : TA.offsetHeight) + S;
30941
30941
  }
30942
- var OA = (D ? fA : J * I) * (n.startsWith("top") ? 1 : -1), EA = !D && f !== null && f !== void 0 && f.offsetWidth && (CA = h.current[W]) !== null && CA !== void 0 && CA.offsetWidth ? ((f == null ? void 0 : f.offsetWidth) - I * 2 * (J < 3 ? J : 3)) / ((IA = h.current[W]) === null || IA === void 0 ? void 0 : IA.offsetWidth) : 1;
30943
- hA.transform = "translate3d(".concat(cA, ", ").concat(OA, "px, 0) scaleX(").concat(EA, ")");
30942
+ var UA = (D ? fA : J * I) * (n.startsWith("top") ? 1 : -1), EA = !D && f !== null && f !== void 0 && f.offsetWidth && (CA = h.current[W]) !== null && CA !== void 0 && CA.offsetWidth ? ((f == null ? void 0 : f.offsetWidth) - I * 2 * (J < 3 ? J : 3)) / ((IA = h.current[W]) === null || IA === void 0 ? void 0 : IA.offsetWidth) : 1;
30943
+ hA.transform = "translate3d(".concat(cA, ", ").concat(UA, "px, 0) scaleX(").concat(EA, ")");
30944
30944
  } else
30945
30945
  hA.transform = "translate3d(".concat(cA, ", 0, 0)");
30946
30946
  }
@@ -30960,7 +30960,7 @@ var fE = /* @__PURE__ */ c.forwardRef(function(e, A) {
30960
30960
  });
30961
30961
  });
30962
30962
  }
30963
- }, /* @__PURE__ */ nA.createElement(fE, FA({}, lA, {
30963
+ }, /* @__PURE__ */ nA.createElement(fE, OA({}, lA, {
30964
30964
  ref: function(SA) {
30965
30965
  tA > -1 ? h.current[W] = SA : delete h.current[W];
30966
30966
  },
@@ -31178,7 +31178,7 @@ const t6 = {
31178
31178
  })));
31179
31179
  };
31180
31180
  var r6 = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, i6 = function(A, t) {
31181
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
31181
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
31182
31182
  ref: t,
31183
31183
  icon: r6
31184
31184
  }));
@@ -31880,10 +31880,10 @@ var Jm = function(A) {
31880
31880
  var TA = String(bA);
31881
31881
  TA.length > w && (bA = "".concat(TA.slice(0, w), "..."));
31882
31882
  }
31883
- var OA = function(gA) {
31883
+ var UA = function(gA) {
31884
31884
  gA && gA.stopPropagation(), v(cA);
31885
31885
  };
31886
- return typeof g == "function" ? iA(IA, bA, sA, fA, OA) : z(cA, bA, sA, fA, OA);
31886
+ return typeof g == "function" ? iA(IA, bA, sA, fA, UA) : z(cA, bA, sA, fA, UA);
31887
31887
  }, lA = function(cA) {
31888
31888
  if (!r.length)
31889
31889
  return null;
@@ -32042,7 +32042,7 @@ var Jm = function(A) {
32042
32042
  onInputCompositionStart: I,
32043
32043
  onInputCompositionEnd: R,
32044
32044
  onInputBlur: q
32045
- }, k = a === "multiple" || a === "tags" ? /* @__PURE__ */ c.createElement(N6, FA({}, A, F)) : /* @__PURE__ */ c.createElement(Z6, FA({}, A, F));
32045
+ }, k = a === "multiple" || a === "tags" ? /* @__PURE__ */ c.createElement(N6, OA({}, A, F)) : /* @__PURE__ */ c.createElement(Z6, OA({}, A, F));
32046
32046
  return /* @__PURE__ */ c.createElement("div", {
32047
32047
  ref: y,
32048
32048
  className: "".concat(i, "-selector"),
@@ -32114,7 +32114,7 @@ var j6 = ["prefixCls", "disabled", "visible", "children", "popupElement", "anima
32114
32114
  return (F = x.current) === null || F === void 0 ? void 0 : F.popupElement;
32115
32115
  }
32116
32116
  };
32117
- }), /* @__PURE__ */ c.createElement(ic, FA({}, Q, {
32117
+ }), /* @__PURE__ */ c.createElement(ic, OA({}, Q, {
32118
32118
  showAction: M ? ["click"] : [],
32119
32119
  hideAction: M ? ["click"] : [],
32120
32120
  popupPlacement: h || (d === "rtl" ? "bottomRight" : "bottomLeft"),
@@ -32228,7 +32228,7 @@ var z6 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
32228
32228
  }), l == null || l.forEach(function(Se) {
32229
32229
  delete TA[Se];
32230
32230
  });
32231
- var OA = c.useState(!1), EA = $(OA, 2), gA = EA[0], SA = EA[1];
32231
+ var UA = c.useState(!1), EA = $(UA, 2), gA = EA[0], SA = EA[1];
32232
32232
  c.useEffect(function() {
32233
32233
  SA(Gv());
32234
32234
  }, []);
@@ -32432,7 +32432,7 @@ var z6 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
32432
32432
  onPopupMouseEnter: _n
32433
32433
  }, Fe ? /* @__PURE__ */ c.cloneElement(Fe, {
32434
32434
  ref: et
32435
- }) : /* @__PURE__ */ c.createElement(SE, FA({}, e, {
32435
+ }) : /* @__PURE__ */ c.createElement(SE, OA({}, e, {
32436
32436
  domRef: zA,
32437
32437
  prefixCls: r,
32438
32438
  inputElement: Ce,
@@ -32455,7 +32455,7 @@ var z6 = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
32455
32455
  tokenWithEnter: vA,
32456
32456
  onInputBlur: Me
32457
32457
  }))), ur;
32458
- return Fe ? ur = $n : ur = /* @__PURE__ */ c.createElement("div", FA({
32458
+ return Fe ? ur = $n : ur = /* @__PURE__ */ c.createElement("div", OA({
32459
32459
  className: En
32460
32460
  }, TA, {
32461
32461
  ref: jA,
@@ -32498,7 +32498,7 @@ var RE = /* @__PURE__ */ c.forwardRef(function(e, A) {
32498
32498
  var C = m.offsetHeight;
32499
32499
  C && a && a();
32500
32500
  }
32501
- }, /* @__PURE__ */ c.createElement("div", FA({
32501
+ }, /* @__PURE__ */ c.createElement("div", OA({
32502
32502
  style: d,
32503
32503
  className: oA(O({}, "".concat(o, "-holder-inner"), o)),
32504
32504
  ref: A
@@ -32906,8 +32906,8 @@ var Id = /* @__PURE__ */ c.forwardRef(function(e, A) {
32906
32906
  He.cancel(lA);
32907
32907
  var bA = R.current.getBoundingClientRect(), TA = V / (l ? bA.width : bA.height);
32908
32908
  if (CA) {
32909
- var OA = (Ed(cA, l) - IA) * TA, EA = fA;
32910
- !I && l ? EA -= OA : EA += OA;
32909
+ var UA = (Ed(cA, l) - IA) * TA, EA = fA;
32910
+ !I && l ? EA -= UA : EA += UA;
32911
32911
  var gA = P.current, SA = AA.current, jA = SA ? EA / SA : 0, zA = Math.ceil(jA * gA);
32912
32912
  zA = Math.max(zA, 0), zA = Math.min(zA, gA), lA = He(function() {
32913
32913
  s(zA, l);
@@ -33000,7 +33000,7 @@ function dF(e, A) {
33000
33000
  }, TA = {
33001
33001
  getKey: I
33002
33002
  };
33003
- function OA(qA) {
33003
+ function UA(qA) {
33004
33004
  aA(function(QA) {
33005
33005
  var ue;
33006
33006
  typeof qA == "function" ? ue = qA(QA) : ue = qA;
@@ -33049,7 +33049,7 @@ function dF(e, A) {
33049
33049
  var Ge = I(de);
33050
33050
  if (Ge === QA) {
33051
33051
  var Yt = T.get(QA), Vt = Yt - o;
33052
- OA(function(_t) {
33052
+ UA(function(_t) {
33053
33053
  return _t + Vt;
33054
33054
  });
33055
33055
  }
@@ -33090,11 +33090,11 @@ function dF(e, A) {
33090
33090
  var ue = qA;
33091
33091
  QA ? (du(function() {
33092
33092
  J(ue);
33093
- }), DA()) : OA(ue);
33093
+ }), DA()) : UA(ue);
33094
33094
  }
33095
33095
  function NA(qA) {
33096
33096
  var QA = qA.currentTarget.scrollTop;
33097
- QA !== iA && OA(QA), y == null || y(qA), DA();
33097
+ QA !== iA && UA(QA), y == null || y(qA), DA();
33098
33098
  }
33099
33099
  var KA = function(QA) {
33100
33100
  var ue = QA, de = C ? C - wA.width : 0;
@@ -33105,7 +33105,7 @@ function dF(e, A) {
33105
33105
  var de = ue + (N ? -qA : qA);
33106
33106
  return KA(de);
33107
33107
  });
33108
- }), DA()) : OA(function(ue) {
33108
+ }), DA()) : UA(function(ue) {
33109
33109
  var de = ue + qA;
33110
33110
  return de;
33111
33111
  });
@@ -33119,7 +33119,7 @@ function dF(e, A) {
33119
33119
  deltaY: qA ? 0 : QA
33120
33120
  }), !0) : !1;
33121
33121
  }), aF(L, H, function(qA) {
33122
- OA(function(QA) {
33122
+ UA(function(QA) {
33123
33123
  return QA + qA;
33124
33124
  });
33125
33125
  }), rt(function() {
@@ -33150,7 +33150,7 @@ function dF(e, A) {
33150
33150
  (QA = Ce.current) === null || QA === void 0 || QA.delayHidden(), (ue = Fe.current) === null || ue === void 0 || ue.delayHidden();
33151
33151
  }, re = sF(H, X, T, o, I, function() {
33152
33152
  return x(!0);
33153
- }, OA, ZA);
33153
+ }, UA, ZA);
33154
33154
  c.useImperativeHandle(A, function() {
33155
33155
  return {
33156
33156
  nativeElement: P.current,
@@ -33179,7 +33179,7 @@ function dF(e, A) {
33179
33179
  }), ke = $6(X, kA, _A, C, hA, D, V, TA), he = null;
33180
33180
  i && (he = U(O({}, s ? "height" : "maxHeight", i), VF), k && (he.overflowY = "hidden", C && (he.overflowX = "hidden"), CA && (he.pointerEvents = "none")));
33181
33181
  var Me = {};
33182
- return N && (Me.dir = "rtl"), /* @__PURE__ */ c.createElement("div", FA({
33182
+ return N && (Me.dir = "rtl"), /* @__PURE__ */ c.createElement("div", OA({
33183
33183
  ref: P,
33184
33184
  style: U(U({}, l), {}, {
33185
33185
  position: "relative"
@@ -33369,7 +33369,7 @@ var pF = function(A, t) {
33369
33369
  if (!hA)
33370
33370
  return null;
33371
33371
  var J = hA.data || {}, cA = J.value, sA = hA.group, CA = vi(J, !0), IA = AA(hA);
33372
- return hA ? /* @__PURE__ */ c.createElement("div", FA({
33372
+ return hA ? /* @__PURE__ */ c.createElement("div", OA({
33373
33373
  "aria-label": typeof IA == "string" && !sA ? IA : null
33374
33374
  }, CA, {
33375
33375
  key: tA
@@ -33380,7 +33380,7 @@ var pF = function(A, t) {
33380
33380
  role: "listbox",
33381
33381
  id: "".concat(i, "_list")
33382
33382
  };
33383
- return /* @__PURE__ */ c.createElement(c.Fragment, null, g && /* @__PURE__ */ c.createElement("div", FA({}, aA, {
33383
+ return /* @__PURE__ */ c.createElement(c.Fragment, null, g && /* @__PURE__ */ c.createElement("div", OA({}, aA, {
33384
33384
  style: {
33385
33385
  height: 0,
33386
33386
  width: 0,
@@ -33407,10 +33407,10 @@ var pF = function(A, t) {
33407
33407
  title: bA
33408
33408
  }, sA !== void 0 ? sA : IA);
33409
33409
  }
33410
- var TA = cA.disabled, OA = cA.title;
33410
+ var TA = cA.disabled, UA = cA.title;
33411
33411
  cA.children;
33412
33412
  var EA = cA.style, gA = cA.className, SA = Ie(cA, hF), jA = Cn(SA, P), zA = F(CA), XA = TA || !zA && D, LA = "".concat(I, "-option"), kA = oA(I, LA, gA, O(O(O(O({}, "".concat(LA, "-grouped"), J), "".concat(LA, "-active"), N === tA && !XA), "".concat(LA, "-disabled"), XA), "".concat(LA, "-selected"), zA)), _A = AA(lA), Ve = !w || typeof w == "function" || zA, ee = typeof _A == "number" ? _A : _A || CA, RA = eq(ee) ? ee.toString() : void 0;
33413
- return OA !== void 0 && (RA = OA), /* @__PURE__ */ c.createElement("div", FA({}, vi(jA), g ? {} : z(lA, tA), {
33413
+ return UA !== void 0 && (RA = UA), /* @__PURE__ */ c.createElement("div", OA({}, vi(jA), g ? {} : z(lA, tA), {
33414
33414
  "aria-selected": H(CA),
33415
33415
  className: kA,
33416
33416
  title: RA,
@@ -33657,7 +33657,7 @@ var FE = /* @__PURE__ */ c.forwardRef(function(e, A) {
33657
33657
  }), IA = $(CA, 2), fA = IA[0], bA = IA[1], TA = c.useMemo(function() {
33658
33658
  var DA, vA = H && fA === null ? [] : fA, NA = sA(vA);
33659
33659
  return n === "combobox" && G6((DA = NA[0]) === null || DA === void 0 ? void 0 : DA.value) ? [] : NA;
33660
- }, [fA, sA, n, H]), OA = fF(TA, hA), EA = $(OA, 2), gA = EA[0], SA = EA[1], jA = c.useMemo(function() {
33660
+ }, [fA, sA, n, H]), UA = fF(TA, hA), EA = $(UA, 2), gA = EA[0], SA = EA[1], jA = c.useMemo(function() {
33661
33661
  if (!n && gA.length === 1) {
33662
33662
  var DA = gA[0];
33663
33663
  if (DA.value === null && (DA.label === null || DA.label === void 0))
@@ -33811,7 +33811,7 @@ var FE = /* @__PURE__ */ c.forwardRef(function(e, A) {
33811
33811
  }, [N, tA, RA, Re, Pe, HA, E, zA, AA, p, f, I, S, x, W, g]);
33812
33812
  return process.env.NODE_ENV !== "production" && (MF(e), SF(cA, AA)), /* @__PURE__ */ c.createElement(Tg.Provider, {
33813
33813
  value: qe
33814
- }, /* @__PURE__ */ c.createElement(bE, FA({}, G, {
33814
+ }, /* @__PURE__ */ c.createElement(bE, OA({}, G, {
33815
33815
  // >>> MISC
33816
33816
  id: X,
33817
33817
  prefixCls: i,
@@ -34050,14 +34050,14 @@ function TF(e, A) {
34050
34050
  return e || xF(A);
34051
34051
  }
34052
34052
  var FF = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, name: "check", theme: "outlined" }, OF = function(A, t) {
34053
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
34053
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
34054
34054
  ref: t,
34055
34055
  icon: FF
34056
34056
  }));
34057
34057
  }, YE = /* @__PURE__ */ c.forwardRef(OF);
34058
34058
  process.env.NODE_ENV !== "production" && (YE.displayName = "CheckOutlined");
34059
34059
  var UF = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" }, GF = function(A, t) {
34060
- return /* @__PURE__ */ c.createElement(Ft, FA({}, A, {
34060
+ return /* @__PURE__ */ c.createElement(Ft, OA({}, A, {
34061
34061
  ref: t,
34062
34062
  icon: UF
34063
34063
  }));
@@ -34171,7 +34171,7 @@ const ZE = "SECRET_COMBOBOX_MODE_DO_NOT_USE", KE = (e, A) => {
34171
34171
  status: fA,
34172
34172
  hasFeedback: bA,
34173
34173
  isFormItemInput: TA,
34174
- feedbackIcon: OA
34174
+ feedbackIcon: UA
34175
34175
  } = c.useContext(Wn), EA = Xl(fA, f);
34176
34176
  let gA;
34177
34177
  C !== void 0 ? gA = C : cA === "combobox" ? gA = null : gA = (T == null ? void 0 : T("Select")) || /* @__PURE__ */ c.createElement(DF, {
@@ -34185,7 +34185,7 @@ const ZE = "SECRET_COMBOBOX_MODE_DO_NOT_USE", KE = (e, A) => {
34185
34185
  } = kF(Object.assign(Object.assign({}, S), {
34186
34186
  multiple: sA,
34187
34187
  hasFeedback: bA,
34188
- feedbackIcon: OA,
34188
+ feedbackIcon: UA,
34189
34189
  showSuffixIcon: CA,
34190
34190
  prefixCls: H,
34191
34191
  componentName: "Select"
@@ -34717,7 +34717,7 @@ const dO = {
34717
34717
  空闲: 1,
34718
34718
  离线: 0,
34719
34719
  未注册: 4
34720
- }, pO = cq(() => import("./ConsultModel-CRV3XXIG.mjs")), fO = cq(() => import("./TransferModel-BOnZLhRO.mjs")), uu = ut.div`
34720
+ }, pO = cq(() => import("./ConsultModel-BsYElaE_.mjs")), fO = cq(() => import("./TransferModel-unf-c863.mjs")), uu = ut.div`
34721
34721
  width: 25px;
34722
34722
  height: 25px;
34723
34723
  background: ${({
@@ -34750,7 +34750,7 @@ const dO = {
34750
34750
  idle: f,
34751
34751
  unavailable: q,
34752
34752
  selectOutNumberColor: y
34753
- } = A || {}, w = BA(), B = BA(), [M, g] = we(new Audio(tO)), [Q, v] = we(new Audio(nO)), [E, p] = we(), [I, R] = we(), [S, D] = we(!1), [x, T] = we((/* @__PURE__ */ new Date()).getTime()), [F, k] = we(), [Z, L] = we(), [N, G] = we([]), [X, H] = we([]), [W, P] = we(""), [AA, z] = we(!1), [iA, aA] = we([]), [lA, tA] = we(""), [hA, J] = we(""), [cA, sA] = we(!1), [CA, IA] = we(!1), [fA, bA] = we(), [TA, OA] = we((/* @__PURE__ */ new Date()).getTime()), [EA, gA] = we(!0), SA = (b) => {
34753
+ } = A || {}, w = BA(), B = BA(), [M, g] = we(new Audio(tO)), [Q, v] = we(new Audio(nO)), [E, p] = we(), [I, R] = we(), [S, D] = we(!1), [x, T] = we((/* @__PURE__ */ new Date()).getTime()), [F, k] = we(), [Z, L] = we(), [N, G] = we([]), [X, H] = we([]), [W, P] = we(""), [AA, z] = we(!1), [iA, aA] = we([]), [lA, tA] = we(""), [hA, J] = we(""), [cA, sA] = we(!1), [CA, IA] = we(!1), [fA, bA] = we(), [TA, UA] = we((/* @__PURE__ */ new Date()).getTime()), [EA, gA] = we(!0), SA = (b) => {
34754
34754
  switch (b) {
34755
34755
  case Ee.IDLE:
34756
34756
  return f || "#1D92E9";
@@ -34769,7 +34769,7 @@ const dO = {
34769
34769
  appKey: o,
34770
34770
  appSecret: a,
34771
34771
  url: s
34772
- }), jA(), w.current.on(UA.PHONE_BAR_OPERATION, (b) => {
34772
+ }), jA(), w.current.on(FA.PHONE_BAR_OPERATION, (b) => {
34773
34773
  G(b);
34774
34774
  }), d ? await w.current.agent_api.checkAgentLogin({
34775
34775
  data: {
@@ -34812,7 +34812,7 @@ const dO = {
34812
34812
  }), []);
34813
34813
  const jA = () => {
34814
34814
  var b, K;
34815
- (b = w.current) == null || b.on(UA.EVENT_ALL, ({
34815
+ (b = w.current) == null || b.on(FA.EVENT_ALL, ({
34816
34816
  event: j,
34817
34817
  data: pA
34818
34818
  }) => {
@@ -34915,11 +34915,11 @@ const dO = {
34915
34915
  L(j.state_name), T((/* @__PURE__ */ new Date()).getTime()), l == null || l(eA.AGENT_STATE, j);
34916
34916
  }).on(eA.CALL_PROGRESS, (j) => {
34917
34917
  P(j);
34918
- }).on(UA.WEBSITE_DELAY, (j) => {
34918
+ }).on(FA.WEBSITE_DELAY, (j) => {
34919
34919
  p(j);
34920
34920
  }).on(eA.CUSTOMER_INFO, (j) => {
34921
34921
  console.log(j), R(j), j && gA(!0);
34922
- }).on(UA.AGENT_INIT_STATUS, (j) => {
34922
+ }).on(FA.AGENT_INIT_STATUS, (j) => {
34923
34923
  if (j) {
34924
34924
  const {
34925
34925
  default_device: pA,
@@ -34929,20 +34929,20 @@ const dO = {
34929
34929
  } = w.current.getAgentData();
34930
34930
  z(re === 1), re === 1 && aA((PA || "").split("#")), k(pA), L(ZA === 1 ? "空闲" : "忙碌"), Ve();
34931
34931
  }
34932
- }).on(UA.SELECT_EXTERNAL_NUMBER, (j) => {
34932
+ }).on(FA.SELECT_EXTERNAL_NUMBER, (j) => {
34933
34933
  tA(j);
34934
- }).on(UA.FAIL_NOTIFICATION, (j) => {
34934
+ }).on(FA.FAIL_NOTIFICATION, (j) => {
34935
34935
  De.error(j);
34936
- }).on(UA.KICK_OFF, () => {
34937
- l ? l == null || l(UA.KICK_OFF) : De.warning("您的座席账号已在别处登录,请重新登录。如非您本人操作,请及时修改密码。"), L("");
34938
- }).on(UA.DESTROY, () => {
34939
- l == null || l(UA.DESTROY), De.success("已离线");
34940
- }).on(UA.NETWORK_OFFLINE, () => {
34936
+ }).on(FA.KICK_OFF, () => {
34937
+ l ? l == null || l(FA.KICK_OFF) : De.warning("您的座席账号已在别处登录,请重新登录。如非您本人操作,请及时修改密码。"), L("");
34938
+ }).on(FA.DESTROY, () => {
34939
+ l == null || l(FA.DESTROY), De.success("已离线");
34940
+ }).on(FA.NETWORK_OFFLINE, () => {
34941
34941
  De.warning("网络已断开,请检查网络设置。");
34942
- }).on(UA.NETWORK_ONLINE, () => {
34942
+ }).on(FA.NETWORK_ONLINE, () => {
34943
34943
  De.success("网络已恢复");
34944
- }).on(UA.SIGN_OUT, () => {
34945
- l == null || l(UA.SIGN_OUT), De.success("已被签出");
34944
+ }).on(FA.SIGN_OUT, () => {
34945
+ l == null || l(FA.SIGN_OUT), De.success("已被签出");
34946
34946
  }).on(eA.LISTEN_CALL_FAILED, () => {
34947
34947
  l == null || l(eA.LISTEN_CALL_FAILED), De.error("监听失败");
34948
34948
  }).on(eA.EAR_SPEECH_SUCCESS, ({
@@ -34977,8 +34977,8 @@ const dO = {
34977
34977
  monitored_agent_no: j,
34978
34978
  monitor_agent_no: pA
34979
34979
  }), De.success(`${pA}强插`);
34980
- }).on(UA.SIGN_IN_SWITCH_DEVICE, (j) => {
34981
- l == null || l(UA.SIGN_IN_SWITCH_DEVICE), De.success(`已被切换${j.answer_device === 2 ? "手机模式" : "SIP 话机"}设备`);
34980
+ }).on(FA.SIGN_IN_SWITCH_DEVICE, (j) => {
34981
+ l == null || l(FA.SIGN_IN_SWITCH_DEVICE), De.success(`已被切换${j.answer_device === 2 ? "手机模式" : "SIP 话机"}设备`);
34982
34982
  });
34983
34983
  };
34984
34984
  Je(() => {
@@ -35243,7 +35243,7 @@ const dO = {
35243
35243
  rootClassName: "call-number-popover",
35244
35244
  destroyTooltipOnHide: !0,
35245
35245
  onOpenChange: (K) => {
35246
- OA((/* @__PURE__ */ new Date()).getTime());
35246
+ UA((/* @__PURE__ */ new Date()).getTime());
35247
35247
  },
35248
35248
  content: DA,
35249
35249
  children: /* @__PURE__ */ uA.jsx("span", {
@@ -35888,7 +35888,7 @@ export {
35888
35888
  Ei as s,
35889
35889
  ne as t,
35890
35890
  mA as u,
35891
- FA as v,
35891
+ OA as v,
35892
35892
  $ as w,
35893
35893
  bo as x,
35894
35894
  fi as y,