import './async-Djx13DAD.js';
import { a as attr, d as attr_class, g as attr_style, j as stringify } from './index-B7gr0Dsc.js';
import './2-CeYbpaU1.js';
import { c } from './Image-Bw5_tidM.js';
import './MarkdownCode.svelte_svelte_type_style_lang-DJRtJayx.js';

/* empty css                                          */function B(_,d){_.component(t=>{let{elem_id:f,elem_classes:c$1=[],visible:s$1,variant:m,size:g,value:u,link:h,link_target:b,icon:l,disabled:a,scale:o,min_width:p,onclick:w=()=>{},children:n}=d;h&&h.length>0?(t.push("<!--[-->"),t.push(`<a${attr("href",h)}${attr("target",b)}${attr("rel",b==="_blank"?"noopener noreferrer":void 0)}${attr("aria-disabled",a)}${attr_class(`${stringify(g)} ${stringify(m)} ${stringify(c$1.join(" "))}`,"svelte-xzq5jh",{hidden:s$1===false||s$1==="hidden",disabled:a})}${attr("id",f)}${attr_style("",{"flex-grow":o,"pointer-events":a?"none":null,width:o===0?"fit-content":null,"min-width":typeof p=="number"?`calc(min(${p}px, 100%))`:null})}>`),l?(t.push("<!--[-->"),c(t,{src:l.url,restProps:{alt:`${u} icon`,class:"button-icon"}})):t.push("<!--[!-->"),t.push("<!--]--> "),n?(t.push("<!--[-->"),n(t),t.push("<!---->")):t.push("<!--[!-->"),t.push("<!--]--></a>")):(t.push("<!--[!-->"),t.push(`<button${attr_class(`${stringify(g)} ${stringify(m)} ${stringify(c$1.join(" "))}`,"svelte-xzq5jh",{hidden:s$1===false||s$1==="hidden"})}${attr("id",f)}${attr("disabled",a,true)}${attr_style("",{"flex-grow":o,width:o===0?"fit-content":null,"min-width":typeof p=="number"?`calc(min(${p}px, 100%))`:null})}>`),l?(t.push("<!--[-->"),c(t,{restProps:{alt:`${u} icon`},class_names:[`button-icon ${u?"right-padded":""}`],src:l.url})):t.push("<!--[!-->"),t.push("<!--]--> "),n?(t.push("<!--[-->"),n(t),t.push("<!---->")):t.push("<!--[!-->"),t.push("<!--]--></button>")),t.push("<!--]-->");});}

export { B };
//# sourceMappingURL=Button-Ddd9rkRS.js.map
