react-checkbox-tree
Advanced tools
Comparing version 1.2.1 to 1.2.2
# CHANGELOG | ||
## [v1.2.2](https://github.com/jakezatecky/react-checkbox-tree/compare/v1.2.1...v1.2.2) (2018-05-24) | ||
### Bug Fixes | ||
* [#89]: Fix misnamed variables in the Less stylesheets | ||
* [#90]: Coerce NaN types to string when outputing DOM IDs | ||
## [v1.2.1](https://github.com/jakezatecky/react-checkbox-tree/compare/v1.2.0...v1.2.1) (2018-05-10) | ||
@@ -4,0 +11,0 @@ |
@@ -1,2 +0,2 @@ | ||
/*! react-checkbox-tree - v1.2.1 | 2018 */ | ||
/*! react-checkbox-tree - v1.2.2 | 2018 */ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactCheckboxTree=t(require("react")):e.ReactCheckboxTree=t(e.React)}(window,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=104)}([function(e,t,n){var r=n(22),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){var r=n(88),o=n(82);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){e.exports=n(33)()},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(73);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(1)(Object,"create");e.exports=r},function(e,t,n){var r=n(11),o=n(86),i=n(85),a="[object Null]",c="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?c:a:u&&u in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(24);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(98),o=n(97),i=n(96),a=n(95),c=n(94);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(t,n){t.exports=e},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(0).Symbol;e.exports=r},function(e,t,n){var r=n(1)(n(0),"Map");e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(2),a=(r=i)&&r.__esModule?r:{default:r};var c={label:a.default.node.isRequired,value:a.default.oneOfType([a.default.string,a.default.number]).isRequired,icon:a.default.node,showCheckbox:a.default.bool},u=a.default.oneOfType([a.default.shape(c),a.default.shape(o({},c,{children:a.default.arrayOf(c).isRequired}))]);t.default=u},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(46),o=n(45),i=n(44),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){(function(e){var r=n(0),o=n(48),i="object"==typeof t&&t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;e.exports=u}).call(this,n(16)(e))},function(e,t,n){var r=n(69),o=n(66),i=n(65),a=1,c=2;e.exports=function(e,t,n,u,s,l){var f=n&a,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=l.get(e);if(h&&l.get(t))return h==t;var v=-1,b=!0,y=n&c?new r:void 0;for(l.set(e,t),l.set(t,e);++v<p;){var x=e[v],_=t[v];if(u)var k=f?u(_,x,v,t,e,l):u(x,_,v,e,t,l);if(void 0!==k){if(k)continue;b=!1;break}if(y){if(!o(t,function(e,t){if(!i(y,t)&&(x===e||s(x,e,n,u,l)))return y.push(t)})){b=!1;break}}else if(x!==_&&!s(x,_,n,u,l)){b=!1;break}}return l.delete(e),l.delete(t),b}},function(e,t,n){var r=n(81),o=n(74),i=n(72),a=n(71),c=n(70);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(87))},function(e,t,n){var r=n(6),o=n(21),i="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==c||t==i||t==u}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r; | ||
@@ -13,2 +13,2 @@ /*! | ||
*/ | ||
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===i)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}void 0!==e&&e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(2)),a=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,a.default.PureComponent),o(t,[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var e=this.props.indeterminate;this.checkbox.indeterminate=e}},{key:"render",value:function(){var e=this,t=r({},this.props);return delete t.indeterminate,a.default.createElement("input",r({},t,{ref:function(t){e.checkbox=t},type:"checkbox"}))}}]),t}();u.propTypes={indeterminate:i.default.bool},u.defaultProps={indeterminate:!1},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=s(n(25)),i=s(n(2)),a=s(n(9)),c=s(n(26)),u=s(n(13));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onCheck=n.onCheck.bind(n),n.onClick=n.onClick.bind(n),n.onExpand=n.onExpand.bind(n),n}return function(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)}(t,a.default.Component),r(t,[{key:"onCheck",value:function(){var e=!1;0===this.props.checked&&(e=!0),2===this.props.checked&&(e=this.props.optimisticToggle),this.props.onCheck({value:this.props.value,checked:e,children:this.props.rawChildren})}},{key:"onClick",value:function(){var e=!1;1===this.props.checked&&(e=!0),2===this.props.checked&&(e=this.props.optimisticToggle),this.hasChildren()&&this.props.expandOnClick&&this.onExpand(),this.props.onClick({value:this.props.value,checked:e,children:this.props.rawChildren})}},{key:"onExpand",value:function(){this.props.onExpand({value:this.props.value,expanded:!this.props.expanded})}},{key:"hasChildren",value:function(){return null!==this.props.rawChildren}},{key:"renderCollapseButton",value:function(){var e=this.props.expandDisabled;return this.hasChildren()?a.default.createElement("button",{"aria-label":"Toggle",className:"rct-collapse rct-collapse-btn",disabled:e,title:"Toggle",type:"button",onClick:this.onExpand},this.renderCollapseIcon()):a.default.createElement("span",{className:"rct-collapse"},a.default.createElement("span",{className:"rct-icon"}))}},{key:"renderCollapseIcon",value:function(){return this.props.expanded?a.default.createElement("span",{className:"rct-icon rct-icon-expand-open"}):a.default.createElement("span",{className:"rct-icon rct-icon-expand-close"})}},{key:"renderCheckboxIcon",value:function(){return 0===this.props.checked?a.default.createElement("span",{className:"rct-icon rct-icon-uncheck"}):1===this.props.checked?a.default.createElement("span",{className:"rct-icon rct-icon-check"}):a.default.createElement("span",{className:"rct-icon rct-icon-half-check"})}},{key:"renderNodeIcon",value:function(){return null!==this.props.icon?this.props.icon:this.hasChildren()?this.props.expanded?a.default.createElement("span",{className:"rct-icon rct-icon-parent-open"}):a.default.createElement("span",{className:"rct-icon rct-icon-parent-close"}):a.default.createElement("span",{className:"rct-icon rct-icon-leaf"})}},{key:"renderBareLabel",value:function(e){var n=this.props.onClick.toString()!==t.defaultProps.onClick.toString();return a.default.createElement("span",{className:"rct-bare-label"},n?a.default.createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},e):e)}},{key:"renderCheckboxLabel",value:function(e){var n=this.props,r=n.checked,o=n.disabled,i=(n.label,n.treeId),u=n.value,s=n.onClick.toString()!==t.defaultProps.onClick.toString(),l=i+"-"+u.split(" ").join("_"),f=[a.default.createElement("label",{key:0,htmlFor:l},a.default.createElement(c.default,{checked:1===r,disabled:o,id:l,indeterminate:2===r,onChange:this.onCheck}),a.default.createElement("span",{className:"rct-checkbox"},this.renderCheckboxIcon()),s?null:e)];return s&&f.push(a.default.createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},e)),f}},{key:"renderLabel",value:function(){var e=this.props,t=e.label,n=e.showCheckbox,r=[e.showNodeIcon?a.default.createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,a.default.createElement("span",{key:1,className:"rct-title"},t)];return n?this.renderCheckboxLabel(r):this.renderBareLabel(r)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.disabled,r=(0,o.default)({"rct-node":!0,"rct-node-parent":this.hasChildren(),"rct-node-leaf":!this.hasChildren(),"rct-disabled":n},t);return a.default.createElement("li",{className:r},a.default.createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}]),t}();l.propTypes={checked:i.default.number.isRequired,disabled:i.default.bool.isRequired,expandDisabled:i.default.bool.isRequired,expanded:i.default.bool.isRequired,label:i.default.node.isRequired,optimisticToggle:i.default.bool.isRequired,showNodeIcon:i.default.bool.isRequired,treeId:i.default.string.isRequired,value:i.default.string.isRequired,onCheck:i.default.func.isRequired,onExpand:i.default.func.isRequired,children:i.default.node,className:i.default.string,expandOnClick:i.default.bool,icon:i.default.node,rawChildren:i.default.arrayOf(u.default),showCheckbox:i.default.bool,onClick:i.default.func},l.defaultProps={children:null,className:null,expandOnClick:!1,icon:null,rawChildren:null,showCheckbox:!0,onClick:function(){}},t.default=l},function(e,t){var n=self.crypto||self.msCrypto;e.exports=function(e){return n.getRandomValues(new Uint8Array(e))}},function(e,t,n){var r=n(28);e.exports=function(e){for(var t="",n=r(e=e||21);0<e--;)t+="_~0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[63&n[e]];return t}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,a,c,u){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,c,u],f=0;(s=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";function r(e){return function(){return e}}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(e){return e},e.exports=o},function(e,t,n){"use strict";var r=n(32),o=n(31),i=n(30);e.exports=function(){function e(e,t,n,r,a,c){c!==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 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,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){var r=n(1)(n(0),"WeakMap");e.exports=r},function(e,t,n){var r=n(1)(n(0),"Set");e.exports=r},function(e,t,n){var r=n(1)(n(0),"Promise");e.exports=r},function(e,t,n){var r=n(1)(n(0),"DataView");e.exports=r},function(e,t,n){var r=n(37),o=n(12),i=n(36),a=n(35),c=n(34),u=n(6),s=n(20),l=s(r),f=s(o),p=s(i),d=s(a),h=s(c),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||c&&"[object WeakMap]"!=v(new c))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){var r=n(23),o=n(14);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(40)(Object.keys,Object);e.exports=r},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(42),o=n(41),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){(function(e){var r=n(22),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c}).call(this,n(16)(e))},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(6),o=n(14),i=n(3),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(6),o=n(3),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(49),o=n(3),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=u},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(51),o=n(50),i=n(10),a=n(17),c=n(47),u=n(15),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var b in e)!t&&!s.call(e,b)||d&&("length"==b||f&&("offset"==b||"parent"==b)||p&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||c(b,v))||h.push(b);return h}},function(e,t,n){var r=n(52),o=n(43),i=n(39);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t){e.exports=function(){return[]}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t,n){var r=n(55),o=n(54),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(57),o=n(10);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(58),o=n(56),i=n(53);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(59),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,c,u){var s=n&o,l=r(e),f=l.length;if(f!=r(t).length&&!s)return!1;for(var p=f;p--;){var d=l[p];if(!(s?d in t:i.call(t,d)))return!1}var h=u.get(e);if(h&&u.get(t))return h==t;var v=!0;u.set(e,t),u.set(t,e);for(var b=s;++p<f;){var y=e[d=l[p]],x=t[d];if(a)var _=s?a(x,y,d,t,e,u):a(y,x,d,e,t,u);if(!(void 0===_?y===x||c(y,x,n,a,u):_)){v=!1;break}b||(b="constructor"==d)}if(v&&!b){var k=e.constructor,m=t.constructor;k!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof k&&k instanceof k&&"function"==typeof m&&m instanceof m)&&(v=!1)}return u.delete(e),u.delete(t),v}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t,n){var r=n(0).Uint8Array;e.exports=r},function(e,t,n){var r=n(11),o=n(63),i=n(24),a=n(18),c=n(62),u=n(61),s=1,l=2,f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Map]",v="[object Number]",b="[object RegExp]",y="[object Set]",x="[object String]",_="[object Symbol]",k="[object ArrayBuffer]",m="[object DataView]",g=r?r.prototype:void 0,j=g?g.valueOf:void 0;e.exports=function(e,t,n,r,g,C,O){switch(n){case m:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!C(new o(e),new o(t)));case f:case p:case v:return i(+e,+t);case d:return e.name==t.name&&e.message==t.message;case b:case x:return e==t+"";case h:var w=c;case y:var E=r&s;if(w||(w=u),e.size!=t.size&&!E)return!1;var P=O.get(e);if(P)return P==t;r|=l,O.set(e,t);var N=a(w(e),w(t),r,g,C,O);return O.delete(e),N;case _:if(j)return j.call(e)==j.call(t)}return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t,n){var r=n(19),o=n(68),i=n(67);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t,n){var r=n(4);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(4);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(4);e.exports=function(e){return r(this,e).get(e)}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(4);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t,n){var r=n(5),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(5),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(5),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(5);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(79),o=n(78),i=n(77),a=n(76),c=n(75);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(80),o=n(8),i=n(12);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(0)["__core-js_shared__"];e.exports=r},function(e,t,n){var r,o=n(83),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(11),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(23),o=n(84),i=n(21),a=n(20),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:c).test(a(e))}},function(e,t,n){var r=n(8),o=n(12),i=n(19),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var c=n.__data__;if(!o||c.length<a-1)return c.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(c)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t,n){var r=n(7);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(7);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(7);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(7),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(8),o=n(93),i=n(92),a=n(91),c=n(90),u=n(89);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,e.exports=s},function(e,t,n){var r=n(99),o=n(18),i=n(64),a=n(60),c=n(38),u=n(10),s=n(17),l=n(15),f=1,p="[object Arguments]",d="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,b,y,x){var _=u(e),k=u(t),m=_?d:c(e),g=k?d:c(t),j=(m=m==p?h:m)==h,C=(g=g==p?h:g)==h,O=m==g;if(O&&s(e)){if(!s(t))return!1;_=!0,j=!1}if(O&&!j)return x||(x=new r),_||l(e)?o(e,t,n,b,y,x):i(e,t,m,n,b,y,x);if(!(n&f)){var w=j&&v.call(e,"__wrapped__"),E=C&&v.call(t,"__wrapped__");if(w||E){var P=w?e.value():e,N=E?t.value():t;return x||(x=new r),y(P,N,n,b,x)}}return!!O&&(x||(x=new r),a(e,t,n,b,y,x))}},function(e,t,n){var r=n(100),o=n(3);e.exports=function e(t,n,i,a,c){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,c))}},function(e,t,n){var r=n(101);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=p(n(25)),a=p(n(102)),c=p(n(2)),u=p(n(9)),s=p(n(29)),l=p(n(27)),f=p(n(13));function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.id="rct-"+(0,s.default)(7),n.nodes={},n.flattenNodes(e.nodes),n.unserializeLists({checked:e.checked,expanded:e.expanded}),n.onCheck=n.onCheck.bind(n),n.onExpand=n.onExpand.bind(n),n}return function(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)}(t,u.default.Component),o(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.nodes,n=e.checked,r=e.expanded;(0,a.default)(this.props.nodes,t)||this.flattenNodes(t),this.unserializeLists({checked:n,expanded:r})}},{key:"onCheck",value:function(e){var t=this.props,n=t.noCascade,r=t.onCheck;this.toggleChecked(e,e.checked,n),r(this.serializeList("checked"),e)}},{key:"onExpand",value:function(e){var t=this.props.onExpand;this.toggleNode("expanded",e,e.expanded),t(this.serializeList("expanded"),e)}},{key:"getFormattedNodes",value:function(e){var t=this;return e.map(function(e){var n=r({},e);return n.checked=t.nodes[e.value].checked,n.expanded=t.nodes[e.value].expanded,n.showCheckbox=void 0===e.showCheckbox||e.showCheckbox,Array.isArray(e.children)&&e.children.length>0?n.children=t.getFormattedNodes(n.children):n.children=null,n})}},{key:"getCheckState",value:function(e,t){return null===e.children||t?e.checked?1:0:this.isEveryChildChecked(e)?1:this.isSomeChildChecked(e)?2:0}},{key:"getDisabledState",value:function(e,t,n,r){return!!n||(!(r||!t.disabled)||Boolean(e.disabled))}},{key:"toggleChecked",value:function(e,t,n){var r=this;null===e.children||n?this.toggleNode("checked",e,t):e.children.forEach(function(e){r.toggleChecked(e,t)})}},{key:"toggleNode",value:function(e,t,n){this.nodes[t.value][e]=n}},{key:"flattenNodes",value:function(e){var t=this;Array.isArray(e)&&0!==e.length&&e.forEach(function(e){t.nodes[e.value]={},t.flattenNodes(e.children)})}},{key:"unserializeLists",value:function(e){var t=this;Object.keys(this.nodes).forEach(function(n){Object.keys(e).forEach(function(e){t.nodes[n][e]=!1})}),Object.keys(e).forEach(function(n){e[n].forEach(function(e){void 0!==t.nodes[e]&&(t.nodes[e][n]=!0)})})}},{key:"serializeList",value:function(e){var t=this,n=[];return Object.keys(this.nodes).forEach(function(r){t.nodes[r][e]&&n.push(r)}),n}},{key:"isEveryChildChecked",value:function(e){var t=this;return e.children.every(function(e){return null!==e.children?t.isEveryChildChecked(e):e.checked})}},{key:"isSomeChildChecked",value:function(e){var t=this;return e.children.some(function(e){return null!==e.children?t.isSomeChildChecked(e):e.checked})}},{key:"renderTreeNodes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.props,o=r.disabled,i=r.expandDisabled,a=r.expandOnClick,c=r.noCascade,s=r.onlyLeafCheckboxes,f=r.optimisticToggle,p=r.showNodeIcon,d=r.onClick,h=e.map(function(e){var r=""+e.value,h=t.getCheckState(e,c),v=null===e.children,b=t.renderChildNodes(e),y=t.getDisabledState(e,n,o,c),x=s?v:e.showCheckbox;return u.default.createElement(l.default,{key:r,checked:h,className:e.className,disabled:y,expandDisabled:i,expandOnClick:a,expanded:e.expanded,icon:e.icon,label:e.label,optimisticToggle:f,rawChildren:e.children,showCheckbox:x,showNodeIcon:p,treeId:t.id,value:e.value,onCheck:t.onCheck,onClick:d,onExpand:t.onExpand},b)});return u.default.createElement("ol",null,h)}},{key:"renderChildNodes",value:function(e){return null!==e.children&&e.expanded?this.renderTreeNodes(e.children,e):null}},{key:"renderHiddenInput",value:function(){return void 0===this.props.name?null:this.props.nameAsArray?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var e=this;return this.props.checked.map(function(t){var n=e.props.name+"[]";return u.default.createElement("input",{key:t,name:n,type:"hidden",value:t})})}},{key:"renderJoinedHiddenInput",value:function(){var e=this.props.checked.join(",");return u.default.createElement("input",{name:this.props.name,type:"hidden",value:e})}},{key:"render",value:function(){var e=this.getFormattedNodes(this.props.nodes),t=this.renderTreeNodes(e),n=(0,i.default)({"react-checkbox-tree":!0,"rct-disabled":this.props.disabled,"rct-native-display":this.props.nativeCheckboxes});return u.default.createElement("div",{className:n},this.renderHiddenInput(),t)}}]),t}();d.propTypes={nodes:c.default.arrayOf(f.default).isRequired,checked:c.default.arrayOf(c.default.string),disabled:c.default.bool,expandDisabled:c.default.bool,expandOnClick:c.default.bool,expanded:c.default.arrayOf(c.default.string),name:c.default.string,nameAsArray:c.default.bool,nativeCheckboxes:c.default.bool,noCascade:c.default.bool,onlyLeafCheckboxes:c.default.bool,optimisticToggle:c.default.bool,showNodeIcon:c.default.bool,onCheck:c.default.func,onClick:c.default.func,onExpand:c.default.func},d.defaultProps={checked:[],disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],name:void 0,nameAsArray:!1,nativeCheckboxes:!1,noCascade:!1,onlyLeafCheckboxes:!1,optimisticToggle:!0,showNodeIcon:!0,onCheck:function(){},onClick:function(){},onExpand:function(){}},t.default=d},function(e,t,n){"use strict";e.exports=n(103).default}])}); | ||
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===i)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}void 0!==e&&e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(2)),a=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,a.default.PureComponent),o(t,[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var e=this.props.indeterminate;this.checkbox.indeterminate=e}},{key:"render",value:function(){var e=this,t=r({},this.props);return delete t.indeterminate,a.default.createElement("input",r({},t,{ref:function(t){e.checkbox=t},type:"checkbox"}))}}]),t}();u.propTypes={indeterminate:i.default.bool},u.defaultProps={indeterminate:!1},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=s(n(25)),i=s(n(2)),a=s(n(9)),c=s(n(26)),u=s(n(13));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onCheck=n.onCheck.bind(n),n.onClick=n.onClick.bind(n),n.onExpand=n.onExpand.bind(n),n}return function(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)}(t,a.default.Component),r(t,[{key:"onCheck",value:function(){var e=!1;0===this.props.checked&&(e=!0),2===this.props.checked&&(e=this.props.optimisticToggle),this.props.onCheck({value:this.props.value,checked:e,children:this.props.rawChildren})}},{key:"onClick",value:function(){var e=!1;1===this.props.checked&&(e=!0),2===this.props.checked&&(e=this.props.optimisticToggle),this.hasChildren()&&this.props.expandOnClick&&this.onExpand(),this.props.onClick({value:this.props.value,checked:e,children:this.props.rawChildren})}},{key:"onExpand",value:function(){this.props.onExpand({value:this.props.value,expanded:!this.props.expanded})}},{key:"hasChildren",value:function(){return null!==this.props.rawChildren}},{key:"renderCollapseButton",value:function(){var e=this.props.expandDisabled;return this.hasChildren()?a.default.createElement("button",{"aria-label":"Toggle",className:"rct-collapse rct-collapse-btn",disabled:e,title:"Toggle",type:"button",onClick:this.onExpand},this.renderCollapseIcon()):a.default.createElement("span",{className:"rct-collapse"},a.default.createElement("span",{className:"rct-icon"}))}},{key:"renderCollapseIcon",value:function(){return this.props.expanded?a.default.createElement("span",{className:"rct-icon rct-icon-expand-open"}):a.default.createElement("span",{className:"rct-icon rct-icon-expand-close"})}},{key:"renderCheckboxIcon",value:function(){return 0===this.props.checked?a.default.createElement("span",{className:"rct-icon rct-icon-uncheck"}):1===this.props.checked?a.default.createElement("span",{className:"rct-icon rct-icon-check"}):a.default.createElement("span",{className:"rct-icon rct-icon-half-check"})}},{key:"renderNodeIcon",value:function(){return null!==this.props.icon?this.props.icon:this.hasChildren()?this.props.expanded?a.default.createElement("span",{className:"rct-icon rct-icon-parent-open"}):a.default.createElement("span",{className:"rct-icon rct-icon-parent-close"}):a.default.createElement("span",{className:"rct-icon rct-icon-leaf"})}},{key:"renderBareLabel",value:function(e){var n=this.props.onClick.toString()!==t.defaultProps.onClick.toString();return a.default.createElement("span",{className:"rct-bare-label"},n?a.default.createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},e):e)}},{key:"renderCheckboxLabel",value:function(e){var n=this.props,r=n.checked,o=n.disabled,i=(n.label,n.treeId),u=n.value,s=n.onClick.toString()!==t.defaultProps.onClick.toString(),l=i+"-"+(Number.isNaN(u)?u:u.split(" ").join("_")),f=[a.default.createElement("label",{key:0,htmlFor:l},a.default.createElement(c.default,{checked:1===r,disabled:o,id:l,indeterminate:2===r,onChange:this.onCheck}),a.default.createElement("span",{className:"rct-checkbox"},this.renderCheckboxIcon()),s?null:e)];return s&&f.push(a.default.createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},e)),f}},{key:"renderLabel",value:function(){var e=this.props,t=e.label,n=e.showCheckbox,r=[e.showNodeIcon?a.default.createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,a.default.createElement("span",{key:1,className:"rct-title"},t)];return n?this.renderCheckboxLabel(r):this.renderBareLabel(r)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.disabled,r=(0,o.default)({"rct-node":!0,"rct-node-parent":this.hasChildren(),"rct-node-leaf":!this.hasChildren(),"rct-disabled":n},t);return a.default.createElement("li",{className:r},a.default.createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}]),t}();l.propTypes={checked:i.default.number.isRequired,disabled:i.default.bool.isRequired,expandDisabled:i.default.bool.isRequired,expanded:i.default.bool.isRequired,label:i.default.node.isRequired,optimisticToggle:i.default.bool.isRequired,showNodeIcon:i.default.bool.isRequired,treeId:i.default.string.isRequired,value:i.default.string.isRequired,onCheck:i.default.func.isRequired,onExpand:i.default.func.isRequired,children:i.default.node,className:i.default.string,expandOnClick:i.default.bool,icon:i.default.node,rawChildren:i.default.arrayOf(u.default),showCheckbox:i.default.bool,onClick:i.default.func},l.defaultProps={children:null,className:null,expandOnClick:!1,icon:null,rawChildren:null,showCheckbox:!0,onClick:function(){}},t.default=l},function(e,t){var n=self.crypto||self.msCrypto;e.exports=function(e){return n.getRandomValues(new Uint8Array(e))}},function(e,t,n){var r=n(28);e.exports=function(e){for(var t="",n=r(e=e||21);0<e--;)t+="_~0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[63&n[e]];return t}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,a,c,u){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,c,u],f=0;(s=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";function r(e){return function(){return e}}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(e){return e},e.exports=o},function(e,t,n){"use strict";var r=n(32),o=n(31),i=n(30);e.exports=function(){function e(e,t,n,r,a,c){c!==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 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,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){var r=n(1)(n(0),"WeakMap");e.exports=r},function(e,t,n){var r=n(1)(n(0),"Set");e.exports=r},function(e,t,n){var r=n(1)(n(0),"Promise");e.exports=r},function(e,t,n){var r=n(1)(n(0),"DataView");e.exports=r},function(e,t,n){var r=n(37),o=n(12),i=n(36),a=n(35),c=n(34),u=n(6),s=n(20),l=s(r),f=s(o),p=s(i),d=s(a),h=s(c),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||c&&"[object WeakMap]"!=v(new c))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){var r=n(23),o=n(14);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(40)(Object.keys,Object);e.exports=r},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(42),o=n(41),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){(function(e){var r=n(22),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c}).call(this,n(16)(e))},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(6),o=n(14),i=n(3),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(6),o=n(3),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(49),o=n(3),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=u},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(51),o=n(50),i=n(10),a=n(17),c=n(47),u=n(15),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var b in e)!t&&!s.call(e,b)||d&&("length"==b||f&&("offset"==b||"parent"==b)||p&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||c(b,v))||h.push(b);return h}},function(e,t,n){var r=n(52),o=n(43),i=n(39);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t){e.exports=function(){return[]}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t,n){var r=n(55),o=n(54),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(57),o=n(10);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(58),o=n(56),i=n(53);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(59),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,c,u){var s=n&o,l=r(e),f=l.length;if(f!=r(t).length&&!s)return!1;for(var p=f;p--;){var d=l[p];if(!(s?d in t:i.call(t,d)))return!1}var h=u.get(e);if(h&&u.get(t))return h==t;var v=!0;u.set(e,t),u.set(t,e);for(var b=s;++p<f;){var y=e[d=l[p]],x=t[d];if(a)var _=s?a(x,y,d,t,e,u):a(y,x,d,e,t,u);if(!(void 0===_?y===x||c(y,x,n,a,u):_)){v=!1;break}b||(b="constructor"==d)}if(v&&!b){var k=e.constructor,m=t.constructor;k!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof k&&k instanceof k&&"function"==typeof m&&m instanceof m)&&(v=!1)}return u.delete(e),u.delete(t),v}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t,n){var r=n(0).Uint8Array;e.exports=r},function(e,t,n){var r=n(11),o=n(63),i=n(24),a=n(18),c=n(62),u=n(61),s=1,l=2,f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Map]",v="[object Number]",b="[object RegExp]",y="[object Set]",x="[object String]",_="[object Symbol]",k="[object ArrayBuffer]",m="[object DataView]",g=r?r.prototype:void 0,j=g?g.valueOf:void 0;e.exports=function(e,t,n,r,g,C,O){switch(n){case m:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!C(new o(e),new o(t)));case f:case p:case v:return i(+e,+t);case d:return e.name==t.name&&e.message==t.message;case b:case x:return e==t+"";case h:var w=c;case y:var E=r&s;if(w||(w=u),e.size!=t.size&&!E)return!1;var P=O.get(e);if(P)return P==t;r|=l,O.set(e,t);var N=a(w(e),w(t),r,g,C,O);return O.delete(e),N;case _:if(j)return j.call(e)==j.call(t)}return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t,n){var r=n(19),o=n(68),i=n(67);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t,n){var r=n(4);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(4);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(4);e.exports=function(e){return r(this,e).get(e)}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(4);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t,n){var r=n(5),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(5),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(5),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(5);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(79),o=n(78),i=n(77),a=n(76),c=n(75);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},function(e,t,n){var r=n(80),o=n(8),i=n(12);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(0)["__core-js_shared__"];e.exports=r},function(e,t,n){var r,o=n(83),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(11),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(23),o=n(84),i=n(21),a=n(20),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:c).test(a(e))}},function(e,t,n){var r=n(8),o=n(12),i=n(19),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var c=n.__data__;if(!o||c.length<a-1)return c.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(c)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t,n){var r=n(7);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(7);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(7);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(7),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(8),o=n(93),i=n(92),a=n(91),c=n(90),u=n(89);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,e.exports=s},function(e,t,n){var r=n(99),o=n(18),i=n(64),a=n(60),c=n(38),u=n(10),s=n(17),l=n(15),f=1,p="[object Arguments]",d="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,b,y,x){var _=u(e),k=u(t),m=_?d:c(e),g=k?d:c(t),j=(m=m==p?h:m)==h,C=(g=g==p?h:g)==h,O=m==g;if(O&&s(e)){if(!s(t))return!1;_=!0,j=!1}if(O&&!j)return x||(x=new r),_||l(e)?o(e,t,n,b,y,x):i(e,t,m,n,b,y,x);if(!(n&f)){var w=j&&v.call(e,"__wrapped__"),E=C&&v.call(t,"__wrapped__");if(w||E){var P=w?e.value():e,N=E?t.value():t;return x||(x=new r),y(P,N,n,b,x)}}return!!O&&(x||(x=new r),a(e,t,n,b,y,x))}},function(e,t,n){var r=n(100),o=n(3);e.exports=function e(t,n,i,a,c){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,c))}},function(e,t,n){var r=n(101);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=p(n(25)),a=p(n(102)),c=p(n(2)),u=p(n(9)),s=p(n(29)),l=p(n(27)),f=p(n(13));function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.id="rct-"+(0,s.default)(7),n.nodes={},n.flattenNodes(e.nodes),n.unserializeLists({checked:e.checked,expanded:e.expanded}),n.onCheck=n.onCheck.bind(n),n.onExpand=n.onExpand.bind(n),n}return function(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)}(t,u.default.Component),o(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.nodes,n=e.checked,r=e.expanded;(0,a.default)(this.props.nodes,t)||this.flattenNodes(t),this.unserializeLists({checked:n,expanded:r})}},{key:"onCheck",value:function(e){var t=this.props,n=t.noCascade,r=t.onCheck;this.toggleChecked(e,e.checked,n),r(this.serializeList("checked"),e)}},{key:"onExpand",value:function(e){var t=this.props.onExpand;this.toggleNode("expanded",e,e.expanded),t(this.serializeList("expanded"),e)}},{key:"getFormattedNodes",value:function(e){var t=this;return e.map(function(e){var n=r({},e);return n.checked=t.nodes[e.value].checked,n.expanded=t.nodes[e.value].expanded,n.showCheckbox=void 0===e.showCheckbox||e.showCheckbox,Array.isArray(e.children)&&e.children.length>0?n.children=t.getFormattedNodes(n.children):n.children=null,n})}},{key:"getCheckState",value:function(e,t){return null===e.children||t?e.checked?1:0:this.isEveryChildChecked(e)?1:this.isSomeChildChecked(e)?2:0}},{key:"getDisabledState",value:function(e,t,n,r){return!!n||(!(r||!t.disabled)||Boolean(e.disabled))}},{key:"toggleChecked",value:function(e,t,n){var r=this;null===e.children||n?this.toggleNode("checked",e,t):e.children.forEach(function(e){r.toggleChecked(e,t)})}},{key:"toggleNode",value:function(e,t,n){this.nodes[t.value][e]=n}},{key:"flattenNodes",value:function(e){var t=this;Array.isArray(e)&&0!==e.length&&e.forEach(function(e){t.nodes[e.value]={},t.flattenNodes(e.children)})}},{key:"unserializeLists",value:function(e){var t=this;Object.keys(this.nodes).forEach(function(n){Object.keys(e).forEach(function(e){t.nodes[n][e]=!1})}),Object.keys(e).forEach(function(n){e[n].forEach(function(e){void 0!==t.nodes[e]&&(t.nodes[e][n]=!0)})})}},{key:"serializeList",value:function(e){var t=this,n=[];return Object.keys(this.nodes).forEach(function(r){t.nodes[r][e]&&n.push(r)}),n}},{key:"isEveryChildChecked",value:function(e){var t=this;return e.children.every(function(e){return null!==e.children?t.isEveryChildChecked(e):e.checked})}},{key:"isSomeChildChecked",value:function(e){var t=this;return e.children.some(function(e){return null!==e.children?t.isSomeChildChecked(e):e.checked})}},{key:"renderTreeNodes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.props,o=r.disabled,i=r.expandDisabled,a=r.expandOnClick,c=r.noCascade,s=r.onlyLeafCheckboxes,f=r.optimisticToggle,p=r.showNodeIcon,d=r.onClick,h=e.map(function(e){var r=""+e.value,h=t.getCheckState(e,c),v=null===e.children,b=t.renderChildNodes(e),y=t.getDisabledState(e,n,o,c),x=s?v:e.showCheckbox;return u.default.createElement(l.default,{key:r,checked:h,className:e.className,disabled:y,expandDisabled:i,expandOnClick:a,expanded:e.expanded,icon:e.icon,label:e.label,optimisticToggle:f,rawChildren:e.children,showCheckbox:x,showNodeIcon:p,treeId:t.id,value:e.value,onCheck:t.onCheck,onClick:d,onExpand:t.onExpand},b)});return u.default.createElement("ol",null,h)}},{key:"renderChildNodes",value:function(e){return null!==e.children&&e.expanded?this.renderTreeNodes(e.children,e):null}},{key:"renderHiddenInput",value:function(){return void 0===this.props.name?null:this.props.nameAsArray?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var e=this;return this.props.checked.map(function(t){var n=e.props.name+"[]";return u.default.createElement("input",{key:t,name:n,type:"hidden",value:t})})}},{key:"renderJoinedHiddenInput",value:function(){var e=this.props.checked.join(",");return u.default.createElement("input",{name:this.props.name,type:"hidden",value:e})}},{key:"render",value:function(){var e=this.getFormattedNodes(this.props.nodes),t=this.renderTreeNodes(e),n=(0,i.default)({"react-checkbox-tree":!0,"rct-disabled":this.props.disabled,"rct-native-display":this.props.nativeCheckboxes});return u.default.createElement("div",{className:n},this.renderHiddenInput(),t)}}]),t}();d.propTypes={nodes:c.default.arrayOf(f.default).isRequired,checked:c.default.arrayOf(c.default.string),disabled:c.default.bool,expandDisabled:c.default.bool,expandOnClick:c.default.bool,expanded:c.default.arrayOf(c.default.string),name:c.default.string,nameAsArray:c.default.bool,nativeCheckboxes:c.default.bool,noCascade:c.default.bool,onlyLeafCheckboxes:c.default.bool,optimisticToggle:c.default.bool,showNodeIcon:c.default.bool,onCheck:c.default.func,onClick:c.default.func,onExpand:c.default.func},d.defaultProps={checked:[],disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],name:void 0,nameAsArray:!1,nativeCheckboxes:!1,noCascade:!1,onlyLeafCheckboxes:!1,optimisticToggle:!0,showNodeIcon:!0,onCheck:function(){},onClick:function(){},onExpand:function(){}},t.default=d},function(e,t,n){"use strict";e.exports=n(103).default}])}); |
{ | ||
"name": "react-checkbox-tree", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "A simple and elegant checkbox tree for React.", | ||
@@ -42,3 +42,3 @@ "author": "Jake Zatecky", | ||
"eslint-config-takiyon-react": "^0.3.0", | ||
"eslint-import-resolver-webpack": "^0.9.0", | ||
"eslint-import-resolver-webpack": "^0.10.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
@@ -51,3 +51,3 @@ "eslint-plugin-jsx-a11y": "^6.0.2", | ||
"gulp-header": "^2.0.5", | ||
"gulp-mocha": "^5.0.0", | ||
"gulp-mocha": "^6.0.0", | ||
"gulp-sass": "^4.0.1", | ||
@@ -54,0 +54,0 @@ "gulp-scss-lint": "^0.6.1", |
@@ -198,3 +198,3 @@ import classNames from 'classnames'; | ||
const clickable = onClick.toString() !== TreeNode.defaultProps.onClick.toString(); | ||
const inputId = `${treeId}-${value.split(' ').join('_')}`; | ||
const inputId = `${treeId}-${Number.isNaN(value) ? value : value.split(' ').join('_')}`; | ||
@@ -201,0 +201,0 @@ const render = [( |
Sorry, the diff of this file is not supported yet
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
405971