@telia-ace/widget-components-area-flamingo 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{area-c83b55bc.js → area-fed05d4d.js} +36 -37
- package/dist/area-fed05d4d.js.map +1 -0
- package/dist/area.d.ts.map +1 -1
- package/dist/index-9688347a-02584d39.js +336 -0
- package/dist/index-9688347a-02584d39.js.map +1 -0
- package/dist/index-f4d7773a.js +2312 -0
- package/dist/index-f4d7773a.js.map +1 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/area-c83b55bc.js.map +0 -1
- package/dist/index-7968aed1.js +0 -1470
- package/dist/index-7968aed1.js.map +0 -1
@@ -0,0 +1,2312 @@
|
|
1
|
+
var Rt = Object.defineProperty, Mt = Object.defineProperties, Dt = Object.getOwnPropertyDescriptors, Fe = Object.getOwnPropertySymbols, zt = Object.getPrototypeOf, Lt = Object.prototype.hasOwnProperty, Wt = Object.prototype.propertyIsEnumerable, Vt = Reflect.get, qe = (t, e, s) => e in t ? Rt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, vt = (t, e) => {
|
2
|
+
for (var s in e || (e = {}))
|
3
|
+
Lt.call(e, s) && qe(t, s, e[s]);
|
4
|
+
if (Fe)
|
5
|
+
for (var s of Fe(e))
|
6
|
+
Wt.call(e, s) && qe(t, s, e[s]);
|
7
|
+
return t;
|
8
|
+
}, yt = (t, e) => Mt(t, Dt(e)), Bt = (t, e, s) => Vt(zt(t), s, e), Z = (t, e, s) => new Promise((r, n) => {
|
9
|
+
var i = (a) => {
|
10
|
+
try {
|
11
|
+
c(s.next(a));
|
12
|
+
} catch (h) {
|
13
|
+
n(h);
|
14
|
+
}
|
15
|
+
}, o = (a) => {
|
16
|
+
try {
|
17
|
+
c(s.throw(a));
|
18
|
+
} catch (h) {
|
19
|
+
n(h);
|
20
|
+
}
|
21
|
+
}, c = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(i, o);
|
22
|
+
c((s = s.apply(t, e)).next());
|
23
|
+
});
|
24
|
+
const he = (t, e, s, ...r) => {
|
25
|
+
const n = `[${t.get("$environment").name || "webprovisions"}] ${s}`;
|
26
|
+
switch (e) {
|
27
|
+
case "info":
|
28
|
+
console.info(n, ...r);
|
29
|
+
break;
|
30
|
+
case "warning":
|
31
|
+
console.warn(n, ...r);
|
32
|
+
break;
|
33
|
+
case "error":
|
34
|
+
console.error(n, ...r);
|
35
|
+
break;
|
36
|
+
}
|
37
|
+
}, Jt = (t) => {
|
38
|
+
const e = t.container || t;
|
39
|
+
return {
|
40
|
+
info: (s, ...r) => he(e, "info", s, ...r),
|
41
|
+
warn: (s, ...r) => he(e, "warning", s, ...r),
|
42
|
+
error: (s, ...r) => he(e, "error", s, ...r)
|
43
|
+
};
|
44
|
+
};
|
45
|
+
var G = /* @__PURE__ */ ((t) => (t.Implementation = "implementation", t.Widget = "widget", t))(G || {}), x = /* @__PURE__ */ ((t) => (t.Pre = "pre", t.Post = "post", t))(x || {});
|
46
|
+
const Ft = (t, e, s, r) => {
|
47
|
+
try {
|
48
|
+
const n = new e(s, r);
|
49
|
+
return {
|
50
|
+
name: t,
|
51
|
+
invoke: (i, o) => {
|
52
|
+
let c;
|
53
|
+
return n[i] && (c = n[i].call(n, o)), Promise.resolve(c);
|
54
|
+
},
|
55
|
+
getInstance: () => n
|
56
|
+
};
|
57
|
+
} catch (n) {
|
58
|
+
if (n.message && n.message.indexOf("is not a constructor") >= 0)
|
59
|
+
return {
|
60
|
+
name: t,
|
61
|
+
invoke: (i) => {
|
62
|
+
let o;
|
63
|
+
return i === "initialize" && (o = e(s, r)), Promise.resolve(o);
|
64
|
+
},
|
65
|
+
getInstance: () => e
|
66
|
+
};
|
67
|
+
throw n;
|
68
|
+
}
|
69
|
+
};
|
70
|
+
function Ke(t, e) {
|
71
|
+
return typeof t == "undefined" ? e : t;
|
72
|
+
}
|
73
|
+
let qt = class {
|
74
|
+
constructor(t = {}) {
|
75
|
+
this.part = t;
|
76
|
+
}
|
77
|
+
createCommand(t, e, s) {
|
78
|
+
let r;
|
79
|
+
typeof e == "function" ? r = {
|
80
|
+
scope: G.Widget,
|
81
|
+
stage: x.Post,
|
82
|
+
defaultArgs: void 0,
|
83
|
+
handlerResolver: e
|
84
|
+
} : r = {
|
85
|
+
scope: Ke(e.scope, G.Widget),
|
86
|
+
stage: Ke(e.stage, x.Post),
|
87
|
+
defaultArgs: e.defaultArgs,
|
88
|
+
handlerResolver: s
|
89
|
+
};
|
90
|
+
let n = this.part;
|
91
|
+
const i = t.split(".");
|
92
|
+
return i.forEach((o, c) => {
|
93
|
+
c === i.length - 1 ? n[o] || (n[o] = () => r) : n = this.part[o] = this.part[o] || {};
|
94
|
+
}), this;
|
95
|
+
}
|
96
|
+
get() {
|
97
|
+
return this.part;
|
98
|
+
}
|
99
|
+
};
|
100
|
+
const Ne = (t) => {
|
101
|
+
const e = new qt({});
|
102
|
+
return t(e), e.get();
|
103
|
+
};
|
104
|
+
Ne((t) => {
|
105
|
+
t.createCommand(
|
106
|
+
"types.register",
|
107
|
+
{ scope: G.Implementation, stage: x.Pre },
|
108
|
+
(e) => (s, r) => {
|
109
|
+
e.container.get("$types")[s] = r;
|
110
|
+
}
|
111
|
+
).createCommand(
|
112
|
+
"type",
|
113
|
+
{ stage: x.Pre },
|
114
|
+
(e) => (s) => {
|
115
|
+
e.container.register("$type", s);
|
116
|
+
}
|
117
|
+
).createCommand(
|
118
|
+
"settings",
|
119
|
+
{ stage: x.Pre, defaultArgs: [null] },
|
120
|
+
(e) => (s) => {
|
121
|
+
e.events.dispatch(
|
122
|
+
"settings:change",
|
123
|
+
s,
|
124
|
+
{ bubbles: !0 }
|
125
|
+
), e.container.register("$settings", s);
|
126
|
+
}
|
127
|
+
).createCommand(
|
128
|
+
"plugin",
|
129
|
+
{ stage: x.Pre },
|
130
|
+
(e) => (s, r, n) => {
|
131
|
+
const { container: i } = e;
|
132
|
+
let o = null, c = s, a = r;
|
133
|
+
typeof s == "string" && (o = s, c = r, a = n);
|
134
|
+
const h = (l) => {
|
135
|
+
const { transformPluginSettings: p } = e.container.get("$environmentOptions"), d = p ? p(
|
136
|
+
a || {},
|
137
|
+
o,
|
138
|
+
e.container,
|
139
|
+
c
|
140
|
+
) : r;
|
141
|
+
try {
|
142
|
+
const u = Ft(
|
143
|
+
o,
|
144
|
+
c,
|
145
|
+
i,
|
146
|
+
d
|
147
|
+
);
|
148
|
+
i.get("$plugins").push(u), l && u.invoke("initialize", null);
|
149
|
+
} catch (u) {
|
150
|
+
Jt(e).warn("Error when initializing plugin", u);
|
151
|
+
}
|
152
|
+
};
|
153
|
+
e.container.get("$instance") ? h(!0) : e.events.subscribeOnce("widget:instance-created", () => h(!1));
|
154
|
+
}
|
155
|
+
).createCommand(
|
156
|
+
"container.register",
|
157
|
+
(e) => (s, r) => {
|
158
|
+
e.container.register(s, r);
|
159
|
+
}
|
160
|
+
).createCommand(
|
161
|
+
"container.registerAsync",
|
162
|
+
(e) => (s, r) => {
|
163
|
+
e.container.registerAsync(s, r);
|
164
|
+
}
|
165
|
+
).createCommand(
|
166
|
+
"container.registerFactory",
|
167
|
+
(e) => (s, r) => {
|
168
|
+
e.container.registerFactory(s, r);
|
169
|
+
}
|
170
|
+
).createCommand(
|
171
|
+
"container.touch",
|
172
|
+
(e) => (s, r) => {
|
173
|
+
e.container.touch(s, r);
|
174
|
+
}
|
175
|
+
).createCommand(
|
176
|
+
"csp",
|
177
|
+
{},
|
178
|
+
(e) => (s) => {
|
179
|
+
e.container.register("csp", s);
|
180
|
+
}
|
181
|
+
);
|
182
|
+
});
|
183
|
+
const re = (t, e, ...s) => typeof e == "string" ? t(`[humany] ${e}`, ...s) : t(e, ...s), D = class {
|
184
|
+
constructor() {
|
185
|
+
this.keys = [], this.log = (t, ...e) => this.lookup(t, () => D.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => D.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => D.error(...e)), this.info = (t, ...e) => this.lookup(t, () => D.info(...e));
|
186
|
+
}
|
187
|
+
lookup(t, e) {
|
188
|
+
this.keys.indexOf(t) === -1 && (this.keys.push(t), e());
|
189
|
+
}
|
190
|
+
};
|
191
|
+
let f = D;
|
192
|
+
f.log = (...t) => re(console.log, ...t);
|
193
|
+
f.warn = (...t) => re(console.warn, ...t);
|
194
|
+
f.error = (...t) => re(console.error, ...t);
|
195
|
+
f.info = (...t) => re(console.info, ...t);
|
196
|
+
const bt = (t) => {
|
197
|
+
let e = {}, s, r;
|
198
|
+
if (typeof t != "object" || t === null)
|
199
|
+
return t;
|
200
|
+
e = Array.isArray(t) ? [] : {};
|
201
|
+
for (r in t)
|
202
|
+
s = t[r], e[r] = typeof s == "object" && s !== null ? bt(s) : s;
|
203
|
+
return e;
|
204
|
+
}, Kt = bt;
|
205
|
+
function Ze(t) {
|
206
|
+
let e = 0;
|
207
|
+
if (t.length === 0)
|
208
|
+
return e.toString();
|
209
|
+
for (let s = 0; s < t.length; s++) {
|
210
|
+
const r = t.charCodeAt(s);
|
211
|
+
e = (e << 5) - e + r, e = e & e;
|
212
|
+
}
|
213
|
+
return e.toString();
|
214
|
+
}
|
215
|
+
let Zt = class {
|
216
|
+
constructor(t, e) {
|
217
|
+
this.lockWarningTime = t, this.lockErrorTime = e, this.tasks = [], this.current = Promise.resolve(), this.next = this.next.bind(this);
|
218
|
+
}
|
219
|
+
add(t, e, s, r) {
|
220
|
+
this.tasks.push({ task: t, resolve: e, reject: s, done: r }), this.next();
|
221
|
+
}
|
222
|
+
next() {
|
223
|
+
this.current = this.current.then(() => {
|
224
|
+
const t = this.tasks.shift();
|
225
|
+
if (t) {
|
226
|
+
let e;
|
227
|
+
const s = setTimeout(() => {
|
228
|
+
process.env.NODE_ENV !== "production" && f.warn(
|
229
|
+
`A lock has exceeded ${this.lockWarningTime} ms. Waiting additional ${this.lockErrorTime} ms before rejecting the task.`,
|
230
|
+
t
|
231
|
+
), e = setTimeout(() => {
|
232
|
+
t.reject("lock timeout exceeded");
|
233
|
+
}, this.lockErrorTime);
|
234
|
+
}, this.lockWarningTime), r = Promise.resolve(t.task()).then((n) => (clearTimeout(s), clearTimeout(e), n));
|
235
|
+
return Promise.resolve(r).then(this.next).then(
|
236
|
+
() => r.then((n) => {
|
237
|
+
t.done(), t.resolve(n);
|
238
|
+
})
|
239
|
+
).catch((n) => (t.done(), t.reject(n), this.next()));
|
240
|
+
}
|
241
|
+
return Promise.resolve();
|
242
|
+
});
|
243
|
+
}
|
244
|
+
};
|
245
|
+
const F = /* @__PURE__ */ new WeakMap();
|
246
|
+
function ne(t, e = 5e3, s = 1e3) {
|
247
|
+
return F.has(t) || F.set(t, new Zt(e, s)), (r) => new Promise((n, i) => {
|
248
|
+
const o = F.get(t);
|
249
|
+
o.add(r, n, i, () => {
|
250
|
+
o.tasks.length || F.delete(t);
|
251
|
+
});
|
252
|
+
});
|
253
|
+
}
|
254
|
+
const A = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
|
255
|
+
function Te() {
|
256
|
+
return A() + A() + "-" + A() + "-" + A() + "-" + A() + "-" + A() + A() + A();
|
257
|
+
}
|
258
|
+
var Qt = Object.defineProperty, Yt = Object.defineProperties, Gt = Object.getOwnPropertyDescriptors, Qe = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, es = Object.prototype.propertyIsEnumerable, Ye = (t, e, s) => e in t ? Qt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ts = (t, e) => {
|
259
|
+
for (var s in e || (e = {}))
|
260
|
+
Xt.call(e, s) && Ye(t, s, e[s]);
|
261
|
+
if (Qe)
|
262
|
+
for (var s of Qe(e))
|
263
|
+
es.call(e, s) && Ye(t, s, e[s]);
|
264
|
+
return t;
|
265
|
+
}, ss = (t, e) => Yt(t, Gt(e));
|
266
|
+
const rs = (t) => {
|
267
|
+
const e = [];
|
268
|
+
return [
|
269
|
+
(s, r) => {
|
270
|
+
e.push(t.subscribe(s, r));
|
271
|
+
},
|
272
|
+
() => {
|
273
|
+
e.forEach((s) => {
|
274
|
+
s();
|
275
|
+
});
|
276
|
+
}
|
277
|
+
];
|
278
|
+
};
|
279
|
+
let je = class {
|
280
|
+
constructor(t, e = []) {
|
281
|
+
this.platform = t, this.rules = e;
|
282
|
+
}
|
283
|
+
match(t) {
|
284
|
+
return this.rules.every((e) => !(e.id && e.id !== t.id || e.type && e.type !== t.type));
|
285
|
+
}
|
286
|
+
ofType(t) {
|
287
|
+
return this.rules.push({ type: t }), this;
|
288
|
+
}
|
289
|
+
withId(t) {
|
290
|
+
return this.rules.push({ id: t }), this;
|
291
|
+
}
|
292
|
+
select() {
|
293
|
+
return new ns(this.platform, this);
|
294
|
+
}
|
295
|
+
}, $t = class {
|
296
|
+
constructor(t, e, s) {
|
297
|
+
this.platform = t, this.node = e, this.actions = new Ie(
|
298
|
+
t,
|
299
|
+
new je(t).withId(e.id),
|
300
|
+
s
|
301
|
+
);
|
302
|
+
const [r, n] = rs(this.platform.events);
|
303
|
+
this.subscribe = r, this.unsubscribe = n;
|
304
|
+
}
|
305
|
+
properties(t) {
|
306
|
+
return t && this.node.touchProperties((e) => t(e)), this.node.attributes.properties;
|
307
|
+
}
|
308
|
+
context(t) {
|
309
|
+
return t && this.subscribe("components:context-changed", (e, { node: s }) => {
|
310
|
+
s === this.node && t(this.node.attributes.context);
|
311
|
+
}), this.node.attributes.context;
|
312
|
+
}
|
313
|
+
layout(t) {
|
314
|
+
return t && this.subscribe("components:layout-changed", (e, { node: s }) => {
|
315
|
+
s === this.node && t(this.node.attributes.layout);
|
316
|
+
}), this.node.attributes.layout;
|
317
|
+
}
|
318
|
+
writeProperties(t, e) {
|
319
|
+
this.node.writeProperties(t, e);
|
320
|
+
}
|
321
|
+
writeContext(t, e) {
|
322
|
+
this.node.writeProperties(t, e);
|
323
|
+
}
|
324
|
+
writeLayout(t, e) {
|
325
|
+
this.node.writeLayout(t, e);
|
326
|
+
}
|
327
|
+
dispose() {
|
328
|
+
this.unsubscribe(), this.actions.dispose();
|
329
|
+
}
|
330
|
+
};
|
331
|
+
class ns {
|
332
|
+
constructor(e, s, r = !0) {
|
333
|
+
this.platform = e, this.target = s, this.clearOnDispose = r, this.removes = [], this.actions = new Ie(this.platform, this.target);
|
334
|
+
}
|
335
|
+
writeProperties(e, s) {
|
336
|
+
this.removes.push(
|
337
|
+
this.platform.write({
|
338
|
+
options: s,
|
339
|
+
attributes: { properties: e },
|
340
|
+
target: this.target,
|
341
|
+
removable: this.clearOnDispose
|
342
|
+
})
|
343
|
+
);
|
344
|
+
}
|
345
|
+
writeContext(e, s) {
|
346
|
+
this.removes.push(
|
347
|
+
this.platform.write({
|
348
|
+
options: s,
|
349
|
+
attributes: { context: e },
|
350
|
+
target: this.target,
|
351
|
+
removable: this.clearOnDispose
|
352
|
+
})
|
353
|
+
);
|
354
|
+
}
|
355
|
+
writeLayout(e, s) {
|
356
|
+
this.removes.push(
|
357
|
+
this.platform.write({
|
358
|
+
options: s,
|
359
|
+
attributes: { layout: e },
|
360
|
+
target: this.target,
|
361
|
+
removable: this.clearOnDispose
|
362
|
+
})
|
363
|
+
);
|
364
|
+
}
|
365
|
+
dispose() {
|
366
|
+
this.removes.forEach((e) => {
|
367
|
+
e();
|
368
|
+
}), this.actions.dispose();
|
369
|
+
}
|
370
|
+
}
|
371
|
+
const is = (t, e, s) => {
|
372
|
+
const r = t.concat(), n = (i, o, c) => {
|
373
|
+
let a = !0;
|
374
|
+
if (r.length) {
|
375
|
+
const h = r.shift(), l = (p, d) => (a = !1, n(p, Object.assign({}, o, d), c));
|
376
|
+
return Promise.resolve(h(i, l, c)).then((p) => ss(ts({}, p), {
|
377
|
+
cancelled: a
|
378
|
+
}));
|
379
|
+
}
|
380
|
+
return Promise.resolve({ data: i, cancelled: !1, options: o });
|
381
|
+
};
|
382
|
+
return n(e, {}, s);
|
383
|
+
};
|
384
|
+
let Ie = class {
|
385
|
+
constructor(t, e, s) {
|
386
|
+
this.platform = t, this.target = e, this.ns = s, this.subscriptions = [], this.create = this.create.bind(this);
|
387
|
+
}
|
388
|
+
create(t, e = () => {
|
389
|
+
}) {
|
390
|
+
const s = {
|
391
|
+
key: t,
|
392
|
+
fn: e,
|
393
|
+
target: this.target,
|
394
|
+
ns: this.ns
|
395
|
+
};
|
396
|
+
this.platform.actionsState.handlers.push(s);
|
397
|
+
const r = () => {
|
398
|
+
const n = this.platform.actionsState.handlers.indexOf(s);
|
399
|
+
n > -1 && this.platform.actionsState.handlers.splice(n, 1);
|
400
|
+
};
|
401
|
+
return this.subscriptions.push(r), r;
|
402
|
+
}
|
403
|
+
dispatch(t, e) {
|
404
|
+
const s = this.platform.nodes.all.concat(
|
405
|
+
this.platform.nodes.detached
|
406
|
+
), r = {}, n = this.platform.actionsState.handlers.filter(
|
407
|
+
(i) => i.key === t && (!i.ns || !this.ns || i.ns === this.ns)
|
408
|
+
);
|
409
|
+
return Promise.all(
|
410
|
+
n.map((i) => {
|
411
|
+
const o = s.filter(
|
412
|
+
(a) => i.target.match(a) && this.target.match(a)
|
413
|
+
), c = this.platform.actionsState.watchers.filter((a) => a.key === t && (!a.ns || !this.ns || a.ns === this.ns) && o.some((h) => a.target.match(h))).map((a) => a.fn);
|
414
|
+
return Promise.all(
|
415
|
+
o.map((a) => {
|
416
|
+
const h = new $t(
|
417
|
+
this.platform,
|
418
|
+
a,
|
419
|
+
this.ns
|
420
|
+
);
|
421
|
+
return is(c, e, h).then((l) => {
|
422
|
+
const { data: p = {}, options: d, cancelled: u } = l;
|
423
|
+
return Promise.resolve(
|
424
|
+
u ? {} : i.fn(p, d, h)
|
425
|
+
).then((y) => {
|
426
|
+
r[a.id] = y;
|
427
|
+
});
|
428
|
+
});
|
429
|
+
})
|
430
|
+
);
|
431
|
+
})
|
432
|
+
).then(() => r);
|
433
|
+
}
|
434
|
+
watch(t, e) {
|
435
|
+
let s = t, r = this.ns;
|
436
|
+
const n = t.split(".");
|
437
|
+
n.length > 1 && (r = n[0], s = n.splice(1).join("."));
|
438
|
+
const i = {
|
439
|
+
fn: e,
|
440
|
+
target: this.target,
|
441
|
+
key: s,
|
442
|
+
ns: r
|
443
|
+
};
|
444
|
+
this.platform.actionsState.watchers.push(i);
|
445
|
+
const o = () => {
|
446
|
+
const c = this.platform.actionsState.watchers.indexOf(i);
|
447
|
+
c > -1 && this.platform.actionsState.watchers.splice(c, 1);
|
448
|
+
};
|
449
|
+
return this.subscriptions.push(o), o;
|
450
|
+
}
|
451
|
+
dispose() {
|
452
|
+
this.subscriptions.forEach((t) => t());
|
453
|
+
}
|
454
|
+
};
|
455
|
+
Ne((t) => {
|
456
|
+
t.createCommand("components", (e) => (s) => {
|
457
|
+
e.events.subscribeOnce("components:platform-created", (r, { platform: n }) => {
|
458
|
+
s.handlers && s.handlers.forEach(([i, o]) => {
|
459
|
+
n.addComponentHandler(i, o);
|
460
|
+
});
|
461
|
+
});
|
462
|
+
});
|
463
|
+
});
|
464
|
+
let Ge = class {
|
465
|
+
constructor(t, e) {
|
466
|
+
this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = Te(), this.type = e, this.attributes = {
|
467
|
+
context: {},
|
468
|
+
properties: {},
|
469
|
+
layout: {},
|
470
|
+
tags: []
|
471
|
+
}, this.writeLayout({ size: "full", indent: 0 });
|
472
|
+
}
|
473
|
+
mount(t, e) {
|
474
|
+
let s = t.get("mounted-nodes");
|
475
|
+
return s || (s = /* @__PURE__ */ new Map(), t.register("mounted-nodes", s)), s.has(this) ? (process.env.NODE_ENV !== "production" && f.error("Trying to mount an already mounted component node.", this), () => {
|
476
|
+
}) : (this.events.dispatch("components:node-mounted", { node: this }), this.mountCount === 0 && (this.mountCount = this.mountCount + 1, this.events.dispatch("components:node-enter", { node: this })), () => {
|
477
|
+
s.delete(this), this.events.dispatch("components:node-unmounted", { node: this }), this.mountCount = this.mountCount - 1, this.mountCount === 0 && this.events.dispatch("components:node-exit", { node: this });
|
478
|
+
});
|
479
|
+
}
|
480
|
+
appendChild(t, e = "default") {
|
481
|
+
if (t.parent) {
|
482
|
+
if (t.parent === this)
|
483
|
+
return;
|
484
|
+
t.parent.removeChild(t);
|
485
|
+
}
|
486
|
+
t.parent = this, this.children[e] || (this.children[e] = []), this.children[e].push(t), this.events.dispatch("components:node-appended", { node: t });
|
487
|
+
}
|
488
|
+
prependChild(t, e = "default") {
|
489
|
+
if (t.parent) {
|
490
|
+
if (t.parent === this)
|
491
|
+
return;
|
492
|
+
t.parent.removeChild(t);
|
493
|
+
}
|
494
|
+
t.parent = this, this.children[e] || (this.children[e] = []), this.children[e].unshift(t), this.events.dispatch("components:node-appended", { node: t });
|
495
|
+
}
|
496
|
+
touchProperties(t, e = {}, s) {
|
497
|
+
const r = [{ properties: t }, e];
|
498
|
+
return this.changesets.push(r), this.events.dispatch("components:set-properties", { node: this }), () => {
|
499
|
+
if (s) {
|
500
|
+
const n = this.changesets.indexOf(r);
|
501
|
+
n > -1 && (this.changesets.splice(n, 1), this.events.dispatch("components:set-properties", { node: this }));
|
502
|
+
}
|
503
|
+
};
|
504
|
+
}
|
505
|
+
writeProperties(t, e = {}, s) {
|
506
|
+
const r = [{ properties: t }, e];
|
507
|
+
return this.changesets.push(r), this.events.dispatch("components:set-properties", { node: this }), () => {
|
508
|
+
if (s) {
|
509
|
+
const n = this.changesets.indexOf(r);
|
510
|
+
n > -1 && (this.changesets.splice(n, 1), this.events.dispatch("components:set-properties", { node: this }));
|
511
|
+
}
|
512
|
+
};
|
513
|
+
}
|
514
|
+
writeLayout(t, e = {}, s) {
|
515
|
+
const r = [{ layout: t }, e];
|
516
|
+
return this.changesets.push(r), this.events.dispatch("components:set-layout", { node: this }), () => {
|
517
|
+
if (!s)
|
518
|
+
return;
|
519
|
+
const n = this.changesets.indexOf(r);
|
520
|
+
n > -1 && (this.changesets.splice(n, 1), this.events.dispatch("components:set-layout", { node: this }));
|
521
|
+
};
|
522
|
+
}
|
523
|
+
writeContext(t, e = {}, s) {
|
524
|
+
const r = [{ context: t }, e];
|
525
|
+
return this.changesets.push(r), this.events.dispatch("components:set-context", { node: this }), () => {
|
526
|
+
if (!s)
|
527
|
+
return;
|
528
|
+
const n = this.changesets.indexOf(r);
|
529
|
+
n > -1 && (this.changesets.splice(n, 1), this.events.dispatch("components:set-context", { node: this }));
|
530
|
+
};
|
531
|
+
}
|
532
|
+
getChildren(t = "default") {
|
533
|
+
const e = this.children[t] || [];
|
534
|
+
return e.reduce((s, r, n) => {
|
535
|
+
const { order: i = n } = r.attributes.layout;
|
536
|
+
return s[i] ? s.splice(i, 0, r) : s[i] = r, s;
|
537
|
+
}, Array(e.length));
|
538
|
+
}
|
539
|
+
remove() {
|
540
|
+
this.parent && this.parent.removeChild(this);
|
541
|
+
}
|
542
|
+
removeChild(t) {
|
543
|
+
Object.keys(this.children).forEach((e) => {
|
544
|
+
const s = this.children[e], r = s.indexOf(t);
|
545
|
+
r > -1 && (s.splice(r, 1), this.events.dispatch("components:node-removed", { node: t, parentNode: this }));
|
546
|
+
}), delete t.parent;
|
547
|
+
}
|
548
|
+
};
|
549
|
+
const wt = (t, e, s) => {
|
550
|
+
for (let r = 0, n = t.length; r < n && s(t[r]) !== !0; r++) {
|
551
|
+
const i = e[t[r].id] || "default", o = t[r].getChildren(i);
|
552
|
+
wt(o, e, s);
|
553
|
+
}
|
554
|
+
}, Ue = (t, e, s) => {
|
555
|
+
if (s(t) !== !0) {
|
556
|
+
const r = e[t.id] || "default", n = t.children[r];
|
557
|
+
wt(n, e, s);
|
558
|
+
}
|
559
|
+
}, pe = (t, e) => {
|
560
|
+
const s = [];
|
561
|
+
return Ue(t, e, (r) => {
|
562
|
+
s.push(r);
|
563
|
+
}), s;
|
564
|
+
}, os = (t, e, s) => {
|
565
|
+
let r;
|
566
|
+
return Ue(t, e, (n) => {
|
567
|
+
if (s(n))
|
568
|
+
return r = n, !0;
|
569
|
+
}), r;
|
570
|
+
};
|
571
|
+
let as = class {
|
572
|
+
constructor(t, e, s) {
|
573
|
+
this.root = t, this.switches = e, this.all = [], this.visible = [], this.detached = [], s.subscribe("components:node-appended", (r, n) => {
|
574
|
+
this.all.push(n.node), this.visible = pe(t, e);
|
575
|
+
}), s.subscribe("components:node-removed", (r, n) => {
|
576
|
+
let i = this.all.indexOf(n.node);
|
577
|
+
i > -1 && this.all.splice(i, 1), i = this.visible.indexOf(n.node), i > -1 && this.visible.splice(i, 1), this.visible = pe(t, e);
|
578
|
+
}), s.subscribe("components:node-switched", (r, n) => {
|
579
|
+
this.visible = pe(t, e);
|
580
|
+
});
|
581
|
+
}
|
582
|
+
query(t = {}) {
|
583
|
+
const e = [];
|
584
|
+
return Ue(this.root, this.switches, (s) => {
|
585
|
+
Object.keys(t).every((r) => t[r] === s[r]) && e.push(s);
|
586
|
+
}), e;
|
587
|
+
}
|
588
|
+
get(t) {
|
589
|
+
return os(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);
|
590
|
+
}
|
591
|
+
}, cs = class {
|
592
|
+
constructor() {
|
593
|
+
this.handlers = /* @__PURE__ */ new Map();
|
594
|
+
}
|
595
|
+
add(t, e) {
|
596
|
+
this.handlers.set(t, e);
|
597
|
+
}
|
598
|
+
get(t) {
|
599
|
+
return this.handlers.get(t);
|
600
|
+
}
|
601
|
+
};
|
602
|
+
const ls = (t) => {
|
603
|
+
let e = t, s = 0;
|
604
|
+
for (; e.parent; )
|
605
|
+
s = s + 1, e = e.parent;
|
606
|
+
return s;
|
607
|
+
}, hs = (t) => t.map(([e, s]) => [ls(e), e, s]).sort(([e], [s]) => e - s).map(([, e, s]) => [e, s]), de = (t) => t instanceof Date ? !1 : t && typeof t == "object" && !Array.isArray(t), $ = (t, ...e) => {
|
608
|
+
if (!e.length)
|
609
|
+
return t;
|
610
|
+
const s = e.shift();
|
611
|
+
if (de(t) && de(s))
|
612
|
+
for (const r in s)
|
613
|
+
de(s[r]) ? (t[r] || Object.assign(t, { [r]: {} }), $(t[r], s[r])) : Object.assign(t, { [r]: s[r] });
|
614
|
+
return $(t, ...e);
|
615
|
+
}, ps = (t, e) => !t || t === "all" ? !0 : t.some((s) => e.indexOf(s) > -1), ds = (t, e) => {
|
616
|
+
let s = [], r = [], n;
|
617
|
+
const i = () => {
|
618
|
+
process.env.NODE_ENV !== "production" && console.time("state-processor.flush");
|
619
|
+
const c = /* @__PURE__ */ new Map(), a = hs(s.map((l, p) => [l, r[p]])), h = (l, p) => {
|
620
|
+
var d;
|
621
|
+
const u = c.get(l) || {}, y = p.context && !u.context, _ = p.properties && !u.properties, ce = p.layout && !u.layout;
|
622
|
+
c.set(l, {
|
623
|
+
context: u.context || y,
|
624
|
+
properties: u.properties || _,
|
625
|
+
layout: u.layout || ce
|
626
|
+
}), _ && (l.attributes.properties = {}), ce && (l.attributes.layout = {}), y && (l.attributes.context = $({}, (d = l.parent) == null ? void 0 : d.attributes.context));
|
627
|
+
const Ve = [], Be = [], Je = [];
|
628
|
+
if (l.changesets.forEach((b) => {
|
629
|
+
const [v, le] = b;
|
630
|
+
ps(le.breakpoints, t.breakpoints) && (_ && (typeof v.properties == "function" ? Ve.push(
|
631
|
+
v.properties
|
632
|
+
) : $(l.attributes.properties, v.properties)), ce && (typeof v.layout == "function" ? Be.push(v.layout) : $(l.attributes.layout, v.layout)), y && (typeof v.context == "function" ? Je.push(v.context) : $(l.attributes.context, v.context)));
|
633
|
+
}), Ve.forEach((b) => {
|
634
|
+
$(l.attributes.properties, b(l.attributes.properties));
|
635
|
+
}), Be.forEach((b) => {
|
636
|
+
$(l.attributes.layout, b(l.attributes.layout));
|
637
|
+
}), Je.forEach((b) => {
|
638
|
+
$(l.attributes.context, b(l.attributes.context));
|
639
|
+
}), y || p.recursive) {
|
640
|
+
const b = t.getBranch(l), v = p.recursive ? p : {
|
641
|
+
context: !!y
|
642
|
+
};
|
643
|
+
l.getChildren(b).forEach((le) => {
|
644
|
+
h(le, v);
|
645
|
+
});
|
646
|
+
}
|
647
|
+
};
|
648
|
+
process.env.NODE_ENV !== "production" && console.timeEnd("state-processor.flush"), a.forEach(([l, p]) => {
|
649
|
+
h(l, p);
|
650
|
+
}), s = [], r = [], e(c);
|
651
|
+
}, o = () => {
|
652
|
+
clearTimeout(n), n = setTimeout(i, 0);
|
653
|
+
};
|
654
|
+
return (c, a) => {
|
655
|
+
const h = s.indexOf(c);
|
656
|
+
if (h > -1) {
|
657
|
+
const l = r[h];
|
658
|
+
return a.context && (l.context = !0), a.properties && (l.properties = !0), a.layout && (l.layout = !0), a.recursive && (l.recursive = !0), o();
|
659
|
+
}
|
660
|
+
return s.push(c), r.push(a), o();
|
661
|
+
};
|
662
|
+
};
|
663
|
+
let us = class {
|
664
|
+
constructor(t, e = {}) {
|
665
|
+
this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new cs(), this.events = t.events.createChild(this);
|
666
|
+
const s = new Ge(this.events, "root");
|
667
|
+
s.name = `root-${t.name}`, this.nodes = new as(s, this.switches, this.events);
|
668
|
+
const r = this.processNode = ds(this, (n) => {
|
669
|
+
const i = Array.from(n.keys());
|
670
|
+
process.env.NODE_ENV !== "production" && console.info(`STATE PROCESSOR: ${i.length} node(s) processed:
|
671
|
+
${i.map(
|
672
|
+
(o) => `${o.name || "<no name>"} (${o.id})
|
673
|
+
`
|
674
|
+
)}`), i.forEach((o) => {
|
675
|
+
const c = n.get(o);
|
676
|
+
o.parent && o.parent.type === "root" && this.events.dispatch("components:root-children-changed", { node: o }), c != null && c.context && this.events.dispatch("components:context-changed", { node: o }), c != null && c.properties && this.events.dispatch("components:properties-changed", { node: o }), c != null && c.layout && this.events.dispatch("components:layout-changed", { node: o });
|
677
|
+
}), this.events.dispatch("components:component-model-initialized", {}, { bubbles: !0 });
|
678
|
+
});
|
679
|
+
Promise.all(
|
680
|
+
Object.keys(e).map((n) => e[n].load(this))
|
681
|
+
), this.subscriptions.push(
|
682
|
+
this.events.subscribe(
|
683
|
+
"components:node-appended",
|
684
|
+
(n, i) => {
|
685
|
+
const { node: o } = i;
|
686
|
+
this.changesets.forEach((c) => {
|
687
|
+
const { changeset: a, target: h, removes: l } = c, [p, d] = a;
|
688
|
+
h.match(i.node) && (p.properties && l.push(o.writeProperties(p.properties, d)), p.context && l.push(o.writeContext(p.context, d)), p.layout && l.push(o.writeLayout(p.layout, d)));
|
689
|
+
});
|
690
|
+
}
|
691
|
+
)
|
692
|
+
), this.subscriptions.push(
|
693
|
+
this.events.subscribe(
|
694
|
+
"components:node-appended",
|
695
|
+
(n, i) => {
|
696
|
+
r(i.node, { properties: !0, context: !0 });
|
697
|
+
}
|
698
|
+
)
|
699
|
+
), this.subscriptions.push(
|
700
|
+
this.events.subscribe(
|
701
|
+
"components:set-properties",
|
702
|
+
(n, i) => {
|
703
|
+
r(i.node, { properties: !0 });
|
704
|
+
}
|
705
|
+
)
|
706
|
+
), this.subscriptions.push(
|
707
|
+
this.events.subscribe(
|
708
|
+
"components:set-context",
|
709
|
+
(n, i) => {
|
710
|
+
r(i.node, { properties: !0, context: !0 });
|
711
|
+
}
|
712
|
+
)
|
713
|
+
), this.subscriptions.push(
|
714
|
+
this.events.subscribe(
|
715
|
+
"components:set-indent",
|
716
|
+
(n, i) => {
|
717
|
+
r(i.node, { layout: !0 });
|
718
|
+
}
|
719
|
+
)
|
720
|
+
), this.subscriptions.push(
|
721
|
+
this.events.subscribe(
|
722
|
+
"components:set-layout",
|
723
|
+
(n, i) => {
|
724
|
+
r(i.node, { layout: !0 });
|
725
|
+
}
|
726
|
+
)
|
727
|
+
), this.subscriptions.push(
|
728
|
+
this.events.subscribe("components:node-switched", (n, { node: i, branch: o }) => {
|
729
|
+
r(i, {
|
730
|
+
layout: !0,
|
731
|
+
recursive: !0,
|
732
|
+
properties: !0,
|
733
|
+
context: !0
|
734
|
+
});
|
735
|
+
})
|
736
|
+
), this.subscriptions.push(
|
737
|
+
this.events.subscribe("components:node-removed", (n, { parentNode: i }) => {
|
738
|
+
r(i, { properties: !0 });
|
739
|
+
})
|
740
|
+
), this.events.parent && this.events.parent.dispatch("components:platform-created", { platform: this });
|
741
|
+
}
|
742
|
+
static getInstance(t) {
|
743
|
+
return t.getAsync("components");
|
744
|
+
}
|
745
|
+
addBreakpoint(t) {
|
746
|
+
this.breakpoints.indexOf(t) === -1 && (this.breakpoints.push(t), this.processNode(this.nodes.root, {
|
747
|
+
context: !0,
|
748
|
+
properties: !0,
|
749
|
+
layout: !0,
|
750
|
+
recursive: !0
|
751
|
+
}));
|
752
|
+
}
|
753
|
+
removeBreakpoint(t) {
|
754
|
+
const e = this.breakpoints.indexOf(t);
|
755
|
+
e > -1 && (this.breakpoints.splice(e, 1), this.processNode(this.nodes.root, {
|
756
|
+
context: !0,
|
757
|
+
properties: !0,
|
758
|
+
layout: !0,
|
759
|
+
recursive: !0
|
760
|
+
}));
|
761
|
+
}
|
762
|
+
setSwitch(t, e) {
|
763
|
+
this.switches[t.id] = e, this.events.dispatch("components:node-switched", { node: t, branch: e });
|
764
|
+
}
|
765
|
+
getBranch(t) {
|
766
|
+
return this.switches[t.id];
|
767
|
+
}
|
768
|
+
/**
|
769
|
+
* Creates a `ComponentNode` of the specified type.
|
770
|
+
* @param type Type of node.
|
771
|
+
*/
|
772
|
+
createNode(t, e = {}) {
|
773
|
+
const s = new Ge(this.events, t);
|
774
|
+
return e.detached && this.nodes.detached.push(s), s;
|
775
|
+
}
|
776
|
+
components() {
|
777
|
+
return new je(this);
|
778
|
+
}
|
779
|
+
actions(t, e) {
|
780
|
+
return new Ie(this, t, e);
|
781
|
+
}
|
782
|
+
write(t) {
|
783
|
+
const { provider: e, target: s, attributes: r, options: n = {}, removable: i } = t, o = t.key || Te(), c = { changeset: [r, n], target: s, removes: [] };
|
784
|
+
if (e) {
|
785
|
+
const a = this.providers[e];
|
786
|
+
a.write(o, s, r, n), c.removes.push(() => {
|
787
|
+
a.remove(o);
|
788
|
+
});
|
789
|
+
}
|
790
|
+
return this.changesets.push(c), this.nodes.all.forEach((a) => {
|
791
|
+
if (s.match(a)) {
|
792
|
+
let h = () => {
|
793
|
+
};
|
794
|
+
r.properties && (h = a.writeProperties(r.properties, n, i)), r.context && (h = a.writeContext(r.context, n, i)), r.layout && (h = a.writeContext(r.layout, n, i)), c.removes.push(h);
|
795
|
+
}
|
796
|
+
}), () => {
|
797
|
+
if (i) {
|
798
|
+
c.removes.forEach((h) => h());
|
799
|
+
const a = this.changesets.indexOf(c);
|
800
|
+
a > -1 && this.changesets.splice(a, 1);
|
801
|
+
}
|
802
|
+
};
|
803
|
+
}
|
804
|
+
addComponentHandler(t, e) {
|
805
|
+
this.customComponentHandler.add(t, e);
|
806
|
+
}
|
807
|
+
getComponentHandler(t) {
|
808
|
+
return this.customComponentHandler.get(t);
|
809
|
+
}
|
810
|
+
dispose() {
|
811
|
+
this.subscriptions.forEach((t) => t());
|
812
|
+
}
|
813
|
+
};
|
814
|
+
const gs = (t, e, s, r = Te(), n = {}) => t.getAsync("components").then((i) => {
|
815
|
+
let o;
|
816
|
+
if (typeof e == "string") {
|
817
|
+
const h = new je(i);
|
818
|
+
h.ofType(e), o = h;
|
819
|
+
} else
|
820
|
+
o = e;
|
821
|
+
const c = {}, a = (h) => {
|
822
|
+
const l = c[h.id];
|
823
|
+
return l ? Promise.resolve(l.controller) : us.getInstance(t).then((p) => new $t(p, h, r));
|
824
|
+
};
|
825
|
+
i.events.subscribe(
|
826
|
+
"components:node-enter",
|
827
|
+
(h, { node: l }) => {
|
828
|
+
o.match(l) && a(l).then((p) => {
|
829
|
+
Promise.resolve(s(p)).then((d) => {
|
830
|
+
c[l.id] = {
|
831
|
+
dispose: d,
|
832
|
+
controller: p
|
833
|
+
};
|
834
|
+
});
|
835
|
+
});
|
836
|
+
}
|
837
|
+
), i.events.subscribe(
|
838
|
+
"components:node-exit",
|
839
|
+
(h, { node: l }) => {
|
840
|
+
const p = c[l.id];
|
841
|
+
p && (p.dispose && p.dispose(), n.reuseController || (p.controller.dispose(), delete c[l.id]));
|
842
|
+
}
|
843
|
+
);
|
844
|
+
});
|
845
|
+
process.env.NODE_ENV;
|
846
|
+
var ms = Object.defineProperty, Xe = Object.getOwnPropertySymbols, fs = Object.prototype.hasOwnProperty, vs = Object.prototype.propertyIsEnumerable, et = (t, e, s) => e in t ? ms(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, j = (t, e) => {
|
847
|
+
for (var s in e || (e = {}))
|
848
|
+
fs.call(e, s) && et(t, s, e[s]);
|
849
|
+
if (Xe)
|
850
|
+
for (var s of Xe(e))
|
851
|
+
vs.call(e, s) && et(t, s, e[s]);
|
852
|
+
return t;
|
853
|
+
}, w = /* @__PURE__ */ ((t) => (t.Cookie = "cookie", t.Local = "local", t.Session = "session", t))(w || {}), He = /* @__PURE__ */ ((t) => (t.Tenant = "tenant", t.Implementation = "implementation", t.Widget = "widget", t))(He || {}), m = /* @__PURE__ */ ((t) => (t.Necessary = "necessary", t.Functional = "functional", t.Analytical = "analytical", t.Marketing = "marketing", t))(m || {});
|
854
|
+
const ys = (t, e, s, r = {}) => tt(t, s).then((n) => (process.env.NODE_ENV !== "production" && n && f.warn(
|
855
|
+
`createStorageWriter: Attempted to create storage writer using unallowed category.
|
856
|
+
Key: ${e}
|
857
|
+
Category: ${JSON.stringify(s)}
|
858
|
+
Options: ${JSON.stringify(r)}`
|
859
|
+
), (i) => (Me(t), tt(t, s).then((o) => {
|
860
|
+
if (o) {
|
861
|
+
process.env.NODE_ENV !== "production" && f.warn(
|
862
|
+
`storageWriter: Attempted to write to storage using unallowed category.
|
863
|
+
Key: ${e}
|
864
|
+
Category: ${JSON.stringify(s)}
|
865
|
+
Value: ${JSON.stringify(i)}
|
866
|
+
Options: ${JSON.stringify(r)}`
|
867
|
+
);
|
868
|
+
return;
|
869
|
+
}
|
870
|
+
const {
|
871
|
+
scope: c = He.Widget,
|
872
|
+
medium: a = w.Session,
|
873
|
+
duration: h
|
874
|
+
} = r, l = ws();
|
875
|
+
return l[c][e] = Et(i, s, h), a === w.Cookie ? Cs(t, l) : Ss(t, a, l);
|
876
|
+
})))), bs = (t, e, s = w.Session) => (Me(t), typeof e == "undefined" ? (process.env.NODE_ENV !== "production" && f.warn("readStorage: Undefined key passed when reading storage. ", e, s), Promise.resolve(void 0)) : s === w.Cookie ? Os(t).then((r) => xe(r, e)) : xs(t, s).then((r) => xe(r, e))), U = (t) => !!Object.entries(t).filter(([e, s]) => typeof s != "undefined").length, ue = (t) => Object.entries(t).filter(([e, s]) => typeof s != "undefined").forEach(([e, { value: s }]) => {
|
877
|
+
typeof s == "undefined" && delete t[e];
|
878
|
+
}), _t = (t, e) => {
|
879
|
+
const s = {
|
880
|
+
tenant: j(j({}, t.tenant), e.tenant),
|
881
|
+
implementation: j(j({}, t.implementation), e.implementation),
|
882
|
+
widget: j(j({}, t.widget), e.widget)
|
883
|
+
};
|
884
|
+
return ue(s.tenant), ue(s.implementation), ue(s.widget), s;
|
885
|
+
}, $s = (t) => Object.entries(t).reduce((e, s) => {
|
886
|
+
const [r, n] = s;
|
887
|
+
return Object.entries(n).forEach((i) => {
|
888
|
+
const [o, { expiration: c }] = i;
|
889
|
+
c && e.push(c);
|
890
|
+
}), e;
|
891
|
+
}, []).slice().sort((e, s) => new Date(s).valueOf() - new Date(e).valueOf()).shift() || De(), ie = (t) => {
|
892
|
+
const {
|
893
|
+
name: e,
|
894
|
+
implementation: { name: s, tenant: r }
|
895
|
+
} = t.get("$widget");
|
896
|
+
return [
|
897
|
+
`humany_${r}`,
|
898
|
+
`humany_${Ze(r + s)}`,
|
899
|
+
`humany_${Ze(r + s + e)}`
|
900
|
+
];
|
901
|
+
}, ge = (t) => {
|
902
|
+
const e = new RegExp(`(?:^|;)\\s?${t}=(.*?)(?:;|$)`, "i"), s = document.cookie.match(e);
|
903
|
+
return s && s[1] && JSON.parse(s[1]) || void 0;
|
904
|
+
}, me = (t, e, s) => {
|
905
|
+
const r = `${t}=${JSON.stringify(e).trim()}`, n = `expires=${new Date(s).toUTCString()}`, i = "path=/", o = "SameSite=None;Secure";
|
906
|
+
return document.cookie = `${r}; ${n}; ${i}; ${o}`;
|
907
|
+
}, Re = (t) => {
|
908
|
+
const [e, s, r] = ie(t), n = ge(e) || {}, i = ge(s) || {}, o = ge(r) || {};
|
909
|
+
return {
|
910
|
+
tenant: n,
|
911
|
+
implementation: i,
|
912
|
+
widget: o
|
913
|
+
};
|
914
|
+
}, At = (t, e) => {
|
915
|
+
const s = Re(t), r = _t(s, e), [n, i, o] = ie(t), { tenant: c, implementation: a, widget: h } = r, l = $s(e), p = De({ days: -1 });
|
916
|
+
me(n, c, U(c) ? l : p), me(
|
917
|
+
i,
|
918
|
+
a,
|
919
|
+
U(a) ? l : p
|
920
|
+
), me(o, h, U(h) ? l : p);
|
921
|
+
}, X = (t, e) => {
|
922
|
+
const [s, r, n] = ie(t), i = e.getItem(s) || "{}", o = e.getItem(r) || "{}", c = e.getItem(n) || "{}";
|
923
|
+
return {
|
924
|
+
tenant: JSON.parse(i),
|
925
|
+
implementation: JSON.parse(o),
|
926
|
+
widget: JSON.parse(c)
|
927
|
+
};
|
928
|
+
}, Ce = (t, e, s) => {
|
929
|
+
const r = X(t, e), n = _t(r, s), [i, o, c] = ie(t), { tenant: a, implementation: h, widget: l } = n;
|
930
|
+
U(a) ? e.setItem(i, JSON.stringify(a)) : e.removeItem(i), U(h) ? e.setItem(o, JSON.stringify(h)) : e.removeItem(o), U(l) ? e.setItem(c, JSON.stringify(l)) : e.removeItem(c);
|
931
|
+
}, ws = () => ({ tenant: {}, implementation: {}, widget: {} }), _s = (t) => t ? !!t && /* @__PURE__ */ new Date() > new Date(t) : !1, xe = (t, e) => {
|
932
|
+
const s = t.widget[e] || t.implementation[e] || t.tenant[e];
|
933
|
+
return s == null ? void 0 : s.value;
|
934
|
+
}, Et = (t, e, s) => s ? {
|
935
|
+
value: t,
|
936
|
+
category: e,
|
937
|
+
expiration: typeof s == "object" ? De(s) : s
|
938
|
+
} : {
|
939
|
+
value: t,
|
940
|
+
category: e
|
941
|
+
}, As = (t, e) => {
|
942
|
+
const s = Kt(t);
|
943
|
+
return Object.entries(s).forEach(([r, n]) => {
|
944
|
+
Object.entries(n).forEach(([i, o]) => {
|
945
|
+
const { expiration: c, category: a } = o;
|
946
|
+
(_s(c) || Es(e, a)) && (n[i] = Et(void 0, a, c));
|
947
|
+
});
|
948
|
+
}), s;
|
949
|
+
}, tt = (t, e) => bs(t, "storagePolicy", w.Cookie).then(
|
950
|
+
(s = [m.Necessary]) => !!e && s.indexOf(e) === -1
|
951
|
+
), Es = (t = [m.Necessary], e) => !!e && t.indexOf(e) === -1, Me = (t) => {
|
952
|
+
const e = Re(t), s = X(t, window.localStorage), r = X(t, sessionStorage), n = xe(e, "storagePolicy"), [i, o, c] = [
|
953
|
+
e,
|
954
|
+
s,
|
955
|
+
r
|
956
|
+
].map((a) => As(a, n));
|
957
|
+
At(t, i), Ce(t, window.localStorage, o), Ce(t, window.sessionStorage, c);
|
958
|
+
}, De = (t = { days: 30 }) => {
|
959
|
+
const { days: e = 0, hours: s = 0, minutes: r = 0, seconds: n = 0 } = t, i = /* @__PURE__ */ new Date();
|
960
|
+
return i.setTime(i.getTime() + s * 60 * 60 * 1e3), i.setTime(i.getTime() + e * 24 * 60 * 60 * 1e3), i.setTime(i.getTime() + r * 60 * 1e3), i.setTime(i.getTime() + n * 1e3), i.toISOString();
|
961
|
+
}, Os = (t) => ne(document)(() => Re(t)), Cs = (t, e) => ne(document)(() => At(t, e)), xs = (t, e) => {
|
962
|
+
const s = e === w.Local ? window.localStorage : window.sessionStorage;
|
963
|
+
return ne(s)(() => X(t, s));
|
964
|
+
}, Ss = (t, e, s) => {
|
965
|
+
const r = e === w.Local ? window.localStorage : window.sessionStorage;
|
966
|
+
return ne(r)(() => Ce(t, r, s));
|
967
|
+
}, fe = (t, e, s, ...r) => {
|
968
|
+
const n = `[${t.get("$environment").name || "webprovisions"}] ${s}`;
|
969
|
+
switch (e) {
|
970
|
+
case "info":
|
971
|
+
console.info(n, ...r);
|
972
|
+
break;
|
973
|
+
case "warning":
|
974
|
+
console.warn(n, ...r);
|
975
|
+
break;
|
976
|
+
case "error":
|
977
|
+
console.error(n, ...r);
|
978
|
+
break;
|
979
|
+
}
|
980
|
+
}, Ps = (t) => {
|
981
|
+
const e = t.container || t;
|
982
|
+
return {
|
983
|
+
info: (s, ...r) => fe(e, "info", s, ...r),
|
984
|
+
warn: (s, ...r) => fe(e, "warning", s, ...r),
|
985
|
+
error: (s, ...r) => fe(e, "error", s, ...r)
|
986
|
+
};
|
987
|
+
};
|
988
|
+
var ee = /* @__PURE__ */ ((t) => (t.Implementation = "implementation", t.Widget = "widget", t))(ee || {}), S = /* @__PURE__ */ ((t) => (t.Pre = "pre", t.Post = "post", t))(S || {});
|
989
|
+
const ks = (t, e, s, r) => {
|
990
|
+
try {
|
991
|
+
const n = new e(s, r);
|
992
|
+
return {
|
993
|
+
name: t,
|
994
|
+
invoke: (i, o) => {
|
995
|
+
let c;
|
996
|
+
return n[i] && (c = n[i].call(n, o)), Promise.resolve(c);
|
997
|
+
},
|
998
|
+
getInstance: () => n
|
999
|
+
};
|
1000
|
+
} catch (n) {
|
1001
|
+
if (n.message && n.message.indexOf("is not a constructor") >= 0)
|
1002
|
+
return {
|
1003
|
+
name: t,
|
1004
|
+
invoke: (i) => {
|
1005
|
+
let o;
|
1006
|
+
return i === "initialize" && (o = e(s, r)), Promise.resolve(o);
|
1007
|
+
},
|
1008
|
+
getInstance: () => e
|
1009
|
+
};
|
1010
|
+
throw n;
|
1011
|
+
}
|
1012
|
+
};
|
1013
|
+
function st(t, e) {
|
1014
|
+
return typeof t == "undefined" ? e : t;
|
1015
|
+
}
|
1016
|
+
let Ns = class {
|
1017
|
+
constructor(t = {}) {
|
1018
|
+
this.part = t;
|
1019
|
+
}
|
1020
|
+
createCommand(t, e, s) {
|
1021
|
+
let r;
|
1022
|
+
typeof e == "function" ? r = {
|
1023
|
+
scope: ee.Widget,
|
1024
|
+
stage: S.Post,
|
1025
|
+
defaultArgs: void 0,
|
1026
|
+
handlerResolver: e
|
1027
|
+
} : r = {
|
1028
|
+
scope: st(e.scope, ee.Widget),
|
1029
|
+
stage: st(e.stage, S.Post),
|
1030
|
+
defaultArgs: e.defaultArgs,
|
1031
|
+
handlerResolver: s
|
1032
|
+
};
|
1033
|
+
let n = this.part;
|
1034
|
+
const i = t.split(".");
|
1035
|
+
return i.forEach((o, c) => {
|
1036
|
+
c === i.length - 1 ? n[o] || (n[o] = () => r) : n = this.part[o] = this.part[o] || {};
|
1037
|
+
}), this;
|
1038
|
+
}
|
1039
|
+
get() {
|
1040
|
+
return this.part;
|
1041
|
+
}
|
1042
|
+
};
|
1043
|
+
const Ot = (t) => {
|
1044
|
+
const e = new Ns({});
|
1045
|
+
return t(e), e.get();
|
1046
|
+
};
|
1047
|
+
Ot((t) => {
|
1048
|
+
t.createCommand(
|
1049
|
+
"types.register",
|
1050
|
+
{ scope: ee.Implementation, stage: S.Pre },
|
1051
|
+
(e) => (s, r) => {
|
1052
|
+
e.container.get("$types")[s] = r;
|
1053
|
+
}
|
1054
|
+
).createCommand(
|
1055
|
+
"type",
|
1056
|
+
{ stage: S.Pre },
|
1057
|
+
(e) => (s) => {
|
1058
|
+
e.container.register("$type", s);
|
1059
|
+
}
|
1060
|
+
).createCommand(
|
1061
|
+
"settings",
|
1062
|
+
{ stage: S.Pre, defaultArgs: [null] },
|
1063
|
+
(e) => (s) => {
|
1064
|
+
e.events.dispatch(
|
1065
|
+
"settings:change",
|
1066
|
+
s,
|
1067
|
+
{ bubbles: !0 }
|
1068
|
+
), e.container.register("$settings", s);
|
1069
|
+
}
|
1070
|
+
).createCommand(
|
1071
|
+
"plugin",
|
1072
|
+
{ stage: S.Pre },
|
1073
|
+
(e) => (s, r, n) => {
|
1074
|
+
const { container: i } = e;
|
1075
|
+
let o = null, c = s, a = r;
|
1076
|
+
typeof s == "string" && (o = s, c = r, a = n);
|
1077
|
+
const h = (l) => {
|
1078
|
+
const { transformPluginSettings: p } = e.container.get("$environmentOptions"), d = p ? p(
|
1079
|
+
a || {},
|
1080
|
+
o,
|
1081
|
+
e.container,
|
1082
|
+
c
|
1083
|
+
) : r;
|
1084
|
+
try {
|
1085
|
+
const u = ks(
|
1086
|
+
o,
|
1087
|
+
c,
|
1088
|
+
i,
|
1089
|
+
d
|
1090
|
+
);
|
1091
|
+
i.get("$plugins").push(u), l && u.invoke("initialize", null);
|
1092
|
+
} catch (u) {
|
1093
|
+
Ps(e).warn("Error when initializing plugin", u);
|
1094
|
+
}
|
1095
|
+
};
|
1096
|
+
e.container.get("$instance") ? h(!0) : e.events.subscribeOnce("widget:instance-created", () => h(!1));
|
1097
|
+
}
|
1098
|
+
).createCommand(
|
1099
|
+
"container.register",
|
1100
|
+
(e) => (s, r) => {
|
1101
|
+
e.container.register(s, r);
|
1102
|
+
}
|
1103
|
+
).createCommand(
|
1104
|
+
"container.registerAsync",
|
1105
|
+
(e) => (s, r) => {
|
1106
|
+
e.container.registerAsync(s, r);
|
1107
|
+
}
|
1108
|
+
).createCommand(
|
1109
|
+
"container.registerFactory",
|
1110
|
+
(e) => (s, r) => {
|
1111
|
+
e.container.registerFactory(s, r);
|
1112
|
+
}
|
1113
|
+
).createCommand(
|
1114
|
+
"container.touch",
|
1115
|
+
(e) => (s, r) => {
|
1116
|
+
e.container.touch(s, r);
|
1117
|
+
}
|
1118
|
+
).createCommand(
|
1119
|
+
"csp",
|
1120
|
+
{},
|
1121
|
+
(e) => (s) => {
|
1122
|
+
e.container.register("csp", s);
|
1123
|
+
}
|
1124
|
+
);
|
1125
|
+
});
|
1126
|
+
Ot((t) => {
|
1127
|
+
t.createCommand("storage", (e) => (s = {}) => {
|
1128
|
+
const { consent: r } = s;
|
1129
|
+
if (typeof r != "undefined") {
|
1130
|
+
if (typeof r != "number" && typeof r != "string" && !Array.isArray(r)) {
|
1131
|
+
process.env.NODE_ENV !== "production" && f.warn(
|
1132
|
+
`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
|
1133
|
+
Passed consent: ${JSON.stringify(r)}`
|
1134
|
+
);
|
1135
|
+
return;
|
1136
|
+
}
|
1137
|
+
if (Array.isArray(r) && !r.every(
|
1138
|
+
(i) => typeof i == "number" || typeof i == "string"
|
1139
|
+
)) {
|
1140
|
+
process.env.NODE_ENV !== "production" && f.warn(
|
1141
|
+
`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
|
1142
|
+
Passed consent: ${JSON.stringify(r)}`
|
1143
|
+
);
|
1144
|
+
return;
|
1145
|
+
}
|
1146
|
+
const n = [
|
1147
|
+
m.Necessary,
|
1148
|
+
m.Functional,
|
1149
|
+
m.Analytical,
|
1150
|
+
m.Marketing
|
1151
|
+
].filter((i, o, c) => typeof r == "number" ? r > o : typeof r == "string" ? c.indexOf(r) + 1 > o : Array.isArray(r) ? r.findIndex((a) => a === o + 1 || a === i) > -1 : !0);
|
1152
|
+
return n.indexOf(m.Necessary) === -1 && (process.env.NODE_ENV !== "production" && f.warn(
|
1153
|
+
`storagePolicyConfigurationApi: passed consent does not include category: '${m.Necessary}'. Consent has to atleast include the '${m.Necessary}' category.
|
1154
|
+
Passed consent: ${JSON.stringify(r)}`
|
1155
|
+
), n.unshift(m.Necessary)), ys(
|
1156
|
+
e.container,
|
1157
|
+
"storagePolicy",
|
1158
|
+
m.Necessary,
|
1159
|
+
{
|
1160
|
+
medium: w.Cookie,
|
1161
|
+
scope: He.Tenant,
|
1162
|
+
duration: { days: 365 }
|
1163
|
+
}
|
1164
|
+
).then((i) => i(n)).then(() => {
|
1165
|
+
Me(e.container), e.events.dispatch("storage:policy-changed", n);
|
1166
|
+
});
|
1167
|
+
}
|
1168
|
+
});
|
1169
|
+
});
|
1170
|
+
function Ct(t) {
|
1171
|
+
if (t.__esModule)
|
1172
|
+
return t;
|
1173
|
+
var e = t.default;
|
1174
|
+
if (typeof e == "function") {
|
1175
|
+
var s = function r() {
|
1176
|
+
if (this instanceof r) {
|
1177
|
+
var n = [null];
|
1178
|
+
n.push.apply(n, arguments);
|
1179
|
+
var i = Function.bind.apply(e, n);
|
1180
|
+
return new i();
|
1181
|
+
}
|
1182
|
+
return e.apply(this, arguments);
|
1183
|
+
};
|
1184
|
+
s.prototype = e.prototype;
|
1185
|
+
} else
|
1186
|
+
s = {};
|
1187
|
+
return Object.defineProperty(s, "__esModule", { value: !0 }), Object.keys(t).forEach(function(r) {
|
1188
|
+
var n = Object.getOwnPropertyDescriptor(t, r);
|
1189
|
+
Object.defineProperty(s, r, n.get ? n : {
|
1190
|
+
enumerable: !0,
|
1191
|
+
get: function() {
|
1192
|
+
return t[r];
|
1193
|
+
}
|
1194
|
+
});
|
1195
|
+
}), s;
|
1196
|
+
}
|
1197
|
+
var xt = function() {
|
1198
|
+
};
|
1199
|
+
process.env.NODE_ENV !== "production" && (xt = function(t, e, s) {
|
1200
|
+
var r = arguments.length;
|
1201
|
+
s = new Array(r > 2 ? r - 2 : 0);
|
1202
|
+
for (var n = 2; n < r; n++)
|
1203
|
+
s[n - 2] = arguments[n];
|
1204
|
+
if (e === void 0)
|
1205
|
+
throw new Error(
|
1206
|
+
"`warning(condition, format, ...args)` requires a warning message argument"
|
1207
|
+
);
|
1208
|
+
if (e.length < 10 || /^[s\W]*$/.test(e))
|
1209
|
+
throw new Error(
|
1210
|
+
"The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: " + e
|
1211
|
+
);
|
1212
|
+
if (!t) {
|
1213
|
+
var i = 0, o = "Warning: " + e.replace(/%s/g, function() {
|
1214
|
+
return s[i++];
|
1215
|
+
});
|
1216
|
+
typeof console != "undefined" && console.error(o);
|
1217
|
+
try {
|
1218
|
+
throw new Error(o);
|
1219
|
+
} catch (c) {
|
1220
|
+
}
|
1221
|
+
}
|
1222
|
+
});
|
1223
|
+
var Ts = xt, js = Ts;
|
1224
|
+
Is(js);
|
1225
|
+
function Is(t) {
|
1226
|
+
return t && t.__esModule ? t : { default: t };
|
1227
|
+
}
|
1228
|
+
function q(t) {
|
1229
|
+
return t.charAt(0) === "/";
|
1230
|
+
}
|
1231
|
+
function ve(t, e) {
|
1232
|
+
for (var s = e, r = s + 1, n = t.length; r < n; s += 1, r += 1)
|
1233
|
+
t[s] = t[r];
|
1234
|
+
t.pop();
|
1235
|
+
}
|
1236
|
+
function Us(t) {
|
1237
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", s = t && t.split("/") || [], r = e && e.split("/") || [], n = t && q(t), i = e && q(e), o = n || i;
|
1238
|
+
if (t && q(t) ? r = s : s.length && (r.pop(), r = r.concat(s)), !r.length)
|
1239
|
+
return "/";
|
1240
|
+
var c = void 0;
|
1241
|
+
if (r.length) {
|
1242
|
+
var a = r[r.length - 1];
|
1243
|
+
c = a === "." || a === ".." || a === "";
|
1244
|
+
} else
|
1245
|
+
c = !1;
|
1246
|
+
for (var h = 0, l = r.length; l >= 0; l--) {
|
1247
|
+
var p = r[l];
|
1248
|
+
p === "." ? ve(r, l) : p === ".." ? (ve(r, l), h++) : h && (ve(r, l), h--);
|
1249
|
+
}
|
1250
|
+
if (!o)
|
1251
|
+
for (; h--; h)
|
1252
|
+
r.unshift("..");
|
1253
|
+
o && r[0] !== "" && (!r[0] || !q(r[0])) && r.unshift("");
|
1254
|
+
var d = r.join("/");
|
1255
|
+
return c && d.substr(-1) !== "/" && (d += "/"), d;
|
1256
|
+
}
|
1257
|
+
const Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1258
|
+
__proto__: null,
|
1259
|
+
default: Us
|
1260
|
+
}, Symbol.toStringTag, { value: "Module" })), Rs = /* @__PURE__ */ Ct(Hs);
|
1261
|
+
var rt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
1262
|
+
return typeof t;
|
1263
|
+
} : function(t) {
|
1264
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
1265
|
+
};
|
1266
|
+
function Q(t, e) {
|
1267
|
+
if (t === e)
|
1268
|
+
return !0;
|
1269
|
+
if (t == null || e == null)
|
1270
|
+
return !1;
|
1271
|
+
if (Array.isArray(t))
|
1272
|
+
return Array.isArray(e) && t.length === e.length && t.every(function(a, h) {
|
1273
|
+
return Q(a, e[h]);
|
1274
|
+
});
|
1275
|
+
var s = typeof t == "undefined" ? "undefined" : rt(t), r = typeof e == "undefined" ? "undefined" : rt(e);
|
1276
|
+
if (s !== r)
|
1277
|
+
return !1;
|
1278
|
+
if (s === "object") {
|
1279
|
+
var n = t.valueOf(), i = e.valueOf();
|
1280
|
+
if (n !== t || i !== e)
|
1281
|
+
return Q(n, i);
|
1282
|
+
var o = Object.keys(t), c = Object.keys(e);
|
1283
|
+
return o.length !== c.length ? !1 : o.every(function(a) {
|
1284
|
+
return Q(t[a], e[a]);
|
1285
|
+
});
|
1286
|
+
}
|
1287
|
+
return !1;
|
1288
|
+
}
|
1289
|
+
const Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1290
|
+
__proto__: null,
|
1291
|
+
default: Q
|
1292
|
+
}, Symbol.toStringTag, { value: "Module" })), Ds = /* @__PURE__ */ Ct(Ms);
|
1293
|
+
var zs = Rs;
|
1294
|
+
St(zs);
|
1295
|
+
var Ls = Ds;
|
1296
|
+
St(Ls);
|
1297
|
+
function St(t) {
|
1298
|
+
return t && t.__esModule ? t : { default: t };
|
1299
|
+
}
|
1300
|
+
Ne((t) => {
|
1301
|
+
t.createCommand("routing", (e) => (s) => {
|
1302
|
+
const r = {
|
1303
|
+
mode: s.mode
|
1304
|
+
};
|
1305
|
+
s.basePath && (r.basePath = s.basePath), e.container.register("routingSettings", r);
|
1306
|
+
});
|
1307
|
+
});
|
1308
|
+
const ye = (t, e, s, ...r) => {
|
1309
|
+
const n = `[${t.get("$environment").name || "webprovisions"}] ${s}`;
|
1310
|
+
switch (e) {
|
1311
|
+
case "info":
|
1312
|
+
console.info(n, ...r);
|
1313
|
+
break;
|
1314
|
+
case "warning":
|
1315
|
+
console.warn(n, ...r);
|
1316
|
+
break;
|
1317
|
+
case "error":
|
1318
|
+
console.error(n, ...r);
|
1319
|
+
break;
|
1320
|
+
}
|
1321
|
+
}, Ws = (t) => {
|
1322
|
+
const e = t.container || t;
|
1323
|
+
return {
|
1324
|
+
info: (s, ...r) => ye(e, "info", s, ...r),
|
1325
|
+
warn: (s, ...r) => ye(e, "warning", s, ...r),
|
1326
|
+
error: (s, ...r) => ye(e, "error", s, ...r)
|
1327
|
+
};
|
1328
|
+
};
|
1329
|
+
var L = /* @__PURE__ */ ((t) => (t.Implementation = "implementation", t.Widget = "widget", t))(L || {}), O = /* @__PURE__ */ ((t) => (t.Pre = "pre", t.Post = "post", t))(O || {});
|
1330
|
+
const Vs = (t, e, s, r) => {
|
1331
|
+
try {
|
1332
|
+
const n = new e(s, r);
|
1333
|
+
return {
|
1334
|
+
name: t,
|
1335
|
+
invoke: (i, o) => {
|
1336
|
+
let c;
|
1337
|
+
return n[i] && (c = n[i].call(n, o)), Promise.resolve(c);
|
1338
|
+
},
|
1339
|
+
getInstance: () => n
|
1340
|
+
};
|
1341
|
+
} catch (n) {
|
1342
|
+
if (n.message && n.message.indexOf("is not a constructor") >= 0)
|
1343
|
+
return {
|
1344
|
+
name: t,
|
1345
|
+
invoke: (i) => {
|
1346
|
+
let o;
|
1347
|
+
return i === "initialize" && (o = e(s, r)), Promise.resolve(o);
|
1348
|
+
},
|
1349
|
+
getInstance: () => e
|
1350
|
+
};
|
1351
|
+
throw n;
|
1352
|
+
}
|
1353
|
+
};
|
1354
|
+
function nt(t, e) {
|
1355
|
+
return typeof t == "undefined" ? e : t;
|
1356
|
+
}
|
1357
|
+
class Bs {
|
1358
|
+
constructor(e = {}) {
|
1359
|
+
this.part = e;
|
1360
|
+
}
|
1361
|
+
createCommand(e, s, r) {
|
1362
|
+
let n;
|
1363
|
+
typeof s == "function" ? n = {
|
1364
|
+
scope: L.Widget,
|
1365
|
+
stage: O.Post,
|
1366
|
+
defaultArgs: void 0,
|
1367
|
+
handlerResolver: s
|
1368
|
+
} : n = {
|
1369
|
+
scope: nt(s.scope, L.Widget),
|
1370
|
+
stage: nt(s.stage, O.Post),
|
1371
|
+
defaultArgs: s.defaultArgs,
|
1372
|
+
handlerResolver: r
|
1373
|
+
};
|
1374
|
+
let i = this.part;
|
1375
|
+
const o = e.split(".");
|
1376
|
+
return o.forEach((c, a) => {
|
1377
|
+
a === o.length - 1 ? i[c] || (i[c] = () => n) : i = this.part[c] = this.part[c] || {};
|
1378
|
+
}), this;
|
1379
|
+
}
|
1380
|
+
get() {
|
1381
|
+
return this.part;
|
1382
|
+
}
|
1383
|
+
}
|
1384
|
+
const Pt = (t) => {
|
1385
|
+
const e = new Bs({});
|
1386
|
+
return t(e), e.get();
|
1387
|
+
};
|
1388
|
+
Pt((t) => {
|
1389
|
+
t.createCommand(
|
1390
|
+
"types.register",
|
1391
|
+
{ scope: L.Implementation, stage: O.Pre },
|
1392
|
+
(e) => (s, r) => {
|
1393
|
+
e.container.get("$types")[s] = r;
|
1394
|
+
}
|
1395
|
+
).createCommand(
|
1396
|
+
"type",
|
1397
|
+
{ stage: O.Pre },
|
1398
|
+
(e) => (s) => {
|
1399
|
+
e.container.register("$type", s);
|
1400
|
+
}
|
1401
|
+
).createCommand(
|
1402
|
+
"settings",
|
1403
|
+
{ stage: O.Pre, defaultArgs: [null] },
|
1404
|
+
(e) => (s) => {
|
1405
|
+
e.events.dispatch(
|
1406
|
+
"settings:change",
|
1407
|
+
s,
|
1408
|
+
{ bubbles: !0 }
|
1409
|
+
), e.container.register("$settings", s);
|
1410
|
+
}
|
1411
|
+
).createCommand(
|
1412
|
+
"plugin",
|
1413
|
+
{ stage: O.Pre },
|
1414
|
+
(e) => (s, r, n) => {
|
1415
|
+
const { container: i } = e;
|
1416
|
+
let o = null, c = s, a = r;
|
1417
|
+
typeof s == "string" && (o = s, c = r, a = n);
|
1418
|
+
const h = (l) => {
|
1419
|
+
const { transformPluginSettings: p } = e.container.get("$environmentOptions"), d = p ? p(
|
1420
|
+
a || {},
|
1421
|
+
o,
|
1422
|
+
e.container,
|
1423
|
+
c
|
1424
|
+
) : r;
|
1425
|
+
try {
|
1426
|
+
const u = Vs(
|
1427
|
+
o,
|
1428
|
+
c,
|
1429
|
+
i,
|
1430
|
+
d
|
1431
|
+
);
|
1432
|
+
i.get("$plugins").push(u), l && u.invoke("initialize", null);
|
1433
|
+
} catch (u) {
|
1434
|
+
Ws(e).warn("Error when initializing plugin", u);
|
1435
|
+
}
|
1436
|
+
};
|
1437
|
+
e.container.get("$instance") ? h(!0) : e.events.subscribeOnce("widget:instance-created", () => h(!1));
|
1438
|
+
}
|
1439
|
+
).createCommand(
|
1440
|
+
"container.register",
|
1441
|
+
(e) => (s, r) => {
|
1442
|
+
e.container.register(s, r);
|
1443
|
+
}
|
1444
|
+
).createCommand(
|
1445
|
+
"container.registerAsync",
|
1446
|
+
(e) => (s, r) => {
|
1447
|
+
e.container.registerAsync(s, r);
|
1448
|
+
}
|
1449
|
+
).createCommand(
|
1450
|
+
"container.registerFactory",
|
1451
|
+
(e) => (s, r) => {
|
1452
|
+
e.container.registerFactory(s, r);
|
1453
|
+
}
|
1454
|
+
).createCommand(
|
1455
|
+
"container.touch",
|
1456
|
+
(e) => (s, r) => {
|
1457
|
+
e.container.touch(s, r);
|
1458
|
+
}
|
1459
|
+
).createCommand(
|
1460
|
+
"csp",
|
1461
|
+
{},
|
1462
|
+
(e) => (s) => {
|
1463
|
+
e.container.register("csp", s);
|
1464
|
+
}
|
1465
|
+
);
|
1466
|
+
});
|
1467
|
+
Pt((t) => {
|
1468
|
+
t.createCommand(
|
1469
|
+
"ready",
|
1470
|
+
{ scope: L.Implementation, stage: O.Pre },
|
1471
|
+
(e) => (s) => {
|
1472
|
+
const { container: r } = e, n = r.owner;
|
1473
|
+
r.get("bootstrapping").ready ? s(n) : n.events.subscribeOnce("bootstrap:ready", () => {
|
1474
|
+
s(n);
|
1475
|
+
});
|
1476
|
+
}
|
1477
|
+
);
|
1478
|
+
});
|
1479
|
+
/**
|
1480
|
+
* @license
|
1481
|
+
* Copyright 2019 Google LLC
|
1482
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
1483
|
+
*/
|
1484
|
+
const Y = window, ze = Y.ShadowRoot && (Y.ShadyCSS === void 0 || Y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Le = Symbol(), it = /* @__PURE__ */ new WeakMap();
|
1485
|
+
let kt = class {
|
1486
|
+
constructor(t, e, s) {
|
1487
|
+
if (this._$cssResult$ = !0, s !== Le)
|
1488
|
+
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
1489
|
+
this.cssText = t, this.t = e;
|
1490
|
+
}
|
1491
|
+
get styleSheet() {
|
1492
|
+
let t = this.o;
|
1493
|
+
const e = this.t;
|
1494
|
+
if (ze && t === void 0) {
|
1495
|
+
const s = e !== void 0 && e.length === 1;
|
1496
|
+
s && (t = it.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && it.set(e, t));
|
1497
|
+
}
|
1498
|
+
return t;
|
1499
|
+
}
|
1500
|
+
toString() {
|
1501
|
+
return this.cssText;
|
1502
|
+
}
|
1503
|
+
};
|
1504
|
+
const Js = (t) => new kt(typeof t == "string" ? t : t + "", void 0, Le), Fs = (t, ...e) => {
|
1505
|
+
const s = t.length === 1 ? t[0] : e.reduce((r, n, i) => r + ((o) => {
|
1506
|
+
if (o._$cssResult$ === !0)
|
1507
|
+
return o.cssText;
|
1508
|
+
if (typeof o == "number")
|
1509
|
+
return o;
|
1510
|
+
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.");
|
1511
|
+
})(n) + t[i + 1], t[0]);
|
1512
|
+
return new kt(s, t, Le);
|
1513
|
+
}, qs = (t, e) => {
|
1514
|
+
ze ? t.adoptedStyleSheets = e.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet) : e.forEach((s) => {
|
1515
|
+
const r = document.createElement("style"), n = Y.litNonce;
|
1516
|
+
n !== void 0 && r.setAttribute("nonce", n), r.textContent = s.cssText, t.appendChild(r);
|
1517
|
+
});
|
1518
|
+
}, ot = ze ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
1519
|
+
let s = "";
|
1520
|
+
for (const r of e.cssRules)
|
1521
|
+
s += r.cssText;
|
1522
|
+
return Js(s);
|
1523
|
+
})(t) : t;
|
1524
|
+
/**
|
1525
|
+
* @license
|
1526
|
+
* Copyright 2017 Google LLC
|
1527
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
1528
|
+
*/
|
1529
|
+
var be;
|
1530
|
+
const te = window, at = te.trustedTypes, Ks = at ? at.emptyScript : "", ct = te.reactiveElementPolyfillSupport, Se = { toAttribute(t, e) {
|
1531
|
+
switch (e) {
|
1532
|
+
case Boolean:
|
1533
|
+
t = t ? Ks : null;
|
1534
|
+
break;
|
1535
|
+
case Object:
|
1536
|
+
case Array:
|
1537
|
+
t = t == null ? t : JSON.stringify(t);
|
1538
|
+
}
|
1539
|
+
return t;
|
1540
|
+
}, fromAttribute(t, e) {
|
1541
|
+
let s = t;
|
1542
|
+
switch (e) {
|
1543
|
+
case Boolean:
|
1544
|
+
s = t !== null;
|
1545
|
+
break;
|
1546
|
+
case Number:
|
1547
|
+
s = t === null ? null : Number(t);
|
1548
|
+
break;
|
1549
|
+
case Object:
|
1550
|
+
case Array:
|
1551
|
+
try {
|
1552
|
+
s = JSON.parse(t);
|
1553
|
+
} catch (r) {
|
1554
|
+
s = null;
|
1555
|
+
}
|
1556
|
+
}
|
1557
|
+
return s;
|
1558
|
+
} }, Nt = (t, e) => e !== t && (e == e || t == t), $e = { attribute: !0, type: String, converter: Se, reflect: !1, hasChanged: Nt }, Pe = "finalized";
|
1559
|
+
let I = class extends HTMLElement {
|
1560
|
+
constructor() {
|
1561
|
+
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
|
1562
|
+
}
|
1563
|
+
static addInitializer(t) {
|
1564
|
+
var e;
|
1565
|
+
this.finalize(), ((e = this.h) !== null && e !== void 0 ? e : this.h = []).push(t);
|
1566
|
+
}
|
1567
|
+
static get observedAttributes() {
|
1568
|
+
this.finalize();
|
1569
|
+
const t = [];
|
1570
|
+
return this.elementProperties.forEach((e, s) => {
|
1571
|
+
const r = this._$Ep(s, e);
|
1572
|
+
r !== void 0 && (this._$Ev.set(r, s), t.push(r));
|
1573
|
+
}), t;
|
1574
|
+
}
|
1575
|
+
static createProperty(t, e = $e) {
|
1576
|
+
if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
1577
|
+
const s = typeof t == "symbol" ? Symbol() : "__" + t, r = this.getPropertyDescriptor(t, s, e);
|
1578
|
+
r !== void 0 && Object.defineProperty(this.prototype, t, r);
|
1579
|
+
}
|
1580
|
+
}
|
1581
|
+
static getPropertyDescriptor(t, e, s) {
|
1582
|
+
return { get() {
|
1583
|
+
return this[e];
|
1584
|
+
}, set(r) {
|
1585
|
+
const n = this[t];
|
1586
|
+
this[e] = r, this.requestUpdate(t, n, s);
|
1587
|
+
}, configurable: !0, enumerable: !0 };
|
1588
|
+
}
|
1589
|
+
static getPropertyOptions(t) {
|
1590
|
+
return this.elementProperties.get(t) || $e;
|
1591
|
+
}
|
1592
|
+
static finalize() {
|
1593
|
+
if (this.hasOwnProperty(Pe))
|
1594
|
+
return !1;
|
1595
|
+
this[Pe] = !0;
|
1596
|
+
const t = Object.getPrototypeOf(this);
|
1597
|
+
if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
|
1598
|
+
const e = this.properties, s = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
|
1599
|
+
for (const r of s)
|
1600
|
+
this.createProperty(r, e[r]);
|
1601
|
+
}
|
1602
|
+
return this.elementStyles = this.finalizeStyles(this.styles), !0;
|
1603
|
+
}
|
1604
|
+
static finalizeStyles(t) {
|
1605
|
+
const e = [];
|
1606
|
+
if (Array.isArray(t)) {
|
1607
|
+
const s = new Set(t.flat(1 / 0).reverse());
|
1608
|
+
for (const r of s)
|
1609
|
+
e.unshift(ot(r));
|
1610
|
+
} else
|
1611
|
+
t !== void 0 && e.push(ot(t));
|
1612
|
+
return e;
|
1613
|
+
}
|
1614
|
+
static _$Ep(t, e) {
|
1615
|
+
const s = e.attribute;
|
1616
|
+
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
1617
|
+
}
|
1618
|
+
_$Eu() {
|
1619
|
+
var t;
|
1620
|
+
this._$E_ = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach((e) => e(this));
|
1621
|
+
}
|
1622
|
+
addController(t) {
|
1623
|
+
var e, s;
|
1624
|
+
((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((s = t.hostConnected) === null || s === void 0 || s.call(t));
|
1625
|
+
}
|
1626
|
+
removeController(t) {
|
1627
|
+
var e;
|
1628
|
+
(e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);
|
1629
|
+
}
|
1630
|
+
_$Eg() {
|
1631
|
+
this.constructor.elementProperties.forEach((t, e) => {
|
1632
|
+
this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);
|
1633
|
+
});
|
1634
|
+
}
|
1635
|
+
createRenderRoot() {
|
1636
|
+
var t;
|
1637
|
+
const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
1638
|
+
return qs(e, this.constructor.elementStyles), e;
|
1639
|
+
}
|
1640
|
+
connectedCallback() {
|
1641
|
+
var t;
|
1642
|
+
this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
|
1643
|
+
var s;
|
1644
|
+
return (s = e.hostConnected) === null || s === void 0 ? void 0 : s.call(e);
|
1645
|
+
});
|
1646
|
+
}
|
1647
|
+
enableUpdating(t) {
|
1648
|
+
}
|
1649
|
+
disconnectedCallback() {
|
1650
|
+
var t;
|
1651
|
+
(t = this._$ES) === null || t === void 0 || t.forEach((e) => {
|
1652
|
+
var s;
|
1653
|
+
return (s = e.hostDisconnected) === null || s === void 0 ? void 0 : s.call(e);
|
1654
|
+
});
|
1655
|
+
}
|
1656
|
+
attributeChangedCallback(t, e, s) {
|
1657
|
+
this._$AK(t, s);
|
1658
|
+
}
|
1659
|
+
_$EO(t, e, s = $e) {
|
1660
|
+
var r;
|
1661
|
+
const n = this.constructor._$Ep(t, s);
|
1662
|
+
if (n !== void 0 && s.reflect === !0) {
|
1663
|
+
const i = (((r = s.converter) === null || r === void 0 ? void 0 : r.toAttribute) !== void 0 ? s.converter : Se).toAttribute(e, s.type);
|
1664
|
+
this._$El = t, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$El = null;
|
1665
|
+
}
|
1666
|
+
}
|
1667
|
+
_$AK(t, e) {
|
1668
|
+
var s;
|
1669
|
+
const r = this.constructor, n = r._$Ev.get(t);
|
1670
|
+
if (n !== void 0 && this._$El !== n) {
|
1671
|
+
const i = r.getPropertyOptions(n), o = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((s = i.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? i.converter : Se;
|
1672
|
+
this._$El = n, this[n] = o.fromAttribute(e, i.type), this._$El = null;
|
1673
|
+
}
|
1674
|
+
}
|
1675
|
+
requestUpdate(t, e, s) {
|
1676
|
+
let r = !0;
|
1677
|
+
t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || Nt)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : r = !1), !this.isUpdatePending && r && (this._$E_ = this._$Ej());
|
1678
|
+
}
|
1679
|
+
_$Ej() {
|
1680
|
+
return Z(this, null, function* () {
|
1681
|
+
this.isUpdatePending = !0;
|
1682
|
+
try {
|
1683
|
+
yield this._$E_;
|
1684
|
+
} catch (e) {
|
1685
|
+
Promise.reject(e);
|
1686
|
+
}
|
1687
|
+
const t = this.scheduleUpdate();
|
1688
|
+
return t != null && (yield t), !this.isUpdatePending;
|
1689
|
+
});
|
1690
|
+
}
|
1691
|
+
scheduleUpdate() {
|
1692
|
+
return this.performUpdate();
|
1693
|
+
}
|
1694
|
+
performUpdate() {
|
1695
|
+
var t;
|
1696
|
+
if (!this.isUpdatePending)
|
1697
|
+
return;
|
1698
|
+
this.hasUpdated, this._$Ei && (this._$Ei.forEach((r, n) => this[n] = r), this._$Ei = void 0);
|
1699
|
+
let e = !1;
|
1700
|
+
const s = this._$AL;
|
1701
|
+
try {
|
1702
|
+
e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$ES) === null || t === void 0 || t.forEach((r) => {
|
1703
|
+
var n;
|
1704
|
+
return (n = r.hostUpdate) === null || n === void 0 ? void 0 : n.call(r);
|
1705
|
+
}), this.update(s)) : this._$Ek();
|
1706
|
+
} catch (r) {
|
1707
|
+
throw e = !1, this._$Ek(), r;
|
1708
|
+
}
|
1709
|
+
e && this._$AE(s);
|
1710
|
+
}
|
1711
|
+
willUpdate(t) {
|
1712
|
+
}
|
1713
|
+
_$AE(t) {
|
1714
|
+
var e;
|
1715
|
+
(e = this._$ES) === null || e === void 0 || e.forEach((s) => {
|
1716
|
+
var r;
|
1717
|
+
return (r = s.hostUpdated) === null || r === void 0 ? void 0 : r.call(s);
|
1718
|
+
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
1719
|
+
}
|
1720
|
+
_$Ek() {
|
1721
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
1722
|
+
}
|
1723
|
+
get updateComplete() {
|
1724
|
+
return this.getUpdateComplete();
|
1725
|
+
}
|
1726
|
+
getUpdateComplete() {
|
1727
|
+
return this._$E_;
|
1728
|
+
}
|
1729
|
+
shouldUpdate(t) {
|
1730
|
+
return !0;
|
1731
|
+
}
|
1732
|
+
update(t) {
|
1733
|
+
this._$EC !== void 0 && (this._$EC.forEach((e, s) => this._$EO(s, this[s], e)), this._$EC = void 0), this._$Ek();
|
1734
|
+
}
|
1735
|
+
updated(t) {
|
1736
|
+
}
|
1737
|
+
firstUpdated(t) {
|
1738
|
+
}
|
1739
|
+
};
|
1740
|
+
I[Pe] = !0, I.elementProperties = /* @__PURE__ */ new Map(), I.elementStyles = [], I.shadowRootOptions = { mode: "open" }, ct == null || ct({ ReactiveElement: I }), ((be = te.reactiveElementVersions) !== null && be !== void 0 ? be : te.reactiveElementVersions = []).push("1.6.3");
|
1741
|
+
/**
|
1742
|
+
* @license
|
1743
|
+
* Copyright 2017 Google LLC
|
1744
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
1745
|
+
*/
|
1746
|
+
var we;
|
1747
|
+
const se = window, H = se.trustedTypes, lt = H ? H.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ke = "$lit$", E = `lit$${(Math.random() + "").slice(9)}$`, Tt = "?" + E, Zs = `<${Tt}>`, k = document, W = () => k.createComment(""), V = (t) => t === null || typeof t != "object" && typeof t != "function", jt = Array.isArray, Qs = (t) => jt(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", _e = `[
|
1748
|
+
\f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, pt = />/g, C = RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
|
1749
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, ut = /"/g, It = /^(?:script|style|textarea|title)$/i, Ys = (t) => (e, ...s) => ({ _$litType$: t, strings: e, values: s }), K = Ys(1), N = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), gt = /* @__PURE__ */ new WeakMap(), P = k.createTreeWalker(k, 129, null, !1);
|
1750
|
+
function Ut(t, e) {
|
1751
|
+
if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
|
1752
|
+
throw Error("invalid template strings array");
|
1753
|
+
return lt !== void 0 ? lt.createHTML(e) : e;
|
1754
|
+
}
|
1755
|
+
const Gs = (t, e) => {
|
1756
|
+
const s = t.length - 1, r = [];
|
1757
|
+
let n, i = e === 2 ? "<svg>" : "", o = M;
|
1758
|
+
for (let c = 0; c < s; c++) {
|
1759
|
+
const a = t[c];
|
1760
|
+
let h, l, p = -1, d = 0;
|
1761
|
+
for (; d < a.length && (o.lastIndex = d, l = o.exec(a), l !== null); )
|
1762
|
+
d = o.lastIndex, o === M ? l[1] === "!--" ? o = ht : l[1] !== void 0 ? o = pt : l[2] !== void 0 ? (It.test(l[2]) && (n = RegExp("</" + l[2], "g")), o = C) : l[3] !== void 0 && (o = C) : o === C ? l[0] === ">" ? (o = n != null ? n : M, p = -1) : l[1] === void 0 ? p = -2 : (p = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? C : l[3] === '"' ? ut : dt) : o === ut || o === dt ? o = C : o === ht || o === pt ? o = M : (o = C, n = void 0);
|
1763
|
+
const u = o === C && t[c + 1].startsWith("/>") ? " " : "";
|
1764
|
+
i += o === M ? a + Zs : p >= 0 ? (r.push(h), a.slice(0, p) + ke + a.slice(p) + E + u) : a + E + (p === -2 ? (r.push(void 0), c) : u);
|
1765
|
+
}
|
1766
|
+
return [Ut(t, i + (t[s] || "<?>") + (e === 2 ? "</svg>" : "")), r];
|
1767
|
+
};
|
1768
|
+
class B {
|
1769
|
+
constructor({ strings: e, _$litType$: s }, r) {
|
1770
|
+
let n;
|
1771
|
+
this.parts = [];
|
1772
|
+
let i = 0, o = 0;
|
1773
|
+
const c = e.length - 1, a = this.parts, [h, l] = Gs(e, s);
|
1774
|
+
if (this.el = B.createElement(h, r), P.currentNode = this.el.content, s === 2) {
|
1775
|
+
const p = this.el.content, d = p.firstChild;
|
1776
|
+
d.remove(), p.append(...d.childNodes);
|
1777
|
+
}
|
1778
|
+
for (; (n = P.nextNode()) !== null && a.length < c; ) {
|
1779
|
+
if (n.nodeType === 1) {
|
1780
|
+
if (n.hasAttributes()) {
|
1781
|
+
const p = [];
|
1782
|
+
for (const d of n.getAttributeNames())
|
1783
|
+
if (d.endsWith(ke) || d.startsWith(E)) {
|
1784
|
+
const u = l[o++];
|
1785
|
+
if (p.push(d), u !== void 0) {
|
1786
|
+
const y = n.getAttribute(u.toLowerCase() + ke).split(E), _ = /([.?@])?(.*)/.exec(u);
|
1787
|
+
a.push({ type: 1, index: i, name: _[2], strings: y, ctor: _[1] === "." ? er : _[1] === "?" ? sr : _[1] === "@" ? rr : oe });
|
1788
|
+
} else
|
1789
|
+
a.push({ type: 6, index: i });
|
1790
|
+
}
|
1791
|
+
for (const d of p)
|
1792
|
+
n.removeAttribute(d);
|
1793
|
+
}
|
1794
|
+
if (It.test(n.tagName)) {
|
1795
|
+
const p = n.textContent.split(E), d = p.length - 1;
|
1796
|
+
if (d > 0) {
|
1797
|
+
n.textContent = H ? H.emptyScript : "";
|
1798
|
+
for (let u = 0; u < d; u++)
|
1799
|
+
n.append(p[u], W()), P.nextNode(), a.push({ type: 2, index: ++i });
|
1800
|
+
n.append(p[d], W());
|
1801
|
+
}
|
1802
|
+
}
|
1803
|
+
} else if (n.nodeType === 8)
|
1804
|
+
if (n.data === Tt)
|
1805
|
+
a.push({ type: 2, index: i });
|
1806
|
+
else {
|
1807
|
+
let p = -1;
|
1808
|
+
for (; (p = n.data.indexOf(E, p + 1)) !== -1; )
|
1809
|
+
a.push({ type: 7, index: i }), p += E.length - 1;
|
1810
|
+
}
|
1811
|
+
i++;
|
1812
|
+
}
|
1813
|
+
}
|
1814
|
+
static createElement(e, s) {
|
1815
|
+
const r = k.createElement("template");
|
1816
|
+
return r.innerHTML = e, r;
|
1817
|
+
}
|
1818
|
+
}
|
1819
|
+
function R(t, e, s = t, r) {
|
1820
|
+
var n, i, o, c;
|
1821
|
+
if (e === N)
|
1822
|
+
return e;
|
1823
|
+
let a = r !== void 0 ? (n = s._$Co) === null || n === void 0 ? void 0 : n[r] : s._$Cl;
|
1824
|
+
const h = V(e) ? void 0 : e._$litDirective$;
|
1825
|
+
return (a == null ? void 0 : a.constructor) !== h && ((i = a == null ? void 0 : a._$AO) === null || i === void 0 || i.call(a, !1), h === void 0 ? a = void 0 : (a = new h(t), a._$AT(t, s, r)), r !== void 0 ? ((o = (c = s)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[r] = a : s._$Cl = a), a !== void 0 && (e = R(t, a._$AS(t, e.values), a, r)), e;
|
1826
|
+
}
|
1827
|
+
class Xs {
|
1828
|
+
constructor(e, s) {
|
1829
|
+
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = s;
|
1830
|
+
}
|
1831
|
+
get parentNode() {
|
1832
|
+
return this._$AM.parentNode;
|
1833
|
+
}
|
1834
|
+
get _$AU() {
|
1835
|
+
return this._$AM._$AU;
|
1836
|
+
}
|
1837
|
+
u(e) {
|
1838
|
+
var s;
|
1839
|
+
const { el: { content: r }, parts: n } = this._$AD, i = ((s = e == null ? void 0 : e.creationScope) !== null && s !== void 0 ? s : k).importNode(r, !0);
|
1840
|
+
P.currentNode = i;
|
1841
|
+
let o = P.nextNode(), c = 0, a = 0, h = n[0];
|
1842
|
+
for (; h !== void 0; ) {
|
1843
|
+
if (c === h.index) {
|
1844
|
+
let l;
|
1845
|
+
h.type === 2 ? l = new J(o, o.nextSibling, this, e) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, e) : h.type === 6 && (l = new nr(o, this, e)), this._$AV.push(l), h = n[++a];
|
1846
|
+
}
|
1847
|
+
c !== (h == null ? void 0 : h.index) && (o = P.nextNode(), c++);
|
1848
|
+
}
|
1849
|
+
return P.currentNode = k, i;
|
1850
|
+
}
|
1851
|
+
v(e) {
|
1852
|
+
let s = 0;
|
1853
|
+
for (const r of this._$AV)
|
1854
|
+
r !== void 0 && (r.strings !== void 0 ? (r._$AI(e, r, s), s += r.strings.length - 2) : r._$AI(e[s])), s++;
|
1855
|
+
}
|
1856
|
+
}
|
1857
|
+
class J {
|
1858
|
+
constructor(e, s, r, n) {
|
1859
|
+
var i;
|
1860
|
+
this.type = 2, this._$AH = g, this._$AN = void 0, this._$AA = e, this._$AB = s, this._$AM = r, this.options = n, this._$Cp = (i = n == null ? void 0 : n.isConnected) === null || i === void 0 || i;
|
1861
|
+
}
|
1862
|
+
get _$AU() {
|
1863
|
+
var e, s;
|
1864
|
+
return (s = (e = this._$AM) === null || e === void 0 ? void 0 : e._$AU) !== null && s !== void 0 ? s : this._$Cp;
|
1865
|
+
}
|
1866
|
+
get parentNode() {
|
1867
|
+
let e = this._$AA.parentNode;
|
1868
|
+
const s = this._$AM;
|
1869
|
+
return s !== void 0 && (e == null ? void 0 : e.nodeType) === 11 && (e = s.parentNode), e;
|
1870
|
+
}
|
1871
|
+
get startNode() {
|
1872
|
+
return this._$AA;
|
1873
|
+
}
|
1874
|
+
get endNode() {
|
1875
|
+
return this._$AB;
|
1876
|
+
}
|
1877
|
+
_$AI(e, s = this) {
|
1878
|
+
e = R(this, e, s), V(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== N && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : Qs(e) ? this.T(e) : this._(e);
|
1879
|
+
}
|
1880
|
+
k(e) {
|
1881
|
+
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
1882
|
+
}
|
1883
|
+
$(e) {
|
1884
|
+
this._$AH !== e && (this._$AR(), this._$AH = this.k(e));
|
1885
|
+
}
|
1886
|
+
_(e) {
|
1887
|
+
this._$AH !== g && V(this._$AH) ? this._$AA.nextSibling.data = e : this.$(k.createTextNode(e)), this._$AH = e;
|
1888
|
+
}
|
1889
|
+
g(e) {
|
1890
|
+
var s;
|
1891
|
+
const { values: r, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = B.createElement(Ut(n.h, n.h[0]), this.options)), n);
|
1892
|
+
if (((s = this._$AH) === null || s === void 0 ? void 0 : s._$AD) === i)
|
1893
|
+
this._$AH.v(r);
|
1894
|
+
else {
|
1895
|
+
const o = new Xs(i, this), c = o.u(this.options);
|
1896
|
+
o.v(r), this.$(c), this._$AH = o;
|
1897
|
+
}
|
1898
|
+
}
|
1899
|
+
_$AC(e) {
|
1900
|
+
let s = gt.get(e.strings);
|
1901
|
+
return s === void 0 && gt.set(e.strings, s = new B(e)), s;
|
1902
|
+
}
|
1903
|
+
T(e) {
|
1904
|
+
jt(this._$AH) || (this._$AH = [], this._$AR());
|
1905
|
+
const s = this._$AH;
|
1906
|
+
let r, n = 0;
|
1907
|
+
for (const i of e)
|
1908
|
+
n === s.length ? s.push(r = new J(this.k(W()), this.k(W()), this, this.options)) : r = s[n], r._$AI(i), n++;
|
1909
|
+
n < s.length && (this._$AR(r && r._$AB.nextSibling, n), s.length = n);
|
1910
|
+
}
|
1911
|
+
_$AR(e = this._$AA.nextSibling, s) {
|
1912
|
+
var r;
|
1913
|
+
for ((r = this._$AP) === null || r === void 0 || r.call(this, !1, !0, s); e && e !== this._$AB; ) {
|
1914
|
+
const n = e.nextSibling;
|
1915
|
+
e.remove(), e = n;
|
1916
|
+
}
|
1917
|
+
}
|
1918
|
+
setConnected(e) {
|
1919
|
+
var s;
|
1920
|
+
this._$AM === void 0 && (this._$Cp = e, (s = this._$AP) === null || s === void 0 || s.call(this, e));
|
1921
|
+
}
|
1922
|
+
}
|
1923
|
+
class oe {
|
1924
|
+
constructor(e, s, r, n, i) {
|
1925
|
+
this.type = 1, this._$AH = g, this._$AN = void 0, this.element = e, this.name = s, this._$AM = n, this.options = i, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = g;
|
1926
|
+
}
|
1927
|
+
get tagName() {
|
1928
|
+
return this.element.tagName;
|
1929
|
+
}
|
1930
|
+
get _$AU() {
|
1931
|
+
return this._$AM._$AU;
|
1932
|
+
}
|
1933
|
+
_$AI(e, s = this, r, n) {
|
1934
|
+
const i = this.strings;
|
1935
|
+
let o = !1;
|
1936
|
+
if (i === void 0)
|
1937
|
+
e = R(this, e, s, 0), o = !V(e) || e !== this._$AH && e !== N, o && (this._$AH = e);
|
1938
|
+
else {
|
1939
|
+
const c = e;
|
1940
|
+
let a, h;
|
1941
|
+
for (e = i[0], a = 0; a < i.length - 1; a++)
|
1942
|
+
h = R(this, c[r + a], s, a), h === N && (h = this._$AH[a]), o || (o = !V(h) || h !== this._$AH[a]), h === g ? e = g : e !== g && (e += (h != null ? h : "") + i[a + 1]), this._$AH[a] = h;
|
1943
|
+
}
|
1944
|
+
o && !n && this.j(e);
|
1945
|
+
}
|
1946
|
+
j(e) {
|
1947
|
+
e === g ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e != null ? e : "");
|
1948
|
+
}
|
1949
|
+
}
|
1950
|
+
class er extends oe {
|
1951
|
+
constructor() {
|
1952
|
+
super(...arguments), this.type = 3;
|
1953
|
+
}
|
1954
|
+
j(e) {
|
1955
|
+
this.element[this.name] = e === g ? void 0 : e;
|
1956
|
+
}
|
1957
|
+
}
|
1958
|
+
const tr = H ? H.emptyScript : "";
|
1959
|
+
class sr extends oe {
|
1960
|
+
constructor() {
|
1961
|
+
super(...arguments), this.type = 4;
|
1962
|
+
}
|
1963
|
+
j(e) {
|
1964
|
+
e && e !== g ? this.element.setAttribute(this.name, tr) : this.element.removeAttribute(this.name);
|
1965
|
+
}
|
1966
|
+
}
|
1967
|
+
class rr extends oe {
|
1968
|
+
constructor(e, s, r, n, i) {
|
1969
|
+
super(e, s, r, n, i), this.type = 5;
|
1970
|
+
}
|
1971
|
+
_$AI(e, s = this) {
|
1972
|
+
var r;
|
1973
|
+
if ((e = (r = R(this, e, s, 0)) !== null && r !== void 0 ? r : g) === N)
|
1974
|
+
return;
|
1975
|
+
const n = this._$AH, i = e === g && n !== g || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, o = e !== g && (n === g || i);
|
1976
|
+
i && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
1977
|
+
}
|
1978
|
+
handleEvent(e) {
|
1979
|
+
var s, r;
|
1980
|
+
typeof this._$AH == "function" ? this._$AH.call((r = (s = this.options) === null || s === void 0 ? void 0 : s.host) !== null && r !== void 0 ? r : this.element, e) : this._$AH.handleEvent(e);
|
1981
|
+
}
|
1982
|
+
}
|
1983
|
+
class nr {
|
1984
|
+
constructor(e, s, r) {
|
1985
|
+
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = s, this.options = r;
|
1986
|
+
}
|
1987
|
+
get _$AU() {
|
1988
|
+
return this._$AM._$AU;
|
1989
|
+
}
|
1990
|
+
_$AI(e) {
|
1991
|
+
R(this, e);
|
1992
|
+
}
|
1993
|
+
}
|
1994
|
+
const mt = se.litHtmlPolyfillSupport;
|
1995
|
+
mt == null || mt(B, J), ((we = se.litHtmlVersions) !== null && we !== void 0 ? we : se.litHtmlVersions = []).push("2.8.0");
|
1996
|
+
const ir = (t, e, s) => {
|
1997
|
+
var r, n;
|
1998
|
+
const i = (r = s == null ? void 0 : s.renderBefore) !== null && r !== void 0 ? r : e;
|
1999
|
+
let o = i._$litPart$;
|
2000
|
+
if (o === void 0) {
|
2001
|
+
const c = (n = s == null ? void 0 : s.renderBefore) !== null && n !== void 0 ? n : null;
|
2002
|
+
i._$litPart$ = o = new J(e.insertBefore(W(), c), c, void 0, s != null ? s : {});
|
2003
|
+
}
|
2004
|
+
return o._$AI(t), o;
|
2005
|
+
};
|
2006
|
+
/**
|
2007
|
+
* @license
|
2008
|
+
* Copyright 2017 Google LLC
|
2009
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
2010
|
+
*/
|
2011
|
+
var Ae, Ee;
|
2012
|
+
let z = class extends I {
|
2013
|
+
constructor() {
|
2014
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
2015
|
+
}
|
2016
|
+
createRenderRoot() {
|
2017
|
+
var t, e;
|
2018
|
+
const s = super.createRenderRoot();
|
2019
|
+
return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = s.firstChild), s;
|
2020
|
+
}
|
2021
|
+
update(t) {
|
2022
|
+
const e = this.render();
|
2023
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ir(e, this.renderRoot, this.renderOptions);
|
2024
|
+
}
|
2025
|
+
connectedCallback() {
|
2026
|
+
var t;
|
2027
|
+
super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
|
2028
|
+
}
|
2029
|
+
disconnectedCallback() {
|
2030
|
+
var t;
|
2031
|
+
super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
|
2032
|
+
}
|
2033
|
+
render() {
|
2034
|
+
return N;
|
2035
|
+
}
|
2036
|
+
};
|
2037
|
+
z.finalized = !0, z._$litElement$ = !0, (Ae = globalThis.litElementHydrateSupport) === null || Ae === void 0 || Ae.call(globalThis, { LitElement: z });
|
2038
|
+
const ft = globalThis.litElementPolyfillSupport;
|
2039
|
+
ft == null || ft({ LitElement: z });
|
2040
|
+
((Ee = globalThis.litElementVersions) !== null && Ee !== void 0 ? Ee : globalThis.litElementVersions = []).push("3.3.3");
|
2041
|
+
/**
|
2042
|
+
* @license
|
2043
|
+
* Copyright 2017 Google LLC
|
2044
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
2045
|
+
*/
|
2046
|
+
const or = (t, e) => e.kind === "method" && e.descriptor && !("value" in e.descriptor) ? yt(vt({}, e), { finisher(s) {
|
2047
|
+
s.createProperty(e.key, t);
|
2048
|
+
} }) : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: e.key, initializer() {
|
2049
|
+
typeof e.initializer == "function" && (this[e.key] = e.initializer.call(this));
|
2050
|
+
}, finisher(s) {
|
2051
|
+
s.createProperty(e.key, t);
|
2052
|
+
} }, ar = (t, e, s) => {
|
2053
|
+
e.constructor.createProperty(s, t);
|
2054
|
+
};
|
2055
|
+
function Ht(t) {
|
2056
|
+
return (e, s) => s !== void 0 ? ar(t, e, s) : or(t, e);
|
2057
|
+
}
|
2058
|
+
/**
|
2059
|
+
* @license
|
2060
|
+
* Copyright 2017 Google LLC
|
2061
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
2062
|
+
*/
|
2063
|
+
function We(t) {
|
2064
|
+
return Ht(yt(vt({}, t), { state: !0 }));
|
2065
|
+
}
|
2066
|
+
/**
|
2067
|
+
* @license
|
2068
|
+
* Copyright 2021 Google LLC
|
2069
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
2070
|
+
*/
|
2071
|
+
var Oe;
|
2072
|
+
((Oe = window.HTMLSlotElement) === null || Oe === void 0 ? void 0 : Oe.prototype.assignedElements) != null;
|
2073
|
+
/**
|
2074
|
+
* @license
|
2075
|
+
* Copyright 2017 Google LLC
|
2076
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
2077
|
+
*/
|
2078
|
+
const cr = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, lr = (t) => (...e) => ({ _$litDirective$: t, values: e });
|
2079
|
+
class hr {
|
2080
|
+
constructor(e) {
|
2081
|
+
}
|
2082
|
+
get _$AU() {
|
2083
|
+
return this._$AM._$AU;
|
2084
|
+
}
|
2085
|
+
_$AT(e, s, r) {
|
2086
|
+
this._$Ct = e, this._$AM = s, this._$Ci = r;
|
2087
|
+
}
|
2088
|
+
_$AS(e, s) {
|
2089
|
+
return this.update(e, s);
|
2090
|
+
}
|
2091
|
+
update(e, s) {
|
2092
|
+
return this.render(...s);
|
2093
|
+
}
|
2094
|
+
}
|
2095
|
+
/**
|
2096
|
+
* @license
|
2097
|
+
* Copyright 2018 Google LLC
|
2098
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
2099
|
+
*/
|
2100
|
+
const pr = lr(class extends hr {
|
2101
|
+
constructor(t) {
|
2102
|
+
var e;
|
2103
|
+
if (super(t), t.type !== cr.ATTRIBUTE || t.name !== "class" || ((e = t.strings) === null || e === void 0 ? void 0 : e.length) > 2)
|
2104
|
+
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
2105
|
+
}
|
2106
|
+
render(t) {
|
2107
|
+
return " " + Object.keys(t).filter((e) => t[e]).join(" ") + " ";
|
2108
|
+
}
|
2109
|
+
update(t, [e]) {
|
2110
|
+
var s, r;
|
2111
|
+
if (this.it === void 0) {
|
2112
|
+
this.it = /* @__PURE__ */ new Set(), t.strings !== void 0 && (this.nt = new Set(t.strings.join(" ").split(/\s/).filter((i) => i !== "")));
|
2113
|
+
for (const i in e)
|
2114
|
+
e[i] && !(!((s = this.nt) === null || s === void 0) && s.has(i)) && this.it.add(i);
|
2115
|
+
return this.render(e);
|
2116
|
+
}
|
2117
|
+
const n = t.element.classList;
|
2118
|
+
this.it.forEach((i) => {
|
2119
|
+
i in e || (n.remove(i), this.it.delete(i));
|
2120
|
+
});
|
2121
|
+
for (const i in e) {
|
2122
|
+
const o = !!e[i];
|
2123
|
+
o === this.it.has(i) || !((r = this.nt) === null || r === void 0) && r.has(i) || (o ? (n.add(i), this.it.add(i)) : (n.remove(i), this.it.delete(i)));
|
2124
|
+
}
|
2125
|
+
return N;
|
2126
|
+
}
|
2127
|
+
});
|
2128
|
+
var dr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, ae = (t, e, s, r) => {
|
2129
|
+
for (var n = r > 1 ? void 0 : r ? ur(e, s) : e, i = t.length - 1, o; i >= 0; i--)
|
2130
|
+
(o = t[i]) && (n = (r ? o(e, s, n) : o(n)) || n);
|
2131
|
+
return r && n && dr(e, s, n), n;
|
2132
|
+
};
|
2133
|
+
class T extends z {
|
2134
|
+
constructor() {
|
2135
|
+
super(...arguments), this.active = !1, this.loaded = !1;
|
2136
|
+
}
|
2137
|
+
connectedCallback() {
|
2138
|
+
return Z(this, null, function* () {
|
2139
|
+
Bt(T.prototype, this, "connectedCallback").call(this), this.icon = yield this._renderSymbol(this.symbol), this.loaded = !0;
|
2140
|
+
});
|
2141
|
+
}
|
2142
|
+
_toggleActive() {
|
2143
|
+
this.active = !this.active;
|
2144
|
+
}
|
2145
|
+
_renderSymbol(e) {
|
2146
|
+
return Z(this, null, function* () {
|
2147
|
+
const s = (r) => Z(this, null, function* () {
|
2148
|
+
return yield import("./index-9688347a-02584d39.js").then((n) => n[r]);
|
2149
|
+
});
|
2150
|
+
if (e) {
|
2151
|
+
const { type: r, content: n } = e;
|
2152
|
+
switch (r) {
|
2153
|
+
case "Telia": {
|
2154
|
+
const i = yield s(n);
|
2155
|
+
return i ? K`<telia-icon
|
2156
|
+
class="trigger-icon"
|
2157
|
+
svg=${i.svg}
|
2158
|
+
size="lg"
|
2159
|
+
></telia-icon>` : g;
|
2160
|
+
}
|
2161
|
+
case "FontAwesome":
|
2162
|
+
return K`<i class="trigger-fa-icon fa fa-${n}"></i>`;
|
2163
|
+
case "Uri":
|
2164
|
+
return K`<i
|
2165
|
+
class="trigger-custom-icon"
|
2166
|
+
style="background: url(${n}) no-repeat center center;background-size: contain;"
|
2167
|
+
></i>`;
|
2168
|
+
default:
|
2169
|
+
return g;
|
2170
|
+
}
|
2171
|
+
}
|
2172
|
+
});
|
2173
|
+
}
|
2174
|
+
render() {
|
2175
|
+
return K`<button
|
2176
|
+
class=${pr({
|
2177
|
+
trigger: !0,
|
2178
|
+
active: this.active,
|
2179
|
+
rendered: this.loaded
|
2180
|
+
})}
|
2181
|
+
@click=${this._toggleActive}
|
2182
|
+
>
|
2183
|
+
${this.icon}
|
2184
|
+
<span class="trigger-close">
|
2185
|
+
<svg
|
2186
|
+
width="18"
|
2187
|
+
height="9"
|
2188
|
+
viewBox="0 0 18 9"
|
2189
|
+
fill="none"
|
2190
|
+
xmlns="http://www.w3.org/2000/svg"
|
2191
|
+
>
|
2192
|
+
<path
|
2193
|
+
d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
|
2194
|
+
fill="white"
|
2195
|
+
/>
|
2196
|
+
</svg>
|
2197
|
+
</span>
|
2198
|
+
<span class="trigger-loader">
|
2199
|
+
<svg viewBox="25 25 50 50">
|
2200
|
+
<circle
|
2201
|
+
cx="50"
|
2202
|
+
cy="50"
|
2203
|
+
r="20"
|
2204
|
+
fill="none"
|
2205
|
+
stroke="#000"
|
2206
|
+
stroke-width="2"
|
2207
|
+
stroke-miterlimit="10"
|
2208
|
+
/>
|
2209
|
+
</svg>
|
2210
|
+
</span>
|
2211
|
+
</button>`;
|
2212
|
+
}
|
2213
|
+
}
|
2214
|
+
T.styles = [
|
2215
|
+
Fs`
|
2216
|
+
:host {
|
2217
|
+
--voca-rem-multiplier: 0.625;
|
2218
|
+
display: block;
|
2219
|
+
box-sizing: border-box;
|
2220
|
+
}
|
2221
|
+
|
2222
|
+
.trigger {
|
2223
|
+
position: fixed;
|
2224
|
+
transform: scale(0);
|
2225
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
2226
|
+
bottom: 20px;
|
2227
|
+
right: 20px;
|
2228
|
+
z-index: 5;
|
2229
|
+
display: flex;
|
2230
|
+
align-items: center;
|
2231
|
+
justify-content: center;
|
2232
|
+
border: none;
|
2233
|
+
line-height: 55px;
|
2234
|
+
height: 55px;
|
2235
|
+
width: 55px;
|
2236
|
+
border-radius: 55px;
|
2237
|
+
cursor: pointer;
|
2238
|
+
background-color: #990ae3;
|
2239
|
+
font-family: Lato;
|
2240
|
+
text-decoration: none;
|
2241
|
+
border: 3px dashed transparent;
|
2242
|
+
box-sizing: border-box;
|
2243
|
+
transition: transform 200ms ease-out;
|
2244
|
+
}
|
2245
|
+
.trigger:hover {
|
2246
|
+
transform: scale(1.1) !important;
|
2247
|
+
}
|
2248
|
+
.trigger.rendered {
|
2249
|
+
transform: scale(1);
|
2250
|
+
}
|
2251
|
+
.trigger.active .trigger-icon {
|
2252
|
+
opacity: 0;
|
2253
|
+
transform: rotate(-180deg) scale(0);
|
2254
|
+
}
|
2255
|
+
.trigger.active .trigger-close {
|
2256
|
+
opacity: 1;
|
2257
|
+
transform: rotate(0deg) scale(1);
|
2258
|
+
}
|
2259
|
+
|
2260
|
+
.trigger-icon {
|
2261
|
+
display: inline-block;
|
2262
|
+
line-height: inherit;
|
2263
|
+
text-align: center;
|
2264
|
+
opacity: 1;
|
2265
|
+
transform: rotate(0deg) scale(1);
|
2266
|
+
transition:
|
2267
|
+
opacity 200ms ease-out,
|
2268
|
+
transform 200ms ease-out;
|
2269
|
+
color: #ffffff;
|
2270
|
+
}
|
2271
|
+
.trigger-close {
|
2272
|
+
opacity: 0;
|
2273
|
+
transition: transform 200ms ease-out;
|
2274
|
+
transform: rotate(180deg) scale(0);
|
2275
|
+
position: absolute;
|
2276
|
+
top: 0;
|
2277
|
+
bottom: 0;
|
2278
|
+
left: 0;
|
2279
|
+
right: 0;
|
2280
|
+
display: flex;
|
2281
|
+
justify-content: center;
|
2282
|
+
align-items: center;
|
2283
|
+
fill: #ffffff;
|
2284
|
+
}
|
2285
|
+
`
|
2286
|
+
];
|
2287
|
+
ae([
|
2288
|
+
Ht({ attribute: !1 })
|
2289
|
+
], T.prototype, "symbol", 2);
|
2290
|
+
ae([
|
2291
|
+
We()
|
2292
|
+
], T.prototype, "active", 2);
|
2293
|
+
ae([
|
2294
|
+
We()
|
2295
|
+
], T.prototype, "loaded", 2);
|
2296
|
+
ae([
|
2297
|
+
We()
|
2298
|
+
], T.prototype, "icon", 2);
|
2299
|
+
const mr = "children", fr = "properties", gr = (t, e, s, r, n) => t.getAsync("componentResolver").then((i) => (i.registerComponent(e, s), gs(t, e, r || (() => {
|
2300
|
+
}), e, n))), vr = (t) => gr(
|
2301
|
+
t,
|
2302
|
+
"area",
|
2303
|
+
import("./area-fed05d4d.js"),
|
2304
|
+
(e) => {
|
2305
|
+
}
|
2306
|
+
);
|
2307
|
+
export {
|
2308
|
+
vr as A,
|
2309
|
+
mr as c,
|
2310
|
+
fr as u
|
2311
|
+
};
|
2312
|
+
//# sourceMappingURL=index-f4d7773a.js.map
|