@oslokommune/punkt-elements 15.3.1 → 15.4.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 (138) hide show
  1. package/dist/{accordionitem-BbeS44TD.js → accordionitem-CHXGzgLv.js} +4 -4
  2. package/dist/accordionitem-To95GT6b.cjs +34 -0
  3. package/dist/{alert-B9flMht5.cjs → alert-BDXWFRcf.cjs} +5 -5
  4. package/dist/{alert-BpFxQviu.js → alert-BHSd2Vpj.js} +6 -6
  5. package/dist/{backlink-DfMabyBp.js → backlink-C68H4Z3b.js} +5 -5
  6. package/dist/{backlink-Bn16ZEIX.cjs → backlink-CQoNgoa-.cjs} +1 -1
  7. package/dist/{button-CKgpX5QA.js → button-CHUuxLQV.js} +10 -10
  8. package/dist/{button-BgCKV0zW.cjs → button-VWxZW89G.cjs} +7 -7
  9. package/dist/{calendar-BMarIeVp.js → calendar-DTnx3DDH.js} +22 -22
  10. package/dist/{calendar-C6xgAJ7Z.cjs → calendar-DjbO2g5L.cjs} +11 -11
  11. package/dist/{card-DI3KodEc.cjs → card-5S2r9UD1.cjs} +27 -27
  12. package/dist/{card-h8ekgJRr.js → card-CnPjrdre.js} +7 -7
  13. package/dist/{checkbox-BJ9pz3kV.js → checkbox-BSz71IeT.js} +4 -4
  14. package/dist/{checkbox-B2t7wfxe.cjs → checkbox-D98_NjcU.cjs} +9 -9
  15. package/dist/{class-map-Dt2jXOlF.js → class-map-3ADKve8g.js} +3 -3
  16. package/dist/class-map-Bokp1SoS.cjs +5 -0
  17. package/dist/{combobox-BjAvk8Y-.js → combobox-CXBYVeh-.js} +11 -11
  18. package/dist/{combobox-HNN7GTzh.cjs → combobox-CZsCRADa.cjs} +12 -12
  19. package/dist/{consent-C37tuFwZ.cjs → consent-BQLkfN3d.cjs} +3 -3
  20. package/dist/{consent-DAk2BJ7I.js → consent-knPF4PS_.js} +3 -3
  21. package/dist/{datepicker-DvcH2QD9.js → datepicker-BOW852c2.js} +13 -13
  22. package/dist/{datepicker-2bneToiA.cjs → datepicker-BqGkvUmw.cjs} +21 -21
  23. package/dist/directive-helpers-B3Vpl3xV.cjs +5 -0
  24. package/dist/directive-helpers-CyPtA1_i.js +38 -0
  25. package/dist/element-CMTfByxQ.cjs +27 -0
  26. package/dist/{element-BXsf_NlG.js → element-CV9utnHJ.js} +114 -114
  27. package/dist/{heading-CBepYb7H.cjs → heading-B0XRE0lq.cjs} +1 -1
  28. package/dist/{heading-J7dN9nRi.js → heading-D9R5UBcv.js} +1 -1
  29. package/dist/{helptext-BG1P_9j0.cjs → helptext-BjW1WdOn.cjs} +3 -3
  30. package/dist/{helptext-Cm6FLBVf.js → helptext-TFpeGJ1P.js} +5 -5
  31. package/dist/{icon-DBZvMard.js → icon-D0IQAVwS.js} +3 -3
  32. package/dist/{icon-n4-ve48P.cjs → icon-Dj0oZZSa.cjs} +3 -3
  33. package/dist/if-defined-hKKmbsI8.cjs +5 -0
  34. package/dist/{if-defined-CxHgig4I.js → if-defined-rXcLNTzN.js} +1 -1
  35. package/dist/{input-element-CbjYtVou.js → input-element-Bkv6Yxld.js} +1 -1
  36. package/dist/{input-element-BBv4xjPb.cjs → input-element-DM0tY799.cjs} +1 -1
  37. package/dist/{input-wrapper-Bwmva-69.js → input-wrapper-CaUY90qz.js} +12 -12
  38. package/dist/{input-wrapper-CJqmwe3I.cjs → input-wrapper-JU4D2TGu.cjs} +19 -19
  39. package/dist/{link-BKnT-97D.js → link-Bscfb6s9.js} +4 -4
  40. package/dist/{link-DRPFqqEn.cjs → link-CDuv1jxx.cjs} +3 -3
  41. package/dist/{linkcard-02fxYQ2g.cjs → linkcard-3WUL0CpY.cjs} +3 -3
  42. package/dist/{linkcard-C2UENcqo.js → linkcard-wNgRxJ-S.js} +4 -4
  43. package/dist/{listbox-CLtowV6W.js → listbox-CI7Wfn_e.js} +8 -8
  44. package/dist/{listbox-C_0RhGhk.cjs → listbox-TRqKskJT.cjs} +12 -12
  45. package/dist/{loader-BW-AWQiE.js → loader-BF9K1VCZ.js} +5 -5
  46. package/dist/{loader-Cj4kUNRE.cjs → loader-C1LI8Q4z.cjs} +4 -4
  47. package/dist/{messagebox-CK0sSRep.cjs → messagebox-Dmot5szX.cjs} +4 -4
  48. package/dist/{messagebox-DB8tEXrV.js → messagebox-LBEzcr6B.js} +12 -12
  49. package/dist/{modal-ClYfWW2a.js → modal-CGHWsjk8.js} +5 -5
  50. package/dist/{modal-BzVQSQy2.cjs → modal-S9MOKOaz.cjs} +6 -6
  51. package/dist/pkt-accordion.cjs +1 -1
  52. package/dist/pkt-accordion.js +2 -2
  53. package/dist/pkt-alert.cjs +1 -1
  54. package/dist/pkt-alert.js +1 -1
  55. package/dist/pkt-backlink.cjs +1 -1
  56. package/dist/pkt-backlink.js +1 -1
  57. package/dist/pkt-button.cjs +1 -1
  58. package/dist/pkt-button.js +1 -1
  59. package/dist/pkt-calendar.cjs +1 -1
  60. package/dist/pkt-calendar.js +1 -1
  61. package/dist/pkt-card.cjs +1 -1
  62. package/dist/pkt-card.js +1 -1
  63. package/dist/pkt-checkbox.cjs +1 -1
  64. package/dist/pkt-checkbox.js +1 -1
  65. package/dist/pkt-combobox.cjs +1 -1
  66. package/dist/pkt-combobox.js +1 -1
  67. package/dist/pkt-consent.cjs +1 -1
  68. package/dist/pkt-consent.js +1 -1
  69. package/dist/pkt-datepicker.cjs +1 -1
  70. package/dist/pkt-datepicker.js +2 -2
  71. package/dist/pkt-header.cjs +52 -52
  72. package/dist/pkt-header.js +9 -9
  73. package/dist/pkt-heading.cjs +1 -1
  74. package/dist/pkt-heading.js +1 -1
  75. package/dist/pkt-helptext.cjs +1 -1
  76. package/dist/pkt-helptext.js +1 -1
  77. package/dist/pkt-icon.cjs +1 -1
  78. package/dist/pkt-icon.js +1 -1
  79. package/dist/pkt-index.cjs +1 -1
  80. package/dist/pkt-index.js +26 -26
  81. package/dist/pkt-input-wrapper.cjs +1 -1
  82. package/dist/pkt-input-wrapper.js +1 -1
  83. package/dist/pkt-link.cjs +1 -1
  84. package/dist/pkt-link.js +1 -1
  85. package/dist/pkt-linkcard.cjs +1 -1
  86. package/dist/pkt-linkcard.js +1 -1
  87. package/dist/pkt-listbox.cjs +1 -1
  88. package/dist/pkt-listbox.js +1 -1
  89. package/dist/pkt-loader.cjs +1 -1
  90. package/dist/pkt-loader.js +1 -1
  91. package/dist/pkt-messagebox.cjs +1 -1
  92. package/dist/pkt-messagebox.js +1 -1
  93. package/dist/pkt-modal.cjs +1 -1
  94. package/dist/pkt-modal.js +1 -1
  95. package/dist/pkt-progressbar.cjs +1 -1
  96. package/dist/pkt-progressbar.js +2 -2
  97. package/dist/pkt-radiobutton.cjs +1 -1
  98. package/dist/pkt-radiobutton.js +1 -1
  99. package/dist/pkt-select.cjs +1 -1
  100. package/dist/pkt-select.js +1 -1
  101. package/dist/pkt-tabs.cjs +1 -1
  102. package/dist/pkt-tabs.js +2 -2
  103. package/dist/pkt-tag.cjs +1 -1
  104. package/dist/pkt-tag.js +1 -1
  105. package/dist/pkt-textarea.cjs +1 -1
  106. package/dist/pkt-textarea.js +1 -1
  107. package/dist/pkt-textinput.cjs +1 -1
  108. package/dist/pkt-textinput.js +1 -1
  109. package/dist/{progressbar-ClZOyCz9.cjs → progressbar-Bxh335uT.cjs} +5 -5
  110. package/dist/{progressbar-CJa70NEo.js → progressbar-GSA4Md1u.js} +7 -7
  111. package/dist/{radiobutton-DWoYQn8H.cjs → radiobutton-95wp024h.cjs} +7 -7
  112. package/dist/{radiobutton-CvKKNFMd.js → radiobutton-CTFAV5GU.js} +9 -9
  113. package/dist/{ref-C5iJMIE1.cjs → ref-CxLwrCxt.cjs} +3 -3
  114. package/dist/{ref-BxiKhrfa.js → ref-Dma3n3i8.js} +5 -5
  115. package/dist/repeat-C-FJ2vfy.cjs +5 -0
  116. package/dist/repeat-DnlRNf63.js +61 -0
  117. package/dist/{select-BQUp88lY.cjs → select-CZ_Lx5W6.cjs} +2 -2
  118. package/dist/{select-CFkxir_l.js → select-YLvYAQX6.js} +6 -6
  119. package/dist/{state-GDzxl12x.cjs → state-BNgpvY-A.cjs} +1 -1
  120. package/dist/{state-DgnkjP0q.js → state-l4hGZdFJ.js} +1 -1
  121. package/dist/tabitem-BKv4eN0a.cjs +65 -0
  122. package/dist/{tabitem-C8-tZyc_.js → tabitem-DQRzgAT4.js} +10 -10
  123. package/dist/{tag-DIJMJhyp.js → tag-68q0_Sn0.js} +6 -6
  124. package/dist/{tag-h0vD2Na0.cjs → tag-BnT5onW2.cjs} +4 -4
  125. package/dist/{textarea-DcCOfNlr.cjs → textarea-CuTsE1WX.cjs} +3 -3
  126. package/dist/{textarea-CMuiBUee.js → textarea-DhWH99qN.js} +16 -16
  127. package/dist/{textinput-D30TCADP.js → textinput-BCi9p0Du.js} +8 -8
  128. package/dist/{textinput-DR3aaHTH.cjs → textinput-st4Vml5J.cjs} +11 -11
  129. package/package.json +3 -3
  130. package/dist/accordionitem-DUWhTUEI.cjs +0 -34
  131. package/dist/class-map-CApIYSRo.cjs +0 -5
  132. package/dist/directive-helpers-CQef4qUQ.js +0 -38
  133. package/dist/directive-helpers-CYIEJ8pI.cjs +0 -5
  134. package/dist/element-aUzIoa1s.cjs +0 -27
  135. package/dist/if-defined-BElHLTlB.cjs +0 -5
  136. package/dist/repeat-B55jMEsG.js +0 -61
  137. package/dist/repeat-DcYSFU2y.cjs +0 -5
  138. package/dist/tabitem-DaYfUaxw.cjs +0 -65
