PageSourceSearch

https://hoghogh.ai/assets/PublicCaseLawIndexPage-DcJGeH8m.js

js hoghogh.ai collected 2026-10-05 14:40:20 UTC 5,487 bytes, 1 lines download raw bytes

1import{r,j as e,L as S}from"./vendor-react-2K49FsAP.js";import{g as w,j as k,i as L,l as u,a as C}from"./primitives-C-mTgGMk.js";import{P as I}from"./PublicShell-BOsRmUbk.js";import{S as P,o as z,b as H}from"./Seo-p4NoUtMj.js";import{u as W}from"./useDebounce-gBT3IGoZ.js";import{u as _,L as R}from"./LoadMoreButton-CrV8DsTS.js";import{A}from"./api-base-CVG4m-4D.js";import{S as q,i as $,O as B,a6 as D}from"./vendor-utils-BOLI4KNR.js";import"./index-CCguaWnS.js";import"./lib-utils-wtEBHdmq.js";import"./auth-store-Dg3F6UAs.js";import"./api-client-Df0aTNm3.js";import"./runtime-leaves-CLfW7HT3.js";import"./platform-Cj-fGGZZ.js";import"./query-client-BtlDnSI_.js";import"./vendor-query-wZlBI5mv.js";import"./public-runtime-BdZjC6sM.js";import"./vendor-motion-C7yP8PcU.js";import"./public-config-D-K3B6qI.js";import"./legalEntity-sP_UtEsh.js";import"./useLoadMoreSentinel-CNPtS6az.js";function re(){const[n,g]=r.useState("all"),[a,f]=r.useState("all"),[s,v]=r.useState("relevance"),[m,h]=r.useState(""),o=W(m,350),{items:c,loading:d,total:x,hasMore:j,loadMore:y}=_(async(t,l)=>{const i=new URLSearchParams({page:String(t),limit:"20"});o&&i.set("q",o),n==="unity"&&i.set("unity","true"),a!=="all"&&i.set("court",a),s!=="relevance"&&i.set("sort",s);const p=await fetch("".concat(A,"/case-law?").concat(i.toString()),{signal:l}).then(b=>b.json());return{items:p.data||[],totalPages:p.totalPages||1,total:p.total||0}},[o,n,a,s]);return e.jsxs(I,{children:[e.jsx(P,{title:"آرای قضایی و رویه — جستجوی آرای وحدت رویه و دادگاه‌ها",description:"پایگاه آرای قضایی ایران؛ جستجو در آرای وحدت رویه دیوان عالی کشور، نظریات و آرای دادگاه‌ها به‌صورت آنلاین.",canonicalPath:"/case-law",jsonLd:[z(),H([{name:"خانه",path:"/"},{name:"آرای قضایی",path:"/case-law"}])]}),e.jsx(w,{eyebrow:"رویهٔ قضایی ایران",title:"آرای قضایی",subtitle:x?"".concat(x.toLocaleString("fa-IR")," رأی"):void 0}),e.jsxs(k,{children:[e.jsx("p",{style:{margin:0,fontSize:14,lineHeight:2,color:"var(--ink-soft)",maxWidth:760},children:"جستجو در آرای وحدت رویهٔ دیوان عالی کشور و آرای دادگاه‌ها؛ مرجعی برای استناد و پژوهش حقوقی."}),e.jsx("div",{style:{maxWidth:460},children:e.jsx(L,{value:m,onChange:h,placeholder:"جستجو در عنوان، خلاصه یا شمارهٔ رأی…",icon:e.jsx(q,{style:{width:13,height:13}}),onClear:()=>h("")})}),e.jsx(u,{items:[{id:"all",label:"همه"},{id:"unity",label:"آرای وحدت رویه"}],active:n,onChange:g}),e.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:16,alignItems:"center"},children:[e.jsx(u,{items:[{id:"all",label:"همهٔ مراجع"},{id:"civil",label:"حقوقی"},{id:"criminal",label:"کیفری"},{id:"administrative",label:"اداری"},{id:"supreme",label:"دیوان عالی"}],active:a,onChange:f}),e.jsxs("label",{style:{display:"inline-flex",alignItems:"center",gap:6,fontSize:12,color:"var(--ink-mute)"},children:["مرتب‌سازی:",e.jsxs("select",{value:s,onChange:t=>v(t.target.value),style:{fontFamily:"inherit",fontSize:12,padding:"5px 8px",border:"1px solid var(--rule-strong)",borderRadius:8,background:"var(--surface-1)",color:"var(--ink)"},children:[e.jsx("option",{value:"relevance",children:"مرتبط‌ترین"}),e.jsx("option",{value:"newest",children:"جدیدترین"}),e.jsx("option",{value:"views",children:"پربازدیدترین"})]})]})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[!d&&c.length===0&&e.jsx("p",{role:"status",style:{color:"var(--ink-mute)",fontSize:13},children:"رأیی یافت نشد."}),c.map(t=>{const l=e.jsx(C,{accent:"var(--gold)",children:e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:12},children:[e.jsx("span",{style:{width:32,height:32,borderRadius:8,background:"var(--brand-12)",border:"1px solid var(--brand-24)",display:"grid",placeItems:"center",flexShrink:0},children:t.is_unity_verdict?e.jsx($,{style:{width:16,height:16,color:"var(--brand)"}}):e.jsx(B,{style:{width:15,height:15,color:"var(--brand)"}})}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsxs("h2",{style:{margin:"0 0 4px",fontSize:13.5,fontWeight:800,color:"var(--ink)",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[e.jsx("span",{children:t.title}),t.slug&&e.jsx(D,{style:{width:13,height:13,color:"var(--ink-mute)",flexShrink:0}})]}),t.summary&&e.jsx("p",{style:{margin:"0 0 4px",fontSize:12,lineHeight:1.8,color:"var(--ink-mute)",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:t.summary}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:11,color:"var(--ink-mute)"},children:[t.is_unity_verdict&&e.jsx("span",{style:{color:"var(--gold-fg)",fontWeight:700},children:"وحدت رویه"}),t.case_number&&e.jsxs("span",{children:["شمارهٔ ",t.case_number]}),t.court&&e.jsxs("span",{children:["· ",t.court]})]})]})]})});return t.slug?e.jsx(S,{to:"/case-law/".concat(encodeURIComponent(t.slug)),style:{textDecoration:"none"},children:l},t.id):e.jsx("div",{children:l},t.id)}),d&&c.length===0&&e.jsx("p",{style:{color:"var(--ink-mute)",fontSize:13,textAlign:"center",padding:"8px 0"},children:"در حال بارگذاری…"})]}),e.jsx(R,{hasMore:j,loading:d,onClick:y}
1)]})]})}export{re 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.