import"./svelte/svelte_internal_flags_async.js";import*as r from"./svelte/svelte_internal_client.js";import"./i18n-CqG9A4Dp.js";import{G as a}from"./utils.svelte-kG009vb9.js";import{B as l}from"./Button-BRi4buhz.js";import"./svelte/svelte_internal_flags_legacy.js";import"./svelte/svelte_svelte.js";import"./svelte/svelte_store.js";import"./index-aMLoRFR_.js";import"./svelte/svelte_animate.js";import"./svelte/svelte_attachments.js";import"./svelte/svelte_easing.js";import"./svelte/svelte_internal_flags_tracing.js";import"./svelte/svelte_internal_server.js";import"./svelte/svelte_legacy.js";import"./svelte/svelte_motion.js";import"./svelte/svelte_reactivity.js";import"./svelte/svelte_reactivity_window.js";import"./svelte/svelte_server.js";import"./svelte/svelte_transition.js";import"./svelte/svelte_events.js";import"./Image-Bdf4wQSw.js";import"./ImagePreview-BMFpVSQw.js";import"./ScrollFade-DGw40oqj.js";import"./MarkdownCode-VTUoaX6K.js";import"./prism-python-BRxZ6l4O.js";import"./ShareButton-LQS1LEKZ.js";import"./FullscreenButton-C4AREqtB.js";function K(o,e){r.push(e,!0);let p=r.rest_props(e,["$$slots","$$events","$$legacy"]);const t=new a(p);function s(){t.dispatch("click")}{let m=r.derived(()=>!t.shared.interactive);l(o,{get value(){return t.props.value},get variant(){return t.props.variant},get elem_id(){return t.shared.elem_id},get elem_classes(){return t.shared.elem_classes},get size(){return t.props.size},get scale(){return t.props.scale},get link(){return t.props.link},get icon(){return t.props.icon},get min_width(){return t.shared.min_width},get visible(){return t.shared.visible},get disabled(){return r.get(m)},get link_target(){return t.props.link_target},onclick:s,children:(n,u)=>{r.next();var i=r.text();r.template_effect(()=>r.set_text(i,t.props.value??"")),r.append(n,i)},$$slots:{default:!0}})}r.pop()}export{l as BaseButton,K as default};
