{"version":3,"file":"styleUtils.mjs","names":["getEllipseColor","theme","color","ellipseColor","palette","primary","main","systemIcon","action","sequence","trigger","condition","secondary","info","warning","error","success","getEllipseHintColor","ellipseHintColor","hint","unity","common","white"],"sources":["../../../../src/utilities/style/utils/styleUtils.js"],"sourcesContent":["export const getEllipseColor = (theme, color) => {\n  if (!theme) {\n    return '';\n  }\n  let ellipseColor = theme.palette.primary.main;\n  switch (color) {\n    case 'action':\n      ellipseColor = theme.palette.systemIcon?.action?.main;\n      break;\n    case 'sequence':\n      ellipseColor = theme.palette.systemIcon?.sequence?.main;\n      break;\n    case 'trigger':\n      ellipseColor = theme.palette.systemIcon?.trigger?.main;\n      break;\n    case 'condition':\n      ellipseColor = theme.palette.systemIcon?.condition?.main;\n      break;\n    case 'primary':\n      ellipseColor = theme.palette.primary.main;\n      break;\n    case 'secondary':\n      ellipseColor = theme.palette.secondary.main;\n      break;\n    case 'info':\n      ellipseColor = theme.palette.info.main;\n      break;\n    case 'warning':\n      ellipseColor = theme.palette.warning.main;\n      break;\n    case 'error':\n      ellipseColor = theme.palette.error.main;\n      break;\n    case 'success':\n      ellipseColor = theme.palette.success.main;\n      break;\n    default:\n      ellipseColor = theme.palette.secondary.main;\n      break;\n  }\n  return ellipseColor;\n};\n\nexport const getEllipseHintColor = (theme, color) => {\n  if (!theme) {\n    return '';\n  }\n  let ellipseHintColor = theme.palette.primary.main;\n  switch (color) {\n    case 'action':\n      ellipseHintColor = theme.palette.systemIcon?.action?.hint;\n      break;\n    case 'sequence':\n      ellipseHintColor = theme.palette.systemIcon?.sequence?.hint;\n      break;\n    case 'trigger':\n      ellipseHintColor = theme.palette.systemIcon?.trigger?.hint;\n      break;\n    case 'condition':\n      ellipseHintColor = theme.palette.systemIcon?.condition?.hint;\n      break;\n    case 'primary':\n      ellipseHintColor = theme.palette.primary.hint;\n      break;\n    case 'secondary':\n      ellipseHintColor = theme.palette.secondary.hint;\n      break;\n    case 'info':\n      ellipseHintColor = theme.palette.unity?.info?.hint;\n      break;\n    case 'warning':\n      ellipseHintColor = theme.palette.unity?.warning?.hint;\n      break;\n    case 'error':\n      ellipseHintColor = theme.palette.unity?.error?.hint;\n      break;\n    case 'success':\n      ellipseHintColor = theme.palette.unity?.success?.hint;\n      break;\n    default:\n      ellipseHintColor = theme.palette.common.white;\n      break;\n  }\n\n  return ellipseHintColor;\n};\n"],"mappings":";AAAA,MAAaA,mBAAmBC,OAAOC,UAAU;AAC/C,KAAI,CAACD,MACH,QAAO;CAET,IAAIE,eAAeF,MAAMG,QAAQC,QAAQC;AACzC,SAAQJ,OAAR;EACE,KAAK;AACHC,kBAAeF,MAAMG,QAAQG,YAAYC,QAAQF;AACjD;EACF,KAAK;AACHH,kBAAeF,MAAMG,QAAQG,YAAYE,UAAUH;AACnD;EACF,KAAK;AACHH,kBAAeF,MAAMG,QAAQG,YAAYG,SAASJ;AAClD;EACF,KAAK;AACHH,kBAAeF,MAAMG,QAAQG,YAAYI,WAAWL;AACpD;EACF,KAAK;AACHH,kBAAeF,MAAMG,QAAQC,QAAQC;AACrC;EACF,KAAK;AACHH,kBAAeF,MAAMG,QAAQQ,UAAUN;AACvC;EACF,KAAK;AACHH,kBAAeF,MAAMG,QAAQS,KAAKP;AAClC;EACF,KAAK;AACHH,kBAAeF,MAAMG,QAAQU,QAAQR;AACrC;EACF,KAAK;AACHH,kBAAeF,MAAMG,QAAQW,MAAMT;AACnC;EACF,KAAK;AACHH,kBAAeF,MAAMG,QAAQY,QAAQV;AACrC;EACF;AACEH,kBAAeF,MAAMG,QAAQQ,UAAUN;AACvC;;AAEJ,QAAOH;;AAGT,MAAac,uBAAuBhB,OAAOC,UAAU;AACnD,KAAI,CAACD,MACH,QAAO;CAET,IAAIiB,mBAAmBjB,MAAMG,QAAQC,QAAQC;AAC7C,SAAQJ,OAAR;EACE,KAAK;AACHgB,sBAAmBjB,MAAMG,QAAQG,YAAYC,QAAQW;AACrD;EACF,KAAK;AACHD,sBAAmBjB,MAAMG,QAAQG,YAA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