@telia-ace/widget-core-flamingo 1.1.81-rc.0 → 1.1.81
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +33 -33
- package/index.mjs +492 -564
- package/package.json +1 -1
- package/index.d.ts +0 -13
package/index.mjs
CHANGED
@@ -1,68 +1,61 @@
|
|
1
|
-
var
|
2
|
-
return
|
1
|
+
var gt = function(r, t) {
|
2
|
+
return gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
3
3
|
e.__proto__ = i;
|
4
4
|
} || function(e, i) {
|
5
|
-
for (var s in i)
|
6
|
-
|
7
|
-
}, ut(r, t);
|
5
|
+
for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
|
6
|
+
}, gt(r, t);
|
8
7
|
};
|
9
|
-
function
|
8
|
+
function Y(r, t) {
|
10
9
|
if (typeof t != "function" && t !== null)
|
11
10
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
12
|
-
|
11
|
+
gt(r, t);
|
13
12
|
function e() {
|
14
13
|
this.constructor = r;
|
15
14
|
}
|
16
15
|
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
17
16
|
}
|
18
|
-
function
|
17
|
+
function mt(r) {
|
19
18
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], i = 0;
|
20
|
-
if (e)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
}
|
27
|
-
};
|
19
|
+
if (e) return e.call(r);
|
20
|
+
if (r && typeof r.length == "number") return {
|
21
|
+
next: function() {
|
22
|
+
return r && i >= r.length && (r = void 0), { value: r && r[i++], done: !r };
|
23
|
+
}
|
24
|
+
};
|
28
25
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
29
26
|
}
|
30
|
-
function
|
27
|
+
function vt(r, t) {
|
31
28
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
32
|
-
if (!e)
|
33
|
-
return r;
|
29
|
+
if (!e) return r;
|
34
30
|
var i = e.call(r), s, n = [], o;
|
35
31
|
try {
|
36
|
-
for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; )
|
37
|
-
n.push(s.value);
|
32
|
+
for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) n.push(s.value);
|
38
33
|
} catch (a) {
|
39
34
|
o = { error: a };
|
40
35
|
} finally {
|
41
36
|
try {
|
42
37
|
s && !s.done && (e = i.return) && e.call(i);
|
43
38
|
} finally {
|
44
|
-
if (o)
|
45
|
-
throw o.error;
|
39
|
+
if (o) throw o.error;
|
46
40
|
}
|
47
41
|
}
|
48
42
|
return n;
|
49
43
|
}
|
50
|
-
function
|
51
|
-
if (e || arguments.length === 2)
|
52
|
-
|
53
|
-
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
44
|
+
function yt(r, t, e) {
|
45
|
+
if (e || arguments.length === 2) for (var i = 0, s = t.length, n; i < s; i++)
|
46
|
+
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
54
47
|
return r.concat(n || Array.prototype.slice.call(t));
|
55
48
|
}
|
56
|
-
function
|
49
|
+
function _(r) {
|
57
50
|
return typeof r == "function";
|
58
51
|
}
|
59
|
-
function
|
52
|
+
function ae(r) {
|
60
53
|
var t = function(i) {
|
61
54
|
Error.call(i), i.stack = new Error().stack;
|
62
55
|
}, e = r(t);
|
63
56
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
64
57
|
}
|
65
|
-
var
|
58
|
+
var ot = ae(function(r) {
|
66
59
|
return function(e) {
|
67
60
|
r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
68
61
|
` + e.map(function(i, s) {
|
@@ -71,13 +64,13 @@ var rt = te(function(r) {
|
|
71
64
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
72
65
|
};
|
73
66
|
});
|
74
|
-
function
|
67
|
+
function bt(r, t) {
|
75
68
|
if (r) {
|
76
69
|
var e = r.indexOf(t);
|
77
70
|
0 <= e && r.splice(e, 1);
|
78
71
|
}
|
79
72
|
}
|
80
|
-
var
|
73
|
+
var rt = function() {
|
81
74
|
function r(t) {
|
82
75
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
83
76
|
}
|
@@ -89,7 +82,7 @@ var tt = function() {
|
|
89
82
|
if (o)
|
90
83
|
if (this._parentage = null, Array.isArray(o))
|
91
84
|
try {
|
92
|
-
for (var a =
|
85
|
+
for (var a = mt(o), c = a.next(); !c.done; c = a.next()) {
|
93
86
|
var h = c.value;
|
94
87
|
h.remove(this);
|
95
88
|
}
|
@@ -99,29 +92,28 @@ var tt = function() {
|
|
99
92
|
try {
|
100
93
|
c && !c.done && (e = a.return) && e.call(a);
|
101
94
|
} finally {
|
102
|
-
if (t)
|
103
|
-
throw t.error;
|
95
|
+
if (t) throw t.error;
|
104
96
|
}
|
105
97
|
}
|
106
98
|
else
|
107
99
|
o.remove(this);
|
108
100
|
var l = this.initialTeardown;
|
109
|
-
if (
|
101
|
+
if (_(l))
|
110
102
|
try {
|
111
103
|
l();
|
112
104
|
} catch (v) {
|
113
|
-
n = v instanceof
|
105
|
+
n = v instanceof ot ? v.errors : [v];
|
114
106
|
}
|
115
107
|
var d = this._finalizers;
|
116
108
|
if (d) {
|
117
109
|
this._finalizers = null;
|
118
110
|
try {
|
119
|
-
for (var p =
|
111
|
+
for (var p = mt(d), f = p.next(); !f.done; f = p.next()) {
|
120
112
|
var g = f.value;
|
121
113
|
try {
|
122
|
-
|
114
|
+
Ut(g);
|
123
115
|
} catch (v) {
|
124
|
-
n = n ?? [], v instanceof
|
116
|
+
n = n ?? [], v instanceof ot ? n = yt(yt([], vt(n)), vt(v.errors)) : n.push(v);
|
125
117
|
}
|
126
118
|
}
|
127
119
|
} catch (v) {
|
@@ -130,19 +122,18 @@ var tt = function() {
|
|
130
122
|
try {
|
131
123
|
f && !f.done && (s = p.return) && s.call(p);
|
132
124
|
} finally {
|
133
|
-
if (i)
|
134
|
-
throw i.error;
|
125
|
+
if (i) throw i.error;
|
135
126
|
}
|
136
127
|
}
|
137
128
|
}
|
138
129
|
if (n)
|
139
|
-
throw new
|
130
|
+
throw new ot(n);
|
140
131
|
}
|
141
132
|
}, r.prototype.add = function(t) {
|
142
133
|
var e;
|
143
134
|
if (t && t !== this)
|
144
135
|
if (this.closed)
|
145
|
-
|
136
|
+
Ut(t);
|
146
137
|
else {
|
147
138
|
if (t instanceof r) {
|
148
139
|
if (t.closed || t._hasParent(this))
|
@@ -159,58 +150,56 @@ var tt = function() {
|
|
159
150
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
160
151
|
}, r.prototype._removeParent = function(t) {
|
161
152
|
var e = this._parentage;
|
162
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
153
|
+
e === t ? this._parentage = null : Array.isArray(e) && bt(e, t);
|
163
154
|
}, r.prototype.remove = function(t) {
|
164
155
|
var e = this._finalizers;
|
165
|
-
e &&
|
156
|
+
e && bt(e, t), t instanceof r && t._removeParent(this);
|
166
157
|
}, r.EMPTY = function() {
|
167
158
|
var t = new r();
|
168
159
|
return t.closed = !0, t;
|
169
160
|
}(), r;
|
170
|
-
}(),
|
171
|
-
function
|
172
|
-
return r instanceof
|
161
|
+
}(), ce = rt.EMPTY;
|
162
|
+
function he(r) {
|
163
|
+
return r instanceof rt || r && "closed" in r && _(r.remove) && _(r.add) && _(r.unsubscribe);
|
173
164
|
}
|
174
|
-
function
|
175
|
-
|
165
|
+
function Ut(r) {
|
166
|
+
_(r) ? r() : r.unsubscribe();
|
176
167
|
}
|
177
|
-
var
|
168
|
+
var le = {
|
178
169
|
onUnhandledError: null,
|
179
170
|
onStoppedNotification: null,
|
180
171
|
Promise: void 0,
|
181
172
|
useDeprecatedSynchronousErrorHandling: !1,
|
182
173
|
useDeprecatedNextContext: !1
|
183
|
-
},
|
174
|
+
}, Se = {
|
184
175
|
setTimeout: function(r, t) {
|
185
176
|
for (var e = [], i = 2; i < arguments.length; i++)
|
186
177
|
e[i - 2] = arguments[i];
|
187
|
-
|
188
|
-
return s != null && s.setTimeout ? s.setTimeout.apply(s, J([r, t], Z(e))) : setTimeout.apply(void 0, J([r, t], Z(e)));
|
178
|
+
return setTimeout.apply(void 0, yt([r, t], vt(e)));
|
189
179
|
},
|
190
180
|
clearTimeout: function(r) {
|
191
|
-
|
192
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(r);
|
181
|
+
return clearTimeout(r);
|
193
182
|
},
|
194
183
|
delegate: void 0
|
195
184
|
};
|
196
|
-
function
|
197
|
-
|
185
|
+
function Ee(r) {
|
186
|
+
Se.setTimeout(function() {
|
198
187
|
throw r;
|
199
188
|
});
|
200
189
|
}
|
201
|
-
function
|
190
|
+
function Lt() {
|
202
191
|
}
|
203
|
-
function
|
192
|
+
function J(r) {
|
204
193
|
r();
|
205
194
|
}
|
206
|
-
var
|
207
|
-
|
195
|
+
var de = function(r) {
|
196
|
+
Y(t, r);
|
208
197
|
function t(e) {
|
209
198
|
var i = r.call(this) || this;
|
210
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
199
|
+
return i.isStopped = !1, e ? (i.destination = e, he(e) && e.add(i)) : i.destination = Ie, i;
|
211
200
|
}
|
212
201
|
return t.create = function(e, i, s) {
|
213
|
-
return new
|
202
|
+
return new wt(e, i, s);
|
214
203
|
}, t.prototype.next = function(e) {
|
215
204
|
this.isStopped || this._next(e);
|
216
205
|
}, t.prototype.error = function(e) {
|
@@ -234,11 +223,11 @@ var re = function(r) {
|
|
234
223
|
this.unsubscribe();
|
235
224
|
}
|
236
225
|
}, t;
|
237
|
-
}(
|
238
|
-
function
|
239
|
-
return
|
226
|
+
}(rt), Pe = Function.prototype.bind;
|
227
|
+
function at(r, t) {
|
228
|
+
return Pe.call(r, t);
|
240
229
|
}
|
241
|
-
var
|
230
|
+
var Oe = function() {
|
242
231
|
function r(t) {
|
243
232
|
this.partialObserver = t;
|
244
233
|
}
|
@@ -248,7 +237,7 @@ var Ce = function() {
|
|
248
237
|
try {
|
249
238
|
e.next(t);
|
250
239
|
} catch (i) {
|
251
|
-
|
240
|
+
Z(i);
|
252
241
|
}
|
253
242
|
}, r.prototype.error = function(t) {
|
254
243
|
var e = this.partialObserver;
|
@@ -256,24 +245,24 @@ var Ce = function() {
|
|
256
245
|
try {
|
257
246
|
e.error(t);
|
258
247
|
} catch (i) {
|
259
|
-
|
248
|
+
Z(i);
|
260
249
|
}
|
261
250
|
else
|
262
|
-
|
251
|
+
Z(t);
|
263
252
|
}, r.prototype.complete = function() {
|
264
253
|
var t = this.partialObserver;
|
265
254
|
if (t.complete)
|
266
255
|
try {
|
267
256
|
t.complete();
|
268
257
|
} catch (e) {
|
269
|
-
|
258
|
+
Z(e);
|
270
259
|
}
|
271
260
|
}, r;
|
272
|
-
}(),
|
273
|
-
|
261
|
+
}(), wt = function(r) {
|
262
|
+
Y(t, r);
|
274
263
|
function t(e, i, s) {
|
275
264
|
var n = r.call(this) || this, o;
|
276
|
-
if (
|
265
|
+
if (_(e) || !e)
|
277
266
|
o = {
|
278
267
|
next: e ?? void 0,
|
279
268
|
error: i ?? void 0,
|
@@ -281,43 +270,43 @@ var Ce = function() {
|
|
281
270
|
};
|
282
271
|
else {
|
283
272
|
var a;
|
284
|
-
n &&
|
273
|
+
n && le.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
285
274
|
return n.unsubscribe();
|
286
275
|
}, o = {
|
287
|
-
next: e.next &&
|
288
|
-
error: e.error &&
|
289
|
-
complete: e.complete &&
|
276
|
+
next: e.next && at(e.next, a),
|
277
|
+
error: e.error && at(e.error, a),
|
278
|
+
complete: e.complete && at(e.complete, a)
|
290
279
|
}) : o = e;
|
291
280
|
}
|
292
|
-
return n.destination = new
|
281
|
+
return n.destination = new Oe(o), n;
|
293
282
|
}
|
294
283
|
return t;
|
295
|
-
}(
|
296
|
-
function
|
297
|
-
|
284
|
+
}(de);
|
285
|
+
function Z(r) {
|
286
|
+
Ee(r);
|
298
287
|
}
|
299
|
-
function
|
288
|
+
function ke(r) {
|
300
289
|
throw r;
|
301
290
|
}
|
302
|
-
var
|
291
|
+
var Ie = {
|
303
292
|
closed: !0,
|
304
|
-
next:
|
305
|
-
error:
|
306
|
-
complete:
|
307
|
-
},
|
293
|
+
next: Lt,
|
294
|
+
error: ke,
|
295
|
+
complete: Lt
|
296
|
+
}, Te = function() {
|
308
297
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
309
298
|
}();
|
310
|
-
function
|
299
|
+
function Re(r) {
|
311
300
|
return r;
|
312
301
|
}
|
313
|
-
function
|
314
|
-
return r.length === 0 ?
|
302
|
+
function Me(r) {
|
303
|
+
return r.length === 0 ? Re : r.length === 1 ? r[0] : function(e) {
|
315
304
|
return r.reduce(function(i, s) {
|
316
305
|
return s(i);
|
317
306
|
}, e);
|
318
307
|
};
|
319
308
|
}
|
320
|
-
var
|
309
|
+
var jt = function() {
|
321
310
|
function r(t) {
|
322
311
|
t && (this._subscribe = t);
|
323
312
|
}
|
@@ -325,8 +314,8 @@ var It = function() {
|
|
325
314
|
var e = new r();
|
326
315
|
return e.source = this, e.operator = t, e;
|
327
316
|
}, r.prototype.subscribe = function(t, e, i) {
|
328
|
-
var s = this, n =
|
329
|
-
return
|
317
|
+
var s = this, n = Ue(t) ? t : new wt(t, e, i);
|
318
|
+
return J(function() {
|
330
319
|
var o = s, a = o.operator, c = o.source;
|
331
320
|
n.add(a ? a.call(n, c) : c ? s._subscribe(n) : s._trySubscribe(n));
|
332
321
|
}), n;
|
@@ -338,8 +327,8 @@ var It = function() {
|
|
338
327
|
}
|
339
328
|
}, r.prototype.forEach = function(t, e) {
|
340
329
|
var i = this;
|
341
|
-
return e =
|
342
|
-
var o = new
|
330
|
+
return e = Ht(e), new e(function(s, n) {
|
331
|
+
var o = new wt({
|
343
332
|
next: function(a) {
|
344
333
|
try {
|
345
334
|
t(a);
|
@@ -355,15 +344,15 @@ var It = function() {
|
|
355
344
|
}, r.prototype._subscribe = function(t) {
|
356
345
|
var e;
|
357
346
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
358
|
-
}, r.prototype[
|
347
|
+
}, r.prototype[Te] = function() {
|
359
348
|
return this;
|
360
349
|
}, r.prototype.pipe = function() {
|
361
350
|
for (var t = [], e = 0; e < arguments.length; e++)
|
362
351
|
t[e] = arguments[e];
|
363
|
-
return
|
352
|
+
return Me(t)(this);
|
364
353
|
}, r.prototype.toPromise = function(t) {
|
365
354
|
var e = this;
|
366
|
-
return t =
|
355
|
+
return t = Ht(t), new t(function(i, s) {
|
367
356
|
var n;
|
368
357
|
e.subscribe(function(o) {
|
369
358
|
return n = o;
|
@@ -377,40 +366,40 @@ var It = function() {
|
|
377
366
|
return new r(t);
|
378
367
|
}, r;
|
379
368
|
}();
|
380
|
-
function
|
369
|
+
function Ht(r) {
|
381
370
|
var t;
|
382
|
-
return (t = r ??
|
371
|
+
return (t = r ?? le.Promise) !== null && t !== void 0 ? t : Promise;
|
383
372
|
}
|
384
|
-
function
|
385
|
-
return r &&
|
373
|
+
function Ne(r) {
|
374
|
+
return r && _(r.next) && _(r.error) && _(r.complete);
|
386
375
|
}
|
387
|
-
function
|
388
|
-
return r && r instanceof
|
376
|
+
function Ue(r) {
|
377
|
+
return r && r instanceof de || Ne(r) && he(r);
|
389
378
|
}
|
390
|
-
var
|
379
|
+
var Le = ae(function(r) {
|
391
380
|
return function() {
|
392
381
|
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
393
382
|
};
|
394
|
-
}),
|
395
|
-
|
383
|
+
}), At = function(r) {
|
384
|
+
Y(t, r);
|
396
385
|
function t() {
|
397
386
|
var e = r.call(this) || this;
|
398
387
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
399
388
|
}
|
400
389
|
return t.prototype.lift = function(e) {
|
401
|
-
var i = new
|
390
|
+
var i = new Bt(this, this);
|
402
391
|
return i.operator = e, i;
|
403
392
|
}, t.prototype._throwIfClosed = function() {
|
404
393
|
if (this.closed)
|
405
|
-
throw new
|
394
|
+
throw new Le();
|
406
395
|
}, t.prototype.next = function(e) {
|
407
396
|
var i = this;
|
408
|
-
|
397
|
+
J(function() {
|
409
398
|
var s, n;
|
410
399
|
if (i._throwIfClosed(), !i.isStopped) {
|
411
400
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
412
401
|
try {
|
413
|
-
for (var o =
|
402
|
+
for (var o = mt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
414
403
|
var c = a.value;
|
415
404
|
c.next(e);
|
416
405
|
}
|
@@ -420,15 +409,14 @@ var ke = te(function(r) {
|
|
420
409
|
try {
|
421
410
|
a && !a.done && (n = o.return) && n.call(o);
|
422
411
|
} finally {
|
423
|
-
if (s)
|
424
|
-
throw s.error;
|
412
|
+
if (s) throw s.error;
|
425
413
|
}
|
426
414
|
}
|
427
415
|
}
|
428
416
|
});
|
429
417
|
}, t.prototype.error = function(e) {
|
430
418
|
var i = this;
|
431
|
-
|
419
|
+
J(function() {
|
432
420
|
if (i._throwIfClosed(), !i.isStopped) {
|
433
421
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
434
422
|
for (var s = i.observers; s.length; )
|
@@ -437,7 +425,7 @@ var ke = te(function(r) {
|
|
437
425
|
});
|
438
426
|
}, t.prototype.complete = function() {
|
439
427
|
var e = this;
|
440
|
-
|
428
|
+
J(function() {
|
441
429
|
if (e._throwIfClosed(), !e.isStopped) {
|
442
430
|
e.isStopped = !0;
|
443
431
|
for (var i = e.observers; i.length; )
|
@@ -459,20 +447,20 @@ var ke = te(function(r) {
|
|
459
447
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
460
448
|
}, t.prototype._innerSubscribe = function(e) {
|
461
449
|
var i = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
|
462
|
-
return n || o ?
|
463
|
-
i.currentObservers = null,
|
450
|
+
return n || o ? ce : (this.currentObservers = null, a.push(e), new rt(function() {
|
451
|
+
i.currentObservers = null, bt(a, e);
|
464
452
|
}));
|
465
453
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
466
454
|
var i = this, s = i.hasError, n = i.thrownError, o = i.isStopped;
|
467
455
|
s ? e.error(n) : o && e.complete();
|
468
456
|
}, t.prototype.asObservable = function() {
|
469
|
-
var e = new
|
457
|
+
var e = new jt();
|
470
458
|
return e.source = this, e;
|
471
459
|
}, t.create = function(e, i) {
|
472
|
-
return new
|
460
|
+
return new Bt(e, i);
|
473
461
|
}, t;
|
474
|
-
}(
|
475
|
-
|
462
|
+
}(jt), Bt = function(r) {
|
463
|
+
Y(t, r);
|
476
464
|
function t(e, i) {
|
477
465
|
var s = r.call(this) || this;
|
478
466
|
return s.destination = e, s.source = i, s;
|
@@ -488,10 +476,10 @@ var ke = te(function(r) {
|
|
488
476
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
489
477
|
}, t.prototype._subscribe = function(e) {
|
490
478
|
var i, s;
|
491
|
-
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s :
|
479
|
+
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : ce;
|
492
480
|
}, t;
|
493
|
-
}(
|
494
|
-
|
481
|
+
}(At), pe = function(r) {
|
482
|
+
Y(t, r);
|
495
483
|
function t(e) {
|
496
484
|
var i = r.call(this) || this;
|
497
485
|
return i._value = e, i;
|
@@ -513,10 +501,10 @@ var ke = te(function(r) {
|
|
513
501
|
}, t.prototype.next = function(e) {
|
514
502
|
r.prototype.next.call(this, this._value = e);
|
515
503
|
}, t;
|
516
|
-
}(
|
517
|
-
class
|
504
|
+
}(At), ue = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(ue || {});
|
505
|
+
class Dt {
|
518
506
|
constructor(t, e) {
|
519
|
-
this.state = new
|
507
|
+
this.state = new pe(
|
520
508
|
"loading"
|
521
509
|
/* Loading */
|
522
510
|
), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
|
@@ -539,19 +527,18 @@ class Mt {
|
|
539
527
|
* Copyright 2019 Google LLC
|
540
528
|
* SPDX-License-Identifier: BSD-3-Clause
|
541
529
|
*/
|
542
|
-
const
|
543
|
-
let
|
530
|
+
const G = globalThis, xt = G.ShadowRoot && (G.ShadyCSS === void 0 || G.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ct = Symbol(), zt = /* @__PURE__ */ new WeakMap();
|
531
|
+
let fe = class {
|
544
532
|
constructor(t, e, i) {
|
545
|
-
if (this._$cssResult$ = !0, i !==
|
546
|
-
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
533
|
+
if (this._$cssResult$ = !0, i !== Ct) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
547
534
|
this.cssText = t, this.t = e;
|
548
535
|
}
|
549
536
|
get styleSheet() {
|
550
537
|
let t = this.o;
|
551
538
|
const e = this.t;
|
552
|
-
if (
|
539
|
+
if (xt && t === void 0) {
|
553
540
|
const i = e !== void 0 && e.length === 1;
|
554
|
-
i && (t =
|
541
|
+
i && (t = zt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && zt.set(e, t));
|
555
542
|
}
|
556
543
|
return t;
|
557
544
|
}
|
@@ -559,38 +546,33 @@ let ae = class {
|
|
559
546
|
return this.cssText;
|
560
547
|
}
|
561
548
|
};
|
562
|
-
const
|
549
|
+
const je = (r) => new fe(typeof r == "string" ? r : r + "", void 0, Ct), N = (r, ...t) => {
|
563
550
|
const e = r.length === 1 ? r[0] : t.reduce((i, s, n) => i + ((o) => {
|
564
|
-
if (o._$cssResult$ === !0)
|
565
|
-
|
566
|
-
if (typeof o == "number")
|
567
|
-
return o;
|
551
|
+
if (o._$cssResult$ === !0) return o.cssText;
|
552
|
+
if (typeof o == "number") return o;
|
568
553
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
569
554
|
})(s) + r[n + 1], r[0]);
|
570
|
-
return new
|
571
|
-
},
|
572
|
-
if (
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
}
|
579
|
-
}, Ut = $t ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
555
|
+
return new fe(e, r, Ct);
|
556
|
+
}, He = (r, t) => {
|
557
|
+
if (xt) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
558
|
+
else for (const e of t) {
|
559
|
+
const i = document.createElement("style"), s = G.litNonce;
|
560
|
+
s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
|
561
|
+
}
|
562
|
+
}, Ft = xt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
580
563
|
let e = "";
|
581
|
-
for (const i of t.cssRules)
|
582
|
-
|
583
|
-
return Me(e);
|
564
|
+
for (const i of t.cssRules) e += i.cssText;
|
565
|
+
return je(e);
|
584
566
|
})(r) : r;
|
585
567
|
/**
|
586
568
|
* @license
|
587
569
|
* Copyright 2017 Google LLC
|
588
570
|
* SPDX-License-Identifier: BSD-3-Clause
|
589
571
|
*/
|
590
|
-
const { is:
|
572
|
+
const { is: Be, defineProperty: De, getOwnPropertyDescriptor: ze, getOwnPropertyNames: Fe, getOwnPropertySymbols: Ve, getPrototypeOf: We } = Object, C = globalThis, Vt = C.trustedTypes, Ye = Vt ? Vt.emptyScript : "", ct = C.reactiveElementPolyfillSupport, j = (r, t) => r, X = { toAttribute(r, t) {
|
591
573
|
switch (t) {
|
592
574
|
case Boolean:
|
593
|
-
r = r ?
|
575
|
+
r = r ? Ye : null;
|
594
576
|
break;
|
595
577
|
case Object:
|
596
578
|
case Array:
|
@@ -615,7 +597,7 @@ const { is: Ue, defineProperty: je, getOwnPropertyDescriptor: Le, getOwnProperty
|
|
615
597
|
}
|
616
598
|
}
|
617
599
|
return e;
|
618
|
-
} },
|
600
|
+
} }, St = (r, t) => !Be(r, t), Wt = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: St };
|
619
601
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
620
602
|
let I = class extends HTMLElement {
|
621
603
|
static addInitializer(t) {
|
@@ -624,14 +606,14 @@ let I = class extends HTMLElement {
|
|
624
606
|
static get observedAttributes() {
|
625
607
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
626
608
|
}
|
627
|
-
static createProperty(t, e =
|
609
|
+
static createProperty(t, e = Wt) {
|
628
610
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
629
611
|
const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
|
630
|
-
s !== void 0 &&
|
612
|
+
s !== void 0 && De(this.prototype, t, s);
|
631
613
|
}
|
632
614
|
}
|
633
615
|
static getPropertyDescriptor(t, e, i) {
|
634
|
-
const { get: s, set: n } =
|
616
|
+
const { get: s, set: n } = ze(this.prototype, t) ?? { get() {
|
635
617
|
return this[e];
|
636
618
|
}, set(o) {
|
637
619
|
this[e] = o;
|
@@ -644,28 +626,23 @@ let I = class extends HTMLElement {
|
|
644
626
|
}, configurable: !0, enumerable: !0 };
|
645
627
|
}
|
646
628
|
static getPropertyOptions(t) {
|
647
|
-
return this.elementProperties.get(t) ??
|
629
|
+
return this.elementProperties.get(t) ?? Wt;
|
648
630
|
}
|
649
631
|
static _$Ei() {
|
650
|
-
if (this.hasOwnProperty(j("elementProperties")))
|
651
|
-
|
652
|
-
const t = De(this);
|
632
|
+
if (this.hasOwnProperty(j("elementProperties"))) return;
|
633
|
+
const t = We(this);
|
653
634
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
654
635
|
}
|
655
636
|
static finalize() {
|
656
|
-
if (this.hasOwnProperty(j("finalized")))
|
657
|
-
return;
|
637
|
+
if (this.hasOwnProperty(j("finalized"))) return;
|
658
638
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(j("properties"))) {
|
659
|
-
const e = this.properties, i = [...
|
660
|
-
for (const s of i)
|
661
|
-
this.createProperty(s, e[s]);
|
639
|
+
const e = this.properties, i = [...Fe(e), ...Ve(e)];
|
640
|
+
for (const s of i) this.createProperty(s, e[s]);
|
662
641
|
}
|
663
642
|
const t = this[Symbol.metadata];
|
664
643
|
if (t !== null) {
|
665
644
|
const e = litPropertyMetadata.get(t);
|
666
|
-
if (e !== void 0)
|
667
|
-
for (const [i, s] of e)
|
668
|
-
this.elementProperties.set(i, s);
|
645
|
+
if (e !== void 0) for (const [i, s] of e) this.elementProperties.set(i, s);
|
669
646
|
}
|
670
647
|
this._$Eh = /* @__PURE__ */ new Map();
|
671
648
|
for (const [e, i] of this.elementProperties) {
|
@@ -678,10 +655,8 @@ let I = class extends HTMLElement {
|
|
678
655
|
const e = [];
|
679
656
|
if (Array.isArray(t)) {
|
680
657
|
const i = new Set(t.flat(1 / 0).reverse());
|
681
|
-
for (const s of i)
|
682
|
-
|
683
|
-
} else
|
684
|
-
t !== void 0 && e.push(Ut(t));
|
658
|
+
for (const s of i) e.unshift(Ft(s));
|
659
|
+
} else t !== void 0 && e.push(Ft(t));
|
685
660
|
return e;
|
686
661
|
}
|
687
662
|
static _$Eu(t, e) {
|
@@ -705,13 +680,12 @@ let I = class extends HTMLElement {
|
|
705
680
|
}
|
706
681
|
_$E_() {
|
707
682
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
708
|
-
for (const i of e.keys())
|
709
|
-
this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
683
|
+
for (const i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
710
684
|
t.size > 0 && (this._$Ep = t);
|
711
685
|
}
|
712
686
|
createRenderRoot() {
|
713
687
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
714
|
-
return
|
688
|
+
return He(t, this.constructor.elementStyles), t;
|
715
689
|
}
|
716
690
|
connectedCallback() {
|
717
691
|
var t;
|
@@ -736,7 +710,7 @@ let I = class extends HTMLElement {
|
|
736
710
|
var n;
|
737
711
|
const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
|
738
712
|
if (s !== void 0 && i.reflect === !0) {
|
739
|
-
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter :
|
713
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : X).toAttribute(e, i.type);
|
740
714
|
this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
|
741
715
|
}
|
742
716
|
}
|
@@ -744,14 +718,13 @@ let I = class extends HTMLElement {
|
|
744
718
|
var n;
|
745
719
|
const i = this.constructor, s = i._$Eh.get(t);
|
746
720
|
if (s !== void 0 && this._$Em !== s) {
|
747
|
-
const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter :
|
721
|
+
const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : X;
|
748
722
|
this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
|
749
723
|
}
|
750
724
|
}
|
751
725
|
requestUpdate(t, e, i) {
|
752
726
|
if (t !== void 0) {
|
753
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
754
|
-
return;
|
727
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? St)(this[t], e)) return;
|
755
728
|
this.P(t, e, i);
|
756
729
|
}
|
757
730
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
@@ -774,18 +747,14 @@ let I = class extends HTMLElement {
|
|
774
747
|
}
|
775
748
|
performUpdate() {
|
776
749
|
var i;
|
777
|
-
if (!this.isUpdatePending)
|
778
|
-
return;
|
750
|
+
if (!this.isUpdatePending) return;
|
779
751
|
if (!this.hasUpdated) {
|
780
752
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
781
|
-
for (const [n, o] of this._$Ep)
|
782
|
-
this[n] = o;
|
753
|
+
for (const [n, o] of this._$Ep) this[n] = o;
|
783
754
|
this._$Ep = void 0;
|
784
755
|
}
|
785
756
|
const s = this.constructor.elementProperties;
|
786
|
-
if (s.size > 0)
|
787
|
-
for (const [n, o] of s)
|
788
|
-
o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
|
757
|
+
if (s.size > 0) for (const [n, o] of s) o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
|
789
758
|
}
|
790
759
|
let t = !1;
|
791
760
|
const e = this._$AL;
|
@@ -828,69 +797,60 @@ let I = class extends HTMLElement {
|
|
828
797
|
firstUpdated(t) {
|
829
798
|
}
|
830
799
|
};
|
831
|
-
I.elementStyles = [], I.shadowRootOptions = { mode: "open" }, I[j("elementProperties")] = /* @__PURE__ */ new Map(), I[j("finalized")] = /* @__PURE__ */ new Map(),
|
800
|
+
I.elementStyles = [], I.shadowRootOptions = { mode: "open" }, I[j("elementProperties")] = /* @__PURE__ */ new Map(), I[j("finalized")] = /* @__PURE__ */ new Map(), ct == null || ct({ ReactiveElement: I }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.0.4");
|
832
801
|
/**
|
833
802
|
* @license
|
834
803
|
* Copyright 2017 Google LLC
|
835
804
|
* SPDX-License-Identifier: BSD-3-Clause
|
836
805
|
*/
|
837
|
-
const
|
838
|
-
\f\r]`,
|
839
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
840
|
-
function
|
841
|
-
if (!
|
842
|
-
|
843
|
-
return Ht !== void 0 ? Ht.createHTML(t) : t;
|
806
|
+
const H = globalThis, Q = H.trustedTypes, Yt = Q ? Q.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ge = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, me = "?" + x, qe = `<${me}>`, O = document, D = () => O.createComment(""), z = (r) => r === null || typeof r != "object" && typeof r != "function", Et = Array.isArray, Ke = (r) => Et(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ht = `[
|
807
|
+
\f\r]`, L = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Kt = />/g, S = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
|
808
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Zt = /'/g, Jt = /"/g, ve = /^(?:script|style|textarea|title)$/i, Ze = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), T = Ze(1), k = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Gt = /* @__PURE__ */ new WeakMap(), P = O.createTreeWalker(O, 129);
|
809
|
+
function ye(r, t) {
|
810
|
+
if (!Et(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
811
|
+
return Yt !== void 0 ? Yt.createHTML(t) : t;
|
844
812
|
}
|
845
|
-
const
|
813
|
+
const Je = (r, t) => {
|
846
814
|
const e = r.length - 1, i = [];
|
847
|
-
let s, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o =
|
815
|
+
let s, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = L;
|
848
816
|
for (let a = 0; a < e; a++) {
|
849
817
|
const c = r[a];
|
850
818
|
let h, l, d = -1, p = 0;
|
851
|
-
for (; p < c.length && (o.lastIndex = p, l = o.exec(c), l !== null); )
|
852
|
-
p = o.lastIndex, o === U ? l[1] === "!--" ? o = Bt : l[1] !== void 0 ? o = Dt : l[2] !== void 0 ? (le.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = S) : l[3] !== void 0 && (o = S) : o === S ? l[0] === ">" ? (o = s ?? U, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? S : l[3] === '"' ? Wt : zt) : o === Wt || o === zt ? o = S : o === Bt || o === Dt ? o = U : (o = S, s = void 0);
|
819
|
+
for (; p < c.length && (o.lastIndex = p, l = o.exec(c), l !== null); ) p = o.lastIndex, o === L ? l[1] === "!--" ? o = qt : l[1] !== void 0 ? o = Kt : l[2] !== void 0 ? (ve.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = S) : l[3] !== void 0 && (o = S) : o === S ? l[0] === ">" ? (o = s ?? L, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? S : l[3] === '"' ? Jt : Zt) : o === Jt || o === Zt ? o = S : o === qt || o === Kt ? o = L : (o = S, s = void 0);
|
853
820
|
const f = o === S && r[a + 1].startsWith("/>") ? " " : "";
|
854
|
-
n += o ===
|
821
|
+
n += o === L ? c + qe : d >= 0 ? (i.push(h), c.slice(0, d) + ge + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
|
855
822
|
}
|
856
|
-
return [
|
823
|
+
return [ye(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
857
824
|
};
|
858
|
-
let
|
825
|
+
let $t = class be {
|
859
826
|
constructor({ strings: t, _$litType$: e }, i) {
|
860
827
|
let s;
|
861
828
|
this.parts = [];
|
862
829
|
let n = 0, o = 0;
|
863
|
-
const a = t.length - 1, c = this.parts, [h, l] =
|
864
|
-
if (this.el =
|
830
|
+
const a = t.length - 1, c = this.parts, [h, l] = Je(t, e);
|
831
|
+
if (this.el = be.createElement(h, i), P.currentNode = this.el.content, e === 2 || e === 3) {
|
865
832
|
const d = this.el.content.firstChild;
|
866
833
|
d.replaceWith(...d.childNodes);
|
867
834
|
}
|
868
835
|
for (; (s = P.nextNode()) !== null && c.length < a; ) {
|
869
836
|
if (s.nodeType === 1) {
|
870
|
-
if (s.hasAttributes())
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
} else
|
876
|
-
d.startsWith(x) && (c.push({ type: 6, index: n }), s.removeAttribute(d));
|
877
|
-
if (le.test(s.tagName)) {
|
837
|
+
if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(ge)) {
|
838
|
+
const p = l[o++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(p);
|
839
|
+
c.push({ type: 1, index: n, name: g[2], strings: f, ctor: g[1] === "." ? Xe : g[1] === "?" ? Qe : g[1] === "@" ? ti : nt }), s.removeAttribute(d);
|
840
|
+
} else d.startsWith(x) && (c.push({ type: 6, index: n }), s.removeAttribute(d));
|
841
|
+
if (ve.test(s.tagName)) {
|
878
842
|
const d = s.textContent.split(x), p = d.length - 1;
|
879
843
|
if (p > 0) {
|
880
|
-
s.textContent =
|
881
|
-
for (let f = 0; f < p; f++)
|
882
|
-
|
883
|
-
s.append(d[p], B());
|
844
|
+
s.textContent = Q ? Q.emptyScript : "";
|
845
|
+
for (let f = 0; f < p; f++) s.append(d[f], D()), P.nextNode(), c.push({ type: 2, index: ++n });
|
846
|
+
s.append(d[p], D());
|
884
847
|
}
|
885
848
|
}
|
886
|
-
} else if (s.nodeType === 8)
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
for (; (d = s.data.indexOf(x, d + 1)) !== -1; )
|
892
|
-
c.push({ type: 7, index: n }), d += x.length - 1;
|
893
|
-
}
|
849
|
+
} else if (s.nodeType === 8) if (s.data === me) c.push({ type: 2, index: n });
|
850
|
+
else {
|
851
|
+
let d = -1;
|
852
|
+
for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: n }), d += x.length - 1;
|
853
|
+
}
|
894
854
|
n++;
|
895
855
|
}
|
896
856
|
}
|
@@ -899,15 +859,14 @@ let yt = class pe {
|
|
899
859
|
return i.innerHTML = t, i;
|
900
860
|
}
|
901
861
|
};
|
902
|
-
function
|
862
|
+
function R(r, t, e = r, i) {
|
903
863
|
var o, a;
|
904
|
-
if (t ===
|
905
|
-
return t;
|
864
|
+
if (t === k) return t;
|
906
865
|
let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
907
|
-
const n =
|
908
|
-
return (s == null ? void 0 : s.constructor) !== n && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), n === void 0 ? s = void 0 : (s = new n(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t =
|
866
|
+
const n = z(t) ? void 0 : t._$litDirective$;
|
867
|
+
return (s == null ? void 0 : s.constructor) !== n && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), n === void 0 ? s = void 0 : (s = new n(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = R(r, s._$AS(r, t.values), s, i)), t;
|
909
868
|
}
|
910
|
-
class
|
869
|
+
class Ge {
|
911
870
|
constructor(t, e) {
|
912
871
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
913
872
|
}
|
@@ -924,7 +883,7 @@ class qe {
|
|
924
883
|
for (; c !== void 0; ) {
|
925
884
|
if (o === c.index) {
|
926
885
|
let h;
|
927
|
-
c.type === 2 ? h = new
|
886
|
+
c.type === 2 ? h = new q(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new ei(n, this, t)), this._$AV.push(h), c = i[++a];
|
928
887
|
}
|
929
888
|
o !== (c == null ? void 0 : c.index) && (n = P.nextNode(), o++);
|
930
889
|
}
|
@@ -932,11 +891,10 @@ class qe {
|
|
932
891
|
}
|
933
892
|
p(t) {
|
934
893
|
let e = 0;
|
935
|
-
for (const i of this._$AV)
|
936
|
-
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
894
|
+
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
937
895
|
}
|
938
896
|
}
|
939
|
-
class
|
897
|
+
class q {
|
940
898
|
get _$AU() {
|
941
899
|
var t;
|
942
900
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
@@ -956,7 +914,7 @@ class W {
|
|
956
914
|
return this._$AB;
|
957
915
|
}
|
958
916
|
_$AI(t, e = this) {
|
959
|
-
t =
|
917
|
+
t = R(this, t, e), z(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== k && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ke(t) ? this.k(t) : this._(t);
|
960
918
|
}
|
961
919
|
O(t) {
|
962
920
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -965,28 +923,26 @@ class W {
|
|
965
923
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
966
924
|
}
|
967
925
|
_(t) {
|
968
|
-
this._$AH !== u &&
|
926
|
+
this._$AH !== u && z(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
|
969
927
|
}
|
970
928
|
$(t) {
|
971
929
|
var n;
|
972
|
-
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
973
|
-
if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
|
974
|
-
this._$AH.p(e);
|
930
|
+
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = $t.createElement(ye(i.h, i.h[0]), this.options)), i);
|
931
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === s) this._$AH.p(e);
|
975
932
|
else {
|
976
|
-
const o = new
|
933
|
+
const o = new Ge(s, this), a = o.u(this.options);
|
977
934
|
o.p(e), this.T(a), this._$AH = o;
|
978
935
|
}
|
979
936
|
}
|
980
937
|
_$AC(t) {
|
981
|
-
let e =
|
982
|
-
return e === void 0 &&
|
938
|
+
let e = Gt.get(t.strings);
|
939
|
+
return e === void 0 && Gt.set(t.strings, e = new $t(t)), e;
|
983
940
|
}
|
984
941
|
k(t) {
|
985
|
-
|
942
|
+
Et(this._$AH) || (this._$AH = [], this._$AR());
|
986
943
|
const e = this._$AH;
|
987
944
|
let i, s = 0;
|
988
|
-
for (const n of t)
|
989
|
-
s === e.length ? e.push(i = new W(this.O(B()), this.O(B()), this, this.options)) : i = e[s], i._$AI(n), s++;
|
945
|
+
for (const n of t) s === e.length ? e.push(i = new q(this.O(D()), this.O(D()), this, this.options)) : i = e[s], i._$AI(n), s++;
|
990
946
|
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
991
947
|
}
|
992
948
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -1001,7 +957,7 @@ class W {
|
|
1001
957
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
1002
958
|
}
|
1003
959
|
}
|
1004
|
-
class
|
960
|
+
class nt {
|
1005
961
|
get tagName() {
|
1006
962
|
return this.element.tagName;
|
1007
963
|
}
|
@@ -1014,13 +970,11 @@ class et {
|
|
1014
970
|
_$AI(t, e = this, i, s) {
|
1015
971
|
const n = this.strings;
|
1016
972
|
let o = !1;
|
1017
|
-
if (n === void 0)
|
1018
|
-
t = k(this, t, e, 0), o = !D(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
|
973
|
+
if (n === void 0) t = R(this, t, e, 0), o = !z(t) || t !== this._$AH && t !== k, o && (this._$AH = t);
|
1019
974
|
else {
|
1020
975
|
const a = t;
|
1021
976
|
let c, h;
|
1022
|
-
for (t = n[0], c = 0; c < n.length - 1; c++)
|
1023
|
-
h = k(this, a[i + c], e, c), h === T && (h = this._$AH[c]), o || (o = !D(h) || h !== this._$AH[c]), h === u ? t = u : t !== u && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
|
977
|
+
for (t = n[0], c = 0; c < n.length - 1; c++) h = R(this, a[i + c], e, c), h === k && (h = this._$AH[c]), o || (o = !z(h) || h !== this._$AH[c]), h === u ? t = u : t !== u && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
|
1024
978
|
}
|
1025
979
|
o && !s && this.j(t);
|
1026
980
|
}
|
@@ -1028,7 +982,7 @@ class et {
|
|
1028
982
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
1029
983
|
}
|
1030
984
|
}
|
1031
|
-
class
|
985
|
+
class Xe extends nt {
|
1032
986
|
constructor() {
|
1033
987
|
super(...arguments), this.type = 3;
|
1034
988
|
}
|
@@ -1036,7 +990,7 @@ class Ke extends et {
|
|
1036
990
|
this.element[this.name] = t === u ? void 0 : t;
|
1037
991
|
}
|
1038
992
|
}
|
1039
|
-
class
|
993
|
+
class Qe extends nt {
|
1040
994
|
constructor() {
|
1041
995
|
super(...arguments), this.type = 4;
|
1042
996
|
}
|
@@ -1044,13 +998,12 @@ class Ze extends et {
|
|
1044
998
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
1045
999
|
}
|
1046
1000
|
}
|
1047
|
-
class
|
1001
|
+
class ti extends nt {
|
1048
1002
|
constructor(t, e, i, s, n) {
|
1049
1003
|
super(t, e, i, s, n), this.type = 5;
|
1050
1004
|
}
|
1051
1005
|
_$AI(t, e = this) {
|
1052
|
-
if ((t =
|
1053
|
-
return;
|
1006
|
+
if ((t = R(this, t, e, 0) ?? u) === k) return;
|
1054
1007
|
const i = this._$AH, s = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== u && (i === u || s);
|
1055
1008
|
s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
1056
1009
|
}
|
@@ -1059,7 +1012,7 @@ class Je extends et {
|
|
1059
1012
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
1060
1013
|
}
|
1061
1014
|
}
|
1062
|
-
class
|
1015
|
+
class ei {
|
1063
1016
|
constructor(t, e, i) {
|
1064
1017
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
1065
1018
|
}
|
@@ -1067,17 +1020,17 @@ class Ge {
|
|
1067
1020
|
return this._$AM._$AU;
|
1068
1021
|
}
|
1069
1022
|
_$AI(t) {
|
1070
|
-
|
1023
|
+
R(this, t);
|
1071
1024
|
}
|
1072
1025
|
}
|
1073
|
-
const
|
1074
|
-
|
1075
|
-
const
|
1026
|
+
const lt = H.litHtmlPolyfillSupport;
|
1027
|
+
lt == null || lt($t, q), (H.litHtmlVersions ?? (H.litHtmlVersions = [])).push("3.2.1");
|
1028
|
+
const ii = (r, t, e) => {
|
1076
1029
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1077
1030
|
let s = i._$litPart$;
|
1078
1031
|
if (s === void 0) {
|
1079
1032
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
1080
|
-
i._$litPart$ = s = new
|
1033
|
+
i._$litPart$ = s = new q(t.insertBefore(D(), n), n, void 0, e ?? {});
|
1081
1034
|
}
|
1082
1035
|
return s._$AI(r), s;
|
1083
1036
|
};
|
@@ -1086,7 +1039,7 @@ const Xe = (r, t, e) => {
|
|
1086
1039
|
* Copyright 2017 Google LLC
|
1087
1040
|
* SPDX-License-Identifier: BSD-3-Clause
|
1088
1041
|
*/
|
1089
|
-
let
|
1042
|
+
let A = class extends I {
|
1090
1043
|
constructor() {
|
1091
1044
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
1092
1045
|
}
|
@@ -1097,7 +1050,7 @@ let _ = class extends I {
|
|
1097
1050
|
}
|
1098
1051
|
update(t) {
|
1099
1052
|
const e = this.render();
|
1100
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
1053
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ii(e, this.renderRoot, this.renderOptions);
|
1101
1054
|
}
|
1102
1055
|
connectedCallback() {
|
1103
1056
|
var t;
|
@@ -1108,20 +1061,20 @@ let _ = class extends I {
|
|
1108
1061
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
1109
1062
|
}
|
1110
1063
|
render() {
|
1111
|
-
return
|
1064
|
+
return k;
|
1112
1065
|
}
|
1113
1066
|
};
|
1114
|
-
var
|
1115
|
-
|
1116
|
-
const
|
1117
|
-
|
1067
|
+
var oe;
|
1068
|
+
A._$litElement$ = !0, A.finalized = !0, (oe = globalThis.litElementHydrateSupport) == null || oe.call(globalThis, { LitElement: A });
|
1069
|
+
const dt = globalThis.litElementPolyfillSupport;
|
1070
|
+
dt == null || dt({ LitElement: A });
|
1118
1071
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
1119
1072
|
/**
|
1120
1073
|
* @license
|
1121
1074
|
* Copyright 2017 Google LLC
|
1122
1075
|
* SPDX-License-Identifier: BSD-3-Clause
|
1123
1076
|
*/
|
1124
|
-
const
|
1077
|
+
const si = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: St }, ri = (r = si, t, e) => {
|
1125
1078
|
const { kind: i, metadata: s } = e;
|
1126
1079
|
let n = globalThis.litPropertyMetadata.get(s);
|
1127
1080
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), i === "accessor") {
|
@@ -1143,7 +1096,7 @@ const Qe = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged:
|
|
1143
1096
|
throw Error("Unsupported decorator location: " + i);
|
1144
1097
|
};
|
1145
1098
|
function m(r) {
|
1146
|
-
return (t, e) => typeof e == "object" ?
|
1099
|
+
return (t, e) => typeof e == "object" ? ri(r, t, e) : ((i, s, n) => {
|
1147
1100
|
const o = s.hasOwnProperty(n);
|
1148
1101
|
return s.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
1149
1102
|
})(r, t, e);
|
@@ -1153,15 +1106,15 @@ function m(r) {
|
|
1153
1106
|
* Copyright 2017 Google LLC
|
1154
1107
|
* SPDX-License-Identifier: BSD-3-Clause
|
1155
1108
|
*/
|
1156
|
-
function
|
1109
|
+
function U(r) {
|
1157
1110
|
return m({ ...r, state: !0, attribute: !1 });
|
1158
1111
|
}
|
1159
|
-
var
|
1160
|
-
for (var s =
|
1161
|
-
(o = r[n]) && (s =
|
1162
|
-
return
|
1112
|
+
var ni = Object.defineProperty, oi = (r, t, e, i) => {
|
1113
|
+
for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
|
1114
|
+
(o = r[n]) && (s = o(t, e, s) || s);
|
1115
|
+
return s && ni(t, e, s), s;
|
1163
1116
|
};
|
1164
|
-
class
|
1117
|
+
const It = class It extends A {
|
1165
1118
|
constructor() {
|
1166
1119
|
super(...arguments), this.anchor = "BottomRight";
|
1167
1120
|
}
|
@@ -1172,9 +1125,9 @@ class it extends _ {
|
|
1172
1125
|
render() {
|
1173
1126
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), u;
|
1174
1127
|
}
|
1175
|
-
}
|
1176
|
-
|
1177
|
-
|
1128
|
+
};
|
1129
|
+
It.styles = [
|
1130
|
+
N`
|
1178
1131
|
:host {
|
1179
1132
|
position: fixed;
|
1180
1133
|
display: flex;
|
@@ -1192,16 +1145,17 @@ it.styles = [
|
|
1192
1145
|
}
|
1193
1146
|
`
|
1194
1147
|
];
|
1195
|
-
|
1148
|
+
let F = It;
|
1149
|
+
oi([
|
1196
1150
|
m({ attribute: !0 })
|
1197
|
-
],
|
1151
|
+
], F.prototype, "anchor");
|
1198
1152
|
/**
|
1199
1153
|
* @license
|
1200
1154
|
* Copyright 2017 Google LLC
|
1201
1155
|
* SPDX-License-Identifier: BSD-3-Clause
|
1202
1156
|
*/
|
1203
|
-
const
|
1204
|
-
let
|
1157
|
+
const Pt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ot = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
1158
|
+
let we = class {
|
1205
1159
|
constructor(t) {
|
1206
1160
|
}
|
1207
1161
|
get _$AU() {
|
@@ -1222,69 +1176,57 @@ let ue = class {
|
|
1222
1176
|
* Copyright 2020 Google LLC
|
1223
1177
|
* SPDX-License-Identifier: BSD-3-Clause
|
1224
1178
|
*/
|
1225
|
-
const
|
1179
|
+
const ai = (r) => r.strings === void 0;
|
1226
1180
|
/**
|
1227
1181
|
* @license
|
1228
1182
|
* Copyright 2017 Google LLC
|
1229
1183
|
* SPDX-License-Identifier: BSD-3-Clause
|
1230
1184
|
*/
|
1231
|
-
const
|
1185
|
+
const B = (r, t) => {
|
1232
1186
|
var i;
|
1233
1187
|
const e = r._$AN;
|
1234
|
-
if (e === void 0)
|
1235
|
-
|
1236
|
-
for (const s of e)
|
1237
|
-
(i = s._$AO) == null || i.call(s, t, !1), H(s, t);
|
1188
|
+
if (e === void 0) return !1;
|
1189
|
+
for (const s of e) (i = s._$AO) == null || i.call(s, t, !1), B(s, t);
|
1238
1190
|
return !0;
|
1239
|
-
},
|
1191
|
+
}, tt = (r) => {
|
1240
1192
|
let t, e;
|
1241
1193
|
do {
|
1242
|
-
if ((t = r._$AM) === void 0)
|
1243
|
-
break;
|
1194
|
+
if ((t = r._$AM) === void 0) break;
|
1244
1195
|
e = t._$AN, e.delete(r), r = t;
|
1245
1196
|
} while ((e == null ? void 0 : e.size) === 0);
|
1246
|
-
},
|
1197
|
+
}, $e = (r) => {
|
1247
1198
|
for (let t; t = r._$AM; r = t) {
|
1248
1199
|
let e = t._$AN;
|
1249
|
-
if (e === void 0)
|
1250
|
-
|
1251
|
-
|
1252
|
-
break;
|
1253
|
-
e.add(r), ai(t);
|
1200
|
+
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
1201
|
+
else if (e.has(r)) break;
|
1202
|
+
e.add(r), li(t);
|
1254
1203
|
}
|
1255
1204
|
};
|
1256
|
-
function
|
1257
|
-
this._$AN !== void 0 ? (
|
1205
|
+
function ci(r) {
|
1206
|
+
this._$AN !== void 0 ? (tt(this), this._$AM = r, $e(this)) : this._$AM = r;
|
1258
1207
|
}
|
1259
|
-
function
|
1208
|
+
function hi(r, t = !1, e = 0) {
|
1260
1209
|
const i = this._$AH, s = this._$AN;
|
1261
|
-
if (s !== void 0 && s.size !== 0)
|
1262
|
-
|
1263
|
-
|
1264
|
-
for (let n = e; n < i.length; n++)
|
1265
|
-
H(i[n], !1), Q(i[n]);
|
1266
|
-
else
|
1267
|
-
i != null && (H(i, !1), Q(i));
|
1268
|
-
else
|
1269
|
-
H(this, r);
|
1210
|
+
if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) B(i[n], !1), tt(i[n]);
|
1211
|
+
else i != null && (B(i, !1), tt(i));
|
1212
|
+
else B(this, r);
|
1270
1213
|
}
|
1271
|
-
const
|
1272
|
-
r.type ==
|
1214
|
+
const li = (r) => {
|
1215
|
+
r.type == Pt.CHILD && (r._$AP ?? (r._$AP = hi), r._$AQ ?? (r._$AQ = ci));
|
1273
1216
|
};
|
1274
|
-
class
|
1217
|
+
class _e extends we {
|
1275
1218
|
constructor() {
|
1276
1219
|
super(...arguments), this._$AN = void 0;
|
1277
1220
|
}
|
1278
1221
|
_$AT(t, e, i) {
|
1279
|
-
super._$AT(t, e, i),
|
1222
|
+
super._$AT(t, e, i), $e(this), this.isConnected = t._$AU;
|
1280
1223
|
}
|
1281
1224
|
_$AO(t, e = !0) {
|
1282
1225
|
var i, s;
|
1283
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (
|
1226
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (B(this, t), tt(this));
|
1284
1227
|
}
|
1285
1228
|
setValue(t) {
|
1286
|
-
if (
|
1287
|
-
this._$Ct._$AI(t, this);
|
1229
|
+
if (ai(this._$Ct)) this._$Ct._$AI(t, this);
|
1288
1230
|
else {
|
1289
1231
|
const e = [...this._$Ct._$AH];
|
1290
1232
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
@@ -1295,35 +1237,34 @@ class ge extends ue {
|
|
1295
1237
|
reconnected() {
|
1296
1238
|
}
|
1297
1239
|
}
|
1298
|
-
const
|
1299
|
-
let
|
1300
|
-
const
|
1240
|
+
const di = /* @__PURE__ */ new WeakMap();
|
1241
|
+
let Xt = 0;
|
1242
|
+
const pt = /* @__PURE__ */ new Map(), Qt = /* @__PURE__ */ new WeakSet(), te = () => new Promise((r) => requestAnimationFrame(r)), pi = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], ee = (r, t) => {
|
1301
1243
|
const e = r - t;
|
1302
1244
|
return e === 0 ? void 0 : e;
|
1303
|
-
},
|
1245
|
+
}, ie = (r, t) => {
|
1304
1246
|
const e = r / t;
|
1305
1247
|
return e === 1 ? void 0 : e;
|
1306
|
-
},
|
1307
|
-
const e =
|
1248
|
+
}, ut = { left: (r, t) => {
|
1249
|
+
const e = ee(r, t);
|
1308
1250
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1309
1251
|
}, top: (r, t) => {
|
1310
|
-
const e =
|
1252
|
+
const e = ee(r, t);
|
1311
1253
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1312
1254
|
}, width: (r, t) => {
|
1313
1255
|
let e;
|
1314
1256
|
t === 0 && (t = 1, e = { width: "1px" });
|
1315
|
-
const i =
|
1257
|
+
const i = ie(r, t);
|
1316
1258
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1317
1259
|
}, height: (r, t) => {
|
1318
1260
|
let e;
|
1319
1261
|
t === 0 && (t = 1, e = { height: "1px" });
|
1320
|
-
const i =
|
1262
|
+
const i = ie(r, t);
|
1321
1263
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1322
|
-
} },
|
1323
|
-
class
|
1264
|
+
} }, ui = { duration: 333, easing: "ease-in-out" }, fi = ["left", "top", "width", "height", "opacity", "color", "background"], se = /* @__PURE__ */ new WeakMap();
|
1265
|
+
class gi extends _e {
|
1324
1266
|
constructor(t) {
|
1325
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
1326
|
-
throw Error("The `animate` directive must be used in attribute position.");
|
1267
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Pt.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
1327
1268
|
this.createFinished();
|
1328
1269
|
}
|
1329
1270
|
createFinished() {
|
@@ -1340,7 +1281,7 @@ class pi extends ge {
|
|
1340
1281
|
return u;
|
1341
1282
|
}
|
1342
1283
|
getController() {
|
1343
|
-
return
|
1284
|
+
return di.get(this.u);
|
1344
1285
|
}
|
1345
1286
|
isDisabled() {
|
1346
1287
|
var t;
|
@@ -1349,17 +1290,17 @@ class pi extends ge {
|
|
1349
1290
|
update(t, [e]) {
|
1350
1291
|
var s;
|
1351
1292
|
const i = this.u === void 0;
|
1352
|
-
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element,
|
1293
|
+
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, se.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
1353
1294
|
}
|
1354
1295
|
p(t) {
|
1355
1296
|
t = t ?? {};
|
1356
1297
|
const e = this.getController();
|
1357
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1298
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = fi), this.options = t;
|
1358
1299
|
}
|
1359
1300
|
m() {
|
1360
1301
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1361
1302
|
return this.options.properties.forEach((s) => {
|
1362
|
-
const n = e[s] ?? (
|
1303
|
+
const n = e[s] ?? (ut[s] ? void 0 : i[s]), o = Number(n);
|
1363
1304
|
t[s] = isNaN(o) ? n + "" : o;
|
1364
1305
|
}), t;
|
1365
1306
|
}
|
@@ -1367,10 +1308,8 @@ class pi extends ge {
|
|
1367
1308
|
let t, e = !0;
|
1368
1309
|
return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
|
1369
1310
|
if (Array.isArray(i)) {
|
1370
|
-
if (Array.isArray(s) && s.length === i.length && i.every((n, o) => n === s[o]))
|
1371
|
-
|
1372
|
-
} else if (s === i)
|
1373
|
-
return !1;
|
1311
|
+
if (Array.isArray(s) && s.length === i.length && i.every((n, o) => n === s[o])) return !1;
|
1312
|
+
} else if (s === i) return !1;
|
1374
1313
|
return !0;
|
1375
1314
|
})(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
|
1376
1315
|
}
|
@@ -1378,22 +1317,20 @@ class pi extends ge {
|
|
1378
1317
|
typeof this.optionsOrCallback == "function" && this.p(this.optionsOrCallback()), this.v() && (this.A = this.m(), this.i = this.i ?? this.element.parentNode, this.o = this.element.nextSibling);
|
1379
1318
|
}
|
1380
1319
|
async hostUpdated() {
|
1381
|
-
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
1382
|
-
return;
|
1320
|
+
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
1383
1321
|
let t;
|
1384
|
-
this.prepare(), await
|
1322
|
+
this.prepare(), await te;
|
1385
1323
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
|
1386
1324
|
if (this.A !== void 0) {
|
1387
1325
|
const { from: n, to: o } = this.N(this.A, s, e);
|
1388
1326
|
this.log("measured", [this.A, s, n, o]), t = this.calculateKeyframes(n, o);
|
1389
1327
|
} else {
|
1390
|
-
const n =
|
1328
|
+
const n = pt.get(this.options.inId);
|
1391
1329
|
if (n) {
|
1392
|
-
|
1330
|
+
pt.delete(this.options.inId);
|
1393
1331
|
const { from: o, to: a } = this.N(n, s, e);
|
1394
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
1395
|
-
} else
|
1396
|
-
this.options.in && (t = [...this.options.in, {}]);
|
1332
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Xt++, t.forEach((c) => c.zIndex = Xt);
|
1333
|
+
} else this.options.in && (t = [...this.options.in, {}]);
|
1397
1334
|
}
|
1398
1335
|
this.animate(t, i);
|
1399
1336
|
}
|
@@ -1408,9 +1345,8 @@ class pi extends ge {
|
|
1408
1345
|
}
|
1409
1346
|
async disconnected() {
|
1410
1347
|
var e;
|
1411
|
-
if (!this.h || (this.options.id !== void 0 &&
|
1412
|
-
|
1413
|
-
if (this.prepare(), await qt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
1348
|
+
if (!this.h || (this.options.id !== void 0 && pt.set(this.options.id, this.A), this.options.out === void 0)) return;
|
1349
|
+
if (this.prepare(), await te(), (e = this.i) == null ? void 0 : e.isConnected) {
|
1414
1350
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
1415
1351
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1416
1352
|
const s = this.m();
|
@@ -1436,19 +1372,19 @@ class pi extends ge {
|
|
1436
1372
|
O() {
|
1437
1373
|
const t = [];
|
1438
1374
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1439
|
-
const i =
|
1375
|
+
const i = se.get(e);
|
1440
1376
|
i && !i.isDisabled() && i && t.push(i);
|
1441
1377
|
}
|
1442
1378
|
return t;
|
1443
1379
|
}
|
1444
1380
|
get isHostRendered() {
|
1445
|
-
const t =
|
1381
|
+
const t = Qt.has(this.u);
|
1446
1382
|
return t || this.u.updateComplete.then(() => {
|
1447
|
-
|
1383
|
+
Qt.add(this.u);
|
1448
1384
|
}), t;
|
1449
1385
|
}
|
1450
1386
|
j(t, e = this.O()) {
|
1451
|
-
const i = { ...
|
1387
|
+
const i = { ...ui };
|
1452
1388
|
return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
|
1453
1389
|
}
|
1454
1390
|
N(t, e, i) {
|
@@ -1465,14 +1401,12 @@ class pi extends ge {
|
|
1465
1401
|
const a = {};
|
1466
1402
|
for (const c in e) {
|
1467
1403
|
const h = t[c], l = e[c];
|
1468
|
-
if (c in
|
1469
|
-
const d =
|
1470
|
-
if (h === void 0 || l === void 0)
|
1471
|
-
continue;
|
1404
|
+
if (c in ut) {
|
1405
|
+
const d = ut[c];
|
1406
|
+
if (h === void 0 || l === void 0) continue;
|
1472
1407
|
const p = d(h, l);
|
1473
1408
|
p.transform !== void 0 && (a[c] = p.value, o = !0, s.transform = `${s.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(s, p.overrideFrom));
|
1474
|
-
} else
|
1475
|
-
h !== l && h !== void 0 && l !== void 0 && (o = !0, s[c] = h, n[c] = l);
|
1409
|
+
} else h !== l && h !== void 0 && l !== void 0 && (o = !0, s[c] = h, n[c] = l);
|
1476
1410
|
}
|
1477
1411
|
return s.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, n] : void 0;
|
1478
1412
|
}
|
@@ -1499,17 +1433,16 @@ class pi extends ge {
|
|
1499
1433
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1500
1434
|
}
|
1501
1435
|
}
|
1502
|
-
const
|
1436
|
+
const mi = Ot(gi), vi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
|
1503
1437
|
/**
|
1504
1438
|
* @license
|
1505
1439
|
* Copyright 2018 Google LLC
|
1506
1440
|
* SPDX-License-Identifier: BSD-3-Clause
|
1507
1441
|
*/
|
1508
|
-
const
|
1442
|
+
const re = Ot(class extends we {
|
1509
1443
|
constructor(r) {
|
1510
1444
|
var t;
|
1511
|
-
if (super(r), r.type !==
|
1512
|
-
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1445
|
+
if (super(r), r.type !== Pt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1513
1446
|
}
|
1514
1447
|
render(r) {
|
1515
1448
|
return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
|
@@ -1518,62 +1451,60 @@ const Gt = St(class extends ue {
|
|
1518
1451
|
var i, s;
|
1519
1452
|
if (this.st === void 0) {
|
1520
1453
|
this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
1521
|
-
for (const n in t)
|
1522
|
-
t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
|
1454
|
+
for (const n in t) t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
|
1523
1455
|
return this.render(t);
|
1524
1456
|
}
|
1525
1457
|
const e = r.element.classList;
|
1526
|
-
for (const n of this.st)
|
1527
|
-
n in t || (e.remove(n), this.st.delete(n));
|
1458
|
+
for (const n of this.st) n in t || (e.remove(n), this.st.delete(n));
|
1528
1459
|
for (const n in t) {
|
1529
1460
|
const o = !!t[n];
|
1530
1461
|
o === this.st.has(n) || (s = this.nt) != null && s.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
|
1531
1462
|
}
|
1532
|
-
return
|
1463
|
+
return k;
|
1533
1464
|
}
|
1534
|
-
}),
|
1465
|
+
}), w = (r, t, e) => {
|
1535
1466
|
r && e.style.setProperty(t, r);
|
1536
|
-
},
|
1467
|
+
}, Ae = (r, t) => {
|
1537
1468
|
var e, i, s, n, o, a, c, h, l;
|
1538
|
-
|
1469
|
+
w((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), w(
|
1539
1470
|
(i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1540
1471
|
"--text-on-primary-background",
|
1541
1472
|
t
|
1542
|
-
),
|
1473
|
+
), w(
|
1543
1474
|
(s = r.colors) == null ? void 0 : s.secondaryBackground,
|
1544
1475
|
"--secondary-background",
|
1545
1476
|
t
|
1546
|
-
),
|
1477
|
+
), w(
|
1547
1478
|
(n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
1548
1479
|
"--text-on-secondary-background",
|
1549
1480
|
t
|
1550
|
-
),
|
1481
|
+
), w(
|
1551
1482
|
(o = r.colors) == null ? void 0 : o.interactiveDestructiveBackground,
|
1552
1483
|
"--destructive-color",
|
1553
1484
|
t
|
1554
|
-
),
|
1485
|
+
), w(
|
1555
1486
|
(a = r.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
1556
1487
|
"--text-on-destructive-color",
|
1557
1488
|
t
|
1558
|
-
),
|
1489
|
+
), w(
|
1559
1490
|
(c = r.colors) == null ? void 0 : c.interactivePrimaryBackground,
|
1560
1491
|
"--interactive-primary-background",
|
1561
1492
|
t
|
1562
|
-
),
|
1493
|
+
), w(
|
1563
1494
|
(h = r.colors) == null ? void 0 : h.interactiveTextOnPrimaryBackground,
|
1564
1495
|
"--interactive-text-on-primary-background",
|
1565
1496
|
t
|
1566
|
-
),
|
1497
|
+
), w((l = r.colors) == null ? void 0 : l.focusColor, "--focus-color", t);
|
1567
1498
|
};
|
1568
1499
|
/**
|
1569
1500
|
* @license
|
1570
1501
|
* Copyright 2020 Google LLC
|
1571
1502
|
* SPDX-License-Identifier: BSD-3-Clause
|
1572
1503
|
*/
|
1573
|
-
const
|
1574
|
-
class
|
1504
|
+
const xe = () => new yi();
|
1505
|
+
class yi {
|
1575
1506
|
}
|
1576
|
-
const
|
1507
|
+
const ft = /* @__PURE__ */ new WeakMap(), Ce = Ot(class extends _e {
|
1577
1508
|
render(r) {
|
1578
1509
|
return u;
|
1579
1510
|
}
|
@@ -1585,14 +1516,13 @@ const pt = /* @__PURE__ */ new WeakMap(), ye = St(class extends ge {
|
|
1585
1516
|
rt(r) {
|
1586
1517
|
if (this.isConnected || (r = void 0), typeof this.Y == "function") {
|
1587
1518
|
const t = this.ht ?? globalThis;
|
1588
|
-
let e =
|
1589
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1590
|
-
} else
|
1591
|
-
this.Y.value = r;
|
1519
|
+
let e = ft.get(t);
|
1520
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ft.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, r), r !== void 0 && this.Y.call(this.ht, r);
|
1521
|
+
} else this.Y.value = r;
|
1592
1522
|
}
|
1593
1523
|
get lt() {
|
1594
1524
|
var r, t;
|
1595
|
-
return typeof this.Y == "function" ? (r =
|
1525
|
+
return typeof this.Y == "function" ? (r = ft.get(this.ht ?? globalThis)) == null ? void 0 : r.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
1596
1526
|
}
|
1597
1527
|
disconnected() {
|
1598
1528
|
this.lt === this.ct && this.rt(void 0);
|
@@ -1601,14 +1531,14 @@ const pt = /* @__PURE__ */ new WeakMap(), ye = St(class extends ge {
|
|
1601
1531
|
this.rt(this.ct);
|
1602
1532
|
}
|
1603
1533
|
});
|
1604
|
-
var
|
1605
|
-
for (var s =
|
1606
|
-
(o = r[n]) && (s =
|
1607
|
-
return
|
1534
|
+
var bi = Object.defineProperty, K = (r, t, e, i) => {
|
1535
|
+
for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
|
1536
|
+
(o = r[n]) && (s = o(t, e, s) || s);
|
1537
|
+
return s && bi(t, e, s), s;
|
1608
1538
|
};
|
1609
|
-
class
|
1539
|
+
const Tt = class Tt extends A {
|
1610
1540
|
constructor() {
|
1611
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
1541
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = xe(), this.widgetActive$ = new pe(!1), this.componentIsDestroyed$ = new At();
|
1612
1542
|
}
|
1613
1543
|
async connectedCallback() {
|
1614
1544
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -1643,21 +1573,21 @@ class A extends _ {
|
|
1643
1573
|
}
|
1644
1574
|
_applyBranding() {
|
1645
1575
|
var t;
|
1646
|
-
(t = this.application) != null && t.settings &&
|
1576
|
+
(t = this.application) != null && t.settings && Ae(this.application.settings.branding, this);
|
1647
1577
|
}
|
1648
1578
|
async _renderSymbol() {
|
1649
1579
|
var a, c, h;
|
1650
1580
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1651
1581
|
if (e)
|
1652
|
-
return
|
1582
|
+
return T` <img src=${e} class="trigger-icon" alt="" /> `;
|
1653
1583
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1654
1584
|
if (!i)
|
1655
1585
|
return u;
|
1656
|
-
const s = async (l) =>
|
1586
|
+
const s = async (l) => vi, { type: n, content: o } = i;
|
1657
1587
|
switch (n) {
|
1658
1588
|
case "Telia": {
|
1659
1589
|
const l = await s();
|
1660
|
-
return l ?
|
1590
|
+
return l ? T`<telia-icon
|
1661
1591
|
class="trigger-icon"
|
1662
1592
|
svg=${l.svg}
|
1663
1593
|
size="lg"
|
@@ -1675,21 +1605,21 @@ class A extends _ {
|
|
1675
1605
|
}
|
1676
1606
|
render() {
|
1677
1607
|
var t, e, i, s;
|
1678
|
-
return
|
1679
|
-
class=${
|
1608
|
+
return T`<div
|
1609
|
+
class=${re({
|
1680
1610
|
"trigger-container": !0,
|
1681
1611
|
hidden: !this.triggerVisible
|
1682
1612
|
})}
|
1683
|
-
${
|
1613
|
+
${Ce(this.containerRef)}
|
1684
1614
|
>
|
1685
|
-
${!this.active && ((s = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ?
|
1615
|
+
${!this.active && ((s = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ? T`
|
1686
1616
|
<button
|
1687
1617
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1688
1618
|
class="trigger-label"
|
1689
1619
|
@click=${this.toggleActive}
|
1690
|
-
${
|
1620
|
+
${mi({
|
1691
1621
|
keyframeOptions: {},
|
1692
|
-
in:
|
1622
|
+
in: pi,
|
1693
1623
|
stabilizeOut: !0,
|
1694
1624
|
skipInitial: !1
|
1695
1625
|
})}
|
@@ -1700,7 +1630,7 @@ class A extends _ {
|
|
1700
1630
|
|
1701
1631
|
<button
|
1702
1632
|
label="Widget trigger"
|
1703
|
-
class=${
|
1633
|
+
class=${re({
|
1704
1634
|
trigger: !0,
|
1705
1635
|
active: this.active,
|
1706
1636
|
rendered: this.loaded
|
@@ -1738,9 +1668,9 @@ class A extends _ {
|
|
1738
1668
|
</button>
|
1739
1669
|
</div>`;
|
1740
1670
|
}
|
1741
|
-
}
|
1742
|
-
|
1743
|
-
|
1671
|
+
};
|
1672
|
+
Tt.styles = [
|
1673
|
+
N`
|
1744
1674
|
:host {
|
1745
1675
|
--voca-rem-multiplier: 0.625;
|
1746
1676
|
--trigger-label-bg: #f5e0ff;
|
@@ -1871,42 +1801,43 @@ A.styles = [
|
|
1871
1801
|
}
|
1872
1802
|
`
|
1873
1803
|
];
|
1874
|
-
|
1804
|
+
let b = Tt;
|
1805
|
+
K([
|
1875
1806
|
m({ attribute: !1 })
|
1876
|
-
],
|
1877
|
-
|
1878
|
-
|
1879
|
-
],
|
1880
|
-
|
1881
|
-
|
1882
|
-
],
|
1883
|
-
|
1884
|
-
|
1885
|
-
],
|
1886
|
-
|
1887
|
-
|
1888
|
-
],
|
1889
|
-
var
|
1890
|
-
for (var s =
|
1891
|
-
(o = r[n]) && (s =
|
1892
|
-
return
|
1807
|
+
], b.prototype, "application");
|
1808
|
+
K([
|
1809
|
+
U()
|
1810
|
+
], b.prototype, "active");
|
1811
|
+
K([
|
1812
|
+
U()
|
1813
|
+
], b.prototype, "triggerVisible");
|
1814
|
+
K([
|
1815
|
+
U()
|
1816
|
+
], b.prototype, "loaded");
|
1817
|
+
K([
|
1818
|
+
U()
|
1819
|
+
], b.prototype, "icon");
|
1820
|
+
var wi = Object.defineProperty, E = (r, t, e, i) => {
|
1821
|
+
for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
|
1822
|
+
(o = r[n]) && (s = o(t, e, s) || s);
|
1823
|
+
return s && wi(t, e, s), s;
|
1893
1824
|
};
|
1894
|
-
const
|
1895
|
-
class
|
1825
|
+
const $i = (r) => {
|
1826
|
+
const e = class e extends r {
|
1896
1827
|
constructor() {
|
1897
1828
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
1898
1829
|
}
|
1899
|
-
writeProperties(
|
1900
|
-
this.properties =
|
1830
|
+
writeProperties(s) {
|
1831
|
+
this.properties = s;
|
1901
1832
|
}
|
1902
|
-
writeLayout(
|
1903
|
-
this.layout =
|
1833
|
+
writeLayout(s) {
|
1834
|
+
this.layout = s;
|
1904
1835
|
}
|
1905
|
-
writeContext(
|
1906
|
-
this.context =
|
1836
|
+
writeContext(s) {
|
1837
|
+
this.context = s;
|
1907
1838
|
}
|
1908
|
-
addChild(
|
1909
|
-
|
1839
|
+
addChild(s) {
|
1840
|
+
s.parent = this, this.nodes.push(s);
|
1910
1841
|
}
|
1911
1842
|
connectedCallback() {
|
1912
1843
|
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
@@ -1914,10 +1845,10 @@ const wi = (r) => {
|
|
1914
1845
|
this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
|
1915
1846
|
), this.application.mountComponent(this);
|
1916
1847
|
}
|
1917
|
-
}
|
1918
|
-
|
1848
|
+
};
|
1849
|
+
e.styles = [
|
1919
1850
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1920
|
-
|
1851
|
+
N`
|
1921
1852
|
:host {
|
1922
1853
|
font-family: var(--font-family);
|
1923
1854
|
grid-column: span var(--width);
|
@@ -1930,53 +1861,54 @@ const wi = (r) => {
|
|
1930
1861
|
box-sizing: border-box;
|
1931
1862
|
}
|
1932
1863
|
`
|
1933
|
-
]
|
1864
|
+
];
|
1865
|
+
let t = e;
|
1866
|
+
return E([
|
1934
1867
|
m()
|
1935
|
-
], t.prototype, "properties"
|
1868
|
+
], t.prototype, "properties"), E([
|
1936
1869
|
m()
|
1937
|
-
], t.prototype, "context"
|
1870
|
+
], t.prototype, "context"), E([
|
1938
1871
|
m()
|
1939
|
-
], t.prototype, "layout"
|
1872
|
+
], t.prototype, "layout"), E([
|
1940
1873
|
m()
|
1941
|
-
], t.prototype, "name"
|
1874
|
+
], t.prototype, "name"), E([
|
1942
1875
|
m()
|
1943
|
-
], t.prototype, "type"
|
1876
|
+
], t.prototype, "type"), E([
|
1944
1877
|
m({ attribute: !1 })
|
1945
|
-
], t.prototype, "application"
|
1878
|
+
], t.prototype, "application"), E([
|
1946
1879
|
m({ attribute: !1 })
|
1947
|
-
], t.prototype, "parent"
|
1948
|
-
}
|
1949
|
-
class Et extends wi(_) {
|
1880
|
+
], t.prototype, "parent"), t;
|
1881
|
+
}, Rt = class Rt extends $i(A) {
|
1950
1882
|
render() {
|
1951
|
-
return
|
1883
|
+
return T`Non resolved component`;
|
1952
1884
|
}
|
1953
|
-
}
|
1954
|
-
|
1955
|
-
|
1885
|
+
};
|
1886
|
+
Rt.styles = [
|
1887
|
+
N`
|
1956
1888
|
:host {
|
1957
1889
|
display: block;
|
1958
1890
|
}
|
1959
1891
|
`
|
1960
1892
|
];
|
1893
|
+
let et = Rt;
|
1961
1894
|
/**
|
1962
1895
|
* @license
|
1963
1896
|
* Copyright 2021 Google LLC
|
1964
1897
|
* SPDX-License-Identifier: BSD-3-Clause
|
1965
1898
|
*/
|
1966
|
-
function*
|
1899
|
+
function* _i(r, t) {
|
1967
1900
|
if (r !== void 0) {
|
1968
1901
|
let e = 0;
|
1969
|
-
for (const i of r)
|
1970
|
-
yield t(i, e++);
|
1902
|
+
for (const i of r) yield t(i, e++);
|
1971
1903
|
}
|
1972
1904
|
}
|
1973
|
-
var
|
1905
|
+
var $ = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))($ || {});
|
1974
1906
|
/**
|
1975
1907
|
* @license
|
1976
1908
|
* Copyright 2021 Google LLC
|
1977
1909
|
* SPDX-License-Identifier: BSD-3-Clause
|
1978
1910
|
*/
|
1979
|
-
let
|
1911
|
+
let Ai = class extends Event {
|
1980
1912
|
constructor(t, e, i) {
|
1981
1913
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
|
1982
1914
|
}
|
@@ -1991,7 +1923,7 @@ let _i = class extends Event {
|
|
1991
1923
|
* Copyright 2021 Google LLC
|
1992
1924
|
* SPDX-License-Identifier: BSD-3-Clause
|
1993
1925
|
*/
|
1994
|
-
class
|
1926
|
+
class xi {
|
1995
1927
|
get value() {
|
1996
1928
|
return this.o;
|
1997
1929
|
}
|
@@ -2004,13 +1936,11 @@ class Ai {
|
|
2004
1936
|
}
|
2005
1937
|
constructor(t) {
|
2006
1938
|
this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
|
2007
|
-
for (const [e, { disposer: i }] of this.subscriptions)
|
2008
|
-
e(this.o, i);
|
1939
|
+
for (const [e, { disposer: i }] of this.subscriptions) e(this.o, i);
|
2009
1940
|
}, t !== void 0 && (this.value = t);
|
2010
1941
|
}
|
2011
1942
|
addCallback(t, e, i) {
|
2012
|
-
if (!i)
|
2013
|
-
return void t(this.value);
|
1943
|
+
if (!i) return void t(this.value);
|
2014
1944
|
this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
|
2015
1945
|
this.subscriptions.delete(t);
|
2016
1946
|
}, consumerHost: e });
|
@@ -2026,12 +1956,12 @@ class Ai {
|
|
2026
1956
|
* Copyright 2021 Google LLC
|
2027
1957
|
* SPDX-License-Identifier: BSD-3-Clause
|
2028
1958
|
*/
|
2029
|
-
let
|
1959
|
+
let Ci = class extends Event {
|
2030
1960
|
constructor(t) {
|
2031
1961
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
2032
1962
|
}
|
2033
1963
|
};
|
2034
|
-
class
|
1964
|
+
class ne extends xi {
|
2035
1965
|
constructor(t, e, i) {
|
2036
1966
|
var s, n;
|
2037
1967
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
@@ -2039,11 +1969,9 @@ class Xt extends Ai {
|
|
2039
1969
|
o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
|
2040
1970
|
}, this.onProviderRequest = (o) => {
|
2041
1971
|
const a = o.composedPath()[0];
|
2042
|
-
if (o.context !== this.context || a === this.host)
|
2043
|
-
return;
|
1972
|
+
if (o.context !== this.context || a === this.host) return;
|
2044
1973
|
const c = /* @__PURE__ */ new Set();
|
2045
|
-
for (const [h, { consumerHost: l }] of this.subscriptions)
|
2046
|
-
c.has(h) || (c.add(h), l.dispatchEvent(new _i(this.context, h, !0)));
|
1974
|
+
for (const [h, { consumerHost: l }] of this.subscriptions) c.has(h) || (c.add(h), l.dispatchEvent(new Ai(this.context, h, !0)));
|
2047
1975
|
o.stopPropagation();
|
2048
1976
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (s = this.host).addController) == null || n.call(s, this);
|
2049
1977
|
}
|
@@ -2051,7 +1979,7 @@ class Xt extends Ai {
|
|
2051
1979
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
2052
1980
|
}
|
2053
1981
|
hostConnected() {
|
2054
|
-
this.host.dispatchEvent(new
|
1982
|
+
this.host.dispatchEvent(new Ci(this.context));
|
2055
1983
|
}
|
2056
1984
|
}
|
2057
1985
|
/**
|
@@ -2059,24 +1987,23 @@ class Xt extends Ai {
|
|
2059
1987
|
* Copyright 2017 Google LLC
|
2060
1988
|
* SPDX-License-Identifier: BSD-3-Clause
|
2061
1989
|
*/
|
2062
|
-
function
|
1990
|
+
function Si({ context: r }) {
|
2063
1991
|
return (t, e) => {
|
2064
1992
|
const i = /* @__PURE__ */ new WeakMap();
|
2065
|
-
if (typeof e == "object")
|
2066
|
-
|
2067
|
-
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
} };
|
1993
|
+
if (typeof e == "object") return e.addInitializer(function() {
|
1994
|
+
i.set(this, new ne(this, { context: r }));
|
1995
|
+
}), { get() {
|
1996
|
+
return t.get.call(this);
|
1997
|
+
}, set(s) {
|
1998
|
+
var n;
|
1999
|
+
return (n = i.get(this)) == null || n.setValue(s), t.set.call(this, s);
|
2000
|
+
}, init(s) {
|
2001
|
+
var n;
|
2002
|
+
return (n = i.get(this)) == null || n.setValue(s), s;
|
2003
|
+
} };
|
2077
2004
|
{
|
2078
2005
|
t.constructor.addInitializer((o) => {
|
2079
|
-
i.set(o, new
|
2006
|
+
i.set(o, new ne(o, { context: r }));
|
2080
2007
|
});
|
2081
2008
|
const s = Object.getOwnPropertyDescriptor(t, e);
|
2082
2009
|
let n;
|
@@ -2097,15 +2024,14 @@ function Ci({ context: r }) {
|
|
2097
2024
|
}
|
2098
2025
|
};
|
2099
2026
|
}
|
2100
|
-
var
|
2101
|
-
for (var s =
|
2102
|
-
(o = r[n]) && (s =
|
2103
|
-
return
|
2027
|
+
var Ei = Object.defineProperty, Pi = (r, t, e, i) => {
|
2028
|
+
for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
|
2029
|
+
(o = r[n]) && (s = o(t, e, s) || s);
|
2030
|
+
return s && Ei(t, e, s), s;
|
2104
2031
|
};
|
2105
|
-
const Oi = "application"
|
2106
|
-
class st extends _ {
|
2032
|
+
const Oi = "application", Mt = class Mt extends A {
|
2107
2033
|
constructor() {
|
2108
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
2034
|
+
super(...arguments), this.nodes = [], this.wrapperRef = xe();
|
2109
2035
|
}
|
2110
2036
|
addChild(t) {
|
2111
2037
|
t.parent = this, this.nodes.push(t);
|
@@ -2114,7 +2040,7 @@ class st extends _ {
|
|
2114
2040
|
if (!this.wrapperRef.value)
|
2115
2041
|
return;
|
2116
2042
|
const t = this.application.settings;
|
2117
|
-
t != null && t.branding &&
|
2043
|
+
t != null && t.branding && Ae(t.branding, this.wrapperRef.value);
|
2118
2044
|
}
|
2119
2045
|
applyStyles() {
|
2120
2046
|
if (!this.wrapperRef.value)
|
@@ -2130,12 +2056,12 @@ class st extends _ {
|
|
2130
2056
|
render() {
|
2131
2057
|
var i, s;
|
2132
2058
|
const t = this.application.settings.components.conversation;
|
2133
|
-
return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy ===
|
2134
|
-
${
|
2059
|
+
return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === $.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")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), T`<div class="widget-container" ${Ce(this.wrapperRef)}>
|
2060
|
+
${_i(this.nodes, (n) => n)}
|
2135
2061
|
</div>`;
|
2136
2062
|
}
|
2137
|
-
}
|
2138
|
-
|
2063
|
+
};
|
2064
|
+
Mt.styles = N`
|
2139
2065
|
:host {
|
2140
2066
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2141
2067
|
--spacing-xs: 0.2rem;
|
@@ -2271,11 +2197,12 @@ st.styles = M`
|
|
2271
2197
|
pointer-events: none;
|
2272
2198
|
}
|
2273
2199
|
`;
|
2200
|
+
let V = Mt;
|
2274
2201
|
Pi([
|
2275
2202
|
m({ attribute: !1 }),
|
2276
|
-
|
2277
|
-
],
|
2278
|
-
class
|
2203
|
+
Si({ context: Oi })
|
2204
|
+
], V.prototype, "application");
|
2205
|
+
class ki {
|
2279
2206
|
constructor() {
|
2280
2207
|
this.root = this.createRoot();
|
2281
2208
|
}
|
@@ -2315,11 +2242,11 @@ class Ti {
|
|
2315
2242
|
return s(this, this.root, [n], o), this.root;
|
2316
2243
|
}
|
2317
2244
|
createRoot() {
|
2318
|
-
return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper",
|
2245
|
+
return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper", V)), document.createElement("ace-wrapper");
|
2319
2246
|
}
|
2320
2247
|
createNode(t, e) {
|
2321
2248
|
if (!this.resolveComponent(e))
|
2322
|
-
return console.warn(`Unable to resolve component: ${e}`), new
|
2249
|
+
return console.warn(`Unable to resolve component: ${e}`), new et();
|
2323
2250
|
const s = document.createElement(
|
2324
2251
|
`ace-${e}`
|
2325
2252
|
);
|
@@ -2332,7 +2259,7 @@ class Ti {
|
|
2332
2259
|
return this.root;
|
2333
2260
|
}
|
2334
2261
|
}
|
2335
|
-
const
|
2262
|
+
const it = class it {
|
2336
2263
|
constructor() {
|
2337
2264
|
this.components = /* @__PURE__ */ new Map();
|
2338
2265
|
}
|
@@ -2352,14 +2279,14 @@ const be = class we {
|
|
2352
2279
|
await Promise.all(t);
|
2353
2280
|
}
|
2354
2281
|
defineAsWebComponent(t, e) {
|
2355
|
-
const i =
|
2282
|
+
const i = it.ResolveWebComponentName(t);
|
2356
2283
|
customElements.get(i) || customElements.define(i, e);
|
2357
2284
|
}
|
2358
2285
|
};
|
2359
|
-
|
2360
|
-
let
|
2286
|
+
it.ResolveWebComponentName = (t) => `ace-${t}`;
|
2287
|
+
let _t = it;
|
2361
2288
|
var y = /* @__PURE__ */ ((r) => (r.Necessary = "necessary", r.Functional = "functional", r.Analytics = "analytics", r))(y || {});
|
2362
|
-
class
|
2289
|
+
class Ii {
|
2363
2290
|
constructor(t, e, i, s) {
|
2364
2291
|
this.disallowedKeys = [], this.widgetId = t, this.storage = e === "localStorage" ? window.localStorage : window.sessionStorage, this.policy = i, this.storageEntries = s;
|
2365
2292
|
}
|
@@ -2413,7 +2340,7 @@ class Ri {
|
|
2413
2340
|
return `ace_${this.widgetId.substring(0, 7)}-${t}`;
|
2414
2341
|
}
|
2415
2342
|
}
|
2416
|
-
class
|
2343
|
+
class Ti {
|
2417
2344
|
constructor() {
|
2418
2345
|
this.texts = /* @__PURE__ */ new Map();
|
2419
2346
|
}
|
@@ -2428,7 +2355,7 @@ class ki {
|
|
2428
2355
|
return this.texts.get(t) || e;
|
2429
2356
|
}
|
2430
2357
|
}
|
2431
|
-
class
|
2358
|
+
class Ri {
|
2432
2359
|
constructor(t) {
|
2433
2360
|
this.widget = t, this.name = t.name;
|
2434
2361
|
}
|
@@ -2442,9 +2369,9 @@ class Mi {
|
|
2442
2369
|
this.widget.setZIndex(t);
|
2443
2370
|
}
|
2444
2371
|
}
|
2445
|
-
class
|
2372
|
+
class Mi {
|
2446
2373
|
constructor(t, e, i, s, n) {
|
2447
|
-
this.id = t, this.name = e, this.container = i, this.settings = s, this.options = n, this.platform = new
|
2374
|
+
this.id = t, this.name = e, this.container = i, this.settings = s, this.options = n, this.platform = new ki(), this.texts = new Ti(), this.renderStrategy = $.Inline, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new _t(), this.components = [], this.trigger = null, this.api = new Ri(this), this.onMessageReceived = async (a) => {
|
2448
2375
|
var h;
|
2449
2376
|
const c = a.data;
|
2450
2377
|
switch (c.type) {
|
@@ -2483,13 +2410,13 @@ class Ni {
|
|
2483
2410
|
default:
|
2484
2411
|
return;
|
2485
2412
|
}
|
2486
|
-
}, this.renderStrategy = this.options.renderStrategy ||
|
2413
|
+
}, this.renderStrategy = this.options.renderStrategy || $.Inline, this.triggerIcon = this.options.triggerIcon;
|
2487
2414
|
const o = {
|
2488
2415
|
[y.Necessary]: !0,
|
2489
2416
|
[y.Functional]: !0,
|
2490
2417
|
[y.Analytics]: !0
|
2491
2418
|
};
|
2492
|
-
this.storage = new
|
2419
|
+
this.storage = new Ii(
|
2493
2420
|
this.id,
|
2494
2421
|
"sessionStorage",
|
2495
2422
|
o,
|
@@ -2497,7 +2424,7 @@ class Ni {
|
|
2497
2424
|
), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
|
2498
2425
|
}
|
2499
2426
|
async activate() {
|
2500
|
-
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(
|
2427
|
+
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(ue.Ready), this.autoActivate) {
|
2501
2428
|
const t = this.render();
|
2502
2429
|
t && this._getTargetElement().appendChild(t);
|
2503
2430
|
}
|
@@ -2552,11 +2479,11 @@ class Ni {
|
|
2552
2479
|
}
|
2553
2480
|
_getTargetElement() {
|
2554
2481
|
let t = "bottom-right";
|
2555
|
-
if (this.anchor === "BottomRight" ? t = "bottom-right" : this.anchor === "BottomLeft" && (t = "bottom-left"), this.renderStrategy ===
|
2482
|
+
if (this.anchor === "BottomRight" ? t = "bottom-right" : this.anchor === "BottomLeft" && (t = "bottom-left"), this.renderStrategy === $.Trigger) {
|
2556
2483
|
let e = document.querySelector(
|
2557
2484
|
`ace-trigger-slot.${t}`
|
2558
2485
|
);
|
2559
|
-
return e || (e = new
|
2486
|
+
return e || (e = new F(), e.anchor = this.anchor, document.body.appendChild(e)), e;
|
2560
2487
|
}
|
2561
2488
|
return document.body;
|
2562
2489
|
}
|
@@ -2566,17 +2493,17 @@ class Ni {
|
|
2566
2493
|
render() {
|
2567
2494
|
if (this._isEmbeddedInIFrame())
|
2568
2495
|
return this.root;
|
2569
|
-
if (this.renderStrategy ===
|
2570
|
-
const t = new
|
2496
|
+
if (this.renderStrategy === $.Trigger) {
|
2497
|
+
const t = new b();
|
2571
2498
|
return t.application = this, this.trigger = t, this.storage.get("open") && this.trigger.toggleActive(), t;
|
2572
2499
|
}
|
2573
2500
|
return this.root;
|
2574
2501
|
}
|
2575
2502
|
}
|
2576
|
-
const
|
2503
|
+
const Wi = (r) => new W(r), st = class st {
|
2577
2504
|
// TODO:
|
2578
2505
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
2579
|
-
constructor(t =
|
2506
|
+
constructor(t = st.endpoint) {
|
2580
2507
|
this._endpoint = t;
|
2581
2508
|
}
|
2582
2509
|
async getSite(t) {
|
@@ -2585,8 +2512,8 @@ const qi = (r) => new bt(r), $e = class _e {
|
|
2585
2512
|
id: i.id,
|
2586
2513
|
triggers: i.triggers || [],
|
2587
2514
|
apps: (i.widgets || []).map((s) => {
|
2588
|
-
let n =
|
2589
|
-
s.renderStrategy.toLowerCase() === "inline" && (n =
|
2515
|
+
let n = $.Trigger;
|
2516
|
+
s.renderStrategy.toLowerCase() === "inline" && (n = $.Inline);
|
2590
2517
|
const o = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", h = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
|
2591
2518
|
return {
|
2592
2519
|
id: o,
|
@@ -2610,9 +2537,9 @@ const qi = (r) => new bt(r), $e = class _e {
|
|
2610
2537
|
} : null;
|
2611
2538
|
}
|
2612
2539
|
};
|
2613
|
-
|
2614
|
-
let
|
2615
|
-
class
|
2540
|
+
st.endpoint = "https://widgets.ace.teliacompany.net/api";
|
2541
|
+
let W = st;
|
2542
|
+
class Ni {
|
2616
2543
|
constructor(t) {
|
2617
2544
|
this.site = t;
|
2618
2545
|
}
|
@@ -2636,9 +2563,9 @@ class Ui {
|
|
2636
2563
|
});
|
2637
2564
|
}
|
2638
2565
|
}
|
2639
|
-
class
|
2566
|
+
class Ui {
|
2640
2567
|
constructor() {
|
2641
|
-
this.applications = [], this.container = new
|
2568
|
+
this.applications = [], this.container = new Dt("environment", this), this.bootstrapped = !1, this.site = null, this.widgetAPIHandlers = /* @__PURE__ */ new Map(), this.siteConfigurationHandlers = [], setTimeout(() => {
|
2642
2569
|
this.notifyWidgetsOfCreation();
|
2643
2570
|
}, 1e3);
|
2644
2571
|
}
|
@@ -2712,7 +2639,7 @@ class ji {
|
|
2712
2639
|
e(i == null ? void 0 : i.api);
|
2713
2640
|
}
|
2714
2641
|
registerApp(t, e, i, s) {
|
2715
|
-
const n = new
|
2642
|
+
const n = new Dt(e, this), o = new Mi(t, e, n, i, s);
|
2716
2643
|
this.applications.push(o);
|
2717
2644
|
}
|
2718
2645
|
registerSite(t) {
|
@@ -2726,7 +2653,7 @@ class ji {
|
|
2726
2653
|
}
|
2727
2654
|
class Li {
|
2728
2655
|
constructor(t) {
|
2729
|
-
this.configurations = [], this.httpClient = new
|
2656
|
+
this.configurations = [], this.httpClient = new W(), this.api = new Ni(this), this.triggers = [], this.httpClient = new W(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
|
2730
2657
|
}
|
2731
2658
|
async load(t) {
|
2732
2659
|
const e = await this.httpClient.getSite(t);
|
@@ -2754,7 +2681,7 @@ class Li {
|
|
2754
2681
|
}
|
2755
2682
|
async bootstrap(t) {
|
2756
2683
|
var e;
|
2757
|
-
this.url && await this.load(this.url), this.environment = new
|
2684
|
+
this.url && await this.load(this.url), this.environment = new Ui(), this.addGlobal(this.environment);
|
2758
2685
|
for await (const i of this.configurations) {
|
2759
2686
|
const s = await this.httpClient.getWidget(i.widgetId);
|
2760
2687
|
s && ((e = this.environment) == null || e.registerApp(
|
@@ -2780,12 +2707,12 @@ class Li {
|
|
2780
2707
|
}), globalThis.ace = t;
|
2781
2708
|
}
|
2782
2709
|
}
|
2783
|
-
var
|
2784
|
-
for (var s =
|
2785
|
-
(o = r[n]) && (s =
|
2786
|
-
return
|
2710
|
+
var ji = Object.defineProperty, kt = (r, t, e, i) => {
|
2711
|
+
for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
|
2712
|
+
(o = r[n]) && (s = o(t, e, s) || s);
|
2713
|
+
return s && ji(t, e, s), s;
|
2787
2714
|
};
|
2788
|
-
class
|
2715
|
+
const Nt = class Nt extends A {
|
2789
2716
|
constructor() {
|
2790
2717
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
2791
2718
|
}
|
@@ -2810,50 +2737,51 @@ class V extends _ {
|
|
2810
2737
|
render() {
|
2811
2738
|
if (!this.widget || this.status !== "activated")
|
2812
2739
|
return u;
|
2813
|
-
if (this.widget.renderStrategy ===
|
2814
|
-
const t = new
|
2740
|
+
if (this.widget.renderStrategy === $.Trigger) {
|
2741
|
+
const t = new b();
|
2815
2742
|
return t.application = this.widget, t;
|
2816
2743
|
}
|
2817
2744
|
return this.widget.render();
|
2818
2745
|
}
|
2819
|
-
}
|
2820
|
-
|
2821
|
-
|
2746
|
+
};
|
2747
|
+
Nt.styles = [
|
2748
|
+
N`
|
2822
2749
|
:host {
|
2823
2750
|
display: block;
|
2824
2751
|
}
|
2825
2752
|
`
|
2826
2753
|
];
|
2827
|
-
|
2754
|
+
let M = Nt;
|
2755
|
+
kt([
|
2828
2756
|
m({ attribute: !0 })
|
2829
|
-
],
|
2830
|
-
|
2831
|
-
|
2832
|
-
],
|
2833
|
-
|
2834
|
-
|
2835
|
-
],
|
2836
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
2837
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
2838
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
2839
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2840
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
2841
|
-
const
|
2757
|
+
], M.prototype, "name");
|
2758
|
+
kt([
|
2759
|
+
U()
|
2760
|
+
], M.prototype, "widget");
|
2761
|
+
kt([
|
2762
|
+
U()
|
2763
|
+
], M.prototype, "status");
|
2764
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", F);
|
2765
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", b);
|
2766
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", et);
|
2767
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", V);
|
2768
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", M);
|
2769
|
+
const Yi = async (r, t, e = {}) => {
|
2842
2770
|
const i = new Li(r);
|
2843
2771
|
e.httpClient && i.setHttpClient(e.httpClient), await i.bootstrap(t);
|
2844
2772
|
};
|
2845
2773
|
export {
|
2846
|
-
|
2847
|
-
|
2848
|
-
|
2849
|
-
|
2850
|
-
|
2774
|
+
M as AceWidget,
|
2775
|
+
Mi as Application,
|
2776
|
+
Dt as Container,
|
2777
|
+
Ui as Environment,
|
2778
|
+
W as HttpClient,
|
2851
2779
|
Li as Site,
|
2852
2780
|
y as StorageCategory,
|
2853
|
-
|
2854
|
-
|
2855
|
-
|
2781
|
+
Ii as StorageService,
|
2782
|
+
b as Trigger,
|
2783
|
+
$i as WidgetComponent,
|
2856
2784
|
Oi as applicationContext,
|
2857
|
-
|
2858
|
-
|
2785
|
+
Yi as bootstrap,
|
2786
|
+
Wi as createHttpClient
|
2859
2787
|
};
|