{"version":3,"file":"SvgIcon.cjs","names":["svgIconComponents","odysseyTokens","MuiSvgIcon","defaultProps","fontSize","color","styleOverrides","root","ownerState","TypographyLineHeightUi","Number","exports"],"sources":["../../../../src/theme/components/SvgIcon.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\n\nimport type { GetComponentsProps } from \"./types.js\";\n\nexport const svgIconComponents = ({\n  odysseyTokens,\n}: GetComponentsProps): Pick<\n  NonNullable<ThemeOptions[\"components\"]>,\n  \"MuiSvgIcon\"\n> => ({\n  MuiSvgIcon: {\n    defaultProps: {\n      fontSize: \"inherit\",\n      color: \"inherit\",\n    },\n    styleOverrides: {\n      root: ({ ownerState }) => ({\n        fontSize: `${odysseyTokens.TypographyLineHeightUi}rem`,\n\n        ...(ownerState.fontSize === \"small\" && {\n          fontSize: `${Number(odysseyTokens.TypographyLineHeightUi) * 0.75}rem`,\n        }),\n\n        ...(ownerState.fontSize === \"large\" && {\n          fontSize: `${Number(odysseyTokens.TypographyLineHeightUi) * 1.25}rem`,\n        }),\n      }),\n    },\n  },\n});\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,MAAMA,iBAAiB,GAAGA,CAAC;EAChCC;AACkB,CAAC,MAGf;EACJC,UAAU,EAAE;IACVC,YAAY,EAAE;MACZC,QAAQ,EAAE,SAAS;MACnBC,KAAK,EAAE;IACT,CAAC;IACDC,cAAc,EAAE;MACdC,IAAI,EAAEA,CAAC;QAAEC;MAAW,CAAC,MAAM;QACzBJ,QAAQ,EAAE,GAAGH,aAAa,CAACQ,sBAAsB,KAAK;QAEtD,IAAID,UAAU,CAACJ,QAAQ,KAAK,OAAO,IAAI;UACrCA,QAAQ,EAAE,GAAGM,MAAM,CAACT,aAAa,CAACQ,sBAAsB,CAAC,GAAG,IAAI;QAClE,CAAC,CAAC;QAEF,IAAID,UAAU,CAACJ,QAAQ,KAAK,OAAO,IAAI;UACrCA,QAAQ,EAAE,GAAGM,MAAM,CAACT,aAAa,CAACQ,sBAAsB,CAAC,GAAG,IAAI;QAClE,CAAC;MACH,CAAC;IACH;EACF;AACF,CAAC,CAAC;AAACE,OAAA,CAAAX,iBAAA,GAAAA,iBAAA","ignoreList":[]}