@telia-ace/widget-runtime-flamingo 1.1.111-rc.5 → 1.1.111-rc.7

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.
@@ -109,22 +109,22 @@ Ae((i) => {
109
109
  let o = null, a = e, h = s;
110
110
  typeof e == "string" && (o = e, a = s, h = n);
111
111
  const c = (l) => {
112
- const { transformPluginSettings: d } = t.container.get("$environmentOptions"), p = d ? d(
112
+ const { transformPluginSettings: d } = t.container.get("$environmentOptions"), u = d ? d(
113
113
  h || {},
114
114
  o,
115
115
  t.container,
116
116
  a
117
117
  ) : s;
118
118
  try {
119
- const u = Be(
119
+ const p = Be(
120
120
  o,
121
121
  a,
122
122
  r,
123
- p
123
+ u
124
124
  );
125
- r.get("$plugins").push(u), l && u.invoke("initialize", null);
126
- } catch (u) {
127
- ze(t).warn("Error when initializing plugin", u);
125
+ r.get("$plugins").push(p), l && p.invoke("initialize", null);
126
+ } catch (p) {
127
+ ze(t).warn("Error when initializing plugin", p);
128
128
  }
129
129
  };
130
130
  t.container.get("$instance") ? c(!0) : t.events.subscribeOnce("widget:instance-created", () => c(!1));
@@ -313,22 +313,22 @@ Jt((i) => {
313
313
  let o = null, a = e, h = s;
314
314
  typeof e == "string" && (o = e, a = s, h = n);
315
315
  const c = (l) => {
316
- const { transformPluginSettings: d } = t.container.get("$environmentOptions"), p = d ? d(
316
+ const { transformPluginSettings: d } = t.container.get("$environmentOptions"), u = d ? d(
317
317
  h || {},
318
318
  o,
319
319
  t.container,
320
320
  a
321
321
  ) : s;
322
322
  try {
323
- const u = Ge(
323
+ const p = Ge(
324
324
  o,
325
325
  a,
326
326
  r,
327
- p
327
+ u
328
328
  );
329
- r.get("$plugins").push(u), l && u.invoke("initialize", null);
330
- } catch (u) {
331
- Ke(t).warn("Error when initializing plugin", u);
329
+ r.get("$plugins").push(p), l && p.invoke("initialize", null);
330
+ } catch (p) {
331
+ Ke(t).warn("Error when initializing plugin", p);
332
332
  }
333
333
  };
334
334
  t.container.get("$instance") ? c(!0) : t.events.subscribeOnce("widget:instance-created", () => c(!1));
@@ -361,7 +361,7 @@ Jt((i) => {
361
361
  }
362
362
  );
363
363
  });
364
- var Ee = /* @__PURE__ */ ((i) => (i.Activating = "activating", i.Loading = "loading", i.Activated = "activated", i.Deactivating = "deactivating", i.Deactivated = "deactivated", i))(Ee || {});
364
+ var xe = /* @__PURE__ */ ((i) => (i.Activating = "activating", i.Loading = "loading", i.Activated = "activated", i.Deactivating = "deactivating", i.Deactivated = "deactivated", i))(xe || {});
365
365
  class Ze {
366
366
  /**
367
367
  * Creates a new `Widget` instance.
@@ -386,13 +386,13 @@ v.log = (...i) => _t(console.log, ...i);
386
386
  v.warn = (...i) => _t(console.warn, ...i);
387
387
  v.error = (...i) => _t(console.error, ...i);
388
388
  v.info = (...i) => _t(console.info, ...i);
389
- const xe = (i) => {
389
+ const Ee = (i) => {
390
390
  let t = {}, e, s;
391
391
  if (typeof i != "object" || i === null)
392
392
  return i;
393
393
  t = Array.isArray(i) ? [] : {};
394
394
  for (s in i)
395
- e = i[s], t[s] = typeof e == "object" && e !== null ? xe(e) : e;
395
+ e = i[s], t[s] = typeof e == "object" && e !== null ? Ee(e) : e;
396
396
  return t;
397
397
  };
398
398
  function ae(i) {
@@ -436,7 +436,7 @@ let Qe = class {
436
436
  }
437
437
  };
438
438
  const ct = /* @__PURE__ */ new WeakMap();
439
- function E(i, t = 5e3, e = 1e3) {
439
+ function x(i, t = 5e3, e = 1e3) {
440
440
  return ct.has(i) || ct.set(i, new Qe(t, e)), (s) => new Promise((n, r) => {
441
441
  const o = ct.get(i);
442
442
  o.add(s, n, r, () => {
@@ -630,9 +630,9 @@ const is = (i, t, e) => {
630
630
  const s = i.concat(), n = (r, o, a) => {
631
631
  let h = !0;
632
632
  if (s.length) {
633
- const c = s.shift(), l = (d, p) => (h = !1, n(
633
+ const c = s.shift(), l = (d, u) => (h = !1, n(
634
634
  d,
635
- Object.assign({}, o, p),
635
+ Object.assign({}, o, u),
636
636
  a
637
637
  ));
638
638
  return Promise.resolve(c(r, l, a)).then(
@@ -687,9 +687,9 @@ let At = class {
687
687
  );
688
688
  return is(h, e, l).then(
689
689
  (d) => {
690
- const { data: p = {}, options: u, cancelled: g } = d;
690
+ const { data: u = {}, options: p, cancelled: g } = d;
691
691
  return Promise.resolve(
692
- g ? {} : o.fn(p, u, l)
692
+ g ? {} : o.fn(u, p, l)
693
693
  ).then((b) => {
694
694
  n[c.id] = b;
695
695
  });
@@ -829,19 +829,19 @@ const Oe = (i, t, e) => {
829
829
  const r = t[i[s].id] || "default", o = i[s].getChildren(r);
830
830
  Oe(o, t, e);
831
831
  }
832
- }, Et = (i, t, e) => {
832
+ }, xt = (i, t, e) => {
833
833
  if (e(i) !== !0) {
834
834
  const s = t[i.id] || "default", n = i.children[s];
835
835
  Oe(n, t, e);
836
836
  }
837
- }, pt = (i, t) => {
837
+ }, ut = (i, t) => {
838
838
  const e = [];
839
- return Et(i, t, (s) => {
839
+ return xt(i, t, (s) => {
840
840
  e.push(s);
841
841
  }), e;
842
842
  }, Se = (i, t, e) => {
843
843
  let s;
844
- return Et(i, t, (n) => {
844
+ return xt(i, t, (n) => {
845
845
  if (e(n))
846
846
  return s = n, !0;
847
847
  }), s;
@@ -851,24 +851,24 @@ let ns = class {
851
851
  this.root = t, this.switches = e, this.all = [], this.visible = [], this.detached = [], s.subscribe(
852
852
  "components:node-appended",
853
853
  (n, r) => {
854
- this.all.push(r.node), this.visible = pt(t, e);
854
+ this.all.push(r.node), this.visible = ut(t, e);
855
855
  }
856
856
  ), s.subscribe(
857
857
  "components:node-removed",
858
858
  (n, r) => {
859
859
  let o = this.all.indexOf(r.node);
860
- o > -1 && this.all.splice(o, 1), o = this.visible.indexOf(r.node), o > -1 && this.visible.splice(o, 1), this.visible = pt(t, e);
860
+ o > -1 && this.all.splice(o, 1), o = this.visible.indexOf(r.node), o > -1 && this.visible.splice(o, 1), this.visible = ut(t, e);
861
861
  }
862
862
  ), s.subscribe(
863
863
  "components:node-switched",
864
864
  (n, r) => {
865
- this.visible = pt(t, e);
865
+ this.visible = ut(t, e);
866
866
  }
867
867
  );
868
868
  }
869
869
  query(t = {}) {
870
870
  const e = [];
871
- return Et(this.root, this.switches, (s) => {
871
+ return xt(this.root, this.switches, (s) => {
872
872
  Object.keys(t).every((n) => t[n] === s[n]) && e.push(s);
873
873
  }), e;
874
874
  }
@@ -894,14 +894,14 @@ const os = (i) => {
894
894
  return e;
895
895
  }, as = (i) => i.map(
896
896
  ([t, e]) => [os(t), t, e]
897
- ).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), Lt = (i) => i instanceof Date ? !1 : i && typeof i == "object" && !Array.isArray(i), x = (i, ...t) => {
897
+ ).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), Dt = (i) => i instanceof Date ? !1 : i && typeof i == "object" && !Array.isArray(i), E = (i, ...t) => {
898
898
  if (!t.length)
899
899
  return i;
900
900
  const e = t.shift();
901
- if (Lt(i) && Lt(e))
901
+ if (Dt(i) && Dt(e))
902
902
  for (const s in e)
903
- Lt(e[s]) ? (i[s] || Object.assign(i, { [s]: {} }), x(i[s], e[s])) : Object.assign(i, { [s]: e[s] });
904
- return x(i, ...t);
903
+ Dt(e[s]) ? (i[s] || Object.assign(i, { [s]: {} }), E(i[s], e[s])) : Object.assign(i, { [s]: e[s] });
904
+ return E(i, ...t);
905
905
  }, cs = (i, t) => !i || i === "all" ? !0 : i.some((e) => t.indexOf(e) > -1), hs = (i, t) => {
906
906
  let e = [], s = [], n;
907
907
  const r = () => {
@@ -909,33 +909,33 @@ const os = (i) => {
909
909
  const a = /* @__PURE__ */ new Map(), h = as(
910
910
  e.map((l, d) => [l, s[d]])
911
911
  ), c = (l, d) => {
912
- var p;
913
- const u = a.get(l) || {}, g = d.context && !u.context, b = d.properties && !u.properties, A = d.layout && !u.layout;
912
+ var u;
913
+ const p = a.get(l) || {}, g = d.context && !p.context, b = d.properties && !p.properties, A = d.layout && !p.layout;
914
914
  a.set(l, {
915
- context: u.context || g,
916
- properties: u.properties || b,
917
- layout: u.layout || A
918
- }), b && (l.attributes.properties = {}), A && (l.attributes.layout = {}), g && (l.attributes.context = x(
915
+ context: p.context || g,
916
+ properties: p.properties || b,
917
+ layout: p.layout || A
918
+ }), b && (l.attributes.properties = {}), A && (l.attributes.layout = {}), g && (l.attributes.context = E(
919
919
  {},
920
- (p = l.parent) == null ? void 0 : p.attributes.context
920
+ (u = l.parent) == null ? void 0 : u.attributes.context
921
921
  ));
922
922
  const at = [], St = [], Pt = [];
923
923
  if (l.changesets.forEach((w) => {
924
924
  const [$, kt] = w;
925
925
  cs(kt.breakpoints, i.breakpoints) && (b && (typeof $.properties == "function" ? at.push(
926
926
  $.properties
927
- ) : x(l.attributes.properties, $.properties)), A && (typeof $.layout == "function" ? St.push($.layout) : x(l.attributes.layout, $.layout)), g && (typeof $.context == "function" ? Pt.push(
927
+ ) : E(l.attributes.properties, $.properties)), A && (typeof $.layout == "function" ? St.push($.layout) : E(l.attributes.layout, $.layout)), g && (typeof $.context == "function" ? Pt.push(
928
928
  $.context
929
- ) : x(l.attributes.context, $.context)));
929
+ ) : E(l.attributes.context, $.context)));
930
930
  }), at.forEach((w) => {
931
- x(
931
+ E(
932
932
  l.attributes.properties,
933
933
  w(l.attributes.properties)
934
934
  );
935
935
  }), St.forEach((w) => {
936
- x(l.attributes.layout, w(l.attributes.layout));
936
+ E(l.attributes.layout, w(l.attributes.layout));
937
937
  }), Pt.forEach((w) => {
938
- x(l.attributes.context, w(l.attributes.context));
938
+ E(l.attributes.context, w(l.attributes.context));
939
939
  }), g || d.recursive) {
940
940
  const w = i.getBranch(l), $ = d.recursive ? d : {
941
941
  context: !!g
@@ -991,8 +991,8 @@ class nt {
991
991
  (r, o) => {
992
992
  const { node: a } = o;
993
993
  this.changesets.forEach((h) => {
994
- const { changeset: c, target: l, removes: d } = h, [p, u] = c;
995
- l.match(o.node) && (p.properties && d.push(a.writeProperties(p.properties, u)), p.context && d.push(a.writeContext(p.context, u)), p.layout && d.push(a.writeLayout(p.layout, u)));
994
+ const { changeset: c, target: l, removes: d } = h, [u, p] = c;
995
+ l.match(o.node) && (u.properties && d.push(a.writeProperties(u.properties, p)), u.context && d.push(a.writeContext(u.context, p)), u.layout && d.push(a.writeLayout(u.layout, p)));
996
996
  });
997
997
  }
998
998
  )
@@ -1192,8 +1192,8 @@ const ls = (i) => {
1192
1192
  }
1193
1193
  const l = i.createNode(c.type);
1194
1194
  l.name = a.definitionId, l.tags = c.tags || [], c.properties && l.writeProperties(c.properties), c.context && l.writeContext(c.context), c.layout && l.writeLayout(c.layout), t.appendChild(l, r), a.overrides.forEach((d) => {
1195
- const p = { breakpoints: d.breakpoints };
1196
- d.properties && l.writeProperties(d.properties, p), d.context && l.writeContext(d.context, p), d.layout && l.writeLayout(d.layout, p);
1195
+ const u = { breakpoints: d.breakpoints };
1196
+ d.properties && l.writeProperties(d.properties, u), d.context && l.writeContext(d.context, u), d.layout && l.writeLayout(d.layout, u);
1197
1197
  }), c.children && yt(
1198
1198
  i,
1199
1199
  l,
@@ -1235,9 +1235,9 @@ const ls = (i) => {
1235
1235
  "components:node-enter",
1236
1236
  (c, { node: l }) => {
1237
1237
  o.match(l) && h(l).then((d) => {
1238
- Promise.resolve(e(d)).then((p) => {
1238
+ Promise.resolve(e(d)).then((u) => {
1239
1239
  a[l.id] = {
1240
- dispose: p,
1240
+ dispose: u,
1241
1241
  controller: d
1242
1242
  };
1243
1243
  });
@@ -1303,8 +1303,8 @@ const Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1303
1303
  createEventSubscriber: Ce,
1304
1304
  extendComponent: ke,
1305
1305
  findComponent: Se,
1306
- findVisibleComponents: pt,
1307
- traverseComponents: Et
1306
+ findVisibleComponents: ut,
1307
+ traverseComponents: xt
1308
1308
  }, Symbol.toStringTag, { value: "Module" }));
1309
1309
  var f = /* @__PURE__ */ ((i) => (i.Cookie = "cookie", i.Local = "local", i.Session = "session", i))(f || {}), q = /* @__PURE__ */ ((i) => (i.Tenant = "tenant", i.Implementation = "implementation", i.Widget = "widget", i))(q || {}), m = /* @__PURE__ */ ((i) => (i.Necessary = "necessary", i.Functional = "functional", i.Analytical = "analytical", i.Marketing = "marketing", i))(m || {});
1310
1310
  const S = (i, t, e, s = {}) => ce(i, e).then((n) => (process.env.NODE_ENV !== "production" && n && v.warn(
@@ -1327,7 +1327,7 @@ const S = (i, t, e, s = {}) => ce(i, e).then((n) => (process.env.NODE_ENV !== "p
1327
1327
  scope: a = q.Widget,
1328
1328
  medium: h = f.Session,
1329
1329
  duration: c
1330
- } = s, l = us();
1330
+ } = s, l = ps();
1331
1331
  return l[a][t] = Yt(r, e, c), h === f.Cookie ? ys(i, l) : bs(i, h, l);
1332
1332
  })))), C = (i, t, e = f.Session) => (Zt(i), typeof t > "u" ? (process.env.NODE_ENV !== "production" && v.warn(
1333
1333
  "readStorage: Undefined key passed when reading storage. ",
@@ -1335,7 +1335,7 @@ const S = (i, t, e, s = {}) => ce(i, e).then((n) => (process.env.NODE_ENV !== "p
1335
1335
  e
1336
1336
  ), Promise.resolve(void 0)) : e === f.Cookie ? fs(i).then((s) => bt(s, t)) : vs(i, e).then(
1337
1337
  (s) => bt(s, t)
1338
- )), z = (i) => !!Object.entries(i).filter(([t, e]) => typeof e < "u").length, Dt = (i) => Object.entries(i).filter(([t, e]) => typeof e < "u").forEach(([t, { value: e }]) => {
1338
+ )), z = (i) => !!Object.entries(i).filter(([t, e]) => typeof e < "u").length, Lt = (i) => Object.entries(i).filter(([t, e]) => typeof e < "u").forEach(([t, { value: e }]) => {
1339
1339
  typeof e > "u" && delete i[t];
1340
1340
  }), Ne = (i, t) => {
1341
1341
  const e = {
@@ -1343,8 +1343,8 @@ const S = (i, t, e, s = {}) => ce(i, e).then((n) => (process.env.NODE_ENV !== "p
1343
1343
  implementation: { ...i.implementation, ...t.implementation },
1344
1344
  widget: { ...i.widget, ...t.widget }
1345
1345
  };
1346
- return Dt(e.tenant), Dt(e.implementation), Dt(e.widget), e;
1347
- }, ps = (i) => Object.entries(i).reduce(
1346
+ return Lt(e.tenant), Lt(e.implementation), Lt(e.widget), e;
1347
+ }, us = (i) => Object.entries(i).reduce(
1348
1348
  (t, e) => {
1349
1349
  const [s, n] = e;
1350
1350
  return Object.entries(n).forEach((r) => {
@@ -1353,7 +1353,7 @@ const S = (i, t, e, s = {}) => ce(i, e).then((n) => (process.env.NODE_ENV !== "p
1353
1353
  }), t;
1354
1354
  },
1355
1355
  []
1356
- ).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() || Ct(), xt = (i) => {
1356
+ ).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() || Ct(), Et = (i) => {
1357
1357
  const {
1358
1358
  name: t,
1359
1359
  implementation: { name: e, tenant: s }
@@ -1370,14 +1370,14 @@ const S = (i, t, e, s = {}) => ce(i, e).then((n) => (process.env.NODE_ENV !== "p
1370
1370
  const s = `${i}=${JSON.stringify(t).trim()}`, n = `expires=${new Date(e).toUTCString()}`, r = "path=/", o = "SameSite=None;Secure";
1371
1371
  return document.cookie = `${s}; ${n}; ${r}; ${o}`;
1372
1372
  }, Gt = (i) => {
1373
- const [t, e, s] = xt(i), n = It(t) || {}, r = It(e) || {}, o = It(s) || {};
1373
+ const [t, e, s] = Et(i), n = It(t) || {}, r = It(e) || {}, o = It(s) || {};
1374
1374
  return {
1375
1375
  tenant: n,
1376
1376
  implementation: r,
1377
1377
  widget: o
1378
1378
  };
1379
1379
  }, Me = (i, t) => {
1380
- const e = Gt(i), s = Ne(e, t), [n, r, o] = xt(i), { tenant: a, implementation: h, widget: c } = s, l = ps(t), d = Ct({ days: -1 });
1380
+ const e = Gt(i), s = Ne(e, t), [n, r, o] = Et(i), { tenant: a, implementation: h, widget: c } = s, l = us(t), d = Ct({ days: -1 });
1381
1381
  Rt(
1382
1382
  n,
1383
1383
  a,
@@ -1392,21 +1392,21 @@ const S = (i, t, e, s = {}) => ce(i, e).then((n) => (process.env.NODE_ENV !== "p
1392
1392
  z(c) ? l : d
1393
1393
  );
1394
1394
  }, vt = (i, t) => {
1395
- const [e, s, n] = xt(i), r = t.getItem(e) || "{}", o = t.getItem(s) || "{}", a = t.getItem(n) || "{}";
1395
+ const [e, s, n] = Et(i), r = t.getItem(e) || "{}", o = t.getItem(s) || "{}", a = t.getItem(n) || "{}";
1396
1396
  return {
1397
1397
  tenant: JSON.parse(r),
1398
1398
  implementation: JSON.parse(o),
1399
1399
  widget: JSON.parse(a)
1400
1400
  };
1401
1401
  }, qt = (i, t, e) => {
1402
- const s = vt(i, t), n = Ne(s, e), [r, o, a] = xt(i), { tenant: h, implementation: c, widget: l } = n;
1402
+ const s = vt(i, t), n = Ne(s, e), [r, o, a] = Et(i), { tenant: h, implementation: c, widget: l } = n;
1403
1403
  z(h) ? t.setItem(r, JSON.stringify(h)) : t.removeItem(r), z(c) ? t.setItem(
1404
1404
  o,
1405
1405
  JSON.stringify(c)
1406
1406
  ) : t.removeItem(o), z(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);
1407
1407
  const { events: d } = i.get("$widget");
1408
1408
  d.dispatch("storage:changed", {});
1409
- }, us = () => ({
1409
+ }, ps = () => ({
1410
1410
  tenant: {},
1411
1411
  implementation: {},
1412
1412
  widget: {}
@@ -1420,8 +1420,8 @@ const S = (i, t, e, s = {}) => ce(i, e).then((n) => (process.env.NODE_ENV !== "p
1420
1420
  } : {
1421
1421
  value: i,
1422
1422
  category: t
1423
- }, ut = (i, t) => {
1424
- const e = xe(i);
1423
+ }, pt = (i, t) => {
1424
+ const e = Ee(i);
1425
1425
  return Object.entries(e).forEach(([s, n]) => {
1426
1426
  Object.entries(n).forEach(([r, o]) => {
1427
1427
  const { expiration: a, category: h } = o;
@@ -1439,17 +1439,17 @@ const S = (i, t, e, s = {}) => ce(i, e).then((n) => (process.env.NODE_ENV !== "p
1439
1439
  t,
1440
1440
  e,
1441
1441
  s
1442
- ].map((h) => ut(h, n));
1442
+ ].map((h) => pt(h, n));
1443
1443
  Me(i, r), qt(i, window.localStorage, o), qt(i, window.sessionStorage, a);
1444
1444
  }, Ct = (i = { days: 30 }) => {
1445
1445
  const { days: t = 0, hours: e = 0, minutes: s = 0, seconds: n = 0 } = i, r = /* @__PURE__ */ new Date();
1446
1446
  return r.setTime(r.getTime() + e * 60 * 60 * 1e3), r.setTime(r.getTime() + t * 24 * 60 * 60 * 1e3), r.setTime(r.getTime() + s * 60 * 1e3), r.setTime(r.getTime() + n * 1e3), r.toISOString();
1447
- }, fs = (i) => E(document)(() => Gt(i)), ys = (i, t) => E(document)(() => Me(i, t)), vs = (i, t) => {
1447
+ }, fs = (i) => x(document)(() => Gt(i)), ys = (i, t) => x(document)(() => Me(i, t)), vs = (i, t) => {
1448
1448
  const e = t === f.Local ? window.localStorage : window.sessionStorage;
1449
- return E(e)(() => vt(i, e));
1449
+ return x(e)(() => vt(i, e));
1450
1450
  }, bs = (i, t, e) => {
1451
1451
  const s = t === f.Local ? window.localStorage : window.sessionStorage;
1452
- return E(s)(() => qt(i, s, e));
1452
+ return x(s)(() => qt(i, s, e));
1453
1453
  };
1454
1454
  let gt = class {
1455
1455
  constructor() {
@@ -1460,8 +1460,8 @@ let gt = class {
1460
1460
  };
1461
1461
  }
1462
1462
  async setItem(t, e, s = {}) {
1463
- return E(this)(() => {
1464
- const n = ut(this.memory, [
1463
+ return x(this)(() => {
1464
+ const n = pt(this.memory, [
1465
1465
  m.Necessary
1466
1466
  ]), { scope: r = q.Tenant, expiration: o } = s;
1467
1467
  n[r][t] = Yt(
@@ -1478,8 +1478,8 @@ let gt = class {
1478
1478
  });
1479
1479
  }
1480
1480
  async getItem(t) {
1481
- return E(this)(() => {
1482
- const e = ut(this.memory, [
1481
+ return x(this)(() => {
1482
+ const e = pt(this.memory, [
1483
1483
  m.Necessary
1484
1484
  ]);
1485
1485
  process.env.NODE_ENV !== "production" && v.warn(
@@ -1492,8 +1492,8 @@ let gt = class {
1492
1492
  });
1493
1493
  }
1494
1494
  async removeItem(t) {
1495
- return E(this)(() => {
1496
- const e = ut(this.memory, [
1495
+ return x(this)(() => {
1496
+ const e = pt(this.memory, [
1497
1497
  m.Necessary
1498
1498
  ]);
1499
1499
  delete e.tenant[t], delete e.implementation[t], delete e.widget[t], this.memory = e, process.env.NODE_ENV !== "production" && v.warn(
@@ -1589,17 +1589,17 @@ function As(i, t) {
1589
1589
  } = t;
1590
1590
  return i.classList.add("ace-widget-trigger"), i.classList.add(`ace-widget_${e}`), s.length && i.classList.add("trigger-has-text"), n.length && !i.getAttribute("aria-label") && i.setAttribute("aria-label", n), n.length && !i.getAttribute("tabindex") && i.setAttribute("tabindex", "0"), r.length && !i.getAttribute("title") && i.setAttribute("title", r), _s(i);
1591
1591
  }
1592
- function Es(i, t) {
1592
+ function xs(i, t) {
1593
1593
  i instanceof HTMLElement ? (t && i.setAttribute("title", t), i.classList.remove("ace-trigger-active"), i.classList.remove("ace-trigger-loading")) : i instanceof Array && i.forEach((e) => {
1594
1594
  t && e.setAttribute("title", t), e.classList.remove("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
1595
1595
  });
1596
1596
  }
1597
- function xs(i) {
1597
+ function Es(i) {
1598
1598
  i instanceof HTMLElement ? (i.classList.remove("ace-trigger-active"), i.classList.add("ace-trigger-loading")) : i instanceof Array && i.forEach((t) => {
1599
1599
  t.classList.remove("ace-trigger-active"), t.classList.add("ace-trigger-loading");
1600
1600
  });
1601
1601
  }
1602
- function Le(i, t) {
1602
+ function De(i, t) {
1603
1603
  i instanceof HTMLElement ? (t && i.setAttribute("title", t), i.classList.add("ace-trigger-active"), i.classList.remove("ace-trigger-loading")) : i instanceof Array && i.forEach((e) => {
1604
1604
  t && e.setAttribute("title", t), e.classList.add("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
1605
1605
  });
@@ -1610,7 +1610,7 @@ function Le(i, t) {
1610
1610
  * SPDX-License-Identifier: BSD-3-Clause
1611
1611
  */
1612
1612
  const mt = globalThis, Qt = mt.ShadowRoot && (mt.ShadyCSS === void 0 || mt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Xt = Symbol(), he = /* @__PURE__ */ new WeakMap();
1613
- let De = class {
1613
+ let Le = class {
1614
1614
  constructor(t, e, s) {
1615
1615
  if (this._$cssResult$ = !0, s !== Xt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1616
1616
  this.cssText = t, this.t = e;
@@ -1628,13 +1628,13 @@ let De = class {
1628
1628
  return this.cssText;
1629
1629
  }
1630
1630
  };
1631
- const Cs = (i) => new De(typeof i == "string" ? i : i + "", void 0, Xt), Ie = (i, ...t) => {
1631
+ const Cs = (i) => new Le(typeof i == "string" ? i : i + "", void 0, Xt), Ie = (i, ...t) => {
1632
1632
  const e = i.length === 1 ? i[0] : t.reduce((s, n, r) => s + ((o) => {
1633
1633
  if (o._$cssResult$ === !0) return o.cssText;
1634
1634
  if (typeof o == "number") return o;
1635
1635
  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.");
1636
1636
  })(n) + i[r + 1], i[0]);
1637
- return new De(e, i, Xt);
1637
+ return new Le(e, i, Xt);
1638
1638
  }, Os = (i, t) => {
1639
1639
  if (Qt) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
1640
1640
  else for (const e of t) {
@@ -1651,10 +1651,10 @@ const Cs = (i) => new De(typeof i == "string" ? i : i + "", void 0, Xt), Ie = (i
1651
1651
  * Copyright 2017 Google LLC
1652
1652
  * SPDX-License-Identifier: BSD-3-Clause
1653
1653
  */
1654
- const { is: Ss, defineProperty: Ps, getOwnPropertyDescriptor: ks, getOwnPropertyNames: Ns, getOwnPropertySymbols: Ms, getPrototypeOf: Ls } = Object, M = globalThis, de = M.trustedTypes, Ds = de ? de.emptyScript : "", Tt = M.reactiveElementPolyfillSupport, G = (i, t) => i, wt = { toAttribute(i, t) {
1654
+ const { is: Ss, defineProperty: Ps, getOwnPropertyDescriptor: ks, getOwnPropertyNames: Ns, getOwnPropertySymbols: Ms, getPrototypeOf: Ds } = Object, M = globalThis, de = M.trustedTypes, Ls = de ? de.emptyScript : "", Tt = M.reactiveElementPolyfillSupport, G = (i, t) => i, wt = { toAttribute(i, t) {
1655
1655
  switch (t) {
1656
1656
  case Boolean:
1657
- i = i ? Ds : null;
1657
+ i = i ? Ls : null;
1658
1658
  break;
1659
1659
  case Object:
1660
1660
  case Array:
@@ -1679,7 +1679,7 @@ const { is: Ss, defineProperty: Ps, getOwnPropertyDescriptor: ks, getOwnProperty
1679
1679
  }
1680
1680
  }
1681
1681
  return e;
1682
- } }, te = (i, t) => !Ss(i, t), pe = { attribute: !0, type: String, converter: wt, reflect: !1, hasChanged: te };
1682
+ } }, te = (i, t) => !Ss(i, t), ue = { attribute: !0, type: String, converter: wt, reflect: !1, hasChanged: te };
1683
1683
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), M.litPropertyMetadata ?? (M.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1684
1684
  class H extends HTMLElement {
1685
1685
  static addInitializer(t) {
@@ -1688,7 +1688,7 @@ class H extends HTMLElement {
1688
1688
  static get observedAttributes() {
1689
1689
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
1690
1690
  }
1691
- static createProperty(t, e = pe) {
1691
+ static createProperty(t, e = ue) {
1692
1692
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
1693
1693
  const s = Symbol(), n = this.getPropertyDescriptor(t, s, e);
1694
1694
  n !== void 0 && Ps(this.prototype, t, n);
@@ -1708,11 +1708,11 @@ class H extends HTMLElement {
1708
1708
  }, configurable: !0, enumerable: !0 };
1709
1709
  }
1710
1710
  static getPropertyOptions(t) {
1711
- return this.elementProperties.get(t) ?? pe;
1711
+ return this.elementProperties.get(t) ?? ue;
1712
1712
  }
1713
1713
  static _$Ei() {
1714
1714
  if (this.hasOwnProperty(G("elementProperties"))) return;
1715
- const t = Ls(this);
1715
+ const t = Ds(this);
1716
1716
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
1717
1717
  }
1718
1718
  static finalize() {
@@ -1885,22 +1885,22 @@ H.elementStyles = [], H.shadowRootOptions = { mode: "open" }, H[G("elementProper
1885
1885
  * Copyright 2017 Google LLC
1886
1886
  * SPDX-License-Identifier: BSD-3-Clause
1887
1887
  */
1888
- const Y = globalThis, $t = Y.trustedTypes, ue = $t ? $t.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Re = "$lit$", P = `lit$${Math.random().toFixed(9).slice(2)}$`, Te = "?" + P, Is = `<${Te}>`, j = document, X = () => j.createComment(""), tt = (i) => i === null || typeof i != "object" && typeof i != "function", ee = Array.isArray, Rs = (i) => ee(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Ut = `[
1889
- \f\r]`, J = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ge = /-->/g, me = />/g, D = RegExp(`>|${Ut}(?:([^\\s"'>=/]+)(${Ut}*=${Ut}*(?:[^
1888
+ const Y = globalThis, $t = Y.trustedTypes, pe = $t ? $t.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Re = "$lit$", P = `lit$${Math.random().toFixed(9).slice(2)}$`, Te = "?" + P, Is = `<${Te}>`, j = document, X = () => j.createComment(""), tt = (i) => i === null || typeof i != "object" && typeof i != "function", ee = Array.isArray, Rs = (i) => ee(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Ut = `[
1889
+ \f\r]`, J = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ge = /-->/g, me = />/g, L = RegExp(`>|${Ut}(?:([^\\s"'>=/]+)(${Ut}*=${Ut}*(?:[^
1890
1890
  \f\r"'\`<>=]|("|')|))|$)`, "g"), fe = /'/g, ye = /"/g, Ue = /^(?:script|style|textarea|title)$/i, Ts = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), ht = Ts(1), V = Symbol.for("lit-noChange"), y = Symbol.for("lit-nothing"), ve = /* @__PURE__ */ new WeakMap(), T = j.createTreeWalker(j, 129);
1891
1891
  function je(i, t) {
1892
1892
  if (!ee(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
1893
- return ue !== void 0 ? ue.createHTML(t) : t;
1893
+ return pe !== void 0 ? pe.createHTML(t) : t;
1894
1894
  }
1895
1895
  const Us = (i, t) => {
1896
1896
  const e = i.length - 1, s = [];
1897
1897
  let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = J;
1898
1898
  for (let a = 0; a < e; a++) {
1899
1899
  const h = i[a];
1900
- let c, l, d = -1, p = 0;
1901
- for (; p < h.length && (o.lastIndex = p, l = o.exec(h), l !== null); ) p = o.lastIndex, o === J ? l[1] === "!--" ? o = ge : l[1] !== void 0 ? o = me : l[2] !== void 0 ? (Ue.test(l[2]) && (n = RegExp("</" + l[2], "g")), o = D) : l[3] !== void 0 && (o = D) : o === D ? l[0] === ">" ? (o = n ?? J, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, c = l[1], o = l[3] === void 0 ? D : l[3] === '"' ? ye : fe) : o === ye || o === fe ? o = D : o === ge || o === me ? o = J : (o = D, n = void 0);
1902
- const u = o === D && i[a + 1].startsWith("/>") ? " " : "";
1903
- r += o === J ? h + Is : d >= 0 ? (s.push(c), h.slice(0, d) + Re + h.slice(d) + P + u) : h + P + (d === -2 ? a : u);
1900
+ let c, l, d = -1, u = 0;
1901
+ for (; u < h.length && (o.lastIndex = u, l = o.exec(h), l !== null); ) u = o.lastIndex, o === J ? l[1] === "!--" ? o = ge : l[1] !== void 0 ? o = me : l[2] !== void 0 ? (Ue.test(l[2]) && (n = RegExp("</" + l[2], "g")), o = L) : l[3] !== void 0 && (o = L) : o === L ? l[0] === ">" ? (o = n ?? J, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, c = l[1], o = l[3] === void 0 ? L : l[3] === '"' ? ye : fe) : o === ye || o === fe ? o = L : o === ge || o === me ? o = J : (o = L, n = void 0);
1902
+ const p = o === L && i[a + 1].startsWith("/>") ? " " : "";
1903
+ r += o === J ? h + Is : d >= 0 ? (s.push(c), h.slice(0, d) + Re + h.slice(d) + P + p) : h + P + (d === -2 ? a : p);
1904
1904
  }
1905
1905
  return [je(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
1906
1906
  };
@@ -1917,15 +1917,15 @@ class et {
1917
1917
  for (; (n = T.nextNode()) !== null && h.length < a; ) {
1918
1918
  if (n.nodeType === 1) {
1919
1919
  if (n.hasAttributes()) for (const d of n.getAttributeNames()) if (d.endsWith(Re)) {
1920
- const p = l[o++], u = n.getAttribute(d).split(P), g = /([.?@])?(.*)/.exec(p);
1921
- h.push({ type: 1, index: r, name: g[2], strings: u, ctor: g[1] === "." ? Vs : g[1] === "?" ? Hs : g[1] === "@" ? zs : Ot }), n.removeAttribute(d);
1920
+ const u = l[o++], p = n.getAttribute(d).split(P), g = /([.?@])?(.*)/.exec(u);
1921
+ h.push({ type: 1, index: r, name: g[2], strings: p, ctor: g[1] === "." ? Vs : g[1] === "?" ? Hs : g[1] === "@" ? zs : Ot }), n.removeAttribute(d);
1922
1922
  } else d.startsWith(P) && (h.push({ type: 6, index: r }), n.removeAttribute(d));
1923
1923
  if (Ue.test(n.tagName)) {
1924
- const d = n.textContent.split(P), p = d.length - 1;
1925
- if (p > 0) {
1924
+ const d = n.textContent.split(P), u = d.length - 1;
1925
+ if (u > 0) {
1926
1926
  n.textContent = $t ? $t.emptyScript : "";
1927
- for (let u = 0; u < p; u++) n.append(d[u], X()), T.nextNode(), h.push({ type: 2, index: ++r });
1928
- n.append(d[p], X());
1927
+ for (let p = 0; p < u; p++) n.append(d[p], X()), T.nextNode(), h.push({ type: 2, index: ++r });
1928
+ n.append(d[u], X());
1929
1929
  }
1930
1930
  }
1931
1931
  } else if (n.nodeType === 8) if (n.data === Te) h.push({ type: 2, index: r });
@@ -2196,7 +2196,7 @@ function k(i) {
2196
2196
  * Copyright 2017 Google LLC
2197
2197
  * SPDX-License-Identifier: BSD-3-Clause
2198
2198
  */
2199
- const Fs = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ks = (i) => (...t) => ({ _$litDirective$: i, values: t });
2199
+ const Fs = { ATTRIBUTE: 1, CHILD: 2 }, Ks = (i) => (...t) => ({ _$litDirective$: i, values: t });
2200
2200
  let Gs = class {
2201
2201
  constructor(t) {
2202
2202
  }
@@ -2413,22 +2413,22 @@ ie.styles = [
2413
2413
  }
2414
2414
  `
2415
2415
  ];
2416
- let L = ie;
2416
+ let D = ie;
2417
2417
  ot([
2418
2418
  st({ attribute: !1 })
2419
- ], L.prototype, "symbol");
2419
+ ], D.prototype, "symbol");
2420
2420
  ot([
2421
2421
  st({ attribute: !1 })
2422
- ], L.prototype, "container");
2422
+ ], D.prototype, "container");
2423
2423
  ot([
2424
2424
  k()
2425
- ], L.prototype, "active");
2425
+ ], D.prototype, "active");
2426
2426
  ot([
2427
2427
  k()
2428
- ], L.prototype, "loaded");
2428
+ ], D.prototype, "loaded");
2429
2429
  ot([
2430
2430
  k()
2431
- ], L.prototype, "icon");
2431
+ ], D.prototype, "icon");
2432
2432
  var U = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Link = "link", i.Badge = "badge", i.Unsupported = "unsupported", i))(U || {});
2433
2433
  const Xs = (i, t) => i && t ? "both" : i ? "widgetDOM" : t ? "triggerDOM" : "none", Ve = (i) => i ? typeof i == "boolean" && i ? "link" : typeof i == "object" && !Array.isArray(i) ? "badge" : "unsupported" : "inline", ti = async (i, t, e, s, n, r = !1) => {
2434
2434
  var l, d;
@@ -2450,35 +2450,35 @@ const Xs = (i, t) => i && t ? "both" : i ? "widgetDOM" : t ? "triggerDOM" : "non
2450
2450
  }
2451
2451
  case "widgetDOM": {
2452
2452
  if (c.widgetDOMElement = e || document.createElement("div"), a !== "inline") {
2453
- const p = document.body.appendChild(
2453
+ const u = document.body.appendChild(
2454
2454
  document.createElement("a")
2455
2455
  );
2456
- a === "link" && (p.innerText = t), c.triggerDOMElement = p;
2456
+ a === "link" && (u.innerText = t), c.triggerDOMElement = u;
2457
2457
  }
2458
2458
  break;
2459
2459
  }
2460
2460
  case "triggerDOM": {
2461
- const p = document.createElement("div");
2462
- c.widgetDOMElement = p, a === "inline" ? (p.id = (s == null ? void 0 : s.id) || "", r ? (p.style.display = "none", (l = s == null ? void 0 : s.parentNode) == null || l.appendChild(p), c.callback = () => {
2463
- var u;
2464
- (u = s == null ? void 0 : s.parentNode) == null || u.replaceChild(
2465
- p,
2461
+ const u = document.createElement("div");
2462
+ c.widgetDOMElement = u, a === "inline" ? (u.id = (s == null ? void 0 : s.id) || "", r ? (u.style.display = "none", (l = s == null ? void 0 : s.parentNode) == null || l.appendChild(u), c.callback = () => {
2463
+ var p;
2464
+ (p = s == null ? void 0 : s.parentNode) == null || p.replaceChild(
2465
+ u,
2466
2466
  s
2467
- ), p.style.display = (s == null ? void 0 : s.style.display) || "block";
2467
+ ), u.style.display = (s == null ? void 0 : s.style.display) || "block";
2468
2468
  }) : (d = s == null ? void 0 : s.parentNode) == null || d.replaceChild(
2469
- p,
2469
+ u,
2470
2470
  s
2471
- ), c.cachedOriginals.widgetDOMElement = s, c.cachedOriginals.triggerDOMElement = void 0) : (c.widgetDOMElement = document.body.appendChild(p), c.triggerDOMElement = s);
2471
+ ), c.cachedOriginals.widgetDOMElement = s, c.cachedOriginals.triggerDOMElement = void 0) : (c.widgetDOMElement = document.body.appendChild(u), c.triggerDOMElement = s);
2472
2472
  break;
2473
2473
  }
2474
2474
  case "none": {
2475
- const p = document.body.appendChild(
2475
+ const u = document.body.appendChild(
2476
2476
  document.createElement("div")
2477
2477
  );
2478
- if (c.widgetDOMElement = p, a !== "inline") {
2479
- customElements.get("ace-widget-trigger") || customElements.define("ace-widget-trigger", L);
2480
- const u = document.createElement("ace-widget-trigger");
2481
- u.symbol = n.symbol, u.container = i, document.body.appendChild(u), console.log("Created trigger"), c.triggerDOMElement = u;
2478
+ if (c.widgetDOMElement = u, a !== "inline") {
2479
+ customElements.get("ace-widget-trigger") || customElements.define("ace-widget-trigger", D);
2480
+ const p = document.createElement("ace-widget-trigger");
2481
+ p.symbol = n.symbol, p.container = i, document.body.appendChild(p), console.log("Created trigger"), c.triggerDOMElement = p;
2482
2482
  }
2483
2483
  break;
2484
2484
  }
@@ -2504,10 +2504,10 @@ class si {
2504
2504
  */
2505
2505
  render() {
2506
2506
  const { widgetDOMElement: t, triggerDOMElement: e } = this.options, s = this.container.get("$widget");
2507
- return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === U.Badge && xs(e), import("./render-DPn5L-ek.mjs").then((n) => n.default(this.container, t)).then(() => {
2507
+ return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === U.Badge && Es(e), import("./render-DUlmO95v.mjs").then((n) => n.default(this.container, t)).then(() => {
2508
2508
  if (t.setAttribute("data-rendered", "true"), e && this.options.triggerType === U.Badge) {
2509
2509
  const r = this.options.triggerOptions.openTooltip;
2510
- Le(e, r);
2510
+ De(e, r);
2511
2511
  }
2512
2512
  ts(this.container, t);
2513
2513
  const n = this.container.get("$environment").widgets.all();
@@ -2533,7 +2533,6 @@ class si {
2533
2533
  this.options.triggerOptions = c;
2534
2534
  const l = As(e, {
2535
2535
  label: n,
2536
- symbol: r,
2537
2536
  ariaLabel: o,
2538
2537
  widgetName: s,
2539
2538
  tooltip: a
@@ -2575,7 +2574,7 @@ class se {
2575
2574
  );
2576
2575
  }
2577
2576
  write(t, e, s, n) {
2578
- return E(this)(() => C(
2577
+ return x(this)(() => C(
2579
2578
  this.container,
2580
2579
  dt,
2581
2580
  f.Local
@@ -2589,7 +2588,7 @@ class se {
2589
2588
  }));
2590
2589
  }
2591
2590
  remove(t) {
2592
- return E(this)(() => C(
2591
+ return x(this)(() => C(
2593
2592
  this.container,
2594
2593
  dt,
2595
2594
  f.Local
@@ -2600,7 +2599,7 @@ class se {
2600
2599
  }));
2601
2600
  }
2602
2601
  load(t) {
2603
- return E(this)(() => C(
2602
+ return x(this)(() => C(
2604
2603
  this.container,
2605
2604
  dt,
2606
2605
  f.Local
@@ -2628,7 +2627,7 @@ const ni = (i) => {
2628
2627
  return i.events.subscribe(
2629
2628
  "widget:state-change",
2630
2629
  (a, h) => {
2631
- h.state === Ee.Deactivating && o();
2630
+ h.state === xe.Deactivating && o();
2632
2631
  }
2633
2632
  ), r;
2634
2633
  }
@@ -2691,7 +2690,7 @@ class Ui extends Ze {
2691
2690
  }
2692
2691
  attach(t = {}) {
2693
2692
  return this.container.get("settings").then(async ({ trigger: e }) => {
2694
- var p, u;
2693
+ var u, p;
2695
2694
  const {
2696
2695
  widgetDOMElement: s,
2697
2696
  key: n = it(),
@@ -2725,10 +2724,10 @@ class Ui extends Ze {
2725
2724
  );
2726
2725
  });
2727
2726
  const d = this.getOrCreateViewOutlet(n, c);
2728
- if (this.outlets.set(n, d), this.widget.events.dispatch("widget:attached", {}, { bubbles: !0 }), c.triggerType === U.Badge && e && ((p = c.triggerDOMElement) == null || p.setAttribute(
2727
+ if (this.outlets.set(n, d), this.widget.events.dispatch("widget:attached", {}, { bubbles: !0 }), c.triggerType === U.Badge && e && ((u = c.triggerDOMElement) == null || u.setAttribute(
2729
2728
  "aria-expanded",
2730
2729
  "false"
2731
- ), d == null || d.renderBadge(e)), c.triggerType !== U.Inline && ((u = c.triggerDOMElement) == null || u.addEventListener(
2730
+ ), d == null || d.renderBadge(e)), c.triggerType !== U.Inline && ((p = c.triggerDOMElement) == null || p.addEventListener(
2732
2731
  "click",
2733
2732
  (g) => {
2734
2733
  g.preventDefault(), this.container.get("settings").then(({ trigger: b }) => {
@@ -2939,7 +2938,7 @@ class Ui extends Ze {
2939
2938
  const {
2940
2939
  options: { triggerDOMElement: s, triggerOptions: n }
2941
2940
  } = e, { openTooltip: r, closedTooltip: o } = n || {};
2942
- s && (t ? Le(s, r) : Es(s, o));
2941
+ s && (t ? De(s, r) : xs(s, o));
2943
2942
  });
2944
2943
  }
2945
2944
  deactivate() {
@@ -3082,7 +3081,7 @@ function di({ context: i, subscribe: t }) {
3082
3081
  });
3083
3082
  };
3084
3083
  }
3085
- const pi = "children", ui = "descriptor", gi = "container", mi = "context", fi = "layout", yi = "properties";
3084
+ const ui = "children", pi = "descriptor", gi = "container", mi = "context", fi = "layout", yi = "properties";
3086
3085
  class vi {
3087
3086
  constructor(t) {
3088
3087
  (this.host = t).addController(this);
@@ -3164,7 +3163,7 @@ class $i extends wi {
3164
3163
  `${o}/guides?client=${n}&funnel=${r}&site=&phrase=&skip=0&take=10&sorting.type=popularity&sorting.direction=descending`
3165
3164
  )).json();
3166
3165
  return {
3167
- items: (d.Matches || []).map((p) => $e(p)),
3166
+ items: (d.Matches || []).map((u) => $e(u)),
3168
3167
  totalItems: (d == null ? void 0 : d.TotalMatches) || 0
3169
3168
  };
3170
3169
  }
@@ -3185,19 +3184,19 @@ const zi = async (i) => {
3185
3184
  i.style.setProperty(s.replace("css-", ""), n);
3186
3185
  });
3187
3186
  };
3188
- var Ei = Object.defineProperty, I = (i, t, e, s) => {
3187
+ var xi = Object.defineProperty, I = (i, t, e, s) => {
3189
3188
  for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
3190
3189
  (o = i[r]) && (n = o(t, e, n) || n);
3191
- return n && Ei(t, e, n), n;
3190
+ return n && xi(t, e, n), n;
3192
3191
  };
3193
3192
  const Wi = (i) => {
3194
3193
  const e = class e extends i {
3195
3194
  constructor() {
3196
3195
  super(...arguments), this.entry = "", this._descriptorProvider = new F(
3197
3196
  this,
3198
- ui,
3197
+ pi,
3199
3198
  void 0
3200
- ), this._childrenProvider = new F(this, pi, []), this._propertiesProvider = new F(this, yi, {}), this._contextProvider = new F(this, mi, {}), this._layoutProvider = new F(this, fi, {}), this.actions = new vi(this), this.context = {}, this.layout = {}, this.properties = {};
3199
+ ), this._childrenProvider = new F(this, ui, []), this._propertiesProvider = new F(this, yi, {}), this._contextProvider = new F(this, mi, {}), this._layoutProvider = new F(this, fi, {}), this.actions = new vi(this), this.context = {}, this.layout = {}, this.properties = {};
3201
3200
  }
3202
3201
  connectedCallback() {
3203
3202
  super.connectedCallback(), this.container && (this.actions.setContainer(this.container), nt.getInstance(this.container).then(
@@ -3207,23 +3206,23 @@ const Wi = (i) => {
3207
3206
  if (r) {
3208
3207
  this._propertyChangeListener = n.events.subscribe(
3209
3208
  "components:properties-changed",
3210
- (p, u) => {
3211
- r.id === u.node.id && this._setProperties(u.node.attributes.properties);
3209
+ (u, p) => {
3210
+ r.id === p.node.id && this._setProperties(p.node.attributes.properties);
3212
3211
  }
3213
3212
  ), this._contextChangeListener = n.events.subscribe(
3214
3213
  "components:context-changed",
3215
- (p, u) => {
3216
- r.id === u.node.id && this._setContext(u.node.attributes.context);
3214
+ (u, p) => {
3215
+ r.id === p.node.id && this._setContext(p.node.attributes.context);
3217
3216
  }
3218
3217
  ), this._layoutChangeListener = n.events.subscribe(
3219
3218
  "components:layout-changed",
3220
- (p, u) => {
3221
- r.id === u.node.id && this._setLayout(u.node.attributes.layout);
3219
+ (u, p) => {
3220
+ r.id === p.node.id && this._setLayout(p.node.attributes.layout);
3222
3221
  }
3223
3222
  );
3224
3223
  const h = "default";
3225
3224
  this._unmountNode = r.mount(this.container), this._setDescriptor(Wt(r, h)), this._setProperties(r.attributes.properties), this._setContext(r.attributes.context), this._setLayout(this.layout);
3226
- const c = r.getChildren(h).map((p) => Wt(p));
3225
+ const c = r.getChildren(h).map((u) => Wt(u));
3227
3226
  this._childrenProvider.setValue(c);
3228
3227
  const l = await this.container.getAsync("componentResolver");
3229
3228
  if (((o = this.descriptor) == null ? void 0 : o.type) === "area")
@@ -3231,8 +3230,8 @@ const Wi = (i) => {
3231
3230
  const d = l.getComponent(
3232
3231
  ((a = this.descriptor) == null ? void 0 : a.type) || ""
3233
3232
  );
3234
- d.then && d.then((p) => {
3235
- this.component = p.default;
3233
+ d.then && d.then((u) => {
3234
+ this.component = u.default;
3236
3235
  });
3237
3236
  }
3238
3237
  }
@@ -3310,8 +3309,8 @@ export {
3310
3309
  Ai as g,
3311
3310
  Ui as h,
3312
3311
  Gs as i,
3313
- pi as j,
3314
- ui as k,
3312
+ ui as j,
3313
+ pi as k,
3315
3314
  mi as l,
3316
3315
  Zs as m,
3317
3316
  st as n,