import { normalizePreviewPlaform } from "../models/preview-platform";
import { normalizeAdamID } from "../util";
const ROUTABLE_ARTICLE_PAGE_INTENT_KIND = "RoutableArticlePageIntent";
export function makeRoutableArticlePageIntent(opts) {
    const { id, platform, ...rest } = opts;
    return {
        ...rest,
        id: normalizeAdamID(id),
        platform: normalizePreviewPlaform(platform),
        $kind: ROUTABLE_ARTICLE_PAGE_INTENT_KIND,
    };
}
//# sourceMappingURL=routable-article-page-intent.js.map