Socket
Socket
Sign inDemoInstall

react-widgets

Package Overview
Dependencies
3
Maintainers
1
Versions
196
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.1.0

browser/react-widgets.js

8

dist/react-widgets.js

@@ -1,3 +0,3 @@

this.ReactWidgets=function(e){function t(n){if(s[n])return s[n].exports;var i=s[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var s={};return t.m=e,t.c=s,t.p="",t(0)}([function(e,t,s){e.exports={DropDownlist:s(1),Combobox:s(2),Calendar:s(3),DateTimePicker:s(4),NumberPicker:s(5),Select:s(6),utils:{ReplaceTransitionGroup:s(7),SlideTransition:s(8)}}},function(e,t,s){var n=s(9),i=s(10),r=s(20),o=s(21),a=s(22),p=s(23).mergeIntoProps,u=(s(24).directions,s(29),s(32)),c=s(30),h=s(25),l=(s(16),a.provided(function(e){return!i.isEqual(e.value,this.props.value)})),d=a.provided(function(e){return!i.isEqual(e,this.props.value)}),f={value:n.PropTypes.any,onChange:n.PropTypes.func,data:n.PropTypes.array,valueField:n.PropTypes.string,textField:n.PropTypes.string,valueComponent:n.PropTypes.component,itemComponent:n.PropTypes.component,delay:n.PropTypes.number,messages:n.PropTypes.shape({open:n.PropTypes.string})};e.exports=n.createClass({displayName:"DropdownList",mixins:[s(35),s(36),s(37),s(38),s(39)("selectedIndex"),s(39)("focusedIndex")],propTypes:f,getInitialState:function(){var e=this._dataIndexOf(this.props.data,this.props.value);return{open:!1,selectedIndex:e,focusedIndex:-1===e?0:e}},getDefaultProps:function(){return{delay:500,messages:{open:"open dropdown"}}},componentWillReceiveProps:l(function(e){var t=this._dataIndexOf(e.data,e.value);this.setSelectedIndex(t),this.setFocusedIndex(-1===t?0:t)}),componentDidMount:function(){this.setWidth()},render:function(){var e=i.keys(f),t=this._dataItem(this._data(),this.props.value),s=this.props.id&&this.props.id+"_option"||"";return p(i.omit(this.props,e),n.DOM.div({ref:"element",onKeyDown:this._keyDown,onClick:this.toggle,onFocus:this._focus.bind(null,!0),onBlur:this._focus.bind(null,!1),"aria-expanded":this.state.open,"aria-haspopup":!0,"aria-activedescendent":s,tabIndex:"0",className:r({"rw-dropdown-list":!0,"rw-widget":!0,"rw-state-focus":this.state.focused,"rw-open":this.state.open,"rw-rtl":this.isRtl()})},n.DOM.span({className:"rw-dropdownlist-picker rw-select rw-btn"},n.DOM.i({className:"rw-i rw-i-caret-down"},n.DOM.span({className:"rw-sr"},this.props.messages.open))),n.DOM.div({className:"rw-input"},this.props.valueComponent?this.props.valueComponent({item:t}):this._dataText(t)),u({style:{width:this.state.width},getAnchor:this._getAnchor,open:this.state.open,onRequestClose:this.close},n.DOM.div(null,c({ref:"list",optID:s,"aria-hidden":!this.state.open,style:{maxHeight:200,height:"auto"},data:this.props.data,value:this.props.value,selectedIndex:this.state.selectedIndex,focusedIndex:this.state.focusedIndex,textField:this.props.textField,valueField:this.props.valueField,listItem:this.props.itemComponent,onSelect:this._onSelect})))))},setWidth:function(){var e=h.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})},_focus:function(e){var t=this;clearTimeout(t.timer),t.timer=setTimeout(function(){e?t.getDOMNode().focus():t.close(),e!==t.state.focused&&t.setState({focused:e})},0)},_onSelect:function(e){this.close(),this.change(e)},_keyDown:function(e){function t(e){s.change(s._data()[e])}var s=this,n=e.key,i=e.altKey,r=this.state.open;"End"===n?(r?this.setFocusedIndex(this._data().length-1):t(this._data().length-1),e.preventDefault()):"Home"===n?(r?this.setFocusedIndex(0):t(0),e.preventDefault()):"Enter"===n&&r?t(this.state.focusedIndex):"ArrowDown"===n?(i?this.open():r?this.setFocusedIndex(this.nextFocusedIndex()):t(this.nextSelectedIndex()),e.preventDefault()):"ArrowUp"===n?(i?this.close():r?this.setFocusedIndex(this.prevFocusedIndex()):t(this.prevSelectedIndex()),e.preventDefault()):this.search(String.fromCharCode(e.keyCode),this._locate)},change:d(function(e){var t=this.props.onChange;t&&(t(e),this.close())}),_locate:function(e){var t=this.state.open?"focusedIndex":"selectedIndex",s=this.findIndex(e,this.state[t]),n=o(t).bind(this);-1!==s&&n(s)},_data:function(){return this.props.data},open:function(){this.setState({open:!0})},close:function(){this.setState({open:!1})},toggle:function(){this.state.open?this.close():this.open()},_getAnchor:function(){return this.refs.element.getDOMNode()}})},function(e,t,s){var n=s(9),i=s(20),r=s(10),o=(s(26),s(27)),a=s(23).mergeIntoProps,p=(s(24).directions,s(31)),u=s(32),c=s(30),h=s(25),l=s(16),d={value:n.PropTypes.any,onChange:n.PropTypes.func,itemComponent:n.PropTypes.func,data:n.PropTypes.array,valueField:n.PropTypes.string,textField:n.PropTypes.string,suggest:n.PropTypes.bool,messages:n.PropTypes.shape({open:n.PropTypes.string,emptyList:n.PropTypes.string,emptyFilter:n.PropTypes.string})};e.exports=n.createClass({displayName:"ComboBox",mixins:[s(37),s(36),s(40),s(38),s(39)("selectedIndex"),s(39)("focusedIndex")],propTypes:d,getInitialState:function(){var e=this.process(this.props.data,this.props.value),t=this._dataIndexOf(e,this.props.value);return{selectedIndex:t,focusedIndex:-1===t?0:t,processedData:e,open:!1}},getDefaultProps:function(){return{suggest:!1,filter:!1,delay:500,messages:{open:"open combobox",emptyList:"There are no items in this list",emptyFilter:"The filter returned no results"}}},shouldComponentUpdate:function(e,t){var s=!r.isEqual(t,this.state),n=!r.isEqual(e.value,this.props.value);return s||n},componentWillReceiveProps:function(e){var t=-1!==this._dataIndexOf(e.data,e.value),s=this.process(e.data,e.value,!t&&this._dataText(e.value)),n=this._dataIndexOf(s,e.value);this._searchTerm="",this.setState({processedData:s,selectedIndex:n,focusedIndex:-1===n?this.findIndex(this._dataText(this.props.value)):n})},componentDidUpdate:function(){{var e=this.refs.input.getDOMNode();this._dataText(this.props.value)}this.state.focused&&e.focus(),this.setWidth()},render:function(){var e=(this.props.valueComponent,this._data()),t=this.props.id&&this.props.id+"_listbox",s=this.props.id&&this.props.id+"_option",o=this.props.suggest?this.props.filter?"both":"inline":this.props.filter?"list":"";return a(r.omit(this.props,r.keys(d)),n.DOM.div({ref:"element","aria-expanded":this.state.open,"aria-haspopup":!0,onKeyDown:this._keyDown,onFocus:this._focus.bind(null,!0),onBlur:this._focus.bind(null,!1),tabIndex:"-1",className:i({"rw-combobox":!0,"rw-widget":!0,"rw-state-focus":this.state.focused,"rw-open":this.state.open,"rw-rtl":this.isRtl()})},l({className:"rw-select",onClick:this.toggle},n.DOM.i({className:"rw-i rw-i-caret-down"},n.DOM.span({className:"rw-sr"},this.props.messages.open))),p({ref:"input",type:"text",role:"combobox",suggest:this.props.suggest,"aria-autocomplete":o,className:"rw-input",value:this._dataText(this.props.value),onChange:this._inputTyping,onKeyDown:this._inputKeyDown}),u({style:{width:this.state.width},getAnchor:this._getAnchor,open:this.state.open,onRequestClose:this.close},n.DOM.div(null,c({ref:"list",id:t,optID:s,"aria-hidden":!this.state.open,"aria-live":o&&"polite",style:{maxHeight:200,height:"auto"},data:e,value:this.props.value,selectedIndex:this.state.selectedIndex,focusedIndex:-1===this.state.selectedIndex?this.state.focusedIndex:this.state.selectedIndex,textField:this.props.textField,valueField:this.props.valueField,onSelect:this._onSelect,listItem:this.props.itemComponent,messages:{emptyList:this.props.data.length?this.props.messages.emptyFilter:this.props.messages.emptyList}})))))},setWidth:function(){var e=h.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})},_onSelect:function(e){this.close(),this.change(e),this._focus(!0)},_inputKeyDown:function(e){this._deleting="Backspace"===e.key||"Delete"===e.key,this._isTyping=!0},_inputTyping:function(e){var t,s,n=this,i=!!this.props.suggest,o=e.target.value;t=this._deleting||!i?o:this.suggest(this._data(),o),t=t||o,s=r.find(n.props.data,function(e){return n._dataText(e).toLowerCase()===t.toLowerCase()}),this.change(!this._deleting&&s?s:o,!0),this.open()},_focus:function(e){var t=this;clearTimeout(t.timer),t.timer=setTimeout(function(){e!==t.state.focused&&(t.setState({focused:e}),e||t.close())},0)},_keyDown:function(e){function t(e){s.change(s._data()[e],!1)}var s=this,n=e.key,i=e.altKey,r=(String.fromCharCode(e.keyCode),this.state.selectedIndex),o=this.state.focusedIndex,a=this.state.open,p=null==r||-1===r;"End"===n?t(this._data().length-1):"Home"===n?t(0):"Enter"===n&&a?(t(o),this.close()):"ArrowDown"===n?i?this.open():t(p?o:this.nextSelectedIndex()):"ArrowUp"===n&&(i?this.close():t(p?o:this.prevSelectedIndex()))},change:function(e,t){var s=this.props.onChange;this._typedChange=!!t,s&&s(e)},open:function(){this.state.open||this.setState({open:!0})},close:function(){this.state.open&&this.setState({open:!1})},toggle:function(){this._focus(!0),this.state.open?this.close():this.open()},suggest:function(e,t){function s(e){return i(this._dataText(e).toLowerCase(),n.toLowerCase())}var n=this._dataText(t),i=o.startsWith,a="string"==typeof t?r.find(e,s,this):t;return!a||this.state&&this.state.deleting?"":this._dataText(a)},_getAnchor:function(){return this.refs.element.getDOMNode()},_data:function(){return this.state.processedData},process:function(e,t,s){return this.props.filter&&s&&(e=this.filter(e,s)),e}})},function(e,t,s){var n=s(9),i=s(11),r=s(12),o=s(13),a=s(14),p=s(15),u=(s(20),s(21)),c=s(8),h=s(28),l=s(23).mergeIntoProps,d=s(10),f="right",m="left",y="up",v="down",g={year:1,decade:10,century:100},w={month:r,year:o,decade:a,century:p};NEXT_VIEW={month:"year",year:"decade",decade:"century"},VIEW_UNIT={month:"day",year:"month",decade:"year",century:"decade"},e.exports=n.createClass({displayName:"Calendar",mixins:[s(35),s(38)],propTypes:{onChange:n.PropTypes.func.isRequired,value:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date),initialView:n.PropTypes.oneOf(["month","year","decade","century"]),finalView:n.PropTypes.oneOf(["month","year","decade","century"]),messages:n.PropTypes.shape({moveBack:n.PropTypes.string,moveForward:n.PropTypes.string}),maintainFocus:n.PropTypes.bool},getInitialState:function(){return{selectedIndex:0,open:!1,view:this.props.initialView||"month",currentDate:new Date(this.props.value)}},getDefaultProps:function(){return{value:new Date,min:new Date(1900,0,1),max:new Date(2099,11,31),initialView:"month",finalView:"century",maintainFocus:!0}},componentWillReceiveProps:function(e){h.eq(e.value,this.props.value,VIEW_UNIT[this.state.view])||this.setState({currentDate:new Date(e.value)})},componentDidUpdate:function(){this.refs.currentView.getDOMNode(),document.activeElement},render:function(){function e(){this._focus(!0,"stop")}var t=w[this.state.view],s=this.state.currentDate,r=this.props.id&&this.props.id+"_view_label",o=this.state.view+"_"+h[this.state.view](s),a=this.props.id&&this.props.id+"_table";return l(d.omit(this.props,"value","min","max"),n.DOM.div({className:"rw-calendar rw-widget"},i({label:this._label(),labelId:r,messages:this.props.messages,upDisabled:this.state.view===this.props.finalView,prevDisabled:!h.inRange(this.nextDate(m),this.props.min,this.props.max),nextDisabled:!h.inRange(this.nextDate(f),this.props.min,this.props.max),onViewChange:d.partial(this.navigate,y,null),onMoveLeft:d.partial(this.navigate,m,null),onMoveRight:d.partial(this.navigate,f,null)}),c({ref:"animation",direction:this.state.slideDirection,onAnimate:e.bind(this)},t({ref:"currentView",key:o,id:a,"aria-labeledby":r,"aria-activedescendant":a+"_selected_item",selectedDate:this.props.value,value:this.state.currentDate,onChange:this.change,onKeyDown:this._keyDown,onFocus:d.partial(this._focus,!0),onMoveLeft:d.partial(this.navigate,m),onMoveRight:d.partial(this.navigate,f),min:this.props.min,max:this.props.max}))))},navigate:function(e,t){var s=d.invert(NEXT_VIEW),n=this.state.view,i=e===m||e===y?"right":"left";t||(t=d.contains([m,f],e)?this.nextDate(e):this.state.currentDate),e===v&&(n=s[n]||n),e===y&&(n=NEXT_VIEW[n]||n),h.inRange(t,this.props.min,this.props.max)&&(this._focus(!0,"nav"),this.setState({currentDate:t,slideDirection:i,view:n}))},_focus:function(e){u("focused");this.props.maintainFocus&&e&&this.refs.currentView.getDOMNode().focus()},change:function(e){return this.state.view===this.props.initialView?this.props.onChange(e):void this.navigate(v,e)},nextDate:function(e){var t=e===m?"subtract":"add",s=this.state.view,n="month"===s?s:"year",i=g[s]||1;return h[t](this.state.currentDate,1*i,n)},_keyDown:function(e){var t=e.ctrlKey,s=e.key;t?("ArrowDown"===s&&(e.preventDefault(),this.navigate(v)),"ArrowUp"===s&&(e.preventDefault(),this.navigate(y)),"ArrowLeft"===s&&(e.preventDefault(),this.navigate(m)),"ArrowRight"===s&&(e.preventDefault(),this.navigate(f))):this.refs.currentView._keyDown&&this.refs.currentView._keyDown(e)},_label:function(){var e=this.state.view,t=this.state.currentDate;return"month"===e?h.format(t,h.formats.MONTH_YEAR):"year"===e?h.format(t,h.formats.YEAR):"decade"===e?h.format(h.firstOfDecade(t),h.formats.YEAR)+" - "+h.format(h.lastOfDecade(t),h.formats.YEAR):"century"===e?h.format(h.firstOfCentury(t),h.formats.YEAR)+" - "+h.format(h.lastOfCentury(t),h.formats.YEAR):void 0}})},function(e,t,s){function n(e,t){var s;e=[].concat(e);for(var n=0;n<e.length;n++)if(s=a.parse(t,e[n]))return s;return null}var i=s(9),r=s(20),o=s(10),a=s(28),p=s(23).mergeIntoProps,u=s(32),c=s(3),h=s(18),l=s(19),d=s(25),f={value:i.PropTypes.instanceOf(Date),onChange:i.PropTypes.func,min:i.PropTypes.instanceOf(Date),max:i.PropTypes.instanceOf(Date),culture:i.PropTypes.string,format:i.PropTypes.string,calendar:i.PropTypes.bool,time:i.PropTypes.bool,timeComponent:i.PropTypes.func,parse:i.PropTypes.oneOfType([i.PropTypes.arrayOf(i.PropTypes.string),i.PropTypes.string,i.PropTypes.func])};e.exports=i.createClass({displayName:"DateTimePicker",mixins:[s(35),s(38)],propTypes:f,getInitialState:function(){return{selectedIndex:0,open:!1,openPopup:null}},getDefaultProps:function(){var e=o.has(this.props,"calendar")?this.props.calendar:!0,t=o.has(this.props,"time")?this.props.time:!0,s=e&&t,n=!e&&!t;return{value:null,format:s||n?"M/d/yyyy h:mm tt":e?"M/d/yyyy":"h:mm tt",min:new Date(1900,0,1),max:new Date(2099,11,31),calendar:!0,time:!0,messages:{calendarButton:"Select Date",timeButton:"Select Time",next:"Next Date"}}},componentDidUpdate:function(){this.setTimeDimensions()},render:function(){var e,t=this.props.id,s=t&&t+"_time_listbox",n=t&&t+"_date_listbox",a=t&&t+"_time_option",d=t&&t+"_table_selected_item";return n&&this.props.calendar&&(e=n),s&&this.props.time&&(e+=" "+s),p(o.omit(this.props,o.keys(f)),i.DOM.div({ref:"element",tabIndex:"-1","aria-expanded":this.state.open,"aria-haspopup":!0,onKeyDown:this._keyDown,onFocus:this._focus.bind(null,!0),onBlur:this._focus.bind(null,!1),className:r({"rw-date-picker":!0,"rw-widget":!0,"rw-open":this.state.open,"rw-state-focus":this.state.focused,"rw-has-both":this.props.calendar&&this.props.time,"rw-rtl":this.isRtl()})},l({ref:"valueInput","aria-activedescendant":this.state.open?"calendar"===this.state.openPopup?d:a:void 0,"aria-expanded":this.state.open,"aria-busy":!!this.props.busy,"aria-owns":e,role:"combobox",value:this.props.value,focused:this.state.focused,format:this.props.format,parse:this._parse,onChange:this.props.onChange}),i.DOM.span({className:"rw-select"},this.props.calendar&&m({onClick:this._click.bind(null,"calendar")},i.DOM.i({className:"rw-i rw-i-calendar"},i.DOM.span({className:"rw-sr"},this.props.messages.calendarButton))),this.props.time&&m({onClick:this._click.bind(null,"time")},i.DOM.i({className:"rw-i rw-i-clock-o"},i.DOM.span({className:"rw-sr"},this.props.messages.timeButton)))),this.props.time&&u({getAnchor:this._getAnchor,style:{width:this.state.width},open:this.state.open&&"time"===this.state.openPopup,onRequestClose:this.close},i.DOM.div(null,h({ref:"timePopup",id:s,optID:a,"aria-hidden":!this.state.open,style:{maxHeight:200,height:"auto"},value:this.props.value,min:this.props.min,max:this.props.max,itemComponent:this.props.timeComponent,onChange:this._selectTime}))),this.props.calendar&&u({getAnchor:this._getAnchor,style:{width:200},open:this.state.open&&"calendar"===this.state.openPopup,onRequestClose:this.close},p(o.pick(this.props,o.keys(c.type.propTypes)),c({ref:"calPopup",id:n,maintainFocus:!1,"aria-hidden":!this.state.open,onChange:this._selectDate})))))},setTimeDimensions:function(){if(this.props.time){var e=d.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})}},_keyDown:function(e){"Tab"!==e.key&&(e.altKey?(e.preventDefault(),"ArrowDown"===e.key?this.open(this.state.open?"time"===this.state.openPopup?"calendar":"time":this.state.openPopup):"ArrowUp"===e.key&&this.close()):this.state.open&&("calendar"===this.state.openPopup&&this.refs.calPopup._keyDown(e),"time"===this.state.openPopup&&this.refs.timePopup._keyDown(e)))},_focus:function(e){var t=this,s=this.refs.valueInput;clearTimeout(t.timer),t.timer=setTimeout(function(){e?s.getDOMNode().focus():t.close(),e!==t.state.focused&&t.setState({focused:e})},0)},_selectDate:function(e){this.close(),this.props.onChange(a.merge(e,this.props.value))},_selectTime:function(e){this.close(),this.props.onChange(a.merge(this.props.value,e.date))},_click:function(e,t){this._focus(!0),this.toggle(e,t)},_parse:function(e){var t=o.isFunction(this.props.parse)?parse:o.partial(n,o.compact([this.props.format].concat(this.props.parse)));return t(e)},toggle:function(e){this.state.open?this.state.view!==e?this.open(e):this.close(e):this.open(e)},open:function(e){this.setState({open:!0,openPopup:e})},close:function(){this.setState({open:!1})},_getAnchor:function(){return this.refs.element.getDOMNode()}});var m=s(16)},function(e,t,s){var n=s(9),i=s(20),r=s(10),o=s(23).mergeIntoProps,a=s(24).directions,p=s(17),u=s(16),c={value:n.PropTypes.number,onChange:n.PropTypes.func,min:n.PropTypes.number,max:n.PropTypes.number,step:n.PropTypes.number,culture:n.PropTypes.string,format:n.PropTypes.string,parse:n.PropTypes.oneOfType([n.PropTypes.arrayOf(n.PropTypes.string),n.PropTypes.string,n.PropTypes.func]),messages:n.PropTypes.shape({increment:n.PropTypes.string,decrement:n.PropTypes.string})};e.exports=n.createClass({displayName:"NumberPicker",mixins:[s(35),s(38)],propTypes:c,getDefaultProps:function(){return{format:"d",min:-1/0,max:1/0,step:1,messages:{increment:"increment value",decrement:"decrement value"}}},getInitialState:function(){return{focused:!1,active:!1}},render:function(){var e=this,t=this.inRangeValue(this.props.value);return o(r.omit(this.props,r.keys(c)),n.DOM.div({ref:"element",onKeyDown:this._keyDown,onFocus:this._focus.bind(null,!0),onBlur:this._focus.bind(null,!1),tabIndex:"-1",className:i({"rw-number-picker":!0,"rw-widget":!0,"rw-state-focus":this.state.focused,"rw-rtl":this.isRtl()})},n.DOM.span({className:"rw-select"},u({className:i({"rw-state-active":this.state.active===a.UP}),onMouseDown:r.partial(e._mouseDown,a.UP),onMouseUp:r.partial(this._mouseUp,a.UP),onClick:r.partial(this._focus,!0),"aria-disabled":t===this.props.max||this.props.disabled},n.DOM.i({className:"rw-i rw-i-caret-up"},n.DOM.span({className:"rw-sr"},this.props.messages.increment))),u({className:i({"rw-state-active":this.state.active===a.DOWN}),onMouseDown:r.partial(e._mouseDown,a.DOWN),onMouseUp:r.partial(this._mouseUp,a.DOWN),onClick:r.partial(this._focus,!0),"aria-disabled":t===this.props.min||this.props.disabled},n.DOM.i({className:"rw-i rw-i-caret-down"},n.DOM.span({className:"rw-sr"},this.props.messages.decrement)))),p({ref:"input",value:t,editing:this.state.focused,format:this.props.format,role:"spinbutton","aria-valuenow":t,"aria-valuemin":r.isFinite(this.props.min)?this.props.min:"","aria-valuemax":r.isFinite(this.props.max)?this.props.max:"","aria-disabled":this.props.disabled,"aria-readonly":this.props.readonly,onChange:this.change,onKeyDown:this.props.onKeyDown})))},_mouseDown:function(e){var t=e===a.UP?this.increment:this.decrement;this.setState({active:e}),t(),this.interval=setInterval(t,800)},_mouseUp:function(){this.setState({active:!1}),clearInterval(this.interval)},_focus:function(e){var t=this;clearTimeout(t.timer),t.timer=setTimeout(function(){var s=t.refs.input.getDOMNode();e&&s.focus(),e!==t.state.focused&&t.setState({focused:e})},0)},_keyDown:function(e){var t=e.key;"End"===t&&r.isFinite(this.props.max)?this.change(this.props.max):"Home"===t&&r.isFinite(this.props.min)?this.change(this.props.min):"ArrowDown"===t?(e.preventDefault(),this.decrement()):"ArrowUp"===t&&(e.preventDefault(),this.increment())},increment:function(){this.change(this.props.value+this.props.step)},decrement:function(){this.change(this.props.value-this.props.step)},change:function(e){var t=this.props.onChange;e=this.inRangeValue(e),t&&this.props.value!==e&&t(e)},inRangeValue:function(e){return Math.max(Math.min(e,this.props.max),this.props.min)}})},function(e,t,s){"use strict";var n=s(9),i=s(20),r=s(10),o=s(25),a=(s(24).directions,s(23).mergeIntoProps),p=s(33),u=s(34),c=s(32),h=s(30),l=(s(16),{data:n.PropTypes.array,value:n.PropTypes.array,onChange:n.PropTypes.func,valueField:n.PropTypes.string,textField:n.PropTypes.string,tagComponent:n.PropTypes.func,itemComponent:n.PropTypes.func,messages:n.PropTypes.shape({open:n.PropTypes.string,emptyList:n.PropTypes.string,emptyFilter:n.PropTypes.string})});e.exports=n.createClass({displayName:"Select",mixins:[s(37),s(40),s(38),s(39)("focusedIndex")],propTypes:l,getDefaultProps:function(){return{filter:"startsWith",messages:{emptyList:"There are no items in this list",emptyFilter:"The filter returned no results"}}},getInitialState:function(){var e=this._dataIndexOf(this.props.data,this.props.value);return{open:!1,processedData:this.process(this.props.data,this.props.value,""),focusedIndex:-1===e?0:e}},componentWillReceiveProps:function(e){var t=this.process(e.data,e.value,this.state.searchTerm);this.setState({processedData:t})},componentDidMount:function(){this.setWidth()},render:function(){var e=this.props.id&&this.props.id+"_listbox",t=this.props.id&&this.props.id+"_option",s=this._data();return a(r.omit(this.props,r.keys(l)),n.DOM.div({ref:"element","aria-haspopup":!0,onKeyDown:this._keyDown,onFocus:this._focus.bind(null,!0),onBlur:this._focus.bind(null,!1),tabIndex:"-1",className:i({"rw-select-list":!0,"rw-widget":!0,"rw-state-focus":this.state.focused,"rw-open":this.state.open,"rw-rtl":this.isRtl()})},n.DOM.div({className:"rw-select-wrapper",onClick:this._click},u({ref:"tagList",value:[].concat(this.props.value),textField:this.props.textField,valueField:this.props.valueField,valueComponent:this.props.tagComponent,onDelete:this._delete}),p({"aria-expanded":this.state.open,"aria-busy":!!this.props.busy,"aria-owns":e,value:this.state.searchTerm,placeholder:this._placeholder(),focused:this.state.focused,onChange:this._typing})),c({style:{width:this.state.width},getAnchor:this._getAnchor,open:this.state.open,onRequestClose:this.close},n.DOM.div(null,h({ref:"list",id:e,optID:t,"aria-hidden":!this.state.open,style:{maxHeight:200,height:"auto"},data:s,value:this.props.value,textField:this.props.textField,valueField:this.props.valueField,focusedIndex:this.state.focusedIndex,onSelect:this._onSelect,listItem:this.props.itemComponent,messages:{emptyList:this.props.data.length?this.props.messages.emptyFilter:this.props.messages.emptyList}})))))},setWidth:function(){var e=o.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})},_data:function(){return this.state.processedData},_delete:function(e){this._focus(!0),this.change(r.without(this.props.value,e))},_click:function(){this._focus(!0),!this.state.open&&this.open()},_focus:function(e){var t=this;clearTimeout(t.timer),t.timer=setTimeout(function(){e!==t.state.focused&&(t.setState({focused:e}),e||t.close())},0)},_typing:function(e){var t=this.process(this.props.data,this.props.value,e.target.value);this.setState({searchTerm:e.target.value,processedData:t,open:this.state.open||this.state.open===!1,focusedIndex:t.length>=this.state.focusedIndex?0:this.state.focusedIndex})},_onSelect:function(e){this.change(this.props.value.concat(e)),this.close(),this._focus(!0)},_keyDown:function(e){var t=e.key,s=e.altKey,n=!!this.state.searchTerm,i=this.state.open;"ArrowDown"===t?i?this.setFocusedIndex(this.nextFocusedIndex()):this.open():"ArrowUp"===t?s?this.close():i&&this.setFocusedIndex(this.prevFocusedIndex()):"End"===t?i?this.setFocusedIndex(this._data().length-1):this.refs.tagList.last():"Home"===t?i?this.setFocusedIndex(0):this.refs.tagList.first():i&&"Enter"===t?this._onSelect(this._data()[this.state.focusedIndex]):"Esc"===t?i?this.close():this.refs.tagList.clear():n||"ArrowLeft"!==t?n||"ArrowRight"!==t?n||"Delete"!==t?n||"Backspace"!==t||this.refs.tagList.removeNext():this.refs.tagList.removeCurrent():this.refs.tagList.next():this.refs.tagList.prev()},change:function(e){var t=this.props.onChange;t&&t(e)},open:function(){this.setState({open:!0})},close:function(){this.setState({open:!1})},toggle:function(){this.state.open?this.close():this.open()},process:function(e,t,s){var n=r.reject(e,function(e){return r.any(t,r.partial(this._valueMatcher,e),this)},this);return s&&(n=this.filter(n,s)),n},_placeholder:function(){return this.props.value.length?"":this.props.placeholder||""},_getAnchor:function(){return this.refs.element.getDOMNode()}})},function(e,t,s){"use strict";var n=s(9),i=s(23).cloneWithProps,r=s(25),o=s(10);e.exports=n.createClass({displayName:"ReplaceTransitionGroup",propTypes:{component:n.PropTypes.func,childFactory:n.PropTypes.func,onAnimating:n.PropTypes.func,onAnimate:n.PropTypes.func},getDefaultProps:function(){return{component:n.DOM.span,childFactory:function(e){return e},onAnimating:o.noop,onAnimate:o.noop}},getInitialState:function(){return{children:n.Children.map(this.props.children,function(e){return e})}},componentWillReceiveProps:function(e){var t=n.Children.map(e.children,function(e){return e}),s=this.state.children;this.setState({children:o.extend({},s,t)}),o.any(t,function(e,t){var n=s&&o.has(s,t),i=!n&&!this.currentlyTransitioningKeys[t];return i&&(this.next=t),i},this),o.any(s,function(e,s){var n=t&&o.has(t,s),i=!n&&!this.currentlyTransitioningKeys[s];return i&&(this.current=s),i},this)},componentWillMount:function(){this.currentlyTransitioningKeys={},this.current=null,this.next=null},componentDidUpdate:function(){var e,t,s=this.current,n=this.next,i=this.refs[s||n],o=this.getDOMNode(),a=i&&i.getDOMNode();a&&(e=r.height(a)+"px",t=r.width(a)+"px",r.css(o,{overflow:"hidden",height:e,width:t})),this.props.onAnimating(),this.next=null,this.current=null,n&&this.performEnter(n),s&&this.performLeave(s)},performEnter:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)},_tryFinish:function(){var e=this.getDOMNode();this.isTransitioning()||(r.css(e,{overflow:"visible",height:"",width:""}),this.props.onAnimate())},_handleDoneEntering:function(e){var t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e];var s=n.Children.map(this.props.children,function(e){return e});s&&o.has(s,e)||this.performLeave(e),this._tryFinish()},isTransitioning:function(){return 0!==Object.keys(this.currentlyTransitioningKeys).length},performLeave:function(e){var t=this.refs[e];this.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)},_handleDoneLeaving:function(e){var t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];var s=n.Children.map(this.props.children,function(e){return e});if(s&&s.hasOwnProperty(e))this.performEnter(e);else{var i=o.extend({},this.state.children);delete i[e],this.setState({children:i})}this._tryFinish()},render:function(){var e={};for(var t in this.state.children){var s=this.state.children[t];s&&(e[t]=i(this.props.childFactory(s),{ref:t}))}return this.transferPropsTo(this.props.component(null,e))}})},function(e,t,s){var n=s(9),i=s(7),r=s(25),o=(s(10),n.createClass({displayName:"SlideChildGroup",propTypes:{direction:n.PropTypes.oneOf(["left","right"])},getDefaultProps:function(){return{duration:250}},componentWillEnter:function(e){var t=this,s=this.getDOMNode(),n=r.width(s),i=this.props.direction;n="left"===i?n:-n,this.ORGINAL_POSITION=s.style.position,r.css(s,{position:"absolute",left:n+"px",top:0}),r.animate(s,{left:0},t.props.duration,function(){r.css(s,{position:t.ORGINAL_POSITION,overflow:"hidden"}),t.ORGINAL_POSITION=null,e&&e()})},componentWillLeave:function(e){var t=this,s=this.getDOMNode(),n=r.width(s),i=this.props.direction;n="left"===i?-n:n,this.ORGINAL_POSITION=s.style.position,r.css(s,{position:"absolute",top:0,left:0}),r.animate(s,{left:n+"px"},t.props.duration,function(){r.css(s,{position:t.ORGINAL_POSITION,overflow:"hidden"}),t.ORGINAL_POSITION=null,e&&e()})},render:function(){return n.Children.only(this.props.children)}}));e.exports=n.createClass({displayName:"exports",propTypes:{direction:n.PropTypes.oneOf(["left","right"])},getDefaultProps:function(){return{direction:"left"}},_wrapChild:function(e){return o({direction:this.props.direction},e)},render:function(){return this.transferPropsTo(i({ref:"container",childFactory:this._wrapChild,style:{position:"relative",overflow:"hidden"},component:n.DOM.div},this.props.children))},isTransitioning:function(){return this.isMounted()&&this.refs.container.isTransitioning()}})},function(e){!function(){e.exports=this["window.React"]}()},function(e){!function(){e.exports=this["window._"]}()},function(e,t,s){var n=s(9),i=(s(20),s(16));e.exports=n.createClass({displayName:"exports",propTypes:{label:n.PropTypes.string.isRequired,labelId:n.PropTypes.string,upDisabled:n.PropTypes.bool.isRequired,prevDisabled:n.PropTypes.bool.isRequired,nextDisabled:n.PropTypes.bool.isRequired,onViewChange:n.PropTypes.func.isRequired,onMoveLeft:n.PropTypes.func.isRequired,onMoveRight:n.PropTypes.func.isRequired,messages:n.PropTypes.shape({moveBack:n.PropTypes.string,moveForward:n.PropTypes.string})},mixins:[s(35),s(42)],getDefaultProps:function(){return{messages:{moveBack:"navigate back",moveForward:"navigate forward"}}},render:function(){var e=this.isRtl();return n.DOM.div({className:"rw-header"},i({className:"rw-btn-left",onClick:this.props.onMoveLeft,disabled:this.props.prevDisabled,"aria-disabled":this.props.prevDisabled,title:this.props.moveBack},n.DOM.i({className:"rw-i rw-i-caret-"+(e?"right":"left")},n.DOM.span({className:"rw-sr"},"Pthis.props.moveBack}"))),i({className:"rw-btn-view",id:this.props.labelId,onClick:this.props.onViewChange,disabled:this.props.upDisabled,"aria-disabled":this.props.upDisabled},this.props.label),i({className:"rw-btn-right",onClick:this.props.onMoveRight,disabled:this.props.nextDisabled,"aria-disabled":this.props.nextDisabled,title:this.props.moveForward},n.DOM.i({className:"rw-i rw-i-caret-"+(e?"left":"right")},n.DOM.span({className:"rw-sr"},this.props.moveForward))))}})},function(e,t,s){var n=s(9),i=s(20),r=s(28),o=s(43),a=s(24).directions,p=s(23).mergeIntoProps,u=s(10),c=s(16),h={LEFT:a.RIGHT,RIGHT:a.LEFT};e.exports=n.createClass({displayName:"MonthView",mixins:[s(42),s(44)("month","day")],propTypes:{culture:n.PropTypes.array,value:n.PropTypes.instanceOf(Date),selectedDate:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date),format:n.PropTypes.string,onChange:n.PropTypes.func.isRequired,onMoveLeft:n.PropTypes.func,onMoveRight:n.PropTypes.func},render:function(){var e=r.visibleDays(this.props.value),t=o(e,7);return p(u.omit(this.props,"max","min","value","onChange"),n.DOM.table({role:"grid",tabIndex:"0",className:"rw-calendar-grid",onKeyUp:this._keyUp},n.DOM.thead(null,n.DOM.tr(null,this._headers())),n.DOM.tbody(null,u.map(t,this._row))))},_row:function(e,t){return n.DOM.tr({key:"week_"+t},u.map(e,function(e,t){var s=r.eq(e,this.state.focusedDate,"day"),o=r.eq(e,this.props.selectedDate,"day"),a=this.props.id&&this.props.id+"_selected_item";return r.inRange(e,this.props.min,this.props.max)?n.DOM.td({key:"day_"+t},c({tabIndex:"-1",onClick:u.partial(this.props.onChange,e),"aria-selected":o,className:i({"rw-off-range":r.month(e)!==r.month(this.state.focusedDate),"rw-state-focus":s,"rw-state-selected":o}),id:s?a:void 0},r.format(e,"dd"))):n.DOM.td({key:"day_"+t,className:"rw-empty-cell"}," ")
}.bind(this)))},_headers:function(e){var t=r.shortDaysOfWeek(e);return u.map(t,function(e,t){return n.DOM.th({key:"header_"+t},e)})},move:function(e,t){return this.isRtl()&&h[t]&&(t=h[t]),t===a.LEFT?e=r.subtract(e,1,"day"):t===a.RIGHT?e=r.add(e,1,"day"):t===a.UP?e=r.subtract(e,1,"week"):t===a.DOWN&&(e=r.add(e,1,"week")),e}})},function(e,t,s){var n=s(9),i=s(20),r=s(28),o=s(43),a=s(24).directions,p=s(23).mergeIntoProps,u=s(10),c={LEFT:a.RIGHT,RIGHT:a.LEFT};e.exports=n.createClass({displayName:"YearView",mixins:[s(42),s(44)("year","month")],propTypes:{value:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date),onChange:n.PropTypes.func.isRequired},render:function(){var e=r.monthsInYear(r.year(this.props.value)),t=o(e,4);return p(u.omit(this.props,"max","min","value","onChange"),n.DOM.table({tabIndex:"0",ref:"table",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-labeledby":this.props["aria-labeledby"],onKeyUp:this._keyUp},n.DOM.tbody(null,u.map(t,this._row))))},_row:function(e,t){return n.DOM.tr({key:t},u.map(e,function(e,t){var s=r.eq(e,this.state.focusedDate,"month"),o=r.eq(e,this.props.value,"month"),a=this.props.id&&this.props.id+"_selected_item";return r.inRange(e,this.props.min,this.props.max,"month")?n.DOM.td({key:t},h({onClick:u.partial(this.props.onChange,e),tabIndex:"-1",id:s?a:void 0,"aria-selected":o,className:i({"rw-state-focus":s,"rw-state-selected":o})},r.format(e,r.formats.MONTH_NAME_ABRV))):n.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},focus:function(){this.refs.table.getDOMNode().focus()},move:function(e,t){return this.isRtl()&&c[t]&&(t=c[t]),t===a.LEFT?e=r.subtract(e,1,"month"):t===a.RIGHT?e=r.add(e,1,"month"):t===a.UP?e=r.subtract(e,4,"month"):t===a.DOWN&&(e=r.add(e,4,"month")),e}});var h=s(16)},function(e,t,s){function n(e,t){return a.gte(e,a.startOf(t,"decade"),"year")&&a.lte(e,a.endOf(t,"decade"),"year")}function i(e){var e=a.add(a.startOf(e,"decade"),-2,"year");return h.map(h.range(12),function(){return e=a.add(e,1,"year")})}var r=s(9),o=s(20),a=s(28),p=s(43),u=s(24).directions,c=s(23).mergeIntoProps,h=s(10),l={LEFT:u.RIGHT,RIGHT:u.LEFT};e.exports=r.createClass({displayName:"DecadeView",mixins:[s(35),s(42),s(44)("decade","year")],propTypes:{value:r.PropTypes.instanceOf(Date),min:r.PropTypes.instanceOf(Date),max:r.PropTypes.instanceOf(Date),onChange:r.PropTypes.func.isRequired},render:function(){var e=i(this.props.value),t=p(e,4),s=this.props.id&&this.props.id+"_selected_option";return this.selectedId=s,c(h.omit(this.props,"max","min","value","onChange"),r.DOM.table({tabIndex:"0",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-activedescendant":s,"aria-labeledby":this.props["aria-labeledby"],onKeyUp:this._keyUp},r.DOM.tbody(null,h.map(t,this._row))))},_row:function(e,t){this.selectedId;return r.DOM.tr({key:"row_"+t},h.map(e,function(e,t){var s=a.eq(e,this.state.focusedDate,"year"),i=a.eq(e,this.props.value,"year"),p=this.props.id&&this.props.id+"_selected_item";return a.inRange(e,this.props.min,this.props.max,"year")?r.DOM.td({key:t},d({onClick:h.partial(this.props.onChange,e),tabIndex:"-1",id:s?p:void 0,"aria-selected":i,className:o({"rw-off-range":!n(e,this.props.value),"rw-state-focus":s,"rw-state-selected":i})},a.format(e,a.formats.YEAR))):r.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},move:function(e,t){return this.isRtl()&&l[t]&&(t=l[t]),t===u.LEFT?e=a.subtract(e,1,"year"):t===u.RIGHT?e=a.add(e,1,"year"):t===u.UP?e=a.subtract(e,4,"year"):t===u.DOWN&&(e=a.add(e,4,"year")),e}});var d=s(16)},function(e,t,s){function n(e){return c.format(c.startOf(e,"decade"),c.formats.YEAR)+" - "+c.format(c.endOf(e,"decade"),c.formats.YEAR)}function i(e,t,s){return c.max(c.min(e,s),t)}function r(e,t,s){return c.gte(e,c.startOf(t,"decade"),"year")&&c.lte(e,c.endOf(s,"decade"),"year")}function o(e,t){return c.gte(e,c.startOf(t,"century"),"year")&&c.lte(e,c.endOf(t,"century"),"year")}function a(e){var e=c.add(c.startOf(e,"century"),-20,"year");return f.map(f.range(12),function(){return e=c.add(e,10,"year")})}var p=s(9),u=s(20),c=s(28),h=s(43),l=s(24).directions,d=s(23).mergeIntoProps,f=s(10),m={LEFT:l.RIGHT,RIGHT:l.LEFT};e.exports=p.createClass({displayName:"CenturyView",mixins:[s(35),s(42),s(44)("century","decade")],propTypes:{value:p.PropTypes.instanceOf(Date),min:p.PropTypes.instanceOf(Date),max:p.PropTypes.instanceOf(Date),onChange:p.PropTypes.func.isRequired},render:function(){var e=a(this.props.value),t=h(e,4);return d(f.omit(this.props,"max","min","value","onChange"),p.DOM.table({tabIndex:"0",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-labeledby":this.props["aria-labeledby"],onKeyUp:this._keyUp},p.DOM.tbody(null,f.map(t,this._row))))},_row:function(e,t){return p.DOM.tr({key:"row_"+t},f.map(e,function(e,t){var s=c.eq(e,this.state.focusedDate,"decade"),a=c.eq(e,this.props.value,"decade"),h=this.props.id&&this.props.id+"_selected_item",l=i(e,this.props.min,this.props.max);return r(e,this.props.min,this.props.max)?p.DOM.td({key:t},y({onClick:f.partial(this.props.onChange,l),tabIndex:"-1",id:s?h:void 0,"aria-selected":a,className:u({"rw-off-range":!o(e,this.props.value),"rw-state-focus":s,"rw-state-selected":a})},n(e))):p.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},move:function(e,t){return this.isRtl()&&m[t]&&(t=m[t]),t===l.LEFT?e=c.subtract(e,1,"decade"):t===l.RIGHT?e=c.add(e,1,"decade"):t===l.UP?e=c.subtract(e,4,"decade"):t===l.DOWN&&(e=c.add(e,4,"decade")),e}});var y=s(16)},function(e,t,s){var n=s(9);e.exports=n.createClass({displayName:"exports",render:function(){return this.transferPropsTo(n.DOM.button({type:"button",className:"rw-btn"},this.props.children))}})},function(e,t,s){var n=s(9),i=(s(20),s(22),s(21)),r=s(41);e.exports=n.createClass({displayName:"NumberPickerInput",propTypes:{value:n.PropTypes.number,format:n.PropTypes.string,onChange:n.PropTypes.func.isRequired,onKeyDown:n.PropTypes.func},getDefaultProps:function(){return{value:null,format:"d",editing:!1}},getInitialState:function(){return{stringValue:""}},componentWillReceiveProps:function(){this.current("")},render:function(){var e=this.state.stringValue||this.props.value;return e=this.props.editing?e:r.format(e,this.props.format),this.transferPropsTo(n.DOM.input({type:"text",className:"rw-input",onKeyDown:this.props.onKeyDown,onChange:this._change,value:e}))},_change:function(e){var t=+e.target.value;isNaN(t)||(t!==this.props.value?this.props.onChange(t):this.current(e.target.value))},current:i("stringValue")})},function(e,t,s){var n=s(9),i=(s(20),s(28)),r=s(30),o=s(23).mergeIntoProps,a=(s(24).directions,s(10));e.exports=n.createClass({displayName:"TimeList",mixins:[s(36),s(39)("selectedIndex"),s(39)("focusedIndex")],propTypes:{value:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date),step:n.PropTypes.number,itemComponent:n.PropTypes.func,onChange:n.PropTypes.func.isRequired},getDefaultProps:function(){return{step:30,format:"t"}},getInitialState:function(){var e=this._selectedIndex(this._data(),this.props.value);return{focusedIndex:-1===e?0:e}},render:function(){var e=this._data(),t=this._selectedIndex(e,this.props.value);return o(a.omit(this.props,"value"),r({ref:"list",data:e,textField:"label",valueField:"date",selectedIndex:t,focusedIndex:this.state.focusedIndex,listItem:this.props.itemComponent,onSelect:this.props.onChange}))},_selectedIndex:function(e,t){return a.findIndex(e,function(e){return i.eq(t,e,"hours")})},_data:function(){for(var e=[],t=i.eq(this.props.value,this.props.min,"day")?this.props.min:i.today,s=i.eq(this.props.value,this.props.max,"day")?this.props.max:i.tomorrow;i.lt(t,s,"day");)e.push({date:t,label:i.format(t,this.props.format)}),t=i.add(t,this.props.step||30,"minutes");return e},_keyDown:function(e){var t=this,s=e.key,n=String.fromCharCode(e.keyCode);"End"===s?this.setFocusedIndex(this._data().length-1):"Home"===s?this.setFocusedIndex(0):"Enter"===s?this.props.onChange(this._data()[this.state.focusedIndex]):"ArrowDown"===s?(e.preventDefault(),this.setFocusedIndex(this.nextFocusedIndex())):"ArrowUp"===s?(e.preventDefault(),this.setFocusedIndex(this.prevFocusedIndex())):(e.preventDefault(),this.search(n,function(e){t.setFocusedIndex(this.findIndex(e,t.state.focusedIndex))}))}});s(16)},function(e,t,s){function n(e){return!isNaN(e.getTime())}var i=s(9),r=s(20),o=s(22),a=s(28);e.exports=i.createClass({displayName:"DatePickerInput",propTypes:{format:i.PropTypes.string,parse:i.PropTypes.func.isRequired,value:i.PropTypes.instanceOf(Date),onChange:i.PropTypes.func.isRequired},componentWillReceiveProps:function(e){this.setState({textValue:this.formatDate(e.value)})},getInitialState:function(){var e=this.formatDate(this.props.value);return{textValue:e,lastValue:e}},getDefaultProps:function(){return{value:null}},render:function(){return this.transferPropsTo(i.DOM.input({type:"text",className:r({"rw-input":!0}),value:this.state.textValue,onChange:this._change,onBlur:o.chain(this.props.blur,this._blur)}))},_change:function(e){this.setState({textValue:e.target.value})},_blur:function(){var e=this.state.textValue;e!==this.state.lastValue&&(this.props.onChange(this.props.parse(e),e),this.setState({lastValue:e}))},focus:function(){this.getDOMNode().focus()},formatDate:function(e){var t="";return e instanceof Date&&n(e)&&(t=a.format(e,this.props.format)),t}})},function(e,t,s){var n=s(10);e.exports=function(e){return n.isArray(e)||(e=n.transform(e,function(e,t,s){t&&e.push(s)},[])),e.join(" ")}},function(e){e.exports=function(e){return function(t){var s={};return s[e]=t,this.setState(s),this}}},function(e,t,s){function n(e,t){return function(){var s=e.apply(this,arguments),n=t.apply(this,arguments);if(null!=s||null!=n)return null==s?n:null==n?s:i.extend(s,n)}}var i=s(10),r=e.exports={chain:function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},merge:function(e,t){if(typeof e!=typeof t)throw new TypeError;return i.isArray(e)?e.splice(e.length,0,t):i.isFunction(e)?e=n(e,t):i.extend(e,t),e},before:i.curry(function(e,t){return function(){return e.apply(this,arguments),t.apply(this,arguments)}}),after:i.curry(function(e,t){return function(){var s=t.apply(this,arguments);return e.apply(this,arguments),s}}),around:i.curry(function(e,t){return function(){var s=[t].concat(i.toArray(arguments));return e.apply(this,s)}}),provided:function(e){return r.around(function(t){var s=i.rest(arguments);return e.apply(this,s)?t.apply(this,s):void 0})}}},function(e,t,s){function n(e,t){return a.transform(t,function(e,t,s){a.has(u,s)?u[s](e,t,s):a.has(e,s)||(e[s]=t)},e)}function i(e){return function(t,s,n){t[n]=a.has(t,n)?e(t[n],s):s}}function r(){return a.reduce(arguments,function(e,t){return e?t?e+=" "+t:e:t||""},"")}function o(e,t){return a.extend({},e,t)}var a=s(10),p=s(9),u={className:i(r),children:a.noop,key:a.noop,ref:a.noop,style:i(o)};e.exports={mergeIntoProps:function(e,t){var s=t.props?t.props:t;return n(s,e),t},cloneWithProps:function(e,t){var s=n(a.clone(t),e.props);return!a.has(s,"children")&&a.has(e.props,"children")&&(s.children=e.props.children),0===p.version.indexOf("0.10.")?e.constructor.ConvenienceConstructor(s):e.constructor(s)}}},function(e,t,s){function n(e){return i.mapValues(e,function(e,t){return t})}var i=s(10);e.exports={directions:n({LEFT:null,RIGHT:null,UP:null,DOWN:null})}},function(e,t,s){function n(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})}function i(e){return e.replace(/[A-Z]/g,function(e,t){return(0!==t?"-":"")+e.toLowerCase()})}function r(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)}var o,a,p,u,c,h,l=s(10),d="",f=document.createElement("div"),m={},y={O:"otransitionend",Moz:"transitionend",Webkit:"webkitTransitionEnd"};l.any(y,function(e,t){return void 0!==f.style[t+"TransitionProperty"]?(d="-"+t.toLowerCase()+"-",h=e,!0):void 0}),h||void 0===f.style.transitionProperty||(h="transitionend"),c=!h,m[p=d+"transition-property"]=m[a=d+"transition-duration"]=m[u=d+"transition-delay"]=m[o=d+"transition-timing-function"]="";var v=e.exports={width:function(e){return v.offset(e).width},height:function(e){return v.offset(e).height},hasFocus:function(e){var t=e.ownerDocument;return null==t.activeElement?!1:t.activeElement===e},offset:function(e){var t=e.ownerDocument,s=t&&t.documentElement,n={top:0,left:0};if(s)return v.contains(s,e)?(void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-s.clientTop,left:n.left+window.pageXOffset-s.clientLeft,width:n.width||e.offsetWidth,height:n.height||e.offsetHeight}):n},css:function(e,t,s){var o="",a=t;if("string"==typeof t){if(void 0===s)return e.style[n(t)]||r(e).getPropertyValue(t);(a={})[t]=s}l.each(a,function(t,s){t||0===t?o+=i(s)+":"+t+";":e.style.removeProperty(i(s))}),e.style.cssText+=";"+o},contains:function(){var e=document.documentElement;return e&&e.contains?function(e,t){return e.contains(t)}:e&&e.compareDocumentPosition?function(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}:function(e,t){if(t)do if(t===e)return!0;while(t=t.parentNode);return!1}}(),on:function(e,t,s){e.addEventListener?e.addEventListener(t,s,!1):e.attachEvent?e.attachEvent("on"+t,s):e["on"+t]=s},off:function(e,t,s){e.addEventListener?e.removeEventListener(t,s,!1):e.attachEvent?e.detachEvent("on"+t,s):e["on"+t]=null},trigger:function(e,t){var s=document.createEvent("Events");s.initEvent(t,!0,!0),e.dispatchEvent(s)},animate:function(e,t,s,n,r){function d(t){t.target===t.currentTarget&&(f=!0,v.off(t.target,h,d),v.css(e,m),r&&r.call(this))}var f,y=[],g={target:e,currentTarget:e},w={};l.isFunction(n)&&(r=n,n=null),c&&(s=0),void 0===s&&(s=200);for(key in t)w[key]=t[key],y.push(i(key));s>0&&(w[p]=y.join(", "),w[a]=s/1e3+"s",w[u]="0s",w[o]=n||"linear"),s>0&&(v.on(e,h,d),setTimeout(function(){f||d(g)},s+25)),e.clientLeft,v.css(e,w),0>=s&&setTimeout(l.partial(d,g),0)}}},function(e){e.exports=function(e,t,s){return void 0===t?{start:e.selectionStart,end:e.selectionEnd}:(e.focus(),void e.setSelectionRange(t,s))}},function(e,t,s){var n=s(10),i={eq:function(e,t){return e===t},neq:function(e,t){return e!==t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},lt:function(e,t){return t>e},ltw:function(e,t){return t>=e},contains:function(e,t){return n.contains(e,t)},startsWith:function(e,t){return 0===e.lastIndexOf(t,0)},endsWith:function(e,t){var s=e.length-t.length,n=e.indexOf(t,s);return-1!==n&&n===s}};e.exports=i,e.exports.filter=function r(e,r){if(r="string"==typeof r?i[r]:r,"function"!=typeof r)throw new TypeError;return n.filter(e,r)}},function(e,t,s){var n=s(45),i=s(41),r=s(10),o=e.exports=r.extend({},n,{culture:function(){return i.culture()},startOfWeek:function(){var e=i.culture();return e&&e.calendar?e.calendar.firstDay||0:0},parse:function(e,t,s){return i.parseDate(e,t,s)},format:function(e,t,s){return i.format(e,t,s)},shortDaysOfWeek:function(){var e=o.culture();return e&&e.calendar?e.calendar.days.namesShort.slice():void 0},daysOfWeek:function(e,t){return 1===arguments.length&&(t=e,e=new Date),t=t||"do",r.map(r.range(7),function(s){return o.format(n.weekday(e,s),t)})},months:function(e,t){return 1===arguments.length&&(t=e,e=new Date),t=t||o.formats.DAY_NAME_ABRV,r.map(r.range(12),function(s){return o.format(n.month(e,s),t)})},monthsInYear:function(e){var t=new Date(e,0,1);return r.map(r.range(12),function(e){return n.month(t,e)})},firstOfDecade:function(e){var t=n.year(e)%10;return n.subtract(e,t,"year")},lastOfDecade:function(e){return n.add(o.firstOfDecade(e),9,"year")},firstOfCentury:function(e){var t=n.year(e)%100;return n.subtract(e,t,"year")},lastOfCentury:function(e){return n.add(o.firstOfCentury(e),99,"year")},firstVisibleDay:function(e){var t=n.startOf(e,"month");return n.startOf(t,"week")},lastVisibleDay:function(e){var t=n.endOf(e,"month");return n.endOf(t,"week")},visibleDays:function(e){for(var t=o.firstVisibleDay(e),s=o.lastVisibleDay(e),i=[];n.lte(t,s,"day");)i.push(t),t=n.add(t,1,"day");return i},merge:function(e,t){return e=o.startOf(e,"day"),e=o.hours(e,o.hours(t)),e=o.minutes(e,o.minutes(t)),e=o.seconds(e,o.seconds(t)),o.milliseconds(e,o.milliseconds(t))},sameMonth:function(e,t){return n.eq(e,t,"month")},formats:{DAY_OF_MONTH:"dd",DAY_NAME_SHORT:null,MONTH_NAME_ABRV:"MMM",MONTH_YEAR:"MMMM yyyy",YEAR:"yyyy"}});Object.defineProperties(o,{now:{enumerable:!0,get:function(){return Date.now?Date.now:new Date}},today:{enumerable:!0,get:function(){return this.startOf(new Date,"day")}},yesterday:{enumerable:!0,get:function(){return this.add(this.startOf(new Date,"day"),-1,"day")}},tomorrow:{enumerable:!0,get:function(){return this.add(this.startOf(new Date,"day"),1,"day")}}})},function(e,t,s){var n=s(9),i=s(23).mergeIntoProps,r=s(10);e.exports=n.createClass({displayName:"exports",mixins:[s(37)],render:function(){var e=this.props.value;return i(r.omit(this.props,"value"),n.DOM.div(null,this._dataText(e)))}})},function(e,t,s){{var n=s(9),i=(s(27),s(22),s(23)),r=i.mergeIntoProps,o=(i.cloneWithProps,s(20)),a=s(10);n.createClass({displayName:"DefaultListItem",mixins:[s(37),s(42)],render:function(){var e=this.props.item;return this.transferPropsTo(n.DOM.li(null,e?this._dataText(e):""))}})}e.exports=n.createClass({displayName:"List",mixins:[s(37)],propTypes:{data:n.PropTypes.array,value:n.PropTypes.any,listItem:n.PropTypes.component,valueField:n.PropTypes.string,textField:n.PropTypes.string,optID:n.PropTypes.string,messages:n.PropTypes.shape({emptyList:n.PropTypes.string})},getDefaultProps:function(){return{delay:500,optID:"",messages:{emptyList:"There are no items in this list"}}},componentDidUpdate:function(e){e.focusedIndex!==this.props.focusedIndex&&this._setScrollPosition()},render:function(){var e=n.DOM.li(null,this.props.messages.emptyList),t=(n.DOM.li(null,this.props.messages.emptyFilter),a.map(this.props.data,function(e,t){var s=t===this.props.focusedIndex;return n.DOM.li({key:"item_"+t,role:"option",id:s?this.props.optID:"","aria-selected":t===this.props.selectedIndex,className:o({"rw-state-focus":s,"rw-state-selected":t===this.props.selectedIndex}),onClick:a.partial(this.props.onSelect,e,t)},this.props.listItem?this.props.listItem({item:e}):this._dataText(e))}.bind(this)));return r(a.omit(this.props,"data","selectedIndex"),n.DOM.ul({className:"rw-list",role:"listbox",tabIndex:"-1",onKeyDown:this._keyDown,onKeyPress:this.search},this.props.data.length?t:e))},_setScrollPosition:function(){var e,t,s,n,i,r=this.getDOMNode(),o=r.children[this.props.focusedIndex];o&&(e=r.scrollTop,t=r.clientHeight,s=o.offsetTop,n=o.offsetHeight,i=s+n,r.scrollTop=e>s?s:i>e+t?i-t:e)}})},function(e,t,s){var n=s(9),i=(s(20),s(22),s(26));e.exports=n.createClass({displayName:"exports",propTypes:{value:n.PropTypes.string,suggestion:n.PropTypes.string,onChange:n.PropTypes.func.isRequired},componentDidUpdate:function(){var e=this.getDOMNode(),t=this.props.value,s=""!==this._last&&-1!==t.indexOf(this._last)&&this._last!==t;if(this.props.suggest&&s){var n=t.indexOf(this._last)+this._last.length,r=t.length-n;n>=0&&i(e,n,n+r)}this._last=t},getDefaultProps:function(){return{value:"",suggestion:""}},render:function(){return this.transferPropsTo(n.DOM.input({type:"text",className:"rw-input",onKeyDown:this.props.onKeyDown,onChange:this._change,value:this.props.value}))},_change:function(e){var t=e.target.value;this._last=t,this.props.onChange(e,t)},focus:function(){this.getDOMNode().focus()}})},function(e,t,s){function n(e){var t,s=i.Children.map(e,function(e){return e});for(t in s)return t}var i=s(9),r=(s(20),s(10)),o=s(23).mergeIntoProps,a=s(25);e.exports=i.createClass({displayName:"exports",propTypes:{getAnchor:i.PropTypes.func.isRequired,onRequestClose:i.PropTypes.func.isRequired,onClosing:i.PropTypes.func,onOpening:i.PropTypes.func,onClose:i.PropTypes.func,onOpen:i.PropTypes.func},getDefaultProps:function(){return{height:"auto",duration:200,open:!1,onClosing:r.noop,onOpening:r.noop,onClose:r.noop,onOpen:r.noop}},componentWillUnmount:function(){a.off(document,"click",self._onClick),a.off(window,"resize",self._resize)},componentDidMount:function(){var e=this,t=this.getDOMNode();e._onClick=function(s){var n=!a.contains(document,s.target),i=a.contains(t,s.target),r=a.contains(e.props.getAnchor(),s.target);!e.props.open||r||i||n||e.props.onRequestClose()},e._resize=r.throttle(this.position.bind(this),100),a.off(window,"resize",e._resize),a.off(document,"click",e._onClick),this.position(),this.close(0)},componentWillReceiveProps:function(e){this.setState({contentChanged:n(e.children)!==n(this.props.children)})},componentDidUpdate:function(e){{var t=this,s=e.open&&!this.props.open,n=!e.open&&this.props.open;e.open===this.props.open}this.position(),n?t.open():s&&t.close()},render:function(){var e=r.extend({},this.props.style||{},{overflow:"hidden",position:"absolute",zIndex:1005}),t=o({className:"rw-popup rw-widget"},this.props.children);return t.props.ref=this.props.children.props.ref,i.DOM.div({style:e},p({ref:"content"},t))},dimensions:function(){var e=this.getDOMNode();e.style.display="block",e.style.height=a.height(this.refs.content.getDOMNode())+"px"},position:function(){var e=a.offset(this.props.getAnchor());a.css(this.getDOMNode(),{top:e.height-1+"px",left:"-1px"})},open:function(){var e=this,t=this.getDOMNode(),s=this.refs.content.getDOMNode();this.ORGINAL_POSITION=s.style.position,this.dimensions(),this.props.onOpening(),s.style.position="absolute",a.animate(s,{top:0},e.props.duration,function(){a.css(s,{position:e.ORGINAL_POSITION}),t.style.overflow="visible",e.ORGINAL_POSITION=null,e.props.onOpen()})},close:function(e){{var t=this,s=this.refs.content.getDOMNode(),n=this.getDOMNode();n.style.height}this.ORGINAL_POSITION=s.style.position,this.dimensions(),this.props.onClosing(),n.style.overflow="hidden",s.style.position="absolute",a.animate(s,{top:"-100%"},void 0===e?this.props.duration:e,function(){a.css(s,{position:t.ORGINAL_POSITION}),n.style.display="none",t.ORGINAL_POSITION=null,t.props.onClose()})}});var p=i.createClass({displayName:"PopupContent",render:function(){return i.Children.only(this.props.children)}})},function(e,t,s){var n=s(9);e.exports=n.createClass({displayName:"exports",propTypes:{value:n.PropTypes.string,onChange:n.PropTypes.func.isRequired},componentDidUpdate:function(){this.props.focused&&this.focus()},render:function(){var e=this.props.value,t=this.props.placeholder,s=Math.max((e||t).length,1);return this.transferPropsTo(n.DOM.input({type:"text",className:"rw-input",size:s}))},focus:function(){this.getDOMNode().focus()}})},function(e,t,s){var n=s(9),i=s(10),r=s(20),o=s(23).mergeIntoProps,a=s(16);e.exports=n.createClass({displayName:"SelectTagList",mixins:[s(37)],propTypes:{value:n.PropTypes.array,valueField:n.PropTypes.string,textField:n.PropTypes.string,valueComponent:n.PropTypes.component},getInitialState:function(){return{focused:null}},render:function(){var e=this.state.focused,t=this.props.value;return o(i.omit(this.props,"value"),n.DOM.ul({className:"rw-tag-list"},i.map(t,function(t,s){return n.DOM.li({key:s,unselectable:"on",className:r({"rw-state-focus":e===s})},this.props.valueComponent?this.props.valueComponent({item:t}):this._dataText(t),a({onClick:this._delete.bind(null,t),unselectable:"on"},"×",n.DOM.span({className:"rw-sr"},"Remove "+this._dataText(t))))},this)))},_delete:function(e){this.props.onDelete(e)},removeCurrent:function(){var e=this.props.value[this.state.focused];e&&this.props.onDelete(e)},removeNext:function(){var e=i.last(this.props.value);e&&this.props.onDelete(e)},clear:function(){this.setState({focused:null})},first:function(){this.setState({focused:0})},last:function(){this.setState({focused:this.props.value.length-1})},next:function(){var e=this.state.focused+1;if(null!==this.state.focused)return e>=this.props.value.length?this.clear():void this.setState({focused:e})},prev:function(){var e=this.state.focused;null===e?e=this.props.value.length:0>=e&&(e=1),this.setState({focused:e-1})}});n.createClass({displayName:"DefaultTag",mixins:[s(37)],render:function(){var e=this.props.item;return this.transferPropsTo(n.DOM.span(null,e?this._dataText(e):""))}})},function(e,t,s){function n(e,t){var s;if(e===t)return!0;for(s in e)if(e.hasOwnProperty(s)&&(!t.hasOwnProperty(s)||e[s]!==t[s]))return!1;for(s in t)if(t.hasOwnProperty(s)&&!e.hasOwnProperty(s))return!1;return!0}s(9);e.exports={shouldComponentUpdate:function(e,t){return!n(this.props,e)||!n(this.state,t)}}},function(e,t,s){var n=s(9),i=s(27),r=s(37),o=(s(22),s(21),s(10));e.exports={propTypes:{data:n.PropTypes.array,value:n.PropTypes.any,delay:n.PropTypes.number,filter:n.PropTypes.string},search:function(e,t){var s=this,n=((this._searchTerm||"")+e).toLowerCase();clearTimeout(this._timer),this._searchTerm=n,this._timer=setTimeout(function(){s._searchTerm="",t(n)},this.props.delay)},findIndex:function(e,t){var s=i.startsWith,n=this;return o.findIndex(n._data(),function(i,o){return o!=t&&s(r._dataText.call(n,i).toLowerCase(),e.toLowerCase())})}}},function(e,t,s){var n=s(9),i=s(10);e.exports={propTypes:{valueField:n.PropTypes.string,textField:n.PropTypes.string},_dataValue:function(e){var t=this.props.valueField;return t&&e&&i.has(e,t)?e[t]:e},_dataText:function(e){var t=this.props.textField;return(t&&e&&i.has(e,t)?e[t]:e)+""},_dataIndexOf:function(e,t){return i.findIndex(e,i.partial(this._valueMatcher,t),this)},_valueMatcher:function(e,t){return i.isEqual(this._dataValue(e),this._dataValue(t))},_dataItem:function(e,t){var s,n=e[0],i=this._dataValue(t);return null==n||typeof n==typeof i?i:(s=this._dataIndexOf(e,t),-1!==s?e[s]:t)}}},function(e,t,s){var n=s(9);e.exports={propTypes:{isRtl:n.PropTypes.bool},contextTypes:{isRtl:n.PropTypes.bool},childContextTypes:{isRtl:n.PropTypes.bool},getChildContext:function(){return{isRtl:this.props.isRtl||this.context&&this.context.isRtl}},isRtl:function(){return!!(this.props.isRtl||this.context&&this.context.isRtl)}}},function(e,t,s){function n(e){return function(){return e.apply(this,arguments),this}}var i=s(9),r=(s(27),s(37),s(21)),o=s(22),a=(s(24).directions,s(10));e.exports=function(e){var t=e.charAt(0).toUpperCase()+e.substr(1),s=(o.provided(function(e){return!a.isEqual(e.value,this.props.value)}),o.provided(function(e){return e>=0})),p=s(r(e)),u={propTypes:{data:i.PropTypes.array,value:i.PropTypes.any}};return u["set"+t]=n(p),u["prev"+t]=function(){var t=(this._data(),this.state&&this.state[e]||0);return t-=1,0>t&&(t=0),t},u["next"+t]=function(){var t=this._data(),s=this.state&&this.state[e]||0;return s+=1,s>=t.length&&(s=t.length-1),s},u}},function(e,t,s){{var n=s(9),i=s(27),r=s(37),o=s(21),a=s(22),p=(s(24).directions,s(10)),u=(a.provided(function(e){return!p.isEqual(e.value,this.props.value)}),a.provided(function(e){return e>=0})),c=p.without(p.keys(i),"filter");u(o("selectedIndex"))}e.exports={propTypes:{data:n.PropTypes.array,value:n.PropTypes.any,filter:n.PropTypes.oneOfType([n.PropTypes.func,n.PropTypes.oneOf(c.concat(!1))]),caseSensitive:n.PropTypes.bool,minLength:n.PropTypes.number},getDefaultProps:function(){return{caseSensitive:!1,minLength:1}},filter:function(e,t){var s="string"==typeof this.props.filter?i[this.props.filter]:this.props.filter;return!s||!t||!t.trim()||t.length<(this.props.minLength||1)?e:(this.props.caseSensitive||(t=t.toLowerCase()),p.filter(e,function(e){var n=r._dataText.call(this,e);return this.props.caseSensitive||(n=n.toLowerCase()),s(n,t.toLowerCase())},this))}}},function(e){!function(){e.exports=this["window.Globalize"]}()},function(e,t,s){var n=s(9);e.exports={contextTypes:{isRtl:n.PropTypes.bool},isRtl:function(){return!!this.context.isRtl}}},function(e){/**
this.ReactWidgets=function(e){function t(r){if(n[r])return n[r].exports;var s=n[r]={exports:{},id:r,loaded:!1};return e[r].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports={DropDownlist:n(1),Combobox:n(2),Calendar:n(3),DateTimePicker:n(4),NumberPicker:n(5),Select:n(6),utils:{ReplaceTransitionGroup:n(7),SlideTransition:n(8)}}},function(e,t,n){var r=n(9),s=n(10),o=n(25),i=n(26),a=n(27),l=n(28).mergeIntoProps,p=(n(29).directions,n(11),n(34)),u=n(12),c=n(30),d=(n(13),a.provided(function(e){return!s.isEqual(e.value,this.props.value)})),h=a.provided(function(e){return!s.isEqual(e,this.props.value)}),f={value:r.PropTypes.any,onChange:r.PropTypes.func,data:r.PropTypes.array,valueField:r.PropTypes.string,textField:r.PropTypes.string,valueComponent:r.PropTypes.component,itemComponent:r.PropTypes.component,delay:r.PropTypes.number,messages:r.PropTypes.shape({open:r.PropTypes.string})};e.exports=r.createClass({displayName:"DropdownList",mixins:[n(35),n(36),n(37),n(38),n(39)("selectedIndex"),n(39)("focusedIndex")],propTypes:f,getInitialState:function(){var e=this._dataIndexOf(this.props.data,this.props.value);return{open:!1,selectedIndex:e,focusedIndex:-1===e?0:e}},getDefaultProps:function(){return{delay:500,messages:{open:"open dropdown"}}},componentWillReceiveProps:d(function(e){var t=this._dataIndexOf(e.data,e.value);this.setSelectedIndex(t),this.setFocusedIndex(-1===t?0:t)}),componentDidMount:function(){this.setWidth()},render:function(){var e=s.keys(f),t=this._dataItem(this._data(),this.props.value),n=this.props.id&&this.props.id+"_option"||"";return l(s.omit(this.props,e),r.DOM.div({ref:"element",onKeyDown:this._keyDown,onClick:this.toggle,onFocus:this._focus.bind(null,!0),onBlur:this._focus.bind(null,!1),"aria-expanded":this.state.open,"aria-haspopup":!0,"aria-activedescendent":n,tabIndex:"0",className:o({"rw-dropdown-list":!0,"rw-widget":!0,"rw-state-focus":this.state.focused,"rw-open":this.state.open,"rw-rtl":this.isRtl()})},r.DOM.span({className:"rw-dropdownlist-picker rw-select rw-btn"},r.DOM.i({className:"rw-i rw-i-caret-down"+(this.props.busy?" rw-loading":"")},r.DOM.span({className:"rw-sr"},this.props.messages.open))),r.DOM.div({className:"rw-input"},this.props.valueComponent?this.props.valueComponent({item:t}):this._dataText(t)),p({style:{width:this.state.width},getAnchor:this._getAnchor,open:this.state.open,onRequestClose:this.close},r.DOM.div(null,u({ref:"list",optID:n,"aria-hidden":!this.state.open,style:{maxHeight:200,height:"auto"},data:this.props.data,value:this.props.value,selectedIndex:this.state.selectedIndex,focusedIndex:this.state.focusedIndex,textField:this.props.textField,valueField:this.props.valueField,listItem:this.props.itemComponent,onSelect:this._onSelect})))))},setWidth:function(){var e=c.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})},_focus:function(e){var t=this;clearTimeout(t.timer),t.timer=setTimeout(function(){e?t.getDOMNode().focus():t.close(),e!==t.state.focused&&t.setState({focused:e})},0)},_onSelect:function(e){this.close(),this.change(e)},_keyDown:function(e){function t(e){n.change(n._data()[e])}var n=this,r=e.key,s=e.altKey,o=this.state.open;"End"===r?(o?this.setFocusedIndex(this._data().length-1):t(this._data().length-1),e.preventDefault()):"Home"===r?(o?this.setFocusedIndex(0):t(0),e.preventDefault()):"Enter"===r&&o?t(this.state.focusedIndex):"ArrowDown"===r?(s?this.open():o?this.setFocusedIndex(this.nextFocusedIndex()):t(this.nextSelectedIndex()),e.preventDefault()):"ArrowUp"===r?(s?this.close():o?this.setFocusedIndex(this.prevFocusedIndex()):t(this.prevSelectedIndex()),e.preventDefault()):this.search(String.fromCharCode(e.keyCode),this._locate)},change:h(function(e){var t=this.props.onChange;t&&(t(e),this.close())}),_locate:function(e){var t=this.state.open?"focusedIndex":"selectedIndex",n=this.findIndex(e,this.state[t]),r=i(t).bind(this);-1!==n&&r(n)},_data:function(){return this.props.data},open:function(){this.setState({open:!0})},close:function(){this.setState({open:!1})},toggle:function(){this.state.open?this.close():this.open()},_getAnchor:function(){return this.refs.element.getDOMNode()}})},function(e,t,n){var r=n(9),s=n(25),o=n(10),i=(n(32),n(33)),a=n(28).mergeIntoProps,l=(n(29).directions,n(24)),p=n(34),u=n(12),c=n(30),d=n(13),h={value:r.PropTypes.any,onChange:r.PropTypes.func,itemComponent:r.PropTypes.func,data:r.PropTypes.array,valueField:r.PropTypes.string,textField:r.PropTypes.string,suggest:r.PropTypes.bool,messages:r.PropTypes.shape({open:r.PropTypes.string,emptyList:r.PropTypes.string,emptyFilter:r.PropTypes.string})};e.exports=r.createClass({displayName:"ComboBox",mixins:[n(37),n(36),n(40),n(38),n(39)("selectedIndex"),n(39)("focusedIndex")],propTypes:h,getInitialState:function(){var e=this.process(this.props.data,this.props.value),t=this._dataIndexOf(e,this.props.value);return{selectedIndex:t,focusedIndex:-1===t?0:t,processedData:e,open:!1}},getDefaultProps:function(){return{suggest:!1,filter:!1,delay:500,messages:{open:"open combobox",emptyList:"There are no items in this list",emptyFilter:"The filter returned no results"}}},shouldComponentUpdate:function(e,t){var n=!o.isEqual(t,this.state),r=!o.isEqual(e.value,this.props.value);return n||r},componentWillReceiveProps:function(e){var t=-1!==this._dataIndexOf(e.data,e.value),n=this.process(e.data,e.value,!t&&this._dataText(e.value)),r=this._dataIndexOf(n,e.value);this._searchTerm="",this.setState({processedData:n,selectedIndex:r,focusedIndex:-1===r?this.findIndex(this._dataText(this.props.value)):r})},componentDidUpdate:function(){{var e=this.refs.input.getDOMNode();this._dataText(this.props.value)}this.state.focused&&e.focus(),this.setWidth()},render:function(){var e=(this.props.valueComponent,this._data()),t=this.props.id&&this.props.id+"_listbox",n=this.props.id&&this.props.id+"_option",i=this.props.suggest?this.props.filter?"both":"inline":this.props.filter?"list":"";return a(o.omit(this.props,o.keys(h)),r.DOM.div({ref:"element","aria-expanded":this.state.open,"aria-haspopup":!0,onKeyDown:this._keyDown,onFocus:this._focus.bind(null,!0),onBlur:this._focus.bind(null,!1),tabIndex:"-1",className:s({"rw-combobox":!0,"rw-widget":!0,"rw-state-focus":this.state.focused,"rw-open":this.state.open,"rw-rtl":this.isRtl()})},d({className:"rw-select",onClick:this.toggle},r.DOM.i({className:"rw-i rw-i-caret-down"},r.DOM.span({className:"rw-sr"},this.props.messages.open))),l({ref:"input",type:"text",role:"combobox",suggest:this.props.suggest,"aria-autocomplete":i,className:"rw-input",value:this._dataText(this.props.value),onChange:this._inputTyping,onKeyDown:this._inputKeyDown}),p({style:{width:this.state.width},getAnchor:this._getAnchor,open:this.state.open,onRequestClose:this.close},r.DOM.div(null,u({ref:"list",id:t,optID:n,"aria-hidden":!this.state.open,"aria-live":i&&"polite",style:{maxHeight:200,height:"auto"},data:e,value:this.props.value,selectedIndex:this.state.selectedIndex,focusedIndex:-1===this.state.selectedIndex?this.state.focusedIndex:this.state.selectedIndex,textField:this.props.textField,valueField:this.props.valueField,onSelect:this._onSelect,listItem:this.props.itemComponent,messages:{emptyList:this.props.data.length?this.props.messages.emptyFilter:this.props.messages.emptyList}})))))},setWidth:function(){var e=c.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})},_onSelect:function(e){this.close(),this.change(e),this._focus(!0)},_inputKeyDown:function(e){this._deleting="Backspace"===e.key||"Delete"===e.key,this._isTyping=!0},_inputTyping:function(e){var t,n,r=this,s=!!this.props.suggest,i=e.target.value;t=this._deleting||!s?i:this.suggest(this._data(),i),t=t||i,n=o.find(r.props.data,function(e){return r._dataText(e).toLowerCase()===t.toLowerCase()}),this.change(!this._deleting&&n?n:i,!0),this.open()},_focus:function(e){var t=this;clearTimeout(t.timer),t.timer=setTimeout(function(){e!==t.state.focused&&(t.setState({focused:e}),e||t.close())},0)},_keyDown:function(e){function t(e){n.change(n._data()[e],!1)}var n=this,r=e.key,s=e.altKey,o=(String.fromCharCode(e.keyCode),this.state.selectedIndex),i=this.state.focusedIndex,a=this.state.open,l=null==o||-1===o;"End"===r?t(this._data().length-1):"Home"===r?t(0):"Enter"===r&&a?(t(i),this.close()):"ArrowDown"===r?s?this.open():t(l?i:this.nextSelectedIndex()):"ArrowUp"===r&&(s?this.close():t(l?i:this.prevSelectedIndex()))},change:function(e,t){var n=this.props.onChange;this._typedChange=!!t,n&&n(e)},open:function(){this.state.open||this.setState({open:!0})},close:function(){this.state.open&&this.setState({open:!1})},toggle:function(){this._focus(!0),this.state.open?this.close():this.open()},suggest:function(e,t){function n(e){return s(this._dataText(e).toLowerCase(),r.toLowerCase())}var r=this._dataText(t),s=i.startsWith,a="string"==typeof t?o.find(e,n,this):t;return!a||this.state&&this.state.deleting?"":this._dataText(a)},_getAnchor:function(){return this.refs.element.getDOMNode()},_data:function(){return this.state.processedData},process:function(e,t,n){return this.props.filter&&n&&(e=this.filter(e,n)),e}})},function(e,t,n){var r=n(9),s=n(14),o=n(15),i=n(16),a=n(17),l=n(18),p=(n(25),n(26)),u=n(8),c=n(31),d=n(28).mergeIntoProps,h=n(10),f="right",m="left",v="up",y="down",g={year:1,decade:10,century:100},D={month:o,year:i,decade:a,century:l};NEXT_VIEW={month:"year",year:"decade",decade:"century"},VIEW_UNIT={month:"day",year:"month",decade:"year",century:"decade"},e.exports=r.createClass({displayName:"Calendar",mixins:[n(35),n(38)],propTypes:{onChange:r.PropTypes.func.isRequired,value:r.PropTypes.instanceOf(Date),min:r.PropTypes.instanceOf(Date),max:r.PropTypes.instanceOf(Date),initialView:r.PropTypes.oneOf(["month","year","decade","century"]),finalView:r.PropTypes.oneOf(["month","year","decade","century"]),messages:r.PropTypes.shape({moveBack:r.PropTypes.string,moveForward:r.PropTypes.string}),maintainFocus:r.PropTypes.bool},getInitialState:function(){return{selectedIndex:0,open:!1,view:this.props.initialView||"month",currentDate:new Date(this.props.value)}},getDefaultProps:function(){return{value:new Date,min:new Date(1900,0,1),max:new Date(2099,11,31),initialView:"month",finalView:"century",maintainFocus:!0}},componentWillReceiveProps:function(e){c.eq(e.value,this.props.value,VIEW_UNIT[this.state.view])||this.setState({currentDate:new Date(e.value)})},componentDidUpdate:function(){this.refs.currentView.getDOMNode(),document.activeElement},render:function(){function e(){this._focus(!0,"stop")}var t=D[this.state.view],n=this.state.currentDate,o=this.props.id&&this.props.id+"_view_label",i=this.state.view+"_"+c[this.state.view](n),a=this.props.id&&this.props.id+"_table";return d(h.omit(this.props,"value","min","max"),r.DOM.div({className:"rw-calendar rw-widget"},s({label:this._label(),labelId:o,messages:this.props.messages,upDisabled:this.state.view===this.props.finalView,prevDisabled:!c.inRange(this.nextDate(m),this.props.min,this.props.max),nextDisabled:!c.inRange(this.nextDate(f),this.props.min,this.props.max),onViewChange:h.partial(this.navigate,v,null),onMoveLeft:h.partial(this.navigate,m,null),onMoveRight:h.partial(this.navigate,f,null)}),u({ref:"animation",direction:this.state.slideDirection,onAnimate:e.bind(this)},t({ref:"currentView",key:i,id:a,"aria-labeledby":o,"aria-activedescendant":a+"_selected_item",selectedDate:this.props.value,value:this.state.currentDate,onChange:this.change,onKeyDown:this._keyDown,onFocus:h.partial(this._focus,!0),onMoveLeft:h.partial(this.navigate,m),onMoveRight:h.partial(this.navigate,f),min:this.props.min,max:this.props.max}))))},navigate:function(e,t){var n=h.invert(NEXT_VIEW),r=this.state.view,s=e===m||e===v?"right":"left";t||(t=h.contains([m,f],e)?this.nextDate(e):this.state.currentDate),e===y&&(r=n[r]||r),e===v&&(r=NEXT_VIEW[r]||r),c.inRange(t,this.props.min,this.props.max)&&(this._focus(!0,"nav"),this.setState({currentDate:t,slideDirection:s,view:r}))},_focus:function(e){p("focused");this.props.maintainFocus&&e&&this.refs.currentView.getDOMNode().focus()},change:function(e){return this.state.view===this.props.initialView?this.props.onChange(e):void this.navigate(y,e)},nextDate:function(e){var t=e===m?"subtract":"add",n=this.state.view,r="month"===n?n:"year",s=g[n]||1;return c[t](this.state.currentDate,1*s,r)},_keyDown:function(e){var t=e.ctrlKey,n=e.key;t?("ArrowDown"===n&&(e.preventDefault(),this.navigate(y)),"ArrowUp"===n&&(e.preventDefault(),this.navigate(v)),"ArrowLeft"===n&&(e.preventDefault(),this.navigate(m)),"ArrowRight"===n&&(e.preventDefault(),this.navigate(f))):this.refs.currentView._keyDown&&this.refs.currentView._keyDown(e)},_label:function(){var e=this.state.view,t=this.state.currentDate;return"month"===e?c.format(t,c.formats.MONTH_YEAR):"year"===e?c.format(t,c.formats.YEAR):"decade"===e?c.format(c.firstOfDecade(t),c.formats.YEAR)+" - "+c.format(c.lastOfDecade(t),c.formats.YEAR):"century"===e?c.format(c.firstOfCentury(t),c.formats.YEAR)+" - "+c.format(c.lastOfCentury(t),c.formats.YEAR):void 0}})},function(e,t,n){function r(e,t){var n;e=[].concat(e);for(var r=0;r<e.length;r++)if(n=a.parse(t,e[r]))return n;return null}var s=n(9),o=n(25),i=n(10),a=n(31),l=n(28).mergeIntoProps,p=n(34),u=n(3),c=n(19),d=n(20),h=n(30),f={value:s.PropTypes.instanceOf(Date),onChange:s.PropTypes.func,min:s.PropTypes.instanceOf(Date),max:s.PropTypes.instanceOf(Date),culture:s.PropTypes.string,format:s.PropTypes.string,calendar:s.PropTypes.bool,time:s.PropTypes.bool,timeComponent:s.PropTypes.func,parse:s.PropTypes.oneOfType([s.PropTypes.arrayOf(s.PropTypes.string),s.PropTypes.string,s.PropTypes.func])};e.exports=s.createClass({displayName:"DateTimePicker",mixins:[n(35),n(38)],propTypes:f,getInitialState:function(){return{selectedIndex:0,open:!1,openPopup:null}},getDefaultProps:function(){var e=i.has(this.props,"calendar")?this.props.calendar:!0,t=i.has(this.props,"time")?this.props.time:!0,n=e&&t,r=!e&&!t;return{value:null,format:n||r?"M/d/yyyy h:mm tt":e?"M/d/yyyy":"h:mm tt",min:new Date(1900,0,1),max:new Date(2099,11,31),calendar:!0,time:!0,messages:{calendarButton:"Select Date",timeButton:"Select Time",next:"Next Date"}}},componentDidUpdate:function(){this.setTimeDimensions()},render:function(){var e,t=this.props.id,n=t&&t+"_time_listbox",r=t&&t+"_date_listbox",a=t&&t+"_time_option",h=t&&t+"_table_selected_item";return r&&this.props.calendar&&(e=r),n&&this.props.time&&(e+=" "+n),l(i.omit(this.props,i.keys(f)),s.DOM.div({ref:"element",tabIndex:"-1","aria-expanded":this.state.open,"aria-haspopup":!0,onKeyDown:this._keyDown,onFocus:this._focus.bind(null,!0),onBlur:this._focus.bind(null,!1),className:o({"rw-date-picker":!0,"rw-widget":!0,"rw-open":this.state.open,"rw-state-focus":this.state.focused,"rw-has-both":this.props.calendar&&this.props.time,"rw-rtl":this.isRtl()})},d({ref:"valueInput","aria-activedescendant":this.state.open?"calendar"===this.state.openPopup?h:a:void 0,"aria-expanded":this.state.open,"aria-busy":!!this.props.busy,"aria-owns":e,role:"combobox",value:this.props.value,focused:this.state.focused,format:this.props.format,parse:this._parse,onChange:this.props.onChange}),s.DOM.span({className:"rw-select"},this.props.calendar&&m({onClick:this._click.bind(null,"calendar")},s.DOM.i({className:"rw-i rw-i-calendar"},s.DOM.span({className:"rw-sr"},this.props.messages.calendarButton))),this.props.time&&m({onClick:this._click.bind(null,"time")},s.DOM.i({className:"rw-i rw-i-clock-o"},s.DOM.span({className:"rw-sr"},this.props.messages.timeButton)))),this.props.time&&p({getAnchor:this._getAnchor,style:{width:this.state.width},open:this.state.open&&"time"===this.state.openPopup,onRequestClose:this.close},s.DOM.div(null,c({ref:"timePopup",id:n,optID:a,"aria-hidden":!this.state.open,style:{maxHeight:200,height:"auto"},value:this.props.value,min:this.props.min,max:this.props.max,itemComponent:this.props.timeComponent,onChange:this._selectTime}))),this.props.calendar&&p({getAnchor:this._getAnchor,style:{width:200},open:this.state.open&&"calendar"===this.state.openPopup,onRequestClose:this.close},l(i.pick(this.props,i.keys(u.type.propTypes)),u({ref:"calPopup",id:r,maintainFocus:!1,"aria-hidden":!this.state.open,onChange:this._selectDate})))))},setTimeDimensions:function(){if(this.props.time){var e=h.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})}},_keyDown:function(e){"Tab"!==e.key&&(e.altKey?(e.preventDefault(),"ArrowDown"===e.key?this.open(this.state.open?"time"===this.state.openPopup?"calendar":"time":this.state.openPopup):"ArrowUp"===e.key&&this.close()):this.state.open&&("calendar"===this.state.openPopup&&this.refs.calPopup._keyDown(e),"time"===this.state.openPopup&&this.refs.timePopup._keyDown(e)))},_focus:function(e){var t=this,n=this.refs.valueInput;clearTimeout(t.timer),t.timer=setTimeout(function(){e?n.getDOMNode().focus():t.close(),e!==t.state.focused&&t.setState({focused:e})},0)},_selectDate:function(e){this.close(),this.props.onChange(a.merge(e,this.props.value))},_selectTime:function(e){this.close(),this.props.onChange(a.merge(this.props.value,e.date))},_click:function(e,t){this._focus(!0),this.toggle(e,t)},_parse:function(e){var t=i.isFunction(this.props.parse)?parse:i.partial(r,i.compact([this.props.format].concat(this.props.parse)));return t(e)},toggle:function(e){this.state.open?this.state.view!==e?this.open(e):this.close(e):this.open(e)},open:function(e){this.setState({open:!0,openPopup:e})},close:function(){this.setState({open:!1})},_getAnchor:function(){return this.refs.element.getDOMNode()}});var m=n(13)},function(e,t,n){var r=n(9),s=n(25),o=n(10),i=n(28).mergeIntoProps,a=n(29).directions,l=n(23),p=n(13),u={value:r.PropTypes.number,onChange:r.PropTypes.func,min:r.PropTypes.number,max:r.PropTypes.number,step:r.PropTypes.number,culture:r.PropTypes.string,format:r.PropTypes.string,parse:r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.string),r.PropTypes.string,r.PropTypes.func]),messages:r.PropTypes.shape({increment:r.PropTypes.string,decrement:r.PropTypes.string})};e.exports=r.createClass({displayName:"NumberPicker",mixins:[n(35),n(38)],propTypes:u,getDefaultProps:function(){return{format:"d",min:-1/0,max:1/0,step:1,messages:{increment:"increment value",decrement:"decrement value"}}},getInitialState:function(){return{focused:!1,active:!1}},render:function(){var e=this,t=this.inRangeValue(this.props.value);return i(o.omit(this.props,o.keys(u)),r.DOM.div({ref:"element",onKeyDown:this._keyDown,onFocus:this._focus.bind(null,!0),onBlur:this._focus.bind(null,!1),tabIndex:"-1",className:s({"rw-number-picker":!0,"rw-widget":!0,"rw-state-focus":this.state.focused,"rw-rtl":this.isRtl()})},r.DOM.span({className:"rw-select"},p({className:s({"rw-state-active":this.state.active===a.UP}),onMouseDown:o.partial(e._mouseDown,a.UP),onMouseUp:o.partial(this._mouseUp,a.UP),onClick:o.partial(this._focus,!0),"aria-disabled":t===this.props.max||this.props.disabled},r.DOM.i({className:"rw-i rw-i-caret-up"},r.DOM.span({className:"rw-sr"},this.props.messages.increment))),p({className:s({"rw-state-active":this.state.active===a.DOWN}),onMouseDown:o.partial(e._mouseDown,a.DOWN),onMouseUp:o.partial(this._mouseUp,a.DOWN),onClick:o.partial(this._focus,!0),"aria-disabled":t===this.props.min||this.props.disabled},r.DOM.i({className:"rw-i rw-i-caret-down"},r.DOM.span({className:"rw-sr"},this.props.messages.decrement)))),l({ref:"input",value:t,editing:this.state.focused,format:this.props.format,role:"spinbutton","aria-valuenow":t,"aria-valuemin":o.isFinite(this.props.min)?this.props.min:"","aria-valuemax":o.isFinite(this.props.max)?this.props.max:"","aria-disabled":this.props.disabled,"aria-readonly":this.props.readonly,onChange:this.change,onKeyDown:this.props.onKeyDown})))},_mouseDown:function(e){var t=e===a.UP?this.increment:this.decrement;this.setState({active:e}),t(),this.interval=setInterval(t,800)},_mouseUp:function(){this.setState({active:!1}),clearInterval(this.interval)},_focus:function(e){var t=this;clearTimeout(t.timer),t.timer=setTimeout(function(){var n=t.refs.input.getDOMNode();e&&n.focus(),e!==t.state.focused&&t.setState({focused:e})},0)},_keyDown:function(e){var t=e.key;"End"===t&&o.isFinite(this.props.max)?this.change(this.props.max):"Home"===t&&o.isFinite(this.props.min)?this.change(this.props.min):"ArrowDown"===t?(e.preventDefault(),this.decrement()):"ArrowUp"===t&&(e.preventDefault(),this.increment())},increment:function(){this.change(this.props.value+this.props.step)},decrement:function(){this.change(this.props.value-this.props.step)},change:function(e){var t=this.props.onChange;e=this.inRangeValue(e),t&&this.props.value!==e&&t(e)},inRangeValue:function(e){return Math.max(Math.min(e,this.props.max),this.props.min)}})},function(e,t,n){"use strict";var r=n(9),s=n(25),o=n(10),i=n(30),a=(n(29).directions,n(28).mergeIntoProps),l=n(21),p=n(22),u=n(34),c=n(12),d=(n(13),{data:r.PropTypes.array,value:r.PropTypes.array,onChange:r.PropTypes.func,valueField:r.PropTypes.string,textField:r.PropTypes.string,tagComponent:r.PropTypes.func,itemComponent:r.PropTypes.func,messages:r.PropTypes.shape({open:r.PropTypes.string,emptyList:r.PropTypes.string,emptyFilter:r.PropTypes.string})});e.exports=r.createClass({displayName:"Select",mixins:[n(37),n(40),n(38),n(39)("focusedIndex")],propTypes:d,getDefaultProps:function(){return{filter:"startsWith",messages:{emptyList:"There are no items in this list",emptyFilter:"The filter returned no results"}}},getInitialState:function(){var e=this._dataIndexOf(this.props.data,this.props.value);return{open:!1,processedData:this.process(this.props.data,this.props.value,""),focusedIndex:-1===e?0:e}},componentWillReceiveProps:function(e){var t=this.process(e.data,e.value,this.state.searchTerm);this.setState({processedData:t})},componentDidMount:function(){this.setWidth()},render:function(){var e=this.props.id&&this.props.id+"_listbox",t=this.props.id&&this.props.id+"_option",n=this._data();return a(o.omit(this.props,o.keys(d)),r.DOM.div({ref:"element","aria-haspopup":!0,onKeyDown:this._keyDown,onFocus:this._focus.bind(null,!0),onBlur:this._focus.bind(null,!1),tabIndex:"-1",className:s({"rw-select-list":!0,"rw-widget":!0,"rw-state-focus":this.state.focused,"rw-open":this.state.open,"rw-rtl":this.isRtl()})},r.DOM.div({className:"rw-select-wrapper",onClick:this._click},p({ref:"tagList",value:[].concat(this.props.value),textField:this.props.textField,valueField:this.props.valueField,valueComponent:this.props.tagComponent,onDelete:this._delete}),l({"aria-expanded":this.state.open,"aria-busy":!!this.props.busy,"aria-owns":e,value:this.state.searchTerm,placeholder:this._placeholder(),focused:this.state.focused,onChange:this._typing})),u({style:{width:this.state.width},getAnchor:this._getAnchor,open:this.state.open,onRequestClose:this.close},r.DOM.div(null,c({ref:"list",id:e,optID:t,"aria-hidden":!this.state.open,style:{maxHeight:200,height:"auto"},data:n,value:this.props.value,textField:this.props.textField,valueField:this.props.valueField,focusedIndex:this.state.focusedIndex,onSelect:this._onSelect,listItem:this.props.itemComponent,messages:{emptyList:this.props.data.length?this.props.messages.emptyFilter:this.props.messages.emptyList}})))))},setWidth:function(){var e=i.width(this.getDOMNode()),t=e!==this.state.width;t&&this.setState({width:e})},_data:function(){return this.state.processedData},_delete:function(e){this._focus(!0),this.change(o.without(this.props.value,e))},_click:function(){this._focus(!0),!this.state.open&&this.open()},_focus:function(e){var t=this;clearTimeout(t.timer),t.timer=setTimeout(function(){e!==t.state.focused&&(t.setState({focused:e}),e||t.close())},0)},_typing:function(e){var t=this.process(this.props.data,this.props.value,e.target.value);this.setState({searchTerm:e.target.value,processedData:t,open:this.state.open||this.state.open===!1,focusedIndex:t.length>=this.state.focusedIndex?0:this.state.focusedIndex})},_onSelect:function(e){this.change(this.props.value.concat(e)),this.close(),this._focus(!0)},_keyDown:function(e){var t=e.key,n=e.altKey,r=!!this.state.searchTerm,s=this.state.open;"ArrowDown"===t?s?this.setFocusedIndex(this.nextFocusedIndex()):this.open():"ArrowUp"===t?n?this.close():s&&this.setFocusedIndex(this.prevFocusedIndex()):"End"===t?s?this.setFocusedIndex(this._data().length-1):this.refs.tagList.last():"Home"===t?s?this.setFocusedIndex(0):this.refs.tagList.first():s&&"Enter"===t?this._onSelect(this._data()[this.state.focusedIndex]):"Esc"===t?s?this.close():this.refs.tagList.clear():r||"ArrowLeft"!==t?r||"ArrowRight"!==t?r||"Delete"!==t?r||"Backspace"!==t||this.refs.tagList.removeNext():this.refs.tagList.removeCurrent():this.refs.tagList.next():this.refs.tagList.prev()},change:function(e){var t=this.props.onChange;t&&t(e)},open:function(){this.setState({open:!0})},close:function(){this.setState({open:!1})},toggle:function(){this.state.open?this.close():this.open()},process:function(e,t,n){var r=o.reject(e,function(e){return o.any(t,o.partial(this._valueMatcher,e),this)},this);return n&&(r=this.filter(r,n)),r},_placeholder:function(){return this.props.value.length?"":this.props.placeholder||""},_getAnchor:function(){return this.refs.element.getDOMNode()}})},function(e,t,n){"use strict";var r=n(9),s=n(28).cloneWithProps,o=n(30),i=n(10);e.exports=r.createClass({displayName:"ReplaceTransitionGroup",propTypes:{component:r.PropTypes.func,childFactory:r.PropTypes.func,onAnimating:r.PropTypes.func,onAnimate:r.PropTypes.func},getDefaultProps:function(){return{component:r.DOM.span,childFactory:function(e){return e},onAnimating:i.noop,onAnimate:i.noop}},getInitialState:function(){return{children:r.Children.map(this.props.children,function(e){return e})}},componentWillReceiveProps:function(e){var t=r.Children.map(e.children,function(e){return e}),n=this.state.children;this.setState({children:i.extend({},n,t)}),i.any(t,function(e,t){var r=n&&i.has(n,t),s=!r&&!this.currentlyTransitioningKeys[t];return s&&(this.next=t),s},this),i.any(n,function(e,n){var r=t&&i.has(t,n),s=!r&&!this.currentlyTransitioningKeys[n];return s&&(this.current=n),s},this)},componentWillMount:function(){this.currentlyTransitioningKeys={},this.current=null,this.next=null},componentDidUpdate:function(){var e,t,n=this.current,r=this.next,s=this.refs[n||r],i=this.getDOMNode(),a=s&&s.getDOMNode();a&&(e=o.height(a)+"px",t=o.width(a)+"px",o.css(i,{overflow:"hidden",height:e,width:t})),this.props.onAnimating(),this.next=null,this.current=null,r&&this.performEnter(r),n&&this.performLeave(n)},performEnter:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)},_tryFinish:function(){var e=this.getDOMNode();this.isTransitioning()||(o.css(e,{overflow:"visible",height:"",width:""}),this.props.onAnimate())},_handleDoneEntering:function(e){var t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e];var n=r.Children.map(this.props.children,function(e){return e});n&&i.has(n,e)||this.performLeave(e),this._tryFinish()},isTransitioning:function(){return 0!==Object.keys(this.currentlyTransitioningKeys).length},performLeave:function(e){var t=this.refs[e];this.currentlyTransitioningKeys[e]=!0,t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)},_handleDoneLeaving:function(e){var t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];var n=r.Children.map(this.props.children,function(e){return e});if(n&&n.hasOwnProperty(e))this.performEnter(e);else{var s=i.extend({},this.state.children);delete s[e],this.setState({children:s})}this._tryFinish()},render:function(){var e={};for(var t in this.state.children){var n=this.state.children[t];n&&(e[t]=s(this.props.childFactory(n),{ref:t}))}return this.transferPropsTo(this.props.component(null,e))}})},function(e,t,n){var r=n(9),s=n(7),o=n(30),i=(n(10),r.createClass({displayName:"SlideChildGroup",propTypes:{direction:r.PropTypes.oneOf(["left","right"])},getDefaultProps:function(){return{duration:250}},componentWillEnter:function(e){var t=this,n=this.getDOMNode(),r=o.width(n),s=this.props.direction;r="left"===s?r:-r,this.ORGINAL_POSITION=n.style.position,o.css(n,{position:"absolute",left:r+"px",top:0}),o.animate(n,{left:0},t.props.duration,function(){o.css(n,{position:t.ORGINAL_POSITION,overflow:"hidden"}),t.ORGINAL_POSITION=null,e&&e()})},componentWillLeave:function(e){var t=this,n=this.getDOMNode(),r=o.width(n),s=this.props.direction;r="left"===s?-r:r,this.ORGINAL_POSITION=n.style.position,o.css(n,{position:"absolute",top:0,left:0}),o.animate(n,{left:r+"px"},t.props.duration,function(){o.css(n,{position:t.ORGINAL_POSITION,overflow:"hidden"}),t.ORGINAL_POSITION=null,e&&e()})},render:function(){return r.Children.only(this.props.children)}}));e.exports=r.createClass({displayName:"exports",propTypes:{direction:r.PropTypes.oneOf(["left","right"])},getDefaultProps:function(){return{direction:"left"}},_wrapChild:function(e){return i({direction:this.props.direction},e)},render:function(){return this.transferPropsTo(s({ref:"container",childFactory:this._wrapChild,style:{position:"relative",overflow:"hidden"},component:r.DOM.div},this.props.children))},isTransitioning:function(){return this.isMounted()&&this.refs.container.isTransitioning()}})},function(e){!function(){e.exports=this["window.React"]}()},function(e){!function(){e.exports=this["window._"]}()},function(e,t,n){var r=n(9),s=n(28).mergeIntoProps,o=n(10);e.exports=r.createClass({displayName:"exports",mixins:[n(37)],render:function(){var e=this.props.value;return s(o.omit(this.props,"value"),r.DOM.div(null,this._dataText(e)))}})},function(e,t,n){{var r=n(9),s=(n(33),n(27),n(28)),o=s.mergeIntoProps,i=(s.cloneWithProps,n(25)),a=n(10);r.createClass({displayName:"DefaultListItem",mixins:[n(37),n(42)],render:function(){var e=this.props.item;return this.transferPropsTo(r.DOM.li(null,e?this._dataText(e):""))}})}e.exports=r.createClass({displayName:"List",mixins:[n(37)],propTypes:{data:r.PropTypes.array,value:r.PropTypes.any,listItem:r.PropTypes.component,valueField:r.PropTypes.string,textField:r.PropTypes.string,optID:r.PropTypes.string,messages:r.PropTypes.shape({emptyList:r.PropTypes.string})},getDefaultProps:function(){return{delay:500,optID:"",messages:{emptyList:"There are no items in this list"}}},componentDidUpdate:function(e){e.focusedIndex!==this.props.focusedIndex&&this._setScrollPosition()},render:function(){var e=r.DOM.li(null,this.props.messages.emptyList),t=(r.DOM.li(null,this.props.messages.emptyFilter),a.map(this.props.data,function(e,t){var n=t===this.props.focusedIndex;return r.DOM.li({key:"item_"+t,role:"option",id:n?this.props.optID:"","aria-selected":t===this.props.selectedIndex,className:i({"rw-state-focus":n,"rw-state-selected":t===this.props.selectedIndex}),onClick:a.partial(this.props.onSelect,e,t)},this.props.listItem?this.props.listItem({item:e}):this._dataText(e))}.bind(this)));return o(a.omit(this.props,"data","selectedIndex"),r.DOM.ul({className:"rw-list",role:"listbox",tabIndex:"-1",onKeyDown:this._keyDown,onKeyPress:this.search},this.props.data.length?t:e))},_setScrollPosition:function(){var e,t,n,r,s,o=this.getDOMNode(),i=o.children[this.props.focusedIndex];i&&(e=o.scrollTop,t=o.clientHeight,n=i.offsetTop,r=i.offsetHeight,s=n+r,o.scrollTop=e>n?n:s>e+t?s-t:e)}})},function(e,t,n){var r=n(9);e.exports=r.createClass({displayName:"exports",render:function(){return this.transferPropsTo(r.DOM.button({type:"button",className:"rw-btn"},this.props.children))}})},function(e,t,n){var r=n(9),s=(n(25),n(13));e.exports=r.createClass({displayName:"exports",propTypes:{label:r.PropTypes.string.isRequired,labelId:r.PropTypes.string,upDisabled:r.PropTypes.bool.isRequired,prevDisabled:r.PropTypes.bool.isRequired,nextDisabled:r.PropTypes.bool.isRequired,onViewChange:r.PropTypes.func.isRequired,onMoveLeft:r.PropTypes.func.isRequired,onMoveRight:r.PropTypes.func.isRequired,messages:r.PropTypes.shape({moveBack:r.PropTypes.string,moveForward:r.PropTypes.string})},mixins:[n(35),n(42)],getDefaultProps:function(){return{messages:{moveBack:"navigate back",moveForward:"navigate forward"}}
},render:function(){var e=this.isRtl();return r.DOM.div({className:"rw-header"},s({className:"rw-btn-left",onClick:this.props.onMoveLeft,disabled:this.props.prevDisabled,"aria-disabled":this.props.prevDisabled,title:this.props.moveBack},r.DOM.i({className:"rw-i rw-i-caret-"+(e?"right":"left")},r.DOM.span({className:"rw-sr"},"Pthis.props.moveBack}"))),s({className:"rw-btn-view",id:this.props.labelId,onClick:this.props.onViewChange,disabled:this.props.upDisabled,"aria-disabled":this.props.upDisabled},this.props.label),s({className:"rw-btn-right",onClick:this.props.onMoveRight,disabled:this.props.nextDisabled,"aria-disabled":this.props.nextDisabled,title:this.props.moveForward},r.DOM.i({className:"rw-i rw-i-caret-"+(e?"left":"right")},r.DOM.span({className:"rw-sr"},this.props.moveForward))))}})},function(e,t,n){var r=n(9),s=n(25),o=n(31),i=n(43),a=n(29).directions,l=n(28).mergeIntoProps,p=n(10),u=n(13),c={LEFT:a.RIGHT,RIGHT:a.LEFT};e.exports=r.createClass({displayName:"MonthView",mixins:[n(42),n(44)("month","day")],propTypes:{culture:r.PropTypes.array,value:r.PropTypes.instanceOf(Date),selectedDate:r.PropTypes.instanceOf(Date),min:r.PropTypes.instanceOf(Date),max:r.PropTypes.instanceOf(Date),format:r.PropTypes.string,onChange:r.PropTypes.func.isRequired,onMoveLeft:r.PropTypes.func,onMoveRight:r.PropTypes.func},render:function(){var e=o.visibleDays(this.props.value),t=i(e,7);return l(p.omit(this.props,"max","min","value","onChange"),r.DOM.table({role:"grid",tabIndex:"0",className:"rw-calendar-grid",onKeyUp:this._keyUp},r.DOM.thead(null,r.DOM.tr(null,this._headers())),r.DOM.tbody(null,p.map(t,this._row))))},_row:function(e,t){return r.DOM.tr({key:"week_"+t},p.map(e,function(e,t){var n=o.eq(e,this.state.focusedDate,"day"),i=o.eq(e,this.props.selectedDate,"day"),a=this.props.id&&this.props.id+"_selected_item";return o.inRange(e,this.props.min,this.props.max)?r.DOM.td({key:"day_"+t},u({tabIndex:"-1",onClick:p.partial(this.props.onChange,e),"aria-selected":i,className:s({"rw-off-range":o.month(e)!==o.month(this.state.focusedDate),"rw-state-focus":n,"rw-state-selected":i}),id:n?a:void 0},o.format(e,"dd"))):r.DOM.td({key:"day_"+t,className:"rw-empty-cell"}," ")}.bind(this)))},_headers:function(e){var t=o.shortDaysOfWeek(e);return p.map(t,function(e,t){return r.DOM.th({key:"header_"+t},e)})},move:function(e,t){return this.isRtl()&&c[t]&&(t=c[t]),t===a.LEFT?e=o.subtract(e,1,"day"):t===a.RIGHT?e=o.add(e,1,"day"):t===a.UP?e=o.subtract(e,1,"week"):t===a.DOWN&&(e=o.add(e,1,"week")),e}})},function(e,t,n){var r=n(9),s=n(25),o=n(31),i=n(43),a=n(29).directions,l=n(28).mergeIntoProps,p=n(10),u={LEFT:a.RIGHT,RIGHT:a.LEFT};e.exports=r.createClass({displayName:"YearView",mixins:[n(42),n(44)("year","month")],propTypes:{value:r.PropTypes.instanceOf(Date),min:r.PropTypes.instanceOf(Date),max:r.PropTypes.instanceOf(Date),onChange:r.PropTypes.func.isRequired},render:function(){var e=o.monthsInYear(o.year(this.props.value)),t=i(e,4);return l(p.omit(this.props,"max","min","value","onChange"),r.DOM.table({tabIndex:"0",ref:"table",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-labeledby":this.props["aria-labeledby"],onKeyUp:this._keyUp},r.DOM.tbody(null,p.map(t,this._row))))},_row:function(e,t){return r.DOM.tr({key:t},p.map(e,function(e,t){var n=o.eq(e,this.state.focusedDate,"month"),i=o.eq(e,this.props.value,"month"),a=this.props.id&&this.props.id+"_selected_item";return o.inRange(e,this.props.min,this.props.max,"month")?r.DOM.td({key:t},c({onClick:p.partial(this.props.onChange,e),tabIndex:"-1",id:n?a:void 0,"aria-selected":i,className:s({"rw-state-focus":n,"rw-state-selected":i})},o.format(e,o.formats.MONTH_NAME_ABRV))):r.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},focus:function(){this.refs.table.getDOMNode().focus()},move:function(e,t){return this.isRtl()&&u[t]&&(t=u[t]),t===a.LEFT?e=o.subtract(e,1,"month"):t===a.RIGHT?e=o.add(e,1,"month"):t===a.UP?e=o.subtract(e,4,"month"):t===a.DOWN&&(e=o.add(e,4,"month")),e}});var c=n(13)},function(e,t,n){function r(e,t){return a.gte(e,a.startOf(t,"decade"),"year")&&a.lte(e,a.endOf(t,"decade"),"year")}function s(e){var e=a.add(a.startOf(e,"decade"),-2,"year");return c.map(c.range(12),function(){return e=a.add(e,1,"year")})}var o=n(9),i=n(25),a=n(31),l=n(43),p=n(29).directions,u=n(28).mergeIntoProps,c=n(10),d={LEFT:p.RIGHT,RIGHT:p.LEFT};e.exports=o.createClass({displayName:"DecadeView",mixins:[n(35),n(42),n(44)("decade","year")],propTypes:{value:o.PropTypes.instanceOf(Date),min:o.PropTypes.instanceOf(Date),max:o.PropTypes.instanceOf(Date),onChange:o.PropTypes.func.isRequired},render:function(){var e=s(this.props.value),t=l(e,4),n=this.props.id&&this.props.id+"_selected_option";return this.selectedId=n,u(c.omit(this.props,"max","min","value","onChange"),o.DOM.table({tabIndex:"0",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-activedescendant":n,"aria-labeledby":this.props["aria-labeledby"],onKeyUp:this._keyUp},o.DOM.tbody(null,c.map(t,this._row))))},_row:function(e,t){this.selectedId;return o.DOM.tr({key:"row_"+t},c.map(e,function(e,t){var n=a.eq(e,this.state.focusedDate,"year"),s=a.eq(e,this.props.value,"year"),l=this.props.id&&this.props.id+"_selected_item";return a.inRange(e,this.props.min,this.props.max,"year")?o.DOM.td({key:t},h({onClick:c.partial(this.props.onChange,e),tabIndex:"-1",id:n?l:void 0,"aria-selected":s,className:i({"rw-off-range":!r(e,this.props.value),"rw-state-focus":n,"rw-state-selected":s})},a.format(e,a.formats.YEAR))):o.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},move:function(e,t){return this.isRtl()&&d[t]&&(t=d[t]),t===p.LEFT?e=a.subtract(e,1,"year"):t===p.RIGHT?e=a.add(e,1,"year"):t===p.UP?e=a.subtract(e,4,"year"):t===p.DOWN&&(e=a.add(e,4,"year")),e}});var h=n(13)},function(e,t,n){function r(e){return u.format(u.startOf(e,"decade"),u.formats.YEAR)+" - "+u.format(u.endOf(e,"decade"),u.formats.YEAR)}function s(e,t,n){return u.max(u.min(e,n),t)}function o(e,t,n){return u.gte(e,u.startOf(t,"decade"),"year")&&u.lte(e,u.endOf(n,"decade"),"year")}function i(e,t){return u.gte(e,u.startOf(t,"century"),"year")&&u.lte(e,u.endOf(t,"century"),"year")}function a(e){var e=u.add(u.startOf(e,"century"),-20,"year");return f.map(f.range(12),function(){return e=u.add(e,10,"year")})}var l=n(9),p=n(25),u=n(31),c=n(43),d=n(29).directions,h=n(28).mergeIntoProps,f=n(10),m={LEFT:d.RIGHT,RIGHT:d.LEFT};e.exports=l.createClass({displayName:"CenturyView",mixins:[n(35),n(42),n(44)("century","decade")],propTypes:{value:l.PropTypes.instanceOf(Date),min:l.PropTypes.instanceOf(Date),max:l.PropTypes.instanceOf(Date),onChange:l.PropTypes.func.isRequired},render:function(){var e=a(this.props.value),t=c(e,4);return h(f.omit(this.props,"max","min","value","onChange"),l.DOM.table({tabIndex:"0",role:"grid",className:"rw-calendar-grid rw-nav-view","aria-labeledby":this.props["aria-labeledby"],onKeyUp:this._keyUp},l.DOM.tbody(null,f.map(t,this._row))))},_row:function(e,t){return l.DOM.tr({key:"row_"+t},f.map(e,function(e,t){var n=u.eq(e,this.state.focusedDate,"decade"),a=u.eq(e,this.props.value,"decade"),c=this.props.id&&this.props.id+"_selected_item",d=s(e,this.props.min,this.props.max);return o(e,this.props.min,this.props.max)?l.DOM.td({key:t},v({onClick:f.partial(this.props.onChange,d),tabIndex:"-1",id:n?c:void 0,"aria-selected":a,className:p({"rw-off-range":!i(e,this.props.value),"rw-state-focus":n,"rw-state-selected":a})},r(e))):l.DOM.td({key:t,className:"rw-empty-cell"}," ")}.bind(this)))},move:function(e,t){return this.isRtl()&&m[t]&&(t=m[t]),t===d.LEFT?e=u.subtract(e,1,"decade"):t===d.RIGHT?e=u.add(e,1,"decade"):t===d.UP?e=u.subtract(e,4,"decade"):t===d.DOWN&&(e=u.add(e,4,"decade")),e}});var v=n(13)},function(e,t,n){var r=n(9),s=(n(25),n(31)),o=n(12),i=n(28).mergeIntoProps,a=(n(29).directions,n(10));e.exports=r.createClass({displayName:"TimeList",mixins:[n(36),n(39)("selectedIndex"),n(39)("focusedIndex")],propTypes:{value:r.PropTypes.instanceOf(Date),min:r.PropTypes.instanceOf(Date),max:r.PropTypes.instanceOf(Date),step:r.PropTypes.number,itemComponent:r.PropTypes.func,onChange:r.PropTypes.func.isRequired},getDefaultProps:function(){return{step:30,format:"t"}},getInitialState:function(){var e=this._selectedIndex(this._data(),this.props.value);return{focusedIndex:-1===e?0:e}},render:function(){var e=this._data(),t=this._selectedIndex(e,this.props.value);return i(a.omit(this.props,"value"),o({ref:"list",data:e,textField:"label",valueField:"date",selectedIndex:t,focusedIndex:this.state.focusedIndex,listItem:this.props.itemComponent,onSelect:this.props.onChange}))},_selectedIndex:function(e,t){return a.findIndex(e,function(e){return s.eq(t,e,"hours")})},_data:function(){for(var e=[],t=s.eq(this.props.value,this.props.min,"day")?this.props.min:s.today,n=s.eq(this.props.value,this.props.max,"day")?this.props.max:s.tomorrow;s.lt(t,n,"day");)e.push({date:t,label:s.format(t,this.props.format)}),t=s.add(t,this.props.step||30,"minutes");return e},_keyDown:function(e){var t=this,n=e.key,r=String.fromCharCode(e.keyCode);"End"===n?this.setFocusedIndex(this._data().length-1):"Home"===n?this.setFocusedIndex(0):"Enter"===n?this.props.onChange(this._data()[this.state.focusedIndex]):"ArrowDown"===n?(e.preventDefault(),this.setFocusedIndex(this.nextFocusedIndex())):"ArrowUp"===n?(e.preventDefault(),this.setFocusedIndex(this.prevFocusedIndex())):(e.preventDefault(),this.search(r,function(e){t.setFocusedIndex(this.findIndex(e,t.state.focusedIndex))}))}});n(13)},function(e,t,n){function r(e){return!isNaN(e.getTime())}var s=n(9),o=n(25),i=n(27),a=n(31);e.exports=s.createClass({displayName:"DatePickerInput",propTypes:{format:s.PropTypes.string,parse:s.PropTypes.func.isRequired,value:s.PropTypes.instanceOf(Date),onChange:s.PropTypes.func.isRequired},componentWillReceiveProps:function(e){this.setState({textValue:this.formatDate(e.value)})},getInitialState:function(){var e=this.formatDate(this.props.value);return{textValue:e,lastValue:e}},getDefaultProps:function(){return{value:null}},render:function(){return this.transferPropsTo(s.DOM.input({type:"text",className:o({"rw-input":!0}),value:this.state.textValue,onChange:this._change,onBlur:i.chain(this.props.blur,this._blur)}))},_change:function(e){this.setState({textValue:e.target.value})},_blur:function(){var e=this.state.textValue;e!==this.state.lastValue&&(this.props.onChange(this.props.parse(e),e),this.setState({lastValue:e}))},focus:function(){this.getDOMNode().focus()},formatDate:function(e){var t="";return e instanceof Date&&r(e)&&(t=a.format(e,this.props.format)),t}})},function(e,t,n){var r=n(9);e.exports=r.createClass({displayName:"exports",propTypes:{value:r.PropTypes.string,onChange:r.PropTypes.func.isRequired},componentDidUpdate:function(){this.props.focused&&this.focus()},render:function(){var e=this.props.value,t=this.props.placeholder,n=Math.max((e||t).length,1);return this.transferPropsTo(r.DOM.input({type:"text",className:"rw-input",size:n}))},focus:function(){this.getDOMNode().focus()}})},function(e,t,n){var r=n(9),s=n(10),o=n(25),i=n(28).mergeIntoProps,a=n(13);e.exports=r.createClass({displayName:"SelectTagList",mixins:[n(37)],propTypes:{value:r.PropTypes.array,valueField:r.PropTypes.string,textField:r.PropTypes.string,valueComponent:r.PropTypes.component},getInitialState:function(){return{focused:null}},render:function(){var e=this.state.focused,t=this.props.value;return i(s.omit(this.props,"value"),r.DOM.ul({className:"rw-tag-list"},s.map(t,function(t,n){return r.DOM.li({key:n,unselectable:"on",className:o({"rw-state-focus":e===n})},this.props.valueComponent?this.props.valueComponent({item:t}):this._dataText(t),a({onClick:this._delete.bind(null,t),unselectable:"on"},"×",r.DOM.span({className:"rw-sr"},"Remove "+this._dataText(t))))},this)))},_delete:function(e){this.props.onDelete(e)},removeCurrent:function(){var e=this.props.value[this.state.focused];e&&this.props.onDelete(e)},removeNext:function(){var e=s.last(this.props.value);e&&this.props.onDelete(e)},clear:function(){this.setState({focused:null})},first:function(){this.setState({focused:0})},last:function(){this.setState({focused:this.props.value.length-1})},next:function(){var e=this.state.focused+1;if(null!==this.state.focused)return e>=this.props.value.length?this.clear():void this.setState({focused:e})},prev:function(){var e=this.state.focused;null===e?e=this.props.value.length:0>=e&&(e=1),this.setState({focused:e-1})}});r.createClass({displayName:"DefaultTag",mixins:[n(37)],render:function(){var e=this.props.item;return this.transferPropsTo(r.DOM.span(null,e?this._dataText(e):""))}})},function(e,t,n){var r=n(9),s=(n(25),n(27),n(26)),o=n(41);e.exports=r.createClass({displayName:"NumberPickerInput",propTypes:{value:r.PropTypes.number,format:r.PropTypes.string,onChange:r.PropTypes.func.isRequired,onKeyDown:r.PropTypes.func},getDefaultProps:function(){return{value:null,format:"d",editing:!1}},getInitialState:function(){return{stringValue:""}},componentWillReceiveProps:function(){this.current("")},render:function(){var e=this.state.stringValue||this.props.value;return e=this.props.editing?e:o.format(e,this.props.format),this.transferPropsTo(r.DOM.input({type:"text",className:"rw-input",onKeyDown:this.props.onKeyDown,onChange:this._change,value:e}))},_change:function(e){var t=+e.target.value;isNaN(t)||(t!==this.props.value?this.props.onChange(t):this.current(e.target.value))},current:s("stringValue")})},function(e,t,n){var r=n(9),s=(n(25),n(27),n(32));e.exports=r.createClass({displayName:"exports",propTypes:{value:r.PropTypes.string,suggestion:r.PropTypes.string,onChange:r.PropTypes.func.isRequired},componentDidUpdate:function(){var e=this.getDOMNode(),t=this.props.value,n=""!==this._last&&-1!==t.indexOf(this._last)&&this._last!==t;if(this.props.suggest&&n){var r=t.indexOf(this._last)+this._last.length,o=t.length-r;r>=0&&s(e,r,r+o)}this._last=t},getDefaultProps:function(){return{value:"",suggestion:""}},render:function(){return this.transferPropsTo(r.DOM.input({type:"text",className:"rw-input",onKeyDown:this.props.onKeyDown,onChange:this._change,value:this.props.value}))},_change:function(e){var t=e.target.value;this._last=t,this.props.onChange(e,t)},focus:function(){this.getDOMNode().focus()}})},function(e,t,n){var r=n(10);e.exports=function(e){return r.isArray(e)||(e=r.transform(e,function(e,t,n){t&&e.push(n)},[])),e.join(" ")}},function(e){e.exports=function(e){return function(t){var n={};return n[e]=t,this.setState(n),this}}},function(e,t,n){function r(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null!=n||null!=r)return null==n?r:null==r?n:s.extend(n,r)}}var s=n(10),o=e.exports={chain:function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},merge:function(e,t){if(typeof e!=typeof t)throw new TypeError;return s.isArray(e)?e.splice(e.length,0,t):s.isFunction(e)?e=r(e,t):s.extend(e,t),e},before:s.curry(function(e,t){return function(){return e.apply(this,arguments),t.apply(this,arguments)}}),after:s.curry(function(e,t){return function(){var n=t.apply(this,arguments);return e.apply(this,arguments),n}}),around:s.curry(function(e,t){return function(){var n=[t].concat(s.toArray(arguments));return e.apply(this,n)}}),provided:function(e){return o.around(function(t){var n=s.rest(arguments);return e.apply(this,n)?t.apply(this,n):void 0})}}},function(e,t,n){function r(e,t){return a.transform(t,function(e,t,n){a.has(p,n)?p[n](e,t,n):a.has(e,n)||(e[n]=t)},e)}function s(e){return function(t,n,r){t[r]=a.has(t,r)?e(t[r],n):n}}function o(){return a.reduce(arguments,function(e,t){return e?t?e+=" "+t:e:t||""},"")}function i(e,t){return a.extend({},e,t)}var a=n(10),l=n(9),p={className:s(o),children:a.noop,key:a.noop,ref:a.noop,style:s(i)};e.exports={mergeIntoProps:function(e,t){var n=t.props?t.props:t;return r(n,e),t},cloneWithProps:function(e,t){var n=r(a.clone(t),e.props);return!a.has(n,"children")&&a.has(e.props,"children")&&(n.children=e.props.children),0===l.version.indexOf("0.10.")?e.constructor.ConvenienceConstructor(n):e.constructor(n)}}},function(e,t,n){function r(e){return s.mapValues(e,function(e,t){return t})}var s=n(10);e.exports={directions:r({LEFT:null,RIGHT:null,UP:null,DOWN:null})}},function(e,t,n){function r(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})}function s(e){return e.replace(/[A-Z]/g,function(e,t){return(0!==t?"-":"")+e.toLowerCase()})}function o(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null)}var i,a,l,p,u,c,d=n(10),h="",f=document.createElement("div"),m={},v={O:"otransitionend",Moz:"transitionend",Webkit:"webkitTransitionEnd"};d.any(v,function(e,t){return void 0!==f.style[t+"TransitionProperty"]?(h="-"+t.toLowerCase()+"-",c=e,!0):void 0}),c||void 0===f.style.transitionProperty||(c="transitionend"),u=!c,m[l=h+"transition-property"]=m[a=h+"transition-duration"]=m[p=h+"transition-delay"]=m[i=h+"transition-timing-function"]="";var y=e.exports={width:function(e){return y.offset(e).width},height:function(e){return y.offset(e).height},hasFocus:function(e){var t=e.ownerDocument;return null==t.activeElement?!1:t.activeElement===e},offset:function(e){var t=e.ownerDocument,n=t&&t.documentElement,r={top:0,left:0};if(n)return y.contains(n,e)?(void 0!==e.getBoundingClientRect&&(r=e.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft,width:r.width||e.offsetWidth,height:r.height||e.offsetHeight}):r},css:function(e,t,n){var i="",a=t;if("string"==typeof t){if(void 0===n)return e.style[r(t)]||o(e).getPropertyValue(t);(a={})[t]=n}d.each(a,function(t,n){t||0===t?i+=s(n)+":"+t+";":e.style.removeProperty(s(n))}),e.style.cssText+=";"+i},contains:function(){var e=document.documentElement;return e&&e.contains?function(e,t){return e.contains(t)}:e&&e.compareDocumentPosition?function(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}:function(e,t){if(t)do if(t===e)return!0;while(t=t.parentNode);return!1}}(),on:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},off:function(e,t,n){e.addEventListener?e.removeEventListener(t,n,!1):e.attachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},trigger:function(e,t){var n=document.createEvent("Events");n.initEvent(t,!0,!0),e.dispatchEvent(n)},animate:function(e,t,n,r,o){function h(t){t.target===t.currentTarget&&(f=!0,y.off(t.target,c,h),y.css(e,m),o&&o.call(this))}var f,v=[],g={target:e,currentTarget:e},D={};d.isFunction(r)&&(o=r,r=null),u&&(n=0),void 0===n&&(n=200);for(key in t)D[key]=t[key],v.push(s(key));n>0&&(D[l]=v.join(", "),D[a]=n/1e3+"s",D[p]="0s",D[i]=r||"linear"),n>0&&(y.on(e,c,h),setTimeout(function(){f||h(g)},n+25)),e.clientLeft,y.css(e,D),0>=n&&setTimeout(d.partial(h,g),0)}}},function(e,t,n){var r=n(45),s=n(41),o=n(10),i=e.exports=o.extend({},r,{culture:function(){return s.culture()},startOfWeek:function(){var e=s.culture();return e&&e.calendar?e.calendar.firstDay||0:0},parse:function(e,t,n){return s.parseDate(e,t,n)},format:function(e,t,n){return s.format(e,t,n)},shortDaysOfWeek:function(){var e=i.culture();return e&&e.calendar?e.calendar.days.namesShort.slice():void 0},daysOfWeek:function(e,t){return 1===arguments.length&&(t=e,e=new Date),t=t||"do",o.map(o.range(7),function(n){return i.format(r.weekday(e,n),t)})},months:function(e,t){return 1===arguments.length&&(t=e,e=new Date),t=t||i.formats.DAY_NAME_ABRV,o.map(o.range(12),function(n){return i.format(r.month(e,n),t)})},monthsInYear:function(e){var t=new Date(e,0,1);return o.map(o.range(12),function(e){return r.month(t,e)})},firstOfDecade:function(e){var t=r.year(e)%10;return r.subtract(e,t,"year")},lastOfDecade:function(e){return r.add(i.firstOfDecade(e),9,"year")},firstOfCentury:function(e){var t=r.year(e)%100;return r.subtract(e,t,"year")},lastOfCentury:function(e){return r.add(i.firstOfCentury(e),99,"year")},firstVisibleDay:function(e){var t=r.startOf(e,"month");return r.startOf(t,"week")},lastVisibleDay:function(e){var t=r.endOf(e,"month");return r.endOf(t,"week")},visibleDays:function(e){for(var t=i.firstVisibleDay(e),n=i.lastVisibleDay(e),s=[];r.lte(t,n,"day");)s.push(t),t=r.add(t,1,"day");return s},merge:function(e,t){return e=i.startOf(e,"day"),e=i.hours(e,i.hours(t)),e=i.minutes(e,i.minutes(t)),e=i.seconds(e,i.seconds(t)),i.milliseconds(e,i.milliseconds(t))},sameMonth:function(e,t){return r.eq(e,t,"month")},formats:{DAY_OF_MONTH:"dd",DAY_NAME_SHORT:null,MONTH_NAME_ABRV:"MMM",MONTH_YEAR:"MMMM yyyy",YEAR:"yyyy"}});Object.defineProperties(i,{now:{enumerable:!0,get:function(){return Date.now?Date.now:new Date}},today:{enumerable:!0,get:function(){return this.startOf(new Date,"day")}},yesterday:{enumerable:!0,get:function(){return this.add(this.startOf(new Date,"day"),-1,"day")}},tomorrow:{enumerable:!0,get:function(){return this.add(this.startOf(new Date,"day"),1,"day")}}})},function(e){e.exports=function(e,t,n){return void 0===t?{start:e.selectionStart,end:e.selectionEnd}:(e.focus(),void e.setSelectionRange(t,n))}},function(e,t,n){var r=n(10),s={eq:function(e,t){return e===t},neq:function(e,t){return e!==t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},lt:function(e,t){return t>e},ltw:function(e,t){return t>=e},contains:function(e,t){return r.contains(e,t)},startsWith:function(e,t){return 0===e.lastIndexOf(t,0)},endsWith:function(e,t){var n=e.length-t.length,r=e.indexOf(t,n);return-1!==r&&r===n}};e.exports=s,e.exports.filter=function o(e,o){if(o="string"==typeof o?s[o]:o,"function"!=typeof o)throw new TypeError;return r.filter(e,o)}},function(e,t,n){function r(e){var t,n=s.Children.map(e,function(e){return e});for(t in n)return t}var s=n(9),o=(n(25),n(10)),i=n(28).mergeIntoProps,a=n(30);e.exports=s.createClass({displayName:"exports",propTypes:{getAnchor:s.PropTypes.func.isRequired,onRequestClose:s.PropTypes.func.isRequired,onClosing:s.PropTypes.func,onOpening:s.PropTypes.func,onClose:s.PropTypes.func,onOpen:s.PropTypes.func},getDefaultProps:function(){return{height:"auto",duration:200,open:!1,onClosing:o.noop,onOpening:o.noop,onClose:o.noop,onOpen:o.noop}},componentWillUnmount:function(){a.off(document,"click",self._onClick),a.off(window,"resize",self._resize)},componentDidMount:function(){var e=this,t=this.getDOMNode();e._onClick=function(n){var r=!a.contains(document,n.target),s=a.contains(t,n.target),o=a.contains(e.props.getAnchor(),n.target);!e.props.open||o||s||r||e.props.onRequestClose()},e._resize=o.throttle(this.position.bind(this),100),a.off(window,"resize",e._resize),a.off(document,"click",e._onClick),this.position(),this.close(0)},componentWillReceiveProps:function(e){this.setState({contentChanged:r(e.children)!==r(this.props.children)})},componentDidUpdate:function(e){{var t=this,n=e.open&&!this.props.open,r=!e.open&&this.props.open;e.open===this.props.open}this.position(),r?t.open():n&&t.close()},render:function(){var e=o.extend({},this.props.style||{},{overflow:"hidden",position:"absolute",zIndex:1005}),t=i({className:"rw-popup rw-widget"},this.props.children);return t.props.ref=this.props.children.props.ref,s.DOM.div({style:e},l({ref:"content"},t))},dimensions:function(){var e=this.getDOMNode();e.style.display="block",e.style.height=a.height(this.refs.content.getDOMNode())+"px"},position:function(){var e=a.offset(this.props.getAnchor());a.css(this.getDOMNode(),{top:e.height-1+"px",left:"-1px"})},open:function(){var e=this,t=this.getDOMNode(),n=this.refs.content.getDOMNode();this.ORGINAL_POSITION=n.style.position,this.dimensions(),this.props.onOpening(),n.style.position="absolute",a.animate(n,{top:0},e.props.duration,function(){a.css(n,{position:e.ORGINAL_POSITION}),t.style.overflow="visible",e.ORGINAL_POSITION=null,e.props.onOpen()})},close:function(e){{var t=this,n=this.refs.content.getDOMNode(),r=this.getDOMNode();r.style.height}this.ORGINAL_POSITION=n.style.position,this.dimensions(),this.props.onClosing(),r.style.overflow="hidden",n.style.position="absolute",a.animate(n,{top:"-100%"},void 0===e?this.props.duration:e,function(){a.css(n,{position:t.ORGINAL_POSITION}),r.style.display="none",t.ORGINAL_POSITION=null,t.props.onClose()})}});var l=s.createClass({displayName:"PopupContent",render:function(){return s.Children.only(this.props.children)}})},function(e,t,n){function r(e,t){var n;if(e===t)return!0;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}n(9);e.exports={shouldComponentUpdate:function(e,t){return!r(this.props,e)||!r(this.state,t)}}},function(e,t,n){var r=n(9),s=n(33),o=n(37),i=(n(27),n(26),n(10));e.exports={propTypes:{data:r.PropTypes.array,value:r.PropTypes.any,delay:r.PropTypes.number,filter:r.PropTypes.string},search:function(e,t){var n=this,r=((this._searchTerm||"")+e).toLowerCase();clearTimeout(this._timer),this._searchTerm=r,this._timer=setTimeout(function(){n._searchTerm="",t(r)},this.props.delay)},findIndex:function(e,t){var n=s.startsWith,r=this;return i.findIndex(r._data(),function(s,i){return i!=t&&n(o._dataText.call(r,s).toLowerCase(),e.toLowerCase())})}}},function(e,t,n){var r=n(9),s=n(10);e.exports={propTypes:{valueField:r.PropTypes.string,textField:r.PropTypes.string},_dataValue:function(e){var t=this.props.valueField;return t&&e&&s.has(e,t)?e[t]:e},_dataText:function(e){var t=this.props.textField;return(t&&e&&s.has(e,t)?e[t]:e)+""},_dataIndexOf:function(e,t){return s.findIndex(e,s.partial(this._valueMatcher,t),this)},_valueMatcher:function(e,t){return s.isEqual(this._dataValue(e),this._dataValue(t))},_dataItem:function(e,t){var n,r=e[0],s=this._dataValue(t);return null==r||typeof r==typeof s?s:(n=this._dataIndexOf(e,t),-1!==n?e[n]:t)}}},function(e,t,n){var r=n(9);e.exports={propTypes:{isRtl:r.PropTypes.bool},contextTypes:{isRtl:r.PropTypes.bool},childContextTypes:{isRtl:r.PropTypes.bool},getChildContext:function(){return{isRtl:this.props.isRtl||this.context&&this.context.isRtl}},isRtl:function(){return!!(this.props.isRtl||this.context&&this.context.isRtl)}}},function(e,t,n){function r(e){return function(){return e.apply(this,arguments),this}}var s=n(9),o=(n(33),n(37),n(26)),i=n(27),a=(n(29).directions,n(10));e.exports=function(e){var t=e.charAt(0).toUpperCase()+e.substr(1),n=(i.provided(function(e){return!a.isEqual(e.value,this.props.value)}),i.provided(function(e){return e>=0})),l=n(o(e)),p={propTypes:{data:s.PropTypes.array,value:s.PropTypes.any}};return p["set"+t]=r(l),p["prev"+t]=function(){var t=(this._data(),this.state&&this.state[e]||0);return t-=1,0>t&&(t=0),t},p["next"+t]=function(){var t=this._data(),n=this.state&&this.state[e]||0;return n+=1,n>=t.length&&(n=t.length-1),n},p}},function(e,t,n){{var r=n(9),s=n(33),o=n(37),i=n(26),a=n(27),l=(n(29).directions,n(10)),p=(a.provided(function(e){return!l.isEqual(e.value,this.props.value)}),a.provided(function(e){return e>=0})),u=l.without(l.keys(s),"filter");p(i("selectedIndex"))}e.exports={propTypes:{data:r.PropTypes.array,value:r.PropTypes.any,filter:r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.oneOf(u.concat(!1))]),caseSensitive:r.PropTypes.bool,minLength:r.PropTypes.number},getDefaultProps:function(){return{caseSensitive:!1,minLength:1}},filter:function(e,t){var n="string"==typeof this.props.filter?s[this.props.filter]:this.props.filter;return!n||!t||!t.trim()||t.length<(this.props.minLength||1)?e:(this.props.caseSensitive||(t=t.toLowerCase()),l.filter(e,function(e){var r=o._dataText.call(this,e);return this.props.caseSensitive||(r=r.toLowerCase()),n(r,t.toLowerCase())},this))}}},function(e){!function(){e.exports=this["window.Globalize"]}()},function(e,t,n){var r=n(9);e.exports={contextTypes:{isRtl:r.PropTypes.bool},isRtl:function(){return!!this.context.isRtl}}},function(e){/**
* @license

@@ -10,3 +10,3 @@ * Lo-Dash 3.0.0-pre <http://lodash.com/>

*/
e.exports=function(e,t){var s=0,n=e?e.length:0,i=[];for(t=Math.max(+t||1,1);n>s;)i.push(e.slice(s,s+=t));return i}},function(e,t,s){var n=s(9),i=s(28),r=s(24).directions;e.exports=function(e,t){return{propTypes:{value:n.PropTypes.instanceOf(Date),min:n.PropTypes.instanceOf(Date),max:n.PropTypes.instanceOf(Date)},getInitialState:function(){return{focusedDate:this.props.value}},componentWillReceiveProps:function(e){var s=this.state.focusedDate;//!dates.inRange(focused, nextProps.min, nextProps.max)
i.eq(e.value,s,t)||this.setState({focusedDate:e.value})},_keyDown:function(s){var n=s.key,o=(s.altKey,this.state.focusedDate),a=o;if("Enter"===n)return this.props.onChange(a);if("ArrowLeft"===n?a=this.move(a,r.LEFT):"ArrowRight"===n?a=this.move(a,r.RIGHT):"ArrowUp"===n?a=this.move(a,r.UP):"ArrowDown"===n&&(a=this.move(a,r.DOWN)),!i.eq(o,a,t)){if(s.preventDefault(),i.gt(a,this.props.value,e))return this.props.onMoveRight(a);if(i.lt(a,this.props.value,e))return this.props.onMoveLeft(a);this.setState({focusedDate:a})}}}}},function(e){function t(e,t){var s=f.month(e),n=s+t;return e=f.month(e,n),0>n&&(n=12+t),f.month(e)!==n%12&&(e=f.date(e,0)),e}function s(e){return e=e.charAt(0).toUpperCase()+e.substr(1),function(t,s){return void 0===s?t["get"+e]():(t=new Date(t),t["set"+e](s),t)}}function n(e){return function(t,s,n){return e(+f.startOf(t,n),+f.startOf(s,n))}}var i="milliseconds",r="seconds",o="minutes",a="hours",p="day",u="week",c="month",h="year",l="decade",d="century",f=e.exports={startOfWeek:function(){return 0},add:function(e,s,n){if(e=new Date(e),n===i)return f.milliseconds(e,f.milliseconds(e)+s);if(n===r)return f.seconds(e,f.seconds(e)+s);if(n===o)return f.minutes(e,f.minutes(e)+s);if(n===a)return f.hours(e,f.hours(e)+s);if(n===p)return f.date(e,f.date(e)+s);if(n===u)return f.date(e,f.date(e)+7*s);if(n===c)return t(e,s);if(n===h)return f.year(e,f.year(e)+s);if(n===l)return f.year(e,f.year(e)+10*s);if(n===d)return f.year(e,f.year(e)+100*s);throw new TypeError('Invalid units: "'+n+'"')},subtract:function(e,t,s){return f.add(e,-t,s)},startOf:function(e,t){switch(e=new Date(e),t){case"century":case"decade":case"year":e=f.month(e,0);case"month":e=f.date(e,1);case"week":case"day":e=f.hours(e,0);case"hours":e=f.minutes(e,0);case"minutes":e=f.seconds(e,0);case"seconds":e=f.milliseconds(e,0)}return t===l&&(e=f.subtract(e,f.year(e)%10,"year")),t===d&&(e=f.subtract(e,f.year(e)%100,"year")),t===u&&(e=f.weekday(e,0)),e},endOf:function(e,t){return e=new Date(e),e=f.startOf(e,t),e=f.add(e,1,t),e=f.subtract(e,1,i)},eq:n(function(e,t){return e===t}),gt:n(function(e,t){return e>t}),gte:n(function(e,t){return e>=t}),lt:n(function(e,t){return t>e}),lte:n(function(e,t){return t>=e}),min:function(){var e=Array.prototype.slice.call(arguments);return new Date(Math.min.apply(Math,e))},max:function(){var e=Array.prototype.slice.call(arguments);return new Date(Math.max.apply(Math,e))},inRange:function(e,t,s,n){return n=n||"day",f.gte(e,t,n)&&f.lte(e,s,n)},milliseconds:s("Milliseconds"),seconds:s("Seconds"),minutes:s("Minutes"),hours:s("Hours"),day:s("Day"),date:s("Date"),month:s("Month"),year:s("FullYear"),decade:function(e,t){return void 0==t?f.year(f.startOf(e,l)):f.add(e,t+10,h)},century:function(e,t){return void 0==t?f.year(f.startOf(e,d)):f.add(e,t+100,h)},weekday:function(e,t){var s=(f.day(e)+7-f.startOfWeek())%7;return void 0==t?s:f.add(e,t-s,p)}}}]);
e.exports=function(e,t){var n=0,r=e?e.length:0,s=[];for(t=Math.max(+t||1,1);r>n;)s.push(e.slice(n,n+=t));return s}},function(e,t,n){var r=n(9),s=n(31),o=n(29).directions;e.exports=function(e,t){return{propTypes:{value:r.PropTypes.instanceOf(Date),min:r.PropTypes.instanceOf(Date),max:r.PropTypes.instanceOf(Date)},getInitialState:function(){return{focusedDate:this.props.value}},componentWillReceiveProps:function(e){var n=this.state.focusedDate;//!dates.inRange(focused, nextProps.min, nextProps.max)
s.eq(e.value,n,t)||this.setState({focusedDate:e.value})},_keyDown:function(n){var r=n.key,i=(n.altKey,this.state.focusedDate),a=i;if("Enter"===r)return this.props.onChange(a);if("ArrowLeft"===r?a=this.move(a,o.LEFT):"ArrowRight"===r?a=this.move(a,o.RIGHT):"ArrowUp"===r?a=this.move(a,o.UP):"ArrowDown"===r&&(a=this.move(a,o.DOWN)),!s.eq(i,a,t)){if(n.preventDefault(),s.gt(a,this.props.value,e))return this.props.onMoveRight(a);if(s.lt(a,this.props.value,e))return this.props.onMoveLeft(a);this.setState({focusedDate:a})}}}}},function(e){function t(e,t){var n=f.month(e),r=n+t;return e=f.month(e,r),0>r&&(r=12+t),f.month(e)!==r%12&&(e=f.date(e,0)),e}function n(e){return e=e.charAt(0).toUpperCase()+e.substr(1),function(t,n){return void 0===n?t["get"+e]():(t=new Date(t),t["set"+e](n),t)}}function r(e){return function(t,n,r){return e(+f.startOf(t,r),+f.startOf(n,r))}}var s="milliseconds",o="seconds",i="minutes",a="hours",l="day",p="week",u="month",c="year",d="decade",h="century",f=e.exports={startOfWeek:function(){return 0},add:function(e,n,r){if(e=new Date(e),r===s)return f.milliseconds(e,f.milliseconds(e)+n);if(r===o)return f.seconds(e,f.seconds(e)+n);if(r===i)return f.minutes(e,f.minutes(e)+n);if(r===a)return f.hours(e,f.hours(e)+n);if(r===l)return f.date(e,f.date(e)+n);if(r===p)return f.date(e,f.date(e)+7*n);if(r===u)return t(e,n);if(r===c)return f.year(e,f.year(e)+n);if(r===d)return f.year(e,f.year(e)+10*n);if(r===h)return f.year(e,f.year(e)+100*n);throw new TypeError('Invalid units: "'+r+'"')},subtract:function(e,t,n){return f.add(e,-t,n)},startOf:function(e,t){switch(e=new Date(e),t){case"century":case"decade":case"year":e=f.month(e,0);case"month":e=f.date(e,1);case"week":case"day":e=f.hours(e,0);case"hours":e=f.minutes(e,0);case"minutes":e=f.seconds(e,0);case"seconds":e=f.milliseconds(e,0)}return t===d&&(e=f.subtract(e,f.year(e)%10,"year")),t===h&&(e=f.subtract(e,f.year(e)%100,"year")),t===p&&(e=f.weekday(e,0)),e},endOf:function(e,t){return e=new Date(e),e=f.startOf(e,t),e=f.add(e,1,t),e=f.subtract(e,1,s)},eq:r(function(e,t){return e===t}),gt:r(function(e,t){return e>t}),gte:r(function(e,t){return e>=t}),lt:r(function(e,t){return t>e}),lte:r(function(e,t){return t>=e}),min:function(){var e=Array.prototype.slice.call(arguments);return new Date(Math.min.apply(Math,e))},max:function(){var e=Array.prototype.slice.call(arguments);return new Date(Math.max.apply(Math,e))},inRange:function(e,t,n,r){return r=r||"day",f.gte(e,t,r)&&f.lte(e,n,r)},milliseconds:n("Milliseconds"),seconds:n("Seconds"),minutes:n("Minutes"),hours:n("Hours"),day:n("Day"),date:n("Date"),month:n("Month"),year:n("FullYear"),decade:function(e,t){return void 0==t?f.year(f.startOf(e,d)):f.add(e,t+10,c)},century:function(e,t){return void 0==t?f.year(f.startOf(e,h)):f.add(e,t+100,c)},weekday:function(e,t){var n=(f.day(e)+7-f.startOfWeek())%7;return void 0==t?n:f.add(e,t-n,l)}}}]);
var React = require('react/addons')
var DropdownList = require('../src/dropdowns/dropdown-list.jsx')
var Widgets = require('../index')
var DropdownList = require('../src/dropdowns/Dropdown-List.jsx')
var Select = require('../src/select/select.jsx')
var Calendar = require('../src/calendar/calendar.jsx')
var DatePicker = require('../src/pickers/datepicker.jsx')
var NumberPicker = require('../src/pickers/numberpicker.jsx')
var ComboBox = require('../src/dropdowns/combobox.jsx')
var Calendar = Widgets.Calendar
var DatePicker = Widgets.DateTimePicker
var NumberPicker = Widgets.NumberPicker
var ComboBox = require('../src/dropdowns/Combobox.jsx')
var chance = new (require('chance'))

