import { getProp } from "../../objects/get-prop";
import { cloneObject } from "../../util";
/**
 * Remove underlinedLinks capability from site model
 * @private
 * @param {object} model Site Model
 * @returns {object}
 */
export function _migrateLinkUnderlinesCapability(model) {
    // apply migration
    const clone = cloneObject(model);
    const capabilities = getProp(model, "data.values.capabilities");
    if (capabilities) {
        // migrate capabilities - remove underlinedLinks
        clone.data.values.capabilities = capabilities.filter((capability) => capability !== "underlinedLinks");
    }
    return clone;
}
//# sourceMappingURL=_migrate-link-underlines-capability.js.map