@telia-ace/widget-core-flamingo 1.1.66-rc.1 → 1.1.66
Sign up to get free protection for your applications and to get access to all the features.
- package/components/wrapper.component.d.ts +3 -0
- package/index.d.ts +1 -0
- package/index.js +57 -30
- package/index.mjs +694 -557
- package/package.json +3 -2
package/index.mjs
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
var ft = function(
|
1
|
+
var ft = function(s, t) {
|
2
2
|
return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
3
3
|
e.__proto__ = i;
|
4
4
|
} || function(e, i) {
|
5
|
-
for (var
|
6
|
-
Object.prototype.hasOwnProperty.call(i,
|
7
|
-
}, ft(
|
5
|
+
for (var r in i)
|
6
|
+
Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
7
|
+
}, ft(s, t);
|
8
8
|
};
|
9
|
-
function B(
|
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
|
-
ft(
|
12
|
+
ft(s, t);
|
13
13
|
function e() {
|
14
|
-
this.constructor =
|
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 gt(
|
19
|
-
var t = typeof Symbol == "function" && Symbol.iterator, e = t &&
|
18
|
+
function gt(s) {
|
19
|
+
var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
|
20
20
|
if (e)
|
21
|
-
return e.call(
|
22
|
-
if (
|
21
|
+
return e.call(s);
|
22
|
+
if (s && typeof s.length == "number")
|
23
23
|
return {
|
24
24
|
next: function() {
|
25
|
-
return
|
25
|
+
return s && i >= s.length && (s = void 0), { value: s && s[i++], done: !s };
|
26
26
|
}
|
27
27
|
};
|
28
28
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
29
29
|
}
|
30
|
-
function K(
|
31
|
-
var e = typeof Symbol == "function" &&
|
30
|
+
function K(s, t) {
|
31
|
+
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
32
32
|
if (!e)
|
33
|
-
return
|
34
|
-
var i = e.call(
|
33
|
+
return s;
|
34
|
+
var i = e.call(s), r, n = [], o;
|
35
35
|
try {
|
36
|
-
for (; (t === void 0 || t-- > 0) && !(
|
37
|
-
n.push(
|
36
|
+
for (; (t === void 0 || t-- > 0) && !(r = i.next()).done; )
|
37
|
+
n.push(r.value);
|
38
38
|
} catch (a) {
|
39
39
|
o = { error: a };
|
40
40
|
} finally {
|
41
41
|
try {
|
42
|
-
|
42
|
+
r && !r.done && (e = i.return) && e.call(i);
|
43
43
|
} finally {
|
44
44
|
if (o)
|
45
45
|
throw o.error;
|
@@ -47,42 +47,42 @@ function K(r, t) {
|
|
47
47
|
}
|
48
48
|
return n;
|
49
49
|
}
|
50
|
-
function G(
|
50
|
+
function G(s, t, e) {
|
51
51
|
if (e || arguments.length === 2)
|
52
|
-
for (var i = 0,
|
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]);
|
54
|
-
return
|
54
|
+
return s.concat(n || Array.prototype.slice.call(t));
|
55
55
|
}
|
56
|
-
function b(
|
57
|
-
return typeof
|
56
|
+
function b(s) {
|
57
|
+
return typeof s == "function";
|
58
58
|
}
|
59
|
-
function
|
59
|
+
function Zt(s) {
|
60
60
|
var t = function(i) {
|
61
61
|
Error.call(i), i.stack = new Error().stack;
|
62
|
-
}, e =
|
62
|
+
}, e = s(t);
|
63
63
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
64
64
|
}
|
65
|
-
var nt =
|
65
|
+
var nt = Zt(function(s) {
|
66
66
|
return function(e) {
|
67
|
-
|
68
|
-
` + e.map(function(i,
|
69
|
-
return
|
67
|
+
s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
68
|
+
` + e.map(function(i, r) {
|
69
|
+
return r + 1 + ") " + i.toString();
|
70
70
|
}).join(`
|
71
71
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
72
72
|
};
|
73
73
|
});
|
74
|
-
function mt(
|
75
|
-
if (
|
76
|
-
var e =
|
77
|
-
0 <= e &&
|
74
|
+
function mt(s, t) {
|
75
|
+
if (s) {
|
76
|
+
var e = s.indexOf(t);
|
77
|
+
0 <= e && s.splice(e, 1);
|
78
78
|
}
|
79
79
|
}
|
80
80
|
var tt = function() {
|
81
|
-
function
|
81
|
+
function s(t) {
|
82
82
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
83
83
|
}
|
84
|
-
return
|
85
|
-
var t, e, i,
|
84
|
+
return s.prototype.unsubscribe = function() {
|
85
|
+
var t, e, i, r, n;
|
86
86
|
if (!this.closed) {
|
87
87
|
this.closed = !0;
|
88
88
|
var o = this._parentage;
|
@@ -116,10 +116,10 @@ var tt = function() {
|
|
116
116
|
if (p) {
|
117
117
|
this._finalizers = null;
|
118
118
|
try {
|
119
|
-
for (var f = gt(p),
|
120
|
-
var g =
|
119
|
+
for (var f = gt(p), d = f.next(); !d.done; d = f.next()) {
|
120
|
+
var g = d.value;
|
121
121
|
try {
|
122
|
-
|
122
|
+
St(g);
|
123
123
|
} catch (v) {
|
124
124
|
n = n ?? [], v instanceof nt ? n = G(G([], K(n)), K(v.errors)) : n.push(v);
|
125
125
|
}
|
@@ -128,7 +128,7 @@ var tt = function() {
|
|
128
128
|
i = { error: v };
|
129
129
|
} finally {
|
130
130
|
try {
|
131
|
-
|
131
|
+
d && !d.done && (r = f.return) && r.call(f);
|
132
132
|
} finally {
|
133
133
|
if (i)
|
134
134
|
throw i.error;
|
@@ -138,79 +138,79 @@ var tt = function() {
|
|
138
138
|
if (n)
|
139
139
|
throw new nt(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
|
+
St(t);
|
146
146
|
else {
|
147
|
-
if (t instanceof
|
147
|
+
if (t instanceof s) {
|
148
148
|
if (t.closed || t._hasParent(this))
|
149
149
|
return;
|
150
150
|
t._addParent(this);
|
151
151
|
}
|
152
152
|
(this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
|
153
153
|
}
|
154
|
-
},
|
154
|
+
}, s.prototype._hasParent = function(t) {
|
155
155
|
var e = this._parentage;
|
156
156
|
return e === t || Array.isArray(e) && e.includes(t);
|
157
|
-
},
|
157
|
+
}, s.prototype._addParent = function(t) {
|
158
158
|
var e = this._parentage;
|
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
162
|
e === t ? this._parentage = null : Array.isArray(e) && mt(e, t);
|
163
|
-
},
|
163
|
+
}, s.prototype.remove = function(t) {
|
164
164
|
var e = this._finalizers;
|
165
|
-
e && mt(e, t), t instanceof
|
166
|
-
},
|
167
|
-
var t = new
|
165
|
+
e && mt(e, t), t instanceof s && t._removeParent(this);
|
166
|
+
}, s.EMPTY = function() {
|
167
|
+
var t = new s();
|
168
168
|
return t.closed = !0, t;
|
169
|
-
}(),
|
170
|
-
}(),
|
171
|
-
function
|
172
|
-
return
|
169
|
+
}(), s;
|
170
|
+
}(), Jt = tt.EMPTY;
|
171
|
+
function Xt(s) {
|
172
|
+
return s instanceof tt || s && "closed" in s && b(s.remove) && b(s.add) && b(s.unsubscribe);
|
173
173
|
}
|
174
|
-
function
|
175
|
-
b(
|
174
|
+
function St(s) {
|
175
|
+
b(s) ? s() : s.unsubscribe();
|
176
176
|
}
|
177
|
-
var
|
177
|
+
var Qt = {
|
178
178
|
onUnhandledError: null,
|
179
179
|
onStoppedNotification: null,
|
180
180
|
Promise: void 0,
|
181
181
|
useDeprecatedSynchronousErrorHandling: !1,
|
182
182
|
useDeprecatedNextContext: !1
|
183
183
|
}, vt = {
|
184
|
-
setTimeout: function(
|
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
|
188
|
-
return
|
187
|
+
var r = vt.delegate;
|
188
|
+
return r != null && r.setTimeout ? r.setTimeout.apply(r, G([s, t], K(e))) : setTimeout.apply(void 0, G([s, t], K(e)));
|
189
189
|
},
|
190
|
-
clearTimeout: function(
|
190
|
+
clearTimeout: function(s) {
|
191
191
|
var t = vt.delegate;
|
192
|
-
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(
|
192
|
+
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(s);
|
193
193
|
},
|
194
194
|
delegate: void 0
|
195
195
|
};
|
196
|
-
function
|
196
|
+
function ye(s) {
|
197
197
|
vt.setTimeout(function() {
|
198
|
-
throw
|
198
|
+
throw s;
|
199
199
|
});
|
200
200
|
}
|
201
201
|
function Et() {
|
202
202
|
}
|
203
|
-
function
|
204
|
-
|
203
|
+
function V(s) {
|
204
|
+
s();
|
205
205
|
}
|
206
|
-
var
|
207
|
-
B(t,
|
206
|
+
var te = function(s) {
|
207
|
+
B(t, s);
|
208
208
|
function t(e) {
|
209
|
-
var i =
|
210
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
209
|
+
var i = s.call(this) || this;
|
210
|
+
return i.isStopped = !1, e ? (i.destination = e, Xt(e) && e.add(i)) : i.destination = we, i;
|
211
211
|
}
|
212
|
-
return t.create = function(e, i,
|
213
|
-
return new yt(e, i,
|
212
|
+
return t.create = function(e, i, r) {
|
213
|
+
return new yt(e, i, r);
|
214
214
|
}, t.prototype.next = function(e) {
|
215
215
|
this.isStopped || this._next(e);
|
216
216
|
}, t.prototype.error = function(e) {
|
@@ -218,7 +218,7 @@ var Qt = function(r) {
|
|
218
218
|
}, t.prototype.complete = function() {
|
219
219
|
this.isStopped || (this.isStopped = !0, this._complete());
|
220
220
|
}, t.prototype.unsubscribe = function() {
|
221
|
-
this.closed || (this.isStopped = !0,
|
221
|
+
this.closed || (this.isStopped = !0, s.prototype.unsubscribe.call(this), this.destination = null);
|
222
222
|
}, t.prototype._next = function(e) {
|
223
223
|
this.destination.next(e);
|
224
224
|
}, t.prototype._error = function(e) {
|
@@ -234,15 +234,15 @@ var Qt = function(r) {
|
|
234
234
|
this.unsubscribe();
|
235
235
|
}
|
236
236
|
}, t;
|
237
|
-
}(tt),
|
238
|
-
function ot(
|
239
|
-
return
|
237
|
+
}(tt), be = Function.prototype.bind;
|
238
|
+
function ot(s, t) {
|
239
|
+
return be.call(s, t);
|
240
240
|
}
|
241
|
-
var
|
242
|
-
function
|
241
|
+
var $e = function() {
|
242
|
+
function s(t) {
|
243
243
|
this.partialObserver = t;
|
244
244
|
}
|
245
|
-
return
|
245
|
+
return s.prototype.next = function(t) {
|
246
246
|
var e = this.partialObserver;
|
247
247
|
if (e.next)
|
248
248
|
try {
|
@@ -250,7 +250,7 @@ var be = function() {
|
|
250
250
|
} catch (i) {
|
251
251
|
F(i);
|
252
252
|
}
|
253
|
-
},
|
253
|
+
}, s.prototype.error = function(t) {
|
254
254
|
var e = this.partialObserver;
|
255
255
|
if (e.error)
|
256
256
|
try {
|
@@ -260,7 +260,7 @@ var be = function() {
|
|
260
260
|
}
|
261
261
|
else
|
262
262
|
F(t);
|
263
|
-
},
|
263
|
+
}, s.prototype.complete = function() {
|
264
264
|
var t = this.partialObserver;
|
265
265
|
if (t.complete)
|
266
266
|
try {
|
@@ -268,20 +268,20 @@ var be = function() {
|
|
268
268
|
} catch (e) {
|
269
269
|
F(e);
|
270
270
|
}
|
271
|
-
},
|
272
|
-
}(), yt = function(
|
273
|
-
B(t,
|
274
|
-
function t(e, i,
|
275
|
-
var n =
|
271
|
+
}, s;
|
272
|
+
}(), yt = function(s) {
|
273
|
+
B(t, s);
|
274
|
+
function t(e, i, r) {
|
275
|
+
var n = s.call(this) || this, o;
|
276
276
|
if (b(e) || !e)
|
277
277
|
o = {
|
278
278
|
next: e ?? void 0,
|
279
279
|
error: i ?? void 0,
|
280
|
-
complete:
|
280
|
+
complete: r ?? void 0
|
281
281
|
};
|
282
282
|
else {
|
283
283
|
var a;
|
284
|
-
n &&
|
284
|
+
n && Qt.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
285
285
|
return n.unsubscribe();
|
286
286
|
}, o = {
|
287
287
|
next: e.next && ot(e.next, a),
|
@@ -289,56 +289,56 @@ var be = function() {
|
|
289
289
|
complete: e.complete && ot(e.complete, a)
|
290
290
|
}) : o = e;
|
291
291
|
}
|
292
|
-
return n.destination = new
|
292
|
+
return n.destination = new $e(o), n;
|
293
293
|
}
|
294
294
|
return t;
|
295
|
-
}(
|
296
|
-
function F(
|
297
|
-
|
295
|
+
}(te);
|
296
|
+
function F(s) {
|
297
|
+
ye(s);
|
298
298
|
}
|
299
|
-
function
|
300
|
-
throw
|
299
|
+
function _e(s) {
|
300
|
+
throw s;
|
301
301
|
}
|
302
|
-
var
|
302
|
+
var we = {
|
303
303
|
closed: !0,
|
304
304
|
next: Et,
|
305
|
-
error:
|
305
|
+
error: _e,
|
306
306
|
complete: Et
|
307
|
-
},
|
307
|
+
}, Ae = function() {
|
308
308
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
309
309
|
}();
|
310
|
-
function
|
311
|
-
return
|
310
|
+
function xe(s) {
|
311
|
+
return s;
|
312
312
|
}
|
313
|
-
function Ce(
|
314
|
-
return
|
315
|
-
return
|
316
|
-
return
|
313
|
+
function Ce(s) {
|
314
|
+
return s.length === 0 ? xe : s.length === 1 ? s[0] : function(e) {
|
315
|
+
return s.reduce(function(i, r) {
|
316
|
+
return r(i);
|
317
317
|
}, e);
|
318
318
|
};
|
319
319
|
}
|
320
320
|
var Pt = function() {
|
321
|
-
function
|
321
|
+
function s(t) {
|
322
322
|
t && (this._subscribe = t);
|
323
323
|
}
|
324
|
-
return
|
325
|
-
var e = new
|
324
|
+
return s.prototype.lift = function(t) {
|
325
|
+
var e = new s();
|
326
326
|
return e.source = this, e.operator = t, e;
|
327
|
-
},
|
328
|
-
var
|
329
|
-
return
|
330
|
-
var o =
|
331
|
-
n.add(a ? a.call(n, c) : c ?
|
327
|
+
}, s.prototype.subscribe = function(t, e, i) {
|
328
|
+
var r = this, n = Ee(t) ? t : new yt(t, e, i);
|
329
|
+
return V(function() {
|
330
|
+
var o = r, a = o.operator, c = o.source;
|
331
|
+
n.add(a ? a.call(n, c) : c ? r._subscribe(n) : r._trySubscribe(n));
|
332
332
|
}), n;
|
333
|
-
},
|
333
|
+
}, s.prototype._trySubscribe = function(t) {
|
334
334
|
try {
|
335
335
|
return this._subscribe(t);
|
336
336
|
} catch (e) {
|
337
337
|
t.error(e);
|
338
338
|
}
|
339
|
-
},
|
339
|
+
}, s.prototype.forEach = function(t, e) {
|
340
340
|
var i = this;
|
341
|
-
return e = Ot(e), new e(function(
|
341
|
+
return e = Ot(e), new e(function(r, n) {
|
342
342
|
var o = new yt({
|
343
343
|
next: function(a) {
|
344
344
|
try {
|
@@ -348,53 +348,53 @@ var Pt = function() {
|
|
348
348
|
}
|
349
349
|
},
|
350
350
|
error: n,
|
351
|
-
complete:
|
351
|
+
complete: r
|
352
352
|
});
|
353
353
|
i.subscribe(o);
|
354
354
|
});
|
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
|
-
},
|
358
|
+
}, s.prototype[Ae] = 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
363
|
return Ce(t)(this);
|
364
|
-
},
|
364
|
+
}, s.prototype.toPromise = function(t) {
|
365
365
|
var e = this;
|
366
|
-
return t = Ot(t), new t(function(i,
|
366
|
+
return t = Ot(t), new t(function(i, r) {
|
367
367
|
var n;
|
368
368
|
e.subscribe(function(o) {
|
369
369
|
return n = o;
|
370
370
|
}, function(o) {
|
371
|
-
return
|
371
|
+
return r(o);
|
372
372
|
}, function() {
|
373
373
|
return i(n);
|
374
374
|
});
|
375
375
|
});
|
376
|
-
},
|
377
|
-
return new
|
378
|
-
},
|
376
|
+
}, s.create = function(t) {
|
377
|
+
return new s(t);
|
378
|
+
}, s;
|
379
379
|
}();
|
380
|
-
function Ot(
|
380
|
+
function Ot(s) {
|
381
381
|
var t;
|
382
|
-
return (t =
|
382
|
+
return (t = s ?? Qt.Promise) !== null && t !== void 0 ? t : Promise;
|
383
383
|
}
|
384
|
-
function Se(
|
385
|
-
return
|
384
|
+
function Se(s) {
|
385
|
+
return s && b(s.next) && b(s.error) && b(s.complete);
|
386
386
|
}
|
387
|
-
function
|
388
|
-
return
|
387
|
+
function Ee(s) {
|
388
|
+
return s && s instanceof te || Se(s) && Xt(s);
|
389
389
|
}
|
390
|
-
var
|
390
|
+
var Pe = Zt(function(s) {
|
391
391
|
return function() {
|
392
|
-
|
392
|
+
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
393
393
|
};
|
394
|
-
}),
|
395
|
-
B(t,
|
394
|
+
}), ee = function(s) {
|
395
|
+
B(t, s);
|
396
396
|
function t() {
|
397
|
-
var e =
|
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) {
|
@@ -402,11 +402,11 @@ var Ee = Gt(function(r) {
|
|
402
402
|
return i.operator = e, i;
|
403
403
|
}, t.prototype._throwIfClosed = function() {
|
404
404
|
if (this.closed)
|
405
|
-
throw new
|
405
|
+
throw new Pe();
|
406
406
|
}, t.prototype.next = function(e) {
|
407
407
|
var i = this;
|
408
|
-
|
409
|
-
var
|
408
|
+
V(function() {
|
409
|
+
var r, n;
|
410
410
|
if (i._throwIfClosed(), !i.isStopped) {
|
411
411
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
412
412
|
try {
|
@@ -415,29 +415,29 @@ var Ee = Gt(function(r) {
|
|
415
415
|
c.next(e);
|
416
416
|
}
|
417
417
|
} catch (h) {
|
418
|
-
|
418
|
+
r = { error: h };
|
419
419
|
} finally {
|
420
420
|
try {
|
421
421
|
a && !a.done && (n = o.return) && n.call(o);
|
422
422
|
} finally {
|
423
|
-
if (
|
424
|
-
throw
|
423
|
+
if (r)
|
424
|
+
throw r.error;
|
425
425
|
}
|
426
426
|
}
|
427
427
|
}
|
428
428
|
});
|
429
429
|
}, t.prototype.error = function(e) {
|
430
430
|
var i = this;
|
431
|
-
|
431
|
+
V(function() {
|
432
432
|
if (i._throwIfClosed(), !i.isStopped) {
|
433
433
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
434
|
-
for (var
|
435
|
-
|
434
|
+
for (var r = i.observers; r.length; )
|
435
|
+
r.shift().error(e);
|
436
436
|
}
|
437
437
|
});
|
438
438
|
}, t.prototype.complete = function() {
|
439
439
|
var e = this;
|
440
|
-
|
440
|
+
V(function() {
|
441
441
|
if (e._throwIfClosed(), !e.isStopped) {
|
442
442
|
e.isStopped = !0;
|
443
443
|
for (var i = e.observers; i.length; )
|
@@ -454,46 +454,46 @@ var Ee = Gt(function(r) {
|
|
454
454
|
enumerable: !1,
|
455
455
|
configurable: !0
|
456
456
|
}), t.prototype._trySubscribe = function(e) {
|
457
|
-
return this._throwIfClosed(),
|
457
|
+
return this._throwIfClosed(), s.prototype._trySubscribe.call(this, e);
|
458
458
|
}, t.prototype._subscribe = function(e) {
|
459
459
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
460
460
|
}, t.prototype._innerSubscribe = function(e) {
|
461
|
-
var i = this,
|
462
|
-
return n || o ?
|
461
|
+
var i = this, r = this, n = r.hasError, o = r.isStopped, a = r.observers;
|
462
|
+
return n || o ? Jt : (this.currentObservers = null, a.push(e), new tt(function() {
|
463
463
|
i.currentObservers = null, mt(a, e);
|
464
464
|
}));
|
465
465
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
466
|
-
var i = this,
|
467
|
-
|
466
|
+
var i = this, r = i.hasError, n = i.thrownError, o = i.isStopped;
|
467
|
+
r ? e.error(n) : o && e.complete();
|
468
468
|
}, t.prototype.asObservable = function() {
|
469
469
|
var e = new Pt();
|
470
470
|
return e.source = this, e;
|
471
471
|
}, t.create = function(e, i) {
|
472
472
|
return new Tt(e, i);
|
473
473
|
}, t;
|
474
|
-
}(Pt), Tt = function(
|
475
|
-
B(t,
|
474
|
+
}(Pt), Tt = function(s) {
|
475
|
+
B(t, s);
|
476
476
|
function t(e, i) {
|
477
|
-
var
|
478
|
-
return
|
477
|
+
var r = s.call(this) || this;
|
478
|
+
return r.destination = e, r.source = i, r;
|
479
479
|
}
|
480
480
|
return t.prototype.next = function(e) {
|
481
|
-
var i,
|
482
|
-
(
|
481
|
+
var i, r;
|
482
|
+
(r = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || r === void 0 || r.call(i, e);
|
483
483
|
}, t.prototype.error = function(e) {
|
484
|
-
var i,
|
485
|
-
(
|
484
|
+
var i, r;
|
485
|
+
(r = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || r === void 0 || r.call(i, e);
|
486
486
|
}, t.prototype.complete = function() {
|
487
487
|
var e, i;
|
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
|
-
var i,
|
491
|
-
return (
|
490
|
+
var i, r;
|
491
|
+
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : Jt;
|
492
492
|
}, t;
|
493
|
-
}(
|
494
|
-
B(t,
|
493
|
+
}(ee), Oe = function(s) {
|
494
|
+
B(t, s);
|
495
495
|
function t(e) {
|
496
|
-
var i =
|
496
|
+
var i = s.call(this) || this;
|
497
497
|
return i._value = e, i;
|
498
498
|
}
|
499
499
|
return Object.defineProperty(t.prototype, "value", {
|
@@ -503,20 +503,20 @@ var Ee = Gt(function(r) {
|
|
503
503
|
enumerable: !1,
|
504
504
|
configurable: !0
|
505
505
|
}), t.prototype._subscribe = function(e) {
|
506
|
-
var i =
|
506
|
+
var i = s.prototype._subscribe.call(this, e);
|
507
507
|
return !i.closed && e.next(this._value), i;
|
508
508
|
}, t.prototype.getValue = function() {
|
509
|
-
var e = this, i = e.hasError,
|
509
|
+
var e = this, i = e.hasError, r = e.thrownError, n = e._value;
|
510
510
|
if (i)
|
511
|
-
throw
|
511
|
+
throw r;
|
512
512
|
return this._throwIfClosed(), n;
|
513
513
|
}, t.prototype.next = function(e) {
|
514
|
-
|
514
|
+
s.prototype.next.call(this, this._value = e);
|
515
515
|
}, t;
|
516
|
-
}(
|
516
|
+
}(ee), ie = /* @__PURE__ */ ((s) => (s.Loading = "loading", s.Ready = "ready", s))(ie || {});
|
517
517
|
class Rt {
|
518
518
|
constructor(t, e) {
|
519
|
-
this.state = new
|
519
|
+
this.state = new Oe(
|
520
520
|
"loading"
|
521
521
|
/* Loading */
|
522
522
|
), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
|
@@ -539,8 +539,8 @@ class Rt {
|
|
539
539
|
* Copyright 2019 Google LLC
|
540
540
|
* SPDX-License-Identifier: BSD-3-Clause
|
541
541
|
*/
|
542
|
-
const
|
543
|
-
let
|
542
|
+
const q = globalThis, bt = q.ShadowRoot && (q.ShadyCSS === void 0 || q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $t = Symbol(), Ut = /* @__PURE__ */ new WeakMap();
|
543
|
+
let se = class {
|
544
544
|
constructor(t, e, i) {
|
545
545
|
if (this._$cssResult$ = !0, i !== $t)
|
546
546
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
@@ -559,63 +559,63 @@ let ie = class {
|
|
559
559
|
return this.cssText;
|
560
560
|
}
|
561
561
|
};
|
562
|
-
const
|
563
|
-
const e =
|
562
|
+
const Te = (s) => new se(typeof s == "string" ? s : s + "", void 0, $t), U = (s, ...t) => {
|
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;
|
566
566
|
if (typeof o == "number")
|
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
|
-
})(
|
570
|
-
return new
|
571
|
-
},
|
569
|
+
})(r) + s[n + 1], s[0]);
|
570
|
+
return new se(e, s, $t);
|
571
|
+
}, Re = (s, t) => {
|
572
572
|
if (bt)
|
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"),
|
577
|
-
|
576
|
+
const i = document.createElement("style"), r = q.litNonce;
|
577
|
+
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
578
578
|
}
|
579
|
-
}, It = bt ? (
|
579
|
+
}, It = bt ? (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
|
584
|
-
})(
|
583
|
+
return Te(e);
|
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: Ie, getOwnPropertyDescriptor: ke, getOwnPropertyNames: je, getOwnPropertySymbols: Me, getPrototypeOf: Ne } = Object, w = globalThis, kt = w.trustedTypes, Le = kt ? kt.emptyScript : "", at = w.reactiveElementPolyfillSupport, k = (s, t) => s, Z = { toAttribute(s, t) {
|
591
591
|
switch (t) {
|
592
592
|
case Boolean:
|
593
|
-
|
593
|
+
s = s ? Le : null;
|
594
594
|
break;
|
595
595
|
case Object:
|
596
596
|
case Array:
|
597
|
-
|
597
|
+
s = s == null ? s : JSON.stringify(s);
|
598
598
|
}
|
599
|
-
return
|
600
|
-
}, fromAttribute(
|
601
|
-
let e =
|
599
|
+
return s;
|
600
|
+
}, fromAttribute(s, t) {
|
601
|
+
let e = s;
|
602
602
|
switch (t) {
|
603
603
|
case Boolean:
|
604
|
-
e =
|
604
|
+
e = s !== null;
|
605
605
|
break;
|
606
606
|
case Number:
|
607
|
-
e =
|
607
|
+
e = s === null ? null : Number(s);
|
608
608
|
break;
|
609
609
|
case Object:
|
610
610
|
case Array:
|
611
611
|
try {
|
612
|
-
e = JSON.parse(
|
612
|
+
e = JSON.parse(s);
|
613
613
|
} catch {
|
614
614
|
e = null;
|
615
615
|
}
|
616
616
|
}
|
617
617
|
return e;
|
618
|
-
} }, _t = (
|
618
|
+
} }, _t = (s, t) => !Ue(s, t), jt = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t };
|
619
619
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
620
620
|
let O = class extends HTMLElement {
|
621
621
|
static addInitializer(t) {
|
@@ -626,20 +626,20 @@ let O = class extends HTMLElement {
|
|
626
626
|
}
|
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
|
-
const i = Symbol(),
|
630
|
-
|
629
|
+
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
630
|
+
r !== void 0 && Ie(this.prototype, t, r);
|
631
631
|
}
|
632
632
|
}
|
633
633
|
static getPropertyDescriptor(t, e, i) {
|
634
|
-
const { get:
|
634
|
+
const { get: r, set: n } = ke(this.prototype, t) ?? { get() {
|
635
635
|
return this[e];
|
636
636
|
}, set(o) {
|
637
637
|
this[e] = o;
|
638
638
|
} };
|
639
639
|
return { get() {
|
640
|
-
return
|
640
|
+
return r == null ? void 0 : r.call(this);
|
641
641
|
}, set(o) {
|
642
|
-
const a =
|
642
|
+
const a = r == null ? void 0 : r.call(this);
|
643
643
|
n.call(this, o), this.requestUpdate(t, a, i);
|
644
644
|
}, configurable: !0, enumerable: !0 };
|
645
645
|
}
|
@@ -647,30 +647,30 @@ 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(k("elementProperties")))
|
651
651
|
return;
|
652
|
-
const t =
|
652
|
+
const t = Ne(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(k("finalized")))
|
657
657
|
return;
|
658
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
659
|
-
const e = this.properties, i = [...
|
660
|
-
for (const
|
661
|
-
this.createProperty(
|
658
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(k("properties"))) {
|
659
|
+
const e = this.properties, i = [...je(e), ...Me(e)];
|
660
|
+
for (const r of i)
|
661
|
+
this.createProperty(r, e[r]);
|
662
662
|
}
|
663
663
|
const t = this[Symbol.metadata];
|
664
664
|
if (t !== null) {
|
665
665
|
const e = litPropertyMetadata.get(t);
|
666
666
|
if (e !== void 0)
|
667
|
-
for (const [i,
|
668
|
-
this.elementProperties.set(i,
|
667
|
+
for (const [i, r] of e)
|
668
|
+
this.elementProperties.set(i, r);
|
669
669
|
}
|
670
670
|
this._$Eh = /* @__PURE__ */ new Map();
|
671
671
|
for (const [e, i] of this.elementProperties) {
|
672
|
-
const
|
673
|
-
|
672
|
+
const r = this._$Eu(e, i);
|
673
|
+
r !== void 0 && this._$Eh.set(r, e);
|
674
674
|
}
|
675
675
|
this.elementStyles = this.finalizeStyles(this.styles);
|
676
676
|
}
|
@@ -678,8 +678,8 @@ let O = class extends HTMLElement {
|
|
678
678
|
const e = [];
|
679
679
|
if (Array.isArray(t)) {
|
680
680
|
const i = new Set(t.flat(1 / 0).reverse());
|
681
|
-
for (const
|
682
|
-
e.unshift(It(
|
681
|
+
for (const r of i)
|
682
|
+
e.unshift(It(r));
|
683
683
|
} else
|
684
684
|
t !== void 0 && e.push(It(t));
|
685
685
|
return 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 Re(t, this.constructor.elementStyles), t;
|
715
715
|
}
|
716
716
|
connectedCallback() {
|
717
717
|
var t;
|
@@ -734,18 +734,18 @@ let O = class extends HTMLElement {
|
|
734
734
|
}
|
735
735
|
_$EC(t, e) {
|
736
736
|
var n;
|
737
|
-
const i = this.constructor.elementProperties.get(t),
|
738
|
-
if (
|
737
|
+
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
738
|
+
if (r !== void 0 && i.reflect === !0) {
|
739
739
|
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : Z).toAttribute(e, i.type);
|
740
|
-
this._$Em = t, o == null ? this.removeAttribute(
|
740
|
+
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
741
741
|
}
|
742
742
|
}
|
743
743
|
_$AK(t, e) {
|
744
744
|
var n;
|
745
|
-
const i = this.constructor,
|
746
|
-
if (
|
747
|
-
const o = i.getPropertyOptions(
|
748
|
-
this._$Em =
|
745
|
+
const i = this.constructor, r = i._$Eh.get(t);
|
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 : Z;
|
748
|
+
this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
|
749
749
|
}
|
750
750
|
}
|
751
751
|
requestUpdate(t, e, i) {
|
@@ -782,20 +782,20 @@ let O = class extends HTMLElement {
|
|
782
782
|
this[n] = o;
|
783
783
|
this._$Ep = void 0;
|
784
784
|
}
|
785
|
-
const
|
786
|
-
if (
|
787
|
-
for (const [n, o] of
|
785
|
+
const r = this.constructor.elementProperties;
|
786
|
+
if (r.size > 0)
|
787
|
+
for (const [n, o] of r)
|
788
788
|
o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
|
789
789
|
}
|
790
790
|
let t = !1;
|
791
791
|
const e = this._$AL;
|
792
792
|
try {
|
793
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((
|
793
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
|
794
794
|
var n;
|
795
|
-
return (n =
|
795
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
796
796
|
}), this.update(e)) : this._$EU();
|
797
|
-
} catch (
|
798
|
-
throw t = !1, this._$EU(),
|
797
|
+
} catch (r) {
|
798
|
+
throw t = !1, this._$EU(), r;
|
799
799
|
}
|
800
800
|
t && this._$AE(e);
|
801
801
|
}
|
@@ -804,8 +804,8 @@ let O = class extends HTMLElement {
|
|
804
804
|
_$AE(t) {
|
805
805
|
var e;
|
806
806
|
(e = this._$EO) == null || e.forEach((i) => {
|
807
|
-
var
|
808
|
-
return (
|
807
|
+
var r;
|
808
|
+
return (r = i.hostUpdated) == null ? void 0 : r.call(i);
|
809
809
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
810
810
|
}
|
811
811
|
_$EU() {
|
@@ -828,67 +828,67 @@ let O = class extends HTMLElement {
|
|
828
828
|
firstUpdated(t) {
|
829
829
|
}
|
830
830
|
};
|
831
|
-
O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, O[
|
831
|
+
O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, O[k("elementProperties")] = /* @__PURE__ */ new Map(), O[k("finalized")] = /* @__PURE__ */ new Map(), at == null || at({ ReactiveElement: O }), (w.reactiveElementVersions ?? (w.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 j = globalThis, J = j.trustedTypes,
|
838
|
-
\f\r]`, I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
839
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, Bt = /"/g,
|
840
|
-
function
|
841
|
-
if (!Array.isArray(
|
837
|
+
const j = globalThis, J = j.trustedTypes, Mt = J ? J.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, re = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, ne = "?" + _, He = `<${ne}>`, E = document, N = () => E.createComment(""), L = (s) => s === null || typeof s != "object" && typeof s != "function", oe = Array.isArray, Be = (s) => oe(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", ct = `[
|
838
|
+
\f\r]`, I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Nt = /-->/g, Lt = />/g, x = RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^
|
839
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, Bt = /"/g, ae = /^(?:script|style|textarea|title)$/i, De = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), T = De(1), P = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), S = E.createTreeWalker(E, 129);
|
840
|
+
function ce(s, t) {
|
841
|
+
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
842
842
|
throw Error("invalid template strings array");
|
843
|
-
return
|
843
|
+
return Mt !== void 0 ? Mt.createHTML(t) : t;
|
844
844
|
}
|
845
|
-
const
|
846
|
-
const e =
|
847
|
-
let
|
845
|
+
const ze = (s, t) => {
|
846
|
+
const e = s.length - 1, i = [];
|
847
|
+
let r, n = t === 2 ? "<svg>" : "", o = I;
|
848
848
|
for (let a = 0; a < e; a++) {
|
849
|
-
const c =
|
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 === I ? l[1] === "!--" ? o =
|
853
|
-
const
|
854
|
-
n += o === I ? c +
|
852
|
+
f = o.lastIndex, o === I ? l[1] === "!--" ? o = Nt : l[1] !== void 0 ? o = Lt : l[2] !== void 0 ? (ae.test(l[2]) && (r = RegExp("</" + l[2], "g")), o = x) : l[3] !== void 0 && (o = x) : o === x ? l[0] === ">" ? (o = r ?? I, p = -1) : l[1] === void 0 ? p = -2 : (p = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? x : l[3] === '"' ? Bt : Ht) : o === Bt || o === Ht ? o = x : o === Nt || o === Lt ? o = I : (o = x, r = void 0);
|
853
|
+
const d = o === x && s[a + 1].startsWith("/>") ? " " : "";
|
854
|
+
n += o === I ? c + He : p >= 0 ? (i.push(h), c.slice(0, p) + re + c.slice(p) + _ + d) : c + _ + (p === -2 ? a : d);
|
855
855
|
}
|
856
|
-
return [
|
856
|
+
return [ce(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
857
857
|
};
|
858
858
|
class H {
|
859
859
|
constructor({ strings: t, _$litType$: e }, i) {
|
860
|
-
let
|
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 = H.createElement(h, i),
|
863
|
+
const a = t.length - 1, c = this.parts, [h, l] = ze(t, e);
|
864
|
+
if (this.el = H.createElement(h, i), S.currentNode = this.el.content, e === 2) {
|
865
865
|
const p = this.el.content.firstChild;
|
866
866
|
p.replaceWith(...p.childNodes);
|
867
867
|
}
|
868
|
-
for (; (
|
869
|
-
if (
|
870
|
-
if (
|
871
|
-
for (const p of
|
868
|
+
for (; (r = S.nextNode()) !== null && c.length < a; ) {
|
869
|
+
if (r.nodeType === 1) {
|
870
|
+
if (r.hasAttributes())
|
871
|
+
for (const p of r.getAttributeNames())
|
872
872
|
if (p.endsWith(re)) {
|
873
|
-
const f = l[o++],
|
874
|
-
c.push({ type: 1, index: n, name: g[2], strings:
|
873
|
+
const f = l[o++], d = r.getAttribute(p).split(_), g = /([.?@])?(.*)/.exec(f);
|
874
|
+
c.push({ type: 1, index: n, name: g[2], strings: d, ctor: g[1] === "." ? Fe : g[1] === "?" ? Ye : g[1] === "@" ? Ve : et }), r.removeAttribute(p);
|
875
875
|
} else
|
876
|
-
p.startsWith(_) && (c.push({ type: 6, index: n }),
|
877
|
-
if (
|
878
|
-
const p =
|
876
|
+
p.startsWith(_) && (c.push({ type: 6, index: n }), r.removeAttribute(p));
|
877
|
+
if (ae.test(r.tagName)) {
|
878
|
+
const p = r.textContent.split(_), f = p.length - 1;
|
879
879
|
if (f > 0) {
|
880
|
-
|
881
|
-
for (let
|
882
|
-
|
883
|
-
|
880
|
+
r.textContent = J ? J.emptyScript : "";
|
881
|
+
for (let d = 0; d < f; d++)
|
882
|
+
r.append(p[d], N()), S.nextNode(), c.push({ type: 2, index: ++n });
|
883
|
+
r.append(p[f], N());
|
884
884
|
}
|
885
885
|
}
|
886
|
-
} else if (
|
887
|
-
if (
|
886
|
+
} else if (r.nodeType === 8)
|
887
|
+
if (r.data === ne)
|
888
888
|
c.push({ type: 2, index: n });
|
889
889
|
else {
|
890
890
|
let p = -1;
|
891
|
-
for (; (p =
|
891
|
+
for (; (p = r.data.indexOf(_, p + 1)) !== -1; )
|
892
892
|
c.push({ type: 7, index: n }), p += _.length - 1;
|
893
893
|
}
|
894
894
|
n++;
|
@@ -899,15 +899,15 @@ class H {
|
|
899
899
|
return i.innerHTML = t, i;
|
900
900
|
}
|
901
901
|
}
|
902
|
-
function R(
|
902
|
+
function R(s, t, e = s, i) {
|
903
903
|
var o, a;
|
904
904
|
if (t === P)
|
905
905
|
return t;
|
906
|
-
let
|
906
|
+
let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
907
907
|
const n = L(t) ? void 0 : t._$litDirective$;
|
908
|
-
return (
|
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 = R(s, r._$AS(s, t.values), r, i)), t;
|
909
909
|
}
|
910
|
-
class
|
910
|
+
class We {
|
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 ze {
|
|
918
918
|
return this._$AM._$AU;
|
919
919
|
}
|
920
920
|
u(t) {
|
921
|
-
const { el: { content: e }, parts: i } = this._$AD,
|
922
|
-
|
923
|
-
let n =
|
921
|
+
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? E).importNode(e, !0);
|
922
|
+
S.currentNode = r;
|
923
|
+
let n = S.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
927
|
c.type === 2 ? h = new D(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new qe(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 = S.nextNode(), o++);
|
930
930
|
}
|
931
|
-
return
|
931
|
+
return S.currentNode = E, r;
|
932
932
|
}
|
933
933
|
p(t) {
|
934
934
|
let e = 0;
|
@@ -941,8 +941,8 @@ class D {
|
|
941
941
|
var t;
|
942
942
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
943
943
|
}
|
944
|
-
constructor(t, e, i,
|
945
|
-
this.type = 2, this._$AH =
|
944
|
+
constructor(t, e, i, r) {
|
945
|
+
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
946
946
|
}
|
947
947
|
get parentNode() {
|
948
948
|
let t = this._$AA.parentNode;
|
@@ -956,7 +956,7 @@ class D {
|
|
956
956
|
return this._$AB;
|
957
957
|
}
|
958
958
|
_$AI(t, e = this) {
|
959
|
-
t = R(this, t, e), L(t) ? t ===
|
959
|
+
t = R(this, t, e), L(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== P && 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,15 +965,15 @@ class D {
|
|
965
965
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
966
966
|
}
|
967
967
|
_(t) {
|
968
|
-
this._$AH !==
|
968
|
+
this._$AH !== u && L(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
|
969
969
|
}
|
970
970
|
$(t) {
|
971
971
|
var n;
|
972
|
-
const { values: e, _$litType$: i } = t,
|
973
|
-
if (((n = this._$AH) == null ? void 0 : n._$AD) ===
|
972
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = H.createElement(ce(i.h, i.h[0]), this.options)), i);
|
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 We(r, this), a = o.u(this.options);
|
977
977
|
o.p(e), this.T(a), this._$AH = o;
|
978
978
|
}
|
979
979
|
}
|
@@ -982,18 +982,18 @@ class D {
|
|
982
982
|
return e === void 0 && Dt.set(t.strings, e = new H(t)), e;
|
983
983
|
}
|
984
984
|
k(t) {
|
985
|
-
|
985
|
+
oe(this._$AH) || (this._$AH = [], this._$AR());
|
986
986
|
const e = this._$AH;
|
987
|
-
let i,
|
987
|
+
let i, r = 0;
|
988
988
|
for (const n of t)
|
989
|
-
|
990
|
-
|
989
|
+
r === e.length ? e.push(i = new D(this.S(N()), this.S(N()), this, this.options)) : i = e[r], i._$AI(n), r++;
|
990
|
+
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
991
991
|
}
|
992
992
|
_$AR(t = this._$AA.nextSibling, e) {
|
993
993
|
var i;
|
994
994
|
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
995
|
-
const
|
996
|
-
t.remove(), t =
|
995
|
+
const r = t.nextSibling;
|
996
|
+
t.remove(), t = r;
|
997
997
|
}
|
998
998
|
}
|
999
999
|
setConnected(t) {
|
@@ -1008,10 +1008,10 @@ class et {
|
|
1008
1008
|
get _$AU() {
|
1009
1009
|
return this._$AM._$AU;
|
1010
1010
|
}
|
1011
|
-
constructor(t, e, i,
|
1012
|
-
this.type = 1, this._$AH =
|
1011
|
+
constructor(t, e, i, r, n) {
|
1012
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
|
1013
1013
|
}
|
1014
|
-
_$AI(t, e = this, i,
|
1014
|
+
_$AI(t, e = this, i, r) {
|
1015
1015
|
const n = this.strings;
|
1016
1016
|
let o = !1;
|
1017
1017
|
if (n === void 0)
|
@@ -1020,39 +1020,39 @@ class et {
|
|
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 = R(this, a[i + c], e, c), h === P && (h = this._$AH[c]), o || (o = !L(h) || h !== this._$AH[c]), h ===
|
1023
|
+
h = R(this, a[i + c], e, c), h === P && (h = this._$AH[c]), o || (o = !L(h) || h !== this._$AH[c]), h === u ? t = u : t !== u && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
|
1024
1024
|
}
|
1025
|
-
o && !
|
1025
|
+
o && !r && this.j(t);
|
1026
1026
|
}
|
1027
1027
|
j(t) {
|
1028
|
-
t ===
|
1028
|
+
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
1029
1029
|
}
|
1030
1030
|
}
|
1031
|
-
class
|
1031
|
+
class Fe extends et {
|
1032
1032
|
constructor() {
|
1033
1033
|
super(...arguments), this.type = 3;
|
1034
1034
|
}
|
1035
1035
|
j(t) {
|
1036
|
-
this.element[this.name] = t ===
|
1036
|
+
this.element[this.name] = t === u ? void 0 : t;
|
1037
1037
|
}
|
1038
1038
|
}
|
1039
|
-
class
|
1039
|
+
class Ye extends et {
|
1040
1040
|
constructor() {
|
1041
1041
|
super(...arguments), this.type = 4;
|
1042
1042
|
}
|
1043
1043
|
j(t) {
|
1044
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
1044
|
+
this.element.toggleAttribute(this.name, !!t && t !== u);
|
1045
1045
|
}
|
1046
1046
|
}
|
1047
|
-
class
|
1048
|
-
constructor(t, e, i,
|
1049
|
-
super(t, e, i,
|
1047
|
+
class Ve extends et {
|
1048
|
+
constructor(t, e, i, r, n) {
|
1049
|
+
super(t, e, i, r, n), this.type = 5;
|
1050
1050
|
}
|
1051
1051
|
_$AI(t, e = this) {
|
1052
|
-
if ((t = R(this, t, e, 0) ??
|
1052
|
+
if ((t = R(this, t, e, 0) ?? u) === P)
|
1053
1053
|
return;
|
1054
|
-
const i = this._$AH,
|
1055
|
-
|
1054
|
+
const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== u && (i === u || r);
|
1055
|
+
r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
1056
1056
|
}
|
1057
1057
|
handleEvent(t) {
|
1058
1058
|
var e;
|
@@ -1072,14 +1072,14 @@ class qe {
|
|
1072
1072
|
}
|
1073
1073
|
const ht = j.litHtmlPolyfillSupport;
|
1074
1074
|
ht == null || ht(H, D), (j.litHtmlVersions ?? (j.litHtmlVersions = [])).push("3.1.2");
|
1075
|
-
const
|
1075
|
+
const Ke = (s, t, e) => {
|
1076
1076
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1077
|
-
let
|
1078
|
-
if (
|
1077
|
+
let r = i._$litPart$;
|
1078
|
+
if (r === void 0) {
|
1079
1079
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
1080
|
-
i._$litPart$ =
|
1080
|
+
i._$litPart$ = r = new D(t.insertBefore(N(), n), n, void 0, e ?? {});
|
1081
1081
|
}
|
1082
|
-
return
|
1082
|
+
return r._$AI(s), r;
|
1083
1083
|
};
|
1084
1084
|
/**
|
1085
1085
|
* @license
|
@@ -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 = Ke(e, this.renderRoot, this.renderOptions);
|
1101
1101
|
}
|
1102
1102
|
connectedCallback() {
|
1103
1103
|
var t;
|
@@ -1111,8 +1111,8 @@ let $ = class extends O {
|
|
1111
1111
|
return P;
|
1112
1112
|
}
|
1113
1113
|
};
|
1114
|
-
var
|
1115
|
-
$._$litElement$ = !0, $.finalized = !0, (
|
1114
|
+
var Gt;
|
1115
|
+
$._$litElement$ = !0, $.finalized = !0, (Gt = globalThis.litElementHydrateSupport) == null || Gt.call(globalThis, { LitElement: $ });
|
1116
1116
|
const lt = globalThis.litElementPolyfillSupport;
|
1117
1117
|
lt == null || lt({ LitElement: $ });
|
1118
1118
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
@@ -1121,45 +1121,45 @@ lt == null || lt({ LitElement: $ });
|
|
1121
1121
|
* Copyright 2017 Google LLC
|
1122
1122
|
* SPDX-License-Identifier: BSD-3-Clause
|
1123
1123
|
*/
|
1124
|
-
const
|
1125
|
-
const { kind: i, metadata:
|
1126
|
-
let n = globalThis.litPropertyMetadata.get(
|
1127
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(
|
1124
|
+
const Ge = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t }, Ze = (s = Ge, t, e) => {
|
1125
|
+
const { kind: i, metadata: r } = e;
|
1126
|
+
let n = globalThis.litPropertyMetadata.get(r);
|
1127
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
|
1128
1128
|
const { name: o } = e;
|
1129
1129
|
return { set(a) {
|
1130
1130
|
const c = t.get.call(this);
|
1131
|
-
t.set.call(this, a), this.requestUpdate(o, c,
|
1131
|
+
t.set.call(this, a), this.requestUpdate(o, c, s);
|
1132
1132
|
}, init(a) {
|
1133
|
-
return a !== void 0 && this.P(o, void 0,
|
1133
|
+
return a !== void 0 && this.P(o, void 0, s), a;
|
1134
1134
|
} };
|
1135
1135
|
}
|
1136
1136
|
if (i === "setter") {
|
1137
1137
|
const { name: o } = e;
|
1138
1138
|
return function(a) {
|
1139
1139
|
const c = this[o];
|
1140
|
-
t.call(this, a), this.requestUpdate(o, c,
|
1140
|
+
t.call(this, a), this.requestUpdate(o, c, s);
|
1141
1141
|
};
|
1142
1142
|
}
|
1143
1143
|
throw Error("Unsupported decorator location: " + i);
|
1144
1144
|
};
|
1145
|
-
function m(
|
1146
|
-
return (t, e) => typeof e == "object" ?
|
1147
|
-
const o =
|
1148
|
-
return
|
1149
|
-
})(
|
1145
|
+
function m(s) {
|
1146
|
+
return (t, e) => typeof e == "object" ? Ze(s, t, e) : ((i, r, n) => {
|
1147
|
+
const o = r.hasOwnProperty(n);
|
1148
|
+
return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
1149
|
+
})(s, t, e);
|
1150
1150
|
}
|
1151
1151
|
/**
|
1152
1152
|
* @license
|
1153
1153
|
* Copyright 2017 Google LLC
|
1154
1154
|
* SPDX-License-Identifier: BSD-3-Clause
|
1155
1155
|
*/
|
1156
|
-
function z(
|
1157
|
-
return m({ ...
|
1156
|
+
function z(s) {
|
1157
|
+
return m({ ...s, state: !0, attribute: !1 });
|
1158
1158
|
}
|
1159
|
-
var
|
1160
|
-
for (var
|
1161
|
-
(o =
|
1162
|
-
return i &&
|
1159
|
+
var Je = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, Qe = (s, t, e, i) => {
|
1160
|
+
for (var r = i > 1 ? void 0 : i ? Xe(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1161
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1162
|
+
return i && r && Je(t, e, r), r;
|
1163
1163
|
};
|
1164
1164
|
class it extends $ {
|
1165
1165
|
constructor() {
|
@@ -1170,7 +1170,7 @@ class it extends $ {
|
|
1170
1170
|
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
1171
1171
|
}
|
1172
1172
|
render() {
|
1173
|
-
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"),
|
1173
|
+
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), u;
|
1174
1174
|
}
|
1175
1175
|
}
|
1176
1176
|
it.styles = [
|
@@ -1192,7 +1192,7 @@ it.styles = [
|
|
1192
1192
|
}
|
1193
1193
|
`
|
1194
1194
|
];
|
1195
|
-
|
1195
|
+
Qe([
|
1196
1196
|
m({ attribute: !0 })
|
1197
1197
|
], it.prototype, "anchor", 2);
|
1198
1198
|
/**
|
@@ -1200,8 +1200,8 @@ Xe([
|
|
1200
1200
|
* Copyright 2017 Google LLC
|
1201
1201
|
* SPDX-License-Identifier: BSD-3-Clause
|
1202
1202
|
*/
|
1203
|
-
const wt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, At = (
|
1204
|
-
let
|
1203
|
+
const wt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, At = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
1204
|
+
let he = class {
|
1205
1205
|
constructor(t) {
|
1206
1206
|
}
|
1207
1207
|
get _$AU() {
|
@@ -1222,68 +1222,68 @@ let ce = class {
|
|
1222
1222
|
* Copyright 2020 Google LLC
|
1223
1223
|
* SPDX-License-Identifier: BSD-3-Clause
|
1224
1224
|
*/
|
1225
|
-
const
|
1225
|
+
const ti = (s) => s.strings === void 0;
|
1226
1226
|
/**
|
1227
1227
|
* @license
|
1228
1228
|
* Copyright 2017 Google LLC
|
1229
1229
|
* SPDX-License-Identifier: BSD-3-Clause
|
1230
1230
|
*/
|
1231
|
-
const
|
1231
|
+
const M = (s, t) => {
|
1232
1232
|
var i;
|
1233
|
-
const e =
|
1233
|
+
const e = s._$AN;
|
1234
1234
|
if (e === void 0)
|
1235
1235
|
return !1;
|
1236
|
-
for (const
|
1237
|
-
(i =
|
1236
|
+
for (const r of e)
|
1237
|
+
(i = r._$AO) == null || i.call(r, t, !1), M(r, t);
|
1238
1238
|
return !0;
|
1239
|
-
}, X = (
|
1239
|
+
}, X = (s) => {
|
1240
1240
|
let t, e;
|
1241
1241
|
do {
|
1242
|
-
if ((t =
|
1242
|
+
if ((t = s._$AM) === void 0)
|
1243
1243
|
break;
|
1244
|
-
e = t._$AN, e.delete(
|
1244
|
+
e = t._$AN, e.delete(s), s = t;
|
1245
1245
|
} while ((e == null ? void 0 : e.size) === 0);
|
1246
|
-
},
|
1247
|
-
for (let t; t =
|
1246
|
+
}, le = (s) => {
|
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
|
-
else if (e.has(
|
1251
|
+
else if (e.has(s))
|
1252
1252
|
break;
|
1253
|
-
e.add(
|
1253
|
+
e.add(s), si(t);
|
1254
1254
|
}
|
1255
1255
|
};
|
1256
|
-
function
|
1257
|
-
this._$AN !== void 0 ? (X(this), this._$AM =
|
1256
|
+
function ei(s) {
|
1257
|
+
this._$AN !== void 0 ? (X(this), this._$AM = s, le(this)) : this._$AM = s;
|
1258
1258
|
}
|
1259
|
-
function
|
1260
|
-
const i = this._$AH,
|
1261
|
-
if (
|
1259
|
+
function ii(s, t = !1, e = 0) {
|
1260
|
+
const i = this._$AH, r = this._$AN;
|
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
|
-
|
1265
|
+
M(i[n], !1), X(i[n]);
|
1266
1266
|
else
|
1267
|
-
i != null && (
|
1267
|
+
i != null && (M(i, !1), X(i));
|
1268
1268
|
else
|
1269
|
-
|
1269
|
+
M(this, s);
|
1270
1270
|
}
|
1271
|
-
const
|
1272
|
-
|
1271
|
+
const si = (s) => {
|
1272
|
+
s.type == wt.CHILD && (s._$AP ?? (s._$AP = ii), s._$AQ ?? (s._$AQ = ei));
|
1273
1273
|
};
|
1274
|
-
class
|
1274
|
+
class pe extends he {
|
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), le(this), this.isConnected = t._$AU;
|
1280
1280
|
}
|
1281
1281
|
_$AO(t, e = !0) {
|
1282
|
-
var i,
|
1283
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (
|
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 && (M(this, t), X(this));
|
1284
1284
|
}
|
1285
1285
|
setValue(t) {
|
1286
|
-
if (
|
1286
|
+
if (ti(this._$Ct))
|
1287
1287
|
this._$Ct._$AI(t, this);
|
1288
1288
|
else {
|
1289
1289
|
const e = [...this._$Ct._$AH];
|
@@ -1297,30 +1297,30 @@ class le extends ce {
|
|
1297
1297
|
}
|
1298
1298
|
const ri = /* @__PURE__ */ new WeakMap();
|
1299
1299
|
let zt = 0;
|
1300
|
-
const pt = /* @__PURE__ */ new Map(), Wt = /* @__PURE__ */ new WeakSet(), Ft = () => new Promise((
|
1301
|
-
const e =
|
1300
|
+
const pt = /* @__PURE__ */ new Map(), Wt = /* @__PURE__ */ new WeakSet(), Ft = () => new Promise((s) => requestAnimationFrame(s)), ni = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Yt = (s, t) => {
|
1301
|
+
const e = s - t;
|
1302
1302
|
return e === 0 ? void 0 : e;
|
1303
|
-
},
|
1304
|
-
const e =
|
1303
|
+
}, Vt = (s, t) => {
|
1304
|
+
const e = s / t;
|
1305
1305
|
return e === 1 ? void 0 : e;
|
1306
|
-
},
|
1307
|
-
const e = Yt(
|
1306
|
+
}, ut = { left: (s, t) => {
|
1307
|
+
const e = Yt(s, t);
|
1308
1308
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1309
|
-
}, top: (
|
1310
|
-
const e = Yt(
|
1309
|
+
}, top: (s, t) => {
|
1310
|
+
const e = Yt(s, t);
|
1311
1311
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1312
|
-
}, width: (
|
1312
|
+
}, width: (s, t) => {
|
1313
1313
|
let e;
|
1314
1314
|
t === 0 && (t = 1, e = { width: "1px" });
|
1315
|
-
const i =
|
1315
|
+
const i = Vt(s, t);
|
1316
1316
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1317
|
-
}, height: (
|
1317
|
+
}, height: (s, t) => {
|
1318
1318
|
let e;
|
1319
1319
|
t === 0 && (t = 1, e = { height: "1px" });
|
1320
|
-
const i =
|
1320
|
+
const i = Vt(s, t);
|
1321
1321
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1322
|
-
} },
|
1323
|
-
class
|
1322
|
+
} }, oi = { duration: 333, easing: "ease-in-out" }, ai = ["left", "top", "width", "height", "opacity", "color", "background"], qt = /* @__PURE__ */ new WeakMap();
|
1323
|
+
class ci extends pe {
|
1324
1324
|
constructor(t) {
|
1325
1325
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === wt.CHILD)
|
1326
1326
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -1337,7 +1337,7 @@ class ai extends le {
|
|
1337
1337
|
(t = this.l) == null || t.call(this), this.l = void 0;
|
1338
1338
|
}
|
1339
1339
|
render(t) {
|
1340
|
-
return
|
1340
|
+
return u;
|
1341
1341
|
}
|
1342
1342
|
getController() {
|
1343
1343
|
return ri.get(this.u);
|
@@ -1347,29 +1347,29 @@ class ai extends le {
|
|
1347
1347
|
return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
|
1348
1348
|
}
|
1349
1349
|
update(t, [e]) {
|
1350
|
-
var
|
1350
|
+
var r;
|
1351
1351
|
const i = this.u === void 0;
|
1352
|
-
return i && (this.u = (
|
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, qt.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 = ai), this.options = t;
|
1358
1358
|
}
|
1359
1359
|
m() {
|
1360
1360
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1361
|
-
return this.options.properties.forEach((
|
1362
|
-
const n = e[
|
1363
|
-
t[
|
1361
|
+
return this.options.properties.forEach((r) => {
|
1362
|
+
const n = e[r] ?? (ut[r] ? void 0 : i[r]), o = Number(n);
|
1363
|
+
t[r] = isNaN(o) ? n + "" : o;
|
1364
1364
|
}), t;
|
1365
1365
|
}
|
1366
1366
|
v() {
|
1367
1367
|
let t, e = !0;
|
1368
|
-
return this.options.guard && (t = this.options.guard(), e = ((i,
|
1368
|
+
return this.options.guard && (t = this.options.guard(), e = ((i, r) => {
|
1369
1369
|
if (Array.isArray(i)) {
|
1370
|
-
if (Array.isArray(
|
1370
|
+
if (Array.isArray(r) && r.length === i.length && i.every((n, o) => n === r[o]))
|
1371
1371
|
return !1;
|
1372
|
-
} else if (
|
1372
|
+
} else if (r === i)
|
1373
1373
|
return !1;
|
1374
1374
|
return !0;
|
1375
1375
|
})(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;
|
@@ -1382,15 +1382,15 @@ class ai extends le {
|
|
1382
1382
|
return;
|
1383
1383
|
let t;
|
1384
1384
|
this.prepare(), await Ft;
|
1385
|
-
const e = this.O(), i = this.j(this.options.keyframeOptions, e),
|
1385
|
+
const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
|
1386
1386
|
if (this.A !== void 0) {
|
1387
|
-
const { from: n, to: o } = this.N(this.A,
|
1388
|
-
this.log("measured", [this.A,
|
1387
|
+
const { from: n, to: o } = this.N(this.A, r, e);
|
1388
|
+
this.log("measured", [this.A, r, n, o]), t = this.calculateKeyframes(n, o);
|
1389
1389
|
} else {
|
1390
1390
|
const n = pt.get(this.options.inId);
|
1391
1391
|
if (n) {
|
1392
1392
|
pt.delete(this.options.inId);
|
1393
|
-
const { from: o, to: a } = this.N(n,
|
1393
|
+
const { from: o, to: a } = this.N(n, r, e);
|
1394
1394
|
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, zt++, t.forEach((c) => c.zIndex = zt);
|
1395
1395
|
} else
|
1396
1396
|
this.options.in && (t = [...this.options.in, {}]);
|
@@ -1413,9 +1413,9 @@ class ai extends le {
|
|
1413
1413
|
if (this.prepare(), await Ft(), (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
|
-
const
|
1416
|
+
const r = this.m();
|
1417
1417
|
this.log("stabilizing out");
|
1418
|
-
const n = this.A.left -
|
1418
|
+
const n = this.A.left - r.left, o = this.A.top - r.top;
|
1419
1419
|
getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
|
1420
1420
|
}
|
1421
1421
|
}
|
@@ -1436,7 +1436,7 @@ class ai extends le {
|
|
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 = qt.get(e);
|
1440
1440
|
i && !i.isDisabled() && i && t.push(i);
|
1441
1441
|
}
|
1442
1442
|
return t;
|
@@ -1448,46 +1448,46 @@ class ai extends le {
|
|
1448
1448
|
}), t;
|
1449
1449
|
}
|
1450
1450
|
j(t, e = this.O()) {
|
1451
|
-
const i = { ...
|
1452
|
-
return e.forEach((
|
1451
|
+
const i = { ...oi };
|
1452
|
+
return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
|
1453
1453
|
}
|
1454
1454
|
N(t, e, i) {
|
1455
1455
|
t = { ...t }, e = { ...e };
|
1456
|
-
const
|
1456
|
+
const r = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1457
1457
|
let n = 1, o = 1;
|
1458
|
-
return
|
1458
|
+
return r.length > 0 && (r.forEach((a) => {
|
1459
1459
|
a.width && (n /= a.width), a.height && (o /= a.height);
|
1460
1460
|
}), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
1461
1461
|
}
|
1462
1462
|
calculateKeyframes(t, e, i = !1) {
|
1463
|
-
const
|
1463
|
+
const r = {}, n = {};
|
1464
1464
|
let o = !1;
|
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);
|
1473
|
-
f.transform !== void 0 && (a[c] = f.value, o = !0,
|
1473
|
+
f.transform !== void 0 && (a[c] = f.value, o = !0, r.transform = `${r.transform ?? ""} ${f.transform}`, f.overrideFrom !== void 0 && Object.assign(r, f.overrideFrom));
|
1474
1474
|
} else
|
1475
|
-
h !== l && h !== void 0 && l !== void 0 && (o = !0,
|
1475
|
+
h !== l && h !== void 0 && l !== void 0 && (o = !0, r[c] = h, n[c] = l);
|
1476
1476
|
}
|
1477
|
-
return
|
1477
|
+
return r.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [r, n] : void 0;
|
1478
1478
|
}
|
1479
1479
|
async animate(t, e = this.options.keyframeOptions) {
|
1480
1480
|
this.start(), this.frames = t;
|
1481
1481
|
let i = !1;
|
1482
1482
|
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
1483
1483
|
this.log("animate", [t, e]), i = !0, this.webAnimation = this.element.animate(t, e);
|
1484
|
-
const
|
1485
|
-
|
1484
|
+
const r = this.getController();
|
1485
|
+
r == null || r.add(this);
|
1486
1486
|
try {
|
1487
1487
|
await this.webAnimation.finished;
|
1488
1488
|
} catch {
|
1489
1489
|
}
|
1490
|
-
|
1490
|
+
r == null || r.remove(this);
|
1491
1491
|
}
|
1492
1492
|
return this.didFinish(i), i;
|
1493
1493
|
}
|
@@ -1499,52 +1499,52 @@ class ai extends le {
|
|
1499
1499
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1500
1500
|
}
|
1501
1501
|
}
|
1502
|
-
const
|
1502
|
+
const hi = At(ci), li = { 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
|
1509
|
-
constructor(
|
1508
|
+
const pi = At(class extends he {
|
1509
|
+
constructor(s) {
|
1510
1510
|
var t;
|
1511
|
-
if (super(
|
1511
|
+
if (super(s), s.type !== wt.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
|
-
render(
|
1515
|
-
return " " + Object.keys(
|
1514
|
+
render(s) {
|
1515
|
+
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
1516
1516
|
}
|
1517
|
-
update(
|
1518
|
-
var i,
|
1517
|
+
update(s, [t]) {
|
1518
|
+
var i, r;
|
1519
1519
|
if (this.st === void 0) {
|
1520
|
-
this.st = /* @__PURE__ */ new Set(),
|
1520
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
1521
1521
|
for (const n in t)
|
1522
1522
|
t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
|
1523
1523
|
return this.render(t);
|
1524
1524
|
}
|
1525
|
-
const e =
|
1525
|
+
const e = s.element.classList;
|
1526
1526
|
for (const n of this.st)
|
1527
1527
|
n in t || (e.remove(n), this.st.delete(n));
|
1528
1528
|
for (const n in t) {
|
1529
1529
|
const o = !!t[n];
|
1530
|
-
o === this.st.has(n) || (
|
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
1532
|
return P;
|
1533
1533
|
}
|
1534
|
-
}), Y = (
|
1535
|
-
|
1536
|
-
},
|
1537
|
-
var e, i,
|
1538
|
-
Y((e =
|
1539
|
-
(i =
|
1534
|
+
}), Y = (s, t, e) => {
|
1535
|
+
s && e.style.setProperty(t, s);
|
1536
|
+
}, ue = (s, t) => {
|
1537
|
+
var e, i, r, n;
|
1538
|
+
Y((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), Y(
|
1539
|
+
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1540
1540
|
"--text-on-primary-background",
|
1541
1541
|
t
|
1542
1542
|
), Y(
|
1543
|
-
(
|
1543
|
+
(r = s.colors) == null ? void 0 : r.secondaryBackground,
|
1544
1544
|
"--secondary-background",
|
1545
1545
|
t
|
1546
1546
|
), Y(
|
1547
|
-
(n =
|
1547
|
+
(n = s.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
1548
1548
|
"--text-on-secondary-background",
|
1549
1549
|
t
|
1550
1550
|
);
|
@@ -1554,29 +1554,29 @@ const li = At(class extends ce {
|
|
1554
1554
|
* Copyright 2020 Google LLC
|
1555
1555
|
* SPDX-License-Identifier: BSD-3-Clause
|
1556
1556
|
*/
|
1557
|
-
const de = () => new
|
1558
|
-
class
|
1557
|
+
const de = () => new ui();
|
1558
|
+
class ui {
|
1559
1559
|
}
|
1560
|
-
const
|
1561
|
-
render(
|
1562
|
-
return
|
1560
|
+
const dt = /* @__PURE__ */ new WeakMap(), fe = At(class extends pe {
|
1561
|
+
render(s) {
|
1562
|
+
return u;
|
1563
1563
|
}
|
1564
|
-
update(
|
1564
|
+
update(s, [t]) {
|
1565
1565
|
var i;
|
1566
1566
|
const e = t !== this.Y;
|
1567
|
-
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i =
|
1567
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)), u;
|
1568
1568
|
}
|
1569
|
-
rt(
|
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 = dt.get(t);
|
1573
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), dt.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
|
-
this.Y.value =
|
1575
|
+
this.Y.value = s;
|
1576
1576
|
}
|
1577
1577
|
get lt() {
|
1578
|
-
var
|
1579
|
-
return typeof this.Y == "function" ? (
|
1578
|
+
var s, t;
|
1579
|
+
return typeof this.Y == "function" ? (s = dt.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,10 +1585,10 @@ const ut = /* @__PURE__ */ new WeakMap(), ue = At(class extends le {
|
|
1585
1585
|
this.rt(this.ct);
|
1586
1586
|
}
|
1587
1587
|
});
|
1588
|
-
var di = Object.defineProperty,
|
1589
|
-
for (var
|
1590
|
-
(o =
|
1591
|
-
return i &&
|
1588
|
+
var di = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, st = (s, t, e, i) => {
|
1589
|
+
for (var r = i > 1 ? void 0 : i ? fi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1590
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1591
|
+
return i && r && di(t, e, r), r;
|
1592
1592
|
};
|
1593
1593
|
class A extends $ {
|
1594
1594
|
constructor() {
|
@@ -1609,7 +1609,7 @@ class A extends $ {
|
|
1609
1609
|
}
|
1610
1610
|
_applyBranding() {
|
1611
1611
|
var t;
|
1612
|
-
(t = this.application) != null && t.settings &&
|
1612
|
+
(t = this.application) != null && t.settings && ue(this.application.settings.branding, this);
|
1613
1613
|
}
|
1614
1614
|
async _renderSymbol() {
|
1615
1615
|
var a, c, h;
|
@@ -1618,43 +1618,43 @@ class A extends $ {
|
|
1618
1618
|
return T` <img src=${e} class="trigger-icon" alt="" /> `;
|
1619
1619
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1620
1620
|
if (!i)
|
1621
|
-
return
|
1622
|
-
const
|
1621
|
+
return u;
|
1622
|
+
const r = async (l) => li, { type: n, content: o } = i;
|
1623
1623
|
switch (n) {
|
1624
1624
|
case "Telia": {
|
1625
|
-
const l = await
|
1625
|
+
const l = await r();
|
1626
1626
|
return l ? T`<telia-icon
|
1627
1627
|
class="trigger-icon"
|
1628
1628
|
svg=${l.svg}
|
1629
1629
|
size="lg"
|
1630
|
-
></telia-icon>` :
|
1630
|
+
></telia-icon>` : u;
|
1631
1631
|
}
|
1632
1632
|
default:
|
1633
|
-
return
|
1633
|
+
return u;
|
1634
1634
|
}
|
1635
1635
|
}
|
1636
1636
|
render() {
|
1637
|
-
var t, e, i,
|
1638
|
-
return T`<div class="trigger-container" ${
|
1639
|
-
${!this.active && ((
|
1637
|
+
var t, e, i, r;
|
1638
|
+
return T`<div class="trigger-container" ${fe(this.containerRef)}>
|
1639
|
+
${!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) ? T`
|
1640
1640
|
<button
|
1641
1641
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1642
1642
|
class="trigger-label"
|
1643
1643
|
@click=${this.toggleActive}
|
1644
|
-
${
|
1644
|
+
${hi({
|
1645
1645
|
keyframeOptions: {},
|
1646
|
-
in:
|
1646
|
+
in: ni,
|
1647
1647
|
stabilizeOut: !0,
|
1648
1648
|
skipInitial: !1
|
1649
1649
|
})}
|
1650
1650
|
>
|
1651
1651
|
${this.application.settings.branding.other.buttonLabelText}
|
1652
1652
|
</button>
|
1653
|
-
` :
|
1653
|
+
` : u}
|
1654
1654
|
|
1655
1655
|
<button
|
1656
1656
|
label="Widget trigger"
|
1657
|
-
class=${
|
1657
|
+
class=${pi({
|
1658
1658
|
trigger: !0,
|
1659
1659
|
active: this.active,
|
1660
1660
|
rendered: this.loaded
|
@@ -1800,25 +1800,25 @@ A.styles = [
|
|
1800
1800
|
}
|
1801
1801
|
`
|
1802
1802
|
];
|
1803
|
-
|
1803
|
+
st([
|
1804
1804
|
m({ attribute: !1 })
|
1805
1805
|
], A.prototype, "application", 2);
|
1806
|
-
|
1806
|
+
st([
|
1807
1807
|
z()
|
1808
1808
|
], A.prototype, "active", 2);
|
1809
|
-
|
1809
|
+
st([
|
1810
1810
|
z()
|
1811
1811
|
], A.prototype, "loaded", 2);
|
1812
|
-
|
1812
|
+
st([
|
1813
1813
|
z()
|
1814
1814
|
], A.prototype, "icon", 2);
|
1815
|
-
var
|
1816
|
-
for (var
|
1817
|
-
(o =
|
1818
|
-
return i &&
|
1815
|
+
var gi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, C = (s, t, e, i) => {
|
1816
|
+
for (var r = i > 1 ? void 0 : i ? mi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1817
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1818
|
+
return i && r && gi(t, e, r), r;
|
1819
1819
|
};
|
1820
|
-
const
|
1821
|
-
class t extends
|
1820
|
+
const vi = (s) => {
|
1821
|
+
class t extends s {
|
1822
1822
|
constructor() {
|
1823
1823
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
1824
1824
|
}
|
@@ -1856,28 +1856,28 @@ const mi = (r) => {
|
|
1856
1856
|
box-sizing: border-box;
|
1857
1857
|
}
|
1858
1858
|
`
|
1859
|
-
],
|
1859
|
+
], C([
|
1860
1860
|
m()
|
1861
|
-
], t.prototype, "properties", 2),
|
1861
|
+
], t.prototype, "properties", 2), C([
|
1862
1862
|
m()
|
1863
|
-
], t.prototype, "context", 2),
|
1863
|
+
], t.prototype, "context", 2), C([
|
1864
1864
|
m()
|
1865
|
-
], t.prototype, "layout", 2),
|
1865
|
+
], t.prototype, "layout", 2), C([
|
1866
1866
|
m()
|
1867
|
-
], t.prototype, "name", 2),
|
1867
|
+
], t.prototype, "name", 2), C([
|
1868
1868
|
m()
|
1869
|
-
], t.prototype, "type", 2),
|
1869
|
+
], t.prototype, "type", 2), C([
|
1870
1870
|
m({ attribute: !1 })
|
1871
|
-
], t.prototype, "application", 2),
|
1871
|
+
], t.prototype, "application", 2), C([
|
1872
1872
|
m({ attribute: !1 })
|
1873
1873
|
], t.prototype, "parent", 2), t;
|
1874
1874
|
};
|
1875
|
-
class
|
1875
|
+
class xt extends vi($) {
|
1876
1876
|
render() {
|
1877
1877
|
return T`Non resolved component`;
|
1878
1878
|
}
|
1879
1879
|
}
|
1880
|
-
|
1880
|
+
xt.styles = [
|
1881
1881
|
U`
|
1882
1882
|
:host {
|
1883
1883
|
display: block;
|
@@ -1889,19 +1889,147 @@ Ct.styles = [
|
|
1889
1889
|
* Copyright 2021 Google LLC
|
1890
1890
|
* SPDX-License-Identifier: BSD-3-Clause
|
1891
1891
|
*/
|
1892
|
-
function*
|
1893
|
-
if (
|
1892
|
+
function* yi(s, t) {
|
1893
|
+
if (s !== void 0) {
|
1894
1894
|
let e = 0;
|
1895
|
-
for (const i of
|
1895
|
+
for (const i of s)
|
1896
1896
|
yield t(i, e++);
|
1897
1897
|
}
|
1898
1898
|
}
|
1899
|
-
var y = /* @__PURE__ */ ((
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
1899
|
+
var y = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(y || {});
|
1900
|
+
/**
|
1901
|
+
* @license
|
1902
|
+
* Copyright 2021 Google LLC
|
1903
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
1904
|
+
*/
|
1905
|
+
let bi = class extends Event {
|
1906
|
+
constructor(t, e, i) {
|
1907
|
+
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
|
1908
|
+
}
|
1909
|
+
};
|
1910
|
+
/**
|
1911
|
+
* @license
|
1912
|
+
* Copyright 2021 Google LLC
|
1913
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
1914
|
+
*/
|
1915
|
+
/**
|
1916
|
+
* @license
|
1917
|
+
* Copyright 2021 Google LLC
|
1918
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
1919
|
+
*/
|
1920
|
+
class $i {
|
1921
|
+
get value() {
|
1922
|
+
return this.o;
|
1923
|
+
}
|
1924
|
+
set value(t) {
|
1925
|
+
this.setValue(t);
|
1926
|
+
}
|
1927
|
+
setValue(t, e = !1) {
|
1928
|
+
const i = e || !Object.is(t, this.o);
|
1929
|
+
this.o = t, i && this.updateObservers();
|
1930
|
+
}
|
1931
|
+
constructor(t) {
|
1932
|
+
this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
|
1933
|
+
for (const [e, { disposer: i }] of this.subscriptions)
|
1934
|
+
e(this.o, i);
|
1935
|
+
}, t !== void 0 && (this.value = t);
|
1936
|
+
}
|
1937
|
+
addCallback(t, e, i) {
|
1938
|
+
if (!i)
|
1939
|
+
return void t(this.value);
|
1940
|
+
this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
|
1941
|
+
this.subscriptions.delete(t);
|
1942
|
+
}, consumerHost: e });
|
1943
|
+
const { disposer: r } = this.subscriptions.get(t);
|
1944
|
+
t(this.value, r);
|
1945
|
+
}
|
1946
|
+
clearCallbacks() {
|
1947
|
+
this.subscriptions.clear();
|
1948
|
+
}
|
1949
|
+
}
|
1950
|
+
/**
|
1951
|
+
* @license
|
1952
|
+
* Copyright 2021 Google LLC
|
1953
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
1954
|
+
*/
|
1955
|
+
let _i = class extends Event {
|
1956
|
+
constructor(t) {
|
1957
|
+
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
1958
|
+
}
|
1959
|
+
};
|
1960
|
+
class Kt extends $i {
|
1961
|
+
constructor(t, e, i) {
|
1962
|
+
var r, n;
|
1963
|
+
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
1964
|
+
const a = o.composedPath()[0];
|
1965
|
+
o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
|
1966
|
+
}, this.onProviderRequest = (o) => {
|
1967
|
+
const a = o.composedPath()[0];
|
1968
|
+
if (o.context !== this.context || a === this.host)
|
1969
|
+
return;
|
1970
|
+
const c = /* @__PURE__ */ new Set();
|
1971
|
+
for (const [h, { consumerHost: l }] of this.subscriptions)
|
1972
|
+
c.has(h) || (c.add(h), l.dispatchEvent(new bi(this.context, h, !0)));
|
1973
|
+
o.stopPropagation();
|
1974
|
+
}, 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);
|
1975
|
+
}
|
1976
|
+
attachListeners() {
|
1977
|
+
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
1978
|
+
}
|
1979
|
+
hostConnected() {
|
1980
|
+
this.host.dispatchEvent(new _i(this.context));
|
1981
|
+
}
|
1982
|
+
}
|
1983
|
+
/**
|
1984
|
+
* @license
|
1985
|
+
* Copyright 2017 Google LLC
|
1986
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
1987
|
+
*/
|
1988
|
+
function wi({ context: s }) {
|
1989
|
+
return (t, e) => {
|
1990
|
+
const i = /* @__PURE__ */ new WeakMap();
|
1991
|
+
if (typeof e == "object")
|
1992
|
+
return e.addInitializer(function() {
|
1993
|
+
i.set(this, new Kt(this, { context: s }));
|
1994
|
+
}), { get() {
|
1995
|
+
return t.get.call(this);
|
1996
|
+
}, set(r) {
|
1997
|
+
var n;
|
1998
|
+
return (n = i.get(this)) == null || n.setValue(r), t.set.call(this, r);
|
1999
|
+
}, init(r) {
|
2000
|
+
var n;
|
2001
|
+
return (n = i.get(this)) == null || n.setValue(r), r;
|
2002
|
+
} };
|
2003
|
+
{
|
2004
|
+
t.constructor.addInitializer((o) => {
|
2005
|
+
i.set(o, new Kt(o, { context: s }));
|
2006
|
+
});
|
2007
|
+
const r = Object.getOwnPropertyDescriptor(t, e);
|
2008
|
+
let n;
|
2009
|
+
if (r === void 0) {
|
2010
|
+
const o = /* @__PURE__ */ new WeakMap();
|
2011
|
+
n = { get: function() {
|
2012
|
+
return o.get(this);
|
2013
|
+
}, set: function(a) {
|
2014
|
+
i.get(this).setValue(a), o.set(this, a);
|
2015
|
+
}, configurable: !0, enumerable: !0 };
|
2016
|
+
} else {
|
2017
|
+
const o = r.set;
|
2018
|
+
n = { ...r, set: function(a) {
|
2019
|
+
i.get(this).setValue(a), o == null || o.call(this, a);
|
2020
|
+
} };
|
2021
|
+
}
|
2022
|
+
return void Object.defineProperty(t, e, n);
|
2023
|
+
}
|
2024
|
+
};
|
2025
|
+
}
|
2026
|
+
var Ai = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, Ci = (s, t, e, i) => {
|
2027
|
+
for (var r = i > 1 ? void 0 : i ? xi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
2028
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
2029
|
+
return i && r && Ai(t, e, r), r;
|
1903
2030
|
};
|
1904
|
-
|
2031
|
+
const Si = "application";
|
2032
|
+
class rt extends $ {
|
1905
2033
|
constructor() {
|
1906
2034
|
super(...arguments), this.nodes = [], this.wrapperRef = de();
|
1907
2035
|
}
|
@@ -1912,26 +2040,26 @@ class st extends $ {
|
|
1912
2040
|
if (!this.wrapperRef.value)
|
1913
2041
|
return;
|
1914
2042
|
const t = this.application.settings;
|
1915
|
-
t != null && t.branding &&
|
2043
|
+
t != null && t.branding && ue(t.branding, this.wrapperRef.value);
|
1916
2044
|
}
|
1917
2045
|
applyStyles() {
|
1918
2046
|
if (!this.wrapperRef.value)
|
1919
2047
|
return;
|
1920
2048
|
const t = this.application.styles(), e = this.wrapperRef.value;
|
1921
|
-
Object.entries(t).forEach(([i,
|
1922
|
-
e.style.setProperty(`--${i}`,
|
2049
|
+
Object.entries(t).forEach(([i, r]) => {
|
2050
|
+
e.style.setProperty(`--${i}`, r);
|
1923
2051
|
});
|
1924
2052
|
}
|
1925
2053
|
firstUpdated(t) {
|
1926
2054
|
this.applyBranding(), this.applyStyles();
|
1927
2055
|
}
|
1928
2056
|
render() {
|
1929
|
-
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")), T`<div class="widget-container" ${
|
1930
|
-
${
|
2057
|
+
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")), T`<div class="widget-container" ${fe(this.wrapperRef)}>
|
2058
|
+
${yi(this.nodes, (t) => t)}
|
1931
2059
|
</div>`;
|
1932
2060
|
}
|
1933
2061
|
}
|
1934
|
-
|
2062
|
+
rt.styles = U`
|
1935
2063
|
:host {
|
1936
2064
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1937
2065
|
--spacing-xs: 0.2rem;
|
@@ -1940,15 +2068,22 @@ st.styles = U`
|
|
1940
2068
|
--spacing-lg: 1.2rem;
|
1941
2069
|
--spacing-xl: 1.8rem;
|
1942
2070
|
|
2071
|
+
--inverted-spacing-lg: -1.2rem;
|
2072
|
+
|
1943
2073
|
--text-color: #222222;
|
1944
2074
|
--link-color: #990ae3;
|
1945
2075
|
--gray-color: #f3f3f8;
|
2076
|
+
--white-color: #fff;
|
1946
2077
|
--gray-dark-color: #a6a6a6;
|
1947
2078
|
|
1948
2079
|
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
1949
2080
|
--border-radius: var(--spacing-sm);
|
1950
2081
|
--border-radius-sm: var(--spacing-sm);
|
2082
|
+
--border-radius-lg: var(--spacing-lg);
|
2083
|
+
--border-radius-xl: var(--spacing-xl);
|
1951
2084
|
--gap: var(--spacing-sm);
|
2085
|
+
|
2086
|
+
--header-height: 69px;
|
1952
2087
|
}
|
1953
2088
|
:host {
|
1954
2089
|
--voca-rem-multiplier: 0.625;
|
@@ -2029,10 +2164,11 @@ st.styles = U`
|
|
2029
2164
|
animation: slideDown 0.3s linear;
|
2030
2165
|
}
|
2031
2166
|
`;
|
2032
|
-
|
2033
|
-
m({ attribute: !1 })
|
2034
|
-
|
2035
|
-
|
2167
|
+
Ci([
|
2168
|
+
m({ attribute: !1 }),
|
2169
|
+
wi({ context: Si })
|
2170
|
+
], rt.prototype, "application", 2);
|
2171
|
+
class Ei {
|
2036
2172
|
constructor() {
|
2037
2173
|
this.root = this.createRoot();
|
2038
2174
|
}
|
@@ -2050,36 +2186,36 @@ class _i {
|
|
2050
2186
|
definitionId: a,
|
2051
2187
|
overrides: []
|
2052
2188
|
};
|
2053
|
-
},
|
2189
|
+
}, r = (a, c, h, l) => {
|
2054
2190
|
h.forEach((p) => {
|
2055
|
-
const f = i(p),
|
2056
|
-
if (!
|
2191
|
+
const f = i(p), d = l[f.definitionId];
|
2192
|
+
if (!d) {
|
2057
2193
|
console.error(
|
2058
2194
|
`No definition found for component type '${f.definitionId}'.`
|
2059
2195
|
);
|
2060
2196
|
return;
|
2061
2197
|
}
|
2062
|
-
const g = a.createNode(
|
2063
|
-
g && (g.name = f.definitionId, g.application = e,
|
2198
|
+
const g = a.createNode(d.type, d.type);
|
2199
|
+
g && (g.name = f.definitionId, g.application = e, d.properties && g.writeProperties(d.properties), d.context && g.writeContext(d.context), d.layout && g.writeLayout(d.layout), c.addChild(g), d.children && r(
|
2064
2200
|
a,
|
2065
2201
|
g,
|
2066
|
-
|
2202
|
+
d.children,
|
2067
2203
|
l
|
2068
2204
|
// views
|
2069
2205
|
));
|
2070
2206
|
});
|
2071
2207
|
}, { entry: n, components: o } = t;
|
2072
|
-
return
|
2208
|
+
return r(this, this.root, [n], o), this.root;
|
2073
2209
|
}
|
2074
2210
|
createRoot() {
|
2075
|
-
return new
|
2211
|
+
return new rt();
|
2076
2212
|
}
|
2077
2213
|
createNode(t, e) {
|
2078
2214
|
const i = this.resolveComponent(e);
|
2079
2215
|
if (!i)
|
2080
|
-
return console.warn(`Unable to resolve component: ${e}`), new
|
2081
|
-
const
|
2082
|
-
return
|
2216
|
+
return console.warn(`Unable to resolve component: ${e}`), new xt();
|
2217
|
+
const r = new i();
|
2218
|
+
return r.type = e, r.name = t, r;
|
2083
2219
|
}
|
2084
2220
|
resolveComponent(t) {
|
2085
2221
|
return customElements.get(`ace-${t}`);
|
@@ -2088,33 +2224,33 @@ class _i {
|
|
2088
2224
|
return this.root;
|
2089
2225
|
}
|
2090
2226
|
}
|
2091
|
-
const
|
2227
|
+
const ge = class {
|
2092
2228
|
constructor() {
|
2093
2229
|
this.components = /* @__PURE__ */ new Map();
|
2094
2230
|
}
|
2095
|
-
getComponent(
|
2096
|
-
const t = this.components.get(
|
2231
|
+
getComponent(s) {
|
2232
|
+
const t = this.components.get(s);
|
2097
2233
|
return t || console.warn(
|
2098
|
-
`Unable to resolve component: ${
|
2234
|
+
`Unable to resolve component: ${s}. You most likely forgot to register the required plugin.`
|
2099
2235
|
), t;
|
2100
2236
|
}
|
2101
|
-
registerComponent(
|
2102
|
-
this.components.set(
|
2237
|
+
registerComponent(s, t) {
|
2238
|
+
this.components.set(s, t);
|
2103
2239
|
}
|
2104
2240
|
async loadComponents() {
|
2105
|
-
const
|
2241
|
+
const s = [...this.components.entries()].map(([t, e]) => e.then((i) => {
|
2106
2242
|
this.defineAsWebComponent(t, i.default);
|
2107
2243
|
}));
|
2108
|
-
await Promise.all(
|
2244
|
+
await Promise.all(s);
|
2109
2245
|
}
|
2110
|
-
defineAsWebComponent(
|
2111
|
-
const e =
|
2246
|
+
defineAsWebComponent(s, t) {
|
2247
|
+
const e = ge.ResolveWebComponentName(s);
|
2112
2248
|
customElements.get(e) || customElements.define(e, t);
|
2113
2249
|
}
|
2114
2250
|
};
|
2115
|
-
let
|
2116
|
-
|
2117
|
-
class
|
2251
|
+
let me = ge;
|
2252
|
+
me.ResolveWebComponentName = (s) => `ace-${s}`;
|
2253
|
+
class Pi {
|
2118
2254
|
constructor(t) {
|
2119
2255
|
this.widgetId = t;
|
2120
2256
|
}
|
@@ -2135,7 +2271,7 @@ class wi {
|
|
2135
2271
|
}
|
2136
2272
|
}
|
2137
2273
|
}
|
2138
|
-
class
|
2274
|
+
class Oi {
|
2139
2275
|
constructor() {
|
2140
2276
|
this.texts = /* @__PURE__ */ new Map();
|
2141
2277
|
}
|
@@ -2150,12 +2286,12 @@ class Ai {
|
|
2150
2286
|
return this.texts.get(t) || e;
|
2151
2287
|
}
|
2152
2288
|
}
|
2153
|
-
class
|
2154
|
-
constructor(t, e, i,
|
2155
|
-
this.id = t, this.name = e, this.container = i, this.settings =
|
2289
|
+
class Ti {
|
2290
|
+
constructor(t, e, i, r, n) {
|
2291
|
+
this.id = t, this.name = e, this.container = i, this.settings = r, this.options = n, this.platform = new Ei(), this.texts = new Oi(), this.renderStrategy = y.Inline, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new me(), this.components = [], this.trigger = null, this.renderStrategy = this.options.renderStrategy || y.Inline, this.triggerIcon = this.options.triggerIcon, this.storage = new Pi(this.id), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings", r), this.texts.loadTexts(r.texts || {});
|
2156
2292
|
}
|
2157
2293
|
async activate() {
|
2158
|
-
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(
|
2294
|
+
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(ie.Ready), this.autoActivate) {
|
2159
2295
|
const t = this.render();
|
2160
2296
|
t && this._getTargetElement().appendChild(t);
|
2161
2297
|
}
|
@@ -2216,22 +2352,22 @@ class Ci {
|
|
2216
2352
|
return this.root;
|
2217
2353
|
}
|
2218
2354
|
}
|
2219
|
-
const
|
2355
|
+
const Di = (s) => new Q(s), ve = class {
|
2220
2356
|
// TODO:
|
2221
2357
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
2222
|
-
constructor(
|
2223
|
-
this._endpoint =
|
2358
|
+
constructor(s = ve.endpoint) {
|
2359
|
+
this._endpoint = s;
|
2224
2360
|
}
|
2225
|
-
async getSite(
|
2226
|
-
const e = await (await fetch(
|
2361
|
+
async getSite(s) {
|
2362
|
+
const e = await (await fetch(s)).json();
|
2227
2363
|
return e ? {
|
2228
2364
|
id: e.id,
|
2229
2365
|
apps: e.widgets.map((i) => {
|
2230
|
-
let
|
2231
|
-
return i.renderStrategy === "Trigger" && (
|
2366
|
+
let r = y.Inline;
|
2367
|
+
return i.renderStrategy === "Trigger" && (r = y.Trigger), {
|
2232
2368
|
id: i.id,
|
2233
2369
|
widgetId: i.widgetId,
|
2234
|
-
renderStrategy:
|
2370
|
+
renderStrategy: r,
|
2235
2371
|
autoActivate: i.autoActivate,
|
2236
2372
|
anchor: i.anchor,
|
2237
2373
|
triggerIcon: {
|
@@ -2242,17 +2378,17 @@ const Ii = (r) => new Q(r), me = class {
|
|
2242
2378
|
})
|
2243
2379
|
} : null;
|
2244
2380
|
}
|
2245
|
-
async getWidget(
|
2246
|
-
const e = await (await fetch(`${this._endpoint}/widget/${
|
2381
|
+
async getWidget(s) {
|
2382
|
+
const e = await (await fetch(`${this._endpoint}/widget/${s}`)).json();
|
2247
2383
|
return e ? {
|
2248
2384
|
name: e.name,
|
2249
2385
|
config: JSON.parse(e.configuration)
|
2250
2386
|
} : null;
|
2251
2387
|
}
|
2252
2388
|
};
|
2253
|
-
let Q =
|
2389
|
+
let Q = ve;
|
2254
2390
|
Q.endpoint = "https://widgets.ace.teliacompany.net/api";
|
2255
|
-
class
|
2391
|
+
class Ri {
|
2256
2392
|
constructor() {
|
2257
2393
|
this.applications = [], this.container = new Rt("environment", this), setTimeout(() => {
|
2258
2394
|
this.notifyWidgetsOfCreation();
|
@@ -2270,7 +2406,7 @@ class Si {
|
|
2270
2406
|
}
|
2271
2407
|
notifyWidgetsOfCreation() {
|
2272
2408
|
document.querySelectorAll("ace-widget").forEach((e) => {
|
2273
|
-
const i = this.applications.find((
|
2409
|
+
const i = this.applications.find((r) => r.name === e.name);
|
2274
2410
|
i && e.dispatchEvent(
|
2275
2411
|
new CustomEvent("environment-created", {
|
2276
2412
|
detail: { widget: i }
|
@@ -2278,8 +2414,8 @@ class Si {
|
|
2278
2414
|
);
|
2279
2415
|
});
|
2280
2416
|
}
|
2281
|
-
registerApp(t, e, i,
|
2282
|
-
const n = new Rt(e, this), o = new
|
2417
|
+
registerApp(t, e, i, r) {
|
2418
|
+
const n = new Rt(e, this), o = new Ti(t, e, n, i, r);
|
2283
2419
|
this.applications.push(o);
|
2284
2420
|
}
|
2285
2421
|
plugin(t) {
|
@@ -2288,7 +2424,7 @@ class Si {
|
|
2288
2424
|
}), this;
|
2289
2425
|
}
|
2290
2426
|
}
|
2291
|
-
class
|
2427
|
+
class Ui {
|
2292
2428
|
constructor(t) {
|
2293
2429
|
this.configurations = [], this.httpClient = new Q(), this.httpClient = new Q(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
|
2294
2430
|
}
|
@@ -2315,13 +2451,13 @@ class xi {
|
|
2315
2451
|
}
|
2316
2452
|
async bootstrap(t) {
|
2317
2453
|
var e;
|
2318
|
-
this.url && await this.load(this.url), this.environment = new
|
2454
|
+
this.url && await this.load(this.url), this.environment = new Ri(), this.addGlobal(this.environment);
|
2319
2455
|
for await (const i of this.configurations) {
|
2320
|
-
const
|
2321
|
-
|
2456
|
+
const r = await this.httpClient.getWidget(i.widgetId);
|
2457
|
+
r && ((e = this.environment) == null || e.registerApp(
|
2322
2458
|
i.widgetId,
|
2323
|
-
|
2324
|
-
|
2459
|
+
r.name,
|
2460
|
+
r.config,
|
2325
2461
|
{
|
2326
2462
|
renderStrategy: i.renderStrategy,
|
2327
2463
|
triggerIcon: i.triggerIcon,
|
@@ -2336,10 +2472,10 @@ class xi {
|
|
2336
2472
|
globalThis.widgets = t;
|
2337
2473
|
}
|
2338
2474
|
}
|
2339
|
-
var
|
2340
|
-
for (var
|
2341
|
-
(o =
|
2342
|
-
return i &&
|
2475
|
+
var Ii = Object.defineProperty, ki = Object.getOwnPropertyDescriptor, Ct = (s, t, e, i) => {
|
2476
|
+
for (var r = i > 1 ? void 0 : i ? ki(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
2477
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
2478
|
+
return i && r && Ii(t, e, r), r;
|
2343
2479
|
};
|
2344
2480
|
class W extends $ {
|
2345
2481
|
constructor() {
|
@@ -2365,7 +2501,7 @@ class W extends $ {
|
|
2365
2501
|
}
|
2366
2502
|
render() {
|
2367
2503
|
if (!this.widget || this.status !== "activated")
|
2368
|
-
return
|
2504
|
+
return u;
|
2369
2505
|
if (this.widget.renderStrategy === y.Trigger) {
|
2370
2506
|
const t = new A();
|
2371
2507
|
return t.application = this.widget, t;
|
@@ -2380,33 +2516,34 @@ W.styles = [
|
|
2380
2516
|
}
|
2381
2517
|
`
|
2382
2518
|
];
|
2383
|
-
|
2519
|
+
Ct([
|
2384
2520
|
m({ attribute: !0 })
|
2385
2521
|
], W.prototype, "name", 2);
|
2386
|
-
|
2522
|
+
Ct([
|
2387
2523
|
z()
|
2388
2524
|
], W.prototype, "widget", 2);
|
2389
|
-
|
2525
|
+
Ct([
|
2390
2526
|
z()
|
2391
2527
|
], W.prototype, "status", 2);
|
2392
2528
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", it);
|
2393
2529
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
|
2394
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
2395
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2530
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", xt);
|
2531
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", rt);
|
2396
2532
|
customElements.get("ace-widget") || customElements.define("ace-widget", W);
|
2397
|
-
const
|
2398
|
-
await new
|
2533
|
+
const zi = async (s, t) => {
|
2534
|
+
await new Ui(s).bootstrap(t);
|
2399
2535
|
};
|
2400
2536
|
export {
|
2401
2537
|
W as AceWidget,
|
2402
|
-
|
2538
|
+
Ti as Application,
|
2403
2539
|
Rt as Container,
|
2404
|
-
|
2540
|
+
Ri as Environment,
|
2405
2541
|
Q as HttpClient,
|
2406
|
-
|
2407
|
-
|
2542
|
+
Ui as Site,
|
2543
|
+
Pi as StorageService,
|
2408
2544
|
A as Trigger,
|
2409
|
-
|
2410
|
-
|
2411
|
-
|
2545
|
+
vi as WidgetComponent,
|
2546
|
+
Si as applicationContext,
|
2547
|
+
zi as bootstrap,
|
2548
|
+
Di as createHttpClient
|
2412
2549
|
};
|