# This file is part of the Sylius package.
# (c) Sylius Sp. z o.o.

imports:
    - { resource: "@SyliusUiBundle/Resources/config/app/config.yml" }

    - { resource: "@SyliusShopBundle/Resources/config/app/sylius/sylius_mailer.yml" }
    - { resource: "@SyliusShopBundle/Resources/config/grids/account/order.yml" }
    - { resource: "@SyliusShopBundle/Resources/config/grids/product.yml" }

parameters:
    sylius.security.shop_regex: "^/(?!%sylius_admin.path_name%|api/.*|api$|media/.*)[^/]++"

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

sylius_grid:
    templates:
        action:
            pay: "@SyliusShop/Account/Order/Grid/Action/_pay_deprecated.html.twig"
            shop_show: "@SyliusShop/Grid/Action/show.html.twig"
            shop_pay: "@SyliusShop/Account/Order/Grid/Action/pay.html.twig"
        filter:
            shop_string: "@SyliusShop/Grid/Filter/string.html.twig"

sylius_shop:
    checkout_resolver:
        pattern: "%sylius.security.shop_regex%/checkout/.+"
        route_map:
            empty_order:
                route: sylius_shop_cart_summary
            cart:
                route: sylius_shop_checkout_address
            addressed:
                route: sylius_shop_checkout_select_shipping
            shipping_selected:
                route: sylius_shop_checkout_select_payment
            shipping_skipped:
                route: sylius_shop_checkout_select_payment
            payment_selected:
                route: sylius_shop_checkout_complete
            payment_skipped:
                route: sylius_shop_checkout_complete

liip_imagine:
    filter_sets:
        sylius_shop_product_original: ~
        sylius_shop_product_tiny_thumbnail:
            filters:
                thumbnail: { size: [64, 64], mode: outbound }
        sylius_shop_product_small_thumbnail:
            filters:
                thumbnail: { size: [150, 112], mode: outbound }
        sylius_shop_product_thumbnail:
            filters:
                thumbnail: { size: [260, 260], mode: outbound }
        sylius_shop_product_large_thumbnail:
            filters:
                thumbnail: { size: [550, 412], mode: outbound }

sonata_block:
    default_contexts: ~

