@oslokommune/punkt-react 15.0.1 → 15.0.3

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.
@@ -34,7 +34,7 @@
34
34
  };
35
35
  }
36
36
  import { jsx as h, jsxs as S, Fragment as _e } from "react/jsx-runtime";
37
- import We, { createContext as ia, forwardRef as pt, useContext as sa, useState as Pt, useEffect as xt, useCallback as j, useId as yo, useMemo as re, useRef as _t, useImperativeHandle as na, Fragment as bo, createRef as ko, createElement as $o, Children as On, isValidElement as wo, cloneElement as _o } from "react";
37
+ import We, { createContext as ia, forwardRef as pt, useContext as sa, useState as Pt, useEffect as kt, useCallback as j, useId as yo, useMemo as re, useRef as xt, useImperativeHandle as na, Fragment as bo, createRef as ko, createElement as $o, Children as On, isValidElement as wo, cloneElement as _o } from "react";
38
38
  import { Link as xo } from "react-router-dom";
39
39
  const ra = ia({}), So = () => sa(ra), Co = pt(
40
40
  ({ compact: i = !1, skin: t = "borderless", ariaLabelledBy: e, children: s, name: n, className: r }, a) => {
@@ -4258,7 +4258,7 @@ function _u() {
4258
4258
  _.size && Array.from(_).reverse().map((A) => n.get(A).reportValidity()).includes(!1) && k.preventDefault();
4259
4259
  }
4260
4260
  });
