1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2907],{83454:function(e,t,n){"use strict";var r,s;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(s=n.g.process)?void 0:s.env)?n.g.process:n(77663)},999:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/enterprise/passwordexpire",function(){return n(49502)}])},85747:function(e,t,n){"use strict";var r=n(85893),s=n(9008),o=n.n(s);n(41664);let i=()=>(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:"corpLink | The Key For An Efficient Project Management"}),(0,r.jsx)("meta",{name:"description",content:"Boost your business by efficiently maintaining Projects, HR activities, Training activities, Documents at one place."}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,r.jsx)("meta",{name:"keywords",content:"corplink.ai, ERP solution,project management for software engineers, free hr management software, what is resource planning, project planning template, integrated project management pdf, bug tracking tool, demand forecasting methods in managerial economics, project management, HR management, ticketing, document management, training module, sales module, minutes of meeting, business automation, enterprise resource planning, collaboration tools, workforce management, task management"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico",type:"image/x-icon"}),(0,r.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico",type:"image/x-icon"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/images/psa-icon.png"})]})});t.Z=i},83346:function(e,t,n){"use strict";n.d(t,{R:function(){return c},bl:function(){return i},yK:function(){return a}});var r=n(11752),s=n.n(r);let{publicRuntimeConfig:o}=s()(),i=o.API;o.APP_NAME,o.PRODUCTION;let a=o.DOMAIN,c=o.PUBLICPHOTO},16305:function(e,t,n){"use strict";n.d(t,{U:function(){return o},r:function(){return s}});var r=n(85893);let s=e=>(0,r.jsx)("div",{className:"alert alert-success mt-3",children:e}),o=e=>(0,r.jsx)("div",{className:"alert alert-danger mt-3",children:e})},7723:function(e,t,n){"use strict";n.d(t,{$D:function(){return m},Hm:function(){return j},JC:function(){return b},VV:function(){return d},YR:function(){return h},c9:function(){return p},ej:function(){return c},ek:function(){return g},nJ:function(){return a},pK:function(){return v},rF:function(){return w},sX:function(){return f},xB:function(){return x},zt:function(){return u}});var r=n(31955),s=n(11163),o=n.n(s);let i=(e,t)=>{r.Z.set(e,t,{expires:1})},a=(e,t)=>{r.Z.remove(e)},c=(e,t)=>u(e),u=e=>r.Z.get(e),l=(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},d=(e,t)=>{sessionStorage.removeItem(e)},m=()=>{{let e=u("token");if(e){let e=sessionStorage.getItem("user");if(e)return JSON.parse(e)}}return!1},f=()=>{{let e=u("token");if(e){let e=sessionStorage.getItem("sUser");if(e)return JSON.parse(e)}}return!1},p=()=>{{let e=c("token");if(e)return!!sessionStorage.getItem("Subscriber")&&JSON.parse(sessionStorage.getItem("Subscriber"))}},h=(e,t)=>{i("token",e.data.token),l("user",e.data.user),t()},g=(e,t)=>{i("token",e.data.token),l("user",e.data.user),t()},v=(e,t)=>{i("token",e.data.token),l("Subscriber",e.data.Subscriber),l("user",e.data.user),sessionStorage.setItem("userPlan",JSON.stringify(e.data.UserPlan)),t()},w=()=>{a("token"),d("user"),o().push("/psaadminlogin")},x=()=>{a("token"),d("user"),o().push("/supportUserLogin")},b=()=>{a("token"),d("user"),o().push("/enterprise/login")},j=()=>{a("token"),d("Subscriber"),d("user"),d("userPlan"),o().push("/login")}},49502:function(e,t,n){"use strict";n.r(t);var r=n(85893),s=n(11163),o=n.n(s);n(9008),n(25675);var i=n(67294),a=n(5121),c=n(83346),u=n(16305),l=n(49704),d=n.n(l),m=n(7723),f=n(41664),p=n.n(f),h=n(85747);let g=e=>{let{router:t}=e,[n,s]=(0,i.useState)({_id:"",token:"",newPassword:"",newConfirmPassword:"",buttonText:"Reset Password",success:"",error:""}),{_id:l,name:f,token:g,buttonText:v,success:w,error:x,newPassword:b,newConfirmPassword:j}=n;(0,i.useEffect)(()=>{let e=(0,m.zt)("token");if((0,m.zt)("user"),e&&(0,m.$D)()){let{name:t}=d().decode(e);s({...n,token:e,_id:(0,m.$D)()._id})}else o().push("/enterprise/login")},[]);let N=e=>t=>{s({...n,[e]:t.target.value})},y=e=>{if(e.preventDefault(),b!=j)return s({...n,error:"Password and Confirm Password doesnt match",newPassword:"",newConfirmPassword:""});s({...n,success:"",error:"",buttonText:"Updating..."}),a.Z.post("".concat(c.bl,"/resetEnterpriseExpirePassword/").concat(l),{newPassword:b},{headers:{authorization:"Bearer ".concat(g),contentType:"application/json"}}).then(e=>{s({...n,success:e.data.message,buttonText:"Submitted"}),(0,m.nJ)("token"),(0,m.VV)("user")}).catch(e=>{s({...n,newPassword:"",newConfirmPassword:"",error:e.response.data.errors,buttonText:"Failed"})})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Z,{}),(0,r.jsx)("div",{className:"vh-100 d-flex justify-content-center align-items-center loginbg",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("div",{className:"row d-flex justify-content-center",children:(0,r.jsx)("div",{className:"col-12 col-md-8 col-lg-6",children:(0,r.jsx)("div",{className:"card bg-white shadow-lg",children:(0,r.jsxs)("div",{className:"card-body p-5",children:[(0,r.jsxs)("form",{className:"mb-3 mt-md-1",onSubmit:y,children:[(0,r.jsx)("div",{className:"",children:(0,r.jsx)(p(),{href:"/",children:(0,r.jsx)("img",{src:"/images/newlogo.png",alt:"logo",style:{height:"30px"}})})}),(0,r.jsx)("div",{className:"row",children:(0,r.jsx)("div",{className:"col-md-12 text-center",children:(0,r.jsx)("h4",{className:"mt-2 mb-3",children:"Reset Password"})})}),(0,r.jsxs)("div",{className:"mb-3",children:[(0,r.jsx)("label",{htmlFor:"password1",className:"form-label ",children:"New Password"}),(0,r.jsx)("input",{type:"password",className:"form-control",id:"password1",placeholder:"********",value:n.newPassword,onChange:N("newPassword"),required:!0})]}),(0,r.jsxs)("div",{className:"mb-3",children:[(0,r.jsx)("label",{htmlFor:"password2",className:"form-label ",children:"Confirm Password"}),(0,r.jsx)("input",{type:"password",className:"form-control",id:"password2",placeholder:"********",value:n.newConfirmPassword,onChange:N("newConfirmPassword"),required:!0})]}),(0,r.jsx)("div",{className:"d-grid"}),(0,r.jsx)("div",{className:"row",children:(0,r.jsx)("div",{className:"col-md-6 offset-md-3",children:(0,r.jsx)("div",{className:"d-grid",children:(0,r.jsx)("button",{className:"btn-get-started-blue",type:"submit",children:"Submit"})})})})]}),(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("div",{className:"col-md-12",children:[n.success&&(0,u.r)(w),n.error&&(0,u.U)(x)]})})]})})})})})})]})};t.default=(0,s.withRouter)(g)},77663:function(e){!function(){var t={229:function(e){var t,n,r,s=e.exports={};function o(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c=[],u=!1,l=-1;function d(){u&&r&&(u=!1,r.length?c=r.concat(c):l=-1,c.length&&m())}function m(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(r=c,c=[];++l<t;)r&&r[l].run();l=-1,t=c.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}s.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||a(m)},f.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=p,s.addListener=p,s.once=p,s.off=p,s.removeListener=p,s.removeAllListeners=p,s.emit=p,s.prependListener=p,s.prependOnceListener=p,s.listeners=function(e){return[]},s.binding=function(e){throw Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw Error("process.chdir is not supported")},s.umask=function(){return 0}}},n={};function r(e){var s=n[e];if(void 0!==s)return s.exports;var o=n[e]={exports:{}},i=!0;try{t[e](o,o.exports,r),i=!1}finally{i&&delete n[e]}return o.exports}r.ab="//";var s=r(229);e.exports=s}()},31955:function(e,t,n){"use strict";/*! js-cookie v3.0.5 | MIT */function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{Z:function(){return s}});var s=function e(t,n){function s(e,s,o){if("undefined"!=typeof document){"number"==typeof(o=r({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
1URIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(s,e)+i}}return Object.create({set:s,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},s=0;s<n.length;s++){var o=n[s].split("="),i=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(r[a]=t.read(i,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){s(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}},function(e){e.O(0,[3714,3996,1177,6817,5675,9704,9774,2888,179],function(){return e(e.s=999)}),_N_E=e.O()}]);
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.