1import{Ar as e,Ct as t,G as n,J as r,K as i,Kn as a,Lt as o,Ut as s,Xn as c,Y as l,ht as u,it as d,q as f,qn as p,rr as m}from"./site-zcL5wIU_.js";var h=e=>e===``,g=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),_=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),v=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),y=e=>{let t=v(e);return t.charAt(0).toUpperCase()+t.slice(1)},b={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},x=Symbol(`lucide-icons`);function S(){return t(x,{})}var C=({name:e,iconNode:t,"icon-node":r,absoluteStrokeWidth:i,"absolute-stroke-width":a,strokeWidth:o,"stroke-width":s,size:c,color:l,...d},{slots:f})=>{let{size:p,color:m,strokeWidth:v=2,absoluteStrokeWidth:x=!1,class:C=``}=S(),w=n(()=>{let e=h(i)||h(a)||i===!0||a===!0||x===!0,t=o||s||v||b[`stroke-width`];return e?Number(t)*24/Number(c??p??b.width):t});return u(`svg`,{...b,...d,width:c??p??b.width,height:c??p??b.height,stroke:l??m??b.stroke,"stroke-width":w.value,class:g(`lucide`,C,...e?[`lucide-${_(y(e))}-icon`,`lucide-${_(e)}`]:[`lucide-icon`])},[...(t??r??[]).map(e=>u(...e)),...f.default?[f.default()]:[]])},w=(e,t)=>(n,{slots:r,attrs:i})=>u(C,{...i,...n,iconNode:t,name:e},r.default?{default:r.default}:void 0),T=w(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),E=w(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),D=[`href`],O=[`src`,`alt`],k={key:0,class:`absolute top-2 right-2 flex h-7 w-7 items-center justify-center rounded-full bg-[rgba(253,249,245,0.9)] text-sf-ink`},A={class:`sr-only`},j=d({__name:`InstagramTile`,props:{post:{}},setup(t){return(n,a)=>(s(),l(`a`,{href:t.post.url,target:`_blank`,rel:`noopener noreferrer`,class:`group relative block aspect-square overflow-hidden bg-sf-base-alt`},[i(`img`,{src:t.post.image,alt:t.post.alt,class:`h-full w-full object-cover`,loading:`lazy`,decoding:`async`},null,8,O),t.post.mediaType===`IMAGE`?r(``,!0):(s(),l(`span`,k,[t.post.mediaType===`VIDEO`?(s(),f(m(E),{key:0,size:14,"aria-hidden":`true`})):(s(),f(m(T),{key:1,size:14,"aria-hidden":`true`})),i(`span`,A,e(t.post.mediaType===`VIDEO`?`Video`:`Bilderstrecke`),1)])),a[0]||=i(`span`,{class:`absolute inset-0 flex flex-col items-center justify-center gap-1 bg-[rgba(74,62,57,0.55)] opacity-0 transition-opacity duration-200 group-hover:opacity-100 group-focus-visible:opacity-100`},[i(`span`,{class:`font-display text-[26px] text-sf-base`},`Zum Beitrag`),i(`span`,{class:`text-[11px] tracking-[0.2em] text-sf-base uppercase`},`Ãffnet Instagram`)],-1)],8,D))}}),M={class:`aspect-square animate-pulse`,style:{background:`repeating-linear-gradient(45deg, var(--sf-base-alt) 0 14px, var(--sf-line) 14px 28px)`},"aria-hidden":`true`},N=d({__name:`InstagramTileSkeleton`,setup(e){return(e,t)=>(s(),l(`div`,M))}}),P=c(null),F=p(`idle`),I=null;async function L(){return I||(F.value=`loading`,I=(async()=>{try{let e=await fetch(`/api/instagram`,{headers:{accept:`application/json`}});if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();P.value={...t,posts:t.posts??[]},F.value=`ready`}catch(e){console.warn(`Instagram-Feed nicht erreichbar:`,e),F.value=`error`}finally{I=null}})(),I)}function R(){return o(()=>{F.value===`idle`&&L()}),{feed:a(P),status:a(F),reload:L}}export{w as i,N as n,j as r,R 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.