{{#koenig-card tagName="figure" class=(concat (kg-style "media-card") " flex flex-column") isSelected=isSelected isEditing=isEditing selectCard=(action selectCard) onSelect=(action "onSelect") onDeselect=(action "onDeselect") editCard=(action editCard) toolbar=toolbar hasEditMode=false }} {{#gh-uploader accept=imageMimeTypes extensions=imageExtensions onStart=(action "setPreviewSrc") onComplete=(action "updateSrc") onFailed=(action "resetSrcs") as |uploader| }}
{{#if (or previewSrc payload.src)}} {{payload.alt}} {{/if}} {{#if (or uploader.errors uploader.isUploading (not payload.src))}}
{{#if uploader.errors}} {{uploader.errors.firstObject.message}} {{/if}} {{#if uploader.isUploading}} {{uploader.progressBar}} {{else if (not previewSrc payload.src)}} {{/if}}
{{/if}}
{{gh-file-input multiple=false action=uploader.setFiles accept=imageMimeTypes}}
{{/gh-uploader}} {{#if (or isSelected payload.caption)}}
{{/if}} {{/koenig-card}}