Файловый менеджер - Редактировать - /home/digitalm/yhubita/wp-content/plugins/internal-links/admin/js/ilj_menu_settings.min.js.map
Назад
{"version":3,"file":"ilj_menu_settings.min.js","mappings":"AAGA,SAASA,kBAAkBC,EAAIC,EAAQC,EAAeC,GACpDC,OAAOJ,GAAIK,YAAY,CACrBC,MAAO,MACPC,mBAAoB,EACpBC,kBAAmB,SAAUC,GAC3B,IAAIC,EAAQ,GACRC,EAAUP,OAAOJ,GAKrB,OAJIW,GAAWA,EAAQC,KAAK,4BAC1BF,EAAQG,SAASF,EAAQC,KAAK,6BAEpBH,EAAMK,KAAKC,OAASL,EAAQD,EAAMK,KAAKE,UAAU,EAAGN,GAAS,MAAQD,EAAMK,MACxE,SAAWL,EAAMT,GAAK,GACvC,EACAiB,KAAM,CACJC,IAAKC,QACLC,KAAM,OACNR,KAAM,SAAUS,GACd,MAAO,CACLpB,OAAQA,EACRqB,MAAOC,sBAAsBpB,GAC7BqB,OAAQH,EAAOI,KACfC,SAAUxB,EACVyB,KAAMN,EAAOM,MAAQ,EAEzB,EACAC,eAAgB,SAAUhB,GACxB,OAAoB,IAAhBA,EAAKG,SAGTc,MAAO,EACHjB,EAAKG,OAASb,IAChB2B,MAAO,GAEFC,SAAW,CAChB,QAAWlB,EACX,WAAc,CACZ,OAGN,GAEFmB,SAAU,CACRC,aAAc,WACZ,OAAOC,wBAAwBC,aACjC,EACAC,cAAe,SAAUC,GACvB,IAAIC,EAAiBD,EAAKE,QAAUF,EAAKG,MAAMxB,OAC/C,OAAOkB,wBAAwBO,gBAAkB,KAAOH,CAC1D,EACAI,YAAa,WACX,OAAOR,wBAAwBS,YACjC,EACAC,UAAW,WACT,OAAOV,wBAAwBW,UACjC,EACAC,UAAW,WACT,OAAOZ,wBAAwBY,SACjC,IAGN,CAUA,SAASC,iCAAiCC,EAAOC,EAAgBC,EAAY,YAC3EC,gCAAgCH,EAAMI,KAAK,WAAYH,EAAgBC,GACvEF,EAAMK,GAAG,UAAU,WACjBF,gCAA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js/ilj_menu_settings.js"],"sourcesContent":["/*!*******************************************!*\\\n !*** ./src/admin/js/ilj_menu_settings.js ***!\n \\*******************************************/\nfunction ilj_dynamicSelect(id, action, searchResults, nonceName) {\n jQuery(id).ilj_select2({\n width: '50%',\n minimumInputLength: 3,\n templateSelection: function (state) {\n var limit = 20;\n var element = jQuery(id);\n if (element && element.data(\"iljTitleCharacterLimit\")) {\n limit = parseInt(element.data(\"iljTitleCharacterLimit\"));\n }\n var title = state.text.length > limit ? state.text.substring(0, limit) + \"...\" : state.text;\n return title + \" (ID: \" + state.id + \")\";\n },\n ajax: {\n url: ajaxurl,\n type: \"POST\",\n data: function (params) {\n return {\n action: action,\n nonce: ilj_menu_settings_obj[nonceName],\n search: params.term,\n per_page: searchResults,\n page: params.page || 1\n };\n },\n processResults: function (data) {\n if (data.length === 0) {\n return false;\n }\n more = true;\n if (data.length < searchResults) {\n more = false;\n }\n return data_new = {\n \"results\": data,\n \"pagination\": {\n \"more\": more\n }\n };\n }\n },\n language: {\n errorLoading: function () {\n return ilj_select2_translation.error_loading;\n },\n inputTooShort: function (args) {\n var remainingChars = args.minimum - args.input.length;\n return ilj_select2_translation.input_too_short + ': ' + remainingChars;\n },\n loadingMore: function () {\n return ilj_select2_translation.loading_more;\n },\n noResults: function () {\n return ilj_select2_translation.no_results;\n },\n searching: function () {\n return ilj_select2_translation.searching;\n }\n }\n });\n}\n\n/**\n * This function is used to disable a group of fields when a toggle is disabled,\n * enable it when its enabled ( both during page load and while changing the settings )\n *\n * @param {jQuery} field JQuery object for selected field\n * @param {jQuery} inverse_fields JQuery object for inverse fields.\n * @param {string} attribute The attribute to toggle (defaults to readonly)\n */\nfunction ilj_menu_settings_inverse_fields(field, inverse_fields, attribute = 'readonly') {\n ilj_menu_settings_toggle_fields(field.prop('checked'), inverse_fields, attribute);\n field.on('change', function () {\n ilj_menu_settings_toggle_fields(field.prop('checked'), inverse_fields, attribute);\n });\n}\n\n/**\n * Disable the fields and its corresponding row.\n * @param {boolean} toggle Set to disabled or enabled based on this boolean.\n * @param {jQuery} inverse_fields The jQuery object for fields.\n * @param {string} attribute The attribute to toggle.\n */\nfunction ilj_menu_settings_toggle_fields(toggle, inverse_fields, attribute) {\n if (toggle) {\n inverse_fields.each(function () {\n jQuery(this).prop(attribute, false).closest('tr').find('th').removeClass('inactive');\n });\n } else {\n inverse_fields.each(function () {\n jQuery(this).prop(attribute, true).closest('tr').find('th').addClass('inactive');\n });\n }\n}\n(function ($) {\n $(function () {\n jQuery('#ilj_settings_field_editor_role, #ilj_settings_field_index_generation, #ilj_settings_field_whitelist, #ilj_settings_field_taxonomy_whitelist, #ilj_settings_field_limit_taxonomy_list, #ilj_settings_field_keyword_order, #ilj_settings_field_no_link_tags, #ilj_settings_field_custom_fields_to_link_post, #ilj_settings_field_custom_fields_to_link_term').ilj_select2({\n minimumResultsForSearch: 10,\n width: '50%'\n });\n\n /**\n * ilj_settings_field_custom_fields_to_link_post, ilj_settings_field_custom_fields_to_link_term now supports\n * the regex rule matching. For example if the user types 'apple' in to the field we have to show the following three\n * options\n *\n * 1. Custom field name starts with 'apple'\n * 2. Custom field name ends with 'apple'\n * 3. Custom field name contains 'apple'\n *\n * To accomplish this behaviour we use the insertTag() option of select2 to dynamically add tags.\n */\n jQuery('#ilj_settings_field_custom_fields_to_link_post, #ilj_settings_field_custom_fields_to_link_term').ilj_select2({\n minimumResultsForSearch: 10,\n width: '50%',\n tags: true,\n insertTag: function (data, tag) {\n // Collect existing ids to perform O(1) lookup in a set.\n var ids = new Set(data.map(e => e.id));\n var startsWithId = `starts_with:${tag.id}`.trim();\n var endsWithId = `ends_with:${tag.id}`.trim();\n var containsId = `contains:${tag.id}`.trim();\n if (!ids.has(startsWithId)) {\n data.push({\n newOption: true,\n id: startsWithId,\n text: ilj_select2_translation.custom_field_starts_with.replace('%s', tag.text)\n });\n }\n if (!ids.has(endsWithId)) {\n data.push({\n newOption: true,\n id: endsWithId,\n text: ilj_select2_translation.custom_field_ends_with.replace('%s', tag.text)\n });\n }\n if (!ids.has(containsId)) {\n data.push({\n newOption: true,\n id: containsId,\n text: ilj_select2_translation.custom_field_has.replace('%s', tag.text)\n });\n }\n }\n });\n\n /***\n * When the user clicks on any one of the dynamically added option, we have to add them to select2 options\n * and make it selected.\n */\n jQuery('#ilj_settings_field_custom_fields_to_link_post, #ilj_settings_field_custom_fields_to_link_term').on('select2:select', function (e) {\n if (e.params.data.newOption) {\n var data = e.params.data;\n var newOption = new Option(data.text, data.id, true, true);\n $(this).append(newOption).trigger('change');\n }\n });\n\n /**\n * Toggle max incoming links field by limit incoming links toggle.\n */\n ilj_menu_settings_inverse_fields(jQuery('#ilj_settings_field_limit_incoming_links'), jQuery('#ilj_settings_field_max_incoming_links'));\n ilj_menu_settings_inverse_fields(jQuery('#ilj_settings_field_links_per_paragraph_switch'), jQuery('#ilj_settings_field_links_per_paragraph'));\n ilj_dynamicSelect('#ilj_settings_field_blacklist', 'ilj_search_posts', 20, 'nonce_ilj_search_posts');\n ilj_dynamicSelect('#ilj_settings_field_term_blacklist', 'ilj_search_terms', 20, 'nonce_ilj_search_terms');\n\n /**\n * Toggle Link preview template based on link preview toggle.\n */\n var link_preview_toggle_selector = jQuery('#ilj_settings_field_link_preview_switch');\n ilj_menu_settings_inverse_fields(link_preview_toggle_selector, jQuery('#ilj_settings_field_link_preview_template'));\n ilj_menu_settings_inverse_fields(link_preview_toggle_selector, jQuery('#ilj_settings_field_link_preview_template_reset_to_default'), 'disabled');\n\n /**\n * Toggle \"links_per_page\" and \"links_per_target\" depending on multiple keyword state\n */\n jQuery('#ilj_settings_field_multiple_keywords').on('change', function () {\n var $inverse_setting_field = jQuery('#ilj_settings_field_links_per_page, #ilj_settings_field_links_per_target, #ilj_settings_field_limit_incoming_links');\n if (this.checked) {\n $inverse_setting_field.each(function () {\n jQuery(this).closest('tr').find('th').addClass('inactive');\n if (!jQuery(this).parent().parent().hasClass('pro-setting')) {\n jQuery(this).prop('disabled', true);\n }\n });\n jQuery(\"#ilj_settings_field_links_per_page\").val(\"0\");\n jQuery(\"#ilj_settings_field_links_per_target\").val(\"0\");\n } else {\n $inverse_setting_field.each(function () {\n jQuery(this).closest('tr').find('th').removeClass('inactive');\n if (!jQuery(this).parent().parent().hasClass('pro-setting')) {\n jQuery(this).prop('disabled', false);\n }\n });\n }\n });\n jQuery('#ilj_settings_field_index_generation').on('change', function () {\n var $inverse_setting_field = jQuery('#ilj_settings_field_hide_status_bar');\n if (this.value == \"index_mode_none\") {\n $inverse_setting_field.each(function () {\n jQuery(this).closest('tr').find('th').addClass('inactive');\n });\n $inverse_setting_field.prop('disabled', true);\n } else {\n $inverse_setting_field.each(function () {\n jQuery(this).closest('tr').find('th').removeClass('inactive');\n });\n $inverse_setting_field.prop('disabled', false);\n }\n });\n var index_generation_mode = jQuery('#ilj_settings_field_index_generation').val();\n if (index_generation_mode == 'index_mode_none') {\n var disable_hide_status_bar_option = jQuery(\"#ilj_settings_field_hide_status_bar\");\n disable_hide_status_bar_option.each(function () {\n jQuery(this).closest('tr').find('th').addClass('inactive');\n });\n disable_hide_status_bar_option.prop('disabled', true);\n }\n $(function () {\n var $multiple_keywords = jQuery('#ilj_settings_field_multiple_keywords');\n var $inverse_setting_field = jQuery('#ilj_settings_field_links_per_page, #ilj_settings_field_links_per_target');\n if (!$multiple_keywords.length) {\n return;\n }\n if ($multiple_keywords[0].checked) {\n $inverse_setting_field.each(function () {\n jQuery(this).closest('tr').find('th').addClass('inactive');\n if (!jQuery(this).parent().parent().hasClass('pro-setting')) {\n jQuery(this).prop('disabled', true);\n }\n });\n } else {\n $inverse_setting_field.each(function () {\n if (!jQuery(this).parent().parent().hasClass('pro-setting')) {\n jQuery(this).prop('disabled', false);\n }\n });\n }\n $('#ilj_settings_field_links_per_page, #ilj_settings_field_links_per_target, #ilj_settings_field_links_per_paragraph, #ilj_settings_field_max_incoming_links').change(function () {\n const val = jQuery(this).val();\n if (val == '-0') {\n $(this).val('');\n $(this).focus();\n alert(ilj_menu_settings_translation.negative_not_allowed_message);\n }\n });\n });\n\n /**\n * Adding Tooltip\n */\n var tipsoConfig = {\n width: '',\n maxWidth: '200',\n useTitle: true,\n delay: 100,\n speed: 500,\n background: '#32373c',\n color: '#eeeeee',\n size: 'small'\n };\n jQuery('.tip').iljtipso(tipsoConfig);\n jQuery('.pro-title, .pro-setting').attr('title', ilj_menu_settings_translation.pro_feature_title);\n jQuery('.pro-title, .pro-setting').on('click', function () {\n window.open(ilj_menu_settings_translation.upgrade_to_pro_link, '_blank');\n });\n jQuery(document).on('click', '.button.ilj-cancel-schedules', function (e) {\n e.preventDefault();\n var user_confirmed = confirm(ilj_menu_settings_translation.confirm_cancel_message);\n if (!user_confirmed) {\n return;\n }\n if (jQuery(this).attr('disabled')) {\n return;\n }\n jQuery(this).after(jQuery('<span id=\"ilj-cancel-schedule-spinner\" class=\"spinner is-active\" style=\"float:none\"></span>'));\n var data = {\n 'action': 'ilj_cancel_schedules',\n 'nonce': ilj_menu_settings_obj.nonce\n };\n jQuery.ajax({\n url: ajaxurl,\n type: 'POST',\n data: data,\n statusCode: {\n 500: function (xhr) {\n if (!'responseJSON' in xhr || !['success', 'error'].includes(xhr.responseJSON.status)) {\n return;\n }\n console.log('Error: ' + xhr.responseJSON.message);\n }\n },\n success: function (data, textStatus, xhr) {\n jQuery('#ilj-cancel-schedule-spinner').remove();\n if (jQuery('#ilj-cancel-schedule-feedback').length === 0) {\n var successMessage = '<div id=\"ilj-cancel-schedule-feedback\" class=\"notice notice-success is-dismissible\"><p>' + ilj_menu_settings_translation.success_message + '</p></div>';\n jQuery(successMessage).insertAfter('.button.ilj-cancel-schedules');\n setTimeout(function () {\n jQuery(\"#ilj-cancel-schedule-feedback\").remove();\n }, 2000);\n }\n }\n });\n });\n });\n jQuery(document).on('click', '.button.ilj-fix-database-collation', function (e) {\n e.preventDefault();\n var user_confirmed = confirm(ilj_menu_settings_translation.confirm_database_collation_fix_message);\n if (!user_confirmed) {\n return;\n }\n if (jQuery(this).attr('disabled')) {\n return;\n }\n jQuery(this).after(jQuery('<span id=\"ilj-fix-database-collation-spinner\" class=\"spinner is-active\" style=\"float:none\"></span>'));\n var data = {\n 'action': 'ilj_fix_database_collation',\n 'nonce': ilj_menu_settings_obj.nonce_ilj_fix_collation\n };\n jQuery.ajax({\n url: ajaxurl,\n type: 'POST',\n data: data,\n statusCode: {\n 500: function (xhr) {\n if (!'responseJSON' in xhr || !['success', 'error'].includes(xhr.responseJSON.status)) {\n return;\n }\n console.log('Error: ' + xhr.responseJSON.message);\n }\n },\n success: function (data, textStatus, xhr) {\n jQuery('#ilj-fix-database-collation-spinner').remove();\n if (jQuery('#ilj-fix-database-collation-feedback').length === 0) {\n var successMessage = '<div id=\"ilj-fix-database-collation-feedback\" class=\"notice notice-success is-dismissible\"><p>' + ilj_menu_settings_translation.success_message + '</p></div>';\n jQuery(successMessage).insertAfter('.button.ilj-fix-database-collation');\n setTimeout(function () {\n jQuery(\"#ilj-fix-database-collation-feedback\").remove();\n }, 2000);\n }\n }\n });\n });\n})(jQuery);\n"],"names":["ilj_dynamicSelect","id","action","searchResults","nonceName","jQuery","ilj_select2","width","minimumInputLength","templateSelection","state","limit","element","data","parseInt","text","length","substring","ajax","url","ajaxurl","type","params","nonce","ilj_menu_settings_obj","search","term","per_page","page","processResults","more","data_new","language","errorLoading","ilj_select2_translation","error_loading","inputTooShort","args","remainingChars","minimum","input","input_too_short","loadingMore","loading_more","noResults","no_results","searching","ilj_menu_settings_inverse_fields","field","inverse_fields","attribute","ilj_menu_settings_toggle_fields","prop","on","toggle","each","this","closest","find","removeClass","addClass","$","minimumResultsForSearch","tags","insertTag","tag","ids","Set","map","e","startsWithId","trim","endsWithId","containsId","has","push","newOption","custom_field_starts_with","replace","custom_field_ends_with","custom_field_has","Option","append","trigger","link_preview_toggle_selector","$inverse_setting_field","checked","parent","hasClass","val","value","disable_hide_status_bar_option","$multiple_keywords","change","focus","alert","ilj_menu_settings_translation","negative_not_allowed_message","iljtipso","maxWidth","useTitle","delay","speed","background","color","size","attr","pro_feature_title","window","open","upgrade_to_pro_link","document","preventDefault","confirm","confirm_cancel_message","after","statusCode","xhr","includes","responseJSON","status","console","log","message","success","textStatus","remove","successMessage","success_message","insertAfter","setTimeout","confirm_database_collation_fix_message","nonce_ilj_fix_collation"],"sourceRoot":""}
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.03 |
proxy
|
phpinfo
|
Настройка