{#if !loaded}{:else} {#if showForm} {#if error}{/if}
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} {/each}
{t('commandConfig.responseTemplate')}
{t('commandConfig.responseMode')}
{:else}
{t('commandConfig.noCommandsForProvider')}
{/if}
{/if} {#if !showForm && allCmdConfigs.length > 0}
{#if !globalProviderFilter.id}
{/if}
{/if} {#if allCmdConfigs.length === 0 && !showForm} {:else if configs.length === 0 && !showForm} {:else}
{#each configs as cfg}

{cfg.name}

{cfg.provider_type}
{(cfg.enabled_commands || []).length} {t('commandConfig.commands')} · {t('commandConfig.responseMode')}: {cfg.response_mode === 'media' ? t('commandConfig.modeMedia') : t('commandConfig.modeText')} · {t('commandConfig.defaultCount')}: {cfg.default_count} {#if cfg.command_template_config_id} {/if}
editConfig(cfg)} /> remove(cfg)} variant="danger" />
{/each}
{/if} {/if} confirmDelete?.onconfirm()} oncancel={() => confirmDelete = null} /> blockedBy = null} />