{#if arg != undefined}
{#if isStaticTemplate(inputCat)} {'${...}'} {/if}
{#if !noDynamicToggle}
{ const staticTemplate = isStaticTemplate(inputCat) if (e.detail === 'javascript') { if (arg.expr == undefined) { arg.expr = getDefaultExpr( argName, previousModuleId, staticTemplate ? `\`${arg?.value?.toString().replaceAll('`', '\\`') ?? ''}\`` : arg.value ? JSON.stringify(arg?.value, null, 4) : '' ) } if (arg) { arg.value = undefined } propertyType = 'javascript' arg.type = 'javascript' } else { if (staticTemplate) { if (arg) { arg.value = codeToStaticTemplate(arg.expr) arg.expr = undefined } setPropertyType(arg?.value) } else { if (arg) { arg.type = 'static' arg.value = undefined arg.expr = undefined } } propertyType = 'static' } }} > {#if isStaticTemplate(inputCat)} {'${} '}  Write text or surround javascript with "{openBracket}" and "{closeBracket}". Use `result` to connect to another node's output. {:else} Static {/if}  Write javascript expressions directly, using 'flow_input' or 'result'. You can use multiline javascript.
{/if}
{#if $propPickerConfig?.propName == argName && $propPickerConfig?.insertionMode == 'connect'} Connect input → {/if} {#if isStaticTemplate(inputCat) && propertyType == 'static' && !noDynamicToggle}
{#if arg} {/if}
{:else if propertyType === undefined || propertyType == 'static'} {:else if arg.expr != undefined}
{ focusProp(argName, 'insert', (path) => { monaco?.insertAtCursor(path) return false }) }} autoHeight />
{:else} Not recognized input type {argName} {/if}
{/if}