@@ -1,8 +1,8 @@
1
- import { i as k, x as f, n as r, t as u, P as _ } from "./element-BXsf_NlG.js";
2
- import { e as y } from "./class-map-Dt2jXOlF.js";
1
+ import { i as k, b as f, n as r, t as u, P as _ } from "./element-CV9utnHJ.js";
2
+ import { e as y } from "./class-map-3ADKve8g.js";
3
3
  import { P as v } from "./pkt-slot-controller-D7CrjM52.js";
4
- import { e as m, n as h } from "./ref-BxiKhrfa.js";
5
- import { o as $ } from "./if-defined-CxHgig4I.js";
4
+ import { e as m, n as h } from "./ref-Dma3n3i8.js";
5
+ import { o as $ } from "./if-defined-rXcLNTzN.js";
6
6
  var b = Object.defineProperty, P = Object.getOwnPropertyDescriptor, d = (t, e, a, o) => {
7
7
  for (var i = o > 1 ? void 0 : o ? P(e, a) : e, n = t.length - 1, c; n >= 0; n--)
8
8
  (c = t[n]) && (i = (o ? c(e, a, i) : c(i)) || i);
@@ -0,0 +1,34 @@
1
+ "use strict";const i=require("./element-CMTfByxQ.cjs"),u=require("./class-map-Bokp1SoS.cjs"),h=require("./pkt-slot-controller-D4nKlom5.cjs"),m=require("./ref-CxLwrCxt.cjs"),f=require("./if-defined-hKKmbsI8.cjs");var y=Object.defineProperty,k=Object.getOwnPropertyDescriptor,d=(s,t,o,r)=>{for(var e=r>1?void 0:r?k(t,o):t,c=s.length-1,a;c>=0;c--)(a=s[c])&&(e=(r?a(t,o,e):a(e))||e);return r&&e&&y(t,o,e),e};let l=class extends i.i{constructor(){super(...arguments),this.ariaLabelledBy="",this.compact=!1,this.skin="borderless",this.name=""}updated(t){t.has("skin")&&this.requestUpdate(),t.has("name")&&this.updateAccordionItemNames()}updateAccordionItemNames(){var t;if(this.name){const o=(t=this.renderRoot)==null?void 0:t.querySelector("slot");o&&o.assignedElements().forEach(e=>{e.tagName.toLowerCase()==="pkt-accordion-item"&&(e.hasAttribute("name")||e.setAttribute("name",this.name))})}}firstUpdated(){var o;const t=(o=this.renderRoot)==null?void 0:o.querySelector("slot");t&&t.addEventListener("slotchange",()=>{this.updateAccordionItemNames()})}render(){const t={"pkt-accordion":!0,"pkt-accordion--compact":this.compact,[`pkt-accordion--${this.skin}`]:this.skin};return i.b`
2
+ <div
3
+ part="container"
4
+ class=${u.e(t)}
5
+ data-testid="pkt-accordion"
6
+ aria-labelledby=${this.ariaLabelledBy}
7
+ >
8
+ <slot></slot>
9
+ </div>
10
+ `}};d([i.n({type:String,reflect:!0,attribute:"aria-labelledby"})],l.prototype,"ariaLabelledBy",2);d([i.n({type:Boolean,reflect:!0,attribute:"compact"})],l.prototype,"compact",2);d([i.n({type:String,reflect:!0,attribute:"skin"})],l.prototype,"skin",2);d([i.n({type:String,reflect:!0,attribute:"name"})],l.prototype,"name",2);l=d([i.t("pkt-accordion")],l);const _=l;var v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,p=(s,t,o,r)=>{for(var e=r>1?void 0:r?b(t,o):t,c=s.length-1,a;c>=0;c--)(a=s[c])&&(e=(r?a(t,o,e):a(e))||e);return r&&e&&v(t,o,e),e};let n=class extends i.PktElement{constructor(){super(),this.defaultOpen=!1,this.title="",this.skin=void 0,this.compact=!1,this.isOpen=!1,this.name=void 0,this.accordionItemRef=m.e(),this.defaultSlot=m.e(),this.slotController=new h.PktSlotController(this,this.defaultSlot)}firstUpdated(s){this.defaultOpen&&(this.isOpen=!0)}render(){const s={"pkt-accordion-item":!0,"pkt-accordion-item--compact":this.compact,[`pkt-accordion-item--${this.skin}`]:!!this.skin};return i.b`
11
+ <details
12
+ class=${u.e(s)}
13
+ id=${this.id}
14
+ ?open=${this.isOpen}
15
+ ${m.n(this.accordionItemRef)}
16
+ name=${f.o(this.name)}
17
+ >
18
+ <summary class="pkt-accordion-item__title" id=${`pkt-accordion-item-summary-${this.id}`}>
19
+ ${this.title}
20
+ <pkt-icon
21
+ name="chevron-thin-down"
22
+ class="pkt-accordion-item__icon"
23
+ aria-hidden="true"
24
+ ></pkt-icon>
25
+ </summary>
26
+ <div
27
+ class="pkt-accordion-item__content"
28
+ id="pkt-accordion-item__content-${this.id}"
29
+ role="region"
30
+ >
31
+ <div class="pkt-accordion-item__content-inner" ${m.n(this.defaultSlot)}></div>
32
+ </div>
33
+ </details>
34
+ `}};p([i.n({type:Boolean})],n.prototype,"defaultOpen",2);p([i.n({type:String})],n.prototype,"title",2);p([i.n({type:String,reflect:!0})],n.prototype,"skin",2);p([i.n({type:Boolean,reflect:!0})],n.prototype,"compact",2);p([i.n({type:Boolean,reflect:!0})],n.prototype,"isOpen",2);p([i.n({type:String,reflect:!0})],n.prototype,"name",2);n=p([i.t("pkt-accordion-item")],n);const $=n;exports.PktAccordion=_;exports.PktAccordionItem_default=$;
@@ -1,4 +1,4 @@
1
- "use strict";const c=require("./class-map-CApIYSRo.cjs"),t=require("./element-aUzIoa1s.cjs"),d=require("./state-GDzxl12x.cjs"),h=require("./pkt-slot-controller-D4nKlom5.cjs"),u=require("./ref-C5iJMIE1.cjs"),k=require("./classutils-BwNK82ZQ.cjs");require("./icon-n4-ve48P.cjs");require("./button-BgCKV0zW.cjs");const v={skin:{default:"info"},ariaLive:{default:"polite"},compact:{default:!1},closeAlert:{default:!1}},a={props:v};var f=Object.defineProperty,_=Object.getOwnPropertyDescriptor,i=(o,e,s,l)=>{for(var r=l>1?void 0:l?_(e,s):e,p=o.length-1,n;p>=0;p--)(n=o[p])&&(r=(l?n(e,s,r):n(r))||r);return l&&r&&f(e,s,r),r};exports.PktAlert=class extends t.PktElement{constructor(){super(),this.defaultSlot=u.e(),this.compact=a.props.compact.default,this.title="",this.skin=a.props.skin.default,this.ariaLive=a.props.ariaLive.default,this["aria-live"]=null,this.closeAlert=a.props.closeAlert.default,this.date=null,this.role="status",this._isClosed=!1,this.close=e=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:e},bubbles:!0,composed:!0}))},this.slotController=new h.PktSlotController(this,this.defaultSlot),this._isClosed=!1}connectedCallback(){super.connectedCallback(),this["aria-live"]=this.getAttribute("aria-live")||this.ariaLive}attributeChangedCallback(e,s,l){e==="ariaLive"&&(this["aria-live"]=l),super.attributeChangedCallback(e,s,l)}updated(e){super.updated(e),e.has("ariaLive")&&(this["aria-live"]=this.ariaLive),e.has("_isClosed")&&k.updateClassAttribute(this,"pkt-hide",this._isClosed)}render(){const e={"pkt-alert":!0,"pkt-alert--compact":this.compact,[`pkt-alert--${this.skin}`]:this.skin,"pkt-hide":this._isClosed},s={"pkt-alert__grid":!0,"pkt-alert__noTitle":!this.title,"pkt-alert__noDate":!this.date};return t.x`
1
+ "use strict";const c=require("./class-map-Bokp1SoS.cjs"),t=require("./element-CMTfByxQ.cjs"),d=require("./state-BNgpvY-A.cjs"),h=require("./pkt-slot-controller-D4nKlom5.cjs"),u=require("./ref-CxLwrCxt.cjs"),k=require("./classutils-BwNK82ZQ.cjs");require("./icon-Dj0oZZSa.cjs");require("./button-VWxZW89G.cjs");const v={skin:{default:"info"},ariaLive:{default:"polite"},compact:{default:!1},closeAlert:{default:!1}},a={props:v};var f=Object.defineProperty,_=Object.getOwnPropertyDescriptor,i=(o,e,s,l)=>{for(var r=l>1?void 0:l?_(e,s):e,p=o.length-1,n;p>=0;p--)(n=o[p])&&(r=(l?n(e,s,r):n(r))||r);return l&&r&&f(e,s,r),r};exports.PktAlert=class extends t.PktElement{constructor(){super(),this.defaultSlot=u.e(),this.compact=a.props.compact.default,this.title="",this.skin=a.props.skin.default,this.ariaLive=a.props.ariaLive.default,this["aria-live"]=null,this.closeAlert=a.props.closeAlert.default,this.date=null,this.role="status",this._isClosed=!1,this.close=e=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:e},bubbles:!0,composed:!0}))},this.slotController=new h.PktSlotController(this,this.defaultSlot),this._isClosed=!1}connectedCallback(){super.connectedCallback(),this["aria-live"]=this.getAttribute("aria-live")||this.ariaLive}attributeChangedCallback(e,s,l){e==="ariaLive"&&(this["aria-live"]=l),super.attributeChangedCallback(e,s,l)}updated(e){super.updated(e),e.has("ariaLive")&&(this["aria-live"]=this.ariaLive),e.has("_isClosed")&&k.updateClassAttribute(this,"pkt-hide",this._isClosed)}render(){const e={"pkt-alert":!0,"pkt-alert--compact":this.compact,[`pkt-alert--${this.skin}`]:this.skin,"pkt-hide":this._isClosed},s={"pkt-alert__grid":!0,"pkt-alert__noTitle":!this.title,"pkt-alert__noDate":!this.date};return t.b`
2
2
  <div class=${c.e(e)} aria-live=${this["aria-live"]}>
3
3
  <div class=${c.e(s)}>
4
4
  <pkt-icon
@@ -7,7 +7,7 @@
7
7
  name=${this.skin==="info"?"alert-information":`alert-${this.skin}`}
8
8
  ></pkt-icon>
9
9
 
10
- ${this.closeAlert?t.x`
10
+ ${this.closeAlert?t.b`
11
11
  <div class="pkt-alert__close">
12
12
  <pkt-button
13
13
  tabindex="0"
@@ -22,12 +22,12 @@
22
22
  <span class="sr-only">Lukk</span>
23
23
  </pkt-button>
24
24
  </div>
25
- `:t.E}
26
- ${this.title?t.x`<div class="pkt-alert__title">${this.title}</div>`:t.E}
25
+ `:t.A}
26
+ ${this.title?t.b`<div class="pkt-alert__title">${this.title}</div>`:t.A}
27
27
 
28
28
  <div class="pkt-alert__text" ${u.n(this.defaultSlot)}></div>
29
29
 
30
- ${this.date?t.x`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>`:t.E}
30
+ ${this.date?t.b`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>`:t.A}
31
31
  </div>
32
32
  </div>
33
33
  `}};i([t.n({type:Boolean,reflect:!1})],exports.PktAlert.prototype,"compact",2);i([t.n({type:String,reflect:!0})],exports.PktAlert.prototype,"title",2);i([t.n({type:String,reflect:!0})],exports.PktAlert.prototype,"skin",2);i([t.n({type:String})],exports.PktAlert.prototype,"ariaLive",2);i([t.n({type:String,reflect:!0})],exports.PktAlert.prototype,"aria-live",2);i([t.n({type:Boolean,reflect:!0})],exports.PktAlert.prototype,"closeAlert",2);i([t.n({type:String,reflect:!0})],exports.PktAlert.prototype,"date",2);i([t.n({type:String,reflect:!0})],exports.PktAlert.prototype,"role",2);i([d.r()],exports.PktAlert.prototype,"_isClosed",2);exports.PktAlert=i([t.t("pkt-alert")],exports.PktAlert);
@@ -1,11 +1,11 @@
1
- import { e as h } from "./class-map-Dt2jXOlF.js";
2
- import { P as f, E as u, x as p, n as a, t as v } from "./element-BXsf_NlG.js";
3
- import { r as k } from "./state-DgnkjP0q.js";
1
+ import { e as h } from "./class-map-3ADKve8g.js";
2
+ import { P as f, A as u, b as p, n as a, t as v } from "./element-CV9utnHJ.js";
3
+ import { r as k } from "./state-l4hGZdFJ.js";
4
4
  import { P as m } from "./pkt-slot-controller-D7CrjM52.js";
5
- import { e as _, n as b } from "./ref-BxiKhrfa.js";
5
+ import { e as _, n as b } from "./ref-Dma3n3i8.js";
6
6
  import { u as y } from "./classutils-RQs1k6D9.js";
7
- import "./icon-DBZvMard.js";
8
- import "./button-CKgpX5QA.js";
7
+ import "./icon-D0IQAVwS.js";
8
+ import "./button-CHUuxLQV.js";
9
9
  const C = { skin: { default: "info" }, ariaLive: { default: "polite" }, compact: { default: !1 }, closeAlert: { default: !1 } }, c = {
10
10
  props: C
11
11
  };
@@ -1,6 +1,6 @@
1
- import { P as c, x as k, n as o, t as h } from "./element-BXsf_NlG.js";
2
- import { o as b } from "./if-defined-CxHgig4I.js";
3
- import "./icon-DBZvMard.js";
1
+ import { P as c, b as k, n as o, t as b } from "./element-CV9utnHJ.js";
2
+ import { o as h } from "./if-defined-rXcLNTzN.js";
3
+ import "./icon-D0IQAVwS.js";
4
4
  var f = Object.defineProperty, u = Object.getOwnPropertyDescriptor, n = (t, r, i, l) => {
5
5
  for (var e = l > 1 ? void 0 : l ? u(r, i) : r, s = t.length - 1, p; s >= 0; s--)
6
6
  (p = t[s]) && (e = (l ? p(r, i, e) : p(e)) || e);
@@ -19,7 +19,7 @@ let a = class extends c {
19
19
  class="pkt-back-link"
20
20
  aria-label=${this.ariaLabel || "Gå tilbake til forrige side"}
21
21
  >
22
- <a href=${b(this.href || "/")} class="pkt-link pkt-link--icon-left"
22
+ <a href=${h(this.href || "/")} class="pkt-link pkt-link--icon-left"
23
23
  ><pkt-icon
24
24
  class="pkt-back-link__icon pkt-icon pkt-link__icon"
25
25
  name="chevron-thin-left"
@@ -40,7 +40,7 @@ n([
40
40
  o({ type: String })
41
41
  ], a.prototype, "ariaLabel", 2);
42
42
  a = n([
43
- h("pkt-backlink")
43
+ b("pkt-backlink")
44
44
  ], a);
45
45
  export {
46
46
  a as P
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("./element-aUzIoa1s.cjs"),c=require("./if-defined-BElHLTlB.cjs");require("./icon-n4-ve48P.cjs");var p=Object.defineProperty,o=Object.getOwnPropertyDescriptor,n=(k,t,a,i)=>{for(var e=i>1?void 0:i?o(t,a):t,s=k.length-1,l;s>=0;s--)(l=k[s])&&(e=(i?l(t,a,e):l(e))||e);return i&&e&&p(t,a,e),e};exports.PktBackLink=class extends r.PktElement{constructor(){super(...arguments),this.href="",this.text="Forsiden",this.ariaLabel=""}attributeChangedCallback(t,a,i){t==="arialabel"&&this.removeAttribute("arialabel"),t==="href"&&this.removeAttribute("href"),t==="text"&&this.removeAttribute("text"),super.attributeChangedCallback(t,a,i)}render(){return r.x`<nav
1
+ "use strict";const r=require("./element-CMTfByxQ.cjs"),c=require("./if-defined-hKKmbsI8.cjs");require("./icon-Dj0oZZSa.cjs");var p=Object.defineProperty,o=Object.getOwnPropertyDescriptor,n=(k,t,a,i)=>{for(var e=i>1?void 0:i?o(t,a):t,s=k.length-1,l;s>=0;s--)(l=k[s])&&(e=(i?l(t,a,e):l(e))||e);return i&&e&&p(t,a,e),e};exports.PktBackLink=class extends r.PktElement{constructor(){super(...arguments),this.href="",this.text="Forsiden",this.ariaLabel=""}attributeChangedCallback(t,a,i){t==="arialabel"&&this.removeAttribute("arialabel"),t==="href"&&this.removeAttribute("href"),t==="text"&&this.removeAttribute("text"),super.attributeChangedCallback(t,a,i)}render(){return r.b`<nav
2
2
  class="pkt-back-link"
3
3
  aria-label=${this.ariaLabel||"Gå tilbake til forrige side"}
4
4
  >
@@ -1,16 +1,16 @@
1
- import { P as f, E as c, x as l, n as s, t as b } from "./element-BXsf_NlG.js";
1
+ import { P as c, A as b, b as l, n as s, t as f } from "./element-CV9utnHJ.js";
2
2
  import { P as u } from "./pkt-slot-controller-D7CrjM52.js";
3
- import { e as m } from "./class-map-Dt2jXOlF.js";
4
- import { o as r } from "./if-defined-CxHgig4I.js";
5
- import { e as y, n as k } from "./ref-BxiKhrfa.js";
6
- import "./icon-DBZvMard.js";
3
+ import { e as m } from "./class-map-3ADKve8g.js";
4
+ import { o as r } from "./if-defined-rXcLNTzN.js";
5
+ import { e as y, n as k } from "./ref-Dma3n3i8.js";
6
+ import "./icon-D0IQAVwS.js";
7
7
  var g = Object.defineProperty, P = Object.getOwnPropertyDescriptor, e = (t, o, n, p) => {
8
8
  for (var a = p > 1 ? void 0 : p ? P(o, n) : o, d = t.length - 1, h; d >= 0; d--)
9
9
  (h = t[d]) && (a = (p ? h(o, n, a) : h(a)) || a);
10
10
  return p && a && g(o, n, a), a;
11
11
  };
12
12
  window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/latest/animations/";
13
- let i = class extends f {
13
+ let i = class extends c {
14
14
  constructor() {
15
15
  super(), this.defaultSlot = y(), this.iconName = "user", this.secondIconName = "user", this.mode = "light", this.size = "medium", this.fullWidth = !1, this.fullWidthOnMobile = !1, this.skin = "primary", this.variant = "label-only", this.state = "normal", this.type = "button", this.form = void 0, this.isLoading = !1, this.disabled = !1, this.loadingAnimationPath = window.pktAnimationPath, this.slotController = new u(this, this.defaultSlot);
16
16
  }
@@ -63,18 +63,18 @@ let i = class extends f {
63
63
  class="pkt-btn__icon pkt-btn__spinner"
64
64
  name="spinner-blue"
65
65
  path=${r(this.loadingAnimationPath)}
66
- ></pkt-icon>` : c}
66
+ ></pkt-icon>` : b}
67
67
  ${this.variant !== "label-only" ? l`<pkt-icon
68
68
  class="pkt-btn__icon pkt-icon"
69
69
  name=${this.iconName}
70
70
  path=${r(this.iconPath)}
71
- ></pkt-icon>` : c}
71
+ ></pkt-icon>` : b}
72
72
  <span class="pkt-btn__text" ${k(this.defaultSlot)}></span>
73
73
  ${this.variant === "icons-right-and-left" ? l`<pkt-icon
74
74
  class="pkt-btn__icon"
75
75
  name=${this.secondIconName}
76
76
  path=${r(this.secondIconPath)}
77
- ></pkt-icon>` : c}
77
+ ></pkt-icon>` : b}
78
78
  </button>
79
79
  `;
80
80
  }
