import{B as e,Bt as t,Dt as n,G as r,L as i,Mt as a,N as o,R as s,T as c,Tt as l,Ut as u,bt as d,nt as f,ot as p,qt as m,y as h}from"./vue-3bs2-dMU.js";import{U as g}from"./stores-DmetsdTd.js";import{C as _,D as v,K as y,S as b,T as x,U as S,W as C,b as w,w as T}from"./vuetify-gGrfRH2I.js";r(),l(),u(),h();var E=e({__name:`LegacyCopyDialog`,props:{guid:{},value:{}},emits:[`submit`],setup(e,{emit:r}){let l=e,u=r,{isOpened:h}=g(l.guid),E=a();function D(){E.value?.select()}function O(){u(`submit`),h.value=!1}return f(()=>{D()}),(r,a)=>(p(),o(b,{modelValue:t(h),"onUpdate:modelValue":a[0]||=e=>n(h)?h.value=e:null},{default:d(()=>[s(_,null,{default:d(()=>[s(x,{class:`ios-margin`},{default:d(()=>[s(S,{color:`transparent`},{default:d(()=>[s(C,null,{default:d(()=>[i(m(r.$t(`dialogs.legacy_copy.title`)),1)]),_:1}),s(y,{icon:`mdi-close`,onClick:O})]),_:1})]),_:1}),s(T,null,{default:d(()=>[s(t(w),{ref_key:`inputRef`,ref:E,value:e.value,readonly:``,onMousedown:c(D,[`prevent`])},null,8,[`value`])]),_:1}),s(v,null,{default:d(()=>[s(y,{onClick:O},{default:d(()=>[i(m(r.$t(`common.close`)),1)]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`]))}});export{E as default};