4261
- }, at = (d) => {
4261
+ }, nt = (d) => {
4262
4262
  const u = c.get(d.target);
4263
4263
  u && u.size && u.forEach((k) => {
4264
4264
  k.constructor.formAssociated && k.formResetCallback && k.formResetCallback.apply(k);
@@ -4270,7 +4270,7 @@ function _u() {
4270
4270
  _.add(d);
4271
4271
  else {
4272
4272
  const A = /* @__PURE__ */ new Set();
4273
- A.add(d), c.set(u, A), U(u), u.addEventListener("reset", at), u.addEventListener("input", st), u.addEventListener("change", gt);
4273
+ A.add(d), c.set(u, A), U(u), u.addEventListener("reset", nt), u.addEventListener("input", st), u.addEventListener("change", gt);
4274
4274
  }
4275
4275
  a.set(u, { ref: d, internals: k }), d.constructor.formAssociated && d.formAssociatedCallback && setTimeout(() => {
4276
4276
  d.formAssociatedCallback.apply(d, [u]);
@@ -4370,7 +4370,7 @@ function _u() {
4370
4370
  return this[u] == null ? null : this[u];
4371
4371
  }
4372
4372
  }
4373
- function wt() {
4373
+ function _t() {
4374
4374
  const d = HTMLFormElement.prototype.checkValidity;
4375
4375
  HTMLFormElement.prototype.checkValidity = k;
4376
4376
  const u = HTMLFormElement.prototype.reportValidity;
@@ -4553,7 +4553,7 @@ function _u() {
4553
4553
  const k = Element.prototype.attachShadow;
4554
4554
  Element.prototype.attachShadow = u;
4555
4555
  }
4556
- Nt() && typeof document < "u" && new MutationObserver(z).observe(document.documentElement, H), typeof HTMLFormElement < "u" && wt(), (d || typeof window < "u" && !window.CustomStateSet) && Ne();
4556
+ Nt() && typeof document < "u" && new MutationObserver(z).observe(document.documentElement, H), typeof HTMLFormElement < "u" && _t(), (d || typeof window < "u" && !window.CustomStateSet) && Ne();
4557
4557
  }
4558
4558
  }
4559
4559
  return customElements.polyfillWrapFlushCallback || (vi() ? typeof window < "u" && !window.CustomStateSet && Ne(HTMLElement.prototype.attachInternals) : Be(!1)), i.forceCustomStateSetPolyfill = Ne, i.forceElementInternalsPolyfill = Be, Object.defineProperty(i, "__esModule", { value: !0 }), i;
@@ -5031,7 +5031,7 @@ var Tu = Object.defineProperty, Nu = Object.getOwnPropertyDescriptor, St = (i, t
5031
5031
  (a = i[r]) && (n = (s ? a(t, e, n) : a(n)) || n);
5032
5032
  return s && n && Tu(t, e, n), n;
5033
5033
  };
5034
- let kt = class extends ft {
5034
+ let $t = class extends ft {
5035
5035
  constructor() {
5036
5036
  super(), this.defaultSlot = I(), this.helptextSlot = I(), this.forId = hi(), this.label = "", this.helptext = null, this.helptextDropdown = null, this.helptextDropdownButton = null, this.counter = we.props.counter.default, this.counterCurrent = 0, this.counterMaxLength = 0, this.counterError = null, this.counterPosition = "bottom", this.optionalTag = we.props.optionalTag.default, this.optionalText = we.props.optionalText.default, this.requiredTag = we.props.requiredTag.default, this.requiredText = we.props.requiredText.default, this.tagText = null, this.hasError = we.props.hasError.default, this.errorMessage = "", this.disabled = we.props.disabled.default, this.inline = we.props.inline.default, this.ariaDescribedby = void 0, this.hasFieldset = we.props.hasFieldset.default, this.role = "group", this.useWrapper = we.props.useWrapper.default, this.slotController = new Lt(this, this.defaultSlot, this.helptextSlot);
5037
5037
  }
@@ -5124,76 +5124,76 @@ let kt = class extends ft {
5124
5124
  };
5125
5125
  St([
5126
5126
  o({ type: String })
5127
- ], kt.prototype, "forId", 2);
5127
+ ], $t.prototype, "forId", 2);
5128
5128
  St([
5129
5129
  o({ type: String })
5130
- ], kt.prototype, "label", 2);
5130
+ ], $t.prototype, "label", 2);
5131
5131
  St([
5132
5132
  o({ type: String })
5133
- ], kt.prototype, "helptext", 2);
5133
+ ], $t.prototype, "helptext", 2);
5134
5134
  St([
5135
5135
  o({ type: String })
5136
- ], kt.prototype, "helptextDropdown", 2);
5136
+ ], $t.prototype, "helptextDropdown", 2);
5137
5137
  St([
5138
5138
  o({ type: String })
5139
- ], kt.prototype, "helptextDropdownButton", 2);
5139
+ ], $t.prototype, "helptextDropdownButton", 2);
5140
5140
  St([
5141
5141
  o({ type: Boolean })
5142
- ], kt.prototype, "counter", 2);
5142
+ ], $t.prototype, "counter", 2);
5143
5143
  St([
5144
5144
  o({ type: Number })
5145
- ], kt.prototype, "counterCurrent", 2);
5145
+ ], $t.prototype, "counterCurrent", 2);
5146
5146
  St([
5147
5147
  o({ type: Number })
5148
- ], kt.prototype, "counterMaxLength", 2);
5148
+ ], $t.prototype, "counterMaxLength", 2);
5149
5149
  St([
5150
5150
  o({ type: String })
5151
- ], kt.prototype, "counterError", 2);
5151
+ ], $t.prototype, "counterError", 2);
5152
5152
  St([
5153
5153
  o({ type: String, reflect: !1 })
5154
- ], kt.prototype, "counterPosition", 2);
5154
+ ], $t.prototype, "counterPosition", 2);
5155
5155
  St([
5156
5156
  o({ type: Boolean })
5157
- ], kt.prototype, "optionalTag", 2);
5157
+ ], $t.prototype, "optionalTag", 2);
5158
5158
  St([
5159
5159
  o({ type: String })
5160
- ], kt.prototype, "optionalText", 2);
5160
+ ], $t.prototype, "optionalText", 2);
5161
5161
  St([
5162
5162
  o({ type: Boolean })
5163
- ], kt.prototype, "requiredTag", 2);
5163
+ ], $t.prototype, "requiredTag", 2);
5164
5164
  St([
5165
5165
  o({ type: String })
5166
- ], kt.prototype, "requiredText", 2);
5166
+ ], $t.prototype, "requiredText", 2);
5167
5167
  St([
5168
5168
  o({ type: String })
5169
- ], kt.prototype, "tagText", 2);
5169
+ ], $t.prototype, "tagText", 2);
5170
5170
  St([
5171
5171
  o({ type: Boolean })
5172
- ], kt.prototype, "hasError", 2);
5172
+ ], $t.prototype, "hasError", 2);
5173
5173
  St([
5174
5174
  o({ type: String })
5175
- ], kt.prototype, "errorMessage", 2);
5175
+ ], $t.prototype, "errorMessage", 2);
5176
5176
  St([
5177
5177
  o({ type: Boolean })
5178
- ], kt.prototype, "disabled", 2);
5178
+ ], $t.prototype, "disabled", 2);
5179
5179
  St([
5180
5180
  o({ type: Boolean })
5181
- ], kt.prototype, "inline", 2);
5181
+ ], $t.prototype, "inline", 2);
5182
5182
  St([
5183
5183
  o({ type: String })
5184
- ], kt.prototype, "ariaDescribedby", 2);
5184
+ ], $t.prototype, "ariaDescribedby", 2);
5185
5185
  St([
5186
5186
  o({ type: Boolean })
5187
- ], kt.prototype, "hasFieldset", 2);
5187
+ ], $t.prototype, "hasFieldset", 2);
5188
5188
  St([
5189
5189
  o({ type: String, reflect: !0 })
5190
- ], kt.prototype, "role", 2);
5190
+ ], $t.prototype, "role", 2);
5191
5191
  St([
5192
5192
  o({ type: Boolean, reflect: !0, converter: be })
5193
- ], kt.prototype, "useWrapper", 2);
5194
- kt = St([
5193
+ ], $t.prototype, "useWrapper", 2);
5194
+ $t = St([
5195
5195
  Q("pkt-input-wrapper")
5196
- ], kt);
5196
+ ], $t);
5197
5197
  var Mu = Object.defineProperty, Ou = Object.getOwnPropertyDescriptor, oe = (i, t, e, s) => {
5198
5198
  for (var n = s > 1 ? void 0 : s ? Ou(t, e) : t, r = i.length - 1, a; r >= 0; r--)
5199
5199
  (a = i[r]) && (n = (s ? a(t, e, n) : a(n)) || n);
@@ -7878,7 +7878,7 @@ var xh = Object.defineProperty, Sh = Object.getOwnPropertyDescriptor, lt = (i, t
7878
7878
  return s && n && xh(t, e, n), n;
7879
7879
  };
7880
7880
  const Ch = "https://punkt-cdn.oslo.kommune.no/15.0/logos/";
7881
- let rt = class extends ft {
7881
+ let at = class extends ft {
7882
7882
  constructor() {
7883
7883
  super(), this.searchPlaceholder = "Søk", this.searchValue = "", this.mobileBreakpoint = 768, this.tabletBreakpoint = 1280, this.openedMenu = "none", this.logOutButtonPlacement = "none", this.position = "fixed", this.scrollBehavior = "hide", this.slotMenuVariant = "icon-only", this.slotMenuText = "Meny", this.hideLogo = !1, this.compact = !1, this.showSearch = !1, this.canChangeRepresentation = !1, this.hasLogOut = !1, this.isMobile = !1, this.isTablet = !1, this.openMenu = "none", this.isHidden = !1, this.componentWidth = typeof window < "u" ? window.innerWidth : 0, this.hasSlotContent = !1, this.alignSlotRight = !1, this.alignSearchRight = !1, this.defaultSlot = I(), this.headerRef = I(), this.userContainerRef = I(), this.slotContainerRef = I(), this.searchContainerRef = I(), this.slotContentRef = I(), this.searchMenuRef = I(), this.lastScrollPosition = 0, this.savedScrollY = 0, this.lastFocusedElement = null, this.shouldRestoreFocus = !1, this.handleScroll = () => {
7884
7884
  if (!this.shouldHideOnScroll) return;
@@ -8315,104 +8315,104 @@ let rt = class extends ft {
8315
8315
  };
8316
8316
  lt([
8317
8317
  o({ type: String, attribute: "service-name" })
8318
- ], rt.prototype, "serviceName", 2);
8318
+ ], at.prototype, "serviceName", 2);
8319
8319
  lt([
8320
8320
  o({ type: String, attribute: "service-link" })
8321
- ], rt.prototype, "serviceLink", 2);
8321
+ ], at.prototype, "serviceLink", 2);
8322
8322
  lt([
8323
8323
  o({ type: String, attribute: "logo-link" })
8324
- ], rt.prototype, "logoLink", 2);
8324
+ ], at.prototype, "logoLink", 2);
8325
8325
  lt([
8326
8326
  o({ type: String, attribute: "search-placeholder" })
8327
- ], rt.prototype, "searchPlaceholder", 2);
8327
+ ], at.prototype, "searchPlaceholder", 2);
8328
8328
  lt([
8329
8329
  o({ type: String, attribute: "search-value" })
8330
- ], rt.prototype, "searchValue", 2);
8330
+ ], at.prototype, "searchValue", 2);
8331
8331
  lt([
8332
8332
  o({ type: Number, attribute: "mobile-breakpoint" })
8333
- ], rt.prototype, "mobileBreakpoint", 2);
8333
+ ], at.prototype, "mobileBreakpoint", 2);
8334
8334
  lt([
8335
8335
  o({ type: Number, attribute: "tablet-breakpoint" })
8336
- ], rt.prototype, "tabletBreakpoint", 2);
8336
+ ], at.prototype, "tabletBreakpoint", 2);
8337
8337
  lt([
8338
8338
  o({ type: String, attribute: "opened-menu" })
8339
- ], rt.prototype, "openedMenu", 2);
8339
+ ], at.prototype, "openedMenu", 2);
8340
8340
  lt([
8341
8341
  o({ type: String, attribute: "log-out-button-placement" })
8342
- ], rt.prototype, "logOutButtonPlacement", 2);
8342
+ ], at.prototype, "logOutButtonPlacement", 2);
8343
8343
  lt([
8344
8344
  o({ type: String })
8345
- ], rt.prototype, "position", 2);
8345
+ ], at.prototype, "position", 2);
8346
8346
  lt([
8347
8347
  o({ type: String, attribute: "scroll-behavior" })
8348
- ], rt.prototype, "scrollBehavior", 2);
8348
+ ], at.prototype, "scrollBehavior", 2);
8349
8349
  lt([
8350
8350
  o({ type: String, attribute: "slot-menu-variant" })
8351
- ], rt.prototype, "slotMenuVariant", 2);
8351
+ ], at.prototype, "slotMenuVariant", 2);
8352
8352
  lt([
8353
8353
  o({ type: String, attribute: "slot-menu-text" })
8354
- ], rt.prototype, "slotMenuText", 2);
8354
+ ], at.prototype, "slotMenuText", 2);
8355
8355
  lt([
8356
8356
  o({ type: Boolean, attribute: "hide-logo", converter: be })
8357
- ], rt.prototype, "hideLogo", 2);
8357
+ ], at.prototype, "hideLogo", 2);
8358
8358
  lt([
8359
8359
  o({ type: Boolean, converter: be })
8360
- ], rt.prototype, "compact", 2);
8360
+ ], at.prototype, "compact", 2);
8361
8361
  lt([
8362
8362
  o({ type: Boolean, attribute: "show-search", converter: be })
8363
- ], rt.prototype, "showSearch", 2);
8363
+ ], at.prototype, "showSearch", 2);
8364
8364
  lt([
8365
8365
  o({
8366
8366
  type: Boolean,
8367
8367
  attribute: "can-change-representation",
8368
8368
  converter: be
8369
8369
  })
8370
- ], rt.prototype, "canChangeRepresentation", 2);
8370
+ ], at.prototype, "canChangeRepresentation", 2);
8371
8371
  lt([
8372
8372
  o({ type: Boolean, attribute: "has-log-out", converter: be })
8373
- ], rt.prototype, "hasLogOut", 2);
8373
+ ], at.prototype, "hasLogOut", 2);
8374
8374
  lt([
8375
8375
  o({ type: Object })
8376
- ], rt.prototype, "user", 2);
8376
+ ], at.prototype, "user", 2);
8377
8377
  lt([
8378
8378
  o({ type: Array, attribute: "user-menu" })
8379
- ], rt.prototype, "userMenu", 2);
8379
+ ], at.prototype, "userMenu", 2);
8380
8380
  lt([
8381
8381
  o({ type: Object })
8382
- ], rt.prototype, "representing", 2);
8382
+ ], at.prototype, "representing", 2);
8383
8383
  lt([
8384
8384
  W()
8385
- ], rt.prototype, "isMobile", 2);
8385
+ ], at.prototype, "isMobile", 2);
8386
8386
  lt([
8387
8387
  W()
8388
- ], rt.prototype, "isTablet", 2);
8388
+ ], at.prototype, "isTablet", 2);
8389
8389
  lt([
8390
8390
  W()
8391
- ], rt.prototype, "openMenu", 2);
8391
+ ], at.prototype, "openMenu", 2);
8392
8392
  lt([
8393
8393
  W()
8394
- ], rt.prototype, "isHidden", 2);
8394
+ ], at.prototype, "isHidden", 2);
8395
8395
  lt([
8396
8396
  W()
8397
- ], rt.prototype, "componentWidth", 2);
8397
+ ], at.prototype, "componentWidth", 2);
8398
8398
  lt([
8399
8399
  W()
8400
- ], rt.prototype, "hasSlotContent", 2);
8400
+ ], at.prototype, "hasSlotContent", 2);
8401
8401
  lt([
8402
8402
  W()
8403
- ], rt.prototype, "alignSlotRight", 2);
8403
+ ], at.prototype, "alignSlotRight", 2);
8404
8404
  lt([
8405
8405
  W()
8406
- ], rt.prototype, "alignSearchRight", 2);
8407
- rt = lt([
8406
+ ], at.prototype, "alignSearchRight", 2);
8407
+ at = lt([
8408
8408
  Q("pkt-header-service")
8409
- ], rt);
8409
+ ], at);
8410
8410
  var Th = Object.defineProperty, Nh = Object.getOwnPropertyDescriptor, Ct = (i, t, e, s) => {
8411
8411
  for (var n = s > 1 ? void 0 : s ? Nh(t, e) : t, r = i.length - 1, a; r >= 0; r--)
8412
8412
  (a = i[r]) && (n = (s ? a(t, e, n) : a(n)) || n);
8413
8413
  return s && n && Th(t, e, n), n;
8414
8414
  };
