1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4335],{51987:function(e,r,i){i.d(r,{Z:function(){return p}});var t=i(63353);let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,i)=>i?i.toUpperCase():r.toLowerCase()),a=e=>{let r=o(e);return r.charAt(0).toUpperCase()+r.slice(1)},l=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return r.filter((e,r,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===r).join(" ").trim()},s=e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};var c={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 d=(0,t.forwardRef)((e,r)=>{let{color:i="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:d="",children:p,iconNode:h,...u}=e;return(0,t.createElement)("svg",{ref:r,...c,width:n,height:n,stroke:i,strokeWidth:a?24*Number(o)/Number(n):o,className:l("lucide",d),...!p&&!s(u)&&{"aria-hidden":"true"},...u},[...h.map(e=>{let[r,i]=e;return(0,t.createElement)(r,i)}),...Array.isArray(p)?p:[p]])}),p=(e,r)=>{let i=(0,t.forwardRef)((i,o)=>{let{className:s,...c}=i;return(0,t.createElement)(d,{ref:o,iconNode:r,className:l("lucide-".concat(n(a(e))),"lucide-".concat(e),s),...c})});return i.displayName=a(e),i}},94335:function(e,r,i){i.r(r),i.d(r,{ConnectLedgerScreen:function(){return h},ConnectLedgerScreenComponent:function(){return p},ConnectLedgerScreenView:function(){return d},default:function(){return h}});var t=i(9054);let n=(0,i(51987).Z)("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=i(83771),a=i(76429),l=i(35376),s=i(96177);i(63353),i(74094),i(58005),i(85201),i(53238),i(45204);let c=e=>(0,t.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,t.jsx)("g",{children:(0,t.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:r,title:i="Phantom supports Ledger",subtitle:o="Are you using a Ledger hardware wallet?\nContinue to sign with Ledger"})=>(0,t.jsx)(l.S,{title:i,subtitle:(0,t.jsx)(g,{children:o}),primaryCta:{label:"Continue with Ledger",onClick:e},secondaryCta:{label:"Continue without Ledger",onClick:r},watermark:!0,children:(0,t.jsxs)(u,{children:[(0,t.jsx)(s.E,{style:{width:"48px",height:"48px"}}),(0,t.jsx)(n,{strokeWidth:2,color:"var(--privy-color-icon-subtle)",width:22,height:22}),(0,t.jsx)(c,{style:{width:"48px",height:"48px"}})]})});function p(){let{data:e,setModalData:r,navigate:i}=(0,a.a)();return(0,t.jsx)(d,{onContinueWithLedger:function(){r({...e,login:{...e?.login,isSigningInWithLedgerSolana:!0}}),i("ConnectionStatusScreen")},onContinueWithoutLedger:function(){r({...e,login:{...e?.login,isSigningInWithLedgerSolana:!1}}),i("ConnectionStatusScreen")}})}let h={component:p},u=o.zo.div` 2 display: flex; 3 align-items: center; 4 justify-content: center; 5 gap: 8px; 6 margin-bottom: var(--screen-space); 7`,g=o.zo.span` 8 white-space: pre-wrap; 9`},10869:function(e,r,i){i.d(r,{S:function(){return j}});var t=i(9054),n=i(63353),o=i(83771),a=i(65610),l=i(48904),s=i(4714);let c=o.zo.div` 10 /* spacing tokens */ 11 --screen-space: 16px; /* base 1x = 16 */ 12 --screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */ 13 14 position: relative; 15 overflow: hidden; 16 margin: 0 calc(-1 * var(--screen-space)); /* extends over modal padding */ 17 height: 100%; 18 border-radius: var(--privy-border-radius-lg); 19`,d=o.zo.div` 20 display: flex; 21 flex-direction: column; 22 gap: calc(var(--screen-space) * 1.5); 23 width: 100%; 24 background: var(--privy-color-background); 25 padding: 0 var(--screen-space-lg) var(--screen-space); 26 height: 100%; 27 border-radius: var(--privy-border-radius-lg); 28`,p=o.zo.div` 29 position: relative; 30 display: flex; 31 flex-direction: column; 32`,h=(0,o.zo)(l.M)` 33 margin: 0 -8px; 34`,u=o.zo.div` 35 flex: 1 1 auto; 36 display: flex; 37 flex-direction: column; 38 39 /* Enable scrolling */ 40 overflow-y: auto; 41 42 /* Hide scrollbar but keep functionality when scrollable */ 43 /* Add padding for focus outline space, offset with negative margin */ 44 padding: 3px; 45 margin: -3px; 46 47 &::-webkit-scrollbar {
48 display: none; 49 } 50 scrollbar-gutter: stable both-edges; 51 scrollbar-width: none; 52 -ms-overflow-style: none; 53 54 /* Gradient effect for scroll indication */ 55 ${({$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} 56 57 background-repeat: no-repeat; 58 background-size: 59 100% 32px, 60 100% 16px; 61 background-attachment: local, scroll; 62`,g=o.zo.div` 63 display: flex; 64 flex-direction: column; 65 gap: var(--screen-space-lg); 66 margin-top: 1.5rem; 67`,x=o.zo.div` 68 text-align: center; 69 display: flex; 70 flex-direction: column; 71 align-items: center; 72 gap: var(--screen-space); 73`,v=o.zo.div` 74 display: flex; 75 flex-direction: column; 76 gap: 4px; 77`,f=o.zo.h3` 78 && { 79 font-size: 20px; 80 line-height: 32px; 81 font-weight: 500; 82 color: var(--privy-color-foreground); 83 margin: 0; 84 } 85`,m=o.zo.p` 86 && { 87 margin: 0; 88 font-size: 16px; 89 font-weight: 300; 90 line-height: 24px; 91 color: var(--privy-color-foreground); 92 } 93`,y=o.zo.div` 94 background: ${({$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)"}}}; 95 96 border-radius: 50%; 97 width: 64px; 98 height: 64px; 99 display: flex; 100 align-items: center; 101 justify-content: center; 102`,b=o.zo.div` 103 display: flex; 104 align-items: center; 105 justify-content: center; 106 107 img, 108 svg { 109 max-height: 90px; 110 max-width: 180px; 111 } 112`,w=o.zo.div` 113 display: flex; 114 flex-direction: column; 115 justify-content: center; 116 align-items: center; 117 width: 100%; 118 height: 82px; 119 120 > div { 121 position: relative; 122 } 123 124 > div > :first-child { 125 position: relative; 126 } 127 128 > div > :last-child { 129 position: absolute; 130 left: 50%; 131 top: 50%; 132 transform: translate(-50%, -50%); 133 } 134`,j=({children:e,...r})=>(0,t.jsx)(c,{children:(0,t.jsx)(d,{...r,children:e})}),k=o.zo.div` 135 position: absolute; 136 top: 0; 137 left: calc(-1 * var(--screen-space-lg)); 138 width: calc(100% + calc(var(--screen-space-lg) * 2)); 139 height: 4px; 140 background: var(--privy-color-background-2); 141 border-top-left-radius: inherit; 142 border-top-right-radius: inherit; 143 overflow: hidden; 144`,z=(0,o.zo)(l.B)` 145 padding: 0; 146 && a { 147 padding: 0; 148 color: var(--privy-color-foreground-3); 149 } 150`,L=o.zo.div` 151 height: 100%; 152 width: ${({pct:e})=>e}%; 153 background: var(--privy-color-foreground-3); 154 border-radius: 2px; 155 transition: width 300ms ease-in-out; 156`,C=({step:e})=>e?(0,t.jsx)(k,{children:(0,t.jsx)(L,{pct:Math.min(100,e.current/e.total*100)})}):null;j.Header=({title:e,subtitle:r,icon:i,iconVariant:n,iconLoadingStatus:o,showBack:a,onBack:l,showInfo:s,onInfo:c,showClose:d,onClose:u,step:g,headerTitle:y,...b})=>(0,t.jsxs)(p,{...b,children:[(0,t.jsx)(h,{backFn:a?l:void 0,infoFn:s?c:void 0,onClose:d?u:void 0,title:y,closeable:d}),(i||n||e||r)&&(0,t.jsxs)(x,{children:[i||n?(0,t.jsx)(j.Icon,{icon:i,variant:n,loadingStatus:o}):null,!(!e&&!r)&&(0,t.jsxs)(v,{children:[e&&(0,t.jsx)(f,{children:e}),r&&(0,t.jsx)(m,{children:r})]})]}),g&&(0,t.jsx)(C,{step:g})]}),(j.Body=n.forwardRef(({children:e,...r},i)=>(0,t.jsx)(u,{ref:i,...r,children:e}))).displayName="Screen.Body",j.Footer=({children:e,...r})=>(0,t.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),j.Actions=({children:e,...r})=>(0,t.jsx)(S,{...r,children:e}),j.HelpText=({children:e,...r})=>(0,t.jsx)(E,{...r,children:e}),j.FooterText=({children:e,...r})=>(0,t.jsx)($,{...r,children:e}),j.Watermark=()=>(0,t.jsx)(z,{}),j.Icon=({icon:e,variant:r="subtle",loadingStatus:i})=>"logo"===r&&e?(0,t.jsx)(b,"string"==typeof e?{children:(0,t.jsx)("img",{src:e,alt:""})}:n.isValidElement(e)?{children:e}:{children:n.createElement(e)}):"loading"===r?e?(0,t.jsx)(w,{children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,t.jsx)(a.N,{success:i?.success,fail:i?.fail}),"string"==typeof e?(0,t.jsx)("span",{style:{background:`url('${e}') 0 0 / contain`,height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):n.isValidElement(e)?n.cloneElement(e,{style:{width:"38px",height:"38px"}}):n.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,t.jsx)(y,{$variant:r,children:(0,t.jsx)(s.N,{size:"64px"})}):(0,t.jsx)(y,{$variant:r,children:e&&("string"==typeof e?(0,t.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):n.isValidElement(e)?e:n.createElement(e,{width:32,height:32,stroke:(()=>{switch(r){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 S=o.zo.div` 157 width: 100%; 158 display: flex; 159 flex-direction: column; 160 gap: calc(var(--screen-space) / 2); 161`,E=o.zo.div` 162 && { 163 margin: 0; 164 width: 100%; 165 text-align: center; 166 color: var(--privy-color-foreground-2); 167 font-size: 13px; 168 line-height: 20px; 169 170 & a { 171 text-decoration: underline; 172 } 173 } 174`,$=o.zo.div` 175 && { 176 margin-top: -1rem; 177 width: 100%; 178 text-align: center; 179 color: var(--privy-color-foreground-2); 180 font-size: 0.6875rem; // 11px 181 line-height: 1rem; // 16px 182 } 183`},35376:function(e,r,i){i.d(r,{S:function(){return a}});var t=i(9054),n=i(48904),o=i(10869);let a=({primaryCta:e,secondaryCta:r,helpText:i,footerText:a,watermark:l=!0,children:s,...c})=>{let d=e||r?(0,t.jsxs)(t.Fragment,{children:[e&&(()=>{let{label:r,...i}=e,o=i.variant||"primary";return(0,t.jsx)(n.a,{...i,variant:o,style:{width:"100%",...i.style},children:r})})(),r&&(()=>{let{label:e,...i}=r,o=i.variant||"secondary";return(0,t.jsx)(n.a,{...i,variant:o,style:{width:"100%",...i.style},children:e})})()]}):null;return(0,t.jsxs)(o.S,{id:c.id,className:c.className,children:[(0,t.jsx)(o.S.Header,{...c}),s?(0,t.jsx)(o.S.Body,{children:s}):null,i||d||l?(0,t.jsxs)(o.S.Footer,{children:[i?(0,t.jsx)(o.S.HelpText,{children:i}):null,d?(0,t.jsx)(o.S.Actions,{children:d}):null,l?(0,t.jsx)(o.S.Watermark,{}):null]}):null,a?(0,t.jsx)(o.S.FooterText,{children:a}):null]})}},4714:function(e,r,i){i.d(r,{N:function(){return o}});var t=i(9054),n=i(83771);let o=({size:e,centerIcon:r})=>(0,t.jsx)(a,{$size:e,children:(0,t.jsxs)(l,{children:[(0,t.jsx)(c,{}),(0,t.jsx)(d,{}),r?(0,t.jsx)(s,{children:r}):null]})}),a=n.zo.div` 184 --spinner-size: ${e=>e.$size?e.$size:"96px"}; 185 186 display: inline-flex; 187 justify-content: center; 188 align-items: center; 189 190 @media all and (display-mode: standalone) { 191 margin-bottom: 30px; 192 } 193`,l=n.zo.div` 194 position: relative; 195 height: var(--spinner-size); 196 width: var(--spinner-size); 197 198 opacity: 1; 199 animation: fadein 200ms ease; 200`,s=n.zo.div` 201 position: absolute; 202 top: 0; 203 right: 0; 204 bottom: 0; 205 left: 0; 206 display: flex; 207 align-items: center; 208 justify-content: center; 209 svg, 210 img { 211 width: calc(var(--spinner-size) * 0.4); 212 height: calc(var(--spinner-size) * 0.4); 213 border-radius: var(--privy-border-radius-full); 214 } 215`,c=n.zo.div` 216 position: absolute; 217 top: 0; 218 right: 0; 219 bottom: 0; 220 left: 0; 221 width: var(--spinner-size); 222 height: var(--spinner-size); 223 224 && { 225 border: 4px solid var(--privy-color-border-default); 226 border-radius: 50%; 227 } 228`,d=n.zo.div` 229 position: absolute; 230 top: 0; 231 right: 0; 232 bottom: 0; 233 left: 0; 234 width: var(--spinner-size); 235 height: var(--spinner-size); 236 animation: spin 1200ms linear infinite; 237 238 && { 239 border: 4px solid; 240 border-color: var(--privy-color-icon-subtle) transparent transparent transparent; 241 border-radius: 50%; 242 } 243 244 @keyframes spin { 245 from { 246 transform: rotate(0deg); 247 } 248 to { 249 transform: rotate(360deg); 250 } 251 } 252`}}]);
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.