{"version":3,"file":"v6-themes.js","names":[],"sources":["esm/v6-themes.js"],"sourcesContent":["import {\n  v6RemovedThemeNames,\n  v6ThemeNameReplacements\n} from \"@tamagui/style-grammar/v6-themes\";\nconst trailingRamp = /^(.*[^-\\d])(\\d+)$/;\nfunction toV6Themes(themes) {\n  const convertedThemes = /* @__PURE__ */ new WeakMap();\n  return Object.fromEntries(\n    Object.entries(themes).map(([themeName, theme]) => {\n      let convertedTheme = convertedThemes.get(theme);\n      if (!convertedTheme) {\n        convertedTheme = Object.fromEntries(\n          Object.entries(theme).filter(\n            ([name]) => !v6RemovedThemeNames.includes(name)\n          ).map(([name, value]) => [\n            v6ThemeNameReplacements[name] ?? name.replace(trailingRamp, \"$1-$2\"),\n            value\n          ])\n        );\n        convertedThemes.set(theme, convertedTheme);\n      }\n      return [themeName, convertedTheme];\n    })\n  );\n}\nexport {\n  toV6Themes\n};\n//# sourceMappingURL=v6-themes.js.map\n"],"mappings":";;;AAIA,MAAM,eAAe;AACrB,SAAS,WAAW,QAAQ;CAC1B,MAAM,kCAAkC,IAAI,QAAQ;CACpD,OAAO,OAAO,YACZ,OAAO,QAAQ,MAAM,CAAC,CAAC,KAAK,CAAC,WAAW,WAAW;EACjD,IAAI,iBAAiB,gBAAgB,IAAI,KAAK;EAC9C,IAAI,CAAC,gBAAgB;GACnB,iBAAiB,OAAO,YACtB,OAAO,QAAQ,KAAK,CAAC,CAAC,QACnB,CAAC,UAAU,CAAC,oBAAoB,SAAS,IAAI,CAChD,CAAC,CAAC,KAAK,CAAC,MAAM,WAAW,CACvB,wBAAwB,SAAS,KAAK,QAAQ,cAAc,OAAO,GACnE,KACF,CAAC,CACH;GACA,gBAAgB,IAAI,OAAO,cAAc;EAC3C;EACA,OAAO,CAAC,WAAW,cAAc;CACnC,CAAC,CACH;AACF"}