"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("chroma-js"),e=require("validate-color");function t(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var n=t(r),a=t(e);exports.findParentBackground=function(r){for(var e=r;e;){var t=getComputedStyle(e).backgroundColor;if(t&&"transparent"!==t&&"rgba(0, 0, 0, 0)"!==t)return t;e=e.parentElement}return"#414141"},exports.getButtonStrokeColor=function(r,e){if(!e)return"#fff";var t=n.default(e),a=Number(t.alpha());return 0===a||n.default.mix(r||"#414141",t.alpha(1),a).luminance()>.7?"#000":"#fff"},exports.getValidColor=function(r){var e=null==r?void 0:r.trim();return e&&a.default(e)?e:null};
//# sourceMappingURL=ColorPicketUtils.js.map
