1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2496],{44305:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/category/posts/[category]",function(){return n(75972)}])},3632:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(85893),l=n(41664),s=n.n(l),r=n(11163);function i(e){let{paths:t}=e,n=(0,r.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,l)=>(0,a.jsxs)("div",{className:"flex items-center space-x-2 mt-2",children:[l>0&&(0,a.jsx)("span",{className:"text-gray-400",children:"/"}),l===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})]},l))]})})})}},52467:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(85893),l=n(69740);function s(e){let{currentPage:t,totalPages:n,itemsPerPage:s,totalItems:r,setCurrentPage:i,setItemsPerPage:o,handlePageClick:d,disableScroll:c=!1}=e,m=()=>{c||(0,l.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,r)," of ",r," ","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 l;l=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(l)}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"})})]})]})]})})}},75972:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return x},default:function(){return p}});var a=n(85893),l=n(3632),s=n(76809);n(24985);var r=n(41664),i=n.n(r),o=n(67294),d=n(11163),c=n(52467),m=n(66308),u=n(63805),x=!0;function p(e){var t,n,r,x,p,h;let{category:v}=(0,d.useRouter)().query,[f,g]=(0,o.useState)(e.currentPage),[b,j]=(0,o.useState)(e.itemsPerPage),[w,N]=(0,o.useState)((null===(t=e.posts)||void 0===t?void 0:t.data)||[]),[y,k]=(0,o.useState)(0),[_,P]=(0,o.useState)(0),[S,C]=(0,o.useState)(!1);(0,o.useEffect)(()=>{(async()=>{C(!0);try{let e=(await s.hi.getpostscategory(v,f,b)).data;k(e.meta.pagination.total),P(e.meta.pagination.pageCount),N(e.data)}catch(e){console.error("Error fetching data: ",e)}finally{C(!1)}})()},[v,f,b]);let I=[{label:"หà¸à¹à¸²à¸«à¸¥à¸±à¸",link:"/"},{label:"หà¸à¹à¸²à¸«à¸¥à¸±à¸à¸ªà¸à¸²à¸à¸à¸²à¸£à¸à¹à¸à¸²à¸£à¸à¹à¸²à¹à¸à¸à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨",link:"/international-foreign-market"},{label:(null===(r=w[0])||void 0===r?void 0:null===(n=r.category_post)||void 0===n?void 0:n.documentId)==="uvluu0pei129kwambr2xwimo"?"à¸à¸à¸à¹à¸à¸§à¸²à¸¡à¸£à¸¹à¹à¸à¹à¸²à¸à¸à¸²à¸£à¸à¹à¸²à¸£à¸°à¸«à¸§à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨":"à¸à¸£à¸°à¹à¸à¹à¸à¸£à¹à¸à¸/à¹à¸à¸²à¸°à¸¥à¸¶à¸à¸à¸¥à¸²à¸à¹à¸¥à¸",link:(null===(p=w[0])||void 0===p?void 0:null===(x=p.category_post)||void 0===x?void 0:x.documentId)==="uvluu0pei129kwambr2xwimo"?"/international-foreign-market/Knowledge":"/international-foreign-market/Hot-issue"},{label:[...new Set(w.map(e=>{var t;return null===(t=e.category_post)||void 0===t?void 0:t.name}))]}],E=(e,t,n)=>{var a,l;let s=null===(a=n.category_post)||void 0===a?void 0:a.documentId,r=null===(l=n.post_type)||void 0===l?void 0:l.post_type_name;if("uvluu0pei129kwambr2xwimo"===s)return!r||["Podcast","Presentation"].includes(r)?"":"blockdit"===r?(null==n?void 0:n.link_url)||"":"/post/post-knowledge/".concat(t);if(["xb5dcuaaa6brpgwtgte9ncmu","ndqk95ttxp9yqp8xapnnayfj"].includes(s))return"/international-foreign-market/Trade-Guide/".concat(t);switch(e){case s:return"/post/".concat(t);case"trade_and_investment_guides":return"/international-foreign-market/Investment-Guide/".concat(t);default:return""}};return(0,a.jsxs)("div",{className:"pt-16 mb-16",children:[(0,a.jsx)("div",{className:"sticky top-[60
1px] bg-white",children:(0,a.jsx)(l.Z,{paths:I})}),(0,a.jsx)(m.Z,{title:"".concat(Array.from(new Set(w.map(e=>{var t;return null===(t=e.category_post)||void 0===t?void 0:t.name}))).join(", ")," - à¸à¸£à¸¡à¸ªà¹à¸à¹à¸ªà¸£à¸´à¸¡à¸à¸²à¸£à¸à¹à¸²à¸£à¸°à¸«à¸§à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨"),description:Array.from(new Set(w.map(e=>null==e?void 0:e.title))).join(", "),breadcrumbs:I}),(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(w.map(e=>{var t;return null===(t=e.category_post)||void 0===t?void 0:t.name}))]}),(0,a.jsx)("div",{className:"grid grid-cols-1",children:(0,a.jsx)("div",{className:"mt-6",children:S?Array.from({length:b}).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===(h=(0,u.IU)(w))||void 0===h?void 0:h.map((e,t)=>{var n;let l=E(null==e?void 0:null===(n=e.category_post)||void 0===n?void 0:n.documentId,null==e?void 0:e.documentId,e);return l?(0,a.jsx)(i(),{href:l,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):null})})}),(0,a.jsx)(c.Z,{currentPage:f,totalPages:_,itemsPerPage:b,totalItems:y,setCurrentPage:g,setItemsPerPage:j,handlePageClick:e=>{g(e)}})]})})]})}}},function(e){e.O(0,[2275,6308,1289,2888,9774,179],function(){return e(e.s=44305)}),_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.