@telia-ace/widget-runtime-flamingo 1.1.123-rc.8 → 1.1.123
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/{index-Cz3Sz1kR.mjs → index-DPP20EVG.mjs} +430 -431
- package/{index-VZwzuJ8Y.js → index-PiwZOlQl.js} +29 -29
- package/index.js +1 -1
- package/index.mjs +4 -4
- package/package.json +1 -1
- package/{render-C2BAGuUX.mjs → render-3WYwVT0N.mjs} +12 -12
- package/{render-C5X01J2f.js → render-dq0_cXIY.js} +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Dt = (i, t, e, ...s) => {
|
|
2
2
|
const n = `[${i.get("$environment").name || "webprovisions"}] ${e}`;
|
|
3
3
|
switch (t) {
|
|
4
4
|
case "info":
|
|
@@ -11,16 +11,16 @@ const Mt = (i, t, e, ...s) => {
|
|
|
11
11
|
console.error(n, ...s);
|
|
12
12
|
break;
|
|
13
13
|
}
|
|
14
|
-
},
|
|
14
|
+
}, We = (i) => {
|
|
15
15
|
const t = i.container || i;
|
|
16
16
|
return {
|
|
17
|
-
info: (e, ...s) =>
|
|
18
|
-
warn: (e, ...s) =>
|
|
19
|
-
error: (e, ...s) =>
|
|
17
|
+
info: (e, ...s) => Dt(t, "info", e, ...s),
|
|
18
|
+
warn: (e, ...s) => Dt(t, "warning", e, ...s),
|
|
19
|
+
error: (e, ...s) => Dt(t, "error", e, ...s)
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
var X = /* @__PURE__ */ ((i) => (i.Implementation = "implementation", i.Widget = "widget", i))(X || {}), N = /* @__PURE__ */ ((i) => (i.Pre = "pre", i.Post = "post", i))(N || {});
|
|
23
|
-
const
|
|
23
|
+
const qe = (i, t, e, s) => {
|
|
24
24
|
try {
|
|
25
25
|
const n = new t(e, s);
|
|
26
26
|
return {
|
|
@@ -44,10 +44,10 @@ const We = (i, t, e, s) => {
|
|
|
44
44
|
throw n;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
function
|
|
47
|
+
function oe(i, t) {
|
|
48
48
|
return typeof i > "u" ? t : i;
|
|
49
49
|
}
|
|
50
|
-
let
|
|
50
|
+
let Je = class {
|
|
51
51
|
constructor(t = {}) {
|
|
52
52
|
this.part = t;
|
|
53
53
|
}
|
|
@@ -59,8 +59,8 @@ let qe = class {
|
|
|
59
59
|
defaultArgs: void 0,
|
|
60
60
|
handlerResolver: e
|
|
61
61
|
} : n = {
|
|
62
|
-
scope:
|
|
63
|
-
stage:
|
|
62
|
+
scope: oe(e.scope, X.Widget),
|
|
63
|
+
stage: oe(e.stage, N.Post),
|
|
64
64
|
defaultArgs: e.defaultArgs,
|
|
65
65
|
handlerResolver: s
|
|
66
66
|
};
|
|
@@ -74,11 +74,11 @@ let qe = class {
|
|
|
74
74
|
return this.part;
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
const
|
|
78
|
-
const t = new
|
|
77
|
+
const Ee = (i) => {
|
|
78
|
+
const t = new Je({});
|
|
79
79
|
return i(t), t.get();
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
Ee((i) => {
|
|
82
82
|
i.createCommand(
|
|
83
83
|
"types.register",
|
|
84
84
|
{ scope: X.Implementation, stage: N.Pre },
|
|
@@ -116,7 +116,7 @@ xe((i) => {
|
|
|
116
116
|
a
|
|
117
117
|
) : s;
|
|
118
118
|
try {
|
|
119
|
-
const p =
|
|
119
|
+
const p = qe(
|
|
120
120
|
o,
|
|
121
121
|
a,
|
|
122
122
|
r,
|
|
@@ -124,7 +124,7 @@ xe((i) => {
|
|
|
124
124
|
);
|
|
125
125
|
r.get("$plugins").push(p), l && p.invoke("initialize", null);
|
|
126
126
|
} catch (p) {
|
|
127
|
-
|
|
127
|
+
We(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));
|
|
@@ -157,40 +157,40 @@ xe((i) => {
|
|
|
157
157
|
}
|
|
158
158
|
);
|
|
159
159
|
});
|
|
160
|
-
function
|
|
160
|
+
function Ke(i) {
|
|
161
161
|
const t = {};
|
|
162
162
|
return [].filter.call(i.attributes, (e) => /^data-/.test(e.name)).map((e) => e.name).forEach((e) => t[e.substr(5)] = i.getAttribute(e)), t;
|
|
163
163
|
}
|
|
164
164
|
const Fe = (i, t, e) => {
|
|
165
|
-
const s =
|
|
165
|
+
const s = Ke(i);
|
|
166
166
|
e({
|
|
167
167
|
sourceDOMElement: i,
|
|
168
168
|
eventType: t,
|
|
169
169
|
data: s
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
|
-
function
|
|
172
|
+
function ae(i, t, e) {
|
|
173
173
|
i.forEach((s) => {
|
|
174
174
|
s.dataset.attached !== "true" && (Fe(s, t, e), s.dataset.monitored = "true");
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Ge(i, t, e) {
|
|
178
178
|
const s = i.container.get("bootstrapping.monitor");
|
|
179
179
|
s && s.events.subscribe("bootstrap:trigger-elements-updated", (r, o) => {
|
|
180
|
-
|
|
180
|
+
ae(
|
|
181
181
|
o.triggerElements,
|
|
182
182
|
t,
|
|
183
183
|
e
|
|
184
184
|
);
|
|
185
185
|
});
|
|
186
186
|
const n = i.container.get("triggerElements");
|
|
187
|
-
n &&
|
|
187
|
+
n && ae(
|
|
188
188
|
n,
|
|
189
189
|
t,
|
|
190
190
|
e
|
|
191
191
|
);
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
Ee((i) => {
|
|
194
194
|
i.createCommand(
|
|
195
195
|
"ready",
|
|
196
196
|
{ scope: X.Implementation, stage: N.Pre },
|
|
@@ -202,7 +202,7 @@ xe((i) => {
|
|
|
202
202
|
}
|
|
203
203
|
);
|
|
204
204
|
});
|
|
205
|
-
const
|
|
205
|
+
const Lt = (i, t, e, ...s) => {
|
|
206
206
|
const n = `[${i.get("$environment").name || "webprovisions"}] ${e}`;
|
|
207
207
|
switch (t) {
|
|
208
208
|
case "info":
|
|
@@ -215,16 +215,16 @@ const Dt = (i, t, e, ...s) => {
|
|
|
215
215
|
console.error(n, ...s);
|
|
216
216
|
break;
|
|
217
217
|
}
|
|
218
|
-
},
|
|
218
|
+
}, Ye = (i) => {
|
|
219
219
|
const t = i.container || i;
|
|
220
220
|
return {
|
|
221
|
-
info: (e, ...s) =>
|
|
222
|
-
warn: (e, ...s) =>
|
|
223
|
-
error: (e, ...s) =>
|
|
221
|
+
info: (e, ...s) => Lt(t, "info", e, ...s),
|
|
222
|
+
warn: (e, ...s) => Lt(t, "warning", e, ...s),
|
|
223
|
+
error: (e, ...s) => Lt(t, "error", e, ...s)
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
|
-
var
|
|
227
|
-
const
|
|
226
|
+
var vt = /* @__PURE__ */ ((i) => (i.Implementation = "implementation", i.Widget = "widget", i))(vt || {}), R = /* @__PURE__ */ ((i) => (i.Pre = "pre", i.Post = "post", i))(R || {});
|
|
227
|
+
const Ze = (i, t, e, s) => {
|
|
228
228
|
try {
|
|
229
229
|
const n = new t(e, s);
|
|
230
230
|
return {
|
|
@@ -248,23 +248,23 @@ const Ye = (i, t, e, s) => {
|
|
|
248
248
|
throw n;
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
function
|
|
251
|
+
function ce(i, t) {
|
|
252
252
|
return typeof i > "u" ? t : i;
|
|
253
253
|
}
|
|
254
|
-
class
|
|
254
|
+
class Qe {
|
|
255
255
|
constructor(t = {}) {
|
|
256
256
|
this.part = t;
|
|
257
257
|
}
|
|
258
258
|
createCommand(t, e, s) {
|
|
259
259
|
let n;
|
|
260
260
|
typeof e == "function" ? n = {
|
|
261
|
-
scope:
|
|
261
|
+
scope: vt.Widget,
|
|
262
262
|
stage: R.Post,
|
|
263
263
|
defaultArgs: void 0,
|
|
264
264
|
handlerResolver: e
|
|
265
265
|
} : n = {
|
|
266
|
-
scope:
|
|
267
|
-
stage:
|
|
266
|
+
scope: ce(e.scope, vt.Widget),
|
|
267
|
+
stage: ce(e.stage, R.Post),
|
|
268
268
|
defaultArgs: e.defaultArgs,
|
|
269
269
|
handlerResolver: s
|
|
270
270
|
};
|
|
@@ -279,13 +279,13 @@ class Ze {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
const Ft = (i) => {
|
|
282
|
-
const t = new
|
|
282
|
+
const t = new Qe({});
|
|
283
283
|
return i(t), t.get();
|
|
284
284
|
};
|
|
285
285
|
Ft((i) => {
|
|
286
286
|
i.createCommand(
|
|
287
287
|
"types.register",
|
|
288
|
-
{ scope:
|
|
288
|
+
{ scope: vt.Implementation, stage: R.Pre },
|
|
289
289
|
(t) => (e, s) => {
|
|
290
290
|
t.container.get("$types")[e] = s;
|
|
291
291
|
}
|
|
@@ -320,7 +320,7 @@ Ft((i) => {
|
|
|
320
320
|
a
|
|
321
321
|
) : s;
|
|
322
322
|
try {
|
|
323
|
-
const p =
|
|
323
|
+
const p = Ze(
|
|
324
324
|
o,
|
|
325
325
|
a,
|
|
326
326
|
r,
|
|
@@ -328,7 +328,7 @@ Ft((i) => {
|
|
|
328
328
|
);
|
|
329
329
|
r.get("$plugins").push(p), l && p.invoke("initialize", null);
|
|
330
330
|
} catch (p) {
|
|
331
|
-
|
|
331
|
+
Ye(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,8 +361,8 @@ Ft((i) => {
|
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
363
|
});
|
|
364
|
-
var
|
|
365
|
-
class
|
|
364
|
+
var Ce = /* @__PURE__ */ ((i) => (i.Activating = "activating", i.Loading = "loading", i.Activated = "activated", i.Deactivating = "deactivating", i.Deactivated = "deactivated", i))(Ce || {});
|
|
365
|
+
class Xe {
|
|
366
366
|
/**
|
|
367
367
|
* Creates a new `Widget` instance.
|
|
368
368
|
* @param container The `Container` instance to base the widget upon.
|
|
@@ -373,7 +373,7 @@ class Qe {
|
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const xt = (i, t, ...e) => typeof t == "string" ? i(`[humany] ${t}`, ...e) : i(t, ...e), nt = class G {
|
|
377
377
|
constructor() {
|
|
378
378
|
this.keys = [], this.log = (t, ...e) => this.lookup(t, () => G.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => G.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => G.error(...e)), this.info = (t, ...e) => this.lookup(t, () => G.info(...e));
|
|
379
379
|
}
|
|
@@ -381,21 +381,21 @@ const At = (i, t, ...e) => typeof t == "string" ? i(`[humany] ${t}`, ...e) : i(t
|
|
|
381
381
|
this.keys.indexOf(t) === -1 && (this.keys.push(t), e());
|
|
382
382
|
}
|
|
383
383
|
};
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
const
|
|
384
|
+
nt.log = (...i) => xt(console.log, ...i);
|
|
385
|
+
nt.warn = (...i) => xt(console.warn, ...i);
|
|
386
|
+
nt.error = (...i) => xt(console.error, ...i);
|
|
387
|
+
nt.info = (...i) => xt(console.info, ...i);
|
|
388
|
+
let b = nt;
|
|
389
|
+
const Oe = (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 ?
|
|
395
|
+
e = i[s], t[s] = typeof e == "object" && e !== null ? Oe(e) : e;
|
|
396
396
|
return t;
|
|
397
397
|
};
|
|
398
|
-
function
|
|
398
|
+
function he(i) {
|
|
399
399
|
let t = 0;
|
|
400
400
|
if (i.length === 0)
|
|
401
401
|
return t.toString();
|
|
@@ -405,7 +405,7 @@ function ce(i) {
|
|
|
405
405
|
}
|
|
406
406
|
return t.toString();
|
|
407
407
|
}
|
|
408
|
-
let
|
|
408
|
+
let ts = class {
|
|
409
409
|
constructor(t, e) {
|
|
410
410
|
this.lockWarningTime = t, this.lockErrorTime = e, this.tasks = [], this.current = Promise.resolve(), this.next = this.next.bind(this);
|
|
411
411
|
}
|
|
@@ -418,7 +418,7 @@ let Xe = class {
|
|
|
418
418
|
if (t) {
|
|
419
419
|
let e;
|
|
420
420
|
const s = setTimeout(() => {
|
|
421
|
-
process.env.NODE_ENV !== "production" &&
|
|
421
|
+
process.env.NODE_ENV !== "production" && b.warn(
|
|
422
422
|
`A lock has exceeded ${this.lockWarningTime} ms. Waiting additional ${this.lockErrorTime} ms before rejecting the task.`,
|
|
423
423
|
t
|
|
424
424
|
), e = setTimeout(() => {
|
|
@@ -435,16 +435,16 @@ let Xe = class {
|
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
|
-
const
|
|
438
|
+
const lt = /* @__PURE__ */ new WeakMap();
|
|
439
439
|
function x(i, t = 5e3, e = 1e3) {
|
|
440
|
-
return
|
|
441
|
-
const o =
|
|
440
|
+
return lt.has(i) || lt.set(i, new ts(t, e)), (s) => new Promise((n, r) => {
|
|
441
|
+
const o = lt.get(i);
|
|
442
442
|
o.add(s, n, r, () => {
|
|
443
|
-
o.tasks.length ||
|
|
443
|
+
o.tasks.length || lt.delete(i);
|
|
444
444
|
});
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
|
-
const
|
|
447
|
+
const es = (i, t) => {
|
|
448
448
|
const e = () => t.querySelectorAll("[data-loading=true]").length > 0, s = /* @__PURE__ */ (() => {
|
|
449
449
|
let n = !1;
|
|
450
450
|
return () => {
|
|
@@ -464,7 +464,7 @@ const ts = (i, t) => {
|
|
|
464
464
|
childList: !0,
|
|
465
465
|
subtree: !0
|
|
466
466
|
});
|
|
467
|
-
},
|
|
467
|
+
}, ss = (i, t) => {
|
|
468
468
|
i.get("$widget").container.getAsync("components").then((e) => {
|
|
469
469
|
e.events.subscribeOnce(
|
|
470
470
|
"components:component-model-initialized",
|
|
@@ -482,7 +482,7 @@ const ts = (i, t) => {
|
|
|
482
482
|
const d = l.getAttribute && l.getAttribute("data-name");
|
|
483
483
|
return d && s.indexOf(d) > -1 && c.push(d), c;
|
|
484
484
|
}, []);
|
|
485
|
-
s = s.filter((c) => h.indexOf(c) === -1), !n && s.length === 0 && (n = !0,
|
|
485
|
+
s = s.filter((c) => h.indexOf(c) === -1), !n && s.length === 0 && (n = !0, es(i, t), o.disconnect());
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
488
|
}).observe(t, {
|
|
@@ -497,10 +497,10 @@ const ts = (i, t) => {
|
|
|
497
497
|
);
|
|
498
498
|
});
|
|
499
499
|
}, O = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
|
|
500
|
-
function
|
|
500
|
+
function rt() {
|
|
501
501
|
return O() + O() + "-" + O() + "-" + O() + "-" + O() + "-" + O() + O() + O();
|
|
502
502
|
}
|
|
503
|
-
class
|
|
503
|
+
class is {
|
|
504
504
|
constructor(t) {
|
|
505
505
|
const { events: e } = t.get("$widget");
|
|
506
506
|
this.events = e.createChild(this);
|
|
@@ -519,7 +519,7 @@ class ss {
|
|
|
519
519
|
);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
const
|
|
522
|
+
const Se = (i) => {
|
|
523
523
|
const t = [];
|
|
524
524
|
return [
|
|
525
525
|
(e, s) => {
|
|
@@ -546,16 +546,16 @@ let q = class {
|
|
|
546
546
|
return this.rules.push({ id: t }), this;
|
|
547
547
|
}
|
|
548
548
|
select() {
|
|
549
|
-
return new
|
|
549
|
+
return new ns(this.platform, this);
|
|
550
550
|
}
|
|
551
|
-
},
|
|
551
|
+
}, Gt = class {
|
|
552
552
|
constructor(t, e, s) {
|
|
553
|
-
this.platform = t, this.node = e, this.actions = new
|
|
553
|
+
this.platform = t, this.node = e, this.actions = new Et(
|
|
554
554
|
t,
|
|
555
555
|
new q(t).withId(e.id),
|
|
556
556
|
s
|
|
557
557
|
);
|
|
558
|
-
const [n, r] =
|
|
558
|
+
const [n, r] = Se(
|
|
559
559
|
this.platform.events
|
|
560
560
|
);
|
|
561
561
|
this.subscribe = n, this.unsubscribe = r;
|
|
@@ -585,10 +585,9 @@ let q = class {
|
|
|
585
585
|
dispose() {
|
|
586
586
|
this.unsubscribe(), this.actions.dispose();
|
|
587
587
|
}
|
|
588
|
-
}
|
|
589
|
-
class is {
|
|
588
|
+
}, ns = class {
|
|
590
589
|
constructor(t, e, s = !0) {
|
|
591
|
-
this.platform = t, this.target = e, this.clearOnDispose = s, this.removes = [], this.actions = new
|
|
590
|
+
this.platform = t, this.target = e, this.clearOnDispose = s, this.removes = [], this.actions = new Et(this.platform, this.target);
|
|
592
591
|
}
|
|
593
592
|
writeProperties(t, e) {
|
|
594
593
|
this.removes.push(
|
|
@@ -625,8 +624,8 @@ class is {
|
|
|
625
624
|
t();
|
|
626
625
|
}), this.actions.dispose();
|
|
627
626
|
}
|
|
628
|
-
}
|
|
629
|
-
const
|
|
627
|
+
};
|
|
628
|
+
const rs = (i, t, e) => {
|
|
630
629
|
const s = i.concat(), n = (r, o, a) => {
|
|
631
630
|
let h = !0;
|
|
632
631
|
if (s.length) {
|
|
@@ -646,7 +645,7 @@ const ns = (i, t, e) => {
|
|
|
646
645
|
};
|
|
647
646
|
return n(t, {}, e);
|
|
648
647
|
};
|
|
649
|
-
let
|
|
648
|
+
let Et = class {
|
|
650
649
|
constructor(t, e, s) {
|
|
651
650
|
this.platform = t, this.target = e, this.ns = s, this.subscriptions = [], this.create = this.create.bind(this);
|
|
652
651
|
}
|
|
@@ -680,18 +679,18 @@ let xt = class {
|
|
|
680
679
|
)).map((c) => c.fn);
|
|
681
680
|
return Promise.all(
|
|
682
681
|
a.map((c) => {
|
|
683
|
-
const l = new
|
|
682
|
+
const l = new Gt(
|
|
684
683
|
this.platform,
|
|
685
684
|
c,
|
|
686
685
|
this.ns
|
|
687
686
|
);
|
|
688
|
-
return
|
|
687
|
+
return rs(h, e, l).then(
|
|
689
688
|
(d) => {
|
|
690
689
|
const { data: u = {}, options: p, cancelled: g } = d;
|
|
691
690
|
return Promise.resolve(
|
|
692
691
|
g ? {} : o.fn(u, p, l)
|
|
693
|
-
).then((
|
|
694
|
-
n[c.id] =
|
|
692
|
+
).then((v) => {
|
|
693
|
+
n[c.id] = v;
|
|
695
694
|
});
|
|
696
695
|
}
|
|
697
696
|
);
|
|
@@ -733,9 +732,9 @@ Ft((i) => {
|
|
|
733
732
|
);
|
|
734
733
|
});
|
|
735
734
|
});
|
|
736
|
-
let
|
|
735
|
+
let qt = class {
|
|
737
736
|
constructor(t, e) {
|
|
738
|
-
this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id =
|
|
737
|
+
this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = rt(), this.type = e, this.attributes = {
|
|
739
738
|
context: {},
|
|
740
739
|
properties: {},
|
|
741
740
|
layout: {},
|
|
@@ -744,7 +743,7 @@ let Wt = class {
|
|
|
744
743
|
}
|
|
745
744
|
mount(t, e) {
|
|
746
745
|
let s = t.get("mounted-nodes");
|
|
747
|
-
return s || (s = /* @__PURE__ */ new Map(), t.register("mounted-nodes", s)), s.has(this) ? (process.env.NODE_ENV !== "production" &&
|
|
746
|
+
return s || (s = /* @__PURE__ */ new Map(), t.register("mounted-nodes", s)), s.has(this) ? (process.env.NODE_ENV !== "production" && b.error(
|
|
748
747
|
"Trying to mount an already mounted component node.",
|
|
749
748
|
this
|
|
750
749
|
), () => {
|
|
@@ -824,59 +823,59 @@ let Wt = class {
|
|
|
824
823
|
}), delete t.parent;
|
|
825
824
|
}
|
|
826
825
|
};
|
|
827
|
-
const
|
|
826
|
+
const Pe = (i, t, e) => {
|
|
828
827
|
for (let s = 0, n = i.length; s < n && e(i[s]) !== !0; s++) {
|
|
829
828
|
const r = t[i[s].id] || "default", o = i[s].getChildren(r);
|
|
830
|
-
|
|
829
|
+
Pe(o, t, e);
|
|
831
830
|
}
|
|
832
|
-
},
|
|
831
|
+
}, Ct = (i, t, e) => {
|
|
833
832
|
if (e(i) !== !0) {
|
|
834
833
|
const s = t[i.id] || "default", n = i.children[s];
|
|
835
|
-
|
|
834
|
+
Pe(n, t, e);
|
|
836
835
|
}
|
|
837
|
-
},
|
|
836
|
+
}, gt = (i, t) => {
|
|
838
837
|
const e = [];
|
|
839
|
-
return
|
|
838
|
+
return Ct(i, t, (s) => {
|
|
840
839
|
e.push(s);
|
|
841
840
|
}), e;
|
|
842
|
-
},
|
|
841
|
+
}, ke = (i, t, e) => {
|
|
843
842
|
let s;
|
|
844
|
-
return
|
|
843
|
+
return Ct(i, t, (n) => {
|
|
845
844
|
if (e(n))
|
|
846
845
|
return s = n, !0;
|
|
847
846
|
}), s;
|
|
848
847
|
};
|
|
849
|
-
|
|
848
|
+
class os {
|
|
850
849
|
constructor(t, e, s) {
|
|
851
850
|
this.root = t, this.switches = e, this.all = [], this.visible = [], this.detached = [], s.subscribe(
|
|
852
851
|
"components:node-appended",
|
|
853
852
|
(n, r) => {
|
|
854
|
-
this.all.push(r.node), this.visible =
|
|
853
|
+
this.all.push(r.node), this.visible = gt(t, e);
|
|
855
854
|
}
|
|
856
855
|
), s.subscribe(
|
|
857
856
|
"components:node-removed",
|
|
858
857
|
(n, r) => {
|
|
859
858
|
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 =
|
|
859
|
+
o > -1 && this.all.splice(o, 1), o = this.visible.indexOf(r.node), o > -1 && this.visible.splice(o, 1), this.visible = gt(t, e);
|
|
861
860
|
}
|
|
862
861
|
), s.subscribe(
|
|
863
862
|
"components:node-switched",
|
|
864
863
|
(n, r) => {
|
|
865
|
-
this.visible =
|
|
864
|
+
this.visible = gt(t, e);
|
|
866
865
|
}
|
|
867
866
|
);
|
|
868
867
|
}
|
|
869
868
|
query(t = {}) {
|
|
870
869
|
const e = [];
|
|
871
|
-
return
|
|
870
|
+
return Ct(this.root, this.switches, (s) => {
|
|
872
871
|
Object.keys(t).every((n) => t[n] === s[n]) && e.push(s);
|
|
873
872
|
}), e;
|
|
874
873
|
}
|
|
875
874
|
get(t) {
|
|
876
|
-
return
|
|
875
|
+
return ke(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);
|
|
877
876
|
}
|
|
878
|
-
}
|
|
879
|
-
class
|
|
877
|
+
}
|
|
878
|
+
let as = class {
|
|
880
879
|
constructor() {
|
|
881
880
|
this.handlers = /* @__PURE__ */ new Map();
|
|
882
881
|
}
|
|
@@ -886,62 +885,62 @@ class os {
|
|
|
886
885
|
get(t) {
|
|
887
886
|
return this.handlers.get(t);
|
|
888
887
|
}
|
|
889
|
-
}
|
|
890
|
-
const
|
|
888
|
+
};
|
|
889
|
+
const cs = (i) => {
|
|
891
890
|
let t = i, e = 0;
|
|
892
891
|
for (; t.parent; )
|
|
893
892
|
e = e + 1, t = t.parent;
|
|
894
893
|
return e;
|
|
895
|
-
},
|
|
896
|
-
([t, e]) => [
|
|
897
|
-
).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]),
|
|
894
|
+
}, hs = (i) => i.map(
|
|
895
|
+
([t, e]) => [cs(t), t, e]
|
|
896
|
+
).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), It = (i) => i instanceof Date ? !1 : i && typeof i == "object" && !Array.isArray(i), E = (i, ...t) => {
|
|
898
897
|
if (!t.length)
|
|
899
898
|
return i;
|
|
900
899
|
const e = t.shift();
|
|
901
|
-
if (
|
|
900
|
+
if (It(i) && It(e))
|
|
902
901
|
for (const s in e)
|
|
903
|
-
|
|
902
|
+
It(e[s]) ? (i[s] || Object.assign(i, { [s]: {} }), E(i[s], e[s])) : Object.assign(i, { [s]: e[s] });
|
|
904
903
|
return E(i, ...t);
|
|
905
|
-
},
|
|
904
|
+
}, ls = (i, t) => !i || i === "all" ? !0 : i.some((e) => t.indexOf(e) > -1), ds = (i, t) => {
|
|
906
905
|
let e = [], s = [], n;
|
|
907
906
|
const r = () => {
|
|
908
907
|
process.env.NODE_ENV !== "production" && console.time("state-processor.flush");
|
|
909
|
-
const a = /* @__PURE__ */ new Map(), h =
|
|
908
|
+
const a = /* @__PURE__ */ new Map(), h = hs(
|
|
910
909
|
e.map((l, d) => [l, s[d]])
|
|
911
910
|
), c = (l, d) => {
|
|
912
911
|
var u;
|
|
913
|
-
const p = a.get(l) || {}, g = d.context && !p.context,
|
|
912
|
+
const p = a.get(l) || {}, g = d.context && !p.context, v = d.properties && !p.properties, A = d.layout && !p.layout;
|
|
914
913
|
a.set(l, {
|
|
915
914
|
context: p.context || g,
|
|
916
|
-
properties: p.properties ||
|
|
915
|
+
properties: p.properties || v,
|
|
917
916
|
layout: p.layout || A
|
|
918
|
-
}),
|
|
917
|
+
}), v && (l.attributes.properties = {}), A && (l.attributes.layout = {}), g && (l.attributes.context = E(
|
|
919
918
|
{},
|
|
920
919
|
(u = l.parent) == null ? void 0 : u.attributes.context
|
|
921
920
|
));
|
|
922
|
-
const
|
|
921
|
+
const ht = [], kt = [], Nt = [];
|
|
923
922
|
if (l.changesets.forEach((w) => {
|
|
924
|
-
const [$,
|
|
925
|
-
|
|
923
|
+
const [$, Mt] = w;
|
|
924
|
+
ls(Mt.breakpoints, i.breakpoints) && (v && (typeof $.properties == "function" ? ht.push(
|
|
926
925
|
$.properties
|
|
927
|
-
) : E(l.attributes.properties, $.properties)), A && (typeof $.layout == "function" ?
|
|
926
|
+
) : E(l.attributes.properties, $.properties)), A && (typeof $.layout == "function" ? kt.push($.layout) : E(l.attributes.layout, $.layout)), g && (typeof $.context == "function" ? Nt.push(
|
|
928
927
|
$.context
|
|
929
928
|
) : E(l.attributes.context, $.context)));
|
|
930
|
-
}),
|
|
929
|
+
}), ht.forEach((w) => {
|
|
931
930
|
E(
|
|
932
931
|
l.attributes.properties,
|
|
933
932
|
w(l.attributes.properties)
|
|
934
933
|
);
|
|
935
|
-
}), Pt.forEach((w) => {
|
|
936
|
-
E(l.attributes.layout, w(l.attributes.layout));
|
|
937
934
|
}), kt.forEach((w) => {
|
|
935
|
+
E(l.attributes.layout, w(l.attributes.layout));
|
|
936
|
+
}), Nt.forEach((w) => {
|
|
938
937
|
E(l.attributes.context, w(l.attributes.context));
|
|
939
938
|
}), g || d.recursive) {
|
|
940
939
|
const w = i.getBranch(l), $ = d.recursive ? d : {
|
|
941
940
|
context: !!g
|
|
942
941
|
};
|
|
943
|
-
l.getChildren(w).forEach((
|
|
944
|
-
c(
|
|
942
|
+
l.getChildren(w).forEach((Mt) => {
|
|
943
|
+
c(Mt, $);
|
|
945
944
|
});
|
|
946
945
|
}
|
|
947
946
|
};
|
|
@@ -960,12 +959,12 @@ const as = (i) => {
|
|
|
960
959
|
return e.push(a), s.push(h), o();
|
|
961
960
|
};
|
|
962
961
|
};
|
|
963
|
-
class
|
|
962
|
+
class ot {
|
|
964
963
|
constructor(t, e = {}) {
|
|
965
|
-
this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new
|
|
966
|
-
const s = new
|
|
967
|
-
s.name = `root-${t.name}`, this.nodes = new
|
|
968
|
-
const n = this.processNode =
|
|
964
|
+
this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new as(), this.events = t.events.createChild(this);
|
|
965
|
+
const s = new qt(this.events, "root");
|
|
966
|
+
s.name = `root-${t.name}`, this.nodes = new os(s, this.switches, this.events);
|
|
967
|
+
const n = this.processNode = ds(
|
|
969
968
|
this,
|
|
970
969
|
(r) => {
|
|
971
970
|
const o = Array.from(r.keys());
|
|
@@ -1085,14 +1084,14 @@ class rt {
|
|
|
1085
1084
|
* @param type Type of node.
|
|
1086
1085
|
*/
|
|
1087
1086
|
createNode(t, e = {}) {
|
|
1088
|
-
const s = new
|
|
1087
|
+
const s = new qt(this.events, t);
|
|
1089
1088
|
return e.detached && this.nodes.detached.push(s), s;
|
|
1090
1089
|
}
|
|
1091
1090
|
components() {
|
|
1092
1091
|
return new q(this);
|
|
1093
1092
|
}
|
|
1094
1093
|
actions(t, e) {
|
|
1095
|
-
return new
|
|
1094
|
+
return new Et(this, t, e);
|
|
1096
1095
|
}
|
|
1097
1096
|
write(t) {
|
|
1098
1097
|
const {
|
|
@@ -1101,7 +1100,7 @@ class rt {
|
|
|
1101
1100
|
attributes: n,
|
|
1102
1101
|
options: r = {},
|
|
1103
1102
|
removable: o
|
|
1104
|
-
} = t, a = t.key ||
|
|
1103
|
+
} = t, a = t.key || rt(), h = { changeset: [n, r], target: s, removes: [] };
|
|
1105
1104
|
if (e) {
|
|
1106
1105
|
const c = this.providers[e];
|
|
1107
1106
|
c.write(a, s, n, r), h.removes.push(() => {
|
|
@@ -1136,7 +1135,7 @@ class rt {
|
|
|
1136
1135
|
this.subscriptions.forEach((t) => t());
|
|
1137
1136
|
}
|
|
1138
1137
|
}
|
|
1139
|
-
const
|
|
1138
|
+
const us = (i) => {
|
|
1140
1139
|
if (Array.isArray(i)) {
|
|
1141
1140
|
const [t, ...e] = i;
|
|
1142
1141
|
return {
|
|
@@ -1148,14 +1147,14 @@ const ds = (i) => {
|
|
|
1148
1147
|
definitionId: i,
|
|
1149
1148
|
overrides: []
|
|
1150
1149
|
};
|
|
1151
|
-
},
|
|
1150
|
+
}, bt = (i, t, e, s, n, r) => {
|
|
1152
1151
|
e.forEach((o) => {
|
|
1153
|
-
const a =
|
|
1152
|
+
const a = us(o), h = s[a.definitionId];
|
|
1154
1153
|
if (a.definitionId === "view") {
|
|
1155
1154
|
const c = i.createNode("view");
|
|
1156
1155
|
c.name = "view", Object.keys(n).forEach((l) => {
|
|
1157
1156
|
const d = n[l];
|
|
1158
|
-
|
|
1157
|
+
bt(
|
|
1159
1158
|
i,
|
|
1160
1159
|
c,
|
|
1161
1160
|
[d.entry],
|
|
@@ -1185,7 +1184,7 @@ const ds = (i) => {
|
|
|
1185
1184
|
} else {
|
|
1186
1185
|
const c = s[a.definitionId];
|
|
1187
1186
|
if (process.env.NODE_ENV !== "production" && !c) {
|
|
1188
|
-
|
|
1187
|
+
b.error(
|
|
1189
1188
|
`No definition found for component type '${a.definitionId}'.`
|
|
1190
1189
|
);
|
|
1191
1190
|
return;
|
|
@@ -1194,7 +1193,7 @@ const ds = (i) => {
|
|
|
1194
1193
|
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
1194
|
const u = { breakpoints: d.breakpoints };
|
|
1196
1195
|
d.properties && l.writeProperties(d.properties, u), d.context && l.writeContext(d.context, u), d.layout && l.writeLayout(d.layout, u);
|
|
1197
|
-
}), c.children &&
|
|
1196
|
+
}), c.children && bt(
|
|
1198
1197
|
i,
|
|
1199
1198
|
l,
|
|
1200
1199
|
c.children,
|
|
@@ -1203,7 +1202,7 @@ const ds = (i) => {
|
|
|
1203
1202
|
);
|
|
1204
1203
|
}
|
|
1205
1204
|
});
|
|
1206
|
-
},
|
|
1205
|
+
}, Ne = (i, t) => {
|
|
1207
1206
|
const { entry: e, components: s, breakpoints: n, views: r } = t, o = [];
|
|
1208
1207
|
return Object.keys(n).forEach((a) => {
|
|
1209
1208
|
const h = n[a], c = window.matchMedia(h);
|
|
@@ -1212,15 +1211,15 @@ const ds = (i) => {
|
|
|
1212
1211
|
d.matches ? i.addBreakpoint(a) : i.removeBreakpoint(a);
|
|
1213
1212
|
};
|
|
1214
1213
|
c.addListener(l), o.push(() => c.removeListener(l));
|
|
1215
|
-
}),
|
|
1214
|
+
}), bt(i, i.nodes.root, [e], s, r), () => o.forEach((a) => {
|
|
1216
1215
|
a();
|
|
1217
1216
|
});
|
|
1218
|
-
},
|
|
1217
|
+
}, Jt = (i, t) => ({
|
|
1219
1218
|
id: i.id,
|
|
1220
1219
|
type: i.type,
|
|
1221
1220
|
name: i.name,
|
|
1222
1221
|
branch: t || "default"
|
|
1223
|
-
}),
|
|
1222
|
+
}), Me = (i, t, e, s = rt(), n = {}) => i.getAsync("components").then((r) => {
|
|
1224
1223
|
let o;
|
|
1225
1224
|
if (typeof t == "string") {
|
|
1226
1225
|
const c = new q(r);
|
|
@@ -1229,7 +1228,7 @@ const ds = (i) => {
|
|
|
1229
1228
|
o = t;
|
|
1230
1229
|
const a = {}, h = (c) => {
|
|
1231
1230
|
const l = a[c.id];
|
|
1232
|
-
return l ? Promise.resolve(l.controller) :
|
|
1231
|
+
return l ? Promise.resolve(l.controller) : ot.getInstance(i).then((d) => new Gt(d, c, s));
|
|
1233
1232
|
};
|
|
1234
1233
|
r.events.subscribe(
|
|
1235
1234
|
"components:node-enter",
|
|
@@ -1251,9 +1250,9 @@ const ds = (i) => {
|
|
|
1251
1250
|
}
|
|
1252
1251
|
);
|
|
1253
1252
|
});
|
|
1254
|
-
class
|
|
1253
|
+
class ps {
|
|
1255
1254
|
constructor(t) {
|
|
1256
|
-
this.aliases = /* @__PURE__ */ new Map(), this.components = /* @__PURE__ */ new Map(), this.logger = new
|
|
1255
|
+
this.aliases = /* @__PURE__ */ new Map(), this.components = /* @__PURE__ */ new Map(), this.logger = new b();
|
|
1257
1256
|
const { events: e } = t.get("$widget");
|
|
1258
1257
|
this.events = e;
|
|
1259
1258
|
}
|
|
@@ -1287,34 +1286,34 @@ class us {
|
|
|
1287
1286
|
}
|
|
1288
1287
|
}
|
|
1289
1288
|
var _ = /* @__PURE__ */ ((i) => (i.open = "open", i.closed = "closed", i.hidden = "hidden", i))(_ || {});
|
|
1290
|
-
const
|
|
1289
|
+
const Yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1291
1290
|
__proto__: null,
|
|
1292
|
-
ActionResolver:
|
|
1293
|
-
ActionsController:
|
|
1294
|
-
ComponentNode:
|
|
1295
|
-
ComponentNodeController:
|
|
1296
|
-
ComponentPlatform:
|
|
1291
|
+
ActionResolver: is,
|
|
1292
|
+
ActionsController: Et,
|
|
1293
|
+
ComponentNode: qt,
|
|
1294
|
+
ComponentNodeController: Gt,
|
|
1295
|
+
ComponentPlatform: ot,
|
|
1297
1296
|
ComponentQuery: q,
|
|
1298
|
-
ComponentResolver:
|
|
1297
|
+
ComponentResolver: ps,
|
|
1299
1298
|
WidgetRenderState: _,
|
|
1300
|
-
asDescriptor:
|
|
1301
|
-
createChildren:
|
|
1302
|
-
createComponentModel:
|
|
1303
|
-
createEventSubscriber:
|
|
1304
|
-
extendComponent:
|
|
1305
|
-
findComponent:
|
|
1306
|
-
findVisibleComponents:
|
|
1307
|
-
traverseComponents:
|
|
1299
|
+
asDescriptor: Jt,
|
|
1300
|
+
createChildren: bt,
|
|
1301
|
+
createComponentModel: Ne,
|
|
1302
|
+
createEventSubscriber: Se,
|
|
1303
|
+
extendComponent: Me,
|
|
1304
|
+
findComponent: ke,
|
|
1305
|
+
findVisibleComponents: gt,
|
|
1306
|
+
traverseComponents: Ct
|
|
1308
1307
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1309
1308
|
var f = /* @__PURE__ */ ((i) => (i.Cookie = "cookie", i.Local = "local", i.Session = "session", i))(f || {}), J = /* @__PURE__ */ ((i) => (i.Tenant = "tenant", i.Implementation = "implementation", i.Widget = "widget", i))(J || {}), m = /* @__PURE__ */ ((i) => (i.Necessary = "necessary", i.Functional = "functional", i.Analytical = "analytical", i.Marketing = "marketing", i))(m || {});
|
|
1310
|
-
const S = (i, t, e, s = {}) =>
|
|
1309
|
+
const S = (i, t, e, s = {}) => le(i, e).then((n) => (process.env.NODE_ENV !== "production" && n && b.warn(
|
|
1311
1310
|
`createStorageWriter: Attempted to create storage writer using unallowed category.
|
|
1312
1311
|
Key: ${t}
|
|
1313
1312
|
Category: ${JSON.stringify(e)}
|
|
1314
1313
|
Options: ${JSON.stringify(s)}`
|
|
1315
|
-
), (r) => (
|
|
1314
|
+
), (r) => (Xt(i), le(i, e).then((o) => {
|
|
1316
1315
|
if (o) {
|
|
1317
|
-
process.env.NODE_ENV !== "production" &&
|
|
1316
|
+
process.env.NODE_ENV !== "production" && b.warn(
|
|
1318
1317
|
`storageWriter: Attempted to write to storage using unallowed category.
|
|
1319
1318
|
Key: ${t}
|
|
1320
1319
|
Category: ${JSON.stringify(e)}
|
|
@@ -1327,24 +1326,24 @@ const S = (i, t, e, s = {}) => he(i, e).then((n) => (process.env.NODE_ENV !== "p
|
|
|
1327
1326
|
scope: a = J.Widget,
|
|
1328
1327
|
medium: h = f.Session,
|
|
1329
1328
|
duration: c
|
|
1330
|
-
} = s, l =
|
|
1331
|
-
return l[a][t] =
|
|
1332
|
-
})))), C = (i, t, e = f.Session) => (
|
|
1329
|
+
} = s, l = ms();
|
|
1330
|
+
return l[a][t] = Qt(r, e, c), h === f.Cookie ? bs(i, l) : $s(i, h, l);
|
|
1331
|
+
})))), C = (i, t, e = f.Session) => (Xt(i), typeof t > "u" ? (process.env.NODE_ENV !== "production" && b.warn(
|
|
1333
1332
|
"readStorage: Undefined key passed when reading storage. ",
|
|
1334
1333
|
t,
|
|
1335
1334
|
e
|
|
1336
|
-
), Promise.resolve(void 0)) : e === f.Cookie ?
|
|
1337
|
-
(s) =>
|
|
1338
|
-
)), B = (i) => !!Object.entries(i).filter(([t, e]) => typeof e < "u").length,
|
|
1335
|
+
), Promise.resolve(void 0)) : e === f.Cookie ? vs(i).then((s) => $t(s, t)) : ws(i, e).then(
|
|
1336
|
+
(s) => $t(s, t)
|
|
1337
|
+
)), B = (i) => !!Object.entries(i).filter(([t, e]) => typeof e < "u").length, Rt = (i) => Object.entries(i).filter(([t, e]) => typeof e < "u").forEach(([t, { value: e }]) => {
|
|
1339
1338
|
typeof e > "u" && delete i[t];
|
|
1340
|
-
}),
|
|
1339
|
+
}), De = (i, t) => {
|
|
1341
1340
|
const e = {
|
|
1342
1341
|
tenant: { ...i.tenant, ...t.tenant },
|
|
1343
1342
|
implementation: { ...i.implementation, ...t.implementation },
|
|
1344
1343
|
widget: { ...i.widget, ...t.widget }
|
|
1345
1344
|
};
|
|
1346
|
-
return
|
|
1347
|
-
},
|
|
1345
|
+
return Rt(e.tenant), Rt(e.implementation), Rt(e.widget), e;
|
|
1346
|
+
}, gs = (i) => Object.entries(i).reduce(
|
|
1348
1347
|
(t, e) => {
|
|
1349
1348
|
const [s, n] = e;
|
|
1350
1349
|
return Object.entries(n).forEach((r) => {
|
|
@@ -1353,105 +1352,105 @@ const S = (i, t, e, s = {}) => he(i, e).then((n) => (process.env.NODE_ENV !== "p
|
|
|
1353
1352
|
}), t;
|
|
1354
1353
|
},
|
|
1355
1354
|
[]
|
|
1356
|
-
).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() ||
|
|
1355
|
+
).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() || St(), Ot = (i) => {
|
|
1357
1356
|
const {
|
|
1358
1357
|
name: t,
|
|
1359
1358
|
implementation: { name: e, tenant: s }
|
|
1360
1359
|
} = i.get("$widget");
|
|
1361
1360
|
return [
|
|
1362
1361
|
`humany_${s}`,
|
|
1363
|
-
`humany_${
|
|
1364
|
-
`humany_${
|
|
1362
|
+
`humany_${he(s + e)}`,
|
|
1363
|
+
`humany_${he(s + e + t)}`
|
|
1365
1364
|
];
|
|
1366
|
-
},
|
|
1365
|
+
}, Tt = (i) => {
|
|
1367
1366
|
const t = new RegExp(`(?:^|;)\\s?${i}=(.*?)(?:;|$)`, "i"), e = document.cookie.match(t);
|
|
1368
1367
|
return e && e[1] && JSON.parse(e[1]) || void 0;
|
|
1369
|
-
},
|
|
1368
|
+
}, jt = (i, t, e) => {
|
|
1370
1369
|
const s = `${i}=${JSON.stringify(t).trim()}`, n = `expires=${new Date(e).toUTCString()}`, r = "path=/", o = "SameSite=None;Secure";
|
|
1371
1370
|
return document.cookie = `${s}; ${n}; ${r}; ${o}`;
|
|
1372
|
-
},
|
|
1373
|
-
const [t, e, s] =
|
|
1371
|
+
}, Zt = (i) => {
|
|
1372
|
+
const [t, e, s] = Ot(i), n = Tt(t) || {}, r = Tt(e) || {}, o = Tt(s) || {};
|
|
1374
1373
|
return {
|
|
1375
1374
|
tenant: n,
|
|
1376
1375
|
implementation: r,
|
|
1377
1376
|
widget: o
|
|
1378
1377
|
};
|
|
1379
|
-
},
|
|
1380
|
-
const e =
|
|
1381
|
-
|
|
1378
|
+
}, Le = (i, t) => {
|
|
1379
|
+
const e = Zt(i), s = De(e, t), [n, r, o] = Ot(i), { tenant: a, implementation: h, widget: c } = s, l = gs(t), d = St({ days: -1 });
|
|
1380
|
+
jt(
|
|
1382
1381
|
n,
|
|
1383
1382
|
a,
|
|
1384
1383
|
B(a) ? l : d
|
|
1385
|
-
),
|
|
1384
|
+
), jt(
|
|
1386
1385
|
r,
|
|
1387
1386
|
h,
|
|
1388
1387
|
B(h) ? l : d
|
|
1389
|
-
),
|
|
1388
|
+
), jt(
|
|
1390
1389
|
o,
|
|
1391
1390
|
c,
|
|
1392
1391
|
B(c) ? l : d
|
|
1393
1392
|
);
|
|
1394
|
-
},
|
|
1395
|
-
const [e, s, n] =
|
|
1393
|
+
}, wt = (i, t) => {
|
|
1394
|
+
const [e, s, n] = Ot(i), r = t.getItem(e) || "{}", o = t.getItem(s) || "{}", a = t.getItem(n) || "{}";
|
|
1396
1395
|
return {
|
|
1397
1396
|
tenant: JSON.parse(r),
|
|
1398
1397
|
implementation: JSON.parse(o),
|
|
1399
1398
|
widget: JSON.parse(a)
|
|
1400
1399
|
};
|
|
1401
|
-
},
|
|
1402
|
-
const s =
|
|
1400
|
+
}, Kt = (i, t, e) => {
|
|
1401
|
+
const s = wt(i, t), n = De(s, e), [r, o, a] = Ot(i), { tenant: h, implementation: c, widget: l } = n;
|
|
1403
1402
|
B(h) ? t.setItem(r, JSON.stringify(h)) : t.removeItem(r), B(c) ? t.setItem(
|
|
1404
1403
|
o,
|
|
1405
1404
|
JSON.stringify(c)
|
|
1406
1405
|
) : t.removeItem(o), B(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);
|
|
1407
1406
|
const { events: d } = i.get("$widget");
|
|
1408
1407
|
d.dispatch("storage:changed", {});
|
|
1409
|
-
},
|
|
1408
|
+
}, ms = () => ({
|
|
1410
1409
|
tenant: {},
|
|
1411
1410
|
implementation: {},
|
|
1412
1411
|
widget: {}
|
|
1413
|
-
}),
|
|
1412
|
+
}), fs = (i) => i ? !!i && /* @__PURE__ */ new Date() > new Date(i) : !1, $t = (i, t) => {
|
|
1414
1413
|
const e = i.widget[t] || i.implementation[t] || i.tenant[t];
|
|
1415
1414
|
return e == null ? void 0 : e.value;
|
|
1416
|
-
},
|
|
1415
|
+
}, Qt = (i, t, e) => e ? {
|
|
1417
1416
|
value: i,
|
|
1418
1417
|
category: t,
|
|
1419
|
-
expiration: typeof e == "object" ?
|
|
1418
|
+
expiration: typeof e == "object" ? St(e) : e
|
|
1420
1419
|
} : {
|
|
1421
1420
|
value: i,
|
|
1422
1421
|
category: t
|
|
1423
|
-
},
|
|
1424
|
-
const e =
|
|
1422
|
+
}, mt = (i, t) => {
|
|
1423
|
+
const e = Oe(i);
|
|
1425
1424
|
return Object.entries(e).forEach(([s, n]) => {
|
|
1426
1425
|
Object.entries(n).forEach(([r, o]) => {
|
|
1427
1426
|
const { expiration: a, category: h } = o;
|
|
1428
|
-
(
|
|
1427
|
+
(fs(a) || ys(t, h)) && (n[r] = Qt(void 0, h, a));
|
|
1429
1428
|
});
|
|
1430
1429
|
}), e;
|
|
1431
|
-
},
|
|
1430
|
+
}, le = (i, t) => C(
|
|
1432
1431
|
i,
|
|
1433
1432
|
"storagePolicy",
|
|
1434
1433
|
f.Cookie
|
|
1435
1434
|
).then(
|
|
1436
1435
|
(e = [m.Necessary]) => !!t && e.indexOf(t) === -1
|
|
1437
|
-
),
|
|
1438
|
-
const t =
|
|
1436
|
+
), ys = (i = [m.Necessary], t) => !!t && i.indexOf(t) === -1, Xt = (i) => {
|
|
1437
|
+
const t = Zt(i), e = wt(i, window.localStorage), s = wt(i, sessionStorage), n = $t(t, "storagePolicy"), [r, o, a] = [
|
|
1439
1438
|
t,
|
|
1440
1439
|
e,
|
|
1441
1440
|
s
|
|
1442
|
-
].map((h) =>
|
|
1443
|
-
|
|
1444
|
-
},
|
|
1441
|
+
].map((h) => mt(h, n));
|
|
1442
|
+
Le(i, r), Kt(i, window.localStorage, o), Kt(i, window.sessionStorage, a);
|
|
1443
|
+
}, St = (i = { days: 30 }) => {
|
|
1445
1444
|
const { days: t = 0, hours: e = 0, minutes: s = 0, seconds: n = 0 } = i, r = /* @__PURE__ */ new Date();
|
|
1446
1445
|
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
|
-
},
|
|
1446
|
+
}, vs = (i) => x(document)(() => Zt(i)), bs = (i, t) => x(document)(() => Le(i, t)), ws = (i, t) => {
|
|
1448
1447
|
const e = t === f.Local ? window.localStorage : window.sessionStorage;
|
|
1449
|
-
return x(e)(() =>
|
|
1450
|
-
},
|
|
1448
|
+
return x(e)(() => wt(i, e));
|
|
1449
|
+
}, $s = (i, t, e) => {
|
|
1451
1450
|
const s = t === f.Local ? window.localStorage : window.sessionStorage;
|
|
1452
|
-
return x(s)(() =>
|
|
1451
|
+
return x(s)(() => Kt(i, s, e));
|
|
1453
1452
|
};
|
|
1454
|
-
let
|
|
1453
|
+
let ft = class {
|
|
1455
1454
|
constructor() {
|
|
1456
1455
|
this.memory = {
|
|
1457
1456
|
tenant: {},
|
|
@@ -1461,14 +1460,14 @@ let mt = class {
|
|
|
1461
1460
|
}
|
|
1462
1461
|
async setItem(t, e, s = {}) {
|
|
1463
1462
|
return x(this)(() => {
|
|
1464
|
-
const n =
|
|
1463
|
+
const n = mt(this.memory, [
|
|
1465
1464
|
m.Necessary
|
|
1466
1465
|
]), { scope: r = J.Tenant, expiration: o } = s;
|
|
1467
|
-
n[r][t] =
|
|
1466
|
+
n[r][t] = Qt(
|
|
1468
1467
|
e,
|
|
1469
1468
|
m.Necessary,
|
|
1470
|
-
(o == null ? void 0 : o.toISOString()) ||
|
|
1471
|
-
), this.memory = n, process.env.NODE_ENV !== "production" &&
|
|
1469
|
+
(o == null ? void 0 : o.toISOString()) || St()
|
|
1470
|
+
), this.memory = n, process.env.NODE_ENV !== "production" && b.warn(
|
|
1472
1471
|
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value stored temporarily in memory.
|
|
1473
1472
|
Key: ${t}
|
|
1474
1473
|
Value: ${JSON.stringify(e)}
|
|
@@ -1479,24 +1478,24 @@ let mt = class {
|
|
|
1479
1478
|
}
|
|
1480
1479
|
async getItem(t) {
|
|
1481
1480
|
return x(this)(() => {
|
|
1482
|
-
const e =
|
|
1481
|
+
const e = mt(this.memory, [
|
|
1483
1482
|
m.Necessary
|
|
1484
1483
|
]);
|
|
1485
|
-
process.env.NODE_ENV !== "production" &&
|
|
1484
|
+
process.env.NODE_ENV !== "production" && b.warn(
|
|
1486
1485
|
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value fetched from legacy memory storage.
|
|
1487
1486
|
Key: ${t}
|
|
1488
1487
|
Memory: ${JSON.stringify(e)}`
|
|
1489
1488
|
);
|
|
1490
|
-
const s =
|
|
1489
|
+
const s = $t(e, t);
|
|
1491
1490
|
return this.memory = e, s;
|
|
1492
1491
|
});
|
|
1493
1492
|
}
|
|
1494
1493
|
async removeItem(t) {
|
|
1495
1494
|
return x(this)(() => {
|
|
1496
|
-
const e =
|
|
1495
|
+
const e = mt(this.memory, [
|
|
1497
1496
|
m.Necessary
|
|
1498
1497
|
]);
|
|
1499
|
-
delete e.tenant[t], delete e.implementation[t], delete e.widget[t], this.memory = e, process.env.NODE_ENV !== "production" &&
|
|
1498
|
+
delete e.tenant[t], delete e.implementation[t], delete e.widget[t], this.memory = e, process.env.NODE_ENV !== "production" && b.warn(
|
|
1500
1499
|
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value removed from memory.
|
|
1501
1500
|
Key: ${t}
|
|
1502
1501
|
Memory: ${JSON.stringify(e)}`
|
|
@@ -1506,9 +1505,9 @@ let mt = class {
|
|
|
1506
1505
|
async clear() {
|
|
1507
1506
|
return Promise.resolve();
|
|
1508
1507
|
}
|
|
1509
|
-
},
|
|
1508
|
+
}, _s = class {
|
|
1510
1509
|
constructor() {
|
|
1511
|
-
this.cookies = new
|
|
1510
|
+
this.cookies = new ft(), this.session = new ft(), this.local = new ft();
|
|
1512
1511
|
}
|
|
1513
1512
|
};
|
|
1514
1513
|
Ft((i) => {
|
|
@@ -1518,7 +1517,7 @@ Ft((i) => {
|
|
|
1518
1517
|
const { consent: s } = e;
|
|
1519
1518
|
if (typeof s < "u") {
|
|
1520
1519
|
if (typeof s != "number" && typeof s != "string" && !Array.isArray(s)) {
|
|
1521
|
-
process.env.NODE_ENV !== "production" &&
|
|
1520
|
+
process.env.NODE_ENV !== "production" && b.warn(
|
|
1522
1521
|
`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
|
|
1523
1522
|
Passed consent: ${JSON.stringify(s)}`
|
|
1524
1523
|
);
|
|
@@ -1527,7 +1526,7 @@ Ft((i) => {
|
|
|
1527
1526
|
if (Array.isArray(s) && !s.every(
|
|
1528
1527
|
(r) => typeof r == "number" || typeof r == "string"
|
|
1529
1528
|
)) {
|
|
1530
|
-
process.env.NODE_ENV !== "production" &&
|
|
1529
|
+
process.env.NODE_ENV !== "production" && b.warn(
|
|
1531
1530
|
`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
|
|
1532
1531
|
Passed consent: ${JSON.stringify(s)}`
|
|
1533
1532
|
);
|
|
@@ -1539,7 +1538,7 @@ Ft((i) => {
|
|
|
1539
1538
|
m.Analytical,
|
|
1540
1539
|
m.Marketing
|
|
1541
1540
|
].filter((r, o, a) => typeof s == "number" ? s > o : typeof s == "string" ? a.indexOf(s) + 1 > o : Array.isArray(s) ? s.findIndex((h) => h === o + 1 || h === r) > -1 : !0);
|
|
1542
|
-
return n.indexOf(m.Necessary) === -1 && (process.env.NODE_ENV !== "production" &&
|
|
1541
|
+
return n.indexOf(m.Necessary) === -1 && (process.env.NODE_ENV !== "production" && b.warn(
|
|
1543
1542
|
`storagePolicyConfigurationApi: passed consent does not include category: '${m.Necessary}'. Consent has to atleast include the '${m.Necessary}' category.
|
|
1544
1543
|
Passed consent: ${JSON.stringify(s)}`
|
|
1545
1544
|
), n.unshift(m.Necessary)), S(
|
|
@@ -1552,22 +1551,22 @@ Ft((i) => {
|
|
|
1552
1551
|
duration: { days: 365 }
|
|
1553
1552
|
}
|
|
1554
1553
|
).then((r) => r(n)).then(() => {
|
|
1555
|
-
|
|
1554
|
+
Xt(t.container), t.events.dispatch("storage:policy-changed", n);
|
|
1556
1555
|
});
|
|
1557
1556
|
}
|
|
1558
1557
|
}
|
|
1559
1558
|
);
|
|
1560
1559
|
});
|
|
1561
|
-
const
|
|
1560
|
+
const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1562
1561
|
__proto__: null,
|
|
1563
1562
|
StorageCategory: m,
|
|
1564
1563
|
StorageMedium: f,
|
|
1565
|
-
StorageProvider:
|
|
1564
|
+
StorageProvider: _s,
|
|
1566
1565
|
StorageScope: J,
|
|
1567
|
-
StorageService:
|
|
1566
|
+
StorageService: ft,
|
|
1568
1567
|
createStorageWriter: S,
|
|
1569
1568
|
readStorage: C
|
|
1570
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1569
|
+
}, Symbol.toStringTag, { value: "Module" })), xs = (i) => {
|
|
1571
1570
|
const t = (n, r) => {
|
|
1572
1571
|
n && (r ? n.classList.add("ace-tabbing") : n.classList.remove("ace-tabbing"));
|
|
1573
1572
|
}, e = (n) => {
|
|
@@ -1579,7 +1578,7 @@ const _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1579
1578
|
document.removeEventListener("keydown", e), document.removeEventListener("click", s);
|
|
1580
1579
|
};
|
|
1581
1580
|
};
|
|
1582
|
-
function
|
|
1581
|
+
function Es(i, t) {
|
|
1583
1582
|
const {
|
|
1584
1583
|
// symbol,
|
|
1585
1584
|
widgetName: e,
|
|
@@ -1587,19 +1586,19 @@ function xs(i, t) {
|
|
|
1587
1586
|
ariaLabel: n = "",
|
|
1588
1587
|
tooltip: r = ""
|
|
1589
1588
|
} = t;
|
|
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),
|
|
1589
|
+
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), xs(i);
|
|
1591
1590
|
}
|
|
1592
|
-
function
|
|
1591
|
+
function Cs(i, t) {
|
|
1593
1592
|
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
1593
|
t && e.setAttribute("title", t), e.classList.remove("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
|
|
1595
1594
|
});
|
|
1596
1595
|
}
|
|
1597
|
-
function
|
|
1596
|
+
function Os(i) {
|
|
1598
1597
|
i instanceof HTMLElement ? (i.classList.remove("ace-trigger-active"), i.classList.add("ace-trigger-loading")) : i instanceof Array && i.forEach((t) => {
|
|
1599
1598
|
t.classList.remove("ace-trigger-active"), t.classList.add("ace-trigger-loading");
|
|
1600
1599
|
});
|
|
1601
1600
|
}
|
|
1602
|
-
function
|
|
1601
|
+
function Ie(i, t) {
|
|
1603
1602
|
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
1603
|
t && e.setAttribute("title", t), e.classList.add("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
|
|
1605
1604
|
});
|
|
@@ -1609,18 +1608,18 @@ function Le(i, t) {
|
|
|
1609
1608
|
* Copyright 2019 Google LLC
|
|
1610
1609
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1611
1610
|
*/
|
|
1612
|
-
const
|
|
1613
|
-
let
|
|
1611
|
+
const yt = globalThis, te = yt.ShadowRoot && (yt.ShadyCSS === void 0 || yt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ee = Symbol(), de = /* @__PURE__ */ new WeakMap();
|
|
1612
|
+
let Re = class {
|
|
1614
1613
|
constructor(t, e, s) {
|
|
1615
|
-
if (this._$cssResult$ = !0, s !==
|
|
1614
|
+
if (this._$cssResult$ = !0, s !== ee) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1616
1615
|
this.cssText = t, this.t = e;
|
|
1617
1616
|
}
|
|
1618
1617
|
get styleSheet() {
|
|
1619
1618
|
let t = this.o;
|
|
1620
1619
|
const e = this.t;
|
|
1621
|
-
if (
|
|
1620
|
+
if (te && t === void 0) {
|
|
1622
1621
|
const s = e !== void 0 && e.length === 1;
|
|
1623
|
-
s && (t =
|
|
1622
|
+
s && (t = de.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && de.set(e, t));
|
|
1624
1623
|
}
|
|
1625
1624
|
return t;
|
|
1626
1625
|
}
|
|
@@ -1628,33 +1627,33 @@ let Ie = class {
|
|
|
1628
1627
|
return this.cssText;
|
|
1629
1628
|
}
|
|
1630
1629
|
};
|
|
1631
|
-
const
|
|
1630
|
+
const Ss = (i) => new Re(typeof i == "string" ? i : i + "", void 0, ee), Te = (i, ...t) => {
|
|
1632
1631
|
const e = i.length === 1 ? i[0] : t.reduce(((s, n, r) => s + ((o) => {
|
|
1633
1632
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
1634
1633
|
if (typeof o == "number") return o;
|
|
1635
1634
|
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
1635
|
})(n) + i[r + 1]), i[0]);
|
|
1637
|
-
return new
|
|
1638
|
-
},
|
|
1639
|
-
if (
|
|
1636
|
+
return new Re(e, i, ee);
|
|
1637
|
+
}, Ps = (i, t) => {
|
|
1638
|
+
if (te) i.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
|
|
1640
1639
|
else for (const e of t) {
|
|
1641
|
-
const s = document.createElement("style"), n =
|
|
1640
|
+
const s = document.createElement("style"), n = yt.litNonce;
|
|
1642
1641
|
n !== void 0 && s.setAttribute("nonce", n), s.textContent = e.cssText, i.appendChild(s);
|
|
1643
1642
|
}
|
|
1644
|
-
},
|
|
1643
|
+
}, ue = te ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
|
1645
1644
|
let e = "";
|
|
1646
1645
|
for (const s of t.cssRules) e += s.cssText;
|
|
1647
|
-
return
|
|
1646
|
+
return Ss(e);
|
|
1648
1647
|
})(i) : i;
|
|
1649
1648
|
/**
|
|
1650
1649
|
* @license
|
|
1651
1650
|
* Copyright 2017 Google LLC
|
|
1652
1651
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1653
1652
|
*/
|
|
1654
|
-
const { is:
|
|
1653
|
+
const { is: ks, defineProperty: Ns, getOwnPropertyDescriptor: Ms, getOwnPropertyNames: Ds, getOwnPropertySymbols: Ls, getPrototypeOf: Is } = Object, M = globalThis, pe = M.trustedTypes, Rs = pe ? pe.emptyScript : "", Ut = M.reactiveElementPolyfillSupport, Y = (i, t) => i, _t = { toAttribute(i, t) {
|
|
1655
1654
|
switch (t) {
|
|
1656
1655
|
case Boolean:
|
|
1657
|
-
i = i ?
|
|
1656
|
+
i = i ? Rs : null;
|
|
1658
1657
|
break;
|
|
1659
1658
|
case Object:
|
|
1660
1659
|
case Array:
|
|
@@ -1679,7 +1678,7 @@ const { is: Ps, defineProperty: ks, getOwnPropertyDescriptor: Ns, getOwnProperty
|
|
|
1679
1678
|
}
|
|
1680
1679
|
}
|
|
1681
1680
|
return e;
|
|
1682
|
-
} },
|
|
1681
|
+
} }, se = (i, t) => !ks(i, t), ge = { attribute: !0, type: String, converter: _t, reflect: !1, useDefault: !1, hasChanged: se };
|
|
1683
1682
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), M.litPropertyMetadata ?? (M.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1684
1683
|
let z = class extends HTMLElement {
|
|
1685
1684
|
static addInitializer(t) {
|
|
@@ -1688,14 +1687,14 @@ let z = class extends HTMLElement {
|
|
|
1688
1687
|
static get observedAttributes() {
|
|
1689
1688
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
1690
1689
|
}
|
|
1691
|
-
static createProperty(t, e =
|
|
1690
|
+
static createProperty(t, e = ge) {
|
|
1692
1691
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
1693
1692
|
const s = Symbol(), n = this.getPropertyDescriptor(t, s, e);
|
|
1694
|
-
n !== void 0 &&
|
|
1693
|
+
n !== void 0 && Ns(this.prototype, t, n);
|
|
1695
1694
|
}
|
|
1696
1695
|
}
|
|
1697
1696
|
static getPropertyDescriptor(t, e, s) {
|
|
1698
|
-
const { get: n, set: r } =
|
|
1697
|
+
const { get: n, set: r } = Ms(this.prototype, t) ?? { get() {
|
|
1699
1698
|
return this[e];
|
|
1700
1699
|
}, set(o) {
|
|
1701
1700
|
this[e] = o;
|
|
@@ -1706,17 +1705,17 @@ let z = class extends HTMLElement {
|
|
|
1706
1705
|
}, configurable: !0, enumerable: !0 };
|
|
1707
1706
|
}
|
|
1708
1707
|
static getPropertyOptions(t) {
|
|
1709
|
-
return this.elementProperties.get(t) ??
|
|
1708
|
+
return this.elementProperties.get(t) ?? ge;
|
|
1710
1709
|
}
|
|
1711
1710
|
static _$Ei() {
|
|
1712
1711
|
if (this.hasOwnProperty(Y("elementProperties"))) return;
|
|
1713
|
-
const t =
|
|
1712
|
+
const t = Is(this);
|
|
1714
1713
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
1715
1714
|
}
|
|
1716
1715
|
static finalize() {
|
|
1717
1716
|
if (this.hasOwnProperty(Y("finalized"))) return;
|
|
1718
1717
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Y("properties"))) {
|
|
1719
|
-
const e = this.properties, s = [...
|
|
1718
|
+
const e = this.properties, s = [...Ds(e), ...Ls(e)];
|
|
1720
1719
|
for (const n of s) this.createProperty(n, e[n]);
|
|
1721
1720
|
}
|
|
1722
1721
|
const t = this[Symbol.metadata];
|
|
@@ -1735,8 +1734,8 @@ let z = class extends HTMLElement {
|
|
|
1735
1734
|
const e = [];
|
|
1736
1735
|
if (Array.isArray(t)) {
|
|
1737
1736
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
1738
|
-
for (const n of s) e.unshift(
|
|
1739
|
-
} else t !== void 0 && e.push(
|
|
1737
|
+
for (const n of s) e.unshift(ue(n));
|
|
1738
|
+
} else t !== void 0 && e.push(ue(t));
|
|
1740
1739
|
return e;
|
|
1741
1740
|
}
|
|
1742
1741
|
static _$Eu(t, e) {
|
|
@@ -1765,7 +1764,7 @@ let z = class extends HTMLElement {
|
|
|
1765
1764
|
}
|
|
1766
1765
|
createRenderRoot() {
|
|
1767
1766
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1768
|
-
return
|
|
1767
|
+
return Ps(t, this.constructor.elementStyles), t;
|
|
1769
1768
|
}
|
|
1770
1769
|
connectedCallback() {
|
|
1771
1770
|
var t;
|
|
@@ -1790,7 +1789,7 @@ let z = class extends HTMLElement {
|
|
|
1790
1789
|
var r;
|
|
1791
1790
|
const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
|
|
1792
1791
|
if (n !== void 0 && s.reflect === !0) {
|
|
1793
|
-
const o = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
1792
|
+
const o = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : _t).toAttribute(e, s.type);
|
|
1794
1793
|
this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
|
|
1795
1794
|
}
|
|
1796
1795
|
}
|
|
@@ -1798,7 +1797,7 @@ let z = class extends HTMLElement {
|
|
|
1798
1797
|
var r, o;
|
|
1799
1798
|
const s = this.constructor, n = s._$Eh.get(t);
|
|
1800
1799
|
if (n !== void 0 && this._$Em !== n) {
|
|
1801
|
-
const a = s.getPropertyOptions(n), h = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter :
|
|
1800
|
+
const a = s.getPropertyOptions(n), h = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : _t;
|
|
1802
1801
|
this._$Em = n;
|
|
1803
1802
|
const c = h.fromAttribute(e, a.type);
|
|
1804
1803
|
this[n] = c ?? ((o = this._$Ej) == null ? void 0 : o.get(n)) ?? c, this._$Em = null;
|
|
@@ -1808,7 +1807,7 @@ let z = class extends HTMLElement {
|
|
|
1808
1807
|
var n;
|
|
1809
1808
|
if (t !== void 0) {
|
|
1810
1809
|
const r = this.constructor, o = this[t];
|
|
1811
|
-
if (s ?? (s = r.getPropertyOptions(t)), !((s.hasChanged ??
|
|
1810
|
+
if (s ?? (s = r.getPropertyOptions(t)), !((s.hasChanged ?? se)(o, e) || s.useDefault && s.reflect && o === ((n = this._$Ej) == null ? void 0 : n.get(t)) && !this.hasAttribute(r._$Eu(t, s)))) return;
|
|
1812
1811
|
this.C(t, e, s);
|
|
1813
1812
|
}
|
|
1814
1813
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -1884,28 +1883,28 @@ let z = class extends HTMLElement {
|
|
|
1884
1883
|
firstUpdated(t) {
|
|
1885
1884
|
}
|
|
1886
1885
|
};
|
|
1887
|
-
z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, z[Y("elementProperties")] = /* @__PURE__ */ new Map(), z[Y("finalized")] = /* @__PURE__ */ new Map(),
|
|
1886
|
+
z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, z[Y("elementProperties")] = /* @__PURE__ */ new Map(), z[Y("finalized")] = /* @__PURE__ */ new Map(), Ut == null || Ut({ ReactiveElement: z }), (M.reactiveElementVersions ?? (M.reactiveElementVersions = [])).push("2.1.1");
|
|
1888
1887
|
/**
|
|
1889
1888
|
* @license
|
|
1890
1889
|
* Copyright 2017 Google LLC
|
|
1891
1890
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1892
1891
|
*/
|
|
1893
|
-
const Z = globalThis,
|
|
1894
|
-
\f\r]`,
|
|
1895
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
1892
|
+
const Z = globalThis, At = Z.trustedTypes, me = At ? At.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, je = "$lit$", P = `lit$${Math.random().toFixed(9).slice(2)}$`, Ue = "?" + P, Ts = `<${Ue}>`, H = document, tt = () => H.createComment(""), et = (i) => i === null || typeof i != "object" && typeof i != "function", ie = Array.isArray, js = (i) => ie(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Ht = `[
|
|
1893
|
+
\f\r]`, K = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, fe = /-->/g, ye = />/g, L = RegExp(`>|${Ht}(?:([^\\s"'>=/]+)(${Ht}*=${Ht}*(?:[^
|
|
1894
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ve = /'/g, be = /"/g, He = /^(?:script|style|textarea|title)$/i, Us = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), dt = Us(1), V = Symbol.for("lit-noChange"), y = Symbol.for("lit-nothing"), we = /* @__PURE__ */ new WeakMap(), T = H.createTreeWalker(H, 129);
|
|
1896
1895
|
function Ve(i, t) {
|
|
1897
|
-
if (!
|
|
1898
|
-
return
|
|
1896
|
+
if (!ie(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1897
|
+
return me !== void 0 ? me.createHTML(t) : t;
|
|
1899
1898
|
}
|
|
1900
|
-
const
|
|
1899
|
+
const Hs = (i, t) => {
|
|
1901
1900
|
const e = i.length - 1, s = [];
|
|
1902
|
-
let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o =
|
|
1901
|
+
let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = K;
|
|
1903
1902
|
for (let a = 0; a < e; a++) {
|
|
1904
1903
|
const h = i[a];
|
|
1905
1904
|
let c, l, d = -1, u = 0;
|
|
1906
|
-
for (; u < h.length && (o.lastIndex = u, l = o.exec(h), l !== null); ) u = o.lastIndex, o ===
|
|
1905
|
+
for (; u < h.length && (o.lastIndex = u, l = o.exec(h), l !== null); ) u = o.lastIndex, o === K ? l[1] === "!--" ? o = fe : l[1] !== void 0 ? o = ye : l[2] !== void 0 ? (He.test(l[2]) && (n = RegExp("</" + l[2], "g")), o = L) : l[3] !== void 0 && (o = L) : o === L ? l[0] === ">" ? (o = n ?? K, 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] === '"' ? be : ve) : o === be || o === ve ? o = L : o === fe || o === ye ? o = K : (o = L, n = void 0);
|
|
1907
1906
|
const p = o === L && i[a + 1].startsWith("/>") ? " " : "";
|
|
1908
|
-
r += o ===
|
|
1907
|
+
r += o === K ? h + Ts : d >= 0 ? (s.push(c), h.slice(0, d) + je + h.slice(d) + P + p) : h + P + (d === -2 ? a : p);
|
|
1909
1908
|
}
|
|
1910
1909
|
return [Ve(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
1911
1910
|
};
|
|
@@ -1914,26 +1913,26 @@ class st {
|
|
|
1914
1913
|
let n;
|
|
1915
1914
|
this.parts = [];
|
|
1916
1915
|
let r = 0, o = 0;
|
|
1917
|
-
const a = t.length - 1, h = this.parts, [c, l] =
|
|
1916
|
+
const a = t.length - 1, h = this.parts, [c, l] = Hs(t, e);
|
|
1918
1917
|
if (this.el = st.createElement(c, s), T.currentNode = this.el.content, e === 2 || e === 3) {
|
|
1919
1918
|
const d = this.el.content.firstChild;
|
|
1920
1919
|
d.replaceWith(...d.childNodes);
|
|
1921
1920
|
}
|
|
1922
1921
|
for (; (n = T.nextNode()) !== null && h.length < a; ) {
|
|
1923
1922
|
if (n.nodeType === 1) {
|
|
1924
|
-
if (n.hasAttributes()) for (const d of n.getAttributeNames()) if (d.endsWith(
|
|
1923
|
+
if (n.hasAttributes()) for (const d of n.getAttributeNames()) if (d.endsWith(je)) {
|
|
1925
1924
|
const u = l[o++], p = n.getAttribute(d).split(P), g = /([.?@])?(.*)/.exec(u);
|
|
1926
|
-
h.push({ type: 1, index: r, name: g[2], strings: p, ctor: g[1] === "." ?
|
|
1925
|
+
h.push({ type: 1, index: r, name: g[2], strings: p, ctor: g[1] === "." ? zs : g[1] === "?" ? Bs : g[1] === "@" ? Ws : Pt }), n.removeAttribute(d);
|
|
1927
1926
|
} else d.startsWith(P) && (h.push({ type: 6, index: r }), n.removeAttribute(d));
|
|
1928
|
-
if (
|
|
1927
|
+
if (He.test(n.tagName)) {
|
|
1929
1928
|
const d = n.textContent.split(P), u = d.length - 1;
|
|
1930
1929
|
if (u > 0) {
|
|
1931
|
-
n.textContent =
|
|
1930
|
+
n.textContent = At ? At.emptyScript : "";
|
|
1932
1931
|
for (let p = 0; p < u; p++) n.append(d[p], tt()), T.nextNode(), h.push({ type: 2, index: ++r });
|
|
1933
1932
|
n.append(d[u], tt());
|
|
1934
1933
|
}
|
|
1935
1934
|
}
|
|
1936
|
-
} else if (n.nodeType === 8) if (n.data ===
|
|
1935
|
+
} else if (n.nodeType === 8) if (n.data === Ue) h.push({ type: 2, index: r });
|
|
1937
1936
|
else {
|
|
1938
1937
|
let d = -1;
|
|
1939
1938
|
for (; (d = n.data.indexOf(P, d + 1)) !== -1; ) h.push({ type: 7, index: r }), d += P.length - 1;
|
|
@@ -1942,13 +1941,13 @@ class st {
|
|
|
1942
1941
|
}
|
|
1943
1942
|
}
|
|
1944
1943
|
static createElement(t, e) {
|
|
1945
|
-
const s =
|
|
1944
|
+
const s = H.createElement("template");
|
|
1946
1945
|
return s.innerHTML = t, s;
|
|
1947
1946
|
}
|
|
1948
1947
|
}
|
|
1949
1948
|
function W(i, t, e = i, s) {
|
|
1950
1949
|
var o, a;
|
|
1951
|
-
if (t ===
|
|
1950
|
+
if (t === V) return t;
|
|
1952
1951
|
let n = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
|
1953
1952
|
const r = et(t) ? void 0 : t._$litDirective$;
|
|
1954
1953
|
return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(i), n._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = n : e._$Cl = n), n !== void 0 && (t = W(i, n._$AS(i, t.values), n, s)), t;
|
|
@@ -1964,24 +1963,24 @@ class Vs {
|
|
|
1964
1963
|
return this._$AM._$AU;
|
|
1965
1964
|
}
|
|
1966
1965
|
u(t) {
|
|
1967
|
-
const { el: { content: e }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ??
|
|
1966
|
+
const { el: { content: e }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? H).importNode(e, !0);
|
|
1968
1967
|
T.currentNode = n;
|
|
1969
1968
|
let r = T.nextNode(), o = 0, a = 0, h = s[0];
|
|
1970
1969
|
for (; h !== void 0; ) {
|
|
1971
1970
|
if (o === h.index) {
|
|
1972
1971
|
let c;
|
|
1973
|
-
h.type === 2 ? c = new
|
|
1972
|
+
h.type === 2 ? c = new at(r, r.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(r, h.name, h.strings, this, t) : h.type === 6 && (c = new qs(r, this, t)), this._$AV.push(c), h = s[++a];
|
|
1974
1973
|
}
|
|
1975
1974
|
o !== (h == null ? void 0 : h.index) && (r = T.nextNode(), o++);
|
|
1976
1975
|
}
|
|
1977
|
-
return T.currentNode =
|
|
1976
|
+
return T.currentNode = H, n;
|
|
1978
1977
|
}
|
|
1979
1978
|
p(t) {
|
|
1980
1979
|
let e = 0;
|
|
1981
1980
|
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
1982
1981
|
}
|
|
1983
1982
|
}
|
|
1984
|
-
class
|
|
1983
|
+
class at {
|
|
1985
1984
|
get _$AU() {
|
|
1986
1985
|
var t;
|
|
1987
1986
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -2001,7 +2000,7 @@ class ot {
|
|
|
2001
2000
|
return this._$AB;
|
|
2002
2001
|
}
|
|
2003
2002
|
_$AI(t, e = this) {
|
|
2004
|
-
t = W(this, t, e), et(t) ? t === y || t == null || t === "" ? (this._$AH !== y && this._$AR(), this._$AH = y) : t !== this._$AH && t !==
|
|
2003
|
+
t = W(this, t, e), et(t) ? t === y || t == null || t === "" ? (this._$AH !== y && this._$AR(), this._$AH = y) : t !== this._$AH && t !== V && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : js(t) ? this.k(t) : this._(t);
|
|
2005
2004
|
}
|
|
2006
2005
|
O(t) {
|
|
2007
2006
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -2010,7 +2009,7 @@ class ot {
|
|
|
2010
2009
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
2011
2010
|
}
|
|
2012
2011
|
_(t) {
|
|
2013
|
-
this._$AH !== y && et(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
2012
|
+
this._$AH !== y && et(this._$AH) ? this._$AA.nextSibling.data = t : this.T(H.createTextNode(t)), this._$AH = t;
|
|
2014
2013
|
}
|
|
2015
2014
|
$(t) {
|
|
2016
2015
|
var r;
|
|
@@ -2022,14 +2021,14 @@ class ot {
|
|
|
2022
2021
|
}
|
|
2023
2022
|
}
|
|
2024
2023
|
_$AC(t) {
|
|
2025
|
-
let e =
|
|
2026
|
-
return e === void 0 &&
|
|
2024
|
+
let e = we.get(t.strings);
|
|
2025
|
+
return e === void 0 && we.set(t.strings, e = new st(t)), e;
|
|
2027
2026
|
}
|
|
2028
2027
|
k(t) {
|
|
2029
|
-
|
|
2028
|
+
ie(this._$AH) || (this._$AH = [], this._$AR());
|
|
2030
2029
|
const e = this._$AH;
|
|
2031
2030
|
let s, n = 0;
|
|
2032
|
-
for (const r of t) n === e.length ? e.push(s = new
|
|
2031
|
+
for (const r of t) n === e.length ? e.push(s = new at(this.O(tt()), this.O(tt()), this, this.options)) : s = e[n], s._$AI(r), n++;
|
|
2033
2032
|
n < e.length && (this._$AR(s && s._$AB.nextSibling, n), e.length = n);
|
|
2034
2033
|
}
|
|
2035
2034
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -2044,7 +2043,7 @@ class ot {
|
|
|
2044
2043
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
2045
2044
|
}
|
|
2046
2045
|
}
|
|
2047
|
-
class
|
|
2046
|
+
class Pt {
|
|
2048
2047
|
get tagName() {
|
|
2049
2048
|
return this.element.tagName;
|
|
2050
2049
|
}
|
|
@@ -2057,11 +2056,11 @@ class St {
|
|
|
2057
2056
|
_$AI(t, e = this, s, n) {
|
|
2058
2057
|
const r = this.strings;
|
|
2059
2058
|
let o = !1;
|
|
2060
|
-
if (r === void 0) t = W(this, t, e, 0), o = !et(t) || t !== this._$AH && t !==
|
|
2059
|
+
if (r === void 0) t = W(this, t, e, 0), o = !et(t) || t !== this._$AH && t !== V, o && (this._$AH = t);
|
|
2061
2060
|
else {
|
|
2062
2061
|
const a = t;
|
|
2063
2062
|
let h, c;
|
|
2064
|
-
for (t = r[0], h = 0; h < r.length - 1; h++) c = W(this, a[s + h], e, h), c ===
|
|
2063
|
+
for (t = r[0], h = 0; h < r.length - 1; h++) c = W(this, a[s + h], e, h), c === V && (c = this._$AH[h]), o || (o = !et(c) || c !== this._$AH[h]), c === y ? t = y : t !== y && (t += (c ?? "") + r[h + 1]), this._$AH[h] = c;
|
|
2065
2064
|
}
|
|
2066
2065
|
o && !n && this.j(t);
|
|
2067
2066
|
}
|
|
@@ -2069,7 +2068,7 @@ class St {
|
|
|
2069
2068
|
t === y ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
2070
2069
|
}
|
|
2071
2070
|
}
|
|
2072
|
-
class
|
|
2071
|
+
class zs extends Pt {
|
|
2073
2072
|
constructor() {
|
|
2074
2073
|
super(...arguments), this.type = 3;
|
|
2075
2074
|
}
|
|
@@ -2077,7 +2076,7 @@ class Hs extends St {
|
|
|
2077
2076
|
this.element[this.name] = t === y ? void 0 : t;
|
|
2078
2077
|
}
|
|
2079
2078
|
}
|
|
2080
|
-
class
|
|
2079
|
+
class Bs extends Pt {
|
|
2081
2080
|
constructor() {
|
|
2082
2081
|
super(...arguments), this.type = 4;
|
|
2083
2082
|
}
|
|
@@ -2085,12 +2084,12 @@ class zs extends St {
|
|
|
2085
2084
|
this.element.toggleAttribute(this.name, !!t && t !== y);
|
|
2086
2085
|
}
|
|
2087
2086
|
}
|
|
2088
|
-
class
|
|
2087
|
+
class Ws extends Pt {
|
|
2089
2088
|
constructor(t, e, s, n, r) {
|
|
2090
2089
|
super(t, e, s, n, r), this.type = 5;
|
|
2091
2090
|
}
|
|
2092
2091
|
_$AI(t, e = this) {
|
|
2093
|
-
if ((t = W(this, t, e, 0) ?? y) ===
|
|
2092
|
+
if ((t = W(this, t, e, 0) ?? y) === V) return;
|
|
2094
2093
|
const s = this._$AH, n = t === y && s !== y || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== y && (s === y || n);
|
|
2095
2094
|
n && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
2096
2095
|
}
|
|
@@ -2099,7 +2098,7 @@ class Bs extends St {
|
|
|
2099
2098
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
2100
2099
|
}
|
|
2101
2100
|
}
|
|
2102
|
-
class
|
|
2101
|
+
class qs {
|
|
2103
2102
|
constructor(t, e, s) {
|
|
2104
2103
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
2105
2104
|
}
|
|
@@ -2111,13 +2110,13 @@ class Ws {
|
|
|
2111
2110
|
}
|
|
2112
2111
|
}
|
|
2113
2112
|
const Vt = Z.litHtmlPolyfillSupport;
|
|
2114
|
-
Vt == null || Vt(st,
|
|
2115
|
-
const
|
|
2113
|
+
Vt == null || Vt(st, at), (Z.litHtmlVersions ?? (Z.litHtmlVersions = [])).push("3.3.1");
|
|
2114
|
+
const Js = (i, t, e) => {
|
|
2116
2115
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
2117
2116
|
let n = s._$litPart$;
|
|
2118
2117
|
if (n === void 0) {
|
|
2119
2118
|
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
2120
|
-
s._$litPart$ = n = new
|
|
2119
|
+
s._$litPart$ = n = new at(t.insertBefore(tt(), r), r, void 0, e ?? {});
|
|
2121
2120
|
}
|
|
2122
2121
|
return n._$AI(i), n;
|
|
2123
2122
|
};
|
|
@@ -2138,7 +2137,7 @@ let Q = class extends z {
|
|
|
2138
2137
|
}
|
|
2139
2138
|
update(t) {
|
|
2140
2139
|
const e = this.render();
|
|
2141
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
2140
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Js(e, this.renderRoot, this.renderOptions);
|
|
2142
2141
|
}
|
|
2143
2142
|
connectedCallback() {
|
|
2144
2143
|
var t;
|
|
@@ -2149,20 +2148,20 @@ let Q = class extends z {
|
|
|
2149
2148
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
2150
2149
|
}
|
|
2151
2150
|
render() {
|
|
2152
|
-
return
|
|
2151
|
+
return V;
|
|
2153
2152
|
}
|
|
2154
2153
|
};
|
|
2155
|
-
var
|
|
2156
|
-
Q._$litElement$ = !0, Q.finalized = !0, (
|
|
2157
|
-
const
|
|
2158
|
-
|
|
2154
|
+
var xe;
|
|
2155
|
+
Q._$litElement$ = !0, Q.finalized = !0, (xe = U.litElementHydrateSupport) == null || xe.call(U, { LitElement: Q });
|
|
2156
|
+
const zt = U.litElementPolyfillSupport;
|
|
2157
|
+
zt == null || zt({ LitElement: Q });
|
|
2159
2158
|
(U.litElementVersions ?? (U.litElementVersions = [])).push("4.2.1");
|
|
2160
2159
|
/**
|
|
2161
2160
|
* @license
|
|
2162
2161
|
* Copyright 2017 Google LLC
|
|
2163
2162
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2164
2163
|
*/
|
|
2165
|
-
const
|
|
2164
|
+
const Ks = { attribute: !0, type: String, converter: _t, reflect: !1, hasChanged: se }, Fs = (i = Ks, t, e) => {
|
|
2166
2165
|
const { kind: s, metadata: n } = e;
|
|
2167
2166
|
let r = globalThis.litPropertyMetadata.get(n);
|
|
2168
2167
|
if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), s === "setter" && ((i = Object.create(i)).wrapped = !0), r.set(e.name, i), s === "accessor") {
|
|
@@ -2202,8 +2201,8 @@ function k(i) {
|
|
|
2202
2201
|
* Copyright 2017 Google LLC
|
|
2203
2202
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2204
2203
|
*/
|
|
2205
|
-
const
|
|
2206
|
-
let
|
|
2204
|
+
const Gs = { ATTRIBUTE: 1, CHILD: 2 }, Ys = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
2205
|
+
let Zs = class {
|
|
2207
2206
|
constructor(t) {
|
|
2208
2207
|
}
|
|
2209
2208
|
get _$AU() {
|
|
@@ -2224,10 +2223,10 @@ let Ys = class {
|
|
|
2224
2223
|
* Copyright 2018 Google LLC
|
|
2225
2224
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2226
2225
|
*/
|
|
2227
|
-
const
|
|
2226
|
+
const Qs = Ys(class extends Zs {
|
|
2228
2227
|
constructor(i) {
|
|
2229
2228
|
var t;
|
|
2230
|
-
if (super(i), i.type !==
|
|
2229
|
+
if (super(i), i.type !== Gs.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
2231
2230
|
}
|
|
2232
2231
|
render(i) {
|
|
2233
2232
|
return " " + Object.keys(i).filter(((t) => i[t])).join(" ") + " ";
|
|
@@ -2245,28 +2244,28 @@ const Zs = Gs(class extends Ys {
|
|
|
2245
2244
|
const o = !!t[r];
|
|
2246
2245
|
o === this.st.has(r) || (n = this.nt) != null && n.has(r) || (o ? (e.add(r), this.st.add(r)) : (e.remove(r), this.st.delete(r)));
|
|
2247
2246
|
}
|
|
2248
|
-
return
|
|
2247
|
+
return V;
|
|
2249
2248
|
}
|
|
2250
|
-
}),
|
|
2249
|
+
}), ut = (i, t, e) => {
|
|
2251
2250
|
i && e.style.setProperty(t, i);
|
|
2252
|
-
},
|
|
2251
|
+
}, Xs = (i, t) => {
|
|
2253
2252
|
var e, s, n, r;
|
|
2254
|
-
|
|
2253
|
+
ut((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), ut(
|
|
2255
2254
|
(s = i.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
|
2256
2255
|
"--text-on-primary-background",
|
|
2257
2256
|
t
|
|
2258
|
-
),
|
|
2257
|
+
), ut((n = i.colors) == null ? void 0 : n.secondaryBackground, "--secondary-background", t), ut(
|
|
2259
2258
|
(r = i.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
|
2260
2259
|
"--text-on-secondary-background",
|
|
2261
2260
|
t
|
|
2262
2261
|
);
|
|
2263
2262
|
};
|
|
2264
|
-
var
|
|
2263
|
+
var ti = Object.defineProperty, ct = (i, t, e, s) => {
|
|
2265
2264
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
2266
2265
|
(o = i[r]) && (n = o(t, e, n) || n);
|
|
2267
|
-
return n &&
|
|
2266
|
+
return n && ti(t, e, n), n;
|
|
2268
2267
|
};
|
|
2269
|
-
const
|
|
2268
|
+
const re = class re extends Q {
|
|
2270
2269
|
constructor() {
|
|
2271
2270
|
super(...arguments), this.active = !1, this.loaded = !1;
|
|
2272
2271
|
}
|
|
@@ -2279,7 +2278,7 @@ const ne = class ne extends Q {
|
|
|
2279
2278
|
_applyBranding() {
|
|
2280
2279
|
var e;
|
|
2281
2280
|
const t = ((e = this.container) == null ? void 0 : e.get("$settings")) ?? {};
|
|
2282
|
-
t != null && t.branding &&
|
|
2281
|
+
t != null && t.branding && Xs(t.branding, this);
|
|
2283
2282
|
}
|
|
2284
2283
|
async _renderSymbol(t) {
|
|
2285
2284
|
const e = async (s) => await import("./index-KiHHCiS_.mjs").then(
|
|
@@ -2290,16 +2289,16 @@ const ne = class ne extends Q {
|
|
|
2290
2289
|
switch (s) {
|
|
2291
2290
|
case "Telia": {
|
|
2292
2291
|
const r = await e(n);
|
|
2293
|
-
return r ?
|
|
2292
|
+
return r ? dt`<telia-icon
|
|
2294
2293
|
class="trigger-icon"
|
|
2295
2294
|
svg=${r.svg}
|
|
2296
2295
|
size="lg"
|
|
2297
2296
|
></telia-icon>` : y;
|
|
2298
2297
|
}
|
|
2299
2298
|
case "FontAwesome":
|
|
2300
|
-
return
|
|
2299
|
+
return dt`<i class="trigger-fa-icon fa fa-${n}"></i>`;
|
|
2301
2300
|
case "Uri":
|
|
2302
|
-
return
|
|
2301
|
+
return dt`<i
|
|
2303
2302
|
class="trigger-custom-icon"
|
|
2304
2303
|
style="background: url(${n}) no-repeat center center;background-size: contain;"
|
|
2305
2304
|
></i>`;
|
|
@@ -2309,8 +2308,8 @@ const ne = class ne extends Q {
|
|
|
2309
2308
|
}
|
|
2310
2309
|
}
|
|
2311
2310
|
render() {
|
|
2312
|
-
return
|
|
2313
|
-
class=${
|
|
2311
|
+
return dt`<button
|
|
2312
|
+
class=${Qs({
|
|
2314
2313
|
trigger: !0,
|
|
2315
2314
|
active: this.active,
|
|
2316
2315
|
rendered: this.loaded
|
|
@@ -2348,8 +2347,8 @@ const ne = class ne extends Q {
|
|
|
2348
2347
|
</button>`;
|
|
2349
2348
|
}
|
|
2350
2349
|
};
|
|
2351
|
-
|
|
2352
|
-
|
|
2350
|
+
re.styles = [
|
|
2351
|
+
Te`
|
|
2353
2352
|
:host {
|
|
2354
2353
|
--voca-rem-multiplier: 0.625;
|
|
2355
2354
|
display: block;
|
|
@@ -2419,29 +2418,29 @@ ne.styles = [
|
|
|
2419
2418
|
}
|
|
2420
2419
|
`
|
|
2421
2420
|
];
|
|
2422
|
-
let D =
|
|
2423
|
-
|
|
2421
|
+
let D = re;
|
|
2422
|
+
ct([
|
|
2424
2423
|
it({ attribute: !1 })
|
|
2425
2424
|
], D.prototype, "symbol");
|
|
2426
|
-
|
|
2425
|
+
ct([
|
|
2427
2426
|
it({ attribute: !1 })
|
|
2428
2427
|
], D.prototype, "container");
|
|
2429
|
-
|
|
2428
|
+
ct([
|
|
2430
2429
|
k()
|
|
2431
2430
|
], D.prototype, "active");
|
|
2432
|
-
|
|
2431
|
+
ct([
|
|
2433
2432
|
k()
|
|
2434
2433
|
], D.prototype, "loaded");
|
|
2435
|
-
|
|
2434
|
+
ct([
|
|
2436
2435
|
k()
|
|
2437
2436
|
], D.prototype, "icon");
|
|
2438
2437
|
var j = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Link = "link", i.Badge = "badge", i.Unsupported = "unsupported", i))(j || {});
|
|
2439
|
-
const
|
|
2438
|
+
const ei = (i, t) => i && t ? "both" : i ? "widgetDOM" : t ? "triggerDOM" : "none", ze = (i) => i ? typeof i == "boolean" && i ? "link" : typeof i == "object" && !Array.isArray(i) ? "badge" : "unsupported" : "inline", si = async (i, t, e, s, n, r = !1) => {
|
|
2440
2439
|
var l, d;
|
|
2441
|
-
const o =
|
|
2440
|
+
const o = ei(
|
|
2442
2441
|
e,
|
|
2443
2442
|
s
|
|
2444
|
-
), a =
|
|
2443
|
+
), a = ze(n), h = {
|
|
2445
2444
|
widgetDOMElement: e ? e.cloneNode(!0) : void 0,
|
|
2446
2445
|
triggerDOMElement: s ? s.cloneNode(!0) : void 0
|
|
2447
2446
|
}, c = {
|
|
@@ -2490,8 +2489,8 @@ const ti = (i, t) => i && t ? "both" : i ? "widgetDOM" : t ? "triggerDOM" : "non
|
|
|
2490
2489
|
}
|
|
2491
2490
|
}
|
|
2492
2491
|
return c;
|
|
2493
|
-
},
|
|
2494
|
-
class
|
|
2492
|
+
}, ii = "modals";
|
|
2493
|
+
class ni {
|
|
2495
2494
|
constructor(t, e) {
|
|
2496
2495
|
this.options = e, this.unsubscribe = [], this.container = t.createChild(this), this.container.register("widgetDOMElement", this.options.widgetDOMElement), this.container.register(
|
|
2497
2496
|
"triggerDOMElement",
|
|
@@ -2510,16 +2509,16 @@ class ii {
|
|
|
2510
2509
|
*/
|
|
2511
2510
|
render() {
|
|
2512
2511
|
const { widgetDOMElement: t, triggerDOMElement: e } = this.options, s = this.container.get("$widget");
|
|
2513
|
-
return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === j.Badge &&
|
|
2512
|
+
return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === j.Badge && Os(e), import("./render-3WYwVT0N.mjs").then((n) => n.default(this.container, t)).then(() => {
|
|
2514
2513
|
if (t.setAttribute("data-rendered", "true"), e && this.options.triggerType === j.Badge) {
|
|
2515
2514
|
const r = this.options.triggerOptions.openTooltip;
|
|
2516
|
-
|
|
2515
|
+
Ie(e, r);
|
|
2517
2516
|
}
|
|
2518
|
-
|
|
2517
|
+
ss(this.container, t);
|
|
2519
2518
|
const n = this.container.get("$environment").widgets.all();
|
|
2520
2519
|
C(
|
|
2521
2520
|
this.container,
|
|
2522
|
-
|
|
2521
|
+
ii,
|
|
2523
2522
|
f.Session
|
|
2524
2523
|
).then((r) => {
|
|
2525
2524
|
r && r.forEach((o) => {
|
|
@@ -2537,7 +2536,7 @@ class ii {
|
|
|
2537
2536
|
e.getAttribute("role") || e.setAttribute("role", "button");
|
|
2538
2537
|
const { name: s } = this.container.get("$widget"), { label: n, symbol: r, ariaLabel: o, closedTooltip: a, openTooltip: h } = t, c = { closedTooltip: a, openTooltip: h };
|
|
2539
2538
|
this.options.triggerOptions = c;
|
|
2540
|
-
const l =
|
|
2539
|
+
const l = Es(e, {
|
|
2541
2540
|
label: n,
|
|
2542
2541
|
ariaLabel: o,
|
|
2543
2542
|
widgetName: s,
|
|
@@ -2559,36 +2558,36 @@ class ii {
|
|
|
2559
2558
|
}), (r = e.parentNode) == null || r.removeChild(e), (o = t == null ? void 0 : t.parentNode) == null || o.removeChild(t);
|
|
2560
2559
|
}
|
|
2561
2560
|
}
|
|
2562
|
-
const
|
|
2561
|
+
const pt = "changesets", ri = (i) => {
|
|
2563
2562
|
const t = { tags: i.tags };
|
|
2564
2563
|
return i.context && typeof i.context != "function" && (t.context = i.context), i.properties && typeof i.properties != "function" && (t.properties = i.properties), i.layout && typeof i.layout != "function" && (t.layout = i.layout), t;
|
|
2565
2564
|
};
|
|
2566
|
-
class
|
|
2565
|
+
class ne {
|
|
2567
2566
|
constructor(t, e) {
|
|
2568
2567
|
this.container = t, this.storageWriter = e;
|
|
2569
2568
|
}
|
|
2570
2569
|
static create(t) {
|
|
2571
2570
|
return S(
|
|
2572
2571
|
t,
|
|
2573
|
-
|
|
2572
|
+
pt,
|
|
2574
2573
|
m.Necessary,
|
|
2575
2574
|
{
|
|
2576
2575
|
medium: f.Local
|
|
2577
2576
|
}
|
|
2578
2577
|
).then(
|
|
2579
|
-
(e) => new
|
|
2578
|
+
(e) => new ne(t, e)
|
|
2580
2579
|
);
|
|
2581
2580
|
}
|
|
2582
2581
|
write(t, e, s, n) {
|
|
2583
2582
|
return x(this)(() => C(
|
|
2584
2583
|
this.container,
|
|
2585
|
-
|
|
2584
|
+
pt,
|
|
2586
2585
|
f.Local
|
|
2587
2586
|
).then((r = {}) => {
|
|
2588
2587
|
const { keys: o = [], items: a = {} } = r, h = o.indexOf(t);
|
|
2589
2588
|
return h > -1 && o.splice(h, 1), o.push(t), a[t] = {
|
|
2590
2589
|
options: n,
|
|
2591
|
-
attributes:
|
|
2590
|
+
attributes: ri(s),
|
|
2592
2591
|
rules: e.rules
|
|
2593
2592
|
}, this.storageWriter({ keys: o, items: a });
|
|
2594
2593
|
}));
|
|
@@ -2596,7 +2595,7 @@ class ie {
|
|
|
2596
2595
|
remove(t) {
|
|
2597
2596
|
return x(this)(() => C(
|
|
2598
2597
|
this.container,
|
|
2599
|
-
|
|
2598
|
+
pt,
|
|
2600
2599
|
f.Local
|
|
2601
2600
|
).then((e = {}) => {
|
|
2602
2601
|
const { keys: s = [], items: n = {} } = e, r = s.indexOf(t);
|
|
@@ -2607,7 +2606,7 @@ class ie {
|
|
|
2607
2606
|
load(t) {
|
|
2608
2607
|
return x(this)(() => C(
|
|
2609
2608
|
this.container,
|
|
2610
|
-
|
|
2609
|
+
pt,
|
|
2611
2610
|
f.Local
|
|
2612
2611
|
).then((e = {}) => {
|
|
2613
2612
|
const { keys: s = [], items: n = {} } = e;
|
|
@@ -2625,21 +2624,21 @@ class ie {
|
|
|
2625
2624
|
}));
|
|
2626
2625
|
}
|
|
2627
2626
|
}
|
|
2628
|
-
const
|
|
2627
|
+
const oi = (i) => {
|
|
2629
2628
|
const { container: t } = i;
|
|
2630
|
-
return
|
|
2629
|
+
return ne.create(t).then(
|
|
2631
2630
|
(e) => {
|
|
2632
|
-
const s = t.get("$settings"), n = { localStorage: e }, r = new
|
|
2631
|
+
const s = t.get("$settings"), n = { localStorage: e }, r = new ot(i, n), o = Ne(r, s);
|
|
2633
2632
|
return i.events.subscribe(
|
|
2634
2633
|
"widget:state-change",
|
|
2635
2634
|
(a, h) => {
|
|
2636
|
-
h.state ===
|
|
2635
|
+
h.state === Ce.Deactivating && o();
|
|
2637
2636
|
}
|
|
2638
2637
|
), r;
|
|
2639
2638
|
}
|
|
2640
2639
|
);
|
|
2641
|
-
},
|
|
2642
|
-
class Vi extends
|
|
2640
|
+
}, ai = (i) => Promise.resolve().then(() => As).then(({ StorageProvider: t }) => new t()), ci = (i) => Promise.resolve().then(() => Yt).then(({ ActionResolver: t }) => new t(i)), hi = (i) => Promise.resolve().then(() => Yt).then(({ ComponentResolver: t }) => new t(i)), li = (i) => Promise.resolve().then(() => Yt).then(() => oi(i.get("$widget"))), Bt = "$settings", Wt = "open", $e = "activeStickyWidget";
|
|
2641
|
+
class Vi extends Xe {
|
|
2643
2642
|
constructor(t) {
|
|
2644
2643
|
super(t), this.outlets = /* @__PURE__ */ new Map(), this.activated = void 0, this.subs = [], this.handleBootstrapping = (e) => {
|
|
2645
2644
|
const s = {
|
|
@@ -2655,23 +2654,23 @@ class Vi extends Qe {
|
|
|
2655
2654
|
});
|
|
2656
2655
|
}, this.container.registerAsync(
|
|
2657
2656
|
"storage",
|
|
2658
|
-
() =>
|
|
2657
|
+
() => ai(this.container)
|
|
2659
2658
|
), this.container.registerFactory("settings", () => C(
|
|
2660
2659
|
this.container,
|
|
2661
|
-
|
|
2660
|
+
Bt,
|
|
2662
2661
|
f.Local
|
|
2663
2662
|
).then((e = {}) => ({
|
|
2664
2663
|
...this.container.get("$settings"),
|
|
2665
2664
|
...e
|
|
2666
|
-
}))),
|
|
2665
|
+
}))), Ge(this, "load", this.handleBootstrapping), this.container.registerAsync(
|
|
2667
2666
|
"componentResolver",
|
|
2668
|
-
() =>
|
|
2667
|
+
() => hi(this.container)
|
|
2669
2668
|
), this.container.registerAsync(
|
|
2670
2669
|
"actionResolver",
|
|
2671
|
-
() =>
|
|
2670
|
+
() => ci(this.container)
|
|
2672
2671
|
), this.container.register("matchMedia", window.matchMedia), this.container.registerAsync(
|
|
2673
2672
|
"components",
|
|
2674
|
-
() =>
|
|
2673
|
+
() => li(this.container)
|
|
2675
2674
|
);
|
|
2676
2675
|
}
|
|
2677
2676
|
initialize() {
|
|
@@ -2699,10 +2698,10 @@ class Vi extends Qe {
|
|
|
2699
2698
|
var u, p;
|
|
2700
2699
|
const {
|
|
2701
2700
|
widgetDOMElement: s,
|
|
2702
|
-
key: n =
|
|
2701
|
+
key: n = rt(),
|
|
2703
2702
|
triggerDOMElement: r,
|
|
2704
2703
|
withRenderState: o
|
|
2705
|
-
} = t, h =
|
|
2704
|
+
} = t, h = ze(e) === j.Inline && ((r == null ? void 0 : r.childElementCount) || 0) > 0, c = await si(
|
|
2706
2705
|
this.container,
|
|
2707
2706
|
this.widget.name,
|
|
2708
2707
|
s,
|
|
@@ -2712,19 +2711,19 @@ class Vi extends Qe {
|
|
|
2712
2711
|
);
|
|
2713
2712
|
this.outlets.size < 1 && !o && this.setRenderState("unset");
|
|
2714
2713
|
const l = () => {
|
|
2715
|
-
const g = () =>
|
|
2714
|
+
const g = () => v.querySelectorAll("[data-loading=true]").length === 0, [v] = this.widget.container.get("widgetDOMElements"), A = (Nt, w) => {
|
|
2716
2715
|
g() && (c.callback && c.callback(), w.disconnect());
|
|
2717
|
-
},
|
|
2716
|
+
}, ht = {
|
|
2718
2717
|
attributes: !0,
|
|
2719
2718
|
subtree: !0,
|
|
2720
2719
|
childList: !0
|
|
2721
2720
|
};
|
|
2722
|
-
g() && c.callback && c.callback(), new MutationObserver(A).observe(
|
|
2721
|
+
g() && c.callback && c.callback(), new MutationObserver(A).observe(v, ht);
|
|
2723
2722
|
};
|
|
2724
2723
|
h && this.widget.container.getAsync("dataClient").then(({ events: g }) => {
|
|
2725
2724
|
g.subscribe(
|
|
2726
2725
|
"data-client:fetched",
|
|
2727
|
-
(
|
|
2726
|
+
(v, A) => {
|
|
2728
2727
|
A.unresolvedQueries === 0 && l();
|
|
2729
2728
|
}
|
|
2730
2729
|
);
|
|
@@ -2736,8 +2735,8 @@ class Vi extends Qe {
|
|
|
2736
2735
|
), d == null || d.renderBadge(e)), c.triggerType !== j.Inline && ((p = c.triggerDOMElement) == null || p.addEventListener(
|
|
2737
2736
|
"click",
|
|
2738
2737
|
(g) => {
|
|
2739
|
-
g.preventDefault(), this.container.get("settings").then(({ trigger:
|
|
2740
|
-
d.render().then(() => this.renderState()).then((A) =>
|
|
2738
|
+
g.preventDefault(), this.container.get("settings").then(({ trigger: v }) => {
|
|
2739
|
+
d.render().then(() => this.renderState()).then((A) => v && v.action && v.action === "hide" ? A === _.open ? this.hide() : this.open() : A === _.open ? this.close() : this.open());
|
|
2741
2740
|
});
|
|
2742
2741
|
}
|
|
2743
2742
|
)), this.outlets.size > 1)
|
|
@@ -2784,7 +2783,7 @@ class Vi extends Qe {
|
|
|
2784
2783
|
}
|
|
2785
2784
|
}
|
|
2786
2785
|
getOrCreateViewOutlet(t, e) {
|
|
2787
|
-
return this.outlets.has(t) ? this.outlets.get(t) : new
|
|
2786
|
+
return this.outlets.has(t) ? this.outlets.get(t) : new ni(this.container, e);
|
|
2788
2787
|
}
|
|
2789
2788
|
render(t = {}) {
|
|
2790
2789
|
if (process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -2810,7 +2809,7 @@ class Vi extends Qe {
|
|
|
2810
2809
|
this.container.get("settings"),
|
|
2811
2810
|
S(
|
|
2812
2811
|
this.container,
|
|
2813
|
-
|
|
2812
|
+
Bt,
|
|
2814
2813
|
m.Necessary,
|
|
2815
2814
|
{
|
|
2816
2815
|
medium: f.Local
|
|
@@ -2824,7 +2823,7 @@ class Vi extends Qe {
|
|
|
2824
2823
|
clearSettings() {
|
|
2825
2824
|
return S(
|
|
2826
2825
|
this.container,
|
|
2827
|
-
|
|
2826
|
+
Bt,
|
|
2828
2827
|
m.Necessary,
|
|
2829
2828
|
{ medium: f.Local }
|
|
2830
2829
|
).then((t) => t()).then(() => this.container.get("settings")).then((t) => {
|
|
@@ -2839,7 +2838,7 @@ class Vi extends Qe {
|
|
|
2839
2838
|
renderState() {
|
|
2840
2839
|
return C(
|
|
2841
2840
|
this.container,
|
|
2842
|
-
|
|
2841
|
+
Wt,
|
|
2843
2842
|
f.Session
|
|
2844
2843
|
).then((e = _.closed) => e);
|
|
2845
2844
|
}
|
|
@@ -2889,7 +2888,7 @@ class Vi extends Qe {
|
|
|
2889
2888
|
return Promise.all([
|
|
2890
2889
|
S(
|
|
2891
2890
|
this.container,
|
|
2892
|
-
|
|
2891
|
+
Wt,
|
|
2893
2892
|
m.Necessary,
|
|
2894
2893
|
{
|
|
2895
2894
|
medium: f.Session
|
|
@@ -2897,7 +2896,7 @@ class Vi extends Qe {
|
|
|
2897
2896
|
),
|
|
2898
2897
|
S(
|
|
2899
2898
|
this.container,
|
|
2900
|
-
|
|
2899
|
+
Wt,
|
|
2901
2900
|
m.Necessary,
|
|
2902
2901
|
{
|
|
2903
2902
|
medium: f.Local,
|
|
@@ -2944,7 +2943,7 @@ class Vi extends Qe {
|
|
|
2944
2943
|
const {
|
|
2945
2944
|
options: { triggerDOMElement: s, triggerOptions: n }
|
|
2946
2945
|
} = e, { openTooltip: r, closedTooltip: o } = n || {};
|
|
2947
|
-
s && (t ?
|
|
2946
|
+
s && (t ? Ie(s, r) : Cs(s, o));
|
|
2948
2947
|
});
|
|
2949
2948
|
}
|
|
2950
2949
|
deactivate() {
|
|
@@ -2952,11 +2951,11 @@ class Vi extends Qe {
|
|
|
2952
2951
|
const t = [];
|
|
2953
2952
|
return this.outlets.forEach((e) => t.push(e.dispose())), C(
|
|
2954
2953
|
this.container,
|
|
2955
|
-
|
|
2954
|
+
$e,
|
|
2956
2955
|
f.Local
|
|
2957
2956
|
).then((e) => e === this.widget.name ? S(
|
|
2958
2957
|
this.container,
|
|
2959
|
-
|
|
2958
|
+
$e,
|
|
2960
2959
|
m.Necessary,
|
|
2961
2960
|
{
|
|
2962
2961
|
medium: f.Local,
|
|
@@ -2970,7 +2969,7 @@ class Vi extends Qe {
|
|
|
2970
2969
|
* Copyright 2021 Google LLC
|
|
2971
2970
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2972
2971
|
*/
|
|
2973
|
-
let
|
|
2972
|
+
let Be = class extends Event {
|
|
2974
2973
|
constructor(t, e, s, n) {
|
|
2975
2974
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e, this.callback = s, this.subscribe = n ?? !1;
|
|
2976
2975
|
}
|
|
@@ -2985,7 +2984,7 @@ let ze = class extends Event {
|
|
|
2985
2984
|
* Copyright 2021 Google LLC
|
|
2986
2985
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2987
2986
|
*/
|
|
2988
|
-
let
|
|
2987
|
+
let _e = class {
|
|
2989
2988
|
constructor(t, e, s, n) {
|
|
2990
2989
|
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (r, o) => {
|
|
2991
2990
|
this.unsubscribe && (this.unsubscribe !== o && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = r, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(r, o)), this.unsubscribe = o;
|
|
@@ -3002,7 +3001,7 @@ let $e = class {
|
|
|
3002
3001
|
this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
|
|
3003
3002
|
}
|
|
3004
3003
|
dispatchRequest() {
|
|
3005
|
-
this.host.dispatchEvent(new
|
|
3004
|
+
this.host.dispatchEvent(new Be(this.context, this.host, this.t, this.subscribe));
|
|
3006
3005
|
}
|
|
3007
3006
|
};
|
|
3008
3007
|
/**
|
|
@@ -3010,7 +3009,7 @@ let $e = class {
|
|
|
3010
3009
|
* Copyright 2021 Google LLC
|
|
3011
3010
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3012
3011
|
*/
|
|
3013
|
-
class
|
|
3012
|
+
class di {
|
|
3014
3013
|
get value() {
|
|
3015
3014
|
return this.o;
|
|
3016
3015
|
}
|
|
@@ -3043,12 +3042,12 @@ class li {
|
|
|
3043
3042
|
* Copyright 2021 Google LLC
|
|
3044
3043
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3045
3044
|
*/
|
|
3046
|
-
class
|
|
3045
|
+
class ui extends Event {
|
|
3047
3046
|
constructor(t, e) {
|
|
3048
3047
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
|
|
3049
3048
|
}
|
|
3050
3049
|
}
|
|
3051
|
-
class
|
|
3050
|
+
class F extends di {
|
|
3052
3051
|
constructor(t, e, s) {
|
|
3053
3052
|
var n, r;
|
|
3054
3053
|
super(e.context !== void 0 ? e.initialValue : s), this.onContextRequest = (o) => {
|
|
@@ -3058,7 +3057,7 @@ class K extends li {
|
|
|
3058
3057
|
}, this.onProviderRequest = (o) => {
|
|
3059
3058
|
if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
|
|
3060
3059
|
const a = /* @__PURE__ */ new Set();
|
|
3061
|
-
for (const [h, { consumerHost: c }] of this.subscriptions) a.has(h) || (a.add(h), c.dispatchEvent(new
|
|
3060
|
+
for (const [h, { consumerHost: c }] of this.subscriptions) a.has(h) || (a.add(h), c.dispatchEvent(new Be(this.context, c, h, !0)));
|
|
3062
3061
|
o.stopPropagation();
|
|
3063
3062
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (r = (n = this.host).addController) == null || r.call(n, this);
|
|
3064
3063
|
}
|
|
@@ -3066,7 +3065,7 @@ class K extends li {
|
|
|
3066
3065
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
3067
3066
|
}
|
|
3068
3067
|
hostConnected() {
|
|
3069
|
-
this.host.dispatchEvent(new
|
|
3068
|
+
this.host.dispatchEvent(new ui(this.context, this.host));
|
|
3070
3069
|
}
|
|
3071
3070
|
}
|
|
3072
3071
|
/**
|
|
@@ -3074,21 +3073,21 @@ class K extends li {
|
|
|
3074
3073
|
* Copyright 2022 Google LLC
|
|
3075
3074
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3076
3075
|
*/
|
|
3077
|
-
function
|
|
3076
|
+
function pi({ context: i, subscribe: t }) {
|
|
3078
3077
|
return (e, s) => {
|
|
3079
3078
|
typeof s == "object" ? s.addInitializer((function() {
|
|
3080
|
-
new
|
|
3079
|
+
new _e(this, { context: i, callback: (n) => {
|
|
3081
3080
|
e.set.call(this, n);
|
|
3082
3081
|
}, subscribe: t });
|
|
3083
3082
|
})) : e.constructor.addInitializer(((n) => {
|
|
3084
|
-
new
|
|
3083
|
+
new _e(n, { context: i, callback: (r) => {
|
|
3085
3084
|
n[s] = r;
|
|
3086
3085
|
}, subscribe: t });
|
|
3087
3086
|
}));
|
|
3088
3087
|
};
|
|
3089
3088
|
}
|
|
3090
|
-
const
|
|
3091
|
-
class
|
|
3089
|
+
const gi = "children", mi = "descriptor", fi = "container", yi = "context", vi = "layout", bi = "properties";
|
|
3090
|
+
class wi {
|
|
3092
3091
|
constructor(t) {
|
|
3093
3092
|
(this.host = t).addController(this);
|
|
3094
3093
|
}
|
|
@@ -3105,18 +3104,18 @@ class bi {
|
|
|
3105
3104
|
async dispatch(t, e) {
|
|
3106
3105
|
if (!this._container || !this._descriptor)
|
|
3107
3106
|
return;
|
|
3108
|
-
const s = await
|
|
3107
|
+
const s = await ot.getInstance(
|
|
3109
3108
|
this._container
|
|
3110
3109
|
), n = new q(s).withId(
|
|
3111
3110
|
this._descriptor.id
|
|
3112
3111
|
);
|
|
3113
3112
|
await s.actions(
|
|
3114
3113
|
n,
|
|
3115
|
-
this._descriptor.type ||
|
|
3114
|
+
this._descriptor.type || rt()
|
|
3116
3115
|
).dispatch(t, e);
|
|
3117
3116
|
}
|
|
3118
3117
|
}
|
|
3119
|
-
const
|
|
3118
|
+
const $i = async (i, t) => {
|
|
3120
3119
|
const e = i.properties().provider;
|
|
3121
3120
|
let s = {}, n = "";
|
|
3122
3121
|
Array.isArray(e) ? (n = e[0], s = e[1]) : n = e || "";
|
|
@@ -3126,14 +3125,14 @@ const wi = async (i, t) => {
|
|
|
3126
3125
|
if (!r)
|
|
3127
3126
|
throw new Error("No provider defined in ListComponent");
|
|
3128
3127
|
return r.applyComponentNodeSettings(i.node.id, s), { provider: r, settings: s };
|
|
3129
|
-
},
|
|
3130
|
-
const { provider: e, settings: s = {} } = await
|
|
3128
|
+
}, Wi = async (i, t) => {
|
|
3129
|
+
const { provider: e, settings: s = {} } = await $i(i, t);
|
|
3131
3130
|
return {
|
|
3132
3131
|
addResource: (n, r) => e.addResource(n, r),
|
|
3133
3132
|
getData: (n, r) => e.getData(n, r, s)
|
|
3134
3133
|
};
|
|
3135
3134
|
};
|
|
3136
|
-
class
|
|
3135
|
+
class _i {
|
|
3137
3136
|
constructor(t) {
|
|
3138
3137
|
this.container = t, this.resources = /* @__PURE__ */ new Map(), this.nodeConfiguration = /* @__PURE__ */ new Map();
|
|
3139
3138
|
}
|
|
@@ -3150,18 +3149,18 @@ class $i {
|
|
|
3150
3149
|
this.nodeConfiguration.set(t, e);
|
|
3151
3150
|
}
|
|
3152
3151
|
}
|
|
3153
|
-
const
|
|
3152
|
+
const Ae = (i) => ({
|
|
3154
3153
|
title: i.Title,
|
|
3155
3154
|
id: i.Id.toString()
|
|
3156
3155
|
});
|
|
3157
|
-
class
|
|
3156
|
+
class Ai extends _i {
|
|
3158
3157
|
constructor(t) {
|
|
3159
3158
|
super(t), this.addResource("item", {
|
|
3160
3159
|
query: async (e, s) => {
|
|
3161
3160
|
const n = e.itemId, r = "78aacc09-ae6f-5485-5ca3-9dacebb95825", o = t.get("$widget").name, a = s.projection || "", c = await (await fetch(
|
|
3162
3161
|
`${a}/guides/${n}?client=${r}&funnel=${o}&site=%2F%2Fdemo.humany.cc%2Fadmin%2Finterfaces&phrase=&connectionId=&p.LastGuideId=2857`
|
|
3163
3162
|
)).json();
|
|
3164
|
-
return c ?
|
|
3163
|
+
return c ? Ae(c) : null;
|
|
3165
3164
|
}
|
|
3166
3165
|
}), this.addResource("items", {
|
|
3167
3166
|
query: async (e, s) => {
|
|
@@ -3169,43 +3168,43 @@ class _i extends $i {
|
|
|
3169
3168
|
`${o}/guides?client=&funnel=${r}&site=&phrase=&skip=0&take=10&sorting.type=popularity&sorting.direction=descending`
|
|
3170
3169
|
)).json();
|
|
3171
3170
|
return {
|
|
3172
|
-
items: (d.Matches || []).map((u) =>
|
|
3171
|
+
items: (d.Matches || []).map((u) => Ae(u)),
|
|
3173
3172
|
totalItems: (d == null ? void 0 : d.TotalMatches) || 0
|
|
3174
3173
|
};
|
|
3175
3174
|
}
|
|
3176
3175
|
});
|
|
3177
3176
|
}
|
|
3178
3177
|
}
|
|
3179
|
-
const
|
|
3180
|
-
i.registerAsync("guideProvider", () => new
|
|
3181
|
-
},
|
|
3182
|
-
}), t, n))),
|
|
3178
|
+
const qi = async (i) => {
|
|
3179
|
+
i.registerAsync("guideProvider", () => new Ai(i));
|
|
3180
|
+
}, Ji = (i, t, e, s, n) => i.getAsync("componentResolver").then((r) => (r.registerComponent(t, e), Me(i, t, s || (() => {
|
|
3181
|
+
}), t, n))), xi = (i) => {
|
|
3183
3182
|
const t = {};
|
|
3184
3183
|
return Object.keys(i).forEach((e) => {
|
|
3185
3184
|
e.indexOf("css-") > -1 && (t[e] = i[e]);
|
|
3186
3185
|
}), t;
|
|
3187
|
-
},
|
|
3188
|
-
const e =
|
|
3186
|
+
}, Ei = (i, t) => {
|
|
3187
|
+
const e = xi(t);
|
|
3189
3188
|
Object.entries(e).forEach(([s, n]) => {
|
|
3190
3189
|
i.style.setProperty(s.replace("css-", ""), n);
|
|
3191
3190
|
});
|
|
3192
3191
|
};
|
|
3193
|
-
var
|
|
3192
|
+
var Ci = Object.defineProperty, I = (i, t, e, s) => {
|
|
3194
3193
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
3195
3194
|
(o = i[r]) && (n = o(t, e, n) || n);
|
|
3196
|
-
return n &&
|
|
3195
|
+
return n && Ci(t, e, n), n;
|
|
3197
3196
|
};
|
|
3198
|
-
const
|
|
3197
|
+
const Ki = (i) => {
|
|
3199
3198
|
const e = class e extends i {
|
|
3200
3199
|
constructor() {
|
|
3201
|
-
super(...arguments), this.entry = "", this._descriptorProvider = new
|
|
3200
|
+
super(...arguments), this.entry = "", this._descriptorProvider = new F(
|
|
3202
3201
|
this,
|
|
3203
|
-
|
|
3202
|
+
mi,
|
|
3204
3203
|
void 0
|
|
3205
|
-
), this._childrenProvider = new
|
|
3204
|
+
), this._childrenProvider = new F(this, gi, []), this._propertiesProvider = new F(this, bi, {}), this._contextProvider = new F(this, yi, {}), this._layoutProvider = new F(this, vi, {}), this.actions = new wi(this), this.context = {}, this.layout = {}, this.properties = {};
|
|
3206
3205
|
}
|
|
3207
3206
|
connectedCallback() {
|
|
3208
|
-
super.connectedCallback(), this.container && (this.actions.setContainer(this.container),
|
|
3207
|
+
super.connectedCallback(), this.container && (this.actions.setContainer(this.container), ot.getInstance(this.container).then(
|
|
3209
3208
|
async (n) => {
|
|
3210
3209
|
var o, a;
|
|
3211
3210
|
const r = n.nodes.get(this.entry);
|
|
@@ -3227,8 +3226,8 @@ const Ji = (i) => {
|
|
|
3227
3226
|
}
|
|
3228
3227
|
);
|
|
3229
3228
|
const h = "default";
|
|
3230
|
-
this._unmountNode = r.mount(this.container), this._setDescriptor(
|
|
3231
|
-
const c = r.getChildren(h).map((u) =>
|
|
3229
|
+
this._unmountNode = r.mount(this.container), this._setDescriptor(Jt(r, h)), this._setProperties(r.attributes.properties), this._setContext(r.attributes.context), this._setLayout(this.layout);
|
|
3230
|
+
const c = r.getChildren(h).map((u) => Jt(u));
|
|
3232
3231
|
this._childrenProvider.setValue(c);
|
|
3233
3232
|
const l = await this.container.getAsync("componentResolver");
|
|
3234
3233
|
if (((o = this.descriptor) == null ? void 0 : o.type) === "area")
|
|
@@ -3250,7 +3249,7 @@ const Ji = (i) => {
|
|
|
3250
3249
|
this.container && this.actions.setContainer(this.container), this.renderRoot.host.style.setProperty(
|
|
3251
3250
|
"--width",
|
|
3252
3251
|
this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
|
|
3253
|
-
),
|
|
3252
|
+
), Ei(this.renderRoot.host, this.properties);
|
|
3254
3253
|
}
|
|
3255
3254
|
_setProperties(n) {
|
|
3256
3255
|
this._propertiesProvider.setValue(n), this.properties = n;
|
|
@@ -3267,7 +3266,7 @@ const Ji = (i) => {
|
|
|
3267
3266
|
};
|
|
3268
3267
|
e.styles = [
|
|
3269
3268
|
i.styles ?? [],
|
|
3270
|
-
|
|
3269
|
+
Te`
|
|
3271
3270
|
:host {
|
|
3272
3271
|
font-family: var(--font-family);
|
|
3273
3272
|
grid-column: span var(--width);
|
|
@@ -3283,7 +3282,7 @@ const Ji = (i) => {
|
|
|
3283
3282
|
];
|
|
3284
3283
|
let t = e;
|
|
3285
3284
|
return I([
|
|
3286
|
-
|
|
3285
|
+
pi({ context: fi }),
|
|
3287
3286
|
it({ attribute: !1 })
|
|
3288
3287
|
], t.prototype, "container"), I([
|
|
3289
3288
|
it()
|
|
@@ -3300,32 +3299,32 @@ const Ji = (i) => {
|
|
|
3300
3299
|
], t.prototype, "properties"), t;
|
|
3301
3300
|
};
|
|
3302
3301
|
export {
|
|
3303
|
-
|
|
3304
|
-
|
|
3302
|
+
wi as A,
|
|
3303
|
+
_i as D,
|
|
3305
3304
|
y as E,
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3305
|
+
qi as G,
|
|
3306
|
+
V as T,
|
|
3307
|
+
Ki as W,
|
|
3309
3308
|
Q as a,
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3309
|
+
F as b,
|
|
3310
|
+
fi as c,
|
|
3311
|
+
Te as d,
|
|
3312
|
+
Ys as e,
|
|
3313
|
+
Ei as f,
|
|
3314
|
+
Vi as g,
|
|
3315
|
+
gi as h,
|
|
3316
|
+
Zs as i,
|
|
3317
|
+
mi as j,
|
|
3318
|
+
yi as k,
|
|
3319
|
+
vi as l,
|
|
3320
|
+
Xs as m,
|
|
3322
3321
|
it as n,
|
|
3323
3322
|
_ as o,
|
|
3324
|
-
|
|
3325
|
-
|
|
3323
|
+
bi as p,
|
|
3324
|
+
Wi as q,
|
|
3326
3325
|
k as r,
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3326
|
+
ot as s,
|
|
3327
|
+
Gs as t,
|
|
3328
|
+
Ji as u,
|
|
3329
|
+
dt as x
|
|
3331
3330
|
};
|