{# LIBRARIES #}
{{ attach_library('altcom_ajax/altcom_ajax') }}
{{ attach_library('ui_patterns/jc_statusicon.jc_statusicon_lib') }}

{% set pass_through = element.pass_through|default({}) %}
{% set classes = classes|default('h-100') %}

<!-- JC Status Icon -->
<span id="jcsi" class="{{ classes }}">
  <span class="service-loader jcsi-loader">
    {% include "@molecules/tm-bs/spinner/spinner.twig" with {
      'size': 'sm', 'show_text': false, 'status': 'default', 'elem': 'span'
    } only %}
  </span>
  {% set ajax_attrs = altcom_ajax_attrs_string(
    "journey_check_status_icon",
    "jcsi", {'pass_through': pass_through}, 0, 2, 0, 0, 0) %}
  <span {{ ajax_attrs|raw }}></span>
</span>
<!-- / JC Status Icon -->
