import{T as u}from"./dVzHJMF1.js";function a({prazoInicial:f,prazoDias:e,prazoFinal:n}){const t={prazoInicial:f,prazoDias:e,prazoFinal:n},r=u(f);if(!f)return t;if(e||e===0)return t.prazoFinal=r.add(e,"day").toDate(),t;if(n){const c=u(n);return t.prazoDias=c.diff(r,"day"),t}return t}function d({prazoInicial:f,prazoAnos:e,prazoFinal:n}){const t={prazoInicial:f,prazoAnos:e,prazoFinal:n},r=u(f);if(!f)return t;if(e||e===0)return t.prazoFinal=r.add(e,"year").toDate(),t;if(n){const c=u(n);return t.prazoAnos=c.diff(r,"year"),t}return t}export{a,d as c};
