{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
{% block base_head %}
{{ parent() }}
{# {% set tsConfig = config('trustedShopsApp.config') %} #}
{% set tsChannelId = context.salesChannel.id ?? null %}
{% if tsChannelId is not null %}
{% if tsConfig[tsChannelId].widgets is defined and expectedMapping[tsChannelId] === tsConfig[tsChannelId].widgets.eTrustedChannelRef %}
{% if tsConfig[tsChannelId].widgets is defined and tsConfig[tsChannelId].widgets is not null %}
{% set widgetConfig = tsConfig[tsChannelId].widgets.children.0 %}
{% sw_include '@Storefront/storefront/includes/script-assembler.html.twig' with {
scriptConfig: widgetConfig
} %}
{% endif %}
{% endif %}
{% endif %}
{% endblock %}