1import{_ as $}from"./nnerV5db.js";import{_ as N}from"./DbxfSdqF.js";import{_ as P}from"./CyElVONE.js";import{i as K}from"./BIFD3iOF.js";import{d as S,L as G,M as R,i as e,o as _,c as k,x as a,z as x,G as q,l as g,j as z,C as n,a as I,m as W}from"./CZ7uo5US.js";import{_ as J}from"./j6Tl2RN3.js";import"./CIhIxl_S.js";import"./CxnNVzFb.js";import"./DvXqye86.js";const Q={key:0,class:"container mbs calendar-event"},X=["innerHTML"],Y=["id"],Z={class:"modal-dialog modal-dialog-centered"},ee={class:"modal-content"},ae={class:"modal-header"},te={class:"modal-title"},ne={class:"modal-body"},oe=["data-bs-target"],le=["id"],de={class:"modal-content"},ie={class:"modal-header"},se={key:0,class:"modal-title"},ce={class:"modal-body"},me=["innerHTML"],re=["data-bs-target"],ue=S({__name:"MappedCalendar",props:{componentData:{}},setup(l){const o=l;let c=n(null),s=n(""),d=n("desktop"),b=n(""),E=n(""),f=n(""),D=n(""),y=n(null),v=n(null),h=n("");const w=n(null),H=n(null),T=n(null);G(()=>{window.addEventListener("resize",C),T.value.addEventListener("hidden.bs.modal",()=>{v.value=null,f.value="",D.value="",y.value=null,h.value=""})}),R(()=>{window.removeEventListener("resize",C)});const C=()=>{const t=d.value;window.innerWidth>=768&&(d.value="desktop",t!==d.value&&F()),window.innerWidth<768&&(d.value="mobile",t!==d.value&&L())},B=()=>{window.innerWidth>=768&&(d.value="desktop",F()),window.innerWidth<768&&(d.value="mobile",L())},F=()=>{c.value=o.componentData?.image||null,s.value=o.componentData?.image_map||"",M()},L=()=>{c.value=o.componentData?.image_mobile||null,s.value=o.componentData?.image_map_mobile||"",M()},M=()=>{const i=K(c.value).getImage("1600x0");
1i&&(s.value=s.value.replace("/path/to/image",i))},O=t=>{const m=new Date().getTime(),p=new Date(t.replace(/-/g,"/"));p.setHours(0);const r=p.getTime();m<r&&(b.value=o.componentData?.modal_headline_upcoming??"",E.value=o.componentData?.modal_text_upcoming??"",V()),m>r&&(b.value=o.componentData?.modal_headline_expired??"",E.value=o.componentData?.modal_text_expired??"",V())},U=t=>{t.preventDefault();const i=t.target,m=i.getAttribute("data-day-id"),p=i.getAttribute("data-end");let r=!0;m&&(o.componentData?.days&&Array.isArray(o.componentData?.days)&&o.componentData?.days.every(u=>m===u.day_id?(u.vms_data&&(v.value={vms_data:u.vms_data}),f.value=u.headline,D.value=u.text,y.value=u.image,h.value=u.day_id,j(),r=!1,!1):!0),r&&O(p))},j=()=>{H.value.click()},V=()=>{w.value.click()},A=()=>v.value?"modal-xl":"";return B(),M(),(t,i)=>{const m=$,p=N;return l.componentData&&e(s)&&e(c)?(_(),k("section",Q,[a("div",{ref:"imageMapElement",onClick:i[0]||(i[0]=r=>U(r)),innerHTML:e(s)},null,8,X),a("div",{id:"calendarEventModal"+l.componentData.index,class:"modal fade",tabindex:"-1"},[a("div",Z,[a("div",ee,[a("div",ae,[a("h5",te,x(e(b)),1)]),a("div",ne,x(e(E)),1)])])],8,Y),a("div",{ref_key:"modalTriggerFallbackElement",ref:w,"data-bs-toggle":"modal","data-bs-target":"#calendarEventModal"+l.componentData.index,class:"d-none"}," show layer ",8,oe),a("div",{id:"calendarEventModalDay"+l.componentData.index,ref_key:"modalDayElement",ref:T,class:"modal fade modal-with-content",tabindex:"-1"},[a("div",{class:q(["modal-dialog modal-dialog-centered",A()])},[a("div",de,[a("div",ie,[e(f)?(_(),k("h5",se,x(e(f)),1)):g("",!0)]),a("div",ce,[e(y)?(_(),z(m,{key:e(h),"component-data":e(y),"component-index":l.componentData.index,classes:"img-fluid",format:"1050x0"},null,8,["component-data","component-index"])):g("",!0),e(v)?(_(),z(p,{key:e(h),standalone:!0,"component-data":e(v)},null,8,["component-data"])):g("",!0),e(D)?(_(),k("div",{key:2,innerHTML:("getHtmlWithParsedUrls"in t?t.getHtmlWithParsedUrls:e(P))(e(D))},null,8,me)):g("",!0)])])],2)],8,le),a("div",{ref_key:"modalTriggerDayElement",ref:H,"data-bs-toggle":"modal","data-bs-target":"#calendarEventModalDay"+l.componentData.index,class:"d-none"}," show layer ",8,re)])):g("",!0)}}}),pe={key:0,class:"container mbs"},Ee=S({__name:"CalendarEventModule",props:{componentData:{}},setup(l){return(o,c)=>{const s=ue,d=J;return l.componentData?(_(),k("section",pe,[I(d,null,{fallback:W(()=>[...c[0]||(c[0]=[a("div",{class:"row justify-content-center pt-4"},[a("div",{class:"loader-module p-0"})],-1)])]),default:W(()=>[I(s,{"component-data":l.componentData},null,8,["component-data"])]),_:1})])):g("",!0)}}});export{Ee 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.