{:uriI"file:///Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-78a8c8c3c1ef/app/assets/javascripts/alchemy/alchemy.image_cropper.js.coffee?type=application/javascript&pipeline=self&id=09cb805467dcfd122021efe780e7eaef3faf36e6ec8403d74da132ab695c23f1:ET:load_pathI"i/Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-78a8c8c3c1ef/app/assets/javascripts;T: filenameI"Œ/Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-78a8c8c3c1ef/app/assets/javascripts/alchemy/alchemy.image_cropper.js.coffee;T: nameI""alchemy/alchemy.image_cropper;T:logical_pathI"*alchemy/alchemy.image_cropper.self.js;T:content_typeI"application/javascript;T: sourceI"l(function() { if (typeof window.Alchemy === "undefined") { window.Alchemy = {}; } Alchemy.ImageCropper = { initialized: false, init: function(box, min_size, default_box, ratio, true_size) { var crop_from_field, crop_size_field, dialog, options; crop_from_field = $("#essence_picture_crop_from"); crop_size_field = $("#essence_picture_crop_size"); options = { onSelect: function(coords) { crop_from_field.val(coords.x + "x" + coords.y); return crop_size_field.val(coords.w + "x" + coords.h); }, setSelect: box, aspectRatio: (ratio ? ratio : undefined), minSize: (min_size ? min_size : undefined), boxWidth: 800, boxHeight: 600, trueSize: true_size }; Alchemy.ImageCropper.box = box; Alchemy.ImageCropper.default_box = default_box; Alchemy.ImageCropper.crop_from_field = crop_from_field; Alchemy.ImageCropper.crop_size_field = crop_size_field; if (!Alchemy.ImageCropper.initialized) { Alchemy.ImageCropper.api = $.Jcrop("#imageToCrop", options); Alchemy.ImageCropper.initialized = true; } dialog = Alchemy.currentDialog(); if (dialog != null) { return dialog.options.closed = function() { return Alchemy.ImageCropper.destroy(); }; } }, undo: function() { return Alchemy.ImageCropper.api.setSelect(Alchemy.ImageCropper.box); }, reset: function() { Alchemy.ImageCropper.api.setSelect(Alchemy.ImageCropper.default_box); Alchemy.ImageCropper.crop_from_field.val(""); return Alchemy.ImageCropper.crop_size_field.val(""); }, destroy: function() { if (Alchemy.ImageCropper.api) { Alchemy.ImageCropper.api.destroy(); } Alchemy.ImageCropper.initialized = false; return true; } }; }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"šfile-digest:///Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-78a8c8c3c1ef/app/assets/javascripts/alchemy/alchemy.image_cropper.js.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%Ó„éÀ_r>Å-Í-\ÉÊGÏt}|@”ÁW¬ixÅÞа: lengthil:dependencies_digest"%=2ÂÉ“VÛŸ Óð±Cv}=Øщ¸µ$š7[ý¦à$×àL:idI"E09cb805467dcfd122021efe780e7eaef3faf36e6ec8403d74da132ab695c23f1;F: mtimel+ápW