Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-swipeout

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-swipeout - npm Package Compare versions

Comparing version 2.0.0-alpha.0 to 2.0.0-alpha.1

2

dist/rc-swipeout.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports["rc-swipeout"]=e(require("react"),require("react-dom")):t["rc-swipeout"]=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=99)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(9),o=n(39),i=n(27),u=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(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 r=n(40),o=n(17);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(1),i=n(37),u=n(7),c=function(t,e,n){var a,s,f,l=t&c.F,p=t&c.G,h=t&c.S,v=t&c.P,d=t&c.B,g=t&c.W,y=p?o:o[e]||(o[e]={}),b=y.prototype,m=p?r:h?r[e]:(r[e]||{}).prototype;p&&(n=e);for(a in n)(s=!l&&m&&void 0!==m[a])&&a in y||(f=s?m[a]:n[a],y[a]=p&&"function"!=typeof m[a]?n[a]:d&&s?i(f,r):g&&m[a]==f?function(t){var e=function(e,n,r){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,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[a]=f,t&c.R&&b&&!b[a]&&u(b,a,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(4),o=n(14);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(25)("wks"),o=n(15),i=n(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(44),o=n(18);t.exports=Object.keys||function(t){return r(t,o)}},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){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(53),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},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 r=n(9),o=n(77),i=n(18),u=n(24)("IE_PROTO"),c=function(){},a=function(){var t,e=n(38)("iframe"),r=i.length;for(e.style.display="none",n(70).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(4).f,o=n(3),i=n(8)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(25)("keys"),o=n(15);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(1),i=n(20),u=n(29),c=n(4).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:u.f(t)})}},function(t,e,n){e.f=n(8)},function(t,e,n){t.exports={default:n(62),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(30),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(55),i=r(o),u=n(54),c=r(u),a=n(35),s=r(a);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,s.default)(e)));t.prototype=(0,c.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(35),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(57),i=r(o),u=n(56),c=r(u),a="function"==typeof c.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":typeof t};e.default="function"==typeof c.default&&"symbol"===a(i.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":void 0===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 r=n(66);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(11),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){t.exports=!n(2)&&!n(10)(function(){return 7!=Object.defineProperty(n(38)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(36);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(20),o=n(6),i=n(45),u=n(7),c=n(3),a=n(19),s=n(72),f=n(23),l=n(79),p=n(8)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,d,g,y,b){s(n,e,d);var m,S,_,x=function(t){if(!h&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",w="values"==g,P=!1,E=t.prototype,M=E[p]||E["@@iterator"]||g&&E[g],T=M||x(g),j=g?w?x("entries"):T:void 0,C="Array"==e?E.entries||M:M;if(C&&(_=l(C.call(new t)))!==Object.prototype&&_.next&&(f(_,O,!0),r||c(_,p)||u(_,p,v)),w&&M&&"values"!==M.name&&(P=!0,T=function(){return M.call(this)}),r&&!b||!h&&!P&&E[p]||u(E,p,T),a[e]=T,a[O]=v,g)if(m={values:w?T:x("values"),keys:y?T:x("keys"),entries:j},b)for(S in m)S in E||i(E,S,m[S]);else o(o.P+o.F*(h||P),e,m);return m}},function(t,e,n){var r=n(13),o=n(14),i=n(5),u=n(27),c=n(3),a=n(39),s=Object.getOwnPropertyDescriptor;e.f=n(2)?s:function(t,e){if(t=i(t),e=u(e,!0),a)try{return s(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(44),o=n(18).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(3),o=n(5),i=n(68)(!1),u=n(24)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,s=[];for(n in c)n!=u&&r(c,n)&&s.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){t.exports=n(7)},function(t,e,n){var r=n(17);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"d",function(){return o}),n.d(e,"e",function(){return i}),n.d(e,"f",function(){return u}),n.d(e,"g",function(){return c}),n.d(e,"a",function(){return a}),n.d(e,"b",function(){return s});var r=1,o=2,i=4,u=8,c=16,a={time:251},s={threshold:10,velocity:.3}},function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52);e.default=r.a},function(t,e){},function(t,e,n){"use strict";var r=n(16),o=n.n(r),i=n(58),u=n.n(i),c=n(31),a=n.n(c),s=n(32),f=n.n(s),l=n(34),p=n.n(l),h=n(33),v=n.n(h),d=n(48),g=n.n(d),y=n(98),b=n.n(y),m=n(96),S=n(95),_=n(59),x=n.n(_),O=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]]);return n},w=function(t){function e(t){a()(this,e);var n=p()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.onCloseSwipe=function(t){if(n.openedLeft||n.openedRight){(function(t){for(;t.parentNode&&t.parentNode!==document.body;){if(t.className.indexOf(n.props.prefixCls+"-actions")>-1)return t;t=t.parentNode}})(t.target)||(t.preventDefault(),n.close())}},n.onPanStart=function(t){var e=t.direction,r=t.moveStatus,o=r.x,i=2===e,u=4===e;if(i||u){var c=n.props,a=c.left,s=c.right;n.needShowRight=i&&s.length>0,n.needShowLeft=u&&a.length>0,n.left&&(n.left.style.visibility=n.needShowRight?"hidden":"visible"),n.right&&(n.right.style.visibility=n.needShowLeft?"hidden":"visible"),(n.needShowLeft||n.needShowRight)&&(n.swiping=!0,n.setState({swiping:n.swiping}),n._setStyle(o))}},n.onPanMove=function(t){var e=t.moveStatus,r=e.x;n.swiping&&n._setStyle(r)},n.onPanEnd=function(t){if(n.swiping){var e=n.btnsLeftWidth,r=n.btnsRightWidth,o=t.moveStatus,i=o.x,u=n.needShowRight&&Math.abs(i)>r/2,c=n.needShowLeft&&Math.abs(i)>r/2;u?n.open(-r,!1,!0):c?n.open(e,!0,!1):n.close(),n.swiping=!1,n.setState({swiping:n.swiping}),n.needShowLeft=!1,n.needShowRight=!1}},n._setStyle=function(t){var e=t>0?n.btnsLeftWidth:-n.btnsRightWidth,r=n._getContentEasing(t,e);n.content.style.left=r+"px",n.cover&&(n.cover.style.display=Math.abs(t)>0?"block":"none",n.cover.style.left=r+"px")},n.open=function(t,e,r){n.openedLeft||n.openedRight||!n.props.onOpen||n.props.onOpen(),n.openedLeft=e,n.openedRight=r,n._setStyle(t)},n.close=function(){(n.openedLeft||n.openedRight)&&n.props.onClose&&n.props.onClose(),n._setStyle(0),n.openedLeft=!1,n.openedRight=!1},n.state={swiping:!1},n.openedLeft=!1,n.openedRight=!1,n}return v()(e,t),f()(e,[{key:"componentDidMount",value:function(){this.btnsLeftWidth=this.left?this.left.offsetWidth:0,this.btnsRightWidth=this.right?this.right.offsetWidth:0,document.body.addEventListener("touchstart",this.onCloseSwipe,!0)}},{key:"componentWillUnmount",value:function(){document.body.removeEventListener("touchstart",this.onCloseSwipe,!0)}},{key:"onBtnClick",value:function(t,e){var n=e.onPress;n&&n(t),this.props.autoClose&&this.close()}},{key:"_getContentEasing",value:function(t,e){var n=Math.abs(t)-Math.abs(e),r=n>0,o=e>0?1:-1;return r?(t=e+Math.pow(n,.85)*o,Math.abs(t)>Math.abs(e)?e:t):t}},{key:"renderButtons",value:function(t,e){var n=this,r=this.props.prefixCls;return t&&t.length?g.a.createElement("div",{className:r+"-actions "+r+"-actions-"+e,ref:function(t){return n[e]=t}},t.map(function(t,e){return g.a.createElement("div",{key:e,className:r+"-btn "+(t.hasOwnProperty("className")?t.className:""),style:t.style,role:"button",onClick:function(e){return n.onBtnClick(e,t)}},g.a.createElement("div",{className:r+"-btn-text"},t.text||"Click"))})):null}},{key:"render",value:function(){var t=this,e=this.props,r=e.prefixCls,i=e.left,c=e.right,a=e.disabled,s=e.children,f=O(e,["prefixCls","left","right","disabled","children"]),l=n.i(S.a)(f,["autoClose","onOpen","onClose"]),p={ref:function(e){return t.content=b.a.findDOMNode(e)}},h=x()(r,u()({},r+"-swiping",this.state.swiping));return!i.length&&!c.length||a?g.a.createElement("div",o()({},p,l),s):g.a.createElement("div",o()({className:h},l),g.a.createElement("div",{className:r+"-cover",ref:function(e){return t.cover=e}}),this.renderButtons(i,"left"),this.renderButtons(c,"right"),g.a.createElement(m.a,o()({onPanStart:this.onPanStart,onPanMove:this.onPanMove,onPanEnd:this.onPanEnd},p),g.a.createElement("div",{className:r+"-content"},s)))}}]),e}(g.a.Component);e.a=w,w.defaultProps={prefixCls:"rc-swipeout",autoClose:!1,disabled:!1,left:[],right:[],onOpen:function(){},onClose:function(){}}},function(t,e,n){"use strict";var r=n(51);n.d(e,"a",function(){return r.a})},function(t,e,n){t.exports={default:n(60),__esModule:!0}},function(t,e,n){t.exports={default:n(61),__esModule:!0}},function(t,e,n){t.exports={default:n(63),__esModule:!0}},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){"use strict";e.__esModule=!0;var r=n(30),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r))t.push(n.apply(null,r));else if("object"===o)for(var u in r)i.call(r,u)&&r[u]&&t.push(u)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?t.exports=n:(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){n(85),t.exports=n(1).Object.assign},function(t,e,n){n(86);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(87);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(88),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){n(91),n(89),n(92),n(93),t.exports=n(1).Symbol},function(t,e,n){n(90),n(94),t.exports=n(29).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 r=n(5),o=n(83),i=n(82);t.exports=function(t){return function(e,n,u){var c,a=r(e),s=o(a.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(12),o=n(22),i=n(13);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,c=n(t),a=i.f,s=0;c.length>s;)a.call(t,u=c[s++])&&e.push(u);return e}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(36);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(21),o=n(14),i=n(23),u={};n(7)(u,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(12),o=n(5);t.exports=function(t,e){for(var n,i=o(t),u=r(i),c=u.length,a=0;c>a;)if(i[n=u[a++]]===e)return n}},function(t,e,n){var r=n(15)("meta"),o=n(11),i=n(3),u=n(4).f,c=0,a=Object.isExtensible||function(){return!0},s=!n(10)(function(){return a(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!a(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!a(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return s&&v.NEED&&a(t)&&!i(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){"use strict";var r=n(12),o=n(22),i=n(13),u=n(46),c=n(40),a=Object.assign;t.exports=!a||n(10)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r})?function(t,e){for(var n=u(t),a=arguments.length,s=1,f=o.f,l=i.f;a>s;)for(var p,h=c(arguments[s++]),v=f?r(h).concat(f(h)):r(h),d=v.length,g=0;d>g;)l.call(h,p=v[g++])&&(n[p]=h[p]);return n}:a},function(t,e,n){var r=n(4),o=n(9),i=n(12);t.exports=n(2)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,a=0;c>a;)r.f(t,n=u[a++],e[n]);return t}},function(t,e,n){var r=n(5),o=n(43).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,e,n){var r=n(3),o=n(46),i=n(24)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(11),o=n(9),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(37)(Function.call,n(42).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(26),o=n(17);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),a=r(n),s=c.length;return a<0||a>=s?t?"":void 0:(i=c.charCodeAt(a),i<55296||i>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(26),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(26),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=n(67),o=n(73),i=n(19),u=n(5);t.exports=n(41)(Array,"Array",function(t,e){this._t=u(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,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(6);r(r.S+r.F,"Object",{assign:n(76)})},function(t,e,n){var r=n(6);r(r.S,"Object",{create:n(21)})},function(t,e,n){var r=n(6);r(r.S+r.F*!n(2),"Object",{defineProperty:n(4).f})},function(t,e,n){var r=n(6);r(r.S,"Object",{setPrototypeOf:n(80).set})},function(t,e){},function(t,e,n){"use strict";var r=n(81)(!0);n(41)(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=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(2),u=n(6),c=n(45),a=n(75).KEY,s=n(10),f=n(25),l=n(23),p=n(15),h=n(8),v=n(29),d=n(28),g=n(74),y=n(69),b=n(71),m=n(9),S=n(5),_=n(27),x=n(14),O=n(21),w=n(78),P=n(42),E=n(4),M=n(12),T=P.f,j=E.f,C=w.f,k=r.Symbol,L=r.JSON,G=L&&L.stringify,R=h("_hidden"),N=h("toPrimitive"),A={}.propertyIsEnumerable,F=f("symbol-registry"),I=f("symbols"),W=f("op-symbols"),D=Object.prototype,B="function"==typeof k,q=r.QObject,z=!q||!q.prototype||!q.prototype.findChild,V=i&&s(function(){return 7!=O(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=T(D,e);r&&delete D[e],j(t,e,n),r&&t!==D&&j(D,e,r)}:j,U=function(t){var e=I[t]=O(k.prototype);return e._k=t,e},H=B&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},J=function(t,e,n){return t===D&&J(W,e,n),m(t),e=_(e,!0),m(n),o(I,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=O(n,{enumerable:x(0,!1)})):(o(t,R)||j(t,R,x(1,{})),t[R][e]=!0),V(t,e,n)):j(t,e,n)},K=function(t,e){m(t);for(var n,r=y(e=S(e)),o=0,i=r.length;i>o;)J(t,n=r[o++],e[n]);return t},Y=function(t,e){return void 0===e?O(t):K(O(t),e)},Q=function(t){var e=A.call(this,t=_(t,!0));return!(this===D&&o(I,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(I,t)||o(this,R)&&this[R][t])||e)},X=function(t,e){if(t=S(t),e=_(e,!0),t!==D||!o(I,e)||o(W,e)){var n=T(t,e);return!n||!o(I,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=C(S(t)),r=[],i=0;n.length>i;)o(I,e=n[i++])||e==R||e==a||r.push(e);return r},$=function(t){for(var e,n=t===D,r=C(n?W:S(t)),i=[],u=0;r.length>u;)!o(I,e=r[u++])||n&&!o(D,e)||i.push(I[e]);return i};B||(k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===D&&e.call(W,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),V(this,t,x(1,n))};return i&&z&&V(D,t,{configurable:!0,set:e}),U(t)},c(k.prototype,"toString",function(){return this._k}),P.f=X,E.f=J,n(43).f=w.f=Z,n(13).f=Q,n(22).f=$,i&&!n(20)&&c(D,"propertyIsEnumerable",Q,!0),v.f=function(t){return U(h(t))}),u(u.G+u.W+u.F*!B,{Symbol:k});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)h(tt[et++]);for(var nt=M(h.store),rt=0;nt.length>rt;)d(nt[rt++]);u(u.S+u.F*!B,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=k(t)},keyFor:function(t){if(H(t))return g(F,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!B,"Object",{create:Y,defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),L&&u(u.S+u.F*(!B||s(function(){var t=k();return"[null]"!=G([t])||"{}"!=G({a:t})||"{}"!=G(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&b(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!H(e))return e}),r[1]=e,G.apply(L,r)}}}),k.prototype[N]||n(7)(k.prototype,N,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(28)("asyncIterator")},function(t,e,n){n(28)("observable")},function(t,e,n){n(84);for(var r=n(0),o=n(7),i=n(19),u=n(8)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<c.length;a++){var s=c[a],f=r[s],l=f&&f.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,e,n){"use strict";function r(t,e){for(var n=i()({},t),r=0;r<e.length;r++){delete n[e[r]]}return n}var o=n(16),i=n.n(o);e.a=r},function(t,e,n){"use strict";var r=n(16),o=n.n(r),i=n(31),u=n.n(i),c=n(32),a=n.n(c),s=n(34),f=n.n(s),l=n(33),p=n.n(l),h=n(48),v=n.n(h),d=n(97),g=n(47),y=function(t){function e(t){u()(this,e);var r=f()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.state={},r.triggerEvent=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];var i=r.props[t];"function"==typeof i&&i.apply(void 0,[r.getGestureState()].concat(n))},r.triggerCombineEvent=function(t,e){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];r.triggerEvent.apply(r,[t].concat(o)),r.triggerSubEvent.apply(r,[t,e].concat(o))},r.triggerSubEvent=function(t,e){for(var o=arguments.length,i=Array(o>2?o-2:0),u=2;u<o;u++)i[u-2]=arguments[u];if(e){var c=n.i(d.a)(t,e);r.triggerEvent.apply(r,[c].concat(i))}},r.triggerPinchEvent=function(t,e){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var u=r.gesture.scale;"move"===e&&"number"==typeof u&&(u>1&&r.triggerEvent("onPinchOut"),u<1&&r.triggerEvent("onPinchIn")),r.triggerCombineEvent.apply(r,[t,e].concat(o))},r.initPressTimer=function(){r.cleanPressTimer(),r.pressTimer=setTimeout(function(){r.setGestureState({press:!0}),r.triggerEvent("onPress")},g.a.time)},r.cleanPressTimer=function(){r.pressTimer&&clearTimeout(r.pressTimer)},r.setGestureState=function(t){r.gesture||(r.gesture={}),r.gesture=o()({},r.gesture,t)},r.getGestureState=function(){return r.gesture?o()({},r.gesture):r.gesture},r.cleanGestureState=function(){delete r.gesture},r.getTouches=function(t){return Array.prototype.slice.call(t.touches).map(function(t){return{x:t.pageX,y:t.pageY}})},r._handleTouchStart=function(t){t.preventDefault(),r.initGestureStatus(t),r.initPressTimer(),r.checkIfMultiTouchStart()},r.initGestureStatus=function(t){r.cleanGestureState();var e=r.getTouches(t),o=n.i(d.b)(),i=n.i(d.c)(e);r.setGestureState({startTime:o,startTouches:e,startMutliFingerStatus:i,time:o,touches:e,mutliFingerStatus:i})},r.checkIfMultiTouchStart=function(){var t=r.props,e=t.enablePinch,o=t.enableRotate,i=r.gesture.touches;if(i.length>1&&(e||o)){if(e){var u=n.i(d.c)(i);r.setGestureState({startMutliFingerStatus:u,pinch:!0,scale:1}),r.triggerCombineEvent("onPinch","start")}o&&(r.setGestureState({rotate:!0,rotation:0}),r.triggerCombineEvent("onRotate","start"))}},r._handleTouchMove=function(t){r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.checkIfSingleTouchMove(),r.checkIfMultiTouchMove())},r.checkIfMultiTouchMove=function(){var t=r.gesture,e=t.pinch,o=t.rotate,i=t.touches,u=t.startMutliFingerStatus,c=t.mutliFingerStatus;if(e||o){if(i.length<2)return r.setGestureState({pinch:!1,rotate:!1}),e&&r.triggerCombineEvent("onPinch","cancel"),void(o&&r.triggerCombineEvent("onRotate","cancel"));if(e){var a=c.z/u.z;r.setGestureState({scale:a}),r.triggerPinchEvent("onPinch","move")}if(o){var s=n.i(d.d)(u,c);r.setGestureState({rotation:s}),r.triggerCombineEvent("onRotate","move")}}},r.checkIfSingleTouchMove=function(){var t=r.gesture,e=t.pan,o=t.touches,i=t.moveStatus;if(o.length>1)return r.setGestureState({pan:!1}),void(e&&r.triggerCombineEvent("onPan","cancel"));if(i){var u=i.x,c=i.y,a=n.i(d.e)(u,c);r.setGestureState({direction:a});var s=n.i(d.f)(a);e?(r.triggerCombineEvent("onPan",s),r.triggerSubEvent("onPan","move")):(r.triggerCombineEvent("onPan","start"),r.setGestureState({pan:!0}))}},r.checkIfMultiTouchEnd=function(t){var e=r.gesture,n=e.pinch,o=e.rotate;n&&r.triggerCombineEvent("onPinch",t),o&&r.triggerCombineEvent("onRotate",t)},r.updateGestureStatus=function(t){var e=n.i(d.b)();if(r.setGestureState({time:e}),t.touches&&t.touches.length){var o=r.gesture,i=o.startTime,u=o.startTouches,c=o.pinch,a=o.rotate,s=r.getTouches(t),f=n.i(d.g)(u,s,e-i),l=void 0;(c||a)&&(l=n.i(d.c)(s)),r.setGestureState({touches:s,mutliFingerStatus:l,moveStatus:f})}},r._handleTouchEnd=function(t){r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.doSingleTouchEnd("end"),r.checkIfMultiTouchEnd("end"))},r._handleTouchCancel=function(t){r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.doSingleTouchEnd("cancel"),r.checkIfMultiTouchEnd("cancel"))},r.doSingleTouchEnd=function(t){var e=r.gesture,o=e.moveStatus,i=e.pinch,u=e.rotate,c=e.press,a=e.pan,s=e.direction;if(!i&&!u){if(o){var f=o.z,l=o.velocity,p=n.i(d.h)(f,l);if(r.setGestureState({swipe:p}),a&&r.triggerCombineEvent("onPan",t),p){var h=n.i(d.f)(s);return void r.triggerCombineEvent("onSwipe",h)}}if(c)return void r.triggerEvent("onPressUp");r.triggerEvent("onTap")}},r}return p()(e,t),a()(e,[{key:"componentWillUnmount",value:function(){this.cleanPressTimer()}},{key:"render",value:function(){var t=this.props.children,e=v.a.Children.only(t),n={onTouchStart:this._handleTouchStart,onTouchMove:this._handleTouchMove,onTouchCancel:this._handleTouchCancel,onTouchEnd:this._handleTouchEnd};return v.a.cloneElement(e,n)}}]),e}(h.Component);e.a=y,y.defaultProps={enableRotate:!1,enablePinch:!1}},function(t,e,n){"use strict";function r(t,e){return Math.sqrt(t*t+e*e)}function o(t,e){var n=Math.atan2(e,t);return 180/(Math.PI/n)}function i(){return Date.now()}function u(t){if(!(t.length<2)){var e=t[0],n=e.x,i=e.y,u=t[1],c=u.x,a=u.y,s=c-n,f=a-i;return{x:s,y:f,z:r(s,f),angle:o(s,f)}}}function c(t,e,n){var i=t[0],u=i.x,c=i.y,a=e[0],s=a.x,f=a.y,l=s-u,p=f-c,h=r(l,p);return{x:l,y:p,z:h,time:n,velocity:h/n,angle:o(l,p)}}function a(t,e){var n=t.angle;return e.angle-n}function s(t,e){return t+e[0].toUpperCase()+e.slice(1)}function f(t,e){return Math.abs(t)>=h.b.threshold&&Math.abs(e)>h.b.velocity}function l(t,e){return t===e?h.c:Math.abs(t)>=Math.abs(e)?t<0?h.d:h.e:e<0?h.f:h.g}function p(t){var e=void 0;switch(t){case h.c:break;case h.d:e="left";break;case h.e:e="right";break;case h.f:e="up";break;case h.g:e="down"}return e}e.b=i,e.c=u,e.g=c,e.d=a,e.a=s,e.h=f,e.e=l,e.f=p;var h=n(47)},function(t,n){t.exports=e},function(t,e,n){n(49),t.exports=n(50)}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports["rc-swipeout"]=e(require("react"),require("react-dom")):t["rc-swipeout"]=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=99)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(9),o=n(39),i=n(27),u=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(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 r=n(40),o=n(17);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(1),i=n(37),u=n(7),c=function(t,e,n){var a,s,f,l=t&c.F,p=t&c.G,h=t&c.S,v=t&c.P,d=t&c.B,g=t&c.W,y=p?o:o[e]||(o[e]={}),b=y.prototype,m=p?r:h?r[e]:(r[e]||{}).prototype;p&&(n=e);for(a in n)(s=!l&&m&&void 0!==m[a])&&a in y||(f=s?m[a]:n[a],y[a]=p&&"function"!=typeof m[a]?n[a]:d&&s?i(f,r):g&&m[a]==f?function(t){var e=function(e,n,r){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,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[a]=f,t&c.R&&b&&!b[a]&&u(b,a,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(4),o=n(14);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(25)("wks"),o=n(15),i=n(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(44),o=n(18);t.exports=Object.keys||function(t){return r(t,o)}},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){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(53),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},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 r=n(9),o=n(77),i=n(18),u=n(24)("IE_PROTO"),c=function(){},a=function(){var t,e=n(38)("iframe"),r=i.length;for(e.style.display="none",n(70).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(4).f,o=n(3),i=n(8)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(25)("keys"),o=n(15);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(1),i=n(20),u=n(29),c=n(4).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:u.f(t)})}},function(t,e,n){e.f=n(8)},function(t,e,n){t.exports={default:n(62),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(30),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(55),i=r(o),u=n(54),c=r(u),a=n(35),s=r(a);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,s.default)(e)));t.prototype=(0,c.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(35),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(57),i=r(o),u=n(56),c=r(u),a="function"==typeof c.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":typeof t};e.default="function"==typeof c.default&&"symbol"===a(i.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":void 0===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 r=n(66);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(11),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){t.exports=!n(2)&&!n(10)(function(){return 7!=Object.defineProperty(n(38)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(36);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(20),o=n(6),i=n(45),u=n(7),c=n(3),a=n(19),s=n(72),f=n(23),l=n(79),p=n(8)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,d,g,y,b){s(n,e,d);var m,S,_,x=function(t){if(!h&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",w="values"==g,P=!1,E=t.prototype,M=E[p]||E["@@iterator"]||g&&E[g],T=M||x(g),j=g?w?x("entries"):T:void 0,C="Array"==e?E.entries||M:M;if(C&&(_=l(C.call(new t)))!==Object.prototype&&_.next&&(f(_,O,!0),r||c(_,p)||u(_,p,v)),w&&M&&"values"!==M.name&&(P=!0,T=function(){return M.call(this)}),r&&!b||!h&&!P&&E[p]||u(E,p,T),a[e]=T,a[O]=v,g)if(m={values:w?T:x("values"),keys:y?T:x("keys"),entries:j},b)for(S in m)S in E||i(E,S,m[S]);else o(o.P+o.F*(h||P),e,m);return m}},function(t,e,n){var r=n(13),o=n(14),i=n(5),u=n(27),c=n(3),a=n(39),s=Object.getOwnPropertyDescriptor;e.f=n(2)?s:function(t,e){if(t=i(t),e=u(e,!0),a)try{return s(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(44),o=n(18).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(3),o=n(5),i=n(68)(!1),u=n(24)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,s=[];for(n in c)n!=u&&r(c,n)&&s.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){t.exports=n(7)},function(t,e,n){var r=n(17);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"d",function(){return o}),n.d(e,"e",function(){return i}),n.d(e,"f",function(){return u}),n.d(e,"g",function(){return c}),n.d(e,"a",function(){return a}),n.d(e,"b",function(){return s});var r=1,o=2,i=4,u=8,c=16,a={time:251},s={threshold:10,velocity:.3}},function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52);e.default=r.a},function(t,e){},function(t,e,n){"use strict";var r=n(16),o=n.n(r),i=n(58),u=n.n(i),c=n(31),a=n.n(c),s=n(32),f=n.n(s),l=n(34),p=n.n(l),h=n(33),v=n.n(h),d=n(48),g=n.n(d),y=n(98),b=n.n(y),m=n(96),S=n(95),_=n(59),x=n.n(_),O=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]]);return n},w=function(t){function e(t){a()(this,e);var n=p()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.onCloseSwipe=function(t){if(n.openedLeft||n.openedRight){(function(t){for(;t.parentNode&&t.parentNode!==document.body;){if(t.className.indexOf(n.props.prefixCls+"-actions")>-1)return t;t=t.parentNode}})(t.target)||(t.preventDefault(),n.close())}},n.onPanStart=function(t){var e=t.direction,r=t.moveStatus,o=r.x,i=2===e,u=4===e;if(i||u){var c=n.props,a=c.left,s=c.right;n.needShowRight=i&&s.length>0,n.needShowLeft=u&&a.length>0,n.left&&(n.left.style.visibility=n.needShowRight?"hidden":"visible"),n.right&&(n.right.style.visibility=n.needShowLeft?"hidden":"visible"),(n.needShowLeft||n.needShowRight)&&(n.swiping=!0,n.setState({swiping:n.swiping}),n._setStyle(o))}},n.onPanMove=function(t){var e=t.moveStatus,r=e.x;n.swiping&&n._setStyle(r)},n.onPanEnd=function(t){if(n.swiping){var e=n.btnsLeftWidth,r=n.btnsRightWidth,o=t.moveStatus,i=o.x,u=n.needShowRight&&Math.abs(i)>r/2,c=n.needShowLeft&&Math.abs(i)>r/2;u?n.open(-r,!1,!0):c?n.open(e,!0,!1):n.close(),n.swiping=!1,n.setState({swiping:n.swiping}),n.needShowLeft=!1,n.needShowRight=!1}},n._setStyle=function(t){var e=t>0?n.btnsLeftWidth:-n.btnsRightWidth,r=n._getContentEasing(t,e);n.content.style.left=r+"px",n.cover&&(n.cover.style.display=Math.abs(t)>0?"block":"none",n.cover.style.left=r+"px")},n.open=function(t,e,r){n.openedLeft||n.openedRight||!n.props.onOpen||n.props.onOpen(),n.openedLeft=e,n.openedRight=r,n._setStyle(t)},n.close=function(){(n.openedLeft||n.openedRight)&&n.props.onClose&&n.props.onClose(),n._setStyle(0),n.openedLeft=!1,n.openedRight=!1},n.state={swiping:!1},n.openedLeft=!1,n.openedRight=!1,n}return v()(e,t),f()(e,[{key:"componentDidMount",value:function(){this.btnsLeftWidth=this.left?this.left.offsetWidth:0,this.btnsRightWidth=this.right?this.right.offsetWidth:0,document.body.addEventListener("touchstart",this.onCloseSwipe,!0)}},{key:"componentWillUnmount",value:function(){document.body.removeEventListener("touchstart",this.onCloseSwipe,!0)}},{key:"onBtnClick",value:function(t,e){var n=e.onPress;n&&n(t),this.props.autoClose&&this.close()}},{key:"_getContentEasing",value:function(t,e){var n=Math.abs(t)-Math.abs(e),r=n>0,o=e>0?1:-1;return r?(t=e+Math.pow(n,.85)*o,Math.abs(t)>Math.abs(e)?e:t):t}},{key:"renderButtons",value:function(t,e){var n=this,r=this.props.prefixCls;return t&&t.length?g.a.createElement("div",{className:r+"-actions "+r+"-actions-"+e,ref:function(t){return n[e]=t}},t.map(function(t,e){return g.a.createElement("div",{key:e,className:r+"-btn "+(t.hasOwnProperty("className")?t.className:""),style:t.style,role:"button",onClick:function(e){return n.onBtnClick(e,t)}},g.a.createElement("div",{className:r+"-btn-text"},t.text||"Click"))})):null}},{key:"render",value:function(){var t=this,e=this.props,r=e.prefixCls,i=e.left,c=e.right,a=e.disabled,s=e.children,f=O(e,["prefixCls","left","right","disabled","children"]),l=n.i(S.a)(f,["autoClose","onOpen","onClose"]),p={ref:function(e){return t.content=b.a.findDOMNode(e)}},h=x()(r,u()({},r+"-swiping",this.state.swiping));return!i.length&&!c.length||a?g.a.createElement("div",o()({},p,l),s):g.a.createElement("div",o()({className:h},l),g.a.createElement("div",{className:r+"-cover",ref:function(e){return t.cover=e}}),this.renderButtons(i,"left"),this.renderButtons(c,"right"),g.a.createElement(m.a,o()({onPanStart:this.onPanStart,onPanMove:this.onPanMove,onPanEnd:this.onPanEnd,direction:"horizontal"},p),g.a.createElement("div",{className:r+"-content"},s)))}}]),e}(g.a.Component);e.a=w,w.defaultProps={prefixCls:"rc-swipeout",autoClose:!1,disabled:!1,left:[],right:[],onOpen:function(){},onClose:function(){}}},function(t,e,n){"use strict";var r=n(51);n.d(e,"a",function(){return r.a})},function(t,e,n){t.exports={default:n(60),__esModule:!0}},function(t,e,n){t.exports={default:n(61),__esModule:!0}},function(t,e,n){t.exports={default:n(63),__esModule:!0}},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){"use strict";e.__esModule=!0;var r=n(30),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r))t.push(n.apply(null,r));else if("object"===o)for(var u in r)i.call(r,u)&&r[u]&&t.push(u)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?t.exports=n:(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){n(85),t.exports=n(1).Object.assign},function(t,e,n){n(86);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(87);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(88),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){n(91),n(89),n(92),n(93),t.exports=n(1).Symbol},function(t,e,n){n(90),n(94),t.exports=n(29).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 r=n(5),o=n(83),i=n(82);t.exports=function(t){return function(e,n,u){var c,a=r(e),s=o(a.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(12),o=n(22),i=n(13);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,c=n(t),a=i.f,s=0;c.length>s;)a.call(t,u=c[s++])&&e.push(u);return e}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(36);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(21),o=n(14),i=n(23),u={};n(7)(u,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(12),o=n(5);t.exports=function(t,e){for(var n,i=o(t),u=r(i),c=u.length,a=0;c>a;)if(i[n=u[a++]]===e)return n}},function(t,e,n){var r=n(15)("meta"),o=n(11),i=n(3),u=n(4).f,c=0,a=Object.isExtensible||function(){return!0},s=!n(10)(function(){return a(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!a(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!a(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return s&&v.NEED&&a(t)&&!i(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){"use strict";var r=n(12),o=n(22),i=n(13),u=n(46),c=n(40),a=Object.assign;t.exports=!a||n(10)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r})?function(t,e){for(var n=u(t),a=arguments.length,s=1,f=o.f,l=i.f;a>s;)for(var p,h=c(arguments[s++]),v=f?r(h).concat(f(h)):r(h),d=v.length,g=0;d>g;)l.call(h,p=v[g++])&&(n[p]=h[p]);return n}:a},function(t,e,n){var r=n(4),o=n(9),i=n(12);t.exports=n(2)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,a=0;c>a;)r.f(t,n=u[a++],e[n]);return t}},function(t,e,n){var r=n(5),o=n(43).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,e,n){var r=n(3),o=n(46),i=n(24)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(11),o=n(9),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(37)(Function.call,n(42).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(26),o=n(17);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),a=r(n),s=c.length;return a<0||a>=s?t?"":void 0:(i=c.charCodeAt(a),i<55296||i>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(26),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(26),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=n(67),o=n(73),i=n(19),u=n(5);t.exports=n(41)(Array,"Array",function(t,e){this._t=u(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,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(6);r(r.S+r.F,"Object",{assign:n(76)})},function(t,e,n){var r=n(6);r(r.S,"Object",{create:n(21)})},function(t,e,n){var r=n(6);r(r.S+r.F*!n(2),"Object",{defineProperty:n(4).f})},function(t,e,n){var r=n(6);r(r.S,"Object",{setPrototypeOf:n(80).set})},function(t,e){},function(t,e,n){"use strict";var r=n(81)(!0);n(41)(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=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(2),u=n(6),c=n(45),a=n(75).KEY,s=n(10),f=n(25),l=n(23),p=n(15),h=n(8),v=n(29),d=n(28),g=n(74),y=n(69),b=n(71),m=n(9),S=n(5),_=n(27),x=n(14),O=n(21),w=n(78),P=n(42),E=n(4),M=n(12),T=P.f,j=E.f,C=w.f,k=r.Symbol,L=r.JSON,G=L&&L.stringify,R=h("_hidden"),N=h("toPrimitive"),A={}.propertyIsEnumerable,F=f("symbol-registry"),I=f("symbols"),W=f("op-symbols"),D=Object.prototype,z="function"==typeof k,B=r.QObject,q=!B||!B.prototype||!B.prototype.findChild,V=i&&s(function(){return 7!=O(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=T(D,e);r&&delete D[e],j(t,e,n),r&&t!==D&&j(D,e,r)}:j,U=function(t){var e=I[t]=O(k.prototype);return e._k=t,e},H=z&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},J=function(t,e,n){return t===D&&J(W,e,n),m(t),e=_(e,!0),m(n),o(I,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=O(n,{enumerable:x(0,!1)})):(o(t,R)||j(t,R,x(1,{})),t[R][e]=!0),V(t,e,n)):j(t,e,n)},K=function(t,e){m(t);for(var n,r=y(e=S(e)),o=0,i=r.length;i>o;)J(t,n=r[o++],e[n]);return t},Y=function(t,e){return void 0===e?O(t):K(O(t),e)},Q=function(t){var e=A.call(this,t=_(t,!0));return!(this===D&&o(I,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(I,t)||o(this,R)&&this[R][t])||e)},X=function(t,e){if(t=S(t),e=_(e,!0),t!==D||!o(I,e)||o(W,e)){var n=T(t,e);return!n||!o(I,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=C(S(t)),r=[],i=0;n.length>i;)o(I,e=n[i++])||e==R||e==a||r.push(e);return r},$=function(t){for(var e,n=t===D,r=C(n?W:S(t)),i=[],u=0;r.length>u;)!o(I,e=r[u++])||n&&!o(D,e)||i.push(I[e]);return i};z||(k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===D&&e.call(W,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),V(this,t,x(1,n))};return i&&q&&V(D,t,{configurable:!0,set:e}),U(t)},c(k.prototype,"toString",function(){return this._k}),P.f=X,E.f=J,n(43).f=w.f=Z,n(13).f=Q,n(22).f=$,i&&!n(20)&&c(D,"propertyIsEnumerable",Q,!0),v.f=function(t){return U(h(t))}),u(u.G+u.W+u.F*!z,{Symbol:k});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)h(tt[et++]);for(var nt=M(h.store),rt=0;nt.length>rt;)d(nt[rt++]);u(u.S+u.F*!z,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=k(t)},keyFor:function(t){if(H(t))return g(F,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){q=!0},useSimple:function(){q=!1}}),u(u.S+u.F*!z,"Object",{create:Y,defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),L&&u(u.S+u.F*(!z||s(function(){var t=k();return"[null]"!=G([t])||"{}"!=G({a:t})||"{}"!=G(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&b(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!H(e))return e}),r[1]=e,G.apply(L,r)}}}),k.prototype[N]||n(7)(k.prototype,N,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(28)("asyncIterator")},function(t,e,n){n(28)("observable")},function(t,e,n){n(84);for(var r=n(0),o=n(7),i=n(19),u=n(8)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<c.length;a++){var s=c[a],f=r[s],l=f&&f.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,e,n){"use strict";function r(t,e){for(var n=i()({},t),r=0;r<e.length;r++){delete n[e[r]]}return n}var o=n(16),i=n.n(o);e.a=r},function(t,e,n){"use strict";var r=n(16),o=n.n(r),i=n(31),u=n.n(i),c=n(32),a=n.n(c),s=n(34),f=n.n(s),l=n(33),p=n.n(l),h=n(48),v=n.n(h),d=n(97),g=n(47),y=function(t){function e(t){u()(this,e);var r=f()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.state={},r.triggerEvent=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];var i=r.props[t];"function"==typeof i&&i.apply(void 0,[r.getGestureState()].concat(n))},r.triggerCombineEvent=function(t,e){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];r.triggerEvent.apply(r,[t].concat(o)),r.triggerSubEvent.apply(r,[t,e].concat(o))},r.triggerSubEvent=function(t,e){for(var o=arguments.length,i=Array(o>2?o-2:0),u=2;u<o;u++)i[u-2]=arguments[u];if(e){var c=n.i(d.a)(t,e);r.triggerEvent.apply(r,[c].concat(i))}},r.triggerPinchEvent=function(t,e){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var u=r.gesture.scale;"move"===e&&"number"==typeof u&&(u>1&&r.triggerEvent("onPinchOut"),u<1&&r.triggerEvent("onPinchIn")),r.triggerCombineEvent.apply(r,[t,e].concat(o))},r.initPressTimer=function(){r.cleanPressTimer(),r.pressTimer=setTimeout(function(){r.setGestureState({press:!0}),r.triggerEvent("onPress")},g.a.time)},r.cleanPressTimer=function(){r.pressTimer&&clearTimeout(r.pressTimer)},r.setGestureState=function(t){r.gesture||(r.gesture={}),r.gesture=o()({},r.gesture,t)},r.getGestureState=function(){return r.gesture?o()({},r.gesture):r.gesture},r.cleanGestureState=function(){delete r.gesture},r.getTouches=function(t){return Array.prototype.slice.call(t.touches).map(function(t){return{x:t.pageX,y:t.pageY}})},r._handleTouchStart=function(t){t.touches.length>1&&t.preventDefault(),r.initGestureStatus(t),r.initPressTimer(),r.checkIfMultiTouchStart()},r.initGestureStatus=function(t){r.cleanGestureState();var e=r.getTouches(t),o=n.i(d.b)(),i=n.i(d.c)(e);r.setGestureState({startTime:o,startTouches:e,startMutliFingerStatus:i,time:o,touches:e,mutliFingerStatus:i})},r.checkIfMultiTouchStart=function(){var t=r.props,e=t.enablePinch,o=t.enableRotate,i=r.gesture.touches;if(i.length>1&&(e||o)){if(e){var u=n.i(d.c)(i);r.setGestureState({startMutliFingerStatus:u,pinch:!0,scale:1}),r.triggerCombineEvent("onPinch","start")}o&&(r.setGestureState({rotate:!0,rotation:0}),r.triggerCombineEvent("onRotate","start"))}},r._handleTouchMove=function(t){r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.checkIfSingleTouchMove(),r.checkIfMultiTouchMove())},r.checkIfMultiTouchMove=function(){var t=r.gesture,e=t.pinch,o=t.rotate,i=t.touches,u=t.startMutliFingerStatus,c=t.mutliFingerStatus;if(e||o){if(i.length<2)return r.setGestureState({pinch:!1,rotate:!1}),e&&r.triggerCombineEvent("onPinch","cancel"),void(o&&r.triggerCombineEvent("onRotate","cancel"));if(e){var a=c.z/u.z;r.setGestureState({scale:a}),r.triggerPinchEvent("onPinch","move")}if(o){var s=n.i(d.d)(u,c);r.setGestureState({rotation:s}),r.triggerCombineEvent("onRotate","move")}}},r.checkIfSingleTouchMove=function(){var t=r.gesture,e=t.pan,o=t.touches,i=t.moveStatus;if(o.length>1)return r.setGestureState({pan:!1}),void(e&&r.triggerCombineEvent("onPan","cancel"));if(i){var u=i.x,c=i.y,a=n.i(d.e)(u,c);r.setGestureState({direction:a});var s=n.i(d.f)(a);e?(r.triggerCombineEvent("onPan",s),r.triggerSubEvent("onPan","move")):(r.triggerCombineEvent("onPan","start"),r.setGestureState({pan:!0}))}},r.checkIfMultiTouchEnd=function(t){var e=r.gesture,n=e.pinch,o=e.rotate;n&&r.triggerCombineEvent("onPinch",t),o&&r.triggerCombineEvent("onRotate",t)},r.updateGestureStatus=function(t){var e=n.i(d.b)();if(r.setGestureState({time:e}),t.touches&&t.touches.length){var o=r.gesture,i=o.startTime,u=o.startTouches,c=o.pinch,a=o.rotate,s=r.getTouches(t),f=n.i(d.g)(u,s,e-i),l=void 0;(c||a)&&(l=n.i(d.c)(s)),r.setGestureState({touches:s,mutliFingerStatus:l,moveStatus:f})}},r._handleTouchEnd=function(t){r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.doSingleTouchEnd("end"),r.checkIfMultiTouchEnd("end"))},r._handleTouchCancel=function(t){r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.doSingleTouchEnd("cancel"),r.checkIfMultiTouchEnd("cancel"))},r.doSingleTouchEnd=function(t){var e=r.gesture,o=e.moveStatus,i=e.pinch,u=e.rotate,c=e.press,a=e.pan,s=e.direction;if(!i&&!u){if(o){var f=o.z,l=o.velocity,p=n.i(d.h)(f,l);if(r.setGestureState({swipe:p}),a&&r.triggerCombineEvent("onPan",t),p){var h=n.i(d.f)(s);return void r.triggerCombineEvent("onSwipe",h)}}if(c)return void r.triggerEvent("onPressUp");r.triggerEvent("onTap")}},r.getTouchAction=function(){var t=r.props,e=t.direction,n=t.enablePinch,o=t.enableRotate;return n||o||"all"===e?"pan-x pan-y":"vertical"===e?"pan-x":"horizontal"===e?"pan-y":"auto"},r}return p()(e,t),a()(e,[{key:"componentWillUnmount",value:function(){this.cleanPressTimer()}},{key:"render",value:function(){var t=this.props.children,e=v.a.Children.only(t),n=this.getTouchAction(),r={onTouchStart:this._handleTouchStart,onTouchMove:this._handleTouchMove,onTouchCancel:this._handleTouchCancel,onTouchEnd:this._handleTouchEnd};return v.a.cloneElement(e,o()({},r,{style:{touchAction:n}}))}}]),e}(h.Component);e.a=y,y.defaultProps={enableRotate:!1,enablePinch:!1,direction:"all"}},function(t,e,n){"use strict";function r(t,e){return Math.sqrt(t*t+e*e)}function o(t,e){var n=Math.atan2(e,t);return 180/(Math.PI/n)}function i(){return Date.now()}function u(t){if(!(t.length<2)){var e=t[0],n=e.x,i=e.y,u=t[1],c=u.x,a=u.y,s=c-n,f=a-i;return{x:s,y:f,z:r(s,f),angle:o(s,f)}}}function c(t,e,n){var i=t[0],u=i.x,c=i.y,a=e[0],s=a.x,f=a.y,l=s-u,p=f-c,h=r(l,p);return{x:l,y:p,z:h,time:n,velocity:h/n,angle:o(l,p)}}function a(t,e){var n=t.angle;return e.angle-n}function s(t,e){return t+e[0].toUpperCase()+e.slice(1)}function f(t,e){return Math.abs(t)>=h.b.threshold&&Math.abs(e)>h.b.velocity}function l(t,e){return t===e?h.c:Math.abs(t)>=Math.abs(e)?t<0?h.d:h.e:e<0?h.f:h.g}function p(t){var e=void 0;switch(t){case h.c:break;case h.d:e="left";break;case h.e:e="right";break;case h.f:e="up";break;case h.g:e="down"}return e}e.b=i,e.c=u,e.g=c,e.d=a,e.a=s,e.h=f,e.e=l,e.f=p;var h=n(47)},function(t,n){t.exports=e},function(t,e,n){n(49),t.exports=n(50)}])});

