PageSourceSearch

https://www.sbbk.se/assets/NewsFlash-DZJ5ndsO.js

js sbbk.se collected 2026-10-02 20:53:21 UTC 4,134 bytes, 1 lines download raw bytes

1import{ab as O,a1 as $,e as P,a4 as S,j as o,da as g,dX as j,ck as x,dY as J,dd as b,de as m,r as H,dZ as M,z as R,B as U,C as a,D as i,E as p,G as D,H as Y,I as w,K,aa as d,N as c,J as r,O as I,Y as W,aJ as X,ag as Z}from"./index-OS-oTnyi.js";const q=O({name:"NewsFlash",components:{SdpStreamlineIcon:$},props:{siteSection:{type:Object,default:null}},setup(s){const k=P(),h=o(()=>{var n;return((n=s.siteSection)==null?void 0:n.config)??{}}),y=o(()=>h.value.labelVariant??"badge"),v=o(()=>h.value.accent==="primaryDark"?"accent-dark":""),E=o(()=>{var n;return((n=s.siteSection)==null?void 0:n.name)??""}),u=o(()=>h.value.inlineDescription??!1),e=o(()=>{const n=h.value.items??[],l=[],f=b(new Date);return n.forEach(t=>{if(t.deleted||!t.headline&&!t.description&&!t.labelText||t.published===!1)return;if(t.published===!0){l.push(t);return}const A=b(t.publishStart??"");if(t.isPublishScheduled===!0&&m(A,f)){const B=b(t.publishEnd??"");t.publishEnd?m(f,B)&&l.push(t):l.push(t)}}),l}),L=n=>n.labelText??"",C=n=>g(n)&&!j(n),_=n=>{const{href:l}=n;return g(l)&&!/^(https?:|mailto:)/.test(l)?x(l,!0):J(l)},F=n=>{const l=_(n);return l?{href:l,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0}:{}},N=o(()=>{var n;return k.getSectionIndex(((n=s.siteSection)==null?void 0:n.id)??"")}),T=S("headerOffset",H(0)),V=S("isGameHeaderEmpty",H(!0)),{width:z}=M(),G=o(()=>{if(N.value!==0)return;const l=!V.value&&z.value>=1280?28:0,f=T.value+l;return f>0?{marginTop:`${f}px`}:void 0});return{visibleItems:e,labelVariant:y,accentClass:v,sectionName:E,inlineDescription:u,itemLabel:L,isExternal:C,resolvedHref:_,itemLinkProps:F,containerStyle:G}}}),Q=["aria-label"],ee={class:"news-flash-label-badge"},se={class:"news-flash-text-block"},ne={key:0,class:"news-flash-headline"},ae={key:0,class:"news-flash-description-inline"},le={key:1,class:"news-flash-content"},te={class:"news-flash-text-block"},ie={key:0,class:"news-flash-headline"},re={key:1,class:"news-flash-description-inline"};function oe(s,k,h,y,v,E){const u=U("sdp-streamline-icon");return s.visibleItems.length?(a(),i("div",{key:0,class:"news-flash-container",style:Z(s.containerStyle)},[p("ul",{class:d(["news-flash-list",`news-flash-list-${s.labelVariant}`]),"aria-label":s.sectionName},[(a(!0),i(D,null,Y(s.visibleItems,e=>(a(),i("li",{key:e.id,class:"news-flash-item"},[(a(),w(X(s.resolvedHref(e)?"a":"span"),W({ref_for:!0},s.itemLinkProps(e),{class:["news-flash-link",s.labelVariant==="badge"?"news-flash-link-badge":"news-flash-link-text"]}),{default:K(()=>[s.labelVariant==="badge"?(a(),i(D,{key:0},[s.itemLabel(e)?(a(),i("div",{key:0,class:d(["news-flash-label-cell",s.accentClass])},[p("span",ee,c(s.itemLabel(e)),1)],2)):r("",!0),p("div",{class:d(["news-flash-content",{"news-flash-content-no-label":!s.itemLabel(e)}])},[p("div",se,[e.headline?(a(),i("p",ne,[I(c(e.headline),1),s.inlineDescription&&e.description?(a(),i("span",ae,c(e.description),1)):r("",!0)])):r("",!0),e.description?(a(),i("p",{key:1,class:d(e.headline?["news-flash-description",{"news-flash-description--inline":s.inlineDescription}]:["news-flash-headline","news-flash-headline-description"])},c(e.description),3)):r("",!0)]),e.href&&s.isExternal(e.href)?(a(),w(u,{key:0,icon:"externalLink",size:14,class:"news-flash-external-icon","aria-hidden":"true"})):r("",!0)],2)],64)):(a(),i("div",le,[p("div",te,[e.headline?(a(),i("p",ie,[s.itemLabel(e)?(a(),i("span",{key:0,class:d(["news-flash-label-text",s.accentClass])},c(s.itemLabel(e))+":",3)):r("",!0),I(" "+c(e.headline),1),s.inlineDescription&&e.description?(a(),i("span",re,c(e.description),1)):r("",!0)])):r("",!0),e.description?(a(),i("p",{key:1,class:d(e.headline?["news-flash-description",{"news-flash-description--inline":s.inlineDescription}]:["news-flash-headline","news-flash-headline-description"])},c(e.description),3)):r("",!0)]),e.href&&s.isExternal(e.href)?(a(),w(u,{key:0,icon:"externalLink",size:14,class:"news-flash-external-icon","aria-hidden":"true"})):r("",!0)]))]),_:2},1040,["class"]))]))),128))],10,Q)],4)):r("",!0)}const de=R(q,[["render",oe],["__scopeId","data-v-f3e48ceb"]]);export{de as default};

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.