PATH:
home
/
lab2454c
/
foreclass.com
/
wp-content
/
plugins
/
search-replace-for-elementor
/
assets
/
dist
/
js
"use strict";var ELEMSNR=ELEMSNR||{},$=jQuery||{};ELEMSNR.pluginURL=elemsnr.plugin_url,ELEMSNR.ajaxURL=elemsnr.ajax_url,ELEMSNR.ajaxNonce=elemsnr.ajax_nonce,ELEMSNR.toggleSearchMethod=function(e){e=$(e.target);"elemsnr-text-only"===e.prop("id")&&($('input[name="elemsnr-case-sensitive"]').prop("disabled",!1),$('input[name="elemsnr-search-phrase"]').prop({type:"text",placeholder:"Enter your search phrase...",readonly:!1,class:"regular-text"}),$(".elemsnr-search-phrase .description small").html("Search phrase is required with minimum of 3 characters, no HTML allowed."),$('input[name="elemsnr-replace-with-phrase"]').prop({type:"text",placeholder:"Enter your replace with phrase...",readonly:!1,class:"regular-text"}),$(".elemsnr-replace-with-phrase .description small").html("Search phrase is required with minimum of 3 characters, no HTML allowed.")),"elemsnr-links"===e.prop("id")&&($('input[name="elemsnr-case-sensitive"]').prop("checked",!1),$('input[name="elemsnr-case-sensitive"]').prop("disabled",!0),$('input[name="elemsnr-search-phrase"]').prop({type:"url",placeholder:"Enter your search URL...",readonly:!1,class:"regular-text"}),$(".elemsnr-search-phrase .description small").html("Search URL is required, starting with http(s)://."),$('input[name="elemsnr-replace-with-phrase"]').prop({type:"url",placeholder:"Enter your replace with URL...",readonly:!1,class:"regular-text"}),$(".elemsnr-replace-with-phrase .description small").html("Replace with URL is required, starting with http(s)://.")),"elemsnr-images"===e.prop("id")&&($('input[name="elemsnr-case-sensitive"]').prop("checked",!1),$('input[name="elemsnr-case-sensitive"]').prop("disabled",!0),$('input[name="elemsnr-search-phrase"]').prop({type:"url",placeholder:"Select your search Image...",readonly:!0,class:"regular-text elemsnr-media-modal"}),$(".elemsnr-search-phrase .description small").html("Search Image is required."),$('input[name="elemsnr-replace-with-phrase"]').prop({type:"url",placeholder:"Select your replace with Image...",readonly:!0,class:"regular-text elemsnr-media-modal"}),$(".elemsnr-replace-with-phrase .description small").html("Replace with Image is required."))},ELEMSNR.togglePostTypesCont=function(e){$(e.target).closest("p").next().toggle()},ELEMSNR.toggleAllPosts=function(e){$(e.target).closest(".elemsnr-scroll-container").find("p input:checkbox").each(function(){this.checked=!this.checked})},ELEMSNR.toggleWidgets=function(e){e=$(e.target).closest("p").next();e.toggle(),e.find("input:checkbox").each(function(){this.disabled||(this.checked=!this.checked)})},ELEMSNR.toggleDryRun=function(e){var e=$(e.target),r=$(".elemsnr-admin");"yes"===e.val()?(r.find(".elemsnr-dry-run-button").show(),r.find(".elemsnr-replace-with-phrase").hide(),r.find(".elemsnr-submit-button").hide()):(r.find(".elemsnr-dry-run-button").hide(),r.find(".elemsnr-replace-with-phrase").show(),r.find(".elemsnr-submit-button").show())},ELEMSNR.toggleHTMLRegex=function(e){var e=$(e.target),r=$(".elemsnr-admin");!0===e.prop("checked")?(r.find(".elemsnr-dry-run").hide(),r.find('input[name="elemsnr-dry-run"]').prop("disabled",!0),r.find(".elemsnr-text-and-link").hide(),r.find('input[name="elemsnr-text-and-link"]').prop("disabled",!0),r.find('input[name="elemsnr-case-sensitive"]').prop("disabled",!0),r.find(".elemsnr-replace-with-phrase").show(),r.find(".elemsnr-submit-button").show(),r.find('input[name="elemsnr-search-phrase"]').prop({type:"text",placeholder:"Enter your regular expression...",readonly:!1,class:"regular-text"}),r.find('input[name="elemsnr-replace-with-phrase"]').prop({type:"text",placeholder:"Enter your replace with phrase or HTML...",readonly:!1,class:"regular-text"}),r.find("#elemsnr-output").addClass("elemsnr-output-active").html('\n\t\t\t\t\t<strong>Important:</strong> It is strongly recommended to <a href="/wp-admin/admin.php?page=elemsnr-backup">backup your database</a> before you run the search and replace. \n\t\t\t\t\tLearn how to use regular expressions at <a href="https://www.regular-expressions.info/" target="_blank">Regular Expressions</a>.\n\t\t\t\t'),r.find(".elemsnr-search-phrase small").hide(),r.find(".elemsnr-replace-with-phrase small").hide(),r.find(".elemsnr-html-regexp-button").show(),r.find(".elemsnr-dry-run-button").hide()):(r.find(".elemsnr-dry-run").show(),r.find('input[name="elemsnr-dry-run"]').prop("disabled",!1),r.find(".elemsnr-text-and-link").show(),r.find('input[name="elemsnr-text-and-link"]').prop("disabled",!1),r.find('input[name="elemsnr-case-sensitive"]').prop("disabled",!1),!0===r.find("input#elemsnr-text-only").prop("checked")&&(r.find('input[name="elemsnr-search-phrase"]').prop({type:"text",placeholder:"Enter your search phrase...",readonly:!1,class:"regular-text"}),r.find('input[name="elemsnr-replace-with-phrase"]').prop({type:"text",placeholder:"Enter your replace with phrase...",readonly:!1,class:"regular-text"})),!0===r.find("input#elemsnr-links").prop("checked")&&(r.find('input[name="elemsnr-search-phrase"]').prop({type:"text",placeholder:"Enter your search URL...",readonly:!1,class:"regular-text"}),r.find('input[name="elemsnr-replace-with-phrase"]').prop({type:"text",placeholder:"Enter your replace with URL...",readonly:!1,class:"regular-text"}),r.find("input#elemsnr-case-sensitive").prop("disabled",!0)),!0===r.find("input#elemsnr-images").prop("checked")&&(r.find('input[name="elemsnr-search-phrase"]').prop({type:"text",placeholder:"Select your search Image...",readonly:!0,class:"regular-text elemsnr-media-modal"}),r.find('input[name="elemsnr-replace-with-phrase"]').prop({type:"text",placeholder:"Select your replace with Image...",readonly:!0,class:"regular-text elemsnr-media-modal"}),r.find("input#elemsnr-case-sensitive").prop("disabled",!0)),r.find("#elemsnr-output").removeClass("elemsnr-output-active").empty(),r.find(".elemsnr-search-phrase small").show(),r.find(".elemsnr-replace-with-phrase small").show(),r.find(".elemsnr-replace-with-phrase ").hide(),r.find("input#elemsnr-dry-run-no").prop("checked",!1),r.find("input#elemsnr-dry-run-yes").prop("checked",!0),r.find(".elemsnr-html-regexp-button").hide(),r.find(".elemsnr-dry-run-button").show()),r.find(".elemsnr-submit-button").hide()},function(e){e(document).on("click",'input[name="elemsnr-text-and-link"]',ELEMSNR.toggleSearchMethod),e(document).on("click",'input[name="elemsnr-post-type[]"]',ELEMSNR.togglePostTypesCont),e(document).on("click",'input[name="elemsnr-toggle-posts"]',ELEMSNR.toggleAllPosts),e(document).on("click",'input[name="elemsnr-dry-run"]',ELEMSNR.toggleDryRun),e(document).on("click",'input[name="elemsnr-html-regexp"]',ELEMSNR.toggleHTMLRegex)}(jQuery);
[-] elemsnr-search-replace.min.js
[edit]
[+]
..
[-] elemsnr-admin.min.js
[edit]