PageSourceSearch

https://iog-austria.at/assets/Section-P17LkRNK.js

js iog-austria.at collected 2026-10-06 10:24:21 UTC 5,702 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SectionMeeting-7rAcCgh1.js","assets/index-MmeXtjoV.js","assets/index-C8Yu-U97.css","assets/SectionMeeting-B9Cll7Qa.css","assets/ProjectCard-DnZoZOQk.js"])))=>i.map(i=>d[i]);
2import{_ as V,u as T,a as z,o as q,w as U,b as J,c as o,t as g,e as i,d as a,F as S,r as A,l as y,k as _,f as c,g as K,y as Q,x as M,z as W,s as X,B as Y,A as P,i as l,n as Z}from"./index-MmeXtjoV.js";const ee={class:"min-h-full max-w-full"},te={key:0,class:"sr-only"},se={class:"w-full relative h-[250px] md:h-[400px] overflow-hidden"},ae={class:"w-full h-full"},ne=["src","alt"],oe={key:1,class:"flex items-center justify-center h-full"},le={key:2,class:"mt-2 flex items-center justify-center h-full"},re={class:"text-red-500"},ce={key:3,class:"mt-2 container mx-auto px-4"},ie={class:"flex justify-center"},ue={class:"w-full sm:w-10/12 md:w-9/12 lg:w-8/12 xl:w-7/12"},de={class:"flex border-b"},me=["onClick"],ge={class:"flex justify-center"},_e={class:"w-full sm:w-10/12 md:w-9/12 lg:w-8/12 xl:w-7/12 pt-4"},ve=["innerHTML"],fe={class:"flex justify-center"},pe={class:"w-full sm:w-10/12 md:w-9/12 lg:w-8/12 xl:w-7/12"},he={class:"flex flex-wrap"},we={class:"w-full md:w-1/2"},ye=["innerHTML"],xe={class:"w-full md:w-1/2 self-center"},be=["src"],je={key:0,class:"container mx-auto px-4 mt-2"},Le={key:1,class:"container mx-auto px-4 mt-2"},ke={class:"mt-10 mb-10 text-center"},Ie={class:"flex flex-wrap justify-center"},Te={__name:"Section",setup(Se){const x=M(()=>P(()=>import("./SectionMeeting-7rAcCgh1.js"),__vite__mapDeps([0,1,2,3]))),R=M(()=>P(()=>import("./ProjectCard-DnZoZOQk.js"),__vite__mapDeps([4,1,2]))),b=T("sections"),C=T("projects"),{processImageFields:j}=z(),G=c(null),v=c(!1),n=c(null),O=K(()=>{if(!n.value)return"";const s=n.value[r.currentLanguage]?.name||n.value.de?.name||"",t=r.currentLanguage;return t==="en"?`Regional Group ${s} | IOG Austria`:t==="fr"?`Groupe Régional ${s} | IOG Austria`:`Regionalgruppe ${s} | IOG Austria`}),L=c([]),$=c(null),m=c(null),u=c(null),d=c(null),f=c([]),p=W(),k={projects:{de:"Projekte",en:"Projects",fr:"Projets"}},E=s=>k[s][r.currentLanguage]||k[s].de,h=(s,t)=>{if(!s)return"";const e=s[r.currentLanguage]?.[t]||s.de?.[t];return Q(e)},D=s=>{console.log(s);const t="/iog_section/"+s,e=r.currentLanguage;return!e||e==="de"?t:`/${e}${t}`},F=async s=>{try{const t=await b.getById(s);return t&&await j(t,["headerImage","teamImage"])}catch(t){return console.error(t),X("page_load_error",{page_name:"section/"+s,language:r.currentLanguage,error:t.message}),null}},N=async s=>{try{const t=await C.queryDocumentsAndOps([{field:"section",operator:"==",value:s.id},{field:"publicationStatus",operator:"==",value:"published"}]),e=await j(t,["headerImage"]);return Y(e,r.currentLanguage)}catch(t){return console.error(t),null}},B=async s=>{const t=f.value.find(e=>e.id===s);G.value=t?.display||null,$.value=s,m.value=n.value=null,v.value=!0;try{const e=await F(s);if(console.log(e),L.value=await N(e),e){n.value=e;const w=e[r.currentLanguage]?.name||e.de?.name||"";document.title=w?`${w} | IOG Austria`:"Regionalgruppe | IOG Austria",e.officialMeeting?.exists&&(u.value=e.officialMeeting,u.value.shortTitle="RG Treffen",u.value.title="Regionalgruppentreffen"),e.inofficialMeeting?.exists&&(d.value=e.inofficialMeeting,d.value.shortTitle="Stammtisch",d.value.title="Stammtisch",n.value=e)}else n.value=null,u.value=null,d.value=null}catch(e){m.value=e,console.error("There was an error!",e)}finally{v.value=!1}},I=()=>{B(p.params.code)},H=async()=>{try{const s=await b.getAll();f.value=s.map(t=>({display:h(t,"name"),id:t.id})).sort((t,e)=>t.display.localeCompare(e.display))}catch(s){console.error("Error loading section names:",s)}};q(()=>{H(),I()}),U(()=>p.params.code,()=>{I()});const r=J();return console.log(r.currentLanguage),(s,t)=>(l(),o("div",ee,[n.value?(l(),o("h1",te,g(O.value),1)):i("",!0),a("div",se,[a("div",ae,[n.value?.headerImage?(l(),o("img",{key:0,src:n.value.headerImage,alt:n.value.code,class:"w-full h-full object-cover object-center",loading:"lazy"},null,8,ne)):i("",!0)])]),v.value?(l(),o("div",oe,[...t[0]||(t[0]=[a("div",{class:"w-12 h-12 border-4 border-primary border-t-transparent roun
2ded-full animate-spin"},null,-1)])])):i("",!0),m.value?(l(),o("div",le,[a("div",re,g(m.value),1)])):i("",!0),n.value?(l(),o("div",ce,[a("div",ie,[a("div",ue,[a("div",de,[(l(!0),o(S,null,A(f.value,e=>(l(),o("button",{key:e.id,class:Z(["px-4 py-2 -mb-px",_(p).params.code===e.id?"border-b-2 border-primary text-primary font-medium":"text-gray-600 hover:text-primary border-b-2 border-transparent"]),onClick:w=>s.$router.push(D(e.id))},g(e.display),11,me))),128))])])]),a("div",ge,[a("div",_e,[a("div",{innerHTML:h(n.value,"description"),class:"content prose max-w-none"},null,8,ve)])]),a("div",fe,[a("div",pe,[a("div",he,[a("div",we,[a("div",{innerHTML:h(n.value,"teamText"),class:"content prose max-w-none"},null,8,ye)]),a("div",xe,[n.value.teamImage?(l(),o("img",{key:0,id:"map-image",src:n.value.teamImage,class:"block max-w-full h-auto align-bottom border-0 p-2"},null,8,be)):i("",!0)])])])]),n.value.officialMeeting?.exists?(l(),o("div",je,[y(_(x),{section_meeting:u.value},null,8,["section_meeting"])])):i("",!0),n.value.inofficialMeeting?.exists?(l(),o("div",Le,[y(_(x),{section_meeting:d.value},null,8,["section_meeting"])])):i("",!0),a("div",ke,[a("h3",null,g(E("projects")),1)]),a("div",Ie,[(l(!0),o(S,null,A(L.value,e=>(l(),o("div",{key:e.name,class:"w-full sm:w-full md:w-1/2 lg:w-5/12 xl:w-1/3 p-4"},[y(_(R),{project:e,class:"hover:shadow-lg transition-shadow duration-300"},null,8,["project"])]))),128))])])):i("",!0)]))}},Me=V(Te,[["__scopeId","data-v-a1f93e67"]]);export{Me 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.