@telia-ace/widget-runtime-flamingo 1.1.77 → 1.1.79-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{index-4ccada9e.js → index-c6bf6ec8.js} +16 -16
- package/{index-4b404cf9.mjs → index-d0e2f044.mjs} +185 -185
- package/index.js +1 -1
- package/index.mjs +4 -4
- package/package.json +1 -1
- package/{render-9aea8df4.js → render-4cd1b681.js} +7 -7
- package/{render-30807477.mjs → render-7eadbe84.mjs} +5 -5
|
@@ -44,7 +44,7 @@ const Es = (i, t, e, s) => {
|
|
|
44
44
|
throw n;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
function
|
|
47
|
+
function be(i, t) {
|
|
48
48
|
return typeof i > "u" ? t : i;
|
|
49
49
|
}
|
|
50
50
|
let As = class {
|
|
@@ -59,8 +59,8 @@ let As = class {
|
|
|
59
59
|
defaultArgs: void 0,
|
|
60
60
|
handlerResolver: e
|
|
61
61
|
} : n = {
|
|
62
|
-
scope:
|
|
63
|
-
stage:
|
|
62
|
+
scope: be(e.scope, ot.Widget),
|
|
63
|
+
stage: be(e.stage, R.Post),
|
|
64
64
|
defaultArgs: e.defaultArgs,
|
|
65
65
|
handlerResolver: s
|
|
66
66
|
};
|
|
@@ -74,11 +74,11 @@ let As = class {
|
|
|
74
74
|
return this.part;
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
const
|
|
77
|
+
const Fe = (i) => {
|
|
78
78
|
const t = new As({});
|
|
79
79
|
return i(t), t.get();
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
Fe((i) => {
|
|
82
82
|
i.createCommand(
|
|
83
83
|
"types.register",
|
|
84
84
|
{ scope: ot.Implementation, stage: R.Pre },
|
|
@@ -161,7 +161,7 @@ function xs(i) {
|
|
|
161
161
|
const t = {};
|
|
162
162
|
return [].filter.call(i.attributes, (e) => /^data-/.test(e.name)).map((e) => e.name).forEach((e) => t[e.substr(5)] = i.getAttribute(e)), t;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const we = (i, t, e) => {
|
|
165
165
|
const s = xs(i);
|
|
166
166
|
e({
|
|
167
167
|
sourceDOMElement: i,
|
|
@@ -169,30 +169,30 @@ const be = (i, t, e) => {
|
|
|
169
169
|
data: s
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
|
-
function
|
|
172
|
+
function $e(i, t, e) {
|
|
173
173
|
i.forEach((s) => {
|
|
174
|
-
s.dataset.attached !== "true" && (t === "load" ?
|
|
175
|
-
n.preventDefault(),
|
|
174
|
+
s.dataset.attached !== "true" && (t === "load" ? we(s, t, e) : s.addEventListener(t, (n) => {
|
|
175
|
+
n.preventDefault(), we(s, t, e);
|
|
176
176
|
}), s.dataset.monitored = "true");
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Os(i, t, e) {
|
|
180
180
|
const s = i.container.get("bootstrapping.monitor");
|
|
181
181
|
s && s.events.subscribe("bootstrap:trigger-elements-updated", (r, o) => {
|
|
182
|
-
|
|
182
|
+
$e(
|
|
183
183
|
o.triggerElements,
|
|
184
184
|
t,
|
|
185
185
|
e
|
|
186
186
|
);
|
|
187
187
|
});
|
|
188
188
|
const n = i.container.get("triggerElements");
|
|
189
|
-
n &&
|
|
189
|
+
n && $e(
|
|
190
190
|
n,
|
|
191
191
|
t,
|
|
192
192
|
e
|
|
193
193
|
);
|
|
194
194
|
}
|
|
195
|
-
const
|
|
195
|
+
const Cs = Fe((i) => {
|
|
196
196
|
i.createCommand(
|
|
197
197
|
"ready",
|
|
198
198
|
{ scope: ot.Implementation, stage: R.Pre },
|
|
@@ -259,7 +259,7 @@ let Ps = class {
|
|
|
259
259
|
return oe(this.container, this.key, this.value), r;
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
}, Ns = class
|
|
262
|
+
}, Ns = class Ke {
|
|
263
263
|
/**
|
|
264
264
|
* Creates a new instance of `Container`.
|
|
265
265
|
* @param owner The object owning this inctance.
|
|
@@ -385,10 +385,10 @@ let Ps = class {
|
|
|
385
385
|
return Promise.all(t.map((s) => this.getAsync(s).then((n) => e[s] = n))).then(() => e);
|
|
386
386
|
}
|
|
387
387
|
createChild(t, e) {
|
|
388
|
-
const s = new
|
|
388
|
+
const s = new Ke(t, e, this);
|
|
389
389
|
return v(this).children.push(s), s;
|
|
390
390
|
}
|
|
391
|
-
},
|
|
391
|
+
}, _e = class {
|
|
392
392
|
/**
|
|
393
393
|
*
|
|
394
394
|
* @param type Type of event.
|
|
@@ -406,34 +406,34 @@ let Ps = class {
|
|
|
406
406
|
this.cancelable && (this.defaultPrevented = !0);
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
),
|
|
409
|
+
const C = Y(), Ee = (i, t) => [].concat(
|
|
410
|
+
C(i).listenerLookup.get(t.toLowerCase()) || [],
|
|
411
|
+
C(i).listenerLookup.get("*") || []
|
|
412
|
+
), Ae = (i, t, e, s) => {
|
|
413
413
|
let n, r;
|
|
414
|
-
return t instanceof
|
|
414
|
+
return t instanceof _e ? (n = t, r = t.type) : (n = new _e(t, i.target, !!e.cancelable, !!e.bubbles), r = t), { event: n, type: r, async: s };
|
|
415
415
|
};
|
|
416
|
-
let Ms = class
|
|
416
|
+
let Ms = class Ge {
|
|
417
417
|
/**
|
|
418
418
|
* Creates a new Event Manager instance.
|
|
419
419
|
* @param target The target of events dispatched from this Event Manager instance.
|
|
420
420
|
* @param parent Parent Event Manager instance.
|
|
421
421
|
*/
|
|
422
422
|
constructor(t, e) {
|
|
423
|
-
this.target = t, this.parent = e,
|
|
423
|
+
this.target = t, this.parent = e, C(this).listenerLookup = /* @__PURE__ */ new Map(), C(this).children = [];
|
|
424
424
|
}
|
|
425
425
|
/**
|
|
426
426
|
* Clears registered event listeners in this `EventManager` as well as in any children.
|
|
427
427
|
*/
|
|
428
428
|
clear() {
|
|
429
|
-
|
|
429
|
+
C(this).listenerLookup.clear(), C(this).children.forEach((t) => t.clear());
|
|
430
430
|
}
|
|
431
431
|
/**
|
|
432
432
|
* Detaches this `EventManager` instance from its parent, allowing it to be garbage-collected.
|
|
433
433
|
*/
|
|
434
434
|
detach() {
|
|
435
435
|
if (this.parent) {
|
|
436
|
-
const t =
|
|
436
|
+
const t = C(this.parent).children, e = t.indexOf(this);
|
|
437
437
|
e > -1 && t.splice(e, 1);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
@@ -443,7 +443,7 @@ let Ms = class Ke {
|
|
|
443
443
|
* @param listener Listener for the event.
|
|
444
444
|
*/
|
|
445
445
|
subscribe(t, e, s) {
|
|
446
|
-
const n =
|
|
446
|
+
const n = C(this).listenerLookup, r = t.toLowerCase();
|
|
447
447
|
return n.has(r) || n.set(r, []), n.get(r).push(e), () => this.unsubscribe(t, e);
|
|
448
448
|
}
|
|
449
449
|
/**
|
|
@@ -460,7 +460,7 @@ let Ms = class Ke {
|
|
|
460
460
|
* @param listener Event listener to remove.
|
|
461
461
|
*/
|
|
462
462
|
unsubscribe(t, e) {
|
|
463
|
-
const s =
|
|
463
|
+
const s = C(this).listenerLookup.get(t.toLowerCase());
|
|
464
464
|
if (s) {
|
|
465
465
|
const n = s.indexOf(e);
|
|
466
466
|
n > -1 && s.splice(n, 1);
|
|
@@ -473,7 +473,7 @@ let Ms = class Ke {
|
|
|
473
473
|
* @param options Optional event options used if first parameter is an event type.
|
|
474
474
|
*/
|
|
475
475
|
dispatchAsync(t, e, s = {}) {
|
|
476
|
-
const { event: n, type: r } =
|
|
476
|
+
const { event: n, type: r } = Ae(this, t, s, !0), o = Ee(this, r);
|
|
477
477
|
let a = 0;
|
|
478
478
|
const h = o.length;
|
|
479
479
|
let c = Promise.resolve();
|
|
@@ -490,7 +490,7 @@ let Ms = class Ke {
|
|
|
490
490
|
* @param options Optional event options used if first parameter is an event type.
|
|
491
491
|
*/
|
|
492
492
|
dispatch(t, e, s = {}) {
|
|
493
|
-
const { event: n, type: r } =
|
|
493
|
+
const { event: n, type: r } = Ae(this, t, s, !1), o = Ee(this, r);
|
|
494
494
|
let a = 0;
|
|
495
495
|
const h = o.length;
|
|
496
496
|
let c = !1;
|
|
@@ -505,8 +505,8 @@ let Ms = class Ke {
|
|
|
505
505
|
* Creates a child instance to the current Event manager.
|
|
506
506
|
*/
|
|
507
507
|
createChild(t) {
|
|
508
|
-
const e = new
|
|
509
|
-
return
|
|
508
|
+
const e = new Ge(t, this);
|
|
509
|
+
return C(this).children.push(e), e;
|
|
510
510
|
}
|
|
511
511
|
};
|
|
512
512
|
const ft = (i, t, e) => {
|
|
@@ -614,20 +614,20 @@ const F = (i, t) => {
|
|
|
614
614
|
return t(i);
|
|
615
615
|
const e = typeof t == "string" ? js(t) : t;
|
|
616
616
|
return !(!F(i.tenant || "", e.tenant || "") || !F(i.name, e.implementation || ""));
|
|
617
|
-
},
|
|
617
|
+
}, Ye = (i) => (t) => Ls(t, i), Ts = (i) => (t) => Is(t, i), k = (i) => i instanceof Array && i.length === 1 ? i[0] : i, Rs = (i) => {
|
|
618
618
|
const t = {}, e = i.split(":");
|
|
619
619
|
return e.length === 1 ? t.widget = k(e[0].split(",")) : e.length === 2 ? (t.implementation = k(e[0].split(",")), t.widget = k(e[1].split(","))) : (t.tenant = k(e[0].split(",")), t.implementation = k(e[1].split(",")), t.widget = k(e[2].split(","))), t;
|
|
620
620
|
}, js = (i) => {
|
|
621
621
|
const t = {}, e = i.split(":");
|
|
622
622
|
return e.length === 1 ? t.implementation = k(e[0].split(",")) : (t.tenant = k(e[0].split(",")), t.implementation = k(e[1].split(","))), t;
|
|
623
|
-
},
|
|
623
|
+
}, Ot = Y(), xe = (i, t, e) => i.filter((s) => s.stage === t && Ye(s.selector)(e));
|
|
624
624
|
function Us(i) {
|
|
625
625
|
const t = i.container.get("$environment");
|
|
626
|
-
let e =
|
|
627
|
-
e && (e = e.filter((s) => s[0] !== i),
|
|
626
|
+
let e = Ot(t).configurationCache;
|
|
627
|
+
e && (e = e.filter((s) => s[0] !== i), Ot(t).configurationCache = e);
|
|
628
628
|
}
|
|
629
|
-
var
|
|
630
|
-
const
|
|
629
|
+
var Ct = /* @__PURE__ */ ((i) => (i.Implementation = "implementation", i.Widget = "widget", i))(Ct || {}), N = /* @__PURE__ */ ((i) => (i.Pre = "pre", i.Post = "post", i))(N || {});
|
|
630
|
+
const Qe = (i, t, e) => (Object.keys(t).forEach((s) => {
|
|
631
631
|
const n = t[s];
|
|
632
632
|
if (typeof n == "function") {
|
|
633
633
|
const r = n();
|
|
@@ -640,7 +640,7 @@ const Ye = (i, t, e) => (Object.keys(t).forEach((s) => {
|
|
|
640
640
|
return e(a, ...o), i;
|
|
641
641
|
};
|
|
642
642
|
} else
|
|
643
|
-
i[s] =
|
|
643
|
+
i[s] = Qe(
|
|
644
644
|
{},
|
|
645
645
|
n,
|
|
646
646
|
e
|
|
@@ -652,8 +652,8 @@ const Ye = (i, t, e) => (Object.keys(t).forEach((s) => {
|
|
|
652
652
|
case "widget":
|
|
653
653
|
return i;
|
|
654
654
|
}
|
|
655
|
-
},
|
|
656
|
-
|
|
655
|
+
}, Oe = (i, t, e, s) => (s.forEach((n) => {
|
|
656
|
+
Qe(
|
|
657
657
|
i,
|
|
658
658
|
n,
|
|
659
659
|
(r, ...o) => {
|
|
@@ -662,8 +662,8 @@ const Ye = (i, t, e) => (Object.keys(t).forEach((s) => {
|
|
|
662
662
|
stage: r.stage,
|
|
663
663
|
handler: (h) => {
|
|
664
664
|
const c = Vs(h, r.scope), l = { container: c.container, events: c.events }, d = r.handlerResolver, u = d(l);
|
|
665
|
-
let p =
|
|
666
|
-
return p || (p =
|
|
665
|
+
let p = Ot(e.environment).configurationCache;
|
|
666
|
+
return p || (p = Ot(e.environment).configurationCache = []), p.find((g) => g.indexOf(c) > -1 && g.indexOf(d) > -1) ? Promise.resolve() : (p.push([c, d]), Promise.resolve(u(...o)));
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
e.instructions.push(a);
|
|
@@ -672,14 +672,14 @@ const Ye = (i, t, e) => (Object.keys(t).forEach((s) => {
|
|
|
672
672
|
}), i);
|
|
673
673
|
function zs(i, t) {
|
|
674
674
|
function e(s) {
|
|
675
|
-
return
|
|
675
|
+
return Oe(
|
|
676
676
|
{},
|
|
677
677
|
s,
|
|
678
678
|
i,
|
|
679
679
|
t
|
|
680
680
|
);
|
|
681
681
|
}
|
|
682
|
-
return
|
|
682
|
+
return Oe(
|
|
683
683
|
e,
|
|
684
684
|
"*",
|
|
685
685
|
i,
|
|
@@ -720,12 +720,12 @@ class Ws {
|
|
|
720
720
|
createCommand(t, e, s) {
|
|
721
721
|
let n;
|
|
722
722
|
typeof e == "function" ? n = {
|
|
723
|
-
scope:
|
|
723
|
+
scope: Ct.Widget,
|
|
724
724
|
stage: N.Post,
|
|
725
725
|
defaultArgs: void 0,
|
|
726
726
|
handlerResolver: e
|
|
727
727
|
} : n = {
|
|
728
|
-
scope: Ce(e.scope,
|
|
728
|
+
scope: Ce(e.scope, Ct.Widget),
|
|
729
729
|
stage: Ce(e.stage, N.Post),
|
|
730
730
|
defaultArgs: e.defaultArgs,
|
|
731
731
|
handlerResolver: s
|
|
@@ -746,7 +746,7 @@ const ae = (i) => {
|
|
|
746
746
|
}, Bs = ae((i) => {
|
|
747
747
|
i.createCommand(
|
|
748
748
|
"types.register",
|
|
749
|
-
{ scope:
|
|
749
|
+
{ scope: Ct.Implementation, stage: N.Pre },
|
|
750
750
|
(t) => (e, s) => {
|
|
751
751
|
t.container.get("$types")[e] = s;
|
|
752
752
|
}
|
|
@@ -858,8 +858,8 @@ function Ks(i) {
|
|
|
858
858
|
});
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
const
|
|
862
|
-
var
|
|
861
|
+
const Pe = (i) => typeof i < "u";
|
|
862
|
+
var Ze = /* @__PURE__ */ ((i) => (i.Activating = "activating", i.Loading = "loading", i.Activated = "activated", i.Deactivating = "deactivating", i.Deactivated = "deactivated", i))(Ze || {});
|
|
863
863
|
const X = (i, t) => {
|
|
864
864
|
i.events.dispatch("widget:state-change", { state: t }, { bubbles: !0 }), i.state = t, i.events.dispatch("widget:state-changed", {}, { bubbles: !0 });
|
|
865
865
|
}, A = Y(), Gs = (i) => {
|
|
@@ -876,7 +876,7 @@ let Ys = class {
|
|
|
876
876
|
constructor(t, e, s) {
|
|
877
877
|
this.state = "deactivated", this.name = t, this.implementation = e, this.container = e.container.createChild(this, t), this.events = e.events.createChild(this), A(this).subscriptions = [], s && e.configure((n) => {
|
|
878
878
|
const r = n(t);
|
|
879
|
-
|
|
879
|
+
Pe(s.type) && r.type(s.type), Pe(s.settings) && r.settings(s.settings), s.plugins && Object.keys(s.plugins).forEach((o) => {
|
|
880
880
|
var a;
|
|
881
881
|
const h = (a = s.plugins) == null ? void 0 : a[o];
|
|
882
882
|
r.plugin(o, h);
|
|
@@ -900,10 +900,10 @@ let Ys = class {
|
|
|
900
900
|
"loading"
|
|
901
901
|
/* Loading */
|
|
902
902
|
);
|
|
903
|
-
const e = this.implementation.instructions, s =
|
|
903
|
+
const e = this.implementation.instructions, s = xe(e, N.Pre, this);
|
|
904
904
|
return Promise.all(s.map((n) => n.handler(this))).then(() => {
|
|
905
905
|
Gs(this);
|
|
906
|
-
const n =
|
|
906
|
+
const n = xe(e, N.Post, this);
|
|
907
907
|
return Promise.all(n.map((r) => r.handler(this))).then(() => {
|
|
908
908
|
t && this.container.get("$controller").initialize();
|
|
909
909
|
});
|
|
@@ -975,7 +975,7 @@ class Qs {
|
|
|
975
975
|
});
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
const
|
|
978
|
+
const Se = Y();
|
|
979
979
|
class Zs {
|
|
980
980
|
/**
|
|
981
981
|
* Creates a new Implementation instance.
|
|
@@ -984,7 +984,7 @@ class Zs {
|
|
|
984
984
|
* @param configurationApiExtensions Optional configuration API extensions.
|
|
985
985
|
*/
|
|
986
986
|
constructor(t, e, s = []) {
|
|
987
|
-
this.instructions = [], this.widgets = /* @__PURE__ */ new Map(), this.name = t.name, this.tenant = t.tenant, this.environment = e, this.container = e.container.createChild(this, this.name), this.events = e.events.createChild(this), this.container.register("$types", {}),
|
|
987
|
+
this.instructions = [], this.widgets = /* @__PURE__ */ new Map(), this.name = t.name, this.tenant = t.tenant, this.environment = e, this.container = e.container.createChild(this, this.name), this.events = e.events.createChild(this), this.container.register("$types", {}), Se(this).configurationApiExtensions = s;
|
|
988
988
|
}
|
|
989
989
|
/**
|
|
990
990
|
* Loads all widgets in the implementation.
|
|
@@ -998,7 +998,7 @@ class Zs {
|
|
|
998
998
|
* @param configFn Callback function for configuration.
|
|
999
999
|
*/
|
|
1000
1000
|
configure(t) {
|
|
1001
|
-
return Js(t, this,
|
|
1001
|
+
return Js(t, this, Se(this).configurationApiExtensions), this.events.dispatch(
|
|
1002
1002
|
"implementation:configured",
|
|
1003
1003
|
{ implementation: this },
|
|
1004
1004
|
{ bubbles: !0 }
|
|
@@ -1022,13 +1022,13 @@ function Xs(i, t, e) {
|
|
|
1022
1022
|
s.createWidget(n, o);
|
|
1023
1023
|
}), s;
|
|
1024
1024
|
}
|
|
1025
|
-
let
|
|
1025
|
+
let ke = class Xe {
|
|
1026
1026
|
constructor(t, e) {
|
|
1027
1027
|
this.selectorFactory = e, typeof t == "function" ? this.resolver = t : this.resolver = () => t;
|
|
1028
1028
|
}
|
|
1029
1029
|
append(t) {
|
|
1030
1030
|
const e = typeof t == "function" ? t : () => t;
|
|
1031
|
-
return new
|
|
1031
|
+
return new Xe(
|
|
1032
1032
|
() => this.all().concat(e()),
|
|
1033
1033
|
this.selectorFactory
|
|
1034
1034
|
);
|
|
@@ -1045,17 +1045,17 @@ let Se = class Ze {
|
|
|
1045
1045
|
return e[0];
|
|
1046
1046
|
}
|
|
1047
1047
|
};
|
|
1048
|
-
const ce = "#____version____#", qt = Y(), ti = (i) => i.tenant ? `${i.name}:${i.tenant}` : i.name,
|
|
1048
|
+
const ce = "#____version____#", qt = Y(), ti = (i) => i.tenant ? `${i.name}:${i.tenant}` : i.name, ts = class {
|
|
1049
1049
|
constructor(t, e = [], s = {}) {
|
|
1050
|
-
this.widgets = new
|
|
1050
|
+
this.widgets = new ke(
|
|
1051
1051
|
() => {
|
|
1052
1052
|
let n = [];
|
|
1053
1053
|
return this.implementations.all().forEach((r) => {
|
|
1054
1054
|
n = n.concat(Array.from(r.widgets.values()));
|
|
1055
1055
|
}), n;
|
|
1056
1056
|
},
|
|
1057
|
-
|
|
1058
|
-
), this.implementations = new
|
|
1057
|
+
Ye
|
|
1058
|
+
), this.implementations = new ke([], Ts), this.name = t, this.container = new Ns(this, t), this.events = new Ms(this), this.container.register("$version", ce), this.container.register("$environment", this), this.container.register("$environmentOptions", s), qt(this).configurationApiExtensions = e;
|
|
1059
1059
|
}
|
|
1060
1060
|
/**
|
|
1061
1061
|
* Creates an implementation based on the provided configuration.
|
|
@@ -1090,15 +1090,15 @@ const ce = "#____version____#", qt = Y(), ti = (i) => i.tenant ? `${i.name}:${i.
|
|
|
1090
1090
|
* @param configuration Environment configuration.
|
|
1091
1091
|
*/
|
|
1092
1092
|
static create(t = {}) {
|
|
1093
|
-
return new
|
|
1093
|
+
return new ts(
|
|
1094
1094
|
t.name || "",
|
|
1095
1095
|
t.configurationApiExtensions,
|
|
1096
1096
|
t.options
|
|
1097
1097
|
);
|
|
1098
1098
|
}
|
|
1099
1099
|
};
|
|
1100
|
-
let
|
|
1101
|
-
|
|
1100
|
+
let es = ts;
|
|
1101
|
+
es.version = ce;
|
|
1102
1102
|
const Dt = (i, t, ...e) => typeof t == "string" ? i(`[humany] ${t}`, ...e) : i(t, ...e), st = class {
|
|
1103
1103
|
constructor() {
|
|
1104
1104
|
this.keys = [], this.log = (t, ...e) => this.lookup(t, () => st.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => st.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => st.error(...e)), this.info = (t, ...e) => this.lookup(t, () => st.info(...e));
|
|
@@ -1112,16 +1112,16 @@ b.log = (...i) => Dt(console.log, ...i);
|
|
|
1112
1112
|
b.warn = (...i) => Dt(console.warn, ...i);
|
|
1113
1113
|
b.error = (...i) => Dt(console.error, ...i);
|
|
1114
1114
|
b.info = (...i) => Dt(console.info, ...i);
|
|
1115
|
-
const
|
|
1115
|
+
const ss = (i) => {
|
|
1116
1116
|
let t = {}, e, s;
|
|
1117
1117
|
if (typeof i != "object" || i === null)
|
|
1118
1118
|
return i;
|
|
1119
1119
|
t = Array.isArray(i) ? [] : {};
|
|
1120
1120
|
for (s in i)
|
|
1121
|
-
e = i[s], t[s] = typeof e == "object" && e !== null ?
|
|
1121
|
+
e = i[s], t[s] = typeof e == "object" && e !== null ? ss(e) : e;
|
|
1122
1122
|
return t;
|
|
1123
1123
|
};
|
|
1124
|
-
function
|
|
1124
|
+
function Ne(i) {
|
|
1125
1125
|
let t = 0;
|
|
1126
1126
|
if (i.length === 0)
|
|
1127
1127
|
return t.toString();
|
|
@@ -1245,7 +1245,7 @@ class ni {
|
|
|
1245
1245
|
);
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
|
-
const
|
|
1248
|
+
const is = (i) => {
|
|
1249
1249
|
const t = [];
|
|
1250
1250
|
return [
|
|
1251
1251
|
(e, s) => {
|
|
@@ -1281,7 +1281,7 @@ let Q = class {
|
|
|
1281
1281
|
new Q(t).withId(e.id),
|
|
1282
1282
|
s
|
|
1283
1283
|
);
|
|
1284
|
-
const [n, r] =
|
|
1284
|
+
const [n, r] = is(
|
|
1285
1285
|
this.platform.events
|
|
1286
1286
|
);
|
|
1287
1287
|
this.subscribe = n, this.unsubscribe = r;
|
|
@@ -1550,22 +1550,22 @@ let se = class {
|
|
|
1550
1550
|
}), delete t.parent;
|
|
1551
1551
|
}
|
|
1552
1552
|
};
|
|
1553
|
-
const
|
|
1553
|
+
const ns = (i, t, e) => {
|
|
1554
1554
|
for (let s = 0, n = i.length; s < n && e(i[s]) !== !0; s++) {
|
|
1555
1555
|
const r = t[i[s].id] || "default", o = i[s].getChildren(r);
|
|
1556
|
-
|
|
1556
|
+
ns(o, t, e);
|
|
1557
1557
|
}
|
|
1558
1558
|
}, It = (i, t, e) => {
|
|
1559
1559
|
if (e(i) !== !0) {
|
|
1560
1560
|
const s = t[i.id] || "default", n = i.children[s];
|
|
1561
|
-
|
|
1561
|
+
ns(n, t, e);
|
|
1562
1562
|
}
|
|
1563
1563
|
}, _t = (i, t) => {
|
|
1564
1564
|
const e = [];
|
|
1565
1565
|
return It(i, t, (s) => {
|
|
1566
1566
|
e.push(s);
|
|
1567
1567
|
}), e;
|
|
1568
|
-
},
|
|
1568
|
+
}, rs = (i, t, e) => {
|
|
1569
1569
|
let s;
|
|
1570
1570
|
return It(i, t, (n) => {
|
|
1571
1571
|
if (e(n))
|
|
@@ -1599,7 +1599,7 @@ let ai = class {
|
|
|
1599
1599
|
}), e;
|
|
1600
1600
|
}
|
|
1601
1601
|
get(t) {
|
|
1602
|
-
return
|
|
1602
|
+
return rs(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);
|
|
1603
1603
|
}
|
|
1604
1604
|
};
|
|
1605
1605
|
class ci {
|
|
@@ -1636,12 +1636,12 @@ const hi = (i) => {
|
|
|
1636
1636
|
e.map((l, d) => [l, s[d]])
|
|
1637
1637
|
), c = (l, d) => {
|
|
1638
1638
|
var u;
|
|
1639
|
-
const p = a.get(l) || {}, g = d.context && !p.context, w = d.properties && !p.properties,
|
|
1639
|
+
const p = a.get(l) || {}, g = d.context && !p.context, w = d.properties && !p.properties, O = d.layout && !p.layout;
|
|
1640
1640
|
a.set(l, {
|
|
1641
1641
|
context: p.context || g,
|
|
1642
1642
|
properties: p.properties || w,
|
|
1643
|
-
layout: p.layout ||
|
|
1644
|
-
}), w && (l.attributes.properties = {}),
|
|
1643
|
+
layout: p.layout || O
|
|
1644
|
+
}), w && (l.attributes.properties = {}), O && (l.attributes.layout = {}), g && (l.attributes.context = S(
|
|
1645
1645
|
{},
|
|
1646
1646
|
(u = l.parent) == null ? void 0 : u.attributes.context
|
|
1647
1647
|
));
|
|
@@ -1650,7 +1650,7 @@ const hi = (i) => {
|
|
|
1650
1650
|
const [E, zt] = _;
|
|
1651
1651
|
di(zt.breakpoints, i.breakpoints) && (w && (typeof E.properties == "function" ? mt.push(
|
|
1652
1652
|
E.properties
|
|
1653
|
-
) : S(l.attributes.properties, E.properties)),
|
|
1653
|
+
) : S(l.attributes.properties, E.properties)), O && (typeof E.layout == "function" ? Ut.push(E.layout) : S(l.attributes.layout, E.layout)), g && (typeof E.context == "function" ? Vt.push(
|
|
1654
1654
|
E.context
|
|
1655
1655
|
) : S(l.attributes.context, E.context)));
|
|
1656
1656
|
}), mt.forEach((_) => {
|
|
@@ -1929,7 +1929,7 @@ const pi = (i) => {
|
|
|
1929
1929
|
);
|
|
1930
1930
|
}
|
|
1931
1931
|
});
|
|
1932
|
-
},
|
|
1932
|
+
}, os = (i, t) => {
|
|
1933
1933
|
const { entry: e, components: s, breakpoints: n, views: r } = t, o = [];
|
|
1934
1934
|
return Object.keys(n).forEach((a) => {
|
|
1935
1935
|
const h = n[a], c = window.matchMedia(h);
|
|
@@ -1946,7 +1946,7 @@ const pi = (i) => {
|
|
|
1946
1946
|
type: i.type,
|
|
1947
1947
|
name: i.name,
|
|
1948
1948
|
branch: t || "default"
|
|
1949
|
-
}),
|
|
1949
|
+
}), as = (i, t, e, s = dt(), n = {}) => i.getAsync("components").then((r) => {
|
|
1950
1950
|
let o;
|
|
1951
1951
|
if (typeof t == "string") {
|
|
1952
1952
|
const c = new Q(r);
|
|
@@ -2012,7 +2012,7 @@ class gi {
|
|
|
2012
2012
|
};
|
|
2013
2013
|
}
|
|
2014
2014
|
}
|
|
2015
|
-
const
|
|
2015
|
+
const cs = "#____version____#", hs = class extends es {
|
|
2016
2016
|
constructor(t, e = []) {
|
|
2017
2017
|
super(t, e, {
|
|
2018
2018
|
transformPluginSettings: (s, n, r) => {
|
|
@@ -2043,10 +2043,10 @@ const as = "#____version____#", cs = class extends ts {
|
|
|
2043
2043
|
* @param configuration Runtime configuration.
|
|
2044
2044
|
*/
|
|
2045
2045
|
static create(t = {}) {
|
|
2046
|
-
const e = [
|
|
2046
|
+
const e = [Cs].concat(
|
|
2047
2047
|
t.configurationApiExtensions || []
|
|
2048
2048
|
);
|
|
2049
|
-
return new
|
|
2049
|
+
return new hs("humany", e);
|
|
2050
2050
|
}
|
|
2051
2051
|
/**
|
|
2052
2052
|
* Creates a widget runtime based on provided configuration and retains configuration handlers
|
|
@@ -2073,8 +2073,8 @@ const as = "#____version____#", cs = class extends ts {
|
|
|
2073
2073
|
return !!(t && typeof t == "object" && t.container && typeof t.container.get == "function" && t.container.get("$environment") === t && t.container.owner === t);
|
|
2074
2074
|
}
|
|
2075
2075
|
};
|
|
2076
|
-
let
|
|
2077
|
-
|
|
2076
|
+
let ls = hs;
|
|
2077
|
+
ls.version = `${cs} (${ce})`;
|
|
2078
2078
|
var x = /* @__PURE__ */ ((i) => (i.open = "open", i.closed = "closed", i.hidden = "hidden", i))(x || {});
|
|
2079
2079
|
const le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2080
2080
|
__proto__: null,
|
|
@@ -2085,25 +2085,25 @@ const le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2085
2085
|
ComponentPlatform: ut,
|
|
2086
2086
|
ComponentQuery: Q,
|
|
2087
2087
|
ComponentResolver: gi,
|
|
2088
|
-
Environment:
|
|
2088
|
+
Environment: ls,
|
|
2089
2089
|
WidgetRenderState: x,
|
|
2090
2090
|
asDescriptor: ie,
|
|
2091
2091
|
createChildren: Pt,
|
|
2092
|
-
createComponentModel:
|
|
2093
|
-
createEventSubscriber:
|
|
2094
|
-
extendComponent:
|
|
2095
|
-
findComponent:
|
|
2092
|
+
createComponentModel: os,
|
|
2093
|
+
createEventSubscriber: is,
|
|
2094
|
+
extendComponent: as,
|
|
2095
|
+
findComponent: rs,
|
|
2096
2096
|
findVisibleComponents: _t,
|
|
2097
2097
|
traverseComponents: It,
|
|
2098
|
-
version:
|
|
2098
|
+
version: cs
|
|
2099
2099
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2100
2100
|
var f = /* @__PURE__ */ ((i) => (i.Cookie = "cookie", i.Local = "local", i.Session = "session", i))(f || {}), Z = /* @__PURE__ */ ((i) => (i.Tenant = "tenant", i.Implementation = "implementation", i.Widget = "widget", i))(Z || {}), m = /* @__PURE__ */ ((i) => (i.Necessary = "necessary", i.Functional = "functional", i.Analytical = "analytical", i.Marketing = "marketing", i))(m || {});
|
|
2101
|
-
const L = (i, t, e, s = {}) =>
|
|
2101
|
+
const L = (i, t, e, s = {}) => Me(i, e).then((n) => (process.env.NODE_ENV !== "production" && n && b.warn(
|
|
2102
2102
|
`createStorageWriter: Attempted to create storage writer using unallowed category.
|
|
2103
2103
|
Key: ${t}
|
|
2104
2104
|
Category: ${JSON.stringify(e)}
|
|
2105
2105
|
Options: ${JSON.stringify(s)}`
|
|
2106
|
-
), (r) => (pe(i),
|
|
2106
|
+
), (r) => (pe(i), Me(i, e).then((o) => {
|
|
2107
2107
|
if (o) {
|
|
2108
2108
|
process.env.NODE_ENV !== "production" && b.warn(
|
|
2109
2109
|
`storageWriter: Attempted to write to storage using unallowed category.
|
|
@@ -2128,7 +2128,7 @@ const L = (i, t, e, s = {}) => Ne(i, e).then((n) => (process.env.NODE_ENV !== "p
|
|
|
2128
2128
|
(s) => kt(s, t)
|
|
2129
2129
|
)), K = (i) => !!Object.entries(i).filter(([t, e]) => typeof e < "u").length, Ft = (i) => Object.entries(i).filter(([t, e]) => typeof e < "u").forEach(([t, { value: e }]) => {
|
|
2130
2130
|
typeof e > "u" && delete i[t];
|
|
2131
|
-
}),
|
|
2131
|
+
}), ds = (i, t) => {
|
|
2132
2132
|
const e = {
|
|
2133
2133
|
tenant: { ...i.tenant, ...t.tenant },
|
|
2134
2134
|
implementation: { ...i.implementation, ...t.implementation },
|
|
@@ -2151,8 +2151,8 @@ const L = (i, t, e, s = {}) => Ne(i, e).then((n) => (process.env.NODE_ENV !== "p
|
|
|
2151
2151
|
} = i.get("$widget");
|
|
2152
2152
|
return [
|
|
2153
2153
|
`humany_${s}`,
|
|
2154
|
-
`humany_${
|
|
2155
|
-
`humany_${
|
|
2154
|
+
`humany_${Ne(s + e)}`,
|
|
2155
|
+
`humany_${Ne(s + e + t)}`
|
|
2156
2156
|
];
|
|
2157
2157
|
}, Kt = (i) => {
|
|
2158
2158
|
const t = new RegExp(`(?:^|;)\\s?${i}=(.*?)(?:;|$)`, "i"), e = document.cookie.match(t);
|
|
@@ -2167,8 +2167,8 @@ const L = (i, t, e, s = {}) => Ne(i, e).then((n) => (process.env.NODE_ENV !== "p
|
|
|
2167
2167
|
implementation: r,
|
|
2168
2168
|
widget: o
|
|
2169
2169
|
};
|
|
2170
|
-
},
|
|
2171
|
-
const e = de(i), s =
|
|
2170
|
+
}, us = (i, t) => {
|
|
2171
|
+
const e = de(i), s = ds(e, t), [n, r, o] = Tt(i), { tenant: a, implementation: h, widget: c } = s, l = mi(t), d = Rt({ days: -1 });
|
|
2172
2172
|
Gt(
|
|
2173
2173
|
n,
|
|
2174
2174
|
a,
|
|
@@ -2190,7 +2190,7 @@ const L = (i, t, e, s = {}) => Ne(i, e).then((n) => (process.env.NODE_ENV !== "p
|
|
|
2190
2190
|
widget: JSON.parse(a)
|
|
2191
2191
|
};
|
|
2192
2192
|
}, ne = (i, t, e) => {
|
|
2193
|
-
const s = St(i, t), n =
|
|
2193
|
+
const s = St(i, t), n = ds(s, e), [r, o, a] = Tt(i), { tenant: h, implementation: c, widget: l } = n;
|
|
2194
2194
|
K(h) ? t.setItem(r, JSON.stringify(h)) : t.removeItem(r), K(c) ? t.setItem(
|
|
2195
2195
|
o,
|
|
2196
2196
|
JSON.stringify(c)
|
|
@@ -2210,14 +2210,14 @@ const L = (i, t, e, s = {}) => Ne(i, e).then((n) => (process.env.NODE_ENV !== "p
|
|
|
2210
2210
|
value: i,
|
|
2211
2211
|
category: t
|
|
2212
2212
|
}, Et = (i, t) => {
|
|
2213
|
-
const e =
|
|
2213
|
+
const e = ss(i);
|
|
2214
2214
|
return Object.entries(e).forEach(([s, n]) => {
|
|
2215
2215
|
Object.entries(n).forEach(([r, o]) => {
|
|
2216
2216
|
const { expiration: a, category: h } = o;
|
|
2217
2217
|
(vi(a) || yi(t, h)) && (n[r] = ue(void 0, h, a));
|
|
2218
2218
|
});
|
|
2219
2219
|
}), e;
|
|
2220
|
-
},
|
|
2220
|
+
}, Me = (i, t) => M(
|
|
2221
2221
|
i,
|
|
2222
2222
|
"storagePolicy",
|
|
2223
2223
|
f.Cookie
|
|
@@ -2229,11 +2229,11 @@ const L = (i, t, e, s = {}) => Ne(i, e).then((n) => (process.env.NODE_ENV !== "p
|
|
|
2229
2229
|
e,
|
|
2230
2230
|
s
|
|
2231
2231
|
].map((h) => Et(h, n));
|
|
2232
|
-
|
|
2232
|
+
us(i, r), ne(i, window.localStorage, o), ne(i, window.sessionStorage, a);
|
|
2233
2233
|
}, Rt = (i = { days: 30 }) => {
|
|
2234
2234
|
const { days: t = 0, hours: e = 0, minutes: s = 0, seconds: n = 0 } = i, r = /* @__PURE__ */ new Date();
|
|
2235
2235
|
return r.setTime(r.getTime() + e * 60 * 60 * 1e3), r.setTime(r.getTime() + t * 24 * 60 * 60 * 1e3), r.setTime(r.getTime() + s * 60 * 1e3), r.setTime(r.getTime() + n * 1e3), r.toISOString();
|
|
2236
|
-
}, bi = (i) => P(document)(() => de(i)), wi = (i, t) => P(document)(() =>
|
|
2236
|
+
}, bi = (i) => P(document)(() => de(i)), wi = (i, t) => P(document)(() => us(i, t)), $i = (i, t) => {
|
|
2237
2237
|
const e = t === f.Local ? window.localStorage : window.sessionStorage;
|
|
2238
2238
|
return P(e)(() => St(i, e));
|
|
2239
2239
|
}, _i = (i, t, e) => {
|
|
@@ -2368,7 +2368,7 @@ const Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2368
2368
|
document.removeEventListener("keydown", e), document.removeEventListener("click", s);
|
|
2369
2369
|
};
|
|
2370
2370
|
};
|
|
2371
|
-
function
|
|
2371
|
+
function Oi(i, t) {
|
|
2372
2372
|
const {
|
|
2373
2373
|
// symbol,
|
|
2374
2374
|
widgetName: e,
|
|
@@ -2378,7 +2378,7 @@ function Ci(i, t) {
|
|
|
2378
2378
|
} = t;
|
|
2379
2379
|
return i.classList.add("ace-widget-trigger"), i.classList.add(`ace-widget_${e}`), s.length && i.classList.add("trigger-has-text"), n.length && !i.getAttribute("aria-label") && i.setAttribute("aria-label", n), n.length && !i.getAttribute("tabindex") && i.setAttribute("tabindex", "0"), r.length && !i.getAttribute("title") && i.setAttribute("title", r), xi(i);
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2381
|
+
function Ci(i, t) {
|
|
2382
2382
|
i instanceof HTMLElement ? (t && i.setAttribute("title", t), i.classList.remove("ace-trigger-active"), i.classList.remove("ace-trigger-loading")) : i instanceof Array && i.forEach((e) => {
|
|
2383
2383
|
t && e.setAttribute("title", t), e.classList.remove("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
|
|
2384
2384
|
});
|
|
@@ -2388,7 +2388,7 @@ function Pi(i) {
|
|
|
2388
2388
|
t.classList.remove("ace-trigger-active"), t.classList.add("ace-trigger-loading");
|
|
2389
2389
|
});
|
|
2390
2390
|
}
|
|
2391
|
-
function
|
|
2391
|
+
function ps(i, t) {
|
|
2392
2392
|
i instanceof HTMLElement ? (t && i.setAttribute("title", t), i.classList.add("ace-trigger-active"), i.classList.remove("ace-trigger-loading")) : i instanceof Array && i.forEach((e) => {
|
|
2393
2393
|
t && e.setAttribute("title", t), e.classList.add("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
|
|
2394
2394
|
});
|
|
@@ -2398,8 +2398,8 @@ function us(i, t) {
|
|
|
2398
2398
|
* Copyright 2019 Google LLC
|
|
2399
2399
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2400
2400
|
*/
|
|
2401
|
-
const xt = globalThis, ge = xt.ShadowRoot && (xt.ShadyCSS === void 0 || xt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, me = Symbol(),
|
|
2402
|
-
let
|
|
2401
|
+
const xt = globalThis, ge = xt.ShadowRoot && (xt.ShadyCSS === void 0 || xt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, me = Symbol(), De = /* @__PURE__ */ new WeakMap();
|
|
2402
|
+
let gs = class {
|
|
2403
2403
|
constructor(t, e, s) {
|
|
2404
2404
|
if (this._$cssResult$ = !0, s !== me)
|
|
2405
2405
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -2410,7 +2410,7 @@ let ps = class {
|
|
|
2410
2410
|
const e = this.t;
|
|
2411
2411
|
if (ge && t === void 0) {
|
|
2412
2412
|
const s = e !== void 0 && e.length === 1;
|
|
2413
|
-
s && (t =
|
|
2413
|
+
s && (t = De.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && De.set(e, t));
|
|
2414
2414
|
}
|
|
2415
2415
|
return t;
|
|
2416
2416
|
}
|
|
@@ -2418,7 +2418,7 @@ let ps = class {
|
|
|
2418
2418
|
return this.cssText;
|
|
2419
2419
|
}
|
|
2420
2420
|
};
|
|
2421
|
-
const Si = (i) => new
|
|
2421
|
+
const Si = (i) => new gs(typeof i == "string" ? i : i + "", void 0, me), ms = (i, ...t) => {
|
|
2422
2422
|
const e = i.length === 1 ? i[0] : t.reduce((s, n, r) => s + ((o) => {
|
|
2423
2423
|
if (o._$cssResult$ === !0)
|
|
2424
2424
|
return o.cssText;
|
|
@@ -2426,7 +2426,7 @@ const Si = (i) => new ps(typeof i == "string" ? i : i + "", void 0, me), gs = (i
|
|
|
2426
2426
|
return o;
|
|
2427
2427
|
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.");
|
|
2428
2428
|
})(n) + i[r + 1], i[0]);
|
|
2429
|
-
return new
|
|
2429
|
+
return new gs(e, i, me);
|
|
2430
2430
|
}, ki = (i, t) => {
|
|
2431
2431
|
if (ge)
|
|
2432
2432
|
i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
@@ -2435,7 +2435,7 @@ const Si = (i) => new ps(typeof i == "string" ? i : i + "", void 0, me), gs = (i
|
|
|
2435
2435
|
const s = document.createElement("style"), n = xt.litNonce;
|
|
2436
2436
|
n !== void 0 && s.setAttribute("nonce", n), s.textContent = e.cssText, i.appendChild(s);
|
|
2437
2437
|
}
|
|
2438
|
-
},
|
|
2438
|
+
}, Le = ge ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
|
2439
2439
|
let e = "";
|
|
2440
2440
|
for (const s of t.cssRules)
|
|
2441
2441
|
e += s.cssText;
|
|
@@ -2446,7 +2446,7 @@ const Si = (i) => new ps(typeof i == "string" ? i : i + "", void 0, me), gs = (i
|
|
|
2446
2446
|
* Copyright 2017 Google LLC
|
|
2447
2447
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2448
2448
|
*/
|
|
2449
|
-
const { is: Ni, defineProperty: Mi, getOwnPropertyDescriptor: Di, getOwnPropertyNames: Li, getOwnPropertySymbols: Ii, getPrototypeOf: Ti } = Object, j = globalThis,
|
|
2449
|
+
const { is: Ni, defineProperty: Mi, getOwnPropertyDescriptor: Di, getOwnPropertyNames: Li, getOwnPropertySymbols: Ii, getPrototypeOf: Ti } = Object, j = globalThis, Ie = j.trustedTypes, Ri = Ie ? Ie.emptyScript : "", Yt = j.reactiveElementPolyfillSupport, it = (i, t) => i, Nt = { toAttribute(i, t) {
|
|
2450
2450
|
switch (t) {
|
|
2451
2451
|
case Boolean:
|
|
2452
2452
|
i = i ? Ri : null;
|
|
@@ -2474,7 +2474,7 @@ const { is: Ni, defineProperty: Mi, getOwnPropertyDescriptor: Di, getOwnProperty
|
|
|
2474
2474
|
}
|
|
2475
2475
|
}
|
|
2476
2476
|
return e;
|
|
2477
|
-
} }, fe = (i, t) => !Ni(i, t),
|
|
2477
|
+
} }, fe = (i, t) => !Ni(i, t), Te = { attribute: !0, type: String, converter: Nt, reflect: !1, hasChanged: fe };
|
|
2478
2478
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), j.litPropertyMetadata ?? (j.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
2479
2479
|
class J extends HTMLElement {
|
|
2480
2480
|
static addInitializer(t) {
|
|
@@ -2483,7 +2483,7 @@ class J extends HTMLElement {
|
|
|
2483
2483
|
static get observedAttributes() {
|
|
2484
2484
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
2485
2485
|
}
|
|
2486
|
-
static createProperty(t, e =
|
|
2486
|
+
static createProperty(t, e = Te) {
|
|
2487
2487
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
2488
2488
|
const s = Symbol(), n = this.getPropertyDescriptor(t, s, e);
|
|
2489
2489
|
n !== void 0 && Mi(this.prototype, t, n);
|
|
@@ -2503,7 +2503,7 @@ class J extends HTMLElement {
|
|
|
2503
2503
|
}, configurable: !0, enumerable: !0 };
|
|
2504
2504
|
}
|
|
2505
2505
|
static getPropertyOptions(t) {
|
|
2506
|
-
return this.elementProperties.get(t) ??
|
|
2506
|
+
return this.elementProperties.get(t) ?? Te;
|
|
2507
2507
|
}
|
|
2508
2508
|
static _$Ei() {
|
|
2509
2509
|
if (this.hasOwnProperty(it("elementProperties")))
|
|
@@ -2538,9 +2538,9 @@ class J extends HTMLElement {
|
|
|
2538
2538
|
if (Array.isArray(t)) {
|
|
2539
2539
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
2540
2540
|
for (const n of s)
|
|
2541
|
-
e.unshift(
|
|
2541
|
+
e.unshift(Le(n));
|
|
2542
2542
|
} else
|
|
2543
|
-
t !== void 0 && e.push(
|
|
2543
|
+
t !== void 0 && e.push(Le(t));
|
|
2544
2544
|
return e;
|
|
2545
2545
|
}
|
|
2546
2546
|
static _$Eu(t, e) {
|
|
@@ -2693,26 +2693,26 @@ J.elementStyles = [], J.shadowRootOptions = { mode: "open" }, J[it("elementPrope
|
|
|
2693
2693
|
* Copyright 2017 Google LLC
|
|
2694
2694
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2695
2695
|
*/
|
|
2696
|
-
const nt = globalThis, Mt = nt.trustedTypes,
|
|
2697
|
-
\f\r]`, tt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
2698
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
2696
|
+
const nt = globalThis, Mt = nt.trustedTypes, Re = Mt ? Mt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, fs = "$lit$", I = `lit$${Math.random().toFixed(9).slice(2)}$`, vs = "?" + I, ji = `<${vs}>`, W = document, at = () => W.createComment(""), ct = (i) => i === null || typeof i != "object" && typeof i != "function", ve = Array.isArray, Ui = (i) => ve(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Qt = `[
|
|
2697
|
+
\f\r]`, tt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, je = /-->/g, Ue = />/g, U = RegExp(`>|${Qt}(?:([^\\s"'>=/]+)(${Qt}*=${Qt}*(?:[^
|
|
2698
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ve = /'/g, ze = /"/g, ys = /^(?:script|style|textarea|title)$/i, Vi = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), bt = Vi(1), B = Symbol.for("lit-noChange"), y = Symbol.for("lit-nothing"), He = /* @__PURE__ */ new WeakMap(), z = W.createTreeWalker(W, 129);
|
|
2699
2699
|
function bs(i, t) {
|
|
2700
|
-
if (!
|
|
2700
|
+
if (!ve(i) || !i.hasOwnProperty("raw"))
|
|
2701
2701
|
throw Error("invalid template strings array");
|
|
2702
|
-
return
|
|
2702
|
+
return Re !== void 0 ? Re.createHTML(t) : t;
|
|
2703
2703
|
}
|
|
2704
2704
|
const zi = (i, t) => {
|
|
2705
2705
|
const e = i.length - 1, s = [];
|
|
2706
|
-
let n, r = t === 2 ? "<svg>" : "", o = tt;
|
|
2706
|
+
let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = tt;
|
|
2707
2707
|
for (let a = 0; a < e; a++) {
|
|
2708
2708
|
const h = i[a];
|
|
2709
2709
|
let c, l, d = -1, u = 0;
|
|
2710
2710
|
for (; u < h.length && (o.lastIndex = u, l = o.exec(h), l !== null); )
|
|
2711
|
-
u = o.lastIndex, o === tt ? l[1] === "!--" ? o =
|
|
2711
|
+
u = o.lastIndex, o === tt ? l[1] === "!--" ? o = je : l[1] !== void 0 ? o = Ue : l[2] !== void 0 ? (ys.test(l[2]) && (n = RegExp("</" + l[2], "g")), o = U) : l[3] !== void 0 && (o = U) : o === U ? l[0] === ">" ? (o = n ?? tt, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, c = l[1], o = l[3] === void 0 ? U : l[3] === '"' ? ze : Ve) : o === ze || o === Ve ? o = U : o === je || o === Ue ? o = tt : (o = U, n = void 0);
|
|
2712
2712
|
const p = o === U && i[a + 1].startsWith("/>") ? " " : "";
|
|
2713
|
-
r += o === tt ? h + ji : d >= 0 ? (s.push(c), h.slice(0, d) +
|
|
2713
|
+
r += o === tt ? h + ji : d >= 0 ? (s.push(c), h.slice(0, d) + fs + h.slice(d) + I + p) : h + I + (d === -2 ? a : p);
|
|
2714
2714
|
}
|
|
2715
|
-
return [bs(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
|
2715
|
+
return [bs(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
2716
2716
|
};
|
|
2717
2717
|
class ht {
|
|
2718
2718
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
@@ -2720,7 +2720,7 @@ class ht {
|
|
|
2720
2720
|
this.parts = [];
|
|
2721
2721
|
let r = 0, o = 0;
|
|
2722
2722
|
const a = t.length - 1, h = this.parts, [c, l] = zi(t, e);
|
|
2723
|
-
if (this.el = ht.createElement(c, s), z.currentNode = this.el.content, e === 2) {
|
|
2723
|
+
if (this.el = ht.createElement(c, s), z.currentNode = this.el.content, e === 2 || e === 3) {
|
|
2724
2724
|
const d = this.el.content.firstChild;
|
|
2725
2725
|
d.replaceWith(...d.childNodes);
|
|
2726
2726
|
}
|
|
@@ -2728,7 +2728,7 @@ class ht {
|
|
|
2728
2728
|
if (n.nodeType === 1) {
|
|
2729
2729
|
if (n.hasAttributes())
|
|
2730
2730
|
for (const d of n.getAttributeNames())
|
|
2731
|
-
if (d.endsWith(
|
|
2731
|
+
if (d.endsWith(fs)) {
|
|
2732
2732
|
const u = l[o++], p = n.getAttribute(d).split(I), g = /([.?@])?(.*)/.exec(u);
|
|
2733
2733
|
h.push({ type: 1, index: r, name: g[2], strings: p, ctor: g[1] === "." ? Wi : g[1] === "?" ? Bi : g[1] === "@" ? qi : jt }), n.removeAttribute(d);
|
|
2734
2734
|
} else
|
|
@@ -2743,7 +2743,7 @@ class ht {
|
|
|
2743
2743
|
}
|
|
2744
2744
|
}
|
|
2745
2745
|
} else if (n.nodeType === 8)
|
|
2746
|
-
if (n.data ===
|
|
2746
|
+
if (n.data === vs)
|
|
2747
2747
|
h.push({ type: 2, index: r });
|
|
2748
2748
|
else {
|
|
2749
2749
|
let d = -1;
|
|
@@ -2817,11 +2817,11 @@ class pt {
|
|
|
2817
2817
|
_$AI(t, e = this) {
|
|
2818
2818
|
t = G(this, t, e), ct(t) ? t === y || t == null || t === "" ? (this._$AH !== y && this._$AR(), this._$AH = y) : t !== this._$AH && t !== B && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ui(t) ? this.k(t) : this._(t);
|
|
2819
2819
|
}
|
|
2820
|
-
|
|
2820
|
+
O(t) {
|
|
2821
2821
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
2822
2822
|
}
|
|
2823
2823
|
T(t) {
|
|
2824
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
|
2824
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
2825
2825
|
}
|
|
2826
2826
|
_(t) {
|
|
2827
2827
|
this._$AH !== y && ct(this._$AH) ? this._$AA.nextSibling.data = t : this.T(W.createTextNode(t)), this._$AH = t;
|
|
@@ -2837,15 +2837,15 @@ class pt {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
}
|
|
2839
2839
|
_$AC(t) {
|
|
2840
|
-
let e =
|
|
2841
|
-
return e === void 0 &&
|
|
2840
|
+
let e = He.get(t.strings);
|
|
2841
|
+
return e === void 0 && He.set(t.strings, e = new ht(t)), e;
|
|
2842
2842
|
}
|
|
2843
2843
|
k(t) {
|
|
2844
|
-
|
|
2844
|
+
ve(this._$AH) || (this._$AH = [], this._$AR());
|
|
2845
2845
|
const e = this._$AH;
|
|
2846
2846
|
let s, n = 0;
|
|
2847
2847
|
for (const r of t)
|
|
2848
|
-
n === e.length ? e.push(s = new pt(this.
|
|
2848
|
+
n === e.length ? e.push(s = new pt(this.O(at()), this.O(at()), this, this.options)) : s = e[n], s._$AI(r), n++;
|
|
2849
2849
|
n < e.length && (this._$AR(s && s._$AB.nextSibling, n), e.length = n);
|
|
2850
2850
|
}
|
|
2851
2851
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -2930,7 +2930,7 @@ class Ji {
|
|
|
2930
2930
|
}
|
|
2931
2931
|
}
|
|
2932
2932
|
const Zt = nt.litHtmlPolyfillSupport;
|
|
2933
|
-
Zt == null || Zt(ht, pt), (nt.litHtmlVersions ?? (nt.litHtmlVersions = [])).push("3.1
|
|
2933
|
+
Zt == null || Zt(ht, pt), (nt.litHtmlVersions ?? (nt.litHtmlVersions = [])).push("3.2.1");
|
|
2934
2934
|
const Fi = (i, t, e) => {
|
|
2935
2935
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
2936
2936
|
let n = s._$litPart$;
|
|
@@ -2970,11 +2970,11 @@ let rt = class extends J {
|
|
|
2970
2970
|
return B;
|
|
2971
2971
|
}
|
|
2972
2972
|
};
|
|
2973
|
-
var
|
|
2974
|
-
rt._$litElement$ = !0, rt.finalized = !0, (
|
|
2973
|
+
var Je;
|
|
2974
|
+
rt._$litElement$ = !0, rt.finalized = !0, (Je = globalThis.litElementHydrateSupport) == null || Je.call(globalThis, { LitElement: rt });
|
|
2975
2975
|
const Xt = globalThis.litElementPolyfillSupport;
|
|
2976
2976
|
Xt == null || Xt({ LitElement: rt });
|
|
2977
|
-
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.
|
|
2977
|
+
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
|
2978
2978
|
/**
|
|
2979
2979
|
* @license
|
|
2980
2980
|
* Copyright 2017 Google LLC
|
|
@@ -3170,7 +3170,7 @@ class q extends rt {
|
|
|
3170
3170
|
}
|
|
3171
3171
|
}
|
|
3172
3172
|
q.styles = [
|
|
3173
|
-
|
|
3173
|
+
ms`
|
|
3174
3174
|
:host {
|
|
3175
3175
|
--voca-rem-multiplier: 0.625;
|
|
3176
3176
|
display: block;
|
|
@@ -3330,10 +3330,10 @@ class an {
|
|
|
3330
3330
|
*/
|
|
3331
3331
|
render() {
|
|
3332
3332
|
const { widgetDOMElement: t, triggerDOMElement: e } = this.options, s = this.container.get("$widget");
|
|
3333
|
-
return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === H.Badge && Pi(e), import("./render-
|
|
3333
|
+
return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === H.Badge && Pi(e), import("./render-7eadbe84.mjs").then((n) => n.default(this.container, t)).then(() => {
|
|
3334
3334
|
if (t.setAttribute("data-rendered", "true"), e && this.options.triggerType === H.Badge) {
|
|
3335
3335
|
const r = this.options.triggerOptions.openTooltip;
|
|
3336
|
-
|
|
3336
|
+
ps(e, r);
|
|
3337
3337
|
}
|
|
3338
3338
|
ii(this.container, t);
|
|
3339
3339
|
const n = this.container.get("$environment").widgets.all();
|
|
@@ -3357,7 +3357,7 @@ class an {
|
|
|
3357
3357
|
e.getAttribute("role") || e.setAttribute("role", "button");
|
|
3358
3358
|
const { name: s } = this.container.get("$widget"), { label: n, symbol: r, ariaLabel: o, closedTooltip: a, openTooltip: h } = t, c = { closedTooltip: a, openTooltip: h };
|
|
3359
3359
|
this.options.triggerOptions = c;
|
|
3360
|
-
const l =
|
|
3360
|
+
const l = Oi(e, {
|
|
3361
3361
|
label: n,
|
|
3362
3362
|
symbol: r,
|
|
3363
3363
|
ariaLabel: o,
|
|
@@ -3384,7 +3384,7 @@ const $t = "changesets", cn = (i) => {
|
|
|
3384
3384
|
const t = { tags: i.tags };
|
|
3385
3385
|
return i.context && typeof i.context != "function" && (t.context = i.context), i.properties && typeof i.properties != "function" && (t.properties = i.properties), i.layout && typeof i.layout != "function" && (t.layout = i.layout), t;
|
|
3386
3386
|
};
|
|
3387
|
-
class
|
|
3387
|
+
class ye {
|
|
3388
3388
|
constructor(t, e) {
|
|
3389
3389
|
this.container = t, this.storageWriter = e;
|
|
3390
3390
|
}
|
|
@@ -3397,7 +3397,7 @@ class ve {
|
|
|
3397
3397
|
medium: f.Local
|
|
3398
3398
|
}
|
|
3399
3399
|
).then(
|
|
3400
|
-
(e) => new
|
|
3400
|
+
(e) => new ye(t, e)
|
|
3401
3401
|
);
|
|
3402
3402
|
}
|
|
3403
3403
|
write(t, e, s, n) {
|
|
@@ -3448,18 +3448,18 @@ class ve {
|
|
|
3448
3448
|
}
|
|
3449
3449
|
const hn = (i) => {
|
|
3450
3450
|
const { container: t } = i;
|
|
3451
|
-
return
|
|
3451
|
+
return ye.create(t).then(
|
|
3452
3452
|
(e) => {
|
|
3453
|
-
const s = t.get("$settings"), n = { localStorage: e }, r = new ut(i, n), o =
|
|
3453
|
+
const s = t.get("$settings"), n = { localStorage: e }, r = new ut(i, n), o = os(r, s);
|
|
3454
3454
|
return i.events.subscribe(
|
|
3455
3455
|
"widget:state-change",
|
|
3456
3456
|
(a, h) => {
|
|
3457
|
-
h.state ===
|
|
3457
|
+
h.state === Ze.Deactivating && o();
|
|
3458
3458
|
}
|
|
3459
3459
|
), r;
|
|
3460
3460
|
}
|
|
3461
3461
|
);
|
|
3462
|
-
}, ln = (i) => Promise.resolve().then(() => Ai).then(({ StorageProvider: t }) => new t()), dn = (i) => Promise.resolve().then(() => le).then(({ ActionResolver: t }) => new t(i)), un = (i) => Promise.resolve().then(() => le).then(({ ComponentResolver: t }) => new t(i)), pn = (i) => Promise.resolve().then(() => le).then(() => hn(i.get("$widget"))), te = "$settings", ee = "open",
|
|
3462
|
+
}, ln = (i) => Promise.resolve().then(() => Ai).then(({ StorageProvider: t }) => new t()), dn = (i) => Promise.resolve().then(() => le).then(({ ActionResolver: t }) => new t(i)), un = (i) => Promise.resolve().then(() => le).then(({ ComponentResolver: t }) => new t(i)), pn = (i) => Promise.resolve().then(() => le).then(() => hn(i.get("$widget"))), te = "$settings", ee = "open", We = "activeStickyWidget";
|
|
3463
3463
|
class Zn extends Qs {
|
|
3464
3464
|
constructor(t) {
|
|
3465
3465
|
super(t), this.outlets = /* @__PURE__ */ new Map(), this.activated = void 0, this.subs = [], this.handleBootstrapping = (e) => {
|
|
@@ -3484,7 +3484,7 @@ class Zn extends Qs {
|
|
|
3484
3484
|
).then((e = {}) => ({
|
|
3485
3485
|
...this.container.get("$settings"),
|
|
3486
3486
|
...e
|
|
3487
|
-
}))),
|
|
3487
|
+
}))), Os(this, "load", this.handleBootstrapping), this.container.registerAsync(
|
|
3488
3488
|
"componentResolver",
|
|
3489
3489
|
() => un(this.container)
|
|
3490
3490
|
), this.container.registerAsync(
|
|
@@ -3533,20 +3533,20 @@ class Zn extends Qs {
|
|
|
3533
3533
|
);
|
|
3534
3534
|
this.outlets.size < 1 && !o && this.setRenderState("unset");
|
|
3535
3535
|
const l = () => {
|
|
3536
|
-
const g = () => w.querySelectorAll("[data-loading=true]").length === 0, [w] = this.widget.container.get("widgetDOMElements"),
|
|
3536
|
+
const g = () => w.querySelectorAll("[data-loading=true]").length === 0, [w] = this.widget.container.get("widgetDOMElements"), O = (Vt, _) => {
|
|
3537
3537
|
g() && (c.callback && c.callback(), _.disconnect());
|
|
3538
3538
|
}, mt = {
|
|
3539
3539
|
attributes: !0,
|
|
3540
3540
|
subtree: !0,
|
|
3541
3541
|
childList: !0
|
|
3542
3542
|
};
|
|
3543
|
-
g() && c.callback && c.callback(), new MutationObserver(
|
|
3543
|
+
g() && c.callback && c.callback(), new MutationObserver(O).observe(w, mt);
|
|
3544
3544
|
};
|
|
3545
3545
|
h && this.widget.container.getAsync("dataClient").then(({ events: g }) => {
|
|
3546
3546
|
g.subscribe(
|
|
3547
3547
|
"data-client:fetched",
|
|
3548
|
-
(w,
|
|
3549
|
-
|
|
3548
|
+
(w, O) => {
|
|
3549
|
+
O.unresolvedQueries === 0 && l();
|
|
3550
3550
|
}
|
|
3551
3551
|
);
|
|
3552
3552
|
});
|
|
@@ -3558,7 +3558,7 @@ class Zn extends Qs {
|
|
|
3558
3558
|
"click",
|
|
3559
3559
|
(g) => {
|
|
3560
3560
|
g.preventDefault(), this.container.get("settings").then(({ trigger: w }) => {
|
|
3561
|
-
d.render().then(() => this.renderState()).then((
|
|
3561
|
+
d.render().then(() => this.renderState()).then((O) => w && w.action && w.action === "hide" ? O === x.open ? this.hide() : this.open() : O === x.open ? this.close() : this.open());
|
|
3562
3562
|
});
|
|
3563
3563
|
}
|
|
3564
3564
|
)), this.outlets.size > 1)
|
|
@@ -3765,7 +3765,7 @@ class Zn extends Qs {
|
|
|
3765
3765
|
const {
|
|
3766
3766
|
options: { triggerDOMElement: s, triggerOptions: n }
|
|
3767
3767
|
} = e, { openTooltip: r, closedTooltip: o } = n || {};
|
|
3768
|
-
s && (t ?
|
|
3768
|
+
s && (t ? ps(s, r) : Ci(s, o));
|
|
3769
3769
|
});
|
|
3770
3770
|
}
|
|
3771
3771
|
deactivate() {
|
|
@@ -3773,11 +3773,11 @@ class Zn extends Qs {
|
|
|
3773
3773
|
const t = [];
|
|
3774
3774
|
return this.outlets.forEach((e) => t.push(e.dispose())), M(
|
|
3775
3775
|
this.container,
|
|
3776
|
-
|
|
3776
|
+
We,
|
|
3777
3777
|
f.Local
|
|
3778
3778
|
).then((e) => e === this.widget.name ? L(
|
|
3779
3779
|
this.container,
|
|
3780
|
-
|
|
3780
|
+
We,
|
|
3781
3781
|
m.Necessary,
|
|
3782
3782
|
{
|
|
3783
3783
|
medium: f.Local,
|
|
@@ -3806,7 +3806,7 @@ let $s = class extends Event {
|
|
|
3806
3806
|
* Copyright 2021 Google LLC
|
|
3807
3807
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3808
3808
|
*/
|
|
3809
|
-
let
|
|
3809
|
+
let Be = class {
|
|
3810
3810
|
constructor(t, e, s, n) {
|
|
3811
3811
|
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (r, o) => {
|
|
3812
3812
|
this.unsubscribe && (this.unsubscribe !== o && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = r, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(r, o)), this.unsubscribe = o;
|
|
@@ -3903,11 +3903,11 @@ class et extends gn {
|
|
|
3903
3903
|
function fn({ context: i, subscribe: t }) {
|
|
3904
3904
|
return (e, s) => {
|
|
3905
3905
|
typeof s == "object" ? s.addInitializer(function() {
|
|
3906
|
-
new
|
|
3907
|
-
this
|
|
3906
|
+
new Be(this, { context: i, callback: (n) => {
|
|
3907
|
+
e.set.call(this, n);
|
|
3908
3908
|
}, subscribe: t });
|
|
3909
3909
|
}) : e.constructor.addInitializer((n) => {
|
|
3910
|
-
new
|
|
3910
|
+
new Be(n, { context: i, callback: (r) => {
|
|
3911
3911
|
n[s] = r;
|
|
3912
3912
|
}, subscribe: t });
|
|
3913
3913
|
});
|
|
@@ -3976,18 +3976,18 @@ class xn {
|
|
|
3976
3976
|
this.nodeConfiguration.set(t, e);
|
|
3977
3977
|
}
|
|
3978
3978
|
}
|
|
3979
|
-
const
|
|
3979
|
+
const qe = (i) => ({
|
|
3980
3980
|
title: i.Title,
|
|
3981
3981
|
id: i.Id.toString()
|
|
3982
3982
|
});
|
|
3983
|
-
class
|
|
3983
|
+
class On extends xn {
|
|
3984
3984
|
constructor(t) {
|
|
3985
3985
|
super(t), this.addResource("item", {
|
|
3986
3986
|
query: async (e, s) => {
|
|
3987
3987
|
const n = e.itemId, r = "78aacc09-ae6f-5485-5ca3-9dacebb95825", o = t.get("$widget").name, a = s.projection || "", c = await (await fetch(
|
|
3988
3988
|
`${a}/guides/${n}?client=${r}&funnel=${o}&site=%2F%2Fdemo.humany.cc%2Fadmin%2Finterfaces&phrase=&connectionId=&p.LastGuideId=2857`
|
|
3989
3989
|
)).json();
|
|
3990
|
-
return c ?
|
|
3990
|
+
return c ? qe(c) : null;
|
|
3991
3991
|
}
|
|
3992
3992
|
}), this.addResource("items", {
|
|
3993
3993
|
query: async (e, s) => {
|
|
@@ -3995,7 +3995,7 @@ class Cn extends xn {
|
|
|
3995
3995
|
`${o}/guides?client=${n}&funnel=${r}&site=&phrase=&skip=0&take=10&sorting.type=popularity&sorting.direction=descending`
|
|
3996
3996
|
)).json();
|
|
3997
3997
|
return {
|
|
3998
|
-
items: (d.Matches || []).map((u) =>
|
|
3998
|
+
items: (d.Matches || []).map((u) => qe(u)),
|
|
3999
3999
|
totalItems: (d == null ? void 0 : d.TotalMatches) || 0
|
|
4000
4000
|
};
|
|
4001
4001
|
}
|
|
@@ -4003,15 +4003,15 @@ class Cn extends xn {
|
|
|
4003
4003
|
}
|
|
4004
4004
|
}
|
|
4005
4005
|
const sr = async (i) => {
|
|
4006
|
-
i.registerAsync("guideProvider", () => new
|
|
4007
|
-
}, ir = (i, t, e, s, n) => i.getAsync("componentResolver").then((r) => (r.registerComponent(t, e),
|
|
4008
|
-
}), t, n))),
|
|
4006
|
+
i.registerAsync("guideProvider", () => new On(i));
|
|
4007
|
+
}, ir = (i, t, e, s, n) => i.getAsync("componentResolver").then((r) => (r.registerComponent(t, e), as(i, t, s || (() => {
|
|
4008
|
+
}), t, n))), Cn = (i) => {
|
|
4009
4009
|
const t = {};
|
|
4010
4010
|
return Object.keys(i).forEach((e) => {
|
|
4011
4011
|
e.indexOf("css-") > -1 && (t[e] = i[e]);
|
|
4012
4012
|
}), t;
|
|
4013
4013
|
}, Pn = (i, t) => {
|
|
4014
|
-
const e =
|
|
4014
|
+
const e = Cn(t);
|
|
4015
4015
|
Object.entries(e).forEach(([s, n]) => {
|
|
4016
4016
|
i.style.setProperty(s.replace("css-", ""), n);
|
|
4017
4017
|
});
|
|
@@ -4093,7 +4093,7 @@ const nr = (i) => {
|
|
|
4093
4093
|
}
|
|
4094
4094
|
return t.styles = [
|
|
4095
4095
|
i.styles ?? [],
|
|
4096
|
-
|
|
4096
|
+
ms`
|
|
4097
4097
|
:host {
|
|
4098
4098
|
font-family: var(--font-family);
|
|
4099
4099
|
grid-column: span var(--width);
|
|
@@ -4126,30 +4126,30 @@ const nr = (i) => {
|
|
|
4126
4126
|
export {
|
|
4127
4127
|
En as A,
|
|
4128
4128
|
xn as D,
|
|
4129
|
+
y as E,
|
|
4129
4130
|
sr as G,
|
|
4130
|
-
|
|
4131
|
+
B as T,
|
|
4131
4132
|
nr as W,
|
|
4132
4133
|
et as a,
|
|
4133
4134
|
ut as b,
|
|
4134
4135
|
bn as c,
|
|
4135
|
-
|
|
4136
|
+
ms as d,
|
|
4136
4137
|
Qi as e,
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4138
|
+
T as f,
|
|
4139
|
+
Pn as g,
|
|
4140
|
+
Zn as h,
|
|
4140
4141
|
Zi as i,
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4142
|
+
vn as j,
|
|
4143
|
+
yn as k,
|
|
4144
|
+
wn as l,
|
|
4144
4145
|
tn as m,
|
|
4145
4146
|
lt as n,
|
|
4146
4147
|
x as o,
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4148
|
+
$n as p,
|
|
4149
|
+
_n as q,
|
|
4150
|
+
rt as r,
|
|
4151
|
+
er as s,
|
|
4151
4152
|
Yi as t,
|
|
4152
4153
|
ir as u,
|
|
4153
|
-
B as w,
|
|
4154
4154
|
bt as x
|
|
4155
4155
|
};
|