<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2294],{28206:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sparq",function(){return a(55567)}])},18801:function(e,t,a){"use strict";a.d(t,{_:function(){return u}});var s=a(26042),l=a(99534),n=a(85893),i=a(67294),r=a(49102),c=a(45139),o=a(54601),d=(0,c.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),u=i.forwardRef((function(e,t){var a=e.className,i=(0,l.Z)(e,["className"]);return(0,n.jsx)(r.f,(0,s.Z)({ref:t,className:(0,o.cn)(d(),a)},i))}));u.displayName=r.f.displayName},76090:function(e,t,a){"use strict";a.d(t,{Bw:function(){return j},DI:function(){return f},Ph:function(){return x},Ql:function(){return b},i4:function(){return p},ki:function(){return h},n5:function(){return N}});var s=a(26042),l=a(69396),n=a(99534),i=a(85893),r=a(67294),c=a(95059),o=a(8971),d=a(84979),u=a(13742),m=a(54601),x=c.fC,f=c.ZA,h=c.B4,p=r.forwardRef((function(e,t){var a=e.className,r=e.children,d=(0,n.Z)(e,["className","children"]);return(0,i.jsxs)(c.xz,(0,l.Z)((0,s.Z)({ref:t,className:(0,m.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&amp;&gt;span]:line-clamp-1",a)},d),{children:[r,(0,i.jsx)(c.JO,{asChild:!0,children:(0,i.jsx)(o.Z,{className:"h-4 w-4 opacity-50"})})]}))}));p.displayName=c.xz.displayName;var v=r.forwardRef((function(e,t){var a=e.className,r=(0,n.Z)(e,["className"]);return(0,i.jsx)(c.u_,(0,l.Z)((0,s.Z)({ref:t,className:(0,m.cn)("flex cursor-default items-center justify-center py-1",a)},r),{children:(0,i.jsx)(d.Z,{className:"h-4 w-4"})}))}));v.displayName=c.u_.displayName;var g=r.forwardRef((function(e,t){var a=e.className,r=(0,n.Z)(e,["className"]);return(0,i.jsx)(c.$G,(0,l.Z)((0,s.Z)({ref:t,className:(0,m.cn)("flex cursor-default items-center justify-center py-1",a)},r),{children:(0,i.jsx)(o.Z,{className:"h-4 w-4"})}))}));g.displayName=c.$G.displayName;var j=r.forwardRef((function(e,t){var a=e.className,r=e.children,o=e.position,d=void 0===o?"popper":o,u=(0,n.Z)(e,["className","children","position"]);return(0,i.jsx)(c.h_,{children:(0,i.jsxs)(c.VY,(0,l.Z)((0,s.Z)({ref:t,className:(0,m.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===d&amp;&amp;"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:d},u),{children:[(0,i.jsx)(v,{}),(0,i.jsx)(c.l_,{className:(0,m.cn)("p-1","popper"===d&amp;&amp;"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,i.jsx)(g,{})]}))})}));j.displayName=c.VY.displayName;var N=r.forwardRef((function(e,t){var a=e.className,l=(0,n.Z)(e,["className"]);return(0,i.jsx)(c.__,(0,s.Z)({ref:t,className:(0,m.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a)},l))}));N.displayName=c.__.displayName;var b=r.forwardRef((function(e,t){var a=e.className,r=e.children,o=(0,n.Z)(e,["className","children"]);return(0,i.jsxs)(c.ck,(0,l.Z)((0,s.Z)({ref:t,className:(0,m.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a)},o),{children:[(0,i.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,i.jsx)(c.wU,{children:(0,i.jsx)(u.Z,{className:"h-4 w-4"})})}),(0,i.jsx)(c.eT,{children:r})]}))}));b.displayName=c.ck.displayName,r.forwardRef((function(e,t){var a=e.className,l=(0,n.Z)(e,["className"]);return(0,i.jsx)(c.Z0,(0,s.Z)({ref:t,className:(0,m.cn)("-mx-1 my-1 h-px bg-muted",a)},l))})).displayName=c.Z0.displayName},55567:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return b}});var s=a(47568),l=a(26042),n=a(69396),i=a(97582),r=a(85893),c=a(50078),o=a(56022),d=a(49712),u=a(70257),m=a(18801),x=a(41488),f=a(90332),h=(a(9008),a(67294)),p=(a(5152),a(76090)),v=[{value:0,label:"3kg Medicine Ball"},{value:1,label:"Reg. Basketball"},{value:2,label:"Reg. Soccerball"}],g=function(e){var t=e.className,a=e.style,s=e.value,l=e.onChange;return(0,r.jsxs)(p.Ph,{placeholder:"Select an option",className:t,style:a,value:s,onValueChange:l,children:[(0,r.jsx)(p.i4,{className:"w-full",children:(0,r.jsx)(p.ki,{})}),(0,r.jsx)(p.Bw,{children:v.map((function(e){return(0,r.jsx)(p.Ql,{value:e.value,selected:e.value===s,children:e.label},"option-".concat(e.value))}))})]})},j=function(){var e=(0,s.Z)((function(e,t,a,s,l,n,r){var c;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return[4,x.v6.post("/analytics/process/gSPARQ",{height:e,weight:t,sh:a,_40:s,vj:l,pb:n,pb_type:r})];case 1:return c=i.sent(),[2,null===c||void 0===c?void 0:c.sparq]}}))}));return function(t,a,s,l,n,i,r){return e.apply(this,arguments)}}(),N=function(){var e,t=(0,h.useState)({height:0,weight:0,sh:0,_40:0,vj:0,pb:0,pb_type:0}),a=t[0],c=t[1],x=(0,h.useState)(0),p=x[0],v=x[1],N=(0,h.useState)(!1),b=N[0],w=N[1],y=function(){var e=(0,s.Z)((function(){var e;return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return w(!0),[4,j(a.height,a.weight,a.sh,a._40,a.vj,a.pb,a.pb_type)];case 1:return e=t.sent(),window.scrollTo({top:0,behavior:"smooth"}),w(!1),v(e),[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,h.useEffect)((function(){v(0)}),[a]);var Z=a.height&amp;&amp;a.weight&amp;&amp;a.sh&amp;&amp;a._40&amp;&amp;a.vj&amp;&amp;a.pb;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"pt-8 pb-40",children:[(0,r.jsxs)("div",{className:"max-w-xl mx-auto",children:[(0,r.jsxs)("h1",{children:["SPARQ",(0,r.jsx)("sup",{className:"text-xl align-super",children:"\u24c7"})]}),(0,r.jsx)("h3",{className:"text-muted-foreground italic font-mono uppercase",children:"Calculate Your Rating"})]}),(0,r.jsx)("div",{className:"z-10 flex mt-8 justify-center",children:(0,r.jsxs)(d.Zb,{className:"p-6 max-w-xl w-full flex flex-col gap-8",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"bg-white p-4 shadow-inner border border-black rounded-lg rounded-b-none text-black font-black text-4xl text-center font-mono mb-0 duration-200",children:null===(e=parseFloat(p))||void 0===e?void 0:e.toFixed(2)}),(0,r.jsxs)("div",{className:"font-bold bg-black p-2 text-white rounded-b-lg uppercase flex justify-between items-center",children:[(0,r.jsxs)("div",{children:["SPARQ",(0,r.jsx)("sup",{className:"text-xs",children:"\u24c7"})," ATHLETICISM Rating"]}),(0,r.jsx)(o.z,{disabled:p&lt;=0,onClick:function(){c({height:0,weight:0,sh:0,_40:0,vj:0,pb:0}),v(0)},variant:"link",className:"text-white duration-150",children:"Clear"})]})]}),(0,r.jsxs)("div",{className:"mobile:flex items-center gap-4 justify-between mt-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(m._,{className:"text-xl font-black italic",children:"Height"}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground my-1 italic",children:"[20 - 96] INCHES"}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground my-1 max-w-sm",children:"Height in inches. The athlete's height is needed to classify them relative to their peers"})]}),(0,r.jsx)(u.II,{value:null===a||void 0===a?void 0:a.height,min:20,max:96,type:"number",className:"w-full max-w-[100px] text-lg font-bold italic font-mono",onChange:function(e){c((0,n.Z)((0,l.Z)({},a),{height:e.target.value}))}})]}),(0,r.jsxs)("div",{className:"mobile:flex items-center gap-4 justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(m._,{className:"text-xl font-black italic",children:"Body Weight"}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground my-1 italic",children:"[70 - 450] POUNDS"}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground my-1 max-w-sm",children:"Weight in lbs. The athlete's weight is needed to classify them relative to their peers"})]}),(0,r.jsx)(u.II,{value:null===a||void 0===a?void 0:a.weight,className:"w-full max-w-[100px] text-lg font-bold italic font-mono",onChange:function(e){c((0,n.Z)((0,l.Z)({},a),{weight:e.target.value}))}})]}),(0,r.jsxs)("div",{className:"mobile:flex items-center gap-4 justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(m._,{className:"text-xl font-black italic",children:"Shuttle"}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground my-1 italic",children:"[3.00 - 8.00] SECONDS"}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground my-1 max-w-sm",children:"Shuttle time in seconds. Shuttle time is a measure of lateral quickness and agility"})]}),(0,r.jsx)(u.II,{value:null===a||void 0===a?void 0:a.sh,className:"w-full max-w-[100px] text-lg font-bold italic font-mono",onChange:function(e){c((0,n.Z)((0,l.Z)({},a),{sh:e.target.value}))}})]}),(0,r.jsxs)("div",{className:"mobile:flex items-center gap-4 justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(m._,{className:"text-xl font-black italic",children:"40 Yard Dash"}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground my-1 italic",children:"[3.00 - 8.00] SECONDS"}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground my-1 max-w-sm",children:"40 yard dash time in seconds. The 40 yard dash is a measure of straight line speed"})]}),(0,r.jsx)(u.II,{value:null===a||void 0===a?void 0:a._40,className:"w-full max-w-[100px] text-lg font-bold italic font-mono",onChange:function(e){c((0,n.Z)((0,l.Z)({},a),{_40:e.target.value}))}})]}),(0,r.jsxs)("div",{className:"mobile:flex items-center gap-4 justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(m._,{className:"text-xl font-black italic",children:"Vertical Jump"}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground my-1 italic",children:"[0.00 - 96.00] INCHES"}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground my-1 max-w-sm",children:"Vertical Jump in inches. The vertical jump is a measure of explosiveness"})]}),(0,r.jsx)(u.II,{value:null===a||void 0===a?void 0:a.vj,className:"w-full max-w-[100px] text-lg font-bold italic font-mono",onChange:function(e){c((0,n.Z)((0,l.Z)({},a),{vj:e.target.value}))}})]}),(0,r.jsxs)("div",{className:"mobile:flex items-center gap-4 justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(m._,{className:"text-xl font-black italic",children:"Powerball"}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground my-1 italic",children:"[0.00 - 60.00] FEET"}),(0,r.jsx)("div",{className:"text-sm text-muted-foreground my-1 max-w-sm",children:"Powerball distance in feet. The powerball is a measure of upper body strength"})]}),(0,r.jsx)(g,{value:null===a||void 0===a?void 0:a.pb_type,onChange:function(e){return c((function(t){return(0,n.Z)((0,l.Z)({},t),{pb_type:e})}))}}),(0,r.jsx)(u.II,{value:null===a||void 0===a?void 0:a.pb,className:"w-full max-w-[100px] text-lg font-bold italic font-mono",onChange:function(e){c((0,n.Z)((0,l.Z)({},a),{pb:e.target.value}))}})]}),(0,r.jsx)(o.z,{onClick:y,disabled:!Z||b,className:"mt-8",children:b?(0,r.jsx)(f.Z,{className:"w-4 animate-spin"}):(0,r.jsxs)("div",{children:["Calculate your SPARQ",(0,r.jsx)("sup",{className:"text-xs",children:"\u24c7"})," Rating"]})})]})})]})})};N.getLayout=function(e,t){return(0,r.jsx)(c.Z,{description:"Calculate your athleticsm",title:"Free Online SPARQ Calculator",session:null===t||void 0===t?void 0:t.session,children:(0,r.jsx)("div",{className:"px-6",style:{backgroundImage:'url("/assets/images/topography.svg")'},children:e})})};var b=N},49102:function(e,t,a){"use strict";a.d(t,{f:function(){return r}});var s=a(87462),l=a(67294),n=a(75320);const i=(0,l.forwardRef)(((e,t)=&gt;(0,l.createElement)(n.WV.label,(0,s.Z)({},e,{ref:t,onMouseDown:t=&gt;{var a;null===(a=e.onMouseDown)||void 0===a||a.call(e,t),!t.defaultPrevented&amp;&amp;t.detail&gt;1&amp;&amp;t.preventDefault()}})))),r=i}},function(e){e.O(0,[3662,8523,7409,8307,6074,9669,7085,1664,693,2186,5247,190,4296,9645,370,6733,9774,2888,179],(function(){return t=28206,e(e.s=t);var t}));var t=e.O();_N_E=t}]);</pre></body></html>