"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends")),React=_interopRequireWildcard(require("react")),_formik=require("formik"),_index=_interopRequireDefault(require("./index")),FormikToggleSwitch=function(props){return/*#__PURE__*/React.createElement(_formik.Field,{name:props.name},function(_ref){var field=_ref.field,_ref$form=_ref.form,setFieldValue=_ref$form.setFieldValue,setFieldTouched=_ref$form.setFieldTouched;return/*#__PURE__*/React.createElement(_index["default"],(0,_extends2["default"])({},props,field,{onChange:function onChange(checked){setFieldValue(field.name,checked),setFieldTouched(field.name)}}))})},_default=FormikToggleSwitch;exports["default"]=_default;