react-button-actions
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactButtonActions=e(require("react")):t.ReactButtonActions=e(t.react)}(this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=52)}([function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(40),r=n(17);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(1),r=n(0),o=n(36),s=n(5),u=function(t,e,n){var a,c,l,h=t&u.F,f=t&u.G,p=t&u.S,d=t&u.P,v=t&u.B,y=t&u.W,m=f?r:r[e]||(r[e]={}),g=m.prototype,b=f?i:p?i[e]:(i[e]||{}).prototype;f&&(n=e);for(a in n)(c=!h&&b&&void 0!==b[a])&&a in m||(l=c?b[a]:n[a],m[a]=f&&"function"!=typeof b[a]?n[a]:v&&c?o(l,i):y&&b[a]==l?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):d&&"function"==typeof l?o(Function.call,l):l,d&&((m.virtual||(m.virtual={}))[a]=l,t&u.R&&g&&!g[a]&&s(g,a,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var i=n(6),r=n(13);t.exports=n(7)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(11),r=n(37),o=n(16),s=Object.defineProperty;e.f=n(7)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(39),r=n(21);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(20)("wks"),r=n(14),o=n(1).Symbol,s="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))}).store=i},function(t,e,n){var i=n(12);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(12);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(20)("keys"),r=n(14);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){var i=n(1),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return r[t]||(r[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(17);t.exports=function(t){return Object(i(t))}},function(t,e,n){var i=n(6).f,r=n(2),o=n(10)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){e.f=n(10)},function(t,e,n){var i=n(1),r=n(0),o=n(27),s=n(25),u=n(6).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:s.f(t)})}},function(t,e){t.exports=!0},function(t,e,n){var i=n(11),r=n(67),o=n(21),s=n(19)("IE_PROTO"),u=function(){},a=function(){var t,e=n(38)("iframe"),i=o.length;for(e.style.display="none",n(68).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;i--;)delete a.prototype[o[i]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=i(t),n=new u,u.prototype=null,n[s]=t):n=a(),void 0===e?n:r(n,e)}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(49),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,r.default)(e))&&"function"!=typeof e?t:e}},function(t,e){t.exports={}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(87),o=i(r),s=n(91),u=i(s),a=n(49),c=i(a);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,c.default)(e)));t.prototype=(0,u.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(e,n){e.exports=t},function(t,e,n){t.exports=n(94)()},function(t,e,n){"use strict";e.__esModule=!0;var i=n(53),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(t,e,n){var i=n(56);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){t.exports=!n(7)&&!n(8)(function(){return 7!=Object.defineProperty(n(38)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(12),r=n(1).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){var i=n(2),r=n(3),o=n(58)(!1),s=n(19)("IE_PROTO");t.exports=function(t,e){var n,u=r(t),a=0,c=[];for(n in u)n!=s&&i(u,n)&&c.push(n);for(;e.length>a;)i(u,n=e[a++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var i=n(41);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(61),o=i(r),s=n(47),u=i(s);e.default=function(){var t="function"==typeof u.default&&o.default&&(0,o.default)("react.element")||60103;return function(e,n,i,r){var o=e&&e.defaultProps,s=arguments.length-3;if(n||0===s||(n={}),n&&o)for(var u in o)void 0===n[u]&&(n[u]=o[u]);else n||(n=o||{});if(1===s)n.children=r;else if(s>1){for(var a=Array(s),c=0;c<s;c++)a[c]=arguments[c+3];n.children=a}return{$$typeof:t,type:e,key:void 0===i?null:""+i,ref:null,props:n,_owner:null}}}()},function(t,e,n){"use strict";var i=n(1),r=n(2),o=n(7),s=n(4),u=n(44),a=n(63).KEY,c=n(8),l=n(20),h=n(24),f=n(14),p=n(10),d=n(25),v=n(26),y=n(64),m=n(65),g=n(66),b=n(11),T=n(3),E=n(16),_=n(13),S=n(28),O=n(69),w=n(46),x=n(6),C=n(9),P=w.f,I=x.f,M=O.f,R=i.Symbol,j=i.JSON,k=j&&j.stringify,A=p("_hidden"),B=p("toPrimitive"),L={}.propertyIsEnumerable,W=l("symbol-registry"),N=l("symbols"),D=l("op-symbols"),F=Object.prototype,z="function"==typeof R,X=i.QObject,Y=!X||!X.prototype||!X.prototype.findChild,V=o&&c(function(){return 7!=S(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=P(F,e);i&&delete F[e],I(t,e,n),i&&t!==F&&I(F,e,i)}:I,q=function(t){var e=N[t]=S(R.prototype);return e._k=t,e},H=z&&"symbol"==typeof R.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof R},U=function(t,e,n){return t===F&&U(D,e,n),b(t),e=E(e,!0),b(n),r(N,e)?(n.enumerable?(r(t,A)&&t[A][e]&&(t[A][e]=!1),n=S(n,{enumerable:_(0,!1)})):(r(t,A)||I(t,A,_(1,{})),t[A][e]=!0),V(t,e,n)):I(t,e,n)},G=function(t,e){b(t);for(var n,i=m(e=T(e)),r=0,o=i.length;o>r;)U(t,n=i[r++],e[n]);return t},J=function(t,e){return void 0===e?S(t):G(S(t),e)},Z=function(t){var e=L.call(this,t=E(t,!0));return!(this===F&&r(N,t)&&!r(D,t))&&(!(e||!r(this,t)||!r(N,t)||r(this,A)&&this[A][t])||e)},K=function(t,e){if(t=T(t),e=E(e,!0),t!==F||!r(N,e)||r(D,e)){var n=P(t,e);return!n||!r(N,e)||r(t,A)&&t[A][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=M(T(t)),i=[],o=0;n.length>o;)r(N,e=n[o++])||e==A||e==a||i.push(e);return i},Q=function(t){for(var e,n=t===F,i=M(n?D:T(t)),o=[],s=0;i.length>s;)!r(N,e=i[s++])||n&&!r(F,e)||o.push(N[e]);return o};z||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===F&&e.call(D,n),r(this,A)&&r(this[A],t)&&(this[A][t]=!1),V(this,t,_(1,n))};return o&&Y&&V(F,t,{configurable:!0,set:e}),q(t)},u(R.prototype,"toString",function(){return this._k}),w.f=K,x.f=U,n(45).f=O.f=$,n(15).f=Z,n(22).f=Q,o&&!n(27)&&u(F,"propertyIsEnumerable",Z,!0),d.f=function(t){return q(p(t))}),s(s.G+s.W+s.F*!z,{Symbol:R});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)p(tt[et++]);for(var tt=C(p.store),et=0;tt.length>et;)v(tt[et++]);s(s.S+s.F*!z,"Symbol",{for:function(t){return r(W,t+="")?W[t]:W[t]=R(t)},keyFor:function(t){if(H(t))return y(W,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),s(s.S+s.F*!z,"Object",{create:J,defineProperty:U,defineProperties:G,getOwnPropertyDescriptor:K,getOwnPropertyNames:$,getOwnPropertySymbols:Q}),j&&s(s.S+s.F*(!z||c(function(){var t=R();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);return e=i[1],"function"==typeof e&&(n=e),!n&&g(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!H(e))return e}),i[1]=e,k.apply(j,i)}}}),R.prototype[B]||n(5)(R.prototype,B,R.prototype.valueOf),h(R,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},function(t,e,n){t.exports=n(5)},function(t,e,n){var i=n(39),r=n(21).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){var i=n(15),r=n(13),o=n(3),s=n(16),u=n(2),a=n(37),c=Object.getOwnPropertyDescriptor;e.f=n(7)?c:function(t,e){if(t=o(t),e=s(e,!0),a)try{return c(t,e)}catch(t){}if(u(t,e))return r(!i.f.call(t,e),t[e])}},function(t,e,n){t.exports={default:n(70),__esModule:!0}},function(t,e,n){t.exports={default:n(74),__esModule:!0}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(77),o=i(r),s=n(47),u=i(s),a="function"==typeof u.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===a(o.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":a(t)}},function(t,e,n){"use strict";var i=n(27),r=n(4),o=n(44),s=n(5),u=n(2),a=n(31),c=n(81),l=n(24),h=n(82),f=n(10)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,y,m,g){c(n,e,v);var b,T,E,_=function(t){if(!p&&t in x)return x[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",O="values"==y,w=!1,x=t.prototype,C=x[f]||x["@@iterator"]||y&&x[y],P=C||_(y),I=y?O?_("entries"):P:void 0,M="Array"==e?x.entries||C:C;if(M&&(E=h(M.call(new t)))!==Object.prototype&&(l(E,S,!0),i||u(E,f)||s(E,f,d)),O&&C&&"values"!==C.name&&(w=!0,P=function(){return C.call(this)}),i&&!g||!p&&!w&&x[f]||s(x,f,P),a[e]=P,a[S]=d,y)if(b={values:O?P:_("values"),keys:m?P:_("keys"),entries:I},g)for(T in b)T in x||o(x,T,b[T]);else r(r.P+r.F*(p||w),e,b);return b}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={SwipeStyles:{overlayStyles:{zIndex:2,transition:"transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1)"},baseSwipeContainerStyles:{overflow:"hidden",position:"relative"},buttonsContainerStyles:{zIndex:1,height:"100%"},rightContainerStyles:{transition:"transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1)",height:"100%",alignItems:"center",bottom:"0",display:"flex",position:"absolute",right:"0",transform:"scale3d(0, 1, 1)",transformOrigin:"right"},leftContainerStyles:{transition:"transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1)",height:"100%",transform:"scale3d(0, 1, 1)",alignItems:"center",bottom:"0",display:"flex",position:"absolute",left:"0",transformOrigin:"left"}},ButtonStyles:{container:{cursor:"pointer",flex:"1",display:"flex",height:"100%",alignItems:"center",textAlign:"center"},content:{flex:1}}};e.default=i,e.SwipeStyles=i.SwipeStyles,e.ButtonStyles=i.ButtonStyles},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r,o,s=n(35),u=i(s),a=n(42),c=i(a),l=n(48),h=i(l),f=n(29),p=i(f),d=n(30),v=i(d),y=n(32),m=i(y),g=n(33),b=i(g),T=n(34),E=i(T),_=n(98),S=i(_),O=n(99),w=i(O),x=n(100),C=i(x),P=n(51),I=i(P),M=function(t,e){return Math.min(t/e,1)},R=function(t,e){return Math.max(1-t/e,0)},j=(o=r=function(t){function e(n){(0,p.default)(this,e);var i=(0,v.default)(this,t.call(this,n));return i.close=function(){i.resetOverlay()},i.bindOverlayRef=function(t){i.overlay=t},i.bindContainerRef=function(t){i.container=t},i.styles=I.default.SwipeStyles,i.swipeId=Math.floor(1e3*Math.random()),i.btnsLeftWidth=0,i.btnsRightWidth=0,i.bindedEvents={},i.childrenProps={},i.shouldShowRight=!1,i.shouldShowLeft=!1,i.leftIsVisible=!1,i.rightIsVisible=!1,i.shouldCloseAutomatically=!1!==n.autoclose,i.isLinkedToOthers=!1!==n.linked,i.isFullWidth=!0===n.fullwidth,i.initBindings(),i.treshold=0,i}return(0,m.default)(e,t),e.prototype.initBindings=function(){this.resetOverlay=this.resetOverlay.bind(this),this.handleBtnClick=this.handleBtnClick.bind(this),this.showRightMenu=this.showRightMenu.bind(this),this.showLeftMenu=this.showLeftMenu.bind(this),this.onPanStart=this.onPanStart.bind(this),this.onPanEnd=this.onPanEnd.bind(this),this.initSizes=this.initSizes.bind(this),this.onLeftPan=this.onLeftPan.bind(this),this.onRightPan=this.onRightPan.bind(this),this.initTouchEvents=this.initTouchEvents.bind(this),this.resetEvents=this.resetEvents.bind(this),this.handleContainerClick=this.handleContainerClick.bind(this)},e.prototype.componentWillUnmount=function(){this.unRegisterSwipe(this.swipeId),this.resetEvents()},e.prototype.onPanStart=function(t){this.panStartDelta=t.deltaX},e.prototype.resetOverlay=function(){(this.leftIsVisible||this.rightIsVisible)&&(this.onClose(),this.translateOverlay(0),this.transformLeftButton(0),this.transformRightButton(0),this.leftIsVisible=!1,this.rightIsVisible=!1)},e.prototype.showRightMenu=function(){this.onClose(),this.translateOverlay(-this.btnsRightWidth),this.transformLeftButton(0),this.transformRightButton(1),this.leftIsVisible=!1,this.rightIsVisible=!0,this.onOpen()},e.prototype.showLeftMenu=function(){this.onClose(),this.translateOverlay(this.btnsLeftWidth),this.transformLeftButton(1),this.transformRightButton(0),this.leftIsVisible=!0,this.rightIsVisible=!1,this.onOpen()},e.prototype.onPanEnd=function(t){return this.shouldShowRight=this.refs.rightBtnContainer&&t.deltaX<0&&t.distance>this.treshold,this.shouldShowLeft=this.refs.leftBtnContainer&&t.deltaX>0&&t.distance>this.treshold,this.shouldShowRight||this.shouldShowLeft?this.shouldShowRight?this.showRightMenu():this.shouldShowLeft?this.showLeftMenu():void 0:this.resetOverlay()},e.prototype.transformButtons=function(t){var e=t>0,n=e?t:-1*t,i=e?M:R,r=e?R:M,o=i(n,this.btnsLeftWidth),s=r(n,this.btnsRightWidth);this.transformLeftButton(o),this.transformRightButton(s)},e.prototype.transformLeftButton=function(t){this.refs.leftBtnContainer&&(this.refs.leftBtnContainer.style.transform="scale3d("+t+", 1, 1)")},e.prototype.transformRightButton=function(t){this.refs.rightBtnContainer&&(this.refs.rightBtnContainer.style.transform="scale3d("+t+", 1, 1)")},e.prototype.translateOverlay=function(t){this.overlay&&(this.overlay.style.transform="translate3d("+t+"px,0px,0px)")},e.prototype.onLeftPan=function(t){var e=this.getMovement(t.deltaX,t.velocityX),n=Math.max(e,-1*this.btnsRightWidth);this.translateOverlay(n),this.transformButtons(e)},e.prototype.onOpen=function(){this.props.onOpen&&this.props.onOpen.call(),this.isLinkedToOthers&&this.closeSwipes(this.swipeId)},e.prototype.onClose=function(){var t=this.rightIsVisible||this.leftIsVisible;if(this.props.onClose&&t){var e=this.rightIsVisible?this.props.right:this.props.left;return this.props.onClose.call(null,e)}},e.prototype.getMovement=function(t,e){return Math.round(t-this.panStartDelta*(1+e))},e.prototype.onRightPan=function(t){var e=this.getMovement(t.deltaX,t.velocityX),n=Math.min(e,this.btnsLeftWidth);this.translateOverlay(n),this.transformButtons(e)},e.prototype.getEvents=function(){var t=this.props;return{left:t.left,right:t.right,onOpen:t.onOpen,onClose:t.onClose}},e.prototype.getNbButtonsBySide=function(){var t=this.getEvents(),e=t.left,n=t.right;return{leftLength:e&&e.length?e.length:0,rightLength:n&&n.length?n.length:0}},e.prototype.hasEvents=function(){var t=this.getEvents(),e=t.left,n=t.right;return t.onOpen,t.onClose,!!e||!!n},e.prototype.resetSwipeEvents=function(){var t=(0,h.default)(this.bindedEvents).join(" ");this.hammer.off(t),this.hammer.destroy()},e.prototype.resetTapEvents=function(){this.containerHammer.off("tap"),this.containerHammer.destroy()},e.prototype.resetEvents=function(){this.resetTapEvents(),this.resetSwipeEvents()},e.prototype.registerEvent=function(t){this.bindedEvents[t]=!0},e.prototype.initEventsFromProps=function(){var t=this.getEvents();(t.left||t.right)&&(this.registerEvent("panstart"),this.hammer.on("panstart",this.onPanStart),this.hammer.on("panend",this.onPanEnd),this.registerEvent("panleft"),this.hammer.on("panleft",this.onLeftPan),this.registerEvent("panright"),this.hammer.on("panright",this.onRightPan))},e.prototype.initTouchEvents=function(){this.containerHammer=new S.default(this.container),this.containerHammer.add(new S.default.Tap),this.containerHammer.on("tap",this.handleContainerClick),this.hammer=new S.default(this.overlay),this.hammer.get("pan").set({direction:S.default.DIRECTION_HORIZONTAL}),this.initEventsFromProps()},e.prototype.initSizes=function(){this.overlayWidth=this.refs.childrenContainer.offsetWidth,this.overlay.style.width=this.overlayWidth+"px";var t=this.getNbButtonsBySide(),e=t.leftLength,n=t.rightLength;this.btnsLeftWidth=this.isFullWidth&&e?this.overlayWidth:this.overlayWidth/4.5*e,this.btnsRightWidth=this.isFullWidth&&n?this.overlayWidth:this.overlayWidth/4.5*n,this.refs.rightBtnContainer&&(this.refs.rightBtnContainer.style.width=this.btnsRightWidth+"px"),this.refs.leftBtnContainer&&(this.refs.leftBtnContainer.style.width=this.btnsLeftWidth+"px"),this.treshold=Math.round(this.overlayWidth/4.5)},e.prototype.checkFullWidthConstraints=function(){if(!1===this.isFullWidth)return!0;var t=this.getNbButtonsBySide(),e=t.leftLength,n=t.rightLength;if(e>1||n>1)throw new Error("^^^^^^ react-action-buttons : Can't make a fullWidth swipe with more than 1 item");return!0},e.prototype.constraintsAreValid=function(){return this.checkFullWidthConstraints()},e.prototype.componentDidMount=function(){this.hasEvents()&&this.constraintsAreValid()&&(this.initTouchEvents(),this.initSizes(),this.isLinkedToOthers&&this.registerSwipe(this.swipeId,this.resetOverlay))},e.prototype.handleBtnClick=function(t){this.shouldCloseAutomatically&&this.resetOverlay()},e.prototype.renderLeftButtons=function(){var t=this;return this.props.left&&this.props.left.length?b.default.createElement("div",{className:"leftBtnContainer",key:"leftBtnContainer",style:this.styles.leftContainerStyles,ref:"leftBtnContainer"},this.props.left.map(function(e,n){return(0,c.default)(C.default,{onClickCallback:t.handleBtnClick,action:e},n)})):""},e.prototype.renderRightButtons=function(){var t=this;return this.props.right&&this.props.right.length?b.default.createElement("div",{className:"rightBtnContainer",key:"rightBtnContainer",ref:"rightBtnContainer",style:this.styles.rightContainerStyles},this.props.right.map(function(e,n){return(0,c.default)(C.default,{action:e,onClickCallback:t.handleBtnClick},n)})):""},e.prototype.renderButtons=function(){return this.hasEvents()?(0,c.default)("div",{className:"buttonsContainer",style:this.styles.buttonsContainerStyles},void 0,this.renderLeftButtons(),this.renderRightButtons()):""},e.prototype.handleContainerClick=function(){this.props.onPress&&this.props.onPress.call(),this.shouldCloseAutomatically&&this.resetOverlay()},e.prototype.render=function(){var t=b.default.cloneElement(this.props.children,(0,u.default)({},this.childrenProps)),e=(0,u.default)({},this.styles.baseSwipeContainerStyles,this.props.style);return b.default.createElement("div",{ref:this.bindContainerRef,className:"swipeContainer",style:e},this.renderButtons(),b.default.createElement("div",{style:this.styles.overlayStyles,className:"swipeOverlay",ref:this.bindOverlayRef},b.default.createElement("div",{className:"childrenContainer",ref:"childrenContainer"},t)))},e}(w.default),r.propTypes={onPress:E.default.func,autoclose:E.default.bool,style:E.default.object,linked:E.default.bool,fullwidth:E.default.bool,left:E.default.array,right:E.default.array,onOpen:E.default.func,onClose:E.default.func},o);e.default=j},function(t,e,n){t.exports={default:n(54),__esModule:!0}},function(t,e,n){n(55),t.exports=n(0).Object.assign},function(t,e,n){var i=n(4);i(i.S+i.F,"Object",{assign:n(57)})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var i=n(9),r=n(22),o=n(15),s=n(23),u=n(40),a=Object.assign;t.exports=!a||n(8)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=i})?function(t,e){for(var n=s(t),a=arguments.length,c=1,l=r.f,h=o.f;a>c;)for(var f,p=u(arguments[c++]),d=l?i(p).concat(l(p)):i(p),v=d.length,y=0;v>y;)h.call(p,f=d[y++])&&(n[f]=p[f]);return n}:a},function(t,e,n){var i=n(3),r=n(59),o=n(60);t.exports=function(t){return function(e,n,s){var u,a=i(e),c=r(a.length),l=o(s,c);if(t&&n!=n){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var i=n(18),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){var i=n(18),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},function(t,e,n){t.exports={default:n(62),__esModule:!0}},function(t,e,n){n(43),t.exports=n(0).Symbol.for},function(t,e,n){var i=n(14)("meta"),r=n(12),o=n(2),s=n(6).f,u=0,a=Object.isExtensible||function(){return!0},c=!n(8)(function(){return a(Object.preventExtensions({}))}),l=function(t){s(t,i,{value:{i:"O"+ ++u,w:{}}})},h=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!a(t))return"F";if(!e)return"E";l(t)}return t[i].i},f=function(t,e){if(!o(t,i)){if(!a(t))return!0;if(!e)return!1;l(t)}return t[i].w},p=function(t){return c&&d.NEED&&a(t)&&!o(t,i)&&l(t),t},d=t.exports={KEY:i,NEED:!1,fastKey:h,getWeak:f,onFreeze:p}},function(t,e,n){var i=n(9),r=n(3);t.exports=function(t,e){for(var n,o=r(t),s=i(o),u=s.length,a=0;u>a;)if(o[n=s[a++]]===e)return n}},function(t,e,n){var i=n(9),r=n(22),o=n(15);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var s,u=n(t),a=o.f,c=0;u.length>c;)a.call(t,s=u[c++])&&e.push(s);return e}},function(t,e,n){var i=n(41);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(6),r=n(11),o=n(9);t.exports=n(7)?Object.defineProperties:function(t,e){r(t);for(var n,s=o(e),u=s.length,a=0;u>a;)i.f(t,n=s[a++],e[n]);return t}},function(t,e,n){t.exports=n(1).document&&document.documentElement},function(t,e,n){var i=n(3),r=n(45).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return r(t)}catch(t){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?u(t):r(i(t))}},function(t,e,n){n(43),n(71),n(72),n(73),t.exports=n(0).Symbol},function(t,e){},function(t,e,n){n(26)("asyncIterator")},function(t,e,n){n(26)("observable")},function(t,e,n){n(75),t.exports=n(0).Object.keys},function(t,e,n){var i=n(23),r=n(9);n(76)("keys",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(4),r=n(0),o=n(8);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],s={};s[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",s)}},function(t,e,n){t.exports={default:n(78),__esModule:!0}},function(t,e,n){n(79),n(83),t.exports=n(25).f("iterator")},function(t,e,n){"use strict";var i=n(80)(!0);n(50)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var i=n(18),r=n(17);t.exports=function(t){return function(e,n){var o,s,u=String(r(e)),a=i(n),c=u.length;return a<0||a>=c?t?"":void 0:(o=u.charCodeAt(a),o<55296||o>56319||a+1===c||(s=u.charCodeAt(a+1))<56320||s>57343?t?u.charAt(a):o:t?u.slice(a,a+2):s-56320+(o-55296<<10)+65536)}}},function(t,e,n){"use strict";var i=n(28),r=n(13),o=n(24),s={};n(5)(s,n(10)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var i=n(2),r=n(23),o=n(19)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){n(84);for(var i=n(1),r=n(5),o=n(31),s=n(10)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],a=0;a<5;a++){var c=u[a],l=i[c],h=l&&l.prototype;h&&!h[s]&&r(h,s,c),o[c]=o.Array}},function(t,e,n){"use strict";var i=n(85),r=n(86),o=n(31),s=n(3);t.exports=n(50)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(88),__esModule:!0}},function(t,e,n){n(89),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){var i=n(4);i(i.S,"Object",{setPrototypeOf:n(90).set})},function(t,e,n){var i=n(12),r=n(11),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n(36)(Function.call,n(46).f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){t.exports={default:n(92),__esModule:!0}},function(t,e,n){n(93);var i=n(0).Object;t.exports=function(t,e){return i.create(t,e)}},function(t,e,n){var i=n(4);i(i.S,"Object",{create:n(28)})},function(t,e,n){"use strict";var i=n(95),r=n(96),o=n(97);t.exports=function(){function t(t,e,n,i,s,u){u!==o&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=i,n.PropTypes=n,n}},function(t,e,n){"use strict";function i(t){return function(){return t}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";function i(t,e,n,i,o,s,u,a){if(r(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,o,s,u,a],h=0;c=new Error(e.replace(/%s/g,function(){return l[h++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(t){};t.exports=i},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var i;!function(r,o,s,u){"use strict";function a(t,e,n){return setTimeout(p(t,n),e)}function c(t,e,n){return!!Array.isArray(t)&&(l(t,n[e],n),!0)}function l(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==u)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function h(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}function f(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&dt(i,n)}function p(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==mt?t.apply(e?e[0]||u:u,e):t}function v(t,e){return t===u?e:t}function y(t,e,n){l(T(e),function(e){t.addEventListener(e,n,!1)})}function m(t,e,n){l(T(e),function(e){t.removeEventListener(e,n,!1)})}function g(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function b(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function E(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function _(t){return Array.prototype.slice.call(t,0)}function S(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];E(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function O(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<vt.length;){if(n=vt[o],(i=n?n+r:e)in t)return i;o++}return u}function w(){return St++}function x(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function C(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&n.handler(e)},this.init()}function P(t){return new(t.options.inputClass||(xt?X:Ct?q:wt?U:z))(t,I)}function I(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&It&&i-r==0,s=e&(Rt|jt)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,M(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function M(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=k(e)),r>1&&!n.firstMultiple?n.firstMultiple=k(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,u=s?s.center:o.center,a=e.center=A(i);e.timeStamp=Tt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=N(u,a),e.distance=W(u,a),R(n,e),e.offsetDirection=L(e.deltaX,e.deltaY);var c=B(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=bt(c.x)>bt(c.y)?c.x:c.y,e.scale=s?F(s.pointers,i):1,e.rotation=s?D(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,j(n,e);var l=t.element;g(e.srcEvent.target,l)&&(l=e.srcEvent.target),e.target=l}function R(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==It&&o.eventType!==Rt||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function j(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!=jt&&(a>Pt||s.velocity===u)){var c=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,h=B(a,c,l);i=h.x,r=h.y,n=bt(h.x)>bt(h.y)?h.x:h.y,o=L(c,l),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function k(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:gt(t.pointers[n].clientX),clientY:gt(t.pointers[n].clientY)},n++;return{timeStamp:Tt(),pointers:e,center:A(e),deltaX:t.deltaX,deltaY:t.deltaY}}function A(t){var e=t.length;if(1===e)return{x:gt(t[0].clientX),y:gt(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:gt(n/e),y:gt(i/e)}}function B(t,e,n){return{x:e/t||0,y:n/t||0}}function L(t,e){return t===e?kt:bt(t)>=bt(e)?t<0?At:Bt:e<0?Lt:Wt}function W(t,e,n){n||(n=zt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function N(t,e,n){n||(n=zt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function D(t,e){return N(e[1],e[0],Xt)+N(t[1],t[0],Xt)}function F(t,e){return W(e[0],e[1],Xt)/W(t[0],t[1],Xt)}function z(){this.evEl=Vt,this.evWin=qt,this.pressed=!1,C.apply(this,arguments)}function X(){this.evEl=Gt,this.evWin=Jt,C.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function Y(){this.evTarget=Kt,this.evWin=$t,this.started=!1,C.apply(this,arguments)}function V(t,e){var n=_(t.touches),i=_(t.changedTouches);return e&(Rt|jt)&&(n=S(n.concat(i),"identifier",!0)),[n,i]}function q(){this.evTarget=te,this.targetIds={},C.apply(this,arguments)}function H(t,e){var n=_(t.touches),i=this.targetIds;if(e&(It|Mt)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=_(t.changedTouches),u=[],a=this.target;if(o=n.filter(function(t){return g(t.target,a)}),e===It)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&u.push(s[r]),e&(Rt|jt)&&delete i[s[r].identifier],r++;return u.length?[S(o.concat(u),"identifier",!0),u]:void 0}function U(){C.apply(this,arguments);var t=p(this.handler,this);this.touch=new q(this.manager,t),this.mouse=new z(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function G(t,e){t&It?(this.primaryTouch=e.changedPointers[0].identifier,J.call(this,e)):t&(Rt|jt)&&J.call(this,e)}function J(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches,r=function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)};setTimeout(r,ee)}}function Z(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=ne&&s<=ne)return!0}return!1}function K(t,e){this.manager=t,this.set(e)}function $(t){if(b(t,ue))return ue;var e=b(t,ae),n=b(t,ce);return e&&n?ue:e||n?e?ae:ce:b(t,se)?se:oe}function Q(t){this.options=dt({},this.defaults,t||{}),this.id=w(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=he,this.simultaneous={},this.requireFail=[]}function tt(t){return t&ye?"cancel":t&de?"end":t&pe?"move":t&fe?"start":""}function et(t){return t==Wt?"down":t==Lt?"up":t==At?"left":t==Bt?"right":""}function nt(t,e){var n=e.manager;return n?n.get(t):t}function it(){Q.apply(this,arguments)}function rt(){it.apply(this,arguments),this.pX=null,this.pY=null}function ot(){it.apply(this,arguments)}function st(){Q.apply(this,arguments),this._timer=null,this._input=null}function ut(){it.apply(this,arguments)}function at(){it.apply(this,arguments)}function ct(){Q.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function lt(t,e){return e=e||{},e.recognizers=v(e.recognizers,lt.defaults.preset),new ht(t,e)}function ht(t,e){this.options=dt({},lt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=P(this),this.touchAction=new K(this,this.options.touchAction),ft(this,!0),l(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function ft(t,e){var n=t.element;if(n.style){var i;l(t.options.cssProps,function(r,o){i=O(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={})}}function pt(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var dt,vt=["","webkit","Moz","MS","ms","o"],yt=o.createElement("div"),mt="function",gt=Math.round,bt=Math.abs,Tt=Date.now;dt="function"!=typeof Object.assign?function(t){if(t===u||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==u&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var Et=h(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===u)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),_t=h(function(t,e){return Et(t,e,!0)},"merge","Use `assign`."),St=1,Ot=/mobile|tablet|ip(ad|hone|od)|android/i,wt="ontouchstart"in r,xt=O(r,"PointerEvent")!==u,Ct=wt&&Ot.test(navigator.userAgent),Pt=25,It=1,Mt=2,Rt=4,jt=8,kt=1,At=2,Bt=4,Lt=8,Wt=16,Nt=At|Bt,Dt=Lt|Wt,Ft=Nt|Dt,zt=["x","y"],Xt=["clientX","clientY"];C.prototype={handler:function(){},init:function(){this.evEl&&y(this.element,this.evEl,this.domHandler),this.evTarget&&y(this.target,this.evTarget,this.domHandler),this.evWin&&y(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(x(this.element),this.evWin,this.domHandler)}};var Yt={mousedown:It,mousemove:Mt,mouseup:Rt},Vt="mousedown",qt="mousemove mouseup";f(z,C,{handler:function(t){var e=Yt[t.type];e&It&&0===t.button&&(this.pressed=!0),e&Mt&&1!==t.which&&(e=Rt),this.pressed&&(e&Rt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var Ht={pointerdown:It,pointermove:Mt,pointerup:Rt,pointercancel:jt,pointerout:jt},Ut={2:"touch",3:"pen",4:"mouse",5:"kinect"},Gt="pointerdown",Jt="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Gt="MSPointerDown",Jt="MSPointerMove MSPointerUp MSPointerCancel"),f(X,C,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=Ht[i],o=Ut[t.pointerType]||t.pointerType,s="touch"==o,u=E(e,t.pointerId,"pointerId");r&It&&(0===t.button||s)?u<0&&(e.push(t),u=e.length-1):r&(Rt|jt)&&(n=!0),u<0||(e[u]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(u,1))}});var Zt={touchstart:It,touchmove:Mt,touchend:Rt,touchcancel:jt},Kt="touchstart",$t="touchstart touchmove touchend touchcancel";f(Y,C,{handler:function(t){var e=Zt[t.type];if(e===It&&(this.started=!0),this.started){var n=V.call(this,t,e);e&(Rt|jt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Qt={touchstart:It,touchmove:Mt,touchend:Rt,touchcancel:jt},te="touchstart touchmove touchend touchcancel";f(q,C,{handler:function(t){var e=Qt[t.type],n=H.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var ee=2500,ne=25;f(U,C,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)G.call(this,e,n);else if(r&&Z.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ie=O(yt.style,"touchAction"),re=ie!==u,oe="auto",se="manipulation",ue="none",ae="pan-x",ce="pan-y",le=function(){if(!re)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||r.CSS.supports("touch-action",n)}),t}();K.prototype={set:function(t){"compute"==t&&(t=this.compute()),re&&this.manager.element.style&&le[t]&&(this.manager.element.style[ie]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return l(this.manager.recognizers,function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),$(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,r=b(i,ue)&&!le[ue],o=b(i,ce)&&!le[ce],s=b(i,ae)&&!le[ae];if(r){var u=1===t.pointers.length,a=t.distance<2,c=t.deltaTime<250;if(u&&a&&c)return}return s&&o?void 0:r||o&&n&Nt||s&&n&Dt?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var he=1,fe=2,pe=4,de=8,ve=de,ye=16;Q.prototype={defaults:{},set:function(t){return dt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(c(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=nt(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return c(t,"dropRecognizeWith",this)?this:(t=nt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(c(t,"requireFailure",this))return this;var e=this.requireFail;return t=nt(t,this),-1===E(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(c(t,"dropRequireFailure",this))return this;t=nt(t,this);var e=E(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,i=this.state;i<de&&e(n.options.event+tt(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=de&&e(n.options.event+tt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|he)))return!1;t++}return!0},recognize:function(t){var e=dt({},t);if(!d(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(ve|ye|32)&&(this.state=he),this.state=this.process(e),this.state&(fe|pe|de|ye)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},f(it,Q,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(fe|pe),r=this.attrTest(t);return i&&(n&jt||!r)?e|ye:i||r?n&Rt?e|de:e&fe?e|pe:fe:32}}),f(rt,it,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ft},getTouchAction:function(){var t=this.options.direction,e=[];return t&Nt&&e.push(ce),t&Dt&&e.push(ae),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&Nt?(r=0===o?kt:o<0?At:Bt,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===s?kt:s<0?Lt:Wt,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return it.prototype.attrTest.call(this,t)&&(this.state&fe||!(this.state&fe)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=et(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),f(ot,it,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ue]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&fe)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),f(st,Q,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(Rt|jt)&&!r)this.reset();else if(t.eventType&It)this.reset(),this._timer=a(function(){this.state=ve,this.tryEmit()},e.time,this);else if(t.eventType&Rt)return ve;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ve&&(t&&t.eventType&Rt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Tt(),this.manager.emit(this.options.event,this._input)))}}),f(ut,it,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ue]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&fe)}}),f(at,it,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Nt|Dt,pointers:1},getTouchAction:function(){return rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Nt|Dt)?e=t.overallVelocity:n&Nt?e=t.overallVelocityX:n&Dt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&bt(e)>this.options.velocity&&t.eventType&Rt},emit:function(t){var e=et(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),f(ct,Q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[se]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&It&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=Rt)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||W(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=a(function(){this.state=ve,this.tryEmit()},e.interval,this),fe):ve}return 32},failTimeout:function(){return this._timer=a(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ve&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),lt.VERSION="2.0.7",lt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[ut,{enable:!1}],[ot,{enable:!1},["rotate"]],[at,{direction:Nt}],[rt,{direction:Nt},["swipe"]],[ct],[ct,{event:"doubletap",taps:2},["tap"]],[st]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ht.prototype={set:function(t){return dt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ve)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(fe|pe|de)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Q)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(c(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(c(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=E(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==u&&e!==u){var n=this.handlers;return l(T(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==u){var n=this.handlers;return l(T(t),function(t){e?n[t]&&n[t].splice(E(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&pt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&ft(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},dt(lt,{INPUT_START:It,INPUT_MOVE:Mt,INPUT_END:Rt,INPUT_CANCEL:jt,STATE_POSSIBLE:he,STATE_BEGAN:fe,STATE_CHANGED:pe,STATE_ENDED:de,STATE_RECOGNIZED:ve,STATE_CANCELLED:ye,STATE_FAILED:32,DIRECTION_NONE:kt,DIRECTION_LEFT:At,DIRECTION_RIGHT:Bt,DIRECTION_UP:Lt,DIRECTION_DOWN:Wt,DIRECTION_HORIZONTAL:Nt,DIRECTION_VERTICAL:Dt,DIRECTION_ALL:Ft,Manager:ht,Input:C,TouchAction:K,TouchInput:q,MouseInput:z,PointerEventInput:X,TouchMouseInput:U,SingleTouchInput:Y,Recognizer:Q,AttrRecognizer:it,Tap:ct,Pan:rt,Swipe:at,Pinch:ot,Rotate:ut,Press:st,on:y,off:m,each:l,merge:_t,extend:Et,assign:dt,inherit:f,bindFn:p,prefixed:O}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=lt,(i=function(){return lt}.call(e,n,e,t))!==u&&(t.exports=i)}(window,document)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(48),o=i(r),s=n(29),u=i(s),a=n(30),c=i(a),l=n(32),h=i(l),f=n(33),p=(i(f),n(34)),d=(i(p),{}),v=function(t){function e(n){return(0,u.default)(this,e),(0,c.default)(this,t.call(this,n))}return(0,h.default)(e,t),e.prototype.closeSwipes=function(t){(0,o.default)(d).filter(function(e){return e!==""+t}).forEach(function(t){return d[t].call()})},e.prototype.registerSwipe=function(t,e){d[t]=e},e.prototype.unRegisterSwipe=function(t){delete d[t]},e}(f.Component);e.default=v},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(42),o=i(r),s=n(35),u=i(s),a=n(29),c=i(a),l=n(30),h=i(l),f=n(32),p=i(f),d=n(33),v=(i(d),n(34)),y=(i(v),n(51)),m=i(y),g=function(t){function e(n){(0,c.default)(this,e);var i=(0,h.default)(this,t.call(this,n));return i.handleBtnClick=i.handleBtnClick.bind(i),i.initStyles(),i}return(0,p.default)(e,t),e.prototype.initStyles=function(){this.styles=m.default.ButtonStyles,this.containerStyles=(0,u.default)({},this.styles.container,this.props.action.style)},e.prototype.shouldComponentUpdate=function(){return!1},e.prototype.handleBtnClick=function(){this.props.action.onPress&&this.props.action.onPress.call(),this.props.onClickCallback(this.props.action)},e.prototype.render=function(){return(0,o.default)("div",{onClick:this.handleBtnClick,style:this.containerStyles},void 0,(0,o.default)("div",{style:this.styles.content},void 0,this.props.action.text))},e}(d.Component);e.default=g}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactButtonActions=e(require("react")):t.ReactButtonActions=e(t.react)}(this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=52)}([function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(40),r=n(17);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(1),r=n(0),o=n(36),s=n(5),u=function(t,e,n){var a,c,l,h=t&u.F,f=t&u.G,p=t&u.S,d=t&u.P,v=t&u.B,y=t&u.W,m=f?r:r[e]||(r[e]={}),g=m.prototype,b=f?i:p?i[e]:(i[e]||{}).prototype;f&&(n=e);for(a in n)(c=!h&&b&&void 0!==b[a])&&a in m||(l=c?b[a]:n[a],m[a]=f&&"function"!=typeof b[a]?n[a]:v&&c?o(l,i):y&&b[a]==l?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):d&&"function"==typeof l?o(Function.call,l):l,d&&((m.virtual||(m.virtual={}))[a]=l,t&u.R&&g&&!g[a]&&s(g,a,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var i=n(6),r=n(13);t.exports=n(7)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(11),r=n(37),o=n(16),s=Object.defineProperty;e.f=n(7)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(39),r=n(21);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(20)("wks"),r=n(14),o=n(1).Symbol,s="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))}).store=i},function(t,e,n){var i=n(12);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(12);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(20)("keys"),r=n(14);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){var i=n(1),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return r[t]||(r[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(17);t.exports=function(t){return Object(i(t))}},function(t,e,n){var i=n(6).f,r=n(2),o=n(10)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){e.f=n(10)},function(t,e,n){var i=n(1),r=n(0),o=n(27),s=n(25),u=n(6).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:s.f(t)})}},function(t,e){t.exports=!0},function(t,e,n){var i=n(11),r=n(67),o=n(21),s=n(19)("IE_PROTO"),u=function(){},a=function(){var t,e=n(38)("iframe"),i=o.length;for(e.style.display="none",n(68).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;i--;)delete a.prototype[o[i]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=i(t),n=new u,u.prototype=null,n[s]=t):n=a(),void 0===e?n:r(n,e)}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(49),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,r.default)(e))&&"function"!=typeof e?t:e}},function(t,e){t.exports={}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(87),o=i(r),s=n(91),u=i(s),a=n(49),c=i(a);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,c.default)(e)));t.prototype=(0,u.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(e,n){e.exports=t},function(t,e,n){t.exports=n(94)()},function(t,e,n){"use strict";e.__esModule=!0;var i=n(53),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(t,e,n){var i=n(56);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){t.exports=!n(7)&&!n(8)(function(){return 7!=Object.defineProperty(n(38)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(12),r=n(1).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){var i=n(2),r=n(3),o=n(58)(!1),s=n(19)("IE_PROTO");t.exports=function(t,e){var n,u=r(t),a=0,c=[];for(n in u)n!=s&&i(u,n)&&c.push(n);for(;e.length>a;)i(u,n=e[a++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var i=n(41);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(61),o=i(r),s=n(47),u=i(s);e.default=function(){var t="function"==typeof u.default&&o.default&&(0,o.default)("react.element")||60103;return function(e,n,i,r){var o=e&&e.defaultProps,s=arguments.length-3;if(n||0===s||(n={}),n&&o)for(var u in o)void 0===n[u]&&(n[u]=o[u]);else n||(n=o||{});if(1===s)n.children=r;else if(s>1){for(var a=Array(s),c=0;c<s;c++)a[c]=arguments[c+3];n.children=a}return{$$typeof:t,type:e,key:void 0===i?null:""+i,ref:null,props:n,_owner:null}}}()},function(t,e,n){"use strict";var i=n(1),r=n(2),o=n(7),s=n(4),u=n(44),a=n(63).KEY,c=n(8),l=n(20),h=n(24),f=n(14),p=n(10),d=n(25),v=n(26),y=n(64),m=n(65),g=n(66),b=n(11),T=n(3),E=n(16),_=n(13),S=n(28),O=n(69),w=n(46),x=n(6),C=n(9),P=w.f,I=x.f,M=O.f,R=i.Symbol,j=i.JSON,k=j&&j.stringify,A=p("_hidden"),B=p("toPrimitive"),L={}.propertyIsEnumerable,W=l("symbol-registry"),N=l("symbols"),D=l("op-symbols"),F=Object.prototype,z="function"==typeof R,X=i.QObject,Y=!X||!X.prototype||!X.prototype.findChild,V=o&&c(function(){return 7!=S(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=P(F,e);i&&delete F[e],I(t,e,n),i&&t!==F&&I(F,e,i)}:I,q=function(t){var e=N[t]=S(R.prototype);return e._k=t,e},H=z&&"symbol"==typeof R.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof R},U=function(t,e,n){return t===F&&U(D,e,n),b(t),e=E(e,!0),b(n),r(N,e)?(n.enumerable?(r(t,A)&&t[A][e]&&(t[A][e]=!1),n=S(n,{enumerable:_(0,!1)})):(r(t,A)||I(t,A,_(1,{})),t[A][e]=!0),V(t,e,n)):I(t,e,n)},G=function(t,e){b(t);for(var n,i=m(e=T(e)),r=0,o=i.length;o>r;)U(t,n=i[r++],e[n]);return t},K=function(t,e){return void 0===e?S(t):G(S(t),e)},J=function(t){var e=L.call(this,t=E(t,!0));return!(this===F&&r(N,t)&&!r(D,t))&&(!(e||!r(this,t)||!r(N,t)||r(this,A)&&this[A][t])||e)},Z=function(t,e){if(t=T(t),e=E(e,!0),t!==F||!r(N,e)||r(D,e)){var n=P(t,e);return!n||!r(N,e)||r(t,A)&&t[A][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=M(T(t)),i=[],o=0;n.length>o;)r(N,e=n[o++])||e==A||e==a||i.push(e);return i},Q=function(t){for(var e,n=t===F,i=M(n?D:T(t)),o=[],s=0;i.length>s;)!r(N,e=i[s++])||n&&!r(F,e)||o.push(N[e]);return o};z||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===F&&e.call(D,n),r(this,A)&&r(this[A],t)&&(this[A][t]=!1),V(this,t,_(1,n))};return o&&Y&&V(F,t,{configurable:!0,set:e}),q(t)},u(R.prototype,"toString",function(){return this._k}),w.f=Z,x.f=U,n(45).f=O.f=$,n(15).f=J,n(22).f=Q,o&&!n(27)&&u(F,"propertyIsEnumerable",J,!0),d.f=function(t){return q(p(t))}),s(s.G+s.W+s.F*!z,{Symbol:R});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)p(tt[et++]);for(var tt=C(p.store),et=0;tt.length>et;)v(tt[et++]);s(s.S+s.F*!z,"Symbol",{for:function(t){return r(W,t+="")?W[t]:W[t]=R(t)},keyFor:function(t){if(H(t))return y(W,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),s(s.S+s.F*!z,"Object",{create:K,defineProperty:U,defineProperties:G,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:Q}),j&&s(s.S+s.F*(!z||c(function(){var t=R();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);return e=i[1],"function"==typeof e&&(n=e),!n&&g(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!H(e))return e}),i[1]=e,k.apply(j,i)}}}),R.prototype[B]||n(5)(R.prototype,B,R.prototype.valueOf),h(R,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},function(t,e,n){t.exports=n(5)},function(t,e,n){var i=n(39),r=n(21).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){var i=n(15),r=n(13),o=n(3),s=n(16),u=n(2),a=n(37),c=Object.getOwnPropertyDescriptor;e.f=n(7)?c:function(t,e){if(t=o(t),e=s(e,!0),a)try{return c(t,e)}catch(t){}if(u(t,e))return r(!i.f.call(t,e),t[e])}},function(t,e,n){t.exports={default:n(70),__esModule:!0}},function(t,e,n){t.exports={default:n(74),__esModule:!0}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(77),o=i(r),s=n(47),u=i(s),a="function"==typeof u.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===a(o.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":a(t)}},function(t,e,n){"use strict";var i=n(27),r=n(4),o=n(44),s=n(5),u=n(2),a=n(31),c=n(81),l=n(24),h=n(82),f=n(10)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,y,m,g){c(n,e,v);var b,T,E,_=function(t){if(!p&&t in x)return x[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",O="values"==y,w=!1,x=t.prototype,C=x[f]||x["@@iterator"]||y&&x[y],P=C||_(y),I=y?O?_("entries"):P:void 0,M="Array"==e?x.entries||C:C;if(M&&(E=h(M.call(new t)))!==Object.prototype&&(l(E,S,!0),i||u(E,f)||s(E,f,d)),O&&C&&"values"!==C.name&&(w=!0,P=function(){return C.call(this)}),i&&!g||!p&&!w&&x[f]||s(x,f,P),a[e]=P,a[S]=d,y)if(b={values:O?P:_("values"),keys:m?P:_("keys"),entries:I},g)for(T in b)T in x||o(x,T,b[T]);else r(r.P+r.F*(p||w),e,b);return b}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={SwipeStyles:{overlayStyles:{zIndex:2,transition:"transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1)"},baseSwipeContainerStyles:{overflow:"hidden",position:"relative"},buttonsContainerStyles:{zIndex:1,height:"100%"},rightContainerStyles:{transition:"transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1)",height:"100%",alignItems:"center",bottom:"0",display:"flex",position:"absolute",right:"0",transform:"scale3d(0, 1, 1)",transformOrigin:"right"},leftContainerStyles:{transition:"transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1)",height:"100%",transform:"scale3d(0, 1, 1)",alignItems:"center",bottom:"0",display:"flex",position:"absolute",left:"0",transformOrigin:"left"}},ButtonStyles:{container:{cursor:"pointer",flex:"1",display:"flex",height:"100%",alignItems:"center",textAlign:"center"},content:{flex:1}}};e.default=i,e.SwipeStyles=i.SwipeStyles,e.ButtonStyles=i.ButtonStyles},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r,o,s=n(35),u=i(s),a=n(42),c=i(a),l=n(48),h=i(l),f=n(29),p=i(f),d=n(30),v=i(d),y=n(32),m=i(y),g=n(33),b=i(g),T=n(34),E=i(T),_=n(98),S=i(_),O=n(99),w=i(O),x=n(100),C=i(x),P=n(51),I=i(P),M=function(t,e){return Math.min(t/e,1)},R=function(t,e){return Math.max(1-t/e,0)},j=(o=r=function(t){function e(n){(0,p.default)(this,e);var i=(0,v.default)(this,t.call(this,n));return i.deinitialize=function(){i.unRegisterSwipe(i.swipeId),i.resetEvents()},i.close=function(){i.resetOverlay()},i.resetButtons=function(){i.translateOverlay(0),i.transformLeftButton(0),i.transformRightButton(0),i.leftIsVisible=!1,i.rightIsVisible=!1},i.initialize=function(){i.hasEvents()&&i.constraintsAreValid()&&(i.initTouchEvents(),i.initSizes(),i.isLinkedToOthers&&i.registerSwipe(i.swipeId,i.resetOverlay))},i.bindOverlayRef=function(t){i.overlay=t},i.bindContainerRef=function(t){i.container=t},i.styles=I.default.SwipeStyles,i.swipeId=Math.floor(1e3*Math.random()),i.btnsLeftWidth=0,i.btnsRightWidth=0,i.bindedEvents={},i.childrenProps={},i.shouldShowRight=!1,i.shouldShowLeft=!1,i.leftIsVisible=!1,i.rightIsVisible=!1,i.shouldCloseAutomatically=!1!==n.autoclose,i.isLinkedToOthers=!1!==n.linked,i.isFullWidth=!0===n.fullwidth,i.initBindings(),i.treshold=0,i}return(0,m.default)(e,t),e.prototype.initBindings=function(){this.resetOverlay=this.resetOverlay.bind(this),this.handleBtnClick=this.handleBtnClick.bind(this),this.showRightMenu=this.showRightMenu.bind(this),this.showLeftMenu=this.showLeftMenu.bind(this),this.onPanStart=this.onPanStart.bind(this),this.onPanEnd=this.onPanEnd.bind(this),this.initSizes=this.initSizes.bind(this),this.onLeftPan=this.onLeftPan.bind(this),this.onRightPan=this.onRightPan.bind(this),this.initTouchEvents=this.initTouchEvents.bind(this),this.resetEvents=this.resetEvents.bind(this),this.handleContainerClick=this.handleContainerClick.bind(this)},e.prototype.componentWillUnmount=function(){this.deinitialize()},e.prototype.onPanStart=function(t){this.panStartDelta=t.deltaX},e.prototype.resetOverlay=function(){(this.leftIsVisible||this.rightIsVisible)&&(this.onClose(),this.resetButtons())},e.prototype.showRightMenu=function(){this.onClose(),this.translateOverlay(-this.btnsRightWidth),this.transformLeftButton(0),this.transformRightButton(1),this.leftIsVisible=!1,this.rightIsVisible=!0,this.onOpen()},e.prototype.showLeftMenu=function(){this.onClose(),this.translateOverlay(this.btnsLeftWidth),this.transformLeftButton(1),this.transformRightButton(0),this.leftIsVisible=!0,this.rightIsVisible=!1,this.onOpen()},e.prototype.onPanEnd=function(t){return this.shouldShowRight=this.refs.rightBtnContainer&&t.deltaX<0&&t.distance>this.treshold,this.shouldShowLeft=this.refs.leftBtnContainer&&t.deltaX>0&&t.distance>this.treshold,this.shouldShowRight||this.shouldShowLeft?this.shouldShowRight?this.showRightMenu():this.shouldShowLeft?this.showLeftMenu():void 0:this.resetOverlay()},e.prototype.transformButtons=function(t){var e=t>0,n=e?t:-1*t,i=e?M:R,r=e?R:M,o=i(n,this.btnsLeftWidth),s=r(n,this.btnsRightWidth);this.transformLeftButton(o),this.transformRightButton(s)},e.prototype.transformLeftButton=function(t){this.refs.leftBtnContainer&&(this.refs.leftBtnContainer.style.transform="scale3d("+t+", 1, 1)")},e.prototype.transformRightButton=function(t){this.refs.rightBtnContainer&&(this.refs.rightBtnContainer.style.transform="scale3d("+t+", 1, 1)")},e.prototype.translateOverlay=function(t){this.overlay&&(this.overlay.style.transform="translate3d("+t+"px,0px,0px)")},e.prototype.onLeftPan=function(t){var e=this.getMovement(t.deltaX,t.velocityX),n=Math.max(e,-1*this.btnsRightWidth);this.translateOverlay(n),this.transformButtons(e)},e.prototype.onOpen=function(){this.props.onOpen&&this.props.onOpen.call(),this.isLinkedToOthers&&this.closeSwipes(this.swipeId)},e.prototype.onClose=function(){var t=this.rightIsVisible||this.leftIsVisible;if(this.props.onClose&&t){var e=this.rightIsVisible?this.props.right:this.props.left;return this.props.onClose.call(null,e)}},e.prototype.getMovement=function(t,e){return Math.round(t-this.panStartDelta*(1+e))},e.prototype.onRightPan=function(t){var e=this.getMovement(t.deltaX,t.velocityX),n=Math.min(e,this.btnsLeftWidth);this.translateOverlay(n),this.transformButtons(e)},e.prototype.getEvents=function(){var t=this.props;return{left:t.left,right:t.right,onOpen:t.onOpen,onClose:t.onClose}},e.prototype.getNbButtonsBySide=function(){var t=this.getEvents(),e=t.left,n=t.right;return{leftLength:e&&e.length?e.length:0,rightLength:n&&n.length?n.length:0}},e.prototype.hasEvents=function(){var t=this.getEvents(),e=t.left,n=t.right;return t.onOpen,t.onClose,!!e||!!n},e.prototype.resetSwipeEvents=function(){var t=(0,h.default)(this.bindedEvents).join(" ");this.hammer.off(t),this.hammer.destroy()},e.prototype.resetTapEvents=function(){this.containerHammer.off("tap"),this.containerHammer.destroy()},e.prototype.resetEvents=function(){this.resetTapEvents(),this.resetSwipeEvents()},e.prototype.registerEvent=function(t){this.bindedEvents[t]=!0},e.prototype.initEventsFromProps=function(){var t=this.getEvents();(t.left||t.right)&&(this.registerEvent("panstart"),this.hammer.on("panstart",this.onPanStart),this.hammer.on("panend",this.onPanEnd),this.registerEvent("panleft"),this.hammer.on("panleft",this.onLeftPan),this.registerEvent("panright"),this.hammer.on("panright",this.onRightPan))},e.prototype.initTouchEvents=function(){this.containerHammer=new S.default(this.container),this.containerHammer.add(new S.default.Tap),this.containerHammer.on("tap",this.handleContainerClick),this.hammer=new S.default(this.overlay),this.hammer.get("pan").set({direction:S.default.DIRECTION_HORIZONTAL}),this.initEventsFromProps()},e.prototype.initSizes=function(){this.overlayWidth=this.container.offsetWidth,this.overlay.style.width=this.overlayWidth+"px";var t=this.getNbButtonsBySide(),e=t.leftLength,n=t.rightLength;this.btnsLeftWidth=this.isFullWidth&&e?this.overlayWidth:this.overlayWidth/4.5*e,this.btnsRightWidth=this.isFullWidth&&n?this.overlayWidth:this.overlayWidth/4.5*n,this.refs.rightBtnContainer&&(this.refs.rightBtnContainer.style.width=this.btnsRightWidth+"px"),this.refs.leftBtnContainer&&(this.refs.leftBtnContainer.style.width=this.btnsLeftWidth+"px"),this.treshold=Math.round(this.overlayWidth/4.5)},e.prototype.checkFullWidthConstraints=function(){if(!1===this.isFullWidth)return!0;var t=this.getNbButtonsBySide(),e=t.leftLength,n=t.rightLength;if(e>1||n>1)throw new Error("^^^^^^ react-action-buttons : Can't make a fullWidth swipe with more than 1 item");return!0},e.prototype.constraintsAreValid=function(){return this.checkFullWidthConstraints()},e.prototype.componentDidMount=function(){this.initialize()},e.prototype.handleBtnClick=function(t){this.shouldCloseAutomatically&&this.resetOverlay()},e.prototype.renderLeftButtons=function(){var t=this;return this.props.left&&this.props.left.length?b.default.createElement("div",{className:"leftBtnContainer",key:"leftBtnContainer",style:this.styles.leftContainerStyles,ref:"leftBtnContainer"},this.props.left.map(function(e,n){return(0,c.default)(C.default,{onClickCallback:t.handleBtnClick,action:e},n)})):""},e.prototype.renderRightButtons=function(){var t=this;return this.props.right&&this.props.right.length?b.default.createElement("div",{className:"rightBtnContainer",key:"rightBtnContainer",ref:"rightBtnContainer",style:this.styles.rightContainerStyles},this.props.right.map(function(e,n){return(0,c.default)(C.default,{action:e,onClickCallback:t.handleBtnClick},n)})):""},e.prototype.renderButtons=function(){return this.hasEvents()?(0,c.default)("div",{className:"buttonsContainer",style:this.styles.buttonsContainerStyles},void 0,this.renderLeftButtons(),this.renderRightButtons()):""},e.prototype.handleContainerClick=function(){this.props.onPress&&this.props.onPress.call(),this.shouldCloseAutomatically&&this.resetOverlay()},e.prototype.update=function(){this.initSizes(),this.resetButtons()},e.prototype.componentWillReceiveProps=function(t){t.updateKey!==this.props.updateKey&&this.update()},e.prototype.render=function(){var t=(0,u.default)({},this.styles.baseSwipeContainerStyles,this.props.style);return b.default.createElement("div",{ref:this.bindContainerRef,className:"swipeContainer",style:t},this.renderButtons(),b.default.createElement("div",{style:this.styles.overlayStyles,className:"swipeOverlay",ref:this.bindOverlayRef},b.default.cloneElement(this.props.children)))},e}(w.default),r.propTypes={onPress:E.default.func,autoclose:E.default.bool,style:E.default.object,linked:E.default.bool,fullwidth:E.default.bool,updateKey:E.default.oneOfType([E.default.string,E.default.number,E.default.bool]),left:E.default.array,right:E.default.array,onOpen:E.default.func,onClose:E.default.func},o);e.default=j},function(t,e,n){t.exports={default:n(54),__esModule:!0}},function(t,e,n){n(55),t.exports=n(0).Object.assign},function(t,e,n){var i=n(4);i(i.S+i.F,"Object",{assign:n(57)})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var i=n(9),r=n(22),o=n(15),s=n(23),u=n(40),a=Object.assign;t.exports=!a||n(8)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=i})?function(t,e){for(var n=s(t),a=arguments.length,c=1,l=r.f,h=o.f;a>c;)for(var f,p=u(arguments[c++]),d=l?i(p).concat(l(p)):i(p),v=d.length,y=0;v>y;)h.call(p,f=d[y++])&&(n[f]=p[f]);return n}:a},function(t,e,n){var i=n(3),r=n(59),o=n(60);t.exports=function(t){return function(e,n,s){var u,a=i(e),c=r(a.length),l=o(s,c);if(t&&n!=n){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var i=n(18),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){var i=n(18),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},function(t,e,n){t.exports={default:n(62),__esModule:!0}},function(t,e,n){n(43),t.exports=n(0).Symbol.for},function(t,e,n){var i=n(14)("meta"),r=n(12),o=n(2),s=n(6).f,u=0,a=Object.isExtensible||function(){return!0},c=!n(8)(function(){return a(Object.preventExtensions({}))}),l=function(t){s(t,i,{value:{i:"O"+ ++u,w:{}}})},h=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!a(t))return"F";if(!e)return"E";l(t)}return t[i].i},f=function(t,e){if(!o(t,i)){if(!a(t))return!0;if(!e)return!1;l(t)}return t[i].w},p=function(t){return c&&d.NEED&&a(t)&&!o(t,i)&&l(t),t},d=t.exports={KEY:i,NEED:!1,fastKey:h,getWeak:f,onFreeze:p}},function(t,e,n){var i=n(9),r=n(3);t.exports=function(t,e){for(var n,o=r(t),s=i(o),u=s.length,a=0;u>a;)if(o[n=s[a++]]===e)return n}},function(t,e,n){var i=n(9),r=n(22),o=n(15);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var s,u=n(t),a=o.f,c=0;u.length>c;)a.call(t,s=u[c++])&&e.push(s);return e}},function(t,e,n){var i=n(41);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(6),r=n(11),o=n(9);t.exports=n(7)?Object.defineProperties:function(t,e){r(t);for(var n,s=o(e),u=s.length,a=0;u>a;)i.f(t,n=s[a++],e[n]);return t}},function(t,e,n){t.exports=n(1).document&&document.documentElement},function(t,e,n){var i=n(3),r=n(45).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return r(t)}catch(t){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?u(t):r(i(t))}},function(t,e,n){n(43),n(71),n(72),n(73),t.exports=n(0).Symbol},function(t,e){},function(t,e,n){n(26)("asyncIterator")},function(t,e,n){n(26)("observable")},function(t,e,n){n(75),t.exports=n(0).Object.keys},function(t,e,n){var i=n(23),r=n(9);n(76)("keys",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(4),r=n(0),o=n(8);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],s={};s[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",s)}},function(t,e,n){t.exports={default:n(78),__esModule:!0}},function(t,e,n){n(79),n(83),t.exports=n(25).f("iterator")},function(t,e,n){"use strict";var i=n(80)(!0);n(50)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var i=n(18),r=n(17);t.exports=function(t){return function(e,n){var o,s,u=String(r(e)),a=i(n),c=u.length;return a<0||a>=c?t?"":void 0:(o=u.charCodeAt(a),o<55296||o>56319||a+1===c||(s=u.charCodeAt(a+1))<56320||s>57343?t?u.charAt(a):o:t?u.slice(a,a+2):s-56320+(o-55296<<10)+65536)}}},function(t,e,n){"use strict";var i=n(28),r=n(13),o=n(24),s={};n(5)(s,n(10)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var i=n(2),r=n(23),o=n(19)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){n(84);for(var i=n(1),r=n(5),o=n(31),s=n(10)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],a=0;a<5;a++){var c=u[a],l=i[c],h=l&&l.prototype;h&&!h[s]&&r(h,s,c),o[c]=o.Array}},function(t,e,n){"use strict";var i=n(85),r=n(86),o=n(31),s=n(3);t.exports=n(50)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(88),__esModule:!0}},function(t,e,n){n(89),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){var i=n(4);i(i.S,"Object",{setPrototypeOf:n(90).set})},function(t,e,n){var i=n(12),r=n(11),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n(36)(Function.call,n(46).f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){t.exports={default:n(92),__esModule:!0}},function(t,e,n){n(93);var i=n(0).Object;t.exports=function(t,e){return i.create(t,e)}},function(t,e,n){var i=n(4);i(i.S,"Object",{create:n(28)})},function(t,e,n){"use strict";var i=n(95),r=n(96),o=n(97);t.exports=function(){function t(t,e,n,i,s,u){u!==o&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=i,n.PropTypes=n,n}},function(t,e,n){"use strict";function i(t){return function(){return t}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";function i(t,e,n,i,o,s,u,a){if(r(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,o,s,u,a],h=0;c=new Error(e.replace(/%s/g,function(){return l[h++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(t){};t.exports=i},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var i;!function(r,o,s,u){"use strict";function a(t,e,n){return setTimeout(p(t,n),e)}function c(t,e,n){return!!Array.isArray(t)&&(l(t,n[e],n),!0)}function l(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==u)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function h(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}function f(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&dt(i,n)}function p(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==mt?t.apply(e?e[0]||u:u,e):t}function v(t,e){return t===u?e:t}function y(t,e,n){l(T(e),function(e){t.addEventListener(e,n,!1)})}function m(t,e,n){l(T(e),function(e){t.removeEventListener(e,n,!1)})}function g(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function b(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function E(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function _(t){return Array.prototype.slice.call(t,0)}function S(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];E(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function O(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<vt.length;){if(n=vt[o],(i=n?n+r:e)in t)return i;o++}return u}function w(){return St++}function x(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function C(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&n.handler(e)},this.init()}function P(t){return new(t.options.inputClass||(xt?X:Ct?q:wt?U:z))(t,I)}function I(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&It&&i-r==0,s=e&(Rt|jt)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,M(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function M(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=k(e)),r>1&&!n.firstMultiple?n.firstMultiple=k(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,u=s?s.center:o.center,a=e.center=A(i);e.timeStamp=Tt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=N(u,a),e.distance=W(u,a),R(n,e),e.offsetDirection=L(e.deltaX,e.deltaY);var c=B(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=bt(c.x)>bt(c.y)?c.x:c.y,e.scale=s?F(s.pointers,i):1,e.rotation=s?D(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,j(n,e);var l=t.element;g(e.srcEvent.target,l)&&(l=e.srcEvent.target),e.target=l}function R(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==It&&o.eventType!==Rt||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function j(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!=jt&&(a>Pt||s.velocity===u)){var c=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,h=B(a,c,l);i=h.x,r=h.y,n=bt(h.x)>bt(h.y)?h.x:h.y,o=L(c,l),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function k(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:gt(t.pointers[n].clientX),clientY:gt(t.pointers[n].clientY)},n++;return{timeStamp:Tt(),pointers:e,center:A(e),deltaX:t.deltaX,deltaY:t.deltaY}}function A(t){var e=t.length;if(1===e)return{x:gt(t[0].clientX),y:gt(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:gt(n/e),y:gt(i/e)}}function B(t,e,n){return{x:e/t||0,y:n/t||0}}function L(t,e){return t===e?kt:bt(t)>=bt(e)?t<0?At:Bt:e<0?Lt:Wt}function W(t,e,n){n||(n=zt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function N(t,e,n){n||(n=zt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function D(t,e){return N(e[1],e[0],Xt)+N(t[1],t[0],Xt)}function F(t,e){return W(e[0],e[1],Xt)/W(t[0],t[1],Xt)}function z(){this.evEl=Vt,this.evWin=qt,this.pressed=!1,C.apply(this,arguments)}function X(){this.evEl=Gt,this.evWin=Kt,C.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function Y(){this.evTarget=Zt,this.evWin=$t,this.started=!1,C.apply(this,arguments)}function V(t,e){var n=_(t.touches),i=_(t.changedTouches);return e&(Rt|jt)&&(n=S(n.concat(i),"identifier",!0)),[n,i]}function q(){this.evTarget=te,this.targetIds={},C.apply(this,arguments)}function H(t,e){var n=_(t.touches),i=this.targetIds;if(e&(It|Mt)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=_(t.changedTouches),u=[],a=this.target;if(o=n.filter(function(t){return g(t.target,a)}),e===It)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&u.push(s[r]),e&(Rt|jt)&&delete i[s[r].identifier],r++;return u.length?[S(o.concat(u),"identifier",!0),u]:void 0}function U(){C.apply(this,arguments);var t=p(this.handler,this);this.touch=new q(this.manager,t),this.mouse=new z(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function G(t,e){t&It?(this.primaryTouch=e.changedPointers[0].identifier,K.call(this,e)):t&(Rt|jt)&&K.call(this,e)}function K(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches,r=function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)};setTimeout(r,ee)}}function J(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=ne&&s<=ne)return!0}return!1}function Z(t,e){this.manager=t,this.set(e)}function $(t){if(b(t,ue))return ue;var e=b(t,ae),n=b(t,ce);return e&&n?ue:e||n?e?ae:ce:b(t,se)?se:oe}function Q(t){this.options=dt({},this.defaults,t||{}),this.id=w(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=he,this.simultaneous={},this.requireFail=[]}function tt(t){return t&ye?"cancel":t&de?"end":t&pe?"move":t&fe?"start":""}function et(t){return t==Wt?"down":t==Lt?"up":t==At?"left":t==Bt?"right":""}function nt(t,e){var n=e.manager;return n?n.get(t):t}function it(){Q.apply(this,arguments)}function rt(){it.apply(this,arguments),this.pX=null,this.pY=null}function ot(){it.apply(this,arguments)}function st(){Q.apply(this,arguments),this._timer=null,this._input=null}function ut(){it.apply(this,arguments)}function at(){it.apply(this,arguments)}function ct(){Q.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function lt(t,e){return e=e||{},e.recognizers=v(e.recognizers,lt.defaults.preset),new ht(t,e)}function ht(t,e){this.options=dt({},lt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=P(this),this.touchAction=new Z(this,this.options.touchAction),ft(this,!0),l(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function ft(t,e){var n=t.element;if(n.style){var i;l(t.options.cssProps,function(r,o){i=O(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={})}}function pt(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var dt,vt=["","webkit","Moz","MS","ms","o"],yt=o.createElement("div"),mt="function",gt=Math.round,bt=Math.abs,Tt=Date.now;dt="function"!=typeof Object.assign?function(t){if(t===u||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==u&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var Et=h(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===u)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),_t=h(function(t,e){return Et(t,e,!0)},"merge","Use `assign`."),St=1,Ot=/mobile|tablet|ip(ad|hone|od)|android/i,wt="ontouchstart"in r,xt=O(r,"PointerEvent")!==u,Ct=wt&&Ot.test(navigator.userAgent),Pt=25,It=1,Mt=2,Rt=4,jt=8,kt=1,At=2,Bt=4,Lt=8,Wt=16,Nt=At|Bt,Dt=Lt|Wt,Ft=Nt|Dt,zt=["x","y"],Xt=["clientX","clientY"];C.prototype={handler:function(){},init:function(){this.evEl&&y(this.element,this.evEl,this.domHandler),this.evTarget&&y(this.target,this.evTarget,this.domHandler),this.evWin&&y(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(x(this.element),this.evWin,this.domHandler)}};var Yt={mousedown:It,mousemove:Mt,mouseup:Rt},Vt="mousedown",qt="mousemove mouseup";f(z,C,{handler:function(t){var e=Yt[t.type];e&It&&0===t.button&&(this.pressed=!0),e&Mt&&1!==t.which&&(e=Rt),this.pressed&&(e&Rt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var Ht={pointerdown:It,pointermove:Mt,pointerup:Rt,pointercancel:jt,pointerout:jt},Ut={2:"touch",3:"pen",4:"mouse",5:"kinect"},Gt="pointerdown",Kt="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Gt="MSPointerDown",Kt="MSPointerMove MSPointerUp MSPointerCancel"),f(X,C,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=Ht[i],o=Ut[t.pointerType]||t.pointerType,s="touch"==o,u=E(e,t.pointerId,"pointerId");r&It&&(0===t.button||s)?u<0&&(e.push(t),u=e.length-1):r&(Rt|jt)&&(n=!0),u<0||(e[u]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(u,1))}});var Jt={touchstart:It,touchmove:Mt,touchend:Rt,touchcancel:jt},Zt="touchstart",$t="touchstart touchmove touchend touchcancel";f(Y,C,{handler:function(t){var e=Jt[t.type];if(e===It&&(this.started=!0),this.started){var n=V.call(this,t,e);e&(Rt|jt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Qt={touchstart:It,touchmove:Mt,touchend:Rt,touchcancel:jt},te="touchstart touchmove touchend touchcancel";f(q,C,{handler:function(t){var e=Qt[t.type],n=H.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var ee=2500,ne=25;f(U,C,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)G.call(this,e,n);else if(r&&J.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ie=O(yt.style,"touchAction"),re=ie!==u,oe="auto",se="manipulation",ue="none",ae="pan-x",ce="pan-y",le=function(){if(!re)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||r.CSS.supports("touch-action",n)}),t}();Z.prototype={set:function(t){"compute"==t&&(t=this.compute()),re&&this.manager.element.style&&le[t]&&(this.manager.element.style[ie]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return l(this.manager.recognizers,function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),$(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,r=b(i,ue)&&!le[ue],o=b(i,ce)&&!le[ce],s=b(i,ae)&&!le[ae];if(r){var u=1===t.pointers.length,a=t.distance<2,c=t.deltaTime<250;if(u&&a&&c)return}return s&&o?void 0:r||o&&n&Nt||s&&n&Dt?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var he=1,fe=2,pe=4,de=8,ve=de,ye=16;Q.prototype={defaults:{},set:function(t){return dt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(c(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=nt(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return c(t,"dropRecognizeWith",this)?this:(t=nt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(c(t,"requireFailure",this))return this;var e=this.requireFail;return t=nt(t,this),-1===E(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(c(t,"dropRequireFailure",this))return this;t=nt(t,this);var e=E(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,i=this.state;i<de&&e(n.options.event+tt(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=de&&e(n.options.event+tt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|he)))return!1;t++}return!0},recognize:function(t){var e=dt({},t);if(!d(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(ve|ye|32)&&(this.state=he),this.state=this.process(e),this.state&(fe|pe|de|ye)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},f(it,Q,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(fe|pe),r=this.attrTest(t);return i&&(n&jt||!r)?e|ye:i||r?n&Rt?e|de:e&fe?e|pe:fe:32}}),f(rt,it,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ft},getTouchAction:function(){var t=this.options.direction,e=[];return t&Nt&&e.push(ce),t&Dt&&e.push(ae),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&Nt?(r=0===o?kt:o<0?At:Bt,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===s?kt:s<0?Lt:Wt,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return it.prototype.attrTest.call(this,t)&&(this.state&fe||!(this.state&fe)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=et(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),f(ot,it,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ue]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&fe)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),f(st,Q,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(Rt|jt)&&!r)this.reset();else if(t.eventType&It)this.reset(),this._timer=a(function(){this.state=ve,this.tryEmit()},e.time,this);else if(t.eventType&Rt)return ve;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ve&&(t&&t.eventType&Rt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Tt(),this.manager.emit(this.options.event,this._input)))}}),f(ut,it,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ue]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&fe)}}),f(at,it,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Nt|Dt,pointers:1},getTouchAction:function(){return rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Nt|Dt)?e=t.overallVelocity:n&Nt?e=t.overallVelocityX:n&Dt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&bt(e)>this.options.velocity&&t.eventType&Rt},emit:function(t){var e=et(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),f(ct,Q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[se]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&It&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=Rt)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||W(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=a(function(){this.state=ve,this.tryEmit()},e.interval,this),fe):ve}return 32},failTimeout:function(){return this._timer=a(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ve&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),lt.VERSION="2.0.7",lt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[ut,{enable:!1}],[ot,{enable:!1},["rotate"]],[at,{direction:Nt}],[rt,{direction:Nt},["swipe"]],[ct],[ct,{event:"doubletap",taps:2},["tap"]],[st]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ht.prototype={set:function(t){return dt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ve)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(fe|pe|de)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Q)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(c(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(c(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=E(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==u&&e!==u){var n=this.handlers;return l(T(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==u){var n=this.handlers;return l(T(t),function(t){e?n[t]&&n[t].splice(E(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&pt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&ft(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},dt(lt,{INPUT_START:It,INPUT_MOVE:Mt,INPUT_END:Rt,INPUT_CANCEL:jt,STATE_POSSIBLE:he,STATE_BEGAN:fe,STATE_CHANGED:pe,STATE_ENDED:de,STATE_RECOGNIZED:ve,STATE_CANCELLED:ye,STATE_FAILED:32,DIRECTION_NONE:kt,DIRECTION_LEFT:At,DIRECTION_RIGHT:Bt,DIRECTION_UP:Lt,DIRECTION_DOWN:Wt,DIRECTION_HORIZONTAL:Nt,DIRECTION_VERTICAL:Dt,DIRECTION_ALL:Ft,Manager:ht,Input:C,TouchAction:Z,TouchInput:q,MouseInput:z,PointerEventInput:X,TouchMouseInput:U,SingleTouchInput:Y,Recognizer:Q,AttrRecognizer:it,Tap:ct,Pan:rt,Swipe:at,Pinch:ot,Rotate:ut,Press:st,on:y,off:m,each:l,merge:_t,extend:Et,assign:dt,inherit:f,bindFn:p,prefixed:O}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=lt,(i=function(){return lt}.call(e,n,e,t))!==u&&(t.exports=i)}(window,document)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(48),o=i(r),s=n(29),u=i(s),a=n(30),c=i(a),l=n(32),h=i(l),f=n(33),p=(i(f),n(34)),d=(i(p),{}),v=function(t){function e(n){return(0,u.default)(this,e),(0,c.default)(this,t.call(this,n))}return(0,h.default)(e,t),e.prototype.closeSwipes=function(t){(0,o.default)(d).filter(function(e){return e!==""+t}).forEach(function(t){return d[t].call()})},e.prototype.registerSwipe=function(t,e){d[t]=e},e.prototype.unRegisterSwipe=function(t){delete d[t]},e}(f.Component);e.default=v},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(42),o=i(r),s=n(35),u=i(s),a=n(29),c=i(a),l=n(30),h=i(l),f=n(32),p=i(f),d=n(33),v=(i(d),n(34)),y=(i(v),n(51)),m=i(y),g=function(t){function e(n){(0,c.default)(this,e);var i=(0,h.default)(this,t.call(this,n));return i.handleBtnClick=i.handleBtnClick.bind(i),i.initStyles(),i}return(0,p.default)(e,t),e.prototype.initStyles=function(){this.styles=m.default.ButtonStyles,this.containerStyles=(0,u.default)({},this.styles.container,this.props.action.style)},e.prototype.shouldComponentUpdate=function(){return!1},e.prototype.handleBtnClick=function(){this.props.action.onPress&&this.props.action.onPress.call(),this.props.onClickCallback(this.props.action)},e.prototype.render=function(){return(0,o.default)("div",{onClick:this.handleBtnClick,style:this.containerStyles},void 0,(0,o.default)("div",{style:this.styles.content},void 0,this.props.action.text))},e}(d.Component);e.default=g}])}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "react-button-actions", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Performant HoC designed to make buttons appear on swipe and others actions on some element.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
81985
988