var L=Object.create;var u=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var T=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty;var D=(t,r)=>{for(var n in r)u(t,n,{get:r[n],enumerable:!0})},C=(t,r,n,g)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Q(r))!q.call(t,i)&&i!==n&&u(t,i,{get:()=>r[i],enumerable:!(g=B(r,i))||g.enumerable});return t};var F=(t,r,n)=>(n=t!=null?L(T(t)):{},C(r||!t||!t.__esModule?u(n,"default",{value:t,enumerable:!0}):n,t)),N=t=>C(u({},"__esModule",{value:!0}),t);var H={};D(H,{default:()=>Y});module.exports=N(H);var v=require("@chakra-ui/image"),c=require("@chakra-ui/layout"),y=require("@chakra-ui/react"),P=require("react");var M=F(require("qrcode"),1),R=require("react"),a=require("react/jsx-runtime"),I=(t,r)=>{let n=Array.prototype.slice.call(M.default.create(t,{errorCorrectionLevel:r}).modules.data,0),g=Math.sqrt(n.length);return n.reduce((i,x,w)=>(w%g===0?i.push([x]):i[i.length-1].push(x))&&i,[])};function k({ecl:t="M",size:r=200,uri:n,clearArea:g=!1,image:i,imageBackground:x="transparent"}){let w=g?76:0,d=r-10*2,E=(0,R.useMemo)(()=>{let p=[],h=I(n,t),e=d/h.length;if([{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:m,y:l})=>{let A=(h.length-7)*e*m,f=(h.length-7)*e*l;for(let s=0;s<3;s++)p.push((0,a.jsx)("rect",{fill:s%2!==0?"var(--bad-colors-background, var(--bad-colors-background))":"var(--bad-colors-foreground)",rx:(s-2)*-5+(s===0?2:3),ry:(s-2)*-5+(s===0?2:3),width:e*(7-s*2),height:e*(7-s*2),x:A+e*s,y:f+e*s},`${s}-${m}-${l}`))}),i){let m=(h.length-7)*e*1,l=(h.length-7)*e*1;p.push((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("rect",{fill:x,rx:(0-2)*-5+2,ry:(0-2)*-5+2,width:e*(7-0*2),height:e*(7-0*2),x:m+e*0,y:l+e*0}),(0,a.jsx)("foreignObject",{width:e*(7-0*2),height:e*(7-0*2),x:m+e*0,y:l+e*0,children:(0,a.jsx)("div",{style:{borderRadius:(0-2)*-5+2,overflow:"hidden"},children:i})})]}))}let z=Math.floor((w+25)/e),S=h.length/2-z/2,$=h.length/2+z/2-1;return h.forEach((m,l)=>{m.forEach((A,f)=>{h[l][f]&&(l<7&&f<7||l>h.length-8&&f<7||l<7&&f>h.length-8||(i||!(l>S&&l<$&&f>S&&f<$))&&p.push((0,a.jsx)("circle",{cx:l*e+e/2,cy:f*e+e/2,fill:"var(--bad-colors-foreground)",r:e/3},`circle-${l}-${f}`)))})}),p},[t,d,n]);return(0,a.jsxs)("svg",{height:d,width:d,viewBox:`0 0 ${d} ${d}`,style:{width:d,height:d},children:[(0,a.jsx)("rect",{fill:"transparent",height:d,width:d}),E]})}var b=t=>t?t.replace(/\W/g,"").toLowerCase():"";var o=require("react/jsx-runtime"),O=({uri:t,selectedWallet:r})=>(0,o.jsxs)(c.Box,{children:[(0,o.jsxs)(c.Flex,{justify:"center",pos:"relative",children:[(0,o.jsx)(c.Box,{pos:"absolute",top:"50%",transform:"translateY(-50%)",children:(0,o.jsx)(v.Image,{src:`https://bandit.network/svgs/wallets.svg#${b(r?.name||"")}`,width:14,height:14})}),(0,o.jsx)(k,{uri:t,size:288,ecl:"M",clearArea:!0})]}),(0,o.jsx)(c.Text,{mb:2,mt:4,textAlign:"center",children:"Connect to your wallet"}),(0,o.jsx)(c.Text,{fontSize:14,textAlign:"center",children:"Scan this QR code from your mobile wallet or phone's camera to connect."}),b(r?.name||"")!=="walletconnect"&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y.Divider,{marginY:2}),(0,o.jsxs)(c.Box,{children:[(0,o.jsx)(c.Flex,{justify:"center",mb:2,children:(0,o.jsx)(v.Image,{src:"https://www.haha.me/images/install-button.png",h:"10",cursor:"pointer",onClick:()=>{window.open("https://join.haha.me/SANDESH-D9D3KI")}})}),(0,o.jsx)(c.Text,{textAlign:"center",fontSize:"sm",children:r?.description}),(0,o.jsx)(y.Link,{isExternal:!0,href:`${r.mobile.website}`,children:(0,o.jsx)(c.Text,{fontSize:"xs",textAlign:"center",children:"Learn more"})})]})]})]}),Y=O;
