{ if (selected) return; if (edit) { submitHandler(); } else { showConfirm = true; } }} >
{#if edit && version_id} {/if}
{#if selected} {:else} {/if}
{#if edit}
{id}
{:else} {/if} {#if selected} {:else} {/if}
{#if !edit} {/if}
{#if locale && !comparison} {#key selected?.id} {#if selected} {:else} {/if} {/key} {/if} {#if comparison} ({ diff: comparison.content_diff, line_endings_only: comparison.line_endings_only })} onClose={() => { comparison = null; }} /> {/if} {#if selected && !locale && !comparison} {/if}
{ if (selected) return; content = e; _content = e; if (!edit) { const fm = extractFrontmatter(e) as Record; if (fm.title && !name) { name = formatSkillName(fm.title); id = nameToId(fm.title); } if (fm.description && !meta.description) { meta = { ...meta, description: fm.description }; } } }} onSave={async () => { if (formElement) { formElement.requestSubmit(); } }} />
{warning}
{#if selected} {#if !comparison} {/if} {:else} {/if}
{ submitHandler(); }} >
{$i18n.t('Please carefully review the following warnings:')}
  • {$i18n.t('Functions allow arbitrary code execution.')}
  • {$i18n.t('Do not install functions from sources you do not fully trust.')}
{$i18n.t( 'I acknowledge that I have read and I understand the implications of my action. I am aware of the risks associated with executing arbitrary code and I have verified the trustworthiness of the source.' )}