{$i18n.t('Your Account')}
{$i18n.t('Manage your account information.')}
{$i18n.t('Name')}
{$i18n.t('Bio')}
{$i18n.t('Gender')}
{ console.log(_gender); if (_gender === 'custom') { // Handle custom gender input gender = ''; } else { gender = _gender; } }} >
{$i18n.t('Prefer not to say')}
{$i18n.t('Male')}
{$i18n.t('Female')}
{$i18n.t('Custom')}
{#if _gender === 'custom'}
{/if}
{$i18n.t('Birth Date')}
{#if $config?.features?.enable_user_webhooks}
{$i18n.t('Notification Webhook')}
{/if}
{#if $config?.features.enable_login_form}
{/if} {#if ($config?.features?.enable_api_keys ?? true) && ($user?.role === 'admin' || ($user?.permissions?.features?.api_keys ?? false))}
{$i18n.t('API keys')}
{ showAPIKeys = !showAPIKeys; }}>{showAPIKeys ? $i18n.t('Hide') : $i18n.t('Show')}
{#if showAPIKeys}
{#if $user?.role === 'admin'}
{$i18n.t('JWT Token')}
{ copyToClipboard(localStorage.token); JWTTokenCopied = true; setTimeout(() => { JWTTokenCopied = false; }, 2000); }} > {#if JWTTokenCopied}
{:else}
{/if}
{/if} {#if ($config?.features?.enable_api_keys ?? true) && ($user?.role === 'admin' || ($user?.permissions?.features?.api_keys ?? false))}
{#if $user?.role === 'admin'}
{$i18n.t('API Key')}
{/if}
{#if APIKey}
{ copyToClipboard(APIKey); APIKeyCopied = true; setTimeout(() => { APIKeyCopied = false; }, 2000); }} > {#if APIKeyCopied}
{:else}
{/if}
{ createAPIKeyHandler(); }} >
{:else}
{ createAPIKeyHandler(); }} >
{$i18n.t('Create new secret key')}
{/if}
{/if}
{/if} {/if}
{ const res = await submitHandler(); if (res) { saveHandler(); } }} > {$i18n.t('Save')}