1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0be0e7"],{"2f41":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.isVisible?a("section",{staticClass:"section-calendar",class:[t.hasPadding,t.hasBackground,t.hasVisibility],attrs:{id:t.hasAnchor}},[a("div",{staticClass:"container-fluid"},[t.localProps.title?a("h4",{staticClass:"mb-3"},[t._v(t._s(t.localProps.title))]):t._e(),t.monthList.length&&t.hasGroupMonths?a("ul",{staticClass:"nav"},t._l(t.monthList,(function(e){return a("li",{key:e.key,staticClass:"nav-item"},[a("a",{staticClass:"nav-link",class:{"nav-link--active":t.selectedMonth&&t.selectedMonth.key===e.key},attrs:{href:"javascript:;"},on:{click:function(a){t.selectedMonth=e}}},[t._v("\n\t\t\t\t\t"+t._s(e.label)+"\n\t\t\t\t")])])})),0):t._e(),a("div",{staticClass:"row"},[a("div",{staticClass:"col-6 col-sm-4 col-md-2 pr-3"},[a("icon",{staticClass:"aui-icon-3x",attrs:{name:"distance",size:"lg"}}),a("hr",{staticClass:"mb-0"})],1),a("div",{staticClass:"col-6 col-sm-8 col-md-3 pr-3"},[a("icon",{staticClass:"aui-icon-3x",attrs:{name:"calendar-events",size:"lg"}}),a("hr",{staticClass:"mb-0"})],1)]),a("div",{staticClass:"row",attrs:{itemtype:"https://schema.org/Event"}},t._l(t.filteredColumns,(function(e,n){return a("div",{key:n,staticClass:"col-sm-12 section-calendar-event p-2 mb-1",class:{"section-calendar-event--selected":e.selected}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-6 col-sm-4 col-md-2 mb-2 mb-md-0",attrs:{itemprop:"location"}},[t._v("\n\t\t\t\t\t\t"+t._s(e.location[t.locale])+"\n\t\t\t\t\t")]),a("div",{staticClass:"col-6 col-sm-8 col-md-3 mb-2 mb-md-0"},[t.live[n]?a("span",{staticClass:"badge badge-pill badge-danger text-white mr-1 mb-1"},[a("icon",{staticClass:"mr-1 align-middle d-inline-block badge__icon",attrs:{name:"system-play"}}),a("small",{staticClass:"align-middle d-inline-block"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.$t("onair"))+"\n\t\t\t\t\t\t\t")])],1):e.flags.length?a("div",{staticClass:"mb-1"},[t._l(e.flags,(function(e){return[Object.keys(t.flagsDetails).includes(e)?a("span",{key:e,staticClass:"badge badge-pill badge-primary text-white mr-1"},[a("icon",{staticClass:"mr-1 align-middle d-inline-block badge__icon",attrs:{name:t.flagsDetails[e].icon}}),a("small",{staticClass:"align-middle d-inline-block"},[t._v(t._s(t.$t(t.flagsDetails[e].label)))])],1):t._e()]}))],2):t._e(),e.datepicker?a("div",[e.datepicker.end&&e.datepicker.start!==e.datepicker.end?a("span",[a("span",{attrs:{content:t.dateToISO(e.datepicker.start),itemprop:"startDate"}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.$t("date_from",{from:t.dateToLocale(e.datepicker.start)}))+"\n\t\t\t\t\t\t\t\t")]),a("span",{attrs:{content:t.dateToISO(e.datepicker.end),itemprop:"endDate"}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.$t("date_to",{to:t.dateToLocale(e.datepicker.end)}))+"\n\t\t\t\t\t\t\t\t")])]):a("span",{attrs:{content:t.dateToISO(e.datepicker.start),itemprop:"startDate"}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.dateToLocale(e.datepicker.start))+"\n\t\t\t\t\t\t\t")])]):t._e(),e.start_time?a("div",[e.start_time&&!e.end_time?a("strong",[t._v(t._s(t.$t("time_from",{from:e.start_time.HH+":"+e.start_time.mm})))]):a("strong",[t._v(t._s(t.$t("time_from_to",{from:e.start_time.HH+":"+e.start_time.mm,to:e.end_time.HH+":"+e.end_time.mm})))])]):t._e()]),a("div",{staticClass:"col-12 mb-2 mb-md-0 wysiwyg",class:e.action[t.locale].label.length?"col-md-5":"col-md-7",attrs:{itemprop:"description"},domProps:{innerHTML:t._s(e.wysiwyg[t.locale])}}),a("div",{staticClass:"col-12 col-md-2 text-md-right"},[e.action[t.locale].label.length?[e.flags.includes("notModal")?a("btn",t._b({staticClass:"section-calendar__btn",class:t.hasBtnColor,attrs:{color:"link",itemprop:"url"}},"btn",t.getActionSettings(e.action[t.locale]),!1),[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.action[t.locale].label)+"\n\t\t\t\t\t\t\t")]):a("btn",{staticClass:"section-calendar__btn",class:t.hasBtnColor,attrs:{color:"link",itemprop:"url"},on:{click:function(a){return a.stopPropagation(),t.onClickAction(e)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.action[t.locale].label)+"\n\t\t\t\t\t\t\t")])]:t._e()],2)])])})),0)]),a("modal",{ref:"modal",attrs:{size:"lg",id:String(t._uid),title:t.hasModalPageTitle,centered:""}},[a("div",{staticClass:"modal-body"},[t.modalPageData?a("async-page",{attrs:{slot:"body",page:t.modalPageData,breakpoint:t.breakpoint,inner_width:t.inner_width},slot:"body"}):t.modalIframeSrc?a("iframe",{attrs:{src:t.modalIframeSrc,frameborder:"0",allow:"accelerometer; encrypted-media; gyroscope; picture-in-picture;",allowfullscreen:""}}):a("loader",{attrs:{type:"spinner"}})],1)])],1):t._e()}
1,i=[],o=(a("8e6e"),a("a481"),a("8615"),a("55dd"),a("ac6a"),a("456d"),a("7f7f"),a("7514"),a("bd86")),r=a("7efb"),s=a("ccc5"),l=a("2dd8"),c=a("5249");function d(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function u(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?d(Object(a),!0).forEach((function(e){Object(o["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var m={extends:r["default"],name:"SectionCalendar",props:{anchor:s["PROP_ANCHOR"],locales:s["PROP_LOCALES"],visibility:s["PROP_VISIBILITY"],background:u({},s["PROP_BACKGROUND"],{options:s["OPTIONS_BACKGROUND_BASE"]}),padding:s["PROP_PADDING"],title:s["PROP_TITLE"],groupMonths:{type:Array,editor:"EditorToggle",options:{groupMonths:"option_group_months"},default:function(){return[]},raw:!0},columns:u({},s["PROP_LIST"],{sub_props:{datepicker:{type:Object,editor:"EditorDatepicker",label:"prop_datepicker",default:null},start_time:{type:Object,editor:"EditorTimepicker",label:"prop_start_time",default:null,raw:!0},end_time:{type:Object,editor:"EditorTimepicker",label:"prop_end_time",default:null,raw:!0},flags:{type:Array,editor:"EditorToggle",options:{live:"option_live",notModal:"option_not_modal_action"},label:"prop_flags",default:function(){return[]},raw:!0},location:u({},s["PROP_TITLE"],{label:"prop_location"}),wysiwyg:s["PROP_WYSIWYG"],action:s["PROP_ACTION"]}})},data:function(){return{flagsDetails:{live:{label:"option_live",icon:"system-play"}},now:new Date,selectedMonth:void 0,modalPageData:void 0,modalIframeSrc:void 0}},created:function(){var t=this;setInterval((function(){t.now=new Date}),1e3)},computed:{hasGroupMonths:function(){return this.groupMonths.length>0},hasModalPageTitle:function(){if(this.modalPageData){var t=this.modalPageData.meta.find((function(t){return"title"===t.name}));if(t)return t.lContent[this.locale]}return""},setEventBackground:function(){return"dark"==this.background?"bg-gray20 text-white":"light"==this.background?"bg-gray90":"bg-light"},hasBackgroundMenu:function(){return"white"==this.background?"bg-light":"dark"==this.background?"bg-gray10 text-white":"light"==this.background?"bg-light":null},live:function(){var t=this;return Object.keys(this.columns).reduce((function(e,a){var n=t.startEnd(t.columns[a]),i=n.start,o=n.end;return i&&o?(e[a]=i.getTime()<t.now.getTime()&&o.getTime()>t.now.getTime(),e):(e[a]=!1,e)}),{})},monthList:function(){return Object.values(Object.values(this.columns).reduce((function(t,e){var a;if(null!==(a=e.datepicker)&&void 0!==a&&a.start){var n=new Date(e.datepicker.start);t["".concat(n.getFullYear()).concat(n.getMonth())]={key:"".concat(n.getFullYear()).concat(n.getMonth()),year:n.getFullYear(),month:n.getMonth(),label:"".concat(n.toLocaleString("it-IT",{month:"long"})," ").concat(n.getFullYear()),startDate:n}}return t}),{})).sort((function(t,e){return new Date(t.startDate)-new Date(e.startDate)}))},filteredColumns:function(){var t=this,e=Object.values(this.columns).sort((function(t,e){var a,n;return t=null!==(a=t.datepicker)&&void 0!==a&&a.start?new Date(t.datepicker.start):new Date,e=null!==(n=e.datepicker)&&void 0!==n&&n.start?new Date(e.datepicker.start):new Date,t-e}));return this.hasGroupMonths&&this.selectedMonth?e.filter((function(e){var a;if(null!==(a=e.datepicker)&&void 0!==a&&a.start){var n=new Date(e.datepicker.start);return n.getFullYear()===t.selectedMonth.year&&n.getMonth()===t.selectedMonth.month}return!1})):e}},methods:{getDate:function(t){return t.start==t.end?new Date(t.start).toLocaleDateString():this.$t("date_from_to",{from:new Date(t.start).toLocaleDateString(),to:new Date(t.end).toLocaleDateString()})},dateToLocale:function(t){return new Date(t).toLocaleDateString(this.$t("locale"))},dateToISO:function(t){try{return new Date(t).toISOString()}catch(e){return t}},startEnd:function(t){var e,a;if((null===(e=t.datepicker)||void 0===e?void 0:e.start)==(null===(a=t.datepicker)||void 0===a?void 0:a.end)&&t.end_time&&t.start_time){var n=new Date(t.datepicker.start);return{start:new Date(n.getFullYear(),n.getMonth(),n.getDate(),t.start_time.HH,t.start_time.mm),end:new Date(n.getFullYear(),n.getMonth(),n.getDate(),t.end_time.HH,t.end_time.mm)}}return{start:null,end:null}},onClickAction:function(t){var e,a,n=this;this.modalPageData=void 0,this.modalIframeSrc=void 0,null===(e=this.$refs)||void 0===e||null===(a=e.modal)||void 0===a||a.show();var i=this.getActionSettings(t.action[this.locale]);if(null!==i&&void 0!==i&&i.to)return this.$store.dispatch("".concat(c["APP_PAGES_MODULE_NAME"],"/").concat(l["m"]),{path:i.to.replace("/".concat(this.locale),""),_embed:"content,components",cache:!0}).then((function(t){var e=t.data;n.modalPageData=e}));this.modalIframeSrc=i.href}},watch:{groupMonths:{immediate:!0,handler:function(t){t.length&&!this.selectedMonth&&this.monthList.length&&(this.selectedMonth=this.monthList[0])}},monthList:function(t){var e=this;0!==t.length?!this.hasGroupMonths||this.selectedMonth&&t.find((function(t){var a=t.key;return a===e.selectedMonth.key}))||(this.selectedMonth=t[0]):this.selectedMonth=void 0}},components:{AsyncPage:function(){return a.e("chunk-27e67768").then(a.bind(null,"dbf4"))},Modal:function(){return a.e("chunk-0f1a0cd4").then(a.bind(null,"47a8"))},ComponentTransition:function(){return a.e("chunk-0480542a").then(a.bind(null,"2a6b"))},Btn:function(){return a.e("chunk-4059eaa8").then(a.bind(null,"3e3d"))},Loader:function(){return a.e("chunk-fbbf24ca").then(a.bind(null,"2a68"))},Icon:function(){return a.e("chunk-2d0da8d1").then(a.bind(null,"6ba0"))}}},h=m,p=a("2877"),g=Object(p["a"])(h,n,i,!1,null,null,"6403b412");e["default"]=g.exports}}]);
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.