import _classCallCheck from"babel-runtime/helpers/classCallCheck";import _createClass from"babel-runtime/helpers/createClass";import _possibleConstructorReturn from"babel-runtime/helpers/possibleConstructorReturn";import _inherits from"babel-runtime/helpers/inherits";import*as React from"react";import Form from"../Form";var WithoutOwnProps=function(e){function t(){_classCallCheck(this,t);var e=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={foo:"bar"},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return React.createElement("div",null,"foo")}}]),t}(React.Component),WithoutOwnPropsForm=Form.create()(WithoutOwnProps);React.createElement(WithoutOwnPropsForm,null);var WithOwnProps=function(e){function t(){_classCallCheck(this,t);var e=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={foo:"bar"},e}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return React.createElement("div",null,"foo")}}]),t}(React.Component),WithOwnPropsForm=Form.create()(WithOwnProps);React.createElement(WithOwnPropsForm,{name:"foo"});var WithCreateOptions=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return React.createElement("div",null,"foo")}}]),t}(React.Component),mapPropsToFields=function(e){var t=e.username;return{username:Form.createFormField({value:t})}},formOptions={mapPropsToFields:mapPropsToFields},WithCreateOptionsForm=Form.create(formOptions)(WithCreateOptions);React.createElement(WithCreateOptionsForm,{username:"foo"});