/*! For license information please see dll.Clock.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[31],{832:function(t,e,n){"use strict";n.r(e);var r=n(14),i=n.n(r),o=n(12),a=n.n(o),c=n(10),s=n.n(c),u=n(15),l=n.n(u),p=n(16),f=n.n(p),m=n(8),d=n.n(m),g=n(7),y=n.n(g),h=n(0),v=n.n(h),w=n(1),b=n.n(w);function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var S=function(t){l()(n,t);var e=O(n);function n(t){var r;return i()(this,n),r=e.call(this,t),y()(s()(r),"updateTime",(function(){r.props.duration?r.updateDuration():r.updateDate()})),y()(s()(r),"updateDuration",(function(){var t=(new Date).getTime()-r.state.startTime,e=new Date(t).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"});r.setState({time:e})})),y()(s()(r),"updateDate",(function(){var t;if(r.props.format)switch(r.props.format){case"HH:MM":t=(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});break;case"HH:MM:SS":t=(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"});break;case"HH:MM:SSS":t=(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"3-digit"})}else t=(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});r.state.time!==t&&r.setState({time:t})})),r.state={time:(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),startTime:(new Date).getTime()},r}return a()(n,[{key:"componentDidMount",value:function(){this.interval=setInterval(this.updateTime,1e3)}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){var t=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){y()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({fontSize:12,fontFamily:"monospace"},this.props.style);return v.a.createElement("span",{style:t,className:this.props.className},this.state.time)}}]),n}(h.Component);S.propTypes={duration:b.a.bool,format:b.a.string,className:b.a.string,style:b.a.object},S.defaultProps={duration:!1,format:"",className:"",style:{}},e.default=S}}]);