(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[302],{"KHd+":function(a,e,l){"use strict";function t(a,e,l,t,i,n,r,s){var o,d="function"==typeof a?a.options:a;if(e&&(d.render=e,d.staticRenderFns=l,d._compiled=!0),t&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),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__),i&&i.call(this,a),a&&a._registeredComponents&&a._registeredComponents.add(r)},d._ssrRegister=o):i&&(o=s?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),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}}l.d(e,"a",(function(){return t}))},rOUj:function(a,e,l){"use strict";l.r(e);var t=function(){var a,e,l,t,i=this,n=i.$createElement,r=i._self._c||n;return i.webcams.length||i.showTrailPlanTeaser?r("div",{staticClass:"px-4"},[r("div",{staticClass:"max-w-4xl mx-auto"},[r("tb-w-grid",{attrs:{columns:{xs:2,sm:3,md:4,lg:4,xl:4}}},[i.webcams.length?r("tb-w-icon-teaser-rounded",{attrs:{orientation:"vertical",icon:"video-light-spaced","is-click-emitter":""},on:{click:function(a){i.webcamModal=!0}}},[i._v("\n                Webcams\n            ")]):i._e(),i._v(" "),i.showTrailPlanTeaser?r("tb-w-icon-teaser-rounded",i._b({attrs:{orientation:"vertical",icon:"map-light-spaced","widget-route":{route:null,url:i.trailPlanLink}},on:{click:function(a){i.trailPlanModal=!0}}},"tb-w-icon-teaser-rounded",{"is-click-emitter":!!i.hasTrailPlanImage,"open-in-new-tab":!i.hasTrailPlanImage},!1),[i._v("\n                "+i._s(i.$t("message.trailPlan"))+"\n            ")]):i._e()],1),i._v(" "),i.webcams.length?r("tb-w-webcams-modal",{attrs:{webcams:i.webcams,show:i.webcamModal},on:{close:function(a){i.webcamModal=!1}}}):i._e(),i._v(" "),i.showTrailPlanTeaser?r("tb-w-modal",{attrs:{show:i.trailPlanModal,height:"content","seamless-content":"","close-icon-background-color":"white"},on:{close:function(a){i.trailPlanModal=!1}}},[r("img",{staticClass:"max-w-full h-auto",attrs:{src:null===(a=this.article.skiArea.trailPlan)||void 0===a||null===(e=a.sizes)||void 0===e||null===(l=e.medium)||void 0===l?void 0:l["image/jpeg"]}}),i._v(" "),r("div",{staticClass:"p-4 mx-auto text-center text-link-500 hover:text-link-600"},[i.trailPlanLink?r("div",{staticClass:"relative pl-6"},[r("tb-w-icon",{staticClass:"absolute mt-1 left-0",attrs:{icon:"external-link-solid",size:"1"}}),i._v(" "),r("a",{staticClass:"break-words",attrs:{href:i.trailPlanLink,target:"_blank"}},[i._v("\n                        "+i._s(i.$t("message.showTrailPlan"))+"\n                    ")])],1):i.hasTrailPlanImage?r("tb-w-download",{attrs:{download:null===(t=this.article.skiArea)||void 0===t?void 0:t.trailPlan,"custom-name":i.$t("message.downloadTrailPlan")}}):i._e()],1)]):i._e()],1)]):i._e()};t._withStripped=!0;var i={name:"TbWSkiAreaDetailInfoTeasers",props:{article:{type:Object,required:!0}},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,l,t;return(null===(a=this.article.skiArea)||void 0===a?void 0:a.trailPlan)||(null===(e=this.article.skiArea)||void 0===e||null===(l=e.webMediaLinks)||void 0===l||null===(t=l.trailPlan)||void 0===t?void 0:t.length)},trailPlanImageIsPdf(){var a,e,l;return!(null===(a=this.article.skiArea)||void 0===a||null===(e=a.trailPlan)||void 0===e||null===(l=e.url)||void 0===l||!l.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,l,t,i;return null!==(a=this.trailPlanPdfLink)&&void 0!==a?a:null===(e=this.article.skiArea)||void 0===e||null===(l=e.webMediaLinks)||void 0===l||null===(t=l.trailPlan)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.url},webcams(){var a;return(null===(a=this.article.webMediaLinks)||void 0===a?void 0:a.webcam)||[]}},i18n:{fallbackLocale:"en",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{downloadTrailPlan:"Pistenplan herunterladen",showTrailPlan:"Pistenplan anzeigen",trailPlan:"Pistenplan"}},en:{message:{downloadTrailPlan:"Download trail plan",showTrailPlan:"Show trail plan",trailPlan:"Trail plan"}}}}},n=l("KHd+"),r=Object(n.a)(i,t,[],!1,null,null,null);r.options.__file="node_modules/@newland/toubiz-widget/src/components/ski-area-detail/tb-w-ski-area-detail-info-teasers.vue";e.default=r.exports}}]);