PageSourceSearch

https://www.rettsdata.no/_next/static/chunks/36o5xzdsq4kwb.js

js rettsdata.no collected 2026-10-02 17:20:15 UTC 12,393 bytes, 21 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,529362,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var i=e.r(874646),a=e.r(504982),n=e.r(271645),o=e.r(640873),s=(e.r(203939),e.r(167934)),l=e.r(343782),d=e.r(937288),c=e.r(843476),h=e.r(505141),u=e.r(893788),p=e.r(141660);e.r(420462),e.r(76473),e.r(793044),e.r(959885),e.r(408278),e.r(568763),e.r(353398),e.r(852859),e.r(175681);var g,m,x,f,y=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(n);function v(e){return a.generateUtilityClass("MuiSkeleton",e)}d.generateUtilityClasses("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var b,j,w,k,C=["animation","className","component","height","style","variant","width"],S=h.keyframes(b||(b=g||(g=i._taggedTemplateLiteral(["\n  0% {\n    opacity: 1;\n  }\n\n  50% {\n    opacity: 0.4;\n  }\n\n  100% {\n    opacity: 1;\n  }\n"])))),L=h.keyframes(j||(j=m||(m=i._taggedTemplateLiteral(["\n  0% {\n    transform: translateX(-100%);\n  }\n\n  50% {\n    /* +0.5s of delay between each loop */\n    transform: translateX(100%);\n  }\n\n  100% {\n    transform: translateX(100%);\n  }\n"])))),_=s.styled("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})(function(e){var t=e.theme,r=e.ownerState,i=String(t.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",n=parseFloat(t.shape.borderRadius);return a._extends({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:p.alpha(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===r.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(n).concat(i,"/").concat(Math.round(n/.6*10)/10).concat(i),"&:empty:before":{content:'"\\00a0"'}},"circular"===r.variant&&{borderRadius:"50%"},"rounded"===r.variant&&{borderRadius:(t.vars||t).shape.borderRadius},r.hasChildren&&{"& > *":{visibility:"hidden"}},r.hasChildren&&!r.width&&{maxWidth:"fit-content"},r.hasChildren&&!r.height&&{height:"auto"})},function(e){return"pulse"===e.ownerState.animation&&h.css(w||(w=x||(x=i._taggedTemplateLiteral(["\n      animation: "," 1.5s ease-in-out 0.5s infinite;\n    "]))),S)},function(e){var t=e.ownerState,r=e.theme;return"wave"===t.animation&&h.css(k||(k=f||(f=i._taggedTemplateLiteral(["\n      position: relative;\n      overflow: hidden;\n\n      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n      -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n      &::after {\n        animation: "," 1.6s linear 0.5s infinite;\n        background: linear-gradient(\n          90deg,\n          transparent,\n          ",",\n          transparent\n        );\n        content: '';\n        position: absolute;\n        transform: translateX(-100%); /* Avoid flash during server-side hydration */\n        bottom: 0;\n        left: 0;\n        right: 0;\n        top: 0;\n      }\n    "]))),L,(r.vars||r).palette.action.hover)});r.Skeleton=y.forwardRef(function(e,t){var r,i,n,s,d,h,p=l.useThemeProps({props:e,name:"MuiSkeleton"}),g=p.animation,m=p.className,x=p.component,f=void 0===x?"span":x,y=p.height,b=p.style,j=p.variant,w=p.width,k=a._objectWithoutPropertiesLoose(p,C),S=a._extends({},p,{animation:void 0===g?"pulse":g,component:f,variant:void 0===j?"text":j,hasChildren:!!k.children}),L=(r=S.classes,i=S.variant,n=S.animation,s=S.hasChildren,d=S.width,h=S.height,u.composeClasses({root:["root",i,n,s&&"withChildren",s&&!d&&"fitContent",s&&!h&&"heightAuto"]},v,r));return c.jsx(_,a._extends({as:f,ref:t,className:o.clsx(L.root,m),ownerState:S},k,{style:a._extends({width:w,height:y},b)}))})},414300,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var i=e.r(529362);e.r(874646),e.r(504982),e.r(420462),e.r(141660),e.r(76473),e.r(271645),e.r(640873),e.r(203939),e.r(167934),e.r(793044),e.r(959885),e.r(408278),e.r(505141),e.r(843476),e.r(568763),e.r(343782),e.r(353398),e.r(852859),e.r(175681),e.r(937288),e.r(893788),r.Skeleton=i.Skeleton},608404,e=>{e.q("/_next/static/media/placeholdericon.0kde8kuwvlq7x.svg")},202990,850730,e=>{"use strict";var t=e.i(843476),r=e.i(360284),i=e.i(832663),a=e.i(694481);e.i(359822);var n=e.i(641209);let o=(0,r.styled)(i.Box)({display:"flex",flexDirection:"column",margin:"64px 0px",gap:"10px 0px"}),s=(0,r.styled)(a.Typography)({}),l=(0,r.styled)(a.Typography)({}),d=(0,r.styled)(n.Button)({});e.s(["Error",0,()=>(0,t.jsxs)(o,{children:[(0,t.jsx)(s,{variant:"h4",children:"Beklager, men noe har gått galt."}),(0,t.jsx)(l,{children:"Vi har registrert feilen, men du kan sende oss en melding hvis problemet vedvarer."}),(0,t.jsx)(d,{size:"xlarge",href:"/","aria-label":"Gå til forsiden rettsdata.no",children:"Gå til forsiden rettsdata.no"}),(0,t.jsx)(d,{size:"xlarge",href:"https://min.rettsdata.no","aria-label":"Gå direkte til innlogget tjeneste",children:"Gå direkte til innlogget tjeneste"})]})],850730),e.s([],202990)},847741,e=>{"use strict";let t;var r=e.i(843476),i=e.i(271645);e.i(202990);var a=e.i(850730),n=e.i(832783);let o={src:e.i(608404).default,width:24,height:24,blurWidth:0,blurHeight:0};var s=e.i(360284),l=e.i(832663),d=e.i(694481),c=e.i(657688),h=e.i(522016);let u=(0,s.styled)(l.Box)(({theme:e})=>({display:"grid",gridArea:"content / content / content / content",gridTemplateColumns:"repeat(4, 1fr)",gridAutoRows:"max-content",alignContent:"start",gap:"22px",minHeight:"100vh",[e.breakpoints.down("md")]:{gridArea:"content / content",gridTemplateColumns:"repeat(2, 1fr)",gap:"16px"}})),p=(0,s.styled)(h.default)(({theme:e})=>({textDecoration:"none",overflow:"hidden",maxWidth:"300px",[e.breakpoints.down("sm")]:{padding:"0px"},"&:hover":{".imageWrapper":{padding:"0px"}}})),g=(0,s.styled)("div")({padding:"2px",transition:"0.2s"}),m=(0,s.styled)(c.default)({objectFit:"cover",aspectRatio:"1/1",maxWidth:"300px",maxHeight:"300px",minWidth:"90px",minHeight:"90px",width:"100%",height:"auto",borderRadius:"8px",marginBottom:"16px"}),x=(0,s.styled)(l.Box)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",objectFit:"cover",aspectRatio:"1/1",maxWidth:"300px",maxHeight:"300px",minWidth:"90px",minHeight:"90px",width:"100%",height:"auto",borderRadius:"8px",marginBottom:"16px",backgroundColor:e.colors.grayscale[400]})),f=(0,s.styled)(c.default)({maxWidth:"150px",maxHeight:"150px",width:"100%",height:"auto"}),y=(0,s.styled)("div")({padding:"2px"}),v=(0,s.styled)(d.Typography)(({theme:e})=>({color:e.palette.primary.main,marginBottom:"8px",fontWeight:500,fontSize:"16px",lineHeight:"128%"})),b=(0,s.styled)(d.Typography)(({theme:e})=>({color:e.colors.grayscale[900],fontWeight:400,fontSize:"14px",lineHeight:"128%"})),j=(0,s.styled)(d.Typography)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:e.colors.grayscale[700],fontWeight:400,fontSize:"14px",lineHeight:"128%",marginTop:"5px"})),w=(0,s.styled)(l.Box)({position:"absolute"});var k=e.i(414300);function C(){return(0,r.jsx)(u,{children:[...Array(10)].map((e,t)=>(0,r.jsxs)(p,{href:"/",children:[(0,r.jsx)(k.Skeleton,{variant:"rectangular",sx:{width:"100%",paddingBottom:"100%",marginBottom:"16px",borderRadius:"8px"}}),(0,r.jsx)(k.Skeleton,{variant:"rectangular",sx:{width:"100%",height:"20px",marginBottom:"8px",borderRadius:"8px"}}),(0,r.jsx)(k.Skeleton,{variant:"rectangular",sx:{width:"100%",height:"20px",borderRadius:"8px"}})]},t))})}function S(e){let{items:t,isLoading:i}=e;return i?(0,r.jsx)(C,{}):(0,r.jsx)(u,{children:t.length?t.map((e,t)=>(0,r.jsx)(L,{index:t,item:e},e.slug)):(0,r.jsx)(w,{children:"Beklager, vi fant ingen treff på dette søket!"})})}function L({item:e,index:t}){let{title:i,subTitle:a,sanityImage:s,imageUrl:l,slug:d,tags:c}=e,h=(0,n.useImageUrlFor)(s??null);return(0,r.jsxs)(p,{href:d??"",children:[h?(0,r.jsx)(g,{className:"imageWrapper",children:(0,r.jsx)(m,{src:h,alt:`Bilde av ${i}`,priority:t<=12})}):l?(0,r.jsx)(g,{className:"imageWrapper",children:(0,r.jsx)(m,{src:l,alt:`Bilde av ${i}`,priority:t<=12})}):(0,r.jsx)(g,{className:"imageWrapper",children:(0,r.jsx)(x,{children:(0,r.jsx)(f,{src:o,alt:"",priority:t>=12})})}),(0,r.jsxs)(y,{children:[i&&(0,r.jsx)(v,{children:i}),a&&(0,r.jsx)(b,{children:a}),c&&c.length&&(0,r.jsx)(j,{children:c.join(" | ")})]})]})}e.i(485993);var _=e.i(718583);let A=(0,s.styled)(l.Box)({display:"flex",justifyContent:"center",gap:"32px",paddingBottom:"64px"}),B=(0,s.styled)(l.Box)({width:"100%"}),T=(0,s.styled)(l.Box)({display:"flex",flexDirection:"column",justifyContent:"center",gap:"16px",padding:"0px 0px 16px 0px"});var R=e.i(768834),W=e.i(579473),O=e.i(573857);let H=(0,O.defineQuery)(`*[_type == "contributor" && 
2    references(*[_type == "contributorcategory" && title == "Norsk Lovkommentar"]._id) && (
3      $subjects
4    )] | order(lower(lastname) asc) {
5      'title': firstname + ' ' + lastname,
6      'slug': slug.current,
7      'sanityImage': image,
8      'subTitle': companies[0].contributorcompany->name + ', ' + companies[0].contributorjobposition->title,
9      'tags': subjects[]->title,
10  }`),F=(0,O.defineQuery)(`*[_type in ["contributor"] && references(*[_type == "contributorcategory" &&
11    title == "Norsk Lovkommentar"]._id)] | order(lower(lastname) asc){
12      'title': firstname + ' ' + lastname,
13      'slug': slug.current,
14      'sanityImage': image,
15      'subTitle': companies[0].contributorcompany->name + ', ' + companies[0].contributorjobposition->title,
16      'tags': subjects[]->title,
17    }`),P=(0,O.defineQuery)(`*[_type == "subject"] | order(lower(title) asc) {
18      '_id': _id,
19      'title': title,
20      'slug': slug.current,
21    }`),M=async(e,t,r)=>{let i,{clientOptions:a,sanityClient:n}=e,o={};return t&&t.length?(i=H,o={subjects:t.map(e=>`subjects[]->slug.current match "${e}"`).join(" || ")}):i=F,await n.fetch(i,o,{...a,signal:r})},N=async e=>{let{clientOptions:t,sanityClient:r}=e;return await r.fetch(P,{},t)};function z(e){return e.map(e=>e.slug)}let E=(0,R.create)()((0,W.devtools)((e,r)=>({authors:{authors:[],isLoading:!0,error:!1},filters:{filters:[],isLoading:!0,error:!1},activeFilters:[],fetchAuthors:async(r,i)=>{t&&t.abort(),t=new AbortController,e(e=>({authors:{...e.authors,isLoading:!0}}));try{let a=await M(r,i,t.signal);e({authors:{authors:a,isLoading:!1,error:!1}})}catch(t){if("AbortError"===t.name)return;e({authors:{authors:[],isLoading:!1,error:!0}})}},fetchInitialData:async(t,r)=>{try{let i=await N(t),a=Array.isArray(r)?r.map(e=>e.toLowerCase()):[r?.toLowerCase()||""],n=i.filter(e=>a.includes(e.slug.toLowerCase()));e(e=>(e.fetchAuthors(t,z(n)),{activeFilters:n,filters:{filters:i,isLoading:!1,error:!1}}))}catch{e({filters:{filters:[],isLoading:!1,error:!0}})}},updateActiveFilters:(t,i)=>{let a=Array.isArray(i)?i.map(e=>e.toLowerCase()):[i?.toLowerCase()||""],n=r().filters.filters.filter(e=>a.includes(e.slug.toLowerCase()));e(e=>(e.fetchAuthors(t,z(n)),{activeFilters:n}))},resetState:()=>{e({activeFilters:[]})}}),{name:"Authors-store"}));var $=e.i(618566);e.i(80755);var D=e.i(562026),I=e.i(967285);e.s(["Authors",0,()=>{let e=(0,I.useSanityLive)(),{perspective:t,clientOptions:n}=e,{authors:o,filters:s,fetchInitialData:l}=E(),[d,c]=(0,i.useState)(""),[h,u]=(0,i.useState)([]),p=(0,$.useSearchParams)().getAll("subjects");return((0,i.useEffect)(()=>
21{l(e,p)},[t,n]),(0,i.useEffect)(()=>{u(o.authors.map(e=>({...e,slug:`forfattere/${e.slug}`}))),c("")},[o.authors]),o.error||s.error)?(0,r.jsx)(A,{children:(0,r.jsx)(a.Error,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(D.Header,{id:"headerContributor"}),(0,r.jsx)(A,{children:(0,r.jsxs)(B,{children:[(0,r.jsx)(T,{children:(0,r.jsx)(_.Search,{value:d,onChange:e=>{u(o.authors.filter(t=>t.title?.toLowerCase().includes(e.toLocaleLowerCase())).map(e=>({...e,slug:`forfattere/${e.slug}`}))),c(e)},placeholder:"Søk i forfatternavn"})}),(0,r.jsx)(S,{items:h,isLoading:o.isLoading})]})})]})}],847741)}]);

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.