(window.webpackJsonp=window.webpackJsonp||[]).push([[7,38,69],{1125:function(e,t,n){var content=n(1147);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(6).default)("0f32eee8",content,!0,{sourceMap:!1})},1130:function(e,t,n){"use strict";n.r(t);var r={data:function(){return{loading:!0}},computed:{gifSrc:function(){return this.$vuetify.theme.dark?n(1144):n(1145)}},methods:{start:function(){this.loading=!0},stop:function(){this.loading=!1}}},o=(n(1146),n(0)),component=Object(o.a)(r,(function(){var e=this,t=e._self._c;return e.loading?t("div",{staticClass:"loading-page text-center"},[(e.$vuetify.breakpoint.smAndDown,t("img",{attrs:{src:e.gifSrc,alt:"Loading animation",width:"50%",height:"50%"}}))]):e._e()}),[],!1,null,"4456a2d6",null);t.default=component.exports},1144:function(e,t,n){e.exports=n.p+"img/AnimationDark-Mode.837e57d.gif"},1145:function(e,t,n){e.exports=n.p+"img/loading.b4b8bf6.gif"},1146:function(e,t,n){"use strict";n(1125)},1147:function(e,t,n){var r=n(5)((function(i){return i[1]}));r.push([e.i,".loading-page video[data-v-4456a2d6]{backface-visibility:hidden;border:none;-webkit-mask-image:-webkit-radial-gradient(#fff,#000);mask-image:-webkit-radial-gradient(#fff,#000);padding:0}",""]),r.locals={},e.exports=r},1165:function(e,t,n){var content=n(1366);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(6).default)("0a1fc0c9",content,!0,{sourceMap:!1})},1339:function(e,t,n){"use strict";n.r(t);var r=n(1063),o=n(1099),c=n(1062),l=(n(42),n(38)),f={name:"DeluxeBannerExternal",components:{},mixins:[],props:{externalid:{type:String,required:!0},listing:{type:Boolean,default:!1}},data:function(){return{placeholder:!1,hasNetpointAd:!1}},computed:{isApp:function(){return l.a.isNativePlatform()}},mounted:function(){var e=this;setTimeout((function(){e.$refs.ad&&e.$refs.ad.children.length>0&&"none"!==e.$refs.ad.children[0].style.display&&e.$refs.ad.children[0].children[0].children[0]&&(e.hasNetpointAd=!0)}),5e3)},methods:{}},d=(n(1365),n(0)),component=Object(d.a)(f,(function(){var e=this,t=e._self._c;return e.isApp&&e.$auth.loggedIn&&e.$auth.user.is_plus_member?e._e():t(o.a,{staticClass:"externalbanner netpointad-wrapper",class:e.listing?"mx-auto":"",staticStyle:{"background-color":"var(--secondary-color)"}},[t(c.a,{attrs:{justify:"center","no-gutters":""}},[t(r.a,[e.placeholder?t("div",{staticClass:"urban-ad",style:"background-image: url(https://picsum.photos/seed/"+Date.now()+"/1100/300)",attrs:{id:e.externalid}}):t("div",{ref:"ad",staticClass:"billboard text-center"})])],1),e._v(" "),t(c.a,{attrs:{justify:"center"}},[t(r.a,[t("p",{staticClass:"mx-0 mb-0 mt-0 text--secondary cut-text e2 fitlineheight",staticStyle:{width:"90%"}},[e._v("\n        Anzeige\n      ")])])],1)],1)}),[],!1,null,"373d532f",null);t.default=component.exports},1365:function(e,t,n){"use strict";n(1165)},1366:function(e,t,n){var r=n(5)((function(i){return i[1]}));r.push([e.i,".externalbanner[data-v-373d532f]{box-shadow:0 4px 6px 0 rgba(0,0,0,.08);height:100%;margin:30px 30px 30px 80px;max-height:320px;min-height:320px;min-width:1140px;padding:10px;width:1140px}.urban-ad[data-v-373d532f]{height:250px;margin-left:auto;margin-right:auto;min-height:250px;min-width:1120px;width:1120px}",""]),r.locals={},e.exports=r},1534:function(e,t,n){"use strict";n.r(t);var r=n(1063),o=n(1099),c=n(1062),l=(n(16),n(15),n(17),n(9),n(20),n(18),n(21),n(3)),f=n(13),d=(n(27),n(35),n(29),n(42),n(161),n(31),n(56),n(54),n(33),n(37),n(85)),m=n(258),x=n(38),h=n(1336),v=n(158),y=n(1339);function w(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 k(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?w(Object(source),!0).forEach((function(t){Object(l.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):w(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var P={components:{SwiperSlide:m.SwiperSlide,Tile:v.default,DeluxeBannerExternal:y.default,TileTT:v.default},ssr:!1,fetchOnServer:!1,props:{type:{type:String,required:!0},events:{type:Array,required:!0},smart:{type:Boolean,required:!1},fullscreen:{type:Boolean,default:!1},filterType:{type:String,required:!1,default:"all"},exRange:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},externalBanners:{type:Boolean,default:!1}},data:function(){return{current_slice:12,next:"initial",interval:12,scrollPosition:0,showMoreBtn:!0,internalAds:[],broadSearch:!1,fistBroad:!1,cutoff:10,initCount:16,moreCount:12,isFilter:!1,requestPending:!1,savingPreferences:!1,scrollPos:0,exEvents:[],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}},rubrik:""}},fetch:function(){var e=this;return Object(f.a)(regeneratorRuntime.mark((function t(){var filter,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return filter="?slots__slot__in="+e.type,n="/api/adserver/internalads/"+filter,t.next=4,e.$axios.get(n);case 4:r=t.sent,e.internalAds=r.data.results;case 6:case"end":return t.stop()}}),t)})))()},computed:{getRubrik:function(){return this.$route.path.includes("rubrik")?this.$route.path.split("/").pop():"-1"},numberTiles:function(){switch(this.$vuetify.breakpoint.name){case"xs":return 1;case"sm":case"md":return 2;default:return 3}},isApp:function(){return x.a.isNativePlatform()}},beforeDestroy:function(){this.safePreferences()},mounted:function(){var e=this;return Object(f.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.simple){t.next=3;break}return t.next=3,e.initListing();case 3:case"end":return t.stop()}}),t)})))()},methods:k(k({},Object(d.c)({getDate:"events/getDate",getGenre:"events/getGenre",getCity:"events/getCity",getFilter:"events/getFilterType"})),{},{initListing:function(){var e=this;return Object(f.a)(regeneratorRuntime.mark((function t(){var n,r,o,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"filter"===e.getFilter()&&(e.isFilter=!0),window.addEventListener("scroll",e.handleScroll),e.rubrik=e.getRubrik,t.next=5,e.getPreference("cacheTimestamp-"+e.type+e.getFilter()+e.rubrik);case 5:if(!((n=t.sent)&&Date.now()-JSON.parse(n)<3e5)){t.next=23;break}return t.next=9,e.getPreference("events-"+e.type+e.getFilter()+e.rubrik);case 9:return r=t.sent,t.next=12,e.getPreference("exEvents-"+e.type+e.getFilter()+e.rubrik);case 12:return o=t.sent,t.next=15,e.getPreference("scrollPosition-"+e.type+e.getFilter()+e.rubrik);case 15:if(c=t.sent,r&&(e.events=JSON.parse(r),e.cutoff=e.events.length),o&&(e.exEvents=JSON.parse(o),e.broadSearch=!0),!r&&!o){t.next=21;break}return setTimeout((function(){window.scrollTo(0,JSON.parse(c))}),1e3),t.abrupt("return");case 21:t.next=31;break;case 23:return t.next=25,e.removePreference("events-"+e.type+e.getFilter()+e.rubrik);case 25:return t.next=27,e.removePreference("exEvents-"+e.type+e.getFilter()+e.rubrik);case 27:return t.next=29,e.removePreference("scrollPosition-"+e.type+e.getFilter()+e.rubrik);case 29:return t.next=31,e.removePreference("cacheTimestamp-"+e.type+e.getFilter()+e.rubrik);case 31:if(e.events=e.mixExternalAdsIntoEvents(e.events),!(e.events.length<12)||e.isFilter){t.next=36;break}return e.cutoff=e.events.length,t.next=36,e.fetchMore();case 36:e.events.length<=12&&e.isFilter&&(e.showMoreBtn=!1);case 37:case"end":return t.stop()}}),t)})))()},handleScroll:function(){var e=this;return Object(f.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=window.scrollY+window.innerHeight,r=document.documentElement.offsetHeight,!e.isApp||e.savingPreferences){t.next=6;break}return e.savingPreferences=!0,t.next=6,e.safePreferences();case 6:if(!(r-n<2400)){t.next=10;break}return t.next=10,e.fetchMore();case 10:case"end":return t.stop()}}),t)})))()},showTileCol:function(e){try{document.getElementById(e).style.display="block"}catch(e){console.log(e)}},mixExternalAdsIntoEvents:function(e){if(!(this.isApp&&this.$auth.loggedIn&&this.$auth.user.is_plus_member)){var t=0;if(e)for(var n=0;n<e.length;n++)if(n%4==0&&0!==n){var r={index:n,id:Date.now()+Math.random(),external:!0,advertisement:!0};e.splice(n-1,0,r),t+=1}if(t%4!=0){var o={index:e.length,id:Date.now()+Math.random(),external:!0,advertisement:!0};e.push(o)}}return e},fetchMore:function(){var e=this;return Object(f.a)(regeneratorRuntime.mark((function t(){var n,r,o,c,l,f,d,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.requestPending){t.next=2;break}return t.abrupt("return");case 2:if(e.requestPending=!0,!(null===e.next||"undefined"!=typeof variable||e.events.length<12)){t.next=10;break}if(!e.broadSearch){t.next=8;break}return e.showMoreBtn=!1,e.requestPending=!1,t.abrupt("return");case 8:e.broadSearch=!0,e.firstBroad=!0;case 10:if(!e.smart){t.next=42;break}if(n="/api/events/"+e.type+"/",e.current_slice+=e.interval,!("initial"===e.next&&e.events.length>=12)){t.next=22;break}return o={offset:24,limit:12,type:e.filterType},"filter"===e.getFilter()&&(c="false"!==e.getCityId()?e.getCityId():null,l="false"!==e.getGenre()?e.getGenre():null,f="false"!==e.getDate()?e.getDate():null,c||l||f?(e.getDate()&&"false"!==e.getDate()&&(o.date=e.getDate()),e.getGenre()&&"false"!==e.getGenre()&&(o.genre=e.getGenre()),e.getCityId()&&"false"!==e.getCityId()&&(o.city=e.getCityId()),o.type="filter"):o.type="all"),t.next=18,e.$axios.get(n,{params:o});case 18:r=t.sent,e.initCount=r.data.count+Math.floor(e.initCount/4),t.next=36;break;case 22:if(!e.firstBroad){t.next=32;break}return d={offset:0,limit:12,type:e.filterType,extend_range:!0},"filter"===e.getFilter()&&(d.type="filter",e.getDate()&&(d.date=e.getDate()),e.getGenre()&&(d.genre=e.getGenre()),e.getCity()&&(d.city=e.getCity().id)),t.next=27,e.$axios.get(n,{params:d});case 27:r=t.sent,e.moreCount=r.data.count+Math.floor(e.initCount/4),e.firstBroad=!1,t.next=36;break;case 32:return m=e.next.replace("http://api.twotickets.de/","/api/").replace("https://api.twotickets.de/","/api/"),t.next=35,e.$axios.get(m);case 35:r=t.sent;case 36:e.next=r.data.next,e.eventIds=e.events.map((function(e){return e.id})),e.exEventIds=e.exEvents.map((function(e){return e.id})),e.broadSearch?e.exEvents=e.exEvents.concat(e.mixExternalAdsIntoEvents(r.data.results)):e.events=e.events.concat(e.mixExternalAdsIntoEvents(r.data.results)),t.next=43;break;case 42:e.current_slice+=e.interval;case 43:e.broadSearch||(e.cutoff=e.current_slice),e.requestPending=!1;case 45:case"end":return t.stop()}}),t)})))()},setPreference:function(e,t){return Object(f.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,h.a.set({key:e,value:t});case 2:case"end":return n.stop()}}),n)})))()},getPreference:function(e){return Object(f.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h.a.get({key:e});case 2:return n=t.sent,r=n.value,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))()},removePreference:function(e){return Object(f.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h.a.remove({key:e});case 2:case"end":return t.stop()}}),t)})))()},safePreferences:function(){var e=this;return Object(f.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.setPreference("events-"+e.type+e.getFilter()+e.rubrik,JSON.stringify(e.events));case 2:return t.next=4,e.setPreference("exEvents-"+e.type+e.getFilter()+e.rubrik,JSON.stringify(e.exEvents));case 4:return t.next=6,e.setPreference("scrollPosition-"+e.type+e.getFilter()+e.rubrik,JSON.stringify(window.scrollY));case 6:return t.next=8,e.setPreference("cacheTimestamp-"+e.type+e.getFilter()+e.rubrik,JSON.stringify(Date.now()));case 8:e.savingPreferences=!1;case 9:case"end":return t.stop()}}),t)})))()}})},_=(n(1817),n(0)),component=Object(_.a)(P,(function(){var e=this,t=e._self._c;return e.events.length>0?t(o.a,{staticClass:"pa-0 mt-10"},[t(c.a,[t("div",{on:{click:e.safePreferences}},[t(c.a,{attrs:{justify:"center"}},[e._l(e.events,(function(n,o){return[t(r.a,{key:"tile-"+n.id,class:n.external?"netpointad-wrapper":"",attrs:{cols:"auto",lg:e.simple?"auto":3}},[t("TileTT",{class:e.$vuetify.breakpoint.smAndDown?"nintypercent":"",style:n.id?"margin-bottom:30px;":"margin-bottom: 7.5%;",attrs:{content:n,size:e.$vuetify.breakpoint.smAndDown?"auto":"m",loaded:!0},on:{show:function(t){return e.showTileCol(n.id)},click:e.safePreferences}})],1),e._v(" "),(o+1)%8==0&&e.$vuetify.breakpoint.lgAndUp&&e.externalBanners?t("div",{key:"banner-"+o},[t("DeluxeBannerExternal",{attrs:{listing:!0,externalid:"urban-leadbanner-"+Math.floor(o/15)}})],1):e._e()]})),e._v(" "),e.simple?e._e():t(r.a,{style:e.$vuetify.breakpoint.smAndDown?"width:354px !important; height: 543px !important; flex-grow : 0 !important; margin-bottom:12px !important":"width: 284px !important; height: 434px !important; flex-grow: 0 !important"},[t("nuxt-link",{staticClass:"text-decoration-none",attrs:{to:"/vorschlag"}},[(e.broadSearch||e.events.length<12)&&!e.isFilter&&e.exEvents.length>0&&!e.exRange?t("TileTT",{class:e.$vuetify.breakpoint.smAndDown?"nintypercent":"",style:e.$vuetify.breakpoint.smAndDown?"margin-top:12px;margin-right: 10px":"",attrs:{content:e.mapEvent,size:e.$vuetify.breakpoint.smAndDown?"auto":"m",loaded:!0},on:{click:e.safePreferences}}):e._e()],1)],1),e._v(" "),e._l(e.exEvents,(function(n){return(e.broadSearch||e.events.length<12)&&!e.isFilter?t(r.a,{key:n.id,class:n.external?"netpointad-wrapper":"",attrs:{id:n.id,cols:"auto"}},[t("TileTT",{class:e.$vuetify.breakpoint.smAndDown?"nintypercent":"",style:n.id?"margin-bottom:30px;":"margin-bottom: 7.5%;",attrs:{content:n,size:e.$vuetify.breakpoint.smAndDown?"auto":"m",loaded:!0},on:{show:function(t){return e.showTileCol(n.id)},click:e.safePreferences}})],1):e._e()}))],2),e._v(" "),t("div",{staticClass:"loading-wrapper"},[e.requestPending?t("InlineLoadingAnimation"):e._e()],1)],1)])],1):t("p",{staticClass:"e1 text-center mt-10"},[e._v("\n    Es wurden leider keine passenden Veranstaltungen gefunden.\n  ")])}),[],!1,null,"47356270",null);t.default=component.exports;installComponents(component,{TileTT:n(158).default,InlineLoadingAnimation:n(1130).default})},1623:function(e,t,n){var content=n(1818);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(6).default)("7348fdfc",content,!0,{sourceMap:!1})},1817:function(e,t,n){"use strict";n(1623)},1818:function(e,t,n){var r=n(5)((function(i){return i[1]}));r.push([e.i,".nintypercent[data-v-47356270]{width:330px!important}",""]),r.locals={},e.exports=r}}]);