!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],r):"object"==typeof exports?exports["openstack-uicore-foundation"]=r():e["openstack-uicore-foundation"]=r()}(this,(()=>(()=>{"use strict";var e={6031:e=>{e.exports=require("@babel/runtime/helpers/extends")},2462:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},8619:e=>{e.exports=require("@mui/material")},3294:e=>{e.exports=require("formik")},9825:e=>{e.exports=require("prop-types")},2015:e=>{e.exports=require("react")}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var a=r[o]={exports:{}};return e[o](a,a.exports,t),a.exports}(()=>{t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r}})(),(()=>{t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})}})(),(()=>{t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})(),(()=>{t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};t.r(o),t.d(o,{default:()=>x});var n=t(6031),a=t.n(n),i=t(2462),l=t.n(i),u=t(2015),p=t.n(u),s=t(9825),c=t.n(s),d=t(8619),m=t(3294);const f=["name","label","margin"],b=e=>{let{name:r,label:t,margin:o="normal"}=e,n=l()(e,f);const[i,u]=(0,m.useField)({name:r,type:"checkbox"});return p().createElement(d.FormControl,{fullWidth:!0,margin:o,error:u.touched&&Boolean(u.error)},p().createElement(d.FormControlLabel,{control:p().createElement(d.Checkbox,a()({name:r},i,{checked:i.value},n)),label:t}),u.touched&&u.error&&p().createElement(d.FormHelperText,null,u.error))};b.propTypes={name:c().string.isRequired,label:c().string.isRequired};const x=b;return o})()));
//# sourceMappingURL=checkbox.js.map