text: !function(e){"use strict";var s=function(s,a){var r='<div class="alert alert-'+(a?"success":"danger")+' alert-dismissible fade show" role="alert">';r+='<h4 class="alert-heading">Your ePub '+(a?"is VALID":"has ERROR")+"!</h4><p>",r+=s.join("<br />"),r+="</p>",r+='<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>';var t=e(r+="</div>");e(".try-form").after(t)};e(document).ready(function(){e(".try-form").submit(function(a){a.preventDefault();var r=e("#try-version").val(),t=e(this),n=e("#try-file").get(0).files;n.length?function(e,s){var a=new FileReader;a.readAsDataURL(e),a.onload=function(){s(a.result)},a.onerror=function(e){alert("Failed to encode BASE64: "+e)}}(n[0],function(a){a=a.replace(/^data:.*;base64,/,""),t.addClass("loading");var n=t.attr("action")+"/"+r;e("<div></div>");e.ajax(n,{method:"POST",data:a}).done(function(e){s(e.messages,e.success)}).fail(function(e){var a="Error occurred.";response.responseJSON&&response.responseJSON.messages&&(a=response.responseJSON.status+": "+response.responseJSON.messages.join("\n")),s([a],!1)}).always(function(){t.removeClass("loading")})}):alert("Please select file!")})})}(jQuery);
  //# sourceMappingURL=map/app.js.map
  