1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1413],{5163:(e,r,i)=>{i.d(r,{N:()=>a});var t=i(82322),n=i(39404);let a=({size:e,centerIcon:r})=>(0,t.jsx)(o,{$size:e,children:(0,t.jsxs)(l,{children:[(0,t.jsx)(c,{}),(0,t.jsx)(d,{}),r?(0,t.jsx)(s,{children:r}):null]})}),o=n.I4.div` 2 --spinner-size: ${e=>e.$size?e.$size:"96px"}; 3 4 display: inline-flex; 5 justify-content: center; 6 align-items: center; 7 8 @media all and (display-mode: standalone) { 9 margin-bottom: 30px; 10 } 11`,l=n.I4.div` 12 position: relative; 13 height: var(--spinner-size); 14 width: var(--spinner-size); 15 16 opacity: 1; 17 animation: fadein 200ms ease; 18`,s=n.I4.div` 19 position: absolute; 20 top: 0; 21 right: 0; 22 bottom: 0; 23 left: 0; 24 display: flex; 25 align-items: center; 26 justify-content: center; 27 svg, 28 img { 29 width: calc(var(--spinner-size) * 0.4); 30 height: calc(var(--spinner-size) * 0.4); 31 border-radius: var(--privy-border-radius-full); 32 } 33`,c=n.I4.div` 34 position: absolute; 35 top: 0; 36 right: 0; 37 bottom: 0; 38 left: 0; 39 width: var(--spinner-size); 40 height: var(--spinner-size); 41 42 && { 43 border: 4px solid var(--privy-color-border-default); 44 border-radius: 50%; 45 } 46`,d=n.I4.div` 47 position: absolute; 48 top: 0; 49 right: 0; 50 bottom: 0; 51 left: 0; 52 width: var(--spinner-size); 53 height: var(--spinner-size); 54 animation: spin 1200ms linear infinite; 55 56 && { 57 border: 4px solid; 58 border-color: var(--privy-color-icon-subtle) transparent transparent transparent; 59 border-radius: 50%; 60 } 61 62 @keyframes spin { 63 from { 64 transform: rotate(0deg); 65 } 66 to { 67 transform: rotate(360deg); 68 } 69 } 70`},35539:(e,r,i)=>{i.d(r,{A:()=>t});let t=(0,i(92639).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},42593:(e,r,i)=>{i.d(r,{S:()=>o});var t=i(82322),n=i(54855),a=i(69456);let o=({primaryCta:e,secondaryCta:r,helpText:i,watermark:o=!0,children:l,...s})=>{let c=e||r?(0,t.jsxs)(t.Fragment,{children:[e&&(()=>{let{label:r,...i}=e,a=i.variant||"primary";return(0,t.jsx)(n.a,{...i,variant:a,style:{width:"100%",...i.style},children:r})})(),r&&(()=>{let{label:e,...i}=r,a=i.variant||"secondary";return(0,t.jsx)(n.a,{...i,variant:a,style:{width:"100%",...i.style},children:e})})()]}):null;return(0,t.jsxs)(a.S,{id:s.id,className:s.className,children:[(0,t.jsx)(a.S.Header,{...s}),l?(0,t.jsx)(a.S.Body,{children:l}):null,i||c||o?(0,t.jsxs)(a.S.Footer,{children:[i?(0,t.jsx)(a.S.HelpText,{children:i}):null,c?(0,t.jsx)(a.S.Actions,{children:c}):null,o?(0,t.jsx)(a.S.Watermark,{}):null]}):null]})}},69456:(e,r,i)=>{i.d(r,{S:()=>k});var t=i(82322),n=i(47002),a=i(39404),o=i(40951),l=i(54855),s=i(5163);let c=a.I4.div` 71 /* spacing tokens */ 72 --screen-space: 16px; /* base 1x = 16 */ 73 --screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */ 74 75 position: relative; 76 overflow: hidden; 77 margin: 0 calc(-1 * var(--screen-space)); /* extends over modal padding */ 78 height: 100%; 79 border-radius: var(--privy-border-radius-lg); 80`,d=a.I4.div` 81 display: flex; 82 flex-direction: column; 83 gap: calc(var(--screen-space) * 1.5); 84 width: 100%; 85 background: var(--privy-color-background); 86 padding: 0 var(--screen-space-lg) var(--screen-space); 87 height: 100%; 88 border-radius: var(--privy-border-radius-lg); 89`,p=a.I4.div` 90 position: relative; 91 display: flex; 92 flex-direction: column; 93`,h=(0,a.I4)(l.M)` 94 margin: 0 -8px; 95`,u=a.I4.div` 96 flex: 1 1 auto; 97 display: flex; 98 flex-direction: column; 99 100 /* Enable scrolling */ 101 overflow-y: auto; 102 103 /* Hide scrollbar but keep functionality when scrollable */ 104 /* Add padding for focus outline space, offset with negative margin */ 105 padding: 3px; 106 margin: -3px; 107 108 &::-webkit-scrollbar {
109 display: none; 110 } 111 scrollbar-gutter: stable both-edges; 112 scrollbar-width: none; 113 -ms-overflow-style: none; 114 115 /* Gradient effect for scroll indication */ 116 ${({$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} 117 118 background-repeat: no-repeat; 119 background-size: 120 100% 32px, 121 100% 16px; 122 background-attachment: local, scroll; 123`,g=a.I4.div` 124 display: flex; 125 flex-direction: column; 126 gap: var(--screen-space-lg); 127`,v=a.I4.div` 128 text-align: center; 129 display: flex; 130 flex-direction: column; 131 align-items: center; 132 gap: var(--screen-space); 133`,x=a.I4.div` 134 display: flex; 135 flex-direction: column; 136 gap: 4px; 137`,y=a.I4.h3` 138 && { 139 font-size: 20px; 140 line-height: 32px; 141 font-weight: 500; 142 color: var(--privy-color-foreground); 143 margin: 0; 144 } 145`,f=a.I4.p` 146 && { 147 margin: 0; 148 font-size: 16px; 149 font-weight: 300; 150 line-height: 24px; 151 color: var(--privy-color-foreground); 152 } 153`,m=a.I4.div` 154 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)"}}}; 155 156 border-radius: 50%; 157 width: 64px; 158 height: 64px; 159 display: flex; 160 align-items: center; 161 justify-content: center; 162`,b=a.I4.div` 163 display: flex; 164 align-items: center; 165 justify-content: center; 166 167 img, 168 svg { 169 max-height: 90px; 170 max-width: 180px; 171 } 172`,w=a.I4.div` 173 display: flex; 174 flex-direction: column; 175 justify-content: center; 176 align-items: center; 177 width: 100%; 178 height: 82px; 179 180 > div { 181 position: relative; 182 } 183 184 > div > :first-child { 185 position: relative; 186 } 187 188 > div > :last-child { 189 position: absolute; 190 left: 50%; 191 top: 50%; 192 transform: translate(-50%, -50%); 193 } 194`,k=({children:e,...r})=>(0,t.jsx)(c,{children:(0,t.jsx)(d,{...r,children:e})}),j=a.I4.div` 195 position: absolute; 196 top: 0; 197 left: calc(-1 * var(--screen-space-lg)); 198 width: calc(100% + calc(var(--screen-space-lg) * 2)); 199 height: 4px; 200 background: var(--privy-color-background-2); 201 border-top-left-radius: inherit; 202 border-top-right-radius: inherit; 203 overflow: hidden; 204`,I=(0,a.I4)(l.B)` 205 padding: 0; 206 && a { 207 padding: 0; 208 color: var(--privy-color-foreground-3); 209 } 210`,C=a.I4.div` 211 height: 100%; 212 width: ${({pct:e})=>e}%; 213 background: var(--privy-color-foreground-3); 214 border-radius: 2px; 215 transition: width 300ms ease-in-out; 216`,S=({step:e})=>e?(0,t.jsx)(j,{children:(0,t.jsx)(C,{pct:Math.min(100,e.current/e.total*100)})}):null;k.Header=({title:e,subtitle:r,icon:i,iconVariant:n,iconLoadingStatus:a,showBack:o,onBack:l,showInfo:s,onInfo:c,showClose:d,onClose:u,step:g,...m})=>(0,t.jsxs)(p,{...m,children:[(0,t.jsx)(h,{backFn:o?l:void 0,infoFn:s?c:void 0,onClose:d?u:void 0,closeable:d}),(i||n||e||r)&&(0,t.jsxs)(v,{children:[i||n?(0,t.jsx)(k.Icon,{icon:i,variant:n,loadingStatus:a}):null,!(!e&&!r)&&(0,t.jsxs)(x,{children:[e&&(0,t.jsx)(y,{children:e}),r&&(0,t.jsx)(f,{children:r})]})]}),g&&(0,t.jsx)(S,{step:g})]}),(k.Body=n.forwardRef(({children:e,...r},i)=>(0,t.jsx)(u,{ref:i,...r,children:e}))).displayName="Screen.Body",k.Footer=({children:e,...r})=>(0,t.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),k.Actions=({children:e,...r})=>(0,t.jsx)(z,{...r,children:e}),k.HelpText=({children:e,...r})=>(0,t.jsx)(A,{...r,children:e}),k.Watermark=()=>(0,t.jsx)(I,{}),k.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)(o.a4,{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)(m,{$variant:r,children:(0,t.jsx)(s.N,{size:"64px"})}):(0,t.jsx)(m,{$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=a.I4.div` 217 width: 100%; 218 display: flex; 219 flex-direction: column; 220 gap: calc(var(--screen-space) / 2); 221`,A=a.I4.div` 222 && { 223 margin: 0; 224 width: 100%; 225 text-align: center; 226 color: var(--privy-color-foreground-3); 227 font-size: 14px; 228 line-height: 22px; 229 230 & a { 231 color: var(--privy-color-accent); 232 } 233 } 234`}
234,91413:(e,r,i)=>{i.r(r),i.d(r,{DelegatedActionsRevokeScreen:()=>u,DelegatedActionsRevokeScreenView:()=>h,default:()=>u});var t=i(82322),n=i(97321),a=i(35539);let o=(0,i(92639).A)("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var l=i(47002),s=i(50872),c=i(1228),d=i(74071),p=i(42593);i(76158),i(5602),i(5569);let h=({appName:e,success:r,error:i,onRevoke:l,onDeny:s,onClose:c})=>(0,t.jsx)(p.S,r||i?{title:i?"Something went wrong":"Success!",subtitle:i?"Please try again.":"You've successfully revoked permissions.",icon:i?n.A:a.A,iconVariant:i?"error":"success",onBack:c,watermark:!0}:{title:"Revoke offline access to wallet",subtitle:`By confirming, ${e} will no longer be able to use this wallet on your behalf when you are not online.`,icon:o,primaryCta:{label:"Confirm",onClick:l},secondaryCta:{label:"Deny",onClick:s},onBack:c,watermark:!0}),u={component:()=>{let{data:e}=(0,d.a)(),r=(0,s.u)(),{closePrivyModal:i}=(0,c.u)(),[n,a]=(0,l.useState)(!1),[o,p]=(0,l.useState)(),{onRevoke:u,onSuccess:g,onError:v}=e.delegatedActions.revoke,x=async()=>{n?g():v(o??new c.a("User declined revoking access to their delegated wallet.")),i({shouldCallAuthOnSuccess:!1})};return(0,l.useEffect)(()=>{if(!n&&!o)return;let e=setTimeout(x,s.r);return()=>clearTimeout(e)},[n,o]),(0,t.jsx)(h,{appName:r.name,success:n,error:o,onRevoke:async()=>{try{await u(),a(!0)}catch(e){p(e)}},onDeny:()=>{x()},onClose:x})}}},92639:(e,r,i)=>{i.d(r,{A:()=>s});var t=i(47002);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)},a=(...e)=>e.filter((e,r,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===r).join(" ").trim();var o={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)(({color:e="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:n,className:l="",children:s,iconNode:c,...d},p)=>(0,t.createElement)("svg",{ref:p,...o,width:r,height:r,stroke:e,strokeWidth:n?24*Number(i)/Number(r):i,className:a("lucide",l),...!s&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(s)?s:[s]])),s=(e,r)=>{let i=(0,t.forwardRef)(({className:i,...o},s)=>(0,t.createElement)(l,{ref:s,iconNode:r,className:a(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...o}));return i.displayName=n(e),i}},97321:(e,r,i)=>{i.d(r,{A:()=>t});let t=(0,i(92639).A)("circle-alert",[["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"}]])}}]);
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.