(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[328],{qV7p:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a}));const n={xs:382,sm:608,md:736,lg:992,xl:1248},a={xs:375,sm:640,md:768,lg:1024,xl:1280}},u40N:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex flex-col"},[e.articles&&0!==e.articles.length||e.loading?i("div",["lineTeaser"===e.variant?i("tb-w-line-teaser-list-view",{attrs:{"items-list":e.itemsList,"display-list-item-index":e.displayListItemIndex,"infinite-scroll":e.isInfiniteScrollActive,"uses-infinite-scroll":"","next-page-items-count":e.nextPageItemsCount,type:"article"},on:{loadNextPage:e.loadNextPage}}):e._e(),e._v(" "),"teaserCard"===e.variant?i("tb-w-grid",{attrs:{columns:{xs:1,sm:2,md:3,lg:4,xl:4}}},[e._l(e.articles,(function(t,n){return i("tb-w-teaser-card-article",{key:t.id,attrs:{article:t,"open-in-new-tab":e.openInNewTabOnList,"is-last-item":n===e.articles.length-1,"infinite-scroll":e.isInfiniteScrollActive},on:{loadNextPage:e.loadNextPage}})})),e._v(" "),e._l(e.nextPageItemsCount,(function(t){return i("skeleton-teaser-card",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],key:t})}))],2):e._e()],1):i("div",{staticClass:"p-4 border border-gray-200 rounded"},[i("tb-w-icon",{staticClass:"text-warning-500 mr-2",attrs:{icon:"info-circle",size:"1.5"}}),e._v("\n        "+e._s(e.$t("message.noEntries"))+"\n    ")],1),e._v(" "),e.isLoadMoreButtonActive?i("tb-w-button",{staticClass:"w-full mx-auto mt-4",attrs:{variant:e.loadMoreButtonStyle},on:{click:e.loadNextPage}},[e._v("\n        "+e._s(e.$t("message.loadMore"))+"\n    ")]):e._e()],1)};n._withStripped=!0;var a=i("eiOJ"),l=i("qV7p"),s=i("xBaG"),o={name:"TbWArticleListInfiniteScroll",mixins:[a.a],props:{articles:{type:Array,required:!0},nextPageItemsCount:{type:Number,default:12},infiniteScrollUntilPageNumber:{type:Number,default:null},loadMoreButtonStyle:{type:String,default:"tertiary"},type:{type:String,default:"loadMoreButton",validator:e=>["infiniteScroll","loadMoreButton"].includes(e)},variant:{type:String,default:"teaserCard",validator:e=>["lineTeaser","teaserCard"].includes(e)}},created(){this.setEnableScrollToTopOnNavigation(!1)},data:()=>({updateResultsOnMapMoves:!1,mapLocationUpdateTimeout:null,hoveredArticle:"",isLoadMoreButtonVisible:!1}),computed:{...Object(s.e)(["actualListQuery","enableScrollToTopOnNavigation"]),...Object(s.e)("displayConfig",["displayCapacityOnTeaser","openInNewTabOnList","displayTipLabels"]),...Object(s.e)("globalList",["loading","paginationState","infiniteScrollConfig"]),infiniteScrollUntilPageNumberIsReached(){return null!==this.infiniteScrollUntilPageNumber&&(0!==this.infiniteScrollUntilPageNumber&&this.paginationState.page>=this.infiniteScrollUntilPageNumber)},isLoadMoreButtonActive(){return!(this.loading||this.paginationState.lastPage<=this.paginationState.page||this.paginationState.total<=this.articles.length)&&(this.infiniteScrollUntilPageNumberIsReached||"loadMoreButton"===this.type)},isInfiniteScrollActive(){return!this.infiniteScrollUntilPageNumberIsReached&&"infiniteScroll"===this.type}},eq:{breakpoints:{large:{minWidth:l.a.lg},medium:{minWidth:l.a.md}}},methods:{...Object(s.d)(["setEnableScrollToTopOnNavigation"]),loadNextPage(){this.$emit("loadNextPage",this.paginationState.page+1)}},i18n:{fallbackLocale:"de",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{loadMore:"Mehr laden",noEntries:"Es konnten keine Einträge gefunden werden."}},en:{message:{loadMore:"Load more",noEntries:"No entries could be found."}},fr:{message:{loadMore:"Charger plus",noEntries:"Aucune entrée n'a pu être trouvée."}},it:{message:{loadMore:"Per saperne di più",noEntries:"Impossibile trovare voci."}},es:{message:{loadMore:"Cargar más",noEntries:"No se pueden encontrar entradas."}},nl:{message:{loadMore:"Meer laden",noEntries:"Er zijn geen items gevonden."}},cs:{message:{loadMore:"Načíst více",noEntries:"Nebyly nalezeny žádné záznamy."}}}}},r=i("KHd+"),d=Object(r.a)(o,n,[],!1,null,null,null);t.default=d.exports}}]);