PageSourceSearch

https://irfaqraza.com/_next/static/chunks/pages/user/invite-3b68582485c0122b.js

js irfaqraza.com collected 2026-09-25 22:44:26 UTC 4,374 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[983],{1170:(e,l,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/invite",function(){return i(70002)}])},70002:(e,l,i)=>{"use strict";i.r(l),i.d(l,{default:()=>H});var n=i(37876),r=i(14232),a=i(89099),t=i(2171),s=i(18847),o=i.n(s),d=i(16495),u=i(39521),c=i(57994),x=i(21639),f=i(83872),p=i(48230),h=i.n(p),v=i(54587),m=i.n(v),j=i(89311),P=i(4755),w=i(28857),y=i(63819),N=i(34321);let A=e=>{var l;let{className:i=""}=e,[a,s]=(0,r.useState)(!1),[o,u]=(0,r.useState)(null),[c,p]=(0,r.useState)(!1),{appData:v}=(0,t.useSelector)(e=>e.AppData),A=(null==v?void 0:v.profileHandle)?d.APP_PATHS.referralSignup(null==v?void 0:v.profileHandle):null,b=async()=>{await navigator.clipboard.writeText(A),s(!0),setTimeout(()=>s(!1),1e3)},H=async()=>{p(!0);try{var e,l,i,n,r;let a=await N.BT.getJoinedUsers({limit:50}),t=(null==a||null==(i=a.data)||null==(l=i.data)||null==(e=l.joinedUsers)?void 0:e.slice(0,16))||[],s=(null==a||null==(r=a.data)||null==(n=r.data)?void 0:n.totalCount)||0;u({users:t,totalCount:s})}catch(e){}finally{p(!1)}};return(0,r.useEffect)(()=>{H()},[]),(0,n.jsx)("div",{className:"px-5 pt-16 pb-8 flex flex-col justify-between text-center ".concat(i),children:(0,n.jsxs)("div",{className:"p-6 space-y-6 text-center",children:[(0,n.jsx)(m(),{width:180,height:180,src:d.CDNImage.inviteModalImage,alt:"Your personalized invite link!",className:"mx-auto dark:invert"}),(0,n.jsxs)("div",{children:[(0,n.jsxs)(j.default.NormalText,{xxxl:!0,as:"h1",className:"font-instrument mb-2",children:["Your personalized ",(0,n.jsx)("i",{children:"invite link!"})]}),(0,n.jsx)(j.default.NormalText,{sm:!0,textColor:"text-gray-700",className:"text-center max-w-[60%] mx-auto",children:"Grab the invite link below and send it to your friends, coworkers, and anyone else you think should join Peerlist!"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(x.Ay.Carbon,{className:"mx-auto mb-2",onClick:b,iconLeft:a?(0,n.jsx)("span",{className:"text-green-300",children:(0,n.jsx)(f.CheckIcon,{size:16})}):(0,n.jsx)(f.CopyIcon,{size:16}),children:a?"Link Copied":"Copy Invite Link"}),(0,n.jsx)(j.default.NormalText,{xs:!0,className:"text-center select-all cursor-default",children:A})]}),c?null:(0,n.jsxs)("div",{className:"space-y-2 pb-6 max-w-[60%] mx-auto",children:[(null==o||null==(l=o.users)?void 0:l.length)>0?(0,n.jsx)("div",{className:"flex items-center justify-center flex-wrap gap-2.5",children:null==o?void 0:o.users.map(e=>(0,n.jsx)(w.A,{profileHandle:null==e?void 0:e.profileHandle,children:(0,n.jsx)(h(),{"aria-label":y.default.getDisplayName(e),prefetch:!1,href:d.APP_PATHS.userProfile({profileHandle:null==e?void 0:e.profileHandle,absolute:!0}),children:(0,n.jsx)(P.Ay.Smaller,{image:null==e?void 0:e.profilePicture,verified:null==e?void 0:e.verified,idVerified:null==e?void 0:e.idVerifiedAt})})},null==e?void 0:e.id))}):null,(null==o?void 0:o.totalCount)?(0,n.jsxs)(j.default.MutedText,{children:[(0,n.jsx)("b",{children:null==o?void 0:o.totalCount})," people joined with your link."]}):(0,n.jsx)(j.default.MutedText,{children:"No one joined with your invite link (yet)!"})]})]})})},b=()=>{let e=(0,a.useRouter)(),l=(0,u.A)(),i=(0,t.useSelector)(e=>e.PrimaryUserData.primaryUserData),s=(null==i?void 0:i.profileHandle)?d.APP_PATHS.referralSignup(i.profileHandle):"";return((0,r.useEffect)(()=>{!l&&(null==i?void 0:i.profileHandle)&&((null==i?void 0:i.profileHandle)?e.replace("".concat(d.APP_PATHS.userProfile({profileHandle:i.profileHandle,absolute:!1}),"/?showInvite=1")):e.replace(d.APP_PATHS.scroll))},[l,e,null==i?void 0:i.profileHandle]),l)?(0,n.jsxs)(c.A.Center,{children:[(0,n.jsx)(c.A.CenterTop,{internalPage:!0,className:"border-b border-primaryBorder",children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(x.Ay.CarbonOutline,{circular:!0,onClick:()=>{var l,i;if((null==(i=window)||null==(l=i.history)?void 0:l.length)>1)return void e.back();e.push(d.APP_PATHS.scroll)},children:(0,n.jsx)(f.ArrowLeftIcon,{size:16})}),(0,n.jsx)(c.A.PageHeading,{as:"p",children:"Invite Friends"})]})}),(0,n.jsx)("div",{className:"h-[calc(100dvh-128px)] flex flex-col overflow-hidden overflow-hidden-for-modal",children:(0,n.jsx)(A,{inviteLink:s,className:"h-full flex-grow",isMobile:l})})]}):null},H=o()(()=>Promise.resolve(b),{ssr:!1})}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=1170)),_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.