{# LIBRARIES #}
{{ attach_library('altcom_ajax/altcom_ajax') }}
{{ attach_library('ui_patterns/libraries.bs_collapse') }}
{{ attach_library('ui_patterns/jc_dropdown.jc_base') }}
{{ attach_library('ui_patterns/jc_dropdown.jc_dropdown_lib') }}

{% set pass_through = element.pass_through|default({}) %}
<!-- JC Block - Dropdown -->
<div id="jcdw">
  <div id="jcd">
    {% set loader %}
      <div class="service-loader jcd-loader">
        {% include "@molecules/tm-bs/spinner/spinner.twig" with {
          'size': 'sm', 'show_text': true, 'status': 'default'
        } only %}
      </div>
    {% endset %}
    {{ altcom_ajax_link(
      loader,
      "journey_check_dropdown_items",
      "jcdw", {'pass_through': pass_through}, 0, 1)
    }}
  </div>
</div>
<!-- / JC Block -->
