{{#if (and plaintext ciphertext)}}
{{textarea id="plaintext" value=plaintext readonly=true class="textarea" data-test-transit-input="plaintext"}} {{b64-toggle value=plaintext isInput=false initialEncoding="base64" data-test-transit-b64-toggle="plaintext"}}
{{#copy-button clipboardTarget="#plaintext" class="button is-primary" buttonType="button" success=(action (set-flash-message 'Plaintext copied!')) }} Copy {{/copy-button}}
{{else}}
{{textarea id="ciphertext" name="ciphertext" value=ciphertext class="textarea" data-test-transit-input="ciphertext"}}
{{#if key.derived}}
{{input type="text" id="context" value=context class="input" data-test-transit-input="context"}}
{{b64-toggle value=context data-test-transit-b64-toggle="context"}}
{{/if}} {{#if (eq key.convergentEncryptionVersion 1)}}
{{input type="text" id="nonce" value=nonce class="input" data-test-transit-input="nonce"}}
{{b64-toggle value=nonce data-test-transit-b64-toggle="nonce"}}
{{/if}}
{{/if}}