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