{# @copyright   Copyright (C) 2010-2024 Combodo SAS #}
{# @license     http://opensource.org/licenses/AGPL-3.0 #}
{% apply spaceless %}
oWidget{{ oUIBlock.oUILinksWidget.GetInputId() }} = new LinksWidget(
        '{{ oUIBlock.oUILinksWidget.GetLinkedSetId() }}',
        '{{ oUIBlock.oUILinksWidget.GetClass() }}',
        '{{ oUIBlock.oUILinksWidget.GetAttCode() }}',
        '{{ oUIBlock.oUILinksWidget.GetInputId() }}',
        '{{ oUIBlock.oUILinksWidget.GetNameSuffix() }}',
        {{ oUIBlock.sDuplicates }},
        {{ oUIBlock.sWizHelper }},
        '{{ oUIBlock.oUILinksWidget.GetExternalKeyToRemote() }}',
        {{ oUIBlock.sJSDoSearch }},
        {{ oUIBlock.iMaxAddedId }},
        {{ oUIBlock.aRemoved | json_encode | raw }}
);
oWidget{{ oUIBlock.oUILinksWidget.GetInputId() }}.Init();
{% endapply %}