PageSourceSearch

https://islamicdivinesystem.com/assets/ForumQuestion-NEuoVwqk.js

js islamicdivinesystem.com collected 2026-10-09 21:48:01 UTC 20,251 bytes, 1 lines download raw bytes

1import{j as e,u as ce}from"./index-Ca8Qthj3.js";import{b as o,L as A,f as de,e as me,u as ue}from"./react-vendor-Coattl4B.js";import{P as O}from"./PageWrapper-CfB8YiZS.js";import{P as xe}from"./PageHead-BV4JoAsM.js";import{B as b}from"./Button-ypk7DAR2.js";import{M as P,u as pe,P as he,R as ge,A as fe,a as be,b as ye}from"./useForumQuestion-DfOoadRf.js";import{M as I}from"./Modal-VR_ps74P.js";import{c as j}from"./utils-D26eCO2C.js";import{supabase as N}from"./supabase-B_M_3bCE.js";import{a as ve,b as Y,t as J,F as je}from"./ForumSidebar-D7OApORK.js";import{u as ee}from"./useForumPermissions-Jdykfhr1.js";import{B as we}from"./tags-5eF4rhub.js";import{c as te,p as Ne}from"./communitySlug-Ja1J4Wft.js";import{L as _e}from"./layers-nIt36m0z.js";import{A as K}from"./arrow-left-B17NHGqa.js";import{A as Se,a as ke,T as Ae}from"./thumbs-up-DPHGjIJE.js";import{C as Ce}from"./circle-check-K9XrYLCT.js";import{a as X,L as Ee}from"./lock-peucNHPt.js";import{E as Fe}from"./eye-BKSNNYxb.js";import{P as Re}from"./pencil-LoRmAVM7.js";import{S as Ue}from"./send-CIA9ktcG.js";import{F as Pe}from"./flag-Du0jO5LZ.js";import"./proxy-BBheQ7Db.js";import"./flame-BcwP3LeF.js";import"./award-D-D6b6ay.js";import"./index-BghV_Vjv.js";import"./index-C3vmPVCj.js";import"./index-B8W8Kcle.js";import"./chart-column-BF3sma8e.js";import"./clsx-B-dksMZM.js";import"./supabase-D56URzBO.js";import"./trophy-C6WQ-iw6.js";import"./hash-Co0mtxKu.js";const Z=[{score:3,label:"Best",hint:"Fully answers the question"},{score:2,label:"Great",hint:"A strong, helpful answer"},{score:1,label:"Good",hint:"Useful and on-topic"}];function Ie({isOpen:n,onClose:s,onConfirm:i}){const[c,r]=o.useState(3),[a,t]=o.useState(!1),[h,m]=o.useState(null),x=async()=>{t(!0),m(null);const d=await i(c);t(!1),d?.error?m(d.error):s()};return e.jsxs(I,{isOpen:n,onClose:s,title:"Accept this answer",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Mark how well this answer resolves your question. The author earns reputation when you accept."}),e.jsx("div",{className:"space-y-2",children:Z.map(d=>e.jsxs("button",{onClick:()=>r(d.score),className:j("w-full flex items-center justify-between px-3 py-2.5 border text-left transition-colors cursor-pointer",c===d.score?"border-emerald-400 bg-emerald-50":"border-gray-200 hover:border-emerald-200"),children:[e.jsx("span",{className:"font-semibold text-gray-900",children:d.label}),e.jsx("span",{className:"text-xs text-gray-500",children:d.hint})]},d.score))}),h&&e.jsx("p",{className:"text-xs text-red-600 mt-3",children:h}),e.jsxs("div",{className:"flex items-center justify-end gap-2 mt-5",children:[e.jsx(b,{variant:"secondary",size:"sm",onClick:s,children:"Cancel"}),e.jsxs(b,{size:"sm",onClick:x,loading:a,children:["Accept as ",Z.find(d=>d.score===c)?.label]})]})]})}const Te=[{key:"spam",label:"Spam",hint:"Advertising or repetitive junk"},{key:"offensive",label:"Offensive",hint:"Abusive or inappropriate"},{key:"duplicate",label:"Duplicate",hint:"Already asked elsewhere"},{key:"off_topic",label:"Off-topic",hint:"Not relevant to the community"},{key:"low_quality",label:"Low quality",hint:"Unclear or unhelpful"}];function Be({isOpen:n,onClose:s,postId:i=null,commentId:c=null}){const[r,a]=o.useState("spam"),[t,h]=o.useState(""),[m,x]=o.useState(!1),[d,f]=o.useState(null),[y,g]=o.useState(!1),w=async()=>{x(!0),f(null);const{data:p,error:_}=await N.rpc("flag_post",{p_post_id:i,p_comment_id:c,p_reason:r,p_note:t.trim()||null});if(x(!1),_)return f(_.message);if(p&&p.ok===!1)return f(p.message);g(!0),setTimeout(()=>{g(!1),h(""),s()},900)};return e.jsx(I,{isOpen:n,onClose:s,title:"Report to moderators",children:y?e.jsx("p",{className:"text-sm text-emerald-700 py-4 text-center",children:"Thanks. A moderator will review this."}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Why are you reporting this?"}),e.jsx("div",{className:"space-y-2",children:Te.map(p=>e.jsxs("button",{onClick:()=>a(p.key),className:j("w-full flex items-center justify-between px-3 py-2 border text-left transition-colors cursor-pointer",r===p.key?"border-emerald-400 bg-emerald-50":"border-gray-200 hover:border-emerald-200"),children:[e.jsx("span",{className:"text-sm font-medium text-gray-900",children:p.label}),e.jsx("span",{className:"text-xs text-gray-400",children:p.hint})]},p.key))}),e.jsx("textarea",{value:t,onChange:p=>h(p.target.value),rows:2,placeholder:"Optional note for moderators",className:"w-full border border-gray-200 px-3 py-2 text-sm mt-3 resize-y focus:outline-none focus:border-emerald-400"}),d&&e.jsx("p",{className:"text-xs text-red-600 mt-2",children:d}),e.jsxs("div",{className:"flex items-center justify-end gap-2 mt-4",children:[e.jsx(b,{variant:"secondary",size:"sm",onClick:s,children:"Cancel"}),e.jsx(b,{variant:"danger",size:"sm",onClick:w,loading:m,children:"Report"})]})]})})}function qe({questionId:n,size:s="sm"}){const{isAuthenticated:i}=ee(),[c,r]=o.useState(!1),[a,t]=o.useState(!1);if(o.useEffect(()=>{if(!i||!n)return;let m=!0;return N.from("forum_favorites").select("question_id").eq("question_id",n).maybeSingle().then(({data:x})=>{m&&r(!!x)}),()=>{m=!1}},[i,n]),!i)return null;const h=async()=>{t(!0);const{data:m,error:x}=await N.rpc("forum_toggle_favorite",{p_question_id:n});!x&&m&&r(m.favorited),t(!1)};return e.jsxs("button",{onClick:h,disabled:a,className:j("inline-flex items-center gap-1.5 border transition-colors cursor-pointer disabled:opacity-50",s==="md"?"px-3 py-1.5 text-sm":"px-2.5 py-1 text-xs",c?"border-amber-300 text-amber-700 bg-amber-50":"border-gray-200 text-gray-600 hover:border-amber-300"),title:c?"Remove bookmark":"Save to favorites",children:[e.jsx(we,{className:j("w-3.5 h-3.5",c&&"fill-amber-500 text-amber-500")}),c?"Saved":"Save"]})}function Le(n){const s=n.match(/(?:youtu\.be\/|youtube\.com\/(?:watch\?v=|embed\/|shorts\/))([\w-]{11})/);return s?s[1]:null}function ze(n){const s=n.match(/vimeo\.com\/(?:video\/)?(\d+)/);return s?s[1]:null}function Oe({url:n}){if(!n)return null;const s=Le(n),i=ze(n),c=s?`https://www.youtube.com/embed/${s}`:i?`https://player.vimeo.com/video/${i}`:null;return c?e.jsx("div",{className:"relative w-full",style:{paddingTop:"56.25%"},children:e.jsx("iframe",{src:c,title:"Embedded video",className:"absolute inset-0 h-full w-full border border-gray-200",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):e.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-emerald-700 hover:underline break-all",children:n})}function De({questionId:n,tags:s=[]}){const[i,c]=o.useState([]);return o.useEffect(()=>{if(!n||!s.length){c([]);return}let r=!0;return N.from("posts").select("id, title, reply_count, is_resolved").eq("post_type","question").eq("is_deleted",!1).eq("is_private",!1).overlaps("tags",s).neq("id",n).order("last_active_at",{ascending:!1}).limit(6).then(({data:a})=>{r&&c(a||[])}),()=>{r=!1}},[n,s]),i.length?e.jsxs("div",{className:"bg-white border border-gray-200",children:[e.jsxs("h3",{className:"flex items-center gap-2 px-4 py-3 border-b border-gray-200 text-sm font-semibold text-gray-900",children:[e.jsx(_e,{className:"w-4 h-4 text-emerald-500"})," Related questions"]}),e.jsx("div",{className:"divide-y divide-gray-100",children:i.map(r=>e.jsxs(A,{to:te(r.id,r.title),className:"block px-4 py-2 text-sm text-gray-700 hover:text-emerald-700 hover:bg-gray-50",children:[e.jsx("span",{className:"line-clamp-2",children:r.title}),e.jsx("span",{className:"text-[11px] text-gray-400",children:r.is_resolved?"resolved":`${r.reply_count} answers`})]},r.id))})]}):null}function Me(n){return[...new Set(n.split(/[,\s]+/).map(s=>
1s.trim().toLowerCase()).filter(Boolean))].slice(0,5)}function Ve({isOpen:n,onClose:s,question:i,onUpdated:c}){const[r,a]=o.useState(i.title||""),[t,h]=o.useState(i.body||""),[m,x]=o.useState((i.tags||[]).join(", ")),[d,f]=o.useState(i.featured_image_url||""),[y,g]=o.useState(i.video_url||""),[w,p]=o.useState(!1),[_,C]=o.useState(!1),[E,F]=o.useState(null),T=async()=>{C(!0),F(null);const{error:u}=await N.from("posts").update({title:r.trim(),body:t.trim(),tags:Me(m),featured_image_url:d.trim()||null,video_url:y.trim()||null,updated_at:new Date().toISOString()}).eq("id",i.id);if(C(!1),u)return F(u.message);c?.(),s()};return e.jsx(I,{isOpen:n,onClose:s,title:"Edit question",maxWidth:"max-w-2xl",children:e.jsxs("div",{className:"space-y-4",children:[e.jsx("input",{dir:"auto",value:r,onChange:u=>a(u.target.value),className:"w-full border border-gray-200 px-3 py-2 text-sm focus:outline-none focus:border-emerald-400"}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:"text-xs font-medium text-gray-600",children:"Details"}),e.jsx("button",{onClick:()=>p(u=>!u),className:"text-xs text-emerald-700 hover:underline cursor-pointer",children:w?"Edit":"Preview"})]}),w?e.jsx("div",{className:"border border-gray-200 p-3 min-h-[120px]",children:e.jsx(P,{children:t})}):e.jsx("textarea",{dir:"auto",value:t,onChange:u=>h(u.target.value),rows:7,className:"w-full border border-gray-200 px-3 py-2 text-sm resize-y focus:outline-none focus:border-emerald-400"})]}),e.jsx("input",{value:m,onChange:u=>x(u.target.value),placeholder:"tags (comma separated)",className:"w-full border border-gray-200 px-3 py-2 text-sm focus:outline-none focus:border-emerald-400"}),e.jsx("input",{value:d,onChange:u=>f(u.target.value),placeholder:"Featured image URL (optional)",className:"w-full border border-gray-200 px-3 py-2 text-sm focus:outline-none focus:border-emerald-400"}),e.jsx("input",{value:y,onChange:u=>g(u.target.value),placeholder:"Video URL: YouTube or Vimeo (optional)",className:"w-full border border-gray-200 px-3 py-2 text-sm focus:outline-none focus:border-emerald-400"}),E&&e.jsx("p",{className:"text-xs text-red-600",children:E}),e.jsxs("div",{className:"flex items-center justify-end gap-2",children:[e.jsx(b,{variant:"secondary",size:"sm",onClick:s,children:"Cancel"}),e.jsx(b,{size:"sm",onClick:T,loading:_,disabled:r.trim().length<8,children:"Save changes"})]})]})})}function Qe({isOpen:n,onClose:s,answer:i,onUpdated:c}){const[r,a]=o.useState(i.body||""),[t,h]=o.useState(!1),[m,x]=o.useState(!1),[d,f]=o.useState(null),y=async()=>{x(!0),f(null);const{error:g}=await N.from("comments").update({body:r.trim(),updated_at:new Date().toISOString()}).eq("id",i.id);if(x(!1),g)return f(g.message);c?.(),s()};return e.jsxs(I,{isOpen:n,onClose:s,title:"Edit answer",maxWidth:"max-w-2xl",children:[e.jsx("div",{className:"flex items-center justify-end mb-1",children:e.jsx("button",{onClick:()=>h(g=>!g),className:"text-xs text-emerald-700 hover:underline cursor-pointer",children:t?"Edit":"Preview"})}),t?e.jsx("div",{className:"border border-gray-200 p-3 min-h-[120px]",children:e.jsx(P,{children:r})}):e.jsx("textarea",{dir:"auto",value:r,onChange:g=>a(g.target.value),rows:7,className:"w-full border border-gray-200 px-3 py-2 text-sm resize-y focus:outline-none focus:border-emerald-400"}),d&&e.jsx("p",{className:"text-xs text-red-600 mt-2",children:d}),e.jsxs("div",{className:"flex items-center justify-end gap-2 mt-4",children:[e.jsx(b,{variant:"secondary",size:"sm",onClick:s,children:"Cancel"}),e.jsx(b,{size:"sm",onClick:y,loading:m,disabled:r.trim().length<10,children:"Save"})]})]})}function _t(){const{questionId:n}=de(),s=Ne(n),i=me(),c=ue(),{user:r}=ce(),a=ee(),{question:t,answers:h,comments:m,votes:x,helpful:d,loading:f,error:y,postAnswer:g,vote:w,acceptAnswer:p,closeQuestion:_,toggleHelpful:C,pollOptions:E,pollChoice:F,votePoll:T,refresh:u}
1=pe(s),[D,B]=o.useState(null),[q,L]=o.useState(null),[M,V]=o.useState(!1),[z,Q]=o.useState(null),[se,$]=o.useState(""),S=t?te(t.id,t.title):null;o.useEffect(()=>{S&&decodeURIComponent(c.pathname)!==S&&i(S,{replace:!0})},[S,c.pathname,i]);const R=()=>i(`/login?redirect=/community/${s}`),re=async()=>{$("Routing…");const{data:l,error:v}=await N.rpc("forum_route_question_to_experts",{p_question_id:s,p_limit:5});$(v?"Failed":l?.routed?`Notified ${l.routed} expert(s)`:"No experts yet")};if(f)return e.jsx(O,{children:e.jsxs("div",{className:"bg-white border border-gray-200 p-8 animate-pulse space-y-3",children:[e.jsx("div",{className:"h-6 w-2/3 bg-gray-200"}),e.jsx("div",{className:"h-3 w-full bg-gray-200"}),e.jsx("div",{className:"h-3 w-5/6 bg-gray-200"})]})});if(y||!t)return e.jsx(O,{children:e.jsxs("div",{className:"text-center py-16",children:[e.jsx("p",{className:"text-gray-500 mb-4",children:"This question could not be found."}),e.jsx(A,{to:"/community",children:e.jsxs(b,{variant:"secondary",size:"sm",children:[e.jsx(K,{className:"w-4 h-4"})," Back to community"]})})]})});const U=r&&r.id===t.user_id,ae=(U||a.isAdmin)&&!t.is_closed,oe=U||a.canCloseAny,ne=U||a.canEditAny,W=x[t.id],H=l=>{if(!a.canUpvote)return R();l==="downvote"&&!a.canDownvote||w(t.id,"post",l)},ie=l=>{l.accepted_score!=null?p(l.id,0):B(l)};return e.jsxs(O,{children:[e.jsx(xe,{title:t.title,description:(t.body||"").slice(0,155),path:S,type:"article",noindex:t.is_private}),e.jsxs(A,{to:"/community",className:"inline-flex items-center gap-1.5 text-sm text-gray-500 hover:text-emerald-700 mb-4",children:[e.jsx(K,{className:"w-4 h-4"})," Community"]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsx("div",{className:"bg-white border border-gray-200",children:e.jsxs("div",{className:"flex",children:[e.jsxs("div",{className:"flex flex-col items-center py-5 px-3 bg-gray-50 border-r border-gray-200 min-w-[56px]",children:[e.jsx("button",{onClick:()=>H("upvote"),className:j("p-0.5 transition-colors",W==="upvote"?"text-emerald-600":"text-gray-400 hover:text-emerald-500"),"aria-label":"Upvote question",children:e.jsx(Se,{className:"w-6 h-6"})}),e.jsx("span",{className:j("text-base font-bold my-0.5",t.upvote_count>0?"text-emerald-700":t.upvote_count<0?"text-red-500":"text-gray-500"),children:t.upvote_count}),e.jsx("button",{onClick:()=>H("downvote"),disabled:!a.canDownvote&&!a.isAdmin,className:j("p-0.5 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",W==="downvote"?"text-blue-500":"text-gray-400 hover:text-blue-400"),"aria-label":"Downvote question",children:e.jsx(ke,{className:"w-6 h-6"})})]}),e.jsxs("div",{className:"flex-1 p-5 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2 flex-wrap",children:[t.is_resolved&&e.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-emerald-700",children:[e.jsx(Ce,{className:"w-3.5 h-3.5"})," Resolved"]}),t.is_closed&&e.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-gray-500",children:[e.jsx(X,{className:"w-3.5 h-3.5"})," Closed"]}),t.category&&e.jsx("span",{className:"text-xs text-gray-500",children:t.category.name})]}),e.jsx("h1",{className:"text-xl font-bold text-gray-900 leading-snug mb-3",dir:"auto",children:t.title}),t.featured_image_url&&e.jsx("img",{src:t.featured_image_url,alt:"",className:"mb-3 max-h-[360px] w-full object-cover border border-gray-200",loading:"lazy",decoding:"async"}),e.jsx(P,{children:t.body}),t.video_url&&e.jsx("div",{className:"mt-3",children:e.jsx(Oe,{url:t.video_url})}),t.is_poll&&e.jsx(he,{options:E,choice:F,canVote:a.canUpvote,onVote:l=>a.canUpvote?T(l):R()}),t.tags?.length>0&&e.jsx("div",{className:"flex items-center gap-1.5 mt-4 flex-wrap",children:t.tags.map((l,v)=>e.jsx(A,{to:`/community/tags/${encodeURIComponent(l)}`,className:"text-xs text-emerald-700 bg-emerald-50 border border-emerald-100 px-2 py-0.5 hover:bg-emerald-100",children:l},v))}),e.jsx("div",{className:"mt-4",children:e.jsx(ge,{postId:t.id})}),e.jsxs("div",{className:"flex items-center justify-between mt-5 flex-wrap gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 text-xs text-gray-500",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"w-5 h-5 bg-emerald-100 flex items-center justify-center text-[10px] font-bold text-emerald-700",children:t.is_anonymous?"?":ve(t.author||{})}),e.jsx(fe,{id:t.user_id,username:t.author?.username||t.author_username,anonymous:t.is_anonymous,name:t.is_anonymous?"Anonymous":Y(t.author||{}),className:"font-medium text-gray-700 hover:text-emerald-700"})]}),e.jsxs("span",{children:["· ",J(t.created_at)]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Fe,{className:"w-3.5 h-3.5"})," ",t.view_count]})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs("button",{onClick:()=>a.canWrite?C():R(),className:j("inline-flex items-center gap-1.5 text-xs px-2.5 py-1 border transition-colors cursor-pointer",d?"text-emerald-700 border-emerald-300 bg-emerald-50":"text-gray-500 border-gray-200 hover:border-emerald-200"),children:[e.jsx(Ae,{className:"w-3.5 h-3.5"})," Helpful · ",t.helpful_count]}),e.jsx(qe,{questionId:t.id}),ne&&e.jsxs("button",{onClick:()=>V(!0),className:"inline-flex items-center gap-1.5 text-xs px-2.5 py-1 border border-gray-200 text-gray-500 hover:border-emerald-200 hover:text-emerald-700 cursor-pointer",children:[e.jsx(Re,{className:"w-3.5 h-3.5"})," Edit"]}),a.isAdmin&&e.jsxs("button",{onClick:re,className:"inline-flex items-center gap-1.5 text-xs px-2.5 py-1 border border-emerald-200 text-emerald-700 hover:bg-emerald-50 cursor-pointer",title:"Notify members with expertise in these tags",children:[e.jsx(Ue,{className:"w-3.5 h-3.5"})," ",se||"Route to experts"]}
1),a.canFlag&&!U&&e.jsxs("button",{onClick:()=>L({postId:t.id}),className:"inline-flex items-center gap-1.5 text-xs px-2.5 py-1 border border-gray-200 text-gray-500 hover:border-red-200 hover:text-red-500 cursor-pointer",children:[e.jsx(Pe,{className:"w-3.5 h-3.5"})," Report"]}),oe&&e.jsx("button",{onClick:()=>_(!t.is_closed),className:"inline-flex items-center gap-1.5 text-xs px-2.5 py-1 border border-gray-200 text-gray-500 hover:border-gray-300 cursor-pointer",children:t.is_closed?e.jsxs(e.Fragment,{children:[e.jsx(Ee,{className:"w-3.5 h-3.5"})," Reopen"]}):e.jsxs(e.Fragment,{children:[e.jsx(X,{className:"w-3.5 h-3.5"})," Close"]})})]})]})]})]})}),e.jsxs("div",{children:[e.jsxs("h2",{className:"text-sm font-bold text-gray-900 mb-3",children:[h.length," ",h.length===1?"Answer":"Answers"]}),e.jsx("div",{className:"space-y-3",children:h.map((l,v)=>e.jsx(be,{answer:l,cv:v>0,userVote:x[l.id],canVote:a.canUpvote,onVote:(k,le,G)=>{if(!a.canUpvote)return R();G==="downvote"&&!a.canDownvote||w(k,le,G)},canAccept:ae,onAccept:ie,canFlag:a.canFlag&&(!r||r.id!==l.user_id),onFlag:k=>L({commentId:k.id}),canEdit:r&&r.id===l.user_id||a.canEditAny,onEdit:k=>Q(k)},l.id))})]}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-bold text-gray-900 mb-3",children:"Your answer"}),t.is_closed?e.jsx("p",{className:"text-sm text-gray-500 bg-gray-50 border border-gray-200 p-4",children:"This question is closed to new answers."}):a.canAnswer?e.jsx(ye,{onSubmit:g}):e.jsx("div",{className:"bg-gray-50 border border-gray-200 p-4 text-sm text-gray-600",children:a.isAuthenticated?"Answering is disabled for this account.":e.jsxs(e.Fragment,{children:[e.jsx(A,{to:`/login?redirect=/community/${s}`,className:"text-emerald-700 font-medium hover:underline",children:"Sign in"})," ","to post an answer."]})})]}),m.length>0&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-bold text-gray-900 mb-3",children:"Comments"}),e.jsx("div",{className:"space-y-2",children:m.map(l=>e.jsxs("div",{className:"text-sm text-gray-600 border-l-2 border-gray-200 pl-3 py-1",children:[e.jsx(P,{children:l.body}),e.jsxs("span",{className:"text-xs text-gray-400",children:["by ",Y(l.author||{})," · ",J(l.created_at)]})]},l.id))})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsx(De,{questionId:t.id,tags:t.tags||[]}),e.jsx(je,{categories:[]})]})]}),M&&e.jsx(Ve,{isOpen:M,onClose:()=>V(!1),question:t,onUpdated:u}),z&&e.jsx(Qe,{isOpen:!!z,onClose:()=>Q(null),answer:z,onUpdated:u}),e.jsx(Ie,{isOpen:!!D,onClose:()=>B(null),onConfirm:async l=>{const v=await p(D.id,l);return v?.error||B(null),v}}),e.jsx(Be,{isOpen:!!q,onClose:()=>L(null),postId:q?.postId||null,commentId:q?.commentId||null})]})}export{_t 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.