import{B as e,G as t,I as n,J as r,Mt as i,N as a,Tt as o,bt as s,ht as c,j as l,lt as u,ot as d}from"./vue-3bs2-dMU.js";import{a as f}from"./stores-DmetsdTd.js";import{M as p}from"./vuetify-gGrfRH2I.js";t(),o();var m=e({__name:`HistoryField`,props:r({historyKey:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e,{expose:t}){let r=e,o=c(e,`modelValue`),m=f(),h=i(),g=l(()=>m.getHistory(r.historyKey));function _(){m.pushValueToHistory(r.historyKey,o.value??``)}return t({saveValueToHistory:_,focus:()=>h.value?.focus()}),(e,t)=>(d(),a(p,{ref_key:`field`,ref:h,modelValue:o.value,"onUpdate:modelValue":t[0]||=e=>o.value=e,items:g.value},n({_:2},[e.$slots.prepend?{name:`prepend`,fn:s(()=>[u(e.$slots,`prepend`)]),key:`0`}:void 0]),1032,[`modelValue`,`items`]))}});export{m as t};