import{V as e,a as t}from"./i18n-BaLR3UdQ.js";import{t as n}from"./jsxRuntime.module-Cao1NCKs.js";import{n as r}from"./NoteLink-DzIkXtVf.js";import{n as i}from"./Admonition-C4vnc1XO.js";function a({error:a,noteId:s}){let{summary:c,details:l}=o(e(a));return n(i,{className:`render-error-card`,type:`caution`,icon:`bx bx-error-circle`,title:t(`render.error_title`),detailsLabel:t(`render.error_show_details`),details:l&&n(`pre`,{children:l}),children:[n(`div`,{className:`render-error-message`,children:c}),s&&n(`div`,{className:`render-error-note`,children:[n(`span`,{className:`render-error-note-label`,children:t(`render.error_note_label`)}),n(r,{notePath:s,showNoteIcon:!0,noPreview:!0})]})]})}function o(e){let t=e.trim(),n=t.indexOf(`
`);return n<0?{summary:t}:{summary:t.slice(0,n).trim(),details:t.slice(n+1).trim()||void 0}}export{a as t};