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AAGR,EAAkD7C,gBAAgBkE,0BAA0B4J,YAAc,KAAOD,EAAS,MAAQhB,EAAa,IAAK/J,EAAE,UAAUzC,SAAS,iBAAiBM,KAAK0C,IAClMP,EAAE,wBAAwBoK,MAC5B,GACF,GACF,CA1DQa,EAEJ,EACAX,MAAO,SAAUA,GACfC,QAAQC,IAAI,6BAA8BF,EAC5C,GAEJ,CAwDAG,CAA6B,EAC/B,IAKAzK,EAAEsD,UAAUvF,GAAG,WAAW,SAAUC,GAClC,IAAIuH,EAAWvF,EAAE,4BACZuF,EAAS2F,GAAGlN,EAAE6H,SAA6C,IAAlCN,EAAS4F,IAAInN,EAAE6H,QAAQpC,QACnD8B,EAASrH,YAAY,OAEzB,GACD,CA5cD,CA4cGZ,OACF,EApdD","sources":["webpack://wp-internal-linkjuicer/./src/admin/js/ilj_statistic.js"],"sourcesContent":["/******/ \"use strict\";\n/******/ var __webpack_modules__ = ({\n\n/***/ \"./assets/admin/js/components/ilj_modal.js\":\n/*!*************************************************!*\\\n !*** ./assets/admin/js/components/ilj_modal.js ***!\n \\*************************************************/\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ iljCreateModal: () => (/* binding */ iljCreateModal)\n/* harmony export */ });\nfunction iljCreateModal(title, content) {\n var modal = jQuery('<div/>').addClass('ilj_modal show');\n var modal_wrapper = jQuery('<div/>').addClass('ilj_modal_wrap').append(modal);\n var header = jQuery('<div/>').addClass('ilj_modal_header').append(jQuery('<h2 />').text(title));\n var body = jQuery('<div/>').addClass('ilj_modal_body').html(content);\n var footer = jQuery('<div/>').addClass('ilj_modal_footer').append(jQuery('<button/>').text('OK').addClass('button button-primary').on('click', function (e) {\n closeModal(e);\n }));\n var closeModal = function () {\n modal.removeClass('show').addClass('hide');\n jQuery('body').css({\n overflowY: 'auto'\n });\n setTimeout(function () {\n modal_wrapper.remove();\n }, 200);\n }.bind(modal_wrapper);\n modal.append(header);\n modal.append(body);\n modal.append(footer);\n jQuery('body').append(modal_wrapper).css({\n overflowY: 'hidden'\n });\n}\n\n/***/ })\n\n/******/ });\n/************************************************************************/\n/******/ // The module cache\n/******/ var __webpack_module_cache__ = {};\n/******/ \n/******/ // The require function\n/******/ function __webpack_require__(moduleId) {\n/******/ \t// Check if module is in cache\n/******/ \tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \tif (cachedModule !== undefined) {\n/******/ \t\treturn cachedModule.exports;\n/******/ \t}\n/******/ \t// Create a new module (and put it into the cache)\n/******/ \tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t// no module.id needed\n/******/ \t\t// no module.loaded needed\n/******/ \t\texports: {}\n/******/ \t};\n/******/ \n/******/ \t// Execute the module function\n/******/ \t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \n/******/ \t// Return the exports of the module\n/******/ \treturn module.exports;\n/******/ }\n/******/ \n/************************************************************************/\n/******/ /* webpack/runtime/define property getters */\n/******/ (() => {\n/******/ \t// define getter functions for harmony exports\n/******/ \t__webpack_require__.d = (exports, definition) => {\n/******/ \t\tfor(var key in definition) {\n/******/ \t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t};\n/******/ })();\n/******/ \n/******/ /* webpack/runtime/hasOwnProperty shorthand */\n/******/ (() => {\n/******/ \t__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\n/******/ })();\n/******/ \n/******/ /* webpack/runtime/make namespace object */\n/******/ (() => {\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = (exports) => {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/ })();\n/******/ \n/************************************************************************/\nvar __webpack_exports__ = {};\n// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.\n(() => {\n/*!***************************************!*\\\n !*** ./src/admin/js/ilj_statistic.js ***!\n \\***************************************/\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var components_ilj_modal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! components/ilj_modal */ \"./assets/admin/js/components/ilj_modal.js\");\n\n(function ($) {\n /**\n * $ plugin for the tabnav handling\n */\n $.fn.ilj_tabnav = function () {\n var container = this;\n $(this).find('.nav-tab-wrapper').on('click', 'a', function () {\n //toggling tab-nav:\n $(this).addClass('nav-tab-active');\n $(this).siblings('a').removeClass('nav-tab-active');\n //toggling tab-content:\n container.find('.tab-content').removeClass('active');\n container.find('.tab-content#' + $(this).data('target')).addClass('active');\n });\n };\n\n /**\n * Config for tipso\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\n // /**\n // * Config for swal\n // */\n // var swalHandle = Swal.mixin({\n // buttonsStyling: false,\n // customClass: {\n // confirmButton: 'button button-primary'\n // },\n // width: '48rem'\n // });\n\n /**\n * Internationalization config for dataTables\n */\n var dataTables_language = {\n aria: {\n sortAscending: ilj_statistic_translation.datatables_aria_sortAscending,\n sortDescending: ilj_statistic_translation.datatables_aria_sortDescending\n },\n paginate: {\n first: ilj_statistic_translation.datatables_paginate_first,\n last: ilj_statistic_translation.datatables_paginate_last,\n next: ilj_statistic_translation.datatables_paginate_next,\n previous: ilj_statistic_translation.datatables_paginate_previous\n },\n emptyTable: ilj_statistic_translation.datatables_empty_table,\n info: ilj_statistic_translation.datatables_info,\n infoEmpty: ilj_statistic_translation.datatables_info_empty,\n infoFiltered: ilj_statistic_translation.datatables_info_filtered,\n lengthMenu: ilj_statistic_translation.datatables_length_menu,\n loadingRecords: ilj_statistic_translation.datatables_loading_records,\n processing: ilj_statistic_translation.datatables_processing,\n search: ilj_statistic_translation.datatables_search,\n zeroRecords: ilj_statistic_translation.datatables_zero_records\n };\n var link_statistics_table_data = '';\n var anchor_statistics_table_data = '';\n var chunk_size = 1000;\n /**\n * Initialize the warning tip if possible\n */\n $(document).ready(function () {\n var $warningTip = $('.warning-tip');\n if (!$warningTip.length) {\n return;\n }\n var tipsoWarningConfig = $.extend(Object.assign({}, tipsoConfig), {\n tooltipHover: true,\n useTitle: false,\n content: $('<div/>').html($warningTip.find('.the-tip').html()).css({\n 'margin': '10px 20px',\n 'display': 'block'\n }),\n maxWidth: '250px'\n });\n $warningTip.iljtipso(tipsoWarningConfig);\n });\n\n /**\n * Initializing the statistics\n */\n $(document).ready(function () {\n /**\n * Get all available types in the statistic table\n */\n var get_available_types = function ($table) {\n var types = {};\n $table.dataTable().api().rows().every(function (index) {\n var row = $table.dataTable().api().row(index);\n var data = row.data();\n var $inner = $(data[2].display);\n var type_main = $inner.attr('data-type');\n var type_sub = $inner.text();\n if (types[type_main] === undefined) {\n types[type_main] = [];\n }\n types[type_main].push(type_sub);\n });\n $.each(types, function (property, value) {\n types[property] = types[property].filter(function (x, i, a) {\n return a.indexOf(x) == i;\n });\n });\n return types;\n };\n\n /**\n * Returns the translated label for a parent type (post, term, custom)\n */\n var get_main_type_label = function (slug) {\n switch (slug) {\n case 'post':\n slug = ilj_statistic_translation.filter_section_posts_pages;\n break;\n case 'term':\n slug = ilj_statistic_translation.filter_section_taxonomies;\n break;\n case 'custom':\n slug = ilj_statistic_translation.filter_section_custom_links;\n break;\n }\n return slug;\n };\n\n /**\n * Get the complete type filter node\n * @returns {jQuery}\n */\n var get_type_filter = function ($table) {\n var available_types = get_available_types($table);\n var $wrapper = $('<div/>').addClass('ilj-type-filter-wrapper');\n var $container = $('<ul/>');\n var $dropdown_link = $('<a/>').addClass('ilj-type-filter-dropdown').text(ilj_statistic_translation.filter_type).on('click', function () {\n $wrapper.toggleClass('show');\n });\n $wrapper.append($dropdown_link, $container);\n $container.activeTypes = [];\n $container.activeTypes.remove = function (target) {\n var index = this.indexOf(target);\n if (index > -1) {\n this.splice(index, 1);\n }\n };\n $.each(available_types, function (index, element) {\n var label = get_main_type_label(index);\n var $elem = $('<li/>').html($('<span/>').text(label));\n var $sub_container = $('<ul/>');\n $container.append($elem);\n if (element.length) {\n $elem.append($sub_container);\n }\n $.each(element, function (subindex, subelement) {\n var $sub_elem_toggle = $('<input/>').attr({\n type: 'checkbox',\n checked: 'checked'\n }).on('change', function () {\n var type = index + ';' + subelement;\n if (true === $(this).prop('checked')) {\n $container.activeTypes.push(type);\n } else {\n $container.activeTypes.remove(type);\n }\n var type_column = $table.dataTable().api().column('th.type');\n var type_search = $container.activeTypes.length ? $container.activeTypes.join('|') : null;\n type_column.search(type_search, true, false).draw();\n });\n var $sub_elem_inner = $('<label/>').html($('<span/>').text(subelement).attr('data-type', index));\n var $sub_elem = $('<li/>').addClass('type').html($sub_elem_inner);\n $container.activeTypes.push(index + ';' + subelement);\n $sub_elem_inner.prepend($sub_elem_toggle);\n $sub_container.append($sub_elem);\n });\n });\n return $wrapper;\n };\n var $tabnav = $('.ilj-statistic').find('.nav-tab-wrapper');\n if ($tabnav.length) {\n $('.ilj-statistic').ilj_tabnav();\n }\n $('.tip').iljtipso(tipsoConfig);\n function create_link_statistics_table() {\n // Create a table element with class \"ilj-statistic-table-links display\"\n var table = document.createElement('table');\n table.className = 'ilj-statistic-table-links display';\n\n // Create the table header (thead) with table row (tr) and table headers (th)\n var thead = document.createElement('thead');\n var header_row = document.createElement('tr');\n\n // Loop through the localized header_titles and create table headers\n header_titles.forEach(titleText => {\n var th = document.createElement('th');\n if (titleText === 'Type') {\n th.className = 'type';\n }\n th.textContent = titleText;\n header_row.appendChild(th);\n });\n thead.appendChild(header_row);\n\n // Create the table body (tbody)\n var tbody = document.createElement('tbody');\n\n // Combine the elements to build the final structure\n table.appendChild(thead);\n table.appendChild(tbody);\n\n // Now you can use this \"table\" element as needed, for example, appending it to a parent element in the DOM\n var parentElement = document.getElementById('statistic-links'); // Replace with the actual parent element's ID\n // Check if the parent element exists before attempting to append the table\n if (parentElement) {\n parentElement.appendChild(table);\n }\n }\n function load_statistics_chunk(start_count) {\n jQuery.ajax({\n type: 'POST',\n url: ajaxurl,\n // WordPress AJAX URL\n data: {\n action: 'load_statistics_chunk',\n nonce: ilj_dashboard.nonce,\n start_count: start_count,\n chunk_size: chunk_size\n },\n success: function (response) {\n // Append the HTML chunk to your table\n if ('null' != response) {\n link_statistics_table_data += response;\n }\n\n // Update the start_count for the next chunk\n start_count += chunk_size;\n // If there's more data, load the next chunk\n if ('null' != response) {\n load_statistics_chunk(start_count);\n } else {\n render_link_statistics_table();\n }\n },\n error: function (error) {\n console.log('Error loading statistics: ', error);\n }\n });\n }\n function render_link_statistics_table() {\n create_link_statistics_table();\n var $table = jQuery('.ilj-statistic-table-links');\n jQuery('.ilj-statistic-table-links tbody').append(link_statistics_table_data);\n $tabnav.show();\n $('#statistic-links').html($table);\n\n /**\n * Render the statistics table\n */\n $table.DataTable({\n stateSave: false,\n columnDefs: [{\n orderable: false,\n targets: 5\n }, {\n responsivePriority: 1,\n targets: 0\n }, {\n responsivePriority: 2,\n targets: 3\n }, {\n responsivePriority: 3,\n targets: 4\n }, {\n responsivePriority: 4,\n targets: 5\n }],\n language: dataTables_language,\n stateLoaded: function (settings, data) {\n $table.find('.tip').iljtipso(tipsoConfig);\n },\n initComplete: function () {\n var type_filter = get_type_filter($table);\n $('#statistic-links .dataTables_wrapper .dataTables_filter').append(type_filter);\n },\n responsive: true\n });\n $table.find('.tip').iljtipso(tipsoConfig);\n\n /**\n * Open detailed statistics\n */\n $table.on('click', '.ilj-statistic-detail', function () {\n $('.ilj-statistic-cover').show();\n var id = $(this).data('id');\n var type = $(this).data('type');\n var direction = $(this).data('direction');\n var headline = '';\n var link_count = 0;\n var title = $(this).closest('tr').find('td.asset-title').text();\n if (direction == 'to') {\n headline = ilj_statistic_translation.incoming_links;\n link_count = $(this).closest('a[data-direction=\"to\"]').text();\n } else if (direction == 'from') {\n headline = ilj_statistic_translation.outgoing_links;\n link_count = $(this).closest('a[data-direction=\"from\"]').text();\n }\n var data = {\n 'action': 'ilj_render_link_detail_statistic',\n 'id': id,\n 'type': type,\n 'direction': direction\n };\n $.ajax({\n url: ajaxurl,\n type: 'POST',\n data: data\n }).done(function (data) {\n (0,components_ilj_modal__WEBPACK_IMPORTED_MODULE_0__.iljCreateModal)(headline + ' \"' + title + '\" (' + link_count + ')', $('<div/>').addClass('ilj-statistic').html(data));\n $('.ilj-statistic-cover').hide();\n });\n });\n }\n function create_link_anchor_statistics_table() {\n // Create a table element\n var table = document.createElement('table');\n table.className = 'ilj-statistic-table-anchors display';\n\n // Create the table header (thead) element\n var thead = document.createElement('thead');\n var headerRow = document.createElement('tr');\n\n // Create table header cells and add text content from localized data\n if ('undefined' !== typeof headerLabels) {\n headerLabels.forEach(function (labelText) {\n var th = document.createElement('th');\n th.textContent = labelText;\n headerRow.appendChild(th);\n });\n }\n thead.appendChild(headerRow);\n\n // Create the table body (tbody) element\n var tbody = document.createElement('tbody');\n\n // Append the header and body to the table\n table.appendChild(thead);\n table.appendChild(tbody);\n\n // Append the table to a specific element in the DOM\n var targetElement = document.getElementById('statistic-anchors');\n // Check if the parent element exists before attempting to append the table\n if (targetElement) {\n targetElement.appendChild(table);\n }\n }\n function load_anchor_statistics_chunk(start_count) {\n jQuery.ajax({\n type: 'POST',\n url: ajaxurl,\n // WordPress AJAX URL\n data: {\n action: 'load_anchor_statistics_chunk',\n nonce: ilj_dashboard.nonce,\n start_count: start_count,\n chunk_size: chunk_size\n },\n success: function (response) {\n // Append the HTML chunk to your table\n if ('null' != response) {\n anchor_statistics_table_data += response;\n }\n\n // Update the start_count for the next chunk\n start_count += chunk_size;\n // If there's more data, load the next chunk\n if ('null' != response) {\n load_anchor_statistics_chunk(start_count);\n } else {\n render_link_anchor_statistics_table();\n }\n },\n error: function (error) {\n console.log('Error loading statistics: ', error);\n }\n });\n }\n function render_link_anchor_statistics_table() {\n create_link_anchor_statistics_table();\n var $table = jQuery('.ilj-statistic-table-anchors');\n jQuery('.ilj-statistic-table-anchors tbody').append(anchor_statistics_table_data);\n $('#statistic-anchors').html($table);\n\n /**\n * Render the anchor statistics table\n */\n $table.DataTable({\n stateSave: false,\n language: dataTables_language,\n stateLoaded: function (settings, data) {\n $table.find('.tip').iljtipso(tipsoConfig);\n },\n columnDefs: [{\n responsivePriority: 1,\n targets: 0\n }, {\n responsivePriority: 2,\n targets: 3\n }, {\n responsivePriority: 3,\n targets: 2\n }, {\n responsivePriority: 4,\n targets: 1\n }],\n responsive: true\n });\n /**\n * Open detailed statistics\n */\n $table.on('click', '.ilj-statistic-detail', function () {\n $('.ilj-statistic-cover').show();\n var anchor = $(this).data('anchor');\n var link_count = $(this).text();\n var data = {\n 'action': 'ilj_render_anchor_detail_statistic',\n 'anchor': anchor\n };\n $.ajax({\n url: ajaxurl,\n type: 'POST',\n data: data\n }).done(function (data) {\n (0,components_ilj_modal__WEBPACK_IMPORTED_MODULE_0__.iljCreateModal)(ilj_statistic_translation.anchor_text + ' \"' + anchor + '\" (' + link_count + ')', $('<div/>').addClass('ilj-statistic').html(data));\n $('.ilj-statistic-cover').hide();\n });\n });\n }\n\n // Initial call to load the first chunk of data for link statistics table\n load_statistics_chunk(0);\n // Initial call to load the first chunk of data for anchor statistics table\n load_anchor_statistics_chunk(0);\n });\n\n /**\n * Hide type filter if open\n */\n $(document).on('mouseup', function (e) {\n var $wrapper = $('.ilj-type-filter-wrapper');\n if (!$wrapper.is(e.target) && $wrapper.has(e.target).length === 0) {\n $wrapper.removeClass('show');\n }\n });\n})(jQuery);\n})();\n\n"],"names":["__webpack_modules__","__unused_webpack_module","__webpack_exports__","__webpack_require__","iljCreateModal","title","content","modal","jQuery","addClass","modal_wrapper","append","header","text","body","html","footer","on","e","closeModal","removeClass","css","overflowY","setTimeout","remove","bind","r","d","__webpack_module_cache__","moduleId","cachedModule","undefined","exports","module","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","components_ilj_modal__WEBPACK_IMPORTED_MODULE_0__","$","fn","ilj_tabnav","container","this","find","siblings","data","tipsoConfig","width","maxWidth","useTitle","delay","speed","background","color","size","dataTables_language","aria","sortAscending","ilj_statistic_translation","datatables_aria_sortAscending","sortDescending","datatables_aria_sortDescending","paginate","first","datatables_paginate_first","last","datatables_paginate_last","next","datatables_paginate_next","previous","datatables_paginate_previous","emptyTable","datatables_empty_table","info","datatables_info","infoEmpty","datatables_info_empty","infoFiltered","datatables_info_filtered","lengthMenu","datatables_length_menu","loadingRecords","datatables_loading_records","processing","datatables_processing","search","datatables_search","zeroRecords","datatables_zero_records","link_statistics_table_data","anchor_statistics_table_data","chunk_size","document","ready","$warningTip","length","tipsoWarningConfig","extend","assign","tooltipHover","iljtipso","get_type_filter","$table","available_types","types","dataTable","api","rows","every","index","row","$inner","display","type_main","attr","type_sub","push","each","property","filter","x","i","a","indexOf","get_available_types","$wrapper","$container","$dropdown_link","filter_type","toggleClass","activeTypes","target","splice","element","label","slug","filter_section_posts_pages","filter_section_taxonomies","filter_section_custom_links","get_main_type_label","$elem","$sub_container","subindex","subelement","$sub_elem_toggle","type","checked","type_column","column","type_search","join","draw","$sub_elem_inner","$sub_elem","prepend","$tabnav","load_statistics_chunk","start_count","ajax","url","ajaxurl","action","nonce","ilj_dashboard","success","response","table","createElement","className","thead","header_row","header_titles","forEach","titleText","th","textContent","appendChild","tbody","parentElement","getElementById","create_link_statistics_table","show","DataTable","stateSave","columnDefs","orderable","targets","responsivePriority","language","stateLoaded","settings","initComplete","type_filter","responsive","id","direction","headline","link_count","closest","incoming_links","outgoing_links","done","hide","render_link_statistics_table","error","console","log","load_anchor_statistics_chunk","headerRow","headerLabels","labelText","targetElement","create_link_anchor_statistics_table","anchor","anchor_text","render_link_anchor_statistics_table","is","has"],"sourceRoot":""}