import{v as l}from"./index-xLwXl4ov.js";import{i as f}from"./nodeFilterUtil-D49mCu4H.js";import{a as g}from"./audioUtils-BTLHWBFz.js";import{_ as v}from"./WidgetSelect.vue_vue_type_script_setup_true_lang-TWyNkMKN.js";import h from"./AudioPreviewPlayer-nGi8gauj.js";import{bq as w,cB as i,cC as y,E as o,c as V,d as x,A as n}from"./vendor-other-yzRpIrj2.js";import"./vendor-primevue-RJTR6wkG.js";import"./vendor-vue-ByIfjd1d.js";import"./vendor-xterm-CWYFmgbN.js";import"./vendor-three-b7sMVVQK.js";import"./vendor-tiptap-DcddbIvp.js";import"./widgetPropFilter-CygYoMQt.js";import"./index-wE4B8JeX.js";import"./WidgetLayoutField.vue_vue_type_script_setup_true_lang-C1YhXoEw.js";import"./LazyImage.vue_vue_type_script_setup_true_lang-AaN0rnip.js";import"./WidgetWithControl.vue_vue_type_script_setup_true_lang-DKOLlbKi.js";const _={class:"w-full col-span-2 widget-expands grid grid-cols-[minmax(80px,max-content)_minmax(125px,auto)] gap-y-3 p-3"},$=w({__name:"WidgetAudioUI",props:i({widget:{},readonly:{type:Boolean},nodeId:{}},{modelValue:{},modelModifiers:{}}),emits:i(["update:modelValue"],["update:modelValue"]),setup(a){const t=a,r=y(a,"modelValue"),u=o(()=>!t.nodeId||!l.canvas.graph?null:l.canvas.graph.getNodeById(t.nodeId)),s=o(()=>{const e=u.value;return e?f(e):!1}),m=o(()=>t.widget.value),p=o(()=>{const e=m.value;return e?g(e,"input"):""});return(e,d)=>(x(),V("div",_,[n(v,{modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=c=>r.value=c),widget:e.widget,class:"col-span-2"},null,8,["modelValue","widget"]),n(h,{class:"col-span-2","audio-url":p.value,readonly:e.readonly,"hide-when-empty":s.value,"show-options-button":!0},null,8,["audio-url","readonly","hide-when-empty"])]))}});export{$ as default};
//# sourceMappingURL=WidgetAudioUI-Der0Arox.js.map
