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