{
  "version": 3,
  "sources": ["../../src/utils/transactions/getDecodedDataField/helpers/decodeHighlight.ts"],
  "sourcesContent": ["import { DecodeMethodEnum } from 'types/serverTransactions.types';\nimport { decodeByMethod } from './decodeByMethod';\nimport { getDecodedParts } from './getDecodedParts';\n\ninterface IDecodeHighlight {\n  data: string;\n  decodeMethod: DecodeMethodEnum;\n  delimiter: string;\n  identifier?: string;\n}\n\nexport const decodeHighlight = ({\n  data,\n  decodeMethod,\n  delimiter,\n  identifier\n}: IDecodeHighlight) => {\n  const parts = data.split('@');\n\n  const initialDecodedParts = parts.map((part) => {\n    return decodeByMethod({ data: part, decodeMethod });\n  });\n\n  const decodedHighlight = getDecodedParts({\n    parts,\n    initialDecodedParts,\n    identifier,\n    decodeMethod\n  });\n\n  return decodedHighlight.join(delimiter);\n};\n"],
  "mappings": "kFAWO,IAAMA,EAAkB,CAAC,CAC9B,KAAAC,EACA,aAAAC,EACA,UAAAC,EACA,WAAAC,CACF,IAAwB,CACtB,IAAMC,EAAQJ,EAAK,MAAM,GAAG,EAEtBK,EAAsBD,EAAM,IAAKE,GAC9BC,EAAe,CAAE,KAAMD,EAAM,aAAAL,CAAa,CAAC,CACnD,EASD,OAPyBO,EAAgB,CACvC,MAAAJ,EACA,oBAAAC,EACA,WAAAF,EACA,aAAAF,CACF,CAAC,EAEuB,KAAKC,CAAS,CACxC",
  "names": ["decodeHighlight", "data", "decodeMethod", "delimiter", "identifier", "parts", "initialDecodedParts", "part", "decodeByMethod", "getDecodedParts"]
}
