{# Zap Button - always visible #} {# Modal Dialog #} {% if this.open %}
{# Header #}
Send Zap
{# Phase: Input #} {% if this.phase == 'input' %} {# Display zap splits information if configured #} {% if this.zapSplits|length > 0 %}
⚡ Split Payment

This zap will be split between {{ this.zapSplits|length + 1 }} recipients:

  • Primary recipient
  • {% for split in this.zapSplits %}
  • {{ split.recipient|slice(0, 8) }}...{{ split.recipient|slice(-8) }} {% if split.weight %}(weight: {{ split.weight }}){% endif %}
  • {% endfor %}
{% endif %}
Click a suggested amount or enter custom value
{% endif %} {# Phase: Loading #} {% if this.phase == 'loading' %}
Loading...

Creating invoice...

{% endif %} {# Phase: Invoice #} {% if this.phase == 'invoice' %}

✓ Invoice ready!

Scan with your Lightning wallet

{# QR Code #}
{{ qrSvg|raw }}
{# BOLT11 Invoice String #}
{# Lightning URI Link #}
⚡ Open in Wallet Or scan the QR code above
{# Back button #}
{% endif %} {# Phase: Error #} {% if this.phase == 'error' %}
Error: {{ error }}
{% endif %}
{% endif %}