import{L as d}from"./vendor-primevue-Cif--Rbw.js";import{c as u}from"./index-Bc79VbnU.js";import{f as p,S as c}from"./widgetPropFilter-CygYoMQt.js";import{_ as f}from"./WidgetLayoutField.vue_vue_type_script_setup_true_lang-CYDaxuge.js";import{a2 as g,dk as w,dl as V,E as l,j as v,d as r,k as x,e as k,c as _,q as B,z as C,s as D,a8 as i,u as P,m as S}from"./vendor-other-Dsj-QuOx.js";import"./vendor-vue-DNQSPQQ2.js";import"./vendor-reka-ui-WjwjFuZo.js";import"./vendor-xterm-CWYFmgbN.js";import"./vendor-three-ByuY8CdW.js";import"./vendor-tiptap-YMjM2h-Z.js";const E={class:"ml-auto flex w-fit items-center gap-2"},U=g({__name:"WidgetToggleSwitch",props:w({widget:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const t=V(o,"modelValue"),n=l(()=>p(o.widget.options,c)),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(()=>[k("div",E,[a.value?(r(),_("span",{key:0,class:D(i(u)("text-sm transition-colors",t.value?"text-node-component-slot-text":"text-node-component-slot-text/50"))},P(a.value),3)):B("",!0),C(i(d),S({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{U as default};
//# sourceMappingURL=WidgetToggleSwitch-C2c4CfAT.js.map
