{#if error}
{error}
{/if}
{#if !activeType}
{t('targets.type')}
{/if}
form.icon = v} />
{#if formType === 'telegram'}
{t('telegramBot.selectBot')}
{#if telegramBotCount === 0}

{t('telegramBot.noBots')}

{/if}
{#if showTelegramSettings}
{t('targets.chatAction')}
{/if}
{:else if formType === 'discord' || formType === 'slack'}
{:else if formType === 'ntfy'}
{:else if formType === 'email'}
{t('targets.selectEmailBot')}
{#if emailBotCount === 0}

{t('emailBot.noBots')}

{/if}
{:else if formType === 'matrix'}
{t('targets.selectMatrixBot')}
{#if matrixBotCount === 0}

{t('matrixBot.noBots')}

{/if}
{:else if formType === 'broadcast'} {@const childIds = (form.child_target_ids || []).map(String)}
{t('targets.selectChildTargets')}
({ value: String(i.value), label: i.label, icon: i.icon, desc: i.desc })) ?? []} values={childIds} onchange={(vals) => form.child_target_ids = vals.map(Number)} placeholder={t('targets.selectChildTargets')} /> {#if broadcastChildItems?.length === 0}

{t('targets.noChildTargetsAvailable')}

{/if}
{/if} {#if formType === 'telegram'} {/if}