PageSourceSearch

https://www.ditp.go.th/_next/static/chunks/pages/category/internat…al-trade-promotion-fund-bfa349fe2181776a.js

js ditp.go.th collected 2026-10-02 04:02:52 UTC 6,898 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5547],{82809:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/category/international-trade-promotion-fund",function(){return n(26082)}])},3632:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(85893),r=n(41664),s=n.n(r),l=n(11163);function i(e){let{paths:t}=e,n=(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,r)=>(0,a.jsxs)("div",{className:"flex items-center space-x-2 mt-2",children:[r>0&&(0,a.jsx)("span",{className:"text-gray-400",children:"/"}),r===t.length-1?(0,a.jsx)("span",{className:"text-black font-semibold",children:e.label}):e.link?(0,a.jsx)(s(),{href:e.link,legacyBehavior:!0,locale:n.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})]},r))]})})})}},52467:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(85893),r=n(69740);function s(e){let{currentPage:t,totalPages:n,itemsPerPage:s,totalItems:l,setCurrentPage:i,setItemsPerPage:o,handlePageClick:d,disableScroll:c=!1}=e,m=()=>{c||(0,r.UK)()||window.scrollTo({top:0,behavior:"auto"})},u=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:s,onChange:e=>{o(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)*s+1," -"," ",Math.min(t*s,l)," of ",l," ","Posts"]})]}),(0,a.jsxs)("div",{className:"flex md:space-x-2",children:[(0,a.jsxs)("button",{onClick:()=>u(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,n);a++){let r;r=n<=7?a+1:t<=4?a<5?a+1:5===a?"...":n:t>n-4?0===a?1:1===a?"...":n-(6-a):0===a?1:1===a?"...":a<5?t-(3-a):5===a?"...":n,e.push(r)}return e})().map((e,n)=>(0,a.jsx)("button",{onClick:()=>"number"==typeof e?u(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},n))}),(0,a.jsxs)("button",{onClick:()=>u(t+1),disabled:t===n,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"})})]})]})]})})}},26082:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return x},default:function(){return h}});var a=n(85893),r=n(3632),s=n(76809);n(24985);var l=n(41664),i=n.n(l),o=n(67294),d=n(11163),c=n(52467),m=n(66308),u=n(63805),x=!0;function h(e){var t,n;let{category:l}=(0,d.useRouter)().query,[x,h]=(0,o.useState)(e.currentPage),[p,f]=(0,o.useState)(e.itemsPerPage),[g,b]=(0,o.useState)((null===(t=e.aboutthefund)||void 0===t?void 0:t.data)||[]),[v,j]=(0,o.useState)(0),[w,N]=(0,o.useState)(0),[y,k]=(0,o.useState)(!1);(0,o.useEffect)(()=>{(async()=>{k(!0);try{let e=(await s.hi.getAboutthefundcategory(l,x,p)).data;j(e.meta.pagination.total),N(e.meta.pagination.pageCount),b(e.data)}catch(e){console.error("Error fetching data: ",e)}finally{k(!1)}})()},[l,x,p]);let _=[{label:"หน้าหลัก",link:"/"},{label:"กองทุนส่งเสริมการค้าระหว่างประเทศ",link:"/international-trade-promotion-fund"},{label:[...new Set(g.map(e=>{var t;return null===(t=e.category_international_trade_promotion_fund)||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)(r.Z,{paths:_})}),(0,a.jsx)(m.Z,{title:Array.from(new Set(g.map(e=>{var t;return null===(t=e.category_international_trade_promotion_fund)||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_international_trade_promotion_fund)||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===(n=(0,u.IU)(g))||void 0===n?void 0:n.map((e,t)=>(0,a.jsx)(i(),{href:"/post/international-trade-promotion-fund/".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))}),v>10&&(0,a.jsx)(c.Z,{currentPage:x,totalPages:w,itemsPerPage:p,totalItems:v,setCurrentPage:h,setItemsPerPage:f,handlePageClick:e=>{h(e)}})]})})]})}}},function(e){e.O(0,[2275,6308,1289,2888,9774,179],function(){return e(e.s=82809)}),_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.