@oslokommune/punkt-elements 13.6.0 → 13.6.2

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.
Files changed (128) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{accordionitem-Csh7iSVG.cjs → accordionitem-BOmnm80g.cjs} +1 -1
  3. package/dist/{accordionitem-C9T3nlM0.js → accordionitem-B_h5XGCo.js} +4 -4
  4. package/dist/{alert-cUBtwi2k.js → alert-CTTm6ugp.js} +6 -6
  5. package/dist/{alert-7rUOhlNi.cjs → alert-ZP5-fqlt.cjs} +1 -1
  6. package/dist/{backlink-JbBNi3qg.cjs → backlink-BT7DO6rV.cjs} +1 -1
  7. package/dist/{backlink-C2jbzu0U.js → backlink-Bq8O2bt8.js} +3 -3
  8. package/dist/{button-B8rdtaHB.cjs → button-BfqxLnMT.cjs} +1 -1
  9. package/dist/{button-DhispFOY.js → button-x6Xw-5w0.js} +5 -5
  10. package/dist/{calendar-32W9p9uc.cjs → calendar-CL9O0tLP.cjs} +1 -1
  11. package/dist/{calendar-DJVaC_zI.js → calendar-ChphTIhk.js} +4 -4
  12. package/dist/{card-DBlFf1ry.cjs → card-BwLe5f50.cjs} +1 -1
  13. package/dist/{card-BDz4RWxK.js → card-DpUEM1tU.js} +7 -7
  14. package/dist/{checkbox-Gn7Wtk9h.cjs → checkbox-CH8xeK-0.cjs} +1 -1
  15. package/dist/{checkbox-ym7z6cpt.js → checkbox-DSAcMC-D.js} +4 -4
  16. package/dist/{class-map-BBG2gMX4.cjs → class-map-CG3vIaNm.cjs} +1 -1
  17. package/dist/{class-map-BpTj9gtz.js → class-map-Dw6Wrxwi.js} +1 -1
  18. package/dist/{combobox-D84REr9N.cjs → combobox-COuxR036.cjs} +1 -1
  19. package/dist/{combobox-BXP1PL0M.js → combobox-D3aPvdrE.js} +11 -11
  20. package/dist/{consent-BpcQFvbi.js → consent-CXp0bLvg.js} +3 -3
  21. package/dist/{consent-hYeFWNFr.cjs → consent-DFrsiYGQ.cjs} +1 -1
  22. package/dist/{datepicker-CA1a4oIH.cjs → datepicker-CV73pLqD.cjs} +1 -1
  23. package/dist/{datepicker-X2o0j5kW.js → datepicker-Ca552mbJ.js} +11 -11
  24. package/dist/{directive-helpers-BBbxqP2W.cjs → directive-helpers-_qHew-gi.cjs} +1 -1
  25. package/dist/{directive-helpers-r-kOS_Mf.js → directive-helpers-cAOIHg9K.js} +1 -1
  26. package/dist/element-D62wHiNU.cjs +27 -0
  27. package/dist/element-DJZPsA_J.js +722 -0
  28. package/dist/{heading-CNycsyMj.cjs → heading-BBzoDZGk.cjs} +1 -1
  29. package/dist/{heading-Bdh9absf.js → heading-CfxZa1QR.js} +1 -1
  30. package/dist/{helptext-B7eI0iBQ.js → helptext-8ykxyegi.js} +5 -5
  31. package/dist/{helptext-CzQX6YVE.cjs → helptext-D1fkGmfT.cjs} +1 -1
  32. package/dist/{icon-CC1js8eR.js → icon-B1-mkmwB.js} +1 -1
  33. package/dist/{icon-B_ryAy4Q.cjs → icon-__Hjt2XZ.cjs} +1 -1
  34. package/dist/{if-defined-Cni-RHLS.cjs → if-defined-CkVc_RJD.cjs} +1 -1
  35. package/dist/{if-defined-CmuO4Vz9.js → if-defined-D3lgJqT7.js} +1 -1
  36. package/dist/index.d.ts +1 -5
  37. package/dist/{input-element-NnrDmp4r.js → input-element-DQOVrqUZ.js} +2 -2
  38. package/dist/{input-element-C4xJoM-X.cjs → input-element-Y8sdrq9C.cjs} +1 -1
  39. package/dist/{input-wrapper-CZ-a00V7.cjs → input-wrapper-C9rZEgju.cjs} +1 -1
  40. package/dist/{input-wrapper-Dr__Sxql.js → input-wrapper-D_JdEqcO.js} +6 -6
  41. package/dist/{link-Cjl0xwSq.cjs → link-CyiVlb-7.cjs} +1 -1
  42. package/dist/{link-AIyVfcyH.js → link-DSSJYrtn.js} +4 -4
  43. package/dist/{linkcard-DqIvb54H.cjs → linkcard-fH9uydjS.cjs} +1 -1
  44. package/dist/{linkcard-9CNlyT0S.js → linkcard-g8JtooPU.js} +4 -4
  45. package/dist/{listbox-C4supLfR.cjs → listbox-BBO1d5Jd.cjs} +1 -1
  46. package/dist/{listbox-CLsSW32I.js → listbox-DJ7b3Wmc.js} +5 -5
  47. package/dist/{loader-h3d-3D7s.js → loader-Bzf1sPSg.js} +5 -5
  48. package/dist/{loader-DNidjwH-.cjs → loader-C-3l7kb9.cjs} +1 -1
  49. package/dist/{messagebox-CjPtPPrW.cjs → messagebox---xPIAwR.cjs} +1 -1
  50. package/dist/{messagebox-C8KQgCl_.js → messagebox-okJLeSpj.js} +5 -5
  51. package/dist/{modal-CRtxhCaP.cjs → modal-IjDRQfX1.cjs} +1 -1
  52. package/dist/{modal-Zj8yRX3K.js → modal-pohCsr_x.js} +5 -5
  53. package/dist/pkt-accordion.cjs +1 -1
  54. package/dist/pkt-accordion.js +2 -2
  55. package/dist/pkt-alert.cjs +1 -1
  56. package/dist/pkt-alert.js +1 -1
  57. package/dist/pkt-backlink.cjs +1 -1
  58. package/dist/pkt-backlink.js +1 -1
  59. package/dist/pkt-button.cjs +1 -1
  60. package/dist/pkt-button.js +1 -1
  61. package/dist/pkt-calendar.cjs +1 -1
  62. package/dist/pkt-calendar.js +1 -1
  63. package/dist/pkt-card.cjs +1 -1
  64. package/dist/pkt-card.js +1 -1
  65. package/dist/pkt-checkbox.cjs +1 -1
  66. package/dist/pkt-checkbox.js +1 -1
  67. package/dist/pkt-combobox.cjs +1 -1
  68. package/dist/pkt-combobox.js +1 -1
  69. package/dist/pkt-consent.cjs +1 -1
  70. package/dist/pkt-consent.js +1 -1
  71. package/dist/pkt-datepicker.cjs +1 -1
  72. package/dist/pkt-datepicker.js +1 -1
  73. package/dist/pkt-heading.cjs +1 -1
  74. package/dist/pkt-heading.js +1 -1
  75. package/dist/pkt-helptext.cjs +1 -1
  76. package/dist/pkt-helptext.js +1 -1
  77. package/dist/pkt-icon.cjs +1 -1
  78. package/dist/pkt-icon.js +1 -1
  79. package/dist/pkt-index.cjs +1 -1
  80. package/dist/pkt-index.js +29 -29
  81. package/dist/pkt-input-wrapper.cjs +1 -1
  82. package/dist/pkt-input-wrapper.js +1 -1
  83. package/dist/pkt-link.cjs +1 -1
  84. package/dist/pkt-link.js +1 -1
  85. package/dist/pkt-linkcard.cjs +1 -1
  86. package/dist/pkt-linkcard.js +1 -1
  87. package/dist/pkt-listbox.cjs +1 -1
  88. package/dist/pkt-listbox.js +1 -1
  89. package/dist/pkt-loader.cjs +1 -1
  90. package/dist/pkt-loader.js +1 -1
  91. package/dist/pkt-messagebox.cjs +1 -1
  92. package/dist/pkt-messagebox.js +1 -1
  93. package/dist/pkt-modal.cjs +1 -1
  94. package/dist/pkt-modal.js +1 -1
  95. package/dist/pkt-progressbar.cjs +1 -1
  96. package/dist/pkt-progressbar.js +2 -2
  97. package/dist/pkt-radiobutton.cjs +1 -1
  98. package/dist/pkt-radiobutton.js +1 -1
  99. package/dist/pkt-select.cjs +1 -1
  100. package/dist/pkt-select.js +1 -1
  101. package/dist/pkt-tag.cjs +1 -1
  102. package/dist/pkt-tag.js +1 -1
  103. package/dist/pkt-textarea.cjs +1 -1
  104. package/dist/pkt-textarea.js +1 -1
  105. package/dist/pkt-textinput.cjs +1 -1
  106. package/dist/pkt-textinput.js +1 -1
  107. package/dist/{progressbar-DhMBXkww.cjs → progressbar-DJzEC7cx.cjs} +1 -1
  108. package/dist/{progressbar-Dj_mI_A6.js → progressbar-DjsupQ7Y.js} +5 -5
  109. package/dist/{radiobutton-CWxiIVfA.js → radiobutton-Bz_qApF3.js} +5 -5
  110. package/dist/{radiobutton-CdT6v1oq.cjs → radiobutton-DEboKECm.cjs} +1 -1
  111. package/dist/{ref-BBYSqgeW.js → ref-BCGCor-j.js} +2 -2
  112. package/dist/{ref-iJtiv3o2.cjs → ref-BfgcOXko.cjs} +1 -1
  113. package/dist/{repeat-C8BeHwYx.js → repeat-B6qPUgAq.js} +2 -2
  114. package/dist/{repeat-CDsZqct8.cjs → repeat-DzibMwhi.cjs} +1 -1
  115. package/dist/{select-Be--DBcR.cjs → select-Cf1RWSsI.cjs} +1 -1
  116. package/dist/{select-VpX_cjMM.js → select-D7OQaUrQ.js} +6 -6
  117. package/dist/{state-DPobt-Yz.cjs → state-BkE_Rxl7.cjs} +1 -1
  118. package/dist/{state-Bo2bck5_.js → state-CPQXJ4Ct.js} +1 -1
  119. package/dist/{tag-Bbs0U_Au.cjs → tag-BKq07hGI.cjs} +1 -1
  120. package/dist/{tag-DyXzTY68.js → tag-NZ5oeGfw.js} +6 -6
  121. package/dist/{textarea-BZL8Mkm0.js → textarea-C0vTWTov.js} +9 -9
  122. package/dist/{textarea-CPXsMFUq.cjs → textarea-CXu8UUsY.cjs} +1 -1
  123. package/dist/{textinput-aNI5kibM.cjs → textinput-C6wccDhZ.cjs} +1 -1
  124. package/dist/{textinput-DjPhmmkB.js → textinput-CmZrfH4A.js} +8 -8
  125. package/package.json +4 -5
  126. package/src/components/accordion/accordionitem.ts +1 -1
  127. package/dist/element-6DBpyGQm.cjs +0 -238
  128. package/dist/element-CgEWt74-.js +0 -21288
