@oslokommune/punkt-elements 19.15.3 → 19.17.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 (174) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/{accordion-BlsqYbJf.js → accordion-B0zAUNUV.js} +5 -5
  3. package/dist/{accordion-DukAa2ED.cjs → accordion-Cx-Gh3hc.cjs} +1 -1
  4. package/dist/{alert-CuXM6TnC.cjs → alert-BRZDpVMt.cjs} +1 -1
  5. package/dist/{alert-Xt26J9yX.js → alert-JnRrtTOW.js} +5 -5
  6. package/dist/{async-directive-yh8hG41Q.js → async-directive-C4LocQwR.js} +2 -2
  7. package/dist/{backlink-ogvv493Y.js → backlink-D8Rv46lA.js} +3 -3
  8. package/dist/{breadcrumbs-53QVnTFP.js → breadcrumbs-ybOBe_op.js} +2 -2
  9. package/dist/{button-BFG-7bDB.cjs → button-Ca_V13cQ.cjs} +1 -1
  10. package/dist/{button-DhCqyX4D.js → button-ChdHZYBF.js} +5 -5
  11. package/dist/{calendar-CtWc545R.js → calendar-BQCjUQvP.js} +7 -11
  12. package/dist/{calendar-5XCeDtZX.cjs → calendar-CFTrX0C5.cjs} +2 -2
  13. package/dist/{card-Diivw_vm.cjs → card-COseC8ZL.cjs} +1 -1
  14. package/dist/{card-DCc3wfUb.js → card-DSTEL8Kv.js} +6 -6
  15. package/dist/{checkbox-BDwOYcNM.js → checkbox-CKYNnLDh.js} +5 -9
  16. package/dist/{checkbox-BwI9QNSh.cjs → checkbox-DkFswqr-.cjs} +2 -2
  17. package/dist/{checkbox-group-Bum7k828.js → checkbox-group-1ghi5uHp.js} +3 -3
  18. package/dist/{checkbox-group-BLurd7sf.cjs → checkbox-group-lcxR3cYR.cjs} +1 -1
  19. package/dist/{class-map-Bf-QzUpN.js → class-map-BkEYw5uE.js} +1 -1
  20. package/dist/combobox-CaWnlvTX.cjs +139 -0
  21. package/dist/{combobox-C7tUHbG4.js → combobox-iXYiaWbN.js} +63 -96
  22. package/dist/components/index.d.ts +1 -0
  23. package/dist/components/input-wrapper/index.d.ts +1 -0
  24. package/dist/components/input-wrapper/input-wrapper.d.ts +13 -6
  25. package/dist/{consent-DBYZaCTp.cjs → consent-CxcKuGi9.cjs} +1 -1
  26. package/dist/{consent-BUS6GEUu.js → consent-D2nfauO8.js} +3 -3
  27. package/dist/converters-CW6SN0TT.cjs +1 -0
  28. package/dist/{converters-CkjLSYpa.js → converters-CYgQrWVm.js} +138 -141
  29. package/dist/{datepicker-CJLcIDVk.js → datepicker-DTcow1ih.js} +15 -25
  30. package/dist/{datepicker-DmZi4CNk.cjs → datepicker-Da8SfyVG.cjs} +3 -3
  31. package/dist/{dialog-polyfill.esm-B-g35ove.cjs → dialog-polyfill.esm-CW51hN2p.cjs} +1 -1
  32. package/dist/{dialog-polyfill.esm-DHSvqor8.js → dialog-polyfill.esm-D39dWbRt.js} +2 -2
  33. package/dist/{directive-helpers-CwxFepWh.js → directive-helpers-BAinC437.js} +1 -1
  34. package/dist/{element-DBugHPKM.js → element-ckeMVgMz.js} +1 -1
  35. package/dist/{element-with-slot-CVmm0_IE.js → element-with-slot-C0bH0T0H.js} +27 -38
  36. package/dist/element-with-slot-DkyaNnm0.cjs +1 -0
  37. package/dist/{fileupload-DehKWas6.js → fileupload-BNAQ9tNR.js} +16 -23
  38. package/dist/{fileupload-A_suUEPU.cjs → fileupload-Cb1c7ul0.cjs} +3 -3
  39. package/dist/{footer-C6ajmlq2.cjs → footer-Box90zhr.cjs} +1 -1
  40. package/dist/{footer-L2vhQTAS.js → footer-D2RpIbsD.js} +4 -4
  41. package/dist/{header-BzAPmAsZ.cjs → header-CvER8wo6.cjs} +2 -2
  42. package/dist/{header-C6xhv3Ib.js → header-Cwr995oK.js} +13 -13
  43. package/dist/{header-menu-F3tZZ5vO.js → header-menu-CsL4DZE2.js} +5 -5
  44. package/dist/{header-menu-Cz7G7Q2R.cjs → header-menu-D-wOwG1V.cjs} +1 -1
  45. package/dist/{heading-BluavR6A.cjs → heading-D4Kkb6-N.cjs} +1 -1
  46. package/dist/{heading-y72aIgB8.js → heading-DhTyaJms.js} +2 -2
  47. package/dist/{helptext-Dujce_W9.js → helptext-DN0jjgVu.js} +4 -4
  48. package/dist/{helptext-Bdv80rcs.cjs → helptext-p0nwJsyf.cjs} +1 -1
  49. package/dist/{icon-Bao96Zb8.js → icon-CLMJYuTL.js} +1 -1
  50. package/dist/{if-defined-O59_I-e-.js → if-defined-D18nY_K_.js} +1 -1
  51. package/dist/{input-element-mTphzs9b.js → input-element-0yYtRu0p.js} +3 -3
  52. package/dist/{input-element-BjnKPikY.cjs → input-element-BOi7rBbw.cjs} +1 -1
  53. package/dist/input-wrapper-4PTk8aX3.cjs +62 -0
  54. package/dist/{input-wrapper-xRJo_iVf.js → input-wrapper-BSjQc4Vx.js} +29 -197
  55. package/dist/{link-sO401Ieh.js → link-39EvU2ng.js} +5 -5
  56. package/dist/{link-CRLAhYi0.cjs → link-Dj6SbcaD.cjs} +1 -1
  57. package/dist/{linkcard-DnZgMzqL.cjs → linkcard-BoQIfci8.cjs} +1 -1
  58. package/dist/{linkcard-DdmGxzAP.js → linkcard-K9vvKg1u.js} +4 -4
  59. package/dist/{listbox-CvduK_YU.cjs → listbox-BbdUu-IV.cjs} +3 -3
  60. package/dist/{listbox-BDesthOp.js → listbox-DFd-1faX.js} +15 -16
  61. package/dist/{loader-Zo_VSsNw.cjs → loader-BRYL5kTN.cjs} +1 -1
  62. package/dist/{loader-Di5kHEQ4.js → loader-MoI2VRFr.js} +4 -4
  63. package/dist/{messagebox-CR59jv8N.cjs → messagebox-CiOQUt0C.cjs} +1 -1
  64. package/dist/{messagebox-CzaFlrYz.js → messagebox-Dr-k3pnZ.js} +4 -4
  65. package/dist/{modal-wEEmCcUx.cjs → modal-DGiq84MG.cjs} +1 -1
  66. package/dist/{modal-0D0paY70.js → modal-DbzEnZNF.js} +8 -8
  67. package/dist/option-group-element-CH0sgVIl.cjs +23 -0
  68. package/dist/{option-group-element-fpMneBWa.js → option-group-element-DC364Rw_.js} +3 -3
  69. package/dist/pkt-accordion.cjs +1 -1
  70. package/dist/pkt-accordion.js +1 -2
  71. package/dist/pkt-alert.cjs +1 -1
  72. package/dist/pkt-alert.js +1 -2
  73. package/dist/pkt-backlink.js +1 -2
  74. package/dist/pkt-breadcrumbs.js +1 -2
  75. package/dist/pkt-button.cjs +1 -1
  76. package/dist/pkt-button.js +1 -2
  77. package/dist/pkt-calendar.cjs +1 -1
  78. package/dist/pkt-calendar.js +1 -2
  79. package/dist/pkt-card.cjs +1 -1
  80. package/dist/pkt-card.js +1 -2
  81. package/dist/pkt-checkbox-group.cjs +1 -1
  82. package/dist/pkt-checkbox-group.js +1 -2
  83. package/dist/pkt-checkbox.cjs +1 -1
  84. package/dist/pkt-checkbox.js +1 -2
  85. package/dist/pkt-combobox.cjs +1 -1
  86. package/dist/pkt-combobox.js +1 -2
  87. package/dist/pkt-consent.cjs +1 -1
  88. package/dist/pkt-consent.js +1 -2
  89. package/dist/pkt-datepicker.cjs +1 -1
  90. package/dist/pkt-datepicker.js +1 -1
  91. package/dist/pkt-fileupload.cjs +1 -1
  92. package/dist/pkt-fileupload.js +1 -2
  93. package/dist/pkt-footer.cjs +1 -1
  94. package/dist/pkt-footer.js +1 -2
  95. package/dist/pkt-header-menu.cjs +1 -1
  96. package/dist/pkt-header-menu.js +1 -2
  97. package/dist/pkt-header.cjs +1 -1
  98. package/dist/pkt-header.js +1 -2
  99. package/dist/pkt-heading.cjs +1 -1
  100. package/dist/pkt-heading.js +1 -2
  101. package/dist/pkt-helptext.cjs +1 -1
  102. package/dist/pkt-helptext.js +1 -2
  103. package/dist/pkt-icon.js +1 -2
  104. package/dist/pkt-index.cjs +1 -1
  105. package/dist/pkt-index.js +37 -37
  106. package/dist/pkt-input-wrapper.cjs +1 -1
  107. package/dist/pkt-input-wrapper.js +1 -2
  108. package/dist/pkt-link.cjs +1 -1
  109. package/dist/pkt-link.js +1 -2
  110. package/dist/pkt-linkcard.cjs +1 -1
  111. package/dist/pkt-linkcard.js +1 -2
  112. package/dist/pkt-listbox.cjs +1 -1
  113. package/dist/pkt-listbox.js +1 -2
  114. package/dist/pkt-loader.cjs +1 -1
  115. package/dist/pkt-loader.js +1 -2
  116. package/dist/pkt-messagebox.cjs +1 -1
  117. package/dist/pkt-messagebox.js +1 -2
  118. package/dist/pkt-modal.cjs +1 -1
  119. package/dist/pkt-modal.js +1 -2
  120. package/dist/{pkt-options-controller-CHosj1Oo.js → pkt-options-controller-BikFfGcZ.js} +1 -1
  121. package/dist/{pkt-options-controller-139UsV4h.cjs → pkt-options-controller-D1sKTkbR.cjs} +1 -1
  122. package/dist/pkt-progressbar.js +1 -2
  123. package/dist/pkt-radio-group.cjs +1 -1
  124. package/dist/pkt-radio-group.js +1 -2
  125. package/dist/pkt-radiobutton.cjs +1 -1
  126. package/dist/pkt-radiobutton.js +1 -2
  127. package/dist/pkt-searchinput.js +1 -2
  128. package/dist/pkt-select.cjs +1 -1
  129. package/dist/pkt-select.js +1 -2
  130. package/dist/pkt-tabs.cjs +1 -1
  131. package/dist/pkt-tabs.js +1 -2
  132. package/dist/pkt-tag.cjs +1 -1
  133. package/dist/pkt-tag.js +1 -2
  134. package/dist/pkt-textarea.cjs +1 -1
  135. package/dist/pkt-textarea.js +1 -2
  136. package/dist/pkt-textinput.cjs +1 -1
  137. package/dist/pkt-textinput.js +1 -2
  138. package/dist/pkt-timepicker.cjs +1 -1
  139. package/dist/pkt-timepicker.js +1 -2
  140. package/dist/{progressbar-DZHiq7B0.js → progressbar-t0zgEke0.js} +5 -5
  141. package/dist/{radio-group-BmJ3kcba.js → radio-group-DJikniZi.js} +3 -3
  142. package/dist/{radio-group-Q75EtJzu.cjs → radio-group-XCYKqoLD.cjs} +1 -1
  143. package/dist/{radiobutton-DwDErNo5.cjs → radiobutton-DgkML7sd.cjs} +1 -1
  144. package/dist/{radiobutton-BK-V6Itu.js → radiobutton-PYQKVnNQ.js} +4 -4
  145. package/dist/{ref-y_5qv9vU.js → ref-D4OwQYdf.js} +2 -2
  146. package/dist/{repeat-CV9S4zya.js → repeat-BGbBqnfz.js} +2 -2
  147. package/dist/{scroll-lock-BALd8hF9.js → scroll-lock-CR-g54ai.js} +1 -1
  148. package/dist/{scroll-lock-B46ur0FF.cjs → scroll-lock-x0VxhKWZ.cjs} +1 -1
  149. package/dist/{searchinput-Bkcr3Fby.js → searchinput-BzYifHBf.js} +4 -4
  150. package/dist/{select-ByPSk9WT.js → select-CorofYxz.js} +21 -21
  151. package/dist/{select-CCY2_EbI.cjs → select-D8TC1msV.cjs} +14 -14
  152. package/dist/shared-types/icon.d.ts +2 -0
  153. package/dist/shared-types/index.d.ts +3 -1
  154. package/dist/shared-types/input-wrapper.d.ts +59 -0
  155. package/dist/{tabs-R1Jzzj3-.cjs → tabs-B63J6MXb.cjs} +2 -2
  156. package/dist/{tabs-DBW3P90Z.js → tabs-DDakCTkY.js} +7 -15
  157. package/dist/{tag-BMtnaJ1A.cjs → tag-6IPe9bwQ.cjs} +1 -1
  158. package/dist/{tag-uVXp7uP-.js → tag-BPvGZcKf.js} +5 -5
  159. package/dist/{textarea-DB7FMtTf.js → textarea-BZCUHjEj.js} +19 -19
  160. package/dist/{textarea-D9RWiR6u.cjs → textarea-BiCZBjOe.cjs} +10 -10
  161. package/dist/{textinput-l31MdBd4.cjs → textinput-BZPGcxZV.cjs} +12 -12
  162. package/dist/{textinput-Djl_yr1D.js → textinput-D_oEaI41.js} +19 -19
  163. package/dist/{timepicker-Bw8zkwV9.cjs → timepicker-C0d92R8u.cjs} +12 -12
  164. package/dist/{timepicker-D_gNCZ2v.js → timepicker-JBOeZg-7.js} +24 -32
  165. package/package.json +2 -2
  166. package/src/components/index.ts +1 -0
  167. package/src/components/input-wrapper/index.ts +1 -0
  168. package/src/components/input-wrapper/input-wrapper.ts +36 -17
  169. package/src/components/input-wrapper/wrapper-parity.test.ts +4 -2
  170. package/dist/combobox-BsXDULXd.cjs +0 -139
  171. package/dist/converters-BJ9Fe0kW.cjs +0 -1
  172. package/dist/element-with-slot-CcJPCLgn.cjs +0 -1
  173. package/dist/input-wrapper-BEmV0DGo.cjs +0 -62
  174. package/dist/option-group-element-A2cOZRWA.cjs +0 -23
