2 lines
7.5 KiB
JavaScript
2 lines
7.5 KiB
JavaScript
/*! This file is auto-generated */
|
|
this.wp=this.wp||{},this.wp.hooks=function(e){var r={};function n(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)n.d(t,o,function(r){return e[r]}.bind(null,o));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s="./node_modules/@wordpress/hooks/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,r,n){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}n.d(r,"a",(function(){return t}))},"./node_modules/@babel/runtime/helpers/esm/classCallCheck.js":function(e,r,n){"use strict";function t(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}n.d(r,"a",(function(){return t}))},"./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":function(e,r,n){"use strict";function t(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(r,"a",(function(){return t}))},"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":function(e,r,n){"use strict";n.d(r,"a",(function(){return s}));var t=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");var o=n("./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),i=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");function s(e){return function(e){if(Array.isArray(e))return Object(t.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||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.")}()}},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,r,n){"use strict";n.d(r,"a",(function(){return o}));var t=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function o(e,r){if(e){if("string"==typeof e)return Object(t.a)(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(t.a)(e,r):void 0}}},"./node_modules/@wordpress/hooks/build-module/index.js":function(e,r,n){"use strict";n.r(r),n.d(r,"createHooks",(function(){return m})),n.d(r,"addAction",(function(){return b})),n.d(r,"addFilter",(function(){return v})),n.d(r,"removeAction",(function(){return y})),n.d(r,"removeFilter",(function(){return A})),n.d(r,"hasAction",(function(){return _})),n.d(r,"hasFilter",(function(){return g})),n.d(r,"removeAllActions",(function(){return j})),n.d(r,"removeAllFilters",(function(){return F})),n.d(r,"doAction",(function(){return k})),n.d(r,"applyFilters",(function(){return O})),n.d(r,"currentAction",(function(){return T})),n.d(r,"currentFilter",(function(){return x})),n.d(r,"doingAction",(function(){return w})),n.d(r,"doingFilter",(function(){return I})),n.d(r,"didAction",(function(){return S})),n.d(r,"didFilter",(function(){return C})),n.d(r,"actions",(function(){return M})),n.d(r,"filters",(function(){return P}));var t=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");var o=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var i=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var s=function(e,r){return function(n,t,s){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=e[r];if(i(n)&&o(t))if("function"==typeof s)if("number"==typeof u){var c={callback:s,priority:u,namespace:t};if(a[n]){var l,d=a[n].handlers;for(l=d.length;l>0&&!(u>=d[l-1].priority);l--);l===d.length?d[l]=c:d.splice(l,0,c),a.__current.forEach((function(e){e.name===n&&e.currentIndex>=l&&e.currentIndex++}))}else a[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,t,s,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var u=function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t,s){var u=e[r];if(i(t)&&(n||o(s))){if(!u[t])return 0;var a=0;if(n)a=u[t].handlers.length,u[t]={runs:u[t].runs,handlers:[]};else for(var c=u[t].handlers,l=function(e){c[e].namespace===s&&(c.splice(e,1),a++,u.__current.forEach((function(r){r.name===t&&r.currentIndex>=e&&r.currentIndex--})))},d=c.length-1;d>=0;d--)l(d);return"hookRemoved"!==t&&e.doAction("hookRemoved",t,s),a}}};var a=function(e,r){return function(n,t){var o=e[r];return void 0!==t?n in o&&o[n].handlers.some((function(e){return e.namespace===t})):n in o}};n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");var c=function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t){var o=e[r];o[t]||(o[t]={handlers:[],runs:0}),o[t].runs++;var i=o[t].handlers;for(var s=arguments.length,u=new Array(s>1?s-1:0),a=1;a<s;a++)u[a-1]=arguments[a];if(!i||!i.length)return n?u[0]:void 0;var c={name:t,currentIndex:0};for(o.__current.push(c);c.currentIndex<i.length;){var l=i[c.currentIndex],d=l.callback.apply(null,u);n&&(u[0]=d),c.currentIndex++}return o.__current.pop(),n?u[0]:void 0}};var l=function(e,r){return function(){var n,t,o=e[r];return null!==(n=null===(t=o.__current[o.__current.length-1])||void 0===t?void 0:t.name)&&void 0!==n?n:null}};var d=function(e,r){return function(n){var t=e[r];return void 0===n?void 0!==t.__current[0]:!!t.__current[0]&&n===t.__current[0].name}};var f=function(e,r){return function(n){var t=e[r];if(i(n))return t[n]&&t[n].runs?t[n].runs:0}},h=function e(){Object(t.a)(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=s(this,"actions"),this.addFilter=s(this,"filters"),this.removeAction=u(this,"actions"),this.removeFilter=u(this,"filters"),this.hasAction=a(this,"actions"),this.hasFilter=a(this,"filters"),this.removeAllActions=u(this,"actions",!0),this.removeAllFilters=u(this,"filters",!0),this.doAction=c(this,"actions"),this.applyFilters=c(this,"filters",!0),this.currentAction=l(this,"actions"),this.currentFilter=l(this,"filters"),this.doingAction=d(this,"actions"),this.doingFilter=d(this,"filters"),this.didAction=f(this,"actions"),this.didFilter=f(this,"filters")};var m=function(){return new h},p=m(),b=p.addAction,v=p.addFilter,y=p.removeAction,A=p.removeFilter,_=p.hasAction,g=p.hasFilter,j=p.removeAllActions,F=p.removeAllFilters,k=p.doAction,O=p.applyFilters,T=p.currentAction,x=p.currentFilter,w=p.doingAction,I=p.doingFilter,S=p.didAction,C=p.didFilter,M=p.actions,P=p.filters}}); |