"use client";
'use strict';

// src/primitives/portfolio-form-controls-visuals.tsx
var PORTFOLIO_FORM_CONTROL_BORDER_HEX = "#ebeced";
var PORTFOLIO_FORM_CONTROL_PRIMARY_ACCENT_HEX = "#319e83";
var PORTFOLIO_CHECKBOX_ACCENT_HEX = PORTFOLIO_FORM_CONTROL_PRIMARY_ACCENT_HEX;
var PORTFOLIO_RADIO_ACCENT_HEX = PORTFOLIO_FORM_CONTROL_PRIMARY_ACCENT_HEX;
var PORTFOLIO_RADIO_SELECTED_INNER_FILL_HEX = PORTFOLIO_CHECKBOX_ACCENT_HEX;
var PORTFOLIO_FORM_CONTROL_DISABLED_FILL_HEX = "#a3a3a3";
var PORTFOLIO_FORM_CONTROL_GRADIENT_START_HEX = "#ECECED";
var PORTFOLIO_FORM_CONTROL_GRADIENT_MID_HEX = "#7A7B7F";
var PORTFOLIO_FORM_CONTROL_GRADIENT_END_HEX = "#ECECED";
var PORTFOLIO_FORM_CONTROL_SURFACE_HEX = "#fafafa";
var PORTFOLIO_CHECKBOX_DEFAULT_VISUALS = {
  accentColor: PORTFOLIO_CHECKBOX_ACCENT_HEX,
  gradientStartColor: PORTFOLIO_FORM_CONTROL_GRADIENT_START_HEX,
  gradientMidColor: PORTFOLIO_FORM_CONTROL_GRADIENT_MID_HEX,
  gradientEndColor: PORTFOLIO_FORM_CONTROL_GRADIENT_END_HEX,
  surfaceColor: PORTFOLIO_FORM_CONTROL_SURFACE_HEX,
  disabledFillColor: PORTFOLIO_FORM_CONTROL_DISABLED_FILL_HEX,
  glowSizePx: 12,
  glowBlurPx: 2,
  glowOpacity: 1,
  fillRadiusPx: 2
};
var PORTFOLIO_RADIO_DEFAULT_VISUALS = {
  accentColor: PORTFOLIO_RADIO_ACCENT_HEX,
  gradientStartColor: PORTFOLIO_FORM_CONTROL_GRADIENT_START_HEX,
  gradientMidColor: PORTFOLIO_FORM_CONTROL_GRADIENT_MID_HEX,
  gradientEndColor: PORTFOLIO_FORM_CONTROL_GRADIENT_END_HEX,
  surfaceColor: PORTFOLIO_FORM_CONTROL_SURFACE_HEX,
  disabledFillColor: PORTFOLIO_FORM_CONTROL_DISABLED_FILL_HEX,
  glowSizePx: 12,
  glowBlurPx: 2,
  glowOpacity: 1,
  dotSizePx: 10
};
function hexToRgbaString(hexColor, alpha) {
  const normalizedHex = hexColor.replace("#", "");
  const safeAlpha = Math.min(1, Math.max(0, alpha));
  if (normalizedHex.length !== 6) {
    return hexColor;
  }
  const red = Number.parseInt(normalizedHex.slice(0, 2), 16);
  const green = Number.parseInt(normalizedHex.slice(2, 4), 16);
  const blue = Number.parseInt(normalizedHex.slice(4, 6), 16);
  return `rgba(${red}, ${green}, ${blue}, ${safeAlpha})`;
}

exports.PORTFOLIO_CHECKBOX_ACCENT_HEX = PORTFOLIO_CHECKBOX_ACCENT_HEX;
exports.PORTFOLIO_CHECKBOX_DEFAULT_VISUALS = PORTFOLIO_CHECKBOX_DEFAULT_VISUALS;
exports.PORTFOLIO_FORM_CONTROL_BORDER_HEX = PORTFOLIO_FORM_CONTROL_BORDER_HEX;
exports.PORTFOLIO_FORM_CONTROL_DISABLED_FILL_HEX = PORTFOLIO_FORM_CONTROL_DISABLED_FILL_HEX;
exports.PORTFOLIO_FORM_CONTROL_GRADIENT_END_HEX = PORTFOLIO_FORM_CONTROL_GRADIENT_END_HEX;
exports.PORTFOLIO_FORM_CONTROL_GRADIENT_MID_HEX = PORTFOLIO_FORM_CONTROL_GRADIENT_MID_HEX;
exports.PORTFOLIO_FORM_CONTROL_GRADIENT_START_HEX = PORTFOLIO_FORM_CONTROL_GRADIENT_START_HEX;
exports.PORTFOLIO_FORM_CONTROL_PRIMARY_ACCENT_HEX = PORTFOLIO_FORM_CONTROL_PRIMARY_ACCENT_HEX;
exports.PORTFOLIO_FORM_CONTROL_SURFACE_HEX = PORTFOLIO_FORM_CONTROL_SURFACE_HEX;
exports.PORTFOLIO_RADIO_ACCENT_HEX = PORTFOLIO_RADIO_ACCENT_HEX;
exports.PORTFOLIO_RADIO_DEFAULT_VISUALS = PORTFOLIO_RADIO_DEFAULT_VISUALS;
exports.PORTFOLIO_RADIO_SELECTED_INNER_FILL_HEX = PORTFOLIO_RADIO_SELECTED_INNER_FILL_HEX;
exports.hexToRgbaString = hexToRgbaString;
//# sourceMappingURL=portfolio-form-controls-visuals.cjs.map
//# sourceMappingURL=portfolio-form-controls-visuals.cjs.map