var a=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var B=(o,t)=>{for(var i in t)a(o,i,{get:t[i],enumerable:!0})},b=(o,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of m(t))!u.call(o,e)&&e!==i&&a(o,e,{get:()=>t[e],enumerable:!(r=g(t,e))||r.enumerable});return o};var h=o=>b(a({},"__esModule",{value:!0}),o);var A={};B(A,{default:()=>k});module.exports=h(A);var C=require("react"),n=require("@chakra-ui/react"),l=require("react/jsx-runtime"),T=({validators:o,fullWidth:t=!1,...i})=>{let r=o.find(p=>!p.should),e={...i,...r?.fallbackProps},{children:d,onClick:c,disabled:f,helperText:s,isLoading:x=!1}=e;return(0,l.jsxs)(n.Box,{style:{textAlign:"center"},children:[(0,l.jsx)(n.Button,{w:t?"full":"",variant:"primary",onClick:c,isDisabled:f,isLoading:x,loadingText:d,children:d}),s&&(0,l.jsx)(n.Text,{color:"foreground",fontSize:"12px",textAlign:"center",mb:"10px",lineHeight:1,mt:2,children:s})]})},k=T;
