1"use strict";(self.webpackChunkzkcodex=self.webpackChunkzkcodex||[]).push([[8506],{13826:(e,t,a)=>{a.d(t,{y:()=>r});const r=[{name:"Gas.zip",link:"https://www.gas.zip/",icon:"https://pbs.twimg.com/profile_images/1750310657680101376/HEtUyTZy_400x400.jpg",type:["Bridge"]},{name:"Relay",link:"https://relay.link",icon:"https://pbs.twimg.com/profile_images/1960334543052816384/ejODKCzq_400x400.jpg",type:["Bridge"]},{name:"Jumper",link:"https://jumper.exchange",icon:"https://dashboard-assets.dappradar.com/document/22780/jumperexchange-dapp-exchanges-22780-logo_ecabf0c81bb0271db12615535369791f.png",type:["Router"]},{name:"Stargate",link:"https://stargate.finance/",icon:"https://dashboard-assets.dappradar.com/document/18305/stargatefinance-dapp-defi-ethereum-logo_66dc9532020488c50870b5dae3e34654.png",type:["Bridge"]},{name:"SuperBridge",link:"https://superbridge.app/",icon:"https://pbs.twimg.com/profile_images/1891417040399048705/g_qJg56l_400x400.jpg",type:["Bridge"]},{name:"Portal",link:"https://portalbridge.com",icon:"https://pbs.twimg.com/profile_images/1927411080172593152/n_qpHIq7_400x400.jpg",type:["Bridge"]},{name:"Rhino",link:"https://app.rhino.fi/bridge?refId=PG_zkCodex",icon:"https://pbs.twimg.com/profile_images/1938213012181078016/luFTCyEW_400x400.jpg",type:["Bridge"]},{name:"Bungee",link:"https://www.bungee.exchange",icon:"https://dashboard-assets.dappradar.com/document/14871/bungee-dapp-defi-14871-logo_5fd47dd82d10f6957111b069833a7504.png",type:["Router"]},{name:"Across",link:"https://app.across.to/bridge?ref=0xEAa823AB4C4eE00283d8ed7be713ddf8A5ba0Fac",icon:"https://pbs.twimg.com/profile_images/1962922084637523969/vaBp-d_o_400x400.jpg",type:["Bridge"]},{name:"Owlto",link:"https://owlto.finance/?ref=0xEAa823AB4C4eE00283d8ed7be713ddf8A5ba0Fac",icon:"https://pbs.twimg.com/profile_images/1886736859054923778/Iv098oCX_400x400.jpg",type:["Bridge"]},{name:"Transit",link:"https://swap.transit.finance/",icon:"https://pbs.twimg.com/profile_images/1582571197652701184/k6-dRTK6_400x400.jpg",type:["Bridge"]},{name:"LayerSwap",link:"https://www.layerswap.io",icon:"https://dashboard-assets.dappradar.com/document/44959/layerswap-dapp-defi-44959-logo_b89e707bd7b84f4852158beb246ec33c.png",type:["Bridge"]},{name:"Symbiosis",link:"https://symbiosis.finance/",icon:"https://dashboard-assets.dappradar.com/document/11035/symbiosisfinance-dapp-defi-ethereum-logo_8a0e4f55704185a3f977d5e884acbe2a.png",type:["Bridge"]},{name:"XY Finance",link:"https://www.xy.finance",icon:"https://dashboard-assets.dappradar.com/document/14775/xyfinance-dapp-exchanges-ethereum-logo_11504a8f8989d47c2776cda30ad9ddbb.png",type:["Router"]},{name:"cBridge",link:"https://cbridge.celer.network/",icon:"https://cbridge.celer.network/static/media/cbridgeLogo.f390be1a84b83fd0de9766ac8ca7ff80.svg",type:["Bridge"]},{name:"Squid Router",link:"https://app.squidrouter.com/",icon:"https://dashboard-assets.dappradar.com/document/42643/squidrouter-dapp-exchanges-42643-logo_e41b5bbf7b8e52941fc2e22d9c0f072f.png",type:["Router"]},{name:"deBridge",link:"https://app.debridge.finance/r/22613",icon:"https://dashboard-assets.dappradar.com/document/13742/debridge-dapp-defi-ethereum-logo_1cb1b32c27e81fa655f7ea9b6da007a7.png",type:["Bridge"]},{name:"Orbiter",link:"https://orbiter.finance",icon:"https://pbs.twimg.com/profile_images/1880886737221664768/_uBH9pgt_400x400.jpg",type:["Bridge"]},{name:"Rango Exchange",link:"https://rango.vip/a/gL1NaW",icon:"https://dashboard-assets.dappradar.com/document/46080/rangoexchange-dapp-exchanges-46080-logo_e6c7199011c49773e778ddc3c150a99a.png",type:["Router"]},{name:"Synapse",link:"https://synapseprotocol.com",icon:"https://pbs.twimg.com/profile_images/1692635184837836800/uZB0CnEG_400x400.jpg",type:["Bridge"]},{name:"Chainspot",link:"https://app.chainspot.io/",icon:"https://dashboard-assets.dappradar.com/document/29295/chainspotio-dapp-exchanges-29295-logo_d7c6f77baf5c36acda858f32f1f2948b.png",type:["Router"]}]},48506:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var r=a(9950),s=a(47465),n=a(13826),i=a(38542),o=a(72828),d=a(86817),c=a(35887),p=a(42074),l=a(28429),g=
1a(44414);const m=()=>{const{theme:e}=(0,r.useContext)(s.D),[t]=(0,p.ok)(),a=(0,l.zy)(),m=(0,r.useRef)(null),[h,b]=(0,r.useState)(()=>null!==t.get("sweeper")?"sweeper":"bridge"),x=(0,r.useMemo)(()=>{const e=t.get("fromChain"),a=t.get("fromToken"),r=t.get("toAddress");return e&&a?{fromChain:parseInt(e),fromToken:a,toAddress:r||void 0}:null},[t]),f=(0,r.useMemo)(()=>x?{fromChain:x.fromChain,fromToken:x.fromToken,toAddress:x.toAddress}:{},[x]);(0,r.useEffect)(()=>{x&&(m.current=a.pathname+a.search)},[x,a]);const u=(0,r.useRef)(!0);(0,r.useEffect)(()=>{null!==t.get("sweeper")&&u.current&&b("sweeper"),u.current&&(u.current=!1)},[t]);const y=(0,r.useCallback)(e=>{u.current=!1,b(e)},[]),w=(0,r.useCallback)(e=>{c.oR.success("Bridge transaction completed successfully!")},[]),k=(0,r.useCallback)((e,t,a)=>{console.error("[Bridge] Transaction failed:",e,t);const r=a||"Bridge transaction failed. Please try again.";c.oR.error(r,{duration:5e3})},[]),j=(0,r.useMemo)(()=>({onRouteExecutionCompleted:w,onRouteExecutionFailed:k}),[w,k]);return(0,g.jsx)("div",{className:"min-h-screen bg-transparent",children:(0,g.jsxs)("div",{className:"container mx-auto px-4 py-2",children:[(0,g.jsxs)("div",{className:"mb-4",children:[(0,g.jsx)("h1",{className:"text-xl sm:text-2xl md:text-3xl font-bold text-center "+("dark"===e?"text-white":"text-gray-900"),children:"Cross-Chain Bridges"}),(0,g.jsx)("p",{className:"text-center mb-6 "+("dark"===e?"text-gray-400":"text-gray-600"),children:"Bridge tokens between chains or consolidate multiple tokens to one chain"}),(0,g.jsx)("div",{className:"flex justify-center mb-4",children:(0,g.jsxs)("div",{className:"inline-flex rounded-lg p-1 border "+("dark"===e?"bg-transparent border-gray-800":"bg-gray-100 border-gray-200"),children:[(0,g.jsx)("button",{onClick:()=>y("bridge"),className:"px-6 py-2 rounded-md font-medium transition-colors "+("bridge"===h?"bg-blue-600 text-white shadow-sm":"dark"===e?"text-gray-300 hover:text-white hover:bg-gray-700":"text-gray-600 hover:text-gray-900 hover:bg-gray-200"),children:"Bridge"}),(0,g.jsx)("button",{onClick:()=>y("sweeper"),className:"px-6 py-2 rounded-md font-medium transition-colors animate-pulse "+("sweeper"===h?"bg-blue-600 text-white shadow-sm":"dark"===e?"text-yellow-500 hover:text-white hover:bg-gray-700":"text-yellow-500 hover:text-yellow-900 hover:bg-yellow-200"),children:"Sweeper"})]})})]}),(0,g.jsx)("div",{className:" relative",children:"bridge"===h?(0,g.jsx)(i.q,{integrator:"zkcodex",config:(0,o.b6)("PAGE",e,f),...j}):(0,g.jsx)(d.A,{})}),"bridge"===h&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"mb-8 mt-16 relative z-0",children:[(0,g.jsx)("div",{className:"flex items-center "+("dark"===e?"text-gray-600":"text-gray-400"),children:(0,g.jsx)("div",{className:"w-full border-t "+("dark"===e?"border-gray-800":"border-gray-200")})}),(0,g.jsx)("div",{className:"relative flex justify-center text-sm -mt-3",children:(0,g.jsx)("span",{className:"px-4 "+("dark"===e?"bg-gray-900 text-gray-400":"bg-white text-gray-500"),children:"Other Swap & Bridge Options"})})]}),(0,g.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 gap-3 mb-8 relative z-0",children:n.y.map((t,a)=>(0,g.jsx)("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"p-2 rounded-lg border "+("dark"===e?"bg-gray-900/30 border-gray-800":"bg-white border-gray-200"),children:(0,g.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,g.jsxs)("div",{className:"w-8 h-8 rounded-lg overflow-hidden bg-gray-100 dark:bg-gray-800 flex items-center justify-center flex-shrink-0",children:[(0,g.jsx)("img",{src:t.icon,alt:t.name,className:"w-8 h-8 object-cover rounded-lg",onError:e=>{e.target.style.display="none",e.target.nextSibling.style.display="flex"}}),(0,g.jsx)("div",{className:"hidden w-8 h-8 bg-gradient-to-br from-indigo-500 to-purple-600 rounded-lg items-center justify-center",children:(0,g.jsx)("span",{className:"text-white font-bold text-xs",children:t.name.charAt(0)})})]}),(0,g.jsx)("div",{className:"flex-1 min-w-0",children:(0,g.jsx)("h3",{className:"text-sm font-medium truncate "+("dark"===e?"text-white":"text-gray-900"),children:t.name})})]})},a))})]})]})})}}}]);
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.