(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[95],{"KHd+":function(e,t,n){"use strict";function i(e,t,n,i,s,o,l,r){var a,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),o&&(d._scopeId="data-v-"+o),l?(a=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__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(l)},d._ssrRegister=a):s&&(a=r?function(){s.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:s),a)if(d.functional){d._injectStyles=a;var c=d.render;d.render=function(e,t){return a.call(t),c(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,a):[a]}return{exports:e,options:d}}n.d(t,"a",(function(){return i}))},vxHb:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.items.length?n("div",[n(e.headlineType,{ref:"headline",tag:"component",staticClass:"font-bold",class:"text-"+e.headlineSize},[e._v("\n        "+e._s(e.title)+"\n    ")]),e._v(" "),n("tb-line-teaser-grid",e._l(e.itemsToDisplay,(function(t){return n("tb-line-teaser",{key:t.id,attrs:{image:e.buildImageUri(t.id,"article"),href:e.buildUrl({name:"article.detail",params:{id:t.id}})},scopedSlots:e._u([{key:"subline",fn:function(){return[e._v("\n                "+e._s(t.primaryCategory.name)+"\n            ")]},proxy:!0},{key:"info",fn:function(){return[e._t("info",null,{item:t})]},proxy:!0}],null,!0)},[e._v("\n            "+e._s(t.name)+"\n\n            ")])})),1),e._v(" "),e.enabled?n("button",{staticClass:"tb-line-teaser__toggle text-left mt-4",attrs:{"aria-expanded":e.showAll?"true":"false"},on:{click:function(t){return e.toggle()}}},[n("span",{directives:[{name:"show",rawName:"v-show",value:!e.showAll,expression:"!showAll"}],staticClass:"flex items-center text-link-500"},[n("tb-icon",{staticClass:"mr-2",attrs:{icon:"chevron-down",size:".75"}}),e._v("\n\n            "+e._s(e.moreLabel)+"\n        ")],1),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.showAll,expression:"showAll"}],staticClass:"flex items-center text-link-500"},[n("tb-icon",{staticClass:"mr-2",attrs:{icon:"chevron-up",size:".75"}}),e._v("\n\n            "+e._s(e.lessLabel)+"\n        ")],1)]):e._e()],1):e._e()};i._withStripped=!0;var s={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:"Mehr anzeigen"},lessLabel:{type:String,default:"Weniger anzeigen"}},data:()=>({showAll:!1,enabled:!1}),mounted(){this.items.length>6&&(this.enabled=!0)},computed:{itemsToDisplay(){return this.showAll?this.items:this.items.slice(0,6)}},methods:{toggle:function(){this.showAll=!this.showAll,this.showAll||this.$refs.headline.scrollIntoView({behavior:"smooth"})}}},o=n("KHd+"),l=Object(o.a)(s,i,[],!1,null,null,null);l.options.__file="node_modules/@newland/toubiz-widget/src/components/basic/tb-line-teaser-list.vue";t.default=l.exports}}]);