PageSourceSearch

https://www.u-craiova.ro/_next/static/chunks/pages/s/u/profile/[userId]/friends-ffe2a0a270c63ca3.js

js u-craiova.ro collected 2026-10-02 02:08:23 UTC 13,147 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4018],{17869:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/s/u/profile/[userId]/friends",function(){return n(61382)}])},37292:function(e,t,n){"use strict";var r=n(85893),i=n(41664),s=n.n(i);t.Z=function(e){var t,n=e.profile,i=e.myProfile,c=e.texts,a=(null===(t=n.user_profile_url.split("."))||void 0===t?void 0:t.pop())||null,o=String(a)===String(null===i||void 0===i?void 0:i.customer_id);return(0,r.jsxs)("div",{className:"social-feed-profile-details card social-card shadow-sm mt-4 social-feed-profile-details-mobile social-card-mobile",children:[(0,r.jsxs)("div",{className:"card-header d-flex justify-content-between align-items-center",children:[(0,r.jsx)("div",{children:null===c||void 0===c?void 0:c.text_profile_details}),o&&(0,r.jsx)(s(),{href:"/a/account",children:(0,r.jsx)("a",{className:"btn btn-primary btn-sm",children:c.button_modify})})]}),n&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"card-body",children:[(null===n||void 0===n?void 0:n.is_official)&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("p",{className:"card-text mb-2",children:[(0,r.jsx)("i",{className:"fas fa-check-circle social-feed-official-account",style:{fontSize:14,marginLeft:0,marginRight:6,top:2}}),(0,r.jsx)("span",{className:"profile-details-card-text",style:{fontWeight:"bold"},children:null===c||void 0===c?void 0:c.text_official_account})]})}),(0,r.jsxs)("p",{className:"card-text mb-2",children:[""!==n.sex?"".concat(n.sex).concat(""!==n.sex&&n.birthdate&&","):"",n.birthdate&&" ".concat(n.birthdate," ").concat(c.text_years)]}),n.show_member>0&&(0,r.jsx)(r.Fragment,{children:n.is_member?(0,r.jsxs)("p",{className:"card-text mb-2",children:[c.text_ddb_member,n.member]}):(0,r.jsx)(r.Fragment,{children:o?(0,r.jsxs)("p",{className:"card-text mb-2",children:[c.text_ddb_member,n.member,(0,r.jsx)("br",{}),(0,r.jsx)("small",{className:"fw-bold mt-2 mb-3 d-block",children:c.text_activate_if_member_ddb})]}):(0,r.jsxs)("p",{className:"card-text mb-2",children:[c.text_ddb_member,n.member]})})}),(0,r.jsxs)("p",{className:"card-text mb-2",children:[c.text_member_since,n.date_added]})]})})]})}},61382:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return N}});var r=n(47568),i=n(29815),s=n(20414),c=n(85893),a=n(67294),o=n(41449),d=n(37546),l=n(9008),u=n.n(l),m=n(7917),f=n(26070),h=n(95355),x=n(37292),p=n(80243),_=n(58533),v=n(50452),j=n(66435),b=n(61646),g=n(17435);var N=!0;t.default=function(e){var t,n=e.profile,l=e.friend,N=e.myProfile,y=e.session_token;(0,g.Z)({session_token:y});var w=(0,j.SJ)().nav,Z=(0,v.Ok)().sendNotification,F=(0,a.useState)(1),S=F[0],q=F[1],P=(0,a.useState)([]),k=P[0],E=P[1],C=(0,a.useState)([]),B=C[0],L=C[1],M=(0,a.useState)(!1),D=M[0],I=M[1],O=(0,a.useState)(!1),T=O[0],X=O[1],R=(0,a.useState)([]),U=R[0],z=R[1],A=(0,a.useState)(0),J=A[0],K=A[1],W=(0,a.useState)(0),G=W[0],H=W[1],Q=(0,a.useState)(0),V=Q[0],Y=Q[1],$=(0,a.useState)(!0),ee=$[0],te=$[1],ne=(0,a.useState)(!0),re=ne[0],ie=ne[1],se=(0,a.useState)(!0),ce=se[0],ae=se[1];(0,a.useEffect)((function(){de(1),le(1),ue(1)}),[]);var oe="",de=function(){var e=(0,r.Z)((function(e){var t,n;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return[4,b.Z.get("/index.php?route=account/friend/getFriends&customer_id=".concat(_e,"&filter_name=").concat(oe,"&page=").concat(null!==e&&void 0!==e?e:J+1))];case 1:return(t=r.sent().data).friends&&0!==t.friends.length?(n=1===e?(0,i.Z)(t.friends):(0,i.Z)(k).concat((0,i.Z)(t.friends)),E(n),K(J+1),[2]):(te(!1),[2])}}))}));return function(t){return e.apply(this,arguments)}}(),le=function(){var e=(0,r.Z)((function(e){var t,n,r,c,a;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return[4,b.Z.get("/index.php?route=account/friend/getFriendRequests&customer_id=".concat(_e,"&filter_name=").concat(oe,"&page=").concat(null!==e&&void 0!==e?e:G+1))];case 1:if(!(t=s.sent().data).friend_requests||0===t.friend_requests.length)return ie(!1),[2];for(n=1===e?(0,i.Z)(t.friend_requests):(0,i.Z)(B).concat((0,i.Z)(t.friend_requests)),L(n),H(G+1),r=0,c=0,a=0;a<B.length;a++)B[a].my_request?c++:r++;return I(r>0),X(c>0),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),ue=function(){var e=(0,r.Z)((function(e){var t,n;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return[4,b.Z.get("/index.php?route=account/friend/getPeople&customer_id=".concat(_e,"&filter_name=").concat(oe,"&page=").concat(null!==e&&void 0!==e?e:V+1))];case 1:return(t=r.sent().data).people&&0!==t.people.length?(n=1===e?(0,i.Z)(t.people):(0,i.Z)(U).concat((0,i.Z)(t.people)),z(n),Y(V+1),[2]):(ae(!1),[2])}}))}));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=(0,r.Z)((function(e){var t,n,r;return(0,s.__generator)(this,(function(i){switch(i.label){case 0:return(t=new FormData).append("customer_id",String(e)),[4,b.Z.post("/index.php?route=account/friend/confirmFriend",t,{})];case 1:return n=i.sent(),(r=n.data).error?((0,d.P)(r.error),[2]):(r.success&&((0,d.b)(r.success),xe(),Z(e,"friend_confirm")),[2])}}))}));return function(t){return e.apply(this,arguments)}}(),fe=function(){var e=(0,r.Z)((function(e){var t,n,r;return(0,s.__generator)(this,(function(i){switch(i.label){case 0:return(t=new FormData).append("customer_id",String(e)),[4,b.Z.post("/index.php?route=account/friend/removeFriend",t,{})];case 1:return n=i.sent(),(r=n.data).error?((0,d.P)(r.error),[2]):(r.success&&((0,d.b)(r.success),xe()),[2])}}))}));return function(t){return e.apply(this,arguments)}}(),he=function(){var e=(0,r.Z)((function(e){var t,n,r;return(0,s.__generator)(this,(function(i){switch(i.label){case 0:return(t=new FormData).append("customer_id",String(e)),[4,b.Z.post("/index.php?route=account/friend/addFriend",t,{})];case 1:return n=i.sent(),(r=n.data).success&&((0,d.b)(r.success),xe(),Z(e,"friend_request")),r.error&&(0,d.P)(r.error),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),xe=function(){E([]),L([]),z([]),I(!1),X(!1),K(0),H(0),Y(0),te(!0),ie(!0),ae(!0),de(1),le(1),ue(1)},pe=function(){var e=(0,r.Z)((function(){var e,t;return(0,s.__generator)(this,(function(n){return e=document.getElementById("filter-friend"),t=e.value,oe=t,1==S?de(1):2==S?le(1):3==S&&ue(1),[2]}))}
1));return function(){return e.apply(this,arguments)}}(),_e=(null===(t=n.user_profile_url.split("."))||void 0===t?void 0:t.pop())||null,ve=String(_e)===String(null===N||void 0===N?void 0:N.customer_id);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(u(),{children:[(0,c.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=utf-8"}),(0,c.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,c.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),(0,c.jsx)("title",{children:n.head_conf.meta_title}),(0,c.jsx)("meta",{name:"description",content:n.head_conf.meta_description}),(0,c.jsx)("meta",{property:"og:image:width",content:"400"}),(0,c.jsx)("meta",{property:"og:image:height",content:"400"}),(0,c.jsx)("meta",{property:"og:title",content:n.head_conf.fb_title}),(0,c.jsx)("meta",{property:"og:type",content:"website"}),(0,c.jsx)("meta",{property:"og:site_name",content:n.head_conf.fb_site_name}),(0,c.jsx)("meta",{property:"og:image",content:n.head_conf.fb_image}),(0,c.jsx)("meta",{property:"og:url",content:"".concat(n.head_conf.fb_url,"/friends")}),(0,c.jsx)("meta",{property:"og:description",content:n.head_conf.fb_description})]}),(0,c.jsx)(m.Z,{}),(0,c.jsx)("main",{id:"content",children:(0,c.jsxs)("div",{className:"container mb-4",children:[(0,c.jsx)("div",{className:"row",children:(0,c.jsx)("div",{className:"col-12 mt-4 mt-0-mobile container-mobile",children:(0,c.jsx)(h.Z,{profile:n,myProfile:N,header:null===w||void 0===w?void 0:w.header,active:"Prieteni",texts:n.texts})})}),(0,c.jsxs)("div",{className:"row row-half",children:[(0,c.jsx)("div",{className:"col-lg-3 col-12 col-half container-mobile",children:(0,c.jsx)(x.Z,{profile:n,myProfile:N,texts:n.texts})}),(0,c.jsx)("div",{className:"col-lg-9 col-12 col-half mb-4 mb-0-mobile container-mobile",children:(0,c.jsxs)("div",{className:"social-feed-profile-details card social-card shadow-sm mt-4 social-card-mobile mt-0-mobile mb-4",children:[(0,c.jsxs)("div",{className:"card-header header-with-options d-flex justify-content-between align-items-center",children:[(0,c.jsxs)("div",{className:"header-with-search-profile",children:[(0,c.jsx)("div",{children:1==S?n.texts.text_friends:2==S?n.texts.text_requests:3==S?n.texts.text_supporters:(0,c.jsx)(c.Fragment,{})}),(0,c.jsxs)("div",{className:"profile-search-with-icon",children:[(0,c.jsx)("input",{type:"text",id:"filter-friend",name:"filter_friend",className:"form-control",placeholder:n.texts.button_search_with_dots,onKeyUp:pe}),(0,c.jsx)("i",{id:"filter-friends-toggle",className:"fas fa-search",onClick:pe})]})]}),(0,c.jsx)("div",{className:"buttons-header-with-options",children:ve&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"btn btn-outline-secondary btn-sm ms-2 ".concat(1==S&&"active"),onClick:function(){q(1),de(1)},children:[n.texts.text_friends," (",l.total_friends,")"]}),(0,c.jsx)("div",{className:"btn btn-outline-secondary btn-sm ms-2 ".concat(2==S&&"active"),onClick:function(){q(2),le(1)},children:n.texts.text_requests}),(0,c.jsx)("div",{className:"btn btn-outline-secondary btn-sm ms-2 ".concat(3==S&&"active"),onClick:function(){q(3),ue(1)},children:n.texts.text_supporters})]})})]}),1==S?(0,c.jsx)("div",{className:"card-body",children:(0,c.jsx)("div",{className:"cont-list-friends-inf",children:k?0===(null===k||void 0===k?void 0:k.length)?(0,c.jsx)("div",{className:"d-flex justify-content-center flex-column align-items-center mt-4 mb-4",children:(0,c.jsx)("span",{className:"mt-4",children:n.texts.text_no_friends})}):(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(_.Z,{dataLength:k.length,next:de,hasMore:ee,loader:(0,c.jsx)(o.Z,{height:200}),style:{overflow:"visible"},children:k.map((function(e,t){return(0,c.jsx)("div",{className:"col-md-6 col-12 col-user-friends-item",children:(0,c.jsx)(p.Z,{user:e,view_position:"social",showButtons:!0,myProfile:N,addFriend:function(){return he(e.friend_id)},confirmFriend:function(){return me(e.friend_id)},removeFriend:function(){return fe(e.friend_id)},texts:l.texts})},t)}))})}):(0,c.jsx)(o.Z,{height:300})})}):2==S?(0,c.jsx)("div",{className:"card-body",children:(0,c.jsx)("div",{className:"cont-list-friends-inf",children:B?0===(null===B||void 0===B?void 0:B.length)?(0,c.jsx)("div",{className:"d-flex justify-content-center flex-column align-items-center mt-4 mb-4",children:(0,c.jsx)("span",{className:"mt-4",children:n.texts.text_no_requests})}):(0,c.jsxs)(c.Fragment,{children:[D&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"header-with-search-profile",children:(0,c.jsx)("strong",{children:n.texts.text_received_requests})}),(0,c.jsx)("hr",{}),(0,c.jsx)(_.Z,{dataLength:B.length,next:le,hasMore:re,loader:(0,c.jsx)(o.Z,{height:200}),style:{overflow:"visible"},children:B.map((function(e,t){if(!e.my_request)return(0,c.jsx)("div",{className:"col-md-6 col-12 col-user-friends-item",children:(0,c.jsx)(p.Z,{user:e,view_position:"social",showButtons:!0,myProfile:N,addFriend:function(){return he(e.friend_id)},confirmFriend:function(){return me(e.friend_id)},removeFriend:function(){return fe(e.friend_id)},texts:l.texts})},t)}))})]}),T&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("hr",{}),(0,c.jsx)("div",{className:"header-with-search-profile",children:(0,c.jsx)("strong",{children:n.texts.text_sent_requests})}),(0,c.jsx)("hr",{}),(0,c.jsx)(_.Z,{dataLength:B.length,next:le,hasMore:re,loader:(0,c.jsx)(o.Z,{height:200}),style:{overflow:"visible"},children:B.map((function(e,t){if(e.my_request)return(0,c.jsx)("div",{className:"col-md-6 col-12 col-user-friends-item",children:(0,c.jsx)(p.Z,{user:e,view_position:"social",showButtons:!0,myProfile:N,addFriend:function(){return he(e.friend_id)},confirmFriend:function(){return me(e.friend_id)},removeFriend:function(){return fe(e.friend_id)},texts:l.texts})},t)}))})]})]}):(0,c.jsx)(o.Z,{height:300})})}):(0,c.jsx)("div",{className:"card-body",children:(0,c.jsx)("div",{className:"cont-list-friends-inf",children:U?0===(null===U||void 0===U?void 0:U.length)?(0,c.jsx)("div",{className:"d-flex justify-content-center flex-column align-items-center mt-4 mb-4",children:(0,c.jsx)("span",{className:"mt-4",children:n.texts.text_no_person})}):(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(_.Z,{dataLength:U.length,next:ue,hasMore:ce,loader:(0,c.jsx)(o.Z,{height:200}),style:{overflow:"visible"},children:U.map((function(e,t){return(0,c.jsx)("div",{className:"col-md-6 col-12 col-user-friends-item",children:(0,c.jsx)(p.Z,{user:e,view_position:"social",showButtons:!0,myProfile:N,addFriend:function(){return he(e.friend_id)},confirmFriend:function(){return me(e.friend_id)},removeFriend:function(){return fe(e.friend_id)},texts:l.texts})},t)}))})}):(0,c.jsx)(o.Z,{height:300})})})]})})]})]})}),(0,c.jsx)(f.Z,{})]})}}},function(e){e.O(0,[3996,5675,9127,3663,2689,3863,7917,6070,8561,264,5355,9774,2888,179],(function(){return t=17869,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.