(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[364],{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",[this.staticWidgetPath?t("tb-w-standalone-slider",{attrs:{items:this.listPayload,type:this.type}}):this._e()],1)};a._withStripped=!0;var n=i("L2JU"),s=i("4/cP"),l={props:{type:{type:String,required:!0,validator:e=>[s.a.ARTICLE,s.a.EVENT].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.c)("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"}};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({type:this.type,version:1})}}},r=i("KHd+"),d=Object(r.a)(l,a,[],!1,null,null,null);d.options.__file="node_modules/@newland/toubiz-widget/src/routes/standalone-slider.vue";t.default=d.exports}}]);