import{L as d}from"./vendor-primevue-CwJpfSfT.js";import{c as u}from"./index-B2ExO30x.js";import{f as c,S as p}from"./widgetPropFilter-CygYoMQt.js";import{_ as f}from"./WidgetLayoutField.vue_vue_type_script_setup_true_lang-DgTj3rGB.js";import{bx as g,cM as w,cN as V,E as l,j as v,d as r,k as x,e as _,c as b,q as k,z as B,s as C,by as i,u as D,m as N}from"./vendor-other-7-Xbumhd.js";import"./vendor-vue-C-Pp8rCF.js";import"./vendor-xterm-CWYFmgbN.js";import"./vendor-three-rqA2cnBX.js";import"./vendor-tiptap-DYfn4Zt-.js";const P={class:"ml-auto flex w-fit items-center gap-2"},T=g({__name:"WidgetToggleSwitch",props:w({widget:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const t=V(o,"modelValue"),n=l(()=>c(o.widget.options,p)),a=l(()=>{const e=o.widget.options;return!e?.on&&!e?.off?null:t.value?e.on??"true":e.off??"false"});return(e,s)=>(r(),v(f,{widget:e.widget},{default:x(()=>[_("div",P,[a.value?(r(),b("span",{key:0,class:C(i(u)("text-sm transition-colors",t.value?"text-node-component-slot-text":"text-node-component-slot-text/50"))},D(a.value),3)):k("",!0),B(i(d),N({modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=m=>t.value=m)},n.value,{"aria-label":e.widget.name}),null,16,["modelValue","aria-label"])])]),_:1},8,["widget"]))}});export{T as default};
//# sourceMappingURL=WidgetToggleSwitch-CDkVXiit.js.map
