{"version":3,"sources":["webpack:///./examples/value-and-defaultValue.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;qBAEO,CAAkC;;kCAEvB,CAAO;;;;qCACJ,GAAW;;;;8CAEF,GAAoB;;;;oDACvB,GAA2B;;;;4DACrC,GAAqC;;;;yCAE/B,GAAgB;;;;uDACV,GAAiC;;;;AAE9D,KAAM,SAAS,GAAG,yCAAmB,UAAU,CAAC,CAAC;;AAEjD,KAAM,GAAG,GAAG,gFAA2B,CAAC;AACxC,IAAG,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;;AAExB,KAAM,GAAG,GAAG,mBAAM,WAAW,CAAC;;;AAC5B,kBAAe,6BAAG;AAChB,YAAO;AACL,YAAK,EAAE,GAAG;MACX,CAAC;IACH;AACD,oBAAiB,6BAAC,KAAK,EAAE;AACvB,YAAO,CAAC,GAAG,CAAC,KAAK,IAAI,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9C,SAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAL,KAAK,EAAE,CAAC,CAAC;IAC1B;AACD,SAAM,oBAAG;AACP,YACE;;;OACE,8DAAY,SAAS,EAAE,SAAU,EAAC,MAAM,yCAAmB;AACrD,qBAAY,EAAE,GAAI,GAAG;OAC3B,8DAAY,SAAS,EAAE,SAAU,EAAC,MAAM,yCAAmB;AACrD,cAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAM;AACxB,iBAAQ,EAAE,IAAI,CAAC,iBAAkB,GAAE;MACrC,CACN;IACH;EACF,CAAC,CAAC;;AAEH,uBAAS,MAAM,CACb,iCAAC,GAAG,OAAG,EACP,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAC3C,C","file":"value-and-defaultValue.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\n\nimport GregorianCalendar from 'gregorian-calendar';\nimport DateTimeFormat from 'gregorian-calendar-format';\nimport zhCn from 'gregorian-calendar/lib/locale/zh_CN';\n\nimport TimePicker from 'rc-time-picker';\nimport TimePickerLocale from 'rc-time-picker/src/locale/zh_CN';\n\nconst formatter = new DateTimeFormat('HH:mm:ss');\n\nconst now = new GregorianCalendar(zhCn);\nnow.setTime(Date.now());\n\nconst App = React.createClass({\n getInitialState() {\n return {\n value: now,\n };\n },\n handleValueChange(value) {\n console.log(value && formatter.format(value));\n this.setState({ value });\n },\n render() {\n return (\n <div>\n <TimePicker formatter={formatter} locale={TimePickerLocale}\n defaultValue={now} />\n <TimePicker formatter={formatter} locale={TimePickerLocale}\n value={this.state.value}\n onChange={this.handleValueChange}/>\n </div>\n );\n },\n});\n\nReactDom.render(\n <App />,\n document.getElementById('__react-content')\n);\n\n\n\n/** WEBPACK FOOTER **\n ** ./examples/value-and-defaultValue.js\n **/"],"sourceRoot":""}