@@ -131,7 +131,7 @@ e([
131
131
  s({ type: String })
132
132
  ], i.prototype, "loadingAnimationPath", 2);
133
133
  i = e([
134
- b("pkt-button")
134
+ f("pkt-button")
135
135
  ], i);
136
136
  export {
137
137
  i as P
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("./element-aUzIoa1s.cjs"),h=require("./pkt-slot-controller-D4nKlom5.cjs"),u=require("./class-map-CApIYSRo.cjs"),a=require("./if-defined-BElHLTlB.cjs"),d=require("./ref-C5iJMIE1.cjs");require("./icon-n4-ve48P.cjs");var c=Object.defineProperty,k=Object.getOwnPropertyDescriptor,e=(r,i,o,n)=>{for(var s=n>1?void 0:n?k(i,o):i,l=r.length-1,p;l>=0;l--)(p=r[l])&&(s=(n?p(i,o,s):p(s))||s);return n&&s&&c(i,o,s),s};window.pktAnimationPath=window.pktAnimationPath||"https://punkt-cdn.oslo.kommune.no/latest/animations/";exports.PktButton=class extends t.PktElement{constructor(){super(),this.defaultSlot=d.e(),this.iconName="user",this.secondIconName="user",this.mode="light",this.size="medium",this.fullWidth=!1,this.fullWidthOnMobile=!1,this.skin="primary",this.variant="label-only",this.state="normal",this.type="button",this.form=void 0,this.isLoading=!1,this.disabled=!1,this.loadingAnimationPath=window.pktAnimationPath,this.slotController=new h.PktSlotController(this,this.defaultSlot)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",i=>{(this.disabled||this.hasAttribute("disabled")||this.isLoading)&&(i.preventDefault(),i.stopImmediatePropagation())},!0),this.addEventListener("keydown",i=>{(this.disabled||this.hasAttribute("disabled")||this.isLoading)&&(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),i.stopImmediatePropagation())},!0)}attributeChangedCallback(i,o,n){super.attributeChangedCallback(i,o,n),i==="disabled"&&n==="false"&&(this.disabled=!1),(i==="isloading"||i==="isLoading")&&n==="false"&&(this.isLoading=!1)}firstUpdated(i){super.firstUpdated(i),this.disabled==="false"&&(this.disabled=!1),this.isLoading==="false"&&(this.isLoading=!1)}render(){const i=this.form??this.getAttribute("form")??void 0,o={"pkt-btn":!0,[`pkt-btn--${this.size}`]:!!this.size,[`pkt-btn--${this.skin}`]:!!this.skin,[`pkt-btn--${this.variant}`]:!!this.variant,[`pkt-btn--${this.color}`]:!!this.color,[`pkt-btn--${this.state}`]:!!this.state,"pkt-btn--full":!!this.fullWidth,"pkt-btn--full-small":!!this.fullWidthOnMobile,"pkt-btn--disabled":!!this.disabled,"pkt-btn--isLoading":!!this.isLoading};return t.x`
1
+ "use strict";const t=require("./element-CMTfByxQ.cjs"),h=require("./pkt-slot-controller-D4nKlom5.cjs"),u=require("./class-map-Bokp1SoS.cjs"),a=require("./if-defined-hKKmbsI8.cjs"),d=require("./ref-CxLwrCxt.cjs");require("./icon-Dj0oZZSa.cjs");var c=Object.defineProperty,b=Object.getOwnPropertyDescriptor,e=(r,i,o,n)=>{for(var s=n>1?void 0:n?b(i,o):i,l=r.length-1,p;l>=0;l--)(p=r[l])&&(s=(n?p(i,o,s):p(s))||s);return n&&s&&c(i,o,s),s};window.pktAnimationPath=window.pktAnimationPath||"https://punkt-cdn.oslo.kommune.no/latest/animations/";exports.PktButton=class extends t.PktElement{constructor(){super(),this.defaultSlot=d.e(),this.iconName="user",this.secondIconName="user",this.mode="light",this.size="medium",this.fullWidth=!1,this.fullWidthOnMobile=!1,this.skin="primary",this.variant="label-only",this.state="normal",this.type="button",this.form=void 0,this.isLoading=!1,this.disabled=!1,this.loadingAnimationPath=window.pktAnimationPath,this.slotController=new h.PktSlotController(this,this.defaultSlot)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",i=>{(this.disabled||this.hasAttribute("disabled")||this.isLoading)&&(i.preventDefault(),i.stopImmediatePropagation())},!0),this.addEventListener("keydown",i=>{(this.disabled||this.hasAttribute("disabled")||this.isLoading)&&(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),i.stopImmediatePropagation())},!0)}attributeChangedCallback(i,o,n){super.attributeChangedCallback(i,o,n),i==="disabled"&&n==="false"&&(this.disabled=!1),(i==="isloading"||i==="isLoading")&&n==="false"&&(this.isLoading=!1)}firstUpdated(i){super.firstUpdated(i),this.disabled==="false"&&(this.disabled=!1),this.isLoading==="false"&&(this.isLoading=!1)}render(){const i=this.form??this.getAttribute("form")??void 0,o={"pkt-btn":!0,[`pkt-btn--${this.size}`]:!!this.size,[`pkt-btn--${this.skin}`]:!!this.skin,[`pkt-btn--${this.variant}`]:!!this.variant,[`pkt-btn--${this.color}`]:!!this.color,[`pkt-btn--${this.state}`]:!!this.state,"pkt-btn--full":!!this.fullWidth,"pkt-btn--full-small":!!this.fullWidthOnMobile,"pkt-btn--disabled":!!this.disabled,"pkt-btn--isLoading":!!this.isLoading};return t.b`
2
2
  <button
3
3
  class=${u.e(o)}
4
4
  type=${this.type}
@@ -7,21 +7,21 @@
7
7
  aria-disabled=${a.o(this.disabled||this.isLoading?"true":void 0)}
8
8
  form=${a.o(i)}
9
9
  >
10
- ${this.isLoading?t.x`<pkt-icon
10
+ ${this.isLoading?t.b`<pkt-icon
11
11
  class="pkt-btn__icon pkt-btn__spinner"
12
12
  name="spinner-blue"
13
13
  path=${a.o(this.loadingAnimationPath)}
14
- ></pkt-icon>`:t.E}
15
- ${this.variant!=="label-only"?t.x`<pkt-icon
14
+ ></pkt-icon>`:t.A}
15
+ ${this.variant!=="label-only"?t.b`<pkt-icon
16
16
  class="pkt-btn__icon pkt-icon"
17
17
  name=${this.iconName}
18
18
  path=${a.o(this.iconPath)}
19
- ></pkt-icon>`:t.E}
19
+ ></pkt-icon>`:t.A}
20
20
  <span class="pkt-btn__text" ${d.n(this.defaultSlot)}></span>
21
- ${this.variant==="icons-right-and-left"?t.x`<pkt-icon
21
+ ${this.variant==="icons-right-and-left"?t.b`<pkt-icon
22
22
  class="pkt-btn__icon"
23
23
  name=${this.secondIconName}
24
24
  path=${a.o(this.secondIconPath)}
25
- ></pkt-icon>`:t.E}
25
+ ></pkt-icon>`:t.A}
26
26
  </button>
27
27
  `}};e([t.n({type:String})],exports.PktButton.prototype,"iconName",2);e([t.n({type:String})],exports.PktButton.prototype,"secondIconName",2);e([t.n({type:String})],exports.PktButton.prototype,"iconPath",2);e([t.n({type:String})],exports.PktButton.prototype,"secondIconPath",2);e([t.n({type:String})],exports.PktButton.prototype,"mode",2);e([t.n({type:String})],exports.PktButton.prototype,"size",2);e([t.n({type:Boolean,attribute:"full-width"})],exports.PktButton.prototype,"fullWidth",2);e([t.n({type:Boolean,attribute:"full-width-on-mobile"})],exports.PktButton.prototype,"fullWidthOnMobile",2);e([t.n({type:String})],exports.PktButton.prototype,"color",2);e([t.n({type:String})],exports.PktButton.prototype,"skin",2);e([t.n({type:String})],exports.PktButton.prototype,"variant",2);e([t.n({type:String,reflect:!0})],exports.PktButton.prototype,"state",2);e([t.n({type:String,reflect:!0})],exports.PktButton.prototype,"type",2);e([t.n({type:String})],exports.PktButton.prototype,"form",2);e([t.n({type:Boolean,reflect:!0})],exports.PktButton.prototype,"isLoading",2);e([t.n({type:Boolean,reflect:!0})],exports.PktButton.prototype,"disabled",2);e([t.n({type:String})],exports.PktButton.prototype,"loadingAnimationPath",2);exports.PktButton=e([t.t("pkt-button")],exports.PktButton);
@@ -1,7 +1,7 @@
1
- import { e as rt } from "./class-map-Dt2jXOlF.js";
2
- import { P as Pt, x as D, E as at, n as f, t as Nt } from "./element-BXsf_NlG.js";
3
- import { r as Z } from "./state-DgnkjP0q.js";
4
- import "./icon-DBZvMard.js";
1
+ import { e as rt } from "./class-map-3ADKve8g.js";
2
+ import { P as Pt, b as D, A as at, n as f, t as Nt } from "./element-CV9utnHJ.js";
3
+ import { r as Z } from "./state-l4hGZdFJ.js";
4
+ import "./icon-D0IQAVwS.js";
5
5
  const yt = 6048e5, Ct = 864e5, st = Symbol.for("constructDateFrom");
6
6
  function k(t, e) {
7
7
  return typeof t == "function" ? t(e) : t && typeof t == "object" && st in t ? t[st](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
@@ -95,11 +95,11 @@ function bt(t, e) {
95
95
  c.push(k(n, i)), i.setDate(i.getDate() + o), i.setHours(0, 0, 0, 0);
96
96
  return a ? c.reverse() : c;
97
97
  }
98
- function Ht(t, e) {
98
+ function At(t, e) {
99
99
  const n = b(t, e == null ? void 0 : e.in);
100
100
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
101
101
  }
102
- const At = {
102
+ const Ht = {
103
103
  lessThanXSeconds: {
104
104
  one: "less than a second",
105
105
  other: "less than {{count}} seconds"
@@ -163,7 +163,7 @@ const At = {
163
163
  }
164
164
  }, Rt = (t, e, n) => {
165
165
  let r;
166
- const a = At[t];
166
+ const a = Ht[t];
167
167
  return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
168
168
  };
169
169
  function X(t) {
@@ -532,7 +532,7 @@ const ae = /^(\d+)(th|st|nd|rd)?/i, se = /\d+/i, ie = {
532
532
  };
533
533
  function we(t, e) {
534
534
  const n = b(t, e == null ? void 0 : e.in);
535
- return Et(n, Ht(n)) + 1;
535
+ return Et(n, At(n)) + 1;
536
536
  }
537
537
  function be(t, e) {
538
538
  const n = b(t, e == null ? void 0 : e.in), r = +q(n) - +_t(n);
@@ -1299,7 +1299,7 @@ function Ie(t, e) {
1299
1299
  const n = b(t, e == null ? void 0 : e.in).getDay();
1300
1300
  return n === 0 ? 7 : n;
1301
1301
  }
1302
- function He(t, e, n = "long") {
1302
+ function Ae(t, e, n = "long") {
1303
1303
  return new Intl.DateTimeFormat("en-US", {
1304
1304
  // Enforces engine to render the time. Without the option JavaScriptCore omits it.
1305
1305
  hour: "numeric",
@@ -1307,24 +1307,24 @@ function He(t, e, n = "long") {
1307
1307
  timeZoneName: n
1308
1308
  }).format(e).split(/\s/g).slice(2).join(" ");
1309
1309
  }
1310
- const G = {}, A = {};
1310
+ const G = {}, H = {};
1311
1311
  function C(t, e) {
1312
1312
  try {
1313
1313
  const r = (G[t] || (G[t] = new Intl.DateTimeFormat("en-US", {
1314
1314
  timeZone: t,
1315
1315
  timeZoneName: "longOffset"
1316
1316
  }).format))(e).split("GMT")[1];
1317
- return r in A ? A[r] : dt(r, r.split(":"));
1317
+ return r in H ? H[r] : dt(r, r.split(":"));
1318
1318
  } catch {
1319
- if (t in A) return A[t];
1320
- const n = t == null ? void 0 : t.match(Ae);
1319
+ if (t in H) return H[t];
1320
+ const n = t == null ? void 0 : t.match(He);
1321
1321
  return n ? dt(t, n.slice(1)) : NaN;
1322
1322
  }
1323
1323
  }
1324
- const Ae = /([+-]\d\d):?(\d\d)?/;
1324
+ const He = /([+-]\d\d):?(\d\d)?/;
1325
1325
  function dt(t, e) {
1326
1326
  const n = +(e[0] || 0), r = +(e[1] || 0), a = +(e[2] || 0) / 60;
1327
- return A[t] = n * 60 + r > 0 ? n * 60 + r + a : n * 60 - r - a;
1327
+ return H[t] = n * 60 + r > 0 ? n * 60 + r + a : n * 60 - r - a;
1328
1328
  }
1329
1329
  class S extends Date {
1330
1330
  //#region static
@@ -1411,7 +1411,7 @@ class x extends S {
1411
1411
  }
1412
1412
  toTimeString() {
1413
1413
  const e = this.internal.toUTCString().split(" ")[4], [n, r, a] = this.tzComponents();
1414
- return `${e} GMT${n}${r}${a} (${He(this.timeZone, this)})`;
1414
+ return `${e} GMT${n}${r}${a} (${Ae(this.timeZone, this)})`;
1415
1415
  }
1416
1416
  toLocaleString(e, n) {
1417
1417
  return Date.prototype.toLocaleString.call(this, e, {
@@ -1484,7 +1484,7 @@ const y = (t) => {
1484
1484
  return /* @__PURE__ */ new Date();
1485
1485
  const r = new Date(t, e, n);
1486
1486
  return isNaN(r.getTime()) ? /* @__PURE__ */ new Date() : r;
1487
- }, H = (t) => {
1487
+ }, A = (t) => {
1488
1488
  let e;
1489
1489
  return typeof t == "number" ? e = new x(t, window.pktTz) : e = new x(t, window.pktTz), e.setHours(12, 0, 0, 0), e;
1490
1490
  };
@@ -1686,9 +1686,9 @@ let l = class extends Pt {
1686
1686
  setCurrentMonth() {
1687
1687
  if (this.currentmonth === null && !this.currentmonthtouched && (this.currentmonthtouched = !0), this.selected.length && this.selected[0] !== "") {
1688
1688
  const t = O(this.selected[this.selected.length - 1]);
1689
- this.currentmonth = isNaN(t.getTime()) ? H(this.todayDate) : t;
1690
- } else this.currentmonth === null && (this.currentmonth = H(this.todayDate));
1691
- (!this.currentmonth || isNaN(this.currentmonth.getTime())) && (this.currentmonth = H(this.todayDate)), this.year = this.currentmonth.getFullYear(), this.month = this.currentmonth.getMonth();
1689
+ this.currentmonth = isNaN(t.getTime()) ? A(this.todayDate) : t;
1690
+ } else this.currentmonth === null && (this.currentmonth = A(this.todayDate));
1691
+ (!this.currentmonth || isNaN(this.currentmonth.getTime())) && (this.currentmonth = A(this.todayDate)), this.year = this.currentmonth.getFullYear(), this.month = this.currentmonth.getMonth();
1692
1692
  }
1693
1693
  /**
1694
1694
  * Keyboard navigation
@@ -1955,7 +1955,7 @@ let l = class extends Pt {
1955
1955
  this.changeMonth(e, t);
1956
1956
  }
1957
1957
  changeMonth(t, e) {
1958
- this.year = typeof t == "string" ? parseInt(t) : t, this.month = typeof e == "string" ? parseInt(e) : e, this.currentmonth = H(new Date(this.year, this.month, 1)), this.tabIndexSet = 0, this.focusedDate = null, this.selectableDates = [];
1958
+ this.year = typeof t == "string" ? parseInt(t) : t, this.month = typeof e == "string" ? parseInt(e) : e, this.currentmonth = A(new Date(this.year, this.month, 1)), this.tabIndexSet = 0, this.focusedDate = null, this.selectableDates = [];
1959
1959
  }
1960
1960
  /**
1961
1961
  * Date selection logic
@@ -2004,7 +2004,7 @@ let l = class extends Pt {
2004
2004
  * Focus management and event handlers
2005
2005
  */
2006
2006
  focusOnCurrentDate() {
2007
- const t = y(H(this.todayDate)), e = this.querySelector(`button[data-date="${t}"]`);
2007
+ const t = y(A(this.todayDate)), e = this.querySelector(`button[data-date="${t}"]`);
2008
2008
  if (e instanceof HTMLButtonElement) {
2009
2009
  this.focusedDate = t, e.focus();
2010
2010
  return;