New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-button-actions

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-button-actions - npm Package Compare versions

Comparing version 0.0.6 to 0.0.8

13

compilers/webpack.build.js
const path = require('path');
const fs = require('fs');
const webpack = require('webpack');
const DashboardPlugin = require('webpack-dashboard/plugin');

@@ -27,4 +26,11 @@ const front = {

plugins: [
new DashboardPlugin(),
new webpack.optimize.DedupePlugin()
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin({
minimize: true,
mangle: true,
compress: {
screw_ie8: true, // eslint-disable-line
warnings: false,
}
})
],

@@ -49,2 +55,3 @@ resolve: {

presets: ['es2015', 'stage-0', 'react', 'react-optimize'],
// presets: ['es2015', 'stage-0', 'react'],
plugins: [

@@ -51,0 +58,0 @@ 'transform-runtime'

@@ -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]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([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(40),o=i(r),s=n(41),u=i(s),a=n(38),c=i(a),l=n(18),f=i(l),h=n(19),p=i(h),d=n(20),v=i(d),y=n(22),g=i(y),m=n(21),b=i(m),_=n(36),T=i(_),E=n(102),S=i(E),O=n(56),x=i(O),w=n(57),P=i(w),C=n(37),k=i(C),M=function(t,e){return Math.min(t/e,1)},I=function(t,e){return Math.max(1-t/e,0)},j=function(t){function e(t){(0,p.default)(this,e);var n=(0,g.default)(this,(e.__proto__||(0,f.default)(e)).call(this,t));return n.styles=k.default.SwipeStyles,n.swipeId=Math.floor(1e3*Math.random()),n.btnsLeftWidth=0,n.btnsRightWidth=0,n.bindedEvents={},n.childrenProps={},n.shouldShowRight=!1,n.shouldShowLeft=!1,n.leftIsVisible=!1,n.rightIsVisible=!1,n.initBindings(),n.treshold=0,n}return(0,b.default)(e,t),(0,v.default)(e,[{key:"initBindings",value: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)}},{key:"componentWillUnmount",value:function(){this.unRegisterSwipe(this.swipeId),this.resetEvents()}},{key:"onPanStart",value:function(t){this.panStartDelta=t.deltaX}},{key:"resetOverlay",value:function(){(this.leftIsVisible||this.rightIsVisible)&&(this.onClose(),this.translateOverlay(0),this.transformLeftButton(0),this.transformRightButton(0),this.leftIsVisible=!1,this.rightIsVisible=!1)}},{key:"showRightMenu",value:function(){this.onClose(),this.translateOverlay(-this.btnsRightWidth),this.transformLeftButton(0),this.transformRightButton(1),this.leftIsVisible=!1,this.rightIsVisible=!0,this.onOpen()}},{key:"showLeftMenu",value:function(){this.onClose(),this.translateOverlay(this.btnsLeftWidth),this.transformLeftButton(1),this.transformRightButton(0),this.leftIsVisible=!0,this.rightIsVisible=!1,this.onOpen()}},{key:"onPanEnd",value:function(t){return this.shouldShowRight=t.deltaX<0&&t.distance>this.treshold,this.shouldShowLeft=t.deltaX>0&&t.distance>this.treshold,this.shouldShowRight||this.shouldShowLeft?this.shouldShowRight?this.showRightMenu():this.shouldShowLeft?this.showLeftMenu():void 0:this.resetOverlay()}},{key:"transformButtons",value:function(t){var e=t>0,n=e?t:t*-1,i=e?M:I,r=e?I:M,o=i(n,this.btnsLeftWidth),s=r(n,this.btnsRightWidth);this.transformLeftButton(o),this.transformRightButton(s)}},{key:"transformLeftButton",value:function(t){this.refs.leftBtnContainer.style.transform="scale3d("+t+", 1, 1)"}},{key:"transformRightButton",value:function(t){this.refs.rightBtnContainer.style.transform="scale3d("+t+", 1, 1)"}},{key:"translateOverlay",value:function(t){this.refs.overlay.style.transform="translate3d("+t+"px,0px,0px)"}},{key:"onLeftPan",value:function(t){var e=this.getMovement(t.deltaX,t.velocityX),n=Math.max(e,this.btnsRightWidth*-1);this.translateOverlay(n),this.transformButtons(e)}},{key:"onOpen",value:function(){this.props.onOpen&&this.props.onOpen.call(),this.closeSwipes(this.swipeId)}},{key:"onClose",value: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)}}},{key:"getMovement",value:function(t,e){return Math.round(t-this.panStartDelta*(1+e))}},{key:"onRightPan",value:function(t){var e=this.getMovement(t.deltaX,t.velocityX),n=Math.min(e,this.btnsLeftWidth);this.translateOverlay(n),this.transformButtons(e)}},{key:"onPressUp",value:function(){}},{key:"getEvents",value:function(){var t=this.props,e=t.left,n=t.right,i=t.onOpen,r=t.onClose;return{left:e,right:n,onOpen:i,onClose:r}}},{key:"getNbButtons",value: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}}},{key:"hasEvents",value:function(){var t=this.getEvents(),e=t.left,n=t.right;t.onOpen,t.onClose;return!!e||!!n}},{key:"resetEvents",value:function(){var t=(0,c.default)(this.bindedEvents).join(" ");console.log("disbinding events"),this.hammer.off(t)}},{key:"registerEvent",value:function(t){this.bindedEvents[t]=!0}},{key:"initEventsFromProps",value:function(){var t=this.getEvents();(t.left||t.right)&&(console.log("binding pan"),this.registerEvent("panstart"),this.hammer.on("panstart",this.onPanStart),this.hammer.on("panend",this.onPanEnd)),t.left&&(console.log("binding pan left"),this.registerEvent("panleft"),this.hammer.on("panleft",this.onLeftPan)),t.right&&(console.log("binding pan right"),this.registerEvent("panright"),this.hammer.on("panright",this.onRightPan))}},{key:"initTouchEvents",value:function(){this.hasEvents()&&(console.log("binding hammer"),this.hammer=new S.default(this.refs.overlay),this.hammer.get("pan").set({direction:S.default.DIRECTION_HORIZONTAL}),this.initEventsFromProps())}},{key:"initSizes",value:function(){this.overlayWidth=this.refs.childrenContainer.offsetWidth,this.refs.overlay.style.width=this.overlayWidth+"px";var t=this.getNbButtons(),e=t.leftLength,n=t.rightLength;this.btnsLeftWidth=this.overlayWidth/4.5*e,this.btnsRightWidth=this.overlayWidth/4.5*n,this.refs.rightBtnContainer.style.width=this.btnsRightWidth+"px",this.refs.leftBtnContainer.style.width=this.btnsLeftWidth+"px",this.treshold=Math.round(this.overlayWidth/4.5)}},{key:"componentDidMount",value:function(){console.group("On did mount Swipe"),this.initTouchEvents(),this.initSizes(),this.registerSwipe(this.swipeId,this.resetOverlay),console.groupEnd()}},{key:"handleBtnClick",value:function(t){console.log("action clicked : ",t),this.resetOverlay()}},{key:"renderLeftButtons",value:function(){var t=this;return this.props.left.length?T.default.createElement("div",{className:"leftBtnContainer",key:"leftBtnContainer",style:this.styles.leftContainerStyles,ref:"leftBtnContainer"},this.props.left.map(function(e,n){return(0,u.default)(P.default,{onClickCallback:t.handleBtnClick,action:e},n)})):""}},{key:"renderRightButtons",value:function(){var t=this;return this.props.right.length?T.default.createElement("div",{className:"rightBtnContainer",key:"rightBtnContainer",ref:"rightBtnContainer",style:this.styles.rightContainerStyles},this.props.right.map(function(e,n){return(0,u.default)(P.default,{action:e,onClickCallback:t.handleBtnClick},n)})):""}},{key:"renderButtons",value:function(){return this.hasEvents()?(0,u.default)("div",{className:"buttonsContainer",style:this.styles.buttonsContainerStyles},void 0,this.renderLeftButtons(),this.renderRightButtons()):""}},{key:"handleContainerClick",value:function(){this.props.onPress&&this.props.onPress.call(),this.resetOverlay()}},{key:"render",value:function(){var t=T.default.cloneElement(this.props.children,(0,o.default)({},this.childrenProps)),e=(0,o.default)({},this.styles.baseSwipeContainerStyles,this.props.style);return(0,u.default)("div",{onTouchTap:this.handleContainerClick,className:"swipeContainer",style:e},void 0,this.renderButtons(),T.default.createElement("div",{style:this.styles.overlayStyles,className:"swipeOverlay",ref:"overlay"},T.default.createElement("div",{className:"childrenContainer",ref:"childrenContainer"},t)))}}]),e}(x.default);j.propTypes={onPress:_.PropTypes.func,autoclose:_.PropTypes.bool,style:_.PropTypes.object,left:_.PropTypes.array,right:_.PropTypes.array,onOpen:_.PropTypes.func,onClose:_.PropTypes.func},e.default=j},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,n){t.exports=!n(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(2),r=n(1),o=n(44),s=n(9),u="prototype",a=function(t,e,n){var c,l,f,h=t&a.F,p=t&a.G,d=t&a.S,v=t&a.P,y=t&a.B,g=t&a.W,m=p?r:r[e]||(r[e]={}),b=m[u],_=p?i:d?i[e]:(i[e]||{})[u];p&&(n=e);for(c in n)l=!h&&_&&void 0!==_[c],l&&c in m||(f=l?_[c]:n[c],m[c]=p&&"function"!=typeof _[c]?n[c]:y&&l?o(f,i):g&&_[c]==f?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[u]=t[u],e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[c]=f,t&a.R&&b&&!b[c]&&s(b,c,f)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(12),r=n(46),o=n(33),s=Object.defineProperty;e.f=n(3)?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){var i=n(47),r=n(23);t.exports=function(t){return i(r(t))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(6),r=n(15);t.exports=n(3)?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(52),r=n(24);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(31)("wks"),r=n(17),o=n(2).Symbol,s="function"==typeof o,u=t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))};u.store=i},function(t,e,n){var i=n(13);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){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(23);t.exports=function(t){return Object(i(t))}},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,n){t.exports={default:n(67),__esModule:!0}},function(t,e){"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";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(60),o=i(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,o.default)(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}()},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(59),u=i(s),a=n(42),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 "+("undefined"==typeof 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(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(42),o=i(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports={}},function(t,e){t.exports=!0},function(t,e,n){var i=n(12),r=n(84),o=n(24),s=n(30)("IE_PROTO"),u=function(){},a="prototype",c=function(){var t,e=n(45)("iframe"),i=o.length,r="<",s=">";for(e.style.display="none",n(77).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+s+"document.F=Object"+r+"/script"+s),t.close(),c=t.F;i--;)delete c[a][o[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[a]=i(t),n=new u,u[a]=null,n[s]=t):n=c(),void 0===e?n:r(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(6).f,r=n(5),o=n(11)("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){var i=n(31)("keys"),r=n(17);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){var i=n(2),r="__core-js_shared__",o=i[r]||(i[r]={});t.exports=function(t){return o[t]||(o[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(13);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,n){var i=n(2),r=n(1),o=n(26),s=n(35),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,n){e.f=n(11)},function(e,n){e.exports=t},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={SwipeStyles:{overlayStyles:{zIndex:2,transition:"transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1)"},baseSwipeContainerStyles:{overflow:"hidden",position:"relative",display:"inline-block"},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=n;e.SwipeStyles=n.SwipeStyles,e.ButtonStyles=n.ButtonStyles},function(t,e,n){t.exports={default:n(68),__esModule:!0}},function(t,e,n){t.exports={default:n(71),__esModule:!0}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(58),o=i(r);e.default=o.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){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(62),o=i(r),s=n(39),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";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(63),o=i(r),s=n(39),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"undefined"==typeof t?"undefined":a(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":"undefined"==typeof t?"undefined":a(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(73);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){var i=n(13),r=n(2).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){t.exports=!n(3)&&!n(8)(function(){return 7!=Object.defineProperty(n(45)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(43);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var i=n(26),r=n(4),o=n(54),s=n(9),u=n(5),a=n(25),c=n(79),l=n(29),f=n(51),h=n(11)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",y="values",g=function(){return this};t.exports=function(t,e,n,m,b,_,T){c(n,e,m);var E,S,O,x=function(t){if(!p&&t in k)return k[t];switch(t){case v:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",P=b==y,C=!1,k=t.prototype,M=k[h]||k[d]||b&&k[b],I=M||x(b),j=b?P?x("entries"):I:void 0,R="Array"==e?k.entries||M:M;if(R&&(O=f(R.call(new t)),O!==Object.prototype&&(l(O,w,!0),i||u(O,h)||s(O,h,g))),P&&M&&M.name!==y&&(C=!0,I=function(){return M.call(this)}),i&&!T||!p&&!C&&k[h]||s(k,h,I),a[e]=I,a[w]=g,b)if(E={values:P?I:x(y),keys:_?I:x(v),entries:j},T)for(S in E)S in k||o(k,S,E[S]);else r(r.P+r.F*(p||C),e,E);return E}},function(t,e,n){var i=n(14),r=n(15),o=n(7),s=n(33),u=n(5),a=n(46),c=Object.getOwnPropertyDescriptor;e.f=n(3)?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){var i=n(52),r=n(24).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){var i=n(5),r=n(16),o=n(30)("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){var i=n(5),r=n(7),o=n(75)(!1),s=n(30)("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(4),r=n(1),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=n(9)},function(t,e,n){"use strict";var i=n(2),r=n(5),o=n(3),s=n(4),u=n(54),a=n(82).KEY,c=n(8),l=n(31),f=n(29),h=n(17),p=n(11),d=n(35),v=n(34),y=n(81),g=n(76),m=n(78),b=n(12),_=n(7),T=n(33),E=n(15),S=n(27),O=n(85),x=n(49),w=n(6),P=n(10),C=x.f,k=w.f,M=O.f,I=i.Symbol,j=i.JSON,R=j&&j.stringify,A="prototype",B=p("_hidden"),L=p("toPrimitive"),N={}.propertyIsEnumerable,D=l("symbol-registry"),W=l("symbols"),F=l("op-symbols"),z=Object[A],X="function"==typeof I,Y=i.QObject,V=!Y||!Y[A]||!Y[A].findChild,q=o&&c(function(){return 7!=S(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=C(z,e);i&&delete z[e],k(t,e,n),i&&t!==z&&k(z,e,i)}:k,H=function(t){var e=W[t]=S(I[A]);return e._k=t,e},U=X&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},G=function(t,e,n){return t===z&&G(F,e,n),b(t),e=T(e,!0),b(n),r(W,e)?(n.enumerable?(r(t,B)&&t[B][e]&&(t[B][e]=!1),n=S(n,{enumerable:E(0,!1)})):(r(t,B)||k(t,B,E(1,{})),t[B][e]=!0),q(t,e,n)):k(t,e,n)},J=function(t,e){b(t);for(var n,i=g(e=_(e)),r=0,o=i.length;o>r;)G(t,n=i[r++],e[n]);return t},Z=function(t,e){return void 0===e?S(t):J(S(t),e)},K=function(t){var e=N.call(this,t=T(t,!0));return!(this===z&&r(W,t)&&!r(F,t))&&(!(e||!r(this,t)||!r(W,t)||r(this,B)&&this[B][t])||e)},$=function(t,e){if(t=_(t),e=T(e,!0),t!==z||!r(W,e)||r(F,e)){var n=C(t,e);return!n||!r(W,e)||r(t,B)&&t[B][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=M(_(t)),i=[],o=0;n.length>o;)r(W,e=n[o++])||e==B||e==a||i.push(e);return i},tt=function(t){for(var e,n=t===z,i=M(n?F:_(t)),o=[],s=0;i.length>s;)!r(W,e=i[s++])||n&&!r(z,e)||o.push(W[e]);return o};X||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(F,n),r(this,B)&&r(this[B],t)&&(this[B][t]=!1),q(this,t,E(1,n))};return o&&V&&q(z,t,{configurable:!0,set:e}),H(t)},u(I[A],"toString",function(){return this._k}),x.f=$,w.f=G,n(50).f=O.f=Q,n(14).f=K,n(28).f=tt,o&&!n(26)&&u(z,"propertyIsEnumerable",K,!0),d.f=function(t){return H(p(t))}),s(s.G+s.W+s.F*!X,{Symbol:I});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var et=P(p.store),nt=0;et.length>nt;)v(et[nt++]);s(s.S+s.F*!X,"Symbol",{for:function(t){return r(D,t+="")?D[t]:D[t]=I(t)},keyFor:function(t){if(U(t))return y(D,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){V=!0},useSimple:function(){V=!1}}),s(s.S+s.F*!X,"Object",{create:Z,defineProperty:G,defineProperties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:tt}),j&&s(s.S+s.F*(!X||c(function(){var t=I();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!U(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&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!U(e))return e}),i[1]=e,R.apply(j,i)}}}),I[A][L]||n(9)(I[A],L,I[A].valueOf),f(I,"Symbol"),f(Math,"Math",!0),f(i.JSON,"JSON",!0)},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(38),o=i(r),s=n(18),u=i(s),a=n(19),c=i(a),l=n(20),f=i(l),h=n(22),p=i(h),d=n(21),v=i(d),y=n(36),g=(i(y),{}),m=function(t){function e(t){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,u.default)(e)).call(this,t))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"closeSwipes",value:function(t){(0,o.default)(g).filter(function(e){return e!==""+t}).forEach(function(t){return g[t].call()})}},{key:"registerSwipe",value:function(t,e){g[t]=e,console.log("added :",g)}},{key:"unRegisterSwipe",value:function(t){delete g[t],console.log("removed : ",g)}}]),e}(y.Component);e.default=m},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(41),o=i(r),s=n(40),u=i(s),a=n(18),c=i(a),l=n(19),f=i(l),h=n(20),p=i(h),d=n(22),v=i(d),y=n(21),g=i(y),m=n(36),b=(i(m),n(37)),_=i(b),T=function(t){function e(t){(0,f.default)(this,e);var n=(0,v.default)(this,(e.__proto__||(0,c.default)(e)).call(this,t));return n.handleBtnClick=n.handleBtnClick.bind(n),n.initStyles(),n}return(0,g.default)(e,t),(0,p.default)(e,[{key:"initStyles",value:function(){this.styles=_.default.ButtonStyles,this.containerStyles=(0,u.default)({},this.styles.container,this.props.action.style)}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"handleBtnClick",value:function(){this.props.action.onPress&&this.props.action.onPress.call(),this.props.onClickCallback(this.props.action)}},{key:"render",value:function(){return(0,o.default)("div",{onTouchTap:this.handleBtnClick,style:this.containerStyles},void 0,(0,o.default)("div",{style:this.styles.content},void 0,this.props.action.text))}}]),e}(m.Component);e.default=T},function(t,e,n){t.exports={default:n(64),__esModule:!0}},function(t,e,n){t.exports={default:n(65),__esModule:!0}},function(t,e,n){t.exports={default:n(66),__esModule:!0}},function(t,e,n){t.exports={default:n(69),__esModule:!0}},function(t,e,n){t.exports={default:n(70),__esModule:!0}},function(t,e,n){t.exports={default:n(72),__esModule:!0}},function(t,e,n){n(91),t.exports=n(1).Object.assign},function(t,e,n){n(92);var i=n(1).Object;t.exports=function(t,e){return i.create(t,e)}},function(t,e,n){n(93);var i=n(1).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){n(94),t.exports=n(1).Object.getPrototypeOf},function(t,e,n){n(95),t.exports=n(1).Object.keys},function(t,e,n){n(96),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){n(55),t.exports=n(1).Symbol.for},function(t,e,n){n(55),n(97),n(99),n(100),t.exports=n(1).Symbol},function(t,e,n){n(98),n(101),t.exports=n(35).f("iterator")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,n){var i=n(7),r=n(89),o=n(88);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!=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(10),r=n(28),o=n(14);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){t.exports=n(2).document&&document.documentElement},function(t,e,n){var i=n(43);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){"use strict";var i=n(27),r=n(15),o=n(29),s={};n(9)(s,n(11)("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){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var i=n(10),r=n(7);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(17)("meta"),r=n(13),o=n(5),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:{}}})},f=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},h=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:f,getWeak:h,onFreeze:p}},function(t,e,n){"use strict";var i=n(10),r=n(28),o=n(14),s=n(16),u=n(47),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,f=o.f;a>c;)for(var h,p=u(arguments[c++]),d=l?i(p).concat(l(p)):i(p),v=d.length,y=0;v>y;)f.call(p,h=d[y++])&&(n[h]=p[h]);return n}:a},function(t,e,n){var i=n(6),r=n(12),o=n(10);t.exports=n(3)?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){var i=n(7),r=n(50).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){var i=n(13),r=n(12),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(44)(Function.call,n(49).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){var i=n(32),r=n(23);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):(o-55296<<10)+(s-56320)+65536)}}},function(t,e,n){var i=n(32),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){var i=n(32),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){"use strict";var i=n(74),r=n(80),o=n(25),s=n(7);t.exports=n(48)(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,n){var i=n(4);i(i.S+i.F,"Object",{assign:n(83)})},function(t,e,n){var i=n(4);i(i.S,"Object",{create:n(27)})},function(t,e,n){var i=n(4);i(i.S+i.F*!n(3),"Object",{defineProperty:n(6).f})},function(t,e,n){var i=n(16),r=n(51);n(53)("getPrototypeOf",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(16),r=n(10);n(53)("keys",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(4);i(i.S,"Object",{setPrototypeOf:n(86).set})},function(t,e){},function(t,e,n){"use strict";var i=n(87)(!0);n(48)(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){n(34)("asyncIterator")},function(t,e,n){n(34)("observable")},function(t,e,n){n(90);for(var i=n(2),r=n(9),o=n(25),s=n(11)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],a=0;a<5;a++){var c=u[a],l=i[c],f=l&&l.prototype;f&&!f[s]&&r(f,s,c),o[c]=o.Array}},function(t,e,n){var i;/*! Hammer.JS - v2.0.7 - 2016-04-22
!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]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([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(40),o=i(r),s=n(41),u=i(s),a=n(38),c=i(a),l=n(18),f=i(l),h=n(19),p=i(h),d=n(20),v=i(d),y=n(22),g=i(y),m=n(21),b=i(m),_=n(36),T=i(_),E=n(102),S=i(E),O=n(56),x=i(O),w=n(57),C=i(w),P=n(37),k=i(P),M=function(t,e){return Math.min(t/e,1)},I=function(t,e){return Math.max(1-t/e,0)},j=function(t){function e(t){(0,p.default)(this,e);var n=(0,g.default)(this,(e.__proto__||(0,f.default)(e)).call(this,t));return n.styles=k.default.SwipeStyles,n.swipeId=Math.floor(1e3*Math.random()),n.btnsLeftWidth=0,n.btnsRightWidth=0,n.bindedEvents={},n.childrenProps={},n.shouldShowRight=!1,n.shouldShowLeft=!1,n.leftIsVisible=!1,n.rightIsVisible=!1,n.initBindings(),n.treshold=0,n}return(0,b.default)(e,t),(0,v.default)(e,[{key:"initBindings",value: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)}},{key:"componentWillUnmount",value:function(){this.unRegisterSwipe(this.swipeId),this.resetEvents()}},{key:"onPanStart",value:function(t){this.panStartDelta=t.deltaX}},{key:"resetOverlay",value:function(){(this.leftIsVisible||this.rightIsVisible)&&(this.onClose(),this.translateOverlay(0),this.transformLeftButton(0),this.transformRightButton(0),this.leftIsVisible=!1,this.rightIsVisible=!1)}},{key:"showRightMenu",value:function(){this.onClose(),this.translateOverlay(-this.btnsRightWidth),this.transformLeftButton(0),this.transformRightButton(1),this.leftIsVisible=!1,this.rightIsVisible=!0,this.onOpen()}},{key:"showLeftMenu",value:function(){this.onClose(),this.translateOverlay(this.btnsLeftWidth),this.transformLeftButton(1),this.transformRightButton(0),this.leftIsVisible=!0,this.rightIsVisible=!1,this.onOpen()}},{key:"onPanEnd",value: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()}},{key:"transformButtons",value:function(t){var e=t>0,n=e?t:t*-1,i=e?M:I,r=e?I:M,o=i(n,this.btnsLeftWidth),s=r(n,this.btnsRightWidth);this.transformLeftButton(o),this.transformRightButton(s)}},{key:"transformLeftButton",value:function(t){this.refs.leftBtnContainer&&(this.refs.leftBtnContainer.style.transform="scale3d("+t+", 1, 1)")}},{key:"transformRightButton",value:function(t){this.refs.rightBtnContainer&&(this.refs.rightBtnContainer.style.transform="scale3d("+t+", 1, 1)")}},{key:"translateOverlay",value:function(t){this.refs.overlay&&(this.refs.overlay.style.transform="translate3d("+t+"px,0px,0px)")}},{key:"onLeftPan",value:function(t){var e=this.getMovement(t.deltaX,t.velocityX),n=Math.max(e,this.btnsRightWidth*-1);this.translateOverlay(n),this.transformButtons(e)}},{key:"onOpen",value:function(){this.props.onOpen&&this.props.onOpen.call(),this.closeSwipes(this.swipeId)}},{key:"onClose",value: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)}}},{key:"getMovement",value:function(t,e){return Math.round(t-this.panStartDelta*(1+e))}},{key:"onRightPan",value:function(t){var e=this.getMovement(t.deltaX,t.velocityX),n=Math.min(e,this.btnsLeftWidth);this.translateOverlay(n),this.transformButtons(e)}},{key:"onPressUp",value:function(){}},{key:"getEvents",value:function(){var t=this.props,e=t.left,n=t.right,i=t.onOpen,r=t.onClose;return{left:e,right:n,onOpen:i,onClose:r}}},{key:"getNbButtons",value: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}}},{key:"hasEvents",value:function(){var t=this.getEvents(),e=t.left,n=t.right;return t.onOpen,t.onClose,!!e||!!n}},{key:"resetEvents",value:function(){var t=(0,c.default)(this.bindedEvents).join(" ");this.hammer.off(t)}},{key:"registerEvent",value:function(t){this.bindedEvents[t]=!0}},{key:"initEventsFromProps",value:function(){var t=this.getEvents();(t.left||t.right)&&(this.registerEvent("panstart"),this.hammer.on("panstart",this.onPanStart),this.hammer.on("panend",this.onPanEnd)),t.right&&(this.registerEvent("panleft"),this.hammer.on("panleft",this.onLeftPan)),t.left&&(this.registerEvent("panright"),this.hammer.on("panright",this.onRightPan))}},{key:"initTouchEvents",value:function(){this.hasEvents()&&(this.hammer=new S.default(this.refs.overlay),this.hammer.get("pan").set({direction:S.default.DIRECTION_HORIZONTAL}),this.initEventsFromProps())}},{key:"initSizes",value:function(){this.overlayWidth=this.refs.childrenContainer.offsetWidth,this.refs.overlay.style.width=this.overlayWidth+"px";var t=this.getNbButtons(),e=t.leftLength,n=t.rightLength;this.btnsLeftWidth=this.overlayWidth/4.5*e,this.btnsRightWidth=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)}},{key:"componentDidMount",value:function(){this.initTouchEvents(),this.initSizes(),this.registerSwipe(this.swipeId,this.resetOverlay)}},{key:"handleBtnClick",value:function(t){this.resetOverlay()}},{key:"renderLeftButtons",value:function(){var t=this;return this.props.left&&this.props.left.length?T.default.createElement("div",{className:"leftBtnContainer",key:"leftBtnContainer",style:this.styles.leftContainerStyles,ref:"leftBtnContainer"},this.props.left.map(function(e,n){return(0,u.default)(C.default,{onClickCallback:t.handleBtnClick,action:e},n)})):""}},{key:"renderRightButtons",value:function(){var t=this;return this.props.right&&this.props.right.length?T.default.createElement("div",{className:"rightBtnContainer",key:"rightBtnContainer",ref:"rightBtnContainer",style:this.styles.rightContainerStyles},this.props.right.map(function(e,n){return(0,u.default)(C.default,{action:e,onClickCallback:t.handleBtnClick},n)})):""}},{key:"renderButtons",value:function(){return this.hasEvents()?(0,u.default)("div",{className:"buttonsContainer",style:this.styles.buttonsContainerStyles},void 0,this.renderLeftButtons(),this.renderRightButtons()):""}},{key:"handleContainerClick",value:function(){this.props.onPress&&this.props.onPress.call(),this.resetOverlay()}},{key:"render",value:function(){var t=T.default.cloneElement(this.props.children,(0,o.default)({},this.childrenProps)),e=(0,o.default)({},this.styles.baseSwipeContainerStyles,this.props.style);return(0,u.default)("div",{onTouchTap:this.handleContainerClick,className:"swipeContainer",style:e},void 0,this.renderButtons(),T.default.createElement("div",{style:this.styles.overlayStyles,className:"swipeOverlay",ref:"overlay"},T.default.createElement("div",{className:"childrenContainer",ref:"childrenContainer"},t)))}}]),e}(x.default);j.propTypes={onPress:_.PropTypes.func,autoclose:_.PropTypes.bool,style:_.PropTypes.object,left:_.PropTypes.array,right:_.PropTypes.array,onOpen:_.PropTypes.func,onClose:_.PropTypes.func},e.default=j},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,n){t.exports=!n(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(2),r=n(1),o=n(44),s=n(9),u="prototype",a=function(t,e,n){var c,l,f,h=t&a.F,p=t&a.G,d=t&a.S,v=t&a.P,y=t&a.B,g=t&a.W,m=p?r:r[e]||(r[e]={}),b=m[u],_=p?i:d?i[e]:(i[e]||{})[u];p&&(n=e);for(c in n)l=!h&&_&&void 0!==_[c],l&&c in m||(f=l?_[c]:n[c],m[c]=p&&"function"!=typeof _[c]?n[c]:y&&l?o(f,i):g&&_[c]==f?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[u]=t[u],e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[c]=f,t&a.R&&b&&!b[c]&&s(b,c,f)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(12),r=n(46),o=n(33),s=Object.defineProperty;e.f=n(3)?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){var i=n(47),r=n(23);t.exports=function(t){return i(r(t))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(6),r=n(15);t.exports=n(3)?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(52),r=n(24);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(31)("wks"),r=n(17),o=n(2).Symbol,s="function"==typeof o,u=t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))};u.store=i},function(t,e,n){var i=n(13);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){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(23);t.exports=function(t){return Object(i(t))}},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,n){t.exports={default:n(67),__esModule:!0}},function(t,e){"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";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(60),o=i(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,o.default)(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}()},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(59),u=i(s),a=n(42),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 "+("undefined"==typeof 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(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(42),o=i(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports={}},function(t,e){t.exports=!0},function(t,e,n){var i=n(12),r=n(84),o=n(24),s=n(30)("IE_PROTO"),u=function(){},a="prototype",c=function(){var t,e=n(45)("iframe"),i=o.length,r="<",s=">";for(e.style.display="none",n(77).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+s+"document.F=Object"+r+"/script"+s),t.close(),c=t.F;i--;)delete c[a][o[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[a]=i(t),n=new u,u[a]=null,n[s]=t):n=c(),void 0===e?n:r(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(6).f,r=n(5),o=n(11)("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){var i=n(31)("keys"),r=n(17);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){var i=n(2),r="__core-js_shared__",o=i[r]||(i[r]={});t.exports=function(t){return o[t]||(o[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(13);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,n){var i=n(2),r=n(1),o=n(26),s=n(35),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,n){e.f=n(11)},function(e,n){e.exports=t},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={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=n,e.SwipeStyles=n.SwipeStyles,e.ButtonStyles=n.ButtonStyles},function(t,e,n){t.exports={default:n(68),__esModule:!0}},function(t,e,n){t.exports={default:n(71),__esModule:!0}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(58),o=i(r);e.default=o.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){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(62),o=i(r),s=n(39),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";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(63),o=i(r),s=n(39),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"undefined"==typeof t?"undefined":a(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":"undefined"==typeof t?"undefined":a(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(73);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){var i=n(13),r=n(2).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){t.exports=!n(3)&&!n(8)(function(){return 7!=Object.defineProperty(n(45)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(43);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var i=n(26),r=n(4),o=n(54),s=n(9),u=n(5),a=n(25),c=n(79),l=n(29),f=n(51),h=n(11)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",y="values",g=function(){return this};t.exports=function(t,e,n,m,b,_,T){c(n,e,m);var E,S,O,x=function(t){if(!p&&t in k)return k[t];switch(t){case v:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",C=b==y,P=!1,k=t.prototype,M=k[h]||k[d]||b&&k[b],I=M||x(b),j=b?C?x("entries"):I:void 0,R="Array"==e?k.entries||M:M;if(R&&(O=f(R.call(new t)),O!==Object.prototype&&(l(O,w,!0),i||u(O,h)||s(O,h,g))),C&&M&&M.name!==y&&(P=!0,I=function(){return M.call(this)}),i&&!T||!p&&!P&&k[h]||s(k,h,I),a[e]=I,a[w]=g,b)if(E={values:C?I:x(y),keys:_?I:x(v),entries:j},T)for(S in E)S in k||o(k,S,E[S]);else r(r.P+r.F*(p||P),e,E);return E}},function(t,e,n){var i=n(14),r=n(15),o=n(7),s=n(33),u=n(5),a=n(46),c=Object.getOwnPropertyDescriptor;e.f=n(3)?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){var i=n(52),r=n(24).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){var i=n(5),r=n(16),o=n(30)("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){var i=n(5),r=n(7),o=n(75)(!1),s=n(30)("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(4),r=n(1),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=n(9)},function(t,e,n){"use strict";var i=n(2),r=n(5),o=n(3),s=n(4),u=n(54),a=n(82).KEY,c=n(8),l=n(31),f=n(29),h=n(17),p=n(11),d=n(35),v=n(34),y=n(81),g=n(76),m=n(78),b=n(12),_=n(7),T=n(33),E=n(15),S=n(27),O=n(85),x=n(49),w=n(6),C=n(10),P=x.f,k=w.f,M=O.f,I=i.Symbol,j=i.JSON,R=j&&j.stringify,A="prototype",B=p("_hidden"),L=p("toPrimitive"),N={}.propertyIsEnumerable,D=l("symbol-registry"),W=l("symbols"),F=l("op-symbols"),z=Object[A],X="function"==typeof I,Y=i.QObject,V=!Y||!Y[A]||!Y[A].findChild,q=o&&c(function(){return 7!=S(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=P(z,e);i&&delete z[e],k(t,e,n),i&&t!==z&&k(z,e,i)}:k,H=function(t){var e=W[t]=S(I[A]);return e._k=t,e},U=X&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},G=function(t,e,n){return t===z&&G(F,e,n),b(t),e=T(e,!0),b(n),r(W,e)?(n.enumerable?(r(t,B)&&t[B][e]&&(t[B][e]=!1),n=S(n,{enumerable:E(0,!1)})):(r(t,B)||k(t,B,E(1,{})),t[B][e]=!0),q(t,e,n)):k(t,e,n)},J=function(t,e){b(t);for(var n,i=g(e=_(e)),r=0,o=i.length;o>r;)G(t,n=i[r++],e[n]);return t},Z=function(t,e){return void 0===e?S(t):J(S(t),e)},K=function(t){var e=N.call(this,t=T(t,!0));return!(this===z&&r(W,t)&&!r(F,t))&&(!(e||!r(this,t)||!r(W,t)||r(this,B)&&this[B][t])||e)},$=function(t,e){if(t=_(t),e=T(e,!0),t!==z||!r(W,e)||r(F,e)){var n=P(t,e);return!n||!r(W,e)||r(t,B)&&t[B][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=M(_(t)),i=[],o=0;n.length>o;)r(W,e=n[o++])||e==B||e==a||i.push(e);return i},tt=function(t){for(var e,n=t===z,i=M(n?F:_(t)),o=[],s=0;i.length>s;)!r(W,e=i[s++])||n&&!r(z,e)||o.push(W[e]);return o};X||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(F,n),r(this,B)&&r(this[B],t)&&(this[B][t]=!1),q(this,t,E(1,n))};return o&&V&&q(z,t,{configurable:!0,set:e}),H(t)},u(I[A],"toString",function(){return this._k}),x.f=$,w.f=G,n(50).f=O.f=Q,n(14).f=K,n(28).f=tt,o&&!n(26)&&u(z,"propertyIsEnumerable",K,!0),d.f=function(t){return H(p(t))}),s(s.G+s.W+s.F*!X,{Symbol:I});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var et=C(p.store),nt=0;et.length>nt;)v(et[nt++]);s(s.S+s.F*!X,"Symbol",{for:function(t){return r(D,t+="")?D[t]:D[t]=I(t)},keyFor:function(t){if(U(t))return y(D,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){V=!0},useSimple:function(){V=!1}}),s(s.S+s.F*!X,"Object",{create:Z,defineProperty:G,defineProperties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:tt}),j&&s(s.S+s.F*(!X||c(function(){var t=I();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!U(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&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!U(e))return e}),i[1]=e,R.apply(j,i)}}}),I[A][L]||n(9)(I[A],L,I[A].valueOf),f(I,"Symbol"),f(Math,"Math",!0),f(i.JSON,"JSON",!0)},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(38),o=i(r),s=n(18),u=i(s),a=n(19),c=i(a),l=n(20),f=i(l),h=n(22),p=i(h),d=n(21),v=i(d),y=n(36),g=(i(y),{}),m=function(t){function e(t){return(0,c.default)(this,e),(0,p.default)(this,(e.__proto__||(0,u.default)(e)).call(this,t))}return(0,v.default)(e,t),(0,f.default)(e,[{key:"closeSwipes",value:function(t){(0,o.default)(g).filter(function(e){return e!==""+t}).forEach(function(t){return g[t].call()})}},{key:"registerSwipe",value:function(t,e){g[t]=e}},{key:"unRegisterSwipe",value:function(t){delete g[t]}}]),e}(y.Component);e.default=m},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(41),o=i(r),s=n(40),u=i(s),a=n(18),c=i(a),l=n(19),f=i(l),h=n(20),p=i(h),d=n(22),v=i(d),y=n(21),g=i(y),m=n(36),b=(i(m),n(37)),_=i(b),T=function(t){function e(t){(0,f.default)(this,e);var n=(0,v.default)(this,(e.__proto__||(0,c.default)(e)).call(this,t));return n.handleBtnClick=n.handleBtnClick.bind(n),n.initStyles(),n}return(0,g.default)(e,t),(0,p.default)(e,[{key:"initStyles",value:function(){this.styles=_.default.ButtonStyles,this.containerStyles=(0,u.default)({},this.styles.container,this.props.action.style)}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"handleBtnClick",value:function(){this.props.action.onPress&&this.props.action.onPress.call(),this.props.onClickCallback(this.props.action)}},{key:"render",value:function(){return(0,o.default)("div",{onTouchTap:this.handleBtnClick,style:this.containerStyles},void 0,(0,o.default)("div",{style:this.styles.content},void 0,this.props.action.text))}}]),e}(m.Component);e.default=T},function(t,e,n){t.exports={default:n(64),__esModule:!0}},function(t,e,n){t.exports={default:n(65),__esModule:!0}},function(t,e,n){t.exports={default:n(66),__esModule:!0}},function(t,e,n){t.exports={default:n(69),__esModule:!0}},function(t,e,n){t.exports={default:n(70),__esModule:!0}},function(t,e,n){t.exports={default:n(72),__esModule:!0}},function(t,e,n){n(91),t.exports=n(1).Object.assign},function(t,e,n){n(92);var i=n(1).Object;t.exports=function(t,e){return i.create(t,e)}},function(t,e,n){n(93);var i=n(1).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){n(94),t.exports=n(1).Object.getPrototypeOf},function(t,e,n){n(95),t.exports=n(1).Object.keys},function(t,e,n){n(96),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){n(55),t.exports=n(1).Symbol.for},function(t,e,n){n(55),n(97),n(99),n(100),t.exports=n(1).Symbol},function(t,e,n){n(98),n(101),t.exports=n(35).f("iterator")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,n){var i=n(7),r=n(89),o=n(88);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!=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(10),r=n(28),o=n(14);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){t.exports=n(2).document&&document.documentElement},function(t,e,n){var i=n(43);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){"use strict";var i=n(27),r=n(15),o=n(29),s={};n(9)(s,n(11)("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){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var i=n(10),r=n(7);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(17)("meta"),r=n(13),o=n(5),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:{}}})},f=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},h=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:f,getWeak:h,onFreeze:p}},function(t,e,n){"use strict";var i=n(10),r=n(28),o=n(14),s=n(16),u=n(47),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,f=o.f;a>c;)for(var h,p=u(arguments[c++]),d=l?i(p).concat(l(p)):i(p),v=d.length,y=0;v>y;)f.call(p,h=d[y++])&&(n[h]=p[h]);return n}:a},function(t,e,n){var i=n(6),r=n(12),o=n(10);t.exports=n(3)?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){var i=n(7),r=n(50).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){var i=n(13),r=n(12),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(44)(Function.call,n(49).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){var i=n(32),r=n(23);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):(o-55296<<10)+(s-56320)+65536)}}},function(t,e,n){var i=n(32),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){var i=n(32),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){"use strict";var i=n(74),r=n(80),o=n(25),s=n(7);t.exports=n(48)(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,n){var i=n(4);i(i.S+i.F,"Object",{assign:n(83)})},function(t,e,n){var i=n(4);i(i.S,"Object",{create:n(27)})},function(t,e,n){var i=n(4);i(i.S+i.F*!n(3),"Object",{defineProperty:n(6).f})},function(t,e,n){var i=n(16),r=n(51);n(53)("getPrototypeOf",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(16),r=n(10);n(53)("keys",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(4);i(i.S,"Object",{setPrototypeOf:n(86).set})},function(t,e){},function(t,e,n){"use strict";var i=n(87)(!0);n(48)(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){n(34)("asyncIterator")},function(t,e,n){n(34)("observable")},function(t,e,n){n(90);for(var i=n(2),r=n(9),o=n(25),s=n(11)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],a=0;a<5;a++){var c=u[a],l=i[c],f=l&&l.prototype;f&&!f[s]&&r(f,s,c),o[c]=o.Array}},function(t,e,n){var i;/*! Hammer.JS - v2.0.7 - 2016-04-22
* http://hammerjs.github.io/

@@ -6,3 +6,3 @@ *

* Licensed under the MIT license */
!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 f(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 h(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&vt(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(_(e),function(e){t.addEventListener(e,n,!1)})}function g(t,e,n){l(_(e),function(e){t.removeEventListener(e,n,!1)})}function m(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){return t.trim().split(/\s+/g)}function T(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 E(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];T(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<yt.length;){if(n=yt[o],i=n?n+r:e,i in t)return i;o++}return u}function x(){return Ot++}function w(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function P(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 C(t){var e,n=t.options.inputClass;return new(e=n?n:Pt?X:Ct?q:wt?U:z)(t,k)}function k(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&At&&i-r===0,s=e&(Lt|Nt)&&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=R(e)),r>1&&!n.firstMultiple?n.firstMultiple=R(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=D(u,a),e.distance=N(u,a),I(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=_t(c.x)>_t(c.y)?c.x:c.y,e.scale=s?F(s.pointers,i):1,e.rotation=s?W(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;m(e.srcEvent.target,l)&&(l=e.srcEvent.target),e.target=l}function I(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==At&&o.eventType!==Lt||(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!=Nt&&(a>Rt||s.velocity===u)){var c=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,f=B(a,c,l);i=f.x,r=f.y,n=_t(f.x)>_t(f.y)?f.x:f.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 R(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:bt(t.pointers[n].clientX),clientY:bt(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:bt(t[0].clientX),y:bt(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:bt(n/e),y:bt(i/e)}}function B(t,e,n){return{x:e/t||0,y:n/t||0}}function L(t,e){return t===e?Dt:_t(t)>=_t(e)?t<0?Wt:Ft:e<0?zt:Xt}function N(t,e,n){n||(n=Ht);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function D(t,e,n){n||(n=Ht);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function W(t,e){return D(e[1],e[0],Ut)+D(t[1],t[0],Ut)}function F(t,e){return N(e[0],e[1],Ut)/N(t[0],t[1],Ut)}function z(){this.evEl=Jt,this.evWin=Zt,this.pressed=!1,P.apply(this,arguments)}function X(){this.evEl=Qt,this.evWin=te,P.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function Y(){this.evTarget=ne,this.evWin=ie,this.started=!1,P.apply(this,arguments)}function V(t,e){var n=E(t.touches),i=E(t.changedTouches);return e&(Lt|Nt)&&(n=S(n.concat(i),"identifier",!0)),[n,i]}function q(){this.evTarget=oe,this.targetIds={},P.apply(this,arguments)}function H(t,e){var n=E(t.touches),i=this.targetIds;if(e&(At|Bt)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=E(t.changedTouches),u=[],a=this.target;if(o=n.filter(function(t){return m(t.target,a)}),e===At)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&(Lt|Nt)&&delete i[s[r].identifier],r++;return u.length?[S(o.concat(u),"identifier",!0),u]:void 0}function U(){P.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&At?(this.primaryTouch=e.changedPointers[0].identifier,J.call(this,e)):t&(Lt|Nt)&&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,se)}}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<=ue&&s<=ue)return!0}return!1}function K(t,e){this.manager=t,this.set(e)}function $(t){if(b(t,pe))return pe;var e=b(t,de),n=b(t,ve);return e&&n?pe:e||n?e?de:ve:b(t,he)?he:fe}function Q(){if(!ce)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}function tt(t){this.options=vt({},this.defaults,t||{}),this.id=x(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=ge,this.simultaneous={},this.requireFail=[]}function et(t){return t&Ee?"cancel":t&_e?"end":t&be?"move":t&me?"start":""}function nt(t){return t==Xt?"down":t==zt?"up":t==Wt?"left":t==Ft?"right":""}function it(t,e){var n=e.manager;return n?n.get(t):t}function rt(){tt.apply(this,arguments)}function ot(){rt.apply(this,arguments),this.pX=null,this.pY=null}function st(){rt.apply(this,arguments)}function ut(){tt.apply(this,arguments),this._timer=null,this._input=null}function at(){rt.apply(this,arguments)}function ct(){rt.apply(this,arguments)}function lt(){tt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ft(t,e){return e=e||{},e.recognizers=v(e.recognizers,ft.defaults.preset),new ht(t,e)}function ht(t,e){this.options=vt({},ft.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=C(this),this.touchAction=new K(this,this.options.touchAction),pt(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 pt(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 dt(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var vt,yt=["","webkit","Moz","MS","ms","o"],gt=o.createElement("div"),mt="function",bt=Math.round,_t=Math.abs,Tt=Date.now;vt="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=f(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`."),St=f(function(t,e){return Et(t,e,!0)},"merge","Use `assign`."),Ot=1,xt=/mobile|tablet|ip(ad|hone|od)|android/i,wt="ontouchstart"in r,Pt=O(r,"PointerEvent")!==u,Ct=wt&&xt.test(navigator.userAgent),kt="touch",Mt="pen",It="mouse",jt="kinect",Rt=25,At=1,Bt=2,Lt=4,Nt=8,Dt=1,Wt=2,Ft=4,zt=8,Xt=16,Yt=Wt|Ft,Vt=zt|Xt,qt=Yt|Vt,Ht=["x","y"],Ut=["clientX","clientY"];P.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(w(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(w(this.element),this.evWin,this.domHandler)}};var Gt={mousedown:At,mousemove:Bt,mouseup:Lt},Jt="mousedown",Zt="mousemove mouseup";h(z,P,{handler:function(t){var e=Gt[t.type];e&At&&0===t.button&&(this.pressed=!0),e&Bt&&1!==t.which&&(e=Lt),this.pressed&&(e&Lt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:It,srcEvent:t}))}});var Kt={pointerdown:At,pointermove:Bt,pointerup:Lt,pointercancel:Nt,pointerout:Nt},$t={2:kt,3:Mt,4:It,5:jt},Qt="pointerdown",te="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Qt="MSPointerDown",te="MSPointerMove MSPointerUp MSPointerCancel"),h(X,P,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=Kt[i],o=$t[t.pointerType]||t.pointerType,s=o==kt,u=T(e,t.pointerId,"pointerId");r&At&&(0===t.button||s)?u<0&&(e.push(t),u=e.length-1):r&(Lt|Nt)&&(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 ee={touchstart:At,touchmove:Bt,touchend:Lt,touchcancel:Nt},ne="touchstart",ie="touchstart touchmove touchend touchcancel";h(Y,P,{handler:function(t){var e=ee[t.type];if(e===At&&(this.started=!0),this.started){var n=V.call(this,t,e);e&(Lt|Nt)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:kt,srcEvent:t})}}});var re={touchstart:At,touchmove:Bt,touchend:Lt,touchcancel:Nt},oe="touchstart touchmove touchend touchcancel";h(q,P,{handler:function(t){var e=re[t.type],n=H.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:kt,srcEvent:t})}});var se=2500,ue=25;h(U,P,{handler:function(t,e,n){var i=n.pointerType==kt,r=n.pointerType==It;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 ae=O(gt.style,"touchAction"),ce=ae!==u,le="compute",fe="auto",he="manipulation",pe="none",de="pan-x",ve="pan-y",ye=Q();K.prototype={set:function(t){t==le&&(t=this.compute()),ce&&this.manager.element.style&&ye[t]&&(this.manager.element.style[ae]=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,pe)&&!ye[pe],o=b(i,ve)&&!ye[ve],s=b(i,de)&&!ye[de];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&Yt||s&&n&Vt?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ge=1,me=2,be=4,_e=8,Te=_e,Ee=16,Se=32;tt.prototype={defaults:{},set:function(t){return vt(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=it(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return c(t,"dropRecognizeWith",this)?this:(t=it(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(c(t,"requireFailure",this))return this;var e=this.requireFail;return t=it(t,this),T(e,t)===-1&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(c(t,"dropRequireFailure",this))return this;t=it(t,this);var e=T(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<_e&&e(n.options.event+et(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=_e&&e(n.options.event+et(i))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=Se)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(Se|ge)))return!1;t++}return!0},recognize:function(t){var e=vt({},t);return d(this.options.enable,[this,e])?(this.state&(Te|Ee|Se)&&(this.state=ge),this.state=this.process(e),void(this.state&(me|be|_e|Ee)&&this.tryEmit(e))):(this.reset(),void(this.state=Se))},process:function(t){},getTouchAction:function(){},reset:function(){}},h(rt,tt,{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&(me|be),r=this.attrTest(t);return i&&(n&Nt||!r)?e|Ee:i||r?n&Lt?e|_e:e&me?e|be:me:Se}}),h(ot,rt,{defaults:{event:"pan",threshold:10,pointers:1,direction:qt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Yt&&e.push(ve),t&Vt&&e.push(de),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&Yt?(r=0===o?Dt:o<0?Wt:Ft,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===s?Dt:s<0?zt:Xt,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return rt.prototype.attrTest.call(this,t)&&(this.state&me||!(this.state&me)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=nt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),h(st,rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[pe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&me)},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)}}),h(ut,tt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[fe]},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&(Lt|Nt)&&!r)this.reset();else if(t.eventType&At)this.reset(),this._timer=a(function(){this.state=Te,this.tryEmit()},e.time,this);else if(t.eventType&Lt)return Te;return Se},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Te&&(t&&t.eventType&Lt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Tt(),this.manager.emit(this.options.event,this._input)))}}),h(at,rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[pe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&me)}}),h(ct,rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Yt|Vt,pointers:1},getTouchAction:function(){return ot.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Yt|Vt)?e=t.overallVelocity:n&Yt?e=t.overallVelocityX:n&Vt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&_t(e)>this.options.velocity&&t.eventType&Lt},emit:function(t){var e=nt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),h(lt,tt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[he]},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&At&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=Lt)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||N(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t;var u=this.count%e.taps;if(0===u)return this.hasRequireFailures()?(this._timer=a(function(){this.state=Te,this.tryEmit()},e.interval,this),me):Te}return Se},failTimeout:function(){return this._timer=a(function(){this.state=Se},this.options.interval,this),Se},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Te&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ft.VERSION="2.0.7",ft.defaults={domEvents:!1,touchAction:le,enable:!0,inputTarget:null,inputClass:null,preset:[[at,{enable:!1}],[st,{enable:!1},["rotate"]],[ct,{direction:Yt}],[ot,{direction:Yt},["swipe"]],[lt],[lt,{event:"doubletap",taps:2},["tap"]],[ut]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Oe=1,xe=2;ht.prototype={set:function(t){return vt(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?xe:Oe},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&Te)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],e.stopped===xe||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(me|be|_e)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof tt)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=T(e,t);n!==-1&&(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),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),function(t){e?n[t]&&n[t].splice(T(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&dt(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&&pt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},vt(ft,{INPUT_START:At,INPUT_MOVE:Bt,INPUT_END:Lt,INPUT_CANCEL:Nt,STATE_POSSIBLE:ge,STATE_BEGAN:me,STATE_CHANGED:be,STATE_ENDED:_e,STATE_RECOGNIZED:Te,STATE_CANCELLED:Ee,STATE_FAILED:Se,DIRECTION_NONE:Dt,DIRECTION_LEFT:Wt,DIRECTION_RIGHT:Ft,DIRECTION_UP:zt,DIRECTION_DOWN:Xt,DIRECTION_HORIZONTAL:Yt,DIRECTION_VERTICAL:Vt,DIRECTION_ALL:qt,Manager:ht,Input:P,TouchAction:K,TouchInput:q,MouseInput:z,PointerEventInput:X,TouchMouseInput:U,SingleTouchInput:Y,Recognizer:tt,AttrRecognizer:rt,Tap:lt,Pan:ot,Swipe:ct,Pinch:st,Rotate:at,Press:ut,on:y,off:g,each:l,merge:St,extend:Et,assign:vt,inherit:h,bindFn:p,prefixed:O});var we="undefined"!=typeof r?r:"undefined"!=typeof self?self:{};we.Hammer=ft,i=function(){return ft}.call(e,n,e,t),!(i!==u&&(t.exports=i))}(window,document,"Hammer")}])});
!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 f(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 h(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&vt(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(_(e),function(e){t.addEventListener(e,n,!1)})}function g(t,e,n){l(_(e),function(e){t.removeEventListener(e,n,!1)})}function m(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){return t.trim().split(/\s+/g)}function T(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 E(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];T(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<yt.length;){if(n=yt[o],i=n?n+r:e,i in t)return i;o++}return u}function x(){return Ot++}function w(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){var e,n=t.options.inputClass;return new(e=n?n:Ct?X:Pt?q:wt?U:z)(t,k)}function k(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&At&&i-r===0,s=e&(Lt|Nt)&&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=R(e)),r>1&&!n.firstMultiple?n.firstMultiple=R(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=D(u,a),e.distance=N(u,a),I(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=_t(c.x)>_t(c.y)?c.x:c.y,e.scale=s?F(s.pointers,i):1,e.rotation=s?W(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;m(e.srcEvent.target,l)&&(l=e.srcEvent.target),e.target=l}function I(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==At&&o.eventType!==Lt||(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!=Nt&&(a>Rt||s.velocity===u)){var c=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,f=B(a,c,l);i=f.x,r=f.y,n=_t(f.x)>_t(f.y)?f.x:f.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 R(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:bt(t.pointers[n].clientX),clientY:bt(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:bt(t[0].clientX),y:bt(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:bt(n/e),y:bt(i/e)}}function B(t,e,n){return{x:e/t||0,y:n/t||0}}function L(t,e){return t===e?Dt:_t(t)>=_t(e)?t<0?Wt:Ft:e<0?zt:Xt}function N(t,e,n){n||(n=Ht);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function D(t,e,n){n||(n=Ht);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function W(t,e){return D(e[1],e[0],Ut)+D(t[1],t[0],Ut)}function F(t,e){return N(e[0],e[1],Ut)/N(t[0],t[1],Ut)}function z(){this.evEl=Jt,this.evWin=Zt,this.pressed=!1,C.apply(this,arguments)}function X(){this.evEl=Qt,this.evWin=te,C.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function Y(){this.evTarget=ne,this.evWin=ie,this.started=!1,C.apply(this,arguments)}function V(t,e){var n=E(t.touches),i=E(t.changedTouches);return e&(Lt|Nt)&&(n=S(n.concat(i),"identifier",!0)),[n,i]}function q(){this.evTarget=oe,this.targetIds={},C.apply(this,arguments)}function H(t,e){var n=E(t.touches),i=this.targetIds;if(e&(At|Bt)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=E(t.changedTouches),u=[],a=this.target;if(o=n.filter(function(t){return m(t.target,a)}),e===At)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&(Lt|Nt)&&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&At?(this.primaryTouch=e.changedPointers[0].identifier,J.call(this,e)):t&(Lt|Nt)&&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,se)}}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<=ue&&s<=ue)return!0}return!1}function K(t,e){this.manager=t,this.set(e)}function $(t){if(b(t,pe))return pe;var e=b(t,de),n=b(t,ve);return e&&n?pe:e||n?e?de:ve:b(t,he)?he:fe}function Q(){if(!ce)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}function tt(t){this.options=vt({},this.defaults,t||{}),this.id=x(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=ge,this.simultaneous={},this.requireFail=[]}function et(t){return t&Ee?"cancel":t&_e?"end":t&be?"move":t&me?"start":""}function nt(t){return t==Xt?"down":t==zt?"up":t==Wt?"left":t==Ft?"right":""}function it(t,e){var n=e.manager;return n?n.get(t):t}function rt(){tt.apply(this,arguments)}function ot(){rt.apply(this,arguments),this.pX=null,this.pY=null}function st(){rt.apply(this,arguments)}function ut(){tt.apply(this,arguments),this._timer=null,this._input=null}function at(){rt.apply(this,arguments)}function ct(){rt.apply(this,arguments)}function lt(){tt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ft(t,e){return e=e||{},e.recognizers=v(e.recognizers,ft.defaults.preset),new ht(t,e)}function ht(t,e){this.options=vt({},ft.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),pt(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 pt(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 dt(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var vt,yt=["","webkit","Moz","MS","ms","o"],gt=o.createElement("div"),mt="function",bt=Math.round,_t=Math.abs,Tt=Date.now;vt="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=f(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`."),St=f(function(t,e){return Et(t,e,!0)},"merge","Use `assign`."),Ot=1,xt=/mobile|tablet|ip(ad|hone|od)|android/i,wt="ontouchstart"in r,Ct=O(r,"PointerEvent")!==u,Pt=wt&&xt.test(navigator.userAgent),kt="touch",Mt="pen",It="mouse",jt="kinect",Rt=25,At=1,Bt=2,Lt=4,Nt=8,Dt=1,Wt=2,Ft=4,zt=8,Xt=16,Yt=Wt|Ft,Vt=zt|Xt,qt=Yt|Vt,Ht=["x","y"],Ut=["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(w(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(w(this.element),this.evWin,this.domHandler)}};var Gt={mousedown:At,mousemove:Bt,mouseup:Lt},Jt="mousedown",Zt="mousemove mouseup";h(z,C,{handler:function(t){var e=Gt[t.type];e&At&&0===t.button&&(this.pressed=!0),e&Bt&&1!==t.which&&(e=Lt),this.pressed&&(e&Lt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:It,srcEvent:t}))}});var Kt={pointerdown:At,pointermove:Bt,pointerup:Lt,pointercancel:Nt,pointerout:Nt},$t={2:kt,3:Mt,4:It,5:jt},Qt="pointerdown",te="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Qt="MSPointerDown",te="MSPointerMove MSPointerUp MSPointerCancel"),h(X,C,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=Kt[i],o=$t[t.pointerType]||t.pointerType,s=o==kt,u=T(e,t.pointerId,"pointerId");r&At&&(0===t.button||s)?u<0&&(e.push(t),u=e.length-1):r&(Lt|Nt)&&(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 ee={touchstart:At,touchmove:Bt,touchend:Lt,touchcancel:Nt},ne="touchstart",ie="touchstart touchmove touchend touchcancel";h(Y,C,{handler:function(t){var e=ee[t.type];if(e===At&&(this.started=!0),this.started){var n=V.call(this,t,e);e&(Lt|Nt)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:kt,srcEvent:t})}}});var re={touchstart:At,touchmove:Bt,touchend:Lt,touchcancel:Nt},oe="touchstart touchmove touchend touchcancel";h(q,C,{handler:function(t){var e=re[t.type],n=H.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:kt,srcEvent:t})}});var se=2500,ue=25;h(U,C,{handler:function(t,e,n){var i=n.pointerType==kt,r=n.pointerType==It;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 ae=O(gt.style,"touchAction"),ce=ae!==u,le="compute",fe="auto",he="manipulation",pe="none",de="pan-x",ve="pan-y",ye=Q();K.prototype={set:function(t){t==le&&(t=this.compute()),ce&&this.manager.element.style&&ye[t]&&(this.manager.element.style[ae]=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,pe)&&!ye[pe],o=b(i,ve)&&!ye[ve],s=b(i,de)&&!ye[de];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&Yt||s&&n&Vt?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ge=1,me=2,be=4,_e=8,Te=_e,Ee=16,Se=32;tt.prototype={defaults:{},set:function(t){return vt(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=it(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return c(t,"dropRecognizeWith",this)?this:(t=it(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(c(t,"requireFailure",this))return this;var e=this.requireFail;return t=it(t,this),T(e,t)===-1&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(c(t,"dropRequireFailure",this))return this;t=it(t,this);var e=T(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<_e&&e(n.options.event+et(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=_e&&e(n.options.event+et(i))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=Se)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(Se|ge)))return!1;t++}return!0},recognize:function(t){var e=vt({},t);return d(this.options.enable,[this,e])?(this.state&(Te|Ee|Se)&&(this.state=ge),this.state=this.process(e),void(this.state&(me|be|_e|Ee)&&this.tryEmit(e))):(this.reset(),void(this.state=Se))},process:function(t){},getTouchAction:function(){},reset:function(){}},h(rt,tt,{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&(me|be),r=this.attrTest(t);return i&&(n&Nt||!r)?e|Ee:i||r?n&Lt?e|_e:e&me?e|be:me:Se}}),h(ot,rt,{defaults:{event:"pan",threshold:10,pointers:1,direction:qt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Yt&&e.push(ve),t&Vt&&e.push(de),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&Yt?(r=0===o?Dt:o<0?Wt:Ft,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===s?Dt:s<0?zt:Xt,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return rt.prototype.attrTest.call(this,t)&&(this.state&me||!(this.state&me)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=nt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),h(st,rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[pe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&me)},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)}}),h(ut,tt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[fe]},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&(Lt|Nt)&&!r)this.reset();else if(t.eventType&At)this.reset(),this._timer=a(function(){this.state=Te,this.tryEmit()},e.time,this);else if(t.eventType&Lt)return Te;return Se},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Te&&(t&&t.eventType&Lt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Tt(),this.manager.emit(this.options.event,this._input)))}}),h(at,rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[pe]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&me)}}),h(ct,rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Yt|Vt,pointers:1},getTouchAction:function(){return ot.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Yt|Vt)?e=t.overallVelocity:n&Yt?e=t.overallVelocityX:n&Vt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&_t(e)>this.options.velocity&&t.eventType&Lt},emit:function(t){var e=nt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),h(lt,tt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[he]},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&At&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=Lt)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||N(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t;var u=this.count%e.taps;if(0===u)return this.hasRequireFailures()?(this._timer=a(function(){this.state=Te,this.tryEmit()},e.interval,this),me):Te}return Se},failTimeout:function(){return this._timer=a(function(){this.state=Se},this.options.interval,this),Se},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Te&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ft.VERSION="2.0.7",ft.defaults={domEvents:!1,touchAction:le,enable:!0,inputTarget:null,inputClass:null,preset:[[at,{enable:!1}],[st,{enable:!1},["rotate"]],[ct,{direction:Yt}],[ot,{direction:Yt},["swipe"]],[lt],[lt,{event:"doubletap",taps:2},["tap"]],[ut]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Oe=1,xe=2;ht.prototype={set:function(t){return vt(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?xe:Oe},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&Te)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],e.stopped===xe||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(me|be|_e)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof tt)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=T(e,t);n!==-1&&(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),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),function(t){e?n[t]&&n[t].splice(T(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&dt(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&&pt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},vt(ft,{INPUT_START:At,INPUT_MOVE:Bt,INPUT_END:Lt,INPUT_CANCEL:Nt,STATE_POSSIBLE:ge,STATE_BEGAN:me,STATE_CHANGED:be,STATE_ENDED:_e,STATE_RECOGNIZED:Te,STATE_CANCELLED:Ee,STATE_FAILED:Se,DIRECTION_NONE:Dt,DIRECTION_LEFT:Wt,DIRECTION_RIGHT:Ft,DIRECTION_UP:zt,DIRECTION_DOWN:Xt,DIRECTION_HORIZONTAL:Yt,DIRECTION_VERTICAL:Vt,DIRECTION_ALL:qt,Manager:ht,Input:C,TouchAction:K,TouchInput:q,MouseInput:z,PointerEventInput:X,TouchMouseInput:U,SingleTouchInput:Y,Recognizer:tt,AttrRecognizer:rt,Tap:lt,Pan:ot,Swipe:ct,Pinch:st,Rotate:at,Press:ut,on:y,off:g,each:l,merge:St,extend:Et,assign:vt,inherit:h,bindFn:p,prefixed:O});var we="undefined"!=typeof r?r:"undefined"!=typeof self?self:{};we.Hammer=ft,i=function(){return ft}.call(e,n,e,t),!(i!==u&&(t.exports=i))}(window,document,"Hammer")}])});
//# sourceMappingURL=index.js.map
import React from 'react';
import ButtonActions from '../src/ButtonActions';
class Example extends React.Component {
constructor(props) {
super(props);
console.log('construct');
class Element2 extends React.Component {
render() {
return (
<ButtonActions
autoclose
onPress={() => console.log('callback 2 on touch')}
{...this.props.swipes}
>
<div style={{ display: 'flex', alignItems: 'center', flex: '1', textAlign: 'center', width: '300px', height: '75px', backgroundColor: '#fbab56', color: '#FFF' }} >
<div style={{ flex: '1', fontWeight: 'bold' }} > Component Element 2</div>
</div>
</ButtonActions>
);
}
};
class Example extends React.Component {
componentWillMount() {

@@ -21,16 +32,4 @@ console.log('will mount')

onClose,
left: [
left: [
{
text: 'Answer',
onPress: () => console.log('Answer'),
style: { backgroundColor: 'red', color: 'white' }
},
{
text: (<i style={{fontSize: '3em'}} className="fa fa-id-card" aria-hidden="true"></i>),
onPress:() => console.log('Id'),
style: { backgroundColor: '#00aaff', color: 'white' }
},
],
right: [
{
text: (<i style={{fontSize: '3em'}} className="fa fa-spinner fa-spin fa-3x fa-fw"></i>),

@@ -94,8 +93,2 @@ onPress: () => console.log('loading'),

const element2 = (
<div style={{ display: 'flex', alignItems: 'center', flex: '1', textAlign: 'center', width: '300px', height: '75px', backgroundColor: '#fbab56', color: '#FFF' }} >
<div style={{ flex: '1', fontWeight: 'bold' }} >Decorated Element 1</div>
</div>
);
const element3 = (

@@ -120,9 +113,3 @@ <div style={{ display: 'flex', alignItems: 'center', flex: '1', textAlign: 'center', width: '300px', height: '75px', backgroundColor: '#ab75ff', color: '#FFF' }} >

<br />
<ButtonActions
autoclose
onPress={() => console.log('callback 2 on touch')}
{...this.generateSwipes(2)}
>
{element2}
</ButtonActions>
<Element2 swipes={{...this.generateSwipes(2)}} />
<br />

@@ -129,0 +116,0 @@ <ButtonActions

{
"name": "react-button-actions",
"version": "0.0.6",
"version": "0.0.8",
"description": "Performant HoC designed to make buttons appear on swipe and others actions on some element.",

@@ -8,3 +8,5 @@ "main": "dist/index",

"start": "node_modules/.bin/webpack-dev-server --inline --port 8000 -w --progress --colors --config compilers/webpack.ds.js",
"build": "NODE_ENV=production node_modules/.bin/webpack -p --config compilers/webpack.build.js"
"build": "NODE_ENV=production node_modules/.bin/webpack -p --config compilers/webpack.build.js",
"build:watch": "NODE_ENV=production node_modules/.bin/webpack -p -w --config compilers/webpack.build.js",
"prepublish": "npm run build"
},

@@ -11,0 +13,0 @@ "keywords": [

@@ -67,2 +67,3 @@ import React, { PropTypes } from 'react';

if (this.leftIsVisible || this.rightIsVisible) {
// console.log('reset overlay for : ', this.swipeId);
this.onClose();

@@ -98,4 +99,4 @@ this.translateOverlay(0);

onPanEnd(evt) {
this.shouldShowRight = (evt.deltaX < 0 && evt.distance > this.treshold);
this.shouldShowLeft = (evt.deltaX > 0 && evt.distance > this.treshold);
this.shouldShowRight = (this.refs.rightBtnContainer && evt.deltaX < 0 && evt.distance > this.treshold);
this.shouldShowLeft = (this.refs.leftBtnContainer && evt.deltaX > 0 && evt.distance > this.treshold);

@@ -124,11 +125,18 @@ if (!this.shouldShowRight && !this.shouldShowLeft) return this.resetOverlay();

transformLeftButton(value) {
this.refs.leftBtnContainer.style.transform = `scale3d(${value}, 1, 1)`;
if (this.refs.leftBtnContainer) {
this.refs.leftBtnContainer.style.transform = `scale3d(${value}, 1, 1)`;
}
}
transformRightButton(value) {
this.refs.rightBtnContainer.style.transform = `scale3d(${value}, 1, 1)`;
if (this.refs.rightBtnContainer) {
this.refs.rightBtnContainer.style.transform = `scale3d(${value}, 1, 1)`;
}
}
translateOverlay(value) {
this.refs.overlay.style.transform = `translate3d(${value}px,0px,0px)`;
if (this.refs.overlay) {
this.refs.overlay.style.transform = `translate3d(${value}px,0px,0px)`;
}
}

@@ -197,3 +205,5 @@

const eventsString = Object.keys(this.bindedEvents).join(' ');
console.log('disbinding events');
// console.log('ds', eventsString);
// console.log('hammer : ', this.hammer);
// console.log('disbinding events');
this.hammer.off(eventsString);

@@ -208,5 +218,5 @@ }

const events = this.getEvents();
// console.log('events', events);
if (events.left || events.right) {
console.log('binding pan');
// console.log('binding pan');
this.registerEvent('panstart');

@@ -217,4 +227,4 @@ this.hammer.on('panstart', this.onPanStart);

if (events.left) {
console.log('binding pan left');
if (events.right) {
// console.log('binding pan left');
this.registerEvent('panleft');

@@ -224,4 +234,4 @@ this.hammer.on('panleft', this.onLeftPan);

if (events.right) {
console.log('binding pan right');
if (events.left) {
// console.log('binding pan right ho');
this.registerEvent('panright');

@@ -233,4 +243,5 @@ this.hammer.on('panright', this.onRightPan);

initTouchEvents() {
// console.log('has events : ', this.hasEvents());
if (this.hasEvents()) {
console.log('binding hammer');
// console.log('binding hammer', this.refs.overlay);
this.hammer = new Hammer(this.refs.overlay);

@@ -244,3 +255,2 @@ this.hammer.get('pan').set({ direction: Hammer.DIRECTION_HORIZONTAL });

initSizes() {
// const overlay = this.refs.overlay;
this.overlayWidth = this.refs.childrenContainer.offsetWidth;

@@ -254,5 +264,10 @@

this.refs.rightBtnContainer.style.width = `${this.btnsRightWidth}px`;
this.refs.leftBtnContainer.style.width = `${this.btnsLeftWidth}px`;
if (this.refs.rightBtnContainer) {
this.refs.rightBtnContainer.style.width = `${this.btnsRightWidth}px`;
}
if (this.refs.leftBtnContainer) {
this.refs.leftBtnContainer.style.width = `${this.btnsLeftWidth}px`;
}
this.treshold = Math.round(this.overlayWidth / 4.5);

@@ -262,3 +277,3 @@ }

componentDidMount() {
console.group('On did mount Swipe');
// console.group('On did mount Swipe');
// linking hammer ref content

@@ -268,7 +283,7 @@ this.initTouchEvents();

this.registerSwipe(this.swipeId, this.resetOverlay);
console.groupEnd();
// console.groupEnd();
}
handleBtnClick(action) {
console.log('action clicked : ', action);
// console.log('action clicked : ', action);
this.resetOverlay();

@@ -278,3 +293,3 @@ }

renderLeftButtons() {
return (this.props.left.length) ? (
return (this.props.left && this.props.left.length) ? (
<div className="leftBtnContainer" key="leftBtnContainer" style={this.styles.leftContainerStyles} ref="leftBtnContainer" >

@@ -293,3 +308,3 @@ { this.props.left.map((action, index) =>

renderRightButtons() {
return (this.props.right.length) ? (
return (this.props.right && this.props.right.length) ? (
<div

@@ -296,0 +311,0 @@ className="rightBtnContainer"

@@ -11,2 +11,4 @@ import React, { Component, PropTypes } from 'react';

closeSwipes(filteredId) {
// console.log('_compCallbacks', _compCallbacks);
// console.log('filteredId', filteredId);
Object.keys(_compCallbacks)

@@ -19,3 +21,3 @@ .filter((callbackId) => callbackId !== `${filteredId}`)

_compCallbacks[id] = callback;
console.log('added :', _compCallbacks);
// console.log('added :', _compCallbacks);
}

@@ -25,3 +27,3 @@

delete _compCallbacks[id];
console.log('removed : ', _compCallbacks);
// console.log('removed : ', _compCallbacks);
}

@@ -28,0 +30,0 @@

const Styles = {
SwipeStyles: {
overlayStyles: { zIndex: 2, transition: 'transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1)' },
baseSwipeContainerStyles: { overflow: 'hidden', position: 'relative', display: 'inline-block' },
baseSwipeContainerStyles: { overflow: 'hidden', position: 'relative' },
buttonsContainerStyles: { zIndex: 1, height: '100%' },

@@ -6,0 +6,0 @@ rightContainerStyles: {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc