{"version":3,"file":"static/js/9333_228de4642f1c6528ba02.js","mappings":"qMAUO,MAAMA,GAAgB,IAAAC,eAAc,KAM9BC,EAAwBC,IACjC,MAAM,OAAEC,EAAM,SAAEC,GAAaF,EAC7B,OAAO,gBAAoBH,EAAcM,SAAU,CAAEC,MAAOH,GACxD,gBAAoB,KAA+B,CAAEA,OAAQA,EAAOI,WAAaH,GAAU,EAKtFI,EAAY,KAAM,IAAAC,YAAWV,E,+ooBCdnC,MAAMW,EAAyB,CAClCH,UAAW,IACXI,SAAS,OAAuB,G,w0tBCF7B,MAAMC,EAAyB,CAClCL,UAAW,IACXI,SAAS,OAAuB,G,6DCH7B,MAAME,EAAyB,CAClCN,UAAW,IACXI,QAAS,E,6DCHN,MAAMG,EAA0BC,IACnC,MAAMJ,EAAUK,OAAOC,OAAO,CAAC,EAAG,GAOlC,OANA,QAASF,GAAkBG,SAAQC,IAI/BR,EAAQQ,GAAOH,OAAOC,OAAOD,OAAOC,OAAO,CAAC,EAAGN,EAAQQ,IAAOJ,EAAiBI,GAAK,IAEjFR,CAAO,C","sources":["file:////home/runner/work/platform/platform/common/temp/node_modules/.pnpm/@azure+communication-react@1.22.0_kdreznvoqpxsq65rzwgw6zo7je/node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js","file:////home/runner/work/platform/platform/common/temp/node_modules/.pnpm/@azure+communication-react@1.22.0_kdreznvoqpxsq65rzwgw6zo7je/node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/CompositeLocale.js","file:////home/runner/work/platform/platform/common/temp/node_modules/.pnpm/@azure+communication-react@1.22.0_kdreznvoqpxsq65rzwgw6zo7je/node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/CompositeLocale.js","file:////home/runner/work/platform/platform/common/temp/node_modules/.pnpm/@azure+communication-react@1.22.0_kdreznvoqpxsq65rzwgw6zo7je/node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/localization/locales/index.js","file:////home/runner/work/platform/platform/common/temp/node_modules/.pnpm/@azure+communication-react@1.22.0_kdreznvoqpxsq65rzwgw6zo7je/node_modules/@azure/communication-react/dist/dist-esm/react-composites/src/composites/localization/locales/utils.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport React, { createContext, useContext } from 'react';\nimport { LocalizationProvider as ComponentLocalizationProvider } from \"../../../../react-components/src\";\nimport { COMPOSITE_LOCALE_EN_US } from './locales';\n/**\n * Context for providing localized strings to components\n *\n * @private\n */\nexport const LocaleContext = createContext(COMPOSITE_LOCALE_EN_US);\n/**\n * Provider to provide localized strings for this library's composites.\n *\n * @private\n */\nexport const LocalizationProvider = (props) => {\n const { locale, children } = props;\n return React.createElement(LocaleContext.Provider, { value: locale },\n React.createElement(ComponentLocalizationProvider, { locale: locale.component }, children));\n};\n/**\n * @private\n */\nexport const useLocale = () => useContext(LocaleContext);\n//# sourceMappingURL=LocalizationProvider.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { COMPONENT_LOCALE_EN_GB } from \"../../../../../../react-components/src\";\nimport en_GB from './strings.json';\nimport { createCompositeStrings } from '../utils';\n/**\n * Locale for English (British)\n *\n * @public\n */\nexport const COMPOSITE_LOCALE_EN_GB = {\n component: COMPONENT_LOCALE_EN_GB,\n strings: createCompositeStrings(en_GB)\n};\n//# sourceMappingURL=CompositeLocale.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { COMPONENT_LOCALE_FR_FR } from \"../../../../../../react-components/src\";\nimport fr_FR from './strings.json';\nimport { createCompositeStrings } from '../utils';\n/**\n * Locale for French (France)\n *\n * @public\n */\nexport const COMPOSITE_LOCALE_FR_FR = {\n component: COMPONENT_LOCALE_FR_FR,\n strings: createCompositeStrings(fr_FR)\n};\n//# sourceMappingURL=CompositeLocale.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { COMPONENT_LOCALE_EN_US } from \"../../../../../react-components/src\";\nimport en_US from './en-US/strings.json';\n/**\n * Locale for English (US)\n *\n * @public\n */\nexport const COMPOSITE_LOCALE_EN_US = {\n component: COMPONENT_LOCALE_EN_US,\n strings: en_US\n};\n//# sourceMappingURL=index.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport en_US from './en-US/strings.json';\nimport { _getKeys } from \"../../../../../acs-ui-common/src\";\n/**\n *\n * @private\n */\nexport const createCompositeStrings = (localizedStrings) => {\n const strings = Object.assign({}, en_US);\n _getKeys(localizedStrings).forEach(key => {\n // mark the value as unknown because the type changes based on the key.\n // this is unsafe at runtime as we could assign the wrong type based on the key here.\n // but typescript isn't smart enough to know that the key used across each access will result in the same type\n strings[key] = Object.assign(Object.assign({}, strings[key]), localizedStrings[key]);\n });\n return strings;\n};\n//# sourceMappingURL=utils.js.map"],"names":["LocaleContext","createContext","LocalizationProvider","props","locale","children","Provider","value","component","useLocale","useContext","COMPOSITE_LOCALE_EN_GB","strings","COMPOSITE_LOCALE_FR_FR","COMPOSITE_LOCALE_EN_US","createCompositeStrings","localizedStrings","Object","assign","forEach","key"],"sourceRoot":""}