import{s as e,b as o,j as i,a as s}from"./style-inject.es-f40f6556.js";import{Popover as r}from"@transferwise/components";import{useTheme as t}from"@wise/components-theming";import{FormattedMessage as c}from"react-intl";import{i as a}from"./aliasFilter-2aa038b5.js";var n={logoContainer:"cc_logoContainer_3804785543",providerLogo:"cc_providerLogo_3804785543",poweredByTw:"cc_poweredByTw_3804785543",poweredByTwText:"cc_poweredByTwText_3804785543",twLogo:"cc_twLogo_3804785543"};e(".cc_logoContainer_3804785543{display:flex;flex-direction:column;justify-content:center}.cc_logoContainer_3804785543 span[data-toggle=popover]{border-bottom:none!important}.cc_providerLogo_3804785543{min-width:calc(var(--size-8)*10);max-width:8em;max-height:2em;margin:var(--size-4) 0;object-fit:contain;object-position:0 0}@media (min-width:768px){.cc_providerLogo_3804785543{width:8em}}.cc_poweredByTw_3804785543{cursor:pointer}.cc_poweredByTw_3804785543 .cc_poweredByTwText_3804785543{margin-right:var(--size-4);color:var(--color-content-primary);font-size:8px;letter-spacing:0;line-height:1}.cc_poweredByTw_3804785543 .cc_twLogo_3804785543{display:inline;width:auto;height:12px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9jb21tb24vUHJvdmlkZXJMb2dvL1Byb3ZpZGVyTG9nby5tb2R1bGUubGVzcyIsIlByb3ZpZGVyTG9nby5tb2R1bGUubGVzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSw2QkFDRSxZQUFBLENBQ0EscUJBQUEsQ0FDQSxzQkNERixDREZBLHVEQU1JLDRCQ0RKLENES0EsNEJBQ0UsZ0NBQUEsQ0FDQSxhQUFBLENBQ0EsY0FBQSxDQUNBLHNCQUFBLENBQ0Esa0JBQUEsQ0FDQSxtQkNIRixDREtFLHlCQUFBLDRCQUNFLFNDRkYsQ0FDRixDREtBLDJCQUNFLGNDSEYsQ0RFQSwwREFJSSwwQkFBQSxDQUNBLGtDQUFBLENBQ0EsYUFBQSxDQUNBLGdCQUFBLENBQ0EsYUNISixDRExBLGlEQVlJLGNBQUEsQ0FDQSxVQUFBLENBQ0EsV0NKSiIsImZpbGUiOiJQcm92aWRlckxvZ28ubW9kdWxlLmxlc3MifQ== */");const d=({name:e,alias:d,logo:l,isPartner:p=!1,styles:Q,providerLogoRedirectUrl:g,onProviderClick:w})=>{const m=Object.assign(Object.assign({},n),Q),{isScreenModeDark:B}=t(),b=`https://wise.com/public-resources/assets/logos/wise-personal/logo${B?"_inverse":""}.svg`;let L=l;B&&(L=a(d)?l.replace(".svg","_inverse.svg"):l.replace(".svg","--white.svg"));const y=o("img",{className:m.providerLogo,src:L,alt:e,"data-testid":"providerImg"});return i("span",Object.assign({className:m.logoContainer,"data-testid":"provider-logo"},{children:[g?o("a",Object.assign({href:g,onClick:w,"data-testid":"providerUrlAnchor"},{children:y})):o(s,{children:y}),p&&o("div",{children:o(r,Object.assign({title:o(c,{id:"powered-by-wise"}),content:o(c,{id:"powered-by-wise-description"})},{children:i("span",Object.assign({className:m.poweredByTw},{children:[o("span",Object.assign({className:m.poweredByTwText},{children:o(c,{id:"powered-by"})})),o("img",{className:m.twLogo,src:b,alt:"Wise"})]}))}))})]}))};export{d as P};
//# sourceMappingURL=ProviderLogo-650eee9b.js.map
