1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="b2196ad1-9ae0-47da-9dd0-5d2632ceea08",e._sentryDebugIdIdentifier="sentry-dbid-b2196ad1-9ae0-47da-9dd0-5d2632ceea08")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[106],{38418:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/guna-journal/[entryId]",function(){return t(62388)}])},62388:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return GunaJournalEntryPage}});var l=t(85893),n=t(67294),i=t(11163),s=t(33299),o=t(25675),r=t.n(o),c=t(76024),d=t(77394);t(21252);var y=t(69008);let u={rajas:"/guna-paints/choppy-ocean.png",sattva:"/guna-paints/calm-ocean.png",tamas:"/guna-paints/foggy-ocean.png"};function Section(e){let{label:a,children:t}=e;return t?(0,l.jsxs)("section",{className:"pt-4 border-t border-stone-200",children:[(0,l.jsx)("p",{className:"text-xs font-semibold text-stone-500 uppercase tracking-wide mb-2",children:a}),t]}):null}function GunaJournalEntryPage(){var e,a;let t=(0,i.useRouter)(),{entryId:o}=t.query,{status:m}=(0,s.useSession)(),[b,h]=(0,n.useState)(null),[f,g]=(0,n.useState)(null),[k,p]=(0,n.useState)(null),[v,w]=(0,n.useState)(!0),[x,I]=(0,n.useState)(null);(0,n.useEffect)(()=>{if("loading"===m||!t.isReady)return;if("unauthenticated"===m){t.replace("/auth/signin");return}let fetchEntry=async()=>{w(!0),I(null);try{let e=await fetch("/api/guna-journal/".concat(o)),a=await e.json();if(!e.ok)throw Error(a.error||"Entry not found");h(a.entry),g(a.reflection||null),p(a.narrative||null)}catch(e){I(e.message||"Unable to load this entry")}finally{w(!1)}};fetchEntry()},[o,t,m]);let j=(0,n.useMemo)(()=>{var e,a,t,l,n;if(!b)return null;let i=b.guna?b.guna.charAt(0).toUpperCase()+b.guna.slice(1):null,s="welcome"===b.welcomed?"Welcomed":"unwelcome"===b.welcomed?"Unwelcomed":null,o=(a=b.feltSense,t=b.framingKey,a&&t&&(null===(n=y[a])||void 0===n?void 0:null===(l=n.find(e=>e.key===t))||void 0===l?void 0:l.label)||null),r=b.feltSense?d.Zk[b.feltSense]||(null===(e=d.rD[b.feltSense])||void 0===e?void 0:e.label):null,c=o||r,u=[s,i].filter(Boolean).join(" ");return c?"".concat(u," (").concat(c,")"):u},[b]);return"loading"===m||v?(0,l.jsx)("div",{className:"min-h-screen bg-special flex items-center justify-center",children:(0,l.jsx)("div",{className:"text-gray-600",children:"Loading..."})}):"unauthenticated"===m?null:(0,l.jsx)("div",{className:"min-h-screen bg-special",children:(0,l.jsxs)("div",{className:"max-w-2xl mx-auto px-4 py-6",children:[(0,l.jsx)("div",{className:"mb-5",children:(0,l.jsx)(c.Z,{mini:!0,onClick:()=>t.push("/past-readings"),children:"Back to Past Readings"})}),x?(0,l.jsx)("div",{className:"bg-stone-50 rounded-lg border border-stone-800 p-6 text-stone-700",children:x}):(0,l.jsxs)("article",{className:"bg-transparent border-special p-6",children:[(0,l.jsxs)("header",{className:"flex items-center gap-4 mb-5",children:[(null==b?void 0:b.guna)&&(0,l.jsx)("div",{className:"relative w-14 h-14 rounded-md overflow-hidden flex-shrink-0 border border-stone-300",children:(0,l.jsx)(r(),{src:u[b.guna],alt:"",fill:!0,className:"object-cover",sizes:"56px"})}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h1",{className:"font-lora text-lg font-semibold text-stone-700",children:"State of Mind Journal"}),(0,l.jsx)("p",{className:"text-sm text-stone-500",children:function(e){if(!(null==e?void 0:e.createdAt))return"";let a=new Date(e.createdAt);return new Intl.DateTimeFormat("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}).format(a)}(b)})]})]}),(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)(Section,{label:"Entry",children:[(0,l.jsx)("p",{className:"text-sm text-stone-700 leading-relaxed",children:j}),(null==b?void 0:b.time_window)&&(0,l.jsxs)("p",{className:"text-xs text-stone-500 mt-1 capitalize",children:[b.time_window,b.timezone?" in ".concat(b.timezone):""]})]}),(0,l.jsx)(Section,{label:"Initial Insight",children:f?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"text-sm text-stone-700 leading-relaxed",children:f.text}),f.prompt&&(0,l.jsx)("p",{className:"text-sm text-stone-500 italic mt-2 leading-relaxed",children:f.prompt})]}):(0,l.jsx)("p",{className:"text-sm text-stone-500",children:"No initial insight was saved for this entry."})}),(0,l.jsx)(Section,{label:"Deep Dive",children:(null==k?void 0:k.interpretation)?k.interpretation.split("\n\n").map((e,a)=>(0,l.jsx)("p",{className:"text-sm text-stone-700 leading-relaxed ".concat(a>0?"mt-3":""),children:e},a)):(0,l.jsx)("p",{className:"text-sm text-stone-500",children:"No deep dive was saved for this entry."})}),((null==b?void 0:b.note)||(null==b?void 0:null===(e=b.tags)||void 0===e?void 0:e.length)>0)&&(0,l.jsxs)(Section,{label:"Note",children:[b.note&&(0,l.jsx)("p",{className:"text-sm text-stone-700 leading-relaxed whitespace-pre-wrap",children:b.note}),(null===(a=b.tags)||void 0===a?void 0:a.length)>0&&(0,l.jsx)("div",{className:"flex flex-wrap gap-2 mt-3",children:b.tags.map(e=>(0,l.jsx)("span",{className:"inline-flex items-center px-2.5 py-1 rounded-full text-xs font-medium bg-stone-100 text-stone-600 border border-stone-300",children:d.EV[e]||e},e))})]})]})]})]})})}},69008:function(e){"use strict";e.exports=JSON.parse('{"rajas.racing_mind":[{"key":"cognitive","label":"My mind is sprinting ahead of me"},{"key":"somatic","label":"My head feels tight and overstimulated"},{"key":"situational","label":"This morning/afternoon/tonight, I keep jumping to the next thing"},{"key":"relational","label":"It\'s hard to stay present with others"}],"rajas.somatic_restlessness":[{"key":"cognitive","label":"My attention won\'t settle in one place"},{"key":"somatic","label":"My body keeps buzzing for movement"},{"key":"situational","label":"Wherever I am, I feel like I should be elsewhere"},{"key":"relational","label":"My restlessness spills into how I relate"}],"rajas.anxious_bracing":[{"key":"cognitive","label":"I\'m scanning for what could go wrong"},{"key":"somatic","label":"My body is tense, ready to defend"},{"key":"situational","label":"I feel like I\'m waiting for impact"},{"key":"relational","label":"I stay guarded even in simple moments"}],"rajas.interpersonal_friction":[{"key":"cognitive","label":"I keep replaying tension with someone"}
1,{"key":"somatic","label":"My jaw and shoulders stay tight around people"},{"key":"situational","label":"Small interactions feel charged"},{"key":"relational","label":"Connection feels prickly, not smooth"}],"rajas.driven_pushing":[{"key":"cognitive","label":"I keep telling myself to push harder"},{"key":"somatic","label":"My body is forcing instead of flowing"},{"key":"situational","label":"I\'m trying to force timing"},{"key":"relational","label":"I pressure others to keep my pace"}],"rajas.focused_thinking":[{"key":"cognitive","label":"My thinking is focused and useful"},{"key":"somatic","label":"My energy feels alert and organized"},{"key":"situational","label":"I can see today\'s priority clearly"},{"key":"relational","label":"I can listen and respond with clarity"}],"rajas.embodied_energy":[{"key":"cognitive","label":"My mind and energy are working together"},{"key":"somatic","label":"I feel activated without feeling scattered"},{"key":"situational","label":"I have momentum for what\'s in front of me"},{"key":"relational","label":"My energy is available to engage"}],"rajas.eager_excitement":[{"key":"cognitive","label":"I\'m lit up by what I\'m moving toward"},{"key":"somatic","label":"My body feels bright and forward"},{"key":"situational","label":"Something ahead feels alive and possible"},{"key":"relational","label":"My excitement makes me more open"}],"rajas.reaching_out":[{"key":"cognitive","label":"I want to share or check in"},{"key":"somatic","label":"My body leans toward contact"},{"key":"situational","label":"This feels like a moment to connect"},{"key":"relational","label":"I feel warmly outward-facing"}],"rajas.directed_action":[{"key":"cognitive","label":"I know what matters next"},{"key":"somatic","label":"My effort feels strong and clean"},{"key":"situational","label":"I can move one clear step at a time"},{"key":"relational","label":"My actions feel intentional with others"}],"sattva.clarity":[{"key":"cognitive","label":"My mind is clear and unconflicted"},{"key":"somatic","label":"My breath and attention feel spacious"},{"key":"situational","label":"This part of the day feels mentally clean"},{"key":"relational","label":"I can hear others without inner noise"}],"sattva.presence_in_body":[{"key":"cognitive","label":"I\'m here, not elsewhere in my head"},{"key":"somatic","label":"I can feel my body from the inside"},{"key":"situational","label":"I\'m with this moment as it is"},{"key":"relational","label":"I feel authentic, not performing"}],"sattva.ease_with_what_is":[{"key":"cognitive","label":"I\'m not fighting reality right now"},{"key":"somatic","label":"My nervous system feels settled"},{"key":"situational","label":"I can meet this morning/afternoon/tonight without resistance"},{"key":"relational","label":"I can be with others as they are"}],"sattva.connection":[{"key":"cognitive","label":"My attention naturally includes others"},{"key":"somatic","label":"My chest feels open and warm"},{"key":"situational","label":"Connection feels simple and sincere"},{"key":"relational","label":"I feel mutuality, not effort"}],"sattva.aligned_action":[{"key":"cognitive","label":"My choices feel internally consistent"},{"key":"somatic","label":"My body supports what I\'m doing"},{"key":"situational","label":"My actions match my deeper values"},{"key":"relational","label":"I show up in a way that feels true"}],"sattva.disengaged_clarity":[{"key":"cognitive","label":"I can think clearly, but I feel detached"},{"key":"somatic","label":"My body feels quiet but far away"},{"key":"situational","label":"Everything is understandable, nothing feels personal"},{"key":"relational","label":"I\'m observant but not fully with people"}],"sattva.floaty_body":[{"key":"cognitive","label":"My thoughts are light but ungrounded"},{"key":"somatic","label":"I feel airy and untethered"},{"key":"situational","label":"I move through the day like I\'m hovering"},{"key":"relational","label":"I seem present, but I feel distant"}],"sattva.shut_off_calm":[{"key":"cognitive","label":"My calm feels protective, not open"},{"key":"somatic","label":"Stillness is here, but my heart feels closed"},{"key":"situational","label":"Nothing feels urgent because nothing gets in"},{"key":"relational","label":"I stay composed while emotionally sealed"}],"sattva.distant_compassion":[{"key":"cognitive","label":"I care in principle, not in felt contact"},{"key":"somatic","label":"My body is soft but not connected"},{"key":"situational","label":"I can offer kindness, but not close
1ness"},{"key":"relational","label":"My care is real, yet remote"}],"sattva.unmoored_peace":[{"key":"cognitive","label":"I\'m peaceful but lacking direction"},{"key":"somatic","label":"My body is calm, almost too neutral"},{"key":"situational","label":"This calm has no anchor in purpose"},{"key":"relational","label":"I can be with others, but without pull"}],"tamas.mental_fog":[{"key":"cognitive","label":"My mind feels slow and hazy"},{"key":"somatic","label":"My eyes and head feel heavy"},{"key":"situational","label":"Simple tasks blur together"},{"key":"relational","label":"It\'s hard to track others clearly"}],"tamas.heavy_numbness":[{"key":"cognitive","label":"Thinking feels muted"},{"key":"somatic","label":"My body feels dense and numb"},{"key":"situational","label":"Everything feels effortful and dull"},{"key":"relational","label":"I feel cut off behind a heavy wall"}],"tamas.flat_affect":[{"key":"cognitive","label":"Nothing is landing emotionally"},{"key":"somatic","label":"My body tone feels low and muted"},{"key":"situational","label":"The day feels colorless"},{"key":"relational","label":"I\'m present in form, not in feeling"}],"tamas.disconnection":[{"key":"cognitive","label":"I can\'t find words that feel real"},{"key":"somatic","label":"My body feels far from people"},{"key":"situational","label":"Interactions pass by without contact"},{"key":"relational","label":"Even closeness feels unreachable"}],"tamas.avoidance":[{"key":"cognitive","label":"I know what I\'m sidestepping"},{"key":"somatic","label":"My body wants to hide or stall"},{"key":"situational","label":"I keep postponing what matters"},{"key":"relational","label":"I pull away from accountability"}],"tamas.quiet_mind":[{"key":"cognitive","label":"My mind is quiet in a nourishing way"},{"key":"somatic","label":"My body feels settled and safe to rest"},{"key":"situational","label":"This part of the day invites stillness"},{"key":"relational","label":"I can be near others without effort"}],"tamas.restful_fatigue":[{"key":"cognitive","label":"I can let thinking stop for now"},{"key":"somatic","label":"My tiredness feels honest and restorative"},{"key":"situational","label":"The day feels complete enough to rest"},{"key":"relational","label":"I can soften with trusted company or solitude"}],"tamas.settled_stillness":[{"key":"cognitive","label":"I don\'t need to chase the next thought"},{"key":"somatic","label":"I feel grounded and pleasantly heavy"},{"key":"situational","label":"Slowness feels appropriate right now"},{"key":"relational","label":"Quiet company or aloneness both feel good"}],"tamas.chosen_solitude":[{"key":"cognitive","label":"Being alone feels clarifying"},{"key":"somatic","label":"My system settles when I have space"},{"key":"situational","label":"Stepping back feels wise for this moment"},{"key":"relational","label":"I choose distance as care, not withdrawal"}],"tamas.non_doing":[{"key":"cognitive","label":"Nothing inside me needs forcing"},{"key":"somatic","label":"My body has permission to be still"},{"key":"situational","label":"For this morning/afternoon/tonight, rest is enough"},{"key":"relational","label":"I can pause without proving anything"}]}')}},function(e){e.O(0,[1893,9774,2888,179],function(){return e(e.s=38418)}),_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.