1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9234],{2779:(e,t,r)=>{"use strict";r.d(t,{W:()=>s});var n=r(4930),i=r(15932),o=r(69021);let l={berlingske:'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m21.85 20.98-4.28-4.28a8.823 8.823 0 0 0 2.19-5.82c0-4.9-3.99-8.88-8.88-8.88C5.99 2 2 5.98 2 10.88s3.98 8.88 8.88 8.88c2.22 0 4.24-.82 5.8-2.17l4.28 4.28c.12.12.28.18.44.18.16 0 .32-.06.44-.18.24-.24.24-.64 0-.88l.01-.01Zm-18.6-10.1c0-4.21 3.42-7.63 7.63-7.63s7.63 3.42 7.63 7.63-3.42 7.63-7.63 7.63-7.63-3.43-7.63-7.63Z" fill="currentColor"/></svg>',bt:'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m21.98 20.55-4.14-4.14a8.845 8.845 0 0 0 1.94-5.52c0-4.9-3.99-8.89-8.89-8.89S2 5.99 2 10.89s3.99 8.89 8.89 8.89c2.09 0 4-.73 5.52-1.93l4.14 4.14 1.43-1.43v-.01Zm-11.09-2.8c-3.78 0-6.86-3.08-6.86-6.86 0-3.78 3.08-6.86 6.86-6.86 3.78 0 6.86 3.08 6.86 6.86 0 3.78-3.08 6.86-6.86 6.86Z" fill="currentColor"/></svg>',euroinvestor:'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m21 21-4.74-4.74m2.28-5.49c0 4.29-3.48 7.77-7.77 7.77-4.29 0-7.77-3.48-7.77-7.77C3 6.48 6.48 3 10.77 3c4.29 0 7.77 3.48 7.77 7.77Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10"/></svg>',weekendavisen:'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m21.82 20.93-4.67-4.67a8.59 8.59 0 0 0 2.1-5.64c0-4.75-3.87-8.62-8.63-8.62C5.86 2 2 5.87 2 10.62c0 4.75 3.87 8.63 8.62 8.63 2.15 0 4.13-.79 5.64-2.1l4.67 4.67c.12.12.28.18.45.18.16 0 .32-.06.44-.18a.64.64 0 0 0 0-.89ZM3.25 10.62c0-4.06 3.31-7.37 7.37-7.37 4.06 0 7.38 3.31 7.38 7.37 0 4.06-3.31 7.38-7.38 7.38s-7.37-3.31-7.37-7.38Z" fill="currentColor"/></svg>'},s=e=>{let t=l[(0,i.r)().features.appearance.iconSet]||"<svg />";return(0,n.jsx)(o.I,{svg:t,...e})}},3488:(e,t,r)=>{"use strict";r.d(t,{$:()=>p});var n=r(4930),i=r(81036),o=r(72752),l=r(32668),s=r(98557),a=r(60563),c=r(63457),d=r(25493),u=r(74470),h=r(65162),m=r(13253),x=r.n(m);function p(e){let{articles:t}=e,[r,m]=(0,h.useState)(30);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.P,{children:"Seneste nyt"}),(0,n.jsx)(i.N,{children:(0,n.jsxs)(o.F,{children:[(0,n.jsx)(c.p,{children:t.slice(0,r).map((e,t)=>t%6==0?(0,n.jsx)(d.T,{article:e,showArticleDate:!0,showCategory:!0,kilkayaPosition:"articleteaser_"+t},t):(0,n.jsx)(u.U,{article:e,showArticleDate:!0,showCategory:!0,kilkayaPosition:"articleteaser_"+t},t))}),r<t.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:x().divider,children:(0,n.jsx)(l.c,{})}),(0,n.jsx)(s.d,{onClick:()=>m(1/0),trackingClass:"sp_loadmorelatestnews"})]})]})})]})}},6038:(e,t,r)=>{"use strict";r.d(t,{S:()=>b});var n=r(4930),i=r(70172),o=r(46550),l=r(68905),s=r(94991),a=r(65162),c=r(91383),d=r(44067),u=r.n(d),h=r(64218),m=r(47034),x=r(86006);let p={name:"StockInstrument",elements:{name:{color:x.r.Grey5,font:{family:h.v.SanomatSansWeb,weight:"500",size:(0,m.px)(16),lineHeight:(0,m.px)(22),letterSpacing:(0,m.px)(.16)}},change:{font:{family:h.v.SanomatSansWeb,weight:"400",size:(0,m.px)(16),lineHeight:(0,m.px)(22),letterSpacing:(0,m.px)(.16)}},volume:{color:x.r.Grey4,font:{family:h.v.SanomatSansWeb,weight:"400",size:(0,m.px)(13),lineHeight:(0,m.px)(19),transform:"uppercase",letterSpacing:(0,m.px)(.25)}},value:{color:x.r.Grey4,font:{family:h.v.SanomatSansWeb,weight:"400",size:(0,m.px)(13),lineHeight:(0,m.px)(19),letterSpacing:(0,m.px)(.25)}}}};var g=r(15197);let v={name:"StockInstrument",elements:{name:{color:g.r.Grey2,font:{family:h.v.BTGrotesk,weight:"600",size:(0,m.px)(16),lineHeight:(0,m.px)(22)}},change:{font:{family:h.v.BTGrotesk,weight:"500",size:(0,m.px)(16),lineHeight:(0,m.px)(22)}},volume:{color:g.r.Grey10,font:{family:h.v.BTGrotesk,weight:"500",size:(0,m.px)(13),lineHeight:(0,m.px)(19)}},value:{color:g.r.Grey10,font:{family:h.v.BTGrotesk,weight:"500",size:(0,m.px)(13),lineHeight:(0,m.px)(19)}}}};var f=r(44937);let k={berlingske:p,bt:v,euroinvestor:{name:"StockInstrument",elements:{name:{color:f.u.Grey1,font:{family:h.v.LedgerGrotesk,weight:"700",size:(0,m.px)(16),lineHeight:(0,m.px)(22)}},change:{font:{family:h.v.LedgerGrotesk,weight:"400",size:(0,m.px)(16),lineHeight:(0,m.px)(22)}},volume:{color:f.u.Grey6,font:{family:h.v.LedgerGrotesk,weight:"400",size:(0,m.px)(13),lineHeight:(0,m.px)(19),transform:"uppercase"}},value:{color:f.u.Grey6,font:{family:h.v.LedgerGrotesk,weight:"400",size:(0,m.px)(13),lineHeight:(0,m.px)(19)}}}}};var _=r(84050);let b=a.memo(function(e){let{name:t,price:r,currency:a,changeInPercentage:d,change:h,volume:m,url:x}=e,p=void 0===m?void 0:(0,o.Z)(m,{fractionalDigits:0}),g=`${(0,o.Z)(r)} ${a}`,v=(0,_.F)({price:r,currency:a,changeInPercentage:d,change:h,volume:m});return(0,n.jsx)(s.J,{themes:k,children:(0,n.jsxs)("div",{className:u().instrument,children:[(0,n.jsxs)("div",{className:u().row,children:[x?(0,n.jsx)(i.N,{href:x,className:(0,l.cx)(u().name,u().nameLink),children:t}):(0,n.jsx)("span",{className:u().name,children:t}),(0,n.jsx)("span",{className:u().srOnly,children:v}),(0,n.jsx)("div",{className:u().change,"aria-hidden":"true",children:(0,n.jsx)(c.g,{value:d,formatValue:e=>void 0===h?`${(0,o.Z)(e)}%`:`${(0,o.Z)(h)} / ${(0,o.Z)(e)}%`})})]}),(0,n.jsxs)("div",{className:u().row,"aria-hidden":"true",children:[(0,n.jsx)("div",{className:u().volume,children:void 0!==p&&`Vol ${p}`}),(0,n.jsx)("div",{className:u().value,children:g})]})]})})})},13253:e=>{e.exports={divider:"LatestArticles_divider__rVtom"}},13289:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/markeder/portfolio/[id]",function(){return r(63824)}])},14476:e=>
1{e.exports={header:"StockPortfolioGraph_header__X6FLa"}},15860:e=>{e.exports={button:"StockPortfolioPositionTable_button__Jxwnu"}},21227:(e,t,r)=>{"use strict";r.d(t,{q:()=>y});var n=r(4930),i=r(52406),o=r(17391),l=r(92229),s=r(68905),a=r(94991),c=r(65162),d=r(30100),u=r(6038),h=r(77956),m=r(29379),x=r.n(m),p=r(64218),g=r(47034),v=r(86006);let f={name:"StockInstrumentSearch",elements:{dropdown:{font:{family:p.v.SanomatSansWeb,weight:"400",size:(0,g.px)(16),lineHeight:(0,g.px)(22),letterSpacing:(0,g.px)(.16)},color:v.r.Grey5,borderColor:v.r.Grey5}}};var k=r(15197);let _={name:"StockInstrumentSearch",elements:{dropdown:{font:{family:p.v.BTGrotesk,weight:"500",size:(0,g.px)(16),lineHeight:(0,g.px)(22)},color:k.r.Grey2,borderColor:k.r.Grey2}}};var b=r(44937);let j={berlingske:f,bt:_,euroinvestor:{name:"StockInstrumentSearch",elements:{dropdown:{font:{family:p.v.LedgerGrotesk,size:(0,g.px)(16),lineHeight:(0,g.px)(22),weight:"400"},color:b.u.Grey1,borderColor:b.u.Grey1}}}};function y(e){let{onInstrumentSelect:t,placeholder:r,trackingClass:m,renderSearchResultAs:p}=e,[g,v]=(0,c.useState)(null),[f,k]=(0,c.useState)(""),_=(0,c.useRef)(null),b=(0,d.M)(f),y=!!f&&null===b,S=()=>{k(""),_.current?.reset()};return(0,i.r)({active:!!b,elements:[g],onDeactivate:(0,o._)(e=>(e.preventDefault(),S(),!0))}),(0,n.jsx)(a.J,{themes:j,children:(0,n.jsxs)("div",{ref:v,children:[(0,n.jsx)(h.F,{ref:_,onChange:e=>{k(e)},busy:y,placeholder:r,trackingClass:m}),(0,n.jsx)("div",{className:x().dropdown,children:b&&(0===b.length?(0,n.jsx)("div",{className:x().noResults,children:"Ingen resultater fundet"}):(0,n.jsx)("ul",{className:x().list,children:b.map((e,r)=>{let i=(0,n.jsx)(u.S,{name:e.name,price:e.last,currency:e.currency,changeInPercentage:e.changeInPercentage,change:e.change,volume:e.volume});return(0,n.jsx)("li",{className:x().listItem,children:"link"===p?(0,n.jsx)("a",{className:(0,s.cx)(x().searchResultsLink,`${m}_result-item-${r}`),href:(0,l.N)(e),children:i}):(0,n.jsx)("button",{className:(0,s.cx)(x().searchResultsButton,`${m}_result-item-${r}`),type:"button",onClick:()=>{t&&t(e),S()},children:i})},e.id)})}))})]})})}},23372:e=>{e.exports={content:"StockPortfolioEditPanel_content__wFbjR",buttons:"StockPortfolioEditPanel_buttons__FaTCl",primaryCheckboxContainer:"StockPortfolioEditPanel_primaryCheckboxContainer__GbUQv",deleteButton:"StockPortfolioEditPanel_deleteButton__8wKpI",deleteText:"StockPortfolioEditPanel_deleteText__7ZrCy"}},24923:e=>{e.exports={root:"FormCheckbox_root__oaFf8",group:"FormCheckbox_group__IJsBX",checkbox:"FormCheckbox_checkbox__DrKJq",icon:"FormCheckbox_icon__28m9H",input:"FormCheckbox_input__NDCvb",label:"FormCheckbox_label__3S6c3"}},25826:(e,t,r)=>{"use strict";r.d(t,{C:()=>g});var n=r(4930),i=r(77674),o=r(94991),l=r(36387),s=r.n(l),a=r(64218),c=r(47034),d=r(86006);let u={name:"StockHeader",elements:{title:{font:{family:a.v.SanomatAlt,weight:"700",size:(0,c.px)(28),lineHeight:(0,c.px)(32)},color:d.r.Grey5},description:{font:{family:a.v.SanomatSansWeb,weight:"400",size:(0,c.px)(13),lineHeight:(0,c.px)(19),letterSpacing:(0,c.px)(.25)},color:d.r.Grey4}}};var h=r(15197);let m={name:"StockHeader",elements:{title:{font:{family:a.v.BTGrotesk,weight:"900",size:(0,c.px)(26),lineHeight:(0,c.px)(33)},color:h.r.Grey2},description:{font:{family:a.v.BTGrotesk,weight:"500",size:(0,c.px)(13),lineHeight:(0,c.px)(19)},color:h.r.Grey10}}};var x=r(44937);let p={berlingske:u,bt:m,euroinvestor:{name:"StockHeader",elements:{title:{font:{family:a.v.LedgerGrotesk,weight:"750",size:(0,c.px)(24),lineHeight:(0,c.px)(30)},color:x.u.Grey1},description:{font:{family:a.v.LedgerGrotesk,weight:"400",size:(0,c.px)(13),lineHeight:(0,c.px)(19)},color:x.u.Grey6}}}},g=e=>{let{title:t,description:r}=e;return(0,n.jsx)(o.J,{themes:p,children:(0,n.jsxs)(i.D,{className:s().header,children:[(0,n.jsx)("div",{className:s().title,children:t}),r&&(0,n.jsx)("div",{className:s().description,children:r})]})})}},27228:(e,t,r)=>{"use strict";r.d(t,{l:()=>s});var n=r(4930),i=r(15932),o=r(69021);let l={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16">
1<path fill="currentcolor" d="M11.103 4.782a.785.785 0 0 1 1.12-.088c.302.264.362.71.156 1.043l-.07.096-4.536 5.385a.785.785 0 0 1-1.09.113l-.086-.079-2.875-3.041a.817.817 0 0 1 .022-1.142.784.784 0 0 1 1.035-.058l.088.08 2.268 2.4 3.968-4.709Z"/></svg>\n',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentcolor" fill-rule="evenodd" d="M5.823 9.613 13.311 2 15.5 4.218 5.823 14 .5 8.605l2.164-2.193 3.16 3.201Z" clip-rule="evenodd"/></svg>\n',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentcolor" d="m6.227 12.36-3.47-3.78c-.19-.2-.17-.52.03-.71l.74-.68c.2-.19.52-.17.71.03l2.32 2.53 5.17-6.09c.18-.21.49-.24.7-.06l.77.65c.21.18.24.49.06.7l-6.27 7.39c-.2.23-.55.24-.75.01l-.01.01Z"/></svg>\n',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentcolor" fill-rule="evenodd" d="M5.615 12.314 13.722 2.1l.778.618-8.875 11.181L1.5 8.837l.77-.627 3.345 4.105Z" clip-rule="evenodd"/></svg>\n'},s=e=>{let t=l[(0,i.r)().features.appearance.iconSet]||"<svg />";return(0,n.jsx)(o.I,{svg:t,...e})}},29379:e=>{e.exports={dropdown:"StockInstrumentSearch_dropdown__0t1EQ",list:"StockInstrumentSearch_list__zHdm4",noResults:"StockInstrumentSearch_noResults__Qe8_r",listItem:"StockInstrumentSearch_listItem__op_mR",searchResultsLink:"StockInstrumentSearch_searchResultsLink__x6OcX",searchResultsButton:"StockInstrumentSearch_searchResultsButton__bbqVQ"}},30100:(e,t,r)=>{"use strict";r.d(t,{M:()=>a});var n=r(17391),i=r(15932),o=r(36189),l=r(65162);function s(e,t){return fetch(e,t).then(e=>e.json()).then(e=>e)}function a(e){let t=(0,i.r)().features.stocks,r=(0,o.v)();if(!t.enabled)return null;let a=(0,l.useRef)(null),[c,d]=(0,l.useState)(null),u=(0,n._)(async e=>{a.current=new AbortController;let t=a.current.signal;if(!e.trim())return void d(null);try{let n=await s(`${r.BM_STOCK_SEARCH_API}/instruments?q=${e}`,{signal:t});if(!n.length)return void d([]);let i=n.map(e=>e._source.id),o=await s(`${r.BM_STOCK_API_URL}/instruments?ids=${i.join(",")}`,{signal:t});d(o)}catch(e){e instanceof Error&&"AbortError"!==e.name&&d(null)}});return(0,l.useEffect)(()=>(u(e),()=>{a.current?.abort("query has changed")}),[e]),c}},36387:e=>{e.exports={header:"StockHeader_header__DL5W5",title:"StockHeader_title__a4xxp",description:"StockHeader_description__nPnVQ"}},43316:e=>{e.exports={container:"StockPortfolioAllocations_container__p3GJP",legend:"StockPortfolioAllocations_legend__RV_nY",legendBullet:"StockPortfolioAllocations_legendBullet__AV00y"}},44067:e=>{e.exports={instrument:"StockInstrument_instrument__t0scp",row:"StockInstrument_row__xtZ2j",name:"StockInstrument_name__66GsP",nameLink:"StockInstrument_nameLink__xf8lW",change:"StockInstrument_change__Kbu16",volume:"StockInstrument_volume___cv6I",value:"StockInstrument_value__E2ZvV",srOnly:"StockInstrument_srOnly__chK4x"}},44267:e=>{e.exports={container:"StockPriceChange_container__5cJzq",outgoing:"StockPriceChange_outgoing__y5DV5",incoming:"StockPriceChange_incoming__G4YK_",outgoingUp:"StockPriceChange_outgoingUp__DGSWw",outgoingDown:"StockPriceChange_outgoingDown__wF25K",incomingUp:"StockPriceChange_incomingUp__8K7MU",incomingDown:"StockPriceChange_incomingDown__nBXzD"}},47937:e=>{e.exports={container:"StockSearchInput_container__ThQlw",input:"StockSearchInput_input__eBsak",clearButton:"StockSearchInput_clearButton__tFmtm"}},52732:e=>{e.exports={content:"StockPortfolioAddTransactionPanel_content__8eMjl"}},54933:e=>{e.exports={portfolioLink:"StockPortfolioLink_portfolioLink__vRJvC"}},60158:(e,t,r)=>{"use strict";r.d(t,{c:()=>b});var n=r(4930),i=r(17391),o=r(27228),l=r(82408),s=r(94991),a=r(65162),c=r(24923),d=r.n(c),u=r(64218),h=r(47034),m=r(86006);let x={name:"FormCheckbox",elements:{input:{borderColor:m.r.Grey5,errorColor:m.r.Red2,selectedBackgroundColor:m.r.Black,selectedBorderColor:m.r.Black},label:{color:m.r.Grey5,font:{family:u.v.SanomatSansWeb,size:(0,h.px)(13),lineHeight:(0,h.px)(19)}}}};var p=r(15197);let g={name:"FormCheckbox",elements:{input:{borderColor:p.r.Grey2,selectedBackgroun
1dColor:p.r.Grey2,selectedBorderColor:p.r.Grey2,errorColor:p.r.Red1},label:{color:p.r.Grey2,font:{family:u.v.BTGrotesk,size:(0,h.px)(13),lineHeight:(0,h.px)(19),weight:"500"}}}};var v=r(44937);let f={name:"FormCheckbox",elements:{input:{borderColor:v.u.Grey1,errorColor:v.u.Red1,selectedBackgroundColor:v.u.Blue1,selectedBorderColor:v.u.Blue1},label:{color:v.u.Grey1,font:{family:u.v.LedgerGrotesk,size:(0,h.px)(13),lineHeight:(0,h.px)(19),weight:"400"}}}};var k=r(3351);let _={berlingske:x,bt:g,euroinvestor:f,weekendavisen:{name:"FormCheckbox",elements:{input:{borderColor:k.G.Black,errorColor:k.G.Red1,selectedBackgroundColor:k.G.Black,selectedBorderColor:k.G.Black},label:{color:k.G.Black,font:{family:u.v.WEASans,size:(0,h.px)(13),lineHeight:(0,h.px)(19)}}}}},b=e=>{let{children:t,name:r,center:c,labelAction:u,...h}=e,[m,x]=(0,a.useState)(!1),p=(0,a.useId)(),g=`${p}-label`,v=`${p}-label-action`,f=(0,i._)(e=>{e.preventDefault(),x(!e.target.validity.valid)}),k=(0,i._)(e=>{e.preventDefault();let t=e.target;x(!!h.required&&!t.checked)});return(0,n.jsx)(s.J,{themes:_,children:(0,n.jsx)("div",{className:d().root,children:(0,n.jsxs)("div",{className:d().group,"data-center":c,children:[(0,n.jsxs)("div",{className:d().checkbox,children:[(0,n.jsx)("div",{className:d().icon,children:(0,n.jsx)(o.l,{size:l.l.Small})}),(0,n.jsx)("input",{type:"checkbox",name:r,id:p,className:d().input,onInvalid:f,onInput:k,"data-has-error":m,"aria-labelledby":u?`${g} ${v}`:void 0,...h})]}),(0,n.jsxs)("span",{children:[(0,n.jsx)("label",{id:g,htmlFor:p,className:d().label,children:t}),u&&(0,n.jsxs)("span",{id:v,children:[" ",u]})]})]})})})}},60714:(e,t,r)=>{"use strict";r.d(t,{Q:()=>k});var n=r(4930),i=r(82408),o=r(68905),l=r(94991),s=r(90053),a=r.n(s),c=r(64218),d=r(47034),u=r(86006);let h={name:"TextButton",elements:{button:{font:{family:c.v.SanomatSansWeb,weight:"400",size:(0,d.px)(16),lineHeight:(0,d.px)(16),letterSpacing:(0,d.px)(.16)},color:u.r.Grey5,darkColor:u.r.White}}};var m=r(15197);let x={name:"TextButton",elements:{button:{font:{family:c.v.BTGrotesk,weight:"500",size:(0,d.px)(16),lineHeight:(0,d.px)(16)},color:m.r.Grey2,darkColor:m.r.White}}};var p=r(44937);let g={name:"TextButton",elements:{button:{font:{family:c.v.LedgerGrotesk,weight:"400",size:(0,d.px)(16),lineHeight:(0,d.px)(16)},color:p.u.Grey1,darkColor:p.u.White}}};var v=r(3351);let f={berlingske:h,bt:x,euroinvestor:g,weekendavisen:{name:"TextButton",elements:{button:{font:{family:c.v.WEASans,weight:"400",size:(0,d.px)(16),lineHeight:(0,d.px)(16)},color:v.G.Grey7,darkColor:v.G.White}}}};function k(e){let{label:t,ariaLabel:r,ariaPressed:s,icon:c,onClick:d,disabled:u,ariaDisabled:h,dark:m,trackingClass:x,ref:p}=e;return(0,n.jsx)(l.J,{themes:f,children:(0,n.jsxs)("button",{ref:p,className:(0,o.cx)(a().button,!h&&x),type:"button",onClick:h?void 0:d,"aria-label":r,"aria-pressed":s,"aria-disabled":h,disabled:u,"data-dark":m,children:[t,c&&(0,n.jsx)("span",{"aria-hidden":"true",children:(0,n.jsx)(c,{size:i.l.Medium})})]})})}},63824:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>eM,default:()=>eL});var n,i=r(4930),o=r(61107),l=r(40355),s=r(74331),a=r(82068),c=r(17391),d=r(66370),u=r(80028),h=r(60714),m=r(72752),x=r(77674),p=r(64627),g=r(15932),v=r(36189),f=r(82408),k=r(23167),_=r(95465),b=r(25826),j=r(42975),y=r(72658),S=r(21227),w=r(4203),C=r(65162),T=r(95847),P=r(43485),G=r(29786),N=r(14476),B=r.n(N);let I=[{key:P.E.OneMonth,label:"1m"},{key:P.E.ThreeMonths,label:"3m"},{key:P.E.OneYear,label:"1\xe5r"},{key:P.E.FiveYears,label:"5\xe5r"},{key:P.E.All,label:"Alle"}],F={[P.E.OneMonth]:"week",[P.E.ThreeMonths]:"month",[P.E.OneYear]:"quarter",[P.E.FiveYears]:"year",[P.E.All]:"year"};function A(e){let t=(0,g.r)().features.stocks,r=(0,v.v)();if(!t.enabled)return null;let[n,o]=(0,C.useState)(P.E.OneMonth),{data:l}=(0,w.J)({url:r.BM_STOCK_API_URL+"/users/portfolios/"+e.id+"/graph?fromDate="+function(e){let t=new Date;switch(e){case P.E.OneMonth:return new Date(t.setMonth(t.getMonth()-1)).toISOString().split("T")[0];case P.E.ThreeMonths:return new Date(t.setMonth(t.getMonth()-3)).toISOString().split("T")[0];case P.E.OneYear:return new Date(t.setFullYear(t.getFullYear()-1)).toISOString().split("T")[0];case P.E.FiveYears:return new Date(t.setFullYear(t.getFullYear()-5)).toISOString().split("T")[0]}return"1970-01-01"}(n)}),s=l?.map(e=>({timestamp:new Date(e.date).getTime(),price:e.totalValue}))||[];return 0===s.length?null:(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:B().header,children:(0,i.jsx)(G.u,{options:I,selected:n,onChange:o})}),(0,i.jsx)(T.z,{timeSeriesData:s,timeTickType:F[n],numberOfDecimals:2,yAxisLabel:"DKK"},JSON.stringify(s))]})}
1var D=r(46550),$=r(69852);function z(e){let{positions:t}=e,r=t?.reduce((e,t)=>e+t.marketValue,0)||0,n=t?.reduce((e,t)=>e+t.totalReturn,0)||0,o=t?.length||0;return(0,i.jsx)($.p,{items:[{term:"Markedsv\xe6rdi",description:`${(0,D.Z)(r)} DKK`},{term:"Urealiseret gevinst/tab",description:`${(0,D.Z)(n)} DKK`},{term:"Urealiseret gevinst/tab i %",description:`${(0,D.Z)(r>0?n/(r-n)*100:0)}%`},{term:"Antal positioner",description:`${(0,D.Z)(o,{fractionalDigits:0})}`}]})}var R=r(98557),H=r(18837),L=r(59948),M=r(91383),E=r(79460),K=r(32838),Z=r(91332),O=r(15860),V=r.n(O);function J(e){let{positions:t}=e,r=Array.from(new Set(t?.map(e=>e.instrumentId)||[])),n=(0,L.K)(r),o=t?.map(e=>({position:e,instrument:n.find(t=>t.id===e.instrumentId)})).sort((e,t)=>e.position.instrumentName.toLowerCase().localeCompare(t.position.instrumentName.toLowerCase())),[l,s]=(0,C.useState)(!1);return(0,i.jsxs)("div",{children:[(0,i.jsxs)(Z.b,{freezeFirstColumn:!0,children:[(0,i.jsx)(E.r,{columns:[{label:"V\xe6rdipapir",key:"instrumentName"},{label:"Afkast %",key:"totalReturnInPercentage"},{label:"Afkast DKK",key:"totalReturn"},{label:"V\xe6gtning %",key:"weight"},{label:"Antal",key:"stockCount"},{label:"Pris (GNS)",key:"averagePrice"},{label:"Kurs",key:"stockPrice"},{label:"Markeds\xadv\xe6rdi DKK",key:"marketValue"}]}),(0,i.jsx)("tbody",{children:o?.slice(0,l?void 0:4).map(e=>{let{position:t,instrument:r}=e;return(0,i.jsxs)(K.v,{children:[(0,i.jsx)("div",{children:r?(0,i.jsx)("a",{href:(0,H.N)(r),children:t.instrumentName}):t.instrumentName}),(0,i.jsx)(M.g,{value:t.totalReturnInPercentage,formatValue:e=>`${(0,H.Z)(e,{fractionalDigits:1})}%`}),(0,i.jsx)(M.g,{value:t.totalReturn,formatValue:e=>`${(0,H.Z)(e,{fractionalDigits:1})}`}),(0,i.jsxs)("div",{children:[(0,H.Z)(t.weight<1e-6?0:t.weight,{fractionalDigits:2}),"%"]}),(0,i.jsx)("div",{children:(0,H.Z)(t.stockCount,{fractionalDigits:0})}),(0,i.jsxs)("div",{children:[(0,H.Z)(t.averagePrice)," ",t.instrumentCurrencyRate.currencyCode]}),(0,i.jsxs)("div",{children:[(0,H.Z)(t.stockPrice)," ",t.instrumentCurrencyRate.currencyCode]}),(0,i.jsx)("div",{children:(0,H.Z)(t.marketValue)})]},t.instrumentId)})})]}),!l&&t.length>4&&(0,i.jsx)("div",{className:V().button,children:(0,i.jsx)(R.d,{onClick:()=>s(e=>!e)})}),t?.length===0&&(0,i.jsx)("p",{children:"Ingen aktive positioner fundet."})]})}function U(e){let{data:t}=e,r=0,n=t.reduce((e,t)=>e+t.value,0);if(0===n)return null;let o=t.find(e=>e.value===n);return o?(0,i.jsx)("svg",{width:150,height:150,viewBox:"0 0 150 150",children:(0,i.jsx)("circle",{cx:75,cy:75,r:75,fill:o.color})}):(0,i.jsx)("svg",{width:150,height:150,viewBox:"0 0 150 150",children:t.map((e,t)=>{let{value:o,color:l}=e,s=o/n*100,a=3.6*r,c=(r+s)*3.6;r+=s;let d=Math.PI/180*(a-90),u=Math.PI/180*(c-90),h=75+75*Math.cos(d),m=75+75*Math.sin(d),x=75+75*Math.cos(u),p=75+75*Math.sin(u),g=`M 75 75 L ${h} ${m} A 75 75 0 ${+(s>50)} 1 ${x} ${p} Z`;return(0,i.jsx)("path",{d:g,fill:l},t)})})}var W=r(77787),q=r(43316),Y=r.n(q);let Q=["#005BBB","#0099F0","#00534C","#00B870","#FFD500","#FFA600","#E83F3F","#FF6F91","#8F00FF","#4C0070","#802000","#1A1A1A","#D8D8D8","#666666","#B5FFE9","#7286D3","#003249"],X=[{id:"instrumentType",label:"Produkt"},{id:"sector",label:"Sektor"},{id:"currency",label:"Valuta"}];function ee(e){let{allocations:t}=e,[r,n]=(0,C.useState)(X[0]),o=(t?.find(e=>e.name===r.id)?.allocations||[]).map((e,t)=>{let n=Q[t%Q.length]||"";return"sector"===r.id?{name:({101:"Materialer",102:"Cyklisk forbrug",103:"Finans",104:"Ejendomme",205:"Forbrugsvarer",206:"Sundhed",207:"Forsyning",308:"Kommunikationsservice",309:"Olie og gas",310:"Industri",311:"Teknologi"})[e.id||""]||"Andet",value:e.percentage,color:n}:"instrumentType"===r.id?{name:({1:"Aktier",2:"Optioner",3:"Futures",4:"Future optioner",5:"Sports",6:"Ukendt",7:"Virk. obligationer",8:"Investeringsforeninger",9:"Statsobligationer",10:"Indeks",11:"Obligationer",12:"Ukendt",15:"Monetary Funds",16:"Obligationer",17:"Fonde og certifikater",18:"Warrants",20:"Valutakurser",21:"Kryptovaluta"})[e.id||""]||"Andet",value:e.percentage,color:n}:{name:e.name,value:e.percentage,color:n}});return(0,i.jsxs)("section",{className:Y().container,children:[(0,i.jsx)(W.B,{options:X,value:r,onChange:n}),(0,i.jsx)(y.D,{title:`${r.label}allokeringer`}),(0,i.jsx)(U,{data:o}),(0,i.jsx)("div",{className:Y().legend,children:(0,i.jsx)($.p,{items:o.map(e=>({id:e.name,term:(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{className:Y().legendBullet,style:{backgroundColor:e.color}}),e.name]}),description:`${(0,D.Z)(e.value>1e-6?e.value:0)}%`}))})}),0===o.length&&(0,i.jsx)("p",{children:"Ingen allokeringer fundet."})]})}var et=r(28001),er=r(72171),en=r(3488),ei=r(47832),eo=r(30448),el=r(60158),es=r(18088),ea=r(94991),ec=r(23372),ed=r.n(ec),eu=r(64218),eh=r(47034),em=r(86006);let ex={name:"StockPortfolioEditPanel",elements:{deleteConfirmation:{color:em.r.Grey5,font:{family:eu.v.SanomatSansWeb,weight:"400",size:(0,eh.px)(15)}}}};var ep=r(15197);let eg={name:"StockPortfolioEditPanel",elements:{deleteConfirmation:{color:ep.r.Grey2,font:{family:eu.v.BTGrotesk,weight:"500",size:(0,eh.px)(15)}}}};var ev=r(44937);let ef={berlingske:ex,bt:eg,euroinvestor:{name:"StockPortfolioEditPanel",elements:{deleteConfirmation:{color:ev.u.Grey1,font:{family:eu.v.LedgerGrotesk,weight:"400",size:(0,eh.px)(15)}}}}};function ek(e){let{activePortfolio:t,onClose:r,onSubmit:n,onDelete:o}=e,[l,s]=(0,C.useState)(!1);return(0,i.jsx)(ea.J,{themes:ef,children:(0,i.jsx)(ei.E,{isModal:!0,title:"Rediger portef\xf8lje",onClose:r,children:(0,i.jsx)("div",{className:ed().content,children:l?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:ed().deleteText,children:["Er du sikker p\xe5, at du vil slette denne portef\xf8lje?",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),'"',t.name,'"']}),(0,i.jsxs)("div",{className:ed().buttons,children:[(0,i.jsx)(p.$,{variant:"secondary",width:"100%",onClick:()=>s(!1),children:"Annuller"}),(0,i.jsx)(p.$,{variant:"tertiary",danger:!0,onClick:o,children:"Slet"})]})]}):(0,i.jsxs)("form",{onSubmit:e=>{e.preventDefault();let r=new FormData(e.target),i=r.get("name")?.toString(),o=!!t.isPrimary||r.get("primary")?.toString()==="on";i&&n({name:i,isPrimary:o||!1})},children:[(0,i.jsx)(eo.G,{name:"name",label:"Navn",defaultValue:t.name,required:!0}),!t.isPrimary&&(0,i.jsx)("div",{className:ed().primaryCheckboxContainer,children:(0,i.jsx)(el.c,{name:"primary",children:"Prim\xe6r"})}),(0,i.jsxs)("div",{className:ed().buttons,children:[(0,i.jsx)(p.$,{variant:"secondary",width:"100%",onClick:r,children:"Annuller"}),(0,i.jsx)(es.J,{text:"Gem",width:"100%"})]}),!t.isPrimary&&(0,i.jsx)("div",{className:ed().deleteButton,children:(0,i.jsx)(p.$,{variant:"tertiary",danger:!0,onClick:()=>s(!0),children:"Slet portef\xf8lje"})})]})})})})}var e_=r(6722),eb=r(65048),ej=r(35385),ey=r(41236),eS=r(95444),ew=r(52732),eC=r.n(ew),eT=((n=eT||{})[n.Buy=1]="Buy",n[n.Sell=2]="Sell",n[n.Dividend=3]="Dividend",n);function eP(e){let{onClose:t,onTransactionAdded:r,portfolioId:n,instrument:o,sellLimit:l}=e,s=(0,g.r)().features.stocks,a=(0,v.v)(),c=(0,e_.A)(),{notify:d}=(0,ej.E)();if(!s.enabled)return null;let u=(0,C.useRef)(new Date),h="DKK"===o.currency?100:void 0,m=(0,eb.s)({url:"DKK"!==o.currency?`${a.BM_STOCK_API_URL}/exchange-rates/${o.currency}`:void 0});h=m?.data?.rate||h;let x=async e=>{let i=await c.getAccessToken(),l=await fetch(`${a.BM_STOCK_API_URL}/users/portfolios/${n}/transactions`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:JSON.stringify({...e,instrumentId:o.id,notes:""})});if(!l.ok){d({type:"error",body:"Kunne ikke tilf\xf8je transaktionen"}),console.warn("Failed to add transaction: ",await l.json());return}r(),t()};return h?(0,i.jsxs)(ei.E,{isModal:!0,title:"Tilf\xf8j transaktion",onClose:t,children:[(0,i.jsx)(eS.e,{instrument:o}),(0,i.jsx)("div",{className:eC().content,children:(0,i.jsx)(ey.d,{initialValues:{type:1,transactedAt:u.current.toISOString(),stockCount:1,stockPrice:o.last,tradingCost:0,exchangeRate:h,baseCurrency:o.currency},sellLimit:l,onSubmit:x,onClose:t})})]}):null}var eG=r(70172),eN=r(68905),eB=r(54933),eI=r.n(eB);let eF={berlingske:{name:"StockPortfolioLink",elements:{link:{font:{family:eu.v.SanomatSansWeb,size:(0,eh.px)(16),weight:"700",letterSpacing:(0,eh.px)(.16),lineHeight:(0,eh.px)(22)},color:em.r.Blue2}}},bt:{name:"StockPortfolioLink",elements:{link:{font:{family:eu.v.BTGrotesk,size:(0,eh.px)(16),weight:"900"},color:ep.r.Red1}}},euroinvestor:{name:"StockPortfolioLink",elements:{link:{font:{family:eu.v.LedgerGrotesk,size:(0,eh.px)(16),weight:"700",lineHeight:(0,eh.px)(22),letterSpacing:"0.025em"},color:ev.u.Blue1}}}},eA=()=>(0,i.jsx)(ea.J,{themes:eF,children:(0,i.jsx)(eG.N,{href:"/markeder/portfolio",className:(0,eN.cx)(eI().portfolioLink,"sp_portfolio_overview_link"),children:"Skift portef\xf8lje"})});var eD=r(89370),e$=r.n(eD);let ez="stock_portfolio_page";function eR(e){let{portfolioId:t,latestArticles:r}=e,n=(0,g.r)().features.stocks,o=(0,v.v)(),l=(0,a.A)(),w=(0,c._)(()=>{{let e=new URL(window.location.href).searchParams.get("instrumentId")||void 0;e&&(async()=>{let t=await fetch(`${o.BM_STOCK_API_URL}/instruments?ids=${e}`);if(t.ok){let e=await t.json();e?.[0]&&(O(e[0]),K(!0))}})()}});if((0,C.useEffect)(()=>{w()},[]),!n.enabled)return null;let{data:T,refetch:P}=(0,a.J)({url:o.BM_STOCK_API_URL+"/users/portfolios"}),{data:G,refetch:N}=(0,a.J)({url:o.BM_STOCK_API_URL+"/users/portfolios/"+t+"/positions"}),{data:B,refetch:I}=(0,a.J)({url:o.BM_STOCK_API_URL+"/users/portfolios/"+t+"/allocations"}),{data:F,refetch:D}=(0,a.J)({url:o.BM_STOCK_API_URL+"/users/portfolios/"+t+"/transactions"}),{data:$,refetch:R}=(0,a.J)({url:o.BM_STOCK_API_URL+"/users/portfolios/"+t+"/report?fromDate=1970-01-01"}),H=$?.realisations,[L,M]=(0,C.useState)(!1),[E,K]=(0,C.useState)(!1),[Z,O]=(0,C.useState)(null),V=async e=>{let{name:r,isPrimary:n}=e,i=await l.getAccessToken();if(!(await fetch(`${o.BM_STOCK_API_URL}/users/portfolios/${t}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:JSON.stringify({name:r,markAsPrimary:n||!1})})).ok)throw Error("Failed to update portfolio");P(),M(!1)},U=async()=>{let e=await l.getAccessToken();if(e){if(!(await fetch(`${o.BM_STOCK_API_URL}/users/portfolios/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${e}`}})).ok)throw Error("Failed to delete portfolio");M(!1),location.href="/markeder/portfolio"}},W=async e=>{O(e),K(!0)},q=T?.find(e=>e.id===t);return q?(0,i.jsx)(_.Y,{showTopBanner:!0,showTopScrollBanner:!0,showStickyBanners:!0,showStockTicker:!0,bannerIdPrefix:ez,children:(0,i.jsxs)(d.m,{fluidOnTablet:!0,children:[q&&(0,i.jsxs)("div",{className:e$().container,children:[(0,i.jsxs)("div",{className:e$().header,children:[(0,i.jsxs)("div",{className:e$().headerTop,children:[(0,i.jsxs)("div",{className:e$().title,children:[(0,i.jsx)(b.C,{title:q.name}),q.isPrimary&&(0,i.jsx)(j.T,{})]}),(0,i.jsx)(h.Q,{label:"Rediger",ariaLabel:"Rediger portfolio",icon:k.q,onClick:()=>M(!0)})]}),(0,i.jsx)(eA,{})]}),(0,i.jsxs)(m.F,{children:[(0,i.jsxs)("section",{children:[(0,i.jsx)("div",{className:e$().sectionHeader,children:(0,i.jsx)(y.D,{title:"Tilf\xf8j ny transaktion"})}),(0,i.jsx)(S.q,{onInstrumentSelect:W,placeholder:"Indtast v\xe6rdipapir eller fond",trackingClass:"sp_portfolio_search"})]}),(0,i.jsxs)("section",{children:[(0,i.jsx)(x.D,{className:e$().screenReaderOnly,children:"Graf"}),(0,i.jsx)(A,{id:q.id})]}),(0,i.jsxs)("section",{className:e$().section,children:[(0,i.jsx)(y.D,{title:"Prisfasts\xe6ttelse"}),G&&(0,i.jsx)(z,{positions:G})]}),(0,i.jsx)(s.w,{id:`${ez}_after_portfolio_details_pl_1`,marginTop:(0,eh.px)(24)}),G&&G.length>0&&(0,i.jsxs)("section",{children:[(0,i.jsx)("div",{className:e$().sectionHeader,children:(0,i.jsx)(y.D,{title:"Aktive positioner"})}),(0,i.jsx)(m.F,{children:(0,i.jsx)(J,{positions:G})})]}),B&&B.length>0&&G&&G.length>0&&(0,i.jsx)("section",{children:(0,i.jsx)(ee,{allocations:B})}),F&&F.length>0&&(0,i.jsxs)("section",{children:[(0,i.jsx)("div",{className:e$().sectionHeader,children:(0,i.jsx)(y.D,{title:"Transaktioner"})}),(0,i.jsxs)(m.F,{children:[(0,i.jsx)(et.z,{transactions:F.slice(0,5)}),(0,i.jsx)("div",{className:e$().link,children:(0,i.jsx)(p.$,{url:`/markeder/portfolio/${t}/history`,variant:"secondary",ariaLabel:"Vis alle transaktioner",children:"Vis alle"})})]})]}),H&&H.length>0&&(0,i.jsxs)("section",{children:[(0,i.jsx)("div",{className:e$().sectionHeader,children:(0,i.jsx)(y.D,{title:"Rapport"})}),(0,i.jsx)(er.l,{realisations:H,limit:5}),(0,i.jsx)("div",{className:e$().link,children:(0,i.jsx)(p.$,{url:`/markeder/portfolio/${t}/report`,variant:"secondary",ariaLabel:"Vis alle realisationer",children:"Vis alle"})})]}),(0,i.jsx)(s.w,{id:`${ez}_after_content_pl_1`,marginTop:(0,eh.px)(24)}),!!r.length&&(0,i.jsx)("div",{className:e$().latestArticles,children:(0,i.jsx)(en.$,{articles:r})})]})]}),L&&(0,i.jsx)(ek,{activePortfolio:q,onClose:()=>M(!1),onSubmit:V,onDelete:U}),E&&Z&&(0,i.jsx)(eP,{portfolioId:q.id,instrument:Z,sellLimit:G?.find(e=>e.instrumentId===Z.id)?.stockCount||0,onClose:()=>K(!1),onTransactionAdded:()=>{P(),N(),I(),D(),R()}})]})}):(0,i.jsx)(_.Y,{showTopBanner:!0,showTopScrollBanner:!0,showStickyBanners:!0,showStockTicker:!0,bannerIdPrefix:ez,children:(0,i.jsx)(d.m,{fluidOnTablet:!0,children:(0,i.jsx)("div",{className:e$().throbber,children:(0,i.jsx)(u.t,{size:f.l.Medium})})})})}var eH=r(61439);function eL(e){let{portfolioId:t,latestArticles:r}=e;return(0,eH.L)({pageType:"StockPortfolioPage"}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.K,{metadata:{title:"Portef\xf8lje"}}),(0,i.jsx)(o.C,{pageType:"StockPortfolioPage"}),(0,i.jsx)(eR,{portfolioId:t,latestArticles:r})]})}var eM=!0},72171:(e,t,r)=>{"use strict";r.d(t,{l:()=>u});var n=r(4930),i=r(18837),o=r(65162),l=r(59948),s=r(55018),a=r(79460),c=r(32838),d=r(91332);function u(e){let{realisations:t,limit:r}=e,u=Array.from(new Set(t?.map(e=>e.closeTransactionInstrumentId)||[])),h=(0,l.K)(u),m=t?.map(e=>({realisation:e,instrument:h.find(t=>
1t.id===e.closeTransactionInstrumentId)}));return(0,n.jsx)("div",{children:(0,n.jsxs)(d.b,{freezeFirstColumn:!0,children:[(0,n.jsx)(a.r,{columns:[{label:"V\xe6rdipapir",key:"instrumentName"},{label:"Dato/tid",key:"closeTransactionCreateTime"},{label:"Type",key:"type"},{label:"Antal",key:"stockCount"},{label:"Pris",key:"closeTransactionStockPrice"},{label:"Kurtage",key:"closeTradeCosts"},{label:"V\xe6rdi",key:"closePrice"},{label:"Afkast DKK",key:"quoteDividendAverage"},{label:"Afkast %",key:"quoteDividendAveragePercent"}]}),(0,n.jsx)("tbody",{children:m.slice().sort((e,t)=>t.realisation.closeTransactionCreateTime>e.realisation.closeTransactionCreateTime?1:-1).slice(0,r).map((e,t)=>{let{realisation:r,instrument:l}=e;return(0,n.jsxs)(o.Fragment,{children:[(0,n.jsxs)(c.v,{children:[(0,n.jsx)("div",{children:(0,n.jsx)("a",{href:l&&(0,i.N)(l),children:r.closeTransactionInstrumentName})}),(0,n.jsx)(s.c,{date:r.closeTransactionCreateTime}),(0,n.jsx)("div",{children:"Salg"}),(0,n.jsx)("div",{children:(0,i.Z)(r.stockCount,{fractionalDigits:0})}),(0,n.jsxs)("div",{children:[(0,i.Z)(r.closeTransactionStockPrice)," ",r.closeTransactionCurrency]}),(0,n.jsxs)("div",{children:[(0,i.Z)(r.closeTradeCosts)," DKK"]}),(0,n.jsx)("div",{children:(0,i.Z)(r.closePrice)}),(0,n.jsx)("div",{children:(0,i.Z)(r.quoteDividendAverage)}),(0,n.jsx)("div",{children:(0,i.Z)(r.quoteDividendAveragePercent)})]}),(0,n.jsxs)(c.v,{children:[(0,n.jsx)("div",{children:(0,n.jsx)("a",{href:l&&(0,i.N)(l),children:r.closeTransactionInstrumentName})}),(0,n.jsx)(s.c,{date:r.closeTransactionCreateTime}),(0,n.jsx)("div",{children:"K\xf8b"}),(0,n.jsx)("div",{children:(0,i.Z)(r.stockCount,{fractionalDigits:0})}),(0,n.jsxs)("div",{children:[(0,i.Z)(r.averageOpenPrice)," ",r.closeTransactionCurrency]}),(0,n.jsxs)("div",{children:[(0,i.Z)(r.averageTradeCosts)," DKK"]}),(0,n.jsx)("div",{children:(0,i.Z)(r.averageCloseTransactionClosePrice)}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{})]})]},t)})})]})})}},77787:(e,t,r)=>{"use strict";r.d(t,{B:()=>v});var n=r(4930),i=r(53019),o=r(94991),l=r(65162),s=r(97783),a=r.n(s),c=r(64218),d=r(47034),u=r(86006);let h={name:"StockTabs",elements:{container:{backgroundColor:u.r.Grey10,borderRadius:(0,d.px)(2)},tab:{color:u.r.Grey5,font:{family:c.v.SanomatSansWeb,size:(0,d.px)(16),lineHeight:(0,d.px)(16),weight:"400",letterSpacing:(0,d.px)(.16)},smallFont:{family:c.v.SanomatSansWeb,size:(0,d.px)(13),lineHeight:(0,d.px)(13),weight:"400",letterSpacing:(0,d.px)(.25)},selectedFont:{family:c.v.SanomatSansWeb,size:(0,d.px)(16),lineHeight:(0,d.px)(16),weight:"500",letterSpacing:(0,d.px)(.16)},smallSelectedFont:{family:c.v.SanomatSansWeb,size:(0,d.px)(13),lineHeight:(0,d.px)(13),weight:"500",letterSpacing:(0,d.px)(.25)},borderRadius:(0,d.px)(2)}}};var m=r(15197);let x={name:"StockTabs",elements:{container:{backgroundColor:m.r.Grey20,borderRadius:(0,d.px)(0)},tab:{color:m.r.Grey2,font:{family:c.v.BTGrotesk,size:(0,d.px)(16),lineHeight:(0,d.px)(16),weight:"500"},smallFont:{family:c.v.BTGrotesk,size:(0,d.px)(13),lineHeight:(0,d.px)(13),weight:"500"},selectedFont:{family:c.v.BTGrotesk,size:(0,d.px)(16),lineHeight:(0,d.px)(16),weight:"600"},smallSelectedFont:{family:c.v.BTGrotesk,size:(0,d.px)(13),lineHeight:(0,d.px)(13),weight:"600"},borderRadius:(0,d.px)(0)}}};var p=r(44937);let g={berlingske:h,bt:x,euroinvestor:{name:"StockTabs",elements:{container:{backgroundColor:p.u.Grey2,borderRadius:(0,d.px)(4)},tab:{color:p.u.Grey1,font:{family:c.v.LedgerGrotesk,size:(0,d.px)(16),lineHeight:(0,d.px)(16),weight:"400"},smallFont:{family:c.v.LedgerGrotesk,size:(0,d.px)(13),lineHeight:(0,d.px)(13),weight:"400"},selectedFont:{family:c.v.LedgerGrotesk,size:(0,d.px)(16),lineHeight:(0,d.px)(16),weight:"700"},smallSelectedFont:{family:c.v.LedgerGrotesk,size:(0,d.px)(13),lineHeight:(0,d.px)(13),weight:"700"},borderRadius:(0,d.px)(4)}}}};function v(e){let{options:t,value:r,onChange:s,fullWidthOnMobile:c,size:d="default"}=e,[u,h]=(0,l.useState)(null),m=(0,l.useRef)(null),{entry:x,disconnect:p}=(0,i.B)(u,{threshold:1}),v=x?.isIntersecting??!1;return(0,l.useEffect)(()=>{v&&m.current&&(m.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"}),p())},[v,p]),(0,n.jsx)(o.J,{themes:g,children:(0,n.jsx)("div",{className:a().container,"data-full-width-on-mobile":c,children:(0,n.jsx)("div",{className:a().scrollContainer,ref:h,children:(0,n.jsx)("div",{className:a().tabs,children:t.map((e,t)=>(0,n.jsx)("div",{className:a().tab,"data-size":d,"data-active":r===e,ref:r===e?m:null,children:e.url?(0,n.jsx)("a",{className:a().link,href:e.url,children:e.label}):(0,n.jsx)("button",{className:a().button,type:"button",onClick:()=>s?.(e),children:e.label})},t))})})})})}},77956:(e,t,r)=>{"use strict";r.d(t,{F:()=>b});var n=r(4930),i=r(80028),o=r(2779),l=r(82408),s=r(56047),a=r(68905),c=r(94991),d=r(65162),u=r(47937),h=r.n(u),m=r(64218),x=r(47034),p=r(86006);let g={name:"StockSearchInput",elements:{input:{font:{family:m.v.SanomatSansWeb,weight:"400",size:(0,x.px)(16),lineHeight:(0,x.px)(26)},color:p.r.Grey5,placeholderColor:p.r.Grey3,borderColor:p.r.Grey9,borderFocusColor:p.r.Grey5,borderRadius:(0,x.px)(2)}}};var v=r(15197);let f={name:"StockSearchInput",elements:{input:{font:{family:m.v.BTGrotesk,weight:"500",size:(0,x.px)(16),lineHeight:(0,x.px)(22)},color:v.r.Grey2,borderColor:v.r.Grey14,placeholderColor:v.r.Grey3,borderFocusColor:v.r.Grey2,borderRadius:(0,x.px)(0)}}};var k=r(44937);let _={berlingske:g,bt:f,euroinvestor:{name:"StockSearchInput",elements:{input:{font:{family:m.v.LedgerGrotesk,weight:"400",size:(0,x.px)(16),lineHeight:(0,x.px)(22)},color:k.u.Grey1,placeholderColor:k.u.Grey13,borderColor:k.u.Grey2,borderFocusColor:k.u.Grey1,borderRadius:(0,x.px)(4)}}}};function b(e){let{ref:t,...r}=e,{onChange:u,busy:m,icon:x,placeholder:p,name:g,trackingClass:v,id:f}=r,k=x||o.W,[b,j]=(0,d.useState)(""),y=(0,d.useRef)(null);function S(){j(""),u("")}return(0,d.useImperativeHandle)(t,()=>({reset:S,focus:()=>y.current?.focus()})),(0,n.jsx)(c.J,{themes:_,children:(0,n.jsxs)("div",{className:h().container,children:[(0,n.jsx)("div",{className:h().icon,children:m?(0,n.jsx)(i.t,{size:l.l.Medium}):(0,n.jsx)(k,{size:l.l.Medium})}),(0,n.jsx)("input",{ref:y,className:(0,a.cx)(h().input,`${v}-input-field`),type:"search",id:f,"aria-label":f?void 0:p||"s\xf8geord",name:g,value:b,placeholder:p||"S\xf8g",onChange:function(e){j(e.target.value),u(e.target.value)},autoComplete:"off"}),b&&(0,n.jsx)("button",{className:(0,a.cx)(h().clearButton,`${v}-input-clear`),type:"button",tabIndex:-1,"aria-hidden":!0,onClick:S,children:(0,n.jsx)(s.U,{size:l.l.Small})})]})})}},82068:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A,J:()=>i.J});var n=r(67743),i=r(36156)},84050:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});var n=r(46550);function i(e){let{price:t,currency:r,changeInPercentage:i,change:o,volume:l}=e,s=[];if(0===i)s.push("U\xe6ndret");else{let e=i<0?"Faldet":"Steget",t=`${(0,n.Z)(Math.abs(i))} procent`;s.push(void 0===o?`${e} ${t}`:`${e} ${(0,n.Z)(Math.abs(o))} ${r}, ${t}`)}return void 0!==l&&s.push(`Volumen ${(0,n.Z)(l,{fractionalDigits:0})}`),s.push(`Kurs ${(0,n.Z)(t)} ${r}`),s.join(", ")}},89370:e=>{e.exports={container:"StockPortfolioPage_container__IwRoZ",throbber:"StockPortfolioPage_throbber__NVTy6",header:"StockPortfolioPage_header__h_0ay",headerTop:"StockPortfolioPage_headerTop__a6mbi",title:"StockPortfolioPage_title__6f_0J",screenReaderOnly:"StockPortfolioPage_screenReaderOnly__yngmI",sectionHeader:"StockPortfolioPage_sectionHeader__gMm66",link:"StockPortfolioPage_link__Io2LP"}},90053:e=>{e.exports={button:"TextButton_button__3ZNLl"}},91383:(e,t,r)=>{"use strict";r.d(t,{g:()=>x});var n=r(4930),i=r(94991),o=r(65162),l=r(44267),s=r.n(l),a=r(86006);let c={name:"StockPriceChange",elements:{value:{negativeColor:a.r.Red3,positiveColor:a.r.Green}}};var d=r(15197);let u={name:"StockPriceChange",elements:{value:{negativeColor:d.r.Red1,positiveColor:d.r.Green}}};var h=r(44937);let m={berlingske:c,bt:u,euroinvestor:{name:"StockPriceChange",elements:{value:{negativeColor:h.u.Red1,positiveColor:h.u.Green}}}};function x(e){let t,{value:r,formatValue:l}=e,a=l(r),[c,d]=(0,o.useState)({value:r,formattedValue:a});return c.value>r?t="up":c.value<r&&(t="down"),(0,n.jsx)(i.J,{themes:m,children:(0,n.jsxs)("div",{className:s().c
1ontainer,onAnimationEnd:()=>d({value:r,formattedValue:a}),children:[(0,n.jsx)("div",{className:s().outgoing,"data-negative":0>c.value,"data-animation":t,children:c.formattedValue}),(0,n.jsx)("div",{className:s().incoming,"data-negative":0>r,"data-animation":t,children:a})]})})}},92229:(e,t,r)=>{"use strict";r.d(t,{N:()=>n.N});var n=r(23910)},97783:e=>{e.exports={container:"StockTabs_container__KMq9M",scrollContainer:"StockTabs_scrollContainer__QN9TN",tabs:"StockTabs_tabs__eDUNj",tab:"StockTabs_tab__iebYI",link:"StockTabs_link__6Eyx6",button:"StockTabs_button__WTatc"}}},e=>{e.O(0,[5262,6046,4351,3494,8248,3636,5865,2092,5758,7498,4696,636,6593,8792],()=>e(e.s=13289)),_N_E=e.O()}]);
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.