1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14014],{4031:(e,i,r)=>{r.d(i,{S:()=>C});var n=r(95155),t=r(12115),o=r(30218),a=r(89528),s=r(12563),l=r(89762);let c=o.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);"]),d=o.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);"]),p=o.I4.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),h=(0,o.I4)(s.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),g=o.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;"],({$colorScheme:e})=>"light"===e?"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"===e?"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),u=o.I4.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]),m=o.I4.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),v=o.I4.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),x=o.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;}"]),f=o.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);}"]),y=o.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;"],({$variant:e})=>{switch(e){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)"}}),b=o.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;}"]),w=o.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%);}"]),C=({children:e,...i})=>(0,n.jsx)(c,{children:(0,n.jsx)(d,{...i,children:e})}),I=o.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;"]),j=(0,o.I4)(s.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),k=o.I4.div.withConfig({displayName:"ProgressBarFill",componentId:"sc-2e815abe-15"}
1)(["height:100%;width:","%;background:var(--privy-color-foreground-3);border-radius:2px;transition:width 300ms ease-in-out;"],({pct:e})=>e),L=({step:e})=>e?(0,n.jsx)(I,{children:(0,n.jsx)(k,{pct:Math.min(100,e.current/e.total*100)})}):null;C.Header=({title:e,subtitle:i,icon:r,iconVariant:t,iconLoadingStatus:o,showBack:a,onBack:s,showInfo:l,onInfo:c,showClose:d,onClose:g,step:u,...y})=>(0,n.jsxs)(p,{...y,children:[(0,n.jsx)(h,{backFn:a?s:void 0,infoFn:l?c:void 0,onClose:d?g:void 0,closeable:d}),(r||t||e||i)&&(0,n.jsxs)(m,{children:[r||t?(0,n.jsx)(C.Icon,{icon:r,variant:t,loadingStatus:o}):null,(0,n.jsxs)(v,{children:[e&&(0,n.jsx)(x,{children:e}),i&&(0,n.jsx)(f,{children:i})]})]}),u&&(0,n.jsx)(L,{step:u})]}),(C.Body=t.forwardRef(({children:e,...i},r)=>(0,n.jsx)(g,{ref:r,...i,children:e}))).displayName="Screen.Body",C.Footer=({children:e,...i})=>(0,n.jsx)(u,{id:"privy-content-footer-container",...i,children:e}),C.Actions=({children:e,...i})=>(0,n.jsx)(N,{...i,children:e}),C.HelpText=({children:e,...i})=>(0,n.jsx)(S,{...i,children:e}),C.Watermark=()=>(0,n.jsx)(j,{}),C.Icon=({icon:e,variant:i="subtle",loadingStatus:r})=>"logo"===i&&e?(0,n.jsx)(b,"string"==typeof e?{children:(0,n.jsx)("img",{src:e,alt:""})}:t.isValidElement(e)?{children:e}:{children:t.createElement(e)}):"loading"===i?e?(0,n.jsx)(w,{children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,n.jsx)(a.a4,{success:r?.success,fail:r?.fail}),"string"==typeof e?(0,n.jsx)("span",{style:{background:`url('${e}') 0 0 / contain`,height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):t.isValidElement(e)?t.cloneElement(e,{style:{width:"38px",height:"38px"}}):t.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,n.jsx)(y,{$variant:i,children:(0,n.jsx)(l.N,{size:"64px"})}):(0,n.jsx)(y,{$variant:i,children:e&&("string"==typeof e?(0,n.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}
1):t.isValidElement(e)?e:t.createElement(e,{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 N=o.I4.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),S=o.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);}}"])},13410:(e,i,r)=>{r.d(i,{S:()=>a});var n=r(95155),t=r(84498),o=r(4031);let a=({primaryCta:e,secondaryCta:i,helpText:r,watermark:a=!0,children:s,...l})=>{let c=e||i?(0,n.jsxs)(n.Fragment,{children:[e&&(()=>{let{label:i,...r}=e,o=r.variant||"primary";return(0,n.jsx)(t.B,{...r,variant:o,style:{width:"100%",...r.style},children:i})})(),i&&(()=>{let{label:e,...r}=i,o=r.variant||"secondary";return(0,n.jsx)(t.B,{...r,variant:o,style:{width:"100%",...r.style},children:e})})()]}):null;return(0,n.jsxs)(o.S,{id:l.id,className:l.className,children:[(0,n.jsx)(o.S.Header,{...l}),s?(0,n.jsx)(o.S.Body,{children:s}):null,r||c||a?(0,n.jsxs)(o.S.Footer,{children:[r?(0,n.jsx)(o.S.HelpText,{children:r}):null,c?(0,n.jsx)(o.S.Actions,{children:c}):null,a?(0,n.jsx)(o.S.Watermark,{}):null]}):null]})}},14014:(e,i,r)=>{r.r(i),r.d(i,{ConnectLedgerScreen:()=>h,ConnectLedgerScreenComponent:()=>p,ConnectLedgerScreenView:()=>d,default:()=>h});var n=r(95155);let t=(0,r(42407).A)("arrow-right-left",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);var o=r(30218),a=r(47498),s=r(13410),l=r(15746);r(12115),r(50205),r(92253),r(68463),r(72378),r(44406);let c=e=>(0,n.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"-0.625 12.48 397.647 399.546",width:"2500",height:"674",preserveAspectRatio:"none",...e,children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{fill:"#333745",d:"M 333.9 12.8 L 150.9 12.8 L 150.9 258.4 L 396.5 258.4 L 396.5 76.7 C 396.6 42.2 368.4 12.8 333.9 12.8 Z M 94.7 12.8 L 64 12.8 C 29.5 12.8 0 40.9 0 76.8 L 0 107.5 L 94.7 107.5 L 94.7 12.8 Z M 0 165 L 94.7 165 L 94.7 259.7 L 0 259.7 L 0 165 Z M 301.9 410.6 L 332.6 410.6 C 367.1 410.6 396.6 382.5 396.6 346.6 L 396.6 316 L 301.9 316 L 301.9 410.6 Z M 150.9 316 L 245.6 316 L 245.6 410.7 L 150.9 410.7 L 150.9 316 Z M 0 316 L 0 346.7 C 0 381.2 28.1 410.7 64 410.7 L 94.7 410.7 L 94.7 316 L 0 316 Z"})})}),d=({onContinueWithLedger:e,onContinueWithoutLedger:i,title:r="Phantom supports Ledger",subtitle:o="Are you using a Ledger hardware wallet?\nContinue to sign with Ledger"})=>(0,n.jsx)(s.S,{title:r,subtitle:(0,n.jsx)(u,{children:o}),primaryCta:{label:"Continue with Ledger",onClick:e},secondaryCta:{label:"Continue without Ledger",onClick:i},watermark:!0,children:(0,n.jsxs)(g,{children:[(0,n.jsx)(l.E,{style:{width:"48px",height:"48px"}}),(0,n.jsx)(t,{strokeWidth:2,color:"var(--privy-color-icon-subtle)",width:22,height:22}),(0,n.jsx)(c,{style:{width:"48px",height:"48px"}})]})});function p(){let{data:e,setModalData:i,navigate:r}=(0,a.a)();return(0,n.jsx)(d,{onContinueWithLedger:function(){i({...e,login:{...e?.login,isSigningInWithLedgerSolana:!0}}),r("ConnectionStatusScreen")},onContinueWithoutLedger:function(){i({...e,login:{...e?.login,isSigningInWithLedgerSolana:!1}}),r("ConnectionStatusScreen")}})}let h={component:p},g=o.I4.div.withConfig({displayName:"IconContainer",componentId:"sc-54536274-0"})(["display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:var(--screen-space);"]),u=o.I4.span.withConfig({displayName:"SubtitleText",componentId:"sc-54536274-1"})(["white-space:pre-wrap;"])},42407:(e,i,r)=>{r.d(i,{A:()=>l});var n=r(12115);let t=e=>{let i=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,i,r)=>r?r.toUpperCase():i.toLowerCase());return i.charAt(0).toUpperCase()+i.slice(1)},o=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return i.filter((e,i,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===i).join(" ").trim()};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,n.forwardRef)((e,i)=>{let{color:r="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:p,...h}=e;return(0,n.createElement)("svg",{ref:i,...a,width:t,height:t,stroke:r,strokeWidth:l?24*Number(s)/Number(t):s,className:o("lucide",c),...!d&&!(e=>{for(let i in e)if(i.startsWith("aria-")||"role"===i||"title"===i)return!0})(h)&&{"aria-hidden":"true"},...h},[...p.map(e=>{let[i,r]=e;return(0,n.createElement)(i,r)}),...Array.isArray(d)?d:[d]])}),l=(e,i)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:l,...c}=r;return(0,n.createElement)(s,{ref:a,iconNode:i,className:o("lucide-".concat(t(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),l),...c})});return r.displayName=t(e),r}},89762:(e,i,r)=>{r.d(i,{N:()=>o});var n=r(95155),t=r(30218);let o=({size:e,centerIcon:i})=>(0,n.jsx)(a,{$size:e,children:(0,n.jsxs)(s,{children:[(0,n.jsx)(c,{}),(0,n.jsx)(d,{}),i?(0,n.jsx)(l,{children:i}):null]})}),a=t.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"),s=t.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;"]),l=t.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);}"]),c=t.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=t.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);}}"])}}]);
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.