1import{a as de,b as ce,r as d,g as me,f as xe,p as $,j as e,L as F,c as he,C as Y,d as pe,e as P,h as be,G as z,i as Q,X as K,S as B,k as ue,l as fe,s as ge,B as ye,q as je,m as we,n as Ne,w as ve,o as Ee,t as Se,v as ke,D as V,x as Ce,y as De}from"./index-D82aNb1r.js";import{T as Te}from"./TodayInEthiopianHistoryCard-B_1ypG_o.js";import{S as Ae}from"./SocialShare-BI4mvhXG.js";import{E as X}from"./EditHistoryEventModal-D-iawV7c.js";import{H as Me}from"./HistoryEventDetailModal-WHo0Ly4p.js";import{S as Le}from"./SEOHead-iRFO5ScQ.js";import{A as $e}from"./arrow-left-ByACYP1J.js";import{T as He}from"./tag-wEksvhq3.js";import{P as J}from"./pen-line-DrANO68i.js";import"./HistoricalImagePlaceholder-BUfP8xsm.js";import"./imageOptimization-DN6a4zir.js";import"./chevron-left-DR0CKUKS.js";import"./send-BHb2NlWg.js";import"./message-circle-BB6jNWzx.js";import"./copy-BWMihUhf.js";import"./printer-DPZbjqrG.js";import"./list-Co21CSIL.js";import"./link-DoqzpNzk.js";import"./image-B4PVkrHk.js";import"./eye-BAMBDp1V.js";import"./minimize-2-CttkLWT-.js";import"./maximize-2-DfJyBEWB.js";import"./upload-ClJRz50d.js";import"./rotate-ccw-gQ8IczoB.js";import"./wand-sparkles-CMB1Uqbx.js";import"./trash-2-x7t2PzmZ.js";import"./save-BtDfcIPz.js";import"./volume-2-C_H6SiRh.js";import"./play-bv0sAK5C.js";import"./pause-DVz7_z4q.js";import"./square-DJuMW2e-.js";import"./AcademicCitationModal-CN9X-qwW.js";import"./external-link-DFzpHVWq.js";import"./chevron-up-BT1T2G7E.js";function Z({text:p,highlight:n}){if(!n.trim()||!p)return e.jsx("span",{children:p});const S=n.trim().replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),k=new RegExp(`(${S})`,"gi"),c=p.split(k);return e.jsx("span",{children:c.map((x,y)=>k.test(x)?e.jsx("mark",{className:"bg-amber-300 text-slate-950 font-bold px-0.5 rounded",children:x},y):x)})}const Oe=["Adwa","Menelik II","Lalibela","Axum","Haile Selassie","Fasilides","Yekatit","Treaty of Wuchale"];function ut(){const{currentUser:p,userProfile:n,hasPermission:S,hasRole:k}=de(),c=!!((p==null?void 0:p.email)==="[email protected]"||(n==null?void 0:n.role)==="super_admin"||(n==null?void 0:n.role)==="editor"||(n==null?void 0:n.role)==="moderator"||(n==null?void 0:n.role)==="contributor"||S("history:manage")||S("articles:publish")||k(["super_admin","editor","moderator","contributor"])||typeof window<"u"&&(localStorage.getItem("ethioexplorer_admin_mode")==="true"||localStorage.getItem("ethioexplorer_demo_admin")==="true")),[x,y]=ce(),ee=x.get("q")||x.get("search")||"",[l,G]=d.useState(ee),[b,j]=d.useState([]),[te,se]=d.useState(!0),[f,H]=d.useState("all"),[u,C]=d.useState(null),[ae,D]=d.useState(!1),[O,re]=d.useState(null),[oe,I]=d.useState(!1),[ne,w]=d.useState(!1),N=new Date,a=me(N),T=xe(N),U=t=>{if(G(t),t.trim())y({search:t.trim()},{replace:!0});else{const s=new URLSearchParams(x);s.delete("search"),s.delete("q"),y(s,{replace:!0})}},R=()=>{G("");const t=new URLSearchParams(x);t.delete("search"),t.delete("q"),y(t,{replace:!0})};d.useEffect(()=>{async function t(){try{let s=[];try{const o=je(we(Ne,"historyEvents"),ve("status","==","published"),Ee("createdAt","desc"),Se(100));s=(await ke(o)).docs.map(E=>({id:E.id,...E.data()}))}catch(o){console.warn("History events query failed (Quota limit exceeded or offline), using fallback:",(o==null?void 0:o.message)||o)}const r=new Set(s.map(o=>String(o.title).toLowerCase().trim())),i=V.filter(o=>!r.has(String(o.title).toLowerCase().trim()));s=[...s,...i];const h=Ce(N);let v=[{...h[0],isTodaySpecial:!0,ethiopianDate:h[0].ethiopianDate||`${a.monthNameEn} ${a.day}, ${a.year} E.C.`,gregorianDate:h[0].gregorianDate||T},...s];const M=new Set;v=v.filter(o=>{const m=String(o.id||o.title||"").toLowerCase().trim();return M.has(m)?!1:(M.add(m),!0)});const L=v.map(o=>({...o,isTodayMatch:De(o,N)}));L.sort((o,m)=>{if(o.isTodayMatch&&!m.isTodayMatch)return-1;if(!o.isTodayMatch&&m.isTodayMatch)return 1;const E=o.monthEth||$(o.ethiopianDate),W=m.monthEth||$(m.ethiopianDate);return E===a.month&&W!==a.month?-1:E!==a.month&&W===a.month?1:0}),j(L)}catch(s){console.error("Error fetching events:",s),j([...V])}finally{se(!1)}}t()},[]);const _=d.useMemo(()=>{let t=b;f==="today"?t=t.filter(r=>r.isTodayMatch):f==="month"&&(t=t.filter(r=>(r.monthEth||$(r.ethiopianDate))===a.month||r.isTodayMatch));const s=l.trim().toLowerCase();return s&&(t=t.filter(r=>{const i=String(r.title||"").toLowerCase(),h=String(r.summary||"").toLowerCase(),g=typeof r.content=="string"?r.content.toLowerCase():"",v=String(r.location||"").toLowerCase(),M=String(r.category||"").toLowerCase(),L=String(r.year||r.eventYearEth||"").toLowerCase(),o=String(r.ethiopianDate||"").toLowerCase(),m=String(r.gregorianDate||r.eventDateGregorian||"").toLowerCase();return i.includes(s)||h.includes(s)||g.includes(s)||v.includes(s)||M.includes(s)||L.includes(s)||o.includes(s)||m.includes(s)})),t},[b,f,a.month,l]),le=d.useMemo(()=>b.filter(t=>t.isTodayMatch).length,[b]),ie=d.useMemo(()=>b.filter(t=>(t.monthEth||$(t.ethiopianDate))===a.month||t.isTodayMatch).length,[b,a.month]),q=t=>{C(t),D(!0)},A=t=>{re(t),I(!0)};return e.jsxs("div",{className:"max-w-[1024px] mx-auto px-4 md:px-6 py-8",children:[e.jsx(Le,{title:"Today in Ethiopian History - Daily Archives & Anniversaries | EthioExplorer",description:`Discover historical milestones that happened today in Ethiopian History (${a.monthNameEn} ${a.day} / ${a.monthNameAm}). Historical battles, royal decrees, treaties, and cultural events.`,canonical:"https://ethioexplorer.com/history/today",keywords:`Today in Ethiopian history, ${a.monthNameEn} Ethiopian history, Ethiopian calendar today, Bahire Hasab anniversaries`}),e.jsxs("div",{className:"mb-6 flex flex-wrap items-center justify-between gap-3",children:[e.jsxs(F,{to:"/",className:"inline-flex items-center gap-2 text-xs font-bold text-emerald-800 hover:text-emerald-900 transition-colors uppercase tracking-wider",children:[e.jsx($e,{className:"w-4 h-4"}),e.jsx("span",{children:"Back to Home"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(F,{to:"/history",className:"text-xs font-bold text-slate-600 hover:text-emerald-800 transition-colors",children:"Historical Archives"}),e.jsx("span",{className:"text-slate-300",children:"â¢"}),e.jsx("span",{className:"text-xs font-mono text-slate-400",children:"EthioExplorer Digital Archive"})]})]}),c&&e.jsxs("div",{className:"mb-6 bg-gradient-to-r from-slate-900 via-emerald-950 to-slate-900 border border-amber-500/50 rounded-2xl p-4 text-white shadow-lg flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-amber-400 text-slate-950 flex items-center justify-center font-black shadow-md border border-amber-300 shrink-0",children:e.jsx(he,{className:"w-5 h-5 text-slate-950"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h3",{className:"text-sm font-bold text-white",children:"Administrator Portal Controls Active"}),e.jsx("span",{className:"bg-amber-400/20 text-amber-300 border border-amber-400/40 text-[10px] font-mono font-bold px-2 py-0.5 rounded-full uppercase",children:"Live Editing"})]}),e.jsx("p",{className:"text-xs text-slate-300",children:"You can create, edit, update, or remove historical records directly from this public view."})]})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[e.jsxs("button",{type:"button",onClick:()=>w(!0),className:"px-3.5 py-2 bg-amber-400 hover:bg-amber-300 text-slate-950 font-black text-xs uppercase tracking-wider rounded-xl transition-all shadow-md flex items-center gap-1.5 border border-amber-200 cursor-pointer",children:[e.jsx(Y,{className:"w-4 h-4 text-slate-950"}),e.jsx("span",{children:"+ Add Today's Event"})]}),e.jsxs(F,{to:"/admin/history",className:"px-3 py-2 bg-slate-800 hover:bg-slate-700 text-slate-200 hover:text-white font-bold text-xs uppercase tracking-wider rounded-xl transition-all border border-slate-700 flex items-center gap-1",children:[e.jsx(pe,{className:"w-3.5 h-3.5 text-amber-400"}),e.jsx("span",{children:"Admin History Hub"})]})]})]}),e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 bg-emerald-50 text-emerald-800 border border-emerald-200 px-3 py-1 rounded-full text-xs font-bold uppercase tracking-widest mb-3",children:[e.jsx(P,{className:"w-3.5 h-3.5 text-amber-600"}),e.jsx("span",{children:"On This Day"})]}),e.jsx("h1",{className:"text-3xl md:text-5xl font-serif font-black tracking-tighter text-slate-900 mb-3",children:"Today in Ethiopian History"}),e.jsx("p",{className:"text-base text-slate-600 max-w-2xl mx-auto mb-4",children:"Discover the pivotal historical milestones, leaders, and cultural triumphs that occurred on this day."}),e.jsxs("div",{className:"inline-flex flex-wrap items-center justify-center gap-3 bg-white px-4 py-2.5 rounded-2xl border border-slate-200 shadow-sm text-xs font-mono",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-amber-800 font-bold border-r border-slate-200 pr-3",children:[e.jsx(be,{className:"w-4 h-4 text-amber-600"}),e.jsxs("span",{children:["Eth: ",a.monthNameEn," ",a.day,", ",a.year," E.C. (",a.monthNameAm," ",a.geezNumeral,")"]})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-emerald-800 font-bold",children:[e.jsx(z,{className:"w-4 h-4 text-emerald-600"}),e.jsxs("span",{children:["European Date: ",T]})]})]})]}),e.jsxs("div",{className:"mb-8 bg-white p-4 sm:p-5 rounded-2xl border border-slate-200 shadow-sm",children:[e.jsxs("form",{role:"search","aria-label":"Filter Today in History records by keyword, historical figures, or event name",onSubmit:t=>t.preventDefault(),className:"relative flex items-center",children:[e.jsx("label",{htmlFor:"today-history-search-input",className:"sr-only",children:"Search historical events by keyword or event name"}),e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-emerald-800 pointer-events-none flex items-center",children:e.jsx(Q,{className:"w-5 h-5"})}),e.jsx("input",{id:"today-history-search-input",type:"search",role:"searchbox","aria-label":"Search Today in Ethiopian History by keyword, emperor, battle, or event name",placeholder:"Search historical events, emperors, battles, treaties (e.g. Adwa, Menelik II, Lalibela, Axum)...",value:l,onCh
1ange:t=>U(t.target.value),className:"w-full pl-12 pr-12 py-3.5 bg-slate-50 border border-slate-200 rounded-xl text-sm font-medium text-slate-900 placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-emerald-600 focus:bg-white transition-all shadow-inner"}),l&&e.jsx("button",{type:"button",onClick:R,"aria-label":"Clear search input",className:"absolute right-3.5 top-1/2 -translate-y-1/2 p-1.5 text-slate-400 hover:text-slate-700 rounded-lg hover:bg-slate-200/60 transition-colors",children:e.jsx(K,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-3.5 flex flex-wrap items-center gap-2 pt-3 border-t border-slate-100 text-xs",children:[e.jsxs("div",{className:"flex items-center gap-1 text-slate-500 font-bold shrink-0",children:[e.jsx(He,{className:"w-3.5 h-3.5 text-amber-500"}),e.jsx("span",{children:"Popular:"})]}),Oe.map(t=>e.jsx("button",{type:"button",onClick:()=>U(t),className:`px-2.5 py-1 rounded-lg text-xs font-semibold transition-all cursor-pointer ${l.toLowerCase()===t.toLowerCase()?"bg-emerald-800 text-white shadow-xs font-bold":"bg-slate-100 text-slate-700 hover:bg-emerald-50 hover:text-emerald-800"}`,children:t},t)),l&&e.jsxs("button",{type:"button",onClick:R,className:"text-xs text-rose-600 hover:text-rose-700 font-bold ml-auto flex items-center gap-1 hover:underline cursor-pointer",children:[e.jsx(K,{className:"w-3 h-3"}),e.jsx("span",{children:"Reset Search"})]})]})]}),e.jsx(Te,{}),e.jsxs("div",{className:"mt-12 mb-6 flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-slate-200 pb-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("h2",{className:"text-xl md:text-2xl font-serif font-black text-slate-900 flex items-center gap-2",children:[e.jsx(P,{className:"w-6 h-6 text-emerald-800"}),e.jsx("span",{children:"Historical Timeline Records"})]}),c&&e.jsxs("button",{onClick:()=>w(!0),className:"text-xs bg-emerald-100 hover:bg-emerald-200 text-emerald-900 border border-emerald-300 font-bold px-2.5 py-1 rounded-lg flex items-center gap-1 cursor-pointer transition-colors",title:"Add a new event",children:[e.jsx(Y,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Add Event"})]})]}),l&&e.jsxs("p",{className:"text-xs text-emerald-800 font-bold mt-1 flex items-center gap-1",children:[e.jsx("span",{children:"Showing results for"}),e.jsxs("span",{className:"bg-emerald-100 text-emerald-950 px-2 py-0.5 rounded font-mono font-black",children:['"',l,'"']}),e.jsxs("span",{children:["(",_.length," records found)"]})]})]}),e.jsxs("div",{className:"flex items-center gap-1.5 bg-slate-100 p-1 rounded-2xl border border-slate-200 text-xs font-bold",children:[e.jsxs("button",{onClick:()=>H("all"),className:`px-3 py-1.5 rounded-xl transition-all ${f==="all"?"bg-emerald-800 text-white shadow-sm":"text-slate-600 hover:text-slate-900"}`,children:["All Timeline (",b.length,")"]}),e.jsxs("button",{onClick:()=>H("today"),className:`px-3 py-1.5 rounded-xl transition-all flex items-center gap-1 ${f==="today"?"bg-amber-400 text-slate-950 font-black shadow-sm":"text-slate-600 hover:text-amber-900"}`,children:[e.jsx(B,{className:"w-3.5 h-3.5"}),e.jsxs("span",{children:["Today's Events (",le,")"]})]}),e.jsxs("button",{onClick:()=>H("month"),className:`px-3 py-1.5 rounded-xl transition-all ${f==="month"?"bg-emerald-800 text-white shadow-sm":"text-slate-600 hover:text-slate-900"}`,children:[a.monthNameEn," Month (",ie,")"]})]})]}),te?e.jsx("div",{className:"text-center text-slate-500 py-12 animate-pulse",children:"Loading historical events..."}):_.length===0?e.jsxs("div",{className:"text-center text-slate-600 py-12 bg-slate-50 rounded-2xl border border-slate-200 space-y-4 p-6",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-amber-100 text-amber-700 flex items-center justify-center mx-auto",children:e.jsx(Q,{className:"w-6 h-6"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-serif font-bold text-slate-900 text-lg",children:l?`No historical records found for "${l}"`:"No records found for the selected filter option"}),e.jsx("p",{className:"text-xs text-slate-500 mt-1 max-w-md mx-auto",children:l?"Try searching with a broader keyword, an alternative spelling (e.g., Menelik, Adwa, Axum), or clear the search f
1ilter.":"Switch between timeline filter modes to explore more events from across Ethiopian history."})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2 pt-2",children:[l&&e.jsx("button",{onClick:R,className:"px-4 py-2 bg-emerald-800 text-white font-bold text-xs rounded-xl shadow-xs hover:bg-emerald-700 transition-colors",children:"Clear Search Filter"}),c&&e.jsxs("button",{onClick:()=>w(!0),className:"px-4 py-2 bg-amber-400 text-slate-950 font-bold text-xs rounded-xl shadow-xs hover:bg-amber-300 transition-colors inline-flex items-center gap-1.5",children:[e.jsx(Y,{className:"w-4 h-4"}),e.jsx("span",{children:"Create New Record"})]})]})]}):e.jsx("div",{className:"space-y-10 relative before:absolute before:inset-0 before:ml-5 before:-translate-x-px md:before:mx-auto md:before:translate-x-0 before:h-full before:w-0.5 before:bg-gradient-to-b before:from-transparent before:via-slate-300 before:to-transparent",children:_.map((t,s)=>{const r=t.gregorianDate?new Date(t.gregorianDate):t.eventDateGregorian?new Date(t.eventDateGregorian):null,i=r?ue(r):T,h=fe(t.gregorianDate||t.eventDateGregorian,t.year||t.eventYearEth,t.ethiopianDate),g=t.isTodayMatch;return e.jsxs("div",{className:"relative flex items-center justify-between md:justify-normal md:odd:flex-row-reverse group is-active",children:[e.jsx("div",{className:`flex items-center justify-center w-10 h-10 rounded-full border-4 border-white shrink-0 md:order-1 md:group-odd:-translate-x-1/2 md:group-even:translate-x-1/2 shadow flex-col leading-none transition-colors ${g?"bg-amber-400 text-slate-950 ring-2 ring-amber-500":"bg-emerald-800 text-emerald-50"}`,children:e.jsx(P,{className:"w-4 h-4"})}),e.jsxs("div",{className:`w-[calc(100%-4rem)] md:w-[calc(50%-2.5rem)] p-6 rounded-2xl border transition-all shadow-sm hover:shadow-md ${g?"bg-amber-50/50 border-amber-300 ring-1 ring-amber-200/80":"bg-white border-slate-200"}`,children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between mb-3 gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[g&&e.jsxs("span",{className:"text-[10px] font-mono font-black text-slate-950 bg-amber-400 border border-amber-300 px-2.5 py-1 rounded-md uppercase tracking-wider flex items-center gap-1 shadow-sm",children:[e.jsx(B,{className:"w-3 h-3 text-slate-950 fill-slate-950"}),e.jsx("span",{children:"TODAY'S EVENT"})]}),e.jsxs("span",{className:"text-[11px] font-bold text-amber-900 bg-amber-100/80 border border-amber-200 px-2.5 py-1 rounded-md font-mono uppercase tracking-wider",children:["Eth: ",t.ethiopianDate||`${a.monthNameEn} ${a.day}`]}),e.jsxs("span",{className:"text-[11px] font-bold text-emerald-900 bg-emerald-50 border border-emerald-200 px-2.5 py-1 rounded-md font-mono uppercase tracking-wider flex items-center gap-1",children:[e.jsx(z,{className:"w-3 h-3 text-emerald-700"}),"Eur: ",i]}),h&&e.jsxs("span",{className:"text-[10px] font-mono font-black text-slate-950 bg-gradient-to-r from-amber-400 to-amber-500 border border-amber-300 px-2.5 py-1 rounded-md uppercase tracking-wider flex items-center gap-1 shadow-sm",children:[e.jsx(B,{className:"w-3 h-3 text-slate-950 fill-slate-950"}),e.jsx("span",{children:h.formattedEn})]})]}),c&&e.jsxs("button",{type:"button",onClick:()=>q(t),className:"bg-amber-400 hover:bg-amber-300 text-slate-950 font-black text-[10px] uppercase tracking-wider px-2.5 py-1 rounded-lg transition-all shadow-sm flex items-center gap-1 border border-amber-300 cursor-pointer shrink-0",title:"Edit this event as Administrator",children:[e.jsx(J,{className:"w-3 h-3 text-slate-950"}),e.jsx("span",{children:"Edit"})]})]}),e.jsx("h3",{onClick:()=>A(t),className:"text-xl font-serif font-bold text-slate-900 mb-2 hover:text-emerald-800 cursor-pointer transition-colors",children:e.jsx(Z,{text:t.title,highlight:l})}),e.jsx("p",{onClick:()=>A(t),className:"text-sm text-slate-600 mb-4 leading-relaxed cursor-pointer hover:text-slate-900",children:e.jsx(Z,{text:t.summary,highlight:l})}),t.content&&e.jsx("div",{onClick:()=>A(t),className:"prose prose-sm prose-slate line-clamp-3 mb-4 text-xs text-slate-500 leading-relaxed cursor-pointer",dangerouslySetInnerHTML:{__html:ge(t.content)}}),e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 pt-3 border-t border-slate-100 dar
1k:border-slate-800",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("button",{type:"button",onClick:()=>A(t),className:"inline-flex items-center gap-1.5 text-emerald-800 font-bold text-xs uppercase tracking-widest hover:text-emerald-950 transition-colors cursor-pointer",children:[e.jsx(ye,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Read Details"})," â"]}),c&&e.jsxs("button",{type:"button",onClick:()=>q(t),className:"inline-flex items-center gap-1 text-amber-700 hover:text-amber-900 font-bold text-xs px-2 py-1 bg-amber-50 hover:bg-amber-100 rounded-md border border-amber-200 transition-colors cursor-pointer",children:[e.jsx(J,{className:"w-3 h-3"}),e.jsx("span",{children:"Admin Edit"})]})]}),e.jsx(Ae,{title:t.title,summary:t.summary,url:typeof window<"u"?`${window.location.origin}/history?search=${encodeURIComponent(t.title)}`:void 0,date:t.gregorianDate||t.ethiopianDate,variant:"pill",buttonLabel:"Share"})]})]})]},`${t.id}-${s}`)})}),e.jsx(Me,{isOpen:oe,onClose:()=>I(!1),event:O,canEdit:c,onEdit:()=>{I(!1),O&&q(O)}}),c&&e.jsx(X,{isOpen:ae,onClose:()=>{D(!1),C(null)},event:u,sectionTitle:"Edit Today in History Event",onSaved:t=>{j(s=>s.some(i=>i.id===t.id||u&&i.id===u.id)?s.map(i=>i.id===t.id||u&&i.id===u.id?{...i,...t}:i):[t,...s]),D(!1),C(null)},onDeleted:t=>{j(s=>s.filter(r=>r.id!==t&&(u?r.id!==u.id:!0))),D(!1),C(null)}}),c&&e.jsx(X,{isOpen:ne,onClose:()=>w(!1),event:{title:"",ethiopianDate:`${a.monthNameEn} ${a.day}, ${a.year} E.C. (${a.monthNameAm} ${a.geezNumeral})`,gregorianDate:T,year:`${N.getFullYear()} AD (${a.year} E.C.)`,category:"Historical Milestone",location:"Ethiopia",summary:"",content:"",status:"published",era:"modern"},sectionTitle:"Add New Event for Today",onSaved:t=>{j(s=>[t,...s]),w(!1)}})]})}export{ut 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.