KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/sbaedu/test.sbaedu.com/static/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/sbaedu/test.sbaedu.com/static/js/895.6546acdf.chunk.js.map
{"version":3,"file":"static/js/895.6546acdf.chunk.js","mappings":"kLAKAA,EAAAA,EAAMC,SAASC,QAAUC,EAAAA,GACzB,MAAMC,EAAOC,EAAAA,EAAQC,IAAI,gBAAkBC,KAAKC,MAAMH,EAAAA,EAAQC,IAAI,iBAAmB,KAE/EG,EAAQL,EAAOA,EAAKK,MAAQ,KAG5BC,EAAWC,UAGf,IACE,MAAMC,QAAiBZ,EAAAA,EAAMa,KAC3B,YACAC,EACA,CACEC,QAAS,CACP,OAAUC,EAAAA,GACV,OAAUC,EAAAA,MAMCL,EAASM,KAAKA,KAI/B,OAHAC,aAAaC,QAAQ,cAAc,QAG5BR,CACT,CAAE,MAAOS,GAGP,OADAC,QAAQC,IAAI,uBAAwBF,GAC7BA,GAAS,CAAEG,OAAQ,IAAKN,KAAM,CAAEO,QAAS,iCAClD,GAGIC,EAAiBf,UACrB,IAWE,aAVuBX,EAAAA,EAAMa,KAC3B,mBACAc,EACA,CACEZ,QAAS,CACP,OAAUC,EAAAA,GACV,OAAUC,EAAAA,KAKlB,CAAE,MAAOI,GAGP,OAAOA,GAAS,CAAEG,OAAQ,IAAKN,KAAM,CAAEO,QAAS,iCAClD,GAuBIG,EAAgBjB,UACpB,IAWE,aAVuBX,EAAAA,EAAMa,KAC3B,4BACAgB,EACA,CACEd,QAAS,CACP,OAAUC,EAAAA,GACV,OAAUC,EAAAA,KAKlB,CAAE,MAAOI,GAGP,OAAOA,GAAS,CAAEG,OA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AAG,YACHC,KAAK,WACL1B,KAAK,WACLG,UAAU,gOAEVwB,UAAQ,QAOZzB,EAAAA,EAAAA,MAAA,OAAKC,UAAU,OAAMN,SAAA,EACjBF,EAAAA,EAAAA,KAAA,SAAOQ,UAAU,gBAAgBqB,QAAQ,eAAc3B,SAAC,uBACxDF,EAAAA,EAAAA,KAAA,SACA8B,GAAG,mBACHC,KAAK,mBACL1B,KAAK,WACLG,UAAU,gOAEVwB,UAAQ,QAUZhC,EAAAA,EAAAA,KAAA,OAAKQ,UAAU,OAAMN,UACjBF,EAAAA,EAAAA,KAAA,UACAK,KAAK,SACLG,UAAU,qNACVgB,MAAM,WAAUtB,SAEf,sBAMbF,EAAAA,EAAAA,KAACD,EAAK,eAUjB,C","sources":["axios/api/Register.js","pages/ResetPassword/ResetPassword.jsx"],"sourcesContent":["import axios from \"axios\";\r\nimport Cookies from 'js-cookie';\r\nimport {baseurl, apikey, domain} from '../../baseurl'; // Assuming baseurl is not needed if using axios.defaults.baseURL\r\n\r\n// Set the base URL for all axios requests (if applicable)\r\naxios.defaults.baseURL = baseurl;\r\nconst user = Cookies.get('icp_authData') ? JSON.parse(Cookies.get('icp_authData')) : null;\r\n\r\nconst token = user ? user.token : null;\r\n\r\n\r\nconst Register = async (request_data) => {\r\n\r\n\r\n  try {\r\n    const response = await axios.post(\r\n      '/register',\r\n      request_data,\r\n      {\r\n        headers: {\r\n          'apikey': apikey,\r\n          'domain': domain,\r\n        }\r\n      }\r\n    );\r\n\r\n\r\n    const userData = response.data.data;\r\n    localStorage.setItem('icp_islogin','true');\r\n    // cookie.set('icp_authData', JSON.stringify(userData));\r\n\r\n    return response;\r\n  } catch (error) {\r\n    // Consider logging the error or handling it differently\r\n    console.log('Registration failed:', error);\r\n    return error || { status: 500, data: { message: 'An unexpected error occurred.' } };\r\n  }\r\n};\r\n\r\nconst forgotPassword = async (email) => {\r\n  try {\r\n    const response = await axios.post(\r\n      '/forgot-password',\r\n      email,\r\n      {\r\n        headers: {\r\n          'apikey': apikey,\r\n          'domain': domain,\r\n        }\r\n      }\r\n    );\r\n    return response;\r\n  } catch (error) {\r\n    // Consider logging the error or handling it differently\r\n    //console.log('Registration failed:', error);\r\n    return error || { status: 500, data: { message: 'An unexpected error occurred.' } };\r\n  }\r\n};\r\n\r\nconst login = async (formdata) => {\r\n  try {\r\n    const response = await axios.post(\r\n      '/login',\r\n      formdata,\r\n      {\r\n        headers: {\r\n          'apikey': apikey,\r\n          'domain': domain,\r\n        }\r\n      }\r\n    );\r\n    return response;\r\n  } catch (error) {\r\n    // Consider logging the error or handling it differently\r\n    //console.log('Registration failed:', error);\r\n    return error || { status: 500, data: { message: 'An unexpected error occurred.' } };\r\n  }\r\n};\r\n\r\nconst resetPassword = async (formdata) => {\r\n  try {\r\n    const response = await axios.post(\r\n      '/forgot-password-continue',\r\n      formdata,\r\n      {\r\n        headers: {\r\n          'apikey': apikey,\r\n          'domain': domain,\r\n        }\r\n      }\r\n    );\r\n    return response;\r\n  } catch (error) {\r\n    // Consider logging the error or handling it differently\r\n    //console.log('Registration failed:', error);\r\n    return error || { status: 500, data: { message: 'An unexpected error occurred.' } };\r\n  }\r\n};\r\n\r\nconst profileUpdate = async (formdata) => {\r\n  try {\r\n    const response = await axios.post(\r\n      '/update-profile',\r\n      formdata,\r\n      {\r\n        headers: {\r\n          'apikey': apikey,\r\n          'domain': domain,\r\n          'token' : token\r\n        }\r\n      }\r\n    );\r\n    return response;\r\n  } catch (error) {\r\n    // Consider logging the error or handling it differently\r\n    //console.log('Registration failed:', error);\r\n    return error || { status: 500, data: { message: 'An unexpected error occurred.' } };\r\n  }\r\n};\r\n\r\nexport {\r\n  Register,\r\n  forgotPassword,\r\n  login,\r\n  resetPassword,\r\n  profileUpdate\r\n};","import React from 'react';\r\nimport { Link, useNavigate } from 'react-router-dom';\r\nimport logo_icon_64 from '../../assets/images/favicon2.png';\r\nimport { resetPassword } from '../../axios/api/Register';\r\n\r\nimport Cookies from 'universal-cookie';\r\nimport { useState} from 'react';\r\nimport SweetAlert from 'react-bootstrap-sweetalert';\r\n\r\nconst ResetPassword = ()=>{\r\n\r\n    const [sweetsAlert,setSweetAlert] = useState({\r\n        state: false,\r\n        title: \"\",\r\n        icon: \"default\",\r\n        message: \"\"\r\n      });\r\n    const [getRes, setGetRes] = useState(null);\r\n    const [page,setPage] = useState(\"hide\");\r\n    const navigate = useNavigate();\r\n    const cookie = new Cookies();\r\n\r\n\r\n    /*if(Cookies.get(\"authData\"))\r\n    {\r\n        setPage(\"show\");\r\n    }*/\r\n\r\n        const forgotForm = async (e)=>{\r\n            e.preventDefault();\r\n            const input = e.target;\r\n            const password = input.password.value;\r\n            const forgotData = cookie.get('icp_rsd') ? cookie.get('icp_rsd') : null;\r\n\r\n            forgotData.password = password;\r\n            \r\n            const newData = await resetPassword(forgotData);\r\n    \r\n            if(newData.status === 200)\r\n                {\r\n                    if(newData.data.status === 1)\r\n                    {\r\n                        \r\n                        setGetRes(true);\r\n                        cookie.remove('icp_forgot_otp');\r\n                        cookie.remove('icp_reset_msg_id');\r\n                        navigate(\"/login\");\r\n                    }\r\n                }\r\n                else\r\n                {\r\n                    if(newData.response.data.status === 0)\r\n                    {\r\n                        let msg = newData.response.data.message;\r\n                       \r\n                        console.log(newData.response);\r\n    \r\n                        setGetRes(false);\r\n                        return setSweetAlert({\r\n                            state: true,\r\n                            title: \"Failed !\",\r\n                            icon: \"error\",\r\n                            message: msg\r\n                          });\r\n\r\n                       \r\n                    }\r\n                }\r\n        }\r\n\r\n    const Alert = ()=>{\r\n        const alert = (\r\n          <>\r\n            <SweetAlert\r\n              show={sweetsAlert.state}\r\n              title={sweetsAlert.title}\r\n              type={sweetsAlert.icon}\r\n              customButtons={\r\n                <>\r\n                    <div className=\"flex flex-row justify-between items-center\">\r\n                        <div>\r\n                        <button onClick={()=>setSweetAlert({state:false})} className=\"bg-blue-700 text-white px-3 py-1 border\" sx={{ py:1, mr: 2 }}>Cancel</button>\r\n                        </div>\r\n                        <div>\r\n                        {getRes ? <Link to=\"/login\" className=\" bg-green-500 text-white px-3 py-2 border\" sx={{ py:1 }}>Login</Link> : null}\r\n                        </div>\r\n                  </div>\r\n                </>\r\n              }\r\n              onConfirm={()=>{}}\r\n            >\r\n              {sweetsAlert.message}\r\n            </SweetAlert>\r\n          </>\r\n        );\r\n        return alert;\r\n      }\r\n\r\n\r\n    const design = (\r\n        <>\r\n           \r\n           <section className=\"md:h-screen py-36 pb-36 flex items-center  bg-no-repeat bg-center bg-cover\">\r\n                <div className=\"absolute inset-0 bg-gradient-to-b from-transparent to-black\"></div>\r\n                <div className=\"container relative\">\r\n                    <div className=\"flex justify-center\">\r\n                        <div className=\"max-w-[400px] w-full m-auto p-6 bg-white dark:bg-slate-900 shadow-md dark:shadow-gray-800 rounded-md\">\r\n                            <Link to=\"/index\"><img src={logo_icon_64} className=\"mx-auto width40\" alt=\"\" /></Link>\r\n                            \r\n                            <form onSubmit={forgotForm}  className=\"text-start\">\r\n                                <div className=\"grid grid-cols-1\">\r\n                                    <div className=\"mb-4\">\r\n                                        <label className=\"font-semibold\" htmlFor=\"RegisterName\">Password:</label>\r\n                                        <input \r\n                                        id=\"vefiryotp\" \r\n                                        name=\"password\" \r\n                                        type=\"password\" \r\n                                        className=\"form-input mt-3 w-full py-2 px-3 h-10 bg-transparent dark:bg-slate-900 dark:text-slate-200 rounded outline-none border border-gray-200 focus:border-indigo-600 dark:border-gray-800 dark:focus:border-indigo-600 focus:ring-0\" \r\n                                        \r\n                                        required\r\n                                       \r\n                                         />\r\n                                         \r\n                                        \r\n                                        \r\n                                    </div>\r\n                                    <div className=\"mb-4\">\r\n                                        <label className=\"font-semibold\" htmlFor=\"RegisterName\">Confirm Password:</label>\r\n                                        <input \r\n                                        id=\"confirm_password\" \r\n                                        name=\"confirm_password\" \r\n                                        type=\"password\" \r\n                                        className=\"form-input mt-3 w-full py-2 px-3 h-10 bg-transparent dark:bg-slate-900 dark:text-slate-200 rounded outline-none border border-gray-200 focus:border-indigo-600 dark:border-gray-800 dark:focus:border-indigo-600 focus:ring-0\" \r\n                                        \r\n                                        required\r\n                                       \r\n                                         />\r\n                                         \r\n                                        \r\n                                        \r\n                                    </div>\r\n\r\n                                    \r\n\r\n                                    <div className=\"mb-4\">\r\n                                        <button \r\n                                        type=\"submit\" \r\n                                        className=\"py-2 px-5 inline-block font-semibold tracking-wide border align-middle duration-500 text-base text-center bg-indigo-600 hover:bg-indigo-700 border-indigo-600 hover:border-indigo-700 text-white rounded-md w-full\" \r\n                                        value=\"Register\"\r\n                                        \r\n                                        >Reset Now</button>\r\n                                    </div>\r\n\r\n                                    \r\n                                </div>\r\n                            </form>\r\n                            <Alert />\r\n                        </div>\r\n                    </div>\r\n                    \r\n                </div>\r\n            </section>\r\n\r\n           \r\n        </>\r\n    );\r\n    return design;\r\n}\r\n\r\nexport default ResetPassword;"],"names":["axios","defaults","baseURL","baseurl","user","Cookies","get","JSON","parse","token","Register","async","response","post","request_data","headers","apikey","domain","data","localStorage","setItem","error","console","log","status","message","forgotPassword","email","resetPassword","formdata","profileUpdate","ResetPassword","sweetsAlert","setSweetAlert","useState","state","title","icon","getRes","setGetRes","page","setPage","navigate","useNavigate","cookie","Alert","_jsx","_Fragment","children","SweetAlert","show","type","customButtons","_jsxs","className","onClick","sx","py","mr","Link","to","onConfirm","src","logo_icon_64","alt","onSubmit","e","preventDefault","password","target","value","forgotData","newData","remove","msg","htmlFor","id","name","required"],"sourceRoot":""}

Anon7 - 2021