@oslokommune/punkt-react 12.18.13 → 12.19.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.
@@ -22505,7 +22505,7 @@ var QL = Object.defineProperty, ZL = Object.getOwnPropertyDescriptor, iy = (n, r
22505
22505
  return u && f && QL(r, s, f), f;
22506
22506
  };
22507
22507
  window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch;
22508
- window.pktIconPath = window.pktIconPath || "https://punkt-cdn.oslo.kommune.no/12.18/icons/";
22508
+ window.pktIconPath = window.pktIconPath || "https://punkt-cdn.oslo.kommune.no/12.19/icons/";
22509
22509
  const XL = (n) => new Promise((r) => setTimeout(r, n)), x0 = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', u2 = {}, JL = async (n, r) => {
22510
22510
  let s = 0;
22511
22511
  for (; u2[r + n + ".svg"] === "fetching" && (s++, !(s > 50)); )
@@ -27538,7 +27538,7 @@ const jU = Jr(
27538
27538
  {
27539
27539
  className: "pkt-btn__icon pkt-btn__spinner",
27540
27540
  name: "spinner-blue",
27541
- path: "https://punkt-cdn.oslo.kommune.no/12.18/animations/"
27541
+ path: "https://punkt-cdn.oslo.kommune.no/12.19/animations/"
27542
27542
  }
27543
27543
  ),
27544
27544
  D !== "label-only" && /* @__PURE__ */ O.jsx(zn, { className: "pkt-btn__icon", name: s }),
@@ -27796,7 +27796,7 @@ const ZI = Bo({
27796
27796
  name: "oslologo",
27797
27797
  className: "pkt-header__logo-svg",
27798
27798
  "aria-hidden": "true",
27799
- path: "https://punkt-cdn.oslo.kommune.no/12.18/logos/"
27799
+ path: "https://punkt-cdn.oslo.kommune.no/12.19/logos/"
27800
27800
  }
27801
27801
  ) }) : /* @__PURE__ */ O.jsx(
27802
27802
  "button",
@@ -27810,7 +27810,7 @@ const ZI = Bo({
27810
27810
  name: "oslologo",
27811
27811
  className: "pkt-header__logo-svg",
27812
27812
  "aria-hidden": "true",
27813
- path: "https://punkt-cdn.oslo.kommune.no/12.18/logos/"
27813
+ path: "https://punkt-cdn.oslo.kommune.no/12.19/logos/"
27814
27814
  }
27815
27815
  )
27816
27816
  }
@@ -27989,7 +27989,7 @@ const iM = Jr(
27989
27989
  zn,
27990
27990
  {
27991
27991
  name: B(g),
27992
- path: "https://punkt-cdn.oslo.kommune.no/12.18/animations/",
27992
+ path: "https://punkt-cdn.oslo.kommune.no/12.19/animations/",
27993
27993
  className: `pkt-loader__svg pkt-loader__${g}`
27994
27994
  }
27995
27995
  ),
@@ -36458,6 +36458,11 @@ const lU = Jr(
36458
36458
  fn: "adjust.svg",
36459
36459
  cat: "ui"
36460
36460
  },
36461
+ {
36462
+ id: "advice",
36463
+ fn: "advice.svg",
36464
+ cat: "ui"
36465
+ },
36461
36466
  {
36462
36467
  id: "alert-circle",
36463
36468
  fn: "alert-circle.svg",
@@ -315,7 +315,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
315
315
  * @license
316
316
  * Copyright 2017 Google LLC
317
317
  * SPDX-License-Identifier: BSD-3-Clause
318
- */class mk extends vy{}mk.directiveName="unsafeSVG",mk.resultType=2;const FS=dp(mk);var yN=Object.defineProperty,bN=Object.getOwnPropertyDescriptor,tg=(n,r,s,u)=>{for(var f=u>1?void 0:u?bN(r,s):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,s,f):v(f))||f);return u&&f&&yN(r,s,f),f};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.18/icons/";const kN=n=>new Promise(r=>setTimeout(r,n)),by='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',gk={},wN=async(n,r)=>{let s=0;for(;gk[r+n+".svg"]==="fetching"&&(s++,!(s>50));)await kN(50);return localStorage.getItem(r+n+".svg")?Promise.resolve(localStorage.getItem(r+n+".svg")):typeof window.pktFetch=="function"?(gk[r+n+".svg"]="fetching",Promise.resolve(window.pktFetch(r+n+".svg").then(u=>u.ok?u.text():(console.error("Missing icon: "+r+n+".svg"),by)).then(u=>(u!==by&&localStorage.setItem(r+n+".svg",u),gk[r+n+".svg"]="fetched",u)))):Promise.resolve(by)};let pp=class extends Hi{constructor(){super(...arguments),this.path=window.pktIconPath,this.name="",this.icon=FS(by),this._updatedProps=[]}connectedCallback(){super.connectedCallback(),this.classList.add("pkt-icon")}async attributeChangedCallback(n,r,s){super.attributeChangedCallback(n,r,s),(n==="name"||n==="path")&&this.getIcon(this.name)}async updated(n){super.updated(n),(n.has("name")||n.has("path"))&&this.getIcon(this.name)}async getIcon(n=""){this._updatedProps.length>0?(this.path||(this.path,window.pktIconPath),this.icon=FS(await wN(this.name||"",this.path).then(r=>r)),this._updatedProps=[]):this._updatedProps.includes(n)||this._updatedProps.push(n)}render(){return Qe`${this.name&&this.icon}`}};tg([ae({type:String,reflect:!1})],pp.prototype,"path",2),tg([ae({type:String,reflect:!0})],pp.prototype,"name",2),tg([ae({type:SVGElement})],pp.prototype,"icon",2),tg([ae({type:Array,noAccessor:!0})],pp.prototype,"_updatedProps",2),pp=tg([Ja("pkt-icon")],pp);/**
318
+ */class mk extends vy{}mk.directiveName="unsafeSVG",mk.resultType=2;const FS=dp(mk);var yN=Object.defineProperty,bN=Object.getOwnPropertyDescriptor,tg=(n,r,s,u)=>{for(var f=u>1?void 0:u?bN(r,s):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,s,f):v(f))||f);return u&&f&&yN(r,s,f),f};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.19/icons/";const kN=n=>new Promise(r=>setTimeout(r,n)),by='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',gk={},wN=async(n,r)=>{let s=0;for(;gk[r+n+".svg"]==="fetching"&&(s++,!(s>50));)await kN(50);return localStorage.getItem(r+n+".svg")?Promise.resolve(localStorage.getItem(r+n+".svg")):typeof window.pktFetch=="function"?(gk[r+n+".svg"]="fetching",Promise.resolve(window.pktFetch(r+n+".svg").then(u=>u.ok?u.text():(console.error("Missing icon: "+r+n+".svg"),by)).then(u=>(u!==by&&localStorage.setItem(r+n+".svg",u),gk[r+n+".svg"]="fetched",u)))):Promise.resolve(by)};let pp=class extends Hi{constructor(){super(...arguments),this.path=window.pktIconPath,this.name="",this.icon=FS(by),this._updatedProps=[]}connectedCallback(){super.connectedCallback(),this.classList.add("pkt-icon")}async attributeChangedCallback(n,r,s){super.attributeChangedCallback(n,r,s),(n==="name"||n==="path")&&this.getIcon(this.name)}async updated(n){super.updated(n),(n.has("name")||n.has("path"))&&this.getIcon(this.name)}async getIcon(n=""){this._updatedProps.length>0?(this.path||(this.path,window.pktIconPath),this.icon=FS(await wN(this.name||"",this.path).then(r=>r)),this._updatedProps=[]):this._updatedProps.includes(n)||this._updatedProps.push(n)}render(){return Qe`${this.name&&this.icon}`}};tg([ae({type:String,reflect:!1})],pp.prototype,"path",2),tg([ae({type:String,reflect:!0})],pp.prototype,"name",2),tg([ae({type:SVGElement})],pp.prototype,"icon",2),tg([ae({type:Array,noAccessor:!0})],pp.prototype,"_updatedProps",2),pp=tg([Ja("pkt-icon")],pp);/**
319
319
  * @license
320
320
  * Copyright 2018 Google LLC
321
321
  * SPDX-License-Identifier: BSD-3-Clause
@@ -995,7 +995,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
995
995
  Copyright (c) 2018 Jed Watson.
996
996
  Licensed under the MIT License (MIT), see
997
997
  http://jedwatson.github.io/classnames
