PageSourceSearch

https://www.finsbury-shoes.com/cdn/shop/t/3/assets/__vite-main.dc0bf298.js

js finsbury-shoes.com collected 2026-09-26 12:52:01 UTC 3,281 bytes, 1 lines download raw bytes

1function h(e){this.listenerMap=[{},{}],e&&this.root(e),this.handle=h.prototype.handle.bind(this),this._removedListeners=[]}h.prototype.root=function(e){const t=this.listenerMap;let i;if(this.rootElement){for(i in t[1])t[1].hasOwnProperty(i)&&this.rootElement.removeEventListener(i,this.handle,!0);for(i in t[0])t[0].hasOwnProperty(i)&&this.rootElement.removeEventListener(i,this.handle,!1)}if(!e||!e.addEventListener)return this.rootElement&&delete this.rootElement,this;this.rootElement=e;for(i in t[1])t[1].hasOwnProperty(i)&&this.rootElement.addEventListener(i,this.handle,!0);for(i in t[0])t[0].hasOwnProperty(i)&&this.rootElement.addEventListener(i,this.handle,!1);return this};h.prototype.captureForType=function(e){return["blur","error","focus","load","resize","scroll"].indexOf(e)!==-1};h.prototype.on=function(e,t,i,r){let f,l,o,s;if(!e)throw new TypeError("Invalid event type: "+e);if(typeof t=="function"&&(r=i,i=t,t=null),r===void 0&&(r=this.captureForType(e)),typeof i!="function")throw new TypeError("Handler must be a type of Function");return f=this.rootElement,l=this.listenerMap[r?1:0],l[e]||(f&&f.addEventListener(e,this.handle,r),l[e]=[]),t?/^[a-z]+$/i.test(t)?(s=t,o=m):/^#[a-z0-9\-_]+$/i.test(t)?(s=t.slice(1),o=E):(s=t,o=Element.prototype.matches):(s=null,o=c.bind(this)),l[e].push({selector:t,handler:i,matcher:o,matcherParam:s}),this};h.prototype.off=function(e,t,i,r){let f,l,o,s,a;if(typeof t=="function"&&(r=i,i=t,t=null),r===void 0)return this.off(e,t,i,!0),this.off(e,t,i,!1),this;if(o=this.listenerMap[r?1:0],!e){for(a in o)o.hasOwnProperty(a)&&this.off(a,t,i);return this}if(s=o[e],!s||!s.length)return this;for(f=s.length-1;f>=0;f--)l=s[f],(!t||t===l.selector)&&(!i||i===l.handler)&&(this._removedListeners.push(l),s.splice(f,1));return s.length||(delete o[e],this.rootElement&&this.rootElement.removeEventListener(e,this.handle,r)),this};h.prototype.handle=function(e){let t,i;const r=e.type;let f,l,o,s,a=[],n;const u="ftLabsDelegateIgnore";if(e[u]===!0)return;switch(n=e.target,n.nodeType===3&&(n=n.parentNode),n.correspondingUseElement&&(n=n.correspondingUseElement),f=this.rootElement,l=e.eventPhase||(e.target!==e.currentTarget?3:2),l){case 1:a=this.listenerMap[1][r];break;case 2:this.listenerMap[0]&&this.listenerMap[0][r]&&(a=a.concat(this.listenerMap[0][r])),this.listenerMap[1]&&this.listenerMap[1][r]&&(a=a.concat(this.listenerMap[1][r]));break;case 3:a=this.listenerMap[0][r];break}let p=[];for(i=a.length;n&&i;){for(t=0;t<i&&(o=a[t],!!o);t++)n.tagName&&["button","input","select","textarea"].indexOf(n.tagName.toLowerCase())>-1&&n.hasAttribute("disabled")?p=[]:o.matcher.call(n,o.matcherParam,n)&&p.push([e,n,o]);if(n===f||(i=a.length,n=n.parentElement||n.parentNode,n instanceof HTMLDocument))break}let d;for(t=0;t<p.length;t++)if(!(this._removedListeners.indexOf(p[t][2])>-1)&&(s=this.fire.apply(this,p[t]),s===!1)){p[t][0][u]=!0,p[t][0].preventDefault(),d=!1;break}return d};h.prototype.fire=function(e,t,i){return i.handler.call(t,e,t)};function m(e,t){return e.toLowerCase()===t.tagName.toLowerCase()}function c(e,t){return this.rootElement===window?t===document||t===document.documentElement||t===window:this.rootElement===t}function E(e,t){return e===t.id}h.prototype.destroy=function(){this.off(),this.root()};export{h as D};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.