PageSourceSearch

https://sugary.me/_next/static/chunks/app/%5Blang%5D/(platform)/account-deletion/page-2c3e66cf9e448a5c.js

js sugary.me collected 2026-09-24 10:59:45 UTC 11,331 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9823],{4474:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,r:()=>i});var a=r(95155);r(12115);var s=r(42442),l=r(18460),n=r(91337);let i=(0,l.F)("cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg_secondary text-secondary-foreground hover:bg_secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function o({className:e,variant:t,size:r,asChild:l=!1,...d}){let c=l?s.DX:"button";return(0,a.jsx)(c,{"data-slot":"button",className:(0,n.cn)(i({variant:t,size:r,className:e})),...d})}},5872:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(78340).A)("coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},6962:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(78340).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},12651:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(78340).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},13545:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(78340).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},18460:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});var a=r(29722);let s=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=a.$,n=(e,t)=>r=>{var a;if((null==t?void 0:t.variants)==null)return l(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:n,defaultVariants:i}=t,o=Object.keys(n).map(e=>{let t=null==r?void 0:r[e],a=null==i?void 0:i[e];if(null===t)return null;let l=s(t)||s(a);return n[e][l]}),d=r&&Object.entries(r).reduce((e,t)=>{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return l(e,o,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:r,className:a,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...d}[t]):({...i,...d})[t]===r})?[...e,r,a]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},25309:(e,t,r)=>{Promise.resolve().then(r.bind(r,54331)),Promise.resolve().then(r.bind(r,87060)),Promise.resolve().then(r.bind(r,65818))},29857:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(78340).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},42442:(e,t,r)=>{"use strict";r.d(t,{DX:()=>u,TL:()=>c});var a,s=r(12115),l=r(47527),n=r(95155),i=Symbol.for("react.lazy"),o=(a||(a=r.t(s,2)))[" use ".trim().toString()];function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===i&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function c(e){var t;let r,a=(t=e,(r=s.forwardRef((e,t)=>
1{let{children:r,...a}=e;if(d(r)&&"function"==typeof o&&(r=o(r._payload)),s.isValidElement(r)){var n;let e,i,o=(n=r,(i=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(i=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),d=function(e,t){let r={...t};for(let a in t){let s=e[a],l=t[a];/^on[A-Z]/.test(a)?s&&l?r[a]=(...e)=>{let t=l(...e);return s(...e),t}:s&&(r[a]=s):"style"===a?r[a]={...s,...l}:"className"===a&&(r[a]=[s,l].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==s.Fragment&&(d.ref=t?(0,l.t)(t,o):o),s.cloneElement(r,d)}return s.Children.count(r)>1?s.Children.only(null):null})).displayName=`${t}.SlotClone`,r),i=s.forwardRef((e,t)=>{let{children:r,...l}=e;d(r)&&"function"==typeof o&&(r=o(r._payload));let i=s.Children.toArray(r),c=i.find(p);if(c){let e=c.props.children,r=i.map(t=>t!==c?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,n.jsx)(a,{...l,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,r):null})}return(0,n.jsx)(a,{...l,ref:t,children:r})});return i.displayName=`${e}.Slot`,i}var u=c("Slot"),h=Symbol("radix.slottable");function p(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}},47166:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(78340).A)("earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},56204:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(78340).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},68459:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(78340).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},87060:(e,t,r)=>{"use strict";r.d(t,{default:()=>f});var a=r(95155),s=r(12115),l=r(39658),n=r(4474),i=r(35844),o=r(37002),d=r(66609),c=r(6296),u=r(68459),h=r(56204),p=r(13545),m=r(12651),x=r(91337),y=r(2125);function f(){let[e,t]=(0,s.useState)(null),[r,f]=(0,s.useState)(!1),[v,b]=(0,s.useState)(null),[g,k]=(0,s.useState)(null),w=(0,o.useGlobalStore)(e=>e[o.X.CurrentUser]),j=(0,o.useGlobalStore)(e=>e[o.X.IsHydrated]),N=e??(w?.Email||w?.PhoneNumber||""),A=async e=>{if(e.preventDefault(),!N.trim())return void d.oR.error("Please enter your phone or email");f(!0),k(null),b(null);try{let e=`${y.u4.REQUEST_DELETE}?phoneOrEmail=${encodeURIComponent(N)}`,t=await i.u.get(e,{cache:"no-store"}),r=await t.json();b(r),r.Success?d.oR.success("Request processed successfully"):(k(r.Message||"Something went wrong"),d.oR.error(r.Message||"Deletion check failed"))}catch(t){console.error("API Error:",t);let e=t.message||"Connection failed";k(e),d.oR.error(e)}finally{f(!1)}};return j?(0,a.jsx)("div",{className:"min-h-screen px-4 lg:px-6 pt-[120px] pb-24 flex flex-col items-center justify-center animate-in fade-in duration-500",children:(0,a.jsxs)("div",{className:"w-full max-w-md px-8 py-10 squircle glass_card border border-white/10 shadow-2xl relative overflow-hidden transition-all duration-300",children:[(0,a.jsx)("div",{className:"absolute -top-12 -right-12 w-32 h-32 bg-primary/10 blur-[60px] rounded-full pointer-events-none"}),(0,a.jsx)("div",{className:"absolute -bottom-12 -left-12 w-32 h-32 bg-red-500/5 blur-[60px] rounded-full pointer-events-none"}),(0,a.jsxs)("div",{className:"relative z-10 flex flex-col items-center text-center",children:[(0,a.jsx)("div",{className:"mb-6 p-3 bg-white/5 rounded-2xl border border-white/5 shadow-inner",children:(0,a.jsx)(u.A,{className:"w-8 h-8 text-white/80"})}),(0,a.jsx)("h1",{className:"text-3xl font-bricolage font-bold text-white mb-2 tracking-tight",children:"Account Deletion"}),!v?.Success&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-white/50 text-sm mb-8 px-4 leading-relaxed",children:"Verify your information to process your account deleti
1on request."}),(0,a.jsxs)("form",{onSubmit:A,className:"w-full space-y-4",children:[(0,a.jsx)("div",{className:"relative group",children:(0,a.jsx)(l.p,{type:"text",placeholder:"Phone or Email",value:N,onChange:e=>t(e.target.value),className:"h-14 px-5 bg-white/5 border-white/10 rounded-xl text-base text-white placeholder:text-white/20 focus:bg-white/10 transition-all duration-300 text-center",disabled:r})}),(0,a.jsx)(n.$,{type:"submit",disabled:r,className:(0,x.cn)("w-full h-14 rounded-xl text-base font-bold transition-all duration-500 overflow-hidden relative group",r?"bg-white/20 cursor-wait":"bg-white text-black hover:bg-white/90 active:scale-[0.98]"),children:r?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)(c.A,{className:"w-5 h-5 animate-spin"}),(0,a.jsx)("span",{children:"Processing..."})]}):(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)("span",{children:"Submit Request"}),(0,a.jsx)(h.A,{className:"w-4 h-4 transition-transform group-hover:translate-x-1"})]})})]})]}),(v||g)&&(0,a.jsx)("div",{className:"w-full mt-8 animate-in slide-in-from-top-4 duration-300 zoom-in-95",children:(0,a.jsxs)("div",{className:(0,x.cn)("p-5 rounded-2xl border text-left flex gap-3 items-start shadow-xl",g?"bg-red-500/10 border-red-500/20":"bg-green-500/10 border-green-500/20"),children:[(0,a.jsx)("div",{className:"shrink-0 mt-0.5",children:g?(0,a.jsx)(p.A,{className:"w-5 h-5 text-red-400"}):(0,a.jsx)(m.A,{className:"w-5 h-5 text-green-400"})}),(0,a.jsx)("div",{className:"space-y-1 overflow-hidden",children:(0,a.jsx)("div",{className:"text_gray_70 font-sans text-sm leading-relaxed",children:g?(0,a.jsx)("div",{className:"text-lg break-all bg-black/30 p-3 rounded-lg border border-white/5 max-h-[150px] overflow-y-auto",children:JSON.stringify({error:g},null,2)}):(0,a.jsxs)("p",{className:"text-lg font-semibold",children:["Your Request has been submitted.",(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"opacity-80 text-sm mt-2 block",children:"You will be notified once Team Sugary will delete all of your data associated with the requested email or phone number."})]})})})]})})]})]})}):(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-background",children:(0,a.jsx)(c.A,{className:"w-10 h-10 animate-spin text-white/20"})})}},92451:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(78340).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])}},e=>{e.O(0,[4199,6558,8409,7138,8468,4471,8905,1738,6700,5772,1053,2974,6766,4419,9811,5818,8441,3794,7358],()=>e(e.s=25309)),_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.