1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[926],{86950:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/adminUserSearch",function(){return a(71875)}])},49914:function(e,t,a){"use strict";var s=a(24246),n=a(27378),r=a(37254),i=a(90104),o=a.n(i),c=a(88038),l=a.n(c),d=a(43218),m=a.n(d),p=a(2294),u=function(e){var t=function(){return u||(h?(0,p.jvJ)(h)?h:"".concat(j,"/assets/").concat(h):"https://static.zippia.com/assets/zippia-og-image.png")},a=e.TITLE,r=e.META_DESCRIPTION,i=e.META_KEYWORDS,c=e.OG_TITLE,d=e.OG_META_DESCRIPTION,u=e.OG_IMAGECOMPANY,h=e.OG_IMAGE,_=e.PUBLISHED_TIME,g=e.MODIFIED_TIME,f=e.UPDATED_TIME,x=e.SQUARE_WEB_SDK_CDN,j=e.host,y=e.url,S=e.noIndex,b=e.indexAndNoFollow,w=e.relCanonical,v=e.pageCategory,E=e.structuredData,N=e.userGroup,C=e.indexAndFollow,U=e.useStaticOgImage,I=void 0===U||U,Z=e.META_RSS_TITLE;(0,n.useEffect)((function(){/MSIE \d|Trident.*rv:/.test(navigator.userAgent)&&(window.location.href="microsoft-edge:".concat(window.location.href),setTimeout((function(){window.location.href="https://go.microsoft.com/fwlink/?linkid=2135547"}),1))}),[]);var P=Array.isArray(E)?null==E?void 0:E.filter((function(e){return!o()(e)})):E;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l(),{children:[(0,s.jsx)("title",{children:a}),r&&(0,s.jsx)("meta",{name:"description",content:r}),(0,s.jsx)("meta",{name:"author",content:""}),i&&(0,s.jsx)("meta",{name:"keywords",content:i}),(0,s.jsx)("meta",{property:"og:title",content:c}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:url",content:j+y}),(0,s.jsx)("meta",{property:"og:description",content:d}),_&&g&&f&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{property:"article:published_time",content:_}),(0,s.jsx)("meta",{property:"article:modified_time",content:g}),(0,s.jsx)("meta",{property:"og:updated_time",content:f})]}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{name:"twitter:site",content:"@ZippiaInc"}),(0,s.jsx)("meta",{name:"twitter:title",content:c}),(0,s.jsx)("meta",{name:"twitter:url",content:j+y}),(0,s.jsx)("meta",{name:"twitter:description",content:d}),(0,s.jsx)("meta",{charSet:"utf8"}),(0,s.jsx)("meta",{name:"twitter:image:src",content:t()}),(0,s.jsx)("meta",{property:"fb:app_id",content:"508633732650088"}),(0,s.jsx)("meta",{property:"og:image",content:I?"https://static.zippia.com/assets/zippia-og-image.png":t()}),S&&(0,s.jsx)("meta",{name:"robots",content:"noindex, follow"}),!S&&b&&(0,s.jsx)("meta",{name:"robots",content:"index, nofollow"}),!S&&C&&(0,s.jsx)("meta",{name:"robots",content:"index, follow"}),w&&!S&&(0,s.jsx)("link",{rel:w.rel,href:w.href}),!S&&Z&&(0,s.jsx)("link",{rel:"alternate",type:"application/rss+xml",title:Z,href:"".concat(j+y,"feed/")}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:" var pageCategory = '".concat(v,"';")}}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:" var userGroup = '".concat(N,"';")}}),P&&(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(P)}}),x&&(0,s.jsx)("script",{src:x,async:!0,defer:!0})]}),(0,s.jsx)(m(),{src:"https://accounts.google.com/gsi/client",strategy:"lazyOnload"}),(0,s.jsx)(m(),{src:"https://www.google.com/recaptcha/api.js",strategy:"lazyOnload"})]})};u.defaultProps={userGroup:""};t.Z=(0,r.$j)((function(e){var t=e.locals,a="";return t&&t.userGroup&&(a=(0,p.$p6)(t.userGroup)),{userGroup:a}}),null)(u)},71875:function(e,t,a){"use strict";a.r(t);var s=a(62303),n=a(29132),r=a(53619),i=a(33676),o=a(91946),c=a(722),l=a(68772),d=a(93334),m=a(53573),p=a(39849),u=a(59312),h=a(24246),_=a(27378),g=a(90005),f=a.n(g),x=a(27693),j=a.n(x),y=a(49914),S=a(55233),b=a(78907),w=a.n(b),v=a(39508),E=a.n(v),N=a(18320),C=a.n(N),U=function(e){var t=e.closeModal;return(0,h.jsx)("div",{className:E().popup,onClick:t,children:(0,h.jsxs)("div",{className:f()(E().wrapper,"dialog-succeed"),id:"dialog-succeed",children:[(0,h.jsx)("p",{className:"mb-10",children:"User profile data copied"}),(0,h.jsx)("p",{className:"mb-10",children:(0,h.jsx)("a",{className:"list-link",href:"/matches",target:"_blank",children:"Open /matches page"})}),(0,h.jsx)("button",{onClick:t,className:"btn btn-primary",children:"OK"})]})})},I=function(e){var t=e.closeModal,a=e.copyError;return(0,h.jsx)("div",{className:E().popup,onClick:t,children:(0,h.jsxs)("div",{className:f()(E().wrapper,"dialog-fail"),id:"dialog-fail",children:[(0,h.jsx)("p",{className:"mb-10",children:"Error when copying user profile data: "}),(0,h.jsx)("p",{className:"text-danger mb-10",children:a}),(0,h.jsx)("button",{onClick:t,className:"btn btn-primary",children:"OK"})]})})}
1,Z=function(e){var t=e.displayedUserRating,a=e.closeModal;return(0,h.jsx)("div",{className:E().popup,onClick:a,children:(0,h.jsxs)("div",{className:f()(E().wrapper,E()["dialog-user-rating"]),id:"dialog-user-rating",children:[(0,h.jsx)("pre",{children:t}),(0,h.jsx)("button",{className:"btn btn-primary",onClick:a,children:"OK"})]})})},P=function(e){(0,c.Z)(a,e);var t=(0,p.Z)(a);function a(e){var n;return(0,r.Z)(this,a),n=t.call(this,e),(0,o.Z)((0,s.Z)(n),"copyProfile",(function(e){var t="/api/admin/searchReplication?fromUserId=".concat(e);S.Z.get(t).then((function(){n.setState({showSuccessCopy:!0})})).catch((function(e){n.setState({showFailCopy:!0,copyError:e})}))})),(0,o.Z)((0,s.Z)(n),"formatUserData",(function(e){return j().locale("en"),e.map((function(e){return(0,d.Z)((0,l.Z)({},e),{major:"string"==typeof e.major?e.major:null,creationDate:j()(e.creationDate).format("MM/DD/YYYY, hh:mm:ss A"),titles:e.titles?e.titles.map((function(e){return e.originalSearch})).join(", "):"-",location:e.userLocation?Array.isArray(e.userLocation)?e.userLocation.length?e.userLocation.map((function(e){return e.city&&e.state?"".concat(e.city,", ").concat(e.state):e.state})).join(", "):"-":e.userLocation.displayValue||"-":"-"})}))})),(0,o.Z)((0,s.Z)(n),"searchByUserId",(function(e){e.preventDefault();var t=n.state.userId;t&&n.setState({loading:!0,error:""},(function(){S.Z.get("/user/fetch?userId=".concat(t)).then((function(e){var t=n.formatUserData([e.data.user]);n.setState({users:t,loading:!1,filteredQuery:!0})})).catch((function(e){n.setState({error:e.toString()||JSON.stringify(e),loading:!1})}))}))})),(0,o.Z)((0,s.Z)(n),"searchByEmail",(function(e){e.preventDefault();var t=n.state.emailAddr;t&&n.setState({loading:!0,error:""},(function(){S.Z.get("/user/fetch?emailId=".concat(t)).then((function(e){var t=n.formatUserData([e.data.user]);n.setState({users:t,loading:!1,filteredQuery:!0})})).catch((function(e){n.setState({error:e.toString()||JSON.stringify(e),loading:!1})}))}))})),(0,o.Z)((0,s.Z)(n),"showUserRating",(function(e){n.setState({showUserRating:!0,displayUserRating:JSON.stringify(e,null,4)})})),(0,o.Z)((0,s.Z)(n),"closeUserRatingModal",(function(){n.setState({showUserRating:!1,displayUserRating:""})})),(0,o.Z)((0,s.Z)(n),"closeCopyProfileSuccessModal",(function(){n.setState({showSuccessCopy:!1})})),(0,o.Z)((0,s.Z)(n),"closeCopyProfileFailModal",(function(){n.setState({showFailCopy:!1})})),(0,o.Z)((0,s.Z)(n),"loadUsers",(function(){var e=n.state.users;n.setState({loading:!0},(function(){n.fetchUsers(e.length,50).then((function(e){var t=n.formatUserData(e.data);n.setState((function(e){return{users:(0,m.Z)(e.users).concat((0,m.Z)(t)),loading:!1}}))}))}))})),(0,o.Z)((0,s.Z)(n),"clearFilter",(function(){n.setState({loading:!0},(function(){n.fetchUsers(0,50).then((function(e){var t=n.formatUserData(e.data);n.setState({users:t,loading:!1,filteredQuery:!1,emailAddr:"",userId:""})}))}))})),(0,o.Z)((0,s.Z)(n),"fetchUsers",(function(e,t){var a="/api/admin/fetchTopNSignedUpUsers/?start=".concat(e,"&noOfItems=").concat(t);return S.Z.get(a)})),(0,o.Z)((0,s.Z)(n),"handleEmailAddrChange",(function(e){n.setState({emailAddr:e.target.value})})),(0,o.Z)((0,s.Z)(n),"handleUserIdChange",(function(e){n.setState({userId:e.target.value})})),n.state={userId:"",emailAddr:"",loading:!1,filteredQuery:!1,users:[],showSuccessCopy:!1,showFailCopy:!1,showUserRating:!1,displayUserRating:"",copyError:"",error:""},n}return(0,i.Z)(a,[{key:"componentDidMount",value:function(){var e=this;this.fetchUsers(0,50).then((function(t){var a=e.formatUserData(t.data);e.setState({users:a})})).catch((function(e){console.error(e)}))}},{key:"render",value:function(){var e=this,t=this.props.data.metadata,a=this.state,s=a.emailAddr,n=a.userId,r=a.loading,i=a.filteredQuery,o=a.users,c=a.showSuccessCopy,d=a.showFailCopy,m=a.showUserRating,p=a.copyError,u=a.displayUserRating,g=a.error;return(0,h.jsxs)(_.Fragment,{children:[(0,h.jsx)(y.Z,(0,l.Z)({},t)),(0,h.jsx)("div",{className:"admin-user-search-simulation-page ".concat(C()["site-map-section-search"]," site-map-section-search bg-white pl-3 pr-3"),id:"admin-user-search",style:{marginBottom:"40px"},children:(0,h.jsxs)("div",{className:f()(E()["admin-user-search-container"],C()["site-map-search-align"],"site-map-search-align position-relative z-mt-100 d-block text-center pl-3 pr-3"),children:[(0,h.jsx)("h3",{className:"text-center z-mb-40",children:t.H3}),(0,h.jsxs)("div",{className:E()["admin-search-query-container"],children:[(0,h.jsxs)("form",{onSubmit:function(t){return e.searchByEmail(t)},children:[(0,h.jsx)("input",{type:"text",placeholder:"Search by Email",value:s,onChange:this.handleEmailAddrChange}),(0,h.jsx)("button",{type:"submit",className:"btn btn-orange",children:(0,h.jsx)("i",{className:"fa icon-search"})})]}),(0,h.jsxs)("form",{onSubmit:function(t){return e.searchByUserId(t)},children:[(0,h.jsx)("input",{type:"text",placeholder:"Search by userId",value:n,onChange:this.handleUserIdChange}),(0,h.jsx)("button",{type:"submit",className:"btn btn-orange",children:(0,h.jsx)("i",{className:"fa icon-search"})})]})]}),g&&(0,h.jsxs)("p",{className:"text-danger",children:["Error: ",g]}
1),(0,h.jsx)("div",{id:"dashboard-admin-requests",className:f()(E()["dashboard-admin-requests"],w()["dashboard-admin-requests"],"table-responsive mt-2"),children:(0,h.jsxs)("table",{className:"table mb-4",children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{children:[(0,h.jsx)("th",{children:"Sign up date"}),(0,h.jsx)("th",{children:"Email address"}),(0,h.jsx)("th",{children:"User ID"}),(0,h.jsx)("th",{children:"Name"}),(0,h.jsx)("th",{children:"Title(s)"}),(0,h.jsx)("th",{children:"Major"}),(0,h.jsx)("th",{children:"Location(s)"}),(0,h.jsx)("th",{children:"User rating"}),(0,h.jsx)("th",{children:"Copy profile"})]})}),(0,h.jsx)("tbody",{children:o.map((function(t){return(0,h.jsxs)("tr",{children:[(0,h.jsx)("td",{children:t.creationDate}),(0,h.jsx)("td",{children:t.emailAddr}),(0,h.jsx)("td",{children:t.userId}),(0,h.jsx)("td",{children:"".concat(t.firstName).concat(t.lastName)?"".concat(t.firstName," ").concat(t.lastName):"-"}),(0,h.jsx)("td",{children:t.titles}),(0,h.jsx)("td",{children:t.major||"-"}),(0,h.jsx)("td",{children:t.location}),(0,h.jsx)("td",{children:t.userRating?(0,h.jsx)("a",{className:"list-link",onClick:function(){return e.showUserRating(t.userRating)},children:"view"}):"none"}),(0,h.jsx)("td",{children:(0,h.jsx)("a",{className:"list-link",onClick:function(){return e.copyProfile(t.userId)},children:"copy"})})]},t.userId)}))})]})}),i?(0,h.jsx)("button",{className:"admin-clear-filter-button btn primary-button-big font-weight-normal",disabled:r,onClick:this.clearFilter,children:r?"Loading":"Clear filter"}):(0,h.jsx)("button",{className:f()(w()["admin-more-button"],"btn primary-button-big font-weight-normal"),disabled:r,onClick:this.loadUsers,children:r?"Loading":"Load more"}),c&&(0,h.jsx)(U,{closeModal:this.closeCopyProfileSuccessModal}),d&&(0,h.jsx)(I,{closeModal:this.closeCopyProfileFailModal,copyError:p}),m&&(0,h.jsx)(Z,{displayedUserRating:u,closeModal:this.closeUserRatingModal})]})})]})}}],[{key:"getInitialProps",value:function(e){var t=e.req,a=e.res;return(0,n.Z)((function(){return(0,u.__generator)(this,(function(e){return t?[2,{data:a?a.data:null,user:t?t.user:null,locals:a?a.locals:null}]:[2,window.__NEXT_DATA__.props.pageProps]}))}))()}}]),a}(_.Component);t.default=P},78907:function(e){e.exports={adminPage:"adminPage_adminPage__vQBwF","search-status--message":"adminPage_search-status--message__Rdoht",error:"adminPage_error__nU3bZ",success:"adminPage_success__HkpKT",adminSection:"adminPage_adminSection__kXrVV","admin-filters":"adminPage_admin-filters__LdUDH","dashboard-admin-requests":"adminPage_dashboard-admin-requests__pKL_y",APPROVED:"adminPage_APPROVED__ZLWSh",REJECTED:"adminPage_REJECTED__Q8zNA",DEFERRED:"adminPage_DEFERRED__1dPK0","admin-more-button":"adminPage_admin-more-button__XQ7sP","json-display":"adminPage_json-display__lMXlc"}},39508:function(e){e.exports={"admin-search-query-container":"adminUserSearch_admin-search-query-container__bCloq","dashboard-admin-requests":"adminUserSearch_dashboard-admin-requests__QwIxH",popup:"adminUserSearch_popup__uuKTU","admin-user-search-container":"adminUserSearch_admin-user-search-container__YaNOo",wrapper:"adminUserSearch_wrapper__cx6xJ","dialog-user-rating":"adminUserSearch_dialog-user-rating__sY2Rw"}},18320:function(e){e.exports={inactive:"sitemap_inactive___ZPWu","category-page":"sitemap_category-page__yEOUB","site-map-min-height":"sitemap_site-map-min-height__jhTaU","site-map-section-search":"sitemap_site-map-section-search__3LUHe","sitemap-search-fieldset":"sitemap_sitemap-search-fieldset__TP0OK","site-map-location-section-search":"sitemap_site-map-location-section-search__nu_0_","sitemap-search-location-fieldset":"sitemap_sitemap-search-location-fieldset__R4Sfu","sitemap-search-location-form-fieldset":"sitemap_sitemap-search-location-form-fieldset__hmA8w","location-fieldset-input":"sitemap_location-fieldset-input__doHVj","site-map-search-align":"sitemap_site-map-search-align__pJMmG","sitemapCareer-search-fieldset":"sitemap_sitemapCareer-search-fieldset__Kl8ln",siteMapTopLevelCareer:"sitemap_siteMapTopLevelCareer__6r6mX",interH3:"sitemap_interH3__BCHT6",explorerStates:"sitemap_explorerStates__V0Qy7",companiesSection:"sitemap_companiesSection__GXGSn","all-majors":"sitemap_all-majors__WnNbh","all-ExploreNews":"sitemap_all-ExploreNews__2dn0E",sectionSeparatorSmall:"sitemap_sectionSeparatorSmall__AOvKw",sectionSeparatorFull:"sitemap_sectionSeparatorFull__Q_0v2",sitemapIndustryJobTitlesLinks:"sitemap_sitemapIndustryJobTitlesLinks__gRdJn",sitemapColumnList:"sitemap_sitemapColumnList__I8N1J",sitemapUacList:"sitemap_sitemapUacList__Ez84h","pagi-toplevel":"sitemap_pagi-toplevel__QXoHe","pagi-state":"sitemap_pagi-state__jkC_1",sitemap:"sitemap_sitemap__nYeqo",container:"sitemap_container__99eIK","pagination-sec":"sitemap_pagination-sec__yP3gc",main_inner:"sitemap_main_inner__Xw4er","industry-icon-shape":"sitemap_industry-icon-shape__IAyTA",stateCityIndustryContainer:"sitemap_stateCityIndustryContainer__2EWBy","how-to-find-jobs-section":"sitemap_how-to-find-jobs-section__2GskQ",colWide:"sitemap_colWide__jqmBJ"}}},function(e){e.O(0,[2888],(function(){return t=86950,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.