@nextrap/nte-nav 1.0.6 → 1.0.15
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/CHANGELOG.md +56 -0
- package/index.css +1 -1
- package/index.js +353 -286
- package/lib/nte-nav.d.ts +1 -0
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Bt = function(s, t, e, i) {
|
|
2
2
|
function r(n) {
|
|
3
3
|
return n instanceof e ? n : new e(function(o) {
|
|
4
4
|
o(n);
|
|
5
5
|
});
|
|
6
6
|
}
|
|
7
7
|
return new (e || (e = Promise))(function(n, o) {
|
|
8
|
-
function l(
|
|
8
|
+
function l(c) {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
o(
|
|
10
|
+
h(i.next(c));
|
|
11
|
+
} catch (d) {
|
|
12
|
+
o(d);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
function a(
|
|
15
|
+
function a(c) {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
o(
|
|
17
|
+
h(i.throw(c));
|
|
18
|
+
} catch (d) {
|
|
19
|
+
o(d);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
22
|
+
function h(c) {
|
|
23
|
+
c.done ? n(c.value) : r(c.value).then(l, a);
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
h((i = i.apply(s, t || [])).next());
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
function
|
|
29
|
-
return
|
|
28
|
+
function Yt() {
|
|
29
|
+
return Bt(this, void 0, void 0, function* () {
|
|
30
30
|
return new Promise((s) => {
|
|
31
31
|
if (document.readyState === "complete" || document.readyState === "interactive")
|
|
32
32
|
return s("loaded");
|
|
@@ -34,41 +34,41 @@ function Wt() {
|
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var qt = function(s, t, e, i) {
|
|
38
38
|
function r(n) {
|
|
39
39
|
return n instanceof e ? n : new e(function(o) {
|
|
40
40
|
o(n);
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
return new (e || (e = Promise))(function(n, o) {
|
|
44
|
-
function l(
|
|
44
|
+
function l(c) {
|
|
45
45
|
try {
|
|
46
|
-
|
|
47
|
-
} catch (
|
|
48
|
-
o(
|
|
46
|
+
h(i.next(c));
|
|
47
|
+
} catch (d) {
|
|
48
|
+
o(d);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function a(
|
|
51
|
+
function a(c) {
|
|
52
52
|
try {
|
|
53
|
-
|
|
54
|
-
} catch (
|
|
55
|
-
o(
|
|
53
|
+
h(i.throw(c));
|
|
54
|
+
} catch (d) {
|
|
55
|
+
o(d);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
58
|
+
function h(c) {
|
|
59
|
+
c.done ? n(c.value) : r(c.value).then(l, a);
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
h((i = i.apply(s, t || [])).next());
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
|
-
function
|
|
65
|
-
return
|
|
64
|
+
function ct(s) {
|
|
65
|
+
return qt(this, void 0, void 0, function* () {
|
|
66
66
|
return new Promise((t) => {
|
|
67
67
|
window.setTimeout(() => t(), s);
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
class
|
|
71
|
+
class Pt {
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @param delay Debounce delay in milliseconds
|
|
@@ -90,7 +90,7 @@ class Tt {
|
|
|
90
90
|
}, this.delay);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const P = {
|
|
94
94
|
xs: { name: "xs", minWidth: 0 },
|
|
95
95
|
sm: { name: "sm", minWidth: 576 },
|
|
96
96
|
md: { name: "md", minWidth: 768 },
|
|
@@ -98,35 +98,35 @@ const T = {
|
|
|
98
98
|
xl: { name: "xl", minWidth: 1200 },
|
|
99
99
|
xxl: { name: "xxl", minWidth: 1400 }
|
|
100
100
|
};
|
|
101
|
-
let
|
|
102
|
-
function
|
|
101
|
+
let M = P.xs;
|
|
102
|
+
function Q() {
|
|
103
103
|
const s = window.innerWidth;
|
|
104
|
-
let t =
|
|
105
|
-
for (const e in
|
|
106
|
-
const i =
|
|
104
|
+
let t = P.xs;
|
|
105
|
+
for (const e in P) {
|
|
106
|
+
const i = P[e];
|
|
107
107
|
s >= i.minWidth && (t = i);
|
|
108
108
|
}
|
|
109
109
|
return t;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function dt(s) {
|
|
112
112
|
if (typeof s == "string" && s.endsWith("px") && (s = parseInt(s.replace("px", ""))), typeof s == "string") {
|
|
113
|
-
if (s =
|
|
113
|
+
if (s = P[s], !s)
|
|
114
114
|
throw new Error(
|
|
115
|
-
`Breakpoint ${s} not found. Defined breakpoints are: ${Object.keys(
|
|
115
|
+
`Breakpoint ${s} not found. Defined breakpoints are: ${Object.keys(P).join(", ")}`
|
|
116
116
|
);
|
|
117
117
|
} else typeof s == "number" && (s = { name: "c", minWidth: s });
|
|
118
118
|
return window.innerWidth >= s.minWidth;
|
|
119
119
|
}
|
|
120
120
|
if (!window.__nextrap_current_breakpoint) {
|
|
121
|
-
window.__nextrap_current_breakpoint =
|
|
122
|
-
const s = new
|
|
121
|
+
window.__nextrap_current_breakpoint = Q();
|
|
122
|
+
const s = new Pt(200, 500);
|
|
123
123
|
window.addEventListener("resize", async () => {
|
|
124
|
-
if (await s.wait(),
|
|
125
|
-
|
|
124
|
+
if (await s.wait(), M !== Q()) {
|
|
125
|
+
M = Q(), window.__nextrap_current_breakpoint = M;
|
|
126
126
|
const t = new CustomEvent("breakpoint-changed", {
|
|
127
|
-
detail: { breakpoint:
|
|
127
|
+
detail: { breakpoint: M }
|
|
128
128
|
});
|
|
129
|
-
console.log("Breakpoint changed",
|
|
129
|
+
console.log("Breakpoint changed", M), window.dispatchEvent(t);
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
}
|
|
@@ -175,7 +175,7 @@ class nt {
|
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function pt() {
|
|
179
179
|
return document.readyState === "loading" ? new Promise((s) => {
|
|
180
180
|
document.addEventListener("DOMContentLoaded", () => s());
|
|
181
181
|
}) : Promise.resolve();
|
|
@@ -185,10 +185,10 @@ function ut() {
|
|
|
185
185
|
* Copyright 2019 Google LLC
|
|
186
186
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
187
187
|
*/
|
|
188
|
-
const
|
|
188
|
+
const q = globalThis, ot = q.ShadowRoot && (q.ShadyCSS === void 0 || q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, kt = Symbol(), ut = /* @__PURE__ */ new WeakMap();
|
|
189
189
|
let Ot = class {
|
|
190
190
|
constructor(t, e, i) {
|
|
191
|
-
if (this._$cssResult$ = !0, i !==
|
|
191
|
+
if (this._$cssResult$ = !0, i !== kt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
192
192
|
this.cssText = t, this.t = e;
|
|
193
193
|
}
|
|
194
194
|
get styleSheet() {
|
|
@@ -196,7 +196,7 @@ let Ot = class {
|
|
|
196
196
|
const e = this.t;
|
|
197
197
|
if (ot && t === void 0) {
|
|
198
198
|
const i = e !== void 0 && e.length === 1;
|
|
199
|
-
i && (t =
|
|
199
|
+
i && (t = ut.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ut.set(e, t));
|
|
200
200
|
}
|
|
201
201
|
return t;
|
|
202
202
|
}
|
|
@@ -204,26 +204,26 @@ let Ot = class {
|
|
|
204
204
|
return this.cssText;
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
const
|
|
207
|
+
const T = (s) => new Ot(typeof s == "string" ? s : s + "", void 0, kt), Vt = (s, t) => {
|
|
208
208
|
if (ot) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
209
209
|
else for (const e of t) {
|
|
210
|
-
const i = document.createElement("style"), r =
|
|
210
|
+
const i = document.createElement("style"), r = q.litNonce;
|
|
211
211
|
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, ft = ot ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
|
214
214
|
let e = "";
|
|
215
215
|
for (const i of t.cssRules) e += i.cssText;
|
|
216
|
-
return
|
|
216
|
+
return T(e);
|
|
217
217
|
})(s) : s;
|
|
218
218
|
/**
|
|
219
219
|
* @license
|
|
220
220
|
* Copyright 2017 Google LLC
|
|
221
221
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
222
222
|
*/
|
|
223
|
-
const { is:
|
|
223
|
+
const { is: Ft, defineProperty: Jt, getOwnPropertyDescriptor: Kt, getOwnPropertyNames: Zt, getOwnPropertySymbols: Qt, getPrototypeOf: Xt } = Object, _ = globalThis, vt = _.trustedTypes, te = vt ? vt.emptyScript : "", X = _.reactiveElementPolyfillSupport, L = (s, t) => s, V = { toAttribute(s, t) {
|
|
224
224
|
switch (t) {
|
|
225
225
|
case Boolean:
|
|
226
|
-
s = s ?
|
|
226
|
+
s = s ? te : null;
|
|
227
227
|
break;
|
|
228
228
|
case Object:
|
|
229
229
|
case Array:
|
|
@@ -248,9 +248,9 @@ const { is: qt, defineProperty: Vt, getOwnPropertyDescriptor: Yt, getOwnProperty
|
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
return e;
|
|
251
|
-
} }, at = (s, t) => !
|
|
252
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
253
|
-
let
|
|
251
|
+
} }, at = (s, t) => !Ft(s, t), mt = { attribute: !0, type: String, converter: V, reflect: !1, useDefault: !1, hasChanged: at };
|
|
252
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
253
|
+
let w = class extends HTMLElement {
|
|
254
254
|
static addInitializer(t) {
|
|
255
255
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
256
256
|
}
|
|
@@ -260,11 +260,11 @@ let y = class extends HTMLElement {
|
|
|
260
260
|
static createProperty(t, e = mt) {
|
|
261
261
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
262
262
|
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
|
263
|
-
r !== void 0 &&
|
|
263
|
+
r !== void 0 && Jt(this.prototype, t, r);
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
static getPropertyDescriptor(t, e, i) {
|
|
267
|
-
const { get: r, set: n } =
|
|
267
|
+
const { get: r, set: n } = Kt(this.prototype, t) ?? { get() {
|
|
268
268
|
return this[e];
|
|
269
269
|
}, set(o) {
|
|
270
270
|
this[e] = o;
|
|
@@ -278,14 +278,14 @@ let y = class extends HTMLElement {
|
|
|
278
278
|
return this.elementProperties.get(t) ?? mt;
|
|
279
279
|
}
|
|
280
280
|
static _$Ei() {
|
|
281
|
-
if (this.hasOwnProperty(
|
|
282
|
-
const t =
|
|
281
|
+
if (this.hasOwnProperty(L("elementProperties"))) return;
|
|
282
|
+
const t = Xt(this);
|
|
283
283
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
284
284
|
}
|
|
285
285
|
static finalize() {
|
|
286
|
-
if (this.hasOwnProperty(
|
|
287
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
288
|
-
const e = this.properties, i = [...
|
|
286
|
+
if (this.hasOwnProperty(L("finalized"))) return;
|
|
287
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(L("properties"))) {
|
|
288
|
+
const e = this.properties, i = [...Zt(e), ...Qt(e)];
|
|
289
289
|
for (const r of i) this.createProperty(r, e[r]);
|
|
290
290
|
}
|
|
291
291
|
const t = this[Symbol.metadata];
|
|
@@ -304,8 +304,8 @@ let y = class extends HTMLElement {
|
|
|
304
304
|
const e = [];
|
|
305
305
|
if (Array.isArray(t)) {
|
|
306
306
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
307
|
-
for (const r of i) e.unshift(
|
|
308
|
-
} else t !== void 0 && e.push(
|
|
307
|
+
for (const r of i) e.unshift(ft(r));
|
|
308
|
+
} else t !== void 0 && e.push(ft(t));
|
|
309
309
|
return e;
|
|
310
310
|
}
|
|
311
311
|
static _$Eu(t, e) {
|
|
@@ -334,7 +334,7 @@ let y = class extends HTMLElement {
|
|
|
334
334
|
}
|
|
335
335
|
createRenderRoot() {
|
|
336
336
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
337
|
-
return
|
|
337
|
+
return Vt(t, this.constructor.elementStyles), t;
|
|
338
338
|
}
|
|
339
339
|
connectedCallback() {
|
|
340
340
|
var t;
|
|
@@ -359,7 +359,7 @@ let y = class extends HTMLElement {
|
|
|
359
359
|
var n;
|
|
360
360
|
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
|
361
361
|
if (r !== void 0 && i.reflect === !0) {
|
|
362
|
-
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter :
|
|
362
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : V).toAttribute(e, i.type);
|
|
363
363
|
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
@@ -367,10 +367,10 @@ let y = class extends HTMLElement {
|
|
|
367
367
|
var n, o;
|
|
368
368
|
const i = this.constructor, r = i._$Eh.get(t);
|
|
369
369
|
if (r !== void 0 && this._$Em !== r) {
|
|
370
|
-
const l = i.getPropertyOptions(r), a = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((n = l.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? l.converter :
|
|
370
|
+
const l = i.getPropertyOptions(r), a = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((n = l.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? l.converter : V;
|
|
371
371
|
this._$Em = r;
|
|
372
|
-
const
|
|
373
|
-
this[r] =
|
|
372
|
+
const h = a.fromAttribute(e, l.type);
|
|
373
|
+
this[r] = h ?? ((o = this._$Ej) == null ? void 0 : o.get(r)) ?? h, this._$Em = null;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
requestUpdate(t, e, i) {
|
|
@@ -453,76 +453,76 @@ let y = class extends HTMLElement {
|
|
|
453
453
|
firstUpdated(t) {
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
|
-
|
|
456
|
+
w.elementStyles = [], w.shadowRootOptions = { mode: "open" }, w[L("elementProperties")] = /* @__PURE__ */ new Map(), w[L("finalized")] = /* @__PURE__ */ new Map(), X == null || X({ ReactiveElement: w }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.1.1");
|
|
457
457
|
/**
|
|
458
458
|
* @license
|
|
459
459
|
* Copyright 2017 Google LLC
|
|
460
460
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
461
461
|
*/
|
|
462
|
-
const
|
|
463
|
-
\f\r]`,
|
|
464
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), yt = /'/g,
|
|
465
|
-
function
|
|
462
|
+
const H = globalThis, F = H.trustedTypes, gt = F ? F.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Nt = "$lit$", b = `lit$${Math.random().toFixed(9).slice(2)}$`, Mt = "?" + b, ee = `<${Mt}>`, E = document, j = () => E.createComment(""), D = (s) => s === null || typeof s != "object" && typeof s != "function", lt = Array.isArray, se = (s) => lt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", tt = `[
|
|
463
|
+
\f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, bt = /-->/g, _t = />/g, $ = RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^
|
|
464
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), yt = /'/g, $t = /"/g, Ut = /^(?:script|style|textarea|title)$/i, ie = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), k = ie(1), S = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), wt = /* @__PURE__ */ new WeakMap(), A = E.createTreeWalker(E, 129);
|
|
465
|
+
function Lt(s, t) {
|
|
466
466
|
if (!lt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
467
|
-
return
|
|
467
|
+
return gt !== void 0 ? gt.createHTML(t) : t;
|
|
468
468
|
}
|
|
469
|
-
const
|
|
469
|
+
const re = (s, t) => {
|
|
470
470
|
const e = s.length - 1, i = [];
|
|
471
|
-
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o =
|
|
471
|
+
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = U;
|
|
472
472
|
for (let l = 0; l < e; l++) {
|
|
473
473
|
const a = s[l];
|
|
474
|
-
let
|
|
475
|
-
for (;
|
|
476
|
-
const
|
|
477
|
-
n += o ===
|
|
474
|
+
let h, c, d = -1, f = 0;
|
|
475
|
+
for (; f < a.length && (o.lastIndex = f, c = o.exec(a), c !== null); ) f = o.lastIndex, o === U ? c[1] === "!--" ? o = bt : c[1] !== void 0 ? o = _t : c[2] !== void 0 ? (Ut.test(c[2]) && (r = RegExp("</" + c[2], "g")), o = $) : c[3] !== void 0 && (o = $) : o === $ ? c[0] === ">" ? (o = r ?? U, d = -1) : c[1] === void 0 ? d = -2 : (d = o.lastIndex - c[2].length, h = c[1], o = c[3] === void 0 ? $ : c[3] === '"' ? $t : yt) : o === $t || o === yt ? o = $ : o === bt || o === _t ? o = U : (o = $, r = void 0);
|
|
476
|
+
const g = o === $ && s[l + 1].startsWith("/>") ? " " : "";
|
|
477
|
+
n += o === U ? a + ee : d >= 0 ? (i.push(h), a.slice(0, d) + Nt + a.slice(d) + b + g) : a + b + (d === -2 ? l : g);
|
|
478
478
|
}
|
|
479
|
-
return [
|
|
479
|
+
return [Lt(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
480
480
|
};
|
|
481
|
-
class
|
|
481
|
+
class z {
|
|
482
482
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
483
483
|
let r;
|
|
484
484
|
this.parts = [];
|
|
485
485
|
let n = 0, o = 0;
|
|
486
|
-
const l = t.length - 1, a = this.parts, [
|
|
487
|
-
if (this.el =
|
|
488
|
-
const
|
|
489
|
-
|
|
486
|
+
const l = t.length - 1, a = this.parts, [h, c] = re(t, e);
|
|
487
|
+
if (this.el = z.createElement(h, i), A.currentNode = this.el.content, e === 2 || e === 3) {
|
|
488
|
+
const d = this.el.content.firstChild;
|
|
489
|
+
d.replaceWith(...d.childNodes);
|
|
490
490
|
}
|
|
491
|
-
for (; (r =
|
|
491
|
+
for (; (r = A.nextNode()) !== null && a.length < l; ) {
|
|
492
492
|
if (r.nodeType === 1) {
|
|
493
|
-
if (r.hasAttributes()) for (const
|
|
494
|
-
const
|
|
495
|
-
a.push({ type: 1, index: n, name:
|
|
496
|
-
} else
|
|
493
|
+
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(Nt)) {
|
|
494
|
+
const f = c[o++], g = r.getAttribute(d).split(b), Y = /([.?@])?(.*)/.exec(f);
|
|
495
|
+
a.push({ type: 1, index: n, name: Y[2], strings: g, ctor: Y[1] === "." ? oe : Y[1] === "?" ? ae : Y[1] === "@" ? le : Z }), r.removeAttribute(d);
|
|
496
|
+
} else d.startsWith(b) && (a.push({ type: 6, index: n }), r.removeAttribute(d));
|
|
497
497
|
if (Ut.test(r.tagName)) {
|
|
498
|
-
const
|
|
499
|
-
if (
|
|
500
|
-
r.textContent =
|
|
501
|
-
for (let
|
|
502
|
-
r.append(
|
|
498
|
+
const d = r.textContent.split(b), f = d.length - 1;
|
|
499
|
+
if (f > 0) {
|
|
500
|
+
r.textContent = F ? F.emptyScript : "";
|
|
501
|
+
for (let g = 0; g < f; g++) r.append(d[g], j()), A.nextNode(), a.push({ type: 2, index: ++n });
|
|
502
|
+
r.append(d[f], j());
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
} else if (r.nodeType === 8) if (r.data === Mt) a.push({ type: 2, index: n });
|
|
506
506
|
else {
|
|
507
|
-
let
|
|
508
|
-
for (; (
|
|
507
|
+
let d = -1;
|
|
508
|
+
for (; (d = r.data.indexOf(b, d + 1)) !== -1; ) a.push({ type: 7, index: n }), d += b.length - 1;
|
|
509
509
|
}
|
|
510
510
|
n++;
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
static createElement(t, e) {
|
|
514
|
-
const i =
|
|
514
|
+
const i = E.createElement("template");
|
|
515
515
|
return i.innerHTML = t, i;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function O(s, t, e = s, i) {
|
|
519
519
|
var o, l;
|
|
520
|
-
if (t ===
|
|
520
|
+
if (t === S) return t;
|
|
521
521
|
let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
|
522
|
-
const n =
|
|
523
|
-
return (r == null ? void 0 : r.constructor) !== n && ((l = r == null ? void 0 : r._$AO) == null || l.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t =
|
|
522
|
+
const n = D(t) ? void 0 : t._$litDirective$;
|
|
523
|
+
return (r == null ? void 0 : r.constructor) !== n && ((l = r == null ? void 0 : r._$AO) == null || l.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = O(s, r._$AS(s, t.values), r, i)), t;
|
|
524
524
|
}
|
|
525
|
-
class
|
|
525
|
+
class ne {
|
|
526
526
|
constructor(t, e) {
|
|
527
527
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
528
528
|
}
|
|
@@ -533,24 +533,24 @@ class se {
|
|
|
533
533
|
return this._$AM._$AU;
|
|
534
534
|
}
|
|
535
535
|
u(t) {
|
|
536
|
-
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ??
|
|
537
|
-
|
|
538
|
-
let n =
|
|
536
|
+
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? E).importNode(e, !0);
|
|
537
|
+
A.currentNode = r;
|
|
538
|
+
let n = A.nextNode(), o = 0, l = 0, a = i[0];
|
|
539
539
|
for (; a !== void 0; ) {
|
|
540
540
|
if (o === a.index) {
|
|
541
|
-
let
|
|
542
|
-
a.type === 2 ?
|
|
541
|
+
let h;
|
|
542
|
+
a.type === 2 ? h = new I(n, n.nextSibling, this, t) : a.type === 1 ? h = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (h = new he(n, this, t)), this._$AV.push(h), a = i[++l];
|
|
543
543
|
}
|
|
544
|
-
o !== (a == null ? void 0 : a.index) && (n =
|
|
544
|
+
o !== (a == null ? void 0 : a.index) && (n = A.nextNode(), o++);
|
|
545
545
|
}
|
|
546
|
-
return
|
|
546
|
+
return A.currentNode = E, r;
|
|
547
547
|
}
|
|
548
548
|
p(t) {
|
|
549
549
|
let e = 0;
|
|
550
550
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
class
|
|
553
|
+
class I {
|
|
554
554
|
get _$AU() {
|
|
555
555
|
var t;
|
|
556
556
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -570,7 +570,7 @@ class j {
|
|
|
570
570
|
return this._$AB;
|
|
571
571
|
}
|
|
572
572
|
_$AI(t, e = this) {
|
|
573
|
-
t =
|
|
573
|
+
t = O(this, t, e), D(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== S && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : se(t) ? this.k(t) : this._(t);
|
|
574
574
|
}
|
|
575
575
|
O(t) {
|
|
576
576
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -579,26 +579,26 @@ class j {
|
|
|
579
579
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
580
580
|
}
|
|
581
581
|
_(t) {
|
|
582
|
-
this._$AH !== p &&
|
|
582
|
+
this._$AH !== p && D(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
|
|
583
583
|
}
|
|
584
584
|
$(t) {
|
|
585
585
|
var n;
|
|
586
|
-
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
586
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = z.createElement(Lt(i.h, i.h[0]), this.options)), i);
|
|
587
587
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === r) this._$AH.p(e);
|
|
588
588
|
else {
|
|
589
|
-
const o = new
|
|
589
|
+
const o = new ne(r, this), l = o.u(this.options);
|
|
590
590
|
o.p(e), this.T(l), this._$AH = o;
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
_$AC(t) {
|
|
594
|
-
let e =
|
|
595
|
-
return e === void 0 &&
|
|
594
|
+
let e = wt.get(t.strings);
|
|
595
|
+
return e === void 0 && wt.set(t.strings, e = new z(t)), e;
|
|
596
596
|
}
|
|
597
597
|
k(t) {
|
|
598
598
|
lt(this._$AH) || (this._$AH = [], this._$AR());
|
|
599
599
|
const e = this._$AH;
|
|
600
600
|
let i, r = 0;
|
|
601
|
-
for (const n of t) r === e.length ? e.push(i = new
|
|
601
|
+
for (const n of t) r === e.length ? e.push(i = new I(this.O(j()), this.O(j()), this, this.options)) : i = e[r], i._$AI(n), r++;
|
|
602
602
|
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
|
603
603
|
}
|
|
604
604
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -613,7 +613,7 @@ class j {
|
|
|
613
613
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
class
|
|
616
|
+
class Z {
|
|
617
617
|
get tagName() {
|
|
618
618
|
return this.element.tagName;
|
|
619
619
|
}
|
|
@@ -626,11 +626,11 @@ class J {
|
|
|
626
626
|
_$AI(t, e = this, i, r) {
|
|
627
627
|
const n = this.strings;
|
|
628
628
|
let o = !1;
|
|
629
|
-
if (n === void 0) t =
|
|
629
|
+
if (n === void 0) t = O(this, t, e, 0), o = !D(t) || t !== this._$AH && t !== S, o && (this._$AH = t);
|
|
630
630
|
else {
|
|
631
631
|
const l = t;
|
|
632
|
-
let a,
|
|
633
|
-
for (t = n[0], a = 0; a < n.length - 1; a++)
|
|
632
|
+
let a, h;
|
|
633
|
+
for (t = n[0], a = 0; a < n.length - 1; a++) h = O(this, l[i + a], e, a), h === S && (h = this._$AH[a]), o || (o = !D(h) || h !== this._$AH[a]), h === p ? t = p : t !== p && (t += (h ?? "") + n[a + 1]), this._$AH[a] = h;
|
|
634
634
|
}
|
|
635
635
|
o && !r && this.j(t);
|
|
636
636
|
}
|
|
@@ -638,7 +638,7 @@ class J {
|
|
|
638
638
|
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
class
|
|
641
|
+
class oe extends Z {
|
|
642
642
|
constructor() {
|
|
643
643
|
super(...arguments), this.type = 3;
|
|
644
644
|
}
|
|
@@ -646,7 +646,7 @@ class ie extends J {
|
|
|
646
646
|
this.element[this.name] = t === p ? void 0 : t;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
class
|
|
649
|
+
class ae extends Z {
|
|
650
650
|
constructor() {
|
|
651
651
|
super(...arguments), this.type = 4;
|
|
652
652
|
}
|
|
@@ -654,12 +654,12 @@ class re extends J {
|
|
|
654
654
|
this.element.toggleAttribute(this.name, !!t && t !== p);
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
class
|
|
657
|
+
class le extends Z {
|
|
658
658
|
constructor(t, e, i, r, n) {
|
|
659
659
|
super(t, e, i, r, n), this.type = 5;
|
|
660
660
|
}
|
|
661
661
|
_$AI(t, e = this) {
|
|
662
|
-
if ((t =
|
|
662
|
+
if ((t = O(this, t, e, 0) ?? p) === S) return;
|
|
663
663
|
const i = this._$AH, r = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== p && (i === p || r);
|
|
664
664
|
r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
665
665
|
}
|
|
@@ -668,7 +668,7 @@ class ne extends J {
|
|
|
668
668
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
|
-
class
|
|
671
|
+
class he {
|
|
672
672
|
constructor(t, e, i) {
|
|
673
673
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
674
674
|
}
|
|
@@ -676,17 +676,17 @@ class oe {
|
|
|
676
676
|
return this._$AM._$AU;
|
|
677
677
|
}
|
|
678
678
|
_$AI(t) {
|
|
679
|
-
|
|
679
|
+
O(this, t);
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
-
const
|
|
683
|
-
|
|
684
|
-
const
|
|
682
|
+
const et = H.litHtmlPolyfillSupport;
|
|
683
|
+
et == null || et(z, I), (H.litHtmlVersions ?? (H.litHtmlVersions = [])).push("3.3.1");
|
|
684
|
+
const ce = (s, t, e) => {
|
|
685
685
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
686
686
|
let r = i._$litPart$;
|
|
687
687
|
if (r === void 0) {
|
|
688
688
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
689
|
-
i._$litPart$ = r = new
|
|
689
|
+
i._$litPart$ = r = new I(t.insertBefore(j(), n), n, void 0, e ?? {});
|
|
690
690
|
}
|
|
691
691
|
return r._$AI(s), r;
|
|
692
692
|
};
|
|
@@ -695,8 +695,8 @@ const ae = (s, t, e) => {
|
|
|
695
695
|
* Copyright 2017 Google LLC
|
|
696
696
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
697
697
|
*/
|
|
698
|
-
const
|
|
699
|
-
let
|
|
698
|
+
const x = globalThis;
|
|
699
|
+
let v = class extends w {
|
|
700
700
|
constructor() {
|
|
701
701
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
702
702
|
}
|
|
@@ -707,7 +707,7 @@ let _ = class extends y {
|
|
|
707
707
|
}
|
|
708
708
|
update(t) {
|
|
709
709
|
const e = this.render();
|
|
710
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
710
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ce(e, this.renderRoot, this.renderOptions);
|
|
711
711
|
}
|
|
712
712
|
connectedCallback() {
|
|
713
713
|
var t;
|
|
@@ -718,20 +718,20 @@ let _ = class extends y {
|
|
|
718
718
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
719
719
|
}
|
|
720
720
|
render() {
|
|
721
|
-
return
|
|
721
|
+
return S;
|
|
722
722
|
}
|
|
723
723
|
};
|
|
724
|
-
var
|
|
725
|
-
|
|
726
|
-
const
|
|
727
|
-
|
|
728
|
-
(
|
|
724
|
+
var Tt;
|
|
725
|
+
v._$litElement$ = !0, v.finalized = !0, (Tt = x.litElementHydrateSupport) == null || Tt.call(x, { LitElement: v });
|
|
726
|
+
const st = x.litElementPolyfillSupport;
|
|
727
|
+
st == null || st({ LitElement: v });
|
|
728
|
+
(x.litElementVersions ?? (x.litElementVersions = [])).push("4.2.1");
|
|
729
729
|
/**
|
|
730
730
|
* @license
|
|
731
731
|
* Copyright 2017 Google LLC
|
|
732
732
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
733
733
|
*/
|
|
734
|
-
const
|
|
734
|
+
const G = (s) => (t, e) => {
|
|
735
735
|
e !== void 0 ? e.addInitializer(() => {
|
|
736
736
|
customElements.define(s, t);
|
|
737
737
|
}) : customElements.define(s, t);
|
|
@@ -741,7 +741,7 @@ const z = (s) => (t, e) => {
|
|
|
741
741
|
* Copyright 2017 Google LLC
|
|
742
742
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
743
743
|
*/
|
|
744
|
-
const
|
|
744
|
+
const de = { attribute: !0, type: String, converter: V, reflect: !1, hasChanged: at }, pe = (s = de, t, e) => {
|
|
745
745
|
const { kind: i, metadata: r } = e;
|
|
746
746
|
let n = globalThis.litPropertyMetadata.get(r);
|
|
747
747
|
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), i === "setter" && ((s = Object.create(s)).wrapped = !0), n.set(e.name, s), i === "accessor") {
|
|
@@ -762,8 +762,8 @@ const le = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged:
|
|
|
762
762
|
}
|
|
763
763
|
throw Error("Unsupported decorator location: " + i);
|
|
764
764
|
};
|
|
765
|
-
function
|
|
766
|
-
return (t, e) => typeof e == "object" ?
|
|
765
|
+
function u(s) {
|
|
766
|
+
return (t, e) => typeof e == "object" ? pe(s, t, e) : ((i, r, n) => {
|
|
767
767
|
const o = r.hasOwnProperty(n);
|
|
768
768
|
return r.constructor.createProperty(n, i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
|
769
769
|
})(s, t, e);
|
|
@@ -774,9 +774,36 @@ function f(s) {
|
|
|
774
774
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
775
775
|
*/
|
|
776
776
|
function Ht(s) {
|
|
777
|
-
return
|
|
777
|
+
return u({ ...s, state: !0, attribute: !1 });
|
|
778
|
+
}
|
|
779
|
+
function ue(s, t = "this", e) {
|
|
780
|
+
return function(i, r, n) {
|
|
781
|
+
const o = i.connectedCallback, l = i.disconnectedCallback;
|
|
782
|
+
i.connectedCallback = function() {
|
|
783
|
+
const a = t === "this" ? this : t, h = Array.isArray(s) ? s : [s];
|
|
784
|
+
this.__eventListenerRemovers ?? (this.__eventListenerRemovers = []);
|
|
785
|
+
for (const c of h) {
|
|
786
|
+
const d = this[r].bind(this);
|
|
787
|
+
a.addEventListener(c, d), this.__eventListenerRemovers.push(() => a.removeEventListener(c, d));
|
|
788
|
+
}
|
|
789
|
+
o == null || o.call(this);
|
|
790
|
+
}, i.disconnectedCallback = function() {
|
|
791
|
+
var a;
|
|
792
|
+
(a = this.__eventListenerRemovers) == null || a.forEach((h) => h()), this.__eventListenerRemovers = [], l == null || l.call(this);
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
const Rt = "nte-group-open-close";
|
|
797
|
+
function jt(s, t) {
|
|
798
|
+
document.dispatchEvent(
|
|
799
|
+
new CustomEvent(Rt, {
|
|
800
|
+
bubbles: !1,
|
|
801
|
+
composed: !0,
|
|
802
|
+
detail: { open: s, groupName: t }
|
|
803
|
+
})
|
|
804
|
+
);
|
|
778
805
|
}
|
|
779
|
-
function
|
|
806
|
+
function fe(s, t) {
|
|
780
807
|
const e = document.createElement("template");
|
|
781
808
|
return e.innerHTML = s.trim(), t.append(e.content.cloneNode(!0)), new Proxy({}, {
|
|
782
809
|
get(i, r) {
|
|
@@ -791,32 +818,32 @@ function ce(s, t) {
|
|
|
791
818
|
}
|
|
792
819
|
});
|
|
793
820
|
}
|
|
794
|
-
const
|
|
821
|
+
const ht = class ht extends w {
|
|
795
822
|
constructor(t) {
|
|
796
823
|
super();
|
|
797
824
|
const e = this.createRenderRoot();
|
|
798
|
-
this.$ =
|
|
825
|
+
this.$ = fe(t, e);
|
|
799
826
|
}
|
|
800
827
|
connectedCallback() {
|
|
801
828
|
super.connectedCallback();
|
|
802
829
|
let t = this.css;
|
|
803
830
|
Array.isArray(t) || (t = [t]);
|
|
804
|
-
const e = t.map((i) => i instanceof Ot ? i.styleSheet :
|
|
831
|
+
const e = t.map((i) => i instanceof Ot ? i.styleSheet : T(i).styleSheet);
|
|
805
832
|
this.shadowRoot.adoptedStyleSheets = e;
|
|
806
833
|
}
|
|
807
834
|
};
|
|
808
|
-
|
|
835
|
+
ht.DEFINITION = {
|
|
809
836
|
classes: [],
|
|
810
837
|
attributes: {}
|
|
811
838
|
};
|
|
812
|
-
let
|
|
839
|
+
let At = ht;
|
|
813
840
|
/**
|
|
814
841
|
* @license
|
|
815
842
|
* Copyright 2017 Google LLC
|
|
816
843
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
817
844
|
*/
|
|
818
|
-
const
|
|
819
|
-
class
|
|
845
|
+
const Dt = { ATTRIBUTE: 1, CHILD: 2 }, zt = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
|
846
|
+
class It {
|
|
820
847
|
constructor(t) {
|
|
821
848
|
}
|
|
822
849
|
get _$AU() {
|
|
@@ -837,10 +864,10 @@ class Rt {
|
|
|
837
864
|
* Copyright 2018 Google LLC
|
|
838
865
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
839
866
|
*/
|
|
840
|
-
const xt =
|
|
867
|
+
const xt = zt(class extends It {
|
|
841
868
|
constructor(s) {
|
|
842
869
|
var t;
|
|
843
|
-
if (super(s), s.type !==
|
|
870
|
+
if (super(s), s.type !== Dt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
844
871
|
}
|
|
845
872
|
render(s) {
|
|
846
873
|
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
|
@@ -858,17 +885,17 @@ const xt = Dt(class extends Rt {
|
|
|
858
885
|
const o = !!t[n];
|
|
859
886
|
o === this.st.has(n) || (r = this.nt) != null && r.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
|
|
860
887
|
}
|
|
861
|
-
return
|
|
888
|
+
return S;
|
|
862
889
|
}
|
|
863
|
-
}),
|
|
864
|
-
var
|
|
865
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
890
|
+
}), ve = "*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a,i{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}slot{display:contents}:host{--backdrop: rgb(from var(--nt-dark) r g b / .5);--header-background: transparent;--background-color: var(--nt-soft-primary);--shadow-color: rgb(from var(--nt-dark) r g b / .5);--main-padding: 0;--header-padding: var(--nt-space);position:fixed;top:0;right:0;height:100vh;width:33%;min-width:250px;max-width:400px;z-index:2000;padding:0;isolation:isolate;display:block}:host[opened]{display:block}#offcanvas{display:flex;flex-direction:column;width:100%;height:100%;background-color:var(--background-color);box-shadow:0 0 10px var(--shadow-color);transition:transform .2s ease-in-out;transform:translate(0)}#offcanvas.closed{transform:translate(100%)}#header{display:flex;width:100%;flex-direction:row;justify-content:space-between;align-items:center;background-color:var(--header-background);flex-grow:0;padding:var(--header-padding)}#header:has(>slot[empty]){display:none}#main{display:flex;width:100%;flex-grow:1;padding:var(--main-padding);min-height:200px;overflow:auto;scroll-behavior:auto;scrollbar-gutter:auto;height:100%}#footer{display:flex;width:100%;flex-direction:row;justify-content:space-between;align-items:center;margin-top:auto;flex-grow:0;padding:var(--padding)}#footer:has(>slot[empty]){display:none}#backdrop{opacity:1;transition:opacity .2s ease-in-out;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--backdrop);z-index:-1;display:block}#backdrop.closed{opacity:0}";
|
|
891
|
+
var me = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, W = (s, t, e, i) => {
|
|
892
|
+
for (var r = i > 1 ? void 0 : i ? ge(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
866
893
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
867
|
-
return i && r &&
|
|
894
|
+
return i && r && me(t, e, r), r;
|
|
868
895
|
};
|
|
869
|
-
let
|
|
896
|
+
let y = class extends v {
|
|
870
897
|
constructor() {
|
|
871
|
-
super(), this.backdrop = !0, this.opened = !1, this.closedClass = !0, this.addEventListener("click", (s) => {
|
|
898
|
+
super(), this.backdrop = !0, this.opened = !1, this.dataGroupName = "", this.closedClass = !0, this.addEventListener("click", (s) => {
|
|
872
899
|
s === void 0 || !s.target || !(s.target instanceof HTMLElement) || s.target.closest("[data-nt-dismiss='offcanvas']") !== null && this.close();
|
|
873
900
|
});
|
|
874
901
|
}
|
|
@@ -888,10 +915,10 @@ let x = class extends _ {
|
|
|
888
915
|
this.opened = !this.opened;
|
|
889
916
|
}
|
|
890
917
|
async updated(s) {
|
|
891
|
-
s.has("opened") && (this.opened ? (this.style.display = "block", await
|
|
918
|
+
s.has("opened") && (this.dataGroupName !== "" && jt(this.opened, this.dataGroupName), this.opened ? (this.style.display = "block", await ct(1), nt.observeEmptySlots(this), this.closedClass = !1) : (this.closedClass = !0, await ct(400), this.style.display = "none"));
|
|
892
919
|
}
|
|
893
920
|
render() {
|
|
894
|
-
return
|
|
921
|
+
return k`
|
|
895
922
|
<div
|
|
896
923
|
id="backdrop"
|
|
897
924
|
part="backdrop"
|
|
@@ -921,28 +948,31 @@ let x = class extends _ {
|
|
|
921
948
|
`;
|
|
922
949
|
}
|
|
923
950
|
};
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
],
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
],
|
|
931
|
-
|
|
951
|
+
y.styles = [T(ve)];
|
|
952
|
+
W([
|
|
953
|
+
u({ type: Boolean, reflect: !0 })
|
|
954
|
+
], y.prototype, "backdrop", 2);
|
|
955
|
+
W([
|
|
956
|
+
u({ type: Boolean, reflect: !0 })
|
|
957
|
+
], y.prototype, "opened", 2);
|
|
958
|
+
W([
|
|
959
|
+
u({ type: String, attribute: "data-group-name" })
|
|
960
|
+
], y.prototype, "dataGroupName", 2);
|
|
961
|
+
W([
|
|
932
962
|
Ht()
|
|
933
|
-
],
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
],
|
|
937
|
-
const
|
|
938
|
-
var
|
|
939
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
963
|
+
], y.prototype, "closedClass", 2);
|
|
964
|
+
y = W([
|
|
965
|
+
G(y.is)
|
|
966
|
+
], y);
|
|
967
|
+
const be = ":host{--container-width: var(--nt-container-width);--text-color: var(--nt-text);--hover-color: var(--nt-primary);--hover-text-color: var(--nt-text-on-primary);--transition: .2s ease-in-out;--submenu-bg: var(--nt-light);--submenu-text-color: var(--nt-text);--justify-content: center;--sidemenu-bg: var(--nt-soft-primary);--justify-sidebar-burger: flex-end;--height: auto;--default-alpha: .7;height:var(--height);display:block}nav{height:100%}#main{height:100%}#burger-wrapper{padding:15px}#text{padding-right:10px}#burger-default{cursor:pointer}#burger-default slot::slotted(span){color:rgb(from var(--text-color) r g b/var(--default-alpha));transition:color var(--transition)}#burger-default nte-burger{--color: rgb(from var(--text-color) r g b / var(--default-alpha))}#burger-default:hover slot::slotted(span){color:rgb(from var(--text-color) r g b/1)}#burger-default:hover nte-burger{--color: rgb(from var(--text-color) r g b / 1)}";
|
|
968
|
+
var _e = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, N = (s, t, e, i) => {
|
|
969
|
+
for (var r = i > 1 ? void 0 : i ? ye(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
940
970
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
941
|
-
return i && r &&
|
|
971
|
+
return i && r && _e(t, e, r), r;
|
|
942
972
|
};
|
|
943
|
-
let
|
|
973
|
+
let m = class extends v {
|
|
944
974
|
constructor() {
|
|
945
|
-
super(), this.mode = "slave", this.breakpoint = "99999px", this.transferTo = "", this._isTransferred = !1;
|
|
975
|
+
super(), this.mode = "slave", this.breakpoint = "99999px", this.transferTo = "", this.dataGroupName = "", this._isTransferred = !1;
|
|
946
976
|
}
|
|
947
977
|
getOffcanvas() {
|
|
948
978
|
return this.transferTo ? document.querySelector(this.transferTo) : null;
|
|
@@ -952,7 +982,7 @@ let b = class extends _ {
|
|
|
952
982
|
return s ? s.querySelector("nte-nav") : null;
|
|
953
983
|
}
|
|
954
984
|
render() {
|
|
955
|
-
return
|
|
985
|
+
return k` <nav>
|
|
956
986
|
<div id="burger-wrapper" ?hidden=${!this._isTransferred}>
|
|
957
987
|
<slot
|
|
958
988
|
name="burger"
|
|
@@ -966,9 +996,13 @@ let b = class extends _ {
|
|
|
966
996
|
}}
|
|
967
997
|
>
|
|
968
998
|
<!-- fallback icon -->
|
|
969
|
-
${this._isTransferred ?
|
|
999
|
+
${this._isTransferred ? k`<div id="burger-default" style="display:flex; align-items: center; justify-content: center;">
|
|
970
1000
|
<div id="text"><slot name="menu-text"></slot></div>
|
|
971
|
-
<nte-burger
|
|
1001
|
+
<nte-burger
|
|
1002
|
+
data-group-name="${this.dataGroupName}"
|
|
1003
|
+
id="open-burger"
|
|
1004
|
+
onclick="this.open = true"
|
|
1005
|
+
></nte-burger>
|
|
972
1006
|
</div>` : ""}
|
|
973
1007
|
</slot>
|
|
974
1008
|
</div>
|
|
@@ -1001,87 +1035,90 @@ let b = class extends _ {
|
|
|
1001
1035
|
!t.contains("nav-vertical") && !t.contains("nav-horizontal") && t.add(this.closest("nte-offcanvas") === null ? "nav-horizontal" : "nav-vertical");
|
|
1002
1036
|
}
|
|
1003
1037
|
async connectedCallback() {
|
|
1004
|
-
await
|
|
1005
|
-
|
|
1038
|
+
await Yt(), super.connectedCallback(), this.mode !== "slave" && this.transferTo !== "" && (this._isTransferred = !1, this.breakpoint !== "" && (dt(this.breakpoint) || (this._isTransferred = !0), window.addEventListener("breakpoint-changed", (s) => {
|
|
1039
|
+
dt(this.breakpoint) ? this._isTransferred = !1 : this._isTransferred = !0;
|
|
1006
1040
|
})));
|
|
1007
1041
|
}
|
|
1008
1042
|
};
|
|
1009
|
-
|
|
1043
|
+
m.DEFINITION = {
|
|
1010
1044
|
classes: ["align-left", "align-right", "align-center"],
|
|
1011
1045
|
attributes: {}
|
|
1012
1046
|
};
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
],
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
],
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
],
|
|
1023
|
-
|
|
1047
|
+
m.styles = [T(be)];
|
|
1048
|
+
N([
|
|
1049
|
+
u({ type: String, reflect: !0 })
|
|
1050
|
+
], m.prototype, "mode", 2);
|
|
1051
|
+
N([
|
|
1052
|
+
u({ type: String, reflect: !0 })
|
|
1053
|
+
], m.prototype, "breakpoint", 2);
|
|
1054
|
+
N([
|
|
1055
|
+
u({ type: String, reflect: !0, attribute: "transfer-to" })
|
|
1056
|
+
], m.prototype, "transferTo", 2);
|
|
1057
|
+
N([
|
|
1058
|
+
u({ type: String, reflect: !1, attribute: "data-group-name" })
|
|
1059
|
+
], m.prototype, "dataGroupName", 2);
|
|
1060
|
+
N([
|
|
1024
1061
|
Ht()
|
|
1025
|
-
],
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
],
|
|
1062
|
+
], m.prototype, "_isTransferred", 2);
|
|
1063
|
+
m = N([
|
|
1064
|
+
G("nte-nav")
|
|
1065
|
+
], m);
|
|
1029
1066
|
/**
|
|
1030
1067
|
* @license
|
|
1031
1068
|
* Copyright 2020 Google LLC
|
|
1032
1069
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1033
1070
|
*/
|
|
1034
|
-
const
|
|
1071
|
+
const $e = (s) => s.strings === void 0;
|
|
1035
1072
|
/**
|
|
1036
1073
|
* @license
|
|
1037
1074
|
* Copyright 2017 Google LLC
|
|
1038
1075
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1039
1076
|
*/
|
|
1040
|
-
const
|
|
1077
|
+
const R = (s, t) => {
|
|
1041
1078
|
var i;
|
|
1042
1079
|
const e = s._$AN;
|
|
1043
1080
|
if (e === void 0) return !1;
|
|
1044
|
-
for (const r of e) (i = r._$AO) == null || i.call(r, t, !1),
|
|
1081
|
+
for (const r of e) (i = r._$AO) == null || i.call(r, t, !1), R(r, t);
|
|
1045
1082
|
return !0;
|
|
1046
|
-
},
|
|
1083
|
+
}, J = (s) => {
|
|
1047
1084
|
let t, e;
|
|
1048
1085
|
do {
|
|
1049
1086
|
if ((t = s._$AM) === void 0) break;
|
|
1050
1087
|
e = t._$AN, e.delete(s), s = t;
|
|
1051
1088
|
} while ((e == null ? void 0 : e.size) === 0);
|
|
1052
|
-
},
|
|
1089
|
+
}, Gt = (s) => {
|
|
1053
1090
|
for (let t; t = s._$AM; s = t) {
|
|
1054
1091
|
let e = t._$AN;
|
|
1055
1092
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
1056
1093
|
else if (e.has(s)) break;
|
|
1057
|
-
e.add(s),
|
|
1094
|
+
e.add(s), xe(t);
|
|
1058
1095
|
}
|
|
1059
1096
|
};
|
|
1060
|
-
function
|
|
1061
|
-
this._$AN !== void 0 ? (
|
|
1097
|
+
function we(s) {
|
|
1098
|
+
this._$AN !== void 0 ? (J(this), this._$AM = s, Gt(this)) : this._$AM = s;
|
|
1062
1099
|
}
|
|
1063
|
-
function
|
|
1100
|
+
function Ae(s, t = !1, e = 0) {
|
|
1064
1101
|
const i = this._$AH, r = this._$AN;
|
|
1065
|
-
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++)
|
|
1066
|
-
else i != null && (
|
|
1067
|
-
else
|
|
1102
|
+
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) R(i[n], !1), J(i[n]);
|
|
1103
|
+
else i != null && (R(i, !1), J(i));
|
|
1104
|
+
else R(this, s);
|
|
1068
1105
|
}
|
|
1069
|
-
const
|
|
1070
|
-
s.type ==
|
|
1106
|
+
const xe = (s) => {
|
|
1107
|
+
s.type == Dt.CHILD && (s._$AP ?? (s._$AP = Ae), s._$AQ ?? (s._$AQ = we));
|
|
1071
1108
|
};
|
|
1072
|
-
class
|
|
1109
|
+
class Ee extends It {
|
|
1073
1110
|
constructor() {
|
|
1074
1111
|
super(...arguments), this._$AN = void 0;
|
|
1075
1112
|
}
|
|
1076
1113
|
_$AT(t, e, i) {
|
|
1077
|
-
super._$AT(t, e, i),
|
|
1114
|
+
super._$AT(t, e, i), Gt(this), this.isConnected = t._$AU;
|
|
1078
1115
|
}
|
|
1079
1116
|
_$AO(t, e = !0) {
|
|
1080
1117
|
var i, r;
|
|
1081
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (
|
|
1118
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (R(this, t), J(this));
|
|
1082
1119
|
}
|
|
1083
1120
|
setValue(t) {
|
|
1084
|
-
if (
|
|
1121
|
+
if ($e(this._$Ct)) this._$Ct._$AI(t, this);
|
|
1085
1122
|
else {
|
|
1086
1123
|
const e = [...this._$Ct._$AH];
|
|
1087
1124
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
@@ -1097,10 +1134,10 @@ class ye extends Rt {
|
|
|
1097
1134
|
* Copyright 2020 Google LLC
|
|
1098
1135
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1099
1136
|
*/
|
|
1100
|
-
const
|
|
1101
|
-
class
|
|
1137
|
+
const Et = () => new Se();
|
|
1138
|
+
class Se {
|
|
1102
1139
|
}
|
|
1103
|
-
const
|
|
1140
|
+
const it = /* @__PURE__ */ new WeakMap(), St = zt(class extends Ee {
|
|
1104
1141
|
render(s) {
|
|
1105
1142
|
return p;
|
|
1106
1143
|
}
|
|
@@ -1112,13 +1149,13 @@ const st = /* @__PURE__ */ new WeakMap(), Et = Dt(class extends ye {
|
|
|
1112
1149
|
rt(s) {
|
|
1113
1150
|
if (this.isConnected || (s = void 0), typeof this.G == "function") {
|
|
1114
1151
|
const t = this.ht ?? globalThis;
|
|
1115
|
-
let e =
|
|
1116
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
1152
|
+
let e = it.get(t);
|
|
1153
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), it.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ht, void 0), e.set(this.G, s), s !== void 0 && this.G.call(this.ht, s);
|
|
1117
1154
|
} else this.G.value = s;
|
|
1118
1155
|
}
|
|
1119
1156
|
get lt() {
|
|
1120
1157
|
var s, t;
|
|
1121
|
-
return typeof this.G == "function" ? (s =
|
|
1158
|
+
return typeof this.G == "function" ? (s = it.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
|
1122
1159
|
}
|
|
1123
1160
|
disconnected() {
|
|
1124
1161
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -1126,15 +1163,15 @@ const st = /* @__PURE__ */ new WeakMap(), Et = Dt(class extends ye {
|
|
|
1126
1163
|
reconnected() {
|
|
1127
1164
|
this.rt(this.ct);
|
|
1128
1165
|
}
|
|
1129
|
-
}),
|
|
1130
|
-
var
|
|
1131
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
1166
|
+
}), Ce = "*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a,i{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}slot{display:contents}:host{--bg: transparent;--spacer-bg: transparent;--container-width: var(--nt-container-width, 100%);--brand-height: 80px;--spacer-height: 80px;width:100vw;margin:0}:host(a){height:85px;width:auto}#wrapper{position:relative;left:0;top:0;right:0;width:100%}#spacer{position:relative;top:0;left:0;width:100%;transition:height .3s ease-in-out;height:var(--spacer-height);background-color:var(--spacer-bg)}#navbar{position:absolute;top:0;width:100vw;height:auto;background-color:var(--bg);z-index:1000}#main{width:100vw;display:block}";
|
|
1167
|
+
var Te = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, Wt = (s, t, e, i) => {
|
|
1168
|
+
for (var r = i > 1 ? void 0 : i ? Pe(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
1132
1169
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
1133
|
-
return i && r &&
|
|
1170
|
+
return i && r && Te(t, e, r), r;
|
|
1134
1171
|
};
|
|
1135
|
-
let
|
|
1172
|
+
let K = class extends v {
|
|
1136
1173
|
constructor() {
|
|
1137
|
-
super(), this.navbarRef =
|
|
1174
|
+
super(), this.navbarRef = Et(), this.spacerRef = Et(), this.scrollThreshold = 0, this._lastScrollY = window.scrollY, this._scrollUpPixels = 0, this._debouncer = new Pt(100, 300), document.addEventListener(
|
|
1138
1175
|
"scroll",
|
|
1139
1176
|
async () => {
|
|
1140
1177
|
this.updateScrollState();
|
|
@@ -1150,20 +1187,20 @@ let Y = class extends _ {
|
|
|
1150
1187
|
s > 1 ? this.classList.add("is-scrolled") : this.classList.remove("is-scrolled"), s < this._lastScrollY ? (this._scrollUpPixels += this._lastScrollY - s, this._scrollUpPixels > 10 && s < this.scrollThreshold && this.classList.add("is-scrolling-up")) : (this._scrollUpPixels = 0, this.classList.remove("is-scrolling-up")), s > this.scrollThreshold ? this.classList.add("is-below-threshold") : this.classList.remove("is-below-threshold"), this._lastScrollY = s;
|
|
1151
1188
|
}
|
|
1152
1189
|
async connectedCallback() {
|
|
1153
|
-
this.updateScrollState(), await
|
|
1190
|
+
this.updateScrollState(), await pt(), super.connectedCallback();
|
|
1154
1191
|
}
|
|
1155
1192
|
// Adjust the spacer height on every render
|
|
1156
1193
|
async updated(s) {
|
|
1157
|
-
await
|
|
1194
|
+
await pt(), super.updated(s);
|
|
1158
1195
|
}
|
|
1159
1196
|
firstUpdated(s) {
|
|
1160
1197
|
nt.observeEmptySlots(this);
|
|
1161
1198
|
}
|
|
1162
1199
|
render() {
|
|
1163
|
-
return
|
|
1200
|
+
return k`
|
|
1164
1201
|
<div id="wrapper" part="wrapper">
|
|
1165
|
-
<div id="spacer" part="spacer" ${
|
|
1166
|
-
<div id="navbar" part="navbar" ${
|
|
1202
|
+
<div id="spacer" part="spacer" ${St(this.spacerRef)}></div>
|
|
1203
|
+
<div id="navbar" part="navbar" ${St(this.navbarRef)}>
|
|
1167
1204
|
<div id="brand" part="brand">
|
|
1168
1205
|
<slot name="brand"></slot>
|
|
1169
1206
|
</div>
|
|
@@ -1175,20 +1212,20 @@ let Y = class extends _ {
|
|
|
1175
1212
|
`;
|
|
1176
1213
|
}
|
|
1177
1214
|
};
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
],
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
],
|
|
1185
|
-
const
|
|
1186
|
-
var
|
|
1187
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
1215
|
+
K.styles = [T(Ce)];
|
|
1216
|
+
Wt([
|
|
1217
|
+
u({ type: Number, attribute: "scroll-threshold", reflect: !0 })
|
|
1218
|
+
], K.prototype, "scrollThreshold", 2);
|
|
1219
|
+
K = Wt([
|
|
1220
|
+
G("nte-navbar")
|
|
1221
|
+
], K);
|
|
1222
|
+
const ke = "*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a,i{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}slot{display:contents}:host{--container-width: var(--nt-container-width, 100%);--background: transparent;--text-color: var(--nt-text);--height: auto;--brand-height: 80px;display:block;height:100%;width:100vw}:host(.hide-on-scroll){transition:max-height .3s ease-in-out;max-height:100px}:host(.hide-on-scroll.is-scrolled){max-height:0;overflow:hidden}#main{height:var(--height);transition:height .2s ease-in-out;overflow:visible;width:100%;display:flex;background:var(--background)}#container{width:var(--container-width);margin:0 auto;display:flex}#container #brand{min-width:0;flex-shrink:1;width:auto;align-items:start;display:flex;height:100%;justify-items:center}#container #brand:has(slot[empty]){display:none}#container #nav{display:flex;flex-grow:1;justify-content:end;align-items:center;gap:1rem}";
|
|
1223
|
+
var Oe = Object.getOwnPropertyDescriptor, Ne = (s, t, e, i) => {
|
|
1224
|
+
for (var r = i > 1 ? void 0 : i ? Oe(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
1188
1225
|
(o = s[n]) && (r = o(r) || r);
|
|
1189
1226
|
return r;
|
|
1190
1227
|
};
|
|
1191
|
-
let rt = class extends
|
|
1228
|
+
let rt = class extends v {
|
|
1192
1229
|
constructor() {
|
|
1193
1230
|
super(...arguments), this._isScrolled = !1;
|
|
1194
1231
|
}
|
|
@@ -1206,7 +1243,7 @@ let rt = class extends _ {
|
|
|
1206
1243
|
nt.observeEmptySlots(this), this.updateScrollState();
|
|
1207
1244
|
}
|
|
1208
1245
|
render() {
|
|
1209
|
-
return
|
|
1246
|
+
return k`
|
|
1210
1247
|
<div id="main" part="main">
|
|
1211
1248
|
<div id="container" part="container">
|
|
1212
1249
|
<div id="brand" part="brand">
|
|
@@ -1220,44 +1257,74 @@ let rt = class extends _ {
|
|
|
1220
1257
|
`;
|
|
1221
1258
|
}
|
|
1222
1259
|
};
|
|
1223
|
-
rt.styles = [
|
|
1224
|
-
rt =
|
|
1225
|
-
|
|
1260
|
+
rt.styles = [T(ke)];
|
|
1261
|
+
rt = Ne([
|
|
1262
|
+
G("nte-navbar-line")
|
|
1226
1263
|
], rt);
|
|
1227
|
-
const
|
|
1228
|
-
|
|
1229
|
-
|
|
1264
|
+
const Me = ":host{--size: 40px;--color: var(--nt-text, black);--color-hover: var(--color);--width: 4px;height:var(--size);width:var(--size);display:block}#button{padding:0;width:100%;height:100%;cursor:pointer}.hamburger{display:block;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0 none;background:none;position:relative;transition:transform .4s}.hamburger:hover{--color: var(--color-hover)}:host([open]) .hamburger .bar:nth-of-type(1){transform-origin:center center;transform:translateY(calc(.5em - var(--width) / 2)) rotate(45deg)}:host([open]) .hamburger .bar:nth-of-type(2){opacity:0}:host([open]) .hamburger .bar:nth-of-type(3){transform:translateY(calc(.5em - var(--width) / 2)) rotate(-45deg)}.bar{font-size:var(--size);height:var(--width);width:var(--size);display:block;position:absolute;top:0;background-color:var(--color);transition:.4s}.bar:nth-of-type(1){transform:translateY(calc(.25em - var(--width) / 2))}.bar:nth-of-type(2){transform:translateY(calc(.5em - var(--width) / 2))}.bar:nth-of-type(3){transform:translateY(calc(.75em - var(--width) / 2))}";
|
|
1265
|
+
/**
|
|
1266
|
+
* @license
|
|
1267
|
+
* Copyright 2020 Google LLC
|
|
1268
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1269
|
+
*/
|
|
1270
|
+
const Ue = Symbol.for(""), Le = (s) => {
|
|
1271
|
+
if ((s == null ? void 0 : s.r) === Ue) return s == null ? void 0 : s._$litStatic$;
|
|
1272
|
+
}, Ct = /* @__PURE__ */ new Map(), He = (s) => (t, ...e) => {
|
|
1273
|
+
const i = e.length;
|
|
1274
|
+
let r, n;
|
|
1275
|
+
const o = [], l = [];
|
|
1276
|
+
let a, h = 0, c = !1;
|
|
1277
|
+
for (; h < i; ) {
|
|
1278
|
+
for (a = t[h]; h < i && (n = e[h], (r = Le(n)) !== void 0); ) a += r + t[++h], c = !0;
|
|
1279
|
+
h !== i && l.push(n), o.push(a), h++;
|
|
1280
|
+
}
|
|
1281
|
+
if (h === i && o.push(t[i]), c) {
|
|
1282
|
+
const d = o.join("$$lit$$");
|
|
1283
|
+
(t = Ct.get(d)) === void 0 && (o.raw = o, Ct.set(d, t = o)), e = l;
|
|
1284
|
+
}
|
|
1285
|
+
return s(t, ...e);
|
|
1286
|
+
}, Re = He(k);
|
|
1287
|
+
var je = Object.defineProperty, De = Object.getOwnPropertyDescriptor, B = (s, t, e, i) => {
|
|
1288
|
+
for (var r = i > 1 ? void 0 : i ? De(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
|
1230
1289
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
|
1231
|
-
return i && r &&
|
|
1290
|
+
return i && r && je(t, e, r), r;
|
|
1232
1291
|
};
|
|
1233
|
-
|
|
1234
|
-
<div id="wrapper">
|
|
1235
|
-
<button id="button" class="hamburger">
|
|
1236
|
-
<div class="bar"></div>
|
|
1237
|
-
<div class="bar"></div>
|
|
1238
|
-
<div class="bar"></div>
|
|
1239
|
-
</button>
|
|
1240
|
-
</div>
|
|
1241
|
-
`;
|
|
1242
|
-
let F = class extends it {
|
|
1292
|
+
let C = class extends v {
|
|
1243
1293
|
constructor() {
|
|
1244
|
-
super(
|
|
1294
|
+
super(), this.open = !1, this.text = "Menu", this.dataGroupName = "";
|
|
1295
|
+
}
|
|
1296
|
+
render() {
|
|
1297
|
+
return Re` <button id="button" class="hamburger">
|
|
1298
|
+
<div class="bar"></div>
|
|
1299
|
+
<div class="bar"></div>
|
|
1300
|
+
<div class="bar"></div>
|
|
1301
|
+
</button>`;
|
|
1302
|
+
}
|
|
1303
|
+
listenEvents(s) {
|
|
1304
|
+
s.detail.groupName === this.dataGroupName && (this.open = s.detail.open);
|
|
1245
1305
|
}
|
|
1246
|
-
|
|
1247
|
-
|
|
1306
|
+
update(s) {
|
|
1307
|
+
super.update(s), s.has("open") && this.dataGroupName !== "" && jt(this.open, this.dataGroupName);
|
|
1248
1308
|
}
|
|
1249
1309
|
};
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1310
|
+
C.styles = [T(Me)];
|
|
1311
|
+
B([
|
|
1312
|
+
u({ type: Boolean, attribute: "open", reflect: !0 })
|
|
1313
|
+
], C.prototype, "open", 2);
|
|
1314
|
+
B([
|
|
1315
|
+
u({ type: String, reflect: !0 })
|
|
1316
|
+
], C.prototype, "text", 2);
|
|
1317
|
+
B([
|
|
1318
|
+
u({ type: String, reflect: !1, attribute: "data-group-name" })
|
|
1319
|
+
], C.prototype, "dataGroupName", 2);
|
|
1320
|
+
B([
|
|
1321
|
+
ue(Rt, document)
|
|
1322
|
+
], C.prototype, "listenEvents", 1);
|
|
1323
|
+
C = B([
|
|
1324
|
+
G("nte-burger")
|
|
1325
|
+
], C);
|
|
1259
1326
|
console.log("Loading nte-nav...");
|
|
1260
1327
|
export {
|
|
1261
|
-
|
|
1262
|
-
|
|
1328
|
+
m as NteNav,
|
|
1329
|
+
K as NteNavbar
|
|
1263
1330
|
};
|