@oslokommune/punkt-react 12.34.0 → 12.34.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5679,7 +5679,7 @@ function dL() {
5679
5679
  for (var c = 0; c < o.length && c < a.length; c++) if (!Sa(a[c], o[c])) return !1;
5680
5680
  return !0;
5681
5681
  }
5682
- function on(a, o, c, m, b, S) {
5682
+ function sn(a, o, c, m, b, S) {
5683
5683
  if (h = S, k = o, o.memoizedState = null, o.updateQueue = null, o.lanes = 0, tn.current = a === null || a.memoizedState === null ? Ph : op, a = c(m, b), ee) {
5684
5684
  S = 0;
5685
5685
  do {
@@ -6135,7 +6135,7 @@ Error generating stack: ` + S.message + `
6135
6135
  function $i(a, o, c, m, b) {
6136
6136
  c = c.render;
6137
6137
  var S = o.ref;
6138
- return Qn(o, b), m = on(a, o, c, m, S, b), c = jt(), a !== null && !Vr ? (o.updateQueue = a.updateQueue, o.flags &= -2053, a.lanes &= ~b, to(a, o, b)) : (rr && c && wl(o), o.flags |= 1, xa(a, o, m, b), o.child);
6138
+ return Qn(o, b), m = sn(a, o, c, m, S, b), c = jt(), a !== null && !Vr ? (o.updateQueue = a.updateQueue, o.flags &= -2053, a.lanes &= ~b, to(a, o, b)) : (rr && c && wl(o), o.flags |= 1, xa(a, o, m, b), o.child);
6139
6139
  }
6140
6140
  function Ac(a, o, c, m, b) {
6141
6141
  if (a === null) {
@@ -6172,7 +6172,7 @@ Error generating stack: ` + S.message + `
6172
6172
  }
6173
6173
  function xg(a, o, c, m, b) {
6174
6174
  var S = $r(c) ? ja : Hn.current;
6175
- return S = Ei(o, S), Qn(o, b), c = on(a, o, c, m, S, b), m = jt(), a !== null && !Vr ? (o.updateQueue = a.updateQueue, o.flags &= -2053, a.lanes &= ~b, to(a, o, b)) : (rr && m && wl(o), o.flags |= 1, xa(a, o, c, b), o.child);
6175
+ return S = Ei(o, S), Qn(o, b), c = sn(a, o, c, m, S, b), m = jt(), a !== null && !Vr ? (o.updateQueue = a.updateQueue, o.flags &= -2053, a.lanes &= ~b, to(a, o, b)) : (rr && m && wl(o), o.flags |= 1, xa(a, o, c, b), o.child);
6176
6176
  }
6177
6177
  function Bh(a, o, c, m, b) {
6178
6178
  if ($r(c)) {
@@ -7953,7 +7953,7 @@ Error generating stack: ` + S.message + `
7953
7953
  var m = o.type;
7954
7954
  Pc(a, o), a = o.pendingProps;
7955
7955
  var b = Ei(o, Hn.current);
7956
- Qn(o, c), b = on(null, o, m, a, b, c);
7956
+ Qn(o, c), b = sn(null, o, m, a, b, c);
7957
7957
  var S = jt();
7958
7958
  return o.flags |= 1, typeof b == "object" && b !== null && typeof b.render == "function" && b.$$typeof === void 0 ? (o.tag = 1, o.memoizedState = null, o.updateQueue = null, $r(m) ? (S = !0, za(o)) : S = !1, o.memoizedState = b.state !== null && b.state !== void 0 ? b.state : null, Zf(o), b.updater = Rh, o.stateNode = b, b._reactInternals = o, sp(o, m, a, c), o = $c(null, o, m, !0, S, c)) : (o.tag = 0, rr && S && wl(o), xa(null, o, b, c), o = o.child), o;
7959
7959
  case 16:
@@ -11231,7 +11231,7 @@ Check the render method of \`` + e + "`." : "";
11231
11231
  ), Ee = (
11232
11232
  /* */
11233
11233
  1
11234
- ), on = (
11234
+ ), sn = (
11235
11235
  /* */
11236
11236
  2
11237
11237
  ), jt = (
@@ -11335,7 +11335,7 @@ Check the render method of \`` + e + "`." : "";
11335
11335
  {
11336
11336
  if (e & Ee)
11337
11337
  return "Sync";
11338
- if (e & on)
11338
+ if (e & sn)
11339
11339
  return "InputContinuousHydration";
11340
11340
  if (e & jt)
11341
11341
  return "InputContinuous";
@@ -11364,8 +11364,8 @@ Check the render method of \`` + e + "`." : "";
11364
11364
  switch (Cu(e)) {
11365
11365
  case Ee:
11366
11366
  return Ee;
11367
- case on:
11368
- return on;
11367
+ case sn:
11368
+ return sn;
11369
11369
  case jt:
11370
11370
  return jt;
11371
11371
  case Tt:
@@ -11461,7 +11461,7 @@ Check the render method of \`` + e + "`." : "";
11461
11461
  function bg(e, t) {
11462
11462
  switch (e) {
11463
11463
  case Ee:
11464
- case on:
11464
+ case sn:
11465
11465
  case jt:
11466
11466
  return t + 250;
11467
11467
  case Tt:
@@ -11529,7 +11529,7 @@ Check the render method of \`` + e + "`." : "";
11529
11529
  return (e & lr) === e;
11530
11530
  }
11531
11531
  function Lh(e, t) {
11532
- var s = on | jt | Tt | It;
11532
+ var s = sn | jt | Tt | It;
11533
11533
  return (t & s) !== ae;
11534
11534
  }
11535
11535
  function Ay(e, t) {
@@ -11615,7 +11615,7 @@ Check the render method of \`` + e + "`." : "";
11615
11615
  var s = Cu(t), u;
11616
11616
  switch (s) {
11617
11617
  case jt:
11618
- u = on;
11618
+ u = sn;
11619
11619
  break;
11620
11620
  case It:
11621
11621
  u = Tt;
@@ -22466,7 +22466,7 @@ let Jm = class {
22466
22466
  * Copyright 2018 Google LLC
22467
22467
  * SPDX-License-Identifier: BSD-3-Clause
22468
22468
  */
22469
- const ln = rh(class extends Jm {
22469
+ const on = rh(class extends Jm {
22470
22470
  constructor(r) {
22471
22471
  var n;
22472
22472
  if (super(r), r.type !== ql.ATTRIBUTE || r.name !== "class" || ((n = r.strings) == null ? void 0 : n.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
@@ -22680,7 +22680,7 @@ let EL = class extends Jm {
22680
22680
  const hn = () => new TL();
22681
22681
  let TL = class {
22682
22682
  };
22683
- const ND = /* @__PURE__ */ new WeakMap(), sn = rh(class extends EL {
22683
+ const ND = /* @__PURE__ */ new WeakMap(), ln = rh(class extends EL {
22684
22684
  render(r) {
22685
22685
  return nt;
22686
22686
  }
@@ -22841,32 +22841,41 @@ let Wl = class extends aa {
22841
22841
  "pkt-alert--compact": this.compact,
22842
22842
  [`pkt-alert--${this.skin}`]: this.skin,
22843
22843
  "pkt-hide": this._isClosed
22844
+ }, i = {
22845
+ "pkt-alert__grid": !0,
22846
+ "pkt-alert__noTitle": !this.title,
22847
+ "pkt-alert__noDate": !this.date
22844
22848
  };
22845
22849
  return Ae`
22846
- <div class=${ln(n)}>
22847
- <pkt-icon
22848
- class="pkt-alert__icon"
22849
- name=${this.skin === "info" ? "alert-information" : `alert-${this.skin}`}
22850
- ></pkt-icon>
22850
+ <div class=${on(n)}>
22851
+ <div class=${on(i)}>
22852
+ <pkt-icon
22853
+ class="pkt-alert__icon"
22854
+ aria-hidden="true"
22855
+ name=${this.skin === "info" ? "alert-information" : `alert-${this.skin}`}
22856
+ ></pkt-icon>
22851
22857
 
22852
- ${this.closeAlert ? Ae`
22853
- <div class="pkt-alert__close">
22854
- <button
22855
- type="button"
22856
- class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
22857
- tabindex="0"
22858
- aria-label="close"
22859
- @click=${this.close}
22860
- >
22861
- <pkt-icon name="close" class="pkt-btn__icon" aria-hidden="true"></pkt-icon>
22862
- </button>
22863
- </div>
22864
- ` : nt}
22865
- ${this.title ? Ae`<div class="pkt-alert__title">${this.title}</div>` : nt}
22858
+ ${this.closeAlert ? Ae`
22859
+ <div class="pkt-alert__close">
22860
+ <pkt-button
22861
+ tabindex="0"
22862
+ aria-label="close"
22863
+ size=${this.compact ? "small" : "medium"}
22864
+ type="button"
22865
+ skin="tertiary"
22866
+ iconName="close"
22867
+ variant="icon-only"
22868
+ @click=${this.close}
22869
+ >
22870
+ </pkt-button>
22871
+ </div>
22872
+ ` : nt}
22873
+ ${this.title ? Ae`<div class="pkt-alert__title">${this.title}</div>` : nt}
22866
22874
 
22867
- <div class="pkt-alert__text" ${sn(this.defaultSlot)}></div>
22875
+ <div class="pkt-alert__text" ${ln(this.defaultSlot)}></div>
22868
22876
 
22869
- ${this.date ? Ae`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>` : nt}
22877
+ ${this.date ? Ae`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>` : nt}
22878
+ </div>
22870
22879
  </div>
22871
22880
  `;
22872
22881
  }
@@ -22919,7 +22928,7 @@ let qm = class extends Um {
22919
22928
  return Ae`
22920
22929
  <div
22921
22930
  part="container"
22922
- class=${ln(n)}
22931
+ class=${on(n)}
22923
22932
  data-testid="pkt-accordion"
22924
22933
  aria-labelledby=${this.ariaLabelledBy}
22925
22934
  >
@@ -22958,10 +22967,10 @@ let hf = class extends aa {
22958
22967
  };
22959
22968
  return Ae`
22960
22969
  <details
22961
- class=${ln(n)}
22970
+ class=${on(n)}
22962
22971
  id=${this.id}
22963
22972
  ?open=${this.isOpen}
22964
- ${sn(this.accordionItemRef)}
22973
+ ${ln(this.accordionItemRef)}
22965
22974
  >
22966
22975
  <summary class="pkt-accordion-item__title" id=${`pkt-accordion-item-summary-${this.id}`}>
22967
22976
  ${this.title}
@@ -22976,7 +22985,7 @@ let hf = class extends aa {
22976
22985
  id="pkt-accordion-item__content-${this.id}"
22977
22986
  role="region"
22978
22987
  >
22979
- <div class="pkt-accordion-item__content-inner" ${sn(this.defaultSlot)}></div>
22988
+ <div class="pkt-accordion-item__content-inner" ${ln(this.defaultSlot)}></div>
22980
22989
  </div>
22981
22990
  </details>
22982
22991
  `;
@@ -23074,7 +23083,7 @@ let uo = class extends aa {
23074
23083
  path="https://punkt-cdn.oslo.kommune.no/12.34/animations/"
23075
23084
  ></pkt-icon>` : nt}
23076
23085
  ${this.variant !== "label-only" ? Ae`<pkt-icon class="pkt-btn__icon pkt-icon" name=${this.iconName}></pkt-icon>` : nt}
23077
- <span class="pkt-btn__text" ${sn(this.defaultSlot)}></span>
23086
+ <span class="pkt-btn__text" ${ln(this.defaultSlot)}></span>
23078
23087
  ${this.variant === "icons-right-and-left" ? Ae`<pkt-icon class="pkt-btn__icon" name=${this.secondIconName}></pkt-icon>` : nt}
23079
23088
  </div>
23080
23089
  `;
@@ -24777,7 +24786,7 @@ let or = class extends aa {
24777
24786
  "pkt-cal-in-range-last": this.range && this.selected.length === 2 && v === this.selected[1],
24778
24787
  "pkt-cal-range-hover": this.rangeHovered !== null && v === Qa(this.rangeHovered)
24779
24788
  };
24780
- return Ae`<td class=${ln(R)}>
24789
+ return Ae`<td class=${on(R)}>
24781
24790
  <div
24782
24791
  ?aria-selected=${x}
24783
24792
  role="gridcell"
@@ -25103,20 +25112,20 @@ let Ks = class extends aa {
25103
25112
  };
25104
25113
  return this.closeTag ? Ae`
25105
25114
  <button
25106
- class=${ln(i)}
25115
+ class=${on(i)}
25107
25116
  type=${this.type}
25108
25117
  @click=${this.close}
25109
25118
  aria-label=${En(this.ariaLabel || void 0)}
25110
25119
  aria-description=${En(this._ariaDescription || void 0)}
25111
25120
  >
25112
25121
  ${this.iconName && Ae`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
25113
- <span ${sn(this.defaultSlot)}></span>
25122
+ <span ${ln(this.defaultSlot)}></span>
25114
25123
  <pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
25115
25124
  </button>
25116
25125
  ` : Ae`
25117
- <span class=${ln(n)}>
25126
+ <span class=${on(n)}>
25118
25127
  ${this.iconName && Ae`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
25119
- <span ${sn(this.defaultSlot)}></span>
25128
+ <span ${ln(this.defaultSlot)}></span>
25120
25129
  </span>
25121
25130
  `;
25122
25131
  }
@@ -25183,7 +25192,7 @@ let td = class extends aa {
25183
25192
  [`pkt-card--${this.direction}`]: this.direction
25184
25193
  };
25185
25194
  return Ae`
25186
- <div class=${ln(n)}>
25195
+ <div class=${on(n)}>
25187
25196
  ${this.image.src && Ae`
25188
25197
  <div class="pkt-card__image">
25189
25198
  <img src=${this.image.src} alt=${this.image.alt || ""} />
@@ -25208,7 +25217,7 @@ let td = class extends aa {
25208
25217
  ` : nt}
25209
25218
  ${this.heading && Ae`<h3 class="pkt-txt-30-medium">${this.heading}</h3>`}
25210
25219
  ${this.subheading && Ae`<p class="pkt-txt-20-light">${this.subheading}</p>`}
25211
- ${this.defaultSlot && Ae`<div class="pkt-card__content" ${sn(this.defaultSlot)}></div>`}
25220
+ ${this.defaultSlot && Ae`<div class="pkt-card__content" ${ln(this.defaultSlot)}></div>`}
25212
25221
  </div>
25213
25222
  </div>
25214
25223
  `;
@@ -25604,7 +25613,7 @@ let mf = class extends aa {
25604
25613
  <span class="pkt-btn__text">${Yk(this.helptextDropdownButton)}</span>
25605
25614
  </button>
25606
25615
  <div
25607
- class="${ln({
25616
+ class="${on({
25608
25617
  "pkt-inputwrapper__helptext": !0,
25609
25618
  "pkt-inputwrapper__helptext-expandable-open": this.isHelpTextOpen,
25610
25619
  "pkt-inputwrapper__helptext-expandable-closed": !this.isHelpTextOpen
@@ -25615,7 +25624,7 @@ let mf = class extends aa {
25615
25624
  </div>` : nt;
25616
25625
  return Ae`${Ae`<div class="pkt-inputwrapper__helptext-container">
25617
25626
  <div class="pkt-inputwrapper__helptext" id="${this.forId}-helptext">
25618
- <div class="pkt-contents" ${sn(this.defaultSlot)} name="helptext"></div>
25627
+ <div class="pkt-contents" ${ln(this.defaultSlot)} name="helptext"></div>
25619
25628
  ${this.helptext && Yk(this.helptext)}
25620
25629
  </div>
25621
25630
  ${n()}
@@ -25667,7 +25676,7 @@ let kr = class extends aa {
25667
25676
  "pkt-tag--thin-text": !0,
25668
25677
  "pkt-tag--blue-light": this.optionalTag,
25669
25678
  "pkt-tag--beige": !this.optionalTag && this.requiredTag
25670
- }, l = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : nt, d = () => this.optionalTag || this.requiredTag ? Ae`<span class=${ln(i)}
25679
+ }, l = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : nt, d = () => this.optionalTag || this.requiredTag ? Ae`<span class=${on(i)}
25671
25680
  >${this.optionalTag ? this.optionalText : this.requiredTag ? this.requiredText : nt}</span
25672
25681
  >` : nt, g = () => this.useWrapper ? this.hasFieldset ? Ae`<legend
25673
25682
  class="pkt-inputwrapper__legend"
@@ -25698,7 +25707,7 @@ let kr = class extends aa {
25698
25707
  @toggleHelpText=${(N) => {
25699
25708
  this.toggleDropdown(N);
25700
25709
  }}
25701
- ${sn(this.helptextSlot)}
25710
+ ${ln(this.helptextSlot)}
25702
25711
  name="helptext"
25703
25712
  ></pkt-helptext>
25704
25713
  `, D = () => this.counter ? Ae`<div class="pkt-input__counter" aria-live="polite" aria-atomic="true">
@@ -25716,12 +25725,12 @@ let kr = class extends aa {
25716
25725
  </div>` : nt, E = () => Ae`
25717
25726
  ${g()} ${v()}
25718
25727
  ${this.counterPosition === "top" ? D() : nt}
25719
- <div class="pkt-contents" ${sn(this.defaultSlot)}></div>
25728
+ <div class="pkt-contents" ${ln(this.defaultSlot)}></div>
25720
25729
  ${this.counterPosition === "bottom" ? D() : nt} ${x()}
25721
25730
  `, A = () => this.hasFieldset ? Ae`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${l}">
25722
25731
  ${E()}
25723
25732
  </fieldset>` : Ae`<div class="pkt-inputwrapper__fieldset">${E()}</div>`;
25724
- return Ae`<div class=${ln(n)}>${A()}</div> `;
25733
+ return Ae`<div class=${on(n)}>${A()}</div> `;
25725
25734
  }
25726
25735
  toggleDropdown(n) {
25727
25736
  this.dispatchEvent(
@@ -25836,7 +25845,7 @@ let hi = class extends aa {
25836
25845
  render() {
25837
25846
  return Ae`
25838
25847
  <div
25839
- class=${ln({
25848
+ class=${on({
25840
25849
  "pkt-listbox": !0,
25841
25850
  "pkt-listbox__open": this.isOpen,
25842
25851
  "pkt-txt-16-light": !0
@@ -25880,7 +25889,7 @@ let hi = class extends aa {
25880
25889
  }}
25881
25890
  aria-selected=${n.selected ? "true" : "false"}
25882
25891
  @keydown=${this.handleOptionKeydown}
25883
- class=${ln({
25892
+ class=${on({
25884
25893
  "pkt-listbox__option": !0,
25885
25894
  "pkt-listbox__option--selected": !!(!this.isMultiSelect && n.selected),
25886
25895
  "pkt-listbox__option--checkBox": this.isMultiSelect
@@ -26233,10 +26242,10 @@ let Gr = class extends cn {
26233
26242
  class="pkt-combobox__wrapper"
26234
26243
  @labelClick=${this.handleInputClick}
26235
26244
  >
26236
- <div class="pkt-contents" ${sn(this.helptextSlot)} name="helptext" slot="helptext"></div>
26245
+ <div class="pkt-contents" ${ln(this.helptextSlot)} name="helptext" slot="helptext"></div>
26237
26246
  <div class="pkt-combobox" @focusout=${this.handleFocusOut}>
26238
26247
  <div
26239
- class=${ln({
26248
+ class=${on({
26240
26249
  "pkt-combobox__input": !0,
26241
26250
  "pkt-combobox__input--fullwidth": this.fullwidth,
26242
26251
  "pkt-combobox__input--open": this._isOptionsOpen,
@@ -26253,7 +26262,7 @@ let Gr = class extends cn {
26253
26262
  @click=${this.handleArrowClick}
26254
26263
  @keydown=${this.handleArrowClick}
26255
26264
  id="${this.id}-arrow"
26256
- ${sn(this.arrowRef)}
26265
+ ${ln(this.arrowRef)}
26257
26266
  aria-expanded=${this._isOptionsOpen}
26258
26267
  aria-controls="${this.id}-listbox"
26259
26268
  aria-haspopup="listbox"
@@ -26264,14 +26273,14 @@ let Gr = class extends cn {
26264
26273
  tabindex="${this.disabled ? "-1" : "0"}"
26265
26274
  >
26266
26275
  <pkt-icon
26267
- class=${ln({
26276
+ class=${on({
26268
26277
  "pkt-combobox__arrow-icon": !0,
26269
26278
  "pkt-combobox__arrow-icon--open": this._isOptionsOpen
26270
26279
  })}
26271
26280
  name="chevron-thin-down"
26272
26281
  ></pkt-icon>
26273
26282
  </div>
26274
- <div ${sn(this.focusRef)} tabindex="-1" @keydown=${this.handleArrowClick}></div>
26283
+ <div ${ln(this.focusRef)} tabindex="-1" @keydown=${this.handleArrowClick}></div>
26275
26284
  </div>
26276
26285
 
26277
26286
  <pkt-listbox
@@ -26292,7 +26301,7 @@ let Gr = class extends cn {
26292
26301
  @close-options=${() => this._isOptionsOpen = !1}
26293
26302
  .searchValue=${this._search || null}
26294
26303
  .maxLength=${this.maxlength || 0}
26295
- ${sn(this.listboxRef)}
26304
+ ${ln(this.listboxRef)}
26296
26305
  ></pkt-listbox>
26297
26306
  </div>
26298
26307
 
@@ -26322,7 +26331,7 @@ let Gr = class extends cn {
26322
26331
  aria-activedescendant=${En(
26323
26332
  this._value[0] && this.findValueInOptions(this._value[0]) ? `${this.id}-listbox-${this.findIndexInOptions(this._value[0])}` : void 0
26324
26333
  )}
26325
- ${sn(this.inputRef)}
26334
+ ${ln(this.inputRef)}
26326
26335
  />
26327
26336
  </div>
26328
26337
  ` : Ae`
@@ -26331,7 +26340,7 @@ let Gr = class extends cn {
26331
26340
  id="${this.id}-input"
26332
26341
  name=${(this.name || this.id) + "-input"}
26333
26342
  .value=${this._value.join(",")}
26334
- ${sn(this.inputRef)}
26343
+ ${ln(this.inputRef)}
26335
26344
  />
26336
26345
  `;
26337
26346
  }
@@ -26658,14 +26667,14 @@ let Js = class extends cn {
26658
26667
  n.has("defaultChecked") && !this.checked && (this.checked = this.defaultChecked), super.firstUpdated(n);
26659
26668
  }
26660
26669
  render() {
26661
- const n = ln({
26670
+ const n = on({
26662
26671
  "pkt-input-check__input": !0,
26663
26672
  "pkt-input-check__input--tile": this.hasTile,
26664
26673
  "pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
26665
- }), i = ln({
26674
+ }), i = on({
26666
26675
  "pkt-input-check__input-checkbox": !0,
26667
26676
  "pkt-input-check__input-checkbox--error": this.hasError
26668
- }), l = ln({
26677
+ }), l = on({
26669
26678
  "pkt-input-check__input-label": !0,
26670
26679
  "pkt-input-check__input-label--left": this.labelPosition === "left",
26671
26680
  "pkt-input-check__input-label--right": this.labelPosition === "right",
@@ -26686,7 +26695,7 @@ let Js = class extends cn {
26686
26695
  type="checkbox"
26687
26696
  ?disabled=${this.disabled}
26688
26697
  name=${this.name + "-internal"}
26689
- ${sn(this.inputRef)}
26698
+ ${ln(this.inputRef)}
26690
26699
  @change=${this.toggleChecked}
26691
26700
  @blur=${this.onBlur}
26692
26701
  @focus=${this.onFocus}
@@ -26809,7 +26818,7 @@ let Yr = class extends cn {
26809
26818
  renderInput() {
26810
26819
  return Ae`
26811
26820
  <input
26812
- class="${ln(this.inputClasses)}"
26821
+ class="${on(this.inputClasses)}"
26813
26822
  .type=${this.inputType}
26814
26823
  id="${this.id}-input"
26815
26824
  .value=${this._value[0] ?? ""}
@@ -26836,7 +26845,7 @@ let Yr = class extends cn {
26836
26845
  @change=${(n) => {
26837
26846
  n.stopImmediatePropagation();
26838
26847
  }}
26839
- ${sn(this.inputRef)}
26848
+ ${ln(this.inputRef)}
26840
26849
  />
26841
26850
  `;
26842
26851
  }
@@ -26848,7 +26857,7 @@ let Yr = class extends cn {
26848
26857
  return Ae`
26849
26858
  ${this.showRangeLabels ? Ae` <div class="pkt-input-prefix">${this.strings.generic.from}</div> ` : nt}
26850
26859
  <input
26851
- class=${ln(this.inputClasses)}
26860
+ class=${on(this.inputClasses)}
26852
26861
  .type=${this.inputType}
26853
26862
  id="${this.id}-input"
26854
26863
  .value=${this._value[0] ?? ""}
@@ -26879,14 +26888,14 @@ let Yr = class extends cn {
26879
26888
  @change=${(i) => {
26880
26889
  i.stopImmediatePropagation();
26881
26890
  }}
26882
- ${sn(this.inputRef)}
26891
+ ${ln(this.inputRef)}
26883
26892
  />
26884
- <div class="${ln(n)}" id="${this.id}-to-label">
26893
+ <div class="${on(n)}" id="${this.id}-to-label">
26885
26894
  ${this.strings.generic.to}
26886
26895
  </div>
26887
26896
  ${this.showRangeLabels ? nt : Ae` <div class="pkt-input-separator">–</div> `}
26888
26897
  <input
26889
- class=${ln(this.inputClasses)}
26898
+ class=${on(this.inputClasses)}
26890
26899
  .type=${this.inputType}
26891
26900
  id="${this.id}-to"
26892
26901
  aria-labelledby="${this.id}-to-label"
@@ -26928,14 +26937,14 @@ let Yr = class extends cn {
26928
26937
  @change=${(i) => {
26929
26938
  i.stopImmediatePropagation();
26930
26939
  }}
26931
- ${sn(this.inputRefTo)}
26940
+ ${ln(this.inputRefTo)}
26932
26941
  />
26933
26942
  `;
26934
26943
  }
26935
26944
  renderMultipleInput() {
26936
26945
  return Ae`
26937
26946
  <input
26938
- class=${ln(this.inputClasses)}
26947
+ class=${on(this.inputClasses)}
26939
26948
  .type=${this.inputType}
26940
26949
  id="${this.id}-input"
26941
26950
  min=${En(this.min)}
@@ -26960,7 +26969,7 @@ let Yr = class extends cn {
26960
26969
  @change=${(n) => {
26961
26970
  n.stopImmediatePropagation();
26962
26971
  }}
26963
- ${sn(this.inputRef)}
26972
+ ${ln(this.inputRef)}
26964
26973
  />
26965
26974
  `;
26966
26975
  }
@@ -26996,7 +27005,7 @@ let Yr = class extends cn {
26996
27005
  this.calendarOpen && this.handleFocusOut(n);
26997
27006
  }}
26998
27007
  id="${this.id}-popup"
26999
- ${sn(this.popupRef)}
27008
+ ${ln(this.popupRef)}
27000
27009
  >
27001
27010
  <pkt-calendar
27002
27011
  id="${this.id}-calendar"
@@ -27017,7 +27026,7 @@ let Yr = class extends cn {
27017
27026
  @close=${() => {
27018
27027
  this.onBlur(), this.hideCalendar();
27019
27028
  }}
27020
- ${sn(this.calRef)}
27029
+ ${ln(this.calRef)}
27021
27030
  ></pkt-calendar>
27022
27031
  </div>`;
27023
27032
  }
@@ -27058,7 +27067,7 @@ let Yr = class extends cn {
27058
27067
  .ariaDescribedBy=${this.ariaDescribedBy}
27059
27068
  class="pkt-datepicker"
27060
27069
  >
27061
- <div class="pkt-contents" ${sn(this.helptextSlot)} name="helptext" slot="helptext"></div>
27070
+ <div class="pkt-contents" ${ln(this.helptextSlot)} name="helptext" slot="helptext"></div>
27062
27071
  ${this.multiple ? this.renderTags() : nt}
27063
27072
  <div
27064
27073
  class="pkt-datepicker__inputs ${this.range && this.showRangeLabels ? "pkt-input__range-inputs" : ""}"
@@ -27066,11 +27075,11 @@ let Yr = class extends cn {
27066
27075
  <div class="pkt-input__container">
27067
27076
  ${this.range ? this.renderRangeInput() : this.multiple ? this.renderMultipleInput() : this.renderInput()}
27068
27077
  <button
27069
- class="${ln(this.buttonClasses)}"
27078
+ class="${on(this.buttonClasses)}"
27070
27079
  type="button"
27071
27080
  @click=${this.toggleCalendar}
27072
27081
  ?disabled=${this.disabled}
27073
- ${sn(this.btnRef)}
27082
+ ${ln(this.btnRef)}
27074
27083
  >
27075
27084
  <pkt-icon name="calendar"></pkt-icon>
27076
27085
  <span class="pkt-btn__text">${this.strings.calendar.buttonAltText}</span>
@@ -27196,12 +27205,12 @@ let gf = class extends aa {
27196
27205
  "pkt-link--external": this.external
27197
27206
  };
27198
27207
  return Ae`<a
27199
- class=${ln(n)}
27208
+ class=${on(n)}
27200
27209
  href=${this.href}
27201
27210
  @click=${this.handleClick}
27202
27211
  .target=${this.target}
27203
27212
  .rel=${this.external ? "noopener noreferrer" : nt}
27204
- >${this.iconName ? Ae`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>` : ""} <span ${sn(this.defaultSlot)}>Link</span></a
27213
+ >${this.iconName ? Ae`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>` : ""} <span ${ln(this.defaultSlot)}>Link</span></a
27205
27214
  >`;
27206
27215
  }
27207
27216
  handleClick() {
@@ -27252,7 +27261,7 @@ let nd = class extends aa {
27252
27261
  ${this.iconName && Ae`<pkt-icon class="pkt-link__icon" name="${this.iconName}" />`}
27253
27262
  ${this.title && Ae`<div class=${i}>${this.title}</div>`}
27254
27263
 
27255
- <div class="pkt-linkcard__text" ${sn(this.defaultSlot)}></div>
27264
+ <div class="pkt-linkcard__text" ${ln(this.defaultSlot)}></div>
27256
27265
  </a>
27257
27266
  `;
27258
27267
  }
@@ -27294,11 +27303,11 @@ let Gu = class extends aa {
27294
27303
  r.has("delay") && this.setupLoader();
27295
27304
  }
27296
27305
  render() {
27297
- const r = ln({
27306
+ const r = on({
27298
27307
  "pkt-loader": !0,
27299
27308
  [`pkt-loader--${this.inline ? "inline" : "box"}`]: !0,
27300
27309
  [`pkt-loader--${this.size}`]: !0
27301
- }), n = ln({
27310
+ }), n = on({
27302
27311
  "pkt-contents": !0,
27303
27312
  "pkt-hide": this.isLoading
27304
27313
  });
@@ -27311,7 +27320,7 @@ let Gu = class extends aa {
27311
27320
  ></pkt-icon>
27312
27321
  ${this.message && Ae`<p>${this.message}</p>`}
27313
27322
  </div>` : nt}
27314
- <div class=${n} ${sn(this.defaultSlot)}></div>
27323
+ <div class=${n} ${ln(this.defaultSlot)}></div>
27315
27324
  </div>`;
27316
27325
  }
27317
27326
  getVariant(r) {
@@ -27391,7 +27400,7 @@ let vf = class extends aa {
27391
27400
  "pkt-messagebox--closable": this.closable,
27392
27401
  "pkt-hide": this._isClosed
27393
27402
  };
27394
- return Ae`<div class=${ln(r)}>
27403
+ return Ae`<div class=${on(r)}>
27395
27404
  ${this.closable ? Ae`<div class="pkt-messagebox__close">
27396
27405
  <button
27397
27406
  @click=${this.close}
@@ -27401,7 +27410,7 @@ let vf = class extends aa {
27401
27410
  </button>
27402
27411
  </div>` : nt}
27403
27412
  ${this.title ? Ae`<div class="pkt-messagebox__title">${this.title}</div>` : nt}
27404
- <div class="pkt-messagebox__text" ${sn(this.defaultSlot)}></div>
27413
+ <div class="pkt-messagebox__text" ${ln(this.defaultSlot)}></div>
27405
27414
  </div>`;
27406
27415
  }
27407
27416
  };
@@ -27504,21 +27513,21 @@ let Yu = class extends aa {
27504
27513
  };
27505
27514
  return Ae`
27506
27515
  <dialog
27507
- class=${ln(n)}
27508
- ${sn(this.dialogRef)}
27516
+ class=${on(n)}
27517
+ ${ln(this.dialogRef)}
27509
27518
  aria-labelledby="pkt-modal__headingText"
27510
27519
  aria-describedby="pkt-modal__content"
27511
27520
  @close=${(D) => this.close(D, !0)}
27512
27521
  >
27513
27522
  <div class="pkt-modal__header">
27514
27523
  <div class="pkt-modal__header-background"></div>
27515
- ${this.headingText ? Ae`<h1 id="pkt-modal__headingText" class=${ln(i)}>
27524
+ ${this.headingText ? Ae`<h1 id="pkt-modal__headingText" class=${on(i)}>
27516
27525
  ${this.headingText}
27517
27526
  </h1>` : nt}
27518
- ${this.hideCloseButton ? nt : Ae`<div class="${ln(g)}">
27527
+ ${this.hideCloseButton ? nt : Ae`<div class="${on(g)}">
27519
27528
  <pkt-button
27520
27529
  @click=${(D) => this.close(D)}
27521
- class=${ln(v)}
27530
+ class=${on(v)}
27522
27531
  aria-label="close"
27523
27532
  iconname="close"
27524
27533
  variant="icon-only"
@@ -27529,8 +27538,8 @@ let Yu = class extends aa {
27529
27538
  <div class="pkt-modal__container">
27530
27539
  <div
27531
27540
  id="pkt-modal__content"
27532
- class=${ln(l)}
27533
- ${sn(this.defaultSlot)}
27541
+ class=${on(l)}
27542
+ ${ln(this.defaultSlot)}
27534
27543
  ></div>
27535
27544
  </div>
27536
27545
  </dialog>
@@ -27608,16 +27617,16 @@ let ra = class extends aa {
27608
27617
  super.updated(r), r.has("valueCurrent") && this.labelRef.value && (this.labelWidth = this.labelRef.value.getBoundingClientRect().width || 0), r.has("id") && this.id && (this.progressBarId = this.id), (r.has("statusType") || r.has("id") || r.has("ariaLabelledby")) && (this.progressbarId = this.id || Xp(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`), (r.has("ariaValueText") || r.has("valueCurrent") || r.has("valueMax")) && (this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || ""), this.syncAttributes();
27609
27618
  }
27610
27619
  render() {
27611
- const r = this.statusType !== "none", n = this.valueMax - this.valueMin, i = this.valueCurrent / n * 100, l = this.statusType === "fraction" ? Math.round(i) : Math.round((this.valueCurrent - this.valueMin) / (this.valueMax - this.valueMin) * 100), d = `${this.valueCurrent} av ${n}`, g = ln({
27620
+ const r = this.statusType !== "none", n = this.valueMax - this.valueMin, i = this.valueCurrent / n * 100, l = this.statusType === "fraction" ? Math.round(i) : Math.round((this.valueCurrent - this.valueMin) / (this.valueMax - this.valueMin) * 100), d = `${this.valueCurrent} av ${n}`, g = on({
27612
27621
  "pkt-progressbar__bar": !0,
27613
27622
  [`pkt-progressbar__bar--${this.skin}`]: !!this.skin
27614
- }), v = ln({
27623
+ }), v = on({
27615
27624
  "pkt-progressbar__title": !0,
27616
27625
  "pkt-progressbar__title-center": this.titlePosition === "center"
27617
- }), D = ln({
27626
+ }), D = on({
27618
27627
  "pkt-progressbar__status": !0,
27619
27628
  "pkt-progressbar__status--center": this.statusPlacement === "center"
27620
- }), x = ln({
27629
+ }), x = on({
27621
27630
  "pkt-progressbar__status-placement--following": this.statusPlacement === "following",
27622
27631
  "pkt-progressbar__status-placement--center": this.statusPlacement === "center",
27623
27632
  "pkt-progressbar__status-placement--left": this.statusPlacement === "left"
@@ -27637,7 +27646,7 @@ let ra = class extends aa {
27637
27646
  </div>
27638
27647
 
27639
27648
  ${r ? Ae`<div class=${D}>
27640
- <span class=${x} ${sn(this.labelRef)}>
27649
+ <span class=${x} ${ln(this.labelRef)}>
27641
27650
  ${this.statusType === "percentage" ? `${l}%` : d}
27642
27651
  </span>
27643
27652
  </div>` : nt}
@@ -27730,11 +27739,11 @@ let Qu = class extends cn {
27730
27739
  r.has("checked") && this.checked !== null && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0, (r.get("checked") === "" || r.get("checked") === "true" || r.get("checked") === !0) !== this._checked && this.toggleChecked()), super.updated(r);
27731
27740
  }
27732
27741
  render() {
27733
- const r = ln({
27742
+ const r = on({
27734
27743
  "pkt-input-check__input": !0,
27735
27744
  "pkt-input-check__input--tile": this.hasTile,
27736
27745
  "pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
27737
- }), n = ln({
27746
+ }), n = on({
27738
27747
  "pkt-input-check__input-checkbox": !0,
27739
27748
  "pkt-input-check__input-checkbox--error": this.hasError
27740
27749
  });
@@ -27748,7 +27757,7 @@ let Qu = class extends cn {
27748
27757
  role="radio"
27749
27758
  ?disabled=${this.disabled}
27750
27759
  name=${this.name + "-internal"}
27751
- ${sn(this.inputRef)}
27760
+ ${ln(this.inputRef)}
27752
27761
  @change=${this.toggleChecked}
27753
27762
  @input=${this.onInput}
27754
27763
  @blur=${this.onBlur}
@@ -27832,7 +27841,7 @@ let eh = class extends cn {
27832
27841
  super.updated(n), n.has("value") && (this.counterCurrent = ((i = this.value) == null ? void 0 : i.length) || 0, this.valueChanged(this.value, n.get("value"))), n.has("id") && !this.name && this.id && (this.name = this.id);
27833
27842
  }
27834
27843
  render() {
27835
- const n = ln({
27844
+ const n = on({
27836
27845
  "pkt-input": !0,
27837
27846
  "pkt-input--fullwidth": this.fullwidth,
27838
27847
  "pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
@@ -27859,9 +27868,9 @@ let eh = class extends cn {
27859
27868
  .requiredText=${this.requiredText}
27860
27869
  class="pkt-textarea"
27861
27870
  >
27862
- <div class="pkt-contents" ${sn(this.helptextSlot)} name="helptext" slot="helptext"></div>
27871
+ <div class="pkt-contents" ${ln(this.helptextSlot)} name="helptext" slot="helptext"></div>
27863
27872
  <textarea
27864
- ${sn(this.inputRef)}
27873
+ ${ln(this.inputRef)}
27865
27874
  class=${n}
27866
27875
  id=${this.id + "-input"}
27867
27876
  name=${(this.name || this.id) + "-input"}
@@ -27924,7 +27933,7 @@ let Zs = class extends cn {
27924
27933
  super.updated(n), n.has("value") && (this.counterCurrent = ((i = this.value) == null ? void 0 : i.length) || 0, this.valueChanged(this.value, n.get("value"))), n.has("id") && !this.name && this.id && (this.name = this.id);
27925
27934
  }
27926
27935
  render() {
27927
- const n = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, i = ln({
27936
+ const n = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, i = on({
27928
27937
  "pkt-input": !0,
27929
27938
  "pkt-input--fullwidth": this.fullwidth,
27930
27939
  "pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
@@ -27953,11 +27962,11 @@ let Zs = class extends cn {
27953
27962
  .requiredText=${this.requiredText}
27954
27963
  class="pkt-textinput"
27955
27964
  >
27956
- <div class="pkt-contents" ${sn(this.helptextSlot)} name="helptext" slot="helptext"></div>
27965
+ <div class="pkt-contents" ${ln(this.helptextSlot)} name="helptext" slot="helptext"></div>
27957
27966
  <div class="pkt-input__container">
27958
27967
  ${this.prefix ? Ae`<div class="pkt-input-prefix">${this.prefix}</div>` : nt}
27959
27968
  <input
27960
- ${sn(this.inputRef)}
27969
+ ${ln(this.inputRef)}
27961
27970
  class=${i}
27962
27971
  type=${this.type}
27963
27972
  name=${(this.name || this.id) + "-input"}
@@ -28112,7 +28121,7 @@ let Gm = class extends cn {
28112
28121
  @blur=${(n) => {
28113
28122
  this.onBlur(), n.stopImmediatePropagation();
28114
28123
  }}
28115
- ${sn(this.inputRef)}
28124
+ ${ln(this.inputRef)}
28116
28125
  >
28117
28126
  ${this._options.length > 0 && this._options.map(
28118
28127
  (n) => Ae`<option
@@ -28124,7 +28133,7 @@ let Gm = class extends cn {
28124
28133
  </option>`
28125
28134
  )}
28126
28135
  </select>
28127
- <div class="pkt-contents" ${sn(this.helptextSlot)} name="helptext" slot="helptext"></div>
28136
+ <div class="pkt-contents" ${ln(this.helptextSlot)} name="helptext" slot="helptext"></div>
28128
28137
  </pkt-input-wrapper>
28129
28138
  `;
28130
28139
  }
@@ -28168,7 +28177,7 @@ let Ym = class extends aa {
28168
28177
  "pkt-darkmode": this.darkmode
28169
28178
  };
28170
28179
  return Ae`
28171
- <div class="${ln(r)}">
28180
+ <div class="${on(r)}">
28172
28181
  <h1 class="pkt-txt-28">${this.string}</h1>
28173
28182
 
28174
28183
  <h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
@@ -28176,11 +28185,11 @@ let Ym = class extends aa {
28176
28185
  <div>${this.renderList(this.doStuff(this._list))}</div>
28177
28186
 
28178
28187
  <h2 class="pkt-txt-22">Slot</h2>
28179
- <div ${sn(this.defaultSlot)}>defaultSlotRef</div>
28188
+ <div ${ln(this.defaultSlot)}>defaultSlotRef</div>
28180
28189
  <h2 class="pkt-txt-22">Named slot</h2>
28181
28190
  <select
28182
28191
  name="named-slot"
28183
- ${sn(this.namedSlot)}
28192
+ ${ln(this.namedSlot)}
28184
28193
  @change=${(n) => alert(n.target.value)}
28185
28194
  >
28186
28195
  namedSlotRef
@@ -32228,9 +32237,9 @@ Expected it to be ${C}.`;
32228
32237
  if (Ee.length === 0) throw new Error("Must contain one or more image candidate strings.");
32229
32238
  return Ee;
32230
32239
  }
32231
- ae = we, k = Ve(au), C = [], k.slice(-1) === "," ? (k = k.replace(Yi, ""), jt()) : on();
32240
+ ae = we, k = Ve(au), C = [], k.slice(-1) === "," ? (k = k.replace(Yi, ""), jt()) : sn();
32232
32241
  }
32233
- function on() {
32242
+ function sn() {
32234
32243
  for (Ve(dl), $ = "", I = "in descriptor"; ; ) {
32235
32244
  if (ee = f.charAt(we), I === "in descriptor") if (Vo(ee)) $ && (C.push($), $ = "", I = "after descriptor");
32236
32245
  else if (ee === ",") {
@@ -32266,16 +32275,16 @@ Expected it to be ${C}.`;
32266
32275
  }
32267
32276
  var Et = { width: "w", height: "h", density: "x" }, Ke = Object.keys(Et);
32268
32277
  function At(f) {
32269
- let h = De(f), k = Ke.filter((Ee) => h.some((on) => Object.prototype.hasOwnProperty.call(on, Ee)));
32278
+ let h = De(f), k = Ke.filter((Ee) => h.some((sn) => Object.prototype.hasOwnProperty.call(sn, Ee)));
32270
32279
  if (k.length > 1) throw new Error("Mixed descriptor in srcset is not supported");
32271
32280
  let [C] = k, $ = Et[C], I = h.map((Ee) => Ee.source.value), ee = Math.max(...I.map((Ee) => Ee.length)), we = h.map((Ee) => Ee[C] ? String(Ee[C].value) : ""), ae = we.map((Ee) => {
32272
- let on = Ee.indexOf(".");
32273
- return on === -1 ? Ee.length : on;
32281
+ let sn = Ee.indexOf(".");
32282
+ return sn === -1 ? Ee.length : sn;
32274
32283
  }), Ve = Math.max(...ae);
32275
- return zi(Ln([",", Yt], I.map((Ee, on) => {
32276
- let jt = [Ee], Tt = we[on];
32284
+ return zi(Ln([",", Yt], I.map((Ee, sn) => {
32285
+ let jt = [Ee], Tt = we[sn];
32277
32286
  if (Tt) {
32278
- let It = ee - Ee.length + 1, Vn = Ve - ae[on], lr = " ".repeat(It + Vn);
32287
+ let It = ee - Ee.length + 1, Vn = Ve - ae[sn], lr = " ".repeat(It + Vn);
32279
32288
  jt.push(wn(lr, " "), Tt + $);
32280
32289
  }
32281
32290
  return jt;
@@ -32437,7 +32446,7 @@ Expected it to be ${C}.`;
32437
32446
  var C;
32438
32447
  let { node: $ } = f;
32439
32448
  if (!Qi($.attrs)) return $.isSelfClosing ? " " : "";
32440
- let I = ((C = $.prev) == null ? void 0 : C.type) === "comment" && sc($.prev.value), ee = typeof I == "boolean" ? () => I : Array.isArray(I) ? (on) => I.includes(on.rawName) : () => !1, we = f.map(({ node: on }) => ee(on) ? me(h.originalText.slice(iu(on), ou(on))) : k(), "attrs"), ae = $.type === "element" && $.fullName === "script" && $.attrs.length === 1 && $.attrs[0].fullName === "src" && $.children.length === 0, Ve = h.singleAttributePerLine && $.attrs.length > 1 && !ei($, h) ? dn : Yt, Ee = [ot([ae ? " " : Yt, Ln(Ve, we)])];
32449
+ let I = ((C = $.prev) == null ? void 0 : C.type) === "comment" && sc($.prev.value), ee = typeof I == "boolean" ? () => I : Array.isArray(I) ? (sn) => I.includes(sn.rawName) : () => !1, we = f.map(({ node: sn }) => ee(sn) ? me(h.originalText.slice(iu(sn), ou(sn))) : k(), "attrs"), ae = $.type === "element" && $.fullName === "script" && $.attrs.length === 1 && $.attrs[0].fullName === "src" && $.children.length === 0, Ve = h.singleAttributePerLine && $.attrs.length > 1 && !ei($, h) ? dn : Yt, Ee = [ot([ae ? " " : Yt, Ln(Ve, we)])];
32441
32450
  return $.firstChild && lc($.firstChild) || $.isSelfClosing && pl($.parent) || ae ? Ee.push($.isSelfClosing ? " " : "") : Ee.push(h.bracketSameLine ? $.isSelfClosing ? " " : "" : $.isSelfClosing ? Yt : gn), Ee;
32442
32451
  }
32443
32452
  function pd(f) {
@@ -32592,8 +32601,8 @@ Expected it to be ${C}.`;
32592
32601
  }
32593
32602
  return Sa(I, h, k);
32594
32603
  }
32595
- let ae = [], Ve = [], Ee = [], on = [], jt = we.prev ? Cs(we.prev, we) : "", Tt = we.next ? Cs(we, we.next) : "";
32596
- return jt && (Vi(we.prev) ? ae.push(dn, dn) : jt === dn ? ae.push(dn) : gr(we.prev) ? Ve.push(jt) : Ve.push(wn("", gn, { groupId: $[ee - 1] }))), Tt && (Vi(we) ? gr(we.next) && on.push(dn, dn) : Tt === dn ? gr(we.next) && on.push(dn) : Ee.push(Tt)), [...ae, Qe([...Ve, Qe([Sa(I, h, k), ...Ee], { id: $[ee] })]), ...on];
32604
+ let ae = [], Ve = [], Ee = [], sn = [], jt = we.prev ? Cs(we.prev, we) : "", Tt = we.next ? Cs(we, we.next) : "";
32605
+ return jt && (Vi(we.prev) ? ae.push(dn, dn) : jt === dn ? ae.push(dn) : gr(we.prev) ? Ve.push(jt) : Ve.push(wn("", gn, { groupId: $[ee - 1] }))), Tt && (Vi(we) ? gr(we.next) && sn.push(dn, dn) : Tt === dn ? gr(we.next) && sn.push(dn) : Ee.push(Tt)), [...ae, Qe([...Ve, Qe([Sa(I, h, k), ...Ee], { id: $[ee] })]), ...sn];
32597
32606
  }, "children");
32598
32607
  }
32599
32608
  function vd(f, h, k) {
@@ -33825,7 +33834,7 @@ If '${f}' is a directive input, make sure the directive is imported by the curre
33825
33834
  let I = (Tt) => (It, ...Vn) => Tt(It.toLowerCase(), ...Vn), ee = C ? this.getTagDefinition : I(this.getTagDefinition), we = (Tt) => ee(Tt).getContentType(), ae = C ? $ : I($), Ve = ri(f, h, $ ? (Tt, It, Vn, lr) => {
33826
33835
  let yr = ae(Tt, It, Vn, lr);
33827
33836
  return yr !== void 0 ? yr : we(Tt);
33828
- } : we, k), Ee = k && k.canSelfClose || !1, on = k && k.allowHtmComponentClosingTags || !1, jt = new xr(Ve.tokens, ee, Ee, on, C);
33837
+ } : we, k), Ee = k && k.canSelfClose || !1, sn = k && k.allowHtmComponentClosingTags || !1, jt = new xr(Ve.tokens, ee, Ee, sn, C);
33829
33838
  return jt.build(), new Sh(jt.rootNodes, Ve.errors.concat(jt.errors));
33830
33839
  }
33831
33840
  }, xr = class pA {
@@ -33928,8 +33937,8 @@ If '${f}' is a directive input, make sure the directive is imported by the curre
33928
33937
  let Tt = this.getTagDefinition(I);
33929
33938
  this.canSelfClose || Tt.canSelfClose || ni(I) !== null || Tt.isVoid || this.errors.push(Ur.create(I, h.sourceSpan, `Only void, custom and foreign elements can be self closed "${h.parts[1]}"`));
33930
33939
  } else this._peek.type === 1 && (this._advance(), ee = !1);
33931
- let we = this._peek.sourceSpan.fullStart, ae = new en(h.sourceSpan.start, we, h.sourceSpan.fullStart), Ve = new en(h.sourceSpan.start, we, h.sourceSpan.fullStart), Ee = new en(h.sourceSpan.start.moveBy(1), h.sourceSpan.end), on = new Jo(I, $, [], ae, Ve, void 0, Ee), jt = this._getContainer();
33932
- this._pushContainer(on, jt instanceof Jo && this.getTagDefinition(jt.name).isClosedByChild(on.name)), ee ? this._popContainer(I, Jo, ae) : h.type === 4 && (this._popContainer(I, Jo, null), this.errors.push(Ur.create(I, ae, `Opening tag "${I}" not terminated.`)));
33940
+ let we = this._peek.sourceSpan.fullStart, ae = new en(h.sourceSpan.start, we, h.sourceSpan.fullStart), Ve = new en(h.sourceSpan.start, we, h.sourceSpan.fullStart), Ee = new en(h.sourceSpan.start.moveBy(1), h.sourceSpan.end), sn = new Jo(I, $, [], ae, Ve, void 0, Ee), jt = this._getContainer();
33941
+ this._pushContainer(sn, jt instanceof Jo && this.getTagDefinition(jt.name).isClosedByChild(sn.name)), ee ? this._popContainer(I, Jo, ae) : h.type === 4 && (this._popContainer(I, Jo, null), this.errors.push(Ur.create(I, ae, `Opening tag "${I}" not terminated.`)));
33933
33942
  }
33934
33943
  _pushContainer(h, k) {
33935
33944
  k && this._containerStack.pop(), this._addToParent(h), this._containerStack.push(h);
@@ -34190,20 +34199,20 @@ ${h}`, k), I = C;
34190
34199
  (f.type === "plural" || f.type === "select") && (f.clause = f.type, f.type = "angularIcuExpression"), f.type === "expansionCase" && (f.type = "angularIcuCase");
34191
34200
  }
34192
34201
  function Su(f, h, k) {
34193
- let { name: C, canSelfClose: $ = !0, normalizeTagName: I = !1, normalizeAttributeName: ee = !1, allowHtmComponentClosingTags: we = !1, isTagNameCaseSensitive: ae = !1, shouldParseAsRawText: Ve } = h, { rootNodes: Ee, errors: on } = Fd(f, { canSelfClose: $, allowHtmComponentClosingTags: we, isTagNameCaseSensitive: ae, getTagContentType: Ve ? (...dt) => Ve(...dt) ? Ci.RAW_TEXT : void 0 : void 0, tokenizeAngularBlocks: C === "angular" ? !0 : void 0, tokenizeAngularLetDeclaration: C === "angular" ? !0 : void 0 });
34202
+ let { name: C, canSelfClose: $ = !0, normalizeTagName: I = !1, normalizeAttributeName: ee = !1, allowHtmComponentClosingTags: we = !1, isTagNameCaseSensitive: ae = !1, shouldParseAsRawText: Ve } = h, { rootNodes: Ee, errors: sn } = Fd(f, { canSelfClose: $, allowHtmComponentClosingTags: we, isTagNameCaseSensitive: ae, getTagContentType: Ve ? (...dt) => Ve(...dt) ? Ci.RAW_TEXT : void 0 : void 0, tokenizeAngularBlocks: C === "angular" ? !0 : void 0, tokenizeAngularLetDeclaration: C === "angular" ? !0 : void 0 });
34194
34203
  if (C === "vue") {
34195
34204
  if (Ee.some((pr) => pr.type === "docType" && pr.value === "html" || pr.type === "element" && pr.name.toLowerCase() === "html")) return Su(f, Sc, k);
34196
34205
  let dt, nn = () => dt ?? (dt = Fd(f, { canSelfClose: $, allowHtmComponentClosingTags: we, isTagNameCaseSensitive: ae })), br = (pr) => nn().rootNodes.find(({ startSourceSpan: Hr }) => Hr && Hr.start.offset === pr.startSourceSpan.start.offset) ?? pr;
34197
34206
  for (let [pr, Hr] of Ee.entries()) {
34198
34207
  let { endSourceSpan: ns, startSourceSpan: Nd } = Hr;
34199
- if (ns === null) on = nn().errors, Ee[pr] = br(Hr);
34208
+ if (ns === null) sn = nn().errors, Ee[pr] = br(Hr);
34200
34209
  else if (xl(Hr, k)) {
34201
34210
  let xc = nn().errors.find((Ls) => Ls.span.start.offset > Nd.start.offset && Ls.span.start.offset < ns.end.offset);
34202
34211
  xc && $d(xc), Ee[pr] = br(Hr);
34203
34212
  }
34204
34213
  }
34205
34214
  }
34206
- on.length > 0 && $d(on[0]);
34215
+ sn.length > 0 && $d(sn[0]);
34207
34216
  let jt = (dt) => {
34208
34217
  let nn = dt.name.startsWith(":") ? dt.name.slice(1).split(":")[0] : null, br = dt.nameSpan.toString(), pr = nn !== null && br.startsWith(`${nn}:`), Hr = pr ? br.slice(nn.length + 1) : br;
34209
34218
  dt.name = Hr, dt.namespace = nn, dt.hasExplicitNamespace = pr;
@@ -34260,7 +34269,7 @@ ${h}`, k), I = C;
34260
34269
  let jt = new kd(ee, 0, 0, 0), Tt = jt.moveBy($.raw.length);
34261
34270
  $.sourceSpan = new en(jt, Tt), Ve.children.unshift($);
34262
34271
  }
34263
- let Ee = new ai(Ve), on = (jt, Tt) => {
34272
+ let Ee = new ai(Ve), sn = (jt, Tt) => {
34264
34273
  let { offset: It } = Tt, Vn = V(!1, f.slice(0, It), /[^\n\r]/gu, " "), lr = Os(Vn + jt, h, k, !1);
34265
34274
  lr.sourceSpan = new en(Tt, sr(!1, lr.children, -1).sourceSpan.end);
34266
34275
  let yr = lr.children[0];
@@ -34268,7 +34277,7 @@ ${h}`, k), I = C;
34268
34277
  };
34269
34278
  return Ee.walk((jt) => {
34270
34279
  if (jt.type === "comment") {
34271
- let Tt = ts(jt, on);
34280
+ let Tt = ts(jt, sn);
34272
34281
  Tt && jt.parent.replaceChild(jt, Tt);
34273
34282
  }
34274
34283
  kc(jt), _o(jt), wc(jt);