{{#koenig-card tagName="figure" class=(concat (kg-style "media-card") " " (kg-style "breakout" size="wide") " flex flex-column") isSelected=isSelected isEditing=isEditing selectCard=(action selectCard) deselectCard=(action deselectCard) editCard=(action editCard) toolbar=toolbar hasEditMode=false addParagraphAfterCard=addParagraphAfterCard moveCursorToPrevSection=moveCursorToPrevSection moveCursorToNextSection=moveCursorToNextSection editor=editor onSelect=(action "didSelect") onDeselect=(action "didDeselect") as |card| }} {{#gh-uploader files=files accept=imageMimeTypes extensions=imageExtensions onUploadStart=(action "addImage") onUploadSuccess=(action "setImageSrc") onUploadFailure=(action "uploadFailed") onFailed=(action "handleErrors") as |uploader| }}
{{#if imageRows}}
{{#each imageRows as |row index|}}
{{#each row as |image|}}
{{#unless koenigDragDropHandler.isDragging}}
{{/unless}}
{{/each}}
{{/each}}
{{/if}} {{#if (or uploader.isUploading (is-empty imageRows))}}
{{#if isDraggedOver}} Drop 'em like it's hot 🔥 {{else if uploader.isUploading}} {{uploader.progressBar}} {{else if (is-empty imageRows)}} {{/if}}
{{else if isDraggedOver}}
Drop to add up to 9 images
{{/if}} {{#if (and errorMessage (not isDraggedOver))}}
{{errorMessage}}.
{{/if}}
{{gh-file-input multiple=true action=(action "setFiles") accept=imageMimeTypes}}
{{/gh-uploader}} {{#if (or isSelected (clean-basic-html payload.caption))}} {{card.captionInput caption=payload.caption update=(action "updateCaption") placeholder="Type caption for gallery (optional)" }} {{/if}} {{/koenig-card}}