ysyt-react-agent-lib 1.0.88 → 1.0.89
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.
- package/dist/{ConsultModel-3W1RI1xT.mjs → ConsultModel-8-KmYDUQ.mjs} +2 -2
- package/dist/{ConsultModel-BhmuI0j0.js → ConsultModel-CJCDlJ-f.js} +1 -1
- package/dist/{TransferModel-DGdQYVAV.mjs → TransferModel-BB6ZVCYO.mjs} +2 -2
- package/dist/{TransferModel-DirB7WoV.js → TransferModel-DXnQZmwO.js} +1 -1
- package/dist/{index-S0yVgTr6.js → index-Bco8SsL_.js} +1 -1
- package/dist/{index-BCxRrlJy.mjs → index-C8zDe_kr.mjs} +1 -1
- package/dist/{index-CH-jrwvQ.mjs → index-WXmJIMGe.mjs} +127 -127
- package/dist/{index-B9ZeMvtO.js → index-l5UuDXsv.js} +10 -10
- package/dist/ysyt-react-agent-lib.cjs.js +1 -1
- package/dist/ysyt-react-agent-lib.es.js +1 -1
- package/package.json +2 -2
|
@@ -4452,9 +4452,9 @@ const LM = (e) => {
|
|
|
4452
4452
|
cssVar: GA
|
|
4453
4453
|
} = EA, LA = YM(EA, ["algorithm", "token", "components", "cssVar"]), ae = D && (!Array.isArray(D) || D.length > 0) ? fu(D) : Rm, PA = {};
|
|
4454
4454
|
Object.entries(fA || {}).forEach((ke) => {
|
|
4455
|
-
let [
|
|
4455
|
+
let [he, Me] = ke;
|
|
4456
4456
|
const CA = Object.assign({}, Me);
|
|
4457
|
-
"algorithm" in CA && (CA.algorithm === !0 ? CA.theme = ae : (Array.isArray(CA.algorithm) || typeof CA.algorithm == "function") && (CA.theme = fu(CA.algorithm)), delete CA.algorithm), PA[
|
|
4457
|
+
"algorithm" in CA && (CA.algorithm === !0 ? CA.theme = ae : (Array.isArray(CA.algorithm) || typeof CA.algorithm == "function") && (CA.theme = fu(CA.algorithm)), delete CA.algorithm), PA[he] = CA;
|
|
4458
4458
|
});
|
|
4459
4459
|
const re = Object.assign(Object.assign({}, qa), sA);
|
|
4460
4460
|
return Object.assign(Object.assign({}, LA), {
|
|
@@ -4748,18 +4748,18 @@ function PM() {
|
|
|
4748
4748
|
if (Ve && GA && typeof Ve.stack == "string") {
|
|
4749
4749
|
for (var re = Ve.stack.split(`
|
|
4750
4750
|
`), ke = GA.stack.split(`
|
|
4751
|
-
`),
|
|
4751
|
+
`), he = re.length - 1, Me = ke.length - 1; he >= 1 && Me >= 0 && re[he] !== ke[Me]; )
|
|
4752
4752
|
Me--;
|
|
4753
|
-
for (;
|
|
4754
|
-
if (re[
|
|
4755
|
-
if (
|
|
4753
|
+
for (; he >= 1 && Me >= 0; he--, Me--)
|
|
4754
|
+
if (re[he] !== ke[Me]) {
|
|
4755
|
+
if (he !== 1 || Me !== 1)
|
|
4756
4756
|
do
|
|
4757
|
-
if (
|
|
4757
|
+
if (he--, Me--, Me < 0 || re[he] !== ke[Me]) {
|
|
4758
4758
|
var CA = `
|
|
4759
|
-
` + re[
|
|
4759
|
+
` + re[he].replace(" at new ", " at ");
|
|
4760
4760
|
return D.displayName && CA.includes("<anonymous>") && (CA = CA.replace("<anonymous>", D.displayName)), typeof D == "function" && rA.set(D, CA), CA;
|
|
4761
4761
|
}
|
|
4762
|
-
while (
|
|
4762
|
+
while (he >= 1 && Me >= 0);
|
|
4763
4763
|
break;
|
|
4764
4764
|
}
|
|
4765
4765
|
}
|
|
@@ -4825,8 +4825,8 @@ function PM() {
|
|
|
4825
4825
|
throw ke.name = "Invariant Violation", ke;
|
|
4826
4826
|
}
|
|
4827
4827
|
re = D[PA](sA, PA, GA, fA, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
4828
|
-
} catch (
|
|
4829
|
-
re =
|
|
4828
|
+
} catch (he) {
|
|
4829
|
+
re = he;
|
|
4830
4830
|
}
|
|
4831
4831
|
re && !(re instanceof Error) && (qA(LA), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", GA || "React class", fA, PA, typeof re), qA(null)), re instanceof Error && !(re.message in IA) && (IA[re.message] = !0, qA(LA), y("Failed %s type: %s", fA, re.message), qA(null));
|
|
4832
4832
|
}
|
|
@@ -4939,9 +4939,9 @@ function PM() {
|
|
|
4939
4939
|
for (ae in sA)
|
|
4940
4940
|
iA.call(sA, ae) && !WA.hasOwnProperty(ae) && (PA[ae] = sA[ae]);
|
|
4941
4941
|
if (D && D.defaultProps) {
|
|
4942
|
-
var
|
|
4943
|
-
for (ae in
|
|
4944
|
-
PA[ae] === void 0 && (PA[ae] =
|
|
4942
|
+
var he = D.defaultProps;
|
|
4943
|
+
for (ae in he)
|
|
4944
|
+
PA[ae] === void 0 && (PA[ae] = he[ae]);
|
|
4945
4945
|
}
|
|
4946
4946
|
if (re || ke) {
|
|
4947
4947
|
var Me = typeof D == "function" ? D.displayName || D.name || "Unknown" : D;
|
|
@@ -5069,8 +5069,8 @@ Check the top-level render call using <` + fA + ">.");
|
|
|
5069
5069
|
(D === void 0 || typeof D == "object" && D !== null && Object.keys(D).length === 0) && (re += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
5070
5070
|
var ke = Je();
|
|
5071
5071
|
ke ? re += ke : re += At();
|
|
5072
|
-
var
|
|
5073
|
-
D === null ?
|
|
5072
|
+
var he;
|
|
5073
|
+
D === null ? he = "null" : kA(D) ? he = "array" : D !== void 0 && D.$$typeof === A ? (he = "<" + (S(D.type) || "Unknown") + " />", re = " Did you accidentally export a JSX literal instead of a component?") : he = typeof D, 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, re);
|
|
5074
5074
|
}
|
|
5075
5075
|
var Me = le(D, sA, fA, LA, ae);
|
|
5076
5076
|
if (Me == null)
|
|
@@ -10021,14 +10021,14 @@ class CC {
|
|
|
10021
10021
|
n && n.forEach((r) => r(t));
|
|
10022
10022
|
}
|
|
10023
10023
|
}
|
|
10024
|
-
var we, Vn,
|
|
10024
|
+
var we, Vn, ge, wn, pA, se, ot;
|
|
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
|
})(we || (we = {})), function(e) {
|
|
10028
10028
|
e.OUTGOING = "outgoing", e.INCOMING = "incoming", e.CONSULT = "consult", e.MEETING = "meeting", e.TRANSFER = "transfer";
|
|
10029
10029
|
}(Vn || (Vn = {})), function(e) {
|
|
10030
10030
|
e[e.OUT_CALL = 100] = "OUT_CALL", e[e.AGENT_STATE = 101] = "AGENT_STATE", e[e.OUT_CALL_INCOMING_CALL = 102] = "OUT_CALL_INCOMING_CALL", e[e.OUT_CALL_RINGING = 103] = "OUT_CALL_RINGING", e[e.OUT_CALL_ANSWER = 104] = "OUT_CALL_ANSWER", e[e.CALL_HOLD = 105] = "CALL_HOLD", e[e.CALL_UNHOLD = 106] = "CALL_UNHOLD", e[e.OUT_CALL_END = 107] = "OUT_CALL_END", e[e.CONSULT_REQUEST = 108] = "CONSULT_REQUEST", e[e.CONSULT_RINGING = 109] = "CONSULT_RINGING", e[e.CONSULT_ANSWER = 110] = "CONSULT_ANSWER", e[e.CONSULT_FAIL = 111] = "CONSULT_FAIL", e[e.MUTE = 112] = "MUTE", e[e.UNMUTE = 113] = "UNMUTE", e[e.CONSULT_CALL_IN = 114] = "CONSULT_CALL_IN", e[e.CONSULT_CALL_IN_SUCCESS = 115] = "CONSULT_CALL_IN_SUCCESS", e[e.CONSULT_RETURN_CALL = 125] = "CONSULT_RETURN_CALL", e[e.CONSULT_RETURN_CALL_SUCCESS = 126] = "CONSULT_RETURN_CALL_SUCCESS", e[e.CONSULT_TRANSFER = 116] = "CONSULT_TRANSFER", e[e.CONSULT_TRANSFER_FAILED = 118] = "CONSULT_TRANSFER_FAILED", e[e.CONSULT_TRANSFER_OFF_HOOK = 117] = "CONSULT_TRANSFER_OFF_HOOK", e[e.INCOMING_CALL = 119] = "INCOMING_CALL", e[e.INCOMING_CALL_OFF_HOOK = 120] = "INCOMING_CALL_OFF_HOOK", e[e.INCOMING_CALL_END = 121] = "INCOMING_CALL_END", e[e.SATISFACTION_EVALUATION = 122] = "SATISFACTION_EVALUATION", e[e.CONSULT_THREE_WAY = 123] = "CONSULT_THREE_WAY", e[e.CONSULT_THREE_WAY_RESULT = 124] = "CONSULT_THREE_WAY_RESULT", e[e.TRANSFER = 127] = "TRANSFER", e[e.TRANSFER_FAILED = 128] = "TRANSFER_FAILED", e[e.TRANSFER_INCOMING_CALL = 129] = "TRANSFER_INCOMING_CALL", e[e.TRANSFER_OFF_HOOK = 130] = "TRANSFER_OFF_HOOK", e[e.AGENT_HANGUP = 131] = "AGENT_HANGUP", e[e.KICK_OFFLINE = 132] = "KICK_OFFLINE", e[e.CONTINUOUS_NOT_ANSWER = 133] = "CONTINUOUS_NOT_ANSWER", e[e.PREVIEW_OUT_CALL = 134] = "PREVIEW_OUT_CALL";
|
|
10031
|
-
}(
|
|
10031
|
+
}(ge || (ge = {})), function(e) {
|
|
10032
10032
|
e.WEB_RTC_CONNECTING = "connecting", e.WEB_RTC_CONNECTED = "connected", e.WEB_RTC_DISCONNECTING = "disconnecting", e.WEB_RTC_DISCONNECTED = "disconnected", e.WEB_RTC_REGISTERED = "registered", e.WEB_RTC_UNREGISTERED = "unregistered", e.WEB_RTC_TERMINATED = "terminated", e.WEB_RTC_REGISTER_FAILED = "register_failed", e.WEB_RTC_ANSWER_FAILED = "answer_failed", e.WEB_RTC_SEND_DTMF = "send_dtmf";
|
|
10033
10033
|
}(wn || (wn = {})), function(e) {
|
|
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.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";
|
|
@@ -12923,13 +12923,13 @@ class Vt {
|
|
|
12923
12923
|
const u = this.pendingMessages.get(l), V = performance.now() - u;
|
|
12924
12924
|
cA.latency = parseFloat(V.toFixed(2)), this.pendingMessages.delete(l);
|
|
12925
12925
|
}
|
|
12926
|
-
if (i !== 0 && Wh("%cWebSocket 收到消息:", "color: blue; font-weight: bold;", r), i ===
|
|
12926
|
+
if (i !== 0 && Wh("%cWebSocket 收到消息:", "color: blue; font-weight: bold;", r), i === ge.OUT_CALL && (a !== 0 ? (z.reset(), vA.emit(pA.OUT_FAILED, s), vA.emit(se.FAIL_NOTIFICATION, s), z.updateActionConfigs(Sn), setTimeout(() => {
|
|
12927
12927
|
z.updateCustomerInfo(void 0);
|
|
12928
|
-
}, 500), this.stateIdleChange()) : a === 0 && (vA.emit(pA.OUT_SUCCESS), clearTimeout(cA.autoStateTimer))), i ===
|
|
12928
|
+
}, 500), this.stateIdleChange()) : a === 0 && (vA.emit(pA.OUT_SUCCESS), clearTimeout(cA.autoStateTimer))), i === ge.AGENT_STATE) {
|
|
12929
12929
|
const { state: u, state_name: V } = o;
|
|
12930
12930
|
(cA.stateObject.state === we.IDLE || cA.stateObject.state === we.BUSY && V !== "整理") && (cA.stateBeforeChange = cA.stateObject), cA.stateObject = { state: u, state_name: V }, V === "振铃中" && z.updateDisplayText(ot.AGENT_RINGING), u === we.UNREGISTERED && z.updateActionConfigs(Kw), vA.emit(pA.AGENT_STATE, { state: u, state_name: V });
|
|
12931
12931
|
}
|
|
12932
|
-
if (i ===
|
|
12932
|
+
if (i === ge.OUT_CALL_INCOMING_CALL) {
|
|
12933
12933
|
try {
|
|
12934
12934
|
await this.getCustomerInfo(this.outNumber);
|
|
12935
12935
|
} catch (u) {
|
|
@@ -12937,9 +12937,9 @@ class Vt {
|
|
|
12937
12937
|
}
|
|
12938
12938
|
o.preview_task_id ? vA.emit(pA.PREVIEW_OUT_INCOMING_CALL, { customer_phone: this.outNumber, session_id: o.session_id, preview_task_id: o.preview_task_id }) : vA.emit(pA.OUT_INCOMING_CALL, { customer_phone: this.outNumber, session_id: o.session_id }), cA.sessionId = o.session_id, z.updateActionConfigs(jw);
|
|
12939
12939
|
}
|
|
12940
|
-
if (i ===
|
|
12940
|
+
if (i === ge.OUT_CALL_END && (z.updateDisplayText(""), o.device_type === 1 && o.agent_no === cA.agentInfo.agent_no ? (this.putAgentState(!0), z.reset(), vA.emit(pA.OUT_HANGUP, { session_id: o.session_id }), z.updateActionConfigs(Sn)) : o.device_type === 2 && o.agent_no === cA.agentInfo.agent_no ? (z.reset(), vA.emit(pA.OUR_SIDE_CONSULT_HANGUP, { session_id: o.session_id }), this.putAgentState(!1), z.updateActionConfigs(Sn)) : o.device_type === 2 && o.agent_no !== cA.agentInfo.agent_no ? (z.updateDisplayText(ot.CALLING), vA.emit(pA.OTHER_SIDE_CONSULT_HANGUP, { session_id: o.session_id }), z.updateActionConfigs(Bi)) : o.device_type === 3 && o.agent_no === cA.agentInfo.agent_no ? (this.putAgentState(!1), z.reset(), vA.emit(pA.THREE_WAY_OUR_SIDE_HANGUP, { session_id: o.session_id }), z.updateActionConfigs(Sn)) : o.device_type === 4 && o.agent_no === cA.agentInfo.agent_no && (this.putAgentState(!1), z.reset(), vA.emit(pA.TRANSFER_END, { session_id: o.session_id }), z.updateActionConfigs(Sn))), i === ge.OUT_CALL_RINGING && o.type === 1 && (vA.emit(pA.OUT_RINGING, { session_id: cA.sessionId, type: o.type }), z.updateDisplayText(ot.RINGING)), i === ge.OUT_CALL_ANSWER && (clearTimeout(cA.autoStateTimer), z.updateIsCalling(!0), vA.emit(pA.OUT_OFF_ANSWER, { session_id: cA.sessionId }), z.updateOutCallIsAnswer(!0), z.updateDisplayText(ot.CALLING), z.updateActionConfigs(Bi)), i === ge.CONSULT_RINGING && (vA.emit(pA.CONSULT_RINGING, { session_id: o.session_id }), z.updateDisplayText(ot.AGENT_RINGING), z.updateActionConfigs([]), clearTimeout(cA.autoStateTimer)), i === ge.CONSULT_ANSWER && (vA.emit(pA.CONSULT_OFF_HOOK, { session_id: o.session_id }), z.updateConsultIsAnswer(!0), z.updateDisplayText(ot.CONSULTING), z.updateActionConfigs(Lw)), i === ge.CONSULT_FAIL && (vA.emit(pA.CONSULT_FAILED, { custom_reason: o.custom_reason }), z.updateDisplayText(ot.CALLING), z.updateActionConfigs(Bi)), i === ge.CONSULT_CALL_IN && (vA.emit(pA.CONSULT_INCOMING, { agent_no: o.agent_no, agent_mane: o.agent_name, session_id: o.session_id }), cA.sessionId = o.session_id, z.updateIsCalling(!0), z.updateDirection(Vn.CONSULT), z.updateDisplayText(ot.CONSULT_CALL_IN), z.updateActionConfigs(Tc), cA.enableBrowserAlert && ia.show("📞 咨询来电", `坐席 [${o.agent_name}] 正在咨询...`, () => {
|
|
12941
12941
|
vA.emit(se.NOTIFICATION_CLICK, { agent_mane: o.agent_name, agent_no: o.agent_no });
|
|
12942
|
-
}, cA.browserAlertTime)), i ===
|
|
12942
|
+
}, cA.browserAlertTime)), i === ge.CONSULT_CALL_IN_SUCCESS && (vA.emit(pA.CONSULT_CALL_IN_SUCCESS, { session_id: o.session_id }), z.updateConsultIsAnswer(!0), z.updateDisplayText(ot.CALLING), z.updateActionConfigs(Hw)), i === ge.CONSULT_RETURN_CALL_SUCCESS && (o.status === "success" ? (z.updateConsultIsAnswer(!1), vA.emit(pA.CONSULT_RETURN_CALL_SUCCESS), z.updateDisplayText(ot.CALLING), vA.emit(pA.OTHER_SIDE_CONSULT_HANGUP), z.updateActionConfigs(Bi)) : vA.emit(se.FAIL_NOTIFICATION, "媒体失败")), i === ge.MUTE && (a === 0 ? (z.updateIsMuted(!0), vA.emit(pA.MUTE_SUCCESS), z.updateDisplayText(ot.MUTING)) : (vA.emit(pA.MUTE_FAILED, s), vA.emit(se.FAIL_NOTIFICATION, s))), i === ge.UNMUTE && (a === 0 ? (z.updateIsMuted(!1), vA.emit(pA.UNMUTE_SUCCESS), z.updateDisplayText(ot.CALLING)) : (vA.emit(pA.UNMUTE_FAILED, s), vA.emit(se.FAIL_NOTIFICATION, s))), i === ge.CALL_HOLD && (a === 0 ? (z.updateIsHold(!0), z.updateDisplayText(ot.HOLDING), vA.emit(pA.HOLD_SUCCESS)) : (vA.emit(pA.HOLD_FAILED, s), vA.emit(se.FAIL_NOTIFICATION, s))), i === ge.CALL_UNHOLD && (a === 0 ? (z.updateDisplayText(ot.CALLING), z.updateIsHold(!1), vA.emit(pA.UNHOLD_SUCCESS)) : (vA.emit(pA.UNHOLD_FAILED, s), vA.emit(se.FAIL_NOTIFICATION, s))), i === ge.CONSULT_TRANSFER && (a === 0 ? vA.emit(pA.CONSULT_TRANSFER_SUCCESS) : (vA.emit(pA.CONSULT_TRANSFER_FAILED, s), vA.emit(se.FAIL_NOTIFICATION, s))), i === ge.CONSULT_TRANSFER_FAILED && vA.emit(pA.CONSULT_TRANSFER_FAILED, o.status), i === ge.CONSULT_TRANSFER_OFF_HOOK && (z.updateDirection(Vn.INCOMING), z.updateDisplayText(ot.CALLING), vA.emit(pA.CONSULT_TRANSFER_OFF_HOOK), z.updateActionConfigs(is), z.updateIncomingIsAnswer(!0), z.updateConsultIsAnswer(!1)), i === ge.INCOMING_CALL) {
|
|
12943
12943
|
clearTimeout(cA.autoStateTimer), cA.sessionId = o.session_id;
|
|
12944
12944
|
try {
|
|
12945
12945
|
await this.getCustomerInfo(o.customer_phone);
|
|
@@ -12950,14 +12950,14 @@ class Vt {
|
|
|
12950
12950
|
vA.emit(se.NOTIFICATION_CLICK, { customer_phone: o.customer_phone });
|
|
12951
12951
|
}, cA.browserAlertTime);
|
|
12952
12952
|
}
|
|
12953
|
-
if (i ===
|
|
12953
|
+
if (i === ge.INCOMING_CALL_OFF_HOOK && (z.updateIncomingIsAnswer(!0), vA.emit(pA.INCOMING_CALL_OFF_HOOK, { session_id: cA.sessionId }), z.updateActionConfigs(is), z.updateDisplayText(ot.CALLING)), i === ge.INCOMING_CALL_END && (z.updateDisplayText(""), o.device_type === 1 && o.agent_no === cA.agentInfo.agent_no ? (this.putAgentState(!0), z.reset(), vA.emit(pA.INCOMING_CALL_END, { session_id: o.session_id }), z.updateActionConfigs(Sn)) : o.device_type === 2 && o.agent_no === cA.agentInfo.agent_no ? (z.reset(), vA.emit(pA.OUR_SIDE_CONSULT_HANGUP, { session_id: o.session_id }), this.putAgentState(!1), z.updateActionConfigs(Sn)) : o.device_type === 2 && o.agent_no !== cA.agentInfo.agent_no ? (z.updateDisplayText(ot.CALLING), vA.emit(pA.OTHER_SIDE_CONSULT_HANGUP, { session_id: o.session_id }), z.updateActionConfigs(Bi)) : o.device_type === 3 && o.agent_no === cA.agentInfo.agent_no ? (this.putAgentState(!1), z.reset(), vA.emit(pA.THREE_WAY_OUR_SIDE_HANGUP, { session_id: o.session_id }), z.updateActionConfigs(Sn)) : o.device_type === 4 && o.agent_no === cA.agentInfo.agent_no && (this.putAgentState(!1), z.reset(), vA.emit(pA.TRANSFER_END, { session_id: o.session_id }), z.updateActionConfigs(Sn))), i === ge.SATISFACTION_EVALUATION && (a === 0 ? vA.emit(pA.SATISFACTION_EVALUATION_SUCCESS) : (vA.emit(pA.SATISFACTION_EVALUATION_FAILED, s), vA.emit(se.FAIL_NOTIFICATION, s))), i === ge.CONSULT_THREE_WAY && (a !== 0 ? (vA.emit(pA.CONSULT_THREE_WAY_FAILED, s), vA.emit(se.FAIL_NOTIFICATION, s)) : a === 0 && z.updateIsMeeting(!0)), i === ge.CONSULT_THREE_WAY_RESULT && (o.status === "success" ? (z.updateDirection(Vn.MEETING), z.updateDisplayText(ot.MEETING), z.updateActionConfigs(Jw), vA.emit(pA.CONSULT_THREE_WAY_SUCCESS)) : (vA.emit(pA.CONSULT_THREE_WAY_FAILED, { conf_name: o.conf_name }), z.updateIsMeeting(!1))), i === ge.TRANSFER_INCOMING_CALL && (clearTimeout(cA.autoStateTimer), o.agent_no === cA.agentInfo.agent_no ? (z.updateDisplayText(ot.TRANSFERRING), vA.emit(pA.TRANSFER_PROGRESS), z.updateActionConfigs([]), z.updateTransferIsAnswer(!0)) : (cA.sessionId = o.session_id, vA.emit(pA.TRANSFER_INCOMING_CALL, { agent_no: o.agent_no, agent_name: o.agent_name, session_id: o.session_id }), z.updateIsCalling(!0), z.updateDirection(Vn.TRANSFER), z.updateDisplayText(ot.TRANSFER_INCOMING_CALL), z.updateActionConfigs(Tc), cA.enableBrowserAlert && ia.show("📞 转接来电", `坐席 [${o.agent_no}] 正在转接...`, () => {
|
|
12954
12954
|
vA.emit(se.NOTIFICATION_CLICK, { agent_no: o.agent_no });
|
|
12955
|
-
}, cA.browserAlertTime))), i ===
|
|
12955
|
+
}, cA.browserAlertTime))), i === ge.TRANSFER_OFF_HOOK && (vA.emit(pA.TRANSFER_OFF_HOOK, { session_id: cA.sessionId }), z.updateTransferIsAnswer(!1), z.updateDisplayText(ot.CALLING), z.updateActionConfigs(is)), i === ge.TRANSFER_FAILED && o.status === "failed") {
|
|
12956
12956
|
vA.emit(pA.TRANSFER_FAILED, "未知原因"), vA.emit(se.FAIL_NOTIFICATION, "转接失败");
|
|
12957
12957
|
const u = z.get("direction");
|
|
12958
12958
|
u === Vn.OUTGOING ? z.updateActionConfigs(Bi) : u === Vn.INCOMING && z.updateActionConfigs(is);
|
|
12959
12959
|
}
|
|
12960
|
-
i ===
|
|
12960
|
+
i === ge.KICK_OFFLINE && vA.emit(se.KICK_OFF), i === ge.CONTINUOUS_NOT_ANSWER && (vA.emit(se.FAIL_NOTIFICATION, `已连续 ${o.miss_count} 次未接, 设置忙碌`), this.stateBusyChange());
|
|
12961
12961
|
}, this.ws.onclose = () => {
|
|
12962
12962
|
this.stopHeartbeat(), this.manualClose || setTimeout(() => this.initWebSocket(), this.reconnectDelay);
|
|
12963
12963
|
}, this.ws.onerror = () => {
|
|
@@ -12988,7 +12988,7 @@ class Vt {
|
|
|
12988
12988
|
}
|
|
12989
12989
|
sendMessage(A) {
|
|
12990
12990
|
var t;
|
|
12991
|
-
((t = this.ws) == null ? void 0 : t.readyState) === WebSocket.OPEN ? (A.type
|
|
12991
|
+
((t = this.ws) == null ? void 0 : t.readyState) === WebSocket.OPEN ? (A.type !== ge.OUT_CALL && A.type !== ge.PREVIEW_OUT_CALL || (this.outNumber = A.data.customer_phone), this.ws.send(JSON.stringify(A)), A.type !== 0 && Wh("%cWebSocket 发送消息:", "color: green; font-weight: bold;", A)) : console.warn("WebSocket 未连接,消息未发送");
|
|
12992
12992
|
}
|
|
12993
12993
|
close() {
|
|
12994
12994
|
var A;
|
|
@@ -13020,7 +13020,7 @@ class g1 {
|
|
|
13020
13020
|
if (t) {
|
|
13021
13021
|
if (!z.get("actionConfigs").includes("hold")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿保持" }));
|
|
13022
13022
|
if (A) throw new Error(JSON.stringify({ code: 1, msg: "当前已处于保持状态" }));
|
|
13023
|
-
Vt.__internalSend({ type:
|
|
13023
|
+
Vt.__internalSend({ type: ge.CALL_HOLD, data: { session_id: t } });
|
|
13024
13024
|
}
|
|
13025
13025
|
}
|
|
13026
13026
|
unholdCall() {
|
|
@@ -13029,7 +13029,7 @@ class g1 {
|
|
|
13029
13029
|
if (!z.get("actionConfigs").includes("unhold")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿取消保持" }));
|
|
13030
13030
|
if (t) {
|
|
13031
13031
|
if (!A) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于保持状态" }));
|
|
13032
|
-
Vt.__internalSend({ type:
|
|
13032
|
+
Vt.__internalSend({ type: ge.CALL_UNHOLD, data: { session_id: t } });
|
|
13033
13033
|
}
|
|
13034
13034
|
}
|
|
13035
13035
|
sendDTMF(A) {
|
|
@@ -13042,7 +13042,7 @@ class g1 {
|
|
|
13042
13042
|
cancelCall() {
|
|
13043
13043
|
if (!z.get("isCalling")) throw new Error(JSON.stringify({ code: 1, msg: "当前没有通话" }));
|
|
13044
13044
|
const A = cA.sessionId;
|
|
13045
|
-
vA.emit(pA.REJECT, { session_id: A }), Vt.__internalSend({ type:
|
|
13045
|
+
vA.emit(pA.REJECT, { session_id: A }), Vt.__internalSend({ type: ge.AGENT_HANGUP, data: { session_id: A } });
|
|
13046
13046
|
}
|
|
13047
13047
|
async consultCall(A) {
|
|
13048
13048
|
this.roleMute();
|
|
@@ -13051,7 +13051,7 @@ class g1 {
|
|
|
13051
13051
|
if (r) throw new Error(JSON.stringify({ code: 1, msg: "当前正在咨询" }));
|
|
13052
13052
|
if (!(t || n || i)) throw new Error(JSON.stringify({ code: 1, msg: "当前没有通话" }));
|
|
13053
13053
|
if (!o) throw new Error(JSON.stringify({ code: 1, msg: "sessionId不存在" }));
|
|
13054
|
-
Vt.__internalSend({ type:
|
|
13054
|
+
Vt.__internalSend({ type: ge.CONSULT_REQUEST, data: { session_id: o, consultation_agent_no: A } });
|
|
13055
13055
|
}
|
|
13056
13056
|
async answerCall() {
|
|
13057
13057
|
if (z.get("answerDevice") !== 1) throw new Error(JSON.stringify({ code: 1, msg: "当前设备不支持此功能" }));
|
|
@@ -13061,63 +13061,63 @@ class g1 {
|
|
|
13061
13061
|
const t = z.get("isCalling"), n = z.get("selectOutNumber") || "";
|
|
13062
13062
|
if (t) throw new Error(JSON.stringify({ code: 1, msg: "正在呼叫中,请勿重复点击" }));
|
|
13063
13063
|
if (typeof A != "string" || A.trim() === "") throw new Error(JSON.stringify({ code: 1, msg: "外呼号码非法" }));
|
|
13064
|
-
z.updateIsCalling(!0), z.updateDirection(Vn.OUTGOING), Vt.__internalSend({ type:
|
|
13064
|
+
z.updateIsCalling(!0), z.updateDirection(Vn.OUTGOING), Vt.__internalSend({ type: ge.OUT_CALL, data: { customer_phone: A, caller: n } });
|
|
13065
13065
|
}
|
|
13066
13066
|
previewCall(A, t) {
|
|
13067
13067
|
const n = z.get("isCalling"), r = z.get("selectOutNumber") || "";
|
|
13068
13068
|
if (n) throw new Error(JSON.stringify({ code: 1, msg: "正在呼叫中,请勿重复点击" }));
|
|
13069
13069
|
if (typeof A != "string" || A.trim() === "") throw new Error(JSON.stringify({ code: 1, msg: "外呼号码非法" }));
|
|
13070
|
-
z.updateIsCalling(!0), z.updateDirection(Vn.OUTGOING), Vt.__internalSend({ type:
|
|
13070
|
+
z.updateIsCalling(!0), z.updateDirection(Vn.OUTGOING), Vt.__internalSend({ type: ge.PREVIEW_OUT_CALL, data: { customer_phone: A, caller: r, preview_task_id: t } });
|
|
13071
13071
|
}
|
|
13072
13072
|
async hangup() {
|
|
13073
13073
|
if (!z.get("isCalling")) throw new Error(JSON.stringify({ code: 1, msg: "当前没有通话" }));
|
|
13074
13074
|
const A = cA.sessionId;
|
|
13075
|
-
Vt.__internalSend({ type:
|
|
13075
|
+
Vt.__internalSend({ type: ge.AGENT_HANGUP, data: { session_id: A } });
|
|
13076
13076
|
}
|
|
13077
13077
|
mute() {
|
|
13078
13078
|
this.roleMute();
|
|
13079
13079
|
const A = z.get("actionConfigs"), t = z.get("isMuted"), n = cA.sessionId;
|
|
13080
13080
|
if (t) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于静音状态" }));
|
|
13081
13081
|
if (!A.includes("mute")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用静音" }));
|
|
13082
|
-
Vt.__internalSend({ type:
|
|
13082
|
+
Vt.__internalSend({ type: ge.MUTE, data: { session_id: n } });
|
|
13083
13083
|
}
|
|
13084
13084
|
unmute() {
|
|
13085
13085
|
this.roleMute();
|
|
13086
13086
|
const A = z.get("actionConfigs"), t = z.get("isMuted"), n = cA.sessionId;
|
|
13087
13087
|
if (!t) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于未静音状态" }));
|
|
13088
13088
|
if (!A.includes("unmute")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用静音" }));
|
|
13089
|
-
Vt.__internalSend({ type:
|
|
13089
|
+
Vt.__internalSend({ type: ge.UNMUTE, data: { session_id: n } });
|
|
13090
13090
|
}
|
|
13091
13091
|
consultTransfer() {
|
|
13092
13092
|
this.roleMute();
|
|
13093
13093
|
const A = z.get("consultIsAnswer"), t = cA.sessionId;
|
|
13094
13094
|
if (!z.get("actionConfigs").includes("consult_transfer")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用咨询转移" }));
|
|
13095
13095
|
if (!A) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于咨询中" }));
|
|
13096
|
-
Vt.__internalSend({ type:
|
|
13096
|
+
Vt.__internalSend({ type: ge.CONSULT_TRANSFER, data: { session_id: t } });
|
|
13097
13097
|
}
|
|
13098
13098
|
satisfactionEvaluation() {
|
|
13099
13099
|
this.roleMute();
|
|
13100
13100
|
const A = cA.sessionId;
|
|
13101
13101
|
if (!z.get("actionConfigs").includes("satisfaction")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用满意度评价" }));
|
|
13102
|
-
Vt.__internalSend({ type:
|
|
13102
|
+
Vt.__internalSend({ type: ge.SATISFACTION_EVALUATION, data: { session_id: A } });
|
|
13103
13103
|
}
|
|
13104
13104
|
startConference() {
|
|
13105
13105
|
if (this.roleMute(), !z.get("actionConfigs").includes("conference")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿调用三方会议" }));
|
|
13106
13106
|
const A = cA.sessionId;
|
|
13107
13107
|
if (!z.get("consultIsAnswer")) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于咨询中" }));
|
|
13108
|
-
Vt.__internalSend({ type:
|
|
13108
|
+
Vt.__internalSend({ type: ge.CONSULT_THREE_WAY, data: { session_id: A } });
|
|
13109
13109
|
}
|
|
13110
13110
|
consultRetrieve() {
|
|
13111
13111
|
if (this.roleMute(), !z.get("actionConfigs").includes("consult_retrieve")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿取回通话" }));
|
|
13112
13112
|
const A = cA.sessionId;
|
|
13113
13113
|
if (!z.get("consultIsAnswer")) throw new Error(JSON.stringify({ code: 1, msg: "当前未处于咨询中" }));
|
|
13114
|
-
Vt.__internalSend({ type:
|
|
13114
|
+
Vt.__internalSend({ type: ge.CONSULT_RETURN_CALL, data: { session_id: A } });
|
|
13115
13115
|
}
|
|
13116
13116
|
async transferAgent(A) {
|
|
13117
13117
|
if (this.roleMute(), !z.get("actionConfigs").includes("transfer")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿转接" }));
|
|
13118
13118
|
const { transferIsAnswer: t } = z.getState(), n = cA.sessionId;
|
|
13119
13119
|
if (t) throw new Error(JSON.stringify({ code: 1, msg: "当前正在转接" }));
|
|
13120
|
-
Vt.__internalSend({ type:
|
|
13120
|
+
Vt.__internalSend({ type: ge.TRANSFER, data: { session_id: n, transfer_type: 0, transfer_dest: A } });
|
|
13121
13121
|
}
|
|
13122
13122
|
async transferOutline(A) {
|
|
13123
13123
|
if (this.roleMute(), !z.get("actionConfigs").includes("transfer")) throw new Error(JSON.stringify({ code: 1, msg: "当前状态请勿转接" }));
|
|
@@ -13126,7 +13126,7 @@ class g1 {
|
|
|
13126
13126
|
const { transferIsAnswer: t } = z.getState(), n = cA.sessionId;
|
|
13127
13127
|
if (t) throw new Error(JSON.stringify({ code: 1, msg: "当前正在转接" }));
|
|
13128
13128
|
if (t) throw new Error(JSON.stringify({ code: 1, msg: "当前正在转接" }));
|
|
13129
|
-
Vt.__internalSend({ type:
|
|
13129
|
+
Vt.__internalSend({ type: ge.TRANSFER, data: { session_id: n, transfer_type: 2, transfer_dest: A } });
|
|
13130
13130
|
}
|
|
13131
13131
|
}
|
|
13132
13132
|
var un, Jt, Ft, ct, oo, Nr, Ra, xa, ao, fr, pl, fl, zr, TC, FC, ql, OC;
|
|
@@ -26524,10 +26524,10 @@ function pT(e, A, t, n, r, i, o) {
|
|
|
26524
26524
|
var C = at(function() {
|
|
26525
26525
|
if (A && t && e) {
|
|
26526
26526
|
let vn = function(Fo, ur) {
|
|
26527
|
-
var br = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : QA, Oo = k.x + Fo, Ha = k.y + ur, lc = Oo + L, cc = Ha + hA, uc = Math.max(Oo, br.left), JA = Math.max(Ha, br.top),
|
|
26528
|
-
return Math.max(0, (
|
|
26527
|
+
var br = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : QA, Oo = k.x + Fo, Ha = k.y + ur, lc = Oo + L, cc = Ha + hA, uc = Math.max(Oo, br.left), JA = Math.max(Ha, br.top), fe = Math.min(lc, br.right), it = Math.min(cc, br.bottom);
|
|
26528
|
+
return Math.max(0, (fe - uc) * (it - JA));
|
|
26529
26529
|
}, wi = function() {
|
|
26530
|
-
PA = k.y + te, re = PA + hA, ke = k.x + BA,
|
|
26530
|
+
PA = k.y + te, re = PA + hA, ke = k.x + BA, he = ke + L;
|
|
26531
26531
|
};
|
|
26532
26532
|
var y, M, B, w, g = A, Q = g.ownerDocument, v = Na(g), E = v.getComputedStyle(g), h = E.position, I = g.style.left, b = g.style.top, S = g.style.right, R = g.style.bottom, x = g.style.overflow, T = U(U({}, r[n]), i), F = Q.createElement("div");
|
|
26533
26533
|
(y = g.parentElement) === null || y === void 0 || y.appendChild(F), F.style.left = "".concat(g.offsetLeft, "px"), F.style.top = "".concat(g.offsetTop, "px"), F.style.position = h, F.style.height = "".concat(g.offsetHeight, "px"), F.style.width = "".concat(g.offsetWidth, "px"), g.style.left = "0", g.style.top = "0", g.style.right = "auto", g.style.bottom = "auto", g.style.overflow = "hidden";
|
|
@@ -26573,7 +26573,7 @@ function pT(e, A, t, n, r, i, o) {
|
|
|
26573
26573
|
G.x -= Ce, G.y -= De;
|
|
26574
26574
|
var _e = T.points || [], $e = X(_e, 2), rt = $e[0], At = $e[1], Je = aq(At), be = aq(rt), qe = Di(G, Je), jA = Di(k, be), XA = U({}, T), BA = qe.x - jA.x + DA, te = qe.y - jA.y + SA, me = vn(BA, te), xA = vn(BA, te, uA), Y = Di(G, ["t", "l"]), dA = Di(k, ["t", "l"]), VA = Di(G, ["b", "r"]), EA = Di(k, ["b", "r"]), D = T.overflow || {}, sA = D.adjustX, fA = D.adjustY, GA = D.shiftX, LA = D.shiftY, ae = function(ur) {
|
|
26575
26575
|
return typeof ur == "boolean" ? ur : ur >= 0;
|
|
26576
|
-
}, PA, re, ke,
|
|
26576
|
+
}, PA, re, ke, he;
|
|
26577
26577
|
wi();
|
|
26578
26578
|
var Me = ae(fA), CA = be[0] === Je[0];
|
|
26579
26579
|
if (Me && be[0] === "t" && (re > ZA.bottom || p.current.bt)) {
|
|
@@ -26593,7 +26593,7 @@ function pT(e, A, t, n, r, i, o) {
|
|
|
26593
26593
|
ut >= xA) ? (p.current.tb = !0, te = Ue, SA = -SA, XA.points = [Fr(be, 0), Fr(Je, 0)]) : p.current.tb = !1;
|
|
26594
26594
|
}
|
|
26595
26595
|
var Wt = ae(sA), zn = be[1] === Je[1];
|
|
26596
|
-
if (Wt && be[1] === "l" && (
|
|
26596
|
+
if (Wt && be[1] === "l" && (he > ZA.right || p.current.rl)) {
|
|
26597
26597
|
var Kt = BA;
|
|
26598
26598
|
zn ? Kt -= L - iA : Kt = Y.x - EA.x - DA;
|
|
26599
26599
|
var jt = vn(Kt, te), Un = vn(Kt, te, uA);
|
|
@@ -26611,10 +26611,10 @@ function pT(e, A, t, n, r, i, o) {
|
|
|
26611
26611
|
}
|
|
26612
26612
|
wi();
|
|
26613
26613
|
var Ht = GA === !0 ? 0 : GA;
|
|
26614
|
-
typeof Ht == "number" && (ke < uA.left && (BA -= ke - uA.left - DA, G.x + iA < uA.left + Ht && (BA += G.x - uA.left + iA - Ht)),
|
|
26614
|
+
typeof Ht == "number" && (ke < uA.left && (BA -= ke - uA.left - DA, G.x + iA < uA.left + Ht && (BA += G.x - uA.left + iA - Ht)), he > uA.right && (BA -= he - uA.right - DA, G.x > uA.right - Ht && (BA += G.x - uA.right + Ht)));
|
|
26615
26615
|
var nn = LA === !0 ? 0 : LA;
|
|
26616
26616
|
typeof nn == "number" && (PA < uA.top && (te -= PA - uA.top - SA, G.y + aA < uA.top + nn && (te += G.y - uA.top + aA - nn)), re > uA.bottom && (te -= re - uA.bottom - SA, G.y > uA.bottom - nn && (te += G.y - uA.bottom + nn)));
|
|
26617
|
-
var mn = k.x + BA, Cn = mn + L, Xn = k.y + te, cr = Xn + hA, Se = G.x, NA = Se + iA,
|
|
26617
|
+
var mn = k.x + BA, Cn = mn + L, Xn = k.y + te, cr = Xn + hA, Se = G.x, NA = Se + iA, pe = G.y, Ie = pe + aA, xe = Math.max(mn, Se), Fe = Math.min(Cn, NA), St = (xe + Fe) / 2, Bt = St - mn, zt = Math.max(Xn, pe), rn = Math.min(cr, Ie), Xt = (zt + rn) / 2, $t = Xt - Xn;
|
|
26618
26618
|
o == null || o(A, XA);
|
|
26619
26619
|
var It = _A.right - k.x - (BA + k.width), _r = _A.bottom - k.y - (te + k.height);
|
|
26620
26620
|
WA === 1 && (BA = Math.round(BA), It = Math.round(It)), KA === 1 && (te = Math.round(te), _r = Math.round(_r));
|
|
@@ -26707,8 +26707,8 @@ function CT() {
|
|
|
26707
26707
|
}, []);
|
|
26708
26708
|
var TA = c.useRef({}), OA = c.useContext(eq), kA = c.useMemo(function() {
|
|
26709
26709
|
return {
|
|
26710
|
-
registerSubPopup: function(
|
|
26711
|
-
TA.current[
|
|
26710
|
+
registerSubPopup: function(fe, it) {
|
|
26711
|
+
TA.current[fe] = it, OA == null || OA.registerSubPopup(fe, it);
|
|
26712
26712
|
}
|
|
26713
26713
|
};
|
|
26714
26714
|
}, [OA]), yA = og(), uA = c.useState(null), QA = X(uA, 2), ZA = QA[0], _A = QA[1], WA = c.useRef(null), KA = at(function(JA) {
|
|
@@ -26716,8 +26716,8 @@ function CT() {
|
|
|
26716
26716
|
}), YA = c.useState(null), zA = X(YA, 2), ue = zA[0], Ae = zA[1], DA = c.useRef(null), SA = at(function(JA) {
|
|
26717
26717
|
va(JA) && ue !== JA && (Ae(JA), DA.current = JA);
|
|
26718
26718
|
}), oe = c.Children.only(o), le = (oe == null ? void 0 : oe.props) || {}, Ce = {}, De = at(function(JA) {
|
|
26719
|
-
var
|
|
26720
|
-
return (yt == null ? void 0 : yt.contains(JA)) || ((
|
|
26719
|
+
var fe, it, yt = ue;
|
|
26720
|
+
return (yt == null ? void 0 : yt.contains(JA)) || ((fe = rl(yt)) === null || fe === void 0 ? void 0 : fe.host) === JA || JA === yt || (ZA == null ? void 0 : ZA.contains(JA)) || ((it = rl(ZA)) === null || it === void 0 ? void 0 : it.host) === JA || JA === ZA || Object.values(TA.current).some(function(lt) {
|
|
26721
26721
|
return (lt == null ? void 0 : lt.contains(JA)) || JA === lt;
|
|
26722
26722
|
});
|
|
26723
26723
|
}), _e = nq(i, H, tA, P), $e = nq(i, $, oA, rA), rt = c.useState(d || !1), At = X(rt, 2), Je = At[0], be = At[1], qe = V ?? Je, jA = at(function(JA) {
|
|
@@ -26731,14 +26731,14 @@ function CT() {
|
|
|
26731
26731
|
var BA = c.useRef([]);
|
|
26732
26732
|
BA.current = [];
|
|
26733
26733
|
var te = at(function(JA) {
|
|
26734
|
-
var
|
|
26735
|
-
jA(JA), ((
|
|
26734
|
+
var fe;
|
|
26735
|
+
jA(JA), ((fe = BA.current[BA.current.length - 1]) !== null && fe !== void 0 ? fe : qe) !== JA && (BA.current.push(JA), p == null || p(JA));
|
|
26736
26736
|
}), me = c.useRef(), xA = function() {
|
|
26737
26737
|
clearTimeout(me.current);
|
|
26738
|
-
}, Y = function(
|
|
26738
|
+
}, Y = function(fe) {
|
|
26739
26739
|
var it = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
26740
|
-
xA(), it === 0 ? te(
|
|
26741
|
-
te(
|
|
26740
|
+
xA(), it === 0 ? te(fe) : me.current = setTimeout(function() {
|
|
26741
|
+
te(fe);
|
|
26742
26742
|
}, it * 1e3);
|
|
26743
26743
|
};
|
|
26744
26744
|
c.useEffect(function() {
|
|
@@ -26748,8 +26748,8 @@ function CT() {
|
|
|
26748
26748
|
nt(function(JA) {
|
|
26749
26749
|
(!JA || qe) && D(!0);
|
|
26750
26750
|
}, [qe]);
|
|
26751
|
-
var sA = c.useState(null), fA = X(sA, 2), GA = fA[0], LA = fA[1], ae = c.useState(null), PA = X(ae, 2), re = PA[0], ke = PA[1],
|
|
26752
|
-
ke([
|
|
26751
|
+
var sA = c.useState(null), fA = X(sA, 2), GA = fA[0], LA = fA[1], ae = c.useState(null), PA = X(ae, 2), re = PA[0], ke = PA[1], he = function(fe) {
|
|
26752
|
+
ke([fe.clientX, fe.clientY]);
|
|
26753
26753
|
}, Me = pT(qe, ZA, k && re !== null ? re : ue, R, T, F, j), CA = X(Me, 11), RA = CA[0], ce = CA[1], Ve = CA[2], Ue = CA[3], kt = CA[4], ut = CA[5], Wt = CA[6], zn = CA[7], Kt = CA[8], jt = CA[9], Un = CA[10], Lt = dT(MA, s, l, u), lr = X(Lt, 2), kn = lr[0], Ht = lr[1], nn = kn.has("click"), mn = Ht.has("click") || Ht.has("contextMenu"), Cn = at(function() {
|
|
26754
26754
|
EA || Un();
|
|
26755
26755
|
}), Xn = function() {
|
|
@@ -26771,68 +26771,68 @@ function CT() {
|
|
|
26771
26771
|
forceAlign: Cn
|
|
26772
26772
|
};
|
|
26773
26773
|
});
|
|
26774
|
-
var Se = c.useState(0), NA = X(Se, 2),
|
|
26774
|
+
var Se = c.useState(0), NA = X(Se, 2), pe = NA[0], Ie = NA[1], xe = c.useState(0), Fe = X(xe, 2), St = Fe[0], Bt = Fe[1], zt = function() {
|
|
26775
26775
|
if (Z && ue) {
|
|
26776
|
-
var
|
|
26777
|
-
Ie(
|
|
26776
|
+
var fe = ue.getBoundingClientRect();
|
|
26777
|
+
Ie(fe.width), Bt(fe.height);
|
|
26778
26778
|
}
|
|
26779
26779
|
}, rn = function() {
|
|
26780
26780
|
zt(), Cn();
|
|
26781
|
-
}, Xt = function(
|
|
26782
|
-
D(!1), Un(), q == null || q(
|
|
26781
|
+
}, Xt = function(fe) {
|
|
26782
|
+
D(!1), Un(), q == null || q(fe);
|
|
26783
26783
|
}, $t = function() {
|
|
26784
|
-
return new Promise(function(
|
|
26784
|
+
return new Promise(function(fe) {
|
|
26785
26785
|
zt(), LA(function() {
|
|
26786
|
-
return
|
|
26786
|
+
return fe;
|
|
26787
26787
|
});
|
|
26788
26788
|
});
|
|
26789
26789
|
};
|
|
26790
26790
|
nt(function() {
|
|
26791
26791
|
GA && (Un(), GA(), LA(null));
|
|
26792
26792
|
}, [GA]);
|
|
26793
|
-
function It(JA,
|
|
26793
|
+
function It(JA, fe, it, yt) {
|
|
26794
26794
|
Ce[JA] = function(lt) {
|
|
26795
26795
|
var Ja;
|
|
26796
|
-
yt == null || yt(lt), Y(
|
|
26796
|
+
yt == null || yt(lt), Y(fe, it);
|
|
26797
26797
|
for (var Vc = arguments.length, Dg = new Array(Vc > 1 ? Vc - 1 : 0), Pa = 1; Pa < Vc; Pa++)
|
|
26798
26798
|
Dg[Pa - 1] = arguments[Pa];
|
|
26799
26799
|
(Ja = le[JA]) === null || Ja === void 0 || Ja.call.apply(Ja, [le, lt].concat(Dg));
|
|
26800
26800
|
};
|
|
26801
26801
|
}
|
|
26802
26802
|
(nn || mn) && (Ce.onClick = function(JA) {
|
|
26803
|
-
var
|
|
26804
|
-
XA.current && mn ? Y(!1) : !XA.current && nn && (
|
|
26803
|
+
var fe;
|
|
26804
|
+
XA.current && mn ? Y(!1) : !XA.current && nn && (he(JA), Y(!0));
|
|
26805
26805
|
for (var it = arguments.length, yt = new Array(it > 1 ? it - 1 : 0), lt = 1; lt < it; lt++)
|
|
26806
26806
|
yt[lt - 1] = arguments[lt];
|
|
26807
|
-
(
|
|
26807
|
+
(fe = le.onClick) === null || fe === void 0 || fe.call.apply(fe, [le, JA].concat(yt));
|
|
26808
26808
|
});
|
|
26809
26809
|
var _r = qT(qe, mn, ue, ZA, B, g, De, Y), sc = kn.has("hover"), vn = Ht.has("hover"), wi, Fo;
|
|
26810
26810
|
sc && (It("onMouseEnter", !0, C, function(JA) {
|
|
26811
|
-
|
|
26811
|
+
he(JA);
|
|
26812
26812
|
}), It("onPointerEnter", !0, C, function(JA) {
|
|
26813
|
-
|
|
26814
|
-
}), wi = function(
|
|
26815
|
-
(qe || EA) && ZA !== null && ZA !== void 0 && ZA.contains(
|
|
26813
|
+
he(JA);
|
|
26814
|
+
}), wi = function(fe) {
|
|
26815
|
+
(qe || EA) && ZA !== null && ZA !== void 0 && ZA.contains(fe.target) && Y(!0, C);
|
|
26816
26816
|
}, k && (Ce.onMouseMove = function(JA) {
|
|
26817
|
-
var
|
|
26818
|
-
(
|
|
26817
|
+
var fe;
|
|
26818
|
+
(fe = le.onMouseMove) === null || fe === void 0 || fe.call(le, JA);
|
|
26819
26819
|
})), vn && (It("onMouseLeave", !1, m), It("onPointerLeave", !1, m), Fo = function() {
|
|
26820
26820
|
Y(!1, m);
|
|
26821
26821
|
}), kn.has("focus") && It("onFocus", !0, y), Ht.has("focus") && It("onBlur", !1, M), kn.has("contextMenu") && (Ce.onContextMenu = function(JA) {
|
|
26822
|
-
var
|
|
26823
|
-
XA.current && Ht.has("contextMenu") ? Y(!1) : (
|
|
26822
|
+
var fe;
|
|
26823
|
+
XA.current && Ht.has("contextMenu") ? Y(!1) : (he(JA), Y(!0)), JA.preventDefault();
|
|
26824
26824
|
for (var it = arguments.length, yt = new Array(it > 1 ? it - 1 : 0), lt = 1; lt < it; lt++)
|
|
26825
26825
|
yt[lt - 1] = arguments[lt];
|
|
26826
|
-
(
|
|
26826
|
+
(fe = le.onContextMenu) === null || fe === void 0 || fe.call.apply(fe, [le, JA].concat(yt));
|
|
26827
26827
|
}), _ && (Ce.className = nA(le.className, _));
|
|
26828
26828
|
var ur = c.useRef(!1);
|
|
26829
26829
|
ur.current || (ur.current = v || qe || EA);
|
|
26830
26830
|
var br = U(U({}, le), Ce), Oo = {}, Ha = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
|
|
26831
26831
|
Ha.forEach(function(JA) {
|
|
26832
26832
|
L[JA] && (Oo[JA] = function() {
|
|
26833
|
-
for (var
|
|
26833
|
+
for (var fe, it = arguments.length, yt = new Array(it), lt = 0; lt < it; lt++)
|
|
26834
26834
|
yt[lt] = arguments[lt];
|
|
26835
|
-
(
|
|
26835
|
+
(fe = br[JA]) === null || fe === void 0 || fe.call.apply(fe, [br].concat(yt)), L[JA].apply(L, yt);
|
|
26836
26836
|
});
|
|
26837
26837
|
});
|
|
26838
26838
|
var lc = /* @__PURE__ */ c.cloneElement(oe, U(U({}, br), Oo)), cc = {
|
|
@@ -26882,7 +26882,7 @@ function CT() {
|
|
|
26882
26882
|
offsetB: kt,
|
|
26883
26883
|
onAlign: Cn,
|
|
26884
26884
|
stretch: Z,
|
|
26885
|
-
targetWidth:
|
|
26885
|
+
targetWidth: pe / zn,
|
|
26886
26886
|
targetHeight: St / Kt
|
|
26887
26887
|
})));
|
|
26888
26888
|
});
|
|
@@ -28207,13 +28207,13 @@ var yF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28207
28207
|
process.env.NODE_ENV !== "production" && ve(!IA && !MA, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
|
|
28208
28208
|
var DA = Ot(E, {
|
|
28209
28209
|
value: h,
|
|
28210
|
-
postState: function(
|
|
28211
|
-
return
|
|
28210
|
+
postState: function(pe) {
|
|
28211
|
+
return pe || ei;
|
|
28212
28212
|
}
|
|
28213
|
-
}), SA = X(DA, 2), oe = SA[0], le = SA[1], Ce = function(
|
|
28213
|
+
}), SA = X(DA, 2), oe = SA[0], le = SA[1], Ce = function(pe) {
|
|
28214
28214
|
var Ie = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
28215
28215
|
function xe() {
|
|
28216
|
-
le(
|
|
28216
|
+
le(pe), aA == null || aA(pe);
|
|
28217
28217
|
}
|
|
28218
28218
|
Ie ? uu(xe) : xe();
|
|
28219
28219
|
}, De = c.useState(oe), _e = X(De, 2), $e = _e[0], rt = _e[1], At = c.useRef(!1), Je = c.useMemo(function() {
|
|
@@ -28230,16 +28230,16 @@ var yF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28230
28230
|
At.current = !1;
|
|
28231
28231
|
};
|
|
28232
28232
|
}, []);
|
|
28233
|
-
var ae = eF(), PA = ae.registerPath, re = ae.unregisterPath, ke = ae.refreshOverflowKeys,
|
|
28233
|
+
var ae = eF(), PA = ae.registerPath, re = ae.unregisterPath, ke = ae.refreshOverflowKeys, he = ae.isSubPathKey, Me = ae.getKeyPath, CA = ae.getKeys, RA = ae.getSubPathKeys, ce = c.useMemo(function() {
|
|
28234
28234
|
return {
|
|
28235
28235
|
registerPath: PA,
|
|
28236
28236
|
unregisterPath: re
|
|
28237
28237
|
};
|
|
28238
28238
|
}, [PA, re]), Ve = c.useMemo(function() {
|
|
28239
28239
|
return {
|
|
28240
|
-
isSubPathKey:
|
|
28240
|
+
isSubPathKey: he
|
|
28241
28241
|
};
|
|
28242
|
-
}, [
|
|
28242
|
+
}, [he]);
|
|
28243
28243
|
c.useEffect(function() {
|
|
28244
28244
|
ke(LA ? ei : QA.slice(fA + 1).map(function(NA) {
|
|
28245
28245
|
return NA.key;
|
|
@@ -28255,13 +28255,13 @@ var yF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28255
28255
|
wo(A, function() {
|
|
28256
28256
|
return {
|
|
28257
28257
|
list: zA.current,
|
|
28258
|
-
focus: function(
|
|
28258
|
+
focus: function(pe) {
|
|
28259
28259
|
var Ie, xe = CA(), Fe = ld(xe, ue), St = Fe.elements, Bt = Fe.key2element, zt = Fe.element2key, rn = gg(zA.current, St), Xt = ut ?? (rn[0] ? zt.get(rn[0]) : (Ie = QA.find(function(_r) {
|
|
28260
28260
|
return !_r.props.disabled;
|
|
28261
28261
|
})) === null || Ie === void 0 ? void 0 : Ie.key), $t = Bt.get(Xt);
|
|
28262
28262
|
if (Xt && $t) {
|
|
28263
28263
|
var It;
|
|
28264
|
-
$t == null || (It = $t.focus) === null || It === void 0 || It.call($t,
|
|
28264
|
+
$t == null || (It = $t.focus) === null || It === void 0 || It.call($t, pe);
|
|
28265
28265
|
}
|
|
28266
28266
|
}
|
|
28267
28267
|
};
|
|
@@ -28269,16 +28269,16 @@ var yF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28269
28269
|
var jt = Ot(F || [], {
|
|
28270
28270
|
value: G,
|
|
28271
28271
|
// Legacy convert key to array
|
|
28272
|
-
postState: function(
|
|
28273
|
-
return Array.isArray(
|
|
28272
|
+
postState: function(pe) {
|
|
28273
|
+
return Array.isArray(pe) ? pe : pe == null ? ei : [pe];
|
|
28274
28274
|
}
|
|
28275
|
-
}), Un = X(jt, 2), Lt = Un[0], lr = Un[1], kn = function(
|
|
28275
|
+
}), Un = X(jt, 2), Lt = Un[0], lr = Un[1], kn = function(pe) {
|
|
28276
28276
|
if (R) {
|
|
28277
|
-
var Ie =
|
|
28277
|
+
var Ie = pe.key, xe = Lt.includes(Ie), Fe;
|
|
28278
28278
|
T ? xe ? Fe = Lt.filter(function(Bt) {
|
|
28279
28279
|
return Bt !== Ie;
|
|
28280
28280
|
}) : Fe = [].concat(wA(Lt), [Ie]) : Fe = [Ie], lr(Fe);
|
|
28281
|
-
var St = U(U({},
|
|
28281
|
+
var St = U(U({}, pe), {}, {
|
|
28282
28282
|
selectedKeys: Fe
|
|
28283
28283
|
});
|
|
28284
28284
|
xe ? K == null || K(St) : Z == null || Z(St);
|
|
@@ -28286,11 +28286,11 @@ var yF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28286
28286
|
!T && oe.length && me !== "inline" && Ce(ei);
|
|
28287
28287
|
}, Ht = Aa(function(NA) {
|
|
28288
28288
|
L == null || L(cl(NA)), kn(NA);
|
|
28289
|
-
}), nn = Aa(function(NA,
|
|
28289
|
+
}), nn = Aa(function(NA, pe) {
|
|
28290
28290
|
var Ie = oe.filter(function(Fe) {
|
|
28291
28291
|
return Fe !== NA;
|
|
28292
28292
|
});
|
|
28293
|
-
if (
|
|
28293
|
+
if (pe)
|
|
28294
28294
|
Ie.push(NA);
|
|
28295
28295
|
else if (me !== "inline") {
|
|
28296
28296
|
var xe = RA(NA);
|
|
@@ -28299,9 +28299,9 @@ var yF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28299
28299
|
});
|
|
28300
28300
|
}
|
|
28301
28301
|
da(oe, Ie, !0) || Ce(Ie, !0);
|
|
28302
|
-
}), mn = function(
|
|
28303
|
-
var xe = Ie ?? !oe.includes(
|
|
28304
|
-
nn(
|
|
28302
|
+
}), mn = function(pe, Ie) {
|
|
28303
|
+
var xe = Ie ?? !oe.includes(pe);
|
|
28304
|
+
nn(pe, xe);
|
|
28305
28305
|
}, Cn = $T(me, ut, Ae, ue, zA, CA, Me, Wt, mn, iA);
|
|
28306
28306
|
c.useEffect(function() {
|
|
28307
28307
|
YA(!0);
|
|
@@ -28313,12 +28313,12 @@ var yF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28313
28313
|
};
|
|
28314
28314
|
}, [qA, TA]), cr = me !== "horizontal" || M ? QA : (
|
|
28315
28315
|
// Need wrap for overflow dropdown that do not response for open
|
|
28316
|
-
QA.map(function(NA,
|
|
28316
|
+
QA.map(function(NA, pe) {
|
|
28317
28317
|
return (
|
|
28318
28318
|
// Always wrap provider to avoid sub node re-mount
|
|
28319
28319
|
/* @__PURE__ */ c.createElement(Ba, {
|
|
28320
28320
|
key: NA.key,
|
|
28321
|
-
overflowDisabled:
|
|
28321
|
+
overflowDisabled: pe > fA
|
|
28322
28322
|
}, NA)
|
|
28323
28323
|
);
|
|
28324
28324
|
})
|
|
@@ -28334,11 +28334,11 @@ var yF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28334
28334
|
role: "menu",
|
|
28335
28335
|
tabIndex: u,
|
|
28336
28336
|
data: cr,
|
|
28337
|
-
renderRawItem: function(
|
|
28338
|
-
return
|
|
28337
|
+
renderRawItem: function(pe) {
|
|
28338
|
+
return pe;
|
|
28339
28339
|
},
|
|
28340
|
-
renderRawRest: function(
|
|
28341
|
-
var Ie =
|
|
28340
|
+
renderRawRest: function(pe) {
|
|
28341
|
+
var Ie = pe.length, xe = Ie ? QA.slice(-Ie) : null;
|
|
28342
28342
|
return /* @__PURE__ */ c.createElement(Za, {
|
|
28343
28343
|
eventKey: cd,
|
|
28344
28344
|
title: oA,
|
|
@@ -28350,8 +28350,8 @@ var yF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28350
28350
|
maxCount: me !== "horizontal" || M ? or.INVALIDATE : or.RESPONSIVE,
|
|
28351
28351
|
ssr: "full",
|
|
28352
28352
|
"data-menu-list": !0,
|
|
28353
|
-
onVisibleChange: function(
|
|
28354
|
-
GA(
|
|
28353
|
+
onVisibleChange: function(pe) {
|
|
28354
|
+
GA(pe);
|
|
28355
28355
|
},
|
|
28356
28356
|
onKeyDown: Cn
|
|
28357
28357
|
}, kA));
|
|
@@ -32065,13 +32065,13 @@ var yU = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
32065
32065
|
`, `\r
|
|
32066
32066
|
`].includes(Se);
|
|
32067
32067
|
});
|
|
32068
|
-
}, [x]), dA = c.useContext(Sg) || {}, VA = dA.maxCount, EA = dA.rawValues, D = function(NA,
|
|
32068
|
+
}, [x]), dA = c.useContext(Sg) || {}, VA = dA.maxCount, EA = dA.rawValues, D = function(NA, pe, Ie) {
|
|
32069
32069
|
if (!(qA && dd(VA) && (EA == null ? void 0 : EA.size) >= VA)) {
|
|
32070
32070
|
var xe = !0, Fe = NA;
|
|
32071
32071
|
E == null || E(null);
|
|
32072
32072
|
var St = EU(NA, x, dd(VA) ? VA - EA.size : void 0), Bt = Ie ? null : St;
|
|
32073
32073
|
return f !== "combobox" && Bt && (Fe = "", R == null || R(Bt), xA(!1), xe = !1), S && le !== Fe && S(Fe, {
|
|
32074
|
-
source:
|
|
32074
|
+
source: pe ? "typing" : "effect"
|
|
32075
32075
|
}), xe;
|
|
32076
32076
|
}
|
|
32077
32077
|
}, sA = function(NA) {
|
|
@@ -32085,8 +32085,8 @@ var yU = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
32085
32085
|
jA && m && XA(!1), m && !zA.current && SA(!1);
|
|
32086
32086
|
}, [m]);
|
|
32087
32087
|
var fA = sE(), GA = X(fA, 2), LA = GA[0], ae = GA[1], PA = c.useRef(!1), re = function(NA) {
|
|
32088
|
-
var
|
|
32089
|
-
if (xe && (f !== "combobox" && NA.preventDefault(), BA || xA(!0)), ae(!!le), Ie === "Backspace" && !
|
|
32088
|
+
var pe = LA(), Ie = NA.key, xe = Ie === "Enter";
|
|
32089
|
+
if (xe && (f !== "combobox" && NA.preventDefault(), BA || xA(!0)), ae(!!le), Ie === "Backspace" && !pe && qA && !le && u.length) {
|
|
32090
32090
|
for (var Fe = wA(u), St = null, Bt = Fe.length - 1; Bt >= 0; Bt -= 1) {
|
|
32091
32091
|
var zt = Fe[Bt];
|
|
32092
32092
|
if (!zt.disabled) {
|
|
@@ -32107,18 +32107,18 @@ var yU = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
32107
32107
|
}
|
|
32108
32108
|
iA == null || iA.apply(void 0, [NA].concat(Xt));
|
|
32109
32109
|
}, ke = function(NA) {
|
|
32110
|
-
for (var
|
|
32110
|
+
for (var pe = arguments.length, Ie = new Array(pe > 1 ? pe - 1 : 0), xe = 1; xe < pe; xe++)
|
|
32111
32111
|
Ie[xe - 1] = arguments[xe];
|
|
32112
32112
|
if (BA) {
|
|
32113
32113
|
var Fe;
|
|
32114
32114
|
(Fe = YA.current) === null || Fe === void 0 || Fe.onKeyUp.apply(Fe, [NA].concat(Ie));
|
|
32115
32115
|
}
|
|
32116
32116
|
NA.key === "Enter" && (PA.current = !1), aA == null || aA.apply(void 0, [NA].concat(Ie));
|
|
32117
|
-
},
|
|
32118
|
-
var
|
|
32117
|
+
}, he = function(NA) {
|
|
32118
|
+
var pe = u.filter(function(Ie) {
|
|
32119
32119
|
return Ie !== NA;
|
|
32120
32120
|
});
|
|
32121
|
-
V(
|
|
32121
|
+
V(pe, {
|
|
32122
32122
|
type: "remove",
|
|
32123
32123
|
values: [NA]
|
|
32124
32124
|
});
|
|
@@ -32143,7 +32143,7 @@ var yU = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
32143
32143
|
};
|
|
32144
32144
|
}, []);
|
|
32145
32145
|
var Ue = function(NA) {
|
|
32146
|
-
var
|
|
32146
|
+
var pe, Ie = NA.target, xe = (pe = WA.current) === null || pe === void 0 ? void 0 : pe.getPopupElement();
|
|
32147
32147
|
if (xe && xe.contains(Ie)) {
|
|
32148
32148
|
var Fe = setTimeout(function() {
|
|
32149
32149
|
var rn = Ve.indexOf(Fe);
|
|
@@ -32247,7 +32247,7 @@ var yU = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
32247
32247
|
searchValue: le,
|
|
32248
32248
|
onSearch: D,
|
|
32249
32249
|
onSearchSubmit: sA,
|
|
32250
|
-
onRemove:
|
|
32250
|
+
onRemove: he,
|
|
32251
32251
|
tokenWithEnter: Y,
|
|
32252
32252
|
onInputBlur: Me
|
|
32253
32253
|
}))), cr;
|
|
@@ -32972,8 +32972,8 @@ function NU(e, A) {
|
|
|
32972
32972
|
offsetY: ue,
|
|
32973
32973
|
rtl: N,
|
|
32974
32974
|
getSize: PA
|
|
32975
|
-
}), ke = SU(W, YA, zA, C, hA, R, V, OA),
|
|
32976
|
-
i && (
|
|
32975
|
+
}), ke = SU(W, YA, zA, C, hA, R, V, OA), he = null;
|
|
32976
|
+
i && (he = U(O({}, s ? "height" : "maxHeight", i), YU), G && (he.overflowY = "hidden", C && (he.overflowX = "hidden"), IA && (he.pointerEvents = "none")));
|
|
32977
32977
|
var Me = {};
|
|
32978
32978
|
return N && (Me.dir = "rtl"), /* @__PURE__ */ c.createElement("div", UA({
|
|
32979
32979
|
ref: H,
|
|
@@ -32985,7 +32985,7 @@ function NU(e, A) {
|
|
|
32985
32985
|
onResize: le
|
|
32986
32986
|
}, /* @__PURE__ */ c.createElement(m, {
|
|
32987
32987
|
className: "".concat(n, "-holder"),
|
|
32988
|
-
style:
|
|
32988
|
+
style: he,
|
|
32989
32989
|
ref: j,
|
|
32990
32990
|
onScroll: dA,
|
|
32991
32991
|
onMouseEnter: LA
|
|
@@ -33539,11 +33539,11 @@ var qE = /* @__PURE__ */ c.forwardRef(function(e, A) {
|
|
|
33539
33539
|
At(Y), o && n === "combobox" && xA !== null && EA === "keyboard" && De(String(xA));
|
|
33540
33540
|
}, [o, n]), qe = function(Y, dA, VA) {
|
|
33541
33541
|
var EA = function() {
|
|
33542
|
-
var
|
|
33542
|
+
var he, Me = QA(Y);
|
|
33543
33543
|
return [Z ? {
|
|
33544
33544
|
label: Me == null ? void 0 : Me[$.label],
|
|
33545
33545
|
value: Y,
|
|
33546
|
-
key: (
|
|
33546
|
+
key: (he = Me == null ? void 0 : Me.key) !== null && he !== void 0 ? he : Y
|
|
33547
33547
|
} : Y, gd(Me)];
|
|
33548
33548
|
};
|
|
33549
33549
|
if (dA && p) {
|
|
@@ -34508,7 +34508,7 @@ const N4 = {
|
|
|
34508
34508
|
空闲: 1,
|
|
34509
34509
|
离线: 0,
|
|
34510
34510
|
未注册: 4
|
|
34511
|
-
}, j4 = Jq(() => import("./ConsultModel-
|
|
34511
|
+
}, j4 = Jq(() => import("./ConsultModel-8-KmYDUQ.mjs")), L4 = Jq(() => import("./TransferModel-BB6ZVCYO.mjs")), f2 = (e) => {
|
|
34512
34512
|
var te, me, xA;
|
|
34513
34513
|
const {
|
|
34514
34514
|
style: A,
|