1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2cd21d1e-3a81-4bc4-9a1d-80fbe89d1b3e",e._sentryDebugIdIdentifier="sentry-dbid-2cd21d1e-3a81-4bc4-9a1d-80fbe89d1b3e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74787],{10535:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var n=s(37876),i=s(14232),a=s(77328),r=s.n(a),l=s(96117),o=s(7946);function c(e){let{loader:t,handleCallback:s}=e;return(0,n.jsxs)("div",{className:"max-w-md w-full bg-white shadow-xl form flex flex-col gap-7 px-5 py-10",children:[(0,n.jsx)("h1",{className:"text-3xl text-gray-600 text-center",children:"Login to continue"}),t?(0,n.jsx)(o.kr,{}):(0,n.jsx)(l.A,{handleCallback:s,mode:"signin_with",client:"375470658850-hguf59glumh7v3s2fqsn94lkk7rtqonf.apps.googleusercontent.com"})]})}var d=s(77636),u=s(20045),h=s.n(u);function m(){let[e,t]=(0,i.useState)(null),[s,a]=(0,i.useState)(!1),[l,u]=(0,i.useState)(!1),[m,p]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1),[x,w]=(0,i.useState)(null);(0,i.useEffect)(()=>{{let e=sessionStorage.getItem("account_session"),s=(0,d.T)(e);s&&t(JSON.parse(s))}return()=>{}},[]);let v=async e=>{a(!0);let s=new FormData;s.append("email",e.email),s.append("api_name","GET_USER");let n=await fetch("https://vedicrishi.in/app-services/account_sync.php",{method:"POST",body:s}),i=await n.json();i.status&&(sessionStorage.setItem("account_session",(0,d.d)(JSON.stringify({userid:i.data,email:e.email}))),t({userid:i.data,email:e.email})),a(!1)},b=async()=>{u(!0);let t=new FormData;if(t.append("email",e.email),t.append("api_name","DEL_ACC"),f){u(!1);let e=await fetch("https://vedicrishi.in/app-services/account_sync.php",{method:"POST",body:t});(await e.json()).status&&(p(!0),sessionStorage.removeItem("account_session"))}else u(!1),w("Please select checkbox")};return null!=x&&setTimeout(()=>w(null),2e3),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r(),{children:[(0,n.jsx)("title",{children:"Account Delete"}),(0,n.jsx)("meta",{name:"description",content:""}),(0,n.jsx)("meta",{name:"keywords",content:"Vedic rishi support"})]}),(0,n.jsx)("div",{className:"bg-zinc-100 min-h-screen",children:e?(0,n.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,n.jsx)("div",{className:"w-[200px] ",children:(0,n.jsx)("img",{alt:"Vedicrishii",className:"w-full",src:"https://astro-vedicrishi-in.b-cdn.net/web-vedicrishi/images/logo/vedic-rishi-logo.png"})}),(0,n.jsx)("div",{className:"".concat(null!==x?h().errorAnimation:""," bg-white w-full p-7 md:p-10 flex flex-col gap-5"),children:m?(0,n.jsxs)("p",{className:"text-zinc-800 md:text-lg ",children:[(0,n.jsx)("b",{className:"font-ptsans_medium md:text-2xl text-xl",children:"Dear User"}),",",(0,n.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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:"md:text-3xl text-2xl text-center",children:"Your Account Deletion"}),(0,n.jsxs)("div",{className:"flex gap-3 items-start",children:[(0,n.jsx)("input",{value:f,onChange:()=>{g(e=>!e)},type:"checkbox",className:"w-[20px] mt-2"}),(0,n.jsx)("p",{className:"text-lg",children:"Delete my account and all the data associated with it. Please note this can not be reversed."})]}),(0,n.jsx)("button",{onClick:b,className:"bg-red-500 w-full hover:bg-red-600 text-lg text-white font-ptsans_bold px-5 py-3 rounded-md",children:l?(0,n.jsx)(o.Xj,{}):"Delete My Account"})]})})]}):(0,n.jsxs)("div",{className:"md:py-10 px-5 py-10 flex flex-col gap-10 items-center justify-center",children:[(0,n.jsx)("div",{className:"w-[200px] ",children:(0,n.jsx)("img",{alt:"Vedicrishii",className:"w-full",src:"https://astro-vedicrishi-in.b-cdn.net/web-vedicrishi/images/logo/vedic-rishi-logo.png"})}),(0,n.jsx)(c,{loader:s,handleCallback:v})]})})]})}m.getLayout=function(e){return(0,n.jsx)(n.Fragment,{children:e})}},67156:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var n=s(37876);function i(e){let{className:t="h-4 w-4"}=e;return(0,n.jsxs)("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,n.jsx)("path",{d:"M21 12a9 9 0 0 0-9-9",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",children:(0,n.jsx)("animateTransform",{attributeName:"transform",dur:"0.75s",from:"0 12 12",repeatCount:"indef
1inite",to:"360 12 12",type:"rotate"})})]})}s(14232)},72493:(e,t,s)=>{"use strict";async function n(e){let t,s,{url:n,method:i="POST",data:a,token:r,turnstileToken:l}=e;try{t=await fetch("/api/user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:n,method:i,data:a,token:r,turnstileToken:l})})}catch(e){throw Error((null==e?void 0:e.message)||"Unable to reach webapp API.")}try{s=await t.json()}catch(e){throw Error("Invalid response from webapp API.")}if(!t.ok||(null==s?void 0:s.success)===!1||(null==s?void 0:s.status)===!1)throw Error((null==s?void 0:s.message)||(null==s?void 0:s.error)||(null==s?void 0:s.msg)||"Unable to complete request.");return{success:!0,...s}}s.d(t,{d:()=>n})},77636:(e,t,s)=>{"use strict";s.d(t,{T:()=>a,d:()=>i});var n=s(88220).Buffer;function i(e){return e?n.from(e,"utf8").toString("base64"):null}function a(e){return"string"!=typeof e?null:n.from(e,"base64").toString("utf8")}},88244:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-delete",function(){return s(10535)}])},96117:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var n=s(37876),i=s(14232),a=s(67156),r=s(72493),l=s(54505),o=s(69604);let c="google-identity-services";function d(e){let{client:t,mode:s,handleCallback:d,authPendingAction:h,isAuthPending:m=!1,runAuthAction:p}=e,f=(0,i.useRef)(null),g=(0,i.useRef)(!1),[x,w]=(0,i.useState)(!1),[v,b]=(0,i.useState)(""),y="917409720272-dp15r0hji0t0661v9f53efj000b1bnbv.apps.googleusercontent.com",j=h===l.zY.GOOGLE_LOGIN,_=p||((e,t)=>t());(0,i.useEffect)(()=>{let e=document.getElementById(c);if(e){var t,s;w(!!(null==(s=window.google)||null==(t=s.accounts)?void 0:t.oauth2)),e.addEventListener("load",()=>w(!0));return}let n=document.createElement("script");n.id=c,n.src="https://accounts.google.com/gsi/client",n.async=!0,n.defer=!0,n.onload=()=>w(!0),n.onerror=()=>b("Unable to load Google login."),document.head.appendChild(n)},[]),(0,i.useEffect)(()=>{let e=()=>{g.current&&window.setTimeout(()=>{g.current=!1},800)};return window.addEventListener("focus",e),()=>{window.removeEventListener("focus",e)}},[]);let N=async e=>{if(d)return void await d({name:e.name,email:e.email,picture:e.picture});let t=await (0,r.d)({url:l.Qi.GOOGLE_LOGIN,method:"POST",data:{name:e.name,email:e.email,picture:e.picture,api_version:"v1"}});if(!(null==t?void 0:t.success))throw Error((null==t?void 0:t.message)||"Google login failed.");window.location.replace((0,o.Ji)())},k=async()=>{var e,t;if(!m&&!g.current){if(b(""),!y)return void b("Google client id is missing.");if(!x||!(null==(t=window.google)||null==(e=t.accounts)?void 0:e.oauth2))return void b("Google login is still loading. Please try again.");g.current=!0,f.current=window.google.accounts.oauth2.initTokenClient({client_id:y,scope:"openid email profile",callback:async e=>{g.current=!1;try{if(e.error)throw Error(e.error);let t=await fetch("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:"Bearer ".concat(e.access_token)}}),s=await t.json();await _(l.zY.GOOGLE_LOGIN,()=>N(s))}catch(e){b(e.message||"Google login failed.")}},error_callback:()=>{g.current=!1}}),f.current.requestAccessToken({prompt:"select_account"})}};return(0,n.jsxs)("div",{className:"flex w-full flex-col items-center gap-2",children:[(0,n.jsxs)("button",{type:"button",onClick:k,disabled:m,className:"flex h-12 w-full items-center justify-center gap-3 rounded-lg border border-gray-300 bg-white px-4 text-base font-semibold text-gray-700 transition hover:border-gray-400 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-70",children:[j?(0,n.jsx)(a.A,{}):(0,n.jsx)(u,{}),j?"Logging in...":"signup_with"===s?"Sign up with Google":"Login with Google"]}),v&&(0,n.jsx)("p",{className:"text-center text-xs text-rose-600",children:v})]})}function u(){return(0,n.jsxs)("svg",{className:"h-5 w-5",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,n.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09Z"}),(0,n.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23Z"}),(0,n.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.1c-.22-.66-.35-1.36-.35-2.1s.13-1.44.35-2.1V7.06H2.18A10.94 10.94 0 0 0 1 12c0 1.77.42 3.45 1.18 4.94l3.66-2.84Z"}),(0,n.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06L5.84 9.9C6.71 7.31 9.14 5.38 12 5.38Z"})]})}}},e=>{e.O(0,[88220,90636,46593,38792],()=>e(e.s=88244)),_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.