(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[356],{"KHd+":function(e,t,s){"use strict";function o(e,t,s,o,i,a,n,r){var l,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=s,d._compiled=!0),o&&(d.functional=!0),a&&(d._scopeId="data-v-"+a),n?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(n)},d._ssrRegister=l):i&&(l=r?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(d.functional){d._injectStyles=l;var h=d.render;d.render=function(e,t){return l.call(t),h(e,t)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,l):[l]}return{exports:e,options:d}}s.d(t,"a",(function(){return o}))},xJ7m:function(e,t,s){"use strict";s.r(t);var o=function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.items.length?s("div",{staticClass:"tb-w-line-teaser-list"},[s(e.headlineType,{ref:"headline",tag:"component",staticClass:"font-bold",class:"text-"+e.headlineSize},[e._v("\n        "+e._s(e.title)+"\n    ")]),e._v(" "),s("tb-w-line-teaser-grid",[e.type===e.itemTypes.ARTICLE?e._l(e.itemsToDisplay,(function(t){return s("tb-w-line-teaser-article",{key:t.id,attrs:{article:t,"reference-geocoordinates":e.referenceGeocoordinates,"show-static-map-marker":e.showStaticMapMarker}})})):e.type===e.itemTypes.EVENT_DATE?e._l(e.itemsToDisplay,(function(t){return s("tb-w-line-teaser-event-date",{key:t.id,attrs:{"event-date":t,"reference-geocoordinates":e.referenceGeocoordinates,"show-static-map-marker":e.showStaticMapMarker}})})):e.type===e.itemTypes.EVENT?e._l(e.itemsToDisplay,(function(t){return s("tb-w-line-teaser-event",{key:t.id,attrs:{event:t,"reference-geocoordinates":e.referenceGeocoordinates,"show-static-map-marker":e.showStaticMapMarker}})})):e._e()],2),e._v(" "),s("tb-w-collapse-toggle",{attrs:{"less-label":e.lessLabel||e.$t("message.showLess"),"more-label":e.moreLabel||e.$t("message.showMore"),enabled:e.enabled},on:{toggle:e.toggle},model:{value:e.showAll,callback:function(t){e.showAll=t},expression:"showAll"}})],1):s("div")};o._withStripped=!0;var i=s("xBaG"),a=s("4/cP"),n={props:{title:{type:String,required:!0},items:{type:Array,required:!0},headlineType:{type:String,default:"h3"},headlineSize:{type:String,default:"2xl"},moreLabel:{type:String,default:null},lessLabel:{type:String,default:null},maxItems:{type:Number,default:4},type:{type:String,default:a.a.ARTICLE,validator:e=>Object.values(a.a).includes(e)},referenceGeocoordinates:{type:Object,default:null},showStaticMapMarker:{type:Boolean,default:!1}},data:()=>({showAll:!1,enabled:!1,maxItemsThreshold:2,itemTypes:a.a}),mounted(){this.items.length>this.maxItems+this.maxItemsThreshold&&(this.enabled=!0),this.isWidget2Pdf&&(this.showAll=!0)},computed:{...Object(i.e)(["isWidget2Pdf"]),itemsToDisplay(){return this.showAll||this.items.length<=this.maxItems+this.maxItemsThreshold?this.items:this.items.slice(0,this.maxItems)}},methods:{toggle:function(e){this.showAll=e,this.showAll||this.$refs.headline.scrollIntoView({behavior:"smooth"})}},eq:{breakpoints:{medium:{minWidth:768}}},i18n:{fallbackLocale:"de",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{showMore:"Mehr anzeigen",showLess:"Weniger anzeigen"}},en:{message:{showMore:"Show more",showLess:"Show less"}},fr:{message:{showMore:"Montre plus",showLess:"Montrer moins"}},it:{message:{showMore:"Mostra di più",showLess:"Mostra meno"}},es:{message:{showMore:"Mostrar más",showLess:"Muestra menos"}},nl:{message:{showMore:"Laat meer zien",showLess:"Laat minder zien"}},cs:{message:{showMore:"Zobrazit více",showLess:"Ukaž méně"}}}}},r=s("KHd+"),l=Object(r.a)(n,o,[],!1,null,null,null);t.default=l.exports}}]);