# Generated by Django 4.2.11 on 2024-03-27 13:56

from django.db import migrations
import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks
import ocyan.plugin.wagtail

from ocyan.plugin.wagtail.block_plugin import get_extra_ocyan_settings_blocks


class Migration(migrations.Migration):

    dependencies = [
        ("ocyan_plugin_wagtail", "0025_menulink"),
    ]

    operations = [
        migrations.AlterField(
            model_name="ocyansettings",
            name="footer",
            field=wagtail.fields.StreamField([('about_us', wagtail.blocks.StructBlock([('heading', wagtail.blocks.CharBlock(help_text='Heading of the content block.', label='Heading', required=False)), ('content', wagtail.blocks.RichTextBlock())])), ('text', wagtail.blocks.StructBlock([('heading', wagtail.blocks.CharBlock(help_text='Heading of the content block.', label='Heading', required=False)), ('content', wagtail.blocks.RichTextBlock())])), ('page_list', wagtail.blocks.StructBlock([('heading', wagtail.blocks.CharBlock(help_text='Heading of the content block.', label='Heading', required=False)), ('page', wagtail.blocks.PageChooserBlock(help_text='List pages below this page', label='Page'))]))] + get_extra_ocyan_settings_blocks(), default=[], use_json_field=True),
        ),
        migrations.AlterField(
            model_name="ocyansettings",
            name="header_content",
            field=wagtail.fields.StreamField([
                ('text', wagtail.blocks.RichTextBlock()),
                ('image', wagtail.images.blocks.ImageChooserBlock()),
                ('image_link', wagtail.blocks.StructBlock([
                    ('image', wagtail.images.blocks.ImageChooserBlock()),
                    ('page', wagtail.blocks.PageChooserBlock(help_text='Optional, you can enter a external link too.', required=False)),
                    ('external_link', wagtail.blocks.CharBlock(help_text='Optional, you can choose a page too.', required=False))
                ]))
                ] + get_extra_ocyan_settings_blocks(),
                blank=True,
                use_json_field=True,
            ),
        ),
        migrations.AlterField(
            model_name="ocyansettings",
            name="mini_footer",
            field=wagtail.fields.StreamField(
                [("text", wagtail.blocks.RichTextBlock())],
                default=[],
                use_json_field=True,
            ),
        ),
        migrations.AlterField(
            model_name="ocyansettings",
            name="promo_header",
            field=wagtail.fields.StreamField([('text', wagtail.blocks.RichTextBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('TextSlider', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('text', wagtail.blocks.CharBlock())])))], blank=True, help_text="Mobile only", use_json_field=True,),
        ),
        migrations.AlterField(
            model_name="ocyansettings",
            name="social_links",
            field=wagtail.fields.StreamField([('link', wagtail.blocks.StructBlock([('link', wagtail.blocks.PageChooserBlock(label='Pagina', required=False)), ('external_link', wagtail.blocks.CharBlock(label='Externe link', required=False)), ('label', wagtail.blocks.CharBlock(label='Link label', required=False))]))], blank=True, use_json_field=True, verbose_name='Socialbar links'),
        ),
    ]
