(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[331,446,447,448],{"+Rg5":function(a,i,t){"use strict";t.d(i,"a",(function(){return e}));const e={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,i,t,e;return(null===(a=this.article.skiArea)||void 0===a?void 0:a.trailPlan)||(null===(i=this.article.skiArea)||void 0===i||null===(t=i.webMediaLinks)||void 0===t||null===(e=t.trailPlan)||void 0===e?void 0:e.length)},trailPlanImageIsPdf(){var a,i,t;return!(null===(a=this.article.skiArea)||void 0===a||null===(i=a.trailPlan)||void 0===i||null===(t=i.url)||void 0===t||!t.endsWith(".pdf"))},trailPlanPdfLink(){var a,i;return this.trailPlanImageIsPdf?null===(a=this.article.skiArea)||void 0===a||null===(i=a.trailPlan)||void 0===i?void 0:i.url:null},trailPlanLink(){var a,i,t,e,n,l;return null!==(a=null!==(i=this.trailPlanPdfLink)&&void 0!==i?i:null===(t=this.article.skiArea)||void 0===t||null===(e=t.webMediaLinks)||void 0===e||null===(n=e.trailPlan)||void 0===n||null===(l=n[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)||[]}}}},"KHd+":function(a,i,t){"use strict";function e(a,i,t,e,n,l,r,s){var o,d="function"==typeof a?a.options:a;if(i&&(d.render=i,d.staticRenderFns=t,d._compiled=!0),e&&(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__),n&&n.call(this,a),a&&a._registeredComponents&&a._registeredComponents.add(r)},d._ssrRegister=o):n&&(o=s?function(){n.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:n),o)if(d.functional){d._injectStyles=o;var c=d.render;d.render=function(a,i){return o.call(i),c(a,i)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,o):[o]}return{exports:a,options:d}}t.d(i,"a",(function(){return e}))},rOUj:function(a,i,t){"use strict";t.r(i);var e=function(){var a=this,i=a.$createElement,t=a._self._c||i;return a.webcams.length||a.showTrailPlanTeaser?t("div",[t("div",{staticClass:"max-w-4xl mx-auto"},[t(a.staticGridClass?"div":"tb-w-grid",a._b({tag:"component"},"component",a.gridAttributes,!1),[a.webcams.length?t("tb-w-icon-teaser-rounded",{attrs:{orientation:"horizontal",icon:"video-light-spaced","is-click-emitter":""},on:{click:function(i){a.webcamModal=!0}}},[a._v("\n                Webcams\n            ")]):a._e(),a._v(" "),a.showTrailPlanTeaser?t("tb-w-icon-teaser-rounded",a._b({attrs:{orientation:"horizontal",icon:"map-light-spaced","widget-route":{route:null,url:a.trailPlanLink}},on:{click:function(i){a.trailPlanModal=!0}}},"tb-w-icon-teaser-rounded",{"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?t("tb-w-webcams-modal",{attrs:{webcams:a.webcams,show:a.webcamModal},on:{close:function(i){a.webcamModal=!1}}}):a._e(),a._v(" "),a.showTrailPlanTeaser?t("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(i){a.trailPlanModal=!1}}}):a._e()],1)]):a._e()};e._withStripped=!0;var n={name:"TbWSkiAreaDetailInfoTeasers",mixins:[t("+Rg5").a],props:{article:{type:Object,required:!0},staticGridClass:{type:String,default:null}},computed:{gridAttributes(){return this.staticGridClass?{class:"grid gap-4 "+this.staticGridClass}:{columns:{xs:1,sm:2,md:3,lg:3,xl:3}}}},i18n:{fallbackLocale:"en",silentFallbackWarn:"undefined"==typeof window,messages:{de:{message:{trailPlan:"Pistenplan"}},en:{message:{trailPlan:"Trail plan"}}}}},l=t("KHd+"),r=Object(l.a)(n,e,[],!1,null,null,null);i.default=r.exports}}]);