{"version":3,"file":"apollo-orbit.angular.http.mjs","sources":["../../http/src/httpLinkFactory.ts","../../http/src/providers.ts","../../http/src/apollo-orbit.angular.http.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { makeFetch } from '@apollo-orbit/angular/fetch';\nimport { HttpLink } from '@apollo/client/link/http';\n\n@Injectable()\nexport class HttpLinkFactory {\n  public constructor(\n    private readonly httpClient: HttpClient\n  ) { }\n\n  public create(options: HttpLink.Options = {}): HttpLink {\n    return new HttpLink({\n      ...options,\n      fetch: makeFetch(this.httpClient) as typeof fetch\n    });\n  }\n}\n","import { HttpLinkFactory } from './httpLinkFactory';\nimport { ApolloOrbitFeature } from './types';\n\nexport function withHttpLink(): ApolloOrbitFeature {\n  return {\n    kind: 'APOLLO_ORBIT_HTTP_LINK',\n    providers: [HttpLinkFactory]\n  };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAMa,eAAe,CAAA;AAEP,IAAA,UAAA;AADnB,IAAA,WAAA,CACmB,UAAsB,EAAA;QAAtB,IAAA,CAAA,UAAU,GAAV,UAAU;IACzB;IAEG,MAAM,CAAC,UAA4B,EAAE,EAAA;QAC1C,OAAO,IAAI,QAAQ,CAAC;AAClB,YAAA,GAAG,OAAO;AACV,YAAA,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;AACjC,SAAA,CAAC;IACJ;uGAVW,eAAe,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAf,eAAe,EAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B;;;SCFe,YAAY,GAAA;IAC1B,OAAO;AACL,QAAA,IAAI,EAAE,wBAAwB;QAC9B,SAAS,EAAE,CAAC,eAAe;KAC5B;AACH;;ACRA;;AAEG;;;;"}