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.9.9 to 1.10.0

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=48)}([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.6.9"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(10),o=n(30),i=n(15),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(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(2),o=n(12);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(62),o=n(17);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(29),a=n(5),s=n(4),c=function(t,e,n){var u,f,l,p=t&c.F,d=t&c.G,h=t&c.S,m=t&c.P,y=t&c.B,v=t&c.W,b=d?o:o[e]||(o[e]={}),E=b.prototype,g=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(u in n)(f=!p&&g&&void 0!==g[u])&&s(b,u)||(l=f?g[u]:n[u],b[u]=d&&"function"!=typeof g[u]?n[u]:y&&f?i(l,r):v&&g[u]==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):m&&"function"==typeof l?i(Function.call,l):l,m&&((b.virtual||(b.virtual={}))[u]=l,t&c.R&&E&&!E[u]&&a(E,u,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=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){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){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){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){t.exports={}},function(t,e,n){var r=n(10),o=n(61),i=n(23),a=n(21)("IE_PROTO"),s=function(){},c=function(){var t,e=n(31)("iframe"),r=i.length;for(e.style.display="none",n(66).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?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(38),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(13)?"pure":"global",copyright:"© 2019 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(13),a=n(25),s=n(2).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){t.exports={default:n(53),__esModule:!0}},function(t,e,n){var r=n(55);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(11)(function(){return 7!=Object.defineProperty(n(31)("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){"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(28),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(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(56),i=r(o),a=n(72),s=r(a),c="function"==typeof s.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,n){"use strict";var r=n(13),o=n(9),i=n(37),a=n(5),s=n(18),c=n(60),u=n(24),f=n(67),l=n(8)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,m,y,v){c(n,e,h);var b,E,g,O=function(t){if(!p&&t in T)return T[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"==m,S=!1,T=t.prototype,w=T[l]||T["@@iterator"]||m&&T[m],M=w||O(m),N=m?C?O("entries"):M:void 0,x="Array"==e?T.entries||w:w;if(x&&(g=f(x.call(new t)))!==Object.prototype&&g.next&&(u(g,_,!0),r||"function"==typeof g[l]||a(g,l,d)),C&&w&&"values"!==w.name&&(S=!0,M=function(){return w.call(this)}),r&&!v||!p&&!S&&T[l]||a(T,l,M),s[e]=M,s[_]=d,m)if(b={values:C?M:O("values"),keys:y?M:O("keys"),entries:N},v)for(E in b)E in T||i(T,E,b[E]);else o(o.P+o.F*(p||S),e,b);return b}},function(t,e,n){t.exports=n(5)},function(t,e,n){var r=n(4),o=n(7),i=n(63)(!1),a=n(21)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~i(u,n)||u.push(n));return u}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(17);t.exports=function(t){return Object(r(t))}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(38),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(12),i=n(7),a=n(15),s=n(4),c=n(30),u=Object.getOwnPropertyDescriptor;e.f=n(3)?u:function(t,e){if(t=i(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(s(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(82),i=r(o),a=n(86),s=r(a),c=n(35),u=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,u.default)(e)));t.prototype=(0,s.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(89)()},function(t,e,n){n(49),t.exports=n(50)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51);e.default=r.a},function(t,e,n){"use strict";var r=n(52),o=n.n(r),i=n(32),a=n.n(i),s=n(33),c=n.n(s),u=n(34),f=n.n(u),l=n(44),p=n.n(l),d=n(45),h=n.n(d),m=n(46),y=n.n(m),v=n(47),b=n.n(v),E=n(91),g=n.n(E),O=n(92),_=n(93),C=n(94),S=n(95),T="createPortal"in y.a,w={},M=!("undefined"!=typeof window&&window.document&&window.document.createElement),N=function(t){function e(t){a()(this,e);var n=f()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));x.call(n),n.levelDom=[],n.contentDom=null,n.maskDom=null,n.handlerDom=null,n.firstEnter=t.firstEnter,n.timeout=null,n.drawerId=Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()))).toString(16);var r=void 0!==t.open?t.open:!!t.defaultOpen;return w[n.drawerId]=r,n.state={open:r},n}return p()(e,t),c()(e,[{key:"componentDidMount",value:function(){if(!M){var t=!1;window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}})),this.passive=!!t&&{passive:!1}}var e=this.getOpen();(this.props.handler||e||this.firstEnter)&&(this.getDefault(this.props),e&&(this.isOpenChange=!0),this.forceUpdate())}},{key:"componentWillReceiveProps",value:function(t){var e=this,n=t.open,r=t.placement,o=t.getContainer;if(void 0!==n&&n!==this.props.open){this.isOpenChange=!0;var i="function"==typeof o&&"function"==typeof this.props.getContainer?this.props.getContainer()===o():this.props.getContainer===o;this.container&&i||this.getDefault(t);var a=n&&!this.props.open;this.setState({open:n},function(){e.domFocus(a)})}r!==this.props.placement&&(this.contentDom=null),this.props.level!==t.level&&this.getParentAndLevelDom(t)}},{key:"componentDidUpdate",value:function(){!this.firstEnter&&this.container&&(this.forceUpdate(),this.firstEnter=!0)}},{key:"componentWillUnmount",value:function(){delete w[this.drawerId],delete this.isOpenChange,this.container&&(this.state.open&&this.setLevelDomTransform(!1,!0),document.body.style.overflow="",this.props.getContainer&&this.container.parentNode.removeChild(this.container)),this.firstEnter=!1,clearTimeout(this.timeout),this.renderComponent&&!T&&this.renderComponent({afterClose:this.removeContainer,onClose:function(){},visible:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.getContainer,r=e.wrapperClassName,o=this.getOpen();w[this.drawerId]=o?this.container:o;var i=this.getChildToRender(!!this.firstEnter&&o);return n?this.container&&(o||this.firstEnter)?T?y.a.createPortal(i,this.container):h.a.createElement(O.a,{parent:this,visible:!0,autoMount:!0,autoDestroy:!1,getComponent:function(){return i},getContainer:this.getContainer},function(e){var n=e.renderComponent,r=e.removeContainer;return t.renderComponent=n,t.removeContainer=r,null}):null:h.a.createElement("div",{className:r,ref:function(e){t.props.getContainer||(t.container=e)}},i)}}]),e}(h.a.PureComponent);N.propTypes={wrapperClassName:b.a.string,className:b.a.string,children:b.a.node,style:b.a.object,width:b.a.any,height:b.a.any,defaultOpen:b.a.bool,firstEnter:b.a.bool,open:b.a.bool,prefixCls:b.a.string,placement:b.a.string,level:b.a.oneOfType([b.a.string,b.a.array]),levelMove:b.a.oneOfType([b.a.number,b.a.func,b.a.array]),ease:b.a.string,duration:b.a.string,getContainer:b.a.oneOfType([b.a.string,b.a.func,b.a.object,b.a.bool]),handler:b.a.any,onChange:b.a.func,afterVisibleChange:b.a.func,onMaskClick:b.a.func,onHandleClick:b.a.func,showMask:b.a.bool,maskStyle:b.a.object,keyboard:b.a.bool},N.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:h.a.createElement("div",{className:"drawer-handle"},h.a.createElement("i",{className:"drawer-handle-icon"})),firstEnter:!1,showMask:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0};var x=function(){var t=this;this.onMaskTouchEnd=function(e){var n=t.props.onMaskClick;n&&n(e),t.onTouchEnd(e,!0)},this.onIconTouchEnd=function(e){var n=t.props.onHandleClick;n&&n(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},function(){t.domFocus(!r)})}},this.onKeyDown=function(e){if(e.keyCode===C.a.ESC){var n=t.props,r=n.onMaskClick,o=n.onHandleClick;e.stopPropagation();var i=o||r;i?i(e):t.onTouchEnd(e,!0)}},this.onWrapperTransitionEnd=function(e){if(e.target===t.contentWrapper&&"transform"===e.propertyName){t.dom.style.transition="",!t.state.open&&t.getCurrentDrawerSome()&&(document.body.style.overflowX="",t.maskDom&&(t.maskDom.style.left="",t.maskDom.style.width=""));(0,t.props.afterVisibleChange)(t.state.open)}},this.getDefault=function(e){t.getParentAndLevelDom(e),(e.getContainer||e.parent)&&(t.container=t.defaultGetContainer())},this.getCurrentDrawerSome=function(){return!Object.keys(w).some(function(t){return w[t]})},this.getContainer=function(){return t.container},this.getParentAndLevelDom=function(e){if(!M){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&&"LINK"!==e.nodeName&&e!==t.container&&t.levelDom.push(e)})}else n&&Object(S.b)(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,s=i.levelMove,c=i.duration,u=i.ease,f=i.onChange,l=i.getContainer,p=i.showMask;if(!M){var d=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(_.a)(1):0;if(t.levelDom.forEach(function(i){if(t.isOpenChange||n){i.style.transition="transform "+c+" "+u,Object(S.a)(i,S.f,t.transitionEnd);var f=e?o:0;if(s){var l=Object(S.e)(s,{target:i,open:e});f=e?l[0]:l[1]||0}var h="number"==typeof f?f+"px":f,m="left"===a||"top"===a?h:"-"+h,y="left"===a||"top"===a?"-":"+";m=p&&("left"===a||"right"===a)&&d?"calc("+m+" "+y+" "+d+"px)":m,i.style.transform=f?r+"("+m+")":"",i.style.msTransform=f?r+"("+m+")":""}}),"body"===l&&p){var h=["touchstart"],m=[document.body,t.maskDom,t.handlerDom,t.contentDom],y="width "+c+" "+u,v="transform "+c+" "+u;if(e&&"hidden"!==document.body.style.overflow){if(document.body.style.overflow="hidden",document.body.style.touchAction="none",d){switch(document.body.style.position="relative",document.body.style.width="calc(100% - "+d+"px)",t.dom.style.transition="none",a){case"right":t.dom.style.transform="translateX(-"+d+"px)",t.dom.style.msTransform="translateX(-"+d+"px)";break;case"top":case"bottom":t.dom.style.width="calc(100% - "+d+"px)",t.dom.style.transform="translateZ(0)"}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=v+","+y,t.dom.style.width="",t.dom.style.transform="",t.dom.style.msTransform=""})}m.forEach(function(e,n){e&&Object(S.a)(e,h[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}else if(t.getCurrentDrawerSome()){if(document.body.style.overflow="",document.body.style.touchAction="",(t.isOpenChange||n)&&d){document.body.style.position="",document.body.style.width="",S.g&&(document.body.style.overflowX="hidden"),t.dom.style.transition="none";var b=void 0;switch(a){case"right":t.dom.style.transform="translateX("+d+"px)",t.dom.style.msTransform="translateX("+d+"px)",t.dom.style.width="100%",y="width 0s "+u+" "+c,t.maskDom&&(t.maskDom.style.left="-"+d+"px",t.maskDom.style.width="calc(100% + "+d+"px)");break;case"top":case"bottom":t.dom.style.width="calc(100% + "+d+"px)",t.dom.style.height="100%",t.dom.style.transform="translateZ(0)",b="height 0s "+u+" "+c}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=v+","+(b?b+",":"")+y,t.dom.style.transform="",t.dom.style.msTransform="",t.dom.style.width="",t.dom.style.height=""})}m.forEach(function(e,n){e&&Object(S.d)(e,h[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}}}t.isOpenChange&&t.firstEnter&&(f(e),t.isOpenChange=!1)},this.getChildToRender=function(e){var n,r=t.props,i=r.className,a=r.prefixCls,s=r.style,c=r.placement,u=r.children,f=r.handler,l=r.showMask,p=r.maskStyle,d=r.width,m=r.height,y=r.keyboard,v=g()(a,(n={},o()(n,a+"-"+c,!0),o()(n,a+"-open",e),o()(n,i,!!i),o()(n,"no-mask",!l),n)),b=t.isOpenChange,E="left"===c||"right"===c,O="translate"+(E?"X":"Y"),_="left"===c||"top"===c?"-100%":"100%",C=e?"":O+"("+_+")";if(void 0===b||b){var T=t.contentDom?t.contentDom.getBoundingClientRect()[E?"width":"height"]:0,w=(E?d:m)||T;t.setLevelDomTransform(e,!1,O,w)}var M=f&&h.a.cloneElement(f,{onClick:function(e){f.props.onClick&&f.props.onClick(),t.onIconTouchEnd(e)},ref:function(e){t.handlerDom=e}});return h.a.createElement("div",{tabIndex:-1,className:v,style:s,ref:function(e){t.dom=e},onKeyDown:e&&y?t.onKeyDown:null,onTransitionEnd:t.onWrapperTransitionEnd},l&&h.a.createElement("div",{className:a+"-mask",onClick:t.onMaskTouchEnd,style:p,ref:function(e){t.maskDom=e}}),h.a.createElement("div",{className:a+"-content-wrapper",style:{transform:C,msTransform:C,width:Object(S.c)(d)?d+"px":d,height:Object(S.c)(m)?m+"px":m},ref:function(e){t.contentWrapper=e}},h.a.createElement("div",{className:a+"-content",ref:function(e){t.contentDom=e},onTouchStart:e&&l?t.removeStartHandler:null,onTouchMove:e&&l?t.removeMoveHandler:null},u),M))},this.getOpen=function(){return void 0!==t.props.open?t.props.open:t.state.open},this.getTouchParentScroll=function(e,n,r,o){if(!n||n===document)return!1;if(n===e.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(o))===Math.abs(o),a=Math.max(Math.abs(r),Math.abs(o))===Math.abs(r),s=n.scrollHeight-n.clientHeight,c=n.scrollWidth-n.clientWidth,u=n.scrollTop,f=n.scrollLeft;n.scrollTop+=1,n.scrollLeft+=1;var l=n.scrollTop,p=n.scrollLeft;return n.scrollTop-=1,n.scrollLeft-=1,!((!i||s&&l-u&&(!s||!(n.scrollTop>=s&&o<0||n.scrollTop<=0&&o>0)))&&(!a||c&&p-f&&(!c||!(n.scrollLeft>=c&&r<0||n.scrollLeft<=0&&r>0))))&&t.getTouchParentScroll(e,n.parentNode,r,o)},this.domFocus=function(e){t.dom&&e&&t.dom.focus()},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.handlerDom||n===t.contentDom&&t.getTouchParentScroll(n,e.target,r,o))&&e.preventDefault()}},this.transitionEnd=function(e){Object(S.d)(e.target,S.f,t.transitionEnd),e.target.style.transition=""},this.defaultGetContainer=function(){if(M)return null;var e=document.createElement("div");return t.parent.appendChild(e),t.props.wrapperClassName&&(e.className=t.props.wrapperClassName),e}};e.a=N},function(t,e,n){"use strict";e.__esModule=!0;var r=n(28),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){n(54);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){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){t.exports={default:n(57),__esModule:!0}},function(t,e,n){n(58),n(68),t.exports=n(25).f("iterator")},function(t,e,n){"use strict";var r=n(59)(!0);n(36)(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(16),o=n(17);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(19),o=n(12),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),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(39);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(64),i=n(65);t.exports=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),f=i(a,u);if(t&&n!=n){for(;u>f;)if((s=c[f++])!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(16),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(16),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(40),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){n(69);for(var r=n(0),o=n(5),i=n(18),a=n(8)("toStringTag"),s="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<s.length;c++){var u=s[c],f=r[u],l=f&&f.prototype;l&&!l[a]&&o(l,a,u),i[u]=i.Array}},function(t,e,n){"use strict";var r=n(70),o=n(71),i=n(18),a=n(7);t.exports=n(36)(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(73),__esModule:!0}},function(t,e,n){n(74),n(79),n(80),n(81),t.exports=n(1).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(3),a=n(9),s=n(37),c=n(75).KEY,u=n(11),f=n(22),l=n(24),p=n(14),d=n(8),h=n(25),m=n(26),y=n(76),v=n(77),b=n(10),E=n(6),g=n(40),O=n(7),_=n(15),C=n(12),S=n(19),T=n(78),w=n(43),M=n(41),N=n(2),x=n(20),P=w.f,A=N.f,k=T.f,D=r.Symbol,L=r.JSON,j=L&&L.stringify,I=d("_hidden"),R=d("toPrimitive"),U={}.propertyIsEnumerable,F=f("symbol-registry"),H=f("symbols"),W=f("op-symbols"),K=Object.prototype,G="function"==typeof D&&!!M.f,V=r.QObject,B=!V||!V.prototype||!V.prototype.findChild,X=i&&u(function(){return 7!=S(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(K,e);r&&delete K[e],A(t,e,n),r&&t!==K&&A(K,e,r)}:A,Y=function(t){var e=H[t]=S(D.prototype);return e._k=t,e},Q=G&&"symbol"==typeof D.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof D},q=function(t,e,n){return t===K&&q(W,e,n),b(t),e=_(e,!0),b(n),o(H,e)?(n.enumerable?(o(t,I)&&t[I][e]&&(t[I][e]=!1),n=S(n,{enumerable:C(0,!1)})):(o(t,I)||A(t,I,C(1,{})),t[I][e]=!0),X(t,e,n)):A(t,e,n)},Z=function(t,e){b(t);for(var n,r=y(e=O(e)),o=0,i=r.length;i>o;)q(t,n=r[o++],e[n]);return t},z=function(t,e){return void 0===e?S(t):Z(S(t),e)},J=function(t){var e=U.call(this,t=_(t,!0));return!(this===K&&o(H,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(H,t)||o(this,I)&&this[I][t])||e)},$=function(t,e){if(t=O(t),e=_(e,!0),t!==K||!o(H,e)||o(W,e)){var n=P(t,e);return!n||!o(H,e)||o(t,I)&&t[I][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=k(O(t)),r=[],i=0;n.length>i;)o(H,e=n[i++])||e==I||e==c||r.push(e);return r},et=function(t){for(var e,n=t===K,r=k(n?W:O(t)),i=[],a=0;r.length>a;)!o(H,e=r[a++])||n&&!o(K,e)||i.push(H[e]);return i};G||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===K&&e.call(W,n),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),X(this,t,C(1,n))};return i&&B&&X(K,t,{configurable:!0,set:e}),Y(t)},s(D.prototype,"toString",function(){return this._k}),w.f=$,N.f=q,n(42).f=T.f=tt,n(27).f=J,M.f=et,i&&!n(13)&&s(K,"propertyIsEnumerable",J,!0),h.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!G,{Symbol:D});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)d(nt[rt++]);for(var ot=x(d.store),it=0;ot.length>it;)m(ot[it++]);a(a.S+a.F*!G,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=D(t)},keyFor:function(t){if(!Q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!G,"Object",{create:z,defineProperty:q,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){M.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return M.f(g(t))}}),L&&a(a.S+a.F*(!G||u(function(){var t=D();return"[null]"!=j([t])||"{}"!=j({a:t})||"{}"!=j(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],(E(e)||void 0!==t)&&!Q(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Q(e))return e}),r[1]=e,j.apply(L,r)}}),D.prototype[R]||n(5)(D.prototype,R,D.prototype.valueOf),l(D,"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,s=0,c=Object.isExtensible||function(){return!0},u=!n(11)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++s,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 u&&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(41),i=n(27);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),c=i.f,u=0;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},function(t,e,n){var r=n(39);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(7),o=n(42).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?s(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(83),__esModule:!0}},function(t,e,n){n(84),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(85).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(29)(Function.call,n(43).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(87),__esModule:!0}},function(t,e,n){n(88);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(){}function o(){}var i=n(90);o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,a){if(a!==i){var s=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 s.name="Invariant Violation",s}}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,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return 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 s in r)i.call(r,s)&&r[s]&&t.push(s)}}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(32),o=n.n(r),i=n(33),a=n.n(i),s=n(34),c=n.n(s),u=n(44),f=n.n(u),l=n(45),p=n.n(l),d=n(46),h=n.n(d),m=n(47),y=n.n(m),v=function(t){function e(){var t,n,r,i;o()(this,e);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return n=r=c()(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),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,s=n.getContainer,c=n.parent;(o||c._component||a)&&(r.container||(r.container=s()),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);v.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},v.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1},e.a=v},function(t,e,n){"use strict";function r(t){if(t||void 0===o){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top=0,r.left=0,r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var i=e.offsetWidth;n.style.overflow="scroll";var a=e.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),o=i-a}return o}e.a=r;var o=void 0},function(t,e,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229};r.isTextModifyingKeyEvent=function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=r.F1&&e<=r.F12)return!1;switch(e){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},r.isCharacterKey=function(t){if(t>=r.ZERO&&t<=r.NINE)return!0;if(t>=r.NUM_ZERO&&t<=r.NUM_MULTIPLY)return!0;if(t>=r.A&&t<=r.Z)return!0;if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},e.a=r},function(t,e,n){"use strict";function r(t){return Array.isArray(t)?t:[t]}function o(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on"+e,n)}function i(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r):t.attachEvent&&t.detachEvent("on"+e,n)}function a(t,e){var n=void 0;return n="function"==typeof t?t(e):t,Array.isArray(n)?2===n.length?n:[n[0],n[1]]:[n]}e.b=r,n.d(e,"g",function(){return c}),n.d(e,"f",function(){return u}),e.a=o,e.d=i,e.e=a,n.d(e,"c",function(){return f});var s={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},c=Object.keys(s).filter(function(t){if("undefined"==typeof document)return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],u=s[c],f=function(t){return!isNaN(parseFloat(t))&&isFinite(t)}}]).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=49)}([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.6.9"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(10),o=n(31),i=n(17),a=Object.defineProperty;e.f=n(2)?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){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(0),o=n(1),i=n(30),a=n(6),s=n(4),c=function(t,e,n){var u,f,l,p=t&c.F,d=t&c.G,h=t&c.S,m=t&c.P,y=t&c.B,v=t&c.W,b=d?o:o[e]||(o[e]={}),g=b.prototype,E=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(u in n)(f=!p&&E&&void 0!==E[u])&&s(b,u)||(l=f?E[u]:n[u],b[u]=d&&"function"!=typeof E[u]?n[u]:y&&f?i(l,r):v&&E[u]==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):m&&"function"==typeof l?i(Function.call,l):l,m&&((b.virtual||(b.virtual={}))[u]=l,t&c.R&&g&&!g[u]&&a(g,u,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(3),o=n(12);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(34),o=n(18);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(21)("wks"),o=n(15),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(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=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(33),o=n(22);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=!0},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){e.f={}.propertyIsEnumerable},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){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(21)("keys"),o=n(15);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(14)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(18);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(10),o=n(71),i=n(22),a=n(20)("IE_PROTO"),s=function(){},c=function(){var t,e=n(32)("iframe"),r=i.length;for(e.style.display="none",n(72).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?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(3).f,o=n(4),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){e.f=n(9)},function(t,e,n){var r=n(0),o=n(1),i=n(14),a=n(28),s=n(3).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(57);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(2)&&!n(11)(function(){return 7!=Object.defineProperty(n(32)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(7),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(4),o=n(8),i=n(59)(!1),a=n(20)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~i(u,n)||u.push(n));return u}},function(t,e,n){var r=n(35);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){t.exports={default:n(63),__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(36),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(40),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(66),i=r(o),a=n(78),s=r(a),c="function"==typeof s.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,n){"use strict";var r=n(14),o=n(5),i=n(42),a=n(6),s=n(25),c=n(70),u=n(27),f=n(73),l=n(9)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,m,y,v){c(n,e,h);var b,g,E,O=function(t){if(!p&&t in T)return T[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"==m,S=!1,T=t.prototype,w=T[l]||T["@@iterator"]||m&&T[m],M=w||O(m),N=m?C?O("entries"):M:void 0,x="Array"==e?T.entries||w:w;if(x&&(E=f(x.call(new t)))!==Object.prototype&&E.next&&(u(E,_,!0),r||"function"==typeof E[l]||a(E,l,d)),C&&w&&"values"!==w.name&&(S=!0,M=function(){return w.call(this)}),r&&!v||!p&&!S&&T[l]||a(T,l,M),s[e]=M,s[_]=d,m)if(b={values:C?M:O("values"),keys:y?M:O("keys"),entries:N},v)for(g in b)g in T||i(T,g,b[g]);else o(o.P+o.F*(p||S),e,b);return b}},function(t,e,n){t.exports=n(6)},function(t,e,n){var r=n(33),o=n(22).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(16),o=n(12),i=n(8),a=n(17),s=n(4),c=n(31),u=Object.getOwnPropertyDescriptor;e.f=n(2)?u:function(t,e){if(t=i(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(s(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(88),i=r(o),a=n(92),s=r(a),c=n(40),u=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,u.default)(e)));t.prototype=(0,s.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(95)()},function(t,e,n){n(50),t.exports=n(51)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52);e.default=r.a},function(t,e,n){"use strict";var r=n(53),o=n.n(r),i=n(62),a=n.n(i),s=n(65),c=n.n(s),u=n(37),f=n.n(u),l=n(38),p=n.n(l),d=n(39),h=n.n(d),m=n(45),y=n.n(m),v=n(46),b=n.n(v),g=n(47),E=n.n(g),O=n(48),_=n.n(O),C=n(97),S=n.n(C),T=n(98),w=n(99),M=n(100),N=n(101),x="createPortal"in E.a,P={},k=!("undefined"!=typeof window&&window.document&&window.document.createElement),A=function(t){function e(t){f()(this,e);var n=h()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));j.call(n),n.levelDom=[],n.contentDom=null,n.maskDom=null,n.handlerDom=null,n.firstEnter=t.firstEnter,n.timeout=null,n.drawerId=Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()))).toString(16);var r=void 0!==t.open?t.open:!!t.defaultOpen;return P[n.drawerId]=r,n.state={open:r},n}return y()(e,t),p()(e,[{key:"componentDidMount",value:function(){if(!k){var t=!1;window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}})),this.passive=!!t&&{passive:!1}}var e=this.getOpen();(this.props.handler||e||this.firstEnter)&&(this.getDefault(this.props),e&&(this.isOpenChange=!0),this.forceUpdate())}},{key:"componentWillReceiveProps",value:function(t){var e=this,n=t.open,r=t.placement,o=t.getContainer;if(void 0!==n&&n!==this.props.open){this.isOpenChange=!0;var i="function"==typeof o&&"function"==typeof this.props.getContainer?this.props.getContainer()===o():this.props.getContainer===o;this.container&&i||this.getDefault(t);var a=n&&!this.props.open;this.setState({open:n},function(){e.domFocus(a)})}r!==this.props.placement&&(this.contentDom=null),this.props.level!==t.level&&this.getParentAndLevelDom(t)}},{key:"componentDidUpdate",value:function(){!this.firstEnter&&this.container&&(this.forceUpdate(),this.firstEnter=!0)}},{key:"componentWillUnmount",value:function(){delete P[this.drawerId],delete this.isOpenChange,this.container&&(this.state.open&&this.setLevelDomTransform(!1,!0),document.body.style.overflow="",this.props.getContainer&&this.container.parentNode.removeChild(this.container)),this.firstEnter=!1,clearTimeout(this.timeout),this.renderComponent&&!x&&this.renderComponent({afterClose:this.removeContainer,onClose:function(){},visible:!1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.getContainer,r=e.wrapperClassName,o=this.getOpen();P[this.drawerId]=o?this.container:o;var i=this.getChildToRender(!!this.firstEnter&&o);return n?this.container&&(o||this.firstEnter)?x?E.a.createPortal(i,this.container):b.a.createElement(T.a,{parent:this,visible:!0,autoMount:!0,autoDestroy:!1,getComponent:function(){return i},getContainer:this.getContainer},function(e){var n=e.renderComponent,r=e.removeContainer;return t.renderComponent=n,t.removeContainer=r,null}):null:b.a.createElement("div",{className:r,ref:function(e){t.props.getContainer||(t.container=e)}},i)}}]),e}(b.a.PureComponent);A.propTypes={wrapperClassName:_.a.string,className:_.a.string,children:_.a.node,style:_.a.object,width:_.a.any,height:_.a.any,defaultOpen:_.a.bool,firstEnter:_.a.bool,open:_.a.bool,prefixCls:_.a.string,placement:_.a.string,level:_.a.oneOfType([_.a.string,_.a.array]),levelMove:_.a.oneOfType([_.a.number,_.a.func,_.a.array]),ease:_.a.string,duration:_.a.string,getContainer:_.a.oneOfType([_.a.string,_.a.func,_.a.object,_.a.bool]),handler:_.a.any,onChange:_.a.func,afterVisibleChange:_.a.func,onMaskClick:_.a.func,onHandleClick:_.a.func,showMask:_.a.bool,maskStyle:_.a.object,keyboard:_.a.bool},A.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:b.a.createElement("div",{className:"drawer-handle"},b.a.createElement("i",{className:"drawer-handle-icon"})),firstEnter:!1,showMask:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0};var j=function(){var t=this;this.onMaskTouchEnd=function(e){var n=t.props.onMaskClick;n&&n(e),t.onTouchEnd(e,!0)},this.onIconTouchEnd=function(e){var n=t.props.onHandleClick;n&&n(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},function(){t.domFocus(!r)})}},this.onKeyDown=function(e){if(e.keyCode===M.a.ESC){var n=t.props,r=n.onMaskClick,o=n.onHandleClick;e.stopPropagation();var i=o||r;i?i(e):t.onTouchEnd(e,!0)}},this.onWrapperTransitionEnd=function(e){if(e.target===t.contentWrapper&&"transform"===e.propertyName){t.dom.style.transition="",!t.state.open&&t.getCurrentDrawerSome()&&(document.body.style.overflowX="",t.maskDom&&(t.maskDom.style.left="",t.maskDom.style.width=""));(0,t.props.afterVisibleChange)(t.state.open)}},this.getDefault=function(e){t.getParentAndLevelDom(e),(e.getContainer||e.parent)&&(t.container=t.defaultGetContainer())},this.getCurrentDrawerSome=function(){return!Object.keys(P).some(function(t){return P[t]})},this.getContainer=function(){return t.container},this.getParentAndLevelDom=function(e){if(!k){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&&"LINK"!==e.nodeName&&e!==t.container&&t.levelDom.push(e)})}else n&&Object(N.b)(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,s=i.levelMove,c=i.duration,u=i.ease,f=i.onChange,l=i.getContainer,p=i.showMask;if(!k){var d=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(w.a)(1):0;if(t.levelDom.forEach(function(i){if(t.isOpenChange||n){i.style.transition="transform "+c+" "+u,Object(N.a)(i,N.f,t.transitionEnd);var f=e?o:0;if(s){var l=Object(N.e)(s,{target:i,open:e});f=e?l[0]:l[1]||0}var h="number"==typeof f?f+"px":f,m="left"===a||"top"===a?h:"-"+h,y="left"===a||"top"===a?"-":"+";m=p&&("left"===a||"right"===a)&&d?"calc("+m+" "+y+" "+d+"px)":m,i.style.transform=f?r+"("+m+")":"",i.style.msTransform=f?r+"("+m+")":""}}),"body"===l&&p){var h=["touchstart"],m=[document.body,t.maskDom,t.handlerDom,t.contentDom],y="width "+c+" "+u,v="transform "+c+" "+u;if(e&&"hidden"!==document.body.style.overflow){if(document.body.style.overflow="hidden",document.body.style.touchAction="none",d){switch(document.body.style.position="relative",document.body.style.width="calc(100% - "+d+"px)",t.dom.style.transition="none",a){case"right":t.dom.style.transform="translateX(-"+d+"px)",t.dom.style.msTransform="translateX(-"+d+"px)";break;case"top":case"bottom":t.dom.style.width="calc(100% - "+d+"px)",t.dom.style.transform="translateZ(0)"}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=v+","+y,t.dom.style.width="",t.dom.style.transform="",t.dom.style.msTransform=""})}m.forEach(function(e,n){e&&Object(N.a)(e,h[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}else if(t.getCurrentDrawerSome()){if(document.body.style.overflow="",document.body.style.touchAction="",(t.isOpenChange||n)&&d){document.body.style.position="",document.body.style.width="",N.g&&(document.body.style.overflowX="hidden"),t.dom.style.transition="none";var b=void 0;switch(a){case"right":t.dom.style.transform="translateX("+d+"px)",t.dom.style.msTransform="translateX("+d+"px)",t.dom.style.width="100%",y="width 0s "+u+" "+c,t.maskDom&&(t.maskDom.style.left="-"+d+"px",t.maskDom.style.width="calc(100% + "+d+"px)");break;case"top":case"bottom":t.dom.style.width="calc(100% + "+d+"px)",t.dom.style.height="100%",t.dom.style.transform="translateZ(0)",b="height 0s "+u+" "+c}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=v+","+(b?b+",":"")+y,t.dom.style.transform="",t.dom.style.msTransform="",t.dom.style.width="",t.dom.style.height=""})}m.forEach(function(e,n){e&&Object(N.d)(e,h[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}}}t.isOpenChange&&t.firstEnter&&(f(e),t.isOpenChange=!1)},this.getChildToRender=function(e){var n,r=t.props,i=(r.wrapperClassName,r.className),s=r.children,u=r.style,f=r.width,l=r.height,p=(r.defaultOpen,r.firstEnter,r.open,r.prefixCls),d=r.placement,h=(r.level,r.levelMove,r.ease,r.duration,r.getContainer,r.handler),m=(r.onChange,r.afterVisibleChange,r.onMaskClick,r.onHandleClick,r.showMask),y=r.maskStyle,v=r.keyboard,g=c()(r,["wrapperClassName","className","children","style","width","height","defaultOpen","firstEnter","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","onMaskClick","onHandleClick","showMask","maskStyle","keyboard"]),E=S()(p,(n={},a()(n,p+"-"+d,!0),a()(n,p+"-open",e),a()(n,i,!!i),a()(n,"no-mask",!m),n)),O=t.isOpenChange,_="left"===d||"right"===d,C="translate"+(_?"X":"Y"),T="left"===d||"top"===d?"-100%":"100%",w=e?"":C+"("+T+")";if(void 0===O||O){var M=t.contentDom?t.contentDom.getBoundingClientRect()[_?"width":"height"]:0,x=(_?f:l)||M;t.setLevelDomTransform(e,!1,C,x)}var P=h&&b.a.cloneElement(h,{onClick:function(e){h.props.onClick&&h.props.onClick(),t.onIconTouchEnd(e)},ref:function(e){t.handlerDom=e}});return b.a.createElement("div",o()({},g,{tabIndex:-1,className:E,style:u,ref:function(e){t.dom=e},onKeyDown:e&&v?t.onKeyDown:null,onTransitionEnd:t.onWrapperTransitionEnd}),m&&b.a.createElement("div",{className:p+"-mask",onClick:t.onMaskTouchEnd,style:y,ref:function(e){t.maskDom=e}}),b.a.createElement("div",{className:p+"-content-wrapper",style:{transform:w,msTransform:w,width:Object(N.c)(f)?f+"px":f,height:Object(N.c)(l)?l+"px":l},ref:function(e){t.contentWrapper=e}},b.a.createElement("div",{className:p+"-content",ref:function(e){t.contentDom=e},onTouchStart:e&&m?t.removeStartHandler:null,onTouchMove:e&&m?t.removeMoveHandler:null},s),P))},this.getOpen=function(){return void 0!==t.props.open?t.props.open:t.state.open},this.getTouchParentScroll=function(e,n,r,o){if(!n||n===document)return!1;if(n===e.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(o))===Math.abs(o),a=Math.max(Math.abs(r),Math.abs(o))===Math.abs(r),s=n.scrollHeight-n.clientHeight,c=n.scrollWidth-n.clientWidth,u=n.scrollTop,f=n.scrollLeft;n.scrollTop+=1,n.scrollLeft+=1;var l=n.scrollTop,p=n.scrollLeft;return n.scrollTop-=1,n.scrollLeft-=1,!((!i||s&&l-u&&(!s||!(n.scrollTop>=s&&o<0||n.scrollTop<=0&&o>0)))&&(!a||c&&p-f&&(!c||!(n.scrollLeft>=c&&r<0||n.scrollLeft<=0&&r>0))))&&t.getTouchParentScroll(e,n.parentNode,r,o)},this.domFocus=function(e){t.dom&&e&&t.dom.focus()},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.handlerDom||n===t.contentDom&&t.getTouchParentScroll(n,e.target,r,o))&&e.preventDefault()}},this.transitionEnd=function(e){Object(N.d)(e.target,N.f,t.transitionEnd),e.target.style.transition=""},this.defaultGetContainer=function(){if(k)return null;var e=document.createElement("div");return t.parent.appendChild(e),t.props.wrapperClassName&&(e.className=t.props.wrapperClassName),e}};e.a=A},function(t,e,n){"use strict";e.__esModule=!0;var r=n(54),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){t.exports={default:n(55),__esModule:!0}},function(t,e,n){n(56),t.exports=n(1).Object.assign},function(t,e,n){var r=n(5);r(r.S+r.F,"Object",{assign:n(58)})},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(2),o=n(13),i=n(23),a=n(16),s=n(24),c=n(34),u=Object.assign;t.exports=!u||n(11)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,f=1,l=i.f,p=a.f;u>f;)for(var d,h=c(arguments[f++]),m=l?o(h).concat(l(h)):o(h),y=m.length,v=0;y>v;)d=m[v++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:u},function(t,e,n){var r=n(8),o=n(60),i=n(61);t.exports=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),f=i(a,u);if(t&&n!=n){for(;u>f;)if((s=c[f++])!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(19),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(19),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){"use strict";e.__esModule=!0;var r=n(36),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){n(64);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(5);r(r.S+r.F*!n(2),"Object",{defineProperty:n(3).f})},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},function(t,e,n){t.exports={default:n(67),__esModule:!0}},function(t,e,n){n(68),n(74),t.exports=n(28).f("iterator")},function(t,e,n){"use strict";var r=n(69)(!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){var r=n(19),o=n(18);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(26),o=n(12),i=n(27),a={};n(6)(a,n(9)("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(3),o=n(10),i=n(13);t.exports=n(2)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(24),i=n(20)("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){n(75);for(var r=n(0),o=n(6),i=n(25),a=n(9)("toStringTag"),s="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<s.length;c++){var u=s[c],f=r[u],l=f&&f.prototype;l&&!l[a]&&o(l,a,u),i[u]=i.Array}},function(t,e,n){"use strict";var r=n(76),o=n(77),i=n(25),a=n(8);t.exports=n(41)(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(79),__esModule:!0}},function(t,e,n){n(80),n(85),n(86),n(87),t.exports=n(1).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(2),a=n(5),s=n(42),c=n(81).KEY,u=n(11),f=n(21),l=n(27),p=n(15),d=n(9),h=n(28),m=n(29),y=n(82),v=n(83),b=n(10),g=n(7),E=n(24),O=n(8),_=n(17),C=n(12),S=n(26),T=n(84),w=n(44),M=n(23),N=n(3),x=n(13),P=w.f,k=N.f,A=T.f,j=r.Symbol,D=r.JSON,L=D&&D.stringify,I=d("_hidden"),R=d("toPrimitive"),U={}.propertyIsEnumerable,F=f("symbol-registry"),H=f("symbols"),W=f("op-symbols"),K=Object.prototype,G="function"==typeof j&&!!M.f,V=r.QObject,B=!V||!V.prototype||!V.prototype.findChild,X=i&&u(function(){return 7!=S(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(K,e);r&&delete K[e],k(t,e,n),r&&t!==K&&k(K,e,r)}:k,Y=function(t){var e=H[t]=S(j.prototype);return e._k=t,e},q=G&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},Q=function(t,e,n){return t===K&&Q(W,e,n),b(t),e=_(e,!0),b(n),o(H,e)?(n.enumerable?(o(t,I)&&t[I][e]&&(t[I][e]=!1),n=S(n,{enumerable:C(0,!1)})):(o(t,I)||k(t,I,C(1,{})),t[I][e]=!0),X(t,e,n)):k(t,e,n)},Z=function(t,e){b(t);for(var n,r=y(e=O(e)),o=0,i=r.length;i>o;)Q(t,n=r[o++],e[n]);return t},z=function(t,e){return void 0===e?S(t):Z(S(t),e)},J=function(t){var e=U.call(this,t=_(t,!0));return!(this===K&&o(H,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(H,t)||o(this,I)&&this[I][t])||e)},$=function(t,e){if(t=O(t),e=_(e,!0),t!==K||!o(H,e)||o(W,e)){var n=P(t,e);return!n||!o(H,e)||o(t,I)&&t[I][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=A(O(t)),r=[],i=0;n.length>i;)o(H,e=n[i++])||e==I||e==c||r.push(e);return r},et=function(t){for(var e,n=t===K,r=A(n?W:O(t)),i=[],a=0;r.length>a;)!o(H,e=r[a++])||n&&!o(K,e)||i.push(H[e]);return i};G||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===K&&e.call(W,n),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),X(this,t,C(1,n))};return i&&B&&X(K,t,{configurable:!0,set:e}),Y(t)},s(j.prototype,"toString",function(){return this._k}),w.f=$,N.f=Q,n(43).f=T.f=tt,n(16).f=J,M.f=et,i&&!n(14)&&s(K,"propertyIsEnumerable",J,!0),h.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!G,{Symbol:j});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)d(nt[rt++]);for(var ot=x(d.store),it=0;ot.length>it;)m(ot[it++]);a(a.S+a.F*!G,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=j(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!G,"Object",{create:z,defineProperty:Q,defineProperties:Z,getOwnPropertyDescriptor:$,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){M.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return M.f(E(t))}}),D&&a(a.S+a.F*(!G||u(function(){var t=j();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)&&!q(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,L.apply(D,r)}}),j.prototype[R]||n(6)(j.prototype,R,j.prototype.valueOf),l(j,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(15)("meta"),o=n(7),i=n(4),a=n(3).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(11)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++s,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 u&&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(13),o=n(23),i=n(16);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),c=i.f,u=0;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},function(t,e,n){var r=n(35);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(8),o=n(43).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?s(t):o(r(t))}},function(t,e){},function(t,e,n){n(29)("asyncIterator")},function(t,e,n){n(29)("observable")},function(t,e,n){t.exports={default:n(89),__esModule:!0}},function(t,e,n){n(90),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(91).set})},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(30)(Function.call,n(44).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(93),__esModule:!0}},function(t,e,n){n(94);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(5);r(r.S,"Object",{create:n(26)})},function(t,e,n){"use strict";function r(){}function o(){}var i=n(96);o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,a){if(a!==i){var s=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 s.name="Invariant Violation",s}}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,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return 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 s in r)i.call(r,s)&&r[s]&&t.push(s)}}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(37),o=n.n(r),i=n(38),a=n.n(i),s=n(39),c=n.n(s),u=n(45),f=n.n(u),l=n(46),p=n.n(l),d=n(47),h=n.n(d),m=n(48),y=n.n(m),v=function(t){function e(){var t,n,r,i;o()(this,e);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return n=r=c()(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(s))),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,s=n.getContainer,c=n.parent;(o||c._component||a)&&(r.container||(r.container=s()),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);v.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},v.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1},e.a=v},function(t,e,n){"use strict";function r(t){if(t||void 0===o){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top=0,r.left=0,r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var i=e.offsetWidth;n.style.overflow="scroll";var a=e.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),o=i-a}return o}e.a=r;var o=void 0},function(t,e,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229};r.isTextModifyingKeyEvent=function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=r.F1&&e<=r.F12)return!1;switch(e){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},r.isCharacterKey=function(t){if(t>=r.ZERO&&t<=r.NINE)return!0;if(t>=r.NUM_ZERO&&t<=r.NUM_MULTIPLY)return!0;if(t>=r.A&&t<=r.Z)return!0;if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},e.a=r},function(t,e,n){"use strict";function r(t){return Array.isArray(t)?t:[t]}function o(t,e,n,r){t.addEventListener?t.addEventListener(e,n,r):t.attachEvent&&t.attachEvent("on"+e,n)}function i(t,e,n,r){t.removeEventListener?t.removeEventListener(e,n,r):t.attachEvent&&t.detachEvent("on"+e,n)}function a(t,e){var n=void 0;return n="function"==typeof t?t(e):t,Array.isArray(n)?2===n.length?n:[n[0],n[1]]:[n]}e.b=r,n.d(e,"g",function(){return c}),n.d(e,"f",function(){return u}),e.a=o,e.d=i,e.e=a,n.d(e,"c",function(){return f});var s={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},c=Object.keys(s).filter(function(t){if("undefined"==typeof document)return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],u=s[c],f=function(t){return!isNaN(parseFloat(t))&&isFinite(t)}}]).default});

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

import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';

@@ -503,13 +505,27 @@ import _createClass from 'babel-runtime/helpers/createClass';

var _props4 = _this4.props,
$wrapperClass = _props4.wrapperClassName,
className = _props4.className,
children = _props4.children,
style = _props4.style,
width = _props4.width,
height = _props4.height,
defaultOpen = _props4.defaultOpen,
firstEnter = _props4.firstEnter,
$open = _props4.open,
prefixCls = _props4.prefixCls,
style = _props4.style,
placement = _props4.placement,
children = _props4.children,
level = _props4.level,
levelMove = _props4.levelMove,
ease = _props4.ease,
duration = _props4.duration,
getContainer = _props4.getContainer,
handler = _props4.handler,
onChange = _props4.onChange,
afterVisibleChange = _props4.afterVisibleChange,
onMaskClick = _props4.onMaskClick,
onHandleClick = _props4.onHandleClick,
showMask = _props4.showMask,
maskStyle = _props4.maskStyle,
width = _props4.width,
height = _props4.height,
keyboard = _props4.keyboard;
keyboard = _props4.keyboard,
props = _objectWithoutProperties(_props4, ['wrapperClassName', 'className', 'children', 'style', 'width', 'height', 'defaultOpen', 'firstEnter', 'open', 'prefixCls', 'placement', 'level', 'levelMove', 'ease', 'duration', 'getContainer', 'handler', 'onChange', 'afterVisibleChange', 'onMaskClick', 'onHandleClick', 'showMask', 'maskStyle', 'keyboard']);

@@ -542,3 +558,3 @@ var wrapperClassName = classnames(prefixCls, (_classnames = {}, _defineProperty(_classnames, prefixCls + '-' + placement, true), _defineProperty(_classnames, prefixCls + '-open', open), _defineProperty(_classnames, className, !!className), _defineProperty(_classnames, 'no-mask', !showMask), _classnames));

'div',
{
_extends({}, props, {
tabIndex: -1,

@@ -552,3 +568,3 @@ className: wrapperClassName,

onTransitionEnd: _this4.onWrapperTransitionEnd
},
}),
showMask && React.createElement('div', {

@@ -555,0 +571,0 @@ className: prefixCls + '-mask',

@@ -7,2 +7,6 @@ 'use strict';

var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');

@@ -12,2 +16,6 @@

var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

@@ -547,13 +555,27 @@

var _props4 = _this4.props,
$wrapperClass = _props4.wrapperClassName,
className = _props4.className,
children = _props4.children,
style = _props4.style,
width = _props4.width,
height = _props4.height,
defaultOpen = _props4.defaultOpen,
firstEnter = _props4.firstEnter,
$open = _props4.open,
prefixCls = _props4.prefixCls,
style = _props4.style,
placement = _props4.placement,
children = _props4.children,
level = _props4.level,
levelMove = _props4.levelMove,
ease = _props4.ease,
duration = _props4.duration,
getContainer = _props4.getContainer,
handler = _props4.handler,
onChange = _props4.onChange,
afterVisibleChange = _props4.afterVisibleChange,
onMaskClick = _props4.onMaskClick,
onHandleClick = _props4.onHandleClick,
showMask = _props4.showMask,
maskStyle = _props4.maskStyle,
width = _props4.width,
height = _props4.height,
keyboard = _props4.keyboard;
keyboard = _props4.keyboard,
props = (0, _objectWithoutProperties3['default'])(_props4, ['wrapperClassName', 'className', 'children', 'style', 'width', 'height', 'defaultOpen', 'firstEnter', 'open', 'prefixCls', 'placement', 'level', 'levelMove', 'ease', 'duration', 'getContainer', 'handler', 'onChange', 'afterVisibleChange', 'onMaskClick', 'onHandleClick', 'showMask', 'maskStyle', 'keyboard']);

@@ -586,3 +608,3 @@ var wrapperClassName = (0, _classnames3['default'])(prefixCls, (_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-' + placement, true), (0, _defineProperty3['default'])(_classnames, prefixCls + '-open', open), (0, _defineProperty3['default'])(_classnames, className, !!className), (0, _defineProperty3['default'])(_classnames, 'no-mask', !showMask), _classnames));

'div',
{
(0, _extends3['default'])({}, props, {
tabIndex: -1,

@@ -596,3 +618,3 @@ className: wrapperClassName,

onTransitionEnd: _this4.onWrapperTransitionEnd
},
}),
showMask && _react2['default'].createElement('div', {

@@ -599,0 +621,0 @@ className: prefixCls + '-mask',

{
"name": "rc-drawer",
"version": "1.9.9",
"version": "1.10.0",
"description": "drawer component for react",

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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