PageSourceSearch

https://www.turksoy.org/_next/static/chunks/pages/bulletins-54f092a96de4353a.js

js turksoy.org collected 2026-10-02 11:06:35 UTC 6,039 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[689],{36731:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bulletins",function(){return a(62451)}])},62451:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return L}});var n=a(85893),l=a(67294),o=a(27361),r=a.n(o),i=a(39138),s=a.n(i),c=a(77043),d=a.n(c),u=a(44012),m=a(30381),h=a.n(m),p=a(33082),f=a.n(p),g=a(29496),x=a(19214),y=a(10278),v=a(85639),j=a(18463),w=a(951),Z=a(79912),b=a(22318),C=a(51907),_=a(95477),N=a(76386),S=a(65760),k=a(97406),E=a(13098),Y=a(99839),P=a(5202),B=a(9278);a(7953).k1.map(e=>{try{a(46700)("./".concat(e.code))}catch(e){}});let D=(0,x.Z)(e=>({root:{},list:{display:"grid",gridColumnGap:e.spacing(3),gridRowGap:e.spacing(3),gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))"},card:{display:"flex",flexDirection:"column",justifyContent:"space-between"},media:{flexShrink:0,height:160},content:{flexGrow:1},actions:{flexShrink:0,display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.primary.main,paddingRight:e.spacing(3)},downloadButton:{position:"relative",flexShrink:0,padding:e.spacing(.5,3,.5,2),color:"#fff",backgroundColor:"transparent",textDecoration:"none",transition:"all .2s","&:after":{position:"absolute",top:"50%",right:-5,width:24,height:24,content:'url(\'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="'.concat("#fff".replace("#","%23"),'" d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"%3E%3C/path%3E%3C/svg%3E\')'),transform:"translateY(-50%) rotate(90deg)",transition:"all .2s"},"&:hover":{textDecoration:"none",backgroundColor:e.palette.secondary.main,color:"#fff","&:after":{top:"60%"}}},moreLoading:{padding:e.spacing(8,3),display:"flex",justifyContent:"center",alignItems:"center"},month:{width:150},year:{width:120}}));var L=!0;t.default=(0,P.Z)(e=>{let{categories:t,payload:a,limit:o,...i}=e,c=D(),[{cdn:m,locale:p,formatMessage:x}]=(0,B.Z)(),{enqueueSnackbar:P}=(0,g.Ds)(),L=(0,l.useRef)(!1),R=(0,l.useRef)(!0),[z,A]=(0,l.useState)(!1),[I,T]=(0,l.useState)((null==a?void 0:a.data)||[]),[G,M]=(0,l.useState)((null==a?void 0:a.more)||!1),[O,U]=(0,l.useState)(r()(null==a?void 0:a.data,"".concat(((null==a?void 0:a.data)||[]).length-1,".id"))),[X,F]=(0,l.useState)({year:"",month:"",title:""});(0,l.useEffect)(()=>(L.current=!0,()=>{L.current=!1}),[]),(0,l.useEffect)(()=>{R.current||(A(!0),H().then(e=>{L.current&&(M(e.more),T(e.data),U(e.data.length?e.data[e.data.length-1].id:null))}).catch(e=>{P(e.toString(),{preventDuplicate:!0,variant:"error"})}).finally(()=>{L.current&&A(!1)})),R.current=!1},[X]);let H=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;try{let a=await fetch("/api/news?locale=".concat(p.id,"&category=").concat(""===X.category?["bulletin"].concat(t.map(e=>e.name)).join(","):X.category,"&lastId=").concat(e,"&limit=").concat(o,"&filters=").concat(encodeURIComponent(JSON.stringify(X))));if(200!==a.status)return Promise.reject(a.statusText);let n=await a.json();if(n.success)return Promise.resolve(n.payload);return Promise.reject(Error(n.error.message))}catch(e){return Promise.reject(e)}},J=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return a=>{a&&(t="checkbox"===a.target.type?a.target.checked:a.target.value),F(a=>({...a,[e]:t}))}};return(0,n.jsxs)(k.Z,{title:x("nav.bulletins","Bulletins"),...i,children:[(0,n.jsxs)(E.Z,{children:[(0,n.jsxs)(y.Z,{className:c.year,select:!0,SelectProps:{displayEmpty:!0},size:"small",variant:"outlined",value:X.year,onChange:J("year"),children:[(0,n.jsxs)(v.Z,{value:"",children:[" -- ",(0,n.jsx)(u.Z,{id:"label.all",defaultMessage:"All"})," -- "]}),[...Array(h()().format("YYYY")-2e3).keys()].map((e,t)=>(0,n.jsx)(v.Z,{value:h()().subtract(t,"year").format("YYYY"),children:h()().subtract(t,"year").format("YYYY")},t))]}),(0,n.jsxs)(y.Z,{className:c.month,select:!0,SelectProps:{displayEmpty:!0},size:"small",variant:"outlined",value:X.month,onChange:J("month"),children:[(0,n.jsxs)(v.Z,{value:"",children:[" -- ",(0,n.jsx)(u.Z,{id:"label.all",defaultMessage:"All"})," -- "]}),h().months().map((e,t)=>(0,n.jsx)(v.Z,{value:t+1,children:e},t))]}),(0,n.jsx)(y.Z,{variant:"outlined",size:"small",placeholder:x("label.bulletin_no","Bulletin No"),value:X.title,onChange:J("title")})]}),Array.isArray(I)&&I.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:c.list,children:I.map(e=>(0,n.jsxs)(j.Z,{className:c.card,children:[e.media.find(e=>e.poster)&&(0,n.jsx)(w.Z,{className:c.media,image:"".concat(m.url,"/").concat(r()(e.media.find(e=>e.poster),"slug")),title:e.title}),(0,n.jsxs)(Z.Z,{className:c.content,children:[(0,n.jsxs)(b.Z,{variant:"subtitle2",gutterBottom:!0,children:["― ",h()(e.publish_at).format("LL")]}),(0,n.jsx)(b.Z,{gutterBottom:!0,variant:"h4",component:"h2",children:e.title}),(0,n.jsx)(b.Z,{variant:"body1",color:"textSecondary",component:"p",children:s()(r()(e.meta,"description",""),{length:100})})]}),e.media.filter(e=>"document"===e.type).length>0&&(0,n.jsx)(C.Z,{className:c.actions,children:(0,n.jsx)(Y.Z,{withoutIcon:!0,label:
1x("button.download","Download"),className:c.downloadButton,component:S.Z,href:"".concat(m.url,"/").concat(e.media.filter(e=>"document"===e.type).map(e=>e.slug).join(","),"?name=").concat(encodeURIComponent(e.title),"&download"),size:"small",color:"primary",options:e.media.filter(e=>"document"===e.type).map(e=>({id:e.id,label:e.title,component:S.Z,href:"".concat(m.url,"/").concat(e.slug,"?download")}))})})]},e.id))}),G&&(0,n.jsx)(f(),{onChange:e=>{e&&!z&&(A(!0),H(O).then(e=>{L.current&&(M(e.more),T(t=>d()(t,e.data,"id")),U(e.data.length?e.data[e.data.length-1].id:null))}).catch(()=>{L.current&&M(!1)}).finally(()=>{L.current&&A(!1)}))},children:(0,n.jsx)("div",{className:c.moreLoading,children:(0,n.jsx)(_.Z,{color:"secondary"})})})]}):(0,n.jsx)(N.Z,{message:x("message.no_content_found","No content found")})]})})}},function(e){e.O(0,[472,712,143,13,888,774,179],function(){return e(e.s=36731)}),_N_E=e.O()}]);

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.