PageSourceSearch

https://simplitaught.com/_next/static/chunks/pages/discussions/@me-79e1132bfd1977ec.js

js simplitaught.com collected 2026-10-09 00:50:25 UTC 4,800 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1032],{12344:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/discussions/@me",function(){return t(90811)}])},90811:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return E}});var a=t(85893),l=t(11163),i=t(70404),n=t(71365),r=t(86010),c=t(89087),d=t(41085),o=t(60881),_=t.t(o,2),u=t(31001),p=t(99403),h=t(6094),m=t(51020),x=t(67294),g=t(5152),v=t.n(g),f=t(88767),y=t(10136),j=t.n(y);let b=v()(()=>Promise.all([t.e(296),t.e(9232)]).then(t.bind(t,89232)),{loadableGenerated:{webpack:()=>[89232]},ssr:!1});var w=()=>{let e=(0,f.useQueryClient)(),s=(0,d.C)(e=>e.auth.currentUser),[t,l]=(0,x.useState)(""),[i,n]=(0,x.useState)([]),[o,g]=(0,x.useState)([]),v=e=>{l(e),c.Z.get("/users/search?query=".concat(e,"&limit=20")).then(e=>{n(e.data)}).catch(e=>{n([])})};(0,x.useEffect)(()=>{let s=e.getQueryData("direct_messages");g(i.filter(e=>!(s&&s.some(s=>s.receiver_id===(null==e?void 0:e.userId)))))},[i]);let y=(0,f.useMutation)(e=>c.Z.post("/channels/create-direct",{user_id:e}).then(e=>e.data),{onSuccess:s=>{e.fetchQuery({queryKey:"direct_messages"})}}),w=o.map(t=>({label:"".concat(null==t?void 0:t.name," ").concat((null==s?void 0:s.id)===(null==t?void 0:t.userId)?"(You)":""),template:(s,l)=>{let i=e.getQueryData("direct_messages"),n=i&&i.some(e=>e.receiver_id===(null==t?void 0:t.userId));return(0,a.jsxs)("a",{className:(0,r.Z)(l.className,j().user_item,"flex align-items-center justify-content-between w-full"),target:s.target,onClick:l.onClick,style:{padding:"3px 10px"},children:[(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,a.jsx)("span",{className:(0,r.Z)(l.iconClassName),children:(null==t?void 0:t.image)?(0,a.jsx)(u.q,{size:"normal",style:{width:"35px",height:"35px",background:"#eee"},image:null==t?void 0:t.image,imageAlt:null==t?void 0:t.name}):(0,a.jsx)(u.q,{size:"normal",style:{width:"35px",height:"35px",background:"#eee"},icon:"pi pi-user"})}),(0,a.jsx)("span",{className:l.labelClassName,children:s.label})]}),n?(0,a.jsx)(p.z,{label:"Added",type:"button",className:"p-button-primary",style:{height:30,fontSize:14,fontWeight:600,padding:"0px 6px",minWidth:80},disabled:!0}):(0,a.jsx)(p.z,{label:"Add",type:"button",className:"p-button-primary p-button-outlined",style:{height:30,fontSize:14,fontWeight:600,padding:"0px 6px",minWidth:80},onClick:()=>{y.mutate(+(null==t?void 0:t.userId))}})]})}}));return(0,a.jsx)("div",{style:{paddingTop:"60px"},children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{className:(0,r.Z)("p-input-icon-left",j().serach_input),children:[(0,a.jsx)("i",{className:"pi pi-search"}),(0,a.jsx)(h.o,{value:t,onChange:e=>v(e.target.value),placeholder:"Find members"})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),w.length>0?(0,a.jsx)("div",{className:"div__scroll",style:{maxHeight:"85vh"},children:(0,a.jsx)(m.v,{model:w,className:j().channel_items})}):(0,a.jsx)("div",{children:(0,a.jsx)(b,{animationData:_,height:400,width:400})})]})})},N=t(53448),k=t.n(N);v()(()=>Promise.resolve().then(t.bind(t,35457)),{loadableGenerated:{webpack:()=>[35457]},ssr:!1});var C=()=>{let[e,s]=(0,x.useState)(!1);return(0,x.useRef)(null),(0,a.jsx)("div",{className:k().toolbar_wrapper,children:(0,a.jsx)("div",{className:"flex align-items-center",children:(0,a.jsxs)("h2",{className:k().channel_name_text,children:[(0,a.jsx)("i",{className:"pi pi-users",style:{fontSize:18,fontWeight:"bolder"}})," ","Friends"]})})})},z=()=>(0,a.jsxs)("div",{style:{flex:1,borderLeft:"1px solid #eee"},className:"box_with_shadaw relative",children:[(0,a.jsx)(C,{}),(0,a.jsx)("div",{className:(0,r.Z)("col",j().mgs_box_wrapper),children:(0,a.jsx)(w,{})})]}),S=t(3511),Z=t(70379),W=t.n(Z),E=()=>{let e=(0,l.useRouter)().query.cid;return(0,a.jsx)("div",{className:W().page_wrapper,children:(0,a.jsxs)("div",{className:"grid grid-nogutter",children:[(0,a.jsxs)("div",{className:"col-fixed flex",children:[(0,a.jsx)(n.Z,{}),(0,a.jsx)(S.Z,{})]}),(0,a.jsx)("div",{className:"col flex flex-start",children:e?(0,a.jsx)(i.Z,{}):(0,a.jsx)(z,{})})]})})}},53448:function(e){e.exports={toolbar_wrapper:"styles_toolbar_wrapper___FXPo",channel_name_text:"styles_channel_name_text__o_SaR",group_avatars:"styles_group_avatars__y3Hkm",group_hover_info:"styles_group_hover_info__Wzbmi",username:"styles_username__IaipT"}},10136:function(e){e.exports={page_wrapper:"styles_page_wrapper__efvjw",mgs_box_wrapper:"styles_mgs_box_wrapper__zy8
1yn",serach_input:"styles_serach_input__atsaG",channel_items:"styles_channel_items__rRTe5"}},70379:function(e){e.exports={workspace_wrapper:"styles_workspace_wrapper__LXgUK",workspace_list:"styles_workspace_list__1T0hW"}}},function(e){e.O(0,[7730,7300,3027,5852,1968,3392,19,2659,9093,6156,881,1363,4018,2888,9774,179],function(){return e(e.s=12344)}),_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.