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.2 to 2.0.0

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=98)}([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.1"};"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(0),o=n(1),i=n(37),u=n(6),c=function(t,e,n){var a,s,f,l=t&c.F,p=t&c.G,h=t&c.S,d=t&c.P,v=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]:v&&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):d&&"function"==typeof f?i(Function.call,f):f,d&&((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(40),o=n(17);t.exports=function(t){return r(o(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(76),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(5),i=n(45),u=n(6),c=n(3),a=n(19),s=n(72),f=n(23),l=n(78),p=n(8)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,g,y,b){s(n,e,v);var m,S,_,x=function(t){if(!h&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",O="values"==g,E=!1,P=t.prototype,M=P[p]||P["@@iterator"]||g&&P[g],T=M||x(g),j=g?O?x("entries"):T:void 0,C="Array"==e?P.entries||M:M;if(C&&(_=l(C.call(new t)))!==Object.prototype&&_.next&&(f(_,w,!0),r||c(_,p)||u(_,p,d)),O&&M&&"values"!==M.name&&(E=!0,T=function(){return M.call(this)}),r&&!b||!h&&!E&&P[p]||u(P,p,T),a[e]=T,a[w]=d,g)if(m={values:O?T:x("values"),keys:y?T:x("keys"),entries:j},b)for(S in m)S in P||i(P,S,m[S]);else o(o.P+o.F*(h||E),e,m);return m}},function(t,e,n){var r=n(13),o=n(14),i=n(7),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(7),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(6)},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,"f",function(){return r}),n.d(e,"g",function(){return o}),n.d(e,"h",function(){return i}),n.d(e,"i",function(){return u}),n.d(e,"j",function(){return c}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return s}),n.d(e,"a",function(){return f}),n.d(e,"d",function(){return l}),n.d(e,"e",function(){return p});var r=1,o=2,i=4,u=8,c=16,a=o|i,s=u|c,f=a|s,l={time:251},p={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),d=n.n(h),v=n(48),g=n.n(v),y=n(97),b=n.n(y),m=n(95),S=n(94),_=n(59),x=n.n(_),w=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},O=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=t.moveStatus,r=e.x,o=n.needShowRight&&Math.abs(r)>n.btnsRightWidth/2,i=n.needShowLeft&&Math.abs(r)>n.btnsLeftWidth/2;o?n.doOpenRight():i?n.doOpenLeft():n.close(),n.swiping=!1,n.setState({swiping:n.swiping}),n.needShowLeft=!1,n.needShowRight=!1}},n.doOpenLeft=function(){n.open(n.btnsLeftWidth,!0,!1)},n.doOpenRight=function(){n.open(-n.btnsRightWidth,!0,!1)},n._setStyle=function(t){var e=t>0?n.btnsLeftWidth:-n.btnsRightWidth,r=n._getContentEasing(t,e),o="translate3d("+r+"px, 0px, 0px)";window.requestAnimationFrame(function(){n.content.style.transform=o,n.cover&&(n.cover.style.display=Math.abs(t)>0?"block":"none",n.cover.style.transform=o)})},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 d()(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=w(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,onSwipeLeft:this.doOpenRight,onSwipeRight:this.doOpenLeft,direction:"horizontal"},p),g.a.createElement("div",{className:r+"-content"},s)))}}]),e}(g.a.Component);e.a=O,O.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(84),t.exports=n(1).Object.assign},function(t,e,n){n(85);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(86);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(87),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){n(90),n(88),n(91),n(92),t.exports=n(1).Symbol},function(t,e,n){n(89),n(93),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(7),o=n(82),i=n(81);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(6)(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(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&&d.NEED&&a(t)&&!i(t,r)&&f(t),t},d=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++]),d=f?r(h).concat(f(h)):r(h),v=d.length,g=0;v>g;)l.call(h,p=d[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(7),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(7);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(5);r(r.S+r.F,"Object",{assign:n(75)})},function(t,e,n){var r=n(5);r(r.S,"Object",{create:n(21)})},function(t,e,n){var r=n(5);r(r.S+r.F*!n(2),"Object",{defineProperty:n(4).f})},function(t,e,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(79).set})},function(t,e){},function(t,e,n){"use strict";var r=n(80)(!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(5),c=n(45),a=n(74).KEY,s=n(10),f=n(25),l=n(23),p=n(15),h=n(8),d=n(29),v=n(28),g=n(69),y=n(71),b=n(9),m=n(7),S=n(27),_=n(14),x=n(21),w=n(77),O=n(42),E=n(4),P=n(12),M=O.f,T=E.f,j=w.f,C=r.Symbol,k=r.JSON,L=k&&k.stringify,R=h("_hidden"),G=h("toPrimitive"),A={}.propertyIsEnumerable,N=f("symbol-registry"),F=f("symbols"),I=f("op-symbols"),W=Object.prototype,D="function"==typeof C,z=r.QObject,q=!z||!z.prototype||!z.prototype.findChild,B=i&&s(function(){return 7!=x(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=M(W,e);r&&delete W[e],T(t,e,n),r&&t!==W&&T(W,e,r)}:T,V=function(t){var e=F[t]=x(C.prototype);return e._k=t,e},U=D&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},H=function(t,e,n){return t===W&&H(I,e,n),b(t),e=S(e,!0),b(n),o(F,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=x(n,{enumerable:_(0,!1)})):(o(t,R)||T(t,R,_(1,{})),t[R][e]=!0),B(t,e,n)):T(t,e,n)},J=function(t,e){b(t);for(var n,r=g(e=m(e)),o=0,i=r.length;i>o;)H(t,n=r[o++],e[n]);return t},K=function(t,e){return void 0===e?x(t):J(x(t),e)},Y=function(t){var e=A.call(this,t=S(t,!0));return!(this===W&&o(F,t)&&!o(I,t))&&(!(e||!o(this,t)||!o(F,t)||o(this,R)&&this[R][t])||e)},Q=function(t,e){if(t=m(t),e=S(e,!0),t!==W||!o(F,e)||o(I,e)){var n=M(t,e);return!n||!o(F,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=j(m(t)),r=[],i=0;n.length>i;)o(F,e=n[i++])||e==R||e==a||r.push(e);return r},Z=function(t){for(var e,n=t===W,r=j(n?I:m(t)),i=[],u=0;r.length>u;)!o(F,e=r[u++])||n&&!o(W,e)||i.push(F[e]);return i};D||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(I,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),B(this,t,_(1,n))};return i&&q&&B(W,t,{configurable:!0,set:e}),V(t)},c(C.prototype,"toString",function(){return this._k}),O.f=Q,E.f=H,n(43).f=w.f=X,n(13).f=Y,n(22).f=Z,i&&!n(20)&&c(W,"propertyIsEnumerable",Y,!0),d.f=function(t){return V(h(t))}),u(u.G+u.W+u.F*!D,{Symbol:C});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)h($[tt++]);for(var et=P(h.store),nt=0;et.length>nt;)v(et[nt++]);u(u.S+u.F*!D,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=C(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),u(u.S+u.F*!D,"Object",{create:K,defineProperty:H,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),k&&u(u.S+u.F*(!D||s(function(){var t=C();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!U(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&&y(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!U(e))return e}),r[1]=e,L.apply(k,r)}}}),C.prototype[G]||n(6)(C.prototype,G,C.prototype.valueOf),l(C,"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(83);for(var r=n(0),o=n(6),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),d=n.n(h),v=n(96),g=n(47),y={all:g.a,vertical:g.b,horizontal:g.c},b=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(v.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.d.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.screenX,y:t.screenY}})},r._handleTouchStart=function(t){r.event=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(v.b)(),i=n.i(v.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(v.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.event=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(v.d)(u,c);r.setGestureState({rotation:s}),r.triggerCombineEvent("onRotate","move")}}},r.allowGesture=function(){return n.i(v.e)(r.gesture.direction,r.directionSetting)},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(v.f)(u,c);r.setGestureState({direction:a});var s=n.i(v.g)(a);if(!r.allowGesture())return;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(v.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(v.h)(u,s,e-i),l=void 0;(c||a)&&(l=n.i(v.c)(s)),r.setGestureState({touches:s,mutliFingerStatus:l,moveStatus:f})}},r._handleTouchEnd=function(t){r.event=t,r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.doSingleTouchEnd("end"),r.checkIfMultiTouchEnd("end"))},r._handleTouchCancel=function(t){r.event=t,r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.doSingleTouchEnd("cancel"),r.checkIfMultiTouchEnd("cancel"))},r.triggerAllowEvent=function(t,e){r.allowGesture()?r.triggerCombineEvent(t,e):r.triggerSubEvent(t,e)},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(v.i)(f,l);if(r.setGestureState({swipe:p}),a&&r.triggerAllowEvent("onPan",t),p){var h=n.i(v.g)(s);return void r.triggerAllowEvent("onSwipe",h)}}if(c)return void r.triggerEvent("onPressUp");r.triggerEvent("onTap")}},r.getTouchAction=function(){var t=r.props,e=t.enablePinch,n=t.enableRotate,o=r.directionSetting;return e||n||o===g.a?"pan-x pan-y":o===g.b?"pan-x":o===g.c?"pan-y":"auto"},r.directionSetting=y[t.direction],r}return p()(e,t),a()(e,[{key:"componentWillUnmount",value:function(){this.cleanPressTimer()}},{key:"render",value:function(){var t=this.props.children,e=d.a.Children.only(t),n=this.getTouchAction(),r={onTouchStart:this._handleTouchStart,onTouchMove:this._handleTouchMove,onTouchCancel:this._handleTouchCancel,onTouchEnd:this._handleTouchEnd};return d.a.cloneElement(e,o()({},r,{style:{touchAction:n}}))}}]),e}(h.Component);e.a=b,b.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)>=d.e.threshold&&Math.abs(e)>d.e.velocity}function l(t,e){return!!(e&t)}function p(t,e){return t===e?d.f:Math.abs(t)>=Math.abs(e)?t<0?d.g:d.h:e<0?d.i:d.j}function h(t){var e=void 0;switch(t){case d.f:break;case d.g:e="left";break;case d.h:e="right";break;case d.i:e="up";break;case d.j:e="down"}return e}e.b=i,e.c=u,e.h=c,e.d=a,e.a=s,e.i=f,e.e=l,e.f=p,e.g=h;var d=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=98)}([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.1"};"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(0),o=n(1),i=n(37),u=n(6),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(40),o=n(17);t.exports=function(t){return r(o(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(76),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(5),i=n(45),u=n(6),c=n(3),a=n(19),s=n(72),f=n(23),l=n(78),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 P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",O="values"==g,E=!1,P=t.prototype,M=P[p]||P["@@iterator"]||g&&P[g],T=M||x(g),j=g?O?x("entries"):T:void 0,C="Array"==e?P.entries||M:M;if(C&&(_=l(C.call(new t)))!==Object.prototype&&_.next&&(f(_,w,!0),r||c(_,p)||u(_,p,v)),O&&M&&"values"!==M.name&&(E=!0,T=function(){return M.call(this)}),r&&!b||!h&&!E&&P[p]||u(P,p,T),a[e]=T,a[w]=v,g)if(m={values:O?T:x("values"),keys:y?T:x("keys"),entries:j},b)for(S in m)S in P||i(P,S,m[S]);else o(o.P+o.F*(h||E),e,m);return m}},function(t,e,n){var r=n(13),o=n(14),i=n(7),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(7),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(6)},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,"f",function(){return r}),n.d(e,"g",function(){return o}),n.d(e,"h",function(){return i}),n.d(e,"i",function(){return u}),n.d(e,"j",function(){return c}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return s}),n.d(e,"a",function(){return f}),n.d(e,"d",function(){return l}),n.d(e,"e",function(){return p});var r=1,o=2,i=4,u=8,c=16,a=o|i,s=u|c,f=a|s,l={time:251},p={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(97),b=n.n(y),m=n(95),S=n(94),_=n(59),x=n.n(_),w=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},O=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=t.moveStatus,r=e.x,o=n.needShowRight&&Math.abs(r)>n.btnsRightWidth/2,i=n.needShowLeft&&Math.abs(r)>n.btnsLeftWidth/2;o?n.doOpenRight():i?n.doOpenLeft():n.close(),n.swiping=!1,n.setState({swiping:n.swiping}),n.needShowLeft=!1,n.needShowRight=!1}},n.doOpenLeft=function(){n.open(n.btnsLeftWidth,!0,!1)},n.doOpenRight=function(){n.open(-n.btnsRightWidth,!0,!1)},n._setStyle=function(t){var e=t>0?n.btnsLeftWidth:-n.btnsRightWidth,r=n._getContentEasing(t,e),o="translate3d("+r+"px, 0px, 0px)";n.content.style.transform=o,n.cover&&(n.cover.style.display=Math.abs(t)>0?"block":"none",n.cover.style.transform=o)},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=w(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,onSwipeLeft:this.doOpenRight,onSwipeRight:this.doOpenLeft,direction:"horizontal"},p),g.a.createElement("div",{className:r+"-content"},s)))}}]),e}(g.a.Component);e.a=O,O.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(84),t.exports=n(1).Object.assign},function(t,e,n){n(85);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(86);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(87),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){n(90),n(88),n(91),n(92),t.exports=n(1).Symbol},function(t,e,n){n(89),n(93),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(7),o=n(82),i=n(81);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(6)(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(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(7),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(7);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(5);r(r.S+r.F,"Object",{assign:n(75)})},function(t,e,n){var r=n(5);r(r.S,"Object",{create:n(21)})},function(t,e,n){var r=n(5);r(r.S+r.F*!n(2),"Object",{defineProperty:n(4).f})},function(t,e,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(79).set})},function(t,e){},function(t,e,n){"use strict";var r=n(80)(!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(5),c=n(45),a=n(74).KEY,s=n(10),f=n(25),l=n(23),p=n(15),h=n(8),v=n(29),d=n(28),g=n(69),y=n(71),b=n(9),m=n(7),S=n(27),_=n(14),x=n(21),w=n(77),O=n(42),E=n(4),P=n(12),M=O.f,T=E.f,j=w.f,C=r.Symbol,k=r.JSON,L=k&&k.stringify,R=h("_hidden"),G=h("toPrimitive"),A={}.propertyIsEnumerable,N=f("symbol-registry"),F=f("symbols"),I=f("op-symbols"),W=Object.prototype,D="function"==typeof C,U=r.QObject,z=!U||!U.prototype||!U.prototype.findChild,B=i&&s(function(){return 7!=x(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=M(W,e);r&&delete W[e],T(t,e,n),r&&t!==W&&T(W,e,r)}:T,q=function(t){var e=F[t]=x(C.prototype);return e._k=t,e},V=D&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},H=function(t,e,n){return t===W&&H(I,e,n),b(t),e=S(e,!0),b(n),o(F,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=x(n,{enumerable:_(0,!1)})):(o(t,R)||T(t,R,_(1,{})),t[R][e]=!0),B(t,e,n)):T(t,e,n)},J=function(t,e){b(t);for(var n,r=g(e=m(e)),o=0,i=r.length;i>o;)H(t,n=r[o++],e[n]);return t},K=function(t,e){return void 0===e?x(t):J(x(t),e)},Y=function(t){var e=A.call(this,t=S(t,!0));return!(this===W&&o(F,t)&&!o(I,t))&&(!(e||!o(this,t)||!o(F,t)||o(this,R)&&this[R][t])||e)},Q=function(t,e){if(t=m(t),e=S(e,!0),t!==W||!o(F,e)||o(I,e)){var n=M(t,e);return!n||!o(F,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=j(m(t)),r=[],i=0;n.length>i;)o(F,e=n[i++])||e==R||e==a||r.push(e);return r},Z=function(t){for(var e,n=t===W,r=j(n?I:m(t)),i=[],u=0;r.length>u;)!o(F,e=r[u++])||n&&!o(W,e)||i.push(F[e]);return i};D||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(I,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),B(this,t,_(1,n))};return i&&z&&B(W,t,{configurable:!0,set:e}),q(t)},c(C.prototype,"toString",function(){return this._k}),O.f=Q,E.f=H,n(43).f=w.f=X,n(13).f=Y,n(22).f=Z,i&&!n(20)&&c(W,"propertyIsEnumerable",Y,!0),v.f=function(t){return q(h(t))}),u(u.G+u.W+u.F*!D,{Symbol:C});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)h($[tt++]);for(var et=P(h.store),nt=0;et.length>nt;)d(et[nt++]);u(u.S+u.F*!D,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=C(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!D,"Object",{create:K,defineProperty:H,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),k&&u(u.S+u.F*(!D||s(function(){var t=C();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!V(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&&y(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!V(e))return e}),r[1]=e,L.apply(k,r)}}}),C.prototype[G]||n(6)(C.prototype,G,C.prototype.valueOf),l(C,"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(83);for(var r=n(0),o=n(6),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(96),g=n(47),y={all:g.a,vertical:g.b,horizontal:g.c},b=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.d.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.screenX,y:t.screenY}})},r.triggerUserCb=function(t,e){var o=n.i(d.a)("onTouch",t);o in r.props&&r.props[o](e)},r._handleTouchStart=function(t){r.triggerUserCb("start",t),r.event=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.triggerUserCb("move",t),r.event=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.allowGesture=function(){return n.i(d.e)(r.gesture.direction,r.directionSetting)},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.f)(u,c);r.setGestureState({direction:a});var s=n.i(d.g)(a);if(!r.allowGesture())return;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.h)(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.triggerUserCb("end",t),r.event=t,r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.doSingleTouchEnd("end"),r.checkIfMultiTouchEnd("end"))},r._handleTouchCancel=function(t){r.triggerUserCb("cancel",t),r.event=t,r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.doSingleTouchEnd("cancel"),r.checkIfMultiTouchEnd("cancel"))},r.triggerAllowEvent=function(t,e){r.allowGesture()?r.triggerCombineEvent(t,e):r.triggerSubEvent(t,e)},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.i)(f,l);if(r.setGestureState({swipe:p}),a&&r.triggerAllowEvent("onPan",t),p){var h=n.i(d.g)(s);return void r.triggerAllowEvent("onSwipe",h)}}if(c)return void r.triggerEvent("onPressUp");r.triggerEvent("onTap")}},r.getTouchAction=function(){var t=r.props,e=t.enablePinch,n=t.enableRotate,o=r.directionSetting;return e||n||o===g.a?"pan-x pan-y":o===g.b?"pan-x":o===g.c?"pan-y":"auto"},r.directionSetting=y[t.direction],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:o()({touchAction:n},e.props.style||{})}))}}]),e}(h.Component);e.a=b,b.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)>=v.e.threshold&&Math.abs(e)>v.e.velocity}function l(t,e){return!!(e&t)}function p(t,e){return t===e?v.f:Math.abs(t)>=Math.abs(e)?t<0?v.g:v.h:e<0?v.i:v.j}function h(t){var e=void 0;switch(t){case v.f:break;case v.g:e="left";break;case v.h:e="right";break;case v.i:e="up";break;case v.j:e="down"}return e}e.b=i,e.c=u,e.h=c,e.d=a,e.a=s,e.i=f,e.e=l,e.f=p,e.g=h;var v=n(47)},function(t,n){t.exports=e},function(t,e,n){n(49),t.exports=n(50)}])});

