{ e.preventDefault(); service.settle(false); }} onclick={(e) => { const opts = service.options; if (!opts) return; const closeOnBackdrop = opts.closeOnBackdrop ?? !opts.destructive; if (closeOnBackdrop && e.target === dialogEl) { service.settle(false); } }} > {#if service.options} {@const opts = service.options}

{opts.title}

{#if opts.body !== undefined}

{opts.body}

{/if}
{/if}