(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[301],{"KHd+":function(e,i,t){"use strict";function n(e,i,t,n,a,r,o,l){var s,c="function"==typeof e?e.options:e;if(i&&(c.render=i,c.staticRenderFns=t,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),o?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=s):a&&(s=l?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),s)if(c.functional){c._injectStyles=s;var d=c.render;c.render=function(e,i){return s.call(i),d(e,i)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,s):[s]}return{exports:e,options:c}}t.d(i,"a",(function(){return n}))},gni1:function(e,i,t){"use strict";t.r(i);var n=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("tb-w-detail-header",{attrs:{"image-webp-small":e.buildImageUri(e.article.id,"article",480,"image/webp"),"image-webp-medium":e.buildImageUri(e.article.id,"article",1280,"image/webp"),"image-webp-large":e.buildImageUri(e.article.id,"article",1900,"image/webp"),"image-jpeg-small":e.buildImageUri(e.article.id,"article",480),"image-jpeg-medium":e.buildImageUri(e.article.id,"article",1280),"image-jpeg-large":e.buildImageUri(e.article.id,"article",1900),"alt-text":e.mainImageAltText,"has-image":e.article.media&&!!e.article.media.length,"focus-point":e.focusPoint},scopedSlots:e._u([e.displayNotificationSlot?{key:"notifications",fn:function(){var i,n;return[e.riskOfAvalanches&&"undefined"!==e.riskOfAvalanches?[t("tb-w-avalanche-risk",{attrs:{"avalanche-risk":e.riskOfAvalanches,"last-edit-at":null===(i=e.snowReports)||void 0===i||null===(n=i[0])||void 0===n?void 0:n.lastEditAt,"full-width":e.notificationIsFullWidth,"is-clickable":""}})]:e._e(),e._v(" "),e.currentInformationHasContent?[t("tb-w-notification",{attrs:{severity:"alert","full-width":e.notificationIsFullWidth},on:{click:function(i){e.notificationActive=!0}}},[t("div",{domProps:{innerHTML:e._s(e.article.currentInformation)}})]),e._v(" "),t("tb-w-modal",{attrs:{show:e.notificationActive,height:"content"},on:{close:function(i){e.notificationActive=!1}}},[t("div",{domProps:{innerHTML:e._s(e.article.currentInformation)}})])]:e._e()]},proxy:!0}:null,{key:"topline",fn:function(){var i,n,a,r,o,l;return[e.article.primaryCategory?t("span",{staticClass:"font-bold uppercase"},[e._v("\n                "+e._s(e.article.primaryCategory.name)+"\n            ")]):e._e(),e._v(" "),null!==(i=e.article.skiArea)&&void 0!==i&&i.elevationBase||null!==(n=e.article.skiArea)&&void 0!==n&&n.elevationSummit?[null!==(a=e.article.skiArea)&&void 0!==a&&a.elevationBase?t("span",[e._v("\n                    • "+e._s(null===(r=e.article.skiArea)||void 0===r?void 0:r.elevationBase)+"\n                ")]):e._e(),e._v(" "),null!==(o=e.article.skiArea)&&void 0!==o&&o.elevationSummit?t("span",[e._v("\n                    - "+e._s(null===(l=e.article.skiArea)||void 0===l?void 0:l.elevationSummit)+"\n                ")]):e._e(),e._v("\n                m\n            ")]:e._e()]},proxy:!0},{key:"share",fn:function(){return[t("client-only",[t("tb-w-share-popup",{staticClass:"-my-3",attrs:{title:e.article.text.name}})],1)]},proxy:!0}],null,!0)},[e._v(" "),e._v(" "),e._v("\n\n        "+e._s(e.article.text.name)+"\n    ")])],1)};n._withStripped=!0;var a=t("L2JU"),r={name:"TbWSkiAreaDetailHeader",props:{article:{type:Object,required:!0},snowReports:{type:Array,default:()=>[]}},data:()=>({notificationActive:!1}),computed:{...Object(a.e)("displayConfig",["headerVariant"]),displayNotificationSlot(){return this.currentInformationHasContent||"undefined"!==this.riskOfAvalanches},currentInformationHasContent(){var e;return(null===(e=this.article.currentInformation)||void 0===e?void 0:e.length)>3},riskOfAvalanches(){var e,i;return null===(e=this.snowReports)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.riskOfAvalanches},mainImageAltText(){var e,i;return null!==(e=this.article)&&void 0!==e&&null!==(i=e.media)&&void 0!==i&&i.length?this.article.media[0].altText:""},focusPoint(){var e,i;return(null===(e=this.article.media)||void 0===e||null===(i=e[0])||void 0===i?void 0:i.focusPoint)||null},notificationIsFullWidth(){return!this.article.media.length||"gallery"===this.headerVariant}}},o=t("KHd+"),l=Object(o.a)(r,n,[],!1,null,null,null);l.options.__file="node_modules/@newland/toubiz-widget/src/components/ski-area-detail/tb-w-ski-area-detail-header.vue";i.default=l.exports}}]);