@oslokommune/punkt-elements 11.19.3 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/{src/components → components}/calendar/index.d.ts +0 -1
  2. package/dist/{src/components → components}/component-template/index.d.ts +0 -1
  3. package/dist/{src/components → components}/element/index.d.ts +1 -2
  4. package/dist/{src/components → components}/icon/index.d.ts +0 -1
  5. package/dist/{src/controllers → controllers}/pkt-slot-controller.d.ts +0 -1
  6. package/dist/converters-Bi8tmNvQ.cjs +5 -0
  7. package/dist/{converters-c2bad255.js → converters-DMveycvc.js} +13 -18
  8. package/dist/{directive-1053a959.js → directive-C7mkmyiy.js} +145 -178
  9. package/dist/directive-DfhMJ1ie.cjs +23 -0
  10. package/dist/{index-8cd06749.js → index-0PZgk9Oc.js} +26 -40
  11. package/dist/index-xoVy6sfy.cjs +13 -0
  12. package/dist/pkt-el-calendar.cjs +14 -14
  13. package/dist/pkt-el-calendar.js +295 -303
  14. package/dist/pkt-el-component-template.cjs +6 -6
  15. package/dist/pkt-el-component-template.js +8 -8
  16. package/dist/pkt-el-element.cjs +1 -1
  17. package/dist/pkt-el-element.js +2 -2
  18. package/dist/pkt-el-icon.cjs +3 -3
  19. package/dist/pkt-el-icon.js +27 -32
  20. package/dist/pkt-el-index.cjs +1 -1
  21. package/dist/pkt-el-index.js +6 -10
  22. package/dist/{property-dd1c41a8.js → property-BBVRv-DT.js} +1 -1
  23. package/dist/{property-607ef6c9.cjs → property-CK6SFc5B.cjs} +1 -1
  24. package/package.json +8 -8
  25. package/dist/converters-b87c8d9f.cjs +0 -5
  26. package/dist/directive-47ed6f74.cjs +0 -23
  27. package/dist/index-c6f5a3e8.cjs +0 -13
  28. package/dist/vite.config.d.ts +0 -2
  29. /package/dist/{src/components → components}/index.d.ts +0 -0
  30. /package/dist/{src/helpers → helpers}/converters.d.ts +0 -0
  31. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./directive-47ed6f74.cjs"),n=require("./property-607ef6c9.cjs"),h=require("./index-c6f5a3e8.cjs"),c=require("./converters-b87c8d9f.cjs");var d=Object.defineProperty,u=Object.getOwnPropertyDescriptor,r=(i,t,e,o)=>{for(var s=o>1?void 0:o?u(t,e):t,l=i.length-1,p;l>=0;l--)(p=i[l])&&(s=(o?p(t,e,s):p(s))||s);return o&&s&&d(t,e,s),s};exports.PktComponent=class extends h.PktElement{constructor(){super(...arguments),this.string="",this.strings=[],this.darkmode=!1,this._list=[]}connectedCallback(){this.strings.length&&this.strings.forEach(t=>{this._list.push(t.toUpperCase())}),super.connectedCallback()}render(){const t={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return a.x`
2
- <div class="${c.e(t)}">
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./directive-DfhMJ1ie.cjs"),n=require("./property-CK6SFc5B.cjs"),h=require("./index-xoVy6sfy.cjs"),c=require("./converters-Bi8tmNvQ.cjs");var d=Object.defineProperty,u=Object.getOwnPropertyDescriptor,r=(i,t,e,o)=>{for(var s=o>1?void 0:o?u(t,e):t,l=i.length-1,p;l>=0;l--)(p=i[l])&&(s=(o?p(t,e,s):p(s))||s);return o&&s&&d(t,e,s),s};exports.PktComponent=class extends h.PktElement{constructor(){super(...arguments),this.string="",this.strings=[],this.darkmode=!1,this._list=[]}connectedCallback(){this.strings.length&&this.strings.forEach(t=>{this._list.push(t.toUpperCase())}),super.connectedCallback()}render(){const t={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return a.ke`
2
+ <div class="${c.Rt(t)}">
3
3
  <h1 class="pkt-txt-28">${this.string}</h1>
4
4
 
5
5
  <h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
@@ -7,11 +7,11 @@
7
7
  <div>${this.renderList(this.doStuff(this._list))}</div>