998
- */(function(n){(function(){var r={}.hasOwnProperty;function s(){for(var g="",v=0;v<arguments.length;v++){var D=arguments[v];D&&(g=f(g,u(D)))}return g}function u(g){if(typeof g=="string"||typeof g=="number")return g;if(typeof g!="object")return"";if(Array.isArray(g))return s.apply(null,g);if(g.toString!==Object.prototype.toString&&!g.toString.toString().includes("[native code]"))return g.toString();var v="";for(var D in g)r.call(g,D)&&g[D]&&(v=f(v,D));return v}function f(g,v){return v?g?g+" "+v:g+v:g}n.exports?(s.default=s,n.exports=s):window.classNames=s})()})(aC);var f$=aC.exports;const os=cy(f$),h$=ze.forwardRef(({title:n,className:r,children:s,toggleProps:u,defaultOpen:f=!1,id:g},v)=>{const[D,x]=ze.useState(f),_=u?u.isOpen:D,P=B=>B??void 0,$=(B,j)=>{B.preventDefault(),u!==void 0&&u.onToggleClick(B,j),x(!_)},L=os(r,"pkt-accordion-item");return O.jsxs("details",{className:L,ref:v,id:g,open:P(u?u.isOpen:D),children:[O.jsxs("summary",{className:"pkt-accordion-item__title",id:`pkt-accordion-item-summary-${g}`,onClick:B=>$(B,g),children:[n,O.jsx(Ln,{name:"chevron-thin-down",className:"pkt-accordion-item__icon","aria-hidden":"true"})]}),O.jsx("div",{id:`pkt-accordion-item-content-${g}`,role:"region",className:"pkt-accordion-item__content",children:s})]})}),m$=uo({tagName:"pkt-alert",elementClass:Us,react:ze,displayName:"PktAlert",events:{onClose:"close"}}),iC=ze.forwardRef(({children:n,...r},s)=>O.jsx(m$,{ref:s,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));iC.displayName="PktAlert";const oC=ze.forwardRef(({href:n,text:r,onClick:s,className:u,...f},g)=>{const v=[u,"pkt-back-link"].filter(Boolean).join(" "),D=x=>{s&&s(x)};return O.jsx("nav",{ref:g,className:v,"aria-label":"Gå tilbake et steg",children:O.jsxs("a",{href:n||"/",className:"pkt-link pkt-link--icon-left",onClick:D,...f,children:[O.jsx(Ln,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),O.jsx("span",{className:"pkt-back-link__text",children:r||"Forsiden"})]})})});oC.displayName="PktBackLink";const g$=ze.forwardRef(({breadcrumbs:n,navigationType:r,className:s,...u},f)=>{const g=n.slice(0,4),v=g[g.length-2],D=[s,"pkt-breadcrumbs"].filter(Boolean).join(" ");return O.jsxs("nav",{ref:f,"aria-label":"brødsmulemeny",className:D,children:[O.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:g.map((x,_)=>O.jsx("li",{className:"pkt-breadcrumbs__item",children:_===g.length-1?O.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:O.jsx("span",{className:"pkt-breadcrumbs__text",children:x.text})}):r==="router"?O.jsxs(op.Link,{to:x.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...u,children:[O.jsx(Ln,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:x.text})]}):O.jsxs("a",{href:x.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...u,children:[O.jsx(Ln,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:x.text})]})},`breadcrumb-${_}`))}),r==="router"?O.jsxs(op.Link,{to:v.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...u,children:[O.jsx(Ln,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:v.text})]}):O.jsxs("a",{href:v.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...u,children:[O.jsx(Ln,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:v.text})]})]})}),ah=ze.forwardRef(({children:n,className:r,iconName:s="user",secondIconName:u="user",size:f="medium",skin:g="primary",type:v="button",variant:D="label-only",state:x,color:_,isLoading:P=!1,...$},L)=>{const B=[r,"pkt-btn",f&&`pkt-btn--${f}`,g&&`pkt-btn--${g}`,D&&`pkt-btn--${D}`,_&&`pkt-btn--${_}`,P&&"pkt-btn--active",x&&`pkt-btn--${x}`].filter(Boolean).join(" ");return O.jsxs("button",{...$,className:B,type:v,ref:L,children:[P&&O.jsx(Ln,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/12.18/animations/"}),D!=="label-only"&&O.jsx(Ln,{className:"pkt-btn__icon",name:s}),O.jsx("span",{className:"pkt-btn__text",children:n}),D==="icons-right-and-left"&&O.jsx(Ln,{className:"pkt-btn__icon",name:u})]})});ah.displayName="PktButton";const v$=uo({tagName:"pkt-card",elementClass:Tu,react:ze,displayName:"PktCard",events:{}}),sC=ze.forwardRef(({children:n,...r},s)=>O.jsx(v$,{...r,ref:s,children:O.jsx("div",{className:"pkt-contents",children:n})}));sC.displayName="PktCard";const Ey=ze.forwardRef(({id:n,hasTile:r=!1,disabled:s=!1,label:u,labelPosition:f="right",hideLabel:g=!1,checkHelptext:v,hasError:D=!1,isSwitch:x=!1,className:_,...P},$)=>{const L=[_,"pkt-input-check"].filter(Boolean).join(" ");return O.jsx("div",{className:L,children:O.jsxs("div",{className:`pkt-input-check__input ${r?"pkt-input-check__input--tile":""} ${s&&r?"pkt-input-check__input--tile-disabled":""}`,children:[u&&f==="left"&&O.jsxs("label",{className:`pkt-input-check__input-label ${g?"pkt-sr-only":""}`,htmlFor:n,children:[u,v&&O.jsx("div",{className:"pkt-input-check__input-helptext",children:v})]}),O.jsx("input",{ref:$,className:`pkt-input-check__input-checkbox ${D?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",role:x?"switch":"checkbox",id:n,disabled:s,...P}),u&&f==="right"&&O.jsxs("label",{className:`pkt-input-check__input-label ${g?"pkt-sr-only":""}`,htmlFor:n,children:[u,v&&O.jsx("div",{className:"pkt-input-check__input-helptext",children:v})]})]})})});Ey.displayName="PktCheckbox";const lC=uo({tagName:"pkt-datepicker",elementClass:jr,react:ze,displayName:"PktDatepicker",events:{onChange:"change",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),y$=({columnOne:n,columnTwo:r,socialLinks:s,className:u,personvernOgInfoLink:f="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:g="https://www.oslo.kommune.no/tilgjengelighet/"})=>{var D,x;const v=[u,"pkt-footer"].filter(Boolean).join(" ");return O.jsx("footer",{className:v,"data-mode":"dark",children:O.jsxs("div",{className:"pkt-footer__container",children:[O.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[O.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[O.jsx("h2",{className:"pkt-footer__title",children:n.title}),O.jsxs("ul",{className:"pkt-footer__list",children:[n.text&&O.jsx("li",{className:"pkt-footer__text",children:n.text}),(D=n.links)==null?void 0:D.map((_,P)=>O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:`pkt-footer__link ${_.external?"pkt-link--external":""}`,href:_.href,target:_.openInNewTab?"_blank":"_self",rel:_.openInNewTab?"noopener noreferrer":void 0,children:[O.jsx(Ln,{className:"pkt-footer__link-icon",name:"chevron-right"}),_.text]})},`links-${P}`))]})]}),O.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[O.jsx("h2",{className:"pkt-footer__title",children:r.title}),O.jsxs("ul",{className:"pkt-footer__list",children:[r.text&&O.jsx("li",{className:"pkt-footer__text",children:r.text}),(x=r.links)==null?void 0:x.map((_,P)=>O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:`pkt-footer__link ${_.external?"pkt-link--external":""}`,href:_.href,target:_.openInNewTab?"_blank":"_self",rel:_.openInNewTab?"noopener noreferrer":void 0,children:[O.jsx(Ln,{className:"pkt-footer__link-icon",name:"chevron-right"}),_.text]})},`links-${P}`))]})]}),O.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[O.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),O.jsxs("ul",{className:"pkt-footer__list",children:[O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:"pkt-footer__link",href:f,children:[O.jsx(Ln,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:"pkt-footer__link",href:g,children:[O.jsx(Ln,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),s&&O.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[O.jsx("div",{className:"pkt-footer__social-languages",children:s.filter(_=>_.language).map((_,P)=>O.jsx("div",{className:"pkt-footer__social-language",children:O.jsx("a",{href:_.href,"aria-label":`til ${_.language} versjon av nettsiden`,target:_.openInNewTab?"_blank":"_self",rel:_.openInNewTab?"noopener noreferrer":void 0,children:_.language})},`sociallinks-language-${P}`))}),O.jsx("div",{className:"pkt-footer__social-icons",children:s.filter(_=>_.iconName).map((_,P)=>O.jsx(ze.Fragment,{children:O.jsx("a",{href:_.href,"aria-label":`til ${_.iconName}`,className:"pkt-footer__social-icon-link",target:_.openInNewTab?"_blank":"_self",rel:_.openInNewTab?"noopener noreferrer":void 0,children:O.jsx(Ln,{className:"pkt-footer__social-icon",name:_.iconName})})},`sociallinks-${P}`))})]})]})})},b$=({links:n=[],personvernOgInfoLink:r="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:s="https://www.oslo.kommune.no/tilgjengelighet/",className:u})=>{const f=[u,"pkt-footer-simple"].filter(Boolean).join(" ");return O.jsx("footer",{className:f,"data-mode":"dark",children:O.jsx("div",{className:"pkt-footer-simple__container",children:O.jsxs("ul",{className:"pkt-footer-simple__list",children:[n.map((g,v)=>O.jsx("li",{className:"pkt-footer-simple__list-item",children:O.jsxs("a",{className:`pkt-footer-simple__link ${g.external?" pkt-link--external":""}`,href:g.href,target:g.openInNewTab?"_blank":"_self",rel:g.openInNewTab?"noopener noreferrer":void 0,children:[O.jsx(Ln,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),g.text]})},v)),O.jsx("li",{className:"pkt-footer-simple__list-item",children:O.jsxs("a",{className:"pkt-footer-simple__link",href:r,children:[O.jsx(Ln,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),O.jsx("li",{className:"pkt-footer-simple__list-item",children:O.jsxs("a",{className:"pkt-footer-simple__link",href:s,children:[O.jsx(Ln,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},k$=ze.forwardRef(({className:n,logoLink:r="https://www.oslo.kommune.no/",serviceName:s,fixed:u=!0,scrollToHide:f=!0,user:g,userMenu:v,representing:D,userOptions:x,userMenuFooter:_,canChangeRepresentation:P=!0,showMenuButton:$=!1,showLogOutButton:L=!1,openMenu:B,logOut:j,changeRepresentation:V,children:q,...ge},Q)=>{const Y=ze.useMemo(()=>typeof(g==null?void 0:g.lastLoggedIn)=="string"?g.lastLoggedIn:g!=null&&g.lastLoggedIn?new Date(g.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[g]),[te,U]=ze.useState(!1),[re,oe]=ze.useState(0),[Te,ve]=ze.useState(!1),Ue=ze.useRef(null);ze.useEffect(()=>(document&&(document.addEventListener("mouseup",Ke),window.addEventListener("scroll",Ne)),()=>{document&&(document.removeEventListener("mouseup",Ke),window.removeEventListener("scroll",Ne))}));const at=()=>{ve(!Te)},Ke=Se=>{Ue.current&&!Ue.current.contains(Se.target)&&ve(!1)},Ne=()=>{if(f){const Se=window.pageYOffset||document.documentElement.scrollTop;if(Se<0||Math.abs(Se-re)<60)return;U(Se>re),oe(Se)}};return O.jsxs("header",{...ge,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:os(n,"pkt-header",{"pkt-header--fixed":u,"pkt-header--scroll-to-hide":f,"pkt-header--hidden":te}),ref:Q,children:[O.jsxs("div",{className:"pkt-header__logo",children:[typeof r=="string"?O.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:r,children:O.jsx(Ln,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.18/logos/"})}):O.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:r,children:O.jsx(Ln,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.18/logos/"})}),O.jsx("span",{className:"pkt-header__logo-service",translate:"no",children:s})]}),O.jsx("nav",{className:"pkt-header__actions",children:O.jsxs("ul",{className:"pkt-header__actions-row",children:[$&&O.jsx("li",{children:O.jsx(ah,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:B,children:"Meny"})}),(g||D)&&O.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${Te&&!te?"pkt-header--open-dropdown":""}`,ref:Ue,children:[O.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":Te,onClick:at,children:[O.jsx(Ln,{name:"user",className:"pkt-btn__icon"}),O.jsx("span",{className:"pkt-header__user-fullname",translate:"no",children:(D==null?void 0:D.name)||(g==null?void 0:g.name)}),O.jsx("span",{className:"pkt-header__user-shortname",translate:"no",children:(D==null?void 0:D.shortname)||(g==null?void 0:g.shortname)}),O.jsx(Ln,{name:"chevron-thin-down",className:"pkt-btn--closed"}),O.jsx(Ln,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),O.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[g&&O.jsxs("li",{children:[O.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),O.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:g.name}),g.lastLoggedIn&&O.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",O.jsx("time",{children:Y})]})]}),v&&O.jsx("li",{children:O.jsx("ul",{className:"pkt-list",children:v.map((Se,He)=>O.jsx("li",{children:typeof Se.target=="string"?O.jsxs("a",{href:Se.target,className:"pkt-link",children:[Se.iconName&&O.jsx(Ln,{name:Se.iconName,className:"pkt-link__icon"}),Se.title]}):O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:Se.target,children:[Se.iconName&&O.jsx(Ln,{name:Se.iconName,className:"pkt-link__icon"}),Se.title]})},`userMenu-${He}`))})}),(D||P)&&O.jsxs("li",{children:[D&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),O.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:D.name}),D.orgNumber&&O.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",D.orgNumber]})]}),O.jsx("ul",{className:"pkt-list mt-size-16",children:P&&O.jsx("li",{children:O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:V,children:[O.jsx(Ln,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),O.jsx("li",{children:O.jsx("ul",{className:"pkt-list",children:(x||!L)&&O.jsxs(O.Fragment,{children:[x==null?void 0:x.map((Se,He)=>O.jsx("li",{children:typeof Se.target=="string"?O.jsxs("a",{href:Se.target,className:"pkt-link",children:[Se.iconName&&O.jsx(Ln,{name:Se.iconName,className:"pkt-link__icon"}),Se.title]}):O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:Se.target,children:[Se.iconName&&O.jsx(Ln,{name:Se.iconName,className:"pkt-link__icon"}),Se.title]})},`userOptions-${He}`)),!L&&O.jsx("li",{children:O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:j,children:[O.jsx(Ln,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),_&&O.jsx("li",{className:"footer",children:O.jsx("ul",{className:"pkt-list-horizontal bordered",children:_.map((Se,He)=>O.jsx("li",{children:typeof Se.target=="string"?O.jsx("a",{href:Se.target,className:"pkt-link",children:Se.title}):O.jsx("button",{className:"pkt-link-button pkt-link",onClick:Se.target,children:Se.title})},`userMenuFooter-${He}`))})})]})]}),q&&O.jsx("li",{children:q}),L&&O.jsx("li",{children:O.jsx(ah,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:j,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),uC=ze.forwardRef(({label:n,id:r,children:s,...u},f)=>O.jsxs("div",{className:"pkt-form-group",children:[O.jsx("label",{htmlFor:r,className:"pkt-form-label",children:n}),O.jsx("input",{className:"pkt-form-input",id:r,...u,ref:f}),s]}));uC.displayName="PktInput";const w$=uo({tagName:"pkt-input-wrapper",elementClass:Mr,react:ze,displayName:"PktInputWrapper",events:{onToggleHelpText:"toggleHelpText"}}),cC=ze.forwardRef(({children:n,...r},s)=>O.jsx(w$,{ref:s,...r,children:O.jsx("div",{className:"pkt-contents",children:n})})),D$=uo({tagName:"pkt-link",elementClass:zc,react:ze,displayName:"PktLink",events:{onClick:"click"}}),dC=ze.forwardRef(({children:n,...r},s)=>O.jsx(D$,{...r,ref:s,children:O.jsx("span",{className:"pkt-contents",children:n})}));dC.displayName="PktLink";const S$=uo({tagName:"pkt-linkcard",elementClass:Fu,react:ze,displayName:"PktLinkCard",events:{}}),pC=ze.forwardRef(({children:n,...r},s)=>O.jsx(S$,{ref:s,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));pC.displayName="PktLinkCard";const fC=ze.forwardRef(({className:n,message:r,size:s="medium",inline:u=!1,isLoading:f=!0,variant:g="rainbow",delay:v=0,children:D,...x},_)=>{const P=`pkt-loader pkt-loader--${s}`,[$,L]=ze.useState(!(v>0));v>0&&setTimeout(()=>{L(!0)},v);const B=j=>j==="shapes"?"loader":j==="blue"?"spinner-blue":"spinner";return O.jsx("div",{role:"status","aria-live":"polite","aria-busy":f,className:`pkt-loader--${u?"inline":"box"} ${n||""}`,children:f?O.jsx(O.Fragment,{children:$?O.jsxs("div",{className:P,"data-testid":"pkt-loader",ref:_,...x,children:[O.jsx(Ln,{name:B(g),path:"https://punkt-cdn.oslo.kommune.no/12.18/animations/",className:`pkt-loader__svg pkt-loader__${g}`}),r&&O.jsx("p",{children:r})]}):null}):D})});fC.displayName="PktLoader";const C$=uo({tagName:"pkt-messagebox",elementClass:Uc,react:ze,displayName:"PktMessagebox",events:{onClose:"close"}}),hC=ze.forwardRef(({children:n,...r},s)=>O.jsx(C$,{...r,ref:s,children:O.jsx("div",{className:"pkt-contents",children:n})}));hC.displayName="PktMessagebox";const x$=uo({tagName:"pkt-modal",elementClass:Au,react:ze,displayName:"PktModal",events:{}}),mC=ze.forwardRef(({children:n,...r},s)=>O.jsx(x$,{...r,ref:s,children:O.jsx("div",{className:"pkt-contents",children:n})}));mC.displayName="PktModal";/*!
998
+ */(function(n){(function(){var r={}.hasOwnProperty;function s(){for(var g="",v=0;v<arguments.length;v++){var D=arguments[v];D&&(g=f(g,u(D)))}return g}function u(g){if(typeof g=="string"||typeof g=="number")return g;if(typeof g!="object")return"";if(Array.isArray(g))return s.apply(null,g);if(g.toString!==Object.prototype.toString&&!g.toString.toString().includes("[native code]"))return g.toString();var v="";for(var D in g)r.call(g,D)&&g[D]&&(v=f(v,D));return v}function f(g,v){return v?g?g+" "+v:g+v:g}n.exports?(s.default=s,n.exports=s):window.classNames=s})()})(aC);var f$=aC.exports;const os=cy(f$),h$=ze.forwardRef(({title:n,className:r,children:s,toggleProps:u,defaultOpen:f=!1,id:g},v)=>{const[D,x]=ze.useState(f),_=u?u.isOpen:D,P=B=>B??void 0,$=(B,j)=>{B.preventDefault(),u!==void 0&&u.onToggleClick(B,j),x(!_)},L=os(r,"pkt-accordion-item");return O.jsxs("details",{className:L,ref:v,id:g,open:P(u?u.isOpen:D),children:[O.jsxs("summary",{className:"pkt-accordion-item__title",id:`pkt-accordion-item-summary-${g}`,onClick:B=>$(B,g),children:[n,O.jsx(Ln,{name:"chevron-thin-down",className:"pkt-accordion-item__icon","aria-hidden":"true"})]}),O.jsx("div",{id:`pkt-accordion-item-content-${g}`,role:"region",className:"pkt-accordion-item__content",children:s})]})}),m$=uo({tagName:"pkt-alert",elementClass:Us,react:ze,displayName:"PktAlert",events:{onClose:"close"}}),iC=ze.forwardRef(({children:n,...r},s)=>O.jsx(m$,{ref:s,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));iC.displayName="PktAlert";const oC=ze.forwardRef(({href:n,text:r,onClick:s,className:u,...f},g)=>{const v=[u,"pkt-back-link"].filter(Boolean).join(" "),D=x=>{s&&s(x)};return O.jsx("nav",{ref:g,className:v,"aria-label":"Gå tilbake et steg",children:O.jsxs("a",{href:n||"/",className:"pkt-link pkt-link--icon-left",onClick:D,...f,children:[O.jsx(Ln,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),O.jsx("span",{className:"pkt-back-link__text",children:r||"Forsiden"})]})})});oC.displayName="PktBackLink";const g$=ze.forwardRef(({breadcrumbs:n,navigationType:r,className:s,...u},f)=>{const g=n.slice(0,4),v=g[g.length-2],D=[s,"pkt-breadcrumbs"].filter(Boolean).join(" ");return O.jsxs("nav",{ref:f,"aria-label":"brødsmulemeny",className:D,children:[O.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:g.map((x,_)=>O.jsx("li",{className:"pkt-breadcrumbs__item",children:_===g.length-1?O.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:O.jsx("span",{className:"pkt-breadcrumbs__text",children:x.text})}):r==="router"?O.jsxs(op.Link,{to:x.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...u,children:[O.jsx(Ln,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:x.text})]}):O.jsxs("a",{href:x.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...u,children:[O.jsx(Ln,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:x.text})]})},`breadcrumb-${_}`))}),r==="router"?O.jsxs(op.Link,{to:v.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...u,children:[O.jsx(Ln,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:v.text})]}):O.jsxs("a",{href:v.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...u,children:[O.jsx(Ln,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:v.text})]})]})}),ah=ze.forwardRef(({children:n,className:r,iconName:s="user",secondIconName:u="user",size:f="medium",skin:g="primary",type:v="button",variant:D="label-only",state:x,color:_,isLoading:P=!1,...$},L)=>{const B=[r,"pkt-btn",f&&`pkt-btn--${f}`,g&&`pkt-btn--${g}`,D&&`pkt-btn--${D}`,_&&`pkt-btn--${_}`,P&&"pkt-btn--active",x&&`pkt-btn--${x}`].filter(Boolean).join(" ");return O.jsxs("button",{...$,className:B,type:v,ref:L,children:[P&&O.jsx(Ln,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/12.19/animations/"}),D!=="label-only"&&O.jsx(Ln,{className:"pkt-btn__icon",name:s}),O.jsx("span",{className:"pkt-btn__text",children:n}),D==="icons-right-and-left"&&O.jsx(Ln,{className:"pkt-btn__icon",name:u})]})});ah.displayName="PktButton";const v$=uo({tagName:"pkt-card",elementClass:Tu,react:ze,displayName:"PktCard",events:{}}),sC=ze.forwardRef(({children:n,...r},s)=>O.jsx(v$,{...r,ref:s,children:O.jsx("div",{className:"pkt-contents",children:n})}));sC.displayName="PktCard";const Ey=ze.forwardRef(({id:n,hasTile:r=!1,disabled:s=!1,label:u,labelPosition:f="right",hideLabel:g=!1,checkHelptext:v,hasError:D=!1,isSwitch:x=!1,className:_,...P},$)=>{const L=[_,"pkt-input-check"].filter(Boolean).join(" ");return O.jsx("div",{className:L,children:O.jsxs("div",{className:`pkt-input-check__input ${r?"pkt-input-check__input--tile":""} ${s&&r?"pkt-input-check__input--tile-disabled":""}`,children:[u&&f==="left"&&O.jsxs("label",{className:`pkt-input-check__input-label ${g?"pkt-sr-only":""}`,htmlFor:n,children:[u,v&&O.jsx("div",{className:"pkt-input-check__input-helptext",children:v})]}),O.jsx("input",{ref:$,className:`pkt-input-check__input-checkbox ${D?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",role:x?"switch":"checkbox",id:n,disabled:s,...P}),u&&f==="right"&&O.jsxs("label",{className:`pkt-input-check__input-label ${g?"pkt-sr-only":""}`,htmlFor:n,children:[u,v&&O.jsx("div",{className:"pkt-input-check__input-helptext",children:v})]})]})})});Ey.displayName="PktCheckbox";const lC=uo({tagName:"pkt-datepicker",elementClass:jr,react:ze,displayName:"PktDatepicker",events:{onChange:"change",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),y$=({columnOne:n,columnTwo:r,socialLinks:s,className:u,personvernOgInfoLink:f="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:g="https://www.oslo.kommune.no/tilgjengelighet/"})=>{var D,x;const v=[u,"pkt-footer"].filter(Boolean).join(" ");return O.jsx("footer",{className:v,"data-mode":"dark",children:O.jsxs("div",{className:"pkt-footer__container",children:[O.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[O.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[O.jsx("h2",{className:"pkt-footer__title",children:n.title}),O.jsxs("ul",{className:"pkt-footer__list",children:[n.text&&O.jsx("li",{className:"pkt-footer__text",children:n.text}),(D=n.links)==null?void 0:D.map((_,P)=>O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:`pkt-footer__link ${_.external?"pkt-link--external":""}`,href:_.href,target:_.openInNewTab?"_blank":"_self",rel:_.openInNewTab?"noopener noreferrer":void 0,children:[O.jsx(Ln,{className:"pkt-footer__link-icon",name:"chevron-right"}),_.text]})},`links-${P}`))]})]}),O.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[O.jsx("h2",{className:"pkt-footer__title",children:r.title}),O.jsxs("ul",{className:"pkt-footer__list",children:[r.text&&O.jsx("li",{className:"pkt-footer__text",children:r.text}),(x=r.links)==null?void 0:x.map((_,P)=>O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:`pkt-footer__link ${_.external?"pkt-link--external":""}`,href:_.href,target:_.openInNewTab?"_blank":"_self",rel:_.openInNewTab?"noopener noreferrer":void 0,children:[O.jsx(Ln,{className:"pkt-footer__link-icon",name:"chevron-right"}),_.text]})},`links-${P}`))]})]}),O.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[O.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),O.jsxs("ul",{className:"pkt-footer__list",children:[O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:"pkt-footer__link",href:f,children:[O.jsx(Ln,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:"pkt-footer__link",href:g,children:[O.jsx(Ln,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),s&&O.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[O.jsx("div",{className:"pkt-footer__social-languages",children:s.filter(_=>_.language).map((_,P)=>O.jsx("div",{className:"pkt-footer__social-language",children:O.jsx("a",{href:_.href,"aria-label":`til ${_.language} versjon av nettsiden`,target:_.openInNewTab?"_blank":"_self",rel:_.openInNewTab?"noopener noreferrer":void 0,children:_.language})},`sociallinks-language-${P}`))}),O.jsx("div",{className:"pkt-footer__social-icons",children:s.filter(_=>_.iconName).map((_,P)=>O.jsx(ze.Fragment,{children:O.jsx("a",{href:_.href,"aria-label":`til ${_.iconName}`,className:"pkt-footer__social-icon-link",target:_.openInNewTab?"_blank":"_self",rel:_.openInNewTab?"noopener noreferrer":void 0,children:O.jsx(Ln,{className:"pkt-footer__social-icon",name:_.iconName})})},`sociallinks-${P}`))})]})]})})},b$=({links:n=[],personvernOgInfoLink:r="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:s="https://www.oslo.kommune.no/tilgjengelighet/",className:u})=>{const f=[u,"pkt-footer-simple"].filter(Boolean).join(" ");return O.jsx("footer",{className:f,"data-mode":"dark",children:O.jsx("div",{className:"pkt-footer-simple__container",children:O.jsxs("ul",{className:"pkt-footer-simple__list",children:[n.map((g,v)=>O.jsx("li",{className:"pkt-footer-simple__list-item",children:O.jsxs("a",{className:`pkt-footer-simple__link ${g.external?" pkt-link--external":""}`,href:g.href,target:g.openInNewTab?"_blank":"_self",rel:g.openInNewTab?"noopener noreferrer":void 0,children:[O.jsx(Ln,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),g.text]})},v)),O.jsx("li",{className:"pkt-footer-simple__list-item",children:O.jsxs("a",{className:"pkt-footer-simple__link",href:r,children:[O.jsx(Ln,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),O.jsx("li",{className:"pkt-footer-simple__list-item",children:O.jsxs("a",{className:"pkt-footer-simple__link",href:s,children:[O.jsx(Ln,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},k$=ze.forwardRef(({className:n,logoLink:r="https://www.oslo.kommune.no/",serviceName:s,fixed:u=!0,scrollToHide:f=!0,user:g,userMenu:v,representing:D,userOptions:x,userMenuFooter:_,canChangeRepresentation:P=!0,showMenuButton:$=!1,showLogOutButton:L=!1,openMenu:B,logOut:j,changeRepresentation:V,children:q,...ge},Q)=>{const Y=ze.useMemo(()=>typeof(g==null?void 0:g.lastLoggedIn)=="string"?g.lastLoggedIn:g!=null&&g.lastLoggedIn?new Date(g.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[g]),[te,U]=ze.useState(!1),[re,oe]=ze.useState(0),[Te,ve]=ze.useState(!1),Ue=ze.useRef(null);ze.useEffect(()=>(document&&(document.addEventListener("mouseup",Ke),window.addEventListener("scroll",Ne)),()=>{document&&(document.removeEventListener("mouseup",Ke),window.removeEventListener("scroll",Ne))}));const at=()=>{ve(!Te)},Ke=Se=>{Ue.current&&!Ue.current.contains(Se.target)&&ve(!1)},Ne=()=>{if(f){const Se=window.pageYOffset||document.documentElement.scrollTop;if(Se<0||Math.abs(Se-re)<60)return;U(Se>re),oe(Se)}};return O.jsxs("header",{...ge,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:os(n,"pkt-header",{"pkt-header--fixed":u,"pkt-header--scroll-to-hide":f,"pkt-header--hidden":te}),ref:Q,children:[O.jsxs("div",{className:"pkt-header__logo",children:[typeof r=="string"?O.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:r,children:O.jsx(Ln,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.19/logos/"})}):O.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:r,children:O.jsx(Ln,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.19/logos/"})}),O.jsx("span",{className:"pkt-header__logo-service",translate:"no",children:s})]}),O.jsx("nav",{className:"pkt-header__actions",children:O.jsxs("ul",{className:"pkt-header__actions-row",children:[$&&O.jsx("li",{children:O.jsx(ah,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:B,children:"Meny"})}),(g||D)&&O.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${Te&&!te?"pkt-header--open-dropdown":""}`,ref:Ue,children:[O.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":Te,onClick:at,children:[O.jsx(Ln,{name:"user",className:"pkt-btn__icon"}),O.jsx("span",{className:"pkt-header__user-fullname",translate:"no",children:(D==null?void 0:D.name)||(g==null?void 0:g.name)}),O.jsx("span",{className:"pkt-header__user-shortname",translate:"no",children:(D==null?void 0:D.shortname)||(g==null?void 0:g.shortname)}),O.jsx(Ln,{name:"chevron-thin-down",className:"pkt-btn--closed"}),O.jsx(Ln,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),O.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[g&&O.jsxs("li",{children:[O.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),O.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:g.name}),g.lastLoggedIn&&O.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",O.jsx("time",{children:Y})]})]}),v&&O.jsx("li",{children:O.jsx("ul",{className:"pkt-list",children:v.map((Se,He)=>O.jsx("li",{children:typeof Se.target=="string"?O.jsxs("a",{href:Se.target,className:"pkt-link",children:[Se.iconName&&O.jsx(Ln,{name:Se.iconName,className:"pkt-link__icon"}),Se.title]}):O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:Se.target,children:[Se.iconName&&O.jsx(Ln,{name:Se.iconName,className:"pkt-link__icon"}),Se.title]})},`userMenu-${He}`))})}),(D||P)&&O.jsxs("li",{children:[D&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),O.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:D.name}),D.orgNumber&&O.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",D.orgNumber]})]}),O.jsx("ul",{className:"pkt-list mt-size-16",children:P&&O.jsx("li",{children:O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:V,children:[O.jsx(Ln,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),O.jsx("li",{children:O.jsx("ul",{className:"pkt-list",children:(x||!L)&&O.jsxs(O.Fragment,{children:[x==null?void 0:x.map((Se,He)=>O.jsx("li",{children:typeof Se.target=="string"?O.jsxs("a",{href:Se.target,className:"pkt-link",children:[Se.iconName&&O.jsx(Ln,{name:Se.iconName,className:"pkt-link__icon"}),Se.title]}):O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:Se.target,children:[Se.iconName&&O.jsx(Ln,{name:Se.iconName,className:"pkt-link__icon"}),Se.title]})},`userOptions-${He}`)),!L&&O.jsx("li",{children:O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:j,children:[O.jsx(Ln,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),_&&O.jsx("li",{className:"footer",children:O.jsx("ul",{className:"pkt-list-horizontal bordered",children:_.map((Se,He)=>O.jsx("li",{children:typeof Se.target=="string"?O.jsx("a",{href:Se.target,className:"pkt-link",children:Se.title}):O.jsx("button",{className:"pkt-link-button pkt-link",onClick:Se.target,children:Se.title})},`userMenuFooter-${He}`))})})]})]}),q&&O.jsx("li",{children:q}),L&&O.jsx("li",{children:O.jsx(ah,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:j,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),uC=ze.forwardRef(({label:n,id:r,children:s,...u},f)=>O.jsxs("div",{className:"pkt-form-group",children:[O.jsx("label",{htmlFor:r,className:"pkt-form-label",children:n}),O.jsx("input",{className:"pkt-form-input",id:r,...u,ref:f}),s]}));uC.displayName="PktInput";const w$=uo({tagName:"pkt-input-wrapper",elementClass:Mr,react:ze,displayName:"PktInputWrapper",events:{onToggleHelpText:"toggleHelpText"}}),cC=ze.forwardRef(({children:n,...r},s)=>O.jsx(w$,{ref:s,...r,children:O.jsx("div",{className:"pkt-contents",children:n})})),D$=uo({tagName:"pkt-link",elementClass:zc,react:ze,displayName:"PktLink",events:{onClick:"click"}}),dC=ze.forwardRef(({children:n,...r},s)=>O.jsx(D$,{...r,ref:s,children:O.jsx("span",{className:"pkt-contents",children:n})}));dC.displayName="PktLink";const S$=uo({tagName:"pkt-linkcard",elementClass:Fu,react:ze,displayName:"PktLinkCard",events:{}}),pC=ze.forwardRef(({children:n,...r},s)=>O.jsx(S$,{ref:s,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));pC.displayName="PktLinkCard";const fC=ze.forwardRef(({className:n,message:r,size:s="medium",inline:u=!1,isLoading:f=!0,variant:g="rainbow",delay:v=0,children:D,...x},_)=>{const P=`pkt-loader pkt-loader--${s}`,[$,L]=ze.useState(!(v>0));v>0&&setTimeout(()=>{L(!0)},v);const B=j=>j==="shapes"?"loader":j==="blue"?"spinner-blue":"spinner";return O.jsx("div",{role:"status","aria-live":"polite","aria-busy":f,className:`pkt-loader--${u?"inline":"box"} ${n||""}`,children:f?O.jsx(O.Fragment,{children:$?O.jsxs("div",{className:P,"data-testid":"pkt-loader",ref:_,...x,children:[O.jsx(Ln,{name:B(g),path:"https://punkt-cdn.oslo.kommune.no/12.19/animations/",className:`pkt-loader__svg pkt-loader__${g}`}),r&&O.jsx("p",{children:r})]}):null}):D})});fC.displayName="PktLoader";const C$=uo({tagName:"pkt-messagebox",elementClass:Uc,react:ze,displayName:"PktMessagebox",events:{onClose:"close"}}),hC=ze.forwardRef(({children:n,...r},s)=>O.jsx(C$,{...r,ref:s,children:O.jsx("div",{className:"pkt-contents",children:n})}));hC.displayName="PktMessagebox";const x$=uo({tagName:"pkt-modal",elementClass:Au,react:ze,displayName:"PktModal",events:{}}),mC=ze.forwardRef(({children:n,...r},s)=>O.jsx(x$,{...r,ref:s,children:O.jsx("div",{className:"pkt-contents",children:n})}));mC.displayName="PktModal";/*!
999
999
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
1000
1000
  *
1001
1001
  * Copyright (c) 2014-2017, Jon Schlinkert.
@@ -1102,7 +1102,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1102
1102
  * @public
1103
1103
  */var s=function(u){var f=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,g=0,v={},D={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function Q(Y){return Y instanceof x?new x(Y.type,Q(Y.content),Y.alias):Array.isArray(Y)?Y.map(Q):Y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(Q){return Object.prototype.toString.call(Q).slice(8,-1)},objId:function(Q){return Q.__id||Object.defineProperty(Q,"__id",{value:++g}),Q.__id},clone:function Q(Y,te){te=te||{};var U,re;switch(D.util.type(Y)){case"Object":if(re=D.util.objId(Y),te[re])return te[re];U={},te[re]=U;for(var oe in Y)Y.hasOwnProperty(oe)&&(U[oe]=Q(Y[oe],te));return U;case"Array":return re=D.util.objId(Y),te[re]?te[re]:(U=[],te[re]=U,Y.forEach(function(Te,ve){U[ve]=Q(Te,te)}),U);default:return Y}},getLanguage:function(Q){for(;Q;){var Y=f.exec(Q.className);if(Y)return Y[1].toLowerCase();Q=Q.parentElement}return"none"},setLanguage:function(Q,Y){Q.className=Q.className.replace(RegExp(f,"gi"),""),Q.classList.add("language-"+Y)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(U){var Q=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(U.stack)||[])[1];if(Q){var Y=document.getElementsByTagName("script");for(var te in Y)if(Y[te].src==Q)return Y[te]}return null}},isActive:function(Q,Y,te){for(var U="no-"+Y;Q;){var re=Q.classList;if(re.contains(Y))return!0;if(re.contains(U))return!1;Q=Q.parentElement}return!!te}},languages:{plain:v,plaintext:v,text:v,txt:v,extend:function(Q,Y){var te=D.util.clone(D.languages[Q]);for(var U in Y)te[U]=Y[U];return te},insertBefore:function(Q,Y,te,U){U=U||D.languages;var re=U[Q],oe={};for(var Te in re)if(re.hasOwnProperty(Te)){if(Te==Y)for(var ve in te)te.hasOwnProperty(ve)&&(oe[ve]=te[ve]);te.hasOwnProperty(Te)||(oe[Te]=re[Te])}var Ue=U[Q];return U[Q]=oe,D.languages.DFS(D.languages,function(at,Ke){Ke===Ue&&at!=Q&&(this[at]=oe)}),oe},DFS:function Q(Y,te,U,re){re=re||{};var oe=D.util.objId;for(var Te in Y)if(Y.hasOwnProperty(Te)){te.call(Y,Te,Y[Te],U||Te);var ve=Y[Te],Ue=D.util.type(ve);Ue==="Object"&&!re[oe(ve)]?(re[oe(ve)]=!0,Q(ve,te,null,re)):Ue==="Array"&&!re[oe(ve)]&&(re[oe(ve)]=!0,Q(ve,te,Te,re))}}},plugins:{},highlightAll:function(Q,Y){D.highlightAllUnder(document,Q,Y)},highlightAllUnder:function(Q,Y,te){var U={callback:te,container:Q,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};D.hooks.run("before-highlightall",U),U.elements=Array.prototype.slice.apply(U.container.querySelectorAll(U.selector)),D.hooks.run("before-all-elements-highlight",U);for(var re=0,oe;oe=U.elements[re++];)D.highlightElement(oe,Y===!0,U.callback)},highlightElement:function(Q,Y,te){var U=D.util.getLanguage(Q),re=D.languages[U];D.util.setLanguage(Q,U);var oe=Q.parentElement;oe&&oe.nodeName.toLowerCase()==="pre"&&D.util.setLanguage(oe,U);var Te=Q.textContent,ve={element:Q,language:U,grammar:re,code:Te};function Ue(Ke){ve.highlightedCode=Ke,D.hooks.run("before-insert",ve),ve.element.innerHTML=ve.highlightedCode,D.hooks.run("after-highlight",ve),D.hooks.run("complete",ve),te&&te.call(ve.element)}if(D.hooks.run("before-sanity-check",ve),oe=ve.element.parentElement,oe&&oe.nodeName.toLowerCase()==="pre"&&!oe.hasAttribute("tabindex")&&oe.setAttribute("tabindex","0"),!ve.code){D.hooks.run("complete",ve),te&&te.call(ve.element);return}if(D.hooks.run("before-highlight",ve),!ve.grammar){Ue(D.util.encode(ve.code));return}if(Y&&u.Worker){var at=new Worker(D.filename);at.onmessage=function(Ke){Ue(Ke.data)},at.postMessage(JSON.stringify({language:ve.language,code:ve.code,immediateClose:!0}))}else Ue(D.highlight(ve.code,ve.grammar,ve.language))},highlight:function(Q,Y,te){var U={code:Q,grammar:Y,language:te};if(D.hooks.run("before-tokenize",U),!U.grammar)throw new Error('The language "'+U.language+'" has no grammar.');return U.tokens=D.tokenize(U.code,U.grammar),D.hooks.run("after-tokenize",U),x.stringify(D.util.encode(U.tokens),U.language)},tokenize:function(Q,Y){var te=Y.rest;if(te){for(var U in te)Y[U]=te[U];delete Y.rest}var re=new $;return L(re,re.head,Q),P(Q,re,Y,re.head,0),j(re)},hooks:{all:{},add:function(Q,Y){var te=D.hooks.all;te[Q]=te[Q]||[],te[Q].push(Y)},run:function(Q,Y){var te=D.hooks.all[Q];if(!(!te||!te.length))for(var U=0,re;re=te[U++];)re(Y)}},Token:x};u.Prism=D;function x(Q,Y,te,U){this.type=Q,this.content=Y,this.alias=te,this.length=(U||"").length|0}x.stringify=function Q(Y,te){if(typeof Y=="string")return Y;if(Array.isArray(Y)){var U="";return Y.forEach(function(Ue){U+=Q(Ue,te)}),U}var re={type:Y.type,content:Q(Y.content,te),tag:"span",classes:["token",Y.type],attributes:{},language:te},oe=Y.alias;oe&&(Array.isArray(oe)?Array.prototype.push.apply(re.classes,oe):re.classes.push(oe)),D.hooks.run("wrap",re);var Te="";for(var ve in re.attributes)Te+=" "+ve+'="'+(re.attributes[ve]||"").replace(/"/g,"&quot;")+'"';return"<"+re.tag+' class="'+re.classes.join(" ")+'"'+Te+">"+re.content+"</"+re.tag+">"};function _(Q,Y,te,U){Q.lastIndex=Y;var re=Q.exec(te);if(re&&U&&re[1]){var oe=re[1].length;re.index+=oe,re[0]=re[0].slice(oe)}return re}function P(Q,Y,te,U,re,oe){for(var Te in te)if(!(!te.hasOwnProperty(Te)||!te[Te])){var ve=te[Te];ve=Array.isArray(ve)?ve:[ve];for(var Ue=0;Ue<ve.length;++Ue){if(oe&&oe.cause==Te+","+Ue)return;var at=ve[Ue],Ke=at.inside,Ne=!!at.lookbehind,Se=!!at.greedy,He=at.alias;if(Se&&!at.pattern.global){var Ze=at.pattern.toString().match(/[imsuy]*$/)[0];at.pattern=RegExp(at.pattern.source,Ze+"g")}for(var qe=at.pattern||at,De=U.next,Me=re;De!==Y.tail&&!(oe&&Me>=oe.reach);Me+=De.value.length,De=De.next){var Ae=De.value;if(Y.length>Q.length)return;if(!(Ae instanceof x)){var G=1,ce;if(Se){if(ce=_(qe,Me,Q,Ne),!ce||ce.index>=Q.length)break;var yt=ce.index,vt=ce.index+ce[0].length,ut=Me;for(ut+=De.value.length;yt>=ut;)De=De.next,ut+=De.value.length;if(ut-=De.value.length,Me=ut,De.value instanceof x)continue;for(var ct=De;ct!==Y.tail&&(ut<vt||typeof ct.value=="string");ct=ct.next)G++,ut+=ct.value.length;G--,Ae=Q.slice(Me,ut),ce.index-=Me}else if(ce=_(qe,0,Ae,Ne),!ce)continue;var yt=ce.index,it=ce[0],Lt=Ae.slice(0,yt),Ot=Ae.slice(yt+it.length),sn=Me+Ae.length;oe&&sn>oe.reach&&(oe.reach=sn);var Fn=De.prev;Lt&&(Fn=L(Y,Fn,Lt),Me+=Lt.length),B(Y,Fn,G);var vr=new x(Te,Ke?D.tokenize(it,Ke):it,He,it);if(De=L(Y,Fn,vr),Ot&&L(Y,De,Ot),G>1){var nn={cause:Te+","+Ue,reach:sn};P(Q,Y,te,De.prev,Me,nn),oe&&nn.reach>oe.reach&&(oe.reach=nn.reach)}}}}}}function $(){var Q={value:null,prev:null,next:null},Y={value:null,prev:Q,next:null};Q.next=Y,this.head=Q,this.tail=Y,this.length=0}function L(Q,Y,te){var U=Y.next,re={value:te,prev:Y,next:U};return Y.next=re,U.prev=re,Q.length++,re}function B(Q,Y,te){for(var U=Y.next,re=0;re<te&&U!==Q.tail;re++)U=U.next;Y.next=U,U.prev=Y,Q.length-=re}function j(Q){for(var Y=[],te=Q.head.next;te!==Q.tail;)Y.push(te.value),te=te.next;return Y}if(!u.document)return u.addEventListener&&(D.disableWorkerMessageHandler||u.addEventListener("message",function(Q){var Y=JSON.parse(Q.data),te=Y.language,U=Y.code,re=Y.immediateClose;u.postMessage(D.highlight(U,D.languages[te],te)),re&&u.close()},!1)),D;var V=D.util.currentScript();V&&(D.filename=V.src,V.hasAttribute("data-manual")&&(D.manual=!0));function q(){D.manual||D.highlightAll()}if(!D.manual){var ge=document.readyState;ge==="loading"||ge==="interactive"&&V&&V.defer?document.addEventListener("DOMContentLoaded",q):window.requestAnimationFrame?window.requestAnimationFrame(q):window.setTimeout(q,16)}return D}(r);n.exports&&(n.exports=s),typeof Ic<"u"&&(Ic.Prism=s)})(UE);var ej=UE.exports,tj=C1;C1.displayName="markup",C1.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function C1(n){n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(s,u){var f={};f["language-"+u]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[u]},f.cdata=/^<!\[CDATA\[|\]\]>$/i;var g={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:f}};g["language-"+u]={pattern:/[\s\S]+/,inside:n.languages[u]};var v={};v[s]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return s}),"i"),lookbehind:!0,greedy:!0,inside:g},n.languages.insertBefore("markup","cdata",v)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,s){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[s,"language-"+s],inside:n.languages[s]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml}var nj=x1;x1.displayName="css",x1.aliases=[];function x1(n){(function(r){var s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var u=r.languages.markup;u&&(u.tag.addInlined("style","css"),u.tag.addAttribute("style","css"))})(n)}var rj=E1;E1.displayName="clike",E1.aliases=[];function E1(n){n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var aj=_1;_1.displayName="javascript",_1.aliases=["js"];function _1(n){n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript}var Cg=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Ic=="object"?Ic:{},ij=wj();Cg.Prism={manual:!0,disableWorkerMessageHandler:!0};var oj=bM,sj=BM,HE=ej,lj=tj,uj=nj,cj=rj,dj=aj;ij();var T1={}.hasOwnProperty;function qE(){}qE.prototype=HE;var aa=new qE,pj=aa;aa.highlight=hj,aa.register=xg,aa.alias=fj,aa.registered=mj,aa.listLanguages=gj,xg(lj),xg(uj),xg(cj),xg(dj),aa.util.encode=bj,aa.Token.stringify=vj;function xg(n){if(typeof n!="function"||!n.displayName)throw new Error("Expected `function` for `grammar`, got `"+n+"`");aa.languages[n.displayName]===void 0&&n(aa)}function fj(n,r){var s=aa.languages,u=n,f,g,v,D;r&&(u={},u[n]=r);for(f in u)for(g=u[f],g=typeof g=="string"?[g]:g,v=g.length,D=-1;++D<v;)s[g[D]]=s[f]}function hj(n,r){var s=HE.highlight,u;if(typeof n!="string")throw new Error("Expected `string` for `value`, got `"+n+"`");if(aa.util.type(r)==="Object")u=r,r=null;else{if(typeof r!="string")throw new Error("Expected `string` for `name`, got `"+r+"`");if(T1.call(aa.languages,r))u=aa.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return s.call(this,n,u,r)}function mj(n){if(typeof n!="string")throw new Error("Expected `string` for `language`, got `"+n+"`");return T1.call(aa.languages,n)}function gj(){var n=aa.languages,r=[],s;for(s in n)T1.call(n,s)&&typeof n[s]=="object"&&r.push(s);return r}function vj(n,r,s){var u;return typeof n=="string"?{type:"text",value:n}:aa.util.type(n)==="Array"?yj(n,r):(u={type:n.type,content:aa.Token.stringify(n.content,r,s),tag:"span",classes:["token",n.type],attributes:{},language:r,parent:s},n.alias&&(u.classes=u.classes.concat(n.alias)),aa.hooks.run("wrap",u),oj(u.tag+"."+u.classes.join("."),kj(u.attributes),u.content))}function yj(n,r){for(var s=[],u=n.length,f=-1,g;++f<u;)g=n[f],g!==""&&g!==null&&g!==void 0&&s.push(g);for(f=-1,u=s.length;++f<u;)g=s[f],s[f]=aa.Token.stringify(g,r,s);return s}function bj(n){return n}function kj(n){var r;for(r in n)n[r]=sj(n[r]);return n}function wj(){var n="Prism"in Cg,r=n?Cg.Prism:void 0;return s;function s(){n?Cg.Prism=r:delete Cg.Prism,n=void 0,r=void 0}}const F1=cy(pj);var Eg=tI(F1,{});Eg.registerLanguage=function(n,r){return F1.register(r)},Eg.alias=function(n,r){return F1.alias(n,r)};const WE={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var Dj=A1;A1.displayName="jsx",A1.aliases=[];function A1(n){(function(r){var s=r.util.clone(r.languages.javascript),u=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,f=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,g=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function v(_,P){return _=_.replace(/<S>/g,function(){return u}).replace(/<BRACES>/g,function(){return f}).replace(/<SPREAD>/g,function(){return g}),RegExp(_,P)}g=v(g).source,r.languages.jsx=r.languages.extend("markup",s),r.languages.jsx.tag.pattern=v(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=s.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:v(/<SPREAD>/.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:v(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);var D=function(_){return _?typeof _=="string"?_:typeof _.content=="string"?_.content:_.content.map(D).join(""):""},x=function(_){for(var P=[],$=0;$<_.length;$++){var L=_[$],B=!1;if(typeof L!="string"&&(L.type==="tag"&&L.content[0]&&L.content[0].type==="tag"?L.content[0].content[0].content==="</"?P.length>0&&P[P.length-1].tagName===D(L.content[0].content[1])&&P.pop():L.content[L.content.length-1].content==="/>"||P.push({tagName:D(L.content[0].content[1]),openedBraces:0}):P.length>0&&L.type==="punctuation"&&L.content==="{"?P[P.length-1].openedBraces++:P.length>0&&P[P.length-1].openedBraces>0&&L.type==="punctuation"&&L.content==="}"?P[P.length-1].openedBraces--:B=!0),(B||typeof L=="string")&&P.length>0&&P[P.length-1].openedBraces===0){var j=D(L);$<_.length-1&&(typeof _[$+1]=="string"||_[$+1].type==="plain-text")&&(j+=D(_[$+1]),_.splice($+1,1)),$>0&&(typeof _[$-1]=="string"||_[$-1].type==="plain-text")&&(j=D(_[$-1])+j,_.splice($-1,1),$--),_[$]=new r.Token("plain-text",j,null,j)}L.content&&typeof L.content!="string"&&x(L.content)}};r.hooks.add("after-tokenize",function(_){_.language!=="jsx"&&_.language!=="tsx"||x(_.tokens)})})(n)}const Sj=cy(Dj),Cj=uo({tagName:"pkt-tag",elementClass:qs,react:ze,displayName:"PktTag",events:{onClose:"close"}}),gh=ze.forwardRef(({children:n,...r},s)=>O.jsx(Cj,{ref:s,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));gh.displayName="PktTag";const VE=ze.forwardRef(({arrowNav:n=!0,tabs:r,onTabSelected:s},u)=>{const f=ze.useRef([]);ze.useEffect(()=>{f.current=f.current.slice(0,r.length)},[r]);const g=(D,x)=>{x.action&&x.action(D),s&&s(D)},v=(D,x)=>{var _,P;n&&(x.code==="ArrowLeft"&&D!==0&&((_=f.current[D-1])==null||_.focus()),x.code==="ArrowRight"&&D<r.length-1&&((P=f.current[D+1])==null||P.focus()),(x.code==="ArrowDown"||x.code==="Space")&&g(D,r[D]))};return O.jsx("div",{className:"pkt-tabs",ref:u,children:O.jsx("div",{className:"pkt-tabs__list",role:n?"tablist":"navigation",children:r.map((D,x)=>O.jsx(ze.Fragment,{children:D.href?O.jsxs("a",{"aria-selected":!!D.active,role:n?"tab":void 0,href:D.href,"aria-controls":D.controls,className:`pkt-tabs__link ${D.active?"active":""}`,onKeyUp:_=>v(x,_),onClick:()=>g(x,D),tabIndex:D.active||!n?void 0:-1,ref:_=>{f.current[x]=_},children:[D.icon&&O.jsx(Ln,{name:D.icon,className:"pkt-icon--small"}),D.text,D.tag&&O.jsx(gh,{skin:D.tag.skin,size:"small",children:D.tag.text})]}):O.jsxs("button",{"aria-selected":!!D.active,role:n?"tab":void 0,type:"button","aria-controls":D.controls,className:`pkt-tabs__button pkt-link-button ${D.active?"active":""}`,onKeyUp:_=>v(x,_),onClick:()=>g(x,D),tabIndex:D.active||!n?void 0:-1,ref:_=>{f.current[x]=_},children:[D.icon&&O.jsx(Ln,{name:D.icon,className:"pkt-icon--small"}),D.text,D.tag&&O.jsx(gh,{skin:D.tag.skin,size:"small",children:D.tag.text})]},"b-"+x)},x))})})}),Ky=uo({tagName:"pkt-textinput",elementClass:is,react:ze,displayName:"PktTextinput",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),Qy=({className:n,compact:r=!1,skin:s="basic",responsiveView:u=!0,children:f})=>O.jsx("table",{"data-testid":"pkt-table",className:os(n,"pkt-table",{"pkt-table--responsive":u,"pkt-table--compact":r,"pkt-table--basic":s==="basic","pkt-table--zebra-blue":s==="zebra-blue"}),role:"table",children:f}),Zy=({className:n,children:r})=>O.jsx("thead",{className:os(n,"pkt-table__header",{}),role:"rowgroup",children:r}),Xy=({children:n,className:r})=>O.jsx("tbody",{className:os(r,"pkt-table__body",{}),role:"rowgroup",children:n}),Np=({className:n,children:r})=>O.jsx("tr",{className:os(n,"pkt-table__row",{}),role:"row",children:r}),Ws=({className:n,children:r})=>O.jsx("th",{className:os(n,"pkt-table__header-cell",{}),role:"columnheader",children:r}),zo=({children:n,className:r,dataLabel:s})=>O.jsx("td",{className:os(r,"pkt-table__data-cell",{}),"data-label":s,role:"cell","data-testid":"pkt-table__data-cell",children:n}),xj=({specs:n})=>{const r=u=>Array.isArray(u)?u.join(`
1104
1104
  `):u,s=u=>typeof u=="boolean"?u?"true":"false":u;return O.jsxs(O.Fragment,{children:[O.jsx("h2",{children:"Egenskaper"}),O.jsxs(Qy,{compact:!0,children:[O.jsx(Zy,{children:O.jsxs(Np,{children:[O.jsx(Ws,{children:"Prop"}),O.jsx(Ws,{children:"Navn"}),O.jsx(Ws,{children:"Beskrivelse"}),O.jsx(Ws,{children:"Type"}),O.jsx(Ws,{children:"Standardverdi"})]})}),O.jsx(Xy,{children:Object.entries(n.props||{}).map(([u,f])=>O.jsxs(Np,{children:[O.jsx(zo,{dataLabel:"Prop",children:O.jsx("pre",{children:u})}),O.jsx(zo,{dataLabel:"Navn",children:!Array.isArray(f)&&f.name||u}),Array.isArray(f)?O.jsxs(O.Fragment,{children:[O.jsx(zo,{dataLabel:"Beskrivelse"}),O.jsx(zo,{dataLabel:"Type",children:O.jsx("pre",{children:f.join(`
1105
- `)})})]}):O.jsxs(O.Fragment,{children:[O.jsx(zo,{dataLabel:"Beskrivelse",children:O.jsx("span",{dangerouslySetInnerHTML:{__html:f.description||""}})}),O.jsx(zo,{dataLabel:"Type",children:O.jsx("pre",{children:f.type&&r(f.type)})}),O.jsx(zo,{dataLabel:"Standardverdi",children:O.jsx("pre",{children:s(f.default)})})]})]},u))})]}),n.events&&O.jsxs(O.Fragment,{children:[O.jsx("h2",{children:"Hendelser / handlinger"}),O.jsxs(Qy,{compact:!0,children:[O.jsx(Zy,{children:O.jsxs(Np,{children:[O.jsx(Ws,{children:"Event"}),O.jsx(Ws,{children:"Beskrivelse"}),O.jsx(Ws,{children:"Type"})]})}),O.jsx(Xy,{children:Object.entries(n.events||{}).map(([u,f])=>O.jsxs(Np,{children:[O.jsx(zo,{dataLabel:"Event",children:O.jsx("pre",{children:u})}),O.jsx(zo,{dataLabel:"Beskrivelse",children:O.jsx("span",{dangerouslySetInnerHTML:{__html:f.description||""}})}),O.jsx(zo,{dataLabel:"Type",children:f.type})]},u))})]})]}),n.slots&&O.jsxs(O.Fragment,{children:[O.jsx("h2",{children:"Innhold"}),O.jsxs(Qy,{compact:!0,children:[O.jsx(Zy,{children:O.jsxs(Np,{children:[O.jsx(Ws,{children:"Slot"}),O.jsx(Ws,{children:"Beskrivelse"})]})}),O.jsx(Xy,{children:Object.entries(n.slots||{}).map(([u,f])=>O.jsxs(Np,{children:[O.jsx(zo,{dataLabel:"Slot",children:O.jsx("pre",{children:u})}),O.jsx(zo,{dataLabel:"Beskrivelse",children:O.jsx("span",{dangerouslySetInnerHTML:{__html:f.description||""}})})]},u))})]})]})]})},N1=uo({tagName:"pkt-select",elementClass:nh,react:ze,displayName:"PktSelect",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),Ej=[{id:"24h",fn:"24h.svg",cat:"services"},{id:"active-person",fn:"active-person.svg",cat:"people-and-health"},{id:"adjust",fn:"adjust.svg",cat:"ui"},{id:"alert-circle",fn:"alert-circle.svg",cat:"ui"},{id:"alert-error",fn:"alert-error.svg",cat:"ui"},{id:"alert-information",fn:"alert-information.svg",cat:"ui"},{id:"alert-success",fn:"alert-success.svg",cat:"ui"},{id:"alert-warning",fn:"alert-warning.svg",cat:"ui"},{id:"apple",fn:"apple.svg",cat:"ui"},{id:"archive",fn:"archive.svg",cat:"ui"},{id:"arrow-circle",fn:"arrow-circle.svg",cat:"ui"},{id:"arrow",fn:"arrow.svg",cat:"arrows"},{id:"attachment",fn:"attachment.svg",cat:"ui"},{id:"backpack",fn:"backpack.svg",cat:"services"},{id:"balloons",fn:"balloons.svg",cat:"ui"},{id:"books",fn:"books.svg",cat:"services"},{id:"wardrobe-boys",fn:"wardrobe-boys.svg",cat:"sign"},{id:"brain-heart",fn:"brain-heart.svg",cat:"people-and-health"},{id:"brain-signal",fn:"brain-signal.svg",cat:"people-and-health"},{id:"briefcase",fn:"briefcase.svg",cat:"sign"},{id:"bullseye",fn:"bullseye.svg",cat:"ui"},{id:"bus",fn:"bus.svg",cat:"services"},{id:"cafe",fn:"cafe.svg",cat:"sign"},{id:"calendar",fn:"calendar.svg",cat:"ui"},{id:"camera",fn:"camera.svg",cat:"ui"},{id:"car",fn:"car.svg",cat:"sign"},{id:"character-exclamation-mark",fn:"character-exclamation-mark.svg",cat:"ui"},{id:"character-information",fn:"character-information.svg",cat:"ui"},{id:"care-room",fn:"care-room.svg",cat:"sign"},{id:"check-big",fn:"check-big.svg",cat:"ui"},{id:"check-circle",fn:"check-circle.svg",cat:"ui"},{id:"check-medium",fn:"check-medium.svg",cat:"ui"},{id:"check",fn:"check.svg",cat:"ui"},{id:"chevron-down",fn:"chevron-down.svg",cat:"arrows"},{id:"chevron-left",fn:"chevron-left.svg",cat:"arrows"},{id:"chevron-right",fn:"chevron-right.svg",cat:"arrows"},{id:"chevron-thin-down",fn:"chevron-thin-down.svg",cat:"arrows"},{id:"chevron-thin-left",fn:"chevron-thin-left.svg",cat:"arrows"},{id:"chevron-thin-right",fn:"chevron-thin-right.svg",cat:"arrows"},{id:"chevron-thin-up",fn:"chevron-thin-up.svg",cat:"arrows"},{id:"chevron-up-and-down",fn:"chevron-up-and-down.svg",cat:"ui"},{id:"chevron-up",fn:"chevron-up.svg",cat:"arrows"},{id:"clock",fn:"clock.svg",cat:"ui"},{id:"close",fn:"close.svg",cat:"ui"},{id:"cloud",fn:"cloud.svg",cat:"ui"},{id:"code",fn:"code.svg",cat:"ui"},{id:"coffee",fn:"coffee.svg",cat:"sign"},{id:"cogwheel",fn:"cogwheel.svg",cat:"ui"},{id:"coin-stacks",fn:"coin-stacks.svg",cat:"services"},{id:"computer",fn:"computer.svg",cat:"ui"},{id:"copy",fn:"copy.svg",cat:"ui"},{id:"crane",fn:"crane.svg",cat:"services"},{id:"cross-circle-big",fn:"cross-circle-big.svg",cat:"ui"},{id:"cross-circle-fill",fn:"cross-circle-fill.svg",cat:"ui"},{id:"cross-circle",fn:"cross-circle.svg",cat:"ui"},{id:"cross",fn:"cross.svg",cat:"ui"},{id:"data",fn:"data.svg",cat:"ui"},{id:"defibrillators",fn:"defibrillators.svg",cat:"sign"},{id:"district",fn:"district.svg",cat:"ui"},{id:"document-code",fn:"document-code.svg",cat:"ui"},{id:"document-pdf",fn:"document-pdf.svg",cat:"ui"},{id:"document-plain",fn:"document-plain.svg",cat:"ui"},{id:"document-table",fn:"document-table.svg",cat:"ui"},{id:"document-text",fn:"document-text.svg",cat:"ui"},{id:"download",fn:"download.svg",cat:"ui"},{id:"drag",fn:"drag.svg",cat:"ui"},{id:"drinking-area-refreshments",fn:"drinking-area-refreshments.svg",cat:"sign"},{id:"ecg-heart",fn:"ecg-heart.svg",cat:"people-and-health"},{id:"edit",fn:"edit.svg",cat:"ui"},{id:"email",fn:"email.svg",cat:"ui"},{id:"exclamation-mark-circle",fn:"exclamation-mark-circle.svg",cat:"ui"},{id:"exclamation-mark-square",fn:"exclamation-mark-square.svg",cat:"ui"},{id:"exit",fn:"exit.svg",cat:"ui"},{id:"expand",fn:"expand.svg",cat:"ui"},{id:"eye",fn:"eye.svg",cat:"ui"},{id:"face-almost-happy",fn:"face-almost-happy.svg",cat:"feedback"},{id:"face-almost-sad",fn:"face-almost-sad.svg",cat:"feedback"},{id:"face-happy",fn:"face-happy.svg",cat:"feedback"},{id:"face-neutral",fn:"face-neutral.svg",cat:"feedback"},{id:"face-sad",fn:"face-sad.svg",cat:"feedback"},{id:"facebook",fn:"facebook.svg",cat:"social"},{id:"factory-fill",fn:"factory-fill.svg",cat:"ui"},{id:"feedback",fn:"feedback.svg",cat:"ui"},{id:"figma",fn:"figma.svg",cat:"social"},{id:"filter",fn:"filter.svg",cat:"ui"},{id:"fire-emblem",fn:"fire-emblem.svg",cat:"services"},{id:"fire-safety",fn:"fire-safety.svg",cat:"people-and-health"},{id:"folder",fn:"folder.svg",cat:"ui"},{id:"game-console",fn:"game-console.svg",cat:"ui"},{id:"github",fn:"github.svg",cat:"social"},{id:"graph",fn:"graph.svg",cat:"ui"},{id:"grid",fn:"grid.svg",cat:"ui"},{id:"hands-globe",fn:"hands-globe.svg",cat:"people-and-health"},{id:"headset",fn:"headset.svg",cat:"ui"},{id:"heart-hand",fn:"heart-hand.svg",cat:"people-and-health"},{id:"heart-plus",fn:"heart-plus.svg",cat:"services"},{id:"heart",fn:"heart.svg",cat:"ui"},{id:"holding-hands",fn:"holding-hands.svg",cat:"people-and-health"},{id:"home",fn:"home.svg",cat:"ui"},{id:"horizontal-menu",fn:"horizontal-menu.svg",cat:"ui"},{id:"house-heart",fn:"house-heart.svg",cat:"services"},{id:"information",fn:"information.svg",cat:"ui"},{id:"instagram",fn:"instagram.svg",cat:"social"},{id:"invoice",fn:"invoice.svg",cat:"ui"},{id:"key",fn:"key.svg",cat:"ui"},{id:"language",fn:"language.svg",cat:"ui"},{id:"law-paragraph",fn:"law-paragraph.svg",cat:"ui"},{id:"lecture-workplace",fn:"lecture-workplace.svg",cat:"people-and-health"},{id:"link",fn:"link.svg",cat:"ui"},{id:"linkedin",fn:"linkedin.svg",cat:"social"},{id:"list",fn:"list.svg",cat:"ui"},{id:"location-pin-filled",fn:"location-pin-filled.svg",cat:"ui"},{id:"location-pin",fn:"location-pin.svg",cat:"ui"},{id:"lock-locked",fn:"lock-locked.svg",cat:"ui"},{id:"lock-unlocked",fn:"lock-unlocked.svg",cat:"ui"},{id:"magnifying-glass-big",fn:"magnifying-glass-big.svg",cat:"ui"},{id:"magnifying-glass-small",fn:"magnifying-glass-small.svg",cat:"ui"},{id:"map",fn:"map.svg",cat:"ui"},{id:"menu",fn:"menu.svg",cat:"ui"},{id:"message",fn:"message.svg",cat:"ui"},{id:"minimize",fn:"minimize.svg",cat:"ui"},{id:"minus-circle-fill",fn:"minus-circle-fill.svg",cat:"plusminus"},{id:"minus-circle",fn:"minus-circle.svg",cat:"plusminus"},{id:"minus-sign",fn:"minus-sign.svg",cat:"plusminus"},{id:"mobile-phone",fn:"mobile-phone.svg",cat:"ui"},{id:"music-notes",fn:"music-notes.svg",cat:"ui"},{id:"new-window-small",fn:"new-window-small.svg",cat:"ui"},{id:"new-window",fn:"new-window.svg",cat:"ui"},{id:"nodejs",fn:"nodejs.svg",cat:"social"},{id:"obstacle",fn:"obstacle.svg",cat:"ui"},{id:"organization",fn:"organization.svg",cat:"ui"},{id:"paint-bucket",fn:"paint-bucket.svg",cat:"ui"},{id:"palette",fn:"palette.svg",cat:"ui"},{id:"paste",fn:"paste.svg",cat:"ui"},{id:"park",fn:"park.svg",cat:"services"},{id:"partner-workout",fn:"partner-workout.svg",cat:"people-and-health"},{id:"picture",fn:"picture.svg",cat:"ui"},{id:"placeholder-icon",fn:"placeholder-icon.svg",cat:"ui"},{id:"plus-circle-fill",fn:"plus-circle-fill.svg",cat:"plusminus"},{id:"plus-circle",fn:"plus-circle.svg",cat:"plusminus"},{id:"plus-sign",fn:"plus-sign.svg",cat:"plusminus"},{id:"pride-heart",fn:"pride-heart.svg",cat:"people-and-health"},{id:"print",fn:"print.svg",cat:"ui"},{id:"privacy",fn:"privacy.svg",cat:"ui"},{id:"punkt-circle-blue",fn:"punkt-circle-blue.svg",cat:"social"},{id:"qr-code",fn:"qr-code.svg",cat:"ui"},{id:"question",fn:"question.svg",cat:"ui"},{id:"react",fn:"react.svg",cat:"social"},{id:"receipt",fn:"receipt.svg",cat:"ui"},{id:"recycling",fn:"recycling.svg",cat:"services"},{id:"restaurant",fn:"restaurant.svg",cat:"sign"},{id:"ruler",fn:"ruler.svg",cat:"ui"},{id:"sass",fn:"sass.svg",cat:"social"},{id:"save",fn:"save.svg",cat:"ui"},{id:"scooter",fn:"scooter.svg",cat:"ui"},{id:"share-outline",fn:"share-outline.svg",cat:"ui"},{id:"share",fn:"share.svg",cat:"ui"},{id:"slack",fn:"slack.svg",cat:"social"},{id:"smiley-neutral",fn:"smiley-neutral.svg",cat:"feedback"},{id:"smiley-sad",fn:"smiley-sad.svg",cat:"feedback"},{id:"smiley-smile",fn:"smiley-smile.svg",cat:"feedback"},{id:"sort",fn:"sort.svg",cat:"ui"},{id:"sound-off",fn:"sound-off.svg",cat:"ui"},{id:"sound-on",fn:"sound-on.svg",cat:"ui"},{id:"sparkles",fn:"sparkles.svg",cat:"ui"},{id:"svg",fn:"svg.svg",cat:"social"},{id:"swingset",fn:"swingset.svg",cat:"services"},{id:"table",fn:"table.svg",cat:"ui"},{id:"target",fn:"target.svg",cat:"ui"},{id:"tickets",fn:"tickets.svg",cat:"sign"},{id:"thumbs-down",fn:"thumbs-down.svg",cat:"feedback"},{id:"thumbs-up",fn:"thumbs-up.svg",cat:"feedback"},{id:"trash-can",fn:"trash-can.svg",cat:"ui"},{id:"trail",fn:"trail.svg",cat:"sign"},{id:"twitter",fn:"twitter.svg",cat:"social"},{id:"two-people-dancing",fn:"two-people-dancing.svg",cat:"people-and-health"},{id:"two-people-talking",fn:"two-people-talking.svg",cat:"people-and-health"},{id:"user",fn:"user.svg",cat:"ui"},{id:"vertical-menu",fn:"vertical-menu.svg",cat:"ui"},{id:"vue",fn:"vue.svg",cat:"social"},{id:"wardrobe",fn:"wardrobe.svg",cat:"sign"},{id:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wheelchair",fn:"wheelchair.svg",cat:"sign"},{id:"wine-bottle",fn:"wine-bottle.svg",cat:"people-and-health"},{id:"wifi",fn:"wifi.svg",cat:"sign"},{id:"workplace",fn:"workplace.svg",cat:"social"},{id:"wrench",fn:"wrench.svg",cat:"ui"}],YE=({propKey:n,spec:r,props:s,handleChange:u})=>{const f={BOOLEAN:"boolean",ICON:"icon",ARRAY:"array",OBJECT:"object",DATE:"ISOdatestring",NUMBER:"number",STRING:"string"},g=(v,D)=>{u(n,{...s[n],[v]:D})};if(r.type===f.BOOLEAN)return O.jsx(cC,{label:r.name||n,forId:n,helptext:r.description||null,hasFieldset:!0,requiredTag:r.required,children:O.jsx(Ey,{id:n,label:n,type:"checkbox",checked:s[n]||!1,onChange:v=>u(n,v.target.checked,r.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(r.type===f.ICON)return O.jsxs(N1,{label:r.name||n,helptext:r.description||null,id:n,value:s[n]||"",onChange:v=>u(n,v.target.value),requiredTag:r.required,children:[O.jsx("option",{value:""}),Ej.map(v=>O.jsx("option",{value:v.id,children:v.id},v.id))]});if(r.type===f.DATE)return O.jsx(lC,{id:n,label:r.name||n,helptext:r.description||null,value:s[n]||"",multiple:r.variant==="multiple",maxlength:999,onChange:v=>u(n,v.target.value),requiredTag:r.required});if(Array.isArray(r)||Array.isArray(r.type)||Array.isArray(r.values)){const v=Array.isArray(r)?r:r.values||r.type;return O.jsxs(N1,{label:r.name||n,helptext:r.description||null,id:n,value:s[n],onChange:D=>u(n,D.target.value),requiredTag:r.required,children:[O.jsx("option",{value:""}),v.map(D=>O.jsx("option",{value:D,children:D},D))]})}return r.type===f.NUMBER?O.jsx(Ky,{id:n,label:r.name||n,helptext:r.description||null,type:"number",value:s[n]||"",onChange:v=>u(n,parseFloat(v.currentTarget.value)),requiredTag:r.required}):r.type===f.OBJECT?(s[n]||(s[n]={}),O.jsxs("fieldset",{children:[O.jsx("legend",{children:r.name||n}),r.description&&O.jsx("p",{children:r.description}),Object.entries(r.properties).map(([v,D])=>O.jsx(YE,{propKey:v,props:s[n],spec:D,handleChange:(x,_)=>g(x,_)},v))]})):O.jsx(Ky,{id:n,label:r.name||n,helptext:r.description||null,type:"text",value:s[n]||"",onChange:v=>u(n,r.type==="number"?parseFloat(v.currentTarget.value):v.currentTarget.value),requiredTag:r.required})};Eg.registerLanguage("jsx",Sj);const GE=({specs:n,children:r,fullWidth:s})=>{var Ke,Ne;const u=n.props&&typeof n.props=="object"&&!Array.isArray(n.props)?Object.entries(n.props).reduce((Se,[He,Ze])=>(typeof Ze=="object"&&!Array.isArray(Ze)&&Ze.default!==void 0&&Ze.default!==null&&(Ze.default==="false"&&(Ze.default=!1),Ze.default==="true"&&(Ze.default=!0),Se[He]=Ze.default),Se),{}):{},[f,g]=ze.useState(0),[v,D]=ze.useState(u),[x,_]=ze.useState("light"),[P,$]=ze.useState(""),[L,B]=ze.useState(""),[j,V]=ze.useState(""),[q,ge]=ze.useState("Rediger innhold"),[Q,Y]=ze.useState([{text:"Rediger",icon:"adjust",active:!0},{text:"Kode (React)",icon:"react",active:!1},{text:`Kode (${n.isElement?"Element":"HTML"})`,icon:"code",active:!1},{text:"Egenskaper",icon:"list",active:!1}]),te=Se=>{Se===1&&oe(),Se===2&&re(),V(""),Y(He=>He.map((Ze,qe)=>({...Ze,active:qe===Se})))},U=ze.useRef(null),re=async()=>{if(n.isElement&&ze.isValidElement(Ue))oe().then(()=>{const Se=ze.isValidElement(Ue)?Ue.type.displayName||Ue.type.name:n.name;$(`<!-- Denne koden bør testes grundig før bruk. Spør en Punkt-utvikler om du er usikker. -->
1105
+ `)})})]}):O.jsxs(O.Fragment,{children:[O.jsx(zo,{dataLabel:"Beskrivelse",children:O.jsx("span",{dangerouslySetInnerHTML:{__html:f.description||""}})}),O.jsx(zo,{dataLabel:"Type",children:O.jsx("pre",{children:f.type&&r(f.type)})}),O.jsx(zo,{dataLabel:"Standardverdi",children:O.jsx("pre",{children:s(f.default)})})]})]},u))})]}),n.events&&O.jsxs(O.Fragment,{children:[O.jsx("h2",{children:"Hendelser / handlinger"}),O.jsxs(Qy,{compact:!0,children:[O.jsx(Zy,{children:O.jsxs(Np,{children:[O.jsx(Ws,{children:"Event"}),O.jsx(Ws,{children:"Beskrivelse"}),O.jsx(Ws,{children:"Type"})]})}),O.jsx(Xy,{children:Object.entries(n.events||{}).map(([u,f])=>O.jsxs(Np,{children:[O.jsx(zo,{dataLabel:"Event",children:O.jsx("pre",{children:u})}),O.jsx(zo,{dataLabel:"Beskrivelse",children:O.jsx("span",{dangerouslySetInnerHTML:{__html:f.description||""}})}),O.jsx(zo,{dataLabel:"Type",children:f.type})]},u))})]})]}),n.slots&&O.jsxs(O.Fragment,{children:[O.jsx("h2",{children:"Innhold"}),O.jsxs(Qy,{compact:!0,children:[O.jsx(Zy,{children:O.jsxs(Np,{children:[O.jsx(Ws,{children:"Slot"}),O.jsx(Ws,{children:"Beskrivelse"})]})}),O.jsx(Xy,{children:Object.entries(n.slots||{}).map(([u,f])=>O.jsxs(Np,{children:[O.jsx(zo,{dataLabel:"Slot",children:O.jsx("pre",{children:u})}),O.jsx(zo,{dataLabel:"Beskrivelse",children:O.jsx("span",{dangerouslySetInnerHTML:{__html:f.description||""}})})]},u))})]})]})]})},N1=uo({tagName:"pkt-select",elementClass:nh,react:ze,displayName:"PktSelect",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),Ej=[{id:"24h",fn:"24h.svg",cat:"services"},{id:"active-person",fn:"active-person.svg",cat:"people-and-health"},{id:"adjust",fn:"adjust.svg",cat:"ui"},{id:"advice",fn:"advice.svg",cat:"ui"},{id:"alert-circle",fn:"alert-circle.svg",cat:"ui"},{id:"alert-error",fn:"alert-error.svg",cat:"ui"},{id:"alert-information",fn:"alert-information.svg",cat:"ui"},{id:"alert-success",fn:"alert-success.svg",cat:"ui"},{id:"alert-warning",fn:"alert-warning.svg",cat:"ui"},{id:"apple",fn:"apple.svg",cat:"ui"},{id:"archive",fn:"archive.svg",cat:"ui"},{id:"arrow-circle",fn:"arrow-circle.svg",cat:"ui"},{id:"arrow",fn:"arrow.svg",cat:"arrows"},{id:"attachment",fn:"attachment.svg",cat:"ui"},{id:"backpack",fn:"backpack.svg",cat:"services"},{id:"balloons",fn:"balloons.svg",cat:"ui"},{id:"books",fn:"books.svg",cat:"services"},{id:"wardrobe-boys",fn:"wardrobe-boys.svg",cat:"sign"},{id:"brain-heart",fn:"brain-heart.svg",cat:"people-and-health"},{id:"brain-signal",fn:"brain-signal.svg",cat:"people-and-health"},{id:"briefcase",fn:"briefcase.svg",cat:"sign"},{id:"bullseye",fn:"bullseye.svg",cat:"ui"},{id:"bus",fn:"bus.svg",cat:"services"},{id:"cafe",fn:"cafe.svg",cat:"sign"},{id:"calendar",fn:"calendar.svg",cat:"ui"},{id:"camera",fn:"camera.svg",cat:"ui"},{id:"car",fn:"car.svg",cat:"sign"},{id:"character-exclamation-mark",fn:"character-exclamation-mark.svg",cat:"ui"},{id:"character-information",fn:"character-information.svg",cat:"ui"},{id:"care-room",fn:"care-room.svg",cat:"sign"},{id:"check-big",fn:"check-big.svg",cat:"ui"},{id:"check-circle",fn:"check-circle.svg",cat:"ui"},{id:"check-medium",fn:"check-medium.svg",cat:"ui"},{id:"check",fn:"check.svg",cat:"ui"},{id:"chevron-down",fn:"chevron-down.svg",cat:"arrows"},{id:"chevron-left",fn:"chevron-left.svg",cat:"arrows"},{id:"chevron-right",fn:"chevron-right.svg",cat:"arrows"},{id:"chevron-thin-down",fn:"chevron-thin-down.svg",cat:"arrows"},{id:"chevron-thin-left",fn:"chevron-thin-left.svg",cat:"arrows"},{id:"chevron-thin-right",fn:"chevron-thin-right.svg",cat:"arrows"},{id:"chevron-thin-up",fn:"chevron-thin-up.svg",cat:"arrows"},{id:"chevron-up-and-down",fn:"chevron-up-and-down.svg",cat:"ui"},{id:"chevron-up",fn:"chevron-up.svg",cat:"arrows"},{id:"clock",fn:"clock.svg",cat:"ui"},{id:"close",fn:"close.svg",cat:"ui"},{id:"cloud",fn:"cloud.svg",cat:"ui"},{id:"code",fn:"code.svg",cat:"ui"},{id:"coffee",fn:"coffee.svg",cat:"sign"},{id:"cogwheel",fn:"cogwheel.svg",cat:"ui"},{id:"coin-stacks",fn:"coin-stacks.svg",cat:"services"},{id:"computer",fn:"computer.svg",cat:"ui"},{id:"copy",fn:"copy.svg",cat:"ui"},{id:"crane",fn:"crane.svg",cat:"services"},{id:"cross-circle-big",fn:"cross-circle-big.svg",cat:"ui"},{id:"cross-circle-fill",fn:"cross-circle-fill.svg",cat:"ui"},{id:"cross-circle",fn:"cross-circle.svg",cat:"ui"},{id:"cross",fn:"cross.svg",cat:"ui"},{id:"data",fn:"data.svg",cat:"ui"},{id:"defibrillators",fn:"defibrillators.svg",cat:"sign"},{id:"district",fn:"district.svg",cat:"ui"},{id:"document-code",fn:"document-code.svg",cat:"ui"},{id:"document-pdf",fn:"document-pdf.svg",cat:"ui"},{id:"document-plain",fn:"document-plain.svg",cat:"ui"},{id:"document-table",fn:"document-table.svg",cat:"ui"},{id:"document-text",fn:"document-text.svg",cat:"ui"},{id:"download",fn:"download.svg",cat:"ui"},{id:"drag",fn:"drag.svg",cat:"ui"},{id:"drinking-area-refreshments",fn:"drinking-area-refreshments.svg",cat:"sign"},{id:"ecg-heart",fn:"ecg-heart.svg",cat:"people-and-health"},{id:"edit",fn:"edit.svg",cat:"ui"},{id:"email",fn:"email.svg",cat:"ui"},{id:"exclamation-mark-circle",fn:"exclamation-mark-circle.svg",cat:"ui"},{id:"exclamation-mark-square",fn:"exclamation-mark-square.svg",cat:"ui"},{id:"exit",fn:"exit.svg",cat:"ui"},{id:"expand",fn:"expand.svg",cat:"ui"},{id:"eye",fn:"eye.svg",cat:"ui"},{id:"face-almost-happy",fn:"face-almost-happy.svg",cat:"feedback"},{id:"face-almost-sad",fn:"face-almost-sad.svg",cat:"feedback"},{id:"face-happy",fn:"face-happy.svg",cat:"feedback"},{id:"face-neutral",fn:"face-neutral.svg",cat:"feedback"},{id:"face-sad",fn:"face-sad.svg",cat:"feedback"},{id:"facebook",fn:"facebook.svg",cat:"social"},{id:"factory-fill",fn:"factory-fill.svg",cat:"ui"},{id:"feedback",fn:"feedback.svg",cat:"ui"},{id:"figma",fn:"figma.svg",cat:"social"},{id:"filter",fn:"filter.svg",cat:"ui"},{id:"fire-emblem",fn:"fire-emblem.svg",cat:"services"},{id:"fire-safety",fn:"fire-safety.svg",cat:"people-and-health"},{id:"folder",fn:"folder.svg",cat:"ui"},{id:"game-console",fn:"game-console.svg",cat:"ui"},{id:"github",fn:"github.svg",cat:"social"},{id:"graph",fn:"graph.svg",cat:"ui"},{id:"grid",fn:"grid.svg",cat:"ui"},{id:"hands-globe",fn:"hands-globe.svg",cat:"people-and-health"},{id:"headset",fn:"headset.svg",cat:"ui"},{id:"heart-hand",fn:"heart-hand.svg",cat:"people-and-health"},{id:"heart-plus",fn:"heart-plus.svg",cat:"services"},{id:"heart",fn:"heart.svg",cat:"ui"},{id:"holding-hands",fn:"holding-hands.svg",cat:"people-and-health"},{id:"home",fn:"home.svg",cat:"ui"},{id:"horizontal-menu",fn:"horizontal-menu.svg",cat:"ui"},{id:"house-heart",fn:"house-heart.svg",cat:"services"},{id:"information",fn:"information.svg",cat:"ui"},{id:"instagram",fn:"instagram.svg",cat:"social"},{id:"invoice",fn:"invoice.svg",cat:"ui"},{id:"key",fn:"key.svg",cat:"ui"},{id:"language",fn:"language.svg",cat:"ui"},{id:"law-paragraph",fn:"law-paragraph.svg",cat:"ui"},{id:"lecture-workplace",fn:"lecture-workplace.svg",cat:"people-and-health"},{id:"link",fn:"link.svg",cat:"ui"},{id:"linkedin",fn:"linkedin.svg",cat:"social"},{id:"list",fn:"list.svg",cat:"ui"},{id:"location-pin-filled",fn:"location-pin-filled.svg",cat:"ui"},{id:"location-pin",fn:"location-pin.svg",cat:"ui"},{id:"lock-locked",fn:"lock-locked.svg",cat:"ui"},{id:"lock-unlocked",fn:"lock-unlocked.svg",cat:"ui"},{id:"magnifying-glass-big",fn:"magnifying-glass-big.svg",cat:"ui"},{id:"magnifying-glass-small",fn:"magnifying-glass-small.svg",cat:"ui"},{id:"map",fn:"map.svg",cat:"ui"},{id:"menu",fn:"menu.svg",cat:"ui"},{id:"message",fn:"message.svg",cat:"ui"},{id:"minimize",fn:"minimize.svg",cat:"ui"},{id:"minus-circle-fill",fn:"minus-circle-fill.svg",cat:"plusminus"},{id:"minus-circle",fn:"minus-circle.svg",cat:"plusminus"},{id:"minus-sign",fn:"minus-sign.svg",cat:"plusminus"},{id:"mobile-phone",fn:"mobile-phone.svg",cat:"ui"},{id:"music-notes",fn:"music-notes.svg",cat:"ui"},{id:"new-window-small",fn:"new-window-small.svg",cat:"ui"},{id:"new-window",fn:"new-window.svg",cat:"ui"},{id:"nodejs",fn:"nodejs.svg",cat:"social"},{id:"obstacle",fn:"obstacle.svg",cat:"ui"},{id:"organization",fn:"organization.svg",cat:"ui"},{id:"paint-bucket",fn:"paint-bucket.svg",cat:"ui"},{id:"palette",fn:"palette.svg",cat:"ui"},{id:"paste",fn:"paste.svg",cat:"ui"},{id:"park",fn:"park.svg",cat:"services"},{id:"partner-workout",fn:"partner-workout.svg",cat:"people-and-health"},{id:"picture",fn:"picture.svg",cat:"ui"},{id:"placeholder-icon",fn:"placeholder-icon.svg",cat:"ui"},{id:"plus-circle-fill",fn:"plus-circle-fill.svg",cat:"plusminus"},{id:"plus-circle",fn:"plus-circle.svg",cat:"plusminus"},{id:"plus-sign",fn:"plus-sign.svg",cat:"plusminus"},{id:"pride-heart",fn:"pride-heart.svg",cat:"people-and-health"},{id:"print",fn:"print.svg",cat:"ui"},{id:"privacy",fn:"privacy.svg",cat:"ui"},{id:"punkt-circle-blue",fn:"punkt-circle-blue.svg",cat:"social"},{id:"qr-code",fn:"qr-code.svg",cat:"ui"},{id:"question",fn:"question.svg",cat:"ui"},{id:"react",fn:"react.svg",cat:"social"},{id:"receipt",fn:"receipt.svg",cat:"ui"},{id:"recycling",fn:"recycling.svg",cat:"services"},{id:"restaurant",fn:"restaurant.svg",cat:"sign"},{id:"ruler",fn:"ruler.svg",cat:"ui"},{id:"sass",fn:"sass.svg",cat:"social"},{id:"save",fn:"save.svg",cat:"ui"},{id:"scooter",fn:"scooter.svg",cat:"ui"},{id:"share-outline",fn:"share-outline.svg",cat:"ui"},{id:"share",fn:"share.svg",cat:"ui"},{id:"slack",fn:"slack.svg",cat:"social"},{id:"smiley-neutral",fn:"smiley-neutral.svg",cat:"feedback"},{id:"smiley-sad",fn:"smiley-sad.svg",cat:"feedback"},{id:"smiley-smile",fn:"smiley-smile.svg",cat:"feedback"},{id:"sort",fn:"sort.svg",cat:"ui"},{id:"sound-off",fn:"sound-off.svg",cat:"ui"},{id:"sound-on",fn:"sound-on.svg",cat:"ui"},{id:"sparkles",fn:"sparkles.svg",cat:"ui"},{id:"svg",fn:"svg.svg",cat:"social"},{id:"swingset",fn:"swingset.svg",cat:"services"},{id:"table",fn:"table.svg",cat:"ui"},{id:"target",fn:"target.svg",cat:"ui"},{id:"tickets",fn:"tickets.svg",cat:"sign"},{id:"thumbs-down",fn:"thumbs-down.svg",cat:"feedback"},{id:"thumbs-up",fn:"thumbs-up.svg",cat:"feedback"},{id:"trash-can",fn:"trash-can.svg",cat:"ui"},{id:"trail",fn:"trail.svg",cat:"sign"},{id:"twitter",fn:"twitter.svg",cat:"social"},{id:"two-people-dancing",fn:"two-people-dancing.svg",cat:"people-and-health"},{id:"two-people-talking",fn:"two-people-talking.svg",cat:"people-and-health"},{id:"user",fn:"user.svg",cat:"ui"},{id:"vertical-menu",fn:"vertical-menu.svg",cat:"ui"},{id:"vue",fn:"vue.svg",cat:"social"},{id:"wardrobe",fn:"wardrobe.svg",cat:"sign"},{id:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wheelchair",fn:"wheelchair.svg",cat:"sign"},{id:"wine-bottle",fn:"wine-bottle.svg",cat:"people-and-health"},{id:"wifi",fn:"wifi.svg",cat:"sign"},{id:"workplace",fn:"workplace.svg",cat:"social"},{id:"wrench",fn:"wrench.svg",cat:"ui"}],YE=({propKey:n,spec:r,props:s,handleChange:u})=>{const f={BOOLEAN:"boolean",ICON:"icon",ARRAY:"array",OBJECT:"object",DATE:"ISOdatestring",NUMBER:"number",STRING:"string"},g=(v,D)=>{u(n,{...s[n],[v]:D})};if(r.type===f.BOOLEAN)return O.jsx(cC,{label:r.name||n,forId:n,helptext:r.description||null,hasFieldset:!0,requiredTag:r.required,children:O.jsx(Ey,{id:n,label:n,type:"checkbox",checked:s[n]||!1,onChange:v=>u(n,v.target.checked,r.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(r.type===f.ICON)return O.jsxs(N1,{label:r.name||n,helptext:r.description||null,id:n,value:s[n]||"",onChange:v=>u(n,v.target.value),requiredTag:r.required,children:[O.jsx("option",{value:""}),Ej.map(v=>O.jsx("option",{value:v.id,children:v.id},v.id))]});if(r.type===f.DATE)return O.jsx(lC,{id:n,label:r.name||n,helptext:r.description||null,value:s[n]||"",multiple:r.variant==="multiple",maxlength:999,onChange:v=>u(n,v.target.value),requiredTag:r.required});if(Array.isArray(r)||Array.isArray(r.type)||Array.isArray(r.values)){const v=Array.isArray(r)?r:r.values||r.type;return O.jsxs(N1,{label:r.name||n,helptext:r.description||null,id:n,value:s[n],onChange:D=>u(n,D.target.value),requiredTag:r.required,children:[O.jsx("option",{value:""}),v.map(D=>O.jsx("option",{value:D,children:D},D))]})}return r.type===f.NUMBER?O.jsx(Ky,{id:n,label:r.name||n,helptext:r.description||null,type:"number",value:s[n]||"",onChange:v=>u(n,parseFloat(v.currentTarget.value)),requiredTag:r.required}):r.type===f.OBJECT?(s[n]||(s[n]={}),O.jsxs("fieldset",{children:[O.jsx("legend",{children:r.name||n}),r.description&&O.jsx("p",{children:r.description}),Object.entries(r.properties).map(([v,D])=>O.jsx(YE,{propKey:v,props:s[n],spec:D,handleChange:(x,_)=>g(x,_)},v))]})):O.jsx(Ky,{id:n,label:r.name||n,helptext:r.description||null,type:"text",value:s[n]||"",onChange:v=>u(n,r.type==="number"?parseFloat(v.currentTarget.value):v.currentTarget.value),requiredTag:r.required})};Eg.registerLanguage("jsx",Sj);const GE=({specs:n,children:r,fullWidth:s})=>{var Ke,Ne;const u=n.props&&typeof n.props=="object"&&!Array.isArray(n.props)?Object.entries(n.props).reduce((Se,[He,Ze])=>(typeof Ze=="object"&&!Array.isArray(Ze)&&Ze.default!==void 0&&Ze.default!==null&&(Ze.default==="false"&&(Ze.default=!1),Ze.default==="true"&&(Ze.default=!0),Se[He]=Ze.default),Se),{}):{},[f,g]=ze.useState(0),[v,D]=ze.useState(u),[x,_]=ze.useState("light"),[P,$]=ze.useState(""),[L,B]=ze.useState(""),[j,V]=ze.useState(""),[q,ge]=ze.useState("Rediger innhold"),[Q,Y]=ze.useState([{text:"Rediger",icon:"adjust",active:!0},{text:"Kode (React)",icon:"react",active:!1},{text:`Kode (${n.isElement?"Element":"HTML"})`,icon:"code",active:!1},{text:"Egenskaper",icon:"list",active:!1}]),te=Se=>{Se===1&&oe(),Se===2&&re(),V(""),Y(He=>He.map((Ze,qe)=>({...Ze,active:qe===Se})))},U=ze.useRef(null),re=async()=>{if(n.isElement&&ze.isValidElement(Ue))oe().then(()=>{const Se=ze.isValidElement(Ue)?Ue.type.displayName||Ue.type.name:n.name;$(`<!-- Denne koden bør testes grundig før bruk. Spør en Punkt-utvikler om du er usikker. -->
1106
1106
  `+L.replaceAll(Se,n.name||"").replaceAll("={","='").replaceAll(`}
1107
1107
  `,`'
1108
1108
  `).replaceAll(/([a-zA-Z0-9]+)(:)/g,'"$1"$2').replaceAll('"https"',"https").replaceAll("className","class"))});else{const Se=await s1(U.current.innerHTML,{parser:"html",plugins:[PB]});$(Se.replace(/<\!--.*?-->/g,""))}},oe=async()=>{const Se=await gL(Ue);return B(Se),Promise.resolve()},Te=(Se,He)=>{navigator.clipboard.writeText(He).then(()=>{V(Se),console.log("Copied to clipboard",Se)})},ve=(Se,He)=>O.jsxs("div",{className:"pkt-preview__copy",children:[j===Se&&O.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),O.jsx(ah,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>Te(Se,He),children:"Kopier kode"})]}),Ue=ze.isValidElement(r)&&ze.cloneElement(r,{...v},r.props.children?r.props.children:(Ke=n.slots)!=null&&Ke.default?q:null),at=(Se,He,Ze=!1)=>{if(g(f+1),!Ze&&(!He||He=="false")){const{[Se]:qe,...De}=v;D(De)}else D(qe=>({...qe,[Se]:He}))};return O.jsxs("div",{className:"pkt-preview",children:[O.jsxs("div",{className:"pkt-preview__component-container","data-mode":x,children:[n["dark-mode"]&&O.jsx("div",{className:"pkt-preview__mode",children:O.jsx(Ey,{id:"mode",label:"Dark mode",type:"checkbox",checked:x==="dark",onChange:Se=>_(Se.target.checked?"dark":"light"),labelPosition:"right",isSwitch:!0})}),O.jsx("div",{className:`pkt-preview__component ${s&&"pkt-preview__component--fullwidth"}`,ref:U,children:O.jsx("div",{children:Ue})},f)]}),O.jsx(VE,{tabs:Q,onTabSelected:te}),O.jsxs("div",{className:`pkt-grid pkt-preview__opts ${Q[0].active?"":"pkt-hide"}`,children:[((Ne=n.slots)==null?void 0:Ne.default)&&!r.props.children&&O.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[O.jsx(gh,{size:"small",skin:"blue-light",textStyle:"thin-text",children:"children"}),O.jsx(Ky,{id:"slot",label:"Slot",helptext:n.slots.default.description||"Innholdet i slot",type:"text",value:q,onChange:Se=>ge(Se.currentTarget.value)})]}),n.props&&typeof n.props=="object"&&!Array.isArray(n.props)?Object.entries(n.props).map(([Se,He])=>O.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[O.jsx(gh,{size:"small",skin:"blue-light",textStyle:"thin-text",children:Se}),O.jsx(YE,{propKey:Se,props:v,spec:He,handleChange:at})]},Se)):O.jsx("p",{children:"OBS! Specs mangler props!"})]}),O.jsxs("div",{className:`pkt-preview__code ${Q[1].active?"":"pkt-hide"}`,children:[O.jsx(Eg,{language:"jsx",style:WE,children:L}),ve("jsx",L)]}),O.jsxs("div",{className:`pkt-preview__code ${Q[2].active?"":"pkt-hide"}`,children:[O.jsx(Eg,{language:"html",style:WE,children:P}),ve("html",P)]}),O.jsx("div",{className:`pkt-preview__specs ${Q[3].active?"":"pkt-hide"}`,children:O.jsx(xj,{specs:n})})]})};GE.displayName="PktPreview";const _j=uo({tagName:"pkt-progressbar",elementClass:Yr,react:ze,displayName:"PktProgressbar",events:{}}),KE=ze.forwardRef(({children:n,...r},s)=>O.jsx(_j,{ref:s,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));KE.displayName="PktProgressbar";const QE=ze.forwardRef(({id:n,name:r,label:s,className:u,hasTile:f=!1,disabled:g=!1,checkHelptext:v,hasError:D=!1,...x},_)=>{const P=[u,"pkt-input-check"].filter(Boolean).join(" ");return O.jsx("div",{className:P,children:O.jsxs("div",{className:`pkt-input-check__input ${f?"pkt-input-check__input--tile":""} ${g&&f?"pkt-input-check__input--tile-disabled":""}`,children:[O.jsx("input",{ref:_,className:`pkt-input-check__input-checkbox ${D?"pkt-input-check__input-checkbox--error":""}`,type:"radio",id:n,disabled:g,name:r,...x}),O.jsxs("label",{className:"pkt-input-check__input-label",htmlFor:n,children:[s,v&&O.jsx("div",{className:"pkt-input-check__input-helptext",children:v})]})]})})});QE.displayName="PktRadioButton";const Tj=ze.forwardRef(({appearance:n="local",disabled:r=!1,fullwidth:s=!1,id:u,label:f,name:g,placeholder:v="Søk…",suggestions:D,value:x="",action:_,method:P,onChange:$,onSearch:L,onSuggestionClick:B,...j},V)=>{const q=(U,re)=>{U?U():B&&B(re)},ge=U=>{x=U.target.value},Q=`pkt-searchinput pkt-searchinput--${n} ${s?"pkt-searchinput--fullwidth":""}`,Y=f?"label":"div";let te;return _?te=U=>O.jsx("form",{role:"search",className:Q,action:_,method:P,children:U}):te=U=>O.jsx("div",{role:"search",className:Q,children:U}),te(O.jsxs(O.Fragment,{children:[O.jsxs(Y,{htmlFor:f?u:void 0,className:f?"pkt-inputwrapper__label":"",children:[f&&O.jsx(O.Fragment,{children:f}),O.jsxs("div",{className:n==="local"?"pkt-input__container":"pkt-searchinput__field",children:[O.jsx("input",{className:`pkt-input ${s?"pkt-input--fullwidth":""}`,type:"search",name:g||u,id:u,placeholder:v,defaultValue:x,disabled:r,autoComplete:"off","aria-autocomplete":"list",ref:V,"aria-controls":`${u}-suggestions`,onChange:$||ge,...j}),O.jsx(ah,{className:`pkt-searchinput__button ${n==="local"?"pkt-input-icon":""}`,variant:"icon-only",iconName:"magnifying-glass-big",skin:n==="local"?"tertiary":"primary",color:n==="global"?"yellow":void 0,type:"submit",disabled:r,onClick:L&&(U=>{U.preventDefault(),L(x)}),onKeyUp:L&&(U=>{U.key==="Enter"&&(U.preventDefault(),L(x))}),children:f||v})]})]}),D&&O.jsx("ul",{id:`${u}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:D.map((U,re)=>O.jsx("li",{children:ze.createElement(U.href?"a":U.onClick?"button":"div",{href:U.href,className:`pkt-searchinput__suggestion ${U.onClick?"pkt-link-button":""} ${U.href||U.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:U.onClick?"button":void 0,onClick:()=>q(U.onClick,re),onKeyUp:()=>q(U.onClick,re)},O.jsxs(O.Fragment,{children:[U.title&&O.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:U.title}),U.text&&O.jsx("p",{className:"pkt-searchinput__suggestion-text",children:U.text})]}))},`search-suggestion-${re}`))})]}))}),Fj=ze.forwardRef(({activeStep:n,className:r,children:s,hideNonActiveSteps:u=!1,hideNonActiveStepsContent:f=!0,orientation:g="vertical",...v},D)=>{const x=os(r,"pkt-stepper",g==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),_=ze.Children.map(s,(P,$)=>ze.isValidElement(P)?ze.cloneElement(P,{className:os(P.props.className,{"pkt-step--hideStep":u&&$!==n,"pkt-step--hideContent":f&&$!==n})}):P);return O.jsx("ol",{"data-testid":"pkt-stepper",className:x,ref:D,...v,children:_})}),Aj=O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:O.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),Nj=O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[O.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),O.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),Pj=O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[O.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),O.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"})]}),$j=({children:n,className:r,status:s="incomplete",title:u})=>O.jsxs("li",{className:os("pkt-step",r,`pkt-step--${s}`),"data-testid":"pkt-step",children:[O.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),O.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),O.jsx("span",{className:os("pkt-step__indicator"),children:s==="current"?Nj:s==="completed"?Pj:Aj}),O.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),O.jsxs("div",{className:"pkt-step__wrapper",children:[O.jsx("div",{className:"pkt-step__title",children:u}),O.jsx("div",{className:"pkt-step__content",children:n})]})]}),Lj=uo({tagName:"pkt-textarea",elementClass:Hc,react:ze,displayName:"PktTextarea",events:{onChange:"change",onInput:"change",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}});It.PktAccordion=jA,It.PktAccordionItem=h$,It.PktAlert=iC,It.PktBackLink=oC,It.PktBreadcrumbs=g$,It.PktButton=ah,It.PktCard=sC,It.PktCheckbox=Ey,It.PktDatepicker=lC,It.PktFooter=y$,It.PktFooterSimple=b$,It.PktHeader=k$,It.PktIcon=Ln,It.PktInput=uC,It.PktInputWrapper=cC,It.PktLink=dC,It.PktLinkCard=pC,It.PktLoader=fC,It.PktMessagebox=hC,It.PktModal=mC,It.PktPreview=GE,It.PktProgressbar=KE,It.PktRadioButton=QE,It.PktSearchInput=Tj,It.PktSelect=N1,It.PktStep=$j,It.PktStepper=Fj,It.PktTable=Qy,It.PktTableBody=Xy,It.PktTableDataCell=zo,It.PktTableHeader=Zy,It.PktTableHeaderCell=Ws,It.PktTableRow=Np,It.PktTabs=VE,It.PktTag=gh,It.PktTextarea=Lj,It.PktTextinput=Ky,Object.defineProperty(It,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "12.18.13",
3
+ "version": "12.19.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",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@lit-labs/ssr-dom-shim": "^1.2.1",
40
40
  "@lit/react": "^1.0.5",
41
- "@oslokommune/punkt-elements": "^12.18.13",
41
+ "@oslokommune/punkt-elements": "^12.19.0",
42
42
  "angular-html-parser": "^6.0.2",
43
43
  "html-format": "^1.1.7",
44
44
  "prettier": "^3.3.3",
@@ -47,8 +47,8 @@
47
47
  "react-syntax-highlighter": "^15.5.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@oslokommune/punkt-assets": "^12.14.0",
51
- "@oslokommune/punkt-css": "^12.18.7",
50
+ "@oslokommune/punkt-assets": "^12.19.0",
51
+ "@oslokommune/punkt-css": "^12.19.0",
52
52
  "@testing-library/jest-dom": "^6.5.0",
53
53
  "@testing-library/react": "^16.0.1",
54
54
  "@testing-library/user-event": "^14.5.2",
@@ -111,5 +111,5 @@
111
111
  "url": "https://github.com/oslokommune/punkt/issues"
112
112
  },
113
113
  "license": "MIT",
114
- "gitHead": "7d476ef635a1efa5cf9dc6991a75e823aa8caf06"
114
+ "gitHead": "56c70c1a657240f64050e148fe4cd72d93e98631"
115
115
  }