PageSourceSearch

https://cdn.otempo.pt/_nuxt/DyOh6oOn.js

js otempo.pt collected 2026-09-26 15:53:39 UTC 3,420 bytes, 1 lines download raw bytes

1import{n as e}from"./hePW80VL.js";import{s as t}from"./CDchkGYp.js";import{$ as n,L as r,X as i,b as a,d as o,f as s,ft as c,u as l}from"./CmqwOI06.js";import{t as u}from"./DDBPNphb.js";import{t as d}from"./CHzIszY3.js";import{t as f}from"./Bw0SlJ1T.js";var p=50,m=100,h=a({__name:`Video`,props:{keyValues:{},autoPlay:{type:Boolean}},setup(e){let a=e,h=u(`guid`),g=t(),_=f(),v=l(()=>_.subscriberElt),y=c(!1),b=l(()=>{let e=a.keyValues;return!e||Object.keys(e).length===0?`player%3D${g.public.videoPlayer.videoAuto}`:Object.entries(e).map(([e,t])=>`${e}=${Array.isArray(t)?t.join(`,`):t}`).join(`&`).replace(/=/g,`%3D`).replace(/&/g,`%26`).replace(/,/g,`%2C`)+`%26player%3D${g.public.videoPlayer.videoAuto}`}),x=l(()=>({sostenibilidad:`sustainability`,prevision:`meteorology`,"vida-saludable":`healthyHabits`,"tiempo-libre":`leisureTime`,deporte:`leisureTime`,"cambio-climatico":`climateChange`,escapadas:`travel`})[a.keyValues?.news_category||`meteorology`]||`meteorology`),S=()=>`https://pubads.g.doubleclick.net/gampad/ads?${new URLSearchParams({iu:`/21818248268/web-eltiempo.es/news/${x.value}/article/video`,description_url:document.URL,ppid:h.value||``,...b.value&&{cust_params:b.value},tfcd:`0`,plcmt:`1`,npa:`0`,sz:`400x300|640x480`,gdfp_req:`1`,unviewed_position_start:`1`,output:`vast`,env:`vp`,impl:`s`,correlator:``}).toString()}`,C=()=>({tag:S(),client:`googima`,adscheduleid:`tyy56147`,endstate:`close`,dismissible:!1,autoplayadsmuted:!0,displayHeading:!0}),w=e=>{e.forEach(e=>{let t=window.jwplayer(`videoJwPlayer_${e}`);[`playing`,`buffering`].includes(t.getState())&&t.pause()})},T=e=>`PT${Math.floor(e/3600)}H${Math.floor(e%3600/60)}M${e%60}S`,E=(e,t)=>{let n=window.jwplayer;if(typeof n!=`function`)return;let r=e.value,i=document.createElement(`div`);i.id=`videoJwPlayer_${r}`,e.parentNode?.insertBefore(i,e);let o={playlist:`https://cdn.jwplayer.com/v2/media/${r}`,mute:!0,autostart:a.autoPlay,floating:{mode:`notVisible`}};v.value||(o.advertising=C());let s=n(i.id);s.setup(o).on(`play`,()=>w(t.filter(e=>e!==r))).on(`adPlay`,()=>w(t.filter(e=>e!==r))).on(`ready`,()=>{s.setCurrentCaptions(1);let e=i.parentElement;e&&(e.style.height=`${s.getHeight()}px`)}).on(`playlistItem`,({item:e})=>{let t=i.parentElement?.parentElement;t&&(t.querySelector(`[itemprop="uploadDate"]`)?.setAttribute(`content`,new Date(e.pubdate*1e3).toISOString()),t.querySelector(`[itemprop="name"]`)?.setAttribute(`content`,e.title),t.querySelector(`[itemprop="description"]`)?.setAttribute(`content`,e.description),t.querySelector(`[itemprop="duration"]`)?.setAttribute(`content`,T(e.duration)),t.querySelector(`[itemprop="thumbnailUrl"]`)?.setAttribute(`content`,e.image),t.querySelector(`[itemprop="contentUrl"]`)?.setAttribute(`content`,e.allSources[3].file))})},D=()=>{let e=document.getElementsByName(`playerValue`);if(!e.length)return;let t=[];e.forEach(e=>{t.push(e.value),E(e,t)})},O=async()=>{if(typeof window>`u`)return!1;let e=0;for(;e<p;){if(typeof window.jwplayer==`function`)return!0;await new Promise(e=>setTimeout(e,m)),e++}return!1};return i(()=>a.keyValues,async e=>{if(e&&Object.keys(e).length!==0&&!y.value){if(!await O()){console.warn(`Timeout: JWPlayer library not available.`);return}D(),y.value=!0}},{immediate:!0}),(e,t)=>{let i=d;return r(),s(i,null,{default:n(()=>[...t[0]||=[o(`div`,null,null,-1)]]),_:1})}}}),g=e({default:()=>_}),_=Object.assign(h,{__name:`JwplayerVideo`});export{g as n,_ as t};

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.