8
8
 
9
9
  <h2 class="pkt-txt-22">Slot</h2>
10
- <div ${h.n(this.defaultSlot)}>defaultSlotRef</div>
10
+ <div ${h.Kt(this.defaultSlot)}>defaultSlotRef</div>
11
11
  <h2 class="pkt-txt-22">Named slot</h2>
12
12
  <select
13
13
  name="named-slot"
14
- ${h.n(this.namedSlot)}
14
+ ${h.Kt(this.namedSlot)}
15
15
  @change=${e=>alert(e.target.value)}
16
16
  >
17
17
  namedSlotRef
@@ -22,8 +22,8 @@
22
22
  Si ${c.translations.example.hi}
23
23
  </button>
24
24
  </div>
25
- `}renderList(t){return a.x`
25
+ `}renderList(t){return a.ke`
26
26
  <ul>
27
- ${t.map(e=>a.x`<li>${e}</li>`)}
27
+ ${t.map(e=>a.ke`<li>${e}</li>`)}
28
28
  </ul>
29
29
  `}doStuff(t){return t.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!",bubbles:!0,composed:!0}))}};r([n.n({type:String})],exports.PktComponent.prototype,"string",2);r([n.n({converter:c.csvToArray})],exports.PktComponent.prototype,"strings",2);r([n.n({type:Boolean})],exports.PktComponent.prototype,"darkmode",2);r([n.n({type:Array})],exports.PktComponent.prototype,"_list",2);exports.PktComponent=r([n.t("pkt-el-component")],exports.PktComponent);
@@ -1,11 +1,11 @@
1
- import { x as h } from "./directive-1053a959.js";
2
- import { n as o, t as c } from "./property-dd1c41a8.js";
3
- import { P as m, n as d } from "./index-8cd06749.js";
4
- import { e as u, t as f, c as g } from "./converters-c2bad255.js";
5
- var v = Object.defineProperty, k = Object.getOwnPropertyDescriptor, n = (t, e, l, i) => {
6
- for (var s = i > 1 ? void 0 : i ? k(e, l) : e, a = t.length - 1, p; a >= 0; a--)
7
- (p = t[a]) && (s = (i ? p(e, l, s) : p(s)) || s);
8
- return i && s && v(e, l, s), s;
1
+ import { k as h } from "./directive-C7mkmyiy.js";
2
+ import { n as o, t as c } from "./property-BBVRv-DT.js";
3
+ import { P as m, K as d } from "./index-0PZgk9Oc.js";
4
+ import { R as u, t as f, c as g } from "./converters-DMveycvc.js";
5
+ var v = Object.defineProperty, k = Object.getOwnPropertyDescriptor, n = (t, e, a, i) => {
6
+ for (var s = i > 1 ? void 0 : i ? k(e, a) : e, l = t.length - 1, p; l >= 0; l--)
7
+ (p = t[l]) && (s = (i ? p(e, a, s) : p(s)) || s);
8
+ return i && s && v(e, a, s), s;
9
9
  };
10
10
  let r = class extends m {
11
11
  constructor() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./directive-47ed6f74.cjs");const e=require("./index-c6f5a3e8.cjs");exports.PktElement=e.PktElement;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./directive-DfhMJ1ie.cjs");const e=require("./index-xoVy6sfy.cjs");exports.PktElement=e.PktElement;
@@ -1,5 +1,5 @@
1
- import "./directive-1053a959.js";
2
- import { P as o } from "./index-8cd06749.js";
1
+ import "./directive-C7mkmyiy.js";
2
+ import { P as o } from "./index-0PZgk9Oc.js";
3
3
  export {
4
4
  o as PktElement
5
5
  };
@@ -1,9 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./directive-47ed6f74.cjs"),c=require("./property-607ef6c9.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./directive-DfhMJ1ie.cjs"),c=require("./property-CK6SFc5B.cjs");/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */class f extends i.i{constructor(t){if(super(t),this.it=i.T,t.type!==i.t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===i.T||t==null)return this._t=void 0,this.it=t;if(t===i.w)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const s=[t];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}}f.directiveName="unsafeHTML",f.resultType=1;/**
5
+ */class f extends i.i{constructor(e){if(super(e),this.it=i.D,e.type!==i.t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===i.D||e==null)return this._t=void 0,this.it=e;if(e===i.R)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}}f.directiveName="unsafeHTML",f.resultType=1;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */class v extends f{}v.directiveName="unsafeSVG",v.resultType=2;const h=i.e(v);var d=Object.defineProperty,w=Object.getOwnPropertyDescriptor,l=(e,t,s,r)=>{for(var n=r>1?void 0:r?w(t,s):t,a=e.length-1,u;a>=0;a--)(u=e[a])&&(n=(r?u(t,s,n):u(n))||n);return r&&n&&d(t,s,n),n};const y=e=>new Promise(t=>setTimeout(t,e)),o='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',p={},g=async(e,t)=>{let s=0;for(;p[t+e+".svg"]==="fetching"&&(s++,!(s>50));)await y(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.fetch=="function"?(p[t+e+".svg"]="fetching",Promise.resolve(fetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),o)).then(r=>(r!==o&&localStorage.setItem(t+e+".svg",r),p[t+e+".svg"]="fetched",r)))):Promise.resolve(o)};exports.PktIcon=class extends i.s{constructor(){super(...arguments),this.name="",this.path="https://punkt-cdn.oslo.kommune.no/latest/icons/",this.icon=h(o)}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}async connectedCallback(){this.name&&this.path&&(this.icon=h(await g(this.name,this.path).then(t=>t))),super.connectedCallback()}async update(t){t.has("name")&&this.name&&this.path&&(this.icon=h(await g(this.name,this.path).then(s=>s))),super.update(t)}render(){return i.x`${this.icon}`}};l([c.n({type:String,reflect:!0})],exports.PktIcon.prototype,"name",2);l([c.n({type:String,reflect:!0})],exports.PktIcon.prototype,"path",2);l([c.n({type:SVGElement})],exports.PktIcon.prototype,"icon",2);exports.PktIcon=l([c.t("pkt-el-icon")],exports.PktIcon);
9
+ */class v extends f{}v.directiveName="unsafeSVG",v.resultType=2;const h=i.e(v);var d=Object.defineProperty,y=Object.getOwnPropertyDescriptor,l=(t,e,r,s)=>{for(var n=s>1?void 0:s?y(e,r):e,a=t.length-1,u;a>=0;a--)(u=t[a])&&(n=(s?u(e,r,n):u(n))||n);return s&&n&&d(e,r,n),n};const m=t=>new Promise(e=>setTimeout(e,t)),o='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',p={},g=async(t,e)=>{let r=0;for(;p[e+t+".svg"]==="fetching"&&(r++,!(r>50));)await m(50);return localStorage.getItem(e+t+".svg")?Promise.resolve(localStorage.getItem(e+t+".svg")):typeof window.fetch=="function"?(p[e+t+".svg"]="fetching",Promise.resolve(fetch(e+t+".svg").then(s=>s.ok?s.text():(console.error("Missing icon: "+e+t+".svg"),o)).then(s=>(s!==o&&localStorage.setItem(e+t+".svg",s),p[e+t+".svg"]="fetched",s)))):Promise.resolve(o)};exports.PktIcon=class extends i.h{constructor(){super(...arguments),this.name="",this.path="https://punkt-cdn.oslo.kommune.no/latest/icons/",this.icon=h(o)}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}async connectedCallback(){this.name&&this.path&&(this.icon=h(await g(this.name,this.path).then(e=>e))),super.connectedCallback()}async update(e){e.has("name")&&this.name&&this.path&&(this.icon=h(await g(this.name,this.path).then(r=>r))),super.update(e)}render(){return i.ke`${this.icon}`}};l([c.n({type:String,reflect:!0})],exports.PktIcon.prototype,"name",2);l([c.n({type:String,reflect:!0})],exports.PktIcon.prototype,"path",2);l([c.n({type:SVGElement})],exports.PktIcon.prototype,"icon",2);exports.PktIcon=l([c.t("pkt-el-icon")],exports.PktIcon);
@@ -1,27 +1,22 @@
1
- import { i as m, T as g, t as w, w as y, e as _, s as S, x as b } from "./directive-1053a959.js";
2
- import { n as v, t as P } from "./property-dd1c41a8.js";
1
+ import { i as m, D as g, t as w, R as y, e as _, h as S, k as b } from "./directive-C7mkmyiy.js";
2
+ import { n as v, t as P } from "./property-BBVRv-DT.js";
3
3
  /**
4
4
  * @license
5
5
  * Copyright 2017 Google LLC
6
6
  * SPDX-License-Identifier: BSD-3-Clause
7
7
  */
8
8
  class p extends m {
9
- constructor(t) {
10
- if (super(t), this.it = g, t.type !== w.CHILD)
11
- throw Error(this.constructor.directiveName + "() can only be used in child bindings");
9
+ constructor(e) {
10
+ if (super(e), this.it = g, e.type !== w.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
12
11
  }
13
- render(t) {
14
- if (t === g || t == null)
15
- return this._t = void 0, this.it = t;
16
- if (t === y)
17
- return t;
18
- if (typeof t != "string")
19
- throw Error(this.constructor.directiveName + "() called with a non-string value");
20
- if (t === this.it)
21
- return this._t;
22
- this.it = t;
23
- const r = [t];
24
- return r.raw = r, this._t = { _$litType$: this.constructor.resultType, strings: r, values: [] };
12
+ render(e) {
13
+ if (e === g || e == null) return this._t = void 0, this.it = e;
14
+ if (e === y) return e;
15
+ if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
16
+ if (e === this.it) return this._t;
17
+ this.it = e;
18
+ const s = [e];
19
+ return s.raw = s, this._t = { _$litType$: this.constructor.resultType, strings: s, values: [] };
25
20
  }
26
21
  }
27
22
  p.directiveName = "unsafeHTML", p.resultType = 1;
@@ -34,17 +29,17 @@ class f extends p {
34
29
  }
35
30
  f.directiveName = "unsafeSVG", f.resultType = 2;
36
31
  const h = _(f);
37
- var T = Object.defineProperty, x = Object.getOwnPropertyDescriptor, c = (e, t, r, s) => {
38
- for (var i = s > 1 ? void 0 : s ? x(t, r) : t, a = e.length - 1, l; a >= 0; a--)
39
- (l = e[a]) && (i = (s ? l(t, r, i) : l(i)) || i);
40
- return s && i && T(t, r, i), i;
32
+ var k = Object.defineProperty, C = Object.getOwnPropertyDescriptor, c = (t, e, s, r) => {
33
+ for (var i = r > 1 ? void 0 : r ? C(e, s) : e, l = t.length - 1, a; l >= 0; l--)
34
+ (a = t[l]) && (i = (r ? a(e, s, i) : a(i)) || i);
35
+ return r && i && k(e, s, i), i;
41
36
  };
42
- const C = (e) => new Promise((t) => setTimeout(t, e)), o = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', u = {}, d = async (e, t) => {
43
- let r = 0;
44
- for (; u[t + e + ".svg"] === "fetching" && (r++, !(r > 50)); )
45
- await C(50);
46
- return localStorage.getItem(t + e + ".svg") ? Promise.resolve(localStorage.getItem(t + e + ".svg")) : typeof window.fetch == "function" ? (u[t + e + ".svg"] = "fetching", Promise.resolve(
47
- fetch(t + e + ".svg").then((s) => s.ok ? s.text() : (console.error("Missing icon: " + t + e + ".svg"), o)).then((s) => (s !== o && localStorage.setItem(t + e + ".svg", s), u[t + e + ".svg"] = "fetched", s))
37
+ const I = (t) => new Promise((e) => setTimeout(e, t)), o = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', u = {}, d = async (t, e) => {
38
+ let s = 0;
39
+ for (; u[e + t + ".svg"] === "fetching" && (s++, !(s > 50)); )
40
+ await I(50);
41
+ return localStorage.getItem(e + t + ".svg") ? Promise.resolve(localStorage.getItem(e + t + ".svg")) : typeof window.fetch == "function" ? (u[e + t + ".svg"] = "fetching", Promise.resolve(
42
+ fetch(e + t + ".svg").then((r) => r.ok ? r.text() : (console.error("Missing icon: " + e + t + ".svg"), o)).then((r) => (r !== o && localStorage.setItem(e + t + ".svg", r), u[e + t + ".svg"] = "fetched", r))
48
43
  )) : Promise.resolve(o);
49
44
  };
50
45
  let n = class extends S {
@@ -68,16 +63,16 @@ let n = class extends S {
68
63
  */
69
64
  async connectedCallback() {
70
65
  this.name && this.path && (this.icon = h(
71
- await d(this.name, this.path).then((e) => e)
66
+ await d(this.name, this.path).then((t) => t)
72
67
  )), super.connectedCallback();
73
68
  }
74
69
  /**
75
70
  * Runs every time a property changes
76
71
  */
77
- async update(e) {
78
- e.has("name") && this.name && this.path && (this.icon = h(
79
- await d(this.name, this.path).then((t) => t)
80
- )), super.update(e);
72
+ async update(t) {
73
+ t.has("name") && this.name && this.path && (this.icon = h(
74
+ await d(this.name, this.path).then((e) => e)
75
+ )), super.update(t);
81
76
  }
82
77
  /**
83
78
  * Component functionality and render
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./pkt-el-calendar.cjs"),r=require("./pkt-el-icon.cjs"),t=require("./pkt-el-component-template.cjs");require("./directive-47ed6f74.cjs");require("./property-607ef6c9.cjs");require("./converters-b87c8d9f.cjs");require("./index-c6f5a3e8.cjs");Object.defineProperty(exports,"PktCalendar",{enumerable:!0,get:()=>e.PktCalendar});Object.defineProperty(exports,"PktIcon",{enumerable:!0,get:()=>r.PktIcon});Object.defineProperty(exports,"PktComponent",{enumerable:!0,get:()=>t.PktComponent});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./pkt-el-calendar.cjs"),t=require("./pkt-el-icon.cjs"),r=require("./pkt-el-component-template.cjs");Object.defineProperty(exports,"PktCalendar",{enumerable:!0,get:()=>e.PktCalendar});Object.defineProperty(exports,"PktIcon",{enumerable:!0,get:()=>t.PktIcon});Object.defineProperty(exports,"PktComponent",{enumerable:!0,get:()=>r.PktComponent});
@@ -1,12 +1,8 @@
1
- import { PktCalendar as i } from "./pkt-el-calendar.js";
2
- import { PktIcon as f } from "./pkt-el-icon.js";
3
- import { PktComponent as x } from "./pkt-el-component-template.js";
4
- import "./directive-1053a959.js";
5
- import "./property-dd1c41a8.js";
6
- import "./converters-c2bad255.js";
7
- import "./index-8cd06749.js";
1
+ import { PktCalendar as t } from "./pkt-el-calendar.js";
2
+ import { PktIcon as m } from "./pkt-el-icon.js";
3
+ import { PktComponent as p } from "./pkt-el-component-template.js";
8
4
  export {
9
- i as PktCalendar,
10
- x as PktComponent,
11
- f as PktIcon
5
+ t as PktCalendar,
6
+ p as PktComponent,
7
+ m as PktIcon
12
8
  };
@@ -1,4 +1,4 @@
1
- import { u as d, f as l } from "./directive-1053a959.js";
1
+ import { u as d, f as l } from "./directive-C7mkmyiy.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- "use strict";const d=require("./directive-47ed6f74.cjs");/**
1
+ "use strict";const d=require("./directive-DfhMJ1ie.cjs");/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-elements",
3
- "version": "11.19.3",
3
+ "version": "12.1.0",
4
4
  "description": "Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -24,12 +24,12 @@
24
24
  "lit": "^3.1.2"
25
25
  },
26
26
  "devDependencies": {
27
- "@oslokommune/punkt-assets": "^11.19.3",
28
- "@oslokommune/punkt-css": "^11.19.3",
29
- "sass": "^1.63.6",
30
- "typescript": "^4.9.3",
31
- "vite": "^4.5.3",
32
- "vite-plugin-dts": "^3.6.4",
27
+ "@oslokommune/punkt-assets": "^12.1.0",
28
+ "@oslokommune/punkt-css": "^12.1.0",
29
+ "sass": "^1.78.0",
30
+ "typescript": "^5.6.2",
31
+ "vite": "^5.4.4",
32
+ "vite-plugin-dts": "^4.2.1",
33
33
  "vite-plugin-web-components-hmr": "^0.1.3"
34
34
  },
35
35
  "private": false,
@@ -52,5 +52,5 @@
52
52
  "url": "https://github.com/oslokommune/punkt/issues"
53
53
  },
54
54
  "license": "MIT",
55
- "gitHead": "fd9b88908687cb439eced58b76deab1a33eb4208"
55
+ "gitHead": "540906f27796c832d177f5f2bedd1bbe4bced7c4"
56
56
  }
@@ -1,5 +0,0 @@
1
- "use strict";const s=require("./directive-47ed6f74.cjs");/**
2
- * @license
3
- * Copyright 2018 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */const d=s.e(class extends s.i{constructor(t){var r;if(super(t),t.type!==s.t.ATTRIBUTE||t.name!=="class"||((r=t.strings)==null?void 0:r.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(r=>t[r]).join(" ")+" "}update(t,[r]){var i,a;if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(e=>e!=="")));for(const e in r)r[e]&&!((i=this.nt)!=null&&i.has(e))&&this.st.add(e);return this.render(r)}const n=t.element.classList;for(const e of this.st)e in r||(n.remove(e),this.st.delete(e));for(const e in r){const o=!!r[e];o===this.st.has(e)||(a=this.nt)!=null&&a.has(e)||(o?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return s.w}}),h={hi:"Hei!"},c={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"},u={example:h,dates:c},g=t=>{if(Array.isArray(t))return t;if(typeof t=="string")return t.split(",")},p=t=>t?new Date(t):void 0,l=t=>{if(typeof t=="string")return t.split(",").map(r=>new Date(r));if(Array.isArray(t))return t.map(r=>new Date(r))};exports.csvToArray=g;exports.e=d;exports.stringToDate=p;exports.stringsToDate=l;exports.translations=u;
@@ -1,23 +0,0 @@
1
- "use strict";/**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */const N=globalThis,D=N.ShadowRoot&&(N.ShadyCSS===void 0||N.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol(),j=new WeakMap;let nt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==X)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(D&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=j.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&j.set(e,t))}return t}toString(){return this.cssText}};const ot=r=>new nt(typeof r=="string"?r:r+"",void 0,X),ht=(r,t)=>{if(D)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=N.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},W=D?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return ot(e)})(r):r;/**
6
- * @license
7
- * Copyright 2017 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:lt,defineProperty:at,getOwnPropertyDescriptor:ct,getOwnPropertyNames:dt,getOwnPropertySymbols:pt,getPrototypeOf:$t}=Object,A=globalThis,V=A.trustedTypes,ut=V?V.emptyScript:"",k=A.reactiveElementPolyfillSupport,b=(r,t)=>r,O={toAttribute(r,t){switch(t){case Boolean:r=r?ut:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},z=(r,t)=>!lt(r,t),q={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:z};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),A.litPropertyMetadata??(A.litPropertyMetadata=new WeakMap);class v extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=q){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&at(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=ct(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){const a=i==null?void 0:i.call(this);o.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??q}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=$t(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const e=this.properties,s=[...dt(e),...pt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(W(i))}else t!==void 0&&e.push(W(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ht(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var o;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const n=(((o=s.converter)==null?void 0:o.toAttribute)!==void 0?s.converter:O).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var o;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=s.getPropertyOptions(i),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:O;this._$Em=i,this[i]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??z)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,n]of i)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[b("elementProperties")]=new Map,v[b("finalized")]=new Map,k==null||k({ReactiveElement:v}),(A.reactiveElementVersions??(A.reactiveElementVersions=[])).push("2.0.4");/**
10
- * @license
11
- * Copyright 2017 Google LLC
12
- * SPDX-License-Identifier: BSD-3-Clause
13
- */const C=globalThis,R=C.trustedTypes,J=R?R.createPolicy("lit-html",{createHTML:r=>r}):void 0,tt="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,et="?"+_,_t=`<${et}>`,m=document,P=()=>m.createComment(""),U=r=>r===null||typeof r!="object"&&typeof r!="function",st=Array.isArray,At=r=>st(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",L=`[
14
- \f\r]`,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,F=/>/g,f=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,Z=/"/g,it=/^(?:script|style|textarea|title)$/i,ft=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),gt=ft(1),y=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),G=new WeakMap,g=m.createTreeWalker(m,129);function rt(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return J!==void 0?J.createHTML(t):t}const mt=(r,t)=>{const e=r.length-1,s=[];let i,o=t===2?"<svg>":"",n=S;for(let a=0;a<e;a++){const h=r[a];let d,p,l=-1,$=0;for(;$<h.length&&(n.lastIndex=$,p=n.exec(h),p!==null);)$=n.lastIndex,n===S?p[1]==="!--"?n=K:p[1]!==void 0?n=F:p[2]!==void 0?(it.test(p[2])&&(i=RegExp("</"+p[2],"g")),n=f):p[3]!==void 0&&(n=f):n===f?p[0]===">"?(n=i??S,l=-1):p[1]===void 0?l=-2:(l=n.lastIndex-p[2].length,d=p[1],n=p[3]===void 0?f:p[3]==='"'?Z:Y):n===Z||n===Y?n=f:n===K||n===F?n=S:(n=f,i=void 0);const u=n===f&&r[a+1].startsWith("/>")?" ":"";o+=n===S?h+_t:l>=0?(s.push(d),h.slice(0,l)+tt+h.slice(l)+_+u):h+_+(l===-2?a:u)}return[rt(r,o+(r[e]||"<?>")+(t===2?"</svg>":"")),s]};class T{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,n=0;const a=t.length-1,h=this.parts,[d,p]=mt(t,e);if(this.el=T.createElement(d,s),g.currentNode=this.el.content,e===2){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=g.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(tt)){const $=p[n++],u=i.getAttribute(l).split(_),H=/([.?@])?(.*)/.exec($);h.push({type:1,index:o,name:H[2],strings:u,ctor:H[1]==="."?vt:H[1]==="?"?Et:H[1]==="@"?St:M}),i.removeAttribute(l)}else l.startsWith(_)&&(h.push({type:6,index:o}),i.removeAttribute(l));if(it.test(i.tagName)){const l=i.textContent.split(_),$=l.length-1;if($>0){i.textContent=R?R.emptyScript:"";for(let u=0;u<$;u++)i.append(l[u],P()),g.nextNode(),h.push({type:2,index:++o});i.append(l[$],P())}}}else if(i.nodeType===8)if(i.data===et)h.push({type:2,index:o});else{let l=-1;for(;(l=i.data.indexOf(_,l+1))!==-1;)h.push({type:7,index:o}),l+=_.length-1}o++}}static createElement(t,e){const s=m.createElement("template");return s.innerHTML=t,s}}function E(r,t,e=r,s){var n,a;if(t===y)return t;let i=s!==void 0?(n=e._$Co)==null?void 0:n[s]:e._$Cl;const o=U(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),o===void 0?i=void 0:(i=new o(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=E(r,i._$AS(r,t.values),i,s)),t}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)??m).importNode(e,!0);g.currentNode=i;let o=g.nextNode(),n=0,a=0,h=s[0];for(;h!==void 0;){if(n===h.index){let d;h.type===2?d=new x(o,o.nextSibling,this,t):h.type===1?d=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(d=new bt(o,this,t)),this._$AV.push(d),h=s[++a]}n!==(h==null?void 0:h.index)&&(o=g.nextNode(),n++)}return g.currentNode=m,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._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=c,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}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=E(this,t,e),U(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):At(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==c&&U(this._$AH)?this._$AA.nextSibling.data=t:this.T(m.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=T.createElement(rt(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),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=G.get(t.strings);return e===void 0&&G.set(t.strings,e=new T(t)),e}k(t){st(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.S(P()),this.S(P()),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._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class M{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=c,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=c}_$AI(t,e=this,s,i){const o=this.strings;let n=!1;if(o===void 0)t=E(this,t,e,0),n=!U(t)||t!==this._$AH&&t!==y,n&&(this._$AH=t);else{const a=t;let h,d;for(t=o[0],h=0;h<o.length-1;h++)d=E(this,a[s+h],e,h),d===y&&(d=this._$AH[h]),n||(n=!U(d)||d!==this._$AH[h]),d===c?t=c:t!==c&&(t+=(d??"")+o[h+1]),this._$AH[h]=d}n&&!i&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class vt extends M{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}}class Et extends M{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}}class St extends M{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=E(this,t,e,0)??c)===y)return;const s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==c&&(s===c||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 bt{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){E(this,t)}}const I=C.litHtmlPolyfillSupport;I==null||I(T,x),(C.litHtmlVersions??(C.litHtmlVersions=[])).push("3.1.3");const Ct=(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(P(),o),o,void 0,e??{})}return i._$AI(r),i};/**
16
- * @license
17
- * Copyright 2017 Google LLC
18
- * SPDX-License-Identifier: BSD-3-Clause
19
- */class w extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ct(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return y}}var Q;w._$litElement$=!0,w.finalized=!0,(Q=globalThis.litElementHydrateSupport)==null||Q.call(globalThis,{LitElement:w});const B=globalThis.litElementPolyfillSupport;B==null||B({LitElement:w});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.5");/**
20
- * @license
21
- * Copyright 2017 Google LLC
22
- * SPDX-License-Identifier: BSD-3-Clause
23
- */const wt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Pt=r=>(...t)=>({_$litDirective$:r,values:t});class Ut{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}exports.T=c;exports.e=Pt;exports.f=z;exports.i=Ut;exports.s=w;exports.t=wt;exports.u=O;exports.w=y;exports.x=gt;
@@ -1,13 +0,0 @@
1
- "use strict";const n=require("./directive-47ed6f74.cjs");/**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */const u=e=>e.strings===void 0;/**
6
- * @license
7
- * Copyright 2017 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- */const h=(e,t)=>{var i;const s=e._$AN;if(s===void 0)return!1;for(const o of s)(i=o._$AO)==null||i.call(o,t,!1),h(o,t);return!0},l=e=>{let t,s;do{if((t=e._$AM)===void 0)break;s=t._$AN,s.delete(e),e=t}while((s==null?void 0:s.size)===0)},a=e=>{for(let t;t=e._$AM;e=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(e))break;s.add(e),A(t)}};function f(e){this._$AN!==void 0?(l(this),this._$AM=e,a(this)):this._$AM=e}function $(e,t=!1,s=0){const i=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(i))for(let r=s;r<i.length;r++)h(i[r],!1),l(i[r]);else i!=null&&(h(i,!1),l(i));else h(this,e)}const A=e=>{e.type==n.t.CHILD&&(e._$AP??(e._$AP=$),e._$AQ??(e._$AQ=f))};class _ extends n.i{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),a(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,o;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(o=this.disconnected)==null||o.call(this)),s&&(h(this,t),l(this))}setValue(t){if(u(this._$Ct))this._$Ct._$AI(t,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}}/**
10
- * @license
11
- * Copyright 2020 Google LLC
12
- * SPDX-License-Identifier: BSD-3-Clause
13
- */const d=()=>new p;class p{}const c=new WeakMap,v=n.e(class extends _{render(e){return n.T}update(e,[t]){var i;const s=t!==this.Y;return s&&this.Y!==void 0&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.Y=t,this.ht=(i=e.options)==null?void 0:i.host,this.rt(this.ct=e.element)),n.T}rt(e){if(typeof this.Y=="function"){const t=this.ht??globalThis;let s=c.get(t);s===void 0&&(s=new WeakMap,c.set(t,s)),s.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),s.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){var e,t;return typeof this.Y=="function"?(e=c.get(this.ht??globalThis))==null?void 0:e.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});class m{constructor(t,...s){this.nodes=[],this.host=t,this.host.addController(this),this.slots=s,this.nodes=[]}hostUpdate(){Array.from(this.host.childNodes).forEach(t=>{var s;if(t.nodeName==="#text"){if((s=t.nodeValue)!=null&&s.trim()){const i=document.createElement("template");i.content.appendChild(t),this.nodes.push(i)}}else this.nodes.push(t)})}hostUpdated(){this.slots.forEach(t=>{if(!t.value)return;const s=t.value.getAttribute("name"),i=this.nodes.flatMap(o=>o.getAttribute&&o.getAttribute("slot")==s?this.nodeFromElement(o,t):[]);i.length&&t.value.replaceChildren(...i)})}nodeFromElement(t,s){var i;return t===((i=s.value)==null?void 0:i.parentNode)?[]:t instanceof HTMLTemplateElement?Array.from(t.content.childNodes):t}}class C extends n.s{constructor(){super(),this.defaultSlot=d(),this.namedSlot=d(),this.slotController=new m(this,this.defaultSlot,this.namedSlot)}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}}exports.PktElement=C;exports.n=v;
@@ -1,2 +0,0 @@
1
- declare const _default: import('./node_modules/vite').UserConfig;
2
- export default _default;
File without changes
File without changes
File without changes