import { CardsFacadeService } from '@services/cards-facade.service' ; export const normalizeCardId = ( cardId , allCards ) => { const refCard = allCards . getCard ( cardId ) ; if ( refCard ?. battlegroundsNormalDbfId ) { const normalCard = allCards . getCardFromDbfId ( refCard . battlegroundsNormalDbfId ) ; return normalCard ?. id ; } return cardId ; } ;