(window.webpackJsonp_stax=window.webpackJsonp_stax||[]).push([[5],{41:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return b}));var o=r(3);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=function(e,t){var r=t.source,o=t.valueKey,n=t.value;return"hex"===r?p({source:r},r,n):l({source:r},l(l({},e[r]),p({},o,n)))},b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(l,e);var t,r,o,n,s=(o=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=a(o);if(n){var r=a(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return f(this,e)});function l(){return i(this,l),s.apply(this,arguments)}return t=l,(r=[{key:"handleInputChange",value:function(e){switch(e.state){case"reset":this.resetDraftValues();break;case"commit":var t=y(this.state,e);(function(e){return"hex"===e.source&&void 0===e.hex||"hsl"===e.source&&(void 0===e.h||void 0===e.s||void 0===e.l)||!("rgb"!==e.source||void 0!==e.r&&void 0!==e.g&&void 0!==e.b||void 0!==e.h&&void 0!==e.s&&void 0!==e.v&&void 0!==e.a||void 0!==e.h&&void 0!==e.s&&void 0!==e.l&&void 0!==e.a)})(t)||this.commitValues(t);break;case"draft":this.setDraftValues(y(this.state,e))}}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.ColorPicker)}}]);