1import{G,V as w,q as r,x as b,aq as p,ax as D,P as f,O as I,av as V,J as $,ay as N,_ as B,r as c,o as m,c as g,$ as u,a as v,h,l as S,w as x,g as O,t as E}from"./index-BpyDjooP.js";var C=Object.defineProperty,L=Object.getOwnPropertyDescriptor,l=(t,e,i,n)=>{for(var o=n>1?void 0:n?L(e,i):e,s=t.length-1,d;s>=0;s--)(d=t[s])&&(o=(n?d(e,i,o):d(o))||o);return n&&o&&C(e,i,o),o};const j=G("edition");let a=class extends w{constructor(){super(...arguments),this.height=r.thirdParty.videoGlomex.height||"300px",this.aspectRatio=`${r.thirdParty.videoGlomex.ratioX||16}:${r.thirdParty.videoGlomex.ratioY||9}`,this.consentManagerVendorId=r.consentManager.vendorIds.glomex,this.loading=!0}get isPreview(){return b()&&window.self!==window.top}get showGlomex(){return!this.edition.disableGlomex}async initialiseSDK(){return new Promise(e=>{this.EventBus.subscribe(p.getSDKLoadedEventName(),()=>e()),this.EventBus.publish(p.getLoadSDKEventName())})}calculateHeight(){return r.thirdParty.videoGlomex.height||"300px"}addGlomexPayer(){var o,s;const e=document.createElement("glomex-player"),i=r.thirdParty.videoGlomex.integrationId[this.edition.publication],n=r.thirdParty.videoGlomex.contextualIntegrationId[this.edition.publication];e.dataset.aspectRatio=this.aspectRatio,e.dataset.integrationId=this.embedId?i:n,this.embedId?e.dataset.playlistId=this.embedId:e.dataset.act="initially-hidden",(s=(o=this.$refs)==null?void 0:o.glomexPlayer)==null||s.appendChild(e)}async beforeMount(){await D(),await this.initialiseSDK(),this.loading=!1}mounted(){this.isPreview||this.addGlomexPayer(),this.height=this.calculateHeight()}updated(){this.$nextTick(()=>{this.height=this.calculateHeight()})}beforeUnmount(){var e,i;(i=(e=this.$refs)==null?void 0:e.glomexPlayer)==null||i.remove()}};l([f({type:String})],a.prototype,"title",2);l([f()],a.prototype,"embedId",2);l([j.Getter("getEdition")],a.prototype,"edition",2);a=l([I({name:"VideoGlomex",components:{DnmLoadingBanner:V,DnmParagraph:$,DnmSimpleNotification:N}})],a);const K={key:0,class:"videoGlomex"},M=["data-cmp-vendor"],H={key:0,"data-testid":"videoglomex-loading"},F={class:"videoGlomex__player","data-testid":"videoglomex-player",ref:"glomexPlayer"};function R(t,e,i,n,o,s){const d=c("DnmLoadingBanner"),_=c("DnmParagraph"),P=c("DnmSimpleNotification");return t.showGlomex?(m(),g("section",K,[u("div",{"data-cmp-vendor":t.consentManagerVendorId,class:"cmplazyload","data-cmp-preview":""},[t.loading?(m(),g("div",H,[v(d,{height:t.height,"data-testid":"videoglomex-loading-banner",width:"100%"},null,8,["height"])])):h("",!0),u("div",F,null,512)],8,M),t.isPreview?(m(),S(P,{key:0,"notification-title":t.$t("videoGlomex.placeholderHeadline"),"notification-type":"warning"},{message:x(()=>[v(_,null,{default:x(()=>[O(E(t.$t("videoGlomex.placeholderText")),1)]),_:1})]),_:1},8,["notification-title"])):h("",!0)])):h("",!0)}const q=B(a,[["render",R],["__scopeId","data-v-c9dcf3d9"]]);var y;try{"__c"in a&&((y=a.__c).componentFileName??(y.componentFileName=Object.create(null)),Object.defineProperty(a.__c,"componentFileName",{value:"app/components/storyline/videoglomex/VideoGlomex.vue"}))}catch(t){console.error("injectFileNamePlugin",t)}export{q as default};
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.