<?php

namespace Brandy\Niches\WooCommerce;

use Brandy\Abstracts\AbstractNicheSetup;
use Brandy\Traits\SingletonTrait;

class NicheSetup extends AbstractNicheSetup {
	use SingletonTrait;

	public const NICHE_ID = 'woocommerce';

	public const ROOT_PATH = BRANDY_TEMPLATE_DIR . '/inc/Niches/WooCommerce';

	public const ROOT_URL = BRANDY_TEMPLATE_URL . '/inc/Niches/WooCommerce';

	protected const JSON_FILE = BRANDY_TEMPLATE_DIR . '/inc/Niches/WooCommerce/niche.json';

	protected const NICHE_NAME = 'WooCommerce store';

	protected const NICHE_THUMBNAIL = 'https://images.wpbrandy.com/uploads/wc-site-thumb-compress-img.webp';

	protected const NICHE_DEMO_URL = 'https://brandydemo.com/woo/';

	public static function get_suggested_plugins() {
		return array();
		// return array( 'yayswatches' );
	}

	public static function get_yay_swatches_integration_settings() {
		return array();
		// return array(
		// 	'collection' => array(
		// 		'swatchSize'       => 'custom',
		// 		'swatchCustomSize' => '30',
		// 		'label'            => 'hide',
		// 	),
		// 	'swatch'     => array(
		// 		'swatchStyle'  => 'circle',
		// 		'swatchDesign' => 'design_6',
		// 	),
		// 	'colors_map' => array(
		// 		'red'   => array(
		// 			'color' => '#FA7A61',
		// 		),
		// 		'green' => array(
		// 			'color' => '#8DCEBB',
		// 		),
		// 		'blue'  => array(
		// 			'color' => '#6EAEC4',
		// 		),
		// 	),
		// );
	}

	public static function get_sample_posts() {
		return array(
			'gutenberg' => static::ROOT_PATH . '/sample-data/sample-posts.json',
		);
	}

	public static function get_size_chart_integration_settings() {
		return array(
			'charts' => array(
				array(
					'id'         => 'chart-1764149735331',
					'name'       => 'Tshirt Chart',
					'categories' => array( 'brandy-tshirts' ),
					'products'   => array(),
					'columns'    => array( 'Size', 'Length', 'Chest', 'Shoulder', 'Sleeve Open' ),
					'rows'       => array(
						array(
							'Size'        => 'S',
							'Length'      => '26',
							'Chest'       => '38',
							'Shoulder'    => '16',
							'Sleeve Open' => '5.5',
						),
						array(
							'Size'        => 'M',
							'Length'      => '27',
							'Chest'       => '40',
							'Shoulder'    => '17',
							'Sleeve Open' => '6',
						),
						array(
							'Size'        => 'L',
							'Length'      => '28',
							'Chest'       => '42',
							'Shoulder'    => '18',
							'Sleeve Open' => '6.5',
						),
						array(
							'Size'        => 'XL',
							'Length'      => '29',
							'Chest'       => '44',
							'Shoulder'    => '19',
							'Sleeve Open' => '7',
						),
						array(
							'Size'        => 'XXL',
							'Length'      => '30',
							'Chest'       => '46',
							'Shoulder'    => '20',
							'Sleeve Open' => '7.5',
						),
					),
				),
				array(
					'id'         => 'chart-1764149831604',
					'name'       => 'Hoodie Chart',
					'categories' => array( 'brandy-hoodies' ),
					'products'   => array(),
					'columns'    => array( 'Size', 'Chest', 'Fleece length', 'Total length', 'Shoulder' ),
					'rows'       => array(
						array(
							'Size'          => 'S',
							'Chest'         => '40',
							'Fleece length' => '23.5',
							'Total length'  => '26',
							'Shoulder'      => '17',
						),
						array(
							'Size'          => 'M',
							'Chest'         => '42',
							'Fleece length' => '24.5',
							'Total length'  => '27',
							'Shoulder'      => '18',
						),
						array(
							'Size'          => 'L',
							'Chest'         => '44',
							'Fleece length' => '25.5',
							'Total length'  => '28',
							'Shoulder'      => '19',
						),
						array(
							'Size'          => 'XL',
							'Chest'         => '46',
							'Fleece length' => '26.5',
							'Total length'  => '29',
							'Shoulder'      => '20',
						),
						array(
							'Size'          => 'XXL',
							'Chest'         => '48',
							'Fleece length' => '27.5',
							'Total length'  => '30',
							'Shoulder'      => '21',
						),
					),
				),
			),
		);
	}
}
