(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[228],{"4/cP":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=Object.freeze({ARTICLE:"article",EVENT:"event"})},"7yoQ":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var i=n("6dQ1");function s(t){return Object(i.b)()?e.from(t,"utf-8").toString("base64"):btoa(t)}function a(t){return Object(i.b)()?e.from(t,"base64").toString("utf-8"):atob(t)}}).call(this,n("tjlA").Buffer)},ISqY:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tb-w-standalone-slider"},[e.limitedItems.length?n("tb-w-section",{attrs:{background:!e.hideStandaloneSliderBackground,wide:""},scopedSlots:e._u([{key:"content",fn:function(){return[n("tb-w-slider",[e._l(e.limitedItems,(function(t){return n("tb-w-slider-item",{key:t.id},[e.type===e.itemTypes.ARTICLE?n("tb-w-teaser-card-article",{attrs:{article:t,"open-in-new-tab":e.openInNewTabOnList,"display-info-slot":e.$eq.medium}}):e.type===e.itemTypes.EVENT?n("tb-w-teaser-card-event",{attrs:{event:t,"open-in-new-tab":e.openInNewTabOnList}}):e._e()],1)})),e._v(" "),e.displayShowAllTeaser?n("tb-w-show-all",{attrs:{"widget-route":e.widgetRoute,"target-new-tab":e.openInNewTabOnList}},[e._v("\n                    "+e._s(e.$t("message.showAll"))+"\n                ")]):e._e()],2)]},proxy:!0}],null,!1,1060042224)},[e.standaloneSliderHeadline?[e._v("\n            "+e._s(e.standaloneSliderHeadline)+"\n        ")]:e._e()],2):e._e()],1)};i._withStripped=!0;var s=n("4/cP"),a=n("L2JU"),o=n("VjoN"),r={name:"TbWStandaloneSlider",props:{items:{type:Array,required:!0},type:{type:String,required:!0}},data:()=>({itemTypes:s.a}),methods:{encodeUrlState:o.b},computed:{...Object(a.e)(["staticWidgetPath"]),...Object(a.e)("displayConfig",["openInNewTabOnList","hideStandaloneSliderBackground","standaloneSliderHeadline","standaloneSliderMaxItems","standaloneSliderNoQueryParams"]),...Object(a.e)("globalList",["apiQueryState","paginationState"]),limitedItems(){return this.standaloneSliderMaxItems?this.items.slice(0,this.standaloneSliderMaxItems):this.items},displayShowAllTeaser(){var e;return this.limitedItems.length<this.items.length||(null===(e=this.paginationState)||void 0===e?void 0:e.lastPage)>1},widgetRoute(){return this.standaloneSliderNoQueryParams?this.buildWidgetRoute({name:this.type+".list"}):this.buildWidgetRoute({name:this.type+".list",query:{params:Object(o.b)(this.apiQueryState)}})}},eq:{breakpoints:{medium:{minWidth:768}}},i18n:{fallbackLocale:"de",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{showAll:"Alle anzeigen"}},en:{message:{showAll:"Show all"}},fr:{message:{showAll:"Afficher tout"}},it:{message:{showAll:"Mostra tutto"}},es:{message:{showAll:"Mostrar todo"}},nl:{message:{showAll:"Toon alles"}},cs:{message:{showAll:"Ukázat vše"}}}}},l=n("KHd+"),d=Object(l.a)(r,i,[],!1,null,null,null);d.options.__file="node_modules/@newland/toubiz-widget/src/components/tb-w-standalone-slider.vue";t.default=d.exports},"KHd+":function(e,t,n){"use strict";function i(e,t,n,i,s,a,o,r){var l,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),a&&(d._scopeId="data-v-"+a),o?(l=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(o)},d._ssrRegister=l):s&&(l=r?function(){s.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:s),l)if(d.functional){d._injectStyles=l;var u=d.render;d.render=function(e,t){return l.call(t),u(e,t)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,l):[l]}return{exports:e,options:d}}n.d(t,"a",(function(){return i}))},VjoN:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var i=n("7yoQ");function s(e){return encodeURIComponent(Object(i.b)(JSON.stringify(e)))}const a={created(){for(const e of this.$options.urlState)this.restoreStateFromUrl(e),this.$watch(e,t=>{this.saveStateToUrl(e,t)},{deep:!0})},methods:{saveStateToUrl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[e];const n=Object.assign({},this.$route.query);n[e]=s(t),this.$router.replace({name:this.$route.name,query:n}).catch(e=>{if(!(""+e.message).includes("redundant navigation"))throw e})},restoreStateFromUrl(e){var t;if(this.$route.query[e])try{const n=(t=this.$route.query[e],JSON.parse(Object(i.a)(decodeURIComponent(t))));this.$set(this,e,n),"params"===e&&this.initialListFetch(n)}catch(t){console.warn(`Could not restore state ${e} from URL parameter ${e}`,t),this.initialListFetch()}else this.initialListFetch()}}}}}]);