PageSourceSearch

https://www.wakefieldhockeyclub.co.uk/_next/static/chunks/2670.98a3dfe1e466cdc3.js

js wakefieldhockeyclub.co.uk collected 2026-09-25 01:24:33 UTC 13,635 bytes, 4 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7dc1478a-bc72-5d8d-9919-903989489ee0")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2670],{82670:(e,t,i)=>{i.r(t),i.d(t,{default:()=>M});var s=i(94389),n=i(82851),o=i(14232);function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function p(e){return null==e?[]:Array.isArray(e)?e.slice():[e]}function l(e){return null!==e&&1===e.length?e[0]:e.slice()}function u(e){Object.keys(e).forEach(t=>{"undefined"!=typeof document&&document.addEventListener(t,e[t],!1)})}function h(e,t){let i;return c(((i=e)<=t.min&&(i=t.min),i>=t.max&&(i=t.max),i),t)}function c(e,t){let i=(e-t.min)%t.step,s=e-i;return 2*Math.abs(i)>=t.step&&(s+=i>0?t.step:-t.step),parseFloat(s.toFixed(5))}let d=function(e){function t(t){var i;(i=e.call(this,t)||this).onKeyUp=()=>{i.onEnd()},i.onMouseUp=()=>{i.onEnd(i.getMouseEventMap())},i.onTouchEnd=e=>{e.preventDefault(),i.onEnd(i.getTouchEventMap())},i.onBlur=()=>{i.setState({index:-1},i.onEnd(i.getKeyDownEventMap()))},i.onMouseMove=e=>{i.setState({pending:!0});let t=i.getMousePosition(e),s=i.getDiffPosition(t[0]),n=i.getValueFromPosition(s);i.move(n)},i.onTouchMove=e=>{if(e.touches.length>1)return;i.setState({pending:!0});let t=i.getTouchPosition(e);if(void 0===i.isScrolling){let e=t[0]-i.startPosition[0],s=t[1]-i.startPosition[1];i.isScrolling=Math.abs(s)>Math.abs(e)}if(i.isScrolling)return void i.setState({index:-1});let s=i.getDiffPosition(t[0]),n=i.getValueFromPosition(s);i.move(n)},i.onKeyDown=e=>{if(!(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey))switch(i.setState({pending:!0}),e.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":e.preventDefault(),i.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":e.preventDefault(),i.moveUpByStep();break;case"Home":e.preventDefault(),i.move(i.props.min);break;case"End":e.preventDefault(),i.move(i.props.max);break;case"PageDown":e.preventDefault(),i.moveDownByStep(i.props.pageFn(i.props.step));break;case"PageUp":e.preventDefault(),i.moveUpByStep(i.props.pageFn(i.props.step))}},i.onSliderMouseDown=e=>{if(!i.props.disabled&&2!==e.button){if(i.setState({pending:!0}),!i.props.snapDragDisabled){let t=i.getMousePosition(e);i.forceValueFromPosition(t[0],e=>{i.start(e,t[0]),u(i.getMouseEventMap())})}a(e)}},i.onSliderClick=e=>{if(!i.props.disabled&&i.props.onSliderClick&&!i.hasMoved){let t=i.getMousePosition(e),s=h(i.calcValue(i.calcOffsetFromPosition(t[0])),i.props);i.props.onSliderClick(s)}},i.createOnKeyDown=e=>t=>{i.props.disabled||(i.start(e),u(i.getKeyDownEventMap()),a(t))},i.createOnMouseDown=e=>t=>{if(i.props.disabled||2===t.button)return;i.setState({pending:!0});let s=i.getMousePosition(t);i.start(e,s[0]),u(i.getMouseEventMap()),a(t)},i.createOnTouchStart=e=>t=>{if(i.props.disabled||t.touches.length>1)return;i.setState({pending:!0});let s=i.getTouchPosition(t);i.startPosition=s,i.isScrolling=void 0,i.start(e,s[0]),u(i.getTouchEventMap()),t.stopPropagation&&t.stopPropagation()},i.handleResize=()=>{let e=window.setTimeout(()=>{i.pendingResizeTimeouts.shift(),i.resize()},0);i.pendingResizeTimeouts.push(e)},i.renderThumb=(e,t)=>{let s=i.props.thumbClassName+" "+i.props.thumbClassName+"-"+t+" "+(i.state.index===t?i.props.thumbActiveClassName:""),n={ref:e=>{i["thumb"+t]=e},key:i.props.thumbClassName+"-"+t,className:s,style:e,onMouseDown:i.createOnMouseDown(t),onTouchStart:i.createOnTouchStart(t),onFocus:i.createOnKeyDown(t),tabIndex:0,role:"slider","aria-orientation":i.props.orientation,"aria-valuenow":i.state.value[t],"aria-valuemin":i.props.min,"aria-valuemax":i.props.max,"aria-label":Array.isArray(i.props.ariaLabel)?i.props.ariaLabel[t]:i.props.ariaLabel,"aria-labelledby":Array.isArray(i.props.ariaLabelledby)?i.props.ariaLabelledby[t]:i.props.ariaLabelledby,"aria-disabled":i.props.disabled},o={index:t,value:l(i.state.value),valueNow:i.state.value[t]};return i.props.ariaValuetext&&(n["aria-valuetext"]="string"==typeof i.props.ariaValuetext?i.props.ariaValuetext:i.props.ariaValuetext(o)),i.props.renderThumb(n,o)},i.renderTrack=(e,t,s)=>{let n={key:i.props.trackClassName+"-"+e,className:i.props.trackClassName+" "+i.props.trackClassName+"-"+e,style:i.buildTrackStyle(t,i.state.upperBound-s)},o={index:e,value:l(i.state.value)};return i.props.renderTrack(n,o)};let s=p(t.value);s.length||(s=p(t.defaultValue)),i.pendingResizeTimeouts=[];let n=[];for(let e=0;e<s.length;e+=1)s[e]=h(s[e],t),n.push(e);return i.resizeObserver=null,i.resizeElementRef=o.createRef(),i.state={index:-1,upperBound:0,sliderLength:0,value:s,zIndices:n},i}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e);var i=t.prototype;return i.componentDidMount=function(){"undefined"!=typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(e,t){let i=p(e.value);return i.length?t.pending?null:{value:i.map(t=>h(t,e))}:null},i.componentDidUpdate=function(){0===this.state.upperBound&&this.resize()},i.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},i.onEnd=function(e){e&&Object.keys(e).forEach(t=>{"undefined"!=typeof document&&document.removeEventListener(t,e[t],!1)}),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pen
3ding:!1}),this.hasMoved=!1},i.getValue=function(){return l(this.state.value)},i.getClosestIndex=function(e){let t=Number.MAX_VALUE,i=-1,{value:s}=this.state,n=s.length;for(let o=0;o<n;o+=1){let n=Math.abs(e-this.calcOffset(s[o]));n<t&&(t=n,i=o)}return i},i.getMousePosition=function(e){return[e["page"+this.axisKey()],e["page"+this.orthogonalAxisKey()]]},i.getTouchPosition=function(e){let t=e.touches[0];return[t["page"+this.axisKey()],t["page"+this.orthogonalAxisKey()]]},i.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},i.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},i.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},i.getValueFromPosition=function(e){let t=e/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return h(this.state.startValue+t,this.props)},i.getDiffPosition=function(e){let t=e-this.state.startPosition;return this.props.invert&&(t*=-1),t},i.resize=function(){let{slider:e,thumb0:t}=this;if(!e||!t)return;let i=this.sizeKey(),s=e.getBoundingClientRect(),n=e[i],o=s[this.posMaxKey()],r=s[this.posMinKey()],a=t.getBoundingClientRect()[i.replace("client","").toLowerCase()],p=n-a,l=Math.abs(o-r);this.state.upperBound===p&&this.state.sliderLength===l&&this.state.thumbSize===a||this.setState({upperBound:p,sliderLength:l,thumbSize:a})},i.calcOffset=function(e){let t=this.props.max-this.props.min;return 0===t?0:(e-this.props.min)/t*this.state.upperBound},i.calcValue=function(e){return e/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},i.calcOffsetFromPosition=function(e){let{slider:t}=this,i=t.getBoundingClientRect(),s=i[this.posMaxKey()],n=i[this.posMinKey()],o=e-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?s:n));return this.props.invert&&(o=this.state.sliderLength-o),o-=this.state.thumbSize/2},i.forceValueFromPosition=function(e,t){let i=this.calcOffsetFromPosition(e),s=this.getClosestIndex(i),n=h(this.calcValue(i),this.props),o=this.state.value.slice();o[s]=n;for(let e=0;e<o.length-1;e+=1)if(o[e+1]-o[e]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:o},()=>{t(s),this.fireChangeEvent("onChange")})},i.clearPendingResizeTimeouts=function(){do clearTimeout(this.pendingResizeTimeouts.shift());while(this.pendingResizeTimeouts.length)},i.start=function(e,t){let i=this["thumb"+e];i&&i.focus();let{zIndices:s}=this.state;s.splice(s.indexOf(e),1),s.push(e),this.setState(i=>({startValue:i.value[e],startPosition:void 0!==t?t:i.startPosition,index:e,zIndices:s}))},i.moveUpByStep=function(e){void 0===e&&(e=this.props.step);let t=this.state.value[this.state.index],i=h(this.props.invert&&"horizontal"===this.props.orientation?t-e:t+e,this.props);
3this.move(Math.min(i,this.props.max))},i.moveDownByStep=function(e){void 0===e&&(e=this.props.step);let t=this.state.value[this.state.index],i=h(this.props.invert&&"horizontal"===this.props.orientation?t+e:t-e,this.props);this.move(Math.max(i,this.props.min))},i.move=function(e){let t=this.state.value.slice(),{index:i}=this.state,{length:s}=t,n=t[i];if(e===n)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;let{pearling:o,max:r,min:a,minDistance:p}=this.props;if(!o){if(i>0){let s=t[i-1];e<s+p&&(e=s+p)}if(i<s-1){let s=t[i+1];e>s-p&&(e=s-p)}}t[i]=e,o&&s>1&&(e>n?(this.pushSucceeding(t,p,i),function(e,t,i,s){for(let n=0;n<e;n+=1){let o=s-n*i;t[e-1-n]>o&&(t[e-1-n]=o)}}(s,t,p,r)):e<n&&(this.pushPreceding(t,p,i),function(e,t,i,s){for(let n=0;n<e;n+=1){let e=s+n*i;t[n]<e&&(t[n]=e)}}(s,t,p,a))),this.setState({value:t},this.fireChangeEvent.bind(this,"onChange"))},i.pushSucceeding=function(e,t,i){let s,n;for(n=e[s=i]+t;null!==e[s+1]&&n>e[s+1];s+=1,n=e[s]+t)e[s+1]=c(n,this.props)},i.pushPreceding=function(e,t,i){for(let s=i,n=e[s]-t;null!==e[s-1]&&n<e[s-1];s-=1,n=e[s]-t)e[s-1]=c(n,this.props)},i.axisKey=function(){return"vertical"===this.props.orientation?"Y":"X"},i.orthogonalAxisKey=function(){return"vertical"===this.props.orientation?"X":"Y"},i.posMinKey=function(){return"vertical"===this.props.orientation?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},i.posMaxKey=function(){return"vertical"===this.props.orientation?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},i.sizeKey=function(){return"vertical"===this.props.orientation?"clientHeight":"clientWidth"},i.fireChangeEvent=function(e){this.props[e]&&this.props[e](l(this.state.value),this.state.index)},i.buildThumbStyle=function(e,t){let i={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(t)+1};return i[this.posMinKey()]=e+"px",i},i.buildTrackStyle=function(e,t){let i={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return i[this.posMinKey()]=e,i[this.posMaxKey()]=t,i},i.buildMarkStyle=function(e){var t;return(t={position:"absolute"})[this.posMinKey()]=e,t},i.renderThumbs=function(e){let{length:t}=e,i=[];for(let s=0;s<t;s+=1)i[s]=this.buildThumbStyle(e[s],s);let s=[];for(let e=0;e<t;e+=1)s[e]=this.renderThumb(i[e],e);return s},i.renderTracks=function(e){let t=[],i=e.length-1;t.push(this.renderTrack(0,0,e[0]));for(let s=0;s<i;s+=1)t.push(this.renderTrack(s+1,e[s],e[s+1]));return t.push(this.renderTrack(i+1,e[i],this.state.upperBound)),t},i.renderMarks=function(){let{marks:e}=this.props,t=this.props.max-this.props.min+1;return"boolean"==typeof e?e=Array.from({length:t}).map((e,t)=>t):"number"==typeof e&&(e=Array.from({length:t}).map((e,t)=>t).filter(t=>t%e==0)),e.map(parseFloat).sort((e,t)=>e-t).map(e=>{let t=this.calcOffset(e),i={key:e,className:this.props.markClassName,style:this.buildMarkStyle(t)};return this.props.renderMark(i)})},i.render=function(){let e=[],{value:t}=this.state,i=t.length;for(let s=0;s<i;s+=1)e[s]=this.calcOffset(t[s],s);let s=this.props.withTracks?this.renderTracks(e):null,n=this.renderThumbs(e),r=this.props.marks?this.renderMarks():null;return o.createElement("div",{ref:e=>{this.slider=e,this.resizeElementRef.current=e},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},s,n,r)},t}(o.Component);d.displayName="ReactSlider",d.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>o.createElement("div",e),renderTrack:e=>o.createElement("div",e),renderMark:e=>o.createElement("span",e)};var f=i(98292);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}).apply(null,arguments)}let g=f.default.div.withConfig({displayName:"slider__SliderRoot",componentId:"sc-7qnhl0-0"})(["& > div{height:50px;margin:auto;}"]),v=f.default.div.withConfig({displayName:"slider__SliderThumb",componentId:"sc-7qnhl0-1"})(["cursor:pointer;position:absolute;z-index:100;width:90px;height:12px;background:",";border-radius:4px;border:1px solid white;outline:none;"],e=>e.color),b=f.default.div.withConfig({displayName:"slider__SliderTrack",componentId:"sc-7qnhl0-2"})(["position:relative;background-color:rgba(255,255,255,0.3);height:2px;top:5px;"]),y=({value:e,min:t,max:i,onChange:s,uiTheme:r})=>{let a=(0,n.get)(r,"colors.primary","#fff");return o.createElement(g,null,o.createElement(d,{min:t,max:i,onChange:s,value:e,renderThumb:e=>o.createElement(v,m({color:a},e)),renderTrack:e=>o.createElement(b,e)}))};y.defaultProps={uiTheme:{}};let M=(0,s.A)(y)}}]);
4//# debugId=7dc1478a-bc72-5d8d-9919-903989489ee0

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.