import{c as f}from"./NioPq_Hi.js";const g={GENERIC:"Something went wrong. Please contact us if the error persists.",UNKNOWN_RESPONSE:"Unexpected response"};function h(s,d={}){var l,p,i,E,c;const t={all:[]},u=Array.isArray((p=(l=s==null?void 0:s.response)==null?void 0:l.data)==null?void 0:p.detail)?s.response.data.detail:[],n=typeof((E=(i=s==null?void 0:s.response)==null?void 0:i.data)==null?void 0:E.detail)=="string"?s.response.data.detail:s==null?void 0:s.message;u.forEach(a=>{var o;!((o=a.loc)!=null&&o[1])||!a.msg||(t[a.loc[1]]=[`${f(a.msg)}.`])});const e=(c=s.response)!=null&&c.status?d[s.response.status]:"";return e?t.all.push(e):t.all.push(g.GENERIC),!e&&n&&t.all.push(`(${n})`),t}export{g as E,h as g};