HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/testingff/public_html/fdfctr/wp-content/plugins/directorist/assets/js/all-authors.js
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 5);
/******/ })
/************************************************************************/
/******/ ({

/***/ "./assets/src/js/public/components/author.js":
/*!***************************************************!*\
  !*** ./assets/src/js/public/components/author.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

// author sorting
(function ($) {
  window.addEventListener('DOMContentLoaded', function () {
    /* Masonry layout */
    function authorsMasonry() {
      var authorsCard = $('.directorist-authors__cards');
      $(authorsCard).each(function (id, elm) {
        var authorsCardRow = $(elm).find('.directorist-row');
        var authorMasonryInit = $(authorsCardRow).imagesLoaded(function () {
          $(authorMasonryInit).masonry({
            percentPosition: true,
            horizontalOrder: true
          });
        });
      });
    }

    authorsMasonry();
    /* alphabet data value */

    var alphabetValue;
    /* authors nav default active item */

    if ($('.directorist-authors__nav').length) {
      $('.directorist-authors__nav ul li:first-child').addClass('active');
    }
    /* authors nav item */


    $('body').on('click', '.directorist-alphabet', function (e) {
      e.preventDefault();

      var _this = $(this);

      var alphabet = $(this).attr("data-alphabet");
      $('body').addClass('atbdp-form-fade');
      $.ajax({
        method: 'POST',
        url: directorist.ajaxurl,
        data: {
          action: 'directorist_author_alpha_sorting',
          _nonce: $(this).attr("data-nonce"),
          alphabet: $(this).attr("data-alphabet")
        },
        success: function success(response) {
          $('#directorist-all-authors').empty().append(response);
          $('body').removeClass('atbdp-form-fade');
          $('.' + alphabet).parent().addClass('active');
          alphabetValue = $(_this).attr('data-alphabet');
          authorsMasonry();
        },
        error: function error(_error) {
          console.log(_error);
        }
      });
    });
    /* authors pagination */

    $('body').on('click', '.directorist-authors-pagination a', function (e) {
      e.preventDefault();
      var paged = $(this).attr('href');
      paged = paged.split('/page/')[1];
      paged = parseInt(paged);
      paged = paged !== undefined ? paged : 1;
      $('body').addClass('atbdp-form-fade');
      var getAlphabetValue = alphabetValue;
      $.ajax({
        method: 'POST',
        url: directorist.ajaxurl,
        data: {
          action: 'directorist_author_pagination',
          paged: paged
        },
        success: function success(response) {
          $('body').removeClass('atbdp-form-fade');
          $('#directorist-all-authors').empty().append(response);
          authorsMasonry();

          if (document.querySelector('.' + getAlphabetValue) !== null) {
            document.querySelector('.' + getAlphabetValue).closest('li').classList.add('active');
          } else if ($('.directorist-authors__nav').length) {
            $('.directorist-authors__nav ul li:first-child').addClass('active');
          }

          ;
        },
        error: function error(_error2) {
          console.log(_error2);
        }
      });
    });
  });
})(jQuery);

/***/ }),

/***/ "./assets/src/js/public/modules/all-authors.js":
/*!*****************************************************!*\
  !*** ./assets/src/js/public/modules/all-authors.js ***!
  \*****************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _components_author__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/author */ "./assets/src/js/public/components/author.js");
/* harmony import */ var _components_author__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_components_author__WEBPACK_IMPORTED_MODULE_0__);
//General Components


/***/ }),

/***/ 5:
/*!***********************************************************!*\
  !*** multi ./assets/src/js/public/modules/all-authors.js ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! ./assets/src/js/public/modules/all-authors.js */"./assets/src/js/public/modules/all-authors.js");


/***/ })

/******/ });
//# sourceMappingURL=all-authors.js.map