{#if loading}
{:else} {#if hint}
{hint}
{/if}
{#each PRESETS as item (item.label)}
save(item.toggles)} type="button" class:on={shown !== null && sameToggles(shown, item.toggles)} > {t(item.label)}
{/each}
{#if shown}
{#each TOGGLE_KEYS as key (key)}
flip(key)} role="switch" type="button" class:changed={differs(key)} >
{toggleLabel(key)}
{/each}
{/if} {#if problem}
{t(problem)}
{/if} {#if target}
{/if} {#if rule && (isChat || isFolder)} {#if removing}
{t("policy.rule.removeConfirm")}
{ removing = false; }} smaller variant="text" > {t("common.cancel")}
{t("common.delete")}
{:else}
{ removing = true; }} type="button" > {t("policy.rule.remove")}
{/if} {/if} {/if}