import{s as e,_ as t}from"./style-inject.es-f40f6556.js";import{formatMoney as r}from"@transferwise/formatting";import i from"prop-types";import n from"react";import{useIntl as s}from"react-intl";const c=({condition:e,wrapper:t,children:r})=>e?t(r):r;var a={feeText:"cc_feeText_3804785543",feeDisclaimer:"cc_feeDisclaimer_3804785543"};function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function l(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?o(Object(i),!0).forEach(function(r){t(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}e(".cc_feeText_3804785543{display:flex;font-weight:600;line-height:16px;white-space:nowrap}@media (min-width:768px){.cc_feeText_3804785543{line-height:var(--line-height-body)}}.cc_feeDisclaimer_3804785543{color:#df8700;font-size:small;font-weight:600}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9jb21tb24vVHJhbnNmZXJGZWUubW9kdWxlLmxlc3MiLCJUcmFuc2ZlckZlZS5tb2R1bGUubGVzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSx1QkFDRSxZQUFBLENBQ0EsZUFBQSxDQUNBLGdCQUFBLENBQ0Esa0JDRkYsQ0RJRSx5QkFBQSx1QkFDRSxtQ0NERixDQUNGLENESUEsNkJBQ0UsYUFBQSxDQUNBLGVBQUEsQ0FDQSxlQ0ZGIiwiZmlsZSI6IlRyYW5zZmVyRmVlLm1vZHVsZS5sZXNzIn0= */");var p=function(e){var t=e.styles,i=e.currency,c=e.fee,o=e.label,p=s().locale,f=l(l({},a),t);return n.createElement(n.Fragment,null,n.createElement("span",{className:f.feeText,"data-testid":"transfer-fee"},r(c,i,p,{alwaysShowDecimals:!0})),o)};p.propTypes={styles:i.shape({feeText:i.string}),currency:i.string.isRequired,fee:i.number.isRequired,label:i.element},p.defaultProps={styles:{},label:null};export{c as C,p as T};
//# sourceMappingURL=TransferFee-dee81430.js.map
