1import{t as e}from"./7IxXFmaK.js";import{t}from"./D80D7iwq.js";function n(){let n=t(`at-admin-active`,()=>!1),r=t(`at-admin-checked`,()=>!1),i=t(`at-admin-editor`,()=>null),a=t(`at-admin-slotstate`,()=>null),o=()=>/(?:^|;\s*)an_admin_ui=/.test(document.cookie);async function s(){try{let t=await e(`/api/admin/session`,{method:`POST`});n.value=!!t?.ok}catch{n.value=!1}n.value||(document.cookie=`an_admin_ui=; Max-Age=0; path=/`)}r.value||(r.value=!0,o()&&s());async function c(){try{a.value=await e(`/api/admin/slot-state`,{method:`POST`})}catch{a.value=null}return a.value}return{active:n,editor:i,slotState:a,loadSlotState:c,refreshSession:s,openEditor:(e,t=null)=>{i.value={slotKey:e,current:t}},closeEditor:()=>{i.value=null},logout:async()=>{await e(`/api/admin/logout`,{method:`POST`}).catch(()=>{}),n.value=!1,i.value=null}}}var r=/^(mostRead|sidebarMostRead)/;function i(e,t,n={},i=null){if(!e||!t)return null;let a=i||(e=>e),o={key:`cms`,label:`CMS`,title:a(`Artikel im CMS ausgewählt`,`Article picked in the CMS`)},s={key:`landing`,label:`LP`,title:a(`Landing Page verlinkt`,`Landing page linked`)},c={key:`seo`,label:`SEO`,title:a(`SEO-Seite verlinkt`,`SEO page linked`)},l={key:`path`,label:a(`Pfad`,`Path`),title:a(`Fest eingetragener Titel + Pfad`,`Fixed title + path`)};if(e===`breakingNews`)return t.breaking?t.breaking.article?o:l:null;if(e===`gelbeLeiste`)return t.ad?t.ad.article?o:l:null;let u=t.homepage;if(!u)return null;if(u[e])return o;let d=u.custom?.[e];return d?.title&&d?.url?n.landingPages?.some(e=>e.path===d.url)?s:n.guidePages?.some(e=>e.path===d.url)?c:l:r.test(e)?{key:`clicks`,label:a(`Klicks`,`Clicks`),title:a(`Automatisch nach Klickzahl`,`Automatic by click count`)}:{key:`auto`,label:`Auto`,title:a(`Automatisch (chronologisch)`,`Automatic (chronological)`)}}export{n,i 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.