PageSourceSearch

https://mymgconnect.com/assets/Journal-DG5oAhg0.js

js mymgconnect.com collected 2026-09-24 14:48:58 UTC 3,017 bytes, 1 lines download raw bytes

1import{r as o,j as t}from"./vendor-react-CoJda1Bd.js";import{a as x,L as u}from"./vendor-router-BG1ccVOB.js";import{L as n}from"./Layout-DJPFJEnW.js";import{P as f}from"./PortalBottomNav-C8v4d43x.js";import{B as h}from"./button-ozMsoqIh.js";import{s as m}from"./index-DRQAaCbt.js";import{u as g}from"./use-caregiver-context-B5bWaKto.js";import{J as j}from"./JournalPanel-Qu7uxnES.js";import{L as b,n as v}from"./vendor-icons-BbhXjgy5.js";import"./LogoMark-C8Gzk_Eb.js";import"./branding-CSuvK0zE.js";import"./vendor-radix-I618Mglk.js";import"./vendor-supabase-BI1TbgRl.js";import"./vendor-date-Ctl2uRge.js";import"./haptics-IUZ9jpTP.js";import"./VoiceEntryRecorder-Dv8acccw.js";import"./sinceLastVisitAnchor-Il07-Rd-.js";import"./label-BPNmfi2k.js";import"./calendar-31DnDnJr.js";import"./select-DPNV9hN7.js";import"./input-B2adqXLP.js";import"./textarea-B9C9WMMJ.js";import"./radio-group-D83kb3uo.js";import"./checkbox-DMpx7LYF.js";import"./badge-CHLB95D3.js";import"./alert-BldCaXLd.js";import"./card-CGxU6Ujh.js";import"./vendor-query-_n4XbDCE.js";import"./schemas-5iI55soa.js";import"./vendor-forms-BFc0VN4G.js";import"./treatmentDerivation-BmzSioBR.js";import"./intake-DaqTMNW9.js";import"./treatmentMatchers-CruuOT3h.js";import"./mgRelevance-C5hIcfPS.js";import"./vendor-charts-Df9hQbmF.js";import"./vendor-tiptap-tRxkggp8.js";function rt(){const[e,d]=o.useState(null),[c,p]=o.useState(!0),r=x(),i=g();return o.useEffect(()=>{const l=async()=>{const{data:{session:a}}=await m.auth.getSession();if(!a){r(`/auth?redirect=${encodeURIComponent(window.location.pathname)}`);return}if(i.isCaregiverViewing){r("/portal/dashboard");return}const{data:s}=await m.from("patients").select("id").eq("patient_id",a.user.id).maybeSingle();s?.id&&d(s.id),p(!1)};i.loading||l()},[r,i.loading,i.isCaregiverViewing]),c?t.jsx(n,{children:t.jsx("div",{className:"content-container section-padding",children:t.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:t.jsx(b,{className:"w-6 h-6 animate-spin text-muted-foreground"})})})}):t.jsxs(n,{children:[t.jsx("section",{className:"bg-gradient-to-b from-muted/50 to-background border-b border-border",children:t.jsx("div",{className:"content-container py-6",children:t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx(h,{variant:"ghost",size:"icon",asChild:!0,className:"mt-1 hidden md:inline-flex",children:t.jsx(u,{to:"/portal/dashboard",children:t.jsx(v,{className:"w-5 h-5"})})}),t.jsxs("div",{children:[t.jsx("h1",{className:"text-xl md:text-2xl font-serif font-bold text-foreground hidden md:block mb-1",children:"Journal"}),t.jsx("p",{className:"text-sm text-muted-foreground hidden md:block",children:"Your private notes — only you can read them"})]})]})})}),t.jsx("section",{className:"px-2.5 md:section-padding pb-24 xl:pb-6",children:t.jsx("div",{className:"content-container max-w-2xl",children:e&&t.jsx("div",{className:"space-y-4 pt-4",children:t.jsx(j,{patientId:e})})})}),e&&t.jsx(f,{patientId:e})]})}export{rt 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.