1/*! For license information please see 4927.fba25acc.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[4927],{359:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(15882),o=r(57722);const i=["title","titleId"];function s(e,t){let{title:r,titleId:s}=e,a=(0,n.A)(e,i);return o.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:t,"aria-labelledby":s},a),r?o.createElement("title",{id:s},r):null,o.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"}))}const a=o.forwardRef(s)},24133:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(90034),o=r(88254),i=r(40829),s=r(57722),a=r(52610),l=r(1991),c=r(67980);const d=e=>{let{address:t,showCopyIcon:r,url:a,className:d}=e,[f,v]=(0,s.useState)(!1);function m(e){e.stopPropagation(),navigator.clipboard.writeText(t).then(()=>v(!0)).catch(console.error)}return(0,s.useEffect)(()=>{if(f){let e=setTimeout(()=>v(!1),3e3);return()=>clearTimeout(e)}},[f]),(0,n.jsxs)(u,a?{children:[(0,n.jsx)(p,{title:t,className:d,href:"".concat(a,"/address/").concat(t),target:"_blank",children:(0,l.D)(t)}),r&&(0,n.jsx)(c.S,{onClick:m,size:"sm",style:{gap:"0.375rem"},children:(0,n.jsxs)(n.Fragment,f?{children:["Copied",(0,n.jsx)(o.A,{size:16})]}:{children:["Copy",(0,n.jsx)(i.A,{size:16})]})})]}:{children:[(0,n.jsx)(h,{title:t,className:d,children:(0,l.D)(t)}),r&&(0,n.jsx)(c.S,{onClick:m,size:"sm",style:{gap:"0.375rem",fontSize:"14px"},children:(0,n.jsxs)(n.Fragment,f?{children:["Copied",(0,n.jsx)(o.A,{size:14})]}:{children:["Copy",(0,n.jsx)(i.A,{size:14})]})})]})};
2let u=a.I4.span.withConfig({displayName:"AddressContainer",componentId:"sc-3a987cc8-0"})(["display:inline-flex;align-items:center;gap:0.5rem;"]),h=a.I4.span.withConfig({displayName:"AddressText",componentId:"sc-3a987cc8-1"})(["font-size:14px;font-weight:500;color:var(--privy-color-foreground);"]),p=a.I4.a.withConfig({displayName:"AddressLink",componentId:"sc-3a987cc8-2"})(["font-size:14px;color:var(--privy-color-foreground);text-decoration:none;&:hover{text-decoration:underline;}"])},24927:(e,t,r)=>{r.r(t),r.d(t,{LinkConflictScreen:()=>B,LinkConflictScreenView:()=>R,default:()=>B});var n=r(24107),o=r(90034),i=r(359),s=r(49563),a=r(57722),l=r(67980),c=r(52610),d=r(33898),u=r(38774),h=r(24133),p=r(51380),f=r(49931),v=r(75960),m=r(99844),x=r(60411),g=r(15882);const w=["title","titleId"];function y(e,t){let{title:r,titleId:n}=e,o=(0,g.A)(e,w);return a.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:t,"aria-labelledby":n},o),r?a.createElement("title",{id:n},r):null,a.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"}))}const j=a.forwardRef(y);r(2035),r(30549),r(88404);const b=c.I4.span.withConfig({displayName:"CircleBorder",componentId:"sc-9056b8b8-0"})(["&&{width:82px;height:82px;border-width:4px;border-style:solid;border-color:",";border-bottom-color:transparent;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1.2s linear infinite;transition:border-color 800ms;border-bottom-color:",";}"],e=>{var t;return null!==(t=e.color)&&void 0!==t?t:"var(--privy-color-accent)"},e=>{var t;return null!==(t=e.color)&&void 0!==t?t:"var(--privy-color-accent)"});function k(e){return(0,o.jsxs)("svg",(0,n.A)((0,n.A)({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,o.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,o.jsx)("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),(0,o.jsx)("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]}))}const A=e=>{let{onTransfer:t,isTransferring:r,transferSuccess:i}=e;return(0,o.jsx)(l.P,(0,n.A)({},i?{success:!0,children:"Success!"}:{warn:!0,loading:r,onClick:t,children:"Transfer and delete account"}))},C=c.I4.div.withConfig({displayName:"ConnectContainer",componentId:"sc-3505eb4c-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;padding-bottom:16px;"]),I=c.I4.div.withConfig({displayName:"GappedContainer",componentId:"sc-3505eb4c-1"})(["display:flex;flex-direction:column;&& p{font-size:14px;}width:100%;gap:16px;"]),T=c.I4.div.withConfig({displayName:"DisclosedAccountContainer",componentId:"sc-3505eb4c-2"})(["display:flex;cursor:pointer;align-items:center;width:100%;border:1px solid var(--privy-color-foreground-4) !important;border-radius:var(--privy-border-radius-md);padding:8px 10px;font-size:14px;font-weight:500;gap:8px;"]),N=(0,c.I4)(x.A).withConfig({displayName:"StyledExclamationCircleIcon",componentId:"sc-3505eb4c-3"})(["position:relative;width:",";height:",";color:var(--privy-color-foreground-3);margin-left:auto;"],e=>{let{$iconSize:t}=e;return"".concat(t,"px")},e=>{let{$iconSize:t}=e;return"".concat(t,"px")}),S=(0,c.I4)(j).withConfig({displayName:"StyledCopyIcon",componentId:"sc-3505eb4c-4"})(["position:relative;width:15px;height:15px;color:var(--privy-color-foreground-3);margin-left:auto;"]),W=c.I4.ol.withConfig({displayName:"ListContainer",componentId:"sc-3505eb4c-5"})(["display:flex;flex-direction:column;font-size:14px;width:100%;text-align:left;"]),E=c.I4.li.withConfig({displayName:"ListItem",componentId:"sc-3505eb4c-6"})(["font-size:14px;list-style-type:auto;list-style-position:outside;margin-left:1rem;margin-bottom:0.5rem;&:last-child{margin-bottom:0;}"]),L=c.I4.div.withConfig({displayName:"CircleContainer",componentId:"sc-3505eb4c-7"})(["position:relative;width:60px;height:60px;margin:10px;display:flex;justify-content:center;align-items:center;"]);let z=()=>(0,o.jsx)(L,{children:(0,o.jsx)(N,{$iconSize:60})});const M=e=>{var t,r;let{address:n,onClose:i,onRetry:a,onTransfer:l,isTransferring:c,transferSuccess:u}=e,{defaultChain:p}=(0,m.u)(),f=null!==(t=null===(r=p.blockExplorers)||void 0===r?void 0:r.default.url)&&void 0!==t?t:"https://etherscan.io";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.M,{onClose:i,backFn:a}),(0,o.jsxs)(C,{children:[(0,o.jsx)(z,{}),(0,o.jsxs)(I,{children:[(0,o.jsx)("h3",{children:"Check account assets before transferring"}),(0,o.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,o.jsxs)(W,{children:[(0,o.jsx)("p",{children:" To check your balance, you can:"}),(0,o.jsx)(E,{children:"Log out and log back into the other account, or "}),(0,o.jsxs)(E,{children:["Copy your wallet address and use a"," ",(0,o.jsx)("u",{children:(0,o.jsx)("a",{target:"_blank",href:f,children:"block explorer"})})," ","to see if the account holds any assets."]})]}),(0,o.jsxs)(T,{onClick:()=>navigator.clipboard.writeText(n).catch(console.error),children:[(0,o.jsx)(s.A,{color:"var(--privy-color-foreground-1)",strokeWidth:2,height:"28px",width:"28px"}),(0,o.jsx)(h.A,{address:n,showCopyIcon:!1}),(0,o.jsx)(S,{})]}),(0,o.jsx)(A,{onTransfer:l,isTransferring:c,transferSuccess:u})]})]}),(0,o.jsx)(d.B,{})]})},B={component:()=>{let{initiateAccountTransfer:e,closePrivyModal:t}=(0,p.u)(),{data:r,navigate:n,lastScreen:i,setModalData:s}=(0,f.a)(),[l,c]=(0,a.useState)(void 0),[d,u]=(0,a.useState)(!1),[h,v]=(0,a.useState)(!1),m=async()=>{try{var o,a,l,c,d,h,p,f,m,x;
2if(null===r||void 0===r||null===(o=r.accountTransfer)||void 0===o||!o.nonce||null===r||void 0===r||null===(a=r.accountTransfer)||void 0===a||!a.account)throw Error("missing account transfer inputs");v(!0),await e({nonce:null===r||void 0===r||null===(l=r.accountTransfer)||void 0===l?void 0:l.nonce,account:null===r||void 0===r||null===(c=r.accountTransfer)||void 0===c?void 0:c.account,accountType:null===r||void 0===r||null===(d=r.accountTransfer)||void 0===d?void 0:d.linkMethod,externalWalletMetadata:null===r||void 0===r||null===(h=r.accountTransfer)||void 0===h?void 0:h.externalWalletMetadata,telegramWebAppData:null===r||void 0===r||null===(p=r.accountTransfer)||void 0===p?void 0:p.telegramWebAppData,telegramAuthResult:null===r||void 0===r||null===(f=r.accountTransfer)||void 0===f?void 0:f.telegramAuthResult,farcasterEmbeddedAddress:null===r||void 0===r||null===(m=r.accountTransfer)||void 0===m?void 0:m.farcasterEmbeddedAddress,oAuthUserInfo:null===r||void 0===r||null===(x=r.accountTransfer)||void 0===x?void 0:x.oAuthUserInfo}),u(!0),v(!1),setTimeout(t,1e3)}catch(e){s({errorModalData:{error:e,previousScreen:i||"LinkConflictScreen"}}),n("ErrorScreen",!0)}};return l?(0,o.jsx)(M,{address:l,onClose:t,onRetry:()=>c(void 0),onTransfer:m,isTransferring:h,transferSuccess:d}):(0,o.jsx)(R,{onClose:t,onInfo:()=>{var e;return c(null===r||void 0===r||null===(e=r.accountTransfer)||void 0===e?void 0:e.embeddedWalletAddress)},onContinue:()=>{var e;return c(null===r||void 0===r||null===(e=r.accountTransfer)||void 0===e?void 0:e.embeddedWalletAddress)},onTransfer:m,isTransferring:h,transferSuccess:d,data:r})}},R=e=>{var t,r,n,s,a,c,h;let{onClose:p,onContinue:f,onInfo:m,onTransfer:x,transferSuccess:g,isTransferring:w,data:y}=e;if(null===y||void 0===y||null===(t=y.accountTransfer)||void 0===t||!t.linkMethod||null===y||void 0===y||null===(r=y.accountTransfer)||void 0===r||!r.displayName)return;let j={method:null===y||void 0===y||null===(n=y.accountTransfer)||void 0===n?void 0:n.linkMethod,handle:null===y||void 0===y||null===(s=y.accountTransfer)||void 0===s?void 0:s.displayName,disclosedAccount:null!==y&&void 0!==y&&null!==(a=y.accountTransfer)&&void 0!==a&&a.embeddedWalletAddress?{type:"wallet",handle:null===y||void 0===y||null===(c=y.accountTransfer)||void 0===c?void 0:c.embeddedWalletAddress}:void 0};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.M,{closeable:!0}),(0,o.jsxs)(C,{children:[(0,o.jsx)(u.e,{children:(0,o.jsxs)("div",{children:[(0,o.jsx)(b,{color:"var(--privy-color-error)"}),(0,o.jsx)(i.A,{height:38,width:38,stroke:"var(--privy-color-error)"})]})}),(0,o.jsxs)(I,{children:[(0,o.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"".concat((0,v.e)(e.replace("_oauth",""))," profile");default:return e.startsWith("privy:")?"Cross-app account":e}}(j.method)," is associated with another account"]}),(0,o.jsxs)("p",{children:["Do you want to transfer",(0,o.jsx)("b",{children:j.handle?" ".concat(j.handle):""})," to this account instead? This will delete your other account."]}),(0,o.jsx)(H,{onClick:m,disclosedAccount:j.disclosedAccount})]}),(0,o.jsxs)(I,{style:{gap:12,marginTop:12},children:[null!==y&&void 0!==y&&null!==(h=y.accountTransfer)&&void 0!==h&&h.embeddedWalletAddress?(0,o.jsx)(l.P,{onClick:f,children:"Continue"}):(0,o.jsx)(A,{onTransfer:x,transferSuccess:g,isTransferring:w}),(0,o.jsx)(l.S,{onClick:p,children:"No thanks"})]})]}),(0,o.jsx)(d.B,{})]})};function H(e){let{disclosedAccount:t,onClick:r}=e;return t?(0,o.jsxs)(T,{onClick:r,children:[(0,o.jsx)(s.A,{color:"var(--privy-color-foreground-1)",strokeWidth:2,height:"28px",width:"28px"}),(0,o.jsx)(h.A,{address:t.handle,showCopyIcon:!1}),(0,o.jsx)(k,{width:15,height:15,color:"var(--privy-color-foreground-3)",style:{marginLeft:"auto"}})]}):null}},38774:(e,t,r)=>{r.d(t,{e:()=>n});let n=r(52610).I4.div.withConfig({displayName:"StackedContainer",componentId:"sc-f7e7d474-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:82px;> div{position:relative;}> div > span{position:absolute;
2left:-41px;top:-41px;}> div > :last-child{position:absolute;left:-19px;top:-19px;}"])},40829:(e,t,r)=>{r.d(t,{A:()=>n});const n=(0,r(90513).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"}]])},49563:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(15882),o=r(57722);const i=["title","titleId"];function s(e,t){let{title:r,titleId:s}=e,a=(0,n.A)(e,i);return o.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:t,"aria-labelledby":s},a),r?o.createElement("title",{id:s},r):null,o.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"}))}const a=o.forwardRef(s)},60411:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(15882),o=r(57722);const i=["title","titleId"];function s(e,t){let{title:r,titleId:s}=e,a=(0,n.A)(e,i);return o.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:t,"aria-labelledby":s},a),r?o.createElement("title",{id:s},r):null,o.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"}))}const a=o.forwardRef(s)},75960:(e,t,r)=>{function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}r.d(t,{e:()=>n})},88254:(e,t,r)=>{r.d(t,{A:()=>n});const n=(0,r(90513).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},90513:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(24107),o=r(15882),i=r(57722);const s=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},a=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var l={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"};const c=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],d=(0,i.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:d=2,absoluteStrokeWidth:u,className:h="",children:p,iconNode:f}=e,v=(0,o.A)(e,c);return(0,i.createElement)("svg",(0,n.A)((0,n.A)((0,n.A)({ref:t},l),{},{width:s,height:s,stroke:r,strokeWidth:u?24*Number(d)/Number(s):d,className:a("lucide",h)},!p&&!(e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(v)&&{"aria-hidden":"true"}),v),[...f.map(e=>{let[t,r]=e;return(0,i.createElement)(t,r)}),...Array.isArray(p)?p:[p]])}),u=["className"],h=(e,t)=>{const r=(0,i.forwardRef)((r,l)=>{let{className:c}=r,h=(0,o.A)(r,u);return(0,i.createElement)(d,(0,n.A)({ref:l,iconNode:t,className:a("lucide-".concat((p=s(e),p.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())),"lucide-".concat(e),c)},h));var p});return r.displayName=s(e),r}}}]); 3//# sourceMappingURL=4927.fba25acc.chunk.js.map
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.