<?php

namespace OtomaticAi\Utils\ProjectSettings;

class DefaultSettings implements ProjectSettingsInterface
{
    static $version = 2;

    public function defaults(): array
    {
        return [
            "_version" => static::$version,
            "models" => [
                "text" => "gpt-4.1-mini",
                "image" => "flux_1_dev"
            ],
            "content" => [
                "writing_style" => null,
                "sources" => [
                    "enabled" => false,
                    "no_follow" => false,
                    "blank" => false,
                ],
                "custom_instructions" => [
                    "profile" => null,
                    "images" => null,
                    "text" => null,
                ],
                "blocks" => [],
                "automatic" => [
                    "enabled" => true,
                    "text_length" => "medium",
                    "images" => [
                        "enabled" => true,
                        "max_images" => 1
                    ],
                    "youtube" => [
                        "enabled" => true,
                    ],
                    "embeds" => [
                        "enabled" => false,
                    ],
                    "internal_links" => [
                        "enabled" => true,
                        "no_follow" => false,
                    ],
                    "external_links" => [
                        "enabled" => true,
                        "no_follow" => false,
                    ],
                    "custom_links" => [
                        "enabled" => false,
                        "links" => [],
                    ],
                    "lists" => [
                        "enabled" => true,
                    ],
                    "tables" => [
                        "enabled" => true,
                    ],
                    "bold_words" => [
                        "enabled" => true,
                    ],
                    "emojis" => [
                        "enabled" => false,
                    ],
                    "summary" => [
                        "enabled" => false,
                    ],
                    "brief" => [
                        "enabled" => false,
                    ],
                    "faq" => [
                        "enabled" => false,
                    ],
                    "toolbox" => [
                        "enabled" => false,
                        "template" => "automatic",
                    ],
                    "keywords" => [
                        "automatic" => [
                            "enabled" => true,
                        ],
                        "custom" => [],
                    ],
                    "amazon" => [
                        "enabled" => false,
                        "template" => "grid_3x",
                        "max_products" => 3,
                    ],
                ],
            ],
            "wordpress" => [
                "thumbnail" => [
                    "enabled" => true,
                ],
                "post_type" => "post",
                "author_id" => null,
                "parent_page_id" => null,
                "categories" => [
                    "automatic" => [
                        "enabled" => false,
                    ],
                    "custom" => [],
                ],
                "tags" => [
                    "automatic" => [
                        "enabled" => false,
                    ],
                    "custom" => [],
                ],
                "template" => null,
                "status" => "publish",
                "rewrite_permalink" => [
                    "enabled" => false,
                ],
                "seo_title" => [
                    "enabled" => false,
                    "emojis" => [
                        "enabled" => false
                    ]
                ],
                "seo_description" => [
                    "enabled" => false,
                ],
                "custom_fields" => []
            ],
            "autopilot" => [
                "query" => null,
                "source_language" => null,
                "planning" => [
                    "per_day" => 1,
                    "start_time" => [
                        "hours" => 0,
                        "minutes" => 0,
                    ],
                    "end_time" => [
                        "hours" => 23,
                        "minutes" => 59,
                    ],
                ]
            ],
        ];
    }
}
