PageSourceSearch

https://www.khk.se/assets/SponsorsList-Dks9Z78l.js

js khk.se collected 2026-09-25 06:49:13 UTC 2,408 bytes, 1 lines download raw bytes

1import{Q as b,al as w,dw as k,T as B,m as j,o as E,cT as H,j as f,t as y,z as I,B as S,C as c,D as r,E as u,F as x,J as z,G as C,H as L,ag as M}from"./index-DgV8FTMp.js";const N={name:"SponsorsList",components:{SyMedia:w,SyHeading:b},props:{siteSection:{type:Object,required:!0}},setup(_){const d=k(),{siteSection:i}=B(_),l=f(()=>d.getSponsors),m=async()=>{var n,s;const t=(s=(n=i.value)==null?void 0:n.config)==null?void 0:s.sponsors;if(!(t!=null&&t.length))return;const a=t.map(e=>e.id).filter(e=>{var o;return!((o=l.value)!=null&&o.find(v=>v.id===e))});a.length>0&&await d.fetchSponsorsByMultipleIds(a)};j(async()=>{await m()}),E(async()=>{await m()});const p=f(()=>{var t,a,n;return((n=(a=(t=i.value)==null?void 0:t.config)==null?void 0:a.sponsors)==null?void 0:n.map(s=>{var e;return(e=l.value)==null?void 0:e.find(o=>o.id===s.id)}).filter(Boolean))??[]}),g="object-fit: contain; max-width: 100%; max-height: 100%;",h=f(()=>{var t,a,n,s,e,o;return{"--logo-width":y((a=(t=i.value)==null?void 0:t.config)==null?void 0:a.maxWidth)?"200px":`${(s=(n=i.value)==null?void 0:n.config)==null?void 0:s.maxWidth}px`,"--logo-height":y((o=(e=i.value)==null?void 0:e.config)==null?void 0:o.maxHeight)?"auto":`${i.value.config.maxHeight}px`}});return{sponsors:p,openExternalUrl:H,customStyle:g,containerStyle:h}}},V={class:"content-container"},q={class:"content-inner mt-16 @lg:mt-14 mb-15 @lg:mb-16"},F={key:0,class:"text-center heading-wrapper"},R={class:"flex flex-wrap justify-center"},T=["href","aria-label"];function W(_,d,i,l,m,p){var t,a,n,s;const g=S("sy-heading"),h=S("sy-media");return c(),r("div",V,[u("div",q,[(a=(t=i.siteSection)==null?void 0:t.config)!=null&&a.heading?(c(),r("div",F,[x(g,{"is-section-heading":"","has-rectangle":!1,"heading-label":(s=(n=i.siteSection)==null?void 0:n.config)==null?void 0:s.heading,heading:"heading 2","mobile-heading":"heading 3","heading-level":"h2"},null,8,["heading-label"])])):z("",!0),u("ul",R,[(c(!0),r(C,null,L(l.sponsors,e=>(c(),r("li",{key:e==null?void 0:e.id,class:"flex items-center",style:M(l.containerStyle)},[u("a",{href:e.link,target:"_blank",rel:"noopener noreferrer","aria-label":e.label},[x(h,{class:"sponsor-img",loading:"lazy",media:e==null?void 0:e.renderedImg,"custom-style":l.customStyle,"display-alt":!1},null,8,["media","custom-style"])],8,T)],4))),128))])])])}const D=I(N,[["render",W],["__scopeId","data-v-0094f0d4"]]);export{D 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.