import{j as t}from"./index-CzTQZzQy.js";/**
 * 2026 Paysera
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 *
 * @author Paysera <plugins@paysera.com>
 * @copyright 2026 Paysera
 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 */const y="_button_vxze8_1",v="_primary_vxze8_21",b="_secondary_vxze8_32",m="_tertiary_vxze8_42",p="_link_vxze8_54",z="_destructive_vxze8_66",j="_busy_vxze8_75",f="_icon_vxze8_80",s={button:y,primary:v,secondary:b,tertiary:m,link:p,destructive:z,busy:j,icon:f},k=({children:n,variant:_="secondary",href:r,target:o,download:i,isDestructive:l=!1,isBusy:a=!1,disabled:u=!1,className:x="",icon:e,...d})=>{const c=[s.button,s[_],l?s.destructive:"",a?s.busy:"",x].filter(Boolean).join(" ");return r?t.jsxs("a",{href:r,target:o,download:i,className:c,rel:o==="_blank"?"noopener noreferrer":void 0,children:[e&&t.jsx("span",{className:s.icon,children:e}),n]}):t.jsxs("button",{className:c,disabled:u||a,...d,children:[e&&t.jsx("span",{className:s.icon,children:e}),n]})};export{k as B};
