{
  "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": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,IAAA,eAAAC,EAAAH,GACA,IAAAI,EAA+B,4BAC/BC,EAAgC,6BASzB,MAAMH,EAAkB,CAAC,CAC9B,KAAAI,EACA,aAAAC,EACA,UAAAC,EACA,WAAAC,CACF,IAAwB,CACtB,MAAMC,EAAQJ,EAAK,MAAM,GAAG,EAEtBK,EAAsBD,EAAM,IAAKE,MAC9B,kBAAe,CAAE,KAAMA,EAAM,aAAAL,CAAa,CAAC,CACnD,EASD,SAPyB,mBAAgB,CACvC,MAAAG,EACA,oBAAAC,EACA,WAAAF,EACA,aAAAF,CACF,CAAC,EAEuB,KAAKC,CAAS,CACxC",
  "names": ["decodeHighlight_exports", "__export", "decodeHighlight", "__toCommonJS", "import_decodeByMethod", "import_getDecodedParts", "data", "decodeMethod", "delimiter", "identifier", "parts", "initialDecodedParts", "part"]
}
