PageSourceSearch

https://bauernzeitung.at/_nuxt/LTXXj5hW.js

js bauernzeitung.at collected 2026-09-24 17:15:04 UTC 21,134 bytes, 1 lines download raw bytes

1import{S as se,_ as le}from"./DeLiZCiK.js";import{_ as ee}from"./D_Awlv0t.js";import{aV as B,aW as R,bE as te,bk as F,b0 as re,bG as ie,aY as de,b1 as U,b2 as u,b3 as N,b7 as a,ba as M,b6 as A,bb as t,b4 as i,bd as b,be as O,c9 as ue,bq as L,bc as ce,bf as E,a$ as me,b8 as q,bo as pe,bl as ve,bU as ge,ca as fe,bA as ne,bn as T,bD as be,bg as I,bh as W,bi as he,aX as _e,bm as ye}from"./CH3VXMPH.js";import{o as G,s as S,e as K,n as z}from"./D3xzWhdn.js";import{_ as k,b as Z,a as H}from"./BEBUUTAU.js";import{u as oe}from"./SsCM03jE.js";import{_ as xe}from"./Dv2EwhdE.js";import{_ as ae,C as we}from"./BqonMFh3.js";import"./CtFzU2G8.js";import{u as Ve}from"./DtEfTkqz.js";import{C as Y}from"./C6YqbOO-.js";import De from"./Bl745cio.js";import{U as Q,f as X}from"./PlZW8g-8.js";import{P as J}from"./C9pxIcDM.js";import{_ as Se}from"./quGz_Xow.js";import"./B4wbwfie.js";import"./Dh7DU9IO.js";import"./BLFv_GER.js";import"./BWgUAxxi.js";import"./B_uLsgJ0.js";import"./CjBl_Evq.js";import"./Y-BRnfNz.js";import"./D1qPNmKJ.js";import"./CdH49Ave.js";import"./287Ba0fx.js";import"./DeoWBTBS.js";import"./Bt-H3pso.js";import"./EpUuxQQF.js";import"./C3oN4NfA.js";import"./C4qx9r_r.js";import"./-7gXIitZ.js";import"./DwKTPiKd.js";import"./DXKjz4vh.js";import"./BFbB2YFu.js";import"./CrHzKvoy.js";import"./D3GIv0wx.js";import"./BmwbwIvI.js";(function(){try{var w=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};w.SENTRY_RELEASE={id:"821e03047900bf23d1d409b160d39df92e5b3f69"};var c=new w.Error().stack;c&&(w._sentryDebugIds=w._sentryDebugIds||{},w._sentryDebugIds[c]="42b93d1d-3bf4-4f6a-97cf-5d6309e6b5ed",w._sentryDebugIdIdentifier="sentry-dbid-42b93d1d-3bf4-4f6a-97cf-5d6309e6b5ed")}catch{}})();G({id:z().optional(),title:S(),description:S().optional(),website:S().optional(),dateStart:S(),dateEnd:S().optional(),dateDescription:S().optional(),protectedContactName:S(),protectedContactEmail:K(),protectedContactPhone:S().optional(),contactName:S().optional(),contactEmail:K().optional(),contactPhone:S().optional(),userId:S().optional().nullish(),address:G({id:z().optional(),name:S(),street:S().optional(),postalCode:S().optional(),city:S().optional(),country:S().optional(),lat:z().optional(),lng:z().optional()})});const Ee={class:"pb-14"},$e={class:"flex flex-col gap-5 sm:gap-6 lg:gap-8"},ke={class:"flex flex-col gap-4"},Le={class:"flex flex-col gap-4"},Ce={class:"flex flex-col gap-4"},Me={class:"flex flex-col gap-4"},Ne={class:"flex gap-3"},Pe={class:"flex flex-col gap-4"},Ae={class:"flex gap-3"},Ue={class:"flex flex-col gap-2.5 sm:gap-3 lg:gap-4"},Fe={class:"flex flex-col"},Te=["href"],Ie=["href"],Oe=["disabled"],Be=B({__name:"organism",props:{show:{type:Boolean},showModifiers:{}},emits:["update:show"],setup(w){const{isApp:c}=R(),{sendLinkMessage:x}=oe(c.value),l=te(w,"show"),f=F("loading-add-event",()=>!1),g=re(),{phoneNumberEventHelp:h,emailEventHelp:p}=ie(),{user:V}=de(),d=L(),n=ue({protectedPersonName:"",protectedPersonEmail:"",protectedPersonPhone:"",personName:"",personEmail:"",personPhone:"",eventName:"",eventWebsite:"",eventDescription:"",eventDateStart:"",eventDateEnd:"",eventDateDescription:"",eventLocationName:"",eventLocationStreet:"",eventLocationZip:"",eventLocationCity:""}),m=E(()=>({title:n.eventName,description:n.eventDescription||void 0,website:n.eventWebsite||void 0,dateStart:n.eventDateStart,dateEnd:n.eventDateEnd||void 0,dateDescription:n.eventDateDescription||void 0,protectedContactName:n.protectedPersonName||void 0,protectedContactEmail:n.protectedPersonEmail||void 0,protectedContactPhone:n.protectedPersonPhone||void 0,contactName:n.personName||void 0,contactEmail:n.personEmail||void 0,contactPhone:n.personPhone||void 0,userId:V.value?.userId,address:{name:n.eventLocationName||void 0,street:n.eventLocationStreet||void 0,postalCode:n.eventLocationZip||void 0,city:n.eventLocationCity||void 0}})),s=async()=>{if(v()){f.value=!0;try{await $fetch("/api/events",{method:"POST",headers:{"Content-Type":"application/json"},body:m.value}),g.add({summary:"Veranstaltung eingereicht",detail:"Vielen Dank für Ihre Einreichung. Wir prüfen Ihre Veranstaltung und veröffentlichen sie nach Freigabe.",severity:"success",life:5e3}
1),Object.keys(n).forEach(e=>{n[e]=""}),c.value||await me("/veranstaltungen/success")}catch(e){g.add({summary:"Fehler bei der Einreichung",detail:"Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut."+(e?.data?.message??e),severity:"error",life:5e3})}f.value=!1,l.value=!1}},v=()=>{const r=d.value?.node;return r?.context?.state?.valid?!0:(r?.submit(),!1)};return(r,e)=>{const _=ce("FormKit"),y=le,$=ee;return u(),U(se,{show:l.value,"onUpdate:show":e[18]||(e[18]=o=>l.value=o),title:"Neue Veranstaltung"},{content:N(()=>[a("div",Ee,[i(_,{ref_key:"form",ref:d,type:"form",actions:!1,"incomplete-message":!1},{default:N(()=>[a("div",$e,[a("div",ke,[e[19]||(e[19]=a("div",null,[a("div",{class:"tertiary-title"}," Kontakt für Rückfragen "),a("small",{class:"text-secondary-on-surface"}," Wird nicht veröffentlicht. Das BauernZeitung Team nutzt diesen Kontakt, falls Fragen zur Veranstaltung aufkommen. ")],-1)),i(k,{id:"event-protected-person-name",modelValue:t(n).protectedPersonName,"onUpdate:modelValue":e[0]||(e[0]=o=>t(n).protectedPersonName=o),type:"text",label:"Ihr Name",name:"Ihr Name",placeholder:"Geben Sie Ihren vollen Namen an...",autocomplete:"name",required:""},null,8,["modelValue"]),i(k,{id:"event-protected-person-email",modelValue:t(n).protectedPersonEmail,"onUpdate:modelValue":e[1]||(e[1]=o=>t(n).protectedPersonEmail=o),type:"email",label:"Email",name:"Email",placeholder:"Geben Sie Ihre Email Adresse an...",autocomplete:"name",required:"",icon:""},null,8,["modelValue"]),i(Z,{modelValue:t(n).protectedPersonPhone,"onUpdate:modelValue":e[2]||(e[2]=o=>t(n).protectedPersonPhone=o),label:"Telefonnummer",placeholder:"664 12345678"},null,8,["modelValue"])]),e[24]||(e[24]=a("div",{class:"h-px bg-border-primary"},null,-1)),a("div",Le,[e[20]||(e[20]=a("span",{class:"tertiary-title"}," Öffentliche Ansprechperson ",-1)),i(k,{id:"event-person-name",modelValue:t(n).personName,"onUpdate:modelValue":e[3]||(e[3]=o=>t(n).personName=o),type:"text",label:"Ansprechperson/Veranstalter",placeholder:"Geben Sie den Namen der Ansprechperson an...",autocomplete:"name"},null,8,["modelValue"]),i(k,{id:"event-person-email",modelValue:t(n).personEmail,"onUpdate:modelValue":e[4]||(e[4]=o=>t(n).personEmail=o),type:"email",label:"Email",placeholder:"Geben Sie die Email Adresse der Ansprechperson an...",autocomplete:"name",icon:""},null,8,["modelValue"]),i(Z,{modelValue:t(n).personPhone,"onUpdate:modelValue":e[5]||(e[5]=o=>t(n).personPhone=o),label:"Telefonnummer",placeholder:"664 12345678"},null,8,["modelValue"])]),e[25]||(e[25]=a("div",{class:"h-px bg-border-primary"},null,-1)),a("div",Ce,[e[21]||(e[21]=a("span",{class:"tertiary-title"}," Welche Veranstaltung? ",-1)),i(k,{id:"event-name",modelValue:t(n).eventName,"onUpdate:modelValue":e[6]||(e[6]=o=>t(n).eventName=o),type:"text",label:"Bezeichnung",name:"Bezeichnung",placeholder:"Geben Sie eine treffende Bezeichnung ein...",required:""},null,8,["modelValue"]),i(k,{id:"event-website",modelValue:t(n).eventWebsite,"onUpdate:modelValue":e[7]||(e[7]=o=>t(n).eventWebsite=o),type:"text",label:"Webseite",placeholder:"https://www.beispiel-webseite.at"},null,8,["modelValue"]),i(H,{id:"event-description",modelValue:t(n).eventDescription,"onUpdate:modelValue":e[8]||(e[8]=o=>t(n).eventDescription=o),label:"Beschreibung",placeholder:"Fügen Sie hier nähere Informationen zu Event ein...",rows:10},null,8,["modelValue"])]),e[26]||(e[26]=a("div",{class:"h-px bg-border-primary"},null,-1)),a("div",Me,[e[22]||(e[22]=a("span",{class:"tertiary-title"}," Wann? ",-1)),a("div",Ne,[i(k,{id:"event-date-start",modelValue:t(n).eventDateStart,"onUpdate:modelValue":e[9]||(e[9]=o=>t(n).eventDateStart=o),class:"grow",type:"date",icon:"",label:"Beginn",placeholder:"Geben Sie den Beginn der Veranstaltung an...",required:"",name:"Ein Startdatum"},null,8,["modelValue"]),i(k,{id:"event-date-end",modelValue:t(n).eventDateEnd,"onUpdate:modelValue":e[10]||(e[10]=o=>t(n).eventDateEnd=o),class:"grow",type:"date",label:"Ende",placeholder:"Geben Sie das Ende der Veranstaltung an...",name:"Ein Enddatum",icon:""},null,8,["modelValue"])]),i(H,{id:"event-date-description",modelValue:t(n).eventDateDescription,"onUpdate:modelValue":e[11]||(e[11]=o=>t(n).eventDateDescription=o),label:"Nähere Angaben",placeholder:"Fügen Sie hier nähere Informationen zu Öffnungszeiten u.ä. ein..."}
1,null,8,["modelValue"])]),e[27]||(e[27]=a("div",{class:"h-px bg-border-primary"},null,-1)),a("div",Pe,[e[23]||(e[23]=a("span",{class:"tertiary-title"}," Wo? ",-1)),i(k,{id:"event-location-name",modelValue:t(n).eventLocationName,"onUpdate:modelValue":e[12]||(e[12]=o=>t(n).eventLocationName=o),type:"text",label:"Veranstaltungsort",name:"Veranstaltungsort",placeholder:"Wo findet die Veranstaltung statt?",required:""},null,8,["modelValue"]),i(k,{id:"event-location-street",modelValue:t(n).eventLocationStreet,"onUpdate:modelValue":e[13]||(e[13]=o=>t(n).eventLocationStreet=o),type:"text",label:"Straße",placeholder:"Beispielstraße 3"},null,8,["modelValue"]),a("div",Ae,[i(k,{id:"event-location-zip",modelValue:t(n).eventLocationZip,"onUpdate:modelValue":e[14]||(e[14]=o=>t(n).eventLocationZip=o),class:"grow",type:"text",label:"Postleitzahl",placeholder:"1234"},null,8,["modelValue"]),i(k,{id:"event-location-city",modelValue:t(n).eventLocationCity,"onUpdate:modelValue":e[15]||(e[15]=o=>t(n).eventLocationCity=o),class:"grow",type:"text",label:"Stadt",placeholder:"Musterstadt"},null,8,["modelValue"])])])])]),_:1},512)])]),sidebar:N(()=>[a("div",Ue,[i(y,null,{title:N(()=>[...e[28]||(e[28]=[A(" Bitte beachten: ",-1)])]),content:N(()=>[...e[29]||(e[29]=[A(" Veranstaltungen werden an die Redaktion übermittelt und erst nach Prüfung veröffentlicht. ",-1)])]),_:1}),i(y,null,{title:N(()=>[...e[30]||(e[30]=[a("div",null,"Haben Sie Fragen?",-1),a("div",null,"Wir sind persönlich für Sie da!",-1)])]),content:N(()=>[a("div",Fe,[t(h)?(u(),b("a",{key:0,class:"text-nowrap brand-underline",href:`tel:${t(h)}`,onClick:e[16]||(e[16]=o=>t(x)("tel",t(h)))},O(t(h)),9,Te)):M("",!0),t(p)?(u(),b("a",{key:1,class:"break-all brand-underline",href:`mailto:${t(p)}`,onClick:e[17]||(e[17]=o=>t(x)("mailto",t(p)))},O(t(p)),9,Ie)):M("",!0),e[31]||(e[31]=a("div",null,"Mo. – Mi. von 8:00 Uhr bis 15:00 Uhr",-1)),e[32]||(e[32]=a("div",null,"Do. von 8:00 bis 13:00 Uhr",-1))])]),_:1})])]),rightBottomActions:N(()=>[a("button",{class:"btn primary",disabled:t(f),onClick:s},[t(f)?(u(),U($,{key:0,class:"w-5 h-5"})):M("",!0),e[33]||(e[33]=A(" Jetzt einreichen ",-1))],8,Oe)]),_:1},8,["show"])}}}),je=Object.assign(Be,{__name:"SheetModalAddEventOrganism"}),ze={key:1},We={key:2,class:"flex justify-center py-6"},Ye={key:3,class:"flex justify-center py-6"},Re=50,qe=B({__name:"organism",props:{from:{},to:{},userLatitude:{default:null},userLongitude:{default:null},radius:{default:10},groupEvents:{type:Boolean,default:!0},searchQuery:{default:""}},async setup(w){let c,x;const l=w,{algoliaClient:f}=Ve(),g=E(()=>l.from),h=E(()=>l.to),p=E(()=>`${g.value}-${h.value}-${l.userLatitude}-${l.userLongitude}-${l.radius}-${l.searchQuery}`),V=F(`${p.value}-fetched-events`,()=>[]),d=F(`${p.value}-event-page`,()=>0),n=F(`${p.value}-number-of-event-pages`,()=>1),m=F("is-loading-events",()=>!1),s=L(!1),v=L(null),r=o=>{const D=Math.floor(new Date(g.value).getTime()/1e3),P=Math.floor(new Date(h.value).getTime()/1e3),j=[`date_start >= ${D}`,`date_start <= ${P}`],C={query:l.searchQuery,filters:j.join(" AND "),hitsPerPage:Re,page:o};return l.userLatitude!=null&&l.userLongitude!=null&&l.radius!=null&&(C.aroundLatLng=`${l.userLatitude}, ${l.userLongitude}`,C.aroundRadius=l.radius*1e3),C},e=async o=>{m.value=!0,v.value=null;try{const D=await f.searchSingleIndex({indexName:"events",searchParams:r(o)}),P=D.hits??[];n.value=D.nbPages??1,o===0?V.value=[...P]:V.value.push(...P),s.value=!0}catch(D){v.value=D}finally{m.value=!1}};[c,x]=q(async()=>pe(p,async()=>(d.value=0,await e(0),V.value),"$LHY17ngpX-")),await c,x(),ve(p,async()=>{d.value=0,n.value=1,V.value=[],await e(0)});const _=L(null),y=E(()=>d.value+1<n.value),$=async()=>{m.value||!y.value||(d.value+=1,await e(d.value))};return ge(_,()=>{y.value&&$()},{distance:200}),(o,D)=>{const P=ae,j=ee;return u(),b("div",null,[t(V).length?(u(),U(P,{key:0,events:t(V),"group-events":w.groupEvents},null,8,["events","group-events"])):t(s)&&!t(V).length&&!t(m)?(u(),b("div",ze," Keine Veranstaltungen gefunden... ")):M("",!0),t(m)?(u(),b("div",We,[i(j,{class:"w-5 h-5"})])):M("",!0),!t(m)&&t(y)?(u(),b("div",Ye,[a("button",{class:"btn btn-secondary",onClick:$}," Weitere laden ")])):M("",!0),a("div",{ref_key:"sentinel",ref:_,class:"h-px"},null,512)])}}}),Ge=Object.assign(qe,{__name:"EventListAsyncOrganism"}),Ke={class:"flex flex-col gap-8 sm:gap-10 lg:gap-12"},Ze={class:"flex justify-between 2xl:gap-8 max-2xl:flex-col gap-3"},He={class:"flex gap-6 justify-between items-end"},Qe={key:0,class:"absolute z-50 mt-2"},Xe={class:"flex gap-2 lg:gap-3 grow justify-end"},Je=B({__name:"organism",setup(w){const{isApp:c}=R(),x=o=>
1new Intl.DateTimeFormat("de-DE").format(o),l=F("events-search-query",()=>""),f=F("events-user-location",()=>({latitude:null,longitude:null,radius:null})),g=new Date,h=g.getFullYear(),p=g.getMonth(),V=new Date(h,p,g.getDate()),d=new Date(h+5,p,0),n={from:V,to:d},m=L(),s=L(n),v=E(()=>({from:X(s.value.from),to:X(s.value.to)})),r=L(!1),e=L(null);fe(e,()=>{r.value=!1});const _=()=>{r.value=!r.value},y=o=>{Array.isArray(o)?s.value={from:o[0],to:o[1]}:o?s.value={from:o,to:o}:s.value=n},$=E(()=>s.value.from?.getTime()===n.from.getTime()&&s.value.to?.getTime()===n.to.getTime()?"Alle Veranstaltungen":`${x(s.value.from)} - ${x(s.value.to)}`);return(o,D)=>{const P=xe,j=Ge;return u(),b("div",Ke,[a("div",Ze,[a("div",He,[a("div",{ref_key:"pickerWrapper",ref:e,class:"relative inline-block"},[a("button",{class:"secondary-title flex gap-2 lg:gap-3 items-center text-left",onClick:_},[A(O(t($))+" ",1),i(t(Y),{class:ne(["w-5 h-5 -rotate-90 transition-transform duration-300",t(r)?"rotate-90":""])},null,8,["class"])]),t(r)?(u(),b("div",Qe,[i(t(De),{modelValue:t(m),"onUpdate:modelValue":D[0]||(D[0]=C=>T(m)?m.value=C:null),inline:"","selection-mode":"range",onValueChange:y},null,8,["modelValue"])])):M("",!0)],512),i(Q,{location:t(f),"onUpdate:location":D[1]||(D[1]=C=>T(f)?f.value=C:null),class:"md:hidden",compact:""},null,8,["location"])]),a("div",Xe,[t(c)?M("",!0):(u(),U(Q,{key:0,location:t(f),"onUpdate:location":D[2]||(D[2]=C=>T(f)?f.value=C:null),class:"max-md:hidden"},null,8,["location"])),i(P,{modelValue:t(l),"onUpdate:modelValue":D[3]||(D[3]=C=>T(l)?l.value=C:null),class:"grow 2xl:max-w-md",placeholder:"Suche nach Name, Thema oder Veranstaltungsort..."},null,8,["modelValue"])])]),t(v).from&&t(v).to?(u(),U(j,{key:0,from:t(v).from,to:t(v).to,"user-latitude":t(f).latitude,"user-longitude":t(f).longitude,radius:t(f).radius,"search-query":t(l),"group-events":""},null,8,["from","to","user-latitude","user-longitude","radius","search-query"])):M("",!0)])}}}),et=Object.assign(Je,{__name:"EventListViewOrganism"}),tt={class:"border border-border-primary rounded-regular p-3"},nt={class:"grid grid-cols-7 text-center text-sm font-semibold text-gray-500 mb-2 py-4"},ot={class:"bg-surface-primary rounded-less"},at=["onClick"],st={key:0,class:"w-1.5 h-1.5 bg-brand-regular rounded-full mt-1"},lt=B({__name:"molecule",props:be({events:{},month:{},year:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(w){const c=w,x=te(w,"modelValue"),l=E(()=>new Date(c.year,c.month+1,0).getDate()),f=E(()=>new Date(c.year,c.month,1).getDay()),g=E(()=>{const d=[],n=f.value===0?6:f.value-1;for(let s=0;s<n;s++)d.push(null);for(let s=1;s<=l.value;s++)d.push(new Date(c.year,c.month,s));const m=[];for(let s=0;s<d.length;s+=7)m.push(d.slice(s,s+7));return m}),h=d=>{x.value=d},p=d=>d?x.value?.toDateString()===d.toDateString():!1,V=d=>d?c.events.some(n=>{const m=new Date(n.dateStart);if(n.dateEnd){const s=new Date(n.dateEnd);if(m<=d&&s>=d)return!0}return m.toDateString()===d.toDateString()}):!1;return(d,n)=>(u(),b("div",tt,[a("div",nt,[(u(),b(I,null,W(["Mo","Di","Mi","Do","Fr","Sa","So"],m=>a("div",{key:m},O(m),1)),64))]),a("div",ot,[(u(!0),b(I,null,W(g.value,(m,s)=>(u(),b("div",{key:s,class:"grid grid-cols-7 mb-1"},[(u(!0),b(I,null,W(m,(v,r)=>(u(),b("div",{key:r,class:ne(["text-center p-2 rounded-minimal cursor-pointer rounded-less aspect-square flex flex-col items-center justify-center",[v?"hover:bg-surface-secondary":"",p(v)?"border-2 border-brand-regular text-brand-dark":""]]),onClick:e=>v&&h(v)},[a("div",null,O(v?.getDate()||""),1),V(v)?(u(),b("div",st)):M("",!0)],10,at))),128))]))),128))])]))}}),rt=Object.assign(lt,{__name:"EventCalendarControlMolecule"}),it={class:"flex flex-col gap-3.5 sm:gap-4 lg:gap-6"},dt={class:"flex lg:gap-8 max-lg:flex-col gap-3 max-w-2xl"},ut={class:"secondary-title flex items-center text-left gap-2 lg:gap-3 w-full justify-between"},ct={class:"flex"},mt={key:1},pt=B({__name:"organism",async setup(w){let c,x;const l=new Date,f={from:new Date(l.getFullYear(),l.getMonth(),2),to:new Date(l.getFullYear(),l.getMonth()+1,1)},g=L(f),h=E(()=>{const r=new Date,e=r.getMonth(),_=r.getFullYear(),y=g.value.from,$=y.getMonth(),o=y.getFullYear();return $===e&&o===_?"Diesen Monat":$===e+1&&o===_?"Nächster Monat":$===e-1&&o===_?"Letzter Monat":new Intl.DateTimeFormat("de-DE",{month:"long",year:"numeric"}).format(y)}),p=L(new Date),V=E(()=>g.value.from.toISOString().split("T")[0]),d=E(()=>g.value.to.toISOString().split("T")[0]),{data:n}=([c,x]=q(()=>he("/api/events",{params:{from:V,to:d}},"$g6NpLjplj6")),c=await c,x(),c),m=E(()=>n.value?.filter(r=>{const e=new Date(r.dateStart);if(r.dateEnd){const _=new Date(r.dateEnd);if(e<=p.value&&_>=p.value)return!0}return e.toDateString()===p.value.toDateString()})),s=()=>{const r=new Date(g.value.from.getFullYear(),g.value.from.getMonth()+1,
11),e=new Date(r.getFullYear(),r.getMonth(),2),_=new Date(r.getFullYear(),r.getMonth()+1,1);g.value={from:e,to:_}},v=()=>{const r=g.value.from,e=new Date(r.getFullYear(),r.getMonth()-1,2),_=new Date(e),y=new Date(e.getFullYear(),e.getMonth()+1,1);g.value={from:_,to:y}};return(r,e)=>{const _=rt,y=ae;return u(),b("div",it,[a("div",dt,[a("div",ut,[A(O(t(h))+" ",1),a("div",ct,[a("button",{class:"p-1 lg:p-1.5 hover:bg-surface-primary active:bg-surface-secondary rounded-minimal",onClick:v},[i(t(Y),{class:"w-5 h-5 text-secondary-on-surface"})]),a("button",{class:"p-1 lg:p-1.5 hover:bg-surface-primary active:bg-surface-secondary rounded-minimal",onClick:s},[i(t(Y),{class:"w-5 h-5 rotate-180 text-secondary-on-surface"})])])])]),i(_,{modelValue:t(p),"onUpdate:modelValue":e[0]||(e[0]=$=>T(p)?p.value=$:null),events:t(n)??[],month:t(g).from.getMonth(),year:t(g).from.getFullYear(),class:"max-w-2xl"},null,8,["modelValue","events","month","year"]),t(m).length?(u(),U(y,{key:0,events:t(m)},null,8,["events"])):(u(),b("div",mt," Keine Veranstaltungen an diesem Tag gefunden... "))])}}}),vt=Object.assign(pt,{__name:"EventCalendarViewOrganism"}),gt={class:"container"},ft={key:0,class:"max-md:flex max-md:justify-between max-md:items-end"},bt={class:"mt-4 sm:mt-6 lg:mt-8 flex flex-col gap-4"},ht={class:"flex justify-between max-lg:flex-col gap-2 lg:gap-3"},_t={class:"flex gap-2 lg:gap-3 max-md:flex-col"},yt=["href"],xt={class:"flex max-xl:flex-col gap-8 sm:gap-12 lg:gap-16 max-w-screen-lg"},wt={class:"grow"},rn=B({__name:"index",async setup(w){let c,x;const{isApp:l}=R(),{sendLinkMessage:f}=oe(l.value),{onMessage:g}=_e(),h=L(!1),p=L("list"),V=([c,x]=q(()=>$fetch("/api/events/ics",{method:"GET"})),c=await c,x(),c),d=E(()=>V.replace(/^https/,"webcal")),n=()=>{h.value=!0};g("open-event-add-new",()=>{h.value=!0});const m=()=>{p.value=p.value==="list"?"calendar":"list"};return ye({title:"Veranstaltungen | Bauernzeitung",description:"Finde Veranstaltungen in deiner Nähe",ogTitle:"Veranstaltungen | Bauernzeitung",ogDescription:"Finde Veranstaltungen in deiner Nähe"}),(s,v)=>{const r=je,e=et,_=vt;return u(),b(I,null,[i(r,{show:t(h),"onUpdate:show":v[0]||(v[0]=y=>T(h)?h.value=y:null)},null,8,["show"]),i(Se,{class:"pb-container pt-1"},{hero:N(()=>[a("div",gt,[t(l)?M("",!0):(u(),b("div",ft,[v[2]||(v[2]=a("h1",null," Veranstaltungen ",-1)),a("button",{class:"btn primary md:!hidden",onClick:n},[i(t(J),{class:"w-5 h-5"})])])),a("div",bt,[a("div",ht,[a("button",{class:"btn ghost",onClick:m},[i(t(we),{class:"w-5 h-5"}),t(p)==="list"?(u(),b(I,{key:0},[A(" Zur Kalenderansicht ")],64)):(u(),b(I,{key:1},[A(" Zur Listenansicht ")],64))]),a("div",_t,[a("a",{class:"btn secondary md:max-lg:grow",href:t(d),onClick:v[1]||(v[1]=y=>t(f)("webcal",t(d)))}," Kalender abonnieren ",8,yt),a("button",{class:"btn primary max-md:!hidden md:max-lg:grow",onClick:n},[i(t(J),{class:"w-5 h-5"}),v[3]||(v[3]=A(" Neue Veranstaltung ",-1))])])])])])]),content:N(()=>[a("div",xt,[a("div",wt,[t(p)==="list"?(u(),U(e,{key:0})):(u(),U(_,{key:1}))])])]),_:1})],64)}}});export{rn 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.