const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ValueControlPopover-D9Kkl1Jz.js","./vendor-primevue-RJTR6wkG.js","./vendor-other-yzRpIrj2.js","./vendor-other-DYX1NpEr.css","./index-xLwXl4ov.js","./vendor-vue-ByIfjd1d.js","./vendor-xterm-CWYFmgbN.js","./vendor-xterm-xj0gfbX3.css","./vendor-three-b7sMVVQK.js","./vendor-tiptap-DcddbIvp.js","./index-DAjbCVbN.css"])))=>i.map(i=>d[i]);
var V=Object.defineProperty;var d=(o,s)=>V(o,"name",{value:s,configurable:!0});import{s as w,_}from"./vendor-primevue-RJTR6wkG.js";import{bq as C,cB as b,cC as B,r as u,E as P,w as h,c as k,d as c,p as x,A as m,v as M,m as E,q as p,br as f,I as W,e as y,u as z,df as A}from"./vendor-other-yzRpIrj2.js";const I={class:"relative grid grid-cols-subgrid"},U=C({__name:"WidgetWithControl",props:b({widget:{},component:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const s=A(()=>_(()=>import("./ValueControlPopover-D9Kkl1Jz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)),r=o,n=B(o,"modelValue"),i=u(),t=u(r.widget.controlWidget.value),v=P(()=>{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]"}});h(t,r.widget.controlWidget.update);const g=d(e=>{i.value.toggle(e)},"togglePopover");return(e,l)=>(c(),k("div",I,[(c(),x(M(e.component),E(e.$attrs,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=a=>n.value=a),widget:e.widget}),{default:p(()=>[m(f(w),{variant:"link",size:"small",class:"h-4 w-7 self-center rounded-xl bg-blue-100/30 p-0",onPointerdown:W(g,["stop","prevent"])},{default:p(()=>[y("i",{class:z(`${v.value} text-blue-100 text-xs size-3.5`)},null,2)]),_:1})]),_:1},16,["modelValue","widget"])),m(f(s),{ref_key:"popover",ref:i,modelValue:t.value,"onUpdate:modelValue":l[1]||(l[1]=a=>t.value=a)},null,8,["modelValue"])]))}});export{U as _};
//# sourceMappingURL=WidgetWithControl.vue_vue_type_script_setup_true_lang-DKOLlbKi.js.map
