1"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[4627],{16026:(e,t,i)=>{i.d(t,{D:()=>k,E:()=>x,H:()=>z,I:()=>S,N:()=>y,P:()=>C,R:()=>E,S:()=>B,a:()=>w,b:()=>j,c:()=>v,d:()=>N,e:()=>H,f:()=>I,g:()=>A});var r=i(15882),n=i(57722);const o=["title","titleId"];function a(e,t){let{title:i,titleId:a}=e,l=(0,r.A)(e,o);return n.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:t,"aria-labelledby":a},l),i?n.createElement("title",{id:a},i):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const l=n.forwardRef(a),c=["title","titleId"];function s(e,t){let{title:i,titleId:o}=e,a=(0,r.A)(e,c);return n.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:t,"aria-labelledby":o},a),i?n.createElement("title",{id:o},i):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const d=n.forwardRef(s),p=["title","titleId"];function h(e,t){let{title:i,titleId:o}=e,a=(0,r.A)(e,p);return n.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:t,"aria-labelledby":o},a),i?n.createElement("title",{id:o},i):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"}))}const g=n.forwardRef(h);var m=i(52610),u=i(67980);let f=(0,m.AH)(["font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:-0.008px;text-align:left;transition:color 0.1s ease-in;"]);const v=m.I4.span.withConfig({displayName:"StatusText",componentId:"sc-acac4b9-0"})([""," transition:color 0.1s ease-in;color:",";text-transform:",";&[aria-hidden='true']{visibility:hidden;}"],f,e=>{let{error:t}=e;return t?"var(--privy-color-error)":"var(--privy-color-foreground-3)"},e=>{let{error:t}=e;return t?"":"capitalize"}),x=m.I4.div.withConfig({displayName:"EmbeddedWalletScreenContainer",componentId:"sc-acac4b9-1"})(["display:flex;flex-direction:column;justify-content:center;flex-grow:1;"]),y=(0,m.I4)(u.P).withConfig({displayName:"NoAnimationPrimaryButton",componentId:"sc-acac4b9-2"})(["",""],e=>{let{$hideAnimations:t}=e;return t&&(0,m.AH)(["&&{transition:none;}"])});let b=(0,m.AH)(["&&{width:100%;border-width:1px;border-radius:var(--privy-border-radius-md);border-color:var(--privy-color-foreground-3);background:var(--privy-color-background);color:var(--privy-color-foreground);padding:12px;font-size:16px;font-style:normal;font-weight:300;line-height:22px;}"]);const w=m.I4.input.withConfig({displayName:"PasswordInput",componentId:"sc-acac4b9-3"})([""," &::placeholder{color:var(--privy-color-foreground-3);font-style:italic;font-size:14px;}overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"],b),I=m.I4.div.withConfig({displayName:"PasswordDisplay",componentId:"sc-acac4b9-4"})(["",""],b),C=m.I4.div.withConfig({displayName:"PasswordContainer",componentId:"sc-acac4b9-5"})(["position:relative;width:100%;display:flex;align-items:center;justify-content:",";"],e=>{let{centered:t}=e;return t?"center":"space-between"}),j=m.I4.div.withConfig({displayName:"Header",componentId:"sc-acac4b9-6"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;margin:32px 0;gap:4px;& h3{font-size:18px;font-style:normal;font-weight:600;line-height:24px;}& p{max-width:300px;font-size:14px;font-style:normal;font-weight:400;line-height:20px;}"]),k=m.I4.div.withConfig({displayName:"Details",componentId:"sc-acac4b9-7"})(["display:flex;flex-direction:column;gap:10px;padding-bottom:1rem;"]),N=m.I4.div.withConfig({displayName:"DetailItem",componentId:"sc-acac4b9-8"})(["display:flex;text-align:left;align-items:center;gap:8px;max-width:300px;font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:-0.008px;margin:0 8px;color:var(--privy-color-foreground-2);> :first-child{min-width:24px;}"]),A=(0,m.I4)(u.B).withConfig({displayName:"ExportButton",componentId:"sc-acac4b9-10"})(["display:flex;flex:1;gap:4px;justify-content:center;&&{background:var(--privy-color-background);border-radius:var(--privy-border-radius-md);border-color:var(--privy-color-foreground-3);border-width:1px;}"]),S=m.I4.div.withConfig({displayName:"InputRightIcons",componentId:"sc-acac4b9-11"})(["position:absolute;right:0.5rem;display:flex;flex-direction:row;justify-content:space-around;align-items:center;"]),E=(0,m.I4)(l).withConfig({displayName:"RegenerateIcon",componentId:"sc-acac4b9-12"})(["height:1.25rem;width:1.25rem;stroke:var(--privy-color-accent);cursor:pointer;:active{stroke:var(--privy-color-accent-light);}"]),z=(0,m.I4)(g).withConfig({displayName:"HiddenIcon",componentId:"sc-acac4b9-13"})(["height:1.25rem;width:1.25rem;stroke:var(--privy-color-accent);cursor:pointer;:active{stroke:var(--privy-color-accent-light);}"]),B=(0,m.I4)(d).withConfig({displayName:"ShownIcon",componentId:"sc-acac4b9-14"})(["height:1.25rem;width:1.25rem;stroke:var(--privy-color-accent);cursor:pointer;:active{stroke:var(--privy-color-accent-light);}"]),H=m.I4.progress.withConfig({displayName:"StrengthMeter",componentId:"sc-acac4b9-15"}
1)(["height:4px;width:100%;margin:8px 0;::-webkit-progress-bar{border-radius:8px;background:var(--privy-color-foreground-4);}::-webkit-progress-value{border-radius:8px;transition:all 0.1s ease-out;background:",";}"],e=>{let{label:t}=e;return("Strong"===t?"#78dca6":"Medium"===t&&"var(--privy-color-warn)")||"var(--privy-color-error)"})},30121:(e,t,i)=>{i.d(t,{A:()=>l});var r=i(15882),n=i(57722);const o=["title","titleId"];function a(e,t){let{title:i,titleId:a}=e,l=(0,r.A)(e,o);return n.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:t,"aria-labelledby":a},l),i?n.createElement("title",{id:a},i):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"}))}const l=n.forwardRef(a)},43122:(e,t,i)=>{i.d(t,{S:()=>z});var r=i(24107),n=i(15882),o=i(90034),a=i(57722),l=i(52610),c=i(1991),s=i(33898),d=i(76107);const p=["children"],h=["title","subtitle","icon","iconVariant","iconLoadingStatus","showBack","onBack","showInfo","onInfo","showClose","onClose","step"],g=["children"],m=["children"],u=["children"],f=["children"],v=l.I4.div.withConfig({displayName:"ScreenRoot",componentId:"sc-2e815abe-0"})(["--screen-space:16px;--screen-space-lg:calc(var(--screen-space) * 1.5);position:relative;overflow:hidden;margin:0 calc(-1 * var(--screen-space));height:100%;border-radius:var(--privy-border-radius-lg);"]),x=l.I4.div.withConfig({displayName:"ScreenRootInner",componentId:"sc-2e815abe-1"})(["display:flex;flex-direction:column;gap:calc(var(--screen-space) * 1.5);width:100%;background:var(--privy-color-background);padding:0 var(--screen-space-lg) var(--screen-space);height:100%;border-radius:var(--privy-border-radius-lg);"]),y=l.I4.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),b=(0,l.I4)(s.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),w=l.I4.div.withConfig({displayName:"BodyContainer",componentId:"sc-2e815abe-4"})(["flex:1 1 auto;display:flex;flex-direction:column;overflow-y:auto;padding:3px;margin:-3px;&::-webkit-scrollbar{display:none;}scrollbar-gutter:stable both-edges;scrollbar-width:none;-ms-overflow-style:none;"," background-repeat:no-repeat;background-size:100% 32px,100% 16px;background-attachment:local,scroll;"],e=>{let{$colorScheme:t}=e;return"light"===t?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.06)) bottom;":"dark"===t?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.06)) bottom;":void 0}),I=l.I4.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]);let C=l.I4.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),j=l.I4.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),k=l.I4.h3.withConfig({displayName:"HeaderTitle",componentId:"sc-2e815abe-8"})(["&&{font-size:20px;line-height:32px;font-weight:500;color:var(--privy-color-foreground);margin:0;}"]),N=l.I4.p.withConfig({displayName:"HeaderSubtitle",componentId:"sc-2e815abe-9"})(["&&{margin:0;font-size:16px;font-weight:300;line-height:24px;color:var(--privy-color-foreground);}"]),A=l.I4.div.withConfig({displayName:"IconContainer",componentId:"sc-2e815abe-10"})(["background:",";border-radius:50%;width:64px;height:64px;display:flex;align-items:center;justify-content:center;"],e=>{let{$variant:t}=e;
1switch(t){case"success":return"var(--privy-color-success-bg, #EAFCEF)";case"warning":return"var(--privy-color-warn, #FEF3C7)";case"error":return"var(--privy-color-error-bg, #FEE2E2)";case"loading":case"logo":return"transparent";default:return"var(--privy-color-background-2)"}}),S=l.I4.div.withConfig({displayName:"LogoContainer",componentId:"sc-2e815abe-11"})(["display:flex;align-items:center;justify-content:center;margin-bottom:var(--screen-space);img,svg{max-height:90px;max-width:180px;}"]),E=l.I4.div.withConfig({displayName:"LoadingWithIconContainer",componentId:"sc-2e815abe-12"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:82px;> div{position:relative;}> div > :first-child{position:relative;}> div > :last-child{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);}"]);const z=e=>{let{children:t}=e,i=(0,n.A)(e,p);return(0,o.jsx)(v,{children:(0,o.jsx)(x,(0,r.A)((0,r.A)({},i),{},{children:t}))})};let B=l.I4.div.withConfig({displayName:"ProgressBarContainer",componentId:"sc-2e815abe-13"})(["position:absolute;top:0;left:calc(-1 * var(--screen-space-lg));width:calc(100% + calc(var(--screen-space-lg) * 2));height:4px;background:var(--privy-color-background-2);border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden;"]),H=(0,l.I4)(s.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),P=l.I4.div.withConfig({displayName:"ProgressBarFill",componentId:"sc-2e815abe-15"})(["height:100%;width:","%;background:var(--privy-color-foreground-3);border-radius:2px;transition:width 300ms ease-in-out;"],e=>{let{pct:t}=e;return t}),R=e=>{let{step:t}=e;return t?(0,o.jsx)(B,{children:(0,o.jsx)(P,{pct:Math.min(100,t.current/t.total*100)})}):null};z.Header=e=>{let{title:t,subtitle:i,icon:a,iconVariant:l,iconLoadingStatus:c,showBack:s,onBack:d,showInfo:p,onInfo:g,showClose:m,onClose:u,step:f}=e,v=(0,n.A)(e,h);return(0,o.jsxs)(y,(0,r.A)((0,r.A)({},v),{},{children:[(0,o.jsx)(b,{backFn:s?d:void 0,infoFn:p?g:void 0,onClose:m?u:void 0,closeable:m}),(a||l||t||i)&&(0,o.jsxs)(C,{children:[a||l?(0,o.jsx)(z.Icon,{icon:a,variant:l,loadingStatus:c}):null,(0,o.jsxs)(j,{children:[t&&(0,o.jsx)(k,{children:t}),i&&(0,o.jsx)(N,{children:i})]})]}),f&&(0,o.jsx)(R,{step:f})]}))},(z.Body=a.forwardRef((e,t)=>{let{children:i}=e,a=(0,n.A)(e,g);return(0,o.jsx)(w,(0,r.A)((0,r.A)({ref:t},a),{},{children:i}))})).displayName="Screen.Body",z.Footer=e=>{let{children:t}=e,i=(0,n.A)(e,m);return(0,o.jsx)(I,(0,r.A)((0,r.A)({id:"privy-content-footer-container"},i),{},{children:t}))},z.Actions=e=>{let{children:t}=e,i=(0,n.A)(e,u);return(0,o.jsx)(F,(0,r.A)((0,r.A)({},i),{},{children:t}))},z.HelpText=e=>{let{children:t}=e,i=(0,n.A)(e,f);return(0,o.jsx)(L,(0,r.A)((0,r.A)({},i),{},{children:t}))},z.Watermark=()=>(0,o.jsx)(H,{}),z.Icon=e=>{let{icon:t,variant:i="subtle",loadingStatus:r}=e;return"logo"===i&&t?(0,o.jsx)(S,"string"==typeof t?{children:(0,o.jsx)("img",{src:t,alt:""})}:a.isValidElement(t)?{children:t}:{children:a.createElement(t)}):"loading"===i?t?(0,o.jsx)(E,{children:(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,o.jsx)(c.a4,{success:null===r||void 0===r?void 0:r.success,fail:null===r||void 0===r?void 0:r.fail}),"string"==typeof t?(0,o.jsx)("span",{style:{background:"url('".concat(t,"') 0 0 / contain"),height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):a.isValidElement(t)?a.cloneElement(t,{style:{width:"38px",height:"38px"}}):a.createElement(t,{style:{width:"38px",height:"38px"}})]})}):(0,o.jsx)(A,{$variant:i,children:(0,o.jsx)(d.N,{size:"64px"})}):(0,o.jsx)(A,{$variant:i,children:t&&("string"==typeof t?(0,o.jsx)("img",{src:t,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):a.isValidElement(t)?t:a.createElement(t,{width:32,height:32,stroke:(()=>{switch(i){case"success":return"var(--privy-color-icon-success)";case"warning":return"var(--privy-color-icon-warning)";case"error":return"var(--privy-color-icon-error)";default:return"var(--privy-color-icon-muted)"}})(),strokeWidth:2}))})};let F=l.I4.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),L=l.I4.p.withConfig({displayName:"HelpTextContainer",componentId:"sc-2e815abe-17"})(["&&{margin:0;width:100%;text-align:center;color:var(--privy-color-foreground-3);font-size:14px;line-height:22px;& a{color:var(--privy-color-accent);}}"])},60229:(e,t,i)=>{i.d(t,{B:()=>n,C:()=>l,F:()=>s,H:()=>a,R:()=>g,S:()=>p,a:()=>d,b:()=>h,c:()=>c,d:()=>m,e:()=>o});var r=i(52610);const n=r.I4.div.withConfig({displayName:"BottomPusherContainer",componentId:"sc-cb963810-0"})(["display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;margin-top:auto;gap:16px;flex-grow:100;"]),o=r.I4.div.withConfig({displayName:"CenteredItem",componentId:"sc-cb963810-1"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;flex-grow:1;width:100%;"]),a=r.I4.div.withConfig({displayName:"HorizontallyCenteredItem",componentId:"sc-cb963810-2"})(["display:flex;flex-direction:column;align-items:center;width:100%;"]),l=(0,r.I4)(o).withConfig({displayName:"CenteredItemWithPadding",componentId:"sc-cb963810-3"})(["padding:20px 0;"]),c=(0,r.I4)(o).withConfig({displayName:"CenteredItemWithGap",componentId:"sc-cb963810-4"})(["gap:16px;"]),s=r.I4.div.withConfig({displayName:"FlexContainer",componentId:"sc-cb963810-5"})(["display:flex;flex-direction:column;width:100%;"]),d=r.I4.div.withConfig({displayName:"FixedGappedContainer",componentId:"sc-cb963810-6"})(["display:flex;flex-direction:column;gap:8px;"]),p=r.I4.div.withConfig({displayName:"StyledCalloutSection",componentId:"sc-cb963810-8"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;text-align:left;gap:8px;padding:16px;margin-top:16px;margin-bottom:16px;width:100%;background:var(--privy-color-background-2);border-radius:var(--privy-border-radius-md);&& h4{color:var(--privy-color-foreground-3);font-size:14px;text-decoration:underline;font-weight:medium;}&& p{color:var(--privy-color-foreground-3);font-size:14px;}"]),h=r.I4.div.withConfig({displayName:"RefactorSpacerTop",componentId:"sc-cb963810-9"})(["height:16px;"]),g=r.I4.div.withConfig({displayName:"RefactorSpacerBottom",componentId:"sc-cb963810-10"}
1)(["height:12px;"]),m=r.I4.div.withConfig({displayName:"ConfigurableSpacer",componentId:"sc-cb963810-12"})(["height:","px;"],e=>{var t;return null!==(t=e.height)&&void 0!==t?t:"12"})},76107:(e,t,i)=>{i.d(t,{N:()=>o});var r=i(90034),n=i(52610);const o=e=>{let{size:t,centerIcon:i}=e;return(0,r.jsx)(a,{$size:t,children:(0,r.jsxs)(l,{children:[(0,r.jsx)(s,{}),(0,r.jsx)(d,{}),i?(0,r.jsx)(c,{children:i}):null]})})};let a=n.I4.div.withConfig({displayName:"LoadingContainer",componentId:"sc-ebc93df8-0"})(["--spinner-size:",";display:inline-flex;justify-content:center;align-items:center;@media all and (display-mode:standalone){margin-bottom:30px;}"],e=>e.$size?e.$size:"96px"),l=n.I4.div.withConfig({displayName:"SpinnerContainer",componentId:"sc-ebc93df8-1"})(["position:relative;height:var(--spinner-size);width:var(--spinner-size);opacity:1;animation:fadein 200ms ease;"]),c=n.I4.div.withConfig({displayName:"CenterIconContainer",componentId:"sc-ebc93df8-2"})(["position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;svg,img{width:calc(var(--spinner-size) * 0.4);height:calc(var(--spinner-size) * 0.4);border-radius:var(--privy-border-radius-full);}"]),s=n.I4.div.withConfig({displayName:"CircleFixed",componentId:"sc-ebc93df8-3"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);&&{border:4px solid var(--privy-color-border-default);border-radius:50%;}"]),d=n.I4.div.withConfig({displayName:"CircleRotate",componentId:"sc-ebc93df8-4"})(["position:absolute;top:0;right:0;bottom:0;left:0;width:var(--spinner-size);height:var(--spinner-size);animation:spin 1200ms linear infinite;&&{border:4px solid;border-color:var(--privy-color-icon-subtle) transparent transparent transparent;border-radius:50%;}@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}"])},94627:(e,t,i)=>{i.r(t),i.d(t,{PasswordRecoveryScreen:()=>m,default:()=>m});var r=i(90034),n=i(30121),o=i(57722),a=i(52610),l=i(49931),c=i(67980),s=i(60229),d=i(16026),p=i(78055),h=i(51380),g=i(43122);i(88404),i(2035),i(30549),i(82425),i(82595);const m={component:()=>{let[e,t]=(0,o.useState)(!0),{authenticated:i,user:a}=(0,l.u)(),{walletProxy:c,closePrivyModal:m,createAnalyticsEvent:x,client:y}=(0,h.u)(),{navigate:b,data:w,onUserCloseViaDialogOrKeybindRef:I}=(0,l.a)(),[C,j]=(0,o.useState)(void 0),[k,N]=(0,o.useState)(""),[A,S]=(0,o.useState)(!1),{entropyId:E,entropyIdVerifier:z,onCompleteNavigateTo:B,onSuccess:H,onFailure:P}=w.recoverWallet,R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"User exited before their wallet could be recovered";m({shouldCallAuthOnSuccess:!1}),P("string"==typeof e?new h.l(e):e)};return I.current=R,(0,o.useEffect)(()=>{if(!i)return R("User must be authenticated and have a Privy wallet before it can be recovered")},[i]),(0,r.jsxs)(g.S,{children:[(0,r.jsx)(g.S.Header,{icon:n.A,title:"Enter your password",subtitle:"Please provision your account on this new device. To continue, enter your recovery password.",showClose:!0,onClose:R}),(0,r.jsx)(g.S.Body,{children:(0,r.jsx)(u,{children:(0,r.jsxs)("div",{children:[(0,r.jsxs)(d.P,{children:[(0,r.jsx)(d.a,{type:e?"password":"text",onChange:e=>(e=>{e&&j(e)})(e.target.value),disabled:A,style:{paddingRight:"2.3rem"}}),(0,r.jsx)(d.I,{style:{right:"0.75rem"},children:e?(0,r.jsx)(d.H,{onClick:()=>t(!1)}):(0,r.jsx)(d.S,{onClick:()=>t(!0)})})]}),!!k&&(0,r.jsx)(f,{children:k})]})})}),(0,r.jsxs)(g.S.Footer,{children:[(0,r.jsx)(g.S.HelpText,{children:(0,r.jsxs)(s.S,{children:[(0,r.jsx)("h4",{children:"Why is this necessary?"}),(0,r.jsx)("p",{children:"You previously set a password for this wallet. This helps ensure only you can access it"})]})}),(0,r.jsx)(g.S.Actions,{children:(0,r.jsx)(v,{loading:A||!c,disabled:!C,onClick:async()=>{S(!0);let e=await y.getAccessToken(),t=(0,l.h)(a,E);if(!e||!t||null===C)return R("User must be authenticated and have a Privy wallet before it can be recovered");try{x({eventName:"embedded_wallet_recovery_started",payload:{walletAddress:t.address}}),await(null===c||void 0===c?void 0:c.recover({accessToken:e,entropyId:E,entropyIdVerifier:z,recoveryPassword:C})),N(""),B?b(B):m({shouldCallAuthOnSuccess:!1}),null!==H&&void 0!==H&&H(t),x({eventName:"embedded_wallet_recovery_completed",payload:{walletAddress:t.address}})}catch(e){(0,p.r)(e)?N("Invalid recovery password, please try again."):N("An error has occurred, please try again.")}finally{S(!1)}},$hideAnimations:!E&&A,children:"Recover your account"})}),(0,r.jsx)(g.S.Watermark,{})]})]})}};let u=a.I4.div.withConfig({displayName:"Content",componentId:"sc-1247f710-0"})(["display:flex;flex-direction:column;gap:1.5rem;"]),f=a.I4.div.withConfig({displayName:"ErrorMessage",componentId:"sc-1247f710-1"})(["line-height:20px;height:20px;font-size:13px;color:var(--privy-color-error);text-align:left;margin-top:0.5rem;"]),v=(0,a.I4)(c.P).withConfig({displayName:"NoAnimationPrimaryButton",componentId:"sc-1247f710-2"})(["",""],e=>{let{$hideAnimations:t}=e;return t&&(0,a.AH)(["&&{transition:none;}"])})}}]); 2//# sourceMappingURL=4627.ddce218a.chunk.js.map
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.