text: /*********************************************
  * Minified Javascript for RTDL Theme
  * All kind of basic Javascription transmission.
  *
  * Developer: Ranpariya - The development lab
  *********************************************/
  
  "use strict";$(document).ready(function(){setTimeout(function(){var e,t=window.URL||window.webkitURL,a=$("#image"),o=$("#download"),r={aspectRatio:16/9,preview:".img-preview",crop:function(e){$("#dataX").val(Math.round(e.x)),$("#dataY").val(Math.round(e.y)),$("#dataHeight").val(Math.round(e.height)),$("#dataWidth").val(Math.round(e.width)),$("#dataRotate").val(e.rotate),$("#dataScaleX").val(e.scaleX),$("#dataScaleY").val(e.scaleY)}},d=a.attr("src");$('[data-toggle="tooltip"]').tooltip(),a.on().cropper(r),$.isFunction(document.createElement("canvas").getContext)||$('button[data-method="getCroppedCanvas"]').prop("disabled",!0),void 0===document.createElement("cropper").style.transition&&($('button[data-method="rotate"]').prop("disabled",!0),$('button[data-method="scale"]').prop("disabled",!0)),void 0===o[0].download&&o.addClass("disabled"),$(".docs-toggles").on("change","input",function(){var e,t,o=$(this),d=o.attr("name"),p=o.prop("type");a.data("cropper")&&("checkbox"===p?(r[d]=o.prop("checked"),e=a.cropper("getCropBoxData"),t=a.cropper("getCanvasData"),r.built=function(){a.cropper("setCropBoxData",e),a.cropper("setCanvasData",t)}):"radio"===p&&(r[d]=o.val()),a.cropper("destroy").cropper(r))}),$(".docs-buttons").on("click","[data-method]",function(){var r,p,c=$(this),i=c.data();if(!c.prop("disabled")&&!c.hasClass("disabled")&&a.data("cropper")&&i.method){if(i=$.extend({},i),void 0!==i.target&&(r=$(i.target),void 0===i.option))try{i.option=JSON.parse(r.val())}catch(e){}switch("rotate"===i.method&&a.cropper("clear"),p=a.cropper(i.method,i.option,i.secondOption),"rotate"===i.method&&a.cropper("crop"),i.method){case"scaleX":case"scaleY":$(this).data("option",-i.option);break;case"getCroppedCanvas":p&&($("#getCroppedCanvasModal").modal().find(".modal-body").html(p),o.hasClass("disabled")||o.attr("href",p.toDataURL("image/jpeg")));break;case"destroy":e&&(t.revokeObjectURL(e),e="",a.attr("src",d))}if($.isPlainObject(p)&&r)try{r.val(JSON.stringify(p))}catch(e){}}}),$(document.body).on("keydown",function(e){if(a.data("cropper")&&!(this.scrollTop>300))switch(e.which){case 37:e.preventDefault(),a.cropper("move",-1,0);break;case 38:e.preventDefault(),a.cropper("move",0,-1);break;case 39:e.preventDefault(),a.cropper("move",1,0);break;case 40:e.preventDefault(),a.cropper("move",0,1)}});var p=$("#inputImage");t?p.change(function(){var o,d=this.files;a.data("cropper")&&d&&d.length&&(o=d[0],/^image\/\w+$/.test(o.type)?(e&&t.revokeObjectURL(e),e=t.createObjectURL(o),a.cropper("destroy").attr("src",e).cropper(r),p.val("")):window.alert("Please choose an image file."))}):p.prop("disabled",!0).parent().addClass("disabled")},1e3)});