1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4940],{8489:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(42407).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},14940:(e,r,t)=>{t.r(r),t.d(r,{LinkConflictScreen:()=>L,LinkConflictScreenView:()=>W,default:()=>L});var n=t(95155),o=t(88125),a=t(51691),s=t(12115),i=t(94743),l=t(60308),c=t(69421),d=t(67481),u=t(16189),h=t(180),f=t(19497),p=t(3919),x=t(69245);let m=s.forwardRef(function(e,r){let{title:t,titleId:n,...o}=e;return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},o),t?s.createElement("title",{id:n},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"}))});t(92253),t(43335),t(50205);let g=l.I4.span` 2 && { 3 width: 82px; 4 height: 82px; 5 border-width: 4px; 6 border-style: solid; 7 border-color: ${e=>e.color??"var(--privy-color-accent)"}; 8 border-bottom-color: transparent; 9 border-radius: 50%; 10 display: inline-block; 11 box-sizing: border-box; 12 animation: rotation 1.2s linear infinite; 13 transition: border-color 800ms; 14 border-bottom-color: ${e=>e.color??"var(--privy-color-accent)"}; 15 } 16`;function v(e){return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",...e,children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,n.jsx)("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),(0,n.jsx)("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]})}let w=({onTransfer:e,isTransferring:r,transferSuccess:t})=>(0,n.jsx)(i.P,{...t?{success:!0,children:"Success!"}:{warn:!0,loading:r,onClick:e,children:"Transfer and delete account"}}),y=l.I4.div` 17 display: flex; 18 flex-direction: column; 19 align-items: center; 20 justify-content: center; 21 gap: 8px; 22 width: 100%; 23 padding-bottom: 16px; 24`,j=l.I4.div` 25 display: flex; 26 flex-direction: column; 27 && p { 28 font-size: 14px; 29 } 30 width: 100%; 31 gap: 16px; 32`,k=l.I4.div` 33 display: flex; 34 cursor: pointer; 35 align-items: center; 36 width: 100%; 37 border: 1px solid var(--privy-color-foreground-4) !important; 38 border-radius: var(--privy-border-radius-md); 39 padding: 8px 10px; 40 font-size: 14px; 41 font-weight: 500; 42 gap: 8px; 43`,b=(0,l.I4)(x.A)` 44 position: relative; 45 width: ${({$iconSize:e})=>`${e}px`}; 46 height: ${({$iconSize:e})=>`${e}px`}; 47 color: var(--privy-color-foreground-3); 48 margin-left: auto; 49`,A=(0,l.I4)(m)` 50 position: relative; 51 width: 15px; 52 height: 15px; 53 color: var(--privy-color-foreground-3); 54 margin-left: auto; 55`,C=l.I4.ol` 56 display: flex; 57 flex-direction: column; 58 font-size: 14px; 59 width: 100%; 60 text-align: left; 61`,T=l.I4.li` 62 font-size: 14px; 63 list-style-type: auto; 64 list-style-position: outside; 65 margin-left: 1rem; 66 margin-bottom: 0.5rem; /* Adjust the margin as needed */ 67 68 &:last-child { 69 margin-bottom: 0; /* Remove margin from the last item */ 70 } 71`,S=l.I4.div` 72 position: relative; 73 width: 60px; 74 height: 60px; 75 margin: 10px; 76 display: flex; 77 justify-content: center; 78 align-items: center; 79`,E=()=>(0,n.jsx)(S,{children:(0,n.jsx)(b,{$iconSize:60})}),I=({address:e,onClose:r,onRetry:t,onTransfer:o,isTransferring:s,transferSuccess:l})=>{let{defaultChain:c}=(0,p.u)(),u=c.blockExplorers?.default.url??"https://etherscan.io";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.M,{onClose:r,backFn:t}),(0,n.jsxs)(y,{children:[(0,n.jsx)(E,{}),(0,n.jsxs)(j,{children:[(0,n.jsx)("h3",{children:"Check account assets before transferring"}),(0,n.jsx)("p",{children:"Before transferring, ensure there are no assets in the other account. Assets in that account will not transfer automatically and may be lost."}),(0,n.jsxs)(C,{children:[(0,n.jsx)("p",{children:" To check your balance, you can:"}),(0,n.jsx)(T,{children:"Log out and log back into the other account, or "}),(0,n.jsxs)(T,{children:["Copy your wallet address and use a"," ",(0,n.jsx)("u",{children:(0,n.jsx)("a",{target:"_blank",href:u,children:"block explorer"})})," ","to see if the account holds any assets."]})]}),(0,n.jsxs)(k,{onClick:()=>navigator.clipboard.writeText(e).catch(console.error),children:[(0,n.jsx)(a.A,{color:"var(--privy-color-foreground-1)",strokeWidth:2,height:"28px",width:"28px"}),(0,n.jsx)(d.A,{address:e,showCopyIcon:!1}),(0,n.jsx)(A,{})]}),(0,n.jsx)(w,{onTransfer:o,isTransferring:s,transferSuccess:l})]})]}),(0,n.jsx)(i.B,{})]})},L={component:()=>{let{initiateAccountTransfer:e,closePrivyModal:r}=(0,u.u)(),{data:t,navigate:o,lastScreen:a,setModalData:i}
79=(0,h.a)(),[l,c]=(0,s.useState)(void 0),[d,f]=(0,s.useState)(!1),[p,x]=(0,s.useState)(!1),m=async()=>{try{if(!t?.accountTransfer?.nonce||!t?.accountTransfer?.account)throw Error("missing account transfer inputs");x(!0),await e({nonce:t?.accountTransfer?.nonce,account:t?.accountTransfer?.account,accountType:t?.accountTransfer?.linkMethod,externalWalletMetadata:t?.accountTransfer?.externalWalletMetadata,telegramWebAppData:t?.accountTransfer?.telegramWebAppData,telegramAuthResult:t?.accountTransfer?.telegramAuthResult,farcasterEmbeddedAddress:t?.accountTransfer?.farcasterEmbeddedAddress,oAuthUserInfo:t?.accountTransfer?.oAuthUserInfo}),f(!0),x(!1),setTimeout(r,1e3)}catch(e){i({errorModalData:{error:e,previousScreen:a||"LinkConflictScreen"}}),o("ErrorScreen",!0)}};return l?(0,n.jsx)(I,{address:l,onClose:r,onRetry:()=>c(void 0),onTransfer:m,isTransferring:p,transferSuccess:d}):(0,n.jsx)(W,{onClose:r,onInfo:()=>c(t?.accountTransfer?.embeddedWalletAddress),onContinue:()=>c(t?.accountTransfer?.embeddedWalletAddress),onTransfer:m,isTransferring:p,transferSuccess:d,data:t})}},W=({onClose:e,onContinue:r,onInfo:t,onTransfer:a,transferSuccess:s,isTransferring:l,data:d})=>{if(!d?.accountTransfer?.linkMethod||!d?.accountTransfer?.displayName)return;let u={method:d?.accountTransfer?.linkMethod,handle:d?.accountTransfer?.displayName,disclosedAccount:d?.accountTransfer?.embeddedWalletAddress?{type:"wallet",handle:d?.accountTransfer?.embeddedWalletAddress}:void 0};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.M,{closeable:!0}),(0,n.jsxs)(y,{children:[(0,n.jsx)(c.e,{children:(0,n.jsxs)("div",{children:[(0,n.jsx)(g,{color:"var(--privy-color-error)"}),(0,n.jsx)(o.A,{height:38,width:38,stroke:"var(--privy-color-error)"})]})}),(0,n.jsxs)(j,{children:[(0,n.jsxs)("h3",{children:[function(e){switch(e){case"sms":return"Phone number";case"email":return"Email address";case"siwe":return"Wallet address";case"siws":return"Solana wallet address";case"linkedin":return"LinkedIn profile";case"google":case"apple":case"discord":case"github":case"instagram":case"spotify":case"tiktok":case"line":case"twitch":case"twitter":case"telegram":case"farcaster":return`${(0,f.e)(e.replace("_oauth",""))} profile`;default:return e.startsWith("privy:")?"Cross-app account":e}}(u.method)," is associated with another account"]}),(0,n.jsxs)("p",{children:["Do you want to transfer",(0,n.jsx)("b",{children:u.handle?` ${u.handle}`:""})," to this account instead? This will delete your other account."]}),(0,n.jsx)(z,{onClick:t,disclosedAccount:u.disclosedAccount})]}),(0,n.jsxs)(j,{style:{gap:12,marginTop:12},children:[d?.accountTransfer?.embeddedWalletAddress?(0,n.jsx)(i.P,{onClick:r,children:"Continue"}):(0,n.jsx)(w,{onTransfer:a,transferSuccess:s,isTransferring:l}),(0,n.jsx)(i.S,{onClick:e,children:"No thanks"})]})]}),(0,n.jsx)(i.B,{})]})};function z({disclosedAccount:e,onClick:r}){return e?(0,n.jsxs)(k,{onClick:r,children:[(0,n.jsx)(a.A,{color:"var(--privy-color-foreground-1)",strokeWidth:2,height:"28px",width:"28px"}),(0,n.jsx)(d.A,{address:e.handle,showCopyIcon:!1}),(0,n.jsx)(v,{width:15,height:15,color:"var(--privy-color-foreground-3)",style:{marginLeft:"auto"}})]}):null}},19497:(e,r,t)=>{t.d(r,{e:()=>n});function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}},31334:(e,r,t)=>{t.d(r,{A:()=>n});let n=(0,t(42407).A)("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"}]])},42407:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(12115);let o=e=>{let r=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase());return r.charAt(0).toUpperCase()+r.slice(1)},a=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()};var s={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 i=(0,n.forwardRef)((e,r)=>{let{color:t="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:u,...h}=e;return(0,n.createElement)("svg",{ref:r,...s,width:o,height:o,stroke:t,strokeWidth:l?24*Number(i)/Number(o):i,className:a("lucide",c),...!d&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(h)&&{"aria-hidden":"true"},...h},[...u.map(e=>{let[r,t]=e;return(0,n.createElement)(r,t)}),...Array.isArray(d)?d:[d]])}),l=(e,r)=>{let t=(0,n.forwardRef)((t,s)=>{let{className:l,...c}=t;return(0,n.createElement)(i,{ref:s,iconNode:r,className:a("lucide-".concat(o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),l),...c})});return t.displayName=o(e),t}},51691:(e,r,t)=>{t.d(r,{A:()=>
79o});var n=t(12115);let o=n.forwardRef(function(e,r){let{title:t,titleId:o,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":o},a),t?n.createElement("title",{id:o},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a2.25 2.25 0 0 0-2.25-2.25H15a3 3 0 1 1-6 0H5.25A2.25 2.25 0 0 0 3 12m18 0v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6m18 0V9M3 12V9m18 0a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 9m18 0V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v3"}))})},67481:(e,r,t)=>{t.d(r,{A:()=>d});var n=t(95155),o=t(8489),a=t(31334),s=t(12115),i=t(60308),l=t(47882),c=t(94743);let d=({address:e,showCopyIcon:r,url:t,className:i})=>{let[d,p]=(0,s.useState)(!1);function x(r){r.stopPropagation(),navigator.clipboard.writeText(e).then(()=>p(!0)).catch(console.error)}return(0,s.useEffect)(()=>{if(d){let e=setTimeout(()=>p(!1),3e3);return()=>clearTimeout(e)}},[d]),(0,n.jsxs)(u,t?{children:[(0,n.jsx)(f,{title:e,className:i,href:`${t}/address/${e}`,target:"_blank",children:(0,l.v)(e)}),r&&(0,n.jsx)(c.S,{onClick:x,size:"sm",style:{gap:"0.375rem"},children:(0,n.jsxs)(n.Fragment,d?{children:["Copied",(0,n.jsx)(o.A,{size:16})]}:{children:["Copy",(0,n.jsx)(a.A,{size:16})]})})]}:{children:[(0,n.jsx)(h,{title:e,className:i,children:(0,l.v)(e)}),r&&(0,n.jsx)(c.S,{onClick:x,size:"sm",style:{gap:"0.375rem",fontSize:"14px"},children:(0,n.jsxs)(n.Fragment,d?{children:["Copied",(0,n.jsx)(o.A,{size:14})]}:{children:["Copy",(0,n.jsx)(a.A,{size:14})]})})]})},u=i.I4.span` 80 display: inline-flex; 81 align-items: center; 82 gap: 0.5rem; 83`,h=i.I4.span` 84 font-size: 14px; 85 font-weight: 500; 86 color: var(--privy-color-foreground); 87`,f=i.I4.a` 88 font-size: 14px; 89 color: var(--privy-color-foreground); 90 text-decoration: none; 91 92 &:hover { 93 text-decoration: underline; 94 } 95`},69245:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(12115);let o=n.forwardRef(function(e,r){let{title:t,titleId:o,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":o},a),t?n.createElement("title",{id:o},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))})},69421:(e,r,t)=>{t.d(r,{e:()=>o});var n=t(60308);let o=n.I4.div` 96 display: flex; 97 flex-direction: column; 98 justify-content: center; 99 align-items: center; 100 width: 100%; 101 height: 82px; 102 103 > div { 104 position: relative; 105 } 106 107 > div > span { 108 position: absolute; 109 left: -41px; 110 top: -41px; 111 } 112 113 > div > :last-child { 114 position: absolute; 115 left: -19px; 116 top: -19px; 117 } 118`},88125:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(12115);let o=n.forwardRef(function(e,r){let{title:t,titleId:o,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":o},a),t?n.createElement("title",{id:o},t):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))})}}]);
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.