<div class="{{@themeInstance.paginationWrapper}} {{@themeInstance.paginationWrapperNumeric}}" ...attributes>
  {{#let
    (hash
      PageNumberSelect=(
        component (ensure-safe-component @themeInstance.selectComponent)
        id=this.inputId
        options=@currentPageNumberOptions
        value=@currentPageNumber
        type="number"
        themeInstance=@themeInstance
        changeValue=this.goToPage)
      visiblePageNumbers=this.visiblePageNumbers)
  as |Pagination|
  }}
    {{#if (has-block)}}
      {{yield Pagination}}
    {{else}}
      <div class={{@themeInstance.paginationInternalWrapper}}>
        <div class={{@themeInstance.paginationBlock}}>
          {{#each this.visiblePageNumbers as |page|}}
            {{#if page.isLink}}
              <button
                type="button"
                class="{{@themeInstance.paginationNumericItem}} {{if page.isActive @themeInstance.paginationNumericItemActive}} {{@themeInstance.buttonDefault}}"
                {{on "click" (fn this.goToPage page.label)}}>
                {{page.label}}
              </button>
            {{else}}
              <button
                type="button"
                class="{{@themeInstance.buttonDefault}} {{@themeInstance.paginationNumericItem}}"
                disabled="disabled">
                {{page.label}}
              </button>
            {{/if}}
          {{/each}}
        </div>
      </div>
      {{#if @showCurrentPageNumberSelect}}
        <div class={{@themeInstance.currentPageSizeSelectWrapper}}>
          <form class={{@themeInstance.form}}>
            <div class={{@themeInstance.formElementWrapper}}>
              <label for={{this.inputId}}>{{@themeInstance.currentPageNumberMsg}}</label>
              <Pagination.PageNumberSelect/>&nbsp;
            </div>
          </form>
        </div>
      {{/if}}
    {{/if}}
  {{/let}}
</div>