@telia-ace/widget-core-flamingo 1.1.110-rc.2 → 1.1.111-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +33 -33
- package/index.mjs +567 -587
- package/package.json +1 -1
package/index.mjs
CHANGED
@@ -1,35 +1,35 @@
|
|
1
|
-
var
|
2
|
-
return
|
1
|
+
var ft = function(n, t) {
|
2
|
+
return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
3
3
|
e.__proto__ = i;
|
4
4
|
} || function(e, i) {
|
5
5
|
for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
|
6
|
-
},
|
6
|
+
}, ft(n, t);
|
7
7
|
};
|
8
|
-
function Y(
|
8
|
+
function Y(n, t) {
|
9
9
|
if (typeof t != "function" && t !== null)
|
10
10
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
11
|
-
|
11
|
+
ft(n, t);
|
12
12
|
function e() {
|
13
|
-
this.constructor =
|
13
|
+
this.constructor = n;
|
14
14
|
}
|
15
|
-
|
15
|
+
n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
16
16
|
}
|
17
|
-
function
|
18
|
-
var t = typeof Symbol == "function" && Symbol.iterator, e = t &&
|
19
|
-
if (e) return e.call(
|
20
|
-
if (
|
17
|
+
function gt(n) {
|
18
|
+
var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], i = 0;
|
19
|
+
if (e) return e.call(n);
|
20
|
+
if (n && typeof n.length == "number") return {
|
21
21
|
next: function() {
|
22
|
-
return
|
22
|
+
return n && i >= n.length && (n = void 0), { value: n && n[i++], done: !n };
|
23
23
|
}
|
24
24
|
};
|
25
25
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
26
26
|
}
|
27
|
-
function
|
28
|
-
var e = typeof Symbol == "function" &&
|
29
|
-
if (!e) return
|
30
|
-
var i = e.call(
|
27
|
+
function mt(n, t) {
|
28
|
+
var e = typeof Symbol == "function" && n[Symbol.iterator];
|
29
|
+
if (!e) return n;
|
30
|
+
var i = e.call(n), s, r = [], o;
|
31
31
|
try {
|
32
|
-
for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; )
|
32
|
+
for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) r.push(s.value);
|
33
33
|
} catch (a) {
|
34
34
|
o = { error: a };
|
35
35
|
} finally {
|
@@ -39,55 +39,55 @@ function vt(r, t) {
|
|
39
39
|
if (o) throw o.error;
|
40
40
|
}
|
41
41
|
}
|
42
|
-
return
|
42
|
+
return r;
|
43
43
|
}
|
44
|
-
function yt(
|
45
|
-
if (e || arguments.length === 2) for (var i = 0, s = t.length,
|
46
|
-
(
|
47
|
-
return
|
44
|
+
function yt(n, t, e) {
|
45
|
+
if (e || arguments.length === 2) for (var i = 0, s = t.length, r; i < s; i++)
|
46
|
+
(r || !(i in t)) && (r || (r = Array.prototype.slice.call(t, 0, i)), r[i] = t[i]);
|
47
|
+
return n.concat(r || Array.prototype.slice.call(t));
|
48
48
|
}
|
49
|
-
function _(
|
50
|
-
return typeof
|
49
|
+
function _(n) {
|
50
|
+
return typeof n == "function";
|
51
51
|
}
|
52
|
-
function
|
52
|
+
function oe(n) {
|
53
53
|
var t = function(i) {
|
54
54
|
Error.call(i), i.stack = new Error().stack;
|
55
|
-
}, e =
|
55
|
+
}, e = n(t);
|
56
56
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
57
57
|
}
|
58
|
-
var ot =
|
58
|
+
var ot = oe(function(n) {
|
59
59
|
return function(e) {
|
60
|
-
|
60
|
+
n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
61
61
|
` + e.map(function(i, s) {
|
62
62
|
return s + 1 + ") " + i.toString();
|
63
63
|
}).join(`
|
64
64
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
65
65
|
};
|
66
66
|
});
|
67
|
-
function bt(
|
68
|
-
if (
|
69
|
-
var e =
|
70
|
-
0 <= e &&
|
67
|
+
function bt(n, t) {
|
68
|
+
if (n) {
|
69
|
+
var e = n.indexOf(t);
|
70
|
+
0 <= e && n.splice(e, 1);
|
71
71
|
}
|
72
72
|
}
|
73
|
-
var
|
74
|
-
function
|
73
|
+
var nt = function() {
|
74
|
+
function n(t) {
|
75
75
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
76
76
|
}
|
77
|
-
return
|
78
|
-
var t, e, i, s,
|
77
|
+
return n.prototype.unsubscribe = function() {
|
78
|
+
var t, e, i, s, r;
|
79
79
|
if (!this.closed) {
|
80
80
|
this.closed = !0;
|
81
81
|
var o = this._parentage;
|
82
82
|
if (o)
|
83
83
|
if (this._parentage = null, Array.isArray(o))
|
84
84
|
try {
|
85
|
-
for (var a =
|
85
|
+
for (var a = gt(o), c = a.next(); !c.done; c = a.next()) {
|
86
86
|
var l = c.value;
|
87
87
|
l.remove(this);
|
88
88
|
}
|
89
|
-
} catch (
|
90
|
-
t = { error:
|
89
|
+
} catch (y) {
|
90
|
+
t = { error: y };
|
91
91
|
} finally {
|
92
92
|
try {
|
93
93
|
c && !c.done && (e = a.return) && e.call(a);
|
@@ -101,23 +101,23 @@ var rt = function() {
|
|
101
101
|
if (_(h))
|
102
102
|
try {
|
103
103
|
h();
|
104
|
-
} catch (
|
105
|
-
|
104
|
+
} catch (y) {
|
105
|
+
r = y instanceof ot ? y.errors : [y];
|
106
106
|
}
|
107
107
|
var d = this._finalizers;
|
108
108
|
if (d) {
|
109
109
|
this._finalizers = null;
|
110
110
|
try {
|
111
|
-
for (var u =
|
111
|
+
for (var u = gt(d), f = u.next(); !f.done; f = u.next()) {
|
112
112
|
var g = f.value;
|
113
113
|
try {
|
114
|
-
|
115
|
-
} catch (
|
116
|
-
|
114
|
+
Mt(g);
|
115
|
+
} catch (y) {
|
116
|
+
r = r ?? [], y instanceof ot ? r = yt(yt([], mt(r)), mt(y.errors)) : r.push(y);
|
117
117
|
}
|
118
118
|
}
|
119
|
-
} catch (
|
120
|
-
i = { error:
|
119
|
+
} catch (y) {
|
120
|
+
i = { error: y };
|
121
121
|
} finally {
|
122
122
|
try {
|
123
123
|
f && !f.done && (s = u.return) && s.call(u);
|
@@ -126,80 +126,76 @@ var rt = function() {
|
|
126
126
|
}
|
127
127
|
}
|
128
128
|
}
|
129
|
-
if (
|
130
|
-
throw new ot(
|
129
|
+
if (r)
|
130
|
+
throw new ot(r);
|
131
131
|
}
|
132
|
-
},
|
132
|
+
}, n.prototype.add = function(t) {
|
133
133
|
var e;
|
134
134
|
if (t && t !== this)
|
135
135
|
if (this.closed)
|
136
|
-
|
136
|
+
Mt(t);
|
137
137
|
else {
|
138
|
-
if (t instanceof
|
138
|
+
if (t instanceof n) {
|
139
139
|
if (t.closed || t._hasParent(this))
|
140
140
|
return;
|
141
141
|
t._addParent(this);
|
142
142
|
}
|
143
143
|
(this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
|
144
144
|
}
|
145
|
-
},
|
145
|
+
}, n.prototype._hasParent = function(t) {
|
146
146
|
var e = this._parentage;
|
147
147
|
return e === t || Array.isArray(e) && e.includes(t);
|
148
|
-
},
|
148
|
+
}, n.prototype._addParent = function(t) {
|
149
149
|
var e = this._parentage;
|
150
150
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
151
|
-
},
|
151
|
+
}, n.prototype._removeParent = function(t) {
|
152
152
|
var e = this._parentage;
|
153
153
|
e === t ? this._parentage = null : Array.isArray(e) && bt(e, t);
|
154
|
-
},
|
154
|
+
}, n.prototype.remove = function(t) {
|
155
155
|
var e = this._finalizers;
|
156
|
-
e && bt(e, t), t instanceof
|
157
|
-
},
|
158
|
-
var t = new
|
156
|
+
e && bt(e, t), t instanceof n && t._removeParent(this);
|
157
|
+
}, n.EMPTY = function() {
|
158
|
+
var t = new n();
|
159
159
|
return t.closed = !0, t;
|
160
|
-
}(),
|
161
|
-
}(),
|
162
|
-
function
|
163
|
-
return
|
160
|
+
}(), n;
|
161
|
+
}(), ae = nt.EMPTY;
|
162
|
+
function ce(n) {
|
163
|
+
return n instanceof nt || n && "closed" in n && _(n.remove) && _(n.add) && _(n.unsubscribe);
|
164
164
|
}
|
165
|
-
function
|
166
|
-
_(
|
165
|
+
function Mt(n) {
|
166
|
+
_(n) ? n() : n.unsubscribe();
|
167
167
|
}
|
168
|
-
var
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
173
|
-
useDeprecatedNextContext: !1
|
174
|
-
}, Ee = {
|
175
|
-
setTimeout: function(r, t) {
|
168
|
+
var Ce = {
|
169
|
+
Promise: void 0
|
170
|
+
}, Se = {
|
171
|
+
setTimeout: function(n, t) {
|
176
172
|
for (var e = [], i = 2; i < arguments.length; i++)
|
177
173
|
e[i - 2] = arguments[i];
|
178
|
-
return setTimeout.apply(void 0, yt([
|
174
|
+
return setTimeout.apply(void 0, yt([n, t], mt(e)));
|
179
175
|
},
|
180
|
-
clearTimeout: function(
|
181
|
-
return clearTimeout(
|
176
|
+
clearTimeout: function(n) {
|
177
|
+
return clearTimeout(n);
|
182
178
|
},
|
183
179
|
delegate: void 0
|
184
180
|
};
|
185
|
-
function
|
186
|
-
|
187
|
-
throw
|
181
|
+
function Ee(n) {
|
182
|
+
Se.setTimeout(function() {
|
183
|
+
throw n;
|
188
184
|
});
|
189
185
|
}
|
190
|
-
function
|
186
|
+
function Ut() {
|
191
187
|
}
|
192
|
-
function G(
|
193
|
-
|
188
|
+
function G(n) {
|
189
|
+
n();
|
194
190
|
}
|
195
|
-
var
|
196
|
-
Y(t,
|
191
|
+
var he = function(n) {
|
192
|
+
Y(t, n);
|
197
193
|
function t(e) {
|
198
|
-
var i =
|
199
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
194
|
+
var i = n.call(this) || this;
|
195
|
+
return i.isStopped = !1, e ? (i.destination = e, ce(e) && e.add(i)) : i.destination = Ie, i;
|
200
196
|
}
|
201
197
|
return t.create = function(e, i, s) {
|
202
|
-
return new
|
198
|
+
return new vt(e, i, s);
|
203
199
|
}, t.prototype.next = function(e) {
|
204
200
|
this.isStopped || this._next(e);
|
205
201
|
}, t.prototype.error = function(e) {
|
@@ -207,7 +203,7 @@ var de = function(r) {
|
|
207
203
|
}, t.prototype.complete = function() {
|
208
204
|
this.isStopped || (this.isStopped = !0, this._complete());
|
209
205
|
}, t.prototype.unsubscribe = function() {
|
210
|
-
this.closed || (this.isStopped = !0,
|
206
|
+
this.closed || (this.isStopped = !0, n.prototype.unsubscribe.call(this), this.destination = null);
|
211
207
|
}, t.prototype._next = function(e) {
|
212
208
|
this.destination.next(e);
|
213
209
|
}, t.prototype._error = function(e) {
|
@@ -223,15 +219,11 @@ var de = function(r) {
|
|
223
219
|
this.unsubscribe();
|
224
220
|
}
|
225
221
|
}, t;
|
226
|
-
}(
|
227
|
-
function
|
228
|
-
return Oe.call(r, t);
|
229
|
-
}
|
230
|
-
var Ie = function() {
|
231
|
-
function r(t) {
|
222
|
+
}(nt), Pe = function() {
|
223
|
+
function n(t) {
|
232
224
|
this.partialObserver = t;
|
233
225
|
}
|
234
|
-
return
|
226
|
+
return n.prototype.next = function(t) {
|
235
227
|
var e = this.partialObserver;
|
236
228
|
if (e.next)
|
237
229
|
try {
|
@@ -239,7 +231,7 @@ var Ie = function() {
|
|
239
231
|
} catch (i) {
|
240
232
|
Z(i);
|
241
233
|
}
|
242
|
-
},
|
234
|
+
}, n.prototype.error = function(t) {
|
243
235
|
var e = this.partialObserver;
|
244
236
|
if (e.error)
|
245
237
|
try {
|
@@ -249,7 +241,7 @@ var Ie = function() {
|
|
249
241
|
}
|
250
242
|
else
|
251
243
|
Z(t);
|
252
|
-
},
|
244
|
+
}, n.prototype.complete = function() {
|
253
245
|
var t = this.partialObserver;
|
254
246
|
if (t.complete)
|
255
247
|
try {
|
@@ -257,149 +249,137 @@ var Ie = function() {
|
|
257
249
|
} catch (e) {
|
258
250
|
Z(e);
|
259
251
|
}
|
260
|
-
},
|
261
|
-
}(),
|
262
|
-
Y(t,
|
252
|
+
}, n;
|
253
|
+
}(), vt = function(n) {
|
254
|
+
Y(t, n);
|
263
255
|
function t(e, i, s) {
|
264
|
-
var
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
};
|
271
|
-
else {
|
272
|
-
var a;
|
273
|
-
n && le.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
274
|
-
return n.unsubscribe();
|
275
|
-
}, o = {
|
276
|
-
next: e.next && at(e.next, a),
|
277
|
-
error: e.error && at(e.error, a),
|
278
|
-
complete: e.complete && at(e.complete, a)
|
279
|
-
}) : o = e;
|
280
|
-
}
|
281
|
-
return n.destination = new Ie(o), n;
|
256
|
+
var r = n.call(this) || this, o;
|
257
|
+
return _(e) || !e ? o = {
|
258
|
+
next: e ?? void 0,
|
259
|
+
error: i ?? void 0,
|
260
|
+
complete: s ?? void 0
|
261
|
+
} : o = e, r.destination = new Pe(o), r;
|
282
262
|
}
|
283
263
|
return t;
|
284
|
-
}(
|
285
|
-
function Z(
|
286
|
-
|
264
|
+
}(he);
|
265
|
+
function Z(n) {
|
266
|
+
Ee(n);
|
287
267
|
}
|
288
|
-
function
|
289
|
-
throw
|
268
|
+
function Oe(n) {
|
269
|
+
throw n;
|
290
270
|
}
|
291
|
-
var
|
271
|
+
var Ie = {
|
292
272
|
closed: !0,
|
293
|
-
next:
|
294
|
-
error:
|
295
|
-
complete:
|
296
|
-
},
|
273
|
+
next: Ut,
|
274
|
+
error: Oe,
|
275
|
+
complete: Ut
|
276
|
+
}, ke = function() {
|
297
277
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
298
278
|
}();
|
299
|
-
function
|
300
|
-
return
|
279
|
+
function Te(n) {
|
280
|
+
return n;
|
301
281
|
}
|
302
|
-
function
|
303
|
-
return
|
304
|
-
return
|
282
|
+
function Re(n) {
|
283
|
+
return n.length === 0 ? Te : n.length === 1 ? n[0] : function(e) {
|
284
|
+
return n.reduce(function(i, s) {
|
305
285
|
return s(i);
|
306
286
|
}, e);
|
307
287
|
};
|
308
288
|
}
|
309
|
-
var
|
310
|
-
function
|
289
|
+
var Lt = function() {
|
290
|
+
function n(t) {
|
311
291
|
t && (this._subscribe = t);
|
312
292
|
}
|
313
|
-
return
|
314
|
-
var e = new
|
293
|
+
return n.prototype.lift = function(t) {
|
294
|
+
var e = new n();
|
315
295
|
return e.source = this, e.operator = t, e;
|
316
|
-
},
|
317
|
-
var s = this,
|
296
|
+
}, n.prototype.subscribe = function(t, e, i) {
|
297
|
+
var s = this, r = Me(t) ? t : new vt(t, e, i);
|
318
298
|
return G(function() {
|
319
299
|
var o = s, a = o.operator, c = o.source;
|
320
|
-
|
321
|
-
}),
|
322
|
-
},
|
300
|
+
r.add(a ? a.call(r, c) : c ? s._subscribe(r) : s._trySubscribe(r));
|
301
|
+
}), r;
|
302
|
+
}, n.prototype._trySubscribe = function(t) {
|
323
303
|
try {
|
324
304
|
return this._subscribe(t);
|
325
305
|
} catch (e) {
|
326
306
|
t.error(e);
|
327
307
|
}
|
328
|
-
},
|
308
|
+
}, n.prototype.forEach = function(t, e) {
|
329
309
|
var i = this;
|
330
|
-
return e =
|
331
|
-
var o = new
|
310
|
+
return e = jt(e), new e(function(s, r) {
|
311
|
+
var o = new vt({
|
332
312
|
next: function(a) {
|
333
313
|
try {
|
334
314
|
t(a);
|
335
315
|
} catch (c) {
|
336
|
-
|
316
|
+
r(c), o.unsubscribe();
|
337
317
|
}
|
338
318
|
},
|
339
|
-
error:
|
319
|
+
error: r,
|
340
320
|
complete: s
|
341
321
|
});
|
342
322
|
i.subscribe(o);
|
343
323
|
});
|
344
|
-
},
|
324
|
+
}, n.prototype._subscribe = function(t) {
|
345
325
|
var e;
|
346
326
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
347
|
-
},
|
327
|
+
}, n.prototype[ke] = function() {
|
348
328
|
return this;
|
349
|
-
},
|
329
|
+
}, n.prototype.pipe = function() {
|
350
330
|
for (var t = [], e = 0; e < arguments.length; e++)
|
351
331
|
t[e] = arguments[e];
|
352
|
-
return
|
353
|
-
},
|
332
|
+
return Re(t)(this);
|
333
|
+
}, n.prototype.toPromise = function(t) {
|
354
334
|
var e = this;
|
355
|
-
return t =
|
356
|
-
var
|
335
|
+
return t = jt(t), new t(function(i, s) {
|
336
|
+
var r;
|
357
337
|
e.subscribe(function(o) {
|
358
|
-
return
|
338
|
+
return r = o;
|
359
339
|
}, function(o) {
|
360
340
|
return s(o);
|
361
341
|
}, function() {
|
362
|
-
return i(
|
342
|
+
return i(r);
|
363
343
|
});
|
364
344
|
});
|
365
|
-
},
|
366
|
-
return new
|
367
|
-
},
|
345
|
+
}, n.create = function(t) {
|
346
|
+
return new n(t);
|
347
|
+
}, n;
|
368
348
|
}();
|
369
|
-
function
|
349
|
+
function jt(n) {
|
370
350
|
var t;
|
371
|
-
return (t =
|
351
|
+
return (t = n ?? Ce.Promise) !== null && t !== void 0 ? t : Promise;
|
372
352
|
}
|
373
|
-
function
|
374
|
-
return
|
353
|
+
function Ne(n) {
|
354
|
+
return n && _(n.next) && _(n.error) && _(n.complete);
|
375
355
|
}
|
376
|
-
function
|
377
|
-
return
|
356
|
+
function Me(n) {
|
357
|
+
return n && n instanceof he || Ne(n) && ce(n);
|
378
358
|
}
|
379
|
-
var
|
359
|
+
var Ue = oe(function(n) {
|
380
360
|
return function() {
|
381
|
-
|
361
|
+
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
382
362
|
};
|
383
|
-
}),
|
384
|
-
Y(t,
|
363
|
+
}), _t = function(n) {
|
364
|
+
Y(t, n);
|
385
365
|
function t() {
|
386
|
-
var e =
|
366
|
+
var e = n.call(this) || this;
|
387
367
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
388
368
|
}
|
389
369
|
return t.prototype.lift = function(e) {
|
390
|
-
var i = new
|
370
|
+
var i = new Ht(this, this);
|
391
371
|
return i.operator = e, i;
|
392
372
|
}, t.prototype._throwIfClosed = function() {
|
393
373
|
if (this.closed)
|
394
|
-
throw new
|
374
|
+
throw new Ue();
|
395
375
|
}, t.prototype.next = function(e) {
|
396
376
|
var i = this;
|
397
377
|
G(function() {
|
398
|
-
var s,
|
378
|
+
var s, r;
|
399
379
|
if (i._throwIfClosed(), !i.isStopped) {
|
400
380
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
401
381
|
try {
|
402
|
-
for (var o =
|
382
|
+
for (var o = gt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
403
383
|
var c = a.value;
|
404
384
|
c.next(e);
|
405
385
|
}
|
@@ -407,7 +387,7 @@ var je = ae(function(r) {
|
|
407
387
|
s = { error: l };
|
408
388
|
} finally {
|
409
389
|
try {
|
410
|
-
a && !a.done && (
|
390
|
+
a && !a.done && (r = o.return) && r.call(o);
|
411
391
|
} finally {
|
412
392
|
if (s) throw s.error;
|
413
393
|
}
|
@@ -442,27 +422,27 @@ var je = ae(function(r) {
|
|
442
422
|
enumerable: !1,
|
443
423
|
configurable: !0
|
444
424
|
}), t.prototype._trySubscribe = function(e) {
|
445
|
-
return this._throwIfClosed(),
|
425
|
+
return this._throwIfClosed(), n.prototype._trySubscribe.call(this, e);
|
446
426
|
}, t.prototype._subscribe = function(e) {
|
447
427
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
448
428
|
}, t.prototype._innerSubscribe = function(e) {
|
449
|
-
var i = this, s = this,
|
450
|
-
return
|
429
|
+
var i = this, s = this, r = s.hasError, o = s.isStopped, a = s.observers;
|
430
|
+
return r || o ? ae : (this.currentObservers = null, a.push(e), new nt(function() {
|
451
431
|
i.currentObservers = null, bt(a, e);
|
452
432
|
}));
|
453
433
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
454
|
-
var i = this, s = i.hasError,
|
455
|
-
s ? e.error(
|
434
|
+
var i = this, s = i.hasError, r = i.thrownError, o = i.isStopped;
|
435
|
+
s ? e.error(r) : o && e.complete();
|
456
436
|
}, t.prototype.asObservable = function() {
|
457
|
-
var e = new
|
437
|
+
var e = new Lt();
|
458
438
|
return e.source = this, e;
|
459
439
|
}, t.create = function(e, i) {
|
460
|
-
return new
|
440
|
+
return new Ht(e, i);
|
461
441
|
}, t;
|
462
|
-
}(
|
463
|
-
Y(t,
|
442
|
+
}(Lt), Ht = function(n) {
|
443
|
+
Y(t, n);
|
464
444
|
function t(e, i) {
|
465
|
-
var s =
|
445
|
+
var s = n.call(this) || this;
|
466
446
|
return s.destination = e, s.source = i, s;
|
467
447
|
}
|
468
448
|
return t.prototype.next = function(e) {
|
@@ -476,12 +456,12 @@ var je = ae(function(r) {
|
|
476
456
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
477
457
|
}, t.prototype._subscribe = function(e) {
|
478
458
|
var i, s;
|
479
|
-
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s :
|
459
|
+
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : ae;
|
480
460
|
}, t;
|
481
|
-
}(
|
482
|
-
Y(t,
|
461
|
+
}(_t), le = function(n) {
|
462
|
+
Y(t, n);
|
483
463
|
function t(e) {
|
484
|
-
var i =
|
464
|
+
var i = n.call(this) || this;
|
485
465
|
return i._value = e, i;
|
486
466
|
}
|
487
467
|
return Object.defineProperty(t.prototype, "value", {
|
@@ -491,20 +471,20 @@ var je = ae(function(r) {
|
|
491
471
|
enumerable: !1,
|
492
472
|
configurable: !0
|
493
473
|
}), t.prototype._subscribe = function(e) {
|
494
|
-
var i =
|
474
|
+
var i = n.prototype._subscribe.call(this, e);
|
495
475
|
return !i.closed && e.next(this._value), i;
|
496
476
|
}, t.prototype.getValue = function() {
|
497
|
-
var e = this, i = e.hasError, s = e.thrownError,
|
477
|
+
var e = this, i = e.hasError, s = e.thrownError, r = e._value;
|
498
478
|
if (i)
|
499
479
|
throw s;
|
500
|
-
return this._throwIfClosed(),
|
480
|
+
return this._throwIfClosed(), r;
|
501
481
|
}, t.prototype.next = function(e) {
|
502
|
-
|
482
|
+
n.prototype.next.call(this, this._value = e);
|
503
483
|
}, t;
|
504
|
-
}(
|
505
|
-
class
|
484
|
+
}(_t), de = /* @__PURE__ */ ((n) => (n.Loading = "loading", n.Ready = "ready", n))(de || {});
|
485
|
+
class Bt {
|
506
486
|
constructor(t, e) {
|
507
|
-
this.state = new
|
487
|
+
this.state = new le(
|
508
488
|
"loading"
|
509
489
|
/* Loading */
|
510
490
|
), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
|
@@ -527,18 +507,18 @@ class Dt {
|
|
527
507
|
* Copyright 2019 Google LLC
|
528
508
|
* SPDX-License-Identifier: BSD-3-Clause
|
529
509
|
*/
|
530
|
-
const J = globalThis,
|
531
|
-
let
|
510
|
+
const J = globalThis, At = J.ShadowRoot && (J.ShadyCSS === void 0 || J.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, xt = Symbol(), Dt = /* @__PURE__ */ new WeakMap();
|
511
|
+
let ue = class {
|
532
512
|
constructor(t, e, i) {
|
533
|
-
if (this._$cssResult$ = !0, i !==
|
513
|
+
if (this._$cssResult$ = !0, i !== xt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
534
514
|
this.cssText = t, this.t = e;
|
535
515
|
}
|
536
516
|
get styleSheet() {
|
537
517
|
let t = this.o;
|
538
518
|
const e = this.t;
|
539
|
-
if (
|
519
|
+
if (At && t === void 0) {
|
540
520
|
const i = e !== void 0 && e.length === 1;
|
541
|
-
i && (t =
|
521
|
+
i && (t = Dt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Dt.set(e, t));
|
542
522
|
}
|
543
523
|
return t;
|
544
524
|
}
|
@@ -546,74 +526,74 @@ let fe = class {
|
|
546
526
|
return this.cssText;
|
547
527
|
}
|
548
528
|
};
|
549
|
-
const
|
550
|
-
const e =
|
529
|
+
const Le = (n) => new ue(typeof n == "string" ? n : n + "", void 0, xt), U = (n, ...t) => {
|
530
|
+
const e = n.length === 1 ? n[0] : t.reduce((i, s, r) => i + ((o) => {
|
551
531
|
if (o._$cssResult$ === !0) return o.cssText;
|
552
532
|
if (typeof o == "number") return o;
|
553
533
|
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.");
|
554
|
-
})(s) + r
|
555
|
-
return new
|
556
|
-
},
|
557
|
-
if (
|
534
|
+
})(s) + n[r + 1], n[0]);
|
535
|
+
return new ue(e, n, xt);
|
536
|
+
}, je = (n, t) => {
|
537
|
+
if (At) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
558
538
|
else for (const e of t) {
|
559
539
|
const i = document.createElement("style"), s = J.litNonce;
|
560
|
-
s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText,
|
540
|
+
s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, n.appendChild(i);
|
561
541
|
}
|
562
|
-
},
|
542
|
+
}, zt = At ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
563
543
|
let e = "";
|
564
544
|
for (const i of t.cssRules) e += i.cssText;
|
565
|
-
return
|
566
|
-
})(
|
545
|
+
return Le(e);
|
546
|
+
})(n) : n;
|
567
547
|
/**
|
568
548
|
* @license
|
569
549
|
* Copyright 2017 Google LLC
|
570
550
|
* SPDX-License-Identifier: BSD-3-Clause
|
571
551
|
*/
|
572
|
-
const { is:
|
552
|
+
const { is: He, defineProperty: Be, getOwnPropertyDescriptor: De, getOwnPropertyNames: ze, getOwnPropertySymbols: Fe, getPrototypeOf: Ve } = Object, C = globalThis, Ft = C.trustedTypes, We = Ft ? Ft.emptyScript : "", at = C.reactiveElementPolyfillSupport, H = (n, t) => n, X = { toAttribute(n, t) {
|
573
553
|
switch (t) {
|
574
554
|
case Boolean:
|
575
|
-
|
555
|
+
n = n ? We : null;
|
576
556
|
break;
|
577
557
|
case Object:
|
578
558
|
case Array:
|
579
|
-
|
559
|
+
n = n == null ? n : JSON.stringify(n);
|
580
560
|
}
|
581
|
-
return
|
582
|
-
}, fromAttribute(
|
583
|
-
let e =
|
561
|
+
return n;
|
562
|
+
}, fromAttribute(n, t) {
|
563
|
+
let e = n;
|
584
564
|
switch (t) {
|
585
565
|
case Boolean:
|
586
|
-
e =
|
566
|
+
e = n !== null;
|
587
567
|
break;
|
588
568
|
case Number:
|
589
|
-
e =
|
569
|
+
e = n === null ? null : Number(n);
|
590
570
|
break;
|
591
571
|
case Object:
|
592
572
|
case Array:
|
593
573
|
try {
|
594
|
-
e = JSON.parse(
|
574
|
+
e = JSON.parse(n);
|
595
575
|
} catch {
|
596
576
|
e = null;
|
597
577
|
}
|
598
578
|
}
|
599
579
|
return e;
|
600
|
-
} },
|
580
|
+
} }, Ct = (n, t) => !He(n, t), Vt = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: Ct };
|
601
581
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
602
|
-
let
|
582
|
+
let k = class extends HTMLElement {
|
603
583
|
static addInitializer(t) {
|
604
584
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
605
585
|
}
|
606
586
|
static get observedAttributes() {
|
607
587
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
608
588
|
}
|
609
|
-
static createProperty(t, e =
|
589
|
+
static createProperty(t, e = Vt) {
|
610
590
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
611
591
|
const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
|
612
|
-
s !== void 0 &&
|
592
|
+
s !== void 0 && Be(this.prototype, t, s);
|
613
593
|
}
|
614
594
|
}
|
615
595
|
static getPropertyDescriptor(t, e, i) {
|
616
|
-
const { get: s, set:
|
596
|
+
const { get: s, set: r } = De(this.prototype, t) ?? { get() {
|
617
597
|
return this[e];
|
618
598
|
}, set(o) {
|
619
599
|
this[e] = o;
|
@@ -622,21 +602,21 @@ let T = class extends HTMLElement {
|
|
622
602
|
return s == null ? void 0 : s.call(this);
|
623
603
|
}, set(o) {
|
624
604
|
const a = s == null ? void 0 : s.call(this);
|
625
|
-
|
605
|
+
r.call(this, o), this.requestUpdate(t, a, i);
|
626
606
|
}, configurable: !0, enumerable: !0 };
|
627
607
|
}
|
628
608
|
static getPropertyOptions(t) {
|
629
|
-
return this.elementProperties.get(t) ??
|
609
|
+
return this.elementProperties.get(t) ?? Vt;
|
630
610
|
}
|
631
611
|
static _$Ei() {
|
632
612
|
if (this.hasOwnProperty(H("elementProperties"))) return;
|
633
|
-
const t =
|
613
|
+
const t = Ve(this);
|
634
614
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
635
615
|
}
|
636
616
|
static finalize() {
|
637
617
|
if (this.hasOwnProperty(H("finalized"))) return;
|
638
618
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(H("properties"))) {
|
639
|
-
const e = this.properties, i = [...
|
619
|
+
const e = this.properties, i = [...ze(e), ...Fe(e)];
|
640
620
|
for (const s of i) this.createProperty(s, e[s]);
|
641
621
|
}
|
642
622
|
const t = this[Symbol.metadata];
|
@@ -655,8 +635,8 @@ let T = class extends HTMLElement {
|
|
655
635
|
const e = [];
|
656
636
|
if (Array.isArray(t)) {
|
657
637
|
const i = new Set(t.flat(1 / 0).reverse());
|
658
|
-
for (const s of i) e.unshift(
|
659
|
-
} else t !== void 0 && e.push(
|
638
|
+
for (const s of i) e.unshift(zt(s));
|
639
|
+
} else t !== void 0 && e.push(zt(t));
|
660
640
|
return e;
|
661
641
|
}
|
662
642
|
static _$Eu(t, e) {
|
@@ -685,7 +665,7 @@ let T = class extends HTMLElement {
|
|
685
665
|
}
|
686
666
|
createRenderRoot() {
|
687
667
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
688
|
-
return
|
668
|
+
return je(t, this.constructor.elementStyles), t;
|
689
669
|
}
|
690
670
|
connectedCallback() {
|
691
671
|
var t;
|
@@ -707,24 +687,24 @@ let T = class extends HTMLElement {
|
|
707
687
|
this._$AK(t, i);
|
708
688
|
}
|
709
689
|
_$EC(t, e) {
|
710
|
-
var
|
690
|
+
var r;
|
711
691
|
const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
|
712
692
|
if (s !== void 0 && i.reflect === !0) {
|
713
|
-
const o = (((
|
693
|
+
const o = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : X).toAttribute(e, i.type);
|
714
694
|
this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
|
715
695
|
}
|
716
696
|
}
|
717
697
|
_$AK(t, e) {
|
718
|
-
var
|
698
|
+
var r;
|
719
699
|
const i = this.constructor, s = i._$Eh.get(t);
|
720
700
|
if (s !== void 0 && this._$Em !== s) {
|
721
|
-
const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((
|
701
|
+
const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter : X;
|
722
702
|
this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
|
723
703
|
}
|
724
704
|
}
|
725
705
|
requestUpdate(t, e, i) {
|
726
706
|
if (t !== void 0) {
|
727
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
707
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ct)(this[t], e)) return;
|
728
708
|
this.P(t, e, i);
|
729
709
|
}
|
730
710
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
@@ -750,18 +730,18 @@ let T = class extends HTMLElement {
|
|
750
730
|
if (!this.isUpdatePending) return;
|
751
731
|
if (!this.hasUpdated) {
|
752
732
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
753
|
-
for (const [
|
733
|
+
for (const [r, o] of this._$Ep) this[r] = o;
|
754
734
|
this._$Ep = void 0;
|
755
735
|
}
|
756
736
|
const s = this.constructor.elementProperties;
|
757
|
-
if (s.size > 0) for (const [
|
737
|
+
if (s.size > 0) for (const [r, o] of s) o.wrapped !== !0 || this._$AL.has(r) || this[r] === void 0 || this.P(r, this[r], o);
|
758
738
|
}
|
759
739
|
let t = !1;
|
760
740
|
const e = this._$AL;
|
761
741
|
try {
|
762
742
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
|
763
|
-
var
|
764
|
-
return (
|
743
|
+
var r;
|
744
|
+
return (r = s.hostUpdate) == null ? void 0 : r.call(s);
|
765
745
|
}), this.update(e)) : this._$EU();
|
766
746
|
} catch (s) {
|
767
747
|
throw t = !1, this._$EU(), s;
|
@@ -797,61 +777,61 @@ let T = class extends HTMLElement {
|
|
797
777
|
firstUpdated(t) {
|
798
778
|
}
|
799
779
|
};
|
800
|
-
|
780
|
+
k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[H("elementProperties")] = /* @__PURE__ */ new Map(), k[H("finalized")] = /* @__PURE__ */ new Map(), at == null || at({ ReactiveElement: k }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.0.4");
|
801
781
|
/**
|
802
782
|
* @license
|
803
783
|
* Copyright 2017 Google LLC
|
804
784
|
* SPDX-License-Identifier: BSD-3-Clause
|
805
785
|
*/
|
806
|
-
const B = globalThis, Q = B.trustedTypes,
|
807
|
-
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
808
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
809
|
-
function
|
810
|
-
if (!
|
811
|
-
return
|
786
|
+
const B = globalThis, Q = B.trustedTypes, Wt = Q ? Q.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, pe = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, fe = "?" + x, Ye = `<${fe}>`, O = document, z = () => O.createComment(""), F = (n) => n === null || typeof n != "object" && typeof n != "function", St = Array.isArray, qe = (n) => St(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", ct = `[
|
787
|
+
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Yt = /-->/g, qt = />/g, S = RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^
|
788
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Kt = /'/g, Zt = /"/g, ge = /^(?:script|style|textarea|title)$/i, Ke = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), T = Ke(1), I = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Gt = /* @__PURE__ */ new WeakMap(), P = O.createTreeWalker(O, 129);
|
789
|
+
function me(n, t) {
|
790
|
+
if (!St(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
791
|
+
return Wt !== void 0 ? Wt.createHTML(t) : t;
|
812
792
|
}
|
813
|
-
const
|
814
|
-
const e =
|
815
|
-
let s,
|
793
|
+
const Ze = (n, t) => {
|
794
|
+
const e = n.length - 1, i = [];
|
795
|
+
let s, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = j;
|
816
796
|
for (let a = 0; a < e; a++) {
|
817
|
-
const c =
|
797
|
+
const c = n[a];
|
818
798
|
let l, h, d = -1, u = 0;
|
819
|
-
for (; u < c.length && (o.lastIndex = u, h = o.exec(c), h !== null); ) u = o.lastIndex, o === j ? h[1] === "!--" ? o =
|
820
|
-
const f = o === S &&
|
821
|
-
|
799
|
+
for (; u < c.length && (o.lastIndex = u, h = o.exec(c), h !== null); ) u = o.lastIndex, o === j ? h[1] === "!--" ? o = Yt : h[1] !== void 0 ? o = qt : h[2] !== void 0 ? (ge.test(h[2]) && (s = RegExp("</" + h[2], "g")), o = S) : h[3] !== void 0 && (o = S) : o === S ? h[0] === ">" ? (o = s ?? j, d = -1) : h[1] === void 0 ? d = -2 : (d = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? S : h[3] === '"' ? Zt : Kt) : o === Zt || o === Kt ? o = S : o === Yt || o === qt ? o = j : (o = S, s = void 0);
|
800
|
+
const f = o === S && n[a + 1].startsWith("/>") ? " " : "";
|
801
|
+
r += o === j ? c + Ye : d >= 0 ? (i.push(l), c.slice(0, d) + pe + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
|
822
802
|
}
|
823
|
-
return [
|
803
|
+
return [me(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
824
804
|
};
|
825
|
-
let
|
805
|
+
let wt = class ye {
|
826
806
|
constructor({ strings: t, _$litType$: e }, i) {
|
827
807
|
let s;
|
828
808
|
this.parts = [];
|
829
|
-
let
|
830
|
-
const a = t.length - 1, c = this.parts, [l, h] =
|
831
|
-
if (this.el =
|
809
|
+
let r = 0, o = 0;
|
810
|
+
const a = t.length - 1, c = this.parts, [l, h] = Ze(t, e);
|
811
|
+
if (this.el = ye.createElement(l, i), P.currentNode = this.el.content, e === 2 || e === 3) {
|
832
812
|
const d = this.el.content.firstChild;
|
833
813
|
d.replaceWith(...d.childNodes);
|
834
814
|
}
|
835
815
|
for (; (s = P.nextNode()) !== null && c.length < a; ) {
|
836
816
|
if (s.nodeType === 1) {
|
837
|
-
if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(
|
817
|
+
if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(pe)) {
|
838
818
|
const u = h[o++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(u);
|
839
|
-
c.push({ type: 1, index:
|
840
|
-
} else d.startsWith(x) && (c.push({ type: 6, index:
|
841
|
-
if (
|
819
|
+
c.push({ type: 1, index: r, name: g[2], strings: f, ctor: g[1] === "." ? Je : g[1] === "?" ? Xe : g[1] === "@" ? Qe : rt }), s.removeAttribute(d);
|
820
|
+
} else d.startsWith(x) && (c.push({ type: 6, index: r }), s.removeAttribute(d));
|
821
|
+
if (ge.test(s.tagName)) {
|
842
822
|
const d = s.textContent.split(x), u = d.length - 1;
|
843
823
|
if (u > 0) {
|
844
824
|
s.textContent = Q ? Q.emptyScript : "";
|
845
|
-
for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++
|
825
|
+
for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++r });
|
846
826
|
s.append(d[u], z());
|
847
827
|
}
|
848
828
|
}
|
849
|
-
} else if (s.nodeType === 8) if (s.data ===
|
829
|
+
} else if (s.nodeType === 8) if (s.data === fe) c.push({ type: 2, index: r });
|
850
830
|
else {
|
851
831
|
let d = -1;
|
852
|
-
for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index:
|
832
|
+
for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: r }), d += x.length - 1;
|
853
833
|
}
|
854
|
-
|
834
|
+
r++;
|
855
835
|
}
|
856
836
|
}
|
857
837
|
static createElement(t, e) {
|
@@ -859,14 +839,14 @@ let $t = class be {
|
|
859
839
|
return i.innerHTML = t, i;
|
860
840
|
}
|
861
841
|
};
|
862
|
-
function R(
|
842
|
+
function R(n, t, e = n, i) {
|
863
843
|
var o, a;
|
864
844
|
if (t === I) return t;
|
865
845
|
let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
866
|
-
const
|
867
|
-
return (s == null ? void 0 : s.constructor) !==
|
846
|
+
const r = F(t) ? void 0 : t._$litDirective$;
|
847
|
+
return (s == null ? void 0 : s.constructor) !== r && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), r === void 0 ? s = void 0 : (s = new r(n), s._$AT(n, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = R(n, s._$AS(n, t.values), s, i)), t;
|
868
848
|
}
|
869
|
-
class
|
849
|
+
class Ge {
|
870
850
|
constructor(t, e) {
|
871
851
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
872
852
|
}
|
@@ -879,13 +859,13 @@ class Xe {
|
|
879
859
|
u(t) {
|
880
860
|
const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? O).importNode(e, !0);
|
881
861
|
P.currentNode = s;
|
882
|
-
let
|
862
|
+
let r = P.nextNode(), o = 0, a = 0, c = i[0];
|
883
863
|
for (; c !== void 0; ) {
|
884
864
|
if (o === c.index) {
|
885
865
|
let l;
|
886
|
-
c.type === 2 ? l = new q(
|
866
|
+
c.type === 2 ? l = new q(r, r.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (l = new ti(r, this, t)), this._$AV.push(l), c = i[++a];
|
887
867
|
}
|
888
|
-
o !== (c == null ? void 0 : c.index) && (
|
868
|
+
o !== (c == null ? void 0 : c.index) && (r = P.nextNode(), o++);
|
889
869
|
}
|
890
870
|
return P.currentNode = O, s;
|
891
871
|
}
|
@@ -914,7 +894,7 @@ class q {
|
|
914
894
|
return this._$AB;
|
915
895
|
}
|
916
896
|
_$AI(t, e = this) {
|
917
|
-
t = R(this, t, e), F(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== I && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
897
|
+
t = R(this, t, e), F(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== I && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : qe(t) ? this.k(t) : this._(t);
|
918
898
|
}
|
919
899
|
O(t) {
|
920
900
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -926,23 +906,23 @@ class q {
|
|
926
906
|
this._$AH !== p && F(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
|
927
907
|
}
|
928
908
|
$(t) {
|
929
|
-
var
|
930
|
-
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
931
|
-
if (((
|
909
|
+
var r;
|
910
|
+
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = wt.createElement(me(i.h, i.h[0]), this.options)), i);
|
911
|
+
if (((r = this._$AH) == null ? void 0 : r._$AD) === s) this._$AH.p(e);
|
932
912
|
else {
|
933
|
-
const o = new
|
913
|
+
const o = new Ge(s, this), a = o.u(this.options);
|
934
914
|
o.p(e), this.T(a), this._$AH = o;
|
935
915
|
}
|
936
916
|
}
|
937
917
|
_$AC(t) {
|
938
|
-
let e =
|
939
|
-
return e === void 0 &&
|
918
|
+
let e = Gt.get(t.strings);
|
919
|
+
return e === void 0 && Gt.set(t.strings, e = new wt(t)), e;
|
940
920
|
}
|
941
921
|
k(t) {
|
942
|
-
|
922
|
+
St(this._$AH) || (this._$AH = [], this._$AR());
|
943
923
|
const e = this._$AH;
|
944
924
|
let i, s = 0;
|
945
|
-
for (const
|
925
|
+
for (const r of t) s === e.length ? e.push(i = new q(this.O(z()), this.O(z()), this, this.options)) : i = e[s], i._$AI(r), s++;
|
946
926
|
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
947
927
|
}
|
948
928
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -957,24 +937,24 @@ class q {
|
|
957
937
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
958
938
|
}
|
959
939
|
}
|
960
|
-
class
|
940
|
+
class rt {
|
961
941
|
get tagName() {
|
962
942
|
return this.element.tagName;
|
963
943
|
}
|
964
944
|
get _$AU() {
|
965
945
|
return this._$AM._$AU;
|
966
946
|
}
|
967
|
-
constructor(t, e, i, s,
|
968
|
-
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options =
|
947
|
+
constructor(t, e, i, s, r) {
|
948
|
+
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = p;
|
969
949
|
}
|
970
950
|
_$AI(t, e = this, i, s) {
|
971
|
-
const
|
951
|
+
const r = this.strings;
|
972
952
|
let o = !1;
|
973
|
-
if (
|
953
|
+
if (r === void 0) t = R(this, t, e, 0), o = !F(t) || t !== this._$AH && t !== I, o && (this._$AH = t);
|
974
954
|
else {
|
975
955
|
const a = t;
|
976
956
|
let c, l;
|
977
|
-
for (t =
|
957
|
+
for (t = r[0], c = 0; c < r.length - 1; c++) l = R(this, a[i + c], e, c), l === I && (l = this._$AH[c]), o || (o = !F(l) || l !== this._$AH[c]), l === p ? t = p : t !== p && (t += (l ?? "") + r[c + 1]), this._$AH[c] = l;
|
978
958
|
}
|
979
959
|
o && !s && this.j(t);
|
980
960
|
}
|
@@ -982,7 +962,7 @@ class nt {
|
|
982
962
|
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
983
963
|
}
|
984
964
|
}
|
985
|
-
class
|
965
|
+
class Je extends rt {
|
986
966
|
constructor() {
|
987
967
|
super(...arguments), this.type = 3;
|
988
968
|
}
|
@@ -990,7 +970,7 @@ class Qe extends nt {
|
|
990
970
|
this.element[this.name] = t === p ? void 0 : t;
|
991
971
|
}
|
992
972
|
}
|
993
|
-
class
|
973
|
+
class Xe extends rt {
|
994
974
|
constructor() {
|
995
975
|
super(...arguments), this.type = 4;
|
996
976
|
}
|
@@ -998,21 +978,21 @@ class ti extends nt {
|
|
998
978
|
this.element.toggleAttribute(this.name, !!t && t !== p);
|
999
979
|
}
|
1000
980
|
}
|
1001
|
-
class
|
1002
|
-
constructor(t, e, i, s,
|
1003
|
-
super(t, e, i, s,
|
981
|
+
class Qe extends rt {
|
982
|
+
constructor(t, e, i, s, r) {
|
983
|
+
super(t, e, i, s, r), this.type = 5;
|
1004
984
|
}
|
1005
985
|
_$AI(t, e = this) {
|
1006
986
|
if ((t = R(this, t, e, 0) ?? p) === I) return;
|
1007
|
-
const i = this._$AH, s = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive,
|
1008
|
-
s && this.element.removeEventListener(this.name, this, i),
|
987
|
+
const i = this._$AH, s = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== p && (i === p || s);
|
988
|
+
s && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
1009
989
|
}
|
1010
990
|
handleEvent(t) {
|
1011
991
|
var e;
|
1012
992
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
1013
993
|
}
|
1014
994
|
}
|
1015
|
-
class
|
995
|
+
class ti {
|
1016
996
|
constructor(t, e, i) {
|
1017
997
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
1018
998
|
}
|
@@ -1023,23 +1003,23 @@ class ii {
|
|
1023
1003
|
R(this, t);
|
1024
1004
|
}
|
1025
1005
|
}
|
1026
|
-
const
|
1027
|
-
|
1028
|
-
const
|
1006
|
+
const ht = B.litHtmlPolyfillSupport;
|
1007
|
+
ht == null || ht(wt, q), (B.litHtmlVersions ?? (B.litHtmlVersions = [])).push("3.2.1");
|
1008
|
+
const ei = (n, t, e) => {
|
1029
1009
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1030
1010
|
let s = i._$litPart$;
|
1031
1011
|
if (s === void 0) {
|
1032
|
-
const
|
1033
|
-
i._$litPart$ = s = new q(t.insertBefore(z(),
|
1012
|
+
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
1013
|
+
i._$litPart$ = s = new q(t.insertBefore(z(), r), r, void 0, e ?? {});
|
1034
1014
|
}
|
1035
|
-
return s._$AI(
|
1015
|
+
return s._$AI(n), s;
|
1036
1016
|
};
|
1037
1017
|
/**
|
1038
1018
|
* @license
|
1039
1019
|
* Copyright 2017 Google LLC
|
1040
1020
|
* SPDX-License-Identifier: BSD-3-Clause
|
1041
1021
|
*/
|
1042
|
-
let A = class extends
|
1022
|
+
let A = class extends k {
|
1043
1023
|
constructor() {
|
1044
1024
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
1045
1025
|
}
|
@@ -1050,7 +1030,7 @@ let A = class extends T {
|
|
1050
1030
|
}
|
1051
1031
|
update(t) {
|
1052
1032
|
const e = this.render();
|
1053
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
1033
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ei(e, this.renderRoot, this.renderOptions);
|
1054
1034
|
}
|
1055
1035
|
connectedCallback() {
|
1056
1036
|
var t;
|
@@ -1064,57 +1044,57 @@ let A = class extends T {
|
|
1064
1044
|
return I;
|
1065
1045
|
}
|
1066
1046
|
};
|
1067
|
-
var
|
1068
|
-
A._$litElement$ = !0, A.finalized = !0, (
|
1069
|
-
const
|
1070
|
-
|
1047
|
+
var re;
|
1048
|
+
A._$litElement$ = !0, A.finalized = !0, (re = globalThis.litElementHydrateSupport) == null || re.call(globalThis, { LitElement: A });
|
1049
|
+
const lt = globalThis.litElementPolyfillSupport;
|
1050
|
+
lt == null || lt({ LitElement: A });
|
1071
1051
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
1072
1052
|
/**
|
1073
1053
|
* @license
|
1074
1054
|
* Copyright 2017 Google LLC
|
1075
1055
|
* SPDX-License-Identifier: BSD-3-Clause
|
1076
1056
|
*/
|
1077
|
-
const
|
1057
|
+
const ii = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: Ct }, si = (n = ii, t, e) => {
|
1078
1058
|
const { kind: i, metadata: s } = e;
|
1079
|
-
let
|
1080
|
-
if (
|
1059
|
+
let r = globalThis.litPropertyMetadata.get(s);
|
1060
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(s, r = /* @__PURE__ */ new Map()), r.set(e.name, n), i === "accessor") {
|
1081
1061
|
const { name: o } = e;
|
1082
1062
|
return { set(a) {
|
1083
1063
|
const c = t.get.call(this);
|
1084
|
-
t.set.call(this, a), this.requestUpdate(o, c,
|
1064
|
+
t.set.call(this, a), this.requestUpdate(o, c, n);
|
1085
1065
|
}, init(a) {
|
1086
|
-
return a !== void 0 && this.P(o, void 0,
|
1066
|
+
return a !== void 0 && this.P(o, void 0, n), a;
|
1087
1067
|
} };
|
1088
1068
|
}
|
1089
1069
|
if (i === "setter") {
|
1090
1070
|
const { name: o } = e;
|
1091
1071
|
return function(a) {
|
1092
1072
|
const c = this[o];
|
1093
|
-
t.call(this, a), this.requestUpdate(o, c,
|
1073
|
+
t.call(this, a), this.requestUpdate(o, c, n);
|
1094
1074
|
};
|
1095
1075
|
}
|
1096
1076
|
throw Error("Unsupported decorator location: " + i);
|
1097
1077
|
};
|
1098
|
-
function m(
|
1099
|
-
return (t, e) => typeof e == "object" ?
|
1100
|
-
const o = s.hasOwnProperty(
|
1101
|
-
return s.constructor.createProperty(
|
1102
|
-
})(
|
1078
|
+
function m(n) {
|
1079
|
+
return (t, e) => typeof e == "object" ? si(n, t, e) : ((i, s, r) => {
|
1080
|
+
const o = s.hasOwnProperty(r);
|
1081
|
+
return s.constructor.createProperty(r, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, r) : void 0;
|
1082
|
+
})(n, t, e);
|
1103
1083
|
}
|
1104
1084
|
/**
|
1105
1085
|
* @license
|
1106
1086
|
* Copyright 2017 Google LLC
|
1107
1087
|
* SPDX-License-Identifier: BSD-3-Clause
|
1108
1088
|
*/
|
1109
|
-
function L(
|
1110
|
-
return m({ ...
|
1089
|
+
function L(n) {
|
1090
|
+
return m({ ...n, state: !0, attribute: !1 });
|
1111
1091
|
}
|
1112
|
-
var
|
1113
|
-
for (var s = void 0,
|
1114
|
-
(o = r
|
1115
|
-
return s &&
|
1092
|
+
var ni = Object.defineProperty, ri = (n, t, e, i) => {
|
1093
|
+
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
1094
|
+
(o = n[r]) && (s = o(t, e, s) || s);
|
1095
|
+
return s && ni(t, e, s), s;
|
1116
1096
|
};
|
1117
|
-
const
|
1097
|
+
const It = class It extends A {
|
1118
1098
|
constructor() {
|
1119
1099
|
super(...arguments), this.anchor = "BottomRight";
|
1120
1100
|
}
|
@@ -1126,7 +1106,7 @@ const Tt = class Tt extends A {
|
|
1126
1106
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), p;
|
1127
1107
|
}
|
1128
1108
|
};
|
1129
|
-
|
1109
|
+
It.styles = [
|
1130
1110
|
U`
|
1131
1111
|
:host {
|
1132
1112
|
position: fixed;
|
@@ -1145,8 +1125,8 @@ Tt.styles = [
|
|
1145
1125
|
}
|
1146
1126
|
`
|
1147
1127
|
];
|
1148
|
-
let V =
|
1149
|
-
|
1128
|
+
let V = It;
|
1129
|
+
ri([
|
1150
1130
|
m({ attribute: !0 })
|
1151
1131
|
], V.prototype, "anchor");
|
1152
1132
|
/**
|
@@ -1154,8 +1134,8 @@ ai([
|
|
1154
1134
|
* Copyright 2017 Google LLC
|
1155
1135
|
* SPDX-License-Identifier: BSD-3-Clause
|
1156
1136
|
*/
|
1157
|
-
const
|
1158
|
-
let
|
1137
|
+
const Et = { ATTRIBUTE: 1, CHILD: 2 }, Pt = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
1138
|
+
let be = class {
|
1159
1139
|
constructor(t) {
|
1160
1140
|
}
|
1161
1141
|
get _$AU() {
|
@@ -1176,57 +1156,57 @@ let we = class {
|
|
1176
1156
|
* Copyright 2020 Google LLC
|
1177
1157
|
* SPDX-License-Identifier: BSD-3-Clause
|
1178
1158
|
*/
|
1179
|
-
const
|
1159
|
+
const oi = (n) => n.strings === void 0;
|
1180
1160
|
/**
|
1181
1161
|
* @license
|
1182
1162
|
* Copyright 2017 Google LLC
|
1183
1163
|
* SPDX-License-Identifier: BSD-3-Clause
|
1184
1164
|
*/
|
1185
|
-
const D = (
|
1165
|
+
const D = (n, t) => {
|
1186
1166
|
var i;
|
1187
|
-
const e =
|
1167
|
+
const e = n._$AN;
|
1188
1168
|
if (e === void 0) return !1;
|
1189
1169
|
for (const s of e) (i = s._$AO) == null || i.call(s, t, !1), D(s, t);
|
1190
1170
|
return !0;
|
1191
|
-
}, tt = (
|
1171
|
+
}, tt = (n) => {
|
1192
1172
|
let t, e;
|
1193
1173
|
do {
|
1194
|
-
if ((t =
|
1195
|
-
e = t._$AN, e.delete(
|
1174
|
+
if ((t = n._$AM) === void 0) break;
|
1175
|
+
e = t._$AN, e.delete(n), n = t;
|
1196
1176
|
} while ((e == null ? void 0 : e.size) === 0);
|
1197
|
-
},
|
1198
|
-
for (let t; t =
|
1177
|
+
}, ve = (n) => {
|
1178
|
+
for (let t; t = n._$AM; n = t) {
|
1199
1179
|
let e = t._$AN;
|
1200
1180
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
1201
|
-
else if (e.has(
|
1202
|
-
e.add(
|
1181
|
+
else if (e.has(n)) break;
|
1182
|
+
e.add(n), hi(t);
|
1203
1183
|
}
|
1204
1184
|
};
|
1205
|
-
function
|
1206
|
-
this._$AN !== void 0 ? (tt(this), this._$AM =
|
1185
|
+
function ai(n) {
|
1186
|
+
this._$AN !== void 0 ? (tt(this), this._$AM = n, ve(this)) : this._$AM = n;
|
1207
1187
|
}
|
1208
|
-
function
|
1188
|
+
function ci(n, t = !1, e = 0) {
|
1209
1189
|
const i = this._$AH, s = this._$AN;
|
1210
|
-
if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let
|
1190
|
+
if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let r = e; r < i.length; r++) D(i[r], !1), tt(i[r]);
|
1211
1191
|
else i != null && (D(i, !1), tt(i));
|
1212
|
-
else D(this,
|
1192
|
+
else D(this, n);
|
1213
1193
|
}
|
1214
|
-
const
|
1215
|
-
|
1194
|
+
const hi = (n) => {
|
1195
|
+
n.type == Et.CHILD && (n._$AP ?? (n._$AP = ci), n._$AQ ?? (n._$AQ = ai));
|
1216
1196
|
};
|
1217
|
-
class
|
1197
|
+
class we extends be {
|
1218
1198
|
constructor() {
|
1219
1199
|
super(...arguments), this._$AN = void 0;
|
1220
1200
|
}
|
1221
1201
|
_$AT(t, e, i) {
|
1222
|
-
super._$AT(t, e, i),
|
1202
|
+
super._$AT(t, e, i), ve(this), this.isConnected = t._$AU;
|
1223
1203
|
}
|
1224
1204
|
_$AO(t, e = !0) {
|
1225
1205
|
var i, s;
|
1226
1206
|
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (D(this, t), tt(this));
|
1227
1207
|
}
|
1228
1208
|
setValue(t) {
|
1229
|
-
if (
|
1209
|
+
if (oi(this._$Ct)) this._$Ct._$AI(t, this);
|
1230
1210
|
else {
|
1231
1211
|
const e = [...this._$Ct._$AH];
|
1232
1212
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
@@ -1237,34 +1217,34 @@ class _e extends we {
|
|
1237
1217
|
reconnected() {
|
1238
1218
|
}
|
1239
1219
|
}
|
1240
|
-
const
|
1241
|
-
let
|
1242
|
-
const
|
1243
|
-
const e =
|
1220
|
+
const li = /* @__PURE__ */ new WeakMap();
|
1221
|
+
let Jt = 0;
|
1222
|
+
const dt = /* @__PURE__ */ new Map(), Xt = /* @__PURE__ */ new WeakSet(), Qt = () => new Promise((n) => requestAnimationFrame(n)), di = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], te = (n, t) => {
|
1223
|
+
const e = n - t;
|
1244
1224
|
return e === 0 ? void 0 : e;
|
1245
|
-
},
|
1246
|
-
const e =
|
1225
|
+
}, ee = (n, t) => {
|
1226
|
+
const e = n / t;
|
1247
1227
|
return e === 1 ? void 0 : e;
|
1248
|
-
},
|
1249
|
-
const e =
|
1228
|
+
}, ut = { left: (n, t) => {
|
1229
|
+
const e = te(n, t);
|
1250
1230
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1251
|
-
}, top: (
|
1252
|
-
const e =
|
1231
|
+
}, top: (n, t) => {
|
1232
|
+
const e = te(n, t);
|
1253
1233
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1254
|
-
}, width: (
|
1234
|
+
}, width: (n, t) => {
|
1255
1235
|
let e;
|
1256
1236
|
t === 0 && (t = 1, e = { width: "1px" });
|
1257
|
-
const i =
|
1237
|
+
const i = ee(n, t);
|
1258
1238
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1259
|
-
}, height: (
|
1239
|
+
}, height: (n, t) => {
|
1260
1240
|
let e;
|
1261
1241
|
t === 0 && (t = 1, e = { height: "1px" });
|
1262
|
-
const i =
|
1242
|
+
const i = ee(n, t);
|
1263
1243
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1264
|
-
} },
|
1265
|
-
class
|
1244
|
+
} }, ui = { duration: 333, easing: "ease-in-out" }, pi = ["left", "top", "width", "height", "opacity", "color", "background"], ie = /* @__PURE__ */ new WeakMap();
|
1245
|
+
class fi extends we {
|
1266
1246
|
constructor(t) {
|
1267
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
1247
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Et.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
1268
1248
|
this.createFinished();
|
1269
1249
|
}
|
1270
1250
|
createFinished() {
|
@@ -1281,7 +1261,7 @@ class mi extends _e {
|
|
1281
1261
|
return p;
|
1282
1262
|
}
|
1283
1263
|
getController() {
|
1284
|
-
return
|
1264
|
+
return li.get(this.u);
|
1285
1265
|
}
|
1286
1266
|
isDisabled() {
|
1287
1267
|
var t;
|
@@ -1290,25 +1270,25 @@ class mi extends _e {
|
|
1290
1270
|
update(t, [e]) {
|
1291
1271
|
var s;
|
1292
1272
|
const i = this.u === void 0;
|
1293
|
-
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((
|
1273
|
+
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((r) => this.t = !0), this.element = t.element, ie.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
1294
1274
|
}
|
1295
1275
|
p(t) {
|
1296
1276
|
t = t ?? {};
|
1297
1277
|
const e = this.getController();
|
1298
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1278
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = pi), this.options = t;
|
1299
1279
|
}
|
1300
1280
|
m() {
|
1301
1281
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1302
1282
|
return this.options.properties.forEach((s) => {
|
1303
|
-
const
|
1304
|
-
t[s] = isNaN(o) ?
|
1283
|
+
const r = e[s] ?? (ut[s] ? void 0 : i[s]), o = Number(r);
|
1284
|
+
t[s] = isNaN(o) ? r + "" : o;
|
1305
1285
|
}), t;
|
1306
1286
|
}
|
1307
1287
|
v() {
|
1308
1288
|
let t, e = !0;
|
1309
1289
|
return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
|
1310
1290
|
if (Array.isArray(i)) {
|
1311
|
-
if (Array.isArray(s) && s.length === i.length && i.every((
|
1291
|
+
if (Array.isArray(s) && s.length === i.length && i.every((r, o) => r === s[o])) return !1;
|
1312
1292
|
} else if (s === i) return !1;
|
1313
1293
|
return !0;
|
1314
1294
|
})(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;
|
@@ -1319,17 +1299,17 @@ class mi extends _e {
|
|
1319
1299
|
async hostUpdated() {
|
1320
1300
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
1321
1301
|
let t;
|
1322
|
-
this.prepare(), await
|
1302
|
+
this.prepare(), await Qt;
|
1323
1303
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
|
1324
1304
|
if (this.A !== void 0) {
|
1325
|
-
const { from:
|
1326
|
-
this.log("measured", [this.A, s,
|
1305
|
+
const { from: r, to: o } = this.N(this.A, s, e);
|
1306
|
+
this.log("measured", [this.A, s, r, o]), t = this.calculateKeyframes(r, o);
|
1327
1307
|
} else {
|
1328
|
-
const
|
1329
|
-
if (
|
1330
|
-
|
1331
|
-
const { from: o, to: a } = this.N(
|
1332
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
1308
|
+
const r = dt.get(this.options.inId);
|
1309
|
+
if (r) {
|
1310
|
+
dt.delete(this.options.inId);
|
1311
|
+
const { from: o, to: a } = this.N(r, s, e);
|
1312
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Jt++, t.forEach((c) => c.zIndex = Jt);
|
1333
1313
|
} else this.options.in && (t = [...this.options.in, {}]);
|
1334
1314
|
}
|
1335
1315
|
this.animate(t, i);
|
@@ -1345,14 +1325,14 @@ class mi extends _e {
|
|
1345
1325
|
}
|
1346
1326
|
async disconnected() {
|
1347
1327
|
var e;
|
1348
|
-
if (!this.h || (this.options.id !== void 0 &&
|
1349
|
-
if (this.prepare(), await
|
1328
|
+
if (!this.h || (this.options.id !== void 0 && dt.set(this.options.id, this.A), this.options.out === void 0)) return;
|
1329
|
+
if (this.prepare(), await Qt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
1350
1330
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
1351
1331
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1352
1332
|
const s = this.m();
|
1353
1333
|
this.log("stabilizing out");
|
1354
|
-
const
|
1355
|
-
getComputedStyle(this.element).position !== "static" ||
|
1334
|
+
const r = this.A.left - s.left, o = this.A.top - s.top;
|
1335
|
+
getComputedStyle(this.element).position !== "static" || r === 0 && o === 0 || (this.element.style.position = "relative"), r !== 0 && (this.element.style.left = r + "px"), o !== 0 && (this.element.style.top = o + "px");
|
1356
1336
|
}
|
1357
1337
|
}
|
1358
1338
|
const t = this.j(this.options.keyframeOptions);
|
@@ -1372,43 +1352,43 @@ class mi extends _e {
|
|
1372
1352
|
O() {
|
1373
1353
|
const t = [];
|
1374
1354
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1375
|
-
const i =
|
1355
|
+
const i = ie.get(e);
|
1376
1356
|
i && !i.isDisabled() && i && t.push(i);
|
1377
1357
|
}
|
1378
1358
|
return t;
|
1379
1359
|
}
|
1380
1360
|
get isHostRendered() {
|
1381
|
-
const t =
|
1361
|
+
const t = Xt.has(this.u);
|
1382
1362
|
return t || this.u.updateComplete.then(() => {
|
1383
|
-
|
1363
|
+
Xt.add(this.u);
|
1384
1364
|
}), t;
|
1385
1365
|
}
|
1386
1366
|
j(t, e = this.O()) {
|
1387
|
-
const i = { ...
|
1367
|
+
const i = { ...ui };
|
1388
1368
|
return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
|
1389
1369
|
}
|
1390
1370
|
N(t, e, i) {
|
1391
1371
|
t = { ...t }, e = { ...e };
|
1392
1372
|
const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1393
|
-
let
|
1373
|
+
let r = 1, o = 1;
|
1394
1374
|
return s.length > 0 && (s.forEach((a) => {
|
1395
|
-
a.width && (
|
1396
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left =
|
1375
|
+
a.width && (r /= a.width), a.height && (o /= a.height);
|
1376
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = r * t.left, e.left = r * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
1397
1377
|
}
|
1398
1378
|
calculateKeyframes(t, e, i = !1) {
|
1399
|
-
const s = {},
|
1379
|
+
const s = {}, r = {};
|
1400
1380
|
let o = !1;
|
1401
1381
|
const a = {};
|
1402
1382
|
for (const c in e) {
|
1403
1383
|
const l = t[c], h = e[c];
|
1404
|
-
if (c in
|
1405
|
-
const d =
|
1384
|
+
if (c in ut) {
|
1385
|
+
const d = ut[c];
|
1406
1386
|
if (l === void 0 || h === void 0) continue;
|
1407
1387
|
const u = d(l, h);
|
1408
1388
|
u.transform !== void 0 && (a[c] = u.value, o = !0, s.transform = `${s.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(s, u.overrideFrom));
|
1409
|
-
} else l !== h && l !== void 0 && h !== void 0 && (o = !0, s[c] = l,
|
1389
|
+
} else l !== h && l !== void 0 && h !== void 0 && (o = !0, s[c] = l, r[c] = h);
|
1410
1390
|
}
|
1411
|
-
return s.transformOrigin =
|
1391
|
+
return s.transformOrigin = r.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, r] : void 0;
|
1412
1392
|
}
|
1413
1393
|
async animate(t, e = this.options.keyframeOptions) {
|
1414
1394
|
this.start(), this.frames = t;
|
@@ -1433,96 +1413,96 @@ class mi extends _e {
|
|
1433
1413
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1434
1414
|
}
|
1435
1415
|
}
|
1436
|
-
const
|
1416
|
+
const gi = Pt(fi), mi = { 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>' };
|
1437
1417
|
/**
|
1438
1418
|
* @license
|
1439
1419
|
* Copyright 2018 Google LLC
|
1440
1420
|
* SPDX-License-Identifier: BSD-3-Clause
|
1441
1421
|
*/
|
1442
|
-
const
|
1443
|
-
constructor(
|
1422
|
+
const se = Pt(class extends be {
|
1423
|
+
constructor(n) {
|
1444
1424
|
var t;
|
1445
|
-
if (super(
|
1425
|
+
if (super(n), n.type !== Et.ATTRIBUTE || n.name !== "class" || ((t = n.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1446
1426
|
}
|
1447
|
-
render(
|
1448
|
-
return " " + Object.keys(
|
1427
|
+
render(n) {
|
1428
|
+
return " " + Object.keys(n).filter((t) => n[t]).join(" ") + " ";
|
1449
1429
|
}
|
1450
|
-
update(
|
1430
|
+
update(n, [t]) {
|
1451
1431
|
var i, s;
|
1452
1432
|
if (this.st === void 0) {
|
1453
|
-
this.st = /* @__PURE__ */ new Set(),
|
1454
|
-
for (const
|
1433
|
+
this.st = /* @__PURE__ */ new Set(), n.strings !== void 0 && (this.nt = new Set(n.strings.join(" ").split(/\s/).filter((r) => r !== "")));
|
1434
|
+
for (const r in t) t[r] && !((i = this.nt) != null && i.has(r)) && this.st.add(r);
|
1455
1435
|
return this.render(t);
|
1456
1436
|
}
|
1457
|
-
const e =
|
1458
|
-
for (const
|
1459
|
-
for (const
|
1460
|
-
const o = !!t[
|
1461
|
-
o === this.st.has(
|
1437
|
+
const e = n.element.classList;
|
1438
|
+
for (const r of this.st) r in t || (e.remove(r), this.st.delete(r));
|
1439
|
+
for (const r in t) {
|
1440
|
+
const o = !!t[r];
|
1441
|
+
o === this.st.has(r) || (s = this.nt) != null && s.has(r) || (o ? (e.add(r), this.st.add(r)) : (e.remove(r), this.st.delete(r)));
|
1462
1442
|
}
|
1463
1443
|
return I;
|
1464
1444
|
}
|
1465
|
-
}), w = (
|
1466
|
-
|
1467
|
-
},
|
1468
|
-
var e, i, s,
|
1469
|
-
w((e =
|
1470
|
-
(i =
|
1445
|
+
}), w = (n, t, e) => {
|
1446
|
+
n && e.style.setProperty(t, n);
|
1447
|
+
}, $e = (n, t) => {
|
1448
|
+
var e, i, s, r, o, a, c, l, h;
|
1449
|
+
w((e = n.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), w(
|
1450
|
+
(i = n.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1471
1451
|
"--text-on-primary-background",
|
1472
1452
|
t
|
1473
1453
|
), w(
|
1474
|
-
(s =
|
1454
|
+
(s = n.colors) == null ? void 0 : s.secondaryBackground,
|
1475
1455
|
"--secondary-background",
|
1476
1456
|
t
|
1477
1457
|
), w(
|
1478
|
-
(
|
1458
|
+
(r = n.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
1479
1459
|
"--text-on-secondary-background",
|
1480
1460
|
t
|
1481
1461
|
), w(
|
1482
|
-
(o =
|
1462
|
+
(o = n.colors) == null ? void 0 : o.interactiveDestructiveBackground,
|
1483
1463
|
"--destructive-color",
|
1484
1464
|
t
|
1485
1465
|
), w(
|
1486
|
-
(a =
|
1466
|
+
(a = n.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
1487
1467
|
"--text-on-destructive-color",
|
1488
1468
|
t
|
1489
1469
|
), w(
|
1490
|
-
(c =
|
1470
|
+
(c = n.colors) == null ? void 0 : c.interactivePrimaryBackground,
|
1491
1471
|
"--interactive-primary-background",
|
1492
1472
|
t
|
1493
1473
|
), w(
|
1494
|
-
(l =
|
1474
|
+
(l = n.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
|
1495
1475
|
"--interactive-text-on-primary-background",
|
1496
1476
|
t
|
1497
|
-
), w((h =
|
1477
|
+
), w((h = n.colors) == null ? void 0 : h.focusColor, "--focus-color", t);
|
1498
1478
|
};
|
1499
1479
|
/**
|
1500
1480
|
* @license
|
1501
1481
|
* Copyright 2020 Google LLC
|
1502
1482
|
* SPDX-License-Identifier: BSD-3-Clause
|
1503
1483
|
*/
|
1504
|
-
const
|
1505
|
-
class
|
1484
|
+
const _e = () => new yi();
|
1485
|
+
class yi {
|
1506
1486
|
}
|
1507
|
-
const
|
1508
|
-
render(
|
1487
|
+
const pt = /* @__PURE__ */ new WeakMap(), Ae = Pt(class extends we {
|
1488
|
+
render(n) {
|
1509
1489
|
return p;
|
1510
1490
|
}
|
1511
|
-
update(
|
1491
|
+
update(n, [t]) {
|
1512
1492
|
var i;
|
1513
1493
|
const e = t !== this.Y;
|
1514
|
-
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i =
|
1494
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = n.options) == null ? void 0 : i.host, this.rt(this.ct = n.element)), p;
|
1515
1495
|
}
|
1516
|
-
rt(
|
1517
|
-
if (this.isConnected || (
|
1496
|
+
rt(n) {
|
1497
|
+
if (this.isConnected || (n = void 0), typeof this.Y == "function") {
|
1518
1498
|
const t = this.ht ?? globalThis;
|
1519
|
-
let e =
|
1520
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1521
|
-
} else this.Y.value =
|
1499
|
+
let e = pt.get(t);
|
1500
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), pt.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, n), n !== void 0 && this.Y.call(this.ht, n);
|
1501
|
+
} else this.Y.value = n;
|
1522
1502
|
}
|
1523
1503
|
get lt() {
|
1524
|
-
var
|
1525
|
-
return typeof this.Y == "function" ? (
|
1504
|
+
var n, t;
|
1505
|
+
return typeof this.Y == "function" ? (n = pt.get(this.ht ?? globalThis)) == null ? void 0 : n.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
1526
1506
|
}
|
1527
1507
|
disconnected() {
|
1528
1508
|
this.lt === this.ct && this.rt(void 0);
|
@@ -1531,14 +1511,14 @@ const ft = /* @__PURE__ */ new WeakMap(), Ce = Ot(class extends _e {
|
|
1531
1511
|
this.rt(this.ct);
|
1532
1512
|
}
|
1533
1513
|
});
|
1534
|
-
var
|
1535
|
-
for (var s = void 0,
|
1536
|
-
(o = r
|
1537
|
-
return s &&
|
1514
|
+
var bi = Object.defineProperty, K = (n, t, e, i) => {
|
1515
|
+
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
1516
|
+
(o = n[r]) && (s = o(t, e, s) || s);
|
1517
|
+
return s && bi(t, e, s), s;
|
1538
1518
|
};
|
1539
1519
|
const kt = class kt extends A {
|
1540
1520
|
constructor() {
|
1541
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
1521
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = _e(), this.widgetActive$ = new le(!1), this.componentIsDestroyed$ = new _t();
|
1542
1522
|
}
|
1543
1523
|
async connectedCallback() {
|
1544
1524
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -1573,21 +1553,21 @@ const kt = class kt extends A {
|
|
1573
1553
|
}
|
1574
1554
|
_applyBranding() {
|
1575
1555
|
var t;
|
1576
|
-
(t = this.application) != null && t.settings &&
|
1556
|
+
(t = this.application) != null && t.settings && $e(this.application.settings.branding, this);
|
1577
1557
|
}
|
1578
1558
|
async _renderSymbol() {
|
1579
1559
|
var a, c, l;
|
1580
1560
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1581
1561
|
if (e)
|
1582
|
-
return
|
1562
|
+
return T` <img src=${e} class="trigger-icon" alt="" /> `;
|
1583
1563
|
const i = (l = this.application) == null ? void 0 : l.triggerIcon;
|
1584
1564
|
if (!i)
|
1585
1565
|
return p;
|
1586
|
-
const s = async (h) =>
|
1587
|
-
switch (
|
1566
|
+
const s = async (h) => mi, { type: r, content: o } = i;
|
1567
|
+
switch (r) {
|
1588
1568
|
case "Telia": {
|
1589
1569
|
const h = await s();
|
1590
|
-
return h ?
|
1570
|
+
return h ? T`<telia-icon
|
1591
1571
|
class="trigger-icon"
|
1592
1572
|
svg=${h.svg}
|
1593
1573
|
size="lg"
|
@@ -1605,21 +1585,21 @@ const kt = class kt extends A {
|
|
1605
1585
|
}
|
1606
1586
|
render() {
|
1607
1587
|
var t, e, i, s;
|
1608
|
-
return
|
1609
|
-
class=${
|
1588
|
+
return T`<div
|
1589
|
+
class=${se({
|
1610
1590
|
"trigger-container": !0,
|
1611
1591
|
hidden: !this.triggerVisible
|
1612
1592
|
})}
|
1613
|
-
${
|
1593
|
+
${Ae(this.containerRef)}
|
1614
1594
|
>
|
1615
|
-
${!this.active && ((s = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ?
|
1595
|
+
${!this.active && ((s = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ? T`
|
1616
1596
|
<button
|
1617
1597
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1618
1598
|
class="trigger-label"
|
1619
1599
|
@click=${this.toggleActive}
|
1620
|
-
${
|
1600
|
+
${gi({
|
1621
1601
|
keyframeOptions: {},
|
1622
|
-
in:
|
1602
|
+
in: di,
|
1623
1603
|
stabilizeOut: !0,
|
1624
1604
|
skipInitial: !1
|
1625
1605
|
})}
|
@@ -1630,7 +1610,7 @@ const kt = class kt extends A {
|
|
1630
1610
|
|
1631
1611
|
<button
|
1632
1612
|
label="Widget trigger"
|
1633
|
-
class=${
|
1613
|
+
class=${se({
|
1634
1614
|
trigger: !0,
|
1635
1615
|
active: this.active,
|
1636
1616
|
rendered: this.loaded
|
@@ -1801,29 +1781,29 @@ kt.styles = [
|
|
1801
1781
|
}
|
1802
1782
|
`
|
1803
1783
|
];
|
1804
|
-
let
|
1784
|
+
let v = kt;
|
1805
1785
|
K([
|
1806
1786
|
m({ attribute: !1 })
|
1807
|
-
],
|
1787
|
+
], v.prototype, "application");
|
1808
1788
|
K([
|
1809
1789
|
L()
|
1810
|
-
],
|
1790
|
+
], v.prototype, "active");
|
1811
1791
|
K([
|
1812
1792
|
L()
|
1813
|
-
],
|
1793
|
+
], v.prototype, "triggerVisible");
|
1814
1794
|
K([
|
1815
1795
|
L()
|
1816
|
-
],
|
1796
|
+
], v.prototype, "loaded");
|
1817
1797
|
K([
|
1818
1798
|
L()
|
1819
|
-
],
|
1820
|
-
var
|
1821
|
-
for (var s = void 0,
|
1822
|
-
(o = r
|
1823
|
-
return s &&
|
1799
|
+
], v.prototype, "icon");
|
1800
|
+
var vi = Object.defineProperty, E = (n, t, e, i) => {
|
1801
|
+
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
1802
|
+
(o = n[r]) && (s = o(t, e, s) || s);
|
1803
|
+
return s && vi(t, e, s), s;
|
1824
1804
|
};
|
1825
|
-
const
|
1826
|
-
const e = class e extends
|
1805
|
+
const wi = (n) => {
|
1806
|
+
const e = class e extends n {
|
1827
1807
|
constructor() {
|
1828
1808
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
1829
1809
|
}
|
@@ -1878,37 +1858,37 @@ const _i = (r) => {
|
|
1878
1858
|
], t.prototype, "application"), E([
|
1879
1859
|
m({ attribute: !1 })
|
1880
1860
|
], t.prototype, "parent"), t;
|
1881
|
-
},
|
1861
|
+
}, Tt = class Tt extends wi(A) {
|
1882
1862
|
render() {
|
1883
|
-
return
|
1863
|
+
return T`Non resolved component`;
|
1884
1864
|
}
|
1885
1865
|
};
|
1886
|
-
|
1866
|
+
Tt.styles = [
|
1887
1867
|
U`
|
1888
1868
|
:host {
|
1889
1869
|
display: block;
|
1890
1870
|
}
|
1891
1871
|
`
|
1892
1872
|
];
|
1893
|
-
let et =
|
1873
|
+
let et = Tt;
|
1894
1874
|
/**
|
1895
1875
|
* @license
|
1896
1876
|
* Copyright 2021 Google LLC
|
1897
1877
|
* SPDX-License-Identifier: BSD-3-Clause
|
1898
1878
|
*/
|
1899
|
-
function*
|
1900
|
-
if (
|
1879
|
+
function* $i(n, t) {
|
1880
|
+
if (n !== void 0) {
|
1901
1881
|
let e = 0;
|
1902
|
-
for (const i of
|
1882
|
+
for (const i of n) yield t(i, e++);
|
1903
1883
|
}
|
1904
1884
|
}
|
1905
|
-
var $ = /* @__PURE__ */ ((
|
1885
|
+
var $ = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))($ || {});
|
1906
1886
|
/**
|
1907
1887
|
* @license
|
1908
1888
|
* Copyright 2021 Google LLC
|
1909
1889
|
* SPDX-License-Identifier: BSD-3-Clause
|
1910
1890
|
*/
|
1911
|
-
let
|
1891
|
+
let _i = class extends Event {
|
1912
1892
|
constructor(t, e, i) {
|
1913
1893
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
|
1914
1894
|
}
|
@@ -1923,7 +1903,7 @@ let xi = class extends Event {
|
|
1923
1903
|
* Copyright 2021 Google LLC
|
1924
1904
|
* SPDX-License-Identifier: BSD-3-Clause
|
1925
1905
|
*/
|
1926
|
-
class
|
1906
|
+
class Ai {
|
1927
1907
|
get value() {
|
1928
1908
|
return this.o;
|
1929
1909
|
}
|
@@ -1956,14 +1936,14 @@ class Ci {
|
|
1956
1936
|
* Copyright 2021 Google LLC
|
1957
1937
|
* SPDX-License-Identifier: BSD-3-Clause
|
1958
1938
|
*/
|
1959
|
-
let
|
1939
|
+
let xi = class extends Event {
|
1960
1940
|
constructor(t) {
|
1961
1941
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
1962
1942
|
}
|
1963
1943
|
};
|
1964
|
-
class ne extends
|
1944
|
+
class ne extends Ai {
|
1965
1945
|
constructor(t, e, i) {
|
1966
|
-
var s,
|
1946
|
+
var s, r;
|
1967
1947
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
1968
1948
|
const a = o.composedPath()[0];
|
1969
1949
|
o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
|
@@ -1971,15 +1951,15 @@ class ne extends Ci {
|
|
1971
1951
|
const a = o.composedPath()[0];
|
1972
1952
|
if (o.context !== this.context || a === this.host) return;
|
1973
1953
|
const c = /* @__PURE__ */ new Set();
|
1974
|
-
for (const [l, { consumerHost: h }] of this.subscriptions) c.has(l) || (c.add(l), h.dispatchEvent(new
|
1954
|
+
for (const [l, { consumerHost: h }] of this.subscriptions) c.has(l) || (c.add(l), h.dispatchEvent(new _i(this.context, l, !0)));
|
1975
1955
|
o.stopPropagation();
|
1976
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (
|
1956
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (r = (s = this.host).addController) == null || r.call(s, this);
|
1977
1957
|
}
|
1978
1958
|
attachListeners() {
|
1979
1959
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
1980
1960
|
}
|
1981
1961
|
hostConnected() {
|
1982
|
-
this.host.dispatchEvent(new
|
1962
|
+
this.host.dispatchEvent(new xi(this.context));
|
1983
1963
|
}
|
1984
1964
|
}
|
1985
1965
|
/**
|
@@ -1987,51 +1967,51 @@ class ne extends Ci {
|
|
1987
1967
|
* Copyright 2017 Google LLC
|
1988
1968
|
* SPDX-License-Identifier: BSD-3-Clause
|
1989
1969
|
*/
|
1990
|
-
function
|
1970
|
+
function Ci({ context: n }) {
|
1991
1971
|
return (t, e) => {
|
1992
1972
|
const i = /* @__PURE__ */ new WeakMap();
|
1993
1973
|
if (typeof e == "object") return e.addInitializer(function() {
|
1994
|
-
i.set(this, new ne(this, { context:
|
1974
|
+
i.set(this, new ne(this, { context: n }));
|
1995
1975
|
}), { get() {
|
1996
1976
|
return t.get.call(this);
|
1997
1977
|
}, set(s) {
|
1998
|
-
var
|
1999
|
-
return (
|
1978
|
+
var r;
|
1979
|
+
return (r = i.get(this)) == null || r.setValue(s), t.set.call(this, s);
|
2000
1980
|
}, init(s) {
|
2001
|
-
var
|
2002
|
-
return (
|
1981
|
+
var r;
|
1982
|
+
return (r = i.get(this)) == null || r.setValue(s), s;
|
2003
1983
|
} };
|
2004
1984
|
{
|
2005
1985
|
t.constructor.addInitializer((o) => {
|
2006
|
-
i.set(o, new ne(o, { context:
|
1986
|
+
i.set(o, new ne(o, { context: n }));
|
2007
1987
|
});
|
2008
1988
|
const s = Object.getOwnPropertyDescriptor(t, e);
|
2009
|
-
let
|
1989
|
+
let r;
|
2010
1990
|
if (s === void 0) {
|
2011
1991
|
const o = /* @__PURE__ */ new WeakMap();
|
2012
|
-
|
1992
|
+
r = { get() {
|
2013
1993
|
return o.get(this);
|
2014
1994
|
}, set(a) {
|
2015
1995
|
i.get(this).setValue(a), o.set(this, a);
|
2016
1996
|
}, configurable: !0, enumerable: !0 };
|
2017
1997
|
} else {
|
2018
1998
|
const o = s.set;
|
2019
|
-
|
1999
|
+
r = { ...s, set(a) {
|
2020
2000
|
i.get(this).setValue(a), o == null || o.call(this, a);
|
2021
2001
|
} };
|
2022
2002
|
}
|
2023
|
-
return void Object.defineProperty(t, e,
|
2003
|
+
return void Object.defineProperty(t, e, r);
|
2024
2004
|
}
|
2025
2005
|
};
|
2026
2006
|
}
|
2027
|
-
var
|
2028
|
-
for (var s = void 0,
|
2029
|
-
(o = r
|
2030
|
-
return s &&
|
2007
|
+
var Si = Object.defineProperty, xe = (n, t, e, i) => {
|
2008
|
+
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
2009
|
+
(o = n[r]) && (s = o(t, e, s) || s);
|
2010
|
+
return s && Si(t, e, s), s;
|
2031
2011
|
};
|
2032
|
-
const
|
2012
|
+
const Ei = "application", Rt = class Rt extends A {
|
2033
2013
|
constructor() {
|
2034
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
2014
|
+
super(...arguments), this.nodes = [], this.wrapperRef = _e(), this.fullscreen = !1;
|
2035
2015
|
}
|
2036
2016
|
addChild(t) {
|
2037
2017
|
t.parent = this, this.nodes.push(t);
|
@@ -2040,7 +2020,7 @@ const Oi = "application", Mt = class Mt extends A {
|
|
2040
2020
|
if (!this.wrapperRef.value)
|
2041
2021
|
return;
|
2042
2022
|
const t = this.application.settings;
|
2043
|
-
t != null && t.branding &&
|
2023
|
+
t != null && t.branding && $e(t.branding, this.wrapperRef.value);
|
2044
2024
|
}
|
2045
2025
|
applyStyles() {
|
2046
2026
|
if (!this.wrapperRef.value)
|
@@ -2056,12 +2036,12 @@ const Oi = "application", Mt = class Mt extends A {
|
|
2056
2036
|
render() {
|
2057
2037
|
var i, s;
|
2058
2038
|
const t = this.application.settings.components.conversation;
|
2059
|
-
return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === $.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"),
|
2060
|
-
${
|
2039
|
+
return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === $.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), T`<div class="widget-container" ${Ae(this.wrapperRef)}>
|
2040
|
+
${$i(this.nodes, (r) => r)}
|
2061
2041
|
</div>`;
|
2062
2042
|
}
|
2063
2043
|
};
|
2064
|
-
|
2044
|
+
Rt.styles = U`
|
2065
2045
|
:host {
|
2066
2046
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2067
2047
|
--spacing-xs: 0.2rem;
|
@@ -2214,15 +2194,15 @@ Mt.styles = U`
|
|
2214
2194
|
animation: none;
|
2215
2195
|
}
|
2216
2196
|
`;
|
2217
|
-
let
|
2218
|
-
|
2197
|
+
let N = Rt;
|
2198
|
+
xe([
|
2219
2199
|
m({ attribute: !0 })
|
2220
|
-
],
|
2221
|
-
|
2200
|
+
], N.prototype, "fullscreen");
|
2201
|
+
xe([
|
2222
2202
|
m({ attribute: !1 }),
|
2223
|
-
|
2224
|
-
],
|
2225
|
-
class
|
2203
|
+
Ci({ context: Ei })
|
2204
|
+
], N.prototype, "application");
|
2205
|
+
class Pi {
|
2226
2206
|
constructor() {
|
2227
2207
|
this.root = this.createRoot();
|
2228
2208
|
}
|
@@ -2258,11 +2238,11 @@ class Ii {
|
|
2258
2238
|
// views
|
2259
2239
|
));
|
2260
2240
|
});
|
2261
|
-
}, { entry:
|
2262
|
-
return s(this, this.root, [
|
2241
|
+
}, { entry: r, components: o } = t;
|
2242
|
+
return s(this, this.root, [r], o), this.root;
|
2263
2243
|
}
|
2264
2244
|
createRoot() {
|
2265
|
-
return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper",
|
2245
|
+
return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper", N)), document.createElement("ace-wrapper");
|
2266
2246
|
}
|
2267
2247
|
createNode(t, e) {
|
2268
2248
|
if (!this.resolveComponent(e))
|
@@ -2304,9 +2284,9 @@ const it = class it {
|
|
2304
2284
|
}
|
2305
2285
|
};
|
2306
2286
|
it.ResolveWebComponentName = (t) => `ace-${t}`;
|
2307
|
-
let
|
2308
|
-
var
|
2309
|
-
class
|
2287
|
+
let $t = it;
|
2288
|
+
var b = /* @__PURE__ */ ((n) => (n.Necessary = "necessary", n.Functional = "functional", n.Analytics = "analytics", n))(b || {});
|
2289
|
+
class Oi {
|
2310
2290
|
constructor(t, e, i, s) {
|
2311
2291
|
this.disallowedKeys = [], this.widgetId = t, this.storage = e === "localStorage" ? window.localStorage : window.sessionStorage, this.policy = i, this.storageEntries = s;
|
2312
2292
|
}
|
@@ -2320,8 +2300,8 @@ class Ti {
|
|
2320
2300
|
}
|
2321
2301
|
const s = i.category;
|
2322
2302
|
if (this.policy[s]) {
|
2323
|
-
const
|
2324
|
-
this.storage.setItem(this._prefixKey(t), JSON.stringify(
|
2303
|
+
const r = { value: e, category: s };
|
2304
|
+
this.storage.setItem(this._prefixKey(t), JSON.stringify(r));
|
2325
2305
|
} else
|
2326
2306
|
console.warn(
|
2327
2307
|
`Storage policy does not allow storing items in category: ${s}`
|
@@ -2363,7 +2343,7 @@ class Ti {
|
|
2363
2343
|
return `ace_${this.widgetId.substring(0, 7)}-${t}`;
|
2364
2344
|
}
|
2365
2345
|
}
|
2366
|
-
class
|
2346
|
+
class Ii {
|
2367
2347
|
constructor() {
|
2368
2348
|
this.texts = /* @__PURE__ */ new Map();
|
2369
2349
|
}
|
@@ -2378,8 +2358,8 @@ class ki {
|
|
2378
2358
|
return this.texts.get(t) || e;
|
2379
2359
|
}
|
2380
2360
|
}
|
2381
|
-
const
|
2382
|
-
class
|
2361
|
+
const ki = "##__WIDGETS_VERSION__##";
|
2362
|
+
class Ti {
|
2383
2363
|
constructor(t) {
|
2384
2364
|
this.widget = t, this.name = t.name;
|
2385
2365
|
}
|
@@ -2397,21 +2377,21 @@ class Mi {
|
|
2397
2377
|
}
|
2398
2378
|
version() {
|
2399
2379
|
return {
|
2400
|
-
version:
|
2380
|
+
version: ki
|
2401
2381
|
};
|
2402
2382
|
}
|
2403
2383
|
}
|
2404
|
-
class
|
2405
|
-
constructor(t, e, i, s,
|
2406
|
-
this.id = t, this.name = e, this.container = i, this.settings = s, this.options =
|
2384
|
+
class Ri {
|
2385
|
+
constructor(t, e, i, s, r) {
|
2386
|
+
this.id = t, this.name = e, this.container = i, this.settings = s, this.options = r, this.platform = new Pi(), this.texts = new Ii(), this.renderStrategy = $.Inline, this.fullscreen = !1, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new $t(), this.components = [], this.trigger = null, this.api = new Ti(this), this.onMessageReceived = async (a) => {
|
2407
2387
|
var l;
|
2408
2388
|
const c = a.data;
|
2409
2389
|
switch (c.type) {
|
2410
2390
|
case "set-storage-policies": {
|
2411
2391
|
const { policies: h } = c.data || [], d = {
|
2412
|
-
[
|
2413
|
-
[
|
2414
|
-
[
|
2392
|
+
[b.Analytics]: h.includes("analytics"),
|
2393
|
+
[b.Necessary]: h.includes("necessary"),
|
2394
|
+
[b.Functional]: h.includes("functional")
|
2415
2395
|
};
|
2416
2396
|
this.storage.updatePolicy(d);
|
2417
2397
|
return;
|
@@ -2453,19 +2433,19 @@ class Ni {
|
|
2453
2433
|
}
|
2454
2434
|
}, this.renderStrategy = this.options.renderStrategy || $.Inline, this.triggerIcon = this.options.triggerIcon;
|
2455
2435
|
const o = {
|
2456
|
-
[
|
2457
|
-
[
|
2458
|
-
[
|
2436
|
+
[b.Necessary]: !0,
|
2437
|
+
[b.Functional]: !0,
|
2438
|
+
[b.Analytics]: !0
|
2459
2439
|
};
|
2460
|
-
this.storage = new
|
2440
|
+
this.storage = new Oi(
|
2461
2441
|
this.id,
|
2462
2442
|
"sessionStorage",
|
2463
2443
|
o,
|
2464
2444
|
this.settings.storage
|
2465
|
-
), typeof
|
2445
|
+
), typeof r.autoActivate == "boolean" && (this.autoActivate = r.autoActivate), r.anchor && (this.anchor = r.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
|
2466
2446
|
}
|
2467
2447
|
async activate() {
|
2468
|
-
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(
|
2448
|
+
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(de.Ready), this.autoActivate) {
|
2469
2449
|
const t = this.render();
|
2470
2450
|
t && this._getTargetElement().appendChild(t);
|
2471
2451
|
}
|
@@ -2545,13 +2525,13 @@ class Ni {
|
|
2545
2525
|
if (this._isEmbeddedInIFrame())
|
2546
2526
|
return this.root;
|
2547
2527
|
if (this.renderStrategy === $.Trigger) {
|
2548
|
-
const t = new
|
2528
|
+
const t = new v();
|
2549
2529
|
return t.application = this, this.trigger = t, this.storage.get("open") && this.trigger.toggleActive(), t;
|
2550
2530
|
}
|
2551
2531
|
return this.root;
|
2552
2532
|
}
|
2553
2533
|
}
|
2554
|
-
const
|
2534
|
+
const Vi = (n) => new W(n), st = class st {
|
2555
2535
|
// TODO:
|
2556
2536
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
2557
2537
|
constructor(t = st.endpoint) {
|
@@ -2563,13 +2543,13 @@ const Yi = (r) => new W(r), st = class st {
|
|
2563
2543
|
id: i.id,
|
2564
2544
|
triggers: i.triggers || [],
|
2565
2545
|
apps: (i.widgets || []).map((s) => {
|
2566
|
-
let
|
2567
|
-
s.renderStrategy.toLowerCase() === "inline" && (
|
2546
|
+
let r = $.Trigger;
|
2547
|
+
s.renderStrategy.toLowerCase() === "inline" && (r = $.Inline);
|
2568
2548
|
const o = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", l = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
|
2569
2549
|
return {
|
2570
2550
|
id: o,
|
2571
2551
|
widgetId: o,
|
2572
|
-
renderStrategy:
|
2552
|
+
renderStrategy: r,
|
2573
2553
|
autoActivate: a,
|
2574
2554
|
anchor: c,
|
2575
2555
|
triggerIcon: {
|
@@ -2590,7 +2570,7 @@ const Yi = (r) => new W(r), st = class st {
|
|
2590
2570
|
};
|
2591
2571
|
st.endpoint = "https://widgets.ace.teliacompany.net/api";
|
2592
2572
|
let W = st;
|
2593
|
-
class
|
2573
|
+
class Ni {
|
2594
2574
|
constructor(t) {
|
2595
2575
|
this.site = t;
|
2596
2576
|
}
|
@@ -2598,12 +2578,12 @@ class Ui {
|
|
2598
2578
|
var i;
|
2599
2579
|
(((i = this.site.environment) == null ? void 0 : i.applications) || []).forEach((s) => {
|
2600
2580
|
if (s.storage) {
|
2601
|
-
const
|
2602
|
-
[
|
2603
|
-
[
|
2604
|
-
[
|
2581
|
+
const r = {
|
2582
|
+
[b.Analytics]: t.includes("analytics"),
|
2583
|
+
[b.Necessary]: t.includes("necessary"),
|
2584
|
+
[b.Functional]: t.includes("functional")
|
2605
2585
|
};
|
2606
|
-
s.storage.updatePolicy(
|
2586
|
+
s.storage.updatePolicy(r);
|
2607
2587
|
}
|
2608
2588
|
});
|
2609
2589
|
}
|
@@ -2614,9 +2594,9 @@ class Ui {
|
|
2614
2594
|
});
|
2615
2595
|
}
|
2616
2596
|
}
|
2617
|
-
class
|
2597
|
+
class Mi {
|
2618
2598
|
constructor() {
|
2619
|
-
this.applications = [], this.container = new
|
2599
|
+
this.applications = [], this.container = new Bt("environment", this), this.bootstrapped = !1, this.site = null, this.widgetAPIHandlers = /* @__PURE__ */ new Map(), this.siteConfigurationHandlers = [], setTimeout(() => {
|
2620
2600
|
this.notifyWidgetsOfCreation();
|
2621
2601
|
}, 1e3);
|
2622
2602
|
}
|
@@ -2636,8 +2616,8 @@ class Li {
|
|
2636
2616
|
(i) => i.autoActivate
|
2637
2617
|
);
|
2638
2618
|
(((e = this.site) == null ? void 0 : e.triggers) || []).filter((i) => i.triggerType === "visit").forEach((i) => {
|
2639
|
-
const s = window.location.pathname,
|
2640
|
-
i.condition.type === "url" &&
|
2619
|
+
const s = window.location.pathname, r = i.condition.outputs || [];
|
2620
|
+
i.condition.type === "url" && r.forEach((o) => {
|
2641
2621
|
const a = o.action.type === "render_widget";
|
2642
2622
|
if ((o.value === s || o.value === "*") && a) {
|
2643
2623
|
let l = { widgetId: "" };
|
@@ -2682,15 +2662,15 @@ class Li {
|
|
2682
2662
|
if (!i) {
|
2683
2663
|
const s = this.widgetAPIHandlers.get(t) || [];
|
2684
2664
|
s.push(() => {
|
2685
|
-
const
|
2686
|
-
e(
|
2665
|
+
const r = this.applications.find((o) => o.name === t);
|
2666
|
+
e(r == null ? void 0 : r.api);
|
2687
2667
|
}), this.widgetAPIHandlers.set(t, s);
|
2688
2668
|
return;
|
2689
2669
|
}
|
2690
2670
|
e(i == null ? void 0 : i.api);
|
2691
2671
|
}
|
2692
2672
|
registerApp(t, e, i, s) {
|
2693
|
-
const
|
2673
|
+
const r = new Bt(e, this), o = new Ri(t, e, r, i, s);
|
2694
2674
|
this.applications.push(o);
|
2695
2675
|
}
|
2696
2676
|
registerSite(t) {
|
@@ -2702,9 +2682,9 @@ class Li {
|
|
2702
2682
|
}), this;
|
2703
2683
|
}
|
2704
2684
|
}
|
2705
|
-
class
|
2685
|
+
class Ui {
|
2706
2686
|
constructor(t) {
|
2707
|
-
this.configurations = [], this.httpClient = new W(), this.api = new
|
2687
|
+
this.configurations = [], this.httpClient = new W(), this.api = new Ni(this), this.triggers = [], this.httpClient = new W(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
|
2708
2688
|
}
|
2709
2689
|
async load(t) {
|
2710
2690
|
const e = await this.httpClient.getSite(t);
|
@@ -2732,7 +2712,7 @@ class ji {
|
|
2732
2712
|
}
|
2733
2713
|
async bootstrap(t) {
|
2734
2714
|
var e;
|
2735
|
-
this.url && await this.load(this.url), this.environment = new
|
2715
|
+
this.url && await this.load(this.url), this.environment = new Mi(), this.addGlobal(this.environment);
|
2736
2716
|
for await (const i of this.configurations) {
|
2737
2717
|
const s = await this.httpClient.getWidget(i.widgetId);
|
2738
2718
|
s && ((e = this.environment) == null || e.registerApp(
|
@@ -2758,10 +2738,10 @@ class ji {
|
|
2758
2738
|
}), globalThis.ace = t;
|
2759
2739
|
}
|
2760
2740
|
}
|
2761
|
-
var
|
2762
|
-
for (var s = void 0,
|
2763
|
-
(o = r
|
2764
|
-
return s &&
|
2741
|
+
var Li = Object.defineProperty, Ot = (n, t, e, i) => {
|
2742
|
+
for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
|
2743
|
+
(o = n[r]) && (s = o(t, e, s) || s);
|
2744
|
+
return s && Li(t, e, s), s;
|
2765
2745
|
};
|
2766
2746
|
const Nt = class Nt extends A {
|
2767
2747
|
constructor() {
|
@@ -2789,7 +2769,7 @@ const Nt = class Nt extends A {
|
|
2789
2769
|
if (!this.widget || this.status !== "activated")
|
2790
2770
|
return p;
|
2791
2771
|
if (this.widget.renderStrategy === $.Trigger) {
|
2792
|
-
const t = new
|
2772
|
+
const t = new v();
|
2793
2773
|
return t.application = this.widget, t;
|
2794
2774
|
}
|
2795
2775
|
return this.widget.render();
|
@@ -2802,37 +2782,37 @@ Nt.styles = [
|
|
2802
2782
|
}
|
2803
2783
|
`
|
2804
2784
|
];
|
2805
|
-
let
|
2806
|
-
|
2785
|
+
let M = Nt;
|
2786
|
+
Ot([
|
2807
2787
|
m({ attribute: !0 })
|
2808
|
-
],
|
2809
|
-
|
2788
|
+
], M.prototype, "name");
|
2789
|
+
Ot([
|
2810
2790
|
L()
|
2811
|
-
],
|
2812
|
-
|
2791
|
+
], M.prototype, "widget");
|
2792
|
+
Ot([
|
2813
2793
|
L()
|
2814
|
-
],
|
2794
|
+
], M.prototype, "status");
|
2815
2795
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", V);
|
2816
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
2796
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", v);
|
2817
2797
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", et);
|
2818
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2819
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
2820
|
-
const
|
2821
|
-
const i = new
|
2798
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", N);
|
2799
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", M);
|
2800
|
+
const Wi = async (n, t, e = {}) => {
|
2801
|
+
const i = new Ui(n);
|
2822
2802
|
e.httpClient && i.setHttpClient(e.httpClient), await i.bootstrap(t);
|
2823
2803
|
};
|
2824
2804
|
export {
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
2828
|
-
|
2805
|
+
M as AceWidget,
|
2806
|
+
Ri as Application,
|
2807
|
+
Bt as Container,
|
2808
|
+
Mi as Environment,
|
2829
2809
|
W as HttpClient,
|
2830
|
-
|
2831
|
-
|
2832
|
-
|
2833
|
-
|
2834
|
-
|
2835
|
-
|
2836
|
-
|
2837
|
-
|
2810
|
+
Ui as Site,
|
2811
|
+
b as StorageCategory,
|
2812
|
+
Oi as StorageService,
|
2813
|
+
v as Trigger,
|
2814
|
+
wi as WidgetComponent,
|
2815
|
+
Ei as applicationContext,
|
2816
|
+
Wi as bootstrap,
|
2817
|
+
Vi as createHttpClient
|
2838
2818
|
};
|