{"version":3,"file":"pages/Resources/BundleDiff/DiffContainer/moduleDiff.mjs","sources":["../../../../../src/pages/Resources/BundleDiff/DiffContainer/moduleDiff.ts"],"sourcesContent":["const moduleHashPattern = /[a-fA-F0-9]{20,}/;\nconst moduleHashSuffixPattern = /\\|[a-fA-F0-9]{16,}$/;\n\nexport function getModuleDiffKey(module: {\n  webpackId?: string;\n  path?: string;\n}): string {\n  const normalize = (value: string | undefined) =>\n    value\n      ?.replace(moduleHashSuffixPattern, '')\n      .replace(moduleHashPattern, '') || '';\n\n  return normalize(module.webpackId) || normalize(module.path);\n}\n"],"names":["moduleHashPattern","moduleHashSuffixPattern","getModuleDiffKey","module","normalize","value"],"mappings":"AAAA,MAAMA,oBAAoB;AAC1B,MAAMC,0BAA0B;AAEzB,SAASC,iBAAiBC,MAGhC;IACC,MAAMC,YAAY,CAACC,QACjBA,OACI,QAAQJ,yBAAyB,IAClC,QAAQD,mBAAmB,OAAO;IAEvC,OAAOI,UAAUD,OAAO,SAAS,KAAKC,UAAUD,OAAO,IAAI;AAC7D"}