<?php
/**
 * Wishlist Module Settings
 *
 * @package WooNooW
 */

namespace WooNooW\Modules;

if (!defined('ABSPATH')) exit;

class WishlistSettings {
    
    /**
     * Initialize the settings
     */
    public static function init() {
        add_filter('woonoow/module_settings_schema', [__CLASS__, 'register_schema']);
    }
    
    /**
     * Register wishlist settings schema
     */
    public static function register_schema($schemas) {
        $schemas['wishlist'] = [
            'enable_guest_wishlist' => [
                'type' => 'toggle',
                'label' => __('Enable Guest Wishlists', 'woonoow'),
                'description' => __('Allow non-logged-in users to create wishlists (stored in browser)', 'woonoow'),
                'default' => true,
            ],
            'show_in_header' => [
                'type' => 'toggle',
                'label' => __('Show Wishlist Icon in Header', 'woonoow'),
                'description' => __('Display wishlist icon with item count in the header', 'woonoow'),
                'default' => true,
            ],
            'max_items_per_wishlist' => [
                'type' => 'number',
                'label' => __('Maximum Items Per Wishlist', 'woonoow'),
                'description' => __('Limit the number of items in a wishlist (0 = unlimited)', 'woonoow'),
                'default' => 0,
                'min' => 0,
                'max' => 1000,
            ],
            'show_add_to_cart_button' => [
                'type' => 'toggle',
                'label' => __('Show "Add to Cart" on Wishlist Page', 'woonoow'),
                'description' => __('Display add to cart button for each wishlist item', 'woonoow'),
                'default' => true,
            ],
            // Advanced features - Coming Soon
            'enable_sharing' => [
                'type' => 'toggle',
                'label' => __('Enable Wishlist Sharing (Coming Soon)', 'woonoow'),
                'description' => __('Allow users to share their wishlists via link - Feature not yet implemented', 'woonoow'),
                'default' => false,
                'disabled' => true,
            ],
            'enable_email_notifications' => [
                'type' => 'toggle',
                'label' => __('Back in Stock Notifications (Coming Soon)', 'woonoow'),
                'description' => __('Email users when wishlist items are back in stock - Feature not yet implemented', 'woonoow'),
                'default' => false,
                'disabled' => true,
            ],
            'enable_multiple_wishlists' => [
                'type' => 'toggle',
                'label' => __('Enable Multiple Wishlists (Coming Soon)', 'woonoow'),
                'description' => __('Allow users to create multiple named wishlists - Feature not yet implemented', 'woonoow'),
                'default' => false,
                'disabled' => true,
            ],
        ];
        
        return $schemas;
    }
    
}
