PageSourceSearch

https://www.diamond-eu.com/assets/js/news-detail-legacy.078f096e.js

js diamond-eu.com collected 2026-10-05 01:59:18 UTC 6,385 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkdiamond_web_frontend_tp1101"]=self["webpackChunkdiamond_web_frontend_tp1101"]||[]).push([[440],{58972:function(e,t,i){i.r(t),i.d(t,{default:function(){return H}});var n=i(29726),r={key:1,id:"main"},s={class:"news-section base-section top news-block-wrapper"},o={class:"container"},l={class:"row"},a={class:"col-12 col-lg-11 offset-lg-1"},c={class:"news-block"},d={class:"row news-detail-wrapper"},m={class:"col-12 col-lg-6"},u={class:"content-holder"},p={class:"txt-holder"},b=["innerHTML"],g={class:"col-12 col-lg-6"},f={key:0,class:"img-holder"},w=["src"],y={key:1,class:"img-holder"},h=["poster"],v=["src","type"],D=["srclang","label"],k=["srclang"],E={key:2,class:"loading-screen d-flex justify-content-center align-items-center"},V={key:3,class:"news-error-wrapper d-flex justify-content-center align-items-center"};function N(e,t,i,N,O,x){var B=this,S=(0,n.resolveComponent)("VueEasyLightbox"),_=(0,n.resolveComponent)("b-spinner");return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[e.newsDetails&&e.newsDetails.attributes.media?((0,n.openBlock)(),(0,n.createBlock)(S,{key:0,visible:O.lightBoxVisible,imgs:[this.newsDetails.attributes.media.full],index:O.imageIndex,onHide:t[0]||(t[0]=function(t){O.imageIndex=null,e.handleHideLightBox(),B.lightBoxVisible=!1})},null,8,["visible","imgs","index"])):(0,n.createCommentVNode)("",!0),e.newsDetails?((0,n.openBlock)(),(0,n.createElementBlock)("div",r,[(0,n.createElementVNode)("div",s,[(0,n.createElementVNode)("div",o,[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("div",a,[(0,n.createElementVNode)("div",c,[(0,n.createElementVNode)("div",d,[(0,n.createElementVNode)("div",m,[(0,n.createElementVNode)("div",u,[(0,n.createElementVNode)("h3",null,(0,n.toDisplayString)(e.newsDetails.attributes.title),1),(0,n.createElementVNode)("div",p,[(0,n.createElementVNode)("p",{innerHTML:e.newsDetails.attributes.description},null,8,b)])])]),(0,n.createElementVNode)("div",g,[e.newsDetails.attributes.media&&"image"===x.checkMediaType(e.newsDetails.attributes.media.type)?((0,n.openBlock)(),(0,n.createElementBlock)("div",f,[(0,n.createElementVNode)("img",{src:e.newsDetails.attributes.media.thumb,onClick:t[1]||(t[1]=function(t){O.imageIndex=0,e.showLightbox(),B.lightBoxVisible=!0}),class:"news-list-thumbnail-details",alt:""},null,8,w)])):(0,n.createCommentVNode)("",!0),e.newsDetails.attributes.media&&"video"===x.checkMediaType(e.newsDetails.attributes.media.type)?((0,n.openBlock)(),(0,n.createElementBlock)("div",y,[(0,n.createElementVNode)("video",{controls:"",preload:"metadata",poster:e.newsDetails.attributes.media.thumb,class:"news-list-thumbnail"},[(0,n.createElementVNode)("source",{src:e.newsDetails.attributes.media.full,type:e.newsDetails.attributes.media.type},null,8,v),(0,n.createElementVNode)("track",{kind:"subtitles",src:"",srclang:e.$i18n.locale,label:e.$t("message.languages."+e.$i18n.locale),default:""},null,8,D),(0,n.createElementVNode)("track",{kind:"descriptions",src:"",srclang:e.$i18n.locale,label:""},null,8,k),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("message.common.video_not_supported"))+". ",1)],8,h)])):(0,n.createCommentVNode)("",!0)])])])])])])])])):(0,n.createCommentVNode)("",!0),e.newsDetailsLoading&&!e.newsDetails?((0,n.openBlock)(),(0,n.createElementBlock)("div",E,[(0,n.createVNode)(_,{label:"Spinning"})])):(0,n.createCommentVNode)("",!0),e.newsDetailsError?((0,n.openBlock)(),(0,n.createElementBlock)("div",V,(0,n.toDisplayString)(e.$t("message.common.something_went_wrong")),1)):(0,n.createCommentVNode)("",!0)])}var O=i(66278),x=i(161),B=i(56880),S=i(95093),_=i.n(S);function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function T(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function C(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?T(Object(i),!0).forEach(function(t){L(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function L(e,t,i){return(t=P(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function P(e){var t=A(e,"string");return"symbol"==j(t)?t:t+""}function A(e,t){if("object"!=j(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var I={mixins:[x.A],props:["id","newsTitle"],name:"NewsDetail",components:{VueEasyLightbox:B.A},metaInfo:function(){if(this.newsDetails)return{title:this.newsDetails.attributes.title,meta:this.metaOgTags}},data:function(){return{imageIndex:null,lightBoxVisible:!1}},computed:C(C({},(0,O.L8)(["newsDetailsLoading","newsDetails","newsDetailsError"])),{},{descriptionWithoutHtmlTags:function(){var e=this.newsDetails.attributes.description.replaceAll(/<[^>]{0,100}>/g," ").replaceAll(/\s{2,}/g," ").trim();return e.length>51?e.substr(0,51)+"...":e},metaOgTags:function(){var e=[{property:"og:type",content:"article"},{property:"og:title",content:this.newsDetails.attributes.title},{property:"og:description",content:this.descriptionWithoutHtmlTags},{property:"og:article:published_time",content:_()(this.newsDetails.attributes.created_at).toISOString()},{property:"og:article:modified_time",content:_()(this.newsDetails.attributes.updated_at).toISOString()}];return this.newsDetails.attributes.media&&("video"===this.checkMediaType(this.newsDetails.attributes.media.type)&&e.splice(1,0,{property:"og:video",content:this.newsDetails.attributes.media.full}),"image"===this.checkMediaType(this.newsDetails.attributes.media.type)&&e.splice(1,0,{property:"og:image",content:this.newsDetails.attributes.media.og})),e}}),methods:{checkMediaType:function(e){return e.includes("video")?"video":"image"}},beforeUnmount:function(){this.$store.commit("CLEAR_NEWS_DETAILS_DATA")}},M=i(66262);const $=(0,M.A)(I,[["render",N]]);var H=$}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.