@oslokommune/punkt-elements 16.7.3 → 16.7.4
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 +18 -0
- package/dist/accordion-BB1JrONI.cjs +34 -0
- package/dist/accordion-nNH87Y60.js +130 -0
- package/dist/alert-BEEnTiCb.cjs +33 -0
- package/dist/alert-ePJuDtmm.js +171 -0
- package/dist/async-directive-B9P1Qa0k.cjs +1 -0
- package/dist/async-directive-CaQiqjyV.js +55 -0
- package/dist/backlink-Ba03LlbB.cjs +13 -0
- package/dist/backlink-CiwXrQYD.js +38 -0
- package/dist/booleanish-BmcOU-43.js +11 -0
- package/dist/booleanish-jJLlnr6-.cjs +1 -0
- package/dist/breadcrumbs-CD1zib3s.cjs +43 -0
- package/dist/breadcrumbs-CpuVqWhF.js +76 -0
- package/dist/button-BIpd1xJh.js +95 -0
- package/dist/button-D-TOBaJB.cjs +27 -0
- package/dist/calendar-BzEtOJla.js +2031 -0
- package/dist/calendar-E5jJLt8D.cjs +90 -0
- package/dist/card-BYJu1MYm.js +339 -0
- package/dist/card-CUFhMVim.cjs +87 -0
- package/dist/checkbox-BARDb9iV.cjs +31 -0
- package/dist/checkbox-Cspxcvt_.js +111 -0
- package/dist/class-map-C8HuhNzZ.js +27 -0
- package/dist/class-map-CJ-msbHs.cjs +1 -0
- package/dist/classutils-DEL164Ur.js +7 -0
- package/dist/classutils-z8YsPlOf.cjs +1 -0
- package/dist/combobox-BcdLZRDU.js +984 -0
- package/dist/combobox-CGbFTWq_.cjs +135 -0
- package/dist/consent-DeB_5sWH.js +197 -0
- package/dist/consent-hwu7pp3S.cjs +11 -0
- package/dist/datepicker-DpmlsnH_.cjs +273 -0
- package/dist/datepicker-OVd8pmnZ.js +1125 -0
- package/dist/dialog-polyfill.esm-1hPr0gl9.js +280 -0
- package/dist/dialog-polyfill.esm-D3Oinvk0.cjs +1 -0
- package/dist/directive-3THFsVew.js +28 -0
- package/dist/directive-CJ2giQBZ.cjs +1 -0
- package/dist/directive-helpers-D1QSxY17.cjs +1 -0
- package/dist/directive-helpers-Dkv2gKgs.js +25 -0
- package/dist/element-DjtxO-1r.cjs +2 -0
- package/dist/element-cZ85T_aa.js +693 -0
- package/dist/element-with-slot-4J2o3SeU.js +166 -0
- package/dist/element-with-slot-CWoTGA1B.cjs +1 -0
- package/dist/header-DWgPgGfS.cjs +304 -0
- package/dist/header-a6ztVNp3.js +782 -0
- package/dist/heading-BgSWIRii.cjs +1 -0
- package/dist/heading-DiQLPxdf.js +73 -0
- package/dist/helptext-CCBKKLus.js +65 -0
- package/dist/helptext-D-3QfZv5.cjs +24 -0
- package/dist/icon-Co72KtgF.js +86 -0
- package/dist/icon-Dr8sfT2X.cjs +1 -0
- package/dist/if-defined-Cjj8qN-Z.js +5 -0
- package/dist/if-defined-XKOD_t_V.cjs +1 -0
- package/dist/index.d.ts +1 -2
- package/dist/input-element-B1yxcfz4.cjs +1 -0
- package/dist/input-element-Bw1s6NlF.js +643 -0
- package/dist/input-wrapper-BRuVELpK.cjs +54 -0
- package/dist/input-wrapper-CDyHTR1V.js +164 -0
- package/dist/input-wrapper-Dwd-_sKm.cjs +1 -0
- package/dist/input-wrapper-YfTmpSSY.js +117 -0
- package/dist/link-CKAFMz9j.js +89 -0
- package/dist/link-CyTCpI0k.cjs +7 -0
- package/dist/linkcard-B0KOGaGj.js +55 -0
- package/dist/linkcard-BE4-FewK.cjs +13 -0
- package/dist/listbox-DCA2JoPV.cjs +106 -0
- package/dist/listbox-DuBgTFvH.js +397 -0
- package/dist/loader-6kFZUErT.js +66 -0
- package/dist/loader-CX2rsC01.cjs +16 -0
- package/dist/messagebox-Cwlg5sOr.js +110 -0
- package/dist/messagebox-Din9X53b.cjs +13 -0
- package/dist/modal-C_wtsh9m.js +209 -0
- package/dist/modal-DS_wUOIv.cjs +36 -0
- package/dist/pkt-accordion.cjs +1 -1
- package/dist/pkt-accordion.js +2 -7
- package/dist/pkt-alert.cjs +1 -1
- package/dist/pkt-alert.js +2 -5
- package/dist/pkt-backlink.cjs +1 -1
- package/dist/pkt-backlink.js +2 -5
- package/dist/pkt-breadcrumbs.cjs +1 -43
- package/dist/pkt-breadcrumbs.js +2 -81
- package/dist/pkt-button.cjs +1 -1
- package/dist/pkt-button.js +2 -5
- package/dist/pkt-calendar.cjs +1 -1
- package/dist/pkt-calendar.js +2 -5
- package/dist/pkt-card.cjs +1 -1
- package/dist/pkt-card.js +2 -5
- package/dist/pkt-checkbox.cjs +1 -1
- package/dist/pkt-checkbox.js +2 -5
- package/dist/pkt-combobox.cjs +1 -1
- package/dist/pkt-combobox.js +2 -5
- package/dist/pkt-consent.cjs +1 -1
- package/dist/pkt-consent.js +2 -5
- package/dist/pkt-datepicker.cjs +1 -1
- package/dist/pkt-datepicker.js +5 -9
- package/dist/pkt-header.cjs +1 -304
- package/dist/pkt-header.js +2 -861
- package/dist/pkt-heading.cjs +1 -1
- package/dist/pkt-heading.js +2 -5
- package/dist/pkt-helptext.cjs +1 -1
- package/dist/pkt-helptext.js +2 -5
- package/dist/pkt-icon.cjs +1 -1
- package/dist/pkt-icon.js +2 -5
- package/dist/pkt-index.cjs +1 -1
- package/dist/pkt-index.js +30 -66
- package/dist/pkt-input-wrapper.cjs +1 -1
- package/dist/pkt-input-wrapper.js +2 -5
- package/dist/pkt-link.cjs +1 -1
- package/dist/pkt-link.js +2 -5
- package/dist/pkt-linkcard.cjs +1 -1
- package/dist/pkt-linkcard.js +2 -5
- package/dist/pkt-listbox.cjs +1 -1
- package/dist/pkt-listbox.js +2 -5
- package/dist/pkt-loader.cjs +1 -1
- package/dist/pkt-loader.js +2 -5
- package/dist/pkt-messagebox.cjs +1 -1
- package/dist/pkt-messagebox.js +2 -5
- package/dist/pkt-modal.cjs +1 -1
- package/dist/pkt-modal.js +2 -5
- package/dist/pkt-options-controller-CRrI6WMk.js +43 -0
- package/dist/pkt-options-controller-CXUGx134.cjs +1 -0
- package/dist/pkt-progressbar.cjs +1 -1
- package/dist/pkt-progressbar.js +2 -5
- package/dist/pkt-radiobutton.cjs +1 -1
- package/dist/pkt-radiobutton.js +2 -5
- package/dist/pkt-select.cjs +1 -1
- package/dist/pkt-select.js +2 -5
- package/dist/pkt-tabs.cjs +1 -1
- package/dist/pkt-tabs.js +2 -7
- package/dist/pkt-tag.cjs +1 -1
- package/dist/pkt-tag.js +2 -5
- package/dist/pkt-textarea.cjs +1 -1
- package/dist/pkt-textarea.js +2 -5
- package/dist/pkt-textinput.cjs +1 -1
- package/dist/pkt-textinput.js +2 -5
- package/dist/pkt-timepicker.cjs +1 -191
- package/dist/pkt-timepicker.js +2 -560
- package/dist/progressbar-CdXtmOBb.cjs +17 -0
- package/dist/progressbar-Dy9AiYQz.js +113 -0
- package/dist/radiobutton-GOnpUbCW.cjs +31 -0
- package/dist/radiobutton-V_KPbup_.js +84 -0
- package/dist/ref-BaJ0mBT_.cjs +1 -0
- package/dist/ref-RS8Uv6uC.js +30 -0
- package/dist/repeat-Cepr3469.js +57 -0
- package/dist/repeat-CqcDYBxr.cjs +1 -0
- package/dist/select-BSAFd8Wa.js +164 -0
- package/dist/select-C2i8sOk5.cjs +49 -0
- package/dist/tabs-D8nL9rWx.cjs +37 -0
- package/dist/tabs-Y7utmJi9.js +318 -0
- package/dist/tag-DLthw5b4.cjs +27 -0
- package/dist/tag-VwykmuQR.js +179 -0
- package/dist/textarea-D7aGOyDf.cjs +46 -0
- package/dist/textarea-DYOBhJrN.js +115 -0
- package/dist/textinput-BUgntXnM.js +124 -0
- package/dist/textinput-DFh8_9cx.cjs +70 -0
- package/dist/timepicker-BIfE7KKJ.cjs +191 -0
- package/dist/timepicker-DaSwn1FA.js +503 -0
- package/dist/utils-CUqCKGvp.js +7 -0
- package/dist/utils-CjAbIttF.cjs +1 -0
- package/package.json +6 -6
- package/src/components/alert/alert.test.ts +1 -1
- package/src/components/alert/alert.ts +6 -6
- package/src/components/datepicker/datepicker-utils.test.ts +16 -23
- package/dist/accordionitem-_9AiCIvd.cjs +0 -34
- package/dist/accordionitem-dCfSrxh5.js +0 -140
- package/dist/alert-BtOk8yRH.cjs +0 -33
- package/dist/alert-DlY2_grU.js +0 -117
- package/dist/async-directive-CMzWMlZ5.js +0 -65
- package/dist/async-directive-DoMuclel.cjs +0 -5
- package/dist/backlink-Ce5Vldop.js +0 -49
- package/dist/backlink-y3dwjKPC.cjs +0 -13
- package/dist/booleanish-BKVonob4.cjs +0 -1
- package/dist/booleanish-C9R0tdXH.js +0 -11
- package/dist/button-B_TXwNzt.cjs +0 -27
- package/dist/button-BiY-wlKF.js +0 -139
- package/dist/calendar-B2pji2zn.cjs +0 -90
- package/dist/calendar-DhjQDC4C.js +0 -2140
- package/dist/card-BwMNB5Bb.cjs +0 -87
- package/dist/card-CGlmcMSR.js +0 -233
- package/dist/checkbox-BsJZYA26.js +0 -147
- package/dist/checkbox-CTY8f_qn.cjs +0 -31
- package/dist/class-map-CEnykyO_.js +0 -34
- package/dist/class-map-CsENJXf1.cjs +0 -5
- package/dist/classutils-BwNK82ZQ.cjs +0 -1
- package/dist/classutils-RQs1k6D9.js +0 -7
- package/dist/combobox-DSB5WOxg.js +0 -815
- package/dist/combobox-DbICIgKG.cjs +0 -135
- package/dist/consent-DkOQpbsg.cjs +0 -11
- package/dist/consent-SNWV_mMU.js +0 -175
- package/dist/datepicker-BEWl9iz3.cjs +0 -273
- package/dist/datepicker-euHyzXnb.js +0 -1170
- package/dist/dialog-polyfill.esm-CPKZe7AL.cjs +0 -1
- package/dist/dialog-polyfill.esm-CbjBMXAG.js +0 -395
- package/dist/directive-C7oCP5Bh.cjs +0 -5
- package/dist/directive-helpers-BP2WOx60.cjs +0 -5
- package/dist/directive-helpers-rm-28gIj.js +0 -38
- package/dist/directive-oAbCiebi.js +0 -27
- package/dist/element-CPpT3rFQ.js +0 -638
- package/dist/element-gR_VtSiD.cjs +0 -27
- package/dist/element-with-slot-Dqk6-TRR.js +0 -240
- package/dist/element-with-slot-ZX-up7jO.cjs +0 -1
- package/dist/heading-D2tVS6lS.js +0 -103
- package/dist/heading-DrzbgDb6.cjs +0 -1
- package/dist/helptext-BKtU4mas.js +0 -82
- package/dist/helptext-DcRC7wW2.cjs +0 -24
- package/dist/icon-CxQcIa5F.js +0 -105
- package/dist/icon-q81vqPK_.cjs +0 -9
- package/dist/if-defined-B0krMLad.js +0 -10
- package/dist/if-defined-BOW3ODSj.cjs +0 -5
- package/dist/input-element-8nLwuQS4.js +0 -837
- package/dist/input-element-DdVhUvva.cjs +0 -1
- package/dist/input-wrapper-Bs4CRNst.js +0 -181
- package/dist/input-wrapper-Bv9aqqVq.cjs +0 -54
- package/dist/input-wrapper-CDgenrYA.js +0 -6
- package/dist/input-wrapper-EoSAbU-U.cjs +0 -1
- package/dist/link-C0rl-86s.cjs +0 -7
- package/dist/link-Cdqgl60z.js +0 -55
- package/dist/linkcard-Dimu7Rlx.cjs +0 -13
- package/dist/linkcard-Lbq_UhjZ.js +0 -56
- package/dist/listbox-Bia4_tvN.js +0 -440
- package/dist/listbox-La2GZQei.cjs +0 -106
- package/dist/loader-D1ugDXGV.cjs +0 -16
- package/dist/loader-DyN6RGC5.js +0 -95
- package/dist/messagebox-BGMVm2t9.js +0 -71
- package/dist/messagebox-M0yIgCz9.cjs +0 -13
- package/dist/modal-CMO1RtIi.cjs +0 -36
- package/dist/modal-DjPQDE-Z.js +0 -156
- package/dist/pkt-options-controller-5LXbEzuk.cjs +0 -1
- package/dist/pkt-options-controller-B5YalfCb.js +0 -39
- package/dist/progressbar-BqlMzkM_.cjs +0 -21
- package/dist/progressbar-sbHDFC12.js +0 -162
- package/dist/radiobutton-5ZqVVtTT.cjs +0 -31
- package/dist/radiobutton-D8Ai8ETa.js +0 -113
- package/dist/ref-Bg_Swj5w.js +0 -42
- package/dist/ref-CL-Xk9Xm.cjs +0 -5
- package/dist/repeat-BD8TKgJb.js +0 -61
- package/dist/repeat-Cfq8CDlf.cjs +0 -5
- package/dist/select-De-n8on9.js +0 -230
- package/dist/select-dTWibR6_.cjs +0 -49
- package/dist/state-C_1EOo3D.js +0 -12
- package/dist/state-Dg-53wQ8.cjs +0 -5
- package/dist/tabitem-B9-jeV97.js +0 -334
- package/dist/tabitem-BnhzqfW3.cjs +0 -65
- package/dist/tag-CbwO8yvD.cjs +0 -27
- package/dist/tag-D4FI5t3y.js +0 -117
- package/dist/textarea-BmLaKzsc.cjs +0 -50
- package/dist/textarea-CMiSJaYL.js +0 -133
- package/dist/textinput-em9y4yrL.cjs +0 -70
- package/dist/textinput-r8udK0IX.js +0 -152
- package/dist/utils-DznhwRXm.js +0 -8
- package/dist/utils-byXsEz1u.cjs +0 -1
package/dist/element-CPpT3rFQ.js
DELETED
|
@@ -1,638 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2017 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/
|
|
6
|
-
const P = globalThis, V = (r) => r, k = P.trustedTypes, J = k ? k.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, it = "$lit$", f = `lit$${Math.random().toFixed(9).slice(2)}$`, rt = "?" + f, dt = `<${rt}>`, y = document, x = () => y.createComment(""), U = (r) => r === null || typeof r != "object" && typeof r != "function", F = Array.isArray, pt = (r) => F(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", R = `[
|
|
7
|
-
\f\r]`, w = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, W = /-->/g, Z = />/g, m = RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^
|
|
8
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), K = /'/g, G = /"/g, nt = /^(?:script|style|textarea|title)$/i, ut = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), Ft = ut(1), S = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Q = /* @__PURE__ */ new WeakMap(), g = y.createTreeWalker(y, 129);
|
|
9
|
-
function ot(r, t) {
|
|
10
|
-
if (!F(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
11
|
-
return J !== void 0 ? J.createHTML(t) : t;
|
|
12
|
-
}
|
|
13
|
-
const $t = (r, t) => {
|
|
14
|
-
const e = r.length - 1, s = [];
|
|
15
|
-
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = w;
|
|
16
|
-
for (let a = 0; a < e; a++) {
|
|
17
|
-
const h = r[a];
|
|
18
|
-
let c, p, l = -1, u = 0;
|
|
19
|
-
for (; u < h.length && (o.lastIndex = u, p = o.exec(h), p !== null); ) u = o.lastIndex, o === w ? p[1] === "!--" ? o = W : p[1] !== void 0 ? o = Z : p[2] !== void 0 ? (nt.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = m) : p[3] !== void 0 && (o = m) : o === m ? p[0] === ">" ? (o = i ?? w, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, c = p[1], o = p[3] === void 0 ? m : p[3] === '"' ? G : K) : o === G || o === K ? o = m : o === W || o === Z ? o = w : (o = m, i = void 0);
|
|
20
|
-
const $ = o === m && r[a + 1].startsWith("/>") ? " " : "";
|
|
21
|
-
n += o === w ? h + dt : l >= 0 ? (s.push(c), h.slice(0, l) + it + h.slice(l) + f + $) : h + f + (l === -2 ? a : $);
|
|
22
|
-
}
|
|
23
|
-
return [ot(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
24
|
-
};
|
|
25
|
-
let z = class ht {
|
|
26
|
-
constructor({ strings: t, _$litType$: e }, s) {
|
|
27
|
-
let i;
|
|
28
|
-
this.parts = [];
|
|
29
|
-
let n = 0, o = 0;
|
|
30
|
-
const a = t.length - 1, h = this.parts, [c, p] = $t(t, e);
|
|
31
|
-
if (this.el = ht.createElement(c, s), g.currentNode = this.el.content, e === 2 || e === 3) {
|
|
32
|
-
const l = this.el.content.firstChild;
|
|
33
|
-
l.replaceWith(...l.childNodes);
|
|
34
|
-
}
|
|
35
|
-
for (; (i = g.nextNode()) !== null && h.length < a; ) {
|
|
36
|
-
if (i.nodeType === 1) {
|
|
37
|
-
if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(it)) {
|
|
38
|
-
const u = p[o++], $ = i.getAttribute(l).split(f), O = /([.?@])?(.*)/.exec(u);
|
|
39
|
-
h.push({ type: 1, index: n, name: O[2], strings: $, ctor: O[1] === "." ? _t : O[1] === "?" ? mt : O[1] === "@" ? gt : N }), i.removeAttribute(l);
|
|
40
|
-
} else l.startsWith(f) && (h.push({ type: 6, index: n }), i.removeAttribute(l));
|
|
41
|
-
if (nt.test(i.tagName)) {
|
|
42
|
-
const l = i.textContent.split(f), u = l.length - 1;
|
|
43
|
-
if (u > 0) {
|
|
44
|
-
i.textContent = k ? k.emptyScript : "";
|
|
45
|
-
for (let $ = 0; $ < u; $++) i.append(l[$], x()), g.nextNode(), h.push({ type: 2, index: ++n });
|
|
46
|
-
i.append(l[u], x());
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
} else if (i.nodeType === 8) if (i.data === rt) h.push({ type: 2, index: n });
|
|
50
|
-
else {
|
|
51
|
-
let l = -1;
|
|
52
|
-
for (; (l = i.data.indexOf(f, l + 1)) !== -1; ) h.push({ type: 7, index: n }), l += f.length - 1;
|
|
53
|
-
}
|
|
54
|
-
n++;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
static createElement(t, e) {
|
|
58
|
-
const s = y.createElement("template");
|
|
59
|
-
return s.innerHTML = t, s;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
function E(r, t, e = r, s) {
|
|
63
|
-
var o, a;
|
|
64
|
-
if (t === S) return t;
|
|
65
|
-
let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
|
66
|
-
const n = U(t) ? void 0 : t._$litDirective$;
|
|
67
|
-
return (i == null ? void 0 : i.constructor) !== n && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = E(r, i._$AS(r, t.values), i, s)), t;
|
|
68
|
-
}
|
|
69
|
-
class ft {
|
|
70
|
-
constructor(t, e) {
|
|
71
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
72
|
-
}
|
|
73
|
-
get parentNode() {
|
|
74
|
-
return this._$AM.parentNode;
|
|
75
|
-
}
|
|
76
|
-
get _$AU() {
|
|
77
|
-
return this._$AM._$AU;
|
|
78
|
-
}
|
|
79
|
-
u(t) {
|
|
80
|
-
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? y).importNode(e, !0);
|
|
81
|
-
g.currentNode = i;
|
|
82
|
-
let n = g.nextNode(), o = 0, a = 0, h = s[0];
|
|
83
|
-
for (; h !== void 0; ) {
|
|
84
|
-
if (o === h.index) {
|
|
85
|
-
let c;
|
|
86
|
-
h.type === 2 ? c = new b(n, n.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (c = new At(n, this, t)), this._$AV.push(c), h = s[++a];
|
|
87
|
-
}
|
|
88
|
-
o !== (h == null ? void 0 : h.index) && (n = g.nextNode(), o++);
|
|
89
|
-
}
|
|
90
|
-
return g.currentNode = y, i;
|
|
91
|
-
}
|
|
92
|
-
p(t) {
|
|
93
|
-
let e = 0;
|
|
94
|
-
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
class b {
|
|
98
|
-
get _$AU() {
|
|
99
|
-
var t;
|
|
100
|
-
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
101
|
-
}
|
|
102
|
-
constructor(t, e, s, i) {
|
|
103
|
-
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
|
104
|
-
}
|
|
105
|
-
get parentNode() {
|
|
106
|
-
let t = this._$AA.parentNode;
|
|
107
|
-
const e = this._$AM;
|
|
108
|
-
return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
|
|
109
|
-
}
|
|
110
|
-
get startNode() {
|
|
111
|
-
return this._$AA;
|
|
112
|
-
}
|
|
113
|
-
get endNode() {
|
|
114
|
-
return this._$AB;
|
|
115
|
-
}
|
|
116
|
-
_$AI(t, e = this) {
|
|
117
|
-
t = E(this, t, e), U(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== S && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : pt(t) ? this.k(t) : this._(t);
|
|
118
|
-
}
|
|
119
|
-
O(t) {
|
|
120
|
-
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
121
|
-
}
|
|
122
|
-
T(t) {
|
|
123
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
124
|
-
}
|
|
125
|
-
_(t) {
|
|
126
|
-
this._$AH !== d && U(this._$AH) ? this._$AA.nextSibling.data = t : this.T(y.createTextNode(t)), this._$AH = t;
|
|
127
|
-
}
|
|
128
|
-
$(t) {
|
|
129
|
-
var n;
|
|
130
|
-
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = z.createElement(ot(s.h, s.h[0]), this.options)), s);
|
|
131
|
-
if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(e);
|
|
132
|
-
else {
|
|
133
|
-
const o = new ft(i, this), a = o.u(this.options);
|
|
134
|
-
o.p(e), this.T(a), this._$AH = o;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
_$AC(t) {
|
|
138
|
-
let e = Q.get(t.strings);
|
|
139
|
-
return e === void 0 && Q.set(t.strings, e = new z(t)), e;
|
|
140
|
-
}
|
|
141
|
-
k(t) {
|
|
142
|
-
F(this._$AH) || (this._$AH = [], this._$AR());
|
|
143
|
-
const e = this._$AH;
|
|
144
|
-
let s, i = 0;
|
|
145
|
-
for (const n of t) i === e.length ? e.push(s = new b(this.O(x()), this.O(x()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
|
146
|
-
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
147
|
-
}
|
|
148
|
-
_$AR(t = this._$AA.nextSibling, e) {
|
|
149
|
-
var s;
|
|
150
|
-
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t !== this._$AB; ) {
|
|
151
|
-
const i = V(t).nextSibling;
|
|
152
|
-
V(t).remove(), t = i;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
setConnected(t) {
|
|
156
|
-
var e;
|
|
157
|
-
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
class N {
|
|
161
|
-
get tagName() {
|
|
162
|
-
return this.element.tagName;
|
|
163
|
-
}
|
|
164
|
-
get _$AU() {
|
|
165
|
-
return this._$AM._$AU;
|
|
166
|
-
}
|
|
167
|
-
constructor(t, e, s, i, n) {
|
|
168
|
-
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
|
|
169
|
-
}
|
|
170
|
-
_$AI(t, e = this, s, i) {
|
|
171
|
-
const n = this.strings;
|
|
172
|
-
let o = !1;
|
|
173
|
-
if (n === void 0) t = E(this, t, e, 0), o = !U(t) || t !== this._$AH && t !== S, o && (this._$AH = t);
|
|
174
|
-
else {
|
|
175
|
-
const a = t;
|
|
176
|
-
let h, c;
|
|
177
|
-
for (t = n[0], h = 0; h < n.length - 1; h++) c = E(this, a[s + h], e, h), c === S && (c = this._$AH[h]), o || (o = !U(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + n[h + 1]), this._$AH[h] = c;
|
|
178
|
-
}
|
|
179
|
-
o && !i && this.j(t);
|
|
180
|
-
}
|
|
181
|
-
j(t) {
|
|
182
|
-
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
class _t extends N {
|
|
186
|
-
constructor() {
|
|
187
|
-
super(...arguments), this.type = 3;
|
|
188
|
-
}
|
|
189
|
-
j(t) {
|
|
190
|
-
this.element[this.name] = t === d ? void 0 : t;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
class mt extends N {
|
|
194
|
-
constructor() {
|
|
195
|
-
super(...arguments), this.type = 4;
|
|
196
|
-
}
|
|
197
|
-
j(t) {
|
|
198
|
-
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
class gt extends N {
|
|
202
|
-
constructor(t, e, s, i, n) {
|
|
203
|
-
super(t, e, s, i, n), this.type = 5;
|
|
204
|
-
}
|
|
205
|
-
_$AI(t, e = this) {
|
|
206
|
-
if ((t = E(this, t, e, 0) ?? d) === S) return;
|
|
207
|
-
const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== d && (s === d || i);
|
|
208
|
-
i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
209
|
-
}
|
|
210
|
-
handleEvent(t) {
|
|
211
|
-
var e;
|
|
212
|
-
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
class At {
|
|
216
|
-
constructor(t, e, s) {
|
|
217
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
218
|
-
}
|
|
219
|
-
get _$AU() {
|
|
220
|
-
return this._$AM._$AU;
|
|
221
|
-
}
|
|
222
|
-
_$AI(t) {
|
|
223
|
-
E(this, t);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
const It = { I: b }, D = P.litHtmlPolyfillSupport;
|
|
227
|
-
D == null || D(z, b), (P.litHtmlVersions ?? (P.litHtmlVersions = [])).push("3.3.2");
|
|
228
|
-
const yt = (r, t, e) => {
|
|
229
|
-
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
230
|
-
let i = s._$litPart$;
|
|
231
|
-
if (i === void 0) {
|
|
232
|
-
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
233
|
-
s._$litPart$ = i = new b(t.insertBefore(x(), n), n, void 0, e ?? {});
|
|
234
|
-
}
|
|
235
|
-
return i._$AI(r), i;
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* @license
|
|
239
|
-
* Copyright 2017 Google LLC
|
|
240
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
241
|
-
*/
|
|
242
|
-
const Bt = (r) => (t, e) => {
|
|
243
|
-
e !== void 0 ? e.addInitializer(() => {
|
|
244
|
-
customElements.define(r, t);
|
|
245
|
-
}) : customElements.define(r, t);
|
|
246
|
-
};
|
|
247
|
-
/**
|
|
248
|
-
* @license
|
|
249
|
-
* Copyright 2019 Google LLC
|
|
250
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
251
|
-
*/
|
|
252
|
-
const T = globalThis, I = T.ShadowRoot && (T.ShadyCSS === void 0 || T.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, at = Symbol(), X = /* @__PURE__ */ new WeakMap();
|
|
253
|
-
let vt = class {
|
|
254
|
-
constructor(t, e, s) {
|
|
255
|
-
if (this._$cssResult$ = !0, s !== at) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
256
|
-
this.cssText = t, this.t = e;
|
|
257
|
-
}
|
|
258
|
-
get styleSheet() {
|
|
259
|
-
let t = this.o;
|
|
260
|
-
const e = this.t;
|
|
261
|
-
if (I && t === void 0) {
|
|
262
|
-
const s = e !== void 0 && e.length === 1;
|
|
263
|
-
s && (t = X.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && X.set(e, t));
|
|
264
|
-
}
|
|
265
|
-
return t;
|
|
266
|
-
}
|
|
267
|
-
toString() {
|
|
268
|
-
return this.cssText;
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
const St = (r) => new vt(typeof r == "string" ? r : r + "", void 0, at), Et = (r, t) => {
|
|
272
|
-
if (I) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
273
|
-
else for (const e of t) {
|
|
274
|
-
const s = document.createElement("style"), i = T.litNonce;
|
|
275
|
-
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
|
276
|
-
}
|
|
277
|
-
}, Y = I ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
278
|
-
let e = "";
|
|
279
|
-
for (const s of t.cssRules) e += s.cssText;
|
|
280
|
-
return St(e);
|
|
281
|
-
})(r) : r;
|
|
282
|
-
/**
|
|
283
|
-
* @license
|
|
284
|
-
* Copyright 2017 Google LLC
|
|
285
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
286
|
-
*/
|
|
287
|
-
const { is: bt, defineProperty: wt, getOwnPropertyDescriptor: Pt, getOwnPropertyNames: Ct, getOwnPropertySymbols: Mt, getPrototypeOf: xt } = Object, _ = globalThis, tt = _.trustedTypes, Ut = tt ? tt.emptyScript : "", j = _.reactiveElementPolyfillSupport, C = (r, t) => r, H = { toAttribute(r, t) {
|
|
288
|
-
switch (t) {
|
|
289
|
-
case Boolean:
|
|
290
|
-
r = r ? Ut : null;
|
|
291
|
-
break;
|
|
292
|
-
case Object:
|
|
293
|
-
case Array:
|
|
294
|
-
r = r == null ? r : JSON.stringify(r);
|
|
295
|
-
}
|
|
296
|
-
return r;
|
|
297
|
-
}, fromAttribute(r, t) {
|
|
298
|
-
let e = r;
|
|
299
|
-
switch (t) {
|
|
300
|
-
case Boolean:
|
|
301
|
-
e = r !== null;
|
|
302
|
-
break;
|
|
303
|
-
case Number:
|
|
304
|
-
e = r === null ? null : Number(r);
|
|
305
|
-
break;
|
|
306
|
-
case Object:
|
|
307
|
-
case Array:
|
|
308
|
-
try {
|
|
309
|
-
e = JSON.parse(r);
|
|
310
|
-
} catch {
|
|
311
|
-
e = null;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return e;
|
|
315
|
-
} }, B = (r, t) => !bt(r, t), et = { attribute: !0, type: String, converter: H, reflect: !1, useDefault: !1, hasChanged: B };
|
|
316
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
317
|
-
class v extends HTMLElement {
|
|
318
|
-
static addInitializer(t) {
|
|
319
|
-
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
320
|
-
}
|
|
321
|
-
static get observedAttributes() {
|
|
322
|
-
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
323
|
-
}
|
|
324
|
-
static createProperty(t, e = et) {
|
|
325
|
-
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) {
|
|
326
|
-
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
327
|
-
i !== void 0 && wt(this.prototype, t, i);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
static getPropertyDescriptor(t, e, s) {
|
|
331
|
-
const { get: i, set: n } = Pt(this.prototype, t) ?? { get() {
|
|
332
|
-
return this[e];
|
|
333
|
-
}, set(o) {
|
|
334
|
-
this[e] = o;
|
|
335
|
-
} };
|
|
336
|
-
return { get: i, set(o) {
|
|
337
|
-
const a = i == null ? void 0 : i.call(this);
|
|
338
|
-
n == null || n.call(this, o), this.requestUpdate(t, a, s);
|
|
339
|
-
}, configurable: !0, enumerable: !0 };
|
|
340
|
-
}
|
|
341
|
-
static getPropertyOptions(t) {
|
|
342
|
-
return this.elementProperties.get(t) ?? et;
|
|
343
|
-
}
|
|
344
|
-
static _$Ei() {
|
|
345
|
-
if (this.hasOwnProperty(C("elementProperties"))) return;
|
|
346
|
-
const t = xt(this);
|
|
347
|
-
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
348
|
-
}
|
|
349
|
-
static finalize() {
|
|
350
|
-
if (this.hasOwnProperty(C("finalized"))) return;
|
|
351
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(C("properties"))) {
|
|
352
|
-
const e = this.properties, s = [...Ct(e), ...Mt(e)];
|
|
353
|
-
for (const i of s) this.createProperty(i, e[i]);
|
|
354
|
-
}
|
|
355
|
-
const t = this[Symbol.metadata];
|
|
356
|
-
if (t !== null) {
|
|
357
|
-
const e = litPropertyMetadata.get(t);
|
|
358
|
-
if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
|
|
359
|
-
}
|
|
360
|
-
this._$Eh = /* @__PURE__ */ new Map();
|
|
361
|
-
for (const [e, s] of this.elementProperties) {
|
|
362
|
-
const i = this._$Eu(e, s);
|
|
363
|
-
i !== void 0 && this._$Eh.set(i, e);
|
|
364
|
-
}
|
|
365
|
-
this.elementStyles = this.finalizeStyles(this.styles);
|
|
366
|
-
}
|
|
367
|
-
static finalizeStyles(t) {
|
|
368
|
-
const e = [];
|
|
369
|
-
if (Array.isArray(t)) {
|
|
370
|
-
const s = new Set(t.flat(1 / 0).reverse());
|
|
371
|
-
for (const i of s) e.unshift(Y(i));
|
|
372
|
-
} else t !== void 0 && e.push(Y(t));
|
|
373
|
-
return e;
|
|
374
|
-
}
|
|
375
|
-
static _$Eu(t, e) {
|
|
376
|
-
const s = e.attribute;
|
|
377
|
-
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
378
|
-
}
|
|
379
|
-
constructor() {
|
|
380
|
-
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
381
|
-
}
|
|
382
|
-
_$Ev() {
|
|
383
|
-
var t;
|
|
384
|
-
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
|
385
|
-
}
|
|
386
|
-
addController(t) {
|
|
387
|
-
var e;
|
|
388
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
|
389
|
-
}
|
|
390
|
-
removeController(t) {
|
|
391
|
-
var e;
|
|
392
|
-
(e = this._$EO) == null || e.delete(t);
|
|
393
|
-
}
|
|
394
|
-
_$E_() {
|
|
395
|
-
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
396
|
-
for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
|
397
|
-
t.size > 0 && (this._$Ep = t);
|
|
398
|
-
}
|
|
399
|
-
createRenderRoot() {
|
|
400
|
-
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
401
|
-
return Et(t, this.constructor.elementStyles), t;
|
|
402
|
-
}
|
|
403
|
-
connectedCallback() {
|
|
404
|
-
var t;
|
|
405
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
406
|
-
var s;
|
|
407
|
-
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
enableUpdating(t) {
|
|
411
|
-
}
|
|
412
|
-
disconnectedCallback() {
|
|
413
|
-
var t;
|
|
414
|
-
(t = this._$EO) == null || t.forEach((e) => {
|
|
415
|
-
var s;
|
|
416
|
-
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
attributeChangedCallback(t, e, s) {
|
|
420
|
-
this._$AK(t, s);
|
|
421
|
-
}
|
|
422
|
-
_$ET(t, e) {
|
|
423
|
-
var n;
|
|
424
|
-
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
425
|
-
if (i !== void 0 && s.reflect === !0) {
|
|
426
|
-
const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : H).toAttribute(e, s.type);
|
|
427
|
-
this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
_$AK(t, e) {
|
|
431
|
-
var n, o;
|
|
432
|
-
const s = this.constructor, i = s._$Eh.get(t);
|
|
433
|
-
if (i !== void 0 && this._$Em !== i) {
|
|
434
|
-
const a = s.getPropertyOptions(i), h = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter : H;
|
|
435
|
-
this._$Em = i;
|
|
436
|
-
const c = h.fromAttribute(e, a.type);
|
|
437
|
-
this[i] = c ?? ((o = this._$Ej) == null ? void 0 : o.get(i)) ?? c, this._$Em = null;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
requestUpdate(t, e, s, i = !1, n) {
|
|
441
|
-
var o;
|
|
442
|
-
if (t !== void 0) {
|
|
443
|
-
const a = this.constructor;
|
|
444
|
-
if (i === !1 && (n = this[t]), s ?? (s = a.getPropertyOptions(t)), !((s.hasChanged ?? B)(n, e) || s.useDefault && s.reflect && n === ((o = this._$Ej) == null ? void 0 : o.get(t)) && !this.hasAttribute(a._$Eu(t, s)))) return;
|
|
445
|
-
this.C(t, e, s);
|
|
446
|
-
}
|
|
447
|
-
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
448
|
-
}
|
|
449
|
-
C(t, e, { useDefault: s, reflect: i, wrapped: n }, o) {
|
|
450
|
-
s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), n !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
|
|
451
|
-
}
|
|
452
|
-
async _$EP() {
|
|
453
|
-
this.isUpdatePending = !0;
|
|
454
|
-
try {
|
|
455
|
-
await this._$ES;
|
|
456
|
-
} catch (e) {
|
|
457
|
-
Promise.reject(e);
|
|
458
|
-
}
|
|
459
|
-
const t = this.scheduleUpdate();
|
|
460
|
-
return t != null && await t, !this.isUpdatePending;
|
|
461
|
-
}
|
|
462
|
-
scheduleUpdate() {
|
|
463
|
-
return this.performUpdate();
|
|
464
|
-
}
|
|
465
|
-
performUpdate() {
|
|
466
|
-
var s;
|
|
467
|
-
if (!this.isUpdatePending) return;
|
|
468
|
-
if (!this.hasUpdated) {
|
|
469
|
-
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
470
|
-
for (const [n, o] of this._$Ep) this[n] = o;
|
|
471
|
-
this._$Ep = void 0;
|
|
472
|
-
}
|
|
473
|
-
const i = this.constructor.elementProperties;
|
|
474
|
-
if (i.size > 0) for (const [n, o] of i) {
|
|
475
|
-
const { wrapped: a } = o, h = this[n];
|
|
476
|
-
a !== !0 || this._$AL.has(n) || h === void 0 || this.C(n, void 0, o, h);
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
let t = !1;
|
|
480
|
-
const e = this._$AL;
|
|
481
|
-
try {
|
|
482
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
|
|
483
|
-
var n;
|
|
484
|
-
return (n = i.hostUpdate) == null ? void 0 : n.call(i);
|
|
485
|
-
}), this.update(e)) : this._$EM();
|
|
486
|
-
} catch (i) {
|
|
487
|
-
throw t = !1, this._$EM(), i;
|
|
488
|
-
}
|
|
489
|
-
t && this._$AE(e);
|
|
490
|
-
}
|
|
491
|
-
willUpdate(t) {
|
|
492
|
-
}
|
|
493
|
-
_$AE(t) {
|
|
494
|
-
var e;
|
|
495
|
-
(e = this._$EO) == null || e.forEach((s) => {
|
|
496
|
-
var i;
|
|
497
|
-
return (i = s.hostUpdated) == null ? void 0 : i.call(s);
|
|
498
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
499
|
-
}
|
|
500
|
-
_$EM() {
|
|
501
|
-
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
502
|
-
}
|
|
503
|
-
get updateComplete() {
|
|
504
|
-
return this.getUpdateComplete();
|
|
505
|
-
}
|
|
506
|
-
getUpdateComplete() {
|
|
507
|
-
return this._$ES;
|
|
508
|
-
}
|
|
509
|
-
shouldUpdate(t) {
|
|
510
|
-
return !0;
|
|
511
|
-
}
|
|
512
|
-
update(t) {
|
|
513
|
-
this._$Eq && (this._$Eq = this._$Eq.forEach((e) => this._$ET(e, this[e]))), this._$EM();
|
|
514
|
-
}
|
|
515
|
-
updated(t) {
|
|
516
|
-
}
|
|
517
|
-
firstUpdated(t) {
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
v.elementStyles = [], v.shadowRootOptions = { mode: "open" }, v[C("elementProperties")] = /* @__PURE__ */ new Map(), v[C("finalized")] = /* @__PURE__ */ new Map(), j == null || j({ ReactiveElement: v }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.1.2");
|
|
521
|
-
/**
|
|
522
|
-
* @license
|
|
523
|
-
* Copyright 2017 Google LLC
|
|
524
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
525
|
-
*/
|
|
526
|
-
const Ot = { attribute: !0, type: String, converter: H, reflect: !1, hasChanged: B }, Tt = (r = Ot, t, e) => {
|
|
527
|
-
const { kind: s, metadata: i } = e;
|
|
528
|
-
let n = globalThis.litPropertyMetadata.get(i);
|
|
529
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(e.name, r), s === "accessor") {
|
|
530
|
-
const { name: o } = e;
|
|
531
|
-
return { set(a) {
|
|
532
|
-
const h = t.get.call(this);
|
|
533
|
-
t.set.call(this, a), this.requestUpdate(o, h, r, !0, a);
|
|
534
|
-
}, init(a) {
|
|
535
|
-
return a !== void 0 && this.C(o, void 0, r, a), a;
|
|
536
|
-
} };
|
|
537
|
-
}
|
|
538
|
-
if (s === "setter") {
|
|
539
|
-
const { name: o } = e;
|
|
540
|
-
return function(a) {
|
|
541
|
-
const h = this[o];
|
|
542
|
-
t.call(this, a), this.requestUpdate(o, h, r, !0, a);
|
|
543
|
-
};
|
|
544
|
-
}
|
|
545
|
-
throw Error("Unsupported decorator location: " + s);
|
|
546
|
-
};
|
|
547
|
-
function lt(r) {
|
|
548
|
-
return (t, e) => typeof e == "object" ? Tt(r, t, e) : ((s, i, n) => {
|
|
549
|
-
const o = i.hasOwnProperty(n);
|
|
550
|
-
return i.constructor.createProperty(n, s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
|
|
551
|
-
})(r, t, e);
|
|
552
|
-
}
|
|
553
|
-
/**
|
|
554
|
-
* @license
|
|
555
|
-
* Copyright 2017 Google LLC
|
|
556
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
557
|
-
*/
|
|
558
|
-
const A = globalThis;
|
|
559
|
-
class M extends v {
|
|
560
|
-
constructor() {
|
|
561
|
-
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
562
|
-
}
|
|
563
|
-
createRenderRoot() {
|
|
564
|
-
var e;
|
|
565
|
-
const t = super.createRenderRoot();
|
|
566
|
-
return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
|
|
567
|
-
}
|
|
568
|
-
update(t) {
|
|
569
|
-
const e = this.render();
|
|
570
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = yt(e, this.renderRoot, this.renderOptions);
|
|
571
|
-
}
|
|
572
|
-
connectedCallback() {
|
|
573
|
-
var t;
|
|
574
|
-
super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
|
|
575
|
-
}
|
|
576
|
-
disconnectedCallback() {
|
|
577
|
-
var t;
|
|
578
|
-
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
579
|
-
}
|
|
580
|
-
render() {
|
|
581
|
-
return S;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
var st;
|
|
585
|
-
M._$litElement$ = !0, M.finalized = !0, (st = A.litElementHydrateSupport) == null || st.call(A, { LitElement: M });
|
|
586
|
-
const L = A.litElementPolyfillSupport;
|
|
587
|
-
L == null || L({ LitElement: M });
|
|
588
|
-
(A.litElementVersions ?? (A.litElementVersions = [])).push("4.2.2");
|
|
589
|
-
const kt = { hi: "Hei!" }, Ht = { from: "Fra", to: "Til" }, Nt = { buttonAltText: "Åpne kalender", deleteDate: "Fjern dato" }, Rt = { month: "Måned", year: "År", days: ["Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag", "Søndag"], daysShort: ["Man", "Tir", "Ons", "Tor", "Fre", "Lør", "Søn"], months: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"], monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"], week: "Uke", prevMonth: "Forrige måned", nextMonth: "Neste måned" }, Dt = { hours: "Timer", minutes: "Minutter", openPicker: "Åpne tidspunkt-velger", prevTime: "Forrige tidspunkt", nextTime: "Neste tidspunkt", selectTime: "Velg tidspunkt" }, jt = { search: { placeholder: "Søk…" }, labels: { optional: "Valgfritt", required: "Må fylles ut" }, messages: { required: "Dette feltet er påkrevd", invalid: "Ugyldig verdi", invalidPattern: "Ugyldig format", tooShort: "For kort", tooLong: "For lang", rangeUnderflow: "For lav verdi", rangeOverflow: "For høy verdi", stepMismatch: "Må treffe på steget som er definert i elementet", timeStepMismatch: "Må treffe på et steg, for eksempel 0, {step} minutter", timeStepMismatchHour: "Må treffe på hver hele time", timeStepMismatchHalfHour: "Må treffe på hver hele eller halve time", rangeUnderflowMin: "Verdien må være større enn eller lik {min}.", rangeOverflowMax: "Verdien må være mindre enn eller lik {max}.", dateUnderflow: "For tidlig dato", dateOverflow: "For sen dato" }, helptext: { helptextDropdownButton: "Les mer" }, date: { multiple: "Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato." } }, Lt = {
|
|
590
|
-
example: kt,
|
|
591
|
-
generic: Ht,
|
|
592
|
-
calendar: Nt,
|
|
593
|
-
dates: Rt,
|
|
594
|
-
timepicker: Dt,
|
|
595
|
-
forms: jt
|
|
596
|
-
};
|
|
597
|
-
var zt = Object.defineProperty, ct = (r, t, e, s) => {
|
|
598
|
-
for (var i = void 0, n = r.length - 1, o; n >= 0; n--)
|
|
599
|
-
(o = r[n]) && (i = o(t, e, i) || i);
|
|
600
|
-
return i && zt(t, e, i), i;
|
|
601
|
-
};
|
|
602
|
-
class q extends M {
|
|
603
|
-
constructor() {
|
|
604
|
-
super(...arguments), this.strings = Lt, this.role = null;
|
|
605
|
-
}
|
|
606
|
-
/**
|
|
607
|
-
* Add support for Hot Module Reloading in dev mode
|
|
608
|
-
*/
|
|
609
|
-
hotReplacedCallback() {
|
|
610
|
-
this.requestUpdate();
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
ct([
|
|
614
|
-
lt({ type: Object })
|
|
615
|
-
], q.prototype, "strings");
|
|
616
|
-
ct([
|
|
617
|
-
lt({ type: String })
|
|
618
|
-
], q.prototype, "role");
|
|
619
|
-
class Vt extends q {
|
|
620
|
-
/**
|
|
621
|
-
* Make sure the component renders in light DOM instead of shadow DOM
|
|
622
|
-
*/
|
|
623
|
-
createRenderRoot() {
|
|
624
|
-
return this;
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
export {
|
|
628
|
-
d as A,
|
|
629
|
-
S as E,
|
|
630
|
-
Vt as P,
|
|
631
|
-
q as a,
|
|
632
|
-
Ft as b,
|
|
633
|
-
M as i,
|
|
634
|
-
It as j,
|
|
635
|
-
lt as n,
|
|
636
|
-
Lt as s,
|
|
637
|
-
Bt as t
|
|
638
|
-
};
|