1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[769],{15560:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/category/ditp-honest-transparent-no-corruption",function(){return s(98563)}])},3632:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var a=s(85893),n=s(41664),r=s.n(n),l=s(11163);function i(e){let{paths:t}=e,s=(0,l.useRouter)();return(0,a.jsx)("nav",{className:"text-gray-500 text-sm overflow-x-auto whitespace-nowrap custom-scroll",children:(0,a.jsx)("div",{className:"max-w-screen-xl mx-auto px-4",children:(0,a.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,a.jsx)("img",{src:"/icons/home.png",alt:"Profile",className:"w-4 h-4"}),t.filter(e=>e.label).map((e,n)=>(0,a.jsxs)("div",{className:"flex items-center space-x-2 mt-2",children:[n>0&&(0,a.jsx)("span",{className:"text-gray-400",children:"/"}),n===t.length-1?(0,a.jsx)("span",{className:"text-black font-semibold",children:e.label}):e.link?(0,a.jsx)(r(),{href:e.link,legacyBehavior:!0,locale:s.locale,children:(0,a.jsx)("a",{className:"text-gray-400 hover:text-gray-600",children:e.label})}):(0,a.jsx)("div",{className:"text-gray-400 line-clamp-1",children:e.label})]},n))]})})})}},52467:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});var a=s(85893),n=s(69740);function r(e){let{currentPage:t,totalPages:s,itemsPerPage:r,totalItems:l,setCurrentPage:i,setItemsPerPage:c,handlePageClick:d,disableScroll:o=!1}=e,m=()=>{o||(0,n.UK)()||window.scrollTo({top:0,behavior:"auto"})},x=e=>{m(),d(e)};return(0,a.jsx)("div",{className:"max-w-screen-xl mx-auto mt-8",children:(0,a.jsxs)("div",{className:"flex justify-center md:justify-between items-center",children:[(0,a.jsxs)("div",{className:"hidden md:flex md:flex-wrap lg:flex-row items-center",children:[(0,a.jsx)("label",{children:"Items per page"}),(0,a.jsx)("select",{value:r,onChange:e=>{c(Number(e.target.value)),i(1),m()},className:"ml-2 border rounded-md px-2 py-1",children:[10,20,50,100].map(e=>(0,a.jsx)("option",{value:e,children:e},e))}),(0,a.jsxs)("div",{className:"md:mt-2 lg:ml-2",children:["Showing ",(t-1)*r+1," -"," ",Math.min(t*r,l)," of ",l," ","Posts"]})]}),(0,a.jsxs)("div",{className:"flex md:space-x-2",children:[(0,a.jsxs)("button",{onClick:()=>x(t-1),disabled:1===t,className:"px-3 py-1 border rounded-2xl disabled:opacity-50 flex items-center gap-2",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})}),(0,a.jsx)("div",{className:"hidden md:block",children:"Previous"})]}),(0,a.jsx)("div",{className:"flex items-center space-x-1",children:(()=>{let e=[];for(let a=0;a<Math.min(7,s);a++){let n;n=s<=7?a+1:t<=4?a<5?a+1:5===a?"...":s:t>s-4?0===a?1:1===a?"...":s-(6-a):0===a?1:1===a?"...":a<5?t-(3-a):5===a?"...":s,e.push(n)}return e})().map((e,s)=>(0,a.jsx)("button",{onClick:()=>"number"==typeof e?x(e):null,disabled:"..."===e,className:"px-3 py-1 rounded-lg w-8 h-8 flex items-center justify-center ".concat(t===e?"bg-[#0E143B] text-white border-[#0E143B]":"text-[#00000080]"),children:e},s))}),(0,a.jsxs)("button",{onClick:()=>x(t+1),disabled:t===s,className:"px-3 py-1 border rounded-2xl disabled:opacity-50 flex items-center gap-2",children:[(0,a.jsx)("div",{className:"hidden md:block",children:"Next"}),(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"})})]})]})]})})}},98563:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return u},default:function(){return h}});var a=s(85893),n=s(3632),r=s(76809);s(24985);var l=s(41664),i=s.n(l),c=s(67294),d=s(11163),o=s(52467),m=s(66308),x=s(63805),u=!0;function h(e){var t,s;let{category:l}=(0,d.useRouter)().query,[u,h]=(0,c.useState)(e.currentPage),[p,f]=(0,c.useState)(e.itemsPerPage),[g,v]=(0,c.useState)((null===(t=e.ditphonest)||void 0===t?void 0:t.data)||[]),[b,j]=(0,c.useState)(0),[w,N]=(0,c.useState)(0),[y,k]=(0,c.useState)(!1);(0,c.useEffect)(()=>{(async()=>{k(!0);try{let e=(await r.hi.getditphonestcategory(l,u,p)).data;j(e.meta.pagination.total),N(e.meta.pagination.pageCount),v(e.data)}catch(e){console.error("Error fetching data: ",e)}finally{k(!1)}})()},[l,u,p]);let _=[{label:"หà¸à¹à¸²à¸«à¸¥à¸±à¸",link:"/"},{label:"DITP à¸à¸·à¹à¸à¸ªà¸±à¸à¸¢à¹ à¹à¸à¸£à¹à¸à¹à¸ª à¹à¸£à¹à¸à¸¸à¸à¸£à¸´à¸",link:"/ditp-honest-transparent-no-corruption"},{label:[...new Set(g.map(e=>{var t;return null===(t=e.category_ditp_honest)||void 0===t?void 0:t.name}))]}];return(0,a.jsxs)("div",{className:"pt-16 pb-16",style:{backgroundColor:"#ffffff",backgroundImage:"url('/images/bg.jpg')",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"repeat"}
1,children:[(0,a.jsx)("div",{className:"sticky top-[60px] bg-white",children:(0,a.jsx)(n.Z,{paths:_})}),(0,a.jsx)(m.Z,{title:Array.from(new Set(g.map(e=>{var t;return null===(t=e.category_ditp_honest)||void 0===t?void 0:t.name}))).join(", "),description:Array.from(new Set(g.map(e=>null==e?void 0:e.title))).join(", "),breadcrumbs:_}),(0,a.jsx)("div",{className:"max-w-screen-lg mx-auto px-4",children:(0,a.jsxs)("div",{className:"mt-8",children:[(0,a.jsx)("h1",{className:"mt-12 mb-8 text-2xl md:text-[40px] font-semibold text-gradient inline",children:[...new Set(g.map(e=>{var t;return null===(t=e.category_ditp_honest)||void 0===t?void 0:t.name}))]}),(0,a.jsx)("div",{className:"grid grid-cols-1",children:y?Array.from({length:p}).map((e,t)=>(0,a.jsx)("div",{className:"flex flex-col md:flex-row md:justify-between md:items-center mt-4 border-b-2 pb-6 animate-pulse",children:(0,a.jsx)("div",{className:"md:w-[900px]",children:(0,a.jsx)("div",{className:"h-5 bg-gray-200 rounded w-full mb-2"})})},t)):null===(s=(0,x.IU)(g))||void 0===s?void 0:s.map((e,t)=>(0,a.jsx)(i(),{href:"/post/ditp-honest/".concat(e.documentId),children:(0,a.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between md:items-center mt-4 border-b-2 pb-6",children:[(0,a.jsx)("div",{className:"md:w-[900px]",children:(0,a.jsx)("div",{children:e.title})}),(0,a.jsx)("button",{type:"button",className:"w-[190px] h-[42px] md:h-[53px] border border-[#10143C] rounded-full mt-4 md:mt-0",children:(0,a.jsx)("div",{className:"text-center",children:"à¸à¸¹à¸£à¸²à¸¢à¸¥à¸°à¹à¸à¸µà¸¢à¸"})})]})},t))}),b>10&&(0,a.jsx)(o.Z,{currentPage:u,totalPages:w,itemsPerPage:p,totalItems:b,setCurrentPage:h,setItemsPerPage:f,handlePageClick:e=>{h(e)}})]})})]})}}},function(e){e.O(0,[2275,6308,1289,2888,9774,179],function(){return e(e.s=15560)}),_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.