PageSourceSearch

https://nte.no/assets/ListItem-Dad1LSA3.js

js nte.no collected 2026-10-02 10:32:57 UTC 3,245 bytes, 1 lines download raw bytes

1import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{X as t}from"./components-LX1YoyU2.js";import{t as n}from"./jsx-runtime-B74pBk57.js";import{h as r}from"./Spacing-xZeuy1vj.js";import{t as i}from"./useHasMounted-B5mzSaKc.js";import{t as a}from"./useWindow-ArhbKdnl.js";import{t as o}from"./useFullScreen-BpVDzfcc.js";var s=e(t()),c={container:`_container_a8uim_1`,onlyMap:`_onlyMap_a8uim_6`,fullscreen:`_fullscreen_a8uim_6`,withRightContent:`_withRightContent_a8uim_15`,wrap:`_wrap_a8uim_33`,containerCell:`_containerCell_a8uim_46`,rightColumn:`_rightColumn_a8uim_51`,mapWrapper:`_mapWrapper_a8uim_92`,stickyFullscreenToggle:`_stickyFullscreenToggle_a8uim_98`,filters:`_filters_a8uim_105`},l=n();function u({map:e,rightContent:t,fullscreen:n=!1,className:u}){let d=i(),{windowWidth:f}=a(),[p,m]=(0,s.useState)(!1);return o(`fullscreen-container`,p,m),(0,l.jsx)(`div`,{id:`fullscreen-container`,className:`map-container ${c?.container} ${t?c?.withRightContent:c?.onlyMap} ${n&&p?c?.fullscreen:``}`,children:(0,l.jsxs)(`div`,{className:`columns ${c?.wrap} ${u||``} `,children:[(0,l.jsxs)(`div`,{className:`left-column ${c?.containerCell}`,children:[(0,l.jsx)(`div`,{className:c?.mapWrapper,children:e}),n&&d&&(0,l.jsx)(`div`,{className:c?.stickyFullscreenToggle,children:(0,l.jsx)(r,{id:`toggle-fullscreen`,"data-cy":`toggle-fullscreen`,outlined:!0,icon:`fa-regular fa-${p?`compress`:`expand`}`,small:f<=766,onClick:()=>m(!p),children:!p&&`Fullskjerm`||`Lukk fullskjerm`})})]}),t&&(0,l.jsx)(`div`,{className:`right-column ${c?.containerCell} ${c?.rightColumn}`,children:t})]})})}function d({items:e,perRow:t=3,style:n}){return!e||e.length===0?null:(0,l.jsx)(`div`,{className:`filters ${c?.filters} row per-row-${t}`,style:n,children:e?.map((e,t)=>(0,l.jsx)(`div`,{className:`filter-item`,children:e},t?.toString()))})}var f={mapListItem:`_mapListItem_mlkuh_1`,intro:`_intro_mlkuh_18`,detailsList:`_detailsList_mlkuh_26`,detailsContent:`_detailsContent_mlkuh_32`,label:`_label_mlkuh_39`,value:`_value_mlkuh_50`};function p({id:e,className:t,children:n}){return(0,l.jsx)(`li`,{className:`${f.mapListItem} ${t||``}`,id:e,children:n})}function m({children:e,className:t}){return(0,l.jsx)(`div`,{className:`${f.intro} ${t||``}`,children:e})}function h({children:e,className:t}){return(0,l.jsx)(`ul`,{className:`${f.detailsList} ${t||``}`,children:e})}function g({label:e,value:t,className:n}){let r=typeof t==`string`?y(t):void 0;return(0,l.jsxs)(`li`,{className:`${f.detailsContent} ${n||``}`,children:[(0,l.jsx)(`div`,{className:f.label,children:e}),(0,l.jsx)(`div`,{className:f.value,children:r?(0,l.jsx)(`time`,{dateTime:r,children:t}):t})]})}var _=[`januar`,`februar`,`mars`,`april`,`mai`,`juni`,`juli`,`august`,`september`,`oktober`,`november`,`desember`];function v(e){let t=e.toLowerCase(),n=_.findIndex(e=>e===t||e.slice(0,3)===t);if(n!==-1)return n+1;if(t===`sept`)return 9}function y(e){let t=e.trim(),n=(e,t,n)=>`${n}-${t.padStart(2,`0`)}-${e.padStart(2,`0`)}`;if(/^\d{1,2}[.-]\d{1,2}[.-]\d{4}$/.test(t)){let[e,r,i]=t.split(/[.-]/);return n(e,r,i)}let r=t.match(/^(\d{1,2})\.\s*([A-Za-zæøåÆØÅ]{3,9})\.?\s+(\d{4})$/);if(r){let[,e,t,i]=r,a=v(t);return a?n(e,String(a),i):void 0}}export{d as a,p as i,h as n,u as o,m as r,g as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.