import{i as e,n as t}from"./rolldown-runtime-ConPGZeh.js";import{$n as n,Gn as r,Nn as i,Sr as a,Xn as o,Zn as s,dt as c,er as l,ft as u,ii as d,ir as f,jr as p,li as m,oi as h,or as g,rr as _,wr as v}from"./vendor-primevue-D1-E3-0M.js";import{Ja as y,qa as b}from"./dialogService-DIdX_hbW.js";var x,S,C,w,T,E,D,O,k,A,j,M=t((()=>{i(),c(),b(),x={class:`w-113 max-w-md p-4 space-y-4`},S={class:`text-sm text-muted-foreground leading-tight`},C={class:`text-base-foreground font-medium`},w={class:`space-y-2`},T={class:`flex items-center gap-2 flex-1 min-w-0`},E={class:`flex items-center justify-center w-8 h-8 rounded-lg flex-shrink-0 bg-secondary-background border border-border-subtle`},D={key:1,class:`text-xs font-normal text-base-foreground`},O={class:`flex flex-col gap-0.5 min-w-0 flex-1`},k={class:`text-sm font-normal text-base-foreground leading-tight`},A={class:`text-sm font-normal text-muted-foreground leading-tight`},j=g({__name:`ValueControlPopover`,props:{modelValue:{},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=y(),i=[{mode:`fixed`,icon:`icon-[lucide--pencil-off]`,title:`fixed`,description:`fixedDesc`},{mode:`increment`,text:`+1`,title:`increment`,description:`incrementDesc`},{mode:`decrement`,text:`-1`,title:`decrement`,description:`decrementDesc`},{mode:`randomize`,icon:`icon-[lucide--shuffle]`,title:`randomize`,description:`randomizeDesc`}],c=o(()=>t.get(`Comfy.WidgetControlMode`)),g=p(e,`modelValue`);return(e,t)=>(a(),l(`div`,x,[s(`div`,S,[_(m(e.$t(`widgets.valueControl.header.prefix`))+` `,1),s(`span`,C,m(c.value===`before`?e.$t(`widgets.valueControl.header.before`):e.$t(`widgets.valueControl.header.after`)),1),_(` `+m(e.$t(`widgets.valueControl.header.postfix`)),1)]),s(`div`,w,[(a(),l(r,null,v(i,r=>s(`div`,{key:r.mode,class:`flex items-center justify-between py-2 gap-7`},[s(`div`,T,[s(`div`,E,[r.icon?(a(),l(`i`,{key:0,class:h([r.icon,`text-base text-base-foreground`])},null,2)):n(``,!0),r.text?(a(),l(`span`,D,m(r.text),1)):n(``,!0)]),s(`div`,O,[s(`div`,k,[s(`span`,null,m(e.$t(`widgets.valueControl.${r.title}`)),1)]),s(`div`,A,m(e.$t(`widgets.valueControl.${r.description}`)),1)])]),f(d(u),{modelValue:g.value,"onUpdate:modelValue":t[0]||=e=>g.value=e,class:`flex-shrink-0`,"input-id":r.mode,value:r.mode},null,8,[`modelValue`,`input-id`,`value`])])),64))])]))}})})),N;t((()=>{M(),M(),N=j}))();export{N as default};
//# sourceMappingURL=ValueControlPopover-DXSyOe6g.js.map