@telia-ace/widget-runtime-flamingo 1.1.8 → 1.1.9-rc.1
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-d6155c49.mjs → index-b0ab09be.mjs} +389 -381
- package/{index-89150576.js → index-b8ac77e5.js} +29 -29
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/{render-b4120783.js → render-7894a00f.js} +16 -16
- package/{render-e4d64d4e.mjs → render-a4c6ea66.mjs} +32 -35
|
@@ -11,7 +11,7 @@ const It = (n, t, e, ...s) => {
|
|
|
11
11
|
console.error(i, ...s);
|
|
12
12
|
break;
|
|
13
13
|
}
|
|
14
|
-
},
|
|
14
|
+
}, Xe = (n) => {
|
|
15
15
|
const t = n.container || n;
|
|
16
16
|
return {
|
|
17
17
|
info: (e, ...s) => It(t, "info", e, ...s),
|
|
@@ -19,8 +19,8 @@ const It = (n, t, e, ...s) => {
|
|
|
19
19
|
error: (e, ...s) => It(t, "error", e, ...s)
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
const
|
|
22
|
+
var tt = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(tt || {}), N = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(N || {});
|
|
23
|
+
const ts = (n, t, e, s) => {
|
|
24
24
|
try {
|
|
25
25
|
const i = new t(e, s);
|
|
26
26
|
return {
|
|
@@ -47,20 +47,20 @@ const es = (n, t, e, s) => {
|
|
|
47
47
|
function oe(n, t) {
|
|
48
48
|
return typeof n > "u" ? t : n;
|
|
49
49
|
}
|
|
50
|
-
let
|
|
50
|
+
let es = class {
|
|
51
51
|
constructor(t = {}) {
|
|
52
52
|
this.part = t;
|
|
53
53
|
}
|
|
54
54
|
createCommand(t, e, s) {
|
|
55
55
|
let i;
|
|
56
56
|
typeof e == "function" ? i = {
|
|
57
|
-
scope:
|
|
58
|
-
stage:
|
|
57
|
+
scope: tt.Widget,
|
|
58
|
+
stage: N.Post,
|
|
59
59
|
defaultArgs: void 0,
|
|
60
60
|
handlerResolver: e
|
|
61
61
|
} : i = {
|
|
62
|
-
scope: oe(e.scope,
|
|
63
|
-
stage: oe(e.stage,
|
|
62
|
+
scope: oe(e.scope, tt.Widget),
|
|
63
|
+
stage: oe(e.stage, N.Post),
|
|
64
64
|
defaultArgs: e.defaultArgs,
|
|
65
65
|
handlerResolver: s
|
|
66
66
|
};
|
|
@@ -75,25 +75,25 @@ let ss = class {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
const Ne = (n) => {
|
|
78
|
-
const t = new
|
|
78
|
+
const t = new es({});
|
|
79
79
|
return n(t), t.get();
|
|
80
80
|
};
|
|
81
81
|
Ne((n) => {
|
|
82
82
|
n.createCommand(
|
|
83
83
|
"types.register",
|
|
84
|
-
{ scope:
|
|
84
|
+
{ scope: tt.Implementation, stage: N.Pre },
|
|
85
85
|
(t) => (e, s) => {
|
|
86
86
|
t.container.get("$types")[e] = s;
|
|
87
87
|
}
|
|
88
88
|
).createCommand(
|
|
89
89
|
"type",
|
|
90
|
-
{ stage:
|
|
90
|
+
{ stage: N.Pre },
|
|
91
91
|
(t) => (e) => {
|
|
92
92
|
t.container.register("$type", e);
|
|
93
93
|
}
|
|
94
94
|
).createCommand(
|
|
95
95
|
"settings",
|
|
96
|
-
{ stage:
|
|
96
|
+
{ stage: N.Pre, defaultArgs: [null] },
|
|
97
97
|
(t) => (e) => {
|
|
98
98
|
t.events.dispatch(
|
|
99
99
|
"settings:change",
|
|
@@ -103,7 +103,7 @@ Ne((n) => {
|
|
|
103
103
|
}
|
|
104
104
|
).createCommand(
|
|
105
105
|
"plugin",
|
|
106
|
-
{ stage:
|
|
106
|
+
{ stage: N.Pre },
|
|
107
107
|
(t) => (e, s, i) => {
|
|
108
108
|
const { container: r } = t;
|
|
109
109
|
let o = null, a = e, h = s;
|
|
@@ -116,7 +116,7 @@ Ne((n) => {
|
|
|
116
116
|
a
|
|
117
117
|
) : s;
|
|
118
118
|
try {
|
|
119
|
-
const u =
|
|
119
|
+
const u = ts(
|
|
120
120
|
o,
|
|
121
121
|
a,
|
|
122
122
|
r,
|
|
@@ -124,7 +124,7 @@ Ne((n) => {
|
|
|
124
124
|
);
|
|
125
125
|
r.get("$plugins").push(u), l && u.invoke("initialize", null);
|
|
126
126
|
} catch (u) {
|
|
127
|
-
|
|
127
|
+
Xe(t).warn("Error when initializing plugin", u);
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
t.container.get("$instance") ? c(!0) : t.events.subscribeOnce("widget:instance-created", () => c(!1));
|
|
@@ -157,12 +157,12 @@ Ne((n) => {
|
|
|
157
157
|
}
|
|
158
158
|
);
|
|
159
159
|
});
|
|
160
|
-
function
|
|
160
|
+
function ss(n) {
|
|
161
161
|
const t = {};
|
|
162
162
|
return [].filter.call(n.attributes, (e) => /^data-/.test(e.name)).map((e) => e.name).forEach((e) => t[e.substr(5)] = n.getAttribute(e)), t;
|
|
163
163
|
}
|
|
164
164
|
const ae = (n, t, e) => {
|
|
165
|
-
const s =
|
|
165
|
+
const s = ss(n);
|
|
166
166
|
e({
|
|
167
167
|
sourceDOMElement: n,
|
|
168
168
|
eventType: t,
|
|
@@ -176,7 +176,7 @@ function ce(n, t, e) {
|
|
|
176
176
|
}), s.dataset.monitored = "true");
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function ns(n, t, e) {
|
|
180
180
|
const s = n.container.get("bootstrapping.monitor");
|
|
181
181
|
s && s.events.subscribe("bootstrap:trigger-elements-updated", (r, o) => {
|
|
182
182
|
ce(
|
|
@@ -195,7 +195,7 @@ function is(n, t, e) {
|
|
|
195
195
|
Ne((n) => {
|
|
196
196
|
n.createCommand(
|
|
197
197
|
"ready",
|
|
198
|
-
{ scope:
|
|
198
|
+
{ scope: tt.Implementation, stage: N.Pre },
|
|
199
199
|
(t) => (e) => {
|
|
200
200
|
const { container: s } = t, i = s.owner;
|
|
201
201
|
s.get("bootstrapping").ready ? e(i) : i.events.subscribeOnce("bootstrap:ready", () => {
|
|
@@ -204,7 +204,7 @@ Ne((n) => {
|
|
|
204
204
|
}
|
|
205
205
|
);
|
|
206
206
|
});
|
|
207
|
-
const
|
|
207
|
+
const Tt = (n, t, e, ...s) => {
|
|
208
208
|
const i = `[${n.get("$environment").name || "webprovisions"}] ${e}`;
|
|
209
209
|
switch (t) {
|
|
210
210
|
case "info":
|
|
@@ -217,16 +217,16 @@ const Rt = (n, t, e, ...s) => {
|
|
|
217
217
|
console.error(i, ...s);
|
|
218
218
|
break;
|
|
219
219
|
}
|
|
220
|
-
},
|
|
220
|
+
}, is = (n) => {
|
|
221
221
|
const t = n.container || n;
|
|
222
222
|
return {
|
|
223
|
-
info: (e, ...s) =>
|
|
224
|
-
warn: (e, ...s) =>
|
|
225
|
-
error: (e, ...s) =>
|
|
223
|
+
info: (e, ...s) => Tt(t, "info", e, ...s),
|
|
224
|
+
warn: (e, ...s) => Tt(t, "warning", e, ...s),
|
|
225
|
+
error: (e, ...s) => Tt(t, "error", e, ...s)
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
|
-
var bt = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(bt || {}),
|
|
229
|
-
const
|
|
228
|
+
var bt = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(bt || {}), I = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(I || {});
|
|
229
|
+
const rs = (n, t, e, s) => {
|
|
230
230
|
try {
|
|
231
231
|
const i = new t(e, s);
|
|
232
232
|
return {
|
|
@@ -253,7 +253,7 @@ const os = (n, t, e, s) => {
|
|
|
253
253
|
function he(n, t) {
|
|
254
254
|
return typeof n > "u" ? t : n;
|
|
255
255
|
}
|
|
256
|
-
let
|
|
256
|
+
let os = class {
|
|
257
257
|
constructor(t = {}) {
|
|
258
258
|
this.part = t;
|
|
259
259
|
}
|
|
@@ -261,12 +261,12 @@ let as = class {
|
|
|
261
261
|
let i;
|
|
262
262
|
typeof e == "function" ? i = {
|
|
263
263
|
scope: bt.Widget,
|
|
264
|
-
stage:
|
|
264
|
+
stage: I.Post,
|
|
265
265
|
defaultArgs: void 0,
|
|
266
266
|
handlerResolver: e
|
|
267
267
|
} : i = {
|
|
268
268
|
scope: he(e.scope, bt.Widget),
|
|
269
|
-
stage: he(e.stage,
|
|
269
|
+
stage: he(e.stage, I.Post),
|
|
270
270
|
defaultArgs: e.defaultArgs,
|
|
271
271
|
handlerResolver: s
|
|
272
272
|
};
|
|
@@ -280,26 +280,26 @@ let as = class {
|
|
|
280
280
|
return this.part;
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
|
-
const
|
|
284
|
-
const t = new
|
|
283
|
+
const Me = (n) => {
|
|
284
|
+
const t = new os({});
|
|
285
285
|
return n(t), t.get();
|
|
286
286
|
};
|
|
287
|
-
|
|
287
|
+
Me((n) => {
|
|
288
288
|
n.createCommand(
|
|
289
289
|
"types.register",
|
|
290
|
-
{ scope: bt.Implementation, stage:
|
|
290
|
+
{ scope: bt.Implementation, stage: I.Pre },
|
|
291
291
|
(t) => (e, s) => {
|
|
292
292
|
t.container.get("$types")[e] = s;
|
|
293
293
|
}
|
|
294
294
|
).createCommand(
|
|
295
295
|
"type",
|
|
296
|
-
{ stage:
|
|
296
|
+
{ stage: I.Pre },
|
|
297
297
|
(t) => (e) => {
|
|
298
298
|
t.container.register("$type", e);
|
|
299
299
|
}
|
|
300
300
|
).createCommand(
|
|
301
301
|
"settings",
|
|
302
|
-
{ stage:
|
|
302
|
+
{ stage: I.Pre, defaultArgs: [null] },
|
|
303
303
|
(t) => (e) => {
|
|
304
304
|
t.events.dispatch(
|
|
305
305
|
"settings:change",
|
|
@@ -309,7 +309,7 @@ De((n) => {
|
|
|
309
309
|
}
|
|
310
310
|
).createCommand(
|
|
311
311
|
"plugin",
|
|
312
|
-
{ stage:
|
|
312
|
+
{ stage: I.Pre },
|
|
313
313
|
(t) => (e, s, i) => {
|
|
314
314
|
const { container: r } = t;
|
|
315
315
|
let o = null, a = e, h = s;
|
|
@@ -322,7 +322,7 @@ De((n) => {
|
|
|
322
322
|
a
|
|
323
323
|
) : s;
|
|
324
324
|
try {
|
|
325
|
-
const u =
|
|
325
|
+
const u = rs(
|
|
326
326
|
o,
|
|
327
327
|
a,
|
|
328
328
|
r,
|
|
@@ -330,7 +330,7 @@ De((n) => {
|
|
|
330
330
|
);
|
|
331
331
|
r.get("$plugins").push(u), l && u.invoke("initialize", null);
|
|
332
332
|
} catch (u) {
|
|
333
|
-
|
|
333
|
+
is(t).warn("Error when initializing plugin", u);
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
336
|
t.container.get("$instance") ? c(!0) : t.events.subscribeOnce("widget:instance-created", () => c(!1));
|
|
@@ -363,8 +363,8 @@ De((n) => {
|
|
|
363
363
|
}
|
|
364
364
|
);
|
|
365
365
|
});
|
|
366
|
-
var
|
|
367
|
-
class
|
|
366
|
+
var De = /* @__PURE__ */ ((n) => (n.Activating = "activating", n.Loading = "loading", n.Activated = "activated", n.Deactivating = "deactivating", n.Deactivated = "deactivated", n))(De || {});
|
|
367
|
+
class as {
|
|
368
368
|
/**
|
|
369
369
|
* Creates a new `Widget` instance.
|
|
370
370
|
* @param container The `Container` instance to base the widget upon.
|
|
@@ -375,15 +375,15 @@ class cs {
|
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
const Ot = (n, t, ...e) => typeof t == "string" ? n(`[humany] ${t}`, ...e) : n(t, ...e),
|
|
378
|
+
const Ot = (n, t, ...e) => typeof t == "string" ? n(`[humany] ${t}`, ...e) : n(t, ...e), Y = class {
|
|
379
379
|
constructor() {
|
|
380
|
-
this.keys = [], this.log = (t, ...e) => this.lookup(t, () =>
|
|
380
|
+
this.keys = [], this.log = (t, ...e) => this.lookup(t, () => Y.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => Y.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => Y.error(...e)), this.info = (t, ...e) => this.lookup(t, () => Y.info(...e));
|
|
381
381
|
}
|
|
382
382
|
lookup(t, e) {
|
|
383
383
|
this.keys.indexOf(t) === -1 && (this.keys.push(t), e());
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
|
-
let v =
|
|
386
|
+
let v = Y;
|
|
387
387
|
v.log = (...n) => Ot(console.log, ...n);
|
|
388
388
|
v.warn = (...n) => Ot(console.warn, ...n);
|
|
389
389
|
v.error = (...n) => Ot(console.error, ...n);
|
|
@@ -396,7 +396,7 @@ const Le = (n) => {
|
|
|
396
396
|
for (s in n)
|
|
397
397
|
e = n[s], t[s] = typeof e == "object" && e !== null ? Le(e) : e;
|
|
398
398
|
return t;
|
|
399
|
-
},
|
|
399
|
+
}, cs = Le;
|
|
400
400
|
function le(n) {
|
|
401
401
|
let t = 0;
|
|
402
402
|
if (n.length === 0)
|
|
@@ -407,7 +407,7 @@ function le(n) {
|
|
|
407
407
|
}
|
|
408
408
|
return t.toString();
|
|
409
409
|
}
|
|
410
|
-
let
|
|
410
|
+
let hs = class {
|
|
411
411
|
constructor(t, e) {
|
|
412
412
|
this.lockWarningTime = t, this.lockErrorTime = e, this.tasks = [], this.current = Promise.resolve(), this.next = this.next.bind(this);
|
|
413
413
|
}
|
|
@@ -437,16 +437,16 @@ let ls = class {
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
|
-
const
|
|
441
|
-
function
|
|
442
|
-
return
|
|
443
|
-
const o =
|
|
440
|
+
const lt = /* @__PURE__ */ new WeakMap();
|
|
441
|
+
function E(n, t = 5e3, e = 1e3) {
|
|
442
|
+
return lt.has(n) || lt.set(n, new hs(t, e)), (s) => new Promise((i, r) => {
|
|
443
|
+
const o = lt.get(n);
|
|
444
444
|
o.add(s, i, r, () => {
|
|
445
|
-
o.tasks.length ||
|
|
445
|
+
o.tasks.length || lt.delete(n);
|
|
446
446
|
});
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
|
-
const
|
|
449
|
+
const ls = (n, t) => {
|
|
450
450
|
const e = () => t.querySelectorAll("[data-loading=true]").length > 0, s = (() => {
|
|
451
451
|
let i = !1;
|
|
452
452
|
return () => {
|
|
@@ -466,7 +466,7 @@ const ds = (n, t) => {
|
|
|
466
466
|
childList: !0,
|
|
467
467
|
subtree: !0
|
|
468
468
|
});
|
|
469
|
-
},
|
|
469
|
+
}, ds = (n, t) => {
|
|
470
470
|
n.get("$widget").container.getAsync("components").then((e) => {
|
|
471
471
|
e.events.subscribeOnce("components:component-model-initialized", () => {
|
|
472
472
|
let s = e.nodes.visible.reduce(
|
|
@@ -482,7 +482,7 @@ const ds = (n, 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), !i && s.length === 0 && (i = !0,
|
|
485
|
+
s = s.filter((c) => h.indexOf(c) === -1), !i && s.length === 0 && (i = !0, ls(n, t), o.disconnect());
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
488
|
}).observe(t, {
|
|
@@ -495,19 +495,19 @@ const ds = (n, t) => {
|
|
|
495
495
|
});
|
|
496
496
|
});
|
|
497
497
|
});
|
|
498
|
-
},
|
|
499
|
-
function
|
|
500
|
-
return
|
|
498
|
+
}, ps = ds, x = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
|
|
499
|
+
function rt() {
|
|
500
|
+
return x() + x() + "-" + x() + "-" + x() + "-" + x() + "-" + x() + x() + x();
|
|
501
501
|
}
|
|
502
|
-
var
|
|
502
|
+
var us = Object.defineProperty, gs = Object.defineProperties, ms = Object.getOwnPropertyDescriptors, de = Object.getOwnPropertySymbols, fs = Object.prototype.hasOwnProperty, ys = Object.prototype.propertyIsEnumerable, pe = (n, t, e) => t in n ? us(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, vs = (n, t) => {
|
|
503
503
|
for (var e in t || (t = {}))
|
|
504
|
-
|
|
504
|
+
fs.call(t, e) && pe(n, e, t[e]);
|
|
505
505
|
if (de)
|
|
506
506
|
for (var e of de(t))
|
|
507
|
-
|
|
507
|
+
ys.call(t, e) && pe(n, e, t[e]);
|
|
508
508
|
return n;
|
|
509
|
-
},
|
|
510
|
-
class
|
|
509
|
+
}, bs = (n, t) => gs(n, ms(t));
|
|
510
|
+
class ws {
|
|
511
511
|
constructor(t) {
|
|
512
512
|
const { events: e } = t.get("$widget");
|
|
513
513
|
this.events = e.createChild(this);
|
|
@@ -535,7 +535,7 @@ const Ie = (n) => {
|
|
|
535
535
|
}
|
|
536
536
|
];
|
|
537
537
|
};
|
|
538
|
-
let
|
|
538
|
+
let J = class {
|
|
539
539
|
constructor(t, e = []) {
|
|
540
540
|
this.platform = t, this.rules = e;
|
|
541
541
|
}
|
|
@@ -549,13 +549,13 @@ let F = class {
|
|
|
549
549
|
return this.rules.push({ id: t }), this;
|
|
550
550
|
}
|
|
551
551
|
select() {
|
|
552
|
-
return new
|
|
552
|
+
return new $s(this.platform, this);
|
|
553
553
|
}
|
|
554
554
|
}, Qt = class {
|
|
555
555
|
constructor(t, e, s) {
|
|
556
556
|
this.platform = t, this.node = e, this.actions = new xt(
|
|
557
557
|
t,
|
|
558
|
-
new
|
|
558
|
+
new J(t).withId(e.id),
|
|
559
559
|
s
|
|
560
560
|
);
|
|
561
561
|
const [i, r] = Ie(this.platform.events);
|
|
@@ -587,7 +587,7 @@ let F = class {
|
|
|
587
587
|
this.unsubscribe(), this.actions.dispose();
|
|
588
588
|
}
|
|
589
589
|
};
|
|
590
|
-
class
|
|
590
|
+
class $s {
|
|
591
591
|
constructor(t, e, s = !0) {
|
|
592
592
|
this.platform = t, this.target = e, this.clearOnDispose = s, this.removes = [], this.actions = new xt(this.platform, this.target);
|
|
593
593
|
}
|
|
@@ -627,12 +627,12 @@ class _s {
|
|
|
627
627
|
}), this.actions.dispose();
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
const
|
|
630
|
+
const _s = (n, t, e) => {
|
|
631
631
|
const s = n.concat(), i = (r, o, a) => {
|
|
632
632
|
let h = !0;
|
|
633
633
|
if (s.length) {
|
|
634
634
|
const c = s.shift(), l = (d, p) => (h = !1, i(d, Object.assign({}, o, p), a));
|
|
635
|
-
return Promise.resolve(c(r, l, a)).then((d) =>
|
|
635
|
+
return Promise.resolve(c(r, l, a)).then((d) => bs(vs({}, d), {
|
|
636
636
|
cancelled: h
|
|
637
637
|
}));
|
|
638
638
|
}
|
|
@@ -677,12 +677,12 @@ let xt = class {
|
|
|
677
677
|
c,
|
|
678
678
|
this.ns
|
|
679
679
|
);
|
|
680
|
-
return
|
|
680
|
+
return _s(h, e, l).then((d) => {
|
|
681
681
|
const { data: p = {}, options: u, cancelled: g } = d;
|
|
682
682
|
return Promise.resolve(
|
|
683
683
|
g ? {} : o.fn(p, u, l)
|
|
684
|
-
).then((
|
|
685
|
-
i[c.id] =
|
|
684
|
+
).then((b) => {
|
|
685
|
+
i[c.id] = b;
|
|
686
686
|
});
|
|
687
687
|
});
|
|
688
688
|
})
|
|
@@ -711,7 +711,7 @@ let xt = class {
|
|
|
711
711
|
this.subscriptions.forEach((t) => t());
|
|
712
712
|
}
|
|
713
713
|
};
|
|
714
|
-
|
|
714
|
+
Me((n) => {
|
|
715
715
|
n.createCommand("components", (t) => (e) => {
|
|
716
716
|
t.events.subscribeOnce("components:platform-created", (s, { platform: i }) => {
|
|
717
717
|
e.handlers && e.handlers.forEach(([r, o]) => {
|
|
@@ -722,7 +722,7 @@ De((n) => {
|
|
|
722
722
|
});
|
|
723
723
|
let Kt = class {
|
|
724
724
|
constructor(t, e) {
|
|
725
|
-
this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id =
|
|
725
|
+
this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = rt(), this.type = e, this.attributes = {
|
|
726
726
|
context: {},
|
|
727
727
|
properties: {},
|
|
728
728
|
layout: {},
|
|
@@ -805,29 +805,29 @@ let Kt = class {
|
|
|
805
805
|
}), delete t.parent;
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
|
-
const
|
|
808
|
+
const Te = (n, t, e) => {
|
|
809
809
|
for (let s = 0, i = n.length; s < i && e(n[s]) !== !0; s++) {
|
|
810
810
|
const r = t[n[s].id] || "default", o = n[s].getChildren(r);
|
|
811
|
-
|
|
811
|
+
Te(o, t, e);
|
|
812
812
|
}
|
|
813
813
|
}, St = (n, t, e) => {
|
|
814
814
|
if (e(n) !== !0) {
|
|
815
815
|
const s = t[n.id] || "default", i = n.children[s];
|
|
816
|
-
|
|
816
|
+
Te(i, t, e);
|
|
817
817
|
}
|
|
818
818
|
}, mt = (n, t) => {
|
|
819
819
|
const e = [];
|
|
820
820
|
return St(n, t, (s) => {
|
|
821
821
|
e.push(s);
|
|
822
822
|
}), e;
|
|
823
|
-
},
|
|
823
|
+
}, Re = (n, t, e) => {
|
|
824
824
|
let s;
|
|
825
825
|
return St(n, t, (i) => {
|
|
826
826
|
if (e(i))
|
|
827
827
|
return s = i, !0;
|
|
828
828
|
}), s;
|
|
829
829
|
};
|
|
830
|
-
class
|
|
830
|
+
class As {
|
|
831
831
|
constructor(t, e, s) {
|
|
832
832
|
this.root = t, this.switches = e, this.all = [], this.visible = [], this.detached = [], s.subscribe("components:node-appended", (i, r) => {
|
|
833
833
|
this.all.push(r.node), this.visible = mt(t, e);
|
|
@@ -845,10 +845,10 @@ class Es {
|
|
|
845
845
|
}), e;
|
|
846
846
|
}
|
|
847
847
|
get(t) {
|
|
848
|
-
return
|
|
848
|
+
return Re(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
class
|
|
851
|
+
class Es {
|
|
852
852
|
constructor() {
|
|
853
853
|
this.handlers = /* @__PURE__ */ new Map();
|
|
854
854
|
}
|
|
@@ -859,49 +859,49 @@ class Cs {
|
|
|
859
859
|
return this.handlers.get(t);
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
|
-
const
|
|
862
|
+
const Cs = (n) => {
|
|
863
863
|
let t = n, e = 0;
|
|
864
864
|
for (; t.parent; )
|
|
865
865
|
e = e + 1, t = t.parent;
|
|
866
866
|
return e;
|
|
867
|
-
},
|
|
867
|
+
}, Os = (n) => n.map(([t, e]) => [Cs(t), t, e]).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), Rt = (n) => n instanceof Date ? !1 : n && typeof n == "object" && !Array.isArray(n), C = (n, ...t) => {
|
|
868
868
|
if (!t.length)
|
|
869
869
|
return n;
|
|
870
870
|
const e = t.shift();
|
|
871
|
-
if (
|
|
871
|
+
if (Rt(n) && Rt(e))
|
|
872
872
|
for (const s in e)
|
|
873
|
-
|
|
874
|
-
return
|
|
875
|
-
},
|
|
873
|
+
Rt(e[s]) ? (n[s] || Object.assign(n, { [s]: {} }), C(n[s], e[s])) : Object.assign(n, { [s]: e[s] });
|
|
874
|
+
return C(n, ...t);
|
|
875
|
+
}, xs = (n, t) => !n || n === "all" ? !0 : n.some((e) => t.indexOf(e) > -1), Ss = (n, t) => {
|
|
876
876
|
let e = [], s = [], i;
|
|
877
877
|
const r = () => {
|
|
878
878
|
process.env.NODE_ENV !== "production" && console.time("state-processor.flush");
|
|
879
|
-
const a = /* @__PURE__ */ new Map(), h =
|
|
879
|
+
const a = /* @__PURE__ */ new Map(), h = Os(e.map((l, d) => [l, s[d]])), c = (l, d) => {
|
|
880
880
|
var p;
|
|
881
|
-
const u = a.get(l) || {}, g = d.context && !u.context,
|
|
881
|
+
const u = a.get(l) || {}, g = d.context && !u.context, b = d.properties && !u.properties, A = d.layout && !u.layout;
|
|
882
882
|
a.set(l, {
|
|
883
883
|
context: u.context || g,
|
|
884
|
-
properties: u.properties ||
|
|
885
|
-
layout: u.layout ||
|
|
886
|
-
}),
|
|
887
|
-
const
|
|
888
|
-
if (l.changesets.forEach((
|
|
889
|
-
const [
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
) :
|
|
893
|
-
}),
|
|
894
|
-
|
|
895
|
-
}),
|
|
896
|
-
|
|
897
|
-
}),
|
|
898
|
-
|
|
884
|
+
properties: u.properties || b,
|
|
885
|
+
layout: u.layout || A
|
|
886
|
+
}), b && (l.attributes.properties = {}), A && (l.attributes.layout = {}), g && (l.attributes.context = C({}, (p = l.parent) == null ? void 0 : p.attributes.context));
|
|
887
|
+
const ht = [], Mt = [], Dt = [];
|
|
888
|
+
if (l.changesets.forEach((w) => {
|
|
889
|
+
const [$, Lt] = w;
|
|
890
|
+
xs(Lt.breakpoints, n.breakpoints) && (b && (typeof $.properties == "function" ? ht.push(
|
|
891
|
+
$.properties
|
|
892
|
+
) : C(l.attributes.properties, $.properties)), A && (typeof $.layout == "function" ? Mt.push($.layout) : C(l.attributes.layout, $.layout)), g && (typeof $.context == "function" ? Dt.push($.context) : C(l.attributes.context, $.context)));
|
|
893
|
+
}), ht.forEach((w) => {
|
|
894
|
+
C(l.attributes.properties, w(l.attributes.properties));
|
|
895
|
+
}), Mt.forEach((w) => {
|
|
896
|
+
C(l.attributes.layout, w(l.attributes.layout));
|
|
897
|
+
}), Dt.forEach((w) => {
|
|
898
|
+
C(l.attributes.context, w(l.attributes.context));
|
|
899
899
|
}), g || d.recursive) {
|
|
900
|
-
const
|
|
900
|
+
const w = n.getBranch(l), $ = d.recursive ? d : {
|
|
901
901
|
context: !!g
|
|
902
902
|
};
|
|
903
|
-
l.getChildren(
|
|
904
|
-
c(Lt,
|
|
903
|
+
l.getChildren(w).forEach((Lt) => {
|
|
904
|
+
c(Lt, $);
|
|
905
905
|
});
|
|
906
906
|
}
|
|
907
907
|
};
|
|
@@ -920,12 +920,12 @@ const Os = (n) => {
|
|
|
920
920
|
return e.push(a), s.push(h), o();
|
|
921
921
|
};
|
|
922
922
|
};
|
|
923
|
-
class
|
|
923
|
+
class ot {
|
|
924
924
|
constructor(t, e = {}) {
|
|
925
|
-
this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new
|
|
925
|
+
this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new Es(), this.events = t.events.createChild(this);
|
|
926
926
|
const s = new Kt(this.events, "root");
|
|
927
|
-
s.name = `root-${t.name}`, this.nodes = new
|
|
928
|
-
const i = this.processNode =
|
|
927
|
+
s.name = `root-${t.name}`, this.nodes = new As(s, this.switches, this.events);
|
|
928
|
+
const i = this.processNode = Ss(this, (r) => {
|
|
929
929
|
const o = Array.from(r.keys());
|
|
930
930
|
process.env.NODE_ENV !== "production" && console.info(`STATE PROCESSOR: ${o.length} node(s) processed:
|
|
931
931
|
${o.map(
|
|
@@ -1034,13 +1034,13 @@ ${o.map(
|
|
|
1034
1034
|
return e.detached && this.nodes.detached.push(s), s;
|
|
1035
1035
|
}
|
|
1036
1036
|
components() {
|
|
1037
|
-
return new
|
|
1037
|
+
return new J(this);
|
|
1038
1038
|
}
|
|
1039
1039
|
actions(t, e) {
|
|
1040
1040
|
return new xt(this, t, e);
|
|
1041
1041
|
}
|
|
1042
1042
|
write(t) {
|
|
1043
|
-
const { provider: e, target: s, attributes: i, options: r = {}, removable: o } = t, a = t.key ||
|
|
1043
|
+
const { provider: e, target: s, attributes: i, options: r = {}, removable: o } = t, a = t.key || rt(), h = { changeset: [i, r], target: s, removes: [] };
|
|
1044
1044
|
if (e) {
|
|
1045
1045
|
const c = this.providers[e];
|
|
1046
1046
|
c.write(a, s, i, r), h.removes.push(() => {
|
|
@@ -1071,7 +1071,7 @@ ${o.map(
|
|
|
1071
1071
|
this.subscriptions.forEach((t) => t());
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
|
-
const
|
|
1074
|
+
const Ps = (n) => {
|
|
1075
1075
|
if (Array.isArray(n)) {
|
|
1076
1076
|
const [t, ...e] = n;
|
|
1077
1077
|
return {
|
|
@@ -1085,7 +1085,7 @@ const ks = (n) => {
|
|
|
1085
1085
|
};
|
|
1086
1086
|
}, wt = (n, t, e, s, i, r) => {
|
|
1087
1087
|
e.forEach((o) => {
|
|
1088
|
-
const a =
|
|
1088
|
+
const a = Ps(o), h = s[a.definitionId];
|
|
1089
1089
|
if (a.definitionId === "view") {
|
|
1090
1090
|
const c = n.createNode("view");
|
|
1091
1091
|
c.name = "view", Object.keys(i).forEach((l) => {
|
|
@@ -1138,16 +1138,16 @@ const ks = (n) => {
|
|
|
1138
1138
|
type: n.type,
|
|
1139
1139
|
name: n.name,
|
|
1140
1140
|
branch: t || "default"
|
|
1141
|
-
}), Ue = (n, t, e, s =
|
|
1141
|
+
}), Ue = (n, t, e, s = rt(), i = {}) => n.getAsync("components").then((r) => {
|
|
1142
1142
|
let o;
|
|
1143
1143
|
if (typeof t == "string") {
|
|
1144
|
-
const c = new
|
|
1144
|
+
const c = new J(r);
|
|
1145
1145
|
c.ofType(t), o = c;
|
|
1146
1146
|
} else
|
|
1147
1147
|
o = t;
|
|
1148
1148
|
const a = {}, h = (c) => {
|
|
1149
1149
|
const l = a[c.id];
|
|
1150
|
-
return l ? Promise.resolve(l.controller) :
|
|
1150
|
+
return l ? Promise.resolve(l.controller) : ot.getInstance(n).then((d) => new Qt(d, c, s));
|
|
1151
1151
|
};
|
|
1152
1152
|
r.events.subscribe(
|
|
1153
1153
|
"components:node-enter",
|
|
@@ -1169,7 +1169,7 @@ const ks = (n) => {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
);
|
|
1171
1171
|
});
|
|
1172
|
-
class
|
|
1172
|
+
class ks {
|
|
1173
1173
|
constructor(t) {
|
|
1174
1174
|
this.aliases = /* @__PURE__ */ new Map(), this.components = /* @__PURE__ */ new Map(), this.logger = new v();
|
|
1175
1175
|
const { events: e } = t.get("$widget");
|
|
@@ -1201,34 +1201,34 @@ class Ns {
|
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
var
|
|
1204
|
+
var _ = /* @__PURE__ */ ((n) => (n.open = "open", n.closed = "closed", n.hidden = "hidden", n))(_ || {});
|
|
1205
1205
|
const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1206
1206
|
__proto__: null,
|
|
1207
|
-
ActionResolver:
|
|
1207
|
+
ActionResolver: ws,
|
|
1208
1208
|
ActionsController: xt,
|
|
1209
1209
|
ComponentNode: Kt,
|
|
1210
1210
|
ComponentNodeController: Qt,
|
|
1211
|
-
ComponentPlatform:
|
|
1212
|
-
ComponentQuery:
|
|
1213
|
-
ComponentResolver:
|
|
1214
|
-
WidgetRenderState:
|
|
1211
|
+
ComponentPlatform: ot,
|
|
1212
|
+
ComponentQuery: J,
|
|
1213
|
+
ComponentResolver: ks,
|
|
1214
|
+
WidgetRenderState: _,
|
|
1215
1215
|
asDescriptor: Gt,
|
|
1216
1216
|
createChildren: wt,
|
|
1217
1217
|
createComponentModel: je,
|
|
1218
1218
|
createEventSubscriber: Ie,
|
|
1219
1219
|
extendComponent: Ue,
|
|
1220
|
-
findComponent:
|
|
1220
|
+
findComponent: Re,
|
|
1221
1221
|
findVisibleComponents: mt,
|
|
1222
1222
|
traverseComponents: St
|
|
1223
1223
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1224
|
-
var
|
|
1224
|
+
var Ns = Object.defineProperty, ue = Object.getOwnPropertySymbols, Ms = Object.prototype.hasOwnProperty, Ds = Object.prototype.propertyIsEnumerable, ge = (n, t, e) => t in n ? Ns(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, z = (n, t) => {
|
|
1225
1225
|
for (var e in t || (t = {}))
|
|
1226
1226
|
Ms.call(t, e) && ge(n, e, t[e]);
|
|
1227
1227
|
if (ue)
|
|
1228
1228
|
for (var e of ue(t))
|
|
1229
|
-
|
|
1229
|
+
Ds.call(t, e) && ge(n, e, t[e]);
|
|
1230
1230
|
return n;
|
|
1231
|
-
},
|
|
1231
|
+
}, dt = (n, t, e) => new Promise((s, i) => {
|
|
1232
1232
|
var r = (h) => {
|
|
1233
1233
|
try {
|
|
1234
1234
|
a(e.next(h));
|
|
@@ -1243,8 +1243,8 @@ var Ds = Object.defineProperty, ue = Object.getOwnPropertySymbols, Ms = Object.p
|
|
|
1243
1243
|
}
|
|
1244
1244
|
}, a = (h) => h.done ? s(h.value) : Promise.resolve(h.value).then(r, o);
|
|
1245
1245
|
a((e = e.apply(n, t)).next());
|
|
1246
|
-
}), f = /* @__PURE__ */ ((n) => (n.Cookie = "cookie", n.Local = "local", n.Session = "session", n))(f || {}),
|
|
1247
|
-
const
|
|
1246
|
+
}), f = /* @__PURE__ */ ((n) => (n.Cookie = "cookie", n.Local = "local", n.Session = "session", n))(f || {}), F = /* @__PURE__ */ ((n) => (n.Tenant = "tenant", n.Implementation = "implementation", n.Widget = "widget", n))(F || {}), m = /* @__PURE__ */ ((n) => (n.Necessary = "necessary", n.Functional = "functional", n.Analytical = "analytical", n.Marketing = "marketing", n))(m || {});
|
|
1247
|
+
const S = (n, t, e, s = {}) => me(n, e).then((i) => (process.env.NODE_ENV !== "production" && i && v.warn(
|
|
1248
1248
|
`createStorageWriter: Attempted to create storage writer using unallowed category.
|
|
1249
1249
|
Key: ${t}
|
|
1250
1250
|
Category: ${JSON.stringify(e)}
|
|
@@ -1261,21 +1261,21 @@ const P = (n, t, e, s = {}) => me(n, e).then((i) => (process.env.NODE_ENV !== "p
|
|
|
1261
1261
|
return;
|
|
1262
1262
|
}
|
|
1263
1263
|
const {
|
|
1264
|
-
scope: a =
|
|
1264
|
+
scope: a = F.Widget,
|
|
1265
1265
|
medium: h = f.Session,
|
|
1266
1266
|
duration: c
|
|
1267
|
-
} = s, l =
|
|
1268
|
-
return l[a][t] = te(r, e, c), h === f.Cookie ?
|
|
1269
|
-
})))),
|
|
1267
|
+
} = s, l = Is();
|
|
1268
|
+
return l[a][t] = te(r, e, c), h === f.Cookie ? Us(n, l) : Hs(n, h, l);
|
|
1269
|
+
})))), O = (n, t, e = f.Session) => (ee(n), typeof t > "u" ? (process.env.NODE_ENV !== "production" && v.warn("readStorage: Undefined key passed when reading storage. ", t, e), Promise.resolve(void 0)) : e === f.Cookie ? js(n).then((s) => _t(s, t)) : Vs(n, e).then((s) => _t(s, t))), W = (n) => !!Object.entries(n).filter(([t, e]) => typeof e < "u").length, jt = (n) => Object.entries(n).filter(([t, e]) => typeof e < "u").forEach(([t, { value: e }]) => {
|
|
1270
1270
|
typeof e > "u" && delete n[t];
|
|
1271
1271
|
}), Ve = (n, t) => {
|
|
1272
1272
|
const e = {
|
|
1273
|
-
tenant:
|
|
1274
|
-
implementation:
|
|
1275
|
-
widget:
|
|
1273
|
+
tenant: z(z({}, n.tenant), t.tenant),
|
|
1274
|
+
implementation: z(z({}, n.implementation), t.implementation),
|
|
1275
|
+
widget: z(z({}, n.widget), t.widget)
|
|
1276
1276
|
};
|
|
1277
1277
|
return jt(e.tenant), jt(e.implementation), jt(e.widget), e;
|
|
1278
|
-
},
|
|
1278
|
+
}, Ls = (n) => Object.entries(n).reduce((t, e) => {
|
|
1279
1279
|
const [s, i] = e;
|
|
1280
1280
|
return Object.entries(i).forEach((r) => {
|
|
1281
1281
|
const [o, { expiration: a }] = r;
|
|
@@ -1305,12 +1305,12 @@ const P = (n, t, e, s = {}) => me(n, e).then((i) => (process.env.NODE_ENV !== "p
|
|
|
1305
1305
|
widget: o
|
|
1306
1306
|
};
|
|
1307
1307
|
}, He = (n, t) => {
|
|
1308
|
-
const e = Xt(n), s = Ve(e, t), [i, r, o] = Pt(n), { tenant: a, implementation: h, widget: c } = s, l =
|
|
1309
|
-
Vt(i, a,
|
|
1308
|
+
const e = Xt(n), s = Ve(e, t), [i, r, o] = Pt(n), { tenant: a, implementation: h, widget: c } = s, l = Ls(t), d = kt({ days: -1 });
|
|
1309
|
+
Vt(i, a, W(a) ? l : d), Vt(
|
|
1310
1310
|
r,
|
|
1311
1311
|
h,
|
|
1312
|
-
|
|
1313
|
-
), Vt(o, c,
|
|
1312
|
+
W(h) ? l : d
|
|
1313
|
+
), Vt(o, c, W(c) ? l : d);
|
|
1314
1314
|
}, $t = (n, t) => {
|
|
1315
1315
|
const [e, s, i] = Pt(n), r = t.getItem(e) || "{}", o = t.getItem(s) || "{}", a = t.getItem(i) || "{}";
|
|
1316
1316
|
return {
|
|
@@ -1320,8 +1320,8 @@ const P = (n, t, e, s = {}) => me(n, e).then((i) => (process.env.NODE_ENV !== "p
|
|
|
1320
1320
|
};
|
|
1321
1321
|
}, Yt = (n, t, e) => {
|
|
1322
1322
|
const s = $t(n, t), i = Ve(s, e), [r, o, a] = Pt(n), { tenant: h, implementation: c, widget: l } = i;
|
|
1323
|
-
|
|
1324
|
-
},
|
|
1323
|
+
W(h) ? t.setItem(r, JSON.stringify(h)) : t.removeItem(r), W(c) ? t.setItem(o, JSON.stringify(c)) : t.removeItem(o), W(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);
|
|
1324
|
+
}, Is = () => ({ tenant: {}, implementation: {}, widget: {} }), Ts = (n) => n ? !!n && /* @__PURE__ */ new Date() > new Date(n) : !1, _t = (n, t) => {
|
|
1325
1325
|
const e = n.widget[t] || n.implementation[t] || n.tenant[t];
|
|
1326
1326
|
return e == null ? void 0 : e.value;
|
|
1327
1327
|
}, te = (n, t, e) => e ? {
|
|
@@ -1332,16 +1332,16 @@ const P = (n, t, e, s = {}) => me(n, e).then((i) => (process.env.NODE_ENV !== "p
|
|
|
1332
1332
|
value: n,
|
|
1333
1333
|
category: t
|
|
1334
1334
|
}, ft = (n, t) => {
|
|
1335
|
-
const e =
|
|
1335
|
+
const e = cs(n);
|
|
1336
1336
|
return Object.entries(e).forEach(([s, i]) => {
|
|
1337
1337
|
Object.entries(i).forEach(([r, o]) => {
|
|
1338
1338
|
const { expiration: a, category: h } = o;
|
|
1339
|
-
(Ts(a) ||
|
|
1339
|
+
(Ts(a) || Rs(t, h)) && (i[r] = te(void 0, h, a));
|
|
1340
1340
|
});
|
|
1341
1341
|
}), e;
|
|
1342
|
-
}, me = (n, t) =>
|
|
1342
|
+
}, me = (n, t) => O(n, "storagePolicy", f.Cookie).then(
|
|
1343
1343
|
(e = [m.Necessary]) => !!t && e.indexOf(t) === -1
|
|
1344
|
-
),
|
|
1344
|
+
), Rs = (n = [m.Necessary], t) => !!t && n.indexOf(t) === -1, ee = (n) => {
|
|
1345
1345
|
const t = Xt(n), e = $t(n, window.localStorage), s = $t(n, sessionStorage), i = _t(t, "storagePolicy"), [r, o, a] = [
|
|
1346
1346
|
t,
|
|
1347
1347
|
e,
|
|
@@ -1351,12 +1351,12 @@ const P = (n, t, e, s = {}) => me(n, e).then((i) => (process.env.NODE_ENV !== "p
|
|
|
1351
1351
|
}, kt = (n = { days: 30 }) => {
|
|
1352
1352
|
const { days: t = 0, hours: e = 0, minutes: s = 0, seconds: i = 0 } = n, r = /* @__PURE__ */ new Date();
|
|
1353
1353
|
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() + i * 1e3), r.toISOString();
|
|
1354
|
-
},
|
|
1354
|
+
}, js = (n) => E(document)(() => Xt(n)), Us = (n, t) => E(document)(() => He(n, t)), Vs = (n, t) => {
|
|
1355
1355
|
const e = t === f.Local ? window.localStorage : window.sessionStorage;
|
|
1356
|
-
return
|
|
1357
|
-
},
|
|
1356
|
+
return E(e)(() => $t(n, e));
|
|
1357
|
+
}, Hs = (n, t, e) => {
|
|
1358
1358
|
const s = t === f.Local ? window.localStorage : window.sessionStorage;
|
|
1359
|
-
return
|
|
1359
|
+
return E(s)(() => Yt(n, s, e));
|
|
1360
1360
|
};
|
|
1361
1361
|
let yt = class {
|
|
1362
1362
|
constructor() {
|
|
@@ -1367,9 +1367,9 @@ let yt = class {
|
|
|
1367
1367
|
};
|
|
1368
1368
|
}
|
|
1369
1369
|
setItem(t, e) {
|
|
1370
|
-
return
|
|
1371
|
-
return
|
|
1372
|
-
const o = ft(this.memory, [m.Necessary]), { scope: a =
|
|
1370
|
+
return dt(this, arguments, function* (s, i, r = {}) {
|
|
1371
|
+
return E(this)(() => {
|
|
1372
|
+
const o = ft(this.memory, [m.Necessary]), { scope: a = F.Tenant, expiration: h } = r;
|
|
1373
1373
|
o[a][s] = te(
|
|
1374
1374
|
i,
|
|
1375
1375
|
m.Necessary,
|
|
@@ -1385,8 +1385,8 @@ let yt = class {
|
|
|
1385
1385
|
});
|
|
1386
1386
|
}
|
|
1387
1387
|
getItem(t) {
|
|
1388
|
-
return
|
|
1389
|
-
return
|
|
1388
|
+
return dt(this, null, function* () {
|
|
1389
|
+
return E(this)(() => {
|
|
1390
1390
|
const e = ft(this.memory, [m.Necessary]);
|
|
1391
1391
|
process.env.NODE_ENV !== "production" && v.warn(
|
|
1392
1392
|
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value fetched from legacy memory storage.
|
|
@@ -1399,8 +1399,8 @@ let yt = class {
|
|
|
1399
1399
|
});
|
|
1400
1400
|
}
|
|
1401
1401
|
removeItem(t) {
|
|
1402
|
-
return
|
|
1403
|
-
return
|
|
1402
|
+
return dt(this, null, function* () {
|
|
1403
|
+
return E(this)(() => {
|
|
1404
1404
|
const e = ft(this.memory, [m.Necessary]);
|
|
1405
1405
|
delete e.tenant[t], delete e.implementation[t], delete e.widget[t], this.memory = e, process.env.NODE_ENV !== "production" && v.warn(
|
|
1406
1406
|
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value removed from memory.
|
|
@@ -1411,12 +1411,12 @@ let yt = class {
|
|
|
1411
1411
|
});
|
|
1412
1412
|
}
|
|
1413
1413
|
clear() {
|
|
1414
|
-
return
|
|
1414
|
+
return dt(this, null, function* () {
|
|
1415
1415
|
return Promise.resolve();
|
|
1416
1416
|
});
|
|
1417
1417
|
}
|
|
1418
1418
|
};
|
|
1419
|
-
class
|
|
1419
|
+
class zs {
|
|
1420
1420
|
constructor() {
|
|
1421
1421
|
this.cookies = new yt(), this.session = new yt(), this.local = new yt();
|
|
1422
1422
|
}
|
|
@@ -1434,7 +1434,7 @@ const Ht = (n, t, e, ...s) => {
|
|
|
1434
1434
|
console.error(i, ...s);
|
|
1435
1435
|
break;
|
|
1436
1436
|
}
|
|
1437
|
-
},
|
|
1437
|
+
}, Bs = (n) => {
|
|
1438
1438
|
const t = n.container || n;
|
|
1439
1439
|
return {
|
|
1440
1440
|
info: (e, ...s) => Ht(t, "info", e, ...s),
|
|
@@ -1443,7 +1443,7 @@ const Ht = (n, t, e, ...s) => {
|
|
|
1443
1443
|
};
|
|
1444
1444
|
};
|
|
1445
1445
|
var At = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(At || {}), T = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(T || {});
|
|
1446
|
-
const
|
|
1446
|
+
const Ws = (n, t, e, s) => {
|
|
1447
1447
|
try {
|
|
1448
1448
|
const i = new t(e, s);
|
|
1449
1449
|
return {
|
|
@@ -1470,7 +1470,7 @@ const qs = (n, t, e, s) => {
|
|
|
1470
1470
|
function fe(n, t) {
|
|
1471
1471
|
return typeof n > "u" ? t : n;
|
|
1472
1472
|
}
|
|
1473
|
-
class
|
|
1473
|
+
class qs {
|
|
1474
1474
|
constructor(t = {}) {
|
|
1475
1475
|
this.part = t;
|
|
1476
1476
|
}
|
|
@@ -1498,7 +1498,7 @@ class Js {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
const ze = (n) => {
|
|
1501
|
-
const t = new
|
|
1501
|
+
const t = new qs({});
|
|
1502
1502
|
return n(t), t.get();
|
|
1503
1503
|
};
|
|
1504
1504
|
ze((n) => {
|
|
@@ -1539,7 +1539,7 @@ ze((n) => {
|
|
|
1539
1539
|
a
|
|
1540
1540
|
) : s;
|
|
1541
1541
|
try {
|
|
1542
|
-
const u =
|
|
1542
|
+
const u = Ws(
|
|
1543
1543
|
o,
|
|
1544
1544
|
a,
|
|
1545
1545
|
r,
|
|
@@ -1547,7 +1547,7 @@ ze((n) => {
|
|
|
1547
1547
|
);
|
|
1548
1548
|
r.get("$plugins").push(u), l && u.invoke("initialize", null);
|
|
1549
1549
|
} catch (u) {
|
|
1550
|
-
|
|
1550
|
+
Bs(t).warn("Error when initializing plugin", u);
|
|
1551
1551
|
}
|
|
1552
1552
|
};
|
|
1553
1553
|
t.container.get("$instance") ? c(!0) : t.events.subscribeOnce("widget:instance-created", () => c(!1));
|
|
@@ -1609,13 +1609,13 @@ ze((n) => {
|
|
|
1609
1609
|
return i.indexOf(m.Necessary) === -1 && (process.env.NODE_ENV !== "production" && v.warn(
|
|
1610
1610
|
`storagePolicyConfigurationApi: passed consent does not include category: '${m.Necessary}'. Consent has to atleast include the '${m.Necessary}' category.
|
|
1611
1611
|
Passed consent: ${JSON.stringify(s)}`
|
|
1612
|
-
), i.unshift(m.Necessary)),
|
|
1612
|
+
), i.unshift(m.Necessary)), S(
|
|
1613
1613
|
t.container,
|
|
1614
1614
|
"storagePolicy",
|
|
1615
1615
|
m.Necessary,
|
|
1616
1616
|
{
|
|
1617
1617
|
medium: f.Cookie,
|
|
1618
|
-
scope:
|
|
1618
|
+
scope: F.Tenant,
|
|
1619
1619
|
duration: { days: 365 }
|
|
1620
1620
|
}
|
|
1621
1621
|
).then((r) => r(i)).then(() => {
|
|
@@ -1624,16 +1624,16 @@ ze((n) => {
|
|
|
1624
1624
|
}
|
|
1625
1625
|
});
|
|
1626
1626
|
});
|
|
1627
|
-
const
|
|
1627
|
+
const Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1628
1628
|
__proto__: null,
|
|
1629
1629
|
StorageCategory: m,
|
|
1630
1630
|
StorageMedium: f,
|
|
1631
|
-
StorageProvider:
|
|
1632
|
-
StorageScope:
|
|
1631
|
+
StorageProvider: zs,
|
|
1632
|
+
StorageScope: F,
|
|
1633
1633
|
StorageService: yt,
|
|
1634
|
-
createStorageWriter:
|
|
1635
|
-
readStorage:
|
|
1636
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1634
|
+
createStorageWriter: S,
|
|
1635
|
+
readStorage: O
|
|
1636
|
+
}, Symbol.toStringTag, { value: "Module" })), Fs = (n) => {
|
|
1637
1637
|
const t = (i, r) => {
|
|
1638
1638
|
i && (r ? i.classList.add("ace-tabbing") : i.classList.remove("ace-tabbing"));
|
|
1639
1639
|
}, e = (i) => {
|
|
@@ -1645,7 +1645,7 @@ const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1645
1645
|
document.removeEventListener("keydown", e), document.removeEventListener("click", s);
|
|
1646
1646
|
};
|
|
1647
1647
|
};
|
|
1648
|
-
function
|
|
1648
|
+
function Ks(n, t) {
|
|
1649
1649
|
const {
|
|
1650
1650
|
// symbol,
|
|
1651
1651
|
widgetName: e,
|
|
@@ -1653,14 +1653,14 @@ function Gs(n, t) {
|
|
|
1653
1653
|
ariaLabel: i = "",
|
|
1654
1654
|
tooltip: r = ""
|
|
1655
1655
|
} = t;
|
|
1656
|
-
return n.classList.add("ace-widget-trigger"), n.classList.add(`ace-widget_${e}`), s.length && n.classList.add("trigger-has-text"), i.length && !n.getAttribute("aria-label") && n.setAttribute("aria-label", i), i.length && !n.getAttribute("tabindex") && n.setAttribute("tabindex", "0"), r.length && !n.getAttribute("title") && n.setAttribute("title", r),
|
|
1656
|
+
return n.classList.add("ace-widget-trigger"), n.classList.add(`ace-widget_${e}`), s.length && n.classList.add("trigger-has-text"), i.length && !n.getAttribute("aria-label") && n.setAttribute("aria-label", i), i.length && !n.getAttribute("tabindex") && n.setAttribute("tabindex", "0"), r.length && !n.getAttribute("title") && n.setAttribute("title", r), Fs(n);
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function Gs(n, t) {
|
|
1659
1659
|
n instanceof HTMLElement ? (t && n.setAttribute("title", t), n.classList.remove("ace-trigger-active"), n.classList.remove("ace-trigger-loading")) : n instanceof Array && n.forEach((e) => {
|
|
1660
1660
|
t && e.setAttribute("title", t), e.classList.remove("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
|
|
1661
1661
|
});
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1663
|
+
function Ys(n) {
|
|
1664
1664
|
n instanceof HTMLElement ? (n.classList.remove("ace-trigger-active"), n.classList.add("ace-trigger-loading")) : n instanceof Array && n.forEach((t) => {
|
|
1665
1665
|
t.classList.remove("ace-trigger-active"), t.classList.add("ace-trigger-loading");
|
|
1666
1666
|
});
|
|
@@ -1695,7 +1695,7 @@ let We = class {
|
|
|
1695
1695
|
return this.cssText;
|
|
1696
1696
|
}
|
|
1697
1697
|
};
|
|
1698
|
-
const
|
|
1698
|
+
const Qs = (n) => new We(typeof n == "string" ? n : n + "", void 0, ne), qe = (n, ...t) => {
|
|
1699
1699
|
const e = n.length === 1 ? n[0] : t.reduce((s, i, r) => s + ((o) => {
|
|
1700
1700
|
if (o._$cssResult$ === !0)
|
|
1701
1701
|
return o.cssText;
|
|
@@ -1704,7 +1704,7 @@ const Zs = (n) => new We(typeof n == "string" ? n : n + "", void 0, ne), qe = (n
|
|
|
1704
1704
|
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.");
|
|
1705
1705
|
})(i) + n[r + 1], n[0]);
|
|
1706
1706
|
return new We(e, n, ne);
|
|
1707
|
-
},
|
|
1707
|
+
}, Zs = (n, t) => {
|
|
1708
1708
|
if (se)
|
|
1709
1709
|
n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
1710
1710
|
else
|
|
@@ -1716,17 +1716,17 @@ const Zs = (n) => new We(typeof n == "string" ? n : n + "", void 0, ne), qe = (n
|
|
|
1716
1716
|
let e = "";
|
|
1717
1717
|
for (const s of t.cssRules)
|
|
1718
1718
|
e += s.cssText;
|
|
1719
|
-
return
|
|
1719
|
+
return Qs(e);
|
|
1720
1720
|
})(n) : n;
|
|
1721
1721
|
/**
|
|
1722
1722
|
* @license
|
|
1723
1723
|
* Copyright 2017 Google LLC
|
|
1724
1724
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1725
1725
|
*/
|
|
1726
|
-
const { is:
|
|
1726
|
+
const { is: Xs, defineProperty: tn, getOwnPropertyDescriptor: en, getOwnPropertyNames: sn, getOwnPropertySymbols: nn, getPrototypeOf: rn } = Object, M = globalThis, be = M.trustedTypes, on = be ? be.emptyScript : "", zt = M.reactiveElementPolyfillSupport, Q = (n, t) => n, Et = { toAttribute(n, t) {
|
|
1727
1727
|
switch (t) {
|
|
1728
1728
|
case Boolean:
|
|
1729
|
-
n = n ?
|
|
1729
|
+
n = n ? on : null;
|
|
1730
1730
|
break;
|
|
1731
1731
|
case Object:
|
|
1732
1732
|
case Array:
|
|
@@ -1751,9 +1751,9 @@ const { is: tn, defineProperty: en, getOwnPropertyDescriptor: sn, getOwnProperty
|
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
1753
1753
|
return e;
|
|
1754
|
-
} }, ie = (n, t) => !
|
|
1754
|
+
} }, ie = (n, t) => !Xs(n, t), we = { attribute: !0, type: String, converter: Et, reflect: !1, hasChanged: ie };
|
|
1755
1755
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), M.litPropertyMetadata ?? (M.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1756
|
-
class
|
|
1756
|
+
class B extends HTMLElement {
|
|
1757
1757
|
static addInitializer(t) {
|
|
1758
1758
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
1759
1759
|
}
|
|
@@ -1763,11 +1763,11 @@ class W extends HTMLElement {
|
|
|
1763
1763
|
static createProperty(t, e = we) {
|
|
1764
1764
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
1765
1765
|
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
1766
|
-
i !== void 0 &&
|
|
1766
|
+
i !== void 0 && tn(this.prototype, t, i);
|
|
1767
1767
|
}
|
|
1768
1768
|
}
|
|
1769
1769
|
static getPropertyDescriptor(t, e, s) {
|
|
1770
|
-
const { get: i, set: r } =
|
|
1770
|
+
const { get: i, set: r } = en(this.prototype, t) ?? { get() {
|
|
1771
1771
|
return this[e];
|
|
1772
1772
|
}, set(o) {
|
|
1773
1773
|
this[e] = o;
|
|
@@ -1783,16 +1783,16 @@ class W extends HTMLElement {
|
|
|
1783
1783
|
return this.elementProperties.get(t) ?? we;
|
|
1784
1784
|
}
|
|
1785
1785
|
static _$Ei() {
|
|
1786
|
-
if (this.hasOwnProperty(
|
|
1786
|
+
if (this.hasOwnProperty(Q("elementProperties")))
|
|
1787
1787
|
return;
|
|
1788
|
-
const t =
|
|
1788
|
+
const t = rn(this);
|
|
1789
1789
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
1790
1790
|
}
|
|
1791
1791
|
static finalize() {
|
|
1792
|
-
if (this.hasOwnProperty(
|
|
1792
|
+
if (this.hasOwnProperty(Q("finalized")))
|
|
1793
1793
|
return;
|
|
1794
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
1795
|
-
const e = this.properties, s = [...
|
|
1794
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Q("properties"))) {
|
|
1795
|
+
const e = this.properties, s = [...sn(e), ...nn(e)];
|
|
1796
1796
|
for (const i of s)
|
|
1797
1797
|
this.createProperty(i, e[i]);
|
|
1798
1798
|
}
|
|
@@ -1847,7 +1847,7 @@ class W extends HTMLElement {
|
|
|
1847
1847
|
}
|
|
1848
1848
|
createRenderRoot() {
|
|
1849
1849
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1850
|
-
return
|
|
1850
|
+
return Zs(t, this.constructor.elementStyles), t;
|
|
1851
1851
|
}
|
|
1852
1852
|
connectedCallback() {
|
|
1853
1853
|
var t;
|
|
@@ -1964,59 +1964,59 @@ class W extends HTMLElement {
|
|
|
1964
1964
|
firstUpdated(t) {
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
|
-
|
|
1967
|
+
B.elementStyles = [], B.shadowRootOptions = { mode: "open" }, B[Q("elementProperties")] = /* @__PURE__ */ new Map(), B[Q("finalized")] = /* @__PURE__ */ new Map(), zt == null || zt({ ReactiveElement: B }), (M.reactiveElementVersions ?? (M.reactiveElementVersions = [])).push("2.0.1");
|
|
1968
1968
|
/**
|
|
1969
1969
|
* @license
|
|
1970
1970
|
* Copyright 2017 Google LLC
|
|
1971
1971
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1972
1972
|
*/
|
|
1973
|
-
const
|
|
1974
|
-
\f\r]`,
|
|
1975
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ee = /'/g, Ce = /"/g, Ge = /^(?:script|style|textarea|title)$/i,
|
|
1973
|
+
const Z = globalThis, Ct = Z.trustedTypes, $e = Ct ? Ct.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Je = "$lit$", P = `lit$${(Math.random() + "").slice(9)}$`, Fe = "?" + P, an = `<${Fe}>`, U = document, et = () => U.createComment(""), st = (n) => n === null || typeof n != "object" && typeof n != "function", Ke = Array.isArray, cn = (n) => Ke(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Bt = `[
|
|
1974
|
+
\f\r]`, K = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _e = /-->/g, Ae = />/g, D = RegExp(`>|${Bt}(?:([^\\s"'>=/]+)(${Bt}*=${Bt}*(?:[^
|
|
1975
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ee = /'/g, Ce = /"/g, Ge = /^(?:script|style|textarea|title)$/i, hn = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), pt = hn(1), V = Symbol.for("lit-noChange"), y = Symbol.for("lit-nothing"), Oe = /* @__PURE__ */ new WeakMap(), R = U.createTreeWalker(U, 129);
|
|
1976
1976
|
function Ye(n, t) {
|
|
1977
1977
|
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
|
1978
1978
|
throw Error("invalid template strings array");
|
|
1979
1979
|
return $e !== void 0 ? $e.createHTML(t) : t;
|
|
1980
1980
|
}
|
|
1981
|
-
const
|
|
1981
|
+
const ln = (n, t) => {
|
|
1982
1982
|
const e = n.length - 1, s = [];
|
|
1983
|
-
let i, r = t === 2 ? "<svg>" : "", o =
|
|
1983
|
+
let i, r = t === 2 ? "<svg>" : "", o = K;
|
|
1984
1984
|
for (let a = 0; a < e; a++) {
|
|
1985
1985
|
const h = n[a];
|
|
1986
1986
|
let c, l, d = -1, p = 0;
|
|
1987
1987
|
for (; p < h.length && (o.lastIndex = p, l = o.exec(h), l !== null); )
|
|
1988
|
-
p = o.lastIndex, o ===
|
|
1989
|
-
const u = o ===
|
|
1990
|
-
r += o ===
|
|
1988
|
+
p = o.lastIndex, o === K ? l[1] === "!--" ? o = _e : l[1] !== void 0 ? o = Ae : l[2] !== void 0 ? (Ge.test(l[2]) && (i = RegExp("</" + l[2], "g")), o = D) : l[3] !== void 0 && (o = D) : o === D ? l[0] === ">" ? (o = i ?? K, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, c = l[1], o = l[3] === void 0 ? D : l[3] === '"' ? Ce : Ee) : o === Ce || o === Ee ? o = D : o === _e || o === Ae ? o = K : (o = D, i = void 0);
|
|
1989
|
+
const u = o === D && n[a + 1].startsWith("/>") ? " " : "";
|
|
1990
|
+
r += o === K ? h + an : d >= 0 ? (s.push(c), h.slice(0, d) + Je + h.slice(d) + P + u) : h + P + (d === -2 ? a : u);
|
|
1991
1991
|
}
|
|
1992
1992
|
return [Ye(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
|
1993
1993
|
};
|
|
1994
|
-
class
|
|
1994
|
+
class nt {
|
|
1995
1995
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
1996
1996
|
let i;
|
|
1997
1997
|
this.parts = [];
|
|
1998
1998
|
let r = 0, o = 0;
|
|
1999
|
-
const a = t.length - 1, h = this.parts, [c, l] =
|
|
2000
|
-
if (this.el =
|
|
1999
|
+
const a = t.length - 1, h = this.parts, [c, l] = ln(t, e);
|
|
2000
|
+
if (this.el = nt.createElement(c, s), R.currentNode = this.el.content, e === 2) {
|
|
2001
2001
|
const d = this.el.content.firstChild;
|
|
2002
2002
|
d.replaceWith(...d.childNodes);
|
|
2003
2003
|
}
|
|
2004
|
-
for (; (i =
|
|
2004
|
+
for (; (i = R.nextNode()) !== null && h.length < a; ) {
|
|
2005
2005
|
if (i.nodeType === 1) {
|
|
2006
2006
|
if (i.hasAttributes())
|
|
2007
2007
|
for (const d of i.getAttributeNames())
|
|
2008
2008
|
if (d.endsWith(Je)) {
|
|
2009
|
-
const p = l[o++], u = i.getAttribute(d).split(
|
|
2010
|
-
h.push({ type: 1, index: r, name: g[2], strings: u, ctor: g[1] === "." ?
|
|
2009
|
+
const p = l[o++], u = i.getAttribute(d).split(P), g = /([.?@])?(.*)/.exec(p);
|
|
2010
|
+
h.push({ type: 1, index: r, name: g[2], strings: u, ctor: g[1] === "." ? pn : g[1] === "?" ? un : g[1] === "@" ? gn : Nt }), i.removeAttribute(d);
|
|
2011
2011
|
} else
|
|
2012
|
-
d.startsWith(
|
|
2012
|
+
d.startsWith(P) && (h.push({ type: 6, index: r }), i.removeAttribute(d));
|
|
2013
2013
|
if (Ge.test(i.tagName)) {
|
|
2014
|
-
const d = i.textContent.split(
|
|
2014
|
+
const d = i.textContent.split(P), p = d.length - 1;
|
|
2015
2015
|
if (p > 0) {
|
|
2016
2016
|
i.textContent = Ct ? Ct.emptyScript : "";
|
|
2017
2017
|
for (let u = 0; u < p; u++)
|
|
2018
|
-
i.append(d[u],
|
|
2019
|
-
i.append(d[p],
|
|
2018
|
+
i.append(d[u], et()), R.nextNode(), h.push({ type: 2, index: ++r });
|
|
2019
|
+
i.append(d[p], et());
|
|
2020
2020
|
}
|
|
2021
2021
|
}
|
|
2022
2022
|
} else if (i.nodeType === 8)
|
|
@@ -2024,26 +2024,26 @@ class it {
|
|
|
2024
2024
|
h.push({ type: 2, index: r });
|
|
2025
2025
|
else {
|
|
2026
2026
|
let d = -1;
|
|
2027
|
-
for (; (d = i.data.indexOf(
|
|
2028
|
-
h.push({ type: 7, index: r }), d +=
|
|
2027
|
+
for (; (d = i.data.indexOf(P, d + 1)) !== -1; )
|
|
2028
|
+
h.push({ type: 7, index: r }), d += P.length - 1;
|
|
2029
2029
|
}
|
|
2030
2030
|
r++;
|
|
2031
2031
|
}
|
|
2032
2032
|
}
|
|
2033
2033
|
static createElement(t, e) {
|
|
2034
|
-
const s =
|
|
2034
|
+
const s = U.createElement("template");
|
|
2035
2035
|
return s.innerHTML = t, s;
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
|
-
function
|
|
2038
|
+
function q(n, t, e = n, s) {
|
|
2039
2039
|
var o, a;
|
|
2040
|
-
if (t ===
|
|
2040
|
+
if (t === V)
|
|
2041
2041
|
return t;
|
|
2042
2042
|
let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
|
2043
|
-
const r =
|
|
2044
|
-
return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(n), i._$AT(n, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t =
|
|
2043
|
+
const r = st(t) ? void 0 : t._$litDirective$;
|
|
2044
|
+
return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(n), i._$AT(n, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = q(n, i._$AS(n, t.values), i, s)), t;
|
|
2045
2045
|
}
|
|
2046
|
-
class
|
|
2046
|
+
class dn {
|
|
2047
2047
|
constructor(t, e) {
|
|
2048
2048
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
2049
2049
|
}
|
|
@@ -2054,17 +2054,17 @@ class pn {
|
|
|
2054
2054
|
return this._$AM._$AU;
|
|
2055
2055
|
}
|
|
2056
2056
|
u(t) {
|
|
2057
|
-
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ??
|
|
2058
|
-
|
|
2059
|
-
let r =
|
|
2057
|
+
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? U).importNode(e, !0);
|
|
2058
|
+
R.currentNode = i;
|
|
2059
|
+
let r = R.nextNode(), o = 0, a = 0, h = s[0];
|
|
2060
2060
|
for (; h !== void 0; ) {
|
|
2061
2061
|
if (o === h.index) {
|
|
2062
2062
|
let c;
|
|
2063
|
-
h.type === 2 ? c = new
|
|
2063
|
+
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 mn(r, this, t)), this._$AV.push(c), h = s[++a];
|
|
2064
2064
|
}
|
|
2065
|
-
o !== (h == null ? void 0 : h.index) && (r =
|
|
2065
|
+
o !== (h == null ? void 0 : h.index) && (r = R.nextNode(), o++);
|
|
2066
2066
|
}
|
|
2067
|
-
return
|
|
2067
|
+
return R.currentNode = U, i;
|
|
2068
2068
|
}
|
|
2069
2069
|
p(t) {
|
|
2070
2070
|
let e = 0;
|
|
@@ -2072,7 +2072,7 @@ class pn {
|
|
|
2072
2072
|
s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
|
-
class
|
|
2075
|
+
class at {
|
|
2076
2076
|
get _$AU() {
|
|
2077
2077
|
var t;
|
|
2078
2078
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -2092,7 +2092,7 @@ class ct {
|
|
|
2092
2092
|
return this._$AB;
|
|
2093
2093
|
}
|
|
2094
2094
|
_$AI(t, e = this) {
|
|
2095
|
-
t =
|
|
2095
|
+
t = q(this, t, e), st(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.g(t) : t.nodeType !== void 0 ? this.$(t) : cn(t) ? this.T(t) : this._(t);
|
|
2096
2096
|
}
|
|
2097
2097
|
k(t) {
|
|
2098
2098
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -2101,28 +2101,28 @@ class ct {
|
|
|
2101
2101
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
2102
2102
|
}
|
|
2103
2103
|
_(t) {
|
|
2104
|
-
this._$AH !== y &&
|
|
2104
|
+
this._$AH !== y && st(this._$AH) ? this._$AA.nextSibling.data = t : this.$(U.createTextNode(t)), this._$AH = t;
|
|
2105
2105
|
}
|
|
2106
2106
|
g(t) {
|
|
2107
2107
|
var r;
|
|
2108
|
-
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el =
|
|
2108
|
+
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = nt.createElement(Ye(s.h, s.h[0]), this.options)), s);
|
|
2109
2109
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i)
|
|
2110
2110
|
this._$AH.p(e);
|
|
2111
2111
|
else {
|
|
2112
|
-
const o = new
|
|
2112
|
+
const o = new dn(i, this), a = o.u(this.options);
|
|
2113
2113
|
o.p(e), this.$(a), this._$AH = o;
|
|
2114
2114
|
}
|
|
2115
2115
|
}
|
|
2116
2116
|
_$AC(t) {
|
|
2117
2117
|
let e = Oe.get(t.strings);
|
|
2118
|
-
return e === void 0 && Oe.set(t.strings, e = new
|
|
2118
|
+
return e === void 0 && Oe.set(t.strings, e = new nt(t)), e;
|
|
2119
2119
|
}
|
|
2120
2120
|
T(t) {
|
|
2121
2121
|
Ke(this._$AH) || (this._$AH = [], this._$AR());
|
|
2122
2122
|
const e = this._$AH;
|
|
2123
2123
|
let s, i = 0;
|
|
2124
2124
|
for (const r of t)
|
|
2125
|
-
i === e.length ? e.push(s = new
|
|
2125
|
+
i === e.length ? e.push(s = new at(this.k(et()), this.k(et()), this, this.options)) : s = e[i], s._$AI(r), i++;
|
|
2126
2126
|
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
2127
2127
|
}
|
|
2128
2128
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -2151,12 +2151,12 @@ class Nt {
|
|
|
2151
2151
|
const r = this.strings;
|
|
2152
2152
|
let o = !1;
|
|
2153
2153
|
if (r === void 0)
|
|
2154
|
-
t =
|
|
2154
|
+
t = q(this, t, e, 0), o = !st(t) || t !== this._$AH && t !== V, o && (this._$AH = t);
|
|
2155
2155
|
else {
|
|
2156
2156
|
const a = t;
|
|
2157
2157
|
let h, c;
|
|
2158
2158
|
for (t = r[0], h = 0; h < r.length - 1; h++)
|
|
2159
|
-
c =
|
|
2159
|
+
c = q(this, a[s + h], e, h), c === V && (c = this._$AH[h]), o || (o = !st(c) || c !== this._$AH[h]), c === y ? t = y : t !== y && (t += (c ?? "") + r[h + 1]), this._$AH[h] = c;
|
|
2160
2160
|
}
|
|
2161
2161
|
o && !i && this.O(t);
|
|
2162
2162
|
}
|
|
@@ -2164,7 +2164,7 @@ class Nt {
|
|
|
2164
2164
|
t === y ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
2167
|
-
class
|
|
2167
|
+
class pn extends Nt {
|
|
2168
2168
|
constructor() {
|
|
2169
2169
|
super(...arguments), this.type = 3;
|
|
2170
2170
|
}
|
|
@@ -2172,7 +2172,7 @@ class un extends Nt {
|
|
|
2172
2172
|
this.element[this.name] = t === y ? void 0 : t;
|
|
2173
2173
|
}
|
|
2174
2174
|
}
|
|
2175
|
-
class
|
|
2175
|
+
class un extends Nt {
|
|
2176
2176
|
constructor() {
|
|
2177
2177
|
super(...arguments), this.type = 4;
|
|
2178
2178
|
}
|
|
@@ -2180,12 +2180,12 @@ class gn extends Nt {
|
|
|
2180
2180
|
this.element.toggleAttribute(this.name, !!t && t !== y);
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
|
-
class
|
|
2183
|
+
class gn extends Nt {
|
|
2184
2184
|
constructor(t, e, s, i, r) {
|
|
2185
2185
|
super(t, e, s, i, r), this.type = 5;
|
|
2186
2186
|
}
|
|
2187
2187
|
_$AI(t, e = this) {
|
|
2188
|
-
if ((t =
|
|
2188
|
+
if ((t = q(this, t, e, 0) ?? y) === V)
|
|
2189
2189
|
return;
|
|
2190
2190
|
const s = this._$AH, i = t === y && s !== y || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== y && (s === y || i);
|
|
2191
2191
|
i && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
@@ -2195,7 +2195,7 @@ class mn extends Nt {
|
|
|
2195
2195
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
2196
2196
|
}
|
|
2197
2197
|
}
|
|
2198
|
-
class
|
|
2198
|
+
class mn {
|
|
2199
2199
|
constructor(t, e, s) {
|
|
2200
2200
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
2201
2201
|
}
|
|
@@ -2203,17 +2203,17 @@ class fn {
|
|
|
2203
2203
|
return this._$AM._$AU;
|
|
2204
2204
|
}
|
|
2205
2205
|
_$AI(t) {
|
|
2206
|
-
|
|
2206
|
+
q(this, t);
|
|
2207
2207
|
}
|
|
2208
2208
|
}
|
|
2209
|
-
const Wt =
|
|
2210
|
-
Wt == null || Wt(
|
|
2211
|
-
const
|
|
2209
|
+
const Wt = Z.litHtmlPolyfillSupport;
|
|
2210
|
+
Wt == null || Wt(nt, at), (Z.litHtmlVersions ?? (Z.litHtmlVersions = [])).push("3.0.2");
|
|
2211
|
+
const fn = (n, t, e) => {
|
|
2212
2212
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
2213
2213
|
let i = s._$litPart$;
|
|
2214
2214
|
if (i === void 0) {
|
|
2215
2215
|
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
2216
|
-
s._$litPart$ = i = new
|
|
2216
|
+
s._$litPart$ = i = new at(t.insertBefore(et(), r), r, void 0, e ?? {});
|
|
2217
2217
|
}
|
|
2218
2218
|
return i._$AI(n), i;
|
|
2219
2219
|
};
|
|
@@ -2222,7 +2222,7 @@ const yn = (n, t, e) => {
|
|
|
2222
2222
|
* Copyright 2017 Google LLC
|
|
2223
2223
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2224
2224
|
*/
|
|
2225
|
-
let
|
|
2225
|
+
let X = class extends B {
|
|
2226
2226
|
constructor() {
|
|
2227
2227
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
2228
2228
|
}
|
|
@@ -2233,7 +2233,7 @@ let tt = class extends W {
|
|
|
2233
2233
|
}
|
|
2234
2234
|
update(t) {
|
|
2235
2235
|
const e = this.render();
|
|
2236
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
2236
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = fn(e, this.renderRoot, this.renderOptions);
|
|
2237
2237
|
}
|
|
2238
2238
|
connectedCallback() {
|
|
2239
2239
|
var t;
|
|
@@ -2244,20 +2244,20 @@ let tt = class extends W {
|
|
|
2244
2244
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
2245
2245
|
}
|
|
2246
2246
|
render() {
|
|
2247
|
-
return
|
|
2247
|
+
return V;
|
|
2248
2248
|
}
|
|
2249
2249
|
};
|
|
2250
2250
|
var ke;
|
|
2251
|
-
|
|
2251
|
+
X._$litElement$ = !0, X.finalized = !0, (ke = globalThis.litElementHydrateSupport) == null || ke.call(globalThis, { LitElement: X });
|
|
2252
2252
|
const qt = globalThis.litElementPolyfillSupport;
|
|
2253
|
-
qt == null || qt({ LitElement:
|
|
2253
|
+
qt == null || qt({ LitElement: X });
|
|
2254
2254
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
|
2255
2255
|
/**
|
|
2256
2256
|
* @license
|
|
2257
2257
|
* Copyright 2017 Google LLC
|
|
2258
2258
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2259
2259
|
*/
|
|
2260
|
-
const
|
|
2260
|
+
const yn = { attribute: !0, type: String, converter: Et, reflect: !1, hasChanged: ie }, vn = (n = yn, t, e) => {
|
|
2261
2261
|
const { kind: s, metadata: i } = e;
|
|
2262
2262
|
let r = globalThis.litPropertyMetadata.get(i);
|
|
2263
2263
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(e.name, n), s === "accessor") {
|
|
@@ -2278,8 +2278,8 @@ const vn = { attribute: !0, type: String, converter: Et, reflect: !1, hasChanged
|
|
|
2278
2278
|
}
|
|
2279
2279
|
throw Error("Unsupported decorator location: " + s);
|
|
2280
2280
|
};
|
|
2281
|
-
function
|
|
2282
|
-
return (t, e) => typeof e == "object" ?
|
|
2281
|
+
function it(n) {
|
|
2282
|
+
return (t, e) => typeof e == "object" ? vn(n, t, e) : ((s, i, r) => {
|
|
2283
2283
|
const o = i.hasOwnProperty(r);
|
|
2284
2284
|
return i.constructor.createProperty(r, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
|
2285
2285
|
})(n, t, e);
|
|
@@ -2289,16 +2289,16 @@ function rt(n) {
|
|
|
2289
2289
|
* Copyright 2017 Google LLC
|
|
2290
2290
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2291
2291
|
*/
|
|
2292
|
-
function
|
|
2293
|
-
return
|
|
2292
|
+
function k(n) {
|
|
2293
|
+
return it({ ...n, state: !0, attribute: !1 });
|
|
2294
2294
|
}
|
|
2295
2295
|
/**
|
|
2296
2296
|
* @license
|
|
2297
2297
|
* Copyright 2017 Google LLC
|
|
2298
2298
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2299
2299
|
*/
|
|
2300
|
-
const
|
|
2301
|
-
let
|
|
2300
|
+
const bn = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, wn = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
2301
|
+
let $n = class {
|
|
2302
2302
|
constructor(t) {
|
|
2303
2303
|
}
|
|
2304
2304
|
get _$AU() {
|
|
@@ -2319,10 +2319,10 @@ let _n = class {
|
|
|
2319
2319
|
* Copyright 2018 Google LLC
|
|
2320
2320
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2321
2321
|
*/
|
|
2322
|
-
const
|
|
2322
|
+
const _n = wn(class extends $n {
|
|
2323
2323
|
constructor(n) {
|
|
2324
2324
|
var t;
|
|
2325
|
-
if (super(n), n.type !==
|
|
2325
|
+
if (super(n), n.type !== bn.ATTRIBUTE || n.name !== "class" || ((t = n.strings) == null ? void 0 : t.length) > 2)
|
|
2326
2326
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
2327
2327
|
}
|
|
2328
2328
|
render(n) {
|
|
@@ -2343,20 +2343,28 @@ const An = $n(class extends _n {
|
|
|
2343
2343
|
const o = !!t[r];
|
|
2344
2344
|
o === this.it.has(r) || (i = this.st) != null && i.has(r) || (o ? (e.add(r), this.it.add(r)) : (e.remove(r), this.it.delete(r)));
|
|
2345
2345
|
}
|
|
2346
|
-
return
|
|
2346
|
+
return V;
|
|
2347
2347
|
}
|
|
2348
|
-
}),
|
|
2348
|
+
}), ut = (n, t, e) => {
|
|
2349
2349
|
n && e.style.setProperty(t, n);
|
|
2350
|
-
},
|
|
2351
|
-
var e, s, i, r
|
|
2352
|
-
|
|
2350
|
+
}, An = (n, t) => {
|
|
2351
|
+
var e, s, i, r;
|
|
2352
|
+
ut((e = n.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), ut(
|
|
2353
|
+
(s = n.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
|
2354
|
+
"--text-on-primary-background",
|
|
2355
|
+
t
|
|
2356
|
+
), ut((i = n.colors) == null ? void 0 : i.secondaryBackground, "--secondary-background", t), ut(
|
|
2357
|
+
(r = n.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
|
2358
|
+
"--text-on-secondary-background",
|
|
2359
|
+
t
|
|
2360
|
+
);
|
|
2353
2361
|
};
|
|
2354
|
-
var En = Object.defineProperty, Cn = Object.getOwnPropertyDescriptor,
|
|
2362
|
+
var En = Object.defineProperty, Cn = Object.getOwnPropertyDescriptor, ct = (n, t, e, s) => {
|
|
2355
2363
|
for (var i = s > 1 ? void 0 : s ? Cn(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
2356
2364
|
(o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
2357
2365
|
return s && i && En(t, e, i), i;
|
|
2358
2366
|
};
|
|
2359
|
-
class
|
|
2367
|
+
class H extends X {
|
|
2360
2368
|
constructor() {
|
|
2361
2369
|
super(...arguments), this.active = !1, this.loaded = !1;
|
|
2362
2370
|
}
|
|
@@ -2367,9 +2375,9 @@ class z extends tt {
|
|
|
2367
2375
|
this.active = !this.active;
|
|
2368
2376
|
}
|
|
2369
2377
|
_applyBranding() {
|
|
2370
|
-
var
|
|
2371
|
-
const t = ((
|
|
2372
|
-
|
|
2378
|
+
var e;
|
|
2379
|
+
const t = ((e = this.container) == null ? void 0 : e.get("$settings")) ?? {};
|
|
2380
|
+
t != null && t.branding && An(t.branding, this);
|
|
2373
2381
|
}
|
|
2374
2382
|
async _renderSymbol(t) {
|
|
2375
2383
|
const e = async (s) => await import("./index-5087564d.mjs").then(
|
|
@@ -2380,16 +2388,16 @@ class z extends tt {
|
|
|
2380
2388
|
switch (s) {
|
|
2381
2389
|
case "Telia": {
|
|
2382
2390
|
const r = await e(i);
|
|
2383
|
-
return r ?
|
|
2391
|
+
return r ? pt`<telia-icon
|
|
2384
2392
|
class="trigger-icon"
|
|
2385
2393
|
svg=${r.svg}
|
|
2386
2394
|
size="lg"
|
|
2387
2395
|
></telia-icon>` : y;
|
|
2388
2396
|
}
|
|
2389
2397
|
case "FontAwesome":
|
|
2390
|
-
return
|
|
2398
|
+
return pt`<i class="trigger-fa-icon fa fa-${i}"></i>`;
|
|
2391
2399
|
case "Uri":
|
|
2392
|
-
return
|
|
2400
|
+
return pt`<i
|
|
2393
2401
|
class="trigger-custom-icon"
|
|
2394
2402
|
style="background: url(${i}) no-repeat center center;background-size: contain;"
|
|
2395
2403
|
></i>`;
|
|
@@ -2399,8 +2407,8 @@ class z extends tt {
|
|
|
2399
2407
|
}
|
|
2400
2408
|
}
|
|
2401
2409
|
render() {
|
|
2402
|
-
return
|
|
2403
|
-
class=${
|
|
2410
|
+
return pt`<button
|
|
2411
|
+
class=${_n({
|
|
2404
2412
|
trigger: !0,
|
|
2405
2413
|
active: this.active,
|
|
2406
2414
|
rendered: this.loaded
|
|
@@ -2438,7 +2446,7 @@ class z extends tt {
|
|
|
2438
2446
|
</button>`;
|
|
2439
2447
|
}
|
|
2440
2448
|
}
|
|
2441
|
-
|
|
2449
|
+
H.styles = [
|
|
2442
2450
|
qe`
|
|
2443
2451
|
:host {
|
|
2444
2452
|
--voca-rem-multiplier: 0.625;
|
|
@@ -2462,7 +2470,7 @@ z.styles = [
|
|
|
2462
2470
|
width: 55px;
|
|
2463
2471
|
border-radius: 55px;
|
|
2464
2472
|
cursor: pointer;
|
|
2465
|
-
background-color: var(--trigger-bg, var(--primary-
|
|
2473
|
+
background-color: var(--trigger-bg, var(--primary-background));
|
|
2466
2474
|
font-family: Lato;
|
|
2467
2475
|
text-decoration: none;
|
|
2468
2476
|
border: 3px dashed transparent;
|
|
@@ -2491,7 +2499,7 @@ z.styles = [
|
|
|
2491
2499
|
opacity: 1;
|
|
2492
2500
|
transform: rotate(0deg) scale(1);
|
|
2493
2501
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
2494
|
-
color: var(--trigger-text-color,
|
|
2502
|
+
color: var(--trigger-text-color, var(--text-on-primary-background));
|
|
2495
2503
|
}
|
|
2496
2504
|
.trigger-close {
|
|
2497
2505
|
opacity: 0;
|
|
@@ -2505,32 +2513,32 @@ z.styles = [
|
|
|
2505
2513
|
display: flex;
|
|
2506
2514
|
justify-content: center;
|
|
2507
2515
|
align-items: center;
|
|
2508
|
-
fill: var(--trigger-text-color,
|
|
2516
|
+
fill: var(--trigger-text-color, var(--text-on-primary-background));
|
|
2509
2517
|
}
|
|
2510
2518
|
`
|
|
2511
2519
|
];
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
],
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
],
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
],
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
],
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
],
|
|
2527
|
-
var
|
|
2528
|
-
const On = (n, t) => n && t ? "both" : n ? "widgetDOM" : t ? "triggerDOM" : "none",
|
|
2520
|
+
ct([
|
|
2521
|
+
it({ attribute: !1 })
|
|
2522
|
+
], H.prototype, "symbol", 2);
|
|
2523
|
+
ct([
|
|
2524
|
+
it({ attribute: !1 })
|
|
2525
|
+
], H.prototype, "container", 2);
|
|
2526
|
+
ct([
|
|
2527
|
+
k()
|
|
2528
|
+
], H.prototype, "active", 2);
|
|
2529
|
+
ct([
|
|
2530
|
+
k()
|
|
2531
|
+
], H.prototype, "loaded", 2);
|
|
2532
|
+
ct([
|
|
2533
|
+
k()
|
|
2534
|
+
], H.prototype, "icon", 2);
|
|
2535
|
+
var j = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Link = "link", n.Badge = "badge", n.Unsupported = "unsupported", n))(j || {});
|
|
2536
|
+
const On = (n, t) => n && t ? "both" : n ? "widgetDOM" : t ? "triggerDOM" : "none", Qe = (n) => n ? typeof n == "boolean" && n ? "link" : typeof n == "object" && !Array.isArray(n) ? "badge" : "unsupported" : "inline", xn = async (n, t, e, s, i, r = !1) => {
|
|
2529
2537
|
var l, d;
|
|
2530
2538
|
const o = On(
|
|
2531
2539
|
e,
|
|
2532
2540
|
s
|
|
2533
|
-
), a =
|
|
2541
|
+
), a = Qe(i), h = {
|
|
2534
2542
|
widgetDOMElement: e ? e.cloneNode(!0) : void 0,
|
|
2535
2543
|
triggerDOMElement: s ? s.cloneNode(!0) : void 0
|
|
2536
2544
|
}, c = {
|
|
@@ -2571,7 +2579,7 @@ const On = (n, t) => n && t ? "both" : n ? "widgetDOM" : t ? "triggerDOM" : "non
|
|
|
2571
2579
|
document.createElement("div")
|
|
2572
2580
|
);
|
|
2573
2581
|
if (c.widgetDOMElement = p, a !== "inline") {
|
|
2574
|
-
customElements.get("ace-widget-trigger") || customElements.define("ace-widget-trigger",
|
|
2582
|
+
customElements.get("ace-widget-trigger") || customElements.define("ace-widget-trigger", H);
|
|
2575
2583
|
const u = document.createElement("ace-widget-trigger");
|
|
2576
2584
|
u.symbol = i.symbol, u.container = n, document.body.appendChild(u), console.log("Created trigger"), c.triggerDOMElement = u;
|
|
2577
2585
|
}
|
|
@@ -2599,14 +2607,14 @@ class Pn {
|
|
|
2599
2607
|
*/
|
|
2600
2608
|
render() {
|
|
2601
2609
|
const { widgetDOMElement: t, triggerDOMElement: e } = this.options, s = this.container.get("$widget");
|
|
2602
|
-
return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType ===
|
|
2603
|
-
if (t.setAttribute("data-rendered", "true"), e && this.options.triggerType ===
|
|
2610
|
+
return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === j.Badge && Ys(e), import("./render-a4c6ea66.mjs").then((i) => i.default(this.container, t)).then(() => {
|
|
2611
|
+
if (t.setAttribute("data-rendered", "true"), e && this.options.triggerType === j.Badge) {
|
|
2604
2612
|
const r = this.options.triggerOptions.openTooltip;
|
|
2605
2613
|
Be(e, r);
|
|
2606
2614
|
}
|
|
2607
|
-
|
|
2615
|
+
ps(this.container, t);
|
|
2608
2616
|
const i = this.container.get("$environment").widgets.all();
|
|
2609
|
-
|
|
2617
|
+
O(
|
|
2610
2618
|
this.container,
|
|
2611
2619
|
Sn,
|
|
2612
2620
|
f.Session
|
|
@@ -2626,7 +2634,7 @@ class Pn {
|
|
|
2626
2634
|
e.getAttribute("role") || e.setAttribute("role", "button");
|
|
2627
2635
|
const { name: s } = this.container.get("$widget"), { label: i, symbol: r, ariaLabel: o, closedTooltip: a, openTooltip: h } = t, c = { closedTooltip: a, openTooltip: h };
|
|
2628
2636
|
this.options.triggerOptions = c;
|
|
2629
|
-
const l =
|
|
2637
|
+
const l = Ks(e, {
|
|
2630
2638
|
label: i,
|
|
2631
2639
|
symbol: r,
|
|
2632
2640
|
ariaLabel: o,
|
|
@@ -2658,7 +2666,7 @@ class re {
|
|
|
2658
2666
|
this.container = t, this.storageWriter = e;
|
|
2659
2667
|
}
|
|
2660
2668
|
static create(t) {
|
|
2661
|
-
return
|
|
2669
|
+
return S(
|
|
2662
2670
|
t,
|
|
2663
2671
|
gt,
|
|
2664
2672
|
m.Necessary,
|
|
@@ -2670,7 +2678,7 @@ class re {
|
|
|
2670
2678
|
);
|
|
2671
2679
|
}
|
|
2672
2680
|
write(t, e, s, i) {
|
|
2673
|
-
return
|
|
2681
|
+
return E(this)(() => O(
|
|
2674
2682
|
this.container,
|
|
2675
2683
|
gt,
|
|
2676
2684
|
f.Local
|
|
@@ -2684,7 +2692,7 @@ class re {
|
|
|
2684
2692
|
}));
|
|
2685
2693
|
}
|
|
2686
2694
|
remove(t) {
|
|
2687
|
-
return
|
|
2695
|
+
return E(this)(() => O(
|
|
2688
2696
|
this.container,
|
|
2689
2697
|
gt,
|
|
2690
2698
|
f.Local
|
|
@@ -2695,7 +2703,7 @@ class re {
|
|
|
2695
2703
|
}));
|
|
2696
2704
|
}
|
|
2697
2705
|
load(t) {
|
|
2698
|
-
return
|
|
2706
|
+
return E(this)(() => O(
|
|
2699
2707
|
this.container,
|
|
2700
2708
|
gt,
|
|
2701
2709
|
f.Local
|
|
@@ -2708,7 +2716,7 @@ class re {
|
|
|
2708
2716
|
t.write({
|
|
2709
2717
|
attributes: h,
|
|
2710
2718
|
options: c,
|
|
2711
|
-
target: new
|
|
2719
|
+
target: new J(t, a)
|
|
2712
2720
|
});
|
|
2713
2721
|
}
|
|
2714
2722
|
});
|
|
@@ -2719,17 +2727,17 @@ const Nn = (n) => {
|
|
|
2719
2727
|
const { container: t } = n;
|
|
2720
2728
|
return re.create(t).then(
|
|
2721
2729
|
(e) => {
|
|
2722
|
-
const s = t.get("$settings"), i = { localStorage: e }, r = new
|
|
2730
|
+
const s = t.get("$settings"), i = { localStorage: e }, r = new ot(n, i), o = je(r, s);
|
|
2723
2731
|
return n.events.subscribe(
|
|
2724
2732
|
"widget:state-change",
|
|
2725
2733
|
(a, h) => {
|
|
2726
|
-
h.state ===
|
|
2734
|
+
h.state === De.Deactivating && o();
|
|
2727
2735
|
}
|
|
2728
2736
|
), r;
|
|
2729
2737
|
}
|
|
2730
2738
|
);
|
|
2731
|
-
},
|
|
2732
|
-
class di extends
|
|
2739
|
+
}, Mn = (n) => Promise.resolve().then(() => Js).then(({ StorageProvider: t }) => new t()), Dn = (n) => Promise.resolve().then(() => Zt).then(({ ActionResolver: t }) => new t(n)), Ln = (n) => Promise.resolve().then(() => Zt).then(({ ComponentResolver: t }) => new t(n)), In = (n) => Promise.resolve().then(() => Zt).then(() => Nn(n.get("$widget"))), Jt = "$settings", Ft = "open", xe = "activeStickyWidget";
|
|
2740
|
+
class di extends as {
|
|
2733
2741
|
constructor(t) {
|
|
2734
2742
|
super(t), this.outlets = /* @__PURE__ */ new Map(), this.activated = void 0, this.subs = [], this.handleBootstrapping = (e) => {
|
|
2735
2743
|
const s = {
|
|
@@ -2745,20 +2753,20 @@ class di extends cs {
|
|
|
2745
2753
|
});
|
|
2746
2754
|
}, this.container.registerAsync(
|
|
2747
2755
|
"storage",
|
|
2748
|
-
() =>
|
|
2749
|
-
), this.container.registerFactory("settings", () =>
|
|
2756
|
+
() => Mn(this.container)
|
|
2757
|
+
), this.container.registerFactory("settings", () => O(
|
|
2750
2758
|
this.container,
|
|
2751
2759
|
Jt,
|
|
2752
2760
|
f.Local
|
|
2753
2761
|
).then((e = {}) => ({
|
|
2754
2762
|
...this.container.get("$settings"),
|
|
2755
2763
|
...e
|
|
2756
|
-
}))),
|
|
2764
|
+
}))), ns(this, "load", this.handleBootstrapping), this.container.registerAsync(
|
|
2757
2765
|
"componentResolver",
|
|
2758
2766
|
() => Ln(this.container)
|
|
2759
2767
|
), this.container.registerAsync(
|
|
2760
2768
|
"actionResolver",
|
|
2761
|
-
() =>
|
|
2769
|
+
() => Dn(this.container)
|
|
2762
2770
|
), this.container.register("matchMedia", window.matchMedia), this.container.registerAsync(
|
|
2763
2771
|
"components",
|
|
2764
2772
|
() => In(this.container)
|
|
@@ -2789,10 +2797,10 @@ class di extends cs {
|
|
|
2789
2797
|
var p, u;
|
|
2790
2798
|
const {
|
|
2791
2799
|
widgetDOMElement: s,
|
|
2792
|
-
key: i =
|
|
2800
|
+
key: i = rt(),
|
|
2793
2801
|
triggerDOMElement: r,
|
|
2794
2802
|
withRenderState: o
|
|
2795
|
-
} = t, h =
|
|
2803
|
+
} = t, h = Qe(e) === j.Inline && ((r == null ? void 0 : r.childElementCount) || 0) > 0, c = await xn(
|
|
2796
2804
|
this.container,
|
|
2797
2805
|
this.widget.name,
|
|
2798
2806
|
s,
|
|
@@ -2802,32 +2810,32 @@ class di extends cs {
|
|
|
2802
2810
|
);
|
|
2803
2811
|
this.outlets.size < 1 && !o && this.setRenderState("unset");
|
|
2804
2812
|
const l = () => {
|
|
2805
|
-
const g = () =>
|
|
2806
|
-
g() && (c.callback && c.callback(),
|
|
2807
|
-
},
|
|
2813
|
+
const g = () => b.querySelectorAll("[data-loading=true]").length === 0, [b] = this.widget.container.get("widgetDOMElements"), A = (Dt, w) => {
|
|
2814
|
+
g() && (c.callback && c.callback(), w.disconnect());
|
|
2815
|
+
}, ht = {
|
|
2808
2816
|
attributes: !0,
|
|
2809
2817
|
subtree: !0,
|
|
2810
2818
|
childList: !0
|
|
2811
2819
|
};
|
|
2812
|
-
g() && c.callback && c.callback(), new MutationObserver(
|
|
2820
|
+
g() && c.callback && c.callback(), new MutationObserver(A).observe(b, ht);
|
|
2813
2821
|
};
|
|
2814
2822
|
h && this.widget.container.getAsync("dataClient").then(({ events: g }) => {
|
|
2815
2823
|
g.subscribe(
|
|
2816
2824
|
"data-client:fetched",
|
|
2817
|
-
(
|
|
2818
|
-
|
|
2825
|
+
(b, A) => {
|
|
2826
|
+
A.unresolvedQueries === 0 && l();
|
|
2819
2827
|
}
|
|
2820
2828
|
);
|
|
2821
2829
|
});
|
|
2822
2830
|
const d = this.getOrCreateViewOutlet(i, c);
|
|
2823
|
-
if (this.outlets.set(i, d), this.widget.events.dispatch("widget:attached", {}, { bubbles: !0 }), c.triggerType ===
|
|
2831
|
+
if (this.outlets.set(i, d), this.widget.events.dispatch("widget:attached", {}, { bubbles: !0 }), c.triggerType === j.Badge && e && ((p = c.triggerDOMElement) == null || p.setAttribute(
|
|
2824
2832
|
"aria-expanded",
|
|
2825
2833
|
"false"
|
|
2826
|
-
), d == null || d.renderBadge(e)), c.triggerType !==
|
|
2834
|
+
), d == null || d.renderBadge(e)), c.triggerType !== j.Inline && ((u = c.triggerDOMElement) == null || u.addEventListener(
|
|
2827
2835
|
"click",
|
|
2828
2836
|
(g) => {
|
|
2829
|
-
g.preventDefault(), this.container.get("settings").then(({ trigger:
|
|
2830
|
-
d.render().then(() => this.renderState()).then((
|
|
2837
|
+
g.preventDefault(), this.container.get("settings").then(({ trigger: b }) => {
|
|
2838
|
+
d.render().then(() => this.renderState()).then((A) => b && b.action && b.action === "hide" ? A === _.open ? this.hide() : this.open() : A === _.open ? this.close() : this.open());
|
|
2831
2839
|
});
|
|
2832
2840
|
}
|
|
2833
2841
|
)), this.outlets.size > 1)
|
|
@@ -2836,7 +2844,7 @@ class di extends cs {
|
|
|
2836
2844
|
});
|
|
2837
2845
|
if (o)
|
|
2838
2846
|
return o === "storage" ? this.renderState().then((g) => {
|
|
2839
|
-
if (c.triggerType ===
|
|
2847
|
+
if (c.triggerType === j.Inline) {
|
|
2840
2848
|
this.triggerStateIfApplicable("open");
|
|
2841
2849
|
return;
|
|
2842
2850
|
}
|
|
@@ -2898,7 +2906,7 @@ class di extends cs {
|
|
|
2898
2906
|
setSettings(t) {
|
|
2899
2907
|
return Promise.all([
|
|
2900
2908
|
this.container.get("settings"),
|
|
2901
|
-
|
|
2909
|
+
S(
|
|
2902
2910
|
this.container,
|
|
2903
2911
|
Jt,
|
|
2904
2912
|
m.Necessary,
|
|
@@ -2912,7 +2920,7 @@ class di extends cs {
|
|
|
2912
2920
|
})));
|
|
2913
2921
|
}
|
|
2914
2922
|
clearSettings() {
|
|
2915
|
-
return
|
|
2923
|
+
return S(
|
|
2916
2924
|
this.container,
|
|
2917
2925
|
Jt,
|
|
2918
2926
|
m.Necessary,
|
|
@@ -2927,11 +2935,11 @@ class di extends cs {
|
|
|
2927
2935
|
});
|
|
2928
2936
|
}
|
|
2929
2937
|
renderState() {
|
|
2930
|
-
return (() =>
|
|
2938
|
+
return (() => O(
|
|
2931
2939
|
this.container,
|
|
2932
2940
|
Ft,
|
|
2933
2941
|
f.Session
|
|
2934
|
-
).then((e =
|
|
2942
|
+
).then((e = _.closed) => e))();
|
|
2935
2943
|
}
|
|
2936
2944
|
hide() {
|
|
2937
2945
|
return this.outlets.size < 1 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -2960,9 +2968,9 @@ class di extends cs {
|
|
|
2960
2968
|
case "close":
|
|
2961
2969
|
case "open":
|
|
2962
2970
|
case "hide":
|
|
2963
|
-
const s = t === "open" ?
|
|
2971
|
+
const s = t === "open" ? _.open : t === "close" ? _.closed : _.hidden;
|
|
2964
2972
|
return this.setRenderState(s).then(() => {
|
|
2965
|
-
this.setTriggerState(s ===
|
|
2973
|
+
this.setTriggerState(s === _.open), s !== _.hidden ? s === _.open ? this.onOpen() : this.onClose() : this.outlets.forEach(
|
|
2966
2974
|
(i) => {
|
|
2967
2975
|
var r;
|
|
2968
2976
|
return (r = i.options.triggerDOMElement) == null ? void 0 : r.setAttribute(
|
|
@@ -2977,7 +2985,7 @@ class di extends cs {
|
|
|
2977
2985
|
setRenderState(t) {
|
|
2978
2986
|
const { invoke: e, events: s } = this.container.get("$widget");
|
|
2979
2987
|
return Promise.all([
|
|
2980
|
-
|
|
2988
|
+
S(
|
|
2981
2989
|
this.container,
|
|
2982
2990
|
Ft,
|
|
2983
2991
|
m.Necessary,
|
|
@@ -2985,7 +2993,7 @@ class di extends cs {
|
|
|
2985
2993
|
medium: f.Session
|
|
2986
2994
|
}
|
|
2987
2995
|
),
|
|
2988
|
-
|
|
2996
|
+
S(
|
|
2989
2997
|
this.container,
|
|
2990
2998
|
Ft,
|
|
2991
2999
|
m.Necessary,
|
|
@@ -3034,23 +3042,23 @@ class di extends cs {
|
|
|
3034
3042
|
const {
|
|
3035
3043
|
options: { triggerDOMElement: s, triggerOptions: i }
|
|
3036
3044
|
} = e, { openTooltip: r, closedTooltip: o } = i || {};
|
|
3037
|
-
s && (t ? Be(s, r) :
|
|
3045
|
+
s && (t ? Be(s, r) : Gs(s, o));
|
|
3038
3046
|
});
|
|
3039
3047
|
}
|
|
3040
3048
|
deactivate() {
|
|
3041
3049
|
this.subs.forEach((e) => e());
|
|
3042
3050
|
const t = [];
|
|
3043
|
-
return this.outlets.forEach((e) => t.push(e.dispose())),
|
|
3051
|
+
return this.outlets.forEach((e) => t.push(e.dispose())), O(
|
|
3044
3052
|
this.container,
|
|
3045
3053
|
xe,
|
|
3046
3054
|
f.Local
|
|
3047
|
-
).then((e) => e === this.widget.name ?
|
|
3055
|
+
).then((e) => e === this.widget.name ? S(
|
|
3048
3056
|
this.container,
|
|
3049
3057
|
xe,
|
|
3050
3058
|
m.Necessary,
|
|
3051
3059
|
{
|
|
3052
3060
|
medium: f.Local,
|
|
3053
|
-
scope:
|
|
3061
|
+
scope: F.Implementation
|
|
3054
3062
|
}
|
|
3055
3063
|
).then((s) => s()).then(() => Promise.all(t)) : Promise.all(t));
|
|
3056
3064
|
}
|
|
@@ -3060,7 +3068,7 @@ class di extends cs {
|
|
|
3060
3068
|
* Copyright 2021 Google LLC
|
|
3061
3069
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3062
3070
|
*/
|
|
3063
|
-
let
|
|
3071
|
+
let Ze = class extends Event {
|
|
3064
3072
|
constructor(t, e, s) {
|
|
3065
3073
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = s ?? !1;
|
|
3066
3074
|
}
|
|
@@ -3093,7 +3101,7 @@ let Se = class {
|
|
|
3093
3101
|
this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
|
|
3094
3102
|
}
|
|
3095
3103
|
dispatchRequest() {
|
|
3096
|
-
this.host.dispatchEvent(new
|
|
3104
|
+
this.host.dispatchEvent(new Ze(this.context, this.t, this.subscribe));
|
|
3097
3105
|
}
|
|
3098
3106
|
};
|
|
3099
3107
|
/**
|
|
@@ -3101,7 +3109,7 @@ let Se = class {
|
|
|
3101
3109
|
* Copyright 2021 Google LLC
|
|
3102
3110
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3103
3111
|
*/
|
|
3104
|
-
class
|
|
3112
|
+
class Tn {
|
|
3105
3113
|
get value() {
|
|
3106
3114
|
return this.o;
|
|
3107
3115
|
}
|
|
@@ -3136,12 +3144,12 @@ class Rn {
|
|
|
3136
3144
|
* Copyright 2021 Google LLC
|
|
3137
3145
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3138
3146
|
*/
|
|
3139
|
-
class
|
|
3147
|
+
class Rn extends Event {
|
|
3140
3148
|
constructor(t) {
|
|
3141
3149
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
|
3142
3150
|
}
|
|
3143
3151
|
}
|
|
3144
|
-
class
|
|
3152
|
+
class G extends Tn {
|
|
3145
3153
|
constructor(t, e, s) {
|
|
3146
3154
|
super(e.context !== void 0 ? e.initialValue : s), this.onContextRequest = (i) => {
|
|
3147
3155
|
const r = i.composedPath()[0];
|
|
@@ -3152,7 +3160,7 @@ class Y extends Rn {
|
|
|
3152
3160
|
return;
|
|
3153
3161
|
const o = /* @__PURE__ */ new Set();
|
|
3154
3162
|
for (const [a, { consumerHost: h }] of this.subscriptions)
|
|
3155
|
-
o.has(a) || (o.add(a), h.dispatchEvent(new
|
|
3163
|
+
o.has(a) || (o.add(a), h.dispatchEvent(new Ze(this.context, a, !0)));
|
|
3156
3164
|
i.stopPropagation();
|
|
3157
3165
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), this.host.addController(this);
|
|
3158
3166
|
}
|
|
@@ -3160,7 +3168,7 @@ class Y extends Rn {
|
|
|
3160
3168
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
3161
3169
|
}
|
|
3162
3170
|
hostConnected() {
|
|
3163
|
-
this.host.dispatchEvent(new
|
|
3171
|
+
this.host.dispatchEvent(new Rn(this.context));
|
|
3164
3172
|
}
|
|
3165
3173
|
}
|
|
3166
3174
|
/**
|
|
@@ -3199,14 +3207,14 @@ class qn {
|
|
|
3199
3207
|
async dispatch(t, e) {
|
|
3200
3208
|
if (!this._container || !this._descriptor)
|
|
3201
3209
|
return;
|
|
3202
|
-
const s = await
|
|
3210
|
+
const s = await ot.getInstance(
|
|
3203
3211
|
this._container
|
|
3204
|
-
), i = new
|
|
3212
|
+
), i = new J(s).withId(
|
|
3205
3213
|
this._descriptor.id
|
|
3206
3214
|
);
|
|
3207
3215
|
await s.actions(
|
|
3208
3216
|
i,
|
|
3209
|
-
this._descriptor.type ||
|
|
3217
|
+
this._descriptor.type || rt()
|
|
3210
3218
|
).dispatch(t, e);
|
|
3211
3219
|
}
|
|
3212
3220
|
}
|
|
@@ -3284,7 +3292,7 @@ const mi = async (n) => {
|
|
|
3284
3292
|
n.style.setProperty(s.replace("css-", ""), i);
|
|
3285
3293
|
});
|
|
3286
3294
|
};
|
|
3287
|
-
var Qn = Object.defineProperty, Zn = Object.getOwnPropertyDescriptor,
|
|
3295
|
+
var Qn = Object.defineProperty, Zn = Object.getOwnPropertyDescriptor, L = (n, t, e, s) => {
|
|
3288
3296
|
for (var i = s > 1 ? void 0 : s ? Zn(t, e) : t, r = n.length - 1, o; r >= 0; r--)
|
|
3289
3297
|
(o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
3290
3298
|
return s && i && Qn(t, e, i), i;
|
|
@@ -3292,14 +3300,14 @@ var Qn = Object.defineProperty, Zn = Object.getOwnPropertyDescriptor, I = (n, t,
|
|
|
3292
3300
|
const yi = (n) => {
|
|
3293
3301
|
class t extends n {
|
|
3294
3302
|
constructor() {
|
|
3295
|
-
super(...arguments), this.entry = "", this._descriptorProvider = new
|
|
3303
|
+
super(...arguments), this.entry = "", this._descriptorProvider = new G(
|
|
3296
3304
|
this,
|
|
3297
3305
|
Vn,
|
|
3298
3306
|
void 0
|
|
3299
|
-
), this._childrenProvider = new
|
|
3307
|
+
), this._childrenProvider = new G(this, Un, []), this._propertiesProvider = new G(this, Wn, {}), this._contextProvider = new G(this, zn, {}), this._layoutProvider = new G(this, Bn, {}), this.actions = new qn(this), this.context = {}, this.layout = {}, this.properties = {};
|
|
3300
3308
|
}
|
|
3301
3309
|
connectedCallback() {
|
|
3302
|
-
super.connectedCallback(), this.container && (this.actions.setContainer(this.container),
|
|
3310
|
+
super.connectedCallback(), this.container && (this.actions.setContainer(this.container), ot.getInstance(this.container).then(
|
|
3303
3311
|
async (s) => {
|
|
3304
3312
|
var r, o;
|
|
3305
3313
|
const i = s.nodes.get(this.entry);
|
|
@@ -3341,7 +3349,7 @@ const yi = (n) => {
|
|
|
3341
3349
|
super.disconnectedCallback(), this._propertyChangeListener && this._propertyChangeListener(), this._contextChangeListener && this._contextChangeListener(), this._layoutChangeListener && this._layoutChangeListener(), this._unmountNode && this._unmountNode();
|
|
3342
3350
|
}
|
|
3343
3351
|
updated() {
|
|
3344
|
-
this.container && this.actions.setContainer(this.container),
|
|
3352
|
+
this.container && this.actions.setContainer(this.container), this.renderRoot.host.style.setProperty(
|
|
3345
3353
|
"--width",
|
|
3346
3354
|
this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
|
|
3347
3355
|
), Yn(this.renderRoot.host, this.properties);
|
|
@@ -3374,21 +3382,21 @@ const yi = (n) => {
|
|
|
3374
3382
|
box-sizing: border-box;
|
|
3375
3383
|
}
|
|
3376
3384
|
`
|
|
3377
|
-
],
|
|
3385
|
+
], L([
|
|
3378
3386
|
jn({ context: Hn }),
|
|
3379
|
-
|
|
3380
|
-
], t.prototype, "container", 2),
|
|
3381
|
-
|
|
3382
|
-
], t.prototype, "entry", 2),
|
|
3383
|
-
|
|
3384
|
-
], t.prototype, "descriptor", 2),
|
|
3385
|
-
|
|
3386
|
-
], t.prototype, "component", 2),
|
|
3387
|
-
|
|
3388
|
-
], t.prototype, "context", 2),
|
|
3389
|
-
|
|
3390
|
-
], t.prototype, "layout", 2),
|
|
3391
|
-
|
|
3387
|
+
it({ attribute: !1 })
|
|
3388
|
+
], t.prototype, "container", 2), L([
|
|
3389
|
+
it()
|
|
3390
|
+
], t.prototype, "entry", 2), L([
|
|
3391
|
+
k()
|
|
3392
|
+
], t.prototype, "descriptor", 2), L([
|
|
3393
|
+
k()
|
|
3394
|
+
], t.prototype, "component", 2), L([
|
|
3395
|
+
k()
|
|
3396
|
+
], t.prototype, "context", 2), L([
|
|
3397
|
+
k()
|
|
3398
|
+
], t.prototype, "layout", 2), L([
|
|
3399
|
+
k()
|
|
3392
3400
|
], t.prototype, "properties", 2), t;
|
|
3393
3401
|
};
|
|
3394
3402
|
export {
|
|
@@ -3397,27 +3405,27 @@ export {
|
|
|
3397
3405
|
mi as G,
|
|
3398
3406
|
y as T,
|
|
3399
3407
|
yi as W,
|
|
3400
|
-
|
|
3401
|
-
|
|
3408
|
+
G as a,
|
|
3409
|
+
_ as b,
|
|
3402
3410
|
Hn as c,
|
|
3403
3411
|
qe as d,
|
|
3404
|
-
|
|
3412
|
+
wn as e,
|
|
3405
3413
|
Yn as f,
|
|
3406
3414
|
di as g,
|
|
3407
3415
|
Un as h,
|
|
3408
|
-
|
|
3416
|
+
$n as i,
|
|
3409
3417
|
Vn as j,
|
|
3410
3418
|
zn as k,
|
|
3411
3419
|
Bn as l,
|
|
3412
|
-
|
|
3413
|
-
|
|
3420
|
+
An as m,
|
|
3421
|
+
it as n,
|
|
3414
3422
|
Wn as o,
|
|
3415
|
-
|
|
3423
|
+
ot as p,
|
|
3416
3424
|
gi as q,
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3425
|
+
k as r,
|
|
3426
|
+
X as s,
|
|
3427
|
+
bn as t,
|
|
3420
3428
|
fi as u,
|
|
3421
|
-
|
|
3422
|
-
|
|
3429
|
+
V as w,
|
|
3430
|
+
pt as x
|
|
3423
3431
|
};
|