{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
~}}

{{#unless this.selectedAuthIsPath}}
  <div class="box has-slim-padding is-shadowless">
    <ToggleButton @isOpen={{this.isOpen}} @onClick={{fn (mut this.isOpen)}} data-test-auth-form-options-toggle />
    {{#if this.isOpen}}
      <div class="field">
        <label for="custom-path" class="is-label">
          Mount path
        </label>
        <div class="control">
          <input
            type="text"
            name="custom-path"
            id="custom-path"
            class="input"
            value={{@customPath}}
            oninput={{action @onPathChange value="target.value"}}
            data-test-auth-form-mount-path
          />
        </div>
        <AlertInline
          class="has-top-padding-s"
          @type="info"
          @message="If this backend was mounted using a non-default path, enter it here."
        />
      </div>
    {{/if}}
  </div>
{{/unless}}