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