1"use strict";(globalThis.webpackChunkmjf_website=globalThis.webpackChunkmjf_website||[]).push([[368],{90812(t,e,o){o.r(e),o.d(e,{default:()=>n});o(74423);var s=o(50403);class n extends s.A{init(){this.bindEvents()}bindEvents(){this.on("click","[data-spotify-url], [data-soundcloud-url]",this.handleListenClick.bind(this))}handleListenClick(t){t.preventDefault();const e=t.target,o=e.getAttribute("data-spotify-url"),s=e.getAttribute("data-soundcloud-url");let n=null,u=null;if(o?(n=this.convertSpotifyToEmbed(o),u="spotify"):s&&(n=this.convertSoundcloudToEmbed(s),u="soundcloud"),n){const t=new CustomEvent("program-widget:load",{detail:{embedUrl:n,platform:u},bubbles:!0});document.dispatchEvent(t)}}convertSpotifyToEmbed(t){if(t.includes("/embed/"))return t;const e=t.match(/open\.spotify\.com\/(track|album|playlist|artist)\/([a-zA-Z0-9]+)/);return e?`https://open.spotify.com/embed/${e[1]}/${e[2]}?utm_source=generator&theme=0`:t}convertSoundcloudToEmbed(t){if(t.includes("w.soundcloud.com/player"))return t;const e=t.match(/soundcloud\.com\/([^/?]+\/[^/?]+)/);if(e){const t="https://soundcloud.com/"+e[1];return`https://w.soundcloud.com/player/?url=${encodeURIComponent(t)}&color=%23141414&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true`}return t}}}}]); 2//# sourceMappingURL=c-program-card.57d620ed.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.