export const manifest = {
    type: 'propertyEditorSchema',
    name: 'Media Picker',
    alias: 'Umbraco.MediaPicker3',
    meta: {
        defaultPropertyEditorUiAlias: 'Umb.PropertyEditorUi.MediaPicker',
        settings: {
            properties: [
                {
                    alias: 'filter',
                    label: 'Accepted types',
                    description: 'Limit to specific types',
                    propertyEditorUiAlias: 'Umb.PropertyEditorUi.MediaTypePicker',
                },
                {
                    alias: 'multiple',
                    label: 'Pick multiple items',
                    description: 'Outputs a IEnumerable',
                    propertyEditorUiAlias: 'Umb.PropertyEditorUi.Toggle',
                },
                {
                    alias: 'validationLimit',
                    label: 'Amount',
                    description: 'Set a required range of medias',
                    propertyEditorUiAlias: 'Umb.PropertyEditorUi.NumberRange',
                    config: [{ alias: 'validationRange', value: { min: 0, max: Infinity } }],
                },
                {
                    alias: 'startNodeId',
                    label: 'Start node',
                    propertyEditorUiAlias: 'Umb.PropertyEditorUi.MediaEntityPicker',
                    config: [{ alias: 'validationLimit', value: { min: 0, max: 1 } }],
                },
                {
                    alias: 'enableLocalFocalPoint',
                    label: 'Enable Focal Point',
                    propertyEditorUiAlias: 'Umb.PropertyEditorUi.Toggle',
                },
                {
                    alias: 'crops',
                    label: 'Image Crops',
                    description: 'Local crops, stored on document',
                    propertyEditorUiAlias: 'Umb.PropertyEditorUi.ImageCropsConfiguration',
                },
                {
                    alias: 'ignoreUserStartNodes',
                    label: 'Ignore User Start Nodes',
                    description: 'Selecting this option allows a user to choose nodes that they normally dont have access to.',
                    propertyEditorUiAlias: 'Umb.PropertyEditorUi.Toggle',
                },
            ],
        },
    },
};
