![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/self/cwd/wp-content/plugins/bdthemes-element-pack/assets/js/modules/ |
!function(t,e){"use strict";var n=function(t,e){var n=t.find(".bdt-notification-wrapper"),i=n.data("settings");if(n.length){if(!1===Boolean(elementorFrontend.isEditMode())){if(e(t).is(".elementor-hidden-desktop, .elementor-hidden-tablet, .elementor-hidden-mobile"))return;if("yes"==i.externalSystem&&0==i.externalSystemValid)return;!0===i.linkWithConfetti&&jQuery.ajax({type:"post",dataType:"json",url:ElementPackConfig.ajaxurl,data:{action:"ep_connect_confetti",data:"empty"},success:function(){}})}var o="#"+(i=n.data("settings")).id,a=i.notifyTimeout,r=i.notifyType,l=i.notifyFixPosition,s=Boolean(elementorFrontend.isEditMode());void 0===i.notifyTimeout&&(a=null),bdtUIkit.util.on(document,"beforehide","[bdt-alert]",(function(t){"top"===l&&e("html").attr("style","margin-top: unset !important")})),{htmlMarginRemove:function(){e("html").css({"margin-top":"unset !important"})},appendBody:function(){e("body > "+o).slice(1).remove(),e(o).prependTo(e("body"))},showNotify:function(){e(o).removeClass("bdt-hidden")},notifyFixed:function(){this.htmlMarginRemove(),setTimeout((function(){if("top"==l){var t=e(".bdt-notify-wrapper").outerHeight();e(".admin-bar").length&&(t+=32,e(o).attr("style","margin-top: 32px !important")),e("html").attr("style","margin-top: "+t+"px !important"),e("html").css({transition:"margin-top .8s ease"}),e(window).on("resize",(function(){t=e(".bdt-notify-wrapper").outerHeight(),e(".admin-bar").length&&(t+=32),e("html").attr("style","margin-top: "+t+"px !important")}))}}),1e3)},notifyRelative:function(){e("body > "+o).remove()},notifyPopup:function(){bdtUIkit.notification({message:i.msg,status:i.notifyStatus,pos:i.notifyPosition,timeout:a})},notifyFire:function(){"fixed"===r?"relative"!==l?(this.appendBody(),this.notifyFixed()):(this.htmlMarginRemove(),this.notifyRelative()):this.notifyPopup()},setLocalize:function(){if(s)this.clearLocalize();else{var t=i.id,e=60*i.displayTimesExpire*60,n=Date.now()+1e3*e;if(null===localStorage.getItem(t)&&(localStorage.setItem(t,0),localStorage.setItem(t+"_expiresIn",n)),null!==localStorage.getItem(t)){var o=parseInt(localStorage.getItem(t));o++,localStorage.setItem(t,o)}}},clearLocalize:function(){var t=parseInt(localStorage.getItem(i.id+"_expiresIn"));Date.now()>=t&&(localStorage.removeItem(i.id+"_expiresIn"),localStorage.removeItem(i.id))},notificationInit:function(){var t=this;this.setLocalize();var n=i.displayTimes,o=parseInt(localStorage.getItem(i.id));!1!==n&&o>n||(this.showNotify(),"onload"!=i.notifyEvent&&"inDelay"!=i.notifyEvent||e(document).ready((function(){setTimeout((function(){t.notifyFire()}),i.notifyInDelay)})),"click"!=i.notifyEvent&&"mouseover"!=i.notifyEvent||e(i.notifySelector).on(i.notifyEvent,(function(){t.notifyFire()})))}}.notificationInit(),e(".bdt-notify-wrapper.bdt-position-fixed .bdt-alert-close").on("click",(function(t){e("html").attr("style","margin-top: unset !important"),e(".admin-bar").length&&e("html").attr("style","margin-top: 32px !important")}))}};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/bdt-notification.default",n)}))}(jQuery,window.elementorFrontend);