PageSourceSearch

https://www.obs.no/assets/9392.chunk.da283e3844026c15dc7c.js

js obs.no collected 2026-10-02 14:42:42 UTC 3,522 bytes, 3 lines download raw bytes

1/*! For license information please see 9392.chunk.da283e3844026c15dc7c.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunknitro5_app=globalThis.webpackChunknitro5_app||[]).push([[9392],{9392:(e,t,n)=>{n.d(t,{default:()=>g});var o=n(6166),l=n(121),i=n(4702),a=n(774),r=n(3696),c=n(9412),s=n(1940),d=n(1659),u=n(9540),p=n(8194);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},b.apply(null,arguments)}const g=e=>{var t,n,o;const i=(0,u.tO)(),[a,c]=(0,r.useState)(!1),[s,p]=(0,r.useState)(!1),b=a||s,g={title:(0,l.Jn)(e.title),contentText:(0,l.Jn)(e.contentText),linkText:(0,l.Jn)(e.linkText),linkUrl:null===(t=(0,l.Jn)(e.linkUrl))||void 0===t?void 0:t.url,backgroundColorSelection:(0,l.Jn)(e.backgroundColorSelection)},m=(0,r.useCallback)(()=>{c(!a)},[a]),y=(0,r.useCallback)(()=>{p(!s)},[s]),I=i?65:80,T=(null===(n=g.contentText)||void 0===n?void 0:n.length)<I?g.contentText:`${null===(o=g.contentText)||void 0===o?void 0:o.substring(0,I-1)} ...`,E="#FBD9CF"===g.backgroundColorSelection||"#FDDAD0"===g.backgroundColorSelection?d.KWc:d.swK;return r.createElement(k,{backgroundColor:b?E:g.backgroundColorSelection,link:g.linkUrl,handleHover:m,handleFocus:y,"data-test-id":(0,l.Jn)(e.testId)},r.createElement(h,null,!!g.title&&r.createElement(f,{css:{color:b?d.ONy:E}},g.title),r.createElement(C,{css:{color:b?d.ONy:d.yCc}},T)),r.createElement(v,null,r.createElement(w,null,g.linkText,r.createElement(x,null))))},k=r.memo(function(e){var{backgroundColor:t,link:n,handleHover:l,handleFocus:c}=e,s=(0,o.__rest)(e,["backgroundColor","link","handleHover","handleFocus"]);return r.createElement(m,{to:n,gtmData:{linkText:"Campaign component block",linkPath:n,context:"Campaign component link",eventType:p.SF.Redirect,eventGroup:p.jf.Campaign},onMouseEnter:l,onMouseLeave:l,onFocus:c,onBlur:c,"data-test-id":"campaigncomponentblock-containerlink"},r.createElement(a.I4.Div,b({css:{position:"relative",height:"100%",width:"100%",overflow:"hidden",cursor:"pointer",borderRadius:10,"::before":Object.assign({content:'""',position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundImage:`radial-gradient(circle at 35% -150%, ${t} 85%, transparent 85.20%)`},(0,i.$_)(d._fM,{backgroundImage:`radial-gradient(circle at 0% -50%, ${t} 70%, transparent 70.20%)`}))}},s)))}),m=(0,a.I4)(s.A,(0,d.Wlv)("LabelLarge"),{borderRadius:12,border:{xy:{width:d.q$c,style:"solid",color:d.t6h}},height:({isCompact:e})=>
2e?133:140,display:"block",":focus-visible":{border:{xy:{width:d.q$c,style:"solid",color:d.y_y}},outline:{width:0}}}),h=a.I4.div({position:"absolute",top:d.YaY,left:d.YaY}),v=a.I4.div({position:"absolute",bottom:d.EXj,right:({isCompact:e})=>e?d.nU9:d.YaY,display:"flex",justifyContent:"center",alignItems:"center"}),f=a.I4.h4((0,d.Wlv)("HeadlineMedium"),{fontSize:({isCompact:e})=>e?d.zcu:d.l$f,marginBottom:0,textAlign:"left",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box"}),C=a.I4.p((0,d.Wlv)("BodyLarge"),{width:({isCompact:e})=>e?"80%":"60%",overflowWrap:"anywhere",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",textAlign:"left"}),w=a.I4.span({color:d.wDm,fontSize:({isCompact:e})=>e?d.NiS:d.pU_,":focus":{outline:{width:0}}}),x=(0,a.I4)(c.yd,{color:d.wDm,transform:"rotate(-90deg)"})}}]);
3//# sourceMappingURL=9392.chunk.da283e3844026c15dc7c.js.map

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.