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.7.4 to 1.7.5

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=47)}([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(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(61),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),u=n(4),s=function(t,e,n){var c,f,l,p=t&s.F,d=t&s.G,h=t&s.S,m=t&s.P,y=t&s.B,v=t&s.W,b=d?o:o[e]||(o[e]={}),g=b.prototype,w=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(c in n)(f=!p&&w&&void 0!==w[c])&&u(b,c)||(l=f?w[c]:n[c],b[c]=d&&"function"!=typeof w[c]?n[c]:y&&f?i(l,r):v&&w[c]==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={}))[c]=l,t&s.R&&g&&!g[c]&&a(g,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},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(60),i=n(23),a=n(21)("IE_PROTO"),u=function(){},s=function(){var t,e=n(31)("iframe"),r=i.length;for(e.style.display="none",n(65).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};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=s(),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:"© 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(13),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){t.exports={default:n(52),__esModule:!0}},function(t,e,n){var r=n(54);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(55),i=r(o),a=n(72),u=r(a),s="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"===s(i.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,n){"use strict";var r=n(13),o=n(9),i=n(37),a=n(5),u=n(18),s=n(59),c=n(24),f=n(66),l=n(8)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,m,y,v){s(n,e,h);var b,g,w,O=function(t){if(!p&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",_="values"==m,C=!1,E=t.prototype,S=E[l]||E["@@iterator"]||m&&E[m],T=S||O(m),M=m?_?O("entries"):T:void 0,k="Array"==e?E.entries||S:S;if(k&&(w=f(k.call(new t)))!==Object.prototype&&w.next&&(c(w,x,!0),r||"function"==typeof w[l]||a(w,l,d)),_&&S&&"values"!==S.name&&(C=!0,T=function(){return S.call(this)}),r&&!v||!p&&!C&&E[l]||a(E,l,T),u[e]=T,u[x]=d,m)if(b={values:_?T:O("values"),keys:y?T:O("keys"),entries:M},v)for(g in b)g in E||i(E,g,b[g]);else o(o.P+o.F*(p||C),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(62)(!1),a=n(21)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},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(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),u=n(4),s=n(30),c=Object.getOwnPropertyDescriptor;e.f=n(3)?c:function(t,e){if(t=i(t),e=a(e,!0),s)try{return c(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(82),i=r(o),a=n(86),u=r(a),s=n(35),c=r(s);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,c.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(89)()},function(t,e,n){n(48),t.exports=n(49)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(50);e.default=r.a},function(t,e,n){"use strict";var r=n(51),o=n.n(r),i=n(32),a=n.n(i),u=n(33),s=n.n(u),c=n(34),f=n.n(c),l=n(43),p=n.n(l),d=n(44),h=n.n(d),m=n(45),y=n.n(m),v=n(46),b=n.n(v),g=n(91),w=n.n(g),O=n(92),x=n(93),_=n(94),C="createPortal"in y.a,E={},S="undefined"==typeof window,T=function(t){function e(t){a()(this,e);var n=f()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));M.call(n),n.levelDom=[],n.contentDom=null,n.maskDom=null,n.handlerdom=null,n.mousePos=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 E[n.drawerId]=r,n.state={open:r},n}return p()(e,t),s()(e,[{key:"componentDidMount",value:function(){if(!S){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=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.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 E[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&&!C&&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();E[this.drawerId]=o?this.container:o;var i=this.getChildToRender(!!this.firstEnter&&o);return n?this.container&&(o||this.firstEnter)?C?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.container=e}},i)}}]),e}(h.a.PureComponent);T.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},onMaskClick:function(){},onHandleClick:function(){},handler:h.a.createElement("div",{className:"drawer-handle"},h.a.createElement("i",{className:"drawer-handle-icon"})),firstEnter:!1,showMask:!0,maskStyle:{},wrapperClassName:"",className:""};var M=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.onWrapperTransitionEnd=function(e){e.target===t.contentWrapper&&(t.dom.style.transition="",!t.state.open&&t.getCrrentDrawerSome()&&(document.body.style.overflowX="",t.maskDom&&(t.maskDom.style.left="",t.maskDom.style.width="")))},this.getDefault=function(e){t.getParentAndLevelDom(e),(e.getContainer||e.parent)&&(t.container=t.defaultGetContainer())},this.getCrrentDrawerSome=function(){return!Object.keys(E).some(function(t){return E[t]})},this.getContainer=function(){return t.container},this.getParentAndLevelDom=function(e){if(!S){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(_.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,u=i.levelMove,s=i.duration,c=i.ease,f=i.onChange,l=i.getContainer;if(!S&&(t.levelDom.forEach(function(i){if(t.isOpenChange||n){i.style.transition="transform "+s+" "+c,Object(_.a)(i,_.f,t.trnasitionEnd);var f=e?o:0;if(u){var l=Object(_.e)(u,{target:i,open:e});f=e?l[0]:l[1]||0}var p="number"==typeof f?f+"px":f,d="left"===a||"top"===a?p:"-"+p;i.style.transform=f?r+"("+d+")":"",i.style.msTransform=f?r+"("+d+")":""}}),"body"===l)){var p=["touchstart"],d=[document.body,t.maskDom,t.handlerdom,t.contentDom],h=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(x.a)(1):0,m="width "+s+" "+c,y="transform "+s+" "+c;if(e&&"hidden"!==document.body.style.overflow){if(document.body.style.overflow="hidden",h){switch(document.body.style.position="relative",document.body.style.width="calc(100% - "+h+"px)",t.dom.style.transition="none",a){case"right":t.dom.style.transform="translateX(-"+h+"px)",t.dom.style.msTransform="translateX(-"+h+"px)";break;case"top":case"bottom":t.dom.style.width="calc(100% - "+h+"px)",t.dom.style.transform="translateZ(0)"}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=y+","+m,t.dom.style.width="",t.dom.style.transform="",t.dom.style.msTransform=""})}d.forEach(function(e,n){e&&Object(_.a)(e,p[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}else if(t.getCrrentDrawerSome()){if(document.body.style.overflow="",(t.isOpenChange||n)&&h){document.body.style.position="",document.body.style.width="",_.g&&(document.body.style.overflowX="hidden"),t.dom.style.transition="none";var v=void 0;switch(a){case"right":t.dom.style.transform="translateX("+h+"px)",t.dom.style.msTransform="translateX("+h+"px)",t.dom.style.width="100%",m="width 0s "+c+" "+s,t.maskDom&&(t.maskDom.style.left="-"+h+"px",t.maskDom.style.width="calc(100% + "+h+"px)");break;case"top":case"bottom":t.dom.style.width="calc(100% + "+h+"px)",t.dom.style.height="100%",t.dom.style.transform="translateZ(0)",v="height 0s "+c+" "+s}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=y+","+(v?v+",":"")+m,t.dom.style.transform="",t.dom.style.msTransform="",t.dom.style.width="",t.dom.style.height=""})}d.forEach(function(e,n){e&&Object(_.d)(e,p[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}}f&&t.isOpenChange&&t.firstEnter&&(f(e),t.isOpenChange=!1)},this.getChildToRender=function(e){var n,r=t.props,i=r.className,a=r.prefixCls,u=r.style,s=r.placement,c=r.children,f=r.handler,l=r.showMask,p=r.maskStyle,d=r.width,m=r.height,y=w()(a,(n={},o()(n,a+"-"+s,!0),o()(n,a+"-open",e),o()(n,i,!!i),n)),v=t.isOpenChange,b="left"===s||"right"===s,g="translate"+(b?"X":"Y"),O="left"===s||"top"===s?"-100%":"100%",x=e?"":g+"("+O+")";if(void 0===v||v){var C=t.contentDom?t.contentDom.getBoundingClientRect()[b?"width":"height"]:0,E=(b?d:m)||C;t.setLevelDomTransform(e,!1,g,E)}var S=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",{className:y,style:u,ref:function(e){t.dom=e},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:x,msTransform:x,width:Object(_.c)(d)?d+"px":d,height:Object(_.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?t.removeStartHandler:null,onTouchMove:e?t.removeMoveHandler:null},c),S))},this.getOpen=function(){return void 0!==t.props.open?t.props.open:t.state.open},this.getTouchParentScroll=function(e,n,r,o){var i=n.getBoundingClientRect();return!!n&&(((n.scrollTop+n.offsetHeight+n.offsetTop>=n.scrollHeight+i.top&&o<0||n.scrollTop<=0&&o>0)&&Math.max(Math.abs(r),Math.abs(o))===Math.abs(o)||(n.scrollLeft+n.offsetWidth+n.offsetLeft>=n.scrollWidth+i.left&&r<0||n.scrollLeft<=0&&r>0)&&Math.max(Math.abs(r),Math.abs(o))===Math.abs(r))&&(e===n||t.getTouchParentScroll(e,n.parentNode,r,o)))},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.trnasitionEnd=function(e){Object(_.d)(e.target,_.f,t.trnasitionEnd),e.target.style.transition=""},this.defaultGetContainer=function(){if(S)return null;var e=document.createElement("div");return t.parent.appendChild(e),t.props.wrapperClassName&&(e.className=t.props.wrapperClassName),e}};T.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,onMaskClick:b.a.func,onHandleClick:b.a.func,showMask:b.a.bool,maskStyle:b.a.object},e.a=T},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(53);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(56),__esModule:!0}},function(t,e,n){n(57),n(68),t.exports=n(25).f("iterator")},function(t,e,n){"use strict";var r=n(58)(!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,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+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),u=a.length,s=0;u>s;)r.f(t,n=a[s++],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(63),i=n(64);t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),f=i(a,c);if(t&&n!=n){for(;c>f;)if((u=s[f++])!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[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(67),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(17);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(69);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(","),s=0;s<u.length;s++){var c=u[s],f=r[c],l=f&&f.prototype;l&&!l[a]&&o(l,a,c),i[c]=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),u=n(37),s=n(75).KEY,c=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),g=n(6),w=n(7),O=n(15),x=n(12),_=n(19),C=n(78),E=n(42),S=n(2),T=n(20),M=E.f,k=S.f,j=C.f,P=r.Symbol,D=r.JSON,L=D&&D.stringify,N=d("_hidden"),A=d("toPrimitive"),R={}.propertyIsEnumerable,I=f("symbol-registry"),H=f("symbols"),W=f("op-symbols"),F=Object.prototype,q="function"==typeof P,G=r.QObject,U=!G||!G.prototype||!G.prototype.findChild,X=i&&c(function(){return 7!=_(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=M(F,e);r&&delete F[e],k(t,e,n),r&&t!==F&&k(F,e,r)}:k,V=function(t){var e=H[t]=_(P.prototype);return e._k=t,e},B=q&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},Y=function(t,e,n){return t===F&&Y(W,e,n),b(t),e=O(e,!0),b(n),o(H,e)?(n.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),n=_(n,{enumerable:x(0,!1)})):(o(t,N)||k(t,N,x(1,{})),t[N][e]=!0),X(t,e,n)):k(t,e,n)},z=function(t,e){b(t);for(var n,r=y(e=w(e)),o=0,i=r.length;i>o;)Y(t,n=r[o++],e[n]);return t},J=function(t,e){return void 0===e?_(t):z(_(t),e)},K=function(t){var e=R.call(this,t=O(t,!0));return!(this===F&&o(H,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(H,t)||o(this,N)&&this[N][t])||e)},Z=function(t,e){if(t=w(t),e=O(e,!0),t!==F||!o(H,e)||o(W,e)){var n=M(t,e);return!n||!o(H,e)||o(t,N)&&t[N][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=j(w(t)),r=[],i=0;n.length>i;)o(H,e=n[i++])||e==N||e==s||r.push(e);return r},$=function(t){for(var e,n=t===F,r=j(n?W:w(t)),i=[],a=0;r.length>a;)!o(H,e=r[a++])||n&&!o(F,e)||i.push(H[e]);return i};q||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===F&&e.call(W,n),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),X(this,t,x(1,n))};return i&&U&&X(F,t,{configurable:!0,set:e}),V(t)},u(P.prototype,"toString",function(){return this._k}),E.f=Z,S.f=Y,n(41).f=C.f=Q,n(27).f=K,n(40).f=$,i&&!n(13)&&u(F,"propertyIsEnumerable",K,!0),h.f=function(t){return V(d(t))}),a(a.G+a.W+a.F*!q,{Symbol:P});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;)m(nt[rt++]);a(a.S+a.F*!q,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=P(t)},keyFor:function(t){if(!B(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:J,defineProperty:Y,defineProperties:z,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),D&&a(a.S+a.F*(!q||c(function(){var t=P();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)&&!B(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!B(e))return e}),r[1]=e,L.apply(D,r)}}),P.prototype[A]||n(5)(P.prototype,A,P.prototype.valueOf),l(P,"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,s=Object.isExtensible||function(){return!0},c=!n(11)(function(){return s(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(!s(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[r].w},d=function(t){return c&&h.NEED&&s(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(40),i=n(27);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),s=i.f,c=0;u.length>c;)s.call(t,a=u[c++])&&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(41).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(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(42).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){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(){}var o=n(90);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(32),o=n.n(r),i=n(33),a=n.n(i),u=n(34),s=n.n(u),c=n(43),f=n.n(c),l=n(44),p=n.n(l),d=n(45),h=n.n(d),m=n(46),y=n.n(m),v=function(t){function e(){var t,n,r,i;o()(this,e);for(var a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=r=s()(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,s=n.parent;(o||s._component||a)&&(r.container||(r.container=u()),h.a.unstable_renderSubtreeIntoContainer(s,i(t),r.container,function(){e&&e.call(this)}))},i=n,s()(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";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 s}),n.d(e,"f",function(){return c}),e.a=o,e.d=i,e.e=a,n.d(e,"c",function(){return f});var u={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},s=Object.keys(u).filter(function(t){if("undefined"==typeof document)return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],c=u[s],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=47)}([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(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(61),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),u=n(4),s=function(t,e,n){var c,f,l,p=t&s.F,d=t&s.G,h=t&s.S,m=t&s.P,y=t&s.B,v=t&s.W,b=d?o:o[e]||(o[e]={}),g=b.prototype,w=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(c in n)(f=!p&&w&&void 0!==w[c])&&u(b,c)||(l=f?w[c]:n[c],b[c]=d&&"function"!=typeof w[c]?n[c]:y&&f?i(l,r):v&&w[c]==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={}))[c]=l,t&s.R&&g&&!g[c]&&a(g,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},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(60),i=n(23),a=n(21)("IE_PROTO"),u=function(){},s=function(){var t,e=n(31)("iframe"),r=i.length;for(e.style.display="none",n(65).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};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=s(),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:"© 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(13),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){t.exports={default:n(52),__esModule:!0}},function(t,e,n){var r=n(54);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(55),i=r(o),a=n(72),u=r(a),s="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"===s(i.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,n){"use strict";var r=n(13),o=n(9),i=n(37),a=n(5),u=n(18),s=n(59),c=n(24),f=n(66),l=n(8)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,m,y,v){s(n,e,h);var b,g,w,O=function(t){if(!p&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",_="values"==m,C=!1,E=t.prototype,S=E[l]||E["@@iterator"]||m&&E[m],T=S||O(m),M=m?_?O("entries"):T:void 0,k="Array"==e?E.entries||S:S;if(k&&(w=f(k.call(new t)))!==Object.prototype&&w.next&&(c(w,x,!0),r||"function"==typeof w[l]||a(w,l,d)),_&&S&&"values"!==S.name&&(C=!0,T=function(){return S.call(this)}),r&&!v||!p&&!C&&E[l]||a(E,l,T),u[e]=T,u[x]=d,m)if(b={values:_?T:O("values"),keys:y?T:O("keys"),entries:M},v)for(g in b)g in E||i(E,g,b[g]);else o(o.P+o.F*(p||C),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(62)(!1),a=n(21)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},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(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),u=n(4),s=n(30),c=Object.getOwnPropertyDescriptor;e.f=n(3)?c:function(t,e){if(t=i(t),e=a(e,!0),s)try{return c(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(82),i=r(o),a=n(86),u=r(a),s=n(35),c=r(s);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,c.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(89)()},function(t,e,n){n(48),t.exports=n(49)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(50);e.default=r.a},function(t,e,n){"use strict";var r=n(51),o=n.n(r),i=n(32),a=n.n(i),u=n(33),s=n.n(u),c=n(34),f=n.n(c),l=n(43),p=n.n(l),d=n(44),h=n.n(d),m=n(45),y=n.n(m),v=n(46),b=n.n(v),g=n(91),w=n.n(g),O=n(92),x=n(93),_=n(94),C="createPortal"in y.a,E={},S=!("undefined"!=typeof window&&window.document&&window.document.createElement),T=function(t){function e(t){a()(this,e);var n=f()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));M.call(n),n.levelDom=[],n.contentDom=null,n.maskDom=null,n.handlerdom=null,n.mousePos=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 E[n.drawerId]=r,n.state={open:r},n}return p()(e,t),s()(e,[{key:"componentDidMount",value:function(){if(!S){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=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.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 E[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&&!C&&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();E[this.drawerId]=o?this.container:o;var i=this.getChildToRender(!!this.firstEnter&&o);return n?this.container&&(o||this.firstEnter)?C?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.container=e}},i)}}]),e}(h.a.PureComponent);T.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},onMaskClick:function(){},onHandleClick:function(){},handler:h.a.createElement("div",{className:"drawer-handle"},h.a.createElement("i",{className:"drawer-handle-icon"})),firstEnter:!1,showMask:!0,maskStyle:{},wrapperClassName:"",className:""};var M=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.onWrapperTransitionEnd=function(e){e.target===t.contentWrapper&&(t.dom.style.transition="",!t.state.open&&t.getCrrentDrawerSome()&&(document.body.style.overflowX="",t.maskDom&&(t.maskDom.style.left="",t.maskDom.style.width="")))},this.getDefault=function(e){t.getParentAndLevelDom(e),(e.getContainer||e.parent)&&(t.container=t.defaultGetContainer())},this.getCrrentDrawerSome=function(){return!Object.keys(E).some(function(t){return E[t]})},this.getContainer=function(){return t.container},this.getParentAndLevelDom=function(e){if(!S){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(_.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,u=i.levelMove,s=i.duration,c=i.ease,f=i.onChange,l=i.getContainer;if(!S&&(t.levelDom.forEach(function(i){if(t.isOpenChange||n){i.style.transition="transform "+s+" "+c,Object(_.a)(i,_.f,t.trnasitionEnd);var f=e?o:0;if(u){var l=Object(_.e)(u,{target:i,open:e});f=e?l[0]:l[1]||0}var p="number"==typeof f?f+"px":f,d="left"===a||"top"===a?p:"-"+p;i.style.transform=f?r+"("+d+")":"",i.style.msTransform=f?r+"("+d+")":""}}),"body"===l)){var p=["touchstart"],d=[document.body,t.maskDom,t.handlerdom,t.contentDom],h=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(x.a)(1):0,m="width "+s+" "+c,y="transform "+s+" "+c;if(e&&"hidden"!==document.body.style.overflow){if(document.body.style.overflow="hidden",h){switch(document.body.style.position="relative",document.body.style.width="calc(100% - "+h+"px)",t.dom.style.transition="none",a){case"right":t.dom.style.transform="translateX(-"+h+"px)",t.dom.style.msTransform="translateX(-"+h+"px)";break;case"top":case"bottom":t.dom.style.width="calc(100% - "+h+"px)",t.dom.style.transform="translateZ(0)"}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=y+","+m,t.dom.style.width="",t.dom.style.transform="",t.dom.style.msTransform=""})}d.forEach(function(e,n){e&&Object(_.a)(e,p[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}else if(t.getCrrentDrawerSome()){if(document.body.style.overflow="",(t.isOpenChange||n)&&h){document.body.style.position="",document.body.style.width="",_.g&&(document.body.style.overflowX="hidden"),t.dom.style.transition="none";var v=void 0;switch(a){case"right":t.dom.style.transform="translateX("+h+"px)",t.dom.style.msTransform="translateX("+h+"px)",t.dom.style.width="100%",m="width 0s "+c+" "+s,t.maskDom&&(t.maskDom.style.left="-"+h+"px",t.maskDom.style.width="calc(100% + "+h+"px)");break;case"top":case"bottom":t.dom.style.width="calc(100% + "+h+"px)",t.dom.style.height="100%",t.dom.style.transform="translateZ(0)",v="height 0s "+c+" "+s}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=y+","+(v?v+",":"")+m,t.dom.style.transform="",t.dom.style.msTransform="",t.dom.style.width="",t.dom.style.height=""})}d.forEach(function(e,n){e&&Object(_.d)(e,p[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}}f&&t.isOpenChange&&t.firstEnter&&(f(e),t.isOpenChange=!1)},this.getChildToRender=function(e){var n,r=t.props,i=r.className,a=r.prefixCls,u=r.style,s=r.placement,c=r.children,f=r.handler,l=r.showMask,p=r.maskStyle,d=r.width,m=r.height,y=w()(a,(n={},o()(n,a+"-"+s,!0),o()(n,a+"-open",e),o()(n,i,!!i),n)),v=t.isOpenChange,b="left"===s||"right"===s,g="translate"+(b?"X":"Y"),O="left"===s||"top"===s?"-100%":"100%",x=e?"":g+"("+O+")";if(void 0===v||v){var C=t.contentDom?t.contentDom.getBoundingClientRect()[b?"width":"height"]:0,E=(b?d:m)||C;t.setLevelDomTransform(e,!1,g,E)}var S=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",{className:y,style:u,ref:function(e){t.dom=e},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:x,msTransform:x,width:Object(_.c)(d)?d+"px":d,height:Object(_.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?t.removeStartHandler:null,onTouchMove:e?t.removeMoveHandler:null},c),S))},this.getOpen=function(){return void 0!==t.props.open?t.props.open:t.state.open},this.getTouchParentScroll=function(e,n,r,o){var i=n.offsetParent,a=i!==e&&i?i.parentNode.offsetParent:null,u=Math.max(Math.abs(r),Math.abs(o))===Math.abs(o),s=Math.max(Math.abs(r),Math.abs(o))===Math.abs(r);return!!n&&(i&&((i.scrollTop+i.offsetHeight+i.offsetTop>=i.scrollHeight&&o<0||i.scrollTop<=0&&o>0)&&u||(i.scrollLeft+i.offsetWidth+i.offsetLeft>=i.scrollWidth&&r<0||i.scrollLeft<=0&&r>0)&&s)||a&&(a.scrollLeft&&!i.scrollLeft||a.scrollTop&&!i.scrollTop)?e===i||t.getTouchParentScroll(e,i.parentNode,r,o):(n.offsetWidth===n.scrollWidth||n.offsetHeight===n.scrollHeight)&&(e===n||t.getTouchParentScroll(e,n.parentNode,r,o)))},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.trnasitionEnd=function(e){Object(_.d)(e.target,_.f,t.trnasitionEnd),e.target.style.transition=""},this.defaultGetContainer=function(){if(S)return null;var e=document.createElement("div");return t.parent.appendChild(e),t.props.wrapperClassName&&(e.className=t.props.wrapperClassName),e}};T.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,onMaskClick:b.a.func,onHandleClick:b.a.func,showMask:b.a.bool,maskStyle:b.a.object},e.a=T},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(53);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(56),__esModule:!0}},function(t,e,n){n(57),n(68),t.exports=n(25).f("iterator")},function(t,e,n){"use strict";var r=n(58)(!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,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+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),u=a.length,s=0;u>s;)r.f(t,n=a[s++],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(63),i=n(64);t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),f=i(a,c);if(t&&n!=n){for(;c>f;)if((u=s[f++])!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[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(67),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(17);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(69);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(","),s=0;s<u.length;s++){var c=u[s],f=r[c],l=f&&f.prototype;l&&!l[a]&&o(l,a,c),i[c]=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),u=n(37),s=n(75).KEY,c=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),g=n(6),w=n(7),O=n(15),x=n(12),_=n(19),C=n(78),E=n(42),S=n(2),T=n(20),M=E.f,k=S.f,j=C.f,P=r.Symbol,D=r.JSON,L=D&&D.stringify,N=d("_hidden"),A=d("toPrimitive"),R={}.propertyIsEnumerable,I=f("symbol-registry"),H=f("symbols"),W=f("op-symbols"),F=Object.prototype,q="function"==typeof P,G=r.QObject,U=!G||!G.prototype||!G.prototype.findChild,X=i&&c(function(){return 7!=_(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=M(F,e);r&&delete F[e],k(t,e,n),r&&t!==F&&k(F,e,r)}:k,V=function(t){var e=H[t]=_(P.prototype);return e._k=t,e},Y=q&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},B=function(t,e,n){return t===F&&B(W,e,n),b(t),e=O(e,!0),b(n),o(H,e)?(n.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),n=_(n,{enumerable:x(0,!1)})):(o(t,N)||k(t,N,x(1,{})),t[N][e]=!0),X(t,e,n)):k(t,e,n)},z=function(t,e){b(t);for(var n,r=y(e=w(e)),o=0,i=r.length;i>o;)B(t,n=r[o++],e[n]);return t},J=function(t,e){return void 0===e?_(t):z(_(t),e)},K=function(t){var e=R.call(this,t=O(t,!0));return!(this===F&&o(H,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(H,t)||o(this,N)&&this[N][t])||e)},Z=function(t,e){if(t=w(t),e=O(e,!0),t!==F||!o(H,e)||o(W,e)){var n=M(t,e);return!n||!o(H,e)||o(t,N)&&t[N][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=j(w(t)),r=[],i=0;n.length>i;)o(H,e=n[i++])||e==N||e==s||r.push(e);return r},$=function(t){for(var e,n=t===F,r=j(n?W:w(t)),i=[],a=0;r.length>a;)!o(H,e=r[a++])||n&&!o(F,e)||i.push(H[e]);return i};q||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===F&&e.call(W,n),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),X(this,t,x(1,n))};return i&&U&&X(F,t,{configurable:!0,set:e}),V(t)},u(P.prototype,"toString",function(){return this._k}),E.f=Z,S.f=B,n(41).f=C.f=Q,n(27).f=K,n(40).f=$,i&&!n(13)&&u(F,"propertyIsEnumerable",K,!0),h.f=function(t){return V(d(t))}),a(a.G+a.W+a.F*!q,{Symbol:P});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;)m(nt[rt++]);a(a.S+a.F*!q,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=P(t)},keyFor:function(t){if(!Y(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:J,defineProperty:B,defineProperties:z,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),D&&a(a.S+a.F*(!q||c(function(){var t=P();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)&&!Y(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Y(e))return e}),r[1]=e,L.apply(D,r)}}),P.prototype[A]||n(5)(P.prototype,A,P.prototype.valueOf),l(P,"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,s=Object.isExtensible||function(){return!0},c=!n(11)(function(){return s(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(!s(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[r].w},d=function(t){return c&&h.NEED&&s(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(40),i=n(27);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),s=i.f,c=0;u.length>c;)s.call(t,a=u[c++])&&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(41).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(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(42).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){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(){}var o=n(90);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(32),o=n.n(r),i=n(33),a=n.n(i),u=n(34),s=n.n(u),c=n(43),f=n.n(c),l=n(44),p=n.n(l),d=n(45),h=n.n(d),m=n(46),y=n.n(m),v=function(t){function e(){var t,n,r,i;o()(this,e);for(var a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=r=s()(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,s=n.parent;(o||s._component||a)&&(r.container||(r.container=u()),h.a.unstable_renderSubtreeIntoContainer(s,i(t),r.container,function(){e&&e.call(this)}))},i=n,s()(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";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 s}),n.d(e,"f",function(){return c}),e.a=o,e.d=i,e.e=a,n.d(e,"c",function(){return f});var u={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},s=Object.keys(u).filter(function(t){if("undefined"==typeof document)return!1;var e=document.getElementsByTagName("html")[0];return t in(e?e.style:{})})[0],c=u[s],f=function(t){return!isNaN(parseFloat(t))&&isFinite(t)}}]).default});

@@ -17,3 +17,3 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty';

var currentDrawer = {};
var windowIsUndefined = typeof window === 'undefined';
var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);

@@ -521,11 +521,21 @@ var Drawer = function (_React$PureComponent) {

this.getTouchParentScroll = function (root, currentTarget, differX, differY) {
var offsetParentDom = currentTarget.offsetParent;
/**
* 增加 rect。
* 当父级 dom 的 overflow 未开启滚动时,scrollLeft 或 scrollTop 为 0, 而 scrollWidth 增加了,
* 父级是跟随子级的 rect, 直到父级设定了滚动.
*/
var rect = currentTarget.getBoundingClientRect();
* @param parentDom
* 设定了 position 的情况, offsetParent 将不能定位到滚动元素
* 增加判断 parentNode 的 offsetParent 是否有滚动
*/
var parentDom = offsetParentDom === root || !offsetParentDom ? null : offsetParentDom.parentNode.offsetParent;
var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY);
var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX);
if (!currentTarget) {
return false;
} else if ((currentTarget.scrollTop + currentTarget.offsetHeight + currentTarget.offsetTop >= currentTarget.scrollHeight + rect.top && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0) && Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY) || (currentTarget.scrollLeft + currentTarget.offsetWidth + currentTarget.offsetLeft >= currentTarget.scrollWidth + rect.left && differX < 0 || currentTarget.scrollLeft <= 0 && differX > 0) && Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX)) {
} else if (offsetParentDom && (( // 竖向滚动锁定。
offsetParentDom.scrollTop + offsetParentDom.offsetHeight + offsetParentDom.offsetTop >= offsetParentDom.scrollHeight && differY < 0 || offsetParentDom.scrollTop <= 0 && differY > 0) && isY || ( // 横向滚动锁定。
offsetParentDom.scrollLeft + offsetParentDom.offsetWidth + offsetParentDom.offsetLeft >= offsetParentDom.scrollWidth && differX < 0 || offsetParentDom.scrollLeft <= 0 && differX > 0) && isX) || parentDom && ( // position 的下,判断 parentNode 的 offsetParent 是否有滚动
parentDom.scrollLeft && !offsetParentDom.scrollLeft || parentDom.scrollTop && !offsetParentDom.scrollTop)) {
return root === offsetParentDom || _this3.getTouchParentScroll(root, offsetParentDom.parentNode, differX, differY);
} else if (
// 判断小于滚动时,往上扒 dom 节点。
currentTarget.offsetWidth === currentTarget.scrollWidth || currentTarget.offsetHeight === currentTarget.scrollHeight) {
return root === currentTarget || _this3.getTouchParentScroll(root, currentTarget.parentNode, differX, differY);

@@ -532,0 +542,0 @@ }

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

