1"use strict";(self.webpackChunkraise_webapp_frontend=self.webpackChunkraise_webapp_frontend||[]).push([[9284],{20718:(e,t,r)=>{r.d(t,{Z:()=>M});var s=r(63366),a=r(87462),o=r(67294),n=r(90512),i=r(34867),l=r(94780),d=r(14142),u=r(35971);var m=r(76631);function c({props:e,name:t,defaultTheme:r,themeId:s}){let a=(0,m.Z)(r);s&&(a=a[s]||a);const o=function(e){const{theme:t,name:r,props:s}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,u.Z)(t.components[r].defaultProps,s):s}({theme:a,name:t,props:e});return o}var p=r(87815),h=r(4953),f=r(97408),w=r(86523);const y=["ownerState"],v=["variants"],Z=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function b(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function g(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const x=(0,f.Z)(),S=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function P({defaultTheme:e,theme:t,themeId:r}){return s=t,0===Object.keys(s).length?e:t[r]||t;var s}function k(e){return e?(t,r)=>r[e]:null}function C(e,t,r){let{ownerState:o}=t,n=(0,s.Z)(t,y);const i="function"==typeof e?e((0,a.Z)({ownerState:o},n)):e;if(Array.isArray(i))return i.flatMap(e=>C(e,(0,a.Z)({ownerState:o},n),r));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,s.Z)(i,v);return e.forEach(e=>{let s=!0;if("function"==typeof e.props?s=e.props((0,a.Z)({ownerState:o},n,o)):Object.keys(e.props).forEach(t=>{(null==o?void 0:o[t])!==e.props[t]&&n[t]!==e.props[t]&&(s=!1)}),s){Array.isArray(t)||(t=[t]);const s="function"==typeof e.style?e.style((0,a.Z)({ownerState:o},n,o)):e.style;t.push(r?g((0,p.internal_serializeStyles)(s),r):s)}}),t}return r?g((0,p.internal_serializeStyles)(i),r):i}const W=function(e={}){const{themeId:t,defaultTheme:r=x,rootShouldForwardProp:o=b,slotShouldForwardProp:n=b}=e,i=e=>(0,w.Z)((0,a.Z)({},e,{theme:P((0,a.Z)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,l={})=>{(0,p.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:d,slot:u,skipVariantsResolver:m,skipSx:c,overridesResolver:f=k(S(u))}=l,w=(0,s.Z)(l,Z),y=d&&d.startsWith("Mui")||u?"components":"custom",v=void 0!==m?m:u&&"Root"!==u&&"root"!==u||!1,g=c||!1;let x=b;"Root"===u||"root"===u?x=o:u?x=n:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(x=void 0);const W=(0,p.default)(e,(0,a.Z)({shouldForwardProp:x,label:void 0},w)),_=e=>"function"==typeof e&&e.__emotion_real!==e||(0,h.P)(e)?s=>{const o=P({theme:s.theme,defaultTheme:r,themeId:t});return C(e,(0,a.Z)({},s,{theme:o}),o.modularCssLayers?y:void 0)}:e,E=(s,...o)=>{let n=_(s);const l=o?o.map(_):[];d&&f&&l.push(e=>{const s=P((0,a.Z)({},e,{defaultTheme:r,themeId:t}));if(!s.components||!s.components[d]||!s.components[d].styleOverrides)return null;const o=s.components[d].styleOverrides,n={};return Object.entries(o).forEach(([t,r])=>{n[t]=C(r,(0,a.Z)({},e,{theme:s}),s.modularCssLayers?"theme":void 0)}),f(e,n)}),d&&!v&&l.push(e=>{var s;const o=P((0,a.Z)({},e,{defaultTheme:r,themeId:t}));return C({variants:null==o||null==(s=o.components)||null==(s=s[d])?void 0:s.variants},(0,a.Z)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),g||l.push(i);const u=l.length-o.length;if(Array.isArray(s)&&u>0){const e=new Array(u).fill("");n=[...s,...e],n.raw=[...s.raw,...e]}const m=W(n,...l);return e.muiName&&(m.muiName=e.muiName),m};return W.withConfig&&(E.withConfig=W.withConfig),E}}(),_=W;var E=r(85893);const N=["className","component","disableGutters","fixed","maxWidth","classes"],R=(0,f.Z)(),A=_("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${(0,d.Z)(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),T=e=>c({props:e,name:"MuiContainer",defaultTheme:R});var G=r(98216),I=r(90948),$=r(1387);const j=function(e={}){const{createStyledComponent:t=A,useThemeProps:r=T,componentName:u="MuiContainer"}=e,m=t(({theme:e,ownerState:t})=>(0,a.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,r)=>{const s=r,a=e.breakpoints.values[s];return 0!==a&&(t[e.breakpoints.up(s)]={maxWidth:`${a}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>(0,a.Z)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}})),c=o.forwardRef(function(e,t){const o=r(e),{className:c,component:p="div",disableGutters:h=!1,fixed:f=!1,maxWidth:w="lg"}=o,y=(0,s.Z)(o,N),v=(0,a.Z)({},o,{component:p,disableGutters:h,fixed:f,maxWidth:w}),Z=((e,t)=>{const{classes:r,fixed:s,disableGutters:a,maxWidth:o}=e,n={root:["root",o&&`maxWidth${(0,d.Z)(String(o))}`,s&&"fixed",a&&"disableGutters"]};return(0,l.Z)(n,e=>(0,i.ZP)(t,e),r)})(v,u);return(0,E.jsx)(m,(0,a.Z)({as:p,ownerState:v,className:(0,n.Z)(Z.root,c),ref:t},y))});return c}({createStyledComponent:(0,I.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${(0,G.Z)(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,$.i)({props:e,name:"MuiContainer"})}),M=j},29284:(e,t,r)=>{r.r(t),r.d(t,{default:()=>x});var s=r(82688),a=r(15861),o=r(41609),n=r.n(o),i=r(67294),l=r(63906),d=r(20718),u=r(92534),m=r(61617),c=r(16607),p=r(55323),h=r(34486),f=r(78587),w=r(33422),y=r(45007),v=r(27080),Z=r(89282),b=r(56709),g=function(e){var t={};return n()(e.password)?t.password="Password is required":e.password.length<8?t.password="Password must include at least 8 characters.":e.password.length>128?t.password="Password must be no more than 128 characters.":/[A-Z]/.test(e.password)?/[a-z]/.test(e.password)?/[0-9]/.test(e.password)||(t.password="Password must include at least 1 number."):t.password="Password must include at least 1 lowercase letter.":t.password="Password must include at least 1 uppercase letter.",e.password!==e.confirmPassword&&(t.confirmPassword="Passwords do not match"),t};function x(){var e=(0,y.I0)(),t=(0,f.k6)(),r=(0,Z.k)(!1),o=(0,b.Z)(),x=function(){var o=(0,a.Z)((0,s.Z)().m(function a(o){return(0,s.Z)().w(function(s){for(;;)switch(s.p=s.n){case 0:return r.setTrue(),s.p=1,s.n=2,(0,h.ZP)({url:"/college-portal/reset-password",method:"POST",data:{password:o.password,password_confirmation:o.confirmPassword}});case 2:e((0,w._U)("Successfully reset password!")),t.go(0),s.n=4;break;case 3:s.p=3,s.v,e((0,w.N3)());case 4:return s.p=4,r.setFalse(),s.f(4);case 5:return s.a(2)}},a,null,[[1,3,4,5]])}));return function(e){return o.apply(this,arguments)}}();return i.createElement(l.Z,{id:"page-content-wrapper",display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh"},i.createElement(v.Z,null),i.createElement(l.Z,null,i.createElement(d.Z,null,i.createElement("h3",{className:"shared-font dislay-1"},"Welcome to ",o,". For your security, please set a new password."),i.createElement(c.Z,null,"Change Password",i.createElement(u.J9,{initialValues:{password:"",confirmPassword:""},onSubmit:x,validate:g},function(e){return i.createElement(u.l0,{className:"raise-form"},i.createElement("div",{className:"form-group"},i.createElement(m.Z,{type:"password",name:"password",placeholder:"New Password","aria-label":"password",onChange:e.handleChange("password"),className:"form-control"})),i.createElement("div",{className:"form-group"},i.createElement(m.Z,{type:"password",name:"confirmPassword",placeholder:"Confirm New Password","aria-label":"confirm password",onChange:e.handleChange("confirmPassword"),className:"form-group form-control"})),i.createElement(p.Z,{type:"submit",disabled:r.value||!n()(e.errors)},r.value?"Submitting":"Update Password"))})))))}}}]); 2//# sourceMappingURL=9284.4a9d538b216ba0767907.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.