From 6ec4692ffcb15259555758173d8b4d9938703995 Mon Sep 17 00:00:00 2001 From: catalin_covic Date: Wed, 2 Oct 2019 20:50:09 -0700 Subject: [PATCH] package bump, attempt to fix yarn node engine error --- README.md | 7 ++++++- docs/build/bundle.js | 10 +++++----- package.json | 4 ++-- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4d1f4f3..9d045f5 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,12 @@ TODO

------------ -
+ +**Features** +- supports both 12 hour and 24 hour mode, and flexible time formats +- simple to use with many customizable options +- smooth, beautiful animations with [react spring](https://www.react-spring.io) +- typescript support ## Installation diff --git a/docs/build/bundle.js b/docs/build/bundle.js index b4fdff3..34aef33 100644 --- a/docs/build/bundle.js +++ b/docs/build/bundle.js @@ -1,9 +1,9 @@ -!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="build/",n(n.s=61)}([function(e,t,n){"use strict";var a=n(37),r=n.n(a),i=n(2);var o=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var a=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;ta&&(a=(t=t.trim()).charCodeAt(0)),a){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0p)&&(F=(H=H.replace(" ",":")).length),0=0||(r[n]=e[n]);return r}var i=n(2),o=n.n(i);n.d(t,"a",function(){return ye}),n.d(t,"b",function(){return V}),n.d(t,"c",function(){return $});const s={arr:Array.isArray,obj:e=>"[object Object]"===Object.prototype.toString.call(e),fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,nul:e=>null===e,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(s.str(e)||s.num(e))return e===t;if(s.obj(e)&&s.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!s.und(n)||e===t}};function l(){const e=Object(i.useState)(!1)[1];return Object(i.useCallback)(()=>e(e=>!e),[])}function c(e,t){return s.und(e)||s.nul(e)?t:e}function d(e){return s.und(e)?[]:s.arr(e)?e:[e]}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;as.und(t[r])?a({},n,{[r]:e[r]}):n,{});return a({to:t},n)}class p{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class m extends p{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach(e=>e instanceof p&&e.addChild(this)),this.detach=()=>this.payload.forEach(e=>e instanceof p&&e.removeChild(this))}}class g extends p{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach(e=>e instanceof p&&e.addChild(this)),this.detach=()=>Object.values(this.payload).forEach(e=>e instanceof p&&e.removeChild(this))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const a=this.payload[n];(!e||a instanceof p)&&(t[n]=a instanceof p?a[e?"getAnimatedValue":"getValue"]():a)}return t}getAnimatedValue(){return this.getValue(!0)}}let E,S;function f(e,t){E={fn:e,transform:t}}function b(e){S=e}let T,C=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;function v(e){T=e}let R,N=()=>Date.now();function h(e){R=e}let O,y,I=e=>e.current;function A(e){O=e}class D extends g{constructor(e,t){super(),this.update=void 0,this.payload=e.style?a({},e,{style:O(e.style)}):e,this.update=t,this.attach()}}let x=!1;const M=new Set,w=()=>{if(!x)return!1;let e=N();for(let t of M){let n=!1;for(let a=0;a=a.startTime+o.duration;else if(o.decay)c=s+_/(1-.998)*(1-Math.exp(-(1-.998)*(e-a.startTime))),(r=Math.abs(a.lastPosition-c)<.1)&&(l=c);else{i=void 0!==a.lastTime?a.lastTime:e,_=void 0!==a.lastVelocity?a.lastVelocity:o.initialVelocity,e>i+64&&(i=e);let t=Math.floor(e-i);for(let e=0;el:c{M.has(e)||M.add(e),x||(x=!0,C(y||w))},P=e=>{M.has(e)&&M.delete(e)};function k(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return k({range:e,output:t,extrapolate:n});if(T&&"string"==typeof e.output[0])return T(e);const a=e,r=a.output,i=a.range||[0,1],o=a.extrapolateLeft||a.extrapolate||"extend",s=a.extrapolateRight||a.extrapolate||"extend",l=a.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n=e);++n);return n-1}(e,i);return function(e,t,n,a,r,i,o,s,l){let c=l?l(e):e;if(cn){if("identity"===s)return c;"clamp"===s&&(c=n)}if(a===r)return a;if(t===n)return e<=t?a:r;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),a===-1/0?c=-c:r===1/0?c+=a:c=c*(r-a)+a;return c}(e,i[t],i[t+1],r[t],r[t+1],l,o,s,a.map)}}class U extends m{constructor(e,t,n){super(),this.calc=void 0,this.payload=e instanceof m&&!(e instanceof U)?e.getPayload():Array.isArray(e)?e:[e],this.calc=k(t,n)}getValue(){return this.calc(...this.payload.map(e=>e.getValue()))}updateConfig(e,t){this.calc=k(e,t)}interpolate(e,t){return new U(this,e,t)}}class G extends p{constructor(e){var t;super(),t=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach(t=>e(t,n))}(this,this.animatedStyles),this.animatedStyles.forEach(e=>e.update())}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t){return new U(this,e,t)}}class F extends m{constructor(e){super(),this.payload=e.map(e=>new G(e))}setValue(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((e,n)=>this.payload[n].setValue(e,t)):this.payload.forEach(n=>n.setValue(e,t))}getValue(){return this.payload.map(e=>e.getValue())}interpolate(e,t){return new U(this,e,t)}}let B=0;class Y{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=B++}update(e){if(!e)return this;const t=u(e),n=t.delay,i=void 0===n?0:n,o=t.to,l=r(t,["delay","to"]);if(s.arr(o)||s.fun(o))this.queue.push(a({},l,{delay:i,to:o}));else if(o){let e={};Object.entries(o).forEach(t=>{let n=t[0];const r=a({to:{[n]:t[1]},delay:_(i,n)},l),o=e[r.delay]&&e[r.delay].to;e[r.delay]=a({},e[r.delay],r,{to:a({},o,r.to)})}),this.queue=Object.values(e)}return this.queue=this.queue.sort((e,t)=>e.delay-t.delay),this.diff(l),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach(e=>{let t=e.from,n=void 0===t?{}:t,r=e.to,i=void 0===r?{}:r;s.obj(n)&&(this.merged=a({},n,this.merged)),s.obj(i)&&(this.merged=a({},this.merged,i))});const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach((a,i)=>{let o=a.delay,l=r(a,["delay"]);const c=a=>{i===n.length-1&&t===this.guid&&a&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let d=s.arr(l.to)||s.fun(l.to);o?setTimeout(()=>{t===this.guid&&(d?this.runAsync(l,c):this.diff(l).start(c))},o):d?this.runAsync(l,c):this.diff(l).start(c)})}else s.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),L(this);return this}stop(e){return this.listeners.forEach(t=>t(e)),this.listeners=[],this}pause(e){return this.stop(!0),e&&P(this),this}runAsync(e,t){var n=this;e.delay;let i=r(e,["delay"]);const o=this.local;let l=Promise.resolve(void 0);if(s.arr(i.to))for(let e=0;e{if(o===this.guid)return new Promise(e=>this.diff(n).start(e))})}else if(s.fun(i.to)){let e,t=0;l=l.then(()=>i.to(n=>{const r=a({},i,u(n));if(s.arr(r.config)&&(r.config=r.config[t]),t++,o===this.guid)return e=new Promise(e=>this.diff(r).start(e))},function(e){return void 0===e&&(e=!0),n.stop(e)}).then(()=>e))}l.then(t)}diff(e){this.props=a({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,i=t.to,o=void 0===i?{}:i,l=t.config,u=void 0===l?{}:l,p=t.reverse,m=t.attach,g=t.reset,E=t.immediate;if(p){var f=[o,r];r=f[0],o=f[1]}this.merged=a({},r,this.merged,o),this.hasChanged=!1;let b=m&&m(this);if(this.animations=Object.entries(this.merged).reduce((e,t)=>{let n=t[0],i=t[1],o=e[n]||{};const l=s.num(i),p=s.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!S[i],m=s.arr(i),f=!l&&!m&&!p;let C=s.und(r[n])?i:r[n],v=l||m?i:p?i:1,R=_(u,n);b&&(v=b.animations[n].parent);let h,O=o.parent,y=o.interpolation,I=d(b?v.getPayload():v),A=i;f&&(A=T({range:[0,1],output:[i,i]})(1));let D=y&&y.getValue();const x=!s.und(O)&&o.animatedValues.some(e=>!e.done),M=!s.equ(A,D),w=!s.equ(A,o.previous),L=!s.equ(R,o.config);if(g||w&&M||L){if(l||p)O=y=o.parent||new G(C);else if(m)O=y=o.parent||new F(C);else if(f){let e=o.interpolation&&o.interpolation.calc(o.parent.value);e=void 0===e||g?C:e,o.parent?(O=o.parent).setValue(0,!1):O=new G(0);const t={output:[e,i]};o.interpolation?(y=o.interpolation,o.interpolation.updateConfig(t)):y=O.interpolate(t)}return I=d(b?v.getPayload():v),h=d(O.getPayload()),g&&!f&&O.setValue(C,!1),this.hasChanged=!0,h.forEach(e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=x?e.lastVelocity:void 0,e.lastTime=x?e.lastTime:void 0,e.startTime=N(),e.done=!1,e.animatedStyles.clear()}),_(E,n)&&O.setValue(f?v:i,!1),a({},e,{[n]:a({},o,{name:n,parent:O,interpolation:y,animatedValues:h,toValues:I,previous:A,config:R,fromValues:d(O.getValue()),immediate:_(E,n),initialVelocity:c(R.velocity,0),clamp:c(R.clamp,!1),precision:c(R.precision,.01),tension:c(R.tension,170),friction:c(R.friction,26),mass:c(R.mass,1),duration:R.duration,easing:c(R.easing,e=>e),decay:R.decay})})}return M?e:(f&&(O.setValue(1,!1),y.updateConfig({output:[A,A]})),O.done=!0,this.hasChanged=!0,a({},e,{[n]:a({},e[n],{previous:A})}))},this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}const H=(e,t)=>{const n=Object(i.useRef)(!1),a=Object(i.useRef)(),r=s.fun(t),o=Object(i.useMemo)(()=>{let n;return a.current&&(a.current.map(e=>e.destroy()),a.current=void 0),[new Array(e).fill().map((e,a)=>{const i=new Y,o=r?_(t,a,i):t[a];return 0===a&&(n=o.ref),i.update(o),n||i.start(),i}),n]},[e]),l=o[0],c=o[1];a.current=l;Object(i.useImperativeHandle)(c,()=>({start:()=>Promise.all(a.current.map(e=>new Promise(t=>e.start(t)))),stop:e=>a.current.forEach(t=>t.stop(e)),get controllers(){return a.current}}));const d=Object(i.useMemo)(()=>e=>a.current.map((t,n)=>{t.update(r?_(e,n,t):e[n]),c||t.start()}),[e]);Object(i.useEffect)(()=>{n.current?r||d(t):c||a.current.forEach(e=>e.start())}),Object(i.useEffect)(()=>(n.current=!0,()=>a.current.forEach(e=>e.destroy())),[]);const u=a.current.map(e=>e.getValues());return r?[u,d,e=>a.current.forEach(t=>t.pause(e))]:u},V=e=>{const t=s.fun(e),n=H(1,t?e:[e]),a=n[0],r=n[1],i=n[2];return t?[a[0],r,i]:a};let z=0;const q="enter",j="leave",W="update",Q=(e,t)=>("function"==typeof t?e.map(t):d(t)).map(String),K=e=>{let t=e.items,n=e.keys,i=void 0===n?e=>e:n,o=r(e,["items","keys"]);return a({items:t=d(void 0!==t?t:null),keys:Q(t,i)},o)};function $(e,t,n){const o=a({items:e,keys:t||(e=>e)},n),s=K(o),c=s.lazy,d=void 0!==c&&c,u=(s.unique,s.reset),p=void 0!==u&&u,m=(s.enter,s.leave,s.update,s.onDestroyed),g=(s.keys,s.items,s.onFrame),E=s.onRest,S=s.onStart,f=s.ref,b=r(s,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),T=l(),C=Object(i.useRef)(!1),v=Object(i.useRef)({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!o.ref,instances:!C.current&&new Map,forceUpdate:T});return Object(i.useImperativeHandle)(o.ref,()=>({start:()=>Promise.all(Array.from(v.current.instances).map(e=>{let t=e[1];return new Promise(e=>t.start(e))})),stop:e=>Array.from(v.current.instances).forEach(t=>{return t[1].stop(e)}),get controllers(){return Array.from(v.current.instances).map(e=>{return e[1]})}})),v.current=function(e,t){let n=e.first,i=e.prevProps,o=r(e,["first","prevProps"]),s=K(t),l=s.items,c=s.keys,d=s.initial,u=s.from,p=s.enter,m=s.leave,g=s.update,E=s.trail,S=void 0===E?0:E,f=s.unique,b=s.config,T=s.order,C=void 0===T?[q,j,W]:T,v=K(i),R=v.keys,N=v.items,h=a({},o.current),O=[...o.deleted],y=Object.keys(h),I=new Set(y),A=new Set(c),D=c.filter(e=>!I.has(e)),x=o.transitions.filter(e=>!e.destroyed&&!A.has(e.originalKey)).map(e=>e.originalKey),M=c.filter(e=>I.has(e)),w=-S;for(;C.length;){const e=C.shift();switch(e){case q:D.forEach((e,t)=>{f&&O.find(t=>t.originalKey===e)&&(O=O.filter(t=>t.originalKey!==e));const a=c.indexOf(e),r=l[a],i=n&&void 0!==d?"initial":q;h[e]={slot:i,originalKey:e,key:f?String(e):z++,item:r,trail:w+=S,config:_(b,r,i),from:_(n&&void 0!==d?d||{}:u,r),to:_(p,r)}});break;case j:x.forEach(e=>{const t=R.indexOf(e),n=N[t],r=j;O.unshift(a({},h[e],{slot:r,destroyed:!0,left:R[Math.max(0,t-1)],right:R[Math.min(R.length,t+1)],trail:w+=S,config:_(b,n,r),to:_(m,n)})),delete h[e]});break;case W:M.forEach(e=>{const t=c.indexOf(e),n=l[t],r=W;h[e]=a({},h[e],{item:n,slot:r,trail:w+=S,config:_(b,n,r),to:_(g,n)})})}}let L=c.map(e=>h[e]);return O.forEach(e=>{let t,n=e.left,a=(e.right,r(e,["left","right"]));-1!==(t=L.findIndex(e=>e.originalKey===n))&&(t+=1),t=Math.max(0,t),L=[...L.slice(0,t),a,...L.slice(t)]}),a({},o,{changed:D.length||x.length||M.length,first:n&&0===D.length,transitions:L,current:h,deleted:O,prevProps:t})}(v.current,o),v.current.changed&&v.current.transitions.forEach(e=>{const t=e.slot,n=e.from,r=e.to,i=e.config,o=e.trail,s=e.key,l=e.item;v.current.instances.has(s)||v.current.instances.set(s,new Y);const c=v.current.instances.get(s),_=a({},b,{to:r,from:n,config:i,ref:f,onRest:n=>{if(v.current.mounted){e.destroyed&&(f||d||X(v,s),m&&m(l)),!Array.from(v.current.instances).some(e=>{return!e[1].idle})&&(f||d)&&v.current.deleted.length>0&&X(v),E&&E(l,t,n)}},onStart:S&&(()=>S(l,t)),onFrame:g&&(e=>g(l,t,e)),delay:o,reset:p&&t===q});c.update(_),v.current.paused||c.start()}),Object(i.useEffect)(()=>(v.current.mounted=C.current=!0,()=>{v.current.mounted=C.current=!1,Array.from(v.current.instances).map(e=>{return e[1].destroy()}),v.current.instances.clear()}),[]),v.current.transitions.map(e=>{let t=e.item,n=e.slot,a=e.key;return{item:t,key:a,state:n,props:v.current.instances.get(a).getValues()}})}function X(e,t){const n=e.current.deleted;for(let a of n){let n=a.key;const r=e=>e.key!==n;(s.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(r),e.current.deleted=e.current.deleted.filter(r))}e.current.forceUpdate()}class Z extends g{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof p||(e=E.transform(e)),this.payload=e}}const J={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ee="[-+]?\\d*\\.?\\d+",te=ee+"%";function ne(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ue(e,t,n){const a=n<.5?n*(1+t):n+t-n*t,r=2*n-a,i=_e(r,a,e+1/3),o=_e(r,a,e),s=_e(r,a,e-1/3);return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function pe(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function me(e){return(parseFloat(e)%360+360)%360/360}function ge(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ee(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Se(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ce.exec(e))?parseInt(t[1]+"ff",16)>>>0:J.hasOwnProperty(e)?J[e]:(t=ae.exec(e))?(pe(t[1])<<24|pe(t[2])<<16|pe(t[3])<<8|255)>>>0:(t=re.exec(e))?(pe(t[1])<<24|pe(t[2])<<16|pe(t[3])<<8|ge(t[4]))>>>0:(t=se.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=de.exec(e))?parseInt(t[1],16)>>>0:(t=le.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ie.exec(e))?(255|ue(me(t[1]),Ee(t[2]),Ee(t[3])))>>>0:(t=oe.exec(e))?(ue(me(t[1]),Ee(t[2]),Ee(t[3]))|ge(t[4]))>>>0:null}(e);return null===t?e:`rgba(${(4278190080&(t=t||0))>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}const fe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,be=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Te=new RegExp(`(${Object.keys(J).join("|")})`,"g");let Ce={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const ve=["Webkit","Ms","Moz","O"];function Re(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ce.hasOwnProperty(e)&&Ce[e]?(""+t).trim():t+"px"}Ce=Object.keys(Ce).reduce((e,t)=>(ve.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),Ce);const Ne={};A(e=>new Z(e)),h("div"),v(e=>{const t=e.output.map(e=>e.replace(be,Se)).map(e=>e.replace(Te,Se)),n=t[0].match(fe).map(()=>[]);t.forEach(e=>{e.match(fe).forEach((e,t)=>n[t].push(+e))});const r=t[0].match(fe).map((t,r)=>k(a({},e,{output:n[r]})));return e=>{let n=0;return t[0].replace(fe,()=>r[n++](e)).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(e,t,n,a,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(a)}, ${r})`)}}),b(J),f((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,o=t.children,s=t.scrollTop,l=t.scrollLeft,c=r(t,["style","children","scrollTop","scrollLeft"]),d="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==s&&(e.scrollTop=s),void 0!==l&&(e.scrollLeft=l),void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),a=Re(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,a):e.style[t]=a}for(let t in c){const n=d?t:Ne[t]||(Ne[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase()));void 0!==e.getAttribute(n)&&e.setAttribute(n,c[t])}}},e=>e);var he,Oe;const ye=(he=e=>Object(i.forwardRef)((t,n)=>{const c=l(),d=Object(i.useRef)(!0),_=Object(i.useRef)(null),u=Object(i.useRef)(null),p=Object(i.useCallback)(e=>{const t=_.current;_.current=new D(e,()=>{let e=!1;u.current&&(e=E.fn(u.current,_.current.getAnimatedValue())),u.current&&!1!==e||c()}),t&&t.detach()},[]);Object(i.useEffect)(()=>()=>{d.current=!1,_.current&&_.current.detach()},[]),Object(i.useImperativeHandle)(n,()=>I(u,d,c)),p(t);const m=_.current.getValue(),g=(m.scrollTop,m.scrollLeft,r(m,["scrollTop","scrollLeft"])),S=(e=>s.fun(e)&&!(e.prototype instanceof o.a.Component))(e)?void 0:e=>u.current=function(e,t){return t&&(s.fun(t)?t(e):s.obj(t)&&(t.current=e)),e}(e,n);return o.a.createElement(e,a({},g,{ref:S}))}),void 0===(Oe=!1)&&(Oe=!0),e=>(s.arr(e)?e:Object.keys(e)).reduce((e,t)=>{const n=Oe?t[0].toLowerCase()+t.substring(1):t;return e[n]=he(n),e},he))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"])},function(e,t,n){var a=n(253),r=n(254),i=n(255);e.exports=function(e,t){return a(e)||r(e,t)||i()}},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return u}),n.d(t,"d",function(){return g}),n.d(t,"c",function(){return E}),n.d(t,"a",function(){return f});var a,r=n(3);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i,o,s=Math.cos,l=Math.sin,c=Math.PI,d=360/r.m;function _(e){return e/(180/c)}function u(e){return e*(180/c)}function p(e,t){return l(_(e*-d-180))*(r.a-t)+r.a-r.l/2}function m(e,t){return s(_(e*-d-180))*(r.a-t)+r.a-r.l/2}function g(e,t){var n=p(e,t),a=m(e,t);return"translate(".concat(n,"px, ").concat(a,"px)")}function E(e,t,n){return Math.sqrt(e*e+t*t)=i;)i+=360;return i-a=4;)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+((1540483477*(t>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++r;switch(n){case 3:a^=(255&e.charCodeAt(r+2))<<16;case 2:a^=(255&e.charCodeAt(r+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(r)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),((a^=a>>>15)>>>0).toString(36)},r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var i=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};n.d(t,"a",function(){return m});var o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=i(function(e){return l(e)?e:e.replace(o,"-$&").toLowerCase()}),d=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":"string"==typeof t&&(t=t.replace(s,function(e,t,n){return u={name:t,styles:n,next:u},t}))}return 1===r[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function _(e,t,n,a){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return u={name:n.name,styles:n.styles,next:u},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)u={name:r.name,styles:r.styles,next:u},r=r.next;return n.styles}return function(e,t,n){var a="";if(Array.isArray(n))for(var r=0;r60)throw new Error("Minute out of range (> 60)");if(null!=a){if(t>12)throw new Error("Hour out of range (> 12)");"pm"===a&&12!==t?t+=12:"am"===a&&12===t&&(t=0)}else{if(t>24)throw new Error("Hour out of range (> 24)");24===t&&(t=0)}return{hour:t,minute:n}}function u(e){return _(e).hour>=12?"pm":"am"}function p(e,t){var n=("0"+t).slice(-2),a=24===e?0:e,r=e>=12?"pm":"am",i=e;return e>12?i=e-12:0===e&&(i=e=12),{formatted24:"".concat(a,":").concat(n),formatted12:"".concat(i,":").concat(n," ").concat(r),formattedSimple:"".concat(i,":").concat(n),hour:a,hour12:i,minute:t,meridiem:r}}(o=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(o.register(l,"TIME_PARSE_MERIDIEM","/Users/catalin_covic/development/git/react-timekeeper/src/helpers/time.ts"),o.register(c,"TIME_PARSE_24","/Users/catalin_covic/development/git/react-timekeeper/src/helpers/time.ts"),o.register(d,"defaultTime","/Users/catalin_covic/development/git/react-timekeeper/src/helpers/time.ts"),o.register(_,"parseTime","/Users/catalin_covic/development/git/react-timekeeper/src/helpers/time.ts"),o.register(u,"parseMeridiem","/Users/catalin_covic/development/git/react-timekeeper/src/helpers/time.ts"),o.register(p,"composeTime","/Users/catalin_covic/development/git/react-timekeeper/src/helpers/time.ts")),(s=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&s(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";var a=n(18);t.a=function(){for(var e=arguments.length,t=new Array(e),n=0;n}\nuseRef{dragCount}\nuseCallback{cleanup}\nuseRef{disableMouse}\nuseEffect{}"),(l=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(l.register(_,"atan2","/Users/catalin_covic/development/git/react-timekeeper/src/hooks/clock-events.ts"),l.register(u,"useClockEvents","/Users/catalin_covic/development/git/react-timekeeper/src/hooks/clock-events.ts")),(c=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&c(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return l}),n.d(t,"a",function(){return c});var a,r=n(0);n(2);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i,o,s=function(){return Object(r.c)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.c)("path",{d:"M10.595 5.196l0.446 1.371c0.369-0.316 0.835-0.599 1.441-0.795 0.59-0.192 1.111-0.3 1.582-0.362l-0.43-1.323c-0.476 0.069-1.001 0.18-1.58 0.368s-1.055 0.45-1.459 0.741zM11.522 8.051l0.446 1.371c0.369-0.316 0.835-0.599 1.441-0.795 0.59-0.192 1.111-0.3 1.582-0.362l-0.43-1.323c-0.476 0.069-1.001 0.18-1.58 0.368-0.578 0.187-1.054 0.449-1.459 0.741zM12.45 10.905l0.446 1.371c0.369-0.316 0.835-0.599 1.441-0.795 0.59-0.192 1.111-0.3 1.582-0.362l-0.43-1.323c-0.476 0.069-1.001 0.18-1.58 0.368-0.579 0.187-1.055 0.45-1.459 0.741zM5.388 13.077l0.43 1.323c0.417-0.226 0.902-0.445 1.492-0.636 0.606-0.197 1.149-0.242 1.633-0.203l-0.446-1.371c-0.499 0.002-1.038 0.070-1.615 0.257-0.579 0.188-1.069 0.406-1.494 0.63zM3.533 7.368l0.43 1.323c0.417-0.226 0.902-0.444 1.492-0.636 0.606-0.197 1.149-0.242 1.633-0.203l-0.445-1.372c-0.499 0.003-1.038 0.070-1.616 0.258-0.579 0.188-1.069 0.406-1.494 0.63zM4.46 10.223l0.43 1.323c0.417-0.226 0.902-0.445 1.492-0.636 0.606-0.197 1.149-0.242 1.633-0.203l-0.445-1.372c-0.499 0.002-1.038 0.070-1.615 0.257-0.579 0.188-1.070 0.407-1.495 0.631zM11.064 1.41c-1.723 0.56-2.623 1.752-3.053 2.559-0.822-0.4-2.25-0.835-3.973-0.275-2.523 0.82-3.969 2.627-3.969 2.627l4.095 12.587c0.126 0.387 0.646 0.477 0.878 0.143 0.499-0.719 1.46-1.658 3.257-2.242 1.718-0.558 2.969 0.054 3.655 0.578 0.272 0.208 0.662 0.060 0.762-0.268 0.252-0.827 0.907-2.040 2.61-2.593 1.799-0.585 3.129-0.389 3.956-0.1 0.385 0.134 0.75-0.242 0.625-0.629l-4.088-12.594c0 0-2.232-0.612-4.755 0.207zM10.951 15.256c-0.819-0.244-1.901-0.358-3.141 0.044-1.251 0.406-2.127 0.949-2.699 1.404l-3.245-9.982c0.358-0.358 1.187-1.042 2.662-1.521 1.389-0.451 2.528-0.065 3.279 0.378l3.144 9.677zM17.845 12.567c-0.731-0.032-1.759 0.044-3.010 0.451-1.24 0.403-2.048 1.132-2.567 1.81l-3.144-9.677c0.346-0.8 1.040-1.782 2.43-2.233 1.474-0.479 2.547-0.413 3.047-0.334l3.244 9.983z"}))},l=function(){return Object(r.c)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.c)("path",{d:"M0 14v1.498c0 0.277 0.225 0.502 0.502 0.502h0.997c0.276 0 0.501-0.225 0.501-0.502v-1.498c0-0.959 0.801-2.273 2-2.779v-2.105c-2.316 0.536-4 2.854-4 4.884zM12.065 4.701l-2.53 1.898c-0.347 0.26-0.769 0.401-1.203 0.401h-2.327c-0.555 0-1.005 0.45-1.005 1.005v3.991c0 0.554 0.45 1.004 1.005 1.004h2.327c0.434 0 0.856 0.141 1.203 0.401l2.531 1.898c0.606 0.455 1.344 0.701 2.102 0.701h1.832v-12h-1.832c-0.758 0-1.496 0.246-2.103 0.701zM17 6v2h3v-2h-3zM17 14h3v-2h-3v2z"}))},c=function(){return Object(r.c)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.c)("path",{d:"M13.18 11.309c-0.718 0-1.3 0.807-1.3 1.799 0 0.994 0.582 1.801 1.3 1.801s1.3-0.807 1.3-1.801c-0.001-0.992-0.582-1.799-1.3-1.799zM17.706 6.626c0.149-0.365 0.155-2.439-0.635-4.426 0 0-1.811 0.199-4.551 2.080-0.575-0.16-1.548-0.238-2.519-0.238-0.973 0-1.945 0.078-2.52 0.238-2.741-1.881-4.552-2.080-4.552-2.080-0.789 1.987-0.781 4.061-0.634 4.426-0.928 1.008-1.495 2.219-1.495 3.871 0 7.186 5.963 7.301 7.467 7.301 0.342 0 1.018 0.002 1.734 0.002s1.392-0.002 1.732-0.002c1.506 0 7.467-0.115 7.467-7.301 0-1.652-0.566-2.863-1.494-3.871zM10.028 16.915h-0.056c-3.771 0-6.709-0.449-6.709-4.115 0-0.879 0.31-1.693 1.047-2.369 1.227-1.127 3.305-0.531 5.662-0.531 0.010 0 0.020 0 0.029 0s0.018 0 0.027 0c2.357 0 4.436-0.596 5.664 0.531 0.735 0.676 1.045 1.49 1.045 2.369 0 3.666-2.937 4.115-6.709 4.115zM6.821 11.309c-0.718 0-1.3 0.807-1.3 1.799 0 0.994 0.582 1.801 1.3 1.801s1.301-0.807 1.301-1.801c0-0.992-0.582-1.799-1.301-1.799z"}))};(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(i.register(s,"Book","/Users/catalin_covic/development/git/react-timekeeper/docs/js/components/icons.tsx"),i.register(l,"Plug","/Users/catalin_covic/development/git/react-timekeeper/docs/js/components/icons.tsx"),i.register(c,"Github","/Users/catalin_covic/development/git/react-timekeeper/docs/js/components/icons.tsx")),(o=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&o(e)}).call(this,n(4)(e))},function(e,t,n){"use strict"; +!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="build/",n(n.s=61)}([function(e,t,n){"use strict";var a=n(38),r=n.n(a),i=n(2);var o=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var a=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;ta&&(a=(t=t.trim()).charCodeAt(0)),a){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0p)&&(F=(H=H.replace(" ",":")).length),0=0||(r[n]=e[n]);return r}var i=n(2),o=n.n(i);n.d(t,"a",function(){return ye}),n.d(t,"b",function(){return V}),n.d(t,"c",function(){return $});const s={arr:Array.isArray,obj:e=>"[object Object]"===Object.prototype.toString.call(e),fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,nul:e=>null===e,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(s.str(e)||s.num(e))return e===t;if(s.obj(e)&&s.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!s.und(n)||e===t}};function l(){const e=Object(i.useState)(!1)[1];return Object(i.useCallback)(()=>e(e=>!e),[])}function c(e,t){return s.und(e)||s.nul(e)?t:e}function d(e){return s.und(e)?[]:s.arr(e)?e:[e]}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;as.und(t[r])?a({},n,{[r]:e[r]}):n,{});return a({to:t},n)}class p{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class m extends p{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach(e=>e instanceof p&&e.addChild(this)),this.detach=()=>this.payload.forEach(e=>e instanceof p&&e.removeChild(this))}}class g extends p{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach(e=>e instanceof p&&e.addChild(this)),this.detach=()=>Object.values(this.payload).forEach(e=>e instanceof p&&e.removeChild(this))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const a=this.payload[n];(!e||a instanceof p)&&(t[n]=a instanceof p?a[e?"getAnimatedValue":"getValue"]():a)}return t}getAnimatedValue(){return this.getValue(!0)}}let E,S;function f(e,t){E={fn:e,transform:t}}function b(e){S=e}let T,C=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;function v(e){T=e}let R,N=()=>Date.now();function h(e){R=e}let O,y,I=e=>e.current;function A(e){O=e}class D extends g{constructor(e,t){super(),this.update=void 0,this.payload=e.style?a({},e,{style:O(e.style)}):e,this.update=t,this.attach()}}let x=!1;const M=new Set,w=()=>{if(!x)return!1;let e=N();for(let t of M){let n=!1;for(let a=0;a=a.startTime+o.duration;else if(o.decay)c=s+_/(1-.998)*(1-Math.exp(-(1-.998)*(e-a.startTime))),(r=Math.abs(a.lastPosition-c)<.1)&&(l=c);else{i=void 0!==a.lastTime?a.lastTime:e,_=void 0!==a.lastVelocity?a.lastVelocity:o.initialVelocity,e>i+64&&(i=e);let t=Math.floor(e-i);for(let e=0;el:c{M.has(e)||M.add(e),x||(x=!0,C(y||w))},P=e=>{M.has(e)&&M.delete(e)};function k(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return k({range:e,output:t,extrapolate:n});if(T&&"string"==typeof e.output[0])return T(e);const a=e,r=a.output,i=a.range||[0,1],o=a.extrapolateLeft||a.extrapolate||"extend",s=a.extrapolateRight||a.extrapolate||"extend",l=a.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n=e);++n);return n-1}(e,i);return function(e,t,n,a,r,i,o,s,l){let c=l?l(e):e;if(cn){if("identity"===s)return c;"clamp"===s&&(c=n)}if(a===r)return a;if(t===n)return e<=t?a:r;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),a===-1/0?c=-c:r===1/0?c+=a:c=c*(r-a)+a;return c}(e,i[t],i[t+1],r[t],r[t+1],l,o,s,a.map)}}class U extends m{constructor(e,t,n){super(),this.calc=void 0,this.payload=e instanceof m&&!(e instanceof U)?e.getPayload():Array.isArray(e)?e:[e],this.calc=k(t,n)}getValue(){return this.calc(...this.payload.map(e=>e.getValue()))}updateConfig(e,t){this.calc=k(e,t)}interpolate(e,t){return new U(this,e,t)}}class G extends p{constructor(e){var t;super(),t=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach(t=>e(t,n))}(this,this.animatedStyles),this.animatedStyles.forEach(e=>e.update())}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t){return new U(this,e,t)}}class F extends m{constructor(e){super(),this.payload=e.map(e=>new G(e))}setValue(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((e,n)=>this.payload[n].setValue(e,t)):this.payload.forEach(n=>n.setValue(e,t))}getValue(){return this.payload.map(e=>e.getValue())}interpolate(e,t){return new U(this,e,t)}}let B=0;class Y{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=B++}update(e){if(!e)return this;const t=u(e),n=t.delay,i=void 0===n?0:n,o=t.to,l=r(t,["delay","to"]);if(s.arr(o)||s.fun(o))this.queue.push(a({},l,{delay:i,to:o}));else if(o){let e={};Object.entries(o).forEach(t=>{let n=t[0];const r=a({to:{[n]:t[1]},delay:_(i,n)},l),o=e[r.delay]&&e[r.delay].to;e[r.delay]=a({},e[r.delay],r,{to:a({},o,r.to)})}),this.queue=Object.values(e)}return this.queue=this.queue.sort((e,t)=>e.delay-t.delay),this.diff(l),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach(e=>{let t=e.from,n=void 0===t?{}:t,r=e.to,i=void 0===r?{}:r;s.obj(n)&&(this.merged=a({},n,this.merged)),s.obj(i)&&(this.merged=a({},this.merged,i))});const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach((a,i)=>{let o=a.delay,l=r(a,["delay"]);const c=a=>{i===n.length-1&&t===this.guid&&a&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let d=s.arr(l.to)||s.fun(l.to);o?setTimeout(()=>{t===this.guid&&(d?this.runAsync(l,c):this.diff(l).start(c))},o):d?this.runAsync(l,c):this.diff(l).start(c)})}else s.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),L(this);return this}stop(e){return this.listeners.forEach(t=>t(e)),this.listeners=[],this}pause(e){return this.stop(!0),e&&P(this),this}runAsync(e,t){var n=this;e.delay;let i=r(e,["delay"]);const o=this.local;let l=Promise.resolve(void 0);if(s.arr(i.to))for(let e=0;e{if(o===this.guid)return new Promise(e=>this.diff(n).start(e))})}else if(s.fun(i.to)){let e,t=0;l=l.then(()=>i.to(n=>{const r=a({},i,u(n));if(s.arr(r.config)&&(r.config=r.config[t]),t++,o===this.guid)return e=new Promise(e=>this.diff(r).start(e))},function(e){return void 0===e&&(e=!0),n.stop(e)}).then(()=>e))}l.then(t)}diff(e){this.props=a({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,i=t.to,o=void 0===i?{}:i,l=t.config,u=void 0===l?{}:l,p=t.reverse,m=t.attach,g=t.reset,E=t.immediate;if(p){var f=[o,r];r=f[0],o=f[1]}this.merged=a({},r,this.merged,o),this.hasChanged=!1;let b=m&&m(this);if(this.animations=Object.entries(this.merged).reduce((e,t)=>{let n=t[0],i=t[1],o=e[n]||{};const l=s.num(i),p=s.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!S[i],m=s.arr(i),f=!l&&!m&&!p;let C=s.und(r[n])?i:r[n],v=l||m?i:p?i:1,R=_(u,n);b&&(v=b.animations[n].parent);let h,O=o.parent,y=o.interpolation,I=d(b?v.getPayload():v),A=i;f&&(A=T({range:[0,1],output:[i,i]})(1));let D=y&&y.getValue();const x=!s.und(O)&&o.animatedValues.some(e=>!e.done),M=!s.equ(A,D),w=!s.equ(A,o.previous),L=!s.equ(R,o.config);if(g||w&&M||L){if(l||p)O=y=o.parent||new G(C);else if(m)O=y=o.parent||new F(C);else if(f){let e=o.interpolation&&o.interpolation.calc(o.parent.value);e=void 0===e||g?C:e,o.parent?(O=o.parent).setValue(0,!1):O=new G(0);const t={output:[e,i]};o.interpolation?(y=o.interpolation,o.interpolation.updateConfig(t)):y=O.interpolate(t)}return I=d(b?v.getPayload():v),h=d(O.getPayload()),g&&!f&&O.setValue(C,!1),this.hasChanged=!0,h.forEach(e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=x?e.lastVelocity:void 0,e.lastTime=x?e.lastTime:void 0,e.startTime=N(),e.done=!1,e.animatedStyles.clear()}),_(E,n)&&O.setValue(f?v:i,!1),a({},e,{[n]:a({},o,{name:n,parent:O,interpolation:y,animatedValues:h,toValues:I,previous:A,config:R,fromValues:d(O.getValue()),immediate:_(E,n),initialVelocity:c(R.velocity,0),clamp:c(R.clamp,!1),precision:c(R.precision,.01),tension:c(R.tension,170),friction:c(R.friction,26),mass:c(R.mass,1),duration:R.duration,easing:c(R.easing,e=>e),decay:R.decay})})}return M?e:(f&&(O.setValue(1,!1),y.updateConfig({output:[A,A]})),O.done=!0,this.hasChanged=!0,a({},e,{[n]:a({},e[n],{previous:A})}))},this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}const H=(e,t)=>{const n=Object(i.useRef)(!1),a=Object(i.useRef)(),r=s.fun(t),o=Object(i.useMemo)(()=>{let n;return a.current&&(a.current.map(e=>e.destroy()),a.current=void 0),[new Array(e).fill().map((e,a)=>{const i=new Y,o=r?_(t,a,i):t[a];return 0===a&&(n=o.ref),i.update(o),n||i.start(),i}),n]},[e]),l=o[0],c=o[1];a.current=l;Object(i.useImperativeHandle)(c,()=>({start:()=>Promise.all(a.current.map(e=>new Promise(t=>e.start(t)))),stop:e=>a.current.forEach(t=>t.stop(e)),get controllers(){return a.current}}));const d=Object(i.useMemo)(()=>e=>a.current.map((t,n)=>{t.update(r?_(e,n,t):e[n]),c||t.start()}),[e]);Object(i.useEffect)(()=>{n.current?r||d(t):c||a.current.forEach(e=>e.start())}),Object(i.useEffect)(()=>(n.current=!0,()=>a.current.forEach(e=>e.destroy())),[]);const u=a.current.map(e=>e.getValues());return r?[u,d,e=>a.current.forEach(t=>t.pause(e))]:u},V=e=>{const t=s.fun(e),n=H(1,t?e:[e]),a=n[0],r=n[1],i=n[2];return t?[a[0],r,i]:a};let z=0;const q="enter",j="leave",W="update",Q=(e,t)=>("function"==typeof t?e.map(t):d(t)).map(String),K=e=>{let t=e.items,n=e.keys,i=void 0===n?e=>e:n,o=r(e,["items","keys"]);return a({items:t=d(void 0!==t?t:null),keys:Q(t,i)},o)};function $(e,t,n){const o=a({items:e,keys:t||(e=>e)},n),s=K(o),c=s.lazy,d=void 0!==c&&c,u=(s.unique,s.reset),p=void 0!==u&&u,m=(s.enter,s.leave,s.update,s.onDestroyed),g=(s.keys,s.items,s.onFrame),E=s.onRest,S=s.onStart,f=s.ref,b=r(s,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),T=l(),C=Object(i.useRef)(!1),v=Object(i.useRef)({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!o.ref,instances:!C.current&&new Map,forceUpdate:T});return Object(i.useImperativeHandle)(o.ref,()=>({start:()=>Promise.all(Array.from(v.current.instances).map(e=>{let t=e[1];return new Promise(e=>t.start(e))})),stop:e=>Array.from(v.current.instances).forEach(t=>{return t[1].stop(e)}),get controllers(){return Array.from(v.current.instances).map(e=>{return e[1]})}})),v.current=function(e,t){let n=e.first,i=e.prevProps,o=r(e,["first","prevProps"]),s=K(t),l=s.items,c=s.keys,d=s.initial,u=s.from,p=s.enter,m=s.leave,g=s.update,E=s.trail,S=void 0===E?0:E,f=s.unique,b=s.config,T=s.order,C=void 0===T?[q,j,W]:T,v=K(i),R=v.keys,N=v.items,h=a({},o.current),O=[...o.deleted],y=Object.keys(h),I=new Set(y),A=new Set(c),D=c.filter(e=>!I.has(e)),x=o.transitions.filter(e=>!e.destroyed&&!A.has(e.originalKey)).map(e=>e.originalKey),M=c.filter(e=>I.has(e)),w=-S;for(;C.length;){const e=C.shift();switch(e){case q:D.forEach((e,t)=>{f&&O.find(t=>t.originalKey===e)&&(O=O.filter(t=>t.originalKey!==e));const a=c.indexOf(e),r=l[a],i=n&&void 0!==d?"initial":q;h[e]={slot:i,originalKey:e,key:f?String(e):z++,item:r,trail:w+=S,config:_(b,r,i),from:_(n&&void 0!==d?d||{}:u,r),to:_(p,r)}});break;case j:x.forEach(e=>{const t=R.indexOf(e),n=N[t],r=j;O.unshift(a({},h[e],{slot:r,destroyed:!0,left:R[Math.max(0,t-1)],right:R[Math.min(R.length,t+1)],trail:w+=S,config:_(b,n,r),to:_(m,n)})),delete h[e]});break;case W:M.forEach(e=>{const t=c.indexOf(e),n=l[t],r=W;h[e]=a({},h[e],{item:n,slot:r,trail:w+=S,config:_(b,n,r),to:_(g,n)})})}}let L=c.map(e=>h[e]);return O.forEach(e=>{let t,n=e.left,a=(e.right,r(e,["left","right"]));-1!==(t=L.findIndex(e=>e.originalKey===n))&&(t+=1),t=Math.max(0,t),L=[...L.slice(0,t),a,...L.slice(t)]}),a({},o,{changed:D.length||x.length||M.length,first:n&&0===D.length,transitions:L,current:h,deleted:O,prevProps:t})}(v.current,o),v.current.changed&&v.current.transitions.forEach(e=>{const t=e.slot,n=e.from,r=e.to,i=e.config,o=e.trail,s=e.key,l=e.item;v.current.instances.has(s)||v.current.instances.set(s,new Y);const c=v.current.instances.get(s),_=a({},b,{to:r,from:n,config:i,ref:f,onRest:n=>{if(v.current.mounted){e.destroyed&&(f||d||X(v,s),m&&m(l)),!Array.from(v.current.instances).some(e=>{return!e[1].idle})&&(f||d)&&v.current.deleted.length>0&&X(v),E&&E(l,t,n)}},onStart:S&&(()=>S(l,t)),onFrame:g&&(e=>g(l,t,e)),delay:o,reset:p&&t===q});c.update(_),v.current.paused||c.start()}),Object(i.useEffect)(()=>(v.current.mounted=C.current=!0,()=>{v.current.mounted=C.current=!1,Array.from(v.current.instances).map(e=>{return e[1].destroy()}),v.current.instances.clear()}),[]),v.current.transitions.map(e=>{let t=e.item,n=e.slot,a=e.key;return{item:t,key:a,state:n,props:v.current.instances.get(a).getValues()}})}function X(e,t){const n=e.current.deleted;for(let a of n){let n=a.key;const r=e=>e.key!==n;(s.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(r),e.current.deleted=e.current.deleted.filter(r))}e.current.forceUpdate()}class Z extends g{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof p||(e=E.transform(e)),this.payload=e}}const J={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ee="[-+]?\\d*\\.?\\d+",te=ee+"%";function ne(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ue(e,t,n){const a=n<.5?n*(1+t):n+t-n*t,r=2*n-a,i=_e(r,a,e+1/3),o=_e(r,a,e),s=_e(r,a,e-1/3);return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function pe(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function me(e){return(parseFloat(e)%360+360)%360/360}function ge(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ee(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Se(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ce.exec(e))?parseInt(t[1]+"ff",16)>>>0:J.hasOwnProperty(e)?J[e]:(t=ae.exec(e))?(pe(t[1])<<24|pe(t[2])<<16|pe(t[3])<<8|255)>>>0:(t=re.exec(e))?(pe(t[1])<<24|pe(t[2])<<16|pe(t[3])<<8|ge(t[4]))>>>0:(t=se.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=de.exec(e))?parseInt(t[1],16)>>>0:(t=le.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ie.exec(e))?(255|ue(me(t[1]),Ee(t[2]),Ee(t[3])))>>>0:(t=oe.exec(e))?(ue(me(t[1]),Ee(t[2]),Ee(t[3]))|ge(t[4]))>>>0:null}(e);return null===t?e:`rgba(${(4278190080&(t=t||0))>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}const fe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,be=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Te=new RegExp(`(${Object.keys(J).join("|")})`,"g");let Ce={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const ve=["Webkit","Ms","Moz","O"];function Re(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ce.hasOwnProperty(e)&&Ce[e]?(""+t).trim():t+"px"}Ce=Object.keys(Ce).reduce((e,t)=>(ve.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),Ce);const Ne={};A(e=>new Z(e)),h("div"),v(e=>{const t=e.output.map(e=>e.replace(be,Se)).map(e=>e.replace(Te,Se)),n=t[0].match(fe).map(()=>[]);t.forEach(e=>{e.match(fe).forEach((e,t)=>n[t].push(+e))});const r=t[0].match(fe).map((t,r)=>k(a({},e,{output:n[r]})));return e=>{let n=0;return t[0].replace(fe,()=>r[n++](e)).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(e,t,n,a,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(a)}, ${r})`)}}),b(J),f((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,o=t.children,s=t.scrollTop,l=t.scrollLeft,c=r(t,["style","children","scrollTop","scrollLeft"]),d="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==s&&(e.scrollTop=s),void 0!==l&&(e.scrollLeft=l),void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),a=Re(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,a):e.style[t]=a}for(let t in c){const n=d?t:Ne[t]||(Ne[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase()));void 0!==e.getAttribute(n)&&e.setAttribute(n,c[t])}}},e=>e);var he,Oe;const ye=(he=e=>Object(i.forwardRef)((t,n)=>{const c=l(),d=Object(i.useRef)(!0),_=Object(i.useRef)(null),u=Object(i.useRef)(null),p=Object(i.useCallback)(e=>{const t=_.current;_.current=new D(e,()=>{let e=!1;u.current&&(e=E.fn(u.current,_.current.getAnimatedValue())),u.current&&!1!==e||c()}),t&&t.detach()},[]);Object(i.useEffect)(()=>()=>{d.current=!1,_.current&&_.current.detach()},[]),Object(i.useImperativeHandle)(n,()=>I(u,d,c)),p(t);const m=_.current.getValue(),g=(m.scrollTop,m.scrollLeft,r(m,["scrollTop","scrollLeft"])),S=(e=>s.fun(e)&&!(e.prototype instanceof o.a.Component))(e)?void 0:e=>u.current=function(e,t){return t&&(s.fun(t)?t(e):s.obj(t)&&(t.current=e)),e}(e,n);return o.a.createElement(e,a({},g,{ref:S}))}),void 0===(Oe=!1)&&(Oe=!0),e=>(s.arr(e)?e:Object.keys(e)).reduce((e,t)=>{const n=Oe?t[0].toLowerCase()+t.substring(1):t;return e[n]=he(n),e},he))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"])},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return u}),n.d(t,"d",function(){return g}),n.d(t,"c",function(){return E}),n.d(t,"a",function(){return f});var a,r=n(3);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i,o,s=Math.cos,l=Math.sin,c=Math.PI,d=360/r.m;function _(e){return e/(180/c)}function u(e){return e*(180/c)}function p(e,t){return l(_(e*-d-180))*(r.a-t)+r.a-r.l/2}function m(e,t){return s(_(e*-d-180))*(r.a-t)+r.a-r.l/2}function g(e,t){var n=p(e,t),a=m(e,t);return"translate(".concat(n,"px, ").concat(a,"px)")}function E(e,t,n){return Math.sqrt(e*e+t*t)=i;)i+=360;return i-a=4;)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+((1540483477*(t>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++r;switch(n){case 3:a^=(255&e.charCodeAt(r+2))<<16;case 2:a^=(255&e.charCodeAt(r+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(r)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),((a^=a>>>15)>>>0).toString(36)},r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var i=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};n.d(t,"a",function(){return m});var o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=i(function(e){return l(e)?e:e.replace(o,"-$&").toLowerCase()}),d=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":"string"==typeof t&&(t=t.replace(s,function(e,t,n){return u={name:t,styles:n,next:u},t}))}return 1===r[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function _(e,t,n,a){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return u={name:n.name,styles:n.styles,next:u},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)u={name:r.name,styles:r.styles,next:u},r=r.next;return n.styles}return function(e,t,n){var a="";if(Array.isArray(n))for(var r=0;r60)throw new Error("Minute out of range (> 60)");if(null!=a){if(t>12)throw new Error("Hour out of range (> 12)");"pm"===a&&12!==t?t+=12:"am"===a&&12===t&&(t=0)}else{if(t>24)throw new Error("Hour out of range (> 24)");24===t&&(t=0)}return{hour:t,minute:n}}function u(e){return _(e).hour>=12?"pm":"am"}function p(e,t){var n=("0"+t).slice(-2),a=24===e?0:e,r=e>=12?"pm":"am",i=e;return e>12?i=e-12:0===e&&(i=e=12),{formatted24:"".concat(a,":").concat(n),formatted12:"".concat(i,":").concat(n," ").concat(r),formattedSimple:"".concat(i,":").concat(n),hour:a,hour12:i,minute:t,meridiem:r}}(o=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(o.register(l,"TIME_PARSE_MERIDIEM","/Users/catalin_covic/development/git/react-timekeeper/src/helpers/time.ts"),o.register(c,"TIME_PARSE_24","/Users/catalin_covic/development/git/react-timekeeper/src/helpers/time.ts"),o.register(d,"defaultTime","/Users/catalin_covic/development/git/react-timekeeper/src/helpers/time.ts"),o.register(_,"parseTime","/Users/catalin_covic/development/git/react-timekeeper/src/helpers/time.ts"),o.register(u,"parseMeridiem","/Users/catalin_covic/development/git/react-timekeeper/src/helpers/time.ts"),o.register(p,"composeTime","/Users/catalin_covic/development/git/react-timekeeper/src/helpers/time.ts")),(s=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&s(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";var a=n(18);t.a=function(){for(var e=arguments.length,t=new Array(e),n=0;n}\nuseRef{dragCount}\nuseCallback{cleanup}\nuseRef{disableMouse}\nuseEffect{}"),(l=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(l.register(_,"atan2","/Users/catalin_covic/development/git/react-timekeeper/src/hooks/clock-events.ts"),l.register(u,"useClockEvents","/Users/catalin_covic/development/git/react-timekeeper/src/hooks/clock-events.ts")),(c=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&c(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return l}),n.d(t,"a",function(){return c});var a,r=n(0);n(2);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i,o,s=function(){return Object(r.c)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.c)("path",{d:"M10.595 5.196l0.446 1.371c0.369-0.316 0.835-0.599 1.441-0.795 0.59-0.192 1.111-0.3 1.582-0.362l-0.43-1.323c-0.476 0.069-1.001 0.18-1.58 0.368s-1.055 0.45-1.459 0.741zM11.522 8.051l0.446 1.371c0.369-0.316 0.835-0.599 1.441-0.795 0.59-0.192 1.111-0.3 1.582-0.362l-0.43-1.323c-0.476 0.069-1.001 0.18-1.58 0.368-0.578 0.187-1.054 0.449-1.459 0.741zM12.45 10.905l0.446 1.371c0.369-0.316 0.835-0.599 1.441-0.795 0.59-0.192 1.111-0.3 1.582-0.362l-0.43-1.323c-0.476 0.069-1.001 0.18-1.58 0.368-0.579 0.187-1.055 0.45-1.459 0.741zM5.388 13.077l0.43 1.323c0.417-0.226 0.902-0.445 1.492-0.636 0.606-0.197 1.149-0.242 1.633-0.203l-0.446-1.371c-0.499 0.002-1.038 0.070-1.615 0.257-0.579 0.188-1.069 0.406-1.494 0.63zM3.533 7.368l0.43 1.323c0.417-0.226 0.902-0.444 1.492-0.636 0.606-0.197 1.149-0.242 1.633-0.203l-0.445-1.372c-0.499 0.003-1.038 0.070-1.616 0.258-0.579 0.188-1.069 0.406-1.494 0.63zM4.46 10.223l0.43 1.323c0.417-0.226 0.902-0.445 1.492-0.636 0.606-0.197 1.149-0.242 1.633-0.203l-0.445-1.372c-0.499 0.002-1.038 0.070-1.615 0.257-0.579 0.188-1.070 0.407-1.495 0.631zM11.064 1.41c-1.723 0.56-2.623 1.752-3.053 2.559-0.822-0.4-2.25-0.835-3.973-0.275-2.523 0.82-3.969 2.627-3.969 2.627l4.095 12.587c0.126 0.387 0.646 0.477 0.878 0.143 0.499-0.719 1.46-1.658 3.257-2.242 1.718-0.558 2.969 0.054 3.655 0.578 0.272 0.208 0.662 0.060 0.762-0.268 0.252-0.827 0.907-2.040 2.61-2.593 1.799-0.585 3.129-0.389 3.956-0.1 0.385 0.134 0.75-0.242 0.625-0.629l-4.088-12.594c0 0-2.232-0.612-4.755 0.207zM10.951 15.256c-0.819-0.244-1.901-0.358-3.141 0.044-1.251 0.406-2.127 0.949-2.699 1.404l-3.245-9.982c0.358-0.358 1.187-1.042 2.662-1.521 1.389-0.451 2.528-0.065 3.279 0.378l3.144 9.677zM17.845 12.567c-0.731-0.032-1.759 0.044-3.010 0.451-1.24 0.403-2.048 1.132-2.567 1.81l-3.144-9.677c0.346-0.8 1.040-1.782 2.43-2.233 1.474-0.479 2.547-0.413 3.047-0.334l3.244 9.983z"}))},l=function(){return Object(r.c)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.c)("path",{d:"M0 14v1.498c0 0.277 0.225 0.502 0.502 0.502h0.997c0.276 0 0.501-0.225 0.501-0.502v-1.498c0-0.959 0.801-2.273 2-2.779v-2.105c-2.316 0.536-4 2.854-4 4.884zM12.065 4.701l-2.53 1.898c-0.347 0.26-0.769 0.401-1.203 0.401h-2.327c-0.555 0-1.005 0.45-1.005 1.005v3.991c0 0.554 0.45 1.004 1.005 1.004h2.327c0.434 0 0.856 0.141 1.203 0.401l2.531 1.898c0.606 0.455 1.344 0.701 2.102 0.701h1.832v-12h-1.832c-0.758 0-1.496 0.246-2.103 0.701zM17 6v2h3v-2h-3zM17 14h3v-2h-3v2z"}))},c=function(){return Object(r.c)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},Object(r.c)("path",{d:"M13.18 11.309c-0.718 0-1.3 0.807-1.3 1.799 0 0.994 0.582 1.801 1.3 1.801s1.3-0.807 1.3-1.801c-0.001-0.992-0.582-1.799-1.3-1.799zM17.706 6.626c0.149-0.365 0.155-2.439-0.635-4.426 0 0-1.811 0.199-4.551 2.080-0.575-0.16-1.548-0.238-2.519-0.238-0.973 0-1.945 0.078-2.52 0.238-2.741-1.881-4.552-2.080-4.552-2.080-0.789 1.987-0.781 4.061-0.634 4.426-0.928 1.008-1.495 2.219-1.495 3.871 0 7.186 5.963 7.301 7.467 7.301 0.342 0 1.018 0.002 1.734 0.002s1.392-0.002 1.732-0.002c1.506 0 7.467-0.115 7.467-7.301 0-1.652-0.566-2.863-1.494-3.871zM10.028 16.915h-0.056c-3.771 0-6.709-0.449-6.709-4.115 0-0.879 0.31-1.693 1.047-2.369 1.227-1.127 3.305-0.531 5.662-0.531 0.010 0 0.020 0 0.029 0s0.018 0 0.027 0c2.357 0 4.436-0.596 5.664 0.531 0.735 0.676 1.045 1.49 1.045 2.369 0 3.666-2.937 4.115-6.709 4.115zM6.821 11.309c-0.718 0-1.3 0.807-1.3 1.799 0 0.994 0.582 1.801 1.3 1.801s1.301-0.807 1.301-1.801c0-0.992-0.582-1.799-1.301-1.799z"}))};(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(i.register(s,"Book","/Users/catalin_covic/development/git/react-timekeeper/docs/js/components/icons.tsx"),i.register(l,"Plug","/Users/catalin_covic/development/git/react-timekeeper/docs/js/components/icons.tsx"),i.register(c,"Github","/Users/catalin_covic/development/git/react-timekeeper/docs/js/components/icons.tsx")),(o=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&o(e)}).call(this,n(4)(e))},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var a=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:l}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{begin://,subLanguage:"xml",contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{begin:/<[A-Za-z0-9\\._:-]+/,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:l}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},function(e,t){e.exports=function(e){var t={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},n={className:"number",begin:"#[0-9A-Fa-f]+"};e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE;return{case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{className:"attribute",begin:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[t,n,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@",end:"[{;]",keywords:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",contains:[t,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n,e.CSS_NUMBER_MODE,{begin:"\\s[A-Za-z0-9_.-]+",relevance:0}]}]}}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(63)},function(e,t,n){"use strict";(function(e){var a,r=n(0),i=n(2),o=n.n(i),s=n(1),l=(n(67),n(28)),c=n.n(l),d=(n(35),n(36),n(252),n(40)),_=n(57),u=n(58),p=n(59),m=n(60);function g(){return Object(i.useLayoutEffect)(function(){c.a.configure({tabReplace:" "}),c.a.initHighlightingOnLoad()},[]),Object(r.c)(o.a.Fragment,null,Object(r.c)(d.a,null),Object(r.c)(_.a,null),Object(r.c)(u.a,null),Object(r.c)(p.a,null),Object(r.c)(m.a,null))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(g,"useLayoutEffect{}");var E,S,f=Object(s.hot)(e)(g);t.a=f,(E=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(E.register(g,"Content","/Users/catalin_covic/development/git/react-timekeeper/docs/js/content.tsx"),E.register(f,"default","/Users/catalin_covic/development/git/react-timekeeper/docs/js/content.tsx")),(S=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&S(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return p});var a,r,i,o=n(11),s=n.n(o),l=n(0),c=n(2),d=n(16),_=n(32),u=n(17);function p(){var e=Object(c.useState)(!0),t=s()(e,2),n=t[0],a=t[1],r=Object(c.useState)(function(){var e=new Date,t=e.getHours()%12,n=0===t?12:t,a=("0"+e.getMinutes()).slice(-2),r=e.getHours()>12?"PM":"AM";return"".concat(n,":").concat(a," ").concat(r)}),i=s()(r,2),o=i[0],p=i[1],m=Object(c.useCallback)(function(e){p(e.formatted12)},[]);return Object(l.c)("section",{className:"intro-demo"},Object(l.c)("h1",null,"React Timekeeper"),Object(l.c)("p",{className:"intro-description"},"Time picker based on the style of the"," ",Object(l.c)(u.a,{href:"https://play.google.com/store/apps/details?id=com.google.android.keep"},"Android Google Keep")," ","app"),Object(l.c)("div",{className:"action-buttons"},Object(l.c)(u.a,{href:"https://github.com/catc/react-timekeeper",samePage:!0},Object(l.c)(_.a,null)," Source"),Object(l.c)(u.a,{href:"#examples",samePage:!0},Object(l.c)(_.b,null)," Examples")),Object(l.c)("div",{className:"intro-demo-wrapper"},Object(l.c)("div",{className:"intro-demo-picker"},n&&Object(l.c)("div",{className:"intro-demo-picker__wrapper"},Object(l.c)(d.a,{time:o,onChange:m,switchToMinuteOnHourSelect:!0,onDoneClick:function(){return a(!1)}}))),Object(l.c)("span",{onClick:function(){return a(!0)},className:"selected-demo-time"},"The time is currently ",Object(l.c)("strong",null,o),!n&&Object(l.c)("span",{className:"selected-demo-time__hint"},"Click to open"))))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(p,"useState{[isVisible, setVisibility](true)}\nuseState{[time, setTime](() => {\n\t\tconst date = new Date()\n\n\t\tconst h = date.getHours() % 12\n\t\tconst hour = h === 0 ? 12 : h\n\t\tconst min = ('0' + date.getMinutes()).slice(-2)\n\t\tconst meridiem = date.getHours() > 12 ? 'PM' : 'AM'\n\t\tconst dateString = `${hour}:${min} ${meridiem}`\n\t\treturn dateString\n\t})}\nuseCallback{updateTime}"),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&r.register(p,"Intro","/Users/catalin_covic/development/git/react-timekeeper/docs/js/sections/intro.tsx"),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return d});var a,r=n(0),i=(n(2),n(42)),o=n(8),s=n(9);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);var l,c;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function d(e){var t=e.time,n=e.onChange,a=e.coarseMinutes,l=e.forceCoarseMinutes,c=e.switchToMinuteOnHourSelect,d=e.closeOnMinuteSelect,_=e.hour24Mode,u=e.onDoneClick,p=e.doneButton;return Object(r.c)(o.a,{coarseMinutes:a,forceCoarseMinutes:l,switchToMinuteOnHourSelect:c,closeOnMinuteSelect:d,hour24Mode:_,onDoneClick:u,doneButton:p},Object(r.c)(s.a,{onChange:n,time:t},Object(r.c)(i.a,null)))}(l=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&l.register(d,"TimepickerWithConfig","/Users/catalin_covic/development/git/react-timekeeper/src/components/TimeKeeperWrapper.tsx"),(c=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&c(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return m});var a,r=n(0),i=n(2),o=n.n(i),s=n(43),l=n(44),c=n(45),d=n(48),_=n(54);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);var u,p;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function m(){return Object(r.c)(o.a.Fragment,null,Object(r.c)(r.a,{styles:Object(r.b)(s.a,"label:TimeKeeper;")}),Object(r.c)("div",{className:"react-timekeeper",css:l.a},Object(r.c)(c.a,null),Object(r.c)(d.a,null),Object(r.c)(_.a,null)))}(u=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&u.register(m,"TimeKeeper","/Users/catalin_covic/development/git/react-timekeeper/src/components/TimeKeeper.tsx"),(p=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&p(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){var a;(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var r,i,o="\n\t.react-timekeeper-button-reset {\n\t\tbackground: 0;\n\t\tborder: 0;\n\t\tbox-shadow: none;\n\t\ttext-shadow: none;\n\t\t-webkit-appearance: none;\n\t\t-moz-appearance: none;\n\t\tcursor: pointer;\n\t}\n\t.react-timekeeper-button-reset:hover, .react-timekeeper-button-reset:focus, .react-timekeeper-button-reset:active {\n\t\toutline: none;\n\t}\n\t.react-timekeeper-button-reset::-moz-focus-inner {\n\t\tborder: 0;\n\t\tpadding: 0;\n\t}\n\t.react-timekeeper-noscroll {\n\t\toverflow: hidden;\n\t}\n\t.react-timekeeper-scrollbar-measure {\n\t\twidth: 100px;\n\t\theight: 100px;\n\t\toverflow: scroll;\n\t\tposition: absolute;\n\t\ttop: -9999px;\n\t}\n",s=o;t.a=s,(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(r.register(o,"style","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/global.ts"),r.register(s,"default","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/global.ts")),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){var a;n(0);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var r,i,o={name:"18m1yfy-timepicker",styles:"-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;font-smoothing:antialiased;font-family:'Roboto',sans-serif;background:white;border-radius:3px;display:inline-block;box-shadow:0 3px 11px rgba(0,0,0,0.1),0 3px 6px rgba(0,0,0,0.15);width:260px;position:relative;user-select:none;label:timepicker;"},s=o;t.a=s,(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(r.register(o,"timepicker","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/main.ts"),r.register(s,"default","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/main.ts")),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return S});var a,r,i,o=n(20),s=n(11),l=n.n(s),c=n(0),d=n(2),_=n(29),u=n(9),p=n(8),m=n(14),g=n(3),E=n(6);function S(){var e=Object(p.b)().hour24Mode,t=Object(u.b)(),n=t.mode,a=t.time,r=t.updateMeridiem,i=t.setMode,s=Object(d.useState)(null),S=l()(s,2),f=S[0],b=S[1];function T(e){var t=n===g.j.MINUTES?"minute":"hour";if(e===t)b(t);else{var a=n===g.j.MINUTES?g.j.HOURS_24:g.j.MINUTES;i(a)}}var C=e?a.hour:a.hour%12==0?12:a.hour%12,v=a.hour>=12?g.h.pm:g.h.am;var R=Object(E.b)(n),N=("0"+a.minute).slice(-2),h=function(){return b(null)};return Object(c.c)("div",{css:m.f(e),className:"react-timekeeper__top-bar"},Object(c.c)("div",{css:m.b(e),className:"react-timekeeper__tb-minute-wrapper"},Object(c.c)("span",{css:Object(o.a)([m.e(R)],"label:TopBar;"),onClick:function(){return T("hour")},"data-type":"hour",className:"react-timekeeper__tb-hour"},C),"hour"===f&&Object(c.c)(_.a,{close:h})),Object(c.c)("span",{css:m.a,className:"react-timekeeper__tb-colon"},":"),Object(c.c)("div",{css:m.d(e),className:"react-timekeeper__tb-hour-wrapper"},Object(c.c)("span",{css:m.e(!R),onClick:function(){return T("minute")},"data-type":"minute",className:"react-timekeeper__tb-minute"},N),"minute"===f&&Object(c.c)(_.a,{close:h})),!e&&Object(c.c)("button",{name:"meridiem",type:"button",onClick:function(){var e=v===g.h.am?g.h.pm:g.h.am;r(e)},css:m.c,className:"react-timekeeper-button-reset react-timekeeper__tb-meridiem"},v))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(S,"useConfig{{ hour24Mode }}\nuseTimekeeperState{{ mode, time, updateMeridiem, setMode }}\nuseState{[open, setOpen](null)}",function(){return[p.b,u.b]}),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&r.register(S,"TopBar","/Users/catalin_covic/development/git/react-timekeeper/src/components/TopBar.tsx"),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){(function(t){var n="Expected a function",a=NaN,r="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,d="object"==typeof t&&t&&t.Object===Object&&t,_="object"==typeof self&&self&&self.Object===Object&&self,u=d||_||Function("return this")(),p=Object.prototype.toString,m=Math.max,g=Math.min,E=function(){return u.Date.now()};function S(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function f(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==r}(e))return a;if(S(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=S(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):o.test(e)?a:+e}e.exports=function(e,t,a){var r,i,o,s,l,c,d=0,_=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=r,a=i;return r=i=void 0,d=t,s=e.apply(a,n)}function T(e){var n=e-c;return void 0===c||n>=t||n<0||u&&e-d>=o}function C(){var e=E();if(T(e))return v(e);l=setTimeout(C,function(e){var n=t-(e-c);return u?g(n,o-(e-d)):n}(e))}function v(e){return l=void 0,p&&r?b(e):(r=i=void 0,s)}function R(){var e=E(),n=T(e);if(r=arguments,i=this,c=e,n){if(void 0===l)return function(e){return d=e,l=setTimeout(C,t),_?b(e):s}(c);if(u)return l=setTimeout(C,t),b(c)}return void 0===l&&(l=setTimeout(C,t)),s}return t=f(t)||0,S(a)&&(_=!!a.leading,o=(u="maxWait"in a)?m(f(a.maxWait)||0,t):o,p="trailing"in a?!!a.trailing:p),R.cancel=function(){void 0!==l&&clearTimeout(l),d=0,r=c=i=l=void 0},R.flush=function(){return void 0===l?s:v(E())},R}}).call(this,n(34))},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=a=function(e){return n(e)}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},a(t)}e.exports=a},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return E});var a,r,i,o=n(0),s=n(2),l=n(8),c=n(49),d=n(52),_=n(53),u=n(31),p=n(3),m=n(6),g=n(9);function E(){var e=Object(l.b)(),t=Object(s.useRef)(null),n=Object(s.useRef)(null),a=Object(u.a)(t,n,function(t,n){var a=n.canAutoChangeUnit,r=void 0!==a&&a,i=n.wasTapped,o=void 0!==i&&i,s=n.isInnerClick,l=void 0!==s&&s,c=p.c[S].increments,d=1;Object(m.c)(S)&&(o||e.forceCoarseMinutes)&&(d=e.coarseMinutes);var _=t/360*c,u=Math.round(_/d)*d;S===p.j.HOURS_24&&e.hour24Mode&&(l||0===u?l&&0===u&&(u+=12):u+=12);f(u),r&&(e.switchToMinuteOnHourSelect&&Object(m.b)(S)?b(p.j.MINUTES):e.closeOnMinuteSelect&&Object(m.c)(S)&&e.onDoneClick&&e.onDoneClick(T()))}),r=a.mousedown,i=a.touchstart,E=Object(g.b)(),S=E.mode,f=E.updateTime,b=E.setMode,T=E.getComposedTime;return Object(o.c)("div",{ref:t,onMouseDown:r,onTouchStart:i,className:"react-timekeeper__clock-wrapper",css:_.a},Object(o.c)(c.a,{clockEl:n}),!e.hour24Mode&&Object(o.c)(d.a,null))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(E,"useConfig{config}\nuseRef{wrapper}\nuseRef{clock}\nuseClockEvents{{ mousedown, touchstart }}\nuseTimekeeperState{{ mode, updateTime, setMode, getComposedTime }}",function(){return[l.b,u.a,g.b]}),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&r.register(E,"ClockWrapper","/Users/catalin_covic/development/git/react-timekeeper/src/components/ClockWrapper.tsx"),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return f});var a,r,i,o=n(0),s=n(2),l=n(10),c=n(50),d=n(30),_=n(3),u=n(6),p=n(51),m=n(8),g=n(9);function E(e){return Object(u.b)(e)?_.d:_.e}function S(e){return Object(u.c)(e)?_.d:_.e}function f(e){var t=e.clockEl,n=Object(s.useRef)(!0),a=Object(m.b)().hour24Mode,r=Object(g.b)(),i=r.mode,f=r.time,b=Object(l.c)(i,null,{unique:!0,from:!n.current&&{opacity:0,translate:S(i),translateInner:_.f.exit},enter:{opacity:1,translate:Object(_.r)(i),translateInner:_.f.enter},leave:{opacity:0,translate:E(i),translateInner:_.f.exit}});return Object(s.useEffect)(function(){n.current=!1},[]),Object(o.c)("div",{className:"react-timekeeper__clock",css:p.a,ref:t},b.map(function(e){var t=e.item,n=e.key,r=e.props;return t?Object(u.c)(t)?Object(o.c)(d.b,{anim:r,key:n}):Object(o.c)(d.a,{anim:r,key:n,mode:t,hour24Mode:a}):null}),Object(o.c)(c.a,{time:f,mode:i}))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(f,"useRef{firstTime}\nuseConfig{{ hour24Mode }}\nuseTimekeeperState{{ mode, time }}\nuseTransition{transitions}\nuseEffect{}",function(){return[m.b,g.b,l.c]}),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(r.register(E,"exitPosition","/Users/catalin_covic/development/git/react-timekeeper/src/components/Clock.tsx"),r.register(S,"initialPosition","/Users/catalin_covic/development/git/react-timekeeper/src/components/Clock.tsx"),r.register(f,"ClockWrapper","/Users/catalin_covic/development/git/react-timekeeper/src/components/Clock.tsx")),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return S});var a,r,i,o=n(11),s=n.n(o),l=n(0),c=n(2),d=n(10),_=n(6),u=n(3),p=n(13),m=n(12);function g(e){return"rotate(".concat(e," ").concat(u.a," ").concat(u.a,")")}function E(e,t){var n=u.c[e].increments;return Object(_.a)(e,t)*(360/n)}function S(e){var t=e.mode,n=e.time,a=Object(c.useRef)({time:n,mode:t}),r=Object(c.useRef)(0),i=n.hour>0&&n.hour<=12,o=Object(u.p)(t,i),S=Object(u.n)(t,i),f=Object(u.o)(t,i),b=Object(d.b)(function(){return{immediate:!0,rotation:E(t,n),length:o,position:S}}),T=s()(b,2),C=T[0],v=T[1],R=C.rotation,N=C.length,h=C.position;Object(c.useEffect)(function(){var e=R.value,i=E(t,n);if(a.current.mode!==t){r.current=0,a.current.mode=t;var s=Object(m.a)(e,i);v({immediate:!1,rotation:s,length:o,position:S})}else Object(_.d)(a.current.time,n)||(a.current.time=n,r.current++,v({immediate:!0,rotation:i,length:o,position:S}))},[S,o,t,R,v,n]);var O,y=Object(_.a)(t,n);return t===u.j.MINUTES&&y%5&&(O=Object(l.c)("circle",{cx:u.a,cy:u.k,r:4,fill:p.c,className:"react-timekeeper__hand-intermediate-circle"})),Object(l.c)("svg",{width:u.b,height:u.b,viewBox:"0 0 ".concat(u.b," ").concat(u.b),xmlns:"http://www.w3.org/2000/svg",className:"react-timekeeper__clock-hand"},Object(l.c)(d.a.g,{transform:R.interpolate(function(e){return g(e)})},Object(l.c)(d.a.line,{stroke:p.a,x1:u.a,y1:u.a,x2:u.a,y2:N,strokeWidth:"1",className:"react-timekeeper__clock-hand"}),Object(l.c)("circle",{cx:u.a,cy:u.a,r:1.5,fill:p.a,className:"react-timekeeper__hand-circle-center"}),Object(l.c)(d.a.circle,{fill:p.b,cx:u.a,cy:h,r:f,className:"react-timekeeper__hand-circle-outer"}),O))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(S,"useRef{prevState}\nuseRef{dragCount}\nuseSpring{[anim, setAnim]}\nuseEffect{}",function(){return[d.b]}),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(r.register(g,"rotate","/Users/catalin_covic/development/git/react-timekeeper/src/components/ClockHand.tsx"),r.register(E,"getAngle","/Users/catalin_covic/development/git/react-timekeeper/src/components/ClockHand.tsx"),r.register(S,"ClockHand","/Users/catalin_covic/development/git/react-timekeeper/src/components/ClockHand.tsx")),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){var a,r=n(0),i=n(3);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,s,l=Object(r.b)("display:inline-block;border-radius:200px;background:white;width:",i.b,"px;height:",i.b,"px;position:relative;cursor:pointer;touch-action:none;label:styles;"),c=l;t.a=c,(o=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(o.register(l,"styles","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/clock.ts"),o.register(c,"default","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/clock.ts")),(s=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&s(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var a,r,i,o=n(0),s=n(2),l=n(26),c=n(9),d=n(3);function _(){var e=Object(c.b)(),t=e.time,n=e.updateMeridiem,a=Object(s.useCallback)(function(){n(d.h.am)},[n]),r=Object(s.useCallback)(function(){n(d.h.pm)},[n]),i=t.hour>=12;return Object(o.c)("div",{css:l.b},Object(o.c)("button",{type:"button",css:Object(l.a)({isSelected:!i}),className:"react-timekeeper-button-reset react-timekeeper__meridiem-toggle",onClick:a},"AM"),Object(o.c)("button",{type:"button",css:Object(l.a)({isRight:!0,isSelected:i}),className:"react-timekeeper-button-reset react-timekeeper__meridiem-toggle",onClick:r},"PM"))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(_,"useTimekeeperState{{ time, updateMeridiem }}\nuseCallback{setAM}\nuseCallback{setPM}",function(){return[c.b]}),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&r.register(_,"Meridiems","/Users/catalin_covic/development/git/react-timekeeper/src/components/Meridiems.tsx"),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){var a,r=n(0),i=n(13);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,s,l=Object(r.b)("text-align:center;padding:18px 0 14px;background:",i.d,";label:style;"),c=l;t.a=c,(o=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(o.register(l,"style","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/clock-wrapper.ts"),o.register(c,"default","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/clock-wrapper.ts")),(s=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&s(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return d});var a,r,i,o=n(0),s=(n(2),n(8)),l=n(55),c=n(9);function d(){var e=Object(s.b)(),t=e.onDoneClick,n=e.doneButton,a=Object(c.b)().getComposedTime;return n?n(a()):t?Object(o.c)("span",{css:l.a,onClick:function(e){return t(a(),e)},className:"react-timekeeper__done-button"},"Done"):null}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(d,"useConfig{{ onDoneClick, doneButton }}\nuseTimekeeperState{{ getComposedTime }}",function(){return[s.b,c.b]}),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&r.register(d,"DoneButton","/Users/catalin_covic/development/git/react-timekeeper/src/components/DoneButton.tsx"),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){var a,r=n(0),i=n(13);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,s,l=Object(r.b)("background:",i.d,";display:block;color:","#686868",";text-transform:uppercase;border-top:1px solid ","#CCC",";text-align:center;cursor:pointer;padding:16px 0;font-size:13px;letter-spacing:0.5px;line-height:normal;font-weight:500;label:doneButton;"),c=l;t.a=c,(o=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(o.register("#686868","DONE_BUTTON_COLOR","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/done-button.ts"),o.register("#CCC","DONE_BUTTON_BORDER_COLOR","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/done-button.ts"),o.register(l,"doneButton","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/done-button.ts"),o.register(c,"default","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/done-button.ts")),(s=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&s(e)}).call(this,n(4)(e))},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t\n\t\t\t;\n\t\t\t\n\t)\n}"))}(l=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&l.register(d,"Intro","/Users/catalin_covic/development/git/react-timekeeper/docs/js/sections/installation.tsx"),(c=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&c(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return c});var a,r=n(0),i=(n(2),n(7)),o=n(5);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);var s,l;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function c(){return Object(r.c)("section",{className:"api docs-section",id:"api"},Object(r.c)("h2",null,"API"),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"time"),Object(r.c)("span",{className:"accepts"},"TimeInput"),"(default:"," ",Object(r.c)("code",{className:"default"},"null"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"Time to set on component. Accepts time in 4 formats:"),Object(r.c)(o.b,{type:o.a.js},"// TimeInput\n\t\t\t\n// string with meridiem\n'4:55 pm'\n'4:55pm'\n\n// string without meridiem (assumes a 24 hour format)\n'16:55'\n\n// object with meridiem\n{\n\thour: 4,\n\tminute: 55,\n\tmeridiem: 'pm'\n}\n\n// object without meridiem (assumes a 24 hour format)\n{\n\thour: 16,\n\tminute: 55\n}")),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"onChange"),Object(r.c)("span",{className:"accepts"},"(TimeOutput) => void"),"(default:"," ",Object(r.c)("code",{className:"default"},"null"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"Pass a function to be called when time is changed. Used to store time state in parent component. Function called returns object with updated time."),Object(r.c)(o.b,{type:o.a.js},"// TimeOutput\n{\n\tformatted24: '16:55', // 24 hour format\n\tformatted12: '4:55 pm', // 12 hour mode\n\tformattedSimple: '4:55', // similar to formatted (12h), but no meridiem\n\thour: 16, // 24 hour\n\thour12: 4,\n\tminute: 55,\n\tmeridiem: 'pm'\t\t\t\t\n}")),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"hour24Mode"),Object(r.c)("span",{className:"accepts"},"boolean"),"(default:"," ",Object(r.c)("code",{className:"default"},"false"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"Set hour mode to 24 hours")),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"switchToMinuteOnHourSelect"),Object(r.c)("span",{className:"accepts"},"boolean"),"(default:"," ",Object(r.c)("code",{className:"default"},"false"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"Changes clock unit from hour to minute after selecting an hour. Exists mainly to provides a better user experience.")),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"closeOnMinuteSelect"),Object(r.c)("span",{className:"accepts"},"boolean"),"(default:"," ",Object(r.c)("code",{className:"default"},"false"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,'Whether or not to trigger "Done" button click when the user selects minutes. Similar to Google Keep functionality, where once the selects hour and minute, the picker automatically closes.')),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"coarseMinutes"),Object(r.c)("span",{className:"accepts"},"number"),"(default: ",Object(r.c)("code",{className:"default"},"5"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"When roughly tapping minutes (ie: not dragging the cursor), rounds selected number to increments (eg, tapping on 23 will round to 25). Is especially useful for mobile. Set to 1 if you wish to avoid this feature.")),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"forceCoarseMinutes"),Object(r.c)("span",{className:"accepts"},"boolean"),"(default:"," ",Object(r.c)("code",{className:"default"},"false"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"Forces minutes to always round to ",Object(r.c)(o.b,{inline:!0},"coarseMinutes")," value - even when dragging clockhand.")),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"onDoneClick"),Object(r.c)("span",{className:"accepts"},"(TimeOutput, Event) => void"),"(default:"," ",Object(r.c)("code",{className:"default"},"null"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,'Displays the "Done" button and calls function when button is clicked. Useful for triggering some action on the parent component, like closing the timepicker.')),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"doneButton"),Object(r.c)("span",{className:"accepts"},"(TimeOutput) => React.ReactNode => void"),"(default: ",Object(r.c)("code",{className:"default"},"null"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"Custom done button as render props. See below for example.")))}(s=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&s.register(c,"Intro","/Users/catalin_covic/development/git/react-timekeeper/docs/js/sections/api.tsx"),(l=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&l(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return p});var a,r,i,o=n(11),s=n.n(o),l=n(0),c=n(2),d=n(16),_=n(7),u=n(5);function p(){var e=Object(c.useState)("12:34pm"),t=s()(e,2),n=t[0],a=t[1],r=Object(c.useState)("12:34pm"),i=s()(r,2),o=i[0],p=i[1],m=Object(c.useState)(!0),g=s()(m,2),E=g[0],S=g[1],f=Object(c.useState)("12:45pm"),b=s()(f,2),T=b[0],C=b[1];return Object(l.c)("section",{className:"examples docs-section",id:"examples"},Object(l.c)("h2",null,"Examples"),Object(l.c)("div",{className:"examples__item"},Object(l.c)(_.a,null,"Basic example demonstrating passing in ",Object(l.c)("code",null,"time")," and updating time on parent component via ",Object(l.c)("code",null,"onChange")," function."),Object(l.c)("div",{className:"examples__example-1"},Object(l.c)("div",{className:"examples__example-1-timekeeper-wrapper"},Object(l.c)(d.a,{time:n,onChange:function(e){return a(e.formatted12)}})),Object(l.c)("span",{className:"examples__example-1-time"},"Time is ",n)),Object(l.c)(u.b,{type:u.a.js},"import React from 'react';\nimport TimeKeeper from 'react-timekeeper';\n\nfunction YourComponent(){\n\tconst [time, setTime] = useState('12:34pm')\n\t\n\treturn (\n\t\t
\n\t\t\t setTime(data.formatted12)}\n\t\t\t/>\n\t\t\tTime is {time}\n\t\t
\n\t)\n}")),Object(l.c)("div",{className:"examples__item"},Object(l.c)(_.a,null,'Change unit to minutes after selecting hour, and close time picker on clicking "done" button.'),Object(l.c)("div",{className:"examples__example-2"},E&&Object(l.c)("div",{className:"examples__example-2-timekeeper-wrapper"},Object(l.c)(d.a,{time:o,onChange:function(e){return p(e.formatted12)},onDoneClick:function(){return S(!1)},switchToMinuteOnHourSelect:!0})),Object(l.c)("span",{className:"examples__example-2-time"},"Time is ",o,!E&&Object(l.c)("span",{className:"examples__example-2-open",onClick:function(){return S(!0)}},"Open"))),Object(l.c)(u.b,{type:u.a.js},"import React from 'react';\nimport TimeKeeper from 'react-timekeeper';\n\nfunction YourComponent(){\n\tconst [time, setTime] = useState('12:34pm')\n\tconst [showTime, setShowTime] = useState(true)\n\n\treturn (\n\t\t
\n\t\t\t{showTime &&\n\t\t\t\t setTime(data.formatted12)}\n\t\t\t\t\tonDoneClick={() => setShowTime(false)}\n\t\t\t\t\tswitchToMinuteOnHourSelect\n\t\t\t\t/>\n\t\t\t}\n\t\t\tTime is {time}\n\t\t\t{!showTime &&\n\t\t\t\t\n\t\t\t}\n\t\t
\n\t)\n\n}")),Object(l.c)("div",{className:"examples__item"},Object(l.c)(_.a,null,"Force 15 minute only increments."),Object(l.c)("div",{className:"examples__example-3"},Object(l.c)("div",{className:"examples__example-3-timekeeper-wrapper"},Object(l.c)(d.a,{time:T,onChange:function(e){return C(e.formatted12)},forceCoarseMinutes:!0,coarseMinutes:15})),Object(l.c)("span",{className:"examples__example-1-time"},"Time is ",T)),Object(l.c)(u.b,{type:u.a.js},"import React from 'react';\nimport TimeKeeper from 'react-timekeeper';\n\nfunction YourComponent(){\n\tconst [time, setTime] = useState('12:34pm')\n\t\n\treturn (\n\t\t
\n\t\t\t setTime(data.formatted12)}\n\t\t\t\tcoarseMinutes={15}\n\t\t\t\tforceCoarseMinutes\n\t\t\t/>\n\t\t\tTime is {time}\n\t\t
\n\t)\n\t\t\n}")),Object(l.c)("div",{className:"examples__item"},Object(l.c)(_.a,null,"24 hour mode and force 15 minute only increments."),Object(l.c)("div",{className:"examples__example-3"},Object(l.c)("div",{className:"examples__example-3-timekeeper-wrapper"},Object(l.c)(d.a,{time:T,onChange:function(e){return C(e.formatted12)},switchToMinuteOnHourSelect:!0,hour24Mode:!0,forceCoarseMinutes:!0,coarseMinutes:15})),Object(l.c)("span",{className:"examples__example-1-time"},"Time is ",T)),Object(l.c)(u.b,{type:u.a.js},"import React from 'react';\nimport TimeKeeper from 'react-timekeeper';\n\nfunction YourComponent(){\n\tconst [time, setTime] = useState('12:34pm')\n\t\n\treturn (\n\t\t
\n\t\t\t setTime(data.formatted12)}\n\t\t\t\thour24Mode\n\t\t\t\tcoarseMinutes={15}\n\t\t\t\tforceCoarseMinutes\n\t\t\t/>\n\t\t\tTime is {time}\n\t\t
\n\t)\n\t\t\n}")))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(p,"useState{[time1, setTime1]('12:34pm')}\nuseState{[time2, setTime2]('12:34pm')}\nuseState{[displayExample2, setDisplayExample2](true)}\nuseState{[time3, setTime3]('12:45pm')}"),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&r.register(p,"Examples","/Users/catalin_covic/development/git/react-timekeeper/docs/js/sections/examples.tsx"),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return c});var a,r=n(0),i=(n(2),n(7)),o=n(5);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);var s,l;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function c(){return Object(r.c)("section",{className:"docs-section"},Object(r.c)("h2",null,"Custom styles"),Object(r.c)("div",{className:"examples__item"},Object(r.c)(i.a,null,"For changing colors, each element has a class name you can override properties with 1 level of specifity."),Object(r.c)(o.b,{type:o.a.css},"// won't work because emotion will override your styles\n.react-timekeeper__clock-wrapper {\n\tbackground: red;\n}\n\n// will work since your specificty is higher\n.some-wrapper .react-timekeeper__clock-wrapper {\n\tbackground: red;\n}")))}(s=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&s.register(c,"Other","/Users/catalin_covic/development/git/react-timekeeper/docs/js/sections/other.tsx"),(l=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&l(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";n.r(t);var a=n(0),r=(n(2),n(38)),i=n.n(r),o=n(39);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;i.a.render(Object(a.c)(o.a,null),document.getElementById("root"))},function(e,t,n){"use strict"; +*/var a=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:l}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{begin://,subLanguage:"xml",contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{begin:/<[A-Za-z0-9\\._:-]+/,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:l}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},function(e,t){e.exports=function(e){var t={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},n={className:"number",begin:"#[0-9A-Fa-f]+"};e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE;return{case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{className:"attribute",begin:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[t,n,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@",end:"[{;]",keywords:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",contains:[t,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n,e.CSS_NUMBER_MODE,{begin:"\\s[A-Za-z0-9_.-]+",relevance:0}]}]}}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(63)},function(e,t,n){"use strict";(function(e){var a,r=n(0),i=n(2),o=n.n(i),s=n(1),l=(n(67),n(29)),c=n.n(l),d=(n(36),n(37),n(252),n(41)),_=n(57),u=n(58),p=n(59),m=n(60);function g(){return Object(i.useLayoutEffect)(function(){c.a.configure({tabReplace:" "}),c.a.initHighlightingOnLoad()},[]),Object(r.c)(o.a.Fragment,null,Object(r.c)(d.a,null),Object(r.c)(_.a,null),Object(r.c)(u.a,null),Object(r.c)(p.a,null),Object(r.c)(m.a,null))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(g,"useLayoutEffect{}");var E,S,f=Object(s.hot)(e)(g);t.a=f,(E=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(E.register(g,"Content","/Users/catalin_covic/development/git/react-timekeeper/docs/js/content.tsx"),E.register(f,"default","/Users/catalin_covic/development/git/react-timekeeper/docs/js/content.tsx")),(S=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&S(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return p});var a,r,i,o=n(10),s=n.n(o),l=n(0),c=n(2),d=n(16),_=n(33),u=n(17);function p(){var e=Object(c.useState)(!0),t=s()(e,2),n=t[0],a=t[1],r=Object(c.useState)(function(){var e=new Date,t=e.getHours()%12,n=0===t?12:t,a=("0"+e.getMinutes()).slice(-2),r=e.getHours()>12?"PM":"AM";return"".concat(n,":").concat(a," ").concat(r)}),i=s()(r,2),o=i[0],p=i[1],m=Object(c.useCallback)(function(e){p(e.formatted12)},[]);return Object(l.c)("section",{className:"intro-demo"},Object(l.c)("h1",null,"React Timekeeper"),Object(l.c)("p",{className:"intro-description"},"Time picker based on the style of the"," ",Object(l.c)(u.a,{href:"https://play.google.com/store/apps/details?id=com.google.android.keep"},"Android Google Keep")," ","app"),Object(l.c)("div",{className:"action-buttons"},Object(l.c)(u.a,{href:"https://github.com/catc/react-timekeeper",samePage:!0},Object(l.c)(_.a,null)," Source"),Object(l.c)(u.a,{href:"#examples",samePage:!0},Object(l.c)(_.b,null)," Examples")),Object(l.c)("div",{className:"intro-demo-wrapper"},Object(l.c)("div",{className:"intro-demo-picker"},n&&Object(l.c)("div",{className:"intro-demo-picker__wrapper"},Object(l.c)(d.a,{time:o,onChange:m,switchToMinuteOnHourSelect:!0,onDoneClick:function(){return a(!1)}}))),Object(l.c)("span",{onClick:function(){return a(!0)},className:"selected-demo-time"},"The time is currently ",Object(l.c)("strong",null,o),!n&&Object(l.c)("span",{className:"selected-demo-time__hint"},"Click to open"))))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(p,"useState{[isVisible, setVisibility](true)}\nuseState{[time, setTime](() => {\n\t\tconst date = new Date()\n\n\t\tconst h = date.getHours() % 12\n\t\tconst hour = h === 0 ? 12 : h\n\t\tconst min = ('0' + date.getMinutes()).slice(-2)\n\t\tconst meridiem = date.getHours() > 12 ? 'PM' : 'AM'\n\t\tconst dateString = `${hour}:${min} ${meridiem}`\n\t\treturn dateString\n\t})}\nuseCallback{updateTime}"),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&r.register(p,"Intro","/Users/catalin_covic/development/git/react-timekeeper/docs/js/sections/intro.tsx"),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return d});var a,r=n(0),i=(n(2),n(43)),o=n(8),s=n(9);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);var l,c;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function d(e){var t=e.time,n=e.onChange,a=e.coarseMinutes,l=e.forceCoarseMinutes,c=e.switchToMinuteOnHourSelect,d=e.closeOnMinuteSelect,_=e.hour24Mode,u=e.onDoneClick,p=e.doneButton;return Object(r.c)(o.a,{coarseMinutes:a,forceCoarseMinutes:l,switchToMinuteOnHourSelect:c,closeOnMinuteSelect:d,hour24Mode:_,onDoneClick:u,doneButton:p},Object(r.c)(s.a,{onChange:n,time:t},Object(r.c)(i.a,null)))}(l=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&l.register(d,"TimepickerWithConfig","/Users/catalin_covic/development/git/react-timekeeper/src/components/TimeKeeperWrapper.tsx"),(c=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&c(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return m});var a,r=n(0),i=n(2),o=n.n(i),s=n(44),l=n(45),c=n(46),d=n(49),_=n(55);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);var u,p;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function m(){return Object(r.c)(o.a.Fragment,null,Object(r.c)(r.a,{styles:Object(r.b)(s.a,"label:TimeKeeper;")}),Object(r.c)("div",{className:"react-timekeeper",css:l.a},Object(r.c)(c.a,null),Object(r.c)(d.a,null),Object(r.c)(_.a,null)))}(u=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&u.register(m,"TimeKeeper","/Users/catalin_covic/development/git/react-timekeeper/src/components/TimeKeeper.tsx"),(p=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&p(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){var a;(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var r,i,o="\n\t.react-timekeeper-button-reset {\n\t\tbackground: 0;\n\t\tborder: 0;\n\t\tbox-shadow: none;\n\t\ttext-shadow: none;\n\t\t-webkit-appearance: none;\n\t\t-moz-appearance: none;\n\t\tcursor: pointer;\n\t}\n\t.react-timekeeper-button-reset:hover, .react-timekeeper-button-reset:focus, .react-timekeeper-button-reset:active {\n\t\toutline: none;\n\t}\n\t.react-timekeeper-button-reset::-moz-focus-inner {\n\t\tborder: 0;\n\t\tpadding: 0;\n\t}\n\t.react-timekeeper-noscroll {\n\t\toverflow: hidden;\n\t}\n\t.react-timekeeper-scrollbar-measure {\n\t\twidth: 100px;\n\t\theight: 100px;\n\t\toverflow: scroll;\n\t\tposition: absolute;\n\t\ttop: -9999px;\n\t}\n",s=o;t.a=s,(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(r.register(o,"style","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/global.ts"),r.register(s,"default","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/global.ts")),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){var a;n(0);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var r,i,o={name:"18m1yfy-timepicker",styles:"-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;font-smoothing:antialiased;font-family:'Roboto',sans-serif;background:white;border-radius:3px;display:inline-block;box-shadow:0 3px 11px rgba(0,0,0,0.1),0 3px 6px rgba(0,0,0,0.15);width:260px;position:relative;user-select:none;label:timepicker;"},s=o;t.a=s,(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(r.register(o,"timepicker","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/main.ts"),r.register(s,"default","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/main.ts")),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return S});var a,r,i,o=n(20),s=n(10),l=n.n(s),c=n(0),d=n(2),_=n(30),u=n(9),p=n(8),m=n(14),g=n(3),E=n(6);function S(){var e=Object(p.b)().hour24Mode,t=Object(u.b)(),n=t.mode,a=t.time,r=t.updateMeridiem,i=t.setMode,s=Object(d.useState)(null),S=l()(s,2),f=S[0],b=S[1];function T(e){var t=n===g.j.MINUTES?"minute":"hour";if(e===t)b(t);else{var a=n===g.j.MINUTES?g.j.HOURS_24:g.j.MINUTES;i(a)}}var C=e?a.hour:a.hour%12==0?12:a.hour%12,v=a.hour>=12?g.h.pm:g.h.am;var R=Object(E.b)(n),N=("0"+a.minute).slice(-2),h=function(){return b(null)};return Object(c.c)("div",{css:m.f(e),className:"react-timekeeper__top-bar"},Object(c.c)("div",{css:m.b(e),className:"react-timekeeper__tb-minute-wrapper"},Object(c.c)("span",{css:Object(o.a)([m.e(R)],"label:TopBar;"),onClick:function(){return T("hour")},"data-type":"hour",className:"react-timekeeper__tb-hour"},C),"hour"===f&&Object(c.c)(_.a,{close:h})),Object(c.c)("span",{css:m.a,className:"react-timekeeper__tb-colon"},":"),Object(c.c)("div",{css:m.d(e),className:"react-timekeeper__tb-hour-wrapper"},Object(c.c)("span",{css:m.e(!R),onClick:function(){return T("minute")},"data-type":"minute",className:"react-timekeeper__tb-minute"},N),"minute"===f&&Object(c.c)(_.a,{close:h})),!e&&Object(c.c)("button",{name:"meridiem",type:"button",onClick:function(){var e=v===g.h.am?g.h.pm:g.h.am;r(e)},css:m.c,className:"react-timekeeper-button-reset react-timekeeper__tb-meridiem"},v))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(S,"useConfig{{ hour24Mode }}\nuseTimekeeperState{{ mode, time, updateMeridiem, setMode }}\nuseState{[open, setOpen](null)}",function(){return[p.b,u.b]}),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&r.register(S,"TopBar","/Users/catalin_covic/development/git/react-timekeeper/src/components/TopBar.tsx"),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){(function(t){var n="Expected a function",a=NaN,r="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,d="object"==typeof t&&t&&t.Object===Object&&t,_="object"==typeof self&&self&&self.Object===Object&&self,u=d||_||Function("return this")(),p=Object.prototype.toString,m=Math.max,g=Math.min,E=function(){return u.Date.now()};function S(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function f(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==r}(e))return a;if(S(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=S(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):o.test(e)?a:+e}e.exports=function(e,t,a){var r,i,o,s,l,c,d=0,_=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=r,a=i;return r=i=void 0,d=t,s=e.apply(a,n)}function T(e){var n=e-c;return void 0===c||n>=t||n<0||u&&e-d>=o}function C(){var e=E();if(T(e))return v(e);l=setTimeout(C,function(e){var n=t-(e-c);return u?g(n,o-(e-d)):n}(e))}function v(e){return l=void 0,p&&r?b(e):(r=i=void 0,s)}function R(){var e=E(),n=T(e);if(r=arguments,i=this,c=e,n){if(void 0===l)return function(e){return d=e,l=setTimeout(C,t),_?b(e):s}(c);if(u)return l=setTimeout(C,t),b(c)}return void 0===l&&(l=setTimeout(C,t)),s}return t=f(t)||0,S(a)&&(_=!!a.leading,o=(u="maxWait"in a)?m(f(a.maxWait)||0,t):o,p="trailing"in a?!!a.trailing:p),R.cancel=function(){void 0!==l&&clearTimeout(l),d=0,r=c=i=l=void 0},R.flush=function(){return void 0===l?s:v(E())},R}}).call(this,n(35))},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=a=function(e){return n(e)}:e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},a(t)}e.exports=a},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return f});var a,r,i,o=n(25),s=n.n(o),l=n(0),c=n(2),d=n(8),_=n(50),u=n(53),p=n(54),m=n(32),g=n(3),E=n(6),S=n(9);function f(){var e=Object(d.b)(),t=Object(c.useRef)(null),n=Object(m.a)(t,function(t,n){var a=n.canAutoChangeUnit,s=void 0!==a&&a,l=n.wasTapped,c=void 0!==l&&l,d=n.isInnerClick,_=void 0!==d&&d,u=g.c[r].increments,p=1;Object(E.c)(r)&&(c||e.forceCoarseMinutes)&&(p=e.coarseMinutes);var m=t/360*u,S=Math.round(m/p)*p;r===g.j.HOURS_24&&e.hour24Mode&&(_||0===S?_&&0===S&&(S+=12):S+=12);i(S),s&&(e.switchToMinuteOnHourSelect&&Object(E.b)(r)?o(g.j.MINUTES):e.closeOnMinuteSelect&&Object(E.c)(r)&&e.onDoneClick&&e.onDoneClick(f()))}).bind,a=Object(S.b)(),r=a.mode,i=a.updateTime,o=a.setMode,f=a.getComposedTime;return Object(l.c)("div",s()({},n,{className:"react-timekeeper__clock-wrapper",css:p.a}),Object(l.c)(_.a,{clockEl:t}),!e.hour24Mode&&Object(l.c)(u.a,null))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(f,"useConfig{config}\nuseRef{clock}\nuseClockEvents{{ bind }}\nuseTimekeeperState{{ mode, updateTime, setMode, getComposedTime }}",function(){return[d.b,m.a,S.b]}),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&r.register(f,"ClockWrapper","/Users/catalin_covic/development/git/react-timekeeper/src/components/ClockWrapper.tsx"),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return f});var a,r,i,o=n(0),s=n(2),l=n(11),c=n(51),d=n(31),_=n(3),u=n(6),p=n(52),m=n(8),g=n(9);function E(e){return Object(u.b)(e)?_.d:_.e}function S(e){return Object(u.c)(e)?_.d:_.e}function f(e){var t=e.clockEl,n=Object(s.useRef)(!0),a=Object(m.b)().hour24Mode,r=Object(g.b)(),i=r.mode,f=r.time,b=Object(l.c)(i,null,{unique:!0,from:!n.current&&{opacity:0,translate:S(i),translateInner:_.f.exit},enter:{opacity:1,translate:Object(_.r)(i),translateInner:_.f.enter},leave:{opacity:0,translate:E(i),translateInner:_.f.exit}});return Object(s.useEffect)(function(){n.current=!1},[]),Object(o.c)("div",{className:"react-timekeeper__clock",css:p.a,ref:t},b.map(function(e){var t=e.item,n=e.key,r=e.props;return t?Object(u.c)(t)?Object(o.c)(d.b,{anim:r,key:n}):Object(o.c)(d.a,{anim:r,key:n,mode:t,hour24Mode:a}):null}),Object(o.c)(c.a,{time:f,mode:i}))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(f,"useRef{firstTime}\nuseConfig{{ hour24Mode }}\nuseTimekeeperState{{ mode, time }}\nuseTransition{transitions}\nuseEffect{}",function(){return[m.b,g.b,l.c]}),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(r.register(E,"exitPosition","/Users/catalin_covic/development/git/react-timekeeper/src/components/Clock.tsx"),r.register(S,"initialPosition","/Users/catalin_covic/development/git/react-timekeeper/src/components/Clock.tsx"),r.register(f,"ClockWrapper","/Users/catalin_covic/development/git/react-timekeeper/src/components/Clock.tsx")),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return S});var a,r,i,o=n(10),s=n.n(o),l=n(0),c=n(2),d=n(11),_=n(6),u=n(3),p=n(13),m=n(12);function g(e){return"rotate(".concat(e," ").concat(u.a," ").concat(u.a,")")}function E(e,t){var n=u.c[e].increments;return Object(_.a)(e,t)*(360/n)}function S(e){var t=e.mode,n=e.time,a=Object(c.useRef)({time:n,mode:t}),r=Object(c.useRef)(0),i=n.hour>0&&n.hour<=12,o=Object(u.p)(t,i),S=Object(u.n)(t,i),f=Object(u.o)(t,i),b=Object(d.b)(function(){return{immediate:!0,rotation:E(t,n),length:o,position:S}}),T=s()(b,2),C=T[0],v=T[1],R=C.rotation,N=C.length,h=C.position;Object(c.useEffect)(function(){var e=R.value,i=E(t,n);if(a.current.mode!==t){r.current=0,a.current.mode=t;var s=Object(m.a)(e,i);v({immediate:!1,rotation:s,length:o,position:S})}else Object(_.d)(a.current.time,n)||(a.current.time=n,r.current++,v({immediate:!0,rotation:i,length:o,position:S}))},[S,o,t,R,v,n]);var O,y=Object(_.a)(t,n);return t===u.j.MINUTES&&y%5&&(O=Object(l.c)("circle",{cx:u.a,cy:u.k,r:4,fill:p.c,className:"react-timekeeper__hand-intermediate-circle"})),Object(l.c)("svg",{width:u.b,height:u.b,viewBox:"0 0 ".concat(u.b," ").concat(u.b),xmlns:"http://www.w3.org/2000/svg",className:"react-timekeeper__clock-hand"},Object(l.c)(d.a.g,{transform:R.interpolate(function(e){return g(e)})},Object(l.c)(d.a.line,{stroke:p.a,x1:u.a,y1:u.a,x2:u.a,y2:N,strokeWidth:"1",className:"react-timekeeper__clock-hand"}),Object(l.c)("circle",{cx:u.a,cy:u.a,r:1.5,fill:p.a,className:"react-timekeeper__hand-circle-center"}),Object(l.c)(d.a.circle,{fill:p.b,cx:u.a,cy:h,r:f,className:"react-timekeeper__hand-circle-outer"}),O))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(S,"useRef{prevState}\nuseRef{dragCount}\nuseSpring{[anim, setAnim]}\nuseEffect{}",function(){return[d.b]}),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(r.register(g,"rotate","/Users/catalin_covic/development/git/react-timekeeper/src/components/ClockHand.tsx"),r.register(E,"getAngle","/Users/catalin_covic/development/git/react-timekeeper/src/components/ClockHand.tsx"),r.register(S,"ClockHand","/Users/catalin_covic/development/git/react-timekeeper/src/components/ClockHand.tsx")),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){var a,r=n(0),i=n(3);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,s,l=Object(r.b)("display:inline-block;border-radius:200px;background:white;width:",i.b,"px;height:",i.b,"px;position:relative;cursor:pointer;touch-action:none;label:styles;"),c=l;t.a=c,(o=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(o.register(l,"styles","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/clock.ts"),o.register(c,"default","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/clock.ts")),(s=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&s(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var a,r,i,o=n(0),s=n(2),l=n(27),c=n(9),d=n(3);function _(){var e=Object(c.b)(),t=e.time,n=e.updateMeridiem,a=Object(s.useCallback)(function(){n(d.h.am)},[n]),r=Object(s.useCallback)(function(){n(d.h.pm)},[n]),i=t.hour>=12;return Object(o.c)("div",{css:l.b},Object(o.c)("button",{type:"button",css:Object(l.a)({isSelected:!i}),className:"react-timekeeper-button-reset react-timekeeper__meridiem-toggle",onClick:a},"AM"),Object(o.c)("button",{type:"button",css:Object(l.a)({isRight:!0,isSelected:i}),className:"react-timekeeper-button-reset react-timekeeper__meridiem-toggle",onClick:r},"PM"))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(_,"useTimekeeperState{{ time, updateMeridiem }}\nuseCallback{setAM}\nuseCallback{setPM}",function(){return[c.b]}),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&r.register(_,"Meridiems","/Users/catalin_covic/development/git/react-timekeeper/src/components/Meridiems.tsx"),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){var a,r=n(0),i=n(13);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,s,l=Object(r.b)("text-align:center;padding:18px 0 14px;background:",i.d,";label:style;"),c=l;t.a=c,(o=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(o.register(l,"style","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/clock-wrapper.ts"),o.register(c,"default","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/clock-wrapper.ts")),(s=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&s(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return d});var a,r,i,o=n(0),s=(n(2),n(8)),l=n(56),c=n(9);function d(){var e=Object(s.b)(),t=e.onDoneClick,n=e.doneButton,a=Object(c.b)().getComposedTime;return n?n(a()):t?Object(o.c)("span",{css:l.a,onClick:function(e){return t(a(),e)},className:"react-timekeeper__done-button"},"Done"):null}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(d,"useConfig{{ onDoneClick, doneButton }}\nuseTimekeeperState{{ getComposedTime }}",function(){return[s.b,c.b]}),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&r.register(d,"DoneButton","/Users/catalin_covic/development/git/react-timekeeper/src/components/DoneButton.tsx"),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){var a,r=n(0),i=n(13);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,s,l=Object(r.b)("background:",i.d,";display:block;color:","#686868",";text-transform:uppercase;border-top:1px solid ","#CCC",";text-align:center;cursor:pointer;padding:16px 0;font-size:13px;letter-spacing:0.5px;line-height:normal;font-weight:500;label:doneButton;"),c=l;t.a=c,(o=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&(o.register("#686868","DONE_BUTTON_COLOR","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/done-button.ts"),o.register("#CCC","DONE_BUTTON_BORDER_COLOR","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/done-button.ts"),o.register(l,"doneButton","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/done-button.ts"),o.register(c,"default","/Users/catalin_covic/development/git/react-timekeeper/src/components/styles/done-button.ts")),(s=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&s(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return d});var a,r=n(0),i=(n(2),n(17)),o=n(7),s=n(5);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);var l,c;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function d(){return Object(r.c)("section",{className:"installation docs-section",id:"docs"},Object(r.c)("h2",null,"Installation and Usage"),Object(r.c)(o.a,null,"Install ",Object(r.c)(s.b,{inline:!0},"react-timekeeper")," via npm."),Object(r.c)(s.b,null,"npm install --save react-timekeeper"),Object(r.c)(o.a,null,"The latest version of timekeeper (v2+) requires"," ",Object(r.c)(i.a,{href:"https://reactjs.org/blog/2019/02/06/react-v16.8.0.html"},"react hooks (v16.8)"),". If you're using an older version of react, install timekeeper v1 via:"),Object(r.c)(s.b,null,"npm install --save react-timekeeper@^1.0.0"),Object(r.c)(o.a,null,"Usage is simple: just import the library javascript and use it in the render function. No external css imports are required since all styles are inlined using"," ",Object(r.c)(i.a,{href:"https://github.com/emotion-js/emotion"},"emotion"),"."),Object(r.c)(s.b,{type:s.a.js},"import React from 'react';\nimport TimeKeeper from 'react-timekeeper';\n\nfunction MyComponent {\n\treturn (\n\t\t
\n\t\t\t;\n\t\t
\t\n\t)\n}"))}(l=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&l.register(d,"Intro","/Users/catalin_covic/development/git/react-timekeeper/docs/js/sections/installation.tsx"),(c=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&c(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return c});var a,r=n(0),i=(n(2),n(7)),o=n(5);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);var s,l;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function c(){return Object(r.c)("section",{className:"api docs-section",id:"api"},Object(r.c)("h2",null,"API"),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"time"),Object(r.c)("span",{className:"accepts"},"TimeInput"),"(default:"," ",Object(r.c)("code",{className:"default"},"null"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"Time to set on component. Accepts time in 4 formats:"),Object(r.c)(o.b,{type:o.a.js},"// TimeInput\n\t\t\t\n// string with meridiem\n'4:55 pm'\n'4:55pm'\n\n// string without meridiem (assumes a 24 hour format)\n'16:55'\n\n// object with meridiem\n{\n\thour: 4,\n\tminute: 55,\n\tmeridiem: 'pm'\n}\n\n// object without meridiem (assumes a 24 hour format)\n{\n\thour: 16,\n\tminute: 55\n}")),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"onChange"),Object(r.c)("span",{className:"accepts"},"(TimeOutput) => void"),"(default:"," ",Object(r.c)("code",{className:"default"},"null"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"Pass a function to be called when time is changed. Used to store time state in parent component. Function called returns object with updated time."),Object(r.c)(o.b,{type:o.a.js},"// TimeOutput\n{\n\tformatted24: '16:55', // 24 hour format\n\tformatted12: '4:55 pm', // 12 hour mode\n\tformattedSimple: '4:55', // similar to formatted (12h), but no meridiem\n\thour: 16, // 24 hour\n\thour12: 4,\n\tminute: 55,\n\tmeridiem: 'pm'\t\t\t\t\n}")),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"hour24Mode"),Object(r.c)("span",{className:"accepts"},"boolean"),"(default:"," ",Object(r.c)("code",{className:"default"},"false"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"Set hour mode to 24 hours")),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"switchToMinuteOnHourSelect"),Object(r.c)("span",{className:"accepts"},"boolean"),"(default:"," ",Object(r.c)("code",{className:"default"},"false"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"Changes clock unit from hour to minute after selecting an hour. Exists mainly to provides a better user experience.")),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"closeOnMinuteSelect"),Object(r.c)("span",{className:"accepts"},"boolean"),"(default:"," ",Object(r.c)("code",{className:"default"},"false"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,'Whether or not to trigger "Done" button click when the user selects minutes. Similar to Google Keep functionality, where once the selects hour and minute, the picker automatically closes.')),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"coarseMinutes"),Object(r.c)("span",{className:"accepts"},"number"),"(default: ",Object(r.c)("code",{className:"default"},"5"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"When roughly tapping minutes (ie: not dragging the cursor), rounds selected number to increments (eg, tapping on 23 will round to 25). Is especially useful for mobile. Set to 1 if you wish to avoid this feature.")),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"forceCoarseMinutes"),Object(r.c)("span",{className:"accepts"},"boolean"),"(default:"," ",Object(r.c)("code",{className:"default"},"false"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"Forces minutes to always round to ",Object(r.c)(o.b,{inline:!0},"coarseMinutes")," value - even when dragging clockhand.")),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"onDoneClick"),Object(r.c)("span",{className:"accepts"},"(TimeOutput, Event) => void"),"(default:"," ",Object(r.c)("code",{className:"default"},"null"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,'Displays the "Done" button and calls function when button is clicked. Useful for triggering some action on the parent component, like closing the timepicker.')),Object(r.c)("h3",{className:"h3-api"},Object(r.c)("code",{className:"name"},"doneButton"),Object(r.c)("span",{className:"accepts"},"(TimeOutput) => React.ReactNode"),"(default:"," ",Object(r.c)("code",{className:"default"},"null"),")"),Object(r.c)("div",{className:"api__description"},Object(r.c)(i.a,null,"Custom done button as render props. See below for example.")))}(s=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&s.register(c,"Intro","/Users/catalin_covic/development/git/react-timekeeper/docs/js/sections/api.tsx"),(l=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&l(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return p});var a,r,i,o=n(10),s=n.n(o),l=n(0),c=n(2),d=n(16),_=n(7),u=n(5);function p(){var e=Object(c.useState)("12:34pm"),t=s()(e,2),n=t[0],a=t[1],r=Object(c.useState)("12:34pm"),i=s()(r,2),o=i[0],p=i[1],m=Object(c.useState)(!0),g=s()(m,2),E=g[0],S=g[1],f=Object(c.useState)("12:45pm"),b=s()(f,2),T=b[0],C=b[1],v=Object(c.useState)("12:45pm"),R=s()(v,2),N=R[0],h=R[1];return Object(l.c)("section",{className:"examples docs-section",id:"examples"},Object(l.c)("h2",null,"Examples"),Object(l.c)("div",{className:"examples__item"},Object(l.c)(_.a,null,"Basic example demonstrating passing in ",Object(l.c)("code",null,"time")," and updating time on parent component via ",Object(l.c)("code",null,"onChange")," function."),Object(l.c)("div",{className:"examples__example-1"},Object(l.c)("div",{className:"examples__example-1-timekeeper-wrapper"},Object(l.c)(d.a,{time:n,onChange:function(e){return a(e.formatted12)}})),Object(l.c)("span",{className:"examples__example-1-time"},"Time is ",n)),Object(l.c)(u.b,{type:u.a.js},"import React from 'react';\nimport TimeKeeper from 'react-timekeeper';\n\nfunction YourComponent(){\n\tconst [time, setTime] = useState('12:34pm')\n\t\n\treturn (\n\t\t
\n\t\t\t setTime(newTime.formatted12)}\n\t\t\t/>\n\t\t\tTime is {time}\n\t\t
\n\t)\n}")),Object(l.c)("div",{className:"examples__item"},Object(l.c)(_.a,null,'Change unit to minutes after selecting hour, and close time picker on clicking "done" button.'),Object(l.c)("div",{className:"examples__example-2"},E&&Object(l.c)("div",{className:"examples__example-2-timekeeper-wrapper"},Object(l.c)(d.a,{time:o,onChange:function(e){return p(e.formatted12)},onDoneClick:function(){return S(!1)},switchToMinuteOnHourSelect:!0})),Object(l.c)("span",{className:"examples__example-2-time"},"Time is ",o,!E&&Object(l.c)("span",{className:"examples__example-2-open",onClick:function(){return S(!0)}},"Open"))),Object(l.c)(u.b,{type:u.a.js},"import React from 'react';\nimport TimeKeeper from 'react-timekeeper';\n\nfunction YourComponent(){\n\tconst [time, setTime] = useState('12:34pm')\n\tconst [showTime, setShowTime] = useState(true)\n\n\treturn (\n\t\t
\n\t\t\t{showTime &&\n\t\t\t\t setTime(newTime.formatted12)}\n\t\t\t\t\tonDoneClick={() => setShowTime(false)}\n\t\t\t\t\tswitchToMinuteOnHourSelect\n\t\t\t\t/>\n\t\t\t}\n\t\t\tTime is {time}\n\t\t\t{!showTime &&\n\t\t\t\t\n\t\t\t}\n\t\t
\n\t)\n\n}")),Object(l.c)("div",{className:"examples__item"},Object(l.c)(_.a,null,"24 hour mode and force 15 minute only increments."),Object(l.c)("div",{className:"examples__example-3"},Object(l.c)("div",{className:"examples__example-3-timekeeper-wrapper"},Object(l.c)(d.a,{time:T,onChange:function(e){return C(e.formatted12)},switchToMinuteOnHourSelect:!0,hour24Mode:!0,forceCoarseMinutes:!0,coarseMinutes:15})),Object(l.c)("span",{className:"examples__example-1-time"},"Time is ",T)),Object(l.c)(u.b,{type:u.a.js},"import React from 'react';\nimport TimeKeeper from 'react-timekeeper';\n\nfunction YourComponent(){\n\tconst [time, setTime] = useState('12:34pm')\n\t\n\treturn (\n\t\t
\n\t\t\t setTime(newTime.formatted12)}\n\t\t\t\thour24Mode\n\t\t\t\tcoarseMinutes={15}\n\t\t\t\tforceCoarseMinutes\n\t\t\t/>\n\t\t\tTime is {time}\n\t\t
\n\t)\n\t\t\n}")),Object(l.c)("div",{className:"examples__item"},Object(l.c)(_.a,null,"Custom done button"),Object(l.c)("div",{className:"examples__example-3"},Object(l.c)("div",{className:"examples__example-3-timekeeper-wrapper"},Object(l.c)(d.a,{time:N,onChange:function(e){return h(e.formatted12)},doneButton:function(e){return Object(l.c)("div",{style:{textAlign:"center",padding:"10px 0"},onClick:function(){return alert("new time is now",e.formatted12)}},"Close")}})),Object(l.c)("span",{className:"examples__example-1-time"},"Time is ",N)),Object(l.c)(u.b,{type:u.a.js},"import React from 'react';\nimport TimeKeeper from 'react-timekeeper';\n\nfunction YourComponent(){\n\tconst [time, setTime] = useState('12:34pm')\n\t\n\treturn (\n\t\t
\n\t\t\t setTime(newTime.formatted12)}\n\t\t\t\tdoneButton={(newTime) => (\n\t\t\t\t\t alert('new time is now', newTime.formatted12)}\n\t\t\t\t\t>\n\t\t\t\t\t\tClose\n\t\t\t\t\t
\n\t\t\t\t)}\n\t\t\t/>\n\t\t\tTime is {time}\n\t\t\n\t)\n\t\t\n}")))}(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(p,"useState{[time1, setTime1]('12:34pm')}\nuseState{[time2, setTime2]('12:34pm')}\nuseState{[displayExample2, setDisplayExample2](true)}\nuseState{[time3, setTime3]('12:45pm')}\nuseState{[time4, setTime4]('12:45pm')}"),(r=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&r.register(p,"Examples","/Users/catalin_covic/development/git/react-timekeeper/docs/js/sections/examples.tsx"),(i=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&i(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return c});var a,r=n(0),i=(n(2),n(7)),o=n(5);(a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).enterModule)&&a(e);var s,l;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function c(){return Object(r.c)("section",{className:"docs-section"},Object(r.c)("h2",null,"Custom styles"),Object(r.c)("div",{className:"examples__item"},Object(r.c)(i.a,null,"For changing colors, each element has a class name you can override properties with 1 level of specifity."),Object(r.c)(o.b,{type:o.a.css},"// won't work because emotion will override your styles\n.react-timekeeper__clock-wrapper {\n\tbackground: red;\n}\n\n// will work since your specificty is higher\n.some-wrapper .react-timekeeper__clock-wrapper {\n\tbackground: red;\n}")))}(s=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).default)&&s.register(c,"Other","/Users/catalin_covic/development/git/react-timekeeper/docs/js/sections/other.tsx"),(l=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(1)).leaveModule)&&l(e)}).call(this,n(4)(e))},function(e,t,n){"use strict";n.r(t);var a=n(0),r=(n(2),n(39)),i=n.n(r),o=n(40);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;i.a.render(Object(a.c)(o.a,null),document.getElementById("root"))},function(e,t,n){"use strict"; /** @license React v16.9.0 * react.production.min.js * @@ -11,7 +11,7 @@ object-assign * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var a=n(33),r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,_=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,E=r?Symbol.for("react.lazy"):60116;r&&Symbol.for("react.fundamental"),r&&Symbol.for("react.responder");var S="function"==typeof Symbol&&Symbol.iterator;function f(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,a=1;aw.length&&w.push(e)}function k(e,t,n){return null==e?0:function e(t,n,a,r){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case o:l=!0}}if(l)return a(r,t,""===n?"."+U(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;cw.length&&w.push(e)}function k(e,t,n){return null==e?0:function e(t,n,a,r){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case o:l=!0}}if(l)return a(r,t,""===n?"."+U(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;cthis.eventPool.length&&this.eventPool.push(e)}function _e(e){e.eventPool=[],e.getPooled=ce,e.release=de}r(le.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=oe)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=oe)},persist:function(){this.isPersistent=oe},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),le.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},le.extend=function(e){function t(){}function n(){return a.apply(this,arguments)}var a=this;t.prototype=a.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},a.Interface,e),n.extend=a.extend,_e(n),n},_e(le);var ue=le.extend({data:null}),pe=le.extend({data:null}),me=[9,13,27,32],ge=q&&"CompositionEvent"in window,Ee=null;q&&"documentMode"in document&&(Ee=document.documentMode);var Se=q&&"TextEvent"in window&&!Ee,fe=q&&(!ge||Ee&&8=Ee),be=String.fromCharCode(32),Te={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ce=!1;function ve(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Re(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ne=!1;var he={eventTypes:Te,extractEvents:function(e,t,n,a){var r=void 0,i=void 0;if(ge)e:{switch(e){case"compositionstart":r=Te.compositionStart;break e;case"compositionend":r=Te.compositionEnd;break e;case"compositionupdate":r=Te.compositionUpdate;break e}r=void 0}else Ne?ve(e,n)&&(r=Te.compositionEnd):"keydown"===e&&229===n.keyCode&&(r=Te.compositionStart);return r?(fe&&"ko"!==n.locale&&(Ne||r!==Te.compositionStart?r===Te.compositionEnd&&Ne&&(i=ie()):(ae="value"in(ne=a)?ne.value:ne.textContent,Ne=!0)),r=ue.getPooled(r,t,n,a),i?r.data=i:null!==(i=Re(n))&&(r.data=i),z(r),i=r):i=null,(e=Se?function(e,t){switch(e){case"compositionend":return Re(t);case"keypress":return 32!==t.which?null:(Ce=!0,be);case"textInput":return(e=t.data)===be&&Ce?null:e;default:return null}}(e,n):function(e,t){if(Ne)return"compositionend"===e||!ge&&ve(e,t)?(e=ie(),re=ae=ne=null,Ne=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1