PageSourceSearch

https://printarex.com/assets/SettingsPage-B6qbDf6M.js

js printarex.com collected 2026-10-02 06:28:40 UTC 58,205 bytes, 43 lines download raw bytes

1import{c as Ne,b as p,j as e,aA as H,aC as X,aD as W,aE as Y,b3 as _,I as P,b4 as I,B as f,aI as Dt,ai as le,Y as j,h as Se,a0 as G,a3 as $,a4 as z,a1 as J,D as Mt,y as Et,G as Pt,J as St,d as Tt,u as Ot,a as Ft,ab as Me,a6 as At,cm as Lt,cn as Rt,co as Wt,cp as Yt,S as ie,n as _t,aW as It,t as Ke,b5 as Bt}from"./index-COb3BWG8.js";import{L as S}from"./label-DNJsNNpl.js";import{B as Te}from"./badge-BtMzbs5Q.js";import{A as ce,b as oe,a as qe}from"./alert-BcZXKgYj.js";import{u as qt}from"./use-toast-BXBb_A5U.js";import{S as Ut,E as Qt,D as Ht,h as Xt,l as Ee,m as Vt,n as Gt,o as $t}from"./returns-CNCTRRtN.js";import{S as zt}from"./emailVerification-CUa_Xbrm.js";import{Q as Jt}from"./index-MevfkPFD.js";import{O as Kt}from"./OtpInput-BRO2BZsk.js";import{L as R}from"./loader-circle-OXwY4kRz.js";import{C as Oe}from"./copy-BpNy9jqS.js";import{D as Ze}from"./download-DnUvfH58.js";import{u as B}from"./useMutation-BQY-xsoU.js";import{T as de}from"./triangle-alert-BLtiBg_s.js";import{E as Zt}from"./ellipsis-C1Q3tS1k.js";import{S as ea}from"./smartphone-C_rdlJMT.js";import{S as Ue}from"./shield-f_xgTcDn.js";import{C as ta}from"./circle-check-BvfgDFVk.js";import{C as aa}from"./clock-3-CMAc593Q.js";import{K as sa}from"./key-round-CIwTIlwk.js";import{R as ra}from"./refresh-cw-CoRVSjNV.js";import{B as na}from"./bell-Dyv3Q0M1.js";import"./useIsomorphicLayoutEffect-D8rpVvO2.js";/**
2 * @license lucide-react v0.468.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const ia=Ne("MonitorCheck",[["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]]);/**
7 * @license lucide-react v0.468.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const et=Ne("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
12 * @license lucide-react v0.468.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const ca=Ne("ShieldOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]);/**
17 * @license lucide-react v0.468.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const oa=Ne("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]),la=({open:t,onOpenChange:a,onSuccess:s})=>{const[r,n]=p.useState("password"),[c,o]=p.useState(""),[i,h]=p.useState(""),[m,l]=p.useState(""),[y,u]=p.useState([]),[d,g]=p.useState(""),[v,T]=p.useState(!1),[C,{loading:O}]=B(Ut),[D,{loading:F}]=B(Qt),K=()=>{n("password"),o(""),h(""),l(""),u([]),g(""),T(!1)},ae=b=>{b||K(),a(b)},Z=async()=>{var b,A,M;if(!c){j.error("Please enter your password");return}try{const{data:N}=await C({variables:{password:c}});(b=N==null?void 0:N.setupMfa)!=null&&b.success?(h(N.setupMfa.secret||""),l(N.setupMfa.qrCodeUrl||""),u(N.setupMfa.backupCodes||[]),n("qrcode")):j.error("Failed to set up 2FA")}catch(N){const q=((M=(A=N.graphQLErrors)==null?void 0:A[0])==null?void 0:M.message)||N.message||"Failed to set up 2FA";j.error(q)}},me=async()=>{var b,A;if(d.length<6){j.error("Please enter a 6-digit code");return}try{const{data:M}=await D({variables:{code:d}});M!=null&&M.enableMfa?(j.success("Two-factor authentication enabled"),n("backup")):j.error("The code you entered is incorrect. Please check your authenticator app and try again.")}catch(M){const N=((A=(b=M.graphQLErrors)==null?void 0:b[0])==null?void 0:A.message)||"",q=N.toLowerCase();q.includes("invalid")&&q.includes("code")?j.error("The verification code is incorrect or has expired. Please enter the latest code from your authenticator app."):q.includes("not initiated")||q.includes("setup")?j.error("MFA setup session expired. Please close this dialog and try again."):N?j.error(N):j.error("Could not verify the code. Please try again or restart the setup.")}},se=async()=>{try{await navigator.clipboard.writeText(i),T(!0),j.success("Secret 
21copied to clipboard"),setTimeout(()=>T(!1),2e3)}catch{j.error("Failed to copy")}},fe=async()=>{try{await navigator.clipboard.writeText(y.join(`
22`)),j.success("Backup codes copied to clipboard")}catch{j.error("Failed to copy")}},ee=()=>{const b=`PrintaRex Backup Codes
23${"=".repeat(30)}
24
25Store these codes in a safe place.
26Each code can only be used once.
27
28${y.join(`
29`)}
30
31Generated: ${new Date().toISOString()}
32`,A=new Blob([b],{type:"text/plain"}),M=URL.createObjectURL(A),N=document.createElement("a");N.href=M,N.download="printarex-backup-codes.txt",N.click(),URL.revokeObjectURL(M)},xe=()=>{K(),a(!1),s()};return e.jsx(H,{open:t,onOpenChange:ae,children:e.jsxs(X,{className:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-md",onInteractOutside:b=>b.preventDefault(),onEscapeKeyDown:b=>b.preventDefault(),children:[r==="password"&&e.jsxs(e.Fragment,{children:[e.jsxs(W,{children:[e.jsx(Y,{children:"Enable Two-Factor Authentication"}),e.jsx(_,{children:"Enter your password to begin setting up 2FA for your account."})]}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"mfa-password",children:"Password"}),e.jsx(P,{id:"mfa-password",type:"password",value:c,onChange:b=>o(b.target.value),placeholder:"Enter your password",onKeyDown:b=>b.key==="Enter"&&Z()})]})}),e.jsxs(I,{children:[e.jsx(f,{variant:"outline",onClick:()=>ae(!1),children:"Cancel"}),e.jsxs(f,{onClick:Z,disabled:O||!c,children:[O&&e.jsx(R,{className:"h-4 w-4 mr-2 animate-spin"}),"Continue"]})]})]}),r==="qrcode"&&e.jsxs(e.Fragment,{children:[e.jsxs(W,{children:[e.jsx(Y,{children:"Scan QR Code"}),e.jsx(_,{children:"Scan this QR code with your authenticator app (e.g., Google Authenticator, Authy)."})]}),e.jsxs("div",{className:"space-y-4",children:[m&&e.jsx("div",{className:"flex justify-center p-4 bg-white rounded-lg",children:e.jsx(Jt,{value:m,size:192,role:"img","aria-label":"QR Code for 2FA setup"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"Can't scan the QR code? Enter this secret manually:"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("code",{className:"flex-1 text-xs bg-muted px-3 py-2 rounded-lg font-mono break-all text-center",children:i}),e.jsx(f,{variant:"outline",size:"icon",onClick:se,className:"shrink-0",children:v?e.jsx(Dt,{className:"h-4 w-4 text-primary"}):e.jsx(Oe,{className:"h-4 w-4"})})]})]}),e.jsxs("div",{className:"rounded-[14px] border border-primary/20 bg-primary/5 p-3",children:[e.jsx("p",{className:"text-sm text-foreground",children:"Need an authenticator app? Download Google Authenticator before scanning."}),e.jsxs("div",{className:"mt-2 grid grid-cols-2 gap-2",children:[e.jsxs("a",{href:"https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2",target:"_blank",rel:"noreferrer",className:"flex h-11 items-center justify-center gap-1 rounded-[14px] border bg-background px-2 text-xs font-medium text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:["Google Play",e.jsx(le,{className:"h-3.5 w-3.5","aria-hidden":"true"})]}),e.jsxs("a",{href:"https://apps.apple.com/app/google-authenticator/id388497605",target:"_blank",rel:"noreferrer",className:"flex h-11 items-center justify-center gap-1 rounded-[14px] border bg-background px-2 text-xs font-medium text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:["App Store",e.jsx(le,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})]})]})]}),e.jsxs(I,{children:[e.jsx(f,{variant:"outline",onClick:()=>n("password"),children:"Back"}),e.jsx(f,{onClick:()=>n("verify"),children:"Next"})]})]}),r==="verify"&&e.jsxs(e.Fragment,{children:[e.jsxs(W,{children:[e.jsx(Y,{children:"Verify Setup"}),e.jsx(_,{children:"Enter the 6-digit code from your authenticator app to verify the setup."})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsx(Kt,{value:d,onChange:g,disabled:F})}),e.jsxs(I,{children:[e.jsx(f,{variant:"outline",onClick:()=>n("qrcode"),children:"Back"}),e.jsxs(f,{onClick:me,disabled:F||d.length<6,children:[F&&e.jsx(R,{className:"h-4 w-4 mr-2 animate-spin"}),"Verify & Enable"]})]})]}),r==="backup"&&e.jsxs(e.Fragment,{children:[e.jsxs(W,{children:[e.jsxs(Y,{className:"flex items-center gap-2",children:[e.jsx(le,{className:"h-5 w-5 text-primary"}),"Save Backup Codes"]}),e.jsx(_,{children:"Store these backup codes in a safe place. Each code can only be used once to sign in if you lose access to your authenticator app."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"grid grid-cols-2 gap-2 p-4 bg-muted rounded-lg",children:y.map((b,A)=>e.jsx("code",{className:"text-sm font-mono text-center py-1",children:b},A))}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(f,{variant:"outline",className:"flex-1",onClick:fe,children:[e.jsx(Oe,{className:"h-4 w-4 mr-2"}),"Copy All"]}),e.jsxs(f,{variant:"outline",className:"flex-1",onClick:ee,children:[e.jsx(Ze,{className:"h-4 w-4 mr-2"}),"Download"]})]})]}),e.jsx(I,{children:e.jsx(f,{onClick:xe,className:"w-full",children:"I've saved my backup codes"})})]})]})})},da=({open:t,onOpenChange:a,onSuccess:s})=>{const[r,n]=p.useState(""),[c,{loading:o}]=B(Ht),i=()=>{n("")},h=l=>{l||i(),a(l)},m=async()=>{var l,y;if(!r){j.error("Please enter your password");return}try{const{data:u}=await c({variables:{password:r}});u!=null&&u.disableMfa?(j.success("Two-factor authentication has been disabled"),i(),a(!1),s()):j.error("Failed to disable 2FA")}catch(u){const d=((y=(l=u.graphQLErrors)==null?void 0:l[0])==null?void 0:y.message)||u.message||"Failed to disable 2FA";j.error(d)}};return e.jsx(H,{open:t,onOpenChange:h,children:e.jsxs(X,{className:"sm:max-w-md",children:[e.jsxs(W,{children:[e.jsx(Y,{children:"Disable Two-Factor Authentication"}),e.jsx(_,{children:"This will remove the extra security layer from your account."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs(ce,{variant:"destructive",children:[e.jsx(de,{className:"h-4 w-4"}),e.jsx(oe,{children:"Disabling 2FA will make your account less secure. You will only need your password to sign in."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"disable-mfa-password",children:"Confirm your password"}),e.jsx(P,{id:"disable-mfa-password",type:"password",value:r,onChange:l=>n(l.target.value),placeholder:"Enter your password",onKeyDown:l=>l.key==="Enter"&&m()})]})]}),e.jsxs(I,{children:[e.jsx(f,{variant:"outline",onClick:()=>h(!1),children:"Cancel"}),e.jsxs(f,{variant:"destructive",onClick:m,disabled:o||!r,children:[o&&e.jsx(R,{className:"h-4 w-4 mr-2 animate-spin"}),"Disable 2FA"]})]})]})})},ua=({open:t,onOpenChange:a,onSuccess:s})=>{const[r,n]=p.useState("password"),[c,o]=p.useState(""),[i,h]=p.useState([]),[m,{loading:l}]=B(Xt),y=()=>{n("password"),o(""),h([])},u=C=>{C||y(),a(C)},d=async()=>{var C,O;if(!c){j.error("Please enter your password");return}try{const{data:D}=await m({variables:{password:c}});D!=null&&D.regenerateBackupCodes?(h(D.regenerateBackupCodes),n("codes"),j.success("New backup codes generated")):j.error("Failed to generate backup codes")}catch(D){const F=((O=(C=D.graphQLErrors)==null?void 0:C[0])==null?void 0:O.message)||D.message||"Failed to regenerate codes";j.error(F)}},g=async()=>{try{await navigator.clipboard.writeText(i.join(`
33`)),j.success("Backup codes copied to clipboard")}catch{j.error("Failed to copy")}},v=()=>{const C=`PrintaRex Backup Codes
34${"=".repeat(30)}
35
36Store these codes in a safe place.
37Each code can only be used once.
38
39${i.join(`
40`)}
41
42Generated: ${new Date().toISOString()}
43`,O=new Blob([C],{type:"text/plain"}),D=URL.createObjectURL(O),F=document.createElement("a");F.href=D,F.download="printarex-backup-codes.txt",F.click(),URL.revokeObjectURL(D)},T=()=>{y(),a(!1),s()};return e.jsx(H,{open:t,onOpenChange:u,children:e.jsxs(X,{className:"sm:max-w-md",children:[r==="password"&&e.jsxs(e.Fragment,{children:[e.jsxs(W,{children:[e.jsx(Y,{children:"Regenerate Backup Codes"}),e.jsx(_,{children:"This will invalidate your existing backup codes and generate new ones. Enter your password to continue."})]}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"regen-password",children:"Password"}),e.jsx(P,{id:"regen-password",type:"password",value:c,onChange:C=>o(C.target.value),placeholder:"Enter your password",onKeyDown:C=>C.key==="Enter"&&d()})]})}),e.jsxs(I,{children:[e.jsx(f,{variant:"outline",onClick:()=>u(!1),children:"Cancel"}),e.jsxs(f,{onClick:d,disabled:l||!c,children:[l&&e.jsx(R,{className:"h-4 w-4 mr-2 animate-spin"}),"Regenerate Codes"]})]})]}),r==="codes"&&e.jsxs(e.Fragment,{children:[e.jsxs(W,{children:[e.jsxs(Y,{className:"flex items-center gap-2",children:[e.jsx(le,{className:"h-5 w-5 text-primary"}),"New Backup Codes"]}),e.jsx(_,{children:"Your previous backup codes have been invalidated. Save these new codes in a safe place."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"grid grid-cols-2 gap-2 p-4 bg-muted rounded-lg",children:i.map((C,O)=>e.jsx("code",{className:"text-sm font-mono text-center py-1",children:C},O))}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(f,{variant:"outline",className:"flex-1",onClick:g,children:[e.jsx(Oe,{className:"h-4 w-4 mr-2"}),"Copy All"]}),e.jsxs(f,{variant:"outline",className:"flex-1",onClick:v,children:[e.jsx(Ze,{className:"h-4 w-4 mr-2"}),"Download"]})]})]}),e.jsx(I,{children:e.jsx(f,{onClick:T,className:"w-full",children:"I've saved my backup codes"})})]})]})})},tt=6048e5,ha=864e5,ye=43200,Qe=1440,He=Symbol.for("constructDateFrom");function U(t,a){return typeof t=="function"?t(a):t&&typeof t=="object"&&He in t?t[He](a):t instanceof Date?new t.constructor(a):new Date(a)}function k(t,a){return U(a||t,t)}let ma={};function he(){return ma}function ue(t,a){var i,h,m,l;const s=he(),r=(a==null?void 0:a.weekStartsOn)??((h=(i=a==null?void 0:a.locale)==null?void 0:i.options)==null?void 0:h.weekStartsOn)??s.weekStartsOn??((l=(m=s.locale)==null?void 0:m.options)==null?void 0:l.weekStartsOn)??0,n=k(t,a==null?void 0:a.in),c=n.getDay(),o=(c<r?7:0)+c-r;return n.setDate(n.getDate()-o),n.setHours(0,0,0,0),n}function ve(t,a){return ue(t,{...a,weekStartsOn:1}
vendor: 3,164 bytes, line 43
43)}function at(t,a){const s=k(t,a==null?void 0:a.in),r=s.getFullYear(),n=U(s,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const c=ve(n),o=U(s,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const i=ve(o);return s.getTime()>=c.getTime()?r+1:s.getTime()>=i.getTime()?r:r-1}function be(t){const a=k(t),s=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return s.setUTCFullYear(a.getFullYear()),+t-+s}function Ce(t,...a){const s=U.bind(null,t||a.find(r=>typeof r=="object"));return a.map(s)}function Xe(t,a){const s=k(t,a==null?void 0:a.in);return s.setHours(0,0,0,0),s}function fa(t,a,s){const[r,n]=Ce(s==null?void 0:s.in,t,a),c=Xe(r),o=Xe(n),i=+c-be(c),h=+o-be(o);return Math.round((i-h)/ha)}function xa(t,a){const s=at(t,a),r=U(t,0);return r.setFullYear(s,0,4),r.setHours(0,0,0,0),ve(r)}function je(t,a){const s=+k(t)-+k(a);return s<0?-1:s>0?1:s}function ga(t){return U(t,Date.now())}function wa(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function pa(t){return!(!wa(t)&&typeof t!="number"||isNaN(+k(t)))}function ya(t,a,s){const[r,n]=Ce(s==null?void 0:s.in,t,a),c=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return c*12+o}function ja(t){return a=>{const r=(t?Math[t]:Math.trunc)(a);return r===0?0:r}}function va(t,a){return+k(t)-+k(a)}function ba(t,a){const s=k(t,a==null?void 0:a.in);return s.setHours(23,59,59,999),s}function Na(t,a){const s=k(t,a==null?void 0:a.in),r=s.getMonth();return s.setFullYear(s.getFullYear(),r+1,0),s.setHours(23,59,59,999),s}function Ca(t,a){const s=k(t,a==null?void 0:a.in);return+ba(s,a)==+Na(s,a)}function ka(t,a,s){const[r,n,c]=Ce(s==null?void 0:s.in,t,t,a),o=je(n,c),i=Math.abs(ya(n,c));if(i<1)return 0;n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*i);let h=je(n,c)===-o;Ca(r)&&i===1&&je(r,c)===1&&(h=!1);const m=o*(i-+h);return m===0?0:m}function Da(t,a,s){const r=va(t,a)/1e3;return ja(s==null?void 0:s.roundingMethod)(r)}function Ma(t,a){const s=k(t,a==null?void 0:a.in);return s.setFullYear(s.getFullYear(),0,1),s.setHours(0,0,0,0),s}const Ea={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Pa=(t,a,s)=>{let r;const n=Ea[t];return typeof n=="string"?r=n:a===1?r=n.one:r=n.other.replace("{{count}}
43",a.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+r:r+" ago":r};function Pe(t){return(a={})=>{const s=a.width?String(a.width):t.defaultWidth;return t.formats[s]||t.formats[t.defaultWidth]}}const Sa={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ta={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Oa={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fa={date:Pe({formats:Sa,defaultWidth:"full"}),time:Pe({formats:Ta,defaultWidth:"full"}),dateTime:Pe({formats:Oa,defaultWidth:"full"})},Aa={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},La=(t,a,s,r)=>Aa[t];function re(t){return(a,s)=>{const r=s!=null&&s.context?String(s.context):"standalone";let n;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=s!=null&&s.width?String(s.width):o;n=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=s!=null&&s.width?String(s.width):t.defaultWidth;n=t.values[i]||t.values[o]}const c=t.argumentCallback?t.argumentCallback(a):a;return n[c]}}const Ra={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Wa={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ya={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_a={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ia={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ba={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},qa=(t,a)=>{const s=Number(t),r=s%100;if(r>20||r<10)switch(r%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},Ua={ordinalNumber:qa,era:re({values:Ra,defaultWidth:"wide"}),quarter:re({values:Wa,defaultWidth:"wide",argumentCallback:t=>t-1}),month:re({values:Ya,defaultWidth:"wide"}),day:re({values:_a,defaultWidth:"wide"}),dayPeriod:re({values:Ia,defaultWidth:"wide",formattingValues:Ba,defaultFormattingWidth:"wide"})};function ne(t){return(a,s={})=>{const r=s.width,n=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],c=a.match(n);if(!c)return null;const o=c[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],h=Array.isArray(i)?Ha(i,y=>y.test(o)):Qa(i,y=>y.test(o));let m;m=t.valueCallback?t.valueCallback(h):h,m=s.valueCallback?s.valueCallback(m):m;const l=a.slice(o.length);return{value:m,rest:l}}}function Qa(t,a){for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&a(t[s]))return s}function Ha(t,a){for(let s=0;s<t.length;s++)if(a(t[s]))return s}function Xa(t){return(a,s={})=>{const r=a.match(t.matchPattern);if(!r)return null;const n=r[0],c=a.match(t.parsePattern);if(!c)return null;let o=t.valueCallback?t.valueCallback(c[0]):c[0];o=s.valueCallback?s.valueCallback(o):o;const i=a.slice(n.length);return{value:o,rest:i}}}const Va=/^(\d+)(th|st|nd|rd)?/i,Ga=/\d+/i,$a={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},za={any:[/^b/i,/^(a|c)/i]},Ja={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ka={any:[/1/i,/2/i,/3/i,/4/i]},Za={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},es={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ts={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},as={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ss={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rs={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ns={ordinalNumber:Xa({matchPattern:Va,parsePattern:Ga,valueCallback:t=>parseInt(t,10)}),era:ne({matchPatterns:$a,defaultMatchWidth:"wide",parsePatterns:za,defaultParseWidth:"any"}),quarter:ne({matchPatterns:Ja,defaultMatchWidth:"wide",parsePatterns:Ka,defaultParseWidth:"any",valueCallback:t=>t+1}),month:ne({matchPatterns:Za,defaultMatchWidth:"wide",parsePatterns:es,defaultParseWidth:"any"}),day:ne({matchPatterns:ts,defaultMatchWidth:"wide",parsePatterns:as,defaultParseWidth:"any"}),dayPeriod:ne({matchPatterns:ss,defaultMatchWidth:"any",parsePatterns:rs,defaultParseWidth:"any"})},st={code:"en-US",formatDistance:Pa,formatLong:Fa,formatRelative:La,localize:Ua,match:ns,options:{weekStartsOn:0,firstWeekContainsDate:1}};function is(t,a){const s=k(t,a==null?void 0:a.in);return fa(s,Ma(s))+1}function cs(t,a){const s=k(t,a==null?void 0:a.in),r=+ve(s)-+xa(s);return Math.round(r/tt)+1}function rt(t,a){var l,y,u,d;const s=k(t,a==null?void 0:a.in),r=s.getFullYear(),n=he(),c=(a==null?void 0:a.firstWeekContainsDate)??((y=(l=a==null?void 0:a.locale)==null?void 0:l.options)==null?void 0:y.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=U((a==null?void 0:a.in)||t,0);o.setFullYear(r+1,0,c),o.setHours(0,0,0,0);const i=ue(o,a),h=U((a==null?void 0:a.in)||t,0);h.setFullYear(r,0,c),h.setHours(0,0,0,0);const m=ue(h,a);return+s>=+i?r+1:+s>=+m?r:r-1}function os(t,a){var i,h,m,l;const s=he(),r=(a==null?void 0:a.firstWeekContainsDate)??((h=(i=a==null?void 0:a.locale)==null?void 0:i.options)==null?void 0:h.firstWeekContainsDate)??s.firstWeekContainsDate??((l=(m=s.locale)==null?void 0:m.options)==null?void 0:l.firstWeekContainsDate)??1,n=rt(t,a),c=U((a==null?void 0:a.in)||t,0);return c.setFullYear(n,0,r),c.setHours(0,0,0,0),ue(c,a)}function ls(t,a){const s=k(t,a==null?void 0:a.in),r=+ue(s,a)-+os(s,a);return Math.round(r/tt)+1}function w(t,a){const s=t<0?"-":"",r=Math.abs(t).toString().padStart(a,"0");return s+r}
vendor: 5,407 bytes, line 43
43const Q={y(t,a){const s=t.getFullYear(),r=s>0?s:1-s;return w(a==="yy"?r%100:r,a.length)},M(t,a){const s=t.getMonth();return a==="M"?String(s+1):w(s+1,2)},d(t,a){return w(t.getDate(),a.length)},a(t,a){const s=t.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return s.toUpperCase();case"aaa":return s;case"aaaaa":return s[0];case"aaaa":default:return s==="am"?"a.m.":"p.m."}},h(t,a){return w(t.getHours()%12||12,a.length)},H(t,a){return w(t.getHours(),a.length)},m(t,a){return w(t.getMinutes(),a.length)},s(t,a){return w(t.getSeconds(),a.length)},S(t,a){const s=a.length,r=t.getMilliseconds(),n=Math.trunc(r*Math.pow(10,s-3));return w(n,a.length)}},te={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ve={G:function(t,a,s){const r=t.getFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return s.era(r,{width:"abbreviated"});case"GGGGG":return s.era(r,{width:"narrow"});case"GGGG":default:return s.era(r,{width:"wide"})}},y:function(t,a,s){if(a==="yo"){const r=t.getFullYear(),n=r>0?r:1-r;return s.ordinalNumber(n,{unit:"year"})}return Q.y(t,a)},Y:function(t,a,s,r){const n=rt(t,r),c=n>0?n:1-n;if(a==="YY"){const o=c%100;return w(o,2)}return a==="Yo"?s.ordinalNumber(c,{unit:"year"}):w(c,a.length)},R:function(t,a){const s=at(t);return w(s,a.length)},u:function(t,a){const s=t.getFullYear();return w(s,a.length)},Q:function(t,a,s){const r=Math.ceil((t.getMonth()+1)/3);switch(a){case"Q":return String(r);case"QQ":return w(r,2);case"Qo":return s.ordinalNumber(r,{unit:"quarter"});case"QQQ":return s.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return s.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,a,s){const r=Math.ceil((t.getMonth()+1)/3);switch(a){case"q":return String(r);case"qq":return w(r,2);case"qo":return s.ordinalNumber(r,{unit:"quarter"});case"qqq":return s.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return s.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,a,s){const r=t.getMonth();switch(a){case"M":case"MM":return Q.M(t,a);case"Mo":return s.ordinalNumber(r+1,{unit:"month"});case"MMM":return s.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return s.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(r,{width:"wide",context:"formatting"})}},L:function(t,a,s){const r=t.getMonth();switch(a){case"L":return String(r+1);case"LL":return w(r+1,2);case"Lo":return s.ordinalNumber(r+1,{unit:"month"});case"LLL":return s.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return s.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(r,{width:"wide",context:"standalone"})}},w:function(t,a,s,r){const n=ls(t,r);return a==="wo"?s.ordinalNumber(n,{unit:"week"}):w(n,a.length)},I:function(t,a,s){const r=cs(t);return a==="Io"?s.ordinalNumber(r,{unit:"week"}):w(r,a.length)},d:function(t,a,s){return a==="do"?s.ordinalNumber(t.getDate(),{unit:"date"}):Q.d(t,a)},D:function(t,a,s){const r=is(t);return a==="Do"?s.ordinalNumber(r,{unit:"dayOfYear"}):w(r,a.length)},E:function(t,a,s){const r=t.getDay();switch(a){case"E":case"EE":case"EEE":return s.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return s.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(r,{width:"short",context:"formatting"});case"EEEE":default:return s.day(r,{width:"wide",context:"formatting"})}},e:function(t,a,s,r){const n=t.getDay(),c=(n-r.weekStartsOn+8)%7||7;switch(a){case"e":return String(c);case"ee":return w(c,2);case"eo":return s.ordinalNumber(c,{unit:"day"});case"eee":return s.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})}},c:function(t,a,s,r){const n=t.getDay(),c=(n-r.weekStartsOn+8)%7||7;switch(a){case"c":return String(c);case"cc":return w(c,a.length);case"co":return s.ordinalNumber(c,{unit:"day"});case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})}},i:function(t,a,s){const r=t.getDay(),n=r===0?7:r;switch(a){case"i":return String(n);case"ii":return w(n,a.length);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return s.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return s.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return s.day(r,{width:"short",context:"formatting"});case"iiii":default:return s.day(r,{width:"wide",context:"formatting"})}},a:function(t,a,s){const n=t.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,a,s){const r=t.getHours();let n;switch(r===12?n=te.noon:r===0?n=te.midnight:n=r/12>
vendor: 4,372 bytes, line 43
43=1?"pm":"am",a){case"b":case"bb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,a,s){const r=t.getHours();let n;switch(r>=17?n=te.evening:r>=12?n=te.afternoon:r>=4?n=te.morning:n=te.night,a){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,a,s){if(a==="ho"){let r=t.getHours()%12;return r===0&&(r=12),s.ordinalNumber(r,{unit:"hour"})}return Q.h(t,a)},H:function(t,a,s){return a==="Ho"?s.ordinalNumber(t.getHours(),{unit:"hour"}):Q.H(t,a)},K:function(t,a,s){const r=t.getHours()%12;return a==="Ko"?s.ordinalNumber(r,{unit:"hour"}):w(r,a.length)},k:function(t,a,s){let r=t.getHours();return r===0&&(r=24),a==="ko"?s.ordinalNumber(r,{unit:"hour"}):w(r,a.length)},m:function(t,a,s){return a==="mo"?s.ordinalNumber(t.getMinutes(),{unit:"minute"}):Q.m(t,a)},s:function(t,a,s){return a==="so"?s.ordinalNumber(t.getSeconds(),{unit:"second"}):Q.s(t,a)},S:function(t,a){return Q.S(t,a)},X:function(t,a,s){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(a){case"X":return $e(r);case"XXXX":case"XX":return V(r);case"XXXXX":case"XXX":default:return V(r,":")}},x:function(t,a,s){const r=t.getTimezoneOffset();switch(a){case"x":return $e(r);case"xxxx":case"xx":return V(r);case"xxxxx":case"xxx":default:return V(r,":")}},O:function(t,a,s){const r=t.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+Ge(r,":");case"OOOO":default:return"GMT"+V(r,":")}},z:function(t,a,s){const r=t.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+Ge(r,":");case"zzzz":default:return"GMT"+V(r,":")}},t:function(t,a,s){const r=Math.trunc(+t/1e3);return w(r,a.length)},T:function(t,a,s){return w(+t,a.length)}};function Ge(t,a=""){const s=t>0?"-":"+",r=Math.abs(t),n=Math.trunc(r/60),c=r%60;return c===0?s+String(n):s+String(n)+a+w(c,2)}function $e(t,a){return t%60===0?(t>0?"-":"+")+w(Math.abs(t)/60,2):V(t,a)}function V(t,a=""){const s=t>0?"-":"+",r=Math.abs(t),n=w(Math.trunc(r/60),2),c=w(r%60,2);return s+n+a+c}const ze=(t,a)=>{switch(t){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},nt=(t,a)=>{switch(t){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},ds=(t,a)=>{const s=t.match(/(P+)(p+)?/)||[],r=s[1],n=s[2];if(!n)return ze(t,a);let c;switch(r){case"P":c=a.dateTime({width:"short"});break;case"PP":c=a.dateTime({width:"medium"});break;case"PPP":c=a.dateTime({width:"long"});break;case"PPPP":default:c=a.dateTime({width:"full"});break}return c.replace("{{date}}",ze(r,a)).replace("{{time}}",nt(n,a))},us={p:nt,P:ds},hs=/^D+$/,ms=/^Y+$/,fs=["D","DD","YY","YYYY"];function xs(t){return hs.test(t)}function gs(t){return ms.test(t)}function ws(t,a,s){const r=ps(t,a,s);if(console.warn(r),fs.includes(t))throw new RangeError(r)}function ps(t,a,s){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${a}\`) for formatting ${r} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ys=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,js=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vs=/^'([^]*?)'?$/,bs=/''/g,Ns=/[a-zA-Z]/;function Je(t,a,s){var l,y,u,d;const r=he(),n=r.locale??st,c=r.firstWeekContainsDate??((y=(l=r.locale)==null?void 0:l.options)==null?void 0:y.firstWeekContainsDate)??1,o=r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,i=k(t,s==null?void 0:s.in);if(!pa(i))throw new RangeError("Invalid time value");let h=a.match(js).map(g=>{const v=g[0];if(v==="p"||v==="P"){const T=us[v];return T(g,n.formatLong)}return g}).join("").match(ys).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const v=g[0];if(v==="'")return{isToken:!1,value:Cs(g)};if(Ve[v])return{isToken:!0,value:g};
43if(v.match(Ns))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:g}});n.localize.preprocessor&&(h=n.localize.preprocessor(i,h));const m={firstWeekContainsDate:c,weekStartsOn:o,locale:n};return h.map(g=>{if(!g.isToken)return g.value;const v=g.value;(gs(v)||xs(v))&&ws(v,a,String(t));const T=Ve[v[0]];return T(i,v,n.localize,m)}).join("")}function Cs(t){const a=t.match(vs);return a?a[1].replace(bs,"'"):t}function ks(t,a,s){const r=he(),n=(s==null?void 0:s.locale)??r.locale??st,c=2520,o=je(t,a);if(isNaN(o))throw new RangeError("Invalid time value");const i=Object.assign({},s,{addSuffix:s==null?void 0:s.addSuffix,comparison:o}),[h,m]=Ce(s==null?void 0:s.in,...o>0?[a,t]:[t,a]),l=Da(m,h),y=(be(m)-be(h))/1e3,u=Math.round((l-y)/60);let d;if(u<2)return s!=null&&s.includeSeconds?l<5?n.formatDistance("lessThanXSeconds",5,i):l<10?n.formatDistance("lessThanXSeconds",10,i):l<20?n.formatDistance("lessThanXSeconds",20,i):l<40?n.formatDistance("halfAMinute",0,i):l<60?n.formatDistance("lessThanXMinutes",1,i):n.formatDistance("xMinutes",1,i):u===0?n.formatDistance("lessThanXMinutes",1,i):n.formatDistance("xMinutes",u,i);if(u<45)return n.formatDistance("xMinutes",u,i);if(u<90)return n.formatDistance("aboutXHours",1,i);if(u<Qe){const g=Math.round(u/60);return n.formatDistance("aboutXHours",g,i)}else{if(u<c)return n.formatDistance("xDays",1,i);if(u<ye){const g=Math.round(u/Qe);return n.formatDistance("xDays",g,i)}else if(u<ye*2)return d=Math.round(u/ye),n.formatDistance("aboutXMonths",d,i)}if(d=ka(m,h),d<12){const g=Math.round(u/ye);return n.formatDistance("xMonths",g,i)}else{const g=d%12,v=Math.trunc(d/12);return g<3?n.formatDistance("aboutXYears",v,i):g<9?n.formatDistance("overXYears",v,i):n.formatDistance("almostXYears",v+1,i)}}function Ds(t,a){return ks(t,ga(t),a)}function Ms(t){switch(t==null?void 0:t.toUpperCase()){case"MOBILE":return ea;case"TABLET":return oa;default:return et}}const Es=()=>{const[t,a]=p.useState(null),[s,r]=p.useState(!1),{data:n,loading:c}=Se(Ee,{fetchPolicy:"cache-and-network"}),[o,{loading:i}]=B(Vt,{refetchQueries:[{query:Ee}]}),[h,{loading:m}]=B(Gt,{refetchQueries:[{query:Ee}]}),l=(n==null?void 0:n.customerTrustedDevices)??[],y=async()=>{if(t)try{await o({variables:{deviceId:t.deviceId}}),j.success("Device trust revoked successfully"),a(null)}catch(d){j.error(d.message||"Failed to revoke device")}},u=async()=>{try{await h(),j.success("All trusted devices revoked"),r(!1)}catch(d){j.error(d.message||"Failed to revoke devices")}};return c?e.jsxs(G,{className:"rounded-[28px]",children:[e.jsx($,{children:e.jsx(z,{children:"Trusted Devices"})}),e.jsx(J,{className:"flex items-center justify-center py-8",children:e.jsx(R,{className:"h-6 w-6 animate-spin text-muted-foreground"})})]}):l.length===0?e.jsxs(G,{className:"rounded-[28px]",children:[e.jsx($,{children:e.jsx(z,{children:"Trusted Devices"})}),e.jsxs(J,{className:"flex flex-col items-center justify-center py-8 space-y-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-muted flex items-center justify-center",children:e.jsx(et,{className:"h-6 w-6 text-muted-foreground"})}),e.jsx("p",{className:"font-medium text-foreground",children:"No trusted devices"}),e.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-sm",children:"When you verify with 2FA, you can choose to trust that device so you won't be asked for a code again for 30 days."})]})]}):e.jsxs(G,{className:"rounded-[28px]",children:[e.jsx($,{className:"flex flex-row items-center justify-between",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(z,{children:"Trusted Devices"}),e.jsxs(Te,{variant:"secondary",children:[l.length," ",l.length===1?"device":"devices"]})]})}),e.jsxs(J,{className:"space-y-3",children:[l.map(d=>{const g=Ms(d.deviceType);return e.jsxs("div",{className:"flex items-center justify-between p-4 rounded-[14px] border border-border",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-muted flex items-center justify-center flex-shrink-0",children:e.jsx(g,{className:"h-5 w-5 text-muted-foreground"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("p",{className:"font-medium text-sm truncate",children:d.deviceName}
43),d.isCurrent&&e.jsx(Te,{className:"bg-[#15B67F]/10 text-[#15B67F] border-[#15B67F]/20 text-xs",children:"This device"})]}),e.jsxs("div",{className:"flex flex-wrap gap-x-3 gap-y-0.5 text-xs text-muted-foreground mt-0.5",children:[e.jsxs("span",{children:["Last IP: ",d.lastUsedIp]}),e.jsxs("span",{children:["Last used: ",Ds(new Date(d.lastUsedAt),{addSuffix:!0})]}),e.jsxs("span",{children:["Trusted until: ",Je(new Date(d.trustedUntil),"MMM d, yyyy")]})]})]})]}),e.jsxs(Mt,{children:[e.jsx(Et,{asChild:!0,children:e.jsx(f,{variant:"ghost",size:"icon",className:"h-8 w-8 flex-shrink-0",children:e.jsx(Zt,{className:"h-4 w-4"})})}),e.jsx(Pt,{align:"end",children:e.jsxs(St,{className:"text-destructive focus:text-destructive",onClick:()=>a(d),children:[e.jsx(ca,{className:"h-4 w-4 mr-2"}),"Revoke This Device"]})})]})]},d.deviceId)}),l.length>1&&e.jsx(f,{variant:"outline",className:"w-full text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>r(!0),children:"Revoke All Trusted Devices"})]}),e.jsx(H,{open:!!t,onOpenChange:d=>!d&&a(null),children:e.jsxs(X,{children:[e.jsxs(W,{children:[e.jsxs(Y,{className:"flex items-center gap-2",children:[e.jsx(de,{className:"h-5 w-5 text-destructive"}),"Revoke Trusted Device"]}),e.jsx(_,{asChild:!0,children:e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"Are you sure you want to revoke trust for this device?"}),t&&e.jsxs("div",{className:"p-3 rounded-[14px] border border-border text-sm space-y-1",children:[e.jsxs("p",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Device:"})," ",e.jsx("strong",{children:t.deviceName})]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Last IP:"})," ",t.lastUsedIp]}),e.jsxs("p",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Trusted until:"})," ",Je(new Date(t.trustedUntil),"MMM d, yyyy")]})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"You'll need to enter a verification code next time you sign in from this device."})]})})]}),e.jsxs(I,{children:[e.jsx(f,{variant:"outline",onClick:()=>a(null),disabled:i,children:"Cancel"}),e.jsxs(f,{variant:"destructive",onClick:y,disabled:i,children:[i?e.jsx(R,{className:"h-4 w-4 mr-2 animate-spin"}):null,"Revoke Device"]})]})]})}),e.jsx(H,{open:s,onOpenChange:r,children:e.jsxs(X,{children:[e.jsxs(W,{children:[e.jsxs(Y,{className:"flex items-center gap-2",children:[e.jsx(de,{className:"h-5 w-5 text-destructive"}),"Revoke All Trusted Devices"]}),e.jsx(_,{asChild:!0,children:e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"This will revoke trust for all your devices. You'll need to enter a verification code on every device the next time you sign in."}),e.jsxs("p",{className:"font-medium",children:[l.length," ",l.length===1?"device":"devices"," will be affected."]})]})})]}),e.jsxs(I,{children:[e.jsx(f,{variant:"outline",onClick:()=>r(!1),disabled:m,children:"Cancel"}),e.jsxs(f,{variant:"destructive",onClick:u,disabled:m,children:[m?e.jsx(R,{className:"h-4 w-4 mr-2 animate-spin"}):null,"Revoke All"]})]})]})})]})},Ps=t=>!t||t==="EMAIL"?"Email and password":`${t.charAt(0)}${t.slice(1).toLowerCase()}`,Ss=(t,a)=>{if(!t)return Ke("Not available yet",a);const s=new Date(t);return Number.isNaN(s.getTime())?t:Bt(s,a==="ar"?"ar":"en",{dateStyle:"medium",timeStyle:"short"})},Ts=(t,a,s,r)=>!t||t==="EMAIL"?s?e.jsx(ie,{className:"mt-2 h-5 w-28 rounded-[14px]"}):r!=null&&r.enabled?e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[e.jsx(Te,{variant:"default",className:"bg-primary text-primary-foreground",children:"Enabled"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:r.preferredMethod==="TOTP"?"Authenticator App":"Email"})]}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"Not enabled"}):e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Your account is secured by ",a,". Manage 2FA in your ",a," account settings."]}),tr=()=>{const{toast:t}=qt(),a=Tt(),s=Ot(x=>x.logout),{locale:r}=Ft(),n=x=>Ke(x,r),{data:c,loading:o}=Se(Me),i=c==null?void 0:c.me,h=(i==null?void 0:i.firstName)||"",m=(i==null?void 0:i.lastName)||"",l=(i==null?void 0:i.phone)||"",y=i==null?void 0:i.registrationMethod,u=!y||y==="EMAIL",d=Ps(y),g=(i==null?void 0:i.hasPassword)!==!1,[v,T]=p.useState(""),[C,O]=p.useState(""),[D,F]=p.useState(""),[K,ae]=p.useState(""),[Z,me]=p.useState(""),[se,fe]=p.useState(""),[ee,xe]=p.useState(""),[b,A]=p.useState(""),[M,N]=p.useState(""),[q,it]=p.useState(""),[ct,ge]=p.useState(!1),[ot,we]=p.useState(!1),[lt,pe]=p.useState(!1),[dt,Fe]=p.useState(!1),[ut,Ae]=p.useState(!1),[ht,Le]=p.useState(!1),{data:ke,loading:Re,refetch:De}=Se($t,{fetchPolicy:"cache-and-network"}),E=ke==null?void 0:ke.mfaStatus,mt=E!=null&&E.enabled?"Manage remembered devices below.":"Available after 2FA is enabled.",ft=u?mt:`Managed by your ${d} account settings.`;At.useEffect(()=>{i!=null&&i.id&&(T(h),O(m),F(l))},[i==null?void 0:i.id,h,m,l]);const[xt,{loading:We}]=B(Lt),[gt,{loading:Ye}]=B(Rt),[wt,{loading:_e}]=B(Wt),[pt,{loading:Ie}]=B(Yt),[yt,{loading:Be}]=B(zt),jt=async x=>{x.preventDefault();try{await xt({variables:{input:{firstName:v||void 0,lastName:C||void 0,phone:D||void 0}},refetchQueries:[{query:Me}]}),t({title:"Success",description:"Profile updated successfully"})}catch(L){t({title:"Error",description:L.message||"Failed to update profile",variant:"destructive"})}},vt=async()=>{var x;if(!K||!Z){t({title:"Error",description:"Please enter both new email and current password",variant:"destructive"});return}try{const L=await wt({variables:{newEmail:K,currentPassword:Z}});(x=L.data)!=null&&x.changeEmail.success&&(t({title:"Success",description:L.data.changeEmail.message}),we(!1),ae(""),me(""),await kt())}catch(L){t({title:"Error",description:L.message||"Failed to change email",variant:"destructive"})}},bt=async()=>
43{if(!se||!ee||!b){t({title:"Error",description:"Please fill all password fields",variant:"destructive"});return}if(ee!==b){t({title:"Error",description:"New passwords do not match",variant:"destructive"});return}try{await gt({variables:{oldPassword:se,newPassword:ee}}),t({title:"Success",description:"Password changed successfully. Please login again."}),pe(!1),fe(""),xe(""),A(""),setTimeout(()=>{s(),a("/login")},1500)}catch(x){t({title:"Error",description:x.message||"Failed to change password",variant:"destructive"})}},Nt=async()=>{var x;if(q!=="DELETE"){t({title:"Error",description:"Please type DELETE to confirm",variant:"destructive"});return}if(g&&!M){t({title:"Error",description:"Please enter your password",variant:"destructive"});return}try{const L=await pt({variables:{confirmPassword:g?M:null}});(x=L.data)!=null&&x.deleteCustomerAccount.success&&(t({title:"Account Deleted",description:L.data.deleteCustomerAccount.message}),ge(!1),setTimeout(()=>{s(),a("/")},1500))}catch(L){t({title:"Error",description:L.message||"Failed to delete account",variant:"destructive"})}},Ct=async()=>{try{await yt({refetchQueries:[{query:Me}]}),t({title:n("Verification Email Sent"),description:n("Please check your inbox and click the verification link.")})}catch(x){t({title:n("Error"),description:n(x.message||"Failed to send verification email"),variant:"destructive"})}},kt=async()=>{};return o?e.jsxs("div",{className:"container mx-auto px-4 py-6 space-y-8 max-w-4xl",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(ie,{className:"h-9 w-64 rounded-[14px]"}),e.jsx(ie,{className:"h-5 w-80 rounded-[14px]"})]}),e.jsx(ie,{className:"h-64 w-full rounded-[28px]"}),e.jsx(ie,{className:"h-56 w-full rounded-[28px]"})]}):e.jsxs("div",{className:"container mx-auto px-4 py-6 space-y-8 max-w-4xl",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Account Settings"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your account information and preferences"})]}),e.jsxs(G,{className:"rounded-2xl",children:[e.jsx($,{children:e.jsx(z,{children:"Profile Information"})}),e.jsx(J,{children:e.jsxs("form",{onSubmit:jt,className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"firstName",children:"First Name"}),e.jsx(P,{id:"firstName",type:"text",value:v,onChange:x=>T(x.target.value),placeholder:"Enter first name"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"lastName",children:"Last Name"}),e.jsx(P,{id:"lastName",type:"text",value:C,onChange:x=>O(x.target.value),placeholder:"Enter last name"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"email",children:"Email"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(P,{id:"email",type:"email",value:(i==null?void 0:i.email)||"",disabled:!0,className:"flex-1 bg-muted"}),e.jsx(f,{type:"button",variant:"outline",onClick:()=>we(!0),children:"Change Email"})]})]}),!(i!=null&&i.emailVerified)&&e.jsxs(ce,{variant:"warning",className:"border-yellow-500/50 bg-yellow-50",children:[e.jsx(Ue,{className:"h-4 w-4 text-yellow-600"}),e.jsx(qe,{className:"text-yellow-800",children:"Email Not Verified"}),e.jsxs(oe,{className:"text-yellow-700",children:[e.jsx("p",{className:"mb-2",children:n("Please verify your email address to access all features and receive important notifications.")}),e.jsxs(f,{size:"sm",variant:"outline",onClick:Ct,disabled:Be,className:"border-yellow-600 text-yellow-700 hover:bg-yellow-100",children:[Be?e.jsx(R,{className:"mr-2 h-3 w-3 animate-spin"}):null,n("Send Verification Email")]})]})]}),(i==null?void 0:i.emailVerified)&&e.jsxs(ce,{variant:"success",className:"border-green-500/50 bg-green-50",children:[e.jsx(ta,{className:"h-4 w-4 text-green-600"}),e.jsx(qe,{className:"text-green-800",children:"Email Verified"}),e.jsx(oe,{className:"text-green-700",children:"Your email address has been verified. You have full access to all PrintaRex features."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"phone",children:"Phone"}),e.jsx(P,{id:"phone",type:"tel",value:D,onChange:x=>F(x.target.value),placeholder:"Enter phone number"})]}),e.jsxs(f,{type:"submit",disabled:We,className:"w-full md:w-auto",children:[We?e.jsx(R,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Save Changes"]})]})})]}),e.jsxs(G,{className:"rounded-2xl",children:[e.jsx($,{children:e.jsx(z,{children:"Login & Security"})}),e.jsxs(J,{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx("div",{className:"p-4 rounded-lg border border-border",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Ue,{className:"h-5 w-5 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Sign-in Method"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:d})]})]})}),e.jsx("div",{className:"p-4 rounded-lg border border-border",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(aa,{className:"h-5 w-5 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Recent Login"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:Ss(i==null?void 0:i.lastLoginAt,r)})]})]})})]}),u&&e.jsxs("div",{className:"flex items-center justify-between p-4 rounded-lg border border-border",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Password"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"••••••••••••"})]}),e.jsx(f,{variant:"outline",onClick:()=>pe(!0),children:"Change Password"})]}),e.jsxs("div",{className:"p-4 rounded-lg border border-border space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(le,{className:"h-5 w-5 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Two-Factor Authentication"}),Ts(y,d,Re,E)]})]}),u&&!Re&&(E!=null&&E.enabled?e.jsx(f,{variant:"outline",className:"text-destructive border-destructive/30 hover:bg-destructive/10",onClick:()=>Ae(!0),children:"Disable 2FA"}):e.jsx(f,{variant:"outline",onClick:()=>Fe(!0),children:"Enable 2FA"}))]}),(E==null?void 0:E.enabled)&&u&&e.jsxs("div",{className:"flex items-center justify-between pl-8 pt-2 border-t border-border",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(sa,{className:"h-4 w-4 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"Backup Codes"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[E.backupCodesRemaining," of 10 remaining"]})]})]}),e.jsxs(f,{variant:"ghost",size:"sm",onClick:()=>Le(!0),children:[e.jsx(ra,{className:"h-4 w-4 mr-2"}),"Regenerate"]})]}),e.jsx("div",{className:"flex items-center justify-between pl-8 pt-2 border-t border-border",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(ia,{className:"h-4 w-4 text-muted-foreground"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"Trusted Devices"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:ft})]})]})})]})]})]}),(E==null?void 0:E.enabled)&&u&&e.jsx(Es,{}),e.jsxs(G,{className:"rounded-2xl",children:[e.jsx($,{children:e.jsxs(z,{className:"flex items-center gap-2",children:[e.jsx(na,{className:"h-5 w-5 text-primary"}),"Notification Preferences"]})}),e.jsx(J,{children:e.jsx(_t,{to:"/settings/notifications",className:"block",children:e.jsxs("div",{className:"flex items-center justify-between p-4 rounded-lg border border-border hover:bg-muted/50 transition-colors cursor-pointer",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Manage Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Control email, push, and in-app notification preferences"})]}),e.jsx(It,{className:"h-5 w-5 text-muted-foreground"})]})})})]}),e.jsxs(G,{className:"rounded-2xl border-destructive/50",children:[e.jsx($,{children:e.jsx(z,{className:"text-destructive",children:"Danger Zone"})}),e.jsxs(J,{className:"space-y-4",children:[e.jsxs(ce,{variant:"destructive",children:[e.jsx(de,{className:"h-4 w-4"}),e.jsx(oe,{children:"This action cannot be undone. All your data will be permanently erased."})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 rounded-lg border border-destructive/50 bg-destructive/5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-destructive",children:"Delete Account"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Permanently delete your PrintaRex account and all associated data"})]}),e.jsx(f,{variant:"destructive",onClick:()=>
43ge(!0),children:"Delete My Account"})]})]})]}),e.jsx(H,{open:ot,onOpenChange:we,children:e.jsxs(X,{children:[e.jsxs(W,{children:[e.jsx(Y,{children:"Change Email Address"}),e.jsx(_,{children:"Enter your new email and current password to update your email."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"newEmail",children:"New Email"}),e.jsx(P,{id:"newEmail",type:"email",value:K,onChange:x=>ae(x.target.value),placeholder:"Enter new email"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"emailPassword",children:"Current Password"}),e.jsx(P,{id:"emailPassword",type:"password",value:Z,onChange:x=>me(x.target.value),placeholder:"Enter current password"})]})]}),e.jsxs(I,{children:[e.jsx(f,{variant:"outline",onClick:()=>we(!1),children:"Cancel"}),e.jsxs(f,{onClick:vt,disabled:_e,children:[_e?e.jsx(R,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Change Email"]})]})]})}),e.jsx(H,{open:lt,onOpenChange:pe,children:e.jsxs(X,{children:[e.jsxs(W,{children:[e.jsx(Y,{children:"Change Password"}),e.jsx(_,{children:"Enter your current password and choose a secure new password."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"oldPassword",children:"Current Password"}),e.jsx(P,{id:"oldPassword",type:"password",value:se,onChange:x=>fe(x.target.value),placeholder:"Enter current password"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"newPassword",children:"New Password"}),e.jsx(P,{id:"newPassword",type:"password",value:ee,onChange:x=>xe(x.target.value),placeholder:"Enter new password"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"confirmPassword",children:"Confirm New Password"}),e.jsx(P,{id:"confirmPassword",type:"password",value:b,onChange:x=>A(x.target.value),placeholder:"Confirm new password"})]})]}),e.jsxs(I,{children:[e.jsx(f,{variant:"outline",onClick:()=>pe(!1),children:"Cancel"}),e.jsxs(f,{onClick:bt,disabled:Ye,children:[Ye?e.jsx(R,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Change Password"]})]})]})}),e.jsx(H,{open:ct,onOpenChange:ge,children:e.jsxs(X,{children:[e.jsxs(W,{children:[e.jsx(Y,{className:"text-destructive",children:"Delete Account"}),e.jsx(_,{children:"This action is permanent and cannot be undone. All your data will be erased."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs(ce,{variant:"destructive",children:[e.jsx(de,{className:"h-4 w-4"}),e.jsx(oe,{children:"Warning: This will permanently delete your account and all data."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"deleteConfirmText",children:"Type DELETE to confirm"}),e.jsx(P,{id:"deleteConfirmText",type:"text",value:q,onChange:x=>it(x.target.value),placeholder:"Type DELETE"})]}),g?e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{htmlFor:"deleteConfirmPassword",children:"Enter your password"}),e.jsx(P,{id:"deleteConfirmPassword",type:"password",value:M,onChange:x=>N(x.target.value),placeholder:"Enter your password"})]}):e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Your account uses ",d," sign-in, so there is no password to enter. For your security, this only works if you signed in within the last few minutes; otherwise sign in again and retry."]})]}),e.jsxs(I,{children:[e.jsx(f,{variant:"outline",onClick:()=>ge(!1),children:"Cancel"}),e.jsxs(f,{variant:"destructive",onClick:Nt,disabled:Ie,children:[Ie?e.jsx(R,{className:"mr-2 h-4 w-4 animate-spin"}
43):null,"Delete My Account"]})]})]})}),e.jsx(la,{open:dt,onOpenChange:Fe,onSuccess:()=>De()}),e.jsx(da,{open:ut,onOpenChange:Ae,onSuccess:()=>De()}),e.jsx(ua,{open:ht,onOpenChange:Le,onSuccess:()=>De()})]})};export{tr as SettingsPage};

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.