const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ValueControlPopover-kd7h8GFO.js","./vendor-primevue-Cif--Rbw.js","./vendor-other-Dsj-QuOx.js","./vendor-other-DYX1NpEr.css","./index-Bc79VbnU.js","./vendor-vue-DNQSPQQ2.js","./vendor-reka-ui-WjwjFuZo.js","./vendor-xterm-CWYFmgbN.js","./vendor-xterm-xj0gfbX3.css","./vendor-three-ByuY8CdW.js","./vendor-tiptap-YMjM2h-Z.js","./index-gxCJ3H4T.css"])))=>i.map(i=>d[i]);
var v=Object.defineProperty;var i=(o,a)=>v(o,"name",{value:a,configurable:!0});import{_ as V}from"./vendor-primevue-Cif--Rbw.js";import{a2 as _,dk as w,dl as C,r as u,E as k,w as x,c as h,d as m,j as B,z as c,t as M,m as P,k as p,I as b,e as y,s as z,a8 as E,dY as W}from"./vendor-other-Dsj-QuOx.js";import{_ as I}from"./index-Bc79VbnU.js";const $={class:"relative grid grid-cols-subgrid"},j=_({__name:"WidgetWithControl",props:w({widget:{},component:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const a=W(()=>V(()=>import("./ValueControlPopover-kd7h8GFO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)),r=o,n=C(o,"modelValue"),d=u(),t=u(r.widget.controlWidget.value),f=k(()=>{switch(t.value){case"increment":return"pi pi-plus";case"decrement":return"pi pi-minus";case"fixed":return"icon-[lucide--pencil-off]";default:return"icon-[lucide--shuffle]"}});x(t,r.widget.controlWidget.update);const g=i(e=>{d.value.toggle(e)},"togglePopover");return(e,l)=>(m(),h("div",$,[(m(),B(M(e.component),P(e.$attrs,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=s=>n.value=s),widget:e.widget}),{default:p(()=>[c(I,{variant:"textonly",size:"sm",class:"h-4 w-7 self-center rounded-xl bg-blue-100/30 p-0",onClick:b(g,["stop","prevent"])},{default:p(()=>[y("i",{class:z(`${f.value} text-blue-100 text-xs size-3.5`)},null,2)]),_:1})]),_:1},16,["modelValue","widget"])),c(E(a),{ref_key:"popover",ref:d,modelValue:t.value,"onUpdate:modelValue":l[1]||(l[1]=s=>t.value=s)},null,8,["modelValue"])]))}});export{j as _};
//# sourceMappingURL=WidgetWithControl.vue_vue_type_script_setup_true_lang-B5RYQ41H.js.map
