1import{At as e,Fn as t,Fr as n,Gn as r,Gt as i,It as a,Mr as o,Un as s,br as c,fn as l,h as u,i as d,lr as f,sr as p,vr as m,zn as h,zr as g}from"./CcB4CMWB.js";import{i as _,t as v,u as y}from"./B-gooXQs.js";import{t as b}from"./DRhDQ2XH2.js";import{n as x}from"./BA-MDZxm.js";import{t as S}from"./BrDgZhe2.js";import{t as C}from"./Ck3VQiTH.js";import{t as w}from"./gGDrLhFw.js";import{t as T}from"./DM5_SWnz2.js";var E={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`query`,name:{kind:`Name`,value:`GetPostsByID`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`ids`}},type:{kind:`NonNullType`,type:{kind:`ListType`,type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`Int`}}}}},directives:[]}],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,alias:{kind:`Name`,value:`posts`},name:{kind:`Name`,value:`postsByIds`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`ids`},value:{kind:`Variable`,name:{kind:`Name`,value:`ids`}}}],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`title`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`shortTitle`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`link`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`relevantCategories`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`slug`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`name`},arguments:[],directives:[]}]}},{kind:`Field`,name:{kind:`Name`,value:`isVplus`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`hasDynamicPaywall`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`commentCount`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`commentStatus`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`pictureCount`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`reactionCount`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`teaserImageCrops`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`ratios`},value:{kind:`ListValue`,values:[{kind:`StringValue`,value:`4-3`,block:!1},{kind:`StringValue`,value:`16-9`,block:!1},{kind:`StringValue`,value:`3-4`,block:!1}]}}],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`refs`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`src`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`r`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`alt`},arguments:[],directives:[]}]}},{kind:`Field`,name:{kind:`Name`,value:`defs`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`r`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`s`},arguments:[],directives:[]}]}}]}},{kind:`Field`,name:{kind:`Name`,value:`associatedPosts`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`title`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`link`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`teaserImageCrops`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`ratios`},value:{kind:`ListValue`,values:[{kind:`StringValue`,value:`4-3`,block:!1}]}}],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`refs`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`src`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`r`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`alt`},arguments:[],directives:[]}]}}
1,{kind:`Field`,name:{kind:`Name`,value:`defs`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`r`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`s`},arguments:[],directives:[]}]}}]}}]}},{kind:`Field`,name:{kind:`Name`,value:`meta`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`rmTeaserSettings`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`priority`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`color`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`label`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`escalation`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`displayLiveBadge`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`portraitOnMobile`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`displayMode`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`badge`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`type`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`value`},arguments:[],directives:[]}]}}]}},{kind:`Field`,name:{kind:`Name`,value:`hidearticlereactions`},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:934}};E.loc.source={body:`query GetPostsByID( 2 $ids: [Int!]! 3) { 4 posts: postsByIds( 5 ids: $ids 6 ) { 7 id 8 title 9 shortTitle 10 link 11 relevantCategories { 12 slug 13 name 14 } 15 isVplus 16 hasDynamicPaywall 17 commentCount 18 commentStatus 19 pictureCount 20 reactionCount 21 teaserImageCrops(ratios: ["4-3", "16-9", "3-4"]) { 22 refs { 23 src 24 r 25 alt 26 } 27 defs { 28 r 29 s 30 } 31 } 32 associatedPosts { 33 id 34 title 35 link 36 teaserImageCrops(ratios: ["4-3"]) { 37 refs { 38 src 39 r 40 alt 41 } 42 defs { 43 r 44 s 45 } 46 } 47 } 48 meta { 49 rmTeaserSettings { 50 priority 51 color 52 label 53 escalation 54 displayLiveBadge 55 portraitOnMobile 56 displayMode 57 badge { 58 type 59 value 60 } 61 } 62 hidearticlereactions 63 } 64 } 65} 66`,name:`GraphQL request`,locationOffset:{line:1,column:1}};function D(e,t){if(e.kind===`FragmentSpread`)t.add(e.name.value);else if(e.kind===`VariableDefinition`){var n=e.type;n.kind===`NamedType`&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){D(e,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){D(e,t)}),e.definitions&&e.definitions.forEach(function(e){D(e,t)})}var O={};(function(){E.definitions.forEach(function(e){if(e.name){var t=new Set;D(e,t),O[e.name.value]=t}})})();function k(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function A(e,t){var n={kind:e.kind,definitions:[k(e,t)]};e.hasOwnProperty(`loc`)&&(n.loc=e.loc);var r=O[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(e){a.add(e)});a.size>0;){var o=a;a=new Set,o.forEach(function(e){i.has(e)||(i.add(e),(O[e]||new Set).forEach(function(e){a.add(e)}))})}return i.forEach(function(t){var r=k(e,t);r&&n.definitions.push(r)}),n}A(E,`GetPostsByID`);function j(){let t=()=>{if(typeof window.cX?.getUserId==`function`)return window.cX?.getUserId();let e=u(`cX_P`);return e.value?e.value:``},n=e=>({id:Number(e.url.split(`/`).pop())||null,item:e}),r=async r=>{let i=t();try{return(await e(`https://api.cxense.com/public/widget/data`,{method:`POST`,body:{widgetId:r,user:{ids:{usi:i}},context:{url:window.location.href}}})).items.map(e=>n(e)).filter(e=>e.id!==null)}catch(e){return console.log(e),[]}},i=async(e,t)=>{let n=await r(e);return n.length===0?[]:n.filter(e=>!t.includes(e.id))};return{getArticles:async(e,t,n)=>{let r=t.slice(0,10),a=await i(e,r);if(a.length===0)return[];let{data:o}=await d(E,{ids:a.map(e=>e.id)}),s=(o.value?.posts)?.map(t=>({...t,personalization:{variant:n||e,item:a.find(e=>e.id===t.id)?.item}}))?.filter(e=>(e.teaserImageCrops?.refs?.length??0)>0)||[];return s.length=Math.min(s.length,10),s},getClickId:e=>window?.cX?.CCE?.clickTracker(e)}}var M={kind:`Document`,definitions:[{kind:`OperationDefinition`,operation:`query`,name:{kind:`N
66ame`,value:`Home`},variableDefinitions:[{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`pageType`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`String`}}},directives:[]},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`pageSubType`}},type:{kind:`NamedType`,name:{kind:`Name`,value:`String`}},directives:[]},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`page`}},type:{kind:`NamedType`,name:{kind:`Name`,value:`Int`}},directives:[]},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`perPage`}},type:{kind:`NamedType`,name:{kind:`Name`,value:`Int`}},directives:[]},{kind:`VariableDefinition`,variable:{kind:`Variable`,name:{kind:`Name`,value:`skipContentZones`}},type:{kind:`NonNullType`,type:{kind:`NamedType`,name:{kind:`Name`,value:`Boolean`}}},directives:[]}],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,alias:{kind:`Name`,value:`posts`},name:{kind:`Name`,value:`frontpage`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`page`},value:{kind:`Variable`,name:{kind:`Name`,value:`page`}}},{kind:`Argument`,name:{kind:`Name`,value:`perPage`},value:{kind:`Variable`,name:{kind:`Name`,value:`perPage`}}}],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`hits`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`totalPages`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`posts`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`title`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`shortTitle`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`link`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`relevantCategories`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`slug`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`name`},arguments:[],directives:[]}]}},{kind:`Field`,name:{kind:`Name`,value:`isVplus`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`hasDynamicPaywall`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`commentCount`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`commentStatus`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`pictureCount`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`reactionCount`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`teaserImageCrops`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`ratios`},value:{kind:`ListValue`,values:[{kind:`StringValue`,value:`4-3`,block:!1},{kind:`StringValue`,value:`16-9`,block:!1},{kind:`StringValue`,value:`3-4`,block:!1}]}}],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`refs`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`src`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`r`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`alt`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`is_ai_generated`},arguments:[],directives:[]}]}},{kind:`Field`,name:{kind:`Name`,value:`defs`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`r`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`s`},arguments:[],directives:[]}]}}]}},{kind:`Field`,name:{kind:`Name`,value:`associatedPosts`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`title`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`link`},arguments:[],directives:[]}
66,{kind:`Field`,name:{kind:`Name`,value:`teaserImageCrops`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`ratios`},value:{kind:`ListValue`,values:[{kind:`StringValue`,value:`4-3`,block:!1}]}}],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`refs`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`src`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`r`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`alt`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`is_ai_generated`},arguments:[],directives:[]}]}},{kind:`Field`,name:{kind:`Name`,value:`defs`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`r`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`s`},arguments:[],directives:[]}]}}]}}]}},{kind:`Field`,name:{kind:`Name`,value:`meta`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`rmTeaserSettings`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`priority`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`color`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`label`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`escalation`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`displayLiveBadge`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`portraitOnMobile`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`displayMode`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`badge`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`type`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`value`},arguments:[],directives:[]}]}}]}},{kind:`Field`,name:{kind:`Name`,value:`hidearticlereactions`},arguments:[],directives:[]}]}}]}}]}},{kind:`Field`,name:{kind:`Name`,value:`contentZones`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`pageType`},value:{kind:`Variable`,name:{kind:`Name`,value:`pageType`}}},{kind:`Argument`,name:{kind:`Name`,value:`pageSubType`},value:{kind:`Variable`,name:{kind:`Name`,value:`pageSubType`}}}],directives:[{kind:`Directive`,name:{kind:`Name`,value:`skip`},arguments:[{kind:`Argument`,name:{kind:`Name`,value:`if`},value:{kind:`Variable`,name:{kind:`Name`,value:`skipContentZones`}}}]}],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`name`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`slug`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`variants`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`device`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`name`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`slug`},arguments:[],directives:[]}]}},{kind:`Field`,name:{kind:`Name`,value:`members`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`ordinal`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`item`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`type`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`data`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`name`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`type`},arguments:[],directives:[]}
66,{kind:`Field`,name:{kind:`Name`,value:`provider`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`settings`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`meta_settings`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`members`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`item`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`type`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`data`},arguments:[],directives:[],selectionSet:{kind:`SelectionSet`,selections:[{kind:`Field`,name:{kind:`Name`,value:`id`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`name`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`provider`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`settings`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`meta_settings`},arguments:[],directives:[]},{kind:`Field`,name:{kind:`Name`,value:`type`},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:1983}};M.loc.source={body:`query Home( 67 $pageType: String! 68 $pageSubType: String 69 $page: Int 70 $perPage: Int 71 $skipContentZones: Boolean! 72) { 73 posts: frontpage( 74 page: $page 75 perPage: $perPage 76 ) { 77 hits 78 totalPages 79 posts { 80 id 81 title 82 shortTitle 83 link 84 relevantCategories { 85 slug 86 name 87 } 88 isVplus 89 hasDynamicPaywall 90 commentCount 91 commentStatus 92 pictureCount 93 reactionCount 94 teaserImageCrops(ratios: ["4-3", "16-9", "3-4"]) { 95 refs { 96 src 97 r 98 alt 99 is_ai_generated 100 } 101 defs { 102 r 103 s 104 } 105 } 106 associatedPosts { 107 id 108 title 109 link 110 teaserImageCrops(ratios: ["4-3"]) { 111 refs { 112 src 113 r 114 alt 115 is_ai_generated 116 } 117 defs { 118 r 119 s 120 } 121 } 122 } 123 meta { 124 rmTeaserSettings { 125 priority 126 color 127 label 128 escalation 129 displayLiveBadge 130 portraitOnMobile 131 displayMode 132 badge { 133 type 134 value 135 } 136 } 137 hidearticlereactions 138 } 139 } 140 } 141 contentZones(pageType: $pageType, pageSubType: $pageSubType) @skip(if: $skipContentZones) { 142 name 143 slug 144 variants { 145 id 146 device { 147 name 148 slug 149 } 150 members { 151 id 152 ordinal 153 item { 154 type 155 data { 156 id 157 name 158 type 159 provider 160 settings 161 meta_settings 162 members { 163 id 164 item { 165 type 166 data { 167 id 168 name 169 provider 170 settings 171 meta_settings 172 type 173 } 174 } 175 } 176 } 177 } 178 } 179 } 180 } 181} 182`,name:`GraphQL request`,locationOffset:{line:1,column:1}};function N(e,t){if(e.kind===`FragmentSpread`)t.add(e.name.value);else if(e.kind===`VariableDefinition`){var n=e.type;n.kind===`NamedType`&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){N(e,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){N(e,t)}),e.definitions&&e.definitions.forEach(function(e){N(e,t)})}var P={};(function(){M.definitions.forEach(function(e){if(e.name){var t=new Set;N(e,t),P[e.name.value]=t}})})();function F(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}function I(e,t){var n={kind:e.kind,definitions:[F(e,t)]};e.hasOwnProperty(`loc`)&&(n.loc=e.loc);var r=P[t]||new Set,i=new Set,a=new Set;for(r.forEach(function(e){a.add(e)});a.size>0;){var o=a;a=new Set,o.forEach(function(e){i.has(e)||(i.add(e),(P[e]||new Set).forEach(function(e){a.add(e)}))})}
182return i.forEach(function(t){var r=F(e,t);r&&n.definitions.push(r)}),n}I(M,`Home`);var L={class:`mt-4 md:m-8 md:min-h-80`},R=Object.assign(r({__name:`Homepage`,async setup(e){let r,u,E=i(),D=o(Number(E.currentRoute.value.path.split(`/`).pop()||1)),O=o(20),k=l().public,{setupPageMetaRaw:A,getPageMetaFromMap:N}=C(),P=N(`homepage`);A(P.title,P.description,P.keywords||``),b().setupData(`RedCont/Homepage/Homepage`),v().setInitialData({dimension30:`Startpage`,page_url:D.value>1?`${k.baseUrl}/page/${D.value}`:k.baseUrl}),_().setData(``,{},`home`);let{pageType:F,pageSubType:I}=S();y().addTags([`homepage`]);let R=t(()=>({page:D.value,perPage:O.value,pageType:F,pageSubType:I,skipContentZones:D.value>1})),{data:z}=([r,u]=c(()=>d(M,R,`default`,{},{watch:[R]})),r=await r,u(),r);if((z.value===void 0||(z.value?.posts?.posts?.length??0)===0)&&D.value===1)throw a({status:500,statusText:`No posts on first page`});let{getStream:B}=x(),V=n(B(z,`standard`)),H=l().public.pianoSlots.from,U=o([]);async function W(e,t){let{getArticles:n}=j();U.value=await n(e,z.value?.posts?.posts.map(e=>e.id)??[],t)}p(async()=>{if(m([z,U],e=>{let t=D.value===1&&U.value.length>0?{posts:U.value,from:H}:null;e&&(V.value=B(z,`standard`,t))}),window.abTests?.homepagePersonalization){let e=window.abTests?.homepagePersonalization;e?.widgetID!==``&&!e?.variante?.endsWith(`_default`)&&W(e.widgetID,e.variante)}else document.addEventListener(`ab_personalization_assigned`,e=>{let t=e.detail;t.experiment===`homepagePersonalization`&&!t?.variante?.endsWith(`_default`)&&W(t.widgetID,t.variante)},{once:!0})});let G=l().public.baseUrl,{setCanonical:K,addPagingToCanonical:q}=w();K(q(G,D.value));let J=t(()=>!E.currentRoute.value.path.includes(`/page/`));function Y(e){D.value=e,J.value||(e===1?E.push(`/`):E.push(`/page/${e}`))}return(e,t)=>{let n=T;return f(),h(`div`,L,[s(n,{posts:g(V).posts,river:g(V).river,aside:g(V).aside,top:g(V).top,"total-pages":g(z)?.posts?.totalPages??0,"current-page":g(D),"use-endless-scrolling":g(J),onPageClicked:Y},null,8,[`posts`,`river`,`aside`,`top`,`total-pages`,`current-page`,`use-endless-scrolling`])])}}}),{__name:`PagesHomepage`});export{R as t}; 183//# sourceMappingURL=Fk2G9KtC2.js.map
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.