WordPress/wp-includes/js/dist/hooks.min.js

2 lines
6.8 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.hooks=function(n){var t={};function r(e){if(t[e])return t[e].exports;var i=t[e]={i:e,l:!1,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)r.d(e,i,function(t){return n[t]}.bind(null,i));return e},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=467)}({15:function(n,t,r){"use strict";r.d(t,"a",(function(){return c}));var e=r(24);var i=r(37),o=r(31);function c(n){return function(n){if(Array.isArray(n))return Object(e.a)(n)}(n)||Object(i.a)(n)||Object(o.a)(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},24:function(n,t,r){"use strict";function e(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=new Array(t);r<t;r++)e[r]=n[r];return e}r.d(t,"a",(function(){return e}))},25:function(n,t,r){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return e}))},31:function(n,t,r){"use strict";r.d(t,"a",(function(){return i}));var e=r(24);function i(n,t){if(n){if("string"==typeof n)return Object(e.a)(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(e.a)(n,t):void 0}}},37:function(n,t,r){"use strict";function e(n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}r.d(t,"a",(function(){return e}))},467:function(n,t,r){"use strict";r.r(t),r.d(t,"createHooks",(function(){return v})),r.d(t,"addAction",(function(){return m})),r.d(t,"addFilter",(function(){return A})),r.d(t,"removeAction",(function(){return b})),r.d(t,"removeFilter",(function(){return y})),r.d(t,"hasAction",(function(){return _})),r.d(t,"hasFilter",(function(){return g})),r.d(t,"removeAllActions",(function(){return F})),r.d(t,"removeAllFilters",(function(){return j})),r.d(t,"doAction",(function(){return O})),r.d(t,"applyFilters",(function(){return k})),r.d(t,"currentAction",(function(){return x})),r.d(t,"currentFilter",(function(){return w})),r.d(t,"doingAction",(function(){return I})),r.d(t,"doingFilter",(function(){return S})),r.d(t,"didAction",(function(){return T})),r.d(t,"didFilter",(function(){return M})),r.d(t,"actions",(function(){return P})),r.d(t,"filters",(function(){return z}));var e=r(25);var i=function(n){return"string"!=typeof n||""===n?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(n)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var o=function(n){return"string"!=typeof n||""===n?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(n)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(n)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var c=function(n,t){return function(r,e,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,s=n[t];if(o(r)&&i(e))if("function"==typeof c)if("number"==typeof u){var a={callback:c,priority:u,namespace:e};if(s[r]){var l,f=s[r].handlers;for(l=f.length;l>0&&!(u>=f[l-1].priority);l--);l===f.length?f[l]=a:f.splice(l,0,a),s.__current.forEach((function(n){n.name===r&&n.currentIndex>