@telia-ace/widget-conversation-flamingo 1.1.34-rc.0 → 1.1.34-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/controllers/toast-controller.d.ts +10 -0
- package/{conversation-d74b7570.mjs → conversation-16392b4c.mjs} +948 -831
- package/conversation-3d26c066.js +768 -0
- package/conversation.d.ts +5 -0
- package/entry.d.ts +4 -1
- package/{index-0b4bc287.mjs → index-127a80a4.mjs} +2 -2
- package/index-fe488435.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +3 -1
- package/index.mjs +1303 -8
- package/models/conversation-entry.d.ts +4 -1
- package/models/conversation-provider.d.ts +5 -0
- package/models/conversation-session-state.d.ts +1 -0
- package/models/system.d.ts +8 -0
- package/package.json +2 -2
- package/types.d.ts +4 -0
- package/conversation-2b47ebf9.js +0 -706
- package/index-1f92dd69.js +0 -3
- package/index-351f4e11.mjs +0 -1245
- package/index-ae71f17a.js +0 -1
@@ -1,22 +1,22 @@
|
|
1
|
-
import {
|
1
|
+
import { ConversationMessageType as St } from "./index.mjs";
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* Copyright 2019 Google LLC
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
6
6
|
*/
|
7
|
-
const nt = globalThis, Dt = nt.ShadowRoot && (nt.ShadyCSS === void 0 || nt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
7
|
+
const nt = globalThis, Dt = nt.ShadowRoot && (nt.ShadyCSS === void 0 || nt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Bt = Symbol(), Vt = /* @__PURE__ */ new WeakMap();
|
8
8
|
let Pe = class {
|
9
|
-
constructor(t,
|
10
|
-
if (this._$cssResult$ = !0, i !==
|
9
|
+
constructor(t, e, i) {
|
10
|
+
if (this._$cssResult$ = !0, i !== Bt)
|
11
11
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
12
|
-
this.cssText = t, this.t =
|
12
|
+
this.cssText = t, this.t = e;
|
13
13
|
}
|
14
14
|
get styleSheet() {
|
15
15
|
let t = this.o;
|
16
|
-
const
|
16
|
+
const e = this.t;
|
17
17
|
if (Dt && t === void 0) {
|
18
|
-
const i =
|
19
|
-
i && (t = Vt.get(
|
18
|
+
const i = e !== void 0 && e.length === 1;
|
19
|
+
i && (t = Vt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Vt.set(e, t));
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
}
|
@@ -24,63 +24,63 @@ let Pe = class {
|
|
24
24
|
return this.cssText;
|
25
25
|
}
|
26
26
|
};
|
27
|
-
const cs = (
|
28
|
-
const
|
29
|
-
if (
|
30
|
-
return
|
31
|
-
if (typeof
|
32
|
-
return
|
33
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
34
|
-
})(n) +
|
35
|
-
return new Pe(
|
36
|
-
}, ds = (
|
27
|
+
const cs = (s) => new Pe(typeof s == "string" ? s : s + "", void 0, Bt), b = (s, ...t) => {
|
28
|
+
const e = s.length === 1 ? s[0] : t.reduce((i, n, o) => i + ((r) => {
|
29
|
+
if (r._$cssResult$ === !0)
|
30
|
+
return r.cssText;
|
31
|
+
if (typeof r == "number")
|
32
|
+
return r;
|
33
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
34
|
+
})(n) + s[o + 1], s[0]);
|
35
|
+
return new Pe(e, s, Bt);
|
36
|
+
}, ds = (s, t) => {
|
37
37
|
if (Dt)
|
38
|
-
|
38
|
+
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
39
39
|
else
|
40
|
-
for (const
|
40
|
+
for (const e of t) {
|
41
41
|
const i = document.createElement("style"), n = nt.litNonce;
|
42
|
-
n !== void 0 && i.setAttribute("nonce", n), i.textContent =
|
42
|
+
n !== void 0 && i.setAttribute("nonce", n), i.textContent = e.cssText, s.appendChild(i);
|
43
43
|
}
|
44
|
-
}, te = Dt ? (
|
45
|
-
let
|
44
|
+
}, te = Dt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
45
|
+
let e = "";
|
46
46
|
for (const i of t.cssRules)
|
47
|
-
|
48
|
-
return cs(
|
49
|
-
})(
|
47
|
+
e += i.cssText;
|
48
|
+
return cs(e);
|
49
|
+
})(s) : s;
|
50
50
|
/**
|
51
51
|
* @license
|
52
52
|
* Copyright 2017 Google LLC
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
54
54
|
*/
|
55
|
-
const { is: hs, defineProperty: ps, getOwnPropertyDescriptor: us, getOwnPropertyNames: fs, getOwnPropertySymbols: gs, getPrototypeOf: $s } = Object, S = globalThis, ee = S.trustedTypes, ms = ee ? ee.emptyScript : "",
|
55
|
+
const { is: hs, defineProperty: ps, getOwnPropertyDescriptor: us, getOwnPropertyNames: fs, getOwnPropertySymbols: gs, getPrototypeOf: $s } = Object, S = globalThis, ee = S.trustedTypes, ms = ee ? ee.emptyScript : "", Et = S.reactiveElementPolyfillSupport, W = (s, t) => s, ot = { toAttribute(s, t) {
|
56
56
|
switch (t) {
|
57
57
|
case Boolean:
|
58
|
-
|
58
|
+
s = s ? ms : null;
|
59
59
|
break;
|
60
60
|
case Object:
|
61
61
|
case Array:
|
62
|
-
|
62
|
+
s = s == null ? s : JSON.stringify(s);
|
63
63
|
}
|
64
|
-
return
|
65
|
-
}, fromAttribute(
|
66
|
-
let
|
64
|
+
return s;
|
65
|
+
}, fromAttribute(s, t) {
|
66
|
+
let e = s;
|
67
67
|
switch (t) {
|
68
68
|
case Boolean:
|
69
|
-
|
69
|
+
e = s !== null;
|
70
70
|
break;
|
71
71
|
case Number:
|
72
|
-
|
72
|
+
e = s === null ? null : Number(s);
|
73
73
|
break;
|
74
74
|
case Object:
|
75
75
|
case Array:
|
76
76
|
try {
|
77
|
-
|
77
|
+
e = JSON.parse(s);
|
78
78
|
} catch {
|
79
|
-
|
79
|
+
e = null;
|
80
80
|
}
|
81
81
|
}
|
82
|
-
return
|
83
|
-
} },
|
82
|
+
return e;
|
83
|
+
} }, zt = (s, t) => !hs(s, t), se = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: zt };
|
84
84
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), S.litPropertyMetadata ?? (S.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
85
85
|
let H = class extends HTMLElement {
|
86
86
|
static addInitializer(t) {
|
@@ -89,23 +89,23 @@ let H = class extends HTMLElement {
|
|
89
89
|
static get observedAttributes() {
|
90
90
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
91
91
|
}
|
92
|
-
static createProperty(t,
|
93
|
-
if (
|
94
|
-
const i = Symbol(), n = this.getPropertyDescriptor(t, i,
|
92
|
+
static createProperty(t, e = se) {
|
93
|
+
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
94
|
+
const i = Symbol(), n = this.getPropertyDescriptor(t, i, e);
|
95
95
|
n !== void 0 && ps(this.prototype, t, n);
|
96
96
|
}
|
97
97
|
}
|
98
|
-
static getPropertyDescriptor(t,
|
99
|
-
const { get: n, set:
|
100
|
-
return this[
|
101
|
-
}, set(
|
102
|
-
this[
|
98
|
+
static getPropertyDescriptor(t, e, i) {
|
99
|
+
const { get: n, set: o } = us(this.prototype, t) ?? { get() {
|
100
|
+
return this[e];
|
101
|
+
}, set(r) {
|
102
|
+
this[e] = r;
|
103
103
|
} };
|
104
104
|
return { get() {
|
105
105
|
return n == null ? void 0 : n.call(this);
|
106
|
-
}, set(
|
106
|
+
}, set(r) {
|
107
107
|
const a = n == null ? void 0 : n.call(this);
|
108
|
-
|
108
|
+
o.call(this, r), this.requestUpdate(t, a, i);
|
109
109
|
}, configurable: !0, enumerable: !0 };
|
110
110
|
}
|
111
111
|
static getPropertyOptions(t) {
|
@@ -121,36 +121,36 @@ let H = class extends HTMLElement {
|
|
121
121
|
if (this.hasOwnProperty(W("finalized")))
|
122
122
|
return;
|
123
123
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(W("properties"))) {
|
124
|
-
const
|
124
|
+
const e = this.properties, i = [...fs(e), ...gs(e)];
|
125
125
|
for (const n of i)
|
126
|
-
this.createProperty(n,
|
126
|
+
this.createProperty(n, e[n]);
|
127
127
|
}
|
128
128
|
const t = this[Symbol.metadata];
|
129
129
|
if (t !== null) {
|
130
|
-
const
|
131
|
-
if (
|
132
|
-
for (const [i, n] of
|
130
|
+
const e = litPropertyMetadata.get(t);
|
131
|
+
if (e !== void 0)
|
132
|
+
for (const [i, n] of e)
|
133
133
|
this.elementProperties.set(i, n);
|
134
134
|
}
|
135
135
|
this._$Eh = /* @__PURE__ */ new Map();
|
136
|
-
for (const [
|
137
|
-
const n = this._$Eu(
|
138
|
-
n !== void 0 && this._$Eh.set(n,
|
136
|
+
for (const [e, i] of this.elementProperties) {
|
137
|
+
const n = this._$Eu(e, i);
|
138
|
+
n !== void 0 && this._$Eh.set(n, e);
|
139
139
|
}
|
140
140
|
this.elementStyles = this.finalizeStyles(this.styles);
|
141
141
|
}
|
142
142
|
static finalizeStyles(t) {
|
143
|
-
const
|
143
|
+
const e = [];
|
144
144
|
if (Array.isArray(t)) {
|
145
145
|
const i = new Set(t.flat(1 / 0).reverse());
|
146
146
|
for (const n of i)
|
147
|
-
|
147
|
+
e.unshift(te(n));
|
148
148
|
} else
|
149
|
-
t !== void 0 &&
|
150
|
-
return
|
149
|
+
t !== void 0 && e.push(te(t));
|
150
|
+
return e;
|
151
151
|
}
|
152
|
-
static _$Eu(t,
|
153
|
-
const i =
|
152
|
+
static _$Eu(t, e) {
|
153
|
+
const i = e.attribute;
|
154
154
|
return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
|
155
155
|
}
|
156
156
|
constructor() {
|
@@ -158,19 +158,19 @@ let H = class extends HTMLElement {
|
|
158
158
|
}
|
159
159
|
_$Ev() {
|
160
160
|
var t;
|
161
|
-
this._$Eg = new Promise((
|
161
|
+
this._$Eg = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
162
162
|
}
|
163
163
|
addController(t) {
|
164
|
-
var
|
165
|
-
(this._$ES ?? (this._$ES = [])).push(t), this.renderRoot !== void 0 && this.isConnected && ((
|
164
|
+
var e;
|
165
|
+
(this._$ES ?? (this._$ES = [])).push(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
166
166
|
}
|
167
167
|
removeController(t) {
|
168
|
-
var
|
169
|
-
(
|
168
|
+
var e;
|
169
|
+
(e = this._$ES) == null || e.splice(this._$ES.indexOf(t) >>> 0, 1);
|
170
170
|
}
|
171
171
|
_$E_() {
|
172
|
-
const t = /* @__PURE__ */ new Map(),
|
173
|
-
for (const i of
|
172
|
+
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
173
|
+
for (const i of e.keys())
|
174
174
|
this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
175
175
|
t.size > 0 && (this._$Ep = t);
|
176
176
|
}
|
@@ -180,56 +180,56 @@ let H = class extends HTMLElement {
|
|
180
180
|
}
|
181
181
|
connectedCallback() {
|
182
182
|
var t;
|
183
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) == null || t.forEach((
|
183
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) == null || t.forEach((e) => {
|
184
184
|
var i;
|
185
|
-
return (i =
|
185
|
+
return (i = e.hostConnected) == null ? void 0 : i.call(e);
|
186
186
|
});
|
187
187
|
}
|
188
188
|
enableUpdating(t) {
|
189
189
|
}
|
190
190
|
disconnectedCallback() {
|
191
191
|
var t;
|
192
|
-
(t = this._$ES) == null || t.forEach((
|
192
|
+
(t = this._$ES) == null || t.forEach((e) => {
|
193
193
|
var i;
|
194
|
-
return (i =
|
194
|
+
return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
|
195
195
|
});
|
196
196
|
}
|
197
|
-
attributeChangedCallback(t,
|
197
|
+
attributeChangedCallback(t, e, i) {
|
198
198
|
this._$AK(t, i);
|
199
199
|
}
|
200
|
-
_$EO(t,
|
201
|
-
var
|
200
|
+
_$EO(t, e) {
|
201
|
+
var o;
|
202
202
|
const i = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, i);
|
203
203
|
if (n !== void 0 && i.reflect === !0) {
|
204
|
-
const
|
205
|
-
this._$Em = t,
|
204
|
+
const r = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : ot).toAttribute(e, i.type);
|
205
|
+
this._$Em = t, r == null ? this.removeAttribute(n) : this.setAttribute(n, r), this._$Em = null;
|
206
206
|
}
|
207
207
|
}
|
208
|
-
_$AK(t,
|
209
|
-
var
|
208
|
+
_$AK(t, e) {
|
209
|
+
var o;
|
210
210
|
const i = this.constructor, n = i._$Eh.get(t);
|
211
211
|
if (n !== void 0 && this._$Em !== n) {
|
212
|
-
const
|
213
|
-
this._$Em = n, this[n] = a.fromAttribute(
|
212
|
+
const r = i.getPropertyOptions(n), a = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((o = r.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? r.converter : ot;
|
213
|
+
this._$Em = n, this[n] = a.fromAttribute(e, r.type), this._$Em = null;
|
214
214
|
}
|
215
215
|
}
|
216
|
-
requestUpdate(t,
|
216
|
+
requestUpdate(t, e, i, n = !1, o) {
|
217
217
|
if (t !== void 0) {
|
218
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
218
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? zt)(n ? o : this[t], e))
|
219
219
|
return;
|
220
|
-
this.C(t,
|
220
|
+
this.C(t, e, i);
|
221
221
|
}
|
222
222
|
this.isUpdatePending === !1 && (this._$Eg = this._$EP());
|
223
223
|
}
|
224
|
-
C(t,
|
225
|
-
this._$AL.has(t) || this._$AL.set(t,
|
224
|
+
C(t, e, i) {
|
225
|
+
this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
226
226
|
}
|
227
227
|
async _$EP() {
|
228
228
|
this.isUpdatePending = !0;
|
229
229
|
try {
|
230
230
|
await this._$Eg;
|
231
|
-
} catch (
|
232
|
-
Promise.reject(
|
231
|
+
} catch (e) {
|
232
|
+
Promise.reject(e);
|
233
233
|
}
|
234
234
|
const t = this.scheduleUpdate();
|
235
235
|
return t != null && await t, !this.isUpdatePending;
|
@@ -243,32 +243,32 @@ let H = class extends HTMLElement {
|
|
243
243
|
return;
|
244
244
|
if (!this.hasUpdated) {
|
245
245
|
if (this._$Ep) {
|
246
|
-
for (const [
|
247
|
-
this[
|
246
|
+
for (const [o, r] of this._$Ep)
|
247
|
+
this[o] = r;
|
248
248
|
this._$Ep = void 0;
|
249
249
|
}
|
250
250
|
const n = this.constructor.elementProperties;
|
251
251
|
if (n.size > 0)
|
252
|
-
for (const [
|
253
|
-
|
252
|
+
for (const [o, r] of n)
|
253
|
+
r.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.C(o, this[o], r);
|
254
254
|
}
|
255
255
|
let t = !1;
|
256
|
-
const
|
256
|
+
const e = this._$AL;
|
257
257
|
try {
|
258
|
-
t = this.shouldUpdate(
|
259
|
-
var
|
260
|
-
return (
|
261
|
-
}), this.update(
|
258
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$ES) == null || i.forEach((n) => {
|
259
|
+
var o;
|
260
|
+
return (o = n.hostUpdate) == null ? void 0 : o.call(n);
|
261
|
+
}), this.update(e)) : this._$ET();
|
262
262
|
} catch (n) {
|
263
263
|
throw t = !1, this._$ET(), n;
|
264
264
|
}
|
265
|
-
t && this._$AE(
|
265
|
+
t && this._$AE(e);
|
266
266
|
}
|
267
267
|
willUpdate(t) {
|
268
268
|
}
|
269
269
|
_$AE(t) {
|
270
|
-
var
|
271
|
-
(
|
270
|
+
var e;
|
271
|
+
(e = this._$ES) == null || e.forEach((i) => {
|
272
272
|
var n;
|
273
273
|
return (n = i.hostUpdated) == null ? void 0 : n.call(i);
|
274
274
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
@@ -286,47 +286,47 @@ let H = class extends HTMLElement {
|
|
286
286
|
return !0;
|
287
287
|
}
|
288
288
|
update(t) {
|
289
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach((
|
289
|
+
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EO(e, this[e]))), this._$ET();
|
290
290
|
}
|
291
291
|
updated(t) {
|
292
292
|
}
|
293
293
|
firstUpdated(t) {
|
294
294
|
}
|
295
295
|
};
|
296
|
-
H.elementStyles = [], H.shadowRootOptions = { mode: "open" }, H[W("elementProperties")] = /* @__PURE__ */ new Map(), H[W("finalized")] = /* @__PURE__ */ new Map(),
|
296
|
+
H.elementStyles = [], H.shadowRootOptions = { mode: "open" }, H[W("elementProperties")] = /* @__PURE__ */ new Map(), H[W("finalized")] = /* @__PURE__ */ new Map(), Et == null || Et({ ReactiveElement: H }), (S.reactiveElementVersions ?? (S.reactiveElementVersions = [])).push("2.0.1");
|
297
297
|
/**
|
298
298
|
* @license
|
299
299
|
* Copyright 2017 Google LLC
|
300
300
|
* SPDX-License-Identifier: BSD-3-Clause
|
301
301
|
*/
|
302
|
-
const G = globalThis,
|
303
|
-
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ne = /-->/g,
|
304
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
305
|
-
function Ue(
|
306
|
-
if (!Array.isArray(
|
302
|
+
const G = globalThis, rt = G.trustedTypes, ie = rt ? rt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Le = "$lit$", A = `lit$${(Math.random() + "").slice(9)}$`, Re = "?" + A, vs = `<${Re}>`, P = document, Z = () => P.createComment(""), X = (s) => s === null || typeof s != "object" && typeof s != "function", Me = Array.isArray, ys = (s) => Me(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", Tt = `[
|
303
|
+
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ne = /-->/g, oe = />/g, T = RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
|
304
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), re = /'/g, ae = /"/g, He = /^(?:script|style|textarea|title)$/i, bs = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), f = bs(1), E = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), le = /* @__PURE__ */ new WeakMap(), O = P.createTreeWalker(P, 129);
|
305
|
+
function Ue(s, t) {
|
306
|
+
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
307
307
|
throw Error("invalid template strings array");
|
308
308
|
return ie !== void 0 ? ie.createHTML(t) : t;
|
309
309
|
}
|
310
|
-
const _s = (
|
311
|
-
const
|
312
|
-
let n,
|
313
|
-
for (let a = 0; a <
|
314
|
-
const l =
|
310
|
+
const _s = (s, t) => {
|
311
|
+
const e = s.length - 1, i = [];
|
312
|
+
let n, o = t === 2 ? "<svg>" : "", r = F;
|
313
|
+
for (let a = 0; a < e; a++) {
|
314
|
+
const l = s[a];
|
315
315
|
let c, d, h = -1, p = 0;
|
316
|
-
for (; p < l.length && (
|
317
|
-
p =
|
318
|
-
const g =
|
319
|
-
|
316
|
+
for (; p < l.length && (r.lastIndex = p, d = r.exec(l), d !== null); )
|
317
|
+
p = r.lastIndex, r === F ? d[1] === "!--" ? r = ne : d[1] !== void 0 ? r = oe : d[2] !== void 0 ? (He.test(d[2]) && (n = RegExp("</" + d[2], "g")), r = T) : d[3] !== void 0 && (r = T) : r === T ? d[0] === ">" ? (r = n ?? F, h = -1) : d[1] === void 0 ? h = -2 : (h = r.lastIndex - d[2].length, c = d[1], r = d[3] === void 0 ? T : d[3] === '"' ? ae : re) : r === ae || r === re ? r = T : r === ne || r === oe ? r = F : (r = T, n = void 0);
|
318
|
+
const g = r === T && s[a + 1].startsWith("/>") ? " " : "";
|
319
|
+
o += r === F ? l + vs : h >= 0 ? (i.push(c), l.slice(0, h) + Le + l.slice(h) + A + g) : l + A + (h === -2 ? a : g);
|
320
320
|
}
|
321
|
-
return [Ue(
|
321
|
+
return [Ue(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
322
322
|
};
|
323
323
|
class Y {
|
324
|
-
constructor({ strings: t, _$litType$:
|
324
|
+
constructor({ strings: t, _$litType$: e }, i) {
|
325
325
|
let n;
|
326
326
|
this.parts = [];
|
327
|
-
let
|
328
|
-
const a = t.length - 1, l = this.parts, [c, d] = _s(t,
|
329
|
-
if (this.el = Y.createElement(c, i), O.currentNode = this.el.content,
|
327
|
+
let o = 0, r = 0;
|
328
|
+
const a = t.length - 1, l = this.parts, [c, d] = _s(t, e);
|
329
|
+
if (this.el = Y.createElement(c, i), O.currentNode = this.el.content, e === 2) {
|
330
330
|
const h = this.el.content.firstChild;
|
331
331
|
h.replaceWith(...h.childNodes);
|
332
332
|
}
|
@@ -335,46 +335,46 @@ class Y {
|
|
335
335
|
if (n.hasAttributes())
|
336
336
|
for (const h of n.getAttributeNames())
|
337
337
|
if (h.endsWith(Le)) {
|
338
|
-
const p = d[
|
339
|
-
l.push({ type: 1, index:
|
338
|
+
const p = d[r++], g = n.getAttribute(h).split(A), x = /([.?@])?(.*)/.exec(p);
|
339
|
+
l.push({ type: 1, index: o, name: x[2], strings: g, ctor: x[1] === "." ? ws : x[1] === "?" ? Cs : x[1] === "@" ? As : mt }), n.removeAttribute(h);
|
340
340
|
} else
|
341
|
-
h.startsWith(A) && (l.push({ type: 6, index:
|
342
|
-
if (
|
341
|
+
h.startsWith(A) && (l.push({ type: 6, index: o }), n.removeAttribute(h));
|
342
|
+
if (He.test(n.tagName)) {
|
343
343
|
const h = n.textContent.split(A), p = h.length - 1;
|
344
344
|
if (p > 0) {
|
345
|
-
n.textContent =
|
345
|
+
n.textContent = rt ? rt.emptyScript : "";
|
346
346
|
for (let g = 0; g < p; g++)
|
347
|
-
n.append(h[g], Z()), O.nextNode(), l.push({ type: 2, index: ++
|
347
|
+
n.append(h[g], Z()), O.nextNode(), l.push({ type: 2, index: ++o });
|
348
348
|
n.append(h[p], Z());
|
349
349
|
}
|
350
350
|
}
|
351
351
|
} else if (n.nodeType === 8)
|
352
352
|
if (n.data === Re)
|
353
|
-
l.push({ type: 2, index:
|
353
|
+
l.push({ type: 2, index: o });
|
354
354
|
else {
|
355
355
|
let h = -1;
|
356
356
|
for (; (h = n.data.indexOf(A, h + 1)) !== -1; )
|
357
|
-
l.push({ type: 7, index:
|
357
|
+
l.push({ type: 7, index: o }), h += A.length - 1;
|
358
358
|
}
|
359
|
-
|
359
|
+
o++;
|
360
360
|
}
|
361
361
|
}
|
362
|
-
static createElement(t,
|
362
|
+
static createElement(t, e) {
|
363
363
|
const i = P.createElement("template");
|
364
364
|
return i.innerHTML = t, i;
|
365
365
|
}
|
366
366
|
}
|
367
|
-
function
|
368
|
-
var
|
367
|
+
function B(s, t, e = s, i) {
|
368
|
+
var r, a;
|
369
369
|
if (t === E)
|
370
370
|
return t;
|
371
|
-
let n = i !== void 0 ? (
|
372
|
-
const
|
373
|
-
return (n == null ? void 0 : n.constructor) !==
|
371
|
+
let n = i !== void 0 ? (r = e._$Co) == null ? void 0 : r[i] : e._$Cl;
|
372
|
+
const o = X(t) ? void 0 : t._$litDirective$;
|
373
|
+
return (n == null ? void 0 : n.constructor) !== o && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), o === void 0 ? n = void 0 : (n = new o(s), n._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = n : e._$Cl = n), n !== void 0 && (t = B(s, n._$AS(s, t.values), n, i)), t;
|
374
374
|
}
|
375
375
|
class xs {
|
376
|
-
constructor(t,
|
377
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM =
|
376
|
+
constructor(t, e) {
|
377
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
378
378
|
}
|
379
379
|
get parentNode() {
|
380
380
|
return this._$AM.parentNode;
|
@@ -383,22 +383,22 @@ class xs {
|
|
383
383
|
return this._$AM._$AU;
|
384
384
|
}
|
385
385
|
u(t) {
|
386
|
-
const { el: { content:
|
386
|
+
const { el: { content: e }, parts: i } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? P).importNode(e, !0);
|
387
387
|
O.currentNode = n;
|
388
|
-
let
|
388
|
+
let o = O.nextNode(), r = 0, a = 0, l = i[0];
|
389
389
|
for (; l !== void 0; ) {
|
390
|
-
if (
|
390
|
+
if (r === l.index) {
|
391
391
|
let c;
|
392
|
-
l.type === 2 ? c = new Q(
|
392
|
+
l.type === 2 ? c = new Q(o, o.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (c = new Ss(o, this, t)), this._$AV.push(c), l = i[++a];
|
393
393
|
}
|
394
|
-
|
394
|
+
r !== (l == null ? void 0 : l.index) && (o = O.nextNode(), r++);
|
395
395
|
}
|
396
396
|
return O.currentNode = P, n;
|
397
397
|
}
|
398
398
|
p(t) {
|
399
|
-
let
|
399
|
+
let e = 0;
|
400
400
|
for (const i of this._$AV)
|
401
|
-
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i,
|
401
|
+
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
402
402
|
}
|
403
403
|
}
|
404
404
|
class Q {
|
@@ -406,13 +406,13 @@ class Q {
|
|
406
406
|
var t;
|
407
407
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
408
408
|
}
|
409
|
-
constructor(t,
|
410
|
-
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB =
|
409
|
+
constructor(t, e, i, n) {
|
410
|
+
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
|
411
411
|
}
|
412
412
|
get parentNode() {
|
413
413
|
let t = this._$AA.parentNode;
|
414
|
-
const
|
415
|
-
return
|
414
|
+
const e = this._$AM;
|
415
|
+
return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
|
416
416
|
}
|
417
417
|
get startNode() {
|
418
418
|
return this._$AA;
|
@@ -420,8 +420,8 @@ class Q {
|
|
420
420
|
get endNode() {
|
421
421
|
return this._$AB;
|
422
422
|
}
|
423
|
-
_$AI(t,
|
424
|
-
t =
|
423
|
+
_$AI(t, e = this) {
|
424
|
+
t = B(this, t, e), X(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : ys(t) ? this.T(t) : this._(t);
|
425
425
|
}
|
426
426
|
k(t) {
|
427
427
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -433,37 +433,37 @@ class Q {
|
|
433
433
|
this._$AH !== u && X(this._$AH) ? this._$AA.nextSibling.data = t : this.$(P.createTextNode(t)), this._$AH = t;
|
434
434
|
}
|
435
435
|
g(t) {
|
436
|
-
var
|
437
|
-
const { values:
|
438
|
-
if (((
|
439
|
-
this._$AH.p(
|
436
|
+
var o;
|
437
|
+
const { values: e, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Y.createElement(Ue(i.h, i.h[0]), this.options)), i);
|
438
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === n)
|
439
|
+
this._$AH.p(e);
|
440
440
|
else {
|
441
|
-
const
|
442
|
-
|
441
|
+
const r = new xs(n, this), a = r.u(this.options);
|
442
|
+
r.p(e), this.$(a), this._$AH = r;
|
443
443
|
}
|
444
444
|
}
|
445
445
|
_$AC(t) {
|
446
|
-
let
|
447
|
-
return
|
446
|
+
let e = le.get(t.strings);
|
447
|
+
return e === void 0 && le.set(t.strings, e = new Y(t)), e;
|
448
448
|
}
|
449
449
|
T(t) {
|
450
|
-
|
451
|
-
const
|
450
|
+
Me(this._$AH) || (this._$AH = [], this._$AR());
|
451
|
+
const e = this._$AH;
|
452
452
|
let i, n = 0;
|
453
|
-
for (const
|
454
|
-
n ===
|
455
|
-
n <
|
453
|
+
for (const o of t)
|
454
|
+
n === e.length ? e.push(i = new Q(this.k(Z()), this.k(Z()), this, this.options)) : i = e[n], i._$AI(o), n++;
|
455
|
+
n < e.length && (this._$AR(i && i._$AB.nextSibling, n), e.length = n);
|
456
456
|
}
|
457
|
-
_$AR(t = this._$AA.nextSibling,
|
457
|
+
_$AR(t = this._$AA.nextSibling, e) {
|
458
458
|
var i;
|
459
|
-
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0,
|
459
|
+
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
460
460
|
const n = t.nextSibling;
|
461
461
|
t.remove(), t = n;
|
462
462
|
}
|
463
463
|
}
|
464
464
|
setConnected(t) {
|
465
|
-
var
|
466
|
-
this._$AM === void 0 && (this._$Cv = t, (
|
465
|
+
var e;
|
466
|
+
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
467
467
|
}
|
468
468
|
}
|
469
469
|
class mt {
|
@@ -473,21 +473,21 @@ class mt {
|
|
473
473
|
get _$AU() {
|
474
474
|
return this._$AM._$AU;
|
475
475
|
}
|
476
|
-
constructor(t,
|
477
|
-
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name =
|
476
|
+
constructor(t, e, i, n, o) {
|
477
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
|
478
478
|
}
|
479
|
-
_$AI(t,
|
480
|
-
const
|
481
|
-
let
|
482
|
-
if (
|
483
|
-
t =
|
479
|
+
_$AI(t, e = this, i, n) {
|
480
|
+
const o = this.strings;
|
481
|
+
let r = !1;
|
482
|
+
if (o === void 0)
|
483
|
+
t = B(this, t, e, 0), r = !X(t) || t !== this._$AH && t !== E, r && (this._$AH = t);
|
484
484
|
else {
|
485
485
|
const a = t;
|
486
486
|
let l, c;
|
487
|
-
for (t =
|
488
|
-
c =
|
487
|
+
for (t = o[0], l = 0; l < o.length - 1; l++)
|
488
|
+
c = B(this, a[i + l], e, l), c === E && (c = this._$AH[l]), r || (r = !X(c) || c !== this._$AH[l]), c === u ? t = u : t !== u && (t += (c ?? "") + o[l + 1]), this._$AH[l] = c;
|
489
489
|
}
|
490
|
-
|
490
|
+
r && !n && this.O(t);
|
491
491
|
}
|
492
492
|
O(t) {
|
493
493
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
@@ -510,41 +510,41 @@ let Cs = class extends mt {
|
|
510
510
|
}
|
511
511
|
};
|
512
512
|
class As extends mt {
|
513
|
-
constructor(t,
|
514
|
-
super(t,
|
513
|
+
constructor(t, e, i, n, o) {
|
514
|
+
super(t, e, i, n, o), this.type = 5;
|
515
515
|
}
|
516
|
-
_$AI(t,
|
517
|
-
if ((t =
|
516
|
+
_$AI(t, e = this) {
|
517
|
+
if ((t = B(this, t, e, 0) ?? u) === E)
|
518
518
|
return;
|
519
|
-
const i = this._$AH, n = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive,
|
520
|
-
n && this.element.removeEventListener(this.name, this, i),
|
519
|
+
const i = this._$AH, n = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== u && (i === u || n);
|
520
|
+
n && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
521
521
|
}
|
522
522
|
handleEvent(t) {
|
523
|
-
var
|
524
|
-
typeof this._$AH == "function" ? this._$AH.call(((
|
523
|
+
var e;
|
524
|
+
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
525
525
|
}
|
526
526
|
}
|
527
527
|
class Ss {
|
528
|
-
constructor(t,
|
529
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM =
|
528
|
+
constructor(t, e, i) {
|
529
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
530
530
|
}
|
531
531
|
get _$AU() {
|
532
532
|
return this._$AM._$AU;
|
533
533
|
}
|
534
534
|
_$AI(t) {
|
535
|
-
|
535
|
+
B(this, t);
|
536
536
|
}
|
537
537
|
}
|
538
538
|
const kt = G.litHtmlPolyfillSupport;
|
539
539
|
kt == null || kt(Y, Q), (G.litHtmlVersions ?? (G.litHtmlVersions = [])).push("3.0.2");
|
540
|
-
const Es = (
|
541
|
-
const i = (
|
540
|
+
const Es = (s, t, e) => {
|
541
|
+
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
542
542
|
let n = i._$litPart$;
|
543
543
|
if (n === void 0) {
|
544
|
-
const
|
545
|
-
i._$litPart$ = n = new Q(t.insertBefore(Z(),
|
544
|
+
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
545
|
+
i._$litPart$ = n = new Q(t.insertBefore(Z(), o), o, void 0, e ?? {});
|
546
546
|
}
|
547
|
-
return n._$AI(
|
547
|
+
return n._$AI(s), n;
|
548
548
|
};
|
549
549
|
/**
|
550
550
|
* @license
|
@@ -556,13 +556,13 @@ let m = class extends H {
|
|
556
556
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
557
557
|
}
|
558
558
|
createRenderRoot() {
|
559
|
-
var
|
559
|
+
var e;
|
560
560
|
const t = super.createRenderRoot();
|
561
|
-
return (
|
561
|
+
return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
|
562
562
|
}
|
563
563
|
update(t) {
|
564
|
-
const
|
565
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Es(
|
564
|
+
const e = this.render();
|
565
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Es(e, this.renderRoot, this.renderOptions);
|
566
566
|
}
|
567
567
|
connectedCallback() {
|
568
568
|
var t;
|
@@ -578,10 +578,10 @@ let m = class extends H {
|
|
578
578
|
};
|
579
579
|
var Oe;
|
580
580
|
m._$litElement$ = !0, m.finalized = !0, (Oe = globalThis.litElementHydrateSupport) == null || Oe.call(globalThis, { LitElement: m });
|
581
|
-
const
|
582
|
-
|
581
|
+
const Ot = globalThis.litElementPolyfillSupport;
|
582
|
+
Ot == null || Ot({ LitElement: m });
|
583
583
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
584
|
-
const ce = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' },
|
584
|
+
const ce = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, Ts = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, de = { name: "volume", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, U = {
|
585
585
|
allRenderFn: !1,
|
586
586
|
cmpDidLoad: !0,
|
587
587
|
cmpDidUnload: !1,
|
@@ -665,258 +665,258 @@ const ce = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.o
|
|
665
665
|
transformTagName: !1,
|
666
666
|
attachStyles: !0
|
667
667
|
};
|
668
|
-
let
|
669
|
-
const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} },
|
668
|
+
let N, Ne, vt, je = !1, at = !1, Ft = !1, y = !1, he = null, Mt = !1;
|
669
|
+
const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, Ie = yt.HTMLElement || class {
|
670
670
|
}, v = {
|
671
671
|
$flags$: 0,
|
672
672
|
$resourcesUrl$: "",
|
673
|
-
jmp: (
|
674
|
-
raf: (
|
675
|
-
ael: (
|
676
|
-
rel: (
|
677
|
-
ce: (
|
678
|
-
},
|
679
|
-
let
|
673
|
+
jmp: (s) => s(),
|
674
|
+
raf: (s) => requestAnimationFrame(s),
|
675
|
+
ael: (s, t, e, i) => s.addEventListener(t, e, i),
|
676
|
+
rel: (s, t, e, i) => s.removeEventListener(t, e, i),
|
677
|
+
ce: (s, t) => new CustomEvent(s, t)
|
678
|
+
}, ks = /* @__PURE__ */ (() => {
|
679
|
+
let s = !1;
|
680
680
|
try {
|
681
681
|
w.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
682
682
|
get() {
|
683
|
-
|
683
|
+
s = !0;
|
684
684
|
}
|
685
685
|
}));
|
686
686
|
} catch {
|
687
687
|
}
|
688
|
-
return
|
689
|
-
})(), Os = (
|
688
|
+
return s;
|
689
|
+
})(), Os = (s) => Promise.resolve(s), Ps = /* @__PURE__ */ (() => {
|
690
690
|
try {
|
691
691
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
692
692
|
} catch {
|
693
693
|
}
|
694
694
|
return !1;
|
695
|
-
})(),
|
696
|
-
|
697
|
-
const a = Rs(
|
698
|
-
v.ael(a,
|
695
|
+
})(), De = (s, t, e, i) => {
|
696
|
+
e && e.map(([n, o, r]) => {
|
697
|
+
const a = Rs(s, n), l = Ls(t, r), c = Ms(n);
|
698
|
+
v.ael(a, o, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => v.rel(a, o, l, c));
|
699
699
|
});
|
700
|
-
}, Ls = (
|
700
|
+
}, Ls = (s, t) => (e) => {
|
701
701
|
try {
|
702
|
-
|
702
|
+
U.lazyLoad || s.$hostElement$[t](e);
|
703
703
|
} catch (i) {
|
704
704
|
J(i);
|
705
705
|
}
|
706
|
-
}, Rs = (
|
707
|
-
passive: (
|
708
|
-
capture: (
|
709
|
-
} : (
|
710
|
-
}, ue = /* @__PURE__ */ new WeakMap(),
|
711
|
-
let i = dt.get(
|
712
|
-
Ps &&
|
713
|
-
}, Us = (
|
714
|
-
let n = Be(t,
|
715
|
-
if (
|
716
|
-
if (typeof
|
717
|
-
|
718
|
-
let
|
719
|
-
|
706
|
+
}, Rs = (s, t) => t & 4 ? w : t & 8 ? yt : t & 16 ? w.body : s, Ms = (s) => ks ? {
|
707
|
+
passive: (s & 1) !== 0,
|
708
|
+
capture: (s & 2) !== 0
|
709
|
+
} : (s & 2) !== 0, pe = "http://www.w3.org/1999/xlink", L = (s, t = "") => () => {
|
710
|
+
}, ue = /* @__PURE__ */ new WeakMap(), Hs = (s, t, e) => {
|
711
|
+
let i = dt.get(s);
|
712
|
+
Ps && e ? (i = i || new CSSStyleSheet(), i.replace(t)) : i = t, dt.set(s, i);
|
713
|
+
}, Us = (s, t, e, i) => {
|
714
|
+
let n = Be(t, e), o = dt.get(n);
|
715
|
+
if (s = s.nodeType === 11 ? s : w, o)
|
716
|
+
if (typeof o == "string") {
|
717
|
+
s = s.head || s;
|
718
|
+
let r = ue.get(s), a;
|
719
|
+
r || ue.set(s, r = /* @__PURE__ */ new Set()), r.has(n) || (a = w.createElement("style"), a.innerHTML = o, s.insertBefore(a, s.querySelector("link")), r && r.add(n));
|
720
720
|
} else
|
721
|
-
|
721
|
+
s.adoptedStyleSheets.includes(o) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, o]);
|
722
722
|
return n;
|
723
|
-
}, Ns = (
|
724
|
-
const t =
|
725
|
-
i & 10 && (
|
726
|
-
}, Be = (
|
727
|
-
let i = null, n = null,
|
723
|
+
}, Ns = (s) => {
|
724
|
+
const t = s.$cmpMeta$, e = s.$hostElement$, i = t.$flags$, n = L("attachStyles", t.$tagName$), o = Us(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, s.$modeName$);
|
725
|
+
i & 10 && (e["s-sc"] = o, e.classList.add(o + "-h"), i & 2 && e.classList.add(o + "-s")), n();
|
726
|
+
}, Be = (s, t) => "sc-" + (t && s.$flags$ & 32 ? s.$tagName$ + "-" + t : s.$tagName$), js = (s) => pi.map((t) => t(s)).find((t) => !!t), fe = {}, Is = "http://www.w3.org/2000/svg", Ds = "http://www.w3.org/1999/xhtml", Bs = (s) => s != null, Wt = (s) => (s = typeof s, s === "object" || s === "function"), I = (s, t, ...e) => {
|
727
|
+
let i = null, n = null, o = null, r = !1, a = !1, l = [];
|
728
728
|
const c = (h) => {
|
729
729
|
for (let p = 0; p < h.length; p++)
|
730
|
-
i = h[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((
|
730
|
+
i = h[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((r = typeof s != "function" && !Wt(i)) && (i = String(i)), r && a ? l[l.length - 1].$text$ += i : l.push(r ? lt(null, i) : i), a = r);
|
731
731
|
};
|
732
|
-
if (c(
|
733
|
-
t.key && (n = t.key), t.name && (
|
732
|
+
if (c(e), t) {
|
733
|
+
t.key && (n = t.key), t.name && (o = t.name);
|
734
734
|
{
|
735
735
|
const h = t.className || t.class;
|
736
736
|
h && (t.class = typeof h != "object" ? h : Object.keys(h).filter((p) => h[p]).join(" "));
|
737
737
|
}
|
738
738
|
}
|
739
|
-
if (typeof
|
740
|
-
return
|
741
|
-
const d = lt(
|
742
|
-
return d.$attrs$ = t, l.length > 0 && (d.$children$ = l), d.$key$ = n, d.$name$ =
|
743
|
-
}, lt = (
|
744
|
-
const
|
739
|
+
if (typeof s == "function")
|
740
|
+
return s(t === null ? {} : t, l, Fs);
|
741
|
+
const d = lt(s, null);
|
742
|
+
return d.$attrs$ = t, l.length > 0 && (d.$children$ = l), d.$key$ = n, d.$name$ = o, d;
|
743
|
+
}, lt = (s, t) => {
|
744
|
+
const e = {
|
745
745
|
$flags$: 0,
|
746
|
-
$tag$:
|
746
|
+
$tag$: s,
|
747
747
|
$text$: t,
|
748
748
|
$elm$: null,
|
749
749
|
$children$: null
|
750
750
|
};
|
751
|
-
return
|
752
|
-
},
|
753
|
-
forEach: (
|
754
|
-
map: (
|
755
|
-
}, ge = (
|
756
|
-
vattrs:
|
757
|
-
vchildren:
|
758
|
-
vkey:
|
759
|
-
vname:
|
760
|
-
vtag:
|
761
|
-
vtext:
|
762
|
-
}), Ws = (
|
763
|
-
if (typeof
|
764
|
-
const
|
765
|
-
return
|
766
|
-
}
|
767
|
-
const t = lt(
|
768
|
-
return t.$attrs$ =
|
769
|
-
}, $e = (
|
770
|
-
if (
|
771
|
-
let
|
751
|
+
return e.$attrs$ = null, e.$key$ = null, e.$name$ = null, e;
|
752
|
+
}, Gt = {}, zs = (s) => s && s.$tag$ === Gt, Fs = {
|
753
|
+
forEach: (s, t) => s.map(ge).forEach(t),
|
754
|
+
map: (s, t) => s.map(ge).map(t).map(Ws)
|
755
|
+
}, ge = (s) => ({
|
756
|
+
vattrs: s.$attrs$,
|
757
|
+
vchildren: s.$children$,
|
758
|
+
vkey: s.$key$,
|
759
|
+
vname: s.$name$,
|
760
|
+
vtag: s.$tag$,
|
761
|
+
vtext: s.$text$
|
762
|
+
}), Ws = (s) => {
|
763
|
+
if (typeof s.vtag == "function") {
|
764
|
+
const e = Object.assign({}, s.vattrs);
|
765
|
+
return s.vkey && (e.key = s.vkey), s.vname && (e.name = s.vname), I(s.vtag, e, ...s.vchildren || []);
|
766
|
+
}
|
767
|
+
const t = lt(s.vtag, s.vtext);
|
768
|
+
return t.$attrs$ = s.vattrs, t.$children$ = s.vchildren, t.$key$ = s.vkey, t.$name$ = s.vname, t;
|
769
|
+
}, $e = (s, t, e, i, n, o) => {
|
770
|
+
if (e !== i) {
|
771
|
+
let r = be(s, t), a = t.toLowerCase();
|
772
772
|
if (t === "class") {
|
773
|
-
const l =
|
773
|
+
const l = s.classList, c = me(e), d = me(i);
|
774
774
|
l.remove(...c.filter((h) => h && !d.includes(h))), l.add(...d.filter((h) => h && !c.includes(h)));
|
775
775
|
} else if (t === "style") {
|
776
|
-
for (const l in
|
777
|
-
(!i || i[l] == null) && (l.includes("-") ?
|
776
|
+
for (const l in e)
|
777
|
+
(!i || i[l] == null) && (l.includes("-") ? s.style.removeProperty(l) : s.style[l] = "");
|
778
778
|
for (const l in i)
|
779
|
-
(!
|
779
|
+
(!e || i[l] !== e[l]) && (l.includes("-") ? s.style.setProperty(l, i[l]) : s.style[l] = i[l]);
|
780
780
|
} else if (t !== "key")
|
781
781
|
if (t === "ref")
|
782
|
-
i && i(
|
783
|
-
else if (!
|
784
|
-
t[2] === "-" ? t = t.slice(3) : be(yt, a) ? t = a.slice(2) : t = a[2] + t.slice(3),
|
782
|
+
i && i(s);
|
783
|
+
else if (!s.__lookupSetter__(t) && t[0] === "o" && t[1] === "n")
|
784
|
+
t[2] === "-" ? t = t.slice(3) : be(yt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && v.rel(s, t, e, !1), i && v.ael(s, t, i, !1);
|
785
785
|
else {
|
786
|
-
const l =
|
787
|
-
if ((
|
786
|
+
const l = Wt(i);
|
787
|
+
if ((r || l && i !== null) && !n)
|
788
788
|
try {
|
789
|
-
if (
|
790
|
-
|
789
|
+
if (s.tagName.includes("-"))
|
790
|
+
s[t] = i;
|
791
791
|
else {
|
792
792
|
let d = i ?? "";
|
793
|
-
t === "list" ?
|
793
|
+
t === "list" ? r = !1 : (e == null || s[t] != d) && (s[t] = d);
|
794
794
|
}
|
795
795
|
} catch {
|
796
796
|
}
|
797
797
|
let c = !1;
|
798
|
-
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), i == null || i === !1 ? (i !== !1 ||
|
798
|
+
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), i == null || i === !1 ? (i !== !1 || s.getAttribute(t) === "") && (c ? s.removeAttributeNS(pe, t) : s.removeAttribute(t)) : (!r || o & 4 || n) && !l && (i = i === !0 ? "" : i, c ? s.setAttributeNS(pe, t, i) : s.setAttribute(t, i));
|
799
799
|
}
|
800
800
|
}
|
801
|
-
}, Gs = /\s/, me = (
|
802
|
-
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$,
|
803
|
-
for (i in r)
|
804
|
-
i in o || $e(n, i, r[i], void 0, s, t.$flags$);
|
801
|
+
}, Gs = /\s/, me = (s) => s ? s.split(Gs) : [], ze = (s, t, e, i) => {
|
802
|
+
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, o = s && s.$attrs$ || fe, r = t.$attrs$ || fe;
|
805
803
|
for (i in o)
|
806
|
-
$e(n, i,
|
807
|
-
|
808
|
-
|
809
|
-
|
804
|
+
i in r || $e(n, i, o[i], void 0, e, t.$flags$);
|
805
|
+
for (i in r)
|
806
|
+
$e(n, i, o[i], r[i], e, t.$flags$);
|
807
|
+
}, ct = (s, t, e, i) => {
|
808
|
+
let n = t.$children$[e], o = 0, r, a, l;
|
809
|
+
if (je || (Ft = !0, n.$tag$ === "slot" && (N && i.classList.add(N + "-s"), n.$flags$ |= n.$children$ ? (
|
810
810
|
// slot element has fallback content
|
811
811
|
2
|
812
812
|
) : (
|
813
813
|
// slot element does not have fallback content
|
814
814
|
1
|
815
815
|
))), n.$text$ !== null)
|
816
|
-
|
816
|
+
r = n.$elm$ = w.createTextNode(n.$text$);
|
817
817
|
else if (n.$flags$ & 1)
|
818
|
-
|
818
|
+
r = n.$elm$ = w.createTextNode("");
|
819
819
|
else {
|
820
|
-
if (y || (y = n.$tag$ === "svg"),
|
821
|
-
for (
|
822
|
-
a = ct(
|
823
|
-
n.$tag$ === "svg" ? y = !1 :
|
820
|
+
if (y || (y = n.$tag$ === "svg"), r = n.$elm$ = w.createElementNS(y ? Is : Ds, n.$flags$ & 2 ? "slot-fb" : n.$tag$), y && n.$tag$ === "foreignObject" && (y = !1), ze(null, n, y), Bs(N) && r["s-si"] !== N && r.classList.add(r["s-si"] = N), n.$children$)
|
821
|
+
for (o = 0; o < n.$children$.length; ++o)
|
822
|
+
a = ct(s, n, o, r), a && r.appendChild(a);
|
823
|
+
n.$tag$ === "svg" ? y = !1 : r.tagName === "foreignObject" && (y = !0);
|
824
824
|
}
|
825
|
-
return
|
826
|
-
}, K = (
|
825
|
+
return r["s-hn"] = vt, n.$flags$ & 3 && (r["s-sr"] = !0, r["s-cr"] = Ne, r["s-sn"] = n.$name$ || "", l = s && s.$children$ && s.$children$[e], l && l.$tag$ === n.$tag$ && s.$elm$ && K(s.$elm$, !1)), r;
|
826
|
+
}, K = (s, t) => {
|
827
827
|
v.$flags$ |= 1;
|
828
|
-
const
|
829
|
-
for (let i =
|
830
|
-
const n =
|
831
|
-
n["s-hn"] !== vt && n["s-ol"] && (Ge(n).insertBefore(n,
|
828
|
+
const e = s.childNodes;
|
829
|
+
for (let i = e.length - 1; i >= 0; i--) {
|
830
|
+
const n = e[i];
|
831
|
+
n["s-hn"] !== vt && n["s-ol"] && (Ge(n).insertBefore(n, qt(n)), n["s-ol"].remove(), n["s-ol"] = void 0, Ft = !0), t && K(n, t);
|
832
832
|
}
|
833
833
|
v.$flags$ &= -2;
|
834
|
-
}, Fe = (
|
835
|
-
let
|
836
|
-
for (
|
837
|
-
i[n] && (a = ct(null,
|
838
|
-
}, We = (
|
839
|
-
for (; t <=
|
840
|
-
(i =
|
841
|
-
}, qs = (
|
842
|
-
let n = 0,
|
843
|
-
for (; n <= l &&
|
834
|
+
}, Fe = (s, t, e, i, n, o) => {
|
835
|
+
let r = s["s-cr"] && s["s-cr"].parentNode || s, a;
|
836
|
+
for (r.shadowRoot && r.tagName === vt && (r = r.shadowRoot); n <= o; ++n)
|
837
|
+
i[n] && (a = ct(null, e, n, s), a && (i[n].$elm$ = a, r.insertBefore(a, qt(t))));
|
838
|
+
}, We = (s, t, e, i, n) => {
|
839
|
+
for (; t <= e; ++t)
|
840
|
+
(i = s[t]) && (n = i.$elm$, Xe(i), at = !0, n["s-ol"] ? n["s-ol"].remove() : K(n, !0), n.remove());
|
841
|
+
}, qs = (s, t, e, i) => {
|
842
|
+
let n = 0, o = 0, r = 0, a = 0, l = t.length - 1, c = t[0], d = t[l], h = i.length - 1, p = i[0], g = i[h], x, et;
|
843
|
+
for (; n <= l && o <= h; )
|
844
844
|
if (c == null)
|
845
845
|
c = t[++n];
|
846
846
|
else if (d == null)
|
847
847
|
d = t[--l];
|
848
848
|
else if (p == null)
|
849
|
-
p = i[++
|
849
|
+
p = i[++o];
|
850
850
|
else if (g == null)
|
851
851
|
g = i[--h];
|
852
852
|
else if (st(c, p))
|
853
|
-
|
853
|
+
j(c, p), c = t[++n], p = i[++o];
|
854
854
|
else if (st(d, g))
|
855
|
-
|
855
|
+
j(d, g), d = t[--l], g = i[--h];
|
856
856
|
else if (st(c, g))
|
857
|
-
(c.$tag$ === "slot" || g.$tag$ === "slot") && K(c.$elm$.parentNode, !1),
|
857
|
+
(c.$tag$ === "slot" || g.$tag$ === "slot") && K(c.$elm$.parentNode, !1), j(c, g), s.insertBefore(c.$elm$, d.$elm$.nextSibling), c = t[++n], g = i[--h];
|
858
858
|
else if (st(d, p))
|
859
|
-
(c.$tag$ === "slot" || g.$tag$ === "slot") && K(d.$elm$.parentNode, !1),
|
859
|
+
(c.$tag$ === "slot" || g.$tag$ === "slot") && K(d.$elm$.parentNode, !1), j(d, p), s.insertBefore(d.$elm$, c.$elm$), d = t[--l], p = i[++o];
|
860
860
|
else {
|
861
|
-
for (
|
861
|
+
for (r = -1, a = n; a <= l; ++a)
|
862
862
|
if (t[a] && t[a].$key$ !== null && t[a].$key$ === p.$key$) {
|
863
|
-
|
863
|
+
r = a;
|
864
864
|
break;
|
865
865
|
}
|
866
|
-
|
866
|
+
r >= 0 ? (et = t[r], et.$tag$ !== p.$tag$ ? x = ct(t && t[o], e, r, s) : (j(et, p), t[r] = void 0, x = et.$elm$), p = i[++o]) : (x = ct(t && t[o], e, o, s), p = i[++o]), x && Ge(c.$elm$).insertBefore(x, qt(c.$elm$));
|
867
867
|
}
|
868
|
-
n > l ? Fe(
|
869
|
-
}, st = (
|
870
|
-
const
|
868
|
+
n > l ? Fe(s, i[h + 1] == null ? null : i[h + 1].$elm$, e, i, o, h) : o > h && We(t, n, l);
|
869
|
+
}, st = (s, t) => s.$tag$ === t.$tag$ ? s.$tag$ === "slot" ? s.$name$ === t.$name$ : s.$key$ === t.$key$ : !1, qt = (s) => s && s["s-ol"] || s, Ge = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, j = (s, t) => {
|
870
|
+
const e = t.$elm$ = s.$elm$, i = s.$children$, n = t.$children$, o = t.$tag$, r = t.$text$;
|
871
871
|
let a;
|
872
|
-
|
873
|
-
}, qe = (
|
874
|
-
let t =
|
872
|
+
r === null ? (y = o === "svg" ? !0 : o === "foreignObject" ? !1 : y, o === "slot" || ze(s, t, y), i !== null && n !== null ? qs(e, i, t, n) : n !== null ? (s.$text$ !== null && (e.textContent = ""), Fe(e, null, t, n, 0, n.length - 1)) : i !== null && We(i, 0, i.length - 1), y && o === "svg" && (y = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = r : s.$text$ !== r && (e.data = r);
|
873
|
+
}, qe = (s) => {
|
874
|
+
let t = s.childNodes, e, i, n, o, r, a;
|
875
875
|
for (i = 0, n = t.length; i < n; i++)
|
876
|
-
if (
|
877
|
-
if (
|
878
|
-
for (
|
879
|
-
if (a = t[
|
880
|
-
if (a === 1 &&
|
881
|
-
|
876
|
+
if (e = t[i], e.nodeType === 1) {
|
877
|
+
if (e["s-sr"]) {
|
878
|
+
for (r = e["s-sn"], e.hidden = !1, o = 0; o < n; o++)
|
879
|
+
if (a = t[o].nodeType, t[o]["s-hn"] !== e["s-hn"] || r !== "") {
|
880
|
+
if (a === 1 && r === t[o].getAttribute("slot")) {
|
881
|
+
e.hidden = !0;
|
882
882
|
break;
|
883
883
|
}
|
884
|
-
} else if (a === 1 || a === 3 && t[
|
885
|
-
|
884
|
+
} else if (a === 1 || a === 3 && t[o].textContent.trim() !== "") {
|
885
|
+
e.hidden = !0;
|
886
886
|
break;
|
887
887
|
}
|
888
888
|
}
|
889
|
-
qe(
|
889
|
+
qe(e);
|
890
890
|
}
|
891
|
-
}, _ = [], Ze = (
|
892
|
-
let t,
|
891
|
+
}, _ = [], Ze = (s) => {
|
892
|
+
let t, e, i, n, o, r, a = 0, l = s.childNodes, c = l.length;
|
893
893
|
for (; a < c; a++) {
|
894
|
-
if (t = l[a], t["s-sr"] && (
|
895
|
-
for (i =
|
896
|
-
|
894
|
+
if (t = l[a], t["s-sr"] && (e = t["s-cr"]) && e.parentNode)
|
895
|
+
for (i = e.parentNode.childNodes, n = t["s-sn"], r = i.length - 1; r >= 0; r--)
|
896
|
+
e = i[r], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (ve(e, n) ? (o = _.find((d) => d.$nodeToRelocate$ === e), at = !0, e["s-sn"] = e["s-sn"] || n, o ? o.$slotRefNode$ = t : _.push({
|
897
897
|
$slotRefNode$: t,
|
898
|
-
$nodeToRelocate$:
|
899
|
-
}),
|
900
|
-
ve(d.$nodeToRelocate$,
|
901
|
-
})) : _.some((d) => d.$nodeToRelocate$ ===
|
902
|
-
$nodeToRelocate$:
|
898
|
+
$nodeToRelocate$: e
|
899
|
+
}), e["s-sr"] && _.map((d) => {
|
900
|
+
ve(d.$nodeToRelocate$, e["s-sn"]) && (o = _.find((h) => h.$nodeToRelocate$ === e), o && !d.$slotRefNode$ && (d.$slotRefNode$ = o.$slotRefNode$));
|
901
|
+
})) : _.some((d) => d.$nodeToRelocate$ === e) || _.push({
|
902
|
+
$nodeToRelocate$: e
|
903
903
|
}));
|
904
904
|
t.nodeType === 1 && Ze(t);
|
905
905
|
}
|
906
|
-
}, ve = (
|
907
|
-
|
908
|
-
}, Zs = (
|
909
|
-
const
|
910
|
-
vt =
|
906
|
+
}, ve = (s, t) => s.nodeType === 1 ? s.getAttribute("slot") === null && t === "" || s.getAttribute("slot") === t : s["s-sn"] === t ? !0 : t === "", Xe = (s) => {
|
907
|
+
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(Xe);
|
908
|
+
}, Zs = (s, t) => {
|
909
|
+
const e = s.$hostElement$, i = s.$cmpMeta$, n = s.$vnode$ || lt(null, null), o = zs(t) ? t : I(null, null, t);
|
910
|
+
vt = e.tagName, i.$attrsToReflect$ && (o.$attrs$ = o.$attrs$ || {}, i.$attrsToReflect$.map(([r, a]) => o.$attrs$[a] = e[r])), o.$tag$ = null, o.$flags$ |= 4, s.$vnode$ = o, o.$elm$ = n.$elm$ = e.shadowRoot || e, N = e["s-sc"], Ne = e["s-cr"], je = (i.$flags$ & 1) !== 0, at = !1, j(n, o);
|
911
911
|
{
|
912
|
-
if (v.$flags$ |= 1,
|
913
|
-
Ze(
|
914
|
-
let
|
912
|
+
if (v.$flags$ |= 1, Ft) {
|
913
|
+
Ze(o.$elm$);
|
914
|
+
let r, a, l, c, d, h, p = 0;
|
915
915
|
for (; p < _.length; p++)
|
916
|
-
|
916
|
+
r = _[p], a = r.$nodeToRelocate$, a["s-ol"] || (l = w.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
917
917
|
for (p = 0; p < _.length; p++)
|
918
|
-
if (
|
919
|
-
for (c =
|
918
|
+
if (r = _[p], a = r.$nodeToRelocate$, r.$slotRefNode$) {
|
919
|
+
for (c = r.$slotRefNode$.parentNode, d = r.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
|
920
920
|
if (h = l["s-nr"], h && h["s-sn"] === a["s-sn"] && c === h.parentNode && (h = h.nextSibling, !h || !h["s-nr"])) {
|
921
921
|
d = h;
|
922
922
|
break;
|
@@ -925,149 +925,149 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, D
|
|
925
925
|
} else
|
926
926
|
a.nodeType === 1 && (a.hidden = !0);
|
927
927
|
}
|
928
|
-
at && qe(
|
928
|
+
at && qe(o.$elm$), v.$flags$ &= -2, _.length = 0;
|
929
929
|
}
|
930
|
-
}, Xs = (
|
931
|
-
const i = Xs(
|
930
|
+
}, Xs = (s) => s, Ys = (s, t, e) => {
|
931
|
+
const i = Xs(s);
|
932
932
|
return {
|
933
933
|
emit: (n) => Ks(i, t, {
|
934
|
-
bubbles: !!(
|
935
|
-
composed: !!(
|
936
|
-
cancelable: !!(
|
934
|
+
bubbles: !!(e & 4),
|
935
|
+
composed: !!(e & 2),
|
936
|
+
cancelable: !!(e & 1),
|
937
937
|
detail: n
|
938
938
|
})
|
939
939
|
};
|
940
|
-
}, Ks = (
|
941
|
-
const i = v.ce(t,
|
942
|
-
return
|
943
|
-
}, Qs = (
|
944
|
-
}, Ye = (
|
945
|
-
const
|
946
|
-
let
|
947
|
-
return t ?
|
948
|
-
}, Vs = async (
|
949
|
-
const i =
|
950
|
-
i["s-rc"],
|
951
|
-
const
|
952
|
-
ti(
|
953
|
-
}, ti = (
|
940
|
+
}, Ks = (s, t, e) => {
|
941
|
+
const i = v.ce(t, e);
|
942
|
+
return s.dispatchEvent(i), i;
|
943
|
+
}, Qs = (s, t) => {
|
944
|
+
}, Ye = (s, t) => (s.$flags$ |= 16, Qs(s, s.$ancestorComponent$), gi(() => Js(s, t))), Js = (s, t) => {
|
945
|
+
const e = s.$hostElement$, i = L("scheduleUpdate", s.$cmpMeta$.$tagName$), n = e;
|
946
|
+
let o;
|
947
|
+
return t ? o = D(n, "componentWillLoad") : o = D(n, "componentWillUpdate"), o = ye(o, () => D(n, "componentWillRender")), i(), ye(o, () => Vs(s, n, t));
|
948
|
+
}, Vs = async (s, t, e) => {
|
949
|
+
const i = s.$hostElement$, n = L("update", s.$cmpMeta$.$tagName$);
|
950
|
+
i["s-rc"], e && Ns(s);
|
951
|
+
const o = L("render", s.$cmpMeta$.$tagName$);
|
952
|
+
ti(s, t, i), o(), n(), ei(s);
|
953
|
+
}, ti = (s, t, e) => {
|
954
954
|
try {
|
955
|
-
he = t, t = t.render && t.render(),
|
955
|
+
he = t, t = t.render && t.render(), s.$flags$ &= -17, s.$flags$ |= 2, (U.hasRenderFn || U.reflect) && (U.vdomRender || U.reflect) && (U.hydrateServerSide || Zs(s, t));
|
956
956
|
} catch (a) {
|
957
|
-
J(a,
|
957
|
+
J(a, s.$hostElement$);
|
958
958
|
}
|
959
959
|
return he = null, null;
|
960
|
-
}, ei = (
|
961
|
-
const t =
|
962
|
-
|
963
|
-
}, D = (
|
964
|
-
if (
|
960
|
+
}, ei = (s) => {
|
961
|
+
const t = s.$cmpMeta$.$tagName$, e = s.$hostElement$, i = L("postUpdate", t), n = e;
|
962
|
+
s.$ancestorComponent$, D(n, "componentDidRender"), s.$flags$ & 64 ? (D(n, "componentDidUpdate"), i()) : (s.$flags$ |= 64, D(n, "componentDidLoad"), i());
|
963
|
+
}, D = (s, t, e) => {
|
964
|
+
if (s && s[t])
|
965
965
|
try {
|
966
|
-
return
|
966
|
+
return s[t](e);
|
967
967
|
} catch (i) {
|
968
968
|
J(i);
|
969
969
|
}
|
970
|
-
}, ye = (
|
971
|
-
const n = bt(
|
972
|
-
|
973
|
-
const c = Number.isNaN(
|
974
|
-
if (
|
975
|
-
n.$instanceValues$.set(t,
|
970
|
+
}, ye = (s, t) => s && s.then ? s.then(t) : t(), si = (s, t) => s != null && !Wt(s) ? t & 4 ? s === "false" ? !1 : s === "" || !!s : t & 2 ? parseFloat(s) : t & 1 ? String(s) : s : s, ii = (s, t) => bt(s).$instanceValues$.get(t), ni = (s, t, e, i) => {
|
971
|
+
const n = bt(s), o = s, r = n.$instanceValues$.get(t), a = n.$flags$, l = o;
|
972
|
+
e = si(e, i.$members$[t][0]);
|
973
|
+
const c = Number.isNaN(r) && Number.isNaN(e);
|
974
|
+
if (e !== r && !c) {
|
975
|
+
n.$instanceValues$.set(t, e);
|
976
976
|
{
|
977
977
|
if (i.$watchers$ && a & 128) {
|
978
978
|
const h = i.$watchers$[t];
|
979
979
|
h && h.map((p) => {
|
980
980
|
try {
|
981
|
-
l[p](
|
981
|
+
l[p](e, r, t);
|
982
982
|
} catch (g) {
|
983
|
-
J(g,
|
983
|
+
J(g, o);
|
984
984
|
}
|
985
985
|
});
|
986
986
|
}
|
987
987
|
if ((a & 18) === 2) {
|
988
|
-
if (l.componentShouldUpdate && l.componentShouldUpdate(
|
988
|
+
if (l.componentShouldUpdate && l.componentShouldUpdate(e, r, t) === !1)
|
989
989
|
return;
|
990
990
|
Ye(n, !1);
|
991
991
|
}
|
992
992
|
}
|
993
993
|
}
|
994
|
-
},
|
994
|
+
}, oi = (s, t, e) => {
|
995
995
|
if (t.$members$) {
|
996
|
-
|
997
|
-
const i = Object.entries(t.$members$), n =
|
998
|
-
i.map(([
|
999
|
-
(
|
996
|
+
s.watchers && (t.$watchers$ = s.watchers);
|
997
|
+
const i = Object.entries(t.$members$), n = s.prototype;
|
998
|
+
i.map(([o, [r]]) => {
|
999
|
+
(r & 31 || r & 32) && Object.defineProperty(n, o, {
|
1000
1000
|
get() {
|
1001
|
-
return ii(this,
|
1001
|
+
return ii(this, o);
|
1002
1002
|
},
|
1003
1003
|
set(a) {
|
1004
|
-
ni(this,
|
1004
|
+
ni(this, o, a, t);
|
1005
1005
|
},
|
1006
1006
|
configurable: !0,
|
1007
1007
|
enumerable: !0
|
1008
1008
|
});
|
1009
1009
|
});
|
1010
1010
|
{
|
1011
|
-
const
|
1012
|
-
n.attributeChangedCallback = function(
|
1011
|
+
const o = /* @__PURE__ */ new Map();
|
1012
|
+
n.attributeChangedCallback = function(r, a, l) {
|
1013
1013
|
v.jmp(() => {
|
1014
|
-
const c =
|
1014
|
+
const c = o.get(r);
|
1015
1015
|
if (this.hasOwnProperty(c))
|
1016
1016
|
l = this[c], delete this[c];
|
1017
1017
|
else if (n.hasOwnProperty(c) && typeof this[c] == "number" && this[c] == l)
|
1018
1018
|
return;
|
1019
1019
|
this[c] = l === null && typeof this[c] == "boolean" ? !1 : l;
|
1020
1020
|
});
|
1021
|
-
},
|
1022
|
-
([
|
1021
|
+
}, s.observedAttributes = i.filter(
|
1022
|
+
([r, a]) => a[0] & 15
|
1023
1023
|
/* HasAttribute */
|
1024
|
-
).map(([
|
1025
|
-
const l = a[1] ||
|
1026
|
-
return
|
1024
|
+
).map(([r, a]) => {
|
1025
|
+
const l = a[1] || r;
|
1026
|
+
return o.set(l, r), a[0] & 512 && t.$attrsToReflect$.push([r, l]), l;
|
1027
1027
|
});
|
1028
1028
|
}
|
1029
1029
|
}
|
1030
|
-
return
|
1031
|
-
},
|
1032
|
-
if (!(t.$flags$ & 32) && (n =
|
1033
|
-
let
|
1034
|
-
typeof
|
1035
|
-
const a = Be(
|
1030
|
+
return s;
|
1031
|
+
}, ri = async (s, t, e, i, n) => {
|
1032
|
+
if (!(t.$flags$ & 32) && (n = s.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), n.style)) {
|
1033
|
+
let r = n.style;
|
1034
|
+
typeof r != "string" && (r = r[t.$modeName$ = js(s)]);
|
1035
|
+
const a = Be(e, t.$modeName$);
|
1036
1036
|
if (!dt.has(a)) {
|
1037
|
-
const l = L("registerStyles",
|
1038
|
-
|
1037
|
+
const l = L("registerStyles", e.$tagName$);
|
1038
|
+
Hs(a, r, !!(e.$flags$ & 1)), l();
|
1039
1039
|
}
|
1040
1040
|
}
|
1041
1041
|
t.$ancestorComponent$, (() => Ye(t, !0))();
|
1042
|
-
}, ai = (
|
1043
|
-
}, li = (
|
1042
|
+
}, ai = (s) => {
|
1043
|
+
}, li = (s) => {
|
1044
1044
|
if (!(v.$flags$ & 1)) {
|
1045
|
-
const t = bt(
|
1046
|
-
t.$flags$ & 1 ? (
|
1047
|
-
if (
|
1048
|
-
const
|
1049
|
-
delete
|
1050
|
-
}
|
1051
|
-
}),
|
1052
|
-
}
|
1053
|
-
}, ci = (
|
1054
|
-
const t =
|
1055
|
-
t["s-cn"] = !0,
|
1056
|
-
}, di = (
|
1045
|
+
const t = bt(s), e = t.$cmpMeta$, i = L("connectedCallback", e.$tagName$);
|
1046
|
+
t.$flags$ & 1 ? (De(s, t, e.$listeners$), ai(t.$lazyInstance$)) : (t.$flags$ |= 1, e.$flags$ & 12 && ci(s), e.$members$ && Object.entries(e.$members$).map(([n, [o]]) => {
|
1047
|
+
if (o & 31 && s.hasOwnProperty(n)) {
|
1048
|
+
const r = s[n];
|
1049
|
+
delete s[n], s[n] = r;
|
1050
|
+
}
|
1051
|
+
}), ri(s, t, e)), i();
|
1052
|
+
}
|
1053
|
+
}, ci = (s) => {
|
1054
|
+
const t = s["s-cr"] = w.createComment("");
|
1055
|
+
t["s-cn"] = !0, s.insertBefore(t, s.firstChild);
|
1056
|
+
}, di = (s) => {
|
1057
1057
|
if (!(v.$flags$ & 1)) {
|
1058
|
-
const t = bt(
|
1059
|
-
t.$rmListeners$ && (t.$rmListeners$.map((
|
1058
|
+
const t = bt(s);
|
1059
|
+
t.$rmListeners$ && (t.$rmListeners$.map((e) => e()), t.$rmListeners$ = void 0);
|
1060
1060
|
}
|
1061
|
-
}, Ke = (
|
1062
|
-
const
|
1061
|
+
}, Ke = (s, t) => {
|
1062
|
+
const e = {
|
1063
1063
|
$flags$: t[0],
|
1064
1064
|
$tagName$: t[1]
|
1065
1065
|
};
|
1066
|
-
|
1067
|
-
const i =
|
1068
|
-
return Object.assign(
|
1066
|
+
e.$members$ = t[2], e.$listeners$ = t[3], e.$watchers$ = s.$watchers$, e.$attrsToReflect$ = [];
|
1067
|
+
const i = s.prototype.connectedCallback, n = s.prototype.disconnectedCallback;
|
1068
|
+
return Object.assign(s.prototype, {
|
1069
1069
|
__registerHost() {
|
1070
|
-
hi(this,
|
1070
|
+
hi(this, e);
|
1071
1071
|
},
|
1072
1072
|
connectedCallback() {
|
1073
1073
|
li(this), i && i.call(this);
|
@@ -1078,48 +1078,48 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, D
|
|
1078
1078
|
__attachShadow() {
|
1079
1079
|
this.attachShadow({
|
1080
1080
|
mode: "open",
|
1081
|
-
delegatesFocus: !!(
|
1081
|
+
delegatesFocus: !!(e.$flags$ & 16)
|
1082
1082
|
});
|
1083
1083
|
}
|
1084
|
-
}),
|
1085
|
-
}, Qe = /* @__PURE__ */ new WeakMap(), bt = (
|
1086
|
-
const
|
1084
|
+
}), s.is = e.$tagName$, oi(s, e);
|
1085
|
+
}, Qe = /* @__PURE__ */ new WeakMap(), bt = (s) => Qe.get(s), hi = (s, t) => {
|
1086
|
+
const e = {
|
1087
1087
|
$flags$: 0,
|
1088
|
-
$hostElement$:
|
1088
|
+
$hostElement$: s,
|
1089
1089
|
$cmpMeta$: t,
|
1090
1090
|
$instanceValues$: /* @__PURE__ */ new Map()
|
1091
1091
|
};
|
1092
|
-
return
|
1093
|
-
}, be = (
|
1094
|
-
|
1095
|
-
}, xe = (
|
1096
|
-
for (let t = 0; t <
|
1092
|
+
return De(s, e, t.$listeners$), Qe.set(s, e);
|
1093
|
+
}, be = (s, t) => t in s, J = (s, t) => (0, console.error)(s, t), dt = /* @__PURE__ */ new Map(), pi = [], _e = [], Je = [], ui = (s, t) => (e) => {
|
1094
|
+
s.push(e), Mt || (Mt = !0, t && v.$flags$ & 4 ? fi(Ht) : v.raf(Ht));
|
1095
|
+
}, xe = (s) => {
|
1096
|
+
for (let t = 0; t < s.length; t++)
|
1097
1097
|
try {
|
1098
|
-
|
1099
|
-
} catch (
|
1100
|
-
J(
|
1098
|
+
s[t](performance.now());
|
1099
|
+
} catch (e) {
|
1100
|
+
J(e);
|
1101
1101
|
}
|
1102
|
-
|
1102
|
+
s.length = 0;
|
1103
1103
|
}, Ht = () => {
|
1104
|
-
xe(_e), xe(Je), (
|
1105
|
-
}, fi = (
|
1106
|
-
const { content: t = "", title:
|
1107
|
-
let n = "",
|
1104
|
+
xe(_e), xe(Je), (Mt = _e.length > 0) && v.raf(Ht);
|
1105
|
+
}, fi = (s) => Os().then(s), gi = /* @__PURE__ */ ui(Je, !0), $i = (s = {}) => {
|
1106
|
+
const { content: t = "", title: e, attributes: i = [] } = s;
|
1107
|
+
let n = "", o = [
|
1108
1108
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
1109
1109
|
{ name: "fill", value: "currentColor" },
|
1110
1110
|
...i
|
1111
1111
|
];
|
1112
|
-
return
|
1113
|
-
}, mi = (
|
1114
|
-
function vi(
|
1115
|
-
return `${
|
1112
|
+
return e && (n = `<title>${e}</title>`), `<svg ${o.map((a) => `${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`;
|
1113
|
+
}, mi = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
1114
|
+
function vi(s) {
|
1115
|
+
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
1116
1116
|
}
|
1117
1117
|
class yi {
|
1118
1118
|
constructor(t) {
|
1119
1119
|
this.voca_component = t, this.voca_added = vi(/* @__PURE__ */ new Date());
|
1120
1120
|
}
|
1121
1121
|
}
|
1122
|
-
const bi = "telia-vst{display:none}", _i = /* @__PURE__ */ Ke(class extends
|
1122
|
+
const bi = "telia-vst{display:none}", _i = /* @__PURE__ */ Ke(class extends Ie {
|
1123
1123
|
constructor() {
|
1124
1124
|
super(), this.__registerHost(), this.vocaInternalUStats = Ys(this, "vocaInternalUStats", 7);
|
1125
1125
|
}
|
@@ -1127,7 +1127,7 @@ const bi = "telia-vst{display:none}", _i = /* @__PURE__ */ Ke(class extends De {
|
|
1127
1127
|
this.vocaInternalUStats.emit(new yi(this.dataTrackingId));
|
1128
1128
|
}
|
1129
1129
|
render() {
|
1130
|
-
return
|
1130
|
+
return I(Gt, null);
|
1131
1131
|
}
|
1132
1132
|
static get style() {
|
1133
1133
|
return bi;
|
@@ -1147,17 +1147,17 @@ function Ve() {
|
|
1147
1147
|
});
|
1148
1148
|
}
|
1149
1149
|
Ve();
|
1150
|
-
function
|
1150
|
+
function Ut() {
|
1151
1151
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
1152
1152
|
}
|
1153
1153
|
function xi() {
|
1154
|
-
if (typeof
|
1155
|
-
return
|
1154
|
+
if (typeof Ut().vocadsIcons !== void 0)
|
1155
|
+
return Ut().vocadsIcons;
|
1156
1156
|
}
|
1157
1157
|
function wi() {
|
1158
|
-
return
|
1158
|
+
return Ut().vocadsIconsRegistered;
|
1159
1159
|
}
|
1160
|
-
const Ci = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", Ai = /* @__PURE__ */ Ke(class extends
|
1160
|
+
const Ci = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", Ai = /* @__PURE__ */ Ke(class extends Ie {
|
1161
1161
|
constructor() {
|
1162
1162
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
1163
1163
|
}
|
@@ -1170,23 +1170,23 @@ const Ci = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
1170
1170
|
if (this.svg)
|
1171
1171
|
return this.svg;
|
1172
1172
|
if (wi() && this.name) {
|
1173
|
-
const
|
1174
|
-
return
|
1173
|
+
const s = xi();
|
1174
|
+
return s[this.name] ? s[this.name].svg : "";
|
1175
1175
|
}
|
1176
1176
|
return this.name && console.warn(this.name, "Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"), "";
|
1177
1177
|
}
|
1178
1178
|
render() {
|
1179
|
-
let
|
1179
|
+
let s = this.getSvgString(), t = [{ name: "viewBox", value: "0 0 64 64" }];
|
1180
1180
|
this.allyTitle ? t = [...t, { name: "role", value: "img" }] : t = [
|
1181
1181
|
...t,
|
1182
1182
|
{ name: "aria-hidden", value: "true" }
|
1183
1183
|
];
|
1184
|
-
const
|
1185
|
-
content: mi(
|
1184
|
+
const e = $i({
|
1185
|
+
content: mi(s),
|
1186
1186
|
attributes: t,
|
1187
1187
|
title: this.allyTitle
|
1188
1188
|
});
|
1189
|
-
return
|
1189
|
+
return I(Gt, { class: `telia-icon telia-icon--${this.size}` }, I("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), I("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
1190
1190
|
}
|
1191
1191
|
static get style() {
|
1192
1192
|
return Ci;
|
@@ -1218,77 +1218,77 @@ Si();
|
|
1218
1218
|
* Copyright 2017 Google LLC
|
1219
1219
|
* SPDX-License-Identifier: BSD-3-Clause
|
1220
1220
|
*/
|
1221
|
-
const V = (
|
1222
|
-
|
1223
|
-
customElements.define(
|
1224
|
-
}) : customElements.define(
|
1221
|
+
const V = (s) => (t, e) => {
|
1222
|
+
e !== void 0 ? e.addInitializer(() => {
|
1223
|
+
customElements.define(s, t);
|
1224
|
+
}) : customElements.define(s, t);
|
1225
1225
|
};
|
1226
1226
|
/**
|
1227
1227
|
* @license
|
1228
1228
|
* Copyright 2017 Google LLC
|
1229
1229
|
* SPDX-License-Identifier: BSD-3-Clause
|
1230
1230
|
*/
|
1231
|
-
const Ei = { attribute: !0, type: String, converter:
|
1232
|
-
const { kind: i, metadata: n } =
|
1233
|
-
let
|
1234
|
-
if (
|
1235
|
-
const { name:
|
1231
|
+
const Ei = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: zt }, Ti = (s = Ei, t, e) => {
|
1232
|
+
const { kind: i, metadata: n } = e;
|
1233
|
+
let o = globalThis.litPropertyMetadata.get(n);
|
1234
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(n, o = /* @__PURE__ */ new Map()), o.set(e.name, s), i === "accessor") {
|
1235
|
+
const { name: r } = e;
|
1236
1236
|
return { set(a) {
|
1237
1237
|
const l = t.get.call(this);
|
1238
|
-
t.set.call(this, a), this.requestUpdate(
|
1238
|
+
t.set.call(this, a), this.requestUpdate(r, l, s);
|
1239
1239
|
}, init(a) {
|
1240
|
-
return a !== void 0 && this.C(
|
1240
|
+
return a !== void 0 && this.C(r, void 0, s), a;
|
1241
1241
|
} };
|
1242
1242
|
}
|
1243
1243
|
if (i === "setter") {
|
1244
|
-
const { name:
|
1244
|
+
const { name: r } = e;
|
1245
1245
|
return function(a) {
|
1246
|
-
const l = this[
|
1247
|
-
t.call(this, a), this.requestUpdate(
|
1246
|
+
const l = this[r];
|
1247
|
+
t.call(this, a), this.requestUpdate(r, l, s);
|
1248
1248
|
};
|
1249
1249
|
}
|
1250
1250
|
throw Error("Unsupported decorator location: " + i);
|
1251
1251
|
};
|
1252
|
-
function $(
|
1253
|
-
return (t,
|
1254
|
-
const
|
1255
|
-
return n.constructor.createProperty(
|
1256
|
-
})(
|
1252
|
+
function $(s) {
|
1253
|
+
return (t, e) => typeof e == "object" ? Ti(s, t, e) : ((i, n, o) => {
|
1254
|
+
const r = n.hasOwnProperty(o);
|
1255
|
+
return n.constructor.createProperty(o, r ? { ...i, wrapped: !0 } : i), r ? Object.getOwnPropertyDescriptor(n, o) : void 0;
|
1256
|
+
})(s, t, e);
|
1257
1257
|
}
|
1258
1258
|
/**
|
1259
1259
|
* @license
|
1260
1260
|
* Copyright 2017 Google LLC
|
1261
1261
|
* SPDX-License-Identifier: BSD-3-Clause
|
1262
1262
|
*/
|
1263
|
-
function C(
|
1264
|
-
return $({ ...
|
1263
|
+
function C(s) {
|
1264
|
+
return $({ ...s, state: !0, attribute: !1 });
|
1265
1265
|
}
|
1266
1266
|
/**
|
1267
1267
|
* @license
|
1268
1268
|
* Copyright 2020 Google LLC
|
1269
1269
|
* SPDX-License-Identifier: BSD-3-Clause
|
1270
1270
|
*/
|
1271
|
-
const
|
1271
|
+
const ki = (s) => s.strings === void 0;
|
1272
1272
|
/**
|
1273
1273
|
* @license
|
1274
1274
|
* Copyright 2017 Google LLC
|
1275
1275
|
* SPDX-License-Identifier: BSD-3-Clause
|
1276
1276
|
*/
|
1277
|
-
const _t = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, xt = (
|
1278
|
-
let
|
1277
|
+
const _t = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, xt = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
1278
|
+
let Zt = class {
|
1279
1279
|
constructor(t) {
|
1280
1280
|
}
|
1281
1281
|
get _$AU() {
|
1282
1282
|
return this._$AM._$AU;
|
1283
1283
|
}
|
1284
|
-
_$AT(t,
|
1285
|
-
this._$Ct = t, this._$AM =
|
1284
|
+
_$AT(t, e, i) {
|
1285
|
+
this._$Ct = t, this._$AM = e, this._$Ci = i;
|
1286
1286
|
}
|
1287
|
-
_$AS(t,
|
1288
|
-
return this.update(t,
|
1287
|
+
_$AS(t, e) {
|
1288
|
+
return this.update(t, e);
|
1289
1289
|
}
|
1290
|
-
update(t,
|
1291
|
-
return this.render(...
|
1290
|
+
update(t, e) {
|
1291
|
+
return this.render(...e);
|
1292
1292
|
}
|
1293
1293
|
};
|
1294
1294
|
/**
|
@@ -1296,66 +1296,66 @@ let qt = class {
|
|
1296
1296
|
* Copyright 2017 Google LLC
|
1297
1297
|
* SPDX-License-Identifier: BSD-3-Clause
|
1298
1298
|
*/
|
1299
|
-
const q = (
|
1299
|
+
const q = (s, t) => {
|
1300
1300
|
var i;
|
1301
|
-
const
|
1302
|
-
if (
|
1301
|
+
const e = s._$AN;
|
1302
|
+
if (e === void 0)
|
1303
1303
|
return !1;
|
1304
|
-
for (const n of
|
1304
|
+
for (const n of e)
|
1305
1305
|
(i = n._$AO) == null || i.call(n, t, !1), q(n, t);
|
1306
1306
|
return !0;
|
1307
|
-
}, ht = (
|
1308
|
-
let t,
|
1307
|
+
}, ht = (s) => {
|
1308
|
+
let t, e;
|
1309
1309
|
do {
|
1310
|
-
if ((t =
|
1310
|
+
if ((t = s._$AM) === void 0)
|
1311
1311
|
break;
|
1312
|
-
|
1313
|
-
} while ((
|
1314
|
-
}, ts = (
|
1315
|
-
for (let t; t =
|
1316
|
-
let
|
1317
|
-
if (
|
1318
|
-
t._$AN =
|
1319
|
-
else if (
|
1312
|
+
e = t._$AN, e.delete(s), s = t;
|
1313
|
+
} while ((e == null ? void 0 : e.size) === 0);
|
1314
|
+
}, ts = (s) => {
|
1315
|
+
for (let t; t = s._$AM; s = t) {
|
1316
|
+
let e = t._$AN;
|
1317
|
+
if (e === void 0)
|
1318
|
+
t._$AN = e = /* @__PURE__ */ new Set();
|
1319
|
+
else if (e.has(s))
|
1320
1320
|
break;
|
1321
|
-
|
1321
|
+
e.add(s), Li(t);
|
1322
1322
|
}
|
1323
1323
|
};
|
1324
|
-
function Oi(
|
1325
|
-
this._$AN !== void 0 ? (ht(this), this._$AM =
|
1324
|
+
function Oi(s) {
|
1325
|
+
this._$AN !== void 0 ? (ht(this), this._$AM = s, ts(this)) : this._$AM = s;
|
1326
1326
|
}
|
1327
|
-
function Pi(
|
1327
|
+
function Pi(s, t = !1, e = 0) {
|
1328
1328
|
const i = this._$AH, n = this._$AN;
|
1329
1329
|
if (n !== void 0 && n.size !== 0)
|
1330
1330
|
if (t)
|
1331
1331
|
if (Array.isArray(i))
|
1332
|
-
for (let
|
1333
|
-
q(i[
|
1332
|
+
for (let o = e; o < i.length; o++)
|
1333
|
+
q(i[o], !1), ht(i[o]);
|
1334
1334
|
else
|
1335
1335
|
i != null && (q(i, !1), ht(i));
|
1336
1336
|
else
|
1337
|
-
q(this,
|
1337
|
+
q(this, s);
|
1338
1338
|
}
|
1339
|
-
const Li = (
|
1340
|
-
|
1339
|
+
const Li = (s) => {
|
1340
|
+
s.type == _t.CHILD && (s._$AP ?? (s._$AP = Pi), s._$AQ ?? (s._$AQ = Oi));
|
1341
1341
|
};
|
1342
|
-
let es = class extends
|
1342
|
+
let es = class extends Zt {
|
1343
1343
|
constructor() {
|
1344
1344
|
super(...arguments), this._$AN = void 0;
|
1345
1345
|
}
|
1346
|
-
_$AT(t,
|
1347
|
-
super._$AT(t,
|
1346
|
+
_$AT(t, e, i) {
|
1347
|
+
super._$AT(t, e, i), ts(this), this.isConnected = t._$AU;
|
1348
1348
|
}
|
1349
|
-
_$AO(t,
|
1349
|
+
_$AO(t, e = !0) {
|
1350
1350
|
var i, n;
|
1351
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)),
|
1351
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), e && (q(this, t), ht(this));
|
1352
1352
|
}
|
1353
1353
|
setValue(t) {
|
1354
|
-
if (
|
1354
|
+
if (ki(this._$Ct))
|
1355
1355
|
this._$Ct._$AI(t, this);
|
1356
1356
|
else {
|
1357
|
-
const
|
1358
|
-
|
1357
|
+
const e = [...this._$Ct._$AH];
|
1358
|
+
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
1359
1359
|
}
|
1360
1360
|
}
|
1361
1361
|
disconnected() {
|
@@ -1371,26 +1371,26 @@ let es = class extends qt {
|
|
1371
1371
|
const pt = () => new Ri();
|
1372
1372
|
class Ri {
|
1373
1373
|
}
|
1374
|
-
const
|
1375
|
-
render(
|
1374
|
+
const Pt = /* @__PURE__ */ new WeakMap(), ut = xt(class extends es {
|
1375
|
+
render(s) {
|
1376
1376
|
return u;
|
1377
1377
|
}
|
1378
|
-
update(
|
1378
|
+
update(s, [t]) {
|
1379
1379
|
var i;
|
1380
|
-
const
|
1381
|
-
return
|
1380
|
+
const e = t !== this.G;
|
1381
|
+
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (i = s.options) == null ? void 0 : i.host, this.ot(this.lt = s.element)), u;
|
1382
1382
|
}
|
1383
|
-
ot(
|
1383
|
+
ot(s) {
|
1384
1384
|
if (typeof this.G == "function") {
|
1385
1385
|
const t = this.ct ?? globalThis;
|
1386
|
-
let
|
1387
|
-
|
1386
|
+
let e = Pt.get(t);
|
1387
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Pt.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, s), s !== void 0 && this.G.call(this.ct, s);
|
1388
1388
|
} else
|
1389
|
-
this.G.value =
|
1389
|
+
this.G.value = s;
|
1390
1390
|
}
|
1391
1391
|
get rt() {
|
1392
|
-
var
|
1393
|
-
return typeof this.G == "function" ? (
|
1392
|
+
var s, t;
|
1393
|
+
return typeof this.G == "function" ? (s = Pt.get(this.ct ?? globalThis)) == null ? void 0 : s.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1394
1394
|
}
|
1395
1395
|
disconnected() {
|
1396
1396
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1404,51 +1404,51 @@ const Ot = /* @__PURE__ */ new WeakMap(), ut = xt(class extends es {
|
|
1404
1404
|
* Copyright 2018 Google LLC
|
1405
1405
|
* SPDX-License-Identifier: BSD-3-Clause
|
1406
1406
|
*/
|
1407
|
-
const
|
1408
|
-
constructor(
|
1407
|
+
const Xt = xt(class extends Zt {
|
1408
|
+
constructor(s) {
|
1409
1409
|
var t;
|
1410
|
-
if (super(
|
1410
|
+
if (super(s), s.type !== _t.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
1411
1411
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1412
1412
|
}
|
1413
|
-
render(
|
1414
|
-
return " " + Object.keys(
|
1413
|
+
render(s) {
|
1414
|
+
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
1415
1415
|
}
|
1416
|
-
update(
|
1416
|
+
update(s, [t]) {
|
1417
1417
|
var i, n;
|
1418
1418
|
if (this.it === void 0) {
|
1419
|
-
this.it = /* @__PURE__ */ new Set(),
|
1420
|
-
for (const
|
1421
|
-
t[
|
1419
|
+
this.it = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.st = new Set(s.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
1420
|
+
for (const o in t)
|
1421
|
+
t[o] && !((i = this.st) != null && i.has(o)) && this.it.add(o);
|
1422
1422
|
return this.render(t);
|
1423
1423
|
}
|
1424
|
-
const
|
1425
|
-
for (const
|
1426
|
-
|
1427
|
-
for (const
|
1428
|
-
const
|
1429
|
-
|
1424
|
+
const e = s.element.classList;
|
1425
|
+
for (const o of this.it)
|
1426
|
+
o in t || (e.remove(o), this.it.delete(o));
|
1427
|
+
for (const o in t) {
|
1428
|
+
const r = !!t[o];
|
1429
|
+
r === this.it.has(o) || (n = this.st) != null && n.has(o) || (r ? (e.add(o), this.it.add(o)) : (e.remove(o), this.it.delete(o)));
|
1430
1430
|
}
|
1431
1431
|
return E;
|
1432
1432
|
}
|
1433
1433
|
});
|
1434
|
-
var
|
1435
|
-
for (var n = i > 1 ? void 0 : i ?
|
1436
|
-
(
|
1437
|
-
return i && n &&
|
1434
|
+
var Mi = Object.defineProperty, Hi = Object.getOwnPropertyDescriptor, Ui = (s, t, e, i) => {
|
1435
|
+
for (var n = i > 1 ? void 0 : i ? Hi(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
1436
|
+
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
1437
|
+
return i && n && Mi(t, e, n), n;
|
1438
1438
|
};
|
1439
|
-
class
|
1439
|
+
class Yt extends m {
|
1440
1440
|
constructor() {
|
1441
1441
|
super(...arguments), this.anchor = "BottomRight";
|
1442
1442
|
}
|
1443
1443
|
appendChild(t) {
|
1444
|
-
var
|
1445
|
-
return (
|
1444
|
+
var e;
|
1445
|
+
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
1446
1446
|
}
|
1447
1447
|
render() {
|
1448
1448
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), u;
|
1449
1449
|
}
|
1450
1450
|
}
|
1451
|
-
|
1451
|
+
Yt.styles = [
|
1452
1452
|
b`
|
1453
1453
|
:host {
|
1454
1454
|
position: fixed;
|
@@ -1469,32 +1469,32 @@ Xt.styles = [
|
|
1469
1469
|
];
|
1470
1470
|
Ui([
|
1471
1471
|
$({ attribute: !0 })
|
1472
|
-
],
|
1472
|
+
], Yt.prototype, "anchor", 2);
|
1473
1473
|
const Ni = /* @__PURE__ */ new WeakMap();
|
1474
1474
|
let we = 0;
|
1475
|
-
const
|
1476
|
-
const
|
1477
|
-
return
|
1478
|
-
},
|
1479
|
-
const
|
1480
|
-
return
|
1481
|
-
},
|
1482
|
-
const
|
1483
|
-
return { value:
|
1484
|
-
}, top: (
|
1485
|
-
const
|
1486
|
-
return { value:
|
1487
|
-
}, width: (
|
1488
|
-
let
|
1489
|
-
t === 0 && (t = 1,
|
1490
|
-
const i =
|
1491
|
-
return { value: i, overrideFrom:
|
1492
|
-
}, height: (
|
1493
|
-
let
|
1494
|
-
t === 0 && (t = 1,
|
1495
|
-
const i =
|
1496
|
-
return { value: i, overrideFrom:
|
1497
|
-
} },
|
1475
|
+
const Lt = /* @__PURE__ */ new Map(), Ce = /* @__PURE__ */ new WeakSet(), Ae = () => new Promise((s) => requestAnimationFrame(s)), ji = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Ii = [{ opacity: 0 }], Se = [{ opacity: 0 }, { opacity: 1 }], Ee = (s, t) => {
|
1476
|
+
const e = s - t;
|
1477
|
+
return e === 0 ? void 0 : e;
|
1478
|
+
}, Te = (s, t) => {
|
1479
|
+
const e = s / t;
|
1480
|
+
return e === 1 ? void 0 : e;
|
1481
|
+
}, Rt = { left: (s, t) => {
|
1482
|
+
const e = Ee(s, t);
|
1483
|
+
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1484
|
+
}, top: (s, t) => {
|
1485
|
+
const e = Ee(s, t);
|
1486
|
+
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1487
|
+
}, width: (s, t) => {
|
1488
|
+
let e;
|
1489
|
+
t === 0 && (t = 1, e = { width: "1px" });
|
1490
|
+
const i = Te(s, t);
|
1491
|
+
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1492
|
+
}, height: (s, t) => {
|
1493
|
+
let e;
|
1494
|
+
t === 0 && (t = 1, e = { height: "1px" });
|
1495
|
+
const i = Te(s, t);
|
1496
|
+
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1497
|
+
} }, Di = { duration: 333, easing: "ease-in-out" }, Bi = ["left", "top", "width", "height", "opacity", "color", "background"], ke = /* @__PURE__ */ new WeakMap();
|
1498
1498
|
class zi extends es {
|
1499
1499
|
constructor(t) {
|
1500
1500
|
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === _t.CHILD)
|
@@ -1503,8 +1503,8 @@ class zi extends es {
|
|
1503
1503
|
}
|
1504
1504
|
createFinished() {
|
1505
1505
|
var t;
|
1506
|
-
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((
|
1507
|
-
this.h =
|
1506
|
+
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((e) => {
|
1507
|
+
this.h = e;
|
1508
1508
|
});
|
1509
1509
|
}
|
1510
1510
|
async resolveFinished() {
|
@@ -1521,33 +1521,33 @@ class zi extends es {
|
|
1521
1521
|
var t;
|
1522
1522
|
return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
|
1523
1523
|
}
|
1524
|
-
update(t, [
|
1524
|
+
update(t, [e]) {
|
1525
1525
|
var n;
|
1526
1526
|
const i = this.l === void 0;
|
1527
|
-
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element,
|
1527
|
+
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element, ke.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.u(e), this.render(e);
|
1528
1528
|
}
|
1529
1529
|
u(t) {
|
1530
1530
|
t = t ?? {};
|
1531
|
-
const
|
1532
|
-
|
1531
|
+
const e = this.getController();
|
1532
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = Bi), this.options = t;
|
1533
1533
|
}
|
1534
1534
|
p() {
|
1535
|
-
const t = {},
|
1535
|
+
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1536
1536
|
return this.options.properties.forEach((n) => {
|
1537
|
-
const
|
1538
|
-
t[n] = isNaN(
|
1537
|
+
const o = e[n] ?? (Rt[n] ? void 0 : i[n]), r = Number(o);
|
1538
|
+
t[n] = isNaN(r) ? o + "" : r;
|
1539
1539
|
}), t;
|
1540
1540
|
}
|
1541
1541
|
m() {
|
1542
|
-
let t,
|
1543
|
-
return this.options.guard && (t = this.options.guard(),
|
1542
|
+
let t, e = !0;
|
1543
|
+
return this.options.guard && (t = this.options.guard(), e = ((i, n) => {
|
1544
1544
|
if (Array.isArray(i)) {
|
1545
|
-
if (Array.isArray(n) && n.length === i.length && i.every((
|
1545
|
+
if (Array.isArray(n) && n.length === i.length && i.every((o, r) => o === n[r]))
|
1546
1546
|
return !1;
|
1547
1547
|
} else if (n === i)
|
1548
1548
|
return !1;
|
1549
1549
|
return !0;
|
1550
|
-
})(t, this.v)), this.o = this.l.hasUpdated && !this.isDisabled() && !this.isAnimating() &&
|
1550
|
+
})(t, this.v)), this.o = this.l.hasUpdated && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.o && (this.v = Array.isArray(t) ? Array.from(t) : t), this.o;
|
1551
1551
|
}
|
1552
1552
|
hostUpdate() {
|
1553
1553
|
typeof this.optionsOrCallback == "function" && this.u(this.optionsOrCallback()), this.m() && (this.g = this.p(), this.t = this.t ?? this.element.parentNode, this.i = this.element.nextSibling);
|
@@ -1557,16 +1557,16 @@ class zi extends es {
|
|
1557
1557
|
return;
|
1558
1558
|
let t;
|
1559
1559
|
this.prepare(), await Ae;
|
1560
|
-
const
|
1560
|
+
const e = this._(), i = this.A(this.options.keyframeOptions, e), n = this.p();
|
1561
1561
|
if (this.g !== void 0) {
|
1562
|
-
const { from:
|
1563
|
-
this.log("measured", [this.g, n,
|
1562
|
+
const { from: o, to: r } = this.O(this.g, n, e);
|
1563
|
+
this.log("measured", [this.g, n, o, r]), t = this.calculateKeyframes(o, r);
|
1564
1564
|
} else {
|
1565
|
-
const
|
1566
|
-
if (
|
1567
|
-
|
1568
|
-
const { from:
|
1569
|
-
t = this.calculateKeyframes(
|
1565
|
+
const o = Lt.get(this.options.inId);
|
1566
|
+
if (o) {
|
1567
|
+
Lt.delete(this.options.inId);
|
1568
|
+
const { from: r, to: a } = this.O(o, n, e);
|
1569
|
+
t = this.calculateKeyframes(r, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, we++, t.forEach((l) => l.zIndex = we);
|
1570
1570
|
} else
|
1571
1571
|
this.options.in && (t = [...this.options.in, {}]);
|
1572
1572
|
}
|
@@ -1576,22 +1576,22 @@ class zi extends es {
|
|
1576
1576
|
this.j !== void 0 && (this.element.setAttribute("style", this.j ?? ""), this.j = void 0);
|
1577
1577
|
}
|
1578
1578
|
commitStyles() {
|
1579
|
-
var t,
|
1580
|
-
this.j = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (
|
1579
|
+
var t, e;
|
1580
|
+
this.j = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (e = this.webAnimation) == null || e.cancel();
|
1581
1581
|
}
|
1582
1582
|
reconnected() {
|
1583
1583
|
}
|
1584
1584
|
async disconnected() {
|
1585
|
-
var
|
1586
|
-
if (!this.o || (this.options.id !== void 0 &&
|
1585
|
+
var e;
|
1586
|
+
if (!this.o || (this.options.id !== void 0 && Lt.set(this.options.id, this.g), this.options.out === void 0))
|
1587
1587
|
return;
|
1588
|
-
if (this.prepare(), await Ae(), (
|
1588
|
+
if (this.prepare(), await Ae(), (e = this.t) == null ? void 0 : e.isConnected) {
|
1589
1589
|
const i = this.i && this.i.parentNode === this.t ? this.i : null;
|
1590
1590
|
if (this.t.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1591
1591
|
const n = this.p();
|
1592
1592
|
this.log("stabilizing out");
|
1593
|
-
const
|
1594
|
-
getComputedStyle(this.element).position !== "static" ||
|
1593
|
+
const o = this.g.left - n.left, r = this.g.top - n.top;
|
1594
|
+
getComputedStyle(this.element).position !== "static" || o === 0 && r === 0 || (this.element.style.position = "relative"), o !== 0 && (this.element.style.left = o + "px"), r !== 0 && (this.element.style.top = r + "px");
|
1595
1595
|
}
|
1596
1596
|
}
|
1597
1597
|
const t = this.A(this.options.keyframeOptions);
|
@@ -1601,17 +1601,17 @@ class zi extends es {
|
|
1601
1601
|
this.createFinished();
|
1602
1602
|
}
|
1603
1603
|
start() {
|
1604
|
-
var t,
|
1605
|
-
(
|
1604
|
+
var t, e;
|
1605
|
+
(e = (t = this.options).onStart) == null || e.call(t, this);
|
1606
1606
|
}
|
1607
1607
|
didFinish(t) {
|
1608
|
-
var
|
1609
|
-
t && ((i = (
|
1608
|
+
var e, i;
|
1609
|
+
t && ((i = (e = this.options).onComplete) == null || i.call(e, this)), this.g = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
|
1610
1610
|
}
|
1611
1611
|
_() {
|
1612
1612
|
const t = [];
|
1613
|
-
for (let
|
1614
|
-
const i =
|
1613
|
+
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1614
|
+
const i = ke.get(e);
|
1615
1615
|
i && !i.isDisabled() && i && t.push(i);
|
1616
1616
|
}
|
1617
1617
|
return t;
|
@@ -1622,40 +1622,40 @@ class zi extends es {
|
|
1622
1622
|
Ce.add(this.l);
|
1623
1623
|
}), t;
|
1624
1624
|
}
|
1625
|
-
A(t,
|
1626
|
-
const i = { ...
|
1627
|
-
return
|
1625
|
+
A(t, e = this._()) {
|
1626
|
+
const i = { ...Di };
|
1627
|
+
return e.forEach((n) => Object.assign(i, n.options.keyframeOptions)), Object.assign(i, t), i;
|
1628
1628
|
}
|
1629
|
-
O(t,
|
1630
|
-
t = { ...t },
|
1629
|
+
O(t, e, i) {
|
1630
|
+
t = { ...t }, e = { ...e };
|
1631
1631
|
const n = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1632
|
-
let
|
1632
|
+
let o = 1, r = 1;
|
1633
1633
|
return n !== void 0 && (n.forEach((a) => {
|
1634
|
-
a.width && (
|
1635
|
-
}), t.left !== void 0 &&
|
1634
|
+
a.width && (o /= a.width), a.height && (r /= a.height);
|
1635
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = r * t.top, e.top = r * e.top)), { from: t, to: e };
|
1636
1636
|
}
|
1637
|
-
calculateKeyframes(t,
|
1638
|
-
const n = {},
|
1639
|
-
let
|
1637
|
+
calculateKeyframes(t, e, i = !1) {
|
1638
|
+
const n = {}, o = {};
|
1639
|
+
let r = !1;
|
1640
1640
|
const a = {};
|
1641
|
-
for (const l in
|
1642
|
-
const c = t[l], d =
|
1643
|
-
if (l in
|
1644
|
-
const h =
|
1641
|
+
for (const l in e) {
|
1642
|
+
const c = t[l], d = e[l];
|
1643
|
+
if (l in Rt) {
|
1644
|
+
const h = Rt[l];
|
1645
1645
|
if (c === void 0 || d === void 0)
|
1646
1646
|
continue;
|
1647
1647
|
const p = h(c, d);
|
1648
|
-
p.transform !== void 0 && (a[l] = p.value,
|
1648
|
+
p.transform !== void 0 && (a[l] = p.value, r = !0, n.transform = `${n.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(n, p.overrideFrom));
|
1649
1649
|
} else
|
1650
|
-
c !== d && c !== void 0 && d !== void 0 && (
|
1650
|
+
c !== d && c !== void 0 && d !== void 0 && (r = !0, n[l] = c, o[l] = d);
|
1651
1651
|
}
|
1652
|
-
return n.transformOrigin =
|
1652
|
+
return n.transformOrigin = o.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, r ? [n, o] : void 0;
|
1653
1653
|
}
|
1654
|
-
async animate(t,
|
1654
|
+
async animate(t, e = this.options.keyframeOptions) {
|
1655
1655
|
this.start(), this.frames = t;
|
1656
1656
|
let i = !1;
|
1657
1657
|
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
1658
|
-
this.log("animate", [t,
|
1658
|
+
this.log("animate", [t, e]), i = !0, this.webAnimation = this.element.animate(t, e);
|
1659
1659
|
const n = this.getController();
|
1660
1660
|
n == null || n.add(this);
|
1661
1661
|
try {
|
@@ -1667,37 +1667,37 @@ class zi extends es {
|
|
1667
1667
|
return this.didFinish(i), i;
|
1668
1668
|
}
|
1669
1669
|
isAnimating() {
|
1670
|
-
var t,
|
1671
|
-
return ((t = this.webAnimation) == null ? void 0 : t.playState) === "running" || ((
|
1670
|
+
var t, e;
|
1671
|
+
return ((t = this.webAnimation) == null ? void 0 : t.playState) === "running" || ((e = this.webAnimation) == null ? void 0 : e.pending);
|
1672
1672
|
}
|
1673
|
-
log(t,
|
1674
|
-
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id,
|
1673
|
+
log(t, e) {
|
1674
|
+
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1675
1675
|
}
|
1676
1676
|
}
|
1677
|
-
const
|
1678
|
-
|
1679
|
-
}, ss = (
|
1680
|
-
var
|
1681
|
-
it((
|
1682
|
-
(i =
|
1677
|
+
const Nt = xt(zi), it = (s, t, e) => {
|
1678
|
+
s && e.style.setProperty(t, s);
|
1679
|
+
}, ss = (s, t) => {
|
1680
|
+
var e, i, n, o;
|
1681
|
+
it((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), it(
|
1682
|
+
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1683
1683
|
"--text-on-primary-background",
|
1684
1684
|
t
|
1685
1685
|
), it(
|
1686
|
-
(n =
|
1686
|
+
(n = s.colors) == null ? void 0 : n.secondaryBackground,
|
1687
1687
|
"--secondary-background",
|
1688
1688
|
t
|
1689
1689
|
), it(
|
1690
|
-
(
|
1690
|
+
(o = s.colors) == null ? void 0 : o.textOnSecondaryBackground,
|
1691
1691
|
"--text-on-secondary-background",
|
1692
1692
|
t
|
1693
1693
|
);
|
1694
1694
|
};
|
1695
|
-
var Fi = Object.defineProperty, Wi = Object.getOwnPropertyDescriptor, wt = (
|
1696
|
-
for (var n = i > 1 ? void 0 : i ? Wi(t,
|
1697
|
-
(
|
1698
|
-
return i && n && Fi(t,
|
1695
|
+
var Fi = Object.defineProperty, Wi = Object.getOwnPropertyDescriptor, wt = (s, t, e, i) => {
|
1696
|
+
for (var n = i > 1 ? void 0 : i ? Wi(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
1697
|
+
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
1698
|
+
return i && n && Fi(t, e, n), n;
|
1699
1699
|
};
|
1700
|
-
class
|
1700
|
+
class M extends m {
|
1701
1701
|
constructor() {
|
1702
1702
|
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = pt();
|
1703
1703
|
}
|
@@ -1720,18 +1720,18 @@ class R extends m {
|
|
1720
1720
|
}
|
1721
1721
|
async _renderSymbol() {
|
1722
1722
|
var a, l, c;
|
1723
|
-
const t = (a = this.application) == null ? void 0 : a.branding(),
|
1724
|
-
if (
|
1725
|
-
return f` <img src=${
|
1723
|
+
const t = (a = this.application) == null ? void 0 : a.branding(), e = (l = t == null ? void 0 : t.graphics) == null ? void 0 : l.trigger;
|
1724
|
+
if (e)
|
1725
|
+
return f` <img src=${e} class="trigger-icon" alt="" /> `;
|
1726
1726
|
const i = (c = this.application) == null ? void 0 : c.triggerIcon;
|
1727
1727
|
if (!i)
|
1728
1728
|
return u;
|
1729
|
-
const n = async (d) => await import("./index-
|
1729
|
+
const n = async (d) => await import("./index-127a80a4.mjs").then(
|
1730
1730
|
(p) => p[d]
|
1731
|
-
), { type:
|
1732
|
-
switch (
|
1731
|
+
), { type: o, content: r } = i;
|
1732
|
+
switch (o) {
|
1733
1733
|
case "Telia": {
|
1734
|
-
const d = await n(
|
1734
|
+
const d = await n(r);
|
1735
1735
|
return d ? f`<telia-icon
|
1736
1736
|
class="trigger-icon"
|
1737
1737
|
svg=${d.svg}
|
@@ -1743,13 +1743,13 @@ class R extends m {
|
|
1743
1743
|
}
|
1744
1744
|
}
|
1745
1745
|
render() {
|
1746
|
-
var t,
|
1746
|
+
var t, e, i, n;
|
1747
1747
|
return f`<div class="trigger-container" ${ut(this.containerRef)}>
|
1748
|
-
${!this.active && ((n = (i = (
|
1748
|
+
${!this.active && ((n = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && n.showButtonLabel) ? f`
|
1749
1749
|
<button
|
1750
1750
|
class="trigger-label"
|
1751
1751
|
@click=${this._toggleActive}
|
1752
|
-
${
|
1752
|
+
${Nt({
|
1753
1753
|
keyframeOptions: {},
|
1754
1754
|
in: ji,
|
1755
1755
|
stabilizeOut: !0,
|
@@ -1761,7 +1761,7 @@ class R extends m {
|
|
1761
1761
|
` : u}
|
1762
1762
|
|
1763
1763
|
<button
|
1764
|
-
class=${
|
1764
|
+
class=${Xt({
|
1765
1765
|
trigger: !0,
|
1766
1766
|
active: this.active,
|
1767
1767
|
rendered: this.loaded
|
@@ -1800,7 +1800,7 @@ class R extends m {
|
|
1800
1800
|
</div>`;
|
1801
1801
|
}
|
1802
1802
|
}
|
1803
|
-
|
1803
|
+
M.styles = [
|
1804
1804
|
b`
|
1805
1805
|
:host {
|
1806
1806
|
--voca-rem-multiplier: 0.625;
|
@@ -1909,23 +1909,23 @@ R.styles = [
|
|
1909
1909
|
];
|
1910
1910
|
wt([
|
1911
1911
|
$({ attribute: !1 })
|
1912
|
-
],
|
1912
|
+
], M.prototype, "application", 2);
|
1913
1913
|
wt([
|
1914
1914
|
C()
|
1915
|
-
],
|
1915
|
+
], M.prototype, "active", 2);
|
1916
1916
|
wt([
|
1917
1917
|
C()
|
1918
|
-
],
|
1918
|
+
], M.prototype, "loaded", 2);
|
1919
1919
|
wt([
|
1920
1920
|
C()
|
1921
|
-
],
|
1922
|
-
var Gi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor,
|
1923
|
-
for (var n = i > 1 ? void 0 : i ? qi(t,
|
1924
|
-
(
|
1925
|
-
return i && n && Gi(t,
|
1921
|
+
], M.prototype, "icon", 2);
|
1922
|
+
var Gi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, k = (s, t, e, i) => {
|
1923
|
+
for (var n = i > 1 ? void 0 : i ? qi(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
1924
|
+
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
1925
|
+
return i && n && Gi(t, e, n), n;
|
1926
1926
|
};
|
1927
|
-
const is = (
|
1928
|
-
class t extends
|
1927
|
+
const is = (s) => {
|
1928
|
+
class t extends s {
|
1929
1929
|
constructor() {
|
1930
1930
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
1931
1931
|
}
|
@@ -1963,19 +1963,19 @@ const is = (e) => {
|
|
1963
1963
|
box-sizing: border-box;
|
1964
1964
|
}
|
1965
1965
|
`
|
1966
|
-
],
|
1966
|
+
], k([
|
1967
1967
|
$()
|
1968
|
-
], t.prototype, "properties", 2),
|
1968
|
+
], t.prototype, "properties", 2), k([
|
1969
1969
|
$()
|
1970
|
-
], t.prototype, "context", 2),
|
1970
|
+
], t.prototype, "context", 2), k([
|
1971
1971
|
$()
|
1972
|
-
], t.prototype, "layout", 2),
|
1972
|
+
], t.prototype, "layout", 2), k([
|
1973
1973
|
$()
|
1974
|
-
], t.prototype, "name", 2),
|
1974
|
+
], t.prototype, "name", 2), k([
|
1975
1975
|
$()
|
1976
|
-
], t.prototype, "type", 2),
|
1976
|
+
], t.prototype, "type", 2), k([
|
1977
1977
|
$({ attribute: !1 })
|
1978
|
-
], t.prototype, "application", 2),
|
1978
|
+
], t.prototype, "application", 2), k([
|
1979
1979
|
$({ attribute: !1 })
|
1980
1980
|
], t.prototype, "parent", 2), t;
|
1981
1981
|
};
|
@@ -1996,19 +1996,19 @@ ns.styles = [
|
|
1996
1996
|
* Copyright 2021 Google LLC
|
1997
1997
|
* SPDX-License-Identifier: BSD-3-Clause
|
1998
1998
|
*/
|
1999
|
-
function* Zi(
|
2000
|
-
if (
|
2001
|
-
let
|
2002
|
-
for (const i of
|
2003
|
-
yield t(i,
|
1999
|
+
function* Zi(s, t) {
|
2000
|
+
if (s !== void 0) {
|
2001
|
+
let e = 0;
|
2002
|
+
for (const i of s)
|
2003
|
+
yield t(i, e++);
|
2004
2004
|
}
|
2005
2005
|
}
|
2006
|
-
var
|
2007
|
-
for (var n = i > 1 ? void 0 : i ? Yi(t,
|
2008
|
-
(
|
2009
|
-
return i && n && Xi(t,
|
2006
|
+
var Kt = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(Kt || {}), Xi = Object.defineProperty, Yi = Object.getOwnPropertyDescriptor, Ki = (s, t, e, i) => {
|
2007
|
+
for (var n = i > 1 ? void 0 : i ? Yi(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2008
|
+
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2009
|
+
return i && n && Xi(t, e, n), n;
|
2010
2010
|
};
|
2011
|
-
class
|
2011
|
+
class Qt extends m {
|
2012
2012
|
constructor() {
|
2013
2013
|
super(...arguments), this.nodes = [], this.wrapperRef = pt();
|
2014
2014
|
}
|
@@ -2024,21 +2024,21 @@ class Kt extends m {
|
|
2024
2024
|
applyStyles() {
|
2025
2025
|
if (!this.wrapperRef.value)
|
2026
2026
|
return;
|
2027
|
-
const t = this.application.styles(),
|
2027
|
+
const t = this.application.styles(), e = this.wrapperRef.value;
|
2028
2028
|
Object.entries(t).forEach(([i, n]) => {
|
2029
|
-
|
2029
|
+
e.style.setProperty(`--${i}`, n);
|
2030
2030
|
});
|
2031
2031
|
}
|
2032
2032
|
firstUpdated(t) {
|
2033
2033
|
this.applyBranding(), this.applyStyles();
|
2034
2034
|
}
|
2035
2035
|
render() {
|
2036
|
-
return this.application.renderStrategy ===
|
2036
|
+
return this.application.renderStrategy === Kt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), f`<div class="widget-container" ${ut(this.wrapperRef)}>
|
2037
2037
|
${Zi(this.nodes, (t) => t)}
|
2038
2038
|
</div>`;
|
2039
2039
|
}
|
2040
2040
|
}
|
2041
|
-
|
2041
|
+
Qt.styles = b`
|
2042
2042
|
:host {
|
2043
2043
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2044
2044
|
--spacing-xs: 0.2rem;
|
@@ -2138,11 +2138,11 @@ Kt.styles = b`
|
|
2138
2138
|
`;
|
2139
2139
|
Ki([
|
2140
2140
|
$({ attribute: !1 })
|
2141
|
-
],
|
2142
|
-
var Qi = Object.defineProperty, Ji = Object.getOwnPropertyDescriptor,
|
2143
|
-
for (var n = i > 1 ? void 0 : i ? Ji(t,
|
2144
|
-
(
|
2145
|
-
return i && n && Qi(t,
|
2141
|
+
], Qt.prototype, "application", 2);
|
2142
|
+
var Qi = Object.defineProperty, Ji = Object.getOwnPropertyDescriptor, Jt = (s, t, e, i) => {
|
2143
|
+
for (var n = i > 1 ? void 0 : i ? Ji(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2144
|
+
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2145
|
+
return i && n && Qi(t, e, n), n;
|
2146
2146
|
};
|
2147
2147
|
class tt extends m {
|
2148
2148
|
constructor() {
|
@@ -2163,14 +2163,14 @@ class tt extends m {
|
|
2163
2163
|
async getGlobalEnvironment() {
|
2164
2164
|
const t = globalThis.widgets;
|
2165
2165
|
t && (this.widget = t.applications.find(
|
2166
|
-
(
|
2166
|
+
(e) => e.name === this.name
|
2167
2167
|
), await this.activate());
|
2168
2168
|
}
|
2169
2169
|
render() {
|
2170
2170
|
if (!this.widget || this.status !== "activated")
|
2171
2171
|
return u;
|
2172
|
-
if (this.widget.renderStrategy ===
|
2173
|
-
const t = new
|
2172
|
+
if (this.widget.renderStrategy === Kt.Trigger) {
|
2173
|
+
const t = new M();
|
2174
2174
|
return t.application = this.widget, t;
|
2175
2175
|
}
|
2176
2176
|
return this.widget.render();
|
@@ -2183,47 +2183,47 @@ tt.styles = [
|
|
2183
2183
|
}
|
2184
2184
|
`
|
2185
2185
|
];
|
2186
|
-
|
2186
|
+
Jt([
|
2187
2187
|
$({ attribute: !0 })
|
2188
2188
|
], tt.prototype, "name", 2);
|
2189
|
-
|
2189
|
+
Jt([
|
2190
2190
|
C()
|
2191
2191
|
], tt.prototype, "widget", 2);
|
2192
|
-
|
2192
|
+
Jt([
|
2193
2193
|
C()
|
2194
2194
|
], tt.prototype, "status", 2);
|
2195
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
2196
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
2195
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Yt);
|
2196
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", M);
|
2197
2197
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", ns);
|
2198
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2198
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Qt);
|
2199
2199
|
customElements.get("ace-widget") || customElements.define("ace-widget", tt);
|
2200
|
-
var Vi = Object.defineProperty, tn = Object.getOwnPropertyDescriptor, Ct = (
|
2201
|
-
for (var n = i > 1 ? void 0 : i ? tn(t,
|
2202
|
-
(
|
2203
|
-
return i && n && Vi(t,
|
2200
|
+
var Vi = Object.defineProperty, tn = Object.getOwnPropertyDescriptor, Ct = (s, t, e, i) => {
|
2201
|
+
for (var n = i > 1 ? void 0 : i ? tn(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2202
|
+
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2203
|
+
return i && n && Vi(t, e, n), n;
|
2204
2204
|
};
|
2205
|
-
let
|
2205
|
+
let z = class extends m {
|
2206
2206
|
constructor() {
|
2207
2207
|
super(...arguments), this.loading = !0, this.entries = [];
|
2208
2208
|
}
|
2209
2209
|
connectedCallback() {
|
2210
|
-
super.connectedCallback(), this.session.entries().subscribe((
|
2211
|
-
this.entries =
|
2212
|
-
}), this.session.isTyping().subscribe((
|
2213
|
-
this.loading =
|
2210
|
+
super.connectedCallback(), this.session.entries().subscribe((s) => {
|
2211
|
+
this.entries = s;
|
2212
|
+
}), this.session.isTyping().subscribe((s) => {
|
2213
|
+
this.loading = s;
|
2214
2214
|
});
|
2215
2215
|
}
|
2216
|
-
updated(
|
2216
|
+
updated(s) {
|
2217
2217
|
const t = new CustomEvent("updated", {});
|
2218
2218
|
this.dispatchEvent(t);
|
2219
2219
|
}
|
2220
2220
|
render() {
|
2221
2221
|
return f`<div class="conversation-session">
|
2222
2222
|
${this.entries.map(
|
2223
|
-
(
|
2223
|
+
(s) => f`<div class="conversation-entry" tabindex="-1">
|
2224
2224
|
<conversation-entry
|
2225
|
-
.entry=${
|
2226
|
-
${
|
2225
|
+
.entry=${s}
|
2226
|
+
${Nt({
|
2227
2227
|
keyframeOptions: {},
|
2228
2228
|
in: Se,
|
2229
2229
|
stabilizeOut: !0,
|
@@ -2234,10 +2234,10 @@ let B = class extends m {
|
|
2234
2234
|
</div>`
|
2235
2235
|
)}
|
2236
2236
|
${this.loading ? f`<ace-typing-state
|
2237
|
-
${
|
2237
|
+
${Nt({
|
2238
2238
|
keyframeOptions: {},
|
2239
2239
|
in: Se,
|
2240
|
-
out:
|
2240
|
+
out: Ii,
|
2241
2241
|
stabilizeOut: !0,
|
2242
2242
|
skipInitial: !1
|
2243
2243
|
})}
|
@@ -2245,7 +2245,7 @@ let B = class extends m {
|
|
2245
2245
|
</div> `;
|
2246
2246
|
}
|
2247
2247
|
};
|
2248
|
-
|
2248
|
+
z.styles = [
|
2249
2249
|
b`
|
2250
2250
|
:host {
|
2251
2251
|
display: block;
|
@@ -2255,53 +2255,76 @@ B.styles = [
|
|
2255
2255
|
flex-direction: column;
|
2256
2256
|
justify-content: end;
|
2257
2257
|
min-height: 100%;
|
2258
|
+
padding: var(--spacing-md);
|
2258
2259
|
}
|
2259
2260
|
`
|
2260
2261
|
];
|
2261
2262
|
Ct([
|
2262
2263
|
$({ type: Boolean })
|
2263
|
-
],
|
2264
|
+
], z.prototype, "loading", 2);
|
2264
2265
|
Ct([
|
2265
2266
|
$({ attribute: !1 })
|
2266
|
-
],
|
2267
|
+
], z.prototype, "session", 2);
|
2267
2268
|
Ct([
|
2268
2269
|
C()
|
2269
|
-
],
|
2270
|
-
|
2270
|
+
], z.prototype, "entries", 2);
|
2271
|
+
z = Ct([
|
2271
2272
|
V("ace-conversation-session")
|
2272
|
-
],
|
2273
|
-
var en = Object.defineProperty, sn = Object.getOwnPropertyDescriptor,
|
2274
|
-
for (var n = i > 1 ? void 0 : i ? sn(t,
|
2275
|
-
(
|
2276
|
-
return i && n && en(t,
|
2273
|
+
], z);
|
2274
|
+
var en = Object.defineProperty, sn = Object.getOwnPropertyDescriptor, os = (s, t, e, i) => {
|
2275
|
+
for (var n = i > 1 ? void 0 : i ? sn(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2276
|
+
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2277
|
+
return i && n && en(t, e, n), n;
|
2277
2278
|
};
|
2278
2279
|
let ft = class extends m {
|
2279
2280
|
connectedCallback() {
|
2280
|
-
var
|
2281
|
-
super.connectedCallback(), (
|
2281
|
+
var s;
|
2282
|
+
super.connectedCallback(), (s = this.entry.didUpdate) == null || s.subscribe(() => {
|
2282
2283
|
this.requestUpdate();
|
2283
2284
|
});
|
2284
2285
|
}
|
2285
|
-
|
2286
|
-
|
2287
|
-
|
2288
|
-
|
2289
|
-
|
2290
|
-
minute: "2-digit"
|
2286
|
+
_getTimestamp(s) {
|
2287
|
+
return new Date(s).toLocaleTimeString([], {
|
2288
|
+
hour: "numeric",
|
2289
|
+
minute: "2-digit",
|
2290
|
+
hourCycle: "h23"
|
2291
2291
|
});
|
2292
|
-
|
2293
|
-
|
2292
|
+
}
|
2293
|
+
_renderTimestamp(s, t) {
|
2294
|
+
if (!s && !t)
|
2295
|
+
return u;
|
2296
|
+
let e = "";
|
2297
|
+
return s ? t ? e = `${s}: ${this._getTimestamp(t)}` : e = s : t && (e = this._getTimestamp(t)), f`<p class="conversation-timestamp">${e}</p>`;
|
2298
|
+
}
|
2299
|
+
_dispatchEntryAction(s) {
|
2300
|
+
this.entry.actions$.next(s.detail);
|
2294
2301
|
}
|
2295
2302
|
render() {
|
2296
|
-
var
|
2303
|
+
var s, t;
|
2297
2304
|
switch (this.entry.type) {
|
2298
|
-
case
|
2299
|
-
return
|
2300
|
-
|
2305
|
+
case St.System:
|
2306
|
+
return f`
|
2307
|
+
<div class="conversation-system-message">
|
2308
|
+
${this.entry.messages.map(
|
2309
|
+
(e) => f`
|
2310
|
+
<div class="message-container">
|
2311
|
+
<div class="message-content">
|
2312
|
+
<conversation-group
|
2313
|
+
.group=${e}
|
2314
|
+
@action=${this._dispatchEntryAction}
|
2315
|
+
></conversation-group>
|
2316
|
+
</div>
|
2317
|
+
</div>
|
2318
|
+
`
|
2319
|
+
)}
|
2320
|
+
<span>${this._getTimestamp(this.entry.timestamp)}</span>
|
2321
|
+
</div>
|
2322
|
+
`;
|
2323
|
+
case St.Agent:
|
2301
2324
|
return f`<div
|
2302
|
-
class=${
|
2325
|
+
class=${Xt({
|
2303
2326
|
"conversation-agent-message": !0,
|
2304
|
-
"has-avatar": !!((
|
2327
|
+
"has-avatar": !!((s = this.entry.sender) != null && s.avatar)
|
2305
2328
|
})}
|
2306
2329
|
>
|
2307
2330
|
${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ? f`<div class="avatar">
|
@@ -2310,10 +2333,10 @@ let ft = class extends m {
|
|
2310
2333
|
|
2311
2334
|
<div class="entry-content">
|
2312
2335
|
${this.entry.messages.map(
|
2313
|
-
(
|
2336
|
+
(e) => f`
|
2314
2337
|
<div class="message-container">
|
2315
2338
|
<div class="message-content">
|
2316
|
-
<conversation-group .group=${
|
2339
|
+
<conversation-group .group=${e}></conversation-group>
|
2317
2340
|
</div>
|
2318
2341
|
</div>
|
2319
2342
|
`
|
@@ -2324,14 +2347,14 @@ let ft = class extends m {
|
|
2324
2347
|
this.entry.timestamp
|
2325
2348
|
)}
|
2326
2349
|
</div>`;
|
2327
|
-
case
|
2350
|
+
case St.User:
|
2328
2351
|
return f`<div class="conversation-user-message">
|
2329
2352
|
<div class="entry-content">
|
2330
2353
|
${this.entry.messages.map(
|
2331
|
-
(
|
2354
|
+
(e) => f`
|
2332
2355
|
<div class="message-container">
|
2333
2356
|
<div class="message-content">
|
2334
|
-
<conversation-group .group=${
|
2357
|
+
<conversation-group .group=${e}></conversation-group>
|
2335
2358
|
</div>
|
2336
2359
|
</div>
|
2337
2360
|
`
|
@@ -2367,6 +2390,22 @@ ft.styles = [
|
|
2367
2390
|
color: var(--bubble-text-color);
|
2368
2391
|
}
|
2369
2392
|
|
2393
|
+
.conversation-system-message {
|
2394
|
+
display: flex;
|
2395
|
+
flex-direction: column;
|
2396
|
+
justify-content: center;
|
2397
|
+
align-items: center;
|
2398
|
+
}
|
2399
|
+
|
2400
|
+
.conversation-system-message .message-content {
|
2401
|
+
padding: 0;
|
2402
|
+
}
|
2403
|
+
|
2404
|
+
.conversation-system-message span {
|
2405
|
+
color: var(--message-info-color, var(--text-color));
|
2406
|
+
font-size: 0.8rem;
|
2407
|
+
}
|
2408
|
+
|
2370
2409
|
.conversation-user-message {
|
2371
2410
|
--bubble-bg-color: var(--user-bg-color);
|
2372
2411
|
--bubble-text-color: var(--user-text-color);
|
@@ -2432,26 +2471,45 @@ ft.styles = [
|
|
2432
2471
|
}
|
2433
2472
|
`
|
2434
2473
|
];
|
2435
|
-
|
2474
|
+
os([
|
2436
2475
|
$({ attribute: !1 })
|
2437
2476
|
], ft.prototype, "entry", 2);
|
2438
|
-
ft =
|
2477
|
+
ft = os([
|
2439
2478
|
V("conversation-entry")
|
2440
2479
|
], ft);
|
2441
|
-
|
2442
|
-
|
2443
|
-
|
2444
|
-
|
2480
|
+
/**
|
2481
|
+
* @license
|
2482
|
+
* Copyright 2021 Google LLC
|
2483
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
2484
|
+
*/
|
2485
|
+
const nn = (s, t, e) => {
|
2486
|
+
for (const i of t)
|
2487
|
+
if (i[0] === s)
|
2488
|
+
return (0, i[1])();
|
2489
|
+
return e == null ? void 0 : e();
|
2490
|
+
};
|
2491
|
+
var on = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, rs = (s, t, e, i) => {
|
2492
|
+
for (var n = i > 1 ? void 0 : i ? rn(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2493
|
+
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2494
|
+
return i && n && on(t, e, n), n;
|
2445
2495
|
};
|
2446
2496
|
let gt = class extends m {
|
2447
2497
|
render() {
|
2448
2498
|
return f`
|
2449
2499
|
<div class="message-group">
|
2450
2500
|
${this.group.items.map(
|
2451
|
-
([
|
2452
|
-
${
|
2453
|
-
|
2454
|
-
|
2501
|
+
([s, t]) => f`
|
2502
|
+
${nn(
|
2503
|
+
s,
|
2504
|
+
[["html", () => f`<message-type-html .message=${t} />`]],
|
2505
|
+
() => {
|
2506
|
+
const e = customElements.get(s);
|
2507
|
+
if (!e)
|
2508
|
+
return u;
|
2509
|
+
const i = new e();
|
2510
|
+
return f`${i}`;
|
2511
|
+
}
|
2512
|
+
)}
|
2455
2513
|
`
|
2456
2514
|
)}
|
2457
2515
|
</div>
|
@@ -2474,18 +2532,18 @@ gt.styles = [
|
|
2474
2532
|
}
|
2475
2533
|
`
|
2476
2534
|
];
|
2477
|
-
|
2535
|
+
rs([
|
2478
2536
|
$({ attribute: !1 })
|
2479
2537
|
], gt.prototype, "group", 2);
|
2480
|
-
gt =
|
2538
|
+
gt = rs([
|
2481
2539
|
V("conversation-group")
|
2482
2540
|
], gt);
|
2483
|
-
var
|
2484
|
-
for (var n = i > 1 ? void 0 : i ?
|
2485
|
-
(
|
2486
|
-
return i && n &&
|
2541
|
+
var an = Object.defineProperty, ln = Object.getOwnPropertyDescriptor, cn = (s, t, e, i) => {
|
2542
|
+
for (var n = i > 1 ? void 0 : i ? ln(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2543
|
+
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2544
|
+
return i && n && an(t, e, n), n;
|
2487
2545
|
};
|
2488
|
-
let
|
2546
|
+
let jt = class extends m {
|
2489
2547
|
render() {
|
2490
2548
|
return f`<div class="container">
|
2491
2549
|
<div class="dot"></div>
|
@@ -2494,7 +2552,7 @@ let Nt = class extends m {
|
|
2494
2552
|
</div>`;
|
2495
2553
|
}
|
2496
2554
|
};
|
2497
|
-
|
2555
|
+
jt.styles = [
|
2498
2556
|
b`
|
2499
2557
|
:host {
|
2500
2558
|
display: block;
|
@@ -2531,15 +2589,15 @@ Nt.styles = [
|
|
2531
2589
|
}
|
2532
2590
|
`
|
2533
2591
|
];
|
2534
|
-
|
2592
|
+
jt = cn([
|
2535
2593
|
V("ace-typing-state")
|
2536
|
-
],
|
2594
|
+
], jt);
|
2537
2595
|
/**
|
2538
2596
|
* @license
|
2539
2597
|
* Copyright 2017 Google LLC
|
2540
2598
|
* SPDX-License-Identifier: BSD-3-Clause
|
2541
2599
|
*/
|
2542
|
-
class
|
2600
|
+
class It extends Zt {
|
2543
2601
|
constructor(t) {
|
2544
2602
|
if (super(t), this.et = u, t.type !== _t.CHILD)
|
2545
2603
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
@@ -2554,21 +2612,21 @@ class jt extends qt {
|
|
2554
2612
|
if (t === this.et)
|
2555
2613
|
return this.vt;
|
2556
2614
|
this.et = t;
|
2557
|
-
const
|
2558
|
-
return
|
2615
|
+
const e = [t];
|
2616
|
+
return e.raw = e, this.vt = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
2559
2617
|
}
|
2560
2618
|
}
|
2561
|
-
|
2562
|
-
const
|
2563
|
-
var
|
2564
|
-
for (var n = i > 1 ? void 0 : i ?
|
2565
|
-
(
|
2566
|
-
return i && n &&
|
2619
|
+
It.directiveName = "unsafeHTML", It.resultType = 1;
|
2620
|
+
const dn = xt(It);
|
2621
|
+
var hn = Object.defineProperty, pn = Object.getOwnPropertyDescriptor, as = (s, t, e, i) => {
|
2622
|
+
for (var n = i > 1 ? void 0 : i ? pn(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2623
|
+
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2624
|
+
return i && n && hn(t, e, n), n;
|
2567
2625
|
};
|
2568
2626
|
let $t = class extends m {
|
2569
2627
|
render() {
|
2570
2628
|
return f`<div class="message-type-html">
|
2571
|
-
${
|
2629
|
+
${dn(this.message.content)}
|
2572
2630
|
</div>`;
|
2573
2631
|
}
|
2574
2632
|
};
|
@@ -2593,17 +2651,33 @@ as([
|
|
2593
2651
|
$t = as([
|
2594
2652
|
V("message-type-html")
|
2595
2653
|
], $t);
|
2596
|
-
|
2597
|
-
|
2598
|
-
|
2599
|
-
|
2654
|
+
class un {
|
2655
|
+
constructor(t) {
|
2656
|
+
this._message = null, this._host = t, t.addController(this);
|
2657
|
+
}
|
2658
|
+
hostConnected() {
|
2659
|
+
}
|
2660
|
+
set message(t) {
|
2661
|
+
this._message = t, this._host.requestUpdate();
|
2662
|
+
}
|
2663
|
+
get message() {
|
2664
|
+
return this._message;
|
2665
|
+
}
|
2666
|
+
hasMessage() {
|
2667
|
+
return !!this.message;
|
2668
|
+
}
|
2669
|
+
}
|
2670
|
+
var fn = Object.defineProperty, gn = Object.getOwnPropertyDescriptor, At = (s, t, e, i) => {
|
2671
|
+
for (var n = i > 1 ? void 0 : i ? gn(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2672
|
+
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2673
|
+
return i && n && fn(t, e, n), n;
|
2600
2674
|
};
|
2601
|
-
const
|
2602
|
-
|
2675
|
+
const $n = (s) => {
|
2676
|
+
s.scrollTo ? s.scrollTo({ top: s.scrollHeight, behavior: "smooth" }) : s.scrollTop = s.scrollHeight;
|
2603
2677
|
}, ls = is(m);
|
2604
|
-
class
|
2678
|
+
class R extends ls {
|
2605
2679
|
constructor() {
|
2606
|
-
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef = pt(), this.formRef = pt(), this.chatScrollHeight = 0;
|
2680
|
+
super(...arguments), this.toast = new un(this), this.message = "", this.platform = null, this.session = null, this.disabled = !1, this.conversationContentRef = pt(), this.formRef = pt(), this.chatScrollHeight = 0;
|
2607
2681
|
}
|
2608
2682
|
async connectedCallback() {
|
2609
2683
|
super.connectedCallback();
|
@@ -2621,10 +2695,10 @@ class z extends ls {
|
|
2621
2695
|
}, 500);
|
2622
2696
|
return;
|
2623
2697
|
}
|
2624
|
-
const
|
2698
|
+
const e = new CustomEvent("user-submit", {
|
2625
2699
|
detail: { text: this.message }
|
2626
2700
|
});
|
2627
|
-
this.dispatchEvent(
|
2701
|
+
this.dispatchEvent(e), this.message = "";
|
2628
2702
|
}
|
2629
2703
|
_addHeaderOptions() {
|
2630
2704
|
const t = this.application.getComponent("widget-header");
|
@@ -2646,19 +2720,31 @@ class z extends ls {
|
|
2646
2720
|
onSessionUpdated() {
|
2647
2721
|
const t = this.conversationContentRef.value;
|
2648
2722
|
t && setTimeout(() => {
|
2649
|
-
const
|
2650
|
-
|
2723
|
+
const e = t.scrollHeight;
|
2724
|
+
e > this.chatScrollHeight && ($n(t), this.chatScrollHeight = e);
|
2651
2725
|
}, 1e3);
|
2652
2726
|
}
|
2727
|
+
disableInput() {
|
2728
|
+
this.disabled = !0;
|
2729
|
+
}
|
2730
|
+
enableInput() {
|
2731
|
+
this.disabled = !1;
|
2732
|
+
}
|
2733
|
+
setToastMessage(t) {
|
2734
|
+
this.toast.message = t;
|
2735
|
+
}
|
2653
2736
|
render() {
|
2654
2737
|
return f` <div
|
2655
2738
|
@action=${this._actionHandler}
|
2656
|
-
class=${
|
2739
|
+
class=${Xt({
|
2657
2740
|
conversation: !0,
|
2658
|
-
|
2741
|
+
disabled: this.disabled,
|
2742
|
+
"conversation--has-toast": this.toast.hasMessage(),
|
2743
|
+
"conversation--input-has-text": this.message.length > 0
|
2659
2744
|
})}
|
2660
2745
|
>
|
2661
2746
|
<div class="conversation-content" ${ut(this.conversationContentRef)}>
|
2747
|
+
${this.toast.hasMessage() ? f`<div class="conversation__toast">${this.toast.message}</div>` : u}
|
2662
2748
|
${this.session ? f`<ace-conversation-session
|
2663
2749
|
@updated=${this.onSessionUpdated}
|
2664
2750
|
.session=${this.session}
|
@@ -2672,18 +2758,23 @@ class z extends ls {
|
|
2672
2758
|
<input
|
2673
2759
|
placeholder=${this.properties.inputPlaceholder || "Type your message here..."}
|
2674
2760
|
.value=${this.message}
|
2761
|
+
?disabled=${this.disabled}
|
2675
2762
|
@input=${this._inputHandler}
|
2676
2763
|
/>
|
2677
2764
|
<div class="conversation-actions">
|
2678
|
-
<button
|
2679
|
-
|
2765
|
+
<button
|
2766
|
+
class="conversation-send-button"
|
2767
|
+
type="submit"
|
2768
|
+
?disabled=${this.disabled}
|
2769
|
+
>
|
2770
|
+
<telia-icon svg=${Ts.svg}></telia-icon>
|
2680
2771
|
</button>
|
2681
2772
|
</div>
|
2682
2773
|
</form>
|
2683
2774
|
</div>`;
|
2684
2775
|
}
|
2685
2776
|
}
|
2686
|
-
|
2777
|
+
R.styles = [
|
2687
2778
|
ls.styles || [],
|
2688
2779
|
b`
|
2689
2780
|
:host {
|
@@ -2714,6 +2805,9 @@ z.styles = [
|
|
2714
2805
|
--input-text-color: var(--conversation-input-text-color, inherit);
|
2715
2806
|
--conversation-input-bg: var(--conversation-input-bg-color, #fff);
|
2716
2807
|
|
2808
|
+
--toast-bg: #eb5185;
|
2809
|
+
--toast-text-color: white;
|
2810
|
+
|
2717
2811
|
--message-info-color: var(
|
2718
2812
|
--conversation-message-info-color,
|
2719
2813
|
var(--text-color)
|
@@ -2762,18 +2856,25 @@ z.styles = [
|
|
2762
2856
|
height: 100%;
|
2763
2857
|
background-color: transparent;
|
2764
2858
|
}
|
2765
|
-
.conversation.input-has-text {
|
2859
|
+
.conversation.conversation--input-has-text {
|
2766
2860
|
/* --send-icon-color: var(--primary-color); */
|
2767
2861
|
--send-icon-opacity: 1;
|
2768
2862
|
}
|
2863
|
+
.conversation.conversation--has-toast .conversation-content {
|
2864
|
+
border-top-right-radius: 0;
|
2865
|
+
border-top-left-radius: 0;
|
2866
|
+
}
|
2867
|
+
.conversation.disabled .conversation-bottom {
|
2868
|
+
--conversation-input-bg: rgba(255, 255, 255, 0.4);
|
2869
|
+
}
|
2769
2870
|
.conversation-content {
|
2770
2871
|
flex: 1;
|
2771
2872
|
background-color: var(--conversation-bg);
|
2772
|
-
padding: var(--spacing-md);
|
2773
2873
|
overflow-y: auto;
|
2774
2874
|
overflow-x: hidden;
|
2775
2875
|
border-radius: var(--border-radius-sm);
|
2776
2876
|
border: var(--content-border);
|
2877
|
+
position: relative;
|
2777
2878
|
}
|
2778
2879
|
.conversation-bottom {
|
2779
2880
|
border: var(--input-border);
|
@@ -2785,6 +2886,7 @@ z.styles = [
|
|
2785
2886
|
align-items: center;
|
2786
2887
|
padding: 0 var(--spacing-md);
|
2787
2888
|
margin: 0;
|
2889
|
+
transition: background-color 500ms ease-in-out;
|
2788
2890
|
}
|
2789
2891
|
.conversation-bottom.shake {
|
2790
2892
|
animation: 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0s 1 normal both
|
@@ -2797,13 +2899,25 @@ z.styles = [
|
|
2797
2899
|
.conversation-send-button {
|
2798
2900
|
border: none;
|
2799
2901
|
background: transparent;
|
2800
|
-
cursor: pointer;
|
2801
2902
|
color: var(--send-icon-color);
|
2802
2903
|
opacity: var(--send-icon-opacity);
|
2803
2904
|
transition: opacity 200ms ease-in-out;
|
2804
2905
|
}
|
2805
|
-
.conversation-send-button:hover {
|
2906
|
+
.conversation-send-button:not(:disabled):hover {
|
2806
2907
|
--send-icon-opacity: 1;
|
2908
|
+
cursor: pointer;
|
2909
|
+
}
|
2910
|
+
.conversation__toast {
|
2911
|
+
background-color: var(--toast-bg);
|
2912
|
+
color: var(--toast-text-color);
|
2913
|
+
padding: var(--spacing-md);
|
2914
|
+
position: sticky;
|
2915
|
+
top: 0;
|
2916
|
+
left: 0;
|
2917
|
+
right: 0;
|
2918
|
+
font-size: 0.8rem;
|
2919
|
+
text-align: center;
|
2920
|
+
font-weight: 500;
|
2807
2921
|
}
|
2808
2922
|
input {
|
2809
2923
|
border: none;
|
@@ -2817,23 +2931,26 @@ z.styles = [
|
|
2817
2931
|
}
|
2818
2932
|
`
|
2819
2933
|
];
|
2820
|
-
|
2934
|
+
At([
|
2821
2935
|
C()
|
2822
|
-
],
|
2823
|
-
|
2936
|
+
], R.prototype, "message", 2);
|
2937
|
+
At([
|
2824
2938
|
C()
|
2825
|
-
],
|
2826
|
-
|
2939
|
+
], R.prototype, "platform", 2);
|
2940
|
+
At([
|
2827
2941
|
C()
|
2828
|
-
],
|
2829
|
-
|
2942
|
+
], R.prototype, "session", 2);
|
2943
|
+
At([
|
2944
|
+
C()
|
2945
|
+
], R.prototype, "disabled", 2);
|
2946
|
+
const Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2830
2947
|
__proto__: null,
|
2831
|
-
Conversation:
|
2832
|
-
default:
|
2948
|
+
Conversation: R,
|
2949
|
+
default: R
|
2833
2950
|
}, Symbol.toStringTag, { value: "Module" }));
|
2834
2951
|
export {
|
2835
|
-
|
2952
|
+
Cn as c,
|
2836
2953
|
ce as m,
|
2837
|
-
|
2954
|
+
Ts as s,
|
2838
2955
|
de as v
|
2839
2956
|
};
|