PageSourceSearch

https://btk.gov.tr/_next/static/chunks/0_v7ovd90qy7l.js

js btk.gov.tr collected 2026-10-01 10:33:31 UTC 42,362 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67513,e=>{"use strict";var t=e.i(44952),l=e.i(70671),r=e.i(25344),s=e.i(75157);e.s(["ContentCard",0,function({title:e,href:n,image:i,date:a,text:o,featured:d,locale:c="tr",variant:x="default",showOverlay:p=!1,hideDate:h=!1,onClick:g,decisionDate:m,decisionNumber:f,relatedDepartment:u,fileUrl:b}){let j=(0,r.useTranslations)("content"),v=(0,r.useTranslations)("common"),y=a?new Date(a).toLocaleDateString(c,{year:"numeric",month:"long",day:"numeric"}):null,w=n.startsWith("http://")||n.startsWith("https://"),N=e=>{g&&(e.preventDefault(),g(e))},k=g?"button":w?"a":l.default,C=g?{type:"button"}:w?{href:n,target:"_blank",rel:"noopener noreferrer"}:{href:n};if("board-decision"===x){let r=e=>new Date(e).toLocaleDateString(c,{year:"numeric",month:"2-digit",day:"2-digit"}),s=[m?r(m):null,f].filter(Boolean).join(" - "),i=a?r(a):null,o=w?"a":l.default,d=w?{href:n,target:"_blank",rel:"noopener noreferrer"}:{href:n};return(0,t.jsxs)("div",{className:"mb-6 border border-gray-200 bg-white p-4 lg:p-5",children:[(0,t.jsx)("div",{className:"py-1.5",children:(0,t.jsx)(o,{...d,className:"!no-underline hover:!no-underline",children:(0,t.jsx)("h3",{className:"!text-[18px] !font-medium !font-sans !text-[#222]",style:{margin:0},children:e})})}),(0,t.jsxs)("div",{className:"divide-y divide-gray-200",children:[s&&(0,t.jsxs)("div",{className:"flex flex-col py-1 lg:flex-row lg:px-4 lg:py-2.5",children:[(0,t.jsx)("span",{className:"shrink-0 font-medium leading-[1.62] text-[#333] lg:w-56",children:j("decisionDateAndNo")}),(0,t.jsx)("span",{className:"font-light leading-[1.62] text-[#666]",children:s})]}),u&&(0,t.jsxs)("div",{className:"flex flex-col py-1 lg:flex-row lg:px-4 lg:py-2.5",children:[(0,t.jsx)("span",{className:"shrink-0 font-medium leading-[1.62] text-[#333] lg:w-56",children:j("relatedDepartment")}),(0,t.jsx)("span",{className:"font-light leading-[1.62] text-[#666]",children:u})]}),i&&(0,t.jsxs)("div",{className:"flex flex-col py-1 lg:flex-row lg:px-4 lg:py-2.5",children:[(0,t.jsx)("span",{className:"shrink-0 font-medium leading-[1.62] text-[#333] lg:w-56",children:j("publicationDate")}),(0,t.jsx)("span",{className:"font-light leading-[1.62] text-[#666]",children:i})]}),b&&(0,t.jsxs)("div",{className:"flex flex-col py-1 lg:flex-row lg:px-4 lg:py-2.5",children:[(0,t.jsx)("span",{className:"shrink-0 font-medium leading-[1.62] text-[#333] lg:w-56",children:j("file")}),(0,t.jsx)("a",{href:b,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-primary hover:underline",children:v("download")})]})]})]})}if("link-card"===x){let r=n.startsWith("http://")||n.startsWith("https://"),s=r?"a":l.default,i=r?{href:n,target:"_blank",rel:"noopener noreferrer"}:{href:n},a=n.split("?")[0].split("#")[0].toLowerCase().split(".").pop()||"",o=["pdf","doc","docx","xls","xlsx","ppt","pptx","zip","rar","jpg","jpeg","png"].includes(a)?({pdf:"pdf",doc:"doc",docx:"doc",xls:"xls",xlsx:"xls",ppt:"ppt",pptx:"ppt",zip:"zip",rar:"rar",jpg:"jpg",jpeg:"jpg",png:"png"})[a]:null;return(0,t.jsxs)(s,{...i,className:"link-card-item flex w-full cursor-pointer items-center bg-[#eee] px-[30px] py-[18px] text-[#333] no-underline transition-colors hover:bg-[#e4e4e4] hover:no-underline",style:{marginBottom:"10px",lineHeight:1.3,fontWeight:500},children:[o&&(0,t.jsx)("img",{src:`/img/icons-with-color/${o}.svg`,alt:o,className:"mr-1.5 shrink-0",width:24,height:24}),(0,t.jsx)("span",{className:"flex-1",children:e}),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",className:"ml-3 shrink-0 text-[#999]",children:[(0,t.jsx)("path",{fill:"currentColor",d:"M15.728 3.884c1.434-1.44 3.532-1.47 4.694-.304c1.164 1.168 1.132 3.28-.303 4.72l-2.424 2.433a.75.75 0 0 0 1.063 1.059l2.424-2.433c1.91-1.919 2.15-4.982.303-6.838c-1.85-1.857-4.907-1.615-6.82.304L9.818 7.692c-1.912 1.919-2.152 4.982-.303 6.837a.75.75 0 1 0 1.062-1.058c-1.163-1.168-1.132-3.28.303-4.72z"}),(0,t.jsx)("path",{fill:"currentColor",d:"M14.485 9.47a.75.75 0 0 0-1.063 1.06c1.164 1.168 1.132 3.279-.303 4.72L8.27 20.116c-1.434 1.44-3.532 1.47-4.694.304c-1.163-1.168-1.132-3.28.303-4.72l2.424-2.433a.75.75 0 1 0-1.062-1.059l-2.424 2.433C.906 16.56.666 19.623 2.515 21.48c1.85 1.858 4.907 1.615 6.819-.304l4.848-4.867c1.91-1.918 2.15-4.982.303-6.837",opacity:".5"})]})]})}return"article"===x?(0,t.jsxs)(k,{...C,onClick:N,className:"group flex h-[100px] w-full items-center overflow-hidden border-none bg-white text-left !no-underline hover:!no-underline lg:mb-0",style:{marginBottom:"20px",backgroundColor:"white",transition:"0.3s",boxSizing:"border-box",paddingLeft:"4px",paddingRight:"4px",cursor:g?"pointer":void 0},children:[y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 flex-col items-center justify-center px-1 text-[#222222] lg:hidden",children:[(0,t.jsx)("div",{className:"text-[20px] font-bold leading-none",children:new Date(a).getDate().toString().padStart(2,"0")}),(0,t.jsx)("div",{className:"mt-0.5 text-[10px] font-bold uppercase leading-none",children:new Date(a).toLocaleDateString(c,{month:"short"}).toUpperCase()}),(0,t.jsx)("div",{className:"text-[9px] font-bold leading-none text-gray-400",children:new Date(a).getFullYear()})]}),(0,t.jsxs)("div",{className:"hidden h-[100px] w-[100px] shrink-0 flex-col items-center justify-center text-[#222] lg:flex",children:[(0,t.jsx)("div",{className:"text-[32px] font-bold leading-none",children:new Date(a).getDate().toString().padStart(2,"0")}),(0,t.jsx)("div",{className:"mt-1 text-[14px] font-bold uppercase leading-none",children:new Date(a).toLocaleDateString(c,{month:"short"}).toUpperCase()}),(0,t.jsx)("div",{className:"mt-1 text-[14px] font-normal leading-none text-gray-400",children:new Date(a).getFullYear()})]})]}),(0,t.jsx)("div",{className:"mx-1 h-12 w-px shrink-0 bg-gray-300 lg:mx-0 lg:h-16"}),(0,t.jsx)("div",{className:"flex flex-1 flex-col justify-center lg:px-4",children:(0,t.jsx)("h3",{className:"line-clamp-2 text-[16px] font-medium leading-[1.3] text-[#222222] transition-colors group-hover:text-primary lg:text-[18px]",style:{margin:0,WebkitLineClamp:2,display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",fontFamily:"Roboto, sans-serif",fontWeight:500},children:e})})]}):(0,t.jsxs)(k,{...C,onClick:N,className:"group flex w-full flex-1 flex-col overflow-hidden border-none bg-transparent text-left !no-underline hover:!no-underline lg:mb-0 lg:px-0",style:{boxSizing:"border-box",marginBottom:"20px",paddingLeft:"4px",paddingRight:"4px",cursor:g?"pointer":void 0},children:[(0,t.jsx)("div",{className:"relative overflow-hidden bg-gray-100",children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{src:i,alt:e,className:"aspect-video w-full object-cover transition-transform duration-300 group-hover:scale-[1.03]"}),p&&(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/0 transition-all duration-300 group-hover:bg-black/40",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"rotate-45 text-white opacity-0 transition-all duration-300 group-hover:rotate-0 group-hover:opacity-100",children:[(0,t.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]}):(0,t.jsx)("img",{src:"/img/placeholder.jpg",alt:e,className:"aspect-video w-full object-cover"})}),(0,t.jsxs)("div",{className:(0,s.cn)("flex flex-grow flex-col",d?"px-0 lg:px-[30px]":"px-0 lg:px-2"),style:d&&i?{marginTop:"35px"}:void 0,children:[(0,t.jsx)("h3",{className:(0,s.cn)("font-heading text-[#333] transition-colors group-hover:text-primary",d?"text-lg font-normal sm:text-xl md:text-2xl lg:text-[30px]":"text-[16px] lg:text-[18px]"),style:d?{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",maxHeight:"78px",lineHeight:"1.3",margin:0,fontWeight:400}
1:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",maxHeight:"46.8px",lineHeight:"1.3",margin:"20px 0 0",fontWeight:400},children:e}),o&&(0,t.jsx)("p",{className:"mt-3 line-clamp-3 text-base font-light leading-[1.4] text-[#666] lg:text-lg",children:o})]}),!h&&(0,t.jsx)("div",{className:(0,s.cn)("mt-auto flex items-center justify-between border-b border-[#ddd] uppercase text-[#757575]",d?"px-0 pb-2 pt-3 lg:px-[30px] lg:pb-[15px] lg:pt-[35px]":"px-0 pb-1 pt-2 lg:px-2 lg:pb-[5px] lg:pt-[15px]"),children:y&&(0,t.jsx)("span",{className:"text-xs lg:text-sm",children:y})})]})}])},16556,e=>{"use strict";var t=e.i(44952),l=e.i(33958),r=e.i(70671),s=e.i(91704);e.s(["SidebarAccordion",0,function({title:e,items:n,defaultOpen:i,currentPath:a,mode:o="accordion",menuData:d,pageContent:c,debugInfo:x}){let p=(0,s.usePathname)(),h=a||p,g=e=>{if(!h||!e||"#"===e)return!1;let t=h.replace(/^\//,""),l=e.replace(/^\//,"");return t===l||t.startsWith(l+"/")},[m,f]=(0,l.useState)((()=>{let e=new Set(i?[i]:[]);if(!h)return e;let t=(l,r,s)=>{for(let n=0;n<l.length;n++){let i=l[n],a=`${r}-${n}`;if(g(i.href))return s.forEach(t=>e.add(t)),e.add(a),!0;if(i.items?.length&&t(i.items,a,[...s,a]))return!0}return!1};return n.forEach(l=>{g(l.href)&&e.add(l.id),l.items&&t(l.items,l.id,[l.id])}),e})()),u=e=>{f(t=>{let l=new Set(t);if(l.has(e))for(let t of l)(t===e||t.startsWith(e+"-"))&&l.delete(t);else l.add(e);return l})};if("links"===o)return(0,t.jsx)("aside",{className:"hidden w-full lg:block lg:w-[350px] lg:shrink-0",children:(0,t.jsxs)("div",{className:"bg-white",style:{padding:"40px 20px",boxShadow:"var(--shadow-card)"},children:[(0,t.jsx)("h3",{className:"text-[30px] font-light leading-[1.3] text-[#757575]",style:{fontFamily:'"Roboto Slab", serif',margin:"0 0 20px",padding:"0 10px"},children:e}),(0,t.jsx)("nav",{children:n.map((e,l)=>(0,t.jsx)("div",{className:0===l?"":"border-t border-[#eeeeee] hover:!text-[#222]",children:e.href&&"#"!==e.href?(0,t.jsx)(r.default,{href:e.href,prefetch:!1,className:`sidebar-link block px-1 py-1 text-base ${g(e.href)?"!font-bold bg-[#eeeeee]":"!font-normal bg-white hover:bg-[#f5f5f5]"}`,style:g(e.href)?{color:"rgb(34, 34, 34)",fontWeight:700}:{color:"rgb(102, 102, 102)"},children:e.title}):(0,t.jsx)("span",{className:`block px-1 py-1 text-base ${g(e.href)?"!font-bold bg-[#eeeeee] !text-[#222]":"!font-normal bg-white !text-[#222]"}`,children:e.title})},e.id))})]})});let b=(e,l,s=0)=>e.map((e,n)=>{let i=`${l}-${n}`,a=e.items&&e.items.length>0,o=g(e.href);return a?(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{onClick:()=>u(i),className:"flex w-full items-center justify-between py-1 text-left text-base font-light",style:{paddingLeft:`${(s+2)*8}px`,color:"#222"},children:[(0,t.jsx)("span",{children:e.title}),(0,t.jsx)("svg",{className:`h-3 w-3 mr-2 transition-transform duration-500 ${m.has(i)?"rotate-180":""}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fill:"currentColor",d:"m12 15l-5-5h10z"})})]}),(0,t.jsx)("div",{className:`grid transition-[grid-template-rows] duration-500 ease-[cubic-bezier(0.4,0,0.2,1)] ${m.has(i)?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:(0,t.jsx)("div",{className:"overflow-hidden bg-white",children:b(e.items,i,s+1)})})]},i):e.href&&"#"!==e.href?(0,t.jsx)(r.default,{href:e.href,prefetch:!1,className:"sidebar-link block py-1 text-base",style:{paddingLeft:`${(s+2)*8}px`,fontWeight:o?700:300,color:o?"rgb(34, 34, 34)":"rgb(102, 102, 102)"},children:e.title},i):(0,t.jsx)("span",{className:"block py-1 text-base !text-[#222]",style:{paddingLeft:`${(s+2)*8}px`,fontWeight:o?700:300},children:e.title},i)});return(0,t.jsx)("aside",{className:"hidden w-full lg:block lg:w-[350px] lg:shrink-0",children:(0,t.jsxs)("div",{className:"bg-white",style:{padding:"40px 20px",boxShadow:"var(--shadow-card)"},children:[(0,t.jsx)("h3",{className:"text-[30px] font-normal leading-[1.3] text-[#757575]",style:{fontFamily:'"Roboto Slab", serif',margin:"0 0 20px",padding:"0 10px"},children:e}),x&&(0,t.jsx)("div",{className:"mb-4 px-[10px]",children:(0,t.jsxs)("div",{className:"bg-yellow-50 border border-yellow-200 p-4 rounded mb-4",children:[(0,t.jsx)("h4",{className:"font-bold text-sm mb-2",children:"Debug Info:"}),(0,t.jsx)("pre",{className:"bg-white p-2 rounded overflow-auto text-xs",children:JSON.stringify(x,null,2)})]})}),null!=c&&(0,t.jsx)("div",{className:"mb-4 px-[10px]",children:(0,t.jsxs)("div",{className:"bg-blue-50 border border-blue-200 p-4 rounded mb-4",children:[(0,t.jsx)("h4",{className:"font-bold text-sm mb-2",children:"Page Content:"}),(0,t.jsx)("pre",{className:"bg-white p-2 rounded overflow-auto text-xs",children:JSON.stringify(c,null,2)})]})}),d&&(0,t.jsx)("div",{className:"mb-4 px-[10px]",children:(0,t.jsxs)("div",{className:"bg-green-50 border border-green-200 p-4 rounded",children:[(0,t.jsx)("h4",{className:"font-bold text-sm mb-2",children:"Menu Data:"}),(0,t.jsx)("pre",{className:"bg-white p-2 rounded overflow-auto text-xs",children:JSON.stringify(d,null,2)})]})}),(0,t.jsx)("nav",{children:n.map((e,l)=>{let s=e.items&&e.items.length>0;return(0,t.jsx)("div",{className:0===l?"":"border-t border-[#eeeeee]",children:s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{onClick:()=>u(e.id),className:`flex w-full cursor-pointer items-center justify-between px-1 text-left text-base transition-all duration-500 ease-[
1cubic-bezier(0.4,0,0.2,1)] ${m.has(e.id)?"bg-[#eeeeee] font-bold":"bg-white font-light"}`,style:{color:"#222",paddingBlock:"8px"},children:[(0,t.jsx)("span",{children:e.title}),(0,t.jsx)("svg",{className:`h-3 w-3 transition-transform duration-500 ${m.has(e.id)?"rotate-180 text-[#222]":"!text-[#222]"}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fill:"currentColor",d:"m12 15l-5-5h10z"})})]}),(0,t.jsx)("div",{className:`grid transition-[grid-template-rows] duration-500 ease-[cubic-bezier(0.4,0,0.2,1)] ${m.has(e.id)?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:(0,t.jsx)("div",{className:"overflow-hidden bg-white",children:b(e.items,e.id)})})]}):e.href&&"#"!==e.href?(0,t.jsx)(r.default,{href:e.href,prefetch:!1,className:`sidebar-link block px-1 py-1 text-base ${g(e.href)?"bg-[#eeeeee]":""}`,style:{fontWeight:g(e.href)?700:300,color:g(e.href)?"rgb(34, 34, 34)":"rgb(102, 102, 102)"},children:e.title}):(0,t.jsx)("span",{className:`block px-1 py-1 text-base ${g(e.href)?"!text-[#222] bg-[#eeeeee]":"!text-[#222]"}`,style:{fontWeight:g(e.href)?700:300},children:e.title})},e.id)})})]})})}])},93499,e=>{"use strict";var t=e.i(44952),l=e.i(70671),r=e.i(75157);e.s(["Breadcrumb",0,function({items:e,className:s}){return e?.length?(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:(0,r.cn)("mb-1 flex flex-wrap items-center text-sm font-bold md:mb-2 max-md:text-xs",s),children:e.map((e,r)=>(0,t.jsxs)("span",{className:"inline-flex items-center whitespace-nowrap",children:[r>0&&(0,t.jsx)("span",{className:"mx-1.5 font-light text-[#999] lg:mx-2.5",children:"|"}),e.url&&"#"!==e.url?(0,t.jsx)(l.default,{href:e.url,className:"text-[#222] hover:underline",children:e.title}):(0,t.jsx)("span",{className:"text-[#222]",children:e.title})]},r))}):null}])},13428,e=>{"use strict";var t=e.i(44952),l=e.i(75157);e.s(["ContentSection",0,function({children:e,className:r}){return(0,t.jsx)("div",{className:(0,l.cn)("bg-white p-[15px] md:p-10",r),style:{boxShadow:"var(--shadow-card)"},children:e})}])},95256,e=>{"use strict";var t=e.i(44952),l=e.i(33958),r=e.i(32766),s=e.i(25344),n=e.i(67513),i=e.i(11225);let a=(0,i.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var o=e.i(39527),d=e.i(75157);function c({currentPage:e,totalPages:l,onPageChange:r,className:s}){if(l<=1)return null;let n=[];for(let t=1;t<=l;t++)t<=6||t>l-2||t>=e-2&&t<=e+2?n.push(t):"..."!==n[n.length-1]&&n.push("...");return(0,t.jsxs)("nav",{className:(0,d.cn)("flex flex-wrap items-center justify-center gap-1 lg:gap-2",s),"aria-label":"Pagination",children:[(0,t.jsx)("button",{onClick:()=>r(e-1),disabled:e<=1,className:"flex h-[25px] w-[25px] items-center justify-center rounded-full text-gray-400 transition-colors hover:bg-gray-100 disabled:opacity-30","aria-label":"Previous page",children:(0,t.jsx)(a,{size:14})}),n.map((l,s)=>"..."===l?(0,t.jsx)("span",{className:"px-1 text-sm text-gray-400",children:"..."},`ellipsis-${s}`):(0,t.jsx)("button",{onClick:()=>r(l),className:(0,d.cn)("flex h-[25px] w-[25px] items-center justify-center rounded-full text-sm font-medium transition-colors",l===e?"bg-primary text-white":"text-gray-400 hover:bg-gray-100"),"aria-current":l===e?"page":void 0,children:l},l)),(0,t.jsx)("button",{onClick:()=>r(e+1),disabled:e>=l,className:"flex h-[25px] w-[25px] items-center justify-center rounded-full text-gray-400 transition-colors hover:bg-gray-100 disabled:opacity-30","aria-label":"Next page",children:(0,t.jsx)(o.ChevronRight,{size:14})})]})}var x=e.i(73538);let p=(0,i.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);function h({initialSearch:e="",initialDateFrom:r="",initialDateTo:n="",showDateFilter:i=!1,showSearch:a=!0,totalResults:o,isOpen:d=!1,dropdowns:c,initialDropdowns:g={},children:m,onSubmit:f}){let u=(0,s.useTranslations)("common"),[b,j]=(0,l.useState)(e),[v,y]=(0,l.useState)(r),[w,N]=(0,l.useState)(n),[k,C]=(0,l.useState)(g),S=(0,l.useRef)(null),D=(0,l.useRef)(null),L=()=>{j(""),y(""),N(""),C({}),f({})};(0,l.useEffect)(()=>{let e=S.current,t=D.current;if(!e||!t)return;let l=window.matchMedia("(min-width: 1024px)"),r=()=>{l.matches?(e.style.maxHeight="",e.style.opacity=""):(e.style.maxHeight=d?`${t.scrollHeight}px`:"0px",e.style.opacity=d?"1":"0")};r(),l.addEventListener("change",r);let s=new ResizeObserver(()=>{!l.matches&&d&&(e.style.maxHeight=`${t.scrollHeight}px`)});return s.observe(t),()=>{l.removeEventListener("change",r),s.disconnect()}},[d]);let W=b||v||w||Object.values(k).some(Boolean);return(0,t.jsx)("div",{ref:S,className:"mb-3 max-lg:overflow-hidden max-lg:transition-all max-lg:duration-300 max-lg:ease-in-out",children:(0,t.jsx)("form",{onSubmit:e=>{e.preventDefault();let t={};for(let[e,l]of Object.entries(k))l&&(t[e]=l);f({search:b||void 0,dateFrom:v||void 0,dateTo:w||void 0,dropdowns:Object.keys(t).length>0?t:void 0})},ref:D,className:"max-lg:pb-2",children:m?(0,t.jsx)("div",{className:"py-2",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-x-3 gap-y-1.5 lg:grid-cols-2",children:[m,c?.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-[3px] ml-0 inline-block !text-[13px] !font-normal 
1!leading-[1.62] uppercase !text-[#222] lg:ml-[18px]",children:e.label}),(0,t.jsxs)("select",{value:k[e.key]||"",onChange:t=>C(l=>({...l,[e.key]:t.target.value})),className:"h-10 w-full rounded border border-gray-200 bg-white px-3 text-[14px] focus:border-primary focus:outline-none",children:[(0,t.jsx)("option",{value:"",children:u("select")}),e.options.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]})]},e.key)),(0,t.jsxs)("div",{className:"flex items-end gap-2",children:[(0,t.jsx)("button",{type:"submit",className:"h-10 flex-1 rounded border border-[#2c3e6b] bg-[#2c3e6b] px-6 text-[14px] font-semibold uppercase tracking-wider text-white transition-colors hover:bg-[#243356]",children:u("filter")}),W&&(0,t.jsx)("button",{type:"button",onClick:L,className:"h-10 shrink-0 rounded border border-gray-300 px-4 text-[14px] text-gray-500 transition-colors hover:bg-gray-50",children:u("reset")})]})]})}):(0,t.jsxs)("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-end lg:gap-2 lg:rounded lg:border lg:border-gray-300 lg:px-3 lg:py-2",children:[void 0!==o&&(0,t.jsx)("div",{className:"flex shrink-0 items-end lg:pb-2.5",children:(0,t.jsxs)("span",{className:"text-sm text-gray-500",children:[(0,t.jsx)("strong",{className:"font-bold",children:o})," ",u("resultsListingSuffix")]})}),a&&(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("label",{className:"mb-1.5 block text-xs font-semibold tracking-wide text-gray-500",children:u("searchLabel")}),(0,t.jsxs)("div",{className:"flex items-center rounded border border-gray-200 bg-[#eee]",children:[(0,t.jsx)(x.Search,{size:16,className:"ml-2.5 text-gray-400"}),(0,t.jsx)("input",{type:"text",value:b,onChange:e=>j(e.target.value),placeholder:u("searchPlaceholder"),className:"flex-1 bg-transparent px-2.5 py-[10px] text-sm focus:border-primary focus:outline-none"})]})]}),i&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"filter-date-from",className:"mb-1.5 block text-xs font-semibold tracking-wide text-gray-500",children:u("dateRangeLabel")}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,t.jsxs)("div",{className:"relative w-full lg:w-36",children:[(0,t.jsx)("input",{id:"filter-date-from",type:"date",value:v,onChange:e=>y(e.target.value),placeholder:u("startDate"),"aria-label":u("startDate"),className:"date-input w-full rounded border border-gray-200 bg-[#eee] px-2.5 py-[10px] pr-8 text-sm focus:border-primary focus:outline-none"}),(0,t.jsx)(p,{size:14,className:"pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400"})]}),(0,t.jsx)("span",{className:"text-gray-400",children:"-"}),(0,t.jsxs)("div",{className:"relative w-full lg:w-36",children:[(0,t.jsx)("input",{id:"filter-date-to",type:"date",value:w,onChange:e=>N(e.target.value),placeholder:u("endDate"),"aria-label":u("endDate"),className:"date-input w-full rounded border border-gray-200 bg-[#eee] px-2.5 py-[10px] pr-8 text-sm focus:border-primary focus:outline-none"}),(0,t.jsx)(p,{size:14,className:"pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2 text-gray-400"})]})]})]}),c?.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-1.5 block text-xs font-semibold tracking-wide text-gray-500",children:e.label}),(0,t.jsxs)("select",{value:k[e.key]||"",onChange:t=>C(l=>({...l,[e.key]:t.target.value})),className:"w-full rounded border border-gray-200 bg-[#eee] px-2.5 py-[10px] text-sm focus:outline-none lg:w-48",children:[(0,t.jsx)("option",{value:"",children:e.placeholder}),e.options.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]})]},e.key)),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("button",{type:"submit",className:"shrink-0 rounded bg-primary px-2 py-[10px] text-sm font-medium text-white transition-colors hover:bg-primary/90 max-lg:flex-1",children:u("filter")}),W&&(0,t.jsx)("button",{type:"button",onClick:L,className:"shrink-0 rounded border border-gray-200 px-3 py-[10px] text-sm text-gray-500 transition-colors hover:bg-gray-50 max-lg:flex-1",children:u("reset")})]})]})})})}function g({title:e,onToggleFilter:l}){return(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,t.jsx)("h1",{className:"font-heading text-2xl font-bold text-gray-600 lg:text-3xl",children:e}),l&&(0,t.jsx)("button",{onClick:l,className:"lg:hidden","aria-label":"Toggle filter",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{fill:"none",stroke:"currentColor",strokeDasharray:"56",strokeDashoffset:"56",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 4h14l-5 6.5v9.5l-4 -4v-5.5Z",children:(0,t.jsx)("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.6s",values:"56;0"})})})})]})}var m=e.i(93499),f=e.i(13428),u=e.i(70671);function b({title:e,href:l,image:r,date:s,text:n,featured:i,bottomLabel:a,locale:o="tr",showOverlay:c=!1,hideDate:x=!1,onClick:p}){let h=s?new Date(s).toLocaleDateString(o,{year:"numeric",month:"long",day:"numeric"}):null,g=l.startsWith("http://")||l.startsWith("https://"),m=p?"button":g?"a":u.default,f=p?{type:"button"}:g?{href:l,target:"_blank",rel:"noopener noreferrer"}:{href:l};return(0,t.jsxs)(m,{...f,onClick:e=>{p&&(e.preventDefault(),p(e))},className:"group flex w-full flex-1 flex-col overflow-hidden border-none bg-transparent text-left !no-underline hover:!no-underline lg:mb-0 lg:px-0",style:{boxSizing:"border-box",marginBottom:"20px",paddingLeft:"4px",paddingRight:"4px",cursor:p?"pointer":void 0},children:[(0,t.jsx)("div",{className:"relative overflow-hidden bg-gray-100",children:r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{src:r,alt:e,className:"aspect-video w-full object-cover transition-transform duration-300 group-hover:scale-[1.03]"}),c&&(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/0 transition-all duration-300 group-hover:bg-black/40",children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"rotate-45 text-white opacity-0 transition-all duration-300 group-hover:rotate-0 group-hover:opacity-100",children:[(0,t.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]}):(0,t.jsx)("img",{src:"/img/placeholder.jpg",alt:e,className:"aspect-video w-full object-cover"})}),(0,t.jsxs)("div",{className:(0,d.cn)("flex flex-grow flex-col",i?"px-0 lg:px-[30px]":"px-0 lg:px-2"),style:i&&r?{marginTop:"35px"}:void 0,children:[(0,t.jsx)("h3",{className:(0,d.cn)("font-heading text-[#333] transition-colors group-hover:text-primary",i?"text-lg font-normal sm:text-xl md:text-2xl lg:text-[30px]":"text-[16px] lg:text-[18px]"),style:i?{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",maxHeight:"78px",lineHeight:"1.3",margin:0,fontWeight:400}
1:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",maxHeight:"46.8px",lineHeight:"1.3",margin:"20px 0 0",fontWeight:400},children:e}),n&&(0,t.jsx)("p",{className:"mt-3 line-clamp-3 text-base font-light leading-[1.4] text-[#666] lg:text-lg",children:n})]}),(!x||a)&&(0,t.jsx)("div",{className:(0,d.cn)("mt-auto flex items-center justify-between border-b border-[#ddd] uppercase text-[#757575]",i?"px-0 pb-2 pt-3 lg:px-[30px] lg:pb-[15px] lg:pt-[35px]":"px-0 pb-1 pt-2 lg:px-2 lg:pb-[5px] lg:pt-[15px]"),children:a?(0,t.jsx)("span",{className:"text-xs lg:text-sm",children:a}):h&&(0,t.jsx)("span",{className:"text-xs lg:text-sm",children:h})})]})}function j({title:e,href:l,date:r,locale:s="tr",onClick:n}){let i=l.startsWith("http://")||l.startsWith("https://"),a=n?"button":i?"a":u.default,o=n?{type:"button"}:i?{href:l,target:"_blank",rel:"noopener noreferrer"}:{href:l},d=r?new Date(r).toLocaleDateString(s,{year:"numeric",month:"long",day:"numeric"}):null;return(0,t.jsxs)(a,{...o,onClick:e=>{n&&(e.preventDefault(),n(e))},className:"group flex h-[100px] w-full items-center overflow-hidden border-none bg-white text-left !no-underline hover:!no-underline lg:mb-0",style:{marginBottom:"20px",backgroundColor:"white",transition:"0.3s",boxSizing:"border-box",paddingLeft:"4px",paddingRight:"4px",cursor:n?"pointer":void 0},children:[d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 flex-col items-center justify-center px-1 text-[#222222] lg:hidden",children:[(0,t.jsx)("div",{className:"text-[20px] font-bold leading-none",children:new Date(r).getDate().toString().padStart(2,"0")}),(0,t.jsx)("div",{className:"mt-0.5 text-[10px] font-bold uppercase leading-none",children:new Date(r).toLocaleDateString(s,{month:"short"}).toUpperCase()}),(0,t.jsx)("div",{className:"text-[9px] font-bold leading-none text-gray-400",children:new Date(r).getFullYear()})]}),(0,t.jsxs)("div",{className:"hidden h-[100px] w-[100px] shrink-0 flex-col items-center justify-center text-[#222] lg:flex",children:[(0,t.jsx)("div",{className:"text-[32px] font-bold leading-none",children:new Date(r).getDate().toString().padStart(2,"0")}),(0,t.jsx)("div",{className:"mt-1 text-[14px] font-bold uppercase leading-none",children:new Date(r).toLocaleDateString(s,{month:"short"}).toUpperCase()}),(0,t.jsx)("div",{className:"mt-1 text-[14px] font-normal leading-none text-gray-400",children:new Date(r).getFullYear()})]})]}),(0,t.jsx)("div",{className:"mx-1 h-12 w-px shrink-0 bg-gray-300 lg:mx-0 lg:h-16"}),(0,t.jsx)("div",{className:"flex flex-1 flex-col justify-center lg:px-4",children:(0,t.jsx)("h3",{className:"line-clamp-2 text-[16px] font-medium leading-[1.3] text-[#222222] transition-colors group-hover:text-primary lg:text-[18px]",style:{margin:0,WebkitLineClamp:2,display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",fontFamily:"Roboto, sans-serif",fontWeight:500},children:e})})]})}function v({title:e,href:l,description:r}){let s=l.startsWith("http://")||l.startsWith("https://"),n=s?"a":u.default,i=s?{href:l,target:"_blank",rel:"noopener noreferrer"}:{href:l},a=l.split("?")[0].split("#")[0].toLowerCase().split(".").pop()||"",o=["pdf","doc","docx","xls","xlsx","ppt","pptx","zip","rar","jpg","jpeg","png"].includes(a)?({pdf:"pdf",doc:"doc",docx:"doc",xls:"xls",xlsx:"xls",ppt:"ppt",pptx:"ppt",zip:"zip",rar:"rar",jpg:"jpg",jpeg:"jpg",png:"png"})[a]:null;return(0,t.jsxs)(n,{...i,className:"link-card-item flex w-full cursor-pointer items-center bg-[#eee] px-[30px] py-[18px] text-[#333] no-underline transition-colors hover:bg-[#e4e4e4] hover:no-underline",style:{marginBottom:"10px",lineHeight:1.3,fontWeight:500},children:[o&&(0,t.jsx)("img",{src:`/img/icons-with-color/${o}.svg`,alt:o,className:"mr-1.5 shrink-0",width:24,height:24}),(0,t.jsxs)("span",{className:"flex-1",children:[e,r&&(0,t.jsx)("span",{className:"mt-0.5 block text-sm font-bold text-primary",children:r})]}),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",className:"ml-3 shrink-0 text-[#999]",children:[(0,t.jsx)("path",{fill:"currentColor",d:"M15.728 3.884c1.434-1.44 3.532-1.47 4.694-.304c1.164 1.168 1.132 3.28-.303 4.72l-2.424 2.433a.75.75 0 0 0 1.063 1.059l2.424-2.433c1.91-1.919 2.15-4.982.303-6.838c-1.85-1.857-4.907-1.615-6.82.304L9.818 7.692c-1.912 1.919-2.152 4.982-.303 6.837a.75.75 0 1 0 1.062-1.058c-1.163-1.168-1.132-3.28.303-4.72z"}),(0,t.jsx)("path",{fill:"currentColor",d:"M14.485 9.47a.75.75 0 0 0-1.063 1.06c1.164 1.168 1.132 3.279-.303 4.72L8.27 20.116c-1.434 1.44-3.532 1.47-4.694.304c-1.163-1.168-1.132-3.28.303-4.72l2.424-2.433a.75.75 0 1 0-1.062-1.059l-2.424 2.433C.906 16.56.666 19.623 2.515 21.48c1.85 1.858 4.907 1.615 6.819-.304l4.848-4.867c1.91-1.918 2.15-4.982.303-6.837",opacity:".5"})]})]})}function y({title:e,decisionDate:l,decisionNumber:r,relatedDepartment:n,publicationDate:i,fileUrl:a,locale:o="tr"}){let d=(0,s.useTranslations)("content"),c=(0,s.useTranslations)("common"),x=e=>new Date(e).toLocaleDateString(o,{year:"numeric",month:"2-digit",day:"2-digit"}
1),p=[l?x(l):null,r].filter(Boolean).join(" - ");return(0,t.jsxs)("div",{className:"mb-3 border-b border-gray-200 pb-3",children:[(0,t.jsx)("div",{className:"py-1.5",children:(0,t.jsx)("h3",{className:"!text-[18px] !font-medium !font-sans !text-[#222]",style:{margin:0},children:e})}),(0,t.jsxs)("div",{className:"divide-y divide-gray-200",children:[p&&(0,t.jsxs)("div",{className:"flex flex-col py-1 lg:flex-row lg:px-4 lg:py-2.5",children:[(0,t.jsx)("span",{className:"shrink-0 font-medium leading-[1.62] text-[#333] lg:w-56",children:d("decisionDateAndNo")}),(0,t.jsx)("span",{className:"font-light leading-[1.62] text-[#666]",children:p})]}),n&&(0,t.jsxs)("div",{className:"flex flex-col py-1 lg:flex-row lg:px-4 lg:py-2.5",children:[(0,t.jsx)("span",{className:"shrink-0 font-medium leading-[1.62] text-[#333] lg:w-56",children:d("relatedDepartment")}),(0,t.jsx)("span",{className:"font-light leading-[1.62] text-[#666]",children:n})]}),i&&(0,t.jsxs)("div",{className:"flex flex-col py-1 lg:flex-row lg:px-4 lg:py-2.5",children:[(0,t.jsx)("span",{className:"shrink-0 font-medium leading-[1.62] text-[#333] lg:w-56",children:d("publicationDate")}),(0,t.jsx)("span",{className:"font-light leading-[1.62] text-[#666]",children:x(i)})]}),a&&(0,t.jsxs)("div",{className:"flex flex-col py-1 lg:flex-row lg:px-4 lg:py-2.5",children:[(0,t.jsx)("span",{className:"shrink-0 font-medium leading-[1.62] text-[#333] lg:w-56",children:d("file")}),(0,t.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-primary hover:underline",children:c("download")})]})]})]})}function w({items:e,tableColumns:l,title:r}){let n=(0,s.useTranslations)("content"),i=(0,s.useTranslations)("common");return 0===e.length?(0,t.jsx)("p",{className:"py-12 text-center text-gray-400",children:n("noResultsFound")}):(0,t.jsxs)("div",{className:"overflow-auto",children:[(0,t.jsxs)("table",{className:"hidden w-full border-separate text-left lg:table",style:{borderSpacing:"0 1px"},children:[(0,t.jsx)("caption",{className:"sr-only",children:r}),(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{children:l.map(e=>(0,t.jsx)("th",{scope:"col",className:"px-[15px] pb-[15px] pt-0 text-left align-bottom text-[1.2em] font-bold leading-[1.3] text-primary",children:n(e.label)},e.key))})}),(0,t.jsx)("tbody",{children:e.map((e,r)=>{let s=e.data;return(0,t.jsx)("tr",{children:l.map(e=>{let l,n;return(0,t.jsx)("td",{className:(0,d.cn)("px-[15px] py-[15px] text-left align-top text-sm leading-[1.4]",r%2==0?"bg-[#f6f6f6]":"bg-white"),children:(l="string"==typeof s[e.key]?s[e.key]:"",(n=e.linkKey&&"string"==typeof s[e.linkKey]?s[e.linkKey]:null)&&l?(0,t.jsxs)("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:[l,(0,t.jsxs)("span",{className:"sr-only",children:[" ",i("opensInNewWindow")]})]}):l)},e.key)})},e.id)})})]}),(0,t.jsx)("div",{className:"flex flex-col gap-4 lg:hidden",children:e.map(e=>{let r=e.data;return(0,t.jsx)("div",{className:"border-b border-[#ddd] pb-4",children:l.map(e=>{let l,s="string"==typeof r[e.key]?r[e.key]:"";return s?(0,t.jsxs)("div",{className:"py-1",children:[(0,t.jsx)("span",{className:"mb-1 block text-xs font-bold uppercase text-[#222]",children:n(e.label)}),(l=e.linkKey&&"string"==typeof r[e.linkKey]?r[e.linkKey]:null)?(0,t.jsxs)("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary hover:underline",children:[s,(0,t.jsxs)("span",{className:"sr-only",children:[" ",i("opensInNewWindow")]})]}):(0,t.jsx)("span",{className:"text-sm text-[#555]",children:s})]},e.key):null})},e.id)})})]})}function N({label:e,id:l,value:r,onChange:s,placeholder:n}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:l,className:"mb-[3px] ml-0 inline-block !text-[13px] !font-normal !leading-[1.62] uppercase !text-[#222] lg:ml-[18px]",children:e}),(0,t.jsx)("input",{id:l,type:"text",value:r,onChange:e=>s(e.target.value),placeholder:n,className:"h-10 w-full rounded border border-gray-200 bg-white px-3 text-[14px] focus:border-primary focus:outline-none"})]})}function k({label:e,id:l,value:r,onChange:s}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:l,className:"mb-[3px] ml-0 inline-block !text-[13px] !font-normal 
1!leading-[1.62] uppercase !text-[#222] lg:ml-[18px]",children:e}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:l,type:"date",value:r,onChange:e=>s(e.target.value),className:"date-input h-10 w-full rounded border border-gray-200 bg-white px-3 pr-10 text-[14px] focus:border-primary focus:outline-none"}),(0,t.jsx)(p,{size:18,className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-gray-400"})]})]})}var C=e.i(17178);async function S(e,t,l,r=10){let s=new URL(`/api/content/${e}`,window.location.origin);for(let[e,l]of Object.entries(t))void 0!==l&&""!==l&&s.searchParams.set(e,String(l));if(l)for(let[e,t]of Object.entries(l))s.searchParams.set(`filter[${e}]`,t);s.searchParams.set("limit",String(r));let n=await fetch(s.toString());if(!n.ok)throw Error(`API error: ${n.status}`);return n.json()}function D(e){let t=e.data;return(0,d.getContentCardImage)(t)}function L(e){let t=e.data,l=("string"==typeof t.description?t.description:null)||("string"==typeof t.summary?t.summary:null)||("string"==typeof t.excerpt?t.excerpt:null)||void 0;if(!l||!(l.trim().length<=1))return l}function W(e){let t=e.data;if("string"==typeof t.link&&t.link){let e=(0,C.safeUrl)(t.link,"");if(e)return e}if(t.file_url&&"object"==typeof t.file_url){let e=t.file_url;if("string"==typeof e.url&&e.url){let t=(0,C.safeUrl)(e.url,"");if(t)return t}}}function $(e,t,l){return"board-decision"===l?`${t}/${e.slug}`:W(e)||`${t}/${e.slug}`}e.s(["ListPageClient",0,function({items:e,meta:i,featured:a,basePath:o,locale:x,contentType:p,title:u,initialSearch:C,initialDateFrom:O,initialDateTo:_,variant:B="default",showFeatured:F=!1,hideDescription:z=!1,galleryMode:P=!1,filter:T,dropdowns:R,initialDropdowns:H={},limit:U=10,breadcrumbs:A,cardType:M,tableColumns:K,customFilterFields:E,showDateFilter:I=!0}){let G=(0,s.useTranslations)("content"),Y=(0,s.useTranslations)("common"),[J,q]=(0,l.useState)(e),[V,Z]=(0,l.useState)(i),[Q,X]=(0,l.useState)(a),[ee,et]=(0,l.useState)(i.page),[el,er]=(0,l.useState)(C),[es,en]=(0,l.useState)(O),[ei,ea]=(0,l.useState)(_),[eo,ed]=(0,l.useState)(H),[ec,ex]=(0,l.useState)({}),ep=E&&E.length>0,[eh,eg]=(0,l.useState)(!1),[em,ef]=(0,l.useState)(!1),{lightboxOpen:eu,lightboxSlides:eb,lightboxTitle:ej,openGallery:ev,closeLightbox:ey,videoOpen:ew,videoUrl:eN,videoTitle:ek,closeVideo:eC}=(0,r.useContentGallery)();(0,l.useEffect)(()=>(eu||ew?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[eu,ew]);let eS=(0,l.useCallback)((e,t,l,r,s)=>{let n=new URL(o,window.location.origin);if(e>1&&n.searchParams.set("page",String(e)),t&&n.searchParams.set("search",t),l&&n.searchParams.set("date_from",l),r&&n.searchParams.set("date_to",r),s)for(let[e,t]of Object.entries(s))t&&n.searchParams.set(e,t);window.history.replaceState(null,"",n.pathname+n.search)},[o]),eD=(0,l.useCallback)(async(e,t,l,r,s)=>{eg(!0);try{let n,i={...T,...s},a=await S(p,{page:e,locale:x,search:t,date_from:l,date_to:r},Object.keys(i).length>0?i:void 0,U),o=a.data;F&&1===e&&!t&&!l&&o.length>0&&(n=o[0],o=o.slice(1)),q(o),Z(a.meta),X(n),et(e),er(t),en(l),ea(r),s&&ed(s),eS(e,t,l,r,s)}catch{}finally{eg(!1)}},[p,x,F,eS,T,U]),eL=(0,l.useCallback)(e=>{eD(1,e.search,e.dateFrom,e.dateTo,e.dropdowns)},[eD]),eW=(0,l.useCallback)(e=>{eD(e,el,es,ei,eo),window.scrollTo({top:0,behavior:"smooth"})},[eD,el,es,ei,eo]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(f.ContentSection,{className:"mb-[32px] !py-[10px]",children:[A&&(0,t.jsx)(m.Breadcrumb,{items:A}),(0,t.jsx)(g,{title:u,onToggleFilter:()=>ef(e=>!e)}),(0,t.jsx)(h,{initialSearch:C,initialDateFrom:O,initialDateTo:_,showDateFilter:!ep&&I&&"table"!==B,totalResults:ep?void 0:V.total,isOpen:em,dropdowns:R,initialDropdowns:H,showSearch:!ep,onSubmit:ep?e=>{let t={...e.dropdowns},l=e.search;for(let[e,r]of Object.entries(ec))r&&("q"===e?l=r:t[e]=r);eL({search:l,dropdowns:Object.keys(t).length>0?t:void 0})}:eL,children:ep&&E.map(e=>"date"===e.type?(0,t.jsx)(k,{label:e.label,id:`cf-${e.key}`,value:ec[e.key]||"",onChange:t=>ex(l=>({...l,[e.key]:t}))},e.key):(0,t.jsx)(N,{label:e.label,id:`cf-${e.key}`,value:ec[e.key]||"",onChange:t=>ex(l=>({...l,[e.key]:t}))},e.key))})]}),(0,t.jsxs)(f.ContentSection,{children:[(0,t.jsxs)("div",{className:(0,d.cn)("transition-opacity duration-200",eh&&"pointer-events-none opacity-50"),children:[Q&&(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(n.ContentCard,{title:Q.title,slug:Q.slug,href:$(Q,o,B),image:D(Q),date:Q.publishedAt||void 0,text:L(Q),featured:!0,locale:x})}),(0,t.jsx)("h2",{className:"sr-only",children:Y("resultsListingSuffix")}),(()=>{if("data-table"===M&&K)return(0,t.jsx)(w,{items:J,tableColumns:K,title:u});if(0===J.length)return(0,t.jsx)("p",{className:"py-12 text-center text-gray-400",children:G("noResultsFound")});if(M){let e="date-list"===M||"file"===M||"decision"===M;return(0,t.jsx)("div",{className:(0,d.cn)(e?"flex flex-col":"flex flex-wrap -mx-2"),children:J.map(l=>(0,t.jsx)("div",{className:(0,d.cn)(e?"w-full":"w-full mb-2 px-2 sm:w-1/2 lg:w-1/3"),children:function(e,l,r,s,n,i,a,o,c){switch(l){case"image":{let l=a?function(e){let t=e.data,l=(0,d.getContentGalleryImages)(t);if(l.length>0)return l.length;let r=t.images;return r?.length||0}(e):0,n=a&&c&&l>0?c(l):void 0;return(0,t.jsx)(b,{title:e.title,slug:e.slug,href:a?"#":`${s}/${e.slug}`,image:D(e),date:e.publishedAt||void 0,text:i?void 0:L(e),bottomLabel:n,locale:r,showOverlay:a,hideDate:a,onClick:a&&o?()=>o(e):void 0})}case"date-list":return(0,t.jsx)(j,{title:e.title,href:`${s}/${e.slug}`,date:e.publishedAt||void 0,locale:r});case"file":{let l=i?void 0:L(e);return(0,t.jsx)(v,{title:e.title,href:$(e,s,n),description:l})}case"decision":{let l=e.data;return(0,t.jsx)(y,{title:e.title,decisionDate:"string"==typeof l.decision_date?l.decision_date:void 0,decisionNumber:"string"==typeof l.decision_no?l.decision_no:void 0,relatedDepartment:"string"==typeof l.relevant_unit?l.relevant_unit:void 0,publicationDate:e.publishedAt||void 0,fileUrl:W(e),locale:r})}default:return null}}(l,M,x,o,B,z,P,ev,P?e=>Y("photos",{count:e}):void 0)},l.id))})}return(0,t.jsx)("div",{className:(0,d.cn)("article"===B||"link-card"===B||"board-decision"===B?"flex flex-col":"flex flex-wrap -mx-2"),children:J.map(e=>{let l=e.data;return(0,t.jsx)("div",{className:(0,d.cn)("article"===B||"link-card"===B||"board-decision"===B?"w-full":"w-full mb-2 px-2 sm:w-1/2 lg:w-1/3"),children:(0,t.jsx)(n.ContentCard,{title:e.title,slug:e.slug,href:$(e,o,B),image:D(e),date:e.publishedAt||void 0,text:z?void 0:L(e),locale:x,variant:B,showOverlay:P,onClick:P?()=>ev(e):void 0,..."board-decision"===B?{decisionDate:"string"==typeof l.decision_date?l.decision_date:void 0,decisionNumber:"string"==typeof l.decision_no?l.decision_no:void 0,relatedDepartment:"string"==typeof l.relevant_unit?l.relevant_unit:void 0,fileUrl:W(e)}:{}})},e.id)})})})()]}),(0,t.jsx)(c,{currentPage:ee,totalPages:V.totalPages,onPageChange:eW})]}),P&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.GalleryLightbox,{open:eu,slides:eb,title:ej,onClose:ey}),(0,t.jsx)(r.VideoLightbox,{open:ew,url:eN,title:ek,onClose:eC})]})]})}],95256)}]);

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.