@oslokommune/punkt-elements 12.3.8 → 12.3.9

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 (38) hide show
  1. package/dist/{class-map-j1NPDnPL.cjs → class-map-CFiVus5w.cjs} +1 -1
  2. package/dist/{class-map-Cme3zDHv.js → class-map-DnAEF9tj.js} +1 -1
  3. package/dist/{index-D16hQiYU.js → index-BoxUN9GL.js} +72 -58
  4. package/dist/{index-D1du6BqK.js → index-CiTPWPc2.js} +3 -3
  5. package/dist/{index-CQrIaUIc.js → index-CsKoXqeT.js} +1 -1
  6. package/dist/{index--Z_thODp.cjs → index-DZ0cjZdG.cjs} +1 -1
  7. package/dist/{index-BoJqccWT.cjs → index-DZGlpxj6.cjs} +4 -4
  8. package/dist/{index-xZNrDhoQ.cjs → index-ZXmkp0To.cjs} +1 -1
  9. package/dist/index.d.ts +2 -0
  10. package/dist/pkt-alert.cjs +1 -1
  11. package/dist/pkt-alert.js +4 -4
  12. package/dist/pkt-calendar.cjs +1 -1
  13. package/dist/pkt-calendar.js +4 -4
  14. package/dist/pkt-card.cjs +1 -1
  15. package/dist/pkt-card.js +4 -4
  16. package/dist/pkt-component-template.cjs +1 -1
  17. package/dist/pkt-component-template.js +3 -3
  18. package/dist/pkt-datepicker.cjs +9 -9
  19. package/dist/pkt-datepicker.js +31 -33
  20. package/dist/pkt-element.cjs +1 -1
  21. package/dist/pkt-element.js +1 -1
  22. package/dist/pkt-icon.cjs +1 -1
  23. package/dist/pkt-icon.js +2 -2
  24. package/dist/pkt-index.cjs +1 -1
  25. package/dist/pkt-index.js +2 -2
  26. package/dist/pkt-input-wrapper.cjs +1 -1
  27. package/dist/pkt-input-wrapper.js +4 -4
  28. package/dist/pkt-link.cjs +1 -1
  29. package/dist/pkt-link.js +4 -4
  30. package/dist/pkt-messagebox.cjs +1 -1
  31. package/dist/pkt-messagebox.js +4 -4
  32. package/dist/pkt-tag.cjs +1 -1
  33. package/dist/pkt-tag.js +4 -4
  34. package/dist/{ref-CC5SNvNX.js → ref-DzpbHCb_.js} +1 -1
  35. package/dist/{ref-B5fRDLdm.cjs → ref-G2cIenWo.cjs} +1 -1
  36. package/package.json +2 -2
  37. package/src/components/datepicker/index.ts +9 -25
  38. package/src/components/element/index.ts +37 -0
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("./index-BoJqccWT.cjs"),n=require("./directive-19_ixLKS.cjs");/**
1
+ "use strict";const a=require("./index-DZGlpxj6.cjs"),n=require("./directive-19_ixLKS.cjs");/**
2
2
  * @license
3
3
  * Copyright 2018 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,4 +1,4 @@
1
- import { R as a } from "./index-D16hQiYU.js";
1
+ import { R as a } from "./index-BoxUN9GL.js";
2
2
  import { e as h, i as d, a as c } from "./directive-DA0-wdk7.js";
3
3
  /**
4
4
  * @license
@@ -22,7 +22,7 @@ let vt = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const bt = (r) => new vt(typeof r == "string" ? r : r + "", void 0, dt), St = (r, t) => {
25
+ const bt = (r) => new vt(typeof r == "string" ? r : r + "", void 0, dt), Et = (r, t) => {
26
26
  if (W) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
27
27
  else for (const e of t) {
28
28
  const s = document.createElement("style"), i = I.litNonce;
@@ -38,7 +38,7 @@ const bt = (r) => new vt(typeof r == "string" ? r : r + "", void 0, dt), St = (r
38
38
  * Copyright 2017 Google LLC
39
39
  * SPDX-License-Identifier: BSD-3-Clause
40
40
  */
