PageSourceSearch

https://quadballuk.org/_next/static/chunks/pages/reset-ec820762f848cf86.js

js quadballuk.org collected 2026-10-09 16:58:30 UTC 9,305 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8711,4237],{66604:function(t,r,e){var n=e(89465),u=e(47816),o=e(67206);t.exports=function(t,r){var e={};return r=o(r,3),u(t,(function(t,u,o){n(e,u,r(t,u,o))})),e}},12916:function(t,r,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset",function(){return e(60165)}])},79548:function(t,r,e){"use strict";var n=e(85893),u=e(68527),o=e(34237);r.Z=function(t){var r=t.children;return(0,n.jsx)(u.xu,{bg:"white",px:"4",py:"2",mt:"6",borderColor:"qukBlue",borderWidth:"1px",borderStyle:"solid",color:"qukBlue",borderRadius:"sm",children:(0,n.jsx)(o.default,{children:r})})}},34237:function(t,r,e){"use strict";e.r(r),e.d(r,{default:function(){return a}});var n=e(26042),u=e(85893),o=e(68527);function a(t){return(0,u.jsx)(o.xu,(0,n.Z)({lineHeight:"24px",sx:{a:{textDecoration:"none","&:hover":{textDecoration:"none"}}}},t))}},55420:function(t,r,e){"use strict";var n=e(85893),u=e(68527),o=e(59876);r.ZP=function(t){var r=t.children;return(0,n.jsxs)(u.kC,{alignItems:"center",bg:"red.50",px:4,py:1,borderColor:"monarchRed",borderWidth:"1px",borderStyle:"solid",color:"monarchRed",borderRadius:"md",children:[(0,n.jsx)(o.aN,{mr:3})," ",(0,n.jsx)(u.xu,{children:r})]})}},32465:function(t,r,e){"use strict";var n=e(67294);r.Z=function(){var t=(0,n.useState)(null),r=t[0],e=t[1];return(0,n.useEffect)((function(){if(r){var t=setTimeout((function(){e(null)}),5e3);return function(){return clearTimeout(t)}}return function(){}}),[r]),[r,e]}},60165:function(t,r,e){"use strict";e.r(r),e.d(r,{__N_SSP:function(){return U}});var n=e(47568),u=e(26042),o=e(828),a=e(97582),i=e(85893),s=e(74231),c=e(41664),d=e.n(c),l=e(5152),f=e.n(l),p=e(87536),h=e(47533),m=e(11163),Z=e(68527),v=e(79742),b=e(33299),g=e(1327),w=e(39340),x=e(55420),y=e(79548),j=e(93766),_=e(32465),P=f()((function(){return e.e(7549).then(e.bind(e,47549))}),{loadableGenerated:{webpack:function(){return[47549]}}}),S=f()((function(){return e.e(6873).then(e.bind(e,86873))}),{loadableGenerated:{webpack:function(){return[86873]}}}),R=f()((function(){return Promise.resolve().then(e.bind(e,8333))}),{loadableGenerated:{webpack:function(){return[8333]}}}),k=f()((function(){return e.e(6308).then(e.bind(e,6308))}),{loadableGenerated:{webpack:function(){return[6308]}}}),N=(0,s.Ry)().shape({password:(0,s.Z_)().nullable().min(8,"Must be at least 8 characters long").required("Required"),confirm:(0,s.Z_)().nullable().oneOf([(0,s.iH)("password"),null],"Passwords must match").required("Required")}),U=!0;r.default=function(){var t=(0,o.Z)((0,_.Z)(),2),r=t[0],e=t[1],s=(0,m.useRouter)(),c=s.query,l=s.push,f=c.token,U=c.email,C=(0,p.cI)({mode:"onBlur",resolver:(0,h.X)(N),defaultValues:{password:"",confirm:""}}),q=C.register,A=C.handleSubmit,T=C.formState,E=T.isSubmitting,I=T.errors,G=function(){var t=(0,n.Z)((function(t){var r,n,u,o,i;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:r=t.password,a.label=1;case 1:return a.trys.push([1,4,,5]),e(null),[4,j.Z.resetPassword({data:{password:r,token:f,email:U}})];case 2:return a.sent(),[4,(0,b.signIn)("credentials",{email:U,password:r,callbackUrl:"/dashboard",redirect:!1})];case 3:return n=a.sent(),l(n.url),[3,5];case 4:return u=a.sent(),e(null===u||void 0===u||null===(o=u.response)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.message),[3,5];case 5:return[2]}}
1))}));return function(r){return t.apply(this,arguments)}}();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(P,{description:"Forgot your password for QuadballUK, reset it here",subTitle:"Reset Password"}),(0,i.jsx)(w.default,{children:(0,i.jsxs)(S,{maxWidth:(0,v.h)(500),children:[(0,i.jsx)(Z.kC,{justifyContent:"center",alignItems:"center",children:(0,i.jsx)(k,{})}),(0,i.jsx)(Z.X6,{as:"h1",fontFamily:"body",textAlign:"center",children:"Reset Password"}),(0,i.jsx)("form",{onSubmit:A((function(t){return G(t)})),children:(0,i.jsxs)(Z.rj,{gridTemplateColumns:"1fr",gridGap:3,children:[(0,i.jsx)(g.Z,(0,u.Z)({label:"New Password",isRequired:!0,id:"password",placeholder:"New password",type:"password",error:null===I||void 0===I?void 0:I.password},q("password"))),(0,i.jsx)(g.Z,(0,u.Z)({label:"Confirm New Password",isRequired:!0,id:"confirm",placeholder:"Confirm your new password",type:"password",error:null===I||void 0===I?void 0:I.confirm},q("confirm"))),(0,i.jsx)(R,{type:"submit",variant:"green",disabled:E,children:E?"Submitting":"Reset password"})]})}),r&&(0,i.jsx)(x.ZP,{children:r}),(0,i.jsxs)(y.Z,{children:["Remembered your password?"," ",(0,i.jsx)(d(),{href:"/login",passHref:!0,children:(0,i.jsx)(Z.rU,{color:"monarchRed",children:"Sign in."})})]})]})})]})}},52209:function(t,r,e){"use strict";e.d(r,{ZP:function(){return f}});var n=e(47568),u=e(26042),o=e(69396),a=e(97582),i=e(9669),s=e.n(i),c=e(66604),d=e.n(c);function l(t){var r=t.method,e=t.data,n=t.params,a=t.url,i=t.accept,s=void 0===i?"application/json":i,c=t.responseType,d=void 0===c?"json":c,l=t.headers,f=void 0===l?{}:l,p={baseURL:"".concat("https://").concat("quadballuk.org").concat("/api"),method:r,url:a,responseType:d,headers:(0,o.Z)((0,u.Z)({},f),{Accept:s})};return n&&(p.params=n),e&&(p.data=e),p}function f(t){var r=d()(t,(function(t,r){return function(t,r){function e(t){return u.apply(this,arguments)}function u(){return(u=(0,n.Z)((function(r){var e,n;return(0,a.__generator)(this,(function(u){return e=t(r),n=l(e),[2,s()(n)]}))}))).apply(this,arguments)}return e.getPath=function(r){var e=t(r),n=e.params,u=e.url,o="";return n&&(o="?"+new URLSearchParams(n).toString()),u+o},e.key=r,e}(t,r)}));return r}},93766:function(t,r,e){"use strict";var n=e(26042),u=e(99534),o=e(52209),a={updateUser:function(t){var r=t.data,e=(0,u.Z)(t,["data"]);return(0,n.Z)({method:"put",url:"/users/me",data:r},e)},getUser:function(t){return(0,n.Z)({method:"get",url:"/users/me"},t)},updatePassword:function(t){var r=t.data,e=(0,u.Z)(t,["data"]);return(0,n.Z)({method:"put",url:"/users/password",data:r},e)},createUser:function(t){var r=t.data,e=(0,u.Z)(t,["data"]);return(0,n.Z)({method:"post",url:"/users",data:r},e)},updateUserNationalProfile:function(t){var r=t.data,e=(0,u.Z)(t,["data"]);return(0,n.Z)({method:"put",url:"/users/national",data:r},e)},scoutingRequest:function(t){var r=t.data,e=(0,u.Z)(t,["data"]);return(0,n.Z)({method:"put",url:"/users/scouting",data:r},e)},forgotPassword:function(t){var r=t.data,e=(0,u.Z)(t,["data"]);return(0,n.Z)({method:"post",url:"/users/forgot",data:r},e)},resetPassword:function(t){var r=t.data,e=(0,u.Z)(t,["data"]);return(0,n.Z)({method:"post",url:"/users/reset",data:r},e)},getNotifications:function(t){return(0,n.Z)({method:"get",url:"/users/notifications"},t)},getUnreadNoticationsCount:function(t){return(0,n.Z)({method:"get",url:"/users/notifications/unread"},t)},markNotificationRead:function(t){var r=t.notification_uuid,e=t.data,o=(0,u.Z)(t,["notification_uuid","data"]);return(0,n.Z)({method:"put",url:"/users/notifications/".concat(r),data:e},o)},deleteNotification:function(t){var r=t.notification_uuid,e=(0,u.Z)(t,["notification_uuid"]);return(0,n.Z)({method:"delete",url:"/users/notifications/".concat(r)},e)},getPushNotifications:function(t){return(0,n.Z)({method:"get",url:"/users/push-notifications"},t)},createPushNotification:function(t){var r=t.data,e=(0,u.Z)(t,["data"]);return(0,n.Z)({method:"post",url:"/users/push-notifications",data:r},e)},deletePushNotification:function(t){var r=t.push_uuid,e=(0,u.Z)(t,["push_uuid"]);return(0,n.Z)({method:"delete",url:"/users/push-notifications/".concat(r)},e)},getUsers:function(t){var r=t.page,e=(0,u.Z)(t,["page"]);return(0,n.Z)({method:"get",url:"/users/all/".concat(r)},e)},getSearchUsers:function(t){var r=t.page,e=t.term,o=(0,u.Z)(t,["page","term"]);return(0,n.Z)({method:"get",url:"/users/search/".concat(e,"/page/").concat(r)},o)},getAdminUser:function(t){var r=t.uuid;(0,u.Z)(t,["uuid"]);return{method:"get",url:"/users/".concat(r)}},studentSummerPass:function(t){var r=t.data,e=(0,u.Z)(t,["data"]);return(0,n.Z)({method:"post",url:"/users/student-summer-pass",data:r},e)}};r.Z=(0,o.ZP)(a)},20943:function(t,r,e){"use strict";function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}e.d(r,{Z:function(){return n}})},13375:function(t,r,e){"use strict";function n(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}e.d(r,{Z:function(){return n}})},828:function(t,r,e){"use strict";e.d(r,{Z:function(){return o}});var n=e(13375);var u=e(91566);function o(t,r){return function(t){if(Array.isArray(t))return t}(t)||(0,n.Z)(t,r)||(0,u.Z)(t,r)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},91566:function(t,r,e){"use strict";e.d(r,{Z:function(){return u}});var n=e(20943);function u(t,r){if(t){if("string"===typeof t)return(0,n.Z)(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?(0,n.Z)(t,r):void 0}}}},function(t){t.O(0,[350,9876,9669,7536,9491,9774,2888,179],(function(){return r=12916,t(t.s=r);var r}));var r=t.O();_N_E=r}]);
2//# sourceMappingURL=reset-ec820762f848cf86.js.map

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.