{# LIBRARIES #}
{{ attach_library('ui_patterns/form-form.form_lib') }}
{{ attach_library('ui_patterns/libraries.bs_forms') }}
{{ attach_library('ui_patterns/libraries.bs_buttons') }}
{{ attach_library('ui_patterns/libraries.bs_collapse') }}
{{ attach_library('ui_patterns/tm_im.tm_im_lib') }}
{{ attach_library('ui_patterns/jqautocomplete.jqautocomplete_lib') }}
{{ attach_library('ui_patterns/jc_modal.jc_modal_lib') }}

{% set position = position|default('left') %}

{# LIBRARIES #}
{% set classes = [
  "im-sbr-#{ position }",
   hide_toggle ? "im-no-tgl",
] %}
{% set attributes = attributes|default(create_attribute())
  .setAttribute('id', 'im-wrp') %}

{# TEMPLATE #}
{% if content %}
  <div {{ attributes.addClass(classes) }}>
    {{ content }}
  </div>
{% endif %}
