(window.webpackJsonp=window.webpackJsonp||[]).push([[4,78,143,196],{1102:function(e,t,n){"use strict";n.r(t);n(28);var r={props:{size:{required:!0,type:Number},image:{required:!0,type:String},username:{type:String},userID:{type:Number,required:!0},linked:{type:Boolean,default:!0},background:{type:String,default:"unset"},avatar:{type:Boolean,default:!1}}},o=(n(1105),n(0)),component=Object(o.a)(r,(function(){var e=this,t=e._self._c;return e.avatar?t("div",[t("img",{style:"max-width:"+e.size+"px; width:"+e.size+"px; height:"+e.size+"px; background:"+e.background+";",attrs:{title:e.username,alt:e.username?e.username:"Profilbild",src:n(1104)}})]):t("div",{style:"max-width:"+e.size+"px; width:"+e.size+"px; height:"+e.size+"px;"},[e.linked?t("nuxt-link",{attrs:{to:"/profile/".concat(e.userID)}},[t("img",{style:"max-width:"+e.size+"px; width:"+e.size+"px; height:"+e.size+"px; background:"+e.background+";",attrs:{title:e.username,alt:e.username?e.username:"Profilbild",src:e.image}})]):t("img",{style:"background: "+e.background+";",attrs:{title:e.username,alt:e.username?e.username:"Profilbild",src:e.image}})],1)}),[],!1,null,"332997a5",null);t.default=component.exports},1103:function(e,t,n){var content=n(1106);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(6).default)("28a2b366",content,!0,{sourceMap:!1})},1104:function(e,t,n){e.exports=n.p+"img/avatar.4833e75.png"},1105:function(e,t,n){"use strict";n(1103)},1106:function(e,t,n){var r=n(5)((function(i){return i[1]}));r.push([e.i,"img[data-v-332997a5]{border:1px solid var(--interaction-color);border-radius:50%;box-sizing:border-box!important;height:inherit;-o-object-fit:cover;object-fit:cover;padding:2px;width:inherit}",""]),r.locals={},e.exports=r},1151:function(e,t,n){"use strict";n.r(t);var r=n(1099),o=n(1062),d=n(2375),l=(n(51),n(3)),c=n(13),f=(n(37),n(28),n(42),n(161),n(29),n(16),n(15),n(17),n(9),n(20),n(18),n(21),n(85)),h=n(258),m=n(158),v=(n(1129),n(678)),x=n(1367),w=n(38);function y(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function _(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?y(Object(source),!0).forEach((function(t){Object(l.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):y(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var k={auth:!1,name:"SliderTT",components:{DisplayMessage:x.default,SliderArrowLeft:v.default,Swiper:h.Swiper,SwiperSlide:h.SwiperSlide,Tile:m.default},props:{events:Array,size:String,id:String,dependend:Boolean,filtered:Boolean,leftMargin:Number,moreEvents:Array,update:{type:Boolean,required:!1},placead:{type:Boolean,required:!1,default:!1},preventLoading:{type:Boolean,default:!1},delayLoading:{type:Number,default:0},hideSlider:{type:Function,default:function(){}},placeExternalAd:{type:Boolean,default:!0},fontColorClass:{type:String,default:"white--text"},maxEvents:{type:Number,default:20},latitude:{type:[Number,Boolean]},longitude:{type:[Number,Boolean]},avOnly:{type:Boolean,default:!1}},data:function(){return{rerenderhack:0,content:[],moreContent:[],loaded:!1,moreLoaded:!1,ad:!1,hide:!1,internalAdsPlaced:0,mapEvent:{index:0,id:420,external:!1,advertisement:!0,image_url:"images/extendedSearch/map.png",creative:{title:"",subtitle:"Wir haben ab hier mehr Veranstaltungen im Umland",map:!0}}}},fetch:function(){var e=this;return Object(c.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventLoading){t.next=7;break}if(0===e.delayLoading){t.next=5;break}setTimeout((function(){e.fetchData()}),e.delayLoading),t.next=7;break;case 5:return t.next=7,e.fetchData();case 7:case"end":return t.stop()}}),t)})))()},computed:{processedContent:function(){var e=this.content.slice();if(this.placead&&this.ad&&(e.unshift(this.ad),this.internalAdsPlaced=1),!(this.$auth.loggedIn&&this.$auth.user.is_plus_member&&this.isApp)&&this.placeExternalAd&&e.length>4){var t={index:4,id:Date.now()+Math.random(),external:!0,advertisement:!0};e.splice(3,0,t)}return e},moreProcessedContent:function(){var e=this.moreContent.slice();if(!(this.$auth.loggedIn&&this.$auth.user.is_plus_member&&this.isApp)&&this.placeExternalAd&&e.length>4){var t={index:4,id:Date.now()+Math.random(),external:!0,advertisement:!0};e.splice(3,0,t)}return e},swiperOptions:function(){return this.loaded,this.moreLoaded,this.rerenderhack+=1,this.$vuetify.breakpoint.smAndDown?{slidesPerView:"auto",spaceBetween:this.spaceBetween,freeMode:!0,slidesOffsetBefore:12,slidesOffsetAfter:12}:{slidesPerView:"auto",slidesPerGroup:4,slidesPerGroupAuto:!0,spaceBetween:this.spaceBetween,slidesOffsetBefore:12,slidesOffsetAfter:12}},spaceBetween:function(){switch(this.size){case"s":switch(this.$vuetify.breakpoint.name){case"xs":case"sm":case"md":return 10;default:return 15}case"m":switch(this.$vuetify.breakpoint.name){case"xs":case"sm":case"md":return 10;default:return 26}default:return 5}},isApp:function(){return w.a.isNativePlatform()}},mounted:function(){},methods:_(_({},Object(f.c)({getDate:"events/getDate",getGenre:"events/getGenre",getCity:"events/getCity",getCityId:"events/getCityId",getFilter:"events/getFilterType"})),{},{showSwiperSlide:function(e){try{document.getElementById(e).style.display="block"}catch(e){console.log(e)}},fetchData:function(){var e=this;return Object(c.a)(regeneratorRuntime.mark((function t(){var n,r,o,d,l,c,f,h,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n={type:e.getFilter(),avonly:e.avOnly},e.filtered&&(r="false"!==e.getCityId()?e.getCityId():null,o="false"!==e.getGenre()?e.getGenre():null,d="false"!==e.getDate()?e.getDate():null,r||o||d?(e.getDate()&&"false"!==e.getDate()&&(n.date=e.getDate()),e.getGenre()&&"false"!==e.getGenre()&&(n.genre=e.getGenre()),e.getCityId()&&"false"!==e.getCityId()&&(n.city=e.getCityId()),n.type="filter"):n.type="all"),!e.id||"s"===e.size){t.next=6;break}return t.next=5,e.getAdvertisement(e.id.toLowerCase());case 5:e.ad=t.sent;case 6:if(!e.moreEvents){t.next=11;break}e.content=e.moreEvents,e.loaded=!0,t.next=24;break;case 11:if(!e.id||"close"!==e.id){t.next=18;break}return c="/api/events/"+e.id+"/"+e.longitude+"/"+e.latitude+"/",t.next=15,e.$axios.get(c);case 15:l=t.sent,t.next=22;break;case 18:return f="/api/events/"+e.id+"/?limit="+e.maxEvents,t.next=21,e.$axios.get(f,{params:n});case 21:l=t.sent;case 22:e.content=l.data.results,e.loaded=!(404===l.status||500===l.status);case 24:if(!(e.content.length<8)||e.moreEvents){t.next=32;break}return h="/api/events/"+e.id+"/?limit="+e.maxEvents,n.extend_range=!0,t.next=29,e.$axios.get(h,{params:n});case 29:m=t.sent,e.moreContent=m.data.results,e.moreLoaded=!(404===m.status||500===m.status||0===m.data.count);case 32:0===e.content.length&&0===e.moreProcessedContent.length&&(e.hideSlider(e.id),e.hide=!0);case 33:case"end":return t.stop()}}),t)})))()},updateSlider:function(){this.$refs.swiper.$swiper&&this.$refs.swiper.$swiper.update()},updateContent:function(content){this.content=content,this.loaded=!0},prev:function(){this.$refs.swiper.$swiper.slidePrev()},next:function(){this.$refs.swiper.$swiper.slideNext()},getAdvertisement:function(e){var t=this;return Object(c.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return"/api/adserver/internalads/",r=!1,n.prev=2,n.next=5,t.$axios.get("/api/adserver/internalads/",{params:{slots__slot__in:e}}).then((function(e){return e.data.results[0]}));case 5:r=n.sent,n.next=12;break;case 8:return n.prev=8,n.t0=n.catch(2),console.log("error:",n.t0),n.abrupt("return",!1);case 12:if(void 0!==r){n.next=14;break}return n.abrupt("return",!1);case 14:return r.index=0,r.external=!1,r.advertisement=!0,r.image_url=r.creative.image,r.adcolor="interactioninactive",n.abrupt("return",r);case 20:case"end":return n.stop()}}),n,null,[[2,8]])})))()}}),watch:{loaded:function(e,t){e&&this.updateSlider()},preventLoading:function(e,t){!1===e&&!0===t&&(this.fetchData(),this.updateSlider())}}},C=(n(1496),n(0)),component=Object(C.a)(k,(function(){var e=this,t=e._self._c;return t(r.a,{staticClass:"pa-0 ml-1",attrs:{fluid:""}},[t(o.a,{staticClass:"justify-end",attrs:{"no-gutters":""}},[t("nuxt-link",{staticClass:"text-decoration-none",attrs:{to:"/alleveranstaltungen/"+e.id+"/"}},[t("p",{staticClass:"ma-0 e1 text-decoration-underline",class:e.fontColorClass,staticStyle:{"padding-right":"49px"}},[e._v("\n alle anzeigen\n ")])])],1),e._v(" "),t("div",{staticClass:"d-flex align-center justify-space-between",style:e.$vuetify.breakpoint.lgAndUp?"gap: 12px":""},[e.$vuetify.breakpoint.lgAndUp?t("SliderArrowLeft",{staticStyle:{"padding-left":"15px"},attrs:{"margin-left-fix":!0}}):e._e(),e._v(" "),t("swiper",{directives:[{name:"show",rawName:"v-show",value:e.processedContent.length-e.internalAdsPlaced>0||e.moreProcessedContent.length>0,expression:"processedContent.length - internalAdsPlaced > 0 || moreProcessedContent.length > 0"}],ref:"swiper",class:e.id,attrs:{options:e.swiperOptions}},[e._l(e.processedContent.slice(0,e.maxEvents),(function(n){return e.processedContent.length>0?t("swiper-slide",{key:n.id,class:[e.size+" py-3",n.external?"netpointad-wrapper":""],attrs:{id:n.id}},[t("div",[e.loaded?t("Tile",{key:n.id,attrs:{content:n,size:e.size,loaded:e.loaded},on:{show:function(t){return e.showSwiperSlide(n.id)}}}):e._e()],1)]):e._e()})),e._v(" "),e.processedContent.length<9&&e.moreProcessedContent.length>0?t("swiper-slide",{class:e.size+" py-3"},[t("div",["filter"!==e.getFilter()&&e.moreProcessedContent.length>0?t("TileTT",{attrs:{content:e.mapEvent,loaded:e.moreLoaded,size:e.size}}):e._e()],1)]):e._e(),e._v(" "),e._l(e.moreProcessedContent.slice(0,e.maxEvents-e.processedContent.length),(function(n){return e.processedContent.length<9&&"filter"!==e.getFilter()?t("swiper-slide",{key:n.id,class:[e.size+" py-3",n.external?"netpointad-wrapper":""],attrs:{id:n.id}},[t("div",[e.moreLoaded?t("Tile",{key:n.id,attrs:{content:n,size:e.size,loaded:e.moreLoaded},on:{show:function(t){return e.showSwiperSlide(n.id)}}}):e._e()],1)]):e._e()}))],2),e._v(" "),t("swiper",{directives:[{name:"show",rawName:"v-show",value:e.processedContent.length-e.internalAdsPlaced<=0&&0===e.moreProcessedContent.length,expression:"processedContent.length - internalAdsPlaced <= 0 && moreProcessedContent.length === 0"}],staticClass:"mt-5",attrs:{options:e.swiperOptions}},e._l(6,(function(n){return t("swiper-slide",{key:n,class:e.size+" py-3"},[t("div",[t(d.a,{attrs:{type:"image, article",height:380}})],1)])})),1),e._v(" "),e.$vuetify.breakpoint.lgAndUp?t("SliderArrowRIght",{staticStyle:{"padding-right":"10px"}}):e._e()],1)],1)}),[],!1,null,"318cc169",null);t.default=component.exports;installComponents(component,{SliderArrowLeft:n(678).default,TileTT:n(158).default,SliderArrowRIght:n(680).default})},1367:function(e,t,n){"use strict";n.r(t);var r=n(1052),o=n(13),d=(n(37),{name:"DisplayMessage",scrollToTop:!0,props:{content:Object,slim:{type:Boolean,default:!1}},mounted:function(){this.slim||window.scroll(0,0)},methods:{michOderJmdAnderen:function(){return this.content.sender.user_id==this.$auth.user.id?this.content.sender.username:this.content.receiver.username},reply:function(){this.$store.dispatch("messages/setMessage",this.content),this.$router.push("/postfach/compose")},deletemsg:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={receiver_deleted:!0},n.prev=1,t.$axios.$patch("/api/messages/delete-message/".concat(e,"/"),r),n.next=5,t.$router.push("/postfach");case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(1),console.log(n.t0);case 10:case"end":return n.stop()}}),n,null,[[1,7]])})))()}}}),l=n(0),component=Object(l.a)(d,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"px-3",staticStyle:{"background-color":"white","padding-top":"10px","padding-bottom":"10px"}},[e.slim?e._e():t("p",{staticClass:"font-size-20 line-height-20 mb-sm-4 mb-md-5 black--text"},[e._v("\n "+e._s(e.content.subject)+"\n ")]),e._v(" "),t("div",{staticClass:"d-flex mb-8"},[t("ProfilePicture",{attrs:{"user-i-d":e.content.sender.user_id,image:e.content.sender.profile_image,size:60}}),e._v(" "),t("div",{staticClass:"pt-3 ml-3"},[t("p",{staticClass:"mb-1 font-size-14 line-height-20 font-weight-bold black--text"},[e._v("\n "+e._s(e.content.sender.username)+"\n ")]),e._v(" "),t("p",{staticClass:"ma-0 font-size-12 line-height-14",class:e.$vuetify.theme.dark?"black--text":"primaryinteractive--text"},[e._v("\n an "+e._s(e.content.receiver.username)+" "+e._s(e.content.created)+"\n ")])])],1),e._v(" "),t("div",{staticClass:"text-center"},[t("div",{staticClass:"align-self-center black--text",domProps:{innerHTML:e._s(e.content.html_content)}})]),e._v(" "),t("div",{staticClass:"text-center"},[e.content.can_be_answered?t(r.a,{staticClass:"text-none reduceLetterSpaceing d-block mb-5 mt-10 mx-auto",attrs:{rounded:"",dark:"",color:"interaction",width:"256",height:"48",elevation:"0"},on:{click:function(t){return e.reply()}}},[e._v("\n Antworten\n ")]):e._e(),e._v(" "),t(r.a,{staticClass:"text-none reduceLetterSpaceing d-block mx-auto",attrs:{rounded:"",outlined:"",color:"interaction",width:"256",height:"48",elevation:"0"},on:{click:function(t){return e.deletemsg(e.content.id)}}},[e._v("\n Löschen\n ")])],1)])}),[],!1,null,"4d759566",null);t.default=component.exports;installComponents(component,{ProfilePicture:n(1102).default})},1408:function(e,t,n){var content=n(1497);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(6).default)("e073632e",content,!0,{sourceMap:!1})},1496:function(e,t,n){"use strict";n(1408)},1497:function(e,t,n){var r=n(5)((function(i){return i[1]}));r.push([e.i,"div[data-v-318cc169] .swiper-slide.s{width:200px}div[data-v-318cc169] .swiper-slide.m{width:260px}div[data-v-318cc169] .swiper-slide.l{width:330px}div[data-v-318cc169] .no-background-hover:before{background-color:transparent!important}div[data-v-318cc169] .swiper-wrapper{transform:translate3d(12px,0,0)}@media screen and (min-width:650px){div[data-v-318cc169] .swiper-wrapper{transform:translate3d(18px,0,0)}}@media screen and (min-width:1000px){div[data-v-318cc169] .swiper-wrapper{transform:translate3d(12px,0,0)}}div[data-v-318cc169] .swiper-container{margin-left:0;margin-right:10px}",""]),r.locals={},e.exports=r}}]);