<div class="form__group">
  <h6>{{i18n 'Publish Settings'}}</h6>

  <select class="form__input" onchange={{action 'setPublishStrategy' value='target.value'}} data-test-publish-strategies>
    {{#each publishStrategies as |strategy|}}
      <option selected={{eq currentPublishStrategy strategy}} value={{strategy.value}}>
        {{i18n strategy.label}}
      </option>
    {{/each}}
  </select>

  <p class="hint mg-b-1" data-test-publish-description>
    {{i18n publishDescription}}
  </p>

  {{#if video.isScheduled}}
    <h6>{{i18n 'Choose a Publish Date'}}</h6>
    <div class="tower tower--bleed tower--gutter-xs flex--verticalCenter form__input-group mg-b-1">
      <div class="col-xs-6">
        {{! wait for pikadayContainer to be available before initializing Pikaday}}
        {{#if pikadayContainer}}
          {{pikaday-input
            class='pika-input full-width mg-b-0 form__input'
            theme='inline'
            onSelection=(action 'setViewableAtDate')
            value=video.viewableAt
            minDate=minDate
            readonly=true
            options=(hash container=pikadayContainer)
            format='MMM D, YYYY'}}
        {{/if}}

        <div id="pikaday-container"></div>
      </div>

      <div class="col-xs-4">
        {{time-picker time=video.viewableAt onChange=(action 'setViewableAtTime')}}
      </div>

      <div class="col-xs-2">
        {{current-timezone format='z'}}
      </div>
    </div>
  {{/if}}
</div>
