{"version":3,"file":"CircularProgress.cjs","names":["STROKE_WIDTH_FOR_ONE_TO_TWELVE_RATIO","circularProgressComponents","odysseyTokens","MuiCircularProgress","defaultProps","size","Spacing5","thickness","color","disableShrink","variant","styleOverrides","root","ownerState","PalettePrimaryMain","circle","strokeDasharray","exports"],"sources":["../../../../src/theme/components/CircularProgress.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\n// MUI draws the ring inside a fixed 44-unit viewBox and passes `thickness` straight through as the SVG `stroke-width`, so the rendered stroke works out to `thickness * size / 44`. Design specifies the same 1:12 stroke-to-diameter ratio the icons use, which holds at every size when thickness is 44 / 12:\n// 2px at the default 24px, and 1.33px where Button renders it at 16px.\nconst STROKE_WIDTH_FOR_ONE_TO_TWELVE_RATIO = 44 / 12;\n\nexport const circularProgressComponents = ({\n  odysseyTokens,\n}: GetComponentsProps): Pick<\n  NonNullable<ThemeOptions[\"components\"]>,\n  \"MuiCircularProgress\"\n> => ({\n  MuiCircularProgress: {\n    defaultProps: {\n      size: odysseyTokens.Spacing5,\n      thickness: STROKE_WIDTH_FOR_ONE_TO_TWELVE_RATIO,\n      color: \"primary\",\n      disableShrink: false,\n      variant: \"indeterminate\",\n    },\n    styleOverrides: {\n      root: ({ ownerState }) => ({\n        ...(ownerState.color !== \"inherit\" && {\n          color: odysseyTokens.PalettePrimaryMain,\n        }),\n      }),\n      circle: ({ ownerState }) => ({\n        ...(ownerState.variant === \"indeterminate\" && {\n          strokeDasharray: \"160%, 360%\",\n        }),\n      }),\n    },\n  },\n});\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAQA,MAAMA,oCAAoC,GAAG,EAAE,GAAG,EAAE;AAE7C,MAAMC,0BAA0B,GAAGA,CAAC;EACzCC;AACkB,CAAC,MAGf;EACJC,mBAAmB,EAAE;IACnBC,YAAY,EAAE;MACZC,IAAI,EAAEH,aAAa,CAACI,QAAQ;MAC5BC,SAAS,EAAEP,oCAAoC;MAC/CQ,KAAK,EAAE,SAAS;MAChBC,aAAa,EAAE,KAAK;MACpBC,OAAO,EAAE;IACX,CAAC;IACDC,cAAc,EAAE;MACdC,IAAI,EAAEA,CAAC;QAAEC;MAAW,CAAC,MAAM;QACzB,IAAIA,UAAU,CAACL,KAAK,KAAK,SAAS,IAAI;UACpCA,KAAK,EAAEN,aAAa,CAACY;QACvB,CAAC;MACH,CAAC,CAAC;MACFC,MAAM,EAAEA,CAAC;QAAEF;MAAW,CAAC,MAAM;QAC3B,IAAIA,UAAU,CAACH,OAAO,KAAK,eAAe,IAAI;UAC5CM,eAAe,EAAE;QACnB,CAAC;MACH,CAAC;IACH;EACF;AACF,CAAC,CAAC;AAACC,OAAA,CAAAhB,0BAAA,GAAAA,0BAAA","ignoreList":[]}