<?php
defined("ABSPATH") || exit;
require_once __DIR__ . '/../shared/market_movers.php';
$vunelix_widget = vunelix_build_market_movers_widget('crypto-market-movers', 'crypto');
$vunelix_widget['js'] = 'widgets/market-movers/vunelix-crypto-market-movers.js';
$vunelix_widget['defaults']['sort_by']      = 'perf.rank_asc';
$vunelix_widget['defaults']['grid_cols']    = 2;
$vunelix_widget['defaults']['card_style']   = 'bordered';
$vunelix_widget['defaults']['change_badge'] = true;
$vunelix_widget['settings']['data']['fields']['sort_by']['default']         = 'perf.rank_asc';
$vunelix_widget['settings']['display']['fields']['grid_cols']['default']    = '2';
$vunelix_widget['settings']['display']['fields']['card_style']['default']   = 'bordered';
$vunelix_widget['settings']['display']['fields']['change_badge']['default'] = true;
$vunelix_widget['defaults']['animation_mode'] = 'flash';
$vunelix_widget['settings']['live_data']['fields']['animation_mode']['default'] = 'flash';
return $vunelix_widget;
