import{r as p,V as _}from"./VForm-CXf-xKYz.js";import{V as f}from"./VTextField-CWm47OUI.js";import{h as i,g as V,c as v,o as l,w as x,m as o,F as s,G as F,e as y,a as b,t as k,f as g}from"./index-CTxlYqj4.js";const h={class:"m-label"},U={__name:"ResourcesForm",props:{modelValue:{type:Object,default:null}},setup(m,{expose:n}){const u=m,t=i(()=>u.modelValue),r=V();function c(){return t.value.map(a=>({name:a.name,max_value:a.max_value}))}return n({vFormRef:r,getPayload:c}),(a,B)=>(l(),v(_,{ref_key:"vFormRef",ref:r},{default:x(()=>[(l(!0),o(s,null,F(t.value,e=>(l(),o(s,{key:e.name},[y("label",h,k(e.label),1),b(f,{modelValue:e.max_value,"onUpdate:modelValue":d=>e.max_value=d,type:"number",variant:"outlined",dense:"",rules:[g(p).required]},null,8,["modelValue","onUpdate:modelValue","rules"])],64))),128))]),_:1},512))}};export{U as _};
