1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2056],{47842:function(e,r,t){var o=t(2265);let n=o.forwardRef(function(e,r){let{title:t,titleId:n,...i}=e;return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},i),t?o.createElement("title",{id:n},t):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))});r.Z=n},94675:function(e,r,t){var o=t(2265);let n=o.forwardRef(function(e,r){let{title:t,titleId:n,...i}=e;return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},i),t?o.createElement("title",{id:n},t):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"}))});r.Z=n},92056:function(e,r,t){t.r(r),t.d(r,{SetAutomaticRecoveryScreen:function(){return g},default:function(){return g}});var o=t(57437),n=t(47842),i=t(94675),l=t(2265),a=t(71401),s=t(59693),c=t(72361),d=t(71471),u=t(41270),f=t(43103),h=t(6140),y=t(76180);t(29155),t(1470),t(97048);let v=c.zo.div` 2 && { 3 border-width: 4px; 4 } 5 6 display: flex; 7 justify-content: center; 8 align-items: center; 9 padding: 1rem; 10 aspect-ratio: 1; 11 border-style: solid; 12 border-color: ${e=>e.$color??"var(--privy-color-accent)"}; 13 border-radius: 50%; 14`,g={component:()=>{let{user:e}=(0,a.u)(),{client:r,walletProxy:t,refreshSessionAndUser:c,closePrivyModal:g}=(0,h.u)(),w=(0,a.a)(),{entropyId:m,entropyIdVerifier:p}=w.data?.recoverWallet??{},[x,j]=(0,l.useState)(!1),[b,k]=(0,l.useState)(null),[S,E]=(0,l.useState)(null);function C(){if(!x){if(S)return w.data?.setWalletPassword?.onFailure(S),void g();if(!b)return w.data?.setWalletPassword?.onFailure(Error("User exited set recovery flow")),void g()}}return w.onUserCloseViaDialogOrKeybindRef.current=C,(0,o.jsxs)(o.Fragment,S?{children:[(0,o.jsx)(s.M,{onClose:C},"header"),(0,o.jsx)(v,{$color:"var(--privy-color-error)",style:{alignSelf:"center"},children:(0,o.jsx)(n.Z,{height:38,width:38,stroke:"var(--privy-color-error)"})}),(0,o.jsx)(u.T,{style:{marginTop:"0.5rem"},children:"Something went wrong"}),(0,o.jsx)(y.G,{style:{minHeight:"2rem"}}),(0,o.jsx)(s.c,{onClick:()=>E(null),children:"Try again"}),(0,o.jsx)(s.B,{})]}:{children:[(0,o.jsx)(s.M,{onClose:C},"header"),(0,o.jsx)(i.Z,{style:{width:"3rem",height:"3rem",alignSelf:"center"}}),(0,o.jsx)(u.T,{style:{marginTop:"0.5rem"},children:"Automatically secure your account"}),(0,o.jsx)(d.S,{style:{marginTop:"1rem"},children:"When you log into a new device, youâll only need to authenticate to access your account. Never get logged out if you forget your password."}),(0,o.jsx)(y.G,{style:{minHeight:"2rem"}}),(0,o.jsx)(s.c,{loading:x,disabled:!(!x&&!b),onClick:()=>(async function(){j(!0);try{let o=await r.getAccessToken(),n=(0,a.j)(e,m);if(!o||!t||!n)return;if(!(await t.setRecovery({accessToken:o,entropyId:m,entropyIdVerifier:p,existingRecoveryMethod:n.recoveryMethod,recoveryMethod:"privy"})).entropyId)throw Error("Unable to set recovery on wallet");let i=await c();if(!i)throw Error("Unable to set recovery on wallet");let l=(0,a.j)(i,n.address);if(!l)throw Error("Unabled to set recovery on wallet");k(!!i),setTimeout(()=>{w.data?.setWalletPassword?.onSuccess(l),g()},f.r)}catch(e){E(e)}finally{j(!1)}})(),children:b?"Success":"Confirm"}),(0,o.jsx)(s.B,{})]})}}},71471:function(e,r,t){t.d(r,{S:function(){return n}});var o=t(72361);let n=o.zo.span` 15 margin-top: 4px; 16 color: var(--privy-color-foreground); 17 text-align: center; 18 19 font-size: 0.875rem; 20 font-weight: 400; 21 line-height: 1.375rem; /* 157.143% */ 22 23 && a { 24 color: var(--privy-color-accent); 25 } 26`},41270:function(e,r,t){t.d(r,{T:function(){return n}});var o=t(72361);let n=o.zo.span` 27 color: var(--privy-color-foreground); 28 font-size: 1.125rem; 29 font-weight: 600; 30 line-height: 1.875rem; /* 166.667% */ 31 text-align: center; 32`}}]);
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.