@94ai/nf-softphone 8.3.23 → 9.0.0

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.
@@ -35,7 +35,7 @@ __sfc_main.props = {
35
35
  key: "scrollingText",
36
36
  required: false,
37
37
  type: String,
38
- default: "正在滚动中..."
38
+ default: void 0
39
39
  },
40
40
  scrollview: {
41
41
  key: "scrollview",
@@ -173,6 +173,15 @@ __sfc_main.props = {
173
173
  __sfc_main.setup = (__props, __ctx) => {
174
174
  var _a;
175
175
  const props = __props;
176
+ const {
177
+ t
178
+ } = commonUtils.useLocale();
179
+ const localeText = vueDemi.computed(() => {
180
+ var _a2;
181
+ return {
182
+ scrollingText: (_a2 = props.scrollingText) != null ? _a2 : t("nf.softphone.scrolling")
183
+ };
184
+ });
176
185
  const requestOpenApiCallBackMap = {};
177
186
  const emit = __ctx.emit;
178
187
  const container = vueDemi.ref();
@@ -305,7 +314,7 @@ __sfc_main.setup = (__props, __ctx) => {
305
314
  }
306
315
  }, 500, false);
307
316
  vueDemi.onMounted(async () => {
308
- var _a2, _b;
317
+ var _a2, _b, _c;
309
318
  const {
310
319
  top,
311
320
  left
@@ -335,7 +344,7 @@ __sfc_main.setup = (__props, __ctx) => {
335
344
  sgOpen,
336
345
  sgDomain
337
346
  } = props;
338
- let url = `${(envMap == null ? void 0 : envMap[env]) ?? env}/#/?cross=1&open=1`;
347
+ let url = `${(_a2 = envMap == null ? void 0 : envMap[env]) != null ? _a2 : env}/#/?cross=1&open=1`;
339
348
  url += sgGateway ? `&sgGateway=${sgGateway}` : "";
340
349
  url += sgBase ? `&sgBase=${sgBase}` : "";
341
350
  url += sgOpen ? `&sgOpen=${sgOpen}` : "";
@@ -358,8 +367,8 @@ __sfc_main.setup = (__props, __ctx) => {
358
367
  contentWindow = iframeDom.value.contentWindow;
359
368
  window.addEventListener("message", handlingCommunication, false);
360
369
  if (props.scrollview) {
361
- (_a2 = document.querySelector(props.scrollview)) == null ? void 0 : _a2.addEventListener("scroll", handlingScroll);
362
- (_b = document.querySelector(props.scrollview)) == null ? void 0 : _b.addEventListener("scroll", handlingScrollTransparent);
370
+ (_b = document.querySelector(props.scrollview)) == null ? void 0 : _b.addEventListener("scroll", handlingScroll);
371
+ (_c = document.querySelector(props.scrollview)) == null ? void 0 : _c.addEventListener("scroll", handlingScrollTransparent);
363
372
  }
364
373
  });
365
374
  vueDemi.onBeforeUnmount(async () => {
@@ -435,6 +444,7 @@ __sfc_main.setup = (__props, __ctx) => {
435
444
  postMessageCommunicate("softphone-sign-overdued", data, "auto", props.ancestorOrigin, "ai-softphone");
436
445
  };
437
446
  return Object.assign({
447
+ localeText,
438
448
  container,
439
449
  iframeContainer,
440
450
  iframeDom,
@@ -484,7 +494,7 @@ var _sfc_render = function render() {
484
494
  style: {
485
495
  "display": _vm.containerScrolling === true ? "block" : "none"
486
496
  }
487
- }, [_vm._v(_vm._s(_vm.scrollingText))])]);
497
+ }, [_vm._v(_vm._s(_vm.localeText.scrollingText))])]);
488
498
  };
489
499
  var _sfc_staticRenderFns = [];
490
500
  var __component__ = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
