1import{n as e}from"./hePW80VL.js";import{$t as t,C as n,I as r,Nt as i,Tt as a,X as o,b as s,d as c,f as l,ft as u,h as d,m as f,nn as p,p as m,q as h,r as g,rn as _,ut as v,x as y}from"./D9d_4q1I.js";import{t as b}from"./D36Y-BsX.js";import{l as x}from"./Dl0ELuBr.js";import{t as S}from"./_5DkgLSd.js";import{t as C}from"./BDNMzG2s.js";import{t as w}from"./DwxQvQrQ.js";import{r as T}from"#entry";import{n as E,r as D,t as O}from"./--qVwltN.js";import{t as k}from"./BL1pyZJ-.js";import{t as A}from"./BvQyo5ta.js";import{t as j}from"./CeaBzszj.js";var M=[`data-layout`],N=n({inheritAttrs:!1,__name:`AbcTeaserCluster`,props:{layout:{default:``},index:{default:1},posSuffix:{default:``},intersectionNotify:{default:`START`},cluster:{},hideTitlesForSecondAndFollowing:{type:Boolean},hasSectionBadges:{type:Boolean},inHomemix:{type:Boolean},baseIndex:{default:0},displayAsDiv:{type:Boolean}},emits:[`intersected`,`clickedTeasable`],setup(e,{emit:n}){let{isExpress:C,isRundschauOnline:N}=S(),P=n,F=e,I=c(()=>e=>E[F.layout]?.imgSizes?.[e]),L=c(()=>F.displayAsDiv?null:{"data-content-teaserCluster":``,"data-k5a-pos":`block${F.index+1}${F.posSuffix?F.posSuffix:``}`}),R=c(()=>F.cluster?.listId===k),z=c(()=>N.value?`plusBackground`:`kPlus`),B=c(()=>R.value?`abc`:F.layout||``),V=c(()=>R.value?F.cluster.teasables?.slice(0,3):F.cluster.teasables),{cssString:H,cssStringMobile:U,sizes:W,sizesMobile:G,indexToTeaserMap:K}=D({pattern:B.value,clusterCustomizer:E}),q=c(()=>F.cluster.teaserClusterEmphasis||`0`),J=c(()=>A.get(q.value).contentInner??``),Y=c(()=>F.hideTitlesForSecondAndFollowing&&F.index!==0),X=a([]),Z=a(!1),Q=c(()=>new Map([[`START`,{index:0,threshold:0}],[`MIDDLE`,{index:Math.ceil(X.value.length/2),threshold:0}],[`END`,{index:X.value.length-1,threshold:1}]]));v(e=>{if(!F.intersectionNotify||!X.value.length)return;Z.value=!1;let{index:t,threshold:n}=Q.value.get(F.intersectionNotify)||{index:0,threshold:0},r=X.value[t]?.$el;if(!r||!(r instanceof HTMLElement))return;let i=x(r,([{isIntersecting:e}])=>{e&&!Z.value&&(P(`intersected`,F.intersectionNotify||`START`),Z.value=!0)},{threshold:n});e(()=>i.stop())});let $=e=>{P(`clickedTeasable`,e)},ee=c(()=>({"--grid-template-areas":H,"--grid-template-columns":W,"--grid-template-areas-mobile":U,"--grid-template-columns-mobile":G}));return(n,a)=>{let c=T,v=w,x=b,S=O,E=j;return h(),d(`section`,r(i(L),{class:[(`emphasisStyles`in n?n.emphasisStyles:i(A)).get(i(q)).content,n.$attrs.class,{"rounded-xl":i(C)}],style:i(ee)}),[e.cluster?.title&&!i(Y)&&!i(R)?(h(),m(c,{key:0,"no-arrow":``,class:t({"page-section-header-margin":!e.cluster.menuHandle&&!(`emphasisStyles`in n?n.emphasisStyles:i(A)).get(i(q)).content,"page-section-header-emphasis-adjustment":!!(`emphasisStyles`in n?n.emphasisStyles:i(A)).get(i(q)).content,"rounded-b-none":e.cluster.menuHandle?.includes(`spotlight`)&&i(C)}),title:e.cluster?.title,"target-path-or-url":e.cluster?.targetUrlPathOrUrl,emphasis:(`emphasisStyles`in n?n.emphasisStyles:i(A)).get(i(q)).title,"emphasis-after":(`emphasisStyles`in n?n.emphasisStyles:i(A)).get(i(q)).titleAfter},null,8,[`class`,`title`,`target-path-or-url`,`emphasis`,`emphasis-after`])):f(``,!0),e.cluster?.title&&!i(Y)&&i(R)?(h(),d(`header`,{key:1,class:t([`bg-primary text-white`,{"rounded-t-xl":i(C)}])},[y(x,{to:`/plus`,class:`flex flex-row items-center gap-2 px-2 py-1 uppercase text-lg font-bold tracking-widest`},{default:u(()=>[y(v,{name:i(z)}
1,null,8,[`name`]),s(` `+_(e.cluster.title),1)]),_:1})],2)):f(``,!0),l(`div`,{class:t([`abcClusterLayout relative`,[`${i(J)}`,{"border border-primary p-4":i(R)}]])},[l(`div`,{"data-layout":i(B),class:t([`layout-grid-gap grid md:gap-y-8 md:gap-x-12 grid-abc items-stretch`,[i(B),i(J),(`emphasisStyles`in n?n.emphasisStyles:i(A)).get(i(q)).content?`abc-gap-adjustments`:``]])},[(h(!0),d(g,null,o(i(V),(t,n)=>(h(),m(S,{ref_for:!0,ref_key:`teasablesRefs`,ref:X,key:t.id,layout:e.layout,"document-id":t.id,lazy:!0,"has-section-badge":!!e.hasSectionBadges,style:p({gridArea:i(K).get(n)?.area}),index:e.baseIndex+n,"override-img-sizes":i(I)(n),"cluster-index":e.index,emphasis:e.cluster.teaserClusterEmphasis,"in-homemix":e.inHomemix,"hide-title":(e.cluster.targetUrlPathOrUrl===`/raetsel`||e.cluster.targetUrlPathOrUrl===`/witz-des-tages`)&&i(C),onClickedArticle:$},null,8,[`layout`,`document-id`,`has-section-badge`,`style`,`index`,`override-img-sizes`,`cluster-index`,`emphasis`,`in-homemix`,`hide-title`]))),128))],10,M),e.cluster?.menuHandle?(h(),m(E,{key:0,"menu-handle":e.cluster?.menuHandle,title:e.cluster?.title||``,url:e.cluster?.targetUrlPathOrUrl,emphasis:(`emphasisStyles`in n?n.emphasisStyles:i(A)).get(i(q)).subnavi,"emphasis-chips":(`emphasisStyles`in n?n.emphasisStyles:i(A)).get(i(q)).subnaviChips,class:t([{"md:px-4":i(J),"sm:px-4":!!(`emphasisStyles`in n?n.emphasisStyles:i(A)).get(i(q)).content},`abcClusterSubChannelMenu`])},null,8,[`menu-handle`,`title`,`url`,`emphasis`,`emphasis-chips`,`class`])):f(``,!0)],2)],16)}}}),P=e({default:()=>F}),F=Object.assign(C(N,[[`__scopeId`,`data-v-9844254e`]]),{__name:`TemplatesAbcTeaserCluster`});export{P as n,F as t};
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.