(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[259],{"+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,"4ac2b050",null);r.options.__file="node_modules/@newland/toubiz-widget/src/components/snow/tb-w-ski-area-preview-info-buttons.vue";e.default=r.exports},"KHd+":function(a,e,i){"use strict";function n(a,e,i,n,t,l,r,s){var o,d="function"==typeof a?a.options:a;if(e&&(d.render=e,d.staticRenderFns=i,d._compiled=!0),n&&(d.functional=!0),l&&(d._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)},d._ssrRegister=o):t&&(o=s?function(){t.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:t),o)if(d.functional){d._injectStyles=o;var c=d.render;d.render=function(a,e){return o.call(e),c(a,e)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,o):[o]}return{exports:a,options:d}}i.d(e,"a",(function(){return n}))}}]);