[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/wp-includes/js/dist/ -> hooks.js (source)

   1  this["wp"] = this["wp"] || {}; this["wp"]["hooks"] =
   2  /******/ (function(modules) { // webpackBootstrap
   3  /******/     // The module cache
   4  /******/     var installedModules = {};
   5  /******/
   6  /******/     // The require function
   7  /******/ 	function __webpack_require__(moduleId) {
   8  /******/
   9  /******/         // Check if module is in cache
  10  /******/         if(installedModules[moduleId]) {
  11  /******/             return installedModules[moduleId].exports;
  12  /******/         }
  13  /******/         // Create a new module (and put it into the cache)
  14  /******/         var module = installedModules[moduleId] = {
  15  /******/             i: moduleId,
  16  /******/             l: false,
  17  /******/             exports: {}
  18  /******/         };
  19  /******/
  20  /******/         // Execute the module function
  21  /******/         modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22  /******/
  23  /******/         // Flag the module as loaded
  24  /******/         module.l = true;
  25  /******/
  26  /******/         // Return the exports of the module
  27  /******/         return module.exports;
  28  /******/     }
  29  /******/
  30  /******/
  31  /******/     // expose the modules object (__webpack_modules__)
  32  /******/     __webpack_require__.m = modules;
  33  /******/
  34  /******/     // expose the module cache
  35  /******/     __webpack_require__.c = installedModules;
  36  /******/
  37  /******/     // define getter function for harmony exports
  38  /******/     __webpack_require__.d = function(exports, name, getter) {
  39  /******/         if(!__webpack_require__.o(exports, name)) {
  40  /******/             Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41  /******/         }
  42  /******/     };
  43  /******/
  44  /******/     // define __esModule on exports
  45  /******/     __webpack_require__.r = function(exports) {
  46  /******/         if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47  /******/             Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48  /******/         }
  49  /******/         Object.defineProperty(exports, '__esModule', { value: true });
  50  /******/     };
  51  /******/
  52  /******/     // create a fake namespace object
  53  /******/     // mode & 1: value is a module id, require it
  54  /******/     // mode & 2: merge all properties of value into the ns
  55  /******/     // mode & 4: return value when already ns object
  56  /******/     // mode & 8|1: behave like require
  57  /******/     __webpack_require__.t = function(value, mode) {
  58  /******/         if(mode & 1) value = __webpack_require__(value);
  59  /******/         if(mode & 8) return value;
  60  /******/         if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61  /******/         var ns = Object.create(null);
  62  /******/         __webpack_require__.r(ns);
  63  /******/         Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64  /******/         if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65  /******/         return ns;
  66  /******/     };
  67  /******/
  68  /******/     // getDefaultExport function for compatibility with non-harmony modules
  69  /******/     __webpack_require__.n = function(module) {
  70  /******/         var getter = module && module.__esModule ?
  71  /******/ 			function getDefault() { return module['default']; } :
  72  /******/ 			function getModuleExports() { return module; };
  73  /******/         __webpack_require__.d(getter, 'a', getter);
  74  /******/         return getter;
  75  /******/     };
  76  /******/
  77  /******/     // Object.prototype.hasOwnProperty.call
  78  /******/     __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79  /******/
  80  /******/     // __webpack_public_path__
  81  /******/     __webpack_require__.p = "";
  82  /******/
  83  /******/
  84  /******/     // Load entry module and return exports
  85  /******/     return __webpack_require__(__webpack_require__.s = 433);
  86  /******/ })
  87  /************************************************************************/
  88  /******/ ({
  89  
  90  /***/ 18:
  91  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92  
  93  "use strict";
  94  
  95  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
  96  var arrayLikeToArray = __webpack_require__(25);
  97  
  98  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
  99  
 100  function _arrayWithoutHoles(arr) {
 101    if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
 102  }
 103  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
 104  var iterableToArray = __webpack_require__(35);
 105  
 106  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
 107  var unsupportedIterableToArray = __webpack_require__(27);
 108  
 109  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
 110  function _nonIterableSpread() {
 111    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
 112  }
 113  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
 114  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; });
 115  
 116  
 117  
 118  
 119  function _toConsumableArray(arr) {
 120    return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread();
 121  }
 122  
 123  /***/ }),
 124  
 125  /***/ 25:
 126  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 127  
 128  "use strict";
 129  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
 130  function _arrayLikeToArray(arr, len) {
 131    if (len == null || len > arr.length) len = arr.length;
 132  
 133    for (var i = 0, arr2 = new Array(len); i < len; i++) {
 134      arr2[i] = arr[i];
 135    }
 136  
 137    return arr2;
 138  }
 139  
 140  /***/ }),
 141  
 142  /***/ 27:
 143  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 144  
 145  "use strict";
 146  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
 147  /* harmony import */ var _arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25);
 148  
 149  function _unsupportedIterableToArray(o, minLen) {
 150    if (!o) return;
 151    if (typeof o === "string") return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
 152    var n = Object.prototype.toString.call(o).slice(8, -1);
 153    if (n === "Object" && o.constructor) n = o.constructor.name;
 154    if (n === "Map" || n === "Set") return Array.from(n);
 155    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
 156  }
 157  
 158  /***/ }),
 159  
 160  /***/ 35:
 161  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 162  
 163  "use strict";
 164  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
 165  function _iterableToArray(iter) {
 166    if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
 167  }
 168  
 169  /***/ }),
 170  
 171  /***/ 433:
 172  /***/ (function(module, __webpack_exports__, __webpack_require__) {
 173  
 174  "use strict";
 175  __webpack_require__.r(__webpack_exports__);
 176  
 177  // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/validateNamespace.js
 178  /**
 179   * Validate a namespace string.
 180   *
 181   * @param  {string} namespace The namespace to validate - should take the form
 182   *                            `vendor/plugin/function`.
 183   *
 184   * @return {boolean}             Whether the namespace is valid.
 185   */
 186  function validateNamespace(namespace) {
 187    if ('string' !== typeof namespace || '' === namespace) {
 188      // eslint-disable-next-line no-console
 189      console.error('The namespace must be a non-empty string.');
 190      return false;
 191    }
 192  
 193    if (!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(namespace)) {
 194      // eslint-disable-next-line no-console
 195      console.error('The namespace can only contain numbers, letters, dashes, periods, underscores and slashes.');
 196      return false;
 197    }
 198  
 199    return true;
 200  }
 201  
 202  /* harmony default export */ var build_module_validateNamespace = (validateNamespace);
 203  
 204  // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/validateHookName.js
 205  /**
 206   * Validate a hookName string.
 207   *
 208   * @param  {string} hookName The hook name to validate. Should be a non empty string containing
 209   *                           only numbers, letters, dashes, periods and underscores. Also,
 210   *                           the hook name cannot begin with `__`.
 211   *
 212   * @return {boolean}            Whether the hook name is valid.
 213   */
 214  function validateHookName(hookName) {
 215    if ('string' !== typeof hookName || '' === hookName) {
 216      // eslint-disable-next-line no-console
 217      console.error('The hook name must be a non-empty string.');
 218      return false;
 219    }
 220  
 221    if (/^__/.test(hookName)) {
 222      // eslint-disable-next-line no-console
 223      console.error('The hook name cannot begin with `__`.');
 224      return false;
 225    }
 226  
 227    if (!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(hookName)) {
 228      // eslint-disable-next-line no-console
 229      console.error('The hook name can only contain numbers, letters, dashes, periods and underscores.');
 230      return false;
 231    }
 232  
 233    return true;
 234  }
 235  
 236  /* harmony default export */ var build_module_validateHookName = (validateHookName);
 237  
 238  // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createAddHook.js
 239  /**
 240   * Internal dependencies
 241   */
 242  
 243  
 244  
 245  /**
 246   * Returns a function which, when invoked, will add a hook.
 247   *
 248   * @param  {Object}   hooks Stored hooks, keyed by hook name.
 249   *
 250   * @return {Function}       Function that adds a new hook.
 251   */
 252  
 253  function createAddHook(hooks) {
 254    /**
 255     * Adds the hook to the appropriate hooks container.
 256     *
 257     * @param {string}   hookName  Name of hook to add
 258     * @param {string}   namespace The unique namespace identifying the callback in the form `vendor/plugin/function`.
 259     * @param {Function} callback  Function to call when the hook is run
 260     * @param {?number}  priority  Priority of this hook (default=10)
 261     */
 262    return function addHook(hookName, namespace, callback) {
 263      var priority = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 10;
 264  
 265      if (!build_module_validateHookName(hookName)) {
 266        return;
 267      }
 268  
 269      if (!build_module_validateNamespace(namespace)) {
 270        return;
 271      }
 272  
 273      if ('function' !== typeof callback) {
 274        // eslint-disable-next-line no-console
 275        console.error('The hook callback must be a function.');
 276        return;
 277      } // Validate numeric priority
 278  
 279  
 280      if ('number' !== typeof priority) {
 281        // eslint-disable-next-line no-console
 282        console.error('If specified, the hook priority must be a number.');
 283        return;
 284      }
 285  
 286      var handler = {
 287        callback: callback,
 288        priority: priority,
 289        namespace: namespace
 290      };
 291  
 292      if (hooks[hookName]) {
 293        // Find the correct insert index of the new hook.
 294        var handlers = hooks[hookName].handlers;
 295        var i;
 296  
 297        for (i = handlers.length; i > 0; i--) {
 298          if (priority >= handlers[i - 1].priority) {
 299            break;
 300          }
 301        }
 302  
 303        if (i === handlers.length) {
 304          // If append, operate via direct assignment.
 305          handlers[i] = handler;
 306        } else {
 307          // Otherwise, insert before index via splice.
 308          handlers.splice(i, 0, handler);
 309        } // We may also be currently executing this hook.  If the callback
 310        // we're adding would come after the current callback, there's no
 311        // problem; otherwise we need to increase the execution index of
 312        // any other runs by 1 to account for the added element.
 313  
 314  
 315        (hooks.__current || []).forEach(function (hookInfo) {
 316          if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {
 317            hookInfo.currentIndex++;
 318          }
 319        });
 320      } else {
 321        // This is the first hook of its type.
 322        hooks[hookName] = {
 323          handlers: [handler],
 324          runs: 0
 325        };
 326      }
 327  
 328      if (hookName !== 'hookAdded') {
 329        doAction('hookAdded', hookName, namespace, callback, priority);
 330      }
 331    };
 332  }
 333  
 334  /* harmony default export */ var build_module_createAddHook = (createAddHook);
 335  
 336  // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createRemoveHook.js
 337  /**
 338   * Internal dependencies
 339   */
 340  
 341  
 342  
 343  /**
 344   * Returns a function which, when invoked, will remove a specified hook or all
 345   * hooks by the given name.
 346   *
 347   * @param  {Object}   hooks      Stored hooks, keyed by hook name.
 348   * @param  {boolean}     removeAll  Whether to remove all callbacks for a hookName, without regard to namespace. Used to create `removeAll*` functions.
 349   *
 350   * @return {Function}            Function that removes hooks.
 351   */
 352  
 353  function createRemoveHook(hooks, removeAll) {
 354    /**
 355     * Removes the specified callback (or all callbacks) from the hook with a
 356     * given hookName and namespace.
 357     *
 358     * @param {string}    hookName  The name of the hook to modify.
 359     * @param {string}    namespace The unique namespace identifying the callback in the form `vendor/plugin/function`.
 360     *
 361     * @return {number}             The number of callbacks removed.
 362     */
 363    return function removeHook(hookName, namespace) {
 364      if (!build_module_validateHookName(hookName)) {
 365        return;
 366      }
 367  
 368      if (!removeAll && !build_module_validateNamespace(namespace)) {
 369        return;
 370      } // Bail if no hooks exist by this name
 371  
 372  
 373      if (!hooks[hookName]) {
 374        return 0;
 375      }
 376  
 377      var handlersRemoved = 0;
 378  
 379      if (removeAll) {
 380        handlersRemoved = hooks[hookName].handlers.length;
 381        hooks[hookName] = {
 382          runs: hooks[hookName].runs,
 383          handlers: []
 384        };
 385      } else {
 386        // Try to find the specified callback to remove.
 387        var handlers = hooks[hookName].handlers;
 388  
 389        var _loop = function _loop(i) {
 390          if (handlers[i].namespace === namespace) {
 391            handlers.splice(i, 1);
 392            handlersRemoved++; // This callback may also be part of a hook that is
 393            // currently executing.  If the callback we're removing
 394            // comes after the current callback, there's no problem;
 395            // otherwise we need to decrease the execution index of any
 396            // other runs by 1 to account for the removed element.
 397  
 398            (hooks.__current || []).forEach(function (hookInfo) {
 399              if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {
 400                hookInfo.currentIndex--;
 401              }
 402            });
 403          }
 404        };
 405  
 406        for (var i = handlers.length - 1; i >= 0; i--) {
 407          _loop(i);
 408        }
 409      }
 410  
 411      if (hookName !== 'hookRemoved') {
 412        doAction('hookRemoved', hookName, namespace);
 413      }
 414  
 415      return handlersRemoved;
 416    };
 417  }
 418  
 419  /* harmony default export */ var build_module_createRemoveHook = (createRemoveHook);
 420  
 421  // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createHasHook.js
 422  /**
 423   * Returns a function which, when invoked, will return whether any handlers are
 424   * attached to a particular hook.
 425   *
 426   * @param  {Object}   hooks Stored hooks, keyed by hook name.
 427   *
 428   * @return {Function}       Function that returns whether any handlers are
 429   *                          attached to a particular hook and optional namespace.
 430   */
 431  function createHasHook(hooks) {
 432    /**
 433     * Returns whether any handlers are attached for the given hookName and optional namespace.
 434     *
 435     * @param {string}  hookName  The name of the hook to check for.
 436     * @param {?string} namespace Optional. The unique namespace identifying the callback
 437     *                                      in the form `vendor/plugin/function`.
 438     *
 439     * @return {boolean} Whether there are handlers that are attached to the given hook.
 440     */
 441    return function hasHook(hookName, namespace) {
 442      // Use the namespace if provided.
 443      if ('undefined' !== typeof namespace) {
 444        return hookName in hooks && hooks[hookName].handlers.some(function (hook) {
 445          return hook.namespace === namespace;
 446        });
 447      }
 448  
 449      return hookName in hooks;
 450    };
 451  }
 452  
 453  /* harmony default export */ var build_module_createHasHook = (createHasHook);
 454  
 455  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
 456  var toConsumableArray = __webpack_require__(18);
 457  
 458  // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createRunHook.js
 459  
 460  
 461  /**
 462   * Returns a function which, when invoked, will execute all callbacks
 463   * registered to a hook of the specified type, optionally returning the final
 464   * value of the call chain.
 465   *
 466   * @param  {Object}   hooks          Stored hooks, keyed by hook name.
 467   * @param  {?boolean}    returnFirstArg Whether each hook callback is expected to
 468   *                                   return its first argument.
 469   *
 470   * @return {Function}                Function that runs hook callbacks.
 471   */
 472  function createRunHook(hooks, returnFirstArg) {
 473    /**
 474     * Runs all callbacks for the specified hook.
 475     *
 476     * @param  {string} hookName The name of the hook to run.
 477     * @param  {...*}   args     Arguments to pass to the hook callbacks.
 478     *
 479     * @return {*}               Return value of runner, if applicable.
 480     */
 481    return function runHooks(hookName) {
 482      if (!hooks[hookName]) {
 483        hooks[hookName] = {
 484          handlers: [],
 485          runs: 0
 486        };
 487      }
 488  
 489      hooks[hookName].runs++;
 490      var handlers = hooks[hookName].handlers; // The following code is stripped from production builds.
 491  
 492      if (false) {}
 493  
 494      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
 495        args[_key - 1] = arguments[_key];
 496      }
 497  
 498      if (!handlers || !handlers.length) {
 499        return returnFirstArg ? args[0] : undefined;
 500      }
 501  
 502      var hookInfo = {
 503        name: hookName,
 504        currentIndex: 0
 505      };
 506  
 507      hooks.__current.push(hookInfo);
 508  
 509      while (hookInfo.currentIndex < handlers.length) {
 510        var handler = handlers[hookInfo.currentIndex];
 511        var result = handler.callback.apply(null, args);
 512  
 513        if (returnFirstArg) {
 514          args[0] = result;
 515        }
 516  
 517        hookInfo.currentIndex++;
 518      }
 519  
 520      hooks.__current.pop();
 521  
 522      if (returnFirstArg) {
 523        return args[0];
 524      }
 525    };
 526  }
 527  
 528  /* harmony default export */ var build_module_createRunHook = (createRunHook);
 529  
 530  // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createCurrentHook.js
 531  /**
 532   * Returns a function which, when invoked, will return the name of the
 533   * currently running hook, or `null` if no hook of the given type is currently
 534   * running.
 535   *
 536   * @param  {Object}   hooks          Stored hooks, keyed by hook name.
 537   *
 538   * @return {Function}                Function that returns the current hook.
 539   */
 540  function createCurrentHook(hooks) {
 541    /**
 542     * Returns the name of the currently running hook, or `null` if no hook of
 543     * the given type is currently running.
 544     *
 545     * @return {?string}             The name of the currently running hook, or
 546     *                               `null` if no hook is currently running.
 547     */
 548    return function currentHook() {
 549      if (!hooks.__current || !hooks.__current.length) {
 550        return null;
 551      }
 552  
 553      return hooks.__current[hooks.__current.length - 1].name;
 554    };
 555  }
 556  
 557  /* harmony default export */ var build_module_createCurrentHook = (createCurrentHook);
 558  
 559  // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createDoingHook.js
 560  /**
 561   * Returns a function which, when invoked, will return whether a hook is
 562   * currently being executed.
 563   *
 564   * @param  {Object}   hooks Stored hooks, keyed by hook name.
 565   *
 566   * @return {Function}       Function that returns whether a hook is currently
 567   *                          being executed.
 568   */
 569  function createDoingHook(hooks) {
 570    /**
 571     * Returns whether a hook is currently being executed.
 572     *
 573     * @param  {?string} hookName The name of the hook to check for.  If
 574     *                            omitted, will check for any hook being executed.
 575     *
 576     * @return {boolean}             Whether the hook is being executed.
 577     */
 578    return function doingHook(hookName) {
 579      // If the hookName was not passed, check for any current hook.
 580      if ('undefined' === typeof hookName) {
 581        return 'undefined' !== typeof hooks.__current[0];
 582      } // Return the __current hook.
 583  
 584  
 585      return hooks.__current[0] ? hookName === hooks.__current[0].name : false;
 586    };
 587  }
 588  
 589  /* harmony default export */ var build_module_createDoingHook = (createDoingHook);
 590  
 591  // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createDidHook.js
 592  /**
 593   * Internal dependencies
 594   */
 595  
 596  /**
 597   * Returns a function which, when invoked, will return the number of times a
 598   * hook has been called.
 599   *
 600   * @param  {Object}   hooks Stored hooks, keyed by hook name.
 601   *
 602   * @return {Function}       Function that returns a hook's call count.
 603   */
 604  
 605  function createDidHook(hooks) {
 606    /**
 607     * Returns the number of times an action has been fired.
 608     *
 609     * @param  {string} hookName The hook name to check.
 610     *
 611     * @return {number}          The number of times the hook has run.
 612     */
 613    return function didHook(hookName) {
 614      if (!build_module_validateHookName(hookName)) {
 615        return;
 616      }
 617  
 618      return hooks[hookName] && hooks[hookName].runs ? hooks[hookName].runs : 0;
 619    };
 620  }
 621  
 622  /* harmony default export */ var build_module_createDidHook = (createDidHook);
 623  
 624  // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createHooks.js
 625  /**
 626   * Internal dependencies
 627   */
 628  
 629  
 630  
 631  
 632  
 633  
 634  
 635  /**
 636   * Returns an instance of the hooks object.
 637   *
 638   * @return {Object} Object that contains all hooks.
 639   */
 640  
 641  function createHooks() {
 642    var actions = Object.create(null);
 643    var filters = Object.create(null);
 644    actions.__current = [];
 645    filters.__current = [];
 646    return {
 647      addAction: build_module_createAddHook(actions),
 648      addFilter: build_module_createAddHook(filters),
 649      removeAction: build_module_createRemoveHook(actions),
 650      removeFilter: build_module_createRemoveHook(filters),
 651      hasAction: build_module_createHasHook(actions),
 652      hasFilter: build_module_createHasHook(filters),
 653      removeAllActions: build_module_createRemoveHook(actions, true),
 654      removeAllFilters: build_module_createRemoveHook(filters, true),
 655      doAction: build_module_createRunHook(actions),
 656      applyFilters: build_module_createRunHook(filters, true),
 657      currentAction: build_module_createCurrentHook(actions),
 658      currentFilter: build_module_createCurrentHook(filters),
 659      doingAction: build_module_createDoingHook(actions),
 660      doingFilter: build_module_createDoingHook(filters),
 661      didAction: build_module_createDidHook(actions),
 662      didFilter: build_module_createDidHook(filters),
 663      actions: actions,
 664      filters: filters
 665    };
 666  }
 667  
 668  /* harmony default export */ var build_module_createHooks = (createHooks);
 669  
 670  // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/index.js
 671  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addAction", function() { return addAction; });
 672  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addFilter", function() { return addFilter; });
 673  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAction", function() { return removeAction; });
 674  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeFilter", function() { return removeFilter; });
 675  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasAction", function() { return hasAction; });
 676  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasFilter", function() { return hasFilter; });
 677  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAllActions", function() { return removeAllActions; });
 678  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAllFilters", function() { return removeAllFilters; });
 679  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doAction", function() { return doAction; });
 680  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyFilters", function() { return applyFilters; });
 681  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "currentAction", function() { return currentAction; });
 682  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "currentFilter", function() { return currentFilter; });
 683  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doingAction", function() { return doingAction; });
 684  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doingFilter", function() { return doingFilter; });
 685  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "didAction", function() { return didAction; });
 686  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "didFilter", function() { return didFilter; });
 687  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "actions", function() { return build_module_actions; });
 688  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filters", function() { return build_module_filters; });
 689  /* concated harmony reexport createHooks */__webpack_require__.d(__webpack_exports__, "createHooks", function() { return build_module_createHooks; });
 690  /**
 691   * Internal dependencies
 692   */
 693  
 694  
 695  var _createHooks = build_module_createHooks(),
 696      addAction = _createHooks.addAction,
 697      addFilter = _createHooks.addFilter,
 698      removeAction = _createHooks.removeAction,
 699      removeFilter = _createHooks.removeFilter,
 700      hasAction = _createHooks.hasAction,
 701      hasFilter = _createHooks.hasFilter,
 702      removeAllActions = _createHooks.removeAllActions,
 703      removeAllFilters = _createHooks.removeAllFilters,
 704      doAction = _createHooks.doAction,
 705      applyFilters = _createHooks.applyFilters,
 706      currentAction = _createHooks.currentAction,
 707      currentFilter = _createHooks.currentFilter,
 708      doingAction = _createHooks.doingAction,
 709      doingFilter = _createHooks.doingFilter,
 710      didAction = _createHooks.didAction,
 711      didFilter = _createHooks.didFilter,
 712      build_module_actions = _createHooks.actions,
 713      build_module_filters = _createHooks.filters;
 714  
 715  
 716  
 717  
 718  /***/ })
 719  
 720  /******/ });


Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1