const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ValueControlPopover-Cuv0UcYZ.js","./rolldown-runtime-DIIn1E2Q.js","./vendor-primevue-DGevbYGF.js","./vendor-vue-core-BdhYaYlO.js","./dialogService-CwVeD8j9.js","./_plugin-vue_export-helper-BwIhnXfq.js","./vendor-other-D9HJWI2D.js","./vendor-firebase-yTFzdAQf.js","./vendor-three-BAimT_0v.js","./vendor-tiptap-BZHcjrm1.js","./vendor-reka-ui-CSo89nDv.js","./vendor-i18n-JubCsGQ_.js","./vendor-vueuse-2ddMYtS4.js","./vendor-axios-Bh9mA7CA.js","./vendor-zod-CdZx8tM8.js","./extensionStore-By6c6sCD.js","./vendor-markdown-th9BvURy.js","./api-C1WIrB4Z.js","./vendor-yjs-D82Tykvg.js","./i18n-DKtnmyh4.js","./widget-BFK1BNJ8.js","./types-Bc3W4AWd.js","./colorUtil-DJbZtU1U.js","./src-zUtq9Eft.js","./Popover-_oREh-V5.js","./Button-DHxPjNdi.js","./SelectValue-Ddx5FHmr.js","./useErrorHandling-CWU_3R6Y.js","./useExternalLink-DZBh_BZs.js","./envUtil-k-MziUGm.js","./useFeatureFlags-DLStzqlx.js","./VideoPlayOverlay-Cw8SRGp9.js","./telemetry-B10ff63e.js","./userStore-ChcnLOkA.js","./widgetTypes-Lta44m93.js","./markdownRendererUtil-J4WlXR5e.js","./vendor-other-CaaUC6Qe.css","./dialogService-CzaTQELD.css"])))=>i.map(i=>d[i]);
import{r as e}from"./rolldown-runtime-DIIn1E2Q.js";import{lt as t}from"./vendor-primevue-DGevbYGF.js";import{Bt as n,D as r,G as i,I as a,K as o,L as s,O as c,R as l,Rt as u,_t as d,et as f,j as p,k as m,kt as h,ot as g,pt as _,ut as v}from"./vendor-vue-core-BdhYaYlO.js";import{t as y}from"./Button-DHxPjNdi.js";import{t as b}from"./Popover-_oREh-V5.js";var x={class:`relative grid grid-cols-subgrid`},S=l({__name:`WidgetWithControl`,props:i({widget:{},component:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let i=s(()=>t(()=>import(`./ValueControlPopover-Cuv0UcYZ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37]),import.meta.url)),l=e,S=v(e,`modelValue`),C=h(l.widget.controlWidget.value),w=r(()=>{switch(C.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]`}});return _(C,l.widget.controlWidget.update),(e,t)=>(f(),p(`div`,x,[(f(),m(g(e.component),o(e.$attrs,{modelValue:S.value,"onUpdate:modelValue":t[1]||=e=>S.value=e,widget:e.widget}),{default:d(()=>[a(b,null,{button:d(()=>[a(y,{variant:`textonly`,size:`sm`,class:`h-4 w-7 p-0 self-center rounded-xl bg-primary-background/30 hover:bg-primary-background-hover/30`},{default:d(()=>[c(`i`,{class:n(`${w.value} text-primary-background text-xs w-full`)},null,2)]),_:1})]),default:d(()=>[a(u(i),{modelValue:C.value,"onUpdate:modelValue":t[0]||=e=>C.value=e},null,8,[`modelValue`])]),_:1})]),_:1},16,[`modelValue`,`widget`]))]))}});export{S as t};
//# sourceMappingURL=WidgetWithControl-C90I0VjU.js.map