rc-drawer
Advanced tools
Comparing version 1.5.8 to 1.5.9
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports["rc-drawer"]=e(require("react"),require("react-dom")):t["rc-drawer"]=e(t.React,t.ReactDOM)}("undefined"!=typeof self?self:this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=45)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(10),o=n(33),i=n(17),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(2),o=n(13);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(56),o=n(16);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(22)("wks"),o=n(14),i=n(0).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(0),o=n(1),i=n(32),a=n(5),u=n(4),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,v=t&s.B,y=t&s.W,b=d?o:o[e]||(o[e]={}),g=b.prototype,x=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(c in n)(f=!p&&x&&void 0!==x[c])&&u(b,c)||(l=f?x[c]:n[c],b[c]=d&&"function"!=typeof x[c]?n[c]:v&&f?i(l,r):y&&x[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=!0},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports={}},function(t,e,n){var r=n(10),o=n(55),i=n(23),a=n(21)("IE_PROTO"),u=function(){},s=function(){var t,e=n(34)("iframe"),r=i.length;for(e.style.display="none",n(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),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(36),o=n(23);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(22)("keys"),o=n(14);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(11)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).f,o=n(4),i=n(8)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(8)},function(t,e,n){var r=n(0),o=n(1),i=n(11),a=n(25),u=n(2).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(30),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(49),i=r(o),a=n(67),u=r(a),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(11),o=n(9),i=n(35),a=n(5),u=n(18),s=n(54),c=n(24),f=n(61),l=n(8)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,m,v,y){s(n,e,h);var b,g,x,w=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)}},O=e+" Iterator",C="values"==m,_=!1,E=t.prototype,S=E[l]||E["@@iterator"]||m&&E[m],T=S||w(m),M=m?C?w("entries"):T:void 0,k="Array"==e?E.entries||S:S;if(k&&(x=f(k.call(new t)))!==Object.prototype&&x.next&&(c(x,O,!0),r||"function"==typeof x[l]||a(x,l,d)),C&&S&&"values"!==S.name&&(_=!0,T=function(){return S.call(this)}),r&&!y||!p&&!_&&E[l]||a(E,l,T),u[e]=T,u[O]=d,m)if(b={values:C?T:w("values"),keys:v?T:w("keys"),entries:M},y)for(g in b)g in E||i(E,g,b[g]);else o(o.P+o.F*(p||_),e,b);return b}},function(t,e,n){var r=n(53);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){t.exports=!n(3)&&!n(12)(function(){return 7!=Object.defineProperty(n(34)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(6),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){t.exports=n(5)},function(t,e,n){var r=n(4),o=n(7),i=n(57)(!1),a=n(21)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),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(36),o=n(23).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(27),o=n(13),i=n(7),a=n(17),u=n(4),s=n(33),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(77),i=r(o),a=n(81),u=r(a),s=n(30),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(84)()},function(t,e,n){n(46),t.exports=n(47)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(48);e.default=r.a},function(t,e,n){"use strict";var r=n(28),o=n.n(r),i=n(29),a=n.n(i),u=n(41),s=n.n(u),c=n(42),f=n.n(c),l=n(43),p=n.n(l),d=n(44),h=n.n(d),m=n(86),v=n.n(m),y=n(87),b=n(92),g=n(93),x="createPortal"in p.a,w={},O="undefined"==typeof window,C=function(t){function e(n){o()(this,e);var r=a()(this,t.call(this,n));_.call(r),r.levelDom=[],r.contextDom=null,r.maskDom=null,r.handlerdom=null,r.mousePos=null,r.firstEnter=n.firstEnter,r.timeout=null,r.drawerId=Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()))).toString(16),(n.onIconClick||n.parent||n.iconChild||n.width||n.handleChild)&&console.warn("rc-drawer-menu API has been changed, please look at the releases, https://github.com/react-component/drawer-menu/releases");var i=void 0!==n.open?n.open:!!n.defaultOpen;return w[r.drawerId]=i,r.state={open:i},r}return s()(e,t),e.prototype.componentDidMount=function(){if(!O){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())},e.prototype.componentWillReceiveProps=function(t){var e=t.open,n=t.placement;void 0!==e&&e!==this.props.open&&(this.isOpenChange=!0,this.container||this.getDefault(t),this.setState({open:e})),n!==this.props.placement&&(this.contextDom=null),this.props.level!==t.level&&this.getParentAndLevelDom(t)},e.prototype.componentDidUpdate=function(){!this.firstEnter&&this.container&&(this.forceUpdate(),this.firstEnter=!0)},e.prototype.componentWillUnmount=function(){delete w[this.drawerId],delete this.isOpenChange,this.container&&(this.setLevelDomTransform(!1,!0),document.body.style.overflow="",this.props.getContainer&&this.container.parentNode.removeChild(this.container)),this.firstEnter=!1,clearTimeout(this.timeout),x||this.renderComponent({afterClose:this.removeContainer,onClose:function(){},visible:!1})},e.prototype.render=function(){var t=this,e=this.props,n=e.getContainer,r=e.wrapperClassName,o=this.getOpen();w[this.drawerId]=o?this.container:o;var i=this.getChildToRender(!!this.firstEnter&&o);return n?this.container&&(o||this.firstEnter)?x?p.a.createPortal(i,this.container):f.a.createElement(y.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:f.a.createElement("div",{className:r,ref:function(e){t.container=e}},i)},e}(f.a.PureComponent);C.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:f.a.createElement("div",{className:"drawer-handle"},f.a.createElement("i",{className:"drawer-handle-icon"})),firstEnter:!1,showMask:!0,maskStyle:{},wrapperClassName:"",className:""};var _=function(){var t=this;this.onMaskTouchEnd=function(e){t.props.onMaskClick(e),t.onTouchEnd(e,!0)},this.onIconTouchEnd=function(e){t.props.onHandleClick(e),t.onTouchEnd(e)},this.onTouchEnd=function(e,n){if(void 0===t.props.open){var r=n||t.state.open;t.isOpenChange=!0,t.setState({open:!r})}},this.onWrapperTransitionEnd=function(){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(w).some(function(t){return w[t]})},this.getContainer=function(){return t.container},this.getParentAndLevelDom=function(e){if(!O){var n=e.level,r=e.getContainer;if(t.levelDom=[],r){if("string"==typeof r){var o=document.querySelectorAll(r)[0];t.parent=o}"function"==typeof r&&(t.parent=r()),"object"==typeof r&&r instanceof window.HTMLElement&&(t.parent=r)}if(!r&&t.container&&(t.parent=t.container.parentNode),"all"===n){Array.prototype.slice.call(t.parent.children).forEach(function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&e!==t.container&&t.levelDom.push(e)})}else n&&Object(g.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;if(!O){t.levelDom.forEach(function(i){if(t.isOpenChange||n){i.style.transition="transform "+s+" "+c,Object(g.a)(i,g.e,t.trnasitionEnd);var f=e?o:0;if(u){var l=Object(g.d)(u,{target:i,open:e});f=e?l[0]:l[1]||0}var p="left"===a||"top"===a?f:-f;i.style.transform=p?r+"("+p+"px)":""}});var l=["touchstart"],p=[document.body,t.maskDom,t.handlerdom,t.contextDom],d=Object(b.a)(1),h="width "+s+" "+c,m="transform "+s+" "+c;if(e&&"hidden"!==document.body.style.overflow){if(document.body.style.overflow="hidden",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)";break;case"top":case"bottom":t.dom.style.width="calc(100% - "+d+"px)"}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=m+","+h,t.dom.style.width="",t.dom.style.transform=""})}document.body.addEventListener&&p.forEach(function(e,n){e&&e.addEventListener(l[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}else if(t.getCrrentDrawerSome()){if(document.body.style.overflow="",(t.isOpenChange||n)&&d){switch(document.body.style.position="",document.body.style.width="",document.body.style.overflowX="hidden",t.dom.style.transition="none",a){case"right":t.dom.style.transform="translateX("+d+"px)",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)"}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=m+","+h,t.dom.style.transform="",t.dom.style.width=""})}document.body.removeEventListener&&p.forEach(function(e,n){e&&e.removeEventListener(l[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,o=r.className,i=r.prefixCls,a=r.style,u=r.placement,s=r.children,c=r.handler,l=r.showMask,p=r.maskStyle,d=v()(i,(n={},n[i+"-"+u]=!0,n[i+"-open"]=e,n[o]=!!o,n)),h=t.contextDom?t.contextDom.getBoundingClientRect()["left"===u||"right"===u?"width":"height"]:0,m="translate"+("left"===u||"right"===u?"X":"Y"),y=t.contextDom?h+"px":"100%",b="left"===u||"top"===u?"-"+y:y,g=e?"":m+"("+b+")";(void 0===t.isOpenChange||t.isOpenChange)&&t.setLevelDomTransform(e,!1,m,h);var x=c&&f.a.cloneElement(c,{onClick:function(e){c.props.onClick&&c.props.onClick(),t.onIconTouchEnd(e)},ref:function(e){t.handlerdom=e}});return f.a.createElement("div",{className:d,style:a,ref:function(e){t.dom=e},onTransitionEnd:t.onWrapperTransitionEnd},l&&f.a.createElement("div",{className:i+"-mask",onClick:t.onMaskTouchEnd,style:p,ref:function(e){t.maskDom=e}}),f.a.createElement("div",{className:i+"-content-wrapper",style:{transform:g}},f.a.createElement("div",{className:i+"-content",ref:function(e){t.contextDom=e},onTouchStart:e?t.removeStartHandler:null,onTouchMove:e?t.removeMoveHandler:null},s),x))},this.getOpen=function(){return void 0!==t.props.open?t.props.open:t.state.open},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.contextDom&&((n.scrollTop+n.offsetHeight>=n.scrollHeight&&o<0||n.scrollTop<=0&&o>0)&&Math.max(Math.abs(r),Math.abs(o))===o||(n.scrollLeft+n.offsetWidth>=n.scrollWidth&&r<0||n.scrollLeft<=0&&r>0)&&Math.max(Math.abs(r),Math.abs(o))===r))&&e.preventDefault()}},this.trnasitionEnd=function(e){Object(g.c)(e.target,g.e,t.trnasitionEnd),e.target.style.transition=""},this.defaultGetContainer=function(){if(O)return null;var e=document.createElement("div");return t.parent.appendChild(e),t.props.wrapperClassName&&(e.className=t.props.wrapperClassName),e}};C.propTypes={wrapperClassName:h.a.string,className:h.a.string,children:h.a.node,style:h.a.object,defaultOpen:h.a.bool,firstEnter:h.a.bool,open:h.a.bool,prefixCls:h.a.string,placement:h.a.string,level:h.a.oneOfType([h.a.string,h.a.array]),levelMove:h.a.oneOfType([h.a.number,h.a.func,h.a.array]),ease:h.a.string,duration:h.a.string,getContainer:h.a.oneOfType([h.a.string,h.a.func,h.a.object,h.a.bool]),handler:h.a.any,onChange:h.a.func,onMaskClick:h.a.func,onHandleClick:h.a.func,showMask:h.a.bool,maskStyle:h.a.object},e.a=C},function(t,e,n){t.exports={default:n(50),__esModule:!0}},function(t,e,n){n(51),n(63),t.exports=n(25).f("iterator")},function(t,e,n){"use strict";var r=n(52)(!0);n(31)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(15),o=n(16);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),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){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(19),o=n(13),i=n(24),a={};n(5)(a,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(2),o=n(10),i=n(20);t.exports=n(3)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,s=0;u>s;)r.f(t,n=a[s++],e[n]);return t}},function(t,e,n){var r=n(37);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(7),o=n(58),i=n(59);t.exports=function(t){return function(e,n,a){var u,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(15),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(15),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(62),i=n(21)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(16);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(64);for(var r=n(0),o=n(5),i=n(18),a=n(8)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),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(65),o=n(66),i=n(18),a=n(7);t.exports=n(31)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(68),__esModule:!0}},function(t,e,n){n(69),n(74),n(75),n(76),t.exports=n(1).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(4),i=n(3),a=n(9),u=n(35),s=n(70).KEY,c=n(12),f=n(22),l=n(24),p=n(14),d=n(8),h=n(25),m=n(26),v=n(71),y=n(72),b=n(10),g=n(6),x=n(7),w=n(17),O=n(13),C=n(19),_=n(73),E=n(40),S=n(2),T=n(20),M=E.f,k=S.f,j=_.f,P=r.Symbol,D=r.JSON,L=D&&D.stringify,N=d("_hidden"),A=d("toPrimitive"),R={}.propertyIsEnumerable,I=f("symbol-registry"),F=f("symbols"),H=f("op-symbols"),W=Object.prototype,q="function"==typeof P,G=r.QObject,U=!G||!G.prototype||!G.prototype.findChild,V=i&&c(function(){return 7!=C(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=M(W,e);r&&delete W[e],k(t,e,n),r&&t!==W&&k(W,e,r)}:k,X=function(t){var e=F[t]=C(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===W&&B(H,e,n),b(t),e=w(e,!0),b(n),o(F,e)?(n.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),n=C(n,{enumerable:O(0,!1)})):(o(t,N)||k(t,N,O(1,{})),t[N][e]=!0),V(t,e,n)):k(t,e,n)},z=function(t,e){b(t);for(var n,r=v(e=x(e)),o=0,i=r.length;i>o;)B(t,n=r[o++],e[n]);return t},J=function(t,e){return void 0===e?C(t):z(C(t),e)},K=function(t){var e=R.call(this,t=w(t,!0));return!(this===W&&o(F,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(F,t)||o(this,N)&&this[N][t])||e)},Q=function(t,e){if(t=x(t),e=w(e,!0),t!==W||!o(F,e)||o(H,e)){var n=M(t,e);return!n||!o(F,e)||o(t,N)&&t[N][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=j(x(t)),r=[],i=0;n.length>i;)o(F,e=n[i++])||e==N||e==s||r.push(e);return r},$=function(t){for(var e,n=t===W,r=j(n?H:x(t)),i=[],a=0;r.length>a;)!o(F,e=r[a++])||n&&!o(W,e)||i.push(F[e]);return i};q||(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===W&&e.call(H,n),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),V(this,t,O(1,n))};return i&&U&&V(W,t,{configurable:!0,set:e}),X(t)},u(P.prototype,"toString",function(){return this._k}),E.f=Q,S.f=B,n(39).f=_.f=Z,n(27).f=K,n(38).f=$,i&&!n(11)&&u(W,"propertyIsEnumerable",K,!0),h.f=function(t){return X(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:Q,getOwnPropertyNames:Z,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 y(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(12)(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(38),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(37);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(7),o=n(39).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e){},function(t,e,n){n(26)("asyncIterator")},function(t,e,n){n(26)("observable")},function(t,e,n){t.exports={default:n(78),__esModule:!0}},function(t,e,n){n(79),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(80).set})},function(t,e,n){var r=n(6),o=n(10),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(32)(Function.call,n(40).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){t.exports={default:n(82),__esModule:!0}},function(t,e,n){n(83);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(9);r(r.S,"Object",{create:n(19)})},function(t,e,n){"use strict";function r(){}var o=n(85);t.exports=function(){function t(t,e,n,r,i,a){if(a!==o){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&t.push(a)}else if("object"===o)for(var u in r)i.call(r,u)&&r[u]&&t.push(u)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){"use strict";var r=n(28),o=n.n(r),i=n(88),a=n.n(i),u=n(29),s=n.n(u),c=n(41),f=n.n(c),l=n(42),p=n.n(l),d=n(43),h=n.n(d),m=n(44),v=n.n(m),y=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);y.propTypes={autoMount:v.a.bool,autoDestroy:v.a.bool,visible:v.a.bool,forceRender:v.a.bool,parent:v.a.any,getComponent:v.a.func.isRequired,getContainer:v.a.func.isRequired,children:v.a.func.isRequired},y.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1},e.a=y},function(t,e,n){"use strict";e.__esModule=!0;var r=n(89),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){t.exports={default:n(90),__esModule:!0}},function(t,e,n){n(91);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(9);r(r.S+r.F*!n(3),"Object",{defineProperty:n(2).f})},function(t,e,n){"use strict";function r(t){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,"e",function(){return c}),e.a=o,e.c=i,e.d=a;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]}]).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(17),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(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(0),o=n(1),i=n(29),a=n(6),u=n(4),s=function(t,e,n){var c,f,l,p=t&s.F,d=t&s.G,h=t&s.S,v=t&s.P,m=t&s.B,y=t&s.W,b=d?o:o[e]||(o[e]={}),g=b.prototype,x=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(c in n)(f=!p&&x&&void 0!==x[c])&&u(b,c)||(l=f?x[c]:n[c],b[c]=d&&"function"!=typeof x[c]?n[c]:m&&f?i(l,r):y&&x[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):v&&"function"==typeof l?i(Function.call,l):l,v&&((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(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(33),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(32),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:"© 2018 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){t.exports={}},function(t,e,n){var r=n(10),o=n(65),i=n(22),a=n(20)("IE_PROTO"),u=function(){},s=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(),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(2).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(27),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,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(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(57)(!1),a=n(20)("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,n){var r=n(34);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){var r=n(18);t.exports=function(t){return Object(r(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(38),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(60),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(14),o=n(5),i=n(40),a=n(6),u=n(24),s=n(64),c=n(26),f=n(67),l=n(9)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,v,m,y){s(n,e,h);var b,g,x,w=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)}},O=e+" Iterator",_="values"==v,C=!1,E=t.prototype,S=E[l]||E["@@iterator"]||v&&E[v],T=S||w(v),M=v?_?w("entries"):T:void 0,j="Array"==e?E.entries||S:S;if(j&&(x=f(j.call(new t)))!==Object.prototype&&x.next&&(c(x,O,!0),r||"function"==typeof x[l]||a(x,l,d)),_&&S&&"values"!==S.name&&(C=!0,T=function(){return S.call(this)}),r&&!y||!p&&!C&&E[l]||a(E,l,T),u[e]=T,u[O]=d,v)if(b={values:_?T:w("values"),keys:m?T:w("keys"),entries:M},y)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(6)},function(t,e,n){var r=n(32),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),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(38),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(36),a=n.n(i),u=n(37),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),v=n(46),m=n.n(v),y=n(93),b=n.n(y),g=n(94),x=n(99),w=n(100),O="createPortal"in h.a,_={},C="undefined"==typeof window,E=function(t){function e(n){a()(this,e);var r=s()(this,t.call(this,n));S.call(r),r.levelDom=[],r.contextDom=null,r.maskDom=null,r.handlerdom=null,r.mousePos=null,r.firstEnter=n.firstEnter,r.timeout=null,r.drawerId=Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()))).toString(16),(n.onIconClick||n.parent||n.iconChild||n.width||n.handleChild)&&console.warn("rc-drawer-menu API has been changed, please look at the releases, https://github.com/react-component/drawer-menu/releases");var o=void 0!==n.open?n.open:!!n.defaultOpen;return _[r.drawerId]=o,r.state={open:o},r}return f()(e,t),e.prototype.componentDidMount=function(){if(!C){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())},e.prototype.componentWillReceiveProps=function(t){var e=t.open,n=t.placement;void 0!==e&&e!==this.props.open&&(this.isOpenChange=!0,this.container||this.getDefault(t),this.setState({open:e})),n!==this.props.placement&&(this.contextDom=null),this.props.level!==t.level&&this.getParentAndLevelDom(t)},e.prototype.componentDidUpdate=function(){!this.firstEnter&&this.container&&(this.forceUpdate(),this.firstEnter=!0)},e.prototype.componentWillUnmount=function(){delete _[this.drawerId],delete this.isOpenChange,this.container&&(this.setLevelDomTransform(!1,!0),document.body.style.overflow="",this.props.getContainer&&this.container.parentNode.removeChild(this.container)),this.firstEnter=!1,clearTimeout(this.timeout),O||this.renderComponent({afterClose:this.removeContainer,onClose:function(){},visible:!1})},e.prototype.render=function(){var t=this,e=this.props.getContainer,n=this.getOpen();_[this.drawerId]=n?this.container:n;var r=this.getChildToRender(!!this.firstEnter&&n);return e?this.container&&(n||this.firstEnter)?O?h.a.createPortal(r,this.container):p.a.createElement(g.a,{parent:this,visible:!0,autoMount:!0,autoDestroy:!1,getComponent:function(){return r},getContainer:this.getContainer},function(e){var n=e.renderComponent,r=e.removeContainer;return t.renderComponent=n,t.removeContainer=r,null}):null:p.a.createElement("div",{ref:function(e){t.container=e}},r)},e}(p.a.PureComponent);E.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:p.a.createElement("div",{className:"drawer-handle"},p.a.createElement("i",{className:"drawer-handle-icon"})),firstEnter:!1,showMask:!0,maskStyle:{},wrapperClassName:"",className:""};var S=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(){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(_).some(function(t){return _[t]})},this.getContainer=function(){return t.container},this.getParentAndLevelDom=function(e){if(!C){var n=e.level,r=e.getContainer;if(t.levelDom=[],r){if("string"==typeof r){var o=document.querySelectorAll(r)[0];t.parent=o}"function"==typeof r&&(t.parent=r()),"object"==typeof r&&r instanceof window.HTMLElement&&(t.parent=r)}if(!r&&t.container&&(t.parent=t.container.parentNode),"all"===n){Array.prototype.slice.call(t.parent.children).forEach(function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&e!==t.container&&t.levelDom.push(e)})}else n&&Object(w.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;if(!C){t.levelDom.forEach(function(i){if(t.isOpenChange||n){i.style.transition="transform "+s+" "+c,Object(w.a)(i,w.e,t.trnasitionEnd);var f=e?o:0;if(u){var l=Object(w.d)(u,{target:i,open:e});f=e?l[0]:l[1]||0}var p="left"===a||"top"===a?f:-f;i.style.transform=p?r+"("+p+"px)":""}});var l=["touchstart"],p=[document.body,t.maskDom,t.handlerdom,t.contextDom],d=Object(x.a)(1),h="width "+s+" "+c,v="transform "+s+" "+c;if(e&&"hidden"!==document.body.style.overflow){if(document.body.style.overflow="hidden",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)";break;case"top":case"bottom":t.dom.style.width="calc(100% - "+d+"px)"}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=v+","+h,t.dom.style.width="",t.dom.style.transform=""})}document.body.addEventListener&&p.forEach(function(e,n){e&&e.addEventListener(l[n]||"touchmove",n?t.removeMoveHandler:t.removeStartHandler,t.passive)})}else if(t.getCrrentDrawerSome()){if(document.body.style.overflow="",(t.isOpenChange||n)&&d){switch(document.body.style.position="",document.body.style.width="",document.body.style.overflowX="hidden",t.dom.style.transition="none",a){case"right":t.dom.style.transform="translateX("+d+"px)",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)"}clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.dom.style.transition=v+","+h,t.dom.style.transform="",t.dom.style.width=""})}document.body.removeEventListener&&p.forEach(function(e,n){e&&e.removeEventListener(l[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,d=r.maskStyle,h=b()(a,(n={},n[a+"-"+s]=!0,n[a+"-open"]=e,n[i]=!!i,n)),v=t.contextDom?t.contextDom.getBoundingClientRect()["left"===s||"right"===s?"width":"height"]:0,m="translate"+("left"===s||"right"===s?"X":"Y"),y=t.contextDom?v+"px":"100%",g="left"===s||"top"===s?"-"+y:y,x=e?"":m+"("+g+")",w=e||!x?{}:{style:{transform:x}};(void 0===t.isOpenChange||t.isOpenChange)&&t.setLevelDomTransform(e,!1,m,v);var O=f&&p.a.cloneElement(f,{onClick:function(e){f.props.onClick&&f.props.onClick(),t.onIconTouchEnd(e)},ref:function(e){t.handlerdom=e}});return p.a.createElement("div",{className:h,style:u,ref:function(e){t.dom=e},onTransitionEnd:t.onWrapperTransitionEnd},l&&p.a.createElement("div",{className:a+"-mask",onClick:t.onMaskTouchEnd,style:d,ref:function(e){t.maskDom=e}}),p.a.createElement("div",o()({className:a+"-content-wrapper"},w),p.a.createElement("div",{className:a+"-content",ref:function(e){t.contextDom=e},onTouchStart:e?t.removeStartHandler:null,onTouchMove:e?t.removeMoveHandler:null},c),O))},this.getOpen=function(){return void 0!==t.props.open?t.props.open:t.state.open},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.contextDom&&((n.scrollTop+n.offsetHeight>=n.scrollHeight&&o<0||n.scrollTop<=0&&o>0)&&Math.max(Math.abs(r),Math.abs(o))===o||(n.scrollLeft+n.offsetWidth>=n.scrollWidth&&r<0||n.scrollLeft<=0&&r>0)&&Math.max(Math.abs(r),Math.abs(o))===r))&&e.preventDefault()}},this.trnasitionEnd=function(e){Object(w.c)(e.target,w.e,t.trnasitionEnd),e.target.style.transition=""},this.defaultGetContainer=function(){if(C)return null;var e=document.createElement("div");return t.parent.appendChild(e),t.props.wrapperClassName&&(e.className=t.props.wrapperClassName),e}};E.propTypes={wrapperClassName:m.a.string,className:m.a.string,children:m.a.node,style:m.a.object,defaultOpen:m.a.bool,firstEnter:m.a.bool,open:m.a.bool,prefixCls:m.a.string,placement:m.a.string,level:m.a.oneOfType([m.a.string,m.a.array]),levelMove:m.a.oneOfType([m.a.number,m.a.func,m.a.array]),ease:m.a.string,duration:m.a.string,getContainer:m.a.oneOfType([m.a.string,m.a.func,m.a.object,m.a.bool]),handler:m.a.any,onChange:m.a.func,onMaskClick:m.a.func,onHandleClick:m.a.func,showMask:m.a.bool,maskStyle:m.a.object},e.a=E},function(t,e,n){"use strict";e.__esModule=!0;var r=n(52),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(53),__esModule:!0}},function(t,e,n){n(54),t.exports=n(1).Object.assign},function(t,e,n){var r=n(5);r(r.S+r.F,"Object",{assign:n(56)})},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(13),o=n(23),i=n(16),a=n(35),u=n(33),s=Object.assign;t.exports=!s||n(11)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){for(var n=a(t),s=arguments.length,c=1,f=o.f,l=i.f;s>c;)for(var p,d=u(arguments[c++]),h=f?r(d).concat(f(d)):r(d),v=h.length,m=0;v>m;)l.call(d,p=h[m++])&&(n[p]=d[p]);return n}:s},function(t,e,n){var r=n(8),o=n(58),i=n(59);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(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){t.exports={default:n(61),__esModule:!0}},function(t,e,n){n(62),n(68),t.exports=n(27).f("iterator")},function(t,e,n){"use strict";var r=n(63)(!0);n(39)(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,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(25),o=n(12),i=n(26),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(2),o=n(10),i=n(13);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(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(35),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(69);for(var r=n(0),o=n(6),i=n(24),a=n(9)("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(24),a=n(8);t.exports=n(39)(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(5),u=n(40),s=n(75).KEY,c=n(11),f=n(21),l=n(26),p=n(15),d=n(9),h=n(27),v=n(28),m=n(76),y=n(77),b=n(10),g=n(7),x=n(8),w=n(17),O=n(12),_=n(25),C=n(78),E=n(42),S=n(2),T=n(13),M=E.f,j=S.f,k=C.f,P=r.Symbol,D=r.JSON,L=D&&D.stringify,N=d("_hidden"),A=d("toPrimitive"),R={}.propertyIsEnumerable,I=f("symbol-registry"),F=f("symbols"),H=f("op-symbols"),W=Object.prototype,q="function"==typeof P,G=r.QObject,U=!G||!G.prototype||!G.prototype.findChild,V=i&&c(function(){return 7!=_(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=M(W,e);r&&delete W[e],j(t,e,n),r&&t!==W&&j(W,e,r)}:j,X=function(t){var e=F[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},z=function(t,e,n){return t===W&&z(H,e,n),b(t),e=w(e,!0),b(n),o(F,e)?(n.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),n=_(n,{enumerable:O(0,!1)})):(o(t,N)||j(t,N,O(1,{})),t[N][e]=!0),V(t,e,n)):j(t,e,n)},B=function(t,e){b(t);for(var n,r=m(e=x(e)),o=0,i=r.length;i>o;)z(t,n=r[o++],e[n]);return t},J=function(t,e){return void 0===e?_(t):B(_(t),e)},K=function(t){var e=R.call(this,t=w(t,!0));return!(this===W&&o(F,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(F,t)||o(this,N)&&this[N][t])||e)},Q=function(t,e){if(t=x(t),e=w(e,!0),t!==W||!o(F,e)||o(H,e)){var n=M(t,e);return!n||!o(F,e)||o(t,N)&&t[N][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=k(x(t)),r=[],i=0;n.length>i;)o(F,e=n[i++])||e==N||e==s||r.push(e);return r},$=function(t){for(var e,n=t===W,r=k(n?H:x(t)),i=[],a=0;r.length>a;)!o(F,e=r[a++])||n&&!o(W,e)||i.push(F[e]);return i};q||(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===W&&e.call(H,n),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),V(this,t,O(1,n))};return i&&U&&V(W,t,{configurable:!0,set:e}),X(t)},u(P.prototype,"toString",function(){return this._k}),E.f=Q,S.f=z,n(41).f=C.f=Z,n(16).f=K,n(23).f=$,i&&!n(14)&&u(W,"propertyIsEnumerable",K,!0),h.f=function(t){return X(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;)v(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:z,defineProperties:B,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,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 y(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(6)(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(15)("meta"),o=n(7),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(13),o=n(23),i=n(16);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(34);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(8),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(28)("asyncIterator")},function(t,e,n){n(28)("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(5);r(r.S,"Object",{setPrototypeOf:n(85).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(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(5);r(r.S,"Object",{create:n(25)})},function(t,e,n){"use strict";var r=n(90),o=n(91),i=n(92);t.exports=function(){function t(t,e,n,r,a,u){u!==i&&o(!1,"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")}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";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){"use strict";function r(t,e,n,r,i,a,u,s){if(o(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,r,i,a,u,s],l=0;c=new Error(e.replace(/%s/g,function(){return f[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(t){};t.exports=r},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(36),o=n.n(r),i=n(95),a=n.n(i),u=n(37),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),v=n(46),m=n.n(v),y=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);y.propTypes={autoMount:m.a.bool,autoDestroy:m.a.bool,visible:m.a.bool,forceRender:m.a.bool,parent:m.a.any,getComponent:m.a.func.isRequired,getContainer:m.a.func.isRequired,children:m.a.func.isRequired},y.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1},e.a=y},function(t,e,n){"use strict";e.__esModule=!0;var r=n(96),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){t.exports={default:n(97),__esModule:!0}},function(t,e,n){n(98);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(3),"Object",{defineProperty:n(2).f})},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,"e",function(){return c}),e.a=o,e.c=i,e.d=a;var u={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},s=Object.keys(u).filter(function(t){return"undefined"!=typeof document&&t in(document.body&&document.body.style)})[0],c=u[s]}]).default}); |
@@ -0,1 +1,2 @@ | ||
import _extends from 'babel-runtime/helpers/extends'; | ||
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
@@ -130,5 +131,3 @@ import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; | ||
var _props = this.props, | ||
getContainer = _props.getContainer, | ||
wrapperClassName = _props.wrapperClassName; | ||
var getContainer = this.props.getContainer; | ||
@@ -142,3 +141,2 @@ var open = this.getOpen(); | ||
{ | ||
className: wrapperClassName, | ||
ref: function ref(c) { | ||
@@ -298,8 +296,8 @@ _this2.container = c; | ||
this.setLevelDomTransform = function (open, openTransition, placementName, value) { | ||
var _props2 = _this3.props, | ||
placement = _props2.placement, | ||
levelMove = _props2.levelMove, | ||
duration = _props2.duration, | ||
ease = _props2.ease, | ||
onChange = _props2.onChange; | ||
var _props = _this3.props, | ||
placement = _props.placement, | ||
levelMove = _props.levelMove, | ||
duration = _props.duration, | ||
ease = _props.ease, | ||
onChange = _props.onChange; | ||
@@ -371,4 +369,6 @@ if (!windowIsUndefined) { | ||
_this3.dom.style.transform = 'translateX(' + right + 'px)'; | ||
_this3.maskDom.style.left = '-' + right + 'px'; | ||
_this3.maskDom.style.width = 'calc(100% + ' + right + 'px)'; | ||
if (_this3.maskDom) { | ||
_this3.maskDom.style.left = '-' + right + 'px'; | ||
_this3.maskDom.style.width = 'calc(100% + ' + right + 'px)'; | ||
} | ||
break; | ||
@@ -412,11 +412,11 @@ } | ||
var _props3 = _this3.props, | ||
className = _props3.className, | ||
prefixCls = _props3.prefixCls, | ||
style = _props3.style, | ||
placement = _props3.placement, | ||
children = _props3.children, | ||
handler = _props3.handler, | ||
showMask = _props3.showMask, | ||
maskStyle = _props3.maskStyle; | ||
var _props2 = _this3.props, | ||
className = _props2.className, | ||
prefixCls = _props2.prefixCls, | ||
style = _props2.style, | ||
placement = _props2.placement, | ||
children = _props2.children, | ||
handler = _props2.handler, | ||
showMask = _props2.showMask, | ||
maskStyle = _props2.maskStyle; | ||
@@ -430,2 +430,3 @@ var wrapperClassname = classnames(prefixCls, (_classnames = {}, _classnames[prefixCls + '-' + placement] = true, _classnames[prefixCls + '-open'] = open, _classnames[className] = !!className, _classnames)); | ||
var transform = open ? '' : placementName + '(' + placementPos + ')'; | ||
var wrapperStyle = open || !transform ? {} : { style: { transform: transform } }; | ||
if (_this3.isOpenChange === undefined || _this3.isOpenChange) { | ||
@@ -465,6 +466,5 @@ _this3.setLevelDomTransform(open, false, placementName, value); | ||
'div', | ||
{ | ||
className: prefixCls + '-content-wrapper', | ||
style: { transform: transform } | ||
}, | ||
_extends({ | ||
className: prefixCls + '-content-wrapper' | ||
}, wrapperStyle), | ||
React.createElement( | ||
@@ -471,0 +471,0 @@ 'div', |
@@ -17,4 +17,3 @@ export function dataToArray(vars) { | ||
} | ||
var html = document.getElementsByTagName('html')[0]; | ||
return key in (html ? html.style : {}); | ||
return key in (document.body && document.body.style); | ||
})[0]; | ||
@@ -21,0 +20,0 @@ export var transitionEnd = trnasitionEndObject[trnasitionStr]; |
@@ -5,2 +5,6 @@ 'use strict'; | ||
var _extends2 = require('babel-runtime/helpers/extends'); | ||
var _extends3 = _interopRequireDefault(_extends2); | ||
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); | ||
@@ -164,5 +168,3 @@ | ||
var _props = this.props, | ||
getContainer = _props.getContainer, | ||
wrapperClassName = _props.wrapperClassName; | ||
var getContainer = this.props.getContainer; | ||
@@ -176,3 +178,2 @@ var open = this.getOpen(); | ||
{ | ||
className: wrapperClassName, | ||
ref: function ref(c) { | ||
@@ -332,8 +333,8 @@ _this2.container = c; | ||
this.setLevelDomTransform = function (open, openTransition, placementName, value) { | ||
var _props2 = _this3.props, | ||
placement = _props2.placement, | ||
levelMove = _props2.levelMove, | ||
duration = _props2.duration, | ||
ease = _props2.ease, | ||
onChange = _props2.onChange; | ||
var _props = _this3.props, | ||
placement = _props.placement, | ||
levelMove = _props.levelMove, | ||
duration = _props.duration, | ||
ease = _props.ease, | ||
onChange = _props.onChange; | ||
@@ -405,4 +406,6 @@ if (!windowIsUndefined) { | ||
_this3.dom.style.transform = 'translateX(' + right + 'px)'; | ||
_this3.maskDom.style.left = '-' + right + 'px'; | ||
_this3.maskDom.style.width = 'calc(100% + ' + right + 'px)'; | ||
if (_this3.maskDom) { | ||
_this3.maskDom.style.left = '-' + right + 'px'; | ||
_this3.maskDom.style.width = 'calc(100% + ' + right + 'px)'; | ||
} | ||
break; | ||
@@ -446,11 +449,11 @@ } | ||
var _props3 = _this3.props, | ||
className = _props3.className, | ||
prefixCls = _props3.prefixCls, | ||
style = _props3.style, | ||
placement = _props3.placement, | ||
children = _props3.children, | ||
handler = _props3.handler, | ||
showMask = _props3.showMask, | ||
maskStyle = _props3.maskStyle; | ||
var _props2 = _this3.props, | ||
className = _props2.className, | ||
prefixCls = _props2.prefixCls, | ||
style = _props2.style, | ||
placement = _props2.placement, | ||
children = _props2.children, | ||
handler = _props2.handler, | ||
showMask = _props2.showMask, | ||
maskStyle = _props2.maskStyle; | ||
@@ -464,2 +467,3 @@ var wrapperClassname = (0, _classnames3['default'])(prefixCls, (_classnames = {}, _classnames[prefixCls + '-' + placement] = true, _classnames[prefixCls + '-open'] = open, _classnames[className] = !!className, _classnames)); | ||
var transform = open ? '' : placementName + '(' + placementPos + ')'; | ||
var wrapperStyle = open || !transform ? {} : { style: { transform: transform } }; | ||
if (_this3.isOpenChange === undefined || _this3.isOpenChange) { | ||
@@ -499,6 +503,5 @@ _this3.setLevelDomTransform(open, false, placementName, value); | ||
'div', | ||
{ | ||
className: prefixCls + '-content-wrapper', | ||
style: { transform: transform } | ||
}, | ||
(0, _extends3['default'])({ | ||
className: prefixCls + '-content-wrapper' | ||
}, wrapperStyle), | ||
_react2['default'].createElement( | ||
@@ -505,0 +508,0 @@ 'div', |
@@ -24,4 +24,3 @@ 'use strict'; | ||
} | ||
var html = document.getElementsByTagName('html')[0]; | ||
return key in (html ? html.style : {}); | ||
return key in (document.body && document.body.style); | ||
})[0]; | ||
@@ -28,0 +27,0 @@ var transitionEnd = exports.transitionEnd = trnasitionEndObject[trnasitionStr]; |
{ | ||
"name": "rc-drawer", | ||
"version": "1.5.8", | ||
"version": "1.5.9", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
386551
4775
10