1import{f as o,o as n,j as t,r as g,i as m,L as B,N as P,n as y,y as $,g as u,p as Y,l as C,t as h,_ as D,F as b,q as M,B as E}from"./DwDhJPki.js";import{_ as S}from"./BPcKt-p-.js";const H=["src","title"],z={__name:"player-file",props:{fileUrl:{type:String,required:!0},videoTitle:{type:String,required:!0}},setup(p){const e=p;return(c,_)=>(n(),o("div",null,[t("video",{src:e.fileUrl,title:e.videoTitle,frameborder:"0",allow:"autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media; web-share",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:"",controls:"",autoplay:"",class:"absolute inset-0 h-full w-full rounded-[8px]"},null,8,H)]))}},R={class:"fragments-video relative"},N={class:"relative aspect-[670/376] h-full w-full"},U={key:2,class:"absolute inset-0 z-10"},j={key:0,class:"absolute inset-0 z-20 bg-black opacity-40"},q=["href"],F={class:"text-body-2"},A={class:"text-body-2"},O={class:"text-body-2"},G={__name:"video",props:{entry:{type:Object,required:!0}},setup(p){const e=p,c=g(!1),_=g(null);let s=null,d=!1,a=null;const r=m(()=>e.entry?.cVideoTypes[0]?.cVideoExternalUrl?"external":e.entry?.cVideoTypes[0]?.cVideoYoutubeID?"youtube":e.entry?.cVideoTypes[0]?.cLinkFile?.[0]?.url?"file":null),v=m(()=>e.entry?.cVideoTypes[0]?.cVideoYoutubeID),w=m(()=>e.entry?.cVideoTypes[0]?.cVideoTitle||"Embedded video"),x=()=>{!_.value||!v.value||(s=new window.YT.Player(_.value,{videoId:v.value,playerVars:{autoplay:0,controls:1,playsinline:1,modestbranding:1,rel:0},events:{onReady:l=>{const i=l.target.getIframe();i.title=`Video Player: ${w.value}`,i.tabIndex=-1},onStateChange:l=>{clearTimeout(a),l.data===window.YT.PlayerState.PLAYING?c.value=!0:(l.data===window.YT.PlayerState.PAUSED||l.data===window.YT.PlayerState.ENDED)&&(a=setTimeout(()=>{c.value=!1},300))}}}))},k=()=>{if(!d||!s)return;s.playVideo(),c.value=!0;const l=s.getIframe();l&&(l.tabIndex=0,l.focus())};function T(){c.value=!0}function V(){return new Promise(l=>{if(window.YT&&window.YT.Player){d=!0,l();return}if(window._ytReadyPromise){window._ytReadyPromise.then(()=>{d=!0,l()});return}if(window._ytReadyPromise=new Promise(i=>{window.onYouTubeIframeAPIReady=()=>{i()}}),window._ytReadyPromise.then(()=>{d=!0,l()}),!document.getElementById("youtube-api")){const i=document.createElement("script");i.id="youtube-api",i.src="https://www.youtube.com/iframe_api",document.head.appendChild(i)}})}return B(async()=>{r.value==="youtube"&&(await V(),x())}),P(()=>{r.value==="youtube"&&(s?.destroy(),s=null,clearTimeout(a))}),(l,i)=>{const L=z,I=Y,f=C;return n(),o("div",R,[t("div",N,[r.value==="youtube"?(n(),o("div",{key:0,ref_key:"videoPlayerContainer",ref:_,class:"absolute inset-0 z-1 aspect-[670/376] h-full w-full"},null,512)):y("",!0),r.value==="file"&&c.value?(n(),$(L,{key:1,"file-url":e.entry?.cVideoTypes[0]?.cLinkFile?.[0]?.url,"file-name":e.entry?.cVideoTypes[0]?.cVideoTitle},null,8,["file-url","file-name"])):y("",!0),!c.value||r.value==="external"?(n(),o("div",U,[u(I,{small:e.entry?.imgSmall?.[0],medium:e.entry?.imgMedium?.[0],large:e.entry?.imgLarge?.[0],wrapperClass:"w-full h-full"},null,8,["small","medium","large"]),r.value!=="external"?(n(),o("div",j)):y("",!0),r.value==="external"?(n(),o("a",{key:1,href:e.entry?.cVideoTypes[0]?.cVideoExternalUrl,target:"_blank",class:"group absolute top-1/2 left-1/2 z-30 flex -translate-x-1/2 -translate-y-1/2 items-center gap-24 rounded-[8px] bg-white px-4 py-4 pr-40 text-black shadow-lg"},[u(f,{type:"ui",name:"icon-play",class:"text-blue h-48 w-48 transition-transform duration-300 group-hover:scale-90"}),t("span",F,h(e.entry?.cLabelBtn?e.entry?.cLabelBtn:l.$t("a11y.play_video")),1)],8,q)):r.value==="youtube"?(n(),o("button",{key:2,onClick:k,type:"button",class:"group absolute top-1/2 left-1/2 z-30 flex -translate-x-1/2 -translate-y-1/2 items-center gap-24 rounded-[8px] bg-white px-4 py-4 pr-40 text-black shadow-lg"},[u(f,{type:"ui",name:"icon-play",class:"text-blue h-48 w-48 transition-transform duration-300 group-hover:scale-90"}),t("span",A,h(e.entry?.cLabelBtn?e.entry?.cLabelBtn:l.$t("a11y.play_video")),1)])):r.value==="file"?(n(),o("button",{key:3,onClick:T,type:"button",class:"group absolute top-1/2 left-1/2 z-30 flex -translate-x-1/2 -translate-y-1/2 items-center gap-24 rounded-[8px] bg-white px-4 py-4 pr-40 text-black shadow-lg"}
1,[u(f,{type:"ui",name:"icon-play",class:"text-blue h-48 w-48 transition-transform duration-300 group-hover:scale-90"}),t("span",O,h(e.entry?.cLabelBtn?e.entry?.cLabelBtn:l.$t("a11y.play_video")),1)])):y("",!0)])):y("",!0)])])}}},J={class:"px-grid-margin my-60 lg:my-120"},K={class:"grid grid-cols-1 items-stretch gap-[5rem] lg:grid-cols-[repeat(12,1fr)] lg:gap-50"},Q={class:"flex flex-col justify-between p-0"},W=["innerHTML"],X=["innerHTML"],Z={class:"mt-48 w-full flex-shrink-0"},ee={class:"relative w-full overflow-hidden rounded-[8px]"},te={class:"col-span-1 lg:col-span-5"},le={class:"flex h-full flex-col justify-between p-0"},ne=["innerHTML"],oe=["innerHTML"],ae={key:0,class:"relative flex mt-24"},se={class:"col-span-1 lg:col-span-6 lg:col-start-7"},re={class:"flex h-full items-center"},ie={class:"w-full"},ce={class:"relative w-full overflow-hidden rounded-[8px]"},ue={__name:"Video",props:{entry:{type:Object,required:!0}},setup(p){const e=p;return(c,_)=>{const s=G,d=S;return n(),o("section",J,[t("div",K,[e.entry?.cBlockVideoItem?.length>=2?(n(!0),o(b,{key:0},M(e.entry.cBlockVideoItem,a=>(n(),o("div",{key:a.id,class:"col-span-1 flex flex-col-reverse lg:col-span-6"},[t("article",Q,[t("div",null,[t("h2",{class:E(["h2",{"mb-30":a?.cDescription?.html,"m-0":!a?.cDescription?.html}]),innerHTML:a?.cTitle},null,10,W),t("div",{class:"body-2 max-w-[90%]",innerHTML:a?.cDescription?.html},null,8,X)]),t("div",Z,[t("div",ee,[u(s,{entry:a},null,8,["entry"])])])])]))),128)):(n(),o(b,{key:1},[t("div",te,[t("article",le,[t("div",null,[t("h2",{class:"h2 mb-30",innerHTML:e.entry?.cBlockVideoItem[0]?.cTitle},null,8,ne),t("div",{class:"body-2",innerHTML:e.entry?.cBlockVideoItem[0]?.cDescription?.html},null,8,oe),e.entry.cBlockVideoItem[0]?.cLink?.length>0?(n(),o("div",ae,[u(d,{class:"!w-auto",link:e.entry.cBlockVideoItem[0]?.cLink[0],theme:"dark"},null,8,["link"])])):y("",!0)])])]),t("div",se,[t("div",re,[t("div",ie,[t("div",ce,[u(s,{entry:e.entry?.cBlockVideoItem[0]},null,8,["entry"])])])])])],64))])])}}},pe=D(ue,[["__scopeId","data-v-f9ab1967"]]);export{pe 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.