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

rc-swipeout

Package Overview
Dependencies
Maintainers
3
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.7 to 2.0.10

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=97)}([function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports=!n(11)(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(10),o=n(39),i=n(26),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(1),o=n(0),i=n(37),u=n(6),c=n(3),a=function(t,e,n){var s,f,l,p=t&a.F,h=t&a.G,v=t&a.S,d=t&a.P,g=t&a.B,y=t&a.W,b=h?o:o[e]||(o[e]={}),m=b.prototype,S=h?r:v?r[e]:(r[e]||{}).prototype;h&&(n=e);for(s in n)(f=!p&&S&&void 0!==S[s])&&c(b,s)||(l=f?S[s]:n[s],b[s]=h&&"function"!=typeof S[s]?n[s]:g&&f?i(l,r):y&&S[s]==l?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}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((b.virtual||(b.virtual={}))[s]=l,t&a.R&&m&&!m[s]&&u(m,s,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var r=n(4),o=n(15);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){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof 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(24)("wks"),o=n(16),i=n(1).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(7);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=!0},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){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,n){var r=n(10),o=n(76),i=n(18),u=n(23)("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(9)("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(24)("keys"),o=n(16);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o=n(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(12)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},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(7);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(1),o=n(0),i=n(12),u=n(28),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(9)},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(29),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";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,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(7),o=n(1).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(11)(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(12),o=n(5),i=n(45),u=n(6),c=n(19),a=n(72),s=n(22),f=n(78),l=n(9)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,d,g,y){a(n,e,v);var b,m,S,_=function(t){if(!p&&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)}},x=e+" Iterator",w="values"==d,O=!1,P=t.prototype,E=P[l]||P["@@iterator"]||d&&P[d],M=E||_(d),T=d?w?_("entries"):M:void 0,j="Array"==e?P.entries||E:E;if(j&&(S=f(j.call(new t)))!==Object.prototype&&S.next&&(s(S,x,!0),r||"function"==typeof S[l]||u(S,l,h)),w&&E&&"values"!==E.name&&(O=!0,M=function(){return E.call(this)}),r&&!y||!p&&!O&&P[l]||u(P,l,M),c[e]=M,c[x]=h,d)if(b={values:w?M:_("values"),keys:g?M:_("keys"),entries:T},y)for(m in b)m in P||i(P,m,b[m]);else o(o.P+o.F*(p||O),e,b);return b}},function(t,e,n){var r=n(14),o=n(15),i=n(8),u=n(26),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(8),i=n(68)(!1),u=n(23)("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";function r(t,e){for(var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(n.call(t,e))return t;t=t.parentElement}return null}var o=n(32),i=n.n(o),u=n(58),c=n.n(u),a=n(30),s=n.n(a),f=n(31),l=n.n(f),p=n(34),h=n.n(p),v=n(33),d=n.n(v),g=n(48),y=n.n(g),b=n(96),m=n.n(b),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){s()(this,e);var n=h()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.onCloseSwipe=function(t){if(n.openedLeft||n.openedRight){r(t.target,"."+n.props.prefixCls+"-actions")||(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=t.srcEvent,o=e.x;n.swiping&&(r&&r.preventDefault&&r.preventDefault(),n._setStyle(o))},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);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.onTouchMove=function(t){n.swiping&&t.preventDefault()},n.state={swiping:!1},n.openedLeft=!1,n.openedRight=!1,n}return d()(e,t),l()(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?y.a.createElement("div",{className:r+"-actions "+r+"-actions-"+e,ref:function(t){return n[e]=t}},t.map(function(t,e){return y.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)}},y.a.createElement("div",{className:r+"-btn-text"},t.text||"Click"))})):null}},{key:"render",value:function(){var t=this,e=this.props,n=e.prefixCls,r=e.left,o=e.right,u=e.disabled,a=e.children,s=w(e,["prefixCls","left","right","disabled","children"]),f=(s.autoClose,s.onOpen,s.onClose,w(s,["autoClose","onOpen","onClose"])),l=x()(n,c()({},n+"-swiping",this.state.swiping)),p={ref:function(e){return t.content=m.a.findDOMNode(e)}};return!r.length&&!o.length||u?y.a.createElement("div",i()({},p,f),a):y.a.createElement("div",i()({className:l},f),y.a.createElement("div",{className:n+"-cover",ref:function(e){return t.cover=e}}),this.renderButtons(r,"left"),this.renderButtons(o,"right"),y.a.createElement(S.a,i()({onTouchMove:this.onTouchMove,onPanStart:this.onPanStart,onPanMove:this.onPanMove,onPanEnd:this.onPanEnd,onPanCancel:this.onPanEnd,onSwipeLeft:this.doOpenRight,onSwipeRight:this.doOpenLeft,direction:"horizontal"},p),y.a.createElement("div",{className:n+"-content"},a)))}}]),e}(y.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(29),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(0).Object.assign},function(t,e,n){n(85);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(86);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(87),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){n(90),n(88),n(91),n(92),t.exports=n(0).Symbol},function(t,e,n){n(89),n(93),t.exports=n(28).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(8),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(13),o=n(21),i=n(14);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(1).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(20),o=n(15),i=n(22),u={};n(6)(u,n(9)("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(16)("meta"),o=n(7),i=n(3),u=n(4).f,c=0,a=Object.isExtensible||function(){return!0},s=!n(11)(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(13),o=n(21),i=n(14),u=n(46),c=n(40),a=Object.assign;t.exports=!a||n(11)(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(10),i=n(13);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(8),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(23)("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(7),o=n(10),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(25),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(25),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(25),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(8);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(20)})},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(1),o=n(3),i=n(2),u=n(5),c=n(45),a=n(74).KEY,s=n(11),f=n(24),l=n(22),p=n(16),h=n(9),v=n(28),d=n(27),g=n(69),y=n(71),b=n(10),m=n(7),S=n(8),_=n(26),x=n(15),w=n(20),O=n(77),P=n(42),E=n(4),M=n(13),T=P.f,j=E.f,C=O.f,k=r.Symbol,L=r.JSON,R=L&&L.stringify,G=h("_hidden"),A=h("toPrimitive"),F={}.propertyIsEnumerable,N=f("symbol-registry"),I=f("symbols"),D=f("op-symbols"),W=Object.prototype,z="function"==typeof k,U=r.QObject,B=!U||!U.prototype||!U.prototype.findChild,q=i&&s(function(){return 7!=w(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=T(W,e);r&&delete W[e],j(t,e,n),r&&t!==W&&j(W,e,r)}:j,V=function(t){var e=I[t]=w(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===W&&J(D,e,n),b(t),e=_(e,!0),b(n),o(I,e)?(n.enumerable?(o(t,G)&&t[G][e]&&(t[G][e]=!1),n=w(n,{enumerable:x(0,!1)})):(o(t,G)||j(t,G,x(1,{})),t[G][e]=!0),q(t,e,n)):j(t,e,n)},K=function(t,e){b(t);for(var n,r=g(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?w(t):K(w(t),e)},Q=function(t){var e=F.call(this,t=_(t,!0));return!(this===W&&o(I,t)&&!o(D,t))&&(!(e||!o(this,t)||!o(I,t)||o(this,G)&&this[G][t])||e)},X=function(t,e){if(t=S(t),e=_(e,!0),t!==W||!o(I,e)||o(D,e)){var n=T(t,e);return!n||!o(I,e)||o(t,G)&&t[G][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==G||e==a||r.push(e);return r},$=function(t){for(var e,n=t===W,r=C(n?D:S(t)),i=[],u=0;r.length>u;)!o(I,e=r[u++])||n&&!o(W,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===W&&e.call(D,n),o(this,G)&&o(this[G],t)&&(this[G][t]=!1),q(this,t,x(1,n))};return i&&B&&q(W,t,{configurable:!0,set:e}),V(t)},c(k.prototype,"toString",function(){return this._k}),P.f=X,E.f=J,n(43).f=O.f=Z,n(14).f=Q,n(21).f=$,i&&!n(12)&&c(W,"propertyIsEnumerable",Q,!0),v.f=function(t){return V(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(N,t+="")?N[t]:N[t]=k(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!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]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(m(e)||void 0!==t)&&!H(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!H(e))return e}),r[1]=e,R.apply(L,r)}}),k.prototype[A]||n(6)(k.prototype,A,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(27)("asyncIterator")},function(t,e,n){n(27)("observable")},function(t,e,n){n(83);for(var r=n(1),o=n(6),i=n(19),u=n(9)("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";var r=n(32),o=n.n(r),i=n(30),u=n.n(i),c=n(31),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(95),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.touches&&(r.gesture.preTouches=r.gesture.touches),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,srcEvent:r.event})},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,u=t.preTouches,c=t.availablePan,a=void 0===c||c;if(o.length>1)return r.setGestureState({pan:!1}),void(e&&r.triggerCombineEvent("onPan","cancel"));if(i&&a){var s=(i.x,i.y,n.i(d.f)(u[0],o[0]));r.setGestureState({direction:s});var f=n.i(d.g)(s);if(!r.allowGesture())return void(e||r.setGestureState({availablePan:!1}));e?(r.triggerCombineEvent("onPan",f),r.triggerSubEvent("onPan","move")):(r.triggerCombineEvent("onPan","start"),r.setGestureState({pan:!0,availablePan:!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){var n=t.x,r=t.y,o=e.x,i=e.y,u=o-n,c=i-r;return 0===u&&0===c?v.f:Math.abs(u)>=Math.abs(c)?u<0?v.g:v.h:c<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)}])});
!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=97)}([function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports=!n(11)(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(10),o=n(39),i=n(26),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(1),o=n(0),i=n(37),u=n(6),c=n(3),a=function(t,e,n){var s,f,l,p=t&a.F,h=t&a.G,v=t&a.S,d=t&a.P,g=t&a.B,y=t&a.W,b=h?o:o[e]||(o[e]={}),m=b.prototype,S=h?r:v?r[e]:(r[e]||{}).prototype;h&&(n=e);for(s in n)(f=!p&&S&&void 0!==S[s])&&c(b,s)||(l=f?S[s]:n[s],b[s]=h&&"function"!=typeof S[s]?n[s]:g&&f?i(l,r):y&&S[s]==l?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}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((b.virtual||(b.virtual={}))[s]=l,t&a.R&&m&&!m[s]&&u(m,s,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var r=n(4),o=n(15);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){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof 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(24)("wks"),o=n(16),i=n(1).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(7);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=!0},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){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,n){var r=n(10),o=n(76),i=n(18),u=n(23)("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(9)("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(24)("keys"),o=n(16);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o=n(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(12)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},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(7);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(1),o=n(0),i=n(12),u=n(28),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(9)},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(29),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";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,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(7),o=n(1).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(11)(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(12),o=n(5),i=n(45),u=n(6),c=n(19),a=n(72),s=n(22),f=n(78),l=n(9)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,d,g,y){a(n,e,v);var b,m,S,_=function(t){if(!p&&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)}},x=e+" Iterator",w="values"==d,O=!1,P=t.prototype,E=P[l]||P["@@iterator"]||d&&P[d],M=E||_(d),T=d?w?_("entries"):M:void 0,j="Array"==e?P.entries||E:E;if(j&&(S=f(j.call(new t)))!==Object.prototype&&S.next&&(s(S,x,!0),r||"function"==typeof S[l]||u(S,l,h)),w&&E&&"values"!==E.name&&(O=!0,M=function(){return E.call(this)}),r&&!y||!p&&!O&&P[l]||u(P,l,M),c[e]=M,c[x]=h,d)if(b={values:w?M:_("values"),keys:g?M:_("keys"),entries:T},y)for(m in b)m in P||i(P,m,b[m]);else o(o.P+o.F*(p||O),e,b);return b}},function(t,e,n){var r=n(14),o=n(15),i=n(8),u=n(26),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(8),i=n(68)(!1),u=n(23)("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";function r(t,e){for(var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(n.call(t,e))return t;t=t.parentElement}return null}var o=n(32),i=n.n(o),u=n(58),c=n.n(u),a=n(30),s=n.n(a),f=n(31),l=n.n(f),p=n(34),h=n.n(p),v=n(33),d=n.n(v),g=n(48),y=n.n(g),b=n(96),m=n.n(b),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){s()(this,e);var n=h()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.onCloseSwipe=function(t){if(n.openedLeft||n.openedRight){r(t.target,"."+n.props.prefixCls+"-actions")||(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=t.srcEvent,o=e.x;n.swiping&&(r&&r.preventDefault&&r.preventDefault(),n._setStyle(o))},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);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.onTouchMove=function(t){n.swiping&&t.preventDefault()},n.state={swiping:!1},n.openedLeft=!1,n.openedRight=!1,n}return d()(e,t),l()(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?y.a.createElement("div",{className:r+"-actions "+r+"-actions-"+e,ref:function(t){return n[e]=t}},t.map(function(t,e){return y.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)}},y.a.createElement("div",{className:r+"-btn-text"},t.text||"Click"))})):null}},{key:"render",value:function(){var t=this,e=this.props,n=e.prefixCls,r=e.left,o=e.right,u=e.disabled,a=e.children,s=w(e,["prefixCls","left","right","disabled","children"]),f=(s.autoClose,s.onOpen,s.onClose,w(s,["autoClose","onOpen","onClose"])),l=x()(n,c()({},n+"-swiping",this.state.swiping)),p={ref:function(e){return t.content=m.a.findDOMNode(e)}};return!r.length&&!o.length||u?y.a.createElement("div",i()({},p,f),a):y.a.createElement("div",i()({className:l},f),y.a.createElement("div",{className:n+"-cover",ref:function(e){return t.cover=e}}),this.renderButtons(r,"left"),this.renderButtons(o,"right"),y.a.createElement(S.a,i()({onTouchMove:this.onTouchMove,onPanStart:this.onPanStart,onPanMove:this.onPanMove,onPanEnd:this.onPanEnd,onPanCancel:this.onPanEnd,onSwipeLeft:this.doOpenRight,onSwipeRight:this.doOpenLeft,direction:"horizontal"},p),y.a.createElement("div",{className:n+"-content"},a)))}}]),e}(y.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);e.a=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(29),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)&&r.length){var u=n.apply(null,r);u&&t.push(u)}else if("object"===o)for(var c in r)i.call(r,c)&&r[c]&&t.push(c)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,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(0).Object.assign},function(t,e,n){n(85);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(86);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(87),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){n(90),n(88),n(91),n(92),t.exports=n(0).Symbol},function(t,e,n){n(89),n(93),t.exports=n(28).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(8),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(13),o=n(21),i=n(14);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(1).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(20),o=n(15),i=n(22),u={};n(6)(u,n(9)("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(16)("meta"),o=n(7),i=n(3),u=n(4).f,c=0,a=Object.isExtensible||function(){return!0},s=!n(11)(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(13),o=n(21),i=n(14),u=n(46),c=n(40),a=Object.assign;t.exports=!a||n(11)(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(10),i=n(13);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(8),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(23)("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(7),o=n(10),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(25),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(25),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(25),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(8);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(20)})},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(1),o=n(3),i=n(2),u=n(5),c=n(45),a=n(74).KEY,s=n(11),f=n(24),l=n(22),p=n(16),h=n(9),v=n(28),d=n(27),g=n(69),y=n(71),b=n(10),m=n(7),S=n(8),_=n(26),x=n(15),w=n(20),O=n(77),P=n(42),E=n(4),M=n(13),T=P.f,j=E.f,C=O.f,k=r.Symbol,L=r.JSON,R=L&&L.stringify,G=h("_hidden"),A=h("toPrimitive"),F={}.propertyIsEnumerable,N=f("symbol-registry"),I=f("symbols"),D=f("op-symbols"),W=Object.prototype,z="function"==typeof k,U=r.QObject,B=!U||!U.prototype||!U.prototype.findChild,q=i&&s(function(){return 7!=w(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=T(W,e);r&&delete W[e],j(t,e,n),r&&t!==W&&j(W,e,r)}:j,V=function(t){var e=I[t]=w(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===W&&J(D,e,n),b(t),e=_(e,!0),b(n),o(I,e)?(n.enumerable?(o(t,G)&&t[G][e]&&(t[G][e]=!1),n=w(n,{enumerable:x(0,!1)})):(o(t,G)||j(t,G,x(1,{})),t[G][e]=!0),q(t,e,n)):j(t,e,n)},K=function(t,e){b(t);for(var n,r=g(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?w(t):K(w(t),e)},Q=function(t){var e=F.call(this,t=_(t,!0));return!(this===W&&o(I,t)&&!o(D,t))&&(!(e||!o(this,t)||!o(I,t)||o(this,G)&&this[G][t])||e)},X=function(t,e){if(t=S(t),e=_(e,!0),t!==W||!o(I,e)||o(D,e)){var n=T(t,e);return!n||!o(I,e)||o(t,G)&&t[G][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==G||e==a||r.push(e);return r},$=function(t){for(var e,n=t===W,r=C(n?D:S(t)),i=[],u=0;r.length>u;)!o(I,e=r[u++])||n&&!o(W,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===W&&e.call(D,n),o(this,G)&&o(this[G],t)&&(this[G][t]=!1),q(this,t,x(1,n))};return i&&B&&q(W,t,{configurable:!0,set:e}),V(t)},c(k.prototype,"toString",function(){return this._k}),P.f=X,E.f=J,n(43).f=O.f=Z,n(14).f=Q,n(21).f=$,i&&!n(12)&&c(W,"propertyIsEnumerable",Q,!0),v.f=function(t){return V(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(N,t+="")?N[t]:N[t]=k(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!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]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(m(e)||void 0!==t)&&!H(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!H(e))return e}),r[1]=e,R.apply(L,r)}}),k.prototype[A]||n(6)(k.prototype,A,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(27)("asyncIterator")},function(t,e,n){n(27)("observable")},function(t,e,n){n(83);for(var r=n(1),o=n(6),i=n(19),u=n(9)("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";var r=n(32),o=n.n(r),i=n(30),u=n.n(i),c=n(31),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(95),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.touches&&(r.gesture.preTouches=r.gesture.touches),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,srcEvent:r.event})},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,u=t.preTouches,c=t.availablePan,a=void 0===c||c;if(o.length>1)return r.setGestureState({pan:!1}),void(e&&r.triggerCombineEvent("onPan","cancel"));if(i&&a){var s=n.i(d.f)(u[0],o[0]);r.setGestureState({direction:s});var f=n.i(d.g)(s);if(!r.allowGesture())return void(e||r.setGestureState({availablePan:!1}));e?(r.triggerCombineEvent("onPan",f),r.triggerSubEvent("onPan","move")):(r.triggerCombineEvent("onPan","start"),r.setGestureState({pan:!0,availablePan:!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){var n=t.x,r=t.y,o=e.x,i=e.y,u=o-n,c=i-r;return 0===u&&0===c?v.f:Math.abs(u)>=Math.abs(c)?u<0?v.g:v.h:c<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)}])});

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

export { default } from './Swipeout';
import Swipeout from './Swipeout';
export default Swipeout;

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

export { default } from './Swipeout';
import Swipeout from './Swipeout';
export default Swipeout;

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

export { default } from './Swipeout';
import Swipeout from './Swipeout';
export default Swipeout;

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

Object.defineProperty(exports, 'default', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_Swipeout)['default'];
}
});
var _Swipeout2 = _interopRequireDefault(_Swipeout);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
exports['default'] = _Swipeout2['default'];
module.exports = exports['default'];
{
"name": "rc-swipeout",
"version": "2.0.7",
"version": "2.0.10",
"description": "swipe out ui component for react(web and react-native)",

@@ -52,3 +52,6 @@ "keywords": [

"coverage": "rc-test run coverage",
"rn-start": "node node_modules/react-native/local-cli/cli.js start"
"rn-start": "node node_modules/react-native/local-cli/cli.js start",
"prepublish": "rc-tools run guard",
"prepare": "rc-tools run guard",
"prepublishOnly": "rc-tools run guard"
},

@@ -58,3 +61,3 @@ "dependencies": {

"classnames": "2.x",
"rc-gesture": "~0.0.20",
"rc-gesture": "~0.0.22",
"react-native-swipeout": "^2.2.2"

@@ -64,5 +67,5 @@ },

"@types/mocha": "~2.2.32",
"@types/react": "~16.0.2",
"@types/react-dom": "15.5.1",
"@types/react-native": "^0.47.2",
"@types/react": "latest",
"@types/react-dom": "latest",
"@types/react-native": "latest",
"expect.js": "0.3.x",

@@ -72,5 +75,5 @@ "pre-commit": "1.x",

"rc-tools": "6.x",
"react": "^15.0.0",
"react-dom": "^15.0.0",
"react-native": "~0.42.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-native": "~0.55.4",
"react-native-index-page": "~0.2.0",

@@ -77,0 +80,0 @@ "react-navigation": "1.0.0-beta.12"

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