PageSourceSearch

https://exploremetrodenverwaterquality.org/static/js/9.3cea2422.chunk.js

js exploremetrodenverwaterquality.org collected 2026-10-04 02:35:27 UTC 12,574 bytes, 2 lines download raw bytes

1(this["webpackJsonplre-up-frontend"]=this["webpackJsonplre-up-frontend"]||[]).push([[9],{2038:function(e,t,i){"use strict";i.r(t);var n=i(11),c=i.n(n),a=i(31),r=i(12),s=i(6),o=i(0),l=i.n(o),d=i(45),j=i(28),u=i(92),h=i(342),b=i(335),m=i(340),p=i(341),f=i(337),O=i(450),x=i.n(O),g=i(1940),v=i(1880),w=i(683),_=i(1881),y=i(701),C=i(1867),P=i(1943),N=i(62),S=i(510),k=i(305),I=i(551),q=i(552),R=i(357),B=i(224),A=i(553),E=i(1868),D=i(1902),T=i(1938),z=i(49),F=i(22),L=i.n(F),W=i(138),U=i(265),M=i(1872),X=i(2),J=i(5),V=i(4),$=(i(3),i(23)),G=i(7),H=o.forwardRef((function(e,t){var i=e.animation,n=void 0===i?"pulse":i,c=e.classes,a=e.className,r=e.component,s=void 0===r?"span":r,l=e.height,d=e.variant,j=void 0===d?"text":d,u=e.width,h=Object(J.a)(e,["animation","classes","className","component","height","variant","width"]),b=Boolean(h.children);return o.createElement(s,Object(X.a)({ref:t,className:Object(V.a)(c.root,c[j],a,b&&[c.withChildren,!u&&c.fitContent,!l&&c.heightAuto],!1!==n&&c[n])},h,{style:Object(X.a)({width:u,height:l},h.style)}))})),K=Object(G.a)((function(e){return{root:{display:"block",backgroundColor:Object($.d)(e.palette.text.primary,"light"===e.palette.type?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:e.shape.borderRadius,"&:empty:before":{content:'"\\00a0"'}},rect:{},circle:{borderRadius:"50%"},pulse:{animation:"$pulse 1.5s ease-in-out 0.5s infinite"},"@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}},wave:{position:"relative",overflow:"hidden","&::after":{animation:"$wave 1.6s linear 0.5s infinite",background:"linear-gradient(90deg, transparent, ".concat(e.palette.action.hover,", transparent)"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}},"@keyframes wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},withChildren:{"& > *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}}),{name:"MuiSkeleton"})(H),Q=i(1),Y=Object(s.c)(g.a).withConfig({displayName:"Profile__Breadcrumbs",componentId:"sc-16uq4fw-0"})(T.a),Z=Object(s.c)(v.a).withConfig({displayName:"Profile__Card",componentId:"sc-16uq4fw-1"})(T.a),ee=Object(s.c)(w.a).withConfig({displayName:"Profile__Chip",componentId:"sc-16uq4fw-2"})(T.a),te=Object(s.c)(_.a).withConfig({displayName:"Profile__CardContent",componentId:"sc-16uq4fw-3"})(["position:relative;"]),ie=Object(s.c)(w.a).withConfig({displayName:"Profile__RoleChip",componentId:"sc-16uq4fw-4"})(["",";background:",";"],T.a,(function(e){return e.theme.palette.action.hover})),ne=Object(s.c)(w.a).withConfig({displayName:"Profile__VerifiedEmailChip",componentId:"sc-16uq4fw-5"})(["",";color:",";"],T.a,(function(e){return e.theme.palette.success.main})),ce=Object(s.c)(w.a).withConfig({displayName:"Profile__UnverifiedEmailChip",componentId:"sc-16uq4fw-6"})(["",";color:",";border-color:",";"],T.a,(function(e){return e.theme.palette.warning.main}),(function(e){return e.theme.palette.warning.main})),ae=Object(s.c)(y.a).withConfig({displayName:"Profile__Divider",componentId:"sc-16uq4fw-7"})(T.a),re=Object(s.c)(C.a).withConfig({displayName:"Profile__Grid",componentId:"sc-16uq4fw-8"})(T.a),se=s.c.div.withConfig({displayName:"Profile__Spacer",componentId:"sc-16uq4fw-9"})(T.a),oe=s.c.div.withConfig({displayName:"Profile__Centered",componentId:"sc-16uq4fw-10"})(["text-align:center;"]),le=Object(s.c)(P.a).withConfig({displayName:"Profile__Avatar",componentId:"sc-16uq4fw-11"})(["display:inline-block;height:128px;width:128px;"]),de=Object(s.c)(ee).withConfig({displayName:"Profile__TypeChip",componentId:"sc-16uq4fw-12"})(["height:20px;padding:4px 0;font-size:90%;background-color:",";color:",";"],(function(e){return e.rgbcolor}),(function(e){return e.theme.palette.common.white})),je=s.c.div.withConfig({displayName:"Profile__TableWrapper",componentId:"sc-16uq4fw-13"})(["overflow-y:auto;max-width:calc(100vw - ","px);"],(function(e){return e.theme.spacing(12)})),ue=s.c.div.withConfig({displayName:"Profile__MetaDataWell",componentId:"sc-16uq4fw-14"})(["display:block;margin-right:auto;background:",";color:",";border-radius:3px;padding:","px;margin-bottom:0;",";"],(function(e){return e.theme.palette.action.hover}),(function(e){return e.theme.palette.text.secondary}),(function(e){return e.theme.spacing(2)}),(function(e){return e.theme.shadows[1]})),he=Object(s.c)(M.a).withConfig({displayName:"Profile__StyledDeveloperIcon",componentId:"sc-16uq4fw-15"})(["margin-right:8px;&:hover{color:black;","}"],(function(e){return e.theme===j.v.DARK&&"\n        color: white;\n      "}
1)),be=Object(s.c)(w.a).withConfig({displayName:"Profile__PeriodChip",componentId:"sc-16uq4fw-16"})(["position:absolute;top:16px;right:16px;height:20px;padding:4px 0;font-size:85%;background-color:",";color:",";margin-bottom:","px;span{padding-left:","px;padding-right:","px;}"],(function(e){return e.theme.palette.secondary.main}),(function(e){return e.theme.palette.common.white}),(function(e){return e.theme.spacing(4)}),(function(e){return e.theme.spacing(2)}),(function(e){return e.theme.spacing(2)}));function me(){var e=Object(z.b)().user;return Object(Q.jsx)(Z,{mb:6,children:Object(Q.jsxs)(te,{children:[Object(Q.jsx)(N.a,{variant:"h6",gutterBottom:!0,children:"Profile Details"}),Object(Q.jsx)(se,{mb:4}),Object(Q.jsxs)(oe,{children:[Object(Q.jsx)(le,{alt:e.name,src:e.picture}),Object(Q.jsxs)(N.a,{variant:"body2",component:"div",gutterBottom:!0,children:[Object(Q.jsx)(S.a,{fontWeight:"fontWeightBold",children:e.name}),Object(Q.jsx)(S.a,{fontWeight:"fontWeightRegular",children:e.email}),e.email_verified&&Object(Q.jsx)(k.a,{title:"Email address has been verified.",children:Object(Q.jsx)(ne,{mt:1,variant:"outlined",label:"verified",size:"small"})}),!e.email_verified&&Object(Q.jsx)(k.a,{title:"Email address has not been verified.",children:Object(Q.jsx)(ce,{mt:1,variant:"outlined",label:"unverified",size:"small"})})]})]})]})})}var pe=function(){var e=Object(z.b)().user,t=Object(o.useState)(null),i=Object(r.a)(t,2),n=i[0],c=i[1],a=Object(o.useState)(!0),s=Object(r.a)(a,2),l=s[0],d=s[1],j=Object(U.c)((function(e){return e.themeReducer}));return Object(o.useEffect)((function(){d(!0),c(Object.assign(n||{},{theme:localStorage.getItem("theme")})),d(!1)}),[j.currentTheme]),Object(Q.jsx)(Z,{mb:6,children:Object(Q.jsxs)(te,{children:[Object(Q.jsxs)(re,{container:!0,justify:"flex-start",children:[Object(Q.jsx)(re,{item:!0,children:Object(Q.jsx)(k.a,{title:"This panel is only visible to Developers.",children:Object(Q.jsx)(he,{color:"disabled",theme:j.currentTheme})})}),Object(Q.jsx)(re,{item:!0,children:Object(Q.jsx)(N.a,{variant:"h6",gutterBottom:!0,children:"User Metadata"})})]}),Object(Q.jsx)(se,{mb:4}),Object(Q.jsxs)(ue,{children:[Object(Q.jsxs)(oe,{children:[Object(Q.jsx)(N.a,{variant:"caption",color:"textSecondary",title:"Auth0 User ID",children:e.sub}),Object(Q.jsx)(ae,{my:2})]}),n?Object(Q.jsx)("pre",{children:JSON.stringify(n,null,2)}):l?Object(Q.jsxs)(Q.Fragment,{children:[Object(Q.jsx)(N.a,{variant:"caption",children:Object(Q.jsx)(K,{})}),Object(Q.jsx)(ae,{my:2}),Object(Q.jsx)(K,{}),Object(Q.jsx)(K,{}),Object(Q.jsx)(K,{})]}):"No user metadata defined"]})]})})};function fe(e){var t=e.roles,i=e.loading;return Object(Q.jsx)(Z,{mb:6,children:Object(Q.jsxs)(te,{children:[Object(Q.jsx)(N.a,{variant:"h6",gutterBottom:!0,children:"Roles"}),Object(Q.jsx)(se,{mb:4}),t?t.map((function(e){return Object(Q.jsx)(ie,{size:"small",mr:1,mb:1,label:e},e)})):i?Object(Q.jsx)(Q.Fragment,{children:Object(Q.jsxs)(S.a,{display:"flex",children:[Object(Q.jsx)(K,{width:"50px",style:{marginRight:"5px"}}),Object(Q.jsx)(K,{width:"50px",style:{marginRight:"5px"}}),Object(Q.jsx)(K,{width:"50px",style:{marginRight:"5px"}}),Object(Q.jsx)(K,{width:"50px",style:{marginRight:"5px"}})]})}):"No roles defined"]})})}function Oe(){var e=Object(o.useState)(null),t=Object(r.a)(e,2),i=t[0],n=t[1],c=["s","sce","scp","scu","slo","ss","sv","f","fu","fs","gd_otp_rate_limit_exceed","gd_recovery_failed","gd_recovery_succeed","limit_mu","limit_wc","limit_sul"],a=function(e){return"s"===e?h.a[500]:"sce"===e||"scp"===e||"scu"===e?b.a[500]:"slo"===e?h.a[500]:"ss"===e||"sv"===e?b.a[500]:"f"===e||"fu"===e||"fs"===e||"gd_otp_rate_limit_exceed"===e?m.a[500]:"gd_recovery_failed"===e?p.a[500]:"gd_recovery_succeed"===e?b.a[500]:"limit_mu"===e||"limit_wc"===e||"limit_sul"===e?p.a[500]:f.a[500]},s=Object(o.useState)(!0),l=Object(r.a)(s,2),d=l[0],j=l[1];return Object(o.useEffect)((function(){j(!0),setTimeout((function(){n(null),j(!1)}),500)}),[]),Object(Q.jsx)(Z,{mb:6,children:Object(Q.jsxs)(te,{children:[Object(Q.jsx)(N.a,{variant:"h6",gutterBottom:!0,children:"User Authentication Logs"}),Object(Q.jsx)(be,{label:"Last 24 Hours"}
1),Object(Q.jsx)(se,{mb:4}),i?Object(Q.jsx)(je,{children:Object(Q.jsxs)(I.a,{children:[Object(Q.jsx)(q.a,{children:Object(Q.jsxs)(R.a,{children:[Object(Q.jsx)(B.a,{children:"Type"}),Object(Q.jsx)(B.a,{children:"Date"}),Object(Q.jsx)(B.a,{children:"IP Address"}),Object(Q.jsx)(B.a,{children:"Location"})]})}),Object(Q.jsx)(A.a,{children:i.filter((function(e){return c.includes(e.type)})).map((function(e){var t,i;return Object(Q.jsxs)(R.a,{children:[Object(Q.jsx)(B.a,{children:Object(Q.jsx)(de,{size:"small",label:(i=e.type,"s"===i?"Success Login":"sce"===i?"Success Change Email":"scp"===i?"Success Change Password":"scu"===i?"Success Change Username":"slo"===i?"Success Logout":"ss"===i?"Success Signup":"sv"===i?"Success Email Verification":"f"===i||"fu"===i?"Failed Login":"fs"===i?"Failed Signup":"gd_otp_rate_limit_exceed"===i?"Too Many Login Failures":"gd_recovery_failed"===i?"Recovery Failed":"gd_recovery_succeed"===i?"Recovery Success":"limit_mu"===i||"limit_wc"===i||"limit_sul"===i?"Blocked Account":void 0),rgbcolor:a(e.type)})}),Object(Q.jsx)(B.a,{component:"th",scope:"row",children:Object(Q.jsx)("span",{title:e.date,children:x()(e.date).fromNow()})}),Object(Q.jsx)(B.a,{children:e.ip}),Object(Q.jsx)(B.a,{children:null===(t=e.location_info)||void 0===t?void 0:t.city_name})]},e.date)}))})]})}):d?Object(Q.jsxs)(Q.Fragment,{children:[Object(Q.jsx)(K,{}),Object(Q.jsx)(K,{}),Object(Q.jsx)(K,{})]}):"No user logs defined"]})})}t.default=function(){var e=Object(z.b)(),t=e.user,i=e.getAccessTokenSilently,n=Object(o.useState)(!1),s=Object(r.a)(n,2),j=s[0],h=s[1],b=Object(o.useState)(null),m=Object(r.a)(b,2),p=m[0],f=m[1],O=Object(o.useState)(!0),x=Object(r.a)(O,2),g=x[0],v=x[1],w=Object(o.useState)(!1),_=Object(r.a)(w,2),y=_[0],C=_[1];return Object(o.useEffect)((function(){if(t){v(!1);var e=t["".concat("https://lre-up-spwqat","/roles")];f(e),e&&e.filter((function(e){return"Developer"===e})).length>0&&C(!0)}}),[t]),Object(Q.jsxs)(l.a.Fragment,{children:[Object(Q.jsx)(u.a,{title:"Profile"}),Object(Q.jsx)(N.a,{variant:"h3",gutterBottom:!0,display:"inline",children:"Profile"}),Object(Q.jsxs)(re,{container:!0,justify:"space-between",children:[Object(Q.jsx)(re,{item:!0,children:Object(Q.jsxs)(Y,{"aria-label":"Breadcrumb",mt:2,children:[Object(Q.jsx)(E.a,{component:d.c,exact:!0,to:"/",children:"Dashboard"}),Object(Q.jsx)(E.a,{component:d.c,exact:!0,to:"/account",children:"Account"}),Object(Q.jsx)(N.a,{children:"Profile"})]})}),Object(Q.jsx)(re,{item:!0,children:Object(Q.jsx)(k.a,{title:"Email password reset link to ".concat(t.email),children:Object(Q.jsx)(W.a,{variant:"outlined",onClick:function(){var e=function(){var e=Object(a.a)(c.a.mark((function e(){var t,n;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i();case 3:return t=e.sent,n={Authorization:"Bearer ".concat(t)},e.next=7,L.a.get("".concat("https://lre-up-spwqat.herokuapp.com","/api/user/password-change"),{headers:n});case 7:200===e.sent.status&&h(!0),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),console.log(e.t0.message);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();e()},children:"Reset Password"})})})]}),Object(Q.jsx)(ae,{my:6}),Object(Q.jsxs)(re,{container:!0,spacing:6,children:[Object(Q.jsxs)(re,{item:!0,xs:12,lg:4,xl:3,children:[Object(Q.jsx)(me,{}),Object(Q.jsx)(fe,{roles:p,loading:g}),y&&Object(Q.jsx)(pe,{})]}),Object(Q.jsx)(re,{item:!0,xs:12,lg:8,xl:9,children:Object(Q.jsx)(Oe,{})})]}),Object(Q.jsx)(D.a,{anchorOrigin:{vertical:"bottom",horizontal:"right"},open:j,onClose:function(){return h(!1)},message:"Password reset request has been emailed successfully."})]})}}}]);
2//# sourceMappingURL=9.3cea2422.chunk.js.map

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.