(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[258],{"+Rg5":function(a,i,e){"use strict";e.d(i,"a",(function(){return t}));const t={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,e,t;return(null===(a=this.article.skiArea)||void 0===a?void 0:a.trailPlan)||(null===(i=this.article.skiArea)||void 0===i||null===(e=i.webMediaLinks)||void 0===e||null===(t=e.trailPlan)||void 0===t?void 0:t.length)},trailPlanImageIsPdf(){var a,i,e;return!(null===(a=this.article.skiArea)||void 0===a||null===(i=a.trailPlan)||void 0===i||null===(e=i.url)||void 0===e||!e.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,e,t,n,l;return null!==(a=null!==(i=this.trailPlanPdfLink)&&void 0!==i?i:null===(e=this.article.skiArea)||void 0===e||null===(t=e.webMediaLinks)||void 0===t||null===(n=t.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,e){"use strict";function t(a,i,e,t,n,l,r,s){var o,d="function"==typeof a?a.options:a;if(i&&(d.render=i,d.staticRenderFns=e,d._compiled=!0),t&&(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}}e.d(i,"a",(function(){return t}))},rOUj:function(a,i,e){"use strict";e.r(i);var t=function(){var a=this,i=a.$createElement,e=a._self._c||i;return a.webcams.length||a.showTrailPlanTeaser?e("div",[e("div",{staticClass:"max-w-4xl mx-auto"},[e(a.staticGridClass?"div":"tb-w-grid",a._b({tag:"component"},"component",a.gridAttributes,!1),[a.webcams.length?e("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?e("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?e("tb-w-webcams-modal",{attrs:{webcams:a.webcams,show:a.webcamModal},on:{close:function(i){a.webcamModal=!1}}}):a._e(),a._v(" "),a.showTrailPlanTeaser?e("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()};t._withStripped=!0;var n={name:"TbWSkiAreaDetailInfoTeasers",mixins:[e("+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=e("KHd+"),r=Object(l.a)(n,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";i.default=r.exports}}]);