PageSourceSearch

https://www.markevansdm.com/_next/static/chunks/pages/impersonate-2b550371bd0b4b98.js

js markevansdm.com collected 2026-10-02 15:09:41 UTC 4,919 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2759],{966:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(7876),a=n(5062),i=n.n(a),l=n(8888),o=n(8993),s=n(6252);function u(){let e=(0,l._)(["\n  to {\n    transform: rotate(360deg);\n  }\n"]);return u=function(){return e},e}function c(){let e=(0,l._)(["\n  0%, 100% {\n    opacity: 0.55;\n  }\n  50% {\n    opacity: 1;\n  }\n"]);return c=function(){return e},e}function d(){let e=(0,l._)(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 1.1rem;\n  text-align: center;\n  padding: 3rem 1rem;\n  /* The portal renders without the site header, so its fullscreen loader gets\n     the whole viewport; everywhere else still has to clear the header. */\n  min-height: ",";\n  background-color: ",";\n"]);return d=function(){return e},e}function h(){let e=(0,l._)(["\n  width: ","px;\n  height: ","px;\n  border-radius: 50%;\n  border: ","px solid\n    ",";\n  border-top-color: ",";\n  border-right-color: ",";\n  animation: "," 0.8s linear infinite;\n"]);return h=function(){return e},e}function p(){let e=(0,l._)(["\n  font-family: ",";\n  font-size: 0.9rem;\n  letter-spacing: 0.02em;\n  color: ",";\n  animation: "," 1.6s ease-in-out infinite;\n"]);return p=function(){return e},e}let m=(0,o.i7)(u()),f=(0,o.i7)(c()),w=s.A.div(d(),e=>{let{fullscreen:t,surface:n,theme:r}=e;return t?"portal"===n?"100vh":"calc(100vh - ".concat(r.navHeight,"px)"):"240px"},e=>{let{fullscreen:t,surface:n,theme:r}=e;return t?"portal"===n?r.palette.portal.bg:r.palette.primary.dark:"transparent"}),g=s.A.span(h(),e=>{let{size:t}=e;return t},e=>{let{size:t}=e;return t},e=>{let{size:t}=e;return Math.max(2,Math.round(t/12))},e=>{let{surface:t,theme:n}=e;return"portal"===t?n.palette.portal.border:"rgba(255, 255, 255, 0.14)"},e=>{let{theme:t}=e;return t.palette.primary.main},e=>{let{theme:t}=e;return t.palette.secondary.light},m),v=s.A.span(p(),e=>{let{theme:t}=e;return t.fonts.primary},e=>{let{surface:t,theme:n}=e;return"portal"===t?n.palette.portal.textMuted:n.palette.text.mutedLight},f),x=e=>{let{label:t="Loading…",fullscreen:n=!1,size:a=52,surface:i="dark"}=e;return(0,r.jsxs)(w,{fullscreen:n,surface:i,children:[(0,r.jsx)(g,{size:a,surface:i,role:"status","aria-label":t}),t&&(0,r.jsx)(v,{surface:i,children:t})]})};x.propTypes={label:i().string,fullscreen:i().bool,size:i().number,surface:i().oneOf(["dark","portal"])};let y=x},1777:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(7876),a=n(4232),i=n(7328),l=n.n(i),o=n(966),s=n(7583);let u=async e=>{try{return await (0,s.RI)(e)}catch(r){var t;let n=null==r||null==(t=r.response)?void 0:t.status;if(!(!(null==r?void 0:r.response)||n>=500&&n<600))throw r;return await new Promise(e=>setTimeout(e,400)),(0,s.RI)(e)}},c=()=>{let[e,t]=(0,a.useState)(""),n=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(n.current)return;n.current=!0;let e=new URLSearchParams(window.location.hash.replace(/^#/,"")).get("t");if(window.location.hash&&window.history.replaceState(null,"",window.location.pathname),!e)return void t("This link is missing its ticket. Start again from the admin portal.");try{window.opener=null}catch(e){}try{window.sessionStorage.setItem("viewAsSession","1")}catch(e){}(async()=>{var n,r,a;try{await u(e)}catch(e){t((e=>{var t,n,r;let a=null==e||null==(t=e.response)?void 0:t.status;return 401===a?"This view-as link is no longer valid. Start again from the admin portal.":(null==e||null==(r=e.response)||null==(n=r.data)?void 0:n.message)?e.response.data.message:(null==e?void 0:e.response)&&!(a>=500)?"This view-as link could not be used. Start again from the admin portal.":"The server could not be reached just now. Try again from the admin portal."})(e));return}let i=!0;try{let{data:e}=await (0,s.Bz)();i=!!(null!=(r=null==e||null==(n=e.data)?void 0:n.data)?r:null==e?void 0:e.data)}catch(e){i=(null==e||null==(a=e.response)?void 0:a.status)!==401}if(!i)return t("The view-as session was created, but this browser did not keep it on ".concat(window.location.host,". That normally means SITE_URL in the API is a different spelling of this domain than the one serving this page, so the session cookie was stored somewhere else. Make the two match, www included."));window.location.replace("/dashboard/")})()},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l(),{children:[(0,r.jsx)("title",{children:"Opening member view"}),(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),e?(0,r.jsx)("div",{role:"alert",style:{minHeight:"60vh",display:"flex",alignItems:"center",justifyContent:"center",padding:"24px",textAlign:"center"},children:(0,r.jsx)("p",{style:{maxWidth:"32rem"},children:e})}):(0,r.jsx)(o.A,{fullscreen:!0,label:"Opening the member view…"})]})}}
1,3138:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/impersonate",function(){return n(1777)}])}},e=>{e.O(0,[8096,636,8792],()=>e(e.s=3138)),_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.