1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9392],{5960:(e,l,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile-details/followers/[id]",function(){return s(80868)}])},59308:(e,l,s)=>{"use strict";s.d(l,{A:()=>o});var t=s(37876),a=s(14232),i=s(89099),n=s(96145),c=s(81220),r=s(23290);let o=e=>{var l,s;let{userDetails:o,followersList:d,otherUser:x=!1}=e,u=(0,i.useRouter)(),m=null==u||null==(l=u.query)?void 0:l.id,f=x?m:null==o||null==(s=o.user)?void 0:s.username,[p,h]=(0,a.useState)(null==d?void 0:d.followers),[v,j]=(0,a.useState)(!1),{handleFollow:w,handleUnfollow:N}=(0,r.o)(),_=async()=>{let e=x?await (0,c.pT)(m):await (0,c.pT)();if(!e.error){var l;h(null==e||null==(l=e.content)?void 0:l.followers),j(!1)}},b=async e=>{j(!0),(await N(null==e?void 0:e.id)).success?_():j(!1)},k=async e=>{j(!0),(await w(null==e?void 0:e.id)).success?_():j(!1)};return(0,t.jsxs)("div",{className:"max-w-full mx-auto space-y-5 p-3",children:[(0,t.jsxs)("div",{className:"mt-5 pl-5",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(n.In,{onClick:()=>{u.push(x?"/profile-details/".concat(m):"/profile-details/")},id:"arrow-left-icn",className:"w-5 h-5 align-middle inline-block cursor-pointer"}),(0,t.jsx)(n.DZ,{type:"h2",text:"Back",className:"text-14 text-black"}),(0,t.jsxs)("span",{className:"text-14 text-black pl-3",children:["@",f]})]}),(0,t.jsx)("div",{className:"flex items-center mt-3 space-x-2 p-5 bg-[#92CBFF] rounded-[5px]",children:(0,t.jsxs)("span",{className:"text-14 text-white pl-3",children:[null==p?void 0:p.length," follower"]})}),(0,t.jsx)("hr",{className:"my-5 pl-0 border-dividerGrey"})]}),v?(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(n.aH,{className:"text-primary"})}):(0,t.jsx)("div",{className:"pl-5 flex flex-col gap-2",children:null==p?void 0:p.map(e=>(0,t.jsxs)("div",{className:"flex items-center text-gray-500 text-xs w-full justify-between",children:[(0,t.jsxs)(n.N_,{href:"/profile-details/".concat(null==e?void 0:e.username),className:"flex items-center",children:[(0,t.jsx)(n.Zc,{src:(null==e?void 0:e.profile_pic)||"/images/profile-image.jpg",alt:"".concat(null==e?void 0:e.first_name),className:"w-12 h-12 rounded-full object-cover"}),(0,t.jsxs)("div",{className:"pl-3",children:[(0,t.jsx)(n.DZ,{type:"h2",text:"".concat(null==e?void 0:e.first_name," ").concat(null==e?void 0:e.last_name),className:"text-14 text-black"}),(0,t.jsxs)("p",{className:"text-grey text-12 mt-1",children:["@",null==e?void 0:e.username]})]})]}),!x&&((null==e?void 0:e.is_following_back)===0?(0,t.jsx)(n.$n,{onClick:()=>k(e),className:"text-14 text-black border rounded-[5px] p-2 border-[#B1B1B1]",children:"Follow back"}):(0,t.jsx)(n.$n,{onClick:()=>b(e),className:"text-14 text-black",children:"Unfollow"}))]},"index-".concat(null==e?void 0:e.id)))})]})}},80612:(e,l,s)=>{"use strict";s.d(l,{A:()=>n});var t=s(37876),a=s(77328),i=s.n(a);function n(e){let{title:l}=e;return(0,t.jsx)(i(),{children:(0,t.jsx)("title",{children:l?"".concat(l," | Velaflow"):"Velaflow"})})}},80868:(e,l,s)=>{"use strict";s.r(l),s.d(l,{__N_SSP:()=>c,default:()=>r});var t=s(37876),a=s(59308),i=s(42489),n=s(80612),c=!0;function r(e){let{userDetails:l,suggestionList:s,followersList:c,tagsList:r}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.A,{title:"Followers"}),(0,t.jsx)(i.A,{userDetails:l,tagsList:r,suggestionList:s,children:(0,t.jsx)(a.A,{userDetails:l,followersList:c,otherUser:!0})})]})}}},e=>{e.O(0,[4668,9634,2489,636,6593,8792],()=>e(e.s=5960)),_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.