(this["webpackJsonpgonzo-test-client"]=this["webpackJsonpgonzo-test-client"]||[]).push([[96],{MeEv:function(t,e,o){"use strict";var r=function(){function t(t,e){for(var o,r=0;r=+t?"0"+ +t:+t}},{key:"tick",value:function(){var t=this;+this.state.hours!==+this.state.stopHours||+this.state.minutes!==+this.state.stopMinutes||+this.state.seconds!==+this.state.stopSeconds||this.state.infinityTimer?59===+this.state.seconds&&59===+this.state.minutes?this.setState((function(e){return{hours:e.prefixZero?t.convertSingleToDoubleDigit(+e.hours+1):+e.hours+1,minutes:e.prefixZero?"00":0,seconds:e.prefixZero?"00":0}})):59===+this.state.seconds?this.setState((function(e){return{minutes:e.prefixZero?t.convertSingleToDoubleDigit(+e.minutes+1):+e.minutes+1,seconds:e.prefixZero?"00":0}})):this.setState((function(e){return{seconds:e.prefixZero?t.convertSingleToDoubleDigit(+e.seconds+1):+e.seconds+1}})):(clearInterval(this.interval),this.handleCallback())}},{key:"backwardTick",value:function(){var t=this;+this.state.hours!==+this.state.stopHours||+this.state.minutes!==+this.state.stopMinutes||+this.state.seconds!==+this.state.stopSeconds?0===+this.state.seconds&&0===+this.state.minutes?this.setState((function(e){return{hours:t.convertSingleToDoubleDigit(+e.hours-1),minutes:59,seconds:59}})):0===+this.state.seconds?this.setState((function(e){return{minutes:t.convertSingleToDoubleDigit(+e.minutes-1),seconds:59}})):this.setState((function(e){return{seconds:t.convertSingleToDoubleDigit(+e.seconds-1)}})):(clearInterval(this.interval),this.handleCallback())}},{key:"componentDidMount",value:function(){var t=this,e=this.state,o=e.stopHours,r=e.stopMinutes,n=e.stopSeconds,i=e.backward,s=e.seconds,l=e.hours,a=e.minutes;if((i||o||r||n)&&this.setState({infinityTimer:!1}),!(59>r&&0<=r&&59>n&&0<=n&&0<=o))throw new Error("Invalid Stop seconds or Minutes");if(this.state.backward){if(!(n<=s&&o<=l&&r<=a))throw new Error("Invalid Stop seconds or Minutes || stop minutes|seconds|hours should less than or equals to seconds|minutes|hours ");this.interval=setInterval((function(){return t.backwardTick()}),1e3)}else this.interval=setInterval((function(){return t.tick()}),1e3)}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return n.default.createElement("div",null,this.state.label&&this.state.label,this.state.showHours&&n.default.createElement("span",null,this.state.hours,":"),this.state.showMinutes&&n.default.createElement("span",null,this.state.minutes,":"),this.state.showSeconds&&n.default.createElement("span",null,this.state.seconds),this.state.endLabel&&this.state.endLabel)}}]),e}(n.default.Component);e.default=l,l.defaultProps={showHours:!0,showMinutes:!0,showSeconds:!0,prefixZero:!0},l.propTypes={callback:i.default.func,label:i.default.node,endLabel:i.default.node,backward:i.default.bool,showHours:i.default.bool,showMinutes:i.default.bool,showSeconds:i.default.bool,prefixZero:i.default.bool,hours:i.default.number,minutes:i.default.number,seconds:i.default.number,stopHours:i.default.number,stopMinutes:i.default.number,stopSeconds:i.default.number}},c4hW:function(t,e,o){var r={"./af":"2wr5","./af.js":"2wr5","./af.js.flow":"VDFB","./ar":"E+k7","./ar.js":"E+k7","./ar.js.flow":"7+h3","./az":"UZJx","./az-short":"HdKW","./az-short.js":"HdKW","./az-short.js.flow":"plmE","./az.js":"UZJx","./az.js.flow":"1WT+","./be":"hlaH","./be.js":"hlaH","./be.js.flow":"RSsd","./bg":"xAPo","./bg.js":"xAPo","./bg.js.flow":"PIbP","./bs":"VsA4","./bs.js":"VsA4","./bs.js.flow":"VsqK","./ca":"fc8v","./ca.js":"fc8v","./ca.js.flow":"+1J1","./cs":"FAv+","./cs.js":"FAv+","./cs.js.flow":"C5Vk","./cy":"NABA","./cy.js":"NABA","./cy.js.flow":"rnWL","./da":"SGqv","./da.js":"SGqv","./da.js.flow":"BNCh","./de":"wX84","./de-short":"im1Y","./de-short.js":"im1Y","./de-short.js.flow":"WEwI","./de.js":"wX84","./de.js.flow":"rTiA","./dv":"t8Qj","./dv.js":"t8Qj","./dv.js.flow":"BS5Z","./el":"YCTP","./el.js":"YCTP","./el.js.flow":"KFGn","./en":"z4xt","./en-short":"eShB","./en-short.js":"eShB","./en-short.js.flow":"lfRE","./en.js":"z4xt","./en.js.flow":"ESaR","./es":"Zdwb","./es-short":"jEi2","./es-short.js":"jEi2","./es-short.js.flow":"6c4c","./es.js":"Zdwb","./es.js.flow":"q9aV","./et":"CyYd","./et.js":"CyYd","./et.js.flow":"mN13","./eu":"bU7H","./eu.js":"bU7H","./eu.js.flow":"rb+x","./fa":"+3+n","./fa-short":"imKv","./fa-short.js":"imKv","./fa-short.js.flow":"KC7j","./fa.js":"+3+n","./fa.js.flow":"6dZu","./fi":"R2dj","./fi.js":"R2dj","./fi.js.flow":"H3DT","./fr":"EXHt","./fr-short":"i60Y","./fr-short.js":"i60Y","./fr-short.js.flow":"LVzs","./fr.js":"EXHt","./fr.js.flow":"JqY9","./gl":"o0tB","./gl.js":"o0tB","./gl.js.flow":"ZTRw","./he":"BL5+","./he.js":"BL5+","./he.js.flow":"CgQv","./hr":"tr3X","./hr.js":"tr3X","./hr.js.flow":"24EN","./hu":"Zxft","./hu.js":"Zxft","./hu.js.flow":"9xBi","./hy":"qZtN","./hy.js":"qZtN","./hy.js.flow":"2cFh","./id":"ihsX","./id.js":"ihsX","./id.js.flow":"0+5u","./is":"RNWx","./is.js":"RNWx","./is.js.flow":"J+ui","./it":"REsg","./it-short":"uTiL","./it-short.js":"uTiL","./it-short.js.flow":"OssH","./it.js":"REsg","./it.js.flow":"zdMj","./ja":"pMYK","./ja.js":"pMYK","./ja.js.flow":"Npo4","./jv":"xkXW","./jv.js":"xkXW","./jv.js.flow":"x3+V","./ko":"0QTL","./ko.js":"0QTL","./ko.js.flow":"kcjF","./ky":"oX63","./ky.js":"oX63","./ky.js.flow":"+k+O","./lt":"/qCa","./lt.js":"/qCa","./lt.js.flow":"FOLd","./lv":"lHnh","./lv.js":"lHnh","./lv.js.flow":"SZ4Q","./mk":"ZXWA","./mk.js":"ZXWA","./mk.js.flow":"PS7x","./nl":"KOuv","./nl.js":"KOuv","./nl.js.flow":"o3Jk","./no":"QWlS","./no.js":"QWlS","./no.js.flow":"A+BU","./pl":"W16A","./pl.js":"W16A","./pl.js.flow":"pAAQ","./pt":"8VqH","./pt-br":"oIA4","./pt-br-short":"BzxF","./pt-br-short.js":"BzxF","./pt-br-short.js.flow":"C92F","./pt-br.js":"oIA4","./pt-br.js.flow":"QmvI","./pt-short":"/RMY","./pt-short.js":"/RMY","./pt-short.js.flow":"Y2NG","./pt.js":"8VqH","./pt.js.flow":"yx9S","./ro":"uCIG","./ro.js":"uCIG","./ro.js.flow":"+R3S","./rs":"mBRx","./rs.js":"mBRx","./rs.js.flow":"6BHG","./ru":"BL+4","./ru.js":"BL+4","./ru.js.flow":"KrDU","./rw":"vkJa","./rw.js":"vkJa","./rw.js.flow":"F9+Z","./si":"aTbb","./si.js":"aTbb","./si.js.flow":"lB1+","./sk":"ac9b","./sk.js":"ac9b","./sk.js.flow":"shhL","./sl":"nnNE","./sl.js":"nnNE","./sl.js.flow":"rtz6","./sr":"9L0+","./sr.js":"9L0+","./sr.js.flow":"TpPV","./sv":"1EDi","./sv.js":"1EDi","./sv.js.flow":"9Z4s","./th":"joZ8","./th.js":"joZ8","./th.js.flow":"VrLr","./tr":"OKHe","./tr-short":"K2sC","./tr-short.js":"K2sC","./tr-short.js.flow":"l7oi","./tr.js":"OKHe","./tr.js.flow":"ycC3","./uk":"8XRk","./uk.js":"8XRk","./uk.js.flow":"Rsbz","./uz":"VKJZ","./uz.js":"VKJZ","./uz.js.flow":"7k5C","./vi":"Gykb","./vi.js":"Gykb","./vi.js.flow":"2W46","./zh-CN":"+HV2","./zh-CN.js":"+HV2","./zh-CN.js.flow":"MjDM","./zh-TW":"EGbi","./zh-TW.js":"EGbi","./zh-TW.js.flow":"p2NX"};function n(t){var e=i(t);return o(e)}function i(t){if(!o.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}n.keys=function(){return Object.keys(r)},n.resolve=i,t.exports=n,n.id="c4hW"},cpGi:function(t,e,o){"use strict";var r=o("q1tI"),n=o.n(r);function i(t,e){for(var o=0;oy},S=function(t){return function(t){var e=m[t].b;return b+e+g}(t)>w},L=function(t){return function(t){return x(t)<0}(t)||O(t)||function(t){return k(t)<0}(t)||S(t)},A=function(t){return!L(t)},C=["top","bottom","left","right"],R=[],H=0;H<4;H++){var W=C[H];A(W)&&R.push(W)}var z,N=!1,Z=n!==r;return A(n)&&Z?(N=!0,z=n):R.length>0&&Z&&L(n)&&L(r)&&(N=!0,z=R[0]),N?{isNewState:!0,newState:{place:z}}:{isNewState:!1,position:{left:parseInt(x(r)-E,10),top:parseInt(k(r)-T,10)}}}var C,R,H,P=function(t){var e=t.getBoundingClientRect(),o=e.height,r=e.width;return{height:parseInt(o,10),width:parseInt(r,10)}},D=function(t,e,o){var r=e.getBoundingClientRect(),n=r.top,i=r.left,s=P(e),l=s.width,a=s.height;return"float"===o?{mouseX:t.clientX,mouseY:t.clientY}:{mouseX:i+l/2,mouseY:n+a/2}},B=function(t,e,o,r,n){var i,s,l,a;return"float"===t?(i={l:-r/2,r:r/2,t:-(n+3+2),b:-3},l={l:-r/2,r:r/2,t:15,b:n+3+2+12},a={l:-(r+3+2),r:-3,t:-n/2,b:n/2},s={l:3,r:r+3+2,t:-n/2,b:n/2}):"solid"===t&&(i={l:-r/2,r:r/2,t:-(o/2+n+2),b:-o/2},l={l:-r/2,r:r/2,t:o/2,b:o/2+n+2},a={l:-(r+e/2+2),r:-e/2,t:-n/2,b:n/2},s={l:e/2,r:r+e/2+2,t:-n/2,b:n/2}),{top:i,bottom:l,left:a,right:s}},I=function(t){var e=0,o=0;for(var r in"[object String]"===Object.prototype.toString.apply(t)&&(t=JSON.parse(t.toString().replace(/\'/g,'"'))),t)"top"===r?o-=parseInt(t[r],10):"bottom"===r?o+=parseInt(t[r],10):"left"===r?e-=parseInt(t[r],10):"right"===r&&(e+=parseInt(t[r],10));return{extraOffset_X:e,extraOffset_Y:o}},M=function(t){for(var e=t;e&&"none"===window.getComputedStyle(e).getPropertyValue("transform");)e=e.parentElement;return{parentTop:e&&e.getBoundingClientRect().top||0,parentLeft:e&&e.getBoundingClientRect().left||0}};function W(t,e,o,r){if(e)return e;if(void 0!==o&&null!==o)return o;if(null===o)return null;var i=//;return r&&"false"!==r&&i.test(t)?t.split(i).map((function(t,e){return n.a.createElement("span",{key:e,className:"multi-line"},t)})):t}function z(t){var e={};return Object.keys(t).filter((function(t){return/(^aria-\w+$|^role$)/.test(t)})).forEach((function(o){e[o]=t[o]})),e}!function(t){if(t&&"undefined"!==typeof window){var e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t,document.head.appendChild(e)}}('.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n padding: 8px 21px;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip:before, .__react_component_tooltip:after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0px;\n margin-left: 0px;\n visibility: visible;\n}\n.__react_component_tooltip.type-dark {\n color: #fff;\n background-color: #222;\n}\n.__react_component_tooltip.type-dark.place-top:after {\n border-top-color: #222;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-dark.place-bottom:after {\n border-bottom-color: #222;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-dark.place-left:after {\n border-left-color: #222;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-dark.place-right:after {\n border-right-color: #222;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-dark.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-dark.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-success {\n color: #fff;\n background-color: #8DC572;\n}\n.__react_component_tooltip.type-success.place-top:after {\n border-top-color: #8DC572;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-success.place-bottom:after {\n border-bottom-color: #8DC572;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-success.place-left:after {\n border-left-color: #8DC572;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-success.place-right:after {\n border-right-color: #8DC572;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-success.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-success.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning {\n color: #fff;\n background-color: #F0AD4E;\n}\n.__react_component_tooltip.type-warning.place-top:after {\n border-top-color: #F0AD4E;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-warning.place-bottom:after {\n border-bottom-color: #F0AD4E;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-warning.place-left:after {\n border-left-color: #F0AD4E;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-warning.place-right:after {\n border-right-color: #F0AD4E;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-warning.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-warning.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-error {\n color: #fff;\n background-color: #BE6464;\n}\n.__react_component_tooltip.type-error.place-top:after {\n border-top-color: #BE6464;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-error.place-bottom:after {\n border-bottom-color: #BE6464;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-error.place-left:after {\n border-left-color: #BE6464;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-error.place-right:after {\n border-right-color: #BE6464;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-error.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-error.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-info {\n color: #fff;\n background-color: #337AB7;\n}\n.__react_component_tooltip.type-info.place-top:after {\n border-top-color: #337AB7;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-info.place-bottom:after {\n border-bottom-color: #337AB7;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-info.place-left:after {\n border-left-color: #337AB7;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-info.place-right:after {\n border-right-color: #337AB7;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-info.border {\n border: 1px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-top:before {\n border-top: 8px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-bottom:before {\n border-bottom: 8px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-left:before {\n border-left: 8px solid #fff;\n}\n.__react_component_tooltip.type-info.border.place-right:before {\n border-right: 8px solid #fff;\n}\n.__react_component_tooltip.type-light {\n color: #222;\n background-color: #fff;\n}\n.__react_component_tooltip.type-light.place-top:after {\n border-top-color: #fff;\n border-top-style: solid;\n border-top-width: 6px;\n}\n.__react_component_tooltip.type-light.place-bottom:after {\n border-bottom-color: #fff;\n border-bottom-style: solid;\n border-bottom-width: 6px;\n}\n.__react_component_tooltip.type-light.place-left:after {\n border-left-color: #fff;\n border-left-style: solid;\n border-left-width: 6px;\n}\n.__react_component_tooltip.type-light.place-right:after {\n border-right-color: #fff;\n border-right-style: solid;\n border-right-width: 6px;\n}\n.__react_component_tooltip.type-light.border {\n border: 1px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-top:before {\n border-top: 8px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-bottom:before {\n border-bottom: 8px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-left:before {\n border-left: 8px solid #222;\n}\n.__react_component_tooltip.type-light.border.place-right:before {\n border-right: 8px solid #222;\n}\n.__react_component_tooltip.place-top {\n margin-top: -10px;\n}\n.__react_component_tooltip.place-top:before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n bottom: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-top:after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n}\n.__react_component_tooltip.place-bottom {\n margin-top: 10px;\n}\n.__react_component_tooltip.place-bottom:before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n top: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom:after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n}\n.__react_component_tooltip.place-left {\n margin-left: -10px;\n}\n.__react_component_tooltip.place-left:before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n right: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-left:after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n}\n.__react_component_tooltip.place-right {\n margin-left: 10px;\n}\n.__react_component_tooltip.place-right:before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n left: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-right:after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0px;\n text-align: center;\n}');var N,Z=function(t){t.hide=function(t){T(j.HIDE,{target:t})},t.rebuild=function(){T(j.REBUILD)},t.show=function(t){T(j.SHOW,{target:t})},t.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},t.prototype.globalShow=function(t){if(this.mount){var e={currentTarget:t.detail.target};this.showTooltip(e,!0)}},t.prototype.globalHide=function(t){if(this.mount){var e=!!(t&&t.detail&&t.detail.target);this.hideTooltip({currentTarget:e&&t.detail.target},e)}}}(C=function(t){t.prototype.bindWindowEvents=function(t){window.removeEventListener(j.HIDE,this.globalHide),window.addEventListener(j.HIDE,this.globalHide,!1),window.removeEventListener(j.REBUILD,this.globalRebuild),window.addEventListener(j.REBUILD,this.globalRebuild,!1),window.removeEventListener(j.SHOW,this.globalShow),window.addEventListener(j.SHOW,this.globalShow,!1),t&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},t.prototype.unbindWindowEvents=function(){window.removeEventListener(j.HIDE,this.globalHide),window.removeEventListener(j.REBUILD,this.globalRebuild),window.removeEventListener(j.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},t.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(C=function(t){t.prototype.isCustomEvent=function(t){return this.state.event||!!t.getAttribute("data-event")},t.prototype.customBindListener=function(t){var e=this,o=this.state,r=o.event,n=o.eventOff,i=t.getAttribute("data-event")||r,s=t.getAttribute("data-event-off")||n;i.split(" ").forEach((function(o){t.removeEventListener(o,k.get(t,o));var r=E.bind(e,s);k.set(t,o,r),t.addEventListener(o,r,!1)})),s&&s.split(" ").forEach((function(o){t.removeEventListener(o,e.hideTooltip),t.addEventListener(o,e.hideTooltip,!1)}))},t.prototype.customUnbindListener=function(t){var e=this.state,o=e.event,r=e.eventOff,n=o||t.getAttribute("data-event"),i=r||t.getAttribute("data-event-off");t.removeEventListener(n,k.get(t,o)),i&&t.removeEventListener(i,this.hideTooltip)}}(C=function(t){t.prototype.isCapture=function(t){return t&&"true"===t.getAttribute("data-iscapture")||this.props.isCapture||!1}}(C=function(t){t.prototype.getEffect=function(t){return t.getAttribute("data-effect")||this.props.effect||"float"}}(C=function(t){t.prototype.isBodyMode=function(){return!!this.props.bodyMode},t.prototype.bindBodyListener=function(t){var e=this,o=this.state,r=o.event,n=o.eventOff,i=o.possibleCustomEvents,s=o.possibleCustomEventsOff,l=L(),a=S(t,"data-event"),p=S(t,"data-event-off");null!=r&&(a[r]=!0),null!=n&&(p[n]=!0),i.split(" ").forEach((function(t){return a[t]=!0})),s.split(" ").forEach((function(t){return p[t]=!0})),this.unbindBodyListener(l);var c=this.bodyModeListeners={};for(var f in null==r&&(c.mouseover=O.bind(this,this.showTooltip,{}),c.mousemove=O.bind(this,this.updateTooltip,{respectEffect:!0}),c.mouseout=O.bind(this,this.hideTooltip,{})),a)c[f]=O.bind(this,(function(t){var o=t.currentTarget.getAttribute("data-event-off")||n;E.call(e,o,t)}),{customEvent:!0});for(var d in p)c[d]=O.bind(this,this.hideTooltip,{customEvent:!0});for(var u in c)l.addEventListener(u,c[u])},t.prototype.unbindBodyListener=function(t){t=t||L();var e=this.bodyModeListeners;for(var o in e)t.removeEventListener(o,e[o])}}((H=R=function(t){function e(t){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(o=f(this,p(e).call(this,t))).state={place:t.place||"top",desiredPlace:t.place||"top",type:"dark",effect:"float",show:!1,border:!1,offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:t.event||null,eventOff:t.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:z(t),isEmptyTip:!1,disable:!1,possibleCustomEvents:t.possibleCustomEvents||"",possibleCustomEventsOff:t.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},o.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),o.mount=!0,o.delayShowLoop=null,o.delayHideLoop=null,o.delayReshow=null,o.intervalUpdateContent=null,o}var o,r,d;return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t),o=e,d=[{key:"getDerivedStateFromProps",value:function(t,e){var o=e.ariaProps,r=z(t);return Object.keys(r).some((function(t){return r[t]!==o[t]}))?function(t){for(var e=1;e0||s){var o=!e.state.show;e.setState({currentEvent:t,currentTarget:a,show:!0},(function(){e.updatePosition(),o&&i&&i(t)}))}};clearTimeout(this.delayShowLoop),r?this.delayShowLoop=setTimeout(p,l):p()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(t,e){var o=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},n=this.state.disable,i=r.isScroll,s=i?0:this.state.delayHide,l=this.props.afterHide,a=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(a)&&!n){if(e){var p=this.getTargetArray(this.props.id),c=p.some((function(e){return e===t.currentTarget}));if(!c||!this.state.show)return}var f=function(){var e=o.state.show;o.mouseOnToolTip()?o.listenForTooltipExit():(o.removeListenerForTooltipExit(),o.setState({show:!1},(function(){o.removeScrollListener(),e&&l&&l(t)})))};this.clearTimer(),s?this.delayHideLoop=setTimeout(f,parseInt(s,10)):f()}}},{key:"hideTooltipOnScroll",value:function(t,e){this.hideTooltip(t,e,{isScroll:!0})}},{key:"addScrollListener",value:function(t){var e=this.isCapture(t);window.addEventListener("scroll",this.hideTooltipOnScroll,e)}},{key:"removeScrollListener",value:function(){window.removeEventListener("scroll",this.hideTooltipOnScroll)}},{key:"updatePosition",value:function(){var t=this,e=this.state,o=e.currentEvent,r=e.currentTarget,n=e.place,i=e.desiredPlace,s=e.effect,l=e.offset,a=this.tooltipRef,p=A(o,r,a,n,i,s,l);if(p.position&&this.props.overridePosition&&(p.position=this.props.overridePosition(p.position,o,r,a,n,i,s,l)),p.isNewState)return this.setState(p.newState,(function(){t.updatePosition()}));a.style.left=p.position.left+"px",a.style.top=p.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"render",value:function(){var t=this,o=this.state,r=o.extraClass,i=o.html,s=o.ariaProps,a=o.disable,p=this.getTooltipContent(),c=this.isEmptyTip(p),f="__react_component_tooltip"+(!this.state.show||a||c?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),d=this.props.wrapper;e.supportedWrappers.indexOf(d)<0&&(d=e.defaultProps.wrapper);var u=[f,r].filter(Boolean).join(" ");return i?n.a.createElement(d,l({className:u,id:this.props.id,ref:function(e){return t.tooltipRef=e}},s,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:p}})):n.a.createElement(d,l({className:u,id:this.props.id},s,{ref:function(e){return t.tooltipRef=e},"data-id":"tooltip"}),p)}}])&&i(o.prototype,r),d&&i(o,d),e}(n.a.Component),s(R,"propTypes",{children:w.any,place:w.string,type:w.string,effect:w.string,offset:w.object,multiline:w.bool,border:w.bool,insecure:w.bool,class:w.string,className:w.string,id:w.string,html:w.bool,delayHide:w.number,delayUpdate:w.number,delayShow:w.number,event:w.string,eventOff:w.string,watchWindow:w.bool,isCapture:w.bool,globalEventOff:w.string,getContent:w.any,afterShow:w.func,afterHide:w.func,overridePosition:w.func,disable:w.bool,scrollHide:w.bool,resizeHide:w.bool,wrapper:w.string,bodyMode:w.bool,possibleCustomEvents:w.string,possibleCustomEventsOff:w.string,clickable:w.bool}),s(R,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),s(R,"supportedWrappers",["div","span"]),s(R,"displayName","ReactTooltip"),(N=C=H).prototype.bindRemovalTracker=function(){var t=this,e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=e){var o=new e((function(e){for(var o=0;o