1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6387],{11856:(e,r,i)=>{i.d(r,{D:()=>s,M:()=>a});var t=i(95155),n=i(20031);let o=({data:e})=>{let r=e=>"object"==typeof e&&null!==e?(0,t.jsx)(l,{children:Object.entries(e).map(([e,i])=>(0,t.jsxs)("li",{children:[(0,t.jsxs)("strong",{children:[e,":"]})," ",r(i)]},e))}):(0,t.jsx)("span",{children:String(e)});return(0,t.jsx)("div",{children:r(e)})},a=n.I4.div` 2 margin-top: 1.5rem; 3 background-color: var(--privy-color-background-2); 4 border-radius: var(--privy-border-radius-md); 5 padding: 12px; 6 text-align: left; 7 max-height: 310px; 8 overflow: scroll; 9 white-space: pre-wrap; 10 width: 100%; 11 font-size: 0.875rem; 12 font-weight: 400; 13 color: var(--privy-color-foreground); 14 line-height: 1.5; 15 16 // hide the scrollbars 17 -ms-overflow-style: none; /* Internet Explorer 10+ */ 18 scrollbar-width: none; /* Firefox */ 19 20 &::-webkit-scrollbar { 21 display: none; /* Safari and Chrome */ 22 } 23`,l=n.I4.ul` 24 margin-left: 12px !important; 25 white-space: nowrap; 26 27 &:first-child { 28 margin-left: 0 !important; 29 } 30 31 strong { 32 font-weight: 500 !important; 33 } 34`,s=({data:e,className:r})=>(0,t.jsx)(a,{className:r,children:(0,t.jsx)(o,{data:e})})},20840:(e,r,i)=>{i.d(r,{S:()=>a});var t=i(95155),n=i(29073),o=i(52647);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]})}},52647:(e,r,i)=>{i.d(r,{S:()=>j});var t=i(95155),n=i(12115),o=i(20031),a=i(22944),l=i(29073),s=i(95204);let c=o.I4.div` 35 /* spacing tokens */ 36 --screen-space: 16px; /* base 1x = 16 */ 37 --screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */ 38 39 position: relative; 40 overflow: hidden; 41 margin: 0 calc(-1 * var(--screen-space)); /* extends over modal padding */ 42 height: 100%; 43 border-radius: var(--privy-border-radius-lg); 44`,d=o.I4.div` 45 display: flex; 46 flex-direction: column; 47 gap: calc(var(--screen-space) * 1.5); 48 width: 100%; 49 background: var(--privy-color-background); 50 padding: 0 var(--screen-space-lg) var(--screen-space); 51 height: 100%; 52 border-radius: var(--privy-border-radius-lg); 53`,p=o.I4.div` 54 position: relative; 55 display: flex; 56 flex-direction: column; 57`,h=(0,o.I4)(l.M)` 58 margin: 0 -8px; 59`,g=o.I4.div` 60 flex: 1 1 auto; 61 display: flex; 62 flex-direction: column; 63 64 /* Enable scrolling */ 65 overflow-y: auto; 66 67 /* Hide scrollbar but keep functionality when scrollable */ 68 /* Add padding for focus outline space, offset with negative margin */ 69 padding: 3px; 70 margin: -3px; 71 72 &::-webkit-scrollbar {
73 display: none; 74 } 75 scrollbar-gutter: stable both-edges; 76 scrollbar-width: none; 77 -ms-overflow-style: none; 78 79 /* Gradient effect for scroll indication */ 80 ${({$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} 81 82 background-repeat: no-repeat; 83 background-size: 84 100% 32px, 85 100% 16px; 86 background-attachment: local, scroll; 87`,x=o.I4.div` 88 display: flex; 89 flex-direction: column; 90 gap: var(--screen-space-lg); 91 margin-top: 1.5rem; 92`,u=o.I4.div` 93 text-align: center; 94 display: flex; 95 flex-direction: column; 96 align-items: center; 97 gap: var(--screen-space); 98`,v=o.I4.div` 99 display: flex; 100 flex-direction: column; 101 gap: 4px; 102`,m=o.I4.h3` 103 && { 104 font-size: 20px; 105 line-height: 32px; 106 font-weight: 500; 107 color: var(--privy-color-foreground); 108 margin: 0; 109 } 110`,f=o.I4.p` 111 && { 112 margin: 0; 113 font-size: 16px; 114 font-weight: 300; 115 line-height: 24px; 116 color: var(--privy-color-foreground); 117 } 118`,y=o.I4.div` 119 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)"}}}; 120 121 border-radius: 50%; 122 width: 64px; 123 height: 64px; 124 display: flex; 125 align-items: center; 126 justify-content: center; 127`,b=o.I4.div` 128 display: flex; 129 align-items: center; 130 justify-content: center; 131 132 img, 133 svg { 134 max-height: 90px; 135 max-width: 180px; 136 } 137`,w=o.I4.div` 138 display: flex; 139 flex-direction: column; 140 justify-content: center; 141 align-items: center; 142 width: 100%; 143 height: 82px; 144 145 > div { 146 position: relative; 147 } 148 149 > div > :first-child { 150 position: relative; 151 } 152 153 > div > :last-child { 154 position: absolute; 155 left: 50%; 156 top: 50%; 157 transform: translate(-50%, -50%); 158 } 159`,j=({children:e,...r})=>(0,t.jsx)(c,{children:(0,t.jsx)(d,{...r,children:e})}),k=o.I4.div` 160 position: absolute; 161 top: 0; 162 left: calc(-1 * var(--screen-space-lg)); 163 width: calc(100% + calc(var(--screen-space-lg) * 2)); 164 height: 4px; 165 background: var(--privy-color-background-2); 166 border-top-left-radius: inherit; 167 border-top-right-radius: inherit; 168 overflow: hidden; 169`,I=(0,o.I4)(l.B)` 170 padding: 0; 171 && a { 172 padding: 0; 173 color: var(--privy-color-foreground-3); 174 } 175`,C=o.I4.div` 176 height: 100%; 177 width: ${({pct:e})=>e}%; 178 background: var(--privy-color-foreground-3); 179 border-radius: 2px; 180 transition: width 300ms ease-in-out; 181`,S=({step:e})=>e?(0,t.jsx)(k,{children:(0,t.jsx)(C,{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:g,step:x,headerTitle:y,eyebrow:b,...w})=>(0,t.jsxs)(p,{...w,children:[(0,t.jsx)(h,{backFn:a?l:void 0,infoFn:s?c:void 0,onClose:d?g:void 0,title:y,eyebrow:b,closeable:d}),(i||n||e||r)&&(0,t.jsxs)(u,{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)(m,{children:e}),r&&(0,t.jsx)(f,{children:r})]})]}),x&&(0,t.jsx)(S,{step:x})]}),(j.Body=n.forwardRef(({children:e,...r},i)=>(0,t.jsx)(g,{ref:i,...r,children:e}))).displayName="Screen.Body",j.Footer=({children:e,...r})=>(0,t.jsx)(x,{id:"privy-content-footer-container",...r,children:e}),j.Actions=({children:e,...r})=>(0,t.jsx)(z,{...r,children:e}),j.HelpText=({children:e,...r})=>(0,t.jsx)(E,{...r,children:e}),j.FooterText=({children:e,...r})=>(0,t.jsx)(T,{...r,children:e}),j.Watermark=()=>(0,t.jsx)(I,{}),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.C,{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 z=o.I4.div` 182 width: 100%; 183 display: flex; 184 flex-direction: column; 185 gap: calc(var(--screen-space) / 2); 186`,E=o.I4.div` 187 && { 188 margin: 0; 189 width: 100%; 190 text-align: center; 191 color: var(--privy-color-foreground-2); 192 font-size: 13px; 193 line-height: 20px; 194 195 & a { 196 text-decoration: underline; 197 } 198 } 199`,T=o.I4.div` 200 && { 201 margin-top: -1rem; 202 width: 100%; 203 text-align: center; 204 color: var(--privy-color-foreground-2); 205 font-size: 0.6875rem; // 11px 206 line-height: 1rem; // 16px 207 } 208`},57651:(e,r,i)=>{i.d(r,{C:()=>s});var t=i(95155),n=i(12115),o=i(20031);let a=({style:e,color:r,...i})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:r||"currentColor",style:{height:"1.5rem",width:"1.5rem",...e},...i,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})}),l=({color:e,...r})=>(0,t.jsx)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 115.77 122.88",xmlSpace:"preserve",...r,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{fill:e||"currentColor",className:"st0",d:"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.5
2087,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z"})})}),s=e=>{let[r,i]=(0,n.useState)(!1);return(0,t.jsxs)(c,{color:e.color,onClick:()=>{i(!0),navigator.clipboard.writeText(e.text),setTimeout(()=>i(!1),1500)},$justCopied:r,children:[r?(0,t.jsx)(a,{style:{height:"14px",width:"14px"},strokeWidth:"2"}):(0,t.jsx)(l,{style:{height:"14px",width:"14px"}}),r?"Copied":"Copy"," ",e.itemName?e.itemName:"to Clipboard"]})},c=o.I4.button` 209 display: flex; 210 align-items: center; 211 gap: 6px; 212 213 && { 214 margin: 8px 2px; 215 font-size: 14px; 216 color: ${e=>e.$justCopied?"var(--privy-color-foreground)":e.color||"var(--privy-color-foreground-3)"}; 217 font-weight: ${e=>e.$justCopied?"medium":"normal"}; 218 transition: color 350ms ease; 219 220 :focus, 221 :active { 222 background-color: transparent; 223 border: none; 224 outline: none; 225 box-shadow: none; 226 } 227 228 :hover { 229 color: ${e=>e.$justCopied?"var(--privy-color-foreground)":"var(--privy-color-foreground-2)"}; 230 } 231 232 :active { 233 color: 'var(--privy-color-foreground)'; 234 font-weight: medium; 235 } 236 237 @media (max-width: 440px) { 238 margin: 12px 2px; 239 } 240 } 241 242 svg { 243 width: 14px; 244 height: 14px; 245 } 246`},71847:(e,r,i)=>{i.d(r,{A:()=>s});var t=i(12115);let n=e=>{let r=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,i)=>i?i.toUpperCase():r.toLowerCase());return r.charAt(0).toUpperCase()+r.slice(1)},o=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()};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 l=(0,t.forwardRef)((e,r)=>{let{color:i="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:c="",children:d,iconNode:p,...h}=e;return(0,t.createElement)("svg",{ref:r,...a,width:n,height:n,stroke:i,strokeWidth:s?24*Number(l)/Number(n):l,className:o("lucide",c),...!d&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(h)&&{"aria-hidden":"true"},...h},[...p.map(e=>{let[r,i]=e;return(0,t.createElement)(r,i)}),...Array.isArray(d)?d:[d]])}),s=(e,r)=>{let i=(0,t.forwardRef)((i,a)=>{let{className:s,...c}=i;return(0,t.createElement)(l,{ref:a,iconNode:r,className:o("lucide-".concat(n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),s),...c})});return i.displayName=n(e),i}},83361:(e,r,i)=>{i.d(r,{B:()=>n,C:()=>l,F:()=>c,H:()=>a,R:()=>g,S:()=>p,a:()=>d,b:()=>h,c:()=>s,d:()=>x,e:()=>o});var t=i(20031);let n=t.I4.div` 247 display: flex; 248 flex-direction: column; 249 align-items: flex-start; 250 justify-content: flex-end; 251 margin-top: auto; 252 gap: 16px; 253 flex-grow: 100; 254`,o=t.I4.div` 255 display: flex; 256 flex-direction: column; 257 align-items: center; 258 justify-content: center; 259 flex-grow: 1; 260 width: 100%; 261`,a=t.I4.div` 262 display: flex; 263 flex-direction: column; 264 align-items: center; 265 width: 100%; 266`,l=(0,t.I4)(o)` 267 padding: 20px 0; 268`,s=(0,t.I4)(o)` 269 gap: 16px; 270`,c=t.I4.div` 271 display: flex; 272 flex-direction: column; 273 width: 100%; 274`,d=t.I4.div` 275 display: flex; 276 flex-direction: column; 277 gap: 8px; 278`;t.I4.div` 279 display: flex; 280 flex-direction: column; 281 justify-content: space-between; 282 height: 100%; 283`;let p=t.I4.div` 284 display: flex; 285 flex-direction: column; 286 justify-content: flex-start; 287 align-items: flex-start; 288 text-align: left; 289 gap: 8px; 290 padding: 16px; 291 margin-top: 16px; 292 margin-bottom: 16px; 293 width: 100%; 294 background: var(--privy-color-background-2); 295 border-radius: var(--privy-border-radius-md); 296 && h4 { 297 color: var(--privy-color-foreground-3); 298 font-size: 14px; 299 text-decoration: underline; 300 font-weight: medium; 301 } 302 && p { 303 color: var(--privy-color-foreground-3); 304 font-size: 14px; 305 } 306`,h=t.I4.div` 307 height: 16px; 308`,g=t.I4.div` 309 height: 12px; 310`;t.I4.div` 311 position: relative; 312`;let x=t.I4.div` 313 height: ${e=>e.height??"12"}px; 314`;t.I4.div` 315 background-color: var(--privy-color-accent); 316 display: flex; 317 justify-content: center; 318 align-items: center; 319 border-radius: 50%; 320 border-color: white; 321 border-width: 2px !important; 322`},86387:(e,r,i)=>{i.r(r),i.d(r,{SignRequestScreen:()=>k,SignRequestView:()=>j,default:()=>k});var t=i(95155),n=i(42461);let o=(0,i(71847).A)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);var a=i(12115),l=i(20031),s=i(60587),c=i(11914),d=i(61014),p=i(57651),h=i(83361),g=i(11856),x=i(82099),u=i(93965),v=i(43425),m=i(40505),f=i(83712),y=i(20840);i(68463),i(50205),i(92253);let b=l.I4.img` 323 && { 324 height: ${e=>"sm"===e.size?"65px":"140px"}; 325 width: ${e=>"sm"===e.size?"65px":"140px"}; 326 border-radius: 16px; 327 margin-bottom: 12px; 328 } 329`,w=e=>{let{types:r,primaryType:i,...n}=e.typedData;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S,{data:n}),(0,t.jsx)(p.C,{text:JSON.stringify(e.typedData,null,2),itemName:"full payload to clipboard"})," "]})},j=({method:e,messageData:r,copy:i,iconUrl:a,isLoading:l,success:d,walletProxyIsLoading:p,errorMessage:g,isCancellable:x,onSign:u,onCancel:v,onClose:m})=>(0,t.jsx)(y.S,{title:i.title,subtitle:i.description,showClose:!0,onClose:m,icon:o,iconVariant:"subtle",helpText:g?(0,t.jsx)(C,{children:g}):void 0,primaryCta:{label:i.buttonText,onClick:u,disabled:l||d||p,loading:l},secondaryCta:x?{label:"Not now",onClick:v,disabled:l||d||p}:void 0,watermark:!0,children:(0,t.jsxs)(h.a,{children:[a?(0,t.jsx)(b,{style:{alignSelf:"center"},size:"sm",src:a,alt:"app image"}):null,(0,t.jsxs)(I,{children:["personal_sign"===e&&(0,t.jsx)(z,{children:(e=>{if(!(0,s.q)(e))return e;try{let r=(0,c.IQ)(e);return r.includes("�")?e:r}catch{return e}})(r)}),"eth_signTypedData_v4"===e&&(0,t.jsx)(w,{typedData:r}
329),"solana_signMessage"===e&&(0,t.jsx)(z,{children:(e=>{try{let r=n.K3.decode(e),i=(new TextDecoder).decode(r);return i.includes("�")?e:i}catch{return e}})(r)})]})]})}),k={component:()=>{let{authenticated:e}=(0,f.u)(),{initializeWalletProxy:r,closePrivyModal:i}=(0,v.u)(),{navigate:n,data:o,onUserCloseViaDialogOrKeybindRef:l}=(0,m.u)(),[s,c]=(0,a.useState)(!0),[p,h]=(0,a.useState)(""),[g,y]=(0,a.useState)(),[b,w]=(0,a.useState)(null),[k,I]=(0,a.useState)(!1);(0,a.useEffect)(()=>{e||n("LandingScreen")},[e]),(0,a.useEffect)(()=>{r(u.W).then(e=>{c(!1),e||(h("An error has occurred, please try again."),y(new x.P(new x.z(p,d.Z9.E32603_DEFAULT_INTERNAL_ERROR.eipCode))))})},[]);let{method:C,data:S,confirmAndSign:z,onSuccess:E,onFailure:T,uiOptions:N}=o.signMessage,$={title:N?.title||"Sign message",description:N?.description||"Signing this message will not cost you any fees.",buttonText:N?.buttonText||"Sign and continue"},A=e=>{e?E(e):T(g||new x.P(new x.z("The user rejected the request.",d.Z9.E4001_USER_REJECTED_REQUEST.eipCode))),i({shouldCallAuthOnSuccess:!1}),setTimeout(()=>{w(null),h(""),y(void 0)},200)};return l.current=()=>{A(b)},(0,t.jsx)(j,{method:C,messageData:S,copy:$,iconUrl:N?.iconUrl&&"string"==typeof N.iconUrl?N.iconUrl:void 0,isLoading:k,success:null!==b,walletProxyIsLoading:s,errorMessage:p,isCancellable:N?.isCancellable,onSign:async()=>{I(!0),h("");try{let e=await z();w(e),I(!1),setTimeout(()=>{A(e)},u.r)}catch(e){console.error(e),h("An error has occurred, please try again."),y(new x.P(new x.z(p,d.Z9.E32603_DEFAULT_INTERNAL_ERROR.eipCode))),I(!1)}},onCancel:()=>A(null),onClose:()=>A(b)})}},I=l.I4.div` 330 flex: 1; 331 display: flex; 332 flex-direction: column; 333 gap: 16px; 334`,C=l.I4.p` 335 && { 336 margin: 0; 337 width: 100%; 338 text-align: center; 339 color: var(--privy-color-error-dark); 340 font-size: 14px; 341 line-height: 22px; 342 } 343`,S=(0,l.I4)(g.D)` 344 margin-top: 0; 345`,z=(0,l.I4)(g.M)` 346 margin-top: 0; 347`},95204:(e,r,i)=>{i.d(r,{N:()=>o});var t=i(95155),n=i(20031);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.I4.div` 348 --spinner-size: ${e=>e.$size?e.$size:"96px"}; 349 350 display: inline-flex; 351 justify-content: center; 352 align-items: center; 353 354 @media all and (display-mode: standalone) { 355 margin-bottom: 30px; 356 } 357`,l=n.I4.div` 358 position: relative; 359 height: var(--spinner-size); 360 width: var(--spinner-size); 361 362 opacity: 1; 363 animation: fadein 200ms ease; 364`,s=n.I4.div` 365 position: absolute; 366 top: 0; 367 right: 0; 368 bottom: 0; 369 left: 0; 370 display: flex; 371 align-items: center; 372 justify-content: center; 373 svg, 374 img { 375 width: calc(var(--spinner-size) * 0.4); 376 height: calc(var(--spinner-size) * 0.4); 377 border-radius: var(--privy-border-radius-full); 378 } 379`,c=n.I4.div` 380 position: absolute; 381 top: 0; 382 right: 0; 383 bottom: 0; 384 left: 0; 385 width: var(--spinner-size); 386 height: var(--spinner-size); 387 388 && { 389 border: 4px solid var(--privy-color-border-default); 390 border-radius: 50%; 391 } 392`,d=n.I4.div` 393 position: absolute; 394 top: 0; 395 right: 0; 396 bottom: 0; 397 left: 0; 398 width: var(--spinner-size); 399 height: var(--spinner-size); 400 animation: spin 1200ms linear infinite; 401 402 && { 403 border: 4px solid; 404 border-color: var(--privy-color-icon-subtle) transparent transparent transparent; 405 border-radius: 50%; 406 } 407 408 @keyframes spin { 409 from { 410 transform: rotate(0deg); 411 } 412 to { 413 transform: rotate(360deg); 414 } 415 } 416`}}]);
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.