1import{d as a,g as w,i as v,j as y,p as S,r as l,J as E,ar as z}from"#entry";function A(r){return{getConfigValue:o=>r.config[o]?.source!=="mapped"&&r.config[o]?.value}}const L=()=>({isIOS:a(()=>{if(navigator)return/iPad|iPhone|iPod/.test(navigator.userAgent)})});function M(){const{apiClient:r}=w(),s=v(),{formatLink:o}=y(s),{t:g}=S(),d=e=>typeof e=="string"&&e.startsWith("?"),f=e=>typeof e=="string"&&(e.startsWith("http://")||e.startsWith("https://"));function p(e){const t=typeof e=="string"?e:e?.url??e?.media?.url??"";if(typeof t!="string"||!t)return"";let n=t.split("?")[0]??"";return n=n.replace("https://koro.imgix.net","").replace("https://eu-central-1-shared-euc1-02.graphassets.com",""),n.replace(/ /g,"%20")}const h=e=>e?.thumbnails?.length?e.thumbnails.map(t=>`${t.url.replaceAll(" ","%20")} ${t.width}w`).join(", "):"",m=async e=>{if(!e?.length||Array.isArray(e)&&!e.filter(Boolean).length)return null;const{data:t}=await r.invoke("loadMedia post /media",{body:{ids:e}});return t},i=e=>{const t=e?.translated?.config?e.translated:e;return t?.config?A(t):{getConfigValue:n=>{const u=e?.fieldConfig;if(Array.isArray(u)){const c=u.find(C=>C.name===n);if(c)return c.value}return null}}};return{getRawUrlFromMediaUrl:p,getSrcSetForMedia:h,loadMedia:m,useLocalizedCmsElementConfig:i,focusInputElement:async e=>{const{isIOS:t}=L();window.setTimeout(()=>{e&&(t&&e.blur(),e.focus())},10)},getCmsElementContent:e=>{const{getConfigValue:t}=i(e);return t("content")||e.data?.content||null},getScreenSize:()=>{const e=l(0),t=l(0),n=()=>{e.value=window?.innerWidth??0,t.value=window?.innerHeight??0};return E(()=>{n(),window.addEventListener("resize",n)}),z(()=>{window.removeEventListener("resize",n)}),{screenWidth:a(()=>e.value),screenHeight:a(()=>t.value)}},getFormattedDate:(e,t={year:"numeric",month:"2-digit",day:"2-digit"},n="de-DE")=>new Intl.DateTimeFormat(n,t).format(e),getAuthorUrl:(e="")=>{const t=e.toLowerCase().replace(/ä/g,"ae").replace(/ö/g,"oe").replace(/ü/g,"ue").replace(/Ã/g,"ss").replace(/\s+/g,"-");return o(`/${g("blog.authorUrl")}/${t}`)},isQueryParamLink:d,isExternalLink:f}}export{A as a,M as u};
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.