{"ast":null,"code":"import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport color from 'color';\nimport { black, white } from \"../../styles/themes/v2/colors\";\nimport { splitStyles } from \"../../utils/splitStyles\";\nvar isDark = function isDark(_ref) {\n  var dark = _ref.dark,\n    backgroundColor = _ref.backgroundColor;\n  if (typeof dark === 'boolean') {\n    return dark;\n  }\n  if (backgroundColor === 'transparent') {\n    return false;\n  }\n  if (backgroundColor !== 'transparent') {\n    return !color(backgroundColor).isLight();\n  }\n  return false;\n};\nvar getButtonBackgroundColor = function getButtonBackgroundColor(_ref2) {\n  var isMode = _ref2.isMode,\n    theme = _ref2.theme,\n    disabled = _ref2.disabled,\n    customButtonColor = _ref2.customButtonColor;\n  if (customButtonColor && !disabled) {\n    return customButtonColor;\n  }\n  if (theme.isV3) {\n    if (disabled) {\n      if (isMode('outlined') || isMode('text')) {\n        return 'transparent';\n      }\n      return theme.colors.surfaceDisabled;\n    }\n    if (isMode('elevated')) {\n      return theme.colors.elevation.level1;\n    }\n    if (isMode('contained')) {\n      return theme.colors.primary;\n    }\n    if (isMode('contained-tonal')) {\n      return theme.colors.secondaryContainer;\n    }\n  }\n  if (isMode('contained')) {\n    if (disabled) {\n      return color(theme.dark ? white : black).alpha(0.12).rgb().string();\n    }\n    return theme.colors.primary;\n  }\n  return 'transparent';\n};\nvar getButtonTextColor = function getButtonTextColor(_ref3) {\n  var isMode = _ref3.isMode,\n    theme = _ref3.theme,\n    disabled = _ref3.disabled,\n    customTextColor = _ref3.customTextColor,\n    backgroundColor = _ref3.backgroundColor,\n    dark = _ref3.dark;\n  if (customTextColor && !disabled) {\n    return customTextColor;\n  }\n  if (theme.isV3) {\n    if (disabled) {\n      return theme.colors.onSurfaceDisabled;\n    }\n    if (typeof dark === 'boolean') {\n      if (isMode('contained') || isMode('contained-tonal') || isMode('elevated')) {\n        return isDark({\n          dark: dark,\n          backgroundColor: backgroundColor\n        }) ? white : black;\n      }\n    }\n    if (isMode('outlined') || isMode('text') || isMode('elevated')) {\n      return theme.colors.primary;\n    }\n    if (isMode('contained')) {\n      return theme.colors.onPrimary;\n    }\n    if (isMode('contained-tonal')) {\n      return theme.colors.onSecondaryContainer;\n    }\n  }\n  if (disabled) {\n    return color(theme.dark ? white : black).alpha(0.32).rgb().string();\n  }\n  if (isMode('contained')) {\n    return isDark({\n      dark: dark,\n      backgroundColor: backgroundColor\n    }) ? white : black;\n  }\n  return theme.colors.primary;\n};\nvar getButtonBorderColor = function getButtonBorderColor(_ref4) {\n  var isMode = _ref4.isMode,\n    disabled = _ref4.disabled,\n    theme = _ref4.theme;\n  if (theme.isV3) {\n    if (disabled && isMode('outlined')) {\n      return theme.colors.surfaceDisabled;\n    }\n    if (isMode('outlined')) {\n      return theme.colors.outline;\n    }\n  }\n  if (isMode('outlined')) {\n    return color(theme.dark ? white : black).alpha(0.29).rgb().string();\n  }\n  return 'transparent';\n};\nvar getButtonBorderWidth = function getButtonBorderWidth(_ref5) {\n  var isMode = _ref5.isMode,\n    theme = _ref5.theme;\n  if (theme.isV3) {\n    if (isMode('outlined')) {\n      return 1;\n    }\n  }\n  if (isMode('outlined')) {\n    return StyleSheet.hairlineWidth;\n  }\n  return 0;\n};\nexport var getButtonColors = function getButtonColors(_ref6) {\n  var theme = _ref6.theme,\n    mode = _ref6.mode,\n    customButtonColor = _ref6.customButtonColor,\n    customTextColor = _ref6.customTextColor,\n    disabled = _ref6.disabled,\n    dark = _ref6.dark;\n  var isMode = function isMode(modeToCompare) {\n    return mode === modeToCompare;\n  };\n  var backgroundColor = getButtonBackgroundColor({\n    isMode: isMode,\n    theme: theme,\n    disabled: disabled,\n    customButtonColor: customButtonColor\n  });\n  var textColor = getButtonTextColor({\n    isMode: isMode,\n    theme: theme,\n    disabled: disabled,\n    customTextColor: customTextColor,\n    backgroundColor: backgroundColor,\n    dark: dark\n  });\n  var borderColor = getButtonBorderColor({\n    isMode: isMode,\n    theme: theme,\n    disabled: disabled\n  });\n  var borderWidth = getButtonBorderWidth({\n    isMode: isMode,\n    theme: theme\n  });\n  return {\n    backgroundColor: backgroundColor,\n    borderColor: borderColor,\n    textColor: textColor,\n    borderWidth: borderWidth\n  };\n};\nexport var getButtonTouchableRippleStyle = function getButtonTouchableRippleStyle(style) {\n  var borderWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n  if (!style) return {};\n  var touchableRippleStyle = {};\n  var _splitStyles = splitStyles(style, function (style) {\n      return style.startsWith('border') && style.endsWith('Radius');\n    }),\n    _splitStyles2 = _slicedToArray(_splitStyles, 2),\n    borderRadiusStyles = _splitStyles2[1];\n  Object.keys(borderRadiusStyles).forEach(function (key) {\n    var value = style[key];\n    if (typeof value === 'number') {\n      var radius = value > 0 ? value - borderWidth : 0;\n      touchableRippleStyle[key] = radius;\n    }\n  });\n  return touchableRippleStyle;\n};","map":{"version":3,"names":["color","black","white","splitStyles","isDark","_ref","dark","backgroundColor","isLight","getButtonBackgroundColor","_ref2","isMode","theme","disabled","customButtonColor","isV3","colors","surfaceDisabled","elevation","level1","primary","secondaryContainer","alpha","rgb","string","getButtonTextColor","_ref3","customTextColor","onSurfaceDisabled","onPrimary","onSecondaryContainer","getButtonBorderColor","_ref4","outline","getButtonBorderWidth","_ref5","StyleSheet","hairlineWidth","getButtonColors","_ref6","mode","modeToCompare","textColor","borderColor","borderWidth","getButtonTouchableRippleStyle","style","arguments","length","undefined","touchableRippleStyle","_splitStyles","startsWith","endsWith","_splitStyles2","_slicedToArray","borderRadiusStyles","Object","keys","forEach","key","value","radius"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/react-native-paper/src/components/Button/utils.tsx"],"sourcesContent":["import { StyleSheet, type ViewStyle } from 'react-native';\n\nimport color from 'color';\n\nimport { black, white } from '../../styles/themes/v2/colors';\nimport type { InternalTheme } from '../../types';\nimport { splitStyles } from '../../utils/splitStyles';\n\nexport type ButtonMode =\n  | 'text'\n  | 'outlined'\n  | 'contained'\n  | 'elevated'\n  | 'contained-tonal';\n\ntype BaseProps = {\n  isMode: (mode: ButtonMode) => boolean;\n  theme: InternalTheme;\n  disabled?: boolean;\n};\n\nconst isDark = ({\n  dark,\n  backgroundColor,\n}: {\n  dark?: boolean;\n  backgroundColor?: string;\n}) => {\n  if (typeof dark === 'boolean') {\n    return dark;\n  }\n\n  if (backgroundColor === 'transparent') {\n    return false;\n  }\n\n  if (backgroundColor !== 'transparent') {\n    return !color(backgroundColor).isLight();\n  }\n\n  return false;\n};\n\nconst getButtonBackgroundColor = ({\n  isMode,\n  theme,\n  disabled,\n  customButtonColor,\n}: BaseProps & {\n  customButtonColor?: string;\n}) => {\n  if (customButtonColor && !disabled) {\n    return customButtonColor;\n  }\n\n  if (theme.isV3) {\n    if (disabled) {\n      if (isMode('outlined') || isMode('text')) {\n        return 'transparent';\n      }\n\n      return theme.colors.surfaceDisabled;\n    }\n\n    if (isMode('elevated')) {\n      return theme.colors.elevation.level1;\n    }\n\n    if (isMode('contained')) {\n      return theme.colors.primary;\n    }\n\n    if (isMode('contained-tonal')) {\n      return theme.colors.secondaryContainer;\n    }\n  }\n\n  if (isMode('contained')) {\n    if (disabled) {\n      return color(theme.dark ? white : black)\n        .alpha(0.12)\n        .rgb()\n        .string();\n    }\n\n    return theme.colors.primary;\n  }\n\n  return 'transparent';\n};\n\nconst getButtonTextColor = ({\n  isMode,\n  theme,\n  disabled,\n  customTextColor,\n  backgroundColor,\n  dark,\n}: BaseProps & {\n  customTextColor?: string;\n  backgroundColor: string;\n  dark?: boolean;\n}) => {\n  if (customTextColor && !disabled) {\n    return customTextColor;\n  }\n\n  if (theme.isV3) {\n    if (disabled) {\n      return theme.colors.onSurfaceDisabled;\n    }\n\n    if (typeof dark === 'boolean') {\n      if (\n        isMode('contained') ||\n        isMode('contained-tonal') ||\n        isMode('elevated')\n      ) {\n        return isDark({ dark, backgroundColor }) ? white : black;\n      }\n    }\n\n    if (isMode('outlined') || isMode('text') || isMode('elevated')) {\n      return theme.colors.primary;\n    }\n\n    if (isMode('contained')) {\n      return theme.colors.onPrimary;\n    }\n\n    if (isMode('contained-tonal')) {\n      return theme.colors.onSecondaryContainer;\n    }\n  }\n\n  if (disabled) {\n    return color(theme.dark ? white : black)\n      .alpha(0.32)\n      .rgb()\n      .string();\n  }\n\n  if (isMode('contained')) {\n    return isDark({ dark, backgroundColor }) ? white : black;\n  }\n\n  return theme.colors.primary;\n};\n\nconst getButtonBorderColor = ({ isMode, disabled, theme }: BaseProps) => {\n  if (theme.isV3) {\n    if (disabled && isMode('outlined')) {\n      return theme.colors.surfaceDisabled;\n    }\n\n    if (isMode('outlined')) {\n      return theme.colors.outline;\n    }\n  }\n\n  if (isMode('outlined')) {\n    return color(theme.dark ? white : black)\n      .alpha(0.29)\n      .rgb()\n      .string();\n  }\n\n  return 'transparent';\n};\n\nconst getButtonBorderWidth = ({\n  isMode,\n  theme,\n}: Omit<BaseProps, 'disabled'>) => {\n  if (theme.isV3) {\n    if (isMode('outlined')) {\n      return 1;\n    }\n  }\n\n  if (isMode('outlined')) {\n    return StyleSheet.hairlineWidth;\n  }\n\n  return 0;\n};\n\nexport const getButtonColors = ({\n  theme,\n  mode,\n  customButtonColor,\n  customTextColor,\n  disabled,\n  dark,\n}: {\n  theme: InternalTheme;\n  mode: ButtonMode;\n  customButtonColor?: string;\n  customTextColor?: string;\n  disabled?: boolean;\n  dark?: boolean;\n}) => {\n  const isMode = (modeToCompare: ButtonMode) => {\n    return mode === modeToCompare;\n  };\n\n  const backgroundColor = getButtonBackgroundColor({\n    isMode,\n    theme,\n    disabled,\n    customButtonColor,\n  });\n\n  const textColor = getButtonTextColor({\n    isMode,\n    theme,\n    disabled,\n    customTextColor,\n    backgroundColor,\n    dark,\n  });\n\n  const borderColor = getButtonBorderColor({ isMode, theme, disabled });\n\n  const borderWidth = getButtonBorderWidth({ isMode, theme });\n\n  return {\n    backgroundColor,\n    borderColor,\n    textColor,\n    borderWidth,\n  };\n};\n\ntype ViewStyleBorderRadiusStyles = Partial<\n  Pick<\n    ViewStyle,\n    | 'borderBottomEndRadius'\n    | 'borderBottomLeftRadius'\n    | 'borderBottomRightRadius'\n    | 'borderBottomStartRadius'\n    | 'borderTopEndRadius'\n    | 'borderTopLeftRadius'\n    | 'borderTopRightRadius'\n    | 'borderTopStartRadius'\n    | 'borderRadius'\n  >\n>;\nexport const getButtonTouchableRippleStyle = (\n  style?: ViewStyle,\n  borderWidth: number = 0\n): ViewStyleBorderRadiusStyles => {\n  if (!style) return {};\n  const touchableRippleStyle: ViewStyleBorderRadiusStyles = {};\n\n  const [, borderRadiusStyles] = splitStyles(\n    style,\n    (style) => style.startsWith('border') && style.endsWith('Radius')\n  );\n\n  (\n    Object.keys(borderRadiusStyles) as Array<keyof ViewStyleBorderRadiusStyles>\n  ).forEach((key) => {\n    const value = style[key as keyof ViewStyleBorderRadiusStyles];\n    if (typeof value === 'number') {\n      // Only subtract borderWidth if value is greater than 0\n      const radius = value > 0 ? value - borderWidth : 0;\n      touchableRippleStyle[key as keyof ViewStyleBorderRadiusStyles] = radius;\n    }\n  });\n  return touchableRippleStyle;\n};\n"],"mappings":";;AAEA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,KAAK,EAAEC,KAAK;AAErB,SAASC,WAAW;AAepB,IAAMC,MAAM,GAAG,SAATA,MAAMA,CAAAC,IAAA,EAMN;EAAA,IALJC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,eAAA,GAAAF,IAAA,CAAAE,eAAA;EAKA,IAAI,OAAOD,IAAI,KAAK,SAAS,EAAE;IAC7B,OAAOA,IAAI;EACb;EAEA,IAAIC,eAAe,KAAK,aAAa,EAAE;IACrC,OAAO,KAAK;EACd;EAEA,IAAIA,eAAe,KAAK,aAAa,EAAE;IACrC,OAAO,CAACP,KAAK,CAACO,eAAe,CAAC,CAACC,OAAO,CAAC,CAAC;EAC1C;EAEA,OAAO,KAAK;AACd,CAAC;AAED,IAAMC,wBAAwB,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