PageSourceSearch

https://www.ditp.go.th/_next/static/chunks/pages/international-for…/Investment-Guide-40210da84e84e5e4.js

js ditp.go.th collected 2026-10-02 04:04:01 UTC 4,749 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1e3],{89162:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/international-foreign-market/Investment-Guide",function(){return a(80246)}])},80246:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return f},default:function(){return h}});var n=a(85893),i=a(3632);a(41664);var s=a(67294),r=a(76809),l=a(24985),c=a(40792),o=a(52467),d=a(25675),m=a.n(d),g=a(48333),u=a(66308),x=a(63805),f=!0;function h(e){var t,a;l.QP;let[d,f]=(0,s.useState)("All e-Magazine"),[h,p]=(0,s.useState)(e.currentPage),[v,b]=(0,s.useState)(e.itemsPerPage),[w,j]=(0,s.useState)((null===(t=e.tradeaninvestmentguides)||void 0===t?void 0:t.data)||[]),[N,_]=(0,s.useState)(0),[k,y]=(0,s.useState)(0),[P,S]=(0,s.useState)(!1),[E,z]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=()=>{S(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,s.useEffect)(()=>{(async()=>{z(!0);try{let e;if("All e-Magazine"===d)e=(await r.hi.getTradeaninvestmentguidespage(h,v)).data;else{let t=new URLSearchParams;t.append("filters[e_magazine_type][magazine_name][$in]",d),e=(await r.hi.getTradeaninvestmentguidestype(t,h,v)).data}_(e.meta.pagination.total),y(e.meta.pagination.pageCount),P?j(t=>1===h?e.data:[...t,...e.data].slice(0,h*v)):j(e.data)}catch(e){console.error("Error fetching data: ",e)}finally{z(!1)}})()},[h,v,d,P]),(0,s.useEffect)(()=>{(async()=>{try{let e={content:"คู่มือการค้าการลงทุน",url:window.location.href,author:"",post_type:"หน้า",publishAt:""};await r.hi.getPageinsights(e)}catch(e){console.error("เกิดข้อผิดพลาดในการบันทึกข้อมูล",e)}})()},[]);let T=e=>{f(e),p(1)},C=[{label:"หน้าหลัก",link:"/"},{label:"หน้าหลักสถานการณ์การค้าในต่างประเทศ",link:"/international-foreign-market"},{label:"นิตยสารออนไลน์ด้านการค้า"}];return(0,n.jsxs)("div",{className:"pt-16 pb-16",style:{backgroundColor:"#ffffff",backgroundImage:"url('/images/bg.jpg')",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"repeat"},children:[(0,n.jsx)(u.Z,{title:"นิตยสารออนไลน์ด้านการค้า - กรมส่งเสริมการค้าระหว่างประเทศ",description:"นิตยสารออนไลน์ด้านการค้า",breadcrumbs:C}),(0,n.jsx)("div",{className:"sticky top-[60px] bg-white z-20",children:(0,n.jsx)(i.Z,{paths:C})}),(0,n.jsxs)("div",{className:"max-w-screen-xl mx-auto mt-4 md:mt-16 px-4",children:[(0,n.jsx)("h1",{className:"px-8 text-center text-2xl md:text-[40px] font-semibold text-gradient",children:"นิตยสารออนไลน์ด้านการค้า"}),(0,n.jsx)("div",{className:"w-24 h-1 bg-gradient-to-r from-blue-950 to-teal-300 mx-auto mt-2"}),(0,n.jsx)("div",{className:"flex flec-row md:justify-center mt-12 space-x-8 whitespace-nowrap overflow-x-auto custom-scroll",children:["All e-Magazine","Think Trade Think DITP","Insight china","TIK: Trade In Korea","Cambodia Compass"].map(e=>(0,n.jsx)("span",{className:"cursor-pointer ".concat(d===e?"font-bold text-gradient":"text-gray-600 hover:text-transparent bg-clip-text bg-gradient-to-br from-blue-950 to-blue-400"),onClick:()=>T(e),children:e},e))}),0===w.length?(0,n.jsx)("div",{className:"flex justify-center items-center",children:(0,n.jsx)("img",{src:"/images/nodata.png",alt:"No Data",className:"w-[495px] h-[397px] mb-4"})}):(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"gap-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 z-10 mt-8",children:E?Array.from({length:v}).map((e,t)=>(0,n.jsx)(g.Z,{},t)):null===(a=(0,x.IU)(w))||void 0===a?void 0:a.map(e=>(0,n.jsxs)("div",{className:"flex-shrink-0 md:flex md:flex-col justify-center items-center",children:[(0,n.jsx)(c.Z,{file:e}),(0,n.jsx)("div",{className:"p-4 text-center",children:(0,n.jsx)("div",{className:"text-md text-pretty font-semibold line-clamp-2 hover:opacity-50",children:e.title})})]},e.id))}),P&&E&&(0,n.jsxs)("div",{className:"flex flex-row justify-center items-center my-4",children:[(0,n.jsx)(m(),{src:"/animations/Loading_icon.gif",alt:"Loading...",width:50,height:50}),(0,n.jsx)("div",{className:"text-[#1F2937] mt-2",children:"Loading..."})]}),(0,n.jsx)(o.Z,{currentPage:h,totalPages:k,itemsPerPage:v,totalItems:N,setCurrentPage:p,setItemsPerPage:b,handlePageClick:e=>{p(e)}})]})]})]})}}},function(e){e.O(0,[2275,5675,6308,1289,7274,2888,9774,179],function(){return e(e.s=89162)}),_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.