// source --> https://beershop-bg.com/wp-content/plugins/woo-notification/js/woo-notification.min.js 
"use strict";function vi_wn_b64DecodeUnicode(e){var t="";if(e)try{t=decodeURIComponent(atob(e).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}catch(t){return e}return t}function viSwipeDetect(e,t){var o,i,n,a,s,c,r=e,_=t||function(e){};r.addEventListener("touchstart",function(e){var t=e.changedTouches[0];o="none",i=t.pageX,n=t.pageY,c=(new Date).getTime()},!1),r.addEventListener("touchmove",function(e){e.preventDefault()},!1),r.addEventListener("touchend",function(e){var t=e.changedTouches[0];a=t.pageX-i,s=t.pageY-n,(new Date).getTime()-c<=300&&(Math.abs(a)>=150&&Math.abs(s)<=100?o=a<0?"left":"right":Math.abs(s)>=150&&Math.abs(a)<=100&&(o=s<0?"up":"down")),_(o)},!1)}jQuery(document).ready(function(e){if(jQuery("#message-purchased").length>0){var t=woo_notification;0==_woocommerce_notification_params.billing&&0==_woocommerce_notification_params.detect&&t.detect_address(),viSwipeDetect(document.getElementById("message-purchased"),function(t){"none"!==t&&(parseInt(woo_notification.time_close)>0&&(e("#message-purchased").unbind(),woo_notification.setCookie("woo_notification_close",1,3600*parseInt(woo_notification.time_close))),woo_notification.message_hide(!1,t))})}}),jQuery(window).on("load",function(){var e=woo_notification;if(e.ajax_url=_woocommerce_notification_params.ajax_url,e.products=_woocommerce_notification_params.products,e.messages=_woocommerce_notification_params.messages,e.image=_woocommerce_notification_params.image,e.redirect_target=_woocommerce_notification_params.redirect_target,e.time=_woocommerce_notification_params.time,e.display_effect=_woocommerce_notification_params.display_effect,e.hidden_effect=_woocommerce_notification_params.hidden_effect,e.messages=_woocommerce_notification_params.messages,e.names=_woocommerce_notification_params.names,e.detect=_woocommerce_notification_params.detect,e.billing=_woocommerce_notification_params.billing,e.message_custom=_woocommerce_notification_params.message_custom,e.message_number_min=_woocommerce_notification_params.message_number_min,e.message_number_max=_woocommerce_notification_params.message_number_max,e.time_close=_woocommerce_notification_params.time_close,e.show_close=_woocommerce_notification_params.show_close,0==_woocommerce_notification_params.billing&&0==_woocommerce_notification_params.detect){e.cities=[e.getCookie("wn_city")],e.country=[e.getCookie("wn_country")];var t=e.getCookie("wn_ip");t&&"undefined"!=t&&e.init()}else e.cities=_woocommerce_notification_params.cities,e.country=_woocommerce_notification_params.country,e.init()});var woo_notification={billing:0,in_the_same_cate:0,loop:0,init_delay:5,total:30,display_time:10,next_time:60,count:0,intel:0,wn_popup:0,id:0,messages:"",products:"",ajax_url:"",display_effect:"",hidden_effect:"",time:"",names:"",cities:"",country:"",message_custom:"",message_number_min:"",message_number_max:"",detect:0,time_close:0,show_close:0,shortcodes:["{first_name}","{city}","{state}","{country}","{product}","{product_with_link}","{time_ago}","{custom}"],init:function(){this.ajax_url?this.ajax_get_data():setTimeout(function(){woo_notification.get_product()},1e3*this.init_delay),jQuery("#message-purchased").on("mouseenter",function(){window.clearInterval(woo_notification.wn_popup)}).on("mouseleave",function(){woo_notification.message_show()})},detect_address:function(){this.getCookie("wn_ip")||jQuery.getJSON("https://extreme-ip-lookup.com/json/",function(e){e.query&&woo_notification.setCookie("wn_ip",e.query,86400),e.city&&woo_notification.setCookie("wn_city",e.city,86400),e.country&&woo_notification.setCookie("wn_country",e.country,86400)})},ajax_get_data:function(){var e;this.ajax_url&&(e=this.id?"&id="+this.id:"",jQuery.ajax({type:"POST",data:"action=woonotification_get_product"+e,url:this.ajax_url,success:function(e){var t=JSON.parse(e);t&&"undefined"!=t&&t.length>0&&(woo_notification.products=t,woo_notification.message_show(),setTimeout(function(){woo_notification.get_product()},1e3*woo_notification.init_delay))},error:function(e){}}))},message_show:function(){var e=this.count++;if(!(this.total<=e)){window.clearInterval(this.intel);var t=jQuery("#message-purchased");t.hasClass(this.hidden_effect)&&t.removeClass(this.hidden_effect),t.addClass(this.display_effect).css("display","flex"),this.wn_popup=setTimeout(function(){woo_notification.message_hide()},1e3*this.display_time)}},message_hide:function(e=!1,t=""){var o=jQuery("#message-purchased");switch(o.hasClass(this.display_effect)&&o.removeClass(this.display_effect),t){case"left":o.addClass("bounceOutLeft");break;case"right":o.addClass("bounceOutRight");break;case"up":o.addClass("bounceOutUp");break;case"down":o.addClass("bounceOutDown");break;default:o.addClass(this.hidden_effect)}if(o.fadeOut(1e3),!e&&!this.getCookie("woo_notification_close")){var i=this.count;1==this.loop?this.total>i&&(window.clearTimeout(this.wn_popup),this.intel=setInterval(function(){woo_notification.get_product()},1e3*this.next_time)):(window.clearTimeout(this.wn_popup),window.clearInterval(this.intel))}},get_time_string:function(){var e=this.random(0,3600*this.time),t=parseFloat(e/86400);return t>1?1==(t=parseInt(t))?t+" "+_woocommerce_notification_params.str_day:t+" "+_woocommerce_notification_params.str_days:(t=parseFloat(e/3600))>1?1==(t=parseInt(t))?t+" "+_woocommerce_notification_params.str_hour:t+" "+_woocommerce_notification_params.str_hours:(t=parseFloat(e/60))>1?1==(t=parseInt(t))?t+" "+_woocommerce_notification_params.str_min:t+" "+_woocommerce_notification_params.str_mins:t<10?_woocommerce_notification_params.str_few_sec:(t=parseInt(t))+" "+_woocommerce_notification_params.str_secs},get_product:function(){var e,t,o,i,n,a,s=this.products,c=this.messages,r=this.image,_=this.redirect_target;if("undefined"!=s&&s&&c&&s.length>0&&c.length>0){var m=c[a=woo_notification.random(0,c.length-1)],u=s[a=woo_notification.random(0,s.length-1)];parseInt(this.billing)>0&&parseInt(this.in_the_same_cate)<1?(e=vi_wn_b64DecodeUnicode(u.first_name),i=vi_wn_b64DecodeUnicode(u.city),t=vi_wn_b64DecodeUnicode(u.state),o=vi_wn_b64DecodeUnicode(u.country),n=u.time):(this.names&&"undefined"!=this.names?(a=woo_notification.random(0,this.names.length-1),e=vi_wn_b64DecodeUnicode(this.names[a])):e="",this.cities&&"undefined"!=this.cities?(a=woo_notification.random(0,this.cities.length-1),i=vi_wn_b64DecodeUnicode(this.cities[a])):i="",t="",o=this.country,n=this.get_time_string());var d='<span class="wn-popup-product-title">'+u.title+"</span>",f='<a class="wn-popup-product-title-with-link" ';"1"===_&&(f+='target="_blank"'),f+=' href="'+u.url+'">'+u.title+"</a>";var p="<small>"+_woocommerce_notification_params.str_about+" "+n+" "+_woocommerce_notification_params.str_ago+" </small>",h=this.message_custom,l="";u.thumb?(jQuery("#message-purchased").addClass("wn-product-with-image").removeClass("wn-product-without-image"),r?(l='<a class="wn-notification-image-wrapper" ',"1"===_&&(l+='target="_blank"'),l+=' href="'+u.url+'"><img class="wn-notification-image" src="'+u.thumb+'"></a>'):l='<span class="wn-notification-image-wrapper"><img class="wn-notification-image" src="'+u.thumb+'"></span>'):jQuery("#message-purchased").addClass("wn-product-without-image").removeClass("wn-product-with-image"),h=h.replace("{number}",this.random(this.message_number_min,this.message_number_max));for(var w=this.shortcodes,g=[e,i,t,o,d,f,p,h],y=m,v=w.length-1;v>=0;v--)y=y.replace(w[v],g[v]);var b="";parseInt(this.show_close)>0&&(b='<div id="notify-close"></div>');var C=l+'<p class="wn-notification-message-container">'+y+"</p>";jQuery("#message-purchased").html('<div class="message-purchase-main">'+C+"</div>"+b),this.close_notify(),woo_notification.message_show()}},close_notify:function(){jQuery("#notify-close").unbind(),jQuery("#notify-close").bind("click",function(){woo_notification.message_hide(),jQuery("#message-purchased").unbind(),parseInt(woo_notification.time_close)>0&&woo_notification.setCookie("woo_notification_close",1,3600*parseInt(woo_notification.time_close))})},random:function(e,t){e=parseInt(e),t=parseInt(t);var o=Math.random()*(t-e);return Math.round(o)+e},setCookie:function(e,t,o){var i=new Date;i.setTime(i.getTime()+1e3*o);var n="expires="+i.toUTCString();document.cookie=e+"="+t+";"+n+";path=/"},getCookie:function(e){for(var t=e+"=",o=decodeURIComponent(document.cookie).split(";"),i=0;i<o.length;i++){for(var n=o[i];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(t))return n.substring(t.length,n.length)}return""}};
// source --> https://beershop-bg.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js 
/*!
 * jQuery blockUI plugin
 * Version 2.70.0-2014.11.23
 * Requires jQuery v1.7 or later
 *
 * Examples at: http://malsup.com/jquery/block/
 * Copyright (c) 2007-2013 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
!function(){"use strict";function e(e){function t(t,n){var s,h,k=t==window,y=n&&n.message!==undefined?n.message:undefined;if(!(n=e.extend({},e.blockUI.defaults,n||{})).ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=y===undefined?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&"string"!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,g={};e(t).data("blockUI.history",g),g.el=m,g.parent=m.parentNode,g.display=m.style.display,g.position=m.style.position,g.parent&&g.parent.removeChild(m)}e(t).data("blockUI.onUnblock",n.onUnblock);var v,I,w,U,x=n.baseZ;v=e(r||n.forceIframe?'<iframe class="blockUI" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+n.iframeSrc+'"></iframe>':'<div class="blockUI" style="display:none"></div>'),I=e(n.theme?'<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x+++';display:none"></div>':'<div class="blockUI blockOverlay" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),n.theme&&k?(U='<div class="blockUI '+n.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',n.title&&(U+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(n.title||"&nbsp;")+"</div>"),U+='<div class="ui-widget-content ui-dialog-content"></div>',U+="</div>"):n.theme?(U='<div class="blockUI '+n.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',n.title&&(U+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(n.title||"&nbsp;")+"</div>"),U+='<div class="ui-widget-content ui-dialog-content"></div>',U+="</div>"):U=k?'<div class="blockUI '+n.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+n.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&v.css("opacity",0);var C=[v,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=a(t,"borderTopWidth"),T=a(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(n.css&&n.css.top?parseInt(n.css.top,10):0)+') + "px"';o.setExpression("top",i)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&v.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):d(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,d=e(t),a=d.data("blockUI.history"),c=d.data("blockUI.timeout");c&&(clearTimeout(c),d.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=d.data("blockUI.onUnblock"),d.removeData("blockUI.onUnblock"));var r;r=l?e(document.body).children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0==--s&&n(r,a,o,t)})):n(r,a,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(d,n,s):e(document).unbind(d,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,d=e(t.target);return d.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),d.parents("div."+s.blockMsgClass).length>0||0===d.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[!0===e?b.length-1:0];t&&t.focus()}}function d(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-a(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-a(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function a(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();