{"version":3,"file":"Link.cjs","names":["_SvgIcon","require","linkComponents","odysseyTokens","MuiLink","styleOverrides","root","color","TypographyColorAction","textDecoration","cursor","PalettePrimaryDark","borderRadius","BorderRadiusTight","outlineColor","FocusOutlineColorPrimary","outlineOffset","FocusOutlineOffsetMain","outlineStyle","FocusOutlineStyle","outlineWidth","FocusOutlineWidthMain","display","height","lineHeight","svgIconClasses","fontSize","marginInlineStart","Spacing1","marginInlineEnd","position","insetBlockStart","verticalAlign","width","variants","props","variant","style","TypographyColorBody","TypographyColorSubordinate","exports"],"sources":["../../../../src/theme/components/Link.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 { svgIconClasses } from \"@mui/material/SvgIcon\";\n\nimport type { GetComponentsProps } from \"./types.js\";\n\nexport const linkComponents = ({\n  odysseyTokens,\n}: GetComponentsProps): Pick<\n  NonNullable<ThemeOptions[\"components\"]>,\n  \"MuiLink\"\n> => ({\n  MuiLink: {\n    styleOverrides: {\n      root: {\n        color: odysseyTokens.TypographyColorAction,\n        textDecoration: \"none\",\n        cursor: \"pointer\",\n\n        \"&:visited\": {\n          color: odysseyTokens.TypographyColorAction,\n        },\n\n        \"&:hover\": {\n          color: odysseyTokens.PalettePrimaryDark,\n          textDecoration: \"underline\",\n        },\n\n        \"&:focus-visible\": {\n          borderRadius: odysseyTokens.BorderRadiusTight,\n          outlineColor: odysseyTokens.FocusOutlineColorPrimary,\n          outlineOffset: odysseyTokens.FocusOutlineOffsetMain,\n          outlineStyle: odysseyTokens.FocusOutlineStyle,\n          outlineWidth: odysseyTokens.FocusOutlineWidthMain,\n          textDecoration: \"none\",\n        },\n\n        \".Link-indicator, .Link-icon\": {\n          display: \"inline-block\",\n          height: \"1em\",\n          lineHeight: 1,\n          [`& .${svgIconClasses.root}`]: {\n            fontSize: \"1em\",\n          },\n        },\n\n        \".Link-indicator\": {\n          marginInlineStart: odysseyTokens.Spacing1,\n        },\n\n        \".Link-icon\": {\n          marginInlineEnd: odysseyTokens.Spacing1,\n        },\n\n        [`.${svgIconClasses.root}`]: {\n          fontSize: \"1.2em\",\n          height: \"1em\",\n          position: \"relative\",\n          insetBlockStart: \"-0.0625em\",\n          verticalAlign: \"middle\",\n          width: \"1em\",\n        },\n      },\n    },\n    variants: [\n      {\n        props: { variant: \"monochrome\" },\n        style: {\n          color: odysseyTokens.TypographyColorBody,\n          textDecoration: \"underline\",\n\n          \"&:visited\": {\n            color: odysseyTokens.TypographyColorBody,\n          },\n\n          \"&:hover\": {\n            color: odysseyTokens.TypographyColorSubordinate,\n          },\n        },\n      },\n    ],\n  },\n});\n"],"mappings":";;;;;;AAcA,IAAAA,QAAA,GAAAC,OAAA;AAdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQO,MAAMC,cAAc,GAAGA,CAAC;EAC7BC;AACkB,CAAC,MAGf;EACJC,OAAO,EAAE;IACPC,cAAc,EAAE;MACdC,IAAI,EAAE;QACJC,KAAK,EAAEJ,aAAa,CAACK,qBAAqB;QAC1CC,cAAc,EAAE,MAAM;QACtBC,MAAM,EAAE,SAAS;QAEjB,WAAW,EAAE;UACXH,KAAK,EAAEJ,aAAa,CAACK;QACvB,CAAC;QAED,SAAS,EAAE;UACTD,KAAK,EAAEJ,aAAa,CAACQ,kBAAkB;UACvCF,cAAc,EAAE;QAClB,CAAC;QAED,iBAAiB,EAAE;UACjBG,YAAY,EAAET,aAAa,CAACU,iBAAiB;UAC7CC,YAAY,EAAEX,aAAa,CAAC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