(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[439],{W7gV:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("tb-w-standalone-slider",{attrs:{items:this.listPayload,type:this.type}})],1)};a._withStripped=!0;var n=i("xBaG"),s=i("4/cP"),l={props:{type:{type:String,required:!0,validator:e=>[s.a.ARTICLE,s.a.EVENT,s.a.RECORD].includes(e)}},data:()=>({items:null}),created(){this.fetchItems()},computed:{...Object(n.e)(["serializedConfiguration","staticWidgetPath"]),...Object(n.e)("globalList",["loading","listPayload","listViewConfig","listViewState"])},methods:{...Object(n.d)("globalList",["SET_API_QUERY_STATE","SET_PAGINATION_STATE","SET_FILTER_STATE"]),...Object(n.b)("globalList",["FETCH_LIST","BUILD_API_QUERY_STATE"]),getSliderQuery(e){switch(e){case s.a.ARTICLE:return{include:["awards","openingTimes"],unlicensed:!0,filter:{clientIncludingManaged:""},preview:"266x312",pagination:{pageSize:12},sorting:{property:"name"}};case s.a.EVENT:return{include:["mainImage","price"],unlicensed:!0,filter:{clientIncludingManaged:"",date:{after:"today",before:"",includeOnDemand:!0}},preview:"266x312",pagination:{pageSize:12},sorting:{property:"date"}};case s.a.RECORD:return{unlicensed:!0,filter:{clientIncludingManaged:"",element:"mixed-list",hasUpcomingEventDates:!0},preview:"266x312",pagination:{pageSize:this.maxItems},sorting:{property:"name"}};default:return null}},async fetchItems(){const e=this.getSliderQuery(this.type);this.SET_API_QUERY_STATE(e),this.SET_FILTER_STATE(e.filter),this.SET_PAGINATION_STATE({page:1,total:0,pageSize:12,lastPage:0}),this.BUILD_API_QUERY_STATE(),await this.FETCH_LIST({modelType:this.type})}}},r=i("KHd+"),d=Object(r.a)(l,a,[],!1,null,null,null);t.default=d.exports}}]);