@@ -56,2 +57,3 @@ //var _ = require('lodash')

valueField='id'
busy={true}
value={ this.state.dropdownValue}

@@ -73,2 +75,3 @@ onChange={change.bind(null, 'dropdownValue')}/>

suggest={true}
busy={true}
value={ this.state.comboboxValue}

@@ -85,2 +88,3 @@ onChange={change.bind(null, 'comboboxValue')}/>

value={ this.state.selectValues }
busy={true}
tagComponent={ListItem}

@@ -87,0 +91,0 @@ itemComponent={ListItem}

@@ -1,81 +0,26 @@

var gulp = require('gulp')
, less = require('gulp-less')
, plumber = require('gulp-plumber')
, configs = require('./webpack.configs')
, WebpackDevServer = require("webpack-dev-server")
, gulpWebpack = require('gulp-webpack')
, webpack = require('webpack')
, fs = require('fs');
var gulp = require('gulp')
, docs = require('./tasks/docs')
, dev = require('./tasks/development')
, assets = require('./tasks/assets')
, browser = require('./tasks/browser');
gulp.task('dev-server', dev.devServer)
gulp.task('doc-server', dev.docServer)
gulp.task("dev-build", function() {
return gulpWebpack(configs.dev)
.pipe(gulp.dest('./example/'));
})
gulp.task('assets-less', assets.less)
gulp.task('assets-fonts', assets.fonts)
gulp.task("docs-build", function() {
gulp.task('lib-clean', assets.clean)
gulp.task('lib-compile', ['lib-clean'], assets.compile)
return gulpWebpack(configs.docs)
.pipe(gulp.dest('./docs/js'));
})
gulp.task('browser-clean', browser.clean)
gulp.task('browser-build', ['lib', 'browser-clean'], browser.build)
gulp.task('docs-less', function(){
gulp.src('./src/less/react-widgets.less')
.pipe(plumber())
.pipe(less())
.pipe(gulp.dest('./docs/css'));
});
gulp.task('lib', [ 'lib-clean', 'lib-compile'])
gulp.task('assets', [ 'assets-fonts', 'assets-less'])
gulp.task("dist-build", function() {
return gulpWebpack(configs.browser)
.pipe(gulp.dest('./dist/'));
})
gulp.task('docs', [ 'lib', 'assets'], docs.build)
gulp.task('dist-less', function(){
gulp.src('./src/less/react-widgets.less')
.pipe(plumber())
.pipe(less())
.pipe(gulp.dest('./dist/css'));
});
gulp.task('browser', [ 'browser-clean', 'browser-build'])
gulp.task("dev-server", function(callback) {
// Start a webpack-dev-server
new WebpackDevServer(webpack(configs.dev), {
publicPath: "/example",
stats: {
colors: true
}
}).listen(8080, "localhost");
});
gulp.task("doc-server", function(callback) {
// Start a webpack-dev-server
new WebpackDevServer(webpack(configs.docs), {
publicPath: "/docs",
stats: { colors: true }
}).listen(8081, "localhost");
});
gulp.task('less', function(){
gulp.src('./src/less/react-widgets.less')
.pipe(plumber())
.pipe(less())
.pipe(gulp.dest('./dist/css'));
});
// Default Task
gulp.task('docs', ['docs-build', 'docs-less']);
gulp.task('browser', ['dist-build', 'dist-less']);
gulp.task('build', ['docs', 'browser']);
function handleError(err) {
console.log(err.toString());
this.emit('end');
}
gulp.task('release', [ 'lib', 'assets', 'docs', 'browser']);

