import{_ as A,I as V,r as f,o as d,b as o,p as l,n as T,u as O,v as u,q as _,l as g,F as p,e as D,af as te,k as M,a as F,M as se,R as z,w as N,G as J,C as K,B as X,N as ae,O as le,m as de,a6 as ce,i as re}from"./main-DtyiNRRn.js";import{F as Y}from"./FacetsMenuFi-Bipy54DJ.js";import{D as oe}from"./DateFacetFi-N1giyBiE.js";import{_ as Q}from"./dateMixin.vue_vue_type_script_lang-DOBw9JOo.js";import{_ as Z}from"./priceCurrencyMixin-CKEVFsHP.js";import{G as me}from"./GridColumnsFi-g3v7QeQd.js";import{T as ue}from"./TextExpanderFi-dj1MW4Gy.js";import ve from"./SectionDividerFi-DDwt5OTB.js";import"./FacetsSelectionFi-DKJ23T6j.js";import"./index-DMcXiZMh.js";const ge={name:"SeminarAssignmentEventFi",components:{IconFi:V},inject:["fields"],props:{event:{type:Object,default:null},idx:{type:Number,default:0}},data(){return{isOpen:!1}},methods:{eventStatus(e,n){return n===e?"full":100*n/e>25?"partly":"free"},eventStatusText(e){var n,i,s;return e==="full"?(n=this.fields.seminarStatusFull)==null?void 0:n.value:e==="partly"?(i=this.fields.seminarStatusPartly)==null?void 0:i.value:(s=this.fields.seminarStatusFree)==null?void 0:s.value},seminarDeadlineLabel(e){var n;return(n=this.fields.seminarDeadlineLabel)!=null&&n.value?this.fields.seminarDeadlineLabel.value.replace("{0}",`<span class="fi-semibold">${e.location.type==="onsite"?e.deadline:e.start.day}</span>`):null}}},_e={class:"status-label"},fe={class:"event-status__tooltip"},ke={key:0},he={class:"date"},Se={key:0,class:"date__info"},Fe={class:"seminar-assignment-event-fi__icon-value"},Ne={key:0,class:"seminar-assignment-event-fi__icon-value__value"},ye={class:"seminar-assignment-event-fi__icon-value"},pe={key:0,class:"seminar-assignment-event-fi__icon-value__value"},Ee={key:1,class:"seminar-assignment-event-fi__icon-value"},Ie={key:0,class:"seminar-assignment-event-fi__icon-value__value"},be=["innerHTML"],Le={class:"location"},Te={class:"seminar-assignment-event-fi__icon-value location__info"},De={class:"seminar-assignment-event-fi__icon-value__value"},we={class:"price-mobile"},xe={class:"seminar-assignment-event-fi__icon-value"},Ae={class:"seminar-assignment-event-fi__icon-value__value"},Pe={class:"price"},Ce={class:"seminar-assignment-event-fi__icon-value"},Oe={class:"seminar-assignment-event-fi__icon-value__value"},He={key:0,class:"toggle"},$e=["innerHTML"],Re={key:0,class:"seminar-assignment-event-fi__body"},Ve={class:"seminar-assignment-event-fi__body__content"},Me={class:"seminar-assignment-event-fi__details-container"},Ge={class:"status-label"},je={key:0},Be={key:0,class:"date"},qe={class:"date__info"},ze={class:"seminar-assignment-event-fi__icon-value"},Je={class:"seminar-assignment-event-fi__icon-value__value"},Qe={class:"seminar-assignment-event-fi__icon-value"},Ue={class:"seminar-assignment-event-fi__icon-value__value"},We={class:"location"},Ke={class:"seminar-assignment-event-fi__icon-value location__info"},Xe={class:"seminar-assignment-event-fi__icon-value__value"},Ye={class:"price"},Ze={class:"seminar-assignment-event-fi__icon-value"},en={class:"seminar-assignment-event-fi__icon-value__value"};function nn(e,n,i,s,a,t){var m;const c=f("icon-fi");return d(),o("div",{class:T({"seminar-assignment-event-fi":!0,"seminar-assignment-event-fi--open":a.isOpen,"seminar-assignment-event-fi--without-follow-events":!i.event.followEvents})},[l("div",{class:"seminar-assignment-event-fi__head seminar-assignment-event-fi__table",onClick:n[0]||(n[0]=r=>i.event.followEvents?a.isOpen=!a.isOpen:null)},[l("div",_e,[l("div",{class:T(["event-status",`event-status--${t.eventStatus(i.event.maxParticipants,i.event.actualParticipants)}`])},[l("div",fe,[l("div",{class:T(["event-status",`event-status--${t.eventStatus(i.event.maxParticipants,i.event.actualParticipants)}`])},null,2),O(" "+u(t.eventStatusText(t.eventStatus(i.event.maxParticipants,i.event.actualParticipants))),1)])],2),(m=t.fields.seminarCounterLabel)!=null&&m.value?(d(),o("span",ke,u(t.fields.seminarCounterLabel.value.replace("{0}",i.idx+1)),1)):_("",!0)]),l("div",he,[i.event.followEvents?(d(),o("div",Ee,[g(c,{icon:"calendar",class:"seminar-assignment-event-fi__icon-value__icon"}),i.event.followEvents[0].start.day?(d(),o("span",Ie,u(i.event.followEvents[0].start.day)+" - "+u(i.event.followEvents[i.event.followEvents.length-1].end.day),1)):_("",!0)])):(d(),o("div",Se,[l("div",Fe,[g(c,{icon:"calendar",class:"seminar-assignment-event-fi__icon-value__icon"}),i.event.start.day?(d(),o("span",Ne,u(i.event.start.day),1)):_("",!0)]),l("div",ye,[g(c,{icon:"clock",class:"seminar-assignment-event-fi__icon-value__icon"}),i.event.start.time&&i.event.end.time?(d(),o("span",pe,u(i.event.start.time)+" - "+u(i.event.end.time),1)):_("",!0)])])),t.seminarDeadlineLabel(i.event)?(d(),o("div",{key:2,class:"date__deadline",innerHTML:t.seminarDeadlineLabel(i.event)},null,8,be)):_("",!0)]),l("div",Le,[l("div",Te,[g(c,{icon:"map-pin",class:"seminar-assignment-event-fi__icon-value__icon"}),l("span",De,u(i.event.location.type==="onsite"?i.event.location.city:e.$dict.get("seminars.Location.Online")),1)]),l("div",we,[l("div",xe,[g(c,{icon:"money",class:"seminar-assignment-event-fi__icon-value__icon"}),l("span",Ae,u(i.event.price),1)])])]),l("div",Pe,[l("div",Ce,[g(c,{icon:"money",class:"seminar-assignment-event-fi__icon-value__icon"}),l("span",Oe,u(i.event.price),1)])]),i.event.followEvents?(d(),o("div",He,[g(c,{icon:"chevron-down",class:"toggle__icon"})])):_("",!0),t.seminarDeadlineLabel(i.event)?(d(),o("div",{key:1,class:"deadline-mobile",innerHTML:t.seminarDeadlineLabel(i.event)},null,8,$e)):_("",!0)]),i.event.followEvents?(d(),o("div",Re,[l("div",Ve,[l("div",Me,[(d(!0),o(p,null,D(i.event.followEvents,(r,v)=>{var k;return d(),o("div",{key:r.id,class:"seminar-assignment-event-fi__details seminar-assignment-event-fi__table"},[l("div",Ge,[v===0&&((k=t.fields.seminarDateLabel)!=null&&k.value)?(d(),o("span",je,u(t.fields.seminarDateLabel.value),1)):_("",!0)]),r.start?(d(),o("div",Be,[l("div",qe,[l("div",ze,[g(c,{icon:"calendar",class:"seminar-assignment-event-fi__icon-value__icon"}),l("span",Je,u(r.start.day),1)]),l("div",Qe,[g(c,{icon:"clock",class:"seminar-assignment-event-fi__icon-value__icon"}),l("span",Ue,u(r.start.time)+" - "+u(r.end.time),1)])])])):_("",!0),l("div",We,[l("div",Ke,[g(c,{icon:"map-pin",class:"seminar-assignment-event-fi__icon-value__icon"}),l("span",Xe,u(i.event.location.type==="onsite"?i.event.location.city:e.$dict.get("seminars.Location.Online")),1)])]),l("div",Ye,[l("div",Ze,[g(c,{icon:"money",class:"seminar-assignment-event-fi__icon-value__icon"}),l("span",en,u(i.event.price),1)])])])}),128))])])])):_("",!0)],2)}const tn=A(ge,[["render",nn],["__scopeId","data-v-94901714"]]),sn={name:"SeminarAssignmentInningFi",components:{IconFi:V},inject:["fields"],props:{inning:{type:Object,default:null},idx:{type:Number,default:0}},data(){return{isOpen:!1}},computed:{inningDeadlineLabel(){var e,n;return(e=this.fields.seminarDeadlineLabel)!=null&&e.value&&((n=this.inning)!=null&&n.deadline)?this.fields.seminarDeadlineLabel.value.replace("{0}",`<span class="fi-semibold">${this.inning.deadline}</span>`):""},inningStatus(){return this.inning.actualParticipants===this.inning.maxParticipants?"full":100*this.inning.actualParticipants/this.inning.maxParticipants>25?"partly":"free"},inningStatusText(){var e,n,i;return this.inningStatus==="full"?(e=this.fields.seminarStatusFull)==null?void 0:e.value:this.inningStatus==="partly"?(n=this.fields.seminarStatusPartly)==null?void 0:n.value:(i=this.fields.seminarStatusFree)==null?void 0:i.value}}},an={class:"status-label"},ln={class:"inning-status__tooltip"},dn={key:0},cn={class:"date"},rn={class:"seminar-assignment-inning-fi__icon-value"},on={key:0,class:"seminar-assignment-inning-fi__icon-value__value"},mn=["innerHTML"],un={class:"price"},vn={class:"seminar-assignment-inning-fi__icon-value"},gn={class:"seminar-assignment-inning-fi__icon-value__value"},_n={class:"toggle"},fn=["innerHTML"],kn={class:"seminar-assignment-inning-fi__body"},hn={class:"seminar-assignment-inning-fi__body__content"},Sn={class:"seminar-assignment-inning-fi__details__title"},Fn={key:0,class:"date"},Nn={class:"date__info"},yn={class:"seminar-assignment-inning-fi__icon-value"},pn={class:"seminar-assignment-inning-fi__icon-value__value"},En={class:"seminar-assignment-inning-fi__icon-value"},In={class:"seminar-assignment-inning-fi__icon-value__value"},bn={class:"location"},Ln={class:"seminar-assignment-inning-fi__icon-value location__info"},Tn={class:"seminar-assignment-inning-fi__icon-value__value"},Dn={key:1,class:"seminar-assignment-inning-fi__details seminar-assignment-inning-fi__table"},wn={key:0,class:"date"},xn={class:"date__info"},An={class:"seminar-assignment-inning-fi__icon-value"},Pn={class:"seminar-assignment-inning-fi__icon-value__value"},Cn={class:"seminar-assignment-inning-fi__icon-value"},On={class:"seminar-assignment-inning-fi__icon-value__value"},Hn={class:"location"},$n={class:"seminar-assignment-inning-fi__icon-value location__info"},Rn={class:"seminar-assignment-inning-fi__icon-value__value"};function Vn(e,n,i,s,a,t){var m;const c=f("icon-fi");return d(),o("div",{class:T({"seminar-assignment-inning-fi":!0,"seminar-assignment-inning-fi--open":a.isOpen})},[l("div",{class:"seminar-assignment-inning-fi__head seminar-assignment-inning-fi__table",onClick:n[0]||(n[0]=r=>a.isOpen=!a.isOpen)},[l("div",an,[l("div",{class:T(["inning-status",`inning-status--${t.inningStatus}`])},[l("div",ln,[l("div",{class:T(["inning-status",`inning-status--${t.inningStatus}`])},null,2),O(" "+u(t.inningStatusText),1)])],2),(m=t.fields.seminarCounterLabel)!=null&&m.value?(d(),o("span",dn,u(t.fields.inningCounterLabel.value.replace("{0}",i.idx+1)),1)):_("",!0)]),l("div",cn,[l("div",rn,[g(c,{icon:"calendar",class:"seminar-assignment-inning-fi__icon-value__icon"}),i.inning.start.day?(d(),o("span",on,u(i.inning.start.day)+" - "+u(i.inning.end.day),1)):_("",!0)]),t.inningDeadlineLabel?(d(),o("div",{key:0,class:"date__deadline",innerHTML:t.inningDeadlineLabel},null,8,mn)):_("",!0)]),l("div",un,[l("div",vn,[g(c,{icon:"money",class:"seminar-assignment-inning-fi__icon-value__icon"}),l("span",gn,u(i.inning.price),1)])]),l("div",_n,[g(c,{icon:"chevron-down",class:"toggle__icon"})]),t.inningDeadlineLabel?(d(),o("div",{key:0,class:"deadline-mobile",innerHTML:t.inningDeadlineLabel},null,8,fn)):_("",!0)]),l("div",kn,[l("div",hn,[(d(!0),o(p,null,D(i.inning.seminars,r=>(d(),o("div",{key:r.id,class:"seminar-assignment-inning-fi__details-container"},[l("div",Sn,u(r.title),1),(d(!0),o(p,null,D(r.events,v=>{var k;return d(),o(p,{key:v.id},[(k=v.followEvents)!=null&&k.length?(d(!0),o(p,{key:0},D(v.followEvents,h=>(d(),o("div",{key:h.id,class:"seminar-assignment-inning-fi__details seminar-assignment-inning-fi__table"},[h.start?(d(),o("div",Fn,[l("div",Nn,[l("div",yn,[g(c,{icon:"calendar",class:"seminar-assignment-inning-fi__icon-value__icon"}),l("span",pn,u(h.start.day),1)]),l("div",En,[g(c,{icon:"clock",class:"seminar-assignment-inning-fi__icon-value__icon"}),l("span",In,u(h.start.time)+" - "+u(h.end.time),1)])])])):_("",!0),l("div",bn,[l("div",Ln,[g(c,{icon:"map-pin",class:"seminar-assignment-inning-fi__icon-value__icon"}),l("span",Tn,u(v.location.type==="onsite"?v.location.city:e.$dict.get("seminars.Location.Online")),1)])])]))),128)):(d(),o("div",Dn,[v.start?(d(),o("div",wn,[l("div",xn,[l("div",An,[g(c,{icon:"calendar",class:"seminar-assignment-inning-fi__icon-value__icon"}),l("span",Pn,u(v.start.day),1)]),l("div",Cn,[g(c,{icon:"clock",class:"seminar-assignment-inning-fi__icon-value__icon"}),l("span",On,u(v.start.time)+" - "+u(v.end.time),1)])])])):_("",!0),l("div",Hn,[l("div",$n,[g(c,{icon:"map-pin",class:"seminar-assignment-inning-fi__icon-value__icon"}),l("span",Rn,u(v.location.type==="onsite"?v.location.city:e.$dict.get("seminars.Location.Online")),1)])])]))],64)}),128))]))),128))])])],2)}const Mn=A(sn,[["render",Vn],["__scopeId","data-v-76cf0871"]]),Gn={name:"SeminarFacetFi",components:{SelectFi:te,DateFacetFi:oe},mixins:[M,Q],props:{facet:{type:Object,required:!0},unselectedGroup:{type:Object,default:null},open:{type:Boolean},idx:{type:Number,default:null},registerDomElement:{type:Function,default:null},date:{type:[String,Object],default:null}},emits:["change","close","toggle-open"],data(){return{wrapperStyle:{},internalOpen:!1}},watch:{idx(e){this.registerElement(e)}},mounted(){this.registerElement(this.idx)},methods:{registerElement(e){e===0&&this.registerDomElement&&this.registerDomElement(this.$el)},onClose(){this.open&&this.onToggleOpen(),this.$emit("close")},onToggleOpen(){this.$emit("toggle-open")},onChange(...e){this.$emit("change",...e)}}},jn={class:"seminar-facet-fi"};function Bn(e,n,i,s,a,t){const c=f("date-facet-fi"),m=f("select-fi");return d(),o("div",jn,[i.facet.type==="date"?(d(),F(c,{key:0,"input-name":"seminar-events",date:i.date,label:i.facet.name,onChange:t.onChange},null,8,["date","label","onChange"])):(d(),F(m,{key:1,elements:i.facet.elements,name:i.facet.name,multiselect:i.facet.multiselect,open:i.open,large:"",onChange:t.onChange,onToggleOpen:n[0]||(n[0]=r=>t.onToggleOpen(i.facet)),onClose:n[1]||(n[1]=r=>t.onClose(i.facet))},null,8,["elements","name","multiselect","open","onChange"]))])}const qn=A(Gn,[["render",Bn],["__scopeId","data-v-2af9579b"]]),zn={name:"SeminarInfoDialogFi",components:{DialogModalFi:se,RichtextFi:z},inject:["fields"],methods:{open(){this.$refs.modal.open()}}},Jn={key:0,class:"seminar-info-dialog-fi__headline"},Qn={key:0,class:"seminar-info-dialog-fi__text"};function Un(e,n,i,s,a,t){const c=f("richtext-fi"),m=f("dialog-modal-fi");return d(),F(m,{ref:"modal",class:"seminar-info-dialog-fi",lazy:""},{header:N(()=>{var r;return[(r=t.fields.infoDialogHeadline)!=null&&r.value?(d(),o("h2",Jn,u(t.fields.infoDialogHeadline.value),1)):_("",!0)]}),body:N(()=>{var r;return[(r=t.fields.infoDialogText)!=null&&r.value?(d(),o("div",Qn,[g(c,{"html-content":t.fields.infoDialogText},null,8,["html-content"])])):_("",!0)]}),_:1},512)}const Wn=A(zn,[["render",Un],["__scopeId","data-v-d37268f4"]]),Kn={name:"SeminarAssignmentsFi",components:{GridContainerFi:J,CloudImageFi:K,IconFi:V,FacetsMenuFi:Y,SeminarFacetFi:qn,RichtextFi:z,SeminarInfoDialogFi:Wn,SeminarAssignmentEventFi:tn,SeminarAssignmentInningFi:Mn},mixins:[Q,M,Z],inject:["fields"],props:{lmsData:{type:Object,default:null},scrollTo:{type:String,default:null}},data(){return{assignments:null,filteredAssignments:null,assignmentFacets:null,activeFilters:[],date:null,dateFacet:{type:"date",name:"",elements:[{type:"date",date:null,selected:!1}]}}},computed:{activeAssignments(){return this.filteredAssignments?this.filteredAssignments:this.assignments}},watch:{lmsData:{handler(e,n){e!==n&&this.setAssignments()},immediate:!0},momentLoaded(){this.setAssignments()}},mounted(){var e,n;this.dateFacet.name=this.$dict.get("global-Labels.Date-Range"),this.scrollTo&&((e=this.$refs)!=null&&e[this.scrollTo])&&((n=this.activeAssignments)!=null&&n.length)&&setTimeout(()=>{this.$smoothScroll({scrollTo:this.$refs[this.scrollTo][0],duration:0,updateHistory:!1,offset:-50})},100)},methods:{setAssignments(){var n,i;const e=[];(((i=(n=this.lmsData)==null?void 0:n.assignments)==null?void 0:i.assignment)||[]).forEach(s=>{var w,b,x;const a=s.assignment.assignmentId[0].id,t=`/lms/${a}`,c=((w=s.picture)==null?void 0:w.href)&&this.getProxySrc(s.picture.href),m=(b=s.classifications)==null?void 0:b.classification,r=((x=m==null?void 0:m.find(P=>P.keyId===6))==null?void 0:x.value)||null,{title:v,teaser:k}=s,h={assignmentId:a,title:v,teaser:k,link:t,image:c,classifications:m,targetGroup:r};let y=[],I=[];s.innings.inning.length?y=this.getAssignmentInnings(s.innings.inning):I=this.getAssignmentEvents(a),(y.length||I.length)&&e.push({...h,events:I,innings:y})}),this.assignments=e,this.setFacets()},getAssignmentEvents(e){const n=this.lmsData.events.event.filter(s=>s.assignment.eventAssignmentId[0].id===e),i=[];return n.length&&n.forEach(s=>{i.push(this.getEventData(s))}),i},getAssignmentInnings(e){return e.map(i=>{const{name:s,startDate:a,endDate:t,maxParticipants:c,registeredParticipants:m,seminarEvents:r}=i,v=this.getInningPriceString(i),{start:k,end:h,deadline:y}=this.getEventDate(new Date(a).getTime(),new Date(t).getTime());let I=null;if(r.id){const w=r.id.map(b=>b.inningSeminarEventId[0].id);I=this.getInningSeminars(w)}return{id:i.inningID.id[0].inningId[0].id,name:s,start:k,end:h,deadline:y,price:v,maxParticipants:c,actualParticipants:m,seminars:I}}).sort((i,s)=>{let a=new Date(i.start.dateTimeLong),t=new Date(s.start.dateTimeLong);return a-t})},setFacets(){const e=[this.dateFacet];this.assignments.forEach((n,i)=>{const{assignmentId:s}=n;n.classifications&&n.classifications.forEach((a,t)=>{const{key:c,value:m}=a,r=e.findIndex(v=>v.name===c);if(e.length&&r>-1){const v=e[r],k=v.elements.findIndex(h=>h.name===m);k>-1?(v.elements[k].assignmentIds.push(s),v.elements[k].count+=1):e[r].elements.push({facetId:+`${i}${t}`,assignmentIds:[s],name:a.value,selected:!1,count:1})}else e.push({multiselect:!0,name:a.key,elements:[{facetId:+`${i}${t}`,assignmentIds:[s],name:a.value,count:1,selected:!1}]})})}),this.assignmentFacets=JSON.parse(JSON.stringify(e))},facetChanged(e){if(e)if(e.element.date)this.date=e.value?e.element.date:null;else if(e.value)this.activeFilters.push(e.element);else{const n=this.activeFilters.indexOf(e.element);this.activeFilters.splice(n,1)}this.filterAssignments()},filterAssignments(){const e=[];this.assignments.forEach(n=>{let i=!0;if(this.activeFilters.forEach(s=>{let a=!1;s.assignmentIds.forEach(t=>{t===n.assignmentId&&(a=!0)}),a||(i=!1)}),i)if(this.date){const s=new Date(this.date.start).setHours(0,0,0,0),a=new Date(this.date.end).setHours(0,0,0,0),t=[];n.events.forEach(c=>{const m=new Date(Number(c.start.dateTimeLong)).setHours(0,0,0,0);let r=new Date(Number(c.end.dateTimeLong)).setHours(0,0,0,0);c.followEvents&&(r=new Date(Number(c.followEvents[c.followEvents.length-1].end.dateTimeLong)).setHours(0,0,0,0)),this.date.start&&this.date.end?s<=m&&a>=r&&t.push(c):s<=m&&t.push(c)}),t.length&&e.push({...n,events:t})}else e.push(n)}),this.filteredAssignments=e,this.updateFacets()},updateFacets(){this.assignmentFacets.forEach(e=>{if(e.type==="date")if(this.date){const n=this.getEventDate(this.date.start,this.date.end),i=n.end.day?`${n.start.day} - ${n.end.day}`:`${n.start.day}`;e.elements[0].date=n,e.elements[0].name=i,e.elements[0].selected=!0}else e.elements[0].date=null,e.elements[0].selected=!1;else e.elements.forEach(n=>{let i=0;this.filteredAssignments.forEach(s=>{n.assignmentIds.forEach(a=>{a===s.assignmentId&&(i+=1)})}),n.selected=this.activeFilters.indexOf(n)>=0,n.count=i,n.disabled=i===0})})},clearAllFacets(){this.filteredAssignments=null,this.date=null,this.activeFilters=[],this.setFacets()},getInningSeminars(e){const n=[];return e.forEach(i=>{const s=this.lmsData.events.event.filter(a=>a.event.eventId[0].id===i);if(s.length){const a=[],{title:t}=this.lmsData.seminars.seminar.find(c=>c.seminar.seminarId[0].id===s[0].seminar.eventSeminarId[0].id);s.forEach(c=>{a.push(this.getEventData(c))}),n.push({title:t,events:a})}}),n},getEventData(e){const n=this.getEventLocation(e),{start:i,end:s,deadline:a}=this.getEventDate(Number(e.start.dateTimeLong),Number(e.end.dateTimeLong)),t=this.getEventPriceString(e),c=this.getFollowEvents(e),{maxParticipants:m,actualParticipants:r}=e;return{id:e.event.eventId[0].id,assignmentId:e.assignment.eventAssignmentId[0].id,seminarId:e.seminar.eventSeminarId[0].id,location:n,start:i,end:s,deadline:a,price:t,followEvents:c,maxParticipants:m,actualParticipants:r}},getEventLocation(e){var i,s;const n=(s=(i=e.location.placeLink[0])==null?void 0:i.location)==null?void 0:s.addressInformation;if(n){const{street:a,city:t,postcode:c,region:m}=n;return{type:"onsite",street:a,city:t,postcode:c,region:m}}return{type:"online"}},getEventDate(e,n){const i=this.formatTime(e),s=this.formatTime(n),a=this.formatDate(e),t=this.formatDate(n),c=new Date(e);return c.setDate(c.getDate()-7),{start:{dateTimeLong:e,day:a,time:i},end:{dateTimeLong:n,day:t,time:s},deadline:this.formatDate(c)}},getInningPriceString(e){var s;const{price:n,currency:i}=e;return n&&n!==0?this.formatPrice(n,i):(s=this.fields.freeOfChargeLabel)==null?void 0:s.value},getEventPriceString(e){var s,a,t;const{price:n,currency:i}=((a=(s=e.prices)==null?void 0:s.price)==null?void 0:a[0])||{};return n&&n!==0?this.formatPrice(n,i):(t=this.fields.freeOfChargeLabel)==null?void 0:t.value},getFollowEventDate(e,n){const i=this.formatTime(e),s=this.formatTime(n),a=this.formatDate(e);return{start:{dateTimeLong:e,day:a,time:i},end:{dateTimeLong:n,day:a,time:s}}},getFollowEvents(e){var n;if((n=e.followEvents)!=null&&n.followEvent){const i=this.getFollowEventDate(Number(e.start.dateTimeLong),Number(e.end.dateTimeLong));if(e.followEvents.followEvent){const s=[{...i,id:e.event.eventId[0].id,price:this.getEventPriceString(e.followEvents.followEvent[0]),location:this.getEventLocation(e.followEvents.followEvent[0])}];return e.followEvents.followEvent.forEach(a=>{const t=this.getFollowEventDate(Number(a.start.dateTimeLong),Number(a.end.dateTimeLong));s.push({...t,id:a.event.followEventId[0].id,price:this.getEventPriceString(a),location:this.getEventLocation(a)})}),s}}return null},dateChanged(e){this.date=e,this.facetChanged()},getProxySrc(e){return e?e.replace("https://fischeracademy.com/api/v1/media","_lms-media-prod_"):null},toggleEvent(e){this.openEvents.includes(e)?this.openEvents=this.openEvents.filter(n=>n!==e):this.openEvents.push(e)},eventStatus(e,n){return n===e?"full":100*n/e>25?"partly":"free"},eventStatusText(e){var n,i,s;return e==="full"?(n=this.fields.seminarStatusFull)==null?void 0:n.value:e==="partly"?(i=this.fields.seminarStatusPartly)==null?void 0:i.value:(s=this.fields.seminarStatusFree)==null?void 0:s.value},showInfoDialog(){this.$refs.seminarInfoDialog.open()}}},Xn={class:"seminar-assignments-fi"},Yn={class:"fi-col-span-full"},Zn={class:"seminar-assignments-fi__facets"},ei={key:1},ni={class:"seminar-assignments-fi__assignment__info"},ii={key:1,class:"seminar-assignments-fi__assignment__target-group"},ti=["data-seminar-id"],si={key:2,class:"seminar-assignments-fi__assignment__teaser"},ai={class:"seminar-assignments-fi__assignment__text"},li={class:"seminar-assignments-fi__assignment__data"},di={class:"seminar-assignments-fi__assignment__image"},ci={class:"seminar-assignments-fi__assignment__events"},ri={class:"seminar-assignments-fi__assignment__innings"},oi={class:"seminar-assignments-fi__no-results"};function mi(e,n,i,s,a,t){var x,P;const c=f("seminar-facet-fi"),m=f("facets-menu-fi"),r=f("grid-container-fi"),v=f("icon-fi"),k=f("richtext-fi"),h=f("button-fi"),y=f("cloud-image-fi"),I=f("seminar-assignment-event-fi"),w=f("seminar-assignment-inning-fi"),b=f("seminar-info-dialog-fi");return d(),o("div",Xn,[a.assignmentFacets&&i.lmsData&&!e.isEditMode?(d(),F(r,{key:0},{default:N(()=>[l("div",Yn,[l("div",Zn,[g(m,{facets:a.assignmentFacets,"show-clear-all":!!a.date,"custom-facet":"",onChange:t.facetChanged,onClearAllFacets:t.clearAllFacets},{facets:N(({facet:S,open:C,change:L,close:E,toggleOpen:H,idx:ee,registerDomElement:ne})=>[g(c,{date:a.date,facet:S,open:C,idx:ee,"register-dom-element":ne,onChange:L,onToggleOpen:ie=>H(S),onClose:ie=>E(S)},null,8,["date","facet","open","idx","register-dom-element","onChange","onToggleOpen","onClose"])]),_:1},8,["facets","show-clear-all","onChange","onClearAllFacets"])])])]),_:1})):_("",!0),(x=t.activeAssignments)!=null&&x.length&&!e.isEditMode?(d(),o("div",ei,[(d(!0),o(p,null,D(t.activeAssignments,(S,C)=>(d(),o("div",{ref_for:!0,ref:S.assignmentId,key:S.assignmentId,class:T({"seminar-assignments-fi__assignment":!0,"seminar-assignments-fi__assignment--rtl":!(C%2)})},[g(r,null,{default:N(()=>{var L;return[l("div",ni,[(L=t.fields.infoDialogText)!=null&&L.value?(d(),o("div",{key:0,class:"seminar-assignments-fi__assignment__info__btn",onClick:n[0]||(n[0]=(...E)=>t.showInfoDialog&&t.showInfoDialog(...E))},[g(v,{icon:"info"})])):_("",!0),S.targetGroup?(d(),o("div",ii,u(S.targetGroup),1)):_("",!0),l("h3",{class:"seminar-assignments-fi__assignment__title","data-seminar-id":S.assignmentId},u(S.title),9,ti),S.teaser?(d(),o("div",si,[g(k,{"html-content":{value:S.teaser}},null,8,["html-content"])])):_("",!0),g(h,{class:"button-fi__tertiary",href:S.link,target:"_blank",rel:"opener","natural-events":"","data-test":"subscribe-seminar"},{default:N(()=>{var E;return[O(u((E=t.fields.seminarButtonText)==null?void 0:E.value),1)]}),_:2},1032,["href"]),l("div",ai,[t.fields.customText?(d(),F(k,{key:0,"html-content":t.fields.customText},null,8,["html-content"])):_("",!0)])]),l("div",li,[l("div",di,[S.image?(d(),F(y,{key:0,class:"seminar-assignments-fi__assignment__img",src:S.image,params:"aspect_ratio=16:9&org_if_sml=0"},null,8,["src"])):_("",!0)]),l("div",ci,[(d(!0),o(p,null,D(S.events,(E,H)=>(d(),F(I,{key:E.id,event:E,idx:H},null,8,["event","idx"]))),128))]),l("div",ri,[(d(!0),o(p,null,D(S.innings,(E,H)=>(d(),F(w,{key:E.id,inning:E,idx:H},null,8,["inning","idx"]))),128))])])]}),_:2},1024)],2))),128))])):(d(),F(r,{key:2},{default:N(()=>{var S;return[l("div",oi,[(S=t.fields)!=null&&S.noResultsSeminar?(d(),F(k,{key:0,"html-content":t.fields.noResultsSeminar},null,8,["html-content"])):_("",!0)])]}),_:1})),(P=t.fields.infoDialogText)!=null&&P.value?(d(),F(b,{key:3,ref:"seminarInfoDialog"},null,512)):_("",!0)])}const ui=A(Kn,[["render",mi],["__scopeId","data-v-adba01a4"]]);var G={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getELearningPrice"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"assignmentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getELearningPrice"},arguments:[{kind:"Argument",name:{kind:"Name",value:"assignmentId"},value:{kind:"Variable",name:{kind:"Name",value:"assignmentId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"salesPrice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"feeElearning"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:175}};G.loc.source={body:`query getELearningPrice(
  $assignmentId: String!
) {
  getELearningPrice(
    assignmentId: $assignmentId
  ) {
    salesPrice {
      feeElearning
      currency
    }
  }
}`,name:"GraphQL request",locationOffset:{line:1,column:1}};function $(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(s){$(s,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(s){$(s,n)}),e.definitions&&e.definitions.forEach(function(s){$(s,n)})}var B={};(function(){G.definitions.forEach(function(n){if(n.name){var i=new Set;$(n,i),B[n.name.value]=i}})})();function U(e,n){for(var i=0;i<e.definitions.length;i++){var s=e.definitions[i];if(s.name&&s.name.value==n)return s}}function vi(e,n){var i={kind:e.kind,definitions:[U(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var s=B[n]||new Set,a=new Set,t=new Set;for(s.forEach(function(m){t.add(m)});t.size>0;){var c=t;t=new Set,c.forEach(function(m){if(!a.has(m)){a.add(m);var r=B[m]||new Set;r.forEach(function(v){t.add(v)})}})}return a.forEach(function(m){var r=U(e,m);r&&i.definitions.push(r)}),i}vi(G,"getELearningPrice");const gi={name:"SeminarElearningFi",components:{GridContainerFi:J,GridColumnsFi:me,CloudImageFi:K,SectionDividerFi:ve,TextExpanderFi:ue,IconFi:V,LoadingIndicator:X},mixins:[M,Z],inject:["fields"],props:{event:{type:Object,default:()=>({})},dark:{type:Boolean,default:!0}},data(){return{eventPrice:null,eventPriceLoading:!0}},methods:{async onIntersect(){var e;try{const{data:{getELearningPrice:n}}=await this.$apollo.query({query:G,fetchPolicy:"no-cache",variables:{assignmentId:this.event.assignmentId}});n!=null&&n.salesPrice?n.salesPrice.feeElearning>0?this.eventPrice=this.formatPrice(n.salesPrice.feeElearning,n.salesPrice.currency||"EUR"):this.eventPrice=(e=this.fields.freeOfChargeLabel)==null?void 0:e.value:this.eventPrice=null,this.eventPriceLoading=!1}catch(n){this.eventPriceLoading=!1,console.error(n)}}}},_i={class:"fi-col-start-1 fi-col-end-13 lg:fi-col-start-2 lg:fi-col-end-12"},fi={class:"seminar-elearning-fi__image fi-col-start-1 fi-col-end-13 md:fi-col-end-7 lg:fi-col-start-1 lg:fi-col-end-6"},ki={class:"seminar-elearning-fi__content fi-col-start-1 fi-col-end-13 md:fi-col-start-8 lg:fi-col-start-7 lg:fi-col-end-11"},hi={class:"seminar-elearning-fi__info"},Si={key:0,class:"seminar-elearning-fi__info-data date"},Fi={class:"seminar-elearning-fi__info__text"},Ni={class:"seminar-elearning-fi__info-data location"},yi={class:"seminar-elearning-fi__info__text"},pi={key:0,class:"seminar-elearning-fi__info-data time"},Ei={class:"seminar-elearning-fi__info__text"},Ii={key:2,class:"seminar-elearning-fi__info-data time time-follow-events"},bi={class:"seminar-elearning-fi__info__follow-events"},Li={class:"seminar-elearning-fi__info-data price"},Ti={key:1,class:"seminar-elearning-fi__info__text"},Di=["data-event-id"],wi={key:0,class:"seminar-elearning-fi__teaser"};function xi(e,n,i,s,a,t){const c=f("section-divider-fi"),m=f("cloud-image-fi"),r=f("icon-fi"),v=f("loading-indicator"),k=f("text-expander-fi"),h=f("button-fi"),y=f("grid-columns-fi"),I=f("grid-container-fi"),w=ae("intersect");return le((d(),o("div",{class:T({"seminar-elearning-fi":!0,"seminar-elearning-fi--rtl":i.dark})},[g(c,{size:"small",dark:i.dark},null,8,["dark"]),g(I,null,{default:N(()=>[l("div",_i,[g(y,{columns:e.isLG?10:12},{default:N(()=>{var b,x,P,S,C;return[l("div",fi,[i.event.image?(d(),F(m,{key:0,class:"seminar-elearning-fi__img",src:i.event.image},null,8,["src"])):_("",!0)]),l("div",ki,[l("div",hi,[i.event.start?(d(),o("div",Si,[g(r,{icon:"calendar"}),l("span",Fi,[i.event.followEvents?(d(),o(p,{key:1},[O(u(i.event.followEvents[0].start.dayShort)+" - "+u(i.event.followEvents[i.event.followEvents.length-1].end.day),1)],64)):(d(),o(p,{key:0},[O(u(i.event.start.day),1)],64))])])):_("",!0),l("div",Ni,[g(r,{icon:"map-pin"}),l("span",yi,u(i.event.location.type==="onsite"?i.event.location.city:e.$dict.get("seminars.Location.Online")),1)]),i.event.followEvents?(d(),o("div",Ii,[g(r,{icon:"clock"}),l("div",bi,[(d(!0),o(p,null,D(i.event.followEvents,L=>(d(),o("span",{key:L.id,class:"seminar-elearning-fi__info__text"},u(L.start.dayShort)+" | "+u(L.start.time)+" - "+u(L.end.time),1))),128))])])):(d(),o(p,{key:1},[i.event.start?(d(),o("div",pi,[g(r,{icon:"clock"}),l("span",Ei,u(i.event.start.time)+" - "+u(i.event.end.time),1)])):_("",!0)],64)),l("div",Li,[g(r,{icon:"euro"}),a.eventPriceLoading?(d(),F(v,{key:0,transparent:"",variant:"spinnerLocal",spinoff:"in-relative-centered",class:"seminar-elearning-fi__info-data__loading-wrapper"})):(d(),o("span",Ti,u(a.eventPrice),1))])]),l("h3",{class:"seminar-elearning-fi__title","data-event-id":i.event.eventId},u(i.event.title),9,Di),i.event.teaser?(d(),o("div",wi,[g(k,{content:{value:i.event.teaser},"max-height":170,"expand-text":(x=(b=t.fields)==null?void 0:b.expandLabel)==null?void 0:x.value,"reduce-text":(S=(P=t.fields)==null?void 0:P.reduceLabel)==null?void 0:S.value},null,8,["content","expand-text","reduce-text"])])):_("",!0),(C=t.fields.eLearningButtonText)!=null&&C.value?(d(),F(h,{key:1,class:T({"button-fi__tertiary button-fi__xs-streched":!0}),href:`/lms/${i.event.assignmentId}`,target:"_blank",rel:"opener","natural-events":""},{default:N(()=>[O(u(t.fields.eLearningButtonText.value),1)]),_:1},8,["href"])):_("",!0)])]}),_:1},8,["columns"])])]),_:1}),g(c,{size:"small",dark:i.dark},null,8,["dark"])],2)),[[w,t.onIntersect,void 0,{once:!0}]])}const Ai=A(gi,[["render",xi],["__scopeId","data-v-45d2408f"]]),Pi={name:"SeminarElearningsFi",components:{GridContainerFi:J,SeminarElearningFi:Ai,FacetsMenuFi:Y,RichtextFi:z},inject:["fields"],props:{lmsData:{type:Object,default:null},scrollTo:{type:String,default:null}},data(){return{events:null,activeFilters:[],filteredEvents:null,eventFacets:null}},computed:{...de({headerHeight:"layout/getHeaderHeight"}),eventsFiltered(){return this.filteredEvents?this.filteredEvents:this.events}},watch:{lmsData:{handler(e,n){e!==n&&this.setEvents()},immediate:!0}},mounted(){var e,n;this.scrollTo&&((e=this.$refs)!=null&&e[this.scrollTo])&&((n=this.eventsFiltered)!=null&&n.length)&&setTimeout(()=>{this.$smoothScroll({scrollTo:this.$refs[this.scrollTo][0],duration:0,updateHistory:!1,offset:-this.headerHeight})},100)},methods:{setEvents(){const e=[];this.lmsData&&this.lmsData.assignments.assignment.forEach(n=>{var k,h,y;const i=n.assignment.assignmentId[0].id,{title:s,teaser:a}=n,t=(k=n.deeplink)==null?void 0:k.href,c=((h=n.picture)==null?void 0:h.href)&&this.getProxySrc(n.picture.href),m=(y=n.classifications)==null?void 0:y.classification,v={eventId:i,assignmentId:i,location:{type:"online"},title:s,teaser:a,link:t,image:c,classifications:m};e.push(v)}),this.events=e,this.setFacets()},setFacets(){const e=[];this.events.forEach((n,i)=>{const{eventId:s}=n;n.classifications&&n.classifications.forEach((a,t)=>{const{key:c,value:m}=a,r=e.findIndex(v=>v.name===c);if(e.length&&r>-1){const v=e[r],k=v.elements.findIndex(h=>h.name===m);k>-1?(v.elements[k].eventIds.push(s),v.elements[k].count+=1):e[r].elements.push({facetId:+`${i}${t}`,eventIds:[s],name:a.value,selected:!1,count:1})}else e.push({multiselect:!0,name:a.key,elements:[{facetId:+`${i}${t}`,eventIds:[s],name:a.value,count:1,selected:!1}]})})}),this.eventFacets=JSON.parse(JSON.stringify(e))},facetChanged(e){if(e)if(e.value)this.activeFilters.push(e.element);else{const n=this.activeFilters.indexOf(e.element);this.activeFilters.splice(n,1)}this.filterEvents()},filterEvents(){const e=[];this.events.forEach(n=>{let i=!0;if(this.activeFilters.forEach(s=>{let a=!1;s.eventIds.forEach(t=>{t===n.eventId&&(a=!0)}),a||(i=!1)}),i)if(this.date){const s=new Date(this.date.start).setHours(0,0,0,0),a=new Date(this.date.end).setHours(0,0,0,0),t=new Date(Number(n.start.dateTimeLong)).setHours(0,0,0,0);let c=new Date(Number(n.end.dateTimeLong)).setHours(0,0,0,0);n.followEvents&&(c=new Date(Number(n.followEvents[n.followEvents.length-1].end.dateTimeLong)).setHours(0,0,0,0)),this.date.start&&this.date.end?s<=t&&a>=c&&e.push(n):s<=t&&e.push(n)}else e.push(n)}),this.filteredEvents=e,this.updateFacets()},updateFacets(){this.eventFacets.forEach(e=>{e.elements.forEach(n=>{let i=0;this.filteredEvents.forEach(s=>{n.eventIds.forEach(a=>{a===s.eventId&&(i+=1)})}),n.selected=this.activeFilters.indexOf(n)>=0,n.count=i,n.disabled=i===0})})},clearAllFacets(){this.filteredEvents=null,this.activeFilters=[],this.setFacets()},getProxySrc(e){return e?e.replace("https://fischeracademy.com/api/v1/media","_lms-media-prod_"):null}}},Ci={class:"seminar-elearnings-fi"},Oi={class:"fi-col-span-full"},Hi={class:"seminar-elearnings-fi__facets"},$i={class:"seminar-assignments-fi__no-results"};function Ri(e,n,i,s,a,t){var k;const c=f("facets-menu-fi"),m=f("grid-container-fi"),r=f("seminar-elearning-fi"),v=f("richtext-fi");return d(),o("div",Ci,[a.eventFacets&&i.lmsData&&!e.isEditMode?(d(),F(m,{key:0},{default:N(()=>[l("div",Oi,[l("div",Hi,[g(c,{centered:"",facets:a.eventFacets,"columns-max":4,onChange:t.facetChanged,onClearAllFacets:t.clearAllFacets},null,8,["facets","onChange","onClearAllFacets"])])])]),_:1})):_("",!0),(k=t.eventsFiltered)!=null&&k.length&&!e.isEditMode?(d(!0),o(p,{key:1},D(t.eventsFiltered,(h,y)=>(d(),o("div",{key:h.eventId,ref_for:!0,ref:h.eventId,class:"seminar-elearnings-fi__event"},[g(r,{event:h,dark:!(y%2)},null,8,["event","dark"])]))),128)):(d(),F(m,{key:2},{default:N(()=>{var h;return[l("div",$i,[(h=t.fields)!=null&&h.noResultsElearning?(d(),F(v,{key:0,"html-content":t.fields.noResultsElearning},null,8,["html-content"])):_("",!0)])]}),_:1}))])}const Vi=A(Pi,[["render",Ri],["__scopeId","data-v-36fadde4"]]);var j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAssignmentAndEvents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"eventLanguage"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAssignmentAndEvents"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}},{kind:"Argument",name:{kind:"Name",value:"eventLanguage"},value:{kind:"Variable",name:{kind:"Name",value:"eventLanguage"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"seminars"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"events"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"event"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"event"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"eventId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"eventGroup"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"seminar"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"eventSeminarId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"assignment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"eventAssignmentId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"location"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"placeId"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"roomId"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"placeLink"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"location"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addressInformation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"region"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"start"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dateTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dateTimeLong"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"end"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dateTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dateTimeLong"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"prices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"maxParticipants"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"actualParticipants"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"followEvents"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"followEvent"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"event"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"followEventId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"start"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dateTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dateTimeLong"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"end"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dateTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dateTimeLong"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"location"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"placeId"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"roomId"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"placeLink"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"location"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addressInformation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"region"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"assignments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assignment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assignment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"assignmentId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"teaser"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"picture"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"deeplink"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"classifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"classification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"keyId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"innings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"inning"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"inningID"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"inningId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"seminars"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"inningSeminarId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"seminarEvents"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"inningSeminarEventId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maxParticipants"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"registeredParticipants"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"seminars"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"seminar"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"seminar"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"seminarId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"teaser"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"eLearnings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"events"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"event"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"event"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"eventId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"eventGroup"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"seminar"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"eventSeminarId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"assignment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"eventAssignmentId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"location"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"placeId"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"roomId"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"placeLink"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"location"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addressInformation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postcode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"region"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"start"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dateTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dateTimeLong"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"end"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dateTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dateTimeLong"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"assignments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assignment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assignment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"assignmentId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"teaser"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"picture"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"deeplink"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"classifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"classification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"keyId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"seminars"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"seminar"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"seminar"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"seminarId"},name:{kind:"Name",value:"id"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"teaser"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:5354}};j.loc.source={body:`query getAssignmentAndEvents(
  $userId: String!
  $language: String!
  $eventLanguage: String!
) {
  getAssignmentAndEvents(
    userId: $userId
    language: $language
    eventLanguage: $eventLanguage
  ) {
    seminars {
      events {
        event {
          event {
            eventId: id {
              id
            }
          }
          eventGroup
          seminar {
            eventSeminarId: id {
              id
            }
          }
          assignment {
            eventAssignmentId: id {
              id
            }
          }
          location {
            placeId {
              id {
                id
              }
            }
            roomId {
              id {
                id
              }
            }
            placeLink {
              href,
              location {
                addressInformation {
                  street
                  postcode
                  city
                  country
                  region
                }
              }
            }
          }
          start {
            dateTime
            dateTimeLong
          }
          end {
            dateTime
            dateTimeLong
          }
          prices {
            price {
              price
              currency
            }
          }
          maxParticipants
          actualParticipants
          followEvents {
            followEvent {
              event {
                followEventId: id {
                  id
                }
              }
              start {
                dateTime
                dateTimeLong
              }
              end {
                dateTime
                dateTimeLong
              }
              location {
                placeId {
                  id {
                    id
                  }
                }
                roomId {
                  id {
                    id
                  }
                }
                placeLink {
                  href,
                  location {
                    addressInformation {
                      street
                      postcode
                      city
                      country
                      region
                    }
                  }
                }
              }
            }
          }
        }
      }
      assignments {
        assignment {
          assignment {
            assignmentId: id {
              id
            }
          }
          title
          teaser
          state
          picture {
            href
          }
          deeplink {
            href
          }
          classifications {
            classification {
              keyId
              key
              value
            }
          }
          innings {
            inning {
              inningID {
                id {
                  inningId: id {
                    id
                  }
                }
              }
              seminars {
                id {
                  inningSeminarId: id {
                    id
                  }
                }
              }
              seminarEvents {
                id {
                  inningSeminarEventId: id {
                    id
                  }
                }
              }
              name
              startDate
              endDate
              maxParticipants
              registeredParticipants
              price
              currency
            }
          }
        }
      }
      seminars {
        seminar {
          seminar {
            seminarId: id {
              id
            }
          }
          title
          teaser
        }
      }
    }
    eLearnings {
      events {
        event {
          event {
            eventId: id {
              id
            }
          }
          eventGroup
          seminar {
            eventSeminarId: id {
              id
            }
          }
          assignment {
            eventAssignmentId: id {
              id
            }
          }
          location {
            placeId {
              id {
                id
              }
            }
            roomId {
              id {
                id
              }
            }
            placeLink {
              href,
              location {
                addressInformation {
                  street
                  postcode
                  city
                  country
                  region
                }
              }
            }
          }
          start {
            dateTime
            dateTimeLong
          }
          end {
            dateTime
            dateTimeLong
          }
        }
      }
      assignments {
        assignment {
          assignment {
            assignmentId: id {
              id
            }
          }
          title
          teaser
          state
          picture {
            href
          }
          deeplink {
            href
          }
          classifications {
            classification {
              keyId
              key
              value
            }
          }
        }
      }
      seminars {
        seminar {
          seminar {
            seminarId: id {
              id
            }
          }
          title
          teaser
        }
      }
    }
  }
}`,name:"GraphQL request",locationOffset:{line:1,column:1}};function R(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(s){R(s,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(s){R(s,n)}),e.definitions&&e.definitions.forEach(function(s){R(s,n)})}var q={};(function(){j.definitions.forEach(function(n){if(n.name){var i=new Set;R(n,i),q[n.name.value]=i}})})();function W(e,n){for(var i=0;i<e.definitions.length;i++){var s=e.definitions[i];if(s.name&&s.name.value==n)return s}}function Mi(e,n){var i={kind:e.kind,definitions:[W(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var s=q[n]||new Set,a=new Set,t=new Set;for(s.forEach(function(m){t.add(m)});t.size>0;){var c=t;t=new Set,c.forEach(function(m){if(!a.has(m)){a.add(m);var r=q[m]||new Set;r.forEach(function(v){t.add(v)})}})}return a.forEach(function(m){var r=W(e,m);r&&i.definitions.push(r)}),i}Mi(j,"getAssignmentAndEvents");const Gi={name:"SeminarsOverviewFi",components:{LoadingIndicator:X,TabNavigationFi:ce,ComponentWrapper:re,SeminarAssignmentsFi:ui,SeminarElearningsFi:Vi},mixins:[Q,M],props:{fields:{type:Object,default:()=>({})}},data(){return{seminarsLoading:!0,scrollToId:null,initTab:0}},computed:{tabNavigation(){var e,n;return[{id:0,text:(e=this.fields)==null?void 0:e.tabLabelSeminars},{id:1,text:(n=this.fields)==null?void 0:n.tabLabelELearning}]},hasSeminars(){var e,n,i,s;return!!((s=(i=(n=(e=this.getAssignmentAndEvents)==null?void 0:e.seminars)==null?void 0:n.events)==null?void 0:i.event)!=null&&s.length)},hasELearnings(){var e,n,i,s;return!!((s=(i=(n=(e=this.getAssignmentAndEvents)==null?void 0:e.eLearnings)==null?void 0:n.assignments)==null?void 0:i.assignment)!=null&&s.length)}},apollo:{getAssignmentAndEvents:{query:j,errorPolicy:"all",variables(){var e,n,i,s,a,t;return{userId:(n=(e=this.fields)==null?void 0:e.userId)==null?void 0:n.value.toString(),language:(s=(i=this.fields)==null?void 0:i.language)==null?void 0:s.value,eventLanguage:(t=(a=this.fields)==null?void 0:a.eventLanguage)==null?void 0:t.value}},result(){this.seminarsLoading=!1,this.scrollToId=this.$fischer.query("seminar-id"),this.scrollToId&&this.hasELearnings&&this.getAssignmentAndEvents.eLearnings.assignments.assignment.filter(n=>n.assignment.assignmentId[0].id===this.scrollToId).length&&(this.initTab=1)},error(e){this.seminarsLoading=!1,this.error=!0,console.error(e)}}},methods:{getTabName(e){return`tab-content-${this.tabNavigation[e].id}`},tabChanged(){this.scrollToId=null}}},ji={key:1,class:"seminars-overview-fi__loading"};function Bi(e,n,i,s,a,t){const c=f("seminar-assignments-fi"),m=f("seminar-elearnings-fi"),r=f("tab-navigation-fi"),v=f("loading-indicator"),k=f("component-wrapper");return d(),F(k,{class:"seminars-overview-fi"},{default:N(()=>[e.momentLoaded&&(e.getAssignmentAndEvents||e.isEditMode)?(d(),o(p,{key:0},[t.hasSeminars&&t.hasELearnings||e.isEditMode?(d(),F(r,{key:0,"tab-navigation":t.tabNavigation,"content-loading":a.seminarsLoading,"init-id":a.initTab,onChange:t.tabChanged},{[t.getTabName(0)]:N(()=>[g(c,{key:"assignments","lms-data":e.getAssignmentAndEvents.seminars,"scroll-to":a.scrollToId},null,8,["lms-data","scroll-to"])]),[t.getTabName(1)]:N(()=>[g(m,{key:"eLearnings","lms-data":e.getAssignmentAndEvents.eLearnings,"scroll-to":a.scrollToId},null,8,["lms-data","scroll-to"])]),_:2},1032,["tab-navigation","content-loading","init-id","onChange"])):t.hasSeminars?(d(),F(c,{key:"assignments","lms-data":e.getAssignmentAndEvents.seminars,"scroll-to":a.scrollToId},null,8,["lms-data","scroll-to"])):t.hasELearnings?(d(),F(m,{key:"eLearnings","lms-data":e.getAssignmentAndEvents.eLearnings,"scroll-to":a.scrollToId},null,8,["lms-data","scroll-to"])):_("",!0)],64)):(d(),o("div",ji,[g(v,{variant:"spinnerLocal"})]))]),_:1})}const et=A(Gi,[["render",Bi],["__scopeId","data-v-7e445579"]]);export{et as default};