@telia-ace/widget-core-flamingo 1.1.70-rc.23 → 1.1.70-rc.25
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +1 -1
- package/index.js +33 -33
- package/index.mjs +437 -406
- package/package.json +1 -1
- package/services/storage.service.d.ts +12 -3
package/index.mjs
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
var
|
2
|
-
return
|
1
|
+
var gt = function(s, t) {
|
2
|
+
return gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
3
3
|
e.__proto__ = i;
|
4
4
|
} || function(e, i) {
|
5
5
|
for (var r in i)
|
6
6
|
Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
7
|
-
},
|
7
|
+
}, gt(s, t);
|
8
8
|
};
|
9
|
-
function
|
9
|
+
function B(s, t) {
|
10
10
|
if (typeof t != "function" && t !== null)
|
11
11
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
12
|
-
|
12
|
+
gt(s, t);
|
13
13
|
function e() {
|
14
14
|
this.constructor = s;
|
15
15
|
}
|
16
16
|
s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
17
17
|
}
|
18
|
-
function
|
18
|
+
function mt(s) {
|
19
19
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
|
20
20
|
if (e)
|
21
21
|
return e.call(s);
|
@@ -27,7 +27,7 @@ function gt(s) {
|
|
27
27
|
};
|
28
28
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
29
29
|
}
|
30
|
-
function
|
30
|
+
function G(s, t) {
|
31
31
|
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
32
32
|
if (!e)
|
33
33
|
return s;
|
@@ -47,7 +47,7 @@ function K(s, t) {
|
|
47
47
|
}
|
48
48
|
return n;
|
49
49
|
}
|
50
|
-
function
|
50
|
+
function Z(s, t, e) {
|
51
51
|
if (e || arguments.length === 2)
|
52
52
|
for (var i = 0, r = t.length, n; i < r; i++)
|
53
53
|
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
@@ -56,13 +56,13 @@ function G(s, t, e) {
|
|
56
56
|
function b(s) {
|
57
57
|
return typeof s == "function";
|
58
58
|
}
|
59
|
-
function
|
59
|
+
function Xt(s) {
|
60
60
|
var t = function(i) {
|
61
61
|
Error.call(i), i.stack = new Error().stack;
|
62
62
|
}, e = s(t);
|
63
63
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
64
64
|
}
|
65
|
-
var
|
65
|
+
var ot = Xt(function(s) {
|
66
66
|
return function(e) {
|
67
67
|
s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
68
68
|
` + e.map(function(i, r) {
|
@@ -71,13 +71,13 @@ var nt = Jt(function(s) {
|
|
71
71
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
72
72
|
};
|
73
73
|
});
|
74
|
-
function
|
74
|
+
function vt(s, t) {
|
75
75
|
if (s) {
|
76
76
|
var e = s.indexOf(t);
|
77
77
|
0 <= e && s.splice(e, 1);
|
78
78
|
}
|
79
79
|
}
|
80
|
-
var
|
80
|
+
var et = function() {
|
81
81
|
function s(t) {
|
82
82
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
83
83
|
}
|
@@ -89,7 +89,7 @@ var tt = function() {
|
|
89
89
|
if (o)
|
90
90
|
if (this._parentage = null, Array.isArray(o))
|
91
91
|
try {
|
92
|
-
for (var a =
|
92
|
+
for (var a = mt(o), c = a.next(); !c.done; c = a.next()) {
|
93
93
|
var h = c.value;
|
94
94
|
h.remove(this);
|
95
95
|
}
|
@@ -110,18 +110,18 @@ var tt = function() {
|
|
110
110
|
try {
|
111
111
|
l();
|
112
112
|
} catch (v) {
|
113
|
-
n = v instanceof
|
113
|
+
n = v instanceof ot ? v.errors : [v];
|
114
114
|
}
|
115
115
|
var p = this._finalizers;
|
116
116
|
if (p) {
|
117
117
|
this._finalizers = null;
|
118
118
|
try {
|
119
|
-
for (var f =
|
119
|
+
for (var f = mt(p), u = f.next(); !u.done; u = f.next()) {
|
120
120
|
var g = u.value;
|
121
121
|
try {
|
122
|
-
|
122
|
+
Pt(g);
|
123
123
|
} catch (v) {
|
124
|
-
n = n ?? [], v instanceof
|
124
|
+
n = n ?? [], v instanceof ot ? n = Z(Z([], G(n)), G(v.errors)) : n.push(v);
|
125
125
|
}
|
126
126
|
}
|
127
127
|
} catch (v) {
|
@@ -136,13 +136,13 @@ var tt = function() {
|
|
136
136
|
}
|
137
137
|
}
|
138
138
|
if (n)
|
139
|
-
throw new
|
139
|
+
throw new ot(n);
|
140
140
|
}
|
141
141
|
}, s.prototype.add = function(t) {
|
142
142
|
var e;
|
143
143
|
if (t && t !== this)
|
144
144
|
if (this.closed)
|
145
|
-
|
145
|
+
Pt(t);
|
146
146
|
else {
|
147
147
|
if (t instanceof s) {
|
148
148
|
if (t.closed || t._hasParent(this))
|
@@ -159,58 +159,58 @@ var tt = function() {
|
|
159
159
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
160
160
|
}, s.prototype._removeParent = function(t) {
|
161
161
|
var e = this._parentage;
|
162
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
162
|
+
e === t ? this._parentage = null : Array.isArray(e) && vt(e, t);
|
163
163
|
}, s.prototype.remove = function(t) {
|
164
164
|
var e = this._finalizers;
|
165
|
-
e &&
|
165
|
+
e && vt(e, t), t instanceof s && t._removeParent(this);
|
166
166
|
}, s.EMPTY = function() {
|
167
167
|
var t = new s();
|
168
168
|
return t.closed = !0, t;
|
169
169
|
}(), s;
|
170
|
-
}(),
|
171
|
-
function
|
172
|
-
return s instanceof
|
170
|
+
}(), Qt = et.EMPTY;
|
171
|
+
function te(s) {
|
172
|
+
return s instanceof et || s && "closed" in s && b(s.remove) && b(s.add) && b(s.unsubscribe);
|
173
173
|
}
|
174
|
-
function
|
174
|
+
function Pt(s) {
|
175
175
|
b(s) ? s() : s.unsubscribe();
|
176
176
|
}
|
177
|
-
var
|
177
|
+
var ee = {
|
178
178
|
onUnhandledError: null,
|
179
179
|
onStoppedNotification: null,
|
180
180
|
Promise: void 0,
|
181
181
|
useDeprecatedSynchronousErrorHandling: !1,
|
182
182
|
useDeprecatedNextContext: !1
|
183
|
-
},
|
183
|
+
}, yt = {
|
184
184
|
setTimeout: function(s, t) {
|
185
185
|
for (var e = [], i = 2; i < arguments.length; i++)
|
186
186
|
e[i - 2] = arguments[i];
|
187
|
-
var r =
|
188
|
-
return r != null && r.setTimeout ? r.setTimeout.apply(r,
|
187
|
+
var r = yt.delegate;
|
188
|
+
return r != null && r.setTimeout ? r.setTimeout.apply(r, Z([s, t], G(e))) : setTimeout.apply(void 0, Z([s, t], G(e)));
|
189
189
|
},
|
190
190
|
clearTimeout: function(s) {
|
191
|
-
var t =
|
191
|
+
var t = yt.delegate;
|
192
192
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(s);
|
193
193
|
},
|
194
194
|
delegate: void 0
|
195
195
|
};
|
196
|
-
function
|
197
|
-
|
196
|
+
function $e(s) {
|
197
|
+
yt.setTimeout(function() {
|
198
198
|
throw s;
|
199
199
|
});
|
200
200
|
}
|
201
|
-
function
|
201
|
+
function Ot() {
|
202
202
|
}
|
203
|
-
function
|
203
|
+
function q(s) {
|
204
204
|
s();
|
205
205
|
}
|
206
|
-
var
|
207
|
-
|
206
|
+
var ie = function(s) {
|
207
|
+
B(t, s);
|
208
208
|
function t(e) {
|
209
209
|
var i = s.call(this) || this;
|
210
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
210
|
+
return i.isStopped = !1, e ? (i.destination = e, te(e) && e.add(i)) : i.destination = xe, i;
|
211
211
|
}
|
212
212
|
return t.create = function(e, i, r) {
|
213
|
-
return new
|
213
|
+
return new bt(e, i, r);
|
214
214
|
}, t.prototype.next = function(e) {
|
215
215
|
this.isStopped || this._next(e);
|
216
216
|
}, t.prototype.error = function(e) {
|
@@ -234,11 +234,11 @@ var ee = function(s) {
|
|
234
234
|
this.unsubscribe();
|
235
235
|
}
|
236
236
|
}, t;
|
237
|
-
}(
|
238
|
-
function
|
239
|
-
return
|
237
|
+
}(et), _e = Function.prototype.bind;
|
238
|
+
function at(s, t) {
|
239
|
+
return _e.call(s, t);
|
240
240
|
}
|
241
|
-
var
|
241
|
+
var we = function() {
|
242
242
|
function s(t) {
|
243
243
|
this.partialObserver = t;
|
244
244
|
}
|
@@ -248,7 +248,7 @@ var _e = function() {
|
|
248
248
|
try {
|
249
249
|
e.next(t);
|
250
250
|
} catch (i) {
|
251
|
-
|
251
|
+
Y(i);
|
252
252
|
}
|
253
253
|
}, s.prototype.error = function(t) {
|
254
254
|
var e = this.partialObserver;
|
@@ -256,21 +256,21 @@ var _e = function() {
|
|
256
256
|
try {
|
257
257
|
e.error(t);
|
258
258
|
} catch (i) {
|
259
|
-
|
259
|
+
Y(i);
|
260
260
|
}
|
261
261
|
else
|
262
|
-
|
262
|
+
Y(t);
|
263
263
|
}, s.prototype.complete = function() {
|
264
264
|
var t = this.partialObserver;
|
265
265
|
if (t.complete)
|
266
266
|
try {
|
267
267
|
t.complete();
|
268
268
|
} catch (e) {
|
269
|
-
|
269
|
+
Y(e);
|
270
270
|
}
|
271
271
|
}, s;
|
272
|
-
}(),
|
273
|
-
|
272
|
+
}(), bt = function(s) {
|
273
|
+
B(t, s);
|
274
274
|
function t(e, i, r) {
|
275
275
|
var n = s.call(this) || this, o;
|
276
276
|
if (b(e) || !e)
|
@@ -281,43 +281,43 @@ var _e = function() {
|
|
281
281
|
};
|
282
282
|
else {
|
283
283
|
var a;
|
284
|
-
n &&
|
284
|
+
n && ee.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
285
285
|
return n.unsubscribe();
|
286
286
|
}, o = {
|
287
|
-
next: e.next &&
|
288
|
-
error: e.error &&
|
289
|
-
complete: e.complete &&
|
287
|
+
next: e.next && at(e.next, a),
|
288
|
+
error: e.error && at(e.error, a),
|
289
|
+
complete: e.complete && at(e.complete, a)
|
290
290
|
}) : o = e;
|
291
291
|
}
|
292
|
-
return n.destination = new
|
292
|
+
return n.destination = new we(o), n;
|
293
293
|
}
|
294
294
|
return t;
|
295
|
-
}(
|
296
|
-
function
|
297
|
-
|
295
|
+
}(ie);
|
296
|
+
function Y(s) {
|
297
|
+
$e(s);
|
298
298
|
}
|
299
|
-
function
|
299
|
+
function Ae(s) {
|
300
300
|
throw s;
|
301
301
|
}
|
302
|
-
var
|
302
|
+
var xe = {
|
303
303
|
closed: !0,
|
304
|
-
next:
|
305
|
-
error:
|
306
|
-
complete:
|
307
|
-
},
|
304
|
+
next: Ot,
|
305
|
+
error: Ae,
|
306
|
+
complete: Ot
|
307
|
+
}, Ce = function() {
|
308
308
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
309
309
|
}();
|
310
|
-
function
|
310
|
+
function Se(s) {
|
311
311
|
return s;
|
312
312
|
}
|
313
|
-
function
|
314
|
-
return s.length === 0 ?
|
313
|
+
function Ee(s) {
|
314
|
+
return s.length === 0 ? Se : s.length === 1 ? s[0] : function(e) {
|
315
315
|
return s.reduce(function(i, r) {
|
316
316
|
return r(i);
|
317
317
|
}, e);
|
318
318
|
};
|
319
319
|
}
|
320
|
-
var
|
320
|
+
var Tt = function() {
|
321
321
|
function s(t) {
|
322
322
|
t && (this._subscribe = t);
|
323
323
|
}
|
@@ -325,8 +325,8 @@ var Ot = function() {
|
|
325
325
|
var e = new s();
|
326
326
|
return e.source = this, e.operator = t, e;
|
327
327
|
}, s.prototype.subscribe = function(t, e, i) {
|
328
|
-
var r = this, n =
|
329
|
-
return
|
328
|
+
var r = this, n = Oe(t) ? t : new bt(t, e, i);
|
329
|
+
return q(function() {
|
330
330
|
var o = r, a = o.operator, c = o.source;
|
331
331
|
n.add(a ? a.call(n, c) : c ? r._subscribe(n) : r._trySubscribe(n));
|
332
332
|
}), n;
|
@@ -338,8 +338,8 @@ var Ot = function() {
|
|
338
338
|
}
|
339
339
|
}, s.prototype.forEach = function(t, e) {
|
340
340
|
var i = this;
|
341
|
-
return e =
|
342
|
-
var o = new
|
341
|
+
return e = Rt(e), new e(function(r, n) {
|
342
|
+
var o = new bt({
|
343
343
|
next: function(a) {
|
344
344
|
try {
|
345
345
|
t(a);
|
@@ -355,15 +355,15 @@ var Ot = function() {
|
|
355
355
|
}, s.prototype._subscribe = function(t) {
|
356
356
|
var e;
|
357
357
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
358
|
-
}, s.prototype[
|
358
|
+
}, s.prototype[Ce] = function() {
|
359
359
|
return this;
|
360
360
|
}, s.prototype.pipe = function() {
|
361
361
|
for (var t = [], e = 0; e < arguments.length; e++)
|
362
362
|
t[e] = arguments[e];
|
363
|
-
return
|
363
|
+
return Ee(t)(this);
|
364
364
|
}, s.prototype.toPromise = function(t) {
|
365
365
|
var e = this;
|
366
|
-
return t =
|
366
|
+
return t = Rt(t), new t(function(i, r) {
|
367
367
|
var n;
|
368
368
|
e.subscribe(function(o) {
|
369
369
|
return n = o;
|
@@ -377,40 +377,40 @@ var Ot = function() {
|
|
377
377
|
return new s(t);
|
378
378
|
}, s;
|
379
379
|
}();
|
380
|
-
function
|
380
|
+
function Rt(s) {
|
381
381
|
var t;
|
382
|
-
return (t = s ??
|
382
|
+
return (t = s ?? ee.Promise) !== null && t !== void 0 ? t : Promise;
|
383
383
|
}
|
384
|
-
function
|
384
|
+
function Pe(s) {
|
385
385
|
return s && b(s.next) && b(s.error) && b(s.complete);
|
386
386
|
}
|
387
|
-
function
|
388
|
-
return s && s instanceof
|
387
|
+
function Oe(s) {
|
388
|
+
return s && s instanceof ie || Pe(s) && te(s);
|
389
389
|
}
|
390
|
-
var
|
390
|
+
var Te = Xt(function(s) {
|
391
391
|
return function() {
|
392
392
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
393
393
|
};
|
394
|
-
}),
|
395
|
-
|
394
|
+
}), $t = function(s) {
|
395
|
+
B(t, s);
|
396
396
|
function t() {
|
397
397
|
var e = s.call(this) || this;
|
398
398
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
399
399
|
}
|
400
400
|
return t.prototype.lift = function(e) {
|
401
|
-
var i = new
|
401
|
+
var i = new It(this, this);
|
402
402
|
return i.operator = e, i;
|
403
403
|
}, t.prototype._throwIfClosed = function() {
|
404
404
|
if (this.closed)
|
405
|
-
throw new
|
405
|
+
throw new Te();
|
406
406
|
}, t.prototype.next = function(e) {
|
407
407
|
var i = this;
|
408
|
-
|
408
|
+
q(function() {
|
409
409
|
var r, n;
|
410
410
|
if (i._throwIfClosed(), !i.isStopped) {
|
411
411
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
412
412
|
try {
|
413
|
-
for (var o =
|
413
|
+
for (var o = mt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
414
414
|
var c = a.value;
|
415
415
|
c.next(e);
|
416
416
|
}
|
@@ -428,7 +428,7 @@ var Oe = Jt(function(s) {
|
|
428
428
|
});
|
429
429
|
}, t.prototype.error = function(e) {
|
430
430
|
var i = this;
|
431
|
-
|
431
|
+
q(function() {
|
432
432
|
if (i._throwIfClosed(), !i.isStopped) {
|
433
433
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
434
434
|
for (var r = i.observers; r.length; )
|
@@ -437,7 +437,7 @@ var Oe = Jt(function(s) {
|
|
437
437
|
});
|
438
438
|
}, t.prototype.complete = function() {
|
439
439
|
var e = this;
|
440
|
-
|
440
|
+
q(function() {
|
441
441
|
if (e._throwIfClosed(), !e.isStopped) {
|
442
442
|
e.isStopped = !0;
|
443
443
|
for (var i = e.observers; i.length; )
|
@@ -459,20 +459,20 @@ var Oe = Jt(function(s) {
|
|
459
459
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
460
460
|
}, t.prototype._innerSubscribe = function(e) {
|
461
461
|
var i = this, r = this, n = r.hasError, o = r.isStopped, a = r.observers;
|
462
|
-
return n || o ?
|
463
|
-
i.currentObservers = null,
|
462
|
+
return n || o ? Qt : (this.currentObservers = null, a.push(e), new et(function() {
|
463
|
+
i.currentObservers = null, vt(a, e);
|
464
464
|
}));
|
465
465
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
466
466
|
var i = this, r = i.hasError, n = i.thrownError, o = i.isStopped;
|
467
467
|
r ? e.error(n) : o && e.complete();
|
468
468
|
}, t.prototype.asObservable = function() {
|
469
|
-
var e = new
|
469
|
+
var e = new Tt();
|
470
470
|
return e.source = this, e;
|
471
471
|
}, t.create = function(e, i) {
|
472
|
-
return new
|
472
|
+
return new It(e, i);
|
473
473
|
}, t;
|
474
|
-
}(
|
475
|
-
|
474
|
+
}(Tt), It = function(s) {
|
475
|
+
B(t, s);
|
476
476
|
function t(e, i) {
|
477
477
|
var r = s.call(this) || this;
|
478
478
|
return r.destination = e, r.source = i, r;
|
@@ -488,10 +488,10 @@ var Oe = Jt(function(s) {
|
|
488
488
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
489
489
|
}, t.prototype._subscribe = function(e) {
|
490
490
|
var i, r;
|
491
|
-
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r :
|
491
|
+
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : Qt;
|
492
492
|
}, t;
|
493
|
-
}(
|
494
|
-
|
493
|
+
}($t), se = function(s) {
|
494
|
+
B(t, s);
|
495
495
|
function t(e) {
|
496
496
|
var i = s.call(this) || this;
|
497
497
|
return i._value = e, i;
|
@@ -513,10 +513,10 @@ var Oe = Jt(function(s) {
|
|
513
513
|
}, t.prototype.next = function(e) {
|
514
514
|
s.prototype.next.call(this, this._value = e);
|
515
515
|
}, t;
|
516
|
-
}(
|
517
|
-
class
|
516
|
+
}($t), re = /* @__PURE__ */ ((s) => (s.Loading = "loading", s.Ready = "ready", s))(re || {});
|
517
|
+
class Ut {
|
518
518
|
constructor(t, e) {
|
519
|
-
this.state = new
|
519
|
+
this.state = new se(
|
520
520
|
"loading"
|
521
521
|
/* Loading */
|
522
522
|
), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
|
@@ -539,19 +539,19 @@ class It {
|
|
539
539
|
* Copyright 2019 Google LLC
|
540
540
|
* SPDX-License-Identifier: BSD-3-Clause
|
541
541
|
*/
|
542
|
-
const
|
543
|
-
let
|
542
|
+
const K = globalThis, _t = K.ShadowRoot && (K.ShadyCSS === void 0 || K.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, wt = Symbol(), kt = /* @__PURE__ */ new WeakMap();
|
543
|
+
let ne = class {
|
544
544
|
constructor(t, e, i) {
|
545
|
-
if (this._$cssResult$ = !0, i !==
|
545
|
+
if (this._$cssResult$ = !0, i !== wt)
|
546
546
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
547
547
|
this.cssText = t, this.t = e;
|
548
548
|
}
|
549
549
|
get styleSheet() {
|
550
550
|
let t = this.o;
|
551
551
|
const e = this.t;
|
552
|
-
if (
|
552
|
+
if (_t && t === void 0) {
|
553
553
|
const i = e !== void 0 && e.length === 1;
|
554
|
-
i && (t =
|
554
|
+
i && (t = kt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && kt.set(e, t));
|
555
555
|
}
|
556
556
|
return t;
|
557
557
|
}
|
@@ -559,7 +559,7 @@ let re = class {
|
|
559
559
|
return this.cssText;
|
560
560
|
}
|
561
561
|
};
|
562
|
-
const
|
562
|
+
const Re = (s) => new ne(typeof s == "string" ? s : s + "", void 0, wt), U = (s, ...t) => {
|
563
563
|
const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
|
564
564
|
if (o._$cssResult$ === !0)
|
565
565
|
return o.cssText;
|
@@ -567,30 +567,30 @@ const Te = (s) => new re(typeof s == "string" ? s : s + "", void 0, _t), I = (s,
|
|
567
567
|
return o;
|
568
568
|
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
569
|
})(r) + s[n + 1], s[0]);
|
570
|
-
return new
|
571
|
-
},
|
572
|
-
if (
|
570
|
+
return new ne(e, s, wt);
|
571
|
+
}, Ie = (s, t) => {
|
572
|
+
if (_t)
|
573
573
|
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
574
574
|
else
|
575
575
|
for (const e of t) {
|
576
|
-
const i = document.createElement("style"), r =
|
576
|
+
const i = document.createElement("style"), r = K.litNonce;
|
577
577
|
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
578
578
|
}
|
579
|
-
},
|
579
|
+
}, Mt = _t ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
580
580
|
let e = "";
|
581
581
|
for (const i of t.cssRules)
|
582
582
|
e += i.cssText;
|
583
|
-
return
|
583
|
+
return Re(e);
|
584
584
|
})(s) : s;
|
585
585
|
/**
|
586
586
|
* @license
|
587
587
|
* Copyright 2017 Google LLC
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
589
589
|
*/
|
590
|
-
const { is:
|
590
|
+
const { is: Ue, defineProperty: ke, getOwnPropertyDescriptor: Me, getOwnPropertyNames: Ne, getOwnPropertySymbols: je, getPrototypeOf: Le } = Object, A = globalThis, Nt = A.trustedTypes, He = Nt ? Nt.emptyScript : "", ct = A.reactiveElementPolyfillSupport, M = (s, t) => s, J = { toAttribute(s, t) {
|
591
591
|
switch (t) {
|
592
592
|
case Boolean:
|
593
|
-
s = s ?
|
593
|
+
s = s ? He : null;
|
594
594
|
break;
|
595
595
|
case Object:
|
596
596
|
case Array:
|
@@ -615,9 +615,9 @@ const { is: Ie, defineProperty: Ue, getOwnPropertyDescriptor: ke, getOwnProperty
|
|
615
615
|
}
|
616
616
|
}
|
617
617
|
return e;
|
618
|
-
} },
|
619
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
620
|
-
let
|
618
|
+
} }, At = (s, t) => !Ue(s, t), jt = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: At };
|
619
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), A.litPropertyMetadata ?? (A.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
620
|
+
let T = class extends HTMLElement {
|
621
621
|
static addInitializer(t) {
|
622
622
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
623
623
|
}
|
@@ -627,11 +627,11 @@ let O = class extends HTMLElement {
|
|
627
627
|
static createProperty(t, e = jt) {
|
628
628
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
629
629
|
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
630
|
-
r !== void 0 &&
|
630
|
+
r !== void 0 && ke(this.prototype, t, r);
|
631
631
|
}
|
632
632
|
}
|
633
633
|
static getPropertyDescriptor(t, e, i) {
|
634
|
-
const { get: r, set: n } =
|
634
|
+
const { get: r, set: n } = Me(this.prototype, t) ?? { get() {
|
635
635
|
return this[e];
|
636
636
|
}, set(o) {
|
637
637
|
this[e] = o;
|
@@ -647,15 +647,15 @@ let O = class extends HTMLElement {
|
|
647
647
|
return this.elementProperties.get(t) ?? jt;
|
648
648
|
}
|
649
649
|
static _$Ei() {
|
650
|
-
if (this.hasOwnProperty(
|
650
|
+
if (this.hasOwnProperty(M("elementProperties")))
|
651
651
|
return;
|
652
|
-
const t =
|
652
|
+
const t = Le(this);
|
653
653
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
654
654
|
}
|
655
655
|
static finalize() {
|
656
|
-
if (this.hasOwnProperty(
|
656
|
+
if (this.hasOwnProperty(M("finalized")))
|
657
657
|
return;
|
658
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
658
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(M("properties"))) {
|
659
659
|
const e = this.properties, i = [...Ne(e), ...je(e)];
|
660
660
|
for (const r of i)
|
661
661
|
this.createProperty(r, e[r]);
|
@@ -679,9 +679,9 @@ let O = class extends HTMLElement {
|
|
679
679
|
if (Array.isArray(t)) {
|
680
680
|
const i = new Set(t.flat(1 / 0).reverse());
|
681
681
|
for (const r of i)
|
682
|
-
e.unshift(
|
682
|
+
e.unshift(Mt(r));
|
683
683
|
} else
|
684
|
-
t !== void 0 && e.push(
|
684
|
+
t !== void 0 && e.push(Mt(t));
|
685
685
|
return e;
|
686
686
|
}
|
687
687
|
static _$Eu(t, e) {
|
@@ -711,7 +711,7 @@ let O = class extends HTMLElement {
|
|
711
711
|
}
|
712
712
|
createRenderRoot() {
|
713
713
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
714
|
-
return
|
714
|
+
return Ie(t, this.constructor.elementStyles), t;
|
715
715
|
}
|
716
716
|
connectedCallback() {
|
717
717
|
var t;
|
@@ -736,7 +736,7 @@ let O = class extends HTMLElement {
|
|
736
736
|
var n;
|
737
737
|
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
738
738
|
if (r !== void 0 && i.reflect === !0) {
|
739
|
-
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter :
|
739
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : J).toAttribute(e, i.type);
|
740
740
|
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
741
741
|
}
|
742
742
|
}
|
@@ -744,13 +744,13 @@ let O = class extends HTMLElement {
|
|
744
744
|
var n;
|
745
745
|
const i = this.constructor, r = i._$Eh.get(t);
|
746
746
|
if (r !== void 0 && this._$Em !== r) {
|
747
|
-
const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter :
|
747
|
+
const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : J;
|
748
748
|
this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
|
749
749
|
}
|
750
750
|
}
|
751
751
|
requestUpdate(t, e, i) {
|
752
752
|
if (t !== void 0) {
|
753
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
753
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? At)(this[t], e))
|
754
754
|
return;
|
755
755
|
this.P(t, e, i);
|
756
756
|
}
|
@@ -828,86 +828,86 @@ let O = class extends HTMLElement {
|
|
828
828
|
firstUpdated(t) {
|
829
829
|
}
|
830
830
|
};
|
831
|
-
|
831
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[M("elementProperties")] = /* @__PURE__ */ new Map(), T[M("finalized")] = /* @__PURE__ */ new Map(), ct == null || ct({ ReactiveElement: T }), (A.reactiveElementVersions ?? (A.reactiveElementVersions = [])).push("2.0.4");
|
832
832
|
/**
|
833
833
|
* @license
|
834
834
|
* Copyright 2017 Google LLC
|
835
835
|
* SPDX-License-Identifier: BSD-3-Clause
|
836
836
|
*/
|
837
|
-
const N = globalThis,
|
838
|
-
\f\r]`,
|
839
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
840
|
-
function
|
837
|
+
const N = globalThis, X = N.trustedTypes, Lt = X ? X.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, oe = "$lit$", w = `lit$${(Math.random() + "").slice(9)}$`, ae = "?" + w, De = `<${ae}>`, P = document, L = () => P.createComment(""), H = (s) => s === null || typeof s != "object" && typeof s != "function", ce = Array.isArray, Be = (s) => ce(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", ht = `[
|
838
|
+
\f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ht = /-->/g, Dt = />/g, C = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
|
839
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Bt = /'/g, zt = /"/g, he = /^(?:script|style|textarea|title)$/i, ze = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), R = ze(1), O = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(), E = P.createTreeWalker(P, 129);
|
840
|
+
function le(s, t) {
|
841
841
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
842
842
|
throw Error("invalid template strings array");
|
843
|
-
return
|
843
|
+
return Lt !== void 0 ? Lt.createHTML(t) : t;
|
844
844
|
}
|
845
|
-
const
|
845
|
+
const We = (s, t) => {
|
846
846
|
const e = s.length - 1, i = [];
|
847
|
-
let r, n = t === 2 ? "<svg>" : "", o =
|
847
|
+
let r, n = t === 2 ? "<svg>" : "", o = k;
|
848
848
|
for (let a = 0; a < e; a++) {
|
849
849
|
const c = s[a];
|
850
850
|
let h, l, p = -1, f = 0;
|
851
851
|
for (; f < c.length && (o.lastIndex = f, l = o.exec(c), l !== null); )
|
852
|
-
f = o.lastIndex, o ===
|
853
|
-
const u = o ===
|
854
|
-
n += o ===
|
852
|
+
f = o.lastIndex, o === k ? l[1] === "!--" ? o = Ht : l[1] !== void 0 ? o = Dt : l[2] !== void 0 ? (he.test(l[2]) && (r = RegExp("</" + l[2], "g")), o = C) : l[3] !== void 0 && (o = C) : o === C ? l[0] === ">" ? (o = r ?? k, p = -1) : l[1] === void 0 ? p = -2 : (p = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? C : l[3] === '"' ? zt : Bt) : o === zt || o === Bt ? o = C : o === Ht || o === Dt ? o = k : (o = C, r = void 0);
|
853
|
+
const u = o === C && s[a + 1].startsWith("/>") ? " " : "";
|
854
|
+
n += o === k ? c + De : p >= 0 ? (i.push(h), c.slice(0, p) + oe + c.slice(p) + w + u) : c + w + (p === -2 ? a : u);
|
855
855
|
}
|
856
|
-
return [
|
856
|
+
return [le(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
857
857
|
};
|
858
|
-
class
|
858
|
+
class D {
|
859
859
|
constructor({ strings: t, _$litType$: e }, i) {
|
860
860
|
let r;
|
861
861
|
this.parts = [];
|
862
862
|
let n = 0, o = 0;
|
863
|
-
const a = t.length - 1, c = this.parts, [h, l] =
|
864
|
-
if (this.el =
|
863
|
+
const a = t.length - 1, c = this.parts, [h, l] = We(t, e);
|
864
|
+
if (this.el = D.createElement(h, i), E.currentNode = this.el.content, e === 2) {
|
865
865
|
const p = this.el.content.firstChild;
|
866
866
|
p.replaceWith(...p.childNodes);
|
867
867
|
}
|
868
|
-
for (; (r =
|
868
|
+
for (; (r = E.nextNode()) !== null && c.length < a; ) {
|
869
869
|
if (r.nodeType === 1) {
|
870
870
|
if (r.hasAttributes())
|
871
871
|
for (const p of r.getAttributeNames())
|
872
|
-
if (p.endsWith(
|
873
|
-
const f = l[o++], u = r.getAttribute(p).split(
|
874
|
-
c.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ?
|
872
|
+
if (p.endsWith(oe)) {
|
873
|
+
const f = l[o++], u = r.getAttribute(p).split(w), g = /([.?@])?(.*)/.exec(f);
|
874
|
+
c.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? Ye : g[1] === "?" ? Ve : g[1] === "@" ? qe : it }), r.removeAttribute(p);
|
875
875
|
} else
|
876
|
-
p.startsWith(
|
877
|
-
if (
|
878
|
-
const p = r.textContent.split(
|
876
|
+
p.startsWith(w) && (c.push({ type: 6, index: n }), r.removeAttribute(p));
|
877
|
+
if (he.test(r.tagName)) {
|
878
|
+
const p = r.textContent.split(w), f = p.length - 1;
|
879
879
|
if (f > 0) {
|
880
|
-
r.textContent =
|
880
|
+
r.textContent = X ? X.emptyScript : "";
|
881
881
|
for (let u = 0; u < f; u++)
|
882
|
-
r.append(p[u],
|
883
|
-
r.append(p[f],
|
882
|
+
r.append(p[u], L()), E.nextNode(), c.push({ type: 2, index: ++n });
|
883
|
+
r.append(p[f], L());
|
884
884
|
}
|
885
885
|
}
|
886
886
|
} else if (r.nodeType === 8)
|
887
|
-
if (r.data ===
|
887
|
+
if (r.data === ae)
|
888
888
|
c.push({ type: 2, index: n });
|
889
889
|
else {
|
890
890
|
let p = -1;
|
891
|
-
for (; (p = r.data.indexOf(
|
892
|
-
c.push({ type: 7, index: n }), p +=
|
891
|
+
for (; (p = r.data.indexOf(w, p + 1)) !== -1; )
|
892
|
+
c.push({ type: 7, index: n }), p += w.length - 1;
|
893
893
|
}
|
894
894
|
n++;
|
895
895
|
}
|
896
896
|
}
|
897
897
|
static createElement(t, e) {
|
898
|
-
const i =
|
898
|
+
const i = P.createElement("template");
|
899
899
|
return i.innerHTML = t, i;
|
900
900
|
}
|
901
901
|
}
|
902
|
-
function
|
902
|
+
function I(s, t, e = s, i) {
|
903
903
|
var o, a;
|
904
|
-
if (t ===
|
904
|
+
if (t === O)
|
905
905
|
return t;
|
906
906
|
let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
907
|
-
const n =
|
908
|
-
return (r == null ? void 0 : r.constructor) !== n && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t =
|
907
|
+
const n = H(t) ? void 0 : t._$litDirective$;
|
908
|
+
return (r == null ? void 0 : r.constructor) !== n && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = I(s, r._$AS(s, t.values), r, i)), t;
|
909
909
|
}
|
910
|
-
class
|
910
|
+
class Fe {
|
911
911
|
constructor(t, e) {
|
912
912
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
913
913
|
}
|
@@ -918,17 +918,17 @@ class We {
|
|
918
918
|
return this._$AM._$AU;
|
919
919
|
}
|
920
920
|
u(t) {
|
921
|
-
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ??
|
922
|
-
|
923
|
-
let n =
|
921
|
+
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? P).importNode(e, !0);
|
922
|
+
E.currentNode = r;
|
923
|
+
let n = E.nextNode(), o = 0, a = 0, c = i[0];
|
924
924
|
for (; c !== void 0; ) {
|
925
925
|
if (o === c.index) {
|
926
926
|
let h;
|
927
|
-
c.type === 2 ? h = new
|
927
|
+
c.type === 2 ? h = new z(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new Ke(n, this, t)), this._$AV.push(h), c = i[++a];
|
928
928
|
}
|
929
|
-
o !== (c == null ? void 0 : c.index) && (n =
|
929
|
+
o !== (c == null ? void 0 : c.index) && (n = E.nextNode(), o++);
|
930
930
|
}
|
931
|
-
return
|
931
|
+
return E.currentNode = P, r;
|
932
932
|
}
|
933
933
|
p(t) {
|
934
934
|
let e = 0;
|
@@ -936,7 +936,7 @@ class We {
|
|
936
936
|
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
937
937
|
}
|
938
938
|
}
|
939
|
-
class
|
939
|
+
class z {
|
940
940
|
get _$AU() {
|
941
941
|
var t;
|
942
942
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
@@ -956,7 +956,7 @@ class B {
|
|
956
956
|
return this._$AB;
|
957
957
|
}
|
958
958
|
_$AI(t, e = this) {
|
959
|
-
t =
|
959
|
+
t = I(this, t, e), H(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== O && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Be(t) ? this.k(t) : this._(t);
|
960
960
|
}
|
961
961
|
S(t) {
|
962
962
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -965,28 +965,28 @@ class B {
|
|
965
965
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
966
966
|
}
|
967
967
|
_(t) {
|
968
|
-
this._$AH !== d &&
|
968
|
+
this._$AH !== d && H(this._$AH) ? this._$AA.nextSibling.data = t : this.T(P.createTextNode(t)), this._$AH = t;
|
969
969
|
}
|
970
970
|
$(t) {
|
971
971
|
var n;
|
972
|
-
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
972
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = D.createElement(le(i.h, i.h[0]), this.options)), i);
|
973
973
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === r)
|
974
974
|
this._$AH.p(e);
|
975
975
|
else {
|
976
|
-
const o = new
|
976
|
+
const o = new Fe(r, this), a = o.u(this.options);
|
977
977
|
o.p(e), this.T(a), this._$AH = o;
|
978
978
|
}
|
979
979
|
}
|
980
980
|
_$AC(t) {
|
981
|
-
let e =
|
982
|
-
return e === void 0 &&
|
981
|
+
let e = Wt.get(t.strings);
|
982
|
+
return e === void 0 && Wt.set(t.strings, e = new D(t)), e;
|
983
983
|
}
|
984
984
|
k(t) {
|
985
|
-
|
985
|
+
ce(this._$AH) || (this._$AH = [], this._$AR());
|
986
986
|
const e = this._$AH;
|
987
987
|
let i, r = 0;
|
988
988
|
for (const n of t)
|
989
|
-
r === e.length ? e.push(i = new
|
989
|
+
r === e.length ? e.push(i = new z(this.S(L()), this.S(L()), this, this.options)) : i = e[r], i._$AI(n), r++;
|
990
990
|
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
991
991
|
}
|
992
992
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -1001,7 +1001,7 @@ class B {
|
|
1001
1001
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
1002
1002
|
}
|
1003
1003
|
}
|
1004
|
-
class
|
1004
|
+
class it {
|
1005
1005
|
get tagName() {
|
1006
1006
|
return this.element.tagName;
|
1007
1007
|
}
|
@@ -1015,12 +1015,12 @@ class et {
|
|
1015
1015
|
const n = this.strings;
|
1016
1016
|
let o = !1;
|
1017
1017
|
if (n === void 0)
|
1018
|
-
t =
|
1018
|
+
t = I(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== O, o && (this._$AH = t);
|
1019
1019
|
else {
|
1020
1020
|
const a = t;
|
1021
1021
|
let c, h;
|
1022
1022
|
for (t = n[0], c = 0; c < n.length - 1; c++)
|
1023
|
-
h =
|
1023
|
+
h = I(this, a[i + c], e, c), h === O && (h = this._$AH[c]), o || (o = !H(h) || h !== this._$AH[c]), h === d ? t = d : t !== d && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
|
1024
1024
|
}
|
1025
1025
|
o && !r && this.j(t);
|
1026
1026
|
}
|
@@ -1028,7 +1028,7 @@ class et {
|
|
1028
1028
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
1029
1029
|
}
|
1030
1030
|
}
|
1031
|
-
class
|
1031
|
+
class Ye extends it {
|
1032
1032
|
constructor() {
|
1033
1033
|
super(...arguments), this.type = 3;
|
1034
1034
|
}
|
@@ -1036,7 +1036,7 @@ class Fe extends et {
|
|
1036
1036
|
this.element[this.name] = t === d ? void 0 : t;
|
1037
1037
|
}
|
1038
1038
|
}
|
1039
|
-
class
|
1039
|
+
class Ve extends it {
|
1040
1040
|
constructor() {
|
1041
1041
|
super(...arguments), this.type = 4;
|
1042
1042
|
}
|
@@ -1044,12 +1044,12 @@ class Ye extends et {
|
|
1044
1044
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
1045
1045
|
}
|
1046
1046
|
}
|
1047
|
-
class
|
1047
|
+
class qe extends it {
|
1048
1048
|
constructor(t, e, i, r, n) {
|
1049
1049
|
super(t, e, i, r, n), this.type = 5;
|
1050
1050
|
}
|
1051
1051
|
_$AI(t, e = this) {
|
1052
|
-
if ((t =
|
1052
|
+
if ((t = I(this, t, e, 0) ?? d) === O)
|
1053
1053
|
return;
|
1054
1054
|
const i = this._$AH, r = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== d && (i === d || r);
|
1055
1055
|
r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
@@ -1059,7 +1059,7 @@ class Ve extends et {
|
|
1059
1059
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
1060
1060
|
}
|
1061
1061
|
}
|
1062
|
-
class
|
1062
|
+
class Ke {
|
1063
1063
|
constructor(t, e, i) {
|
1064
1064
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
1065
1065
|
}
|
@@ -1067,17 +1067,17 @@ class qe {
|
|
1067
1067
|
return this._$AM._$AU;
|
1068
1068
|
}
|
1069
1069
|
_$AI(t) {
|
1070
|
-
|
1070
|
+
I(this, t);
|
1071
1071
|
}
|
1072
1072
|
}
|
1073
|
-
const
|
1074
|
-
|
1075
|
-
const
|
1073
|
+
const lt = N.litHtmlPolyfillSupport;
|
1074
|
+
lt == null || lt(D, z), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.1.2");
|
1075
|
+
const Ge = (s, t, e) => {
|
1076
1076
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1077
1077
|
let r = i._$litPart$;
|
1078
1078
|
if (r === void 0) {
|
1079
1079
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
1080
|
-
i._$litPart$ = r = new
|
1080
|
+
i._$litPart$ = r = new z(t.insertBefore(L(), n), n, void 0, e ?? {});
|
1081
1081
|
}
|
1082
1082
|
return r._$AI(s), r;
|
1083
1083
|
};
|
@@ -1086,7 +1086,7 @@ const Ke = (s, t, e) => {
|
|
1086
1086
|
* Copyright 2017 Google LLC
|
1087
1087
|
* SPDX-License-Identifier: BSD-3-Clause
|
1088
1088
|
*/
|
1089
|
-
let $ = class extends
|
1089
|
+
let $ = class extends T {
|
1090
1090
|
constructor() {
|
1091
1091
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
1092
1092
|
}
|
@@ -1097,7 +1097,7 @@ let $ = class extends O {
|
|
1097
1097
|
}
|
1098
1098
|
update(t) {
|
1099
1099
|
const e = this.render();
|
1100
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
1100
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ge(e, this.renderRoot, this.renderOptions);
|
1101
1101
|
}
|
1102
1102
|
connectedCallback() {
|
1103
1103
|
var t;
|
@@ -1108,20 +1108,20 @@ let $ = class extends O {
|
|
1108
1108
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
1109
1109
|
}
|
1110
1110
|
render() {
|
1111
|
-
return
|
1111
|
+
return O;
|
1112
1112
|
}
|
1113
1113
|
};
|
1114
|
-
var
|
1115
|
-
$._$litElement$ = !0, $.finalized = !0, (
|
1116
|
-
const
|
1117
|
-
|
1114
|
+
var Jt;
|
1115
|
+
$._$litElement$ = !0, $.finalized = !0, (Jt = globalThis.litElementHydrateSupport) == null || Jt.call(globalThis, { LitElement: $ });
|
1116
|
+
const pt = globalThis.litElementPolyfillSupport;
|
1117
|
+
pt == null || pt({ LitElement: $ });
|
1118
1118
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
1119
1119
|
/**
|
1120
1120
|
* @license
|
1121
1121
|
* Copyright 2017 Google LLC
|
1122
1122
|
* SPDX-License-Identifier: BSD-3-Clause
|
1123
1123
|
*/
|
1124
|
-
const
|
1124
|
+
const Ze = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: At }, Je = (s = Ze, t, e) => {
|
1125
1125
|
const { kind: i, metadata: r } = e;
|
1126
1126
|
let n = globalThis.litPropertyMetadata.get(r);
|
1127
1127
|
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
|
@@ -1143,7 +1143,7 @@ const Ge = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged:
|
|
1143
1143
|
throw Error("Unsupported decorator location: " + i);
|
1144
1144
|
};
|
1145
1145
|
function m(s) {
|
1146
|
-
return (t, e) => typeof e == "object" ?
|
1146
|
+
return (t, e) => typeof e == "object" ? Je(s, t, e) : ((i, r, n) => {
|
1147
1147
|
const o = r.hasOwnProperty(n);
|
1148
1148
|
return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
1149
1149
|
})(s, t, e);
|
@@ -1153,15 +1153,15 @@ function m(s) {
|
|
1153
1153
|
* Copyright 2017 Google LLC
|
1154
1154
|
* SPDX-License-Identifier: BSD-3-Clause
|
1155
1155
|
*/
|
1156
|
-
function
|
1156
|
+
function W(s) {
|
1157
1157
|
return m({ ...s, state: !0, attribute: !1 });
|
1158
1158
|
}
|
1159
|
-
var
|
1160
|
-
for (var r = i > 1 ? void 0 : i ?
|
1159
|
+
var Xe = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, ti = (s, t, e, i) => {
|
1160
|
+
for (var r = i > 1 ? void 0 : i ? Qe(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1161
1161
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1162
|
-
return i && r &&
|
1162
|
+
return i && r && Xe(t, e, r), r;
|
1163
1163
|
};
|
1164
|
-
class
|
1164
|
+
class st extends $ {
|
1165
1165
|
constructor() {
|
1166
1166
|
super(...arguments), this.anchor = "BottomRight";
|
1167
1167
|
}
|
@@ -1173,8 +1173,8 @@ class it extends $ {
|
|
1173
1173
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), d;
|
1174
1174
|
}
|
1175
1175
|
}
|
1176
|
-
|
1177
|
-
|
1176
|
+
st.styles = [
|
1177
|
+
U`
|
1178
1178
|
:host {
|
1179
1179
|
position: fixed;
|
1180
1180
|
display: flex;
|
@@ -1192,16 +1192,16 @@ it.styles = [
|
|
1192
1192
|
}
|
1193
1193
|
`
|
1194
1194
|
];
|
1195
|
-
|
1195
|
+
ti([
|
1196
1196
|
m({ attribute: !0 })
|
1197
|
-
],
|
1197
|
+
], st.prototype, "anchor", 2);
|
1198
1198
|
/**
|
1199
1199
|
* @license
|
1200
1200
|
* Copyright 2017 Google LLC
|
1201
1201
|
* SPDX-License-Identifier: BSD-3-Clause
|
1202
1202
|
*/
|
1203
|
-
const
|
1204
|
-
let
|
1203
|
+
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ct = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
1204
|
+
let pe = class {
|
1205
1205
|
constructor(t) {
|
1206
1206
|
}
|
1207
1207
|
get _$AU() {
|
@@ -1222,7 +1222,7 @@ let le = class {
|
|
1222
1222
|
* Copyright 2020 Google LLC
|
1223
1223
|
* SPDX-License-Identifier: BSD-3-Clause
|
1224
1224
|
*/
|
1225
|
-
const
|
1225
|
+
const ei = (s) => s.strings === void 0;
|
1226
1226
|
/**
|
1227
1227
|
* @license
|
1228
1228
|
* Copyright 2017 Google LLC
|
@@ -1236,54 +1236,54 @@ const j = (s, t) => {
|
|
1236
1236
|
for (const r of e)
|
1237
1237
|
(i = r._$AO) == null || i.call(r, t, !1), j(r, t);
|
1238
1238
|
return !0;
|
1239
|
-
},
|
1239
|
+
}, Q = (s) => {
|
1240
1240
|
let t, e;
|
1241
1241
|
do {
|
1242
1242
|
if ((t = s._$AM) === void 0)
|
1243
1243
|
break;
|
1244
1244
|
e = t._$AN, e.delete(s), s = t;
|
1245
1245
|
} while ((e == null ? void 0 : e.size) === 0);
|
1246
|
-
},
|
1246
|
+
}, de = (s) => {
|
1247
1247
|
for (let t; t = s._$AM; s = t) {
|
1248
1248
|
let e = t._$AN;
|
1249
1249
|
if (e === void 0)
|
1250
1250
|
t._$AN = e = /* @__PURE__ */ new Set();
|
1251
1251
|
else if (e.has(s))
|
1252
1252
|
break;
|
1253
|
-
e.add(s),
|
1253
|
+
e.add(s), ri(t);
|
1254
1254
|
}
|
1255
1255
|
};
|
1256
|
-
function
|
1257
|
-
this._$AN !== void 0 ? (
|
1256
|
+
function ii(s) {
|
1257
|
+
this._$AN !== void 0 ? (Q(this), this._$AM = s, de(this)) : this._$AM = s;
|
1258
1258
|
}
|
1259
|
-
function
|
1259
|
+
function si(s, t = !1, e = 0) {
|
1260
1260
|
const i = this._$AH, r = this._$AN;
|
1261
1261
|
if (r !== void 0 && r.size !== 0)
|
1262
1262
|
if (t)
|
1263
1263
|
if (Array.isArray(i))
|
1264
1264
|
for (let n = e; n < i.length; n++)
|
1265
|
-
j(i[n], !1),
|
1265
|
+
j(i[n], !1), Q(i[n]);
|
1266
1266
|
else
|
1267
|
-
i != null && (j(i, !1),
|
1267
|
+
i != null && (j(i, !1), Q(i));
|
1268
1268
|
else
|
1269
1269
|
j(this, s);
|
1270
1270
|
}
|
1271
|
-
const
|
1272
|
-
s.type ==
|
1271
|
+
const ri = (s) => {
|
1272
|
+
s.type == xt.CHILD && (s._$AP ?? (s._$AP = si), s._$AQ ?? (s._$AQ = ii));
|
1273
1273
|
};
|
1274
|
-
class
|
1274
|
+
class ue extends pe {
|
1275
1275
|
constructor() {
|
1276
1276
|
super(...arguments), this._$AN = void 0;
|
1277
1277
|
}
|
1278
1278
|
_$AT(t, e, i) {
|
1279
|
-
super._$AT(t, e, i),
|
1279
|
+
super._$AT(t, e, i), de(this), this.isConnected = t._$AU;
|
1280
1280
|
}
|
1281
1281
|
_$AO(t, e = !0) {
|
1282
1282
|
var i, r;
|
1283
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (j(this, t),
|
1283
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (j(this, t), Q(this));
|
1284
1284
|
}
|
1285
1285
|
setValue(t) {
|
1286
|
-
if (
|
1286
|
+
if (ei(this._$Ct))
|
1287
1287
|
this._$Ct._$AI(t, this);
|
1288
1288
|
else {
|
1289
1289
|
const e = [...this._$Ct._$AH];
|
@@ -1295,34 +1295,34 @@ class de extends le {
|
|
1295
1295
|
reconnected() {
|
1296
1296
|
}
|
1297
1297
|
}
|
1298
|
-
const
|
1299
|
-
let
|
1300
|
-
const
|
1298
|
+
const ni = /* @__PURE__ */ new WeakMap();
|
1299
|
+
let Ft = 0;
|
1300
|
+
const dt = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */ new WeakSet(), Vt = () => new Promise((s) => requestAnimationFrame(s)), oi = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], qt = (s, t) => {
|
1301
1301
|
const e = s - t;
|
1302
1302
|
return e === 0 ? void 0 : e;
|
1303
|
-
},
|
1303
|
+
}, Kt = (s, t) => {
|
1304
1304
|
const e = s / t;
|
1305
1305
|
return e === 1 ? void 0 : e;
|
1306
|
-
},
|
1307
|
-
const e =
|
1306
|
+
}, ut = { left: (s, t) => {
|
1307
|
+
const e = qt(s, t);
|
1308
1308
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1309
1309
|
}, top: (s, t) => {
|
1310
|
-
const e =
|
1310
|
+
const e = qt(s, t);
|
1311
1311
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1312
1312
|
}, width: (s, t) => {
|
1313
1313
|
let e;
|
1314
1314
|
t === 0 && (t = 1, e = { width: "1px" });
|
1315
|
-
const i =
|
1315
|
+
const i = Kt(s, t);
|
1316
1316
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1317
1317
|
}, height: (s, t) => {
|
1318
1318
|
let e;
|
1319
1319
|
t === 0 && (t = 1, e = { height: "1px" });
|
1320
|
-
const i =
|
1320
|
+
const i = Kt(s, t);
|
1321
1321
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1322
|
-
} },
|
1323
|
-
class
|
1322
|
+
} }, ai = { duration: 333, easing: "ease-in-out" }, ci = ["left", "top", "width", "height", "opacity", "color", "background"], Gt = /* @__PURE__ */ new WeakMap();
|
1323
|
+
class hi extends ue {
|
1324
1324
|
constructor(t) {
|
1325
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
1325
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === xt.CHILD)
|
1326
1326
|
throw Error("The `animate` directive must be used in attribute position.");
|
1327
1327
|
this.createFinished();
|
1328
1328
|
}
|
@@ -1340,7 +1340,7 @@ class ci extends de {
|
|
1340
1340
|
return d;
|
1341
1341
|
}
|
1342
1342
|
getController() {
|
1343
|
-
return
|
1343
|
+
return ni.get(this.u);
|
1344
1344
|
}
|
1345
1345
|
isDisabled() {
|
1346
1346
|
var t;
|
@@ -1349,17 +1349,17 @@ class ci extends de {
|
|
1349
1349
|
update(t, [e]) {
|
1350
1350
|
var r;
|
1351
1351
|
const i = this.u === void 0;
|
1352
|
-
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element,
|
1352
|
+
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, Gt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
1353
1353
|
}
|
1354
1354
|
p(t) {
|
1355
1355
|
t = t ?? {};
|
1356
1356
|
const e = this.getController();
|
1357
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1357
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = ci), this.options = t;
|
1358
1358
|
}
|
1359
1359
|
m() {
|
1360
1360
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1361
1361
|
return this.options.properties.forEach((r) => {
|
1362
|
-
const n = e[r] ?? (
|
1362
|
+
const n = e[r] ?? (ut[r] ? void 0 : i[r]), o = Number(n);
|
1363
1363
|
t[r] = isNaN(o) ? n + "" : o;
|
1364
1364
|
}), t;
|
1365
1365
|
}
|
@@ -1381,17 +1381,17 @@ class ci extends de {
|
|
1381
1381
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
1382
1382
|
return;
|
1383
1383
|
let t;
|
1384
|
-
this.prepare(), await
|
1384
|
+
this.prepare(), await Vt;
|
1385
1385
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
|
1386
1386
|
if (this.A !== void 0) {
|
1387
1387
|
const { from: n, to: o } = this.N(this.A, r, e);
|
1388
1388
|
this.log("measured", [this.A, r, n, o]), t = this.calculateKeyframes(n, o);
|
1389
1389
|
} else {
|
1390
|
-
const n =
|
1390
|
+
const n = dt.get(this.options.inId);
|
1391
1391
|
if (n) {
|
1392
|
-
|
1392
|
+
dt.delete(this.options.inId);
|
1393
1393
|
const { from: o, to: a } = this.N(n, r, 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,
|
1394
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Ft++, t.forEach((c) => c.zIndex = Ft);
|
1395
1395
|
} else
|
1396
1396
|
this.options.in && (t = [...this.options.in, {}]);
|
1397
1397
|
}
|
@@ -1408,9 +1408,9 @@ class ci extends de {
|
|
1408
1408
|
}
|
1409
1409
|
async disconnected() {
|
1410
1410
|
var e;
|
1411
|
-
if (!this.h || (this.options.id !== void 0 &&
|
1411
|
+
if (!this.h || (this.options.id !== void 0 && dt.set(this.options.id, this.A), this.options.out === void 0))
|
1412
1412
|
return;
|
1413
|
-
if (this.prepare(), await
|
1413
|
+
if (this.prepare(), await Vt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
1414
1414
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
1415
1415
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1416
1416
|
const r = this.m();
|
@@ -1436,19 +1436,19 @@ class ci extends de {
|
|
1436
1436
|
O() {
|
1437
1437
|
const t = [];
|
1438
1438
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1439
|
-
const i =
|
1439
|
+
const i = Gt.get(e);
|
1440
1440
|
i && !i.isDisabled() && i && t.push(i);
|
1441
1441
|
}
|
1442
1442
|
return t;
|
1443
1443
|
}
|
1444
1444
|
get isHostRendered() {
|
1445
|
-
const t =
|
1445
|
+
const t = Yt.has(this.u);
|
1446
1446
|
return t || this.u.updateComplete.then(() => {
|
1447
|
-
|
1447
|
+
Yt.add(this.u);
|
1448
1448
|
}), t;
|
1449
1449
|
}
|
1450
1450
|
j(t, e = this.O()) {
|
1451
|
-
const i = { ...
|
1451
|
+
const i = { ...ai };
|
1452
1452
|
return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
|
1453
1453
|
}
|
1454
1454
|
N(t, e, i) {
|
@@ -1465,8 +1465,8 @@ class ci extends de {
|
|
1465
1465
|
const a = {};
|
1466
1466
|
for (const c in e) {
|
1467
1467
|
const h = t[c], l = e[c];
|
1468
|
-
if (c in
|
1469
|
-
const p =
|
1468
|
+
if (c in ut) {
|
1469
|
+
const p = ut[c];
|
1470
1470
|
if (h === void 0 || l === void 0)
|
1471
1471
|
continue;
|
1472
1472
|
const f = p(h, l);
|
@@ -1499,16 +1499,16 @@ class ci extends de {
|
|
1499
1499
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1500
1500
|
}
|
1501
1501
|
}
|
1502
|
-
const
|
1502
|
+
const li = Ct(hi), pi = { 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
1503
|
/**
|
1504
1504
|
* @license
|
1505
1505
|
* Copyright 2018 Google LLC
|
1506
1506
|
* SPDX-License-Identifier: BSD-3-Clause
|
1507
1507
|
*/
|
1508
|
-
const
|
1508
|
+
const di = Ct(class extends pe {
|
1509
1509
|
constructor(s) {
|
1510
1510
|
var t;
|
1511
|
-
if (super(s), s.type !==
|
1511
|
+
if (super(s), s.type !== xt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
1512
1512
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1513
1513
|
}
|
1514
1514
|
render(s) {
|
@@ -1529,21 +1529,21 @@ const pi = xt(class extends le {
|
|
1529
1529
|
const o = !!t[n];
|
1530
1530
|
o === this.st.has(n) || (r = this.nt) != null && r.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
|
1531
1531
|
}
|
1532
|
-
return
|
1532
|
+
return O;
|
1533
1533
|
}
|
1534
|
-
}),
|
1534
|
+
}), V = (s, t, e) => {
|
1535
1535
|
s && e.style.setProperty(t, s);
|
1536
|
-
},
|
1536
|
+
}, fe = (s, t) => {
|
1537
1537
|
var e, i, r, n;
|
1538
|
-
|
1538
|
+
V((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), V(
|
1539
1539
|
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1540
1540
|
"--text-on-primary-background",
|
1541
1541
|
t
|
1542
|
-
),
|
1542
|
+
), V(
|
1543
1543
|
(r = s.colors) == null ? void 0 : r.secondaryBackground,
|
1544
1544
|
"--secondary-background",
|
1545
1545
|
t
|
1546
|
-
),
|
1546
|
+
), V(
|
1547
1547
|
(n = s.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
1548
1548
|
"--text-on-secondary-background",
|
1549
1549
|
t
|
@@ -1554,10 +1554,10 @@ const pi = xt(class extends le {
|
|
1554
1554
|
* Copyright 2020 Google LLC
|
1555
1555
|
* SPDX-License-Identifier: BSD-3-Clause
|
1556
1556
|
*/
|
1557
|
-
const
|
1558
|
-
class
|
1557
|
+
const ge = () => new ui();
|
1558
|
+
class ui {
|
1559
1559
|
}
|
1560
|
-
const
|
1560
|
+
const ft = /* @__PURE__ */ new WeakMap(), me = Ct(class extends ue {
|
1561
1561
|
render(s) {
|
1562
1562
|
return d;
|
1563
1563
|
}
|
@@ -1569,14 +1569,14 @@ const ut = /* @__PURE__ */ new WeakMap(), ge = xt(class extends de {
|
|
1569
1569
|
rt(s) {
|
1570
1570
|
if (typeof this.Y == "function") {
|
1571
1571
|
const t = this.ht ?? globalThis;
|
1572
|
-
let e =
|
1573
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1572
|
+
let e = ft.get(t);
|
1573
|
+
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, s), s !== void 0 && this.Y.call(this.ht, s);
|
1574
1574
|
} else
|
1575
1575
|
this.Y.value = s;
|
1576
1576
|
}
|
1577
1577
|
get lt() {
|
1578
1578
|
var s, t;
|
1579
|
-
return typeof this.Y == "function" ? (s =
|
1579
|
+
return typeof this.Y == "function" ? (s = ft.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
1580
1580
|
}
|
1581
1581
|
disconnected() {
|
1582
1582
|
this.lt === this.ct && this.rt(void 0);
|
@@ -1585,14 +1585,14 @@ const ut = /* @__PURE__ */ new WeakMap(), ge = xt(class extends de {
|
|
1585
1585
|
this.rt(this.ct);
|
1586
1586
|
}
|
1587
1587
|
});
|
1588
|
-
var
|
1589
|
-
for (var r = i > 1 ? void 0 : i ?
|
1588
|
+
var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, rt = (s, t, e, i) => {
|
1589
|
+
for (var r = i > 1 ? void 0 : i ? gi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1590
1590
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1591
|
-
return i && r &&
|
1591
|
+
return i && r && fi(t, e, r), r;
|
1592
1592
|
};
|
1593
|
-
class
|
1593
|
+
class x extends $ {
|
1594
1594
|
constructor() {
|
1595
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef =
|
1595
|
+
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = ge(), this.widgetActive$ = new se(!1), this.componentIsDestroyed$ = new $t();
|
1596
1596
|
}
|
1597
1597
|
async connectedCallback() {
|
1598
1598
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -1612,21 +1612,21 @@ class A extends $ {
|
|
1612
1612
|
}
|
1613
1613
|
_applyBranding() {
|
1614
1614
|
var t;
|
1615
|
-
(t = this.application) != null && t.settings &&
|
1615
|
+
(t = this.application) != null && t.settings && fe(this.application.settings.branding, this);
|
1616
1616
|
}
|
1617
1617
|
async _renderSymbol() {
|
1618
1618
|
var a, c, h;
|
1619
1619
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1620
1620
|
if (e)
|
1621
|
-
return
|
1621
|
+
return R` <img src=${e} class="trigger-icon" alt="" /> `;
|
1622
1622
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1623
1623
|
if (!i)
|
1624
1624
|
return d;
|
1625
|
-
const r = async (l) =>
|
1625
|
+
const r = async (l) => pi, { type: n, content: o } = i;
|
1626
1626
|
switch (n) {
|
1627
1627
|
case "Telia": {
|
1628
1628
|
const l = await r();
|
1629
|
-
return l ?
|
1629
|
+
return l ? R`<telia-icon
|
1630
1630
|
class="trigger-icon"
|
1631
1631
|
svg=${l.svg}
|
1632
1632
|
size="lg"
|
@@ -1638,15 +1638,15 @@ class A extends $ {
|
|
1638
1638
|
}
|
1639
1639
|
render() {
|
1640
1640
|
var t, e, i, r;
|
1641
|
-
return
|
1642
|
-
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ?
|
1641
|
+
return R`<div class="trigger-container" ${me(this.containerRef)}>
|
1642
|
+
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? R`
|
1643
1643
|
<button
|
1644
1644
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1645
1645
|
class="trigger-label"
|
1646
1646
|
@click=${this.toggleActive}
|
1647
|
-
${
|
1647
|
+
${li({
|
1648
1648
|
keyframeOptions: {},
|
1649
|
-
in:
|
1649
|
+
in: oi,
|
1650
1650
|
stabilizeOut: !0,
|
1651
1651
|
skipInitial: !1
|
1652
1652
|
})}
|
@@ -1657,7 +1657,7 @@ class A extends $ {
|
|
1657
1657
|
|
1658
1658
|
<button
|
1659
1659
|
label="Widget trigger"
|
1660
|
-
class=${
|
1660
|
+
class=${di({
|
1661
1661
|
trigger: !0,
|
1662
1662
|
active: this.active,
|
1663
1663
|
rendered: this.loaded
|
@@ -1696,8 +1696,8 @@ class A extends $ {
|
|
1696
1696
|
</div>`;
|
1697
1697
|
}
|
1698
1698
|
}
|
1699
|
-
|
1700
|
-
|
1699
|
+
x.styles = [
|
1700
|
+
U`
|
1701
1701
|
:host {
|
1702
1702
|
--voca-rem-multiplier: 0.625;
|
1703
1703
|
--trigger-label-bg: #f5e0ff;
|
@@ -1805,24 +1805,24 @@ A.styles = [
|
|
1805
1805
|
}
|
1806
1806
|
`
|
1807
1807
|
];
|
1808
|
-
|
1808
|
+
rt([
|
1809
1809
|
m({ attribute: !1 })
|
1810
|
-
],
|
1811
|
-
|
1812
|
-
|
1813
|
-
],
|
1814
|
-
|
1815
|
-
|
1816
|
-
],
|
1817
|
-
|
1818
|
-
|
1819
|
-
],
|
1820
|
-
var
|
1821
|
-
for (var r = i > 1 ? void 0 : i ?
|
1810
|
+
], x.prototype, "application", 2);
|
1811
|
+
rt([
|
1812
|
+
W()
|
1813
|
+
], x.prototype, "active", 2);
|
1814
|
+
rt([
|
1815
|
+
W()
|
1816
|
+
], x.prototype, "loaded", 2);
|
1817
|
+
rt([
|
1818
|
+
W()
|
1819
|
+
], x.prototype, "icon", 2);
|
1820
|
+
var mi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, S = (s, t, e, i) => {
|
1821
|
+
for (var r = i > 1 ? void 0 : i ? vi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1822
1822
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1823
|
-
return i && r &&
|
1823
|
+
return i && r && mi(t, e, r), r;
|
1824
1824
|
};
|
1825
|
-
const
|
1825
|
+
const yi = (s) => {
|
1826
1826
|
class t extends s {
|
1827
1827
|
constructor() {
|
1828
1828
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1848,7 +1848,7 @@ const vi = (s) => {
|
|
1848
1848
|
}
|
1849
1849
|
return t.styles = [
|
1850
1850
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1851
|
-
|
1851
|
+
U`
|
1852
1852
|
:host {
|
1853
1853
|
font-family: var(--font-family);
|
1854
1854
|
grid-column: span var(--width);
|
@@ -1861,29 +1861,29 @@ const vi = (s) => {
|
|
1861
1861
|
box-sizing: border-box;
|
1862
1862
|
}
|
1863
1863
|
`
|
1864
|
-
],
|
1864
|
+
], S([
|
1865
1865
|
m()
|
1866
|
-
], t.prototype, "properties", 2),
|
1866
|
+
], t.prototype, "properties", 2), S([
|
1867
1867
|
m()
|
1868
|
-
], t.prototype, "context", 2),
|
1868
|
+
], t.prototype, "context", 2), S([
|
1869
1869
|
m()
|
1870
|
-
], t.prototype, "layout", 2),
|
1870
|
+
], t.prototype, "layout", 2), S([
|
1871
1871
|
m()
|
1872
|
-
], t.prototype, "name", 2),
|
1872
|
+
], t.prototype, "name", 2), S([
|
1873
1873
|
m()
|
1874
|
-
], t.prototype, "type", 2),
|
1874
|
+
], t.prototype, "type", 2), S([
|
1875
1875
|
m({ attribute: !1 })
|
1876
|
-
], t.prototype, "application", 2),
|
1876
|
+
], t.prototype, "application", 2), S([
|
1877
1877
|
m({ attribute: !1 })
|
1878
1878
|
], t.prototype, "parent", 2), t;
|
1879
1879
|
};
|
1880
|
-
class
|
1880
|
+
class St extends yi($) {
|
1881
1881
|
render() {
|
1882
|
-
return
|
1882
|
+
return R`Non resolved component`;
|
1883
1883
|
}
|
1884
1884
|
}
|
1885
|
-
|
1886
|
-
|
1885
|
+
St.styles = [
|
1886
|
+
U`
|
1887
1887
|
:host {
|
1888
1888
|
display: block;
|
1889
1889
|
}
|
@@ -1894,7 +1894,7 @@ Ct.styles = [
|
|
1894
1894
|
* Copyright 2021 Google LLC
|
1895
1895
|
* SPDX-License-Identifier: BSD-3-Clause
|
1896
1896
|
*/
|
1897
|
-
function*
|
1897
|
+
function* bi(s, t) {
|
1898
1898
|
if (s !== void 0) {
|
1899
1899
|
let e = 0;
|
1900
1900
|
for (const i of s)
|
@@ -1907,7 +1907,7 @@ var y = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))
|
|
1907
1907
|
* Copyright 2021 Google LLC
|
1908
1908
|
* SPDX-License-Identifier: BSD-3-Clause
|
1909
1909
|
*/
|
1910
|
-
let
|
1910
|
+
let $i = class extends Event {
|
1911
1911
|
constructor(t, e, i) {
|
1912
1912
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
|
1913
1913
|
}
|
@@ -1922,7 +1922,7 @@ let bi = class extends Event {
|
|
1922
1922
|
* Copyright 2021 Google LLC
|
1923
1923
|
* SPDX-License-Identifier: BSD-3-Clause
|
1924
1924
|
*/
|
1925
|
-
class
|
1925
|
+
class _i {
|
1926
1926
|
get value() {
|
1927
1927
|
return this.o;
|
1928
1928
|
}
|
@@ -1957,12 +1957,12 @@ class $i {
|
|
1957
1957
|
* Copyright 2021 Google LLC
|
1958
1958
|
* SPDX-License-Identifier: BSD-3-Clause
|
1959
1959
|
*/
|
1960
|
-
let
|
1960
|
+
let wi = class extends Event {
|
1961
1961
|
constructor(t) {
|
1962
1962
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
1963
1963
|
}
|
1964
1964
|
};
|
1965
|
-
class
|
1965
|
+
class Zt extends _i {
|
1966
1966
|
constructor(t, e, i) {
|
1967
1967
|
var r, n;
|
1968
1968
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
@@ -1974,7 +1974,7 @@ class Gt extends $i {
|
|
1974
1974
|
return;
|
1975
1975
|
const c = /* @__PURE__ */ new Set();
|
1976
1976
|
for (const [h, { consumerHost: l }] of this.subscriptions)
|
1977
|
-
c.has(h) || (c.add(h), l.dispatchEvent(new
|
1977
|
+
c.has(h) || (c.add(h), l.dispatchEvent(new $i(this.context, h, !0)));
|
1978
1978
|
o.stopPropagation();
|
1979
1979
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (r = this.host).addController) == null || n.call(r, this);
|
1980
1980
|
}
|
@@ -1982,7 +1982,7 @@ class Gt extends $i {
|
|
1982
1982
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
1983
1983
|
}
|
1984
1984
|
hostConnected() {
|
1985
|
-
this.host.dispatchEvent(new
|
1985
|
+
this.host.dispatchEvent(new wi(this.context));
|
1986
1986
|
}
|
1987
1987
|
}
|
1988
1988
|
/**
|
@@ -1990,12 +1990,12 @@ class Gt extends $i {
|
|
1990
1990
|
* Copyright 2017 Google LLC
|
1991
1991
|
* SPDX-License-Identifier: BSD-3-Clause
|
1992
1992
|
*/
|
1993
|
-
function
|
1993
|
+
function Ai({ context: s }) {
|
1994
1994
|
return (t, e) => {
|
1995
1995
|
const i = /* @__PURE__ */ new WeakMap();
|
1996
1996
|
if (typeof e == "object")
|
1997
1997
|
return e.addInitializer(function() {
|
1998
|
-
i.set(this, new
|
1998
|
+
i.set(this, new Zt(this, { context: s }));
|
1999
1999
|
}), { get() {
|
2000
2000
|
return t.get.call(this);
|
2001
2001
|
}, set(r) {
|
@@ -2007,7 +2007,7 @@ function wi({ context: s }) {
|
|
2007
2007
|
} };
|
2008
2008
|
{
|
2009
2009
|
t.constructor.addInitializer((o) => {
|
2010
|
-
i.set(o, new
|
2010
|
+
i.set(o, new Zt(o, { context: s }));
|
2011
2011
|
});
|
2012
2012
|
const r = Object.getOwnPropertyDescriptor(t, e);
|
2013
2013
|
let n;
|
@@ -2028,15 +2028,15 @@ function wi({ context: s }) {
|
|
2028
2028
|
}
|
2029
2029
|
};
|
2030
2030
|
}
|
2031
|
-
var
|
2032
|
-
for (var r = i > 1 ? void 0 : i ?
|
2031
|
+
var xi = Object.defineProperty, Ci = Object.getOwnPropertyDescriptor, Si = (s, t, e, i) => {
|
2032
|
+
for (var r = i > 1 ? void 0 : i ? Ci(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
2033
2033
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
2034
|
-
return i && r &&
|
2034
|
+
return i && r && xi(t, e, r), r;
|
2035
2035
|
};
|
2036
|
-
const
|
2037
|
-
class
|
2036
|
+
const Ei = "application";
|
2037
|
+
class nt extends $ {
|
2038
2038
|
constructor() {
|
2039
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
2039
|
+
super(...arguments), this.nodes = [], this.wrapperRef = ge();
|
2040
2040
|
}
|
2041
2041
|
addChild(t) {
|
2042
2042
|
t.parent = this, this.nodes.push(t);
|
@@ -2045,7 +2045,7 @@ class rt extends $ {
|
|
2045
2045
|
if (!this.wrapperRef.value)
|
2046
2046
|
return;
|
2047
2047
|
const t = this.application.settings;
|
2048
|
-
t != null && t.branding &&
|
2048
|
+
t != null && t.branding && fe(t.branding, this.wrapperRef.value);
|
2049
2049
|
}
|
2050
2050
|
applyStyles() {
|
2051
2051
|
if (!this.wrapperRef.value)
|
@@ -2059,12 +2059,12 @@ class rt extends $ {
|
|
2059
2059
|
this.applyBranding(), this.applyStyles();
|
2060
2060
|
}
|
2061
2061
|
render() {
|
2062
|
-
return this.application.renderStrategy === y.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")),
|
2063
|
-
${
|
2062
|
+
return this.application.renderStrategy === y.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")), R`<div class="widget-container" ${me(this.wrapperRef)}>
|
2063
|
+
${bi(this.nodes, (t) => t)}
|
2064
2064
|
</div>`;
|
2065
2065
|
}
|
2066
2066
|
}
|
2067
|
-
|
2067
|
+
nt.styles = U`
|
2068
2068
|
:host {
|
2069
2069
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2070
2070
|
--spacing-xs: 0.2rem;
|
@@ -2175,11 +2175,11 @@ rt.styles = I`
|
|
2175
2175
|
pointer-events: none;
|
2176
2176
|
}
|
2177
2177
|
`;
|
2178
|
-
|
2178
|
+
Si([
|
2179
2179
|
m({ attribute: !1 }),
|
2180
|
-
|
2181
|
-
],
|
2182
|
-
class
|
2180
|
+
Ai({ context: Ei })
|
2181
|
+
], nt.prototype, "application", 2);
|
2182
|
+
class Pi {
|
2183
2183
|
constructor() {
|
2184
2184
|
this.root = this.createRoot();
|
2185
2185
|
}
|
@@ -2219,12 +2219,12 @@ class Ei {
|
|
2219
2219
|
return r(this, this.root, [n], o), this.root;
|
2220
2220
|
}
|
2221
2221
|
createRoot() {
|
2222
|
-
return new
|
2222
|
+
return new nt();
|
2223
2223
|
}
|
2224
2224
|
createNode(t, e) {
|
2225
2225
|
const i = this.resolveComponent(e);
|
2226
2226
|
if (!i)
|
2227
|
-
return console.warn(`Unable to resolve component: ${e}`), new
|
2227
|
+
return console.warn(`Unable to resolve component: ${e}`), new St();
|
2228
2228
|
const r = new i();
|
2229
2229
|
return r.type = e, r.name = t, r;
|
2230
2230
|
}
|
@@ -2235,7 +2235,7 @@ class Ei {
|
|
2235
2235
|
return this.root;
|
2236
2236
|
}
|
2237
2237
|
}
|
2238
|
-
const
|
2238
|
+
const ve = class {
|
2239
2239
|
constructor() {
|
2240
2240
|
this.components = /* @__PURE__ */ new Map();
|
2241
2241
|
}
|
@@ -2255,34 +2255,50 @@ const me = class {
|
|
2255
2255
|
await Promise.all(s);
|
2256
2256
|
}
|
2257
2257
|
defineAsWebComponent(s, t) {
|
2258
|
-
const e =
|
2258
|
+
const e = ve.ResolveWebComponentName(s);
|
2259
2259
|
customElements.get(e) || customElements.define(e, t);
|
2260
2260
|
}
|
2261
2261
|
};
|
2262
|
-
let
|
2263
|
-
|
2264
|
-
|
2265
|
-
|
2266
|
-
|
2267
|
-
|
2268
|
-
_prefixKey(t) {
|
2269
|
-
return `ace_${this.widgetId.substring(0, 7)}-${t}`;
|
2262
|
+
let ye = ve;
|
2263
|
+
ye.ResolveWebComponentName = (s) => `ace-${s}`;
|
2264
|
+
var _ = /* @__PURE__ */ ((s) => (s.Mandatory = "mandatory", s.Preferences = "preferences", s.Analytics = "analytics", s))(_ || {});
|
2265
|
+
class Oi {
|
2266
|
+
constructor(t, e, i) {
|
2267
|
+
this.widgetId = t, this.storage = e === "localStorage" ? window.localStorage : window.sessionStorage, this.policy = i;
|
2270
2268
|
}
|
2271
|
-
set(t, e) {
|
2272
|
-
|
2269
|
+
set(t, e, i) {
|
2270
|
+
if (this.policy[i]) {
|
2271
|
+
const r = { value: e, category: i };
|
2272
|
+
this.storage.setItem(this._prefixKey(t), JSON.stringify(r));
|
2273
|
+
} else
|
2274
|
+
console.warn(
|
2275
|
+
`Storage policy does not allow storing items in category: ${i}`
|
2276
|
+
);
|
2273
2277
|
}
|
2274
2278
|
get(t) {
|
2275
|
-
const e =
|
2279
|
+
const e = this.storage.getItem(this._prefixKey(t));
|
2276
2280
|
if (!e)
|
2277
2281
|
return null;
|
2278
2282
|
try {
|
2279
|
-
|
2283
|
+
const i = JSON.parse(e);
|
2284
|
+
return this.policy[i.category] ? i.value : (console.warn(
|
2285
|
+
`Storage policy does not allow retrieving items from category: ${i.category}`
|
2286
|
+
), null);
|
2280
2287
|
} catch {
|
2281
|
-
return
|
2288
|
+
return null;
|
2282
2289
|
}
|
2283
2290
|
}
|
2291
|
+
removeItem(t) {
|
2292
|
+
this.storage.removeItem(this._prefixKey(t));
|
2293
|
+
}
|
2294
|
+
updatePolicy(t) {
|
2295
|
+
this.policy = t;
|
2296
|
+
}
|
2297
|
+
_prefixKey(t) {
|
2298
|
+
return `ace_${this.widgetId.substring(0, 7)}-${t}`;
|
2299
|
+
}
|
2284
2300
|
}
|
2285
|
-
class
|
2301
|
+
class Ti {
|
2286
2302
|
constructor() {
|
2287
2303
|
this.texts = /* @__PURE__ */ new Map();
|
2288
2304
|
}
|
@@ -2297,12 +2313,18 @@ class Oi {
|
|
2297
2313
|
return this.texts.get(t) || e;
|
2298
2314
|
}
|
2299
2315
|
}
|
2300
|
-
class
|
2316
|
+
class Ri {
|
2301
2317
|
constructor(t, e, i, r, n) {
|
2302
|
-
this.id = t, this.name = e, this.container = i, this.settings = r, this.options = n, this.platform = new
|
2318
|
+
this.id = t, this.name = e, this.container = i, this.settings = r, this.options = n, this.platform = new Pi(), this.texts = new Ti(), this.renderStrategy = y.Inline, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new ye(), this.components = [], this.trigger = null, this.renderStrategy = this.options.renderStrategy || y.Inline, this.triggerIcon = this.options.triggerIcon;
|
2319
|
+
const o = {
|
2320
|
+
[_.Mandatory]: !0,
|
2321
|
+
[_.Preferences]: !0,
|
2322
|
+
[_.Analytics]: !0
|
2323
|
+
};
|
2324
|
+
this.storage = new Oi(this.id, "sessionStorage", o), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings", r), this.texts.loadTexts(r.texts || {});
|
2303
2325
|
}
|
2304
2326
|
async activate() {
|
2305
|
-
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(
|
2327
|
+
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(re.Ready), this.autoActivate) {
|
2306
2328
|
const t = this.render();
|
2307
2329
|
t && this._getTargetElement().appendChild(t);
|
2308
2330
|
}
|
@@ -2321,16 +2343,24 @@ class Ti {
|
|
2321
2343
|
return this.plugins.push(t), this;
|
2322
2344
|
}
|
2323
2345
|
appendToDOM() {
|
2324
|
-
this.root && (this.root.classList.add("expanded"), this.root.classList.remove("hidden"), document.body.appendChild(this.root)), this.storage.set("open", "true");
|
2346
|
+
this.root && (this.root.classList.add("expanded"), this.root.classList.remove("hidden"), document.body.appendChild(this.root)), this.storage.set("open", "true", _.Mandatory);
|
2325
2347
|
}
|
2326
2348
|
hide() {
|
2327
|
-
this.root && (this.root.classList.add("hidden"), this.root.classList.remove("expanded")), this.storage.set("open", "false");
|
2349
|
+
this.root && (this.root.classList.add("hidden"), this.root.classList.remove("expanded")), this.storage.set("open", "false", _.Mandatory);
|
2328
2350
|
}
|
2329
2351
|
mute() {
|
2330
|
-
this.storage.set(
|
2352
|
+
this.storage.set(
|
2353
|
+
"muteAudioNotifications",
|
2354
|
+
"true",
|
2355
|
+
_.Mandatory
|
2356
|
+
);
|
2331
2357
|
}
|
2332
2358
|
unmute() {
|
2333
|
-
this.storage.set(
|
2359
|
+
this.storage.set(
|
2360
|
+
"muteAudioNotifications",
|
2361
|
+
"false",
|
2362
|
+
_.Mandatory
|
2363
|
+
);
|
2334
2364
|
}
|
2335
2365
|
registerComponent(t, e) {
|
2336
2366
|
this.componentResolver.registerComponent(t, e);
|
@@ -2351,22 +2381,22 @@ class Ti {
|
|
2351
2381
|
let e = document.querySelector(
|
2352
2382
|
`ace-trigger-slot.${t}`
|
2353
2383
|
);
|
2354
|
-
return e || (e = new
|
2384
|
+
return e || (e = new st(), e.anchor = this.anchor, document.body.appendChild(e)), e;
|
2355
2385
|
}
|
2356
2386
|
return document.body;
|
2357
2387
|
}
|
2358
2388
|
render() {
|
2359
2389
|
if (this.renderStrategy === y.Trigger) {
|
2360
|
-
const t = new
|
2390
|
+
const t = new x();
|
2361
2391
|
return t.application = this, this.trigger = t, this.storage.get("open") && this.trigger.toggleActive(), t;
|
2362
2392
|
}
|
2363
2393
|
return this.root;
|
2364
2394
|
}
|
2365
2395
|
}
|
2366
|
-
const
|
2396
|
+
const zi = (s) => new tt(s), be = class {
|
2367
2397
|
// TODO:
|
2368
2398
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
2369
|
-
constructor(s =
|
2399
|
+
constructor(s = be.endpoint) {
|
2370
2400
|
this._endpoint = s;
|
2371
2401
|
}
|
2372
2402
|
async getSite(s) {
|
@@ -2397,11 +2427,11 @@ const Bi = (s) => new Q(s), ye = class {
|
|
2397
2427
|
} : null;
|
2398
2428
|
}
|
2399
2429
|
};
|
2400
|
-
let
|
2401
|
-
|
2402
|
-
class
|
2430
|
+
let tt = be;
|
2431
|
+
tt.endpoint = "https://widgets.ace.teliacompany.net/api";
|
2432
|
+
class Ii {
|
2403
2433
|
constructor() {
|
2404
|
-
this.applications = [], this.container = new
|
2434
|
+
this.applications = [], this.container = new Ut("environment", this), setTimeout(() => {
|
2405
2435
|
this.notifyWidgetsOfCreation();
|
2406
2436
|
}, 1e3);
|
2407
2437
|
}
|
@@ -2426,7 +2456,7 @@ class Ri {
|
|
2426
2456
|
});
|
2427
2457
|
}
|
2428
2458
|
registerApp(t, e, i, r) {
|
2429
|
-
const n = new
|
2459
|
+
const n = new Ut(e, this), o = new Ri(t, e, n, i, r);
|
2430
2460
|
this.applications.push(o);
|
2431
2461
|
}
|
2432
2462
|
plugin(t) {
|
@@ -2435,9 +2465,9 @@ class Ri {
|
|
2435
2465
|
}), this;
|
2436
2466
|
}
|
2437
2467
|
}
|
2438
|
-
class
|
2468
|
+
class Ui {
|
2439
2469
|
constructor(t) {
|
2440
|
-
this.configurations = [], this.httpClient = new
|
2470
|
+
this.configurations = [], this.httpClient = new tt(), this.httpClient = new tt(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
|
2441
2471
|
}
|
2442
2472
|
async load(t) {
|
2443
2473
|
const e = await this.httpClient.getSite(t);
|
@@ -2462,7 +2492,7 @@ class Ii {
|
|
2462
2492
|
}
|
2463
2493
|
async bootstrap(t) {
|
2464
2494
|
var e;
|
2465
|
-
this.url && await this.load(this.url), this.environment = new
|
2495
|
+
this.url && await this.load(this.url), this.environment = new Ii(), this.addGlobal(this.environment);
|
2466
2496
|
for await (const i of this.configurations) {
|
2467
2497
|
const r = await this.httpClient.getWidget(i.widgetId);
|
2468
2498
|
r && ((e = this.environment) == null || e.registerApp(
|
@@ -2483,12 +2513,12 @@ class Ii {
|
|
2483
2513
|
globalThis.widgets = t;
|
2484
2514
|
}
|
2485
2515
|
}
|
2486
|
-
var
|
2487
|
-
for (var r = i > 1 ? void 0 : i ?
|
2516
|
+
var ki = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, Et = (s, t, e, i) => {
|
2517
|
+
for (var r = i > 1 ? void 0 : i ? Mi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
2488
2518
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
2489
|
-
return i && r &&
|
2519
|
+
return i && r && ki(t, e, r), r;
|
2490
2520
|
};
|
2491
|
-
class
|
2521
|
+
class F extends $ {
|
2492
2522
|
constructor() {
|
2493
2523
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
2494
2524
|
}
|
@@ -2514,47 +2544,48 @@ class W extends $ {
|
|
2514
2544
|
if (!this.widget || this.status !== "activated")
|
2515
2545
|
return d;
|
2516
2546
|
if (this.widget.renderStrategy === y.Trigger) {
|
2517
|
-
const t = new
|
2547
|
+
const t = new x();
|
2518
2548
|
return t.application = this.widget, t;
|
2519
2549
|
}
|
2520
2550
|
return this.widget.render();
|
2521
2551
|
}
|
2522
2552
|
}
|
2523
|
-
|
2524
|
-
|
2553
|
+
F.styles = [
|
2554
|
+
U`
|
2525
2555
|
:host {
|
2526
2556
|
display: block;
|
2527
2557
|
}
|
2528
2558
|
`
|
2529
2559
|
];
|
2530
|
-
|
2560
|
+
Et([
|
2531
2561
|
m({ attribute: !0 })
|
2532
|
-
],
|
2533
|
-
|
2534
|
-
|
2535
|
-
],
|
2536
|
-
|
2537
|
-
|
2538
|
-
],
|
2539
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
2540
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
2541
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
2542
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2543
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
2544
|
-
const
|
2545
|
-
await new
|
2562
|
+
], F.prototype, "name", 2);
|
2563
|
+
Et([
|
2564
|
+
W()
|
2565
|
+
], F.prototype, "widget", 2);
|
2566
|
+
Et([
|
2567
|
+
W()
|
2568
|
+
], F.prototype, "status", 2);
|
2569
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", st);
|
2570
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", x);
|
2571
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", St);
|
2572
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", nt);
|
2573
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", F);
|
2574
|
+
const Wi = async (s, t) => {
|
2575
|
+
await new Ui(s).bootstrap(t);
|
2546
2576
|
};
|
2547
2577
|
export {
|
2548
|
-
|
2549
|
-
|
2550
|
-
|
2551
|
-
|
2552
|
-
|
2553
|
-
|
2554
|
-
|
2555
|
-
|
2556
|
-
|
2557
|
-
|
2558
|
-
|
2559
|
-
|
2578
|
+
F as AceWidget,
|
2579
|
+
Ri as Application,
|
2580
|
+
Ut as Container,
|
2581
|
+
Ii as Environment,
|
2582
|
+
tt as HttpClient,
|
2583
|
+
Ui as Site,
|
2584
|
+
_ as StorageCategory,
|
2585
|
+
Oi as StorageService,
|
2586
|
+
x as Trigger,
|
2587
|
+
yi as WidgetComponent,
|
2588
|
+
Ei as applicationContext,
|
2589
|
+
Wi as bootstrap,
|
2590
|
+
zi as createHttpClient
|
2560
2591
|
};
|