1import{r as n,j as e}from"./vendor-react-NDqzZ9RJ.js";import{M as m,E as c,a as i}from"./index-CoM1tmaP.js";import{S as x}from"./save-ZiMIJwPY.js";import"./vendor-pdf-DcnCMWs_.js";import"./vendor-charts-BLT5JiYK.js";import"./vendor-tiptap-BiZ4HMKr.js";function b(){const[r,t]=n.useState(""),[l,o]=n.useState("ð"),d=()=>{if(r.trim().length<5){i.error("Lütfen rüyandan birkaç cümle yaz.");return}try{const a=localStorage.getItem("telvem.dreams.local")||"[]",s=JSON.parse(a);s.unshift({date:new Date().toISOString(),mood:l,text:r}),localStorage.setItem("telvem.dreams.local",JSON.stringify(s.slice(0,100)))}catch{}i.success("Rüya günlüÄüne kaydedildi ð"),t("")};return e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("section",{children:[e.jsx("h2",{className:"font-display text-2xl gold-text",children:"Rüya GünlüÄüm"}),e.jsx("p",{className:"text-muted-foreground mt-1 leading-relaxed",children:"GördüÄün rüyaları özel günlüÄüne kaydet. KiÅisel günlük ve öz-yansıma amaçlı bir alandır."})]}),e.jsx("div",{className:"rounded-xl border border-primary/25 bg-primary/5 px-4 py-3 text-xs text-foreground/80 leading-relaxed",children:"â¹ï¸ Bu alan kiÅisel günlük ve kendini ifade etme amacıyla tasarlanmıÅtır."}),e.jsxs("div",{className:"glow-card p-4 flex flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(m,{className:"w-4 h-4"}),e.jsx("span",{children:new Date().toLocaleDateString("tr-TR",{weekday:"long",day:"numeric",month:"long"})})]}),e.jsx("div",{className:"flex gap-2",children:["ð","ð","ð","ð","ð¤©"].map(a=>e.jsx("button",{onClick:()=>o(a),className:`text-2xl w-10 h-10 rounded-xl border ${l===a?"bg-primary/20 border-primary/50":"bg-bg-elevated/60 border-primary/15"}`,"aria-label":`Ruh hali ${a}`,children:a},a))}),e.jsx("textarea",{value:r,onChange:a=>t(a.target.value),placeholder:"Bu gece neler gördün? HatırladıÄın detayları yazâ¦",className:"w-full min-h-[160px] rounded-xl bg-bg-elevated/60 border border-primary/15 p-3 text-sm leading-relaxed focus:outline-none focus:border-primary/50 resize-none"}),e.jsxs("button",{onClick:d,className:"h-11 rounded-xl bg-gradient-primary text-white font-semibold inline-flex items-center justify-center gap-2 shadow-glow",children:[e.jsx(x,{className:"w-4 h-4"})," GünlüÄe kaydet"]})]}),e.jsx(c,{})]})}export{b 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.