"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildUiSchema = void 0;
const ChannelUiSchemaCreate_1 = require("./ChannelUiSchemaCreate");
/**
 * @private
 * constructs the complete edit uiSchema for Hub Channels.
 * This defines how the schema properties should be
 * rendered in the channel editing experience
 */
const buildUiSchema = async (i18nScope, options, context) => {
    const uiSchema = await (0, ChannelUiSchemaCreate_1.buildUiSchema)(i18nScope, options, context);
    if (options.canEdit) {
        uiSchema.elements.splice(0, 0, {
            type: "Notice",
            options: {
                noticeId: "20250311-channel-edit-warning",
            },
        });
    }
    return uiSchema;
};
exports.buildUiSchema = buildUiSchema;
//# sourceMappingURL=ChannelUiSchemaEdit.js.map