PageSourceSearch

https://fieldintelligencetribe.com/assets/AccountDeleteConfirm-BPTXO8Fc.js

js fieldintelligencetribe.com collected 2026-10-04 05:36:29 UTC 2,689 bytes, 1 lines download raw bytes

1import{a as N,n as P,q as b,r as o,s as v,j as e,B as l}from"./index-BhaiL37n.js";import{L as D}from"./loader-circle-DXegU5nq.js";import{C as y}from"./circle-check-GCgDlV3Y.js";import{T as w}from"./Trans-D6U2KtJk.js";import{T as C}from"./triangle-alert-D6edmJHw.js";function E(){var m;const{t,i18n:x}=N(),[f]=P(),s=b(),r=f.get("token")||"",[a,c]=o.useState("loading"),[g,i]=o.useState(""),[u,p]=o.useState(null);o.useEffect(()=>{let d=!1;return(async()=>{if(!r){c("error"),i(t("accountDeletion.confirmPage.noToken"));return}const{data:n,error:k}=await v.functions.invoke("confirm-account-deletion",{body:{token:r}});d||(k||n!=null&&n.error?(c("error"),i((n==null?void 0:n.error)||t("accountDeletion.confirmPage.invalidLink"))):(c("ok"),p((n==null?void 0:n.scheduledPurgeAt)||null)))})(),()=>{d=!0}},[r,t]);const h=(m=x.language)!=null&&m.startsWith("en")?"en-GB":"nl-NL",j=u?new Date(u).toLocaleDateString(h,{day:"numeric",month:"long",year:"numeric"}):null;return e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-4 py-16",children:e.jsxs("div",{className:"w-full max-w-lg bg-white rounded-xl border border-border shadow-sm p-8",children:[a==="loading"&&e.jsxs("div",{className:"flex flex-col items-center text-center gap-3",children:[e.jsx(D,{className:"h-6 w-6 animate-spin text-muted-foreground"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t("accountDeletion.confirmPage.loading")})]}),a==="ok"&&e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(y,{className:"h-10 w-10 mx-auto text-[hsl(var(--coral))]"}),e.jsx("h1",{className:"font-display text-2xl font-bold",children:t("accountDeletion.confirmPage.okTitle")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:e.jsx(w,{i18nKey:"accountDeletion.confirmPage.okBody",values:{date:j??t("accountDeletion.confirmPage.okFallbackDate")},components:{strong:e.jsx("strong",{}),em:e.jsx("em",{})}})}),e.jsxs("div",{className:"flex justify-center gap-2 pt-2",children:[e.jsx(l,{variant:"outline",onClick:()=>s("/portal/profile?tab=subscription"),children:t("accountDeletion.confirmPage.toProfile")}),e.jsx(l,{onClick:()=>s("/"),children:t("accountDeletion.confirmPage.toSite")})]})]}),a==="error"&&e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(C,{className:"h-10 w-10 mx-auto text-[hsl(var(--coral))]"}),e.jsx("h1",{className:"font-display text-2xl font-bold",children:t("accountDeletion.confirmPage.errorTitle")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e.jsx(l,{variant:"outline",onClick:()=>s("/portal/profile?tab=subscription"),children:t("accountDeletion.confirmPage.toProfile")})]})]})})}export{E as default};

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.