@@ -0,0 +1,722 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const P = globalThis, H = P.trustedTypes, V = H ? H.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, st = "$lit$", f = `lit$${Math.random().toFixed(9).slice(2)}$`, it = "?" + f, lt = `<${it}>`, y = document, U = () => y.createComment(""), O = (r) => r === null || typeof r != "object" && typeof r != "function", I = Array.isArray, ct = (r) => I(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", D = `[
7
+ \f\r]`, w = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, J = /-->/g, W = />/g, m = RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^
8
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Z = /'/g, K = /"/g, rt = /^(?:script|style|textarea|title)$/i, dt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), Lt = dt(1), E = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), G = /* @__PURE__ */ new WeakMap(), g = y.createTreeWalker(y, 129);
9
+ function nt(r, t) {
10
+ if (!I(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
11
+ return V !== void 0 ? V.createHTML(t) : t;
12
+ }
13
+ const pt = (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 = J : p[1] !== void 0 ? o = W : p[2] !== void 0 ? (rt.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] === '"' ? K : Z) : o === K || o === Z ? o = m : o === J || o === W ? o = w : (o = m, i = void 0);
20
+ const $ = o === m && r[a + 1].startsWith("/>") ? " " : "";
21
+ n += o === w ? h + lt : l >= 0 ? (s.push(c), h.slice(0, l) + st + h.slice(l) + f + $) : h + f + (l === -2 ? a : $);
22
+ }
23
+ return [nt(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
24
+ };
25
+ class M {
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] = pt(t, e);
31
+ if (this.el = M.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(st)) {
38
+ const u = p[o++], $ = i.getAttribute(l).split(f), T = /([.?@])?(.*)/.exec(u);
39
+ h.push({ type: 1, index: n, name: T[2], strings: $, ctor: T[1] === "." ? $t : T[1] === "?" ? ft : T[1] === "@" ? _t : R }), i.removeAttribute(l);
40
+ } else l.startsWith(f) && (h.push({ type: 6, index: n }), i.removeAttribute(l));
41
+ if (rt.test(i.tagName)) {
42
+ const l = i.textContent.split(f), u = l.length - 1;
43
+ if (u > 0) {
44
+ i.textContent = H ? H.emptyScript : "";
45
+ for (let $ = 0; $ < u; $++) i.append(l[$], U()), g.nextNode(), h.push({ type: 2, index: ++n });
46
+ i.append(l[u], U());
47
+ }
48
+ }
49
+ } else if (i.nodeType === 8) if (i.data === it) 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 S(r, t, e = r, s) {
63
+ var o, a;
64
+ if (t === E) return t;
65
+ let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
66
+ const n = O(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 = S(r, i._$AS(r, t.values), i, s)), t;
68
+ }
69
+ class ut {
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 mt(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 = S(this, t, e), O(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ct(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 && O(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 = M.createElement(nt(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 ut(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 = G.get(t.strings);
139
+ return e === void 0 && G.set(t.strings, e = new M(t)), e;
140
+ }
141
+ k(t) {
142
+ I(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(U()), this.O(U()), 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 && t !== this._$AB; ) {
151
+ const i = t.nextSibling;
152
+ 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 R {
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 = S(this, t, e, 0), o = !O(t) || t !== this._$AH && t !== E, 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 = S(this, a[s + h], e, h), c === E && (c = this._$AH[h]), o || (o = !O(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 R {
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 ft extends R {
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 _t extends R {
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 = S(this, t, e, 0) ?? d) === E) 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 mt {
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
+ S(this, t);
224
+ }
225
+ }
226
+ const jt = { I: b }, L = P.litHtmlPolyfillSupport;
227
+ L == null || L(M, b), (P.litHtmlVersions ?? (P.litHtmlVersions = [])).push("3.3.0");
228
+ const gt = (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(U(), 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 zt = (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 k = globalThis, B = k.ShadowRoot && (k.ShadyCSS === void 0 || k.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ot = Symbol(), Q = /* @__PURE__ */ new WeakMap();
253
+ let At = class {
254
+ constructor(t, e, s) {
255
+ if (this._$cssResult$ = !0, s !== ot) 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 (B && t === void 0) {
262
+ const s = e !== void 0 && e.length === 1;
263
+ s && (t = Q.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Q.set(e, t));
264
+ }
265
+ return t;
266
+ }
267
+ toString() {
268
+ return this.cssText;
269
+ }
270
+ };
271
+ const yt = (r) => new At(typeof r == "string" ? r : r + "", void 0, ot), vt = (r, t) => {
272
+ if (B) 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 = k.litNonce;
275
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
276
+ }
277
+ }, X = B ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
278
+ let e = "";
279
+ for (const s of t.cssRules) e += s.cssText;
280
+ return yt(e);
281
+ })(r) : r;
282
+ /**
283
+ * @license
284
+ * Copyright 2017 Google LLC
285
+ * SPDX-License-Identifier: BSD-3-Clause
286
+ */
287
+ const { is: Et, defineProperty: St, getOwnPropertyDescriptor: bt, getOwnPropertyNames: wt, getOwnPropertySymbols: Pt, getPrototypeOf: Ct } = Object, _ = globalThis, Y = _.trustedTypes, xt = Y ? Y.emptyScript : "", j = _.reactiveElementPolyfillSupport, C = (r, t) => r, N = { toAttribute(r, t) {
288
+ switch (t) {
289
+ case Boolean:
290
+ r = r ? xt : 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
+ } }, F = (r, t) => !Et(r, t), tt = { attribute: !0, type: String, converter: N, reflect: !1, useDefault: !1, hasChanged: F };
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 = tt) {
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 && St(this.prototype, t, i);
328
+ }
329
+ }
330
+ static getPropertyDescriptor(t, e, s) {
331
+ const { get: i, set: n } = bt(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) ?? tt;
343
+ }
344
+ static _$Ei() {
345
+ if (this.hasOwnProperty(C("elementProperties"))) return;
346
+ const t = Ct(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 = [...wt(e), ...Pt(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(X(i));
372
+ } else t !== void 0 && e.push(X(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 vt(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 : N).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 : N;
435
+ this._$Em = i, this[i] = h.fromAttribute(e, a.type) ?? ((o = this._$Ej) == null ? void 0 : o.get(i)) ?? null, this._$Em = null;
436
+ }
437
+ }
438
+ requestUpdate(t, e, s) {
439
+ var i;
440
+ if (t !== void 0) {
441
+ const n = this.constructor, o = this[t];
442
+ if (s ?? (s = n.getPropertyOptions(t)), !((s.hasChanged ?? F)(o, e) || s.useDefault && s.reflect && o === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(n._$Eu(t, s)))) return;
443
+ this.C(t, e, s);
444
+ }
445
+ this.isUpdatePending === !1 && (this._$ES = this._$EP());
446
+ }
447
+ C(t, e, { useDefault: s, reflect: i, wrapped: n }, o) {
448
+ 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));
449
+ }
450
+ async _$EP() {
451
+ this.isUpdatePending = !0;
452
+ try {
453
+ await this._$ES;
454
+ } catch (e) {
455
+ Promise.reject(e);
456
+ }
457
+ const t = this.scheduleUpdate();
458
+ return t != null && await t, !this.isUpdatePending;
459
+ }
460
+ scheduleUpdate() {
461
+ return this.performUpdate();
462
+ }
463
+ performUpdate() {
464
+ var s;
465
+ if (!this.isUpdatePending) return;
466
+ if (!this.hasUpdated) {
467
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
468
+ for (const [n, o] of this._$Ep) this[n] = o;
469
+ this._$Ep = void 0;
470
+ }
471
+ const i = this.constructor.elementProperties;
472
+ if (i.size > 0) for (const [n, o] of i) {
473
+ const { wrapped: a } = o, h = this[n];
474
+ a !== !0 || this._$AL.has(n) || h === void 0 || this.C(n, void 0, o, h);
475
+ }
476
+ }
477
+ let t = !1;
478
+ const e = this._$AL;
479
+ try {
480
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
481
+ var n;
482
+ return (n = i.hostUpdate) == null ? void 0 : n.call(i);
483
+ }), this.update(e)) : this._$EM();
484
+ } catch (i) {
485
+ throw t = !1, this._$EM(), i;
486
+ }
487
+ t && this._$AE(e);
488
+ }
489
+ willUpdate(t) {
490
+ }
491
+ _$AE(t) {
492
+ var e;
493
+ (e = this._$EO) == null || e.forEach((s) => {
494
+ var i;
495
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
496
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
497
+ }
498
+ _$EM() {
499
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
500
+ }
501
+ get updateComplete() {
502
+ return this.getUpdateComplete();
503
+ }
504
+ getUpdateComplete() {
505
+ return this._$ES;
506
+ }
507
+ shouldUpdate(t) {
508
+ return !0;
509
+ }
510
+ update(t) {
511
+ this._$Eq && (this._$Eq = this._$Eq.forEach((e) => this._$ET(e, this[e]))), this._$EM();
512
+ }
513
+ updated(t) {
514
+ }
515
+ firstUpdated(t) {
516
+ }
517
+ }
518
+ 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.0");
519
+ /**
520
+ * @license
521
+ * Copyright 2017 Google LLC
522
+ * SPDX-License-Identifier: BSD-3-Clause
523
+ */
524
+ const Ut = { attribute: !0, type: String, converter: N, reflect: !1, hasChanged: F }, Ot = (r = Ut, t, e) => {
525
+ const { kind: s, metadata: i } = e;
526
+ let n = globalThis.litPropertyMetadata.get(i);
527
+ 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") {
528
+ const { name: o } = e;
529
+ return { set(a) {
530
+ const h = t.get.call(this);
531
+ t.set.call(this, a), this.requestUpdate(o, h, r);
532
+ }, init(a) {
533
+ return a !== void 0 && this.C(o, void 0, r, a), a;
534
+ } };
535
+ }
536
+ if (s === "setter") {
537
+ const { name: o } = e;
538
+ return function(a) {
539
+ const h = this[o];
540
+ t.call(this, a), this.requestUpdate(o, h, r);
541
+ };
542
+ }
543
+ throw Error("Unsupported decorator location: " + s);
544
+ };
545
+ function ht(r) {
546
+ return (t, e) => typeof e == "object" ? Ot(r, t, e) : ((s, i, n) => {
547
+ const o = i.hasOwnProperty(n);
548
+ return i.constructor.createProperty(n, s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
549
+ })(r, t, e);
550
+ }
551
+ /**
552
+ * @license
553
+ * Copyright 2017 Google LLC
554
+ * SPDX-License-Identifier: BSD-3-Clause
555
+ */
556
+ const A = globalThis;
557
+ class x extends v {
558
+ constructor() {
559
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
560
+ }
561
+ createRenderRoot() {
562
+ var e;
563
+ const t = super.createRenderRoot();
564
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
565
+ }
566
+ update(t) {
567
+ const e = this.render();
568
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = gt(e, this.renderRoot, this.renderOptions);
569
+ }
570
+ connectedCallback() {
571
+ var t;
572
+ super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
573
+ }
574
+ disconnectedCallback() {
575
+ var t;
576
+ super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
577
+ }
578
+ render() {
579
+ return E;
580
+ }
581
+ }
582
+ var et;
583
+ x._$litElement$ = !0, x.finalized = !0, (et = A.litElementHydrateSupport) == null || et.call(A, { LitElement: x });
584
+ const z = A.litElementPolyfillSupport;
585
+ z == null || z({ LitElement: x });
586
+ (A.litElementVersions ?? (A.litElementVersions = [])).push("4.2.0");
587
+ const Mt = {
588
+ hi: "Hei!"
589
+ }, Tt = {
590
+ from: "Fra",
591
+ to: "Til"
592
+ }, kt = {
593
+ buttonAltText: "Åpne kalender",
594
+ deleteDate: "Fjern dato"
595
+ }, Ht = {
596
+ month: "Måned",
597
+ year: "År",
598
+ days: [
599
+ "Mandag",
600
+ "Tirsdag",
601
+ "Onsdag",
602
+ "Torsdag",
603
+ "Fredag",
604
+ "Lørdag",
605
+ "Søndag"
606
+ ],
607
+ daysShort: [
608
+ "Man",
609
+ "Tir",
610
+ "Ons",
611
+ "Tor",
612
+ "Fre",
613
+ "Lør",
614
+ "Søn"
615
+ ],
616
+ months: [
617
+ "Januar",
618
+ "Februar",
619
+ "Mars",
620
+ "April",
621
+ "Mai",
622
+ "Juni",
623
+ "Juli",
624
+ "August",
625
+ "September",
626
+ "Oktober",
627
+ "November",
628
+ "Desember"
629
+ ],
630
+ monthsShort: [
631
+ "Jan",
632
+ "Feb",
633
+ "Mar",
634
+ "Apr",
635
+ "Mai",
636
+ "Jun",
637
+ "Jul",
638
+ "Aug",
639
+ "Sep",
640
+ "Okt",
641
+ "Nov",
642
+ "Des"
643
+ ],
644
+ week: "Uke",
645
+ prevMonth: "Forrige måned",
646
+ nextMonth: "Neste måned"
647
+ }, Nt = {
648
+ search: {
649
+ placeholder: "Søk…"
650
+ },
651
+ labels: {
652
+ optional: "Valgfritt",
653
+ required: "Må fylles ut"
654
+ },
655
+ messages: {
656
+ required: "Dette feltet er påkrevd",
657
+ invalid: "Ugyldig verdi",
658
+ invalidPattern: "Ugyldig format",
659
+ tooShort: "For kort",
660
+ tooLong: "For lang",
661
+ rangeUnderflow: "For lav verdi",
662
+ rangeOverflow: "For høy verdi",
663
+ rangeUnderflowMin: "Verdien må være større enn eller lik {min}.",
664
+ rangeOverflowMax: "Verdien må være mindre enn eller lik {max}.",
665
+ dateUnderflow: "For tidlig dato",
666
+ dateOverflow: "For sen dato"
667
+ },
668
+ helptext: {
669
+ helptextDropdownButton: "Les mer"
670
+ },
671
+ date: {
672
+ multiple: "Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato."
673
+ }
674
+ }, Rt = {
675
+ example: Mt,
676
+ generic: Tt,
677
+ calendar: kt,
678
+ dates: Ht,
679
+ forms: Nt
680
+ };
681
+ var Dt = Object.defineProperty, at = (r, t, e, s) => {
682
+ for (var i = void 0, n = r.length - 1, o; n >= 0; n--)
683
+ (o = r[n]) && (i = o(t, e, i) || i);
684
+ return i && Dt(t, e, i), i;
685
+ };
686
+ class q extends x {
687
+ constructor() {
688
+ super(...arguments), this.strings = Rt, this.role = null;
689
+ }
690
+ /**
691
+ * Add support for Hot Module Reloading in dev mode
692
+ */
693
+ hotReplacedCallback() {
694
+ this.requestUpdate();
695
+ }
696
+ }
697
+ at([
698
+ ht({ type: Object })
699
+ ], q.prototype, "strings");
700
+ at([
701
+ ht({ type: String })
702
+ ], q.prototype, "role");
703
+ class Bt extends q {
704
+ /**
705
+ * Make sure the component renders in light DOM instead of shadow DOM
706
+ */
707
+ createRenderRoot() {
708
+ return this;
709
+ }
710
+ }
711
+ export {
712
+ d as E,
713
+ Bt as P,
714
+ E as T,
715
+ jt as Z,
716
+ zt as a,
717
+ q as b,
718
+ x as i,
719
+ ht as n,
720
+ Rt as t,
721
+ Lt as x
722
+ };