1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3981],{59565:function(e,r,n){n.d(r,{Z:function(){return c}});var i=n(7653);/** 2 * @license lucide-react v0.428.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let t=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.filter((e,r,n)=>!!e&&n.indexOf(e)===r).join(" ")};/** 7 * @license lucide-react v0.428.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */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"};/** 12 * @license lucide-react v0.428.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let s=(0,i.forwardRef)((e,r)=>{let{color:n="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:c,className:l="",children:d,iconNode:p,...h}=e;return(0,i.createElement)("svg",{ref:r,...a,width:t,height:t,stroke:n,strokeWidth:c?24*Number(s)/Number(t):s,className:o("lucide",l),...h},[...p.map(e=>{let[r,n]=e;return(0,i.createElement)(r,n)}),...Array.isArray(d)?d:[d]])}),c=(e,r)=>{let n=(0,i.forwardRef)((n,a)=>{let{className:c,...l}=n;return(0,i.createElement)(s,{ref:a,iconNode:r,className:o("lucide-".concat(t(e)),c),...l})});return n.displayName="".concat(e),n}},52958:function(e,r,n){n.d(r,{Z:function(){return i}});/** 17 * @license lucide-react v0.428.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let i=(0,n(59565).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},68560:function(e,r,n){n.d(r,{Z:function(){return i}});/** 22 * @license lucide-react v0.428.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */let i=(0,n(59565).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},67899:function(e,r,n){n.d(r,{Z:function(){return i}});/** 27 * @license lucide-react v0.428.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */let i=(0,n(59565).Z)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},64983:function(e,r,n){n.d(r,{Z:function(){return i}});/** 32 * @license lucide-react v0.428.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */let i=(0,n(59565).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},12067:function(e,r,n){n.d(r,{A:function(){return d}});var i=n(27573),t=n(52958),o=n(64983),a=n(7653),s=n(91628),c=n(50800),l=n(81781);let d=({address:e,showCopyIcon:r,url:n,className:s})=>{let[d,g]=(0,a.useState)(!1);function f(r){r.stopPropagation(),navigator.clipboard.writeText(e).then(()=>g(!0)).catch(console.error)}return(0,a.useEffect)(()=>{if(d){let e=setTimeout(()=>g(!1),3e3);return()=>clearTimeout(e)}},[d]),(0,i.jsxs)(p,n?{children:[(0,i.jsx)(u,{title:e,className:s,href:`${n}/address/${e}`,target:"_blank",children:(0,c.D)(e)}),r&&(0,i.jsx)(l.S,{onClick:f,size:"sm",style:{gap:"0.375rem"},children:(0,i.jsxs)(i.Fragment,d?{children:["Copied",(0,i.jsx)(t.Z,{size:16})]}:{children:["Copy",(0,i.jsx)(o.Z,{size:16})]})})]}:{children:[(0,i.jsx)(h,{title:e,className:s,children:(0,c.D)(e)}),r&&(0,i.jsx)(l.S,{onClick:f,size:"sm",style:{gap:"0.375rem",fontSize:"14px"},children:(0,i.jsxs)(i.Fragment,d?{children:["Copied",(0,i.jsx)(t.Z,{size:14})]}:{children:["Copy",(0,i.jsx)(o.Z,{size:14})]})})]})},p=s.zo.span.withConfig({displayName:"AddressContainer",componentId:"sc-3a987cc8-0"})(["display:inline-flex;align-items:center;gap:0.5rem;"]),h=s.zo.span.withConfig({displayName:"AddressText",componentId:"sc-3a987cc8-1"})(["font-size:14px;font-weight:500;color:var(--privy-color-foreground);"]),u=s.zo.a.withConfig({displayName:"AddressLink",componentId:"sc-3a987cc8-2"})(["font-size:14px;color:var(--privy-color-foreground);text-decoration:none;&:hover{text-decoration:underline;}"])},33981:function(e,r,n){n.r(r),n.d(r,{DelegatedActionsConsentScreen:function(){return g},DelegatedActionsConsentScreenView:function(){return u},default:function(){return g}});var i=n(27573),t=n(68560),o=n(67899);/** 37 * @license lucide-react v0.428.0 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */let a=(0,n(59565).Z)("CloudUpload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);var s=n(7653),c=n(19672),l=n(31796),d=n(88089),p=n(36170),h=n(68150);n(26996),n(97347),n(69021);let u=({appName:e,address:r,success:n,error:s,onAccept:l,onDecline:d,onClose:p})=>(0,i.jsx)(h.S,n||s?{title:s?"Something went wrong":"Success!",subtitle:s?"Please try again.":`You've successfully granted delegated action permissions to ${e}.`,icon:s?t.Z:o.Z,iconVariant:s?"error":"success",onBack:p,watermark:!0}
41:{title:"Enable offline access",subtitle:`By confirming, ${e} will be able to use your wallet for you even when you're not around. You can revoke this later.`,icon:a,primaryCta:{label:"Accept",onClick:l},secondaryCta:{label:"Not now",onClick:d},onBack:p,watermark:!0,children:(0,i.jsx)(c.W,{address:r,title:"Wallet"})}),g={component:()=>{let{data:e}=(0,p.a)(),r=(0,l.u)(),{closePrivyModal:n}=(0,d.u)(),[t,o]=(0,s.useState)(!1),[a,c]=(0,s.useState)(),{address:h,onDelegate:g,onSuccess:f,onError:m}=e.delegatedActions.consent,y=async()=>{t?f():m(a??new d.a("User declined delegating actions.")),n({shouldCallAuthOnSuccess:!1})};return(0,s.useEffect)(()=>{if(!t&&!a)return;let e=setTimeout(y,l.r);return()=>clearTimeout(e)},[t,a]),(0,i.jsx)(u,{appName:r.name,address:h,success:t,error:a,onAccept:async()=>{try{await g(),o(!0)}catch(e){c(e)}},onDecline:()=>{y()},onClose:y})}}},71818:function(e,r,n){n.d(r,{E:function(){return i}});let i=n(91628).zo.span.withConfig({displayName:"ErrorMessage",componentId:"sc-fcb8cd50-0"})(["text-align:left;font-size:0.75rem;font-weight:500;line-height:1.125rem;color:var(--privy-color-error);"])},96766:function(e,r,n){n.d(r,{L:function(){return i}});let i=n(91628).zo.span.withConfig({displayName:"LabelXs",componentId:"sc-4c43f9fd-0"})(["color:var(--privy-color-foreground-3);font-size:0.75rem;font-weight:500;line-height:1.125rem;"])},54037:function(e,r,n){n.d(r,{S:function(){return C}});var i=n(27573),t=n(7653),o=n(91628),a=n(50800),s=n(75593),c=n(29981);let l=o.zo.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.zo.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.zo.div.withConfig({displayName:"HeaderContainer",componentId:"sc-2e815abe-2"})(["position:relative;display:flex;flex-direction:column;"]),h=(0,o.zo)(s.M).withConfig({displayName:"StyledModalHeader",componentId:"sc-2e815abe-3"})(["margin:0 -8px;"]),u=o.zo.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),g=o.zo.div.withConfig({displayName:"FooterContainer",componentId:"sc-2e815abe-5"})(["display:flex;flex-direction:column;gap:var(--screen-space-lg);"]),f=o.zo.div.withConfig({displayName:"CenteredHeader",componentId:"sc-2e815abe-6"})(["text-align:center;display:flex;flex-direction:column;align-items:center;gap:var(--screen-space);"]),m=o.zo.div.withConfig({displayName:"TitleContainer",componentId:"sc-2e815abe-7"})(["display:flex;flex-direction:column;gap:4px;"]),y=o.zo.h3.withConfig({displayName:"HeaderTitle",componentId:"sc-2e815abe-8"})(["&&{font-size:20px;line-height:32px;font-weight:500;color:var(--privy-color-foreground);margin:0;}"]),x=o.zo.p.withConfig({displayName:"HeaderSubtitle",componentId:"sc-2e815abe-9"})(["&&{margin:0;font-size:16px;font-weight:300;line-height:24px;color:var(--privy-color-foreground);}"]),v=o.zo.div.withConfig({displayName:"IconContainer",componentId:"sc-2e815abe-10"})(["background:",";border-radius:50%;width:64px;
41height: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.zo.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.zo.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,...r})=>(0,i.jsx)(l,{children:(0,i.jsx)(d,{...r,children:e})}),j=o.zo.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;"]),z=(0,o.zo)(s.B).withConfig({displayName:"StyledBlobbyFooter",componentId:"sc-2e815abe-14"})(["padding:0;&& a{padding:0;color:var(--privy-color-foreground-3);}"]),k=o.zo.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;"],({pct:e})=>e),N=({step:e})=>e?(0,i.jsx)(j,{children:(0,i.jsx)(k,{pct:Math.min(100,e.current/e.total*100)})}):null;C.Header=({title:e,subtitle:r,icon:n,iconVariant:t,iconLoadingStatus:o,showBack:a,onBack:s,showInfo:c,onInfo:l,showClose:d,onClose:u,step:g,...v})=>(0,i.jsxs)(p,{...v,children:[(0,i.jsx)(h,{backFn:a?s:void 0,infoFn:c?l:void 0,onClose:d?u:void 0,closeable:d}),(n||t||e||r)&&(0,i.jsxs)(f,{children:[n||t?(0,i.jsx)(C.Icon,{icon:n,variant:t,loadingStatus:o}):null,(0,i.jsxs)(m,{children:[e&&(0,i.jsx)(y,{children:e}),r&&(0,i.jsx)(x,{children:r})]})]}),g&&(0,i.jsx)(N,{step:g})]}),(C.Body=t.forwardRef(({children:e,...r},n)=>(0,i.jsx)(u,{ref:n,...r,children:e}))).displayName="Screen.Body",C.Footer=({children:e,...r})=>(0,i.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),C.Actions=({children:e,...r})=>(0,i.jsx)(I,{...r,children:e}),C.HelpText=({children:e,...r})=>(0,i.jsx)(S,{...r,children:e}),C.Watermark=()=>(0,i.jsx)(z,{}),C.Icon=({icon:e,variant:r="subtle",loadingStatus:n})=>"logo"===r&&e?(0,i.jsx)(b,"string"==typeof e?{children:(0,i.jsx)("img",{src:e,alt:""})}:t.isValidElement(e)?{children:e}:{children:t.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.a4,{success:n?.success,fail:n?.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"}}):t.isValidElement(e)?t.cloneElement(e,{style:{width:"38px",height:"38px"}}):t.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,i.jsx)(v,{$variant:r,children:(0,i.jsx)(c.N,{size:"64px"})}):(0,i.jsx)(v,{$variant:r,children:e&&("string"==typeof e?(0,i.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}
41):t.isValidElement(e)?e:t.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 I=o.zo.div.withConfig({displayName:"ActionsContainer",componentId:"sc-2e815abe-16"})(["width:100%;display:flex;flex-direction:column;gap:calc(var(--screen-space) / 2);"]),S=o.zo.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);}}"])},68150:function(e,r,n){n.d(r,{S:function(){return a}});var i=n(27573),t=n(81781),o=n(54037);let a=({primaryCta:e,secondaryCta:r,helpText:n,watermark:a=!0,children:s,...c})=>{let l=e||r?(0,i.jsxs)(i.Fragment,{children:[e&&(()=>{let{label:r,...n}=e,o=n.variant||"primary";return(0,i.jsx)(t.B,{...n,variant:o,style:{width:"100%",...n.style},children:r})})(),r&&(()=>{let{label:e,...n}=r,o=n.variant||"secondary";return(0,i.jsx)(t.B,{...n,variant:o,style:{width:"100%",...n.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,n||l||a?(0,i.jsxs)(o.S.Footer,{children:[n?(0,i.jsx)(o.S.HelpText,{children:n}):null,l?(0,i.jsx)(o.S.Actions,{children:l}):null,a?(0,i.jsx)(o.S.Watermark,{}):null]}):null]})}},19672:function(e,r,n){n.d(r,{W:function(){return b}});var i=n(27573),t=n(52958),o=n(64983),a=n(7653),s=n(91628),c=n(81781),l=n(71818),d=n(96766),p=n(12067),h=n(38204);let u=(0,s.zo)(h.B).withConfig({displayName:"StyledBox",componentId:"sc-4010d8f3-0"})(["&&{padding:0.75rem;height:56px;}"]),g=s.zo.div.withConfig({displayName:"WalletContent",componentId:"sc-4010d8f3-1"})(["display:flex;align-items:center;justify-content:space-between;width:100%;"]),f=s.zo.div.withConfig({displayName:"AddressContainer",componentId:"sc-4010d8f3-2"})(["display:flex;flex-direction:column;gap:0;"]),m=s.zo.div.withConfig({displayName:"BalanceText",componentId:"sc-4010d8f3-3"})(["font-size:12px;line-height:1rem;color:var(--privy-color-foreground-3);"]),y=(0,s.zo)(d.L).withConfig({displayName:"TitleLabel",componentId:"sc-4010d8f3-4"})(["text-align:left;margin-bottom:0.5rem;"]),x=(0,s.zo)(l.E).withConfig({displayName:"StyledErrorMessage",componentId:"sc-4010d8f3-5"})(["margin-top:0.25rem;"]),v=(0,s.zo)(c.S).withConfig({displayName:"CopyButton",componentId:"sc-4010d8f3-6"})(["&&{gap:0.375rem;font-size:14px;}"]),b=({errMsg:e,balance:r,address:n,className:s,title:c,showCopyButton:l=!1})=>{let[d,h]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(d){let e=setTimeout(()=>h(!1),3e3);return()=>clearTimeout(e)}},[d]),(0,i.jsxs)("div",{children:[c&&(0,i.jsx)(y,{children:c}),(0,i.jsx)(u,{className:s,$state:e?"error":void 0,children:(0,i.jsxs)(g,{children:[(0,i.jsxs)(f,{children:[(0,i.jsx)(p.A,{address:n,showCopyIcon:!1}),void 0!==r&&(0,i.jsx)(m,{children:r})]}),l&&(0,i.jsx)(v,{onClick:function(e){e.stopPropagation(),navigator.clipboard.writeText(n).then(()=>h(!0)).catch(console.error)},size:"sm",children:(0,i.jsxs)(i.Fragment,d?{children:["Copied",(0,i.jsx)(t.Z,{size:14})]}:{children:["Copy",(0,i.jsx)(o.Z,{size:14})]})})]})}),e&&(0,i.jsx)(x,{children:e})]})}},29981:function(e,r,n){n.d(r,{N:function(){return o}});var i=n(27573),t=n(91628);let o=({size:e,centerIcon:r})=>(0,i.jsx)(a,{$size:e,children:(0,i.jsxs)(s,{children:[(0,i.jsx)(l,{}),(0,i.jsx)(d,{}),r?(0,i.jsx)(c,{children:r}):null]})}),a=t.zo.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.zo.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=t.zo.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);}"]),l=t.zo.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.zo.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);}}"])},38204:function(e,r,n){n.d(r,{B:function(){return o},a:function(){return t}});var i=n(91628);let t=(0,i.iv)(["&&{border-width:1px;padding:0.5rem 1rem;}width:100%;text-align:left;border:solid 1px var(--privy-color-foreground-4);border-radius:var(--privy-border-radius-md);display:flex;justify-content:space-between;align-items:center;",""],e=>"error"===e.$state?"\n border-color: var(--privy-color-error);\n background: var(--privy-color-error-bg);\n ":""),o=i.zo.div.withConfig({displayName:"Box",componentId:"sc-7252360a-0"})(["",""],t)}}]);
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.