{"version":3,"sources":["webpack:///./node_modules/@abaco/chilling-widget-module/src/modules/chilling-widget-module/api/ChillingApi.ts"],"names":["ChillingApi","http","this","lotId","get","res","data","dtCalc","url","toISOString"],"mappings":"uMAGqBA,G,qBAGjB,WAAYC,GAAgB,uBACxBC,KAAKD,KAAOA,E,2GAGT,WAAkBE,GAAlB,uGAEeD,KAAKD,KAAKG,IAAI,6BAA+BD,EAAQ,SAFpE,cAEGE,EAFH,yBAGIA,EAAIC,MAHR,gD,4IAMA,WAAkBH,EAAeI,GAAjC,gGAECC,EAAM,6BAA+BL,EAAQ,YAC9CI,IAECC,GAAO,YAAcD,EAAOE,eAL7B,SAQeP,KAAKD,KAAKG,IAAII,GAR7B,cAQGH,EARH,yBASIA,EAAIC,MATR,gD","file":"js/chunk-2d225bcb.cba28051.js","sourcesContent":["import { HTTPClient } from '@abaco/web-common/src/HTTP';\nimport { ChillingIndex, PlotData } from '../models';\n\nexport default class ChillingApi {\n private http: HTTPClient;\n\n constructor(http: HTTPClient) {\n this.http = http;\n }\n\n public async getPlotData(lotId: number): Promise\n {\n const res = await this.http.get('/chilling-api/api/v1/plot/' + lotId + '/data');\n return res.data;\n }\n\n public async getChilling(lotId: number, dtCalc: Date | null): Promise\n {\n let url = '/chilling-api/api/v1/plot/' + lotId + '/chilling';\n if(dtCalc)\n {\n url += '?dt_calc=' + dtCalc.toISOString();\n }\n\n const res = await this.http.get(url);\n return res.data;\n }\n\n}\n"],"sourceRoot":""}