import{e}from"./extractQuote-96a6b874.js";import"./_commonjsHelpers-17042db9.js";import"./sortQuotesByDeliverySpeedEstimate-554f0c2a.js";import"date-fns";import"duration-fns";function t(t,r){return{quotes:t.providers.map(function(t){var o,a=e(t.quotes,r),n={id:t.id,alias:t.alias,name:t.name,providerType:t.type,logo:t.logo,partner:void 0!==t.partner&&t.partner,dateCollected:a.dateCollected,fees:a.fee,rate:a.rate,receivedAmount:a.receivedAmount,deliveryEstimation:a.deliveryEstimation};return t.quotes.length>1&&(o=t.quotes).some(function(e){return e.targetCountry!==o[0].targetCountry})&&(n.targetCountry=a.targetCountry),n})}}export{t as default};
//# sourceMappingURL=transformQuotesResponse.js.map
