{"version":3,"sources":["webpack:///./node_modules/@abaco/crop-plan-module/src/modules/crop-plan-module/api/AIApi.ts"],"names":["AIApi","http","this","plotWkt","line1Coordinates","line2Coordinates","url","params","geometry_wkt","line1","join","line2","get","res","data","missing_plants"],"mappings":"uMAGqBA,G,+BAGjB,WAAYC,GAAgB,uBACxBC,KAAKD,KAAOA,E,gHAGT,WAAuBE,EAAiBC,EAA4BC,GAApE,kGACGC,EAAM,6DACNC,EAAS,CACXC,aAAcL,EACdM,MAAOL,EAAiBM,KAAK,KAC7BC,MAAON,EAAiBK,KAAK,MAL9B,SAQeR,KAAKD,KAAKW,IAA2BN,EAAK,CAACC,WAR1D,cAQGM,EARH,yBASIA,EAAIC,KAAKC,gBATb,gD","file":"js/chunk-2d0c7eb2.daf05eb1.js","sourcesContent":["import { HTTPClient } from \"@abaco/web-common/src/HTTP\";\nimport { FallanceCountResponse } from \"../models/AIModels\";\n\nexport default class AIApi {\n private http!: HTTPClient;\n\n constructor(http: HTTPClient) {\n this.http = http\n }\n\n public async getFallanceCount(plotWkt: string, line1Coordinates: number[], line2Coordinates: number[]): Promise{\n const url = \"/vineyards/api/v1.0/vineyardmissingplants/get_multipolygon\";\n const params = {\n geometry_wkt: plotWkt, \n line1: line1Coordinates.join(\",\"),\n line2: line2Coordinates.join(\",\")\n }\n\n const res = await this.http.get(url, {params});\n return res.data.missing_plants;\n }\n}"],"sourceRoot":""}