OwlCyberSecurity - MANAGER
Edit File: admin-settings.js
!function(e){var t={};function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=0)}([function(e,t,i){i(1),i(6),e.exports=i(11)},function(e,t){jQuery(document).ready((function(){jQuery(".wlcms-next-step").on("click",(function(){jQuery("#wlcms_tab_step-1").hide(),jQuery("#tab-step-1").hide(),jQuery("#wlcms_tab_step-2").show(),jQuery("#tab-step-2").show()})),jQuery(".wlcms-prev-step").on("click",(function(){jQuery("#wlcms_tab_step-2").hide(),jQuery("#tab-step-2").hide(),jQuery("#wlcms_tab_step-1").show(),jQuery("#tab-step-1").show()})),jQuery("form.wlcms-form").areYouSure({message:"Changes that you made may not be saved"}),jQuery('.template_type[data-page_type="html"]').each((function(){if(jQuery(this).is(":checked")){var e=jQuery(this).data("template_type");jQuery(this).closest(".sub-fields").find(".welcome_panel_fullwidth").is(":checked")?jQuery(".wlcms_welcome_panel_dismissible"+e).show():(jQuery(".wlcms_welcome_panel_dismissible"+e).hide(),jQuery(".wlcms_welcome_panel_dismissible"+e).find('input[type="checkbox"]').prop("checked",!1).trigger("change"))}})),jQuery(".welcome_panel_fullwidth").change((function(){var e=jQuery(this).closest(".wlcms-dashboard").data("wlcms_dashboard");jQuery(this).is(":checked")?jQuery(".wlcms_welcome_panel_dismissible"+e).show():(jQuery(".wlcms_welcome_panel_dismissible"+e).hide(),jQuery(".wlcms_welcome_panel_dismissible"+e).find('input[type="checkbox"]').prop("checked",!1).trigger("change"))})),jQuery(".wlcms_welcome_dismissible .wlcms-toggle-light").change((function(){var e=jQuery(this).closest(".wlcms_welcome_dismissible").find(".wlcms_welcome_dismissible_reset");jQuery(this).is(":checked")?e.show():e.hide()})).trigger("change"),jQuery("#hide_wordpress_logo_and_links").change((function(){jQuery(this).is(":checked")?jQuery(".branding-toggled-off").hide():jQuery(".branding-toggled-off").show()})).trigger("change"),jQuery(".gutenberg-exit-toggle").change((function(){var e=jQuery(".gutenberg-exit-toggle option:selected").val();"custom-icon"==e?jQuery(".custom_gutenberg_exit_wrapper").show():jQuery(".custom_gutenberg_exit_wrapper").hide();var t=jQuery(".help_gutenberg_exit span");"custom-icon"==e?t.html(" the uploaded custom icon"):"admin-bar-logo"==e?t.html(" admin bar logo"):t.html(' an exit icon (<span class="dashicons dashicons-exit"></span>)')})).trigger("change"),jQuery(".reset-confirm").click((function(){if(0==confirm("Are you sure you want to reset!"))return!1}));var e=jQuery(".wlcms_wrapper .navigation"),t=e.offset();function i(e){var t=jQuery(".wlcms-form"),i=t.attr("action");-1!==i.indexOf("#")&&(hash=i.replace(/.*#/,"#"),i=i.replace(/#.*/,"")),t.attr({action:i+"#"+e})}jQuery(window).scroll((function(){var i=jQuery("#wpadminbar").height(),r=t.top-(e.height()+i);jQuery(this).scrollTop()>r?(e.addClass("fixed"),e.css({top:i}).width(jQuery(".wlcms_wrapper").width())):jQuery(this).scrollTop()<=t.top&&e.hasClass("fixed")&&e.removeClass("fixed")})),jQuery(".wlcms-navigation ul li a:not(.wlcms-ignore)").click((function(){var e=jQuery(this).attr("data-tab");jQuery(".wlcms-navigation ul li a").removeClass("current"),jQuery(".tab-content").removeClass("current"),jQuery(this).addClass("current"),jQuery(".wlcms_content section").removeClass("current"),jQuery(".wlcms_content section."+e).addClass("current"),i(e),jQuery("html, body").animate({scrollTop:0},400)}));var r=window.location.hash;function n(){jQuery(".wlcms-remove-img").on("click",(function(){var e=jQuery(this).parents(".wlcms-input-group");e.find(".wlcms-upload-thumbnail").html(""),e.find(".wlcms-upload-input").val("")}))}""!=(r=r.replace("#",""))?(jQuery(".wlcms-navigation ul li a#wlcms_"+r).addClass("current"),jQuery(".wlcms_content section."+r).addClass("current"),i(r)):0==jQuery(".wlcms_content section.current").length&&(jQuery(".wlcms_content section").eq(0).addClass("current"),jQuery(".wlcms-navigation ul li").eq(0).find("a").addClass("current")),jQuery(".wlcms_upload").click((function(){var e=wp.media.editor.send.attachment,t=jQuery(this);return wp.media.editor.send.attachment=function(i,r){var s='<img id="'+r.id+'" src="'+r.url+'" />';s+='<span class="dashicons dashicons-dismiss wlcms-remove-img"></span>',t.parents(".wlcms-input-group").find(".wlcms-upload-thumbnail").html(s),t.parents(".wlcms-input-group").find(".wlcms-upload-input").val(r.url),n(),wp.media.editor.send.attachment=e},wp.media.editor.open(),!1})),n(),jQuery(".wlcms-color-field").wpColorPicker(),jQuery(".wlcms-preview-link").on("click",(function(){jQuery("#wlcms-preview-content").html("...");var e=jQuery(".wlcms-form").serialize()+"&action=wlcms_save_login_preview_settings&_ajax_nonce="+wlcms_settings.wlcms_ajax_nonce;jQuery.ajax({type:"post",url:ajaxurl,data:e,success:function(e){jQuery("#wlcms-preview-content").html('<iframe allowtransparency="true" class="long-animate wlcms-preview-iframe" title="Login Preview" onmousewheel="" src="'+wlcms_settings.loginurl+'?wlcms-action=preview&preview_section=login&reauth=1"></iframe>'),jQuery("iframe.wlcms-preview-iframe").load((function(){var e=jQuery(this),t=e.contents();e.slideDown("slow"),t.find("body").prepend('<div style="text-align: center;position: absolute;top: 40px;margin: 0 30%;left: 0;font-weight: 300;font-size: 24px;background: #dad9d9cf;line-height: 35px;padding: 0;color: #790404;width: 40%;">Preview mode</div>'),t.find("form").attr("action","#"),t.find("#wp-submit").attr("type","button"),t.find("a").attr("href","#")}))}})})),jQuery(".wlcms-dashboard-preview-link").on("click",(function(){jQuery("#wlcms-dashboard-content").html("...");var e=jQuery(".wlcms-form").serialize()+"&action=wlcms_save_dashboard_preview_settings";jQuery.ajax({type:"post",url:ajaxurl,data:e,success:function(e){jQuery("#wlcms-preview-content").html('<iframe allowtransparency="true" class="long-animate wlcms-preview-iframe" title="Preview" onmousewheel="" src="'+wlcms_settings.adminurl+'?wlcms-action=preview&preview_section=dashboard"></iframe>'),jQuery("iframe.wlcms-preview-iframe").load((function(){var e=jQuery(this),t=e.contents();e.slideDown("slow"),t.find("body").prepend('<div style="text-align: center;position: absolute;top: 40px;margin: 0 30%;font-weight: 300;font-size: 24px;background: #dad9d9cf;line-height: 35px;padding: 0 20px;color: #790404;width: 40%;z-index:999999">Preview mode</div>'),t.find("a").each((function(){jQuery(this).attr("href","#")}))}))}})})),jQuery(".wlcms-select2").select2({width:"100%",placeholder:"Select"})})),jQuery.validator.addMethod("feedurl",(function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp|feed):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)}),"Please use a valid URL"),jQuery.validator.messages.url="Please use a valid URL",jQuery(document).ready((function(){jQuery('.main-toggle[type="checkbox"]').change((function(e){var t=jQuery(this).prop("checked"),i=jQuery(this).attr("data-revised"),r=jQuery(this).parents(".toggle-group").find(".sub-fields");r.length&&(t&&"1"!=i&&r.find('input[type="checkbox"]:checked').length==r.find('input[type="checkbox"]').length||!t&&"1"==i?r.hide():r.show())})).trigger("change"),jQuery(".wlcms-toggle-arrow").on("click",(function(){jQuery(this).toggleClass("active"),jQuery(this).next("ul").slideToggle()})),jQuery("#enable_wlcms_admin").on("change",(function(){jQuery(this).is(":checked")?jQuery(".menu-admin-wrapper").show():jQuery(".menu-admin-wrapper").hide()})).trigger("change"),jQuery(".enable_welcome_for_all_roles").on("change",(function(){var e=jQuery("#select_user_roles"+jQuery(this).data("section"));jQuery(this).is(":checked")?e.hide():e.show()})).trigger("change"),jQuery('.wlcms-toggle[type="checkbox"]').change((function(e){var t=jQuery(this).prop("checked"),i=jQuery(this).parent();i.siblings();i.find('input[type="checkbox"]').prop({checked:t}),function e(i){var r=i.parent().parent(),n=!0;if(i.siblings().each((function(){return n=jQuery(this).children('input[type="checkbox"]').prop("checked")===t})),n&&t)r.children('input[type="checkbox"]').prop({checked:t}),e(r);else if(n&&!t)r.children('input[type="checkbox"]').prop("checked",t),r.children('input[type="checkbox"]').prop("indeterminate",r.find('input[type="checkbox"]:checked').length>0),e(r);else{var s=!0;i.parents("li").children('input[type="checkbox"]').hasClass("main-toggle-reverse")&&(s=!1),i.parents("li").children('input[type="checkbox"]').prop({checked:s})}}(i)})),jQuery(".wlcms-menus-settings > ul > li").each((function(){jQuery(this).find('input[type="checkbox"]:checked').length==jQuery(this).find('input[type="checkbox"]').length?jQuery(this).find("ul.sub_menu_wrapper").hide():jQuery(this).find("ul.sub_menu_wrapper").show()}));jQuery(".wlcms-form").validate({ignore:".ignore",rules:{rss_feed_address:{required:!1,feedurl:!0}},invalidHandler:function(e,t){var r=t.errorList;jQuery(".wlcms-navigation ul li span").remove();var n=[];for(i=0;i<r.length;i++){var s=r[i].element,a=jQuery(s).closest("section").attr("id");-1===n.indexOf(a)&&n.push(a),console.log(a)}for(i=0;i<n.length;i++)jQuery(".wlcms-navigation ul li a#wlcms_tab-"+n[i]).append('<span class="dashicons dashicons-no-alt"></span>');var c=t.numberOfInvalids();if(c){var l=1==c?"You missed 1 field. It has been highlighted":"You missed "+c+" fields. They have been highlighted";jQuery("div.wlcms_messages span").html(l),jQuery("div.wlcms_messages").show()}else jQuery("div.wlcms_messages").hide()}});jQuery(".template_type").on("change",(function(){var e=jQuery(this).data("template_type"),t=jQuery(".template_type"+e).filter(":checked"),i=t.data("page_type");if("html"==t.val()){if(jQuery(".welcome-basicHtml"+e).show(),jQuery(".welcome-page"+e).hide(),jQuery(".welcome-basicHtml"+e+" .welcome_panel_fullwidth").is(":checked"))return void jQuery(".wlcms_welcome_panel_dismissible"+e).show();jQuery(".wlcms_welcome_panel_dismissible"+e).hide()}else jQuery(".wlcms_welcome_panel_dismissible"+e).show(),jQuery(".welcome-basicHtml"+e).hide(),jQuery(".welcome-page"+e).show(),"beaver"==i?(jQuery(".beaver_page"+e).next().show(),jQuery(".elementor_page"+e).next().hide()):(jQuery(".beaver_page"+e).next().hide(),jQuery(".elementor_page"+e).next().show())})),jQuery(".template_type").trigger("change"),jQuery("form.wlcms-advert").on("submit",(function(){var e=jQuery("#ad-authorize").is(":checked"),t=jQuery("#inf_custom_GDPR");t.val(e+" "+t.data("date"))}))}))},,,,,function(e,t){},,,,,function(e,t){}]);