import{i as e,n as t}from"./rolldown-runtime-BKYq3fBv.js";import{$n as n,Cr as r,Gn as i,Mr as a,Nn as o,Tr as s,Xn as c,Zn as l,ai as u,ar as d,dt as f,er as p,ft as m,ir as h,si as g,sr as _,ui as v}from"./vendor-primevue-BhpMn3dH.js";import{ao as y,oo as b}from"./dialogService-BWZ1IAoU.js";var x,S,C,w,T,E,D,O,k,A,j,M=t((()=>{o(),f(),y(),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=_({__name:`ValueControlPopover`,props:{modelValue:{},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=b(),o=[{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`}],f=c(()=>t.get(`Comfy.WidgetControlMode`)),_=a(e,`modelValue`);return(e,t)=>(r(),p(`div`,x,[l(`div`,S,[h(v(e.$t(`widgets.valueControl.header.prefix`))+` `,1),l(`span`,C,v(f.value===`before`?e.$t(`widgets.valueControl.header.before`):e.$t(`widgets.valueControl.header.after`)),1),h(` `+v(e.$t(`widgets.valueControl.header.postfix`)),1)]),l(`div`,w,[(r(),p(i,null,s(o,i=>l(`div`,{key:i.mode,class:`flex items-center justify-between py-2 gap-7`},[l(`div`,T,[l(`div`,E,[i.icon?(r(),p(`i`,{key:0,class:g([i.icon,`text-base text-base-foreground`])},null,2)):n(``,!0),i.text?(r(),p(`span`,D,v(i.text),1)):n(``,!0)]),l(`div`,O,[l(`div`,k,[l(`span`,null,v(e.$t(`widgets.valueControl.${i.title}`)),1)]),l(`div`,A,v(e.$t(`widgets.valueControl.${i.description}`)),1)])]),d(u(m),{modelValue:_.value,"onUpdate:modelValue":t[0]||=e=>_.value=e,class:`flex-shrink-0`,"input-id":i.mode,value:i.mode},null,8,[`modelValue`,`input-id`,`value`])])),64))])]))}})})),N;t((()=>{M(),M(),N=j}))();export{N as default};
//# sourceMappingURL=ValueControlPopover-DYK8X1eb.js.map