import * as serverData from "../json-parsing/server-data";
/**
 * @param data The media api data to find teh card in
 * @returns The editorial-card data for this media api item, this will return the first associated card
 */
export function editorialCardsFromData(data) {
    const editorialCards = serverData.asArrayOrEmpty(data, "meta.associations.editorial-cards.data");
    return editorialCards;
}
/**
 * @param data The media api data to find teh card in
 * @returns The editorial-card data for this media api item, this will return the first associated card
 */
export function editorialCardFromData(data) {
    return serverData.asInterface(editorialCardsFromData(data)[0]);
}
//# sourceMappingURL=associations.js.map