{{- /* Encrypted content renderer. - Encrypts content payload and renders decryptor UI. - Supports full-page mode and partial mode with isolated target container. @param {String} .Password encryption password @param {String} .Content content to encrypt and render @param {String} [.Message] custom input placeholder message @param {Boolean} [.IsPartial] whether current render is partial mode @param {Object} [.Page] current page context (required when IsPartial is true) */ -}} {{- if .Password -}} {{- /* Content Encryption */ -}} {{- $content := dict "Content" .Content "Password" .Password | partial "function/content-encryption.html" -}} {{- /* Generating fixit-encryptor DOM */ -}} {{- $message := .Message | default (T "single.encryptedMessage") -}} {{- $loading := resources.Get "images/loading.svg" | minify -}} {{- $id := "fixit-decryptor-input" -}} {{- if .IsPartial -}} {{- $id = dict "Page" .Page | partial "function/id.html" -}} {{- end -}}
decryptor loading {{- if not .IsPartial -}} {{- end -}}
{{- if .IsPartial }}
{{ end -}} {{ $content }}
{{- end -}}