@mattilsynet/design 3.2.1 → 3.2.2

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.
@@ -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-2-1design{${b}`);
22
+ @layer mt.v3-2-2design{${b}`);
23
23
  }
24
24
  connectedCallback() {
25
25
  const t = this.shadowRoot?.lastElementChild, e = a(this, "data-cluster") ?? "false", o = new i.TileLayer(k, {
@@ -25,7 +25,7 @@ Please use <details> and <summary>, but import '@u-elements/u-details/polyfill'
25
25
  ::slotted([role="option"]:focus) { ${ru} }
26
26
  ::slotted([role="option"][aria-hidden="true"]),
27
27
  ::slotted([role="option"][disabled]),
28
- ::slotted([role="option"][hidden]) { display: none !important }`,fu=du(Sn),ea,oa=0,pu=vn||Qe,na="click,focusout,input,keydown,mousedown,mouseup",ia="focus,focusin,blur,focusout",to={singular:"%d hit",plural:"%d hits"},ra=class extends Yr{constructor(){super(),this._texts=ou({},to),this._value="",this._of="/",au(this,Sn)}static get observedAttributes(){return["id",...Object.keys(to).map(e=>`data-sr-${e}`)]}connectedCallback(){this.hidden=!0,this._root=Jr(this),k(this,"role","listbox"),k(this,"tabindex","-1"),ie(this._root,"focusin",this),ie(this._root,"focus",this,!0),gn(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){Je(this._root||this,"focus",this,!0),Je(this._root||this,"focusin",this),gn(this,!1),xn(this),this._root=void 0}attributeChangedCallback(e,o,n){const i=e?.split("data-sr-")[1],r=`input[list="${this.id}"]`;if(to[i])this._texts[i]=n||to[i];else if(this._root){this._input&&$n(this,this._input);for(const a of this._root.querySelectorAll(r))$n(this,a)}}handleEvent(e){const{target:o,type:n}=e;e.defaultPrevented||(n==="click"&&vu(this,e),(n==="focus"||n==="focusin")&&mu(this,e),(n==="blur"||n==="focusout")&&hu(this,e),n==="keydown"&&gu(this,e),n==="mousedown"&&this.contains(o)&&wn(e),(n==="mutation"||n==="input")&&(clearTimeout(oa),oa=setTimeout(la,0,this,e)))}get options(){var e;if(!this._options){const o=(e=this.querySelector('[role="option"],option'))==null?void 0:e.nodeName;o&&(this._options=this.getElementsByTagName(o))}return this._options||this.getElementsByTagName("option")}},aa=t=>t?.disabled||t?.readOnly||!1,ae=(t,e)=>{var o,n,i;if(t.hidden!==e)return;t.hidden=aa(t?._input)||!e,(o=gn(t))==null||o.takeRecords();const r=t.isConnected&&t.popover&&((n=t._input)==null?void 0:n.isConnected)&&((i=t._input)==null?void 0:i.popoverTargetElement)===t;t._input&&$n(t,t._input,e),r&&k(t,"popover","manual"),r&&t.togglePopover(e),e&&la(t)},xn=t=>{t._input&&(Je(t._input||t,ia,t),Je(t._root||t,na,t),ae(t,!1),t._input=void 0)},$n=(t,e,o=!1)=>{t.popover&&k(e,"popovertarget",bn(t)),ie(e,ia,t,!0),k(e,"aria-autocomplete","list"),k(e,"aria-controls",bn(t)),k(e,"aria-expanded",`${!pu||o}`),k(e,"autocomplete","off"),k(e,"role",aa(e)?null:"combobox")},mu=(t,e)=>{var o;const n=e.target instanceof HTMLInputElement;n&&e.isTrusted&&e.stopImmediatePropagation(),t._input!==e.target&&n&&e.target.list===t&&(t._input&&xn(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),k(t,nu,bn((o=t._input.labels)==null?void 0:o[0])),ie(t._root||t,na,t),ae(t,k(t._input,"inputmode")!=="none"),ta())},hu=(t,e)=>{!Qe&&!wn()&&t._input&&setTimeout(sa,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},sa=t=>{var e;const o=((e=t._root)==null?void 0:e.activeElement)||null,n=t._input;n&&n!==o&&!t.contains(o)&&(n.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o})),xn(t))},vu=(t,{target:e})=>{var o;if(!t._input||t._input===e)return ae(t,!0);for(const n of t.options)if(n.contains(e))return k(t,"aria-multiselectable")!=="true"&&((o=t._input)==null||o.focus(),ae(t,!1)),cu(t._input,n.value);Qe&&sa(t)},gu=(t,e)=>{var o;const{key:n,target:i,altKey:r,ctrlKey:a,shiftKey:s,metaKey:l}=e,c=n==="Escape"||n==="Esc";if(r||a||l||s||n==="Tab")return;c&&!t.hidden&&e?.preventDefault(),ae(t,!c);const d=[...t.options].filter(h=>k(h,"aria-hidden")!=="true"&&h.offsetHeight),u=d.indexOf(i);let f=-1;if(n==="ArrowDown"&&(f=(u+1)%d.length),n==="ArrowUp"&&(f=(~u?u:d.length)-1),~u&&((n==="Home"||n==="PageUp")&&(f=0),(n==="End"||n==="PageDown")&&(f=d.length-1),n==="Enter"))return d[u].click(),e.preventDefault();if(d[f])for(const h of d)h.tabIndex=-1;d[f]&&e.preventDefault(),(o=d[f]||t._input)==null||o.focus(),!d[f]&&n==="ArrowUp"&&setTimeout(()=>{var h;return(h=t._input)==null?void 0:h.setSelectionRange(999,999)})},la=(t,e)=>{const{_texts:o,_root:n,_input:i,options:r}=t,a=i?.value.toLowerCase().trim()||"",s=!t.hasAttribute("data-nofilter"),l=[],c=[];for(const f of r)(f.disabled||f.hidden||s&&!f.label.toLowerCase().includes(a)?l:c).push(f);for(const f of l)k(f,"aria-hidden","true");for(const f of c)k(f,"aria-hidden","false");const d=c.length;clearTimeout(ea),e?.type==="input"&&a!==t._value&&(ea=setTimeout(()=>{const f=`${!d&&t.innerText.trim()||`${o[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&n?.activeElement===i&&ta(f),t._value=a},1e3));let u=0;if(vn)for(const f of c)k(f,"title",`${++u} ${t._of} ${d}`)};ne&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return Jr(this).getElementById(k(this,"list")||"")}}),Zr.define("u-datalist",ra),Q()&&!ec()&&oc();const bu="3.2.1",ca="_alert_14zqc_1 _ds-alert_w6yvp_3",da="_app_14zqc_1",ua="_sticky_14zqc_1",fa="_avatar_14zqc_1 _ds-avatar_w6yvp_1",pa="_badge_14zqc_1",ma="_breadcrumbs_14zqc_1 _ds-breadcrumbs_w6yvp_5",ha="_button_14zqc_1 _ds-button_w6yvp_1",va="_card_14zqc_1",ga="_group_14zqc_1",ba="_chip_14zqc_1 _ds-chip_w6yvp_5",ya="_details_14zqc_1 _ds-details_w6yvp_3",_a="_dialog_14zqc_1 _ds-dialog_w6yvp_5",wa="__drawer_14zqc_1",Ea="_divider_14zqc_1",Sa="_errorsummary_14zqc_1 _ds-error-summary_w6yvp_5",xa="_field_14zqc_1 _ds-field_w6yvp_1",$a="_suggestion_14zqc_1 _ds-suggestion_w6yvp_5",Ta="_affixes_14zqc_1 _ds-field-affixes_w6yvp_3",Ca="_fieldset_14zqc_1 _ds-fieldset_w6yvp_3",Aa="_fileupload_14zqc_1",ka="_helptext_14zqc_1 _ds-focus_w6yvp_1",La="_input_14zqc_1 _ds-input_w6yvp_1",Ia="_law_14zqc_1",Ma="_grid_14zqc_1",Oa="_flex_14zqc_1",Ra="_link_14zqc_1",Da="_logo_14zqc_1",Pa="__logo_14zqc_1",Ha="_pagination_14zqc_1 _ds-pagination_w6yvp_5",Na="_popover_14zqc_1 _ds-popover_w6yvp_3",Ba="_print_14zqc_1",qa="_progress_14zqc_1",Ua="__indeterminate_14zqc_1",Fa="_skeleton_14zqc_1 _ds-skeleton_w6yvp_5",za="__skeleton_14zqc_1",Va="_spinner_14zqc_1",Wa="_steps_14zqc_1",Ga="_table_14zqc_1 _ds-table_w6yvp_5",ja="__scrollShadow_14zqc_1",Ka="_tabs_14zqc_1 _ds-tabs_w6yvp_5",Xa="__scrollMask_14zqc_1",Ya="_tag_14zqc_1 _ds-tag_w6yvp_5",Qa="_toast_14zqc_1",Ja="__toastClose_14zqc_1",Za="__toastOpen_14zqc_1",ts="__toastTimeout_14zqc_1",es="_togglegroup_14zqc_1 _ds-toggle-group_w6yvp_5",os="__tooltip_14zqc_1 _ds-tooltip_w6yvp_5",ns="_heading_14zqc_1 _ds-heading_w6yvp_1",is="_ingress_14zqc_1",rs="_muted_14zqc_1",as="_info_14zqc_1",ss="_prose_14zqc_1",ls="_validation_14zqc_1 _ds-validation-message_w6yvp_1",cs="_body_14zqc_162",ds="__checked_14zqc_1",L={alert:ca,app:da,sticky:ua,avatar:fa,badge:pa,breadcrumbs:ma,button:ha,card:va,group:ga,chip:ba,details:ya,dialog:_a,_drawer:wa,divider:Ea,errorsummary:Sa,field:xa,suggestion:$a,affixes:Ta,fieldset:Ca,fileupload:Aa,helptext:ka,input:La,law:Ia,grid:Ma,flex:Oa,link:Ra,logo:Da,_logo:Pa,pagination:Ha,popover:Na,print:Ba,progress:qa,_indeterminate:Ua,skeleton:Fa,_skeleton:za,spinner:Va,steps:Wa,table:Ga,_scrollShadow:ja,tabs:Ka,_scrollMask:Xa,tag:Ya,toast:Qa,_toastClose:Ja,_toastOpen:Za,_toastTimeout:ts,togglegroup:es,_tooltip:os,heading:ns,ingress:is,muted:rs,info:as,prose:ss,validation:ls,body:cs,_checked:ds},yu=Object.freeze(Object.defineProperty({__proto__:null,_checked:ds,_drawer:wa,_indeterminate:Ua,_logo:Pa,_scrollMask:Xa,_scrollShadow:ja,_skeleton:za,_toastClose:Ja,_toastOpen:Za,_toastTimeout:ts,_tooltip:os,affixes:Ta,alert:ca,app:da,avatar:fa,badge:pa,body:cs,breadcrumbs:ma,button:ha,card:va,chip:ba,default:L,details:ya,dialog:_a,divider:Ea,errorsummary:Sa,field:xa,fieldset:Ca,fileupload:Aa,flex:Oa,grid:Ma,group:ga,heading:ns,helptext:ka,info:as,ingress:is,input:La,law:Ia,link:Ra,logo:Da,muted:rs,pagination:Ha,popover:Na,print:Ba,progress:qa,prose:ss,skeleton:Fa,spinner:Va,steps:Wa,sticky:ua,suggestion:$a,table:Ga,tabs:Ka,tag:Ya,toast:Qa,togglegroup:es,validation:ls},Symbol.toStringTag,{value:"Module"}));function us(t){var e,o,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(o=us(t[e]))&&(n&&(n+=" "),n+=o)}else for(o in t)t[o]&&(n&&(n+=" "),n+=o);return n}function _u(){for(var t,e,o=0,n="",i=arguments.length;o<i;o++)(t=arguments[o])&&(e=us(t))&&(n&&(n+=" "),n+=e);return n}const se={capture:!0,passive:!0},j=()=>typeof window<"u"&&typeof document<"u",$t=t=>j()?document.getElementsByClassName(L[t].split(" ")[0]):[];function Gt(t,e){let o;return function(...n){clearTimeout(o),o=setTimeout(()=>t.apply(this,n),e)}}const g=(t,e,o)=>o===void 0?t.getAttribute(e)??null:(o===null?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o),null),D=(t,...e)=>{const[o,...n]=e;for(const i of o.split(" "))t.addEventListener(i,...n);return()=>fs(t,...e)},fs=(t,...e)=>{const[o,...n]=e;for(const i of o.split(" "))t.removeEventListener(i,...n)},mt=(t,e)=>{if(!j())return;window._mtdsHotReloadCleanup||(window._mtdsHotReloadCleanup=new Map);const o=()=>{window._mtdsHotReloadCleanup?.get(t)?.map(n=>n()),window._mtdsHotReloadCleanup?.set(t,e())};document.readyState!=="complete"?D(window,"load",o):document.fonts?.ready?.then(o)||setTimeout(o,0)},eo=(t,e,o)=>{let n=0;const i=()=>{if(!t.isConnected)return r();e(a),a.takeRecords(),n=0},r=()=>a?.disconnect?.(),a=new MutationObserver(()=>{n||(n=requestAnimationFrame(i))});return a.observe(t,o),i(),r},O=(t,e,o)=>{const n=document.createElement(t);if(o&&(n.textContent=o),e)for(const[i,r]of Object.entries(e))g(n,i,r);return n},wu=typeof HTMLElement>"u"?class{}:HTMLElement,Eu=(t,e)=>!j()||window.customElements.get(t)||window.customElements.define(t,e),Su=typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets,xu=(t,e)=>{if(!Su)return;t.shadowRoot||t.attachShadow({mode:"open"}).append(O("slot"));const o=new CSSStyleSheet;o.replaceSync(e),t.shadowRoot.adoptedStyleSheets=[o]},$u=`[data-command="toggle-app-expanded"],.${L.app.split(" ")[0]} > [command="show-modal"]`,Tu=`.${L.breadcrumbs.split(" ")[0]}`,Cu=`.${L.card.split(" ")[0]}`,ps=`.${L.chip.split(" ")[0]}`,Au=`.${L.helptext.split(" ")[0]}`,ku=`.${L.pagination.split(" ")[0]}`,Lu='summary,u-summary,a,button,[role="tab"],[role="button"]',Tn="mattilsynet.matomo.cloud",Iu=["setCustomUrl","setDocumentTitle","setReferrerUrl"],K="mtds-analytics-banner",Mu="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function ms(t,e={}){if(j()){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Tn}/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:o,enabled:n,matomoId:i,matomoTagManagerId:r}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),n){o!=="custom"&&Ou();const a=r?`https://cdn.matomo.cloud/${Tn}/container_${r}.js`:`https://cdn.matomo.cloud/${Tn}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append(O("script",{async:"",src:a}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics ${t}:`,e);if(t==="pageview"){const{url:o,title:n}=e;window._paq.push(["setCustomUrl",o||location.href]),window._paq.push(["setDocumentTitle",n||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:o,action:n,name:i,value:r}=e,a=["trackEvent",o,n,i,r];let s=location.href;window._paq.push([function(){s=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",s.split("#")[0]]),window._paq.push(a.filter(l=>l!==void 0)),window._paq.push(["setCustomUrl",s])}else if(t==="search"){const{query:o,category:n=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",o,n,i])}else if(t==="matomo"){const o=e;Iu.includes(o?.[0])&&typeof o[1]!="string"&&(o[1]=`${o[1]??""}`),window._paq.push(o)}}}}function Ou(){if(document.getElementById(K)||window.localStorage.getItem(K))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${K}" data-analytics="ignore"><style>
28
+ ::slotted([role="option"][hidden]) { display: none !important }`,fu=du(Sn),ea,oa=0,pu=vn||Qe,na="click,focusout,input,keydown,mousedown,mouseup",ia="focus,focusin,blur,focusout",to={singular:"%d hit",plural:"%d hits"},ra=class extends Yr{constructor(){super(),this._texts=ou({},to),this._value="",this._of="/",au(this,Sn)}static get observedAttributes(){return["id",...Object.keys(to).map(e=>`data-sr-${e}`)]}connectedCallback(){this.hidden=!0,this._root=Jr(this),k(this,"role","listbox"),k(this,"tabindex","-1"),ie(this._root,"focusin",this),ie(this._root,"focus",this,!0),gn(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){Je(this._root||this,"focus",this,!0),Je(this._root||this,"focusin",this),gn(this,!1),xn(this),this._root=void 0}attributeChangedCallback(e,o,n){const i=e?.split("data-sr-")[1],r=`input[list="${this.id}"]`;if(to[i])this._texts[i]=n||to[i];else if(this._root){this._input&&$n(this,this._input);for(const a of this._root.querySelectorAll(r))$n(this,a)}}handleEvent(e){const{target:o,type:n}=e;e.defaultPrevented||(n==="click"&&vu(this,e),(n==="focus"||n==="focusin")&&mu(this,e),(n==="blur"||n==="focusout")&&hu(this,e),n==="keydown"&&gu(this,e),n==="mousedown"&&this.contains(o)&&wn(e),(n==="mutation"||n==="input")&&(clearTimeout(oa),oa=setTimeout(la,0,this,e)))}get options(){var e;if(!this._options){const o=(e=this.querySelector('[role="option"],option'))==null?void 0:e.nodeName;o&&(this._options=this.getElementsByTagName(o))}return this._options||this.getElementsByTagName("option")}},aa=t=>t?.disabled||t?.readOnly||!1,ae=(t,e)=>{var o,n,i;if(t.hidden!==e)return;t.hidden=aa(t?._input)||!e,(o=gn(t))==null||o.takeRecords();const r=t.isConnected&&t.popover&&((n=t._input)==null?void 0:n.isConnected)&&((i=t._input)==null?void 0:i.popoverTargetElement)===t;t._input&&$n(t,t._input,e),r&&k(t,"popover","manual"),r&&t.togglePopover(e),e&&la(t)},xn=t=>{t._input&&(Je(t._input||t,ia,t),Je(t._root||t,na,t),ae(t,!1),t._input=void 0)},$n=(t,e,o=!1)=>{t.popover&&k(e,"popovertarget",bn(t)),ie(e,ia,t,!0),k(e,"aria-autocomplete","list"),k(e,"aria-controls",bn(t)),k(e,"aria-expanded",`${!pu||o}`),k(e,"autocomplete","off"),k(e,"role",aa(e)?null:"combobox")},mu=(t,e)=>{var o;const n=e.target instanceof HTMLInputElement;n&&e.isTrusted&&e.stopImmediatePropagation(),t._input!==e.target&&n&&e.target.list===t&&(t._input&&xn(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),k(t,nu,bn((o=t._input.labels)==null?void 0:o[0])),ie(t._root||t,na,t),ae(t,k(t._input,"inputmode")!=="none"),ta())},hu=(t,e)=>{!Qe&&!wn()&&t._input&&setTimeout(sa,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},sa=t=>{var e;const o=((e=t._root)==null?void 0:e.activeElement)||null,n=t._input;n&&n!==o&&!t.contains(o)&&(n.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o})),xn(t))},vu=(t,{target:e})=>{var o;if(!t._input||t._input===e)return ae(t,!0);for(const n of t.options)if(n.contains(e))return k(t,"aria-multiselectable")!=="true"&&((o=t._input)==null||o.focus(),ae(t,!1)),cu(t._input,n.value);Qe&&sa(t)},gu=(t,e)=>{var o;const{key:n,target:i,altKey:r,ctrlKey:a,shiftKey:s,metaKey:l}=e,c=n==="Escape"||n==="Esc";if(r||a||l||s||n==="Tab")return;c&&!t.hidden&&e?.preventDefault(),ae(t,!c);const d=[...t.options].filter(h=>k(h,"aria-hidden")!=="true"&&h.offsetHeight),u=d.indexOf(i);let f=-1;if(n==="ArrowDown"&&(f=(u+1)%d.length),n==="ArrowUp"&&(f=(~u?u:d.length)-1),~u&&((n==="Home"||n==="PageUp")&&(f=0),(n==="End"||n==="PageDown")&&(f=d.length-1),n==="Enter"))return d[u].click(),e.preventDefault();if(d[f])for(const h of d)h.tabIndex=-1;d[f]&&e.preventDefault(),(o=d[f]||t._input)==null||o.focus(),!d[f]&&n==="ArrowUp"&&setTimeout(()=>{var h;return(h=t._input)==null?void 0:h.setSelectionRange(999,999)})},la=(t,e)=>{const{_texts:o,_root:n,_input:i,options:r}=t,a=i?.value.toLowerCase().trim()||"",s=!t.hasAttribute("data-nofilter"),l=[],c=[];for(const f of r)(f.disabled||f.hidden||s&&!f.label.toLowerCase().includes(a)?l:c).push(f);for(const f of l)k(f,"aria-hidden","true");for(const f of c)k(f,"aria-hidden","false");const d=c.length;clearTimeout(ea),e?.type==="input"&&a!==t._value&&(ea=setTimeout(()=>{const f=`${!d&&t.innerText.trim()||`${o[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&n?.activeElement===i&&ta(f),t._value=a},1e3));let u=0;if(vn)for(const f of c)k(f,"title",`${++u} ${t._of} ${d}`)};ne&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return Jr(this).getElementById(k(this,"list")||"")}}),Zr.define("u-datalist",ra),Q()&&!ec()&&oc();const bu="3.2.2",ca="_alert_14zqc_1 _ds-alert_w6yvp_3",da="_app_14zqc_1",ua="_sticky_14zqc_1",fa="_avatar_14zqc_1 _ds-avatar_w6yvp_1",pa="_badge_14zqc_1",ma="_breadcrumbs_14zqc_1 _ds-breadcrumbs_w6yvp_5",ha="_button_14zqc_1 _ds-button_w6yvp_1",va="_card_14zqc_1",ga="_group_14zqc_1",ba="_chip_14zqc_1 _ds-chip_w6yvp_5",ya="_details_14zqc_1 _ds-details_w6yvp_3",_a="_dialog_14zqc_1 _ds-dialog_w6yvp_5",wa="__drawer_14zqc_1",Ea="_divider_14zqc_1",Sa="_errorsummary_14zqc_1 _ds-error-summary_w6yvp_5",xa="_field_14zqc_1 _ds-field_w6yvp_1",$a="_suggestion_14zqc_1 _ds-suggestion_w6yvp_5",Ta="_affixes_14zqc_1 _ds-field-affixes_w6yvp_3",Ca="_fieldset_14zqc_1 _ds-fieldset_w6yvp_3",Aa="_fileupload_14zqc_1",ka="_helptext_14zqc_1 _ds-focus_w6yvp_1",La="_input_14zqc_1 _ds-input_w6yvp_1",Ia="_law_14zqc_1",Ma="_grid_14zqc_1",Oa="_flex_14zqc_1",Ra="_link_14zqc_1",Da="_logo_14zqc_1",Pa="__logo_14zqc_1",Ha="_pagination_14zqc_1 _ds-pagination_w6yvp_5",Na="_popover_14zqc_1 _ds-popover_w6yvp_3",Ba="_print_14zqc_1",qa="_progress_14zqc_1",Ua="__indeterminate_14zqc_1",Fa="_skeleton_14zqc_1 _ds-skeleton_w6yvp_5",za="__skeleton_14zqc_1",Va="_spinner_14zqc_1",Wa="_steps_14zqc_1",Ga="_table_14zqc_1 _ds-table_w6yvp_5",ja="__scrollShadow_14zqc_1",Ka="_tabs_14zqc_1 _ds-tabs_w6yvp_5",Xa="__scrollMask_14zqc_1",Ya="_tag_14zqc_1 _ds-tag_w6yvp_5",Qa="_toast_14zqc_1",Ja="__toastClose_14zqc_1",Za="__toastOpen_14zqc_1",ts="__toastTimeout_14zqc_1",es="_togglegroup_14zqc_1 _ds-toggle-group_w6yvp_5",os="__tooltip_14zqc_1 _ds-tooltip_w6yvp_5",ns="_heading_14zqc_1 _ds-heading_w6yvp_1",is="_ingress_14zqc_1",rs="_muted_14zqc_1",as="_info_14zqc_1",ss="_prose_14zqc_1",ls="_validation_14zqc_1 _ds-validation-message_w6yvp_1",cs="_body_14zqc_162",ds="__checked_14zqc_1",L={alert:ca,app:da,sticky:ua,avatar:fa,badge:pa,breadcrumbs:ma,button:ha,card:va,group:ga,chip:ba,details:ya,dialog:_a,_drawer:wa,divider:Ea,errorsummary:Sa,field:xa,suggestion:$a,affixes:Ta,fieldset:Ca,fileupload:Aa,helptext:ka,input:La,law:Ia,grid:Ma,flex:Oa,link:Ra,logo:Da,_logo:Pa,pagination:Ha,popover:Na,print:Ba,progress:qa,_indeterminate:Ua,skeleton:Fa,_skeleton:za,spinner:Va,steps:Wa,table:Ga,_scrollShadow:ja,tabs:Ka,_scrollMask:Xa,tag:Ya,toast:Qa,_toastClose:Ja,_toastOpen:Za,_toastTimeout:ts,togglegroup:es,_tooltip:os,heading:ns,ingress:is,muted:rs,info:as,prose:ss,validation:ls,body:cs,_checked:ds},yu=Object.freeze(Object.defineProperty({__proto__:null,_checked:ds,_drawer:wa,_indeterminate:Ua,_logo:Pa,_scrollMask:Xa,_scrollShadow:ja,_skeleton:za,_toastClose:Ja,_toastOpen:Za,_toastTimeout:ts,_tooltip:os,affixes:Ta,alert:ca,app:da,avatar:fa,badge:pa,body:cs,breadcrumbs:ma,button:ha,card:va,chip:ba,default:L,details:ya,dialog:_a,divider:Ea,errorsummary:Sa,field:xa,fieldset:Ca,fileupload:Aa,flex:Oa,grid:Ma,group:ga,heading:ns,helptext:ka,info:as,ingress:is,input:La,law:Ia,link:Ra,logo:Da,muted:rs,pagination:Ha,popover:Na,print:Ba,progress:qa,prose:ss,skeleton:Fa,spinner:Va,steps:Wa,sticky:ua,suggestion:$a,table:Ga,tabs:Ka,tag:Ya,toast:Qa,togglegroup:es,validation:ls},Symbol.toStringTag,{value:"Module"}));function us(t){var e,o,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(o=us(t[e]))&&(n&&(n+=" "),n+=o)}else for(o in t)t[o]&&(n&&(n+=" "),n+=o);return n}function _u(){for(var t,e,o=0,n="",i=arguments.length;o<i;o++)(t=arguments[o])&&(e=us(t))&&(n&&(n+=" "),n+=e);return n}const se={capture:!0,passive:!0},j=()=>typeof window<"u"&&typeof document<"u",$t=t=>j()?document.getElementsByClassName(L[t].split(" ")[0]):[];function Gt(t,e){let o;return function(...n){clearTimeout(o),o=setTimeout(()=>t.apply(this,n),e)}}const g=(t,e,o)=>o===void 0?t.getAttribute(e)??null:(o===null?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o),null),D=(t,...e)=>{const[o,...n]=e;for(const i of o.split(" "))t.addEventListener(i,...n);return()=>fs(t,...e)},fs=(t,...e)=>{const[o,...n]=e;for(const i of o.split(" "))t.removeEventListener(i,...n)},mt=(t,e)=>{if(!j())return;window._mtdsHotReloadCleanup||(window._mtdsHotReloadCleanup=new Map);const o=()=>{window._mtdsHotReloadCleanup?.get(t)?.map(n=>n()),window._mtdsHotReloadCleanup?.set(t,e())};document.readyState!=="complete"?D(window,"load",o):document.fonts?.ready?.then(o)||setTimeout(o,0)},eo=(t,e,o)=>{let n=0;const i=()=>{if(!t.isConnected)return r();e(a),a.takeRecords(),n=0},r=()=>a?.disconnect?.(),a=new MutationObserver(()=>{n||(n=requestAnimationFrame(i))});return a.observe(t,o),i(),r},O=(t,e,o)=>{const n=document.createElement(t);if(o&&(n.textContent=o),e)for(const[i,r]of Object.entries(e))g(n,i,r);return n},wu=typeof HTMLElement>"u"?class{}:HTMLElement,Eu=(t,e)=>!j()||window.customElements.get(t)||window.customElements.define(t,e),Su=typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets,xu=(t,e)=>{if(!Su)return;t.shadowRoot||t.attachShadow({mode:"open"}).append(O("slot"));const o=new CSSStyleSheet;o.replaceSync(e),t.shadowRoot.adoptedStyleSheets=[o]},$u=`[data-command="toggle-app-expanded"],.${L.app.split(" ")[0]} > [command="show-modal"]`,Tu=`.${L.breadcrumbs.split(" ")[0]}`,Cu=`.${L.card.split(" ")[0]}`,ps=`.${L.chip.split(" ")[0]}`,Au=`.${L.helptext.split(" ")[0]}`,ku=`.${L.pagination.split(" ")[0]}`,Lu='summary,u-summary,a,button,[role="tab"],[role="button"]',Tn="mattilsynet.matomo.cloud",Iu=["setCustomUrl","setDocumentTitle","setReferrerUrl"],K="mtds-analytics-banner",Mu="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function ms(t,e={}){if(j()){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Tn}/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:o,enabled:n,matomoId:i,matomoTagManagerId:r}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),n){o!=="custom"&&Ou();const a=r?`https://cdn.matomo.cloud/${Tn}/container_${r}.js`:`https://cdn.matomo.cloud/${Tn}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append(O("script",{async:"",src:a}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics ${t}:`,e);if(t==="pageview"){const{url:o,title:n}=e;window._paq.push(["setCustomUrl",o||location.href]),window._paq.push(["setDocumentTitle",n||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:o,action:n,name:i,value:r}=e,a=["trackEvent",o,n,i,r];let s=location.href;window._paq.push([function(){s=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",s.split("#")[0]]),window._paq.push(a.filter(l=>l!==void 0)),window._paq.push(["setCustomUrl",s])}else if(t==="search"){const{query:o,category:n=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",o,n,i])}else if(t==="matomo"){const o=e;Iu.includes(o?.[0])&&typeof o[1]!="string"&&(o[1]=`${o[1]??""}`),window._paq.push(o)}}}}function Ou(){if(document.getElementById(K)||window.localStorage.getItem(K))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${K}" data-analytics="ignore"><style>
29
29
  #${K}[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 }
30
30
  #${K} 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 }
31
31
  #${K} button:focus-visible { outline: 2px solid }
@@ -1,4 +1,4 @@
1
- const o = "3.2.1";
1
+ const o = "3.2.2";
2
2
  export {
3
3
  o as version
4
4
  };