1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[102],{31001:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/enable-mfa",function(){return n(69419)}])},83469:function(e,r,n){"use strict";n.d(r,{Z:function(){return s}});var t=n(85893);function s(){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("span",{className:"page_loader"})})}n(67294)},35405:function(e,r,n){"use strict";n.d(r,{B:function(){return o},k:function(){return s}});var t=n(85893);function s(e){var r=e.user;return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"bg-[#EDF7ED] flex h-[45px] rounded-[5px] items-center justify-center",children:[(0,t.jsx)("svg",{xmlns:"https://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6 text-[#2e7d32]",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,t.jsxs)("span",{className:"text-[#1E4620] mx-2",children:["Enter the OTP sent to ",null==r?void 0:r.email]})]})})}function o(e){return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"bg-[#f7eded] flex h-[45px] rounded-[10px] items-center justify-center",children:[(0,t.jsx)("svg",{xmlns:"https://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6 text-red-600 ml-3",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,t.jsx)("span",{className:"text-[#461e1e] mx-2 text-[12px] flex",children:e.err})]})})}},69419:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return j}});var t=n(47568),s=n(26042),o=n(69396),u=n(97582),c=n(85893),a=n(67294),i=n(9473),l=n(68020),d=n(86501),x=n(42598),f=n(11163),h=n(83469),p=n(35405),m={error:"",loading:!0,success:!1};function g(e,r){switch(r.type){case"SUCCESS":return(0,o.Z)((0,s.Z)({},m),{loading:!1,success:!0});case"ERROR":return{error:r.payload,loading:!1,success:!0};default:return e}}function j(){var e,r=(0,i.v9)(function(e){return null==e?void 0:e.login}).data,n=(0,a.useReducer)(g,m),s=n[0],o=n[1],j=(0,i.I0)(),w=(0,f.useRouter)(),v=(0,a.useState)(""),b=v[0],k=v[1];(0,a.useEffect)(function(){(0,l.wk)(null==r?void 0:r.token).then(function(){o({type:"SUCCESS"})}).catch(function(e){o({type:"ERROR",payload:"Some Error Occured! Try Again Later."})})},[]);var N=(e=(0,t.Z)(function(e){var n,t;return(0,u.__generator)(this,function(s){switch(s.label){case 0:e.preventDefault(),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,l.BN)(b,r.token)];case 2:return(n=s.sent().data).status?(j((0,x.PR)(n.token)),d.Am.success("MFA Enabled.!"),w.push("/profile")):(o({type:"ERROR",payload:"Wrong OTP"}),d.Am.error("Wrong OTP.!")),[3,4];case 3:return t=s.sent(),d.Am.error(t.message),[3,4];case 4:return[2]}})}),function(r){return e.apply(this,arguments)});return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:"h-[80vh] w-[100%] flex justify-center items-center",children:s.loading?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(h.Z,{})}):(0,c.jsxs)("div",{className:"rounded-[5px] bg-[#fff] p-[15px] w-[400px] grid",children:[s.error?(0,c.jsx)(p.B,{err:s.error}):(0,c.jsx)(p.k,{user:r}),(0,c.jsxs)("div",{className:"mt-3",children:[(0,c.jsx)("label",{className:"mb-1 block font-medium text-[#2e2e2e] md:text-[15px] sm:text-[12px] ",children:"OTP*"}),(0,c.jsx)("input",{type:"text",placeholder:"OTP*",onChange:function(e){k(e.target.value)},className:"bg-white border h-[48px] p-[10px ] w-[100%] border-gray-300 rounded-md text-[#000] px-4 py-2 outline-none focus:border-[#6A64F1] focus:shadow-md"})]}),(0,c.jsx)("div",{className:"my-2",children:(0,c.jsx)("button",{type:"button",onClick:function(e){return N(e)},className:"w-full bg-[#1565c0] hover:bg-blue-700 hover:shadow-xl text-white font-medium py-2 px-4 border border-blue-700 rounded uppercase",children:"submit"})})]})})})}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=31001)}),_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.