1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5396],{56543:(e,t,i)=>{i.r(t),i.d(t,{default:()=>s});var n=i(62816),o=i(83740),a=i(11520),l=i(79384),d=i(85436),r=o.createElement;function c(e){if(!e)return"";if(e.includes("|"))return e;const t=new Date(e);return Number.isNaN(t.getTime())?"":new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"long",year:"numeric"}).format(t)}function s({content:e}){const t=(null===e||void 0===e?void 0:e.title)||"",i=(null===e||void 0===e?void 0:e.description)||"",s=(null===e||void 0===e?void 0:e.video_link)||"",u=(null===e||void 0===e?void 0:e.video_image)||"",v=function(e=""){try{return new URL(e).searchParams.get("v")||""}catch{return""}}(s)||(null===e||void 0===e?void 0:e.id)||"",m=(null===e||void 0===e?void 0:e.effective)||(null===e||void 0===e?void 0:e.created)||"",[_,w]=o.useState([]),[p,b]=o.useState(!1);o.useEffect(()=>{const e=()=>{const e=(0,d.Yb)();b(!!e.externalMedia)};return e(),window.addEventListener("radiomec-cookie-updated",e),()=>{window.removeEventListener("radiomec-cookie-updated",e)}},[]),o.useEffect(()=>{if(!v)return;let e=!1;return async function(){try{const t=await(0,l.uS)(0);if(e)return;w(t.filter(e=>e.id!==v).slice(0,3))}catch{e||w([])}}(),()=>{e=!0}},[v]);return v&&s?r("main",{className:"video-content-view"},r("section",{className:"video-content-view__hero",style:u?{backgroundImage:`linear-gradient(180deg, rgba(13, 24, 28, 0.76) 0%, rgba(13, 24, 28, 0.96) 68%, rgba(13, 24, 28, 1) 100%), url(${u})`}:void 0},r("div",{className:"video-content-view__hero-inner"},r("span",{className:"video-content-view__eyebrow"},"Videocast"),r("h1",null,t),m?r("time",{dateTime:m},c(m)):null,i?r("p",null,i):null)),r("section",{className:"video-content-view__player-wrap"},p?r("iframe",{src:`https://www.youtube-nocookie.com/embed/${v}`,title:t,loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}):r("div",{className:"video-content-view__blocked"},r("div",{className:"video-content-view__blockedContent"},r("span",{className:"video-content-view__blockedEyebrow"},"m\xeddia externa"),r("h3",null,"Conte\xfado externo bloqueado"),r("p",null,"Este v\xeddeo utiliza m\xeddia incorporada do YouTube. Para assistir, permita o carregamento de m\xeddia externa."),r("button",{type:"button",className:"video-content-view__blockedButton",onClick:()=>{const e=(0,d.Yb)();(0,d.W0)((0,n.c)((0,n.c)({},e),{},{externalMedia:!0})),b(!0)}},"Permitir m\xeddia externa")))),_.length>0?r("section",{className:"video-content-view__related-section"},r("div",{className:"video-content-view__related-header"},r("span",null,"Continue assistindo"),r("h2",null,"Veja tamb\xe9m")),r("div",{className:"video-content-view__related-grid"},_.map(e=>r(a.cH,{key:e.id,to:`/videocasts/${e.id}`,className:"video-content-view__related-card"},r("img",{src:e.thumbnail,alt:"",loading:"lazy"}),r("div",null,e.publishedAt?r("time",null,c(e.publishedAt)):null,r("h3",null,e.title)))))):null):r("main",{className:"video-content-view"},r("section",{className:"video-content-view__state"},r("p",null,"V\xeddeo n\xe3o encontrado no site."),r(a.cH,{to:"/videocasts"},"Voltar para videocasts")))}}}]); 2//# sourceMappingURL=VideoContentView.354623a0.chunk.js.map
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.