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

rc-drawer

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-drawer - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

2

dist/rc-drawer.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-drawer"]=e(require("react"),require("react-dom")):t["rc-drawer"]=e(t.React,t.ReactDOM)}("undefined"!=typeof self?self: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.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=45)}([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.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(10),o=n(33),i=n(17),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(12)(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(2),o=n(13);t.exports=n(3)?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(56),o=n(16);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(22)("wks"),o=n(14),i=n(0).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(0),o=n(1),i=n(32),a=n(5),u=n(4),c=function(t,e,n){var s,f,l,p=t&c.F,d=t&c.G,h=t&c.S,y=t&c.P,v=t&c.B,m=t&c.W,b=d?o:o[e]||(o[e]={}),g=b.prototype,x=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(s in n)(f=!p&&x&&void 0!==x[s])&&u(b,s)||(l=f?x[s]:n[s],b[s]=d&&"function"!=typeof x[s]?n[s]:v&&f?i(l,r):m&&x[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):y&&"function"==typeof l?i(Function.call,l):l,y&&((b.virtual||(b.virtual={}))[s]=l,t&c.R&&g&&!g[s]&&a(g,s,l)))};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(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},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){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(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,n){var r=n(6);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){t.exports={}},function(t,e,n){var r=n(10),o=n(55),i=n(23),a=n(21)("IE_PROTO"),u=function(){},c=function(){var t,e=n(34)("iframe"),r=i.length;for(e.style.display="none",n(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(36),o=n(23);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(22)("keys"),o=n(14);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=n(0),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(11)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).f,o=n(4),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){e.f=n(8)},function(t,e,n){var r=n(0),o=n(1),i=n(11),a=n(25),u=n(2).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},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(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(49),i=r(o),a=n(67),u=r(a),c="function"==typeof u.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,n){"use strict";var r=n(11),o=n(9),i=n(35),a=n(5),u=n(18),c=n(54),s=n(24),f=n(61),l=n(8)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,y,v,m){c(n,e,h);var b,g,x,O=function(t){if(!p&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",C="values"==y,w=!1,S=t.prototype,E=S[l]||S["@@iterator"]||y&&S[y],T=E||O(y),P=y?C?O("entries"):T:void 0,M="Array"==e?S.entries||E:E;if(M&&(x=f(M.call(new t)))!==Object.prototype&&x.next&&(s(x,_,!0),r||"function"==typeof x[l]||a(x,l,d)),C&&E&&"values"!==E.name&&(w=!0,T=function(){return E.call(this)}),r&&!m||!p&&!w&&S[l]||a(S,l,T),u[e]=T,u[_]=d,y)if(b={values:C?T:O("values"),keys:v?T:O("keys"),entries:P},m)for(g in b)g in S||i(S,g,b[g]);else o(o.P+o.F*(p||w),e,b);return b}},function(t,e,n){var r=n(53);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){t.exports=!n(3)&&!n(12)(function(){return 7!=Object.defineProperty(n(34)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(6),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(5)},function(t,e,n){var r=n(4),o=n(7),i=n(57)(!1),a=n(21)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(36),o=n(23).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(27),o=n(13),i=n(7),a=n(17),u=n(4),c=n(33),s=Object.getOwnPropertyDescriptor;e.f=n(3)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,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(77),i=r(o),a=n(81),u=r(a),c=n(30),s=r(c);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,u.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(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){t.exports=n(84)()},function(t,e,n){n(46),t.exports=n(47)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(48);e.default=r.a},function(t,e,n){"use strict";var r=n(28),o=n.n(r),i=n(29),a=n.n(i),u=n(41),c=n.n(u),s=n(42),f=n.n(s),l=n(43),p=n.n(l),d=n(44),h=n.n(d),y=n(86),v=n.n(y),m=n(87),b=n(92),g="createPortal"in p.a,x="undefined"==typeof window,O=function(t){function e(n){o()(this,e);var r=a()(this,t.call(this,n));return _.call(r),r.levelDom=[],r.contextDom=null,r.maskDom=null,r.handleDom=null,r.mousePos=null,r.firstEnter=!1,(n.onIconClick||n.parent||n.iconChild||n.width)&&console.warn("rc-drawer-menu API has been changed, please look at the releases, https://github.com/react-component/drawer-menu/releases"),r.state={open:void 0!==n.open?n.open:!!n.defaultOpen},r}return c()(e,t),e.prototype.componentDidMount=function(){this.props.handleChild&&(this.getDefault(this.props),this.forceUpdate())},e.prototype.componentWillReceiveProps=function(t){var e=t.open,n=t.placement;void 0!==e&&e!==this.props.open&&(this.isOpenChange=!0,this.container||this.getDefault(t),this.setState({open:e})),n!==this.props.placement&&(this.contextDom=null),this.props.level!==t.level&&this.getParentAndLevelDom(t)},e.prototype.componentDidUpdate=function(){this.firstEnter||this.props.handleChild||(this.forceUpdate(),this.container&&(this.firstEnter=!0))},e.prototype.componentWillUnmount=function(){this.container&&(this.setLevelDomTransform(!1,!0),this.props.getContainer&&this.container.parentNode.removeChild(this.container)),g||this.renderComponent({afterClose:this.removeContainer,onClose:function(){},visible:!1})},e.prototype.render=function(){var t=this,e=this.props,n=e.getContainer,r=e.handleChild,o=e.wrapperClassName,i=void 0!==this.props.open?this.props.open:this.state.open,a=this.getChildToRender(!!(this.firstEnter&&!r||r)&&i);return n?this.container&&(i||this.firstEnter||r)?g?p.a.createPortal(a,this.container):f.a.createElement(m.a,{parent:this,visible:!0,autoMount:!0,autoDestroy:!1,getComponent:function(){return t.getChildToRender()},getContainer:this.getContainer},function(e){var n=e.renderComponent,r=e.removeContainer;return t.renderComponent=n,t.removeContainer=r,null}):null:f.a.createElement("div",{className:o,ref:function(e){t.container=e}},a)},e}(f.a.PureComponent);O.propTypes={wrapperClassName:h.a.string,className:h.a.string,children:h.a.node,style:h.a.object,defaultOpen:h.a.bool,open:h.a.bool,prefixCls:h.a.string,placement:h.a.string,level:h.a.oneOfType([h.a.string,h.a.array]),levelTransition:h.a.string,getContainer:h.a.oneOfType([h.a.string,h.a.func,h.a.object]),handleChild:h.a.any,handleStyle:h.a.object,onChange:h.a.func,onMaskClick:h.a.func,onHandleClick:h.a.func,showMask:h.a.bool,maskStyle:h.a.object},O.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",levelTransition:"transform .3s cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},onMaskClick:function(){},onHandleClick:function(){},handleChild:f.a.createElement("i",{className:"drawer-handle-icon"}),handleStyle:{},showMask:!0,maskStyle:{},wrapperClassName:"",className:""};var _=function(){var t=this;this.onMaskTouchEnd=function(e){t.props.onMaskClick(e),t.onTouchEnd(e,!0)},this.onIconTouchEnd=function(e){t.props.onHandleClick(e),t.onTouchEnd(e)},this.onTouchEnd=function(e,n){if(void 0===t.props.open){var r=n||t.state.open;t.isOpenChange=!0,t.setState({open:!r})}},this.getDefault=function(e){t.getParentAndLevelDom(e),(e.getContainer||e.parent)&&(t.container=t.defaultGetContainer())},this.getContainer=function(){return t.container},this.getParentAndLevelDom=function(e){if(!x){var n=e.level,r=e.getContainer;if(t.levelDom=[],r){if("string"==typeof r){var o=document.querySelectorAll(r)[0];t.parent=o}"function"==typeof r&&(t.parent=r()),"object"==typeof r&&r instanceof window.HTMLElement&&(t.parent=r)}if(!r&&t.container&&(t.parent=t.container.parentNode),"all"===n){Array.prototype.slice.call(t.parent.children).forEach(function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&e!==t.container&&t.levelDom.push(e)})}else n&&Object(b.a)(n).forEach(function(e){document.querySelectorAll(e).forEach(function(e){t.levelDom.push(e)})})}},this.setLevelDomTransform=function(e,n,r,o){var i=t.props,a=i.placement,u=i.levelTransition,c=i.onChange;if(t.levelDom.forEach(function(i){(t.isOpenChange||n)&&(i.style.transition=u,i.addEventListener(b.b,t.trnasitionEnd));var c="left"===a||"top"===a?o:-o;i.style.transform=e?r+"("+c+"px)":""}),!x){var s=["touchstart"],f=[document.body,t.maskDom,t.handleDom,t.contextDom],l=!1;window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return l=!0,null}}));var p=!!l&&{passive:!1};e?(t.bodyDefaultOverflow=document.body.style.overflow,document.body.style.overflow="hidden",document.body.addEventListener&&f.forEach(function(e,n){e&&e.addEventListener(s[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,p)})):(document.body.style.overflow=t.bodyDefaultOverflow,document.body.removeEventListener&&f.forEach(function(e,n){e&&e.removeEventListener(s[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,p)}),delete t.bodyDefaultOverflow)}c&&t.isOpenChange&&t.firstEnter&&(c(e),t.isOpenChange=!1)},this.getChildToRender=function(e){var n,r=t.props,o=r.className,i=r.prefixCls,a=r.style,u=r.placement,c=r.children,s=r.handleChild,l=r.handleStyle,p=r.showMask,d=r.maskStyle,h=v()(i,(n={},n[i+"-"+u]=!0,n[i+"-open"]=e,n[o]=!!o,n)),y=t.contextDom?t.contextDom.getBoundingClientRect()["left"===u||"right"===u?"width":"height"]:0,m="translate"+("left"===u||"right"===u?"X":"Y"),b=t.contextDom?y+"px":"100%",g="left"===u||"top"===u?"-"+b:b,x=e?"":m+"("+g+")";return(void 0===t.isOpenChange||t.isOpenChange)&&t.setLevelDomTransform(e,!1,m,y),f.a.createElement("div",{className:h,style:a},p&&f.a.createElement("div",{className:i+"-mask",onClick:t.onMaskTouchEnd,style:d,ref:function(e){t.maskDom=e}}),f.a.createElement("div",{className:i+"-content-wrapper",style:{transform:x}},f.a.createElement("div",{className:i+"-content",ref:function(e){t.contextDom=e}},c),s&&f.a.createElement("div",{className:i+"-handle",onClick:t.onIconTouchEnd,style:l,ref:function(e){t.handleDom=e}},s)))},this.removeStartHandler=function(e){e.touches.length>1||(t.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},this.removeMoveHandler=function(e){if(!(e.changedTouches.length>1)){var n=e.currentTarget,r=e.changedTouches[0].clientX-t.startPos.x,o=e.changedTouches[0].clientY-t.startPos.y;(n===t.maskDom||n===t.handleDom||n===t.contextDom&&((n.scrollTop+n.offsetHeight>=n.scrollHeight&&o<0||n.scrollTop<=0&&o>0)&&Math.max(Math.abs(r),Math.abs(o))===o||(n.scrollLeft+n.offsetWidth>=n.scrollWidth&&r<0||n.scrollLeft<=0&&r>0)&&Math.max(Math.abs(r),Math.abs(o))===r))&&e.preventDefault()}},this.trnasitionEnd=function(e){e.target.removeEventListener(b.b,t.trnasitionEnd),e.target.style.transition=""},this.defaultGetContainer=function(){if(x)return null;var e=document.createElement("div");return t.parent.appendChild(e),t.props.wrapperClassName&&(e.className=t.props.wrapperClassName),e}};e.a=O},function(t,e,n){t.exports={default:n(50),__esModule:!0}},function(t,e,n){n(51),n(63),t.exports=n(25).f("iterator")},function(t,e,n){"use strict";var r=n(52)(!0);n(31)(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){var r=n(15),o=n(16);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(19),o=n(13),i=n(24),a={};n(5)(a,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(2),o=n(10),i=n(20);t.exports=n(3)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(37);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(7),o=n(58),i=n(59);t.exports=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(15),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(15),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(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(62),i=n(21)("IE_PROTO"),a=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?a:null}},function(t,e,n){var r=n(16);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(64);for(var r=n(0),o=n(5),i=n(18),a=n(8)("toStringTag"),u="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(","),c=0;c<u.length;c++){var s=u[c],f=r[s],l=f&&f.prototype;l&&!l[a]&&o(l,a,s),i[s]=i.Array}},function(t,e,n){"use strict";var r=n(65),o=n(66),i=n(18),a=n(7);t.exports=n(31)(Array,"Array",function(t,e){this._t=a(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){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(68),__esModule:!0}},function(t,e,n){n(69),n(74),n(75),n(76),t.exports=n(1).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(3),a=n(9),u=n(35),c=n(70).KEY,s=n(12),f=n(22),l=n(24),p=n(14),d=n(8),h=n(25),y=n(26),v=n(71),m=n(72),b=n(10),g=n(6),x=n(7),O=n(17),_=n(13),C=n(19),w=n(73),S=n(40),E=n(2),T=n(20),P=S.f,M=E.f,j=w.f,k=r.Symbol,D=r.JSON,L=D&&D.stringify,N=d("_hidden"),A=d("toPrimitive"),R={}.propertyIsEnumerable,I=f("symbol-registry"),F=f("symbols"),H=f("op-symbols"),W=Object.prototype,q="function"==typeof k,G=r.QObject,U=!G||!G.prototype||!G.prototype.findChild,V=i&&s(function(){return 7!=C(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(W,e);r&&delete W[e],M(t,e,n),r&&t!==W&&M(W,e,r)}:M,Y=function(t){var e=F[t]=C(k.prototype);return e._k=t,e},z=q&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},B=function(t,e,n){return t===W&&B(H,e,n),b(t),e=O(e,!0),b(n),o(F,e)?(n.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),n=C(n,{enumerable:_(0,!1)})):(o(t,N)||M(t,N,_(1,{})),t[N][e]=!0),V(t,e,n)):M(t,e,n)},J=function(t,e){b(t);for(var n,r=v(e=x(e)),o=0,i=r.length;i>o;)B(t,n=r[o++],e[n]);return t},K=function(t,e){return void 0===e?C(t):J(C(t),e)},X=function(t){var e=R.call(this,t=O(t,!0));return!(this===W&&o(F,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(F,t)||o(this,N)&&this[N][t])||e)},Q=function(t,e){if(t=x(t),e=O(e,!0),t!==W||!o(F,e)||o(H,e)){var n=P(t,e);return!n||!o(F,e)||o(t,N)&&t[N][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=j(x(t)),r=[],i=0;n.length>i;)o(F,e=n[i++])||e==N||e==c||r.push(e);return r},$=function(t){for(var e,n=t===W,r=j(n?H:x(t)),i=[],a=0;r.length>a;)!o(F,e=r[a++])||n&&!o(W,e)||i.push(F[e]);return i};q||(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(H,n),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),V(this,t,_(1,n))};return i&&U&&V(W,t,{configurable:!0,set:e}),Y(t)},u(k.prototype,"toString",function(){return this._k}),S.f=Q,E.f=B,n(39).f=w.f=Z,n(27).f=X,n(38).f=$,i&&!n(11)&&u(W,"propertyIsEnumerable",X,!0),h.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!q,{Symbol:k});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)d(tt[et++]);for(var nt=T(d.store),rt=0;nt.length>rt;)y(nt[rt++]);a(a.S+a.F*!q,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=k(t)},keyFor:function(t){if(!z(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!q,"Object",{create:K,defineProperty:B,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),D&&a(a.S+a.F*(!q||s(function(){var t=k();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(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],(g(e)||void 0!==t)&&!z(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!z(e))return e}),r[1]=e,L.apply(D,r)}}),k.prototype[A]||n(5)(k.prototype,A,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(14)("meta"),o=n(6),i=n(4),a=n(2).f,u=0,c=Object.isExtensible||function(){return!0},s=!n(12)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},d=function(t){return s&&h.NEED&&c(t)&&!i(t,r)&&f(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(20),o=n(38),i=n(27);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&e.push(a);return e}},function(t,e,n){var r=n(37);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(7),o=n(39).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e){},function(t,e,n){n(26)("asyncIterator")},function(t,e,n){n(26)("observable")},function(t,e,n){t.exports={default:n(78),__esModule:!0}},function(t,e,n){n(79),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(80).set})},function(t,e,n){var r=n(6),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(32)(Function.call,n(40).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){t.exports={default:n(82),__esModule:!0}},function(t,e,n){n(83);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(9);r(r.S,"Object",{create:n(19)})},function(t,e,n){"use strict";function r(){}var o=n(85);t.exports=function(){function t(t,e,n,r,i,a){if(a!==o){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},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 a=n.apply(null,r);a&&t.push(a)}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?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){"use strict";var r=n(28),o=n.n(r),i=n(88),a=n.n(i),u=n(29),c=n.n(u),s=n(41),f=n.n(s),l=n(42),p=n.n(l),d=n(43),h=n.n(d),y=n(44),v=n.n(y),m=function(t){function e(){var t,n,r,i;o()(this,e);for(var a=arguments.length,u=Array(a),s=0;s<a;s++)u[s]=arguments[s];return n=r=c()(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.removeContainer=function(){r.container&&(h.a.unmountComponentAtNode(r.container),r.container.parentNode.removeChild(r.container),r.container=null)},r.renderComponent=function(t,e){var n=r.props,o=n.visible,i=n.getComponent,a=n.forceRender,u=n.getContainer,c=n.parent;(o||c._component||a)&&(r.container||(r.container=u()),h.a.unstable_renderSubtreeIntoContainer(c,i(t),r.container,function(){e&&e.call(this)}))},i=n,c()(r,i)}return f()(e,t),a()(e,[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}]),e}(p.a.Component);m.propTypes={autoMount:v.a.bool,autoDestroy:v.a.bool,visible:v.a.bool,forceRender:v.a.bool,parent:v.a.any,getComponent:v.a.func.isRequired,getContainer:v.a.func.isRequired,children:v.a.func.isRequired},m.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1},e.a=m},function(t,e,n){"use strict";e.__esModule=!0;var r=n(89),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){t.exports={default:n(90),__esModule:!0}},function(t,e,n){n(91);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(9);r(r.S+r.F*!n(3),"Object",{defineProperty:n(2).f})},function(t,e,n){"use strict";function r(t){return Array.isArray(t)?t:[t]}e.a=r,n.d(e,"b",function(){return a});var o={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},i=Object.keys(o).filter(function(t){return"undefined"!=typeof document&&t in(document.body&&document.body.style)})[0],a=o[i]}]).default});
!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-drawer"]=e(require("react"),require("react-dom")):t["rc-drawer"]=e(t.React,t.ReactDOM)}("undefined"!=typeof self?self: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.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=45)}([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.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(10),o=n(33),i=n(17),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(12)(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(2),o=n(13);t.exports=n(3)?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(56),o=n(16);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(22)("wks"),o=n(14),i=n(0).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(0),o=n(1),i=n(32),a=n(5),u=n(4),c=function(t,e,n){var s,f,l,p=t&c.F,d=t&c.G,h=t&c.S,v=t&c.P,y=t&c.B,m=t&c.W,b=d?o:o[e]||(o[e]={}),g=b.prototype,x=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(s in n)(f=!p&&x&&void 0!==x[s])&&u(b,s)||(l=f?x[s]:n[s],b[s]=d&&"function"!=typeof x[s]?n[s]:y&&f?i(l,r):m&&x[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):v&&"function"==typeof l?i(Function.call,l):l,v&&((b.virtual||(b.virtual={}))[s]=l,t&c.R&&g&&!g[s]&&a(g,s,l)))};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(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},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){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(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,n){var r=n(6);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){t.exports={}},function(t,e,n){var r=n(10),o=n(55),i=n(23),a=n(21)("IE_PROTO"),u=function(){},c=function(){var t,e=n(34)("iframe"),r=i.length;for(e.style.display="none",n(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(36),o=n(23);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(22)("keys"),o=n(14);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=n(0),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(11)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).f,o=n(4),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){e.f=n(8)},function(t,e,n){var r=n(0),o=n(1),i=n(11),a=n(25),u=n(2).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},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(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(49),i=r(o),a=n(67),u=r(a),c="function"==typeof u.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,n){"use strict";var r=n(11),o=n(9),i=n(35),a=n(5),u=n(18),c=n(54),s=n(24),f=n(61),l=n(8)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,v,y,m){c(n,e,h);var b,g,x,O=function(t){if(!p&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",C="values"==v,w=!1,S=t.prototype,E=S[l]||S["@@iterator"]||v&&S[v],T=E||O(v),M=v?C?O("entries"):T:void 0,P="Array"==e?S.entries||E:E;if(P&&(x=f(P.call(new t)))!==Object.prototype&&x.next&&(s(x,_,!0),r||"function"==typeof x[l]||a(x,l,d)),C&&E&&"values"!==E.name&&(w=!0,T=function(){return E.call(this)}),r&&!m||!p&&!w&&S[l]||a(S,l,T),u[e]=T,u[_]=d,v)if(b={values:C?T:O("values"),keys:y?T:O("keys"),entries:M},m)for(g in b)g in S||i(S,g,b[g]);else o(o.P+o.F*(p||w),e,b);return b}},function(t,e,n){var r=n(53);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){t.exports=!n(3)&&!n(12)(function(){return 7!=Object.defineProperty(n(34)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(6),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(5)},function(t,e,n){var r=n(4),o=n(7),i=n(57)(!1),a=n(21)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(36),o=n(23).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(27),o=n(13),i=n(7),a=n(17),u=n(4),c=n(33),s=Object.getOwnPropertyDescriptor;e.f=n(3)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,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(77),i=r(o),a=n(81),u=r(a),c=n(30),s=r(c);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,u.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(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){t.exports=n(84)()},function(t,e,n){n(46),t.exports=n(47)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(48);e.default=r.a},function(t,e,n){"use strict";var r=n(28),o=n.n(r),i=n(29),a=n.n(i),u=n(41),c=n.n(u),s=n(42),f=n.n(s),l=n(43),p=n.n(l),d=n(44),h=n.n(d),v=n(86),y=n.n(v),m=n(87),b=n(92),g="createPortal"in p.a,x="undefined"==typeof window,O=function(t){function e(n){o()(this,e);var r=a()(this,t.call(this,n));return _.call(r),r.levelDom=[],r.contextDom=null,r.maskDom=null,r.handleDom=null,r.mousePos=null,r.firstEnter=!1,(n.onIconClick||n.parent||n.iconChild||n.width)&&console.warn("rc-drawer-menu API has been changed, please look at the releases, https://github.com/react-component/drawer-menu/releases"),r.state={open:void 0!==n.open?n.open:!!n.defaultOpen},r}return c()(e,t),e.prototype.componentDidMount=function(){(this.props.handleChild||this.props.open)&&(this.getDefault(this.props),this.forceUpdate())},e.prototype.componentWillReceiveProps=function(t){var e=t.open,n=t.placement;void 0!==e&&e!==this.props.open&&(this.isOpenChange=!0,this.container||this.getDefault(t),this.setState({open:e})),n!==this.props.placement&&(this.contextDom=null),this.props.level!==t.level&&this.getParentAndLevelDom(t)},e.prototype.componentDidUpdate=function(){this.firstEnter||(this.forceUpdate(),this.container&&(this.firstEnter=!0))},e.prototype.componentWillUnmount=function(){this.container&&(this.setLevelDomTransform(!1,!0),this.props.getContainer&&this.container.parentNode.removeChild(this.container)),g||this.renderComponent({afterClose:this.removeContainer,onClose:function(){},visible:!1})},e.prototype.render=function(){var t=this,e=this.props,n=e.getContainer,r=e.wrapperClassName,o=void 0!==this.props.open?this.props.open:this.state.open,i=this.getChildToRender(!!this.firstEnter&&o);return n?this.container&&(o||this.firstEnter)?g?p.a.createPortal(i,this.container):f.a.createElement(m.a,{parent:this,visible:!0,autoMount:!0,autoDestroy:!1,getComponent:function(){return t.getChildToRender()},getContainer:this.getContainer},function(e){var n=e.renderComponent,r=e.removeContainer;return t.renderComponent=n,t.removeContainer=r,null}):null:f.a.createElement("div",{className:r,ref:function(e){t.container=e}},i)},e}(f.a.PureComponent);O.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",levelTransition:"transform .3s cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},onMaskClick:function(){},onHandleClick:function(){},handleChild:f.a.createElement("i",{className:"drawer-handle-icon"}),handleStyle:{},showMask:!0,maskStyle:{},wrapperClassName:"",className:""};var _=function(){var t=this;this.onMaskTouchEnd=function(e){t.props.onMaskClick(e),t.onTouchEnd(e,!0)},this.onIconTouchEnd=function(e){t.props.onHandleClick(e),t.onTouchEnd(e)},this.onTouchEnd=function(e,n){if(void 0===t.props.open){var r=n||t.state.open;t.isOpenChange=!0,t.setState({open:!r})}},this.getDefault=function(e){t.getParentAndLevelDom(e),(e.getContainer||e.parent)&&(t.container=t.defaultGetContainer())},this.getContainer=function(){return t.container},this.getParentAndLevelDom=function(e){if(!x){var n=e.level,r=e.getContainer;if(t.levelDom=[],r){if("string"==typeof r){var o=document.querySelectorAll(r)[0];t.parent=o}"function"==typeof r&&(t.parent=r()),"object"==typeof r&&r instanceof window.HTMLElement&&(t.parent=r)}if(!r&&t.container&&(t.parent=t.container.parentNode),"all"===n){Array.prototype.slice.call(t.parent.children).forEach(function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&e!==t.container&&t.levelDom.push(e)})}else n&&Object(b.a)(n).forEach(function(e){document.querySelectorAll(e).forEach(function(e){t.levelDom.push(e)})})}},this.setLevelDomTransform=function(e,n,r,o){var i=t.props,a=i.placement,u=i.levelTransition,c=i.onChange;if(t.levelDom.forEach(function(i){(t.isOpenChange||n)&&(i.style.transition=u,i.addEventListener(b.b,t.trnasitionEnd));var c="left"===a||"top"===a?o:-o;i.style.transform=e?r+"("+c+"px)":""}),!x){var s=["touchstart"],f=[document.body,t.maskDom,t.handleDom,t.contextDom],l=!1;window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return l=!0,null}}));var p=!!l&&{passive:!1};e?(t.bodyDefaultOverflow=document.body.style.overflow,document.body.style.overflow="hidden",document.body.addEventListener&&f.forEach(function(e,n){e&&e.addEventListener(s[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,p)})):(document.body.style.overflow=t.bodyDefaultOverflow,document.body.removeEventListener&&f.forEach(function(e,n){e&&e.removeEventListener(s[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,p)}),delete t.bodyDefaultOverflow)}c&&t.isOpenChange&&t.firstEnter&&(c(e),t.isOpenChange=!1)},this.getChildToRender=function(e){var n,r=t.props,o=r.className,i=r.prefixCls,a=r.style,u=r.placement,c=r.children,s=r.handleChild,l=r.handleStyle,p=r.showMask,d=r.maskStyle,h=y()(i,(n={},n[i+"-"+u]=!0,n[i+"-open"]=e,n[o]=!!o,n)),v=t.contextDom?t.contextDom.getBoundingClientRect()["left"===u||"right"===u?"width":"height"]:0,m="translate"+("left"===u||"right"===u?"X":"Y"),b=t.contextDom?v+"px":"100%",g="left"===u||"top"===u?"-"+b:b,x=e?"":m+"("+g+")";return(void 0===t.isOpenChange||t.isOpenChange)&&t.setLevelDomTransform(e,!1,m,v),f.a.createElement("div",{className:h,style:a},p&&f.a.createElement("div",{className:i+"-mask",onClick:t.onMaskTouchEnd,style:d,ref:function(e){t.maskDom=e}}),f.a.createElement("div",{className:i+"-content-wrapper",style:{transform:x}},f.a.createElement("div",{className:i+"-content",ref:function(e){t.contextDom=e},onTouchStart:e?t.removeStartHandler:null,onTouchMove:e?t.removeMoveHandler:null},c),s&&f.a.createElement("div",{className:i+"-handle",onClick:t.onIconTouchEnd,style:l,ref:function(e){t.handleDom=e}},s)))},this.removeStartHandler=function(e){e.touches.length>1||(t.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},this.removeMoveHandler=function(e){if(!(e.changedTouches.length>1)){var n=e.currentTarget,r=e.changedTouches[0].clientX-t.startPos.x,o=e.changedTouches[0].clientY-t.startPos.y;(n===t.maskDom||n===t.handleDom||n===t.contextDom&&((n.scrollTop+n.offsetHeight>=n.scrollHeight&&o<0||n.scrollTop<=0&&o>0)&&Math.max(Math.abs(r),Math.abs(o))===o||(n.scrollLeft+n.offsetWidth>=n.scrollWidth&&r<0||n.scrollLeft<=0&&r>0)&&Math.max(Math.abs(r),Math.abs(o))===r))&&e.preventDefault()}},this.trnasitionEnd=function(e){e.target.removeEventListener(b.b,t.trnasitionEnd),e.target.style.transition=""},this.defaultGetContainer=function(){if(x)return null;var e=document.createElement("div");return t.parent.appendChild(e),t.props.wrapperClassName&&(e.className=t.props.wrapperClassName),e}};O.propTypes={wrapperClassName:h.a.string,className:h.a.string,children:h.a.node,style:h.a.object,defaultOpen:h.a.bool,open:h.a.bool,prefixCls:h.a.string,placement:h.a.string,level:h.a.oneOfType([h.a.string,h.a.array]),levelTransition:h.a.string,getContainer:h.a.oneOfType([h.a.string,h.a.func,h.a.object]),handleChild:h.a.any,handleStyle:h.a.object,onChange:h.a.func,onMaskClick:h.a.func,onHandleClick:h.a.func,showMask:h.a.bool,maskStyle:h.a.object},e.a=O},function(t,e,n){t.exports={default:n(50),__esModule:!0}},function(t,e,n){n(51),n(63),t.exports=n(25).f("iterator")},function(t,e,n){"use strict";var r=n(52)(!0);n(31)(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){var r=n(15),o=n(16);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(19),o=n(13),i=n(24),a={};n(5)(a,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(2),o=n(10),i=n(20);t.exports=n(3)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(37);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(7),o=n(58),i=n(59);t.exports=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(15),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(15),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(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(62),i=n(21)("IE_PROTO"),a=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?a:null}},function(t,e,n){var r=n(16);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(64);for(var r=n(0),o=n(5),i=n(18),a=n(8)("toStringTag"),u="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(","),c=0;c<u.length;c++){var s=u[c],f=r[s],l=f&&f.prototype;l&&!l[a]&&o(l,a,s),i[s]=i.Array}},function(t,e,n){"use strict";var r=n(65),o=n(66),i=n(18),a=n(7);t.exports=n(31)(Array,"Array",function(t,e){this._t=a(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){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(68),__esModule:!0}},function(t,e,n){n(69),n(74),n(75),n(76),t.exports=n(1).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(3),a=n(9),u=n(35),c=n(70).KEY,s=n(12),f=n(22),l=n(24),p=n(14),d=n(8),h=n(25),v=n(26),y=n(71),m=n(72),b=n(10),g=n(6),x=n(7),O=n(17),_=n(13),C=n(19),w=n(73),S=n(40),E=n(2),T=n(20),M=S.f,P=E.f,j=w.f,k=r.Symbol,D=r.JSON,L=D&&D.stringify,N=d("_hidden"),A=d("toPrimitive"),R={}.propertyIsEnumerable,I=f("symbol-registry"),F=f("symbols"),H=f("op-symbols"),W=Object.prototype,q="function"==typeof k,G=r.QObject,U=!G||!G.prototype||!G.prototype.findChild,V=i&&s(function(){return 7!=C(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=M(W,e);r&&delete W[e],P(t,e,n),r&&t!==W&&P(W,e,r)}:P,Y=function(t){var e=F[t]=C(k.prototype);return e._k=t,e},z=q&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},B=function(t,e,n){return t===W&&B(H,e,n),b(t),e=O(e,!0),b(n),o(F,e)?(n.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),n=C(n,{enumerable:_(0,!1)})):(o(t,N)||P(t,N,_(1,{})),t[N][e]=!0),V(t,e,n)):P(t,e,n)},J=function(t,e){b(t);for(var n,r=y(e=x(e)),o=0,i=r.length;i>o;)B(t,n=r[o++],e[n]);return t},K=function(t,e){return void 0===e?C(t):J(C(t),e)},X=function(t){var e=R.call(this,t=O(t,!0));return!(this===W&&o(F,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(F,t)||o(this,N)&&this[N][t])||e)},Q=function(t,e){if(t=x(t),e=O(e,!0),t!==W||!o(F,e)||o(H,e)){var n=M(t,e);return!n||!o(F,e)||o(t,N)&&t[N][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=j(x(t)),r=[],i=0;n.length>i;)o(F,e=n[i++])||e==N||e==c||r.push(e);return r},$=function(t){for(var e,n=t===W,r=j(n?H:x(t)),i=[],a=0;r.length>a;)!o(F,e=r[a++])||n&&!o(W,e)||i.push(F[e]);return i};q||(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(H,n),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),V(this,t,_(1,n))};return i&&U&&V(W,t,{configurable:!0,set:e}),Y(t)},u(k.prototype,"toString",function(){return this._k}),S.f=Q,E.f=B,n(39).f=w.f=Z,n(27).f=X,n(38).f=$,i&&!n(11)&&u(W,"propertyIsEnumerable",X,!0),h.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!q,{Symbol:k});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)d(tt[et++]);for(var nt=T(d.store),rt=0;nt.length>rt;)v(nt[rt++]);a(a.S+a.F*!q,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=k(t)},keyFor:function(t){if(!z(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!q,"Object",{create:K,defineProperty:B,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),D&&a(a.S+a.F*(!q||s(function(){var t=k();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(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],(g(e)||void 0!==t)&&!z(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!z(e))return e}),r[1]=e,L.apply(D,r)}}),k.prototype[A]||n(5)(k.prototype,A,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(14)("meta"),o=n(6),i=n(4),a=n(2).f,u=0,c=Object.isExtensible||function(){return!0},s=!n(12)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},d=function(t){return s&&h.NEED&&c(t)&&!i(t,r)&&f(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(20),o=n(38),i=n(27);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&e.push(a);return e}},function(t,e,n){var r=n(37);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(7),o=n(39).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e){},function(t,e,n){n(26)("asyncIterator")},function(t,e,n){n(26)("observable")},function(t,e,n){t.exports={default:n(78),__esModule:!0}},function(t,e,n){n(79),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(80).set})},function(t,e,n){var r=n(6),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(32)(Function.call,n(40).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){t.exports={default:n(82),__esModule:!0}},function(t,e,n){n(83);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(9);r(r.S,"Object",{create:n(19)})},function(t,e,n){"use strict";function r(){}var o=n(85);t.exports=function(){function t(t,e,n,r,i,a){if(a!==o){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},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 a=n.apply(null,r);a&&t.push(a)}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?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){"use strict";var r=n(28),o=n.n(r),i=n(88),a=n.n(i),u=n(29),c=n.n(u),s=n(41),f=n.n(s),l=n(42),p=n.n(l),d=n(43),h=n.n(d),v=n(44),y=n.n(v),m=function(t){function e(){var t,n,r,i;o()(this,e);for(var a=arguments.length,u=Array(a),s=0;s<a;s++)u[s]=arguments[s];return n=r=c()(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.removeContainer=function(){r.container&&(h.a.unmountComponentAtNode(r.container),r.container.parentNode.removeChild(r.container),r.container=null)},r.renderComponent=function(t,e){var n=r.props,o=n.visible,i=n.getComponent,a=n.forceRender,u=n.getContainer,c=n.parent;(o||c._component||a)&&(r.container||(r.container=u()),h.a.unstable_renderSubtreeIntoContainer(c,i(t),r.container,function(){e&&e.call(this)}))},i=n,c()(r,i)}return f()(e,t),a()(e,[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}]),e}(p.a.Component);m.propTypes={autoMount:y.a.bool,autoDestroy:y.a.bool,visible:y.a.bool,forceRender:y.a.bool,parent:y.a.any,getComponent:y.a.func.isRequired,getContainer:y.a.func.isRequired,children:y.a.func.isRequired},m.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1},e.a=m},function(t,e,n){"use strict";e.__esModule=!0;var r=n(89),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){t.exports={default:n(90),__esModule:!0}},function(t,e,n){n(91);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(9);r(r.S+r.F*!n(3),"Object",{defineProperty:n(2).f})},function(t,e,n){"use strict";function r(t){return Array.isArray(t)?t:[t]}e.a=r,n.d(e,"b",function(){return a});var o={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},i=Object.keys(o).filter(function(t){return"undefined"!=typeof document&&t in(document.body&&document.body.style)})[0],a=o[i]}]).default});

@@ -30,3 +30,3 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck';

_this.mousePos = null;
_this.firstEnter = false; // 记录在没有 handleChild 的时候,是否渲染了 dom.
_this.firstEnter = false; // 记录首次进入.
if (props.onIconClick || props.parent || props.iconChild || props.width) {

@@ -44,3 +44,3 @@ // eslint-disable-line react/prop-types

Drawer.prototype.componentDidMount = function componentDidMount() {
if (this.props.handleChild) {
if (this.props.handleChild || this.props.open) {
this.getDefault(this.props);

@@ -76,3 +76,3 @@ this.forceUpdate();

// dom 没渲染时,重走一遍。
if (!this.firstEnter && !this.props.handleChild) {
if (!this.firstEnter) {
this.forceUpdate();

@@ -110,7 +110,6 @@ if (this.container) {

getContainer = _props.getContainer,
handleChild = _props.handleChild,
wrapperClassName = _props.wrapperClassName;
var open = this.props.open !== undefined ? this.props.open : this.state.open;
var children = this.getChildToRender(this.firstEnter && !handleChild || handleChild ? open : false);
var children = this.getChildToRender(this.firstEnter ? open : false);
if (!getContainer) {

@@ -128,3 +127,3 @@ return React.createElement(

}
if (!this.container || !open && !this.firstEnter && !handleChild) {
if (!this.container || !open && !this.firstEnter) {
return null;

@@ -162,22 +161,2 @@ }

Drawer.propTypes = {
wrapperClassName: PropTypes.string,
className: PropTypes.string,
children: PropTypes.node,
style: PropTypes.object,
defaultOpen: PropTypes.bool,
open: PropTypes.bool,
prefixCls: PropTypes.string,
placement: PropTypes.string,
level: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
levelTransition: PropTypes.string,
getContainer: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.object]),
handleChild: PropTypes.any,
handleStyle: PropTypes.object,
onChange: PropTypes.func,
onMaskClick: PropTypes.func,
onHandleClick: PropTypes.func,
showMask: PropTypes.bool,
maskStyle: PropTypes.object
};
Drawer.defaultProps = {

@@ -358,3 +337,6 @@ prefixCls: 'drawer',

'div',
{ className: wrapperClassname, style: style },
{
className: wrapperClassname,
style: style
},
showMask && React.createElement('div', {

@@ -377,3 +359,5 @@ className: prefixCls + '-mask',

_this3.contextDom = c;
}
},
onTouchStart: open ? _this3.removeStartHandler : null // 跑用例用
, onTouchMove: open ? _this3.removeMoveHandler : null // 跑用例用
},

@@ -438,2 +422,23 @@ children

Drawer.propTypes = {
wrapperClassName: PropTypes.string,
className: PropTypes.string,
children: PropTypes.node,
style: PropTypes.object,
defaultOpen: PropTypes.bool,
open: PropTypes.bool,
prefixCls: PropTypes.string,
placement: PropTypes.string,
level: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
levelTransition: PropTypes.string,
getContainer: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.object]),
handleChild: PropTypes.any,
handleStyle: PropTypes.object,
onChange: PropTypes.func,
onMaskClick: PropTypes.func,
onHandleClick: PropTypes.func,
showMask: PropTypes.bool,
maskStyle: PropTypes.object
};
export default Drawer;

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

_this.mousePos = null;
_this.firstEnter = false; // 记录在没有 handleChild 的时候,是否渲染了 dom.
_this.firstEnter = false; // 记录首次进入.
if (props.onIconClick || props.parent || props.iconChild || props.width) {

@@ -74,3 +74,3 @@ // eslint-disable-line react/prop-types

Drawer.prototype.componentDidMount = function componentDidMount() {
if (this.props.handleChild) {
if (this.props.handleChild || this.props.open) {
this.getDefault(this.props);

@@ -106,3 +106,3 @@ this.forceUpdate();

// dom 没渲染时,重走一遍。
if (!this.firstEnter && !this.props.handleChild) {
if (!this.firstEnter) {
this.forceUpdate();

@@ -140,7 +140,6 @@ if (this.container) {

getContainer = _props.getContainer,
handleChild = _props.handleChild,
wrapperClassName = _props.wrapperClassName;
var open = this.props.open !== undefined ? this.props.open : this.state.open;
var children = this.getChildToRender(this.firstEnter && !handleChild || handleChild ? open : false);
var children = this.getChildToRender(this.firstEnter ? open : false);
if (!getContainer) {

@@ -158,3 +157,3 @@ return _react2['default'].createElement(

}
if (!this.container || !open && !this.firstEnter && !handleChild) {
if (!this.container || !open && !this.firstEnter) {
return null;

@@ -192,22 +191,2 @@ }

Drawer.propTypes = {
wrapperClassName: _propTypes2['default'].string,
className: _propTypes2['default'].string,
children: _propTypes2['default'].node,
style: _propTypes2['default'].object,
defaultOpen: _propTypes2['default'].bool,
open: _propTypes2['default'].bool,
prefixCls: _propTypes2['default'].string,
placement: _propTypes2['default'].string,
level: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].array]),
levelTransition: _propTypes2['default'].string,
getContainer: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].func, _propTypes2['default'].object]),
handleChild: _propTypes2['default'].any,
handleStyle: _propTypes2['default'].object,
onChange: _propTypes2['default'].func,
onMaskClick: _propTypes2['default'].func,
onHandleClick: _propTypes2['default'].func,
showMask: _propTypes2['default'].bool,
maskStyle: _propTypes2['default'].object
};
Drawer.defaultProps = {

@@ -388,3 +367,6 @@ prefixCls: 'drawer',

'div',
{ className: wrapperClassname, style: style },
{
className: wrapperClassname,
style: style
},
showMask && _react2['default'].createElement('div', {

@@ -407,3 +389,5 @@ className: prefixCls + '-mask',

_this3.contextDom = c;
}
},
onTouchStart: open ? _this3.removeStartHandler : null // 跑用例用
, onTouchMove: open ? _this3.removeMoveHandler : null // 跑用例用
},

@@ -468,3 +452,24 @@ children

Drawer.propTypes = {
wrapperClassName: _propTypes2['default'].string,
className: _propTypes2['default'].string,
children: _propTypes2['default'].node,
style: _propTypes2['default'].object,
defaultOpen: _propTypes2['default'].bool,
open: _propTypes2['default'].bool,
prefixCls: _propTypes2['default'].string,
placement: _propTypes2['default'].string,
level: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].array]),
levelTransition: _propTypes2['default'].string,
getContainer: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].func, _propTypes2['default'].object]),
handleChild: _propTypes2['default'].any,
handleStyle: _propTypes2['default'].object,
onChange: _propTypes2['default'].func,
onMaskClick: _propTypes2['default'].func,
onHandleClick: _propTypes2['default'].func,
showMask: _propTypes2['default'].bool,
maskStyle: _propTypes2['default'].object
};
exports['default'] = Drawer;
module.exports = exports['default'];
{
"name": "rc-drawer",
"version": "1.4.0",
"version": "1.4.1",
"description": "drawer component for react",

@@ -5,0 +5,0 @@ "keywords": [

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