1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{75557:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(38318)}])},64330:function(e,a){"use strict";a.Z={src:"/_next/static/media/navLogo.a3ed02fc.png",height:630,width:1120,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAANlBMVEVMaXGfhMP/jdHRhf+FhP6EhP+EhP6DhP7xfqPde9Pxd7/0eNT/gviFhP9zhf/xcnmHhP6EhP8eEnC1AAAAEnRSTlMAEQyYJS/VQTJeJn27FYEnr+FDkglwAAAACXBIWXMAAAdiAAAHYgE4epnbAAAALElEQVQImR3KSRIAEAwAwUEisfP/zyr63AD4AkzNrLRKzmfP1AsqMoJ7fOW7FQIA10TxDIQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:5}},3285:function(e,a,s){"use strict";s.d(a,{Z:function(){return u}});var t=s(85893),r=s(67294),i=s(24668),n=s(34829),o=s(20728),l=s(7160),c=s.n(l),d=s(67976),m=s(68914);function u(){let[e,a]=(0,r.useState)(!1),[s,l]=(0,r.useState)(""),[u,h]=(0,r.useState)(""),f=(0,r.useRef)(null),{address:_,isConnected:x}=(0,d.mA)(),y=(0,d.yL)(),{data:p}=(0,d.mx)(),[g,j]=(0,r.useState)(!1),b=(0,d.cq)({address:m.Gh.address,abi:m.Gh.abi,signerOrProvider:p||y}),A=async()=>{try{console.log("Checking user");let e=await b.checkUser(_);console.log(e),j(e)}catch(a){console.log(a)}},w=async()=>{try{if(g)console.log("User Already registered");else{console.log("Registering the user ...");let e=await b.register(u,s);
1await e.wait(),console.log(e),console.log("User registered")}}catch(a){console.log(a)}};return(0,r.useEffect)(()=>{A()},[_]),(0,t.jsxs)("div",{children:[g?(0,t.jsx)("a",{children:"Already registered"}):(0,t.jsx)("button",{onClick(){a(!e)},className:"".concat(c().btnSecondary," "),children:"Register"}),(0,t.jsx)(n.u.Root,{show:e,as:r.Fragment,children:(0,t.jsxs)(o.V,{as:"div",className:"relative z-10",initialFocus:f,onClose:a,children:[(0,t.jsx)(n.u.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-[#0c0c1764] bg-opacity-75 transition-opacity backdrop-blur-[40px]"})}),(0,t.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:(0,t.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center sm:items-center sm:p-0",children:(0,t.jsx)(n.u.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,t.jsx)(o.V.Panel,{className:"relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg",children:(0,t.jsx)("div",{className:"bg-gray-100 px-4 pt-5 pb-4 sm:p-6 sm:pb-4 sm:pl-0",children:(0,t.jsx)("div",{className:"sm:flex sm:items-start ",children:(0,t.jsxs)("div",{className:"mt-3 flex flex-col justify-center items-center text-center sm:mt-0 sm:ml-4 w-full sm:text-left",children:[(0,t.jsx)(o.V.Title,{as:"h3",className:"text-3xl mx-auto mt-2 font-semibold leading-6 mr-auto text-gray-900 px-2",children:"Enter Details"}),(0,t.jsx)("div",{className:"",children:(0,t.jsxs)("div",{className:"flex flex-col w-[350px] h-[350px] bg-gray-100 flex-wrap justify-center items-center px-6 py-4 rounded-md",children:[(0,t.jsxs)("div",{className:"mt-3 flex flex-col flex-wrap mx-auto items-start justify-between",children:[(0,t.jsx)("label",{className:"py-3 text-black",htmlFor:"",children:"Name"}),(0,t.jsx)("input",{onChange(e){l(e.target.value)},type:"text",className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-[5px] focus:ring-blue-500 focus:border-blue-500 w-72 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Please enter your name...",required:!0})]}),(0,t.jsxs)("div",{className:"mt-3 flex flex-col flex-wrap mx-auto items-start justify-between",children:[(0,t.jsx)("label",{className:"py-3 text-black",htmlFor:"",children:"Wallet address"}),(0,t.jsx)("input",{type:"text",onChange(e){h(e.target.value)},className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-[5px] focus:ring-blue-500 focus:border-blue-500 w-72 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Please enter wallet address...",required:!0})]}),(0,t.jsxs)("div",{className:" w-full flex justify-around mt-4 items-center ",children:[(0,t.jsx)(i.zx,{className:"w-[130px] py3 my-3",onClick:()=>w(),children:"Save"}),(0,t.jsx)(i.zx,{onClick(){a(!e)},ref:f,className:"w-[130px] bg-red-500 hover:bg-red-600 py3 my-3",children:"Cancel"})]})]})})]})})})})})})})]})})]})}},38318:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return p}});var t=s(85893);s(9008);var r=s(7160),i=s.n(r),n=s(38860),o=s.n(n),l=s(25675),c=s.n(l),d=s(69134),m=s.n(d),u=s(64330),h=s(41664),f=s.n(h);function _(e){let{children:a}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("nav",{className:m().navbar,children:[(0,t.jsx)("div",{className:m().logo,children:(0,t.jsx)(f(),{href:"/",children:(0,t.jsx)(c(),{src:u.Z})})}),(0,t.jsx)("ul",{children:(0,t.jsx)("li",{className:m().navLink,children:(0,t.jsx)(f(),{href:"/dashboard",children:"Dashboard"})})})]}),(0,t.jsx)("div",{className:"min-h-screen",children:a}),(0,t.jsx)("footer",{className:m().footer,children:(0,t.jsxs)("h4",{children:["Built by"," ",(0,t.jsx)("u",{children:(0,t.jsx)("a",{href:"https://twitter.com/kushagrasarathe",target:"_blankspace",rel:"noreferrer",children:"Kushagra Sarathe"})}),(0,t.jsx)("span",{children:" & "}),(0,t.jsx)("u",{children:(0,t.jsx)("a",{href:"https://twitter.com/0xdhruva",target:"_blankspace",rel:"noreferrer",children:"Dhruv Agarwal"})})]})})]})}var x=s(3285),y={src:"/_next/static/media/swiftpay.ffc1a34a.png",height:619,width:652,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAPFBMVEULCxYkN3wfDxYuHjEVGCsgQpJEF0AREBwaFSF/ImReKkx2G2pYOmGFPHt0PlhuQ3R6PnN3NGg1Lz81MUIj5UhvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAPElEQVQImTXGRxKAMAwEwXHSSg6Y8P+/woVLVwPYGBHI77lWBF6euc+rA7UlswKqLbkL+R/50ZEAcv58AUPIAZ1NQe60AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8};function p(){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(_,{children:(0,t.jsxs)("div",{className:"pt-[3rem]",children:[(0,t.jsxs)("div",{className:"".concat(i().main," pt-14"),children:[(0,t.jsxs)("div",{className:"".concat(i().left," md:pt-0 pt-14"),children:[(0,t.jsxs)("h1",{className:i().heading,children:[(0,t.jsx)("span",{className:i().color1,children:"Swift"}),(0,t.jsx)("span",{className:i().color2,children:"Fi"})]}),(0,t.jsx)("p",{children:"SwiftFi is a platform that lets you receive payments in the form of crypto by generating a unique link for every user."}),(0,t.jsx)("br",{}),(0,t.jsx)("p",{children:"SwiftFi also offers you four different payment options, Pay Now, Pay Later, Pay using EMI, Pay in Stream"}),(0,t.jsx)("br",{}),(0,t.jsxs)("p",{children:["You can also use gift cards to send money to your loved one
1s.",(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),"SwiftPay is another feature of SwiftFi that offers you a npm package which you can use in your projects and integrate different payment options all at once :D"]}),(0,t.jsxs)("div",{className:"flex items-center justify-start ".concat(i().buttons),children:[(0,t.jsx)(f(),{href:"/dashboard",children:(0,t.jsx)("button",{className:i().btnPrimary,children:"Dashboard \uD83D\uDE80"})}),(0,t.jsx)(x.Z,{})]})]}),(0,t.jsx)("div",{className:"".concat(i().right),children:(0,t.jsxs)("div",{className:" my-20 sm:my-20 lg:my-0 hover:scale-110 transition-transform ease-in-out ".concat(o().tariffCards),children:[(0,t.jsxs)("div",{className:o().economy,children:[(0,t.jsx)("h3",{children:"Create Unique Payment Links"}),(0,t.jsxs)("span",{children:["Receive payments easily by setting up unique payment links"," "]})]}),(0,t.jsxs)("div",{className:o().premiumeconomy,children:[(0,t.jsx)("h3",{children:"Send Gift Cards"}),(0,t.jsx)("span",{children:"Create Gift Cards and send them to your loved ones"})]}),(0,t.jsxs)("div",{className:o().business,children:[(0,t.jsx)("h3",{children:"Cretae Unique Payment Pages "}),(0,t.jsxs)("span",{children:["Create payment pages easily for special events and recieve money easily"," "]})]}),(0,t.jsxs)("div",{className:o().first,children:[(0,t.jsx)("h3",{children:"Choose b/w 4 Options"}),(0,t.jsxs)("span",{children:["SwiftFi offers you options like Pay Now, Pay Later, Pay EMI, Pay in Stream"," "]})]})]})})]}),(0,t.jsxs)("div",{className:"my-8 flex justify-evenly items-start flex-wrap-reverse md:flex-wrap",children:[(0,t.jsx)("div",{className:"px-4 w-[550px] hover:scale-105 transition-transform ease-in-out ".concat(i().swiftpay),children:(0,t.jsx)(c(),{className:"",src:y,alt:"swiftpay"})}),(0,t.jsxs)("div",{className:" ",children:[(0,t.jsxs)("h1",{className:"my-8 px-4 underline text-center text-3xl font-semibold",children:["SwiftPay - The Payment Component"," "]}),(0,t.jsx)("div",{className:"max-w-[500px] md:p-0 p-4 text-justify text-[17px] ",children:"SwiftFi - Payment Component to enable accepting payments in crypto with multi-chain and multi-coin support . Offer payment options like PayNow , PayLater , PayViaEMI and PayVia Stream to your payers directly from the component , powered by SwiftFi Smart Contracts deployed on Blockchain . Integrate in your Website with just few lines of Code and provide seemless experience of paying via crypto to your users."}),(0,t.jsx)("div",{className:"my-5 mx-3 md:mx-0 ",children:(0,t.jsx)("a",{target:"_blank",href:"https://github.com/SwiftFi/SwiftFiPayPackage",rel:"noopener noreferrer",children:(0,t.jsxs)("button",{className:i().btnPrimary,children:[" ","Get SwiftPay Package \uD83D\uDE0E"]})})})]})]}),(0,t.jsx)("div",{children:(0,t.jsx)("main",{className:i().features_main,children:(0,t.jsxs)("section",{className:i().features_section,children:[(0,t.jsx)("h1",{className:i().section__title,children:(0,t.jsx)("span",{children:"SwiftFi Features"})}),(0,t.jsx)("p",{className:i().section__desc,children:"SwiftFi offers variety of features to help you make and manage payments easily. We have planned to release a complete banking suite that can be used widely help us all take web3 one-step closer to mass adoption"}),(0,t.jsxs)("div",{className:i().features,children:[(0,t.jsxs)("div",{className:"".concat(i().feature," ").concat(i().feature_one),children:[(0,t.jsx)("h2",{className:i().feature__title,children:"Payment Links"}),(0,t.jsx)("p",{className:i().feature__desc,children:"You can generate unique payment links directlyfrom the dashboard and use them to receive funds in the wallet of your choice. SwiftFi also offers a in-built wallet"}),(0,t.jsx)("img",{className:i().feature__img,src:"https://kellychi22.github.io/frontend-mentor-solutions/10-four-card-feature-section/images/icon-supervisor.svg",alt:""})]}),(0,t.jsxs)("div",{className:i().wrapper,children:[(0,t.jsxs)("div",{className:"".concat(i().feature," ").concat(i().feature_two),children:[(0,t.jsx)("h2",{className:i().feature__title,children:"SwiftFi-Pay Node Package"}),(0,t.jsx)("p",{className:i().feature__desc,children:"A Node package to help you built payment features in your applications easily"}),(0,t.jsx)("img",{className:i().feature__img,src:"https://kellychi22.github.io/frontend-mentor-solutions/10-four-card-feature-section/images/icon-team-builder.svg",alt:""})]}),(0,t.jsxs)("div",{className:"".concat(i().feature," ").concat(i().feature_three),children:[(0,t.jsx)("h2",{className:i().feature__title,children:"Gift Cards"}),(0,t.jsx)("p",{className:i().feature__desc,children:"Claimable crytpo gift cards to that you can send to anyone in the world"}),(0,t.jsx)("img",{className:i().feature__img,src:"https://kellychi22.github.io/frontend-mentor-solutions/10-four-card-feature-section/images/icon-karma.svg",alt:""})]})]}),(0,t.jsxs)("div",{className:"".concat(i().feature," ").concat(i().feature_four),children:[(0,t.jsx)("h2",{className:i().feature__title,children:"Payment Pages"}),(0,t.jsx)("p",{className:i().feature__desc,children:"Payment pages to help you generate new pages directly using SwiftFi and receive money with ease"}),(0,t.jsx)("img",{className:i().feature__img,src:"https://kellychi22.github.io/frontend-mentor-solutions/10-four-card-feature-section/images/icon-calculator.svg",alt:""})]})]})]})})})]})})})}},38860:function(e){e.exports={tariffCards:"Features_tariffCards__NHA_i",economy:"Features_economy__moAcF",premiumeconomy:"Features_premiumeconomy__DfV7O",business:"Features_business__rBPNr",first:"Features_first__A56eg"}},7160:function(e){e.exports={main:"Home_main__nLjiQ",heading:"Home_heading__BTwrO",color1:"Home_color1__pUAZP",color2:"Home_color2__eE8Gj",left:"Home_left__T7LhQ",right:"Home_right__TcB_0",hero:"Home_hero__cwxAA",buttons:"Home_buttons__OcSYZ",btnPrimary:"Home_btnPrimary__h_bBi",btnSecondary:"Home_btnSecondary___O2nf",features:"Home_features__5mH2n",gradientBox:"Home_gradientBox__IrINs",profileCard:"Home_profileCard__RwNE1",gradient:"Home_gradient__koqpo",bg:"Home_bg__MDUv5",paylink:"Home_paylink__RztwY",align:"Home_align__ljodP",features_main:"Home_features_main__HZo7t",features_section:"Home_features_section__B67sf",feature:"Home_feature__ZLHfZ",feature__title:"Home_feature__title__9C2_b",feature__desc:"Home_feature__desc__0iR0C",feature__img:"Home_feature__img__fxhv9",section__title:"Home_section__title__pYt8X",section__desc:"Home_section__desc__bHU1s",feature_one:"Home_feature_one__Ky_cL",feature_two:"Home_feature_two__SA6XQ",feature_three:"Home_feature_three__NrEKC",feature_four:"Home_feature_four__d3j_x",attribution:"Home_attribution__a_9T0"}},69134:function(e){e.exports={navbar:"Layout_navbar__OuN2_",navLink:"Layout_navLink__0KN1p",logo:"Layout_logo__dBXl_",footer:"Layout_footer__mj7GQ"}},9008:function(e,a,s){s(83121)}},function(e){e.O(0,[6556,4668,3061,1327,8914,9774,2888,179],function(){return e(e.s=75557)}),_N_E=e.O()}]);
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.