(function() {
  var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
templates['upload-item'] = template({"1":function(container,depth0,helpers,partials,data) {
    return " form-input-error";
},"3":function(container,depth0,helpers,partials,data) {
    var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5="function";

  return "\n		<div class=\"vector-upload-item-content\">\n\n			<div class=\"vector-upload-item-delete-message\">\n				<div>\n					<p>\n						<i class=\"fa fa-warning\"></i>\n						"
    + alias3((helpers.polyglot || (depth0 && depth0.polyglot) || alias2).call(alias1,"This file will be deleted.",{"name":"polyglot","hash":{},"data":data}))
    + "\n					</p>\n					<a href=\"javascript:void(0)\" data-action=\"undo-delete\" class=\"file-delete\">\n						<i class=\"fa fa-undo\"></i>\n						"
    + alias3((helpers.polyglot || (depth0 && depth0.polyglot) || alias2).call(alias1,"Undo this action",{"name":"polyglot","hash":{},"data":data}))
    + "\n					</a>\n				</div>\n			</div>\n\n			<div class=\"vector-upload-drag\">\n				<div>\n					<span><i></i></span>\n					<span><i></i></span>\n					<span><i></i></span>\n					<span><i></i></span>\n				</div>\n			</div>\n\n			<div class=\"vector-upload-object\">\n				<a href=\""
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.file : stack1), depth0))
    + "\" class=\""
    + alias3((helpers.ifImageExtension || (depth0 && depth0.ifImageExtension) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.extension : stack1),"vector-upload-type-image showup","vector-upload-type-file",{"name":"ifImageExtension","hash":{},"data":data}))
    + "\" rel=\""
    + alias3((helpers.ifImageExtension || (depth0 && depth0.ifImageExtension) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.extension : stack1),(depth0 != null ? depth0.association : depth0),{"name":"ifImageExtension","hash":{},"data":data}))
    + "-alt\">\n					<img src=\""
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.thumbnail : stack1), depth0))
    + "\" class=\"cms-image\" alt=\"\" />\n				</a>\n			</div>\n\n			<div class=\"vector-upload-caption\">\n\n				<input type=\"hidden\" name=\"data["
    + alias3(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "]"
    + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.multiple : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "[id]\" value=\""
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.id : stack1), depth0))
    + "\" />\n				<input type=\"hidden\" name=\"data["
    + alias3(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "]"
    + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.multiple : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "[token]\" value=\""
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.token : stack1), depth0))
    + "\" />\n\n				<input type=\"hidden\" name=\"data["
    + alias3(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "]"
    + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.multiple : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "[model]\" value=\""
    + alias3(((helper = (helper = helpers.model || (depth0 != null ? depth0.model : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"model","hash":{},"data":data}) : helper)))
    + "\" />\n				<input type=\"hidden\" name=\"data["
    + alias3(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "]"
    + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.multiple : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "[association]\" value=\""
    + alias3(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "\" />\n				<input type=\"hidden\" name=\"data["
    + alias3(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "]"
    + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.multiple : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "[filesize]\" value=\""
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.filesize : stack1), depth0))
    + "\" />\n				<input type=\"hidden\" name=\"data["
    + alias3(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "]"
    + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.multiple : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "[extra]\" value=\""
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.extra : stack1), depth0))
    + "\" />\n				<input type=\"hidden\" name=\"data["
    + alias3(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "]"
    + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.multiple : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "[file]\" value=\""
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.file : stack1), depth0))
    + "\" />\n				<input type=\"hidden\" name=\"data["
    + alias3(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "]"
    + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.multiple : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "[extension]\" value=\""
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.extension : stack1), depth0))
    + "\" />\n\n				<div class=\"vector-upload-item-field with-unit\">\n					<input type=\"text\" name=\"data["
    + alias3(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "]"
    + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.multiple : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "[filename]\" class=\"file-title\" value=\""
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.filename : stack1), depth0))
    + "\" />\n					<span>"
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.extension : stack1), depth0))
    + "</span>\n				</div>\n\n				<div class=\"vector-upload-item-field\">\n					<input type=\"text\" name=\"data["
    + alias3(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "]"
    + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.multiple : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "[alt]\" class=\"file-title\" value=\""
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.alt : stack1), depth0))
    + "\" />\n				</div>\n\n				<input type=\"hidden\" name=\"data["
    + alias3(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "]"
    + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.multiple : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "[remove]\" data-context=\"delete\" />\n\n				<div class=\"vector-upload-item-info\">\n					<p>"
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.extra : stack1), depth0))
    + "</p>\n					<p>"
    + alias3((helpers.filesize || (depth0 && depth0.filesize) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.filesize : stack1),{"name":"filesize","hash":{},"data":data}))
    + "</p>\n				</div>\n\n				<div class=\"vector-upload-item-actions\">\n					<span class=\"file-action file-view\" title=\""
    + alias3((helpers.polyglot || (depth0 && depth0.polyglot) || alias2).call(alias1,"View file",{"name":"polyglot","hash":{},"data":data}))
    + "\">\n						<a class=\""
    + alias3((helpers.ifImageExtension || (depth0 && depth0.ifImageExtension) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.extension : stack1),"vector-upload-type-image showup","vector-upload-type-file",{"name":"ifImageExtension","hash":{},"data":data}))
    + "\" href=\""
    + alias3(alias4(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.file : stack1), depth0))
    + "\" "
    + ((stack1 = (helpers.ifImageExtension || (depth0 && depth0.ifImageExtension) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.extension : stack1),""," target=\"_blank\"",{"name":"ifImageExtension","hash":{},"data":data})) != null ? stack1 : "")
    + " rel=\""
    + alias3((helpers.ifImageExtension || (depth0 && depth0.ifImageExtension) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.extension : stack1),(depth0 != null ? depth0.association : depth0),{"name":"ifImageExtension","hash":{},"data":data}))
    + "\">\n							<i class=\"fa fa-search\"></i>\n						</a>\n					</span>\n\n					<span class=\"file-action file-upload\" title=\""
    + alias3((helpers.polyglot || (depth0 && depth0.polyglot) || alias2).call(alias1,"Upload a new file",{"name":"polyglot","hash":{},"data":data}))
    + "\">\n						<label>\n							<i class=\"fa fa-pencil\"></i>\n							<input type=\"file\" name=\"data["
    + alias3((helpers.config || (depth0 && depth0.config) || alias2).call(alias1,"uploadPlaceholder",{"name":"config","hash":{},"data":data}))
    + "]\" class=\"new-upload activated\" style=\"display: none;\" />\n						</label>\n					</span>\n\n					<span data-action=\"delete\" class=\"file-action file-delete\" title=\""
    + alias3((helpers.polyglot || (depth0 && depth0.polyglot) || alias2).call(alias1,"Delete file",{"name":"polyglot","hash":{},"data":data}))
    + "\">\n						<i class=\"fa fa-trash\"></i>\n					</span>\n				</div>\n\n			</div>\n\n		</div>\n\n"
    + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.error : stack1),{"name":"if","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "\n";
},"4":function(container,depth0,helpers,partials,data) {
    var helper;

  return "["
    + container.escapeExpression(((helper = (helper = helpers.i || (depth0 != null ? depth0.i : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"i","hash":{},"data":data}) : helper)))
    + "]";
},"6":function(container,depth0,helpers,partials,data) {
    var stack1;

  return "			<div class=\"form-input-error-message\">"
    + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.error : stack1), depth0))
    + "</div>\n";
},"8":function(container,depth0,helpers,partials,data) {
    var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {});

  return "\n		<label class=\"vector-upload-drag-drop-upload\">\n			<div class=\"vector-upload-drop-text\">\n				<i class=\"fa fa-cloud-upload\"></i>\n				<span>"
    + container.escapeExpression((helpers.polyglot || (depth0 && depth0.polyglot) || helpers.helperMissing).call(alias1,"Click or drop your files here",{"name":"polyglot","hash":{},"data":data}))
    + "</span>\n			</div>\n\n"
    + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.multipleplaceholder : depth0),{"name":"if","hash":{},"fn":container.program(9, data, 0),"inverse":container.program(11, data, 0),"data":data})) != null ? stack1 : "")
    + "			<div class=\"vector-upload-item-content\">\n				<div class=\"vector-upload-object\">\n					<img src=\"/img/form/upload-placeholder.png\" class=\"cms-image\" alt=\"\" />\n				</div>\n			</div>\n		</label>\n";
},"9":function(container,depth0,helpers,partials,data) {
    var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;

  return "				<input type=\"file\" id=\"FileFor"
    + alias4(((helper = (helper = helpers.model || (depth0 != null ? depth0.model : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"model","hash":{},"data":data}) : helper)))
    + alias4(((helper = (helper = helpers.association || (depth0 != null ? depth0.association : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"association","hash":{},"data":data}) : helper)))
    + "\" name=\"data["
    + alias4((helpers.config || (depth0 && depth0.config) || alias2).call(alias1,"uploadPlaceholder",{"name":"config","hash":{},"data":data}))
    + "]\" class=\"new-upload activated\" multiple=\"multiple\" style=\"display: none;\" />\n";
},"11":function(container,depth0,helpers,partials,data) {
    return "				<input type=\"file\" name=\"data["
    + container.escapeExpression((helpers.config || (depth0 && depth0.config) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"uploadPlaceholder",{"name":"config","hash":{},"data":data}))
    + "]\" class=\"new-upload activated\" style=\"display: none;\" />\n";
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
    var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression;

  return "<div class=\"vector-upload-item"
    + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.error : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
    + "\">\n\n	<div class=\"vector-upload-content\">\n\n		<div class=\"vector-upload-error-message\">\n			<div>\n				<p><i class=\"fa fa-warning\"></i> "
    + alias3((helpers.polyglot || (depth0 && depth0.polyglot) || alias2).call(alias1,"An error has occurred",{"name":"polyglot","hash":{},"data":data}))
    + "</p>\n				<a href=\"javascript:void(0);\"><i class=\"fa fa-upload\"></i> "
    + alias3((helpers.polyglot || (depth0 && depth0.polyglot) || alias2).call(alias1,"Click here to upload again.",{"name":"polyglot","hash":{},"data":data}))
    + "\n				</a>\n			</div>\n		</div>\n\n		<div class=\"vector-upload-progress\">\n			<div class=\"upload-file-preview-block\"><i class=\"fa fa-camera\"></i></div>\n			<div class=\"upload-file-progress-block\">\n				<p>"
    + alias3((helpers.polyglot || (depth0 && depth0.polyglot) || alias2).call(alias1,"Uploading…",{"name":"polyglot","hash":{},"data":data}))
    + "</p>\n				<div class=\"file-progress\">\n					<span style=\"background-color: #95ca80;\"></span>\n				</div>\n			</div>\n		</div>\n	</div>\n\n"
    + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.upload : depth0)) != null ? stack1.file : stack1),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.program(8, data, 0),"data":data})) != null ? stack1 : "")
    + "</div>";
},"useData":true});
})();