%PDF- %PDF-
Direktori : /home/opti/www/startup-life/assets/ |
Current File : /home/opti/www/startup-life/assets/index-f2be245d.js |
import{r as l,u as z,j as s,C as F,b as j,B as A,Q as y,D as O}from"./index-5492fbe1.js";import{s as b}from"./styled-components.browser.esm-ee37ee23.js";import"./index-e5978b8b.js";import{O as P}from"./index-2696d226.js";import"./tslib.es6-ace8e431.js";const D=b.div` padding-top: 7%; `,I=b.div` @media (max-width: 800px) { width: 80%; } width: 60%; height: 450px; background: #ffffff; justify-content: center; display: flex; align-items: center; box-shadow: 0px 4px 40px 0px rgba(225, 234, 254, 0.62); .congrate_eclips { position: relative; top: -10px; right: 35px; } h4 { font-style: normal; font-weight: 700; font-size: 27px; line-height: 150%; text-align: center; letter-spacing: -0.15px; text-transform: capitalize; color: #242424; padding-top: 9px; } p { color: var(--Tertiary, #6B809B); text-align: center; font-size: 1.125rem; font-style: normal; font-weight: 500; line-height: 1.6875rem; /* 150% */ margin: 1rem 0; } .enclose { width: 100%; display: flex; justify-content: center; gap: 3rem; } .link-send { color: #A8CF45; } .inputField { border: 1px solid #e0e0e0; height: 50px; border-radius: 3px; font-size: 20px; color: #000; flex: 1 0 45px; } .inputField:focus { border: 2px solid #A8CF45 !important; outline: none; } .verify_congrates_btn { background: #A8CF45; color: #f2f2f2; border-radius: 10px; padding: 8px 80px; } `,W=b.div` display: flex; justify-content: center; margin-top: 2rem; button { width: 20.5rem; height: 41px; background: #A8CF45; border-radius: 10px; font-style: normal; font-weight: 600; font-size: 16px; line-height: 20px; color: #111e6c; outline: "none"; border: "none"; } .otp_button_blue { background: #A8CF45; color: #ffffff; } `;var _={exports:{}},T={};/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var m=l;function B(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var q=typeof Object.is=="function"?Object.is:B,L=m.useState,M=m.useEffect,U=m.useLayoutEffect,H=m.useDebugValue;function K(e,t){var o=t(),i=L({inst:{value:o,getSnapshot:t}}),n=i[0].inst,a=i[1];return U(function(){n.value=o,n.getSnapshot=t,C(n)&&a({inst:n})},[e,o,t]),M(function(){return C(n)&&a({inst:n}),e(function(){C(n)&&a({inst:n})})},[e]),H(o),o}function C(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!q(e,o)}catch{return!0}}function Q(e,t){return t()}var G=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Q:K;T.useSyncExternalStore=m.useSyncExternalStore!==void 0?m.useSyncExternalStore:G;_.exports=T;var J=_.exports,N={exports:{}},R={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var S=l,X=J;function Y(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Z=typeof Object.is=="function"?Object.is:Y,ee=X.useSyncExternalStore,te=S.useRef,ne=S.useEffect,oe=S.useMemo,re=S.useDebugValue;R.useSyncExternalStoreWithSelector=function(e,t,o,i,n){var a=te(null);if(a.current===null){var d={hasValue:!1,value:null};a.current=d}else d=a.current;a=oe(function(){function g(p){if(!u){if(u=!0,c=p,p=i(p),n!==void 0&&d.hasValue){var x=d.value;if(n(x,p))return r=x}return r=p}if(x=r,Z(c,p))return x;var v=i(p);return n!==void 0&&n(x,v)?x:(c=p,r=v)}var u=!1,c,r,f=o===void 0?null:o;return[function(){return g(t())},f===null?void 0:function(){return g(f())}]},[t,o,i,n]);var h=ee(e,a[0],a[1]);return ne(function(){d.hasValue=!0,d.value=h},[h]),re(h),h};N.exports=R;var se=N.exports;const k=Symbol.for("react-redux-context"),E=typeof globalThis<"u"?globalThis:{};function ie(){var e;if(!l.createContext)return{};const t=(e=E[k])!=null?e:E[k]=new Map;let o=t.get(l.createContext);return o||(o=l.createContext(null),t.set(l.createContext,o)),o}const w=ie();function V(e=w){return function(){return l.useContext(e)}}const ae=V(),ce=()=>{throw new Error("uSES not initialized!")};let $=ce;const ue=e=>{$=e},le=(e,t)=>e===t;function de(e=w){const t=e===w?ae:V(e);return function(i,n={}){const{equalityFn:a=le,stabilityCheck:d=void 0,noopCheck:h=void 0}=typeof n=="function"?{equalityFn:n}:n,{store:g,subscription:u,getServerState:c,stabilityCheck:r,noopCheck:f}=t();l.useRef(!0);const p=l.useCallback({[i.name](v){return i(v)}}[i.name],[i,r,d]),x=$(u.addNestedSub,g.getState,c||g.getState,p,a);return l.useDebugValue(x),x}}const pe=de();ue(se.useSyncExternalStoreWithSelector);function ye(){const[e,t]=l.useState(!1),[o,i]=l.useState(""),{forgotpasswordEmail:n}=pe(u=>u.Auth),a=z(),d=async()=>{const u={};await j.post(A+`?email=${n}&otp_type=reset`,u).then(c=>{var r;y.success((r=c.data)==null?void 0:r.message)}).catch(c=>{var r,f;y.error((f=(r=c.response)==null?void 0:r.data)==null?void 0:f.message),t(!1)})},h=async()=>{const u={otp_type:"reset",email:n,verificationCode:o};t(!0),await j.post(O,u).then(c=>{var r;t(!1),y.success((r=c.data)==null?void 0:r.message),a("/reset-password")}).catch(c=>{var r,f;y.error((f=(r=c.response)==null?void 0:r.data)==null?void 0:f.message),t(!1)})},g=u=>i(u);return s.jsx(D,{children:s.jsx("div",{className:"d-flex justify-content-center align-items-center",children:s.jsx(I,{children:s.jsx("div",{className:"container text-center",children:s.jsx("div",{className:"row",children:s.jsxs("div",{className:"col congrate-body",children:[s.jsx("h4",{children:"Account Verification"}),s.jsxs("p",{children:["A verification code has been sent to ",n]}),s.jsx("div",{children:s.jsx(P,{value:o,onChange:g,inputStyle:"inputField",containerStyle:"enclose",numInputs:6,isInputNum:!0})}),s.jsx(W,{children:s.jsx("div",{className:"d-flex justify-content-between align-items-center gap-1",children:s.jsx("button",{style:{outline:"none",border:"none"},onClick:h,className:" otp_button_blue ",children:e?s.jsx(F,{color:"inherit",size:20}):"Okay"})})}),s.jsxs("p",{className:"text-center",children:["Didn't get an OTP?"," ",s.jsx("span",{className:"link-send",children:s.jsx("strong",{onClick:d,style:{cursor:"pointer"},children:"Resend OTP"})})]})]})})})})})})}export{ye as default};