{%- set classes = settings.classes | merge( [ base_styles.base ] ) | join(' ') | trim %}
{%- set id_attribute = settings._cssid is not empty ? 'id=' ~ settings._cssid | e('html_attr') : '' %}
{%- set interactions_attribute = interactions is not empty ? 'data-interactions=' ~ interactions | json_encode | e('html_attr') : '' %}
{%- set required_attribute = settings.required ? 'required' : '' %}
{%- set name = settings._cssid is not empty ? settings._cssid : id %}
{%- set name_attribute = 'name=' ~ name | e('html_attr') %}
{%- set min_attribute = settings.min_max.min is not empty ? 'min=' ~ settings.min_max.min | e('html_attr') : '' %}
{%- set max_attribute = settings.min_max.max is not empty ? 'max=' ~ settings.min_max.max | e('html_attr') : '' %}
<input type="date"
	{{ id_attribute }}
	{{ name_attribute }}
	class="{{ classes }}"	
	data-interaction-id="{{ interaction_id | default(id) }}"
	{{ settings.attributes | raw }} 
	{{ interactions_attribute }}
	{{ required_attribute }}
	{{ min_attribute | raw }}
	{{ max_attribute | raw }}
/>
