{"version":3,"file":"filePathPatternHelpers.mjs","names":[],"sources":["../../../src/syncPluginKit/filePathPatternHelpers.ts"],"sourcesContent":["import type { FilePathPatternContext } from '@intlayer/types/filePathPattern';\n\n/**\n * Build the context handed to `parseFilePathPattern` from the only two\n * variables sync plugins resolve: the dictionary key and the locale.\n *\n * `FilePathPatternContext` declares extra fields (`fileName`, `extension`,\n * `format`…) that only apply to content-declaration paths; sync-plugin\n * patterns never reference them, so this single cast keeps the partial\n * context in one audited place instead of scattering `as any` at call sites.\n */\nexport const buildFilePathPatternContext = (\n  key: string,\n  locale?: string\n): FilePathPatternContext =>\n  ({\n    key,\n    locale,\n  }) as Partial<FilePathPatternContext> as FilePathPatternContext;\n"],"mappings":";;;;;;;;;;AAWA,MAAa,+BACX,KACA,YAEC;CACC;CACA;AACF"}