<!--
  Copyright IBM Corp. 2016, 2018

  This source code is licensed under the Apache-2.0 license found in the
  LICENSE file in the root directory of this source tree.
-->

<div class="{{prefix}}--form-item">
  <strong class="{{prefix}}--file--label">Account
    photo</strong>
  <p class="{{prefix}}--label-description">Only .jpg and .png files. 500kb max file size.</p>
  <div class="{{prefix}}--file" data-file data-file-demo-state-manager>
    <label for="{{id}}" class="{{prefix}}--file-browse-btn" role="button" tabindex="0">
      <div data-file-drop-container class="{{prefix}}--file__drop-container">
        Drag and drop files here or
        upload
        <input type="file" class="{{prefix}}--file-input" id="{{id}}" data-file-uploader
          data-target="[data-file-container]" multiple />
      </div>
    </label>
    <div data-file-container class="{{prefix}}--file-container">
      {{#if exampleUploadStates}}
      <div class="{{prefix}}--file__selected-file">
        <p class="{{prefix}}--file-filename">Lorem ipsum dolor sit amet consectetur adipisicing elit. Libero vero
          sapiente illum reprehenderit molestiae perferendis voluptatem temporibus laudantium ducimus magni voluptatum
          veniam, odit nesciunt corporis numquam maxime sunt excepturi sint!</p>
        <span data-for="{{id}}" class="{{prefix}}--file__state-container">
          {{ carbon-icon 'CheckmarkFilled16' class=(add prefix '--file-complete') }}
        </span>
      </div>
      <div class="{{prefix}}--file__selected-file {{prefix}}--file__selected-file--invalid" data-invalid>
        <p class="{{prefix}}--file-filename">color.jpeg</p>
        <span data-for="{{id}}" class="{{prefix}}--file__state-container">
          {{ carbon-icon 'WarningFilled16' class=(add prefix '--file--invalid')}}
          {{ carbon-icon 'Close16' class=(add prefix '--file-close') aria-label="Remove uploaded file" tabindex="0" }}
        </span>
        <div class="{{prefix}}--form-requirement">
          <div class="{{prefix}}--form-requirement__title">File size exceeds limit.</div>
          <p class="{{prefix}}--form-requirement__supplement">500 kb max file size. Select a new file and try
            again.</p>
        </div>
      </div>
      <div class="{{prefix}}--file__selected-file">
        <p class="{{prefix}}--file-filename">color.jpeg</p>
        <span data-for="{{id}}" class="{{prefix}}--file__state-container">
          <div class="{{prefix}}--inline-loading__animation">
            <div data-inline-loading-spinner="" class="{{prefix}}--loading {{prefix}}--loading--small">
              <svg class="{{prefix}}--loading__svg" viewBox="-75 -75 150 150">
                <circle class="{{prefix}}--loading__background" cx="0" cy="0" r="26.8125"></circle>
                <circle class="{{prefix}}--loading__stroke" cx="0" cy="0" r="26.8125"></circle>
              </svg>
            </div>
          </div>
        </span>
      </div>
      {{/if}}
    </div>
  </div>
</div>
