{{#if (eq this.imageSelector.type "placeholder")}} {{!-- image selector placeholder (eg, gif browser) --}} {{component this.imageSelector.component searchTerm=this.payload.searchTerm select=(action "selectFromImageSelector") close=(action "closeImageSelector")}} {{else}} {{!-- standard image upload placeholder --}}
{{#if (or this.previewSrc this.payload.src)}} {{this.payload.alt}} {{#if this.isDraggedOver}}
Drop to replace image
{{/if}} {{/if}} {{#if (or uploader.errors uploader.isUploading (not this.payload.src))}}
{{#if uploader.errors}} {{uploader.errors.firstObject.message}} {{/if}} {{#if this.isDraggedOver}} Drop it like it's hot 🔥 {{else if uploader.isUploading}} {{uploader.progressBar}} {{else if (not this.previewSrc this.payload.src)}} {{/if}}
{{/if}}
{{#if (or this.isSelected (clean-basic-html this.payload.caption))}} {{#if this.isEditingAlt}} {{else}} {{/if}} {{#if this.isSelected}} {{/if}} {{/if}} {{/if}} {{#if (eq this.imageSelector.type "modal")}} {{component this.imageSelector.component searchTerm=this.payload.searchTerm select=(action "selectFromImageSelector") close=(action "closeImageSelector")}} {{/if}}
{{#if this.isEditingLink}} {{/if}}