(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[349],{HIn2:function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tb-w-event-location-size-filter",on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.$emit("input",e.apiReturnValue)}}},[i("div",{staticClass:"h-auto pr-2"},[i("div",{staticClass:"tb-w-event-location-size-filter__slider-container"},[i("p",{staticClass:"tb-w-event-location-size-filter__slider-heading text-base font-bold"},["de"===e.language&&this.isSwissSpelling?[e._v("\n                    "+e._s(e.$t("message.maxRoomsize").replaceAll("ß","ss"))+" / m²\n                ")]:[e._v("\n                    "+e._s(e.$t("message.maxRoomsize"))+" / m²\n                ")]],2),e._v(" "),i("tb-w-range-slider",{attrs:{"ref-name":"eventLocationSizeRangeSlider","range-min":e.noUiSliderSettings.range.min,"range-max":e.rangeMax,step:1,"from-value":e.sizeFrom,"to-value":e.sizeTo,reset:e.resetRangeSlider},on:{input:e.updateSize}})],1)]),e._v(" "),i("div",{staticClass:"mt-6 flex justify-between"},[i("tb-w-button",{attrs:{variant:"tertiary"},on:{click:e.reset}},[e._v("\n            "+e._s(e.$t("message.reset"))+"\n        ")]),e._v(" "),i("tb-w-button",{on:{click:function(t){return e.$emit("input",e.apiReturnValue)}}},[e._v("\n            "+e._s(e.$t("message.apply"))+"\n        ")])],1)])};s._withStripped=!0;var n=i("xBaG"),a={name:"TbWEventLocationSizeFilter",props:{rangeMax:{type:Number,required:!0}},data:()=>({sizeFrom:null,sizeTo:null,resetRangeSlider:!1,noUiSliderSettings:{range:{min:0},step:1,connect:[!1,!0,!1]}}),watch:{filterState:{deep:!0,handler(e){this.setVariablesFromFilter(e)}}},created(){this.setVariablesFromFilter(this.filterState)},computed:{...Object(n.e)(["language"]),...Object(n.e)("displayConfig",["isSwissSpelling"]),...Object(n.e)("globalList",["filterState","apiQueryState","guiQueryState","predefinedParams"]),sizeValueChanged(){return this.sizeFrom!==this.noUiSliderSettings.range.min||this.sizeTo!==this.rangeMax},apiReturnValue(){return{sizeFrom:this.sizeValueChanged?this.sizeFrom:null,sizeTo:this.sizeValueChanged?this.sizeTo:null}}},methods:{reset(){this.sizeFrom=this.noUiSliderSettings.range.min,this.sizeTo=this.rangeMax,this.resetRangeSlider=!this.resetRangeSlider,this.$emit("input",this.apiReturnValue)},updateSize(e){this.sizeFrom=e.fromValue,this.sizeTo=e.toValue},setVariablesFromFilter(e){var t,i;this.sizeFrom=(null==e||null===(t=e.eventLocationSize)||void 0===t?void 0:t.from)||this.noUiSliderSettings.range.min,this.sizeTo=(null==e||null===(i=e.eventLocationSize)||void 0===i?void 0:i.to)||this.rangeMax}},i18n:{fallbackLocale:"de",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{reset:"Zurücksetzen",apply:"Anwenden",maxRoomsize:"Max. Raumgröße"}},en:{message:{reset:"Reset",apply:"Apply",maxRoomsize:"Max. Room size"}},fr:{message:{reset:"Réinitialiser",apply:"Appliquer",maxRoomsize:"Max. Taille de la pièce"}},it:{message:{reset:"Annullare",apply:"Applicare",maxRoomsize:"Max. Dimensioni della camera"}},es:{message:{reset:"Restablecer",apply:"Aplicar",maxRoomsize:"Max. Tamaño de la habitación"}},nl:{message:{reset:"Reset",apply:"Van toepassing zijn",maxRoomsize:"Max. Kamer grootte"}},cs:{message:{reset:"Resetovat",apply:"Aplikovat",maxRoomsize:"Max. Velikost místnosti"}}}}},r=i("KHd+"),o=Object(r.a)(a,s,[],!1,null,null,null);t.default=o.exports},"KHd+":function(e,t,i){"use strict";function s(e,t,i,s,n,a,r,o){var l,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=i,u._compiled=!0),s&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),r?(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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=l):n&&(l=o?function(){n.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(u.functional){u._injectStyles=l;var d=u.render;u.render=function(e,t){return l.call(t),d(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:u}}i.d(t,"a",(function(){return s}))}}]);