(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[172],{"26KJ":function(e,t,n){"use strict";n.r(t);var i=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,"follow-links":"","no-section-spacing":this.noSectionSpacing}})],1)};i._withStripped=!0;var a=n("xBaG"),r=n("4/cP"),o=n("1pZf"),s={name:"StandaloneSlider",props:{type:{type:String,required:!0,validator:e=>[r.a.ARTICLE,r.a.EVENT,r.a.RECORD].includes(e)},maxItems:{type:Number,default:12},noSectionSpacing:{type:Boolean,default:!1}},created(){this.fetchItems()},computed:{...Object(a.e)(["serializedConfiguration","staticWidgetPath"]),...Object(a.e)("globalList",["loading","listPayload","listViewConfig","listViewState"])},methods:{...Object(a.d)("globalList",["SET_API_QUERY_STATE","SET_PAGINATION_STATE","SET_FILTER_STATE"]),...Object(a.b)("globalList",[o.a.FETCH_LIST,o.a.BUILD_API_QUERY_STATE]),getSliderQuery(e){switch(e){case r.a.ARTICLE:return{include:["awards","mainImage","openingTimes","articleTypeAttributes"],unlicensed:!0,filter:{clientIncludingManaged:""},preview:"266x312",pagination:{pageSize:this.maxItems},sorting:{property:"name"}};case r.a.EVENT:return{include:["awards","mainImage","price"],unlicensed:!0,filter:{clientIncludingManaged:"",date:{after:"today",before:"",includeOnDemand:!0}},preview:"266x312",pagination:{pageSize:this.maxItems},sorting:{property:"date"}};case r.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={page:1,total:0,pageSize:this.maxItems,lastPage:0},t=this.getSliderQuery(this.type);this.SET_API_QUERY_STATE(t),this.SET_PAGINATION_STATE(e),this[o.a.BUILD_API_QUERY_STATE](),await this[o.a.FETCH_LIST]({modelType:this.type})}}},c=n("KHd+"),u=Object(c.a)(s,i,[],!1,null,null,null);t.default=u.exports},"KHd+":function(e,t,n){"use strict";function i(e,t,n,i,a,r,o,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),o?(c=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__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=c):a&&(c=s?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},N8I4:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("U8pU"),a=n("sdSa");function r(e){Object(a.a)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Object(i.a)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},Q3Ip:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("ZoCn"),a=n("N8I4"),r=n("sdSa");function o(e,t){Object(r.a)(2,arguments);var n=Object(a.a)(e).getTime(),o=Object(i.a)(t);return new Date(n+o)}},U8pU:function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return i}))},ZoCn:function(e,t,n){"use strict";function i(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",(function(){return i}))},sdSa:function(e,t,n){"use strict";function i(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,"a",(function(){return i}))}}]);