@@ -237,3 +237,3 @@ import _extends from 'babel-runtime/helpers/extends';

Gesture,
_extends({ onPanStart: this.onPanStart, onPanMove: this.onPanMove, onPanEnd: this.onPanEnd }, refProps),
_extends({ onPanStart: this.onPanStart, onPanMove: this.onPanMove, onPanEnd: this.onPanEnd, direction: 'horizontal' }, refProps),
React.createElement(

@@ -240,0 +240,0 @@ 'div',

@@ -278,3 +278,3 @@ 'use strict';

_rcGesture2['default'],
(0, _extends3['default'])({ onPanStart: this.onPanStart, onPanMove: this.onPanMove, onPanEnd: this.onPanEnd }, refProps),
(0, _extends3['default'])({ onPanStart: this.onPanStart, onPanMove: this.onPanMove, onPanEnd: this.onPanEnd, direction: 'horizontal' }, refProps),
_react2['default'].createElement(

@@ -281,0 +281,0 @@ 'div',

{
"name": "rc-swipeout",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"description": "swipe out ui component for react(web and react-native)",

@@ -58,3 +58,3 @@ "keywords": [

"omit.js": "^1.0.0",
"rc-gesture": "0.0.5",
"rc-gesture": "^0.0.6",
"react-native-swipeout": "~2.1.1"

@@ -61,0 +61,0 @@ },

Sorry, the diff of this file is too big to display

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