PageSourceSearch

https://www.kompas.id/www-nuxt-v3/_nuxt/D47pMR2W.js

js kompas.id collected 2026-09-24 08:58:12 UTC 1,637 bytes, 1 lines download raw bytes

1import{d as h,N as f,a as v,Z as j,x as _,o as k,c as P,g as b,k as x,A as C}from"./C-AxzrAu.js";import{s as E}from"./DdGSOQY7.js";const J=["id"],X=h({__name:"MediaVideoPlayer",props:{src:{},cover:{},timer:{type:Boolean,default:!1}},emits:["isPlaying","trigger"],setup(d,{expose:p,emit:m}){const a=d,o=m,i=x(()=>`video-${Math.random().toString(36).substring(2,7)}`),w=C(null);let t=null,r=!1;function s(){r=!1;const e=window.jwplayer;t=e(i.value),t?.setup&&t.setup({abouttext:"Tentang Harian Kompas",aboutlink:"https://www.kompas.id/",androidhls:!0,aspectratio:"16:9",autostart:!1,image:a.cover,file:a.src,ga:{label:a.src,sendEnhancedEvents:!0},hlshtml:!0,preload:"none",primary:"html5",stretching:"fill",width:"100%"})}function l(){t?.on("play",()=>{r||(o("isPlaying"),r=!0)})}function c(){t?.on("time",e=>{e.position&&e.position>=5&&(u(),o("trigger"))})}function u(){t?.remove&&(t.remove(),t=null,r=!1,s())}function g(){t?.play?.()}function y(){window.dataLayer||(window.dataLayer=[]);const e=(...n)=>window.dataLayer.push(n);e("js",new Date),e("config","G-Z2XC7JN0CJ")}return f(()=>a.src,(e,n)=>{e!==n&&(s(),l())}),f(()=>a.timer,e=>{e&&c()}),v(()=>{j({script:[{src:"https://cdn.jwplayer.com/libraries/Pbv7HXX2.js",async:!0,defer:!0},{src:"https://content.jwplatform.com/libraries/IDzF9Zmk.js",defer:!0,async:!0},{src:"https://www.googletagmanager.com/gtag/js?id=G-Z2XC7JN0CJ",async:!0}]});const e=E(()=>{"jwplayer"in window&&(clearInterval(e),s(),l(),a.timer&&c(),y())},200)}),_(()=>{t?.remove?.(),t=null,r=!1}),p({playVideo:g,resetPlayer:u}),(e,n)=>(k(),P("div",{id:b(i),ref_key:"videoRef",ref:w},null,8,J))}});export{X 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.