{#if externalActions[block.stepId]}
{:else}
{/if}
{#if isTrigger}
Trigger
{:else}
Step {idx}
{/if}
{ automationNameError = getAutomationNameError(e.target.value) automationName = e.target.value if (!automationNameError) { automationNameError = false // Reset the error when input is valid } }} on:click={startTyping} on:blur={async () => { typing = false if (automationNameError) { automationName = stepNames[block.id] automationNameError = null } else { await saveName() } }} />
{#if showTestStatus && testResult}
{status?.message}
{/if}
{ onSelect(block) }} > {#if !showTestStatus} {#if !isTrigger && !loopBlock && (block?.features?.[Features.LOOPING] || !block.features)}
{/if}
{/if}
dispatch("toggle")} hoverable name={open ? "ChevronUp" : "ChevronDown"} />
{#if automationNameError}
{/if}