PageSourceSearch

https://watch.fun/_next/static/chunks/8102.c6450a9fd385d831.js

js watch.fun collected 2026-10-06 07:39:20 UTC 43,415 bytes, 411 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="31542e1e-7e06-431c-8f71-86f0ededee6e",e._sentryDebugIdIdentifier="sentry-dbid-31542e1e-7e06-431c-8f71-86f0ededee6e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8102],{5917:(e,r,n)=>{n.d(r,{A:()=>t});let t=(0,n(71847).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},11124:(e,r,n)=>{n.d(r,{NJ:()=>a,vj:()=>o,vz:()=>s});var t=n(28245),i=n(30598);function s(e){return e?`${e.slice(0,5)}…${e.slice(-4)}`:""}function o({wei:e,precision:r=3}){return parseFloat((0,t.c)(e)).toFixed(r).replace(/0+$/,"").replace(/\.$/,"")}function a({amount:e,decimals:r}){return(0,i.J)(BigInt(e),r)}},21165:(e,r,n)=>{n.d(r,{S:()=>i});var t=n(60308);let i=t.I4.span`
2  margin-top: 4px;
3  color: var(--privy-color-foreground);
4  text-align: center;
5
6  font-size: 0.875rem;
7  font-weight: 400;
8  line-height: 1.375rem; /* 157.143% */
9
10  && a {
11    color: var(--privy-color-accent);
12  }
13`},24151:(e,r,n)=>{n.d(r,{E:()=>o});var t=n(95155),i=n(69245),s=n(60308);let o=({children:e,theme:r})=>(0,t.jsxs)(a,{$theme:r,children:[(0,t.jsx)(i.A,{width:"20px",height:"20px",color:"var(--privy-color-icon-error)",strokeWidth:2,style:{flexShrink:0}}),(0,t.jsx)(l,{$theme:r,children:e})]}),a=s.I4.div`
14  display: flex;
15  gap: 0.75rem;
16  background-color: var(--privy-color-error-bg);
17  align-items: flex-start;
18  padding: 1rem;
19  border-radius: 0.75rem;
20`,l=s.I4.div`
21  color: ${e=>"dark"===e.$theme?"var(--privy-color-foreground-2)":"var(--privy-color-foreground)"};
22  font-size: 1rem;
23  font-weight: 400;
24  line-height: 1.5;
25  flex: 1;
26  text-align: left;
27`},36054:(e,r,n)=>{n.d(r,{R:()=>s,a:()=>i});var t=n(60308);let i=t.I4.span`
28  display: flex;
29  flex-direction: column;
30  gap: 0.35rem;
31  width: 100%;
32`,s=t.I4.span`
33  display: flex;
34  width: 100%;
35  justify-content: space-between;
36  gap: 0.5rem;
37`},43687:(e,r,n)=>{n.d(r,{A:()=>i});var t=n(12115);let i=t.forwardRef(function(e,r){let{title:n,titleId:i,...s}=e;return t.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":i},s),n?t.createElement("title",{id:i},n):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"}))})},55211:(e,r,n)=>{n.d(r,{E:()=>i});var t=n(60308);let i=t.I4.span`
38  text-align: left;
39  font-size: 0.75rem;
40  font-weight: 500;
41  line-height: 1.125rem; /* 150% */
42
43  color: var(--privy-color-error);
44`},55483:(e,r,n)=>{n.d(r,{R:()=>g,a:()=>o,b:()=>s,c:()=>u,d:()=>a,g:()=>x,t:()=>c,u:()=>m});var t=n(12115),i=n(16189);let s=0x2f3fb341,o="11111111111111111111111111111111",a="EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",l="0x0000000000000000000000000000000000000000",c=({appId:e,originCurrency:r,destinationCurrency:n,...t})=>({tradeType:"EXPECTED_OUTPUT",originCurrency:r??l,destinationCurrency:n??l,referrer:`privy|${e}`,...t}),d="https://api.relay.link",h="https://api.testnets.relay.link",x=async({input:e,isTestnet:r})=>{let n=await fetch((r?h:d)+"/quote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),t=await n.json();if(!(n.ok||"string"==typeof t.message&&t.message.startsWith("Invalid address")))throw console.error("Relay error:",t),Error(t.message??"Error fetching quote from relay");return t},u=e=>{let r=e.steps[0]?.items?.[0];if(r)return{from:r.data.from,to:r.data.to,value:Number(r.data.value),
44chainId:Number(r.data.chainId),data:r.data.data}};async function p({transactionHash:e,isTestnet:r}){let n=await fetch((r?h:d)+"/requests/v2?hash="+e),t=await n.json();if(!n.ok){if("message"in t&&"string"==typeof t.message)throw Error(t.message);throw Error("Error fetching request from relay")}return t.requests.at(0)?.status??"pending"}function m({transactionHash:e,isTestnet:r,bridgingStatus:n,setBridgingStatus:i,onSuccess:s,onFailure:o}){(0,t.useEffect)(()=>{if(e&&n){if(["delayed","waiting","pending"].includes(n)){let n=setInterval(async()=>{try{let n=await p({transactionHash:e,isTestnet:r});i(n)}catch(e){console.error(e)}},1e3);return()=>clearInterval(n)}"success"===n?s({transactionHash:e}):["refund","failure"].includes(n)&&o({error:new g(e,r)})}},[n,e,r])}class g extends i.a{constructor(e,r){super("We were unable to complete the bridging transaction. Funds will be refunded on your wallet.",void 0,i.b.TRANSACTION_FAILURE),this.relayLink=r?`https://testnets.relay.link/transaction/${e}`:`https://relay.link/transaction/${e}`}}},61110:(e,r,n)=>{n.d(r,{W:()=>y});var t=n(95155),i=n(5917),s=n(75426),o=n(12115),a=n(60308),l=n(86229),c=n(55211),d=n(76054),h=n(76939),x=n(99788);let u=(0,a.I4)(x.B)`
45  && {
46    padding: 0.75rem;
47    height: 56px;
48  }
49`,p=a.I4.div`
50  display: flex;
51  align-items: center;
52  justify-content: space-between;
53  width: 100%;
54`,m=a.I4.div`
55  display: flex;
56  flex-direction: column;
57  gap: 0;
58`,g=a.I4.div`
59  font-size: 12px;
60  line-height: 1rem;
61  color: var(--privy-color-foreground-3);
62`,j=(0,a.I4)(d.L)`
63  text-align: left;
64  margin-bottom: 0.5rem;
65`,f=(0,a.I4)(c.E)`
66  margin-top: 0.25rem;
67`,v=(0,a.I4)(l.S)`
68  && {
69    gap: 0.375rem;
70    font-size: 14px;
71  }
72`,y=({errMsg:e,balance:r,address:n,className:a,title:l,showCopyButton:c=!1})=>{let[d,x]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(d){let e=setTimeout(()=>x(!1),3e3);return()=>clearTimeout(e)}},[d]),(0,t.jsxs)("div",{children:[l&&(0,t.jsx)(j,{children:l}),(0,t.jsx)(u,{className:a,$state:e?"error":void 0,children:(0,t.jsxs)(p,{children:[(0,t.jsxs)(m,{children:[(0,t.jsx)(h.A,{address:n,showCopyIcon:!1}),void 0!==r&&(0,t.jsx)(g,{children:r})]}),c&&(0,t.jsx)(v,{onClick:function(e){e.stopPropagation(),navigator.clipboard.writeText(n).then(()=>x(!0)).catch(console.error)},size:"sm",children:(0,t.jsxs)(t.Fragment,d?{children:["Copied",(0,t.jsx)(i.A,{size:14})]}:{children:["Copy",(0,t.jsx)(s.A,{size:14})]})})]})}),e&&(0,t.jsx)(f,{children:e})]})}},69245:(e,r,n)=>{n.d(r,{A:()=>i});var t=n(12115);let i=t.forwardRef(function(e,r){let{title:n,titleId:i,...s}=e;return t.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":i},s),n?t.createElement("title",{id:i},n):null,t.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"}))})},71847:(e,r,n)=>{n.d(r,{A:()=>l});var t=n(12115);let i=e=>{let r=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,n)=>n?n.toUpperCase():r.toLowerCase());return r.charAt(0).toUpperCase()+r.slice(1)},s=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&&""!==e.trim()&&n.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 a=(0,t.forwardRef)((e,r)=>{let{color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:h,...x}=e;return(0,t.createElement)("svg",{ref:r,...o,width:i,height:i,stroke:n,strokeWidth:l?24*Number(a)/Number(i):a,className:s("lucide",c),...!d&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(x)&&{"aria-hidden":"true"},...x},[...h.map(e=>{let[r,n]=e;return(0,t.createElement)(r,n)}),...Array.isArray(d)?d:[d]])}),l=(e,r)=>{let n=(0,t.forwardRef)((n,o)=>{let{className:l,...c}=n;return(0,t.createElement)(a,{ref:o,iconNode:r,className:s("lucide-".concat(i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),l),...c})});return n.displayName=i(e),n}},75426:(e,r,n)=>{n.d(r,{A:()=>t});
72let t=(0,n(71847).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"}]])},76054:(e,r,n)=>{n.d(r,{L:()=>i});var t=n(60308);let i=t.I4.span`
73  color: var(--privy-color-foreground-3);
74  font-size: 0.75rem;
75  font-weight: 500;
76  line-height: 1.125rem; /* 150% */
77`},76775:(e,r,n)=>{n.d(r,{W:()=>o});var t=n(95155),i=n(88125),s=n(60308);let o=({children:e,theme:r})=>(0,t.jsxs)(a,{$theme:r,children:[(0,t.jsx)(i.A,{width:"20px",height:"20px",color:"var(--privy-color-icon-warning)",strokeWidth:2,style:{flexShrink:0}}),(0,t.jsx)(l,{$theme:r,children:e})]}),a=s.I4.div`
78  display: flex;
79  gap: 0.75rem;
80  background-color: var(--privy-color-warn-bg);
81  align-items: flex-start;
82  padding: 1rem;
83  border-radius: 0.75rem;
84`,l=s.I4.div`
85  color: ${e=>"dark"===e.$theme?"var(--privy-color-foreground-2)":"var(--privy-color-foreground)"};
86  font-size: 1rem;
87  font-weight: 400;
88  line-height: 1.5;
89  flex: 1;
90  text-align: left;
91`},76939:(e,r,n)=>{n.d(r,{A:()=>d});var t=n(95155),i=n(5917),s=n(75426),o=n(12115),a=n(60308),l=n(55552),c=n(86229);let d=({address:e,showCopyIcon:r,url:n,className:a})=>{let[d,p]=(0,o.useState)(!1);function m(r){r.stopPropagation(),navigator.clipboard.writeText(e).then(()=>p(!0)).catch(console.error)}return(0,o.useEffect)(()=>{if(d){let e=setTimeout(()=>p(!1),3e3);return()=>clearTimeout(e)}},[d]),(0,t.jsxs)(h,n?{children:[(0,t.jsx)(u,{title:e,className:a,href:`${n}/address/${e}`,target:"_blank",children:(0,l.D)(e)}),r&&(0,t.jsx)(c.S,{onClick:m,size:"sm",style:{gap:"0.375rem"},children:(0,t.jsxs)(t.Fragment,d?{children:["Copied",(0,t.jsx)(i.A,{size:16})]}:{children:["Copy",(0,t.jsx)(s.A,{size:16})]})})]}:{children:[(0,t.jsx)(x,{title:e,className:a,children:(0,l.D)(e)}),r&&(0,t.jsx)(c.S,{onClick:m,size:"sm",style:{gap:"0.375rem",fontSize:"14px"},children:(0,t.jsxs)(t.Fragment,d?{children:["Copied",(0,t.jsx)(i.A,{size:14})]}:{children:["Copy",(0,t.jsx)(s.A,{size:14})]})})]})},h=a.I4.span`
92  display: inline-flex;
93  align-items: center;
94  gap: 0.5rem;
95`,x=a.I4.span`
96  font-size: 14px;
97  font-weight: 500;
98  color: var(--privy-color-foreground);
99`,u=a.I4.a`
100  font-size: 14px;
101  color: var(--privy-color-foreground);
102  text-decoration: none;
103
104  &:hover {
105    text-decoration: underline;
106  }
107`},83288:(e,r,n)=>{n.d(r,{C:()=>o,S:()=>s});var t=n(95155),i=n(60308);let s=({title:e,description:r,children:n,...i})=>(0,t.jsx)(a,{...i,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:e}),"string"==typeof r?(0,t.jsx)("p",{children:r}):r,n]})});(0,i.I4)(s)`
108  margin-bottom: 24px;
109`;let o=({title:e,description:r,icon:n,children:i,...s})=>(0,t.jsxs)(l,{...s,children:[n||null,(0,t.jsx)("h3",{children:e}),r&&"string"==typeof r?(0,t.jsx)("p",{children:r}):r,i]}),a=i.I4.div`
110  display: flex;
111  flex-direction: column;
112  justify-content: flex-start;
113  align-items: flex-start;
114  text-align: left;
115  gap: 8px;
116  width: 100%;
117  margin-bottom: 24px;
118
119  && h3 {
120    font-size: 17px;
121    color: var(--privy-color-foreground);
122  }
123
124  /* Sugar assuming children are paragraphs. Otherwise, handling styling on your own */
125  && p {
126    color: var(--privy-color-foreground-2);
127    font-size: 14px;
128  }
129`,l=(0,i.I4)(a)`
130  align-items: center;
131  text-align: center;
132  gap: 16px;
133
134  h3 {
135    margin-bottom: 24px;
136  }
137`},86575:(e,r,n)=>{n.d(r,{L:()=>s});var t=n(60308);let i=(0,t.i7)`
138  from, to {
139    background: var(--privy-color-foreground-4);
140    color: var(--privy-color-foreground-4);
141  }
142
143  50% {
144    background: var(--privy-color-foreground-accent);
145    color: var(--privy-color-foreground-accent);
146  }
147`,s=(0,t.AH)`
148  ${e=>e.$isLoading?(0,t.AH)`
149          width: 35%;
150          animation: ${i} 2s linear infinite;
151          border-radius: var(--privy-border-radius-sm);
152        `:""}
153`},88172:(e,r,n)=>{n.d(r,{T:()=>i});var t=n(60308);let i=t.I4.span`
154  color: var(--privy-color-foreground);
155  font-size: 1.125rem;
156  font-weight: 600;
157  line-height: 1.875rem; /* 166.667% */
158  text-align: center;
159`},90600:(e,r,n)=>{n.d(r,{L:()=>s,V:()=>a,a:()=>o});var t=n(60308),i=n(86575);let s=t.I4.span`
160  color: var(--privy-color-foreground-3);
161  font-size: 0.875rem;
162  font-weight: 400;
163  line-height: 1.375rem; /* 157.143% */
164`,o=(0,t.I4)(s)`
165  color: var(--privy-color-accent);
166`,a=t.I4.span`
167  color: var(--privy-color-foreground);
168  font-size: 0.875rem;
169  font-weight: 500;
170  line-height: 1.375rem; /* 157.143% */
171  word-break: break-all;
172  text-align: right;
173
174  ${i.L}
175`},94213:(e,r,n)=>{n.d(r,{S:()=>_,T:()=>G,a:()=>H});var t=n(95155),i=n(12115);let s=i.forwardRef(function(e,r){let{title:n,titleId:t,...s}=e;return i.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":t},s),n?i.createElement("title",{id:t},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))});var o=n(96059);let a=i.forwardRef(function(e,r){let{title:n,titleId:t,...s}=e;return i.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":t},s),n?i.createElement("title",{id:t},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"}))});var l=n(60308),c=n(11124),d=n(86229),h=n(90600),x=n(36054),u=n(55211),p=n(76054),m=n(21165),g=n(88172),j=n(76939),f=n(61110),v=n(4687),y=n(55552),w=n(86575),b=n(24784),k=n(99788),T=n(99630),I=n(24151),A=n(76775),L=n(43687);let C=i.forwardRef(function(e,r){let{title:n,titleId:t,...s}=e;return i.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":t},s),n?i.createElement("title",{id:t},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))});var R=n(69245),E=n(16189);let S=(0,l.I4)(h.L)`
176  cursor: pointer;
177  display: inline-flex;
178  gap: 8px;
179  align-items: center;
180  color: var(--privy-color-accent);
181  svg {
182    fill: var(--privy-color-accent);
183  }
184`;var V=({iconUrl:e,value:r,symbol:n,usdValue:i,nftName:s,nftCount:o,decimals:a,$isLoading:l})=>
184{if(l)return(0,t.jsx)($,{$isLoading:l});let c=r&&i&&a?function(e,r,n){let t=parseFloat(e),i=parseFloat(n);if(0===t||0===i||Number.isNaN(t)||Number.isNaN(i))return e;let s=Math.ceil(-Math.log10(.01/(i/t))),o=Math.pow(10,s=Math.max(s=Math.min(s,r),1)),a=+(Math.floor(t*o)/o).toFixed(s).replace(/\.?0+$/,"");return Intl.NumberFormat(void 0,{maximumFractionDigits:r}).format(a)}(r,a,i):r;return(0,t.jsxs)("div",{children:[(0,t.jsxs)($,{$isLoading:l,children:[e&&(0,t.jsx)(M,{src:e,alt:"Token icon"}),o&&o>1?o+"x":void 0," ",s,c," ",n]}),i&&(0,t.jsxs)(N,{$isLoading:l,children:["$",i]})]})};let $=l.I4.span`
185  color: var(--privy-color-foreground);
186  font-size: 0.875rem;
187  font-weight: 500;
188  line-height: 1.375rem;
189  word-break: break-all;
190  text-align: right;
191  display: flex;
192  justify-content: flex-end;
193
194  ${w.L}
195`,N=l.I4.span`
196  color: var(--privy-color-foreground-2);
197  font-size: 12px;
198  font-weight: 400;
199  line-height: 18px;
200  word-break: break-all;
201  text-align: right;
202  display: flex;
203  justify-content: flex-end;
204
205  ${w.L}
206`,M=l.I4.img`
207  height: 14px;
208  width: 14px;
209  margin-right: 4px;
210  object-fit: contain;
211`,O=e=>{let{chain:r,transactionDetails:n,isTokenContractInfoLoading:i,symbol:s}=e,{action:o,functionName:a}=n;return(0,t.jsx)(k.B,{children:(0,t.jsxs)(x.a,{children:["transaction"!==o&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Action"}),(0,t.jsx)(h.V,{children:a})]}),"mint"===a&&"args"in n&&n.args.filter(e=>e).map((e,n)=>(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:`Param ${n}`}),(0,t.jsx)(h.V,{children:"string"==typeof e&&(0,b.P)(e)?(0,t.jsx)(j.A,{address:e,url:r?.blockExplorers?.default?.url,showCopyIcon:!1}):e?.toString()})]},n)),"setApprovalForAll"===a&&n.operator&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Operator"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:n.operator,url:r?.blockExplorers?.default?.url,showCopyIcon:!1})})]}),"setApprovalForAll"===a&&void 0!==n.approved&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Set approval to"}),(0,t.jsx)(h.V,{children:n.approved?"true":"false"})]}),"transfer"===a||"transferFrom"===a||"safeTransferFrom"===a||"approve"===a?(0,t.jsxs)(t.Fragment,{children:["formattedAmount"in n&&n.formattedAmount&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Amount"}),(0,t.jsxs)(h.V,{$isLoading:i,children:[n.formattedAmount," ",s]})]}),"tokenId"in n&&n.tokenId&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Token ID"}),(0,t.jsx)(h.V,{children:n.tokenId.toString()})]})]}):null,"safeBatchTransferFrom"===a&&(0,t.jsxs)(t.Fragment,{children:["amounts"in n&&n.amounts&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Amounts"}),(0,t.jsx)(h.V,{children:n.amounts.join(", ")})]}),"tokenIds"in n&&n.tokenIds&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Token IDs"}),(0,t.jsx)(h.V,{children:n.tokenIds.join(", ")})]})]}),"approve"===a&&n.spender&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Spender"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:n.spender,url:r?.blockExplorers?.default?.url,showCopyIcon:!1})})]}),("transferFrom"===a||"safeTransferFrom"===a||"safeBatchTransferFrom"===a)&&n.transferFrom&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Transferring from"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:n.transferFrom,url:r?.blockExplorers?.default?.url,showCopyIcon:!1})})]}),("transferFrom"===a||"safeTransferFrom"===a||"safeBatchTransferFrom"===a)&&n.transferTo&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Transferring to"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:n.transferTo,url:r?.blockExplorers?.default?.url,showCopyIcon:!1})})]})]})})},F=({variant:e,setPreventMaliciousTransaction:r,colorScheme:n="light",preventMaliciousTransaction:i})=>"warn"===e?(0,t.jsx)(D,{children:(0,t.jsxs)(A.W,{theme:n,children:[(0,t.jsx)("span",{style:{fontWeight:"500"},children:"Warning: Suspicious transaction"}),(0,t.jsx)("br",{}),"This has been flagged as a potentially deceptive request. Approving could put your assets or funds at risk."]})}):"error"===e?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(D,{children:[(0,t.jsx)(I.E,{theme:n,children:(0,t.jsxs)("div",{children:[(0,t.jsx)("strong",{children:"This is a malicious transaction"}),(0,t.jsx)("br",{}),"This transaction transfers tokens to a known malicious address. Proceeding may result in the loss of valuable assets."]})}),(0,t.jsxs)(z,{children:[(0,t.jsx)(T.C,{color:"var(--privy-color-error)",checked:!i,readOnly:!0,onClick:()=>r(!i)}),(0,t.jsx)("span",{children:"I understand and want to proceed anyways."})]})]})}):null,D=l.I4.div`
212  margin-top: 1.5rem;
213`,z=l.I4.div`
214  display: flex;
215  align-items: center;
216  gap: 0.5rem;
217  margin-top: 0.75rem;
218`,P=({transactionIndex:e,maxIndex:r})=>"number"!=typeof e||0===r?"":` (${e+1} / ${r+1})`,_=({img:e,submitError:r,prepareError:n,onClose:l,action:c,title:p,subtitle:f,to:w,tokenAddress:b,network:k,missingFunds:T,fee:I,from:A,cta:L,disabled:C,chain:R,isSubmitting:E,isPreparing:$,isTokenPriceLoading:N,isTokenContractInfoLoading:M,isSponsored:D,symbol:z,balance:_,onClick:H,transactionDetail
218s:B,transactionIndex:Y,maxIndex:G,onBack:Q,chainName:K,validation:X,hasScanDetails:ee,setIsScanDetailsOpen:er,preventMaliciousTransaction:en,setPreventMaliciousTransaction:et,tokensSent:ei,tokensReceived:es,isScanning:eo,isCancellable:ea,functionName:el})=>{let{showTransactionDetails:ec,setShowTransactionDetails:ed,hasMoreDetails:eh,isErc20Ish:ex}=(e=>{let[r,n]=(0,i.useState)(!1),t=!0,s=!1;return(!e||e.isErc20Ish||"transaction"===e.action)&&(t=!1),t&&(s=Object.entries(e||{}).some(([e,r])=>r&&!["action","isErc20Ish","isNFTIsh"].includes(e))),{showTransactionDetails:r,setShowTransactionDetails:n,hasMoreDetails:t&&s,isErc20Ish:e?.isErc20Ish}})(B),eu=(0,v.u)(),ep=ex&&M||$||N||eo;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.M,{onClose:l,backFn:Q}),e&&(0,t.jsx)(q,{children:e}),(0,t.jsxs)(g.T,{style:{marginTop:e?"1.5rem":0},children:[p,(0,t.jsx)(P,{maxIndex:G,transactionIndex:Y})]}),(0,t.jsx)(m.S,{children:f}),(0,t.jsxs)(x.a,{style:{marginTop:"2rem"},children:[(!!ei[0]||ep)&&(0,t.jsxs)(x.R,{children:[es.length>0?(0,t.jsx)(h.L,{children:"Send"}):(0,t.jsx)(h.L,{children:"approve"===c?"Approval amount":"Amount"}),(0,t.jsx)("div",{className:"flex flex-col",children:ei.map((e,r)=>(0,t.jsx)(V,{iconUrl:e.iconUrl,value:"setApprovalForAll"===el?"All":e.value,usdValue:e.usdValue,symbol:e.symbol,nftName:e.nftName,nftCount:e.nftCount,decimals:e.decimals},r))})]}),es.length>0&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Receive"}),(0,t.jsx)("div",{className:"flex flex-col",children:es.map((e,r)=>(0,t.jsx)(V,{iconUrl:e.iconUrl,value:e.value,usdValue:e.usdValue,symbol:e.symbol,nftName:e.nftName,nftCount:e.nftCount,decimals:e.decimals},r))})]}),B&&"spender"in B&&B?.spender?(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Spender"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:B.spender,url:R?.blockExplorers?.default?.url})})]}):null,w&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"To"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:w,url:R?.blockExplorers?.default?.url,showCopyIcon:!0})})]}),b&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Token address"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:b,url:R?.blockExplorers?.default?.url})})]}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Network"}),(0,t.jsx)(h.V,{children:k})]}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Estimated fee"}),(0,t.jsx)(h.V,{$isLoading:$||N||void 0===D,children:D?(0,t.jsxs)(J,{children:[(0,t.jsxs)(Z,{children:["Sponsored by ",eu.name]}),(0,t.jsx)(s,{height:16,width:16})]}):I})]}),eh&&!ee&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.R,{className:"cursor-pointer",onClick:()=>ed(!ec),children:(0,t.jsxs)(h.a,{className:"flex items-center gap-x-1",children:["Details"," ",(0,t.jsx)(o.A,{style:{width:"0.75rem",marginLeft:"0.25rem",transform:ec?"rotate(180deg)":void 0}})]})}),ec&&B&&(0,t.jsx)(O,{action:c,chain:R,transactionDetails:B,isTokenContractInfoLoading:M,symbol:z})]}),ee&&(0,t.jsx)(x.R,{children:(0,t.jsxs)(S,{onClick:()=>er(!0),children:[(0,t.jsx)("span",{className:"text-color-primary",children:"Details"}),(0,t.jsx)(a,{height:"14px",width:"14px",strokeWidth:"2"})]})})]}),(0,t.jsx)(y.Y,{}),r?(0,t.jsx)(u.E,{style:{marginTop:"2rem"},children:r.message}):n&&0===Y?(0,t.jsx)(u.E,{style:{marginTop:"2rem"},children:n.shortMessage??U}):null,(0,t.jsx)(F,{variant:X,preventMaliciousTransaction:en,setPreventMaliciousTransaction:et}),(0,t.jsx)(W,{$useSmallMargins:!(!n&&!r&&"warn"!==X&&"error"!==X),address:A,balance:_,errMsg:$||n||r||!T?void 0:`Add funds on ${R?.name??K} to complete transaction.`}),(0,t.jsx)(d.P,{style:{marginTop:"1rem"},loading:E,disabled:C||$,onClick:H,children:L}),ea&&(0,t.jsx)(d.E,{style:{marginTop:"1rem"},onClick:l,isSubmitting:!1,children:"Not now"}),(0,t.jsx)(d.B,{})]})},H=({img:e,title:r,subtitle:n,cta:a,instructions:l,network:f,blockExplorerUrl:w,isMissingFunds:b,submitError:k,parseError:T,total:I,swap:A,transactingWalletAddress:L,fee:C,balance:R,disabled:E,isSubmitting:V,isPreparing:$,isTokenPriceLoading:N,onClick:M,onClose:O,onBack:F,isSponsored:D})=>{let z=$||N,[P,_]=(0,i.useState)(!1),H=(0,v.u)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.M,{onClose:O,backFn:F}),e&&(0,t.jsx)(q,{children:e}),(0,t.jsx)(g.T,{style:{marginTop:e?"1.5rem":0},children:r}),(0,t.jsx)(m.S,{children:n}),(0,t.jsxs)(x.a,{style:{marginTop:"2rem",marginBottom:".5rem"},children:[(I||z)&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Amount"}),(0,t.jsx)(h.V,{$isLoading:z,children:I})]}),A&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Swap"}),(0,t.jsx)(h.V,{children:A})]}),f&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Network"}),(0,t.jsx)(h.V,{children:f})]}),(C||z||void 0!==D)&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Estimated fee"}),(0,t.jsx)(h.V,{$isLoading:z,children:D&&!z?(0,t.jsxs)(J,{children:[(0,t.jsxs)(Z,{children:["Sponsored by ",H.name]}),(0,t.jsx)(s,{height:16,width:16})]}):C})]})]}),(0,t.jsx)(x.R,{children:(0,t.jsxs)(S,{onClick:()=>_(e=>!e),children:[(0,t.jsx)("span",{children:"Advanced"}),(0,t.jsx)(o.A,{height:"16px",width:"16px",strokeWidth:"2",style:{transition:"all 300ms",transform:P?"rotate(180deg)":void 0}})]})}),P&&(0,t.jsx)(t.Fragment,{children:l.map((e,r)=>"sol-transfer"===e.type?(0,t.jsxs)(B,{children:[(0,t.jsx)(x.R,{children:(0,t.jsxs)(p.L,{children:["Transfer ",e.withSeed?"with seed":""]})}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Amount"}),(0,t.jsxs)(h.V,{children:[(0,c.NJ)({amount:e.value,decimals:e.token.decimals})," ",e.token.symbol]})]}),!!e.toAccount&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Destination"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.toAccount,url:w})})]})]},r):"spl-transfer"===e.type?(0,t.jsxs)(B,{children:[(0,t.jsx)(x.R,{children:(0,t.jsxs)(p.L,{children:["Transfer ",e.token.symbol]})}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Amount"}),(0,t.jsx)(h.V,{children:e.value.toString()})]}),!!e.fromAta&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Source"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.fromAta,url:w})})]}),!!e.toAta&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Destination"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.toAta,url:w})})]}),!!e.token.address&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Token"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.token.address,url:w})})]})]},r):"ata-creation"===e.type?(0,t.jsxs)(B,{children:[(0,t.jsx)(x.R,{children:(0,t.jsx)(p.L,{children:"Create token account"})}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Program ID"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.program,url:w})})]}),!!e.owner&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Owner"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.owner,url:w})})]})]},r):"create-account"===e.type?(0,t.jsxs)(B,{children:[(0,t.jsx)(x.R,{children:(0,t.jsxs)(p.L,{children:["Create account ",e.withSeed?"with seed":""]})}),!!e.account&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Account"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.account,url:w})})]}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Amount"}),(0,t.jsxs)(h.V,{children:[(0,c.NJ)({amount:e.value,decimals:9})," SOL"]})]})]},r):"spl-init-account"===e.type?(0,t.jsxs)(B,{children:[(0,t.jsx)(x.R,{children:(0,t.jsx)(p.L,{children:"Initialize token account"})}),!!e.account&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Account"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.account,url:w})})]}),!!e.mint&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Mint"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.mint,url:w})})]}),!!e.owner&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Owner"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.owner,url:w})})]})]},r):"spl-close-account"===e.type?(0,t.jsxs)(B,{children:[(0,t.jsx)(x.R,{children:(0,t.jsx)(p.L,{children:"Close token account"})}),!!e.source&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Source"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.source,url:w})})]}),!!e.destination&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Destination"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.destination,url:w})})]}),!!e.owner&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Owner"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.owner,url:w})})]})]},r):"spl-sync-native"===e.type?(0,t.jsxs)(B,{children:[(0,t.jsx)(x.R,{children:(0,t.jsx)(p.L,{children:"Sync native"})}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Program ID"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.program,url:w})})]})]},r):"raydium-swap-base-input"===e.type?(0,t.jsxs)(B,{children:[(0,t.jsx)(x.R,{children:(0,t.jsxs)(p.L,{children:["Raydium swap"," ",e.tokenIn&&e.tokenOut?`${e.tokenIn.symbol} → ${e.tokenOut.symbol}`:""]})}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Amount in"}),(0,t.jsx)(h.V,{children:e.amountIn.toString()})]}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Minimum amount out"}),(0,t.jsx)(h.V,{children:e.minimumAmountOut.toString()})]}),e.mintIn&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Token in"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.mintIn,url:w})})]}),e.mintOut&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Token out"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.mintOut,url:w})})]})]},r):"raydium-swap-base-output"===e.type?(0,t.jsxs)(B,{children:[(0,t.jsx)(x.R,{children:(0,t.jsxs)(p.L,{children:["Raydium swap"," ",e.tokenIn&&e.tokenOut?`${e.tokenIn.symbol} → ${e.tokenOut.symbol}`:""]})}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Max amount in"}),(0,t.jsx)(h.V,{children:e.maxAmountIn.toString()})]}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Amount out"}),(0,t.jsx)(h.V,{children:e.amountOut.toString()})]}),e.mintIn&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Token in"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.mintIn,url:w})})]}),e.mintOut&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Token out"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.mintOut,url:w})})]})]},r):"jupiter-swap-shared-accounts-route"===e.type?(0,t.jsxs)(B,{children:[(0,t.jsx)(x.R,{children:(0,t.jsxs)(p.L,{children:["Jupiter swap"," ",e.tokenIn&&e.tokenOut?`${e.tokenIn.symbol} → ${e.tokenOut.symbol}`:""]})}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"In amount"}),(0,t.jsx)(h.V,{children:e.inAmount.toString()})]}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Quoted out amount"}),(0,t.jsx)(h.V,{children:e.quotedOutAmount.toString()})]}),e.mintIn&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Token in"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.mintIn,url:w})})]}),e.mintOut&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Token out"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.mintOut,url:w})})]})]},r):"jupiter-swap-exact-out-route"===e.type?(0,t.jsxs)(B,{children:[(0,t.jsx)(x.R,{children:(0,t.jsxs)(p.L,{children:["Jupiter swap"," ",e.tokenIn&&e.tokenOut?`${e.tokenIn.symbol} → ${e.tokenOut.symbol}`:""]})}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Quoted in amount"}),(0,t.jsx)(h.V,{children:e.quotedInAmount.toString()})]}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Amount out"}),(0,t.jsx)(h.V,{children:e.outAmount.toString()})]}),e.mintIn&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Token in"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.mintIn,url:w})})]}),e.mintOut&&(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Token out"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.mintOut,url:w})})]})]},r):(0,t.jsxs)(B,{children:[(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Program ID"}),(0,t.jsx)(h.V,{children:(0,t.jsx)(j.A,{address:e.program,url:w})})]}),(0,t.jsxs)(x.R,{children:[(0,t.jsx)(h.L,{children:"Data"}),(0,t.jsx)(h.V,{children:e.discriminator})]})]},r))}),(0,t.jsx)(y.Y,{}),k?(0,t.jsx)(u.E,{style:{marginTop:"2rem"},children:k.message}):T?(0,t.jsx)(u.E,{style:{marginTop:"2rem"},children:U}):null,(0,t.jsx)(W,{$useSmallMargins:!(!T&&!k),title:"",address:L,balance:R,errMsg:$||T||k||!b?void 0:"Add funds on Solana to complete transaction."}),(0,t.jsx)(d.P,{style:{marginTop:"1rem"},loading:V,disabled:E||$,onClick:M,children:a}),(0,t.jsx)(d.B,{})]})},W=(0,l.I4)(f.W)`
219  ${e=>e.$useSmallMargins?"margin-top: 0.5rem;":"margin-top: 2rem;"}
220`,B=(0,l.I4)(x.a)`
221  margin-top: 0.5rem;
222  border: 1px solid var(--privy-color-foreground-4);
223  border-radius: var(--privy-border-radius-sm);
224  padding: 0.5rem;
225`,U="There was an error preparing your transaction. Your transaction request will likely fail.",q=l.I4.div`
226  display: flex;
227  width: 100%;
228  justify-content: center;
229  max-height: 40px;
230
231  > img {
232    object-fit: contain;
233    border-radius: var(--privy-border-radius-sm);
234  }
235`,J=l.I4.span`
236  display: inline-flex;
237  align-items: center;
238  gap: 0.3rem;
239`,Z=l.I4.span`
240  font-size: 14px;
241  font-weight: 500;
242  color: var(--privy-color-foreground);
243`,Y=()=>(0,t.jsxs)(ee,{children:[(0,t.jsx)(en,{}),(0,t.jsx)(er,{})]}),G=({transactionError:e,chainId:r,onClose:n,onRetry:s,chainType:o,transactionHash:a})=>{let{chains:l}=(0,E.u)(),[c,h]=(0,i.useState)(!1),{errorCode:x,errorMessage:u}=((e,r)=>{if("ethereum"===r)return{errorCode:e.details??e.message,errorMessage:e.shortMessage};let n=e.txSignature,t=e?.transactionMessage||"Something went wrong.";if(Array.isArray(e.logs)){let r=e.logs.find(e=>/insufficient (lamports|funds)/gi.test(e));r&&(t=r)}return{transactionHash:n,errorMessage:t}})(e,o),p=(({chains:e,chainId:r,chainType:n,transactionHash:t})=>{var i;return"ethereum"===n?e.find(e=>e.id===r)?.blockExplorers?.default.url??"https://etherscan.io":(i=t||"",`https://explorer.solana.com/tx/${i}?chain=${r}`)})({chains:l,chainId:r,chainType:o,transactionHash:a});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.M,{onClose:n}),(0,t.jsxs)(Q,{children:[(0,t.jsx)(Y,{}),(0,t.jsx)(K,{children:x}),(0,t.jsx)(X,{children:"Please try again."}),(0,t.jsxs)(es,{children:[(0,t.jsx)(ei,{children:"Error message"}),(0,t.jsx)(ea,{$clickable:!1,children:u})]}),a&&(0,t.jsxs)(es,{children:[(0,t.jsx)(ei,{children:"Transaction hash"}),(0,t.jsxs)(eo,{children:["Copy this hash to view details about the transaction on a"," ",(0,t.jsx)("u",{children:(0,t.jsx)("a",{href:p,children:"block explorer"})}),"."]}),(0,t.jsxs)(ea,{$clickable:!0,onClick:async()=>{await navigator.clipboard.writeText(a),h(!0)},children:[a,(0,t.jsx)(ed,{clicked:c})]})]}),(0,t.jsx)(et,{onClick:()=>s({resetNonce:!!a}),children:"Retry transaction"})]}),(0,t.jsx)(d.b,{})]})},Q=l.I4.div`
244  display: flex;
245  flex-direction: column;
246  align-items: center;
247  justify-content: center;
248`,K=l.I4.span`
249  color: var(--privy-color-foreground);
250  text-align: center;
251  font-size: 1.125rem;
252  font-weight: 500;
253  line-height: 1.25rem; /* 111.111% */
254  text-align: center;
255  margin: 10px;
256`,X=l.I4.span`
257  margin-top: 4px;
258  margin-bottom: 10px;
259  color: var(--privy-color-foreground-3);
260  text-align: center;
261
262  font-size: 0.875rem;
263  font-style: normal;
264  font-weight: 400;
265  line-height: 20px; /* 142.857% */
266  letter-spacing: -0.008px;
267`,ee=l.I4.div`
268  position: relative;
269  width: 60px;
270  height: 60px;
271  margin: 10px;
272  display: flex;
273  justify-content: center;
274  align-items: center;
275`,er=(0,l.I4)(R.A)`
276  position: absolute;
277  width: 35px;
278  height: 35px;
279  color: var(--privy-color-error);
280`,en=l.I4.div`
281  position: absolute;
282  width: 60px;
283  height: 60px;
284  border-radius: 50%;
285  background-color: var(--privy-color-error);
286  opacity: 0.1;
287`,et=(0,l.I4)(d.P)`
288  && {
289    margin-top: 24px;
290  }
291  transition:
292    color 350ms ease,
293    background-color 350ms ease;
294`,ei=l.I4.span`
295  width: 100%;
296  text-align: left;
297  font-size: 0.825rem;
298  color: var(--privy-color-foreground);
299  padding: 4px;
300`,es=l.I4.div`
301  width: 100%;
302  margin: 5px;
303  display: flex;
304  flex-direction: column;
305  justify-content: center;
306  align-items: center;
307`,eo=l.I4.text`
308  position: relative;
309  width: 100%;
310  padding: 5px;
311  font-size: 0.8rem;
312  color: var(--privy-color-foreground-3);
313  text-align: left;
314  word-wrap: break-word;
315`,ea=l.I4.span`
316  position: relative;
317  width: 100%;
318  background-color: var(--privy-color-background-2);
319  padding: 8px 12px;
320  border-radius: 10px;
321  margin-top: 5px;
322  font-size: 14px;
323  color: var(--privy-color-foreground-3);
324  text-align: left;
325  word-wrap: break-word;
326  ${e=>e.$clickable&&"cursor: pointer;\n  transition: background-color 0.3s;\n  padding
326-right: 45px;\n\n  &:hover {\n    background-color: var(--privy-color-foreground-4);\n  }"}
327`,el=(0,l.I4)(C)`
328  position: absolute;
329  top: 13px;
330  right: 13px;
331  width: 24px;
332  height: 24px;
333`,ec=(0,l.I4)(L.A)`
334  position: absolute;
335  top: 13px;
336  right: 13px;
337  width: 24px;
338  height: 24px;
339`,ed=({clicked:e})=>(0,t.jsx)(e?ec:el,{})},94635:(e,r,n)=>{n.r(r),n.d(r,{ErrorScreen:()=>g,ErrorScreenView:()=>m,default:()=>g});var t=n(95155),i=n(71847);let s=(0,i.A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),o=(0,i.A)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var a=n(99708),l=n(60308),c=n(4687),d=n(37684),h=n(16189),x=n(14188),u=n(55483),p=n(91920);n(12115),n(50205),n(68463),n(92253),n(72378),n(54047);let m=({error:e,allowlistConfig:r,onRetry:n,onCaptchaReset:i,onBack:l})=>{let c=((e,r)=>{if(e instanceof u.R)return{title:"Transaction failed",detail:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:e.message}),(0,t.jsxs)("span",{children:[" ","Check the"," ",(0,t.jsx)(j,{href:e.relayLink,target:"_blank",children:"refund status"}),"."]})]}),ctaText:"Try again",icon:s};if(e instanceof h.a)switch(e.privyErrorCode){case h.b.CLIENT_REQUEST_TIMEOUT:return{title:"Timed out",detail:e.message,ctaText:"Try again",icon:s};case h.b.INSUFFICIENT_BALANCE:return{title:"Insufficient balance",detail:e.message,ctaText:"Try again",icon:s};case h.b.TRANSACTION_FAILURE:return{title:"Transaction failure",detail:e.message,ctaText:"Try again",icon:s};default:return{title:"Something went wrong",detail:"Try again later",ctaText:"Try again",icon:s}}if(e instanceof d.P&&"twilio_verification_failed"===e.type)return{title:"Something went wrong",detail:e.message,ctaText:"Try again",icon:o};if(!(e instanceof h.c))return e instanceof h.e&&e.status&&[400,422].includes(e.status)?{title:"Something went wrong",detail:e.message,ctaText:"Try again",icon:s}:{title:"Something went wrong",detail:"Try again later",ctaText:"Try again",icon:s};switch(e.privyErrorCode){case h.b.INVALID_CAPTCHA:return{title:"Something went wrong",detail:"Please try again.",ctaText:"Try again",icon:s};case h.b.DISALLOWED_LOGIN_METHOD:return{title:"Not allowed",detail:e.message,ctaText:"Try another method",icon:s};case h.b.ALLOWLIST_REJECTED:return{title:r.errorTitle||"You don't have access to this app",detail:r.errorDetail||"Have you been invited?",ctaText:r.errorCtaText||"Try another account",icon:a.A};case h.b.CAPTCHA_FAILURE:return{title:"Something went wrong",detail:"You did not pass CAPTCHA. Please try again.",ctaText:"Try again",icon:null};case h.b.CAPTCHA_TIMEOUT:return{title:"Something went wrong",detail:"Something went wrong! Please try again later.",ctaText:"Try again",icon:null};case h.b.LINKED_TO_ANOTHER_USER:return{title:"Authentication failed",detail:"This account has already been linked to another user.",ctaText:"Try again",icon:s};case h.b.NOT_SUPPORTED:return{title:"This region is not supported",detail:"SMS authentication from this region is not available",ctaText:"Try another method",icon:s};case h.b.TOO_MANY_REQUESTS:return{title:"Request failed",detail:"Too many attempts.",ctaText:"Try again later",icon:s};default:return{title:"Something went wrong",detail:"Try again later",ctaText:"Try again",icon:s}}})(e,r);return(0,t.jsx)(p.S,{title:c.title,subtitle:c.detail,icon:c.icon,onBack:l,iconVariant:"error",primaryCta:{label:c.ctaText,onClick:()=>{e instanceof h.c&&(e.privyErrorCode===h.b.INVALID_CAPTCHA&&i?.(),e.privyErrorCode===h.b.ALLOWLIST_REJECTED&&r.errorCtaLink)?window.location.href=r.errorCtaLink:n?.()},variant:"error"},watermark:!0})},g={component:()=>{let{navigate:e,data:r,lastScreen:n,currentScreen:i}=(0,x.a)(),s=(0,c.u)(),{reset:o}=(0,d.a)(),a=r?.errorModalData?.previousScreen||(n===i?void 0:n);
339return(0,t.jsx)(m,{error:r?.errorModalData?.error||Error(),allowlistConfig:s.allowlistConfig,onRetry:()=>{e(a||"LandingScreen",!1)},onCaptchaReset:o})}},j=l.I4.a`
340  color: var(--privy-color-accent) !important;
341  font-weight: 600;
342`},99630:(e,r,n)=>{n.d(r,{C:()=>s});var t=n(95155),i=n(60308);let s=({className:e,checked:r,color:n="var(--privy-color-accent)",...i})=>(0,t.jsx)("label",{children:(0,t.jsxs)(o,{className:e,children:[(0,t.jsx)(l,{checked:r,...i}),(0,t.jsx)(c,{color:n,checked:r,children:(0,t.jsx)(a,{viewBox:"0 0 24 24",children:(0,t.jsx)("polyline",{points:"20 6 9 17 4 12"})})})]})});i.I4.label`
343  && {
344    cursor: pointer;
345    display: flex;
346    align-items: center;
347    gap: 0.75rem;
348    padding: 0.75rem 1rem;
349    text-align: left;
350    border-radius: 0.5rem;
351    border: 1px solid var(--privy-color-foreground-4);
352    width: 100%;
353  }
354`;let o=i.I4.div`
355  display: inline-block;
356  vertical-align: middle;
357`,a=i.I4.svg`
358  fill: none;
359  stroke: white;
360  stroke-width: 3px;
361`,l=i.I4.input.attrs({type:"checkbox"})`
362  border: 0;
363  clip: rect(0 0 0 0);
364  clippath: inset(50%);
365  height: 1px;
366  margin: -1px;
367  overflow: hidden;
368  padding: 0;
369  position: absolute;
370  white-space: nowrap;
371  width: 1px;
372`,c=i.I4.div`
373  display: inline-block;
374  width: 18px;
375  height: 18px;
376  transition: all 150ms;
377  cursor: pointer;
378  border-color: ${e=>e.color};
379  border-radius: 3px;
380  background: ${e=>e.checked?e.color:"var(--privy-color-background)"};
381
382  && {
383    /* This is necessary to override css reset for border width */
384    border-width: 1px;
385  }
386
387  ${l}:focus + & {
388    box-shadow: 0 0 0 1px ${e=>e.color};
389  }
390
391  ${a} {
392    visibility: ${e=>e.checked?"visible":"hidden"};
393  }
394`},99708:(e,r,n)=>{n.d(r,{A:()=>t});let t=(0,n(71847).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},99788:(e,r,n)=>{n.d(r,{B:()=>s,a:()=>i});var t=n(60308);let i=(0,t.AH)`
395  && {
396    border-width: 1px;
397    padding: 0.5rem 1rem;
398  }
399
400  width: 100%;
401  text-align: left;
402  border: solid 1px var(--privy-color-foreground-4);
403  border-radius: var(--privy-border-radius-md);
404  display: flex;
405  justify-content: space-between;
406  align-items: center;
407
408  ${e=>"error"===e.$state?"\n        border-color: var(--privy-color-error);\n        background: var(--privy-color-error-bg);\n      ":""}
409`,s=t.I4.div`
410  ${i}
411`}}]);

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.