@telia-ace/widget-components-widget-header-flamingo 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-fcbd4629.js → index-afbfee89.js} +37 -37
- package/dist/{index-fcbd4629.js.map → index-afbfee89.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{widget-header-3c71a6e9.js → widget-header-290db4ff.js} +2 -2
- package/dist/{widget-header-3c71a6e9.js.map → widget-header-290db4ff.js.map} +1 -1
- package/package.json +2 -2
|
@@ -42,7 +42,7 @@ const he = (t, e, s, ...r) => {
|
|
|
42
42
|
error: (s, ...r) => he(e, "error", s, ...r)
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
var
|
|
45
|
+
var X = /* @__PURE__ */ ((t) => (t.Implementation = "implementation", t.Widget = "widget", t))(X || {}), x = /* @__PURE__ */ ((t) => (t.Pre = "pre", t.Post = "post", t))(x || {});
|
|
46
46
|
const Ft = (t, e, s, r) => {
|
|
47
47
|
try {
|
|
48
48
|
const n = new e(s, r);
|
|
@@ -77,12 +77,12 @@ let qt = class {
|
|
|
77
77
|
createCommand(t, e, s) {
|
|
78
78
|
let r;
|
|
79
79
|
typeof e == "function" ? r = {
|
|
80
|
-
scope:
|
|
80
|
+
scope: X.Widget,
|
|
81
81
|
stage: x.Post,
|
|
82
82
|
defaultArgs: void 0,
|
|
83
83
|
handlerResolver: e
|
|
84
84
|
} : r = {
|
|
85
|
-
scope: Ke(e.scope,
|
|
85
|
+
scope: Ke(e.scope, X.Widget),
|
|
86
86
|
stage: Ke(e.stage, x.Post),
|
|
87
87
|
defaultArgs: e.defaultArgs,
|
|
88
88
|
handlerResolver: s
|
|
@@ -104,7 +104,7 @@ const Ne = (t) => {
|
|
|
104
104
|
Ne((t) => {
|
|
105
105
|
t.createCommand(
|
|
106
106
|
"types.register",
|
|
107
|
-
{ scope:
|
|
107
|
+
{ scope: X.Implementation, stage: x.Pre },
|
|
108
108
|
(e) => (s, r) => {
|
|
109
109
|
e.container.get("$types")[s] = r;
|
|
110
110
|
}
|
|
@@ -255,14 +255,14 @@ const A = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1
|
|
|
255
255
|
function Te() {
|
|
256
256
|
return A() + A() + "-" + A() + "-" + A() + "-" + A() + "-" + A() + A() + A();
|
|
257
257
|
}
|
|
258
|
-
var
|
|
258
|
+
var Yt = Object.defineProperty, Qt = Object.defineProperties, Xt = Object.getOwnPropertyDescriptors, Ye = Object.getOwnPropertySymbols, Gt = Object.prototype.hasOwnProperty, es = Object.prototype.propertyIsEnumerable, Qe = (t, e, s) => e in t ? Yt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ts = (t, e) => {
|
|
259
259
|
for (var s in e || (e = {}))
|
|
260
|
-
|
|
261
|
-
if (
|
|
262
|
-
for (var s of
|
|
263
|
-
es.call(e, s) &&
|
|
260
|
+
Gt.call(e, s) && Qe(t, s, e[s]);
|
|
261
|
+
if (Ye)
|
|
262
|
+
for (var s of Ye(e))
|
|
263
|
+
es.call(e, s) && Qe(t, s, e[s]);
|
|
264
264
|
return t;
|
|
265
|
-
}, ss = (t, e) =>
|
|
265
|
+
}, ss = (t, e) => Qt(t, Xt(e));
|
|
266
266
|
const rs = (t) => {
|
|
267
267
|
const e = [];
|
|
268
268
|
return [
|
|
@@ -461,7 +461,7 @@ Ne((t) => {
|
|
|
461
461
|
});
|
|
462
462
|
});
|
|
463
463
|
});
|
|
464
|
-
let
|
|
464
|
+
let Xe = class {
|
|
465
465
|
constructor(t, e) {
|
|
466
466
|
this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = Te(), this.type = e, this.attributes = {
|
|
467
467
|
context: {},
|
|
@@ -663,7 +663,7 @@ const ls = (t) => {
|
|
|
663
663
|
let us = class {
|
|
664
664
|
constructor(t, e = {}) {
|
|
665
665
|
this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new cs(), this.events = t.events.createChild(this);
|
|
666
|
-
const s = new
|
|
666
|
+
const s = new Xe(this.events, "root");
|
|
667
667
|
s.name = `root-${t.name}`, this.nodes = new as(s, this.switches, this.events);
|
|
668
668
|
const r = this.processNode = ds(this, (n) => {
|
|
669
669
|
const i = Array.from(n.keys());
|
|
@@ -770,7 +770,7 @@ ${i.map(
|
|
|
770
770
|
* @param type Type of node.
|
|
771
771
|
*/
|
|
772
772
|
createNode(t, e = {}) {
|
|
773
|
-
const s = new
|
|
773
|
+
const s = new Xe(this.events, t);
|
|
774
774
|
return e.detached && this.nodes.detached.push(s), s;
|
|
775
775
|
}
|
|
776
776
|
components() {
|
|
@@ -843,11 +843,11 @@ const gs = (t, e, s, r = Te(), n = {}) => t.getAsync("components").then((i) => {
|
|
|
843
843
|
);
|
|
844
844
|
});
|
|
845
845
|
process.env.NODE_ENV;
|
|
846
|
-
var ms = Object.defineProperty,
|
|
846
|
+
var ms = Object.defineProperty, Ge = Object.getOwnPropertySymbols, fs = Object.prototype.hasOwnProperty, vs = Object.prototype.propertyIsEnumerable, et = (t, e, s) => e in t ? ms(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, j = (t, e) => {
|
|
847
847
|
for (var s in e || (e = {}))
|
|
848
848
|
fs.call(e, s) && et(t, s, e[s]);
|
|
849
|
-
if (
|
|
850
|
-
for (var s of
|
|
849
|
+
if (Ge)
|
|
850
|
+
for (var s of Ge(e))
|
|
851
851
|
vs.call(e, s) && et(t, s, e[s]);
|
|
852
852
|
return t;
|
|
853
853
|
}, w = /* @__PURE__ */ ((t) => (t.Cookie = "cookie", t.Local = "local", t.Session = "session", t))(w || {}), He = /* @__PURE__ */ ((t) => (t.Tenant = "tenant", t.Implementation = "implementation", t.Widget = "widget", t))(He || {}), m = /* @__PURE__ */ ((t) => (t.Necessary = "necessary", t.Functional = "functional", t.Analytical = "analytical", t.Marketing = "marketing", t))(m || {});
|
|
@@ -918,7 +918,7 @@ const ys = (t, e, s, r = {}) => tt(t, s).then((n) => (process.env.NODE_ENV !== "
|
|
|
918
918
|
a,
|
|
919
919
|
U(a) ? l : p
|
|
920
920
|
), me(o, h, U(h) ? l : p);
|
|
921
|
-
},
|
|
921
|
+
}, G = (t, e) => {
|
|
922
922
|
const [s, r, n] = ie(t), i = e.getItem(s) || "{}", o = e.getItem(r) || "{}", c = e.getItem(n) || "{}";
|
|
923
923
|
return {
|
|
924
924
|
tenant: JSON.parse(i),
|
|
@@ -926,7 +926,7 @@ const ys = (t, e, s, r = {}) => tt(t, s).then((n) => (process.env.NODE_ENV !== "
|
|
|
926
926
|
widget: JSON.parse(c)
|
|
927
927
|
};
|
|
928
928
|
}, Ce = (t, e, s) => {
|
|
929
|
-
const r =
|
|
929
|
+
const r = G(t, e), n = _t(r, s), [i, o, c] = ie(t), { tenant: a, implementation: h, widget: l } = n;
|
|
930
930
|
U(a) ? e.setItem(i, JSON.stringify(a)) : e.removeItem(i), U(h) ? e.setItem(o, JSON.stringify(h)) : e.removeItem(o), U(l) ? e.setItem(c, JSON.stringify(l)) : e.removeItem(c);
|
|
931
931
|
}, ws = () => ({ tenant: {}, implementation: {}, widget: {} }), _s = (t) => t ? !!t && /* @__PURE__ */ new Date() > new Date(t) : !1, xe = (t, e) => {
|
|
932
932
|
const s = t.widget[e] || t.implementation[e] || t.tenant[e];
|
|
@@ -949,7 +949,7 @@ const ys = (t, e, s, r = {}) => tt(t, s).then((n) => (process.env.NODE_ENV !== "
|
|
|
949
949
|
}, tt = (t, e) => bs(t, "storagePolicy", w.Cookie).then(
|
|
950
950
|
(s = [m.Necessary]) => !!e && s.indexOf(e) === -1
|
|
951
951
|
), Es = (t = [m.Necessary], e) => !!e && t.indexOf(e) === -1, Me = (t) => {
|
|
952
|
-
const e = Re(t), s =
|
|
952
|
+
const e = Re(t), s = G(t, window.localStorage), r = G(t, sessionStorage), n = xe(e, "storagePolicy"), [i, o, c] = [
|
|
953
953
|
e,
|
|
954
954
|
s,
|
|
955
955
|
r
|
|
@@ -960,7 +960,7 @@ const ys = (t, e, s, r = {}) => tt(t, s).then((n) => (process.env.NODE_ENV !== "
|
|
|
960
960
|
return i.setTime(i.getTime() + s * 60 * 60 * 1e3), i.setTime(i.getTime() + e * 24 * 60 * 60 * 1e3), i.setTime(i.getTime() + r * 60 * 1e3), i.setTime(i.getTime() + n * 1e3), i.toISOString();
|
|
961
961
|
}, Os = (t) => ne(document)(() => Re(t)), Cs = (t, e) => ne(document)(() => At(t, e)), xs = (t, e) => {
|
|
962
962
|
const s = e === w.Local ? window.localStorage : window.sessionStorage;
|
|
963
|
-
return ne(s)(() =>
|
|
963
|
+
return ne(s)(() => G(t, s));
|
|
964
964
|
}, Ss = (t, e, s) => {
|
|
965
965
|
const r = e === w.Local ? window.localStorage : window.sessionStorage;
|
|
966
966
|
return ne(r)(() => Ce(t, r, s));
|
|
@@ -1263,14 +1263,14 @@ var rt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fun
|
|
|
1263
1263
|
} : function(t) {
|
|
1264
1264
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1265
1265
|
};
|
|
1266
|
-
function
|
|
1266
|
+
function Y(t, e) {
|
|
1267
1267
|
if (t === e)
|
|
1268
1268
|
return !0;
|
|
1269
1269
|
if (t == null || e == null)
|
|
1270
1270
|
return !1;
|
|
1271
1271
|
if (Array.isArray(t))
|
|
1272
1272
|
return Array.isArray(e) && t.length === e.length && t.every(function(a, h) {
|
|
1273
|
-
return
|
|
1273
|
+
return Y(a, e[h]);
|
|
1274
1274
|
});
|
|
1275
1275
|
var s = typeof t == "undefined" ? "undefined" : rt(t), r = typeof e == "undefined" ? "undefined" : rt(e);
|
|
1276
1276
|
if (s !== r)
|
|
@@ -1278,17 +1278,17 @@ function Q(t, e) {
|
|
|
1278
1278
|
if (s === "object") {
|
|
1279
1279
|
var n = t.valueOf(), i = e.valueOf();
|
|
1280
1280
|
if (n !== t || i !== e)
|
|
1281
|
-
return
|
|
1281
|
+
return Y(n, i);
|
|
1282
1282
|
var o = Object.keys(t), c = Object.keys(e);
|
|
1283
1283
|
return o.length !== c.length ? !1 : o.every(function(a) {
|
|
1284
|
-
return
|
|
1284
|
+
return Y(t[a], e[a]);
|
|
1285
1285
|
});
|
|
1286
1286
|
}
|
|
1287
1287
|
return !1;
|
|
1288
1288
|
}
|
|
1289
1289
|
const Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1290
1290
|
__proto__: null,
|
|
1291
|
-
default:
|
|
1291
|
+
default: Y
|
|
1292
1292
|
}, Symbol.toStringTag, { value: "Module" })), Ds = /* @__PURE__ */ Ct(Ms);
|
|
1293
1293
|
var zs = Rs;
|
|
1294
1294
|
St(zs);
|
|
@@ -1481,7 +1481,7 @@ Pt((t) => {
|
|
|
1481
1481
|
* Copyright 2019 Google LLC
|
|
1482
1482
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1483
1483
|
*/
|
|
1484
|
-
const
|
|
1484
|
+
const Q = window, ze = Q.ShadowRoot && (Q.ShadyCSS === void 0 || Q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Le = Symbol(), it = /* @__PURE__ */ new WeakMap();
|
|
1485
1485
|
let kt = class {
|
|
1486
1486
|
constructor(t, e, s) {
|
|
1487
1487
|
if (this._$cssResult$ = !0, s !== Le)
|
|
@@ -1512,7 +1512,7 @@ const Js = (t) => new kt(typeof t == "string" ? t : t + "", void 0, Le), Fs = (t
|
|
|
1512
1512
|
return new kt(s, t, Le);
|
|
1513
1513
|
}, qs = (t, e) => {
|
|
1514
1514
|
ze ? t.adoptedStyleSheets = e.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet) : e.forEach((s) => {
|
|
1515
|
-
const r = document.createElement("style"), n =
|
|
1515
|
+
const r = document.createElement("style"), n = Q.litNonce;
|
|
1516
1516
|
n !== void 0 && r.setAttribute("nonce", n), r.textContent = s.cssText, t.appendChild(r);
|
|
1517
1517
|
});
|
|
1518
1518
|
}, ot = ze ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
@@ -1744,15 +1744,15 @@ I[Pe] = !0, I.elementProperties = /* @__PURE__ */ new Map(), I.elementStyles = [
|
|
|
1744
1744
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1745
1745
|
*/
|
|
1746
1746
|
var we;
|
|
1747
|
-
const se = window, H = se.trustedTypes, lt = H ? H.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ke = "$lit$", E = `lit$${(Math.random() + "").slice(9)}$`, Tt = "?" + E, Zs = `<${Tt}>`, k = document, W = () => k.createComment(""), V = (t) => t === null || typeof t != "object" && typeof t != "function", jt = Array.isArray,
|
|
1747
|
+
const se = window, H = se.trustedTypes, lt = H ? H.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ke = "$lit$", E = `lit$${(Math.random() + "").slice(9)}$`, Tt = "?" + E, Zs = `<${Tt}>`, k = document, W = () => k.createComment(""), V = (t) => t === null || typeof t != "object" && typeof t != "function", jt = Array.isArray, Ys = (t) => jt(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", _e = `[
|
|
1748
1748
|
\f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, pt = />/g, C = RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
|
|
1749
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, ut = /"/g, It = /^(?:script|style|textarea|title)$/i,
|
|
1749
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, ut = /"/g, It = /^(?:script|style|textarea|title)$/i, Qs = (t) => (e, ...s) => ({ _$litType$: t, strings: e, values: s }), K = Qs(1), N = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), gt = /* @__PURE__ */ new WeakMap(), P = k.createTreeWalker(k, 129, null, !1);
|
|
1750
1750
|
function Ut(t, e) {
|
|
1751
1751
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
|
|
1752
1752
|
throw Error("invalid template strings array");
|
|
1753
1753
|
return lt !== void 0 ? lt.createHTML(e) : e;
|
|
1754
1754
|
}
|
|
1755
|
-
const
|
|
1755
|
+
const Xs = (t, e) => {
|
|
1756
1756
|
const s = t.length - 1, r = [];
|
|
1757
1757
|
let n, i = e === 2 ? "<svg>" : "", o = M;
|
|
1758
1758
|
for (let c = 0; c < s; c++) {
|
|
@@ -1770,7 +1770,7 @@ class B {
|
|
|
1770
1770
|
let n;
|
|
1771
1771
|
this.parts = [];
|
|
1772
1772
|
let i = 0, o = 0;
|
|
1773
|
-
const c = e.length - 1, a = this.parts, [h, l] =
|
|
1773
|
+
const c = e.length - 1, a = this.parts, [h, l] = Xs(e, s);
|
|
1774
1774
|
if (this.el = B.createElement(h, r), P.currentNode = this.el.content, s === 2) {
|
|
1775
1775
|
const p = this.el.content, d = p.firstChild;
|
|
1776
1776
|
d.remove(), p.append(...d.childNodes);
|
|
@@ -1824,7 +1824,7 @@ function R(t, e, s = t, r) {
|
|
|
1824
1824
|
const h = V(e) ? void 0 : e._$litDirective$;
|
|
1825
1825
|
return (a == null ? void 0 : a.constructor) !== h && ((i = a == null ? void 0 : a._$AO) === null || i === void 0 || i.call(a, !1), h === void 0 ? a = void 0 : (a = new h(t), a._$AT(t, s, r)), r !== void 0 ? ((o = (c = s)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[r] = a : s._$Cl = a), a !== void 0 && (e = R(t, a._$AS(t, e.values), a, r)), e;
|
|
1826
1826
|
}
|
|
1827
|
-
class
|
|
1827
|
+
class Gs {
|
|
1828
1828
|
constructor(e, s) {
|
|
1829
1829
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = s;
|
|
1830
1830
|
}
|
|
@@ -1875,7 +1875,7 @@ class J {
|
|
|
1875
1875
|
return this._$AB;
|
|
1876
1876
|
}
|
|
1877
1877
|
_$AI(e, s = this) {
|
|
1878
|
-
e = R(this, e, s), V(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== N && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) :
|
|
1878
|
+
e = R(this, e, s), V(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== N && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : Ys(e) ? this.T(e) : this._(e);
|
|
1879
1879
|
}
|
|
1880
1880
|
k(e) {
|
|
1881
1881
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -1892,7 +1892,7 @@ class J {
|
|
|
1892
1892
|
if (((s = this._$AH) === null || s === void 0 ? void 0 : s._$AD) === i)
|
|
1893
1893
|
this._$AH.v(r);
|
|
1894
1894
|
else {
|
|
1895
|
-
const o = new
|
|
1895
|
+
const o = new Gs(i, this), c = o.u(this.options);
|
|
1896
1896
|
o.v(r), this.$(c), this._$AH = o;
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
@@ -2300,12 +2300,12 @@ const mr = "properties", gr = (t, e, s, r, n) => t.getAsync("componentResolver")
|
|
|
2300
2300
|
}), e, n))), fr = (t) => gr(
|
|
2301
2301
|
t,
|
|
2302
2302
|
"widget-header",
|
|
2303
|
-
import("./widget-header-
|
|
2303
|
+
import("./widget-header-290db4ff.js"),
|
|
2304
2304
|
(e) => {
|
|
2305
2305
|
}
|
|
2306
2306
|
);
|
|
2307
2307
|
export {
|
|
2308
2308
|
fr as W,
|
|
2309
|
-
mr as
|
|
2309
|
+
mr as f
|
|
2310
2310
|
};
|
|
2311
|
-
//# sourceMappingURL=index-
|
|
2311
|
+
//# sourceMappingURL=index-afbfee89.js.map
|