"use strict";var _classCallCheck2=require("babel-runtime/helpers/classCallCheck"),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=require("babel-runtime/helpers/createClass"),_createClass3=_interopRequireDefault(_createClass2),_possibleConstructorReturn2=require("babel-runtime/helpers/possibleConstructorReturn"),_possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2),_inherits2=require("babel-runtime/helpers/inherits"),_inherits3=_interopRequireDefault(_inherits2),_react=require("react"),React=_interopRequireWildcard(_react),_Form=require("../Form"),_Form2=_interopRequireDefault(_Form);function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var WithoutOwnProps=function(e){function t(){(0,_classCallCheck3.default)(this,t);var e=(0,_possibleConstructorReturn3.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={foo:"bar"},e}return(0,_inherits3.default)(t,e),(0,_createClass3.default)(t,[{key:"render",value:function(){return React.createElement("div",null,"foo")}}]),t}(React.Component),WithoutOwnPropsForm=_Form2.default.create()(WithoutOwnProps);React.createElement(WithoutOwnPropsForm,null);var WithOwnProps=function(e){function t(){(0,_classCallCheck3.default)(this,t);var e=(0,_possibleConstructorReturn3.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={foo:"bar"},e}return(0,_inherits3.default)(t,e),(0,_createClass3.default)(t,[{key:"render",value:function(){return React.createElement("div",null,"foo")}}]),t}(React.Component),WithOwnPropsForm=_Form2.default.create()(WithOwnProps);React.createElement(WithOwnPropsForm,{name:"foo"});var WithCreateOptions=function(e){function t(){return(0,_classCallCheck3.default)(this,t),(0,_possibleConstructorReturn3.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,_inherits3.default)(t,e),(0,_createClass3.default)(t,[{key:"render",value:function(){return React.createElement("div",null,"foo")}}]),t}(React.Component),mapPropsToFields=function(e){var t=e.username;return{username:_Form2.default.createFormField({value:t})}},formOptions={mapPropsToFields:mapPropsToFields},WithCreateOptionsForm=_Form2.default.create(formOptions)(WithCreateOptions);React.createElement(WithCreateOptionsForm,{username:"foo"});