{namespace vh=Newland\NeosViewHelpers\ViewHelpers}
{namespace components=Newland\NeosCommon\ViewHelpers}

<div
    data-toubiz-events-list
    class="tb-event-list is-loaded">

    <div class="tb-event-list__body relative">
        <ul data-toubiz-events-list-items
            class="tb-event-list__items overflow-hidden m-0 p-0 opacity-0 max-h-xs">
            <f:for each="{eventDates}" as="eventDate">
                <vh:render partial="EventDates/ListItem" arguments="{eventDate: eventDate, node: node, targetNode: targetNode}"/>
            </f:for>
        </ul>
    </div>
</div>

<f:if condition="!{disablePagination}">
    <components:pagination
        currentPage="{pagination.page}"
        totalPageCount="{pagination.count.pages}"
    />
</f:if>