@@ -1,16 +1,16 @@
1
- import { _ as e, d as t, h as n, l as r, n as i, u as a } from "./element-DBugHPKM.js";
2
- import { t as o } from "./class-map-Bf-QzUpN.js";
1
+ import { _ as e, d as t, h as n, l as r, n as i, u as a } from "./element-ckeMVgMz.js";
2
+ import { t as o } from "./class-map-BkEYw5uE.js";
3
3
  import { t as s } from "./format-BTeSVkED.js";
4
- import { n as c } from "./element-with-slot-CVmm0_IE.js";
5
- import "./icon-Bao96Zb8.js";
6
- import { t as l } from "./if-defined-O59_I-e-.js";
7
- import { n as u, t as d } from "./ref-y_5qv9vU.js";
8
- import "./tag-uVXp7uP-.js";
9
- import { t as f } from "./repeat-CV9S4zya.js";
10
- import { a as p, c as m, i as h, l as g, o as _, r as v, s as y } from "./listbox-BDesthOp.js";
11
- import { t as b } from "./input-element-mTphzs9b.js";
12
- import { t as x } from "./pkt-options-controller-CHosj1Oo.js";
13
- import { r as S } from "./input-wrapper-xRJo_iVf.js";
4
+ import { n as c } from "./element-with-slot-C0bH0T0H.js";
5
+ import "./icon-CLMJYuTL.js";
6
+ import { r as l } from "./input-wrapper-BSjQc4Vx.js";
7
+ import { t as u } from "./if-defined-D18nY_K_.js";
8
+ import { n as d, t as f } from "./ref-D4OwQYdf.js";
9
+ import "./tag-BPvGZcKf.js";
10
+ import { t as p } from "./repeat-BGbBqnfz.js";
11
+ import { a as m, c as h, i as g, l as _, o as v, r as y, s as b } from "./listbox-DFd-1faX.js";
12
+ import { t as x } from "./input-element-0yYtRu0p.js";
13
+ import { t as S } from "./pkt-options-controller-BikFfGcZ.js";
14
14
  //#region ../../shared-types/combobox.ts
