hanc-webrtc-widgets 1.0.2 → 1.1.1
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/hanc-webrtc-widgets.es.js +300 -284
- package/dist/hanc-webrtc-widgets.umd.js +40 -36
- package/dist/src/components/floating-call/floating-call.d.ts +3 -0
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/components/inline-call/index.d.ts +1 -0
- package/dist/src/components/{call-control/call-control.d.ts → inline-call/inline-call.d.ts} +2 -1
- package/package.json +3 -3
- package/dist/src/components/call-control/index.d.ts +0 -1
- /package/dist/src/components/{call-control → inline-call}/styles.d.ts +0 -0
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const at = globalThis, It = at.ShadowRoot && (at.ShadyCSS === void 0 || at.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, At = Symbol(), Lt = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let $n = class {
|
|
8
8
|
constructor(r, t, c) {
|
|
9
|
-
if (this._$cssResult$ = !0, c !==
|
|
9
|
+
if (this._$cssResult$ = !0, c !== At) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = r, this.t = t;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let r = this.o;
|
|
14
14
|
const t = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (It && r === void 0) {
|
|
16
16
|
const c = t !== void 0 && t.length === 1;
|
|
17
17
|
c && (r = Lt.get(t)), r === void 0 && ((this.o = r = new CSSStyleSheet()).replaceSync(this.cssText), c && Lt.set(t, r));
|
|
18
18
|
}
|
|
@@ -22,20 +22,20 @@ let $n = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const ar = (w) => new $n(typeof w == "string" ? w : w + "", void 0,
|
|
25
|
+
const ar = (w) => new $n(typeof w == "string" ? w : w + "", void 0, At), kt = (w, ...r) => {
|
|
26
26
|
const t = w.length === 1 ? w[0] : r.reduce((c, l, g) => c + ((y) => {
|
|
27
27
|
if (y._$cssResult$ === !0) return y.cssText;
|
|
28
28
|
if (typeof y == "number") return y;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + y + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(l) + w[g + 1], w[0]);
|
|
31
|
-
return new $n(t, w,
|
|
31
|
+
return new $n(t, w, At);
|
|
32
32
|
}, sr = (w, r) => {
|
|
33
|
-
if (
|
|
33
|
+
if (It) w.adoptedStyleSheets = r.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
34
34
|
else for (const t of r) {
|
|
35
|
-
const c = document.createElement("style"), l =
|
|
35
|
+
const c = document.createElement("style"), l = at.litNonce;
|
|
36
36
|
l !== void 0 && c.setAttribute("nonce", l), c.textContent = t.cssText, w.appendChild(c);
|
|
37
37
|
}
|
|
38
|
-
}, jt =
|
|
38
|
+
}, jt = It ? (w) => w : (w) => w instanceof CSSStyleSheet ? ((r) => {
|
|
39
39
|
let t = "";
|
|
40
40
|
for (const c of r.cssRules) t += c.cssText;
|
|
41
41
|
return ar(t);
|
|
@@ -45,7 +45,7 @@ const ar = (w) => new $n(typeof w == "string" ? w : w + "", void 0, It), At = (w
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: cr, defineProperty: ur, getOwnPropertyDescriptor: lr, getOwnPropertyNames: dr, getOwnPropertySymbols: fr, getPrototypeOf: pr } = Object,
|
|
48
|
+
const { is: cr, defineProperty: ur, getOwnPropertyDescriptor: lr, getOwnPropertyNames: dr, getOwnPropertySymbols: fr, getPrototypeOf: pr } = Object, pe = globalThis, Ut = pe.trustedTypes, hr = Ut ? Ut.emptyScript : "", pt = pe.reactiveElementPolyfillSupport, Be = (w, r) => w, ct = { toAttribute(w, r) {
|
|
49
49
|
switch (r) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
w = w ? hr : null;
|
|
@@ -73,9 +73,9 @@ const { is: cr, defineProperty: ur, getOwnPropertyDescriptor: lr, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return t;
|
|
76
|
-
} },
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
78
|
-
class
|
|
76
|
+
} }, Rt = (w, r) => !cr(w, r), Nt = { attribute: !0, type: String, converter: ct, reflect: !1, hasChanged: Rt };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), pe.litPropertyMetadata ?? (pe.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
class Re extends HTMLElement {
|
|
79
79
|
static addInitializer(r) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(r);
|
|
81
81
|
}
|
|
@@ -105,13 +105,13 @@ class Pe extends HTMLElement {
|
|
|
105
105
|
return this.elementProperties.get(r) ?? Nt;
|
|
106
106
|
}
|
|
107
107
|
static _$Ei() {
|
|
108
|
-
if (this.hasOwnProperty(
|
|
108
|
+
if (this.hasOwnProperty(Be("elementProperties"))) return;
|
|
109
109
|
const r = pr(this);
|
|
110
110
|
r.finalize(), r.l !== void 0 && (this.l = [...r.l]), this.elementProperties = new Map(r.elementProperties);
|
|
111
111
|
}
|
|
112
112
|
static finalize() {
|
|
113
|
-
if (this.hasOwnProperty(
|
|
114
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
+
if (this.hasOwnProperty(Be("finalized"))) return;
|
|
114
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Be("properties"))) {
|
|
115
115
|
const t = this.properties, c = [...dr(t), ...fr(t)];
|
|
116
116
|
for (const l of c) this.createProperty(l, t[l]);
|
|
117
117
|
}
|
|
@@ -186,7 +186,7 @@ class Pe extends HTMLElement {
|
|
|
186
186
|
var g;
|
|
187
187
|
const c = this.constructor.elementProperties.get(r), l = this.constructor._$Eu(r, c);
|
|
188
188
|
if (l !== void 0 && c.reflect === !0) {
|
|
189
|
-
const y = (((g = c.converter) == null ? void 0 : g.toAttribute) !== void 0 ? c.converter :
|
|
189
|
+
const y = (((g = c.converter) == null ? void 0 : g.toAttribute) !== void 0 ? c.converter : ct).toAttribute(t, c.type);
|
|
190
190
|
this._$Em = r, y == null ? this.removeAttribute(l) : this.setAttribute(l, y), this._$Em = null;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
@@ -194,13 +194,13 @@ class Pe extends HTMLElement {
|
|
|
194
194
|
var g;
|
|
195
195
|
const c = this.constructor, l = c._$Eh.get(r);
|
|
196
196
|
if (l !== void 0 && this._$Em !== l) {
|
|
197
|
-
const y = c.getPropertyOptions(l), _ = typeof y.converter == "function" ? { fromAttribute: y.converter } : ((g = y.converter) == null ? void 0 : g.fromAttribute) !== void 0 ? y.converter :
|
|
197
|
+
const y = c.getPropertyOptions(l), _ = typeof y.converter == "function" ? { fromAttribute: y.converter } : ((g = y.converter) == null ? void 0 : g.fromAttribute) !== void 0 ? y.converter : ct;
|
|
198
198
|
this._$Em = l, this[l] = _.fromAttribute(t, y.type), this._$Em = null;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
requestUpdate(r, t, c) {
|
|
202
202
|
if (r !== void 0) {
|
|
203
|
-
if (c ?? (c = this.constructor.getPropertyOptions(r)), !(c.hasChanged ??
|
|
203
|
+
if (c ?? (c = this.constructor.getPropertyOptions(r)), !(c.hasChanged ?? Rt)(this[r], t)) return;
|
|
204
204
|
this.P(r, t, c);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
@@ -273,74 +273,74 @@ class Pe extends HTMLElement {
|
|
|
273
273
|
firstUpdated(r) {
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
|
|
276
|
+
Re.elementStyles = [], Re.shadowRootOptions = { mode: "open" }, Re[Be("elementProperties")] = /* @__PURE__ */ new Map(), Re[Be("finalized")] = /* @__PURE__ */ new Map(), pt == null || pt({ ReactiveElement: Re }), (pe.reactiveElementVersions ?? (pe.reactiveElementVersions = [])).push("2.0.4");
|
|
277
277
|
/**
|
|
278
278
|
* @license
|
|
279
279
|
* Copyright 2017 Google LLC
|
|
280
280
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
281
281
|
*/
|
|
282
|
-
const
|
|
283
|
-
\f\r]`,
|
|
284
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), qt = /'/g, Ht = /"/g, Hn = /^(?:script|style|textarea|title)$/i, mr = (w) => (r, ...t) => ({ _$litType$: w, strings: r, values: t }),
|
|
282
|
+
const qe = globalThis, ut = qe.trustedTypes, Ft = ut ? ut.createPolicy("lit-html", { createHTML: (w) => w }) : void 0, Bn = "$lit$", fe = `lit$${Math.random().toFixed(9).slice(2)}$`, qn = "?" + fe, vr = `<${qn}>`, ye = document, He = () => ye.createComment(""), We = (w) => w === null || typeof w != "object" && typeof w != "function", xt = Array.isArray, gr = (w) => xt(w) || typeof (w == null ? void 0 : w[Symbol.iterator]) == "function", ht = `[
|
|
283
|
+
\f\r]`, je = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, Bt = />/g, ve = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
|
|
284
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), qt = /'/g, Ht = /"/g, Hn = /^(?:script|style|textarea|title)$/i, mr = (w) => (r, ...t) => ({ _$litType$: w, strings: r, values: t }), xe = mr(1), Oe = Symbol.for("lit-noChange"), V = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(), _e = ye.createTreeWalker(ye, 129);
|
|
285
285
|
function Wn(w, r) {
|
|
286
|
-
if (!
|
|
286
|
+
if (!xt(w) || !w.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
287
287
|
return Ft !== void 0 ? Ft.createHTML(r) : r;
|
|
288
288
|
}
|
|
289
289
|
const _r = (w, r) => {
|
|
290
290
|
const t = w.length - 1, c = [];
|
|
291
|
-
let l, g = r === 2 ? "<svg>" : r === 3 ? "<math>" : "", y =
|
|
291
|
+
let l, g = r === 2 ? "<svg>" : r === 3 ? "<math>" : "", y = je;
|
|
292
292
|
for (let _ = 0; _ < t; _++) {
|
|
293
293
|
const E = w[_];
|
|
294
294
|
let C, S, m = -1, u = 0;
|
|
295
|
-
for (; u < E.length && (y.lastIndex = u, S = y.exec(E), S !== null); ) u = y.lastIndex, y ===
|
|
296
|
-
const b = y ===
|
|
297
|
-
g += y ===
|
|
295
|
+
for (; u < E.length && (y.lastIndex = u, S = y.exec(E), S !== null); ) u = y.lastIndex, y === je ? S[1] === "!--" ? y = $t : S[1] !== void 0 ? y = Bt : S[2] !== void 0 ? (Hn.test(S[2]) && (l = RegExp("</" + S[2], "g")), y = ve) : S[3] !== void 0 && (y = ve) : y === ve ? S[0] === ">" ? (y = l ?? je, m = -1) : S[1] === void 0 ? m = -2 : (m = y.lastIndex - S[2].length, C = S[1], y = S[3] === void 0 ? ve : S[3] === '"' ? Ht : qt) : y === Ht || y === qt ? y = ve : y === $t || y === Bt ? y = je : (y = ve, l = void 0);
|
|
296
|
+
const b = y === ve && w[_ + 1].startsWith("/>") ? " " : "";
|
|
297
|
+
g += y === je ? E + vr : m >= 0 ? (c.push(C), E.slice(0, m) + Bn + E.slice(m) + fe + b) : E + fe + (m === -2 ? _ : b);
|
|
298
298
|
}
|
|
299
299
|
return [Wn(w, g + (w[t] || "<?>") + (r === 2 ? "</svg>" : r === 3 ? "</math>" : "")), c];
|
|
300
300
|
};
|
|
301
|
-
class
|
|
301
|
+
class Ve {
|
|
302
302
|
constructor({ strings: r, _$litType$: t }, c) {
|
|
303
303
|
let l;
|
|
304
304
|
this.parts = [];
|
|
305
305
|
let g = 0, y = 0;
|
|
306
306
|
const _ = r.length - 1, E = this.parts, [C, S] = _r(r, t);
|
|
307
|
-
if (this.el =
|
|
307
|
+
if (this.el = Ve.createElement(C, c), _e.currentNode = this.el.content, t === 2 || t === 3) {
|
|
308
308
|
const m = this.el.content.firstChild;
|
|
309
309
|
m.replaceWith(...m.childNodes);
|
|
310
310
|
}
|
|
311
|
-
for (; (l =
|
|
311
|
+
for (; (l = _e.nextNode()) !== null && E.length < _; ) {
|
|
312
312
|
if (l.nodeType === 1) {
|
|
313
313
|
if (l.hasAttributes()) for (const m of l.getAttributeNames()) if (m.endsWith(Bn)) {
|
|
314
|
-
const u = S[y++], b = l.getAttribute(m).split(
|
|
315
|
-
E.push({ type: 1, index: g, name: n[2], strings: b, ctor: n[1] === "." ? br : n[1] === "?" ? Sr : n[1] === "@" ? wr :
|
|
316
|
-
} else m.startsWith(
|
|
314
|
+
const u = S[y++], b = l.getAttribute(m).split(fe), n = /([.?@])?(.*)/.exec(u);
|
|
315
|
+
E.push({ type: 1, index: g, name: n[2], strings: b, ctor: n[1] === "." ? br : n[1] === "?" ? Sr : n[1] === "@" ? wr : lt }), l.removeAttribute(m);
|
|
316
|
+
} else m.startsWith(fe) && (E.push({ type: 6, index: g }), l.removeAttribute(m));
|
|
317
317
|
if (Hn.test(l.tagName)) {
|
|
318
|
-
const m = l.textContent.split(
|
|
318
|
+
const m = l.textContent.split(fe), u = m.length - 1;
|
|
319
319
|
if (u > 0) {
|
|
320
|
-
l.textContent =
|
|
321
|
-
for (let b = 0; b < u; b++) l.append(m[b],
|
|
322
|
-
l.append(m[u],
|
|
320
|
+
l.textContent = ut ? ut.emptyScript : "";
|
|
321
|
+
for (let b = 0; b < u; b++) l.append(m[b], He()), _e.nextNode(), E.push({ type: 2, index: ++g });
|
|
322
|
+
l.append(m[u], He());
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
} else if (l.nodeType === 8) if (l.data === qn) E.push({ type: 2, index: g });
|
|
326
326
|
else {
|
|
327
327
|
let m = -1;
|
|
328
|
-
for (; (m = l.data.indexOf(
|
|
328
|
+
for (; (m = l.data.indexOf(fe, m + 1)) !== -1; ) E.push({ type: 7, index: g }), m += fe.length - 1;
|
|
329
329
|
}
|
|
330
330
|
g++;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
static createElement(r, t) {
|
|
334
|
-
const c =
|
|
334
|
+
const c = ye.createElement("template");
|
|
335
335
|
return c.innerHTML = r, c;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Me(w, r, t = w, c) {
|
|
339
339
|
var y, _;
|
|
340
|
-
if (r ===
|
|
340
|
+
if (r === Oe) return r;
|
|
341
341
|
let l = c !== void 0 ? (y = t._$Co) == null ? void 0 : y[c] : t._$Cl;
|
|
342
|
-
const g =
|
|
343
|
-
return (l == null ? void 0 : l.constructor) !== g && ((_ = l == null ? void 0 : l._$AO) == null || _.call(l, !1), g === void 0 ? l = void 0 : (l = new g(w), l._$AT(w, t, c)), c !== void 0 ? (t._$Co ?? (t._$Co = []))[c] = l : t._$Cl = l), l !== void 0 && (r =
|
|
342
|
+
const g = We(r) ? void 0 : r._$litDirective$;
|
|
343
|
+
return (l == null ? void 0 : l.constructor) !== g && ((_ = l == null ? void 0 : l._$AO) == null || _.call(l, !1), g === void 0 ? l = void 0 : (l = new g(w), l._$AT(w, t, c)), c !== void 0 ? (t._$Co ?? (t._$Co = []))[c] = l : t._$Cl = l), l !== void 0 && (r = Me(w, l._$AS(w, r.values), l, c)), r;
|
|
344
344
|
}
|
|
345
345
|
class yr {
|
|
346
346
|
constructor(r, t) {
|
|
@@ -353,24 +353,24 @@ class yr {
|
|
|
353
353
|
return this._$AM._$AU;
|
|
354
354
|
}
|
|
355
355
|
u(r) {
|
|
356
|
-
const { el: { content: t }, parts: c } = this._$AD, l = ((r == null ? void 0 : r.creationScope) ??
|
|
357
|
-
|
|
358
|
-
let g =
|
|
356
|
+
const { el: { content: t }, parts: c } = this._$AD, l = ((r == null ? void 0 : r.creationScope) ?? ye).importNode(t, !0);
|
|
357
|
+
_e.currentNode = l;
|
|
358
|
+
let g = _e.nextNode(), y = 0, _ = 0, E = c[0];
|
|
359
359
|
for (; E !== void 0; ) {
|
|
360
360
|
if (y === E.index) {
|
|
361
361
|
let C;
|
|
362
|
-
E.type === 2 ? C = new
|
|
362
|
+
E.type === 2 ? C = new Ge(g, g.nextSibling, this, r) : E.type === 1 ? C = new E.ctor(g, E.name, E.strings, this, r) : E.type === 6 && (C = new Cr(g, this, r)), this._$AV.push(C), E = c[++_];
|
|
363
363
|
}
|
|
364
|
-
y !== (E == null ? void 0 : E.index) && (g =
|
|
364
|
+
y !== (E == null ? void 0 : E.index) && (g = _e.nextNode(), y++);
|
|
365
365
|
}
|
|
366
|
-
return
|
|
366
|
+
return _e.currentNode = ye, l;
|
|
367
367
|
}
|
|
368
368
|
p(r) {
|
|
369
369
|
let t = 0;
|
|
370
370
|
for (const c of this._$AV) c !== void 0 && (c.strings !== void 0 ? (c._$AI(r, c, t), t += c.strings.length - 2) : c._$AI(r[t])), t++;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
class
|
|
373
|
+
class Ge {
|
|
374
374
|
get _$AU() {
|
|
375
375
|
var r;
|
|
376
376
|
return ((r = this._$AM) == null ? void 0 : r._$AU) ?? this._$Cv;
|
|
@@ -390,7 +390,7 @@ class We {
|
|
|
390
390
|
return this._$AB;
|
|
391
391
|
}
|
|
392
392
|
_$AI(r, t = this) {
|
|
393
|
-
r =
|
|
393
|
+
r = Me(this, r, t), We(r) ? r === V || r == null || r === "" ? (this._$AH !== V && this._$AR(), this._$AH = V) : r !== this._$AH && r !== Oe && this._(r) : r._$litType$ !== void 0 ? this.$(r) : r.nodeType !== void 0 ? this.T(r) : gr(r) ? this.k(r) : this._(r);
|
|
394
394
|
}
|
|
395
395
|
O(r) {
|
|
396
396
|
return this._$AA.parentNode.insertBefore(r, this._$AB);
|
|
@@ -399,11 +399,11 @@ class We {
|
|
|
399
399
|
this._$AH !== r && (this._$AR(), this._$AH = this.O(r));
|
|
400
400
|
}
|
|
401
401
|
_(r) {
|
|
402
|
-
this._$AH !== V &&
|
|
402
|
+
this._$AH !== V && We(this._$AH) ? this._$AA.nextSibling.data = r : this.T(ye.createTextNode(r)), this._$AH = r;
|
|
403
403
|
}
|
|
404
404
|
$(r) {
|
|
405
405
|
var g;
|
|
406
|
-
const { values: t, _$litType$: c } = r, l = typeof c == "number" ? this._$AC(r) : (c.el === void 0 && (c.el =
|
|
406
|
+
const { values: t, _$litType$: c } = r, l = typeof c == "number" ? this._$AC(r) : (c.el === void 0 && (c.el = Ve.createElement(Wn(c.h, c.h[0]), this.options)), c);
|
|
407
407
|
if (((g = this._$AH) == null ? void 0 : g._$AD) === l) this._$AH.p(t);
|
|
408
408
|
else {
|
|
409
409
|
const y = new yr(l, this), _ = y.u(this.options);
|
|
@@ -412,13 +412,13 @@ class We {
|
|
|
412
412
|
}
|
|
413
413
|
_$AC(r) {
|
|
414
414
|
let t = Wt.get(r.strings);
|
|
415
|
-
return t === void 0 && Wt.set(r.strings, t = new
|
|
415
|
+
return t === void 0 && Wt.set(r.strings, t = new Ve(r)), t;
|
|
416
416
|
}
|
|
417
417
|
k(r) {
|
|
418
|
-
|
|
418
|
+
xt(this._$AH) || (this._$AH = [], this._$AR());
|
|
419
419
|
const t = this._$AH;
|
|
420
420
|
let c, l = 0;
|
|
421
|
-
for (const g of r) l === t.length ? t.push(c = new
|
|
421
|
+
for (const g of r) l === t.length ? t.push(c = new Ge(this.O(He()), this.O(He()), this, this.options)) : c = t[l], c._$AI(g), l++;
|
|
422
422
|
l < t.length && (this._$AR(c && c._$AB.nextSibling, l), t.length = l);
|
|
423
423
|
}
|
|
424
424
|
_$AR(r = this._$AA.nextSibling, t) {
|
|
@@ -433,7 +433,7 @@ class We {
|
|
|
433
433
|
this._$AM === void 0 && (this._$Cv = r, (t = this._$AP) == null || t.call(this, r));
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
class
|
|
436
|
+
class lt {
|
|
437
437
|
get tagName() {
|
|
438
438
|
return this.element.tagName;
|
|
439
439
|
}
|
|
@@ -446,11 +446,11 @@ class st {
|
|
|
446
446
|
_$AI(r, t = this, c, l) {
|
|
447
447
|
const g = this.strings;
|
|
448
448
|
let y = !1;
|
|
449
|
-
if (g === void 0) r =
|
|
449
|
+
if (g === void 0) r = Me(this, r, t, 0), y = !We(r) || r !== this._$AH && r !== Oe, y && (this._$AH = r);
|
|
450
450
|
else {
|
|
451
451
|
const _ = r;
|
|
452
452
|
let E, C;
|
|
453
|
-
for (r = g[0], E = 0; E < g.length - 1; E++) C =
|
|
453
|
+
for (r = g[0], E = 0; E < g.length - 1; E++) C = Me(this, _[c + E], t, E), C === Oe && (C = this._$AH[E]), y || (y = !We(C) || C !== this._$AH[E]), C === V ? r = V : r !== V && (r += (C ?? "") + g[E + 1]), this._$AH[E] = C;
|
|
454
454
|
}
|
|
455
455
|
y && !l && this.j(r);
|
|
456
456
|
}
|
|
@@ -458,7 +458,7 @@ class st {
|
|
|
458
458
|
r === V ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, r ?? "");
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
class br extends
|
|
461
|
+
class br extends lt {
|
|
462
462
|
constructor() {
|
|
463
463
|
super(...arguments), this.type = 3;
|
|
464
464
|
}
|
|
@@ -466,7 +466,7 @@ class br extends st {
|
|
|
466
466
|
this.element[this.name] = r === V ? void 0 : r;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
class Sr extends
|
|
469
|
+
class Sr extends lt {
|
|
470
470
|
constructor() {
|
|
471
471
|
super(...arguments), this.type = 4;
|
|
472
472
|
}
|
|
@@ -474,12 +474,12 @@ class Sr extends st {
|
|
|
474
474
|
this.element.toggleAttribute(this.name, !!r && r !== V);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
class wr extends
|
|
477
|
+
class wr extends lt {
|
|
478
478
|
constructor(r, t, c, l, g) {
|
|
479
479
|
super(r, t, c, l, g), this.type = 5;
|
|
480
480
|
}
|
|
481
481
|
_$AI(r, t = this) {
|
|
482
|
-
if ((r =
|
|
482
|
+
if ((r = Me(this, r, t, 0) ?? V) === Oe) return;
|
|
483
483
|
const c = this._$AH, l = r === V && c !== V || r.capture !== c.capture || r.once !== c.once || r.passive !== c.passive, g = r !== V && (c === V || l);
|
|
484
484
|
l && this.element.removeEventListener(this.name, this, c), g && this.element.addEventListener(this.name, this, r), this._$AH = r;
|
|
485
485
|
}
|
|
@@ -496,17 +496,17 @@ class Cr {
|
|
|
496
496
|
return this._$AM._$AU;
|
|
497
497
|
}
|
|
498
498
|
_$AI(r) {
|
|
499
|
-
|
|
499
|
+
Me(this, r);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
const
|
|
503
|
-
|
|
502
|
+
const vt = qe.litHtmlPolyfillSupport;
|
|
503
|
+
vt == null || vt(Ve, Ge), (qe.litHtmlVersions ?? (qe.litHtmlVersions = [])).push("3.2.1");
|
|
504
504
|
const Er = (w, r, t) => {
|
|
505
505
|
const c = (t == null ? void 0 : t.renderBefore) ?? r;
|
|
506
506
|
let l = c._$litPart$;
|
|
507
507
|
if (l === void 0) {
|
|
508
508
|
const g = (t == null ? void 0 : t.renderBefore) ?? null;
|
|
509
|
-
c._$litPart$ = l = new
|
|
509
|
+
c._$litPart$ = l = new Ge(r.insertBefore(He(), g), g, void 0, t ?? {});
|
|
510
510
|
}
|
|
511
511
|
return l._$AI(w), l;
|
|
512
512
|
};
|
|
@@ -515,7 +515,7 @@ const Er = (w, r, t) => {
|
|
|
515
515
|
* Copyright 2017 Google LLC
|
|
516
516
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
517
517
|
*/
|
|
518
|
-
let
|
|
518
|
+
let De = class extends Re {
|
|
519
519
|
constructor() {
|
|
520
520
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
521
521
|
}
|
|
@@ -537,13 +537,13 @@ let Ae = class extends Pe {
|
|
|
537
537
|
super.disconnectedCallback(), (r = this._$Do) == null || r.setConnected(!1);
|
|
538
538
|
}
|
|
539
539
|
render() {
|
|
540
|
-
return
|
|
540
|
+
return Oe;
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
var Fn;
|
|
544
|
-
|
|
545
|
-
const
|
|
546
|
-
|
|
544
|
+
De._$litElement$ = !0, De.finalized = !0, (Fn = globalThis.litElementHydrateSupport) == null || Fn.call(globalThis, { LitElement: De });
|
|
545
|
+
const gt = globalThis.litElementPolyfillSupport;
|
|
546
|
+
gt == null || gt({ LitElement: De });
|
|
547
547
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
548
548
|
/**
|
|
549
549
|
* @license
|
|
@@ -560,7 +560,7 @@ const Vn = (w) => (r, t) => {
|
|
|
560
560
|
* Copyright 2017 Google LLC
|
|
561
561
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
562
562
|
*/
|
|
563
|
-
const Tr = { attribute: !0, type: String, converter:
|
|
563
|
+
const Tr = { attribute: !0, type: String, converter: ct, reflect: !1, hasChanged: Rt }, Pr = (w = Tr, r, t) => {
|
|
564
564
|
const { kind: c, metadata: l } = t;
|
|
565
565
|
let g = globalThis.litPropertyMetadata.get(l);
|
|
566
566
|
if (g === void 0 && globalThis.litPropertyMetadata.set(l, g = /* @__PURE__ */ new Map()), g.set(t.name, w), c === "accessor") {
|
|
@@ -581,7 +581,7 @@ const Tr = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged
|
|
|
581
581
|
}
|
|
582
582
|
throw Error("Unsupported decorator location: " + c);
|
|
583
583
|
};
|
|
584
|
-
function
|
|
584
|
+
function Se(w) {
|
|
585
585
|
return (r, t) => typeof t == "object" ? Pr(w, r, t) : ((c, l, g) => {
|
|
586
586
|
const y = l.hasOwnProperty(g);
|
|
587
587
|
return l.constructor.createProperty(g, y ? { ...c, wrapped: !0 } : c), y ? Object.getOwnPropertyDescriptor(l, g) : void 0;
|
|
@@ -593,7 +593,7 @@ function xt(w) {
|
|
|
593
593
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
594
594
|
*/
|
|
595
595
|
function Gn(w) {
|
|
596
|
-
return
|
|
596
|
+
return Se({ ...w, state: !0, attribute: !1 });
|
|
597
597
|
}
|
|
598
598
|
/**
|
|
599
599
|
* @license
|
|
@@ -617,7 +617,7 @@ function zn(w, r) {
|
|
|
617
617
|
} });
|
|
618
618
|
};
|
|
619
619
|
}
|
|
620
|
-
const Ar =
|
|
620
|
+
const Ar = kt`
|
|
621
621
|
.wrapper {
|
|
622
622
|
position: relative;
|
|
623
623
|
overflow: hidden;
|
|
@@ -652,14 +652,14 @@ const Ar = At`
|
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
.filter-gradient {
|
|
655
|
-
background: linear-gradient(to right, #
|
|
655
|
+
background: linear-gradient(to right, #6e46a3, #3d89ff, #00f7fe);
|
|
656
656
|
background-size: 200% 200%;
|
|
657
657
|
animation: gradientAnimation 8s ease infinite;
|
|
658
658
|
mix-blend-mode: overlay;
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
.filter-overlay {
|
|
662
|
-
background: linear-gradient(to right, #
|
|
662
|
+
background: linear-gradient(to right, #6e46a3, #3d89ff, #00f7fe);
|
|
663
663
|
background-size: 200% 200%;
|
|
664
664
|
animation: gradientAnimation 8s ease infinite;
|
|
665
665
|
transition: opacity 0.5s;
|
|
@@ -709,7 +709,7 @@ const Ar = At`
|
|
|
709
709
|
font-size: 1.25rem;
|
|
710
710
|
border: none;
|
|
711
711
|
cursor: pointer;
|
|
712
|
-
background-color: #
|
|
712
|
+
background-color: #d03175;
|
|
713
713
|
color: white;
|
|
714
714
|
}
|
|
715
715
|
|
|
@@ -719,7 +719,7 @@ const Ar = At`
|
|
|
719
719
|
}
|
|
720
720
|
|
|
721
721
|
.button[data-calling='false']:hover {
|
|
722
|
-
background-color: #
|
|
722
|
+
background-color: #b2236f;
|
|
723
723
|
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
724
724
|
}
|
|
725
725
|
|
|
@@ -759,17 +759,23 @@ const Ar = At`
|
|
|
759
759
|
align-items: center;
|
|
760
760
|
justify-content: center;
|
|
761
761
|
}
|
|
762
|
-
`, Jn =
|
|
762
|
+
`, Jn = kt`
|
|
763
763
|
* {
|
|
764
764
|
box-sizing: border-box;
|
|
765
765
|
margin: 0;
|
|
766
766
|
padding: 0;
|
|
767
767
|
border: 0;
|
|
768
768
|
}
|
|
769
|
+
|
|
770
|
+
button {
|
|
771
|
+
font-family: inherit;
|
|
772
|
+
font-size: inherit;
|
|
773
|
+
font-weight: inherit;
|
|
774
|
+
}
|
|
769
775
|
`;
|
|
770
|
-
var
|
|
776
|
+
var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, mt = {}, ue = {}, Je = { exports: {} }, Vt;
|
|
771
777
|
function ee() {
|
|
772
|
-
if (Vt) return
|
|
778
|
+
if (Vt) return Je.exports;
|
|
773
779
|
Vt = 1;
|
|
774
780
|
var w = typeof Reflect == "object" ? Reflect : null, r = w && typeof w.apply == "function" ? w.apply : function(s, h, I) {
|
|
775
781
|
return Function.prototype.apply.call(s, h, I);
|
|
@@ -788,7 +794,7 @@ function ee() {
|
|
|
788
794
|
function g() {
|
|
789
795
|
g.init.call(this);
|
|
790
796
|
}
|
|
791
|
-
|
|
797
|
+
Je.exports = g, Je.exports.once = o, g.EventEmitter = g, g.prototype._events = void 0, g.prototype._eventsCount = 0, g.prototype._maxListeners = void 0;
|
|
792
798
|
var y = 10;
|
|
793
799
|
function _(d) {
|
|
794
800
|
if (typeof d != "function")
|
|
@@ -977,13 +983,13 @@ function ee() {
|
|
|
977
983
|
else
|
|
978
984
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof d);
|
|
979
985
|
}
|
|
980
|
-
return
|
|
986
|
+
return Je.exports;
|
|
981
987
|
}
|
|
982
|
-
var
|
|
988
|
+
var Te = {}, Gt;
|
|
983
989
|
function Kn() {
|
|
984
|
-
if (Gt) return
|
|
990
|
+
if (Gt) return Te;
|
|
985
991
|
Gt = 1;
|
|
986
|
-
var w =
|
|
992
|
+
var w = Te && Te.__extends || /* @__PURE__ */ function() {
|
|
987
993
|
var c = function(l, g) {
|
|
988
994
|
return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y, _) {
|
|
989
995
|
y.__proto__ = _;
|
|
@@ -999,7 +1005,7 @@ function Kn() {
|
|
|
999
1005
|
l.prototype = g === null ? Object.create(g) : (y.prototype = g.prototype, new y());
|
|
1000
1006
|
};
|
|
1001
1007
|
}();
|
|
1002
|
-
Object.defineProperty(
|
|
1008
|
+
Object.defineProperty(Te, "__esModule", { value: !0 });
|
|
1003
1009
|
var r = ee(), t = (
|
|
1004
1010
|
/** @class */
|
|
1005
1011
|
function(c) {
|
|
@@ -1042,9 +1048,9 @@ function Kn() {
|
|
|
1042
1048
|
}, l;
|
|
1043
1049
|
}(r.EventEmitter)
|
|
1044
1050
|
);
|
|
1045
|
-
return
|
|
1051
|
+
return Te.default = t, Te;
|
|
1046
1052
|
}
|
|
1047
|
-
var Q = {},
|
|
1053
|
+
var Q = {}, st = { exports: {} }, kr = st.exports, zt;
|
|
1048
1054
|
function Qn() {
|
|
1049
1055
|
return zt || (zt = 1, function(w) {
|
|
1050
1056
|
(function(r, t) {
|
|
@@ -1169,13 +1175,13 @@ function Qn() {
|
|
|
1169
1175
|
return b;
|
|
1170
1176
|
}, u;
|
|
1171
1177
|
});
|
|
1172
|
-
}(
|
|
1178
|
+
}(st)), st.exports;
|
|
1173
1179
|
}
|
|
1174
|
-
var te = {},
|
|
1180
|
+
var te = {}, Ue = {}, Ne = {}, Pe = {}, Jt;
|
|
1175
1181
|
function Rr() {
|
|
1176
|
-
if (Jt) return
|
|
1182
|
+
if (Jt) return Pe;
|
|
1177
1183
|
Jt = 1;
|
|
1178
|
-
var w =
|
|
1184
|
+
var w = Pe && Pe.__extends || /* @__PURE__ */ function() {
|
|
1179
1185
|
var t = function(c, l) {
|
|
1180
1186
|
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(g, y) {
|
|
1181
1187
|
g.__proto__ = y;
|
|
@@ -1191,7 +1197,7 @@ function Rr() {
|
|
|
1191
1197
|
c.prototype = l === null ? Object.create(l) : (g.prototype = l.prototype, new g());
|
|
1192
1198
|
};
|
|
1193
1199
|
}();
|
|
1194
|
-
Object.defineProperty(
|
|
1200
|
+
Object.defineProperty(Pe, "__esModule", { value: !0 });
|
|
1195
1201
|
var r = (
|
|
1196
1202
|
/** @class */
|
|
1197
1203
|
function(t) {
|
|
@@ -1205,12 +1211,12 @@ function Rr() {
|
|
|
1205
1211
|
return c;
|
|
1206
1212
|
}(Error)
|
|
1207
1213
|
);
|
|
1208
|
-
return
|
|
1214
|
+
return Pe.default = r, Pe;
|
|
1209
1215
|
}
|
|
1210
1216
|
var Kt;
|
|
1211
1217
|
function xr() {
|
|
1212
1218
|
return Kt || (Kt = 1, function(w) {
|
|
1213
|
-
var r =
|
|
1219
|
+
var r = Ne && Ne.__extends || /* @__PURE__ */ function() {
|
|
1214
1220
|
var u = function(b, n) {
|
|
1215
1221
|
return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
|
1216
1222
|
e.__proto__ = i;
|
|
@@ -1909,12 +1915,12 @@ function xr() {
|
|
|
1909
1915
|
[53402, m.ClientRemoteDescFailed],
|
|
1910
1916
|
[53405, m.ConnectionError]
|
|
1911
1917
|
]), Object.freeze(w.errorsByCode);
|
|
1912
|
-
}(
|
|
1918
|
+
}(Ne)), Ne;
|
|
1913
1919
|
}
|
|
1914
1920
|
var Qt;
|
|
1915
1921
|
function z() {
|
|
1916
1922
|
return Qt || (Qt = 1, function(w) {
|
|
1917
|
-
var r =
|
|
1923
|
+
var r = Ue && Ue.__extends || /* @__PURE__ */ function() {
|
|
1918
1924
|
var S = function(m, u) {
|
|
1919
1925
|
return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, n) {
|
|
1920
1926
|
b.__proto__ = n;
|
|
@@ -2044,10 +2050,10 @@ function z() {
|
|
|
2044
2050
|
return t.errorsByCode.has(S);
|
|
2045
2051
|
}
|
|
2046
2052
|
w.hasErrorByCode = C;
|
|
2047
|
-
}(
|
|
2053
|
+
}(Ue)), Ue;
|
|
2048
2054
|
}
|
|
2049
|
-
var
|
|
2050
|
-
function
|
|
2055
|
+
var le = {}, J = {}, Xt;
|
|
2056
|
+
function Le() {
|
|
2051
2057
|
if (Xt) return J;
|
|
2052
2058
|
Xt = 1, Object.defineProperty(J, "__esModule", { value: !0 }), J.SOUNDS_BASE_URL = J.RELEASE_VERSION = J.PACKAGE_NAME = J.ECHO_TEST_DURATION = J.COWBELL_AUDIO_URL = void 0;
|
|
2053
2059
|
var w = "@twilio/voice-sdk";
|
|
@@ -2063,17 +2069,17 @@ function Oe() {
|
|
|
2063
2069
|
}
|
|
2064
2070
|
var Yt;
|
|
2065
2071
|
function X() {
|
|
2066
|
-
if (Yt) return
|
|
2072
|
+
if (Yt) return le;
|
|
2067
2073
|
Yt = 1;
|
|
2068
|
-
var w =
|
|
2074
|
+
var w = le && le.__spreadArrays || function() {
|
|
2069
2075
|
for (var l = 0, g = 0, y = arguments.length; g < y; g++) l += arguments[g].length;
|
|
2070
2076
|
for (var _ = Array(l), E = 0, g = 0; g < y; g++)
|
|
2071
2077
|
for (var C = arguments[g], S = 0, m = C.length; S < m; S++, E++)
|
|
2072
2078
|
_[E] = C[S];
|
|
2073
2079
|
return _;
|
|
2074
2080
|
};
|
|
2075
|
-
Object.defineProperty(
|
|
2076
|
-
var r = Qn(), t =
|
|
2081
|
+
Object.defineProperty(le, "__esModule", { value: !0 }), le.Logger = void 0;
|
|
2082
|
+
var r = Qn(), t = Le(), c = (
|
|
2077
2083
|
/** @class */
|
|
2078
2084
|
function() {
|
|
2079
2085
|
function l(g, y) {
|
|
@@ -2108,13 +2114,13 @@ function X() {
|
|
|
2108
2114
|
}, l.levels = r.levels, l;
|
|
2109
2115
|
}()
|
|
2110
2116
|
);
|
|
2111
|
-
return
|
|
2117
|
+
return le.Logger = c.getLogLevelInstance(), le.default = c, le;
|
|
2112
2118
|
}
|
|
2113
|
-
var
|
|
2119
|
+
var Ke = {}, Zt;
|
|
2114
2120
|
function Dr() {
|
|
2115
|
-
if (Zt) return
|
|
2116
|
-
Zt = 1, Object.defineProperty(
|
|
2117
|
-
var w =
|
|
2121
|
+
if (Zt) return Ke;
|
|
2122
|
+
Zt = 1, Object.defineProperty(Ke, "__esModule", { value: !0 });
|
|
2123
|
+
var w = Le(), r = z(), t = X(), c = w.SOUNDS_BASE_URL + "/outgoing.mp3", l = (
|
|
2118
2124
|
/** @class */
|
|
2119
2125
|
function() {
|
|
2120
2126
|
function g(y, _, E, C) {
|
|
@@ -2160,12 +2166,12 @@ function Dr() {
|
|
|
2160
2166
|
}, g;
|
|
2161
2167
|
}()
|
|
2162
2168
|
);
|
|
2163
|
-
return
|
|
2169
|
+
return Ke.default = l, Ke;
|
|
2164
2170
|
}
|
|
2165
|
-
var
|
|
2171
|
+
var Qe = {}, en;
|
|
2166
2172
|
function Or() {
|
|
2167
|
-
if (en) return
|
|
2168
|
-
en = 1, Object.defineProperty(
|
|
2173
|
+
if (en) return Qe;
|
|
2174
|
+
en = 1, Object.defineProperty(Qe, "__esModule", { value: !0 });
|
|
2169
2175
|
var w = (
|
|
2170
2176
|
/** @class */
|
|
2171
2177
|
/* @__PURE__ */ function() {
|
|
@@ -2188,10 +2194,10 @@ function Or() {
|
|
|
2188
2194
|
return r;
|
|
2189
2195
|
}()
|
|
2190
2196
|
);
|
|
2191
|
-
return
|
|
2197
|
+
return Qe.default = w, Qe;
|
|
2192
2198
|
}
|
|
2193
2199
|
var H = {}, tn;
|
|
2194
|
-
function
|
|
2200
|
+
function he() {
|
|
2195
2201
|
if (tn) return H;
|
|
2196
2202
|
tn = 1, Object.defineProperty(H, "__esModule", { value: !0 }), H.promisifyEvents = H.flatMap = H.queryToJson = H.isUnifiedPlanDefault = H.isSafari = H.isLegacyEdge = H.isFirefox = H.isChrome = H.isElectron = H.difference = H.average = H.Exception = void 0;
|
|
2197
2203
|
function w(b) {
|
|
@@ -2228,11 +2234,11 @@ function pe() {
|
|
|
2228
2234
|
}
|
|
2229
2235
|
H.isChrome = l;
|
|
2230
2236
|
function g(b) {
|
|
2231
|
-
return b = b || (typeof window > "u" ?
|
|
2237
|
+
return b = b || (typeof window > "u" ? Pt.navigator : window.navigator), !!b && typeof b.userAgent == "string" && /firefox|fxios/i.test(b.userAgent);
|
|
2232
2238
|
}
|
|
2233
2239
|
H.isFirefox = g;
|
|
2234
2240
|
function y(b) {
|
|
2235
|
-
return b = b || (typeof window > "u" ?
|
|
2241
|
+
return b = b || (typeof window > "u" ? Pt.navigator : window.navigator), !!b && typeof b.userAgent == "string" && /edge\/\d+/i.test(b.userAgent);
|
|
2236
2242
|
}
|
|
2237
2243
|
H.isLegacyEdge = y;
|
|
2238
2244
|
function _(b) {
|
|
@@ -2397,7 +2403,7 @@ function Mr() {
|
|
|
2397
2403
|
}
|
|
2398
2404
|
};
|
|
2399
2405
|
Object.defineProperty(te, "__esModule", { value: !0 });
|
|
2400
|
-
var c = ee(), l =
|
|
2406
|
+
var c = ee(), l = dt(), g = z(), y = X(), _ = Dr(), E = Or(), C = he(), S = {
|
|
2401
2407
|
audioinput: "Audio Input",
|
|
2402
2408
|
audiooutput: "Audio Output"
|
|
2403
2409
|
}, m = (
|
|
@@ -2700,11 +2706,11 @@ function Mr() {
|
|
|
2700
2706
|
);
|
|
2701
2707
|
return m || (m = {}), te.default = m, te;
|
|
2702
2708
|
}
|
|
2703
|
-
var
|
|
2709
|
+
var ge = {}, rn;
|
|
2704
2710
|
function Lr() {
|
|
2705
|
-
if (rn) return
|
|
2711
|
+
if (rn) return ge;
|
|
2706
2712
|
rn = 1;
|
|
2707
|
-
var w =
|
|
2713
|
+
var w = ge && ge.__extends || /* @__PURE__ */ function() {
|
|
2708
2714
|
var l = function(g, y) {
|
|
2709
2715
|
return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, E) {
|
|
2710
2716
|
_.__proto__ = E;
|
|
@@ -2720,7 +2726,7 @@ function Lr() {
|
|
|
2720
2726
|
g.prototype = y === null ? Object.create(y) : (_.prototype = y.prototype, new _());
|
|
2721
2727
|
};
|
|
2722
2728
|
}();
|
|
2723
|
-
Object.defineProperty(
|
|
2729
|
+
Object.defineProperty(ge, "__esModule", { value: !0 }), ge.AudioProcessorEventObserver = void 0;
|
|
2724
2730
|
var r = ee(), t = X(), c = (
|
|
2725
2731
|
/** @class */
|
|
2726
2732
|
function(l) {
|
|
@@ -2746,12 +2752,12 @@ function Lr() {
|
|
|
2746
2752
|
}, g;
|
|
2747
2753
|
}(r.EventEmitter)
|
|
2748
2754
|
);
|
|
2749
|
-
return
|
|
2755
|
+
return ge.AudioProcessorEventObserver = c, ge;
|
|
2750
2756
|
}
|
|
2751
|
-
var
|
|
2757
|
+
var Xe = {}, on;
|
|
2752
2758
|
function jr() {
|
|
2753
|
-
if (on) return
|
|
2754
|
-
on = 1, Object.defineProperty(
|
|
2759
|
+
if (on) return Xe;
|
|
2760
|
+
on = 1, Object.defineProperty(Xe, "__esModule", { value: !0 });
|
|
2755
2761
|
var w = z(), r = {
|
|
2756
2762
|
dtmf0: [1360, 960],
|
|
2757
2763
|
dtmf1: [1230, 720],
|
|
@@ -2797,12 +2803,12 @@ function jr() {
|
|
|
2797
2803
|
}, c;
|
|
2798
2804
|
}()
|
|
2799
2805
|
);
|
|
2800
|
-
return
|
|
2806
|
+
return Xe.default = t, Xe;
|
|
2801
2807
|
}
|
|
2802
|
-
var
|
|
2808
|
+
var Ie = {}, Ye = {}, an;
|
|
2803
2809
|
function Ur() {
|
|
2804
|
-
if (an) return
|
|
2805
|
-
an = 1, Object.defineProperty(
|
|
2810
|
+
if (an) return Ye;
|
|
2811
|
+
an = 1, Object.defineProperty(Ye, "__esModule", { value: !0 });
|
|
2806
2812
|
function w(t, c, l) {
|
|
2807
2813
|
var g = JSON.stringify(c.body || {}), y = new Headers();
|
|
2808
2814
|
c.headers = c.headers || [], Object.entries(c.headers).forEach(function(_) {
|
|
@@ -2819,13 +2825,13 @@ function Ur() {
|
|
|
2819
2825
|
return new this("GET", c, l);
|
|
2820
2826
|
}, r.post = function(c, l) {
|
|
2821
2827
|
return new this("POST", c, l);
|
|
2822
|
-
},
|
|
2828
|
+
}, Ye.default = r, Ye;
|
|
2823
2829
|
}
|
|
2824
2830
|
var sn;
|
|
2825
2831
|
function Nr() {
|
|
2826
|
-
if (sn) return
|
|
2832
|
+
if (sn) return Ie;
|
|
2827
2833
|
sn = 1;
|
|
2828
|
-
var w =
|
|
2834
|
+
var w = Ie && Ie.__extends || /* @__PURE__ */ function() {
|
|
2829
2835
|
var y = function(_, E) {
|
|
2830
2836
|
return y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, S) {
|
|
2831
2837
|
C.__proto__ = S;
|
|
@@ -2841,7 +2847,7 @@ function Nr() {
|
|
|
2841
2847
|
_.prototype = E === null ? Object.create(E) : (C.prototype = E.prototype, new C());
|
|
2842
2848
|
};
|
|
2843
2849
|
}();
|
|
2844
|
-
Object.defineProperty(
|
|
2850
|
+
Object.defineProperty(Ie, "__esModule", { value: !0 });
|
|
2845
2851
|
var r = ee(), t = X(), c = Ur(), l = (
|
|
2846
2852
|
/** @class */
|
|
2847
2853
|
function(y) {
|
|
@@ -2981,12 +2987,12 @@ function Nr() {
|
|
|
2981
2987
|
total_packets_sent: y.totals.packetsSent
|
|
2982
2988
|
};
|
|
2983
2989
|
}
|
|
2984
|
-
return
|
|
2990
|
+
return Ie.default = l, Ie;
|
|
2985
2991
|
}
|
|
2986
|
-
var Y = {}, oe = {},
|
|
2992
|
+
var Y = {}, oe = {}, Ze = {}, cn;
|
|
2987
2993
|
function Fr() {
|
|
2988
|
-
if (cn) return
|
|
2989
|
-
cn = 1, Object.defineProperty(
|
|
2994
|
+
if (cn) return Ze;
|
|
2995
|
+
cn = 1, Object.defineProperty(Ze, "__esModule", { value: !0 });
|
|
2990
2996
|
var w = 32767, r = typeof window < "u" ? window.RTCStatsReport : void 0;
|
|
2991
2997
|
function t(f) {
|
|
2992
2998
|
if (!(this instanceof t))
|
|
@@ -3257,7 +3263,7 @@ function Fr() {
|
|
|
3257
3263
|
var s = f.stat(d);
|
|
3258
3264
|
return typeof s < "u" && s !== "";
|
|
3259
3265
|
}
|
|
3260
|
-
return
|
|
3266
|
+
return Ze.default = t, Ze;
|
|
3261
3267
|
}
|
|
3262
3268
|
var un;
|
|
3263
3269
|
function Xn() {
|
|
@@ -3489,7 +3495,7 @@ function Yn() {
|
|
|
3489
3495
|
}
|
|
3490
3496
|
};
|
|
3491
3497
|
Object.defineProperty(w, "__esModule", { value: !0 }), w.PreflightTest = void 0;
|
|
3492
|
-
var g = ee(), y = Ot(), _ =
|
|
3498
|
+
var g = ee(), y = Ot(), _ = dt(), E = z(), C = X(), S = Xn(), m = Le(), u = (
|
|
3493
3499
|
/** @class */
|
|
3494
3500
|
function(b) {
|
|
3495
3501
|
r(n, b);
|
|
@@ -3761,10 +3767,10 @@ function Yn() {
|
|
|
3761
3767
|
}(u = w.PreflightTest || (w.PreflightTest = {})), w.PreflightTest = u;
|
|
3762
3768
|
}(Y)), Y;
|
|
3763
3769
|
}
|
|
3764
|
-
var
|
|
3770
|
+
var Ae = {}, me = {}, dn;
|
|
3765
3771
|
function $r() {
|
|
3766
3772
|
return dn || (dn = 1, function(w) {
|
|
3767
|
-
var r =
|
|
3773
|
+
var r = me && me.__extends || /* @__PURE__ */ function() {
|
|
3768
3774
|
var o = function(a, f) {
|
|
3769
3775
|
return o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, s) {
|
|
3770
3776
|
d.__proto__ = s;
|
|
@@ -3779,7 +3785,7 @@ function $r() {
|
|
|
3779
3785
|
}
|
|
3780
3786
|
a.prototype = f === null ? Object.create(f) : (d.prototype = f.prototype, new d());
|
|
3781
3787
|
};
|
|
3782
|
-
}(), t =
|
|
3788
|
+
}(), t = me && me.__assign || function() {
|
|
3783
3789
|
return t = Object.assign || function(o) {
|
|
3784
3790
|
for (var a, f = 1, d = arguments.length; f < d; f++) {
|
|
3785
3791
|
a = arguments[f];
|
|
@@ -3986,13 +3992,13 @@ function $r() {
|
|
|
3986
3992
|
}(c.EventEmitter)
|
|
3987
3993
|
);
|
|
3988
3994
|
w.default = i;
|
|
3989
|
-
}(
|
|
3995
|
+
}(me)), me;
|
|
3990
3996
|
}
|
|
3991
3997
|
var fn;
|
|
3992
3998
|
function Br() {
|
|
3993
|
-
if (fn) return
|
|
3999
|
+
if (fn) return Ae;
|
|
3994
4000
|
fn = 1;
|
|
3995
|
-
var w =
|
|
4001
|
+
var w = Ae && Ae.__extends || /* @__PURE__ */ function() {
|
|
3996
4002
|
var S = function(m, u) {
|
|
3997
4003
|
return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, n) {
|
|
3998
4004
|
b.__proto__ = n;
|
|
@@ -4008,8 +4014,8 @@ function Br() {
|
|
|
4008
4014
|
m.prototype = u === null ? Object.create(u) : (b.prototype = u.prototype, new b());
|
|
4009
4015
|
};
|
|
4010
4016
|
}();
|
|
4011
|
-
Object.defineProperty(
|
|
4012
|
-
var r = ee(), t =
|
|
4017
|
+
Object.defineProperty(Ae, "__esModule", { value: !0 });
|
|
4018
|
+
var r = ee(), t = Le(), c = z(), l = X(), g = $r(), y = "1.6", _ = 30, E = (
|
|
4013
4019
|
/** @class */
|
|
4014
4020
|
function(S) {
|
|
4015
4021
|
w(m, S);
|
|
@@ -4159,9 +4165,9 @@ function Br() {
|
|
|
4159
4165
|
};
|
|
4160
4166
|
return m;
|
|
4161
4167
|
}
|
|
4162
|
-
return
|
|
4168
|
+
return Ae.default = E, Ae;
|
|
4163
4169
|
}
|
|
4164
|
-
var
|
|
4170
|
+
var _t = {}, pn;
|
|
4165
4171
|
function qr() {
|
|
4166
4172
|
return pn || (pn = 1, function(w) {
|
|
4167
4173
|
var r;
|
|
@@ -4219,13 +4225,13 @@ function qr() {
|
|
|
4219
4225
|
return w.regionShortcodes[m] || null;
|
|
4220
4226
|
}
|
|
4221
4227
|
w.getRegionShortcode = S;
|
|
4222
|
-
}(
|
|
4228
|
+
}(_t)), _t;
|
|
4223
4229
|
}
|
|
4224
|
-
var ae = {},
|
|
4230
|
+
var ae = {}, et = {}, tt = {}, Z = {}, hn;
|
|
4225
4231
|
function Dt() {
|
|
4226
4232
|
if (hn) return Z;
|
|
4227
4233
|
hn = 1, Object.defineProperty(Z, "__esModule", { value: !0 }), Z.setMaxAverageBitrate = Z.setIceAggressiveNomination = Z.setCodecPreferences = Z.getPreferredCodecInfo = void 0;
|
|
4228
|
-
var w =
|
|
4234
|
+
var w = he(), r = {
|
|
4229
4235
|
0: "PCMU",
|
|
4230
4236
|
8: "PCMA"
|
|
4231
4237
|
}, t = 111, c = 51e4, l = 6e3;
|
|
@@ -4313,7 +4319,7 @@ m=`).slice(1).map(function(a) {
|
|
|
4313
4319
|
}
|
|
4314
4320
|
return Z;
|
|
4315
4321
|
}
|
|
4316
|
-
var
|
|
4322
|
+
var yt = { exports: {} }, vn;
|
|
4317
4323
|
function Hr() {
|
|
4318
4324
|
return vn || (vn = 1, function(w) {
|
|
4319
4325
|
var r = {};
|
|
@@ -4725,11 +4731,11 @@ t=0 0\r
|
|
|
4725
4731
|
return !1;
|
|
4726
4732
|
return !0;
|
|
4727
4733
|
}, w.exports = r;
|
|
4728
|
-
}(
|
|
4734
|
+
}(yt)), yt.exports;
|
|
4729
4735
|
}
|
|
4730
|
-
var
|
|
4736
|
+
var bt, gn;
|
|
4731
4737
|
function Wr() {
|
|
4732
|
-
if (gn) return
|
|
4738
|
+
if (gn) return bt;
|
|
4733
4739
|
gn = 1;
|
|
4734
4740
|
var w = Hr();
|
|
4735
4741
|
function r(_, E, C, S, m) {
|
|
@@ -4839,7 +4845,7 @@ function Wr() {
|
|
|
4839
4845
|
var C = new Error(E);
|
|
4840
4846
|
return C.name = _, C;
|
|
4841
4847
|
}
|
|
4842
|
-
return
|
|
4848
|
+
return bt = function(_, E) {
|
|
4843
4849
|
function C(n, e) {
|
|
4844
4850
|
e.addTrack(n), e.dispatchEvent(new _.MediaStreamTrackEvent(
|
|
4845
4851
|
"addtrack",
|
|
@@ -5216,7 +5222,7 @@ function Wr() {
|
|
|
5216
5222
|
I,
|
|
5217
5223
|
"a=end-of-candidates",
|
|
5218
5224
|
f
|
|
5219
|
-
).length > 0,
|
|
5225
|
+
).length > 0, Ce = w.matchPrefix(I, "a=candidate:").map(function(K) {
|
|
5220
5226
|
return w.parseCandidate(K);
|
|
5221
5227
|
}).filter(function(K) {
|
|
5222
5228
|
return K.component === 1;
|
|
@@ -5229,7 +5235,7 @@ function Wr() {
|
|
|
5229
5235
|
A = e.transceivers[v] || e._createTransceiver(T), A.mid = j, A.iceGatherer || (A.iceGatherer = e._createIceGatherer(
|
|
5230
5236
|
v,
|
|
5231
5237
|
s
|
|
5232
|
-
)),
|
|
5238
|
+
)), Ce.length && A.iceTransport.state === "new" && (ie && (!s || v === 0) ? A.iceTransport.setRemoteCandidates(Ce) : Ce.forEach(function(K) {
|
|
5233
5239
|
g(A.iceTransport, K);
|
|
5234
5240
|
})), F = _.RTCRtpReceiver.getCapabilities(T), E < 15019 && (F.codecs = F.codecs.filter(
|
|
5235
5241
|
function(K) {
|
|
@@ -5238,10 +5244,10 @@ function Wr() {
|
|
|
5238
5244
|
)), M = A.sendEncodingParameters || [{
|
|
5239
5245
|
ssrc: (2 * v + 2) * 1001
|
|
5240
5246
|
}];
|
|
5241
|
-
var
|
|
5247
|
+
var ft = !1;
|
|
5242
5248
|
if (R === "sendrecv" || R === "sendonly") {
|
|
5243
|
-
if (
|
|
5244
|
-
var
|
|
5249
|
+
if (ft = !A.rtpReceiver, x = A.rtpReceiver || new _.RTCRtpReceiver(A.dtlsTransport, T), ft) {
|
|
5250
|
+
var Ee;
|
|
5245
5251
|
$ = x.track, p && p.stream === "-" || (p ? (i[p.stream] || (i[p.stream] = new _.MediaStream(), Object.defineProperty(i[p.stream], "id", {
|
|
5246
5252
|
get: function() {
|
|
5247
5253
|
return p.stream;
|
|
@@ -5250,7 +5256,7 @@ function Wr() {
|
|
|
5250
5256
|
get: function() {
|
|
5251
5257
|
return p.track;
|
|
5252
5258
|
}
|
|
5253
|
-
}),
|
|
5259
|
+
}), Ee = i[p.stream]) : (i.default || (i.default = new _.MediaStream()), Ee = i.default)), Ee && (C($, Ee), A.associatedRemoteMediaStreams.push(Ee)), o.push([$, x, Ee]);
|
|
5254
5260
|
}
|
|
5255
5261
|
} else A.rtpReceiver && A.rtpReceiver.track && (A.associatedRemoteMediaStreams.forEach(function(K) {
|
|
5256
5262
|
var Mt = K.getTracks().find(function(or) {
|
|
@@ -5261,9 +5267,9 @@ function Wr() {
|
|
|
5261
5267
|
A.localCapabilities = F, A.remoteCapabilities = B, A.rtpReceiver = x, A.rtcpParameters = G, A.sendEncodingParameters = M, A.recvEncodingParameters = L, e._transceive(
|
|
5262
5268
|
e.transceivers[v],
|
|
5263
5269
|
!1,
|
|
5264
|
-
|
|
5270
|
+
ft
|
|
5265
5271
|
);
|
|
5266
|
-
} else n.type === "answer" && !k && (A = e.transceivers[v], N = A.iceGatherer, D = A.iceTransport, U = A.dtlsTransport, x = A.rtpReceiver, M = A.sendEncodingParameters, F = A.localCapabilities, e.transceivers[v].recvEncodingParameters = L, e.transceivers[v].remoteCapabilities = B, e.transceivers[v].rtcpParameters = G,
|
|
5272
|
+
} else n.type === "answer" && !k && (A = e.transceivers[v], N = A.iceGatherer, D = A.iceTransport, U = A.dtlsTransport, x = A.rtpReceiver, M = A.sendEncodingParameters, F = A.localCapabilities, e.transceivers[v].recvEncodingParameters = L, e.transceivers[v].remoteCapabilities = B, e.transceivers[v].rtcpParameters = G, Ce.length && D.state === "new" && ((d || ie) && (!s || v === 0) ? D.setRemoteCandidates(Ce) : Ce.forEach(function(K) {
|
|
5267
5273
|
g(A.iceTransport, K);
|
|
5268
5274
|
})), (!s || v === 0) && (D.state === "new" && D.start(
|
|
5269
5275
|
N,
|
|
@@ -5575,19 +5581,19 @@ a=mid:` + a.mid + `\r
|
|
|
5575
5581
|
}) : e.apply(this, arguments);
|
|
5576
5582
|
};
|
|
5577
5583
|
}), u;
|
|
5578
|
-
},
|
|
5584
|
+
}, bt;
|
|
5579
5585
|
}
|
|
5580
5586
|
var mn;
|
|
5581
5587
|
function Zn() {
|
|
5582
|
-
if (mn) return
|
|
5583
|
-
mn = 1, Object.defineProperty(
|
|
5584
|
-
var w = X(), r =
|
|
5588
|
+
if (mn) return tt;
|
|
5589
|
+
mn = 1, Object.defineProperty(tt, "__esModule", { value: !0 });
|
|
5590
|
+
var w = X(), r = he(), t = Dt(), c = Wr();
|
|
5585
5591
|
function l(E) {
|
|
5586
5592
|
if (typeof window > "u") {
|
|
5587
5593
|
this.log.info("No RTCPeerConnection implementation available. The window object was not found.");
|
|
5588
5594
|
return;
|
|
5589
5595
|
}
|
|
5590
|
-
E && E.RTCPeerConnection ? this.RTCPeerConnection = E.RTCPeerConnection : r.isLegacyEdge() ? this.RTCPeerConnection = new c(typeof window < "u" ? window :
|
|
5596
|
+
E && E.RTCPeerConnection ? this.RTCPeerConnection = E.RTCPeerConnection : r.isLegacyEdge() ? this.RTCPeerConnection = new c(typeof window < "u" ? window : Pt) : typeof window.RTCPeerConnection == "function" ? this.RTCPeerConnection = window.RTCPeerConnection : typeof window.webkitRTCPeerConnection == "function" ? this.RTCPeerConnection = webkitRTCPeerConnection : typeof window.mozRTCPeerConnection == "function" ? (this.RTCPeerConnection = mozRTCPeerConnection, window.RTCSessionDescription = mozRTCSessionDescription, window.RTCIceCandidate = mozRTCIceCandidate) : this.log.info("No RTCPeerConnection implementation available");
|
|
5591
5597
|
}
|
|
5592
5598
|
l.prototype.create = function(E) {
|
|
5593
5599
|
this.log = new w.default("RTCPC"), this.pc = new this.RTCPeerConnection(E);
|
|
@@ -5678,13 +5684,13 @@ function Zn() {
|
|
|
5678
5684
|
function _(E, C) {
|
|
5679
5685
|
return g(E, C, !1, !1);
|
|
5680
5686
|
}
|
|
5681
|
-
return
|
|
5687
|
+
return tt.default = l, tt;
|
|
5682
5688
|
}
|
|
5683
5689
|
var _n;
|
|
5684
5690
|
function Vr() {
|
|
5685
|
-
if (_n) return
|
|
5686
|
-
_n = 1, Object.defineProperty(
|
|
5687
|
-
var w = z(), r = X(), t =
|
|
5691
|
+
if (_n) return et;
|
|
5692
|
+
_n = 1, Object.defineProperty(et, "__esModule", { value: !0 });
|
|
5693
|
+
var w = z(), r = X(), t = he(), c = Zn(), l = Dt(), g = 15e3, y = "none", _ = "timeout", E = "new", C = 50;
|
|
5688
5694
|
function S(e, i, o) {
|
|
5689
5695
|
if (!e || !i)
|
|
5690
5696
|
throw new w.InvalidArgumentError("Audiohelper, and pstream are required arguments");
|
|
@@ -6103,7 +6109,7 @@ function Vr() {
|
|
|
6103
6109
|
return !1;
|
|
6104
6110
|
return !0;
|
|
6105
6111
|
}
|
|
6106
|
-
return S.enabled = c.default.test(),
|
|
6112
|
+
return S.enabled = c.default.test(), et.default = S, et;
|
|
6107
6113
|
}
|
|
6108
6114
|
var yn;
|
|
6109
6115
|
function er() {
|
|
@@ -6121,11 +6127,11 @@ function er() {
|
|
|
6121
6127
|
}
|
|
6122
6128
|
return ae.getMediaEngine = c, ae;
|
|
6123
6129
|
}
|
|
6124
|
-
var
|
|
6130
|
+
var nt = {}, bn;
|
|
6125
6131
|
function Gr() {
|
|
6126
|
-
if (bn) return
|
|
6127
|
-
bn = 1, Object.defineProperty(
|
|
6128
|
-
var w = z(), r =
|
|
6132
|
+
if (bn) return nt;
|
|
6133
|
+
bn = 1, Object.defineProperty(nt, "__esModule", { value: !0 });
|
|
6134
|
+
var w = z(), r = he();
|
|
6129
6135
|
function t(c, l) {
|
|
6130
6136
|
return l = l || {}, l.util = l.util || r, l.navigator = l.navigator || (typeof navigator < "u" ? navigator : null), new Promise(function(g, y) {
|
|
6131
6137
|
if (!l.navigator)
|
|
@@ -6147,12 +6153,12 @@ function Gr() {
|
|
|
6147
6153
|
Related Bugzilla thread: https://bugzilla.mozilla.org/show_bug.cgi?id=1299324`) : g;
|
|
6148
6154
|
});
|
|
6149
6155
|
}
|
|
6150
|
-
return
|
|
6156
|
+
return nt.default = t, nt;
|
|
6151
6157
|
}
|
|
6152
|
-
var
|
|
6158
|
+
var rt = {}, se = {}, it = {}, Sn;
|
|
6153
6159
|
function zr() {
|
|
6154
|
-
if (Sn) return
|
|
6155
|
-
Sn = 1, Object.defineProperty(
|
|
6160
|
+
if (Sn) return it;
|
|
6161
|
+
Sn = 1, Object.defineProperty(it, "__esModule", { value: !0 });
|
|
6156
6162
|
var w = (
|
|
6157
6163
|
/** @class */
|
|
6158
6164
|
function() {
|
|
@@ -6178,7 +6184,7 @@ function zr() {
|
|
|
6178
6184
|
}, r;
|
|
6179
6185
|
}()
|
|
6180
6186
|
);
|
|
6181
|
-
return
|
|
6187
|
+
return it.default = w, it;
|
|
6182
6188
|
}
|
|
6183
6189
|
var wn;
|
|
6184
6190
|
function Jr() {
|
|
@@ -6309,10 +6315,10 @@ function Jr() {
|
|
|
6309
6315
|
);
|
|
6310
6316
|
return se.AsyncQueue = c, se;
|
|
6311
6317
|
}
|
|
6312
|
-
var ne = {},
|
|
6318
|
+
var ne = {}, ot = {}, Cn;
|
|
6313
6319
|
function Kr() {
|
|
6314
|
-
if (Cn) return
|
|
6315
|
-
Cn = 1, Object.defineProperty(
|
|
6320
|
+
if (Cn) return ot;
|
|
6321
|
+
Cn = 1, Object.defineProperty(ot, "__esModule", { value: !0 });
|
|
6316
6322
|
var w = (
|
|
6317
6323
|
/** @class */
|
|
6318
6324
|
function() {
|
|
@@ -6337,20 +6343,20 @@ function Kr() {
|
|
|
6337
6343
|
}), r;
|
|
6338
6344
|
}()
|
|
6339
6345
|
);
|
|
6340
|
-
return
|
|
6346
|
+
return ot.default = w, ot;
|
|
6341
6347
|
}
|
|
6342
|
-
var
|
|
6348
|
+
var ke = {}, En;
|
|
6343
6349
|
function Qr() {
|
|
6344
|
-
if (En) return
|
|
6350
|
+
if (En) return ke;
|
|
6345
6351
|
En = 1;
|
|
6346
|
-
var w =
|
|
6352
|
+
var w = ke && ke.__spreadArrays || function() {
|
|
6347
6353
|
for (var c = 0, l = 0, g = arguments.length; l < g; l++) c += arguments[l].length;
|
|
6348
6354
|
for (var y = Array(c), _ = 0, l = 0; l < g; l++)
|
|
6349
6355
|
for (var E = arguments[l], C = 0, S = E.length; C < S; C++, _++)
|
|
6350
6356
|
y[_] = E[C];
|
|
6351
6357
|
return y;
|
|
6352
6358
|
};
|
|
6353
|
-
Object.defineProperty(
|
|
6359
|
+
Object.defineProperty(ke, "__esModule", { value: !0 });
|
|
6354
6360
|
var r = ee(), t = (
|
|
6355
6361
|
/** @class */
|
|
6356
6362
|
function() {
|
|
@@ -6368,7 +6374,7 @@ function Qr() {
|
|
|
6368
6374
|
}, c;
|
|
6369
6375
|
}()
|
|
6370
6376
|
);
|
|
6371
|
-
return
|
|
6377
|
+
return ke.default = t, ke;
|
|
6372
6378
|
}
|
|
6373
6379
|
var Tn;
|
|
6374
6380
|
function Xr() {
|
|
@@ -6678,8 +6684,8 @@ function Xr() {
|
|
|
6678
6684
|
}
|
|
6679
6685
|
var Pn;
|
|
6680
6686
|
function Yr() {
|
|
6681
|
-
if (Pn) return
|
|
6682
|
-
Pn = 1, Object.defineProperty(
|
|
6687
|
+
if (Pn) return rt;
|
|
6688
|
+
Pn = 1, Object.defineProperty(rt, "__esModule", { value: !0 });
|
|
6683
6689
|
var w = Jr(), r = Xr(), t = z();
|
|
6684
6690
|
function c(g, y, _) {
|
|
6685
6691
|
if (!(this instanceof c))
|
|
@@ -6768,9 +6774,9 @@ function Yr() {
|
|
|
6768
6774
|
return this._operations.enqueue(function() {
|
|
6769
6775
|
return y._play();
|
|
6770
6776
|
});
|
|
6771
|
-
},
|
|
6777
|
+
}, rt.default = c, rt;
|
|
6772
6778
|
}
|
|
6773
|
-
var
|
|
6779
|
+
var Fe = {}, St = { exports: {} }, wt = { exports: {} }, In;
|
|
6774
6780
|
function Zr() {
|
|
6775
6781
|
return In || (In = 1, function() {
|
|
6776
6782
|
var w = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r = {
|
|
@@ -6835,12 +6841,12 @@ function Zr() {
|
|
|
6835
6841
|
return c;
|
|
6836
6842
|
}
|
|
6837
6843
|
};
|
|
6838
|
-
|
|
6839
|
-
}()),
|
|
6844
|
+
wt.exports = r;
|
|
6845
|
+
}()), wt.exports;
|
|
6840
6846
|
}
|
|
6841
|
-
var
|
|
6847
|
+
var Ct, An;
|
|
6842
6848
|
function kn() {
|
|
6843
|
-
if (An) return
|
|
6849
|
+
if (An) return Ct;
|
|
6844
6850
|
An = 1;
|
|
6845
6851
|
var w = {
|
|
6846
6852
|
// UTF-8 encoding
|
|
@@ -6870,7 +6876,7 @@ function kn() {
|
|
|
6870
6876
|
}
|
|
6871
6877
|
}
|
|
6872
6878
|
};
|
|
6873
|
-
return
|
|
6879
|
+
return Ct = w, Ct;
|
|
6874
6880
|
}
|
|
6875
6881
|
/*!
|
|
6876
6882
|
* Determine if an object is a Buffer
|
|
@@ -6878,10 +6884,10 @@ function kn() {
|
|
|
6878
6884
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
6879
6885
|
* @license MIT
|
|
6880
6886
|
*/
|
|
6881
|
-
var
|
|
6887
|
+
var Et, Rn;
|
|
6882
6888
|
function ei() {
|
|
6883
|
-
if (Rn) return
|
|
6884
|
-
Rn = 1,
|
|
6889
|
+
if (Rn) return Et;
|
|
6890
|
+
Rn = 1, Et = function(t) {
|
|
6885
6891
|
return t != null && (w(t) || r(t) || !!t._isBuffer);
|
|
6886
6892
|
};
|
|
6887
6893
|
function w(t) {
|
|
@@ -6890,7 +6896,7 @@ function ei() {
|
|
|
6890
6896
|
function r(t) {
|
|
6891
6897
|
return typeof t.readFloatLE == "function" && typeof t.slice == "function" && w(t.slice(0, 0));
|
|
6892
6898
|
}
|
|
6893
|
-
return
|
|
6899
|
+
return Et;
|
|
6894
6900
|
}
|
|
6895
6901
|
var xn;
|
|
6896
6902
|
function ti() {
|
|
@@ -6918,18 +6924,18 @@ function ti() {
|
|
|
6918
6924
|
}, l._ii = function(g, y, _, E, C, S, m) {
|
|
6919
6925
|
var u = g + (_ ^ (y | ~E)) + (C >>> 0) + m;
|
|
6920
6926
|
return (u << S | u >>> 32 - S) + y;
|
|
6921
|
-
}, l._blocksize = 16, l._digestsize = 16,
|
|
6927
|
+
}, l._blocksize = 16, l._digestsize = 16, St.exports = function(g, y) {
|
|
6922
6928
|
if (g == null)
|
|
6923
6929
|
throw new Error("Illegal argument " + g);
|
|
6924
6930
|
var _ = w.wordsToBytes(l(g, y));
|
|
6925
6931
|
return y && y.asBytes ? _ : y && y.asString ? c.bytesToString(_) : w.bytesToHex(_);
|
|
6926
6932
|
};
|
|
6927
|
-
}()),
|
|
6933
|
+
}()), St.exports;
|
|
6928
6934
|
}
|
|
6929
6935
|
var Dn;
|
|
6930
6936
|
function tr() {
|
|
6931
|
-
if (Dn) return
|
|
6932
|
-
Dn = 1, Object.defineProperty(
|
|
6937
|
+
if (Dn) return Fe;
|
|
6938
|
+
Dn = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.generateVoiceEventSid = void 0;
|
|
6933
6939
|
var w = ti(), r = z(), t = typeof w == "function" ? w : w.default;
|
|
6934
6940
|
function c() {
|
|
6935
6941
|
if (typeof window != "object")
|
|
@@ -6952,10 +6958,10 @@ function tr() {
|
|
|
6952
6958
|
function l() {
|
|
6953
6959
|
return "KX" + c();
|
|
6954
6960
|
}
|
|
6955
|
-
return
|
|
6961
|
+
return Fe.generateVoiceEventSid = l, Fe;
|
|
6956
6962
|
}
|
|
6957
6963
|
var On;
|
|
6958
|
-
function
|
|
6964
|
+
function dt() {
|
|
6959
6965
|
if (On) return Q;
|
|
6960
6966
|
On = 1;
|
|
6961
6967
|
var w = Q && Q.__extends || /* @__PURE__ */ function() {
|
|
@@ -7068,7 +7074,7 @@ function ct() {
|
|
|
7068
7074
|
}
|
|
7069
7075
|
};
|
|
7070
7076
|
Object.defineProperty(Q, "__esModule", { value: !0 });
|
|
7071
|
-
var l = ee(), g = Qn(), y = Mr(), _ = Lr(), E = Ot(), C =
|
|
7077
|
+
var l = ee(), g = Qn(), y = Mr(), _ = Lr(), E = Ot(), C = Le(), S = jr(), m = z(), u = Nr(), b = X(), n = Yn(), e = Br(), i = qr(), o = er(), a = Gr(), f = Yr(), d = he(), s = tr(), h = 3e4, I = 2e3, v = "twilio-js-sdk", O = 'Parameter "token" must be of type "string".', T = (
|
|
7072
7078
|
/** @class */
|
|
7073
7079
|
function(k) {
|
|
7074
7080
|
w(P, k);
|
|
@@ -7770,10 +7776,10 @@ function ct() {
|
|
|
7770
7776
|
}(k.SoundName || (k.SoundName = {}));
|
|
7771
7777
|
}(T || (T = {})), Q.default = T, Q;
|
|
7772
7778
|
}
|
|
7773
|
-
var
|
|
7779
|
+
var $e = {}, Mn;
|
|
7774
7780
|
function ni() {
|
|
7775
|
-
if (Mn) return
|
|
7776
|
-
Mn = 1, Object.defineProperty(
|
|
7781
|
+
if (Mn) return $e;
|
|
7782
|
+
Mn = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.IceCandidate = void 0;
|
|
7777
7783
|
var w = (
|
|
7778
7784
|
/** @class */
|
|
7779
7785
|
function() {
|
|
@@ -7800,12 +7806,12 @@ function ni() {
|
|
|
7800
7806
|
}, r;
|
|
7801
7807
|
}()
|
|
7802
7808
|
);
|
|
7803
|
-
return
|
|
7809
|
+
return $e.IceCandidate = w, $e;
|
|
7804
7810
|
}
|
|
7805
|
-
var re = {},
|
|
7811
|
+
var re = {}, de = {}, Ln;
|
|
7806
7812
|
function ri() {
|
|
7807
|
-
if (Ln) return
|
|
7808
|
-
Ln = 1, Object.defineProperty(
|
|
7813
|
+
if (Ln) return de;
|
|
7814
|
+
Ln = 1, Object.defineProperty(de, "__esModule", { value: !0 }), de.isNonNegativeNumber = de.calculate = void 0;
|
|
7809
7815
|
var w = 94.768;
|
|
7810
7816
|
function r(c, l, g) {
|
|
7811
7817
|
if (typeof c != "number" || typeof l != "number" || typeof g != "number" || !t(c) || !t(l) || !t(g))
|
|
@@ -7830,14 +7836,14 @@ function ri() {
|
|
|
7830
7836
|
var E = 1 + 0.035 * _ + 7e-6 * _ * (_ - 60) * (100 - _);
|
|
7831
7837
|
return E;
|
|
7832
7838
|
}
|
|
7833
|
-
|
|
7839
|
+
de.calculate = r;
|
|
7834
7840
|
function t(c) {
|
|
7835
7841
|
return typeof c == "number" && !isNaN(c) && isFinite(c) && c >= 0;
|
|
7836
7842
|
}
|
|
7837
|
-
return
|
|
7843
|
+
return de.isNonNegativeNumber = t, de.default = {
|
|
7838
7844
|
calculate: r,
|
|
7839
7845
|
isNonNegativeNumber: t
|
|
7840
|
-
},
|
|
7846
|
+
}, de;
|
|
7841
7847
|
}
|
|
7842
7848
|
var jn;
|
|
7843
7849
|
function ii() {
|
|
@@ -7874,7 +7880,7 @@ function ii() {
|
|
|
7874
7880
|
return h;
|
|
7875
7881
|
};
|
|
7876
7882
|
Object.defineProperty(re, "__esModule", { value: !0 });
|
|
7877
|
-
var c = ee(), l = z(), g = ri(), y = Xn(), _ =
|
|
7883
|
+
var c = ee(), l = z(), g = ri(), y = Xn(), _ = he(), E = 5, C = 0, S = 3, m = 1e3, u = 5 * 1e3, b = {
|
|
7878
7884
|
audioInputLevel: { minStandardDeviation: 327.67, sampleCount: 10 },
|
|
7879
7885
|
audioOutputLevel: { minStandardDeviation: 327.67, sampleCount: 10 },
|
|
7880
7886
|
bytesReceived: { clearCount: 2, min: 1, raiseCount: 3, sampleCount: 3 },
|
|
@@ -8073,9 +8079,9 @@ function ii() {
|
|
|
8073
8079
|
}
|
|
8074
8080
|
var Un;
|
|
8075
8081
|
function Ot() {
|
|
8076
|
-
if (Un) return
|
|
8082
|
+
if (Un) return ue;
|
|
8077
8083
|
Un = 1;
|
|
8078
|
-
var w =
|
|
8084
|
+
var w = ue && ue.__extends || /* @__PURE__ */ function() {
|
|
8079
8085
|
var T = function(k, P) {
|
|
8080
8086
|
return T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(R, p) {
|
|
8081
8087
|
R.__proto__ = p;
|
|
@@ -8090,7 +8096,7 @@ function Ot() {
|
|
|
8090
8096
|
}
|
|
8091
8097
|
k.prototype = P === null ? Object.create(P) : (R.prototype = P.prototype, new R());
|
|
8092
8098
|
};
|
|
8093
|
-
}(), r =
|
|
8099
|
+
}(), r = ue && ue.__assign || function() {
|
|
8094
8100
|
return r = Object.assign || function(T) {
|
|
8095
8101
|
for (var k, P = 1, R = arguments.length; P < R; P++) {
|
|
8096
8102
|
k = arguments[P];
|
|
@@ -8099,8 +8105,8 @@ function Ot() {
|
|
|
8099
8105
|
return T;
|
|
8100
8106
|
}, r.apply(this, arguments);
|
|
8101
8107
|
};
|
|
8102
|
-
Object.defineProperty(
|
|
8103
|
-
var t = ee(), c = Kn(), l =
|
|
8108
|
+
Object.defineProperty(ue, "__esModule", { value: !0 });
|
|
8109
|
+
var t = ee(), c = Kn(), l = dt(), g = z(), y = X(), _ = er(), E = ni(), C = Dt(), S = ii(), m = he(), u = tr(), b = Le(), n = {
|
|
8104
8110
|
factor: 1.1,
|
|
8105
8111
|
jitter: 0.5,
|
|
8106
8112
|
max: 3e4,
|
|
@@ -8619,7 +8625,7 @@ function Ot() {
|
|
|
8619
8625
|
return P.toString(16);
|
|
8620
8626
|
});
|
|
8621
8627
|
}
|
|
8622
|
-
return
|
|
8628
|
+
return ue.default = v, ue;
|
|
8623
8629
|
}
|
|
8624
8630
|
var Nn;
|
|
8625
8631
|
function oi() {
|
|
@@ -8627,7 +8633,7 @@ function oi() {
|
|
|
8627
8633
|
Object.defineProperty(w, "__esModule", { value: !0 }), w.TwilioError = w.Logger = w.PreflightTest = w.Device = w.Call = void 0;
|
|
8628
8634
|
var r = Ot();
|
|
8629
8635
|
w.Call = r.default;
|
|
8630
|
-
var t =
|
|
8636
|
+
var t = dt();
|
|
8631
8637
|
w.Device = t.default;
|
|
8632
8638
|
var c = z();
|
|
8633
8639
|
w.TwilioError = c;
|
|
@@ -8639,9 +8645,9 @@ function oi() {
|
|
|
8639
8645
|
Object.defineProperty(w, "PreflightTest", { enumerable: !0, get: function() {
|
|
8640
8646
|
return g.PreflightTest;
|
|
8641
8647
|
} });
|
|
8642
|
-
}(
|
|
8648
|
+
}(mt)), mt;
|
|
8643
8649
|
}
|
|
8644
|
-
var
|
|
8650
|
+
var Tt = oi();
|
|
8645
8651
|
class nr extends EventTarget {
|
|
8646
8652
|
constructor() {
|
|
8647
8653
|
super(...arguments), this.device = null, this.activeCall = null, this.callStatus = "idle", this.isReady = !1, this.error = null;
|
|
@@ -8671,9 +8677,9 @@ class nr extends EventTarget {
|
|
|
8671
8677
|
"https://voice.dev.hanc.me/token"
|
|
8672
8678
|
);
|
|
8673
8679
|
if (!c.ok) throw new Error(await c.text());
|
|
8674
|
-
const { token: l } = await c.json(), g = new
|
|
8680
|
+
const { token: l } = await c.json(), g = new Tt.Device(l, {
|
|
8675
8681
|
logLevel: 1,
|
|
8676
|
-
codecPreferences: [
|
|
8682
|
+
codecPreferences: [Tt.Call.Codec.Opus, Tt.Call.Codec.PCMU],
|
|
8677
8683
|
enableImprovedSignalingErrorPrecision: !0,
|
|
8678
8684
|
edge: "dublin"
|
|
8679
8685
|
});
|
|
@@ -8712,7 +8718,7 @@ class nr extends EventTarget {
|
|
|
8712
8718
|
this.activeCall ? (this.updateStatus("disconnecting"), this.activeCall.disconnect(), this.activeCall = null, (r = this.device) == null || r.destroy(), this.device = null) : this.device && (this.device.disconnectAll(), this.updateStatus("disconnecting"), this.device.destroy(), this.device = null);
|
|
8713
8719
|
}
|
|
8714
8720
|
}
|
|
8715
|
-
const rr =
|
|
8721
|
+
const rr = xe`
|
|
8716
8722
|
<svg
|
|
8717
8723
|
xmlns="http://www.w3.org/2000/svg"
|
|
8718
8724
|
width="22"
|
|
@@ -8733,7 +8739,7 @@ const rr = Ie`
|
|
|
8733
8739
|
0 0 2.81.7A2 2 0 0 1 22 16.92z"
|
|
8734
8740
|
/>
|
|
8735
8741
|
</svg>
|
|
8736
|
-
`, ir =
|
|
8742
|
+
`, ir = xe`
|
|
8737
8743
|
<svg
|
|
8738
8744
|
xmlns="http://www.w3.org/2000/svg"
|
|
8739
8745
|
width="22"
|
|
@@ -8757,14 +8763,14 @@ const rr = Ie`
|
|
|
8757
8763
|
<line x1="22" x2="2" y1="2" y2="22" />
|
|
8758
8764
|
</svg>
|
|
8759
8765
|
`;
|
|
8760
|
-
var ai = Object.defineProperty, si = Object.getOwnPropertyDescriptor,
|
|
8766
|
+
var ai = Object.defineProperty, si = Object.getOwnPropertyDescriptor, ze = (w, r, t, c) => {
|
|
8761
8767
|
for (var l = c > 1 ? void 0 : c ? si(r, t) : r, g = w.length - 1, y; g >= 0; g--)
|
|
8762
8768
|
(y = w[g]) && (l = (c ? y(r, t, l) : y(l)) || l);
|
|
8763
8769
|
return c && l && ai(r, t, l), l;
|
|
8764
8770
|
};
|
|
8765
|
-
let
|
|
8771
|
+
let be = class extends De {
|
|
8766
8772
|
constructor() {
|
|
8767
|
-
super(...arguments), this.callManager = new nr(), this.isCalling = !1, this.handleStatusChange = (w) => {
|
|
8773
|
+
super(...arguments), this.callManager = new nr(), this.isCalling = !1, this.buttonStartText = "Start Call with ai", this.handleStatusChange = (w) => {
|
|
8768
8774
|
const r = w.detail;
|
|
8769
8775
|
(r === "disconnected" || r === "error") && (this.isCalling = !1);
|
|
8770
8776
|
}, this.toggleCall = async () => {
|
|
@@ -8791,7 +8797,7 @@ let xe = class extends Ae {
|
|
|
8791
8797
|
super.updated(w), w.has("agentId") && (this.callManager.hangUp(), this.isCalling = !1);
|
|
8792
8798
|
}
|
|
8793
8799
|
render() {
|
|
8794
|
-
return
|
|
8800
|
+
return xe`
|
|
8795
8801
|
<div class="wrapper" part="wrapper">
|
|
8796
8802
|
<div class="filter-light" part="filter-light"></div>
|
|
8797
8803
|
<div class="filter-gradient" part="filter-gradient"></div>
|
|
@@ -8815,11 +8821,11 @@ let xe = class extends Ae {
|
|
|
8815
8821
|
class="button"
|
|
8816
8822
|
data-calling=${String(this.isCalling)}
|
|
8817
8823
|
>
|
|
8818
|
-
${this.isCalling ?
|
|
8824
|
+
${this.isCalling ? xe`<div part="call-off-icon" class="call-off-icon">
|
|
8819
8825
|
${ir}
|
|
8820
|
-
</div>` :
|
|
8826
|
+
</div>` : xe`
|
|
8821
8827
|
<div part="icon-button" class="icon-button">${rr}</div>
|
|
8822
|
-
<span part="button-text"
|
|
8828
|
+
<span part="button-text">${this.buttonStartText}</span>
|
|
8823
8829
|
`}
|
|
8824
8830
|
</button>
|
|
8825
8831
|
</div>
|
|
@@ -8827,20 +8833,23 @@ let xe = class extends Ae {
|
|
|
8827
8833
|
`;
|
|
8828
8834
|
}
|
|
8829
8835
|
};
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
],
|
|
8834
|
-
|
|
8836
|
+
be.styles = [Jn, Ar];
|
|
8837
|
+
ze([
|
|
8838
|
+
Se({ type: String, attribute: "agent-id" })
|
|
8839
|
+
], be.prototype, "agentId", 2);
|
|
8840
|
+
ze([
|
|
8835
8841
|
Gn()
|
|
8836
|
-
],
|
|
8837
|
-
|
|
8842
|
+
], be.prototype, "isCalling", 2);
|
|
8843
|
+
ze([
|
|
8838
8844
|
zn("video")
|
|
8839
|
-
],
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
],
|
|
8843
|
-
|
|
8845
|
+
], be.prototype, "videoElement", 2);
|
|
8846
|
+
ze([
|
|
8847
|
+
Se({ type: String, attribute: "button-start-text" })
|
|
8848
|
+
], be.prototype, "buttonStartText", 2);
|
|
8849
|
+
be = ze([
|
|
8850
|
+
Vn("hanc-ai-inline-call")
|
|
8851
|
+
], be);
|
|
8852
|
+
const ci = kt`
|
|
8844
8853
|
.root {
|
|
8845
8854
|
position: fixed;
|
|
8846
8855
|
right: 24px;
|
|
@@ -8896,19 +8905,17 @@ const ci = At`
|
|
|
8896
8905
|
}
|
|
8897
8906
|
|
|
8898
8907
|
.filter-gradient {
|
|
8899
|
-
background: linear-gradient(to right, #
|
|
8908
|
+
background: linear-gradient(to right, #6e46a3, #3d89ff, #00f7fe);
|
|
8900
8909
|
background-size: 200% 200%;
|
|
8901
8910
|
animation: gradientAnimation 8s ease infinite;
|
|
8902
8911
|
mix-blend-mode: overlay;
|
|
8903
|
-
z-index: 11;
|
|
8904
8912
|
}
|
|
8905
8913
|
|
|
8906
8914
|
.filter-overlay {
|
|
8907
|
-
background: linear-gradient(to right, #
|
|
8915
|
+
background: linear-gradient(to right, #6e46a3, #3d89ff, #00f7fe);
|
|
8908
8916
|
background-size: 200% 200%;
|
|
8909
8917
|
animation: gradientAnimation 8s ease infinite;
|
|
8910
8918
|
transition: opacity 0.5s;
|
|
8911
|
-
z-index: 12;
|
|
8912
8919
|
}
|
|
8913
8920
|
|
|
8914
8921
|
.filter-overlay[data-calling='true'] {
|
|
@@ -8945,7 +8952,7 @@ const ci = At`
|
|
|
8945
8952
|
}
|
|
8946
8953
|
|
|
8947
8954
|
.button {
|
|
8948
|
-
background: #
|
|
8955
|
+
background: #5266eb;
|
|
8949
8956
|
border-radius: 9999px;
|
|
8950
8957
|
color: #fff;
|
|
8951
8958
|
display: flex;
|
|
@@ -8963,7 +8970,7 @@ const ci = At`
|
|
|
8963
8970
|
}
|
|
8964
8971
|
|
|
8965
8972
|
.button:hover {
|
|
8966
|
-
background: #
|
|
8973
|
+
background: #3d55e6;
|
|
8967
8974
|
}
|
|
8968
8975
|
|
|
8969
8976
|
.icon-button {
|
|
@@ -8977,14 +8984,14 @@ const ci = At`
|
|
|
8977
8984
|
height: 16px;
|
|
8978
8985
|
}
|
|
8979
8986
|
`;
|
|
8980
|
-
var ui = Object.defineProperty, li = Object.getOwnPropertyDescriptor,
|
|
8987
|
+
var ui = Object.defineProperty, li = Object.getOwnPropertyDescriptor, we = (w, r, t, c) => {
|
|
8981
8988
|
for (var l = c > 1 ? void 0 : c ? li(r, t) : r, g = w.length - 1, y; g >= 0; g--)
|
|
8982
8989
|
(y = w[g]) && (l = (c ? y(r, t, l) : y(l)) || l);
|
|
8983
8990
|
return c && l && ui(r, t, l), l;
|
|
8984
8991
|
};
|
|
8985
|
-
let
|
|
8992
|
+
let ce = class extends De {
|
|
8986
8993
|
constructor() {
|
|
8987
|
-
super(...arguments), this.callManager = new nr(), this.isCalling = !1, this.handleStatusChange = (w) => {
|
|
8994
|
+
super(...arguments), this.callManager = new nr(), this.isCalling = !1, this.labelText = "Need a help?", this.buttonStartText = "Start Call with ai", this.buttonEndText = "End call", this.handleStatusChange = (w) => {
|
|
8988
8995
|
const r = w.detail;
|
|
8989
8996
|
(r === "disconnected" || r === "error") && (this.isCalling = !1);
|
|
8990
8997
|
}, this.toggleCall = async () => {
|
|
@@ -9011,7 +9018,7 @@ let De = class extends Ae {
|
|
|
9011
9018
|
super.updated(w), w.has("agentId") && (this.callManager.hangUp(), this.isCalling = !1);
|
|
9012
9019
|
}
|
|
9013
9020
|
render() {
|
|
9014
|
-
return
|
|
9021
|
+
return xe`
|
|
9015
9022
|
<div class="root" part="root">
|
|
9016
9023
|
<div class="avatar-wrapper" part="avatar-wrapper">
|
|
9017
9024
|
<div class="filter-light" part="filter-light"></div>
|
|
@@ -9030,7 +9037,7 @@ let De = class extends Ae {
|
|
|
9030
9037
|
></video>
|
|
9031
9038
|
</div>
|
|
9032
9039
|
<div class="content" part="content">
|
|
9033
|
-
<div class="title" part="title"
|
|
9040
|
+
<div class="title" part="title">${this.labelText}</div>
|
|
9034
9041
|
<button
|
|
9035
9042
|
part="button"
|
|
9036
9043
|
@click=${this.toggleCall}
|
|
@@ -9041,7 +9048,7 @@ let De = class extends Ae {
|
|
|
9041
9048
|
${this.isCalling ? ir : rr}
|
|
9042
9049
|
</div>
|
|
9043
9050
|
<span part="button-text">
|
|
9044
|
-
${this.isCalling ?
|
|
9051
|
+
${this.isCalling ? this.buttonEndText : this.buttonStartText}
|
|
9045
9052
|
</span>
|
|
9046
9053
|
</button>
|
|
9047
9054
|
</div>
|
|
@@ -9049,20 +9056,29 @@ let De = class extends Ae {
|
|
|
9049
9056
|
`;
|
|
9050
9057
|
}
|
|
9051
9058
|
};
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
],
|
|
9056
|
-
|
|
9059
|
+
ce.styles = [Jn, ci];
|
|
9060
|
+
we([
|
|
9061
|
+
Se({ type: String, attribute: "agent-id" })
|
|
9062
|
+
], ce.prototype, "agentId", 2);
|
|
9063
|
+
we([
|
|
9057
9064
|
Gn()
|
|
9058
|
-
],
|
|
9059
|
-
|
|
9065
|
+
], ce.prototype, "isCalling", 2);
|
|
9066
|
+
we([
|
|
9060
9067
|
zn("video")
|
|
9061
|
-
],
|
|
9062
|
-
|
|
9068
|
+
], ce.prototype, "videoElement", 2);
|
|
9069
|
+
we([
|
|
9070
|
+
Se({ type: String, attribute: "label-text" })
|
|
9071
|
+
], ce.prototype, "labelText", 2);
|
|
9072
|
+
we([
|
|
9073
|
+
Se({ type: String, attribute: "button-start-text" })
|
|
9074
|
+
], ce.prototype, "buttonStartText", 2);
|
|
9075
|
+
we([
|
|
9076
|
+
Se({ type: String, attribute: "button-end-text" })
|
|
9077
|
+
], ce.prototype, "buttonEndText", 2);
|
|
9078
|
+
ce = we([
|
|
9063
9079
|
Vn("hanc-ai-floating-call")
|
|
9064
|
-
],
|
|
9080
|
+
], ce);
|
|
9065
9081
|
export {
|
|
9066
|
-
|
|
9067
|
-
|
|
9082
|
+
ce as FloatingCall,
|
|
9083
|
+
be as InlineCall
|
|
9068
9084
|
};
|