import{q as l,as as g}from"./index-ClJ8cazm.js";import{a as f}from"./audioUtils-B0-sXPgv.js";import{_ as h}from"./WidgetSelect.vue_vue_type_script_setup_true_lang-IgWOEj6g.js";import v from"./AudioPreviewPlayer-dz4lHid_.js";import{bq as w,cF as i,cG as y,E as o,c as V,d as x,z as n}from"./vendor-other-Cmk2i5tl.js";import"./vendor-primevue-CyfaM-iT.js";import"./vendor-vue-D63Y1BGo.js";import"./vendor-xterm-CWYFmgbN.js";import"./vendor-three-ClVfPtHN.js";import"./vendor-tiptap-B-QhEHeV.js";import"./widgetPropFilter-CygYoMQt.js";import"./index-CFm9hQtm.js";import"./WidgetLayoutField.vue_vue_type_script_setup_true_lang-Co1rufOP.js";import"./LazyImage.vue_vue_type_script_setup_true_lang-DvJT3fyl.js";import"./WidgetWithControl.vue_vue_type_script_setup_true_lang-CZJ09Kap.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"},C=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"),s=o(()=>!t.nodeId||!l.canvas.graph?null:l.canvas.graph.getNodeById(t.nodeId)),u=o(()=>{const e=s.value;return e?g(e):!1}),m=o(()=>t.widget.value),p=o(()=>{const e=m.value;return e?f(e,"input"):""});return(e,d)=>(x(),V("div",_,[n(h,{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(v,{class:"col-span-2","audio-url":p.value,readonly:e.readonly,"hide-when-empty":u.value,"show-options-button":!0},null,8,["audio-url","readonly","hide-when-empty"])]))}});export{C as default};
//# sourceMappingURL=WidgetAudioUI-CBcvQE-q.js.map
