1import{r as s,N as c,D as r,O as p,o as f,c as i,q as y}from"./DY4Ho3A2.js";const d={class:"sound-player"},m=["src","loop","controls","autoplay","volume"],g={__name:"HtmlSound",props:{url:{type:String},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},controls:{type:Boolean,default:!1},volume:{type:Number,default:1},playing:{type:Boolean,default:!1}},setup(e){const o=e,a=s(null),t=s(o.playing);c(()=>o.playing,l=>{l?u():n()}),r(()=>{a.value.volume=o.volume,o.autoplay&&u()}),p(()=>{n()});function u(){a.value.play().catch(l=>{}),t.value=!0}function n(){a.value.pause(),t.value=!1}return(l,v)=>(f(),i("div",d,[y("audio",{ref_key:"audio",ref:a,src:e.url,loop:e.loop,controls:e.controls,autoplay:e.autoplay,volume:e.volume},null,8,m)]))}};export{g 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.