{"version":3,"file":"mosaic-design-infosec-components-external-transloco-utils.mjs","sources":["../../../libs/external/transloco/utils/src/lib/type-guards/is-provider-scope/is-provider-scope.ts","../../../libs/external/transloco/utils/src/lib/find-alias-by-scope/find-alias-by-scope.ts","../../../libs/external/transloco/utils/src/lib/find-scope-by-alias/find-scope-by-alias.ts","../../../libs/external/transloco/utils/src/lib/format-translation-lang/format-translation-lang.ts","../../../libs/external/transloco/utils/mosaic-design-infosec-components-external-transloco-utils.ts"],"sourcesContent":["import { ProviderScope, TranslocoScope } from '@jsverse/transloco';\n\nimport { isNonNullable, isString } from '@mosaic-design/infosec-components/utils';\n\nexport function isProviderScope(translocoScope: TranslocoScope): translocoScope is ProviderScope {\n    return isNonNullable(translocoScope) && !isString(translocoScope);\n}\n","import { TranslocoScope } from '@jsverse/transloco';\n\nimport { isProviderScope } from '../type-guards/is-provider-scope/is-provider-scope';\n\nexport function findAliasByScope(scope: string, translocoScopes: TranslocoScope[]): string | undefined {\n    const translocoScope = translocoScopes.filter(isProviderScope).find((item) => item.scope === scope);\n\n    return translocoScope?.alias;\n}\n","import { TranslocoScope } from '@jsverse/transloco';\n\nimport { isProviderScope } from '../type-guards/is-provider-scope/is-provider-scope';\n\nexport function findScopeByAlias(alias: string, translocoScopes: TranslocoScope[]): string | undefined {\n    const translocoScope = translocoScopes.filter(isProviderScope).find((item) => item.alias === alias);\n\n    return translocoScope?.scope;\n}\n","export function formatTranslationLang(alias: string, lang: string): string {\n    return `${alias}/${lang}`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAIM,SAAU,eAAe,CAAC,cAA8B,EAAA;IAC1D,OAAO,aAAa,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;AACtE;;ACFgB,SAAA,gBAAgB,CAAC,KAAa,EAAE,eAAiC,EAAA;IAC7E,MAAM,cAAc,GAAG,eAAe,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAEpG,OAAO,cAAc,EAAE,KAAK,CAAC;AACjC;;ACJgB,SAAA,gBAAgB,CAAC,KAAa,EAAE,eAAiC,EAAA;IAC7E,MAAM,cAAc,GAAG,eAAe,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAEpG,OAAO,cAAc,EAAE,KAAK,CAAC;AACjC;;ACRgB,SAAA,qBAAqB,CAAC,KAAa,EAAE,IAAY,EAAA;AAC7D,IAAA,OAAO,CAAG,EAAA,KAAK,CAAI,CAAA,EAAA,IAAI,EAAE,CAAC;AAC9B;;ACFA;;AAEG;;;;"}