imports:
    - { resource: "@SyliusUiBundle/Resources/config/app/config.yml" }
    - { resource: "@SyliusAdminBundle/Resources/config/app/sylius/sylius_mailer.yml" }
    - { resource: '@SyliusAdminBundle/Resources/config/app/twig_hooks/**/*.yaml' }
    - { resource: "@SyliusAdminBundle/Resources/config/grids/*.yml" }

parameters:
    env(SYLIUS_ADMIN_ROUTING_PATH_NAME): admin
    sylius_admin.path_name: '%env(resolve:SYLIUS_ADMIN_ROUTING_PATH_NAME)%'
    sylius.security.admin_regex: "^/%sylius_admin.path_name%"

webpack_encore:
    builds:
        admin: '%kernel.project_dir%/public/build/admin'

sylius_grid:
    templates:
        action:
            apply_transition: '@SyliusAdmin/shared/grid/action/apply_transition.html.twig'
            archive: '@SyliusAdmin/shared/grid/action/archive.html.twig'
            create: '@SyliusAdmin/shared/grid/action/create.html.twig'
            default: '@SyliusAdmin/shared/grid/action/default.html.twig'
            delete: '@SyliusAdmin/shared/grid/action/delete.html.twig'
            links: '@SyliusAdmin/shared/grid/action/links.html.twig'
            list: '@SyliusAdmin/shared/grid/action/list.html.twig'
            show: '@SyliusAdmin/shared/grid/action/show.html.twig'
            update: '@SyliusAdmin/shared/grid/action/update.html.twig'
            # Resource specific actions
            create_payment_method: "@SyliusAdmin/payment_method/grid/action/create.html.twig"
            create_product_attribute: "@SyliusAdmin/product_attribute/grid/action/create.html.twig"
            delete_catalog_promotion: "@SyliusAdmin/catalog_promotion/grid/action/delete.html.twig"
            generate_variants: "@SyliusAdmin/product/grid/action/generate_variants.html.twig"
            ship_with_tracking_code: '@SyliusAdmin/shipment/grid/action/ship_with_tracking_code.html.twig'
            update_product_taxon_positions: "@SyliusAdmin/product_taxon/grid/action/update_positions.html.twig"
            update_product_variant_positions: "@SyliusAdmin/product_variant/grid/action/update_positions.html.twig"
            price_history: "@SyliusAdmin/product_variant/grid/action/price_history.html.twig"
        bulk_action:
            delete: '@SyliusAdmin/shared/grid/bulk_action/delete.html.twig'
        filter:
            boolean: '@SyliusAdmin/shared/grid/filter/boolean.html.twig'
            date: '@SyliusAdmin/shared/grid/filter/date.html.twig'
            entities: '@SyliusAdmin/shared/grid/filter/entities.html.twig'
            entity: '@SyliusAdmin/shared/grid/filter/entity.html.twig'
            exists: '@SyliusAdmin/shared/grid/filter/exists.html.twig'
            money: '@SyliusAdmin/shared/grid/filter/money.html.twig'
            resource_autocomplete: '@SyliusAdmin/shared/grid/filter/resource_autocomplete.html.twig'
            select: '@SyliusAdmin/shared/grid/filter/select.html.twig'
            string: '@SyliusAdmin/shared/grid/filter/string.html.twig'
            ux_autocomplete: '@SyliusAdmin/shared/grid/filter/autocomplete.html.twig'
            ux_translatable_autocomplete: '@SyliusAdmin/shared/grid/filter/autocomplete.html.twig'

sylius_ui:
    twig_ux:
        live_component_tags:
            admin:
                route: sylius_admin_live_component
        anonymous_component_template_prefixes:
            sylius_admin: "@SyliusAdmin/shared/components"
        component_default_template: "@SyliusUi/components/default.html.twig"

liip_imagine:
    filter_sets:
        sylius_admin_product_original: ~
        sylius_admin_avatar:
            format: webp
            quality: 80
            filters:
                thumbnail: { size: [ 200, 200 ], mode: outbound }
        sylius_admin_product_thumbnail:
            format: webp
            quality: 80
            filters:
                thumbnail: { size: [200, 200], mode: outbound }
        sylius_admin_product_large_thumbnail:
            format: webp
            quality: 80
            filters:
                thumbnail: { size: [600, 800], mode: outbound }

sylius_twig_hooks:
    enable_autoprefixing: true
    hook_name_section_separator: '#'

framework:
    http_method_override: true
