1"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[3485],{73485:(e,t,o)=>{o.r(t),o.d(t,{FarcasterSignerStatusScreen:()=>I,FarcasterSignerStatusView:()=>x,default:()=>I});var r=o(90034),a=o(57722),n=o(2035),i=o(52610),s=o(90141),l=o(1991),c=o(31673),d=o(86913),p=o(99844),h=o(51380),u=o(49931),v=o(23316),g=o(95924);o(30549),o(44036),o(88404);let m="#8a63d2";const x=e=>{let{appName:t,loading:o,success:a,errorMessage:i,connectUri:p,onBack:h,onClose:u,onOpenFarcaster:x}=e;return(0,r.jsx)(v.S,n.Fr||o?n.un?{title:i?i.message:"Add a signer to Farcaster",subtitle:i?i.detail:"This will allow ".concat(t," to add casts, likes, follows, and more on your behalf."),icon:g.F,iconVariant:"loading",iconLoadingStatus:{success:a,fail:!!i},primaryCta:p&&x?{label:"Open Farcaster app",onClick:x}:void 0,onBack:h,onClose:u,watermark:!0}:{title:i?i.message:"Requesting signer from Farcaster",subtitle:i?i.detail:"This should only take a moment",icon:g.F,iconVariant:"loading",iconLoadingStatus:{success:a,fail:!!i},onBack:h,onClose:u,watermark:!0,children:p&&n.Fr&&(0,r.jsx)(f,{children:(0,r.jsx)(c.O,{text:"Take me to Farcaster",url:p,color:m})})}:{title:"Add a signer to Farcaster",subtitle:"This will allow ".concat(t," to add casts, likes, follows, and more on your behalf."),onBack:h,onClose:u,watermark:!0,children:(0,r.jsxs)(w,{children:[(0,r.jsx)(y,{children:p?(0,r.jsx)(d.Q,{url:p,size:275,squareLogoElement:g.F}):(0,r.jsx)(j,{children:(0,r.jsx)(l.L,{})})}),(0,r.jsxs)(C,{children:[(0,r.jsx)(k,{children:"Or copy this link and paste it into a phone browser to open the Farcaster app."}),p&&(0,r.jsx)(s.C,{text:p,itemName:"link",color:m})]})]})})};let f=i.I4.div.withConfig({displayName:"MobileLinkContainer",componentId:"sc-2da6f06e-0"})(["margin-top:24px;"]),w=i.I4.div.withConfig({displayName:"ContentContainer",componentId:"sc-2da6f06e-1"})(["display:flex;flex-direction:column;align-items:center;gap:24px;"]),y=i.I4.div.withConfig({displayName:"QrContainer",componentId:"sc-2da6f06e-2"})(["padding:24px;position:relative;display:flex;align-items:center;justify-content:center;min-height:275px;"]),C=i.I4.div.withConfig({displayName:"InstructionsContainer",componentId:"sc-2da6f06e-3"})(["display:flex;flex-direction:column;align-items:center;gap:16px;"]),k=i.I4.div.withConfig({displayName:"InstructionText",componentId:"sc-2da6f06e-4"})(["font-size:0.875rem;text-align:center;color:var(--privy-color-foreground-2);"]),j=i.I4.div.withConfig({displayName:"LoaderWrapper",componentId:"sc-2da6f06e-5"})(["position:relative;width:82px;height:82px;"]);const I={component:()=>{let{lastScreen:e,navigateBack:t,data:o}=(0,u.a)(),n=(0,p.u)(),{requestFarcasterSignerStatus:i,closePrivyModal:s}=(0,h.u)(),[l,c]=(0,a.useState)(void 0),[d,v]=(0,a.useState)(!1),[g,m]=(0,a.useState)(!1),f=(0,a.useRef)([]),w=null===o||void 0===o?void 0:o.farcasterSigner;(0,a.useEffect)(()=>{let e=Date.now(),t=setInterval(async()=>{if(null===w||void 0===w||!w.public_key)return clearInterval(t),void c({retryable:!0,message:"Connect failed",detail:"Something went wrong. Please try again."});"approved"===w.status&&(clearInterval(t),v(!1),m(!0),f.current.push(setTimeout(()=>s({shouldCallAuthOnSuccess:!1,isSuccess:!0}),p.q)));let o=await i(null===w||void 0===w?void 0:w.public_key),r=Date.now()-e;"approved"===o.status?(clearInterval(t),v(!1),m(!0),f.current.push(setTimeout(()=>s({shouldCallAuthOnSuccess:!1,isSuccess:!0}),p.q))):r>3e5?(clearInterval(t),c({retryable:!0,message:"Connect failed",detail:"The request timed out. Try again."})):"revoked"===o.status&&(clearInterval(t),c({retryable:!0,message:"Request rejected",detail:"The request was rejected. Please try again."}))},2e3);return()=>{clearInterval(t),f.current.forEach(e=>clearTimeout(e))}},[]);let y="pending_approval"===(null===w||void 0===w?void 0:w.status)?w.signer_approval_url:void 0;return(0,r.jsx)(x,{appName:n.name,loading:d,success:g,errorMessage:l,connectUri:y,onBack:e?t:void 0,onClose:s,onOpenFarcaster:()=>{y&&(window.location.href=y)}})}}},86640:(e,t,o)=>{o.d(t,{C:()=>s});var r=o(24107),a=o(15882),n=o(90034);const i=["color"],s=e=>{let{color:t}=e,o=(0,a.A)(e,i);return(0,n.jsx)("svg",(0,r.A)((0,r.A)({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"},o),{},{children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{fill:t||"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.5
17,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"})})}))}},90141:(e,t,o)=>{o.d(t,{C:()=>p});var r=o(24107),a=o(15882),n=o(90034),i=o(57722),s=o(52610),l=o(86640);const c=["style","color"],d=e=>{let{style:t,color:o}=e,i=(0,a.A)(e,c);return(0,n.jsx)("svg",(0,r.A)((0,r.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:o||"currentColor",style:(0,r.A)({height:"1.5rem",width:"1.5rem"},t)},i),{},{children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})}))},p=e=>{let[t,o]=(0,i.useState)(!1);return(0,n.jsxs)(h,{color:e.color,onClick:()=>{o(!0),navigator.clipboard.writeText(e.text),setTimeout(()=>o(!1),1500)},$justCopied:t,children:[t?(0,n.jsx)(d,{style:{height:"14px",width:"14px"},strokeWidth:"2"}):(0,n.jsx)(l.C,{style:{height:"14px",width:"14px"}}),t?"Copied":"Copy"," ",e.itemName?e.itemName:"to Clipboard"]})};let h=s.I4.button.withConfig({displayName:"StyledCopytoClipboardButton",componentId:"sc-46f4187f-0"})(["display:flex;align-items:center;gap:6px;&&{margin:8px 2px;font-size:14px;color:",";font-weight:",";transition:color 350ms ease;:focus,:active{background-color:transparent;border:none;outline:none;box-shadow:none;}:hover{color:",";}:active{color:'var(--privy-color-foreground)';font-weight:medium;}@media (max-width:440px){margin:12px 2px;}}svg{width:14px;height:14px;}"],e=>e.$justCopied?"var(--privy-color-foreground)":e.color||"var(--privy-color-foreground-3)",e=>e.$justCopied?"medium":"normal",e=>e.$justCopied?"var(--privy-color-foreground)":"var(--privy-color-foreground-2)")}}]); 2//# sourceMappingURL=3485.f7e29c45.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.