1import{c as u,m as g,gy as x,j as c,r as b,nE as h,jP as y}from"./main-BI9HT0KU.js";try{let i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new i.Error().stack;s&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[s]="644c1ac2-c27d-4d1e-b19a-007e4d5d2028",i._sentryDebugIdIdentifier="sentry-dbid-644c1ac2-c27d-4d1e-b19a-007e4d5d2028")}catch{}const v=x("rounded-lg px-4 py-3 text-sm no-underline",{variants:{variant:{default:"bg-slatea-action border border-slatea-normal text-slatea-normal",warning:"bg-ambera-action border border-ambera-normal text-ambera-normal",destructive:"bg-reda-action border border-reda-normal text-reda-normal",success:"bg-greena-action border border-greena-normal text-greena-normal"}},defaultVariants:{variant:"default"}}),j=function(s){const e=u.c(14);let d,r,t,a;e[0]!==s?({variant:a,className:r,children:d,...t}=s,e[0]=s,e[1]=d,e[2]=r,e[3]=t,e[4]=a):(d=e[1],r=e[2],t=e[3],a=e[4]);let n;e[5]!==r||e[6]!==a?(n=g(r,v({variant:a})),e[5]=r,e[6]=a,e[7]=n):n=e[7];let o;e[8]!==d?(o=c.jsx("div",{className:"flex items-center justify-between gap-2",children:d}),e[8]=d,e[9]=o):o=e[9];let l;return e[10]!==t||e[11]!==n||e[12]!==o?(l=c.jsx("div",{...t,className:n,children:o}),e[10]=t,e[11]=n,e[12]=o,e[13]=l):l=e[13],l};function E(i){const s=u.c(9),{error:e}=i,d=b.useRef(null);let r,t;if(s[0]!==e?(r=()=>{e&&(d.current?.scrollIntoView({behavior:"smooth"}),h(e))},t=[e],s[0]=e,s[1]=r,s[2]=t):(r=s[1],t=s[2]),b.useEffect(r,t),!e)return null;let a=e.message;if(typeof e.response=="string"&&(a=e.response),typeof e.response?.data=="string")a=e.response?.data;else if(e.response?.data?.details)a=(e.response?.data).details?.[0]?.message||"";else if(e.response?.data&&"error"in e.response?.data)a=(e.response?.data).error;else if(e.response?.data&&"detail"in e.response?.data)a=(e.response?.data).detail;else if(e.response?.data&&"message"in e.response?.data){const m=e.response.data,p=m.issues?.[0]?.error;a=p&&p!==m.message?`${m.message} ${p}`:m.message}let n;s[3]===Symbol.for("react.memo_cache_sentinel")?(n=c.jsx(y,{className:"h-6 w-6"}),s[3]=n):n=s[3];let o;s[4]===Symbol.for("react.memo_cache_sentinel")?(o=c.jsx("span",{className:"font-semibold",children:"Oh no! Something went wrong."}),s[4]=o):o=s[4];let l;s[5]!==a?(l=a&&c.jsx("span",{className:"text-sm",children:a}),s[5]=a,s[6]=l):l=s[6];let f;return s[7]!==l?(f=c.jsx(j,{ref:d,variant:"destructive",children:c.jsxs("div",{className:"flex gap-3 items-center",children:[n,c.jsxs("div",{className:"flex flex-col gap-0.5",children:[o,l]})]})}),s[7]=l,s[8]=f):f=s[8],f}export{j as B,E}; 2//# sourceMappingURL=Callout-BDn_eL3W.js.map
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.