PageSourceSearch

https://metrodreamin.com/_next/static/chunks/pages/user/[userId]-1b06ef899da33f1b.js

js metrodreamin.com collected 2026-10-03 20:42:55 UTC 22,112 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[132],{76891:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/[userId]",function(){return n(17331)}])},59102:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var s=n(24043),a=n(85893),r=n(67294),o=n(28276),i=n(53731),c=n(94184),l=n.n(c);function u(e){var t=e.description,n=e.viewOnly,c=e.fallback,u=e.placeholder,d=e.onDescriptionChange,f=void 0===d?function(e){}:d,m=e.onDescriptionBlur,h=void 0===m?function(e){}:m,v=(0,r.useRef)(null),p=(0,s._)((0,r.useState)(t),2),x=p[0],y=p[1];return(0,r.useEffect)(function(){n?y(t):y(t?t+"\n":t)},[n]),(0,r.useEffect)(function(){y(t)},[t]),(0,a.jsx)("div",{className:l()("Description",{"Description--viewOnly":n}),children:n?(0,a.jsx)("div",{className:"Description-content",children:(0,a.jsx)(i.Z,{componentDecorator:function(e,t,n){return(0,a.jsx)("a",{className:"Linkify Link--inverse",href:e,target:"_blank",rel:"nofollow noopener noreferrer",children:t},n)},children:t||(void 0===c?"":c)})}):(0,a.jsxs)("form",{className:"Description-inputForm",onSubmit:function(e){e.preventDefault(),f(e.target.value),y(e.target.value),document.activeElement.blur()},children:[(0,a.jsx)(o.Z,{className:"Description-textarea",ref:v,value:x,placeholder:void 0===u?"":u,onBlur:function(){return h(x)},onChange:function(e){f(e.target.value),y(e.target.value)}}),(0,a.jsx)("i",{className:"fas fa-pen"})]})})}},62403:function(e,t,n){"use strict";n.d(t,{d:function(){return x}});var s=n(24043),a=n(248),r=n(85893),o=n(67294),i=n(41664),c=n.n(i),l=n(11163),u=n(94184),d=n.n(u),f=n(49089),m=n(90109),h=n(34738),v=n(22969),p=n(52727);function x(e){var t,n=e.onToggleShowAuth,i=(0,s._)((0,o.useState)(),2),u=i[0],x=i[1],y=(0,s._)((0,o.useState)([]),2),g=y[0],j=y[1],N=(0,s._)((0,o.useState)(!0),2),S=N[0],P=N[1],w=(0,s._)((0,o.useState)(!1),2),b=w[0],D=w[1],k=(0,l.useRouter)(),C=(0,o.useContext)(v.fE),I=(0,o.useContext)(h.T).isMobile;(0,o.useEffect)(function(){var e;(null===(e=C.user)||void 0===e?void 0:e.uid)&&!g.length&&T(!0)},[null===(t=C.user)||void 0===t?void 0:t.uid]),(0,o.useEffect)(function(){return _()},[I]);var _=function(){I&&u?x(!1):I||x(!0)},T=function(e){var t=[(0,m.ar)("userId","==",C.user.uid),(0,m.Xo)("keywords","asc")],n=[(0,m.hJ)(C.database,"systems")].concat((0,a._)(t));e&&n.push((0,m.b9)(16));var s=m.IO.apply(void 0,(0,a._)(n));(0,m.PL)(s).then(function(e){return e.docs.map(function(e){return e.data()})}).then(function(e){return j(e)}).catch(function(e){return console.warn("Error fetching systems:",e)})},U=function(){16!==g.length||b||(D(!0),T(!1)),P(function(e){return!e})},E=function(e,t){if(!S||!(t>
1=15))return(0,r.jsxs)(c(),{className:"Drawer-ownSystem",href:"/edit/".concat(encodeURIComponent(e.systemId)),onClick:function(){return f.ZP.event({category:"Drawer",action:"System Click"})},children:[e.title?e.title:"Map",e.isPrivate&&(0,r.jsx)("i",{className:"fas fa-eye-slash","data-tooltip-content":"This map will not appear in search or on your profile"})]},e.systemId)},M=C.user&&C.user.uid&&"/user/[userId]"===k.pathname&&k.query.userId===C.user.uid;return(0,r.jsxs)("section",{className:d()("Drawer",{"Drawer--closed":!u,"Drawer--open":u,"Hamburger--open":u}),children:[(0,r.jsxs)("div",{className:"Drawer-section Drawer-section--links",children:[I&&(0,r.jsxs)("button",{className:"Drawer-menuButton Hamburger",onClick:function(){x(function(e){return!e}),f.ZP.event({category:"Drawer",action:"Expand/Collapse"})},children:[(0,r.jsx)("div",{className:"Hamburger-top"}),(0,r.jsx)("div",{className:"Hamburger-middle"}),(0,r.jsx)("div",{className:"Hamburger-bottom"}),(0,r.jsx)("span",{className:"sr-only",children:"Menu open/close"})]}),(0,r.jsxs)(c(),{className:d()("Drawer-link",{"Drawer-link--current":"/explore"===k.pathname}),href:"/explore",onClick:function(){return f.ZP.event({category:"Drawer",action:"Home Click"})},children:[(0,r.jsx)("i",{className:"fas fa-house"}
1),(0,r.jsx)("div",{className:"Drawer-linkText",children:"Home"})]}),!C.authStateLoading&&C.user&&C.user.uid&&(0,r.jsxs)(c(),{className:d()("Drawer-link",{"Drawer-link--current":M}),href:"/user/".concat(C.user.uid),onClick:function(){return f.ZP.event({category:"Drawer",action:"Profile Click"})},children:[(0,r.jsx)("i",{className:"fas fa-user"}),(0,r.jsx)("div",{className:"Drawer-linkText",children:"Profile"})]}),!C.authStateLoading&&!C.user&&(0,r.jsxs)("button",{className:"Drawer-link",onClick:function(){n(!0),f.ZP.event({category:"Drawer",action:"Show Auth"})},children:[(0,r.jsx)("i",{className:"fas fa-user"}),(0,r.jsx)("div",{className:"Drawer-linkText",children:"Create an Account"})]}),(0,r.jsxs)(c(),{className:d()("Drawer-link",{"Drawer-link--current":"/edit/new"===k.pathname}),href:"/edit/new",onClick:function(){return f.ZP.event({category:"Drawer",action:"New Map"})},children:[(0,r.jsx)("i",{className:"fas fa-plus"}),(0,r.jsx)("div",{className:"Drawer-linkText",children:"New Map"})]})]}),(0,p.Cg)(function(){if(C.user&&u)return(0,r.jsxs)("div",{className:"Drawer
1-section Drawer-section--ownSystems FadeAnim",children:[(0,r.jsx)(c(),{className:"Drawer-sectionHeading Link",href:"/view/own",onClick:function(){return f.ZP.event({category:"Drawer",action:"Own Maps"})},children:"Your maps"}),(0,r.jsx)("div",{className:"Drawer-ownSystems",children:g.length?g.map(E):(0,r.jsx)("div",{className:"Drawer-noSystems",children:"None yet!"})}),g.length>15&&(0,r.jsxs)("button",{className:"Search-showMore",onClick:U,children:[(0,r.jsx)("i",{className:"fas ".concat(S?"fa-chevron-circle-down":"fa-chevron-circle-up")}),(0,r.jsx)("span",{className:"Search-moreText",children:S?"Show all":"Collapse"})]})]})}(),"ownSystems")]})}},48201:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var s=n(24043),a=n(248),r=n(85893),o=n(67294),i=n(49089),c=n(90109),l=n(22969),u=n(26903);function d(e){var t=e.collectionPath,n=e.clauses,d=e.startSize,f=void 0===d?6:d,m=e.pageSize,h=void 0===m?3:m,v=e.types,p=void 0===v?["recent"]:v,x=(0,o.useContext)(l.fE),y=(0,s._)((0,o.useState)([]),2),g=y[0],j=y[1],N=(0,s._)((0,o.useState)(),2),S=N[0],P=N[1],w=(0,s._)((0,o.useState)(!1),2),b=w[0],D=w[1],k=(0,s._)((0,o.useState)(!1),2),C=k[0],I=k[1],_=(0,s._)((0,o.useState)(!1),2),T=_[0],U=_[1];(0,o.useEffect)(function(){t&&n&&!C&&E()},[t,n]);var E=function(){var e,s=[(0,c.hJ)(x.database,t)].concat((0,a._)(n));S?(s.push((0,c.e0)(S)),s.push((0,c.b9)(h+1))):s.push((0,c.b9)(f+1)),I(!0),(0,c.PL)(c.IO.apply(void 0,(0,a._)(s))).then(function(e){if(!e.size){D(!0);return}S&&e.size<=h&&D(!0),!S&&e.size<=f&&D(!0);var t=e.docs.slice(0,S?h:f).map(function(e){return e.data()});P(e.docs[e.docs.length-1]),j(function(e){return e.concat(t)})}).catch(function(e){console.log("fetchSystems error:",e)}).finally(function(){return U(!0)}),i.ZP.event({category:"PaginatedSystems",action:"Show More",label:"Current Count: ".concat(null!==(e=null==g?void 0:g.length)&&void 0!==e?e:0)})};return(0,r.jsxs)("div",{className:"PaginatedSystems",children:[T?g.length?(0,r.jsx)("ol",{className:"PaginatedSystems-list",children:g.map(function(e,t){var n;return n=e.systemId?e.systemId:"".concat(p.join("-"),"-").concat(t),e&&e.systemId?(0,r.jsx)("div",{className:"PaginatedSystems-col Discover-col--system",children:(0,r.jsx)("div",{className:"PaginatedSystems-system",children:(0,r.jsx)(u.x,{viewData:e,types:p},e.systemId)})},n):(0,r.jsx)("div",{className:"PaginatedSystems-col PaginatedSystems-col--systemPlaceholder",children:(0,r.jsx)("div",{className:"PaginatedSystems-system PaginatedSystems-system--placeholder",children:(0,r.jsx)("div",{className:"PaginatedSystems-resultPlaceholder"})})},n)})}):(0,r.jsx)("div",{className:"PaginatedSystems-none",children:"None yet!"}):(0,r.jsx)("div",{className:"PaginatedSystems-none",children:"Loading..."}),T&&!b&&(0,r.jsxs)("button",{className:"PaginatedSystems-showMore",onClick:E,children:[(0,r.jsx)("i",{className:"fas fa-chevron-circle-down"}),(0,r.jsx)("span",{className:"PaginatedSystems-moreText",children:"Show more"})]})]})}},19889:function(e,t,n){"use strict";n.d(t,{D:function(){return c}});var s=n(24043),a=n(85893),r=n(67294),o=n(94184),i=n.n(o);function c(e){var t,n=e.title,o=e.viewOnly,c=e.textWrap,l=void 0!==c&&c,u=e.fallback,d=e.placeholder,f=e.onGetTitle,m=void 0===f?function(e){}:f,h=(0,s._)((0,r.useState)(n),2),v=h[0],p=h[1];(0,r.useEffect)(function(){p(n)},[o]),(0,r.useEffect)(function(){p(n)},[n]);var x=function(e){e.preventDefault();var t=v.trim();t&&t!==n?m(t):p(n),document.activeElement.blur()};return(0,a.jsx)("div",{className:i()("Title",{"Title--viewOnly":o,"Title--textWrap":l}),children:o?(t=n||(void 0===u?"MetroDreamin'":u),(0,a.jsx)("h1",{className:"Title-heading","data-tooltip-content":l?void 0:t,children:t})):(0,a.jsxs)("form",{className:"Title-inputForm",onSubmit:x,children:[(0,a.jsx)("input",{className:"Title-input",value:v,placeholder:void 0===d?"Map title":d,onChange:function(e){return p(e.target.value)},onBlur:x}),(0,a.jsx)("i",{className:"fas fa-pen"})]})})}},17331:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return T},default:function(){return U}});var s=n(24043),a=n(85893),r=n(67294),o=n(11163),i=n(49089),c=n(22969),l=n(52727),u=n(62403),d=n(70
1765),f=n(91911),m=n(58264),h=n(11010),v=n(20414),p=n(90109),x=n(94184),y=n.n(x),g=n(34738),j=n(73277),N=n(59102),S=n(11774);function P(e){var t=e.open,n=e.currColor,o=e.currShadow,c=e.onComboSelected,u=e.onClose,d=(0,s._)((0,r.useState)(!1),2),f=d[0],m=d[1],h=(0,s._)((0,r.useState)(),2),v=h[0],p=h[1],x=function(){m(!1),p(null),u(),i.ZP.event({category:"User",action:"Cancel Icon Update"})};return(0,a.jsx)(S.u,{baseClass:"IconUpdate",open:t,heading:f?"Choose a Color":"Choose an Icon",content:(0,a.jsxs)("div",{className:"IconUpdate-main",children:[f?function(){var e=function(e){var s=(0,l.x6)({icon:{color:e}}),r=(0,l.F1)((0,l.H3)(s.color)>128?"dark":"light");t.push((0,a.jsx)("button",{className:"IconUpdate-colorButton",onClick:function(){c({key:v,color:e}),m(!1),p(null),i.ZP.event({category:"User",action:"Select Icon Color"})},children:(0,a.jsx)("img",{className:"IconUpdate-icon",src:n.path,alt:n.icon.alt,style:{filter:"".concat(s.filter," ").concat(r)}})},e))},t=[],n=(0,l.n0)({icon:{key:v}});for(var s in j.qe)e(s);return(0,a.jsx)("div",{className:"IconUpdate-colors",children:t})}():function(){var e=function(e){var s=(0,l.n0)({icon:{key:e}});t.push((0,a.jsx)("button",{className:"IconUpdate-iconButton",onClick:function(){p(e),m(!0),i.ZP.event({category:"User",action:"Select Icon Image"})},children:(0,a.jsx)("img",{className:"IconUpdate-icon",src:s.path,alt:s.icon.alt,style:{filter:"".concat(n.filter," ").concat(o)}})},e))},t=[];for(var s in j.fv)e(s);return(0,a.jsx)("div",{className:"IconUpdate-icons",children:t})}(),(0,a.jsx)("button",{className:"IconUpdate-cancel Link",onClick:x,children:"Cancel"})]}),onClose:x})}var w=n(3944),b=n(26903),D=n(19889),k=n(40363),C=n(48201);function I(e){var t=e.viewOnly,n=void 0===t||t,u=e.userDocData,d=void 0===u?{}:u,f=(0,s._)((0,r.useState)(),2),m=f[0],x=f[1],S=(0,s._)((0,r.useState)(),2),I=S[0],_=S[1],T=(0,s._)((0,r.useState)(!1),2),U=T[0],E=T[1],M=(0,s._)((0,r.useState)(!1),2),A=M[0],Z=M[1],O=(0,s._)((0,r.useState)(!1),2),B=O[0],L=O[1],H=(0,s._)((0,r.useState)(!1),2),F=H[0],R=H[1],J=(0,s._)((0,r.useState)(!1),2),z=J[0],X=J[1],W=(0,s._)((0,r.useState)(),2),Y=W[0],$=W[1],q=(0,s._)((0,r.useState)(""),2),G=q[0],Q=q[1],V=(0,s._)((0,r.useState)(""),2),K=V[0],ee=V[1],et=(0,o.useRouter)(),en=(0,r.useContext)(c.fE),es=(0,r.useContext)(g.T).isMobile;if(d){var ea,er,eo,ei,ec,el,eu,ed,ef,em,eh=d.suspensionDate||d.deletionDate;(0,r.useEffect)(function(){!m&&(d.systemsCreated||(d.systemIds||[]).length)&&Promise.all([(0,p.PL)((0,p.IO)((0,p.hJ)(en.database,"systems"),(0,p.ar)("userId","==",d.userId),(0,p.ar)("isPrivate","==",!1),(0,p.Xo)("stars","desc"),(0,p.b9)(1))),(0,p.PL)((0,p.IO)((0,p.hJ)(en.database,"systems"),(0,p.ar)("userId","==",d.userId),(0,p.ar)("isPrivate","==",!1),(0,p.Xo)("lastUpdated","desc"),(0,p.b9)(1)))]).then(function(e){var t=!0,n=!1,s=void 0;try{for(var a,r=e[Symbol.iterator]();!(t=(a=r.next()).done);t=!0){var o=a.value;if(o.size>=1){x(o.docs[0].data());break}}}catch(e){n=!0,s=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw s}}}).catch(function(e){return console.log("Error getting featured system:",e)})},[d.systemsCreated,d.systemIds]),(0,r.useEffect)(function(){if(!eh&&U&&(null==I||!I.length))try{var e=(0,p.IO)((0,p.B$)(en.database,"stars"),(0,p.ar)("userId","==",d.userId),(0,p.Xo)("timestamp","desc"));(0,p.PL)(e).then(function(e){var t=[];e.forEach(function(e){var n=(0,p.JU)(en.database,"systems/".concat(e.data().systemId));t.push((0,p.QT)(n))}),Promise.all(t).then(function(e){var t=[],n=!0,s=!1,a=void 0;try{for(var r,o=e[Symbol.iterator]();!(n=(r=o.next()).done);n=!0){var i=r.value,c=i.data();c&&!c.isPrivate&&t.push(i.data())}}catch(e){s=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(s)throw a}}_(t)})})}catch(e){console.log("getUserStars error:",e)}},[U]);var ev=(eu=(0,h._)(function(){var e,t,n;return(0,v.Jh)(this,function(s){switch(s.label){case 0:if(!en.user||!en.user.uid||!d.userId||d.isAdmin||d.deletionDate)return[2];Z(!1),e=(0,p.JU)(en.database,"users/".concat(en.user.uid,"/blocks/").concat(d.userId)),t=(0,l.n0)(d),n=(0,l.x6)(d),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,p.pl)(e,{blockerId:en.user.uid,blockedUserId:d.userId,displayName:d.displayName?d.displayName:"Anonymous",icon:{key:t.icon.key,color:n.color},timestamp:Date.now()})];case 2:return s.sent(),i.ZP.event({category:"User",action:"Block"}),et.push("/explore"),[3,4];case 3:return console.error("handleBlockUser user:",s.sent()),[3,4];case 4:return[2]}})}),function(){return eu.apply(this,arguments)}),ep=(ed=(0,h._)(function(){var e,t,n;return(0,v.Jh)(this,function(s){switch(s.label){case 0:if(!en.user||!en.user.uid||!(en.settings.isAdmin||en.settings.isMod)||!d.userId||d.isAdmin||d.deletionDate||d.suspensionDate)return[2];L(!1),s.label=1;case 1:return s.trys.push([1,4,,5]),t=["".concat(j.Km,"/users/").concat(encodeURIComponent(d.userId),"/suspend")],n={method:"PUT"},[4,(0,l.g0)(en.user)];case 2:return[4,fetch.apply(void 0,t.concat([(n.headers=s.sent(),n)]))];case 3:if(!(e=s.sent()).ok)throw Error("".concat(e.status,": ").concat(e.statusText));return i.ZP.event({category:"User",action:"Suspend"}),et.reload(),[3,5];case 4:return console.error("handleSuspendUser error:",s.sent()),[3,5];case 5:return[2]}})}),function(){return ed.apply(this,arguments)}),ex=function(e){return(0,a.jsx)("li",{className:"Profile-systemPreview",children:(0,a.jsx)(b.x,{viewData:e,types:["userStar"]},e.systemId)},e.systemId)};return(0,a.jsxs)("div",{className:"Profile",children:[!eh&&function(){if(m)return(0,a.jsx)("div",{className:"Profile-bannerSystem",children:(0,a.jsx)(b.x,{viewData:m,types:["profile","feature"]},m.systemId)})}(),(0,a.jsxs)("div",{className:"Profile-main",children:[(0,a.jsxs)("div",{className:"Profile-content",children:[(ef=n&&!d.isAdmin&&!d.deleti
1onDate&&!en.authStateLoading&&en.user,em=n&&!d.isAdmin&&!d.deletionDate&&!d.suspensionDate&&!en.authStateLoading&&en.user&&(en.settings.isAdmin||en.settings.isMod),(0,a.jsxs)("div",{className:"Profile-lead",children:[(0,a.jsxs)("div",{className:"Profile-core",children:[(ea=(0,l.n0)(Y?{icon:Y}:d),er=(0,l.x6)(Y?{icon:Y}:d),eo=(0,l.F1)((0,l.H3)(er.color)>128?"dark":"light"),F?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{className:"Profile-icon Profile-icon--edit",onClick:function(){X(!0),i.ZP.event({category:"User",action:"Show Icon Modal"})},children:[(0,a.jsx)("img",{className:"Profile-image",src:ea.path,alt:ea.icon.alt,style:{filter:"".concat(er.filter," ").concat(eo)}}),(0,a.jsx)("i",{className:"fas fa-pen"})]}),(0,a.jsx)(P,{open:z,currColor:er,currShadow:eo,onClose:function(){return X(!1)},onComboSelected:function(e){e&&e.key&&e.color&&$(e),X(!1)}})]}):(0,a.jsx)("div",{className:"Profile-icon",children:(0,a.jsx)("img",{className:"Profile-image",src:ea.path,alt:ea.icon.alt,style:{filter:"".concat(er.filter," ").concat(eo)}})})),(0,a.jsxs)("div",{className:"Profile-innerCore",children:[(0,a.jsxs)("div",{className:"Profile-titleRow",children:[(0,a.jsx)(D.D,{title:G||(0,l.b3)(d),viewOnly:n||!F,textWrap:!0,fallback:"Anonymous",placeholder:"Username",onGetTitle:function(e){return Q(e)}}),!F&&function(){var e=[];if(d.isAdmin&&e.push((0,a.jsx)("li",{className:"Profile-badge Profile-badge--admin","data-tooltip-content":"MetroDreamin' Administrator",children:(0,a.jsx)("i",{className:"fas fa-shield-halved"})},"admin")),e.length)return(0,a.jsx)("ul",{className:"Profile-badges",children:e})}()]}),!d.deletionDate&&(0,a.jsxs)("div",{className:"Profile-joinedDate",children:["joined ",new Date(d.creationDate).toLocaleDateString(void 0,{month:"long",year:"numeric"})]})]})]}),!n&&(ei=(0,a.jsx)("button",{className:"Profile-button Profile-button--edit",onClick:function(){R(!0),i.ZP.event({category:"User",action:"Start Profile Update"})},children:"Edit"}),ec=(0,a.jsx)("button",{className:"Profile-button Profile-button--cancel",onClick:function(){R(!1),X(!1),Q(""),ee(""),$(null),i.ZP.event({category:"User",action:"Cancel Profile Update"})},children:"Cancel"}),el=(0,a.jsx)("button",{className:"Profile-button Profile-button--save",onClick:function(){if(en.user&&en.user.uid&&!n&&F){var e={},t=G.trim().substring(0,100);if(t.length>=2&&"["===t[0]&&"]"===t[t.length-1]&&(t="(".concat(t.substring(1,t.length-1),")")),t&&(e.displayName=t),Q(t),K){var s=K.replace(/^\n+/,"").replace(/\n+$/,"").replace(/\n\n\n+/gm,"\n\n\n").substring(0,5e3);s&&(e.bio=s),ee(s)}Y&&Y.key&&Y.color&&(e.icon=Y),(0,c.Uv)(en.user.uid,e),R(!1),i.ZP.event({category:"User",action:"Save Profile Update",label:Object.keys(e).sort().join(", ")})}},children:"Save"}),(0,a.jsxs)("div",{className:"Profile-editButtons",children:[!F&&ei,F&&ec,F&&el]})),(ef||em)&&(0,a.jsxs)("div",{className:"Profile-actionRow",children:[ef&&(0,a.jsx)("div",{className:"Profile-blockWrapper",children:(0,a.jsx)("button",{className:"Profile-blockButton ViewHeaderButton","data-tooltip-content":"Block this user",onClick:function(){return Z(!0)},children:(0,a.jsx)("i",{className:"fas fa-user-slash"})})}),em&&(0,a.jsx)("div",{className:"Profile-suspensionWrapper",children:(0,a.jsx)("button",{className:"Profile-suspensionButton ViewHeaderButton","data-tooltip-content":"Suspend this user",onClick:function(){return L(!0)},children:(0,a.jsx)("i",{className:"fas fa-gavel"})})})]}),function(){if(!d.deletionDate){var e=d.suspensionDate?"This account has been suspended for violating the MetroDreamin' Code of Conduct.":d.bio||"";return(0,a.jsx)("div",{className:"Profile-bio",children:(0,a.jsx)(N.d,{description:K||e,viewOnly:n||!F,fallback:"Hi! Welcome to my profile! \uD83D\uDE87\uD83D\uDCAD",placeholder:"Add a bio...",onDescriptionChange:function(e){return ee(e)}})})}}()]})),!eh&&(0,a.jsxs)("div",{className:"Profile-tabs",children:[(0,a.jsx)("button",{className:y()("Profile-tab","Profile-tab--ownSystems",{"Profile-tab--active":!U}
1),onClick:function(){E(!1),i.ZP.event({category:"User",action:"Show Own Maps",label:n?"Other":"Self"})},children:"Maps"}),(0,a.jsx)("button",{className:y()("Profile-tab","Profile-tab--starredSystems",{"Profile-tab--active":U}),onClick:function(){E(!0),i.ZP.event({category:"User",action:"Show Starred Maps",label:n?"Other":"Self"})},children:"Starred Maps"})]}),!eh&&(0,a.jsx)("div",{className:y()("Profile-systems",{"Profile-systems--hidden":U}),children:(0,a.jsx)(C.A,{collectionPath:"systems",type:["profile","recent"],startSize:9,clauses:[(0,p.ar)("userId","==",d.userId),(0,p.ar)("isPrivate","==",!1),(0,p.Xo)("lastUpdated","desc")]})}),!eh&&function(){if(!I)return(0,a.jsx)("div",{className:y()("Profile-noStars",{"Profile-noStars--hidden":!U}),children:"Loading..."});if(!I.length)return(0,a.jsx)("div",{className:y()("Profile-noStars",{"Profile-noStars--hidden":!U}),children:"None yet!"});var e=I.map(ex);return(0,a.jsx)("ol",{className:y()("Profile-starredSystems",{"Profile-starredSystems--hidden":!U}),children:e})}()]}),!0===es&&(0,a.jsx)(k.e,{unitName:"profileMobile"}),!1===es&&(0,a.jsx)(k.e,{unitName:"profileDesktop"})]}),(0,l.Cg)(function(){if(en.user&&en.user.uid&&(null==d||!d.deleti
1onDate)){var e=d.displayName?d.displayName:"this user";if(A)return(0,a.jsx)(w.N,{message:"Are you sure you want to block ".concat(e,"? You will no longer see their content and they will not see your content."),denyText:"Cancel.",confirmText:"Yes, block this user.",denyFunc:function(){return Z(!1)},confirmFunc:ev})}}(),"prompt"),(0,l.Cg)(function(){if(en.user&&en.user.uid&&(en.settings.isAdmin||en.settings.isMod)&&(null==d||!d.deletionDate)&&(null==d||!d.suspensionDate)){var e=d.displayName?d.displayName:"this user";if(B)return(0,a.jsx)(w.N,{message:"Should ".concat(e," be suspended for severe or repeated violations of the MetroDreamin' Code of Conduct?"),denyText:"Cancel.",confirmText:"Yes, suspend this user.",denyFunc:function(){return L(!1)},confirmFunc:ep})}}(),"prompt")]})}}var _=n(85814),T=!0;function U(e){var t=e.userDocData,n=void 0===t?{}:t,h=e.onToggleShowSettings,v=e.onToggleShowAuth,p=void 0===v?function(){}:v,x=e.onToggleShowMission,y=e.onToggleShowContribute,g=e.onToggleShowConduct,j=(0,s._)((0,r.useState)(!0),2),N=j[0],S=j[1],P=(0,o.useRouter)(),w=(0,r.useContext)(c.fE);return(0,r.useEffect)(function(){!w.authStateLoading&&n.userId&&w.user&&w.user.uid&&n.userId===w.user.uid&&S(!1)},[w.user,w.authStateLoading]),(0,r.useEffect)(function(){w.checkBidirectionalBlocks(n.userId)&&(P.replace("/explore"),i.ZP.event({category:"User",action:"Redirect to Explore"}))},[w.checkBidirectionalBlocks]),(0,a.jsxs)(_.Q,{children:[(0,a.jsx)(m.A,{title:(0,l.b3)(n)}),(0,a.jsx)(f.h,{onToggleShowSettings:void 0===h?function(){}:h,onToggleShowAuth:p}),(0,a.jsx)(u.d,{onToggleShowAuth:p}),(0,a.jsx)("main",{className:"User",children:(0,a.jsx)(I,{viewOnly:N,userDocData:n})}),(0,a.jsx)(d.$,{onToggleShowMission:void 0===x?function(){}:x,onToggleShowContribute:void 0===y?function(){}:y,onToggleShowConduct:void 0===g?function(){}:g})]})}}},function(e){e.O(0,[650,813,897,774,888,179],function(){return e(e.s=76891)}),_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.