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