@mattilsynet/design 3.3.2 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
5
5
  [x: string]: any;
6
- }>) => import("react/jsx-runtime").JSX.Element)[];
6
+ }>) => import("react").JSX.Element)[];
7
7
  };
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof meta>;
package/mtds/app/app.d.ts CHANGED
@@ -17,6 +17,6 @@ export declare const App: AppComponent & {
17
17
  Toggle: import('react').ForwardRefExoticComponent<Omit<ButtonProps<"button">, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
18
18
  Main: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
19
19
  Footer: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import('react').RefAttributes<HTMLElement>>;
20
- Script: () => import("react/jsx-runtime").JSX.Element;
20
+ Script: () => JSX.Element;
21
21
  };
22
22
  export {};
@@ -6,7 +6,7 @@ declare const meta: {
6
6
  };
7
7
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
8
  [x: string]: any;
9
- }>) => import("react/jsx-runtime").JSX.Element)[];
9
+ }>) => import("react").JSX.Element)[];
10
10
  };
11
11
  export default meta;
12
12
  type Story = StoryObj<typeof meta>;
@@ -19,7 +19,7 @@ class r extends g {
19
19
  }
20
20
  constructor() {
21
21
  super(), this.attachShadow({ mode: "open" }).append(m("figure")), C(this, `@layer leaflet{${h}}
22
- @layer mt.v3-3-2design{${b}`);
22
+ @layer mt.v3-3-3design{${b}`);
23
23
  }
24
24
  connectedCallback() {
25
25
  const t = this.shadowRoot?.lastElementChild, e = a(this, "data-cluster") ?? "false", o = new i.TileLayer(k, {
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
5
5
  [x: string]: any;
6
- }>) => import("react/jsx-runtime").JSX.Element)[];
6
+ }>) => import("react").JSX.Element)[];
7
7
  };
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof meta>;
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
5
5
  [x: string]: any;
6
- }>) => import("react/jsx-runtime").JSX.Element)[];
6
+ }>) => import("react").JSX.Element)[];
7
7
  };
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof meta>;
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
5
5
  [x: string]: any;
6
- }>) => import("react/jsx-runtime").JSX.Element)[];
6
+ }>) => import("react").JSX.Element)[];
7
7
  };
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof meta>;
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
5
5
  [x: string]: any;
6
- }>) => import("react/jsx-runtime").JSX.Element)[];
6
+ }>) => import("react").JSX.Element)[];
7
7
  };
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof meta>;
@@ -7,7 +7,7 @@ declare const meta: {
7
7
  };
8
8
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
9
9
  [x: string]: any;
10
- }>) => import("react/jsx-runtime").JSX.Element)[];
10
+ }>) => import("react").JSX.Element)[];
11
11
  };
12
12
  export default meta;
13
13
  type Story = StoryObj<typeof meta>;
@@ -6,7 +6,7 @@ declare const meta: {
6
6
  };
7
7
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
8
  [x: string]: any;
9
- }>) => import("react/jsx-runtime").JSX.Element)[];
9
+ }>) => import("react").JSX.Element)[];
10
10
  };
11
11
  export default meta;
12
12
  type Story = StoryObj<typeof meta>;
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
5
5
  [x: string]: any;
6
- }>) => import("react/jsx-runtime").JSX.Element)[];
6
+ }>) => import("react").JSX.Element)[];
7
7
  };
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof meta>;
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
5
5
  [x: string]: any;
6
- }>) => import("react/jsx-runtime").JSX.Element)[];
6
+ }>) => import("react").JSX.Element)[];
7
7
  };
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof meta>;
@@ -136,7 +136,7 @@ declare const meta: {
136
136
  };
137
137
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
138
138
  [x: string]: any;
139
- }>) => import("react/jsx-runtime").JSX.Element)[];
139
+ }>) => import("react").JSX.Element)[];
140
140
  };
141
141
  export default meta;
142
142
  type Story = StoryObj<typeof meta>;
@@ -15,7 +15,7 @@ Add a heading (h2–h6), or set aria-label or aria-labelledby to provide an acce
15
15
  ::slotted([role="tab"][${Ai}="true"]) { cursor: default }`,An=class extends ke{constructor(){super(),$n(this,tc)}get tabList(){return this.querySelector('[role="tablist"]:not(:scope [role="tabpanel"] [role="tablist"])')}get selectedIndex(){const t=bt(this.tabList);return t.indexOf(Pt(t))}set selectedIndex(t){vt(this.tabs[t])}get tabs(){return this.querySelectorAll('[role="tab"]:not(:scope [role="tabpanel"] [role="tab"])')}get panels(){return this.querySelectorAll('[role="tabpanel"]:not(:scope [role="tabpanel"] [role="tabpanel"])')}},Tn=class extends ke{constructor(){super(),$n(this,nc)}connectedCallback(){L(this,"role","tablist"),Zl(this,"click keydown",this),this._umutate=Jl(this,oc,{attributeFilter:["id","role",Mt,jt],attributes:!0,childList:!0,subtree:!0})}disconnectedCallback(){var t;Ei(this,"click keydown",this),(t=this._umutate)==null||t.call(this),this._umutate=void 0}handleEvent(t){var e,n,o,i;const{key:r,type:s,target:a}=t,l=bt(this),c=l.findIndex(m=>m.contains(a)),u=r===" "||r==="Enter";let d=c;if(!(t.defaultPrevented||c===-1)&&(s==="click"&&vt(l[c]),s==="keydown")){if(u){(e=t.preventDefault)==null||e.call(t);const m={bubbles:!0,cancelable:!0,composed:!0};return l[c].dispatchEvent(new MouseEvent("click",m))}if(r==="ArrowDown"||r==="ArrowRight")d=(c+1)%l.length;else if(r==="ArrowUp"||r==="ArrowLeft")d=(c||l.length)-1;else if(r==="End")d=l.length-1;else if(r==="Home")d=0;else if(r==="Tab"&&!Dt(l[c])){const m=Pt(l);return m&&L(m,Xt,"-1"),m&&setTimeout(()=>L(m,Xt,"0"))}else return;(n=t.preventDefault)==null||n.call(t),(i=(o=l[d]).focus)==null||i.call(o)}}get tabsElement(){return Nt(this)}get tabs(){return this.querySelectorAll(':scope > [role="tab"]')}get selectedIndex(){const t=bt(this);return t.indexOf(Pt(t))}set selectedIndex(t){vt(this.tabs[t])}},Ti=class extends ke{static get observedAttributes(){return["id",jt,Mt]}connectedCallback(){var t;L(this,"role","tab"),L(this,jt,`${this.selected}`),L(this,Xt,this.selected?"0":"-1"),Pt((t=this.parentElement)==null?void 0:t.children)||vt(this)}attributeChangedCallback(){!kn.has(this.parentElement)&&this.selected&&vt(this)}get tabsElement(){return Nt(this)}get tabList(){const t=this.parentElement;return t instanceof Tn?t:null}get selected(){return Dt(this)}set selected(t){t&&vt(this)}get index(){return Math.max(bt(this.parentElement).indexOf(this),0)}get panel(){var t;const e=(t=Nt(this))==null?void 0:t.panels,n=bt(this.parentElement).indexOf(this);return Ln(this,e?.[n])}},ki=class extends ke{constructor(){super(),$n(this,ec)}connectedCallback(){L(this,"role","tabpanel");const t=new Set(this.tabs),e=Nt(this),n=e?.tabs[Array.prototype.indexOf.call(e?.panels,this)];n&&!n.hasAttribute(Mt)&&t.add(n);const o=Pt(t)||t.values().next().value;Ri(o,()=>Li(this,o,!!o&&Dt(o)))}get tabsElement(){return Nt(this)}get tabs(){return $i(this).querySelectorAll(`[${Mt}="${Cn(this)}"]`)}},oc=(t,e=[])=>{let n;const o=bt(t);for(const{target:i}of e)i instanceof Element&&L(i,"role")==="tab"&&Dt(i)&&(n=i);!n&&!Pt(o)&&(n=o.find(Ii)),vt(n)},Li=(t,e,n=!1)=>{L(t,"aria-hidden",`${!n}`),L(t,"hidden",n?null:""),L(t,Xt,n?"0":null),e&&L(e,Mt,Cn(t)),e&&n&&Dt(e)&&L(t,Ql,Cn(e))},kn=new Set,Ri=(t,e)=>{var n;const o=t?.parentElement;o&&kn.add(o),e(),o&&kn.delete(o),(n=o?._umutate)==null||n.takeRecords()},Ii=t=>L(t,Ai)!=="true",Dt=t=>L(t,jt)==="true",Pt=(t=[])=>{for(const e of t)if(Dt(e))return e},bt=t=>{const e=[];for(const n of t?.children||[])n.getAttribute("role")==="tab"&&e.push(n);return e},Ln=(t,e=null)=>{const n=L(t,Mt);return n?$i(t).getElementById(n):e},Nt=t=>{for(let e=t;e;e=e.parentNode||e.host)if(e instanceof An)return e;return null},vt=t=>t&&Ii(t)&&Ri(t,()=>{var e;const n=bt(t.parentElement),o=((e=Nt(t))==null?void 0:e.panels)||[],i=Ln(t,o?.[n.indexOf(t)]);let r=0;for(const s of n){const a=Ln(s,o[r++]);L(s,jt,`${s===t}`),L(s,Xt,s===t?"0":"-1"),a&&Li(a,s,a===i)}});Le.define("u-tabs",An),Le.define("u-tablist",Tn),Le.define("u-tab",Ti),Le.define("u-tabpanel",ki);var Oi=class extends An{},Mi=class extends Tn{},Di=class extends Ti{},Pi=class extends ki{};nt.define("ds-tabs",Oi),nt.define("ds-tablist",Mi),nt.define("ds-tab",Di),nt.define("ds-tabpanel",Pi);var Rn=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Ni=Rn(),qi=Ni?navigator.userAgent:"",ic=/android/i.test(qi),rc=/firefox/i.test(qi),Hi;Ni&&/^Mac/i.test(((Hi=navigator.userAgentData)==null?void 0:Hi.platform)||navigator.platform);var Bi=(t,e,n)=>n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),sc=(t,e,n)=>{const o=new MutationObserver(r=>{if(!Rn()||!t.isConnected)return i();e(t,r)}),i=Object.assign(()=>o.disconnect(),{takeRecords:()=>o.takeRecords()});return e(t),o.observe(t,n),i},zi="__uDetailsPolyfillSummarys";if(Rn()&&ic&&rc&&!window[zi]){const t=document.getElementsByTagName("summary"),e=()=>{for(const n of t){const o=n.parentElement;Bi(n,"role","button"),Bi(n,"aria-expanded",`${!!o?.open}`)}};window[zi]=sc(document,e,{attributeFilter:["open"],attributes:!0,childList:!0,subtree:!0})}var ac=Object.defineProperty,Fi=Object.getOwnPropertySymbols,lc=Object.prototype.hasOwnProperty,cc=Object.prototype.propertyIsEnumerable,Ui=(t,e,n)=>e in t?ac(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dc=(t,e)=>{for(var n in e||(e={}))lc.call(e,n)&&Ui(t,n,e[n]);if(Fi)for(var n of Fi(e))cc.call(e,n)&&Ui(t,n,e[n]);return t},Re=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Ie=Re(),In=Ie?navigator.userAgent:"",Oe=/android/i.test(In),uc=/firefox/i.test(In),fc=/iPad|iPhone|iPod/.test(In),Wi,mc=Ie&&/^Mac/i.test(((Wi=navigator.userAgentData)==null?void 0:Wi.platform)||navigator.platform),pc=Ie&&window.CSSStyleSheet&&document.adoptedStyleSheets,hc={once:!0,capture:!0,passive:!0},gc=":host(:not([hidden])) { display: block }",bc="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",vc=`${Oe?"data":"aria"}-multiselectable`,Vi=typeof HTMLElement>"u"?class{}:HTMLElement,E=(t,e,n)=>n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),On=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.addEventListener(i,...o);return()=>Me(t,...e)},Me=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.removeEventListener(i,...o)},yc=(t,e)=>{const n=t.shadowRoot||t.attachShadow({mode:"open"});if(n.querySelector("slot")||n.append(Mn("slot")),!n.querySelector("style"))if(!pc)n.append(Mn("style",null,e));else{const o=new CSSStyleSheet;o.replaceSync(e),n.adoptedStyleSheets=[o]}return n},wc=(t,e,n)=>{const o=new MutationObserver(r=>{if(!Re()||!t.isConnected)return i();e(t,r)}),i=Object.assign(()=>o.disconnect(),{takeRecords:()=>o.takeRecords()});return e(t),o.observe(t,n),i},De=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Gi=t=>De(t).activeElement,Kt=t=>{if(!t||!Ie)return null;if(window.uElementsId||(window.uElementsId={}),!t.id){const e=t.nodeName.toLowerCase();window.uElementsId[e]||(window.uElementsId[e]=1),t.id=`:${e}${window.uElementsId[e]++}`}return t.id},Mn=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,r]of Object.entries(e))E(o,i,r);return o},ji={define:(t,e)=>!Re()||window.customElements.get(t)||window.customElements.define(t,e)},_c=(t,e,n="")=>{var o,i;const r={bubbles:!0,composed:!0,data:e,inputType:n},s=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",r)),(i=(o=Object.getOwnPropertyDescriptor(s,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",r)),t.dispatchEvent(new Event("change",{bubbles:!0}))},Dn=!1,Pn=t=>(t?.type==="pointerup"&&(Dn=!1),t?.type==="pointerdown"&&(Dn=!0,On(document,"pointerup",Pn,hc)),Dn),xc=(t,e="<slot></slot>")=>`<template shadowrootmode="open">${e}<style>${t}</style></template>`,Sc=t=>{const e=E(t,"form");E(t,"form","#"),setTimeout(Ec,0,t,e)},Ec=(t,e)=>E(t,"form",e),Z,$c=0,Xi=0,Nn=t=>{clearTimeout(Xi),Z||(Z=Mn("div",{"aria-live":"assertive"}),Z.style.overflow="hidden",Z.style.position="fixed",Z.style.whiteSpace="nowrap",Z.style.width="1px"),Z.isConnected||document.body.append(Z),t===""&&(Z.textContent=""),t&&(Z.textContent=`${t}${$c++%2?" ":""}`,Xi=setTimeout(Nn,!mc&&uc?2e3:300,""))},qn="disabled",Yt="selected",Cc=class extends Vi{constructor(){super(...arguments),this._skipAttrChange=!1}static get observedAttributes(){return["id",qn,Yt]}connectedCallback(){Oe&&(this.tabIndex=-1),this.hasAttribute("role")||E(this,"role","option"),E(this,"aria-disabled",`${this.disabled}`),E(this,"aria-selected",`${this.selected}`),Kt(this)}attributeChangedCallback(t){this._skipAttrChange||(this._skipAttrChange=!0,t==="id"?Kt(this):E(this,`aria-${t}`,`${this[t]}`),this._skipAttrChange=!1)}get defaultSelected(){return this[Yt]}set defaultSelected(t){this[Yt]=t}get disabled(){return E(this,qn)!==null}set disabled(t){E(this,qn,t?"":null)}get form(){return this.closest("form")}get index(){var t;return[...((t=this.parentElement)==null?void 0:t.options)||[this]].indexOf(this)}get label(){var t;return(t=E(this,"label"))!=null?t:this.text}set label(t){E(this,"label",t)}get selected(){return E(this,Yt)!==null}set selected(t){E(this,Yt,t?"":null)}get text(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}set text(t){this.textContent=t}get value(){var t;return(t=E(this,"value"))!=null?t:this.text}set value(t){E(this,"value",t)}};ji.define("u-option",Cc);var Ki="data-activedescendant",Pe="aria-hidden",Hn=`${gc}
16
16
  ::slotted([role="option"]) { display: block; cursor: pointer }
17
17
  ::slotted([role="option"][${Ki}]) { ${bc} }
18
- ::slotted([role="option"]:is([${Pe}="true"], [disabled], [hidden])) { display: none !important }`,Ac=xc(Hn),Bn,Yi="focus click keydown",zn="focusout input pointerdown",Ne={of:"of",plural:"%d hits",singular:"%d hit"},Qi=class extends Vi{constructor(){super(),this._texts=dc({},Ne),yc(this,Hn)}static get observedAttributes(){return["id",...Object.keys(Ne).map(t=>`data-sr-${t}`)]}connectedCallback(){this._root=De(this),E(this,"hidden",""),E(this,"role","listbox"),E(this,"tabindex","-1"),On(this._root,Yi,this,!0),this._umutate=wc(this,tr,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0})}disconnectedCallback(){var t;this._root&&Me(this._root,Yi,this,!0),this._root&&Me(this._root,zn,this),qe(this,null),(t=this._umutate)==null||t.call(this),this._umutate=this._root=this._input=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1];if(Ne[o])this._texts[o]=n||Ne[o];else if(this.id){const i=`input[list="${this.id}"]`,r=De(this).querySelector(i);r&&qe(this,r)}}handleEvent(t){t.defaultPrevented||(t.type==="focus"&&Un(this,t),t.type==="focusout"&&kc(this,t),t.type==="click"&&Rc(this,t),t.type==="input"&&tr(this),t.type==="keydown"&&Ic(this,t),t.type==="pointerdown"&&Lc(this,t))}get options(){const t=!this._options&&this.querySelector('[role="option"],option');return t&&(this._options=this.getElementsByTagName(t?.nodeName)),this._options||this.getElementsByTagName("option")}},Zi=t=>t.disabled||t.readOnly,Fn=t=>t instanceof HTMLInputElement,Tc=t=>E(t,Pe)!=="true"&&t.clientHeight,Qt=(t,e)=>{t._input&&E(t._input,"aria-expanded",`${e}`),!(!t.isConnected||t.hidden!==e)&&(e||Ji(t),t.popover&&t.togglePopover(e),e&&setTimeout(()=>clearTimeout(Bn)),t.hidden=!e)},Ji=(t,e)=>{t._input&&E(t._input,"aria-activedescendant",Kt(e));for(const n of t.options)E(n,Ki,n===e?"":null);e?.scrollIntoView({block:"nearest"})},qe=(t,e)=>{const n=e||t._input;n&&(t.popover&&(E(t,"popover","manual"),E(n,"popovertarget",e&&Kt(t))),E(n,"aria-autocomplete",e&&"list"),E(n,"aria-controls",e&&Kt(t)),E(n,"autocomplete",e&&"off"),E(n,"enterkeyhint","done"),E(n,"role",e&&!Zi(n)?"combobox":null))},Un=(t,{target:e})=>{var n,o;if(t._input!==e)if(Fn(e)&&e.getAttribute("list")===t.id){if(qe(t,null),qe(t,e),Zi(e))return;t._root&&On(t._root,zn,t),E(t,"aria-label",((o=(n=e.labels)==null?void 0:n[0])==null?void 0:o.textContent.trim())||null),Nn(),t._input=e,Oe&&Qt(t,!0)}else Wn(t)},kc=(t,e)=>{Pn()?e.stopImmediatePropagation():Oe||setTimeout(Wn,0,t,e)},Wn=t=>{const e=Gi(t);t._input===e||t.contains(e)||(t._root&&Me(t._root,zn,t),Qt(t,!1),t._input=void 0)},Lc=(t,e)=>t.contains(e.target)&&Pn(e),Rc=(t,e)=>{var n;if(Fn(e.target)&&Un(t,e),t._input===e.target)return Qt(t,!0);if(!t.contains(e.target))return Wn(t);for(const o of t.options)if(o.contains(e.target))return(n=t._input)==null||n.focus(),t._input&&_c(t._input,o.value),Qt(t,E(t,vc)==="true")},Ic=(t,e)=>{if(Fn(e.target)&&Un(t,e),t._input!==e.target)return;const{key:n,ctrlKey:o,metaKey:i,shiftKey:r,altKey:s}=e;if(o||i||r||n==="Tab"||s&&!n.startsWith("Arrow"))return;n==="Escape"&&!t.hidden&&e.preventDefault(),Qt(t,n!=="Escape");const a=n==="Enter",l=E(t._input,"aria-activedescendant"),c=[];let u=-1,d=-1;for(const m of t.options)Tc(m)&&(c.push(m),m.id===l&&(u=c.length-1));!s&&n==="ArrowDown"&&(d=(u+1)%c.length),!s&&n==="ArrowUp"&&(d=(u||c.length)-1),~u&&((n==="Home"||n==="PageUp")&&(d=0),(n==="End"||n==="PageDown")&&(d=c.length-1),a&&(d=u)),c[d]&&(e.preventDefault(),t._input.focus()),a&&c[d]?(e.stopImmediatePropagation(),Sc(t._input),c[d].click()):Ji(t,c[d])},tr=t=>{var e;if(!t._input||t.hidden)return;const n=t._input.value.toLowerCase().trim()||"",o=!t.hasAttribute("data-nofilter"),i=[],r=[];for(const s of t.options)(s.disabled||s.hidden||o&&!s.label.toLowerCase().includes(n)?i:r).push(s);for(const s of i)E(s,Pe,"true");for(const s of r)E(s,Pe,"false");clearTimeout(Bn),Bn=setTimeout(Oc,500,t,r),fc&&r.forEach((s,a,{length:l})=>{E(s,"title",`${a+1} ${t._texts.of} ${l}`)}),(e=t._umutate)==null||e.takeRecords()},Oc=(t,e)=>!t.hidden&&t._input===Gi(t)&&Nn(`${e.some(({value:n})=>n)?`${t._texts[e[1]?"plural":"singular"]}`.replace("%d",`${e.length}`):t.innerText}`);Re()&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){const t=E(this,"list");return t&&De(this).getElementById(t)}}),ji.define("u-datalist",Qi),G()&&!Bs()&&zs();const Mc="3.3.2",er="_alert_14zqc_1 _ds-alert_o04yn_1",nr="_app_14zqc_1",or="_sticky_14zqc_1",ir="_avatar_14zqc_1 _ds-avatar_o04yn_1",rr="_badge_14zqc_1",sr="_breadcrumbs_14zqc_1 _ds-breadcrumbs_o04yn_3",ar="_button_14zqc_1 _ds-button_o04yn_1",lr="_card_14zqc_1",cr="_group_14zqc_1",dr="_chip_14zqc_1 _ds-chip_o04yn_3",ur="_details_14zqc_1 _ds-details_o04yn_1",fr="_dialog_14zqc_1 _ds-dialog_o04yn_3",mr="__drawer_14zqc_1",pr="_divider_14zqc_1",hr="_errorsummary_14zqc_1 _ds-error-summary_o04yn_3",gr="_field_14zqc_1 _ds-field_o04yn_1",br="_suggestion_14zqc_1 _ds-suggestion_o04yn_3",vr="_affixes_14zqc_1 _ds-field-affixes_o04yn_1",yr="_fieldset_14zqc_1 _ds-fieldset_o04yn_1",wr="_fileupload_14zqc_1",_r="_helptext_14zqc_1 _ds-focus_o04yn_1",xr="_input_14zqc_1 _ds-input_o04yn_1",Sr="_law_14zqc_1",Er="_grid_14zqc_1",$r="_flex_14zqc_1",Cr="_link_14zqc_1",Ar="_logo_14zqc_1",Tr="__logo_14zqc_1",kr="_pagination_14zqc_1 _ds-pagination_o04yn_3",Lr="_popover_14zqc_1 _ds-popover_o04yn_1",Rr="_print_14zqc_1",Ir="_progress_14zqc_1",Or="__indeterminate_14zqc_1",Mr="_skeleton_14zqc_1 _ds-skeleton_o04yn_3",Dr="__skeleton_14zqc_1",Pr="_spinner_14zqc_1",Nr="_steps_14zqc_1",qr="_table_14zqc_1 _ds-table_o04yn_3",Hr="__scrollShadow_14zqc_1",Br="_tabs_14zqc_1 _ds-tabs_o04yn_3",zr="__scrollMask_14zqc_1",Fr="_tag_14zqc_1 _ds-tag_o04yn_3",Ur="_toast_14zqc_1",Wr="__toastClose_14zqc_1",Vr="__toastOpen_14zqc_1",Gr="__toastTimeout_14zqc_1",jr="_togglegroup_14zqc_1 _ds-toggle-group_o04yn_3",Xr="__tooltip_14zqc_1 _ds-tooltip_o04yn_3",Kr="_heading_14zqc_1 _ds-heading_o04yn_1",Yr="_ingress_14zqc_1",Qr="_muted_14zqc_1",Zr="_info_14zqc_1",Jr="_prose_14zqc_1",ts="_validation_14zqc_1 _ds-validation-message_o04yn_1",es="_body_14zqc_162",ns="__checked_14zqc_1",C={alert:er,app:nr,sticky:or,avatar:ir,badge:rr,breadcrumbs:sr,button:ar,card:lr,group:cr,chip:dr,details:ur,dialog:fr,_drawer:mr,divider:pr,errorsummary:hr,field:gr,suggestion:br,affixes:vr,fieldset:yr,fileupload:wr,helptext:_r,input:xr,law:Sr,grid:Er,flex:$r,link:Cr,logo:Ar,_logo:Tr,pagination:kr,popover:Lr,print:Rr,progress:Ir,_indeterminate:Or,skeleton:Mr,_skeleton:Dr,spinner:Pr,steps:Nr,table:qr,_scrollShadow:Hr,tabs:Br,_scrollMask:zr,tag:Fr,toast:Ur,_toastClose:Wr,_toastOpen:Vr,_toastTimeout:Gr,togglegroup:jr,_tooltip:Xr,heading:Kr,ingress:Yr,muted:Qr,info:Zr,prose:Jr,validation:ts,body:es,_checked:ns},Dc=Object.freeze(Object.defineProperty({__proto__:null,_checked:ns,_drawer:mr,_indeterminate:Or,_logo:Tr,_scrollMask:zr,_scrollShadow:Hr,_skeleton:Dr,_toastClose:Wr,_toastOpen:Vr,_toastTimeout:Gr,_tooltip:Xr,affixes:vr,alert:er,app:nr,avatar:ir,badge:rr,body:es,breadcrumbs:sr,button:ar,card:lr,chip:dr,default:C,details:ur,dialog:fr,divider:pr,errorsummary:hr,field:gr,fieldset:yr,fileupload:wr,flex:$r,grid:Er,group:cr,heading:Kr,helptext:_r,info:Zr,ingress:Yr,input:xr,law:Sr,link:Cr,logo:Ar,muted:Qr,pagination:kr,popover:Lr,print:Rr,progress:Ir,prose:Jr,skeleton:Mr,spinner:Pr,steps:Nr,sticky:or,suggestion:br,table:qr,tabs:Br,tag:Fr,toast:Ur,togglegroup:jr,validation:ts},Symbol.toStringTag,{value:"Module"}));function os(t){var e,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=os(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function Pc(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=os(t))&&(o&&(o+=" "),o+=e);return o}const Zt={capture:!0,passive:!0},P=()=>typeof window<"u"&&typeof document<"u",yt=t=>P()?document.getElementsByClassName(C[t].split(" ")[0]):[];function qt(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}const g=(t,e,n)=>n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),O=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.addEventListener(i,...o);return()=>is(t,...e)},is=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.removeEventListener(i,...o)},st=(t,e)=>{if(!P())return;window._mtdsHotReloadCleanup||(window._mtdsHotReloadCleanup=new Map);const n=()=>{window._mtdsHotReloadCleanup?.get(t)?.map(o=>o()),window._mtdsHotReloadCleanup?.set(t,e())};document.readyState!=="complete"?O(window,"load",n):document.fonts?.ready?.then(n)||setTimeout(n,0)},Jt=(t,e,n)=>{let o=0;const i=()=>{if(!t.isConnected)return r();e(s),s.takeRecords(),o=0},r=()=>s?.disconnect?.(),s=new MutationObserver(()=>{o||(o=requestAnimationFrame(i))});return s.observe(t,n),i(),r},R=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,r]of Object.entries(e))g(o,i,r);return o},Nc=typeof HTMLElement>"u"?class{}:HTMLElement,qc=(t,e)=>!P()||window.customElements.get(t)||window.customElements.define(t,e),Hc=typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets,Bc=(t,e)=>{if(!Hc)return;t.shadowRoot||t.attachShadow({mode:"open"}).append(R("slot"));const n=new CSSStyleSheet;n.replaceSync(e),t.shadowRoot.adoptedStyleSheets=[n]},zc=`[data-command="toggle-app-expanded"],.${C.app.split(" ")[0]} > [command="show-modal"]`,Fc=`.${C.breadcrumbs.split(" ")[0]}`,Uc=`.${C.card.split(" ")[0]}`,rs=`.${C.chip.split(" ")[0]}`,Wc=`.${C.helptext.split(" ")[0]}`,Vc=`.${C.pagination.split(" ")[0]}`,Gc='summary,u-summary,a,button,[role="tab"],[role="button"]',Vn="mattilsynet.matomo.cloud",jc=["setCustomUrl","setDocumentTitle","setReferrerUrl"],W="mtds-analytics-banner",Xc="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function ss(t,e={}){if(P()){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Vn}/matomo.php`])),window._mtm||(window._mtm=window._mtm||[],window._mtm.push({"mtm.startTime":Date.now(),event:"mtm.Start"})),t==="init"){window._mtdsTracking={enabled:window.location.hostname!=="localhost",...window._mtdsTracking,...e};const{consent:n,enabled:o,matomoId:i,matomoTagManagerId:r}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),o){n!=="custom"&&Kc();const s=r?`https://cdn.matomo.cloud/${Vn}/container_${r}.js`:`https://cdn.matomo.cloud/${Vn}/matomo.js`;document.querySelector(`script[src="${s}"]`)||document.head.append(R("script",{async:"",src:s}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics ${t}:`,e);if(t==="pageview"){const{url:n,title:o}=e;window._paq.push(["setCustomUrl",n||location.href]),window._paq.push(["setDocumentTitle",o||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:n,action:o,name:i,value:r}=e,s=["trackEvent",n,o,i,r];let a=location.href;window._paq.push([function(){a=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",a.split("#")[0]]),window._paq.push(s.filter(l=>l!==void 0)),window._paq.push(["setCustomUrl",a])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else if(t==="matomo"){const n=e;jc.includes(n?.[0])&&typeof n[1]!="string"&&(n[1]=`${n[1]??""}`),window._paq.push(n)}}}}function Kc(){if(document.getElementById(W)||window.localStorage.getItem(W))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${W}" data-analytics="ignore"><style>
18
+ ::slotted([role="option"]:is([${Pe}="true"], [disabled], [hidden])) { display: none !important }`,Ac=xc(Hn),Bn,Yi="focus click keydown",zn="focusout input pointerdown",Ne={of:"of",plural:"%d hits",singular:"%d hit"},Qi=class extends Vi{constructor(){super(),this._texts=dc({},Ne),yc(this,Hn)}static get observedAttributes(){return["id",...Object.keys(Ne).map(t=>`data-sr-${t}`)]}connectedCallback(){this._root=De(this),E(this,"hidden",""),E(this,"role","listbox"),E(this,"tabindex","-1"),On(this._root,Yi,this,!0),this._umutate=wc(this,tr,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0})}disconnectedCallback(){var t;this._root&&Me(this._root,Yi,this,!0),this._root&&Me(this._root,zn,this),qe(this,null),(t=this._umutate)==null||t.call(this),this._umutate=this._root=this._input=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1];if(Ne[o])this._texts[o]=n||Ne[o];else if(this.id){const i=`input[list="${this.id}"]`,r=De(this).querySelector(i);r&&qe(this,r)}}handleEvent(t){t.defaultPrevented||(t.type==="focus"&&Un(this,t),t.type==="focusout"&&kc(this,t),t.type==="click"&&Rc(this,t),t.type==="input"&&tr(this),t.type==="keydown"&&Ic(this,t),t.type==="pointerdown"&&Lc(this,t))}get options(){const t=!this._options&&this.querySelector('[role="option"],option');return t&&(this._options=this.getElementsByTagName(t?.nodeName)),this._options||this.getElementsByTagName("option")}},Zi=t=>t.disabled||t.readOnly,Fn=t=>t instanceof HTMLInputElement,Tc=t=>E(t,Pe)!=="true"&&t.clientHeight,Qt=(t,e)=>{t._input&&E(t._input,"aria-expanded",`${e}`),!(!t.isConnected||t.hidden!==e)&&(e||Ji(t),t.popover&&t.togglePopover(e),e&&setTimeout(()=>clearTimeout(Bn)),t.hidden=!e)},Ji=(t,e)=>{t._input&&E(t._input,"aria-activedescendant",Kt(e));for(const n of t.options)E(n,Ki,n===e?"":null);e?.scrollIntoView({block:"nearest"})},qe=(t,e)=>{const n=e||t._input;n&&(t.popover&&(E(t,"popover","manual"),E(n,"popovertarget",e&&Kt(t))),E(n,"aria-autocomplete",e&&"list"),E(n,"aria-controls",e&&Kt(t)),E(n,"autocomplete",e&&"off"),E(n,"enterkeyhint","done"),E(n,"role",e&&!Zi(n)?"combobox":null))},Un=(t,{target:e})=>{var n,o;if(t._input!==e)if(Fn(e)&&e.getAttribute("list")===t.id){if(qe(t,null),qe(t,e),Zi(e))return;t._root&&On(t._root,zn,t),E(t,"aria-label",((o=(n=e.labels)==null?void 0:n[0])==null?void 0:o.textContent.trim())||null),Nn(),t._input=e,Oe&&Qt(t,!0)}else Wn(t)},kc=(t,e)=>{Pn()?e.stopImmediatePropagation():Oe||setTimeout(Wn,0,t,e)},Wn=t=>{const e=Gi(t);t._input===e||t.contains(e)||(t._root&&Me(t._root,zn,t),Qt(t,!1),t._input=void 0)},Lc=(t,e)=>t.contains(e.target)&&Pn(e),Rc=(t,e)=>{var n;if(Fn(e.target)&&Un(t,e),t._input===e.target)return Qt(t,!0);if(!t.contains(e.target))return Wn(t);for(const o of t.options)if(o.contains(e.target))return(n=t._input)==null||n.focus(),t._input&&_c(t._input,o.value),Qt(t,E(t,vc)==="true")},Ic=(t,e)=>{if(Fn(e.target)&&Un(t,e),t._input!==e.target)return;const{key:n,ctrlKey:o,metaKey:i,shiftKey:r,altKey:s}=e;if(o||i||r||n==="Tab"||s&&!n.startsWith("Arrow"))return;n==="Escape"&&!t.hidden&&e.preventDefault(),Qt(t,n!=="Escape");const a=n==="Enter",l=E(t._input,"aria-activedescendant"),c=[];let u=-1,d=-1;for(const m of t.options)Tc(m)&&(c.push(m),m.id===l&&(u=c.length-1));!s&&n==="ArrowDown"&&(d=(u+1)%c.length),!s&&n==="ArrowUp"&&(d=(u||c.length)-1),~u&&((n==="Home"||n==="PageUp")&&(d=0),(n==="End"||n==="PageDown")&&(d=c.length-1),a&&(d=u)),c[d]&&(e.preventDefault(),t._input.focus()),a&&c[d]?(e.stopImmediatePropagation(),Sc(t._input),c[d].click()):Ji(t,c[d])},tr=t=>{var e;if(!t._input||t.hidden)return;const n=t._input.value.toLowerCase().trim()||"",o=!t.hasAttribute("data-nofilter"),i=[],r=[];for(const s of t.options)(s.disabled||s.hidden||o&&!s.label.toLowerCase().includes(n)?i:r).push(s);for(const s of i)E(s,Pe,"true");for(const s of r)E(s,Pe,"false");clearTimeout(Bn),Bn=setTimeout(Oc,500,t,r),fc&&r.forEach((s,a,{length:l})=>{E(s,"title",`${a+1} ${t._texts.of} ${l}`)}),(e=t._umutate)==null||e.takeRecords()},Oc=(t,e)=>!t.hidden&&t._input===Gi(t)&&Nn(`${e.some(({value:n})=>n)?`${t._texts[e[1]?"plural":"singular"]}`.replace("%d",`${e.length}`):t.innerText}`);Re()&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){const t=E(this,"list");return t&&De(this).getElementById(t)}}),ji.define("u-datalist",Qi),G()&&!Bs()&&zs();const Mc="3.3.3",er="_alert_14zqc_1 _ds-alert_o04yn_1",nr="_app_14zqc_1",or="_sticky_14zqc_1",ir="_avatar_14zqc_1 _ds-avatar_o04yn_1",rr="_badge_14zqc_1",sr="_breadcrumbs_14zqc_1 _ds-breadcrumbs_o04yn_3",ar="_button_14zqc_1 _ds-button_o04yn_1",lr="_card_14zqc_1",cr="_group_14zqc_1",dr="_chip_14zqc_1 _ds-chip_o04yn_3",ur="_details_14zqc_1 _ds-details_o04yn_1",fr="_dialog_14zqc_1 _ds-dialog_o04yn_3",mr="__drawer_14zqc_1",pr="_divider_14zqc_1",hr="_errorsummary_14zqc_1 _ds-error-summary_o04yn_3",gr="_field_14zqc_1 _ds-field_o04yn_1",br="_suggestion_14zqc_1 _ds-suggestion_o04yn_3",vr="_affixes_14zqc_1 _ds-field-affixes_o04yn_1",yr="_fieldset_14zqc_1 _ds-fieldset_o04yn_1",wr="_fileupload_14zqc_1",_r="_helptext_14zqc_1 _ds-focus_o04yn_1",xr="_input_14zqc_1 _ds-input_o04yn_1",Sr="_law_14zqc_1",Er="_grid_14zqc_1",$r="_flex_14zqc_1",Cr="_link_14zqc_1",Ar="_logo_14zqc_1",Tr="__logo_14zqc_1",kr="_pagination_14zqc_1 _ds-pagination_o04yn_3",Lr="_popover_14zqc_1 _ds-popover_o04yn_1",Rr="_print_14zqc_1",Ir="_progress_14zqc_1",Or="__indeterminate_14zqc_1",Mr="_skeleton_14zqc_1 _ds-skeleton_o04yn_3",Dr="__skeleton_14zqc_1",Pr="_spinner_14zqc_1",Nr="_steps_14zqc_1",qr="_table_14zqc_1 _ds-table_o04yn_3",Hr="__scrollShadow_14zqc_1",Br="_tabs_14zqc_1 _ds-tabs_o04yn_3",zr="__scrollMask_14zqc_1",Fr="_tag_14zqc_1 _ds-tag_o04yn_3",Ur="_toast_14zqc_1",Wr="__toastClose_14zqc_1",Vr="__toastOpen_14zqc_1",Gr="__toastTimeout_14zqc_1",jr="_togglegroup_14zqc_1 _ds-toggle-group_o04yn_3",Xr="__tooltip_14zqc_1 _ds-tooltip_o04yn_3",Kr="_heading_14zqc_1 _ds-heading_o04yn_1",Yr="_ingress_14zqc_1",Qr="_muted_14zqc_1",Zr="_info_14zqc_1",Jr="_prose_14zqc_1",ts="_validation_14zqc_1 _ds-validation-message_o04yn_1",es="_body_14zqc_162",ns="__checked_14zqc_1",C={alert:er,app:nr,sticky:or,avatar:ir,badge:rr,breadcrumbs:sr,button:ar,card:lr,group:cr,chip:dr,details:ur,dialog:fr,_drawer:mr,divider:pr,errorsummary:hr,field:gr,suggestion:br,affixes:vr,fieldset:yr,fileupload:wr,helptext:_r,input:xr,law:Sr,grid:Er,flex:$r,link:Cr,logo:Ar,_logo:Tr,pagination:kr,popover:Lr,print:Rr,progress:Ir,_indeterminate:Or,skeleton:Mr,_skeleton:Dr,spinner:Pr,steps:Nr,table:qr,_scrollShadow:Hr,tabs:Br,_scrollMask:zr,tag:Fr,toast:Ur,_toastClose:Wr,_toastOpen:Vr,_toastTimeout:Gr,togglegroup:jr,_tooltip:Xr,heading:Kr,ingress:Yr,muted:Qr,info:Zr,prose:Jr,validation:ts,body:es,_checked:ns},Dc=Object.freeze(Object.defineProperty({__proto__:null,_checked:ns,_drawer:mr,_indeterminate:Or,_logo:Tr,_scrollMask:zr,_scrollShadow:Hr,_skeleton:Dr,_toastClose:Wr,_toastOpen:Vr,_toastTimeout:Gr,_tooltip:Xr,affixes:vr,alert:er,app:nr,avatar:ir,badge:rr,body:es,breadcrumbs:sr,button:ar,card:lr,chip:dr,default:C,details:ur,dialog:fr,divider:pr,errorsummary:hr,field:gr,fieldset:yr,fileupload:wr,flex:$r,grid:Er,group:cr,heading:Kr,helptext:_r,info:Zr,ingress:Yr,input:xr,law:Sr,link:Cr,logo:Ar,muted:Qr,pagination:kr,popover:Lr,print:Rr,progress:Ir,prose:Jr,skeleton:Mr,spinner:Pr,steps:Nr,sticky:or,suggestion:br,table:qr,tabs:Br,tag:Fr,toast:Ur,togglegroup:jr,validation:ts},Symbol.toStringTag,{value:"Module"}));function os(t){var e,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=os(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function Pc(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=os(t))&&(o&&(o+=" "),o+=e);return o}const Zt={capture:!0,passive:!0},P=()=>typeof window<"u"&&typeof document<"u",yt=t=>P()?document.getElementsByClassName(C[t].split(" ")[0]):[];function qt(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}const g=(t,e,n)=>n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),O=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.addEventListener(i,...o);return()=>is(t,...e)},is=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.removeEventListener(i,...o)},st=(t,e)=>{if(!P())return;window._mtdsHotReloadCleanup||(window._mtdsHotReloadCleanup=new Map);const n=()=>{window._mtdsHotReloadCleanup?.get(t)?.map(o=>o()),window._mtdsHotReloadCleanup?.set(t,e())};document.readyState!=="complete"?O(window,"load",n):document.fonts?.ready?.then(n)||setTimeout(n,0)},Jt=(t,e,n)=>{let o=0;const i=()=>{if(!t.isConnected)return r();e(s),s.takeRecords(),o=0},r=()=>s?.disconnect?.(),s=new MutationObserver(()=>{o||(o=requestAnimationFrame(i))});return s.observe(t,n),i(),r},R=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,r]of Object.entries(e))g(o,i,r);return o},Nc=typeof HTMLElement>"u"?class{}:HTMLElement,qc=(t,e)=>!P()||window.customElements.get(t)||window.customElements.define(t,e),Hc=typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets,Bc=(t,e)=>{if(!Hc)return;t.shadowRoot||t.attachShadow({mode:"open"}).append(R("slot"));const n=new CSSStyleSheet;n.replaceSync(e),t.shadowRoot.adoptedStyleSheets=[n]},zc=`[data-command="toggle-app-expanded"],.${C.app.split(" ")[0]} > [command="show-modal"]`,Fc=`.${C.breadcrumbs.split(" ")[0]}`,Uc=`.${C.card.split(" ")[0]}`,rs=`.${C.chip.split(" ")[0]}`,Wc=`.${C.helptext.split(" ")[0]}`,Vc=`.${C.pagination.split(" ")[0]}`,Gc='summary,u-summary,a,button,[role="tab"],[role="button"]',Vn="mattilsynet.matomo.cloud",jc=["setCustomUrl","setDocumentTitle","setReferrerUrl"],W="mtds-analytics-banner",Xc="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function ss(t,e={}){if(P()){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Vn}/matomo.php`])),window._mtm||(window._mtm=window._mtm||[],window._mtm.push({"mtm.startTime":Date.now(),event:"mtm.Start"})),t==="init"){window._mtdsTracking={enabled:window.location.hostname!=="localhost",...window._mtdsTracking,...e};const{consent:n,enabled:o,matomoId:i,matomoTagManagerId:r}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),o){n!=="custom"&&Kc();const s=r?`https://cdn.matomo.cloud/${Vn}/container_${r}.js`:`https://cdn.matomo.cloud/${Vn}/matomo.js`;document.querySelector(`script[src="${s}"]`)||document.head.append(R("script",{async:"",src:s}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics ${t}:`,e);if(t==="pageview"){const{url:n,title:o}=e;window._paq.push(["setCustomUrl",n||location.href]),window._paq.push(["setDocumentTitle",o||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:n,action:o,name:i,value:r}=e,s=["trackEvent",n,o,i,r];let a=location.href;window._paq.push([function(){a=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",a.split("#")[0]]),window._paq.push(s.filter(l=>l!==void 0)),window._paq.push(["setCustomUrl",a])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else if(t==="matomo"){const n=e;jc.includes(n?.[0])&&typeof n[1]!="string"&&(n[1]=`${n[1]??""}`),window._paq.push(n)}}}}function Kc(){if(document.getElementById(W)||window.localStorage.getItem(W))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${W}" data-analytics="ignore"><style>
19
19
  #${W}[open] { box-sizing: border-box; display: flex; align-items: center; background: #116e6b; border-radius: .5em; border: 0; box-shadow: 0 .25em .5em rgba(0,0,0,.3); color: #fff; font-size: .875em; inset: auto auto 1em 1em; max-width: calc(100vw - 2em); outline: 0; padding: .5em; position: fixed; z-index: 99999 }
20
20
  #${W} button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; width: 1.5em; height: 1.5em; font: 300 1.5em/1.35 sans-serif; border-radius: .25em; place-content: center; transition: .2s; transition-property: background, scale }
21
21
  #${W} button:focus-visible { outline: 2px solid }
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
5
5
  [x: string]: any;
6
- }>) => import("react/jsx-runtime").JSX.Element)[];
6
+ }>) => import("react").JSX.Element)[];
7
7
  };
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof meta>;
@@ -7,7 +7,7 @@ declare const meta: {
7
7
  };
8
8
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
9
9
  [x: string]: any;
10
- }>) => import("react/jsx-runtime").JSX.Element)[];
10
+ }>) => import("react").JSX.Element)[];
11
11
  };
12
12
  export default meta;
13
13
  type Story = StoryObj<typeof meta>;
@@ -6,7 +6,7 @@ declare const meta: {
6
6
  };
7
7
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
8
  [x: string]: any;
9
- }>) => import("react/jsx-runtime").JSX.Element)[];
9
+ }>) => import("react").JSX.Element)[];
10
10
  };
11
11
  export default meta;
12
12
  type Story = StoryObj<typeof meta>;
@@ -7,7 +7,7 @@ declare const meta: {
7
7
  };
8
8
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
9
9
  [x: string]: any;
10
- }>) => import("react/jsx-runtime").JSX.Element)[];
10
+ }>) => import("react").JSX.Element)[];
11
11
  };
12
12
  export default meta;
13
13
  type Story = StoryObj<typeof meta>;
@@ -1,4 +1,4 @@
1
- const o = "3.3.2";
1
+ const o = "3.3.3";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -41,7 +41,7 @@ declare const meta: {
41
41
  };
42
42
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
43
43
  [x: string]: any;
44
- }>) => import("react/jsx-runtime").JSX.Element)[];
44
+ }>) => import("react").JSX.Element)[];
45
45
  };
46
46
  export default meta;
47
47
  type Story = StoryObj<typeof meta>;
@@ -7,7 +7,7 @@ declare const meta: {
7
7
  };
8
8
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
9
9
  [x: string]: any;
10
- }>) => import("react/jsx-runtime").JSX.Element)[];
10
+ }>) => import("react").JSX.Element)[];
11
11
  };
12
12
  export default meta;
13
13
  type Story = StoryObj<typeof meta>;
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
5
5
  [x: string]: any;
6
- }>) => import("react/jsx-runtime").JSX.Element)[];
6
+ }>) => import("react").JSX.Element)[];
7
7
  };
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof meta>;
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
5
5
  [x: string]: any;
6
- }>) => import("react/jsx-runtime").JSX.Element)[];
6
+ }>) => import("react").JSX.Element)[];
7
7
  };
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof meta>;
@@ -6,7 +6,7 @@ declare const meta: {
6
6
  };
7
7
  decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
8
  [x: string]: any;
9
- }>) => import("react/jsx-runtime").JSX.Element)[];
9
+ }>) => import("react").JSX.Element)[];
10
10
  };
11
11
  export default meta;
12
12
  type Story = StoryObj<typeof meta>;