41
- const { is: Et, defineProperty: wt, getOwnPropertyDescriptor: Ut, getOwnPropertyNames: xt, getOwnPropertySymbols: Pt, getPrototypeOf: Ct } = Object, v = globalThis, tt = v.trustedTypes, Tt = tt ? tt.emptyScript : "", q = v.reactiveElementPolyfillSupport, T = (r, t) => r, D = { toAttribute(r, t) {
41
+ const { is: St, defineProperty: wt, getOwnPropertyDescriptor: Ut, getOwnPropertyNames: xt, getOwnPropertySymbols: Pt, getPrototypeOf: Ct } = Object, v = globalThis, tt = v.trustedTypes, Tt = tt ? tt.emptyScript : "", q = v.reactiveElementPolyfillSupport, T = (r, t) => r, D = { toAttribute(r, t) {
42
42
  switch (t) {
43
43
  case Boolean:
44
44
  r = r ? Tt : null;
@@ -66,7 +66,7 @@ const { is: Et, defineProperty: wt, getOwnPropertyDescriptor: Ut, getOwnProperty
66
66
  }
67
67
  }
68
68
  return e;
69
- } }, K = (r, t) => !Et(r, t), et = { attribute: !0, type: String, converter: D, reflect: !1, hasChanged: K };
69
+ } }, K = (r, t) => !St(r, t), et = { attribute: !0, type: String, converter: D, reflect: !1, hasChanged: K };
70
70
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), v.litPropertyMetadata ?? (v.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
71
71
  class U extends HTMLElement {
72
72
  static addInitializer(t) {
@@ -154,7 +154,7 @@ class U extends HTMLElement {
154
154
  }
155
155
  createRenderRoot() {
156
156
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
157
- return St(t, this.constructor.elementStyles), t;
157
+ return Et(t, this.constructor.elementStyles), t;
158
158
  }
159
159
  connectedCallback() {
160
160
  var t;
@@ -272,20 +272,20 @@ U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, U[T("elementProper
272
272
  * Copyright 2017 Google LLC
273
273
  * SPDX-License-Identifier: BSD-3-Clause
274
274
  */
275
- const M = globalThis, F = M.trustedTypes, st = F ? F.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Z = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, G = "?" + _, Mt = `<${G}>`, E = document, R = () => E.createComment(""), N = (r) => r === null || typeof r != "object" && typeof r != "function", Q = Array.isArray, ct = (r) => Q(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", j = `[
275
+ const M = globalThis, F = M.trustedTypes, st = F ? F.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Z = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, G = "?" + _, Mt = `<${G}>`, S = document, R = () => S.createComment(""), N = (r) => r === null || typeof r != "object" && typeof r != "function", Q = Array.isArray, ct = (r) => Q(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", j = `[
276
276
  \f\r]`, C = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, it = /-->/g, rt = />/g, b = RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^
277
- \f\r"'\`<>=]|("|')|))|$)`, "g"), nt = /'/g, ot = /"/g, pt = /^(?:script|style|textarea|title)$/i, Ot = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), Kt = Ot(1), x = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), at = /* @__PURE__ */ new WeakMap(), S = E.createTreeWalker(E, 129);
277
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), nt = /'/g, ot = /"/g, pt = /^(?:script|style|textarea|title)$/i, Ot = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), Kt = Ot(1), x = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), at = /* @__PURE__ */ new WeakMap(), E = S.createTreeWalker(S, 129);
278
278
  function ut(r, t) {
279
279
  if (!Q(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
280
280
  return st !== void 0 ? st.createHTML(t) : t;
281
281
  }
282
- const mt = (r, t) => {
282
+ const gt = (r, t) => {
283
283
  const e = r.length - 1, s = [];
284
284
  let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = C;
285
285
  for (let h = 0; h < e; h++) {
286
286
  const a = r[h];
287
- let d, y, l = -1, $ = 0;
288
- for (; $ < a.length && (n.lastIndex = $, y = n.exec(a), y !== null); ) $ = n.lastIndex, n === C ? y[1] === "!--" ? n = it : y[1] !== void 0 ? n = rt : y[2] !== void 0 ? (pt.test(y[2]) && (i = RegExp("</" + y[2], "g")), n = b) : y[3] !== void 0 && (n = b) : n === b ? y[0] === ">" ? (n = i ?? C, l = -1) : y[1] === void 0 ? l = -2 : (l = n.lastIndex - y[2].length, d = y[1], n = y[3] === void 0 ? b : y[3] === '"' ? ot : nt) : n === ot || n === nt ? n = b : n === it || n === rt ? n = C : (n = b, i = void 0);
287
+ let d, f, l = -1, $ = 0;
288
+ for (; $ < a.length && (n.lastIndex = $, f = n.exec(a), f !== null); ) $ = n.lastIndex, n === C ? f[1] === "!--" ? n = it : f[1] !== void 0 ? n = rt : f[2] !== void 0 ? (pt.test(f[2]) && (i = RegExp("</" + f[2], "g")), n = b) : f[3] !== void 0 && (n = b) : n === b ? f[0] === ">" ? (n = i ?? C, l = -1) : f[1] === void 0 ? l = -2 : (l = n.lastIndex - f[2].length, d = f[1], n = f[3] === void 0 ? b : f[3] === '"' ? ot : nt) : n === ot || n === nt ? n = b : n === it || n === rt ? n = C : (n = b, i = void 0);
289
289
  const A = n === b && r[h + 1].startsWith("/>") ? " " : "";
290
290
  o += n === C ? a + Mt : l >= 0 ? (s.push(d), a.slice(0, l) + Z + a.slice(l) + _ + A) : a + _ + (l === -2 ? h : A);
291
291
  }
@@ -296,22 +296,22 @@ class k {
296
296
  let i;
297
297
  this.parts = [];
298
298
  let o = 0, n = 0;
299
- const h = t.length - 1, a = this.parts, [d, y] = mt(t, e);
300
- if (this.el = k.createElement(d, s), S.currentNode = this.el.content, e === 2 || e === 3) {
299
+ const h = t.length - 1, a = this.parts, [d, f] = gt(t, e);
300
+ if (this.el = k.createElement(d, s), E.currentNode = this.el.content, e === 2 || e === 3) {
301
301
  const l = this.el.content.firstChild;
302
302
  l.replaceWith(...l.childNodes);
303
303
  }
304
- for (; (i = S.nextNode()) !== null && a.length < h; ) {
304
+ for (; (i = E.nextNode()) !== null && a.length < h; ) {
305
305
  if (i.nodeType === 1) {
306
306
  if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(Z)) {
307
- const $ = y[n++], A = i.getAttribute(l).split(_), V = /([.?@])?(.*)/.exec($);
308
- a.push({ type: 1, index: o, name: V[2], strings: A, ctor: V[1] === "." ? yt : V[1] === "?" ? gt : V[1] === "@" ? $t : H }), i.removeAttribute(l);
307
+ const $ = f[n++], A = i.getAttribute(l).split(_), V = /([.?@])?(.*)/.exec($);
308
+ a.push({ type: 1, index: o, name: V[2], strings: A, ctor: V[1] === "." ? ft : V[1] === "?" ? yt : V[1] === "@" ? $t : H }), i.removeAttribute(l);
309
309
  } else l.startsWith(_) && (a.push({ type: 6, index: o }), i.removeAttribute(l));
310
310
  if (pt.test(i.tagName)) {
311
311
  const l = i.textContent.split(_), $ = l.length - 1;
312
312
  if ($ > 0) {
313
313
  i.textContent = F ? F.emptyScript : "";
314
- for (let A = 0; A < $; A++) i.append(l[A], R()), S.nextNode(), a.push({ type: 2, index: ++o });
314
+ for (let A = 0; A < $; A++) i.append(l[A], R()), E.nextNode(), a.push({ type: 2, index: ++o });
315
315
  i.append(l[$], R());
316
316
  }
317
317
  }
@@ -324,7 +324,7 @@ class k {
324
324
  }
325
325
  }
326
326
  static createElement(t, e) {
327
- const s = E.createElement("template");
327
+ const s = S.createElement("template");
328
328
  return s.innerHTML = t, s;
329
329
  }
330
330
  }
@@ -335,7 +335,7 @@ function w(r, t, e = r, s) {
335
335
  const o = N(t) ? void 0 : t._$litDirective$;
336
336
  return (i == null ? void 0 : i.constructor) !== o && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), o === void 0 ? i = void 0 : (i = new o(r), i._$AT(r, e, s)), s !== void 0 ? (e.o ?? (e.o = []))[s] = i : e.l = i), i !== void 0 && (t = w(r, i._$AS(r, t.values), i, s)), t;
337
337
  }
338
- class ft {
338
+ class mt {
339
339
  constructor(t, e) {
340
340
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
341
341
  }
@@ -346,17 +346,17 @@ class ft {
346
346
  return this._$AM._$AU;
347
347
  }
348
348
  u(t) {
349
- const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? E).importNode(e, !0);
350
- S.currentNode = i;
351
- let o = S.nextNode(), n = 0, h = 0, a = s[0];
349
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? S).importNode(e, !0);
350
+ E.currentNode = i;
351
+ let o = E.nextNode(), n = 0, h = 0, a = s[0];
352
352
  for (; a !== void 0; ) {
353
353
  if (n === a.index) {
354
354
  let d;
355
355
  a.type === 2 ? d = new P(o, o.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(o, a.name, a.strings, this, t) : a.type === 6 && (d = new _t(o, this, t)), this._$AV.push(d), a = s[++h];
356
356
  }
357
- n !== (a == null ? void 0 : a.index) && (o = S.nextNode(), n++);
357
+ n !== (a == null ? void 0 : a.index) && (o = E.nextNode(), n++);
358
358
  }
359
- return S.currentNode = E, i;
359
+ return E.currentNode = S, i;
360
360
  }
361
361
  p(t) {
362
362
  let e = 0;
@@ -392,14 +392,14 @@ class P {
392
392
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
393
393
  }
394
394
  _(t) {
395
- this._$AH !== c && N(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
395
+ this._$AH !== c && N(this._$AH) ? this._$AA.nextSibling.data = t : this.T(S.createTextNode(t)), this._$AH = t;
396
396
  }
397
397
  $(t) {
398
398
  var o;
399
399
  const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = k.createElement(ut(s.h, s.h[0]), this.options)), s);
400
400
  if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(e);
401
401
  else {
402
- const n = new ft(i, this), h = n.u(this.options);
402
+ const n = new mt(i, this), h = n.u(this.options);
403
403
  n.p(e), this.T(h), this._$AH = n;
404
404
  }
405
405
  }
@@ -451,7 +451,7 @@ class H {
451
451
  t === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
452
452
  }
453
453
  }
454
- class yt extends H {
454
+ class ft extends H {
455
455
  constructor() {
456
456
  super(...arguments), this.type = 3;
457
457
  }
@@ -459,7 +459,7 @@ class yt extends H {
459
459
  this.element[this.name] = t === c ? void 0 : t;
460
460
  }
461
461
  }
462
- class gt extends H {
462
+ class yt extends H {
463
463
  constructor() {
464
464
  super(...arguments), this.type = 4;
465
465
  }
@@ -492,7 +492,7 @@ class _t {
492
492
  w(this, t);
493
493
  }
494
494
  }
495
- const Zt = { M: Z, P: _, A: G, C: 1, L: mt, R: ft, D: ct, V: w, I: P, H, N: gt, U: $t, B: yt, F: _t }, B = M.litHtmlPolyfillSupport;
495
+ const Zt = { M: Z, P: _, A: G, C: 1, L: gt, R: mt, D: ct, V: w, I: P, H, N: yt, U: $t, B: ft, F: _t }, B = M.litHtmlPolyfillSupport;
496
496
  B == null || B(k, P), (M.litHtmlVersions ?? (M.litHtmlVersions = [])).push("3.2.0");
497
497
  const Rt = (r, t, e) => {
498
498
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
@@ -578,11 +578,11 @@ function p(r) {
578
578
  function Ht(r) {
579
579
  return p({ ...r, state: !0, attribute: !1 });
580
580
  }
581
- var m = [];
581
+ var g = [];
582
582
  for (var J = 0; J < 256; ++J)
583
- m.push((J + 256).toString(16).slice(1));
583
+ g.push((J + 256).toString(16).slice(1));
584
584
  function Vt(r, t = 0) {
585
- return (m[r[t + 0]] + m[r[t + 1]] + m[r[t + 2]] + m[r[t + 3]] + "-" + m[r[t + 4]] + m[r[t + 5]] + "-" + m[r[t + 6]] + m[r[t + 7]] + "-" + m[r[t + 8]] + m[r[t + 9]] + "-" + m[r[t + 10]] + m[r[t + 11]] + m[r[t + 12]] + m[r[t + 13]] + m[r[t + 14]] + m[r[t + 15]]).toLowerCase();
585
+ return (g[r[t + 0]] + g[r[t + 1]] + g[r[t + 2]] + g[r[t + 3]] + "-" + g[r[t + 4]] + g[r[t + 5]] + "-" + g[r[t + 6]] + g[r[t + 7]] + "-" + g[r[t + 8]] + g[r[t + 9]] + "-" + g[r[t + 10]] + g[r[t + 11]] + g[r[t + 12]] + g[r[t + 13]] + g[r[t + 14]] + g[r[t + 15]]).toLowerCase();
586
586
  }
587
587
  var L, Lt = new Uint8Array(16);
588
588
  function It() {
@@ -674,7 +674,7 @@ const qt = {
674
674
  date: {
675
675
  multiple: "Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato."
676
676
  }
677
- }, g = {
677
+ }, y = {
678
678
  example: qt,
679
679
  calendar: jt,
680
680
  dates: Bt,
@@ -690,7 +690,7 @@ class At extends O {
690
690
  * Add extra stuff here whenever we decide what should be added here…
691
691
  */
692
692
  constructor() {
693
- super(), this.strings = g;
693
+ super(), this.strings = y;
694
694
  }
695
695
  /**
696
696
  * Runs on mount, used to set up various values and whatever you need to run
@@ -714,25 +714,25 @@ class At extends O {
714
714
  u([
715
715
  p({ type: Object })
716
716
  ], At.prototype, "strings");
717
- class f extends At {
717
+ class m extends At {
718
718
  constructor() {
719
- super(), this.id = Ft(), this.name = this.id, this.required = !1, this.disabled = !1, this.placeholder = "", this.min = null, this.max = null, this.minlength = 0, this.maxlength = 0, this.pattern = "", this.optionalTag = !1, this.optionalText = g.forms.labels.optional, this.requiredTag = !1, this.requiredText = g.forms.labels.required, this.hasError = !1, this.errorMessage = "", this.touched = !1, this.internals = this.attachInternals();
719
+ super(), this.id = Ft(), this.name = this.id, this.required = !1, this.disabled = !1, this.placeholder = "", this.min = null, this.max = null, this.minlength = 0, this.maxlength = 0, this.pattern = "", this.optionalTag = !1, this.optionalText = y.forms.labels.optional, this.requiredTag = !1, this.requiredText = y.forms.labels.required, this.hasError = !1, this.errorMessage = "", this.touched = !1, this.internals = this.attachInternals();
720
720
  }
721
721
  static get formAssociated() {
722
722
  return !0;
723
723
  }
724
724
  manageValidity(t) {
725
- this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 }, g.forms.messages.required, t) : t.validity.typeMismatch || t.validity.badInput ? this.internals.setValidity({ typeMismatch: !0 }, g.forms.messages.invalid, t) : t.validity.patternMismatch ? this.internals.setValidity(
725
+ this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 }, y.forms.messages.required, t) : t.validity.typeMismatch || t.validity.badInput ? this.internals.setValidity({ typeMismatch: !0 }, y.forms.messages.invalid, t) : t.validity.patternMismatch ? this.internals.setValidity(
726
726
  { patternMismatch: !0 },
727
- g.forms.messages.invalidPattern,
727
+ y.forms.messages.invalidPattern,
728
728
  t
729
- ) : t.validity.tooShort || this.minLength > 0 && this.value.length < this.minLength ? this.internals.setValidity({ tooShort: !0 }, g.forms.messages.tooShort, t) : t.validity.tooLong || this.maxLength > 0 && this.value.length > this.maxLength ? this.internals.setValidity({ tooLong: !0 }, g.forms.messages.tooLong, t) : t.validity.rangeUnderflow ? this.internals.setValidity(
729
+ ) : t.validity.tooShort || this.minLength > 0 && this.value.length < this.minLength ? this.internals.setValidity({ tooShort: !0 }, y.forms.messages.tooShort, t) : t.validity.tooLong || this.maxLength > 0 && this.value.length > this.maxLength ? this.internals.setValidity({ tooLong: !0 }, y.forms.messages.tooLong, t) : t.validity.rangeUnderflow ? this.internals.setValidity(
730
730
  { rangeUnderflow: !0 },
731
- g.forms.messages.rangeUnderflow,
731
+ y.forms.messages.rangeUnderflow,
732
732
  t
733
733
  ) : t.validity.rangeOverflow ? this.internals.setValidity(
734
734
  { rangeOverflow: !0 },
735
- g.forms.messages.rangeOverflow,
735
+ y.forms.messages.rangeOverflow,
736
736
  t
737
737
  ) : t.validity.customError ? this.internals.setValidity({ customError: !0 }, t.validationMessage, t) : this.internals.setValidity({});
738
738
  }
@@ -746,6 +746,20 @@ class f extends At {
746
746
  } else
747
747
  this.internals.setFormValue(t);
748
748
  }
749
+ valueChanged(t, e) {
750
+ typeof t == "string" ? ((this.multiple || this.range) && t.includes(",") && (t = t.split(",")), this.value = t, this._value = Array.isArray(t) ? t : [t]) : Array.isArray(t) ? (this.value = t, this._value = t) : (this.value = "", this._value = []), (!this.value || this.value.length === 0) && e && e.length !== 0 ? this.clearInputValue() : this.value && this.value.toString() !== (e == null ? void 0 : e.toString()) && this.onInput(this.value), this.updateComplete.then(() => this.requestUpdate());
751
+ }
752
+ // When input goes from content to no content
753
+ clearInputValue() {
754
+ const t = this.multiple || this.range ? [] : "";
755
+ this.value = t, this.internals.setFormValue(t), this.dispatchEvent(new Event("change")), this.dispatchEvent(
756
+ new CustomEvent("value-change", {
757
+ detail: t,
758
+ bubbles: !0,
759
+ composed: !0
760
+ })
761
+ );
762
+ }
749
763
  // Trigger this when you want to set the value of the input out to the form
750
764
  onInput(t) {
751
765
  if (!this.touched) {
@@ -766,64 +780,64 @@ class f extends At {
766
780
  }
767
781
  u([
768
782
  p({ type: String, reflect: !0 })
769
- ], f.prototype, "id");
783
+ ], m.prototype, "id");
770
784
  u([
771
785
  p({ type: String, reflect: !0 })
772
- ], f.prototype, "name");
786
+ ], m.prototype, "name");
773
787
  u([
774
788
  p({ type: Boolean, reflect: !0 })
775
- ], f.prototype, "required");
789
+ ], m.prototype, "required");
776
790
  u([
777
791
  p({ type: Boolean, reflect: !0 })
778
- ], f.prototype, "disabled");
792
+ ], m.prototype, "disabled");
779
793
  u([
780
794
  p({ type: String, reflect: !0 })
781
- ], f.prototype, "placeholder");
795
+ ], m.prototype, "placeholder");
782
796
  u([
783
797
  p({ type: Number, reflect: !0 })
784
- ], f.prototype, "min");
798
+ ], m.prototype, "min");
785
799
  u([
786
800
  p({ type: Number, reflect: !0 })
787
- ], f.prototype, "max");
801
+ ], m.prototype, "max");
788
802
  u([
789
803
  p({ type: Number, reflect: !0 })
790
- ], f.prototype, "minlength");
804
+ ], m.prototype, "minlength");
791
805
  u([
792
806
  p({ type: Number, reflect: !0 })
793
- ], f.prototype, "maxlength");
807
+ ], m.prototype, "maxlength");
794
808
  u([
795
809
  p({ type: String, reflect: !0 })
796
- ], f.prototype, "pattern");
810
+ ], m.prototype, "pattern");
797
811
  u([
798
812
  p({ type: Boolean, reflect: !0 })
799
- ], f.prototype, "optionalTag");
813
+ ], m.prototype, "optionalTag");
800
814
  u([
801
815
  p({ type: String, reflect: !0 })
802
- ], f.prototype, "optionalText");
816
+ ], m.prototype, "optionalText");
803
817
  u([
804
818
  p({ type: Boolean, reflect: !0 })
805
- ], f.prototype, "requiredTag");
819
+ ], m.prototype, "requiredTag");
806
820
  u([
807
821
  p({ type: String, reflect: !0 })
808
- ], f.prototype, "requiredText");
822
+ ], m.prototype, "requiredText");
809
823
  u([
810
824
  p({ type: Boolean, reflect: !0 })
811
- ], f.prototype, "hasError");
825
+ ], m.prototype, "hasError");
812
826
  u([
813
827
  p({ type: String, reflect: !0 })
814
- ], f.prototype, "errorMessage");
828
+ ], m.prototype, "errorMessage");
815
829
  u([
816
830
  Ht()
817
- ], f.prototype, "touched");
831
+ ], m.prototype, "touched");
818
832
  export {
819
833
  c as D,
820
834
  At as P,
821
835
  x as R,
822
- f as a,
836
+ m as a,
823
837
  Kt as k,
824
838
  p as n,
825
839
  Ht as r,
826
840
  Zt as s,
827
- g as t,
841
+ y as t,
828
842
  Ft as v
829
843
  };
@@ -1,8 +1,8 @@
1
- import { r as O, P as $, k as f, D, n as c } from "./index-D16hQiYU.js";
1
+ import { r as O, P as $, k as f, D, n as c } from "./index-BoxUN9GL.js";
2
2
  import { a as b } from "./converters-DNCwIFwr.js";
3
3
  import { t as A } from "./directive-DA0-wdk7.js";
4
- import { R as I } from "./class-map-Cme3zDHv.js";
5
- import "./index-CQrIaUIc.js";
4
+ import { R as I } from "./class-map-DnAEF9tj.js";
5
+ import "./index-CsKoXqeT.js";
6
6
  function k(e) {
7
7
  const t = Object.prototype.toString.call(e);
8
8
  return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
@@ -1,4 +1,4 @@
1
- import { D as w, R as g, P as y, k as P, n as a } from "./index-D16hQiYU.js";
1
+ import { D as w, R as g, P as y, k as P, n as a } from "./index-BoxUN9GL.js";
2
2
  import { i as m, a as k, e as v, t as _ } from "./directive-DA0-wdk7.js";
3
3
  /**
4
4
  * @license
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("./index-BoJqccWT.cjs"),n=require("./directive-19_ixLKS.cjs");/**
1
+ "use strict";const o=require("./index-DZGlpxj6.cjs"),n=require("./directive-19_ixLKS.cjs");/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -2,7 +2,7 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const I=globalThis,W=I.ShadowRoot&&(I.ShadyCSS===void 0||I.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ct=Symbol(),X=new WeakMap;let Et=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ct)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(W&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=X.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&X.set(e,t))}return t}toString(){return this.cssText}};const St=r=>new Et(typeof r=="string"?r:r+"",void 0,ct),wt=(r,t)=>{if(W)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=I.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},tt=W?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return St(e)})(r):r;/**
5
+ */const L=globalThis,W=L.ShadowRoot&&(L.ShadyCSS===void 0||L.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ct=Symbol(),X=new WeakMap;let Et=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ct)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(W&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=X.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&X.set(e,t))}return t}toString(){return this.cssText}};const St=r=>new Et(typeof r=="string"?r:r+"",void 0,ct),wt=(r,t)=>{if(W)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=L.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},tt=W?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return St(e)})(r):r;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
@@ -12,7 +12,7 @@
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
13
  */const M=globalThis,F=M.trustedTypes,it=F?F.createPolicy("lit-html",{createHTML:r=>r}):void 0,Z="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,G="?"+_,Rt=`<${G}>`,S=document,R=()=>S.createComment(""),k=r=>r===null||typeof r!="object"&&typeof r!="function",Q=Array.isArray,pt=r=>Q(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",j=`[
14
14
  \f\r]`,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rt=/-->/g,nt=/>/g,b=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,at=/"/g,ut=/^(?:script|style|textarea|title)$/i,kt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),Nt=kt(1),w=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ht=new WeakMap,E=S.createTreeWalker(S,129);function mt(r,t){if(!Q(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return it!==void 0?it.createHTML(t):t}const ft=(r,t)=>{const e=r.length-1,s=[];let i,o=t===2?"<svg>":t===3?"<math>":"",n=C;for(let h=0;h<e;h++){const a=r[h];let p,y,l=-1,$=0;for(;$<a.length&&(n.lastIndex=$,y=n.exec(a),y!==null);)$=n.lastIndex,n===C?y[1]==="!--"?n=rt:y[1]!==void 0?n=nt:y[2]!==void 0?(ut.test(y[2])&&(i=RegExp("</"+y[2],"g")),n=b):y[3]!==void 0&&(n=b):n===b?y[0]===">"?(n=i??C,l=-1):y[1]===void 0?l=-2:(l=n.lastIndex-y[2].length,p=y[1],n=y[3]===void 0?b:y[3]==='"'?at:ot):n===at||n===ot?n=b:n===rt||n===nt?n=C:(n=b,i=void 0);const A=n===b&&r[h+1].startsWith("/>")?" ":"";o+=n===C?a+Rt:l>=0?(s.push(p),a.slice(0,l)+Z+a.slice(l)+_+A):a+_+(l===-2?h:A)}return[mt(r,o+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class N{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,n=0;const h=t.length-1,a=this.parts,[p,y]=ft(t,e);if(this.el=N.createElement(p,s),E.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=E.nextNode())!==null&&a.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(Z)){const $=y[n++],A=i.getAttribute(l).split(_),V=/([.?@])?(.*)/.exec($);a.push({type:1,index:o,name:V[2],strings:A,ctor:V[1]==="."?gt:V[1]==="?"?$t:V[1]==="@"?_t:H}),i.removeAttribute(l)}else l.startsWith(_)&&(a.push({type:6,index:o}),i.removeAttribute(l));if(ut.test(i.tagName)){const l=i.textContent.split(_),$=l.length-1;if($>0){i.textContent=F?F.emptyScript:"";for(let A=0;A<$;A++)i.append(l[A],R()),E.nextNode(),a.push({type:2,index:++o});i.append(l[$],R())}}}else if(i.nodeType===8)if(i.data===G)a.push({type:2,index:o});else{let l=-1;for(;(l=i.data.indexOf(_,l+1))!==-1;)a.push({type:7,index:o}),l+=_.length-1}o++}}static createElement(t,e){const s=S.createElement("template");return s.innerHTML=t,s}}function U(r,t,e=r,s){var n,h;if(t===w)return t;let i=s!==void 0?(n=e.o)==null?void 0:n[s]:e.l;const o=k(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((h=i==null?void 0:i._$AO)==null||h.call(i,!1),o===void 0?i=void 0:(i=new o(r),i._$AT(r,e,s)),s!==void 0?(e.o??(e.o=[]))[s]=i:e.l=i),i!==void 0&&(t=U(r,i._$AS(r,t.values),i,s)),t}class yt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??S).importNode(e,!0);E.currentNode=i;let o=E.nextNode(),n=0,h=0,a=s[0];for(;a!==void 0;){if(n===a.index){let p;a.type===2?p=new x(o,o.nextSibling,this,t):a.type===1?p=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(p=new At(o,this,t)),this._$AV.push(p),a=s[++h]}n!==(a==null?void 0:a.index)&&(o=E.nextNode(),n++)}return E.currentNode=S,i}p(t){let e=0;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++}}class x{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,e,s,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this.v=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),k(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==w&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):pt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=N.createElement(mt(s.h,s.h[0]),this.options)),s);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(e);else{const n=new yt(i,this),h=n.u(this.options);n.p(e),this.T(h),this._$AH=n}}_$AC(t){let e=ht.get(t.strings);return e===void 0&&ht.set(t.strings,e=new N(t)),e}k(t){Q(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new x(this.O(R()),this.O(R()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,i){const o=this.strings;let n=!1;if(o===void 0)t=U(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==w,n&&(this._$AH=t);else{const h=t;let a,p;for(t=o[0],a=0;a<o.length-1;a++)p=U(this,h[s+a],e,a),p===w&&(p=this._$AH[a]),n||(n=!k(p)||p!==this._$AH[a]),p===d?t=d:t!==d&&(t+=(p??"")+o[a+1]),this._$AH[a]=p}n&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class gt extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class $t extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class _t extends H{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=U(this,t,e,0)??d)===w)return;const s=this._$AH,i=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==d&&(s===d||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class At{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const Ht={M:Z,P:_,A:G,C:1,L:ft,R:yt,D:pt,V:U,I:x,H,N:$t,U:_t,B:gt,F:At},B=M.litHtmlPolyfillSupport;B==null||B(N,x),(M.litHtmlVersions??(M.litHtmlVersions=[])).push("3.2.0");const Vt=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const o=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new x(t.insertBefore(R(),o),o,void 0,e??{})}return i._$AI(r),i};/**
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,at=/"/g,ut=/^(?:script|style|textarea|title)$/i,kt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),Nt=kt(1),w=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),ht=new WeakMap,E=S.createTreeWalker(S,129);function mt(r,t){if(!Q(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return it!==void 0?it.createHTML(t):t}const gt=(r,t)=>{const e=r.length-1,s=[];let i,o=t===2?"<svg>":t===3?"<math>":"",n=C;for(let h=0;h<e;h++){const a=r[h];let p,f,l=-1,$=0;for(;$<a.length&&(n.lastIndex=$,f=n.exec(a),f!==null);)$=n.lastIndex,n===C?f[1]==="!--"?n=rt:f[1]!==void 0?n=nt:f[2]!==void 0?(ut.test(f[2])&&(i=RegExp("</"+f[2],"g")),n=b):f[3]!==void 0&&(n=b):n===b?f[0]===">"?(n=i??C,l=-1):f[1]===void 0?l=-2:(l=n.lastIndex-f[2].length,p=f[1],n=f[3]===void 0?b:f[3]==='"'?at:ot):n===at||n===ot?n=b:n===rt||n===nt?n=C:(n=b,i=void 0);const A=n===b&&r[h+1].startsWith("/>")?" ":"";o+=n===C?a+Rt:l>=0?(s.push(p),a.slice(0,l)+Z+a.slice(l)+_+A):a+_+(l===-2?h:A)}return[mt(r,o+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class N{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,n=0;const h=t.length-1,a=this.parts,[p,f]=gt(t,e);if(this.el=N.createElement(p,s),E.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=E.nextNode())!==null&&a.length<h;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(Z)){const $=f[n++],A=i.getAttribute(l).split(_),V=/([.?@])?(.*)/.exec($);a.push({type:1,index:o,name:V[2],strings:A,ctor:V[1]==="."?yt:V[1]==="?"?$t:V[1]==="@"?_t:H}),i.removeAttribute(l)}else l.startsWith(_)&&(a.push({type:6,index:o}),i.removeAttribute(l));if(ut.test(i.tagName)){const l=i.textContent.split(_),$=l.length-1;if($>0){i.textContent=F?F.emptyScript:"";for(let A=0;A<$;A++)i.append(l[A],R()),E.nextNode(),a.push({type:2,index:++o});i.append(l[$],R())}}}else if(i.nodeType===8)if(i.data===G)a.push({type:2,index:o});else{let l=-1;for(;(l=i.data.indexOf(_,l+1))!==-1;)a.push({type:7,index:o}),l+=_.length-1}o++}}static createElement(t,e){const s=S.createElement("template");return s.innerHTML=t,s}}function U(r,t,e=r,s){var n,h;if(t===w)return t;let i=s!==void 0?(n=e.o)==null?void 0:n[s]:e.l;const o=k(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((h=i==null?void 0:i._$AO)==null||h.call(i,!1),o===void 0?i=void 0:(i=new o(r),i._$AT(r,e,s)),s!==void 0?(e.o??(e.o=[]))[s]=i:e.l=i),i!==void 0&&(t=U(r,i._$AS(r,t.values),i,s)),t}class ft{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??S).importNode(e,!0);E.currentNode=i;let o=E.nextNode(),n=0,h=0,a=s[0];for(;a!==void 0;){if(n===a.index){let p;a.type===2?p=new x(o,o.nextSibling,this,t):a.type===1?p=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(p=new At(o,this,t)),this._$AV.push(p),a=s[++h]}n!==(a==null?void 0:a.index)&&(o=E.nextNode(),n++)}return E.currentNode=S,i}p(t){let e=0;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++}}class x{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,e,s,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this.v=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),k(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==w&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):pt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=N.createElement(mt(s.h,s.h[0]),this.options)),s);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(e);else{const n=new ft(i,this),h=n.u(this.options);n.p(e),this.T(h),this._$AH=n}}_$AC(t){let e=ht.get(t.strings);return e===void 0&&ht.set(t.strings,e=new N(t)),e}k(t){Q(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new x(this.O(R()),this.O(R()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,i){const o=this.strings;let n=!1;if(o===void 0)t=U(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==w,n&&(this._$AH=t);else{const h=t;let a,p;for(t=o[0],a=0;a<o.length-1;a++)p=U(this,h[s+a],e,a),p===w&&(p=this._$AH[a]),n||(n=!k(p)||p!==this._$AH[a]),p===d?t=d:t!==d&&(t+=(p??"")+o[a+1]),this._$AH[a]=p}n&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class yt extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class $t extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class _t extends H{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=U(this,t,e,0)??d)===w)return;const s=this._$AH,i=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==d&&(s===d||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class At{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const Ht={M:Z,P:_,A:G,C:1,L:gt,R:ft,D:pt,V:U,I:x,H,N:$t,U:_t,B:yt,F:At},B=M.litHtmlPolyfillSupport;B==null||B(N,x),(M.litHtmlVersions??(M.litHtmlVersions=[])).push("3.2.0");const Vt=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const o=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new x(t.insertBefore(R(),o),o,void 0,e??{})}return i._$AI(r),i};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
@@ -20,8 +20,8 @@
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const Lt={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:K},It=(r=Lt,t,e)=>{const{kind:s,metadata:i}=e;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(e.name,r),s==="accessor"){const{name:n}=e;return{set(h){const a=t.get.call(this);t.set.call(this,h),this.requestUpdate(n,a,r)},init(h){return h!==void 0&&this.P(n,void 0,r),h}}}if(s==="setter"){const{name:n}=e;return function(h){const a=this[n];t.call(this,h),this.requestUpdate(n,a,r)}}throw Error("Unsupported decorator location: "+s)};function c(r){return(t,e)=>typeof e=="object"?It(r,t,e):((s,i,o)=>{const n=i.hasOwnProperty(o);return i.constructor.createProperty(o,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(i,o):void 0})(r,t,e)}/**
23
+ */const It={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:K},Lt=(r=It,t,e)=>{const{kind:s,metadata:i}=e;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(e.name,r),s==="accessor"){const{name:n}=e;return{set(h){const a=t.get.call(this);t.set.call(this,h),this.requestUpdate(n,a,r)},init(h){return h!==void 0&&this.P(n,void 0,r),h}}}if(s==="setter"){const{name:n}=e;return function(h){const a=this[n];t.call(this,h),this.requestUpdate(n,a,r)}}throw Error("Unsupported decorator location: "+s)};function c(r){return(t,e)=>typeof e=="object"?Lt(r,t,e):((s,i,o)=>{const n=i.hasOwnProperty(o);return i.constructor.createProperty(o,n?{...s,wrapped:!0}:s),n?Object.getOwnPropertyDescriptor(i,o):void 0})(r,t,e)}/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */function vt(r){return c({...r,state:!0,attribute:!1})}var f=[];for(var J=0;J<256;++J)f.push((J+256).toString(16).slice(1));function Dt(r,t=0){return(f[r[t+0]]+f[r[t+1]]+f[r[t+2]]+f[r[t+3]]+"-"+f[r[t+4]]+f[r[t+5]]+"-"+f[r[t+6]]+f[r[t+7]]+"-"+f[r[t+8]]+f[r[t+9]]+"-"+f[r[t+10]]+f[r[t+11]]+f[r[t+12]]+f[r[t+13]]+f[r[t+14]]+f[r[t+15]]).toLowerCase()}var L,Ft=new Uint8Array(16);function qt(){if(!L&&(L=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!L))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return L(Ft)}var jt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const lt={randomUUID:jt};function bt(r,t,e){if(lt.randomUUID&&!t&&!r)return lt.randomUUID();r=r||{};var s=r.random||(r.rng||qt)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Dt(s)}const Bt={hi:"Hei!"},zt={buttonAltText:"Åpne kalender"},Jt={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"},Wt={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",dateUnderflow:"For tidlig dato",dateOverflow:"For sen dato"},date:{multiple:"Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato."}},g={example:Bt,calendar:zt,dates:Jt,forms:Wt};var Kt=Object.defineProperty,u=(r,t,e,s)=>{for(var i=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(i=n(t,e,i)||i);return i&&Kt(t,e,i),i};class Y extends O{constructor(){super(),this.strings=g}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}}u([c({type:Object})],Y.prototype,"strings");class m extends Y{constructor(){super(),this.id=bt(),this.name=this.id,this.required=!1,this.disabled=!1,this.placeholder="",this.min=null,this.max=null,this.minlength=0,this.maxlength=0,this.pattern="",this.optionalTag=!1,this.optionalText=g.forms.labels.optional,this.requiredTag=!1,this.requiredText=g.forms.labels.required,this.hasError=!1,this.errorMessage="",this.touched=!1,this.internals=this.attachInternals()}static get formAssociated(){return!0}manageValidity(t){this.required&&!this.value?this.internals.setValidity({valueMissing:!0},g.forms.messages.required,t):t.validity.typeMismatch||t.validity.badInput?this.internals.setValidity({typeMismatch:!0},g.forms.messages.invalid,t):t.validity.patternMismatch?this.internals.setValidity({patternMismatch:!0},g.forms.messages.invalidPattern,t):t.validity.tooShort||this.minLength>0&&this.value.length<this.minLength?this.internals.setValidity({tooShort:!0},g.forms.messages.tooShort,t):t.validity.tooLong||this.maxLength>0&&this.value.length>this.maxLength?this.internals.setValidity({tooLong:!0},g.forms.messages.tooLong,t):t.validity.rangeUnderflow?this.internals.setValidity({rangeUnderflow:!0},g.forms.messages.rangeUnderflow,t):t.validity.rangeOverflow?this.internals.setValidity({rangeOverflow:!0},g.forms.messages.rangeOverflow,t):t.validity.customError?this.internals.setValidity({customError:!0},t.validationMessage,t):this.internals.setValidity({})}setFormValue(t){if(this.internals)if(Array.isArray(t)){const e=new FormData;t.forEach(s=>{e.append(this.name,s)}),this.internals.setFormValue(e)}else this.internals.setFormValue(t)}onInput(t){if(!this.touched){this.touched=!0,t&&this.setFormValue(t);return}typeof t!="string"&&!Array.isArray(t)||((this.range||this.multiple)&&!Array.isArray(t)&&t.includes(",")&&(t=t.split(",")),!this.multiple&&!this.range&&Array.isArray(t)&&(t=t[0]),this.setFormValue(t),this.manageValidity(this.inputRef.value),this.inputRef2&&this.manageValidity(this.inputRef2.value),this.dispatchEvent(new Event("input")),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:t,bubbles:!0,composed:!0})),this.internals.reportValidity())}firstUpdated(t){super.firstUpdated(t),this.required&&(this.internals.ariaRequired=!0),this.disabled&&(this.internals.disabled=!0,this.internals.ariaDisabled=!0),this.internals.setFormValue(this.value),this.manageValidity(this.inputRef.value)}}u([c({type:String,reflect:!0})],m.prototype,"id");u([c({type:String,reflect:!0})],m.prototype,"name");u([c({type:Boolean,reflect:!0})],m.prototype,"required");u([c({type:Boolean,reflect:!0})],m.prototype,"disabled");u([c({type:String,reflect:!0})],m.prototype,"placeholder");u([c({type:Number,reflect:!0})],m.prototype,"min");u([c({type:Number,reflect:!0})],m.prototype,"max");u([c({type:Number,reflect:!0})],m.prototype,"minlength");u([c({type:Number,reflect:!0})],m.prototype,"maxlength");u([c({type:String,reflect:!0})],m.prototype,"pattern");u([c({type:Boolean,reflect:!0})],m.prototype,"optionalTag");u([c({type:String,reflect:!0})],m.prototype,"optionalText");u([c({type:Boolean,reflect:!0})],m.prototype,"requiredTag");u([c({type:String,reflect:!0})],m.prototype,"requiredText");u([c({type:Boolean,reflect:!0})],m.prototype,"hasError");u([c({type:String,reflect:!0})],m.prototype,"errorMessage");u([vt()],m.prototype,"touched");exports.D=d;exports.PktElement=Y;exports.PktInputElement=m;exports.R=w;exports.ke=Nt;exports.n=c;exports.r=vt;exports.si=Ht;exports.translations=g;exports.v4=bt;
27
+ */function vt(r){return c({...r,state:!0,attribute:!1})}var g=[];for(var J=0;J<256;++J)g.push((J+256).toString(16).slice(1));function Dt(r,t=0){return(g[r[t+0]]+g[r[t+1]]+g[r[t+2]]+g[r[t+3]]+"-"+g[r[t+4]]+g[r[t+5]]+"-"+g[r[t+6]]+g[r[t+7]]+"-"+g[r[t+8]]+g[r[t+9]]+"-"+g[r[t+10]]+g[r[t+11]]+g[r[t+12]]+g[r[t+13]]+g[r[t+14]]+g[r[t+15]]).toLowerCase()}var I,Ft=new Uint8Array(16);function qt(){if(!I&&(I=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!I))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return I(Ft)}var jt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const lt={randomUUID:jt};function bt(r,t,e){if(lt.randomUUID&&!t&&!r)return lt.randomUUID();r=r||{};var s=r.random||(r.rng||qt)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Dt(s)}const Bt={hi:"Hei!"},zt={buttonAltText:"Åpne kalender"},Jt={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"},Wt={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",dateUnderflow:"For tidlig dato",dateOverflow:"For sen dato"},date:{multiple:"Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato."}},y={example:Bt,calendar:zt,dates:Jt,forms:Wt};var Kt=Object.defineProperty,u=(r,t,e,s)=>{for(var i=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(i=n(t,e,i)||i);return i&&Kt(t,e,i),i};class Y extends O{constructor(){super(),this.strings=y}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}}u([c({type:Object})],Y.prototype,"strings");class m extends Y{constructor(){super(),this.id=bt(),this.name=this.id,this.required=!1,this.disabled=!1,this.placeholder="",this.min=null,this.max=null,this.minlength=0,this.maxlength=0,this.pattern="",this.optionalTag=!1,this.optionalText=y.forms.labels.optional,this.requiredTag=!1,this.requiredText=y.forms.labels.required,this.hasError=!1,this.errorMessage="",this.touched=!1,this.internals=this.attachInternals()}static get formAssociated(){return!0}manageValidity(t){this.required&&!this.value?this.internals.setValidity({valueMissing:!0},y.forms.messages.required,t):t.validity.typeMismatch||t.validity.badInput?this.internals.setValidity({typeMismatch:!0},y.forms.messages.invalid,t):t.validity.patternMismatch?this.internals.setValidity({patternMismatch:!0},y.forms.messages.invalidPattern,t):t.validity.tooShort||this.minLength>0&&this.value.length<this.minLength?this.internals.setValidity({tooShort:!0},y.forms.messages.tooShort,t):t.validity.tooLong||this.maxLength>0&&this.value.length>this.maxLength?this.internals.setValidity({tooLong:!0},y.forms.messages.tooLong,t):t.validity.rangeUnderflow?this.internals.setValidity({rangeUnderflow:!0},y.forms.messages.rangeUnderflow,t):t.validity.rangeOverflow?this.internals.setValidity({rangeOverflow:!0},y.forms.messages.rangeOverflow,t):t.validity.customError?this.internals.setValidity({customError:!0},t.validationMessage,t):this.internals.setValidity({})}setFormValue(t){if(this.internals)if(Array.isArray(t)){const e=new FormData;t.forEach(s=>{e.append(this.name,s)}),this.internals.setFormValue(e)}else this.internals.setFormValue(t)}valueChanged(t,e){typeof t=="string"?((this.multiple||this.range)&&t.includes(",")&&(t=t.split(",")),this.value=t,this._value=Array.isArray(t)?t:[t]):Array.isArray(t)?(this.value=t,this._value=t):(this.value="",this._value=[]),(!this.value||this.value.length===0)&&e&&e.length!==0?this.clearInputValue():this.value&&this.value.toString()!==(e==null?void 0:e.toString())&&this.onInput(this.value),this.updateComplete.then(()=>this.requestUpdate())}clearInputValue(){const t=this.multiple||this.range?[]:"";this.value=t,this.internals.setFormValue(t),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:t,bubbles:!0,composed:!0}))}onInput(t){if(!this.touched){this.touched=!0,t&&this.setFormValue(t);return}typeof t!="string"&&!Array.isArray(t)||((this.range||this.multiple)&&!Array.isArray(t)&&t.includes(",")&&(t=t.split(",")),!this.multiple&&!this.range&&Array.isArray(t)&&(t=t[0]),this.setFormValue(t),this.manageValidity(this.inputRef.value),this.inputRef2&&this.manageValidity(this.inputRef2.value),this.dispatchEvent(new Event("input")),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:t,bubbles:!0,composed:!0})),this.internals.reportValidity())}firstUpdated(t){super.firstUpdated(t),this.required&&(this.internals.ariaRequired=!0),this.disabled&&(this.internals.disabled=!0,this.internals.ariaDisabled=!0),this.internals.setFormValue(this.value),this.manageValidity(this.inputRef.value)}}u([c({type:String,reflect:!0})],m.prototype,"id");u([c({type:String,reflect:!0})],m.prototype,"name");u([c({type:Boolean,reflect:!0})],m.prototype,"required");u([c({type:Boolean,reflect:!0})],m.prototype,"disabled");u([c({type:String,reflect:!0})],m.prototype,"placeholder");u([c({type:Number,reflect:!0})],m.prototype,"min");u([c({type:Number,reflect:!0})],m.prototype,"max");u([c({type:Number,reflect:!0})],m.prototype,"minlength");u([c({type:Number,reflect:!0})],m.prototype,"maxlength");u([c({type:String,reflect:!0})],m.prototype,"pattern");u([c({type:Boolean,reflect:!0})],m.prototype,"optionalTag");u([c({type:String,reflect:!0})],m.prototype,"optionalText");u([c({type:Boolean,reflect:!0})],m.prototype,"requiredTag");u([c({type:String,reflect:!0})],m.prototype,"requiredText");u([c({type:Boolean,reflect:!0})],m.prototype,"hasError");u([c({type:String,reflect:!0})],m.prototype,"errorMessage");u([vt()],m.prototype,"touched");exports.D=d;exports.PktElement=Y;exports.PktInputElement=m;exports.R=w;exports.ke=Nt;exports.n=c;exports.r=vt;exports.si=Ht;exports.translations=y;exports.v4=bt;
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("./index-BoJqccWT.cjs"),v=require("./converters-DhM11VlY.cjs"),O=require("./directive-19_ixLKS.cjs"),_=require("./class-map-j1NPDnPL.cjs");require("./index--Z_thODp.cjs");function k(i){const e=Object.prototype.toString.call(i);return i instanceof Date||typeof i=="object"&&e==="[object Date]"?new i.constructor(+i):typeof i=="number"||e==="[object Number]"||typeof i=="string"||e==="[object String]"?new Date(i):new Date(NaN)}function w(i,e){return i instanceof Date?new i.constructor(e):new Date(e)}const x=6048e5,$=864e5;let P={};function b(){return P}function m(i,e){var h,c,d,p;const t=b(),s=(e==null?void 0:e.weekStartsOn)??((c=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:c.weekStartsOn)??t.weekStartsOn??((p=(d=t.locale)==null?void 0:d.options)==null?void 0:p.weekStartsOn)??0,n=k(i),r=n.getDay(),l=(r<s?7:0)+r-s;return n.setDate(n.getDate()-l),n.setHours(0,0,0,0),n}function S(i,e){const t=k(i.start),s=k(i.end);let n=+t>+s;const r=n?+t:+s,l=n?s:t;l.setHours(0,0,0,0);let h=1;const c=[];for(;+l<=r;)c.push(k(l)),l.setDate(l.getDate()+h),l.setHours(0,0,0,0);return n?c.reverse():c}function M(i,e){var p,u,f,y;const t=k(i),s=t.getFullYear(),n=b(),r=(e==null?void 0:e.firstWeekContainsDate)??((u=(p=e==null?void 0:e.locale)==null?void 0:p.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((y=(f=n.locale)==null?void 0:f.options)==null?void 0:y.firstWeekContainsDate)??1,l=w(i,0);l.setFullYear(s+1,0,r),l.setHours(0,0,0,0);const h=m(l,e),c=w(i,0);c.setFullYear(s,0,r),c.setHours(0,0,0,0);const d=m(c,e);return t.getTime()>=h.getTime()?s+1:t.getTime()>=d.getTime()?s:s-1}function A(i,e){var h,c,d,p;const t=b(),s=(e==null?void 0:e.firstWeekContainsDate)??((c=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:c.firstWeekContainsDate)??t.firstWeekContainsDate??((p=(d=t.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,n=M(i,e),r=w(i,0);return r.setFullYear(n,0,s),r.setHours(0,0,0,0),m(r,e)}function D(i,e){const t=k(i),s=+m(t,e)-+A(t,e);return Math.round(s/x)+1}function I(i){let t=k(i).getDay();return t===0&&(t=7),t}const T="pkt-calendar",E={id:{type:"string",name:"ID",description:"Unique identifier for the calendar"},currentmonth:{type:"date",converter:"stringToDate",description:"The current month to display"},selected:{type:"array",converter:"csvToArray",reflect:!0,items:{type:"date"},description:"Array of selected dates"},excludeweekdays:{type:"array",converter:"csvToArray",items:{type:"string"},description:"Array of weekdays (1-7) to exclude"},excludedates:{type:"array",converter:"stringsToDate",items:{type:"date"},description:"Array of specific dates to exclude"},earliest:{type:"date",converter:"stringToDate",default:null,description:"Earliest selectable date"},latest:{type:"date",converter:"stringToDate",default:null,description:"Latest selectable date"},weeknumbers:{type:"boolean",reflect:!0,default:!1,description:"Show week numbers in calendar"},withcontrols:{type:"boolean",reflect:!0,default:!1,description:"Show month and year navigation controls"},multiple:{type:"boolean",reflect:!0,default:!1,description:"Allow multiple date selection"},maxMultiple:{type:"number",default:4,description:"Maximum number of dates that can be selected"},range:{type:"boolean",reflect:!0,default:!1,description:"Allow date range selection"}},R={"date-selected":{description:"Returns ISO formatted date string"}},g={name:T,"css-class":"pkt-calendar",props:E,events:R};var W=Object.defineProperty,H=Object.getOwnPropertyDescriptor,o=(i,e,t,s)=>{for(var n=s>1?void 0:s?H(e,t):e,r=i.length-1,l;r>=0;r--)(l=i[r])&&(n=(s?l(e,t,n):l(n))||n);return s&&n&&W(e,t,n),n};exports.PktCalendar=class extends a.PktElement{constructor(){super(),this.multiple=g.props.multiple.default,this.maxMultiple=g.props.maxMultiple.default,this.range=g.props.range.default,this.weeknumbers=g.props.weeknumbers.default,this.withcontrols=g.props.withcontrols.default,this.selected=[],this.earliest=g.props.earliest.default,this.latest=g.props.latest.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=new Date,this.dayStrings=this.strings.dates.daysShort,this.monthStrings=this.strings.dates.months,this.weekString=this.strings.dates.week,this.prevMonthString=this.strings.dates.prevMonth,this.nextMonthString=this.strings.dates.nextMonth,this._selected=[],this.year=0,this.month=0,this.week=0,this.rangeHovered=null,this.inRange={},this.focusedDate=null,this.selectableDates=[]}connectedCallback(){const e=this.currentmonth;this.year=e.getFullYear(),this.month=e.getMonth(),this.week=D(new Date(this.year,this.month,1,12)),this.selected&&this.selected.length&&this.selected.forEach(t=>{this._selected.push(new Date(t))}),super.connectedCallback()}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback()}attributeChangedCallback(e,t,s){e==="currentmonth"&&s&&(this.currentmonth=new Date(s),this.year=this.currentmonth.getFullYear(),this.month=this.currentmonth.getMonth(),this.week=D(new Date(this.year,this.month,1,12))),e==="selected"&&s&&(this._selected=[],this.selected.forEach(n=>{this._selected.push(new Date(n))})),super.attributeChangedCallback(e,t,s)}updated(e){if(e.has("selected")&&this.selected.length===2){const t=S({start:new Date(this.selected[0]),end:new Date(this.selected[1])});if(this.inRange={},Array.isArray(t)&&t.length){const s={};for(let n=0;n<t.length;n++)s[this.formatISODate(t[n])]=this.isInRange(t[n]);this.inRange=s}}super.updated(e)}firstUpdated(e){this.addEventListener("keydown",this.handleKeydown)}handleKeydown(e){switch(e.key){case"ArrowLeft":this.handleArrowKey(e,-1);break;case"ArrowRight":this.handleArrowKey(e,1);break;case"ArrowUp":this.handleArrowKey(e,-7);break;case"ArrowDown":this.handleArrowKey(e,7);break}}handleArrowKey(e,t){if(e.preventDefault(),!this.focusedDate)return;const s=new Date(this.focusedDate);let n=new Date(s.setDate(s.getDate()+t));if(n){let r=this.querySelector(`div[data-date="${this.formatISODate(n)}"]`);if(r instanceof HTMLDivElement){if(r.dataset.disabled){let l=new Date(s.setDate(s.getDate()+t)),h=this.querySelector(`div[data-date="${this.formatISODate(l)}"]`);for(;h&&h instanceof HTMLDivElement&&h.dataset.disabled;)l=new Date(l.setDate(l.getDate()+t)),h=this.querySelector(`div[data-date="${this.formatISODate(l)}"]`);r=h}r instanceof HTMLDivElement&&!r.dataset.disabled&&r.focus()}}}render(){return a.ke`
1
+ "use strict";const a=require("./index-DZGlpxj6.cjs"),v=require("./converters-DhM11VlY.cjs"),O=require("./directive-19_ixLKS.cjs"),_=require("./class-map-CFiVus5w.cjs");require("./index-DZ0cjZdG.cjs");function k(i){const e=Object.prototype.toString.call(i);return i instanceof Date||typeof i=="object"&&e==="[object Date]"?new i.constructor(+i):typeof i=="number"||e==="[object Number]"||typeof i=="string"||e==="[object String]"?new Date(i):new Date(NaN)}function w(i,e){return i instanceof Date?new i.constructor(e):new Date(e)}const x=6048e5,$=864e5;let P={};function b(){return P}function m(i,e){var h,c,d,p;const t=b(),s=(e==null?void 0:e.weekStartsOn)??((c=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:c.weekStartsOn)??t.weekStartsOn??((p=(d=t.locale)==null?void 0:d.options)==null?void 0:p.weekStartsOn)??0,n=k(i),r=n.getDay(),l=(r<s?7:0)+r-s;return n.setDate(n.getDate()-l),n.setHours(0,0,0,0),n}function S(i,e){const t=k(i.start),s=k(i.end);let n=+t>+s;const r=n?+t:+s,l=n?s:t;l.setHours(0,0,0,0);let h=1;const c=[];for(;+l<=r;)c.push(k(l)),l.setDate(l.getDate()+h),l.setHours(0,0,0,0);return n?c.reverse():c}function M(i,e){var p,u,f,y;const t=k(i),s=t.getFullYear(),n=b(),r=(e==null?void 0:e.firstWeekContainsDate)??((u=(p=e==null?void 0:e.locale)==null?void 0:p.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((y=(f=n.locale)==null?void 0:f.options)==null?void 0:y.firstWeekContainsDate)??1,l=w(i,0);l.setFullYear(s+1,0,r),l.setHours(0,0,0,0);const h=m(l,e),c=w(i,0);c.setFullYear(s,0,r),c.setHours(0,0,0,0);const d=m(c,e);return t.getTime()>=h.getTime()?s+1:t.getTime()>=d.getTime()?s:s-1}function A(i,e){var h,c,d,p;const t=b(),s=(e==null?void 0:e.firstWeekContainsDate)??((c=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:c.firstWeekContainsDate)??t.firstWeekContainsDate??((p=(d=t.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,n=M(i,e),r=w(i,0);return r.setFullYear(n,0,s),r.setHours(0,0,0,0),m(r,e)}function D(i,e){const t=k(i),s=+m(t,e)-+A(t,e);return Math.round(s/x)+1}function I(i){let t=k(i).getDay();return t===0&&(t=7),t}const T="pkt-calendar",E={id:{type:"string",name:"ID",description:"Unique identifier for the calendar"},currentmonth:{type:"date",converter:"stringToDate",description:"The current month to display"},selected:{type:"array",converter:"csvToArray",reflect:!0,items:{type:"date"},description:"Array of selected dates"},excludeweekdays:{type:"array",converter:"csvToArray",items:{type:"string"},description:"Array of weekdays (1-7) to exclude"},excludedates:{type:"array",converter:"stringsToDate",items:{type:"date"},description:"Array of specific dates to exclude"},earliest:{type:"date",converter:"stringToDate",default:null,description:"Earliest selectable date"},latest:{type:"date",converter:"stringToDate",default:null,description:"Latest selectable date"},weeknumbers:{type:"boolean",reflect:!0,default:!1,description:"Show week numbers in calendar"},withcontrols:{type:"boolean",reflect:!0,default:!1,description:"Show month and year navigation controls"},multiple:{type:"boolean",reflect:!0,default:!1,description:"Allow multiple date selection"},maxMultiple:{type:"number",default:4,description:"Maximum number of dates that can be selected"},range:{type:"boolean",reflect:!0,default:!1,description:"Allow date range selection"}},R={"date-selected":{description:"Returns ISO formatted date string"}},g={name:T,"css-class":"pkt-calendar",props:E,events:R};var W=Object.defineProperty,H=Object.getOwnPropertyDescriptor,o=(i,e,t,s)=>{for(var n=s>1?void 0:s?H(e,t):e,r=i.length-1,l;r>=0;r--)(l=i[r])&&(n=(s?l(e,t,n):l(n))||n);return s&&n&&W(e,t,n),n};exports.PktCalendar=class extends a.PktElement{constructor(){super(),this.multiple=g.props.multiple.default,this.maxMultiple=g.props.maxMultiple.default,this.range=g.props.range.default,this.weeknumbers=g.props.weeknumbers.default,this.withcontrols=g.props.withcontrols.default,this.selected=[],this.earliest=g.props.earliest.default,this.latest=g.props.latest.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=new Date,this.dayStrings=this.strings.dates.daysShort,this.monthStrings=this.strings.dates.months,this.weekString=this.strings.dates.week,this.prevMonthString=this.strings.dates.prevMonth,this.nextMonthString=this.strings.dates.nextMonth,this._selected=[],this.year=0,this.month=0,this.week=0,this.rangeHovered=null,this.inRange={},this.focusedDate=null,this.selectableDates=[]}connectedCallback(){const e=this.currentmonth;this.year=e.getFullYear(),this.month=e.getMonth(),this.week=D(new Date(this.year,this.month,1,12)),this.selected&&this.selected.length&&this.selected.forEach(t=>{this._selected.push(new Date(t))}),super.connectedCallback()}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback()}attributeChangedCallback(e,t,s){e==="currentmonth"&&s&&(this.currentmonth=new Date(s),this.year=this.currentmonth.getFullYear(),this.month=this.currentmonth.getMonth(),this.week=D(new Date(this.year,this.month,1,12))),e==="selected"&&s&&(this._selected=[],this.selected.forEach(n=>{this._selected.push(new Date(n))})),super.attributeChangedCallback(e,t,s)}updated(e){if(e.has("selected")&&this.selected.length===2){const t=S({start:new Date(this.selected[0]),end:new Date(this.selected[1])});if(this.inRange={},Array.isArray(t)&&t.length){const s={};for(let n=0;n<t.length;n++)s[this.formatISODate(t[n])]=this.isInRange(t[n]);this.inRange=s}}super.updated(e)}firstUpdated(e){this.addEventListener("keydown",this.handleKeydown)}handleKeydown(e){switch(e.key){case"ArrowLeft":this.handleArrowKey(e,-1);break;case"ArrowRight":this.handleArrowKey(e,1);break;case"ArrowUp":this.handleArrowKey(e,-7);break;case"ArrowDown":this.handleArrowKey(e,7);break}}handleArrowKey(e,t){if(e.preventDefault(),!this.focusedDate)return;const s=new Date(this.focusedDate);let n=new Date(s.setDate(s.getDate()+t));if(n){let r=this.querySelector(`div[data-date="${this.formatISODate(n)}"]`);if(r instanceof HTMLDivElement){if(r.dataset.disabled){let l=new Date(s.setDate(s.getDate()+t)),h=this.querySelector(`div[data-date="${this.formatISODate(l)}"]`);for(;h&&h instanceof HTMLDivElement&&h.dataset.disabled;)l=new Date(l.setDate(l.getDate()+t)),h=this.querySelector(`div[data-date="${this.formatISODate(l)}"]`);r=h}r instanceof HTMLDivElement&&!r.dataset.disabled&&r.focus()}}}render(){return a.ke`
2
2
  <div
3
3
  class="pkt-calendar ${this.weeknumbers?"pkt-cal-weeknumbers":a.D}"
4
4
  @focusout=${this.closeEvent}
package/dist/index.d.ts CHANGED
@@ -293,6 +293,8 @@ declare class PktInputElement extends PktElement {
293
293
  constructor();
294
294
  protected manageValidity(input: HTMLInputElement): void;
295
295
  protected setFormValue(value: string | string[]): void;
296
+ protected valueChanged(value: string | string[] | null, _old: string | string[] | null): void;
297
+ protected clearInputValue(): void;
296
298
  protected onInput(value: string | string[]): void;
297
299
  protected firstUpdated(_changedProperties: PropertyValues): void;
298
300
  }
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-BoJqccWT.cjs"),p=require("./ref-B5fRDLdm.cjs"),c=require("./class-map-j1NPDnPL.cjs"),k=require("./directive-19_ixLKS.cjs");require("./index--Z_thODp.cjs");var h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,e=(s,r,o,i)=>{for(var l=i>1?void 0:i?u(r,o):r,a=s.length-1,n;a>=0;a--)(n=s[a])&&(l=(i?n(r,o,l):n(l))||l);return i&&l&&h(r,o,l),l};exports.PktAlert=class extends t.PktElement{constructor(){super(),this.defaultSlot=p.ii(),this.closable=!1,this.compact=!1,this.title="",this.skin="info",this.isDisplayed=!0,this.ariaLive="polite",this.closeAlert=!1,this.date="",this.slotController=new p.PktSlotController(this,this.defaultSlot)}handleClose(){this.isDisplayed=!1,this.onClose&&this.onClose()}render(){const r={"pkt-alert":!0,"pkt-alert--compact":this.compact,[`pkt-alert--${this.skin}`]:this.skin,"pkt-alert--closable":this.closable};return this.isDisplayed?t.ke`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-DZGlpxj6.cjs"),p=require("./ref-G2cIenWo.cjs"),c=require("./class-map-CFiVus5w.cjs"),k=require("./directive-19_ixLKS.cjs");require("./index-DZ0cjZdG.cjs");var h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,e=(s,r,o,i)=>{for(var l=i>1?void 0:i?u(r,o):r,a=s.length-1,n;a>=0;a--)(n=s[a])&&(l=(i?n(r,o,l):n(l))||l);return i&&l&&h(r,o,l),l};exports.PktAlert=class extends t.PktElement{constructor(){super(),this.defaultSlot=p.ii(),this.closable=!1,this.compact=!1,this.title="",this.skin="info",this.isDisplayed=!0,this.ariaLive="polite",this.closeAlert=!1,this.date="",this.slotController=new p.PktSlotController(this,this.defaultSlot)}handleClose(){this.isDisplayed=!1,this.onClose&&this.onClose()}render(){const r={"pkt-alert":!0,"pkt-alert--compact":this.compact,[`pkt-alert--${this.skin}`]:this.skin,"pkt-alert--closable":this.closable};return this.isDisplayed?t.ke`
2
2
  <div class=${c.Rt(r)} aria-live=${this.ariaLive}>
3
3
  <pkt-icon
4
4
  class="pkt-alert__icon"
package/dist/pkt-alert.js CHANGED
@@ -1,8 +1,8 @@
1
- import { P as f, D as a, k as p, n as i } from "./index-D16hQiYU.js";
2
- import { i as d, P as k, K as u } from "./ref-CC5SNvNX.js";
3
- import { R as y } from "./class-map-Cme3zDHv.js";
1
+ import { P as f, D as a, k as p, n as i } from "./index-BoxUN9GL.js";
2
+ import { i as d, P as k, K as u } from "./ref-DzpbHCb_.js";
3
+ import { R as y } from "./class-map-DnAEF9tj.js";
4
4
  import { t as v } from "./directive-DA0-wdk7.js";
5
- import "./index-CQrIaUIc.js";
5
+ import "./index-CsKoXqeT.js";
6
6
  var m = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, e = (l, r, n, o) => {
7
7
  for (var s = o > 1 ? void 0 : o ? _(r, n) : r, c = l.length - 1, h; c >= 0; c--)
8
8
  (h = l[c]) && (s = (o ? h(r, n, s) : h(s)) || s);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-BoJqccWT.cjs");require("./converters-DhM11VlY.cjs");require("./directive-19_ixLKS.cjs");require("./class-map-j1NPDnPL.cjs");const e=require("./index-xZNrDhoQ.cjs");require("./index--Z_thODp.cjs");Object.defineProperty(exports,"PktCalendar",{enumerable:!0,get:()=>e.PktCalendar});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-DZGlpxj6.cjs");require("./converters-DhM11VlY.cjs");require("./directive-19_ixLKS.cjs");require("./class-map-CFiVus5w.cjs");const e=require("./index-ZXmkp0To.cjs");require("./index-DZ0cjZdG.cjs");Object.defineProperty(exports,"PktCalendar",{enumerable:!0,get:()=>e.PktCalendar});
@@ -1,9 +1,9 @@
1
- import "./index-D16hQiYU.js";
1
+ import "./index-BoxUN9GL.js";
2
2
  import "./converters-DNCwIFwr.js";
3
3
  import "./directive-DA0-wdk7.js";
4
- import "./class-map-Cme3zDHv.js";
5
- import { P as e } from "./index-D1du6BqK.js";
6
- import "./index-CQrIaUIc.js";
4
+ import "./class-map-DnAEF9tj.js";
5
+ import { P as e } from "./index-CiTPWPc2.js";
6
+ import "./index-CsKoXqeT.js";
7
7
  export {
8
8
  e as PktCalendar
9
9
  };
package/dist/pkt-card.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-BoJqccWT.cjs"),d=require("./ref-B5fRDLdm.cjs"),c=require("./class-map-j1NPDnPL.cjs"),g=require("./directive-19_ixLKS.cjs");require("./index--Z_thODp.cjs");require("./pkt-tag.cjs");const k="pkt-card",u=!0,h={heading:{type:"string",name:"Heading",description:"Tittel på kortet"},subheading:{type:"string",name:"Subheading",description:"Undertittel på kortet"},tags:{type:"IPktTag[]",description:"Liste av tags på kortet. Tar inn en array med IPktTag-objekter med følgende stringproperties: skin, iconName, ariaLabel, text",name:"Tags",items:{type:"object",properties:{skin:{type:["blue","green","red","yellow"],description:"Farge på tag"},iconName:{type:"string",description:"Id på ikonet du ønsker å bruke til tag"},ariaLabel:{type:"string",description:"Tekst for aria-label"},text:{type:"string",description:"Tekst på tag"}},required:["text"]}},skin:{type:["outlined","gray","blue","beige","green"],name:"Skin",description:"Farge på kortet",default:"outlined"},direction:{type:["landscape","portrait"],name:"Direction",description:"Retningen innholdet skal ligge i forhold til kortet",default:"portrait"},Image:{type:"object",image:"Image",description:"Bilde på kortet. Tar inn et objekt av typen {src: string, alt: string}. src er stien til bildet, og alt er tekst for aria-label.",items:{type:"object",properties:{src:{type:"string",description:"Bilde på kortet"},alt:{type:"string",description:"Tekst for aria-label"}},required:["src","alt"]}}},m={default:{description:"Innholdet i kortet"}},l={name:k,"css-class":"pkt-card",isElement:u,props:h,slots:m};var y=Object.defineProperty,b=Object.getOwnPropertyDescriptor,r=(n,i,s,a)=>{for(var e=a>1?void 0:a?b(i,s):i,o=n.length-1,p;o>=0;o--)(p=n[o])&&(e=(a?p(i,s,e):p(e))||e);return a&&e&&y(i,s,e),e};exports.PktCard=class extends t.PktElement{constructor(){super(),this.defaultSlot=d.ii(),this.skin=l.props.skin.default,this.direction=l.props.direction.default,this.image={src:"",alt:""},this.heading="",this.subheading="",this.tags=[],this.slotController=new d.PktSlotController(this,this.defaultSlot)}connectedCallback(){super.connectedCallback()}render(){const i={"pkt-card":!0,[`pkt-card--${this.skin}`]:this.skin,[`pkt-card--${this.direction}`]:this.direction};return t.ke`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-DZGlpxj6.cjs"),d=require("./ref-G2cIenWo.cjs"),c=require("./class-map-CFiVus5w.cjs"),g=require("./directive-19_ixLKS.cjs");require("./index-DZ0cjZdG.cjs");require("./pkt-tag.cjs");const k="pkt-card",u=!0,h={heading:{type:"string",name:"Heading",description:"Tittel på kortet"},subheading:{type:"string",name:"Subheading",description:"Undertittel på kortet"},tags:{type:"IPktTag[]",description:"Liste av tags på kortet. Tar inn en array med IPktTag-objekter med følgende stringproperties: skin, iconName, ariaLabel, text",name:"Tags",items:{type:"object",properties:{skin:{type:["blue","green","red","yellow"],description:"Farge på tag"},iconName:{type:"string",description:"Id på ikonet du ønsker å bruke til tag"},ariaLabel:{type:"string",description:"Tekst for aria-label"},text:{type:"string",description:"Tekst på tag"}},required:["text"]}},skin:{type:["outlined","gray","blue","beige","green"],name:"Skin",description:"Farge på kortet",default:"outlined"},direction:{type:["landscape","portrait"],name:"Direction",description:"Retningen innholdet skal ligge i forhold til kortet",default:"portrait"},Image:{type:"object",image:"Image",description:"Bilde på kortet. Tar inn et objekt av typen {src: string, alt: string}. src er stien til bildet, og alt er tekst for aria-label.",items:{type:"object",properties:{src:{type:"string",description:"Bilde på kortet"},alt:{type:"string",description:"Tekst for aria-label"}},required:["src","alt"]}}},m={default:{description:"Innholdet i kortet"}},l={name:k,"css-class":"pkt-card",isElement:u,props:h,slots:m};var y=Object.defineProperty,b=Object.getOwnPropertyDescriptor,r=(n,i,s,a)=>{for(var e=a>1?void 0:a?b(i,s):i,o=n.length-1,p;o>=0;o--)(p=n[o])&&(e=(a?p(i,s,e):p(e))||e);return a&&e&&y(i,s,e),e};exports.PktCard=class extends t.PktElement{constructor(){super(),this.defaultSlot=d.ii(),this.skin=l.props.skin.default,this.direction=l.props.direction.default,this.image={src:"",alt:""},this.heading="",this.subheading="",this.tags=[],this.slotController=new d.PktSlotController(this,this.defaultSlot)}connectedCallback(){super.connectedCallback()}render(){const i={"pkt-card":!0,[`pkt-card--${this.skin}`]:this.skin,[`pkt-card--${this.direction}`]:this.direction};return t.ke`
2
2
  <div class=${c.Rt(i)}>
3
3
  ${this.image.src&&t.ke`
4
4
  <div class="pkt-card__image">
package/dist/pkt-card.js CHANGED
@@ -1,8 +1,8 @@
1
- import { P as g, k as r, D as k, n as a } from "./index-D16hQiYU.js";
2
- import { i as h, P as m, K as u } from "./ref-CC5SNvNX.js";
3
- import { R as y } from "./class-map-Cme3zDHv.js";
1
+ import { P as g, k as r, D as k, n as a } from "./index-BoxUN9GL.js";
2
+ import { i as h, P as m, K as u } from "./ref-DzpbHCb_.js";
3
+ import { R as y } from "./class-map-DnAEF9tj.js";
4
4
  import { t as f } from "./directive-DA0-wdk7.js";
5
- import "./index-CQrIaUIc.js";
5
+ import "./index-CsKoXqeT.js";
6
6
  import "./pkt-tag.js";
7
7
  const b = "pkt-card", v = !0, $ = {
8
8
  heading: {