8415
- let $t = class extends ft {
8415
+ let wt = class extends ft {
8416
8416
  constructor() {
8417
8417
  super(), this.defaultSlot = I(), this.searchPlaceholder = "Søk", this.searchValue = "", this.mobileBreakpoint = 768, this.tabletBreakpoint = 1280, this.openedMenu = "none", this.logOutButtonPlacement = "none", this.position = "fixed", this.scrollBehavior = "hide", this.slotMenuVariant = "icon-only", this.slotMenuText = "Meny", this.hideLogo = !1, this.compact = !1, this.showSearch = !1, this.canChangeRepresentation = !1, this.hasLogOut = !1, this.slotController = new Lt(this, this.defaultSlot);
8418
8418
  }
@@ -8461,80 +8461,80 @@ let $t = class extends ft {
8461
8461
  };
8462
8462
  Ct([
8463
8463
  o({ type: String, attribute: "service-name" })
8464
- ], $t.prototype, "serviceName", 2);
8464
+ ], wt.prototype, "serviceName", 2);
8465
8465
  Ct([
8466
8466
  o({ type: String, attribute: "service-link" })
8467
- ], $t.prototype, "serviceLink", 2);
8467
+ ], wt.prototype, "serviceLink", 2);
8468
8468
  Ct([
8469
8469
  o({ type: String, attribute: "logo-link" })
8470
- ], $t.prototype, "logoLink", 2);
8470
+ ], wt.prototype, "logoLink", 2);
8471
8471
  Ct([
8472
8472
  o({ type: String, attribute: "search-placeholder" })
8473
- ], $t.prototype, "searchPlaceholder", 2);
8473
+ ], wt.prototype, "searchPlaceholder", 2);
8474
8474
  Ct([
8475
8475
  o({ type: String, attribute: "search-value" })
8476
- ], $t.prototype, "searchValue", 2);
8476
+ ], wt.prototype, "searchValue", 2);
8477
8477
  Ct([
8478
8478
  o({ type: Number, attribute: "mobile-breakpoint" })
8479
- ], $t.prototype, "mobileBreakpoint", 2);
8479
+ ], wt.prototype, "mobileBreakpoint", 2);
8480
8480
  Ct([
8481
8481
  o({ type: Number, attribute: "tablet-breakpoint" })
8482
- ], $t.prototype, "tabletBreakpoint", 2);
8482
+ ], wt.prototype, "tabletBreakpoint", 2);
8483
8483
  Ct([
8484
8484
  o({ type: String, attribute: "opened-menu" })
8485
- ], $t.prototype, "openedMenu", 2);
8485
+ ], wt.prototype, "openedMenu", 2);
8486
8486
  Ct([
8487
8487
  o({ type: String, attribute: "log-out-button-placement" })
8488
- ], $t.prototype, "logOutButtonPlacement", 2);
8488
+ ], wt.prototype, "logOutButtonPlacement", 2);
8489
8489
  Ct([
8490
8490
  o({ type: String })
8491
- ], $t.prototype, "position", 2);
8491
+ ], wt.prototype, "position", 2);
8492
8492
  Ct([
8493
8493
  o({ type: String, attribute: "scroll-behavior" })
8494
- ], $t.prototype, "scrollBehavior", 2);
8494
+ ], wt.prototype, "scrollBehavior", 2);
8495
8495
  Ct([
8496
8496
  o({ type: String, attribute: "slot-menu-variant" })
8497
- ], $t.prototype, "slotMenuVariant", 2);
8497
+ ], wt.prototype, "slotMenuVariant", 2);
8498
8498
  Ct([
8499
8499
  o({ type: String, attribute: "slot-menu-text" })
8500
- ], $t.prototype, "slotMenuText", 2);
8500
+ ], wt.prototype, "slotMenuText", 2);
8501
8501
  Ct([
8502
8502
  o({ type: Boolean, attribute: "hide-logo", converter: be })
8503
- ], $t.prototype, "hideLogo", 2);
8503
+ ], wt.prototype, "hideLogo", 2);
8504
8504
  Ct([
8505
8505
  o({ type: Boolean, converter: be })
8506
- ], $t.prototype, "compact", 2);
8506
+ ], wt.prototype, "compact", 2);
8507
8507
  Ct([
8508
8508
  o({ type: Boolean, attribute: "show-search", converter: be })
8509
- ], $t.prototype, "showSearch", 2);
8509
+ ], wt.prototype, "showSearch", 2);
8510
8510
  Ct([
8511
8511
  o({
8512
8512
  type: Boolean,
8513
8513
  attribute: "can-change-representation",
8514
8514
  converter: be
8515
8515
  })
8516
- ], $t.prototype, "canChangeRepresentation", 2);
8516
+ ], wt.prototype, "canChangeRepresentation", 2);
8517
8517
  Ct([
8518
8518
  o({ type: Boolean, attribute: "has-log-out", converter: be })
8519
- ], $t.prototype, "hasLogOut", 2);
8519
+ ], wt.prototype, "hasLogOut", 2);
8520
8520
  Ct([
8521
8521
  o({ type: Object })
8522
- ], $t.prototype, "user", 2);
8522
+ ], wt.prototype, "user", 2);
8523
8523
  Ct([
8524
8524
  o({ type: Array, attribute: "user-menu" })
8525
- ], $t.prototype, "userMenu", 2);
8525
+ ], wt.prototype, "userMenu", 2);
8526
8526
  Ct([
8527
8527
  o({ type: Object })
8528
- ], $t.prototype, "representing", 2);
8528
+ ], wt.prototype, "representing", 2);
8529
8529
  Ct([
8530
8530
  o({ type: Array, attribute: "user-menu-footer" })
8531
- ], $t.prototype, "userMenuFooter", 2);
8531
+ ], wt.prototype, "userMenuFooter", 2);
8532
8532
  Ct([
8533
8533
  o({ type: Array, attribute: "user-options" })
8534
- ], $t.prototype, "userOptions", 2);
8535
- $t = Ct([
8534
+ ], wt.prototype, "userOptions", 2);
8535
+ wt = Ct([
8536
8536
  Q("pkt-header")
8537
- ], $t);
8537
+ ], wt);
8538
8538
  var Mh = Object.defineProperty, Oh = Object.getOwnPropertyDescriptor, Li = (i, t, e, s) => {
8539
8539
  for (var n = s > 1 ? void 0 : s ? Oh(t, e) : t, r = i.length - 1, a; r >= 0; r--)
8540
8540
  (a = i[r]) && (n = (s ? a(t, e, n) : a(n)) || n);
@@ -9800,7 +9800,7 @@ const it = qe({
9800
9800
  onToggle: g
9801
9801
  }, v) => {
9802
9802
  const [y, b] = Pt(i), { name: m } = So(), $ = l || m, C = r !== void 0 ? r : y;
9803
- xt(() => {
9803
+ kt(() => {
9804
9804
  r === void 0 && b(i);
9805
9805
  }, [i, r]);
9806
9806
  const N = (T) => {
@@ -9881,7 +9881,7 @@ function od() {
9881
9881
  })(Cn)), Cn.exports;
9882
9882
  }
9883
9883
  var ld = od();
9884
- const nt = /* @__PURE__ */ ad(ld), Fa = ({
9884
+ const rt = /* @__PURE__ */ ad(ld), Fa = ({
9885
9885
  children: i,
9886
9886
  closeAlert: t,
9887
9887
  compact: e,
@@ -9906,7 +9906,7 @@ const nt = /* @__PURE__ */ ad(ld), Fa = ({
9906
9906
  }, $ = j(() => {
9907
9907
  y(!0), g.onClose && g.onClose(new CustomEvent("close", { detail: { origin: event }, bubbles: !0, composed: !0 }));
9908
9908
  }, [g.onClose, y]);
9909
- return /* @__PURE__ */ h("div", { ...g, "aria-live": r || a, role: l, className: nt(b, p), children: /* @__PURE__ */ S("div", { className: nt(m), children: [
9909
+ return /* @__PURE__ */ h("div", { ...g, "aria-live": r || a, role: l, className: rt(b, p), children: /* @__PURE__ */ S("div", { className: rt(m), children: [
9910
9910
  /* @__PURE__ */ h(
9911
9911
  it,
9912
9912
  {
@@ -11718,11 +11718,11 @@ function Wp(i) {
11718
11718
  } = i, x = yo(), E = C ?? x, T = re(() => ({ ...Up, ...b }), [b]), F = re(
11719
11719
  () => y ? Fe(y) : wp(),
11720
11720
  [y]
11721
- ), z = re(() => l ? l.map((d) => typeof d == "string" ? Fe(d) : d) : [], [l]), tt = t !== void 0, [Tt, H] = Pt([]), P = tt ? t : Tt, Y = re(() => Qa(P), [P]), [X, q] = Pt(0), [Z, et] = Pt(0), [ht, st] = Pt({}), [gt, U] = Pt(null), [at, At] = Pt(null), ot = _t(null), J = _t([]), se = _t(0), Kt = _t(!1), Nt = _t(!1), ne = re(
11721
+ ), z = re(() => l ? l.map((d) => typeof d == "string" ? Fe(d) : d) : [], [l]), tt = t !== void 0, [Tt, H] = Pt([]), P = tt ? t : Tt, Y = re(() => Qa(P), [P]), [X, q] = Pt(0), [Z, et] = Pt(0), [ht, st] = Pt({}), [gt, U] = Pt(null), [nt, At] = Pt(null), ot = xt(null), J = xt([]), se = xt(0), Kt = xt(!1), Nt = xt(!1), ne = re(
11722
11722
  () => ({ earliest: r, latest: a, excludedates: z, excludeweekdays: c }),
11723
11723
  [r, a, z, c]
11724
11724
  );
11725
- xt(() => {
11725
+ kt(() => {
11726
11726
  let d = null;
11727
11727
  if (v != null && (v instanceof Date ? d = ms(v) : typeof v == "string" && (d = Fe(v))), !d || isNaN(d.getTime()))
11728
11728
  if (P.length > 0 && P[0] !== "") {
@@ -11739,12 +11739,12 @@ function Wp(i) {
11739
11739
  !isNaN(u.getTime()) && d < u && (d = u);
11740
11740
  }
11741
11741
  q(d.getFullYear()), et(d.getMonth()), Nt.current = !0;
11742
- }, []), xt(() => {
11742
+ }, []), kt(() => {
11743
11743
  if (Nt.current && !Kt.current && P.length > 0 && P[0] !== "") {
11744
11744
  const d = Fe(P[P.length - 1]);
11745
11745
  isNaN(d.getTime()) || (q(d.getFullYear()), et(d.getMonth()));
11746
11746
  }
11747
- }, [P]), xt(() => {
11747
+ }, [P]), kt(() => {
11748
11748
  n && Y.length === 2 ? st(Jr(Y[0], Y[1])) : (!n || Y.length < 2) && st({});
11749
11749
  }, [n, Y]);
11750
11750
  const ce = j(
@@ -11807,7 +11807,7 @@ function Wp(i) {
11807
11807
  yt,
11808
11808
  m
11809
11809
  ]
11810
- ), wt = j(
11810
+ ), _t = j(
11811
11811
  (d) => {
11812
11812
  const u = Gn(d, bt());
11813
11813
  tt || H(u), n && u.length === 2 && (m == null || m(u), yt());
@@ -11843,17 +11843,17 @@ function Wp(i) {
11843
11843
  (d, u) => {
11844
11844
  const k = d.target;
11845
11845
  if (jp(k)) return;
11846
- if (d.preventDefault(), !at) {
11846
+ if (d.preventDefault(), !nt) {
11847
11847
  fe();
11848
11848
  return;
11849
11849
  }
11850
- const _ = Ze(at), A = Vp(_, u, ot.current.querySelector.bind(ot.current));
11850
+ const _ = Ze(nt), A = Vp(_, u, ot.current.querySelector.bind(ot.current));
11851
11851
  if (A) {
11852
11852
  const B = ot.current.querySelector(`button[data-date="${Jt(A)}"]`);
11853
11853
  B instanceof HTMLButtonElement && !B.dataset.disabled && (At(Jt(A)), B.focus());
11854
11854
  }
11855
11855
  },
11856
- [at, fe]
11856
+ [nt, fe]
11857
11857
  ), Ne = j(
11858
11858
  (d) => {
11859
11859
  if (d.key === "Escape") {
@@ -11880,7 +11880,7 @@ function Wp(i) {
11880
11880
  _selected: Y,
11881
11881
  inRange: ht,
11882
11882
  rangeHovered: gt,
11883
- focusedDate: at,
11883
+ focusedDate: nt,
11884
11884
  range: n,
11885
11885
  multiple: e,
11886
11886
  weeknumbers: p,
@@ -11898,7 +11898,7 @@ function Wp(i) {
11898
11898
  nextMonth: Zt,
11899
11899
  changeMonth: Ot,
11900
11900
  handleDateSelect: Dt,
11901
- addToSelected: wt,
11901
+ addToSelected: _t,
11902
11902
  removeFromSelected: Et,
11903
11903
  toggleSelectedDate: vi,
11904
11904
  handleRangeHover: jt,
@@ -12005,7 +12005,7 @@ function zp(i, t, e) {
12005
12005
  }
12006
12006
  function Yp(i, t) {
12007
12007
  const { currentDateISO: e, isToday: s, isSelected: n } = i, r = t.range && (t.activeSelected.length === 2 || t.rangeHovered !== null) && e === t.activeSelected[0], a = t.range && t.activeSelected.length === 2 && e === t.activeSelected[1];
12008
- return nt({
12008
+ return rt({
12009
12009
  "pkt-cal-today": s,
12010
12010
  "pkt-cal-selected": n,
12011
12011
  "pkt-cal-in-range": t.inRange[e],
@@ -12017,7 +12017,7 @@ function Yp(i, t) {
12017
12017
  }
12018
12018
  function Kp(i, t) {
12019
12019
  const { currentDateISO: e, isToday: s, isSelected: n, isDisabled: r } = i, a = t.range && (t.activeSelected.length === 2 || t.rangeHovered !== null) && e === t.activeSelected[0], l = t.range && t.activeSelected.length === 2 && e === t.activeSelected[1];
12020
- return nt({
12020
+ return rt({
12021
12021
  "pkt-calendar__date": !0,
12022
12022
  "pkt-calendar__date--today": s,
12023
12023
  "pkt-calendar__date--selected": n,
@@ -12090,11 +12090,11 @@ const Gp = ({ state: i }) => {
12090
12090
  tabIndex: parseInt(st),
12091
12091
  "data-disabled": et ? "disabled" : void 0,
12092
12092
  "data-date": q,
12093
- onKeyDown: (at) => {
12094
- (at.key === "Enter" || at.key === " ") && (at.preventDefault(), b(X));
12093
+ onKeyDown: (nt) => {
12094
+ (nt.key === "Enter" || nt.key === " ") && (nt.preventDefault(), b(X));
12095
12095
  },
12096
- onClick: (at) => {
12097
- et || (at.preventDefault(), b(X));
12096
+ onClick: (nt) => {
12097
+ et || (nt.preventDefault(), b(X));
12098
12098
  },
12099
12099
  children: /* @__PURE__ */ h("span", { className: "pkt-btn__text pkt-txt-14-light", children: H })
12100
12100
  }
@@ -12210,10 +12210,10 @@ const Zp = pt(
12210
12210
  tagText: N,
12211
12211
  ...x
12212
12212
  }, E) => {
12213
- const T = _t(null);
12214
- xt(() => {
12213
+ const T = xt(null);
12214
+ kt(() => {
12215
12215
  T.current && y !== void 0 && (T.current.indeterminate = y);
12216
- }, [y]), xt(() => {
12216
+ }, [y]), kt(() => {
12217
12217
  typeof E == "function" ? E(T.current) : E && (E.current = T.current);
12218
12218
  }, [E]);
12219
12219
  const F = [a, "pkt-input-check"].filter(Boolean).join(" "), z = [
@@ -12329,7 +12329,7 @@ const js = pt(
12329
12329
  y && /* @__PURE__ */ h("span", { className: st + " pkt-tag--gray", children: y }),
12330
12330
  c && /* @__PURE__ */ h("span", { className: st + " pkt-tag--blue-light", children: p }),
12331
12331
  g && /* @__PURE__ */ h("span", { className: st + " pkt-tag--beige", children: v })
12332
- ] }), at = () => {
12332
+ ] }), nt = () => {
12333
12333
  const J = /* @__PURE__ */ S(_e, { children: [
12334
12334
  t,
12335
12335
  " ",
@@ -12367,7 +12367,7 @@ const js = pt(
12367
12367
  )
12368
12368
  ] })
12369
12369
  ] }), ot = /* @__PURE__ */ S(_e, { children: [
12370
- at(),
12370
+ nt(),
12371
12371
  At(),
12372
12372
  q && /* @__PURE__ */ h(gt, {}),
12373
12373
  E,
@@ -12426,8 +12426,8 @@ const Ja = () => {
12426
12426
  onDateSelected: $,
12427
12427
  onClose: C
12428
12428
  }) => {
12429
- const N = _t(null), x = _t(!1);
12430
- i && (x.current = !0), xt(() => {
12429
+ const N = xt(null), x = xt(!1);
12430
+ i && (x.current = !0), kt(() => {
12431
12431
  i && lf(N.current, (b == null ? void 0 : b.current) ?? null, m);
12432
12432
  }, [i, b, m]);
12433
12433
  const E = ["pkt-calendar-popup", i ? "show" : "hide"].join(" "), T = i || x.current;
@@ -12476,8 +12476,8 @@ const Ja = () => {
12476
12476
  }, y) => {
12477
12477
  const [b, m] = Pt(!1), $ = j(() => {
12478
12478
  m(!0), c && c();
12479
- }, [c]), C = _t(null), [N, x] = Pt("");
12480
- xt(() => {
12479
+ }, [c]), C = xt(null), [N, x] = Pt("");
12480
+ kt(() => {
12481
12481
  var z, tt;
12482
12482
  x(((tt = (z = C.current) == null ? void 0 : z.textContent) == null ? void 0 : tt.trim()) ?? "");
12483
12483
  }, [i]);
@@ -12502,7 +12502,7 @@ const Ja = () => {
12502
12502
  "button",
12503
12503
  {
12504
12504
  ...v,
12505
- className: nt(F, r),
12505
+ className: rt(F, r),
12506
12506
  type: p,
12507
12507
  onClick: $,
12508
12508
  "aria-label": l,
@@ -12514,7 +12514,7 @@ const Ja = () => {
12514
12514
  /* @__PURE__ */ h(it, { className: "pkt-tag__close-btn", name: "close" })
12515
12515
  ]
12516
12516
  }
12517
- ) : /* @__PURE__ */ S("span", { ...v, className: nt(T, r), ref: y, children: [
12517
+ ) : /* @__PURE__ */ S("span", { ...v, className: rt(T, r), ref: y, children: [
12518
12518
  a && /* @__PURE__ */ h(it, { className: "pkt-tag__icon", name: a, "aria-hidden": "true" }),
12519
12519
  /* @__PURE__ */ h("span", { ref: C, children: i })
12520
12520
  ] });
@@ -12582,7 +12582,7 @@ const uf = ({
12582
12582
  handleRangeToChange: st,
12583
12583
  handleRangeBlur: gt,
12584
12584
  handleMultipleBlur: U,
12585
- handleTagRemoved: at,
12585
+ handleTagRemoved: nt,
12586
12586
  handleSingleKeydown: At,
12587
12587
  handleRangeFromKeydown: ot,
12588
12588
  handleRangeToKeydown: J,
@@ -12607,7 +12607,7 @@ const uf = ({
12607
12607
  );
12608
12608
  };
12609
12609
  return r ? /* @__PURE__ */ S(_e, { children: [
12610
- /* @__PURE__ */ h(uf, { dates: s, dateformat: n, idBase: t, strings: T, onDateRemoved: at }),
12610
+ /* @__PURE__ */ h(uf, { dates: s, dateformat: n, idBase: t, strings: T, onDateRemoved: nt }),
12611
12611
  /* @__PURE__ */ h("div", { className: "pkt-datepicker__inputs", children: /* @__PURE__ */ S("div", { className: "pkt-input__container", children: [
12612
12612
  /* @__PURE__ */ h(
12613
12613
  "input",
@@ -12757,7 +12757,7 @@ function ff(i, t) {
12757
12757
  strings: st,
12758
12758
  disabled: gt = !1,
12759
12759
  readOnly: U = !1,
12760
- required: at = !1,
12760
+ required: nt = !1,
12761
12761
  name: At,
12762
12762
  min: ot,
12763
12763
  max: J,
@@ -12767,14 +12767,14 @@ function ff(i, t) {
12767
12767
  className: ne,
12768
12768
  ...ce
12769
12769
  } = i, yt = j((M) => M === void 0 ? [] : ea(M), []), Ot = n !== void 0, Xt = typeof r == "number" ? void 0 : r, [Zt, pe] = Pt(() => yt(n ?? Xt)), vt = Ot ? yt(n) : Zt;
12770
- xt(() => {
12770
+ kt(() => {
12771
12771
  Ot && pe(yt(n));
12772
12772
  }, [n, Ot, yt]);
12773
12773
  const [bt, jt] = Pt(N ?? !1);
12774
- xt(() => {
12774
+ kt(() => {
12775
12775
  N !== void 0 && jt(N);
12776
12776
  }, [N]);
12777
- const Dt = _t(null), wt = _t(null), Et = _t(null), vi = _t(null), fe = _t(null), Te = re(() => ef(), []), Ne = re(() => Ja(), []), Be = re(
12777
+ const Dt = xt(null), _t = xt(null), Et = xt(null), vi = xt(null), fe = xt(null), Te = re(() => ef(), []), Ne = re(() => Ja(), []), Be = re(
12778
12778
  () => st ?? (p ? pf : df),
12779
12779
  [st, p]
12780
12780
  ), d = typeof ot == "string" ? ot : ot !== void 0 ? String(ot) : void 0, u = typeof J == "string" ? J : J !== void 0 ? String(J) : void 0, k = re(() => {
@@ -12793,9 +12793,9 @@ function ff(i, t) {
12793
12793
  if ($) return $;
12794
12794
  if (u) return u.slice(0, 7);
12795
12795
  }, [$, u]), ue = gt || l && c != null && vt.length >= c, Vt = l && c != null, he = `${e}-input`, ni = vt.join(",");
12796
- xt(() => {
12796
+ kt(() => {
12797
12797
  Et.current && (Et.current.value = ni);
12798
- }, [ni]), xt(() => {
12798
+ }, [ni]), kt(() => {
12799
12799
  x && typeof window < "u" && x !== window.pktTz && (window.pktTz = x);
12800
12800
  }, [x]);
12801
12801
  const Gt = j(
@@ -12820,7 +12820,7 @@ function ff(i, t) {
12820
12820
  }, [gt]), ri = j(() => {
12821
12821
  jt(!1);
12822
12822
  }, []);
12823
- xt(() => {
12823
+ kt(() => {
12824
12824
  if (!bt) return;
12825
12825
  const M = (Ht) => {
12826
12826
  var $e;
@@ -12918,7 +12918,7 @@ function ff(i, t) {
12918
12918
  () => ai(Dt.current),
12919
12919
  () => {
12920
12920
  var O;
12921
- return (O = wt.current) == null ? void 0 : O.focus();
12921
+ return (O = _t.current) == null ? void 0 : O.focus();
12922
12922
  },
12923
12923
  () => {
12924
12924
  var O;
@@ -12932,11 +12932,11 @@ function ff(i, t) {
12932
12932
  qs(
12933
12933
  M.nativeEvent,
12934
12934
  () => Qe(),
12935
- () => ai(wt.current),
12935
+ () => ai(_t.current),
12936
12936
  void 0,
12937
12937
  () => {
12938
12938
  var O;
12939
- return (O = wt.current) == null ? void 0 : O.blur();
12939
+ return (O = _t.current) == null ? void 0 : O.blur();
12940
12940
  }
12941
12941
  );
12942
12942
  },
@@ -12995,7 +12995,7 @@ function ff(i, t) {
12995
12995
  excludeweekdays: m,
12996
12996
  disabled: gt,
12997
12997
  readOnly: U,
12998
- required: at,
12998
+ required: nt,
12999
12999
  name: At,
13000
13000
  placeholder: se,
13001
13001
  fullwidth: E,
@@ -13027,7 +13027,7 @@ function ff(i, t) {
13027
13027
  isInputDisabled: ue,
13028
13028
  hasCounter: Vt,
13029
13029
  inputRef: Dt,
13030
- inputRefTo: wt,
13030
+ inputRefTo: _t,
13031
13031
  changeInputRef: Et,
13032
13032
  btnRef: vi,
13033
13033
  wrapperRef: fe,
@@ -13320,7 +13320,7 @@ const qm = ({
13320
13320
  ] }) }) });
13321
13321
  }, gf = (i, t) => {
13322
13322
  const e = () => typeof window > "u" ? 0 : window.innerWidth, [s, n] = Pt(e);
13323
- return xt(() => {
13323
+ return kt(() => {
13324
13324
  const r = i.current;
13325
13325
  if (!r) return;
13326
13326
  if (n(r.offsetWidth), typeof ResizeObserver > "u") {
@@ -13339,8 +13339,8 @@ const qm = ({
13339
13339
  }, [i]), s;
13340
13340
  };
13341
13341
  function vf(i) {
13342
- const t = _t(0);
13343
- xt(() => {
13342
+ const t = xt(0);
13343
+ kt(() => {
13344
13344
  const e = document.body, s = document.documentElement;
13345
13345
  if (i) {
13346
13346
  t.current = window.scrollY || window.pageYOffset;
@@ -13366,7 +13366,7 @@ const Jn = ({
13366
13366
  "a",
13367
13367
  {
13368
13368
  ...l,
13369
- className: nt({
13369
+ className: rt({
13370
13370
  "pkt-link": !0,
13371
13371
  "pkt-link--icon-left": !!t && s === "left" || !!(t && !s),
13372
13372
  "pkt-link--icon-right": !!t && s === "right",
@@ -13388,13 +13388,13 @@ const yf = (i) => typeof i.target == "string" ? { title: i.title, iconName: i.ic
13388
13388
  iconName: i.iconName,
13389
13389
  href: i.href,
13390
13390
  "aria-hidden": "true",
13391
- className: nt("pkt-user-menu__link", t),
13391
+ className: rt("pkt-user-menu__link", t),
13392
13392
  children: i.title
13393
13393
  }
13394
13394
  ) : /* @__PURE__ */ S(
13395
13395
  "button",
13396
13396
  {
13397
- className: nt("pkt-user-menu__link pkt-link-button pkt-link pkt-link--icon-left", t),
13397
+ className: rt("pkt-user-menu__link pkt-link-button pkt-link pkt-link--icon-left", t),
13398
13398
  type: "button",
13399
13399
  onClick: () => {
13400
13400
  "onClick" in i && typeof i.onClick == "function" ? i.onClick() : console.error("UserMenuButton item is missing onClick handler or onClick is not a function:", i);
@@ -13488,7 +13488,7 @@ const Fn = pt(
13488
13488
  max: st,
13489
13489
  step: gt,
13490
13490
  size: U,
13491
- readonly: at,
13491
+ readonly: nt,
13492
13492
  required: At,
13493
13493
  dataTestid: ot,
13494
13494
  onChange: J,
@@ -13496,10 +13496,10 @@ const Fn = pt(
13496
13496
  ...Kt
13497
13497
  }, Nt) => {
13498
13498
  const ne = [a, "pkt-textinput"].join(" "), ce = P === "search" && !b && !X, yt = P === "date" && q ? q.slice(0, 10) : q, [Ot, Xt] = Pt((q == null ? void 0 : q.length) || 0), Zt = `${i}`, pe = `${Zt}-label`, vt = e || pe, bt = (jt) => {
13499
- var Dt, wt;
13500
- n && Xt(((wt = (Dt = jt.currentTarget) == null ? void 0 : Dt.value) == null ? void 0 : wt.length) || 0), J && J(jt);
13499
+ var Dt, _t;
13500
+ n && Xt(((_t = (Dt = jt.currentTarget) == null ? void 0 : Dt.value) == null ? void 0 : _t.length) || 0), J && J(jt);
13501
13501
  };
13502
- return xt(() => {
13502
+ return kt(() => {
13503
13503
  q !== void 0 && Xt((q == null ? void 0 : q.length) || 0);
13504
13504
  }, [q]), /* @__PURE__ */ h(
13505
13505
  js,
@@ -13555,7 +13555,7 @@ const Fn = pt(
13555
13555
  minLength: Z,
13556
13556
  maxLength: et,
13557
13557
  size: U,
13558
- readOnly: at,
13558
+ readOnly: nt,
13559
13559
  required: At
13560
13560
  }
13561
13561
  ),
@@ -13609,13 +13609,13 @@ const eo = pt(
13609
13609
  slotMenuText: Z = "Meny"
13610
13610
  }, et) => {
13611
13611
  const ht = Y === "fixed", st = X === "hide";
13612
- xt(() => {
13612
+ kt(() => {
13613
13613
  T && console.warn(
13614
13614
  'PktHeaderService: The "userMenuFooter" prop is deprecated and will be removed in a future version. Please use "userMenu" instead.'
13615
13615
  );
13616
- }, [T]), xt(() => {
13616
+ }, [T]), kt(() => {
13617
13617
  F && console.warn('PktHeaderService: The "userOptions" prop is no longer available. Please use "userMenu" instead.');
13618
- }, [F]), xt(() => {
13618
+ }, [F]), kt(() => {
13619
13619
  x != null && x.shortname && console.warn(
13620
13620
  'PktHeaderService: The "shortname" property on the user object is deprecated and will be removed in a future version.'
13621
13621
  ), m != null && m.shortname && console.warn(
@@ -13629,13 +13629,17 @@ const eo = pt(
13629
13629
  month: "long",
13630
13630
  day: "numeric"
13631
13631
  });
13632
- }, [x == null ? void 0 : x.lastLoggedIn]), [U, at] = Pt(c || "none"), [At, ot] = Pt(!1), [J, se] = Pt(0), [Kt, Nt] = Pt(!1), [ne, ce] = Pt(!1), yt = _t(null), Ot = _t(null), Xt = _t(null), Zt = _t(null), pe = _t(null), vt = _t(null), bt = _t(null), jt = _t(!1), Dt = gf(yt), wt = Dt < i, Et = Dt < t, vi = j(
13632
+ }, [x == null ? void 0 : x.lastLoggedIn]), [U, nt] = Pt(c || "none");
13633
+ kt(() => {
13634
+ c !== void 0 && nt(c);
13635
+ }, [c]);
13636
+ const [At, ot] = Pt(!1), [J, se] = Pt(0), [Kt, Nt] = Pt(!1), [ne, ce] = Pt(!1), yt = xt(null), Ot = xt(null), Xt = xt(null), Zt = xt(null), pe = xt(null), vt = xt(null), bt = xt(null), jt = xt(!1), Dt = gf(yt), _t = Dt < i, Et = Dt < t, vi = j(
13633
13637
  (u) => {
13634
13638
  yt.current = u, typeof et == "function" ? et(u) : et && (et.current = u);
13635
13639
  },
13636
13640
  [et]
13637
13641
  );
13638
- vf(ht && wt && U !== "none");
13642
+ vf(ht && _t && U !== "none");
13639
13643
  const fe = j((u, k) => {
13640
13644
  const _ = u.relatedTarget;
13641
13645
  let A;
@@ -13653,22 +13657,22 @@ const eo = pt(
13653
13657
  return;
13654
13658
  }
13655
13659
  const B = A.current;
13656
- B && (!_ || !B.contains(_)) && at("none");
13660
+ B && (!_ || !B.contains(_)) && nt("none");
13657
13661
  }, []), Te = j(() => {
13658
13662
  jt.current && bt.current && document.contains(bt.current) && bt.current.focus(), bt.current = null, jt.current = !1;
13659
13663
  }, []);
13660
- xt(() => {
13664
+ kt(() => {
13661
13665
  const u = (_) => {
13662
- x && U === "user" && !_.target.closest(".pkt-header-service__user-container") && at("none"), U === "slot" && !_.target.closest(".pkt-header-service__slot-container") && at("none"), U === "search" && !_.target.closest(".pkt-header-service__search-container") && !_.target.closest(".pkt-header-service__search-input") && at("none");
13666
+ x && U === "user" && !_.target.closest(".pkt-header-service__user-container") && nt("none"), U === "slot" && !_.target.closest(".pkt-header-service__slot-container") && nt("none"), U === "search" && !_.target.closest(".pkt-header-service__search-container") && !_.target.closest(".pkt-header-service__search-input") && nt("none");
13663
13667
  }, k = (_) => {
13664
- _.key === "Escape" && U !== "none" && (_.preventDefault(), jt.current = !0, at("none"));
13668
+ _.key === "Escape" && U !== "none" && (_.preventDefault(), jt.current = !0, nt("none"));
13665
13669
  };
13666
13670
  if (U !== "none")
13667
13671
  return document.addEventListener("mousedown", u), document.addEventListener("keydown", k), () => {
13668
13672
  document.removeEventListener("mousedown", u), document.removeEventListener("keydown", k);
13669
13673
  };
13670
13674
  Te();
13671
- }, [U, x, Te]), xt(() => {
13675
+ }, [U, x, Te]), kt(() => {
13672
13676
  const u = () => {
13673
13677
  if (st) {
13674
13678
  const k = window.pageYOffset || document.documentElement.scrollTop;
@@ -13684,18 +13688,18 @@ const eo = pt(
13684
13688
  const Ne = j(
13685
13689
  (u) => {
13686
13690
  const k = u === "slot" ? Xt : Zt, _ = u === "slot" ? pe : vt;
13687
- if (!k.current || !_.current || !Et || wt) return;
13691
+ if (!k.current || !_.current || !Et || _t) return;
13688
13692
  const A = k.current.getBoundingClientRect(), B = _.current.offsetWidth, K = A.left + B > window.innerWidth;
13689
13693
  u === "slot" ? Nt(K) : ce(K);
13690
13694
  },
13691
- [Et, wt]
13695
+ [Et, _t]
13692
13696
  ), Be = j(
13693
13697
  (u) => {
13694
- U !== "none" ? at("none") : (bt.current = document.activeElement, at(u));
13698
+ U !== "none" ? nt("none") : (bt.current = document.activeElement, nt(u));
13695
13699
  },
13696
13700
  [U]
13697
13701
  );
13698
- xt(() => {
13702
+ kt(() => {
13699
13703
  (U === "slot" || U === "search") && requestAnimationFrame(() => {
13700
13704
  Ne(U);
13701
13705
  });
@@ -13703,10 +13707,10 @@ const eo = pt(
13703
13707
  const d = /* @__PURE__ */ S(
13704
13708
  "header",
13705
13709
  {
13706
- className: nt(
13710
+ className: rt(
13707
13711
  "pkt-header-service",
13708
13712
  n && "pkt-header-service--compact",
13709
- wt && "pkt-header-service--mobile",
13713
+ _t && "pkt-header-service--mobile",
13710
13714
  Et && "pkt-header-service--tablet",
13711
13715
  ht && "pkt-header-service--fixed",
13712
13716
  st && "pkt-header-service--scroll-to-hide",
@@ -13719,7 +13723,7 @@ const eo = pt(
13719
13723
  /* @__PURE__ */ S(
13720
13724
  "div",
13721
13725
  {
13722
- className: nt(
13726
+ className: rt(
13723
13727
  "pkt-header-service__logo-area",
13724
13728
  (!N || N === "") && "pkt-header-service__logo-area--without-service"
13725
13729
  ),
@@ -13762,7 +13766,7 @@ const eo = pt(
13762
13766
  /* @__PURE__ */ S(
13763
13767
  "div",
13764
13768
  {
13765
- className: nt("pkt-header-service__slot-container", U === "slot" && "is-open"),
13769
+ className: rt("pkt-header-service__slot-container", U === "slot" && "is-open"),
13766
13770
  onBlur: (u) => fe(u, "slot"),
13767
13771
  ref: Xt,
13768
13772
  children: [
@@ -13772,7 +13776,7 @@ const eo = pt(
13772
13776
  skin: "secondary",
13773
13777
  variant: q,
13774
13778
  iconName: "menu",
13775
- size: wt ? "small" : "medium",
13779
+ size: _t ? "small" : "medium",
13776
13780
  state: U === "slot" ? "active" : "normal",
13777
13781
  onClick: () => Be("slot"),
13778
13782
  "aria-expanded": U === "slot",
@@ -13784,7 +13788,7 @@ const eo = pt(
13784
13788
  /* @__PURE__ */ h(
13785
13789
  "div",
13786
13790
  {
13787
- className: nt("pkt-header-service__slot-content", Kt && "align-right"),
13791
+ className: rt("pkt-header-service__slot-content", Kt && "align-right"),
13788
13792
  id: "mobile-slot-menu",
13789
13793
  role: Et ? "menu" : void 0,
13790
13794
  "aria-label": Et ? "Meny" : void 0,
@@ -13798,7 +13802,7 @@ const eo = pt(
13798
13802
  p && /* @__PURE__ */ h(_e, { children: Et ? /* @__PURE__ */ S(
13799
13803
  "div",
13800
13804
  {
13801
- className: nt("pkt-header-service__search-container", U === "search" && "is-open"),
13805
+ className: rt("pkt-header-service__search-container", U === "search" && "is-open"),
13802
13806
  onBlur: (u) => fe(u, "search"),
13803
13807
  ref: Zt,
13804
13808
  children: [
@@ -13808,7 +13812,7 @@ const eo = pt(
13808
13812
  skin: "secondary",
13809
13813
  variant: "icon-only",
13810
13814
  iconName: "magnifying-glass-big",
13811
- size: wt ? "small" : "medium",
13815
+ size: _t ? "small" : "medium",
13812
13816
  onClick: () => Be("search"),
13813
13817
  state: U === "search" ? "active" : "normal",
13814
13818
  "aria-expanded": U === "search",
@@ -13820,7 +13824,7 @@ const eo = pt(
13820
13824
  /* @__PURE__ */ h(
13821
13825
  "div",
13822
13826
  {
13823
- className: nt(
13827
+ className: rt(
13824
13828
  "pkt-header-service__mobile-menu",
13825
13829
  U === "search" && "is-open",
13826
13830
  ne && "align-right"
@@ -13868,7 +13872,7 @@ const eo = pt(
13868
13872
  Xe,
13869
13873
  {
13870
13874
  skin: "secondary",
13871
- size: wt ? "small" : "medium",
13875
+ size: _t ? "small" : "medium",
13872
13876
  variant: "icon-only",
13873
13877
  iconName: "exit",
13874
13878
  onClick: l,
@@ -13887,12 +13891,12 @@ const eo = pt(
13887
13891
  /* @__PURE__ */ S(
13888
13892
  Xe,
13889
13893
  {
13890
- className: nt(
13894
+ className: rt(
13891
13895
  "pkt-header-service__user-button",
13892
- wt && "pkt-header-service__user-button--mobile"
13896
+ _t && "pkt-header-service__user-button--mobile"
13893
13897
  ),
13894
13898
  skin: "secondary",
13895
- size: wt ? "small" : "medium",
13899
+ size: _t ? "small" : "medium",
13896
13900
  state: U === "user" ? "active" : "normal",
13897
13901
  variant: "icons-right-and-left",
13898
13902
  iconName: "user",
@@ -13907,8 +13911,8 @@ const eo = pt(
13907
13911
  U === "user" && x && /* @__PURE__ */ h(
13908
13912
  "div",
13909
13913
  {
13910
- className: nt(
13911
- wt ? "pkt-header-service__mobile-menu" : "pkt-header-service__user-menu",
13914
+ className: rt(
13915
+ _t ? "pkt-header-service__mobile-menu" : "pkt-header-service__user-menu",
13912
13916
  "is-open"
13913
13917
  ),
13914
13918
  children: /* @__PURE__ */ h(
@@ -13928,7 +13932,7 @@ const eo = pt(
13928
13932
  ]
13929
13933
  }
13930
13934
  ),
13931
- !wt && l && (a === "header" || a === "both") && /* @__PURE__ */ h(Xe, { skin: "tertiary", size: "medium", variant: "icon-right", iconName: "exit", onClick: l, children: "Logg ut" })
13935
+ !_t && l && (a === "header" || a === "both") && /* @__PURE__ */ h(Xe, { skin: "tertiary", size: "medium", variant: "icon-right", iconName: "exit", onClick: l, children: "Logg ut" })
13932
13936
  ] })
13933
13937
  ]
13934
13938
  }
@@ -13938,11 +13942,11 @@ const eo = pt(
13938
13942
  /* @__PURE__ */ h(
13939
13943
  "div",
13940
13944
  {
13941
- className: nt(
13945
+ className: rt(
13942
13946
  "pkt-header-service-spacer",
13943
13947
  n && "pkt-header-service-spacer--compact",
13944
13948
  x && "pkt-header-service-spacer--has-user",
13945
- wt && "pkt-header-service-spacer--mobile",
13949
+ _t && "pkt-header-service-spacer--mobile",
13946
13950
  Et && "pkt-header-service-spacer--tablet"
13947
13951
  )
13948
13952
  }
@@ -13997,12 +14001,12 @@ const Cf = ({
13997
14001
  {
13998
14002
  ...c,
13999
14003
  href: s,
14000
- className: nt(p, l),
14004
+ className: rt(p, l),
14001
14005
  target: r ? "_blank" : "_self",
14002
14006
  rel: r ? "noopener noreferrer" : void 0,
14003
14007
  children: [
14004
14008
  n && /* @__PURE__ */ h(it, { className: "pkt-link__icon", name: n }),
14005
- e && /* @__PURE__ */ h("div", { className: nt(g), children: e }),
14009
+ e && /* @__PURE__ */ h("div", { className: rt(g), children: e }),
14006
14010
  /* @__PURE__ */ h("div", { className: "pkt-linkcard__text", children: i })
14007
14011
  ]
14008
14012
  }
@@ -14038,7 +14042,7 @@ const Mf = ({
14038
14042
  }, v = ko(), y = j(() => {
14039
14043
  p(!0), a && a();
14040
14044
  }, [p, a]);
14041
- return /* @__PURE__ */ S("div", { ...l, className: nt(g, t), ref: v, children: [
14045
+ return /* @__PURE__ */ S("div", { ...l, className: rt(g, t), ref: v, children: [
14042
14046
  r && /* @__PURE__ */ h("div", { className: "pkt-messagebox__close", children: /* @__PURE__ */ h(
14043
14047
  "button",
14044
14048
  {
@@ -14283,10 +14287,10 @@ const Lf = /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width
14283
14287
  ] }), Ff = /* @__PURE__ */ S("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
14284
14288
  /* @__PURE__ */ h("path", { fill: "#2A2859", d: "M3 3h18v18H3z" }),
14285
14289
  /* @__PURE__ */ h("path", { d: "m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z", fill: "#F1FDFF" })
14286
- ] }), Ym = ({ children: i, className: t, status: e = "incomplete", title: s }) => /* @__PURE__ */ S("li", { className: nt("pkt-step", t, `pkt-step--${e}`), "data-testid": "pkt-step", children: [
14290
+ ] }), Ym = ({ children: i, className: t, status: e = "incomplete", title: s }) => /* @__PURE__ */ S("li", { className: rt("pkt-step", t, `pkt-step--${e}`), "data-testid": "pkt-step", children: [
14287
14291
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--1", "aria-hidden": !0 }),
14288
14292
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--2", "aria-hidden": !0 }),
14289
- /* @__PURE__ */ h("span", { className: nt("pkt-step__indicator"), children: e === "current" ? Bf : e === "completed" ? Ff : Lf }),
14293
+ /* @__PURE__ */ h("span", { className: rt("pkt-step__indicator"), children: e === "current" ? Bf : e === "completed" ? Ff : Lf }),
14290
14294
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--3", "aria-hidden": !0 }),
14291
14295
  /* @__PURE__ */ S("div", { className: "pkt-step__wrapper", children: [
14292
14296
  /* @__PURE__ */ h("div", { className: "pkt-step__title", children: s }),
@@ -14302,12 +14306,12 @@ const Lf = /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width
14302
14306
  orientation: r = "vertical",
14303
14307
  ...a
14304
14308
  }, l) => {
14305
- const c = nt(
14309
+ const c = rt(
14306
14310
  t,
14307
14311
  "pkt-stepper",
14308
14312
  r === "horizontal" ? "pkt-stepper--horizontal" : "pkt-stepper--vertical"
14309
14313
  ), p = On.map(e, (g, v) => wo(g) ? _o(g, {
14310
- className: nt(g.props.className, {
14314
+ className: rt(g.props.className, {
14311
14315
  "pkt-step--hideStep": s && v !== i,
14312
14316
  "pkt-step--hideContent": n && v !== i
14313
14317
  })
@@ -14327,7 +14331,7 @@ const Km = ({
14327
14331
  "table",
14328
14332
  {
14329
14333
  "data-testid": "pkt-table",
14330
- className: nt(i, "pkt-table", {
14334
+ className: rt(i, "pkt-table", {
14331
14335
  "pkt-table--responsive": s,
14332
14336
  "pkt-table--compact": t,
14333
14337
  "pkt-table--basic": e === "basic",
@@ -14337,17 +14341,17 @@ const Km = ({
14337
14341
  ...r,
14338
14342
  children: n
14339
14343
  }
14340
- ), Gm = ({ id: i, children: t, className: e, ...s }) => /* @__PURE__ */ h("tbody", { id: i, className: nt(e, "pkt-table__body", {}), ...s, role: "rowgroup", children: t }), Qm = ({ children: i, className: t, dataLabel: e, ...s }) => /* @__PURE__ */ h(
14344
+ ), Gm = ({ id: i, children: t, className: e, ...s }) => /* @__PURE__ */ h("tbody", { id: i, className: rt(e, "pkt-table__body", {}), ...s, role: "rowgroup", children: t }), Qm = ({ children: i, className: t, dataLabel: e, ...s }) => /* @__PURE__ */ h(
14341
14345
  "td",
14342
14346
  {
14343
- className: nt(t, "pkt-table__data-cell", {}),
14347
+ className: rt(t, "pkt-table__data-cell", {}),
14344
14348
  "data-label": e,
14345
14349
  role: "cell",
14346
14350
  "data-testid": "pkt-table__data-cell",
14347
14351
  ...s,
14348
14352
  children: i
14349
14353
  }
14350
- ), Xm = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("thead", { className: nt(i, "pkt-table__header", {}), role: "rowgroup", ...e, children: t }), Zm = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("th", { className: nt(i, "pkt-table__header-cell", {}), role: "columnheader", ...e, children: t }), Jm = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("tr", { className: nt(i, "pkt-table__row", {}), role: "row", ...e, children: t }), io = pt(
14354
+ ), Xm = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("thead", { className: rt(i, "pkt-table__header", {}), role: "rowgroup", ...e, children: t }), Zm = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("th", { className: rt(i, "pkt-table__header-cell", {}), role: "columnheader", ...e, children: t }), Jm = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("tr", { className: rt(i, "pkt-table__row", {}), role: "row", ...e, children: t }), io = pt(
14351
14355
  ({ children: i, active: t, href: e, onClick: s, icon: n, controls: r, tag: a, tagSkin: l, index: c = 0 }, p) => {
14352
14356
  const { arrowNav: g, registerTabRef: v, handleKeyPress: y, selectTab: b } = Vf(), $ = {
14353
14357
  "aria-selected": g ? !!t : void 0,
@@ -14377,8 +14381,8 @@ const so = ia(null), Vf = () => {
14377
14381
  return i;
14378
14382
  }, Hf = pt(
14379
14383
  ({ arrowNav: i = !0, disableArrowNav: t = !1, tabs: e, onTabSelected: s, children: n }, r) => {
14380
- const a = _t([]), l = i && !t, p = n && On.count(n) > 0 ? On.count(n) : (e == null ? void 0 : e.length) || 0;
14381
- xt(() => {
14384
+ const a = xt([]), l = i && !t, p = n && On.count(n) > 0 ? On.count(n) : (e == null ? void 0 : e.length) || 0;
14385
+ kt(() => {
14382
14386
  a.current = a.current.slice(0, p);
14383
14387
  }, [p]);
14384
14388
  const g = (m) => {
@@ -14446,11 +14450,11 @@ const Uf = pt(
14446
14450
  skipForwardTestid: Z = !1,
14447
14451
  ...et
14448
14452
  }, ht) => {
14449
- const st = [r, "pkt-textinput", "pkt-textarea"].join(" "), gt = `${i}-input`, U = `${gt}-label`, at = e || U, [At, ot] = Pt(0), J = (se) => {
14453
+ const st = [r, "pkt-textinput", "pkt-textarea"].join(" "), gt = `${i}-input`, U = `${gt}-label`, nt = e || U, [At, ot] = Pt(0), J = (se) => {
14450
14454
  var Kt, Nt;
14451
14455
  s && ot(((Nt = (Kt = se.currentTarget) == null ? void 0 : Kt.value) == null ? void 0 : Nt.length) || 0), Tt && Tt(se);
14452
14456
  };
14453
- return xt(() => {
14457
+ return kt(() => {
14454
14458
  H !== void 0 && ot((H == null ? void 0 : H.length) || 0);
14455
14459
  }, [H]), /* @__PURE__ */ h(
14456
14460
  js,
@@ -14485,7 +14489,7 @@ const Uf = pt(
14485
14489
  placeholder: F,
14486
14490
  disabled: a,
14487
14491
  rows: z,
14488
- "aria-labelledby": at,
14492
+ "aria-labelledby": nt,
14489
14493
  "aria-invalid": c,
14490
14494
  "aria-errormessage": `${i}-error`,
14491
14495
  ...et,