{"version":3,"sources":["estore/cart/free-shipping-api.ts"],"names":["ApiBaseWithStandardErrorHandling","logStandardApiError","FreeShippingApi","constructor","super","reportError","error","getFreeShippingData","orderSumAmount","this","get"],"mappings":"OAASA,gCAAsH,KAA9E,sFAExCC,mBAAsF,KAA3D,kEAGvBC,wBAAwBF,iCACjCG,cACIC,MAAM,kBAAkB,CAC5B,CAEUC,YAAYC,GAClBL,oBAAoBK,CAAK,CAC7B,CAEOC,0BAA0BC,EAAyB,GACtD,OAAaC,KAAKC,IAAI,wDAAwDF,CAAgB,CAClG,C,QAXSN,e","file":"free-shipping-api.js","sourcesContent":["import { ApiBaseWithStandardErrorHandling } from \"../../../components-shared/api/base/api-base-with-standard-error-handling.js\";\r\nimport { IStandardApiError } from \"../../../components-shared/api/base/i-standard-api-error.js\";\r\nimport { logStandardApiError } from \"../../../components-shared/utils/notify-error-reporter.js\";\r\nimport { IFreeShippingInfoContract } from \"./interfaces/free-shipping-info-contract.js\";\r\n\r\nexport class FreeShippingApi extends ApiBaseWithStandardErrorHandling {\r\n constructor() {\r\n super(\"/handlers/public\");\r\n }\r\n\r\n protected reportError(error: IStandardApiError): void {\r\n logStandardApiError(error);\r\n }\r\n\r\n public async getFreeShippingData(orderSumAmount: number = 0) : Promise {\r\n return await this.get(`/estoredata.ashx?action=GetFreeShippingStatus&amount=${orderSumAmount}`);\r\n }\r\n}"]}