This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 'use strict'; | |
| var object = require('isomorph/object') | |
| var payment = require('payment'); | |
| var Input = require('newforms').Input | |
| var React = require('react'); | |
| /** | |
| * An HTML <input type="text"> widget. | |
| * @constructor | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var Parent = require('./Parent'); | |
| export class Child extends Parent { | |
| constructor(props) { | |
| super(props) | |
| } | |
| render() { | |
| super.render() | |
| return <span>pep pep</span> | |
| } | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // true if any objects values are truthy | |
| function any(object) { | |
| return Object.keys(object).some(k => !!object[k]); | |
| } | |
| // filter empty values from object and return filtered object | |
| function filterObject(object) { | |
| if (object) { | |
| const filteredObject = {}; | |
| Object.keys(object).forEach(k => { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var React = require('react'), | |
| Base = require('newforms').TextInput, | |
| classnames = require('classnames'); | |
| var UnderlineInput = Base.extend({ | |
| constructor: function UnderlineInput(kwargs) { | |
| if(!(this instanceof UnderlineInput)) { | |
| return new UnderlineInput(kwargs); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React from 'react'; | |
| import { Calendar, DateInput, Popover } from 'react-datepicker'; | |
| import moment from 'moment'; | |
| require('react-datepicker/dist/react-datepicker.css'); | |
| export class CreditCardForm extends React.Component { | |
| constructor(props) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React from 'react'; | |
| import { Calendar, DateInput, Popover } from 'react-datepicker'; | |
| import moment from 'moment'; | |
| require('react-datepicker/dist/react-datepicker.css'); | |
| const defaultProps = (props) => (classDef) => classDef.defaultProps = props; | |
| @defaultProps({ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import React from 'react'; | |
| import { Calendar, DateInput, Popover } from 'react-datepicker'; | |
| import moment from 'moment'; | |
| require('react-datepicker/dist/react-datepicker.css'); | |
| const defaultProps = (props) => (classDef) => classDef.defaultProps = props; | |
| @defaultProps({ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 'use strict'; | |
| var React = require('react'), | |
| Dispatcher = require('dispatchr')(), | |
| newforms = require('newforms'), | |
| LightboxFrame = require('../../js/components/LightboxFrame'), | |
| RenderForm = newforms.RenderForm, | |
| Router = require('react-router'), | |
| UnderlineInput = require('../../js/components/form/UnderlineInput'), | |
| CheckboxWidget = require('../../js/components/form/CheckboxWidget'), | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const description = this.cleanedData.description; | |
| if (description) { | |
| const p = CampaignActions.verifyContent('description', description); | |
| } | |
| const title = this.cleanedData.title; | |
| if (title) { | |
| const p1 = CampaignActions.verifyContent('title', title); | |
| } | |
| if (p && p1) { p.then(p1).then(callback); } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | it.only('simulates a keyPress', function() { | |
| const KeyPressable = React.createElement('input', { onKeyPress: sinon.spy() }); | |
| const element = TestUtils.renderIntoDocument(KeyPressable); | |
| TestUtils.Simulate.keyPress(React.findDOMNode(element), { key: 'f' }); | |
| expect(element.props.onKeyPress).to.have.been.calledOnce; | |
| }) |