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.