import { _ } from '../../i18n/index.js';
export function random(editor) {
    const stickers = editor.output.resources.get('stickers');
    let stickerEnum = [];
    if (stickers) {
        stickerEnum = stickers.categoryEnum;
    }
    stickerEnum.unshift([_('ALL', 'All'), 'all']);
    return {
        type: 'function',
        name: 'random',
        verbose: _('PART_STICKER_RANDOM_FROM', 'random from'),
        returnType: 'Sticker',
        parameters: [{
                type: 'parameter',
                name: 'set',
                verbose: '',
                returnType: 'Enum',
                enum: stickerEnum,
            }]
    };
}
//# sourceMappingURL=common.js.map