import{B as e,Bt as t,D as n,F as r,G as i,J as a,Kt as o,L as s,M as c,N as l,P as u,R as d,Tt as f,Ut as p,Y as m,bt as h,ct as g,ht as _,j as v,lt as y,ot as b,p as x,qt as S,u as C,ut as w}from"./vue-3bs2-dMU.js";import{Et as T,Gt as E,K as D,P as O,Ut as k,h as A,ot as j}from"./stores-DmetsdTd.js";import{P as M,Pt as N,Q as P,X as F,Y as I,et as L,ht as R,mt as z,rt as B,tt as V}from"./vuetify-gGrfRH2I.js";import{r as H}from"./index-JyjLarNS.js";i(),p(),f();var U={class:`d-flex`},W={key:2},G={key:3},K=e({__name:`RightClickMenuEntry`,props:{entryData:{}},setup(e){let i=e,a=j(T?`Meta`:`Control`,{initial:!1}),o=v(()=>`ontouchstart`in window||navigator.maxTouchPoints>0);function f(){i.entryData.action?.()}return(i,p)=>{let m=w(`RightClickMenuEntry`,!0);return e.entryData.hidden?u(``,!0):(b(),l(B,{key:0,class:`px-3`,disabled:e.entryData.disabled,onClick:f},{default:h(()=>[c(`div`,U,[e.entryData.disabled&&e.entryData.disabledIcon?(b(),l(z,{key:0,class:`mr-2`},{default:h(()=>[s(S(e.entryData.disabledIcon),1)]),_:1})):e.entryData.icon?(b(),l(z,{key:1,class:`mr-2`},{default:h(()=>[s(S(e.entryData.icon),1)]),_:1})):u(``,!0),e.entryData.disabled&&e.entryData.disabledText?(b(),r(`span`,W,S(e.entryData.disabledText),1)):(b(),r(`span`,G,S(e.entryData.text),1)),d(R),!e.entryData.disabled&&e.entryData.children?(b(),l(z,{key:4},{default:h(()=>[...p[0]||=[s(` mdi-chevron-right `,-1)]]),_:1})):u(``,!0)]),e.entryData.children?(b(),l(I,{key:0,activator:`parent`,"open-on-hover":!o.value,"open-on-click":``,"close-on-content-click":!t(a),"close-delay":`10`,"open-delay":`0`,location:`right`},{default:h(()=>[d(L,null,{default:h(()=>[e.entryData.slots?.top?(b(),r(n,{key:0},[(b(!0),r(n,null,g(e.entryData.slots.top,(e,t)=>(b(),l(m,{key:t,"entry-data":e},null,8,[`entry-data`]))),128)),d(V,{thickness:`3`})],64)):u(``,!0),d(M,{items:e.entryData.children,"item-height":`48`,renderless:``},{default:h(({item:e})=>[d(m,{"entry-data":e},null,8,[`entry-data`])]),_:1},8,[`items`]),e.entryData.slots?.bottom?(b(),r(n,{key:1},[d(V,{thickness:`3`}),(b(!0),r(n,null,g(e.entryData.slots.bottom,(e,t)=>(b(),l(m,{key:t,"entry-data":e},null,8,[`entry-data`]))),128))],64)):u(``,!0)]),_:1})]),_:1},8,[`open-on-hover`,`close-on-content-click`])):u(``,!0)]),_:1},8,[`disabled`]))}}});i(),f();var q=e({__name:`RightClickMenu`,props:a({menuData:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=_(e,`modelValue`),r=j(T?`Meta`:`Control`,{initial:!1});return(i,a)=>n.value?(b(),l(I,{key:0,modelValue:n.value,"onUpdate:modelValue":a[0]||=e=>n.value=e,activator:`parent`,"close-on-content-click":!t(r),transition:`slide-y-transition`,class:`text-noselect`,"scroll-strategy":`none`},{default:h(()=>[d(L,null,{default:h(()=>[y(i.$slots,`top`),i.$slots.top?(b(),l(V,{key:0,thickness:`3`})):u(``,!0),d(M,{items:e.menuData,"item-height":`48`,renderless:``},{default:h(({item:e})=>[d(K,{"entry-data":e},null,8,[`entry-data`])]),_:1},8,[`items`]),i.$slots.bottom?(b(),l(V,{key:1,thickness:`3`})):u(``,!0),y(i.$slots,`bottom`)]),_:3})]),_:3},8,[`modelValue`,`close-on-content-click`])):u(``,!0)}});i(),p();var J=e({__name:`ColoredChip`,props:{defaultColor:{},disabled:{type:Boolean,default:!1},disabledValue:{},value:{}},setup(e){let t=e,{t:n}=D(),{current:i}=N(),a=A(),{enableHashColors:c,hideColoredChip:u}=x(a);function d(e){return i.value.colors[e]??e}function f(e){return p.value?e.darken(30):e}let p=v(()=>a.theme.mode===O.DARK&&a.theme.dark===`dark-oled`),m=v(()=>t.disabled||!c.value?t.defaultColor:E(t.value,f)),g=v(()=>t.disabled||!c.value?d(t.defaultColor):E(t.value,f)),_=v(()=>t.disabled?t.disabledValue||t.value||n(`common.none`):t.value),y=v(()=>!u.value);return(e,t)=>y.value?(b(),l(F,{key:0,color:m.value,variant:`flat`},{default:h(()=>[s(S(_.value),1)]),_:1},8,[`color`])):(b(),r(`div`,{key:1,class:`text-no-wrap`,style:o(`color: ${g.value}`)},S(_.value),5))}});i();var Y=H(e({__name:`RawNumberTooltip`,props:{value:{}},setup(e){let t=e,{locale:n}=C(),r=v(()=>{let e=new Intl.NumberFormat(n.value).formatToParts(1000.1),r=e.find(e=>e.type===`group`)?.value??`,`,i=e.find(e=>e.type===`decimal`)?.value??`.`;return k(t.value,r,i)});return(e,t)=>(b(),l(P,{text:r.value,location:`top`},{activator:h(({props:t})=>[c(`span`,m(t,{class:`raw-number-tooltip`,tabindex:`0`}),[y(e.$slots,`default`,{},void 0,!0)],16)]),_:3},8,[`text`]))}}),[[`__scopeId`,`data-v-e1d8b42b`]]);export{J as n,q as r,Y as t};