PageSourceSearch

https://www.vinzenzkliniken.wien/_nuxt/DRFN-fNA.js

js vinzenzkliniken.wien collected 2026-10-06 18:09:52 UTC 8,127 bytes, 1 lines download raw bytes

1import{X as We,r as h,a4 as q,$ as F,c as J,ab as we,o as Xe,ag as Ve,a as qe,u as Je,af as Ke,d as g,g as y,h as r,i as L,k as R,a6 as t,p as Te,F as Ie,m as Ce,q as x,n as Ue,a1 as Ye,ah as Qe,ai as Ze,aj as et,e as i,y as E,ak as tt}from"./CbyXcyJN.js";import{_ as at}from"./YxoaNYvi.js";import{_ as lt}from"./BE4kd74y.js";import{_ as st}from"./DhncER5W.js";import nt from"./GrO0LQbs.js";import{_ as ot}from"./BaUClArH.js";import{_ as it}from"./DD35_PLz.js";import{g as rt}from"./CJPTwJRv.js";import{r as ct,t as ut}from"./B05HICAk.js";import"./DlAUqK2U.js";import"./Dot_TXOl.js";function Le(S,D){return S.hits.map(s=>({content:{_uid:s.objectID,component:"article",title:s.title.endsWith(` - ${D}`)?s.title.replace(` - ${D}`,""):s.title,category:"",excerpt:s.metaTags["article-excerpt"],image:{fieldtype:"asset",is_private:!1,is_external_url:!1,meta_data:{},filename:s.metaTags["og:image"]},image_alt:s.metaTags["article-image-alt"],origin:{logo:s.metaTags["article-origin-logo"],name:s.metaTags["article-origin-name"],url:s.metaTags["article-origin-url"],spaceId:s.metaTags["article-origin-id"]},tags:s.metaTags["article-tags"]||[],content:[],conclusion_headline:"",conclusion_text:{type:"text",text:""},date:s.metaTags["article-date"],type:s.metaTags["article-type"],topics:s.metaTags["article-topics"]||[]},_uid:s.objectID,component:"article",full_slug:new URL(s.url).pathname.slice(1)}))}const dt={key:2,"data-aos":"fade",class:"container mb-8 md:mb-12 relative","aria-live":"polite"},gt={class:"w-full sm:w-3/4 lg:w-11/20"},mt={key:0,class:"flex flex-wrap gap-y-2 text-sm font-bold pb-3"},pt={key:3,class:"flex items-center justify-center"},ft=["id"],_t=["data-aos-delay","data-aos-anchor"],ht={key:5},vt={key:6,class:"text-center font-bold"},Ot=We({__name:"ArticleOverview",props:{blok:{}},setup(S){var ce,ue;const s=(ce=ct(ut).theme)==null?void 0:ce.screens,B=S,K=h(!1),U=h(1),Y=h(!1),d=h(((ue=q().payload.data)==null?void 0:ue.algoliaArticles)||[]),o=F("featuredArticle",()=>null),xe=J(()=>d.value.filter(e=>{var a;return!($.value&&e._uid===((a=o.value)==null?void 0:a._uid))})),$=h(!0),p=h(!1),Q=h("");let b="",A="";const f=F("currentPage",()=>0),M=F("totalResults",()=>0),j=F("totalPages",()=>0);let H=null;const{$globalSettings:$e}=q(),{fallback_site_name:Z}=$e,Oe=rt(),z=we(),ee=z.public.ALGOLIA_APPLICATION_ID,Pe=z.public.ALGOLIA_API_KEY,Ne=z.public.ALGOLIA_INDEX_NAME_ARTICLE_DATE,Fe={"X-Algolia-API-Key":Pe,"X-Algolia-Application-Id":ee,"Content-Type":"application/json"};Me();const Re=J(()=>B.blok.filter_by_types??[]),Ee=J(()=>B.blok.filter_by_tags??[]),te=Re.value,ae=Ee.value,{$tags:Se}=q(),le=h({});function De(e){const a={},l=Se();e.forEach(n=>{var u;(((u=n.content)==null?void 0:u.tags)??[]).forEach(c=>{l[c]&&(a[c]=l[c])})}),le.value=a}Xe(()=>{window.addEventListener("windowResized",G),G(),Y.value=!0,H=Ve(300,()=>{const e=W(b,A);ie(e)})}),qe(()=>{window.removeEventListener("resize",G)});const G=()=>{K.value=window.innerWidth<480,U.value=window.innerWidth<parseInt(s.sm)?1:window.innerWidth<parseInt(s.lg)?2:3};function Be(e){return e%U.value*200}function se(e,a,l){const n=(a??[]).map(_=>_.toLowerCase()),u=(l??[]).map(_=>_.toLowerCase()),c=n.length===0,w=u.length===0;return e.filter(_=>{var T,v,I,C;const X=((I=(v=(T=_.content)==null?void 0:T.type)==null?void 0:v.toLowerCase)==null?void 0:I.call(v))??"",V=(((C=_.content)==null?void 0:C.tags)??[]).map(k=>k.toLowerCase()),O=c||n.includes(X),P=w||V.some(k=>u.includes(k));return!c&&!w?O&&P:c?w?!0:P:O})}async function ne(e){var n;const{data:a,error:l}=await Ye(`https://${ee}-dsn.algolia.net/1/indexes/${Ne}/query`,ze(JSON.stringify({...JSON.parse(e),hitsPerPage:1e3,page:0})),"$fFZwfajBtO");return l.value?(console.error("Algolia fetch error:",l.value),[]):((n=a.value)==null?void 0:n.hits)||[]}async function Me(){b="*",A="metaTags.page-type:article";const e=W(b,A),a=await ne(e),l=Le({hits:a,nbHits:a.length},Z);De(l);const n=se(l,te,ae);M.value=n.length,j.value=Math.ceil(n.length/10),f.value=0,d.value=n.slice(0,10),o.value=n[0]??null}function je(e){p.value=!0;const a=e.length?`metaTags.page-type:article AND (${e.map(l=>`metaTags.article-tags:${l}`).join(" OR ")})`:"metaTags.page-type:article";$.value=e.length===0,b="*",A=a,d.value=[],f.value=0,oe()}function He(e){p.value=!0,Q.value=e,$.value=e==="",b=e===""?"*":e,A="metaTags.page-type:article",(e.length>=3||e.length==0)&&(d.value=[],f.value=0,oe())}const oe=()=>{H&&H()};async function ie(e){const a=await ne(e),l=Le({hits:a,nbHits:a.length},Z),n=se(l,te,ae);M.value=n.length,j.value=Math.ceil(n.length/10);const u=f.value*10,c=u+10;f.value===0?d.value=n.slice(u,c):d.value=d.value.concat(n.slice(u,c)),o.value=n[0]??null,p.value=!1}function re(){var e;if((e=o.value)!=null&&e.full_slug){const{siteUrl:a}=we().public;let l;a.endsWith("/")?l=a+o.value.full_slug:l=a+"/"+o.value.full_slug,tt(l,{external:!0})}}function W(e,a){return JSON.stringify({query:e,hitsPerPage:10,page:f.value,userToken:Oe,filters:a})}function ze(e){return{method:"POST",headers:Fe,body:e}}function Ge(){f.value+=1;const e=W(b,A);ie(e)}return(e,a)=>{var T,v,I,C,k,de,ge,me,pe,fe,_e,he,ve,be,Ae,ke,ye;
1const l=Qe,n=at,u=lt,c=st,w=Ze,_=et,X=nt,V=ot,O=it,P=Ke("editable");return Je((i(),g("div",{class:Ue({" pt-16 sm:pt-24 lg:pt-40":e.blok.headline===""&&e.blok.subheadline===""})},[e.blok.headline?(i(),y(l,{key:0,level:"h1",variant:"h1",class:"relative pb-2 pt-10 text-center"},{default:R(()=>[E(x(e.blok.headline),1)]),_:1})):r("",!0),e.blok.subheadline?(i(),y(l,{key:1,level:"h2",variant:"h4",class:"relative pb-8 text-center"},{default:R(()=>[E(x(e.blok.subheadline),1)]),_:1})):r("",!0),r(" no index start "),L(n,{tags:t(le),"is-mobile":t(K),onHandleSearchInput:He,onHandleClickedTag:je},null,8,["tags","is-mobile"]),r(" no index end "),t(o)&&t($)&&!t(p)?(i(),g("div",dt,[Te("div",gt,[L(u,{src:(I=(v=(T=t(o))==null?void 0:T.content)==null?void 0:v.image)==null?void 0:I.filename,alt:(k=(C=t(o))==null?void 0:C.content)==null?void 0:k.image_alt,sizes:{default:"368x240",md:"662x350"},height:"350",width:"662",class:"overflow-hidden mb-4 md:mb-0 rounded-sm cursor-pointer featured-article",onClick:re},null,8,["src","alt"])]),Te("div",{class:"sm:absolute h-auto sm:bg-white sm:shadow-vg-md sm:right-6 sm:top-1/2 sm:-translate-y-1/2 sm:p-6 sm:w-3/5 md:w-9/20 group cursor-pointer",onClick:re},[(ge=(de=t(o))==null?void 0:de.content)!=null&&ge.tags?(i(),g("div",mt,[(i(!0),g(Ie,null,Ce((pe=(me=t(o))==null?void 0:me.content)==null?void 0:pe.tags,m=>(i(),y(c,{key:m,text:e.$tag(m),"border-color":"darkpurple",class:"mr-2"},null,8,["text"]))),128))])):r("",!0),(_e=(fe=t(o))==null?void 0:fe.content)!=null&&_e.title?(i(),y(l,{key:1,level:"h3",variant:"h4-bold",class:"sm:pb-3"},{default:R(()=>{var m,N;return[E(x((N=(m=t(o))==null?void 0:m.content)==null?void 0:N.title),1)]}),_:1})):r("",!0),(ve=(he=t(o))==null?void 0:he.content)!=null&&ve.excerpt?(i(),y(w,{key:2,text:(Ae=(be=t(o))==null?void 0:be.content)==null?void 0:Ae.excerpt,class:"pb-4 hidden sm:block"},null,8,["text"])):r("",!0),(ke=t(o))!=null&&ke.full_slug?(i(),y(_,{key:3,variant:"link-primary",icon:!0,link:(ye=t(o))==null?void 0:ye.full_slug,target:"_self",class:"hidden sm:flex group-hover:underline"},{default:R(()=>[E(x(e.$label("article_cta_text")),1)]),_:1},8,["link"])):r("",!0)])])):r("",!0),t(p)&&t(Q).length>0?(i(),g("div",pt,[L(X)])):r("",!0),t(Y)&&t(d).length>0&&!t(p)?(i(),g("div",{key:4,id:"article-overview-"+e.blok._uid,class:"container grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-8 lg:gap-y-12 justify-center"},[(i(!0),g(Ie,null,Ce(t(xe),(m,N)=>(i(),g("div",{key:m._uid,"data-aos":"fade","data-aos-delay":Be(N),"data-aos-anchor":"#article-overview-"+e.blok._uid},[L(V,{blok:m},null,8,["blok"])],8,_t))),128))],8,ft)):r("",!0),t(p)?r("",!0):(i(),g("div",ht,[L(O,{results:t(d),"total-results":Number(t(M)),"current-page":Number(t(f)),"total-pages":Number(t(j)),"total-pages-offset":1,onLoadMore:a[0]||(a[0]=m=>Ge())},null,8,["results","total-results","current-page","total-pages"])])),t(d).length===0&&!t(p)?(i(),g("div",vt,x(e.$label("no_results_found")),1)):r("",!0)],2)),[[P,e.blok]])}}});export{Ot as default};

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.