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

react-block-ui

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-block-ui - npm Package Compare versions

Comparing version 0.2.6 to 1.0.0

dist/reactblockui.cjs.js

7

dist/reactblockui.min.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define("ReactBlockUi",["react"],e):"object"==typeof exports?exports.ReactBlockUi=e(require("react")):t.ReactBlockUi=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(50)},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.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(40),o=n(19);t.exports=function(t){return r(o(t))}},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),o=n(2),u=n(18),i=n(7),c="prototype",a=function(t,e,n){var f,s,l,p=t&a.F,d=t&a.G,h=t&a.S,v=t&a.P,y=t&a.B,m=t&a.W,b=d?o:o[e]||(o[e]={}),g=b[c],x=d?r:h?r[e]:(r[e]||{})[c];d&&(n=e);for(f in n)s=!p&&x&&void 0!==x[f],s&&f in b||(l=s?x[f]:n[f],b[f]=d&&"function"!=typeof x[f]?n[f]:y&&s?u(l,r):m&&x[f]==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[c]=t[c],e}(l):v&&"function"==typeof l?u(Function.call,l):l,v&&((b.virtual||(b.virtual={}))[f]=l,t&a.R&&g&&!g[f]&&i(g,f,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var r=n(8),o=n(15);t.exports=n(5)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(10),o=n(39),u=n(30),i=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(r(t),e=u(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(28)("wks"),o=n(16),u=n(1).Symbol,i="function"==typeof u,c=t.exports=function(t){return r[t]||(r[t]=i&&u[t]||(i?u:o)("Symbol."+t))};c.store=r},function(t,e,n){var r=n(12);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){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(44),o=n(21);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(67);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){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(12),o=n(1).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports={}},function(t,e){t.exports=!0},function(t,e,n){var r=n(10),o=n(78),u=n(21),i=n(27)("IE_PROTO"),c=function(){},a="prototype",f=function(){var t,e=n(20)("iframe"),r=u.length,o="<",i=">";for(e.style.display="none",n(38).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+i+"document.F=Object"+o+"/script"+i),t.close(),f=t.F;r--;)delete f[a][u[r]];return f()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[a]=r(t),n=new c,c[a]=null,n[i]=t):n=f(),void 0===e?n:o(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(8).f,o=n(3),u=n(9)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,u)&&r(t,u,{configurable:!0,value:e})}},function(t,e,n){var r=n(28)("keys"),o=n(16);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o="__core-js_shared__",u=r[o]||(r[o]={});t.exports=function(t){return u[t]||(u[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(12);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(1),o=n(2),u=n(23),i=n(32),c=n(8).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=u?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:i.f(t)})}},function(t,e,n){e.f=n(9)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(34),u=r(o),i=n(36),c=r(i),a=n(35),f=r(a),s=n(47),l=r(s),p=n(59),d=r(p),h=n(49),v=r(h),y=(0,d.default)(0,.3,.45,1),m=function(t){var e=function(e){t.style.opacity=e,t.style.transform="translateX("+(20-20*e)+"px) translateZ(0)"};return(0,v.default)(e,750,y)},b=function(t){var e=function(e){t.forEach(function(t){t.style.opacity=1-e})};return(0,v.default)(e,500,y)},g=function(t){function e(){var n,r,o;(0,u.default)(this,e);for(var i=arguments.length,a=Array(i),f=0;f<i;f++)a[f]=arguments[f];return n=r=(0,c.default)(this,t.call.apply(t,[this].concat(a))),r.bullets=[],o=n,(0,c.default)(r,o)}return(0,f.default)(e,t),e.prototype.componentDidMount=function(){this.addBullet(0)},e.prototype.removeBullets=function(){var t=this;this.clearTimeout(),this.timeout=setTimeout(function(){t.cancelLeave=b(t.bullets),t.addBullet(0,950)},1800)},e.prototype.addBullet=function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250;this.clearTimeout(),this.timeout=setTimeout(function(){e.cancelEnter=m(e.bullets[t]),t<2?e.addBullet(++t):e.removeBullets()},n)},e.prototype.clearTimeout=function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){this.timeout&&clearTimeout(this.timeout)}),e.prototype.componentWillUnmount=function(){this.clearTimeout(),this.cancelEnter&&this.cancelEnter(),this.cancelLeave&&this.cancelLeave()},e.prototype.render=function(){var t=this;return l.default.createElement("div",{className:"av-loading-indicator"},l.default.createElement("span",{ref:function(e){return t.bullets[0]=e},className:"av-loading-bullet"},"•")," ",l.default.createElement("span",{ref:function(e){return t.bullets[1]=e},className:"av-loading-bullet"},"•")," ",l.default.createElement("span",{ref:function(e){return t.bullets[2]=e},className:"av-loading-bullet"},"•"))},e}(s.Component);e.default=g},function(t,e){"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";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(53),u=r(o),i=n(52),c=r(i),a=n(37),f=r(a);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":(0,f.default)(e)));t.prototype=(0,c.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(u.default?(0,u.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(37),u=r(o);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,u.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(56),u=r(o),i=n(55),c=r(i),a="function"==typeof c.default&&"symbol"==typeof u.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default?"symbol":typeof t};e.default="function"==typeof c.default&&"symbol"===a(u.default)?function(t){return"undefined"==typeof t?"undefined":a(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default?"symbol":"undefined"==typeof t?"undefined":a(t)}},function(t,e,n){t.exports=n(1).document&&document.documentElement},function(t,e,n){t.exports=!n(5)&&!n(11)(function(){return 7!=Object.defineProperty(n(20)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(23),o=n(6),u=n(45),i=n(7),c=n(3),a=n(22),f=n(73),s=n(26),l=n(80),p=n(9)("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",v="keys",y="values",m=function(){return this};t.exports=function(t,e,n,b,g,x,w){f(n,e,b);var _,O,T,E=function(t){if(!d&&t in M)return M[t];switch(t){case v:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this,t)}},j=e+" Iterator",S=g==y,k=!1,M=t.prototype,P=M[p]||M[h]||g&&M[g],F=P||E(g),N=g?S?E("entries"):F:void 0,A="Array"==e?M.entries||P:P;if(A&&(T=l(A.call(new t)),T!==Object.prototype&&(s(T,j,!0),r||c(T,p)||i(T,p,m))),S&&P&&P.name!==y&&(k=!0,F=function(){return P.call(this)}),r&&!w||!d&&!k&&M[p]||i(M,p,F),a[e]=F,a[j]=m,g)if(_={values:S?F:E(y),keys:x?F:E(v),entries:N},w)for(O in _)O in M||u(M,O,_[O]);else o(o.P+o.F*(d||k),e,_);return _}},function(t,e,n){var r=n(14),o=n(15),u=n(4),i=n(30),c=n(3),a=n(39),f=Object.getOwnPropertyDescriptor;e.f=n(5)?f:function(t,e){if(t=u(t),e=i(e,!0),a)try{return f(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(44),o=n(21).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(3),o=n(4),u=n(69)(!1),i=n(27)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)n!=i&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~u(f,n)||f.push(n));return f}},function(t,e,n){t.exports=n(7)},function(t,e,n){var r=n(19);t.exports=function(t){return Object(r(t))}},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(57),u=r(o),i=n(58),c=r(i),a=n(54),f=r(a),s=n(34),l=r(s),p=n(36),d=r(p),h=n(35),v=r(h),y=n(47),m=r(y),b=n(102),g=r(b),x=n(60),w=r(x),_=n(33),O=r(_),T=function(t){function e(){var n,r,o;(0,l.default)(this,e);for(var u=arguments.length,i=Array(u),c=0;c<u;c++)i[c]=arguments[c];return n=r=(0,d.default)(this,t.call.apply(t,[this].concat(i))),r.tabbedUpTop=function(t){r.blockingTab(t)&&r.blocker.focus()},r.tabbedDownTop=function(t){r.blockingTab(t)&&(t.preventDefault(),r.blocker.focus())},r.tabbedUpBottom=function(t){r.blockingTab(t,!0)&&r.topFocus.focus()},r.tabbedDownBottom=function(t){r.blockingTab(t,!0)&&(t.preventDefault(),r.topFocus.focus())},o=n,(0,d.default)(r,o)}return(0,v.default)(e,t),e.prototype.blockingTab=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.props.blocking&&("Tab"===t.key||9===t.keyCode)&&t.shiftKey==e},e.prototype.componentWillReceiveProps=function(t){var e=this;if(t.blocking!==this.props.blocking)if(t.blocking)this.helper&&this.helper.parentNode&&this.helper.parentNode.contains&&this.helper.parentNode.contains(document.activeElement)&&(this.focused=document.activeElement,this.focused&&this.focused!==document.body&&(0,f.default)(function(){return e.topFocus&&e.topFocus.focus()}));else{var n=document.activeElement;!this.focused||n&&n!==document.body&&n!==this.topFocus||(this.focused.focus(),this.focused=null)}},e.prototype.render=function(){var t=this,e=this.props,n=e.tag,r=e.blocking,o=e.className,i=e.children,a=e.loader,f=e.renderChildren,s=(0,c.default)(e,["tag","blocking","className","children","loader","renderChildren"]),l=r?(0,w.default)("av-block-ui",o):o,p=!r||f;return m.default.createElement(n,(0,u.default)({},s,{className:l,"aria-busy":r}),r&&m.default.createElement("div",{tabIndex:"0",onKeyUp:this.tabbedUpTop,onKeyDown:this.tabbedDownTop,ref:function(e){return t.topFocus=e}}),p&&i,r&&m.default.createElement("div",{className:"av-block-ui-container",tabIndex:"0",ref:function(e){return t.blocker=e},onKeyUp:this.tabbedUpBottom,onKeyDown:this.tabbedDownBottom},m.default.createElement("div",{className:"av-block-ui-overlay"}),m.default.createElement("div",{className:"av-block-ui-message-container"},m.default.createElement("div",{className:"av-block-ui-message"},m.default.isValidElement(a)?a:m.default.createElement(a,null)))),m.default.createElement("span",{ref:function(e){return t.helper=e}}))},e}(y.Component);T.propTypes={blocking:g.default.bool,children:g.default.node,renderChildren:g.default.bool,className:g.default.string,loader:g.default.oneOfType([g.default.string,g.default.func,g.default.node]),tag:g.default.oneOfType([g.default.string,g.default.func])},T.defaultProps={tag:"div",renderChildren:!0,loader:O.default},e.default=T},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(103),u=r(o);e.default=function(t,e,n){var r=Date.now(),o=void 0,i=function i(){var c=(Date.now()-r)/e;c>=1?t(1):(o=(0,u.default)(i),t(n(c)))};return o=(0,u.default)(i),function(){return u.default.cancel(o)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.Loader=void 0;var o=n(48),u=r(o),i=n(33),c=r(i);e.Loader=c.default,e.default=u.default},function(t,e,n){t.exports={default:n(61),__esModule:!0}},function(t,e,n){t.exports={default:n(62),__esModule:!0}},function(t,e,n){t.exports={default:n(63),__esModule:!0}},function(t,e,n){t.exports={default:n(64),__esModule:!0}},function(t,e,n){t.exports={default:n(65),__esModule:!0}},function(t,e,n){t.exports={default:n(66),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(51),u=r(o);e.default=u.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){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},function(t,e){function n(t,e){return 1-3*e+3*t}function r(t,e){return 3*e-6*t}function o(t){return 3*t}function u(t,e,u){return((n(e,u)*t+r(e,u))*t+o(e))*t}function i(t,e,u){return 3*n(e,u)*t*t+2*r(e,u)*t+o(e)}function c(t,e,n,r,o){var i,c,a=0;do c=e+(n-e)/2,i=u(c,r,o)-t,i>0?n=c:e=c;while(Math.abs(i)>l&&++a<p);return c}function a(t,e,n,r){for(var o=0;o<f;++o){var c=i(e,n,r);if(0===c)return e;var a=u(e,n,r)-t;e-=a/c}return e}var f=4,s=.001,l=1e-7,p=10,d=11,h=1/(d-1),v="function"==typeof Float32Array;t.exports=function(t,e,n,r){function o(e){for(var r=0,o=1,u=d-1;o!==u&&f[o]<=e;++o)r+=h;--o;var l=(e-f[o])/(f[o+1]-f[o]),p=r+l*h,v=i(p,t,n);return v>=s?a(e,p,t,n):0===v?p:c(e,r,r+h,t,n)}if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");var f=v?new Float32Array(d):new Array(d);if(t!==e||n!==r)for(var l=0;l<d;++l)f[l]=u(l*h,t,n);return function(i){return t===e&&n===r?i:0===i?0:1===i?1:u(o(i),e,r)}}},function(t,e,n){var r,o;/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r))t.push(n.apply(null,r));else if("object"===o)for(var i in r)u.call(r,i)&&r[i]&&t.push(i)}}return t.join(" ")}var u={}.hasOwnProperty;"undefined"!=typeof t&&t.exports?t.exports=n:(r=[],o=function(){return n}.apply(e,r),!(void 0!==o&&(t.exports=o)))}()},function(t,e,n){n(87),t.exports=n(2).Object.assign},function(t,e,n){n(88);var r=n(2).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(89),t.exports=n(2).Object.setPrototypeOf},function(t,e,n){n(96),t.exports=n(2).setImmediate},function(t,e,n){n(92),n(90),n(93),n(94),t.exports=n(2).Symbol},function(t,e,n){n(91),n(95),t.exports=n(32).f("iterator")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(4),o=n(85),u=n(84);t.exports=function(t){return function(e,n,i){var c,a=r(e),f=o(a.length),s=u(i,f);if(t&&n!=n){for(;f>s;)if(c=a[s++],c!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(13),o=n(25),u=n(14);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,c=n(t),a=u.f,f=0;c.length>f;)a.call(t,i=c[f++])&&e.push(i);return e}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(17);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(24),o=n(15),u=n(26),i={};n(7)(i,n(9)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),u(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(13),o=n(4);t.exports=function(t,e){for(var n,u=o(t),i=r(u),c=i.length,a=0;c>a;)if(u[n=i[a++]]===e)return n}},function(t,e,n){var r=n(16)("meta"),o=n(12),u=n(3),i=n(8).f,c=0,a=Object.isExtensible||function(){return!0},f=!n(11)(function(){return a(Object.preventExtensions({}))}),s=function(t){i(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,r)){if(!a(t))return"F";if(!e)return"E";s(t)}return t[r].i},p=function(t,e){if(!u(t,r)){if(!a(t))return!0;if(!e)return!1;s(t)}return t[r].w},d=function(t){return f&&h.NEED&&a(t)&&!u(t,r)&&s(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,e,n){"use strict";var r=n(13),o=n(25),u=n(14),i=n(46),c=n(40),a=Object.assign;t.exports=!a||n(11)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r})?function(t,e){for(var n=i(t),a=arguments.length,f=1,s=o.f,l=u.f;a>f;)for(var p,d=c(arguments[f++]),h=s?r(d).concat(s(d)):r(d),v=h.length,y=0;v>y;)l.call(d,p=h[y++])&&(n[p]=d[p]);return n}:a},function(t,e,n){var r=n(8),o=n(10),u=n(13);t.exports=n(5)?Object.defineProperties:function(t,e){o(t);for(var n,i=u(e),c=i.length,a=0;c>a;)r.f(t,n=i[a++],e[n]);return t}},function(t,e,n){var r=n(4),o=n(43).f,u={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return i.slice()}};t.exports.f=function(t){return i&&"[object Window]"==u.call(t)?c(t):o(r(t))}},function(t,e,n){var r=n(3),o=n(46),u=n(27)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(12),o=n(10),u=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(18)(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 u(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:u}},function(t,e,n){var r=n(29),o=n(19);t.exports=function(t){return function(e,n){var u,i,c=String(o(e)),a=r(n),f=c.length;return a<0||a>=f?t?"":void 0:(u=c.charCodeAt(a),u<55296||u>56319||a+1===f||(i=c.charCodeAt(a+1))<56320||i>57343?t?c.charAt(a):u:t?c.slice(a,a+2):(u-55296<<10)+(i-56320)+65536)}}},function(t,e,n){var r,o,u,i=n(18),c=n(71),a=n(38),f=n(20),s=n(1),l=s.process,p=s.setImmediate,d=s.clearImmediate,h=s.MessageChannel,v=0,y={},m="onreadystatechange",b=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},g=function(t){b.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++v]=function(){c("function"==typeof t?t:Function(t),e)},r(v),v},d=function(t){delete y[t]},"process"==n(17)(l)?r=function(t){l.nextTick(i(b,t,1))}:h?(o=new h,u=o.port2,o.port1.onmessage=g,r=i(u.postMessage,u,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",g,!1)):r=m in f("script")?function(t){a.appendChild(f("script"))[m]=function(){a.removeChild(this),b.call(t)}}:function(t){setTimeout(i(b,t,1),0)}),t.exports={set:p,clear:d}},function(t,e,n){var r=n(29),o=Math.max,u=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):u(t,e)}},function(t,e,n){var r=n(29),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=n(68),o=n(74),u=n(22),i=n(4);t.exports=n(41)(Array,"Array",function(t,e){this._t=i(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"),u.Arguments=u.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(6);r(r.S+r.F,"Object",{assign:n(77)})},function(t,e,n){var r=n(6);r(r.S,"Object",{create:n(24)})},function(t,e,n){var r=n(6);r(r.S,"Object",{setPrototypeOf:n(81).set})},function(t,e){},function(t,e,n){"use strict";var r=n(82)(!0);n(41)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(1),o=n(3),u=n(5),i=n(6),c=n(45),a=n(76).KEY,f=n(11),s=n(28),l=n(26),p=n(16),d=n(9),h=n(32),v=n(31),y=n(75),m=n(70),b=n(72),g=n(10),x=n(4),w=n(30),_=n(15),O=n(24),T=n(79),E=n(42),j=n(8),S=n(13),k=E.f,M=j.f,P=T.f,F=r.Symbol,N=r.JSON,A=N&&N.stringify,R="prototype",C=d("_hidden"),D=d("toPrimitive"),I={}.propertyIsEnumerable,B=s("symbol-registry"),L=s("symbols"),U=s("op-symbols"),q=Object[R],K="function"==typeof F,W=r.QObject,z=!W||!W[R]||!W[R].findChild,G=u&&f(function(){return 7!=O(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=k(q,e);r&&delete q[e],M(t,e,n),r&&t!==q&&M(q,e,r)}:M,J=function(t){var e=L[t]=O(F[R]);return e._k=t,e},V=K&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},Y=function(t,e,n){return t===q&&Y(U,e,n),g(t),e=w(e,!0),g(n),o(L,e)?(n.enumerable?(o(t,C)&&t[C][e]&&(t[C][e]=!1),n=O(n,{enumerable:_(0,!1)})):(o(t,C)||M(t,C,_(1,{})),t[C][e]=!0),G(t,e,n)):M(t,e,n)},Q=function(t,e){g(t);for(var n,r=m(e=x(e)),o=0,u=r.length;u>o;)Y(t,n=r[o++],e[n]);return t},X=function(t,e){return void 0===e?O(t):Q(O(t),e)},Z=function(t){var e=I.call(this,t=w(t,!0));return!(this===q&&o(L,t)&&!o(U,t))&&(!(e||!o(this,t)||!o(L,t)||o(this,C)&&this[C][t])||e)},H=function(t,e){if(t=x(t),e=w(e,!0),t!==q||!o(L,e)||o(U,e)){var n=k(t,e);return!n||!o(L,e)||o(t,C)&&t[C][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=P(x(t)),r=[],u=0;n.length>u;)o(L,e=n[u++])||e==C||e==a||r.push(e);return r},tt=function(t){for(var e,n=t===q,r=P(n?U:x(t)),u=[],i=0;r.length>i;)!o(L,e=r[i++])||n&&!o(q,e)||u.push(L[e]);return u};K||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===q&&e.call(U,n),o(this,C)&&o(this[C],t)&&(this[C][t]=!1),G(this,t,_(1,n))};return u&&z&&G(q,t,{configurable:!0,set:e}),J(t)},c(F[R],"toString",function(){return this._k}),E.f=H,j.f=Y,n(43).f=T.f=$,n(14).f=Z,n(25).f=tt,u&&!n(23)&&c(q,"propertyIsEnumerable",Z,!0),h.f=function(t){return J(d(t))}),i(i.G+i.W+i.F*!K,{Symbol:F});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var et=S(d.store),nt=0;et.length>nt;)v(et[nt++]);i(i.S+i.F*!K,"Symbol",{for:function(t){return o(B,t+="")?B[t]:B[t]=F(t)},keyFor:function(t){if(V(t))return y(B,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){z=!0},useSimple:function(){z=!1}}),i(i.S+i.F*!K,"Object",{create:X,defineProperty:Y,defineProperties:Q,getOwnPropertyDescriptor:H,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),N&&i(i.S+i.F*(!K||f(function(){var t=F();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!V(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&b(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!V(e))return e}),r[1]=e,A.apply(N,r)}}}),F[R][D]||n(7)(F[R],D,F[R].valueOf),l(F,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(31)("asyncIterator")},function(t,e,n){n(31)("observable")},function(t,e,n){n(86);for(var r=n(1),o=n(7),u=n(22),i=n(9)("toStringTag"),c=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],a=0;a<5;a++){var f=c[a],s=r[f],l=s&&s.prototype;l&&!l[i]&&o(l,i,f),u[f]=u.Array}},function(t,e,n){var r=n(6),o=n(83);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e){"use strict";function n(t){return function(){return t}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r,u,i,c,a){if(o(e),!t){var f;if(void 0===e)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,u,i,c,a],l=0;f=new Error(e.replace(/%s/g,function(){return s[l++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}}var o=function(t){};t.exports=r},function(t,e,n){(function(e){(function(){var n,r,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof e&&null!==e&&e.hrtime?(t.exports=function(){return(n()-o)/1e6},r=e.hrtime,n=function(){var t;return t=r(),1e9*t[0]+t[1]},o=n()):Date.now?(t.exports=function(){return Date.now()-o},o=Date.now()):(t.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(e,n(100))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(s===setTimeout)return setTimeout(t,0);if((s===n||!s)&&setTimeout)return s=setTimeout,setTimeout(t,0);try{return s(t,0)}catch(e){try{return s.call(null,t,0)}catch(e){return s.call(this,t,0)}}}function u(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function i(){v&&d&&(v=!1,d.length?h=d.concat(h):y=-1,h.length&&c())}function c(){if(!v){var t=o(i);v=!0;for(var e=h.length;e;){for(d=h,h=[];++y<e;)d&&d[y].run();y=-1,e=h.length}d=null,v=!1,u(t)}}function a(t,e){this.fun=t,this.array=e}function f(){}var s,l,p=t.exports={};!function(){try{s="function"==typeof setTimeout?setTimeout:n}catch(t){s=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var d,h=[],v=!1,y=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new a(t,e)),1!==h.length||v||o(c)},a.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=f,p.addListener=f,p.once=f,p.off=f,p.removeListener=f,p.removeAllListeners=f,p.emit=f,p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(97),o=n(98);t.exports=function(){function t(){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};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){t.exports=n(101)()},function(t,e,n){(function(e){for(var r=n(99),o="undefined"==typeof window?e:window,u=["moz","webkit"],i="AnimationFrame",c=o["request"+i],a=o["cancel"+i]||o["cancelRequest"+i],f=0;!c&&f<u.length;f++)c=o[u[f]+"Request"+i],a=o[u[f]+"Cancel"+i]||o[u[f]+"CancelRequest"+i];if(!c||!a){var s=0,l=0,p=[],d=1e3/60;c=function(t){if(0===p.length){var e=r(),n=Math.max(0,d-(e-s));s=n+e,setTimeout(function(){var t=p.slice(0);p.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(s)}catch(t){setTimeout(function(){throw t},0)}},Math.round(n))}return p.push({handle:++l,callback:t,cancelled:!1}),l},a=function(t){for(var e=0;e<p.length;e++)p[e].handle===t&&(p[e].cancelled=!0)}}t.exports=function(t){return c.call(o,t)},t.exports.cancel=function(){a.apply(o,arguments)},t.exports.polyfill=function(){o.requestAnimationFrame=c,o.cancelAnimationFrame=a}}).call(e,function(){return this}())}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("ReactBlockUi",["react"],t):"object"==typeof exports?exports.ReactBlockUi=t(require("react")):e.ReactBlockUi=t(e.React)}(this,function(e){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(4)},function(t,n){t.exports=e},function(e,t,n){(function(e){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(1),f=o(l),d=n(10),p=o(d),m=n(3),h=o(m),b=({blocking:p.default.bool,children:p.default.node,renderChildren:p.default.bool,className:p.default.string,message:p.default.oneOfType([p.default.string,p.default.node]),loader:p.default.oneOfType([p.default.string,p.default.func,p.default.node]),tag:p.default.oneOfType([p.default.string,p.default.func])},{tag:"div",renderChildren:!0,loader:h.default}),y=function(t){function n(e){i(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.tabbedUpTop=t.tabbedUpTop.bind(t),t.tabbedDownTop=t.tabbedDownTop.bind(t),t.tabbedUpBottom=t.tabbedUpBottom.bind(t),t.tabbedDownBottom=t.tabbedDownBottom.bind(t),t}return u(n,t),s(n,[{key:"blockingTab",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.props.blocking&&("Tab"===e.key||9===e.keyCode)&&e.shiftKey==t}},{key:"tabbedUpTop",value:function(e){this.blockingTab(e)&&this.blocker.focus()}},{key:"tabbedDownTop",value:function(e){this.blockingTab(e)&&(e.preventDefault(),this.blocker.focus())}},{key:"tabbedUpBottom",value:function(e){this.blockingTab(e,!0)&&this.topFocus.focus()}},{key:"tabbedDownBottom",value:function(e){this.blockingTab(e,!0)&&(e.preventDefault(),this.topFocus.focus())}},{key:"componentWillReceiveProps",value:function(t){var n=this;if(t.blocking!==this.props.blocking)if(t.blocking)this.helper&&this.helper.parentNode&&this.helper.parentNode.contains&&this.helper.parentNode.contains(document.activeElement)&&(this.focused=document.activeElement,this.focused&&this.focused!==document.body&&e(function(){return n.topFocus&&n.topFocus.focus()}));else{var o=document.activeElement;!this.focused||o&&o!==document.body&&o!==this.topFocus||(this.focused.focus(),this.focused=null)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.tag,o=t.blocking,i=t.className,a=t.children,u=t.message,s=t.loader,l=t.renderChildren,d=r(t,["tag","blocking","className","children","message","loader","renderChildren"]),p=o?"block-ui "+i:i,m=!o||l;return f.default.createElement(n,c({},d,{className:p,"aria-busy":o}),o&&f.default.createElement("div",{tabIndex:"0",onKeyUp:this.tabbedUpTop,onKeyDown:this.tabbedDownTop,ref:function(t){return e.topFocus=t}}),m&&a,o&&f.default.createElement("div",{className:"block-ui-container",tabIndex:"0",ref:function(t){return e.blocker=t},onKeyUp:this.tabbedUpBottom,onKeyDown:this.tabbedDownBottom},f.default.createElement("div",{className:"block-ui-overlay"}),f.default.createElement("div",{className:"block-ui-message-container"},f.default.createElement("div",{className:"block-ui-message"},u,f.default.isValidElement(s)?s:f.default.createElement(s,null)))),f.default.createElement("span",{ref:function(t){return e.helper=t}}))}}]),n}(l.Component);y.defaultProps=b,t.default=y}).call(t,n(13).setImmediate)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(){return a.default.createElement("div",{className:"loading-indicator"},a.default.createElement("span",{className:"loading-bullet"},"•")," ",a.default.createElement("span",{className:"loading-bullet"},"•")," ",a.default.createElement("span",{className:"loading-bullet"},"•"))}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=o(i);t.default=r},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=o(r);t.default=i.default},function(e,t){"use strict";function n(e){return function(){return e}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o,i,a,u,c){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,u,c],f=0;s=new Error(t.replace(/%s/g,function(){return l[f++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var r=function(e){};e.exports=o},function(e,t){(function(t){var n;n="undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(t,function(){return this}())},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){h&&p&&(h=!1,p.length?m=p.concat(m):b=-1,m.length&&u())}function u(){if(!h){var e=r(a);h=!0;for(var t=m.length;t;){for(p=m,m=[];++b<t;)p&&p[b].run();b=-1,t=m.length}p=null,h=!1,i(e)}}function c(e,t){this.fun=e,this.array=t}function s(){}var l,f,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:o}catch(e){f=o}}();var p,m=[],h=!1,b=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new c(e,t)),1!==m.length||h||r(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=s,d.addListener=s,d.once=s,d.off=s,d.removeListener=s,d.removeAllListeners=s,d.emit=s,d.prependListener=s,d.prependOnceListener=s,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";var o=n(5),r=n(6),i=n(11);e.exports=function(){function e(e,t,n,o,a,u){u!==i&&r(!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 t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){e.exports=n(9)()},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){(function(e,t){!function(e,n){"use strict";function o(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return h[m]=o,p(m),m++}function r(e){delete h[e]}function i(e){var t=e.callback,o=e.args;switch(o.length){case 0:t();break;case 1:t(o[0]);break;case 2:t(o[0],o[1]);break;case 3:t(o[0],o[1],o[2]);break;default:t.apply(n,o)}}function a(e){if(b)setTimeout(a,0,e);else{var t=h[e];if(t){b=!0;try{i(t)}finally{r(e),b=!1}}}}function u(){p=function(e){t.nextTick(function(){a(e)})}}function c(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}function s(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&a(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),p=function(n){e.postMessage(t+n,"*")}}function l(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;a(t)},p=function(t){e.port2.postMessage(t)}}function f(){var e=y.documentElement;p=function(t){var n=y.createElement("script");n.onreadystatechange=function(){a(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}function d(){p=function(e){setTimeout(a,0,e)}}if(!e.setImmediate){var p,m=1,h={},b=!1,y=e.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(e);v=v&&v.setTimeout?v:e,"[object process]"==={}.toString.call(e.process)?u():c()?s():e.MessageChannel?l():y&&"onreadystatechange"in y.createElement("script")?f():d(),v.setImmediate=o,v.clearImmediate=r}}("undefined"==typeof self?"undefined"==typeof e?this:e:self)}).call(t,function(){return this}(),n(8))},function(e,t,n){function o(e,t){this._id=e,this._clearFn=t}var r=Function.prototype.apply;t.setTimeout=function(){return new o(r.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(r.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(12);var i=n(7);t.setImmediate=i.setImmediate,t.clearImmediate=i.clearImmediate}])});
//# sourceMappingURL=reactblockui.min.js.map
'use strict';
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _extends3 = _interopRequireDefault(_extends2);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _react = require('react');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
var _react2 = _interopRequireDefault(_react);
var _setImmediate2 = require('babel-runtime/core-js/set-immediate');
var _propTypes = require('prop-types');
var _setImmediate3 = _interopRequireDefault(_setImmediate2);
var _propTypes2 = _interopRequireDefault(_propTypes);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _Loader = require('./Loader');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _Loader2 = _interopRequireDefault(_Loader);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
var _inherits2 = require('babel-runtime/helpers/inherits');
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var _inherits3 = _interopRequireDefault(_inherits2);
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
var _react = require('react');
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var _react2 = _interopRequireDefault(_react);
var propTypes = {
blocking: _propTypes2.default.bool,
children: _propTypes2.default.node,
renderChildren: _propTypes2.default.bool,
className: _propTypes2.default.string,
message: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.node]),
loader: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func, _propTypes2.default.node]),
tag: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func])
};
var _propTypes = require('prop-types');
var defaultProps = {
tag: 'div',
renderChildren: true,
loader: _Loader2.default
};
var _propTypes2 = _interopRequireDefault(_propTypes);
var BlockUi = function (_Component) {
_inherits(BlockUi, _Component);
var _classnames = require('classnames');
function BlockUi(props) {
_classCallCheck(this, BlockUi);
var _classnames2 = _interopRequireDefault(_classnames);
var _this = _possibleConstructorReturn(this, (BlockUi.__proto__ || Object.getPrototypeOf(BlockUi)).call(this, props));
var _Loader = require('./Loader');
_this.tabbedUpTop = _this.tabbedUpTop.bind(_this);
_this.tabbedDownTop = _this.tabbedDownTop.bind(_this);
_this.tabbedUpBottom = _this.tabbedUpBottom.bind(_this);
_this.tabbedDownBottom = _this.tabbedDownBottom.bind(_this);
return _this;
}
var _Loader2 = _interopRequireDefault(_Loader);
_createClass(BlockUi, [{
key: 'blockingTab',
value: function blockingTab(e) {
var withShift = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var BlockUi = function (_Component) {
(0, _inherits3.default)(BlockUi, _Component);
function BlockUi() {
var _temp, _this, _ret;
(0, _classCallCheck3.default)(this, BlockUi);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
return this.props.blocking && (e.key === 'Tab' || e.keyCode === 9) && e.shiftKey == withShift;
}
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.tabbedUpTop = function (e) {
if (_this.blockingTab(e)) {
_this.blocker.focus();
}, {
key: 'tabbedUpTop',
value: function tabbedUpTop(e) {
if (this.blockingTab(e)) {
this.blocker.focus();
}
}, _this.tabbedDownTop = function (e) {
if (_this.blockingTab(e)) {
}
}, {
key: 'tabbedDownTop',
value: function tabbedDownTop(e) {
if (this.blockingTab(e)) {
e.preventDefault();
_this.blocker.focus();
this.blocker.focus();
}
}, _this.tabbedUpBottom = function (e) {
if (_this.blockingTab(e, true)) {
_this.topFocus.focus();
}
}, {
key: 'tabbedUpBottom',
value: function tabbedUpBottom(e) {
if (this.blockingTab(e, true)) {
this.topFocus.focus();
}
}, _this.tabbedDownBottom = function (e) {
if (_this.blockingTab(e, true)) {
}
}, {
key: 'tabbedDownBottom',
value: function tabbedDownBottom(e) {
if (this.blockingTab(e, true)) {
e.preventDefault();
_this.topFocus.focus();
this.topFocus.focus();
}
}, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);
}
}
}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(nextProps) {
var _this2 = this;
BlockUi.prototype.blockingTab = function blockingTab(e) {
var withShift = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
return this.props.blocking && (e.key === 'Tab' || e.keyCode === 9) && e.shiftKey == withShift;
};
BlockUi.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
var _this2 = this;
if (nextProps.blocking !== this.props.blocking) {
if (nextProps.blocking) {
// blocking started
if (this.helper && this.helper.parentNode && this.helper.parentNode.contains && this.helper.parentNode.contains(document.activeElement)) {
this.focused = document.activeElement;
// https://www.tjvantoll.com/2013/08/30/bugs-with-document-activeelement-in-internet-explorer/#blurring-the-body-switches-windows-in-ie9-and-ie10
if (this.focused && this.focused !== document.body) {
(0, _setImmediate3.default)(function () {
return _this2.topFocus && _this2.topFocus.focus();
});
if (nextProps.blocking !== this.props.blocking) {
if (nextProps.blocking) {
// blocking started
if (this.helper && this.helper.parentNode && this.helper.parentNode.contains && this.helper.parentNode.contains(document.activeElement)) {
this.focused = document.activeElement;
// https://www.tjvantoll.com/2013/08/30/bugs-with-document-activeelement-in-internet-explorer/#blurring-the-body-switches-windows-in-ie9-and-ie10
if (this.focused && this.focused !== document.body) {
setImmediate(function () {
return _this2.topFocus && _this2.topFocus.focus();
});
}
}
} else {
var ae = document.activeElement;
if (this.focused && (!ae || ae === document.body || ae === this.topFocus)) {
this.focused.focus();
this.focused = null;
}
}
} else {
var ae = document.activeElement;
if (this.focused && (!ae || ae === document.body || ae === this.topFocus)) {
this.focused.focus();
this.focused = null;
}
}
}
};
}, {
key: 'render',
value: function render() {
var _this3 = this;
BlockUi.prototype.render = function render() {
var _this3 = this;
var _props = this.props,
Tag = _props.tag,
blocking = _props.blocking,
className = _props.className,
children = _props.children,
message = _props.message,
Loader = _props.loader,
renderChildren = _props.renderChildren,
attributes = _objectWithoutProperties(_props, ['tag', 'blocking', 'className', 'children', 'message', 'loader', 'renderChildren']);
var _props = this.props,
Tag = _props.tag,
blocking = _props.blocking,
className = _props.className,
children = _props.children,
Loader = _props.loader,
renderChildren = _props.renderChildren,
attributes = (0, _objectWithoutProperties3.default)(_props, ['tag', 'blocking', 'className', 'children', 'loader', 'renderChildren']);
var classes = blocking ? 'block-ui ' + className : className;
var renderChilds = !blocking || renderChildren;
var classes = blocking ? (0, _classnames2.default)('av-block-ui', className) : className;
var renderChilds = !blocking || renderChildren;
return _react2.default.createElement(
Tag,
(0, _extends3.default)({}, attributes, { className: classes, 'aria-busy': blocking }),
blocking && _react2.default.createElement('div', { tabIndex: '0', onKeyUp: this.tabbedUpTop, onKeyDown: this.tabbedDownTop, ref: function ref(c) {
return _this3.topFocus = c;
} }),
renderChilds && children,
blocking && _react2.default.createElement(
'div',
{ className: 'av-block-ui-container',
tabIndex: '0',
ref: function ref(c) {
return _this3.blocker = c;
return _react2.default.createElement(
Tag,
_extends({}, attributes, { className: classes, 'aria-busy': blocking }),
blocking && _react2.default.createElement('div', { tabIndex: '0', onKeyUp: this.tabbedUpTop, onKeyDown: this.tabbedDownTop, ref: function ref(c) {
return _this3.topFocus = c;
} }),
renderChilds && children,
blocking && _react2.default.createElement(
'div',
{ className: 'block-ui-container',
tabIndex: '0',
ref: function ref(c) {
return _this3.blocker = c;
},
onKeyUp: this.tabbedUpBottom,
onKeyDown: this.tabbedDownBottom
},
onKeyUp: this.tabbedUpBottom,
onKeyDown: this.tabbedDownBottom },
_react2.default.createElement('div', { className: 'av-block-ui-overlay' }),
_react2.default.createElement(
'div',
{ className: 'av-block-ui-message-container' },
_react2.default.createElement('div', { className: 'block-ui-overlay' }),
_react2.default.createElement(
'div',
{ className: 'av-block-ui-message' },
_react2.default.isValidElement(Loader) ? Loader : _react2.default.createElement(Loader, null)
{ className: 'block-ui-message-container' },
_react2.default.createElement(
'div',
{ className: 'block-ui-message' },
message,
_react2.default.isValidElement(Loader) ? Loader : _react2.default.createElement(Loader, null)
)
)
)
),
_react2.default.createElement('span', { ref: function ref(c) {
return _this3.helper = c;
} })
);
};
),
_react2.default.createElement('span', { ref: function ref(c) {
return _this3.helper = c;
} })
);
}
}]);

@@ -163,15 +184,4 @@ return BlockUi;

BlockUi.propTypes = {
blocking: _propTypes2.default.bool,
children: _propTypes2.default.node,
renderChildren: _propTypes2.default.bool,
className: _propTypes2.default.string,
loader: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func, _propTypes2.default.node]),
tag: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func])
};
BlockUi.defaultProps = {
tag: 'div',
renderChildren: true,
loader: _Loader2.default
};
BlockUi.defaultProps = defaultProps;
exports.default = BlockUi;
'use strict';
exports.__esModule = true;
exports.Loader = undefined;
Object.defineProperty(exports, "__esModule", {
value: true
});

@@ -10,9 +11,4 @@ var _BlockUi = require('./BlockUi');

var _Loader2 = require('./Loader');
var _Loader3 = _interopRequireDefault(_Loader2);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.Loader = _Loader3.default;
exports.default = _BlockUi2.default;

@@ -1,151 +0,37 @@

'use strict';
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _react = require("react");
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _bezierEasing = require('bezier-easing');
var _bezierEasing2 = _interopRequireDefault(_bezierEasing);
var _animate = require('./animate');
var _animate2 = _interopRequireDefault(_animate);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var easeIn = (0, _bezierEasing2.default)(0, 0.3, 0.45, 1);
function Loader() {
return _react2.default.createElement(
"div",
{ className: "loading-indicator" },
_react2.default.createElement(
"span",
{ className: "loading-bullet" },
"\u2022"
),
' ',
_react2.default.createElement(
"span",
{ className: "loading-bullet" },
"\u2022"
),
' ',
_react2.default.createElement(
"span",
{ className: "loading-bullet" },
"\u2022"
)
);
}
var enter = function enter(el) {
var render = function render(percent) {
el.style.opacity = percent;
el.style.transform = 'translateX(' + (20 - 20 * percent) + 'px) translateZ(0)';
};
return (0, _animate2.default)(render, 750, easeIn);
};
var leave = function leave(bullets) {
var render = function render(percent) {
bullets.forEach(function (el) {
el.style.opacity = 1 - percent;
});
};
return (0, _animate2.default)(render, 500, easeIn);
};
var Loader = function (_Component) {
(0, _inherits3.default)(Loader, _Component);
function Loader() {
var _temp, _this, _ret;
(0, _classCallCheck3.default)(this, Loader);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.bullets = [], _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);
}
Loader.prototype.componentDidMount = function componentDidMount() {
this.addBullet(0);
};
Loader.prototype.removeBullets = function removeBullets() {
var _this2 = this;
this.clearTimeout();
this.timeout = setTimeout(function () {
_this2.cancelLeave = leave(_this2.bullets);
_this2.addBullet(0, 950);
}, 1800);
};
Loader.prototype.addBullet = function addBullet(bullet) {
var _this3 = this;
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 250;
this.clearTimeout();
this.timeout = setTimeout(function () {
_this3.cancelEnter = enter(_this3.bullets[bullet]);
if (bullet < 2) {
_this3.addBullet(++bullet);
} else {
_this3.removeBullets();
}
}, delay);
};
Loader.prototype.clearTimeout = function (_clearTimeout) {
function clearTimeout() {
return _clearTimeout.apply(this, arguments);
}
clearTimeout.toString = function () {
return _clearTimeout.toString();
};
return clearTimeout;
}(function () {
this.timeout && clearTimeout(this.timeout);
});
Loader.prototype.componentWillUnmount = function componentWillUnmount() {
this.clearTimeout();
this.cancelEnter && this.cancelEnter();
this.cancelLeave && this.cancelLeave();
};
Loader.prototype.render = function render() {
var _this4 = this;
return _react2.default.createElement(
'div',
{ className: 'av-loading-indicator' },
_react2.default.createElement(
'span',
{ ref: function ref(c) {
return _this4.bullets[0] = c;
}, className: 'av-loading-bullet' },
'\u2022'
),
' ',
_react2.default.createElement(
'span',
{ ref: function ref(c) {
return _this4.bullets[1] = c;
}, className: 'av-loading-bullet' },
'\u2022'
),
' ',
_react2.default.createElement(
'span',
{ ref: function ref(c) {
return _this4.bullets[2] = c;
}, className: 'av-loading-bullet' },
'\u2022'
)
);
};
return Loader;
}(_react.Component);
exports.default = Loader;
'use strict';
exports.__esModule = true;
exports.BlockUiMiddleware = undefined;
Object.defineProperty(exports, "__esModule", {
value: true
});

@@ -10,9 +11,4 @@ var _ReduxBlockUi = require('./ReduxBlockUi');

var _reduxMiddleware = require('./reduxMiddleware');
var _reduxMiddleware2 = _interopRequireDefault(_reduxMiddleware);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.BlockUiMiddleware = _reduxMiddleware2.default;
exports.default = _ReduxBlockUi2.default;
'use strict';
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _extends3 = _interopRequireDefault(_extends2);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _react = require('react');

@@ -41,9 +27,24 @@

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var propTypes = {
blocking: _propTypes2.default.bool,
block: _propTypes2.default.oneOfType([_propTypes2.default.instanceOf(RegExp), _propTypes2.default.string, _propTypes2.default.array, _propTypes2.default.func]),
unblock: _propTypes2.default.oneOfType([_propTypes2.default.instanceOf(RegExp), _propTypes2.default.string, _propTypes2.default.array, _propTypes2.default.func]),
onChange: _propTypes2.default.func
};
var ReduxBlockUi = function (_Component) {
(0, _inherits3.default)(ReduxBlockUi, _Component);
_inherits(ReduxBlockUi, _Component);
function ReduxBlockUi(props) {
(0, _classCallCheck3.default)(this, ReduxBlockUi);
_classCallCheck(this, ReduxBlockUi);
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props));
var _this = _possibleConstructorReturn(this, (ReduxBlockUi.__proto__ || Object.getPrototypeOf(ReduxBlockUi)).call(this, props));

@@ -59,82 +60,82 @@ _this.middleware = _this.middleware.bind(_this);

ReduxBlockUi.prototype.middleware = function middleware(action) {
var _props = this.props,
block = _props.block,
unblock = _props.unblock;
_createClass(ReduxBlockUi, [{
key: 'middleware',
value: function middleware(action) {
var _props = this.props,
block = _props.block,
unblock = _props.unblock;
this.checkAction(action, block);
this.checkAction(action, unblock, false);
};
this.checkAction(action, block);
this.checkAction(action, unblock, false);
}
}, {
key: 'checkAction',
value: function checkAction(action, check) {
var _this2 = this;
ReduxBlockUi.prototype.checkAction = function checkAction(action, check) {
var _this2 = this;
var block = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
var block = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
if (check) {
if (!Array.isArray(check)) {
check = [check];
}
if (check) {
if (!Array.isArray(check)) {
check = [check];
}
check.forEach(function (value) {
var result = void 0;
if (typeof value === 'function') {
result = value(action);
} else if (value instanceof RegExp) {
value.lastIndex = 0;
result = value.test(action.type);
} else {
result = value === action.type;
}
check.forEach(function (value) {
var result = void 0;
if (typeof value === 'function') {
result = value(action);
} else if (value instanceof RegExp) {
value.lastIndex = 0;
result = value.test(action.type);
} else {
result = value === action.type;
}
if (result === true) {
var oldValue = _this2.blocking;
if (result === true) {
var oldValue = _this2.blocking;
if (block) {
_this2.setState({ blocking: ++_this2.blocking });
} else {
if (_this2.blocking < 1) {
_this2.blocking = 0;
if (block) {
_this2.setState({ blocking: ++_this2.blocking });
} else {
--_this2.blocking;
if (_this2.blocking < 1) {
_this2.blocking = 0;
} else {
--_this2.blocking;
}
_this2.setState({ blocking: _this2.blocking });
}
_this2.setState({ blocking: _this2.blocking });
_this2.props.onChange && _this2.props.onChange(_this2.blocking, oldValue);
}
});
}
}
}, {
key: 'componentWillMount',
value: function componentWillMount() {
(0, _reduxMiddleware.register)(this.middleware);
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
(0, _reduxMiddleware.unregister)(this.middleware);
}
}, {
key: 'render',
value: function render() {
var _props2 = this.props,
blocking = _props2.blocking,
block = _props2.block,
unblock = _props2.unblock,
onChange = _props2.onChange,
attributes = _objectWithoutProperties(_props2, ['blocking', 'block', 'unblock', 'onChange']);
_this2.props.onChange && _this2.props.onChange(_this2.blocking, oldValue);
}
});
return _react2.default.createElement(_BlockUi2.default, _extends({}, attributes, { blocking: blocking || this.state.blocking > 0 }));
}
};
}]);
ReduxBlockUi.prototype.componentWillMount = function componentWillMount() {
(0, _reduxMiddleware.register)(this.middleware);
};
ReduxBlockUi.prototype.componentWillUnmount = function componentWillUnmount() {
(0, _reduxMiddleware.unregister)(this.middleware);
};
ReduxBlockUi.prototype.render = function render() {
var _props2 = this.props,
blocking = _props2.blocking,
block = _props2.block,
unblock = _props2.unblock,
onChange = _props2.onChange,
attributes = (0, _objectWithoutProperties3.default)(_props2, ['blocking', 'block', 'unblock', 'onChange']);
return _react2.default.createElement(_BlockUi2.default, (0, _extends3.default)({}, attributes, { blocking: blocking || this.state.blocking > 0 }));
};
return ReduxBlockUi;
}(_react.Component);
ReduxBlockUi.propTypes = {
blocking: _propTypes2.default.bool,
block: _propTypes2.default.oneOfType([_propTypes2.default.instanceOf(RegExp), _propTypes2.default.string, _propTypes2.default.array, _propTypes2.default.func]),
unblock: _propTypes2.default.oneOfType([_propTypes2.default.instanceOf(RegExp), _propTypes2.default.string, _propTypes2.default.array, _propTypes2.default.func]),
onChange: _propTypes2.default.func
};
exports.default = ReduxBlockUi;
'use strict';
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
var registered = exports.registered = [];

@@ -5,0 +7,0 @@

{
"name": "react-block-ui",
"version": "0.2.6",
"version": "1.0.0",
"author": "Evan Sharp <evan.sharp@availity.com>",
"description": "Block UI for react",
"main": "lib/index.js",
"main": "dist/reactblockui.cjs.js",
"jsnext:main": "dist/reactblockui.es.js",
"module": "dist/reactblockui.es.js",
"style": "style.css",
"engines": {

@@ -13,10 +16,10 @@ "node": ">= 5.0.0",

"coveralls": "coveralls < ./__test__/coverage/lcov.info",
"test:coverage": "cross-env BABEL_ENV=test nyc mocha-webpack",
"test": "mocha-webpack && npm run cleanup",
"test:watch": "mocha-webpack --watch && npm run cleanup",
"test:coverage": "cross-env NODE_ENV=test nyc mocha-webpack",
"test": "cross-env NODE_ENV=test mocha-webpack && npm run cleanup",
"test:watch": "cross-env NODE_ENV=test mocha-webpack --watch && npm run cleanup",
"cleanup": "rimraf .nyc_output .tmp",
"start": "webpack-dev-server --config ./webpack.dev.config.js --watch",
"build:docs": "cross-env WEBPACK_BUILD=production webpack --config ./webpack.dev.config.js --colors",
"build": "cross-env WEBPACK_BUILD=production webpack --progress --colors && webpack --colors && copyfiles -f src/style.css dist",
"prebuild": "babel src --out-dir lib && copyfiles -f src/style.css lib && copyfiles -f src/style.css .",
"start": "cross-env BABEL_ENV=webpack webpack-dev-server --config ./webpack.dev.config.js --watch",
"build:docs": "cross-env NODE_ENV=production BABEL_ENV=webpack webpack --config ./webpack.dev.config.js --colors",
"build": "cross-env NODE_ENV=production rollup -c && copyfiles -f src/style.css dist",
"prebuild": "cross-env NODE_ENV=production BABEL_ENV=webpack babel src --out-dir lib && copyfiles -f src/style.css lib && copyfiles -f src/style.css .",
"create-release": "npm test && sh ./scripts/release",

@@ -36,2 +39,3 @@ "publish-release": "npm test && sh ./scripts/publish"

"redux.js",
"reduxMiddleware.js",
"style.css"

@@ -59,10 +63,7 @@ ],

"dependencies": {
"bezier-easing": "^2.0.3",
"classnames": "^2.2.3",
"raf": "^3.3.0",
"prop-types": "^15.5.7"
},
"peerDependencies": {
"react": "^0.14.9 || ^15.3.0",
"react-dom": "^0.14.9 || ^15.3.0"
"react": "^0.14.9 || ^15.3.0 || ^16.0.0",
"react-dom": "^0.14.9 || ^15.3.0 || ^16.0.0"
},

@@ -75,10 +76,7 @@ "devDependencies": {

"babel-plugin-istanbul": "^4.1.1",
"babel-plugin-transform-class-properties": "^6.18.0",
"babel-plugin-transform-proto-to-assign": "^6.9.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-polyfill": "^6.13.0",
"babel-preset-es2015": "^6.13.2",
"babel-preset-es2015-loose": "^7.0.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-0": "^6.5.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.8",
"babel-preset-es2015-rollup": "^3.0.0",
"babel-preset-react": "^6.24.1",
"babel-preset-react-app": "^3.0.1",
"babel-register": "^6.11.6",

@@ -101,2 +99,4 @@ "bootstrap": "4.0.0-alpha.6",

"eslint-config-availity": "^2.0.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^6.0.0",

@@ -113,4 +113,2 @@ "extract-text-webpack-plugin": "^1.0.1",

"react": "^15.5.4",
"react-addons-css-transition-group": "^15.5.2",
"react-addons-pure-render-mixin": "^15.5.2",
"react-addons-test-utils": "^15.5.1",

@@ -126,5 +124,11 @@ "react-dom": "^15.5.4",

"react-transition-group": "^1.1.1",
"reactstrap": "^4.5.0",
"reactstrap": "^4.8.0",
"redux": "^3.5.2",
"rimraf": "^2.6.1",
"rollup": "^0.43.0",
"rollup-plugin-babel": "^2.7.1",
"rollup-plugin-babili": "^3.1.0",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-replace": "^1.1.1",
"sinon": "^2.1.0",

@@ -131,0 +135,0 @@ "sinon-chai": "^2.8.0",

@@ -24,4 +24,5 @@ [![npm version](https://badge.fury.io/js/react-block-ui.svg)](https://badge.fury.io/js/react-block-ui) [![Build Status](https://travis-ci.org/Availity/react-block-ui.svg?branch=master)](https://travis-ci.org/Availity/react-block-ui) [![Coverage Status](https://coveralls.io/repos/github/Availity/react-block-ui/badge.svg?branch=master)](https://coveralls.io/github/Availity/react-block-ui?branch=master)

```js
import BlockUi, { Loader } from 'react-block-ui';
import ReduxBlockUi, { BlockUiMiddleware } from 'react-block-ui/redux';
import BlockUi from 'react-block-ui';
import ReduxBlockUi from 'react-block-ui/redux'; // only for redux
import reduxMiddleware from 'react-block-ui/reduxMiddleware'; // only for redux
import from 'react-block-ui/style.css';

@@ -28,0 +29,0 @@ ```

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

'use strict';
exports.__esModule = true;
exports.BlockUiMiddleware = undefined;
var _ReduxBlockUi = require('./lib/ReduxBlockUi');
var _ReduxBlockUi2 = _interopRequireDefault(_ReduxBlockUi);
var _reduxMiddleware = require('./lib/reduxMiddleware');
var _reduxMiddleware2 = _interopRequireDefault(_reduxMiddleware);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.BlockUiMiddleware = _reduxMiddleware2.default;
exports.default = _ReduxBlockUi2.default;
exports.default = require('./lib/ReduxBlockUi');

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc