(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[312],{"+Rg5":function(a,e,i){"use strict";i.d(e,"a",(function(){return n}));const n={data:()=>({webcamModal:!1,trailPlanModal:!1}),computed:{hasTrailPlanImage(){var a;return(null===(a=this.article.skiArea)||void 0===a?void 0:a.trailPlan)&&!this.trailPlanImageIsPdf},showTrailPlanTeaser(){var a,e,i,n;return(null===(a=this.article.skiArea)||void 0===a?void 0:a.trailPlan)||(null===(e=this.article.skiArea)||void 0===e||null===(i=e.webMediaLinks)||void 0===i||null===(n=i.trailPlan)||void 0===n?void 0:n.length)},trailPlanImageIsPdf(){var a,e,i;return!(null===(a=this.article.skiArea)||void 0===a||null===(e=a.trailPlan)||void 0===e||null===(i=e.url)||void 0===i||!i.endsWith(".pdf"))},trailPlanPdfLink(){var a,e;return this.trailPlanImageIsPdf?null===(a=this.article.skiArea)||void 0===a||null===(e=a.trailPlan)||void 0===e?void 0:e.url:null},trailPlanLink(){var a,e,i,n,t,l;return null!==(a=null!==(e=this.trailPlanPdfLink)&&void 0!==e?e:null===(i=this.article.skiArea)||void 0===i||null===(n=i.webMediaLinks)||void 0===n||null===(t=n.trailPlan)||void 0===t||null===(l=t[0])||void 0===l?void 0:l.url)&&void 0!==a?a:""},webcams(){var a;return(null===(a=this.article.webMediaLinks)||void 0===a?void 0:a.webcam)||[]}}}},"3/cQ":function(a,e,i){"use strict";i.r(e);var n=function(){var a=this,e=a.$createElement,i=a._self._c||e;return a.webcams.length||a.showTrailPlanTeaser?i("div",[i("div",{staticClass:"flex -mx-1"},[a.webcams.length?i("tb-w-ski-area-preview-info-button",{staticClass:"mx-1",attrs:{icon:"video-light-spaced","is-click-emitter":""},on:{click:function(e){a.webcamModal=!0}}},[a._v("\n            Webcams\n        ")]):a._e(),a._v(" "),a.showTrailPlanTeaser?i("tb-w-ski-area-preview-info-button",a._b({staticClass:"mx-1",attrs:{icon:"map-light-spaced","widget-route":{route:null,url:a.trailPlanLink}},on:{click:function(e){a.trailPlanModal=!0}}},"tb-w-ski-area-preview-info-button",{"is-click-emitter":!!a.hasTrailPlanImage,"open-in-new-tab":!a.hasTrailPlanImage},!1),[a._v("\n            "+a._s(a.$t("message.trailPlan"))+"\n        ")]):a._e()],1),a._v(" "),a.webcams.length?i("tb-w-webcams-modal",{attrs:{webcams:a.webcams,show:a.webcamModal},on:{close:function(e){a.webcamModal=!1}}}):a._e(),a._v(" "),a.showTrailPlanTeaser?i("tb-w-trailplan-modal",{attrs:{article:a.article,"has-trail-plan-image":!!a.hasTrailPlanImage,"trail-plan-link":a.trailPlanLink,show:a.trailPlanModal},on:{close:function(e){a.trailPlanModal=!1}}}):a._e()],1):a._e()};n._withStripped=!0;var t={name:"TbWSkiAreaPreviewInfoButtons",mixins:[i("+Rg5").a],props:{article:{type:Object,required:!0}},i18n:{fallbackLocale:"en",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{trailPlan:"Pistenplan"}},en:{message:{trailPlan:"Trail plan"}}}}},l=i("KHd+"),r=Object(l.a)(t,n,[],!1,null,"41cf521c",null);e.default=r.exports},"KHd+":function(a,e,i){"use strict";function n(a,e,i,n,t,l,r,s){var o,c="function"==typeof a?a.options:a;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),l&&(c._scopeId="data-v-"+l),r?(o=function(a){(a=a||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(a=__VUE_SSR_CONTEXT__),t&&t.call(this,a),a&&a._registeredComponents&&a._registeredComponents.add(r)},c._ssrRegister=o):t&&(o=s?function(){t.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:t),o)if(c.functional){c._injectStyles=o;var d=c.render;c.render=function(a,e){return o.call(e),d(a,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,o):[o]}return{exports:a,options:c}}i.d(e,"a",(function(){return n}))}}]);