{"version":3,"sources":["webpack:///./node_modules/@abaco/grapes-dashboard-module/src/modules/grapes-dashboard-module/api/SfeProdApi.ts"],"names":["SfeProdApi","http","rootApi","this","pkCuaa","campaign","lot_id","seed_variety_id","params","undefined","get","res","data"],"mappings":"mNAGqBA,G,+BAKjB,WAAYC,EAAkBC,GAAe,uBACzCC,KAAKF,KAAOA,EACZE,KAAKD,QAAUA,E,0GAGZ,WAAiBE,EAAgBC,EAAkBC,EAAuBC,GAA1E,gGAECC,EAAU,QAEAC,IAAXH,GAAmC,OAAXA,IACvBE,EAAS,iCACFA,GADD,IAEFF,OAAQA,UAIOG,IAApBF,GAAqD,OAApBA,IAChCC,EAAS,iCACFA,GADD,IAEFD,gBAAiBA,KAdtB,SAiBeJ,KAAKF,KAAKS,IAAV,UAAiBP,KAAKD,QAAtB,iCAAsDE,EAAtD,YAAgEC,EAAhE,oBAA4F,CAC1GG,OAAQA,IAlBT,cAiBGG,EAjBH,yBAoBIA,EAAIC,MApBR,gD,2JAwBA,WAA2BR,EAAgBC,EAAkBC,EAAuBC,GAApF,gGACCC,EAAU,QACAC,IAAXH,GAAmC,OAAXA,IACvBE,EAAS,iCACFA,GADD,IAEFF,OAAQA,UAGOG,IAApBF,GAAqD,OAApBA,IAChCC,EAAS,iCACFA,GADD,IAEFD,gBAAiBA,KAXtB,SAceJ,KAAKF,KAAKS,IAAV,UAAiBP,KAAKD,QAAtB,iCAAsDE,EAAtD,YAAgEC,EAAhE,YAAoF,CAClGG,OAAQA,IAfT,cAcGG,EAdH,yBAiBIA,EAAIC,MAjBR,gD","file":"js/chunk-2d0e4cb0.57144aed.js","sourcesContent":["import { HTTPClient } from \"@abaco/web-common/src/HTTP\";\nimport { SfeComparison, SfeGrapeVariety } from \"../models/SfeProd\";\n\nexport default class SfeProdApi {\n\n private http: HTTPClient;\n private rootApi!: string;\n\n constructor(http: HTTPClient, rootApi: string) {\n this.http = http;\n this.rootApi = rootApi;\n }\n\n public async getSfeProd(pkCuaa: number, campaign: number, lot_id: number | null, seed_variety_id: number | null ): Promise {\n\n let params = {};\n\n if(lot_id !== undefined && lot_id !== null){\n params = {\n ...params,\n lot_id: lot_id\n }\n }\n\n if(seed_variety_id !== undefined && seed_variety_id !== null){\n params = {\n ...params,\n seed_variety_id: seed_variety_id\n }\n }\n const res = await this.http.get(`${this.rootApi}/v1/a4grapes/subjects/${pkCuaa}/${campaign}/sfeprod/variety`, {\n params: params\n });\n return res.data;\n }\n\n\n public async getSfeProdForCompare(pkCuaa: number, campaign: number, lot_id: number | null, seed_variety_id: number | null ): Promise {\n let params = {};\n if(lot_id !== undefined && lot_id !== null){\n params = {\n ...params,\n lot_id: lot_id\n }\n }\n if(seed_variety_id !== undefined && seed_variety_id !== null){\n params = {\n ...params,\n seed_variety_id: seed_variety_id\n }\n }\n const res = await this.http.get(`${this.rootApi}/v1/a4grapes/subjects/${pkCuaa}/${campaign}/sfeprod`, {\n params: params\n });\n return res.data;\n }\n\n\n\n}\n"],"sourceRoot":""}