import{i as e,n as t}from"./rolldown-runtime-ConPGZeh.js";import{Nn as n,Sr as r,Xn as i,er as a,ir as o,jr as s,or as c,pr as l}from"./vendor-primevue-D1-E3-0M.js";import{ot as u,st as d}from"./dialogService-DIdX_hbW.js";import{i as f,n as p}from"./audioUtils-DoV5agMU.js";import{n as m,r as h}from"./nodeFilterUtil-DIPIOW-Z.js";import{n as g,t as _}from"./WidgetSelect-jVikm9qG.js";import{n as v,t as y}from"./AudioPreviewPlayer-BCl7Z03J.js";var b,x,S=t((()=>{n(),d(),m(),f(),g(),v(),b={class:`w-full col-span-2 widget-expands grid grid-cols-[minmax(80px,max-content)_minmax(125px,auto)] gap-y-3 p-3`},x=c({__name:`WidgetAudioUI`,props:l({widget:{},readonly:{type:Boolean},nodeId:{}},{modelValue:{},modelModifiers:{}}),emits:l([`update:modelValue`],[`update:modelValue`]),setup(e){let t=e,n=s(e,`modelValue`),c=i(()=>!t.nodeId||!u.canvas.graph?null:u.canvas.graph.getNodeById(t.nodeId)),l=i(()=>{let e=c.value;return e?h(e):!1}),d=i(()=>t.widget.value),f=i(()=>{let e=d.value;return e?p(e,`input`):``});return(e,t)=>(r(),a(`div`,b,[o(_,{modelValue:n.value,"onUpdate:modelValue":t[0]||=e=>n.value=e,widget:e.widget,class:`col-span-2`},null,8,[`modelValue`,`widget`]),o(y,{class:`col-span-2`,"audio-url":f.value,readonly:e.readonly,"hide-when-empty":l.value,"show-options-button":!0},null,8,[`audio-url`,`readonly`,`hide-when-empty`])]))}})})),C;t((()=>{S(),S(),C=x}))();export{C as default};
//# sourceMappingURL=WidgetAudioUI-DNuxVnGK.js.map