@if (hasVideoScheduledPublication()) {
  <my-alert type="primary" i18n>
  This video will be published on {{ video().scheduledUpdate.updateAt | ptDate: 'full' }}.
</my-alert>
}

@if (isWaitingForLive()) {
  <my-alert type="primary">
    <ng-container i18n>This live is not currently streaming.</ng-container>
    @if (scheduledLiveDate()) {
      <ng-container i18n>
      It will start on {{ scheduledLiveDate() | ptDate: 'short' }}.
    </ng-container>
    }
  </my-alert>
}

@if (isLiveEnded()) {
  <my-alert type="primary" i18n>
  This live has ended.
</my-alert>
}

@if (getAlertWarning()?.title) {
  <my-alert type="warning">
    <div class="alert-title">{{ getAlertWarning()?.title }}</div>
    @if (canSeeMoreInfo()) {
      {{ getAlertWarning().watchSecondary }}
    }
    {{ getAlertWarning().watchMain }}
  </my-alert>
}

@if (noPlaylistVideoFound()) {
  <my-alert i18n type="warning">
  There are no videos available in this playlist.
</my-alert>
}

@if (video()?.blacklisted) {
  <my-alert type="danger">
    <div class="blocked-label" i18n>This video is blocked.</div>
    {{ video().blacklistedReason }}
  </my-alert>
}

@if (video()?.canBypassPassword(user())) {
  <my-alert i18n type="warning">
  This video is password protected.
</my-alert>
}
