var o=Object.defineProperty;var d=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var i=(l,a,e)=>a in l?o(l,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[a]=e,n=(l,a)=>{for(var e in a||(a={}))p.call(a,e)&&i(l,e,a[e]);if(d)for(var e of d(a))c.call(a,e)&&i(l,e,a[e]);return l};const m=(l,a,e)=>{const t=n({},a);t.field_map.splice(l,0,{}),e(n({},t))},g=(l,a,e)=>{const t=n({},a);t.field_map.length>1&&t.field_map.splice(l,1),e(n({},t))},u=(l,a,e,t)=>{const s=n({},e);s.field_map[a][l.target.name]=l.target.value,l.target.value==="custom"&&(s.field_map[a].customValue=""),t(n({},s))};export{m as a,g as d,u as h};