@@ -5,15 +5,15 @@

DropDownlist: require('./src/dropdowns/dropdown-list.jsx'),
Combobox: require('./src/dropdowns/combobox.jsx'),
DropDownlist: require('./lib/dropdowns/dropdown-list'),
Combobox: require('./lib/dropdowns/combobox'),
Calendar: require('./src/calendar/calendar.jsx'),
DateTimePicker: require('./src/pickers/datepicker.jsx'),
Calendar: require('./lib/calendar/calendar'),
DateTimePicker: require('./lib/pickers/datepicker'),
NumberPicker: require('./src/pickers/numberpicker.jsx'),
Select: require('./src/select/select.jsx'),
NumberPicker: require('./lib/pickers/numberpicker'),
Select: require('./lib/select/select'),
utils: {
ReplaceTransitionGroup: require('./src/common/ReplaceTransitionGroup.jsx'),
SlideTransition: require('./src/common/slide-transition.jsx'),
ReplaceTransitionGroup: require('./lib/common/ReplaceTransitionGroup'),
SlideTransition: require('./lib/common/slide-transition'),
}
}
{
"name": "react-widgets",
"version": "1.0.3",
"version": "1.1.0",
"description": "React widgets",

@@ -55,4 +55,7 @@ "main": "index.js",

"file-loader": "^0.6.1",
"webpack-dev-server": "~1.4.10"
"webpack-dev-server": "~1.4.10",
"gulp-react": "~1.0.0",
"gulp-replace": "~0.4.0",
"gulp-clean": "~0.3.1"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc