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