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