function a(e){return Object.entries(e).flatMap(([t,o])=>o.map(r=>({field:t,message:r})))}function c(e){let t=[];return!e||typeof e!="object"||Object.entries(e).forEach(([o,r])=>{(Array.isArray(r)?r:r?[String(r)]:["Unknown error"]).forEach(n=>{t.push({field:o.trim(),message:n.trim()})})}),t}var m={currentFacility:"currentFacility",currentPeriod:"currentPeriod",lang:"lang",AR:"ar",EN:"en"};export{a,c as b,m as c};
