PageSourceSearch

https://mymgconnect.com/assets/AppLockOverlay-BvT92zGc.js

js mymgconnect.com collected 2026-09-24 14:49:51 UTC 2,860 bytes, 1 lines download raw bytes

1import{r as n,j as t}from"./vendor-react-CoJda1Bd.js";import{E as w,F as y,s as k}from"./index-DRQAaCbt.js";import{L as g}from"./LogoMark-C8Gzk_Eb.js";import{B as f}from"./branding-CSuvK0zE.js";import{at as v}from"./vendor-icons-BbhXjgy5.js";import"./vendor-radix-I618Mglk.js";import"./vendor-supabase-BI1TbgRl.js";import"./vendor-charts-Df9hQbmF.js";import"./vendor-query-_n4XbDCE.js";import"./vendor-router-BG1ccVOB.js";import"./vendor-date-Ctl2uRge.js";function _(){const[o,m]=n.useState(!1),[a,s]=n.useState(!1),[i,l]=n.useState(!1),[c,u]=n.useState(!1);if(n.useEffect(()=>w(e=>{m(e),e&&(s(!1),u(!1))}),[]),n.useEffect(()=>{if(!o)return;const e=setTimeout(()=>u(!0),700);return()=>clearTimeout(e)},[o]),n.useEffect(()=>{if(!o)return;window.history.pushState({__appLock:!0},"");const e=()=>{o&&window.history.pushState({__appLock:!0},"")};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[o]),n.useEffect(()=>{if(!o)return;const e=document.body.style.overflow;document.body.style.overflow="hidden";const d=p=>{p.stopPropagation(),p.preventDefault()};return window.addEventListener("keydown",d,!0),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",d,!0)}},[o]),!o)return null;const h=async()=>{l(!0),s(!1);const e=await y();l(!1),e.ok||s(!0)},x=async()=>{try{await k.auth.signOut()}catch{}window.location.href="/auth"},r=e=>{e.stopPropagation()};return t.jsx("div",{role:"dialog","aria-modal":"true","aria-label":`${f} is locked`,onPointerDownCapture:r,onTouchStartCapture:r,onClickCapture:r,onWheelCapture:r,className:"fixed inset-0 flex flex-col items-center justify-center bg-[#F5EFE3] dark:bg-neutral-950 text-neutral-900 dark:text-neutral-100 select-none",style:{zIndex:2147483647,paddingTop:"env(safe-area-inset-top)",paddingBottom:"env(safe-area-inset-bottom)",touchAction:"none",overscrollBehavior:"contain"},children:t.jsxs("div",{className:"flex flex-col items-center gap-6 px-6 text-center",children:[t.jsx(g,{className:"h-14 w-14"}),t.jsx(v,{"aria-hidden":"true",className:"h-16 w-16 text-neutral-700 dark:text-neutral-300",strokeWidth:1.4}),t.jsxs("p",{className:"text-lg font-medium",children:[f," is locked."]}),a&&t.jsx("p",{className:"text-sm text-muted-foreground -mt-2",children:"Authentication failed. Try again or sign out."}),t.jsxs("div",{className:`mt-2 flex flex-col items-center gap-4 transition-opacity duration-200 ${c||a?"opacity-100":"opacity-0 pointer-events-none"}`,"aria-hidden":!(c||a),children:[t.jsx("button",{type:"button",onClick:h,disabled:i,className:"rounded-full bg-primary px-8 py-3 text-primary-foreground font-medium shadow-sm disabled:opacity-60",children:i?"Unlocking…":"Unlock"}),t.jsx("button",{type:"button",onClick:x,className:"text-sm text-muted-foreground underline underline-offset-4",children:"Sign out"})]})]})})}export{_ as default};

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.