Files
mintel.me/cloned-websites/klz-cables_com/wp-content/cache/breeze-minification/js/breeze_contact-1-10375-js-dist-hooks.min.js
2026-02-01 00:07:10 +01:00

2 lines
6.0 KiB
JavaScript

<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*! This file is auto-generated */
(()=&gt;{var t={507:(t,e,r)=&gt;{"use strict";r.d(e,{A:()=&gt;A});var n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var i=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var o=function(t,e){return function(r,o,s,c=10){const l=t[e];if(!i(r))return;if(!n(o))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const a={callback:s,priority:c,namespace:o};if(l[r]){const t=l[r].handlers;let e;for(e=t.length;e&gt;0&amp;&amp;!(c&gt;=t[e-1].priority);e--);e===t.length?t[e]=a:t.splice(e,0,a),l.__current.forEach((t=&gt;{t.name===r&amp;&amp;t.currentIndex&gt;=e&amp;&amp;t.currentIndex++}))}else l[r]={handlers:[a],runs:0};"hookAdded"!==r&amp;&amp;t.doAction("hookAdded",r,o,s,c)}};var s=function(t,e,r=!1){return function(o,s){const c=t[e];if(!i(o))return;if(!r&amp;&amp;!n(s))return;if(!c[o])return 0;let l=0;if(r)l=c[o].handlers.length,c[o]={runs:c[o].runs,handlers:[]};else{const t=c[o].handlers;for(let e=t.length-1;e&gt;=0;e--)t[e].namespace===s&amp;&amp;(t.splice(e,1),l++,c.__current.forEach((t=&gt;{t.name===o&amp;&amp;t.currentIndex&gt;=e&amp;&amp;t.currentIndex--})))}return"hookRemoved"!==o&amp;&amp;t.doAction("hookRemoved",o,s),l}};var c=function(t,e){return function(r,n){const i=t[e];return void 0!==n?r in i&amp;&amp;i[r].handlers.some((t=&gt;t.namespace===n)):r in i}};var l=function(t,e,r,n){return function(i,...o){const s=t[e];s[i]||(s[i]={handlers:[],runs:0}),s[i].runs++;const c=s[i].handlers;if(!c||!c.length)return r?o[0]:void 0;const l={name:i,currentIndex:0};return(n?async function(){try{s.__current.add(l);let t=r?o[0]:void 0;for(;l.currentIndex&lt;c.length;){const e=c[l.currentIndex];t=await e.callback.apply(null,o),r&amp;&amp;(o[0]=t),l.currentIndex++}return r?t:void 0}finally{s.__current.delete(l)}}:function(){try{s.__current.add(l);let t=r?o[0]:void 0;for(;l.currentIndex&lt;c.length;){t=c[l.currentIndex].callback.apply(null,o),r&amp;&amp;(o[0]=t),l.currentIndex++}return r?t:void 0}finally{s.__current.delete(l)}})()}};var a=function(t,e){return function(){const r=t[e],n=Array.from(r.__current);return n.at(-1)?.name??null}};var d=function(t,e){return function(r){const n=t[e];return void 0===r?n.__current.size&gt;0:Array.from(n.__current).some((t=&gt;t.name===r))}};var u=function(t,e){return function(r){const n=t[e];if(i(r))return n[r]&amp;&amp;n[r].runs?n[r].runs:0}};class h{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=s(this,"actions"),this.removeFilter=s(this,"filters"),this.hasAction=c(this,"actions"),this.hasFilter=c(this,"filters"),this.removeAllActions=s(this,"actions",!0),this.removeAllFilters=s(this,"filters",!0),this.doAction=l(this,"actions",!1,!1),this.doActionAsync=l(this,"actions",!1,!0),this.applyFilters=l(this,"filters",!0,!1),this.applyFiltersAsync=l(this,"filters",!0,!0),this.currentAction=a(this,"actions"),this.currentFilter=a(this,"filters"),this.doingAction=d(this,"actions"),this.doingFilter=d(this,"filters"),this.didAction=u(this,"actions"),this.didFilter=u(this,"filters")}}var A=function(){return new h}},8770:()=&gt;{}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.n=t=&gt;{var e=t&amp;&amp;t.__esModule?()=&gt;t.default:()=&gt;t;return r.d(e,{a:e}),e},r.d=(t,e)=&gt;{for(var n in e)r.o(e,n)&amp;&amp;!r.o(t,n)&amp;&amp;Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=&gt;Object.prototype.hasOwnProperty.call(t,e),r.r=t=&gt;{"undefined"!=typeof Symbol&amp;&amp;Symbol.toStringTag&amp;&amp;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=&gt;{"use strict";r.r(n),r.d(n,{actions:()=&gt;x,addAction:()=&gt;s,addFilter:()=&gt;c,applyFilters:()=&gt;m,applyFiltersAsync:()=&gt;v,createHooks:()=&gt;t.A,currentAction:()=&gt;y,currentFilter:()=&gt;F,defaultHooks:()=&gt;o,didAction:()=&gt;b,didFilter:()=&gt;k,doAction:()=&gt;f,doActionAsync:()=&gt;p,doingAction:()=&gt;_,doingFilter:()=&gt;g,filters:()=&gt;w,hasAction:()=&gt;d,hasFilter:()=&gt;u,removeAction:()=&gt;l,removeAllActions:()=&gt;h,removeAllFilters:()=&gt;A,removeFilter:()=&gt;a});var t=r(507),e=r(8770),i={};for(const t in e)["default","actions","addAction","addFilter","applyFilters","applyFiltersAsync","createHooks","currentAction","currentFilter","defaultHooks","didAction","didFilter","doAction","doActionAsync","doingAction","doingFilter","filters","hasAction","hasFilter","removeAction","removeAllActions","removeAllFilters","removeFilter"].indexOf(t)&lt;0&amp;&amp;(i[t]=()=&gt;e[t]);r.d(n,i);const o=(0,t.A)(),{addAction:s,addFilter:c,removeAction:l,removeFilter:a,hasAction:d,hasFilter:u,removeAllActions:h,removeAllFilters:A,doAction:f,doActionAsync:p,applyFilters:m,applyFiltersAsync:v,currentAction:y,currentFilter:F,doingAction:_,doingFilter:g,didAction:b,didFilter:k,actions:x,filters:w}=o})(),(window.wp=window.wp||{}).hooks=n})();</pre></body></html>