@mattilsynet/design 3.3.2 → 3.3.4

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-4design{${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.4",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 }
@@ -207,4 +207,4 @@ Add a heading (h2–h6), or set aria-label or aria-labelledby to provide an acce
207
207
  vertical-align: middle;
208
208
  width: var(--mtds-5);
209
209
  }
210
- `,Td=[.1,.2,.25,.5,1];function kd(t,{aspect:e,type:n}){const i=n==="stacked",r=t[0].reduce((f,p,b)=>{const y=t.map(w=>w[b].number),_=y.reduce((w,x)=>w+x,0);return Math.max(f,...i?[_]:y)},0),s=r/10,a=10**`${Math.round(s)}`.length,l=s/a,c=(Td.find(f=>f>l)||1)*a,u=Math.ceil(r/c)*c,d=R("div",{"aria-label":t[0][0].value||null,class:"axis",role:"figure"});e&&d.style.setProperty("--mtdsc-chart-aspect",e),d.style.setProperty("--bars",`${t[0]?.length-1}`),d.style.setProperty("--groups",`${t.length-1}`),d.style.setProperty("--total",`${u}`);const m=d.appendChild(R("div",{class:"axisSteps"})),h=d.appendChild(R("div",{class:"axisGroups"}));return Array.from({length:u/c+1},(f,p)=>Ld(c*p)).reverse().map(f=>m.append(R("div",{class:"axisStep","data-label":f}))),{total:u,groups:h,axis:d}}const Ld=new Intl.NumberFormat().format;function Rd(t){return t[0].slice(1).map(({value:e,event:n},o)=>{const i=R("div",{class:"axisGroup","data-label":e}),r=i.appendChild(R("div",{class:"axisGroupContent"}));return t.slice(1).map(s=>s[o+1]).map(({tooltip:s,color:a,number:l})=>{const c=R("div",{"aria-label":s,"data-event":n,class:"bar",role:"img",tabindex:"0"});return c.style.setProperty("--color",a),c.style.setProperty("--value",`${l}`),r.appendChild(c)}),i})}function Id(t,{total:e,type:n,variant:o}){const i=Number.parseFloat(n||"0")||0,r=R("div",{class:"axisGroup"});return t.slice(1).forEach(([,...s])=>{const a=R("div",{class:"lineContainer",role:"list"});a.style.setProperty("--color",s[0].color);const l=Od(s.map(({number:d},m,{length:h})=>[100/(h-1)*m,100-d/e*100]),i/100),c=document.createElementNS("http://www.w3.org/2000/svg","svg");g(c,"aria-hidden","true"),g(c,"preserveAspectRatio","none"),g(c,"viewBox","0 0 100 100");const u=document.createElementNS("http://www.w3.org/2000/svg","path");if(g(u,"class","line"),g(u,"d",l),g(u,"fill","none"),g(u,"stroke","currentColor"),o==="area"){const d=u.cloneNode(!0);g(d,"d",`M-100,100 L${l.slice(1)}L200,100`),g(d,"class","lineShade"),c.append(d)}s.forEach(({number:d,tooltip:m,event:h},f)=>{const p=R("div",{role:"listitem"}),b=R("div",{"aria-label":m,"data-event":h,tabindex:"0",class:"linePoint",role:"img"});g(p,"data-label",t[0][f+1]?.value),b.style.setProperty("--value",`${d}`),p.appendChild(b),a.append(p)}),a.appendChild(c).append(u),r.append(a)}),r}const Od=(t,e)=>t.map(([n,o],i,r)=>i?Md(i,r,e):`M${n},${o}`).join(" "),gs=([t,e],[n,o])=>[t+n,e+o],bs=([t,e],[n,o])=>[t-n,e-o],vs=(t,[e,n])=>[t*e,t*n],Md=(t,e,n)=>{const o=e[t-1],i=e[t],[r,s]=gs(o,vs(n,bs(i,e[t-2]||o))),[a,l]=gs(i,vs(n,bs(o,e[t+1]||i)));return`C ${r},${s} ${a},${l} ${i[0]},${i[1]}`};function Dd(t,{aspect:e,variant:n}){const o=document.createElementNS("http://www.w3.org/2000/svg","svg");e&&o.style.setProperty("--mtdsc-chart-aspect",e),g(o,"class","pie"),g(o,"viewBox","0 0 100 100");let i=0;const r=50,s=n==="doughnut"?25:0,a=t.slice(1).reduce((l,[,c])=>l+c.number,0);return t.slice(1).forEach(([,{tooltip:l,number:c,event:u,color:d}])=>{if(!c)return;const m=document.createElementNS("http://www.w3.org/2000/svg","path"),h=i/a;i+=c;const f=Math.min(i/a,.99999),p=f-h>.5?1:0,b=2*Math.PI*(h-.25),y=2*Math.PI*(f-.25),_=Math.cos(b),w=Math.sin(b),x=Math.cos(y),A=Math.sin(y),k=`M ${r+s*_} ${r+s*w} L ${r+r*_} ${r+r*w} A ${r} ${r} 0 ${p} 1 ${r+r*x} ${r+r*A} L ${r+s*x} ${r+s*A} A ${s} ${s} 0 ${p} 0 ${r+s*_} ${r+s*w}`;m.style.setProperty("--color",d),g(m,"aria-label",l),g(m,"data-event",u),g(m,"d",k),g(m,"role","img"),g(m,"tabindex","0"),o.appendChild(m)}),o}const ys="click keydown mousemove mouseout",ws="mtds-chart-tooltip",ut=P()?document.getElementById(ws)||R("div",{"aria-hidden":"true",class:C._tooltip,hidden:"",id:ws}):null;class Pd extends Nc{#t;#e;static get observedAttributes(){return["data-variant","data-aspect"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=qt(()=>this.attributeChangedCallback(),100),n=new ResizeObserver(()=>this.handleResize());n.observe(this),this.#e=()=>n.disconnect(),this.#t=Jt(this,e,{attributeFilter:["data-tooltip"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),requestAnimationFrame(()=>this.attributeChangedCallback()),O(this,ys,this)}disconnectedCallback(){ut&&(ut.hidden=!0),is(this,ys,this),this.#e?.(),this.#t?.(),this.#t=this.#e=void 0}attributeChangedCallback(){const e=Hd(this.querySelector("table"));if(!e[0])return;Array.from(this.shadowRoot?.children||[]).map(c=>c.remove());const[n,o]=(g(this,"data-variant")||"column").split("-"),i=g(this,"data-aspect")||void 0,r=R("div",{"aria-hidden":"hidden",class:"legends",role:"group"});e.slice(1).forEach(([{value:c,color:u}])=>{const d=R("div",{class:"legend"},c);r.appendChild(d).style.setProperty("--color",u)});const{axis:s,groups:a,total:l}=kd(e,{aspect:i,type:o});(n==="column"||n==="bar")&&a.append(...Rd(e)),(n==="line"||n==="area")&&a.append(Id(e,{total:l,variant:n,type:o})),(n==="doughnut"||n==="pie")&&this.shadowRoot?.append(Dd(e,{aspect:i,variant:n})),this.shadowRoot?.append(s,r),Bc(this,Ad)}handleEvent(e){e.type==="click"||e.type==="keydown"?Nd(e,this):qd(e)}handleResize(){const e=this.shadowRoot?.firstElementChild,n=e?.firstElementChild;e?.classList.toggle("axisStepsYHalf",(n?.offsetHeight||0)<400),e?.classList.toggle("axisStepsXHalf",(n?.offsetWidth||0)<500)}}function Nd(t,e){if(t instanceof KeyboardEvent&&t.key!=="Enter")return;const n=t.composedPath()[0],o=e.querySelector("table"),[i,r]=n instanceof Element&&g(n,"data-event")?.split("-").map(Number)||[];o?.rows[i]?.cells[r]?.querySelector("a,button")?.click?.()}let _s="";function qd(t){if(!ut)return;ut?.isConnected||document.body.append(ut);const e=t.composedPath()[0],n=e instanceof Element&&e.getAttribute("aria-label")||"";n&&(ut.style.transform=`translate(${Math.min(t.clientX,window.innerWidth)}px, ${t.clientY}px)`),n!==_s&&(n&&(ut.textContent=n),_s=n,ut.hidden=!n)}const Jn=t=>t?.textContent?.trim()||"",Hd=t=>Array.from(t?.rows||[]).map((e,n,{length:o})=>Array.from(e.cells,(i,r)=>{const s=Jn(e.cells[0]),a=Jn(t?.rows[0].cells[r]),l=Jn(i),c=o===2?`${a}: ${l}`:`${s}: ${l}${a?` (${a})`:""}`;return g(i,"tabindex","-1"),{number:r&&n&&Number.parseFloat(l)||0,event:i.querySelector("a,button")&&`${n}-${r}`,color:`var(--mtdsc-chart-color-${n}-${r}, var(--mtdsc-chart-color-${n}, var(--mtdsc-chart-color-base)))`,value:l,tooltip:g(i,"data-tooltip")||c}}));qc("mtds-chart",Pd);const xs=new WeakSet,N=t=>!xs.has(t)&&xs.add(t),M=(t,e,n)=>window.dsWarnings===!1||console.warn(`\x1B[1m@mattilsynet/design:\x1B[m ${t} is deprecated, please use ${e}:`,n),Bd=yt("togglegroup"),Ss=C.button.split(" "),zd=()=>{for(const t of Bd){N(t)&&!t.hasAttribute("data-toggle-group")&&(g(t,"data-toggle-group","Valgknapper"),M('Only setting class="styles.togglegroup"','data-toggle-group="LABEL-HERE" attribute also for better accessibility',t));for(const e of t.getElementsByTagName("label"))N(e)&&!e.classList.contains(Ss[0])&&(e.classList.add(...Ss),M('Only setting class="styles.button"','<label class="styles.button">',e))}},Fd=yt("breadcrumbs"),Ud=()=>{for(const t of Fd)N(t)&&t.nodeName!=="DS-BREADCRUMBS"&&(t.classList.add(...C.breadcrumbs.split(" ")),M('Only setting class="styles.breadcrumbs"','<ds-breadcrumbs class="styles.breadcrumbs">',t))},Wd=yt("errorsummary"),Vd=()=>{for(const t of Wd)N(t)&&t.nodeName!=="DS-ERROR-SUMMARY"&&M('Only setting class="styles.errorsummary"','<ds-error-summary class="styles.errorsummary">',t)},Gd=yt("dialog"),Es=()=>{for(const t of Gd){if(N(t)){const e=g(t,"data-closedby");e&&(g(t,"closedby",e),M(`<dialog data-closedby="${e}">`,`<dialog closedby="${e}">`,t)),t.hasAttribute("data-variant")&&M('<dialog data-variant="drawer">','<dialog data-placement="center|left|right|top|bottom">',t)}t.isConnected&&t.showModal&&t.close&&(t.matches('[open][data-modal]:not([data-modal="false"]):not(:modal)')?(M('<dialog data-modal="true">','.showModal() or <button command="show-modal" commandfor="DIALOG-ID"></button>',t),g(t,"open",null),t.showModal()):t.matches(":modal:not([open])")&&(g(t,"open",""),t.close()))}},jd=()=>{for(const t of document.querySelectorAll("[data-count]"))if(N(t)){const e=g(t,"data-count");t.classList.add(...C.validation.split(" ")),g(t,"data-limit",e),M(`data-count="${e}"`,`class="styles.validation" data-field="counter" data-limit="${e}"`,t)}},Xd=()=>{for(const t of document.querySelectorAll("[data-command]"))if(N(t)){const e=g(t,"data-command");e==="row"?M(`<${t.nodeName.toLowerCase()} data-command="${e}">`,`<tr data-clickdelegatefor="${t.nodeName}-ID">`,t):M(`<button data-command="${e}">`,`<button command="${e?.replace("toggle-app-expanded","show-modal")}" commandfor="TARGET-ID">`,t)}},Kd=P()?document.getElementsByTagName("u-tabs"):[],Yd=()=>{for(const t of Kd)N(t)&&M("u-tabs","ds-tabs",t)},to=C.suggestion.split(" "),Qd=P()?document.getElementsByTagName("u-combobox"):[],Zd=P()?document.getElementsByTagName("ds-suggestion"):[],Jd=()=>{for(const t of Qd)N(t)&&(t.classList.add(...to),M("<u-combobox>",'<ds-suggestion class="styles.suggestion">',t));for(const t of Zd)N(t)&&!t.classList.contains(to[0])&&(t.classList.add(...to),M("Only using <ds-suggestion>",'<ds-suggestion class="styles.suggestion">',t))},tu=({target:t})=>{if(!(t instanceof Element))return;const e=t?.closest("tr")?.querySelector('[data-command="row"]');e&&!t?.closest('a,button,label,input,select,textarea,[role="button"]')&&e.click();const o=t?.closest("dialog");o&&t?.closest('[data-command="close"]')&&o.close()},eu=yt("field"),ze=new Set,nu=()=>{for(const t of eu)t.nodeName!=="DS-FIELD"&&(N(t)||M('Only setting class="styles.field"','<ds-field class="styles.field">',t),!ze.has(t)&&ze.add(t)&&we.prototype.connectedCallback.call(t))},ou=()=>{for(const t of ze)we.prototype.disconnectedCallback.call(t),ze.delete(t)},iu=`[data-description], .${C.field.split(" ")[0]} label + p`,ru=()=>{for(const t of document.querySelectorAll(iu))N(t)&&t.getAttribute("data-field")!=="description"&&(g(t,"data-field","description"),M("Descriptions created by data-description of <p> only",'data-field="data-description"',t))},su=yt("validation"),au=()=>{for(const t of su)N(t)&&!t.hasAttribute("data-field")&&(g(t,"data-field","validation"),M('Only setting class="styles.validation"','class="styles.validation" data-field="validation"',t))},lu=()=>{for(const t of document.querySelectorAll("[popover][data-position]"))N(t)&&(g(t,"data-placement",g(t,"data-position")),M("data-position","data-placement",t))},cu=qt(()=>{P()&&(jd(),Xd(),Ud(),Es(),Vd(),ru(),au(),lu(),nu(),zd(),Jd(),Yd())},200);st("deprecations",()=>[ou,O(document,"click",tu,Zt),O(document,"toggle",Es,!0),Jt(document,cu,{attributeFilter:["class","data-command","data-count","data-description","data-variant","open"],attributes:!0,childList:!0,subtree:!0})]);const du=qt(t=>{if(t.animationName!==C._logo)return;const e=t.target.closest?.(`.${C.logo.split(" ")[0]}`),n=e?.firstElementChild;if(n instanceof SVGSVGElement){for(const l of document.head.querySelectorAll("link[rel~='icon']"))l.setAttribute("rel","disabled");const o=e?.hasAttribute("data-env"),i=window.getComputedStyle(n),r=i.getPropertyValue("color"),s=i.getPropertyValue("--mtdsc-logo-background"),a=n.outerHTML.replace(/\n+/g," ").replace(/(fill|width|height|xmlns)="[^"]+"/gi,"").replace("<svg",`<svg width="40" height="40" fill="${r}"`);document.head.appendChild(R("link",{href:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${o?"none":s}' width='51' height='51' x='2' y='2' stroke='${r}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${o?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${a}</g></svg>`)}`,rel:"icon"}))}},200);st("logo",()=>[O(document,"animationend",du)]);const uu=C.popover.split(" ")[0];function fu({target:t}){const e=t?.closest?.('a,button,[role="button"]'),n=e instanceof HTMLButtonElement,o=e&&g(e,"popovertarget"),i=o?document.getElementById(o):e?.closest("[popover]");if(!(o&&n)&&i?.classList.contains(uu)&&e){const r=g(e,"popovertargetaction"),s=r==="show"||(r==="hide"?!1:void 0);if(n&&!r&&i.contains(e))return;i instanceof HTMLElement&&i.popover&&i.togglePopover(s)}}st("popover",()=>[O(document,"click",fu)]);const eo=new WeakSet,mu=P()?document.getElementsByTagName("table"):[],$s=P()&&window.ResizeObserver?new ResizeObserver(qt(Cs,200)):null;function Cs(t){for(const{target:e,contentRect:n}of t)if(!e.isConnected)eo.delete(e)&&$s?.unobserve(e);else{const i=e.getAttribute("data-mobile-source")==="self"?n.width:window.innerWidth,r=Number(e.getAttribute("data-mobile-size"))||768;g(e,"data-mobile-active",i<r?"":null)}}function pu(){for(const t of mu)if(t.hasAttribute("data-mobile")){const e=Array.from(t.tHead?.rows[0]?.cells||[],n=>n.innerText.trim());eo.has(t)||(eo.add(t),$s?.observe(t),Cs([{target:t,contentRect:t.getBoundingClientRect()}]));for(const n of t.tBodies)for(const o of n.rows)for(const i of o.cells)g(i,"data-th",e[i.cellIndex]||":empty")}}st("table",()=>[Jt(document,pu,{attributeFilter:["data-mobile"],attributes:!0,childList:!0,subtree:!0})]);const As=C.toast.split(" ")[0],Fe="data-sort";function hu({animationName:t,target:e}){const n=e;if(t===C._toastTimeout&&n.close(),t!==C._toastOpen)return;const o=Number(g(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(Fe)||g(n,Fe,`${Date.now()}`),g(n,"tabindex","0"),[...document.querySelectorAll(`.${As}[open]`)].sort((i,r)=>Number(g(r,Fe))-Number(g(i,Fe))).reduce((i,r)=>(r.style.translate=`0 ${r===e?0:i}px`,i+r.offsetHeight+5),0)}function gu({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(As)&&g(t,"data-closedby")!=="none"){const o=t.getBoundingClientRect(),i=window.getComputedStyle(t),r=window.getComputedStyle(t,"::after"),s=o.top+Number.parseInt(i.paddingTop,10),a=s+Number.parseInt(r.height,10),l=o.right-Number.parseInt(i.paddingRight,10),c=l-Number.parseInt(r.width,10);s<=n&&n<=a&&c<=e&&e<=l&&t.close()}}st("toast",()=>[O(document,"animationstart",hu),O(document,"click",gu)]),P()&&Vo(document.getElementById("mtds-tooltip")||R("div",{class:C._tooltip,id:"mtds-tooltip",popover:"manual"}));const no=`.${C.field.split(" ")[0]}`,bu=`${no} :is(input,textarea,select)`,vu="ds-suggestion,u-combobox",yu=C.validation.split(" ")[0],Ue=t=>t instanceof HTMLFormElement&&g(t,"data-validation")==="form",oo=t=>t.closest(no),io=t=>t?.querySelectorAll(bu)||[],We=t=>t?.getElementsByClassName(yu)||[],Ts=t=>{const e=!t.clientHeight||t.disabled||t.readOnly||g(t,"aria-readonly")==="true"||g(t,"aria-disabled")==="true",n=t.closest(vu)?.items,o=g(t,"aria-required")!=="true"||!!n?.length;return n&&t.setCustomValidity(e||o?"":"Required"),e?!1:t.matches(":user-invalid")},ks=t=>{const e=t.target?.form||t.target;let n;if(Ue(e)){for(const o of e.querySelectorAll(no)){const i=[...io(o)].find(Ts);!n&&i&&(n=i);for(const r of We(o))g(r,"hidden",i?null:"")}for(const o of e.querySelectorAll("fieldset")){const i=[...io(o)].some(Ts);for(const r of We(o))oo(r)||g(r,"hidden",i?null:"")}n&&(t.preventDefault(),n.focus())}},wu=({target:t})=>{const e=t;if(Ue(e.form))for(const n of We(e.closest("fieldset")||oo(e)))g(n,"hidden","")},_u=t=>Ue(t.target.form)&&t?.preventDefault(),xu=P()?We(document):[],Su=()=>{for(const t of xu)if(!t.hasAttribute("data-validation")){const e=io(oo(t))[0];g(t,"data-validation","form"),Ue(e?.form)&&g(t,"hidden","")}};st("validations",()=>[O(document,"input comboboxbeforeselect",wu,!0),O(document,"invalid",_u,!0),O(document,"invalid",qt(ks,10),Zt),O(document,"submit",ks,!0),Jt(document,Su,{childList:!0,subtree:!0})]);const Eu=P()?document.getElementsByTagName("u-datalist"):[],Ls=new WeakSet,$u=()=>{for(const t of Eu)Ls.has(t)||(t.closest("ds-suggestion")?.connectedCallback(),Ls.add(t))};return st("deprecations",()=>[Jt(document,$u,{childList:!0,subtree:!0})]),$.DSBreadcrumbsElement=Ko,$.DSErrorSummaryElement=Yo,$.DSFieldElement=we,$.DSPaginationElement=ri,$.DSSuggestionElement=_i,$.DSTabElement=Di,$.DSTabListElement=Mi,$.DSTabPanelElement=Pi,$.DSTabsElement=Oi,$.UHTMLComboboxElement=_n,$.UHTMLComboboxShadowRoot=Ol,$.UHTMLComboboxStyle=wn,$.UHTMLDataListElement=Qi,$.UHTMLDataListShadowRoot=Ac,$.UHTMLDataListStyle=Hn,$.analytics=ss,$.fixLawHtml=ps,$.getLawChecked=bd,$.pagination=ii,$.parseLawIds=wd,$.parseLawMeta=_d,$.setLawChecked=yd,$.setTooltipElement=Vo,$.styles=Dc,$.toast=D,$.toggleAppExpanded=ds,$.toggleLawChecked=vd,$.version=Mc,Object.defineProperty($,Symbol.toStringTag,{value:"Module"}),$})({});
210
+ `,Td=[.1,.2,.25,.5,1];function kd(t,{aspect:e,type:n}){const i=n==="stacked",r=t[0].reduce((f,p,b)=>{const y=t.map(w=>w[b].number),_=y.reduce((w,x)=>w+x,0);return Math.max(f,...i?[_]:y)},0),s=r/10,a=10**`${Math.round(s)}`.length,l=s/a,c=(Td.find(f=>f>l)||1)*a,u=Math.ceil(r/c)*c,d=R("div",{"aria-label":t[0][0].value||null,class:"axis",role:"figure"});e&&d.style.setProperty("--mtdsc-chart-aspect",e),d.style.setProperty("--bars",`${t[0]?.length-1}`),d.style.setProperty("--groups",`${t.length-1}`),d.style.setProperty("--total",`${u}`);const m=d.appendChild(R("div",{class:"axisSteps"})),h=d.appendChild(R("div",{class:"axisGroups"}));return Array.from({length:u/c+1},(f,p)=>Ld(c*p)).reverse().map(f=>m.append(R("div",{class:"axisStep","data-label":f}))),{total:u,groups:h,axis:d}}const Ld=new Intl.NumberFormat().format;function Rd(t){return t[0].slice(1).map(({value:e,event:n},o)=>{const i=R("div",{class:"axisGroup","data-label":e}),r=i.appendChild(R("div",{class:"axisGroupContent"}));return t.slice(1).map(s=>s[o+1]).map(({tooltip:s,color:a,number:l})=>{const c=R("div",{"aria-label":s,"data-event":n,class:"bar",role:"img",tabindex:"0"});return c.style.setProperty("--color",a),c.style.setProperty("--value",`${l}`),r.appendChild(c)}),i})}function Id(t,{total:e,type:n,variant:o}){const i=Number.parseFloat(n||"0")||0,r=R("div",{class:"axisGroup"});return t.slice(1).forEach(([,...s])=>{const a=R("div",{class:"lineContainer",role:"list"});a.style.setProperty("--color",s[0].color);const l=Od(s.map(({number:d},m,{length:h})=>[100/(h-1)*m,100-d/e*100]),i/100),c=document.createElementNS("http://www.w3.org/2000/svg","svg");g(c,"aria-hidden","true"),g(c,"preserveAspectRatio","none"),g(c,"viewBox","0 0 100 100");const u=document.createElementNS("http://www.w3.org/2000/svg","path");if(g(u,"class","line"),g(u,"d",l),g(u,"fill","none"),g(u,"stroke","currentColor"),o==="area"){const d=u.cloneNode(!0);g(d,"d",`M-100,100 L${l.slice(1)}L200,100`),g(d,"class","lineShade"),c.append(d)}s.forEach(({number:d,tooltip:m,event:h},f)=>{const p=R("div",{role:"listitem"}),b=R("div",{"aria-label":m,"data-event":h,tabindex:"0",class:"linePoint",role:"img"});g(p,"data-label",t[0][f+1]?.value),b.style.setProperty("--value",`${d}`),p.appendChild(b),a.append(p)}),a.appendChild(c).append(u),r.append(a)}),r}const Od=(t,e)=>t.map(([n,o],i,r)=>i?Md(i,r,e):`M${n},${o}`).join(" "),gs=([t,e],[n,o])=>[t+n,e+o],bs=([t,e],[n,o])=>[t-n,e-o],vs=(t,[e,n])=>[t*e,t*n],Md=(t,e,n)=>{const o=e[t-1],i=e[t],[r,s]=gs(o,vs(n,bs(i,e[t-2]||o))),[a,l]=gs(i,vs(n,bs(o,e[t+1]||i)));return`C ${r},${s} ${a},${l} ${i[0]},${i[1]}`};function Dd(t,{aspect:e,variant:n}){const o=document.createElementNS("http://www.w3.org/2000/svg","svg");e&&o.style.setProperty("--mtdsc-chart-aspect",e),g(o,"class","pie"),g(o,"viewBox","0 0 100 100");let i=0;const r=50,s=n==="doughnut"?25:0,a=t.slice(1).reduce((l,[,c])=>l+c.number,0);return t.slice(1).forEach(([,{tooltip:l,number:c,event:u,color:d}])=>{if(!c)return;const m=document.createElementNS("http://www.w3.org/2000/svg","path"),h=i/a;i+=c;const f=Math.min(i/a,.99999),p=f-h>.5?1:0,b=2*Math.PI*(h-.25),y=2*Math.PI*(f-.25),_=Math.cos(b),w=Math.sin(b),x=Math.cos(y),A=Math.sin(y),k=`M ${r+s*_} ${r+s*w} L ${r+r*_} ${r+r*w} A ${r} ${r} 0 ${p} 1 ${r+r*x} ${r+r*A} L ${r+s*x} ${r+s*A} A ${s} ${s} 0 ${p} 0 ${r+s*_} ${r+s*w}`;m.style.setProperty("--color",d),g(m,"aria-label",l),g(m,"data-event",u),g(m,"d",k),g(m,"role","img"),g(m,"tabindex","0"),o.appendChild(m)}),o}const ys="click keydown mousemove mouseout",ws="mtds-chart-tooltip",ut=P()?document.getElementById(ws)||R("div",{"aria-hidden":"true",class:C._tooltip,hidden:"",id:ws}):null;class Pd extends Nc{#t;#e;static get observedAttributes(){return["data-variant","data-aspect"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=qt(()=>this.attributeChangedCallback(),100),n=new ResizeObserver(()=>this.handleResize());n.observe(this),this.#e=()=>n.disconnect(),this.#t=Jt(this,e,{attributeFilter:["data-tooltip"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),requestAnimationFrame(()=>this.attributeChangedCallback()),O(this,ys,this)}disconnectedCallback(){ut&&(ut.hidden=!0),is(this,ys,this),this.#e?.(),this.#t?.(),this.#t=this.#e=void 0}attributeChangedCallback(){const e=Hd(this.querySelector("table"));if(!e[0])return;Array.from(this.shadowRoot?.children||[]).map(c=>c.remove());const[n,o]=(g(this,"data-variant")||"column").split("-"),i=g(this,"data-aspect")||void 0,r=R("div",{"aria-hidden":"hidden",class:"legends",role:"group"});e.slice(1).forEach(([{value:c,color:u}])=>{const d=R("div",{class:"legend"},c);r.appendChild(d).style.setProperty("--color",u)});const{axis:s,groups:a,total:l}=kd(e,{aspect:i,type:o});(n==="column"||n==="bar")&&a.append(...Rd(e)),(n==="line"||n==="area")&&a.append(Id(e,{total:l,variant:n,type:o})),(n==="doughnut"||n==="pie")&&this.shadowRoot?.append(Dd(e,{aspect:i,variant:n})),this.shadowRoot?.append(s,r),Bc(this,Ad)}handleEvent(e){e.type==="click"||e.type==="keydown"?Nd(e,this):qd(e)}handleResize(){const e=this.shadowRoot?.firstElementChild,n=e?.firstElementChild;e?.classList.toggle("axisStepsYHalf",(n?.offsetHeight||0)<400),e?.classList.toggle("axisStepsXHalf",(n?.offsetWidth||0)<500)}}function Nd(t,e){if(t instanceof KeyboardEvent&&t.key!=="Enter")return;const n=t.composedPath()[0],o=e.querySelector("table"),[i,r]=n instanceof Element&&g(n,"data-event")?.split("-").map(Number)||[];o?.rows[i]?.cells[r]?.querySelector("a,button")?.click?.()}let _s="";function qd(t){if(!ut)return;ut?.isConnected||document.body.append(ut);const e=t.composedPath()[0],n=e instanceof Element&&e.getAttribute("aria-label")||"";n&&(ut.style.transform=`translate(${Math.min(t.clientX,window.innerWidth)}px, ${t.clientY}px)`),n!==_s&&(n&&(ut.textContent=n),_s=n,ut.hidden=!n)}const Jn=t=>t?.textContent?.trim()||"",Hd=t=>Array.from(t?.rows||[]).map((e,n,{length:o})=>Array.from(e.cells,(i,r)=>{const s=Jn(e.cells[0]),a=Jn(t?.rows[0].cells[r]),l=Jn(i),c=o===2?`${a}: ${l}`:`${s}: ${l}${a?` (${a})`:""}`;return g(i,"tabindex","-1"),{number:r&&n&&Number.parseFloat(l)||0,event:i.querySelector("a,button")&&`${n}-${r}`,color:`var(--mtdsc-chart-color-${n}-${r}, var(--mtdsc-chart-color-${n}, var(--mtdsc-chart-color-base)))`,value:l,tooltip:g(i,"data-tooltip")||c}}));qc("mtds-chart",Pd);const xs=new WeakSet,N=t=>!xs.has(t)&&xs.add(t),M=(t,e,n)=>window.dsWarnings===!1||console.warn(`\x1B[1m@mattilsynet/design:\x1B[m ${t} is deprecated, please use ${e}:`,n),Bd=yt("togglegroup"),Ss=C.button.split(" "),zd=()=>{for(const t of Bd){N(t)&&!t.hasAttribute("data-toggle-group")&&(g(t,"data-toggle-group","Valgknapper"),M('Only setting class="styles.togglegroup"','data-toggle-group="LABEL-HERE" attribute also for better accessibility',t));for(const e of t.getElementsByTagName("label"))N(e)&&!e.classList.contains(Ss[0])&&(e.classList.add(...Ss),M('Only setting class="styles.button"','<label class="styles.button">',e))}},Fd=yt("breadcrumbs"),Ud=()=>{for(const t of Fd)N(t)&&t.nodeName!=="DS-BREADCRUMBS"&&(t.classList.add(...C.breadcrumbs.split(" ")),M('Only setting class="styles.breadcrumbs"','<ds-breadcrumbs class="styles.breadcrumbs">',t))},Wd=yt("errorsummary"),Vd=()=>{for(const t of Wd)N(t)&&t.nodeName!=="DS-ERROR-SUMMARY"&&M('Only setting class="styles.errorsummary"','<ds-error-summary class="styles.errorsummary">',t)},Gd=yt("dialog"),Es=()=>{for(const t of Gd){if(N(t)){const e=g(t,"data-closedby");e&&(g(t,"closedby",e),M(`<dialog data-closedby="${e}">`,`<dialog closedby="${e}">`,t)),t.hasAttribute("data-variant")&&M('<dialog data-variant="drawer">','<dialog data-placement="center|left|right|top|bottom">',t)}t.isConnected&&t.showModal&&t.close&&(t.matches('[open][data-modal]:not([data-modal="false"]):not(:modal)')?(M('<dialog data-modal="true">','.showModal() or <button command="show-modal" commandfor="DIALOG-ID"></button>',t),g(t,"open",null),t.showModal()):t.matches(":modal:not([open])")&&(g(t,"open",""),t.close()))}},jd=()=>{for(const t of document.querySelectorAll("[data-count]"))if(N(t)){const e=g(t,"data-count");t.classList.add(...C.validation.split(" ")),g(t,"data-limit",e),M(`data-count="${e}"`,`class="styles.validation" data-field="counter" data-limit="${e}"`,t)}},Xd=()=>{for(const t of document.querySelectorAll("[data-command]"))if(N(t)){const e=g(t,"data-command");e==="row"?M(`<${t.nodeName.toLowerCase()} data-command="${e}">`,`<tr data-clickdelegatefor="${t.nodeName}-ID">`,t):M(`<button data-command="${e}">`,`<button command="${e?.replace("toggle-app-expanded","show-modal")}" commandfor="TARGET-ID">`,t)}},Kd=P()?document.getElementsByTagName("u-tabs"):[],Yd=()=>{for(const t of Kd)N(t)&&M("u-tabs","ds-tabs",t)},to=C.suggestion.split(" "),Qd=P()?document.getElementsByTagName("u-combobox"):[],Zd=P()?document.getElementsByTagName("ds-suggestion"):[],Jd=()=>{for(const t of Qd)N(t)&&(t.classList.add(...to),M("<u-combobox>",'<ds-suggestion class="styles.suggestion">',t));for(const t of Zd)N(t)&&!t.classList.contains(to[0])&&(t.classList.add(...to),M("Only using <ds-suggestion>",'<ds-suggestion class="styles.suggestion">',t))},tu=({target:t})=>{if(!(t instanceof Element))return;const e=t?.closest("tr")?.querySelector('[data-command="row"]');e&&!t?.closest('a,button,label,input,select,textarea,[role="button"]')&&e.click();const o=t?.closest("dialog");o&&t?.closest('[data-command="close"]')&&o.close()},eu=yt("field"),ze=new Set,nu=()=>{for(const t of eu)t.nodeName!=="DS-FIELD"&&(N(t)||M('Only setting class="styles.field"','<ds-field class="styles.field">',t),!ze.has(t)&&ze.add(t)&&we.prototype.connectedCallback.call(t))},ou=()=>{for(const t of ze)we.prototype.disconnectedCallback.call(t),ze.delete(t)},iu=`[data-description], .${C.field.split(" ")[0]} label + p`,ru=()=>{for(const t of document.querySelectorAll(iu))N(t)&&t.getAttribute("data-field")!=="description"&&(g(t,"data-field","description"),M("Descriptions created by data-description of <p> only",'data-field="data-description"',t))},su=yt("validation"),au=()=>{for(const t of su)N(t)&&!t.hasAttribute("data-field")&&(g(t,"data-field","validation"),M('Only setting class="styles.validation"','class="styles.validation" data-field="validation"',t))},lu=()=>{for(const t of document.querySelectorAll("[popover][data-position]"))N(t)&&(g(t,"data-placement",g(t,"data-position")),M("data-position","data-placement",t))},cu=qt(()=>{P()&&(jd(),Xd(),Ud(),Es(),Vd(),ru(),au(),lu(),nu(),zd(),Jd(),Yd())},200);st("deprecations",()=>[ou,O(document,"click",tu,Zt),O(document,"toggle",Es,!0),Jt(document,cu,{attributeFilter:["class","data-command","data-count","data-description","data-variant","open"],attributes:!0,childList:!0,subtree:!0})]);const du=qt(t=>{if(t.animationName!==C._logo)return;const e=t.target.closest?.(`.${C.logo.split(" ")[0]}`),n=e?.firstElementChild;if(n instanceof SVGSVGElement){for(const l of document.head.querySelectorAll("link[rel~='icon']"))l.setAttribute("rel","disabled");const o=e?.hasAttribute("data-env"),i=window.getComputedStyle(n),r=i.getPropertyValue("color"),s=i.getPropertyValue("--mtdsc-logo-background"),a=n.outerHTML.replace(/\n+/g," ").replace(/(fill|width|height|xmlns)="[^"]+"/gi,"").replace("<svg",`<svg width="40" height="40" fill="${r}"`);document.head.appendChild(R("link",{href:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${o?"none":s}' width='51' height='51' x='2' y='2' stroke='${r}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${o?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${a}</g></svg>`)}`,rel:"icon"}))}},200);st("logo",()=>[O(document,"animationend",du)]);const uu=C.popover.split(" ")[0];function fu({target:t}){const e=t?.closest?.('a,button,[role="button"]'),n=e instanceof HTMLButtonElement,o=e&&g(e,"popovertarget"),i=o?document.getElementById(o):e?.closest("[popover]");if(!(o&&n)&&i?.classList.contains(uu)&&e){const r=g(e,"popovertargetaction"),s=r==="show"||(r==="hide"?!1:void 0);if(n&&!r&&i.contains(e))return;i instanceof HTMLElement&&i.popover&&i.togglePopover(s)}}st("popover",()=>[O(document,"click",fu)]);const eo=new WeakSet,mu=P()?document.getElementsByTagName("table"):[],$s=P()&&window.ResizeObserver?new ResizeObserver(qt(Cs,200)):null;function Cs(t){for(const{target:e,contentRect:n}of t)if(!e.isConnected)eo.delete(e)&&$s?.unobserve(e);else{const i=e.getAttribute("data-mobile-source")==="self"?n.width:window.innerWidth,r=Number(e.getAttribute("data-mobile-size"))||768;g(e,"data-mobile-active",i<r?"":null)}}function pu(){for(const t of mu)if(t.hasAttribute("data-mobile")){const e=Array.from(t.tHead?.rows[0]?.cells||[],n=>(n.innerText??n.textContent)?.trim()||"");eo.has(t)||(eo.add(t),$s?.observe(t),Cs([{target:t,contentRect:t.getBoundingClientRect()}]));for(const n of t.tBodies)for(const o of n.rows)for(const i of o.cells)g(i,"data-th",e[i.cellIndex]||":empty")}}st("table",()=>[Jt(document,pu,{attributeFilter:["data-mobile"],attributes:!0,childList:!0,subtree:!0})]);const As=C.toast.split(" ")[0],Fe="data-sort";function hu({animationName:t,target:e}){const n=e;if(t===C._toastTimeout&&n.close(),t!==C._toastOpen)return;const o=Number(g(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(Fe)||g(n,Fe,`${Date.now()}`),g(n,"tabindex","0"),[...document.querySelectorAll(`.${As}[open]`)].sort((i,r)=>Number(g(r,Fe))-Number(g(i,Fe))).reduce((i,r)=>(r.style.translate=`0 ${r===e?0:i}px`,i+r.offsetHeight+5),0)}function gu({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(As)&&g(t,"data-closedby")!=="none"){const o=t.getBoundingClientRect(),i=window.getComputedStyle(t),r=window.getComputedStyle(t,"::after"),s=o.top+Number.parseInt(i.paddingTop,10),a=s+Number.parseInt(r.height,10),l=o.right-Number.parseInt(i.paddingRight,10),c=l-Number.parseInt(r.width,10);s<=n&&n<=a&&c<=e&&e<=l&&t.close()}}st("toast",()=>[O(document,"animationstart",hu),O(document,"click",gu)]),P()&&Vo(document.getElementById("mtds-tooltip")||R("div",{class:C._tooltip,id:"mtds-tooltip",popover:"manual"}));const no=`.${C.field.split(" ")[0]}`,bu=`${no} :is(input,textarea,select)`,vu="ds-suggestion,u-combobox",yu=C.validation.split(" ")[0],Ue=t=>t instanceof HTMLFormElement&&g(t,"data-validation")==="form",oo=t=>t.closest(no),io=t=>t?.querySelectorAll(bu)||[],We=t=>t?.getElementsByClassName(yu)||[],Ts=t=>{const e=!t.clientHeight||t.disabled||t.readOnly||g(t,"aria-readonly")==="true"||g(t,"aria-disabled")==="true",n=t.closest(vu)?.items,o=g(t,"aria-required")!=="true"||!!n?.length;return n&&t.setCustomValidity(e||o?"":"Required"),e?!1:t.matches(":user-invalid")},ks=t=>{const e=t.target?.form||t.target;let n;if(Ue(e)){for(const o of e.querySelectorAll(no)){const i=[...io(o)].find(Ts);!n&&i&&(n=i);for(const r of We(o))g(r,"hidden",i?null:"")}for(const o of e.querySelectorAll("fieldset")){const i=[...io(o)].some(Ts);for(const r of We(o))oo(r)||g(r,"hidden",i?null:"")}n&&(t.preventDefault(),n.focus())}},wu=({target:t})=>{const e=t;if(Ue(e.form))for(const n of We(e.closest("fieldset")||oo(e)))g(n,"hidden","")},_u=t=>Ue(t.target.form)&&t?.preventDefault(),xu=P()?We(document):[],Su=()=>{for(const t of xu)if(!t.hasAttribute("data-validation")){const e=io(oo(t))[0];g(t,"data-validation","form"),Ue(e?.form)&&g(t,"hidden","")}};st("validations",()=>[O(document,"input comboboxbeforeselect",wu,!0),O(document,"invalid",_u,!0),O(document,"invalid",qt(ks,10),Zt),O(document,"submit",ks,!0),Jt(document,Su,{childList:!0,subtree:!0})]);const Eu=P()?document.getElementsByTagName("u-datalist"):[],Ls=new WeakSet,$u=()=>{for(const t of Eu)Ls.has(t)||(t.closest("ds-suggestion")?.connectedCallback(),Ls.add(t))};return st("deprecations",()=>[Jt(document,$u,{childList:!0,subtree:!0})]),$.DSBreadcrumbsElement=Ko,$.DSErrorSummaryElement=Yo,$.DSFieldElement=we,$.DSPaginationElement=ri,$.DSSuggestionElement=_i,$.DSTabElement=Di,$.DSTabListElement=Mi,$.DSTabPanelElement=Pi,$.DSTabsElement=Oi,$.UHTMLComboboxElement=_n,$.UHTMLComboboxShadowRoot=Ol,$.UHTMLComboboxStyle=wn,$.UHTMLDataListElement=Qi,$.UHTMLDataListShadowRoot=Ac,$.UHTMLDataListStyle=Hn,$.analytics=ss,$.fixLawHtml=ps,$.getLawChecked=bd,$.pagination=ii,$.parseLawIds=wd,$.parseLawMeta=_d,$.setLawChecked=yd,$.setTooltipElement=Vo,$.styles=Dc,$.toast=D,$.toggleAppExpanded=ds,$.toggleLawChecked=vd,$.version=Mc,Object.defineProperty($,Symbol.toStringTag,{value:"Module"}),$})({});
@@ -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.4";
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>;