@@ -119,9 +119,7 @@ import _extends from 'babel-runtime/helpers/extends';

var transform = 'translate3d(' + contentLeft + 'px, 0px, 0px)';
window.requestAnimationFrame(function () {
_this.content.style.transform = transform;
if (_this.cover) {
_this.cover.style.display = Math.abs(value) > 0 ? 'block' : 'none';
_this.cover.style.transform = transform;
}
});
_this.content.style.transform = transform;
if (_this.cover) {
_this.cover.style.display = Math.abs(value) > 0 ? 'block' : 'none';
_this.cover.style.transform = transform;
}
};

@@ -128,0 +126,0 @@ _this.open = function (value, openedLeft, openedRight) {

# History
# 2.0.0
- replace `hammer.js` width [rc-gesture](https://github.com/react-component/gesture)
# 1.4.5

@@ -4,0 +8,0 @@

@@ -160,9 +160,7 @@ 'use strict';

var transform = 'translate3d(' + contentLeft + 'px, 0px, 0px)';
window.requestAnimationFrame(function () {
_this.content.style.transform = transform;
if (_this.cover) {
_this.cover.style.display = Math.abs(value) > 0 ? 'block' : 'none';
_this.cover.style.transform = transform;
}
});
_this.content.style.transform = transform;
if (_this.cover) {
_this.cover.style.display = Math.abs(value) > 0 ? 'block' : 'none';
_this.cover.style.transform = transform;
}
};

@@ -169,0 +167,0 @@ _this.open = function (value, openedLeft, openedRight) {

{
"name": "rc-swipeout",
"version": "2.0.0-alpha.2",
"version": "2.0.0",
"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.12",
"rc-gesture": "^0.0.15",
"react-native-swipeout": "~2.1.1"

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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