<div class="search spacer-md" data-module="search" data-search-api-endpoint="{{searchApiEndpoint}}"
     data-page-size="{{pageSize}}" data-datasource="{{datasource}}"
     data-search-term-parameter-name="{{searchBar.searchTermParameterName}}" data-type-parameter-name="{{typeParameterName}}">
    <div data-module="card"></div>
    {{#if searchBar}}
        {{> @cp-search-bar searchTerm=results.searchTerm}}
    {{/if}}
    <div class="grid-container">
        <div class="grid-x grid-padding-x">
            <div class="cell medium-10 medium-offset-1 large-8 large-offset-2">
                <div class="search__loader js-search-loader">{{> @loader }}</div>
                <p class="search__total-label js-search-label"></p>
                <p class="search__message search__message--error js-results-error">Something went wrong...</p>
            </div>
        </div>
    </div>
    <div class="search__results-wrapper js-results-wrapper"></div>
    <div class="grid-container">
        <div class="grid-x grid-padding-x">
            <div class="search__button-wrapper medium-offset-5 medium-2">
                {{> @cp-button-secondary target=button.target url=button.url text=button.text modifier="default" cssClasses="search__load-more js-search-load-more"}}
            </div>
        </div>
    </div>
</div>