{#if !loaded}{:else} {#if showForm} {#if error}{/if} {t('commandConfig.name')} form.icon = v} /> nameManuallyEdited = true} required placeholder={t('commandConfig.namePlaceholder')} class="flex-1 px-3 py-2 border border-[var(--color-border)] rounded-md text-sm bg-[var(--color-background)]" /> {t('commandConfig.providerType')} {#if !editing} {:else} {form.provider_type} {/if} {#if hasCommands} {t('commandConfig.enabledCommands')} {#each providerCommands as cmd} toggleCmd(cmd.key)} /> /{cmd.key} {/each} {t('commandConfig.responseTemplate')} {t('commandConfig.responseMode')} {t('commandConfig.defaultCount')} {t('commandConfig.searchCooldown')} {t('commandConfig.defaultCooldown')} {:else} {t('commandConfig.noCommandsForProvider')} {/if} {submitting ? t('common.loading') : (editing ? t('common.save') : t('common.create'))} {/if} {#if !showForm && allCmdConfigs.length > 0}
{form.provider_type}
{t('commandConfig.enabledCommands')}
{cfg.name}