var currentDrawer = {};
var windowIsUndefined = typeof window === 'undefined';
var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);

@@ -561,11 +561,21 @@ var Drawer = function (_React$PureComponent) {

this.getTouchParentScroll = function (root, currentTarget, differX, differY) {
var offsetParentDom = currentTarget.offsetParent;
/**
* 增加 rect。
* 当父级 dom 的 overflow 未开启滚动时,scrollLeft 或 scrollTop 为 0, 而 scrollWidth 增加了,
* 父级是跟随子级的 rect, 直到父级设定了滚动.
*/
var rect = currentTarget.getBoundingClientRect();
* @param parentDom
* 设定了 position 的情况, offsetParent 将不能定位到滚动元素
* 增加判断 parentNode 的 offsetParent 是否有滚动
*/
var parentDom = offsetParentDom === root || !offsetParentDom ? null : offsetParentDom.parentNode.offsetParent;
var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY);
var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX);
if (!currentTarget) {
return false;
} else if ((currentTarget.scrollTop + currentTarget.offsetHeight + currentTarget.offsetTop >= currentTarget.scrollHeight + rect.top && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0) && Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY) || (currentTarget.scrollLeft + currentTarget.offsetWidth + currentTarget.offsetLeft >= currentTarget.scrollWidth + rect.left && differX < 0 || currentTarget.scrollLeft <= 0 && differX > 0) && Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX)) {
} else if (offsetParentDom && (( // 竖向滚动锁定。
offsetParentDom.scrollTop + offsetParentDom.offsetHeight + offsetParentDom.offsetTop >= offsetParentDom.scrollHeight && differY < 0 || offsetParentDom.scrollTop <= 0 && differY > 0) && isY || ( // 横向滚动锁定。
offsetParentDom.scrollLeft + offsetParentDom.offsetWidth + offsetParentDom.offsetLeft >= offsetParentDom.scrollWidth && differX < 0 || offsetParentDom.scrollLeft <= 0 && differX > 0) && isX) || parentDom && ( // position 的下,判断 parentNode 的 offsetParent 是否有滚动
parentDom.scrollLeft && !offsetParentDom.scrollLeft || parentDom.scrollTop && !offsetParentDom.scrollTop)) {
return root === offsetParentDom || _this3.getTouchParentScroll(root, offsetParentDom.parentNode, differX, differY);
} else if (
// 判断小于滚动时,往上扒 dom 节点。
currentTarget.offsetWidth === currentTarget.scrollWidth || currentTarget.offsetHeight === currentTarget.scrollHeight) {
return root === currentTarget || _this3.getTouchParentScroll(root, currentTarget.parentNode, differX, differY);

@@ -572,0 +582,0 @@ }

{
"name": "rc-drawer",
"version": "1.7.4",
"version": "1.7.5",
"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