@telia-ace/widget-types-grid 1.0.35-next.3 → 1.0.35-next.5

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.js CHANGED
@@ -1,43 +1,42 @@
1
- var ve = Object.defineProperty, Ee = Object.defineProperties;
2
- var Ce = Object.getOwnPropertyDescriptors;
3
- var H = Object.getOwnPropertySymbols;
4
- var re = Object.prototype.hasOwnProperty, ae = Object.prototype.propertyIsEnumerable;
5
- var Z = (t, n, e) => n in t ? ve(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, m = (t, n) => {
6
- for (var e in n || (n = {}))
7
- re.call(n, e) && Z(t, e, n[e]);
8
- if (H)
9
- for (var e of H(n))
10
- ae.call(n, e) && Z(t, e, n[e]);
1
+ var we = Object.defineProperty, ve = Object.defineProperties;
2
+ var Ee = Object.getOwnPropertyDescriptors;
3
+ var W = Object.getOwnPropertySymbols;
4
+ var oe = Object.prototype.hasOwnProperty, re = Object.prototype.propertyIsEnumerable;
5
+ var ie = (t, e, n) => e in t ? we(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, m = (t, e) => {
6
+ for (var n in e || (e = {}))
7
+ oe.call(e, n) && ie(t, n, e[n]);
8
+ if (W)
9
+ for (var n of W(e))
10
+ re.call(e, n) && ie(t, n, e[n]);
11
11
  return t;
12
- }, C = (t, n) => Ee(t, Ce(n));
13
- var M = (t, n) => {
14
- var e = {};
12
+ }, C = (t, e) => ve(t, Ee(e));
13
+ var N = (t, e) => {
14
+ var n = {};
15
15
  for (var s in t)
16
- re.call(t, s) && n.indexOf(s) < 0 && (e[s] = t[s]);
17
- if (t != null && H)
18
- for (var s of H(t))
19
- n.indexOf(s) < 0 && ae.call(t, s) && (e[s] = t[s]);
20
- return e;
16
+ oe.call(t, s) && e.indexOf(s) < 0 && (n[s] = t[s]);
17
+ if (t != null && W)
18
+ for (var s of W(t))
19
+ e.indexOf(s) < 0 && re.call(t, s) && (n[s] = t[s]);
20
+ return n;
21
21
  };
22
- var L = (t, n, e) => (Z(t, typeof n != "symbol" ? n + "" : n, e), e);
23
- import { css as de, ThemeProvider as Oe, useTheme as Se } from "@emotion/react";
24
- import { asDescriptor as ce, ComponentPlatform as Ae, createComponentModel as De, ComponentQuery as Ne, WidgetRenderState as O } from "@telia-ace/widget-core";
25
- import { Grid as he, useRouteData as xe, useRouter as Me, useProperties as pe, useContext as ne, useContainer as j, useComponentNode as se, useScroll as me, transitionComposer as $e, paddedBorderTabStyle as Le, useComponent as ke, useComponentDescriptor as Pe, filterCssPropsStyle as Re, Typography as Ve, useComponentPlatform as fe, useIsMounted as _e, useColumns as Ie, useLayout as ze, ComponentNodeContext as Be, ComponentPropertyContext as Te, filterCssProps as je } from "@telia-ace/widget-ui";
26
- import d, { useState as B, forwardRef as ge, useMemo as Ge, Suspense as We, useEffect as T } from "react";
22
+ import { css as ue, ThemeProvider as Ce, useTheme as Oe } from "@emotion/react";
23
+ import { asDescriptor as ae, ComponentPlatform as Se, createComponentModel as Ae, ComponentQuery as De, WidgetRenderState as O } from "@telia-ace/widget-core";
24
+ import { Grid as de, useRouteData as xe, useRouter as Me, useProperties as he, useContext as X, useContainer as T, useComponentNode as ee, useScroll as pe, transitionComposer as Ne, paddedBorderTabStyle as $e, useComponent as Le, useComponentDescriptor as ke, filterCssPropsStyle as Pe, Typography as Re, useComponentPlatform as me, useIsMounted as Ve, useColumns as _e, useLayout as Ie, ComponentNodeContext as ze, ComponentPropertyContext as Be, filterCssProps as Te } from "@telia-ace/widget-ui";
25
+ import h, { useState as z, forwardRef as fe, useMemo as je, Suspense as Ge, useEffect as B } from "react";
27
26
  import P from "@emotion/styled";
28
- import { appendClassNames as Y, notifyDataLoaded as Fe, lock as J, removeNullAndUndefinedValues as le, uuid as He } from "@telia-ace/widget-utilities";
29
- import { TransitionGroup as Ke, Transition as Ue } from "react-transition-group";
30
- import { Switch as Ye, Route as X } from "react-router";
31
- import { onWidgetUrl as qe } from "@telia-ace/widget-routing";
32
- import { readStorage as $, StorageMedium as E, createStorageWriter as _, StorageCategory as I, StorageScope as Qe } from "@telia-ace/widget-services";
33
- import { supportBootstrapping as Ze } from "@webprovisions/bootstrapping";
34
- import { WidgetState as Je, WidgetType as Xe } from "@webprovisions/platform";
35
- var te = /* @__PURE__ */ ((t) => (t.back = "back", t.forth = "forth", t))(te || {});
36
- const et = (t, n, e) => typeof e[t] == "number" && typeof e[n] == "number" && e[t] > e[n] ? "back" : "forth", tt = ({ views: t, location: n, render: e }) => /* @__PURE__ */ d.createElement(
37
- Ye,
27
+ import { appendClassNames as K, notifyDataLoaded as We, lock as q, removeNullAndUndefinedValues as ce, uuid as Fe } from "@telia-ace/widget-utilities";
28
+ import { TransitionGroup as He, Transition as Ke } from "react-transition-group";
29
+ import { Switch as Ue, Route as Q } from "react-router";
30
+ import { onWidgetUrl as Ye } from "@telia-ace/widget-routing";
31
+ import { readStorage as $, StorageMedium as v, createStorageWriter as V, StorageCategory as _, StorageScope as qe } from "@telia-ace/widget-services";
32
+ import { supportBootstrapping as Qe } from "@webprovisions/bootstrapping";
33
+ import { WidgetState as Ze, WidgetType as Je } from "@webprovisions/platform";
34
+ var J = /* @__PURE__ */ ((t) => (t.back = "back", t.forth = "forth", t))(J || {});
35
+ const Xe = (t, e, n) => typeof n[t] == "number" && typeof n[e] == "number" && n[t] > n[e] ? "back" : "forth", et = ({ views: t, location: e, render: n }) => /* @__PURE__ */ h.createElement(
36
+ Ue,
38
37
  {
39
- location: n && C(m({}, n), {
40
- pathname: n.pathname.split("?")[0]
38
+ location: e && C(m({}, e), {
39
+ pathname: e.pathname.split("?")[0]
41
40
  })
42
41
  },
43
42
  [
@@ -45,19 +44,19 @@ const et = (t, n, e) => typeof e[t] == "number" && typeof e[n] == "number" && e[
45
44
  ...Object.keys(t).filter((s) => !t[s].path)
46
45
  ].map((s) => {
47
46
  const { path: i } = t[s];
48
- return i ? Array.isArray(i) ? i.map((o) => /* @__PURE__ */ d.createElement(X, { key: s, exact: !0, path: o, render: () => e(s) })) : /* @__PURE__ */ d.createElement(X, { key: s, exact: !0, path: i, render: () => e(s) }) : /* @__PURE__ */ d.createElement(X, { key: s, render: () => e(s) });
47
+ return i ? Array.isArray(i) ? i.map((o) => /* @__PURE__ */ h.createElement(Q, { key: s, exact: !0, path: o, render: () => n(s) })) : /* @__PURE__ */ h.createElement(Q, { key: s, exact: !0, path: i, render: () => n(s) }) : /* @__PURE__ */ h.createElement(Q, { key: s, render: () => n(s) });
49
48
  })
50
- ), ye = tt, nt = P.div`
49
+ ), ge = et, tt = P.div`
51
50
  position: relative;
52
51
  width: 100%;
53
52
  flex: 1;
54
- `, st = P(he)`
53
+ `, nt = P(de)`
55
54
  position: absolute;
56
55
  left: 0;
57
56
  right: 0;
58
57
  ${(t) => !!t.animationCss && t.animationCss}
59
58
  ${(t) => !!t.scrollableCss && t.scrollableCss}
60
- `, it = {
59
+ `, st = {
61
60
  index: 1,
62
61
  search: 2,
63
62
  browse: 3,
@@ -65,94 +64,94 @@ const et = (t, n, e) => typeof e[t] == "number" && typeof e[n] == "number" && e[
65
64
  contact: 5,
66
65
  "contact-method": 6,
67
66
  conversation: 7
68
- }, ot = (e) => {
69
- var s = e, { className: t = "" } = s, n = M(s, ["className"]);
70
- const [i, o] = B("index"), [r, a] = B(te.forth), c = xe(), h = Me(), u = pe(), l = ne(), p = j(), f = se(), { gap: w = "0" } = l, F = u, { columns: y = 1, animation: g = "none", scrollable: b = !1 } = F, S = M(F, ["columns", "animation", "scrollable"]), [G, R] = me(b);
71
- if (!f || !h)
67
+ }, it = (n) => {
68
+ var s = n, { className: t = "" } = s, e = N(s, ["className"]);
69
+ const [i, o] = z("index"), [r, c] = z(J.forth), a = xe(), u = Me(), d = he(), l = X(), f = T(), p = ee(), { gap: g = "0" } = l, G = d, { columns: b = 1, animation: y = "none", scrollable: E = !1 } = G, A = N(G, ["columns", "animation", "scrollable"]), [j, L] = pe(E);
70
+ if (!p || !u)
72
71
  return null;
73
- const { location: W } = h;
74
- c.name !== i && c.name !== "" && g && (a(et(i, c.name, it)), o(c.name));
75
- const { views: D } = p.get("$settings");
72
+ const { location: se } = u;
73
+ a.name !== i && a.name !== "" && y && (c(Xe(i, a.name, st)), o(a.name));
74
+ const { views: D } = f.get("$settings");
76
75
  if (!Object.keys(D).length)
77
76
  return null;
78
- const N = (v, x, V) => {
79
- const A = Q(x, V), z = f.getChildren(v)[0];
80
- return /* @__PURE__ */ d.createElement(
81
- st,
82
- C(m(C(m(m({}, n), S), {
83
- scrollableCss: G,
84
- ref: R,
85
- columns: y,
86
- gap: w
87
- }), A), {
88
- className: Y(t, "humany-view")
77
+ const x = (w, M, R) => {
78
+ const S = Y(M, R), I = p.getChildren(w)[0];
79
+ return /* @__PURE__ */ h.createElement(
80
+ nt,
81
+ C(m(C(m(m({}, e), A), {
82
+ scrollableCss: j,
83
+ ref: L,
84
+ columns: b,
85
+ gap: g
86
+ }), S), {
87
+ className: K(t, "humany-view")
89
88
  }),
90
- /* @__PURE__ */ d.createElement(ie, { id: z.id, branch: "default" })
89
+ /* @__PURE__ */ h.createElement(te, { id: I.id, branch: "default" })
91
90
  );
92
- }, Q = (v, x) => {
93
- if (g === "slide" || g === "fade")
91
+ }, Y = (w, M) => {
92
+ if (y === "slide" || y === "fade")
94
93
  return {
95
- animationCss: $e.composeViewTransition(
96
- v,
97
- g,
98
- x
94
+ animationCss: Ne.composeViewTransition(
95
+ w,
96
+ y,
97
+ M
99
98
  ),
100
- ["data-state"]: v
99
+ ["data-state"]: w
101
100
  };
102
101
  };
103
- return /* @__PURE__ */ d.createElement(nt, { className: "humany-animated-view" }, /* @__PURE__ */ d.createElement(
104
- Ke,
102
+ return /* @__PURE__ */ h.createElement(tt, { className: "humany-animated-view" }, /* @__PURE__ */ h.createElement(
103
+ He,
105
104
  {
106
105
  component: null,
107
- childFactory: (v) => d.cloneElement(v, { direction: r })
106
+ childFactory: (w) => h.cloneElement(w, { direction: r })
108
107
  },
109
- /* @__PURE__ */ d.createElement(
110
- Ue,
108
+ /* @__PURE__ */ h.createElement(
109
+ Ke,
111
110
  {
112
111
  key: i,
113
112
  timeout: { enter: 500, exit: 500 },
114
- onEnter: (v) => v == null ? void 0 : v.clientHeight,
113
+ onEnter: (w) => w == null ? void 0 : w.clientHeight,
115
114
  unmountOnExit: !0,
116
- direction: te.forth
115
+ direction: J.forth
117
116
  },
118
- (v, { direction: x }) => /* @__PURE__ */ d.createElement(
119
- ye,
117
+ (w, { direction: M }) => /* @__PURE__ */ h.createElement(
118
+ ge,
120
119
  {
121
120
  views: D,
122
- location: W,
123
- render: (V) => N(V, v, x)
121
+ location: se,
122
+ render: (R) => x(R, w, M)
124
123
  }
125
124
  )
126
125
  )
127
126
  ));
128
- }, rt = ot, at = P(he)`
127
+ }, ot = it, rt = P(de)`
129
128
  ${(t) => !!t.scrollableCss && t.scrollableCss}
130
- `, ct = (e) => {
131
- var s = e, { className: t = "" } = s, n = M(s, ["className"]);
132
- const i = pe(), o = ne(), r = j(), a = se(), { views: c } = r.get("$settings"), { gap: h = "0" } = o, g = i, { columns: u = 1, animation: l = "none", scrollable: p = !1 } = g, f = M(g, ["columns", "animation", "scrollable"]), [w, y] = me(p);
133
- return a ? /* @__PURE__ */ d.createElement(
134
- at,
135
- C(m(m({}, n), f), {
136
- scrollableCss: w,
137
- ref: y,
138
- columns: u,
139
- gap: h,
140
- className: Y(t, "humany-view")
129
+ `, at = (n) => {
130
+ var s = n, { className: t = "" } = s, e = N(s, ["className"]);
131
+ const i = he(), o = X(), r = T(), c = ee(), { views: a } = r.get("$settings"), { gap: u = "0" } = o, y = i, { columns: d = 1, animation: l = "none", scrollable: f = !1 } = y, p = N(y, ["columns", "animation", "scrollable"]), [g, b] = pe(f);
132
+ return c ? /* @__PURE__ */ h.createElement(
133
+ rt,
134
+ C(m(m({}, e), p), {
135
+ scrollableCss: g,
136
+ ref: b,
137
+ columns: d,
138
+ gap: u,
139
+ className: K(t, "humany-view")
141
140
  }),
142
- /* @__PURE__ */ d.createElement(
143
- ye,
141
+ /* @__PURE__ */ h.createElement(
142
+ ge,
144
143
  {
145
- views: c,
146
- render: (b) => {
147
- const S = a.getChildren(b)[0];
148
- return /* @__PURE__ */ d.createElement(ie, { id: S.id, node: S, branch: "default" });
144
+ views: a,
145
+ render: (E) => {
146
+ const A = c.getChildren(E)[0];
147
+ return /* @__PURE__ */ h.createElement(te, { id: A.id, node: A, branch: "default" });
149
148
  }
150
149
  }
151
150
  )
152
151
  ) : null;
153
- }, lt = ct, q = (t) => {
154
- var n, e;
155
- return de`
152
+ }, ct = at, U = (t) => {
153
+ var e, n;
154
+ return ue`
156
155
  outline: none;
157
156
  box-sizing: border-box;
158
157
  * {
@@ -162,7 +161,7 @@ const et = (t, n, e) => typeof e[t] == "number" && typeof e[n] == "number" && e[
162
161
 
163
162
  grid-column: ${t["data-indent"] ? `${t["data-indent"] + 1} / ${t["data-indent"] + (t["data-width"] || 0) + 1}` : `span ${t["data-width"]}`};
164
163
 
165
- ${((n = t.theme.fonts) == null ? void 0 : n.type) && `
164
+ ${((e = t.theme.fonts) == null ? void 0 : e.type) && `
166
165
  font-family: ${t.theme.fonts.type};
167
166
 
168
167
  input, textarea {
@@ -170,146 +169,146 @@ const et = (t, n, e) => typeof e[t] == "number" && typeof e[n] == "number" && e[
170
169
  }
171
170
  `}
172
171
 
173
- ${((e = t.theme.fonts) == null ? void 0 : e.base) && `
172
+ ${((n = t.theme.fonts) == null ? void 0 : n.base) && `
174
173
  font-size: ${t.theme.fonts.base};
175
174
  `}
176
175
 
177
176
  &:focus-visible {
178
- ${Le(t)};
177
+ ${$e(t)};
179
178
  }
180
179
  `;
181
- }, ut = P(lt)`
182
- ${(t) => q(t)}
183
- `, dt = P(rt)`
184
- ${(t) => q(t)}
185
- `, ht = P.div`
180
+ }, lt = P(ct)`
181
+ ${(t) => U(t)}
182
+ `, ut = P(ot)`
183
+ ${(t) => U(t)}
184
+ `, dt = P.div`
186
185
  text-align: center;
187
186
  ${(t) => {
188
- var n, e, s;
189
- return typeof ((n = t.theme.colors) == null ? void 0 : n.warning) != "undefined" && de`
190
- color: ${(e = t.theme.colors) == null ? void 0 : e.warning};
187
+ var e, n, s;
188
+ return typeof ((e = t.theme.colors) == null ? void 0 : e.warning) != "undefined" && ue`
189
+ color: ${(n = t.theme.colors) == null ? void 0 : n.warning};
191
190
  border: 2px dashed ${(s = t.theme.colors) == null ? void 0 : s.warning};
192
191
  `;
193
192
  }}
194
193
  ${(t) => typeof t.theme.borderRadius != "undefined" && `border-radius: ${t.theme.borderRadius};`}
195
- ${(t) => q(t)}
196
- `, pt = ge(
194
+ ${(t) => U(t)}
195
+ `, ht = fe(
197
196
  (i, s) => {
198
- var o = i, { className: t = "", children: n } = o, e = M(o, ["className", "children"]);
199
- const r = ke(), { name: a, type: c, id: h } = Pe(), u = Ge(() => r ? P(r)`
200
- ${q}
201
- ${Re}
197
+ var o = i, { className: t = "", children: e } = o, n = N(o, ["className", "children"]);
198
+ const r = Le(), { name: c, type: a, id: u } = ke(), d = je(() => r ? P(r)`
199
+ ${U}
200
+ ${Pe}
202
201
  ` : null, [r]);
203
- return typeof r == "undefined" ? null : r === null || u === null ? process.env.NODE_ENV !== "production" ? /* @__PURE__ */ d.createElement(
204
- ht,
205
- C(m({}, e), {
206
- title: `type: ${c}, definition-id: ${a}, instance-id: ${h}`,
207
- className: Y(t, "humany-non-resolved-component")
202
+ return typeof r == "undefined" ? null : r === null || d === null ? process.env.NODE_ENV !== "production" ? /* @__PURE__ */ h.createElement(
203
+ dt,
204
+ C(m({}, n), {
205
+ title: `type: ${a}, definition-id: ${c}, instance-id: ${u}`,
206
+ className: K(t, "humany-non-resolved-component")
208
207
  }),
209
- /* @__PURE__ */ d.createElement(Ve, { variant: "h5" }, "Non Resolved Component Type")
210
- ) : null : /* @__PURE__ */ d.createElement(We, { fallback: null }, /* @__PURE__ */ d.createElement(
211
- u,
208
+ /* @__PURE__ */ h.createElement(Re, { variant: "h5" }, "Non Resolved Component Type")
209
+ ) : null : /* @__PURE__ */ h.createElement(Ge, { fallback: null }, /* @__PURE__ */ h.createElement(
210
+ d,
212
211
  C(m({
213
212
  ref: s
214
- }, e), {
215
- className: Y(
213
+ }, n), {
214
+ className: K(
216
215
  t,
217
216
  "humany-component",
218
- `humany-component-${a}`
217
+ `humany-component-${c}`
219
218
  )
220
219
  }),
221
- n
220
+ e
222
221
  ));
223
222
  }
224
- ), mt = pt, ft = (t) => {
225
- const n = se(t), e = fe(), [s, i] = B({}), o = _e();
226
- return T(() => {
227
- n && o.current && i(n.attributes.properties);
228
- }, [n, t, o]), T(() => {
229
- if (e) {
230
- const r = e.events.subscribe(
223
+ ), pt = ht, mt = (t) => {
224
+ const e = ee(t), n = me(), [s, i] = z({}), o = Ve();
225
+ return B(() => {
226
+ e && o.current && i(e.attributes.properties);
227
+ }, [e, t, o]), B(() => {
228
+ if (n) {
229
+ const r = n.events.subscribe(
231
230
  "components:properties-changed",
232
- (a, c) => {
233
- n === c.node && o.current && i(c.node.attributes.properties);
231
+ (c, a) => {
232
+ e === a.node && o.current && i(a.node.attributes.properties);
234
233
  }
235
234
  );
236
235
  return () => {
237
236
  r();
238
237
  };
239
238
  }
240
- }, [e, o, t, n]), s;
241
- }, gt = (t, n) => n ? !0 : typeof t == "string" ? t === "full" : t > 0, yt = ge(
242
- (h, c) => {
243
- var u = h, { className: t = "", id: n, branch: e, node: s, ariaLabel: i, tabIndex: o, context: r } = u, a = M(u, ["className", "id", "branch", "node", "ariaLabel", "tabIndex", "context"]);
244
- const l = fe(), p = j(), [f, w] = B(), y = Ie(), g = ne(n), b = ft(n), { size: S = "none", indent: G = 0 } = ze(n), R = gt(S, s);
245
- if (T(() => {
239
+ }, [n, o, t, e]), s;
240
+ }, ft = (t, e) => e ? !0 : typeof t == "string" ? t === "full" : t > 0, gt = fe(
241
+ (u, a) => {
242
+ var d = u, { className: t = "", id: e, branch: n, node: s, ariaLabel: i, tabIndex: o, context: r } = d, c = N(d, ["className", "id", "branch", "node", "ariaLabel", "tabIndex", "context"]);
243
+ const l = me(), f = T(), [p, g] = z(), b = _e(), y = X(e), E = mt(e), { size: A = "none", indent: j = 0 } = Ie(e), L = ft(A, s);
244
+ if (B(() => {
246
245
  if (l) {
247
- if (n && !s) {
248
- const A = l.nodes.get(n);
249
- if (A && (w(ce(A, e)), R)) {
250
- const z = A.mount(p);
246
+ if (e && !s) {
247
+ const S = l.nodes.get(e);
248
+ if (S && (g(ae(S, n)), L)) {
249
+ const I = S.mount(f);
251
250
  return () => {
252
- z();
251
+ I();
253
252
  };
254
253
  }
255
254
  } else if (s) {
256
- w(ce(s, e));
257
- const A = s.mount(p);
255
+ g(ae(s, n));
256
+ const S = s.mount(f);
258
257
  return () => {
259
- A();
258
+ S();
260
259
  };
261
260
  }
262
261
  }
263
- }, [l, n, s, R]), !f || !R)
262
+ }, [l, e, s, L]), !p || !L)
264
263
  return null;
265
- const V = m(m({}, g), r || {}), {
264
+ const R = m(m({}, y), r || {}), {
266
265
  cardinal: D,
267
- fonts: N = {},
268
- accessibility: Q = {}
269
- } = V, F = M(V, [
266
+ fonts: x = {},
267
+ accessibility: Y = {}
268
+ } = R, G = N(R, [
270
269
  "cardinal",
271
270
  "fonts",
272
271
  "accessibility"
273
- ]), v = {
274
- type: N.type,
275
- base: N.base || "16px",
276
- small: N.small || "0.8em",
277
- normal: N.normal || "1em",
278
- medium: N.medium || "1.2em",
279
- large: N.large || "1.6em",
280
- huge: N.huge || "2.5em"
281
- }, x = C(m({}, F), {
282
- fonts: v,
283
- accessibility: m({}, Q)
272
+ ]), w = {
273
+ type: x.type,
274
+ base: x.base || "16px",
275
+ small: x.small || "0.8em",
276
+ normal: x.normal || "1em",
277
+ medium: x.medium || "1.2em",
278
+ large: x.large || "1.6em",
279
+ huge: x.huge || "2.5em"
280
+ }, M = C(m({}, G), {
281
+ fonts: w,
282
+ accessibility: m({}, Y)
284
283
  });
285
- return typeof D == "number" && (x.sizes = {
284
+ return typeof D == "number" && (M.sizes = {
286
285
  cardinal: D,
287
286
  small: `${D}px`,
288
287
  normal: `${D * 3}px`,
289
288
  medium: `${D * 5}px`,
290
289
  large: `${D * 8}px`
291
- }), /* @__PURE__ */ d.createElement(Oe, { theme: x }, /* @__PURE__ */ d.createElement(Be.Provider, { value: f }, /* @__PURE__ */ d.createElement(Te.Provider, { value: b }, (() => {
292
- const A = m({
293
- "data-width": S === "full" ? y : Math.min(S, y),
294
- "data-indent": G,
295
- "data-name": f.name,
296
- "data-node-id": f.id,
297
- "data-component-type": f.type,
290
+ }), /* @__PURE__ */ h.createElement(Ce, { theme: M }, /* @__PURE__ */ h.createElement(ze.Provider, { value: p }, /* @__PURE__ */ h.createElement(Be.Provider, { value: E }, (() => {
291
+ const S = m({
292
+ "data-width": A === "full" ? b : Math.min(A, b),
293
+ "data-indent": j,
294
+ "data-name": p.name,
295
+ "data-node-id": p.id,
296
+ "data-component-type": p.type,
298
297
  "aria-label": i,
299
298
  tabIndex: o,
300
- id: f.id,
301
- role: b && b.role
302
- }, a);
303
- switch (f.type) {
299
+ id: p.id,
300
+ role: E && E.role
301
+ }, c);
302
+ switch (p.type) {
304
303
  case "view":
305
- return typeof b.animation == "string" && b.animation !== "none" ? /* @__PURE__ */ d.createElement(dt, C(m({}, A), { className: t })) : /* @__PURE__ */ d.createElement(ut, C(m({}, A), { className: t }));
304
+ return typeof E.animation == "string" && E.animation !== "none" ? /* @__PURE__ */ h.createElement(ut, C(m({}, S), { className: t })) : /* @__PURE__ */ h.createElement(lt, C(m({}, S), { className: t }));
306
305
  default: {
307
- const z = je(b);
308
- return /* @__PURE__ */ d.createElement(
309
- mt,
306
+ const I = Te(E);
307
+ return /* @__PURE__ */ h.createElement(
308
+ pt,
310
309
  C(m(m({
311
- ref: c
312
- }, A), z), {
310
+ ref: a
311
+ }, S), I), {
313
312
  className: t
314
313
  })
315
314
  );
@@ -317,80 +316,80 @@ const et = (t, n, e) => typeof e[t] == "number" && typeof e[n] == "number" && e[
317
316
  }
318
317
  })())));
319
318
  }
320
- ), ie = yt, bt = ({ builder: t }) => {
321
- const n = j(), [e, s] = B(null);
322
- return T(() => {
323
- n.getAsync("components").then((i) => t(i).then((o) => {
319
+ ), te = gt, yt = ({ builder: t }) => {
320
+ const e = T(), [n, s] = z(null);
321
+ return B(() => {
322
+ e.getAsync("components").then((i) => t(i).then((o) => {
324
323
  s(o);
325
324
  }));
326
- }, []), T(() => () => {
327
- e && n.getAsync("components").then((i) => {
325
+ }, []), B(() => () => {
326
+ n && e.getAsync("components").then((i) => {
328
327
  i.nodes.detached = i.nodes.detached.filter(
329
- (o) => o.id !== e.id
328
+ (o) => o.id !== n.id
330
329
  );
331
330
  });
332
- }, [e]), e ? /* @__PURE__ */ d.createElement(ie, { id: e.id, node: e, branch: "default" }) : null;
333
- }, wt = bt, vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
331
+ }, [n]), n ? /* @__PURE__ */ h.createElement(te, { id: n.id, node: n, branch: "default" }) : null;
332
+ }, bt = yt, wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
334
333
  __proto__: null,
335
- default: wt
336
- }, Symbol.toStringTag, { value: "Module" })), Et = d.lazy(() => Promise.resolve().then(() => vt)), Ct = ({ showSearch: t = !1 }) => {
337
- const n = Se(), e = j();
338
- return /* @__PURE__ */ d.createElement(d.Suspense, { fallback: null }, /* @__PURE__ */ d.createElement(
339
- Et,
334
+ default: bt
335
+ }, Symbol.toStringTag, { value: "Module" })), vt = h.lazy(() => Promise.resolve().then(() => wt)), Et = ({ showSearch: t = !1 }) => {
336
+ const e = Oe(), n = T();
337
+ return /* @__PURE__ */ h.createElement(h.Suspense, { fallback: null }, /* @__PURE__ */ h.createElement(
338
+ vt,
340
339
  {
341
- builder: (s) => e.get("settings").then((i) => {
342
- var h;
340
+ builder: (s) => n.get("settings").then((i) => {
341
+ var u;
343
342
  const { properties: o, context: r } = Object.keys(i.components).reduce(
344
- (u, l) => (i.components[l].type === "not-found" && (u.properties = i.components[l].properties, u.context = i.components[l].context), u),
343
+ (d, l) => (i.components[l].type === "not-found" && (d.properties = i.components[l].properties, d.context = i.components[l].context), d),
345
344
  { properties: {}, context: {} }
346
345
  );
347
346
  o.showSearch = t;
348
- const a = s.createNode("area", { detached: !0 });
349
- if (a.name = "not-found-area", a.writeLayout({
347
+ const c = s.createNode("area", { detached: !0 });
348
+ if (c.name = "not-found-area", c.writeLayout({
350
349
  size: "full"
351
350
  }), t) {
352
- const u = Object.keys(i.components).reduce(
353
- (p, f) => i.components[f].type === "search" ? i.components[f].properties : p,
351
+ const d = Object.keys(i.components).reduce(
352
+ (f, p) => i.components[p].type === "search" ? i.components[p].properties : f,
354
353
  {}
355
354
  ), l = s.createNode("search", { detached: !0 });
356
355
  l.writeLayout({ size: "full" }), l.writeProperties(m({
357
- "css-margin-bottom": ((h = n == null ? void 0 : n.sizes) == null ? void 0 : h.normal) || "15px"
358
- }, u)), a.appendChild(l);
356
+ "css-margin-bottom": ((u = e == null ? void 0 : e.sizes) == null ? void 0 : u.normal) || "15px"
357
+ }, d)), c.appendChild(l);
359
358
  }
360
- const c = s.createNode("not-found", { detached: !0 });
361
- return c.writeLayout({ size: "full" }), c.writeProperties(o), c.writeContext(r), a.appendChild(c), a;
359
+ const a = s.createNode("not-found", { detached: !0 });
360
+ return a.writeLayout({ size: "full" }), a.writeProperties(o), a.writeContext(r), c.appendChild(a), c;
362
361
  })
363
362
  }
364
363
  ));
365
- }, Jt = Ct, Ot = (t) => {
364
+ }, Zt = Et, Ct = (t) => {
366
365
  if (t) {
367
- const { type: n, content: e } = t;
368
- switch (n) {
366
+ const { type: e, content: n } = t;
367
+ switch (e) {
369
368
  case "FontAwesome":
370
- return `<i class="humany-icon fa fa-${e}"></i>`;
369
+ return `<i class="humany-icon fa fa-${n}"></i>`;
371
370
  case "Uri":
372
- return `<i class="humany-icon humany-custom-icon" style="background: url(${e}) no-repeat center center;background-size: contain;"></i>`;
371
+ return `<i class="humany-icon humany-custom-icon" style="background: url(${n}) no-repeat center center;background-size: contain;"></i>`;
373
372
  default:
374
373
  return "";
375
374
  }
376
375
  }
377
- }, St = (t) => {
378
- const n = (i, o) => {
379
- !i || (o ? i.classList.add("humany-tabbing") : i.classList.remove("humany-tabbing"));
380
- }, e = (i) => {
381
- i.key === "Tab" ? n(t, !0) : i.key === "Enter" && document.activeElement && document.activeElement.classList.contains("humany-trigger") || n(t, !1);
376
+ }, Ot = (t) => {
377
+ const e = (i, o) => {
378
+ i && (o ? i.classList.add("humany-tabbing") : i.classList.remove("humany-tabbing"));
379
+ }, n = (i) => {
380
+ i.key === "Tab" ? e(t, !0) : i.key === "Enter" && document.activeElement && document.activeElement.classList.contains("humany-trigger") || e(t, !1);
382
381
  }, s = (i) => {
383
- document.activeElement && document.activeElement.classList.contains("humany-trigger") && document.activeElement.classList.contains("humany-tabbing") || n(t, !1);
382
+ document.activeElement && document.activeElement.classList.contains("humany-trigger") && document.activeElement.classList.contains("humany-tabbing") || e(t, !1);
384
383
  };
385
- return document.addEventListener("keydown", e), document.addEventListener("click", s), () => {
386
- document.removeEventListener("keydown", e), document.removeEventListener("click", s);
384
+ return document.addEventListener("keydown", n), document.addEventListener("click", s), () => {
385
+ document.removeEventListener("keydown", n), document.removeEventListener("click", s);
387
386
  };
388
387
  };
389
- function At(t, n) {
390
- const { symbol: e, widgetName: s, label: i = "", ariaLabel: o = "", tooltip: r = "" } = n;
388
+ function St(t, e) {
389
+ const { symbol: n, widgetName: s, label: i = "", ariaLabel: o = "", tooltip: r = "" } = e;
391
390
  t.classList.add("humany-trigger"), t.classList.add(`humany_${s}`), i.length && t.classList.add("humany-has-text"), o.length && !t.getAttribute("aria-label") && t.setAttribute("aria-label", o), o.length && !t.getAttribute("tabindex") && t.setAttribute("tabindex", "0"), r.length && !t.getAttribute("title") && t.setAttribute("title", r);
392
- const a = Ot(e) || "";
393
- return t.innerHTML = `${a}
391
+ const c = Ct(n) || "";
392
+ return t.innerHTML = `${c}
394
393
  <span class="humany-close">
395
394
  <svg width="18" height="9" viewBox="0 0 18 9" fill="none" xmlns="http://www.w3.org/2000/svg">
396
395
  <path d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z" fill="white"/>
@@ -408,233 +407,231 @@ function At(t, n) {
408
407
  stroke-miterlimit="10" />
409
408
  </svg>
410
409
  </span>
411
- ${i.length ? `<span>${i}</span>` : ""}`, setTimeout(() => t && t.classList.add("humany-rendered")), St(t);
410
+ ${i.length ? `<span>${i}</span>` : ""}`, setTimeout(() => t && t.classList.add("humany-rendered")), Ot(t);
412
411
  }
413
- function Dt(t, n) {
414
- t instanceof HTMLElement ? (n && t.setAttribute("title", n), t.classList.remove("humany-active"), t.classList.remove("humany-loading")) : t instanceof Array && t.forEach((e) => {
415
- n && e.setAttribute("title", n), e.classList.remove("humany-active"), e.classList.remove("humany-loading");
412
+ function At(t, e) {
413
+ t instanceof HTMLElement ? (e && t.setAttribute("title", e), t.classList.remove("humany-active"), t.classList.remove("humany-loading")) : t instanceof Array && t.forEach((n) => {
414
+ e && n.setAttribute("title", e), n.classList.remove("humany-active"), n.classList.remove("humany-loading");
416
415
  });
417
416
  }
418
- function Nt(t) {
419
- t instanceof HTMLElement ? (t.classList.remove("humany-active"), t.classList.add("humany-loading")) : t instanceof Array && t.forEach((n) => {
420
- n.classList.remove("humany-active"), n.classList.add("humany-loading");
417
+ function Dt(t) {
418
+ t instanceof HTMLElement ? (t.classList.remove("humany-active"), t.classList.add("humany-loading")) : t instanceof Array && t.forEach((e) => {
419
+ e.classList.remove("humany-active"), e.classList.add("humany-loading");
421
420
  });
422
421
  }
423
- function be(t, n) {
424
- t instanceof HTMLElement ? (n && t.setAttribute("title", n), t.classList.add("humany-active"), t.classList.remove("humany-loading")) : t instanceof Array && t.forEach((e) => {
425
- n && e.setAttribute("title", n), e.classList.add("humany-active"), e.classList.remove("humany-loading");
422
+ function ye(t, e) {
423
+ t instanceof HTMLElement ? (e && t.setAttribute("title", e), t.classList.add("humany-active"), t.classList.remove("humany-loading")) : t instanceof Array && t.forEach((n) => {
424
+ e && n.setAttribute("title", e), n.classList.add("humany-active"), n.classList.remove("humany-loading");
426
425
  });
427
426
  }
428
427
  var k = /* @__PURE__ */ ((t) => (t.Inline = "inline", t.Link = "link", t.Badge = "badge", t.Unsupported = "unsupported", t))(k || {});
429
- const xt = (t, n) => t && n ? "both" : t ? "widgetDOM" : n ? "triggerDOM" : "none", we = (t) => t ? typeof t == "boolean" && t ? "link" : typeof t == "object" && !Array.isArray(t) ? "badge" : "unsupported" : "inline", Mt = (t, n, e, s, i = !1) => {
430
- var h, u;
428
+ const xt = (t, e) => t && e ? "both" : t ? "widgetDOM" : e ? "triggerDOM" : "none", be = (t) => t ? typeof t == "boolean" && t ? "link" : typeof t == "object" && !Array.isArray(t) ? "badge" : "unsupported" : "inline", Mt = (t, e, n, s, i = !1) => {
429
+ var u, d;
431
430
  const o = xt(
432
- n,
433
- e
434
- ), r = we(s), a = {
435
- widgetDOMElement: n ? n.cloneNode(!0) : void 0,
436
- triggerDOMElement: e ? e.cloneNode(!0) : void 0
437
- }, c = {
431
+ e,
432
+ n
433
+ ), r = be(s), c = {
434
+ widgetDOMElement: e ? e.cloneNode(!0) : void 0,
435
+ triggerDOMElement: n ? n.cloneNode(!0) : void 0
436
+ }, a = {
438
437
  triggerType: r,
439
- cachedOriginals: a,
438
+ cachedOriginals: c,
440
439
  widgetDOMElement: document.createElement("div")
441
440
  };
442
441
  switch (o) {
443
442
  case "both": {
444
- c.widgetDOMElement = n || document.createElement("div"), r !== "inline" && (c.triggerDOMElement = e);
443
+ a.widgetDOMElement = e || document.createElement("div"), r !== "inline" && (a.triggerDOMElement = n);
445
444
  break;
446
445
  }
447
446
  case "widgetDOM": {
448
- if (c.widgetDOMElement = n || document.createElement("div"), r !== "inline") {
447
+ if (a.widgetDOMElement = e || document.createElement("div"), r !== "inline") {
449
448
  const l = document.body.appendChild(document.createElement("a"));
450
- r === "link" && (l.innerText = t), c.triggerDOMElement = l;
449
+ r === "link" && (l.innerText = t), a.triggerDOMElement = l;
451
450
  }
452
451
  break;
453
452
  }
454
453
  case "triggerDOM": {
455
454
  const l = document.createElement("div");
456
- c.widgetDOMElement = l, r === "inline" ? (l.id = (e == null ? void 0 : e.id) || "", i ? (l.style.display = "none", (h = e == null ? void 0 : e.parentNode) == null || h.appendChild(l), c.callback = () => {
457
- var p;
458
- (p = e == null ? void 0 : e.parentNode) == null || p.replaceChild(
455
+ a.widgetDOMElement = l, r === "inline" ? (l.id = (n == null ? void 0 : n.id) || "", i ? (l.style.display = "none", (u = n == null ? void 0 : n.parentNode) == null || u.appendChild(l), a.callback = () => {
456
+ var f;
457
+ (f = n == null ? void 0 : n.parentNode) == null || f.replaceChild(
459
458
  l,
460
- e
461
- ), l.style.display = (e == null ? void 0 : e.style.display) || "block";
462
- }) : (u = e == null ? void 0 : e.parentNode) == null || u.replaceChild(
459
+ n
460
+ ), l.style.display = (n == null ? void 0 : n.style.display) || "block";
461
+ }) : (d = n == null ? void 0 : n.parentNode) == null || d.replaceChild(
463
462
  l,
464
- e
465
- ), c.cachedOriginals.widgetDOMElement = e, c.cachedOriginals.triggerDOMElement = void 0) : (c.widgetDOMElement = document.body.appendChild(l), c.triggerDOMElement = e);
463
+ n
464
+ ), a.cachedOriginals.widgetDOMElement = n, a.cachedOriginals.triggerDOMElement = void 0) : (a.widgetDOMElement = document.body.appendChild(l), a.triggerDOMElement = n);
466
465
  break;
467
466
  }
468
467
  case "none": {
469
468
  const l = document.body.appendChild(document.createElement("div"));
470
- if (c.widgetDOMElement = l, r !== "inline") {
471
- const p = document.body.appendChild(document.createElement("a"));
472
- r === "link" && (p.innerText = t), c.triggerDOMElement = p;
469
+ if (a.widgetDOMElement = l, r !== "inline") {
470
+ const f = document.body.appendChild(document.createElement("a"));
471
+ r === "link" && (f.innerText = t), a.triggerDOMElement = f;
473
472
  }
474
473
  break;
475
474
  }
476
475
  }
477
- return c;
478
- }, $t = "modals";
479
- class Lt {
480
- constructor(n, e) {
481
- L(this, "container");
482
- L(this, "unsubscribe", []);
483
- this.options = e, this.container = n.createChild(this), this.container.register("widgetDOMElement", this.options.widgetDOMElement), this.container.register("triggerDOMElement", this.options.triggerDOMElement);
476
+ return a;
477
+ }, Nt = "modals";
478
+ class $t {
479
+ constructor(e, n) {
480
+ this.options = n, this.unsubscribe = [], this.container = e.createChild(this), this.container.register("widgetDOMElement", this.options.widgetDOMElement), this.container.register("triggerDOMElement", this.options.triggerDOMElement);
484
481
  const s = this.container.get("$widget");
485
482
  this.options.widgetDOMElement.classList.add("humany-widget"), this.options.widgetDOMElement.classList.add(`humany_${s.name}`);
486
- const i = n.get("widgetDOMElements") || [];
487
- n.register("widgetDOMElements", [
483
+ const i = e.get("widgetDOMElements") || [];
484
+ e.register("widgetDOMElements", [
488
485
  ...i,
489
486
  this.options.widgetDOMElement
490
487
  ]);
491
488
  }
489
+ /**
490
+ * Renders the view outlet to the DOM.
491
+ */
492
492
  render() {
493
- const { widgetDOMElement: n, triggerDOMElement: e } = this.options, s = this.container.get("$widget");
494
- return n.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === k.Badge && Nt(e), import("./render.ac2db47d.js").then((i) => i.default(this.container, n)).then(() => {
495
- if (n.setAttribute("data-rendered", "true"), e && this.options.triggerType === k.Badge) {
493
+ const { widgetDOMElement: e, triggerDOMElement: n } = this.options, s = this.container.get("$widget");
494
+ return e.getAttribute("data-rendered") === "true" ? Promise.resolve() : (n && this.options.triggerType === k.Badge && Dt(n), import("./render-668e4aa4.js").then((i) => i.default(this.container, e)).then(() => {
495
+ if (e.setAttribute("data-rendered", "true"), n && this.options.triggerType === k.Badge) {
496
496
  const o = this.options.triggerOptions.openTooltip;
497
- be(e, o);
497
+ ye(n, o);
498
498
  }
499
- Fe(this.container, n);
499
+ We(this.container, e);
500
500
  const i = this.container.get("$environment").widgets.all();
501
501
  $(
502
502
  this.container,
503
- $t,
504
- E.Session
503
+ Nt,
504
+ v.Session
505
505
  ).then((o) => {
506
506
  o && o.forEach((r) => {
507
507
  i.find(
508
- (a) => a.name === r.name && a.state === "activated"
508
+ (c) => c.name === r.name && c.state === "activated"
509
509
  ) && s.events.dispatch("widget:modal-opened", r);
510
510
  });
511
511
  });
512
512
  }));
513
513
  }
514
- renderBadge(n) {
515
- const { triggerDOMElement: e } = this.options;
516
- if (!e)
514
+ renderBadge(e) {
515
+ const { triggerDOMElement: n } = this.options;
516
+ if (!n)
517
517
  return;
518
- e.getAttribute("role") || e.setAttribute("role", "button");
519
- const { name: s } = this.container.get("$widget"), { label: i, symbol: o, ariaLabel: r, closedTooltip: a, openTooltip: c } = n, h = { closedTooltip: a, openTooltip: c };
520
- this.options.triggerOptions = h;
521
- const u = At(e, {
518
+ n.getAttribute("role") || n.setAttribute("role", "button");
519
+ const { name: s } = this.container.get("$widget"), { label: i, symbol: o, ariaLabel: r, closedTooltip: c, openTooltip: a } = e, u = { closedTooltip: c, openTooltip: a };
520
+ this.options.triggerOptions = u;
521
+ const d = St(n, {
522
522
  label: i,
523
523
  symbol: o,
524
524
  ariaLabel: r,
525
525
  widgetName: s,
526
- tooltip: a
526
+ tooltip: c
527
527
  });
528
- this.unsubscribe.push(u);
528
+ this.unsubscribe.push(d);
529
529
  }
530
530
  dispose() {
531
- return import("./unmount.b0816844.js").then((n) => {
532
- var i, o, r, a;
533
- const { triggerDOMElement: e, widgetDOMElement: s } = this.options;
534
- n.default(s), this.options.cachedOriginals.widgetDOMElement && s && ((i = s.parentNode) == null || i.replaceChild(
531
+ return import("./unmount-063d8ea3.js").then((e) => {
532
+ var i, o, r, c;
533
+ const { triggerDOMElement: n, widgetDOMElement: s } = this.options;
534
+ e.default(s), this.options.cachedOriginals.widgetDOMElement && s && ((i = s.parentNode) == null || i.replaceChild(
535
535
  this.options.cachedOriginals.widgetDOMElement,
536
536
  s
537
- )), this.options.cachedOriginals.triggerDOMElement && e && ((o = e.parentNode) == null || o.replaceChild(
537
+ )), this.options.cachedOriginals.triggerDOMElement && n && ((o = n.parentNode) == null || o.replaceChild(
538
538
  this.options.cachedOriginals.triggerDOMElement,
539
- e
540
- )), this.unsubscribe.forEach((c) => {
541
- c();
542
- }), (r = s.parentNode) == null || r.removeChild(s), (a = e == null ? void 0 : e.parentNode) == null || a.removeChild(e);
539
+ n
540
+ )), this.unsubscribe.forEach((a) => {
541
+ a();
542
+ }), (r = s.parentNode) == null || r.removeChild(s), (c = n == null ? void 0 : n.parentNode) == null || c.removeChild(n);
543
543
  });
544
544
  }
545
545
  }
546
- const K = "changesets", kt = (t) => {
547
- const n = { tags: t.tags };
548
- return t.context && typeof t.context != "function" && (n.context = t.context), t.properties && typeof t.properties != "function" && (n.properties = t.properties), t.layout && typeof t.layout != "function" && (n.layout = t.layout), n;
546
+ const F = "changesets", Lt = (t) => {
547
+ const e = { tags: t.tags };
548
+ return t.context && typeof t.context != "function" && (e.context = t.context), t.properties && typeof t.properties != "function" && (e.properties = t.properties), t.layout && typeof t.layout != "function" && (e.layout = t.layout), e;
549
549
  };
550
- class oe {
551
- constructor(n, e) {
552
- this.container = n, this.storageWriter = e;
550
+ class ne {
551
+ constructor(e, n) {
552
+ this.container = e, this.storageWriter = n;
553
553
  }
554
- static create(n) {
555
- return _(n, K, I.Necessary, {
556
- medium: E.Local
557
- }).then((e) => new oe(n, e));
554
+ static create(e) {
555
+ return V(e, F, _.Necessary, {
556
+ medium: v.Local
557
+ }).then((n) => new ne(e, n));
558
558
  }
559
- write(n, e, s, i) {
560
- return J(this)(() => $(
559
+ write(e, n, s, i) {
560
+ return q(this)(() => $(
561
561
  this.container,
562
- K,
563
- E.Local
562
+ F,
563
+ v.Local
564
564
  ).then((o = {}) => {
565
- const { keys: r = [], items: a = {} } = o, c = r.indexOf(n);
566
- return c > -1 && r.splice(c, 1), r.push(n), a[n] = {
565
+ const { keys: r = [], items: c = {} } = o, a = r.indexOf(e);
566
+ return a > -1 && r.splice(a, 1), r.push(e), c[e] = {
567
567
  options: i,
568
- attributes: kt(s),
569
- rules: e.rules
570
- }, this.storageWriter({ keys: r, items: a });
568
+ attributes: Lt(s),
569
+ rules: n.rules
570
+ }, this.storageWriter({ keys: r, items: c });
571
571
  }));
572
572
  }
573
- remove(n) {
574
- return J(this)(() => $(
573
+ remove(e) {
574
+ return q(this)(() => $(
575
575
  this.container,
576
- K,
577
- E.Local
578
- ).then((e = {}) => {
579
- const { keys: s = [], items: i = {} } = e, o = s.indexOf(n);
576
+ F,
577
+ v.Local
578
+ ).then((n = {}) => {
579
+ const { keys: s = [], items: i = {} } = n, o = s.indexOf(e);
580
580
  if (o > -1)
581
- return s.splice(o, 1), delete i[n], this.storageWriter(e);
581
+ return s.splice(o, 1), delete i[e], this.storageWriter(n);
582
582
  }));
583
583
  }
584
- load(n) {
585
- return J(this)(() => $(
584
+ load(e) {
585
+ return q(this)(() => $(
586
586
  this.container,
587
- K,
588
- E.Local
589
- ).then((e = {}) => {
590
- const { keys: s = [], items: i = {} } = e;
587
+ F,
588
+ v.Local
589
+ ).then((n = {}) => {
590
+ const { keys: s = [], items: i = {} } = n;
591
591
  s.forEach((o) => {
592
592
  const r = i[o];
593
593
  if (r) {
594
- const { rules: a, attributes: c, options: h } = r;
595
- n.write({
596
- attributes: c,
597
- options: h,
598
- target: new Ne(n, a)
594
+ const { rules: c, attributes: a, options: u } = r;
595
+ e.write({
596
+ attributes: a,
597
+ options: u,
598
+ target: new De(e, c)
599
599
  });
600
600
  }
601
601
  });
602
602
  }));
603
603
  }
604
604
  }
605
- const Pt = (t) => {
606
- const { container: n } = t;
607
- return oe.create(n).then((e) => {
608
- const s = n.get("$settings"), i = { localStorage: e }, o = new Ae(t, i), r = De(o, s);
609
- return t.events.subscribe("widget:state-change", (a, c) => {
610
- c.state === Je.Deactivating && r();
605
+ const kt = (t) => {
606
+ const { container: e } = t;
607
+ return ne.create(e).then((n) => {
608
+ const s = e.get("$settings"), i = { localStorage: n }, o = new Se(t, i), r = Ae(o, s);
609
+ return t.events.subscribe("widget:state-change", (c, a) => {
610
+ a.state === Ze.Deactivating && r();
611
611
  }), o;
612
612
  });
613
- }, Rt = (t) => import("@telia-ace/widget-routing").then(({ RoutingService: n, HistoryMode: e }) => t.get("settings").then((s) => {
613
+ }, Pt = (t) => import("@telia-ace/widget-routing").then(({ RoutingService: e, HistoryMode: n }) => t.get("settings").then((s) => {
614
614
  const {
615
- routing: { initialPath: i = "/", mode: o = e.scopedHash, basePath: r },
616
- views: a
615
+ routing: { initialPath: i = "/", mode: o = n.scopedHash, basePath: r },
616
+ views: c
617
617
  } = s;
618
- return new n(t, {
618
+ return new e(t, {
619
619
  initialPath: i,
620
620
  mode: o,
621
- routes: Object.keys(a).map((h) => ({
622
- name: h,
623
- path: a[h].path
621
+ routes: Object.keys(c).map((u) => ({
622
+ name: u,
623
+ path: c[u].path
624
624
  })),
625
625
  basePath: r
626
626
  });
627
- })), Vt = (t) => import("@telia-ace/widget-services").then(({ StorageProvider: n }) => new n()), _t = (t) => import("@telia-ace/widget-core").then(({ ActionResolver: n }) => new n(t)), It = (t) => import("@telia-ace/widget-core").then(({ ComponentResolver: n }) => new n(t)), zt = (t) => import("@telia-ace/widget-core").then(({ ComponentPlatform: n, createComponentModel: e }) => Pt(t.get("$widget"))), ee = "$settings", U = "open", ue = "activeStickyWidget";
628
- class Xt extends Xe {
627
+ })), Rt = (t) => import("@telia-ace/widget-services").then(({ StorageProvider: e }) => new e()), Vt = (t) => import("@telia-ace/widget-core").then(({ ActionResolver: e }) => new e(t)), _t = (t) => import("@telia-ace/widget-core").then(({ ComponentResolver: e }) => new e(t)), It = (t) => import("@telia-ace/widget-core").then(({ ComponentPlatform: e, createComponentModel: n }) => kt(t.get("$widget"))), Z = "$settings", H = "open", le = "activeStickyWidget";
628
+ class Jt extends Je {
629
629
  constructor(e) {
630
- super(e);
631
- L(this, "outlets", /* @__PURE__ */ new Map());
632
- L(this, "activated");
633
- L(this, "subs", []);
634
- L(this, "handleBootstrapping", (e) => {
630
+ super(e), this.outlets = /* @__PURE__ */ new Map(), this.activated = void 0, this.subs = [], this.handleBootstrapping = (n) => {
635
631
  const s = {
636
- triggerDOMElement: e.sourceDOMElement,
632
+ triggerDOMElement: n.sourceDOMElement,
637
633
  withRenderState: "storage"
634
+ /* Storage */
638
635
  };
639
636
  this.container.get("settings").then((i) => {
640
637
  const { activate: o } = i;
@@ -642,20 +639,14 @@ class Xt extends Xe {
642
639
  () => this.attach(s)
643
640
  ));
644
641
  });
645
- });
646
- this.container.registerAsync("storage", () => Vt(this.container)), this.container.registerFactory("settings", () => $(
642
+ }, this.container.registerAsync("storage", () => Rt(this.container)), this.container.registerFactory("settings", () => $(
647
643
  this.container,
648
- ee,
649
- E.Local
650
- ).then((s = {}) => {
651
- var i;
652
- return C(m(m({}, this.container.get("$settings")), s), {
653
- cspNonce: ((i = window.webprovisionsEnvironmentVariables) == null ? void 0 : i.cspNonce) || void 0
654
- });
655
- })), Ze(this, "load", this.handleBootstrapping), this.container.registerAsync(
644
+ Z,
645
+ v.Local
646
+ ).then((n = {}) => m(m({}, this.container.get("$settings")), n))), Qe(this, "load", this.handleBootstrapping), this.container.registerAsync(
656
647
  "componentResolver",
657
- () => It(this.container)
658
- ), this.container.registerAsync("router", () => Rt(this.container)), this.container.registerAsync("actionResolver", () => _t(this.container)), this.container.register("matchMedia", window.matchMedia), this.container.registerAsync("components", () => zt(this.container));
648
+ () => _t(this.container)
649
+ ), this.container.registerAsync("router", () => Pt(this.container)), this.container.registerAsync("actionResolver", () => Vt(this.container)), this.container.register("matchMedia", window.matchMedia), this.container.registerAsync("components", () => It(this.container));
659
650
  }
660
651
  initialize() {
661
652
  const e = this.container.getManyAsync(
@@ -664,102 +655,102 @@ class Xt extends Xe {
664
655
  "components"
665
656
  );
666
657
  return Promise.all([e, this.container.get("settings")]).then(
667
- ([{ actionResolver: s, router: i, components: o }, r]) => {
668
- var h;
669
- s.subscribe(
658
+ ([{ actionResolver: n, router: s, components: i }, o]) => {
659
+ var a;
660
+ n.subscribe(
670
661
  this.widget.name,
671
- (u, l, p) => this.onAction(l, p)
662
+ (u, d, l) => this.onAction(d, l)
672
663
  );
673
- const a = (u) => {
674
- o.nodes.query({ type: "view" }).forEach((l) => {
675
- o.setSwitch(l, u);
664
+ const r = (u) => {
665
+ i.nodes.query({ type: "view" }).forEach((d) => {
666
+ i.setSwitch(d, u);
676
667
  });
677
- }, c = ((h = i.getInitialRoute()) == null ? void 0 : h.name) || "index";
678
- return a(c), this.events.subscribe("widget:data-loaded", (u, { element: l }) => {
668
+ }, c = ((a = s.getInitialRoute()) == null ? void 0 : a.name) || "index";
669
+ return r(c), this.events.subscribe("widget:data-loaded", (u, { element: d }) => {
679
670
  this.widget.container.get("seoConfiguration") && this.events.dispatch("widget:preloaded-replaced", {
680
- element: l
671
+ element: d
681
672
  });
682
673
  }), this.events.subscribe(
683
674
  "router:change",
684
- (u, { previous: l = { routeData: {} }, next: p = { routeData: {} } }) => {
685
- const { routeData: f } = l, { routeData: w } = p, y = Object.keys(r.views).reduce((g, b) => typeof r.views[b].path == "undefined" ? b : g, "");
686
- !w.name && y ? a(y) : a(w.name), le(f && f.params), le(w && w.params), this.container.getAsync("actionResolver").then((g) => {
687
- g.action(this.widget.name, "routeChange", {
688
- next: w,
675
+ (u, { previous: d = { routeData: {} }, next: l = { routeData: {} } }) => {
676
+ const { routeData: f } = d, { routeData: p } = l, g = Object.keys(o.views).reduce((b, y) => typeof o.views[y].path == "undefined" ? y : b, "");
677
+ !p.name && g ? r(g) : r(p.name), ce(f && f.params), ce(p && p.params), this.container.getAsync("actionResolver").then((b) => {
678
+ b.action(this.widget.name, "routeChange", {
679
+ next: p,
689
680
  previous: f
690
681
  });
691
682
  });
692
683
  }
693
- ), i.initialize();
684
+ ), s.initialize();
694
685
  }
695
686
  );
696
687
  }
697
688
  attach(e = {}) {
698
- return this.container.get("settings").then(({ trigger: s }) => {
699
- var f, w;
689
+ return this.container.get("settings").then(({ trigger: n }) => {
690
+ var f, p;
700
691
  const {
701
- widgetDOMElement: i,
702
- key: o = He(),
703
- triggerDOMElement: r,
704
- withRenderState: a
705
- } = e, h = we(s) === k.Inline && ((r == null ? void 0 : r.childElementCount) || 0) > 0, u = Mt(
692
+ widgetDOMElement: s,
693
+ key: i = Fe(),
694
+ triggerDOMElement: o,
695
+ withRenderState: r
696
+ } = e, a = be(n) === k.Inline && ((o == null ? void 0 : o.childElementCount) || 0) > 0, u = Mt(
706
697
  this.widget.name,
707
- i,
708
- r,
709
698
  s,
710
- h
699
+ o,
700
+ n,
701
+ a
711
702
  );
712
- this.outlets.size < 1 && !a && this.setRenderState("unset");
713
- const l = () => {
714
- const y = () => g.querySelectorAll("[data-loading=true]").length === 0, [g] = this.widget.container.get("widgetDOMElements"), b = (R, W) => {
715
- y() && (u.callback && u.callback(), W.disconnect());
716
- }, S = {
703
+ this.outlets.size < 1 && !r && this.setRenderState("unset");
704
+ const d = () => {
705
+ const g = () => b.querySelectorAll("[data-loading=true]").length === 0, [b] = this.widget.container.get("widgetDOMElements"), y = (j, L) => {
706
+ g() && (u.callback && u.callback(), L.disconnect());
707
+ }, E = {
717
708
  attributes: !0,
718
709
  subtree: !0,
719
710
  childList: !0
720
711
  };
721
- y() && u.callback && u.callback(), new MutationObserver(b).observe(g, S);
712
+ g() && u.callback && u.callback(), new MutationObserver(y).observe(b, E);
722
713
  };
723
- h && this.widget.container.getAsync("dataClient").then(({ events: y }) => {
724
- y.subscribe("data-client:fetched", (g, b) => {
725
- b.unresolvedQueries === 0 && l();
714
+ a && this.widget.container.getAsync("dataClient").then(({ events: g }) => {
715
+ g.subscribe("data-client:fetched", (b, y) => {
716
+ y.unresolvedQueries === 0 && d();
726
717
  });
727
718
  });
728
- const p = this.getOrCreateViewOutlet(o, u);
729
- if (this.outlets.set(o, p), this.widget.events.dispatch("widget:attached", {}, { bubbles: !0 }), u.triggerType === k.Badge && s && ((f = u.triggerDOMElement) == null || f.setAttribute("aria-expanded", "false"), p == null || p.renderBadge(s)), u.triggerType !== k.Inline && ((w = u.triggerDOMElement) == null || w.addEventListener("click", (y) => {
730
- y.preventDefault(), this.container.get("settings").then(({ trigger: g }) => {
731
- p.render().then(() => this.renderState()).then((b) => g && g.action && g.action === "hide" ? b === O.open ? this.hide() : this.open() : b === O.open ? this.close() : this.open());
719
+ const l = this.getOrCreateViewOutlet(i, u);
720
+ if (this.outlets.set(i, l), this.widget.events.dispatch("widget:attached", {}, { bubbles: !0 }), u.triggerType === k.Badge && n && ((f = u.triggerDOMElement) == null || f.setAttribute("aria-expanded", "false"), l == null || l.renderBadge(n)), u.triggerType !== k.Inline && ((p = u.triggerDOMElement) == null || p.addEventListener("click", (g) => {
721
+ g.preventDefault(), this.container.get("settings").then(({ trigger: b }) => {
722
+ l.render().then(() => this.renderState()).then((y) => b && b.action && b.action === "hide" ? y === O.open ? this.hide() : this.open() : y === O.open ? this.close() : this.open());
732
723
  });
733
724
  })), this.outlets.size > 1)
734
- return this.renderState().then((y) => {
735
- this.triggerStateIfApplicable(y);
725
+ return this.renderState().then((g) => {
726
+ this.triggerStateIfApplicable(g);
736
727
  });
737
- if (a)
738
- return a === "storage" ? this.renderState().then((y) => {
728
+ if (r)
729
+ return r === "storage" ? this.renderState().then((g) => {
739
730
  if (u.triggerType === k.Inline) {
740
731
  this.triggerStateIfApplicable("open");
741
732
  return;
742
733
  }
743
- this.triggerStateIfApplicable(y);
744
- }) : this.triggerStateIfApplicable(a);
734
+ this.triggerStateIfApplicable(g);
735
+ }) : this.triggerStateIfApplicable(r);
745
736
  });
746
737
  }
747
738
  detach(e) {
748
739
  if (e) {
749
740
  if (this.outlets.has(e)) {
750
- const s = this.outlets.get(e);
751
- s == null || s.dispose(), this.outlets.delete(e);
741
+ const n = this.outlets.get(e);
742
+ n == null || n.dispose(), this.outlets.delete(e);
752
743
  return;
753
744
  }
754
745
  process.env.NODE_ENV !== "production" && console.warn(`detach(): Could not find View Outlet with key ${e}`);
755
746
  return;
756
747
  }
757
- this.outlets.forEach((s) => {
758
- s.dispose();
748
+ this.outlets.forEach((n) => {
749
+ n.dispose();
759
750
  }), this.outlets.clear();
760
751
  }
761
752
  triggerStateIfApplicable(e) {
762
- return this.container.getAsync("router").then((s) => {
753
+ return this.container.getAsync("router").then((n) => {
763
754
  switch (e) {
764
755
  case "closed":
765
756
  this.close();
@@ -768,22 +759,23 @@ class Xt extends Xe {
768
759
  this.open();
769
760
  break;
770
761
  case "hidden":
771
- this.hide(), s.start();
762
+ this.hide(), n.start();
772
763
  break;
773
764
  default:
774
765
  return;
775
766
  }
776
767
  });
777
768
  }
778
- getOrCreateViewOutlet(e, s) {
779
- return this.outlets.has(e) ? this.outlets.get(e) : new Lt(this.container, s);
769
+ getOrCreateViewOutlet(e, n) {
770
+ return this.outlets.has(e) ? this.outlets.get(e) : new $t(this.container, n);
780
771
  }
781
772
  render(e = {}) {
782
773
  if (process.env.NODE_ENV !== "production" && console.warn("widget.render() is deprecated. Use widget.attach() instead."), e.open) {
783
- const s = C(m({}, e), {
774
+ const n = C(m({}, e), {
784
775
  withRenderState: "open"
776
+ /* Open */
785
777
  });
786
- return this.attach(s);
778
+ return this.attach(n);
787
779
  }
788
780
  return this.attach(e);
789
781
  }
@@ -793,42 +785,42 @@ class Xt extends Xe {
793
785
  setSettings(e) {
794
786
  return Promise.all([
795
787
  this.container.get("settings"),
796
- _(this.container, ee, I.Necessary, {
797
- medium: E.Local
788
+ V(this.container, Z, _.Necessary, {
789
+ medium: v.Local
798
790
  })
799
- ]).then(([s, i]) => Promise.resolve(e(s)).then((o) => i(o).then(() => {
800
- const r = m(m({}, s), o);
801
- return this.widget.events.dispatch("widget:settings-updated", r), r;
791
+ ]).then(([n, s]) => Promise.resolve(e(n)).then((i) => s(i).then(() => {
792
+ const o = m(m({}, n), i);
793
+ return this.widget.events.dispatch("widget:settings-updated", o), o;
802
794
  })));
803
795
  }
804
796
  clearSettings() {
805
- return _(
797
+ return V(
806
798
  this.container,
807
- ee,
808
- I.Necessary,
809
- { medium: E.Local }
799
+ Z,
800
+ _.Necessary,
801
+ { medium: v.Local }
810
802
  ).then((e) => e()).then(() => this.container.get("settings")).then((e) => {
811
803
  this.widget.events.dispatch("widget:settings-updated", e);
812
804
  });
813
805
  }
814
- action({ action: e, value: s }) {
815
- return this.container.getAsync("actionResolver").then((i) => {
816
- i.action(this.widget.name, e, s);
806
+ action({ action: e, value: n }) {
807
+ return this.container.getAsync("actionResolver").then((s) => {
808
+ s.action(this.widget.name, e, n);
817
809
  });
818
810
  }
819
811
  renderState() {
820
- if (qe(this.container))
812
+ if (Ye(this.container))
821
813
  return Promise.resolve(O.open);
822
814
  const e = () => $(
823
815
  this.container,
824
- U,
825
- E.Session
826
- ).then((i = O.closed) => i), s = () => $(
816
+ H,
817
+ v.Session
818
+ ).then((s = O.closed) => s), n = () => $(
827
819
  this.container,
828
- U,
829
- E.Session
830
- ).then((i = O.closed) => i);
831
- return this.container.getAsync("router").then((i) => i.isSticky() ? s().then((o) => o === O.open ? o : e()) : e());
820
+ H,
821
+ v.Session
822
+ ).then((s = O.closed) => s);
823
+ return this.container.getAsync("router").then((s) => s.isSticky() ? n().then((i) => i === O.open ? i : e()) : e());
832
824
  }
833
825
  hide() {
834
826
  return this.outlets.size < 1 ? (process.env.NODE_ENV !== "production" && console.warn(
@@ -852,36 +844,36 @@ class Xt extends Xe {
852
844
  "show(): Command is deprecated and will be removed in the future. Use open() instead."
853
845
  ), this.open();
854
846
  }
855
- onAction(e, s) {
847
+ onAction(e, n) {
856
848
  switch (e) {
857
849
  case "close":
858
850
  case "open":
859
851
  case "hide":
860
- const i = e === "open" ? O.open : e === "close" ? O.closed : O.hidden;
861
- return this.setRenderState(i).then(() => {
862
- this.setTriggerState(i === O.open), i !== O.hidden ? i === O.open ? this.onOpen() : this.onClose() : this.outlets.forEach(
863
- (o) => {
864
- var r;
865
- return (r = o.options.triggerDOMElement) == null ? void 0 : r.setAttribute("aria-expanded", "false");
852
+ const s = e === "open" ? O.open : e === "close" ? O.closed : O.hidden;
853
+ return this.setRenderState(s).then(() => {
854
+ this.setTriggerState(s === O.open), s !== O.hidden ? s === O.open ? this.onOpen() : this.onClose() : this.outlets.forEach(
855
+ (i) => {
856
+ var o;
857
+ return (o = i.options.triggerDOMElement) == null ? void 0 : o.setAttribute("aria-expanded", "false");
866
858
  }
867
859
  );
868
860
  });
869
861
  }
870
862
  }
871
863
  setRenderState(e) {
872
- const { invoke: s, events: i } = this.container.get("$widget");
864
+ const { invoke: n, events: s } = this.container.get("$widget");
873
865
  return Promise.all([
874
- _(this.container, U, I.Necessary, {
875
- medium: E.Session
866
+ V(this.container, H, _.Necessary, {
867
+ medium: v.Session
876
868
  }),
877
- _(this.container, U, I.Necessary, {
878
- medium: E.Local,
869
+ V(this.container, H, _.Necessary, {
870
+ medium: v.Local,
879
871
  duration: { minutes: 5 }
880
872
  }),
881
873
  this.container.getAsync("router"),
882
- s("renderState")
883
- ]).then(([o, r, a, c]) => {
884
- e === "unset" || !e ? (r(), o()) : (a.isSticky() && r(e), o(e)), i.dispatch("widget:render-state-changed", {
874
+ n("renderState")
875
+ ]).then(([i, o, r, c]) => {
876
+ e === "unset" || !e ? (o(), i()) : (r.isSticky() && o(e), i(e)), s.dispatch("widget:render-state-changed", {
885
877
  previous: c,
886
878
  next: e
887
879
  });
@@ -889,70 +881,70 @@ class Xt extends Xe {
889
881
  }
890
882
  onOpen() {
891
883
  return this.container.getAsync("router").then((e) => (this.outlets.forEach(
892
- (s) => {
893
- var i;
894
- return (i = s.options.triggerDOMElement) == null ? void 0 : i.setAttribute("aria-expanded", "true");
884
+ (n) => {
885
+ var s;
886
+ return (s = n.options.triggerDOMElement) == null ? void 0 : s.setAttribute("aria-expanded", "true");
895
887
  }
896
888
  ), e.start()));
897
889
  }
898
890
  onClose() {
899
891
  const e = this.container.getManyAsync("router", "components");
900
- return (() => this.container.get("settings").then((i) => {
901
- const { activate: o } = this.container.get("$settings");
902
- return i.activate !== o ? this.setSettings(() => Promise.resolve({ activate: o })) : Promise.resolve();
892
+ return (() => this.container.get("settings").then((s) => {
893
+ const { activate: i } = this.container.get("$settings");
894
+ return s.activate !== i ? this.setSettings(() => Promise.resolve({ activate: i })) : Promise.resolve();
903
895
  }))().then(() => e).then(
904
896
  ({
905
- router: i,
906
- components: o
897
+ router: s,
898
+ components: i
907
899
  }) => {
908
- const r = o.nodes.visible;
900
+ const o = i.nodes.visible;
909
901
  return this.outlets.forEach(
910
- (a) => {
902
+ (r) => {
911
903
  var c;
912
- return (c = a.options.triggerDOMElement) == null ? void 0 : c.setAttribute("aria-expanded", "false");
904
+ return (c = r.options.triggerDOMElement) == null ? void 0 : c.setAttribute("aria-expanded", "false");
913
905
  }
914
- ), r.filter(
915
- (a) => a.attributes.properties.animation && a.attributes.properties.animation !== "none"
916
- ).length ? new Promise((a) => {
906
+ ), o.filter(
907
+ (r) => r.attributes.properties.animation && r.attributes.properties.animation !== "none"
908
+ ).length ? new Promise((r) => {
917
909
  setTimeout(() => {
918
- a(i);
910
+ r(s);
919
911
  }, 200);
920
- }) : Promise.resolve(i);
912
+ }) : Promise.resolve(s);
921
913
  }
922
- ).then((i) => i.stop());
914
+ ).then((s) => s.stop());
923
915
  }
924
916
  setTriggerState(e) {
925
- this.outlets.forEach((s) => {
917
+ this.outlets.forEach((n) => {
926
918
  const {
927
- options: { triggerDOMElement: i, triggerOptions: o }
928
- } = s, { openTooltip: r, closedTooltip: a } = o || {};
929
- i && (e ? be(i, r) : Dt(i, a));
919
+ options: { triggerDOMElement: s, triggerOptions: i }
920
+ } = n, { openTooltip: o, closedTooltip: r } = i || {};
921
+ s && (e ? ye(s, o) : At(s, r));
930
922
  });
931
923
  }
932
924
  deactivate() {
933
- this.subs.forEach((s) => s());
925
+ this.subs.forEach((n) => n());
934
926
  const e = [];
935
- return this.outlets.forEach((s) => e.push(s.dispose())), $(
927
+ return this.outlets.forEach((n) => e.push(n.dispose())), $(
936
928
  this.container,
937
- ue,
938
- E.Local
939
- ).then((s) => s === this.widget.name ? _(
929
+ le,
930
+ v.Local
931
+ ).then((n) => n === this.widget.name ? V(
940
932
  this.container,
941
- ue,
942
- I.Necessary,
933
+ le,
934
+ _.Necessary,
943
935
  {
944
- medium: E.Local,
945
- scope: Qe.Implementation
936
+ medium: v.Local,
937
+ scope: qe.Implementation
946
938
  }
947
- ).then((i) => i()).then(() => Promise.all(e)) : Promise.all(e));
939
+ ).then((s) => s()).then(() => Promise.all(e)) : Promise.all(e));
948
940
  }
949
941
  }
950
942
  export {
951
- ie as Component,
952
- wt as DetachedComponent,
953
- Xt as GridWidget,
954
- Jt as NotFound,
955
- Xt as Widget,
956
- q as genericComponentStyling
943
+ te as Component,
944
+ bt as DetachedComponent,
945
+ Jt as GridWidget,
946
+ Zt as NotFound,
947
+ Jt as Widget,
948
+ U as genericComponentStyling
957
949
  };
958
950
  //# sourceMappingURL=index.js.map