{"version":3,"sources":["../src/components/Theme/v8ThemeShim.ts"],"sourcesContent":["import type { IPalette, ISemanticColors, IFontStyles, IFontWeight, IEffects, Theme as ThemeV8 } from '@fluentui/react';\nimport { createTheme, DefaultPalette } from '@fluentui/react';\nimport { fluent2ComponentStyles } from '@fluentui/fluent2-theme';\n\nimport type { BrandVariants, Theme as ThemeV9 } from '@fluentui/react-components';\n\nimport { black, blackAlpha, grey, sharedColors, white, whiteAlpha } from './themeDuplicates';\n\nconst mappedNeutrals = {\n  black,\n  blackTranslucent40: blackAlpha[40],\n  neutralDark: grey[8],\n  neutralPrimary: grey[14],\n  neutralPrimaryAlt: grey[22],\n  neutralSecondary: grey[36],\n  neutralSecondaryAlt: grey[52],\n  neutralTertiary: grey[62],\n  neutralTertiaryAlt: grey[78],\n  neutralQuaternary: grey[82],\n  neutralQuaternaryAlt: grey[88],\n  neutralLight: grey[92],\n  neutralLighter: grey[96],\n  neutralLighterAlt: grey[98],\n  white,\n  whiteTranslucent40: whiteAlpha[40],\n};\n\nconst invertedMappedNeutrals = {\n  black: white,\n  blackTranslucent40: whiteAlpha[40],\n  neutralDark: grey[98],\n  neutralPrimary: grey[96],\n  neutralPrimaryAlt: grey[84],\n  neutralSecondary: grey[82],\n  neutralSecondaryAlt: grey[74],\n  neutralTertiary: grey[44],\n  neutralTertiaryAlt: grey[26],\n  neutralQuaternary: grey[24],\n  neutralQuaternaryAlt: grey[18],\n  neutralLight: grey[16],\n  neutralLighter: grey[14],\n  neutralLighterAlt: grey[10],\n  white: black,\n  whiteTranslucent40: blackAlpha[40],\n};\n\nconst mappedSharedColors = {\n  yellowDark: sharedColors.marigold.shade10,\n  yellow: sharedColors.yellow.primary,\n  yellowLight: sharedColors.yellow.tint40,\n  orange: sharedColors.orange.primary,\n  orangeLight: sharedColors.orange.tint20,\n  orangeLighter: sharedColors.orange.tint40,\n  redDark: sharedColors.darkRed.primary,\n  red: sharedColors.red.primary,\n  magentaDark: sharedColors.magenta.shade30,\n  magenta: sharedColors.magenta.primary,\n  magentaLight: sharedColors.magenta.tint30,\n  purpleDark: sharedColors.darkPurple.primary,\n  purple: sharedColors.purple.primary,\n  purpleLight: sharedColors.purple.tint40,\n  blueDark: sharedColors.darkBlue.primary,\n  blueMid: sharedColors.royalBlue.primary,\n  blue: sharedColors.blue.primary,\n  blueLight: sharedColors.lightBlue.primary,\n  tealDark: sharedColors.darkTeal.primary,\n  teal: sharedColors.teal.primary,\n  tealLight: sharedColors.lightTeal.primary,\n  greenDark: sharedColors.darkGreen.primary,\n  green: sharedColors.green.primary,\n  greenLight: sharedColors.lightGreen.primary,\n};\n\n/**\n * Creates a v8 palette given a brand ramp\n */\nconst mapPalette = (brandColors: BrandVariants, inverted: boolean): IPalette => {\n  const neutrals = inverted ? invertedMappedNeutrals : mappedNeutrals;\n  const brands = inverted\n    ? {\n        themeDarker: brandColors[110],\n        themeDark: brandColors[100],\n        themeDarkAlt: brandColors[100],\n        themePrimary: brandColors[90],\n        themeSecondary: brandColors[90],\n        themeTertiary: brandColors[60],\n        themeLight: brandColors[50],\n        themeLighter: brandColors[40],\n        themeLighterAlt: brandColors[30],\n      }\n    : {\n        themeDarker: brandColors[40],\n        themeDark: brandColors[60],\n        themeDarkAlt: brandColors[70],\n        themePrimary: brandColors[80],\n        themeSecondary: brandColors[90],\n        themeTertiary: brandColors[120],\n        themeLight: brandColors[140],\n        themeLighter: brandColors[150],\n        themeLighterAlt: brandColors[160],\n      };\n\n  return {\n    ...DefaultPalette,\n    ...neutrals,\n    accent: brands.themePrimary,\n    ...mappedSharedColors,\n    ...brands,\n  };\n};\n\n/**\n * Returns v9 theme colors overlaid on a base set of v8 semantic colors\n */\nconst mapSemanticColors = (baseColors: ISemanticColors, theme: ThemeV9): ISemanticColors => {\n  return {\n    ...baseColors,\n    accentButtonBackground: theme.colorBrandBackground,\n    accentButtonText: theme.colorNeutralForegroundOnBrand,\n    actionLink: theme.colorNeutralForeground1,\n    actionLinkHovered: theme.colorNeutralForeground1Hover,\n    // blockingBackground,\n    // blockingIcon,\n    bodyBackground: theme.colorNeutralBackground1,\n    bodyBackgroundChecked: theme.colorNeutralBackground1Selected,\n    bodyBackgroundHovered: theme.colorNeutralBackground1Hover,\n    bodyDivider: theme.colorNeutralStroke2,\n    bodyFrameBackground: theme.colorNeutralBackground1,\n    bodyFrameDivider: theme.colorNeutralStroke2,\n    bodyStandoutBackground: theme.colorNeutralBackground2,\n    bodySubtext: theme.colorNeutralForeground2,\n    bodyText: theme.colorNeutralForeground1,\n    bodyTextChecked: theme.colorNeutralForeground1Selected,\n    buttonBackground: theme.colorNeutralBackground1,\n    buttonBackgroundChecked: theme.colorNeutralBackground1Selected,\n    buttonBackgroundCheckedHovered: theme.colorNeutralBackground1Hover,\n    buttonBackgroundDisabled: theme.colorNeutralBackgroundDisabled,\n    buttonBackgroundHovered: theme.colorNeutralBackground1Hover,\n    buttonBackgroundPressed: theme.colorNeutralBackground1Pressed,\n    buttonBorder: theme.colorNeutralStroke1,\n    buttonBorderDisabled: theme.colorNeutralStrokeDisabled,\n    buttonText: theme.colorNeutralForeground1,\n    buttonTextChecked: theme.colorNeutralForeground1,\n    buttonTextCheckedHovered: theme.colorNeutralForeground1,\n    buttonTextDisabled: theme.colorNeutralForegroundDisabled,\n    buttonTextHovered: theme.colorNeutralForeground1,\n    buttonTextPressed: theme.colorNeutralForeground1,\n    cardShadow: theme.shadow4,\n    cardShadowHovered: theme.shadow8,\n    cardStandoutBackground: theme.colorNeutralBackground1,\n    defaultStateBackground: theme.colorNeutralBackground2,\n    disabledBackground: theme.colorNeutralBackgroundDisabled,\n    disabledBodySubtext: theme.colorNeutralForegroundDisabled,\n    disabledBodyText: theme.colorNeutralForegroundDisabled,\n    disabledBorder: theme.colorNeutralStrokeDisabled,\n    disabledSubtext: theme.colorNeutralForegroundDisabled,\n    disabledText: theme.colorNeutralForegroundDisabled,\n    // errorBackground,\n    // errorIcon,\n    // errorText: ,\n    focusBorder: theme.colorStrokeFocus2,\n    // infoBackground,\n    // infoIcon,\n    inputBackground: theme.colorNeutralBackground1,\n    inputBackgroundChecked: theme.colorBrandBackground,\n    inputBackgroundCheckedHovered: theme.colorBrandBackgroundHover,\n    inputBorder: theme.colorNeutralStrokeAccessible,\n    inputBorderHovered: theme.colorNeutralStrokeAccessibleHover,\n    inputFocusBorderAlt: theme.colorBrandStroke1,\n    inputForegroundChecked: theme.colorNeutralForegroundOnBrand,\n    inputIcon: theme.colorNeutralForeground3,\n    inputIconDisabled: theme.colorNeutralForegroundDisabled,\n    inputIconHovered: theme.colorNeutralForeground3,\n    inputPlaceholderBackgroundChecked: theme.colorBrandBackgroundInvertedSelected,\n    inputPlaceholderText: theme.colorNeutralForeground4,\n    inputText: theme.colorNeutralForeground1,\n    inputTextHovered: theme.colorNeutralForeground1Hover,\n    link: theme.colorBrandForegroundLink,\n    linkHovered: theme.colorBrandForegroundLinkHover,\n    listBackground: theme.colorNeutralBackground1,\n    listHeaderBackgroundHovered: theme.colorNeutralBackground1Hover,\n    listHeaderBackgroundPressed: theme.colorNeutralBackground1Pressed,\n    listItemBackgroundChecked: theme.colorNeutralBackground1Selected,\n    listItemBackgroundCheckedHovered: theme.colorNeutralBackground1Selected,\n    listItemBackgroundHovered: theme.colorNeutralBackground1Hover,\n    listText: theme.colorNeutralForeground1,\n    listTextColor: theme.colorNeutralForeground1,\n    menuBackground: theme.colorNeutralBackground1,\n    menuDivider: theme.colorNeutralStroke2,\n    menuHeader: theme.colorNeutralForeground3,\n    menuIcon: theme.colorNeutralForeground1,\n    menuItemBackgroundChecked: theme.colorNeutralBackground1,\n    menuItemBackgroundHovered: theme.colorNeutralBackground1Hover,\n    menuItemBackgroundPressed: theme.colorNeutralBackground1Hover,\n    menuItemText: theme.colorNeutralForeground1,\n    menuItemTextHovered: theme.colorNeutralForeground1Hover,\n    messageLink: theme.colorBrandForegroundLink,\n    messageLinkHovered: theme.colorBrandForegroundLinkHover,\n    messageText: theme.colorNeutralForeground1,\n    primaryButtonBackground: theme.colorBrandBackground,\n    primaryButtonBackgroundDisabled: theme.colorNeutralBackgroundDisabled,\n    primaryButtonBackgroundHovered: theme.colorBrandBackgroundHover,\n    primaryButtonBackgroundPressed: theme.colorBrandBackgroundPressed,\n    primaryButtonBorder: theme.colorTransparentStroke,\n    primaryButtonText: theme.colorNeutralForegroundOnBrand,\n    primaryButtonTextDisabled: theme.colorNeutralForegroundDisabled,\n    primaryButtonTextHovered: theme.colorNeutralForegroundOnBrand,\n    primaryButtonTextPressed: theme.colorNeutralForegroundOnBrand,\n    // severeWarningBackground,\n    // severeWarningIcon,\n    // smallInputBorder,\n    // successBackground,\n    // successIcon,\n    // successText: ,\n    // variantBorder,\n    // variantBorderHovered,\n    // warningBackground,\n    // warningHighlight,\n    // warningIcon,\n    // warningText: ,\n  };\n};\n\n/**\n * Overlays v9 fonts on a set of base v8 fonts.\n */\nconst mapFonts = (baseFonts: IFontStyles, theme: ThemeV9): IFontStyles => {\n  return {\n    ...baseFonts,\n    tiny: {\n      ...baseFonts.tiny,\n      fontFamily: theme.fontFamilyBase,\n      fontSize: theme.fontSizeBase100,\n      fontWeight: theme.fontWeightRegular as IFontWeight,\n    },\n    xSmall: {\n      ...baseFonts.xSmall,\n      fontFamily: theme.fontFamilyBase,\n      fontSize: theme.fontSizeBase100,\n      fontWeight: theme.fontWeightRegular as IFontWeight,\n    },\n    small: {\n      ...baseFonts.small,\n      fontFamily: theme.fontFamilyBase,\n      fontSize: theme.fontSizeBase200,\n      fontWeight: theme.fontWeightRegular as IFontWeight,\n    },\n    smallPlus: {\n      ...baseFonts.smallPlus,\n      fontFamily: theme.fontFamilyBase,\n      fontSize: theme.fontSizeBase200,\n      fontWeight: theme.fontWeightRegular as IFontWeight,\n    },\n    medium: {\n      ...baseFonts.medium,\n      fontFamily: theme.fontFamilyBase,\n      fontSize: theme.fontSizeBase300,\n      fontWeight: theme.fontWeightRegular as IFontWeight,\n    },\n    mediumPlus: {\n      ...baseFonts.mediumPlus,\n      fontFamily: theme.fontFamilyBase,\n      fontSize: theme.fontSizeBase400,\n      fontWeight: theme.fontWeightRegular as IFontWeight,\n    },\n    large: {\n      ...baseFonts.large,\n      fontFamily: theme.fontFamilyBase,\n      fontSize: theme.fontSizeBase400,\n      fontWeight: theme.fontWeightRegular as IFontWeight,\n    },\n    xLarge: {\n      ...baseFonts.xxLarge,\n      fontFamily: theme.fontFamilyBase,\n      fontSize: theme.fontSizeBase500,\n      fontWeight: theme.fontWeightSemibold as IFontWeight,\n    },\n    xxLarge: {\n      ...baseFonts.xxLarge,\n      fontFamily: theme.fontFamilyBase,\n      fontSize: theme.fontSizeHero700,\n      fontWeight: theme.fontWeightSemibold as IFontWeight,\n    },\n    superLarge: {\n      ...baseFonts.superLarge,\n      fontFamily: theme.fontFamilyBase,\n      fontSize: theme.fontSizeHero900,\n      fontWeight: theme.fontWeightSemibold as IFontWeight,\n    },\n    mega: {\n      ...baseFonts.mega,\n      fontFamily: theme.fontFamilyBase,\n      fontSize: theme.fontSizeHero1000,\n      fontWeight: theme.fontWeightSemibold as IFontWeight,\n    },\n  };\n};\n\n/**\n * Overlays v9 shadows and border radii on a base set of v8 effects.\n */\nconst mapEffects = (baseEffects: IEffects, theme: ThemeV9): IEffects => {\n  return {\n    ...baseEffects,\n    elevation4: theme.shadow4,\n    elevation8: theme.shadow8,\n    elevation16: theme.shadow16,\n    elevation64: theme.shadow64,\n    roundedCorner2: theme.borderRadiusSmall,\n    roundedCorner4: theme.borderRadiusMedium,\n    roundedCorner6: theme.borderRadiusLarge,\n  };\n};\n\n/**\n * Creates a v8 theme from v9 brand colors and theme.\n * You can optionally pass a v8 base theme.\n * Otherwise the default v8 theme is used.\n *\n * The v9 colors, fonts, and effects are applied on top of the v8 theme\n * to allow v8 components to look as much like v9 components as possible.\n */\nexport const createV8Theme = (\n  brandColors: BrandVariants,\n  themeV9: ThemeV9,\n  isDarkTheme: boolean = false,\n  themeV8?: ThemeV8,\n): ThemeV8 => {\n  const baseTheme = themeV8 || createTheme({ isInverted: isDarkTheme });\n\n  return {\n    ...baseTheme,\n    palette: mapPalette(brandColors, isDarkTheme),\n    components: fluent2ComponentStyles,\n    semanticColors: mapSemanticColors(baseTheme.semanticColors, themeV9),\n    fonts: mapFonts(baseTheme.fonts, themeV9),\n    effects: mapEffects(baseTheme.effects, themeV9),\n    isInverted: isDarkTheme || themeV8?.isInverted === true,\n  };\n};\n"],"names":["createTheme","DefaultPalette","fluent2ComponentStyles","black","blackAlpha","grey","sharedColors","white","whiteAlpha","mappedNeutrals","blackTranslucent40","neutralDark","neutralPrimary","neutralPrimaryAlt","neutralSecondary","neutralSecondaryAlt","neutralTertiary","neutralTertiaryAlt","neutralQuaternary","neutralQuaternaryAlt","neutralLight","neutralLighter","neutralLighterAlt","whiteTranslucent40","invertedMappedNeutrals","mappedSharedColors","yellowDark","marigold","shade10","yellow","primary","yellowLight","tint40","orange","orangeLight","tint20","orangeLighter","redDark","darkRed","red","magentaDark","magenta","shade30","magentaLight","tint30","purpleDark","darkPurple","purple","purpleLight","blueDark","darkBlue","blueMid","royalBlue","blue","blueLight","lightBlue","tealDark","darkTeal","teal","tealLight","lightTeal","greenDark","darkGreen","green","greenLight","lightGreen","mapPalette","brandColors","inverted","neutrals","brands","themeDarker","themeDark","themeDarkAlt","themePrimary","themeSecondary","themeTertiary","themeLight","themeLighter","themeLighterAlt","accent","mapSemanticColors","baseColors","theme","accentButtonBackground","colorBrandBackground","accentButtonText","colorNeutralForegroundOnBrand","actionLink","colorNeutralForeground1","actionLinkHovered","colorNeutralForeground1Hover","bodyBackground","colorNeutralBackground1","bodyBackgroundChecked","colorNeutralBackground1Selected","bodyBackgroundHovered","colorNeutralBackground1Hover","bodyDivider","colorNeutralStroke2","bodyFrameBackground","bodyFrameDivider","bodyStandoutBackground","colorNeutralBackground2","bodySubtext","colorNeutralForeground2","bodyText","bodyTextChecked","colorNeutralForeground1Selected","buttonBackground","buttonBackgroundChecked","buttonBackgroundCheckedHovered","buttonBackgroundDisabled","colorNeutralBackgroundDisabled","buttonBackgroundHovered","buttonBackgroundPressed","colorNeutralBackground1Pressed","buttonBorder","colorNeutralStroke1","buttonBorderDisabled","colorNeutralStrokeDisabled","buttonText","buttonTextChecked","buttonTextCheckedHovered","buttonTextDisabled","colorNeutralForegroundDisabled","buttonTextHovered","buttonTextPressed","cardShadow","shadow4","cardShadowHovered","shadow8","cardStandoutBackground","defaultStateBackground","disabledBackground","disabledBodySubtext","disabledBodyText","disabledBorder","disabledSubtext","disabledText","focusBorder","colorStrokeFocus2","inputBackground","inputBackgroundChecked","inputBackgroundCheckedHovered","colorBrandBackgroundHover","inputBorder","colorNeutralStrokeAccessible","inputBorderHovered","colorNeutralStrokeAccessibleHover","inputFocusBorderAlt","colorBrandStroke1","inputForegroundChecked","inputIcon","colorNeutralForeground3","inputIconDisabled","inputIconHovered","inputPlaceholderBackgroundChecked","colorBrandBackgroundInvertedSelected","inputPlaceholderText","colorNeutralForeground4","inputText","inputTextHovered","link","colorBrandForegroundLink","linkHovered","colorBrandForegroundLinkHover","listBackground","listHeaderBackgroundHovered","listHeaderBackgroundPressed","listItemBackgroundChecked","listItemBackgroundCheckedHovered","listItemBackgroundHovered","listText","listTextColor","menuBackground","menuDivider","menuHeader","menuIcon","menuItemBackgroundChecked","menuItemBackgroundHovered","menuItemBackgroundPressed","menuItemText","menuItemTextHovered","messageLink","messageLinkHovered","messageText","primaryButtonBackground","primaryButtonBackgroundDisabled","primaryButtonBackgroundHovered","primaryButtonBackgroundPressed","colorBrandBackgroundPressed","primaryButtonBorder","colorTransparentStroke","primaryButtonText","primaryButtonTextDisabled","primaryButtonTextHovered","primaryButtonTextPressed","mapFonts","baseFonts","tiny","fontFamily","fontFamilyBase","fontSize","fontSizeBase100","fontWeight","fontWeightRegular","xSmall","small","fontSizeBase200","smallPlus","medium","fontSizeBase300","mediumPlus","fontSizeBase400","large","xLarge","xxLarge","fontSizeBase500","fontWeightSemibold","fontSizeHero700","superLarge","fontSizeHero900","mega","fontSizeHero1000","mapEffects","baseEffects","elevation4","elevation8","elevation16","shadow16","elevation64","shadow64","roundedCorner2","borderRadiusSmall","roundedCorner4","borderRadiusMedium","roundedCorner6","borderRadiusLarge","createV8Theme","themeV9","isDarkTheme","themeV8","baseTheme","isInverted","palette","components","semanticColors","fonts","effects"],"mappings":";;;;;;;eAkUa+O;;;uBAjU+B,kBAAkB;8BACvB,0BAA0B;iCAIQ,uBAAoB;AAE7F,MAAMtO,iBAAiB;WACrBN,sBAAAA;IACAO,oBAAoBN,2BAAU,CAAC,GAAG;IAClCO,aAAaN,qBAAI,CAAC,EAAE;IACpBO,gBAAgBP,qBAAI,CAAC,GAAG;IACxBQ,mBAAmBR,qBAAI,CAAC,GAAG;IAC3BS,kBAAkBT,qBAAI,CAAC,GAAG;IAC1BU,qBAAqBV,qBAAI,CAAC,GAAG;IAC7BW,iBAAiBX,qBAAI,CAAC,GAAG;IACzBY,oBAAoBZ,qBAAI,CAAC,GAAG;IAC5Ba,mBAAmBb,qBAAI,CAAC,GAAG;IAC3Bc,sBAAsBd,qBAAI,CAAC,GAAG;IAC9Be,cAAcf,qBAAI,CAAC,GAAG;IACtBgB,gBAAgBhB,qBAAI,CAAC,GAAG;IACxBiB,mBAAmBjB,qBAAI,CAAC,GAAG;WAC3BE,sBAAAA;IACAgB,oBAAoBf,2BAAU,CAAC,GAAG;AACpC;AAEA,MAAMgB,yBAAyB;IAC7BrB,OAAOI,sBAAAA;IACPG,oBAAoBF,2BAAU,CAAC,GAAG;IAClCG,aAAaN,qBAAI,CAAC,GAAG;IACrBO,gBAAgBP,qBAAI,CAAC,GAAG;IACxBQ,mBAAmBR,qBAAI,CAAC,GAAG;IAC3BS,kBAAkBT,qBAAI,CAAC,GAAG;IAC1BU,qBAAqBV,qBAAI,CAAC,GAAG;IAC7BW,iBAAiBX,qBAAI,CAAC,GAAG;IACzBY,oBAAoBZ,qBAAI,CAAC,GAAG;IAC5Ba,mBAAmBb,qBAAI,CAAC,GAAG;IAC3Bc,sBAAsBd,qBAAI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