@oslokommune/punkt-react 13.21.0 → 13.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1019,7 +1019,7 @@ var rr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, Li = (i, t
1019
1019
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1020
1020
  return s && a && rr(t, e, a), a;
1021
1021
  };
1022
- const Ds = "https://punkt-cdn.oslo.kommune.no/13.21/icons/";
1022
+ const Ds = "https://punkt-cdn.oslo.kommune.no/13.22/icons/";
1023
1023
  typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || Ds);
1024
1024
  const lr = (i) => new Promise((t) => setTimeout(t, i)), Xi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', _s = {}, hr = async (i, t) => {
1025
1025
  let e = 0;
@@ -1078,7 +1078,7 @@ var dr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, ut = (i, t
1078
1078
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1079
1079
  return s && a && dr(t, e, a), a;
1080
1080
  };
1081
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.21/animations/";
1081
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.22/animations/";
1082
1082
  let lt = class extends K {
1083
1083
  constructor() {
1084
1084
  super(), this.defaultSlot = A(), this.iconName = "user", this.secondIconName = "user", this.mode = "light", this.size = "medium", this.fullWidth = !1, this.fullWidthOnMobile = !1, this.skin = "primary", this.variant = "label-only", this.state = "normal", this.type = "button", this.form = void 0, this.isLoading = !1, this.disabled = !1, this.loadingAnimationPath = window.pktAnimationPath, this.slotController = new rt(this, this.defaultSlot);
@@ -3759,6 +3759,7 @@ let ht = class extends K {
3759
3759
  .level=${this.headinglevel || 3}
3760
3760
  size="medium"
3761
3761
  nospacing
3762
+ weight="regular"
3762
3763
  >
3763
3764
  ${this.heading}
3764
3765
  </pkt-heading>
@@ -3772,6 +3773,7 @@ let ht = class extends K {
3772
3773
  class="pkt-card__link-heading pkt-card__heading"
3773
3774
  .level=${this.headinglevel || 3}
3774
3775
  size="medium"
3776
+ weight="regular"
3775
3777
  nospacing
3776
3778
  >
3777
3779
  <a
@@ -7572,7 +7574,7 @@ var Fl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, pe = (i, t
7572
7574
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7573
7575
  return s && a && Fl(t, e, a), a;
7574
7576
  };
7575
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.21/animations/";
7577
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.22/animations/";
7576
7578
  let Yt = class extends K {
7577
7579
  constructor() {
7578
7580
  super(), this.defaultSlot = A(), this.delay = 0, this.inline = !1, this.isLoading = !0, this.message = null, this.size = "medium", this.variant = "shapes", this.loadingAnimationPath = window.pktAnimationPath, this._shouldDisplayLoader = !1, this.slotController = new rt(this, this.defaultSlot);
@@ -9141,7 +9143,7 @@ const Gd = Z(
9141
9143
  ] });
9142
9144
  }
9143
9145
  );
9144
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.21/animations/";
9146
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.22/animations/";
9145
9147
  const oi = Z(
9146
9148
  ({
9147
9149
  children: i,
@@ -9594,7 +9596,7 @@ const Yd = ({
9594
9596
  name: "oslologo",
9595
9597
  className: "pkt-header__logo-svg",
9596
9598
  "aria-hidden": "true",
9597
- path: "https://punkt-cdn.oslo.kommune.no/13.21/logos/"
9599
+ path: "https://punkt-cdn.oslo.kommune.no/13.22/logos/"
9598
9600
  }
9599
9601
  ) }) : /* @__PURE__ */ h(
9600
9602
  "button",
@@ -9608,7 +9610,7 @@ const Yd = ({
9608
9610
  name: "oslologo",
9609
9611
  className: "pkt-header__logo-svg",
9610
9612
  "aria-hidden": "true",
9611
- path: "https://punkt-cdn.oslo.kommune.no/13.21/logos/"
9613
+ path: "https://punkt-cdn.oslo.kommune.no/13.22/logos/"
9612
9614
  }
9613
9615
  )
9614
9616
  }
@@ -95,11 +95,11 @@
95
95
  * @license
96
96
  * Copyright 2017 Google LLC
97
97
  * SPDX-License-Identifier: BSD-3-Clause
98
- */let _i=class extends Xs{};_i.directiveName="unsafeSVG",_i.resultType=2;const _a=Ce(_i);var br=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,$s=(s,t,e,i)=>{for(var a=i>1?void 0:i?yr(t,e):t,n=s.length-1,r;n>=0;n--)(r=s[n])&&(a=(i?r(t,e,a):r(a))||a);return i&&a&&br(t,e,a),a};const wi="https://punkt-cdn.oslo.kommune.no/13.21/icons/";typeof window<"u"&&(window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||wi);const kr=s=>new Promise(t=>setTimeout(t,s)),Qs='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',xi={},$r=async(s,t)=>{let e=0;for(;xi[t+s+".svg"]==="fetching"&&(e++,!(e>50));)await kr(50);const i=typeof Storage<"u"&&typeof localStorage<"u";return i&&localStorage.getItem(t+s+".svg")?Promise.resolve(localStorage.getItem(t+s+".svg")):typeof window<"u"&&typeof window.pktFetch=="function"?(xi[t+s+".svg"]="fetching",Promise.resolve(window.pktFetch(t+s+".svg").then(a=>a.ok?a.text():(console.error("Missing icon: "+t+s+".svg"),Qs)).then(a=>(a!==Qs&&i&&localStorage.setItem(t+s+".svg",a),xi[t+s+".svg"]="fetched",a)))):Promise.resolve(Qs)};let Ne=class extends Y{constructor(){super(...arguments),this.path=typeof window<"u"?window.pktIconPath:wi,this.name="",this.icon=_a(Qs),this._updatedProps=[]}connectedCallback(){super.connectedCallback(),this.classList.add("pkt-icon")}async attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),(t==="name"||t==="path")&&this.getIcon(this.name)}async updated(t){super.updated(t),(t.has("name")||t.has("path"))&&this.getIcon(this.name)}async getIcon(t=""){this._updatedProps.length>0?(this.path||(this.path=typeof window<"u"?window.pktIconPath:wi),this.icon=_a(await $r(this.name||"",this.path).then(e=>e)),this._updatedProps=[]):this._updatedProps.includes(t)||this._updatedProps.push(t)}render(){return u`${this.name&&this.icon}`}};$s([o({type:String,reflect:!1})],Ne.prototype,"path",2),$s([o({type:String,reflect:!0})],Ne.prototype,"name",2),$s([o({type:SVGElement})],Ne.prototype,"icon",2),$s([o({type:Array,noAccessor:!0})],Ne.prototype,"_updatedProps",2),Ne=$s([j("pkt-icon")],Ne);/**
98
+ */let _i=class extends Xs{};_i.directiveName="unsafeSVG",_i.resultType=2;const _a=Ce(_i);var br=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,$s=(s,t,e,i)=>{for(var a=i>1?void 0:i?yr(t,e):t,n=s.length-1,r;n>=0;n--)(r=s[n])&&(a=(i?r(t,e,a):r(a))||a);return i&&a&&br(t,e,a),a};const wi="https://punkt-cdn.oslo.kommune.no/13.22/icons/";typeof window<"u"&&(window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||wi);const kr=s=>new Promise(t=>setTimeout(t,s)),Qs='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',xi={},$r=async(s,t)=>{let e=0;for(;xi[t+s+".svg"]==="fetching"&&(e++,!(e>50));)await kr(50);const i=typeof Storage<"u"&&typeof localStorage<"u";return i&&localStorage.getItem(t+s+".svg")?Promise.resolve(localStorage.getItem(t+s+".svg")):typeof window<"u"&&typeof window.pktFetch=="function"?(xi[t+s+".svg"]="fetching",Promise.resolve(window.pktFetch(t+s+".svg").then(a=>a.ok?a.text():(console.error("Missing icon: "+t+s+".svg"),Qs)).then(a=>(a!==Qs&&i&&localStorage.setItem(t+s+".svg",a),xi[t+s+".svg"]="fetched",a)))):Promise.resolve(Qs)};let Ne=class extends Y{constructor(){super(...arguments),this.path=typeof window<"u"?window.pktIconPath:wi,this.name="",this.icon=_a(Qs),this._updatedProps=[]}connectedCallback(){super.connectedCallback(),this.classList.add("pkt-icon")}async attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),(t==="name"||t==="path")&&this.getIcon(this.name)}async updated(t){super.updated(t),(t.has("name")||t.has("path"))&&this.getIcon(this.name)}async getIcon(t=""){this._updatedProps.length>0?(this.path||(this.path=typeof window<"u"?window.pktIconPath:wi),this.icon=_a(await $r(this.name||"",this.path).then(e=>e)),this._updatedProps=[]):this._updatedProps.includes(t)||this._updatedProps.push(t)}render(){return u`${this.name&&this.icon}`}};$s([o({type:String,reflect:!1})],Ne.prototype,"path",2),$s([o({type:String,reflect:!0})],Ne.prototype,"name",2),$s([o({type:SVGElement})],Ne.prototype,"icon",2),$s([o({type:Array,noAccessor:!0})],Ne.prototype,"_updatedProps",2),Ne=$s([j("pkt-icon")],Ne);/**
99
99
  * @license
100
100
  * Copyright 2018 Google LLC
101
101
  * SPDX-License-Identifier: BSD-3-Clause
102
- */const S=s=>s??$;var _r=Object.defineProperty,wr=Object.getOwnPropertyDescriptor,ft=(s,t,e,i)=>{for(var a=i>1?void 0:i?wr(t,e):t,n=s.length-1,r;n>=0;n--)(r=s[n])&&(a=(i?r(t,e,a):r(a))||a);return i&&a&&_r(t,e,a),a};window.pktAnimationPath=window.pktAnimationPath||"https://punkt-cdn.oslo.kommune.no/13.21/animations/";let lt=class extends Y{constructor(){super(),this.defaultSlot=A(),this.iconName="user",this.secondIconName="user",this.mode="light",this.size="medium",this.fullWidth=!1,this.fullWidthOnMobile=!1,this.skin="primary",this.variant="label-only",this.state="normal",this.type="button",this.form=void 0,this.isLoading=!1,this.disabled=!1,this.loadingAnimationPath=window.pktAnimationPath,this.slotController=new at(this,this.defaultSlot)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",t=>{(this.disabled||this.hasAttribute("disabled")||this.isLoading)&&(t.preventDefault(),t.stopImmediatePropagation())},!0),this.addEventListener("keydown",t=>{(this.disabled||this.hasAttribute("disabled")||this.isLoading)&&(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopImmediatePropagation())},!0)}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t==="disabled"&&i==="false"&&(this.disabled=!1),(t==="isloading"||t==="isLoading")&&i==="false"&&(this.isLoading=!1)}firstUpdated(t){super.firstUpdated(t),this.disabled==="false"&&(this.disabled=!1),this.isLoading==="false"&&(this.isLoading=!1)}render(){const t=this.form??this.getAttribute("form")??void 0,e={"pkt-btn":!0,[`pkt-btn--${this.size}`]:!!this.size,[`pkt-btn--${this.skin}`]:!!this.skin,[`pkt-btn--${this.variant}`]:!!this.variant,[`pkt-btn--${this.color}`]:!!this.color,[`pkt-btn--${this.state}`]:!!this.state,"pkt-btn--full":!!this.fullWidth,"pkt-btn--full-small":!!this.fullWidthOnMobile,"pkt-btn--disabled":!!this.disabled,"pkt-btn--isLoading":!!this.isLoading};return u`
102
+ */const S=s=>s??$;var _r=Object.defineProperty,wr=Object.getOwnPropertyDescriptor,ft=(s,t,e,i)=>{for(var a=i>1?void 0:i?wr(t,e):t,n=s.length-1,r;n>=0;n--)(r=s[n])&&(a=(i?r(t,e,a):r(a))||a);return i&&a&&_r(t,e,a),a};window.pktAnimationPath=window.pktAnimationPath||"https://punkt-cdn.oslo.kommune.no/13.22/animations/";let lt=class extends Y{constructor(){super(),this.defaultSlot=A(),this.iconName="user",this.secondIconName="user",this.mode="light",this.size="medium",this.fullWidth=!1,this.fullWidthOnMobile=!1,this.skin="primary",this.variant="label-only",this.state="normal",this.type="button",this.form=void 0,this.isLoading=!1,this.disabled=!1,this.loadingAnimationPath=window.pktAnimationPath,this.slotController=new at(this,this.defaultSlot)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",t=>{(this.disabled||this.hasAttribute("disabled")||this.isLoading)&&(t.preventDefault(),t.stopImmediatePropagation())},!0),this.addEventListener("keydown",t=>{(this.disabled||this.hasAttribute("disabled")||this.isLoading)&&(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopImmediatePropagation())},!0)}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),t==="disabled"&&i==="false"&&(this.disabled=!1),(t==="isloading"||t==="isLoading")&&i==="false"&&(this.isLoading=!1)}firstUpdated(t){super.firstUpdated(t),this.disabled==="false"&&(this.disabled=!1),this.isLoading==="false"&&(this.isLoading=!1)}render(){const t=this.form??this.getAttribute("form")??void 0,e={"pkt-btn":!0,[`pkt-btn--${this.size}`]:!!this.size,[`pkt-btn--${this.skin}`]:!!this.skin,[`pkt-btn--${this.variant}`]:!!this.variant,[`pkt-btn--${this.color}`]:!!this.color,[`pkt-btn--${this.state}`]:!!this.state,"pkt-btn--full":!!this.fullWidth,"pkt-btn--full-small":!!this.fullWidthOnMobile,"pkt-btn--disabled":!!this.disabled,"pkt-btn--isLoading":!!this.isLoading};return u`
103
103
  <button
104
104
  class=${M(e)}
105
105
  type=${this.type}
@@ -368,6 +368,7 @@
368
368
  .level=${this.headinglevel||3}
369
369
  size="medium"
370
370
  nospacing
371
+ weight="regular"
371
372
  >
372
373
  ${this.heading}
373
374
  </pkt-heading>
@@ -378,6 +379,7 @@
378
379
  class="pkt-card__link-heading pkt-card__heading"
379
380
  .level=${this.headinglevel||3}
380
381
  size="medium"
382
+ weight="regular"
381
383
  nospacing
382
384
  >
383
385
  <a
@@ -1077,7 +1079,7 @@
1077
1079
 
1078
1080
  <div class="pkt-linkcard__text" ${E(this.defaultSlot)}></div>
1079
1081
  </a>
1080
- `}};Be([o({type:String,reflect:!0})],$e.prototype,"title",2),Be([o({type:String,reflect:!0})],$e.prototype,"href",2),Be([o({type:String,reflect:!0})],$e.prototype,"iconName",2),Be([o({type:Boolean,reflect:!0})],$e.prototype,"external",2),Be([o({type:Boolean,reflect:!0})],$e.prototype,"openInNewTab",2),Be([o({type:String,reflect:!0})],$e.prototype,"skin",2),$e=Be([j("pkt-linkcard")],$e);var Ql=Object.defineProperty,th=Object.getOwnPropertyDescriptor,le=(s,t,e,i)=>{for(var a=i>1?void 0:i?th(t,e):t,n=s.length-1,r;n>=0;n--)(r=s[n])&&(a=(i?r(t,e,a):r(a))||a);return i&&a&&Ql(t,e,a),a};window.pktAnimationPath=window.pktAnimationPath||"https://punkt-cdn.oslo.kommune.no/13.21/animations/";let Yt=class extends Y{constructor(){super(),this.defaultSlot=A(),this.delay=0,this.inline=!1,this.isLoading=!0,this.message=null,this.size="medium",this.variant="shapes",this.loadingAnimationPath=window.pktAnimationPath,this._shouldDisplayLoader=!1,this.slotController=new at(this,this.defaultSlot)}connectedCallback(){super.connectedCallback(),this._shouldDisplayLoader=this.delay===0,this.delay>0&&this.setupLoader()}updated(t){t.has("delay")&&this.setupLoader()}render(){const t=M({"pkt-loader":!0,[`pkt-loader--${this.inline?"inline":"box"}`]:!0,[`pkt-loader--${this.size}`]:!0}),e=M({"pkt-contents":!0,"pkt-hide":this.isLoading});return u`<div
1082
+ `}};Be([o({type:String,reflect:!0})],$e.prototype,"title",2),Be([o({type:String,reflect:!0})],$e.prototype,"href",2),Be([o({type:String,reflect:!0})],$e.prototype,"iconName",2),Be([o({type:Boolean,reflect:!0})],$e.prototype,"external",2),Be([o({type:Boolean,reflect:!0})],$e.prototype,"openInNewTab",2),Be([o({type:String,reflect:!0})],$e.prototype,"skin",2),$e=Be([j("pkt-linkcard")],$e);var Ql=Object.defineProperty,th=Object.getOwnPropertyDescriptor,le=(s,t,e,i)=>{for(var a=i>1?void 0:i?th(t,e):t,n=s.length-1,r;n>=0;n--)(r=s[n])&&(a=(i?r(t,e,a):r(a))||a);return i&&a&&Ql(t,e,a),a};window.pktAnimationPath=window.pktAnimationPath||"https://punkt-cdn.oslo.kommune.no/13.22/animations/";let Yt=class extends Y{constructor(){super(),this.defaultSlot=A(),this.delay=0,this.inline=!1,this.isLoading=!0,this.message=null,this.size="medium",this.variant="shapes",this.loadingAnimationPath=window.pktAnimationPath,this._shouldDisplayLoader=!1,this.slotController=new at(this,this.defaultSlot)}connectedCallback(){super.connectedCallback(),this._shouldDisplayLoader=this.delay===0,this.delay>0&&this.setupLoader()}updated(t){t.has("delay")&&this.setupLoader()}render(){const t=M({"pkt-loader":!0,[`pkt-loader--${this.inline?"inline":"box"}`]:!0,[`pkt-loader--${this.size}`]:!0}),e=M({"pkt-contents":!0,"pkt-hide":this.isLoading});return u`<div
1081
1083
  role="status"
1082
1084
  aria-live="polite"
1083
1085
  aria-busy=${this.isLoading?"true":"false"}
@@ -1452,4 +1454,4 @@
1452
1454
  Copyright (c) 2018 Jed Watson.
1453
1455
  Licensed under the MIT License (MIT), see
1454
1456
  http://jedwatson.github.io/classnames
1455
- */var en;function Mh(){return en||(en=1,(function(s){(function(){var t={}.hasOwnProperty;function e(){for(var n="",r=0;r<arguments.length;r++){var h=arguments[r];h&&(n=a(n,i(h)))}return n}function i(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return e.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var r="";for(var h in n)t.call(n,h)&&n[h]&&(r=a(r,h));return r}function a(n,r){return r?n?n+" "+r:n+r:n}s.exports?(e.default=e,s.exports=e):window.classNames=e})()})(Ii)),Ii.exports}var Ph=Mh();const pt=Eh(Ph),Li=({children:s,closeAlert:t,compact:e,title:i,date:a,ariaLive:n,"aria-live":r="polite",role:h="status",skin:d="info",className:p,...f})=>{const[g,k]=x.useState(!1),b={"pkt-alert":!0,"pkt-alert--compact":e,[`pkt-alert--${d}`]:d,"pkt-hide":g},y={"pkt-alert__grid":!0,"pkt-alert__noTitle":!i,"pkt-alert__noDate":!a},w=x.useCallback(()=>{k(!0),f.onClose&&f.onClose(new CustomEvent("close",{detail:{origin:event},bubbles:!0,composed:!0}))},[f.onClose,k]),C=n||r;return l.jsx("div",{...f,"aria-live":C,role:h,className:pt(b,p),children:l.jsxs("div",{className:pt(y),children:[l.jsx(B,{className:"pkt-alert__icon","aria-hidden":"true",name:d==="info"?"alert-information":`alert-${d}`}),t&&l.jsx("div",{className:"pkt-alert__close",children:l.jsx(je,{tabIndex:0,"aria-label":"close",size:e?"small":"medium",type:"button",skin:"tertiary",iconName:"close",variant:"icon-only",onClick:w,children:l.jsx("span",{className:"sr-only",children:"Lukk"})})}),i&&l.jsx("div",{className:"pkt-alert__title",children:i}),l.jsx("div",{className:"pkt-alert__text",children:s}),a&&l.jsxs("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",a]})]})})};Li.displayName="PktAlert";const sn=Wt({tagName:"pkt-backlink",elementClass:Xe,react:x,displayName:"PktBackLink"});sn.displayName="PktBackLink";const Oh=x.forwardRef(({breadcrumbs:s,navigationType:t,className:e,...i},a)=>{const n=s,r=n[n.length-2],h=[e,"pkt-breadcrumbs"].filter(Boolean).join(" ");return l.jsxs("nav",{ref:a,"aria-label":"brødsmulemeny",className:h,children:[l.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:n.map((d,p)=>l.jsx("li",{className:"pkt-breadcrumbs__item",children:p===n.length-1?l.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:l.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})}):t==="router"?l.jsxs(Wi.Link,{to:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...i,children:[l.jsx(B,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),l.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]}):l.jsxs("a",{href:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...i,children:[l.jsx(B,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),l.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]})},`breadcrumb-${p}`))}),t==="router"?l.jsxs(Wi.Link,{to:r.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...i,children:[l.jsx(B,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),l.jsx("span",{className:"pkt-breadcrumbs__text",children:r.text})]}):l.jsxs("a",{href:r.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...i,children:[l.jsx(B,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),l.jsx("span",{className:"pkt-breadcrumbs__text",children:r.text})]})]})});window.pktAnimationPath=window.pktAnimationPath||"https://punkt-cdn.oslo.kommune.no/13.21/animations/";const je=x.forwardRef(({children:s,className:t,iconName:e="user",secondIconName:i="user",iconPath:a,secondIconPath:n,size:r="medium",fullWidth:h=!1,fullWidthOnMobile:d=!1,skin:p="primary",type:f="button",variant:g="label-only",state:k,color:b,isLoading:y=void 0,disabled:w=void 0,loadingAnimationPath:C=window.pktAnimationPath,...P},T)=>{const I=[t,"pkt-btn",r&&`pkt-btn--${r}`,h&&"pkt-btn--full",d&&"pkt-btn--full-small",p&&`pkt-btn--${p}`,g&&`pkt-btn--${g}`,b&&`pkt-btn--${b}`,k&&`pkt-btn--${k}`,y&&"pkt-btn--isLoading"].filter(Boolean).join(" ");return l.jsxs("button",{...P,"aria-busy":y||void 0,"aria-disabled":w||void 0,disabled:w,className:I,type:f,ref:T,children:[y&&l.jsx(B,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:C}),g!=="label-only"&&l.jsx(B,{className:"pkt-btn__icon",name:e,...a&&{path:a}}),l.jsx("span",{className:"pkt-btn__text",children:s}),g==="icons-right-and-left"&&l.jsx(B,{className:"pkt-btn__icon",name:i,...n&&{path:n}})]})});je.displayName="PktButton";const Dh=Wt({tagName:"pkt-card",elementClass:ht,react:x,displayName:"PktCard",events:{}}),an=x.forwardRef(({children:s,...t},e)=>l.jsx(Dh,{...t,ref:e,children:l.jsx("div",{className:"pkt-contents",children:s})}));an.displayName="PktCard";const nn=x.forwardRef(({id:s,hasTile:t=!1,disabled:e=!1,label:i,checkHelptext:a,hasError:n=!1,className:r,isSwitch:h=!1,hideLabel:d=!1,labelPosition:p="right",defaultChecked:f,checked:g,indeterminate:k,optionalTag:b,optionalText:y="Valgfritt",requiredTag:w,requiredText:C="Må fylles ut",tagText:P,...T},I)=>{const N=x.useRef(null);x.useEffect(()=>{N.current&&k!==void 0&&(N.current.indeterminate=k)},[k]),x.useEffect(()=>{typeof I=="function"?I(N.current):I&&(I.current=N.current)},[I]);const W=[r,"pkt-input-check"].filter(Boolean).join(" "),Z=["pkt-input-check__input-label",e?"pkt-input-check__input-label--disabled":"",`pkt-input-check__input-label--${p}`,d?"pkt-sr-only":""].filter(Boolean).join(" "),wt=["pkt-input-check__input",t?"pkt-input-check__input--tile":"",e&&t?"pkt-input-check__input--tile-disabled":""].filter(Boolean).join(" "),bt=["pkt-tag","pkt-tag--small","pkt-tag--thin-text"].join(" "),Q=()=>l.jsxs(l.Fragment,{children:[P&&l.jsx("span",{className:bt+" pkt-tag--gray",children:P}),b&&l.jsx("span",{className:bt+" pkt-tag--blue-light",children:y}),w&&l.jsx("span",{className:bt+" pkt-tag--beige",children:C})]});return l.jsx("div",{className:W,children:l.jsxs("div",{className:wt,children:[p==="left"&&l.jsxs("label",{className:Z,htmlFor:s,children:[i," ",Q(),a&&l.jsx("div",{className:"pkt-input-check__input-helptext",children:a})]}),l.jsx("input",{role:h?"switch":"checkbox",ref:N,className:`pkt-input-check__input-checkbox ${n?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",id:s,disabled:e,...g!==void 0?{checked:g}:{defaultChecked:f},...T}),p==="right"&&l.jsxs("label",{className:Z,htmlFor:s,children:[i," ",Q(),a&&l.jsx("div",{className:"pkt-input-check__input-helptext",children:a})]})]})})});nn.displayName="PktCheckbox";const Ih=Wt({tagName:"pkt-combobox",elementClass:tt,react:x,displayName:"PktCombobox",events:{onClick:"click",onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),rn=x.forwardRef(({children:s,helptext:t,...e},i)=>l.jsxs(Ih,{...e,ref:i,children:[t&&l.jsx("div",{slot:"helptext",className:"pkt-contents",children:t}),s]}));rn.displayName="PktCombobox";const li=Wt({tagName:"pkt-consent",elementClass:Ut,react:x,displayName:"PktConsent",events:{onToggleConsent:"toggle-consent"}});li.displayName="PktConsent";const Lh=Wt({tagName:"pkt-datepicker",elementClass:st,react:x,displayName:"PktDatepicker",events:{onChange:"change",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),on=x.forwardRef(({helptext:s,...t},e)=>l.jsx(Lh,{ref:e,...t,children:l.jsx("div",{className:"pkt-contents",slot:"helptext",children:s})}));on.displayName="PktDatepicker";const Bh=({columnOne:s,columnTwo:t,socialLinks:e,className:i,openLinksInNewTab:a=!1,personvernOgInfoLink:n="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:r="https://www.oslo.kommune.no/tilgjengelighet/",includeConsent:h=!1,hotjarId:d=null,googleAnalyticsId:p=null,devMode:f=!1,cookieDomain:g=null,cookieSecure:k=null,cookieExpiryDays:b=null,onToggleConsent:y=w=>{console.log(w.detail)}})=>{var C,P;const w=[i,"pkt-footer"].filter(Boolean).join(" ");return l.jsx("footer",{className:w,"data-mode":"dark",children:l.jsxs("div",{className:"pkt-footer__container",children:[l.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[l.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[l.jsx("h2",{className:"pkt-footer__title",children:s.title}),l.jsxs("ul",{className:"pkt-footer__list",children:[s.text&&l.jsx("li",{className:"pkt-footer__text",children:s.text}),(C=s.links)==null?void 0:C.map((T,I)=>l.jsx("li",{className:"pkt-footer__list-item",children:l.jsxs("a",{className:`pkt-footer__link ${T.external?"pkt-link--external":""}`,href:T.href,target:T.openInNewTab||a?"_blank":"_self",rel:T.openInNewTab||a?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer__link-icon",name:"chevron-right"}),T.text]})},`links-${I}`))]})]}),l.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[l.jsx("h2",{className:"pkt-footer__title",children:t.title}),l.jsxs("ul",{className:"pkt-footer__list",children:[t.text&&l.jsx("li",{className:"pkt-footer__text",children:t.text}),(P=t.links)==null?void 0:P.map((T,I)=>l.jsx("li",{className:"pkt-footer__list-item",children:l.jsxs("a",{className:`pkt-footer__link ${T.external?"pkt-link--external":""}`,href:T.href,target:T.openInNewTab||a?"_blank":"_self",rel:T.openInNewTab||a?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer__link-icon",name:"chevron-right"}),T.text]})},`links-${I}`))]})]}),l.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[l.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),l.jsxs("ul",{className:"pkt-footer__list",children:[l.jsx("li",{className:"pkt-footer__list-item",children:l.jsxs("a",{className:"pkt-footer__link",href:n,target:a?"_blank":"_self",rel:a?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),l.jsx("li",{className:"pkt-footer__list-item",children:l.jsxs("a",{className:"pkt-footer__link",href:r,target:a?"_blank":"_self",rel:a?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})}),h&&l.jsx("li",{className:"pkt-footer__list-item",children:l.jsx(li,{triggerType:"footerlink",hotjarId:d,googleAnalyticsId:p,devMode:f,cookieDomain:g,cookieSecure:k,cookieExpiryDays:b,onToggleConsent:y})})]})]})]}),e&&l.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[l.jsx("div",{className:"pkt-footer__social-languages",children:e.filter(T=>T.language).map((T,I)=>l.jsx("div",{className:"pkt-footer__social-language",children:l.jsx("a",{href:T.href,"aria-label":`til ${T.language} versjon av nettsiden`,target:T.openInNewTab||a?"_blank":"_self",rel:T.openInNewTab||a?"noopener noreferrer":void 0,children:T.language})},`sociallinks-language-${I}`))}),l.jsx("div",{className:"pkt-footer__social-icons",children:e.filter(T=>T.iconName).map((T,I)=>l.jsx(x.Fragment,{children:l.jsx("a",{href:T.href,"aria-label":`til ${T.iconName}`,className:"pkt-footer__social-icon-link",target:T.openInNewTab||a?"_blank":"_self",rel:T.openInNewTab||a?"noopener noreferrer":void 0,children:l.jsx(B,{className:"pkt-footer__social-icon",name:T.iconName})})},`sociallinks-${I}`))})]})]})})},Fh=({links:s=[],openLinksInNewTab:t=!1,personvernOgInfoLink:e="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:i="https://www.oslo.kommune.no/tilgjengelighet/",includeConsent:a=!1,hotjarId:n=null,googleAnalyticsId:r=null,devMode:h=!1,cookieDomain:d=null,cookieSecure:p=null,cookieExpiryDays:f=null,onToggleConsent:g=b=>{console.log(b.detail)},className:k})=>{const b=[k,"pkt-footer-simple"].filter(Boolean).join(" ");return l.jsx("footer",{className:b,"data-mode":"dark",children:l.jsx("div",{className:"pkt-footer-simple__container",children:l.jsxs("ul",{className:"pkt-footer-simple__list",children:[s.map((y,w)=>l.jsx("li",{className:"pkt-footer-simple__list-item",children:l.jsxs("a",{className:`pkt-footer-simple__link ${y.external?" pkt-link--external":""}`,href:y.href,target:y.openInNewTab||t?"_blank":"_self",rel:y.openInNewTab||t?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),y.text]})},w)),l.jsx("li",{className:"pkt-footer-simple__list-item",children:l.jsxs("a",{className:"pkt-footer-simple__link",href:e,target:t?"_blank":"_self",rel:t?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),l.jsx("li",{className:"pkt-footer-simple__list-item",children:l.jsxs("a",{className:"pkt-footer-simple__link",href:i,target:t?"_blank":"_self",rel:t?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})}),a&&l.jsx("li",{className:"pkt-footer-simple__list-item",children:l.jsx(li,{triggerType:"footerlink",hotjarId:n,googleAnalyticsId:r,devMode:h,cookieDomain:d,cookieSecure:p,cookieExpiryDays:f,onToggleConsent:g})})]})})})},Vh=x.forwardRef(({className:s,logoLink:t="https://www.oslo.kommune.no/",serviceName:e,fixed:i=!0,scrollToHide:a=!0,user:n,userMenu:r,representing:h,userOptions:d,userMenuFooter:p,canChangeRepresentation:f=!0,showMenuButton:g=!1,showLogOutButton:k=!1,openMenu:b,logOut:y,changeRepresentation:w,children:C,...P},T)=>{const I=x.useMemo(()=>typeof(n==null?void 0:n.lastLoggedIn)=="string"?n.lastLoggedIn:n!=null&&n.lastLoggedIn?new Date(n.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[n]),[N,W]=x.useState(!1),[Z,wt]=x.useState(0),[bt,Q]=x.useState(!1),rt=x.useRef(null);x.useEffect(()=>(document&&(document.addEventListener("mouseup",Vt),window.addEventListener("scroll",ot)),()=>{document&&(document.removeEventListener("mouseup",Vt),window.removeEventListener("scroll",ot))}));const Ft=()=>{Q(!bt)},Vt=F=>{rt.current&&!rt.current.contains(F.target)&&Q(!1)},ot=()=>{if(a){const F=window.pageYOffset||document.documentElement.scrollTop;if(F<0||Math.abs(F-Z)<60)return;W(F>Z),wt(F)}};return l.jsxs("header",{...P,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:pt(s,"pkt-header",{"pkt-header--fixed":i,"pkt-header--scroll-to-hide":a,"pkt-header--hidden":N}),ref:T,children:[l.jsxs("div",{className:"pkt-header__logo",children:[typeof t=="string"?l.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:t,children:l.jsx(B,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/13.21/logos/"})}):l.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:t,children:l.jsx(B,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/13.21/logos/"})}),l.jsx("span",{className:"pkt-header__logo-service",translate:"no",children:e})]}),l.jsx("nav",{className:"pkt-header__actions",children:l.jsxs("ul",{className:"pkt-header__actions-row",children:[g&&l.jsx("li",{children:l.jsx(je,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:b,children:"Meny"})}),(n||h)&&l.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${bt&&!N?"pkt-header--open-dropdown":""}`,ref:rt,children:[l.jsxs("button",{className:"pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",type:"button",role:"button","aria-controls":"pktUserDropdown","aria-expanded":bt,onClick:Ft,children:[l.jsx(B,{name:"user",className:"pkt-btn__icon"}),l.jsx("span",{className:"pkt-header__user-fullname",translate:"no",children:(h==null?void 0:h.name)||(n==null?void 0:n.name)}),l.jsx("span",{className:"pkt-header__user-shortname",translate:"no",children:(h==null?void 0:h.shortname)||(n==null?void 0:n.shortname)}),l.jsx(B,{name:"chevron-thin-down",className:"pkt-btn--closed"}),l.jsx(B,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),l.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[n&&l.jsxs("li",{children:[l.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),l.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:n.name}),n.lastLoggedIn&&l.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",l.jsx("time",{children:I})]})]}),r&&l.jsx("li",{children:l.jsx("ul",{className:"pkt-list",children:r.map((F,At)=>l.jsx("li",{children:typeof F.target=="string"?l.jsxs("a",{href:F.target,className:"pkt-link",children:[F.iconName&&l.jsx(B,{name:F.iconName,className:"pkt-link__icon"}),F.title]}):l.jsxs("button",{className:"pkt-link-button pkt-link",onClick:F.target,children:[F.iconName&&l.jsx(B,{name:F.iconName,className:"pkt-link__icon"}),F.title]})},`userMenu-${At}`))})}),(h||f)&&l.jsxs("li",{children:[h&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),l.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:h.name}),h.orgNumber&&l.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",h.orgNumber]})]}),l.jsx("ul",{className:"pkt-list mt-size-16",children:f&&l.jsx("li",{children:l.jsxs("button",{className:"pkt-link-button pkt-link",onClick:w,children:[l.jsx(B,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),l.jsx("li",{children:l.jsx("ul",{className:"pkt-list",children:(d||!k)&&l.jsxs(l.Fragment,{children:[d==null?void 0:d.map((F,At)=>l.jsx("li",{children:typeof F.target=="string"?l.jsxs("a",{href:F.target,className:"pkt-link",children:[F.iconName&&l.jsx(B,{name:F.iconName,className:"pkt-link__icon"}),F.title]}):l.jsxs("button",{className:"pkt-link-button pkt-link",onClick:F.target,children:[F.iconName&&l.jsx(B,{name:F.iconName,className:"pkt-link__icon"}),F.title]})},`userOptions-${At}`)),!k&&l.jsx("li",{children:l.jsxs("button",{className:"pkt-link-button pkt-link",onClick:y,children:[l.jsx(B,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),p&&l.jsx("li",{className:"footer",children:l.jsx("ul",{className:"pkt-list-horizontal bordered",children:p.map((F,At)=>l.jsx("li",{children:typeof F.target=="string"?l.jsx("a",{href:F.target,className:"pkt-link",children:F.title}):l.jsx("button",{className:"pkt-link-button pkt-link",onClick:F.target,children:F.title})},`userMenuFooter-${At}`))})})]})]}),C&&l.jsx("li",{children:C}),k&&l.jsx("li",{children:l.jsx(je,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:y,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),jh=Wt({tagName:"pkt-heading",elementClass:ye,react:x,displayName:"PktHeading"}),ln=x.forwardRef(({children:s,...t},e)=>l.jsx(jh,{"data-testid":"pkt-heading",...t,ref:e,children:s}));ln.displayName="PktHeading";const Hh=Wt({tagName:"pkt-helptext",elementClass:oe,react:x,displayName:"PktHelptext",events:{onToggleHelpText:"toggleHelpText"}}),hn=x.forwardRef(({children:s,...t},e)=>l.jsx(Hh,{...t,ref:e,children:l.jsx("div",{className:"pkt-contents",children:s})}));hn.displayName="PktHelptext";const dn=x.forwardRef(({label:s,id:t,children:e,...i},a)=>l.jsxs("div",{className:"pkt-form-group",children:[l.jsx("label",{htmlFor:t,className:"pkt-form-label",children:s}),l.jsx("input",{className:"pkt-form-input",id:t,...i,ref:a}),e]}));dn.displayName="PktInput";const Bs=x.forwardRef(({forId:s,label:t,helptext:e,helptextDropdown:i,helptextDropdownButton:a,counter:n,counterCurrent:r=0,counterMaxLength:h,optionalTag:d=!1,optionalText:p="Valgfritt",requiredTag:f=!1,requiredText:g="Må fylles ut",tagText:k=null,hasError:b=!1,errorMessage:y,disabled:w=!1,inline:C=!1,ariaDescribedby:P,useWrapper:T=!0,children:I,className:N="",hasFieldset:W=!1,role:Z="group",counterPosition:wt="bottom"},bt)=>{const[Q,rt]=x.useState(!1),Ft=P||(e?`${s}-helptext`:void 0),Vt=!!n,ot=Vt&&wt==="top",F=Vt&&wt==="bottom",At=()=>rt(ut=>!ut),ae=["pkt-inputwrapper",N,b?"pkt-inputwrapper--error":"",w?"pkt-inputwrapper--disabled":"",C?"pkt-inputwrapper--inline":""].filter(Boolean).join(" "),de=["pkt-tag","pkt-tag--small","pkt-tag--thin-text"].join(" "),ne=()=>Vt?l.jsxs("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":"true",children:[r,h?`/${h}`:""]}):null,He=()=>l.jsxs(l.Fragment,{children:[k&&l.jsx("span",{className:de+" pkt-tag--gray",children:k}),d&&l.jsx("span",{className:de+" pkt-tag--blue-light",children:p}),f&&l.jsx("span",{className:de+" pkt-tag--beige",children:g})]}),ds=()=>{const ut=l.jsxs(l.Fragment,{children:[t," ",He()]});return T?W?l.jsx("legend",{className:"pkt-inputwrapper__legend",id:`${s}-label`,children:ut}):l.jsx("label",{className:"pkt-inputwrapper__label",htmlFor:s,"aria-describedby":Ft,id:`${s}-label`,children:ut}):l.jsx("label",{htmlFor:s,className:"pkt-sr-only","aria-describedby":Ft,id:`${s}-label`,children:t})},ce=()=>!e&&!i?null:l.jsxs(l.Fragment,{children:[e&&T&&l.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${s}-helptext`,children:e}),i&&l.jsxs("div",{className:"pkt-inputwrapper__helptext-expandable",children:[l.jsx(je,{skin:"tertiary",size:"small",variant:"icon-right",iconName:Q?"chevron-thin-up":"chevron-thin-down",className:"pkt-link pkt-link--icon-right",onClick:At,children:l.jsx("span",{dangerouslySetInnerHTML:{__html:a??'Les mer <span class="pkt-sr-only">om inputfeltet</span>'}})}),l.jsx("div",{className:`pkt-inputwrapper__helptext ${Q?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:i})]})]}),zt=l.jsxs(l.Fragment,{children:[ds(),ce(),ot&&l.jsx(ne,{}),I,F&&l.jsx(ne,{}),b&&y&&l.jsx("div",{className:"pkt-inputwrapper__alert-wrapper",children:l.jsx(Li,{skin:"error","aria-live":"assertive",role:"alert",id:`${s}-error`,compact:!0,children:y})})]});return l.jsx("div",{className:ae,ref:bt,role:Z,children:W?l.jsx("fieldset",{className:"pkt-inputwrapper__fieldset","aria-describedby":Ft,children:zt}):l.jsx("div",{className:"pkt-inputwrapper__fieldset",children:zt})})});Bs.displayName="PktInputWrapper";const cn=({href:s,iconName:t,className:e,iconPosition:i,external:a,target:n,children:r,...h})=>{const d={"pkt-link":!0,"pkt-link--icon-left":!!t&&i==="left"||!!(t&&!i),"pkt-link--icon-right":!!t&&i==="right","pkt-link--external":a};return l.jsxs("a",{...h,className:pt(d,e),href:s,target:n,rel:a?"noopener noreferrer":void 0,children:[t&&l.jsx(B,{name:t,className:"pkt-link__icon"}),r]})};cn.displayName="PktLink";const pn=({children:s,skin:t,title:e,href:i,iconName:a,openInNewTab:n,external:r,className:h,...d})=>{const p=["pkt-linkcard",t&&`pkt-linkcard--${t}`].filter(Boolean).join(" "),f=["pkt-linkcard__title",r&&"pkt-link pkt-link--external"].filter(Boolean).join(" ");return l.jsxs("a",{...d,href:i,className:pt(p,h),target:n?"_blank":"_self",rel:n?"noopener noreferrer":void 0,children:[a&&l.jsx(B,{className:"pkt-link__icon",name:a}),e&&l.jsx("div",{className:pt(f),children:e}),l.jsx("div",{className:"pkt-linkcard__text",children:s})]})};pn.displayName="PktLinkCard";const Uh=Wt({tagName:"pkt-loader",elementClass:Yt,react:x,displayName:"PktLoader",events:{}}),un=x.forwardRef(({children:s,...t},e)=>l.jsx(Uh,{...t,ref:e,children:l.jsx("div",{className:"pkt-contents",children:s})}));un.displayName="PktLoader";const fn=({children:s,className:t,skin:e,title:i,compact:a,closable:n,onClose:r,...h})=>{const[d,p]=x.useState(!1),f={"pkt-messagebox":!0,"pkt-messagebox--compact":a,[`pkt-messagebox--${e}`]:e,"pkt-messagebox--closable":n,"pkt-hide":d},g=x.createRef(),k=x.useCallback(()=>{p(!0),r&&r()},[p,r]);return l.jsxs("div",{...h,className:pt(f,t),ref:g,children:[n&&l.jsx("div",{className:"pkt-messagebox__close",children:l.jsx("button",{onClick:k,className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only","aria-label":"Lukk",children:l.jsx(B,{name:"close",className:"pkt-link__icon"})})}),i&&l.jsx("div",{className:"pkt-messagebox__title",children:i}),l.jsx("div",{className:"pkt-messagebox__text",children:s})]})};fn.displayName="PktMessagebox";const qh=Wt({tagName:"pkt-modal",elementClass:Lt,react:x,displayName:"PktModal",events:{}}),gn=x.forwardRef(({children:s,...t},e)=>l.jsx(qh,{...t,ref:e,children:l.jsx("div",{className:"pkt-contents",children:s})}));gn.displayName="PktModal";const zh=Wt({tagName:"pkt-progressbar",elementClass:it,react:x,displayName:"PktProgressbar",events:{}}),mn=x.forwardRef(({children:s,...t},e)=>l.jsx(zh,{ref:e,...t,children:l.jsx("div",{className:"pkt-contents",children:s})}));mn.displayName="PktProgressbar";const vn=x.forwardRef(({id:s,name:t,label:e,className:i,hasTile:a=!1,disabled:n=!1,checkHelptext:r,hasError:h=!1,defaultChecked:d,checked:p,optionalTag:f,optionalText:g,requiredTag:k,requiredText:b,tagText:y,...w},C)=>{const P=[i,"pkt-input-check"].filter(Boolean).join(" "),T=["pkt-input-check__input",a?"pkt-input-check__input--tile":"",n&&a?"pkt-input-check__input--tile-disabled":""].filter(Boolean).join(" "),I=["pkt-input-check__input-checkbox",h?"pkt-input-check__input-checkbox--error":""].filter(Boolean).join(" "),N=["pkt-input-check__input-label",n?"pkt-input-check__input-label--disabled":""].filter(Boolean).join(" "),W=["pkt-tag","pkt-tag--small","pkt-tag--thin-text"].join(" "),Z=()=>l.jsxs(l.Fragment,{children:[y&&l.jsx("span",{className:W+" pkt-tag--gray",children:y}),f&&l.jsx("span",{className:W+" pkt-tag--blue-light",children:g}),k&&l.jsx("span",{className:W+" pkt-tag--beige",children:b})]});return l.jsx("div",{className:P,children:l.jsxs("div",{className:T,children:[l.jsx("input",{ref:C,id:s,type:"radio",name:t,disabled:n,className:I,...p!==void 0?{checked:p}:{defaultChecked:d},...w}),l.jsxs("label",{className:N,htmlFor:s,children:[e," ",Z(),r&&l.jsx("div",{className:"pkt-input-check__input-helptext",children:r})]})]})})});vn.displayName="PktRadioButton";const Wh=x.forwardRef(({appearance:s="local",disabled:t=!1,fullwidth:e=!1,id:i,label:a,name:n,placeholder:r="Søk…",suggestions:h,value:d="",action:p,method:f,onChange:g,onSearch:k,onSuggestionClick:b,...y},w)=>{const C=(N,W)=>{N?N():b&&b(W)},P=N=>{d=N.target.value},T=`pkt-searchinput pkt-searchinput--${s} ${e?"pkt-searchinput--fullwidth":""}`;let I;return p?I=N=>l.jsx("form",{role:"search",className:T,action:p,method:f,children:N}):I=N=>l.jsx("div",{role:"search",className:T,children:N}),I(l.jsxs(l.Fragment,{children:[a&&l.jsx("label",{htmlFor:a?i:void 0,className:a?"pkt-inputwrapper__label":"",children:a}),l.jsxs("div",{className:s==="local"?"pkt-input__container":"pkt-searchinput__field",children:[l.jsx("input",{className:`pkt-input ${e?"pkt-input--fullwidth":""}`,type:"search",name:n||i,id:i,placeholder:r,defaultValue:d,disabled:t,autoComplete:"off","aria-autocomplete":"list",ref:w,"aria-controls":`${i}-suggestions`,onChange:g||P,onKeyUp:k&&(N=>{N.key==="Enter"&&(N.preventDefault(),k(d))}),...y}),l.jsx(je,{className:`pkt-searchinput__button ${s==="local"?"pkt-input-icon":""}`,variant:"icon-only",iconName:"magnifying-glass-big",skin:s==="local"?"tertiary":"primary",color:s==="global"?"yellow":void 0,type:"submit",disabled:t,onClick:k&&(N=>{N.preventDefault(),k(d)}),children:a||r})]}),h&&l.jsx("ul",{id:`${i}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:h.map((N,W)=>l.jsx("li",{children:x.createElement(N.href?"a":N.onClick?"button":"div",{href:N.href,className:`pkt-searchinput__suggestion ${N.onClick?"pkt-link-button":""} ${N.href||N.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:N.onClick?"button":void 0,onClick:()=>C(N.onClick,W),onKeyUp:Z=>Z.key==="Enter"&&C(N.onClick,W)},l.jsxs(l.Fragment,{children:[N.title&&l.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:N.title}),N.text&&l.jsx("p",{className:"pkt-searchinput__suggestion-text",children:N.text})]}))},`search-suggestion-${W}`))})]}))}),Rh=x.forwardRef(({ariaDescribedby:s,ariaLabelledby:t,children:e,className:i,disabled:a=!1,errorMessage:n,hasError:r,helptext:h,helptextDropdown:d,helptextDropdownButton:p,id:f,inline:g=!1,fullwidth:k=!1,label:b,name:y,optionalTag:w=!1,optionalText:C,requiredTag:P=!1,requiredText:T,tagText:I,...N},W)=>{const Z=[i,"pkt-select"].join(" ");return l.jsx(Bs,{className:Z,forId:`${f}-input`,label:b,helptext:h,helptextDropdown:d,helptextDropdownButton:p,optionalTag:w,optionalText:C,requiredTag:P,requiredText:T,tagText:I,hasError:r,errorMessage:n,disabled:a,inline:g,ariaDescribedby:s,children:l.jsx("select",{ref:W,className:`pkt-input ${k?"pkt-input--fullwidth":""}`,"aria-invalid":r,"aria-errormessage":`${f}-error`,"aria-labelledby":t||void 0,disabled:a,id:`${f}-input`,name:y||f,...N,children:e})})}),Kh=l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:l.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),Gh=l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[l.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),l.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),Yh=l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[l.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),l.jsx("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"})]}),Zh=({children:s,className:t,status:e="incomplete",title:i})=>l.jsxs("li",{className:pt("pkt-step",t,`pkt-step--${e}`),"data-testid":"pkt-step",children:[l.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),l.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),l.jsx("span",{className:pt("pkt-step__indicator"),children:e==="current"?Gh:e==="completed"?Yh:Kh}),l.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),l.jsxs("div",{className:"pkt-step__wrapper",children:[l.jsx("div",{className:"pkt-step__title",children:i}),l.jsx("div",{className:"pkt-step__content",children:s})]})]}),Xh=x.forwardRef(({activeStep:s,className:t,children:e,hideNonActiveSteps:i=!1,hideNonActiveStepsContent:a=!0,orientation:n="vertical",...r},h)=>{const d=pt(t,"pkt-stepper",n==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),p=x.Children.map(e,(f,g)=>x.isValidElement(f)?x.cloneElement(f,{className:pt(f.props.className,{"pkt-step--hideStep":i&&g!==s,"pkt-step--hideContent":a&&g!==s})}):f);return l.jsx("ol",{"data-testid":"pkt-stepper",className:d,ref:h,...r,children:p})}),Jh=({className:s,compact:t=!1,skin:e="basic",responsiveView:i=!0,children:a,...n})=>l.jsx("table",{"data-testid":"pkt-table",className:pt(s,"pkt-table",{"pkt-table--responsive":i,"pkt-table--compact":t,"pkt-table--basic":e==="basic","pkt-table--zebra-blue":e==="zebra-blue"}),role:"table",...n,children:a}),Qh=({id:s,children:t,className:e,...i})=>l.jsx("tbody",{id:s,className:pt(e,"pkt-table__body",{}),...i,role:"rowgroup",children:t}),td=({children:s,className:t,dataLabel:e,...i})=>l.jsx("td",{className:pt(t,"pkt-table__data-cell",{}),"data-label":e,role:"cell","data-testid":"pkt-table__data-cell",...i,children:s}),ed=({className:s,children:t,...e})=>l.jsx("thead",{className:pt(s,"pkt-table__header",{}),role:"rowgroup",...e,children:t}),sd=({className:s,children:t,...e})=>l.jsx("th",{className:pt(s,"pkt-table__header-cell",{}),role:"columnheader",...e,children:t}),id=({className:s,children:t,...e})=>l.jsx("tr",{className:pt(s,"pkt-table__row",{}),role:"row",...e,children:t}),Bi=x.forwardRef(({children:s,skin:t,textStyle:e,size:i,closeTag:a,className:n,iconName:r,ariaLabel:h,onClose:d,type:p,"aria-description":f,...g},k)=>{const[b,y]=x.useState(!1),w=x.useCallback(()=>{y(!0),d&&d()},[y]),C=x.useRef(null),[P,T]=x.useState("");x.useEffect(()=>{var Z,wt;T(((wt=(Z=C.current)==null?void 0:Z.textContent)==null?void 0:wt.trim())??"")},[s]);const I=x.useMemo(()=>{if(a&&!h)return P&&`Klikk for å fjerne ${P}`||f},[a,h,P,f]),N={"pkt-tag":!0,[`pkt-tag--${i}`]:!!i,[`pkt-tag--${t}`]:!!t,[`pkt-tag--${e}`]:!!e},W={"pkt-tag":!0,"pkt-btn":!0,"pkt-btn--tertiary":!0,[`pkt-tag--${e}`]:!!e,[`pkt-tag--${i}`]:!!i,[`pkt-tag--${t}`]:!!t,"pkt-btn--icons-right-and-left":a&&!!r,"pkt-hide":b};return a?l.jsxs("button",{...g,className:pt(W,n),type:p,onClick:w,"aria-label":h,"aria-description":I,ref:k,children:[r&&l.jsx(B,{className:"pkt-tag__icon",name:r}),l.jsx("span",{ref:C,children:s}),l.jsx(B,{className:"pkt-tag__close-btn",name:"close"})]}):l.jsxs("span",{...g,className:pt(N,n),ref:k,children:[r&&l.jsx(B,{className:"pkt-tag__icon",name:r,"aria-hidden":"true"}),l.jsx("span",{ref:C,children:s})]})});Bi.displayName="PktTag";const Fi=x.forwardRef(({children:s,active:t,href:e,onClick:i,icon:a,controls:n,tag:r,tagSkin:h,index:d=0},p)=>{const{arrowNav:f,registerTabRef:g,handleKeyPress:k,selectTab:b}=ad(),w={"aria-selected":f?!!t:void 0,"aria-controls":n,role:f?"tab":void 0,onKeyUp:P=>k(d,P),onClick:P=>{b(d),i==null||i(P)},tabIndex:t||!f?void 0:-1,ref:P=>{g(d,P),typeof p=="function"?p(P):p&&(p.current=P)}},C=l.jsxs(l.Fragment,{children:[a&&l.jsx(B,{name:a,className:"pkt-icon--small"}),s,r&&l.jsx(Bi,{skin:h,size:"small",children:r})]});return e?l.jsx("a",{...w,href:e,className:`pkt-tabs__link ${t?"active":""}`,children:C}):l.jsx("button",{...w,type:"button",className:`pkt-tabs__button pkt-link-button ${t?"active":""}`,children:C})});Fi.displayName="PktTabItem";const bn=x.createContext(null),ad=()=>{const s=x.useContext(bn);if(!s)throw new Error("TabItem must be used within a Tabs component");return s},nd=x.forwardRef(({arrowNav:s=!0,disableArrowNav:t=!1,tabs:e,onTabSelected:i,children:a},n)=>{const r=x.useRef([]),h=s&&!t,p=a&&x.Children.count(a)>0?x.Children.count(a):(e==null?void 0:e.length)||0;x.useEffect(()=>{r.current=r.current.slice(0,p)},[p]);const f=y=>{const w=e==null?void 0:e[y];w!=null&&w.action&&w.action(y),i&&i(y)},g=(y,w)=>{var C,P;h&&(w.code==="ArrowLeft"&&y!==0&&((C=r.current[y-1])==null||C.focus()),w.code==="ArrowRight"&&y<p-1&&((P=r.current[y+1])==null||P.focus()),(w.code==="ArrowDown"||w.code==="Space")&&f(y))},k=(y,w)=>{r.current[y]=w},b=e==null?void 0:e.map((y,w)=>{var C,P;return l.jsx(Fi,{active:y.active,href:y.href,onClick:()=>f(w),icon:y.icon,controls:y.controls,tag:(C=y.tag)==null?void 0:C.text,tagSkin:(P=y.tag)==null?void 0:P.skin,index:w,children:y.text},w)});return l.jsx(bn.Provider,{value:{arrowNav:h,registerTabRef:k,handleKeyPress:g,selectTab:f},children:l.jsx("div",{className:"pkt-tabs",ref:n,children:l.jsx("div",{className:"pkt-tabs__list",role:h?"tablist":"navigation",children:a||b})})})}),rd=x.forwardRef(({id:s,ariaDescribedby:t,ariaLabelledby:e,counter:i,counterMaxLength:a,className:n,disabled:r,errorMessage:h,hasError:d,helptext:p,helptextDropdown:f,helptextDropdownButton:g,inline:k,fullwidth:b=!1,label:y,name:w,optionalTag:C=!1,optionalText:P,requiredTag:T=!1,requiredText:I,tagText:N=null,placeholder:W,rows:Z,useWrapper:wt=!0,onChange:bt,value:Q,autoComplete:rt="off",minLength:Ft,maxLength:Vt,readOnly:ot=!1,skipForwardTestid:F=!1,...At},ae)=>{const de=[n,"pkt-textinput","pkt-textarea"].join(" "),ne=`${s}-input`,He=`${ne}-label`,ds=e||He,[ce,zt]=x.useState(0),ut=Ue=>{var qe,pe;if(i&&zt(((pe=(qe=Ue.currentTarget)==null?void 0:qe.value)==null?void 0:pe.length)||0),bt)return bt(Ue)};return x.useEffect(()=>{Q!==void 0&&zt((Q==null?void 0:Q.length)||0)},[Q]),l.jsx(Bs,{ariaDescribedby:t,className:de,disabled:r,errorMessage:h,forId:ne,hasError:d,helptext:p,helptextDropdown:f,helptextDropdownButton:g,inline:k,label:y,optionalTag:C,optionalText:P,requiredTag:T,requiredText:I,tagText:N,useWrapper:wt,counter:i,counterCurrent:ce,counterMaxLength:a,children:l.jsx("textarea",{ref:ae,className:`pkt-input ${b?"pkt-input--fullwidth":""} ${a&&ce>a?"pkt-input--counter-error":""}`,name:`${w||s}`,id:ne,placeholder:W,disabled:r,rows:Z,"aria-labelledby":ds,"aria-invalid":d,"aria-errormessage":`${s}-error`,...At,onChange:ut,value:Q,autoComplete:rt,minLength:Ft,maxLength:Vt,"data-skip-forward-testid":F?"true":void 0})})}),od=x.forwardRef(({id:s,ariaDescribedby:t,ariaLabelledby:e,autocomplete:i="off",counter:a,counterMaxLength:n,className:r,disabled:h=!1,errorMessage:d,hasError:p=!1,helptext:f,helptextDropdown:g,helptextDropdownButton:k,iconNameRight:b,inline:y=!1,fullwidth:w=!1,label:C,name:P,optionalTag:T=!1,optionalText:I,requiredTag:N=!1,requiredText:W,tagText:Z=null,placeholder:wt,prefix:bt,suffix:Q,type:rt="text",useWrapper:Ft=!0,omitSearchIcon:Vt=!1,value:ot,minLength:F,maxLength:At,min:ae,max:de,step:ne,size:He,readonly:ds,required:ce,dataTestid:zt,onChange:ut,skipForwardTestid:Ue=!1,...qe},pe)=>{const ji=[r,"pkt-textinput"].join(" "),hi=rt==="search"&&!b&&!Vt,Hi=rt==="date"&&ot?ot.slice(0,10):ot,[di,cs]=x.useState((ot==null?void 0:ot.length)||0),ps=`${s}`,Vs=`${ps}-label`,ci=e||Vs,Ui=_e=>{var pi,ui;a&&cs(((ui=(pi=_e.currentTarget)==null?void 0:pi.value)==null?void 0:ui.length)||0),ut&&ut(_e)};return x.useEffect(()=>{ot!==void 0&&cs((ot==null?void 0:ot.length)||0)},[ot]),l.jsx(Bs,{ariaDescribedby:t,className:ji,disabled:h,errorMessage:d,forId:ps,hasError:p,helptext:f,helptextDropdown:g,helptextDropdownButton:k,inline:y,label:C,optionalTag:T,optionalText:I,requiredTag:N,requiredText:W,tagText:Z,useWrapper:Ft,counter:a,counterCurrent:di,counterMaxLength:n,children:l.jsxs("div",{className:"pkt-input__container","data-testid":zt,"data-skip-forward-testid":Ue?"true":void 0,children:[bt&&l.jsx("div",{className:"pkt-input-prefix",children:bt}),l.jsx("input",{...qe,ref:pe,className:`pkt-input ${w?"pkt-input--fullwidth":""} ${n&&di>n?"pkt-input--counter-error":""}`,type:rt,name:`${P||s}`,value:Hi,id:ps,placeholder:wt,autoComplete:i,disabled:h,"aria-invalid":p,"aria-errormessage":`${s}-error`,"aria-labelledby":ci,min:ae,max:de,onChange:Ui,step:ne,minLength:F,maxLength:At,size:He,required:ce}),Q&&l.jsxs("p",{className:"pkt-input-suffix",children:[Q,b&&l.jsx(B,{className:"pkt-input-suffix-icon",name:b}),hi&&l.jsx(B,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!Q&&b&&l.jsx(B,{className:"pkt-input-icon",name:b}),!Q&&hi&&l.jsx(B,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})});var ls=window.CustomEvent;(!ls||typeof ls=="object")&&(ls=function(s,t){t=t||{};var e=document.createEvent("CustomEvent");return e.initCustomEvent(s,!!t.bubbles,!!t.cancelable,t.detail||null),e},ls.prototype=window.Event.prototype);function yn(s,t){var e="on"+t.type.toLowerCase();return typeof s[e]=="function"&&s[e](t),s.dispatchEvent(t)}function ld(s){for(;s&&s!==document.body;){var t=window.getComputedStyle(s),e=function(i,a){return!(t[i]===void 0||t[i]===a)};if(t.opacity<1||e("zIndex","auto")||e("transform","none")||e("mixBlendMode","normal")||e("filter","none")||e("perspective","none")||t.isolation==="isolate"||t.position==="fixed"||t.webkitOverflowScrolling==="touch")return!0;s=s.parentElement}return!1}function Fs(s){for(;s;){if(s.localName==="dialog")return s;s.parentElement?s=s.parentElement:s.parentNode?s=s.parentNode.host:s=null}return null}function kn(s){for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;s&&s.blur&&s!==document.body&&s.blur()}function hd(s,t){for(var e=0;e<s.length;++e)if(s[e]===t)return!0;return!1}function Vi(s){return!s||!s.hasAttribute("method")?!1:s.getAttribute("method").toLowerCase()==="dialog"}function $n(s){var t=["button","input","keygen","select","textarea"],e=t.map(function(r){return r+":not([disabled])"});e.push('[tabindex]:not([disabled]):not([tabindex=""])');var i=s.querySelector(e.join(", "));if(!i&&"attachShadow"in Element.prototype)for(var a=s.querySelectorAll("*"),n=0;n<a.length&&!(a[n].tagName&&a[n].shadowRoot&&(i=$n(a[n].shadowRoot),i));n++);return i}function _n(s){return s.isConnected||document.body.contains(s)}function wn(s){if(s.submitter)return s.submitter;var t=s.target;if(!(t instanceof HTMLFormElement))return null;var e=z.formSubmitter;if(!e){var i=s.target,a="getRootNode"in i&&i.getRootNode()||document;e=a.activeElement}return!e||e.form!==t?null:e}function dd(s){if(!s.defaultPrevented){var t=s.target,e=z.imagemapUseValue,i=wn(s);e===null&&i&&(e=i.value);var a=Fs(t);if(a){var n=i&&i.getAttribute("formmethod")||t.getAttribute("method");n==="dialog"&&(s.preventDefault(),e!=null?a.close(e):a.close())}}}function xn(s){if(this.dialog_=s,this.replacedStyleTop_=!1,this.openAsModal_=!1,s.hasAttribute("role")||s.setAttribute("role","dialog"),s.show=this.show.bind(this),s.showModal=this.showModal.bind(this),s.close=this.close.bind(this),s.addEventListener("submit",dd,!1),"returnValue"in s||(s.returnValue=""),"MutationObserver"in window){var t=new MutationObserver(this.maybeHideModal.bind(this));t.observe(s,{attributes:!0,attributeFilter:["open"]})}else{var e=!1,i=(function(){e?this.downgradeModal():this.maybeHideModal(),e=!1}).bind(this),a,n=function(r){if(r.target===s){var h="DOMNodeRemoved";e|=r.type.substr(0,h.length)===h,window.clearTimeout(a),a=window.setTimeout(i,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach(function(r){s.addEventListener(r,n)})}Object.defineProperty(s,"open",{set:this.setOpen.bind(this),get:s.hasAttribute.bind(s,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("mouseup",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("mousedown",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("click",this.backdropMouseEvent_.bind(this))}xn.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&_n(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),z.dm.removeDialog(this))},setOpen:function(s){s?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropMouseEvent_:function(s){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var t=document.createElement("div");this.dialog_.insertBefore(t,this.dialog_.firstChild),t.tabIndex=-1,t.focus(),this.dialog_.removeChild(t)}var e=document.createEvent("MouseEvents");e.initMouseEvent(s.type,s.bubbles,s.cancelable,window,s.detail,s.screenX,s.screenY,s.clientX,s.clientY,s.ctrlKey,s.altKey,s.shiftKey,s.metaKey,s.button,s.relatedTarget),this.dialog_.dispatchEvent(e),s.stopPropagation()},focus_:function(){var s=this.dialog_.querySelector("[autofocus]:not([disabled])");!s&&this.dialog_.tabIndex>=0&&(s=this.dialog_),s||(s=$n(this.dialog_)),kn(document.activeElement),s&&s.focus()},updateZIndex:function(s,t){if(s<t)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=s,this.backdrop_.style.zIndex=t},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!_n(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!z.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");ld(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,z.needsCentering(this.dialog_)?(z.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(s){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),s!==void 0&&(this.dialog_.returnValue=s);var t=new ls("close",{bubbles:!1,cancelable:!1});yn(this.dialog_,t)}};var z={};if(z.reposition=function(s){var t=document.body.scrollTop||document.documentElement.scrollTop,e=t+(window.innerHeight-s.offsetHeight)/2;s.style.top=Math.max(t,e)+"px"},z.isInlinePositionSetByStylesheet=function(s){for(var t=0;t<document.styleSheets.length;++t){var e=document.styleSheets[t],i=null;try{i=e.cssRules}catch{}if(i)for(var a=0;a<i.length;++a){var n=i[a],r=null;try{r=document.querySelectorAll(n.selectorText)}catch{}if(!(!r||!hd(r,s))){var h=n.style.getPropertyValue("top"),d=n.style.getPropertyValue("bottom");if(h&&h!=="auto"||d&&d!=="auto")return!0}}}return!1},z.needsCentering=function(s){var t=window.getComputedStyle(s);return t.position!=="absolute"||s.style.top!=="auto"&&s.style.top!==""||s.style.bottom!=="auto"&&s.style.bottom!==""?!1:!z.isInlinePositionSetByStylesheet(s)},z.forceRegisterDialog=function(s){if((window.HTMLDialogElement||s.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",s),s.localName!=="dialog")throw new Error("Failed to register dialog: The element is not a dialog.");new xn(s)},z.registerDialog=function(s){s.showModal||z.forceRegisterDialog(s)},z.DialogManager=function(){this.pendingDialogStack=[];var s=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",(function(t){this.forwardTab_=void 0,t.stopPropagation(),s([])}).bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(t){var e=[];t.forEach(function(i){for(var a=0,n;n=i.removedNodes[a];++a){if(n instanceof Element)n.localName==="dialog"&&e.push(n);else continue;e=e.concat(n.querySelectorAll("dialog"))}}),e.length&&s(e)}))},z.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},z.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},z.DialogManager.prototype.updateStacking=function(){for(var s=this.zIndexHigh_,t=0,e;e=this.pendingDialogStack[t];++t)e.updateZIndex(--s,--s),t===0&&(this.overlay.style.zIndex=--s);var i=this.pendingDialogStack[0];if(i){var a=i.dialog.parentNode||document.body;a.appendChild(this.overlay)}else this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},z.DialogManager.prototype.containedByTopDialog_=function(s){for(;s=Fs(s);){for(var t=0,e;e=this.pendingDialogStack[t];++t)if(e.dialog===s)return t===0;s=s.parentElement}return!1},z.DialogManager.prototype.handleFocus_=function(s){var t=s.composedPath?s.composedPath()[0]:s.target;if(!this.containedByTopDialog_(t)&&document.activeElement!==document.documentElement&&(s.preventDefault(),s.stopPropagation(),kn(t),this.forwardTab_!==void 0)){var e=this.pendingDialogStack[0],i=e.dialog,a=i.compareDocumentPosition(t);return a&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?e.focus_():t!==document.documentElement&&document.documentElement.focus()),!1}},z.DialogManager.prototype.handleKey_=function(s){if(this.forwardTab_=void 0,s.keyCode===27){s.preventDefault(),s.stopPropagation();var t=new ls("cancel",{bubbles:!1,cancelable:!0}),e=this.pendingDialogStack[0];e&&yn(e.dialog,t)&&e.dialog.close()}else s.keyCode===9&&(this.forwardTab_=!s.shiftKey)},z.DialogManager.prototype.checkDOM_=function(s){var t=this.pendingDialogStack.slice();t.forEach(function(e){s.indexOf(e.dialog)!==-1?e.downgradeModal():e.maybeHideModal()})},z.DialogManager.prototype.pushDialog=function(s){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return this.pendingDialogStack.length>=t?!1:(this.pendingDialogStack.unshift(s)===1&&this.blockDocument(),this.updateStacking(),!0)},z.DialogManager.prototype.removeDialog=function(s){var t=this.pendingDialogStack.indexOf(s);t!==-1&&(this.pendingDialogStack.splice(t,1),this.pendingDialogStack.length===0&&this.unblockDocument(),this.updateStacking())},z.dm=new z.DialogManager,z.formSubmitter=null,z.imagemapUseValue=null,window.HTMLDialogElement===void 0){var Sn=document.createElement("form");if(Sn.setAttribute("method","dialog"),Sn.method!=="dialog"){var hs=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(hs){var cd=hs.get;hs.get=function(){return Vi(this)?"dialog":cd.call(this)};var pd=hs.set;hs.set=function(s){return typeof s=="string"&&s.toLowerCase()==="dialog"?this.setAttribute("method",s):pd.call(this,s)},Object.defineProperty(HTMLFormElement.prototype,"method",hs)}}document.addEventListener("click",function(s){if(z.formSubmitter=null,z.imagemapUseValue=null,!s.defaultPrevented){var t=s.target;if("composedPath"in s){var e=s.composedPath();t=e.shift()||t}if(!(!t||!Vi(t.form))){var i=t.type==="submit"&&["button","input"].indexOf(t.localName)>-1;if(!i){if(!(t.localName==="input"&&t.type==="image"))return;z.imagemapUseValue=s.offsetX+","+s.offsetY}var a=Fs(t);a&&(z.formSubmitter=t)}}},!1),document.addEventListener("submit",function(s){var t=s.target,e=Fs(t);if(!e){var i=wn(s),a=i&&i.getAttribute("formmethod")||t.getAttribute("method");a==="dialog"&&s.preventDefault()}});var ud=HTMLFormElement.prototype.submit,fd=function(){if(!Vi(this))return ud.call(this);var s=Fs(this);s&&s.close()};HTMLFormElement.prototype.submit=fd}const gd=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));O.PktAccordion=Ki,O.PktAccordionItem=tn,O.PktAlert=Li,O.PktBackLink=sn,O.PktBreadcrumbs=Oh,O.PktButton=je,O.PktCard=an,O.PktCheckbox=nn,O.PktCombobox=rn,O.PktConsent=li,O.PktDatepicker=on,O.PktFooter=Bh,O.PktFooterSimple=Fh,O.PktHeader=Vh,O.PktHeading=ln,O.PktHelptext=hn,O.PktIcon=B,O.PktInput=dn,O.PktInputWrapper=Bs,O.PktLink=cn,O.PktLinkCard=pn,O.PktLoader=un,O.PktMessagebox=fn,O.PktModal=gn,O.PktProgressbar=mn,O.PktRadioButton=vn,O.PktSearchInput=Wh,O.PktSelect=Rh,O.PktStep=Zh,O.PktStepper=Xh,O.PktTabItem=Fi,O.PktTable=Jh,O.PktTableBody=Qh,O.PktTableDataCell=td,O.PktTableHeader=ed,O.PktTableHeaderCell=sd,O.PktTableRow=id,O.PktTabs=nd,O.PktTag=Bi,O.PktTextarea=rd,O.PktTextinput=od,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
1457
+ */var en;function Mh(){return en||(en=1,(function(s){(function(){var t={}.hasOwnProperty;function e(){for(var n="",r=0;r<arguments.length;r++){var h=arguments[r];h&&(n=a(n,i(h)))}return n}function i(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return e.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var r="";for(var h in n)t.call(n,h)&&n[h]&&(r=a(r,h));return r}function a(n,r){return r?n?n+" "+r:n+r:n}s.exports?(e.default=e,s.exports=e):window.classNames=e})()})(Ii)),Ii.exports}var Ph=Mh();const pt=Eh(Ph),Li=({children:s,closeAlert:t,compact:e,title:i,date:a,ariaLive:n,"aria-live":r="polite",role:h="status",skin:d="info",className:p,...f})=>{const[g,k]=x.useState(!1),b={"pkt-alert":!0,"pkt-alert--compact":e,[`pkt-alert--${d}`]:d,"pkt-hide":g},y={"pkt-alert__grid":!0,"pkt-alert__noTitle":!i,"pkt-alert__noDate":!a},w=x.useCallback(()=>{k(!0),f.onClose&&f.onClose(new CustomEvent("close",{detail:{origin:event},bubbles:!0,composed:!0}))},[f.onClose,k]),C=n||r;return l.jsx("div",{...f,"aria-live":C,role:h,className:pt(b,p),children:l.jsxs("div",{className:pt(y),children:[l.jsx(B,{className:"pkt-alert__icon","aria-hidden":"true",name:d==="info"?"alert-information":`alert-${d}`}),t&&l.jsx("div",{className:"pkt-alert__close",children:l.jsx(je,{tabIndex:0,"aria-label":"close",size:e?"small":"medium",type:"button",skin:"tertiary",iconName:"close",variant:"icon-only",onClick:w,children:l.jsx("span",{className:"sr-only",children:"Lukk"})})}),i&&l.jsx("div",{className:"pkt-alert__title",children:i}),l.jsx("div",{className:"pkt-alert__text",children:s}),a&&l.jsxs("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",a]})]})})};Li.displayName="PktAlert";const sn=Wt({tagName:"pkt-backlink",elementClass:Xe,react:x,displayName:"PktBackLink"});sn.displayName="PktBackLink";const Oh=x.forwardRef(({breadcrumbs:s,navigationType:t,className:e,...i},a)=>{const n=s,r=n[n.length-2],h=[e,"pkt-breadcrumbs"].filter(Boolean).join(" ");return l.jsxs("nav",{ref:a,"aria-label":"brødsmulemeny",className:h,children:[l.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:n.map((d,p)=>l.jsx("li",{className:"pkt-breadcrumbs__item",children:p===n.length-1?l.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:l.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})}):t==="router"?l.jsxs(Wi.Link,{to:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...i,children:[l.jsx(B,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),l.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]}):l.jsxs("a",{href:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...i,children:[l.jsx(B,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),l.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]})},`breadcrumb-${p}`))}),t==="router"?l.jsxs(Wi.Link,{to:r.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...i,children:[l.jsx(B,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),l.jsx("span",{className:"pkt-breadcrumbs__text",children:r.text})]}):l.jsxs("a",{href:r.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...i,children:[l.jsx(B,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),l.jsx("span",{className:"pkt-breadcrumbs__text",children:r.text})]})]})});window.pktAnimationPath=window.pktAnimationPath||"https://punkt-cdn.oslo.kommune.no/13.22/animations/";const je=x.forwardRef(({children:s,className:t,iconName:e="user",secondIconName:i="user",iconPath:a,secondIconPath:n,size:r="medium",fullWidth:h=!1,fullWidthOnMobile:d=!1,skin:p="primary",type:f="button",variant:g="label-only",state:k,color:b,isLoading:y=void 0,disabled:w=void 0,loadingAnimationPath:C=window.pktAnimationPath,...P},T)=>{const I=[t,"pkt-btn",r&&`pkt-btn--${r}`,h&&"pkt-btn--full",d&&"pkt-btn--full-small",p&&`pkt-btn--${p}`,g&&`pkt-btn--${g}`,b&&`pkt-btn--${b}`,k&&`pkt-btn--${k}`,y&&"pkt-btn--isLoading"].filter(Boolean).join(" ");return l.jsxs("button",{...P,"aria-busy":y||void 0,"aria-disabled":w||void 0,disabled:w,className:I,type:f,ref:T,children:[y&&l.jsx(B,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:C}),g!=="label-only"&&l.jsx(B,{className:"pkt-btn__icon",name:e,...a&&{path:a}}),l.jsx("span",{className:"pkt-btn__text",children:s}),g==="icons-right-and-left"&&l.jsx(B,{className:"pkt-btn__icon",name:i,...n&&{path:n}})]})});je.displayName="PktButton";const Dh=Wt({tagName:"pkt-card",elementClass:ht,react:x,displayName:"PktCard",events:{}}),an=x.forwardRef(({children:s,...t},e)=>l.jsx(Dh,{...t,ref:e,children:l.jsx("div",{className:"pkt-contents",children:s})}));an.displayName="PktCard";const nn=x.forwardRef(({id:s,hasTile:t=!1,disabled:e=!1,label:i,checkHelptext:a,hasError:n=!1,className:r,isSwitch:h=!1,hideLabel:d=!1,labelPosition:p="right",defaultChecked:f,checked:g,indeterminate:k,optionalTag:b,optionalText:y="Valgfritt",requiredTag:w,requiredText:C="Må fylles ut",tagText:P,...T},I)=>{const N=x.useRef(null);x.useEffect(()=>{N.current&&k!==void 0&&(N.current.indeterminate=k)},[k]),x.useEffect(()=>{typeof I=="function"?I(N.current):I&&(I.current=N.current)},[I]);const W=[r,"pkt-input-check"].filter(Boolean).join(" "),Z=["pkt-input-check__input-label",e?"pkt-input-check__input-label--disabled":"",`pkt-input-check__input-label--${p}`,d?"pkt-sr-only":""].filter(Boolean).join(" "),wt=["pkt-input-check__input",t?"pkt-input-check__input--tile":"",e&&t?"pkt-input-check__input--tile-disabled":""].filter(Boolean).join(" "),bt=["pkt-tag","pkt-tag--small","pkt-tag--thin-text"].join(" "),Q=()=>l.jsxs(l.Fragment,{children:[P&&l.jsx("span",{className:bt+" pkt-tag--gray",children:P}),b&&l.jsx("span",{className:bt+" pkt-tag--blue-light",children:y}),w&&l.jsx("span",{className:bt+" pkt-tag--beige",children:C})]});return l.jsx("div",{className:W,children:l.jsxs("div",{className:wt,children:[p==="left"&&l.jsxs("label",{className:Z,htmlFor:s,children:[i," ",Q(),a&&l.jsx("div",{className:"pkt-input-check__input-helptext",children:a})]}),l.jsx("input",{role:h?"switch":"checkbox",ref:N,className:`pkt-input-check__input-checkbox ${n?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",id:s,disabled:e,...g!==void 0?{checked:g}:{defaultChecked:f},...T}),p==="right"&&l.jsxs("label",{className:Z,htmlFor:s,children:[i," ",Q(),a&&l.jsx("div",{className:"pkt-input-check__input-helptext",children:a})]})]})})});nn.displayName="PktCheckbox";const Ih=Wt({tagName:"pkt-combobox",elementClass:tt,react:x,displayName:"PktCombobox",events:{onClick:"click",onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),rn=x.forwardRef(({children:s,helptext:t,...e},i)=>l.jsxs(Ih,{...e,ref:i,children:[t&&l.jsx("div",{slot:"helptext",className:"pkt-contents",children:t}),s]}));rn.displayName="PktCombobox";const li=Wt({tagName:"pkt-consent",elementClass:Ut,react:x,displayName:"PktConsent",events:{onToggleConsent:"toggle-consent"}});li.displayName="PktConsent";const Lh=Wt({tagName:"pkt-datepicker",elementClass:st,react:x,displayName:"PktDatepicker",events:{onChange:"change",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),on=x.forwardRef(({helptext:s,...t},e)=>l.jsx(Lh,{ref:e,...t,children:l.jsx("div",{className:"pkt-contents",slot:"helptext",children:s})}));on.displayName="PktDatepicker";const Bh=({columnOne:s,columnTwo:t,socialLinks:e,className:i,openLinksInNewTab:a=!1,personvernOgInfoLink:n="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:r="https://www.oslo.kommune.no/tilgjengelighet/",includeConsent:h=!1,hotjarId:d=null,googleAnalyticsId:p=null,devMode:f=!1,cookieDomain:g=null,cookieSecure:k=null,cookieExpiryDays:b=null,onToggleConsent:y=w=>{console.log(w.detail)}})=>{var C,P;const w=[i,"pkt-footer"].filter(Boolean).join(" ");return l.jsx("footer",{className:w,"data-mode":"dark",children:l.jsxs("div",{className:"pkt-footer__container",children:[l.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[l.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[l.jsx("h2",{className:"pkt-footer__title",children:s.title}),l.jsxs("ul",{className:"pkt-footer__list",children:[s.text&&l.jsx("li",{className:"pkt-footer__text",children:s.text}),(C=s.links)==null?void 0:C.map((T,I)=>l.jsx("li",{className:"pkt-footer__list-item",children:l.jsxs("a",{className:`pkt-footer__link ${T.external?"pkt-link--external":""}`,href:T.href,target:T.openInNewTab||a?"_blank":"_self",rel:T.openInNewTab||a?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer__link-icon",name:"chevron-right"}),T.text]})},`links-${I}`))]})]}),l.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[l.jsx("h2",{className:"pkt-footer__title",children:t.title}),l.jsxs("ul",{className:"pkt-footer__list",children:[t.text&&l.jsx("li",{className:"pkt-footer__text",children:t.text}),(P=t.links)==null?void 0:P.map((T,I)=>l.jsx("li",{className:"pkt-footer__list-item",children:l.jsxs("a",{className:`pkt-footer__link ${T.external?"pkt-link--external":""}`,href:T.href,target:T.openInNewTab||a?"_blank":"_self",rel:T.openInNewTab||a?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer__link-icon",name:"chevron-right"}),T.text]})},`links-${I}`))]})]}),l.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[l.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),l.jsxs("ul",{className:"pkt-footer__list",children:[l.jsx("li",{className:"pkt-footer__list-item",children:l.jsxs("a",{className:"pkt-footer__link",href:n,target:a?"_blank":"_self",rel:a?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),l.jsx("li",{className:"pkt-footer__list-item",children:l.jsxs("a",{className:"pkt-footer__link",href:r,target:a?"_blank":"_self",rel:a?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})}),h&&l.jsx("li",{className:"pkt-footer__list-item",children:l.jsx(li,{triggerType:"footerlink",hotjarId:d,googleAnalyticsId:p,devMode:f,cookieDomain:g,cookieSecure:k,cookieExpiryDays:b,onToggleConsent:y})})]})]})]}),e&&l.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[l.jsx("div",{className:"pkt-footer__social-languages",children:e.filter(T=>T.language).map((T,I)=>l.jsx("div",{className:"pkt-footer__social-language",children:l.jsx("a",{href:T.href,"aria-label":`til ${T.language} versjon av nettsiden`,target:T.openInNewTab||a?"_blank":"_self",rel:T.openInNewTab||a?"noopener noreferrer":void 0,children:T.language})},`sociallinks-language-${I}`))}),l.jsx("div",{className:"pkt-footer__social-icons",children:e.filter(T=>T.iconName).map((T,I)=>l.jsx(x.Fragment,{children:l.jsx("a",{href:T.href,"aria-label":`til ${T.iconName}`,className:"pkt-footer__social-icon-link",target:T.openInNewTab||a?"_blank":"_self",rel:T.openInNewTab||a?"noopener noreferrer":void 0,children:l.jsx(B,{className:"pkt-footer__social-icon",name:T.iconName})})},`sociallinks-${I}`))})]})]})})},Fh=({links:s=[],openLinksInNewTab:t=!1,personvernOgInfoLink:e="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:i="https://www.oslo.kommune.no/tilgjengelighet/",includeConsent:a=!1,hotjarId:n=null,googleAnalyticsId:r=null,devMode:h=!1,cookieDomain:d=null,cookieSecure:p=null,cookieExpiryDays:f=null,onToggleConsent:g=b=>{console.log(b.detail)},className:k})=>{const b=[k,"pkt-footer-simple"].filter(Boolean).join(" ");return l.jsx("footer",{className:b,"data-mode":"dark",children:l.jsx("div",{className:"pkt-footer-simple__container",children:l.jsxs("ul",{className:"pkt-footer-simple__list",children:[s.map((y,w)=>l.jsx("li",{className:"pkt-footer-simple__list-item",children:l.jsxs("a",{className:`pkt-footer-simple__link ${y.external?" pkt-link--external":""}`,href:y.href,target:y.openInNewTab||t?"_blank":"_self",rel:y.openInNewTab||t?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),y.text]})},w)),l.jsx("li",{className:"pkt-footer-simple__list-item",children:l.jsxs("a",{className:"pkt-footer-simple__link",href:e,target:t?"_blank":"_self",rel:t?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),l.jsx("li",{className:"pkt-footer-simple__list-item",children:l.jsxs("a",{className:"pkt-footer-simple__link",href:i,target:t?"_blank":"_self",rel:t?"noopener noreferrer":void 0,children:[l.jsx(B,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})}),a&&l.jsx("li",{className:"pkt-footer-simple__list-item",children:l.jsx(li,{triggerType:"footerlink",hotjarId:n,googleAnalyticsId:r,devMode:h,cookieDomain:d,cookieSecure:p,cookieExpiryDays:f,onToggleConsent:g})})]})})})},Vh=x.forwardRef(({className:s,logoLink:t="https://www.oslo.kommune.no/",serviceName:e,fixed:i=!0,scrollToHide:a=!0,user:n,userMenu:r,representing:h,userOptions:d,userMenuFooter:p,canChangeRepresentation:f=!0,showMenuButton:g=!1,showLogOutButton:k=!1,openMenu:b,logOut:y,changeRepresentation:w,children:C,...P},T)=>{const I=x.useMemo(()=>typeof(n==null?void 0:n.lastLoggedIn)=="string"?n.lastLoggedIn:n!=null&&n.lastLoggedIn?new Date(n.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[n]),[N,W]=x.useState(!1),[Z,wt]=x.useState(0),[bt,Q]=x.useState(!1),rt=x.useRef(null);x.useEffect(()=>(document&&(document.addEventListener("mouseup",Vt),window.addEventListener("scroll",ot)),()=>{document&&(document.removeEventListener("mouseup",Vt),window.removeEventListener("scroll",ot))}));const Ft=()=>{Q(!bt)},Vt=F=>{rt.current&&!rt.current.contains(F.target)&&Q(!1)},ot=()=>{if(a){const F=window.pageYOffset||document.documentElement.scrollTop;if(F<0||Math.abs(F-Z)<60)return;W(F>Z),wt(F)}};return l.jsxs("header",{...P,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:pt(s,"pkt-header",{"pkt-header--fixed":i,"pkt-header--scroll-to-hide":a,"pkt-header--hidden":N}),ref:T,children:[l.jsxs("div",{className:"pkt-header__logo",children:[typeof t=="string"?l.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:t,children:l.jsx(B,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/13.22/logos/"})}):l.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:t,children:l.jsx(B,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/13.22/logos/"})}),l.jsx("span",{className:"pkt-header__logo-service",translate:"no",children:e})]}),l.jsx("nav",{className:"pkt-header__actions",children:l.jsxs("ul",{className:"pkt-header__actions-row",children:[g&&l.jsx("li",{children:l.jsx(je,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:b,children:"Meny"})}),(n||h)&&l.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${bt&&!N?"pkt-header--open-dropdown":""}`,ref:rt,children:[l.jsxs("button",{className:"pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",type:"button",role:"button","aria-controls":"pktUserDropdown","aria-expanded":bt,onClick:Ft,children:[l.jsx(B,{name:"user",className:"pkt-btn__icon"}),l.jsx("span",{className:"pkt-header__user-fullname",translate:"no",children:(h==null?void 0:h.name)||(n==null?void 0:n.name)}),l.jsx("span",{className:"pkt-header__user-shortname",translate:"no",children:(h==null?void 0:h.shortname)||(n==null?void 0:n.shortname)}),l.jsx(B,{name:"chevron-thin-down",className:"pkt-btn--closed"}),l.jsx(B,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),l.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[n&&l.jsxs("li",{children:[l.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),l.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:n.name}),n.lastLoggedIn&&l.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",l.jsx("time",{children:I})]})]}),r&&l.jsx("li",{children:l.jsx("ul",{className:"pkt-list",children:r.map((F,At)=>l.jsx("li",{children:typeof F.target=="string"?l.jsxs("a",{href:F.target,className:"pkt-link",children:[F.iconName&&l.jsx(B,{name:F.iconName,className:"pkt-link__icon"}),F.title]}):l.jsxs("button",{className:"pkt-link-button pkt-link",onClick:F.target,children:[F.iconName&&l.jsx(B,{name:F.iconName,className:"pkt-link__icon"}),F.title]})},`userMenu-${At}`))})}),(h||f)&&l.jsxs("li",{children:[h&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),l.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:h.name}),h.orgNumber&&l.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",h.orgNumber]})]}),l.jsx("ul",{className:"pkt-list mt-size-16",children:f&&l.jsx("li",{children:l.jsxs("button",{className:"pkt-link-button pkt-link",onClick:w,children:[l.jsx(B,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),l.jsx("li",{children:l.jsx("ul",{className:"pkt-list",children:(d||!k)&&l.jsxs(l.Fragment,{children:[d==null?void 0:d.map((F,At)=>l.jsx("li",{children:typeof F.target=="string"?l.jsxs("a",{href:F.target,className:"pkt-link",children:[F.iconName&&l.jsx(B,{name:F.iconName,className:"pkt-link__icon"}),F.title]}):l.jsxs("button",{className:"pkt-link-button pkt-link",onClick:F.target,children:[F.iconName&&l.jsx(B,{name:F.iconName,className:"pkt-link__icon"}),F.title]})},`userOptions-${At}`)),!k&&l.jsx("li",{children:l.jsxs("button",{className:"pkt-link-button pkt-link",onClick:y,children:[l.jsx(B,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),p&&l.jsx("li",{className:"footer",children:l.jsx("ul",{className:"pkt-list-horizontal bordered",children:p.map((F,At)=>l.jsx("li",{children:typeof F.target=="string"?l.jsx("a",{href:F.target,className:"pkt-link",children:F.title}):l.jsx("button",{className:"pkt-link-button pkt-link",onClick:F.target,children:F.title})},`userMenuFooter-${At}`))})})]})]}),C&&l.jsx("li",{children:C}),k&&l.jsx("li",{children:l.jsx(je,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:y,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),jh=Wt({tagName:"pkt-heading",elementClass:ye,react:x,displayName:"PktHeading"}),ln=x.forwardRef(({children:s,...t},e)=>l.jsx(jh,{"data-testid":"pkt-heading",...t,ref:e,children:s}));ln.displayName="PktHeading";const Hh=Wt({tagName:"pkt-helptext",elementClass:oe,react:x,displayName:"PktHelptext",events:{onToggleHelpText:"toggleHelpText"}}),hn=x.forwardRef(({children:s,...t},e)=>l.jsx(Hh,{...t,ref:e,children:l.jsx("div",{className:"pkt-contents",children:s})}));hn.displayName="PktHelptext";const dn=x.forwardRef(({label:s,id:t,children:e,...i},a)=>l.jsxs("div",{className:"pkt-form-group",children:[l.jsx("label",{htmlFor:t,className:"pkt-form-label",children:s}),l.jsx("input",{className:"pkt-form-input",id:t,...i,ref:a}),e]}));dn.displayName="PktInput";const Bs=x.forwardRef(({forId:s,label:t,helptext:e,helptextDropdown:i,helptextDropdownButton:a,counter:n,counterCurrent:r=0,counterMaxLength:h,optionalTag:d=!1,optionalText:p="Valgfritt",requiredTag:f=!1,requiredText:g="Må fylles ut",tagText:k=null,hasError:b=!1,errorMessage:y,disabled:w=!1,inline:C=!1,ariaDescribedby:P,useWrapper:T=!0,children:I,className:N="",hasFieldset:W=!1,role:Z="group",counterPosition:wt="bottom"},bt)=>{const[Q,rt]=x.useState(!1),Ft=P||(e?`${s}-helptext`:void 0),Vt=!!n,ot=Vt&&wt==="top",F=Vt&&wt==="bottom",At=()=>rt(ut=>!ut),ae=["pkt-inputwrapper",N,b?"pkt-inputwrapper--error":"",w?"pkt-inputwrapper--disabled":"",C?"pkt-inputwrapper--inline":""].filter(Boolean).join(" "),de=["pkt-tag","pkt-tag--small","pkt-tag--thin-text"].join(" "),ne=()=>Vt?l.jsxs("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":"true",children:[r,h?`/${h}`:""]}):null,He=()=>l.jsxs(l.Fragment,{children:[k&&l.jsx("span",{className:de+" pkt-tag--gray",children:k}),d&&l.jsx("span",{className:de+" pkt-tag--blue-light",children:p}),f&&l.jsx("span",{className:de+" pkt-tag--beige",children:g})]}),ds=()=>{const ut=l.jsxs(l.Fragment,{children:[t," ",He()]});return T?W?l.jsx("legend",{className:"pkt-inputwrapper__legend",id:`${s}-label`,children:ut}):l.jsx("label",{className:"pkt-inputwrapper__label",htmlFor:s,"aria-describedby":Ft,id:`${s}-label`,children:ut}):l.jsx("label",{htmlFor:s,className:"pkt-sr-only","aria-describedby":Ft,id:`${s}-label`,children:t})},ce=()=>!e&&!i?null:l.jsxs(l.Fragment,{children:[e&&T&&l.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${s}-helptext`,children:e}),i&&l.jsxs("div",{className:"pkt-inputwrapper__helptext-expandable",children:[l.jsx(je,{skin:"tertiary",size:"small",variant:"icon-right",iconName:Q?"chevron-thin-up":"chevron-thin-down",className:"pkt-link pkt-link--icon-right",onClick:At,children:l.jsx("span",{dangerouslySetInnerHTML:{__html:a??'Les mer <span class="pkt-sr-only">om inputfeltet</span>'}})}),l.jsx("div",{className:`pkt-inputwrapper__helptext ${Q?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:i})]})]}),zt=l.jsxs(l.Fragment,{children:[ds(),ce(),ot&&l.jsx(ne,{}),I,F&&l.jsx(ne,{}),b&&y&&l.jsx("div",{className:"pkt-inputwrapper__alert-wrapper",children:l.jsx(Li,{skin:"error","aria-live":"assertive",role:"alert",id:`${s}-error`,compact:!0,children:y})})]});return l.jsx("div",{className:ae,ref:bt,role:Z,children:W?l.jsx("fieldset",{className:"pkt-inputwrapper__fieldset","aria-describedby":Ft,children:zt}):l.jsx("div",{className:"pkt-inputwrapper__fieldset",children:zt})})});Bs.displayName="PktInputWrapper";const cn=({href:s,iconName:t,className:e,iconPosition:i,external:a,target:n,children:r,...h})=>{const d={"pkt-link":!0,"pkt-link--icon-left":!!t&&i==="left"||!!(t&&!i),"pkt-link--icon-right":!!t&&i==="right","pkt-link--external":a};return l.jsxs("a",{...h,className:pt(d,e),href:s,target:n,rel:a?"noopener noreferrer":void 0,children:[t&&l.jsx(B,{name:t,className:"pkt-link__icon"}),r]})};cn.displayName="PktLink";const pn=({children:s,skin:t,title:e,href:i,iconName:a,openInNewTab:n,external:r,className:h,...d})=>{const p=["pkt-linkcard",t&&`pkt-linkcard--${t}`].filter(Boolean).join(" "),f=["pkt-linkcard__title",r&&"pkt-link pkt-link--external"].filter(Boolean).join(" ");return l.jsxs("a",{...d,href:i,className:pt(p,h),target:n?"_blank":"_self",rel:n?"noopener noreferrer":void 0,children:[a&&l.jsx(B,{className:"pkt-link__icon",name:a}),e&&l.jsx("div",{className:pt(f),children:e}),l.jsx("div",{className:"pkt-linkcard__text",children:s})]})};pn.displayName="PktLinkCard";const Uh=Wt({tagName:"pkt-loader",elementClass:Yt,react:x,displayName:"PktLoader",events:{}}),un=x.forwardRef(({children:s,...t},e)=>l.jsx(Uh,{...t,ref:e,children:l.jsx("div",{className:"pkt-contents",children:s})}));un.displayName="PktLoader";const fn=({children:s,className:t,skin:e,title:i,compact:a,closable:n,onClose:r,...h})=>{const[d,p]=x.useState(!1),f={"pkt-messagebox":!0,"pkt-messagebox--compact":a,[`pkt-messagebox--${e}`]:e,"pkt-messagebox--closable":n,"pkt-hide":d},g=x.createRef(),k=x.useCallback(()=>{p(!0),r&&r()},[p,r]);return l.jsxs("div",{...h,className:pt(f,t),ref:g,children:[n&&l.jsx("div",{className:"pkt-messagebox__close",children:l.jsx("button",{onClick:k,className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only","aria-label":"Lukk",children:l.jsx(B,{name:"close",className:"pkt-link__icon"})})}),i&&l.jsx("div",{className:"pkt-messagebox__title",children:i}),l.jsx("div",{className:"pkt-messagebox__text",children:s})]})};fn.displayName="PktMessagebox";const qh=Wt({tagName:"pkt-modal",elementClass:Lt,react:x,displayName:"PktModal",events:{}}),gn=x.forwardRef(({children:s,...t},e)=>l.jsx(qh,{...t,ref:e,children:l.jsx("div",{className:"pkt-contents",children:s})}));gn.displayName="PktModal";const zh=Wt({tagName:"pkt-progressbar",elementClass:it,react:x,displayName:"PktProgressbar",events:{}}),mn=x.forwardRef(({children:s,...t},e)=>l.jsx(zh,{ref:e,...t,children:l.jsx("div",{className:"pkt-contents",children:s})}));mn.displayName="PktProgressbar";const vn=x.forwardRef(({id:s,name:t,label:e,className:i,hasTile:a=!1,disabled:n=!1,checkHelptext:r,hasError:h=!1,defaultChecked:d,checked:p,optionalTag:f,optionalText:g,requiredTag:k,requiredText:b,tagText:y,...w},C)=>{const P=[i,"pkt-input-check"].filter(Boolean).join(" "),T=["pkt-input-check__input",a?"pkt-input-check__input--tile":"",n&&a?"pkt-input-check__input--tile-disabled":""].filter(Boolean).join(" "),I=["pkt-input-check__input-checkbox",h?"pkt-input-check__input-checkbox--error":""].filter(Boolean).join(" "),N=["pkt-input-check__input-label",n?"pkt-input-check__input-label--disabled":""].filter(Boolean).join(" "),W=["pkt-tag","pkt-tag--small","pkt-tag--thin-text"].join(" "),Z=()=>l.jsxs(l.Fragment,{children:[y&&l.jsx("span",{className:W+" pkt-tag--gray",children:y}),f&&l.jsx("span",{className:W+" pkt-tag--blue-light",children:g}),k&&l.jsx("span",{className:W+" pkt-tag--beige",children:b})]});return l.jsx("div",{className:P,children:l.jsxs("div",{className:T,children:[l.jsx("input",{ref:C,id:s,type:"radio",name:t,disabled:n,className:I,...p!==void 0?{checked:p}:{defaultChecked:d},...w}),l.jsxs("label",{className:N,htmlFor:s,children:[e," ",Z(),r&&l.jsx("div",{className:"pkt-input-check__input-helptext",children:r})]})]})})});vn.displayName="PktRadioButton";const Wh=x.forwardRef(({appearance:s="local",disabled:t=!1,fullwidth:e=!1,id:i,label:a,name:n,placeholder:r="Søk…",suggestions:h,value:d="",action:p,method:f,onChange:g,onSearch:k,onSuggestionClick:b,...y},w)=>{const C=(N,W)=>{N?N():b&&b(W)},P=N=>{d=N.target.value},T=`pkt-searchinput pkt-searchinput--${s} ${e?"pkt-searchinput--fullwidth":""}`;let I;return p?I=N=>l.jsx("form",{role:"search",className:T,action:p,method:f,children:N}):I=N=>l.jsx("div",{role:"search",className:T,children:N}),I(l.jsxs(l.Fragment,{children:[a&&l.jsx("label",{htmlFor:a?i:void 0,className:a?"pkt-inputwrapper__label":"",children:a}),l.jsxs("div",{className:s==="local"?"pkt-input__container":"pkt-searchinput__field",children:[l.jsx("input",{className:`pkt-input ${e?"pkt-input--fullwidth":""}`,type:"search",name:n||i,id:i,placeholder:r,defaultValue:d,disabled:t,autoComplete:"off","aria-autocomplete":"list",ref:w,"aria-controls":`${i}-suggestions`,onChange:g||P,onKeyUp:k&&(N=>{N.key==="Enter"&&(N.preventDefault(),k(d))}),...y}),l.jsx(je,{className:`pkt-searchinput__button ${s==="local"?"pkt-input-icon":""}`,variant:"icon-only",iconName:"magnifying-glass-big",skin:s==="local"?"tertiary":"primary",color:s==="global"?"yellow":void 0,type:"submit",disabled:t,onClick:k&&(N=>{N.preventDefault(),k(d)}),children:a||r})]}),h&&l.jsx("ul",{id:`${i}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:h.map((N,W)=>l.jsx("li",{children:x.createElement(N.href?"a":N.onClick?"button":"div",{href:N.href,className:`pkt-searchinput__suggestion ${N.onClick?"pkt-link-button":""} ${N.href||N.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:N.onClick?"button":void 0,onClick:()=>C(N.onClick,W),onKeyUp:Z=>Z.key==="Enter"&&C(N.onClick,W)},l.jsxs(l.Fragment,{children:[N.title&&l.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:N.title}),N.text&&l.jsx("p",{className:"pkt-searchinput__suggestion-text",children:N.text})]}))},`search-suggestion-${W}`))})]}))}),Rh=x.forwardRef(({ariaDescribedby:s,ariaLabelledby:t,children:e,className:i,disabled:a=!1,errorMessage:n,hasError:r,helptext:h,helptextDropdown:d,helptextDropdownButton:p,id:f,inline:g=!1,fullwidth:k=!1,label:b,name:y,optionalTag:w=!1,optionalText:C,requiredTag:P=!1,requiredText:T,tagText:I,...N},W)=>{const Z=[i,"pkt-select"].join(" ");return l.jsx(Bs,{className:Z,forId:`${f}-input`,label:b,helptext:h,helptextDropdown:d,helptextDropdownButton:p,optionalTag:w,optionalText:C,requiredTag:P,requiredText:T,tagText:I,hasError:r,errorMessage:n,disabled:a,inline:g,ariaDescribedby:s,children:l.jsx("select",{ref:W,className:`pkt-input ${k?"pkt-input--fullwidth":""}`,"aria-invalid":r,"aria-errormessage":`${f}-error`,"aria-labelledby":t||void 0,disabled:a,id:`${f}-input`,name:y||f,...N,children:e})})}),Kh=l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:l.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),Gh=l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[l.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),l.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),Yh=l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[l.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),l.jsx("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"})]}),Zh=({children:s,className:t,status:e="incomplete",title:i})=>l.jsxs("li",{className:pt("pkt-step",t,`pkt-step--${e}`),"data-testid":"pkt-step",children:[l.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),l.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),l.jsx("span",{className:pt("pkt-step__indicator"),children:e==="current"?Gh:e==="completed"?Yh:Kh}),l.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),l.jsxs("div",{className:"pkt-step__wrapper",children:[l.jsx("div",{className:"pkt-step__title",children:i}),l.jsx("div",{className:"pkt-step__content",children:s})]})]}),Xh=x.forwardRef(({activeStep:s,className:t,children:e,hideNonActiveSteps:i=!1,hideNonActiveStepsContent:a=!0,orientation:n="vertical",...r},h)=>{const d=pt(t,"pkt-stepper",n==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),p=x.Children.map(e,(f,g)=>x.isValidElement(f)?x.cloneElement(f,{className:pt(f.props.className,{"pkt-step--hideStep":i&&g!==s,"pkt-step--hideContent":a&&g!==s})}):f);return l.jsx("ol",{"data-testid":"pkt-stepper",className:d,ref:h,...r,children:p})}),Jh=({className:s,compact:t=!1,skin:e="basic",responsiveView:i=!0,children:a,...n})=>l.jsx("table",{"data-testid":"pkt-table",className:pt(s,"pkt-table",{"pkt-table--responsive":i,"pkt-table--compact":t,"pkt-table--basic":e==="basic","pkt-table--zebra-blue":e==="zebra-blue"}),role:"table",...n,children:a}),Qh=({id:s,children:t,className:e,...i})=>l.jsx("tbody",{id:s,className:pt(e,"pkt-table__body",{}),...i,role:"rowgroup",children:t}),td=({children:s,className:t,dataLabel:e,...i})=>l.jsx("td",{className:pt(t,"pkt-table__data-cell",{}),"data-label":e,role:"cell","data-testid":"pkt-table__data-cell",...i,children:s}),ed=({className:s,children:t,...e})=>l.jsx("thead",{className:pt(s,"pkt-table__header",{}),role:"rowgroup",...e,children:t}),sd=({className:s,children:t,...e})=>l.jsx("th",{className:pt(s,"pkt-table__header-cell",{}),role:"columnheader",...e,children:t}),id=({className:s,children:t,...e})=>l.jsx("tr",{className:pt(s,"pkt-table__row",{}),role:"row",...e,children:t}),Bi=x.forwardRef(({children:s,skin:t,textStyle:e,size:i,closeTag:a,className:n,iconName:r,ariaLabel:h,onClose:d,type:p,"aria-description":f,...g},k)=>{const[b,y]=x.useState(!1),w=x.useCallback(()=>{y(!0),d&&d()},[y]),C=x.useRef(null),[P,T]=x.useState("");x.useEffect(()=>{var Z,wt;T(((wt=(Z=C.current)==null?void 0:Z.textContent)==null?void 0:wt.trim())??"")},[s]);const I=x.useMemo(()=>{if(a&&!h)return P&&`Klikk for å fjerne ${P}`||f},[a,h,P,f]),N={"pkt-tag":!0,[`pkt-tag--${i}`]:!!i,[`pkt-tag--${t}`]:!!t,[`pkt-tag--${e}`]:!!e},W={"pkt-tag":!0,"pkt-btn":!0,"pkt-btn--tertiary":!0,[`pkt-tag--${e}`]:!!e,[`pkt-tag--${i}`]:!!i,[`pkt-tag--${t}`]:!!t,"pkt-btn--icons-right-and-left":a&&!!r,"pkt-hide":b};return a?l.jsxs("button",{...g,className:pt(W,n),type:p,onClick:w,"aria-label":h,"aria-description":I,ref:k,children:[r&&l.jsx(B,{className:"pkt-tag__icon",name:r}),l.jsx("span",{ref:C,children:s}),l.jsx(B,{className:"pkt-tag__close-btn",name:"close"})]}):l.jsxs("span",{...g,className:pt(N,n),ref:k,children:[r&&l.jsx(B,{className:"pkt-tag__icon",name:r,"aria-hidden":"true"}),l.jsx("span",{ref:C,children:s})]})});Bi.displayName="PktTag";const Fi=x.forwardRef(({children:s,active:t,href:e,onClick:i,icon:a,controls:n,tag:r,tagSkin:h,index:d=0},p)=>{const{arrowNav:f,registerTabRef:g,handleKeyPress:k,selectTab:b}=ad(),w={"aria-selected":f?!!t:void 0,"aria-controls":n,role:f?"tab":void 0,onKeyUp:P=>k(d,P),onClick:P=>{b(d),i==null||i(P)},tabIndex:t||!f?void 0:-1,ref:P=>{g(d,P),typeof p=="function"?p(P):p&&(p.current=P)}},C=l.jsxs(l.Fragment,{children:[a&&l.jsx(B,{name:a,className:"pkt-icon--small"}),s,r&&l.jsx(Bi,{skin:h,size:"small",children:r})]});return e?l.jsx("a",{...w,href:e,className:`pkt-tabs__link ${t?"active":""}`,children:C}):l.jsx("button",{...w,type:"button",className:`pkt-tabs__button pkt-link-button ${t?"active":""}`,children:C})});Fi.displayName="PktTabItem";const bn=x.createContext(null),ad=()=>{const s=x.useContext(bn);if(!s)throw new Error("TabItem must be used within a Tabs component");return s},nd=x.forwardRef(({arrowNav:s=!0,disableArrowNav:t=!1,tabs:e,onTabSelected:i,children:a},n)=>{const r=x.useRef([]),h=s&&!t,p=a&&x.Children.count(a)>0?x.Children.count(a):(e==null?void 0:e.length)||0;x.useEffect(()=>{r.current=r.current.slice(0,p)},[p]);const f=y=>{const w=e==null?void 0:e[y];w!=null&&w.action&&w.action(y),i&&i(y)},g=(y,w)=>{var C,P;h&&(w.code==="ArrowLeft"&&y!==0&&((C=r.current[y-1])==null||C.focus()),w.code==="ArrowRight"&&y<p-1&&((P=r.current[y+1])==null||P.focus()),(w.code==="ArrowDown"||w.code==="Space")&&f(y))},k=(y,w)=>{r.current[y]=w},b=e==null?void 0:e.map((y,w)=>{var C,P;return l.jsx(Fi,{active:y.active,href:y.href,onClick:()=>f(w),icon:y.icon,controls:y.controls,tag:(C=y.tag)==null?void 0:C.text,tagSkin:(P=y.tag)==null?void 0:P.skin,index:w,children:y.text},w)});return l.jsx(bn.Provider,{value:{arrowNav:h,registerTabRef:k,handleKeyPress:g,selectTab:f},children:l.jsx("div",{className:"pkt-tabs",ref:n,children:l.jsx("div",{className:"pkt-tabs__list",role:h?"tablist":"navigation",children:a||b})})})}),rd=x.forwardRef(({id:s,ariaDescribedby:t,ariaLabelledby:e,counter:i,counterMaxLength:a,className:n,disabled:r,errorMessage:h,hasError:d,helptext:p,helptextDropdown:f,helptextDropdownButton:g,inline:k,fullwidth:b=!1,label:y,name:w,optionalTag:C=!1,optionalText:P,requiredTag:T=!1,requiredText:I,tagText:N=null,placeholder:W,rows:Z,useWrapper:wt=!0,onChange:bt,value:Q,autoComplete:rt="off",minLength:Ft,maxLength:Vt,readOnly:ot=!1,skipForwardTestid:F=!1,...At},ae)=>{const de=[n,"pkt-textinput","pkt-textarea"].join(" "),ne=`${s}-input`,He=`${ne}-label`,ds=e||He,[ce,zt]=x.useState(0),ut=Ue=>{var qe,pe;if(i&&zt(((pe=(qe=Ue.currentTarget)==null?void 0:qe.value)==null?void 0:pe.length)||0),bt)return bt(Ue)};return x.useEffect(()=>{Q!==void 0&&zt((Q==null?void 0:Q.length)||0)},[Q]),l.jsx(Bs,{ariaDescribedby:t,className:de,disabled:r,errorMessage:h,forId:ne,hasError:d,helptext:p,helptextDropdown:f,helptextDropdownButton:g,inline:k,label:y,optionalTag:C,optionalText:P,requiredTag:T,requiredText:I,tagText:N,useWrapper:wt,counter:i,counterCurrent:ce,counterMaxLength:a,children:l.jsx("textarea",{ref:ae,className:`pkt-input ${b?"pkt-input--fullwidth":""} ${a&&ce>a?"pkt-input--counter-error":""}`,name:`${w||s}`,id:ne,placeholder:W,disabled:r,rows:Z,"aria-labelledby":ds,"aria-invalid":d,"aria-errormessage":`${s}-error`,...At,onChange:ut,value:Q,autoComplete:rt,minLength:Ft,maxLength:Vt,"data-skip-forward-testid":F?"true":void 0})})}),od=x.forwardRef(({id:s,ariaDescribedby:t,ariaLabelledby:e,autocomplete:i="off",counter:a,counterMaxLength:n,className:r,disabled:h=!1,errorMessage:d,hasError:p=!1,helptext:f,helptextDropdown:g,helptextDropdownButton:k,iconNameRight:b,inline:y=!1,fullwidth:w=!1,label:C,name:P,optionalTag:T=!1,optionalText:I,requiredTag:N=!1,requiredText:W,tagText:Z=null,placeholder:wt,prefix:bt,suffix:Q,type:rt="text",useWrapper:Ft=!0,omitSearchIcon:Vt=!1,value:ot,minLength:F,maxLength:At,min:ae,max:de,step:ne,size:He,readonly:ds,required:ce,dataTestid:zt,onChange:ut,skipForwardTestid:Ue=!1,...qe},pe)=>{const ji=[r,"pkt-textinput"].join(" "),hi=rt==="search"&&!b&&!Vt,Hi=rt==="date"&&ot?ot.slice(0,10):ot,[di,cs]=x.useState((ot==null?void 0:ot.length)||0),ps=`${s}`,Vs=`${ps}-label`,ci=e||Vs,Ui=_e=>{var pi,ui;a&&cs(((ui=(pi=_e.currentTarget)==null?void 0:pi.value)==null?void 0:ui.length)||0),ut&&ut(_e)};return x.useEffect(()=>{ot!==void 0&&cs((ot==null?void 0:ot.length)||0)},[ot]),l.jsx(Bs,{ariaDescribedby:t,className:ji,disabled:h,errorMessage:d,forId:ps,hasError:p,helptext:f,helptextDropdown:g,helptextDropdownButton:k,inline:y,label:C,optionalTag:T,optionalText:I,requiredTag:N,requiredText:W,tagText:Z,useWrapper:Ft,counter:a,counterCurrent:di,counterMaxLength:n,children:l.jsxs("div",{className:"pkt-input__container","data-testid":zt,"data-skip-forward-testid":Ue?"true":void 0,children:[bt&&l.jsx("div",{className:"pkt-input-prefix",children:bt}),l.jsx("input",{...qe,ref:pe,className:`pkt-input ${w?"pkt-input--fullwidth":""} ${n&&di>n?"pkt-input--counter-error":""}`,type:rt,name:`${P||s}`,value:Hi,id:ps,placeholder:wt,autoComplete:i,disabled:h,"aria-invalid":p,"aria-errormessage":`${s}-error`,"aria-labelledby":ci,min:ae,max:de,onChange:Ui,step:ne,minLength:F,maxLength:At,size:He,required:ce}),Q&&l.jsxs("p",{className:"pkt-input-suffix",children:[Q,b&&l.jsx(B,{className:"pkt-input-suffix-icon",name:b}),hi&&l.jsx(B,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!Q&&b&&l.jsx(B,{className:"pkt-input-icon",name:b}),!Q&&hi&&l.jsx(B,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})});var ls=window.CustomEvent;(!ls||typeof ls=="object")&&(ls=function(s,t){t=t||{};var e=document.createEvent("CustomEvent");return e.initCustomEvent(s,!!t.bubbles,!!t.cancelable,t.detail||null),e},ls.prototype=window.Event.prototype);function yn(s,t){var e="on"+t.type.toLowerCase();return typeof s[e]=="function"&&s[e](t),s.dispatchEvent(t)}function ld(s){for(;s&&s!==document.body;){var t=window.getComputedStyle(s),e=function(i,a){return!(t[i]===void 0||t[i]===a)};if(t.opacity<1||e("zIndex","auto")||e("transform","none")||e("mixBlendMode","normal")||e("filter","none")||e("perspective","none")||t.isolation==="isolate"||t.position==="fixed"||t.webkitOverflowScrolling==="touch")return!0;s=s.parentElement}return!1}function Fs(s){for(;s;){if(s.localName==="dialog")return s;s.parentElement?s=s.parentElement:s.parentNode?s=s.parentNode.host:s=null}return null}function kn(s){for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;s&&s.blur&&s!==document.body&&s.blur()}function hd(s,t){for(var e=0;e<s.length;++e)if(s[e]===t)return!0;return!1}function Vi(s){return!s||!s.hasAttribute("method")?!1:s.getAttribute("method").toLowerCase()==="dialog"}function $n(s){var t=["button","input","keygen","select","textarea"],e=t.map(function(r){return r+":not([disabled])"});e.push('[tabindex]:not([disabled]):not([tabindex=""])');var i=s.querySelector(e.join(", "));if(!i&&"attachShadow"in Element.prototype)for(var a=s.querySelectorAll("*"),n=0;n<a.length&&!(a[n].tagName&&a[n].shadowRoot&&(i=$n(a[n].shadowRoot),i));n++);return i}function _n(s){return s.isConnected||document.body.contains(s)}function wn(s){if(s.submitter)return s.submitter;var t=s.target;if(!(t instanceof HTMLFormElement))return null;var e=z.formSubmitter;if(!e){var i=s.target,a="getRootNode"in i&&i.getRootNode()||document;e=a.activeElement}return!e||e.form!==t?null:e}function dd(s){if(!s.defaultPrevented){var t=s.target,e=z.imagemapUseValue,i=wn(s);e===null&&i&&(e=i.value);var a=Fs(t);if(a){var n=i&&i.getAttribute("formmethod")||t.getAttribute("method");n==="dialog"&&(s.preventDefault(),e!=null?a.close(e):a.close())}}}function xn(s){if(this.dialog_=s,this.replacedStyleTop_=!1,this.openAsModal_=!1,s.hasAttribute("role")||s.setAttribute("role","dialog"),s.show=this.show.bind(this),s.showModal=this.showModal.bind(this),s.close=this.close.bind(this),s.addEventListener("submit",dd,!1),"returnValue"in s||(s.returnValue=""),"MutationObserver"in window){var t=new MutationObserver(this.maybeHideModal.bind(this));t.observe(s,{attributes:!0,attributeFilter:["open"]})}else{var e=!1,i=(function(){e?this.downgradeModal():this.maybeHideModal(),e=!1}).bind(this),a,n=function(r){if(r.target===s){var h="DOMNodeRemoved";e|=r.type.substr(0,h.length)===h,window.clearTimeout(a),a=window.setTimeout(i,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach(function(r){s.addEventListener(r,n)})}Object.defineProperty(s,"open",{set:this.setOpen.bind(this),get:s.hasAttribute.bind(s,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("mouseup",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("mousedown",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("click",this.backdropMouseEvent_.bind(this))}xn.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&_n(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),z.dm.removeDialog(this))},setOpen:function(s){s?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropMouseEvent_:function(s){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var t=document.createElement("div");this.dialog_.insertBefore(t,this.dialog_.firstChild),t.tabIndex=-1,t.focus(),this.dialog_.removeChild(t)}var e=document.createEvent("MouseEvents");e.initMouseEvent(s.type,s.bubbles,s.cancelable,window,s.detail,s.screenX,s.screenY,s.clientX,s.clientY,s.ctrlKey,s.altKey,s.shiftKey,s.metaKey,s.button,s.relatedTarget),this.dialog_.dispatchEvent(e),s.stopPropagation()},focus_:function(){var s=this.dialog_.querySelector("[autofocus]:not([disabled])");!s&&this.dialog_.tabIndex>=0&&(s=this.dialog_),s||(s=$n(this.dialog_)),kn(document.activeElement),s&&s.focus()},updateZIndex:function(s,t){if(s<t)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=s,this.backdrop_.style.zIndex=t},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!_n(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!z.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");ld(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,z.needsCentering(this.dialog_)?(z.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(s){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),s!==void 0&&(this.dialog_.returnValue=s);var t=new ls("close",{bubbles:!1,cancelable:!1});yn(this.dialog_,t)}};var z={};if(z.reposition=function(s){var t=document.body.scrollTop||document.documentElement.scrollTop,e=t+(window.innerHeight-s.offsetHeight)/2;s.style.top=Math.max(t,e)+"px"},z.isInlinePositionSetByStylesheet=function(s){for(var t=0;t<document.styleSheets.length;++t){var e=document.styleSheets[t],i=null;try{i=e.cssRules}catch{}if(i)for(var a=0;a<i.length;++a){var n=i[a],r=null;try{r=document.querySelectorAll(n.selectorText)}catch{}if(!(!r||!hd(r,s))){var h=n.style.getPropertyValue("top"),d=n.style.getPropertyValue("bottom");if(h&&h!=="auto"||d&&d!=="auto")return!0}}}return!1},z.needsCentering=function(s){var t=window.getComputedStyle(s);return t.position!=="absolute"||s.style.top!=="auto"&&s.style.top!==""||s.style.bottom!=="auto"&&s.style.bottom!==""?!1:!z.isInlinePositionSetByStylesheet(s)},z.forceRegisterDialog=function(s){if((window.HTMLDialogElement||s.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",s),s.localName!=="dialog")throw new Error("Failed to register dialog: The element is not a dialog.");new xn(s)},z.registerDialog=function(s){s.showModal||z.forceRegisterDialog(s)},z.DialogManager=function(){this.pendingDialogStack=[];var s=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",(function(t){this.forwardTab_=void 0,t.stopPropagation(),s([])}).bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(t){var e=[];t.forEach(function(i){for(var a=0,n;n=i.removedNodes[a];++a){if(n instanceof Element)n.localName==="dialog"&&e.push(n);else continue;e=e.concat(n.querySelectorAll("dialog"))}}),e.length&&s(e)}))},z.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},z.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},z.DialogManager.prototype.updateStacking=function(){for(var s=this.zIndexHigh_,t=0,e;e=this.pendingDialogStack[t];++t)e.updateZIndex(--s,--s),t===0&&(this.overlay.style.zIndex=--s);var i=this.pendingDialogStack[0];if(i){var a=i.dialog.parentNode||document.body;a.appendChild(this.overlay)}else this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},z.DialogManager.prototype.containedByTopDialog_=function(s){for(;s=Fs(s);){for(var t=0,e;e=this.pendingDialogStack[t];++t)if(e.dialog===s)return t===0;s=s.parentElement}return!1},z.DialogManager.prototype.handleFocus_=function(s){var t=s.composedPath?s.composedPath()[0]:s.target;if(!this.containedByTopDialog_(t)&&document.activeElement!==document.documentElement&&(s.preventDefault(),s.stopPropagation(),kn(t),this.forwardTab_!==void 0)){var e=this.pendingDialogStack[0],i=e.dialog,a=i.compareDocumentPosition(t);return a&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?e.focus_():t!==document.documentElement&&document.documentElement.focus()),!1}},z.DialogManager.prototype.handleKey_=function(s){if(this.forwardTab_=void 0,s.keyCode===27){s.preventDefault(),s.stopPropagation();var t=new ls("cancel",{bubbles:!1,cancelable:!0}),e=this.pendingDialogStack[0];e&&yn(e.dialog,t)&&e.dialog.close()}else s.keyCode===9&&(this.forwardTab_=!s.shiftKey)},z.DialogManager.prototype.checkDOM_=function(s){var t=this.pendingDialogStack.slice();t.forEach(function(e){s.indexOf(e.dialog)!==-1?e.downgradeModal():e.maybeHideModal()})},z.DialogManager.prototype.pushDialog=function(s){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return this.pendingDialogStack.length>=t?!1:(this.pendingDialogStack.unshift(s)===1&&this.blockDocument(),this.updateStacking(),!0)},z.DialogManager.prototype.removeDialog=function(s){var t=this.pendingDialogStack.indexOf(s);t!==-1&&(this.pendingDialogStack.splice(t,1),this.pendingDialogStack.length===0&&this.unblockDocument(),this.updateStacking())},z.dm=new z.DialogManager,z.formSubmitter=null,z.imagemapUseValue=null,window.HTMLDialogElement===void 0){var Sn=document.createElement("form");if(Sn.setAttribute("method","dialog"),Sn.method!=="dialog"){var hs=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(hs){var cd=hs.get;hs.get=function(){return Vi(this)?"dialog":cd.call(this)};var pd=hs.set;hs.set=function(s){return typeof s=="string"&&s.toLowerCase()==="dialog"?this.setAttribute("method",s):pd.call(this,s)},Object.defineProperty(HTMLFormElement.prototype,"method",hs)}}document.addEventListener("click",function(s){if(z.formSubmitter=null,z.imagemapUseValue=null,!s.defaultPrevented){var t=s.target;if("composedPath"in s){var e=s.composedPath();t=e.shift()||t}if(!(!t||!Vi(t.form))){var i=t.type==="submit"&&["button","input"].indexOf(t.localName)>-1;if(!i){if(!(t.localName==="input"&&t.type==="image"))return;z.imagemapUseValue=s.offsetX+","+s.offsetY}var a=Fs(t);a&&(z.formSubmitter=t)}}},!1),document.addEventListener("submit",function(s){var t=s.target,e=Fs(t);if(!e){var i=wn(s),a=i&&i.getAttribute("formmethod")||t.getAttribute("method");a==="dialog"&&s.preventDefault()}});var ud=HTMLFormElement.prototype.submit,fd=function(){if(!Vi(this))return ud.call(this);var s=Fs(this);s&&s.close()};HTMLFormElement.prototype.submit=fd}const gd=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));O.PktAccordion=Ki,O.PktAccordionItem=tn,O.PktAlert=Li,O.PktBackLink=sn,O.PktBreadcrumbs=Oh,O.PktButton=je,O.PktCard=an,O.PktCheckbox=nn,O.PktCombobox=rn,O.PktConsent=li,O.PktDatepicker=on,O.PktFooter=Bh,O.PktFooterSimple=Fh,O.PktHeader=Vh,O.PktHeading=ln,O.PktHelptext=hn,O.PktIcon=B,O.PktInput=dn,O.PktInputWrapper=Bs,O.PktLink=cn,O.PktLinkCard=pn,O.PktLoader=un,O.PktMessagebox=fn,O.PktModal=gn,O.PktProgressbar=mn,O.PktRadioButton=vn,O.PktSearchInput=Wh,O.PktSelect=Rh,O.PktStep=Zh,O.PktStepper=Xh,O.PktTabItem=Fi,O.PktTable=Jh,O.PktTableBody=Qh,O.PktTableDataCell=td,O.PktTableHeader=ed,O.PktTableHeaderCell=sd,O.PktTableRow=id,O.PktTabs=nd,O.PktTag=Bi,O.PktTextarea=rd,O.PktTextinput=od,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "13.21.0",
3
+ "version": "13.22.0",
4
4
  "description": "React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "@lit-labs/ssr-dom-shim": "^1.2.1",
41
41
  "@lit/react": "^1.0.7",
42
- "@oslokommune/punkt-elements": "^13.21.0",
42
+ "@oslokommune/punkt-elements": "^13.22.0",
43
43
  "classnames": "^2.5.1",
44
44
  "prettier": "^3.3.3",
45
45
  "react-hook-form": "^7.53.0"
@@ -47,7 +47,7 @@
47
47
  "devDependencies": {
48
48
  "@babel/plugin-transform-private-property-in-object": "^7.25.9",
49
49
  "@oslokommune/punkt-assets": "^13.16.0",
50
- "@oslokommune/punkt-css": "^13.21.0",
50
+ "@oslokommune/punkt-css": "^13.22.0",
51
51
  "@testing-library/jest-dom": "^6.5.0",
52
52
  "@testing-library/react": "^16.0.1",
53
53
  "@testing-library/user-event": "^14.5.2",
@@ -103,5 +103,5 @@
103
103
  "url": "https://github.com/oslokommune/punkt/issues"
104
104
  },
105
105
  "license": "MIT",
106
- "gitHead": "7559532feebf044efeec97d19d74c9c77e46a5b3"
106
+ "gitHead": "ac304ed1adafb9567490e5b9a8d550712f4e68f1"
107
107
  }