15
15
  var C = {
16
16
  multiple: !1,
@@ -41,7 +41,7 @@ var C = {
41
41
  action: "none",
42
42
  value: null
43
43
  };
44
- let a = h(n, e);
44
+ let a = g(n, e);
45
45
  return !t.includes(e) && !a ? r ? {
46
46
  action: "addUserValue",
47
47
  value: e
@@ -59,7 +59,7 @@ var C = {
59
59
  value: null
60
60
  };
61
61
  }, E = (e, t, n, r, i) => e.trim().toLowerCase() ? {
62
- ...m(e, t, n, r),
62
+ ...h(e, t, n, r),
63
63
  shouldRemoveValue: !1,
64
64
  shouldResetInput: !1
65
65
  } : {
@@ -68,7 +68,7 @@ var C = {
68
68
  shouldRemoveValue: !i && !!t[0],
69
69
  shouldResetInput: !0
70
70
  }, D = (e, t, n) => {
71
- let r = h(t, e);
71
+ let r = g(t, e);
72
72
  return n === "label" && r?.label ? r.label : e;
73
73
  }, O = {
74
74
  markOptionSelected(e, t) {
@@ -104,7 +104,7 @@ var C = {
104
104
  value: e.getAttribute("value") || e.textContent || "",
105
105
  label: e.textContent || e.getAttribute("value") || ""
106
106
  };
107
- e.getAttribute("data-prefix") && (n.prefix = e.getAttribute("data-prefix") || void 0), e.getAttribute("tagskincolor") && (n.tagSkinColor = e.getAttribute("tagskincolor")), e.getAttribute("description") && (n.description = e.getAttribute("description") || void 0), n.fulltext = v(n), t.push(n);
107
+ e.getAttribute("data-prefix") && (n.prefix = e.getAttribute("data-prefix") || void 0), e.getAttribute("tagskincolor") && (n.tagSkinColor = e.getAttribute("tagskincolor")), e.getAttribute("description") && (n.description = e.getAttribute("description") || void 0), n.fulltext = y(n), t.push(n);
108
108
  }), t;
109
109
  } }, A = {
110
110
  cloneOptions(e) {
@@ -113,7 +113,7 @@ var C = {
113
113
  syncOptionsWithValues(e, t) {
114
114
  let n = [...t];
115
115
  return e.forEach((e) => {
116
- e.value && !e.label && (e.label = e.value), e.selected && !n.includes(e.value) && n.push(e.value), e.fulltext = v(e), e.selected = e.selected || n.includes(e.value);
116
+ e.value && !e.label && (e.label = e.value), e.selected && !n.includes(e.value) && n.push(e.value), e.fulltext = y(e), e.selected = e.selected || n.includes(e.value);
117
117
  }), {
118
118
  options: e,
119
119
  newValues: n
@@ -122,15 +122,15 @@ var C = {
122
122
  mergeWithUserAdded(e, t, n) {
123
123
  return [...t.filter((e) => e?.userAdded && n.includes(e.value)).filter((t) => !(Array.isArray(e) ? e : []).some((e) => e.value === t.value)), ...e];
124
124
  }
125
- }, j = class extends b {
125
+ }, j = class extends x {
126
126
  constructor() {
127
- super(), this.value = "", this.options = [], this.defaultOptions = [], this.allowUserInput = C.allowUserInput, this.typeahead = C.typeahead, this.includeSearch = C.includeSearch, this.searchPlaceholder = null, this.multiple = C.multiple, this.maxlength = null, this.displayValueAs = C.displayValueAs, this.tagPlacement = null, this.isOpen = !1, this._options = [], this._value = [], this._isOptionsOpen = !1, this._userInfoMessage = "", this._messageValue = null, this._addValueText = null, this._maxIsReached = !1, this._search = "", this._inputFocus = !1, this._skipInputTab = !1, this._optionsFromSlot = !1, this._lastSlotGeneration = 0, this._suppressNextOpen = !1, this.inputRef = d(), this.triggerRef = d(), this.listboxRef = d(), this._pendingDispatchFrom = null, this.optionsController = new x(this);
127
+ super(), this.value = "", this.options = [], this.defaultOptions = [], this.allowUserInput = C.allowUserInput, this.typeahead = C.typeahead, this.includeSearch = C.includeSearch, this.searchPlaceholder = null, this.multiple = C.multiple, this.maxlength = null, this.displayValueAs = C.displayValueAs, this.tagPlacement = null, this.isOpen = !1, this._options = [], this._value = [], this._isOptionsOpen = !1, this._userInfoMessage = "", this._messageValue = null, this._addValueText = null, this._maxIsReached = !1, this._search = "", this._inputFocus = !1, this._skipInputTab = !1, this._optionsFromSlot = !1, this._lastSlotGeneration = 0, this._suppressNextOpen = !1, this.inputRef = f(), this.triggerRef = f(), this.listboxRef = f(), this._pendingDispatchFrom = null, this.optionsController = new S(this);
128
128
  }
129
129
  get _hasTextInput() {
130
130
  return this.typeahead || this.allowUserInput;
131
131
  }
132
132
  get _selectionDescription() {
133
- if (!(!this.multiple || this._value.length === 0)) return `${this._value.length} valgt`;
133
+ if (this.multiple && this._value.length !== 0) return `${this._value.length} valgt`;
134
134
  }
135
135
  focusTrigger() {
136
136
  this._hasTextInput ? this.inputRef.value?.focus() : this.triggerRef.value?.focus();
@@ -150,7 +150,7 @@ var C = {
150
150
  return Array.isArray(e) ? this.multiple ? e : e.length > 0 ? [e[0]] : [] : e && this.multiple ? e.split(",") : e ? [e] : [];
151
151
  }
152
152
  updateMaxReached() {
153
- this._maxIsReached = g(this._value.length, this.maxlength);
153
+ this._maxIsReached = _(this._value.length, this.maxlength);
154
154
  }
155
155
  syncPublicValue() {
156
156
  let e = this.multiple ? this._value.join(",") : this._value[0] || "";
@@ -199,45 +199,29 @@ var M = class extends j {
199
199
  toggleValue(e) {
200
200
  if (this.isDisabled) return;
201
201
  this.touched = !0, this._userInfoMessage = "", this._addValueText = null;
202
- let t = h(this.options, e)?.value || null, n = this._value.includes(e || t || ""), r = !!t, i = this._options.find((t) => t.value === e)?.disabled || !1, a = !e?.trim(), o = !this.multiple, s = this.multiple, c = g(this._value.length, this.maxlength), l = !1, u = !0, d = "", f = null, p = "";
203
- i || (!r && this.allowUserInput && !a ? (this.addNewUserValue(e), d = "valueAdded", l = s) : !r && !this.allowUserInput ? (o && this._value[0] && this.removeValue(this._value[0]), u = !1, l = !0, d = "noResults") : n ? (this.removeValue(t), l = !0, o && this._hasTextInput && this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "")) : a && o ? (this.removeAllSelected(), l = !0) : o ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(t), l = !1, d = "valueSelected", f = this._hasTextInput ? D(t || "", this.options, this.displayValueAs) : y(h(this.options, t), this.displayValueAs)) : s && !c ? (this.setSelected(t), l = !0) : s && c ? (d = "maxSelected", u = !1, p = e) : (o && this.removeAllSelected(), d = "noValidValue", u = !1, l = !0, p = e), this._isOptionsOpen = l, l || window.setTimeout(() => {
202
+ let t = g(this.options, e)?.value || null, n = this._value.includes(e || t || ""), r = !!t, i = this._options.find((t) => t.value === e)?.disabled || !1, a = !e?.trim(), o = !this.multiple, s = this.multiple, c = _(this._value.length, this.maxlength), l = !1, u = !0, d = "", f = null, p = "";
203
+ i || (!r && this.allowUserInput && !a ? (this.addNewUserValue(e), d = "valueAdded", l = s) : !r && !this.allowUserInput ? (o && this._value[0] && this.removeValue(this._value[0]), u = !1, l = !0, d = "noResults") : n ? (this.removeValue(t), l = !0, o && this._hasTextInput && this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "")) : a && o ? (this.removeAllSelected(), l = !0) : o ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(t), l = !1, d = "valueSelected", f = this._hasTextInput ? D(t || "", this.options, this.displayValueAs) : b(g(this.options, t), this.displayValueAs)) : s && !c ? (this.setSelected(t), l = !0) : s && c ? (d = "maxSelected", u = !1, p = e) : (o && this.removeAllSelected(), d = "noValidValue", u = !1, l = !0, p = e), this._isOptionsOpen = l, l || window.setTimeout(() => {
204
204
  this.focusAfterCommit();
205
205
  }, 0), this._search = p || "", this.resetComboboxInput(u), this._userInfoMessage = d, this._messageValue = f, s && this.updateMaxReached());
206
206
  }
207
207
  setSelected(e) {
208
- if (!this._value.includes(e)) {
209
- if (this.multiple && g(this._value.length, this.maxlength)) {
210
- this._userInfoMessage = "maxSelected";
211
- return;
212
- }
213
- !this.multiple && this.removeAllSelected(), this._value = e ? [...this._value, e] : this._value, O.markOptionSelected(this._options, e), this.resetComboboxInput(!0);
214
- }
208
+ this._value.includes(e) || (this.multiple && _(this._value.length, this.maxlength) ? this._userInfoMessage = "maxSelected" : (!this.multiple && this.removeAllSelected(), this._value = e ? [...this._value, e] : this._value, O.markOptionSelected(this._options, e), this.resetComboboxInput(!0)));
215
209
  }
216
210
  removeSelected(e) {
217
211
  if (!e) return;
218
212
  this._value = this._value.filter((t) => t !== e);
219
- let t = h(this.options, e);
213
+ let t = g(this.options, e);
220
214
  t && (O.markOptionDeselected(this.options, e), t.userAdded ? (this._options = [...this._options.filter((t) => t.value !== e)], this.options = [...this.options.filter((t) => t.value !== e)]) : this._options.some((t) => t.value === e) ? this.refreshOptionsFromValue() : this._options = [...this._options, t]);
221
215
  }
222
216
  addAllOptions() {
223
- if (this.multiple) {
224
- if (this.maxlength && this._options.length > this.maxlength) {
225
- this._userInfoMessage = "tooManySelected";
226
- return;
227
- }
228
- this._value = this._options.map((e) => e.value), O.markAllSelected(this._options), this.requestUpdate();
229
- }
217
+ this.multiple && (this.maxlength && this._options.length > this.maxlength ? this._userInfoMessage = "tooManySelected" : (this._value = this._options.map((e) => e.value), O.markAllSelected(this._options), this.requestUpdate()));
230
218
  }
231
219
  removeAllSelected() {
232
220
  this._value = [], O.markAllDeselected(this._options), this._options = O.removeUserAddedOptions(this._options), this.requestUpdate();
233
221
  }
234
222
  addValue() {
235
223
  let e = this.inputRef.value?.value.trim() || "";
236
- if (this._search = e, e && this._value.includes(e)) {
237
- this.resetComboboxInput(!0), this._userInfoMessage = "alreadySelected";
238
- return;
239
- }
240
- this.toggleValue(e);
224
+ this._search = e, e && this._value.includes(e) ? (this.resetComboboxInput(!0), this._userInfoMessage = "alreadySelected") : this.toggleValue(e);
241
225
  }
242
226
  removeValue(e) {
243
227
  this._value = this.multiple ? this._value.filter((t) => t !== e) : [], this.removeSelected(e);
@@ -245,8 +229,8 @@ var M = class extends j {
245
229
  addNewUserValue(e) {
246
230
  if (!e || e.trim() === "") return;
247
231
  if (!this.multiple) this._value[0] && this.removeSelected(this._value[0]), this._value = [e];
248
- else if (!h(this.options, e)) {
249
- if (g(this._value.length, this.maxlength)) return;
232
+ else if (!g(this.options, e)) {
233
+ if (_(this._value.length, this.maxlength)) return;
250
234
  this._value = [...this._value, e];
251
235
  }
252
236
  let t = {
@@ -279,19 +263,13 @@ var M = class extends j {
279
263
  let t = e.target;
280
264
  if (this._search = t.value, this.checkForMatches(), this.typeahead) {
281
265
  if (this._search) {
282
- let { filtered: n, suggestion: r } = _(this.options, this._search);
266
+ let { filtered: n, suggestion: r } = v(this.options, this._search);
283
267
  this._options = n, e.inputType !== "deleteContentBackward" && r?.label && this.inputRef.value && this.inputRef.value.type !== "hidden" && (t.value = r.label, window.setTimeout(() => t.setSelectionRange(this._search.length, t.value.length), 0), t.selectionDirection = "backward");
284
268
  } else this.refreshOptionsFromValue();
285
269
  }
286
270
  }
287
271
  handleFocus() {
288
- if (!this.isDisabled) {
289
- if (this._skipInputTab = !1, this._suppressNextOpen) {
290
- this._suppressNextOpen = !1, this._inputFocus = !0, this.requestUpdate();
291
- return;
292
- }
293
- !this.multiple && this._value[0] && this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = D(this._value[0], this.options, this.displayValueAs)), this._inputFocus = !0, this._search = "", this.refreshOptionsFromValue(), this._isOptionsOpen = !0, this.onFocus(), this.requestUpdate();
294
- }
272
+ this.isDisabled || (this._skipInputTab = !1, this._suppressNextOpen ? (this._suppressNextOpen = !1, this._inputFocus = !0, this.requestUpdate()) : (!this.multiple && this._value[0] && this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = D(this._value[0], this.options, this.displayValueAs)), this._inputFocus = !0, this._search = "", this.refreshOptionsFromValue(), this._isOptionsOpen = !0, this.onFocus(), this.requestUpdate()));
295
273
  }
296
274
  handleCloseOptions() {
297
275
  this._isOptionsOpen = !1, this._hasTextInput && (this._suppressNextOpen = !0), this.focusTrigger();
@@ -307,7 +285,7 @@ var M = class extends j {
307
285
  if (!this.multiple) {
308
286
  if (!e) this._value[0] && this.removeSelected(this._value[0]);
309
287
  else {
310
- let t = h(this.options, e);
288
+ let t = g(this.options, e);
311
289
  t && t.value !== this._value[0] ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(t.value)) : !t && this.allowUserInput && (this._value[0] && this.removeSelected(this._value[0]), this.addNewUserValue(e));
312
290
  }
313
291
  } else if (e !== "") {
@@ -330,11 +308,7 @@ var M = class extends j {
330
308
  this._inputFocus = !1, this.onBlur();
331
309
  }
332
310
  handleInputClick(e) {
333
- if (this.isDisabled) {
334
- e.preventDefault(), e.stopImmediatePropagation();
335
- return;
336
- }
337
- this._hasTextInput ? (this.inputRef.value?.focus(), this.requestUpdate()) : (e.stopImmediatePropagation(), e.preventDefault(), this._isOptionsOpen = !this._isOptionsOpen, this._isOptionsOpen && this.listboxRef.value?.focusFirstOrSelectedOption());
311
+ this.isDisabled ? (e.preventDefault(), e.stopImmediatePropagation()) : this._hasTextInput ? (this.inputRef.value?.focus(), this.requestUpdate()) : (e.stopImmediatePropagation(), e.preventDefault(), this._isOptionsOpen = !this._isOptionsOpen, this._isOptionsOpen && this.listboxRef.value?.focusFirstOrSelectedOption());
338
312
  }
339
313
  handlePlaceholderClick(e) {
340
314
  this.isDisabled || (e.stopPropagation(), this._hasTextInput && this.inputRef.value ? (this.inputRef.value.focus(), this._inputFocus = !0, this.requestUpdate()) : (this._isOptionsOpen = !this._isOptionsOpen, this.requestUpdate()));
@@ -381,12 +355,9 @@ var M = class extends j {
381
355
  }
382
356
  }
383
357
  let t = w(e.key, e.shiftKey, this.multiple);
384
- if (t && !(e.key === "Tab" && !this._isOptionsOpen)) {
385
- if (t === "focusListbox" && e.key === "Tab" && !this.listboxRef.value?.querySelector("[role=\"option\"]:not([data-disabled]), [data-type=\"new-option\"]")) {
386
- this.closeAndProcessInput();
387
- return;
388
- }
389
- switch (e.preventDefault(), t) {
358
+ if (t && (e.key !== "Tab" || this._isOptionsOpen)) {
359
+ if (t === "focusListbox" && e.key === "Tab" && !this.listboxRef.value?.querySelector("[role=\"option\"]:not([data-disabled]), [data-type=\"new-option\"]")) this.closeAndProcessInput();
360
+ else switch (e.preventDefault(), t) {
390
361
  case "addValue":
391
362
  this.addValue();
392
363
  break;
@@ -442,11 +413,7 @@ var M = class extends j {
442
413
  }
443
414
  checkForMatches() {
444
415
  let e = E(this.inputRef.value?.value || this._search || "", this._value, this.options, this.allowUserInput, this.multiple);
445
- if (e.shouldRemoveValue && this.removeValue(this._value[0]), e.shouldResetInput) {
446
- this.resetComboboxInput(!1);
447
- return;
448
- }
449
- this._addValueText = e.addValueText, this._userInfoMessage = e.userInfoMessage;
416
+ e.shouldRemoveValue && this.removeValue(this._value[0]), e.shouldResetInput ? this.resetComboboxInput(!1) : (this._addValueText = e.addValueText, this._userInfoMessage = e.userInfoMessage);
450
417
  }
451
418
  }, P = class extends N {
452
419
  constructor(...e) {
@@ -541,8 +508,8 @@ var M = class extends j {
541
508
  .size=${this.inputSize}
542
509
  .label=${this.label}
543
510
  .helptext=${this.helptext}
544
- .helptextDropdown=${l(this.helptextDropdown)}
545
- .helptextDropdownButton=${l(this.helptextDropdownButton)}
511
+ .helptextDropdown=${u(this.helptextDropdown)}
512
+ .helptextDropdownButton=${u(this.helptextDropdownButton)}
546
513
  ?fullwidth=${this.fullwidth}
547
514
  ?counter=${this.effectiveCounter(!!this.multiple && this.maxlength != null)}
548
515
  .counterCurrent=${this._value.length}
@@ -572,20 +539,20 @@ var M = class extends j {
572
539
  "pkt-combobox__input--error": this.hasError,
573
540
  "pkt-combobox__input--disabled": this.isDisabled
574
541
  })}
575
- id=${l(this._hasTextInput ? void 0 : `${this.id}-combobox`)}
576
- role=${l(this._hasTextInput ? void 0 : "combobox")}
577
- aria-expanded=${l(this._hasTextInput ? void 0 : this._isOptionsOpen ? "true" : "false")}
578
- aria-controls=${l(this._hasTextInput ? void 0 : `${this.id}-listbox`)}
579
- aria-haspopup=${l(this._hasTextInput ? void 0 : "listbox")}
580
- aria-describedby=${l(this._hasTextInput ? void 0 : this._describedBy())}
581
- aria-labelledby=${l(this._hasTextInput ? void 0 : `${this.id}-combobox-label`)}
582
- aria-activedescendant=${l(!this._hasTextInput && this._isOptionsOpen && this._value[0] && h(this.options, this._value[0]) ? `${this.id}-listbox-${p(this._options, this._value[0])}` : void 0)}
583
- aria-description=${l(this._selectionDescription || void 0)}
542
+ id=${u(this._hasTextInput ? void 0 : `${this.id}-combobox`)}
543
+ role=${u(this._hasTextInput ? void 0 : "combobox")}
544
+ aria-expanded=${u(this._hasTextInput ? void 0 : this._isOptionsOpen ? "true" : "false")}
545
+ aria-controls=${u(this._hasTextInput ? void 0 : `${this.id}-listbox`)}
546
+ aria-haspopup=${u(this._hasTextInput ? void 0 : "listbox")}
547
+ aria-describedby=${u(this._hasTextInput ? void 0 : this._describedBy())}
548
+ aria-labelledby=${u(this._hasTextInput ? void 0 : `${this.id}-combobox-label`)}
549
+ aria-activedescendant=${u(!this._hasTextInput && this._isOptionsOpen && this._value[0] && g(this.options, this._value[0]) ? `${this.id}-listbox-${m(this._options, this._value[0])}` : void 0)}
550
+ aria-description=${u(this._selectionDescription || void 0)}
584
551
  tabindex=${this._hasTextInput || this.isDisabled ? "-1" : "0"}
585
552
  @click=${this.handleInputClick}
586
553
  @keydown=${this._hasTextInput ? n : this.handleSelectOnlyKeydown}
587
554
  @blur=${this.restoreInputTab}
588
- ${u(this.triggerRef)}
555
+ ${d(this.triggerRef)}
589
556
  >
590
557
  ${!this._hasTextInput && this.placeholder && (!this._value.length || this.multiple && this.tagPlacement == "outside") && !this._inputFocus ? e`<span class="pkt-combobox__placeholder" @click=${this.handlePlaceholderClick}
591
558
  >${this.placeholder}</span
@@ -612,7 +579,7 @@ var M = class extends j {
612
579
  ?is-multi-select=${this.multiple}
613
580
  ?allow-user-input=${this.allowUserInput && !this._maxIsReached}
614
581
  ?max-is-reached=${this._maxIsReached}
615
- .customUserInput=${l(this._addValueText)}
582
+ .customUserInput=${u(this._addValueText)}
616
583
  .userMessage=${this._userInfoMessage ? s(this.pktStrings.get("combobox")[this._userInfoMessage], { value: this._messageValue ?? "" }) : ""}
617
584
  @search=${this.handleSearch}
618
585
  @option-toggle=${this.handleOptionToggled}
@@ -621,7 +588,7 @@ var M = class extends j {
621
588
  @tab-close=${() => this.closeAndProcessInput()}
622
589
  .searchValue=${this._search || null}
623
590
  .maxLength=${this.maxlength || 0}
624
- ${u(this.listboxRef)}
591
+ ${d(this.listboxRef)}
625
592
  ></pkt-listbox>
626
593
  </div>
627
594
 
@@ -632,7 +599,7 @@ var M = class extends j {
632
599
  `;
633
600
  }
634
601
  _describedBy() {
635
- return S({
602
+ return l({
636
603
  id: this._hasTextInput ? `${this.id}-input` : `${this.id}-combobox`,
637
604
  hasHelptext: !!this.helptext || this.hasSlotContent("helptext"),
638
605
  ariaDescribedby: this.ariaDescribedby
@@ -645,25 +612,25 @@ var M = class extends j {
645
612
  type="text"
646
613
  id="${this.id}-input"
647
614
  name=${(this.name || this.id) + "-input"}
648
- placeholder=${l(!this._value.length || this.multiple && this.tagPlacement === "outside" ? this.placeholder : void 0)}
615
+ placeholder=${u(!this._value.length || this.multiple && this.tagPlacement === "outside" ? this.placeholder : void 0)}
649
616
  @input=${this.handleInput}
650
617
  @change=${(e) => {
651
618
  e.stopPropagation(), e.stopImmediatePropagation();
652
619
  }}
653
- tabindex=${l(this._skipInputTab ? "-1" : void 0)}
620
+ tabindex=${u(this._skipInputTab ? "-1" : void 0)}
654
621
  @keydown=${this.handleInputKeydown}
655
622
  @focus=${this.handleFocus}
656
623
  @blur=${this.handleBlur}
657
624
  autocomplete="off"
658
625
  role="combobox"
659
626
  aria-expanded=${this._isOptionsOpen ? "true" : "false"}
660
- aria-label=${l(this.label)}
661
- aria-describedby=${l(this._describedBy())}
627
+ aria-label=${u(this.label)}
628
+ aria-describedby=${u(this._describedBy())}
662
629
  aria-autocomplete=${this.typeahead ? "both" : this.allowUserInput ? "list" : "none"}
663
630
  aria-controls="${this.id}-listbox"
664
- aria-activedescendant=${l(this._isOptionsOpen && this._value[0] && h(this.options, this._value[0]) ? `${this.id}-listbox-${p(this._options, this._value[0])}` : void 0)}
665
- aria-description=${l(this._selectionDescription || void 0)}
666
- ${u(this.inputRef)}
631
+ aria-activedescendant=${u(this._isOptionsOpen && this._value[0] && g(this.options, this._value[0]) ? `${this.id}-listbox-${m(this._options, this._value[0])}` : void 0)}
632
+ aria-description=${u(this._selectionDescription || void 0)}
633
+ ${d(this.inputRef)}
667
634
  />
668
635
  </div>
669
636
  ` : e`
@@ -672,16 +639,16 @@ var M = class extends j {
672
639
  id="${this.id}-input"
673
640
  name=${(this.name || this.id) + "-input"}
674
641
  .value=${this._value.join(",")}
675
- ${u(this.inputRef)}
642
+ ${d(this.inputRef)}
676
643
  />
677
644
  `;
678
645
  }
679
646
  renderSingleOrMultipleValues() {
680
647
  if (!this.multiple && this._hasTextInput) return n;
681
- let t = !this.multiple, r = this.renderValueTag(h(this.options, this._value[0])), i = this.tagPlacement === "outside", a = e`
648
+ let t = !this.multiple, r = this.renderValueTag(g(this.options, this._value[0])), i = this.tagPlacement === "outside", a = e`
682
649
  <ul role="list" class="pkt-combobox__tag-list">
683
- ${f(this._value, (e) => e, (t, r) => {
684
- let a = h(this.options, t), o = a?.tagSkinColor;
650
+ ${p(this._value, (e) => e, (t, r) => {
651
+ let a = g(this.options, t), o = a?.tagSkinColor;
685
652
  return e`
686
653
  <li
687
654
  role="listitem"
@@ -19,6 +19,7 @@ export { PktHelptext } from './helptext';
19
19
  export { PktHeading } from './heading';
20
20
  export { PktIcon } from './icon';
21
21
  export { PktInputWrapper } from './input-wrapper';
22
+ export type { IPktInputWrapper } from './input-wrapper';
22
23
  export { PktLink } from './link';
23
24
  export { PktLinkCard } from './linkcard';
24
25
  export { PktLoader } from './loader';
@@ -1,3 +1,4 @@
1
1
  import { PktInputWrapper } from './input-wrapper';
2
2
  export { PktInputWrapper };
3
+ export type { IPktInputWrapper } from './input-wrapper';
3
4
  export default PktInputWrapper;
@@ -2,12 +2,18 @@ import { PktElementWithSlot } from '../../base-elements/element-with-slot';
2
2
  import { IPktStringsProps } from '../../shared-strings';
3
3
  import { PropertyValues } from 'lit';
4
4
  import { ElementProps } from '../../types/typeUtils';
5
- import { Booleanish, TLayout } from '../../shared-types';
5
+ import { Booleanish, IPktInputWrapperBase, TLayout, TPktCounterPosition, TPktInputSize } from '../../shared-types';
6
6
  import { FocusModalityController } from '../../controllers/focus-modality-controller';
7
- type TCounterPosition = 'top' | 'bottom';
8
- type TInputWrapperSize = 'small' | 'medium' | 'xsmall';
9
7
  type Props = ElementProps<PktInputWrapper, 'forId' | 'label' | 'helptext' | 'helptextDropdown' | 'helptextDropdownButton' | 'counter' | 'counterCurrent' | 'counterMaxLength' | 'optionalTag' | 'optionalText' | 'requiredTag' | 'requiredText' | 'tagText' | 'hasError' | 'errorMessage' | 'disabled' | 'inline' | 'ariaDescribedby' | 'hasFieldset' | 'layout' | 'useWrapper' | 'role'> & IPktStringsProps<'forms' | 'validation'>;
10
- export declare class PktInputWrapper extends PktElementWithSlot<Props> {
8
+ export interface IPktInputWrapper extends Omit<IPktInputWrapperBase, 'helptext' | 'helptextDropdown' | 'helptextDropdownButton' | 'role' | 'useWrapper'> {
9
+ helptext?: string | null;
10
+ helptextDropdown?: string | null;
11
+ /** @deprecated Bruk `strings={{ forms: { readMore: '…' } }}` eller `setPktStrings()`. */
12
+ helptextDropdownButton?: string | null;
13
+ role?: string | null;
14
+ useWrapper?: Booleanish;
15
+ }
16
+ export declare class PktInputWrapper extends PktElementWithSlot<Props> implements IPktInputWrapper {
11
17
  /**
12
18
  * Element attributes
13
19
  */
@@ -20,8 +26,9 @@ export declare class PktInputWrapper extends PktElementWithSlot<Props> {
20
26
  counter: boolean;
21
27
  counterCurrent: number;
22
28
  counterMaxLength: number;
29
+ /** @deprecated Ikke i bruk av Punkt-komponentene, og vises ikke for skjermlesere. */
23
30
  counterError: string | null;
24
- counterPosition: TCounterPosition;
31
+ counterPosition: TPktCounterPosition;
25
32
  optionalTag: boolean;
26
33
  /** @deprecated Bruk `strings={{ forms: { optional: '…' } }}` eller `setPktStrings()`. */
27
34
  optionalText?: string;
@@ -38,7 +45,7 @@ export declare class PktInputWrapper extends PktElementWithSlot<Props> {
38
45
  layout: TLayout;
39
46
  role: string | null;
40
47
  useWrapper: Booleanish;
41
- size: TInputWrapperSize;
48
+ size: TPktInputSize;
42
49
  protected updated(changedProperties: PropertyValues): void;
43
50
  focusModality: FocusModalityController;
44
51
  render(): import('lit-html').TemplateResult<1>;
@@ -1,4 +1,4 @@
1
- const e=require("./element-C6WTyJFE.cjs");require("./button-BFG-7bDB.cjs");var t={i18n:{nb:{contentPresentation:{title:`Oslo kommune bruker informasjonskapsler`,description:[`For at nettstedet skal fungere og være trygt, bruker Oslo kommune informasjonskapsler. Noen er teknisk nødvendige, mens andre sikrer ulik funksjonalitet.`,`Godtar du alle informasjonskapsler, tillater du også at vi samler inn data om statistikk og brukeradferd. Da hjelper du oss med å lage et bedre nettsted uten at du trenger å dele noe personlig informasjon med oss.`],buttons:{accept:`Godta alle`,reject:`Kun nødvendige`,settings:`Innstillinger for informasjonskapsler`}},contentSettings:{title:`Innstillinger for informasjonskapsler`,description:[`Her kan du velge hvilke typer informasjonskapsler du vil tillate. Tillatelsen gjelder i 90 dager. Husk at nødvendige informasjonskapsler ikke kan velges bort.`,`Du kan når som helst endre innstillingene og finne mer informasjon nederst på nettstedet under «Innstillinger for informasjonskapsler» og «Personvern og informasjonskapsler».`],buttons:{back:`Tilbake`,save:`Lagre innstillinger`}}},en:{contentPresentation:{title:`Before you visit Oslo kommune ...`,description:[`This website uses cookies to make improvements. In this context, we need your consent to measure the traffic on the website in relation to statistics and feedback.`,`To read more about what we use cookies for, go to our privacy declaration which you will find at the bottom of our websites.`],buttons:{accept:`Yes, I accept`,reject:`Only necessary`,settings:`Go to settings`}},contentSettings:{title:`Her kan du aktivt velge mellom ulike informasjonskapsler`,description:[`For å lese mer om hva vi bruker informasjonskapsler til gå til vår personvernserklering som du finner på våre nettsider`],buttons:{back:`Back`,save:`Save settings`}}}},cookies:[{name:`statistics`,defaultValue:null,i18n:{nb:{title:`Statistikk og analyse`,description:`Jeg godtar at Oslo kommune bruker informasjonskapsler til å innhente data om statistikk og brukeradferd.`,buttons:{yes:`Ja`,no:`Nei`}},en:{title:`Statistics and analytics`,description:`Select your preference for statistics and analytics`,buttons:{yes:`Yes`,no:`No`}}}},{name:`survey`,defaultValue:null,i18n:{nb:{title:`Skriftlige tilbakemeldinger`,description:`Jeg godtar at Oslo kommune bruker informasjonskapsler til å vise responsfelt og registrere tilbakemeldinger.`,buttons:{yes:`Ja`,no:`Nei`}},en:{title:`Survey`,description:`Select your preference for survey`,buttons:{yes:`Yes`,no:`No`}}}},{name:`functional`,defaultValue:!0,i18n:{nb:{title:`Funksjonelle informasjonskapsler`,description:`Jeg godtar at Oslo kommune bruker informasjonskapsler for å gjøre ulike funksjoner på nettstedet mulige (for eksempel skjemaer og barnehagevelger).`,buttons:{yes:`Ja`,no:`Nei`}},en:{title:`Functional cookies`,description:`For the website to function optimally, we recommend that you accept these cookies`,buttons:{yes:`Yes`,no:`No`}}}}]},n={devMode:!1,i18nLanguage:`nb`,triggerType:`button`},r=null;function i(){return r||(r=new Promise((e,t)=>{if(document.querySelector(`#oslo-consent-script`)){e();return}let n=document.createElement(`script`);n.src=`https://cdn.web.oslo.kommune.no/cb/cb-v1.1.0.js`,n.id=`oslo-consent-script`,n.onload=()=>e(),n.onerror=t,document.head.appendChild(n);let r=document.createElement(`link`);r.href=`https://cdn.web.oslo.kommune.no/cb/cb-v1.1.0.css`,r.type=`text/css`,r.rel=`stylesheet`,r.id=`oslo-consent-styles`,document.head.appendChild(r)}),r)}var a=e=>{if(typeof e!=`string`)return e;try{return JSON.parse(e)}catch{return e}},o=e=>a(e.value).items.reduce((e,t)=>(e[t.name]=t.consent,e),{}),s=class extends e.t{constructor(...e){super(...e),this.devMode=n.devMode,this.hotjarId=null,this.googleAnalyticsId=null,this.cookieDomain=null,this.cookieSecure=null,this.cookieExpiryDays=null,this.triggerType=n.triggerType,this.triggerText=null,this.i18nLanguage=n.i18nLanguage}connectedCallback(){super.connectedCallback();let e=Object.prototype.hasOwnProperty.call(t.i18n,this.i18nLanguage)?this.i18nLanguage:`nb`;this.triggerText=this.triggerText||t.i18n[e].contentPresentation.buttons.settings}disconnectedCallback(){super.disconnectedCallback(),this._cookieEventHandler&&window.__cookieEvents?.off(`CookieManager.setCookie`,this._cookieEventHandler)}returnJsonOrObject(e){return a(e)}emitCookieConsents(e){this.dispatchEvent(new CustomEvent(`toggle-consent`,{detail:o(e),bubbles:!0,cancelable:!1}))}async firstUpdated(e){window.cookieBanner_googleAnalyticsId=this.googleAnalyticsId,window.cookieBanner_hotjarId=this.hotjarId,this.cookieDomain&&(window.cookieBanner_cookieDomain=this.cookieDomain),this.cookieSecure&&(window.cookieBanner_cookieSecure=this.cookieSecure),this.cookieExpiryDays&&(window.cookieBanner_cookieExpiryDays=this.cookieExpiryDays),this.devMode&&(window.cookieBanner_devMode=this.devMode),await i(),this.triggerInit()}triggerInit(){window.document.dispatchEvent(new Event(`CookieBannerReady`,{bubbles:!0,cancelable:!0}));let e=window.cookieBanner,t=window.__cookieEvents;!e||!t||e.cookieConsent.validateConsentCookie().then(n=>{if(!n)return;let r=e.cookieConsent.getConsentCookie();window.setTimeout(()=>this.emitCookieConsents({value:r}),0),this._cookieEventHandler&&t.off(`CookieManager.setCookie`,this._cookieEventHandler),this._cookieEventHandler=e=>this.emitCookieConsents(e),t.on(`CookieManager.setCookie`,this._cookieEventHandler)})}openModal(e){e.preventDefault(),window.cookieBanner?.cookieConsent||this.triggerInit(),setTimeout(()=>window.cookieBanner?.openCookieModal())}render(){return this.triggerType===`link`?e._`<a href="#" class="pkt-link" aria-haspopup="dialog" @click=${this.openModal}
1
+ const e=require("./element-C6WTyJFE.cjs");require("./button-Ca_V13cQ.cjs");var t={i18n:{nb:{contentPresentation:{title:`Oslo kommune bruker informasjonskapsler`,description:[`For at nettstedet skal fungere og være trygt, bruker Oslo kommune informasjonskapsler. Noen er teknisk nødvendige, mens andre sikrer ulik funksjonalitet.`,`Godtar du alle informasjonskapsler, tillater du også at vi samler inn data om statistikk og brukeradferd. Da hjelper du oss med å lage et bedre nettsted uten at du trenger å dele noe personlig informasjon med oss.`],buttons:{accept:`Godta alle`,reject:`Kun nødvendige`,settings:`Innstillinger for informasjonskapsler`}},contentSettings:{title:`Innstillinger for informasjonskapsler`,description:[`Her kan du velge hvilke typer informasjonskapsler du vil tillate. Tillatelsen gjelder i 90 dager. Husk at nødvendige informasjonskapsler ikke kan velges bort.`,`Du kan når som helst endre innstillingene og finne mer informasjon nederst på nettstedet under «Innstillinger for informasjonskapsler» og «Personvern og informasjonskapsler».`],buttons:{back:`Tilbake`,save:`Lagre innstillinger`}}},en:{contentPresentation:{title:`Before you visit Oslo kommune ...`,description:[`This website uses cookies to make improvements. In this context, we need your consent to measure the traffic on the website in relation to statistics and feedback.`,`To read more about what we use cookies for, go to our privacy declaration which you will find at the bottom of our websites.`],buttons:{accept:`Yes, I accept`,reject:`Only necessary`,settings:`Go to settings`}},contentSettings:{title:`Her kan du aktivt velge mellom ulike informasjonskapsler`,description:[`For å lese mer om hva vi bruker informasjonskapsler til gå til vår personvernserklering som du finner på våre nettsider`],buttons:{back:`Back`,save:`Save settings`}}}},cookies:[{name:`statistics`,defaultValue:null,i18n:{nb:{title:`Statistikk og analyse`,description:`Jeg godtar at Oslo kommune bruker informasjonskapsler til å innhente data om statistikk og brukeradferd.`,buttons:{yes:`Ja`,no:`Nei`}},en:{title:`Statistics and analytics`,description:`Select your preference for statistics and analytics`,buttons:{yes:`Yes`,no:`No`}}}},{name:`survey`,defaultValue:null,i18n:{nb:{title:`Skriftlige tilbakemeldinger`,description:`Jeg godtar at Oslo kommune bruker informasjonskapsler til å vise responsfelt og registrere tilbakemeldinger.`,buttons:{yes:`Ja`,no:`Nei`}},en:{title:`Survey`,description:`Select your preference for survey`,buttons:{yes:`Yes`,no:`No`}}}},{name:`functional`,defaultValue:!0,i18n:{nb:{title:`Funksjonelle informasjonskapsler`,description:`Jeg godtar at Oslo kommune bruker informasjonskapsler for å gjøre ulike funksjoner på nettstedet mulige (for eksempel skjemaer og barnehagevelger).`,buttons:{yes:`Ja`,no:`Nei`}},en:{title:`Functional cookies`,description:`For the website to function optimally, we recommend that you accept these cookies`,buttons:{yes:`Yes`,no:`No`}}}}]},n={devMode:!1,i18nLanguage:`nb`,triggerType:`button`},r=null;function i(){return r||(r=new Promise((e,t)=>{if(document.querySelector(`#oslo-consent-script`)){e();return}let n=document.createElement(`script`);n.src=`https://cdn.web.oslo.kommune.no/cb/cb-v1.1.0.js`,n.id=`oslo-consent-script`,n.onload=()=>e(),n.onerror=t,document.head.appendChild(n);let r=document.createElement(`link`);r.href=`https://cdn.web.oslo.kommune.no/cb/cb-v1.1.0.css`,r.type=`text/css`,r.rel=`stylesheet`,r.id=`oslo-consent-styles`,document.head.appendChild(r)}),r)}var a=e=>{if(typeof e!=`string`)return e;try{return JSON.parse(e)}catch{return e}},o=e=>a(e.value).items.reduce((e,t)=>(e[t.name]=t.consent,e),{}),s=class extends e.t{constructor(...e){super(...e),this.devMode=n.devMode,this.hotjarId=null,this.googleAnalyticsId=null,this.cookieDomain=null,this.cookieSecure=null,this.cookieExpiryDays=null,this.triggerType=n.triggerType,this.triggerText=null,this.i18nLanguage=n.i18nLanguage}connectedCallback(){super.connectedCallback();let e=Object.prototype.hasOwnProperty.call(t.i18n,this.i18nLanguage)?this.i18nLanguage:`nb`;this.triggerText=this.triggerText||t.i18n[e].contentPresentation.buttons.settings}disconnectedCallback(){super.disconnectedCallback(),this._cookieEventHandler&&window.__cookieEvents?.off(`CookieManager.setCookie`,this._cookieEventHandler)}returnJsonOrObject(e){return a(e)}emitCookieConsents(e){this.dispatchEvent(new CustomEvent(`toggle-consent`,{detail:o(e),bubbles:!0,cancelable:!1}))}async firstUpdated(e){window.cookieBanner_googleAnalyticsId=this.googleAnalyticsId,window.cookieBanner_hotjarId=this.hotjarId,this.cookieDomain&&(window.cookieBanner_cookieDomain=this.cookieDomain),this.cookieSecure&&(window.cookieBanner_cookieSecure=this.cookieSecure),this.cookieExpiryDays&&(window.cookieBanner_cookieExpiryDays=this.cookieExpiryDays),this.devMode&&(window.cookieBanner_devMode=this.devMode),await i(),this.triggerInit()}triggerInit(){window.document.dispatchEvent(new Event(`CookieBannerReady`,{bubbles:!0,cancelable:!0}));let e=window.cookieBanner,t=window.__cookieEvents;e&&t&&e.cookieConsent.validateConsentCookie().then(n=>{if(!n)return;let r=e.cookieConsent.getConsentCookie();window.setTimeout(()=>this.emitCookieConsents({value:r}),0),this._cookieEventHandler&&t.off(`CookieManager.setCookie`,this._cookieEventHandler),this._cookieEventHandler=e=>this.emitCookieConsents(e),t.on(`CookieManager.setCookie`,this._cookieEventHandler)})}openModal(e){e.preventDefault(),window.cookieBanner?.cookieConsent||this.triggerInit(),setTimeout(()=>window.cookieBanner?.openCookieModal())}render(){return this.triggerType===`link`?e._`<a href="#" class="pkt-link" aria-haspopup="dialog" @click=${this.openModal}
2
2
  >${this.triggerText}</a
3
3
  >`:this.triggerType===`footerlink`?e._`<a
4
4
  href="#"
@@ -1,5 +1,5 @@
1
- import { _ as e, d as t, n, t as r, u as i } from "./element-DBugHPKM.js";
2
- import "./button-DhCqyX4D.js";
1
+ import { _ as e, d as t, n, t as r, u as i } from "./element-ckeMVgMz.js";
2
+ import "./button-ChdHZYBF.js";
3
3
  //#region ../../shared-strings/consent.ts
4
4
  var a = {
5
5
  i18n: {
@@ -165,7 +165,7 @@ var l = (e) => {
165
165
  cancelable: !0
166
166
  }));
167
167
  let e = window.cookieBanner, t = window.__cookieEvents;
168
- !e || !t || e.cookieConsent.validateConsentCookie().then((n) => {
168
+ e && t && e.cookieConsent.validateConsentCookie().then((n) => {
169
169
  if (!n) return;
170
170
  let r = e.cookieConsent.getConsentCookie();
171
171
  window.setTimeout(() => this.emitCookieConsents({ value: r }), 0), this._cookieEventHandler && t.off("CookieManager.setCookie", this._cookieEventHandler), this._cookieEventHandler = (e) => this.emitCookieConsents(e), t.on("CookieManager.setCookie", this._cookieEventHandler);
@@ -0,0 +1 @@
1
+ var e=6048e5,t=Symbol.for(`constructDateFrom`);function n(e,n){return typeof e==`function`?e(n):e&&typeof e==`object`&&t in e?e[t](n):e instanceof Date?new e.constructor(n):new Date(n)}function r(e,t){return n(t||e,e)}var i={};function a(){return i}function o(e,t){let n=a(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=r(e,t?.in),s=o.getDay(),c=(s<i?7:0)+s-i;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}function s(e,t){return o(e,{...t,weekStartsOn:1})}function c(e,t){let i=r(e,t?.in),a=i.getFullYear(),o=n(i,0);o.setFullYear(a+1,0,4),o.setHours(0,0,0,0);let c=s(o),l=n(i,0);l.setFullYear(a,0,4),l.setHours(0,0,0,0);let u=s(l);return i.getTime()>=c.getTime()?a+1:i.getTime()>=u.getTime()?a:a-1}function l(e){let t=r(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-n}function u(e,...t){let r=n.bind(null,e||t.find(e=>typeof e==`object`));return t.map(r)}function d(e,t){let n=r(e,t?.in);return n.setHours(0,0,0,0),n}function f(e,t,n){let[r,i]=u(n?.in,e,t),a=d(r),o=d(i),s=+a-l(a),c=+o-l(o);return Math.round((s-c)/864e5)}function p(e,t){let r=c(e,t),i=n(t?.in||e,0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),s(i)}function m(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function h(e){return!(!m(e)&&typeof e!=`number`||isNaN(+r(e)))}function g(e,t){let n=r(e,t?.in);return n.setHours(23,59,59,999),n}function _(e,t){let n=r(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}var v={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},y=(e,t,n)=>{let r,i=v[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function b(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var x={date:b({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:b({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:b({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},S={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ee=(e,t,n,r)=>S[e];function C(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var te={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:C({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:C({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:C({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:C({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:C({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function w(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?re(s,e=>e.test(o)):ne(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function ne(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function re(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ie(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var ae={code:`en-US`,formatDistance:y,formatLong:x,formatRelative:ee,localize:te,match:{ordinalNumber:ie({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:w({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:w({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:w({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:w({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:w({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function oe(e,t){let n=r(e,t?.in);return f(n,_(n))+1}function se(t,n){let i=r(t,n?.in),a=+s(i)-p(i);return Math.round(a/e)+1}function T(e,t){let i=r(e,t?.in),s=i.getFullYear(),c=a(),l=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,u=n(t?.in||e,0);u.setFullYear(s+1,0,l),u.setHours(0,0,0,0);let d=o(u,t),f=n(t?.in||e,0);f.setFullYear(s,0,l),f.setHours(0,0,0,0);let p=o(f,t);return+i>=+d?s+1:+i>=+p?s:s-1}function ce(e,t){let r=a(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=T(e,t),c=n(t?.in||e,0);return c.setFullYear(s,0,i),c.setHours(0,0,0,0),o(c,t)}function E(t,n){let i=r(t,n?.in),a=+o(i,n)-ce(i,n);return Math.round(a/e)+1}function D(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var O={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return D(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):D(n+1,2)},d(e,t){return D(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return D(e.getHours()%12||12,t.length)},H(e,t){return D(e.getHours(),t.length)},m(e,t){return D(e.getMinutes(),t.length)},s(e,t){return D(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return D(Math.trunc(r*10**(n-3)),t.length)}},k={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},A={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return O.y(e,t)},Y:function(e,t,n,r){let i=T(e,r),a=i>0?i:1-i;return t===`YY`?D(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):D(a,t.length)},R:function(e,t){return D(c(e),t.length)},u:function(e,t){return D(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return D(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return D(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return O.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return D(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=E(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):D(i,t.length)},I:function(e,t,n){let r=se(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):D(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):O.d(e,t)},D:function(e,t,n){let r=oe(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):D(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return D(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return D(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return D(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?k.noon:r===0?k.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?k.evening:r>=12?k.afternoon:r>=4?k.morning:k.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return O.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):O.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):D(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):D(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):O.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):O.s(e,t)},S:function(e,t){return O.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return M(r);case`XXXX`:case`XX`:return N(r);default:return N(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return M(r);case`xxxx`:case`xx`:return N(r);default:return N(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+j(r,`:`);default:return`GMT`+N(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+j(r,`:`);default:return`GMT`+N(r,`:`)}},t:function(e,t,n){return D(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return D(+e,t.length)}};function j(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+D(a,2)}function M(e,t){return e%60==0?(e>0?`-`:`+`)+D(Math.abs(e)/60,2):N(e,t)}function N(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=D(Math.trunc(r/60),2),a=D(r%60,2);return n+i+t+a}var P=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},F=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},le={p:F,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return P(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`})}return a.replace(`{{date}}`,P(r,t)).replace(`{{time}}`,F(i,t))}},ue=/^D+$/,de=/^Y+$/,fe=[`D`,`DD`,`YY`,`YYYY`];function pe(e){return ue.test(e)}function me(e){return de.test(e)}function he(e,t,n){let r=ge(e,t,n);if(console.warn(r),fe.includes(e))throw RangeError(r)}function ge(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var _e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ve=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ye=/^'([^]*?)'?$/,be=/''/g,xe=/[a-zA-Z]/;function Se(e,t,n){let i=a(),o=n?.locale??i.locale??ae,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,c=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=r(e,n?.in);if(!h(l))throw RangeError(`Invalid time value`);let u=t.match(ve).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=le[t];return n(e,o.formatLong)}return e}).join(``).match(_e).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:Ce(e)};if(A[t])return{isToken:!0,value:e};if(t.match(xe))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});o.localize.preprocessor&&(u=o.localize.preprocessor(l,u));let d={firstWeekContainsDate:s,weekStartsOn:c,locale:o};return u.map(r=>{if(!r.isToken)return r.value;let i=r.value;(!n?.useAdditionalWeekYearTokens&&me(i)||!n?.useAdditionalDayOfYearTokens&&pe(i))&&he(i,t,String(e));let a=A[i[0]];return a(l,i,o.localize,d)}).join(``)}function Ce(e){let t=e.match(ye);return t?t[1].replace(be,`'`):e}function we(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var Te={},I={};function L(e,t){try{let n=(Te[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in I?I[n]:R(n,n.split(`:`))}catch{if(e in I)return I[e];let t=e?.match(Ee);return t?R(e,t.slice(1)):NaN}}var Ee=/([+-]\d\d):?(\d\d)?/;function R(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return I[e]=n*60+r>0?n*60+r+i:n*60-r-i}var z=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(L(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),H(this,e)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-L(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),V(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},B=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!B.test(e))return;let t=e.replace(B,`$1UTC`);z.prototype[t]&&(e.startsWith(`get`)?z.prototype[e]=function(){return this.internal[t]()}:(z.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),De(this),+this},z.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),V(this),+this}))});function V(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-L(e.timeZone,e)*60))}function De(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),H(e)}function H(e,t){let n=Array.isArray(t)?Oe(t):+e.internal,r=L(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=L(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s)}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(L(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=L(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,_=h!==i,v=g-u,y=h-i,b=n-h*60*1e3,x=y>0&&U(e)-n===y*60*1e3&&U(e,b)!==n;if(_&&v&&!x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);let t=L(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&v<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}V(e);let S=(t?n:n+p*1e3)-+e.internal;S&&Math.abs(S)<18e5&&(Date.prototype.setTime.call(e,+e+S),V(e))}function Oe(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function U(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-L(e.timeZone,n)*60)),+n}var W=class e extends z{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${we(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};typeof window<`u`&&(window.pktTz=window.pktTz===void 0?`Europe/Oslo`:window.pktTz);var G=()=>typeof window<`u`&&window.pktTz||`Europe/Oslo`,ke=(e=G())=>{let t=new W(new Date().toISOString(),e);return t.setHours(0,0,0,0),isNaN(t.getTime())?new Date:new Date(t.getFullYear(),t.getMonth(),t.getDate())};function K(e){if(!e||e===``)return new Date;if(/^\d{4}-\d{2}-\d{2}$/.test(e)){let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r)}if(/^\d{4}-\d{2}$/.test(e)){let[t,n]=e.split(`-`).map(Number);return new Date(t,n-1,1)}return/^\d{4}$/.test(e)?new Date(Number(e),0,1):new Date(e)}var q=e=>!e||isNaN(e.getTime())?``:`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`,J=e=>{if(!e)return null;let t=K(e);return isNaN(t.getTime())?null:t},Ae=(e,t)=>{let n=Y(e);return isNaN(n.getTime())?``:Se(n,t)},Y=(e=``,t)=>{let n=typeof e==`string`?K(e):e;return!n||isNaN(n.getTime())?new Date:t?t===`end`?g(n):d(n):n},je=(e,t,n=1)=>{if(typeof e!=`number`||typeof t!=`number`||typeof n!=`number`||isNaN(e)||isNaN(t)||isNaN(n))return new Date;let r=new Date(e,t,n);return isNaN(r.getTime())?new Date:r},Me=e=>{let t;return t=new W(e,G()),t.setHours(12,0,0,0),t},X=null,Z=void 0,Ne=e=>{if(!e||isNaN(e.getTime()))return``;let t=G();return(!X||Z!==t)&&(X=new Intl.DateTimeFormat(`no`,{dateStyle:`full`,timeZone:t}),Z=t),X.format(e)},Pe=(e,t,n)=>{if(!e||isNaN(e.getTime()))return!1;let r=t?Y(t):null,i=n?Y(n):null;return!(r&&e<r||i&&e>i)},Fe=(e,t)=>{if(!e||isNaN(e.getTime())||!Array.isArray(t))return!1;let n=q(e);return t.includes(n)},Ie=(e,t)=>{if(!e||isNaN(e.getTime())||!Array.isArray(t))return!1;let n=e.getDay().toString();return t.includes(n)},Q=(e,t,n,r,i)=>!(!e||isNaN(e.getTime())||!Pe(e,t,n)||r&&Fe(e,r)||i&&Ie(e,i)),Le=(e,t,n,r,i)=>e.filter(e=>{let a=J(e);return a&&Q(a,t,n,r,i)}),Re=e=>e.slice().sort((e,t)=>{let n=J(e),r=J(t);return!n||!r?0:n.getTime()-r.getTime()}),ze=(e,t)=>{let n=J(e),r=J(t);return!n||!r?!1:n<=r},$=e=>{if(!e)return[];if(Array.isArray(e))return e.filter(Boolean);if(typeof e==`string`&&e.trimStart().startsWith(`[`))try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(Boolean)}catch{}return String(e).split(`,`).map(e=>e.trim()).filter(Boolean)},Be=e=>e.join(`,`),Ve={csvToArray:e=>$(e),stringToDate:e=>e?K(e):null,stringsToDate:e=>{if(typeof e==`string`)return e.split(`,`).map(e=>K(e));if(Array.isArray(e))return e.map(e=>K(e))}};Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return r}});