ysyt-react-agent-lib 1.0.59 → 1.0.61
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-C_xi_a0G.js → ConsultModel-C-YUeset.js} +1 -1
- package/dist/{ConsultModel-Clziuft_.mjs → ConsultModel-aoBGdMux.mjs} +2 -2
- package/dist/{TransferModel-CrLwhRU-.js → TransferModel-BnfsxW2p.js} +1 -1
- package/dist/{TransferModel-OOXNrPQB.mjs → TransferModel-kzacgxo3.mjs} +2 -2
- package/dist/{index-CY0wI_Cw.mjs → index-DP2VPLNl.mjs} +131 -131
- package/dist/{index-Bg4uLM-U.mjs → index-DpfZGMYn.mjs} +1 -1
- package/dist/{index-CSNwo9S1.js → index-eCJn1dmm.js} +1 -1
- package/dist/{index-Cj4vLUDC.js → index-ekj0-l0n.js} +27 -27
- 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
|
@@ -212,7 +212,7 @@ function xE(e, A) {
|
|
|
212
212
|
ou.set(e, r), e.removeChild(n);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function pr(e, A) {
|
|
216
216
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = hl(t), r = sd(n), i = O(O({}, t), {}, {
|
|
217
217
|
styles: r
|
|
218
218
|
});
|
|
@@ -761,7 +761,7 @@ function uI(e, A) {
|
|
|
761
761
|
}, function(I) {
|
|
762
762
|
var S = z(I, 4), B = S[0], M = S[3];
|
|
763
763
|
if (d && M) {
|
|
764
|
-
var g =
|
|
764
|
+
var g = pr(M, sa("css-variables-".concat(B._themeKey)), {
|
|
765
765
|
mark: Gn,
|
|
766
766
|
prepend: "queue",
|
|
767
767
|
attachTo: i,
|
|
@@ -1314,13 +1314,13 @@ function hu(e, A) {
|
|
|
1314
1314
|
Object.keys(F).forEach(function(W) {
|
|
1315
1315
|
W.startsWith("@layer") ? K.push(W) : Y.push(W);
|
|
1316
1316
|
}), K.forEach(function(W) {
|
|
1317
|
-
|
|
1317
|
+
pr(fs(F[W]), "_layer-".concat(W), O(O({}, G), {}, {
|
|
1318
1318
|
prepend: !0
|
|
1319
1319
|
}));
|
|
1320
1320
|
});
|
|
1321
|
-
var k =
|
|
1321
|
+
var k = pr(D, T, G);
|
|
1322
1322
|
k[Nr] = S.instanceId, k.setAttribute(ro, M), process.env.NODE_ENV !== "production" && k.setAttribute(GE, g.join("|")), Y.forEach(function(W) {
|
|
1323
|
-
|
|
1323
|
+
pr(fs(F[W]), "_effect-".concat(W), G);
|
|
1324
1324
|
});
|
|
1325
1325
|
}
|
|
1326
1326
|
}
|
|
@@ -1367,7 +1367,7 @@ var GI = function(A, t, n) {
|
|
|
1367
1367
|
}, function(h) {
|
|
1368
1368
|
var q = z(h, 3), I = q[1], S = q[2];
|
|
1369
1369
|
if (I) {
|
|
1370
|
-
var B =
|
|
1370
|
+
var B = pr(I, S, {
|
|
1371
1371
|
mark: Gn,
|
|
1372
1372
|
prepend: "queue",
|
|
1373
1373
|
attachTo: d,
|
|
@@ -3326,9 +3326,9 @@ const Uy = (e, A) => {
|
|
|
3326
3326
|
var fd = /* @__PURE__ */ gl({});
|
|
3327
3327
|
function wm() {
|
|
3328
3328
|
}
|
|
3329
|
-
let
|
|
3329
|
+
let lr = null;
|
|
3330
3330
|
function Oy() {
|
|
3331
|
-
|
|
3331
|
+
lr = null, Hq();
|
|
3332
3332
|
}
|
|
3333
3333
|
let mi = wm;
|
|
3334
3334
|
process.env.NODE_ENV !== "production" && (mi = (e, A, t) => {
|
|
@@ -3340,8 +3340,8 @@ const Sm = /* @__PURE__ */ c.createContext({}), gt = process.env.NODE_ENV !== "p
|
|
|
3340
3340
|
} = c.useContext(Sm), t = (n, r, i) => {
|
|
3341
3341
|
if (!n)
|
|
3342
3342
|
if (A === !1 && r === "deprecated") {
|
|
3343
|
-
const o =
|
|
3344
|
-
|
|
3343
|
+
const o = lr;
|
|
3344
|
+
lr || (lr = {}), lr[e] = lr[e] || [], lr[e].includes(i || "") || lr[e].push(i || ""), o || console.warn("[antd] There exists deprecated usage in your code:", lr);
|
|
3345
3345
|
} else
|
|
3346
3346
|
process.env.NODE_ENV !== "production" && mi(n, e, i);
|
|
3347
3347
|
};
|
|
@@ -3626,15 +3626,15 @@ function jy(e, A) {
|
|
|
3626
3626
|
}
|
|
3627
3627
|
function Ly(e, A) {
|
|
3628
3628
|
const t = jy(e, A);
|
|
3629
|
-
Ht() ?
|
|
3629
|
+
Ht() ? pr(t, `${Ky}-dynamic-theme`) : process.env.NODE_ENV !== "production" && mi(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
|
|
3630
3630
|
}
|
|
3631
|
-
const
|
|
3631
|
+
const qr = /* @__PURE__ */ c.createContext(!1), Hy = (e) => {
|
|
3632
3632
|
let {
|
|
3633
3633
|
children: A,
|
|
3634
3634
|
disabled: t
|
|
3635
3635
|
} = e;
|
|
3636
|
-
const n = c.useContext(
|
|
3637
|
-
return /* @__PURE__ */ c.createElement(
|
|
3636
|
+
const n = c.useContext(qr);
|
|
3637
|
+
return /* @__PURE__ */ c.createElement(qr.Provider, {
|
|
3638
3638
|
value: t ?? n
|
|
3639
3639
|
}, A);
|
|
3640
3640
|
}, so = /* @__PURE__ */ c.createContext(void 0), Jy = (e) => {
|
|
@@ -3648,7 +3648,7 @@ const mr = /* @__PURE__ */ c.createContext(!1), Hy = (e) => {
|
|
|
3648
3648
|
}, A);
|
|
3649
3649
|
};
|
|
3650
3650
|
function Py() {
|
|
3651
|
-
const e = dt(
|
|
3651
|
+
const e = dt(qr), A = dt(so);
|
|
3652
3652
|
return {
|
|
3653
3653
|
componentDisabled: e,
|
|
3654
3654
|
componentSize: A
|
|
@@ -8170,7 +8170,7 @@ class sn extends iC {
|
|
|
8170
8170
|
this.logger.debug(`Timer J expired for NON-INVITE server transaction ${this.id}.`), this.state === eA.Completed && this.stateTransition(eA.Terminated);
|
|
8171
8171
|
}
|
|
8172
8172
|
}
|
|
8173
|
-
class
|
|
8173
|
+
class rr {
|
|
8174
8174
|
constructor(A, t, n, r) {
|
|
8175
8175
|
this.transactionConstructor = A, this.core = t, this.message = n, this.delegate = r, this.logger = this.loggerFactory.getLogger("sip.user-agent-server"), this.toTag = n.toTag ? n.toTag : El(), this.init();
|
|
8176
8176
|
}
|
|
@@ -8257,7 +8257,7 @@ class ir {
|
|
|
8257
8257
|
this.core.userAgentServers.set(t.id, this);
|
|
8258
8258
|
}
|
|
8259
8259
|
}
|
|
8260
|
-
class WM extends
|
|
8260
|
+
class WM extends rr {
|
|
8261
8261
|
constructor(A, t, n) {
|
|
8262
8262
|
super(sn, A.userAgentCore, t, n);
|
|
8263
8263
|
}
|
|
@@ -8268,7 +8268,7 @@ class zM extends Yt {
|
|
|
8268
8268
|
super(un, A.userAgentCore, r, t);
|
|
8269
8269
|
}
|
|
8270
8270
|
}
|
|
8271
|
-
class XM extends
|
|
8271
|
+
class XM extends rr {
|
|
8272
8272
|
constructor(A, t, n) {
|
|
8273
8273
|
super(sn, A.userAgentCore, t, n);
|
|
8274
8274
|
}
|
|
@@ -8278,7 +8278,7 @@ class oC extends Yt {
|
|
|
8278
8278
|
super(un, A, t, n);
|
|
8279
8279
|
}
|
|
8280
8280
|
}
|
|
8281
|
-
class aC extends
|
|
8281
|
+
class aC extends rr {
|
|
8282
8282
|
constructor(A, t, n) {
|
|
8283
8283
|
super(sn, A, t, n);
|
|
8284
8284
|
}
|
|
@@ -8289,7 +8289,7 @@ class $M extends Yt {
|
|
|
8289
8289
|
super(un, A.userAgentCore, r, t);
|
|
8290
8290
|
}
|
|
8291
8291
|
}
|
|
8292
|
-
class Ys extends
|
|
8292
|
+
class Ys extends rr {
|
|
8293
8293
|
constructor(A, t, n) {
|
|
8294
8294
|
const r = A.userAgentCore !== void 0 ? A.userAgentCore : A;
|
|
8295
8295
|
super(sn, r, t, n);
|
|
@@ -8301,7 +8301,7 @@ class _M extends Yt {
|
|
|
8301
8301
|
super(un, A.userAgentCore, r, t), A.signalingStateTransition(r);
|
|
8302
8302
|
}
|
|
8303
8303
|
}
|
|
8304
|
-
class Aw extends
|
|
8304
|
+
class Aw extends rr {
|
|
8305
8305
|
constructor(A, t, n) {
|
|
8306
8306
|
super(sn, A.userAgentCore, t, n), A.signalingStateTransition(t), this.dialog = A;
|
|
8307
8307
|
}
|
|
@@ -8341,7 +8341,7 @@ class ew extends Yt {
|
|
|
8341
8341
|
}
|
|
8342
8342
|
}
|
|
8343
8343
|
}
|
|
8344
|
-
class tw extends
|
|
8344
|
+
class tw extends rr {
|
|
8345
8345
|
constructor(A, t, n) {
|
|
8346
8346
|
super(Xt, A.userAgentCore, t, n), A.reinviteUserAgentServer = this, this.dialog = A;
|
|
8347
8347
|
}
|
|
@@ -8367,7 +8367,7 @@ class nw extends Yt {
|
|
|
8367
8367
|
super(un, A.userAgentCore, r, t);
|
|
8368
8368
|
}
|
|
8369
8369
|
}
|
|
8370
|
-
class sC extends
|
|
8370
|
+
class sC extends rr {
|
|
8371
8371
|
constructor(A, t, n) {
|
|
8372
8372
|
const r = A.userAgentCore !== void 0 ? A.userAgentCore : A;
|
|
8373
8373
|
super(sn, r, t, n);
|
|
@@ -8708,7 +8708,7 @@ class rw extends Yt {
|
|
|
8708
8708
|
}
|
|
8709
8709
|
}
|
|
8710
8710
|
}
|
|
8711
|
-
class Ic extends
|
|
8711
|
+
class Ic extends rr {
|
|
8712
8712
|
constructor(A, t, n) {
|
|
8713
8713
|
super(Xt, A, t, n), this.core = A;
|
|
8714
8714
|
}
|
|
@@ -8763,7 +8763,7 @@ class ow extends Yt {
|
|
|
8763
8763
|
super(un, A, t, n);
|
|
8764
8764
|
}
|
|
8765
8765
|
}
|
|
8766
|
-
class aw extends
|
|
8766
|
+
class aw extends rr {
|
|
8767
8767
|
constructor(A, t, n) {
|
|
8768
8768
|
super(sn, A, t, n), this.core = A;
|
|
8769
8769
|
}
|
|
@@ -8994,7 +8994,7 @@ class lw extends Yt {
|
|
|
8994
8994
|
this.logger.warn("Timer N expired for SUBSCRIBE user agent client. Timed out waiting for NOTIFY."), this.waitNotifyStop(), this.delegate && this.delegate.onNotifyTimeout && this.delegate.onNotifyTimeout();
|
|
8995
8995
|
}
|
|
8996
8996
|
}
|
|
8997
|
-
class cw extends
|
|
8997
|
+
class cw extends rr {
|
|
8998
8998
|
constructor(A, t, n) {
|
|
8999
8999
|
super(sn, A, t, n), this.core = A;
|
|
9000
9000
|
}
|
|
@@ -9161,7 +9161,7 @@ class uw {
|
|
|
9161
9161
|
n ? n.transaction.receiveResponse(A) : this.logger.warn(`Discarding unmatched ${A.statusCode} response to ${A.method} ${t}.`);
|
|
9162
9162
|
}
|
|
9163
9163
|
}
|
|
9164
|
-
class
|
|
9164
|
+
class ur {
|
|
9165
9165
|
constructor(A, t, n) {
|
|
9166
9166
|
A.debug("SessionDescriptionHandler.constructor"), this.logger = A, this.mediaStreamFactory = t, this.sessionDescriptionHandlerConfiguration = n, this._localMediaStream = new MediaStream(), this._remoteMediaStream = new MediaStream(), this._peerConnection = new RTCPeerConnection(n == null ? void 0 : n.peerConnectionConfiguration), this.initPeerConnectionEventHandlers();
|
|
9167
9167
|
}
|
|
@@ -9299,7 +9299,7 @@ class Vr {
|
|
|
9299
9299
|
this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - replacing sender ${l} track`), V();
|
|
9300
9300
|
}).then(() => u.replaceTrack(s).then(() => {
|
|
9301
9301
|
const V = n.getTracks().find((d) => d.kind === l);
|
|
9302
|
-
V && (V.stop(), n.removeTrack(V),
|
|
9302
|
+
V && (V.stop(), n.removeTrack(V), ur.dispatchRemoveTrackEvent(n, V)), n.addTrack(s), ur.dispatchAddTrackEvent(n, s);
|
|
9303
9303
|
}).catch((V) => {
|
|
9304
9304
|
throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to replace sender ${l} track`), V;
|
|
9305
9305
|
}))) : r.push(new Promise((V) => {
|
|
@@ -9310,7 +9310,7 @@ class Vr {
|
|
|
9310
9310
|
} catch (V) {
|
|
9311
9311
|
throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to add sender ${l} track`), V;
|
|
9312
9312
|
}
|
|
9313
|
-
n.addTrack(s),
|
|
9313
|
+
n.addTrack(s), ur.dispatchAddTrackEvent(n, s);
|
|
9314
9314
|
}));
|
|
9315
9315
|
}, o = A.getAudioTracks();
|
|
9316
9316
|
o.length && i(o[0]);
|
|
@@ -9345,10 +9345,10 @@ class Vr {
|
|
|
9345
9345
|
this.logger.debug("SessionDescriptionHandler.setRemoteTrack");
|
|
9346
9346
|
const t = this._remoteMediaStream;
|
|
9347
9347
|
t.getTrackById(A.id) ? this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - have remote ${A.kind} track`) : A.kind === "audio" ? (this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${A.kind} track`), t.getAudioTracks().forEach((n) => {
|
|
9348
|
-
n.stop(), t.removeTrack(n),
|
|
9349
|
-
}), t.addTrack(A),
|
|
9350
|
-
n.stop(), t.removeTrack(n),
|
|
9351
|
-
}), t.addTrack(A),
|
|
9348
|
+
n.stop(), t.removeTrack(n), ur.dispatchRemoveTrackEvent(t, n);
|
|
9349
|
+
}), t.addTrack(A), ur.dispatchAddTrackEvent(t, A)) : A.kind === "video" && (this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${A.kind} track`), t.getVideoTracks().forEach((n) => {
|
|
9350
|
+
n.stop(), t.removeTrack(n), ur.dispatchRemoveTrackEvent(t, n);
|
|
9351
|
+
}), t.addTrack(A), ur.dispatchAddTrackEvent(t, A));
|
|
9352
9352
|
}
|
|
9353
9353
|
updateDirection(A) {
|
|
9354
9354
|
if (this._peerConnection === void 0) return Promise.reject(new Error("Peer connection closed."));
|
|
@@ -9475,7 +9475,7 @@ function Vw(e) {
|
|
|
9475
9475
|
return (A, t) => {
|
|
9476
9476
|
e === void 0 && (e = (i) => i.audio || i.video ? navigator.mediaDevices === void 0 ? Promise.reject(new Error("Media devices not available in insecure contexts.")) : navigator.mediaDevices.getUserMedia.call(navigator.mediaDevices, i) : Promise.resolve(new MediaStream()));
|
|
9477
9477
|
const n = { iceGatheringTimeout: (t == null ? void 0 : t.iceGatheringTimeout) !== void 0 ? t == null ? void 0 : t.iceGatheringTimeout : 5e3, peerConnectionConfiguration: Object.assign(Object.assign({}, { bundlePolicy: "balanced", certificates: void 0, iceCandidatePoolSize: 0, iceServers: [{ urls: "stun:stun.l.google.com:19302" }], iceTransportPolicy: "all", rtcpMuxPolicy: "require" }), t == null ? void 0 : t.peerConnectionConfiguration) }, r = A.userAgent.getLogger("sip.SessionDescriptionHandler");
|
|
9478
|
-
return new
|
|
9478
|
+
return new ur(r, e, n);
|
|
9479
9479
|
};
|
|
9480
9480
|
}
|
|
9481
9481
|
class yl {
|
|
@@ -10083,8 +10083,8 @@ const ko = function(e) {
|
|
|
10083
10083
|
this.setState({ displayText: e }), bA.emit(pA.CALL_PROGRESS, e);
|
|
10084
10084
|
}
|
|
10085
10085
|
updateActionConfigs(e) {
|
|
10086
|
-
const { show_satisfaction: A } = CA.agentInfo || {}, t = e.filter((
|
|
10087
|
-
this.setState({ actionConfigs:
|
|
10086
|
+
const { show_satisfaction: A } = CA.agentInfo || {}, t = this.get("answerDevice"), n = e.filter((r) => (A !== 0 || r !== "satisfaction") && (t !== 2 || r !== "answer"));
|
|
10087
|
+
this.setState({ actionConfigs: n }), bA.emit(Te.PHONE_BAR_OPERATION, n);
|
|
10088
10088
|
}
|
|
10089
10089
|
updateConsultIsAnswer(e) {
|
|
10090
10090
|
this.setState({ consultIsAnswer: e });
|
|
@@ -10948,7 +10948,7 @@ function st(e) {
|
|
|
10948
10948
|
* Copyright 2017 Google LLC
|
|
10949
10949
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
10950
10950
|
*/
|
|
10951
|
-
function
|
|
10951
|
+
function fr(e) {
|
|
10952
10952
|
return st({ ...e, state: !0, attribute: !1 });
|
|
10953
10953
|
}
|
|
10954
10954
|
/**
|
|
@@ -10993,7 +10993,7 @@ let Qc = (Ji = class extends cn {
|
|
|
10993
10993
|
color: #fff;
|
|
10994
10994
|
}
|
|
10995
10995
|
`, Ji);
|
|
10996
|
-
Me([
|
|
10996
|
+
Me([fr()], Qc.prototype, "displayTime", void 0), Qc = Me([wr("timer-component")], Qc);
|
|
10997
10997
|
var Pi;
|
|
10998
10998
|
let br = (Pi = class extends cn {
|
|
10999
10999
|
constructor() {
|
|
@@ -11211,7 +11211,7 @@ let Yo = (Wi = class extends cn {
|
|
|
11211
11211
|
border-color: transparent #fff transparent transparent;
|
|
11212
11212
|
}
|
|
11213
11213
|
`, Wi);
|
|
11214
|
-
Me([st({ type: String })], Yo.prototype, "placement", void 0), Me([st({ type: String })], Yo.prototype, "triggerType", void 0), Me([
|
|
11214
|
+
Me([st({ type: String })], Yo.prototype, "placement", void 0), Me([st({ type: String })], Yo.prototype, "triggerType", void 0), Me([fr()], Yo.prototype, "visible", void 0), Yo = Me([wr("my-popover")], Yo);
|
|
11215
11215
|
var zi;
|
|
11216
11216
|
let Rr = (zi = class extends cn {
|
|
11217
11217
|
constructor() {
|
|
@@ -11322,7 +11322,7 @@ let Rr = (zi = class extends cn {
|
|
|
11322
11322
|
color: rgba(0, 0, 0, 0.45);
|
|
11323
11323
|
}
|
|
11324
11324
|
`, zi);
|
|
11325
|
-
Me([st({ type: String })], Rr.prototype, "placeholder", void 0), Me([st({ type: Boolean })], Rr.prototype, "disabled", void 0), Me([st({ type: Boolean })], Rr.prototype, "allowClear", void 0), Me([st({ type: String })], Rr.prototype, "value", void 0), Me([st({ attribute: !1 })], Rr.prototype, "onPressEnter", void 0), Me([
|
|
11325
|
+
Me([st({ type: String })], Rr.prototype, "placeholder", void 0), Me([st({ type: Boolean })], Rr.prototype, "disabled", void 0), Me([st({ type: Boolean })], Rr.prototype, "allowClear", void 0), Me([st({ type: String })], Rr.prototype, "value", void 0), Me([st({ attribute: !1 })], Rr.prototype, "onPressEnter", void 0), Me([fr()], Rr.prototype, "focused", void 0), Rr = Me([wr("my-input")], Rr);
|
|
11326
11326
|
var Xi;
|
|
11327
11327
|
let Dr = (Xi = class extends cn {
|
|
11328
11328
|
constructor() {
|
|
@@ -11444,7 +11444,7 @@ let Dr = (Xi = class extends cn {
|
|
|
11444
11444
|
color: #999;
|
|
11445
11445
|
}
|
|
11446
11446
|
`, Xi);
|
|
11447
|
-
Me([st({ type: String })], Dr.prototype, "placeholder", void 0), Me([st({ type: String })], Dr.prototype, "value", void 0), Me([st({ type: String })], Dr.prototype, "width", void 0), Me([
|
|
11447
|
+
Me([st({ type: String })], Dr.prototype, "placeholder", void 0), Me([st({ type: String })], Dr.prototype, "value", void 0), Me([st({ type: String })], Dr.prototype, "width", void 0), Me([fr()], Dr.prototype, "open", void 0), Me([fr()], Dr.prototype, "animating", void 0), Me([fr()], Dr.prototype, "selectedContent", void 0), Dr = Me([wr("my-select")], Dr);
|
|
11448
11448
|
var $i;
|
|
11449
11449
|
let es = ($i = class extends cn {
|
|
11450
11450
|
constructor() {
|
|
@@ -11528,7 +11528,7 @@ let es = ($i = class extends cn {
|
|
|
11528
11528
|
font-weight: bold;
|
|
11529
11529
|
}
|
|
11530
11530
|
`, $i);
|
|
11531
|
-
Me([
|
|
11531
|
+
Me([fr()], es.prototype, "isDialerVisible", void 0), Me([fr()], es.prototype, "inputValue", void 0), es = Me([wr("my-phone-dialer")], es);
|
|
11532
11532
|
var _i;
|
|
11533
11533
|
let Si = (_i = class extends cn {
|
|
11534
11534
|
constructor() {
|
|
@@ -11677,7 +11677,7 @@ let bc = (Ao = class extends cn {
|
|
|
11677
11677
|
justify-content: center;
|
|
11678
11678
|
}
|
|
11679
11679
|
`, Ao);
|
|
11680
|
-
Me([
|
|
11680
|
+
Me([fr()], bc.prototype, "open", void 0), bc = Me([wr("my-icon-popup")], bc);
|
|
11681
11681
|
class xh extends Error {
|
|
11682
11682
|
constructor(t, n, r) {
|
|
11683
11683
|
const i = `${t.status || t.status === 0 ? t.status : ""} ${t.statusText || ""}`.trim();
|
|
@@ -12061,7 +12061,7 @@ const vC = (e, A) => {
|
|
|
12061
12061
|
return btoa(String.fromCharCode(...r));
|
|
12062
12062
|
}, rs = "/v1/aicc/bmserver", Po = "/v1/aicc/ccs";
|
|
12063
12063
|
let Ss = "", Sd = "", Bd = "", kh = "";
|
|
12064
|
-
async function
|
|
12064
|
+
async function cr(e, A) {
|
|
12065
12065
|
const t = function() {
|
|
12066
12066
|
const r = vC(Sd, Bd);
|
|
12067
12067
|
return Jw.create({ prefixUrl: `${Ss}/api`, timeout: !1, headers: { Authorization: r }, hooks: { afterResponse: [async (i, o, a) => {
|
|
@@ -12072,7 +12072,7 @@ async function ur(e, A) {
|
|
|
12072
12072
|
}(), n = e.replace(/^\/+/, "");
|
|
12073
12073
|
return t.post(n, { json: A }).json();
|
|
12074
12074
|
}
|
|
12075
|
-
const Gh = (e) =>
|
|
12075
|
+
const Gh = (e) => cr(`${Po}/state/change`, e);
|
|
12076
12076
|
class Qd {
|
|
12077
12077
|
constructor() {
|
|
12078
12078
|
this.roleData = { agentInfo: () => {
|
|
@@ -12101,7 +12101,7 @@ class Qd {
|
|
|
12101
12101
|
}
|
|
12102
12102
|
async _agentLogin(A) {
|
|
12103
12103
|
try {
|
|
12104
|
-
const n = await (t = { agent_no: A },
|
|
12104
|
+
const n = await (t = { agent_no: A }, cr(`${Po}/agent/login`, t));
|
|
12105
12105
|
CA.agentInfo = n.data;
|
|
12106
12106
|
} catch {
|
|
12107
12107
|
throw new Error(JSON.stringify({ code: 1, msg: "登录失败" }));
|
|
@@ -12122,7 +12122,7 @@ class Qd {
|
|
|
12122
12122
|
async _getInCallCrmDetail(A) {
|
|
12123
12123
|
var t;
|
|
12124
12124
|
try {
|
|
12125
|
-
const { phone: n } = A.data, r = await ((i) =>
|
|
12125
|
+
const { phone: n } = A.data, r = await ((i) => cr(`${rs}/crm/popups`, i))({ phone: n });
|
|
12126
12126
|
(t = A.success) == null || t.call(A, r);
|
|
12127
12127
|
} catch (n) {
|
|
12128
12128
|
throw new Error(n.message);
|
|
@@ -12135,7 +12135,7 @@ class Qd {
|
|
|
12135
12135
|
const { data: t, success: n } = A, { device: r } = t;
|
|
12136
12136
|
this.roleData.changeDevice(r);
|
|
12137
12137
|
const { agent_no: i } = CA.agentInfo;
|
|
12138
|
-
await ((a) =>
|
|
12138
|
+
await ((a) => cr(`${Po}/device/change`, a))({ agent_no: i, answer_device: r }), AA.updateAnswerDevice(r);
|
|
12139
12139
|
const o = AA.get("actionConfigs");
|
|
12140
12140
|
AA.updateActionConfigs(o), n == null || n({ code: 0, msg: "请求成功" });
|
|
12141
12141
|
} catch (t) {
|
|
@@ -12159,7 +12159,7 @@ class Qd {
|
|
|
12159
12159
|
const { agent_no: t } = CA.agentInfo;
|
|
12160
12160
|
try {
|
|
12161
12161
|
this.roleData.agentInfo();
|
|
12162
|
-
const r = await ((i) =>
|
|
12162
|
+
const r = await ((i) => cr(`${Po}/agent/free`, i))({ agent_no: t });
|
|
12163
12163
|
(n = A.success) == null || n.call(A, r);
|
|
12164
12164
|
} catch {
|
|
12165
12165
|
}
|
|
@@ -12167,7 +12167,7 @@ class Qd {
|
|
|
12167
12167
|
async getAgentState(A) {
|
|
12168
12168
|
var t;
|
|
12169
12169
|
try {
|
|
12170
|
-
const n = await
|
|
12170
|
+
const n = await cr(`${rs}/agent/statecfg/list`, {}), r = (n.data || []).filter((i) => i.enable === 0).filter((i) => i.state !== 0 && i.state !== 3).filter((i) => i.state_name !== "通话中").map((i) => ({ state: i.state, state_name: i.state_name })).reverse();
|
|
12171
12171
|
(t = A.success) == null || t.call(A, { ...n, data: r });
|
|
12172
12172
|
} catch (n) {
|
|
12173
12173
|
throw new Error(n.message);
|
|
@@ -12178,7 +12178,7 @@ class Qd {
|
|
|
12178
12178
|
try {
|
|
12179
12179
|
this.roleData.agentInfo(), this.roleData.requestInfo(A), this.roleData.setAgentExplicit(A.data.number);
|
|
12180
12180
|
const { agent_id: n } = CA.agentInfo;
|
|
12181
|
-
await ((r) =>
|
|
12181
|
+
await ((r) => cr(`${rs}/agent/update`, r))({ agent_id: n, out_display_number: A.data.number }), AA.updateSelectOutNumber(A.data.number), (t = A.success) == null || t.call(A, { code: 0, msg: "请求成功" });
|
|
12182
12182
|
} catch (n) {
|
|
12183
12183
|
throw new Error(n.message);
|
|
12184
12184
|
}
|
|
@@ -12189,7 +12189,7 @@ class Qd {
|
|
|
12189
12189
|
this.roleData.requestInfo(A);
|
|
12190
12190
|
const { agent_no: n } = A.data;
|
|
12191
12191
|
if (!n) throw new Error(JSON.stringify({ code: 1, msg: 'Parameter "state_name" is required' }));
|
|
12192
|
-
const r = await ((i) =>
|
|
12192
|
+
const r = await ((i) => cr(`${Po}/agent/islogin`, i))({ agent_no: n });
|
|
12193
12193
|
(t = A.success) == null || t.call(A, r);
|
|
12194
12194
|
} catch (n) {
|
|
12195
12195
|
throw new Error(n.message);
|
|
@@ -12198,7 +12198,7 @@ class Qd {
|
|
|
12198
12198
|
async getCallRecord(A) {
|
|
12199
12199
|
try {
|
|
12200
12200
|
this.roleData.agentInfo();
|
|
12201
|
-
const { success: t } = A, n = [this.formatDate(new Date(Date.now() - 12e5)), this.formatDate(/* @__PURE__ */ new Date())], { agent_no: r } = CA.agentInfo, i = await ((l) =>
|
|
12201
|
+
const { success: t } = A, n = [this.formatDate(new Date(Date.now() - 12e5)), this.formatDate(/* @__PURE__ */ new Date())], { agent_no: r } = CA.agentInfo, i = await ((l) => cr(`${rs}/agent/recordpage`, l))({ start_time: n[0], end_time: n[1], page_no: 1, page_size: 10, agent_no: r }), { code: o, msg: a, data: s } = i;
|
|
12202
12202
|
t == null || t({ code: o, msg: a, data: s });
|
|
12203
12203
|
} catch (t) {
|
|
12204
12204
|
throw new Error(t.message);
|
|
@@ -12868,7 +12868,7 @@ class Qt {
|
|
|
12868
12868
|
async getCustomerInfo(A) {
|
|
12869
12869
|
try {
|
|
12870
12870
|
await this.apiClient._getInCallCrmDetail({ data: { phone: A }, success: (t) => {
|
|
12871
|
-
AA.updateCustomerInfo(t.data || { phone: A, is_vip: 0 });
|
|
12871
|
+
AA.updateCustomerInfo(t.data || { phone: A, is_vip: 0, customer_name: "未知客户", city: "未知", province: "未知", contact_count: 0, in_contact_count: 0 });
|
|
12872
12872
|
} });
|
|
12873
12873
|
} catch {
|
|
12874
12874
|
}
|
|
@@ -13089,7 +13089,7 @@ class $w {
|
|
|
13089
13089
|
}
|
|
13090
13090
|
}
|
|
13091
13091
|
var Cn, Fn, ut, to, Yr, Ba, no, Vl, dl, EC;
|
|
13092
|
-
const
|
|
13092
|
+
const gr = class gr {
|
|
13093
13093
|
constructor() {
|
|
13094
13094
|
zn(this, dl);
|
|
13095
13095
|
zn(this, Cn, null);
|
|
@@ -13103,7 +13103,7 @@ const hr = class hr {
|
|
|
13103
13103
|
const { type: t, data: n } = A;
|
|
13104
13104
|
bA.emit(t, n);
|
|
13105
13105
|
});
|
|
13106
|
-
if (!
|
|
13106
|
+
if (!gr._creatingInstance) throw new Error("请使用 YSYTAgentSdk.getInstance() 获取实例");
|
|
13107
13107
|
clearInterval(Se(this, to)), xn(this, to, setInterval(async () => {
|
|
13108
13108
|
const A = await Mg(this, dl, EC).call(this);
|
|
13109
13109
|
Ed.updateRttObject(A);
|
|
@@ -13123,7 +13123,7 @@ const hr = class hr {
|
|
|
13123
13123
|
if (!this._instance) {
|
|
13124
13124
|
if (!A) throw new Error("首次调用必须传入配置参数");
|
|
13125
13125
|
const { url: t, appKey: n, appSecret: r, agentNo: i } = A;
|
|
13126
|
-
Ss = t || "https://aicc-api.yescloudy.com", Sd = n, Bd = r, kh = i,
|
|
13126
|
+
Ss = t || "https://aicc-api.yescloudy.com", Sd = n, Bd = r, kh = i, gr._creatingInstance = !0, this._instance = new gr(), delete gr._creatingInstance, window.addEventListener("beforeunload", () => {
|
|
13127
13127
|
var o;
|
|
13128
13128
|
(o = this._instance) == null || o.destroy();
|
|
13129
13129
|
});
|
|
@@ -13170,7 +13170,7 @@ const hr = class hr {
|
|
|
13170
13170
|
}
|
|
13171
13171
|
async destroy() {
|
|
13172
13172
|
var A;
|
|
13173
|
-
|
|
13173
|
+
gr._instance && (await this.destroyRtc(), clearInterval(Se(this, to)), Qt.__internalClose(), this.offAll(), (A = Se(this, Ba)) == null || A.call(this), xn(this, Cn, null), xn(this, Yr, !1), gr._instance = null, AA.reset(), AA.updateSelectOutNumber(""));
|
|
13174
13174
|
}
|
|
13175
13175
|
get call_api() {
|
|
13176
13176
|
const A = (t) => (...n) => {
|
|
@@ -13210,8 +13210,8 @@ const hr = class hr {
|
|
|
13210
13210
|
};
|
|
13211
13211
|
Cn = new WeakMap(), Fn = new WeakMap(), ut = new WeakMap(), to = new WeakMap(), Yr = new WeakMap(), Ba = new WeakMap(), no = new WeakMap(), Vl = new WeakMap(), dl = new WeakSet(), EC = async function() {
|
|
13212
13212
|
return Se(this, Cn) ? Se(this, Cn).getNetworkStats() : {};
|
|
13213
|
-
},
|
|
13214
|
-
let
|
|
13213
|
+
}, gr._instance = null;
|
|
13214
|
+
let mr = gr;
|
|
13215
13215
|
var $t = function() {
|
|
13216
13216
|
return $t = Object.assign || function(A) {
|
|
13217
13217
|
for (var t, n = 1, r = arguments.length; n < r; n++) {
|
|
@@ -13244,7 +13244,7 @@ function r1(e, A) {
|
|
|
13244
13244
|
function wC(e) {
|
|
13245
13245
|
return e.trim();
|
|
13246
13246
|
}
|
|
13247
|
-
function
|
|
13247
|
+
function Vr(e, A) {
|
|
13248
13248
|
return (e = A.exec(e)) ? e[0] : e;
|
|
13249
13249
|
}
|
|
13250
13250
|
function Be(e, A, t) {
|
|
@@ -13273,7 +13273,7 @@ function i1(e, A) {
|
|
|
13273
13273
|
}
|
|
13274
13274
|
function Zh(e, A) {
|
|
13275
13275
|
return e.filter(function(t) {
|
|
13276
|
-
return !
|
|
13276
|
+
return !Vr(t, A);
|
|
13277
13277
|
});
|
|
13278
13278
|
}
|
|
13279
13279
|
var Sl = 1, go = 1, BC = 0, Bn = 0, mt = 0, Mo = "";
|
|
@@ -13588,7 +13588,7 @@ function QC(e, A, t) {
|
|
|
13588
13588
|
return Ke + e + Be(e, /(\w+).+(:[^]+)/, Ke + "box-$1$2" + et + "flex-$1$2") + e;
|
|
13589
13589
|
// align-self
|
|
13590
13590
|
case 5443:
|
|
13591
|
-
return Ke + e + et + "flex-item-" + Be(e, /flex-|-self/g, "") + (
|
|
13591
|
+
return Ke + e + et + "flex-item-" + Be(e, /flex-|-self/g, "") + (Vr(e, /flex-|baseline/) ? "" : et + "grid-row-" + Be(e, /flex-|-self/g, "")) + e;
|
|
13592
13592
|
// align-content
|
|
13593
13593
|
case 4675:
|
|
13594
13594
|
return Ke + e + et + "flex-line-pack" + Be(e, /align-content|flex-|-self/g, "") + e;
|
|
@@ -13616,7 +13616,7 @@ function QC(e, A, t) {
|
|
|
13616
13616
|
return Be(Be(e, /(.+:)(flex-)?(.*)/, Ke + "box-pack:$3" + et + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + Ke + e + e;
|
|
13617
13617
|
// justify-self
|
|
13618
13618
|
case 4200:
|
|
13619
|
-
if (!
|
|
13619
|
+
if (!Vr(e, /flex-|baseline/)) return et + "grid-column-align" + Vo(e, A) + e;
|
|
13620
13620
|
break;
|
|
13621
13621
|
// grid-template-(columns|rows)
|
|
13622
13622
|
case 2592:
|
|
@@ -13626,13 +13626,13 @@ function QC(e, A, t) {
|
|
|
13626
13626
|
case 4384:
|
|
13627
13627
|
case 3616:
|
|
13628
13628
|
return t && t.some(function(n, r) {
|
|
13629
|
-
return A = r,
|
|
13630
|
-
}) ? ~Bs(e + (t = t[A].value), "span", 0) ? e : et + Be(e, "-start", "") + e + et + "grid-row-span:" + (~Bs(t, "span", 0) ?
|
|
13629
|
+
return A = r, Vr(n.props, /grid-\w+-end/);
|
|
13630
|
+
}) ? ~Bs(e + (t = t[A].value), "span", 0) ? e : et + Be(e, "-start", "") + e + et + "grid-row-span:" + (~Bs(t, "span", 0) ? Vr(t, /\d+/) : +Vr(t, /\d+/) - +Vr(e, /\d+/)) + ";" : et + Be(e, "-start", "") + e;
|
|
13631
13631
|
// grid-(row|column)-end
|
|
13632
13632
|
case 4896:
|
|
13633
13633
|
case 4128:
|
|
13634
13634
|
return t && t.some(function(n) {
|
|
13635
|
-
return
|
|
13635
|
+
return Vr(n.props, /grid-\w+-start/);
|
|
13636
13636
|
}) ? e : et + Be(Be(e, "-end", "-span"), "span ", "") + e;
|
|
13637
13637
|
// (margin|padding)-inline-(start|end)
|
|
13638
13638
|
case 4095:
|
|
@@ -13744,7 +13744,7 @@ function m1(e, A, t, n) {
|
|
|
13744
13744
|
case wl:
|
|
13745
13745
|
if (e.length)
|
|
13746
13746
|
return i1(t = e.props, function(r) {
|
|
13747
|
-
switch (
|
|
13747
|
+
switch (Vr(r, n = /(::plac\w+|:read-\w+)/)) {
|
|
13748
13748
|
// :read-(only|write)
|
|
13749
13749
|
case ":read-only":
|
|
13750
13750
|
case ":read-write":
|
|
@@ -17726,14 +17726,14 @@ const LB = (e) => {
|
|
|
17726
17726
|
resetStyle: !1
|
|
17727
17727
|
}), Ul = /* @__PURE__ */ _.createContext(void 0);
|
|
17728
17728
|
process.env.NODE_ENV !== "production" && (Ul.displayName = "zIndexContext");
|
|
17729
|
-
const
|
|
17730
|
-
Modal:
|
|
17731
|
-
Drawer:
|
|
17732
|
-
Popover:
|
|
17733
|
-
Popconfirm:
|
|
17734
|
-
Tooltip:
|
|
17735
|
-
Tour:
|
|
17736
|
-
FloatButton:
|
|
17729
|
+
const dr = 100, WB = 10, o0 = dr * WB, zB = o0 + dr, a0 = {
|
|
17730
|
+
Modal: dr,
|
|
17731
|
+
Drawer: dr,
|
|
17732
|
+
Popover: dr,
|
|
17733
|
+
Popconfirm: dr,
|
|
17734
|
+
Tooltip: dr,
|
|
17735
|
+
Tour: dr,
|
|
17736
|
+
FloatButton: dr
|
|
17737
17737
|
}, XB = {
|
|
17738
17738
|
SelectLike: 50,
|
|
17739
17739
|
Dropdown: 50,
|
|
@@ -19655,7 +19655,7 @@ function pi(e) {
|
|
|
19655
19655
|
t.attr && UQ.includes(r)) && (n[r] = e[r]);
|
|
19656
19656
|
}), n;
|
|
19657
19657
|
}
|
|
19658
|
-
const
|
|
19658
|
+
const ir = (e) => {
|
|
19659
19659
|
const [, , , , A] = bn();
|
|
19660
19660
|
return A ? `${e}-css-var` : "";
|
|
19661
19661
|
}, zr = (e) => {
|
|
@@ -22373,7 +22373,7 @@ const aR = (e, A) => {
|
|
|
22373
22373
|
children: h,
|
|
22374
22374
|
style: q,
|
|
22375
22375
|
title: I
|
|
22376
|
-
} = e, S = oR(e, ["prefixCls", "className", "rootClassName", "children", "style", "title"]), B = o("radio", f), M = ((r == null ? void 0 : r.optionType) || i) === "button", g = M ? `${B}-button` : B, Q =
|
|
22376
|
+
} = e, S = oR(e, ["prefixCls", "className", "rootClassName", "children", "style", "title"]), B = o("radio", f), M = ((r == null ? void 0 : r.optionType) || i) === "button", g = M ? `${B}-button` : B, Q = ir(B), [v, E, p] = zC(B, Q), y = Object.assign({}, S), b = c.useContext(qr);
|
|
22377
22377
|
r && (y.name = r.name, y.onChange = d, y.checked = e.value === r.value, y.disabled = (t = y.disabled) !== null && t !== void 0 ? t : r.disabled), y.disabled = (n = y.disabled) !== null && n !== void 0 ? n : b;
|
|
22378
22378
|
const w = nA(`${g}-wrapper`, {
|
|
22379
22379
|
[`${g}-wrapper-checked`]: y.checked,
|
|
@@ -22455,7 +22455,7 @@ const zd = Rf ? (
|
|
|
22455
22455
|
}), y = c.useCallback((k) => {
|
|
22456
22456
|
const W = E, Z = k.target.value;
|
|
22457
22457
|
"value" in e || p(Z), Z !== W && (B == null || B(k));
|
|
22458
|
-
}, [E, p, B]), b = t("radio", i), w = `${b}-group`, R =
|
|
22458
|
+
}, [E, p, B]), b = t("radio", i), w = `${b}-group`, R = ir(b), [D, T, F] = zC(b, R);
|
|
22459
22459
|
let G = V;
|
|
22460
22460
|
s && s.length > 0 && (G = s.map((k) => typeof k == "string" || typeof k == "number" ? /* @__PURE__ */ c.createElement(Ia, {
|
|
22461
22461
|
key: k.toString(),
|
|
@@ -23012,7 +23012,7 @@ var SR = `
|
|
|
23012
23012
|
`).concat(o, `
|
|
23013
23013
|
}`)), Le(function() {
|
|
23014
23014
|
var a = A.current, s = Al(a);
|
|
23015
|
-
|
|
23015
|
+
pr(o, "@ant-design-icons", {
|
|
23016
23016
|
prepend: !i,
|
|
23017
23017
|
csp: n,
|
|
23018
23018
|
attachTo: s
|
|
@@ -23185,13 +23185,13 @@ const Ua = /* @__PURE__ */ Qn((e, A) => {
|
|
|
23185
23185
|
style: p,
|
|
23186
23186
|
classNames: y,
|
|
23187
23187
|
styles: b
|
|
23188
|
-
} = Ir("input"), w = M("input", t), R = RA(null), D =
|
|
23188
|
+
} = Ir("input"), w = M("input", t), R = RA(null), D = ir(w), [T, F, G] = n0(w, h), [N] = r0(w, D), {
|
|
23189
23189
|
compactSize: K,
|
|
23190
23190
|
compactItemClassnames: Y
|
|
23191
23191
|
} = So(w, g), k = zr((qA) => {
|
|
23192
23192
|
var OA;
|
|
23193
23193
|
return (OA = i ?? K) !== null && OA !== void 0 ? OA : qA;
|
|
23194
|
-
}), W = _.useContext(
|
|
23194
|
+
}), W = _.useContext(qr), Z = o ?? W, {
|
|
23195
23195
|
status: P,
|
|
23196
23196
|
hasFeedback: H,
|
|
23197
23197
|
feedbackIcon: X
|
|
@@ -23377,7 +23377,7 @@ const ZR = /* @__PURE__ */ c.forwardRef((e, A) => {
|
|
|
23377
23377
|
aria: !0,
|
|
23378
23378
|
data: !0,
|
|
23379
23379
|
attr: !0
|
|
23380
|
-
}), Q =
|
|
23380
|
+
}), Q = ir(M), [v, E, p] = kR(M, Q), y = zr((H) => r ?? H), b = c.useContext(jn), w = Zl(b.status, d), R = c.useMemo(() => Object.assign(Object.assign({}, b), {
|
|
23381
23381
|
status: w,
|
|
23382
23382
|
hasFeedback: !1,
|
|
23383
23383
|
feedbackIcon: null
|
|
@@ -23489,7 +23489,7 @@ const PR = (e) => e ? /* @__PURE__ */ c.createElement(G0, null) : /* @__PURE__ *
|
|
|
23489
23489
|
action: n = "click",
|
|
23490
23490
|
visibilityToggle: r = !0,
|
|
23491
23491
|
iconRender: i = PR
|
|
23492
|
-
} = e, o = c.useContext(
|
|
23492
|
+
} = e, o = c.useContext(qr), a = t ?? o, s = typeof r == "object" && r.visible !== void 0, [l, u] = Ie(() => s ? r.visible : !1), V = RA(null);
|
|
23493
23493
|
c.useEffect(() => {
|
|
23494
23494
|
s && u(r.visible);
|
|
23495
23495
|
}, [s, r]);
|
|
@@ -25024,7 +25024,7 @@ const $D = {
|
|
|
25024
25024
|
style: K,
|
|
25025
25025
|
classNames: Y,
|
|
25026
25026
|
styles: k
|
|
25027
|
-
} = Ir("button"), W = (t = v ?? G) !== null && t !== void 0 ? t : !0, Z = T("btn", i), [P, H, X] = jD(Z), J = dt(
|
|
25027
|
+
} = Ir("button"), W = (t = v ?? G) !== null && t !== void 0 ? t : !0, Z = T("btn", i), [P, H, X] = jD(Z), J = dt(qr), tA = f ?? J, rA = dt(N0), aA = wn(() => XD(r), [r]), [$, VA] = Ie(aA.loading), [L, sA] = Ie(!1), iA = RA(null), vA = fi(A, iA), MA = IE.count(h) === 1 && !q && !Vs(w), qA = RA(!0);
|
|
25028
25028
|
_.useEffect(() => (qA.current = !1, () => {
|
|
25029
25029
|
qA.current = !0;
|
|
25030
25030
|
}), []), Le(() => {
|
|
@@ -25524,11 +25524,11 @@ var px = (
|
|
|
25524
25524
|
});
|
|
25525
25525
|
var mx = function() {
|
|
25526
25526
|
return typeof nl.ResizeObserver < "u" ? nl.ResizeObserver : tv;
|
|
25527
|
-
}(),
|
|
25527
|
+
}(), hr = /* @__PURE__ */ new Map();
|
|
25528
25528
|
function nv(e) {
|
|
25529
25529
|
e.forEach(function(A) {
|
|
25530
25530
|
var t, n = A.target;
|
|
25531
|
-
(t =
|
|
25531
|
+
(t = hr.get(n)) === null || t === void 0 || t.forEach(function(r) {
|
|
25532
25532
|
return r(n);
|
|
25533
25533
|
});
|
|
25534
25534
|
});
|
|
@@ -25537,10 +25537,10 @@ var rv = new mx(nv);
|
|
|
25537
25537
|
process.env.NODE_ENV;
|
|
25538
25538
|
process.env.NODE_ENV;
|
|
25539
25539
|
function Cx(e, A) {
|
|
25540
|
-
|
|
25540
|
+
hr.has(e) || (hr.set(e, /* @__PURE__ */ new Set()), rv.observe(e)), hr.get(e).add(A);
|
|
25541
25541
|
}
|
|
25542
25542
|
function vx(e, A) {
|
|
25543
|
-
|
|
25543
|
+
hr.has(e) && (hr.get(e).delete(A), hr.get(e).size || (rv.unobserve(e), hr.delete(e)));
|
|
25544
25544
|
}
|
|
25545
25545
|
var Ex = /* @__PURE__ */ function(e) {
|
|
25546
25546
|
vr(t, e);
|
|
@@ -25947,7 +25947,7 @@ const Ox = /* @__PURE__ */ Qn((e, A) => {
|
|
|
25947
25947
|
style: M,
|
|
25948
25948
|
classNames: g,
|
|
25949
25949
|
styles: Q
|
|
25950
|
-
} = Ir("textArea"), v = c.useContext(
|
|
25950
|
+
} = Ir("textArea"), v = c.useContext(qr), E = o ?? v, {
|
|
25951
25951
|
status: p,
|
|
25952
25952
|
hasFeedback: y,
|
|
25953
25953
|
feedbackIcon: b
|
|
@@ -25966,7 +25966,7 @@ const Ox = /* @__PURE__ */ Qn((e, A) => {
|
|
|
25966
25966
|
}
|
|
25967
25967
|
};
|
|
25968
25968
|
});
|
|
25969
|
-
const D = h("input", n), T =
|
|
25969
|
+
const D = h("input", n), T = ir(D), [F, G, N] = n0(D, u), [K] = Fx(D, T), {
|
|
25970
25970
|
compactSize: Y,
|
|
25971
25971
|
compactItemClassnames: k
|
|
25972
25972
|
} = So(D, q), W = zr((X) => {
|
|
@@ -26048,7 +26048,7 @@ function Gx(e) {
|
|
|
26048
26048
|
var a = getComputedStyle(e, "::-webkit-scrollbar"), s = parseInt(a.width, 10), l = parseInt(a.height, 10);
|
|
26049
26049
|
try {
|
|
26050
26050
|
var u = s ? "width: ".concat(a.width, ";") : "", V = l ? "height: ".concat(a.height, ";") : "";
|
|
26051
|
-
|
|
26051
|
+
pr(`
|
|
26052
26052
|
#`.concat(A, `::-webkit-scrollbar {
|
|
26053
26053
|
`).concat(u, `
|
|
26054
26054
|
`).concat(V, `
|
|
@@ -26081,7 +26081,7 @@ function Kx(e) {
|
|
|
26081
26081
|
nt(function() {
|
|
26082
26082
|
if (A) {
|
|
26083
26083
|
var i = Yx(document.body).width, o = Nx();
|
|
26084
|
-
|
|
26084
|
+
pr(`
|
|
26085
26085
|
html body {
|
|
26086
26086
|
overflow-y: hidden;
|
|
26087
26087
|
`.concat(o ? "width: calc(100% - ".concat(i, "px);") : "", `
|
|
@@ -26373,8 +26373,8 @@ function Xx(e, A, t, n, r, i, o) {
|
|
|
26373
26373
|
e || m();
|
|
26374
26374
|
var C = at(function() {
|
|
26375
26375
|
if (A && t && e) {
|
|
26376
|
-
let hn = function(Ro,
|
|
26377
|
-
var Br = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : SA, Do = k.x + Ro, Za = k.y +
|
|
26376
|
+
let hn = function(Ro, sr) {
|
|
26377
|
+
var Br = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : SA, Do = k.x + Ro, Za = k.y + sr, nc = Do + L, rc = Za + VA, ic = Math.max(Do, Br.left), zA = Math.max(Za, Br.top), he = Math.min(nc, Br.right), it = Math.min(rc, Br.bottom);
|
|
26378
26378
|
return Math.max(0, (he - ic) * (it - zA));
|
|
26379
26379
|
}, yi = function() {
|
|
26380
26380
|
XA = k.y + dA, re = XA + VA, Ue = k.x + oA, de = Ue + L;
|
|
@@ -26421,8 +26421,8 @@ function Xx(e, A, t, n, r, i, o) {
|
|
|
26421
26421
|
return;
|
|
26422
26422
|
var GA = T.offset, $A = T.targetOffset, ce = Wf(k, GA), Ae = z(ce, 2), DA = Ae[0], wA = Ae[1], oe = Wf(G, $A), se = z(oe, 2), qe = se[0], Re = se[1];
|
|
26423
26423
|
G.x -= qe, G.y -= Re;
|
|
26424
|
-
var $e = T.points || [], Xe = z($e, 2), rt = Xe[0], _e = Xe[1], He = zf(_e), we = zf(rt), pe = Ri(G, He), KA = Ri(k, we), j = O({}, T), oA = pe.x - KA.x + DA, dA = pe.y - KA.y + wA, YA = hn(oA, dA), BA = hn(oA, dA, uA), EA = Ri(G, ["t", "l"]), jA = Ri(k, ["t", "l"]), WA = Ri(G, ["b", "r"]), ZA = Ri(k, ["b", "r"]), x = T.overflow || {}, lA = x.adjustX, hA = x.adjustY, kA = x.shiftX, JA = x.shiftY, ae = function(
|
|
26425
|
-
return typeof
|
|
26424
|
+
var $e = T.points || [], Xe = z($e, 2), rt = Xe[0], _e = Xe[1], He = zf(_e), we = zf(rt), pe = Ri(G, He), KA = Ri(k, we), j = O({}, T), oA = pe.x - KA.x + DA, dA = pe.y - KA.y + wA, YA = hn(oA, dA), BA = hn(oA, dA, uA), EA = Ri(G, ["t", "l"]), jA = Ri(k, ["t", "l"]), WA = Ri(G, ["b", "r"]), ZA = Ri(k, ["b", "r"]), x = T.overflow || {}, lA = x.adjustX, hA = x.adjustY, kA = x.shiftX, JA = x.shiftY, ae = function(sr) {
|
|
26425
|
+
return typeof sr == "boolean" ? sr : sr >= 0;
|
|
26426
26426
|
}, XA, re, Ue, de;
|
|
26427
26427
|
yi();
|
|
26428
26428
|
var Ee = ae(hA), mA = we[0] === He[0];
|
|
@@ -26454,9 +26454,9 @@ function Xx(e, A, t, n, r, i, o) {
|
|
|
26454
26454
|
if (Jt && we[1] === "r" && (Ue < LA.left || f.current.lr)) {
|
|
26455
26455
|
var jt = oA;
|
|
26456
26456
|
Jn ? jt += L - iA : jt = WA.x - jA.x - DA;
|
|
26457
|
-
var
|
|
26457
|
+
var or = hn(jt, dA), Dn = hn(jt, dA, uA);
|
|
26458
26458
|
// Of course use larger one
|
|
26459
|
-
|
|
26459
|
+
or > YA || or === YA && (!FA || // Choose recommend one
|
|
26460
26460
|
Dn >= BA) ? (f.current.lr = !0, oA = jt, DA = -DA, j.points = [Tr(we, 1), Tr(He, 1)]) : f.current.lr = !1;
|
|
26461
26461
|
}
|
|
26462
26462
|
yi();
|
|
@@ -26464,7 +26464,7 @@ function Xx(e, A, t, n, r, i, o) {
|
|
|
26464
26464
|
typeof Lt == "number" && (Ue < uA.left && (oA -= Ue - uA.left - DA, G.x + iA < uA.left + Lt && (oA += G.x - uA.left + iA - Lt)), de > uA.right && (oA -= de - uA.right - DA, G.x > uA.right - Lt && (oA += G.x - uA.right + Lt)));
|
|
26465
26465
|
var An = JA === !0 ? 0 : JA;
|
|
26466
26466
|
typeof An == "number" && (XA < uA.top && (dA -= XA - uA.top - wA, G.y + sA < uA.top + An && (dA += G.y - uA.top + sA - An)), re > uA.bottom && (dA -= re - uA.bottom - wA, G.y > uA.bottom - An && (dA += G.y - uA.bottom + An)));
|
|
26467
|
-
var dn = k.x + oA, gn = dn + L, Pn = k.y + dA,
|
|
26467
|
+
var dn = k.x + oA, gn = dn + L, Pn = k.y + dA, ar = Pn + VA, ye = G.x, NA = ye + iA, ge = G.y, ve = ge + sA, be = Math.max(dn, ye), xe = Math.min(gn, NA), wt = (be + xe) / 2, St = wt - dn, Pt = Math.max(Pn, ge), en = Math.min(ar, ve), Wt = (Pt + en) / 2, zt = Wt - Pn;
|
|
26468
26468
|
o == null || o(A, j);
|
|
26469
26469
|
var Et = ee.right - k.x - (oA + k.width), Xr = ee.bottom - k.y - (dA + k.height);
|
|
26470
26470
|
ne === 1 && (oA = Math.round(oA), Et = Math.round(Et)), HA === 1 && (dA = Math.round(dA), Xr = Math.round(Xr));
|
|
@@ -26600,7 +26600,7 @@ function eT() {
|
|
|
26600
26600
|
}, [pe]);
|
|
26601
26601
|
var lA = c.useState(null), hA = z(lA, 2), kA = hA[0], JA = hA[1], ae = c.useState(null), XA = z(ae, 2), re = XA[0], Ue = XA[1], de = function(he) {
|
|
26602
26602
|
Ue([he.clientX, he.clientY]);
|
|
26603
|
-
}, Ee = Xx(pe, LA, k && re !== null ? re : ce, R, T, F, Z), mA = z(Ee, 11), QA = mA[0], le = mA[1], ue = mA[2], Fe = mA[3], Ot = mA[4], ct = mA[5], Jt = mA[6], Jn = mA[7], Zt = mA[8], Kt = mA[9], Rn = mA[10], jt = Px(MA, s, l, u),
|
|
26603
|
+
}, Ee = Xx(pe, LA, k && re !== null ? re : ce, R, T, F, Z), mA = z(Ee, 11), QA = mA[0], le = mA[1], ue = mA[2], Fe = mA[3], Ot = mA[4], ct = mA[5], Jt = mA[6], Jn = mA[7], Zt = mA[8], Kt = mA[9], Rn = mA[10], jt = Px(MA, s, l, u), or = z(jt, 2), Dn = or[0], Lt = or[1], An = Dn.has("click"), dn = Lt.has("click") || Lt.has("contextMenu"), gn = at(function() {
|
|
26604
26604
|
ZA || Rn();
|
|
26605
26605
|
}), Pn = function() {
|
|
26606
26606
|
j.current && k && dn && EA(!1);
|
|
@@ -26610,7 +26610,7 @@ function eT() {
|
|
|
26610
26610
|
}, [re, R]), nt(function() {
|
|
26611
26611
|
pe && !(T != null && T[R]) && gn();
|
|
26612
26612
|
}, [JSON.stringify(F)]);
|
|
26613
|
-
var
|
|
26613
|
+
var ar = c.useMemo(function() {
|
|
26614
26614
|
var zA = zx(T, i, Kt, k);
|
|
26615
26615
|
return nA(zA, K == null ? void 0 : K(Kt));
|
|
26616
26616
|
}, [Kt, K, T, i, k]);
|
|
@@ -26675,8 +26675,8 @@ function eT() {
|
|
|
26675
26675
|
It[lt - 1] = arguments[lt];
|
|
26676
26676
|
(he = se.onContextMenu) === null || he === void 0 || he.call.apply(he, [se, zA].concat(It));
|
|
26677
26677
|
}), $ && (qe.className = nA(se.className, $));
|
|
26678
|
-
var
|
|
26679
|
-
|
|
26678
|
+
var sr = c.useRef(!1);
|
|
26679
|
+
sr.current || (sr.current = v || pe || ZA);
|
|
26680
26680
|
var Br = O(O({}, se), qe), Do = {}, Za = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
|
|
26681
26681
|
Za.forEach(function(zA) {
|
|
26682
26682
|
L[zA] && (Do[zA] = function() {
|
|
@@ -26695,14 +26695,14 @@ function eT() {
|
|
|
26695
26695
|
onResize: en
|
|
26696
26696
|
}, /* @__PURE__ */ c.createElement(cv, {
|
|
26697
26697
|
getTriggerDOMNode: VA
|
|
26698
|
-
}, nc)),
|
|
26698
|
+
}, nc)), sr.current && /* @__PURE__ */ c.createElement(jf.Provider, {
|
|
26699
26699
|
value: FA
|
|
26700
26700
|
}, /* @__PURE__ */ c.createElement(lv, {
|
|
26701
26701
|
portal: e,
|
|
26702
26702
|
ref: HA,
|
|
26703
26703
|
prefixCls: i,
|
|
26704
26704
|
popup: y,
|
|
26705
|
-
className: nA(b,
|
|
26705
|
+
className: nA(b, ar),
|
|
26706
26706
|
style: w,
|
|
26707
26707
|
target: ce,
|
|
26708
26708
|
onMouseEnter: yi,
|
|
@@ -28122,12 +28122,12 @@ var iF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28122
28122
|
postState: function(ge) {
|
|
28123
28123
|
return Array.isArray(ge) ? ge : ge == null ? _r : [ge];
|
|
28124
28124
|
}
|
|
28125
|
-
}), Rn = z(Kt, 2), jt = Rn[0],
|
|
28125
|
+
}), Rn = z(Kt, 2), jt = Rn[0], or = Rn[1], Dn = function(ge) {
|
|
28126
28126
|
if (R) {
|
|
28127
28127
|
var ve = ge.key, be = jt.includes(ve), xe;
|
|
28128
28128
|
T ? be ? xe = jt.filter(function(St) {
|
|
28129
28129
|
return St !== ve;
|
|
28130
|
-
}) : xe = [].concat(yA(jt), [ve]) : xe = [ve],
|
|
28130
|
+
}) : xe = [].concat(yA(jt), [ve]) : xe = [ve], or(xe);
|
|
28131
28131
|
var wt = O(O({}, ge), {}, {
|
|
28132
28132
|
selectedKeys: xe
|
|
28133
28133
|
});
|
|
@@ -28161,7 +28161,7 @@ var iF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28161
28161
|
_internalRenderMenuItem: qA,
|
|
28162
28162
|
_internalRenderSubMenuItem: OA
|
|
28163
28163
|
};
|
|
28164
|
-
}, [qA, OA]),
|
|
28164
|
+
}, [qA, OA]), ar = YA !== "horizontal" || S ? SA : (
|
|
28165
28165
|
// Need wrap for overflow dropdown that do not response for open
|
|
28166
28166
|
SA.map(function(NA, ge) {
|
|
28167
28167
|
return (
|
|
@@ -28183,7 +28183,7 @@ var iF = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
28183
28183
|
style: a,
|
|
28184
28184
|
role: "menu",
|
|
28185
28185
|
tabIndex: u,
|
|
28186
|
-
data:
|
|
28186
|
+
data: ar,
|
|
28187
28187
|
renderRawItem: function(ge) {
|
|
28188
28188
|
return ge;
|
|
28189
28189
|
},
|
|
@@ -30081,7 +30081,7 @@ const NF = {
|
|
|
30081
30081
|
other: {
|
|
30082
30082
|
motionName: `${l}-zoom-big`
|
|
30083
30083
|
}
|
|
30084
|
-
}, R = i("menu", u || r.prefixCls), D =
|
|
30084
|
+
}, R = i("menu", u || r.prefixCls), D = ir(R), [T, F, G] = GF(R, D, !n), N = nA(`${R}-${f}`, s == null ? void 0 : s.className, V), K = c.useMemo(() => {
|
|
30085
30085
|
var k, W;
|
|
30086
30086
|
if (typeof m == "function" || Au(m))
|
|
30087
30087
|
return m || null;
|
|
@@ -30191,7 +30191,7 @@ const Na = (e) => {
|
|
|
30191
30191
|
y.deprecated(!(sA in e), sA, iA);
|
|
30192
30192
|
});
|
|
30193
30193
|
}
|
|
30194
|
-
const R = v("dropdown", r), D =
|
|
30194
|
+
const R = v("dropdown", r), D = ir(R), [T, F, G] = PB(R, D), [, N] = bn(), K = c.Children.only(cT(i) ? /* @__PURE__ */ c.createElement("span", null, i) : i), Y = Zn(K, {
|
|
30195
30195
|
className: nA(`${R}-trigger`, {
|
|
30196
30196
|
[`${R}-rtl`]: E === "rtl"
|
|
30197
30197
|
}, K.props.className),
|
|
@@ -30810,7 +30810,7 @@ const uU = {
|
|
|
30810
30810
|
content: i
|
|
30811
30811
|
} = e, o = cU(e, ["prefixCls", "className", "type", "icon", "content"]), {
|
|
30812
30812
|
getPrefixCls: a
|
|
30813
|
-
} = c.useContext(Ye), s = A || a("message"), l =
|
|
30813
|
+
} = c.useContext(Ye), s = A || a("message"), l = ir(s), [u, V, d] = s0(s, l);
|
|
30814
30814
|
return u(/* @__PURE__ */ c.createElement(Yv, Object.assign({}, o, {
|
|
30815
30815
|
prefixCls: s,
|
|
30816
30816
|
className: nA(t, V, `${s}-notice-pure-panel`, d, l),
|
|
@@ -30858,7 +30858,7 @@ const fU = 8, qU = 3, mU = (e) => {
|
|
|
30858
30858
|
children: A,
|
|
30859
30859
|
prefixCls: t
|
|
30860
30860
|
} = e;
|
|
30861
|
-
const n =
|
|
30861
|
+
const n = ir(t), [r, i, o] = s0(t, n);
|
|
30862
30862
|
return r(/* @__PURE__ */ c.createElement(nU, {
|
|
30863
30863
|
classNames: {
|
|
30864
30864
|
list: nA(i, o, n)
|
|
@@ -32040,13 +32040,13 @@ var iO = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
32040
32040
|
showSearch: OA
|
|
32041
32041
|
}
|
|
32042
32042
|
}));
|
|
32043
|
-
var
|
|
32043
|
+
var or = function() {
|
|
32044
32044
|
var NA;
|
|
32045
32045
|
C == null || C(), (NA = HA.current) === null || NA === void 0 || NA.focus(), V([], {
|
|
32046
32046
|
type: "clear",
|
|
32047
32047
|
values: u
|
|
32048
32048
|
}), x("", !1, !1);
|
|
32049
|
-
}, Dn = UU(r,
|
|
32049
|
+
}, Dn = UU(r, or, u, T, N, q, se, h), Lt = Dn.allowClear, An = Dn.clearIcon, dn = /* @__PURE__ */ c.createElement(K, {
|
|
32050
32050
|
ref: GA
|
|
32051
32051
|
}), gn = nA(r, i, U(U(U(U(U(U(U(U(U(U({}, "".concat(r, "-focused"), DA), "".concat(r, "-multiple"), qA), "".concat(r, "-single"), !qA), "".concat(r, "-allow-clear"), T), "".concat(r, "-show-arrow"), Rn), "".concat(r, "-disabled"), q), "".concat(r, "-loading"), I), "".concat(r, "-open"), oA), "".concat(r, "-customize-input"), qe), "".concat(r, "-show-search"), OA)), Pn = /* @__PURE__ */ c.createElement(Xv, {
|
|
32052
32052
|
ref: ne,
|
|
@@ -32100,8 +32100,8 @@ var iO = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
32100
32100
|
onRemove: de,
|
|
32101
32101
|
tokenWithEnter: EA,
|
|
32102
32102
|
onInputBlur: Ee
|
|
32103
|
-
}))),
|
|
32104
|
-
return Re ?
|
|
32103
|
+
}))), ar;
|
|
32104
|
+
return Re ? ar = Pn : ar = /* @__PURE__ */ c.createElement("div", UA({
|
|
32105
32105
|
className: gn
|
|
32106
32106
|
}, TA, {
|
|
32107
32107
|
ref: LA,
|
|
@@ -32115,7 +32115,7 @@ var iO = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
32115
32115
|
values: u
|
|
32116
32116
|
}), Pn, jt, Lt && An), /* @__PURE__ */ c.createElement(Jv.Provider, {
|
|
32117
32117
|
value: Kt
|
|
32118
|
-
},
|
|
32118
|
+
}, ar);
|
|
32119
32119
|
});
|
|
32120
32120
|
process.env.NODE_ENV !== "production" && (_v.displayName = "BaseSelect");
|
|
32121
32121
|
var qg = function() {
|
|
@@ -33807,7 +33807,7 @@ const uE = "SECRET_COMBOBOX_MODE_DO_NOT_USE", VE = (e, A) => {
|
|
|
33807
33807
|
} = c.useContext(Ye), Y = Ir("select"), [, k] = bn(), W = d ?? (k == null ? void 0 : k.controlHeight), Z = D("select", n), P = D(), H = B ?? F, {
|
|
33808
33808
|
compactSize: X,
|
|
33809
33809
|
compactItemClassnames: J
|
|
33810
|
-
} = So(Z, H), [tA, rA] = Xd("select", Q, r), aA =
|
|
33810
|
+
} = So(Z, H), [tA, rA] = Xd("select", Q, r), aA = ir(Z), [$, VA, L] = vQ(Z, aA), sA = c.useMemo(() => {
|
|
33811
33811
|
const {
|
|
33812
33812
|
mode: qe
|
|
33813
33813
|
} = e;
|
|
@@ -33842,7 +33842,7 @@ const uE = "SECRET_COMBOBOX_MODE_DO_NOT_USE", VE = (e, A) => {
|
|
|
33842
33842
|
}, o, L, aA, VA), ce = zr((qe) => {
|
|
33843
33843
|
var Re;
|
|
33844
33844
|
return (Re = f ?? X) !== null && Re !== void 0 ? Re : qe;
|
|
33845
|
-
}), Ae = c.useContext(
|
|
33845
|
+
}), Ae = c.useContext(qr), DA = m ?? Ae, wA = nA({
|
|
33846
33846
|
[`${Z}-lg`]: ce === "large",
|
|
33847
33847
|
[`${Z}-sm`]: ce === "small",
|
|
33848
33848
|
[`${Z}-rtl`]: H === "rtl",
|
|
@@ -34112,7 +34112,7 @@ process.env.NODE_ENV !== "production" && (Eg.displayName = "Spin");
|
|
|
34112
34112
|
const ak = ({ onPressEnter: e }) => {
|
|
34113
34113
|
const [A, t] = Ie(""), [n, r] = Ie([]), i = async () => {
|
|
34114
34114
|
try {
|
|
34115
|
-
await
|
|
34115
|
+
await mr.getInstance().agent_api.getCallRecord({
|
|
34116
34116
|
success: (s) => {
|
|
34117
34117
|
r(s.data || []);
|
|
34118
34118
|
}
|
|
@@ -34176,7 +34176,7 @@ const ak = ({ onPressEnter: e }) => {
|
|
|
34176
34176
|
"div",
|
|
34177
34177
|
{
|
|
34178
34178
|
className: "ysyt-record-item",
|
|
34179
|
-
onClick: () =>
|
|
34179
|
+
onClick: () => mr.getInstance().call_api.makeCall(V),
|
|
34180
34180
|
children: [
|
|
34181
34181
|
u === 0 && /* @__PURE__ */ gA.jsx(Oe, { name: "outcall-icon", color: "#33A94B" }),
|
|
34182
34182
|
u === 1 && /* @__PURE__ */ gA.jsx(Oe, { name: "incall-icon", color: "#33A94B" }),
|
|
@@ -34351,7 +34351,7 @@ const Ek = {
|
|
|
34351
34351
|
consult_transfer: "咨询转接",
|
|
34352
34352
|
consult_retrieve: "取回通话",
|
|
34353
34353
|
conference: "三方会议"
|
|
34354
|
-
}, yk = Uq(() => import("./ConsultModel-
|
|
34354
|
+
}, yk = Uq(() => import("./ConsultModel-aoBGdMux.mjs")), Mk = Uq(() => import("./TransferModel-kzacgxo3.mjs")), zk = (e) => {
|
|
34355
34355
|
var we, pe, KA;
|
|
34356
34356
|
const {
|
|
34357
34357
|
style: A,
|
|
@@ -34380,7 +34380,7 @@ const Ek = {
|
|
|
34380
34380
|
return "#1D92E9";
|
|
34381
34381
|
}
|
|
34382
34382
|
};
|
|
34383
|
-
Le(() => ((async () => (y(!0), h.current =
|
|
34383
|
+
Le(() => ((async () => (y(!0), h.current = mr.getInstance({
|
|
34384
34384
|
agentNo: i,
|
|
34385
34385
|
appKey: o,
|
|
34386
34386
|
appSecret: a,
|
|
@@ -34458,7 +34458,7 @@ const Ek = {
|
|
|
34458
34458
|
agent_no: YA.agent_no,
|
|
34459
34459
|
agent_name: YA.agent_name,
|
|
34460
34460
|
session_id: YA.session_id
|
|
34461
|
-
})), dA === pA.INCOMING_CALL && (
|
|
34461
|
+
})), dA === pA.INCOMING_CALL && (l == null || l(pA.INCOMING_CALL, {
|
|
34462
34462
|
customer_phone: YA.customer_phone,
|
|
34463
34463
|
session_id: YA.session_id
|
|
34464
34464
|
})), FA(B);
|
|
@@ -35156,16 +35156,16 @@ const Ek = {
|
|
|
35156
35156
|
});
|
|
35157
35157
|
}, Xk = (e) => {
|
|
35158
35158
|
var A;
|
|
35159
|
-
return (A =
|
|
35159
|
+
return (A = mr.getInstance()) == null ? void 0 : A.call_api.makeCall(e);
|
|
35160
35160
|
}, $k = () => {
|
|
35161
35161
|
var e;
|
|
35162
|
-
return (e =
|
|
35162
|
+
return (e = mr.getInstance()) == null ? void 0 : e.getRealTimeCustomerInfo();
|
|
35163
35163
|
}, _k = async (e) => {
|
|
35164
35164
|
var A, t;
|
|
35165
35165
|
if (e !== At.IDLE && e !== At.BUSY)
|
|
35166
35166
|
throw new Error("Invalid agent state");
|
|
35167
35167
|
try {
|
|
35168
|
-
await ((t = (A =
|
|
35168
|
+
await ((t = (A = mr.getInstance()) == null ? void 0 : A.agent_api) == null ? void 0 : t.changeState({
|
|
35169
35169
|
data: {
|
|
35170
35170
|
state: e,
|
|
35171
35171
|
state_name: e === At.IDLE ? "空闲" : "忙碌"
|
|
@@ -35177,7 +35177,7 @@ const Ek = {
|
|
|
35177
35177
|
}, AG = async (e) => {
|
|
35178
35178
|
var A, t;
|
|
35179
35179
|
try {
|
|
35180
|
-
await ((t = (A =
|
|
35180
|
+
await ((t = (A = mr.getInstance()) == null ? void 0 : A.agent_api) == null ? void 0 : t.changeDevice({
|
|
35181
35181
|
data: {
|
|
35182
35182
|
device: e
|
|
35183
35183
|
}
|
|
@@ -35209,7 +35209,7 @@ export {
|
|
|
35209
35209
|
Vg as S,
|
|
35210
35210
|
Tl as T,
|
|
35211
35211
|
Ru as U,
|
|
35212
|
-
|
|
35212
|
+
ir as V,
|
|
35213
35213
|
Pd as W,
|
|
35214
35214
|
Ol as X,
|
|
35215
35215
|
Oe as Y,
|