1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4314],{20240:function(e,r,t){t.d(r,{Z:function(){return p}});var i=t(7653);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,t)=>t?t.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),t=0;t<e;t++)r[t]=arguments[t];return r.filter((e,r,t)=>!!e&&""!==e.trim()&&t.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,i.forwardRef)((e,r)=>{let{color:t="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:d="",children:p,iconNode:u,...h}=e;return(0,i.createElement)("svg",{ref:r,...c,width:n,height:n,stroke:t,strokeWidth:a?24*Number(o)/Number(n):o,className:l("lucide",d),...!p&&!s(h)&&{"aria-hidden":"true"},...h},[...u.map(e=>{let[r,t]=e;return(0,i.createElement)(r,t)}),...Array.isArray(p)?p:[p]])}),p=(e,r)=>{let t=(0,i.forwardRef)((t,o)=>{let{className:s,...c}=t;return(0,i.createElement)(d,{ref:o,iconNode:r,className:l("lucide-".concat(n(a(e))),"lucide-".concat(e),s),...c})});return t.displayName=a(e),t}},38914:function(e,r,t){t.d(r,{C:function(){return s}});var i=t(27573),n=t(7653),o=t(57048);let a=({style:e,color:r,...t})=>(0,i.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},...t,children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})}),l=({color:e,...r})=>(0,i.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,i.jsx)("g",{children:(0,i.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.57,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,t]=(0,n.useState)(!1);return(0,i.jsxs)(c,{color:e.color,onClick:()=>{t(!0),navigator.clipboard.writeText(e.text),setTimeout(()=>t(!1),1500)},$justCopied:r,children:[r?(0,i.jsx)(a,{style:{height:"14px",width:"14px"},strokeWidth:"2"}):(0,i.jsx)(l,{style:{height:"14px",width:"14px"}}),r?"Copied":"Copy"," ",e.itemName?e.itemName:"to Clipboard"]})},c=o.zo.button` 2 display: flex; 3 align-items: center; 4 gap: 6px; 5 6 && { 7 margin: 8px 2px; 8 font-size: 14px; 9 color: ${e=>e.$justCopied?"var(--privy-color-foreground)":e.color||"var(--privy-color-foreground-3)"}; 10 font-weight: ${e=>e.$justCopied?"medium":"normal"}; 11 transition: color 350ms ease; 12 13 :focus, 14 :active { 15 background-color: transparent; 16 border: none; 17 outline: none; 18 box-shadow: none; 19 } 20 21 :hover { 22 color: ${e=>e.$justCopied?"var(--privy-color-foreground)":"var(--privy-color-foreground-2)"}; 23 } 24 25 :active { 26 color: 'var(--privy-color-foreground)'; 27 font-weight: medium; 28 } 29 30 @media (max-width: 440px) { 31 margin: 12px 2px; 32 } 33 } 34 35 svg { 36 width: 14px; 37 height: 14px; 38 } 39`},35615:function(e,r,t){t.d(r,{D:function(){return s},M:function(){return a}});var i=t(27573),n=t(57048);let o=({data:e})=>{let r=e=>"object"==typeof e&&null!==e?(0,i.jsx)(l,{children:Object.entries(e).map(([e,t])=>(0,i.jsxs)("li",{children:[(0,i.jsxs)("strong",{children:[e,":"]}
39)," ",r(t)]},e))}):(0,i.jsx)("span",{children:String(e)});return(0,i.jsx)("div",{children:r(e)})},a=n.zo.div` 40 margin-top: 1.5rem; 41 background-color: var(--privy-color-background-2); 42 border-radius: var(--privy-border-radius-md); 43 padding: 12px; 44 text-align: left; 45 max-height: 310px; 46 overflow: scroll; 47 white-space: pre-wrap; 48 width: 100%; 49 font-size: 0.875rem; 50 font-weight: 400; 51 color: var(--privy-color-foreground); 52 line-height: 1.5; 53 54 // hide the scrollbars 55 -ms-overflow-style: none; /* Internet Explorer 10+ */ 56 scrollbar-width: none; /* Firefox */ 57 58 &::-webkit-scrollbar { 59 display: none; /* Safari and Chrome */ 60 } 61`,l=n.zo.ul` 62 margin-left: 12px !important; 63 white-space: nowrap; 64 65 &:first-child { 66 margin-left: 0 !important; 67 } 68 69 strong { 70 font-weight: 500 !important; 71 } 72`,s=({data:e,className:r})=>(0,i.jsx)(a,{className:r,children:(0,i.jsx)(o,{data:e})})},65335:function(e,r,t){t.d(r,{B:function(){return n},C:function(){return l},F:function(){return c},H:function(){return a},R:function(){return h},S:function(){return p},a:function(){return d},b:function(){return u},c:function(){return s},d:function(){return g},e:function(){return o}});var i=t(57048);let n=i.zo.div` 73 display: flex; 74 flex-direction: column; 75 align-items: flex-start; 76 justify-content: flex-end; 77 margin-top: auto; 78 gap: 16px; 79 flex-grow: 100; 80`,o=i.zo.div` 81 display: flex; 82 flex-direction: column; 83 align-items: center; 84 justify-content: center; 85 flex-grow: 1; 86 width: 100%; 87`,a=i.zo.div` 88 display: flex; 89 flex-direction: column; 90 align-items: center; 91 width: 100%; 92`,l=(0,i.zo)(o)` 93 padding: 20px 0; 94`,s=(0,i.zo)(o)` 95 gap: 16px; 96`,c=i.zo.div` 97 display: flex; 98 flex-direction: column; 99 width: 100%; 100`,d=i.zo.div` 101 display: flex; 102 flex-direction: column; 103 gap: 8px; 104`;i.zo.div` 105 display: flex; 106 flex-direction: column; 107 justify-content: space-between; 108 height: 100%; 109`;let p=i.zo.div` 110 display: flex; 111 flex-direction: column; 112 justify-content: flex-start; 113 align-items: flex-start; 114 text-align: left; 115 gap: 8px; 116 padding: 16px; 117 margin-top: 16px; 118 margin-bottom: 16px; 119 width: 100%; 120 background: var(--privy-color-background-2); 121 border-radius: var(--privy-border-radius-md); 122 && h4 { 123 color: var(--privy-color-foreground-3); 124 font-size: 14px; 125 text-decoration: underline; 126 font-weight: medium; 127 } 128 && p { 129 color: var(--privy-color-foreground-3); 130 font-size: 14px; 131 } 132`,u=i.zo.div` 133 height: 16px; 134`,h=i.zo.div` 135 height: 12px; 136`;i.zo.div` 137 position: relative; 138`;let g=i.zo.div` 139 height: ${e=>e.height??"12"}px; 140`;i.zo.div` 141 background-color: var(--privy-color-accent); 142 display: flex; 143 justify-content: center; 144 align-items: center; 145 border-radius: 50%; 146 border-color: white; 147 border-width: 2px !important; 148`},94941:function(e,r,t){t.d(r,{S:function(){return j}});var i=t(27573),n=t(7653),o=t(57048),a=t(36750),l=t(90040),s=t(44970);let c=o.zo.div` 149 /* spacing tokens */ 150 --screen-space: 16px; /* base 1x = 16 */ 151 --screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */ 152 153 position: relative; 154 overflow: hidden; 155 margin: 0 calc(-1 * var(--screen-space)); /* extends over modal padding */ 156 height: 100%; 157 border-radius: var(--privy-border-radius-lg); 158`,d=o.zo.div` 159 display: flex; 160 flex-direction: column; 161 gap: calc(var(--screen-space) * 1.5); 162 width: 100%; 163 background: var(--privy-color-background); 164 padding: 0 var(--screen-space-lg) var(--screen-space); 165 height: 100%; 166 border-radius: var(--privy-border-radius-lg); 167`,p=o.zo.div` 168 position: relative; 169 display: flex; 170 flex-direction: column; 171`,u=(0,o.zo)(l.M)` 172 margin: 0 -8px; 173`,h=o.zo.div` 174 flex: 1 1 auto; 175 display: flex; 176 flex-direction: column; 177 178 /* Enable scrolling */ 179 overflow-y: auto; 180 181 /* Hide scrollbar but keep functionality when scrollable */ 182 /* Add padding for focus outline space, offset with negative margin */ 183 padding: 3px; 184 margin: -3px; 185 186 &::-webkit-scrollbar {
187 display: none; 188 } 189 scrollbar-gutter: stable both-edges; 190 scrollbar-width: none; 191 -ms-overflow-style: none; 192 193 /* Gradient effect for scroll indication */ 194 ${({$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} 195 196 background-repeat: no-repeat; 197 background-size: 198 100% 32px, 199 100% 16px; 200 background-attachment: local, scroll; 201`,g=o.zo.div` 202 display: flex; 203 flex-direction: column; 204 gap: var(--screen-space-lg); 205 margin-top: 1.5rem; 206`,x=o.zo.div` 207 text-align: center; 208 display: flex; 209 flex-direction: column; 210 align-items: center; 211 gap: var(--screen-space); 212`,v=o.zo.div` 213 display: flex; 214 flex-direction: column; 215 gap: 4px; 216`,f=o.zo.h3` 217 && { 218 font-size: 20px; 219 line-height: 32px; 220 font-weight: 500; 221 color: var(--privy-color-foreground); 222 margin: 0; 223 } 224`,m=o.zo.p` 225 && { 226 margin: 0; 227 font-size: 16px; 228 font-weight: 300; 229 line-height: 24px; 230 color: var(--privy-color-foreground); 231 } 232`,y=o.zo.div` 233 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)"}}}; 234 235 border-radius: 50%; 236 width: 64px; 237 height: 64px; 238 display: flex; 239 align-items: center; 240 justify-content: center; 241`,b=o.zo.div` 242 display: flex; 243 align-items: center; 244 justify-content: center; 245 246 img, 247 svg { 248 max-height: 90px; 249 max-width: 180px; 250 } 251`,w=o.zo.div` 252 display: flex; 253 flex-direction: column; 254 justify-content: center; 255 align-items: center; 256 width: 100%; 257 height: 82px; 258 259 > div { 260 position: relative; 261 } 262 263 > div > :first-child { 264 position: relative; 265 } 266 267 > div > :last-child { 268 position: absolute; 269 left: 50%; 270 top: 50%; 271 transform: translate(-50%, -50%); 272 } 273`,j=({children:e,...r})=>(0,i.jsx)(c,{children:(0,i.jsx)(d,{...r,children:e})}),z=o.zo.div` 274 position: absolute; 275 top: 0; 276 left: calc(-1 * var(--screen-space-lg)); 277 width: calc(100% + calc(var(--screen-space-lg) * 2)); 278 height: 4px; 279 background: var(--privy-color-background-2); 280 border-top-left-radius: inherit; 281 border-top-right-radius: inherit; 282 overflow: hidden; 283`,k=(0,o.zo)(l.B)` 284 padding: 0; 285 && a { 286 padding: 0; 287 color: var(--privy-color-foreground-3); 288 } 289`,C=o.zo.div` 290 height: 100%; 291 width: ${({pct:e})=>e}%; 292 background: var(--privy-color-foreground-3); 293 border-radius: 2px; 294 transition: width 300ms ease-in-out; 295`,S=({step:e})=>e?(0,i.jsx)(z,{children:(0,i.jsx)(C,{pct:Math.min(100,e.current/e.total*100)})}):null;j.Header=({title:e,subtitle:r,icon:t,iconVariant:n,iconLoadingStatus:o,showBack:a,onBack:l,showInfo:s,onInfo:c,showClose:d,onClose:h,step:g,headerTitle:y,eyebrow:b,...w})=>(0,i.jsxs)(p,{...w,children:[(0,i.jsx)(u,{backFn:a?l:void 0,infoFn:s?c:void 0,onClose:d?h:void 0,title:y,eyebrow:b,closeable:d}),(t||n||e||r)&&(0,i.jsxs)(x,{children:[t||n?(0,i.jsx)(j.Icon,{icon:t,variant:n,loadingStatus:o}):null,!(!e&&!r)&&(0,i.jsxs)(v,{children:[e&&(0,i.jsx)(f,{children:e}),r&&(0,i.jsx)(m,{children:r})]})]}),g&&(0,i.jsx)(S,{step:g})]}),(j.Body=n.forwardRef(({children:e,...r},t)=>(0,i.jsx)(h,{ref:t,...r,children:e}))).displayName="Screen.Body",j.Footer=({children:e,...r})=>(0,i.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),j.Actions=({children:e,...r})=>(0,i.jsx)(E,{...r,children:e}),j.HelpText=({children:e,...r})=>(0,i.jsx)(T,{...r,children:e}),j.FooterText=({children:e,...r})=>(0,i.jsx)(N,{...r,children:e}),j.Watermark=()=>(0,i.jsx)(k,{}),j.Icon=({icon:e,variant:r="subtle",loadingStatus:t})=>"logo"===r&&e?(0,i.jsx)(b,"string"==typeof e?{children:(0,i.jsx)("img",{src:e,alt:""})}:n.isValidElement(e)?{children:e}:{children:n.createElement(e)}):"loading"===r?e?(0,i.jsx)(w,{children:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,i.jsx)(a.C,{success:t?.success,fail:t?.fail}),"string"==typeof e?(0,i.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,i.jsx)(y,{$variant:r,children:(0,i.jsx)(s.N,{size:"64px"})}):(0,i.jsx)(y,{$variant:r,children:e&&("string"==typeof e?(0,i.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 E=o.zo.div` 296 width: 100%; 297 display: flex; 298 flex-direction: column; 299 gap: calc(var(--screen-space) / 2); 300`,T=o.zo.div` 301 && { 302 margin: 0; 303 width: 100%; 304 text-align: center; 305 color: var(--privy-color-foreground-2); 306 font-size: 13px; 307 line-height: 20px; 308 309 & a { 310 text-decoration: underline; 311 } 312 } 313`,N=o.zo.div` 314 && { 315 margin-top: -1rem; 316 width: 100%; 317 text-align: center; 318 color: var(--privy-color-foreground-2); 319 font-size: 0.6875rem; // 11px 320 line-height: 1rem; // 16px 321 } 322`},26534:function(e,r,t){t.d(r,{S:function(){return a}});var i=t(27573),n=t(90040),o=t(94941);let a=({primaryCta:e,secondaryCta:r,helpText:t,footerText:a,watermark:l=!0,children:s,...c})=>{let d=e||r?(0,i.jsxs)(i.Fragment,{children:[e&&(()=>{let{label:r,...t}=e,o=t.variant||"primary";return(0,i.jsx)(n.a,{...t,variant:o,style:{width:"100%",...t.style},children:r})})(),r&&(()=>{let{label:e,...t}=r,o=t.variant||"secondary";return(0,i.jsx)(n.a,{...t,variant:o,style:{width:"100%",...t.style},children:e})})()]}):null;return(0,i.jsxs)(o.S,{id:c.id,className:c.className,children:[(0,i.jsx)(o.S.Header,{...c}),s?(0,i.jsx)(o.S.Body,{children:s}):null,t||d||l?(0,i.jsxs)(o.S.Footer,{children:[t?(0,i.jsx)(o.S.HelpText,{children:t}):null,d?(0,i.jsx)(o.S.Actions,{children:d}):null,l?(0,i.jsx)(o.S.Watermark,{}):null]}):null,a?(0,i.jsx)(o.S.FooterText,{children:a}):null]})}},64314:function(e,r,t){t.r(r),t.d(r,{SignRequestScreen:function(){return C},SignRequestView:function(){return k},default:function(){return C}});var i=t(27573),n=t(99907);let o=(0,t(20240).Z)("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=t(7653),l=t(57048),s=t(41124),c=t(12950),d=t(48784),p=t(389
32214),u=t(65335),h=t(35615),g=t(39887),x=t(16178),v=t(70157),f=t(39136),m=t(35970),y=t(26534);t(48191),t(61327),t(19981);let b=l.zo.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=>{if(!(0,s.v)(e))return e;try{let r=(0,c.rR)(e);return r.includes("�")?e:r}catch{return e}},j=e=>{try{let r=n.US.decode(e),t=(new TextDecoder).decode(r);return t.includes("�")?e:t}catch{return e}},z=e=>{let{types:r,primaryType:t,...n}=e.typedData;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(T,{data:n}),(0,i.jsx)(p.C,{text:JSON.stringify(e.typedData,null,2),itemName:"full payload to clipboard"})," "]})},k=({method:e,messageData:r,copy:t,iconUrl:n,isLoading:a,success:l,walletProxyIsLoading:s,errorMessage:c,isCancellable:d,onSign:p,onCancel:h,onClose:g})=>(0,i.jsx)(y.S,{title:t.title,subtitle:t.description,showClose:!0,onClose:g,icon:o,iconVariant:"subtle",helpText:c?(0,i.jsx)(E,{children:c}):void 0,primaryCta:{label:t.buttonText,onClick:p,disabled:a||l||s,loading:a},secondaryCta:d?{label:"Not now",onClick:h,disabled:a||l||s}:void 0,watermark:!0,children:(0,i.jsxs)(u.a,{children:[n?(0,i.jsx)(b,{style:{alignSelf:"center"},size:"sm",src:n,alt:"app image"}):null,(0,i.jsxs)(S,{children:["personal_sign"===e&&(0,i.jsx)(N,{children:w(r)}),"eth_signTypedData_v4"===e&&(0,i.jsx)(z,{typedData:r}),"solana_signMessage"===e&&(0,i.jsx)(N,{children:j(r)})]})]})}),C={component:()=>{let{authenticated:e}=(0,m.u)(),{initializeWalletProxy:r,closePrivyModal:t}=(0,v.u)(),{navigate:n,data:o,onUserCloseViaDialogOrKeybindRef:l}=(0,f.u)(),[s,c]=(0,a.useState)(!0),[p,u]=(0,a.useState)(""),[h,y]=(0,a.useState)(),[b,w]=(0,a.useState)(null),[j,z]=(0,a.useState)(!1);(0,a.useEffect)(()=>{e||n("LandingScreen")},[e]),(0,a.useEffect)(()=>{r(x.W).then(e=>{c(!1),e||(u("An error has occurred, please try again."),y(new g.P(new g.z(p,d.M_.E32603_DEFAULT_INTERNAL_ERROR.eipCode))))})},[]);let{method:C,data:S,confirmAndSign:E,onSuccess:T,onFailure:N,uiOptions:$}=o.signMessage,_={title:$?.title||"Sign message",description:$?.description||"Signing this message will not cost you any fees.",buttonText:$?.buttonText||"Sign and continue"},R=e=>{e?T(e):N(h||new g.P(new g.z("The user rejected the request.",d.M_.E4001_USER_REJECTED_REQUEST.eipCode))),t({shouldCallAuthOnSuccess:!1}),setTimeout(()=>{w(null),u(""),y(void 0)},200)};return l.current=()=>{R(b)},(0,i.jsx)(k,{method:C,messageData:S,copy:_,iconUrl:$?.iconUrl&&"string"==typeof $.iconUrl?$.iconUrl:void 0,isLoading:j,success:null!==b,walletProxyIsLoading:s,errorMessage:p,isCancellable:$?.isCancellable,onSign:async()=>{z(!0),u("");try{let e=await E();w(e),z(!1),setTimeout(()=>{R(e)},x.r)}catch(e){console.error(e),u("An error has occurred, please try again."),y(new g.P(new g.z(p,d.M_.E32603_DEFAULT_INTERNAL_ERROR.eipCode))),z(!1)}},onCancel:()=>R(null),onClose:()=>R(b)})}},S=l.zo.div` 330 flex: 1; 331 display: flex; 332 flex-direction: column; 333 gap: 16px; 334`,E=l.zo.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`,T=(0,l.zo)(h.D)` 344 margin-top: 0; 345`,N=(0,l.zo)(h.M)` 346 margin-top: 0; 347`},44970:function(e,r,t){t.d(r,{N:function(){return o}});var i=t(27573),n=t(57048);let o=({size:e,centerIcon:r})=>(0,i.jsx)(a,{$size:e,children:(0,i.jsxs)(l,{children:[(0,i.jsx)(c,{}),(0,i.jsx)(d,{}),r?(0,i.jsx)(s,{children:r}):null]})}),a=n.zo.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.zo.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.zo.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.zo.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.zo.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.