PageSourceSearch

https://upastrology.com/_next/static/chunks/pages/account-delete-4cd1fb65d7cef778.js

js upastrology.com collected 2026-10-01 16:38:12 UTC 8,976 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[16406],{92354:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-delete",function(){return n(21152)}])},79550:function(e,t,n){"use strict";n.d(t,{f:function(){return r},h:function(){return s}});var a=n(48764).lW;function s(e){return e?a.from(e,"utf8").toString("base64"):null}function r(e){return"string"!=typeof e?null:a.from(e,"base64").toString("utf8")}},45091:function(e,t,n){"use strict";n.d(t,{By:function(){return d},Dd:function(){return i},GX:function(){return c},mF:function(){return o},zM:function(){return l}});var a=n(85893);n(67294);var s=n(39411),r=n.n(s);function i(){return(0,a.jsx)("div",{className:"w-full flex py-2 justify-center",children:(0,a.jsx)("div",{className:"stage",children:(0,a.jsx)("div",{className:"".concat(r()["dot-pulse"])})})})}function o(){return(0,a.jsx)("div",{className:"",children:(0,a.jsx)("div",{className:"stage",children:(0,a.jsx)("div",{className:"".concat(r()["dot-pulse"])})})})}function l(e){let{width:t,height:n}=e;return(0,a.jsx)("div",{className:"flex mx-auto ".concat(t||"w-[50px]"," ").concat(n||"w-[50px]"," justify-center "),children:(0,a.jsx)("svg",{className:"w-full h-full fill-purple-500",version:"1.1",id:"L9",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 100 100",enableBackground:"new 0 0 0 0",children:(0,a.jsx)("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50",children:(0,a.jsx)("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:".6s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})})})}function c(){return(0,a.jsx)("div",{className:"flex w-full justify-center ",children:(0,a.jsx)("svg",{className:"w-6 h-6",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#fff",children:(0,a.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,a.jsxs)("g",{transform:"translate(1 1)",strokeWidth:"3",children:[(0,a.jsx)("circle",{strokeOpacity:".4",cx:"18",cy:"18",r:"18"}),(0,a.jsx)("path",{d:"M36 18c0-9.94-8.06-18-18-18",children:(0,a.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})})]})})})})}function d(){return(0,a.jsx)("div",{className:"flex h-screen items-center justify-center dark:bg-[#2F2F31] bg-white pt-20",children:(0,a.jsx)("div",{className:"w-12 h-12 border-4 border-[#E98B86] border-t-transparent rounded-full animate-spin"})})}},21152:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var a=n(85893),s=n(67294),r=n(9008),i=n.n(r),o=n(79550),l=n(45091),c=n(39411),d=n.n(c);function u(e){this.message=e}u.prototype=Error(),u.prototype.name="InvalidCharacterError";var m="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new u("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,a,s=0,r=0,i="";a=t.charAt(r++);~a&&(n=s%4?64*n+a:a,s++%4)&&(i+=String.fromCharCode(255&n>>(-2*s&6))))a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return i};function f(e){this.message=e}f.prototype=Error(),f.prototype.name="InvalidTokenError";var p=function(e,t){if("string"!=typeof e)throw new f("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t,n=e.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return t=n,decodeURIComponent(m(t).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}catch(e){return m(n)}}(e.split(".")[n]))}catch(e){throw new f("Invalid token specified: "+e.message)}},x=n(11163);function h(e){let{client:t,mode:n,handleCallback:r}=e;(0,x.useRouter)();let i=async e=>{let t=p(e.credential);r&&await r({name:t.name,email:t.email})};window.GoogleAuthSuccess=i;let o=(0,s.useRef)();return(0,s.useEffect)(()=>{let e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,o.current&&o.current.appendChild(e),()=>{var t;null===(t=o.current)||void 0===t||t.removeChild(e)}},[o]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:o}),(0,a.jsx)("div",{id:"g_id_onload","data-client_id":t,"data-text":"Sign in with google","data-auto_prompt":"true","data-callback":"GoogleAuthSuccess"}),(0,a.jsx)("div",{className:"flex flex-col items-center mt-[-50px]",children:(0,a.jsx)("div",{className:"g_id_signin","data-type":"standard","data-size":"large","data-theme":"outline","data-text":n||"signin_with","data-shape":"rectangular","data-width":"320","data-logo_alignment":"center"})})]})}function g(e){let{loader:t,handleCallback:n}=e;return(0,a.jsxs)("div",{className:"max-w-md w-full bg-white  shadow-xl form  flex flex-col gap-7 px-5 py-10",children:[(0,a.jsx)("h1",{className:"text-3xl text-gray-600 text-center font-cera_medium",children:"Login to continue"}),t?(0,a.jsx)(l.zM,{}):(0,a.jsx)(h,{handleCallback:n,mode:"signin_with",client:"917409720272-dp15r0hji0t0661v9f53efj000b1bnbv.a
1pps.googleusercontent.com"})]})}function w(){let[e,t]=(0,s.useState)(null),[n,r]=(0,s.useState)(!1),[c,u]=(0,s.useState)(!1),[m,f]=(0,s.useState)(!1),[p,x]=(0,s.useState)(!1),[h,w]=(0,s.useState)(null);(0,s.useEffect)(()=>{{let e=sessionStorage.getItem("account_session"),n=(0,o.f)(e);n&&t(JSON.parse(n))}return()=>{}},[]);let j=async e=>{r(!0);let n=new FormData;n.append("email",e.email),n.append("api_name","GET_USER");let a=await fetch("https://php.upastrology.com/services/western_account_sync.php",{method:"POST",body:n});if(a.ok){let n=await a.json();n.status&&(sessionStorage.setItem("account_session",(0,o.h)(JSON.stringify({userid:n.data,email:e.email}))),t({userid:n.data,email:e.email}))}else w("No user found");r(!1)},v=async()=>{u(!0);let t=new FormData;if(t.append("email",e.email),t.append("api_name","DEL_ACC"),p){u(!1);let e=await fetch("https://php.upastrology.com/services/western_account_sync.php",{method:"POST",body:t});(await e.json()).status&&(f(!0),sessionStorage.removeItem("account_session"))}else u(!1),w("Please select checkbox")};return null!=h&&setTimeout(()=>w(null),2e3),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:"Account Delete"}),(0,a.jsx)("meta",{name:"description",content:""}),(0,a.jsx)("meta",{name:"keywords",content:"Vedic rishi support"})]}),(0,a.jsx)("div",{className:"bg-zinc-100 min-h-screen",children:e?(0,a.jsxs)("div",{className:" flex flex-col gap-10 items-center md:py-14 py-10 flex max-w-lg mx-auto w-full",children:[(0,a.jsx)("div",{className:"w-[200px]  ",children:(0,a.jsx)("img",{src:"https://upastrology-com.b-cdn.net/web/images/common/logo.svg",alt:"upastrology logo",className:" w-full "})}),(0,a.jsx)("div",{className:"".concat(null!==h?d().errorAnimation:""," bg-white w-full p-7 md:p-10 flex flex-col gap-5"),children:m?(0,a.jsxs)("p",{className:"text-zinc-800 md:text-lg ",children:[(0,a.jsx)("b",{className:"font-cera_medium md:text-2xl text-xl",children:"Dear User"}),",",(0,a.jsx)("br",{})," Your account deletion request has been received. Please note that the process will be completed in 15 days. We appreciate your patience. Thank you."]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"md:text-3xl text-2xl font-cera_medium text-center",children:"Your Account Deletion"}),(0,a.jsxs)("div",{className:"flex gap-3 items-start",children:[(0,a.jsx)("input",{value:p,onChange:()=>{x(e=>!e)},type:"checkbox",className:"w-[20px] mt-2"}),(0,a.jsx)("p",{className:"text-lg",children:"Delete my account and all the data associated with it. Please note this can not be reversed."})]}),(0,a.jsx)("button",{onClick:v,className:"bg-red-500  w-full hover:bg-red-600 text-lg text-white font-cera_bold px-5 py-3 rounded-md",children:c?(0,a.jsx)(l.Dd,{}):"Delete My Account"})]})})]}):(0,a.jsxs)("div",{className:"md:py-10 px-5 py-10 flex flex-col gap-10 items-center justify-center",children:[(0,a.jsx)("div",{className:"w-[200px]  ",children:(0,a.jsx)("img",{src:"https://upastrology-com.b-cdn.net/web/images/common/logo.svg",alt:"upastrology logo",className:" w-full "})}),(0,a.jsx)(g,{loader:n,handleCallback:j}),h&&(0,a.jsx)("span",{className:"font-cera_medium text-red-500 md:text-2xl text-xl text-center",children:h})]})})]})}w.getLayout=function(e){return(0,a.jsx)(a.Fragment,{children:e})}},39411:function(e){e.exports={"dot-pulse":"animation_dot-pulse__Lbikg",dotPulse:"animation_dotPulse__6Ramb",dotPulseBefore:"animation_dotPulseBefore__zWRxp",dotPulseAfter:"animation_dotPulseAfter__8lGzZ",svganimate:"animation_svganimate__RZnGf",svganimation:"animation_svganimation___cDzx",errorAnimation:"animation_errorAnimation__a_gZV",erroranimation:"animation_erroranimation__Y22zO"}}},function(e){e.O(0,[48764,92888,49774,40179],function(){return e(e.s=92354)}),_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.