@@ -496,7 +506,7 @@ class SoftphoneManager {
496
506
  ancestorOrigin: "nf-softphone",
497
507
  destinationOrigin: "*",
498
508
  scrollview: void 0,
499
- scrollingText: "正在滚动中...",
509
+ scrollingText: void 0,
500
510
  envMap: {
501
511
  test: "http://softphone.test.k8s.com",
502
512
  dev: "http://softphone.dev.k8s.com",
@@ -594,7 +604,8 @@ class SoftphoneManager {
594
604
  }
595
605
  };
596
606
  this.getContextDomElement = (el) => {
597
- return (this.option.selector ? document.querySelector(this.option.selector) ?? document : document).querySelector(el);
607
+ var _a;
608
+ return (this.option.selector ? (_a = document.querySelector(this.option.selector)) != null ? _a : document : document).querySelector(el);
598
609
  };
599
610
  this.getSoftphoneDomElement = (el) => {
600
611
  var _a;
@@ -789,9 +800,10 @@ class SoftphoneManager {
789
800
  };
790
801
  };
791
802
  this.handlerDomGenerater = async () => {
803
+ var _a, _b, _c;
792
804
  const nfSoftphone = document.createElement("div");
793
805
  const nfSoftphoneText = document.createElement("div");
794
- nfSoftphoneText.innerText = this.option.scrollingText || "正在滚动中...";
806
+ nfSoftphoneText.innerText = (_a = this.option.scrollingText) != null ? _a : commonUtils.useLocale().t("nf.softphone.scrolling");
795
807
  const nfSoftphoneContainer = document.createElement("div");
796
808
  const iframeContainer = document.createElement("div");
797
809
  const iframe = document.createElement("iframe");
@@ -812,7 +824,7 @@ class SoftphoneManager {
812
824
  nfSoftphoneContainer.appendChild(iframeContainer);
813
825
  nfSoftphone.appendChild(nfSoftphoneContainer);
814
826
  nfSoftphone.appendChild(nfSoftphoneText);
815
- const destination = this.option.el ? this.getSoftphoneDomElement(this.option.el) ?? document.body : document.body;
827
+ const destination = this.option.el ? (_b = this.getSoftphoneDomElement(this.option.el)) != null ? _b : document.body : document.body;
816
828
  destination.appendChild(nfSoftphone);
817
829
  await vueDemi.nextTick();
818
830
  const {
@@ -844,7 +856,7 @@ class SoftphoneManager {
844
856
  sgOpen,
845
857
  sgDomain
846
858
  } = this.option;
847
- let url = `${(envMap == null ? void 0 : envMap[env]) ?? env}/#/?cross=1&open=1`;
859
+ let url = `${(_c = envMap == null ? void 0 : envMap[env]) != null ? _c : env}/#/?cross=1&open=1`;
848
860
  url += agentTag ? `&agentTag=${agentTag}` : "";
849
861
  url += agentId ? `&agentId=${agentId}` : "";
850
862
  url += appSecret ? `&appSecret=${appSecret}` : "";
@@ -1,5 +1,5 @@
1
- import { defineComponent, ref, getCurrentInstance, onMounted, onBeforeUnmount, nextTick } from "vue-demi";
2
- import { debounce, generateUUID } from "@94ai/common-utils";
1
+ import { defineComponent, computed, ref, getCurrentInstance, onMounted, onBeforeUnmount, nextTick } from "vue-demi";
2
+ import { useLocale, debounce, generateUUID } from "@94ai/common-utils";
3
3
  import { normalizeComponent } from "@94ai/vue2-runtime-helpers";
4
4
  const __sfc_main = defineComponent({
5
5
  name: "nf-softphone"
@@ -33,7 +33,7 @@ __sfc_main.props = {
33
33
  key: "scrollingText",
34
34
  required: false,
35
35
  type: String,
36
- default: "正在滚动中..."
36
+ default: void 0
37
37
  },
38
38
  scrollview: {
39
39
  key: "scrollview",
@@ -171,6 +171,15 @@ __sfc_main.props = {
171
171
  __sfc_main.setup = (__props, __ctx) => {
172
172
  var _a;
173
173
  const props = __props;
174
+ const {
175
+ t
176
+ } = useLocale();
177
+ const localeText = computed(() => {
178
+ var _a2;
179
+ return {
180
+ scrollingText: (_a2 = props.scrollingText) != null ? _a2 : t("nf.softphone.scrolling")
181
+ };
182
+ });
174
183
  const requestOpenApiCallBackMap = {};
175
184
  const emit = __ctx.emit;
176
185
  const container = ref();
@@ -303,7 +312,7 @@ __sfc_main.setup = (__props, __ctx) => {
303
312
  }
304
313
  }, 500, false);
305
314
  onMounted(async () => {
306
- var _a2, _b;
315
+ var _a2, _b, _c;
307
316
  const {
308
317
  top,
309
318
  left
@@ -333,7 +342,7 @@ __sfc_main.setup = (__props, __ctx) => {
333
342
  sgOpen,
334
343
  sgDomain
335
344
  } = props;
336
- let url = `${(envMap == null ? void 0 : envMap[env]) ?? env}/#/?cross=1&open=1`;
345
+ let url = `${(_a2 = envMap == null ? void 0 : envMap[env]) != null ? _a2 : env}/#/?cross=1&open=1`;
337
346
  url += sgGateway ? `&sgGateway=${sgGateway}` : "";
338
347
  url += sgBase ? `&sgBase=${sgBase}` : "";
339
348
  url += sgOpen ? `&sgOpen=${sgOpen}` : "";
@@ -356,8 +365,8 @@ __sfc_main.setup = (__props, __ctx) => {
356
365
  contentWindow = iframeDom.value.contentWindow;
357
366
  window.addEventListener("message", handlingCommunication, false);
358
367
  if (props.scrollview) {
359
- (_a2 = document.querySelector(props.scrollview)) == null ? void 0 : _a2.addEventListener("scroll", handlingScroll);
360
- (_b = document.querySelector(props.scrollview)) == null ? void 0 : _b.addEventListener("scroll", handlingScrollTransparent);
368
+ (_b = document.querySelector(props.scrollview)) == null ? void 0 : _b.addEventListener("scroll", handlingScroll);
369
+ (_c = document.querySelector(props.scrollview)) == null ? void 0 : _c.addEventListener("scroll", handlingScrollTransparent);
361
370
  }
362
371
  });
363
372
  onBeforeUnmount(async () => {
@@ -433,6 +442,7 @@ __sfc_main.setup = (__props, __ctx) => {
433
442
  postMessageCommunicate("softphone-sign-overdued", data, "auto", props.ancestorOrigin, "ai-softphone");
434
443
  };
435
444
  return Object.assign({
445
+ localeText,
436
446
  container,
437
447
  iframeContainer,
438
448
  iframeDom,
@@ -482,7 +492,7 @@ var _sfc_render = function render() {
482
492
  style: {
483
493
  "display": _vm.containerScrolling === true ? "block" : "none"
484
494
  }
485
- }, [_vm._v(_vm._s(_vm.scrollingText))])]);
495
+ }, [_vm._v(_vm._s(_vm.localeText.scrollingText))])]);
486
496
  };
487
497
  var _sfc_staticRenderFns = [];
488
498
  var __component__ = /* @__PURE__ */ normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
@@ -494,7 +504,7 @@ class SoftphoneManager {
494
504
  ancestorOrigin: "nf-softphone",
495
505
  destinationOrigin: "*",
496
506
  scrollview: void 0,
497
- scrollingText: "正在滚动中...",
507
+ scrollingText: void 0,
498
508
  envMap: {
499
509
  test: "http://softphone.test.k8s.com",
500
510
  dev: "http://softphone.dev.k8s.com",
@@ -592,7 +602,8 @@ class SoftphoneManager {
592
602
  }
593
603
  };
594
604
  this.getContextDomElement = (el) => {
595
- return (this.option.selector ? document.querySelector(this.option.selector) ?? document : document).querySelector(el);
605
+ var _a;
606
+ return (this.option.selector ? (_a = document.querySelector(this.option.selector)) != null ? _a : document : document).querySelector(el);
596
607
  };
597
608
  this.getSoftphoneDomElement = (el) => {
598
609
  var _a;
@@ -787,9 +798,10 @@ class SoftphoneManager {
787
798
  };
788
799
  };
789
800
  this.handlerDomGenerater = async () => {
801
+ var _a, _b, _c;
790
802
  const nfSoftphone = document.createElement("div");
791
803
  const nfSoftphoneText = document.createElement("div");
792
- nfSoftphoneText.innerText = this.option.scrollingText || "正在滚动中...";
804
+ nfSoftphoneText.innerText = (_a = this.option.scrollingText) != null ? _a : useLocale().t("nf.softphone.scrolling");
793
805
  const nfSoftphoneContainer = document.createElement("div");
794
806
  const iframeContainer = document.createElement("div");
795
807
  const iframe = document.createElement("iframe");
@@ -810,7 +822,7 @@ class SoftphoneManager {
810
822
  nfSoftphoneContainer.appendChild(iframeContainer);
811
823
  nfSoftphone.appendChild(nfSoftphoneContainer);
812
824
  nfSoftphone.appendChild(nfSoftphoneText);
813
- const destination = this.option.el ? this.getSoftphoneDomElement(this.option.el) ?? document.body : document.body;
825
+ const destination = this.option.el ? (_b = this.getSoftphoneDomElement(this.option.el)) != null ? _b : document.body : document.body;
814
826
  destination.appendChild(nfSoftphone);
815
827
  await nextTick();
816
828
  const {
@@ -842,7 +854,7 @@ class SoftphoneManager {
842
854
  sgOpen,
843
855
  sgDomain
844
856
  } = this.option;
845
- let url = `${(envMap == null ? void 0 : envMap[env]) ?? env}/#/?cross=1&open=1`;
857
+ let url = `${(_c = envMap == null ? void 0 : envMap[env]) != null ? _c : env}/#/?cross=1&open=1`;
846
858
  url += agentTag ? `&agentTag=${agentTag}` : "";
847
859
  url += agentId ? `&agentId=${agentId}` : "";
848
860
  url += appSecret ? `&appSecret=${appSecret}` : "";
@@ -1,193 +1,193 @@
1
- import { Env } from './type';
2
- declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- sgGateway?: string | undefined;
4
- sgBase?: string | undefined;
5
- sgOpen?: string | undefined;
6
- sgDomain?: string | undefined;
7
- scrollingText?: string | undefined;
8
- scrollview?: string | undefined;
9
- envMap?: Partial<Record<Env, string>> | undefined;
10
- env?: Env | undefined;
11
- agentId?: string | undefined;
12
- agentTag?: string | undefined;
13
- appKey?: string | undefined;
14
- appSecret?: string | undefined;
15
- extStatus?: string | undefined;
16
- timestamp?: string | number | undefined;
17
- sign?: string | undefined;
18
- origin?: string | undefined;
19
- ancestorOrigin?: string | undefined;
20
- destinationOrigin?: string | undefined;
21
- callShow?: "0" | "1" | undefined;
22
- transferToLaborShow?: "0" | "1" | undefined;
23
- restShow?: "0" | "1" | undefined;
24
- networkDetectShow?: "0" | "1" | undefined;
25
- muteShow?: "0" | "1" | undefined;
26
- logShow?: "0" | "1" | undefined;
27
- timingShow?: "0" | "1" | undefined;
28
- signShow?: "0" | "1" | undefined;
29
- }>, {
30
- scrollingText: string;
31
- scrollview: undefined;
32
- envMap: () => {
33
- test: string;
34
- dev: string;
35
- sg: string;
36
- gray: string;
37
- prod: string;
38
- };
39
- env: string;
40
- sgGateway: undefined;
41
- sgBase: undefined;
42
- sgOpen: undefined;
43
- sgDomain: undefined;
44
- agentId: undefined;
45
- agentTag: undefined;
46
- appKey: undefined;
47
- appSecret: undefined;
48
- timestamp: undefined;
49
- sign: undefined;
50
- extStatus: string;
51
- origin: string;
52
- ancestorOrigin: string;
53
- destinationOrigin: string;
54
- callShow: string;
55
- transferToLaborShow: string;
56
- restShow: string;
57
- networkDetectShow: string;
58
- muteShow: string;
59
- logShow: string;
60
- timingShow: string;
61
- signShow: string;
62
- }>, {
63
- requestOpenApi: (param: any) => Promise<unknown>;
64
- connect: () => void;
65
- disconnect: () => void;
66
- seatsStatusChange: (status: any) => void;
67
- accept: () => void;
68
- ignore: () => void;
69
- hangup: () => void;
70
- sendDtmf: () => void;
71
- iframeDom: import("vue-demi").Ref<any>;
72
- iframeContainer: import("vue-demi").Ref<any>;
73
- container: import("vue-demi").Ref<any>;
74
- containerScrolling: import("vue-demi").Ref<any>;
75
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
76
- "softphone-connect": (event: any) => void;
77
- "softphone-seats-status-change": (event: any) => void;
78
- "softphone-accept": (event: any) => void;
79
- "softphone-ignore": (event: any) => void;
80
- "softphone-hangup": (event: any) => void;
81
- "softphone-send-dtmf": (event: any) => void;
82
- "softphone-call-refresh": (event: any) => void;
83
- "softphone-session-state-change": (event: any) => void;
84
- "softphone-incoming": (event: any) => void;
85
- "softphone-connect-registered": (event: any) => void;
86
- "softphone-sign-overdued": (event: any) => void;
87
- "softphone-auto-ignore-callback": (event: any) => void;
88
- }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
89
- sgGateway?: string | undefined;
90
- sgBase?: string | undefined;
91
- sgOpen?: string | undefined;
92
- sgDomain?: string | undefined;
93
- scrollingText?: string | undefined;
94
- scrollview?: string | undefined;
95
- envMap?: Partial<Record<Env, string>> | undefined;
96
- env?: Env | undefined;
97
- agentId?: string | undefined;
98
- agentTag?: string | undefined;
99
- appKey?: string | undefined;
100
- appSecret?: string | undefined;
101
- extStatus?: string | undefined;
102
- timestamp?: string | number | undefined;
103
- sign?: string | undefined;
104
- origin?: string | undefined;
105
- ancestorOrigin?: string | undefined;
106
- destinationOrigin?: string | undefined;
107
- callShow?: "0" | "1" | undefined;
108
- transferToLaborShow?: "0" | "1" | undefined;
109
- restShow?: "0" | "1" | undefined;
110
- networkDetectShow?: "0" | "1" | undefined;
111
- muteShow?: "0" | "1" | undefined;
112
- logShow?: "0" | "1" | undefined;
113
- timingShow?: "0" | "1" | undefined;
114
- signShow?: "0" | "1" | undefined;
115
- }>, {
116
- scrollingText: string;
117
- scrollview: undefined;
118
- envMap: () => {
119
- test: string;
120
- dev: string;
121
- sg: string;
122
- gray: string;
123
- prod: string;
124
- };
125
- env: string;
126
- sgGateway: undefined;
127
- sgBase: undefined;
128
- sgOpen: undefined;
129
- sgDomain: undefined;
130
- agentId: undefined;
131
- agentTag: undefined;
132
- appKey: undefined;
133
- appSecret: undefined;
134
- timestamp: undefined;
135
- sign: undefined;
136
- extStatus: string;
137
- origin: string;
138
- ancestorOrigin: string;
139
- destinationOrigin: string;
140
- callShow: string;
141
- transferToLaborShow: string;
142
- restShow: string;
143
- networkDetectShow: string;
144
- muteShow: string;
145
- logShow: string;
146
- timingShow: string;
147
- signShow: string;
148
- }>>>, {
149
- sgGateway: string;
150
- sgBase: string;
151
- sgOpen: string;
152
- sgDomain: string;
153
- scrollingText: string;
154
- scrollview: string;
155
- envMap: Partial<Record<Env, string>>;
156
- env: Env;
157
- agentId: string;
158
- agentTag: string;
159
- appKey: string;
160
- appSecret: string;
161
- extStatus: string;
162
- timestamp: string | number;
163
- sign: string;
164
- origin: string;
165
- ancestorOrigin: string;
166
- destinationOrigin: string;
167
- callShow: '0' | '1';
168
- transferToLaborShow: '0' | '1';
169
- restShow: '0' | '1';
170
- networkDetectShow: '0' | '1';
171
- muteShow: '0' | '1';
172
- logShow: '0' | '1';
173
- timingShow: '0' | '1';
174
- signShow: '0' | '1';
175
- }>;
176
- export default _default;
177
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
178
- declare type __VLS_TypePropsToRuntimeProps<T> = {
179
- [K in keyof T]-?: {} extends Pick<T, K> ? {
180
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
181
- } : {
182
- type: import('vue').PropType<T[K]>;
183
- required: true;
184
- };
185
- };
186
- declare type __VLS_WithDefaults<P, D> = {
187
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
188
- default: D[K];
189
- }> : P[K];
190
- };
191
- declare type __VLS_Prettify<T> = {
192
- [K in keyof T]: T[K];
193
- } & {};
1
+ import { Env } from './type';
2
+ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ sgGateway?: string | undefined;
4
+ sgBase?: string | undefined;
5
+ sgOpen?: string | undefined;
6
+ sgDomain?: string | undefined;
7
+ scrollingText?: string | undefined;
8
+ scrollview?: string | undefined;
9
+ envMap?: Partial<Record<Env, string>> | undefined;
10
+ env?: Env | undefined;
11
+ agentId?: string | undefined;
12
+ agentTag?: string | undefined;
13
+ appKey?: string | undefined;
14
+ appSecret?: string | undefined;
15
+ extStatus?: string | undefined;
16
+ timestamp?: string | number | undefined;
17
+ sign?: string | undefined;
18
+ origin?: string | undefined;
19
+ ancestorOrigin?: string | undefined;
20
+ destinationOrigin?: string | undefined;
21
+ callShow?: "0" | "1" | undefined;
22
+ transferToLaborShow?: "0" | "1" | undefined;
23
+ restShow?: "0" | "1" | undefined;
24
+ networkDetectShow?: "0" | "1" | undefined;
25
+ muteShow?: "0" | "1" | undefined;
26
+ logShow?: "0" | "1" | undefined;
27
+ timingShow?: "0" | "1" | undefined;
28
+ signShow?: "0" | "1" | undefined;
29
+ }>, {
30
+ scrollingText: undefined;
31
+ scrollview: undefined;
32
+ envMap: () => {
33
+ test: string;
34
+ dev: string;
35
+ sg: string;
36
+ gray: string;
37
+ prod: string;
38
+ };
39
+ env: string;
40
+ sgGateway: undefined;
41
+ sgBase: undefined;
42
+ sgOpen: undefined;
43
+ sgDomain: undefined;
44
+ agentId: undefined;
45
+ agentTag: undefined;
46
+ appKey: undefined;
47
+ appSecret: undefined;
48
+ timestamp: undefined;
49
+ sign: undefined;
50
+ extStatus: string;
51
+ origin: string;
52
+ ancestorOrigin: string;
53
+ destinationOrigin: string;
54
+ callShow: string;
55
+ transferToLaborShow: string;
56
+ restShow: string;
57
+ networkDetectShow: string;
58
+ muteShow: string;
59
+ logShow: string;
60
+ timingShow: string;
61
+ signShow: string;
62
+ }>, {
63
+ requestOpenApi: (param: any) => Promise<unknown>;
64
+ connect: () => void;
65
+ disconnect: () => void;
66
+ seatsStatusChange: (status: any) => void;
67
+ accept: () => void;
68
+ ignore: () => void;
69
+ hangup: () => void;
70
+ sendDtmf: () => void;
71
+ iframeDom: import("vue-demi").Ref<any>;
72
+ iframeContainer: import("vue-demi").Ref<any>;
73
+ container: import("vue-demi").Ref<any>;
74
+ containerScrolling: import("vue-demi").Ref<any>;
75
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
76
+ "softphone-connect": (event: any) => void;
77
+ "softphone-seats-status-change": (event: any) => void;
78
+ "softphone-accept": (event: any) => void;
79
+ "softphone-ignore": (event: any) => void;
80
+ "softphone-hangup": (event: any) => void;
81
+ "softphone-send-dtmf": (event: any) => void;
82
+ "softphone-call-refresh": (event: any) => void;
83
+ "softphone-session-state-change": (event: any) => void;
84
+ "softphone-incoming": (event: any) => void;
85
+ "softphone-connect-registered": (event: any) => void;
86
+ "softphone-sign-overdued": (event: any) => void;
87
+ "softphone-auto-ignore-callback": (event: any) => void;
88
+ }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
89
+ sgGateway?: string | undefined;
90
+ sgBase?: string | undefined;
91
+ sgOpen?: string | undefined;
92
+ sgDomain?: string | undefined;
93
+ scrollingText?: string | undefined;
94
+ scrollview?: string | undefined;
95
+ envMap?: Partial<Record<Env, string>> | undefined;
96
+ env?: Env | undefined;
97
+ agentId?: string | undefined;
98
+ agentTag?: string | undefined;
99
+ appKey?: string | undefined;
100
+ appSecret?: string | undefined;
101
+ extStatus?: string | undefined;
102
+ timestamp?: string | number | undefined;
103
+ sign?: string | undefined;
104
+ origin?: string | undefined;
105
+ ancestorOrigin?: string | undefined;
106
+ destinationOrigin?: string | undefined;
107
+ callShow?: "0" | "1" | undefined;
108
+ transferToLaborShow?: "0" | "1" | undefined;
109
+ restShow?: "0" | "1" | undefined;
110
+ networkDetectShow?: "0" | "1" | undefined;
111
+ muteShow?: "0" | "1" | undefined;
112
+ logShow?: "0" | "1" | undefined;
113
+ timingShow?: "0" | "1" | undefined;
114
+ signShow?: "0" | "1" | undefined;
115
+ }>, {
116
+ scrollingText: undefined;
117
+ scrollview: undefined;
118
+ envMap: () => {
119
+ test: string;
120
+ dev: string;
121
+ sg: string;
122
+ gray: string;
123
+ prod: string;
124
+ };
125
+ env: string;
126
+ sgGateway: undefined;
127
+ sgBase: undefined;
128
+ sgOpen: undefined;
129
+ sgDomain: undefined;
130
+ agentId: undefined;
131
+ agentTag: undefined;
132
+ appKey: undefined;
133
+ appSecret: undefined;
134
+ timestamp: undefined;
135
+ sign: undefined;
136
+ extStatus: string;
137
+ origin: string;
138
+ ancestorOrigin: string;
139
+ destinationOrigin: string;
140
+ callShow: string;
141
+ transferToLaborShow: string;
142
+ restShow: string;
143
+ networkDetectShow: string;
144
+ muteShow: string;
145
+ logShow: string;
146
+ timingShow: string;
147
+ signShow: string;
148
+ }>>>, {
149
+ sgGateway: string;
150
+ sgBase: string;
151
+ sgOpen: string;
152
+ sgDomain: string;
153
+ scrollingText: string;
154
+ scrollview: string;
155
+ envMap: Partial<Record<Env, string>>;
156
+ env: Env;
157
+ agentId: string;
158
+ agentTag: string;
159
+ appKey: string;
160
+ appSecret: string;
161
+ extStatus: string;
162
+ timestamp: string | number;
163
+ sign: string;
164
+ origin: string;
165
+ ancestorOrigin: string;
166
+ destinationOrigin: string;
167
+ callShow: '0' | '1';
168
+ transferToLaborShow: '0' | '1';
169
+ restShow: '0' | '1';
170
+ networkDetectShow: '0' | '1';
171
+ muteShow: '0' | '1';
172
+ logShow: '0' | '1';
173
+ timingShow: '0' | '1';
174
+ signShow: '0' | '1';
175
+ }>;
176
+ export default _default;
177
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
178
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
179
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
180
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
181
+ } : {
182
+ type: import('vue').PropType<T[K]>;
183
+ required: true;
184
+ };
185
+ };
186
+ declare type __VLS_WithDefaults<P, D> = {
187
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
188
+ default: D[K];
189
+ }> : P[K];
190
+ };
191
+ declare type __VLS_Prettify<T> = {
192
+ [K in keyof T]: T[K];
193
+ } & {};