jQuery.gmap3({key:window.wcs_google_key}),"undefined"!=typeof wcs_moment_locale&&moment.updateLocale("en",wcs_moment_locale);var wcs_apps=[],timetables=document.querySelectorAll("div.wcs-vue");Array.prototype.forEach.call(timetables,function(t,s){var e=t.getAttribute("id"),i=e.replace("wcs-app-",""),l=window["EventsSchedule_"+i],a=void 0!==l.options?l.options:{},n=void 0!==l.filters?l.filters:{},o="undefined"!==l.feed?l.feed:[],c=[wcs_timetable_mixins];if(void 0!==l.css&&void 0!==document.getElementById("wcs_styles")&&null!=document.getElementById("wcs_styles")&&(document.getElementById("wcs_styles").innerHTML+=l.css),!1!==a.mixins){a.mixins.split(" ").forEach(function(t){c.push(window[t])})}a.is_single?wcs_apps[s]=new Vue({el:"#"+e,mounted:function(){var t=["wcs-vue--mounted"];this.$el.className+=" "+t.join(" ")},template:"#wcs_templates_timetable--"+e,data:function(){return{css_classes:[],options:a,single:o,now:moment().utc()}},mixins:c}):(0===parseInt(a.days)&&parseInt(a.limit)>0&&(o=o.slice(0,parseInt(a.limit))),wcs_apps[s]=new Vue({el:"#"+e,template:"#wcs_templates_timetable--"+e,created:function(){var t=this;void 0!==this.options.days&&this.options.days||(this.options.days=356),0===o.length?this.getEvents():o.forEach(function(s,e,i){-1===t.events_hases.indexOf(s.hash)&&(t.events_hases.push(s.hash),t.filterEvent(s))})},mounted:function(){if(this.css_classes.push(this.hasFilters()?"wcs-timetable--with-filters":"wcs-timetable--without-filters"),this.hasFilters()){switch(!0){case 0===parseInt(this.options.filters_position):this.css_classes.push("wcs-timetable--filters-left");break;case 1===parseInt(this.options.filters_position):this.css_classes.push("wcs-timetable--filters-center");break;case 2===parseInt(this.options.filters_position):this.css_classes.push("wcs-timetable--filters-right");break}this.css_classes.push(this.filter_var(this.options.show_filters_opened)?"wcs-timetable--filters-expanded":"wcs-timetable--filters-closed"),this.css_classes.push(void 0!==this.options.label_toggle.length&&this.options.label_toggle.length>0?"wcs-timetable--filters-with-toggle":"wcs-timetable--filters-without-toggle")}},methods:{extendObject:function t(s,e){return Object.keys(e).forEach(function(t){s[t]=e[t]}),s},apply_filters:function(){var t=Array.prototype.slice.call(arguments,0)}},data:function(){return{el_id:e,css_classes:["wcs-timetable--style-"+a.view],options:a,events:o,events_hases:[],events_filtered:[],filters:n,filters_active:this.getActiveFilters(n),loading:!1,loading_process:!1,loading_history:[],selected_day:!1,iso:!1,iso_expanded_items:[],start:void 0!==a.ts_start?a.ts_start:moment().utc().format("YYYY-MM-DD"),stop:void 0!==a.ts_start?a.ts_stop:moment().utc().add(parseInt(a.days)-1,"days").format("YYYY-MM-DD"),today:moment().format("YYYY-MM-DD"),calendar:{},calendarDay:null,selectedDay:null,dateRange:{start:null,stop:null},dateRangeHistory:[],status:{toggler:!0}}},mixins:c}))});