{{#if inline}}
  {{#if sortable}}
    {{#sortable-group onChange=(action 'reorderItems') as |group|}}
      {{#each items key='@index' as |item index|}}
        {{#sortable-item group=group handle='.frost-bunsen-handle' model=item}}
          {{frost-bunsen-array-inline-item
            bunsenId=bunsenId
            bunsenModel=bunsenModel
            bunsenView=bunsenView
            cellConfig=cellConfig
            compact=compact
            errors=errors
            formDisabled=formDisabled
            hook=hook
            index=index
            onChange=(action 'handleChange')
            onError=onError
            onRemove=(action 'removeItem')
            readOnly=readOnly
            registerForFormValueChanges=registerForFormValueChanges
            registerValidator=registerValidator
            renderers=renderers
            showAllErrors=showAllErrors
            sortable=true
            triggerValidation=triggerValidation
            unregisterForFormValueChanges=unregisterForFormValueChanges
            value=value
            valueChangeSet=valueChangeSet
          }}
        {{/sortable-item}}
      {{/each}}
    {{/sortable-group}}
  {{else}}
    {{#each items key='@index' as |item index|}}
      {{frost-bunsen-array-inline-item
        bunsenId=bunsenId
        bunsenModel=bunsenModel
        bunsenView=bunsenView
        cellConfig=cellConfig
        compact=compact
        errors=errors
        formDisabled=formDisabled
        hook=hook
        index=index
        onError=onError
        onChange=(action 'handleChange')
        onRemove=(action 'removeItem')
        readOnly=readOnly
        registerForFormValueChanges=registerForFormValueChanges
        registerValidator=registerValidator
        renderers=renderers
        showAllErrors=showAllErrors
        sortable=false
        triggerValidation=triggerValidation
        unregisterForFormValueChanges=unregisterForFormValueChanges
        value=value
        valueChangeSet=valueChangeSet
      }}
    {{/each}}
  {{/if}}
{{else}}
  {{#if description}}
    <div class='frost-bunsen-description'>
      {{description}}
    </div>
  {{/if}}
  <ul class='frost-bunsen-nav frost-bunsen-nav-tabs'>
    {{#each items key='@index' as |item index|}}
      {{frost-bunsen-array-tab-nav
        bunsenModel=bunsenModel
        bunsenView=bunsenView
        cellConfig=cellConfig
        formDisabled=formDisabled
        index=index
        onRemove=(action 'removeItem')
        renderers=renderers
        showAllErrors=showAllErrors
        valueChangeSet=valueChangeSet
      }}
    {{/each}}
    {{#unless readOnly}}
      <li role='presentation'>
        {{frost-button
          disabled=disabled
          hook=(concat hook '-addBtn')
          icon='round-add'
          onClick=(action 'addItem')
          priority='tertiary'
          size='medium'
          text=addLabel
        }}
      </li>
    {{/unless}}
  </ul>
  <div class='frost-bunsen-tab-content'>
    {{#each items key='@index' as |item index|}}
      {{frost-bunsen-array-tab-content
        bunsenId=bunsenId
        bunsenModel=bunsenModel
        bunsenView=bunsenView
        cellConfig=cellConfig
        errors=errors
        formDisabled=formDisabled
        hook=hook
        index=index
        onError=onError
        onChange=(action 'handleChange')
        readOnly=readOnly
        registerForFormValueChanges=registerForFormValueChanges
        registerValidator=registerValidator
        renderers=renderers
        showAllErrors=showAllErrors
        triggerValidation=triggerValidation
        unregisterForFormValueChanges=unregisterForFormValueChanges
        value=value
        valueChangeSet=valueChangeSet
      }}
    {{/each}}
  </div>
{{/if}}
{{#if (and (not items) readOnly)}}
  <span class="frost-bunsen-empty-msg">
    List is currently empty.
  </span>
{{/if}}
{{#if (and showAddButton (not readOnly))}}
  {{frost-button
    disabled=disabled
    hook=(concat hook '-addBtn')
    icon='round-add'
    onClick=(action 'addItem')
    priority='tertiary'
    size='medium'
    text=addLabel
  }}
{{/if}}
