import './async-Djx13DAD.js';
import './MarkdownCode.svelte_svelte_type_style_lang-DJRtJayx.js';
import { u } from './DownloadLink-BLkRTIUs.js';
import { w } from './IconButton-7VBZdgpA.js';
import { o } from './Clear-CiR-WD8W.js';
import { l } from './Download-rAXPPveZ.js';
import { r } from './Edit-DVsun1ou.js';
import { r as r$1 } from './Undo-DlTKhhuO.js';
import './2-CeYbpaU1.js';
import { y } from './IconButtonWrapper-DlgTGGi-.js';

function z(a,m){a.component(u$1=>{let{editable:c=false,undoable:n=false,download:s=null,i18n:l$1,onedit:h,onclear:f,onundo:I,children:t}=m;y(u$1,{children:o$1=>{c?(o$1.push("<!--[-->"),w(o$1,{Icon:r,label:l$1("common.edit"),onclick:()=>h?.()})):o$1.push("<!--[!-->"),o$1.push("<!--]--> "),n?(o$1.push("<!--[-->"),w(o$1,{Icon:r$1,label:l$1("common.undo"),onclick:()=>I?.()})):o$1.push("<!--[!-->"),o$1.push("<!--]--> "),s?(o$1.push("<!--[-->"),u(o$1,{href:s,download:true,children:i=>{w(i,{Icon:l,label:l$1("common.download")});},$$slots:{default:true}})):o$1.push("<!--[!-->"),o$1.push("<!--]--> "),t?(o$1.push("<!--[-->"),t(o$1),o$1.push("<!---->")):o$1.push("<!--[!-->"),o$1.push("<!--]--> "),w(o$1,{Icon:o,label:l$1("common.clear"),onclick:i=>{f?.(),i.stopPropagation();}}),o$1.push("<!---->");}});});}

export { z };
//# sourceMappingURL=ModifyUpload-Dqp1u9XX.js.map
