PageSourceSearch

https://fantastic-froyo-63d537.netlify.app/_next/static/chunks/pages/claims-8b979692f0a1c8c9.js

js fantastic-froyo-63d537.netlify.app collected 2026-10-03 10:43:41 UTC 7,323 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[460],{52723:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/claims",function(){return s(36531)}])},36531:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return j}});var t=s(85893),i=s(9008),r=s.n(i),a=s(28435),c=s.n(a),o=s(69077),l=s(25078),d=s(410),m=s(13936),u=s(85285),x=s(730),p=s(71641),_=s(79144),f=s(67294),h=s(4481);function j(){let[e,n]=(0,f.useState)(),[s,i]=(0,f.useState)(),[a,l]=(0,f.useState)(),{connect:j,connectors:C,error:T,isLoading:y,pendingConnector:N}=(0,o.$4)(),{isConnected:g,address:E}=(0,o.mA)(),{config:A,error:k}=(0,o.PJ)({address:_.ANGEL_ADDRESS,abi:h.n,functionName:"claimFunds",args:[e&&e.txReference,s]}),{write:S}=(0,o.GG)(A),{loading:w,data:I}=(0,p.a)(x.GET_USER_CLAIMS,{variables:{user:E,status:1}});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r(),{children:[(0,t.jsx)("title",{children:"Angel Protocol"}),(0,t.jsx)("meta",{name:"description",content:"Angel Protocol Landing page"}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,t.jsx)("link",{rel:"icon",href:"/favicon.png"})]}),(0,t.jsx)("main",{children:g?(0,t.jsxs)("div",{className:c().claims,children:[(0,t.jsx)(m.j,{}),(0,t.jsxs)("div",{className:c().content,children:[(0,t.jsx)(u.D,{}),(0,t.jsxs)("div",{className:"whiteContent",children:[(0,t.jsx)("h3",{className:c().title,children:"All Claims"}),(0,t.jsxs)("div",{className:c().claimContainer,children:[(0,t.jsxs)("div",{className:c().claimsList,children:[I&&I.transactionEntities&&0==I.transactionEntities.length&&(0,t.jsx)("p",{style:{paddingLeft:"20px",fontSize:"20px"},children:"No Claim Available"}),I?I.transactionEntities.map(e=>(0,t.jsxs)("div",{className:a==e.id?c().claimClicked:c().claim,onClick:()=>{n({from:e.senderUserName,asset:_.ASSETS[e.asset]?_.ASSETS[e.asset]:(0,_.truncateAddr)(e.asset),txType:e.txType,amountOrTokenId:e.txType?e.amountOrTokenId:e.amountOrTokenId/1e18,narration:e.narration,txReference:e.txReference}),l(e.id)},children:[(0,t.jsx)("img",{src:_.DEFAULT_PROFILE_IMAGE}),(0,t.jsxs)("div",{className:c().info,children:[(0,t.jsx)("h3",{children:(0,_.addAngelSuffix)(e.senderUserName)}),(0,t.jsx)("p",{className:c().anotherBlue,children:_.ASSETS[e.asset]?_.ASSETS[e.asset]:(0,_.truncateAddr)(e.asset)})]}),(0,t.jsxs)("div",{className:c().amount,children:[(0,t.jsx)("h3",{children:e.txType?"Token ID":"Amount"}),(0,t.jsx)("p",{className:c().specificAmount,children:e.txType?e.amountOrTokenId:e.amountOrTokenId/1e18})]})]},e.id)):(0,t.jsx)("p",{style:{marginLeft:"20px"},children:"Getting Claims..."})]}),e&&(0,t.jsxs)("div",{className:c().claimSection,children:[(0,t.jsx)("p",{children:"From"}),(0,t.jsx)("h3",{children:e.from}),(0,t.jsx)("p",{children:"Asset"}),(0,t.jsx)("h3",{children:e.asset}),(0,t.jsx)("p",{children:e.txType?"Token ID":"Amount"}),(0,t.jsx)("h3",{children:e.amountOrTokenId}),(0,t.jsx)("p",{children:"Narration"}),(0,t.jsx)("h3",{children:e.narration}),(0,t.jsx)("p",{children:"Transaction Reference"}),(0,t.jsxs)("h3",{className:c().txRef,children:[(0,t.jsx)("p",{children:e.txReference}),(0,t.jsx)("img",{src:"/icons/copy.png",className:c().copyButton,onClick:()=>{(0,_.handleCopyClick)(e.txReference),alert("Copied To Clipboard")}})]}),(0,t.jsx)("input",{placeholder:"Claim Code",onChange:e=>i(e.target.value)}),k&&k.message&&k.message.includes("Claim Time Is Over")&&(0,t.jsx)("span",{className:"errorMsg",children:"Claim Time Is Over For Transaction"}),k&&k.message&&k.message.includes("Incorrect Claim Code")&&(0,t.jsx)("span",{className:"errorMsg",children:"Incorrect Claim Code For Transaction"}),k&&k.message&&k.message.includes("Sender Has No Username")&&(0,t.jsx)("span",{className:"errorMsg",children:"Create An Account To Claim"}),(0,t.jsx)("button",{disabled:!S,onClick:()=>S(),children:"Claim"})]})]})]})]})]}):(0,t.jsx)(d.R,{})})]})}new l.i},730:function(e,n,s){"use strict";Object.defineProperty(n,"__esModule",{value:!0});let t=s(82729),i=s(45517);function r(){let e=t._(["\n  query GetCredits($recipient: Bytes) {\n    transactionEntities(where: { recipient: $recipient }
1, first: 5) {\n      id\n      sender\n      senderUserName\n      recipient\n      recipientUserName\n      asset\n      amountOrTokenId\n      narration\n      status\n      txReference\n      time\n      txType\n    }\n  }\n"]);return r=function(){return e},e}function a(){let e=t._(["\n  query GetDebits($sender: Bytes) {\n    transactionEntities(where: { sender: $sender }, first: 5) {\n      id\n      sender\n      senderUserName\n      recipient\n      recipientUserName\n      asset\n      amountOrTokenId\n      narration\n      status\n      txReference\n      time\n      txType\n    }\n  }\n"]);return a=function(){return e},e}function c(){let e=t._(["\n  query GetBeneficiaries($sender: Bytes) {\n    beneficiaryEntities(where: { sender: $sender }) {\n      id\n      sender\n      beneficiary\n    }\n  }\n"]);return c=function(){return e},e}function o(){let e=t._(["\n  query GetUsersTransactions($user: Bytes, $beneficiary: Bytes) {\n    transactionEntities(\n      where: {\n        or: [\n          { sender: $user, recipient: $beneficiary }\n          { sender: $beneficiary, recipient: $user }\n        ]\n      }\n      orderBy: time\n      orderDirection: asc\n    ) {\n      id\n      sender\n      senderUserName\n      recipient\n      recipientUserName\n      asset\n      amountOrTokenId\n      narration\n      status\n      txReference\n      time\n      txType\n    }\n  }\n"]);return o=function(){return e},e}function l(){let e=t._(["\n  query GetUsersTransactions($user: Bytes, $status: Int) {\n    transactionEntities(\n      where: { and: [{ recipient: $user }, { status: $status }] }\n      orderBy: time\n      orderDirection: desc\n    ) {\n      id\n      sender\n      senderUserName\n      recipient\n      recipientUserName\n      asset\n      amountOrTokenId\n      narration\n      status\n      txReference\n      time\n      txType\n    }\n  }\n"]);return l=function(){return e},e}function d(){let e=t._(["\n  query GetUsersTransactions($user: Bytes) {\n    transactionEntities(\n      where: { or: [{ sender: $user }, { recipient: $user }] }\n      orderBy: time\n      orderDirection: desc\n    ) {\n      id\n      sender\n      senderUserName\n      recipient\n      recipientUserName\n      asset\n      amountOrTokenId\n      narration\n      status\n      txReference\n      time\n      txType\n    }\n  }\n"]);return d=function(){return e},e}let m=(0,i.gql)(r()),u=(0,i.gql)(a()),x=(0,i.gql)(c()),p=(0,i.gql)(o()),_=(0,i.gql)(l()),f=(0,i.gql)(d());e.exports={GET_CREDITS:m,GET_DEBITS:u,GET_ALL_USERS_TX:p,GET_BENEFICIARIES:x,GET_USER_CLAIMS:_,GET_USERS_TRANSACTIONS:f}},28435:function(e){e.exports={content:"Claims_content__izX_R",title:"Claims_title__pa_d8",claimContainer:"Claims_claimContainer__3dwwm",claimsList:"Claims_claimsList__VPfFs",claim:"Claims_claim__kOHqZ",claimClicked:"Claims_claimClicked__AeFXd",info:"Claims_info__E41Bt",anotherBlue:"Claims_anotherBlue__vT_sE",specificAmount:"Claims_specificAmount__Zw13E",amount:"Claims_amount__9o3wZ",claimSection:"Claims_claimSection__hawK7",txRef:"Claims_txRef__GAsBX",copyButton:"Claims_copyButton__DmOwY"}}},function(e){e.O(0,[281,55,774,888,179],function(){return e(e.s=52723)}),_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.