sylius_ui:
    events:
        sylius.shop.layout.topbar:
            blocks:
                before_switchers_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 35
                    context:
                        event: sylius.shop.layout.before_currency_switcher
                currency_switcher:
                    template: "@SyliusShop/Layout/Topbar/_currencySwitcher.html.twig"
                    priority: 30
                locale_switcher:
                    template: "@SyliusShop/Layout/Topbar/_localeSwitcher.html.twig"
                    priority: 20
                before_security_widget_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.layout.before_security_widget
                security_widget:
                    template: "@SyliusShop/Layout/Topbar/_securityWidget.html.twig"
                    priority: 10
                after_security_widget_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.layout.after_security_widget

        sylius.shop.homepage:
            blocks:
                banner:
                    template: "@SyliusShop/Homepage/_banner.html.twig"
                    priority: 60
                latest_products:
                    template: "@SyliusShop/Homepage/_latestProducts.html.twig"
                    priority: 50
                latest_products_carousel:
                    template: "@SyliusShop/Homepage/_latestProductsCarousel.html.twig"
                    priority: 40
                newsletter:
                    template: "@SyliusShop/Homepage/_newsletter.html.twig"
                    priority: 30
                products_grid:
                    template: "@SyliusShop/Homepage/_productsGrid.html.twig"
                    priority: 20
                about_us:
                    template: "@SyliusShop/Homepage/_aboutUs.html.twig"
                    priority: 10

        sylius.shop.cart.widget.button:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.partial.cart.summary.before_widget_content
                content:
                    template: "@SyliusShop/Cart/Widget/_button.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.partial.cart.summary.after_widget_content

        sylius.shop.cart.widget.popup:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.partial.cart.summary.before_popup_content
                content:
                    template: "@SyliusShop/Cart/Widget/_popup.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.partial.cart.summary.after_popup_content

        sylius.shop.cart.coupon:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.cart.summary.before_coupon
                content:
                    template: "@SyliusShop/Cart/Summary/_coupon.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.cart.summary.after_coupon

        sylius.shop.cart.header:
            blocks:
                header:
                    template: "@SyliusShop/Cart/Summary/_header.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.cart.summary.after_content_header

        sylius.shop.cart.items:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.cart.summary.before_items
                content:
                    template: "@SyliusShop/Cart/Summary/_items.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.cart.summary.after_items

        sylius.shop.cart.suggestions:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 10
                    context:
                        event: sylius.shop.cart.summary.before_suggestions
                content:
                    template: "@SyliusShop/Cart/Summary/_suggestions.html.twig"
                    priority: 5

        sylius.shop.cart.summary:
            blocks:
                before_totals_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 25
                    context:
                        event: sylius.shop.cart.summary.before_totals
                totals:
                    template: "@SyliusShop/Cart/Summary/_totals.html.twig"
                    priority: 20
                after_totals_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.cart.summary.after_totals
                checkout:
                    template: "@SyliusShop/Cart/Summary/_checkout.html.twig"
                    priority: 10

        sylius.shop.cart.summary.totals:
            blocks:
                totals_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.cart.summary.totals

        sylius.shop.login.form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.login.form

        sylius.shop.register.form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.register.form

        sylius.shop.account.change_password.form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.change_password.form

        sylius.shop.account.profile.update.form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.profile.update.form

        sylius.shop.request_password_reset_token.form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.request_password_reset_token.form

        sylius.shop.account.address_book.create.form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.address_book.create.form

        sylius.shop.account.address_book.update.form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.address_book.update.form

        sylius.shop.contact.request.form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.contact.request.form

        sylius.shop.product.show.add_to_cart_form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.product.show.add_to_cart_form

        sylius.shop.product_review.create.form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.product_review.create.form

        sylius.shop.checkout.address.billing_address_form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.checkout.address.billing_address_form

        sylius.shop.checkout.address.shipping_address_form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.checkout.address.shipping_address_form

        sylius.shop.checkout.select_payment.before_form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.checkout.select_payment.before_form

        sylius.shop.checkout.address.before_form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.checkout.address.before_form

        sylius.shop.checkout.select_shipping.before_form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.checkout.select_shipping.before_form

        sylius.shop.product_review.create.before_form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.product_review.create.before_form

        sylius.shop.account.layout.menu:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.account.layout.before_menu
                menu:
                    template: "@SyliusShop/Account/Menu/_content.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.account.layout.after_menu

        sylius.shop.account.layout.before_subcontent:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.layout.before_subcontent

        sylius.shop.account.layout.after_subcontent:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.layout.after_subcontent

        sylius.shop.account.change_password.after_content_header:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.change_password.after_content_header

        sylius.shop.account.profile.update.after_content_header:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.profile.update.after_content_header

        sylius.shop.checkout.complete.after_content_header:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.checkout.complete.after_content_header

        sylius.shop.login.after_content_header:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.login.after_content_header

        sylius.shop.register.after_content_header:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event:   sylius.shop.register.after_content_header

        sylius.shop.account.dashboard.after_content_header:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.dashboard.after_content_header

        sylius.shop.request_password_reset_token.after_content_header:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.request_password_reset_token.after_content_header

        sylius.shop.account.address_book.create.after_content_header:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.address_book.create.after_content_header

        sylius.shop.account.address_book.update.after_content_header:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.address_book.create.after_content_header # Intentionally using "create" event for backwards compatibility

        sylius.shop.account.address_book.index.after_content_header:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.address_book.index.after_content_header

        sylius.shop.account.order.show.after_content_header:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.order.show.after_content_header

        sylius.shop.contact.request.after_content_header:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.contact.request.after_content_header

        sylius.shop.product.index.before_vertical_menu:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.product.index.before_vertical_menu

        sylius.shop.product.index.after_vertical_menu:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.product.index.after_vertical_menu

        sylius.shop.taxon.header:
            blocks:
                breadcrumb:
                    template: "@SyliusShop/Taxon/_breadcrumb.html.twig"
                    priority: 20
                before_header_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.taxon.header.before
                header:
                    template: "@SyliusShop/Taxon/Header/_content.html.twig"
                    priority: 10
                after_header_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.taxon.header.after

        sylius.shop.product_review.index.product_box:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.product_review.index.before_product_box
                box:
                    template: "@SyliusShop/ProductReview/Box/_content.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.product_review.index.after_product_box

        sylius.shop.product_review.index.list:
            blocks:
                before_list_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 25
                    context:
                        event: sylius.shop.product_review.index.before_list
                list:
                    template: "@SyliusShop/ProductReview/_list.html.twig"
                    priority: 20
                after_list_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.product_review.index.after_list
                add_button:
                    template: "@SyliusShop/ProductReview/List/_addButton.html.twig"
                    priority: 10

        sylius.shop.product_review.create.product_box:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.product_review.create.before_product_box
                box:
                    template: "@SyliusShop/Product/_box.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.product_review.create.after_product_box

        sylius.shop.product.show.tab_reviews:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 35
                    context:
                        event: sylius.shop.product.show.tab_reviews
                latest_reviews:
                    template: "@SyliusShop/Product/Show/Tabs/Reviews/_latest.html.twig"
                    priority: 30
                view_more:
                    template: "@SyliusShop/Product/Show/Tabs/Reviews/_viewMore.html.twig"
                    priority: 20
                create:
                    template: "@SyliusShop/Product/Show/Tabs/Reviews/_create.html.twig"
                    priority: 10

        sylius.shop.product.show.tab_details:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.product.show.tab_details
                description:
                    template: "@SyliusShop/Product/Show/Tabs/Details/_description.html.twig"
                    priority: 10

        sylius.shop.product.show.tab_attributes:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.product.show.tab_attributes
                list:
                    template: "@SyliusShop/Product/Show/Tabs/Attributes/_list.html.twig"
                    priority: 10

        sylius.shop.product.show.before_thumbnails:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.product.show.before_thumbnails

        sylius.shop.product.show.before_add_to_cart:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.product.show.before_add_to_cart

        sylius.shop.product.index.before_list:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.product.index.before_list

        sylius.shop.product.index.before_pagination:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.product.index.before_pagination

        sylius.shop.product.index.search:
            blocks:
                before_search_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 35
                    context:
                        event: sylius.shop.product.index.before_search
                search:
                    template: "@SyliusShop/Product/Index/_search.html.twig"
                    priority: 30
                after_search_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 25
                    context:
                        event: sylius.shop.product.index.after_search
                pagination:
                    template: "@SyliusShop/Product/Index/_pagination.html.twig"
                    priority: 20
                sorting:
                    template: "@SyliusShop/Product/Index/_sorting.html.twig"
                    priority: 10

        sylius.shop.order.thank_you.after_message:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.order.thank_you.after_message

        sylius.shop.checkout.header:
            blocks:
                before_header_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.checkout.address.before_header # Intentionally using "address" event for backwards compatibility
                header:
                    template: "@SyliusShop/Checkout/_header.html.twig"
                    priority: 10
                after_header_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.checkout.address.after_header # Intentionally using "address" event for backwards compatibility

        sylius.shop.cart.summary.items:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.cart.summary.items

        sylius.shop.account.order.index.header.content:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.order.index.header

        sylius.shop.account.address_book.index.after_add_address_button:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.address_book.index.after_add_address_button

        sylius.shop.register.before_form:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.register.before_form

        sylius.shop.product.index.box:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.product.index.before_box
                content:
                    template: "@SyliusShop/Product/Box/_content.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.product.index.after_box

        sylius.shop.layout.footer:
            blocks:
                grid:
                    template: "@SyliusShop/Layout/Footer/_grid.html.twig"
                    priority: 20
                content:
                    template: "@SyliusShop/Layout/Footer/_content.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.layout.after_footer

        sylius.shop.layout.footer.grid:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 45
                    context:
                        event: sylius.shop.layout.before_footer
                plus:
                    template: "@SyliusShop/Layout/Footer/Grid/_plus.html.twig"
                    priority: 40
                your_store:
                    template: "@SyliusShop/Layout/Footer/Grid/_your_store.html.twig"
                    priority: 30
                customer_care:
                    template: "@SyliusShop/Layout/Footer/Grid/_customer_care.html.twig"
                    priority: 20
                payment_methods:
                    template: "@SyliusShop/Layout/Footer/Grid/_payment_methods.html.twig"
                    priority: 10

        sylius.shop.layout.header.grid:
            blocks:
                logo:
                    template: "@SyliusShop/Layout/Header/_logo.html.twig"
                    priority: 30
                content:
                    template: "@SyliusShop/Layout/Header/_content.html.twig"
                    priority: 20
                cart:
                    template: "@SyliusShop/Layout/Header/_cart.html.twig"
                    priority: 10

        sylius.shop.layout.header.content:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.layout.header

        sylius.shop.login.register_column:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.login.before_register
                content:
                    template: "@SyliusShop/Login/_register.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.login.after_register

        sylius.shop.login.main_column:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.login.before_login
                content:
                    template: "@SyliusShop/Login/_login.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.login.after_login

        sylius.shop.layout.stylesheets:
            blocks:
                styles:
                    template: "@SyliusShop/_styles.html.twig"
                    priority: 10
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 0
                    context:
                        event: sylius.shop.layout.stylesheets

        sylius.shop.layout.javascripts:
            blocks:
                scripts:
                    template: "@SyliusShop/_scripts.html.twig"
                    priority: 10
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 0
                    context:
                        event: sylius.shop.layout.javascripts

        sylius.shop.layout.head:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.layout.head

        sylius.shop.layout.before_content:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.layout.before_content

        sylius.shop.layout.after_content:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.layout.after_content

        sylius.shop.layout.header:
            blocks:
                header:
                    template: "@SyliusShop/_header.html.twig"
                    priority: 20
                after_header_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.layout.after_header
                menu:
                    template: "@SyliusShop/Layout/Header/_menu.html.twig"
                    priority: 10

        sylius.shop.layout.before_body:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.layout.before_body

        sylius.shop.layout.after_body:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.layout.after_body

        sylius.shop.account.dashboard.after_information:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.account.dashboard.after_information

        sylius.shop.account.order.index.subcontent:
            blocks:
                header:
                    template: "@SyliusShop/Account/Order/Index/_header.html.twig"
                    priority: 20
                after_content_header_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.account.order.index.after_content_header
                subcontent:
                    template: "@SyliusShop/Account/Order/Index/_subcontent.html.twig"
                    priority: 10
                after_grid_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.account.order.index.after_grid

        sylius.shop.account.order.show.subcontent:
            blocks:
                header:
                    template: "@SyliusShop/Account/Order/Show/_header.html.twig"
                    priority: 20
                after_content_header_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.account.order.show.after_content_header
                summary:
                    template: "@SyliusShop/Common/Order/_summary.html.twig"
                    priority: 10
                after_summary_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.account.order.show.after_summary

        sylius.shop.checkout.steps:
            blocks:
                steps:
                    template: "@SyliusShop/Checkout/_steps.html.twig"
                    priority: 10

        sylius.shop.checkout.address.steps:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 0
                    context:
                        event: sylius.shop.checkout.address.after_steps

        sylius.shop.checkout.complete.steps:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 0
                    context:
                        event: sylius.shop.checkout.complete.after_steps

        sylius.shop.checkout.select_payment.steps:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 0
                    context:
                        event: sylius.shop.checkout.select_payment.after_steps

        sylius.shop.checkout.select_shipping.steps:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 0
                    context:
                        event: sylius.shop.checkout.select_shipping.after_steps

        sylius.shop.checkout.sidebar:
            blocks:
                summary:
                    template: "@SyliusShop/Checkout/_summary.html.twig"
                    priority: 20
                support:
                    template: "@SyliusShop/Checkout/_support.html.twig"
                    priority: 10

        sylius.shop.checkout.address.sidebar:
            blocks:
                before_summary_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 25
                    context:
                        event: sylius.shop.checkout.address.before_summary
                before_support_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 25
                    context:
                        event: sylius.shop.checkout.address.before_support
                after_support_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 25
                    context:
                        event: sylius.shop.checkout.address.after_support

        sylius.shop.checkout.select_payment.sidebar:
            blocks:
                before_summary_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 25
                    context:
                        event: sylius.shop.checkout.select_payment.before_summary
                before_support_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 25
                    context:
                        event: sylius.shop.checkout.select_payment.before_support
                after_support_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 25
                    context:
                        event: sylius.shop.checkout.select_payment.after_support

        sylius.shop.checkout.select_shipping.sidebar:
            blocks:
                before_summary_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 25
                    context:
                        event: sylius.shop.checkout.select_shipping.before_summary
                before_support_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.checkout.select_shipping.before_support
                after_support_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.checkout.select_shipping.after_support

        sylius.shop.checkout.complete.summary:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.checkout.complete.before_summary
                content:
                    template: "@SyliusShop/Common/Order/_summary.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.checkout.complete.after_summary

        sylius.shop.checkout.address.before_navigation:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.checkout.address.before_navigation

        sylius.shop.checkout.complete.before_navigation:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.checkout.complete.before_navigation

        sylius.shop.checkout.select_payment.before_navigation:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.checkout.select_payment.before_navigation

        sylius.shop.checkout.select_payment.choice_item_content:
            blocks:
                description:
                    template: "@SyliusShop/Checkout/SelectPayment/_description.html.twig"

        sylius.shop.checkout.select_shipping.before_navigation:
            blocks:
                legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    context:
                        event: sylius.shop.checkout.select_shipping.before_navigation

        sylius.shop.checkout.select_shipping.choice_item_content:
            blocks:
                description:
                    template: "@SyliusShop/Checkout/SelectShipping/_description.html.twig"

        sylius.shop.checkout.select_shipping.choice_item_extra:
            blocks:
                shipping_fee:
                    template: "@SyliusShop/Checkout/SelectShipping/_fee.html.twig"

        sylius.shop.product.show.left_sidebar:
            blocks:
                before_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.product.show.before_images
                content:
                    template: "@SyliusShop/Product/Show/_images.html.twig"
                    priority: 10
                after_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.product.show.after_images

        sylius.shop.product.show.right_sidebar:
            blocks:
                header:
                    template: "@SyliusShop/Product/Show/_header.html.twig"
                    priority: 50
                after_product_header_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 45
                    context:
                        event: sylius.shop.product.show.after_product_header
                reviews:
                    template: "@SyliusShop/Product/Show/_reviews.html.twig"
                    priority: 40
                after_reviews_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 35
                    context:
                        event: sylius.shop.product.show.after_reviews
                price_widget:
                    template: "@SyliusShop/Product/Show/_priceWidget.html.twig"
                    priority: 30
                after_price_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 25
                    context:
                        event: sylius.shop.product.show.after_price
                short_description:
                    template: "@SyliusShop/Product/Show/_shortDescription.html.twig"
                    priority: 20
                after_description_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.product.show.after_description
                variant_selection:
                    template: "@SyliusShop/Product/Show/_variantSelection.html.twig"
                    priority: 10
                after_add_to_cart_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 5
                    context:
                        event: sylius.shop.product.show.after_add_to_cart

        sylius.shop.product.show.content:
            blocks:
                before_tabs_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 25
                    context:
                        event: sylius.shop.product.show.before_tabs
                tabs:
                    template: "@SyliusShop/Product/Show/_tabs.html.twig"
                    priority: 20
                before_associations_legacy:
                    template: "@SyliusUi/Block/_legacySonataEvent.html.twig"
                    priority: 15
                    context:
                        event: sylius.shop.product.show.before_associations
                associations:
                    template: "@SyliusShop/Product/Show/_associations.html.twig"
                    priority: 10
