'use strict';

require('../../../../utils/index.js');
var color = require('./color.js');
var runtime = require('../../../../utils/props/runtime.js');

"use strict";
const parseColors = (colors, color$1) => {
  return colors.map((value) => {
    const c = new color.default();
    c.enableAlpha = true;
    c.format = "rgba";
    c.fromString(value);
    c.selected = c.value === color$1.value;
    return c;
  });
};
const preDefineProps = runtime.buildProps({
  colors: {
    type: runtime.definePropType(Array),
    required: true
  },
  color: {
    type: runtime.definePropType(Object),
    default: () => new color.default()
  }
});

exports.parseColors = parseColors;
exports.preDefineProps = preDefineProps;
//# sourceMappingURL=pre-define.js.map
