"use strict";(self.webpackChunkneve=self.webpackChunkneve||[]).push([[324],{324:function(e,s,t){t.r(s),t.d(s,{default:function(){return a}});var o=t(609);const i=(e,{source:s,valueKey:t,value:o})=>"hex"===s?{source:s,[s]:o}:{source:s,...{...e[s],[t]:o}};class a extends o.ColorPicker{handleInputChange(e){switch(e.state){case"reset":this.resetDraftValues();break;case"commit":const s=i(this.state,e);(e=>"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))(s)||this.commitValues(s);break;case"draft":this.setDraftValues(i(this.state,e))}}}}}]);