https://owp.klarna.com/static/features-klarnaMarketing-view-components-core-Announcement-b2006646.js
1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[60356],{83343(e,n,t){t.r(n),t(62953);var o=t(74848),r=t(76899),l=t(67184),i=t(511),a=t(3316),c=t(1139),s=t(24287),u=t(33813),d=t(96540),g=t(40961);let m="announcement",b=["warning","error","information","success"],f={error:{backgroundColor:"bg/negative-subtle",icon:"Error",iconColor:"text/negative"},information:{backgroundColor:"bg/accent-subtle",icon:"Information",iconColor:"text/accent"},success:{backgroundColor:"bg/positive-subtle",icon:"Done",iconColor:"text/positive"},warning:{backgroundColor:"bg/warning-subtle",icon:"Warning",iconColor:"text/warning"}};t.d(n,{},{default:e=>{let n=(0,s.gI)(),t=(0,c.A)("BaseButton",e),{text:C,variant:p,closable:v,entryId:_}=e,k=`klarna_announcements_banner__${null!=_?_:p}_closed`,[x,h]=(0,u.A)([k]),[w,E]=(0,d.useState)(null);(0,d.useEffect)(()=>{E(document.getElementById(m))},[]),(0,d.useEffect)(()=>{let e=e=>{let n=document.getElementById(m);(null==n?void 0:n.contains(e.target))&&e.stopPropagation()};return document.addEventListener("focusin",e),()=>{document.removeEventListener("focusin",e)}},[]);let L=(0,d.useCallback)(()=>{h(k,"1",{maxAge:604800,path:`/${n.toLowerCase()}/`})},[k,h,n]),A=(0,d.useCallback)(()=>{L()},[L]),B=(0,d.useCallback)(e=>{t(e,"onClick")},[t]),D=(0,d.useCallback)(()=>{let e=document.activeElement;B({currentTarget:e instanceof HTMLButtonElement?e:null!=w?w:document.body}),A()},[w,A,B]),S=f[b.includes(p)?p:"information"],y=!1!==v&&"1"===String(x[k]);return(0,o.jsx)(o.Fragment,{children:!y&&w?g.createPortal((0,o.jsx)(r.H,{position:"relative",webOnlyProps:{css:{whiteSpace:"pre-line",top:"0 !important"}},width:"100%",zIndex:{default:111,"@breakpoint[m]":802},children:(0,o.jsx)(l.L,{isNotification:!0,shrink:!0,alignVertical:"center",backgroundColor:S.backgroundColor,closeButtonAriaLabel:"close announcement",color:"text/default",description:(0,o.jsx)(r.H,{grow:!0,shrink:!0,minWidth:0,webOnlyProps:{css:{overflowWrap:"anywhere","& p, a, span":{fontSize:i.L.textSizes["text/mobile/xs"]}}},children:null!=C?C:""}),leftArea:(0,o.jsx)(a.I,{filled:!0,color:S.iconColor,name:S.icon}),minWidth:0,role:"alert",variant:"information",width:"100%",onClose:!1===v?void 0:D})}),w):null})}})},1139(e,n,t){t.d(n,{A:()=>l});var o=t(96540),r=t(27092);let l=(e,n={})=>{let{disabled:t,dispatch:l,components:i}=(0,o.use)(r.f);return(o,r)=>{var a;if(t||!l||!i||!(null==(a=i[e])?void 0:a[r]))return null;l((0,i[e][r])(o,n))}}}}]);
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.