{#if edit} {$i18n.t("Edit Connection")} {:else} {$i18n.t("Add Connection")} {/if}

{ importHandler(e); }} />
{ e.preventDefault(); submitHandler(); }} >
{$i18n.t("Type")}
{#if !direct} {:else}
{$i18n.t("OpenAPI")}
{/if}
{#if !direct}
{/if}
{$i18n.t("Auth")}
{#if ["oauth_2.1", "oauth_2.1_static"].includes(auth_type)}
{#if !oauthClientInfo}
{$i18n.t("Not Registered")}
{:else}
{$i18n.t("Registered")}
{/if}
{/if}
{#if auth_type === "bearer"} {:else if auth_type === "none"}
{$i18n.t("No authentication")}
{:else if auth_type === "session"}
{$i18n.t( "Forwards system user session credentials to authenticate", )}
{:else if auth_type === "system_oauth"}
{$i18n.t( "Forwards system user OAuth access token to authenticate", )}
{:else if auth_type === "oauth_2.1"}
{$i18n.t( "Uses OAuth 2.1 Dynamic Client Registration", )}
{:else if auth_type === "oauth_2.1_static"}
{/if}
{#if !direct} {/if}
{#if showAdvanced} {#if ["", "openapi"].includes(type)}
{$i18n.t("OpenAPI Spec")}
{#if spec_type === "url"}
{:else if spec_type === "json"}