import{cs as g,aP as l}from"./index-BKr2rJhV.js";const d=(s,a={})=>{const t=g(l(".",s),a),n=Array.isArray(t)?t.find(i=>!!(i!=null&&i.message)):t;return{info:n==null?void 0:n.message,intent:n!=null&&n.message?"error":"default"}},m=(s,a={})=>{var n;const t=Array.isArray(a==null?void 0:a[s])?(n=a==null?void 0:a[s])==null?void 0:n.find(i=>!!(i!=null&&i.message)):a==null?void 0:a[s];return{errorMessage:t==null?void 0:t.message,isInvalid:!!(t!=null&&t.message)}};export{m as a,d as g};
