{"version":3,"file":"shape.cjs","names":["shape","odysseyTokens","NumericalBorderRadiusBase","BorderRadiusMain","Number","replace","borderRadius","exports"],"sources":["../../../src/theme/shape.ts"],"sourcesContent":["/*!\n * Copyright (c) 2022-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 { DesignTokens } from \"./theme.js\";\n\nexport const shape = ({\n  odysseyTokens,\n}: {\n  odysseyTokens: DesignTokens;\n}): ThemeOptions[\"shape\"] => {\n  // Strip units from BorderRadiusBase to accommodate MUI's typing\n  const NumericalBorderRadiusBase =\n    typeof odysseyTokens.BorderRadiusMain === \"string\"\n      ? Number(odysseyTokens.BorderRadiusMain.replace(/(\\d+).*/, \"$1\"))\n      : odysseyTokens.BorderRadiusMain;\n\n  return {\n    borderRadius: NumericalBorderRadiusBase,\n  };\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,MAAMA,KAAK,GAAGA,CAAC;EACpBC;AAGF,CAAC,KAA4B;EAE3B,MAAMC,yBAAyB,GAC7B,OAAOD,aAAa,CAACE,gBAAgB,KAAK,QAAQ,GAC9CC,MAAM,CAACH,aAAa,CAACE,gBAAgB,CAACE,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,GAC/DJ,aAAa,CAACE,gBAAgB;EAEpC,OAAO;IACLG,YAAY,EAAEJ;EAChB,CAAC;AACH,CAAC;AAACK,OAAA,CAAAP,KAAA,GAAAA,KAAA","ignoreList":[]}