@telia-ace/widget-components-area-flamingo 1.1.76-rc.18 → 1.1.76-rc.19
Sign up to get free protection for your applications and to get access to all the features.
@@ -335,6 +335,15 @@
|
|
335
335
|
padding: 40px !important;
|
336
336
|
}
|
337
337
|
|
338
|
+
@media screen and (max-device-width: 800px) {
|
339
|
+
:host(.embedded) {
|
340
|
+
padding: 0 !important;
|
341
|
+
}
|
342
|
+
:host(.embedded) .widget-container {
|
343
|
+
border-radius: none !important;
|
344
|
+
}
|
345
|
+
}
|
346
|
+
|
338
347
|
:host(.embedded) .widget-container {
|
339
348
|
border-radius: var(--border-radius) !important;
|
340
349
|
}
|
@@ -300,7 +300,7 @@ k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[M("elementProper
|
|
300
300
|
*/
|
301
301
|
const N = globalThis, K = N.trustedTypes, Ot = K ? K.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Gt = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, Xt = "?" + $, xe = `<${Xt}>`, E = document, H = () => E.createComment(""), I = (s) => s === null || typeof s != "object" && typeof s != "function", Jt = Array.isArray, Ce = (s) => Jt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", it = `[
|
302
302
|
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Tt = /-->/g, kt = />/g, A = RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ut = /'/g, Rt = /"/g, Qt = /^(?:script|style|textarea|title)$/i, Se = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), C = Se(1), P = Symbol.for("lit-noChange"),
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ut = /'/g, Rt = /"/g, Qt = /^(?:script|style|textarea|title)$/i, Se = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), C = Se(1), P = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), S = E.createTreeWalker(E, 129);
|
304
304
|
function te(s, t) {
|
305
305
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
@@ -311,11 +311,11 @@ const Ee = (s, t) => {
|
|
311
311
|
let r, o = t === 2 ? "<svg>" : "", n = j;
|
312
312
|
for (let a = 0; a < e; a++) {
|
313
313
|
const c = s[a];
|
314
|
-
let h, l,
|
314
|
+
let h, l, d = -1, u = 0;
|
315
315
|
for (; u < c.length && (n.lastIndex = u, l = n.exec(c), l !== null); )
|
316
|
-
u = n.lastIndex, n === j ? l[1] === "!--" ? n = Tt : l[1] !== void 0 ? n = kt : l[2] !== void 0 ? (Qt.test(l[2]) && (r = RegExp("</" + l[2], "g")), n = A) : l[3] !== void 0 && (n = A) : n === A ? l[0] === ">" ? (n = r ?? j,
|
316
|
+
u = n.lastIndex, n === j ? l[1] === "!--" ? n = Tt : l[1] !== void 0 ? n = kt : l[2] !== void 0 ? (Qt.test(l[2]) && (r = RegExp("</" + l[2], "g")), n = A) : l[3] !== void 0 && (n = A) : n === A ? l[0] === ">" ? (n = r ?? j, d = -1) : l[1] === void 0 ? d = -2 : (d = n.lastIndex - l[2].length, h = l[1], n = l[3] === void 0 ? A : l[3] === '"' ? Rt : Ut) : n === Rt || n === Ut ? n = A : n === Tt || n === kt ? n = j : (n = A, r = void 0);
|
317
317
|
const f = n === A && s[a + 1].startsWith("/>") ? " " : "";
|
318
|
-
o += n === j ? c + xe :
|
318
|
+
o += n === j ? c + xe : d >= 0 ? (i.push(h), c.slice(0, d) + Gt + c.slice(d) + $ + f) : c + $ + (d === -2 ? a : f);
|
319
319
|
}
|
320
320
|
return [te(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
321
321
|
};
|
@@ -326,34 +326,34 @@ class D {
|
|
326
326
|
let o = 0, n = 0;
|
327
327
|
const a = t.length - 1, c = this.parts, [h, l] = Ee(t, e);
|
328
328
|
if (this.el = D.createElement(h, i), S.currentNode = this.el.content, e === 2) {
|
329
|
-
const
|
330
|
-
|
329
|
+
const d = this.el.content.firstChild;
|
330
|
+
d.replaceWith(...d.childNodes);
|
331
331
|
}
|
332
332
|
for (; (r = S.nextNode()) !== null && c.length < a; ) {
|
333
333
|
if (r.nodeType === 1) {
|
334
334
|
if (r.hasAttributes())
|
335
|
-
for (const
|
336
|
-
if (
|
337
|
-
const u = l[n++], f = r.getAttribute(
|
338
|
-
c.push({ type: 1, index: o, name: T[2], strings: f, ctor: T[1] === "." ? Oe : T[1] === "?" ? Te : T[1] === "@" ? ke : Q }), r.removeAttribute(
|
335
|
+
for (const d of r.getAttributeNames())
|
336
|
+
if (d.endsWith(Gt)) {
|
337
|
+
const u = l[n++], f = r.getAttribute(d).split($), T = /([.?@])?(.*)/.exec(u);
|
338
|
+
c.push({ type: 1, index: o, name: T[2], strings: f, ctor: T[1] === "." ? Oe : T[1] === "?" ? Te : T[1] === "@" ? ke : Q }), r.removeAttribute(d);
|
339
339
|
} else
|
340
|
-
|
340
|
+
d.startsWith($) && (c.push({ type: 6, index: o }), r.removeAttribute(d));
|
341
341
|
if (Qt.test(r.tagName)) {
|
342
|
-
const
|
342
|
+
const d = r.textContent.split($), u = d.length - 1;
|
343
343
|
if (u > 0) {
|
344
344
|
r.textContent = K ? K.emptyScript : "";
|
345
345
|
for (let f = 0; f < u; f++)
|
346
|
-
r.append(
|
347
|
-
r.append(
|
346
|
+
r.append(d[f], H()), S.nextNode(), c.push({ type: 2, index: ++o });
|
347
|
+
r.append(d[u], H());
|
348
348
|
}
|
349
349
|
}
|
350
350
|
} else if (r.nodeType === 8)
|
351
351
|
if (r.data === Xt)
|
352
352
|
c.push({ type: 2, index: o });
|
353
353
|
else {
|
354
|
-
let
|
355
|
-
for (; (
|
356
|
-
c.push({ type: 7, index: o }),
|
354
|
+
let d = -1;
|
355
|
+
for (; (d = r.data.indexOf($, d + 1)) !== -1; )
|
356
|
+
c.push({ type: 7, index: o }), d += $.length - 1;
|
357
357
|
}
|
358
358
|
o++;
|
359
359
|
}
|
@@ -406,7 +406,7 @@ class B {
|
|
406
406
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
407
407
|
}
|
408
408
|
constructor(t, e, i, r) {
|
409
|
-
this.type = 2, this._$AH =
|
409
|
+
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
410
410
|
}
|
411
411
|
get parentNode() {
|
412
412
|
let t = this._$AA.parentNode;
|
@@ -420,7 +420,7 @@ class B {
|
|
420
420
|
return this._$AB;
|
421
421
|
}
|
422
422
|
_$AI(t, e = this) {
|
423
|
-
t = U(this, t, e), I(t) ? t ===
|
423
|
+
t = U(this, t, e), I(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ce(t) ? this.k(t) : this._(t);
|
424
424
|
}
|
425
425
|
S(t) {
|
426
426
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -429,7 +429,7 @@ class B {
|
|
429
429
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
430
430
|
}
|
431
431
|
_(t) {
|
432
|
-
this._$AH !==
|
432
|
+
this._$AH !== p && I(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
|
433
433
|
}
|
434
434
|
$(t) {
|
435
435
|
var o;
|
@@ -473,7 +473,7 @@ class Q {
|
|
473
473
|
return this._$AM._$AU;
|
474
474
|
}
|
475
475
|
constructor(t, e, i, r, o) {
|
476
|
-
this.type = 1, this._$AH =
|
476
|
+
this.type = 1, this._$AH = p, 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 = p;
|
477
477
|
}
|
478
478
|
_$AI(t, e = this, i, r) {
|
479
479
|
const o = this.strings;
|
@@ -484,12 +484,12 @@ class Q {
|
|
484
484
|
const a = t;
|
485
485
|
let c, h;
|
486
486
|
for (t = o[0], c = 0; c < o.length - 1; c++)
|
487
|
-
h = U(this, a[i + c], e, c), h === P && (h = this._$AH[c]), n || (n = !I(h) || h !== this._$AH[c]), h ===
|
487
|
+
h = U(this, a[i + c], e, c), h === P && (h = this._$AH[c]), n || (n = !I(h) || h !== this._$AH[c]), h === p ? t = p : t !== p && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
488
488
|
}
|
489
489
|
n && !r && this.j(t);
|
490
490
|
}
|
491
491
|
j(t) {
|
492
|
-
t ===
|
492
|
+
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
493
|
}
|
494
494
|
}
|
495
495
|
class Oe extends Q {
|
@@ -497,7 +497,7 @@ class Oe extends Q {
|
|
497
497
|
super(...arguments), this.type = 3;
|
498
498
|
}
|
499
499
|
j(t) {
|
500
|
-
this.element[this.name] = t ===
|
500
|
+
this.element[this.name] = t === p ? void 0 : t;
|
501
501
|
}
|
502
502
|
}
|
503
503
|
class Te extends Q {
|
@@ -505,7 +505,7 @@ class Te extends Q {
|
|
505
505
|
super(...arguments), this.type = 4;
|
506
506
|
}
|
507
507
|
j(t) {
|
508
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
508
|
+
this.element.toggleAttribute(this.name, !!t && t !== p);
|
509
509
|
}
|
510
510
|
}
|
511
511
|
class ke extends Q {
|
@@ -513,9 +513,9 @@ class ke extends Q {
|
|
513
513
|
super(t, e, i, r, o), this.type = 5;
|
514
514
|
}
|
515
515
|
_$AI(t, e = this) {
|
516
|
-
if ((t = U(this, t, e, 0) ??
|
516
|
+
if ((t = U(this, t, e, 0) ?? p) === P)
|
517
517
|
return;
|
518
|
-
const i = this._$AH, r = t ===
|
518
|
+
const i = this._$AH, r = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== p && (i === p || r);
|
519
519
|
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
520
520
|
}
|
521
521
|
handleEvent(t) {
|
@@ -609,7 +609,7 @@ function z(s, t) {
|
|
609
609
|
}
|
610
610
|
s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
611
611
|
}
|
612
|
-
function
|
612
|
+
function dt(s) {
|
613
613
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
|
614
614
|
if (e)
|
615
615
|
return e.call(s);
|
@@ -665,7 +665,7 @@ var ot = ie(function(s) {
|
|
665
665
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
666
666
|
};
|
667
667
|
});
|
668
|
-
function
|
668
|
+
function pt(s, t) {
|
669
669
|
if (s) {
|
670
670
|
var e = s.indexOf(t);
|
671
671
|
0 <= e && s.splice(e, 1);
|
@@ -683,7 +683,7 @@ var tt = function() {
|
|
683
683
|
if (n)
|
684
684
|
if (this._parentage = null, Array.isArray(n))
|
685
685
|
try {
|
686
|
-
for (var a =
|
686
|
+
for (var a = dt(n), c = a.next(); !c.done; c = a.next()) {
|
687
687
|
var h = c.value;
|
688
688
|
h.remove(this);
|
689
689
|
}
|
@@ -706,11 +706,11 @@ var tt = function() {
|
|
706
706
|
} catch (v) {
|
707
707
|
o = v instanceof ot ? v.errors : [v];
|
708
708
|
}
|
709
|
-
var
|
710
|
-
if (
|
709
|
+
var d = this._finalizers;
|
710
|
+
if (d) {
|
711
711
|
this._finalizers = null;
|
712
712
|
try {
|
713
|
-
for (var u =
|
713
|
+
for (var u = dt(d), f = u.next(); !f.done; f = u.next()) {
|
714
714
|
var T = f.value;
|
715
715
|
try {
|
716
716
|
Mt(T);
|
@@ -753,10 +753,10 @@ var tt = function() {
|
|
753
753
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
754
754
|
}, s.prototype._removeParent = function(t) {
|
755
755
|
var e = this._parentage;
|
756
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
756
|
+
e === t ? this._parentage = null : Array.isArray(e) && pt(e, t);
|
757
757
|
}, s.prototype.remove = function(t) {
|
758
758
|
var e = this._finalizers;
|
759
|
-
e &&
|
759
|
+
e && pt(e, t), t instanceof s && t._removeParent(this);
|
760
760
|
}, s.EMPTY = function() {
|
761
761
|
var t = new s();
|
762
762
|
return t.closed = !0, t;
|
@@ -1004,7 +1004,7 @@ var We = ie(function(s) {
|
|
1004
1004
|
if (i._throwIfClosed(), !i.isStopped) {
|
1005
1005
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
1006
1006
|
try {
|
1007
|
-
for (var n =
|
1007
|
+
for (var n = dt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
|
1008
1008
|
var c = a.value;
|
1009
1009
|
c.next(e);
|
1010
1010
|
}
|
@@ -1054,7 +1054,7 @@ var We = ie(function(s) {
|
|
1054
1054
|
}, t.prototype._innerSubscribe = function(e) {
|
1055
1055
|
var i = this, r = this, o = r.hasError, n = r.isStopped, a = r.observers;
|
1056
1056
|
return o || n ? se : (this.currentObservers = null, a.push(e), new tt(function() {
|
1057
|
-
i.currentObservers = null,
|
1057
|
+
i.currentObservers = null, pt(a, e);
|
1058
1058
|
}));
|
1059
1059
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
1060
1060
|
var i = this, r = i.hasError, o = i.thrownError, n = i.isStopped;
|
@@ -1162,7 +1162,7 @@ class bt extends m {
|
|
1162
1162
|
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
1163
1163
|
}
|
1164
1164
|
render() {
|
1165
|
-
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"),
|
1165
|
+
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), p;
|
1166
1166
|
}
|
1167
1167
|
}
|
1168
1168
|
bt.styles = [
|
@@ -1329,7 +1329,7 @@ class oi extends he {
|
|
1329
1329
|
(t = this.l) == null || t.call(this), this.l = void 0;
|
1330
1330
|
}
|
1331
1331
|
render(t) {
|
1332
|
-
return
|
1332
|
+
return p;
|
1333
1333
|
}
|
1334
1334
|
getController() {
|
1335
1335
|
return ei.get(this.u);
|
@@ -1458,10 +1458,10 @@ class oi extends he {
|
|
1458
1458
|
for (const c in e) {
|
1459
1459
|
const h = t[c], l = e[c];
|
1460
1460
|
if (c in ct) {
|
1461
|
-
const
|
1461
|
+
const d = ct[c];
|
1462
1462
|
if (h === void 0 || l === void 0)
|
1463
1463
|
continue;
|
1464
|
-
const u =
|
1464
|
+
const u = d(h, l);
|
1465
1465
|
u.transform !== void 0 && (a[c] = u.value, n = !0, r.transform = `${r.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(r, u.overrideFrom));
|
1466
1466
|
} else
|
1467
1467
|
h !== l && h !== void 0 && l !== void 0 && (n = !0, r[c] = h, o[c] = l);
|
@@ -1562,17 +1562,17 @@ const Yt = _t(class extends ae {
|
|
1562
1562
|
* Copyright 2020 Google LLC
|
1563
1563
|
* SPDX-License-Identifier: BSD-3-Clause
|
1564
1564
|
*/
|
1565
|
-
const
|
1565
|
+
const de = () => new ci();
|
1566
1566
|
class ci {
|
1567
1567
|
}
|
1568
|
-
const ht = /* @__PURE__ */ new WeakMap(),
|
1568
|
+
const ht = /* @__PURE__ */ new WeakMap(), pe = _t(class extends he {
|
1569
1569
|
render(s) {
|
1570
|
-
return
|
1570
|
+
return p;
|
1571
1571
|
}
|
1572
1572
|
update(s, [t]) {
|
1573
1573
|
var i;
|
1574
1574
|
const e = t !== this.Y;
|
1575
|
-
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)),
|
1575
|
+
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)), p;
|
1576
1576
|
}
|
1577
1577
|
rt(s) {
|
1578
1578
|
if (typeof this.Y == "function") {
|
@@ -1600,7 +1600,7 @@ var hi = Object.defineProperty, li = Object.getOwnPropertyDescriptor, V = (s, t,
|
|
1600
1600
|
};
|
1601
1601
|
class w extends m {
|
1602
1602
|
constructor() {
|
1603
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
1603
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = de(), this.widgetActive$ = new Fe(!1), this.componentIsDestroyed$ = new yt();
|
1604
1604
|
}
|
1605
1605
|
async connectedCallback() {
|
1606
1606
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -1644,7 +1644,7 @@ class w extends m {
|
|
1644
1644
|
return C` <img src=${e} class="trigger-icon" alt="" /> `;
|
1645
1645
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1646
1646
|
if (!i)
|
1647
|
-
return
|
1647
|
+
return p;
|
1648
1648
|
const r = async (l) => ai, { type: o, content: n } = i;
|
1649
1649
|
switch (o) {
|
1650
1650
|
case "Telia": {
|
@@ -1653,10 +1653,10 @@ class w extends m {
|
|
1653
1653
|
class="trigger-icon"
|
1654
1654
|
svg=${l.svg}
|
1655
1655
|
size="lg"
|
1656
|
-
></telia-icon>` :
|
1656
|
+
></telia-icon>` : p;
|
1657
1657
|
}
|
1658
1658
|
default:
|
1659
|
-
return
|
1659
|
+
return p;
|
1660
1660
|
}
|
1661
1661
|
}
|
1662
1662
|
hideTrigger() {
|
@@ -1672,7 +1672,7 @@ class w extends m {
|
|
1672
1672
|
"trigger-container": !0,
|
1673
1673
|
hidden: !this.triggerVisible
|
1674
1674
|
})}
|
1675
|
-
${
|
1675
|
+
${pe(this.containerRef)}
|
1676
1676
|
>
|
1677
1677
|
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? C`
|
1678
1678
|
<button
|
@@ -1688,7 +1688,7 @@ class w extends m {
|
|
1688
1688
|
>
|
1689
1689
|
${this.application.settings.branding.other.buttonLabelText}
|
1690
1690
|
</button>
|
1691
|
-
` :
|
1691
|
+
` : p}
|
1692
1692
|
|
1693
1693
|
<button
|
1694
1694
|
label="Widget trigger"
|
@@ -1878,10 +1878,10 @@ V([
|
|
1878
1878
|
V([
|
1879
1879
|
R()
|
1880
1880
|
], w.prototype, "icon", 2);
|
1881
|
-
var
|
1882
|
-
for (var r = i > 1 ? void 0 : i ?
|
1881
|
+
var di = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, x = (s, t, e, i) => {
|
1882
|
+
for (var r = i > 1 ? void 0 : i ? pi(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
1883
1883
|
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
1884
|
-
return i && r &&
|
1884
|
+
return i && r && di(t, e, r), r;
|
1885
1885
|
};
|
1886
1886
|
const ue = (s) => {
|
1887
1887
|
class t extends s {
|
@@ -2085,7 +2085,7 @@ var mi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, bi = (s, t
|
|
2085
2085
|
const $i = "application";
|
2086
2086
|
class At extends m {
|
2087
2087
|
constructor() {
|
2088
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
2088
|
+
super(...arguments), this.nodes = [], this.wrapperRef = de();
|
2089
2089
|
}
|
2090
2090
|
addChild(t) {
|
2091
2091
|
t.parent = this, this.nodes.push(t);
|
@@ -2110,7 +2110,7 @@ class At extends m {
|
|
2110
2110
|
render() {
|
2111
2111
|
var i, r;
|
2112
2112
|
const t = this.application.settings.components.conversation;
|
2113
|
-
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 === wt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top ? (console.log("This page is embedded in an iframe."), this.renderRoot.host.classList.add("embedded")) : console.log("This page is not embedded in an iframe."), C`<div class="widget-container" ${
|
2113
|
+
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 === wt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top ? (console.log("This page is embedded in an iframe."), this.renderRoot.host.classList.add("embedded")) : console.log("This page is not embedded in an iframe."), C`<div class="widget-container" ${pe(this.wrapperRef)}>
|
2114
2114
|
${ee(this.nodes, (o) => o)}
|
2115
2115
|
</div>`;
|
2116
2116
|
}
|
@@ -2164,6 +2164,15 @@ At.styles = O`
|
|
2164
2164
|
padding: 40px !important;
|
2165
2165
|
}
|
2166
2166
|
|
2167
|
+
@media screen and (max-device-width: 800px) {
|
2168
|
+
:host(.embedded) {
|
2169
|
+
padding: 0 !important;
|
2170
|
+
}
|
2171
|
+
:host(.embedded) .widget-container {
|
2172
|
+
border-radius: none !important;
|
2173
|
+
}
|
2174
|
+
}
|
2175
|
+
|
2167
2176
|
:host(.embedded) .widget-container {
|
2168
2177
|
border-radius: var(--border-radius) !important;
|
2169
2178
|
}
|
@@ -2292,7 +2301,7 @@ class W extends m {
|
|
2292
2301
|
}
|
2293
2302
|
render() {
|
2294
2303
|
if (!this.widget || this.status !== "activated")
|
2295
|
-
return
|
2304
|
+
return p;
|
2296
2305
|
if (this.widget.renderStrategy === wt.Trigger) {
|
2297
2306
|
const t = new w();
|
2298
2307
|
return t.application = this.widget, t;
|
package/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-
|
1
|
+
"use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-bdb8d8c6.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "@telia-ace/widget-components-area-flamingo",
|
3
|
-
"version": "1.1.76-rc.
|
3
|
+
"version": "1.1.76-rc.19",
|
4
4
|
"dependencies": {
|
5
|
-
"@telia-ace/widget-core-flamingo": "1.1.76-rc.
|
5
|
+
"@telia-ace/widget-core-flamingo": "1.1.76-rc.19",
|
6
6
|
"lit": "^3.0.2"
|
7
7
|
},
|
8
8
|
"main": "./index.js",
|