1import{t as e}from"./jsx-runtime-D6yomgKs.js";import{t}from"./createReactComponent-Bru0Y_Jr.js";import{t as n}from"./utils-Ccm1xqfh.js";var r=t(`outline`,`alert-circle`,`AlertCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 8v4`,key:`svg-1`}],[`path`,{d:`M12 16h.01`,key:`svg-2`}]]);function i(e){if(`response`in e&&e.response){let t=e.response;if(!t)return e.message||`An unexpected error occurred`;if(t.data?.message)return t.data.message;let n=t.status,r={400:`Invalid request`,401:`Unauthorized - please sign in`,403:`Access denied`,404:`Resource not found`,500:`Server error - please try again`,503:`Service unavailable`};if(r[n])return r[n]}return`isAxiosError`in e&&!(`response`in e)?`Network error - please check your connection`:e.message||`An unexpected error occurred`}var a=e();function o({error:e,index:t,total:o,className:s}){let c=i(e),l=o!==void 0&&o>1&&t!==void 0;return(0,a.jsxs)(`div`,{className:n(`flex items-center gap-2 rounded-lg border border-destructive p-4`,s),children:[(0,a.jsx)(r,{className:`mt-0.5 h-4 w-4 shrink-0 text-destructive`}),(0,a.jsx)(`p`,{className:`text-destructive`,children:l?`Error ${t+1}: ${c}`:`Error: ${c}`})]})}function s({error:e,className:t,containerClassName:r}){if(!e)return null;let i=Array.isArray(e)?e.filter(e=>e!=null):e?[e]:[];return i.length===0?null:(0,a.jsx)(`div`,{"data-slot":`error-message`,className:n(`flex flex-col gap-2`,r),children:i.map((e,n)=>(0,a.jsx)(o,{error:e,index:n,total:i.length,className:t},n))})}export{s as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.