{"version":3,"file":"ngxtension-merge-http-context.mjs","sources":["../../../../libs/ngxtension/merge-http-context/src/merge-http-context.ts","../../../../libs/ngxtension/merge-http-context/src/ngxtension-merge-http-context.ts"],"sourcesContent":["import { HttpContext } from '@angular/common/http';\n\n/**\n * Merge multiple HttpContext.\n *\n * @param contexts Two or more http contexts to be merged.\n * @returns A merged HttpContext.\n *\n */\n\nexport function mergeHttpContext(...contexts: HttpContext[]): HttpContext {\n\treturn contexts.reduce((prev, curr) => {\n\t\tArray.from(curr.keys()).forEach((contextToken) =>\n\t\t\tprev.set(contextToken, curr.get(contextToken)),\n\t\t);\n\t\treturn prev;\n\t}, new HttpContext());\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA;;;;;;AAMG;AAEa,SAAA,gBAAgB,CAAC,GAAG,QAAuB,EAAA;IAC1D,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,KAAI;AACrC,QAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,YAAY,KAC5C,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAC9C,CAAC;AACF,QAAA,OAAO,IAAI,CAAC;AACb,KAAC,EAAE,IAAI,WAAW,EAAE,CAAC,CAAC;AACvB;;ACjBA;;AAEG;;;;"}