1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[426],{95049:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/result_search",function(){return l(93238)}])},32602:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var l in t)Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}(t,{default:function(){return a},noSSR:function(){return s}});let n=l(38754);l(85893),l(67294);let r=n._(l(35491));function i(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function a(e,t){let l=r.default,n={loading:e=>{let{error:t,isLoading:l,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let a=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?l({...n,loader:()=>null!=a?a().then(i):Promise.resolve(i(()=>null))}):(delete n.webpack,delete n.modules,s(l,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1159:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=l(38754)._(l(67294)).default.createContext(null)},35491:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let n=l(38754)._(l(67294)),r=l(1159),i=[],s=[],a=!1;function o(e){let t=e(),l={loading:!0,loaded:null,error:null};return l.promise=t.then(e=>(l.loading=!1,l.loaded=e,e)).catch(e=>{throw l.loading=!1,l.error=e,e}),l}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let l=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),i=null;function o(){if(!i){let t=new d(e,l);i={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return i.promise()}if(!a){let e=l.webpack?l.webpack():l.modules;e&&s.push(t=>{for(let l of e)if(t.includes(l))return o()})}function c(e,t){!function(){o();let e=n.default.useContext(r.LoadableContext);e&&Array.isArray(l.modules)&&l.modules.forEach(t=>{e(t)})}();let s=n.default.useSyncExternalStore(i.subscribe,i.getCurrentValue,i.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:i.retry}),[]),n.default.useMemo(()=>{var t;return s.loading||s.error?n.default.createElement(l.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:i.retry}):s.loaded?n.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return c.preload=()=>o(),c.displayName="LoadableComponent",n.default.forwardRef(c)}(o,e)}function u(e,t){let l=[];for(;e.length;){let n=e.pop();l.push(n(t))}return Promise.all(l).then(()=>{if(e.length)return u(e,t)})}c.preloadAll=()=>new Promise((e,t)=>
1{u(i).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let l=()=>(a=!0,t());u(s,e).then(l,l)})),window.__NEXT_PRELOADREADY=c.preloadReady;let m=c},3632:function(e,t,l){"use strict";l.d(t,{Z:function(){return a}});var n=l(85893),r=l(41664),i=l.n(r),s=l(11163);function a(e){let{paths:t}=e,l=(0,s.useRouter)();return(0,n.jsx)("nav",{className:"text-gray-500 text-sm overflow-x-auto whitespace-nowrap custom-scroll",children:(0,n.jsx)("div",{className:"max-w-screen-xl mx-auto px-4",children:(0,n.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,n.jsx)("img",{src:"/icons/home.png",alt:"Profile",className:"w-4 h-4"}),t.filter(e=>e.label).map((e,r)=>(0,n.jsxs)("div",{className:"flex items-center space-x-2 mt-2",children:[r>0&&(0,n.jsx)("span",{className:"text-gray-400",children:"/"}),r===t.length-1?(0,n.jsx)("span",{className:"text-black font-semibold",children:e.label}):e.link?(0,n.jsx)(i(),{href:e.link,legacyBehavior:!0,locale:l.locale,children:(0,n.jsx)("a",{className:"text-gray-400 hover:text-gray-600",children:e.label})}):(0,n.jsx)("div",{className:"text-gray-400 line-clamp-1",children:e.label})]},r))]})})})}},40792:function(e,t,l){"use strict";var n=l(85893),r=l(67294),i=l(5152),s=l.n(i);let a=e=>{var t,l,i,s;let{file:a}=e,o=(null==a?void 0:null===(l=a.file_path)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.url)||(null==a?void 0:null===(i=a.file_pdf)||void 0===i?void 0:i.url),d=(null===(s=a.image)||void 0===s?void 0:s.url)||"/images/ditpimage.png";return(0,r.useEffect)(()=>{window.DFLIP?(window.DFLIP.parseBooks(),setTimeout(()=>{document.querySelectorAll("._df_thumb").forEach(e=>{e.style.width="220px",e.style.height="350px"}),document.querySelectorAll("._df_thumb img").forEach(e=>{e.style.width="250px",e.style.height="350px"})},300)):console.error("DearFlip is not loaded!")},[]),(0,n.jsx)("div",{className:"flex justify-center items-center",children:(0,n.jsx)("div",{className:"_df_thumb",source:o,thumb:d})})};t.Z=s()(()=>Promise.resolve(a),{ssr:!1})},52467:function(e,t,l){"use strict";l.d(t,{Z:function(){return i}});var n=l(85893),r=l(69740);function i(e){let{currentPage:t,totalPages:l,itemsPerPage:i,totalItems:s,setCurrentPage:a,setItemsPerPage:o,handlePageClick:d,disableScroll:c=!1}=e,u=()=>{c||(0,r.UK)()||window.scrollTo({top:0,behavior:"auto"})},m=e=>{u(),d(e)};return(0,n.jsx)("div",{className:"max-w-screen-xl mx-auto mt-8",children:(0,n.jsxs)("div",{className:"flex justify-center md:justify-between items-center",children:[(0,n.jsxs)("div",{className:"hidden md:flex md:flex-wrap lg:flex-row items-center",children:[(0,n.jsx)("label",{children:"Items per page"}),(0,n.jsx)("select",{value:i,onChange:e=>{o(Number(e.target.value)),a(1),u()},className:"ml-2 border rounded-md px-2 py-1",children:[10,20,50,100].map(e=>(0,n.jsx)("option",{value:e,children:e},e))}),(0,n.jsxs)("div",{className:"md:mt-2 lg:ml-2",children:["Showing ",(t-1)*i+1," -"," ",Math.min(t*i,s)," of ",s," ","Posts"]})]}),(0,n.jsxs)("div",{className:"flex md:space-x-2",children:[(0,n.jsxs)("button",{onClick:()=>m(t-1),disabled:1===t,className:"px-3 py-1 border rounded-2xl disabled:opacity-50 flex items-center gap-2",children:[(0,n.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,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})}),(0,n.jsx)("div",{className:"hidden md:block",children:"Previous"})]}),(0,n.jsx)("div",{className:"flex items-center space-x-1",children:(()=>{let e=[];for(let n=0;n<Math.min(7,l);n++){let r;r=l<=7?n+1:t<=4?n<5?n+1:5===n?"...":l:t>l-4?0===n?1:1===n?"...":l-(6-n):0===n?1:1===n?"...":n<5?t-(3-n):5===n?"...":l,e.push(r)}return e})().map((e,l)=>(0,n.jsx)("button",{onClick:()=>"number"==typeof e?m(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},l))}),(0,n.jsxs)("button",{onClick:()=>m(t+1),disabled:t===l,className:"px-3 py-1 border rounded-2xl disabled:opacity-50 flex items-center gap-2",children:[(0,n.jsx)("div",{className:"hidden md:block",children:"Next"}),(0,n.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,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"})})]})]})]})})}},33452:function(e,t,l){"use strict";l.d(t,{Z:function(){return r}});var n=l(85893);function r(){return(0,n.jsxs)("div",{className:"flex justify-center",children:[(0,n.jsxs)("div",{className:"relative flex-shrink-0 w-72 md:flex md:flex-col md:w-full bg-white border rounded-lg overflow-hidden",children:[(0,n.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,n.jsx)("div",{className:"shimmer"})}),(0,n.jsx)("div",{className:"h-48 w-full bg-gray-200"}),(0,n.jsxs)("div",{className:"flex flex-col h-40 justify-between",children:[(0,n.jsxs)("div",{className:"p-4 space-y-2",children:[(0,n.jsx)("div",{className:"h-4 bg-gray-200 rounded w-11/12"}),(0,n.jsx)("div",{className:"h-4 bg-gray-200 rounded w-8/12"})]}),(0,n.jsx)("div",{className:"p-4",children:(0,n.jsx)("div",{className:"h-4 bg-gray-200 rounded w-6/12"})})]})]}),(0,n.jsx)("style",{children:"\n .shimmer {\n position: absolute;\n top: 0;\n left: -100%;\n height: 100%;\n width: 100%;\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.4) 50%,\n rgba(255, 255, 255, 0) 100%\n );\n animation: shimmerMove 2s infinite;\n }\n \n @keyframes shimmerMove {\n 0% {\n left: -100%;\n }\n 100% {\n left: 100%;\n }\n }\n "})]})}},93238:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return g},default:function(){return v}});var n=l(85893),r=l(3632),i=l(67294),s=l(76809),a=l(24985),o=l(63805),d=l(11163),c=l(41664),u=l.n(c);l(40792),l(30381);var m=l(52467),h=l(33452),p=l(66308),x=l(1288),f=l(89854),g=!0;function v(e){var t,l,c,g,v,_,y,b,j;a.QP;let w=(0,d.useRouter)(),{locale:N}=(0,d.useRouter)(),{q:k,categories:P,regions:E,topics:C,dataTypes:S}
1=w.query,M=(0,i.useRef)(null),[L,T]=(0,i.useState)(""),[O,R]=(0,i.useState)([]),[D,I]=(0,i.useState)([]),[F,$]=(0,i.useState)([]),[B,Z]=(0,i.useState)([]),[A,W]=(0,i.useState)(null),[q,G]=(0,i.useState)(!0),[V,z]=(0,i.useState)(!1),[U,H]=(0,i.useState)([]),[X,K]=(0,i.useState)(1),[Q,Y]=(0,i.useState)(20),[J,ee]=(0,i.useState)(0),[et,el]=(0,i.useState)(0),[en,er]=(0,i.useState)(!1);(0,i.useEffect)(()=>{k&&T(k),P&&R(P.split(",")),E&&I(E.split(",")),C&&$(C.split(",")),S&&Z(S.split(",")),z(!0),G(!0)},[k,P,E,C,S]);let ei=e.categories.data.map(e=>e.category_name),es=e.regions.data.map(e=>e.region_name),ea=e.reporttypes.data.map(e=>e.report_type_name),eo=e.posttypes.data.map(e=>e.post_type_name);(0,i.useEffect)(()=>{q&&V&&(L||O.length>0||B.length>0||F.length>0||D.length>0)&&(ed(L,N,X,Q),z(!1),G(!1))},[q,V]);let ed=async(e,t,l,n)=>{er(!0);try{var r,i,a,o,d,c,u,m,h,p;let x=(l-1)*n,f=""!==e.trim(),g=O.length>0||B.length>0||F.length>0||D.length>0,v=[{method:s.hi.getDelve,type:"delve_into_the_world_markets"},{method:s.hi.getTradeaninvestmentguidessearch,type:"trade_and_investment_guides"}],_=[],y=[],b=0;if(f&&!g){let l=await Promise.all(v.map(l=>l.method(e,t,1,1).then(e=>{var t,n,r;return{total:(null==e?void 0:null===(r=e.data)||void 0===r?void 0:null===(n=r.meta)||void 0===n?void 0:null===(t=n.pagination)||void 0===t?void 0:t.total)||0,type:l.type}}).catch(()=>({total:0,type:l.type}))));b=l.reduce((e,t)=>e+t.total,0),ee(b),el(Math.ceil(b/n));let r=l.reduce((e,t)=>{let{type:l,total:n}=t;return e[l]=n,e},{}),i=[],s=n,a=x;for(let e of v){let t=r[e.type]||0;if(0===t||a>=t){a-=t;continue}let l=t-a,o=Math.min(l,s);if(o>0){let t=Math.floor(a/n)+1,l=a%n;if(i.push({method:e.method,type:e.type,page:t,limit:l+o,offset:l,itemsToTake:o}),(s-=o)<=0)break}a=0}_=y=(await Promise.all(i.map(l=>l.method(e,t,l.page,l.limit).then(e=>{var t;return((null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.data)||[]).slice(l.offset,l.offset+l.itemsToTake).map(e=>({...e,type:l.type}))}).catch(()=>[])))).flat()}if(g&&!f){let e=new URLSearchParams;O.length&&O.forEach(t=>e.append("filters[category][category_name][$in]",t)),B.length&&B.forEach(t=>e.append("filters[post_type][post_type_name][$in]",t)),F.length&&F.forEach(t=>e.append("filters[report_type][report_type_name][$in]",t)),D.length&&D.forEach(t=>e.append("filters[region][region_name][$in]",t));try{let c=await s.hi.getdelveintoteworldresult(e.toString(),t,l,n),u=(null==c?void 0:null===(i=c.data)||void 0===i?void 0:null===(r=i.data)||void 0===r?void 0:r.map(e=>({...e,type:"delve_into_the_world_markets"})))||[],m=(null==c?void 0:null===(d=c.data)||void 0===d?void 0:null===(o=d.meta)||void 0===o?void 0:null===(a=o.pagination)||void 0===a?void 0:a.total)||0;ee(m),el(Math.ceil(m/n)),_=u}catch(e){console.error("Fetch error:",e)}}if(f&&g){let r=new URLSearchParams;e&&(r.append("filters[$or][0][title][$containsi]",e),r.append("filters[$or][1][content_html][$containsi]",e)),O.length&&O.forEach(e=>r.append("filters[category][category_name][$in]",e)),B.length&&B.forEach(e=>r.append("filters[post_type][post_type_name][$in]",e)),F.length&&F.forEach(e=>r.append("filters[report_type][report_type_name][$in]",e)),D.length&&D.forEach(e=>r.append("filters[region][region_name][$in]",e));try{let e=await s.hi.getdelveintoteworldresult(r.toString(),t,l,n),i=(null==e?void 0:null===(u=e.data)||void 0===u?void 0:null===(c=u.data)||void 0===c?void 0:c.map(e=>({...e,type:"delve_into_the_world_markets"})))||[],a=(null==e?void 0:null===(p=e.data)||void 0===p?void 0:null===(h=p.meta)||void 0===h?void 0:null===(m=h.pagination)||void 0===m?void 0:m.total)||0;ee(a),el(Math.ceil(a/n)),_=i}catch(e){console.error("Fetch error:",e)}}let j=_;f&&g&&(j=j.map(e=>{let t=y.find(t=>t.id===e.id);return t&&!e.type&&(e.type=t.type),e})),H(j),er(!1)}catch(e){console.error("Error fetching data:",e),er(!1)}},ec=(e,t,l)=>{var n,r;let i=null===(n=l.category_post)||void 0===n?void 0:n.documentId,s=null===(r=l.post_type)||void 0===r?void 0:r.post_type_name;if("delve_into_the_world_markets"===e&&"uvluu0pei129kwambr2xwimo"===i)return!s||["Podcast","Presentation"].includes(s)?"":"blockdit"===s?(null==l?void 0:l.link_url)||"":"/post/post-knowledge/".concat(t);if("delve_into_the_world_markets"===e&&["xb5dcuaaa6brpgwtgte9ncmu","ndqk95ttxp9yqp8xapnnayfj"].includes(i))return"/international-foreign-market/Trade-Guide/".concat(t);switch(e){case"delve_into_the_world_markets":return"/post/".concat(t);case"trade_and_investment_guides":return"/international-foreign-market/Investment-Guide/".concat(t);default:return""}},eu=e=>{W(t=>t===e?null:e)},em=(e,t,l)=>{l(t.includes(e)?t.filter(t=>t!==e):[...t,e])}
1,eh=e=>{M.current&&!M.current.contains(e.target)&&W(null)};(0,i.useEffect)(()=>(document.addEventListener("mousedown",eh),()=>{document.removeEventListener("mousedown",eh)}),[]);let ep=e=>{e([])};(0,i.useEffect)(()=>{!q&&(L||O.length>0||B.length>0||F.length>0||D.length>0)&&ed(L,N,X,Q)},[X,Q]);let ex=()=>{L||O.length>0||D.length>0||F.length>0||B.length>0?(T(L),ed(L,N,X,Q)):(T(""),T(""),H([]),ee([]))},ef=(e,t,l,r,i)=>(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)("div",{className:"border p-2 rounded-lg cursor-pointer bg-white flex items-center justify-between",onClick:()=>eu(i),children:[(0,n.jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap flex-1",children:l.length>0?l.join(", "):e}),(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"w-4 h-4 ml-2 text-gray-600 flex-shrink-0",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})]}),A===i&&(0,n.jsxs)("div",{className:"absolute z-20 mt-2 w-full max-h-60 overflow-y-auto border rounded-lg bg-white shadow-lg",children:[(0,n.jsxs)("div",{className:"flex justify-between p-2",children:[(0,n.jsxs)("span",{className:"text-sm font-semibold",children:["à¹à¸¥à¸·à¸à¸ ",l.length," รายà¸à¸²à¸£"]}),(0,n.jsx)("button",{className:"text-sm text-blue-500 hover:underline",onClick:()=>ep(r),children:"Clear"})]}),(0,n.jsx)("div",{children:t.map((e,t)=>(0,n.jsxs)("label",{className:"flex items-center gap-2 p-2 cursor-pointer hover:bg-gray-100",children:[(0,n.jsx)("input",{type:"checkbox",checked:l.includes(e),onChange:()=>em(e,l,r),className:"form-checkbox h-[16px] w-[16px] text-[#10143c] focus:ring-[#10143c]"}),(0,n.jsx)("div",{className:"line-clamp-1",children:e})]},t))})]})]}),eg=[{label:"หà¸à¹à¸²à¸«à¸¥à¸±à¸",link:"/"},{label:"สà¸à¸²à¸à¸à¸²à¸£à¸à¹à¸à¸²à¸£à¸à¹à¸²à¹à¸à¸à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨",link:"/international-foreign-market"},{label:"à¸à¸¥à¸¥à¸±à¸à¸à¹à¸à¸²à¸£à¸à¹à¸à¸¡à¸¹à¸¥à¸à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨"}];return(0,n.jsxs)("div",{className:"pt-14 mb-16",children:[(0,n.jsx)("div",{className:"flex items-center justify-center bg-cover bg-center",style:{backgroundImage:"url(".concat(null!==(j=null===(g=e.imagecover)||void 0===g?void 0:null===(c=g.data)||void 0===c?void 0:null===(l=c.image_cover_international_foreign_market)||void 0===l?void 0:null===(t=l.formats)||void 0===t?void 0:t.medium.url)&&void 0!==j?j:null===(y=e.imagecover)||void 0===y?void 0:null===(_=y.data)||void 0===_?void 0:null===(v=_.image_cover_international_foreign_market)||void 0===v?void 0:v.url,")"),height:"193px"},children:(0,n.jsx)("h1",{className:"text-white text-center text-xl md:text-[40px]",children:"สà¸à¸²à¸à¸à¸²à¸£à¸à¹à¸à¸²à¸£à¸à¹à¸²à¹à¸à¸à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨"})}),(0,n.jsx)(p.Z,{title:"à¸à¸¥à¸¥à¸±à¸à¸à¹à¸à¸²à¸£à¸à¹à¸à¸¡à¸¹à¸¥à¸à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨ - à¸à¸£à¸¡à¸ªà¹à¸à¹à¸ªà¸£à¸´à¸¡à¸à¸²à¸£à¸à¹à¸²à¸£à¸°à¸«à¸§à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨",breadcrumbs:eg}),(0,n.jsx)("div",{className:"sticky top-[60px] bg-white z-20",children:(0,n.jsx)(r.Z,{paths:eg})}),(0,n.jsx)("div",{className:"max-w-screen-xl mx-auto mt-8 px-4",children:(0,n.jsxs)("div",{className:"bg-[#E7E7F5] flex flex-col md:flex-col border rounded-xl justify-center items-center px-8 py-6",children:[(0,n.jsx)("div",{className:"text-2xl md:text-[40px] font-semibold text-gradient",children:"à¸à¹à¸à¸«à¸²à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸¥à¸²à¸à¸à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨"}),(0,n.jsxs)("div",{className:"bg-white flex px-4 py-3 mt-4 rounded-md border border-white overflow-hidden w-full",children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192.904 192.904",width:"16px",className:"mr-3",children:(0,n.jsx)("path",{d:"m190.707 180.101-47.078-47.077c11.702-14.072 18.752-32.142 18.752-51.831C162.381 36.423 125.959 0 81.191 0 36.422 0 0 36.423 0 81.193c0 44.767 36.422 81.187 81.191 81.187 19.688 0 37.759-7.049 51.831-18.751l47.079 47.078a7.474 7.474 0 0 0 5.303 2.197 7.498 7.498 0 0 0 5.303-12.803zM15 81.193C15 44.694 44.693 15 81.191 15c36.497 0 66.189 29.694 66.189 66.193 0 36.496-29.692 66.187-66.189 66.187C44.693 147.38 15 117.689 15 81.193z"})}),(0,n.jsx)("input",{type:"search",placeholder:"à¸à¸´à¸¡à¸à¹à¸à¸³à¸à¸µà¹à¸à¹à¸à¸à¸à¸²à¸£à¸à¹à¸à¸«à¸² à¹à¸à¹à¸ à¸à¸²à¸£à¸à¹à¸²,รà¸à¸¢à¸à¸à¹...",className:"w-full outline-none bg-transparent text-black text-sm",value:L,onChange:e=>{let t=e.target.value;T(t),""===t.trim()&&T("")},onKeyDown:e=>{"Enter"===e.key&&ex()}})]}),(0,n.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4 mt-4 w-full",ref:M,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-sm font-semibold ml-1",children:"à¸à¸¥à¸¸à¹à¸¡à¸ªà¸´à¸à¸à¹à¸²"}),ef("à¸à¸¥à¸¸à¹à¸¡à¸ªà¸´à¸à¸à¹à¸²à¸à¸±à¹à¸à¸«à¸¡à¸",ei,O,R,"categories")]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-sm font-semibold ml-1",children:"ภูมิภาà¸"}),ef("ภูมิภาà¸à¸à¸±à¹à¸à¸«à¸¡à¸",es,D,I,"regions")]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-sm font-semibold ml-1",children:"หัวà¸à¹à¸à¸£à¸²à¸¢à¸à¸²à¸"}),ef("หัวà¸à¹à¸à¸£à¸²à¸¢à¸à¸²à¸à¸à¸±à¹à¸à¸«à¸¡à¸",ea,F,$,"reportTopics")]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-sm font-semibold ml-1",children:"à¸à¸£à¸°à¹à¸ à¸à¸à¹à¸à¸¡à¸¹à¸¥"}),ef("à¸à¸£à¸°à¹à¸ à¸à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸±à¹à¸à¸«à¸¡à¸",eo,B,Z,"dataTypes")]})]}),(0,n.jsxs)("div",{className:"flex space-x-4 mt-6 justify-center items-center",children:[(0,n.jsx)("div",{children:(L||O.length>0||D.length>0||F.length>0||B.length>0)&&(0,n.jsxs)("button",{onClick:()=>{T(""),R([]),I([]),$([]),Z([]),w.push("/international-foreign-market")},className:"hidden px-4 py-3 rounded-full md:flex items-center space-x-2 border border-black",children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-5 h-5 text-gray-700",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),(0,n.jsx)("span",{children:"Clear Filter"})]})}),(0,n.jsx)("button",{onClick:ex,type:"button",className:"bg-gradient-to-r from-[#1A1C49] to-[#41B8B9] px-10 py-3 border border-gray-200 rounded-full w-72",children:(0,n.jsx)("div",{className:"text-center text-white",children:"à¸à¹à¸à¸«à¸²"})})]})]})}),(0,n.jsxs)("div",{className:"max-w-screen-xl mx-auto mt-4 items-center px-4",children:[(0,n.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,n.jsxs)("div",{id:"à¸à¸¥à¸à¸²à¸£à¸à¹à¸à¸«à¸²",className:"text-center text-[24px] md:text-[36px] font-semibold text-gradient mt-4 md:flex-grow",children:["à¸à¹à¸à¸à¸ ",J," รายà¸à¸²à¸£"]}),(0,n.jsx)(u(),{href:"/international-foreign-market",children:(0,n.jsx)("button",{type:"button",className:"p-2",children:"à¸à¸´à¸â"})})]}),(0,n.jsx)("div",{children:en?(0,n.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 gap-4",children:Array.from({length:4}).map((e,t)=>(0,n.jsx)(h.Z,{},t))}):U.length>0?(0,n.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 md:gap-6 gap-4",children:null===(b=(0,o.IU)(U))||void 0===b?void 0:b.map((t,l)=>{var r,i,s,a,d,c,m;let h=((null===(r=t.report_type)||void 0===r?void 0:r.report_type_name)+"").toLowerCase().includes("factsheet");return(0,n.jsx)(u(),{href:ec(t.type,t.documentId,t),children:(0,n.jsxs)("div",{className:"flex-shrink-0 md:flex md:flex-col md:w-full bg-white border rounded-lg overflow-hidden mt-6",children:[(0,n.jsx)("div",{className:"shrink-0",children:t.generate_template&&h?(0,n.jsx)("div",{className:"",children:(0,n.jsx)(x.Z,{originalHeight:900,originalWidth:1600,maxWidth:"100%",aspectRatio:"16:9",objectFit:"cover",children:(0,n.jsx)(f.Z,{data:t,countriesWithImage:e.countriesWithImage})})}):(0,n.jsx)("img",{className:"aspect-[16/9] w-full object-cover object-end",src:(null==t?void 0:null===(i=t.image)||void 0===i?void 0:i.url)||"/images/ditpimage.png",alt:t.title})}),(0,n.jsxs)("div",{className:"flex flex-col h-40 justify-between",children:[(0,n.jsxs)("div",{className:"p-4",children:[(0,n.jsx)("div",{className:"text-md text-pretty font-medium text-left line-clamp-2 hover:opacity-50",children:t.title}),(0,n.jsx)("div",{className:"mt-1 text-gray-500 text-sm text-left line-clamp-1",children:B.length>0&&0===O.length&&0===D.length&&0===F.length?(0,n.jsx)(n.Fragment,{children:null===(s=t.post_type)||void 0===s?void 0:s.post_type_name}
1):(0,n.jsxs)(n.Fragment,{children:[null===(a=t.region)||void 0===a?void 0:a.region_name,(null===(d=t.region)||void 0===d?void 0:d.region_name)&&(null===(c=t.category)||void 0===c?void 0:c.category_name)&&" ⢠",null===(m=t.category)||void 0===m?void 0:m.category_name]})})]}),(0,n.jsx)("div",{className:"text-gray-500 text-sm text-left p-4",children:(0,o.vc)((null==t?void 0:t.publish_date)||(null==t?void 0:t.current_publish)||t.createdAt,t.locale)})]})]})},l)})}):(0,n.jsx)("div",{className:"flex justify-center items-center",children:(0,n.jsx)("img",{src:"/images/nodata.png",alt:"No Data",className:"w-[800px] h-[500px] mb-4"})})})]}),J>0&&(0,n.jsx)(m.Z,{currentPage:X,totalPages:et,itemsPerPage:Q,totalItems:J,setCurrentPage:K,setItemsPerPage:Y,handlePageClick:e=>{K(e)}})]})}},5152:function(e,t,l){e.exports=l(32602)}},function(e){e.O(0,[2275,6308,1289,2888,9774,179],function(){return e(e.s=95049)}),_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.