{"version":3,"sources":["webpack:///./src/modules/ferreroCharts/api/ChartApi.ts"],"names":["rootPath","HaPerCountryApi","http","this","get","res","data","pkCuaa","campaign"],"mappings":"uMAIMA,G,oBAAW,6CAEIC,E,WAIjB,WAAYC,GAAgB,uBACxBC,KAAKD,KAAOA,E,8GAGT,oHACeC,KAAKD,KAAKE,IAAV,UAAiBJ,EAAjB,iBADf,cACGK,EADH,yBAEIA,EAAIC,MAFR,gD,yIAKA,WAAgBC,EAAgBC,GAAhC,uGACeL,KAAKD,KAAKE,IAAV,UAAiBJ,EAAjB,sBAAuCO,EAAvC,sBAA2DC,EAA3D,qBADf,cACGH,EADH,yBAEIA,EAAIC,MAFR,gD","file":"js/chunk-2d20884c.0df0eb47.js","sourcesContent":["import { HTTPClient } from '@abaco/web-common/src/HTTP';\nimport { HistoryArea } from '../models/HaPerCountry';\nimport { VarietyScores } from \"../models/VarietyScore\";\n\nconst rootPath = \"/sitiagri-rest-api/api_basic/v1/dashboard\"\n\nexport default class HaPerCountryApi {\n\n private http: HTTPClient;\n\n constructor(http: HTTPClient) {\n this.http = http;\n }\n\n public async getHistoryArea(): Promise {\n const res = await this.http.get(`${rootPath}/agreed_area`);\n return res.data;\n }\n\n public async getScores(pkCuaa: number, campaign: number): Promise {\n const res = await this.http.get(`${rootPath}/countries/${pkCuaa}/campaigns/${campaign}/varieties_score`);\n return res.data;\n }\n\n}\n"],"sourceRoot":""}