
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="36ec7349-a28d-5ac3-a35a-2b636d15305e")}catch(e){}}();
import{j as n}from"./jsx-runtime-BjG_zV1W.js";import{c as y}from"./index-x2da_zcv.js";import{L as f}from"./components-1fH5YjVo.js";const u="border font-medium shadow-sm wt-button-font inline-flex items-center disabled:bg-gray-400 disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-offset-2 justify-center transition-colors",m="border-wt-primary text-wt-text-on-primary bg-wt-primary disabled:border-gray-500 focus:ring-wt-primary",l="bg-white hover:bg-gray-100 text-gray-800 border-gray-200 disabled:bg-gray-200 disabled:text-gray-300 focus:ring-wt-secondary",w="border-gray-300 text-gray-700 bg-white shadow-md focus:ring-wt-primary",p="border-red-600 text-white bg-red-600 shadow-md hover:border-red-700 hover:bg-red-700 focus:border-red-800 focus:bg-red-800 focus:ring-red-800",x="border-gray-200 text-red-600 bg-gray-50 shadow-md hover:border-gray-300 hover:bg-gray-100 focus:border-gray-300 focus:bg-gray-200 focus:ring-gray-300",E="border-transparent text-gray-700 bg-white underline",h="border-wt-text-on-tertiary text-wt-text-on-tertiary bg-transparent focus:ring-wt-text-on-tertiary shadow-md",A="border-transparent text-gray-700 bg-transparent hover:bg-gray-100",L="px-2 py-1 text-sm",C="px-4 py-2 text-sm",j=({type:d,children:e,variant:r="primary",onClick:g,className:c,btnSize:b="md",isLoading:S=!1,block:i=!1,disabled:o=!1,linkProps:t,style:s={}})=>{const a=y(u,"rounded-wt",b==="sm"?L:C,r==="primary"?m:"",r==="secondary"?l:"",r==="ghost"?w:"",r==="tertiary"?h:"",r==="danger"?p:"",r==="danger-light"?x:"",r==="underline"?E:"",r==="flush"?A:"",S?"disabled:cursor-not-allowed opacity-60 border-transparent":"",o?"disabled:cursor-not-allowed border-transparent":"",i?"w-full":"",c);return t?n.jsx(f,{to:t?.to,prefetch:t?.prefetch||"none",className:a,style:s,children:e}):n.jsx("button",{onClick:g,type:d,className:a,disabled:o,style:s,children:e})};export{j as B};
//# sourceMappingURL=index-DFtJ8-cK.js.map

//# debugId=36ec7349-a28d-5ac3-a35a-2b636d15305e
