index of
/
home
/
thefkyzp
/
easyloanly.com
/
wp-content
/
plugins
/
white-label-cms
/
assets
/
js
/
File: /home/thefkyzp/easyloanly.com/wp-content/plugins/white-label-cms/assets/js/admin-settings.js
(()=>{var e,t={153:()=>{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 s(){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 a='<img id="'+r.id+'" src="'+r.url+'" />';a+='<span class="dashicons dashicons-dismiss wlcms-remove-img"></span>',t.parents(".wlcms-input-group").find(".wlcms-upload-thumbnail").html(a),t.parents(".wlcms-input-group").find(".wlcms-upload-input").val(r.url),s(),wp.media.editor.send.attachment=e},wp.media.editor.open(),!1})),s(),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(".wlcms-pageselect2").select2({width:"100%",placeholder:"Select",ajax:{url:window.ajaxurl,data:function(e){return{nonce:wlcms_settings.wlcms_ajax_nonce,action:"wlcms_search_pages",q:e.term,page:e.page||1}}}}),jQuery(".wlcms-pageselect2").each((function(){var e=jQuery(this),t=e.data("model");jQuery.ajax({type:"get",dataType:"json",url:window.ajaxurl,data:{nonce:wlcms_settings.wlcms_ajax_nonce,action:"wlcms_inital_search",q:t},success:function(t){var i=t.initials;if(void 0!==i.text){var r=new Option(i.text,i.id,!1,!1);e.append(r).trigger("change"),jQuery(".wlcms-form").trigger("reinitialize.areYouSure")}}})}))})),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(),s=!0;if(i.siblings().each((function(){return s=jQuery(this).children('input[type="checkbox"]').prop("checked")===t})),s&&t)r.children('input[type="checkbox"]').prop({checked:t}),e(r);else if(s&&!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 a=!0;i.parents("li").children('input[type="checkbox"]').hasClass("main-toggle-reverse")&&(a=!1),i.parents("li").children('input[type="checkbox"]').prop({checked:a})}}(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 s=[];for(i=0;i<r.length;i++){var a=r[i].element,n=jQuery(a).closest("section").attr("id");-1===s.indexOf(n)&&s.push(n),console.log(n)}for(i=0;i<s.length;i++)jQuery(".wlcms-navigation ul li a#wlcms_tab-"+s[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(".elementor_page"+e).next().hide(),jQuery(".beaver_page"+e).next().hide(),jQuery(".welcome-page"+e).show(),jQuery(".pages_select"+e).next().hide(),jQuery(".welcome-page"+e+" .welcome-label-template").show(),jQuery(".welcome-page"+e+" .welcome-label-page").hide(),"beaver"==i?jQuery(".beaver_page"+e).next().show():"page"==i?(jQuery(".page_page"+e).next().show(),jQuery(".welcome-page"+e+" .welcome-label-page").show(),jQuery(".welcome-page"+e+" .welcome-label-template").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"))}))}))},893:()=>{},60:()=>{}},r={};function s(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,s),a.exports}s.m=t,e=[],s.O=(t,i,r,a)=>{if(!i){var n=1/0;for(u=0;u<e.length;u++){for(var[i,r,a]=e[u],c=!0,l=0;l<i.length;l++)(!1&a||n>=a)&&Object.keys(s.O).every((e=>s.O[e](i[l])))?i.splice(l--,1):(c=!1,a<n&&(n=a));if(c){e.splice(u--,1);var o=r();void 0!==o&&(t=o)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[i,r,a]},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={727:0,364:0,282:0};s.O.j=t=>0===e[t];var t=(t,i)=>{var r,a,[n,c,l]=i,o=0;if(n.some((t=>0!==e[t]))){for(r in c)s.o(c,r)&&(s.m[r]=c[r]);if(l)var u=l(s)}for(t&&t(i);o<n.length;o++)a=n[o],s.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return s.O(u)},i=self.webpackChunkwhite_label_cms=self.webpackChunkwhite_label_cms||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})(),s.O(void 0,[364,282],(()=>s(153))),s.O(void 0,[364,282],(()=>s(893)));var a=s.O(void 0,[364,282],(()=>s(60)));a=s.O(a)})();