1import{u as d}from"./CNexnSnA.js";import{u as n}from"./BSXXUVJK.js";import{s as p,B as f,e as h,c as _,d as w,b as l,u,i as y}from"./Buvsw_Mj.js";import{u as b}from"./Mv-jX_n0.js";const x=e=>{if(e.includes("mixcloud"))if(e.includes("<iframe")){let s=e.split("mixcloud.com")[1];return s.replace("/","%2F"),`<iframe width="100%" height="60" frameborder="0" src="https://www.mixcloud.com/widget/iframe/?hide_cover=1&autoplay=1&mini=1&light=0&feed=${s}"></iframe>`}else return`<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?hide_cover=1&mini=1&light=0&autoplay=1&hide_artwork=1&feed=${e}" frameborder="0" ></iframe>`;else if(e.includes("soundcloud"))return e.includes("<iframe")?`<iframe width="100%" height="20" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/${e.substring(e.indexOf("com/tracks/")+11,e.lastIndexOf("&color="))}&color=%23000000&auto_play=false&hide_related=true&show_comments=false&show_user=false&mini_player=true&show_artwork=false&show_reposts=false&show_teaser=false"></iframe>`:!1;return!1},v={class:"player__wrapper"},k=["innerHTML"],B={__name:"Player",setup(e){const s=d();n();const{player:r}=p(s),m=f(),o=b(m),i=()=>{let a="";return r.value.includes("mixcloud")?a+="player--mixcloud":r.value.includes("soundcloud")&&(a+="player--soundcloud"),o||(a+=" player--banner"),a};h(()=>o,a=>{i()},{immediate:!0});const c=()=>{s.clearPlayer()};return(a,t)=>(w(),_("aside",{class:y(["player",i()])},[l("div",v,[l("div",{class:"player__widget",innerHTML:("usePlayer"in a?a.usePlayer:u(x))(u(r))},null,8,k),l("div",{class:"player__close",onClick:t[0]||(t[0]=S=>c())})])],2))}};export{B 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.