{"version":3,"file":"DateFieldLocalizationProvider.cjs","names":["_xDatePickers","require","_AdapterLuxon","_react","_jsxRuntime","DateFieldLocalizationProvider","children","defaultedLanguageCode","localeText","jsx","LocalizationProvider","adapterLocale","dateAdapter","AdapterLuxon","MemoizedDateFieldLocalizationProvider","exports","memo","displayName"],"sources":["../../../src/DatePickers/DateFieldLocalizationProvider.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-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 { LocalizationProvider } from \"@mui/x-date-pickers\";\nimport { AdapterLuxon } from \"@mui/x-date-pickers/AdapterLuxon\";\nimport { memo, PropsWithChildren } from \"react\";\n\nimport { DateFieldsTranslations } from \"./useDateFieldsTranslations.js\";\n\ntype DateFieldLocalizationProviderProps = {\n  defaultedLanguageCode: string;\n  localeText: DateFieldsTranslations;\n};\n\nconst DateFieldLocalizationProvider = ({\n  children,\n  defaultedLanguageCode,\n  localeText,\n}: PropsWithChildren<DateFieldLocalizationProviderProps>) => {\n  return (\n    <LocalizationProvider\n      adapterLocale={defaultedLanguageCode}\n      dateAdapter={AdapterLuxon}\n      localeText={localeText}\n    >\n      {children}\n    </LocalizationProvider>\n  );\n};\n\nconst MemoizedDateFieldLocalizationProvider = memo(\n  DateFieldLocalizationProvider,\n);\nMemoizedDateFieldLocalizationProvider.displayName =\n  \"DateFieldLocalizationProvider\";\n\nexport {\n  MemoizedDateFieldLocalizationProvider as DateFieldLocalizationProvider,\n};\n"],"mappings":";;;;;;AAYA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAAgD,IAAAG,WAAA,GAAAH,OAAA;AAdhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAaA,MAAMI,6BAA6B,GAAGA,CAAC;EACrCC,QAAQ;EACRC,qBAAqB;EACrBC;AACqD,CAAC,KAAK;EAC3D,OACE,IAAAJ,WAAA,CAAAK,GAAA,EAACT,aAAA,CAAAU,oBAAoB;IACnBC,aAAa,EAAEJ,qBAAsB;IACrCK,WAAW,EAAEC,0BAAa;IAC1BL,UAAU,EAAEA,UAAW;IAAAF,QAAA,EAEtBA;EAAQ,CACW,CAAC;AAE3B,CAAC;AAED,MAAMQ,qCAAqC,GAAAC,OAAA,CAAAV,6BAAA,GAAG,IAAAW,WAAI,EAChDX,6BACF,CAAC;AACDS,qCAAqC,CAACG,WAAW,+DAChB","ignoreList":[]}