@telia-ace/widget-core-flamingo 1.1.72-rc.24 → 1.1.72-rc.26
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +19 -7
- package/index.mjs +249 -237
- package/package.json +1 -1
package/index.js
CHANGED
@@ -62,7 +62,7 @@
|
|
62
62
|
* @license
|
63
63
|
* Copyright 2020 Google LLC
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
65
|
-
*/const me=()=>new bi;class bi{}const ft=new WeakMap,ve=St(class extends fe{render(s){return u}update(s,[t]){var i;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(i=s.options)==null?void 0:i.host,this.rt(this.ct=s.element)),u}rt(s){if(typeof this.Y=="function"){const t=this.ht??globalThis;let e=ft.get(t);e===void 0&&(e=new WeakMap,ft.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,s),s!==void 0&&this.Y.call(this.ht,s)}else this.Y.value=s}get lt(){var s,t;return typeof this.Y=="function"?(s=ft.get(this.ht??globalThis))==null?void 0:s.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var $i=Object.defineProperty,wi=Object.getOwnPropertyDescriptor,q=(s,t,e,i)=>{for(var r=i>1?void 0:i?wi(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&$i(t,e,r),r};class b extends A{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=me(),this.widgetActive$=new re(!1),this.componentIsDestroyed$=new wt}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.widgetActive$.next(!0)):(this.application.hide(),this.widgetActive$.next(!1))}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&ge(this.application.settings.branding,this)}async _renderSymbol(){var a,c,h;const t=(a=this.application)==null?void 0:a.branding(),e=(c=t==null?void 0:t.graphics)==null?void 0:c.trigger;if(e)return R` <img src=${e} class="trigger-icon" alt="" /> `;const i=(h=this.application)==null?void 0:h.triggerIcon;if(!i)return u;const r=async l=>yi,{type:o,content:n}=i;switch(o){case"Telia":{const l=await r();return l?R`<telia-icon
|
65
|
+
*/const me=()=>new bi;class bi{}const ft=new WeakMap,ve=St(class extends fe{render(s){return u}update(s,[t]){var i;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(i=s.options)==null?void 0:i.host,this.rt(this.ct=s.element)),u}rt(s){if(typeof this.Y=="function"){const t=this.ht??globalThis;let e=ft.get(t);e===void 0&&(e=new WeakMap,ft.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,s),s!==void 0&&this.Y.call(this.ht,s)}else this.Y.value=s}get lt(){var s,t;return typeof this.Y=="function"?(s=ft.get(this.ht??globalThis))==null?void 0:s.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var $i=Object.defineProperty,wi=Object.getOwnPropertyDescriptor,q=(s,t,e,i)=>{for(var r=i>1?void 0:i?wi(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&$i(t,e,r),r};class b extends A{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=me(),this.widgetActive$=new re(!1),this.componentIsDestroyed$=new wt}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.widgetActive$.next(!1),this.showTrigger())}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&ge(this.application.settings.branding,this)}async _renderSymbol(){var a,c,h;const t=(a=this.application)==null?void 0:a.branding(),e=(c=t==null?void 0:t.graphics)==null?void 0:c.trigger;if(e)return R` <img src=${e} class="trigger-icon" alt="" /> `;const i=(h=this.application)==null?void 0:h.triggerIcon;if(!i)return u;const r=async l=>yi,{type:o,content:n}=i;switch(o){case"Telia":{const l=await r();return l?R`<telia-icon
|
66
66
|
class="trigger-icon"
|
67
67
|
svg=${l.svg}
|
68
68
|
size="lg"
|
@@ -313,6 +313,7 @@
|
|
313
313
|
|
314
314
|
--header-height: 69px;
|
315
315
|
}
|
316
|
+
|
316
317
|
:host {
|
317
318
|
--voca-rem-multiplier: 0.625;
|
318
319
|
box-sizing: border-box;
|
@@ -329,23 +330,27 @@
|
|
329
330
|
z-index: 6;
|
330
331
|
position: fixed;
|
331
332
|
}
|
333
|
+
|
332
334
|
@media screen and (max-width: 800px) {
|
333
335
|
:host(.floating) {
|
334
|
-
inset: 0
|
336
|
+
inset: 0;
|
335
337
|
height: 100%;
|
336
338
|
}
|
339
|
+
|
337
340
|
:host(.third-party) {
|
338
|
-
inset: 0
|
341
|
+
inset: 0;
|
339
342
|
height: 100vh;
|
340
343
|
}
|
341
344
|
}
|
345
|
+
|
342
346
|
@media screen and (min-width: 801px) {
|
343
347
|
:host(.floating) {
|
344
|
-
inset: auto 20px
|
348
|
+
inset: auto 20px 20px auto;
|
345
349
|
max-height: calc(100vh - 120px);
|
346
350
|
width: 400px;
|
347
|
-
height:
|
351
|
+
height: 775px;
|
348
352
|
}
|
353
|
+
|
349
354
|
:host(.third-party) {
|
350
355
|
max-width: 1000px;
|
351
356
|
height: 100vh;
|
@@ -354,11 +359,13 @@
|
|
354
359
|
transform: translateX(-50%);
|
355
360
|
margin: -10px 0;
|
356
361
|
}
|
362
|
+
|
357
363
|
:host(.floating.bottom-right) {
|
358
|
-
inset: auto 20px
|
364
|
+
inset: auto 20px 20px auto;
|
359
365
|
}
|
366
|
+
|
360
367
|
:host(.floating.bottom-left) {
|
361
|
-
inset: auto auto
|
368
|
+
inset: auto auto 20px 20px;
|
362
369
|
}
|
363
370
|
}
|
364
371
|
|
@@ -374,12 +381,14 @@
|
|
374
381
|
* {
|
375
382
|
box-sizing: border-box;
|
376
383
|
}
|
384
|
+
|
377
385
|
.widget-container {
|
378
386
|
height: 100%;
|
379
387
|
background-color: var(--primary-background);
|
380
388
|
padding: var(--spacing-sm);
|
381
389
|
border: var(--widget-border, none);
|
382
390
|
}
|
391
|
+
|
383
392
|
@keyframes slideDown {
|
384
393
|
from {
|
385
394
|
transform: translateY(0);
|
@@ -390,6 +399,7 @@
|
|
390
399
|
opacity: 0;
|
391
400
|
}
|
392
401
|
}
|
402
|
+
|
393
403
|
@keyframes slideUp {
|
394
404
|
from {
|
395
405
|
transform: translateY(100%);
|
@@ -400,10 +410,12 @@
|
|
400
410
|
opacity: 1;
|
401
411
|
}
|
402
412
|
}
|
413
|
+
|
403
414
|
:host(.expanded) {
|
404
415
|
opacity: 1;
|
405
416
|
animation: slideUp 0.3s linear;
|
406
417
|
}
|
418
|
+
|
407
419
|
:host(.hidden) {
|
408
420
|
opacity: 0;
|
409
421
|
animation: slideDown 0.3s linear;
|
package/index.mjs
CHANGED
@@ -31,27 +31,27 @@ function J(s, t) {
|
|
31
31
|
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
32
32
|
if (!e)
|
33
33
|
return s;
|
34
|
-
var i = e.call(s), r,
|
34
|
+
var i = e.call(s), r, o = [], n;
|
35
35
|
try {
|
36
36
|
for (; (t === void 0 || t-- > 0) && !(r = i.next()).done; )
|
37
|
-
|
37
|
+
o.push(r.value);
|
38
38
|
} catch (a) {
|
39
|
-
|
39
|
+
n = { error: a };
|
40
40
|
} finally {
|
41
41
|
try {
|
42
42
|
r && !r.done && (e = i.return) && e.call(i);
|
43
43
|
} finally {
|
44
|
-
if (
|
45
|
-
throw
|
44
|
+
if (n)
|
45
|
+
throw n.error;
|
46
46
|
}
|
47
47
|
}
|
48
|
-
return
|
48
|
+
return o;
|
49
49
|
}
|
50
50
|
function G(s, t, e) {
|
51
51
|
if (e || arguments.length === 2)
|
52
|
-
for (var i = 0, r = t.length,
|
53
|
-
(
|
54
|
-
return s.concat(
|
52
|
+
for (var i = 0, r = t.length, o; i < r; i++)
|
53
|
+
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
54
|
+
return s.concat(o || Array.prototype.slice.call(t));
|
55
55
|
}
|
56
56
|
function w(s) {
|
57
57
|
return typeof s == "function";
|
@@ -62,7 +62,7 @@ function Qt(s) {
|
|
62
62
|
}, e = s(t);
|
63
63
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
64
64
|
}
|
65
|
-
var
|
65
|
+
var nt = Qt(function(s) {
|
66
66
|
return function(e) {
|
67
67
|
s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
68
68
|
` + e.map(function(i, r) {
|
@@ -82,14 +82,14 @@ var it = function() {
|
|
82
82
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
83
83
|
}
|
84
84
|
return s.prototype.unsubscribe = function() {
|
85
|
-
var t, e, i, r,
|
85
|
+
var t, e, i, r, o;
|
86
86
|
if (!this.closed) {
|
87
87
|
this.closed = !0;
|
88
|
-
var
|
89
|
-
if (
|
90
|
-
if (this._parentage = null, Array.isArray(
|
88
|
+
var n = this._parentage;
|
89
|
+
if (n)
|
90
|
+
if (this._parentage = null, Array.isArray(n))
|
91
91
|
try {
|
92
|
-
for (var a = mt(
|
92
|
+
for (var a = mt(n), c = a.next(); !c.done; c = a.next()) {
|
93
93
|
var h = c.value;
|
94
94
|
h.remove(this);
|
95
95
|
}
|
@@ -104,13 +104,13 @@ var it = function() {
|
|
104
104
|
}
|
105
105
|
}
|
106
106
|
else
|
107
|
-
|
107
|
+
n.remove(this);
|
108
108
|
var l = this.initialTeardown;
|
109
109
|
if (w(l))
|
110
110
|
try {
|
111
111
|
l();
|
112
112
|
} catch (v) {
|
113
|
-
|
113
|
+
o = v instanceof nt ? v.errors : [v];
|
114
114
|
}
|
115
115
|
var d = this._finalizers;
|
116
116
|
if (d) {
|
@@ -121,7 +121,7 @@ var it = function() {
|
|
121
121
|
try {
|
122
122
|
Pt(g);
|
123
123
|
} catch (v) {
|
124
|
-
|
124
|
+
o = o ?? [], v instanceof nt ? o = G(G([], J(o)), J(v.errors)) : o.push(v);
|
125
125
|
}
|
126
126
|
}
|
127
127
|
} catch (v) {
|
@@ -135,8 +135,8 @@ var it = function() {
|
|
135
135
|
}
|
136
136
|
}
|
137
137
|
}
|
138
|
-
if (
|
139
|
-
throw new
|
138
|
+
if (o)
|
139
|
+
throw new nt(o);
|
140
140
|
}
|
141
141
|
}, s.prototype.add = function(t) {
|
142
142
|
var e;
|
@@ -272,24 +272,24 @@ var Ae = function() {
|
|
272
272
|
}(), bt = function(s) {
|
273
273
|
W(t, s);
|
274
274
|
function t(e, i, r) {
|
275
|
-
var
|
275
|
+
var o = s.call(this) || this, n;
|
276
276
|
if (w(e) || !e)
|
277
|
-
|
277
|
+
n = {
|
278
278
|
next: e ?? void 0,
|
279
279
|
error: i ?? void 0,
|
280
280
|
complete: r ?? void 0
|
281
281
|
};
|
282
282
|
else {
|
283
283
|
var a;
|
284
|
-
|
285
|
-
return
|
286
|
-
},
|
284
|
+
o && ie.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
285
|
+
return o.unsubscribe();
|
286
|
+
}, n = {
|
287
287
|
next: e.next && at(e.next, a),
|
288
288
|
error: e.error && at(e.error, a),
|
289
289
|
complete: e.complete && at(e.complete, a)
|
290
|
-
}) :
|
290
|
+
}) : n = e;
|
291
291
|
}
|
292
|
-
return
|
292
|
+
return o.destination = new Ae(n), o;
|
293
293
|
}
|
294
294
|
return t;
|
295
295
|
}(se);
|
@@ -325,11 +325,11 @@ var Tt = function() {
|
|
325
325
|
var e = new s();
|
326
326
|
return e.source = this, e.operator = t, e;
|
327
327
|
}, s.prototype.subscribe = function(t, e, i) {
|
328
|
-
var r = this,
|
328
|
+
var r = this, o = Te(t) ? t : new bt(t, e, i);
|
329
329
|
return K(function() {
|
330
|
-
var
|
331
|
-
|
332
|
-
}),
|
330
|
+
var n = r, a = n.operator, c = n.source;
|
331
|
+
o.add(a ? a.call(o, c) : c ? r._subscribe(o) : r._trySubscribe(o));
|
332
|
+
}), o;
|
333
333
|
}, s.prototype._trySubscribe = function(t) {
|
334
334
|
try {
|
335
335
|
return this._subscribe(t);
|
@@ -338,19 +338,19 @@ var Tt = function() {
|
|
338
338
|
}
|
339
339
|
}, s.prototype.forEach = function(t, e) {
|
340
340
|
var i = this;
|
341
|
-
return e = It(e), new e(function(r,
|
342
|
-
var
|
341
|
+
return e = It(e), new e(function(r, o) {
|
342
|
+
var n = new bt({
|
343
343
|
next: function(a) {
|
344
344
|
try {
|
345
345
|
t(a);
|
346
346
|
} catch (c) {
|
347
|
-
|
347
|
+
o(c), n.unsubscribe();
|
348
348
|
}
|
349
349
|
},
|
350
|
-
error:
|
350
|
+
error: o,
|
351
351
|
complete: r
|
352
352
|
});
|
353
|
-
i.subscribe(
|
353
|
+
i.subscribe(n);
|
354
354
|
});
|
355
355
|
}, s.prototype._subscribe = function(t) {
|
356
356
|
var e;
|
@@ -364,13 +364,13 @@ var Tt = function() {
|
|
364
364
|
}, s.prototype.toPromise = function(t) {
|
365
365
|
var e = this;
|
366
366
|
return t = It(t), new t(function(i, r) {
|
367
|
-
var
|
368
|
-
e.subscribe(function(
|
369
|
-
return
|
370
|
-
}, function(
|
371
|
-
return r(
|
367
|
+
var o;
|
368
|
+
e.subscribe(function(n) {
|
369
|
+
return o = n;
|
370
|
+
}, function(n) {
|
371
|
+
return r(n);
|
372
372
|
}, function() {
|
373
|
-
return i(
|
373
|
+
return i(o);
|
374
374
|
});
|
375
375
|
});
|
376
376
|
}, s.create = function(t) {
|
@@ -406,11 +406,11 @@ var Ie = Qt(function(s) {
|
|
406
406
|
}, t.prototype.next = function(e) {
|
407
407
|
var i = this;
|
408
408
|
K(function() {
|
409
|
-
var r,
|
409
|
+
var r, o;
|
410
410
|
if (i._throwIfClosed(), !i.isStopped) {
|
411
411
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
412
412
|
try {
|
413
|
-
for (var
|
413
|
+
for (var n = mt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
|
414
414
|
var c = a.value;
|
415
415
|
c.next(e);
|
416
416
|
}
|
@@ -418,7 +418,7 @@ var Ie = Qt(function(s) {
|
|
418
418
|
r = { error: h };
|
419
419
|
} finally {
|
420
420
|
try {
|
421
|
-
a && !a.done && (
|
421
|
+
a && !a.done && (o = n.return) && o.call(n);
|
422
422
|
} finally {
|
423
423
|
if (r)
|
424
424
|
throw r.error;
|
@@ -458,13 +458,13 @@ var Ie = Qt(function(s) {
|
|
458
458
|
}, t.prototype._subscribe = function(e) {
|
459
459
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
460
460
|
}, t.prototype._innerSubscribe = function(e) {
|
461
|
-
var i = this, r = this,
|
462
|
-
return
|
461
|
+
var i = this, r = this, o = r.hasError, n = r.isStopped, a = r.observers;
|
462
|
+
return o || n ? te : (this.currentObservers = null, a.push(e), new it(function() {
|
463
463
|
i.currentObservers = null, vt(a, e);
|
464
464
|
}));
|
465
465
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
466
|
-
var i = this, r = i.hasError,
|
467
|
-
r ? e.error(
|
466
|
+
var i = this, r = i.hasError, o = i.thrownError, n = i.isStopped;
|
467
|
+
r ? e.error(o) : n && e.complete();
|
468
468
|
}, t.prototype.asObservable = function() {
|
469
469
|
var e = new Tt();
|
470
470
|
return e.source = this, e;
|
@@ -506,14 +506,14 @@ var Ie = Qt(function(s) {
|
|
506
506
|
var i = s.prototype._subscribe.call(this, e);
|
507
507
|
return !i.closed && e.next(this._value), i;
|
508
508
|
}, t.prototype.getValue = function() {
|
509
|
-
var e = this, i = e.hasError, r = e.thrownError,
|
509
|
+
var e = this, i = e.hasError, r = e.thrownError, o = e._value;
|
510
510
|
if (i)
|
511
511
|
throw r;
|
512
|
-
return this._throwIfClosed(),
|
512
|
+
return this._throwIfClosed(), o;
|
513
513
|
}, t.prototype.next = function(e) {
|
514
514
|
s.prototype.next.call(this, this._value = e);
|
515
515
|
}, t;
|
516
|
-
}($t),
|
516
|
+
}($t), oe = /* @__PURE__ */ ((s) => (s.Loading = "loading", s.Ready = "ready", s))(oe || {});
|
517
517
|
class kt {
|
518
518
|
constructor(t, e) {
|
519
519
|
this.state = new re(
|
@@ -540,7 +540,7 @@ class kt {
|
|
540
540
|
* SPDX-License-Identifier: BSD-3-Clause
|
541
541
|
*/
|
542
542
|
const Z = globalThis, wt = Z.ShadowRoot && (Z.ShadyCSS === void 0 || Z.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _t = Symbol(), Nt = /* @__PURE__ */ new WeakMap();
|
543
|
-
let
|
543
|
+
let ne = class {
|
544
544
|
constructor(t, e, i) {
|
545
545
|
if (this._$cssResult$ = !0, i !== _t)
|
546
546
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
@@ -559,15 +559,15 @@ let oe = class {
|
|
559
559
|
return this.cssText;
|
560
560
|
}
|
561
561
|
};
|
562
|
-
const Re = (s) => new
|
563
|
-
const e = s.length === 1 ? s[0] : t.reduce((i, r,
|
564
|
-
if (
|
565
|
-
return
|
566
|
-
if (typeof
|
567
|
-
return
|
568
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
569
|
-
})(r) + s[
|
570
|
-
return new
|
562
|
+
const Re = (s) => new ne(typeof s == "string" ? s : s + "", void 0, _t), N = (s, ...t) => {
|
563
|
+
const e = s.length === 1 ? s[0] : t.reduce((i, r, o) => i + ((n) => {
|
564
|
+
if (n._$cssResult$ === !0)
|
565
|
+
return n.cssText;
|
566
|
+
if (typeof n == "number")
|
567
|
+
return n;
|
568
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
569
|
+
})(r) + s[o + 1], s[0]);
|
570
|
+
return new ne(e, s, _t);
|
571
571
|
}, ke = (s, t) => {
|
572
572
|
if (wt)
|
573
573
|
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
@@ -631,16 +631,16 @@ let I = class extends HTMLElement {
|
|
631
631
|
}
|
632
632
|
}
|
633
633
|
static getPropertyDescriptor(t, e, i) {
|
634
|
-
const { get: r, set:
|
634
|
+
const { get: r, set: o } = Me(this.prototype, t) ?? { get() {
|
635
635
|
return this[e];
|
636
|
-
}, set(
|
637
|
-
this[e] =
|
636
|
+
}, set(n) {
|
637
|
+
this[e] = n;
|
638
638
|
} };
|
639
639
|
return { get() {
|
640
640
|
return r == null ? void 0 : r.call(this);
|
641
|
-
}, set(
|
641
|
+
}, set(n) {
|
642
642
|
const a = r == null ? void 0 : r.call(this);
|
643
|
-
|
643
|
+
o.call(this, n), this.requestUpdate(t, a, i);
|
644
644
|
}, configurable: !0, enumerable: !0 };
|
645
645
|
}
|
646
646
|
static getPropertyOptions(t) {
|
@@ -733,19 +733,19 @@ let I = class extends HTMLElement {
|
|
733
733
|
this._$AK(t, i);
|
734
734
|
}
|
735
735
|
_$EC(t, e) {
|
736
|
-
var
|
736
|
+
var o;
|
737
737
|
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
738
738
|
if (r !== void 0 && i.reflect === !0) {
|
739
|
-
const
|
740
|
-
this._$Em = t,
|
739
|
+
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : X).toAttribute(e, i.type);
|
740
|
+
this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
|
741
741
|
}
|
742
742
|
}
|
743
743
|
_$AK(t, e) {
|
744
|
-
var
|
744
|
+
var o;
|
745
745
|
const i = this.constructor, r = i._$Eh.get(t);
|
746
746
|
if (r !== void 0 && this._$Em !== r) {
|
747
|
-
const
|
748
|
-
this._$Em = r, this[r] = a.fromAttribute(e,
|
747
|
+
const n = i.getPropertyOptions(r), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : X;
|
748
|
+
this._$Em = r, this[r] = a.fromAttribute(e, n.type), this._$Em = null;
|
749
749
|
}
|
750
750
|
}
|
751
751
|
requestUpdate(t, e, i) {
|
@@ -778,21 +778,21 @@ let I = class extends HTMLElement {
|
|
778
778
|
return;
|
779
779
|
if (!this.hasUpdated) {
|
780
780
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
781
|
-
for (const [
|
782
|
-
this[
|
781
|
+
for (const [o, n] of this._$Ep)
|
782
|
+
this[o] = n;
|
783
783
|
this._$Ep = void 0;
|
784
784
|
}
|
785
785
|
const r = this.constructor.elementProperties;
|
786
786
|
if (r.size > 0)
|
787
|
-
for (const [
|
788
|
-
|
787
|
+
for (const [o, n] of r)
|
788
|
+
n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
789
789
|
}
|
790
790
|
let t = !1;
|
791
791
|
const e = this._$AL;
|
792
792
|
try {
|
793
793
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
|
794
|
-
var
|
795
|
-
return (
|
794
|
+
var o;
|
795
|
+
return (o = r.hostUpdate) == null ? void 0 : o.call(r);
|
796
796
|
}), this.update(e)) : this._$EU();
|
797
797
|
} catch (r) {
|
798
798
|
throw t = !1, this._$EU(), r;
|
@@ -844,22 +844,22 @@ function de(s, t) {
|
|
844
844
|
}
|
845
845
|
const Fe = (s, t) => {
|
846
846
|
const e = s.length - 1, i = [];
|
847
|
-
let r,
|
847
|
+
let r, o = t === 2 ? "<svg>" : "", n = M;
|
848
848
|
for (let a = 0; a < e; a++) {
|
849
849
|
const c = s[a];
|
850
850
|
let h, l, d = -1, p = 0;
|
851
|
-
for (; p < c.length && (
|
852
|
-
p =
|
853
|
-
const f =
|
854
|
-
|
851
|
+
for (; p < c.length && (n.lastIndex = p, l = n.exec(c), l !== null); )
|
852
|
+
p = n.lastIndex, n === M ? l[1] === "!--" ? n = Lt : l[1] !== void 0 ? n = Dt : l[2] !== void 0 ? (le.test(l[2]) && (r = RegExp("</" + l[2], "g")), n = S) : l[3] !== void 0 && (n = S) : n === S ? l[0] === ">" ? (n = r ?? M, d = -1) : l[1] === void 0 ? d = -2 : (d = n.lastIndex - l[2].length, h = l[1], n = l[3] === void 0 ? S : l[3] === '"' ? zt : Bt) : n === zt || n === Bt ? n = S : n === Lt || n === Dt ? n = M : (n = S, r = void 0);
|
853
|
+
const f = n === S && s[a + 1].startsWith("/>") ? " " : "";
|
854
|
+
o += n === M ? c + Be : d >= 0 ? (i.push(h), c.slice(0, d) + ae + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
|
855
855
|
}
|
856
|
-
return [de(s,
|
856
|
+
return [de(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
857
857
|
};
|
858
858
|
class z {
|
859
859
|
constructor({ strings: t, _$litType$: e }, i) {
|
860
860
|
let r;
|
861
861
|
this.parts = [];
|
862
|
-
let
|
862
|
+
let o = 0, n = 0;
|
863
863
|
const a = t.length - 1, c = this.parts, [h, l] = Fe(t, e);
|
864
864
|
if (this.el = z.createElement(h, i), P.currentNode = this.el.content, e === 2) {
|
865
865
|
const d = this.el.content.firstChild;
|
@@ -870,28 +870,28 @@ class z {
|
|
870
870
|
if (r.hasAttributes())
|
871
871
|
for (const d of r.getAttributeNames())
|
872
872
|
if (d.endsWith(ae)) {
|
873
|
-
const p = l[
|
874
|
-
c.push({ type: 1, index:
|
873
|
+
const p = l[n++], f = r.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(p);
|
874
|
+
c.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Ye : g[1] === "?" ? qe : g[1] === "@" ? Ke : st }), r.removeAttribute(d);
|
875
875
|
} else
|
876
|
-
d.startsWith(x) && (c.push({ type: 6, index:
|
876
|
+
d.startsWith(x) && (c.push({ type: 6, index: o }), r.removeAttribute(d));
|
877
877
|
if (le.test(r.tagName)) {
|
878
878
|
const d = r.textContent.split(x), p = d.length - 1;
|
879
879
|
if (p > 0) {
|
880
880
|
r.textContent = Q ? Q.emptyScript : "";
|
881
881
|
for (let f = 0; f < p; f++)
|
882
|
-
r.append(d[f], D()), P.nextNode(), c.push({ type: 2, index: ++
|
882
|
+
r.append(d[f], D()), P.nextNode(), c.push({ type: 2, index: ++o });
|
883
883
|
r.append(d[p], D());
|
884
884
|
}
|
885
885
|
}
|
886
886
|
} else if (r.nodeType === 8)
|
887
887
|
if (r.data === ce)
|
888
|
-
c.push({ type: 2, index:
|
888
|
+
c.push({ type: 2, index: o });
|
889
889
|
else {
|
890
890
|
let d = -1;
|
891
891
|
for (; (d = r.data.indexOf(x, d + 1)) !== -1; )
|
892
|
-
c.push({ type: 7, index:
|
892
|
+
c.push({ type: 7, index: o }), d += x.length - 1;
|
893
893
|
}
|
894
|
-
|
894
|
+
o++;
|
895
895
|
}
|
896
896
|
}
|
897
897
|
static createElement(t, e) {
|
@@ -900,12 +900,12 @@ class z {
|
|
900
900
|
}
|
901
901
|
}
|
902
902
|
function k(s, t, e = s, i) {
|
903
|
-
var
|
903
|
+
var n, a;
|
904
904
|
if (t === T)
|
905
905
|
return t;
|
906
|
-
let r = i !== void 0 ? (
|
907
|
-
const
|
908
|
-
return (r == null ? void 0 : r.constructor) !==
|
906
|
+
let r = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
|
907
|
+
const o = B(t) ? void 0 : t._$litDirective$;
|
908
|
+
return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = k(s, r._$AS(s, t.values), r, i)), t;
|
909
909
|
}
|
910
910
|
class Ve {
|
911
911
|
constructor(t, e) {
|
@@ -920,13 +920,13 @@ class Ve {
|
|
920
920
|
u(t) {
|
921
921
|
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? O).importNode(e, !0);
|
922
922
|
P.currentNode = r;
|
923
|
-
let
|
923
|
+
let o = P.nextNode(), n = 0, a = 0, c = i[0];
|
924
924
|
for (; c !== void 0; ) {
|
925
|
-
if (
|
925
|
+
if (n === c.index) {
|
926
926
|
let h;
|
927
|
-
c.type === 2 ? h = new F(
|
927
|
+
c.type === 2 ? h = new F(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new Ze(o, this, t)), this._$AV.push(h), c = i[++a];
|
928
928
|
}
|
929
|
-
|
929
|
+
n !== (c == null ? void 0 : c.index) && (o = P.nextNode(), n++);
|
930
930
|
}
|
931
931
|
return P.currentNode = O, r;
|
932
932
|
}
|
@@ -968,13 +968,13 @@ class F {
|
|
968
968
|
this._$AH !== u && B(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
|
969
969
|
}
|
970
970
|
$(t) {
|
971
|
-
var
|
971
|
+
var o;
|
972
972
|
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = z.createElement(de(i.h, i.h[0]), this.options)), i);
|
973
|
-
if (((
|
973
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === r)
|
974
974
|
this._$AH.p(e);
|
975
975
|
else {
|
976
|
-
const
|
977
|
-
|
976
|
+
const n = new Ve(r, this), a = n.u(this.options);
|
977
|
+
n.p(e), this.T(a), this._$AH = n;
|
978
978
|
}
|
979
979
|
}
|
980
980
|
_$AC(t) {
|
@@ -985,8 +985,8 @@ class F {
|
|
985
985
|
he(this._$AH) || (this._$AH = [], this._$AR());
|
986
986
|
const e = this._$AH;
|
987
987
|
let i, r = 0;
|
988
|
-
for (const
|
989
|
-
r === e.length ? e.push(i = new F(this.S(D()), this.S(D()), this, this.options)) : i = e[r], i._$AI(
|
988
|
+
for (const o of t)
|
989
|
+
r === e.length ? e.push(i = new F(this.S(D()), this.S(D()), this, this.options)) : i = e[r], i._$AI(o), r++;
|
990
990
|
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
991
991
|
}
|
992
992
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -1008,21 +1008,21 @@ class st {
|
|
1008
1008
|
get _$AU() {
|
1009
1009
|
return this._$AM._$AU;
|
1010
1010
|
}
|
1011
|
-
constructor(t, e, i, r,
|
1012
|
-
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options =
|
1011
|
+
constructor(t, e, i, r, o) {
|
1012
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
|
1013
1013
|
}
|
1014
1014
|
_$AI(t, e = this, i, r) {
|
1015
|
-
const
|
1016
|
-
let
|
1017
|
-
if (
|
1018
|
-
t = k(this, t, e, 0),
|
1015
|
+
const o = this.strings;
|
1016
|
+
let n = !1;
|
1017
|
+
if (o === void 0)
|
1018
|
+
t = k(this, t, e, 0), n = !B(t) || t !== this._$AH && t !== T, n && (this._$AH = t);
|
1019
1019
|
else {
|
1020
1020
|
const a = t;
|
1021
1021
|
let c, h;
|
1022
|
-
for (t =
|
1023
|
-
h = k(this, a[i + c], e, c), h === T && (h = this._$AH[c]),
|
1022
|
+
for (t = o[0], c = 0; c < o.length - 1; c++)
|
1023
|
+
h = k(this, a[i + c], e, c), h === T && (h = this._$AH[c]), n || (n = !B(h) || h !== this._$AH[c]), h === u ? t = u : t !== u && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
1024
1024
|
}
|
1025
|
-
|
1025
|
+
n && !r && this.j(t);
|
1026
1026
|
}
|
1027
1027
|
j(t) {
|
1028
1028
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
@@ -1045,14 +1045,14 @@ class qe extends st {
|
|
1045
1045
|
}
|
1046
1046
|
}
|
1047
1047
|
class Ke extends st {
|
1048
|
-
constructor(t, e, i, r,
|
1049
|
-
super(t, e, i, r,
|
1048
|
+
constructor(t, e, i, r, o) {
|
1049
|
+
super(t, e, i, r, o), this.type = 5;
|
1050
1050
|
}
|
1051
1051
|
_$AI(t, e = this) {
|
1052
1052
|
if ((t = k(this, t, e, 0) ?? u) === T)
|
1053
1053
|
return;
|
1054
|
-
const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive,
|
1055
|
-
r && this.element.removeEventListener(this.name, this, i),
|
1054
|
+
const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== u && (i === u || r);
|
1055
|
+
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
1056
1056
|
}
|
1057
1057
|
handleEvent(t) {
|
1058
1058
|
var e;
|
@@ -1076,8 +1076,8 @@ const Je = (s, t, e) => {
|
|
1076
1076
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1077
1077
|
let r = i._$litPart$;
|
1078
1078
|
if (r === void 0) {
|
1079
|
-
const
|
1080
|
-
i._$litPart$ = r = new F(t.insertBefore(D(),
|
1079
|
+
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
1080
|
+
i._$litPart$ = r = new F(t.insertBefore(D(), o), o, void 0, e ?? {});
|
1081
1081
|
}
|
1082
1082
|
return r._$AI(s), r;
|
1083
1083
|
};
|
@@ -1123,29 +1123,29 @@ dt == null || dt({ LitElement: _ });
|
|
1123
1123
|
*/
|
1124
1124
|
const Ge = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: At }, Xe = (s = Ge, t, e) => {
|
1125
1125
|
const { kind: i, metadata: r } = e;
|
1126
|
-
let
|
1127
|
-
if (
|
1128
|
-
const { name:
|
1126
|
+
let o = globalThis.litPropertyMetadata.get(r);
|
1127
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), o.set(e.name, s), i === "accessor") {
|
1128
|
+
const { name: n } = e;
|
1129
1129
|
return { set(a) {
|
1130
1130
|
const c = t.get.call(this);
|
1131
|
-
t.set.call(this, a), this.requestUpdate(
|
1131
|
+
t.set.call(this, a), this.requestUpdate(n, c, s);
|
1132
1132
|
}, init(a) {
|
1133
|
-
return a !== void 0 && this.P(
|
1133
|
+
return a !== void 0 && this.P(n, void 0, s), a;
|
1134
1134
|
} };
|
1135
1135
|
}
|
1136
1136
|
if (i === "setter") {
|
1137
|
-
const { name:
|
1137
|
+
const { name: n } = e;
|
1138
1138
|
return function(a) {
|
1139
|
-
const c = this[
|
1140
|
-
t.call(this, a), this.requestUpdate(
|
1139
|
+
const c = this[n];
|
1140
|
+
t.call(this, a), this.requestUpdate(n, c, s);
|
1141
1141
|
};
|
1142
1142
|
}
|
1143
1143
|
throw Error("Unsupported decorator location: " + i);
|
1144
1144
|
};
|
1145
1145
|
function m(s) {
|
1146
|
-
return (t, e) => typeof e == "object" ? Xe(s, t, e) : ((i, r,
|
1147
|
-
const
|
1148
|
-
return r.constructor.createProperty(
|
1146
|
+
return (t, e) => typeof e == "object" ? Xe(s, t, e) : ((i, r, o) => {
|
1147
|
+
const n = r.hasOwnProperty(o);
|
1148
|
+
return r.constructor.createProperty(o, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(r, o) : void 0;
|
1149
1149
|
})(s, t, e);
|
1150
1150
|
}
|
1151
1151
|
/**
|
@@ -1157,8 +1157,8 @@ function U(s) {
|
|
1157
1157
|
return m({ ...s, state: !0, attribute: !1 });
|
1158
1158
|
}
|
1159
1159
|
var Qe = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, ei = (s, t, e, i) => {
|
1160
|
-
for (var r = i > 1 ? void 0 : i ? ti(t, e) : t,
|
1161
|
-
(
|
1160
|
+
for (var r = i > 1 ? void 0 : i ? ti(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
1161
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
1162
1162
|
return i && r && Qe(t, e, r), r;
|
1163
1163
|
};
|
1164
1164
|
class rt extends _ {
|
@@ -1250,7 +1250,7 @@ const L = (s, t) => {
|
|
1250
1250
|
t._$AN = e = /* @__PURE__ */ new Set();
|
1251
1251
|
else if (e.has(s))
|
1252
1252
|
break;
|
1253
|
-
e.add(s),
|
1253
|
+
e.add(s), oi(t);
|
1254
1254
|
}
|
1255
1255
|
};
|
1256
1256
|
function si(s) {
|
@@ -1261,14 +1261,14 @@ function ri(s, t = !1, e = 0) {
|
|
1261
1261
|
if (r !== void 0 && r.size !== 0)
|
1262
1262
|
if (t)
|
1263
1263
|
if (Array.isArray(i))
|
1264
|
-
for (let
|
1265
|
-
L(i[
|
1264
|
+
for (let o = e; o < i.length; o++)
|
1265
|
+
L(i[o], !1), tt(i[o]);
|
1266
1266
|
else
|
1267
1267
|
i != null && (L(i, !1), tt(i));
|
1268
1268
|
else
|
1269
1269
|
L(this, s);
|
1270
1270
|
}
|
1271
|
-
const
|
1271
|
+
const oi = (s) => {
|
1272
1272
|
s.type == xt.CHILD && (s._$AP ?? (s._$AP = ri), s._$AQ ?? (s._$AQ = si));
|
1273
1273
|
};
|
1274
1274
|
class fe extends pe {
|
@@ -1295,7 +1295,7 @@ class fe extends pe {
|
|
1295
1295
|
reconnected() {
|
1296
1296
|
}
|
1297
1297
|
}
|
1298
|
-
const
|
1298
|
+
const ni = /* @__PURE__ */ new WeakMap();
|
1299
1299
|
let Ft = 0;
|
1300
1300
|
const pt = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new WeakSet(), Yt = () => new Promise((s) => requestAnimationFrame(s)), ai = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], qt = (s, t) => {
|
1301
1301
|
const e = s - t;
|
@@ -1340,7 +1340,7 @@ class li extends fe {
|
|
1340
1340
|
return u;
|
1341
1341
|
}
|
1342
1342
|
getController() {
|
1343
|
-
return
|
1343
|
+
return ni.get(this.u);
|
1344
1344
|
}
|
1345
1345
|
isDisabled() {
|
1346
1346
|
var t;
|
@@ -1349,7 +1349,7 @@ class li extends fe {
|
|
1349
1349
|
update(t, [e]) {
|
1350
1350
|
var r;
|
1351
1351
|
const i = this.u === void 0;
|
1352
|
-
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((
|
1352
|
+
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element, Zt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
1353
1353
|
}
|
1354
1354
|
p(t) {
|
1355
1355
|
t = t ?? {};
|
@@ -1359,15 +1359,15 @@ class li extends fe {
|
|
1359
1359
|
m() {
|
1360
1360
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1361
1361
|
return this.options.properties.forEach((r) => {
|
1362
|
-
const
|
1363
|
-
t[r] = isNaN(
|
1362
|
+
const o = e[r] ?? (ut[r] ? void 0 : i[r]), n = Number(o);
|
1363
|
+
t[r] = isNaN(n) ? o + "" : n;
|
1364
1364
|
}), t;
|
1365
1365
|
}
|
1366
1366
|
v() {
|
1367
1367
|
let t, e = !0;
|
1368
1368
|
return this.options.guard && (t = this.options.guard(), e = ((i, r) => {
|
1369
1369
|
if (Array.isArray(i)) {
|
1370
|
-
if (Array.isArray(r) && r.length === i.length && i.every((
|
1370
|
+
if (Array.isArray(r) && r.length === i.length && i.every((o, n) => o === r[n]))
|
1371
1371
|
return !1;
|
1372
1372
|
} else if (r === i)
|
1373
1373
|
return !1;
|
@@ -1384,14 +1384,14 @@ class li extends fe {
|
|
1384
1384
|
this.prepare(), await Yt;
|
1385
1385
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
|
1386
1386
|
if (this.A !== void 0) {
|
1387
|
-
const { from:
|
1388
|
-
this.log("measured", [this.A, r,
|
1387
|
+
const { from: o, to: n } = this.N(this.A, r, e);
|
1388
|
+
this.log("measured", [this.A, r, o, n]), t = this.calculateKeyframes(o, n);
|
1389
1389
|
} else {
|
1390
|
-
const
|
1391
|
-
if (
|
1390
|
+
const o = pt.get(this.options.inId);
|
1391
|
+
if (o) {
|
1392
1392
|
pt.delete(this.options.inId);
|
1393
|
-
const { from:
|
1394
|
-
t = this.calculateKeyframes(
|
1393
|
+
const { from: n, to: a } = this.N(o, r, e);
|
1394
|
+
t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Ft++, t.forEach((c) => c.zIndex = Ft);
|
1395
1395
|
} else
|
1396
1396
|
this.options.in && (t = [...this.options.in, {}]);
|
1397
1397
|
}
|
@@ -1415,8 +1415,8 @@ class li extends fe {
|
|
1415
1415
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1416
1416
|
const r = this.m();
|
1417
1417
|
this.log("stabilizing out");
|
1418
|
-
const
|
1419
|
-
getComputedStyle(this.element).position !== "static" ||
|
1418
|
+
const o = this.A.left - r.left, n = this.A.top - r.top;
|
1419
|
+
getComputedStyle(this.element).position !== "static" || o === 0 && n === 0 || (this.element.style.position = "relative"), o !== 0 && (this.element.style.left = o + "px"), n !== 0 && (this.element.style.top = n + "px");
|
1420
1420
|
}
|
1421
1421
|
}
|
1422
1422
|
const t = this.j(this.options.keyframeOptions);
|
@@ -1454,14 +1454,14 @@ class li extends fe {
|
|
1454
1454
|
N(t, e, i) {
|
1455
1455
|
t = { ...t }, e = { ...e };
|
1456
1456
|
const r = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1457
|
-
let
|
1457
|
+
let o = 1, n = 1;
|
1458
1458
|
return r.length > 0 && (r.forEach((a) => {
|
1459
|
-
a.width && (
|
1460
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left =
|
1459
|
+
a.width && (o /= a.width), a.height && (n /= a.height);
|
1460
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = n * t.top, e.top = n * e.top)), { from: t, to: e };
|
1461
1461
|
}
|
1462
1462
|
calculateKeyframes(t, e, i = !1) {
|
1463
|
-
const r = {},
|
1464
|
-
let
|
1463
|
+
const r = {}, o = {};
|
1464
|
+
let n = !1;
|
1465
1465
|
const a = {};
|
1466
1466
|
for (const c in e) {
|
1467
1467
|
const h = t[c], l = e[c];
|
@@ -1470,11 +1470,11 @@ class li extends fe {
|
|
1470
1470
|
if (h === void 0 || l === void 0)
|
1471
1471
|
continue;
|
1472
1472
|
const p = d(h, l);
|
1473
|
-
p.transform !== void 0 && (a[c] = p.value,
|
1473
|
+
p.transform !== void 0 && (a[c] = p.value, n = !0, r.transform = `${r.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(r, p.overrideFrom));
|
1474
1474
|
} else
|
1475
|
-
h !== l && h !== void 0 && l !== void 0 && (
|
1475
|
+
h !== l && h !== void 0 && l !== void 0 && (n = !0, r[c] = h, o[c] = l);
|
1476
1476
|
}
|
1477
|
-
return r.transformOrigin =
|
1477
|
+
return r.transformOrigin = o.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, n ? [r, o] : void 0;
|
1478
1478
|
}
|
1479
1479
|
async animate(t, e = this.options.keyframeOptions) {
|
1480
1480
|
this.start(), this.frames = t;
|
@@ -1517,24 +1517,24 @@ const Jt = Ct(class extends pe {
|
|
1517
1517
|
update(s, [t]) {
|
1518
1518
|
var i, r;
|
1519
1519
|
if (this.st === void 0) {
|
1520
|
-
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((
|
1521
|
-
for (const
|
1522
|
-
t[
|
1520
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
1521
|
+
for (const o in t)
|
1522
|
+
t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
|
1523
1523
|
return this.render(t);
|
1524
1524
|
}
|
1525
1525
|
const e = s.element.classList;
|
1526
|
-
for (const
|
1527
|
-
|
1528
|
-
for (const
|
1529
|
-
const
|
1530
|
-
|
1526
|
+
for (const o of this.st)
|
1527
|
+
o in t || (e.remove(o), this.st.delete(o));
|
1528
|
+
for (const o in t) {
|
1529
|
+
const n = !!t[o];
|
1530
|
+
n === this.st.has(o) || (r = this.nt) != null && r.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
|
1531
1531
|
}
|
1532
1532
|
return T;
|
1533
1533
|
}
|
1534
1534
|
}), b = (s, t, e) => {
|
1535
1535
|
s && e.style.setProperty(t, s);
|
1536
1536
|
}, ge = (s, t) => {
|
1537
|
-
var e, i, r,
|
1537
|
+
var e, i, r, o, n, a, c, h, l;
|
1538
1538
|
b((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), b(
|
1539
1539
|
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1540
1540
|
"--text-on-primary-background",
|
@@ -1544,11 +1544,11 @@ const Jt = Ct(class extends pe {
|
|
1544
1544
|
"--secondary-background",
|
1545
1545
|
t
|
1546
1546
|
), b(
|
1547
|
-
(
|
1547
|
+
(o = s.colors) == null ? void 0 : o.textOnSecondaryBackground,
|
1548
1548
|
"--text-on-secondary-background",
|
1549
1549
|
t
|
1550
1550
|
), b(
|
1551
|
-
(
|
1551
|
+
(n = s.colors) == null ? void 0 : n.interactiveDestructiveBackground,
|
1552
1552
|
"--destructive-color",
|
1553
1553
|
t
|
1554
1554
|
), b(
|
@@ -1602,8 +1602,8 @@ const ft = /* @__PURE__ */ new WeakMap(), ve = Ct(class extends fe {
|
|
1602
1602
|
}
|
1603
1603
|
});
|
1604
1604
|
var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, V = (s, t, e, i) => {
|
1605
|
-
for (var r = i > 1 ? void 0 : i ? gi(t, e) : t,
|
1606
|
-
(
|
1605
|
+
for (var r = i > 1 ? void 0 : i ? gi(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
1606
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
1607
1607
|
return i && r && fi(t, e, r), r;
|
1608
1608
|
};
|
1609
1609
|
class A extends _ {
|
@@ -1624,7 +1624,7 @@ class A extends _ {
|
|
1624
1624
|
);
|
1625
1625
|
return;
|
1626
1626
|
}
|
1627
|
-
this.active = !this.active, this.active ? (this.application.appendToDOM(), this.widgetActive$.next(!0)) : (this.application.hide(), this.widgetActive$.next(!1));
|
1627
|
+
this.active = !this.active, this.active ? (this.application.appendToDOM(), this.widgetActive$.next(!0), this.hideTrigger()) : (this.application.hide(), this.widgetActive$.next(!1), this.showTrigger());
|
1628
1628
|
}
|
1629
1629
|
_applyBranding() {
|
1630
1630
|
var t;
|
@@ -1638,8 +1638,8 @@ class A extends _ {
|
|
1638
1638
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1639
1639
|
if (!i)
|
1640
1640
|
return u;
|
1641
|
-
const r = async (l) => pi, { type:
|
1642
|
-
switch (
|
1641
|
+
const r = async (l) => pi, { type: o, content: n } = i;
|
1642
|
+
switch (o) {
|
1643
1643
|
case "Telia": {
|
1644
1644
|
const l = await r();
|
1645
1645
|
return l ? R`<telia-icon
|
@@ -1872,8 +1872,8 @@ V([
|
|
1872
1872
|
U()
|
1873
1873
|
], A.prototype, "icon", 2);
|
1874
1874
|
var mi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, E = (s, t, e, i) => {
|
1875
|
-
for (var r = i > 1 ? void 0 : i ? vi(t, e) : t,
|
1876
|
-
(
|
1875
|
+
for (var r = i > 1 ? void 0 : i ? vi(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
1876
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
1877
1877
|
return i && r && mi(t, e, r), r;
|
1878
1878
|
};
|
1879
1879
|
const yi = (s) => {
|
@@ -2018,19 +2018,19 @@ let _i = class extends Event {
|
|
2018
2018
|
};
|
2019
2019
|
class Gt extends wi {
|
2020
2020
|
constructor(t, e, i) {
|
2021
|
-
var r,
|
2022
|
-
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (
|
2023
|
-
const a =
|
2024
|
-
|
2025
|
-
}, this.onProviderRequest = (
|
2026
|
-
const a =
|
2027
|
-
if (
|
2021
|
+
var r, o;
|
2022
|
+
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
|
2023
|
+
const a = n.composedPath()[0];
|
2024
|
+
n.context === this.context && a !== this.host && (n.stopPropagation(), this.addCallback(n.callback, a, n.subscribe));
|
2025
|
+
}, this.onProviderRequest = (n) => {
|
2026
|
+
const a = n.composedPath()[0];
|
2027
|
+
if (n.context !== this.context || a === this.host)
|
2028
2028
|
return;
|
2029
2029
|
const c = /* @__PURE__ */ new Set();
|
2030
2030
|
for (const [h, { consumerHost: l }] of this.subscriptions)
|
2031
2031
|
c.has(h) || (c.add(h), l.dispatchEvent(new $i(this.context, h, !0)));
|
2032
|
-
|
2033
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (
|
2032
|
+
n.stopPropagation();
|
2033
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (r = this.host).addController) == null || o.call(r, this);
|
2034
2034
|
}
|
2035
2035
|
attachListeners() {
|
2036
2036
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
@@ -2053,42 +2053,42 @@ function Ai({ context: s }) {
|
|
2053
2053
|
}), { get() {
|
2054
2054
|
return t.get.call(this);
|
2055
2055
|
}, set(r) {
|
2056
|
-
var
|
2057
|
-
return (
|
2056
|
+
var o;
|
2057
|
+
return (o = i.get(this)) == null || o.setValue(r), t.set.call(this, r);
|
2058
2058
|
}, init(r) {
|
2059
|
-
var
|
2060
|
-
return (
|
2059
|
+
var o;
|
2060
|
+
return (o = i.get(this)) == null || o.setValue(r), r;
|
2061
2061
|
} };
|
2062
2062
|
{
|
2063
|
-
t.constructor.addInitializer((
|
2064
|
-
i.set(
|
2063
|
+
t.constructor.addInitializer((n) => {
|
2064
|
+
i.set(n, new Gt(n, { context: s }));
|
2065
2065
|
});
|
2066
2066
|
const r = Object.getOwnPropertyDescriptor(t, e);
|
2067
|
-
let
|
2067
|
+
let o;
|
2068
2068
|
if (r === void 0) {
|
2069
|
-
const
|
2070
|
-
|
2071
|
-
return
|
2069
|
+
const n = /* @__PURE__ */ new WeakMap();
|
2070
|
+
o = { get: function() {
|
2071
|
+
return n.get(this);
|
2072
2072
|
}, set: function(a) {
|
2073
|
-
i.get(this).setValue(a),
|
2073
|
+
i.get(this).setValue(a), n.set(this, a);
|
2074
2074
|
}, configurable: !0, enumerable: !0 };
|
2075
2075
|
} else {
|
2076
|
-
const
|
2077
|
-
|
2078
|
-
i.get(this).setValue(a),
|
2076
|
+
const n = r.set;
|
2077
|
+
o = { ...r, set: function(a) {
|
2078
|
+
i.get(this).setValue(a), n == null || n.call(this, a);
|
2079
2079
|
} };
|
2080
2080
|
}
|
2081
|
-
return void Object.defineProperty(t, e,
|
2081
|
+
return void Object.defineProperty(t, e, o);
|
2082
2082
|
}
|
2083
2083
|
};
|
2084
2084
|
}
|
2085
2085
|
var xi = Object.defineProperty, Ci = Object.getOwnPropertyDescriptor, Si = (s, t, e, i) => {
|
2086
|
-
for (var r = i > 1 ? void 0 : i ? Ci(t, e) : t,
|
2087
|
-
(
|
2086
|
+
for (var r = i > 1 ? void 0 : i ? Ci(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
2087
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
2088
2088
|
return i && r && xi(t, e, r), r;
|
2089
2089
|
};
|
2090
2090
|
const Ei = "application";
|
2091
|
-
class
|
2091
|
+
class ot extends _ {
|
2092
2092
|
constructor() {
|
2093
2093
|
super(...arguments), this.nodes = [], this.wrapperRef = me();
|
2094
2094
|
}
|
@@ -2116,11 +2116,11 @@ class nt extends _ {
|
|
2116
2116
|
var i, r;
|
2117
2117
|
const t = this.application.settings.components.conversation;
|
2118
2118
|
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.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")), R`<div class="widget-container" ${ve(this.wrapperRef)}>
|
2119
|
-
${bi(this.nodes, (
|
2119
|
+
${bi(this.nodes, (o) => o)}
|
2120
2120
|
</div>`;
|
2121
2121
|
}
|
2122
2122
|
}
|
2123
|
-
|
2123
|
+
ot.styles = N`
|
2124
2124
|
:host {
|
2125
2125
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2126
2126
|
--spacing-xs: 0.2rem;
|
@@ -2147,6 +2147,7 @@ nt.styles = N`
|
|
2147
2147
|
|
2148
2148
|
--header-height: 69px;
|
2149
2149
|
}
|
2150
|
+
|
2150
2151
|
:host {
|
2151
2152
|
--voca-rem-multiplier: 0.625;
|
2152
2153
|
box-sizing: border-box;
|
@@ -2163,23 +2164,27 @@ nt.styles = N`
|
|
2163
2164
|
z-index: 6;
|
2164
2165
|
position: fixed;
|
2165
2166
|
}
|
2167
|
+
|
2166
2168
|
@media screen and (max-width: 800px) {
|
2167
2169
|
:host(.floating) {
|
2168
|
-
inset: 0
|
2170
|
+
inset: 0;
|
2169
2171
|
height: 100%;
|
2170
2172
|
}
|
2173
|
+
|
2171
2174
|
:host(.third-party) {
|
2172
|
-
inset: 0
|
2175
|
+
inset: 0;
|
2173
2176
|
height: 100vh;
|
2174
2177
|
}
|
2175
2178
|
}
|
2179
|
+
|
2176
2180
|
@media screen and (min-width: 801px) {
|
2177
2181
|
:host(.floating) {
|
2178
|
-
inset: auto 20px
|
2182
|
+
inset: auto 20px 20px auto;
|
2179
2183
|
max-height: calc(100vh - 120px);
|
2180
2184
|
width: 400px;
|
2181
|
-
height:
|
2185
|
+
height: 775px;
|
2182
2186
|
}
|
2187
|
+
|
2183
2188
|
:host(.third-party) {
|
2184
2189
|
max-width: 1000px;
|
2185
2190
|
height: 100vh;
|
@@ -2188,11 +2193,13 @@ nt.styles = N`
|
|
2188
2193
|
transform: translateX(-50%);
|
2189
2194
|
margin: -10px 0;
|
2190
2195
|
}
|
2196
|
+
|
2191
2197
|
:host(.floating.bottom-right) {
|
2192
|
-
inset: auto 20px
|
2198
|
+
inset: auto 20px 20px auto;
|
2193
2199
|
}
|
2200
|
+
|
2194
2201
|
:host(.floating.bottom-left) {
|
2195
|
-
inset: auto auto
|
2202
|
+
inset: auto auto 20px 20px;
|
2196
2203
|
}
|
2197
2204
|
}
|
2198
2205
|
|
@@ -2208,12 +2215,14 @@ nt.styles = N`
|
|
2208
2215
|
* {
|
2209
2216
|
box-sizing: border-box;
|
2210
2217
|
}
|
2218
|
+
|
2211
2219
|
.widget-container {
|
2212
2220
|
height: 100%;
|
2213
2221
|
background-color: var(--primary-background);
|
2214
2222
|
padding: var(--spacing-sm);
|
2215
2223
|
border: var(--widget-border, none);
|
2216
2224
|
}
|
2225
|
+
|
2217
2226
|
@keyframes slideDown {
|
2218
2227
|
from {
|
2219
2228
|
transform: translateY(0);
|
@@ -2224,6 +2233,7 @@ nt.styles = N`
|
|
2224
2233
|
opacity: 0;
|
2225
2234
|
}
|
2226
2235
|
}
|
2236
|
+
|
2227
2237
|
@keyframes slideUp {
|
2228
2238
|
from {
|
2229
2239
|
transform: translateY(100%);
|
@@ -2234,10 +2244,12 @@ nt.styles = N`
|
|
2234
2244
|
opacity: 1;
|
2235
2245
|
}
|
2236
2246
|
}
|
2247
|
+
|
2237
2248
|
:host(.expanded) {
|
2238
2249
|
opacity: 1;
|
2239
2250
|
animation: slideUp 0.3s linear;
|
2240
2251
|
}
|
2252
|
+
|
2241
2253
|
:host(.hidden) {
|
2242
2254
|
opacity: 0;
|
2243
2255
|
animation: slideDown 0.3s linear;
|
@@ -2247,7 +2259,7 @@ nt.styles = N`
|
|
2247
2259
|
Si([
|
2248
2260
|
m({ attribute: !1 }),
|
2249
2261
|
Ai({ context: Ei })
|
2250
|
-
],
|
2262
|
+
], ot.prototype, "application", 2);
|
2251
2263
|
class Pi {
|
2252
2264
|
constructor() {
|
2253
2265
|
this.root = this.createRoot();
|
@@ -2284,11 +2296,11 @@ class Pi {
|
|
2284
2296
|
// views
|
2285
2297
|
));
|
2286
2298
|
});
|
2287
|
-
}, { entry:
|
2288
|
-
return r(this, this.root, [
|
2299
|
+
}, { entry: o, components: n } = t;
|
2300
|
+
return r(this, this.root, [o], n), this.root;
|
2289
2301
|
}
|
2290
2302
|
createRoot() {
|
2291
|
-
return new
|
2303
|
+
return new ot();
|
2292
2304
|
}
|
2293
2305
|
createNode(t, e) {
|
2294
2306
|
const i = this.resolveComponent(e);
|
@@ -2408,17 +2420,17 @@ class Ii {
|
|
2408
2420
|
}
|
2409
2421
|
}
|
2410
2422
|
class Ri {
|
2411
|
-
constructor(t, e, i, r,
|
2412
|
-
this.id = t, this.name = e, this.container = i, this.settings = r, this.options =
|
2413
|
-
const
|
2423
|
+
constructor(t, e, i, r, o) {
|
2424
|
+
this.id = t, this.name = e, this.container = i, this.settings = r, this.options = o, this.platform = new Pi(), this.texts = new Ti(), this.renderStrategy = $.Inline, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new be(), this.components = [], this.trigger = null, this.api = new Ii(this), this.renderStrategy = this.options.renderStrategy || $.Inline, this.triggerIcon = this.options.triggerIcon;
|
2425
|
+
const n = {
|
2414
2426
|
[y.Necessary]: !0,
|
2415
2427
|
[y.Functional]: !0,
|
2416
2428
|
[y.Analytics]: !0
|
2417
2429
|
};
|
2418
|
-
this.storage = new Oi(this.id, "sessionStorage",
|
2430
|
+
this.storage = new Oi(this.id, "sessionStorage", n), typeof o.autoActivate == "boolean" && (this.autoActivate = o.autoActivate), o.anchor && (this.anchor = o.anchor), this.container.register("$settings", r), this.texts.loadTexts(r.texts || {});
|
2419
2431
|
}
|
2420
2432
|
async activate() {
|
2421
|
-
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(
|
2433
|
+
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(oe.Ready), this.autoActivate) {
|
2422
2434
|
const t = this.render();
|
2423
2435
|
t && this._getTargetElement().appendChild(t);
|
2424
2436
|
}
|
@@ -2531,12 +2543,12 @@ class ki {
|
|
2531
2543
|
var i;
|
2532
2544
|
(((i = this.site.environment) == null ? void 0 : i.applications) || []).forEach((r) => {
|
2533
2545
|
if (r.storage) {
|
2534
|
-
const
|
2546
|
+
const o = {
|
2535
2547
|
[y.Analytics]: t.includes("analytics"),
|
2536
2548
|
[y.Necessary]: t.includes("necessary"),
|
2537
2549
|
[y.Functional]: t.includes("functional")
|
2538
2550
|
};
|
2539
|
-
r.storage.updatePolicy(
|
2551
|
+
r.storage.updatePolicy(o);
|
2540
2552
|
}
|
2541
2553
|
});
|
2542
2554
|
}
|
@@ -2569,13 +2581,13 @@ class Ni {
|
|
2569
2581
|
(i) => i.autoActivate
|
2570
2582
|
);
|
2571
2583
|
(((e = this.site) == null ? void 0 : e.triggers) || []).filter((i) => i.triggerType === "visit").forEach((i) => {
|
2572
|
-
const r = window.location.pathname,
|
2573
|
-
i.condition.type === "url" &&
|
2574
|
-
const a =
|
2575
|
-
if ((
|
2584
|
+
const r = window.location.pathname, o = i.condition.outputs || [];
|
2585
|
+
i.condition.type === "url" && o.forEach((n) => {
|
2586
|
+
const a = n.action.type === "render_widget";
|
2587
|
+
if ((n.value === r || n.value === "*") && a) {
|
2576
2588
|
let h = { widgetId: "" };
|
2577
2589
|
try {
|
2578
|
-
h = JSON.parse(
|
2590
|
+
h = JSON.parse(n.action.data);
|
2579
2591
|
} catch {
|
2580
2592
|
h = {
|
2581
2593
|
widgetId: ""
|
@@ -2615,16 +2627,16 @@ class Ni {
|
|
2615
2627
|
if (!i) {
|
2616
2628
|
const r = this.widgetAPIHandlers.get(t) || [];
|
2617
2629
|
r.push(() => {
|
2618
|
-
const
|
2619
|
-
e(
|
2630
|
+
const o = this.applications.find((n) => n.name === t);
|
2631
|
+
e(o == null ? void 0 : o.api);
|
2620
2632
|
}), this.widgetAPIHandlers.set(t, r);
|
2621
2633
|
return;
|
2622
2634
|
}
|
2623
2635
|
e(i == null ? void 0 : i.api);
|
2624
2636
|
}
|
2625
2637
|
registerApp(t, e, i, r) {
|
2626
|
-
const
|
2627
|
-
this.applications.push(
|
2638
|
+
const o = new kt(e, this), n = new Ri(t, e, o, i, r);
|
2639
|
+
this.applications.push(n);
|
2628
2640
|
}
|
2629
2641
|
registerSite(t) {
|
2630
2642
|
this.site = t;
|
@@ -2692,8 +2704,8 @@ class Ui {
|
|
2692
2704
|
}
|
2693
2705
|
}
|
2694
2706
|
var Mi = Object.defineProperty, ji = Object.getOwnPropertyDescriptor, Et = (s, t, e, i) => {
|
2695
|
-
for (var r = i > 1 ? void 0 : i ? ji(t, e) : t,
|
2696
|
-
(
|
2707
|
+
for (var r = i > 1 ? void 0 : i ? ji(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
2708
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
2697
2709
|
return i && r && Mi(t, e, r), r;
|
2698
2710
|
};
|
2699
2711
|
class Y extends _ {
|
@@ -2747,7 +2759,7 @@ Et([
|
|
2747
2759
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", rt);
|
2748
2760
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
|
2749
2761
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", St);
|
2750
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2762
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", ot);
|
2751
2763
|
customElements.get("ace-widget") || customElements.define("ace-widget", Y);
|
2752
2764
|
const Vi = async (s, t, e = {}) => {
|
2753
2765
|
const i = new Ui(s);
|