hooks.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  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 = 351);
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ 17:
  90. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  91. "use strict";
  92. // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
  93. function _arrayWithoutHoles(arr) {
  94. if (Array.isArray(arr)) {
  95. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
  96. arr2[i] = arr[i];
  97. }
  98. return arr2;
  99. }
  100. }
  101. // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
  102. var iterableToArray = __webpack_require__(30);
  103. // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
  104. function _nonIterableSpread() {
  105. throw new TypeError("Invalid attempt to spread non-iterable instance");
  106. }
  107. // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
  108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toConsumableArray; });
  109. function _toConsumableArray(arr) {
  110. return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || _nonIterableSpread();
  111. }
  112. /***/ }),
  113. /***/ 30:
  114. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  115. "use strict";
  116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
  117. function _iterableToArray(iter) {
  118. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  119. }
  120. /***/ }),
  121. /***/ 351:
  122. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  123. "use strict";
  124. __webpack_require__.r(__webpack_exports__);
  125. // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/validateNamespace.js
  126. /**
  127. * Validate a namespace string.
  128. *
  129. * @param {string} namespace The namespace to validate - should take the form
  130. * `vendor/plugin/function`.
  131. *
  132. * @return {boolean} Whether the namespace is valid.
  133. */
  134. function validateNamespace(namespace) {
  135. if ('string' !== typeof namespace || '' === namespace) {
  136. // eslint-disable-next-line no-console
  137. console.error('The namespace must be a non-empty string.');
  138. return false;
  139. }
  140. if (!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(namespace)) {
  141. // eslint-disable-next-line no-console
  142. console.error('The namespace can only contain numbers, letters, dashes, periods, underscores and slashes.');
  143. return false;
  144. }
  145. return true;
  146. }
  147. /* harmony default export */ var build_module_validateNamespace = (validateNamespace);
  148. // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/validateHookName.js
  149. /**
  150. * Validate a hookName string.
  151. *
  152. * @param {string} hookName The hook name to validate. Should be a non empty string containing
  153. * only numbers, letters, dashes, periods and underscores. Also,
  154. * the hook name cannot begin with `__`.
  155. *
  156. * @return {boolean} Whether the hook name is valid.
  157. */
  158. function validateHookName(hookName) {
  159. if ('string' !== typeof hookName || '' === hookName) {
  160. // eslint-disable-next-line no-console
  161. console.error('The hook name must be a non-empty string.');
  162. return false;
  163. }
  164. if (/^__/.test(hookName)) {
  165. // eslint-disable-next-line no-console
  166. console.error('The hook name cannot begin with `__`.');
  167. return false;
  168. }
  169. if (!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(hookName)) {
  170. // eslint-disable-next-line no-console
  171. console.error('The hook name can only contain numbers, letters, dashes, periods and underscores.');
  172. return false;
  173. }
  174. return true;
  175. }
  176. /* harmony default export */ var build_module_validateHookName = (validateHookName);
  177. // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createAddHook.js
  178. /**
  179. * Internal dependencies
  180. */
  181. /**
  182. * Returns a function which, when invoked, will add a hook.
  183. *
  184. * @param {Object} hooks Stored hooks, keyed by hook name.
  185. *
  186. * @return {Function} Function that adds a new hook.
  187. */
  188. function createAddHook(hooks) {
  189. /**
  190. * Adds the hook to the appropriate hooks container.
  191. *
  192. * @param {string} hookName Name of hook to add
  193. * @param {string} namespace The unique namespace identifying the callback in the form `vendor/plugin/function`.
  194. * @param {Function} callback Function to call when the hook is run
  195. * @param {?number} priority Priority of this hook (default=10)
  196. */
  197. return function addHook(hookName, namespace, callback) {
  198. var priority = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 10;
  199. if (!build_module_validateHookName(hookName)) {
  200. return;
  201. }
  202. if (!build_module_validateNamespace(namespace)) {
  203. return;
  204. }
  205. if ('function' !== typeof callback) {
  206. // eslint-disable-next-line no-console
  207. console.error('The hook callback must be a function.');
  208. return;
  209. } // Validate numeric priority
  210. if ('number' !== typeof priority) {
  211. // eslint-disable-next-line no-console
  212. console.error('If specified, the hook priority must be a number.');
  213. return;
  214. }
  215. var handler = {
  216. callback: callback,
  217. priority: priority,
  218. namespace: namespace
  219. };
  220. if (hooks[hookName]) {
  221. // Find the correct insert index of the new hook.
  222. var handlers = hooks[hookName].handlers;
  223. var i;
  224. for (i = handlers.length; i > 0; i--) {
  225. if (priority >= handlers[i - 1].priority) {
  226. break;
  227. }
  228. }
  229. if (i === handlers.length) {
  230. // If append, operate via direct assignment.
  231. handlers[i] = handler;
  232. } else {
  233. // Otherwise, insert before index via splice.
  234. handlers.splice(i, 0, handler);
  235. } // We may also be currently executing this hook. If the callback
  236. // we're adding would come after the current callback, there's no
  237. // problem; otherwise we need to increase the execution index of
  238. // any other runs by 1 to account for the added element.
  239. (hooks.__current || []).forEach(function (hookInfo) {
  240. if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {
  241. hookInfo.currentIndex++;
  242. }
  243. });
  244. } else {
  245. // This is the first hook of its type.
  246. hooks[hookName] = {
  247. handlers: [handler],
  248. runs: 0
  249. };
  250. }
  251. if (hookName !== 'hookAdded') {
  252. doAction('hookAdded', hookName, namespace, callback, priority);
  253. }
  254. };
  255. }
  256. /* harmony default export */ var build_module_createAddHook = (createAddHook);
  257. // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createRemoveHook.js
  258. /**
  259. * Internal dependencies
  260. */
  261. /**
  262. * Returns a function which, when invoked, will remove a specified hook or all
  263. * hooks by the given name.
  264. *
  265. * @param {Object} hooks Stored hooks, keyed by hook name.
  266. * @param {boolean} removeAll Whether to remove all callbacks for a hookName, without regard to namespace. Used to create `removeAll*` functions.
  267. *
  268. * @return {Function} Function that removes hooks.
  269. */
  270. function createRemoveHook(hooks, removeAll) {
  271. /**
  272. * Removes the specified callback (or all callbacks) from the hook with a
  273. * given hookName and namespace.
  274. *
  275. * @param {string} hookName The name of the hook to modify.
  276. * @param {string} namespace The unique namespace identifying the callback in the form `vendor/plugin/function`.
  277. *
  278. * @return {number} The number of callbacks removed.
  279. */
  280. return function removeHook(hookName, namespace) {
  281. if (!build_module_validateHookName(hookName)) {
  282. return;
  283. }
  284. if (!removeAll && !build_module_validateNamespace(namespace)) {
  285. return;
  286. } // Bail if no hooks exist by this name
  287. if (!hooks[hookName]) {
  288. return 0;
  289. }
  290. var handlersRemoved = 0;
  291. if (removeAll) {
  292. handlersRemoved = hooks[hookName].handlers.length;
  293. hooks[hookName] = {
  294. runs: hooks[hookName].runs,
  295. handlers: []
  296. };
  297. } else {
  298. // Try to find the specified callback to remove.
  299. var handlers = hooks[hookName].handlers;
  300. var _loop = function _loop(i) {
  301. if (handlers[i].namespace === namespace) {
  302. handlers.splice(i, 1);
  303. handlersRemoved++; // This callback may also be part of a hook that is
  304. // currently executing. If the callback we're removing
  305. // comes after the current callback, there's no problem;
  306. // otherwise we need to decrease the execution index of any
  307. // other runs by 1 to account for the removed element.
  308. (hooks.__current || []).forEach(function (hookInfo) {
  309. if (hookInfo.name === hookName && hookInfo.currentIndex >= i) {
  310. hookInfo.currentIndex--;
  311. }
  312. });
  313. }
  314. };
  315. for (var i = handlers.length - 1; i >= 0; i--) {
  316. _loop(i);
  317. }
  318. }
  319. if (hookName !== 'hookRemoved') {
  320. doAction('hookRemoved', hookName, namespace);
  321. }
  322. return handlersRemoved;
  323. };
  324. }
  325. /* harmony default export */ var build_module_createRemoveHook = (createRemoveHook);
  326. // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createHasHook.js
  327. /**
  328. * Returns a function which, when invoked, will return whether any handlers are
  329. * attached to a particular hook.
  330. *
  331. * @param {Object} hooks Stored hooks, keyed by hook name.
  332. *
  333. * @return {Function} Function that returns whether any handlers are
  334. * attached to a particular hook and optional namespace.
  335. */
  336. function createHasHook(hooks) {
  337. /**
  338. * Returns whether any handlers are attached for the given hookName and optional namespace.
  339. *
  340. * @param {string} hookName The name of the hook to check for.
  341. * @param {?string} namespace Optional. The unique namespace identifying the callback
  342. * in the form `vendor/plugin/function`.
  343. *
  344. * @return {boolean} Whether there are handlers that are attached to the given hook.
  345. */
  346. return function hasHook(hookName, namespace) {
  347. // Use the namespace if provided.
  348. if ('undefined' !== typeof namespace) {
  349. return hookName in hooks && hooks[hookName].handlers.some(function (hook) {
  350. return hook.namespace === namespace;
  351. });
  352. }
  353. return hookName in hooks;
  354. };
  355. }
  356. /* harmony default export */ var build_module_createHasHook = (createHasHook);
  357. // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
  358. var toConsumableArray = __webpack_require__(17);
  359. // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createRunHook.js
  360. /**
  361. * Returns a function which, when invoked, will execute all callbacks
  362. * registered to a hook of the specified type, optionally returning the final
  363. * value of the call chain.
  364. *
  365. * @param {Object} hooks Stored hooks, keyed by hook name.
  366. * @param {?boolean} returnFirstArg Whether each hook callback is expected to
  367. * return its first argument.
  368. *
  369. * @return {Function} Function that runs hook callbacks.
  370. */
  371. function createRunHook(hooks, returnFirstArg) {
  372. /**
  373. * Runs all callbacks for the specified hook.
  374. *
  375. * @param {string} hookName The name of the hook to run.
  376. * @param {...*} args Arguments to pass to the hook callbacks.
  377. *
  378. * @return {*} Return value of runner, if applicable.
  379. */
  380. return function runHooks(hookName) {
  381. if (!hooks[hookName]) {
  382. hooks[hookName] = {
  383. handlers: [],
  384. runs: 0
  385. };
  386. }
  387. hooks[hookName].runs++;
  388. var handlers = hooks[hookName].handlers; // The following code is stripped from production builds.
  389. if (false) {}
  390. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  391. args[_key - 1] = arguments[_key];
  392. }
  393. if (!handlers || !handlers.length) {
  394. return returnFirstArg ? args[0] : undefined;
  395. }
  396. var hookInfo = {
  397. name: hookName,
  398. currentIndex: 0
  399. };
  400. hooks.__current.push(hookInfo);
  401. while (hookInfo.currentIndex < handlers.length) {
  402. var handler = handlers[hookInfo.currentIndex];
  403. var result = handler.callback.apply(null, args);
  404. if (returnFirstArg) {
  405. args[0] = result;
  406. }
  407. hookInfo.currentIndex++;
  408. }
  409. hooks.__current.pop();
  410. if (returnFirstArg) {
  411. return args[0];
  412. }
  413. };
  414. }
  415. /* harmony default export */ var build_module_createRunHook = (createRunHook);
  416. // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createCurrentHook.js
  417. /**
  418. * Returns a function which, when invoked, will return the name of the
  419. * currently running hook, or `null` if no hook of the given type is currently
  420. * running.
  421. *
  422. * @param {Object} hooks Stored hooks, keyed by hook name.
  423. *
  424. * @return {Function} Function that returns the current hook.
  425. */
  426. function createCurrentHook(hooks) {
  427. /**
  428. * Returns the name of the currently running hook, or `null` if no hook of
  429. * the given type is currently running.
  430. *
  431. * @return {?string} The name of the currently running hook, or
  432. * `null` if no hook is currently running.
  433. */
  434. return function currentHook() {
  435. if (!hooks.__current || !hooks.__current.length) {
  436. return null;
  437. }
  438. return hooks.__current[hooks.__current.length - 1].name;
  439. };
  440. }
  441. /* harmony default export */ var build_module_createCurrentHook = (createCurrentHook);
  442. // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createDoingHook.js
  443. /**
  444. * Returns a function which, when invoked, will return whether a hook is
  445. * currently being executed.
  446. *
  447. * @param {Object} hooks Stored hooks, keyed by hook name.
  448. *
  449. * @return {Function} Function that returns whether a hook is currently
  450. * being executed.
  451. */
  452. function createDoingHook(hooks) {
  453. /**
  454. * Returns whether a hook is currently being executed.
  455. *
  456. * @param {?string} hookName The name of the hook to check for. If
  457. * omitted, will check for any hook being executed.
  458. *
  459. * @return {boolean} Whether the hook is being executed.
  460. */
  461. return function doingHook(hookName) {
  462. // If the hookName was not passed, check for any current hook.
  463. if ('undefined' === typeof hookName) {
  464. return 'undefined' !== typeof hooks.__current[0];
  465. } // Return the __current hook.
  466. return hooks.__current[0] ? hookName === hooks.__current[0].name : false;
  467. };
  468. }
  469. /* harmony default export */ var build_module_createDoingHook = (createDoingHook);
  470. // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createDidHook.js
  471. /**
  472. * Internal dependencies
  473. */
  474. /**
  475. * Returns a function which, when invoked, will return the number of times a
  476. * hook has been called.
  477. *
  478. * @param {Object} hooks Stored hooks, keyed by hook name.
  479. *
  480. * @return {Function} Function that returns a hook's call count.
  481. */
  482. function createDidHook(hooks) {
  483. /**
  484. * Returns the number of times an action has been fired.
  485. *
  486. * @param {string} hookName The hook name to check.
  487. *
  488. * @return {number} The number of times the hook has run.
  489. */
  490. return function didHook(hookName) {
  491. if (!build_module_validateHookName(hookName)) {
  492. return;
  493. }
  494. return hooks[hookName] && hooks[hookName].runs ? hooks[hookName].runs : 0;
  495. };
  496. }
  497. /* harmony default export */ var build_module_createDidHook = (createDidHook);
  498. // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/createHooks.js
  499. /**
  500. * Internal dependencies
  501. */
  502. /**
  503. * Returns an instance of the hooks object.
  504. *
  505. * @return {Object} Object that contains all hooks.
  506. */
  507. function createHooks() {
  508. var actions = Object.create(null);
  509. var filters = Object.create(null);
  510. actions.__current = [];
  511. filters.__current = [];
  512. return {
  513. addAction: build_module_createAddHook(actions),
  514. addFilter: build_module_createAddHook(filters),
  515. removeAction: build_module_createRemoveHook(actions),
  516. removeFilter: build_module_createRemoveHook(filters),
  517. hasAction: build_module_createHasHook(actions),
  518. hasFilter: build_module_createHasHook(filters),
  519. removeAllActions: build_module_createRemoveHook(actions, true),
  520. removeAllFilters: build_module_createRemoveHook(filters, true),
  521. doAction: build_module_createRunHook(actions),
  522. applyFilters: build_module_createRunHook(filters, true),
  523. currentAction: build_module_createCurrentHook(actions),
  524. currentFilter: build_module_createCurrentHook(filters),
  525. doingAction: build_module_createDoingHook(actions),
  526. doingFilter: build_module_createDoingHook(filters),
  527. didAction: build_module_createDidHook(actions),
  528. didFilter: build_module_createDidHook(filters),
  529. actions: actions,
  530. filters: filters
  531. };
  532. }
  533. /* harmony default export */ var build_module_createHooks = (createHooks);
  534. // CONCATENATED MODULE: ./node_modules/@wordpress/hooks/build-module/index.js
  535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addAction", function() { return addAction; });
  536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addFilter", function() { return addFilter; });
  537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAction", function() { return removeAction; });
  538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeFilter", function() { return removeFilter; });
  539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasAction", function() { return hasAction; });
  540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasFilter", function() { return hasFilter; });
  541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAllActions", function() { return removeAllActions; });
  542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeAllFilters", function() { return removeAllFilters; });
  543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doAction", function() { return doAction; });
  544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applyFilters", function() { return applyFilters; });
  545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "currentAction", function() { return currentAction; });
  546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "currentFilter", function() { return currentFilter; });
  547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doingAction", function() { return doingAction; });
  548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doingFilter", function() { return doingFilter; });
  549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "didAction", function() { return didAction; });
  550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "didFilter", function() { return didFilter; });
  551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "actions", function() { return build_module_actions; });
  552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filters", function() { return build_module_filters; });
  553. /* concated harmony reexport createHooks */__webpack_require__.d(__webpack_exports__, "createHooks", function() { return build_module_createHooks; });
  554. /**
  555. * Internal dependencies
  556. */
  557. var _createHooks = build_module_createHooks(),
  558. addAction = _createHooks.addAction,
  559. addFilter = _createHooks.addFilter,
  560. removeAction = _createHooks.removeAction,
  561. removeFilter = _createHooks.removeFilter,
  562. hasAction = _createHooks.hasAction,
  563. hasFilter = _createHooks.hasFilter,
  564. removeAllActions = _createHooks.removeAllActions,
  565. removeAllFilters = _createHooks.removeAllFilters,
  566. doAction = _createHooks.doAction,
  567. applyFilters = _createHooks.applyFilters,
  568. currentAction = _createHooks.currentAction,
  569. currentFilter = _createHooks.currentFilter,
  570. doingAction = _createHooks.doingAction,
  571. doingFilter = _createHooks.doingFilter,
  572. didAction = _createHooks.didAction,
  573. didFilter = _createHooks.didFilter,
  574. build_module_actions = _createHooks.actions,
  575. build_module_filters = _createHooks.filters;
  576. /***/ })
  577. /******/ });