D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
stickain
/
gunlovers.davidsteele.com
/
wp-content
/
plugins
/
alidswoo
/
assets
/
js
/
admin
/
Filename :
main.min.js
back
Copy
!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=177)}({177:function(e,t,n){e.exports=n(178)},178:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}jQuery((function(e){window.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t,n,a,r,i,o,s,c="",d=0;for(e=window.Base64._utf8_encode(e);d<e.length;)r=(t=e.charCodeAt(d++))>>2,i=(3&t)<<4|(n=e.charCodeAt(d++))>>4,o=(15&n)<<2|(a=e.charCodeAt(d++))>>6,s=63&a,isNaN(n)?o=s=64:isNaN(a)&&(s=64),c=c+this._keyStr.charAt(r)+this._keyStr.charAt(i)+this._keyStr.charAt(o)+this._keyStr.charAt(s);return c},decode:function(e){var t,n,a,r,i,o,s="",c=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<e.length;)t=this._keyStr.indexOf(e.charAt(c++))<<2|(r=this._keyStr.indexOf(e.charAt(c++)))>>4,n=(15&r)<<4|(i=this._keyStr.indexOf(e.charAt(c++)))>>2,a=(3&i)<<6|(o=this._keyStr.indexOf(e.charAt(c++))),s+=String.fromCharCode(t),64!==i&&(s+=String.fromCharCode(n)),64!==o&&(s+=String.fromCharCode(a));return s=Base64._utf8_decode(s)},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var a=e.charCodeAt(n);a<128?t+=String.fromCharCode(a):a>127&&a<2048?(t+=String.fromCharCode(a>>6|192),t+=String.fromCharCode(63&a|128)):(t+=String.fromCharCode(a>>12|224),t+=String.fromCharCode(a>>6&63|128),t+=String.fromCharCode(63&a|128))}return t},_utf8_decode:function(e){for(var t="",n=0,a=0,r=0,i=0;n<e.length;)(a=e.charCodeAt(n))<128?(t+=String.fromCharCode(a),n++):a>191&&a<224?(i=e.charCodeAt(n+1),t+=String.fromCharCode((31&a)<<6|63&i),n+=2):(i=e.charCodeAt(n+1),r=e.charCodeAt(n+2),t+=String.fromCharCode((15&a)<<12|(63&i)<<6|63&r),n+=3);return t}},function(){Handlebars.registerHelper("ifCond",(function(e,t,n,a){switch(t){case"==":return e==n?a.fn(this):a.inverse(this);case"===":return e===n?a.fn(this):a.inverse(this);case"!=":return e!=n?a.fn(this):a.inverse(this);case"!==":return e!==n?a.fn(this):a.inverse(this);case"<":return e<n?a.fn(this):a.inverse(this);case"<=":return e<=n?a.fn(this):a.inverse(this);case">":return e>n?a.fn(this):a.inverse(this);case">=":return e>=n?a.fn(this):a.inverse(this);case"&&":return e&&n?a.fn(this):a.inverse(this);case"||":return e||n?a.fn(this):a.inverse(this);default:return a.inverse(this)}})),Handlebars.registerHelper("checkedIf",(function(e){return"1"===e||1===e||!0===e?"checked":""})),Handlebars.registerHelper("ifIn",(function(e,t,a){return"object"===n(t)&&(t=Object.values(t)),t&&t.includes(e)?a.fn(this):a.inverse(this)})),Handlebars.registerHelper("math",(function(e,t,n,a){return{"+":(e=parseFloat(e))+(n=parseFloat(n)),"-":e-n,"*":e*n,"/":e/n}[t]})),Handlebars.registerHelper("for",(function(e,t,n,a){for(var r="",i=e;i<t;i+=n)r+=a.fn(i);return r}))}(),window.Notify=function(t,n,a,r){var i=e("#ads-notify");void 0===r&&(r="warning");var o=e('<div class="alert alert-'+r+' hide"><i class="fa fa-info-circle"></i> '+t+"</div>");function s(){o.stop().fadeOut("slow").remove()}e("<a>",{text:"×",class:"notify-close",href:"#",click:function(e){e.preventDefault(),a&&a(),s()}}).prependTo(o),i.prepend(o),o.removeClass("hide").hide().fadeIn("slow");var c=setInterval(s,"10000");e(o).hover((function(){clearInterval(c)}),(function(){c=setInterval(s,"10000")})),o.on("click",(function(){clearInterval(c),n&&n(),s()}))},window.DocInfo=function(){var t=document.title,n=!1;function a(e){var t=function(e){var t=e.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);return t&&{href:e,protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7]}}(e),a=function(e,t){e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n&&n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):""}("page",e);n=t.protocol+"//"+t.hostname+t.pathname,""!==a&&(n+="?page="+a)}return{init:function(){this,a(window.location.href),e(document).on("changedocinfo",(function(){setTimeout((function(){var a=e("#params").find("input"),r="",i="";a.length&&a.each((function(){var n=e(this).attr("name"),a=e(this).val();n.length&&""!==a&&(r+="&"+n+"="+a,"ads_page"===n&&(i="Page "+a+" ‹ "+t))})),function(e,t){document.title=e,window.history.pushState({pageTitle:e},"",t)}(i,n+""+r)}),50)}))},getTitle:function(){return t},getUrl:function(){return n}}}(),window.DocInfo.init();var t={tryJSON:function(t){try{var n=e.parseJSON(t)}catch(e){return!1}return n},b64EncodeUnicode:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))},cdata:function(e){return e=(e=e.replace("/*<![CDATA[*/","")).replace("/*]]>*/","")},objTotmpl:function(e,t){return"undefined"!=typeof Handlebars&&Handlebars.compile(e)(t)},serialize:function(e){var t=e.serialize();return t||(t=e.find("input[name],select[name],textarea[name]").serialize()),t},scrollToNode:function(t,n,a){n=n||0,a=a||500,e(t).focus();var r=e(t).offset().top-n;e("body,html").stop().animate({scrollTop:r},a)},notify:function(e,t){window.Notify(e,null,null,t)},createPagination:function(t,n,a,r){r=void 0!==r?r:10,e(t).find(".pagination-menu").pagination({items:parseInt(n),itemsOnPage:parseInt(r),currentPage:parseInt(a),cssStyle:"light-theme",prevText:'<span class="fa fa-angle-left"></span>',nextText:'<span class="fa fa-angle-right"></span>',onPageClick:function(n){e(t).trigger({type:"pagination:click",obj:t,page:n})}})},createJQPagination:function(t,n,a,r){r=r||20;var i=e(t).find(".pagination-menu");n=parseInt(n),a=parseInt(a),n>0&&(n=Math.ceil(n/r));var o=i.data("pagination-title");o||(o="Page {current_page} of {max_page}"),i.html(e("<a/>",{href:"#",class:"first"}).data("action","first").html(e("<i/>",{class:"fa fa-angle-double-left"}))).append(e("<a/>",{href:"#",class:"previous"}).data("action","previous").html(e("<i/>",{class:"fa fa-angle-left"}))).append(e("<input/>",{type:"text",readonly:"readonly"}).data("max-page",n)).append(e("<a/>",{href:"#",class:"next"}).data("action","next").html(e("<i/>",{class:"fa fa-angle-right"}))).append(e("<a/>",{href:"#",class:"last"}).data("action","last").html(e("<i/>",{class:"fa fa-angle-double-right"}))).jqPagination({page_string:o,link_string:"#",max_page:n,current_page:a,paged:function(n){e(t).trigger({type:"pagination:click",obj:t,page:n})}})},switchery:function(t){var n=t.find(".switchery");e('[data-toggle="tooltip"]').tooltip();for(var a=0;a<n.length;a++)new Switchery(n[a]);t.find(".bootstrap-select").each((function(){e(this).find("option").length>20&&e(this).data("live-search","true")})).selectpicker(),t.find(".uniform-checkbox, .uniform-radio").uniform(),t.find(".multiselect-full-featured").multiselect({includeSelectAllOption:!0,enableFiltering:!0,enableCaseInsensitiveFiltering:!0,templates:{filter:'<li class="multiselect-item multiselect-filter"><i class="fa fa-search"></i> <input class="form-control" type="text"></li>'},onSelectAll:function(){e.uniform.update()},onDeselectAll:function(){e.uniform.update()},onChange:function(e){},onInitialized:function(e){var t=e.parent().find("button");t.attr("title",t.attr("title").replace(/(\r\n|\n|\r|\t)/gm,""))}}).parent().find('.multiselect-container input[type="checkbox"]').uniform(),this.colorpicker(t),this.cropper(t),this.addMedia(t)},colorpicker:function(t){void 0!==e.fn.spectrum&&t.find(".colorpicker").spectrum({preferredFormat:"rgb",showInitial:!0,showInput:!0,showAlpha:!0,allowEmpty:!0})},initCrop:function(t){if(void 0!==e.fn.cropper){var n=parseInt(e(t).data("height")),a=parseInt(e(t).data("width")),r={aspectRatio:a/n,dragMode:"move",cropBoxResizable:!1,zoomable:!1,data:{x:0,y:0,height:n,width:a}},i=e(t).find(".file_url"),o=e(t).find(".cropper"),s=e(t);o.cropper(r),i.change((function(){o.data("cropper")&&o.cropper("destroy").attr("src",e(this).val())})),o.cropper("setDragMode","move"),e(t).find(".crop_file").prop("disabled",!1).show(),e(t).find(".crop_file").on("click",(function(){var t,n=e(this),a=n.data();if(n.prop("disabled",!0),o.data("cropper")&&((a=e.extend({},a)).option||(a.option={}),t=o.cropper("getCroppedCanvas",a.option))){var r=new FormData;r.append("action","ads_Media"),r.append("ads_action","save_image64"),r.append("file64",t.toDataURL("")),r.append("src",s.find(".file_url").val()),r.append("crop_name",s.find(".file_url").data("crop_name")),e.ajax({url:ajaxurl,dataType:"json",data:r,contentType:!1,processData:!1,type:"POST",success:function(e){s.find(".preview-upload").attr("src",e.url).parent().show(),s.find(".file_url").val(e.url).trigger("change"),n.hide()}})}return!1}))}},cropper:function(e){},addMedia:function(t){var n=this;t.find(".upload_file").click((function(t){t.preventDefault();var a=e(this),r=wp.media({multiple:!1}).on("select",(function(){var t=r.state().get("selection").first().toJSON();e(a).closest(".uploadImg-box").find(".preview-upload").attr("src",t.url).parent().show(),e(a).closest(".uploadImg-box").find(".file_url").val(t.url).trigger("change"),n.initCrop(e(a).closest(".uploadImg-box"))})).open();return!1})),t.find(".remove_file").click((function(){return e(this).closest(".uploadImg-box").find(".preview-upload").attr("src","").parent().hide(),e(this).closest(".uploadImg-box").find(".crop_file").hide(),e(this).closest(".uploadImg-box").find(".file_url").val("").trigger("change"),e(this).closest(".uploadImg-box").find(".file_url").parent().removeClass("active"),!1}))},progress:function(e,t,n){t=parseInt(t),n=parseInt(n);var a=t>0?100*n/t:0,r=a.toFixed();e.find(".progress-bar").css("width",a+"%"),e.find(".progress-percent").text(r)},progressText:function(e,t,n){t=parseInt(t),n=parseInt(n);var a=(t>0?100*n/t:0).toFixed();e.text(a+"%")},btnLock:function(e){e.addClass("animate-spinner").attr("disabled",!0)},btnUnLock:function(e){setTimeout((function(){e.removeClass("animate-spinner").attr("disabled",!1)}),300)},mainRequest:function(t){var n=this,a=t,r=e(a.data("ads_template")).html(),i=a.data("ads_action"),o=e(a.data("ads_target")),s=a.data("ads_request")||a.closest("[data-ads_request]").data("ads_request"),c=[],d=t.find(".ads-field");s=s||"ads_action_request",o="this"===o?a:o,void 0!==d&&(c=d.serialize());var l=a.data("ads_controller");s=l?"ads_actions":s,e.ajaxQueue({url:ajaxurl,data:{action:s,ads_action:i,ads_controller:l,args:c},type:"POST",dataType:"json",success:function(t){if(t)if(t.hasOwnProperty("error"))n.notify(t.error,"danger");else{o.html(n.objTotmpl(r,t));var i=o.find("input, textarea, select").not(".not-hash").serialize();o.data("hash",i),setTimeout(n.switchery(o),300),e.event.trigger({type:"request:done",obj:a.data("ads_target"),response:t})}}})},mainHandlers:function(){var t=this;e('[data-toggle="tooltip"]').tooltip(),e("body").on("click",".to_clipboard",(function(e){e.preventDefault()})),new Clipboard(".to_clipboard").on("success",(function(e){window.ADS.notify(e.text,"success"),e.clearSelection()})),e.fn.selectpicker.defaults={iconBase:"",tickIcon:"fa"},e("[data-ads_action]:not(.ads-no)").each((function(){t.mainRequest(e(this))})),e(document).on("request:done",(function(n){var a=e(n.obj).find(".editor");a.length&&a.each((function(){t.renderEditor(this)}))})),e(document).on("click","button",(function(n){var a=e(this),r=a.data("for"),i=a.parents(".panel").find("[data-ads_action]");if(i=i.length?i:a.closest("[data-ads_action]"),i=r?e(r):i,e(this).hasClass("ads-button")&&!e(this).hasClass("ads-no")&&void 0!==i){t.btnLock(a),n.preventDefault();var o=i.data("ads_action"),s=a.attr("name");o=s?s+"_"+o:"save_"+o;var c=i.data("ads_request")||i.closest("[data-ads_request]").data("ads_request");c=c||"ads_action_request";var d=i.data("ads_controller");c=d?"ads_actions":c,e.ajaxQueue({url:ajaxurl,data:{action:c,ads_action:o,ads_controller:d,args:t.serialize(i)},type:"POST",dataType:"json",success:function(n){(e.event.trigger({type:"request:button",action:o,response:n}),void 0!==n.error)?t.notify(n.error,"danger"):(t.notify(n.message,"success"),t.mainRequest(i),i.data("ads_update")?setTimeout(t.mainRequest(e(i.data("ads_update"))),300):e(i.data("ads_target")).data("ads_update")&&setTimeout(t.mainRequest(e(e(i.data("ads_target")).data("ads_update"))),300),i.data("ads_reload")&&void 0!==i.data("ads_reload")&&location.reload());t.btnUnLock(a)}})}}))},renderEditor:function(t){var n=e(t).serializeArray(),a=n[0].name,r=n[0].value,i=e(t).closest(".form-group"),o=e(t).attr("id");e(t).remove();var s=tinyMCEPreInit.mceInit.editor_settings;tinymce.EditorManager.editors=[],e.ajaxQueue({url:ajaxurl,data:{action:"ads_action_request",ads_action:"tinymce",args:"template="+r+"&name="+a+"&id="+o},type:"POST",dataType:"json",success:function(e){i.append(e.editor),tinymce.remove('[id="'+o+'"]'),tinymce.init({selector:'[id="'+o+'"]',wp_autoresize_on:!0,relative_urls:!1,remove_script_host:!1,convert_urls:!0,forced_root_block:"",force_p_newlines:!1,force_br_newlines:!1,convert_newlines_to_brs:!1,remove_linebreaks:!0,menubar:!1,formats:s.formats,toolbar1:s.toolbar1,toolbar2:s.toolbar2,plugins:s.plugins,preview_styles:s.preview_styles,resize:s.resize,theme:s.theme,wpeditimage_html5_captions:s.wpeditimage_html5_captions,wpautop:!1,skin:s.skin,wp_shortcut_labels:s.wp_shortcut_labels,setup:function(e){e.on("change",(function(){e.save()}))}})}})},product:function(t,n){return new Promise((function(a,r){var i=n||[],o=parseInt(t);e.ajaxQueue({url:ajaxurl,data:{action:"ads_action_request",ads_action:"product",args:{post_id:o,fields:i}},type:"POST",dataType:"json",success:function(e){a(e)}})}))},order:function(t,n){return new Promise((function(a,r){var i=n||[],o=parseInt(t);e.ajaxQueue({url:ajaxurl,data:{action:"ads_action_orders",ads_action:"order_details",args:{id:o,fields:i}},type:"POST",dataType:"json",success:function(e){a(e)}})}))},request:function(t){return function(n,a,r){a=""!==a&&a instanceof jQuery?window.ADS.serialize(a):a,e.ajaxQueue({url:ajaxurl,data:{action:"ads_actions",ads_controller:t,ads_action:n,args:a},type:"POST",dataType:"json",success:r})}},init:function(){this.mainHandlers(),this.coverAppend()},Dispatcher:{subscribers:[],on:function(e,t,n,a,r){var i={observer:t,context:n=n||null,info:a=a||null,one:r=r||!1};this.subscribers.hasOwnProperty(e)?this.subscribers[e].push(i):this.subscribers[e]=[i]},one:function(e,t,n,a){n=n||null,a=a||null,this.on(e,t,n,a,!0)},trigger:function(e,t){var n=this;for(var a in this.subscribers)a===e&&this.subscribers.hasOwnProperty(a)&&function(){var e=n;e.subscribers[a].forEach((function(n,r){n.observer.call(n.context,t,n.info),n.one&&e.subscribers[a].splice(r,1)}))}()}},getBASE64:function(t){return new Promise((function(n,a){e.ajaxQueue({url:ajaxurl,data:{action:"ads_url_to_base64",url:t},dataType:"json",type:"POST",success:function(e){1!=e.success&&a(new Error(e.data||"Unknown error.")),n(e.data)}})}))},attachmentImage64:function(t,n,a){a=a||!1,n=n||!1;var r=new FormData,i=t.match(/^data:image\/(\w*);base64,/im);if(null!==i){i=null!==i?i[1]:"";var o=function(e,t){t=t||"";for(var n=window.atob(e),a=[],r=0,i=n.length;r<i;r+=1024){for(var o=n.slice(r,r+1024),s=new Array(o.length),c=0;c<o.length;c++)s[c]=o.charCodeAt(c);var d=new Uint8Array(s);a.push(d)}return new Blob(a,{type:t})}(t=t.replace(/^data:image\/(\w*);base64,/,""),"image/"+i);return r.append("action","ads_attachmentBlob"),r.append("blob",o),r.append("ext",i),r.append("post_id",n),r.append("filename",a),new Promise((function(t,n){e.ajaxQueue({url:ajaxurl,data:r,contentType:!1,processData:!1,dataType:"json",type:"POST",success:function(e){e&&t(e),n()},error:function(){n()}})}))}},cover:".fade-cover",coverAppend:function(){e("body").append('<div class="fade-cover"><div id="Plane"><div id="Plane_1" class="Plane"></div><div id="Plane_2" class="Plane"></div><div id="Plane_3" class="Plane"></div><div id="Plane_4" class="Plane"></div><div id="Plane_5" class="Plane"></div><div id="Plane_6" class="Plane"></div><div id="Plane_7" class="Plane"></div><div id="Plane_8" class="Plane"></div></div></div>')},coverShow:function(){e(t.cover).show()},coverHide:function(){e(t.cover).hide()},isURL:function(e){return!!/(http|https):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%!\-\/]))?/.test(e)}};void 0===window.ADS&&(window.ADS={}),window.ADS=e.extend(window.ADS,t),window.ADS.init()}))}});