PageSourceSearch

https://www.ditp.go.th/_next/static/chunks/pages/index-32d8bde8633fcb83.js

js ditp.go.th collected 2026-09-24 18:18:06 UTC 75,843 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{75557:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return l(24778)}])},31134:function(e,t,l){"use strict";l.d(t,{Z:function(){return m}});var s=l(67294);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),r=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,l)=>l?l.toUpperCase():t.toLowerCase()),a=e=>{let t=r(e);return t.charAt(0).toUpperCase()+t.slice(1)},d=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return t.filter((e,t,l)=>!!e&&""!==e.trim()&&l.indexOf(e)===t).join(" ").trim()},n=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let c=(0,s.forwardRef)((e,t)=>{let{color:l="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:c="",children:m,iconNode:x,...u}=e;return(0,s.createElement)("svg",{ref:t,...o,width:i,height:i,stroke:l,strokeWidth:a?24*Number(r)/Number(i):r,className:d("lucide",c),...!m&&!n(u)&&{"aria-hidden":"true"},...u},[...x.map(e=>{let[t,l]=e;return(0,s.createElement)(t,l)}),...Array.isArray(m)?m:[m]])}),m=(e,t)=>{let l=(0,s.forwardRef)((l,r)=>{let{className:n,...o}=l;return(0,s.createElement)(c,{ref:r,iconNode:t,className:d("lucide-".concat(i(a(e))),"lucide-".concat(e),n),...o})});return l.displayName=a(e),l}},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 d},noSSR:function(){return a}});let s=l(38754);l(85893),l(67294);let i=s._(l(35491));function r(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function d(e,t){let l=i.default,s={loading:e=>{let{error:t,isLoading:l,pastDelay:s}=e;return null}};e instanceof Promise?s.loader=()=>e:"function"==typeof e?s.loader=e:"object"==typeof e&&(s={...s,...e});let d=(s={...s,...t}).loader;return(s.loadableGenerated&&(s={...s,...s.loadableGenerated},delete s.loadableGenerated),"boolean"!=typeof s.ssr||s.ssr)?l({...s,loader:()=>null!=d?d().then(r):Promise.resolve(r(()=>null))}):(delete s.webpack,delete s.modules,a(l,s))}("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 s}});let s=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 x}});let s=l(38754)._(l(67294)),i=l(1159),r=[],a=[],d=!1;function n(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 o{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),r=null;function n(){if(!r){let t=new o(e,l);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!d){let e=l.webpack?l.webpack():l.modules;e&&a.push(t=>{for(let l of e)if(t.includes(l))return n()})}function c(e,t){!function(){n();let e=s.default.useContext(i.LoadableContext);
1e&&Array.isArray(l.modules)&&l.modules.forEach(t=>{e(t)})}();let a=s.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return s.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),s.default.useMemo(()=>{var t;return a.loading||a.error?s.default.createElement(l.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:r.retry}):a.loaded?s.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return c.preload=()=>n(),c.displayName="LoadableComponent",s.default.forwardRef(c)}(n,e)}function m(e,t){let l=[];for(;e.length;){let s=e.pop();l.push(s(t))}return Promise.all(l).then(()=>{if(e.length)return m(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{m(r).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let l=()=>(d=!0,t());m(a,e).then(l,l)})),window.__NEXT_PRELOADREADY=c.preloadReady;let x=c},40792:function(e,t,l){"use strict";var s=l(85893),i=l(67294),r=l(5152),a=l.n(r);let d=e=>{var t,l,r,a;let{file:d}=e,n=(null==d?void 0:null===(l=d.file_path)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.url)||(null==d?void 0:null===(r=d.file_pdf)||void 0===r?void 0:r.url),o=(null===(a=d.image)||void 0===a?void 0:a.url)||"/images/ditpimage.png";return(0,i.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,s.jsx)("div",{className:"flex justify-center items-center",children:(0,s.jsx)("div",{className:"_df_thumb",source:n,thumb:o})})};t.Z=a()(()=>Promise.resolve(d),{ssr:!1})},52467:function(e,t,l){"use strict";l.d(t,{Z:function(){return r}});var s=l(85893),i=l(69740);function r(e){let{currentPage:t,totalPages:l,itemsPerPage:r,totalItems:a,setCurrentPage:d,setItemsPerPage:n,handlePageClick:o,disableScroll:c=!1}=e,m=()=>{c||(0,i.UK)()||window.scrollTo({top:0,behavior:"auto"})},x=e=>{m(),o(e)};return(0,s.jsx)("div",{className:"max-w-screen-xl mx-auto mt-8",children:(0,s.jsxs)("div",{className:"flex justify-center md:justify-between items-center",children:[(0,s.jsxs)("div",{className:"hidden md:flex md:flex-wrap lg:flex-row items-center",children:[(0,s.jsx)("label",{children:"Items per page"}),(0,s.jsx)("select",{value:r,onChange:e=>{n(Number(e.target.value)),d(1),m()},className:"ml-2 border rounded-md px-2 py-1",children:[10,20,50,100].map(e=>(0,s.jsx)("option",{value:e,children:e},e))}),(0,s.jsxs)("div",{className:"md:mt-2 lg:ml-2",children:["Showing ",(t-1)*r+1," -"," ",Math.min(t*r,a)," of ",a," ","Posts"]})]}),(0,s.jsxs)("div",{className:"flex md:space-x-2",children:[(0,s.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,s.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,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})}),(0,s.jsx)("div",{className:"hidden md:block",children:"Previous"})]}),(0,s.jsx)("div",{className:"flex items-center space-x-1",children:(()=>{let e=[];for(let s=0;s<Math.min(7,l);s++){let i;i=l<=7?s+1:t<=4?s<5?s+1:5===s?"...":l:t>l-4?0===s?1:1===s?"...":l-(6-s):0===s?1:1===s?"...":s<5?t-(3-s):5===s?"...":l,e.push(i)}return e})().map((e,l)=>(0,s.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},l))}),(0,s.jsxs)("button",{onClick:()=>x(t+1),disabled:t===l,className:"px-3 py-1 border rounded-2xl disabled:opacity-50 flex items-center gap-2",children:[(0,s.jsx)("div",{className:"hidden md:block",children:"Next"}),(0,s.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,s.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 i}});var s=l(85893);function i(){return(0,s.jsxs)("div",{className:"flex justify-center",children:[(0,s.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,s.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,s.jsx)("div",{className:"shimmer"})}),(0,s.jsx)("div",{className:"h-48 w-full bg-gray-200"}),(0,s.jsxs)("div",{className:"flex flex-col h-40 justify-between",children:[(0,s.jsxs)("div",{className:"p-4 space-y-2",children:[(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded w-11/12"}),(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded w-8/12"})]}),(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded w-6/12"})})]})]}),(0,s.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        "})]})}},24778:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return B},default:function(){return E}});var s=l(85893),i=l(41664),r=l.n(i),a=l(67294),d=l(11163),n=l(76809),o=l(24985),c=l(63805),m=l(40792),x=l(45149),u=l(52467),h=l(73935),p=l(66561),v=l(3627);l(64172);var g=e=>{var t,l;let{onClose:i,content:d}=e,[n,o]=(0,a.useState)(!1),[c,m]=(0,a.useState)(0),x=(0,a.useRef)(null),u=(0,a.useRef)(null);(0,a.useEffect)(()=>(o(!0),()=>{u.current&&clearTimeout(u.current)}),[]);let g=(Array.isArray(d)?d:[]).filter(e=>{let t=new Date,l=new Date(e.popup_publish_sdate),s=new Date(e.popup_publish_edate);return t>=l&&t<=s}).sort((e,t)=>
1e.popup_ord-t.popup_ord),f=g.length>1&&g.length<6?[...g,...g,...g]:g;if(!n||0===g.length)return null;let j=()=>{var e;(null===(e=x.current)||void 0===e?void 0:e.autoplay)&&(x.current.autoplay.stop(),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{x.current&&!x.current.destroyed&&x.current.autoplay.start()},5e3))};return(0,h.createPortal)((0,s.jsx)("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm flex items-center justify-center z-[9999] p-4",children:(0,s.jsxs)("div",{className:"relative w-[clamp(300px,90vw,1960px)] max-h-[90dvh] mx-auto flex flex-col justify-center",children:[(0,s.jsx)("button",{onClick:()=>{i(),window.dispatchEvent(new Event("start-audio-from-modal"))},className:"absolute text-white -top-12 right-0 md:-right-5 lg:-top-10 lg:-right-10 text-4xl hover:opacity-70 transition-all z-[10001]",children:"\xd7"}),1===g.length?(0,s.jsx)("div",{className:"max-w-[500px] mx-auto",children:(0,s.jsx)("div",{className:"flex justify-center",children:g[0].popup_url?(0,s.jsx)(r(),{href:g[0].popup_url,target:"_blank",children:(0,s.jsx)("img",{src:null===(t=g[0].popup_path)||void 0===t?void 0:t.url,className:"rounded-2xl max-h-[80vh] object-contain shadow-2xl",alt:"popup"})}):(0,s.jsx)("img",{src:null===(l=g[0].popup_path)||void 0===l?void 0:l.url,className:"rounded-2xl max-h-[80vh] object-contain shadow-2xl",alt:"popup"})})}):(0,s.jsxs)("div",{className:"relative px-4 md:px-16",children:[(0,s.jsx)(p.tq,{onSwiper:e=>x.current=e,modules:[v.pt],loop:!0,centeredSlides:!0,allowTouchMove:!0,simulateTouch:!0,touchStartPreventDefault:!1,touchReleaseOnEdges:!0,touchRatio:1,threshold:5,slidesPerView:1.15,spaceBetween:20,initialSlide:0,speed:1e3,autoplay:{delay:3e3,disableOnInteraction:!1,waitForTransition:!0},observer:!0,observeParents:!0,onRealIndexChange:e=>{m(e.realIndex%g.length)},onTouchStart:j,breakpoints:{0:{slidesPerView:1,spaceBetween:10},768:{slidesPerView:1.3,spaceBetween:20},1100:{slidesPerView:3,spaceBetween:30}},className:"w-full pt-4 !overflow-visible",style:{touchAction:"pan-y pinch-zoom"},children:f.map((e,t)=>(0,s.jsx)(p.o5,{children:t=>{var l,i,a;let{isActive:d}=t;return(0,s.jsx)("div",{className:"transition-all duration-700 ease-out ".concat(d?"md:scale-[1.3] scale-[1] opacity-100 shadow-2xl":"scale-75 opacity-40 blur-[1px]"),children:(0,s.jsxs)("div",{className:"relative aspect-square bg-black rounded-3xl overflow-hidden shadow-2xl",children:[(0,s.jsx)("div",{className:"absolute inset-0 w-full h-full scale-125 blur-2xl opacity-50",style:{backgroundImage:"url(".concat(null===(l=e.popup_path)||void 0===l?void 0:l.url,")"),backgroundSize:"cover",backgroundPosition:"center"}}),e.popup_url?(0,s.jsx)(r(),{href:e.popup_url,target:"_blank",className:"relative z-10 w-full h-full block",children:(0,s.jsx)("img",{src:null===(i=e.popup_path)||void 0===i?void 0:i.url,className:"w-full h-full object-contain",alt:""})}):(0,s.jsx)("img",{src:null===(a=e.popup_path)||void 0===a?void 0:a.url,className:"relative z-10 w-full h-full object-contain",alt:""})]})})}},"slide-".concat(e.id,"-").concat(t)))},"swiper-init-".concat(g.length)),(0,s.jsx)("div",{className:"flex justify-center items-center gap-3 md:mt-[94px] mt-10",children:g.map((e,t)=>(0,s.jsx)("button",{onClick:()=>{var e;null===(e=x.current)||void 0===e||e.slideToLoop(t),j()},className:"h-2 rounded-full transition-all duration-500 ".concat(c===t?"w-10 bg-white":"w-2 bg-white/30 hover:bg-white/50"),"aria-label":"Go to slide ".concat(t+1)},"dot-".concat(t)))}),(0,s.jsx)("button",{onClick:()=>{var e;null===(e=x.current)||void 0===e||e.slidePrev(),j()},className:"hidden md:flex absolute left-0 top-1/2 -translate-y-1/2 w-12 h-12 items-center justify-center rounded-full bg-white/20 hover:bg-white text-white hover:text-black transition-all z-20",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",className:"w-6 h-6 fill-none stroke-current",strokeWidth:"2.5",children:(0,s.jsx)("path",{d:"M15 18l-6-6 6-6"})})}),(0,s.jsx)("button",{onClick:()=>{var e;null===(e=x.current)||void 0===e||e.slideNext(),j()},className:"hidden md:flex absolute right-0 top-1/2 -translate-y-1/2 w-12 h-12 items-center justify-center rounded-full bg-white/20 hover:bg-white text-white hover:text-black transition-all z-20",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",className:"w-6 h-6 fill-none stroke-current",strokeWidth:"2.5",children:(0,s.jsx)("path",{d:"M9 6l6 6-6 6"})})})]})]})}),document.body)},f=l(33452);l(25675);var j=l(69740),b=l(66308);function w(e){var t,l;let{banner:i}=e,[r,d]=(0,a.useState)(0),n=(0,a.useRef)(null),[o,c]=(0,a.useState)(!1),m=(null==i?void 0:i.data)||[],x=m.length;return(0,s.jsxs)("div",{children:[(0,s.jsx)(p.tq,{ref:n,effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",auto
1play:{delay:1e4,disableOnInteraction:!1},loop:!0,coverflowEffect:{rotate:0,stretch:0,depth:60,modifier:20,slideShadows:!1},modules:[v.lI,v.pt,v.tl],className:"mySwiper",onSlideChange:e=>{d(e.realIndex)},onTransitionStart:()=>c(!0),onTransitionEnd:()=>c(!1),children:m.map((e,t)=>{var l,i,r,a,d,n,o;let c=(null===(r=e.banner_path)||void 0===r?void 0:null===(i=r.formats)||void 0===i?void 0:null===(l=i.large)||void 0===l?void 0:l.url)||(null===(n=e.banner_path)||void 0===n?void 0:null===(d=n.formats)||void 0===d?void 0:null===(a=d.medium)||void 0===a?void 0:a.url)||(null===(o=e.banner_path)||void 0===o?void 0:o.url);return(0,s.jsx)(p.o5,{className:"swiper-slide-product",children:(0,s.jsx)("a",{href:e.banner_url||"#",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("img",{src:c,alt:e.banner_desc,className:"h-full w-full object-contain"})})},t)})}),(0,s.jsx)("div",{className:"group",children:(0,s.jsxs)("button",{type:"button",onClick:()=>{n.current&&n.current.swiper&&n.current.swiper.slidePrev()},disabled:o,className:"absolute inset-y-1/2 left-2 md:left-4 lg:left-6 top-48 md:top-72 lg:top-80 transform -translate-y-1/2 inline-flex items-center justify-start transition-all duration-300 ease-in-out lg:bg-white w-8 h-8 md:w-10 md:h-10 lg:w-24 lg:h-14 border border-white rounded-full lg:rounded-md text-gray-800 overflow-hidden lg:group-hover:w-64 z-20",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 ml-2",children:(0,s.jsx)("path",{d:"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"})}),(0,s.jsx)("span",{className:"hidden lg:block ml-2 text-sm text-gray-700 whitespace-nowrap transition-all duration-300 truncate group-hover:truncate-none",children:(null===(t=m[0===r?x-1:r-1])||void 0===t?void 0:t.banner_desc)||""})]})}),(0,s.jsx)("div",{className:"group",children:(0,s.jsxs)("button",{type:"button",onClick:()=>{n.current&&n.current.swiper&&n.current.swiper.slideNext()},disabled:o,className:"absolute inset-y-1/2 right-2 md:right-4 lg:right-6 top-48 md:top-72 lg:top-80 transform -translate-y-1/2 inline-flex items-center justify-end transition-all duration-300 ease-in-out lg:bg-white w-8 h-8 md:w-10 md:h-10 lg:w-24 lg:h-14 border border-white rounded-full lg:rounded-md text-gray-800 overflow-hidden lg:group-hover:w-64 z-20",children:[(0,s.jsx)("div",{className:"hidden lg:block text-xs md:text-sm text-gray-700 mx-1 flex-1 whitespace-nowrap truncate group-hover:truncate-none",children:(null===(l=m[r===x-1?0:r+1])||void 0===l?void 0:l.banner_desc)||""}),(0,s.jsx)("svg",{className:"shrink-0 mr-1 md:mr-2",xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5"})})]})}),(0,s.jsx)("div",{className:"hidden md:flex md:justify-center md:gap-2 md:mt-4",children:m.map((e,t)=>(0,s.jsx)("div",{onClick:()=>{n.current&&n.current.swiper&&n.current.swiper.slideToLoop(t)},className:"w-6 h-6 flex items-center justify-center text-xs font-semibold rounded-full cursor-pointer ".concat(t===r?"bg-white text-black":"bg-gray-400"),children:t+1},t))})]})}l(50633),l(96936);var N=l(1288),y=l(89854),_=l(31134);(0,_.Z)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),(0,_.Z)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),(0,_.Z)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),(0,_.Z)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),(0,_.Z)("skip-back",[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]]),(0,_.Z)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]),(0,_.Z)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),(0,_.Z)("skip-forward",[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]]),(0,_.Z)("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]),(0,_.Z)("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);let k=e=>null;var B=!0;function E(e){var t,l,i,h,_,B,E,P,C,S,A,T,D,I,z,L,M,V,R,Z,F,W,U,H,O,q;o.QP;let G=(0,d.useRouter)(),$=(0,a.useRef)(null),{locale:Y}=(0,d.useRouter)(),{query:K}=G.query,[X,J]=(0,a.useState)("Baht"),[Q,ee]=(0,a.useState)([]),[et,el]=(0,a.useState)(!1),[es,ei]=(0,a.useState)(1),[er,ea]=(0,a.useState)(20),[ed,en]=(0,a.useState)(0),[eo,ec]=(0,a.useState)(0),[em,ex]=(0,a.useState)(!1),[eu,eh]=(0,a.useState)(!1),ep=e.productsBaht.data,ev=e.productsUSD.data,eg=e.exportCountry.data,[ef,ej]=(0,a.useState)([]),[eb,ew]=(0,a.useState)([]),[eN,ey]=(0,a.useState)("");(0,a.useEffect)(()=>{K?(el(!0),e_(K,Y,es,er)):el(!1)},[K,es,er]);let e_=async(e,t,l,s)=>{ex(!0);try{var i,r,a,d,o,c,m;let x=await n.hi.getAllSearch(e,t,l,s),u=(null==x?void 0:null===(a=x.data)||void 0===a?void 0:null===(r=a.meta)||void 0===r?void 0:null===(i=r.pagination)||void 0===i?void 0:i.total)||0,h=(null==x?void 0:null===(c=x.data)||void 0===c?void 0:null===(o=c.meta)||void 0===o?void 0:null===(d=o.pagination)||void 0===d?void 0:d.pageCount)||0,p=(null==x?void 0:null===(m=x.data)||void 0===m?void 0:m.data)||[];en(u),ec(h),ee(p),ex(!1)}catch(e){console.error("Error fetching data:",e),ex(!1),ee([]),en(0),ec(0)}},[ek,eB]=(0,a.useState)(!!(null===(l=e.popups)||void 0===l?void 0:null===(t=l.data)||void 0===t?void 0:t.length)),eE=e=>{ei(e)},eP=(e,t,l)=>{var s,i;let r=null===(s=l.category_post)||void 0===s?void 0:s.documentId,a=null===(i=l.post_type)||void 0===i?void 0:i.post_type_name;if("delve_into_the_world_markets"===e&&"uvluu0pei129kwambr2xwimo"===r)return!a||["Podcast","Presentation"].includes(a)?"":"blockdit"===a?(null==l?void 0:l.link_url)||"":"/post/post-knowledge/".concat(t);if("delve_into_the_world_markets"===e&&["xb5dcuaaa6brpgwtgte9ncmu","ndqk95ttxp9yqp8xapnnayfj"].includes(r))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);case"ditp_news":return"/post/ditpnew/".concat(t);case"apply_for_works":return"/apply-for-work/".concat(t);case"about_ditp_2s":return"/post/about/about-ditp-2/".concat(t);case"ditp_honest_transparent_no_corruptions":return"/post/ditp-honest/".concat(t);case"procurement_news":return"/post/inthecountry/".concat(t);case"international_trade_promotion_funds":return"/post/international-trade-promotion-fund/".concat(t);case"service_standard_posts":return"/post/service-standard/".concat(t);case"government_information_center_posts":return"/post/government/".concat(t);case"privacy_policy_posts":return"/privacy-policy/".concat(t);case"apply_for_work_posts":return"/post/apply-for-work/".concat(t);case"sitemap":return"/data-governance-policy/".concat(t);case"trade_opportunities":return"/post/trade/".concat(t);case"trending_products":return(null==l?void 0:l.link_url)||"";case"highlighted":return"/highlighted-product/".concat(t);default:return""}};(0,a.useEffect)(()=>{(async()=>{try{let t={documentId_page:"",content:e.message.HomePage.home,url:window.location.href,author:"",post_type:"หน้า",publishAt:""};await n.hi.getPageinsights(t)}catch(e){console.error("เกิดข้อผิดพลาดในการบันทึกข้อมูล",e)}})()},[]);let[eC,eS]=(0,a.useState)(0),[eA,eT]=(0,a.useState)(!1),[eD,eI]=(0,a.useState)(3),[ez,eL]=(0,a.useState)(1);(0,a.useEffect)(()=>{let e=()=>{eT(window.innerWidth<768),eI(window.innerWidth<768?1:3)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let eM=e=>{$.current&&$.current.scrollTo({left:$.current.offsetWidth*e,behavior:"smooth"})},[eV,eR]=(0,a.useState)(!1),[eZ,eF]=(0,a.useState)(0);(0,a.useEffect)(()=>{let t;let l=()=>eR(window.innerWidth<768);return l(),window.addEventListener("resize",l),eV&&(t=setInterval(()=>{eF(t=>{var l,s;return(t+1)%(null===(s=e.events)||void 0===s?void 0:null===(l=s.Acitvities)||void 0===l?void 0:l.length)})},3e3)),()=>{window.removeEventListener("resize",l),t&&clearInterval(t)}},[eV,null===(h=e.events)||void 0===h?void 0:null===(i=h.Acitvities)||void 0===i?void 0:i.length]);let eW=e=>{J(e)},eU="Baht"===X?ep:ev,eH={เม็ดพลาสติก:{ProductID:254,icon:"/icons/plastic.png"},ผลิตภัณฑ์ยาง:{ProductID:322,icon:"/icons/rubber.png"},"รถยนต์ อุปกรณ์และส่วนประกอบ":{ProductID:350,icon:"/icons/mobile.png"},"เครื่องคอมพิวเตอร์ อุปกรณ์และส่วนประกอบ":{ProductID:406,icon:"/icons/it.png"},อัญมณีและเครื่องประดับ:{ProductID:554,icon:"/icons/jewery.png"}};
1null==eU||eU.forEach(e=>{let t=eH[e.productName];t?(e.ProductID=t.ProductID,e.icon=t.icon):(e.ProductID=-1,e.icon="/icons/parcel.png");let l=e.Year;e.ProductTH=e.ProductName,e["SumGrowth1_"+l]=e.GrowthValue,e["SumYear1_"+l]=e.Value});let eO=(null==eg?void 0:eg.find(e=>"รวมทั้งสิ้น"===e.countryName))||{},eq=null==eg?void 0:eg.filter(e=>"รวมทั้งสิ้น"!==e.countryName),eG={1:"ม.ค.",2:"ก.พ.",3:"มี.ค.",4:"เม.ย.",5:"พ.ค.",6:"มิ.ย.",7:"ก.ค.",8:"ส.ค.",9:"ก.ย.",10:"ต.ค.",11:"พ.ย.",12:"ธ.ค."},e$=Math.max(...(null!=eU?eU:[]).map(e=>Math.abs((null==e?void 0:e.value)||0))),eY=Math.max(...(null!=eq?eq:[]).map(e=>Math.abs("Baht"===X?(null==e?void 0:e.valueBaht)||0:(null==e?void 0:e.valueUSD)||0))),[eK,eX]=(0,a.useState)(null),eJ=e.ditpfamilies.data,eQ=Math.ceil((null==eJ?void 0:eJ.length)/eD),e0=eJ.slice((ez-1)*eD,ez*eD),e1=e=>{let t=e.match(/(?:v=|\/)([0-9A-Za-z_-]{11})/);return t?"https://img.youtube.com/vi/".concat(t[1],"/hqdefault.jpg"):""};return(0,s.jsxs)(s.Fragment,{children:["th"!==Y?(0,s.jsxs)("main",{className:"",children:[(0,s.jsx)(b.Z,{title:"Home - กรมส่งเสริมการค้าระหว่างประเทศ",description:"Department of International Trade Promotion (DITP) - Ministry of Commerce Thailand. Export, import, trade promotion services.",keywords:"DITP, Department of International Trade Promotion, Ministry of Commerce, Thailand export, import, international trade"}),(0,s.jsxs)("div",{className:"pt-14 mb-16",children:[ek&&(null===(_=e.popups)||void 0===_?void 0:_.data)&&!K&&(0,s.jsx)(g,{content:e.popups.data,onClose:()=>eB(!1)}),et?(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsxs)("div",{className:"max-w-screen-xl mx-auto mt-4 md:mt-12 px-4",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center mt-12 mb-8 text-center",children:[(0,s.jsxs)("div",{className:"flex text-xl md:text-3xl",children:["Search Results for"," ",(0,s.jsxs)("div",{className:"ml-2 text-xl md:text-3xl font-semibold",children:['"',K,'"']})]}),(0,s.jsxs)("div",{className:"mt-4",children:[ed," Results"]})]}),(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 gap-4",children:em?Array.from({length:12}).map((e,t)=>(0,s.jsx)(f.Z,{},t)):Q.length>0?null===(B=(0,c.IU)(Q))||void 0===B?void 0:B.map(t=>{var l,i;let a=((null===(l=t.report_type)||void 0===l?void 0:l.report_type_name)+"").toLowerCase().includes("factsheet");return(0,s.jsx)(r(),{href:eP(t.type,t.documentId,t),target:"_blank",children:(0,s.jsxs)("div",{className:"flex-shrink-0 md:flex md:flex-col md:w-full bg-white border rounded-lg overflow-hidden",children:[(0,s.jsx)("div",{className:"shrink-0 hover:opacity-75",children:t.generate_template&&a?(0,s.jsx)("div",{className:"",children:(0,s.jsx)(N.Z,{originalHeight:900,originalWidth:1600,maxWidth:"100%",aspectRatio:"16:9",objectFit:"cover",children:(0,s.jsx)(y.Z,{data:t,countriesWithImage:e.countriesWithImage})})}):(0,s.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||"Post image"})}),(0,s.jsxs)("div",{className:"flex flex-col h-40 justify-between",children:[(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)("div",{className:"text-md text-pretty font-medium text-left line-clamp-2 hover:opacity-50",children:t.title})}),(0,s.jsx)("div",{className:"text-gray-500 text-sm text-left p-4",children:(0,c.vc)(t.publish_date||(null==t?void 0:t.current_publish)||t.createdAt,t.locale)})]})]})},t.documentId)}):(0,s.jsx)("div",{className:"col-span-full text-center text-gray-500 mt-4",children:"No results found"})})})]}),(0,s.jsx)(u.Z,{currentPage:es,totalPages:eo,itemsPerPage:er,totalItems:ed,setCurrentPage:ei,setItemsPerPage:ea,handlePageClick:eE})]}):(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)("div",{className:"flex justify-center pt-6 bg-[#10143C] py-4",children:(0,s.jsx)("div",{className:"max-w-screen-xl",children:(0,s.jsx)(w,{banner:e.bannersimage})})}),(0,s.jsxs)("div",{className:"relative bg-[url('/images/bg/background_en.jpg')] bg-cover bg-center",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-[rgba(16,20,60,0.9)]"}),(0,s.jsx)("div",{className:"relative max-w-screen-xl mx-auto p-2 md:px-24",children:(0,s.jsx)("div",{className:"flex items-center justify-center md:h-[108px] md:w-full ",children:(0,s.jsx)("div",{className:"flex flex-col space-y-4 md:grid md:grid-cols-4 md:space-y-0",children:[{title:e.message.page.upcoming,url:"https://www.thaitradefair.com/"},{title:e.message.page.thaitrade,url:"https://www.thaitrade.com/home"},{title:e.message.page.exporters,url:"https://www.thaitradefair.com/exporters-list-directory/"},{title:e.message.page.Trade,url:"/trade-opportunities"}].map((e,t)=>(0,s.jsx)(r(),{href:e.url,target:"_blank",className:"w-full",rel:"noopener noreferrer",children:(0,s.jsx)("div",{className:"flex items-center justify-center w-full h-full md:border-white ".concat(0!==t?"md:border-l":""),children:(0,s.jsx)("div",{className:"text-white text-center px-4",children:e.title})})},t))})})})]}),(0,s.jsxs)("div",{className:"max-w-screen-lg mx-auto px-4",children:[(0,s.jsxs)("div",{className:"mt-16",children:[(0,s.jsx)("div",{className:"text-2xl md:text-[40px] text-[#10143C] text-center font-semibold",children:e.message.page.Howditp}),(0,s.jsx)("div",{className:"text-lg md:text-xl text-center font-semibold mt-8",children:e.message.page.headditp}),(0,s.jsxs)("ul",{className:"mt-6 text-xl text-[#10143C]",children:[(0,s.jsx)("li",{children:e.message.page.information}),(0,s.jsx)("li",{children:e.message.page.business}),(0,s.jsx)("li",{children:e.message.page.facilitation}),(0,s.jsx)("li",{children:e.message.page.consultation})]})]}),(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(r(),{href:"/overseas-office-and-honorary-trade-advisors-hta",children:(0,s.jsx)("button",{type:"button",className:"w-[246px] h-[53px] border bg-[#0E143B] md:w-[438px] rounded-full mt-6 mb-16",children:(0,s.jsx)("div",{className:"text-center text-white",children:e.message.page.contact})})})})]}),(0,s.jsxs)("div",{className:"relative bg-[url('/images/bg/background_en.jpg')] bg-cover bg-center",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-[rgba(16,20,60,0.9)]"}),(0,s.jsx)("div",{className:"relative max-w-screen-xl mx-auto px-4 md:px-24",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center h-[183px] w-full",children:[(0,s.jsx)("div",{className:"text-2xl md:text-[40px] text-white text-center font-semibold",children:e.message.page.findthai}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"relative flex mt-6 md:w-[750px]",children:(0,s.jsx)("form",{onSubmit:e=>{e.preventDefault(),eN.trim()&&(window.open("https://www.thaitradefair.com/exporters-list-directory/?typesearch=0&typesearchgid=0&typesearchyear=0&kw="+eN),ey(""))},children:(0,s.jsxs)("div",{className:"relative flex mt-6 md:w-[750px]",children:[(0,s.jsxs)("div",{className:"flex items-center w-full",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192.904 192.904",width:"16px",className:"absolute left-3 fill-white",children:(0,s.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,s.jsx)("input",{type:"text",id:"input-label",value:eN,onChange:e=>ey(e.target.value),className:"bg-[#0E143B] text-white py-3 pl-10 pr-4 block flex-grow border border-gray-200 rounded-l-lg text-sm",placeholder:"".concat(e.message.page.type,"...")})]}),(0,s.jsx)("button",{type:"submit",className:"w-[102px] h-[48px] border-gray-200 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-r-lg border border-transparent bg-white text-[#0E143B]",children:e.message.page.search})]})})})})]})})]}),(0,s.jsx)("div",{className:"border-b-2 border-gray-200 pb-4 mt-6",children:(0,s.jsx)("div",{className:"max-w-screen-lg mx-auto px-4",children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row justify-center items-center",children:[(0,s.jsx)("div",{className:"mt-2 w-44 h-[120px]",children:(0,s.jsx)("img",{className:"w-full h-full object-contain",src:"/eservice/THAITRADE.jpg",alt:"Thaitrade.com แพลตฟอร์ม B2B สำหรับผู้ส่งออกไทย"})}),(0,s.jsxs)("div",{className:"flex flex-col text-center md:text-left w-full mt-4 md:mt-0",children:[(0,s.jsx)("div",{className:"text-2xl md:text-[40px] font-semibold",children:e.message.page.B2B}),(0,s.jsx)("div",{className:"text-lg mt-2 md:w-[538px]",children:e.message.page.detail})]}),(0,s.jsx)(r(),{href:"https://www.thaitrade.com/home",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("button",{type:"button",className:"h-[53px] border bg-white border-black w-[190p
1x] rounded-full mt-4 mb-12",children:(0,s.jsx)("div",{className:"text-center",children:e.message.page.Buy})})})]})})}),(0,s.jsxs)("div",{className:"max-w-screen-xl mx-auto px-4 mt-4 flex flex-col items-center md:mt-6 relative z-10",children:[(0,s.jsx)("div",{id:"upcoming-events",className:"text-center text-blue-950 text-[24px] md:text-[44px] font-semibold mt-4",children:e.message.page.upcoming}),(0,s.jsx)("div",{className:"overflow-x-auto w-full",children:(0,s.jsx)("div",{className:"p-4 mt-4",children:(0,s.jsx)("div",{className:"flex gap-4 md:grid md:gap-4 md:grid-cols-3 xl:grid-cols-4 z-10",children:null==e?void 0:null===(P=e.activityen)||void 0===P?void 0:null===(E=P.data)||void 0===E?void 0:E.map((e,t)=>(0,s.jsx)(r(),{href:null==e?void 0:e.Register_Url,target:"_blank",children:(0,s.jsxs)("div",{className:"flex-shrink-0 w-72 md:flex md:flex-col md:w-full bg-white border rounded-lg overflow-hidden",children:[(0,s.jsx)("div",{className:"shrink-0 hover:opacity-75",children:(0,s.jsx)("img",{className:"h-48 w-full object-cover object-end md:h-48",src:null==e?void 0:e.Activity_Logo_Banner,alt:null==e?void 0:e.Activity_Topic_EN})}),(0,s.jsxs)("div",{className:"flex flex-col h-[145px] justify-between",children:[(0,s.jsxs)("div",{className:"px-4 mt-2",children:[(0,s.jsx)("div",{className:"text-lg font-semibold text-left line-clamp-2 hover:opacity-50",children:null==e?void 0:e.Activity_Topic_EN}),(0,s.jsxs)("div",{className:"flex items-center mt-2",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-4 h-4 text-gray-500",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"m11.54 22.351.07.04.028.016a.76.76 0 0 0 .723 0l.028-.015.071-.041a16.975 16.975 0 0 0 1.144-.742 19.58 19.58 0 0 0 2.683-2.282c1.944-1.99 3.963-4.98 3.963-8.827a8.25 8.25 0 0 0-16.5 0c0 3.846 2.02 6.837 3.963 8.827a19.58 19.58 0 0 0 2.682 2.282 16.975 16.975 0 0 0 1.145.742ZM12 13.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",clipRule:"evenodd"})}),(0,s.jsx)("div",{className:"text-xs text-gray-500 line-clamp-1",children:null==e?void 0:e.Activity_Location_EN})]})]}),(0,s.jsxs)("div",{className:"p-4 text-xs font-semibold ",children:[(0,s.jsxs)("div",{children:["TRADE:"," ",(0,c.pK)(null==e?void 0:e.Activity_Trade_Start,null==e?void 0:e.Activity_Trade_End)]}),(0,s.jsxs)("div",{children:["PUBLIC:"," ",(0,c.pK)(null==e?void 0:e.Activity_Public_Start,null==e?void 0:e.Activity_Public_End)]})]})]})]})},t))})})}),(0,s.jsx)("a",{href:"https://www.thaitradefair.com/",target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("button",{type:"button",className:"w-[246px] h-[53px] border bg-[#0E143B] hover:bg-gradient-to-r from-[#1A1C49] to-[#41B8B9] md:w-[320px] rounded-full mt-4 mb-12",children:(0,s.jsx)("div",{className:"text-center text-white",children:e.message.page.button})})})]}),(0,s.jsxs)("div",{className:"max-w-screen-xl mx-auto px-4 mt-4 flex flex-col items-center md:mt-6 relative z-10",children:[(0,s.jsx)("div",{className:"text-center text-blue-950 text-[24px] md:text-[44px] font-semibold mt-4",children:e.message.page.Trade}),(0,s.jsx)("div",{className:"overflow-x-auto w-full",children:(0,s.jsx)("div",{className:"p-4 mt-4",children:(0,s.jsx)("div",{className:"flex gap-4 md:grid md:gap-4 md:grid-cols-3 xl:grid-cols-4 z-10",children:(0,c.IU)(null===(C=e.opportunities)||void 0===C?void 0:C.data).slice(0,4).map((e,t)=>(0,s.jsxs)("div",{className:"flex-shrink-0 md:flex md:flex-col justify-center items-center bg-white",children:[(0,s.jsx)(m.Z,{file:e}),(0,s.jsx)("div",{className:"w-[240px]",children:(0,s.jsx)("div",{className:"text-center text-md font-semibold line-clamp-2 hover:opacity-50",children:null==e?void 0:e.title})})]},t))})})}),(0,s.jsx)(r(),{href:"/trade-opportunities",children:(0,s.jsx)("button",{type:"button",className:"w-[246px] h-[53px] border bg-[#0E143B] hover:bg-gradient-to-r from-[#1A1C49] to-[#41B8B9] md:w-[320px] rounded-full mt-4 mb-12",children:(0,s.jsx)("div",{className:"text-center text-white",children:e.message.page.button})})})]}),(0,s.jsxs)("div",{className:"max-w-screen-xl mx-auto px-4 mt-4 flex flex-col items-center md:mt-6 relative z-10",children:[(0,s.jsx)("div",{className:"text-center text-blue-950 text-[24px] md:text-[44px] font-semibold mt-4",children:e.message.page.highlighted}),(0,s.jsx)("div",{className:"overflow-x-auto w-full",children:(0,s.jsx)("div",{className:"p-4 mt-4",children:(0,s.jsx)("div",{className:"flex gap-4 md:grid md:gap-4 md:grid-cols-3 xl:grid-cols-4 z-10",children:(0,c.IU)(e.highlighted.data).slice(0,4).map((e,t)=>(0,s.jsxs)("div",{className:"flex-shrink-0 md:flex md:flex-col justify-center items-center bg-white",children:[(0,s.jsx)(m.Z,{file:e}),(0,s.jsx)("div",{className:"w-[240px]",children:(0,s.jsx)("div",{className:"text-center text-md font-semibold line-clamp-2 hover:opacity-50",children:e.title})})]},t))})})}),(0,s.jsx)(r(),{href:"/highlighted-product",children:(0,s.jsx)("button",{type:"button",className:"w-[246px] h-[53px] border bg-[#0E143B] hover:bg-gradient-to-r from-[#1A1C49] to-[#41B8B9] md:w-[320px] rounded-full mt-4 mb-12",children:(0,s.jsx)("div",{className:"text-center text-white",children:e.message.page.button})})})]}),(0,s.jsx)("div",{className:"bg-[url('/images/bg/background.png')] bg-cover h-[450px]",children:(0,s.jsxs)("div",{className:"max-w-screen-xl w-full mx-auto p-4 flex flex-col items-center",children:[(0,s.jsx)("div",{className:"text-center text-white text-[24px] md:text-[44px] font-semibold mt-4",children:e.message.page.fam
1ily}),(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)("div",{className:"flex transition-transform duration-500 ease-in-out",children:(0,s.jsx)("div",{className:"w-full shrink-0 grid grid-cols-1 md:grid-cols-3 gap-4",children:e0.map((e,t)=>(0,s.jsxs)("div",{className:"cursor-pointer relative",onClick:()=>eX(null==e?void 0:e.link_url),children:[(null==e?void 0:e.link_url)&&(0,s.jsx)("img",{src:e1(null==e?void 0:e.link_url),alt:e.title,className:"w-[410px] h-[234px] object-cover"}),(0,s.jsx)("div",{className:"text-white pt-1",children:e.title})]},t))})}),(0,s.jsx)("button",{type:"button",onClick:()=>{eL(e=>1===e?eQ:e-1)},"aria-label":"PrevPage",className:"hidden absolute md:flex md:left-0 xl:-left-16 top-1/2 transform -translate-y-1/2 border rounded-full bg-gray-400 h-[46px] w-[46px] items-center justify-center",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"m15 18-6-6 6-6"})})}),(0,s.jsx)("button",{type:"button",onClick:()=>{eL(e=>e===eQ?1:e+1)},"aria-label":"Next",className:"hidden absolute md:flex md:right-0 xl:-right-14 top-1/2 border transform -translate-y-1/2 rounded-full bg-gray-400 h-[46px] w-[46px]  items-center justify-center",children:(0,s.jsx)("svg",{className:"shrink-0",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"m9 18 6-6-6-6"})})}),(0,s.jsx)("div",{className:"absolute -bottom-3 xl:bottom-3 left-0 right-0 flex justify-center gap-2 top-80",children:Array.from({length:eQ},(e,t)=>(0,s.jsx)("div",{onClick:()=>eL(t+1),className:"w-2 h-2 flex items-center justify-center text-xs font-semibold rounded-full cursor-pointer ".concat(ez===t+1?"bg-[#2067B2] text-white":"bg-gray-300 hover:bg-gray-400")},t))})]}),(0,s.jsx)("div",{className:"flex gap-4 md:grid md:gap-4 md:grid-cols-3",children:eK&&(0,s.jsx)("div",{className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-80 z-50",children:(0,s.jsxs)("div",{className:"relative w-full max-w-3xl p-4 flex flex-col items-center",children:[(0,s.jsx)("button",{className:"absolute top-4 md:top-1  right-4 md:right-12 xl:-right-36 text-white text-3xl",onClick:()=>eX(null),children:"\xd7"}),eK&&(0,s.jsx)("iframe",{className:"xl:w-[1000px] h-64 xl:h-[650px] md:w-[600px] md:h-[400px]",src:(e=>{let t=e.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^\&\?\/]+)/);return t?"https://www.youtube.com/embed/".concat(t[1]):""})(eK),title:"YouTube video",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})]})})})]})}),(0,s.jsxs)("div",{className:"max-w-screen-lg mx-auto px-4 mt-4 flex flex-col items-center md:mt-6 relative z-10",children:[(0,s.jsx)("div",{id:"Awarded-Products-Services",className:"text-center text-blue-950 text-[24px] md:text-[44px] font-semibold mt-4",children:e.message.page.awarded}),(0,s.jsx)("div",{className:"overflow-x-auto w-full",children:(0,s.jsx)("div",{className:"p-4 mt-4",children:(0,s.jsx)("div",{className:"flex gap-4 md:grid md:gap-4 md:grid-cols-3 z-10",children:e.awarded.data.map(t=>{var l,i,a;return(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center border w-[300px] h-[384px]",children:[(0,s.jsx)("div",{className:"flex-shrink-0 overflow-hidden",children:(0,s.jsx)("img",{src:(null===(a=t.image)||void 0===a?void 0:null===(i=a.formats)||void 0===i?void 0:null===(l=i.thumbnail)||void 0===l?void 0:l.url)||"/images/ditpimage.png",alt:"Profile",className:"w-32 h-32 object-contain"})}),(0,s.jsx)("div",{className:"p-2 text-center md:h-[115px]",children:(0,s.jsx)("div",{children:t.title})}),(0,s.jsx)(r(),{href:t.link_url,target:"_blank",children:(0,s.jsx)("button",{type:"button",className:"w-[140px] h-[53px] border bg-[#0E143B] hover:bg-gradient-to-r from-[#1A1C49] to-[#41B8B9] md:w-[178px] rounded-full mt-8 mb-4",children:(0,s.jsx)("div",{className:"text-center text-white",children:e.message.page.button_awarded})})})]})},t.id)})})})})]})]})]})]}):(0,s.jsxs)("main",{className:"flex flex-col",children:[(0,s.jsx)(b.Z,{title:"กรมส่งเสริมการค้าระหว่างประเทศ (DITP) - กระทรวงพาณิชย์",description:"กรมส่งเสริมการค้าระหว่างประเทศ (DITP) กระทรวงพาณิชย์ ส่งเสริมการส่งออก นำเข้า ขยายตลาดต่างประเทศ สถิติการค้า ข้อมูลตลาดโลก บริการผู้ประกอบการไทย",keywords:"กรมส่งเสริมการค้าระหว่างประเทศ, DITP, กระทรวงพาณิชย์, ส่งออก, นำเข้า, การค้าระหว่างประเทศ, ตลาดต่างประเทศ, สินค้าส่งออก, Thailand export"}),(0,s.jsxs)("div",{children:[ek&&(null===(S=e.popups)||void 0===S?void 0:S.data)&&!K&&(0,s.jsx)(g,{content:e.popups.data,onClose:()=>eB(!1)}),(0,s.jsx)("div",{className:"pt-14",children:et?(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsxs)("div",{className:"max-w-screen-xl mx-auto mt-4 md:mt-12 px-4",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center mt-12 mb-8 text-center",children:[(0,s.jsxs)("div",{className:"flex text-xl md:text-3xl",children:["Search Results for"," ",(0,s.jsxs)("div",{className:"ml-2 text-xl md:text-3xl font-semibold",children:['"',K,'"']})]}),(0,s.jsxs)("div",{className:"mt-4",children:[ed," Results"]})]}),(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 gap-4",children:em?Array.from({length:12}).map((e,t)=>(0,s.jsx)(f.Z,{},t)):Q.length>0?(0,c.IU)(Q).map(t=>{var l,i,a,d,n,o,m,x;let u=((null===(l=t.report_type)||void 0===l?void 0:l.report_type_name)+"").toLowerCase().includes("factsheet");return(0,s.jsx)(r(),{href:eP(t.type,t.documentId,t),target:"_blank",children:(0,s.jsxs)("div",{className:"flex-shrink-0 md:flex md:flex-col md:w-full bg-white border rounded-lg overflow-hidden",children:[(0,s.jsx)("div",{className:"shrink-0 hover:opacity-75",children:t.generate_template&&u?(0,s.jsx)("div",{className:"",children:(0,s.jsx)(N.Z,{originalHeight:900,originalWidth:1600,maxWidth:"100%",aspectRatio:"16:9",objectFit:"cover",children:(0,s.jsx)(y.Z,{data:t,countriesWithImage:e.countriesWithImage})})}):(0,s.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||"Post image"})}),(0,s.jsxs)("div",{className:"flex flex-col h-40 justify-between",children:[(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsx)("div",{className:"text-md text-pretty font-medium text-left line-clamp-2 hover:opacity-50",children:t.title}),(0,s.jsx)("div",{className:"mt-1 text-gray-500 text-sm text-left line-clamp-1",children:["องค์ความรู้ด้านการค้าระหว่างต่างประเทศ"].includes(null==t?void 0:null===(a=t.category_post)||void 0===a?void 0:a.name)?null==t?void 0:null===(d=t.post_type)||void 0===d?void 0:d.post_type_name:(0,s.jsxs)(s.Fragment,{children:[null===(n=t.region)||void 0===n?void 0:n.region_name,(null===(o=t.regi
1on)||void 0===o?void 0:o.region_name)&&(null===(m=t.category)||void 0===m?void 0:m.category_name)&&" • ",null===(x=t.category)||void 0===x?void 0:x.category_name]})})]}),(0,s.jsx)("div",{className:"text-gray-500 text-sm text-left p-4",children:(0,c.vc)(t.publish_date||(null==t?void 0:t.current_publish)||t.createdAt,t.locale)})]})]})},t.documentId)}):(0,s.jsx)("div",{className:"text-gray-500 mt-4 col-span-full text-center",children:"No results found"})})})]}),(0,s.jsx)(u.Z,{currentPage:es,totalPages:eo,itemsPerPage:er,totalItems:ed,setCurrentPage:ei,setItemsPerPage:ea,handlePageClick:eE})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex justify-center pt-6 bg-[#10143C] py-4",children:(0,s.jsx)("div",{className:"max-w-screen-xl",children:(0,s.jsx)(w,{banner:e.bannersimage})})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"bg-white mt-2 md:mt-10",children:[(0,s.jsx)("div",{className:"text-lg text-center font-semibold text-black md:text-3xl",children:"ระบุความต้องการของท่านเพื่อเข้าถึงข้อมูลเเละบริการที่เกี่ยวข้อง"}),(0,s.jsx)("div",{className:"mt-4 text-2xl text-center text-black md:text-[40px] font-semibold",children:"ฉันต้องการ..."}),(0,s.jsx)("div",{className:"max-w-screen-xl mx-auto mt-6",children:(0,s.jsx)("div",{className:"px-4 md:px-8 overflow-x-auto custom-scroll md:overflow-x-visible",children:(0,s.jsx)("div",{className:"grid w-fit mx-auto justify-center justify-items-center gap-x-4 gap-y-6 grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-4",children:null===(D=e.wouldlike)||void 0===D?void 0:null===(T=D.data)||void 0===T?void 0:null===(A=T.api_external)||void 0===A?void 0:A.map((e,t)=>{var l,i,a,d,n,o,c,m;let x=(null==e?void 0:null===(l=e.link)||void 0===l?void 0:l.startsWith("http"))||"";return(0,s.jsx)(r(),{href:(null==e?void 0:e.link)||"",...x?{target:"_blank",rel:"noopener noreferrer"}:{},children:(0,s.jsxs)("div",{className:"flex justify-center items-center bg-white px-2 rounded-lg shadow-lg border border-[#E5E7EB] w-[230px] h-[85px] hover:shadow-lg hover:scale-105",children:[(0,s.jsx)("img",{src:(null===(d=e.image)||void 0===d?void 0:null===(a=d.formats)||void 0===a?void 0:null===(i=a.thumbnail)||void 0===i?void 0:i.url)||(null===(c=e.image)||void 0===c?void 0:null===(o=c.formats)||void 0===o?void 0:null===(n=o.medium)||void 0===n?void 0:n.url)||(null===(m=e.image)||void 0===m?void 0:m.url),className:"w-[50px] h-[50px] object-contain",alt:e.title||"DITP Family"}),(0,s.jsx)("div",{className:"text-center text-sm font-normal sm:text-base w-full line-clamp-3",children:e.title})]})},t)})})})})]}),(0,s.jsx)("div",{className:"max-w-screen-lg mx-auto mt-16 mb-8",children:(0,s.jsx)("div",{className:"relative bg-[url('/icons/backgroud.png')] bg-bottom bg-cover border w-full rounded-lg overflow-hidden",children:(0,s.jsxs)("div",{className:"flex items-center justify-center w-full h-[200px]",children:[(0,s.jsx)("div",{className:"hidden md:block w-[150px] h-[175] object-contain"}),(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,s.jsxs)("div",{className:"text-center text-xl md:text-3xl font-bold text-white",children:["พร้อมส่งออกหรือยัง? ",(0,s.jsx)("br",{})," ","เชิญร่วมทดสอบกับเราได้เลย"]}),(0,s.jsx)(r(),{href:"/e-survey-export-readiness-assessment",children:(0,s.jsx)("button",{type:"button",className:"w-[246px] h-[53px]  bg-[#0E143B] md:w-[320px] rounded-full mt-8",children:(0,s.jsx)("div",{className:"text-center text-white",children:"เริ่มทำแบบทดสอบ"})})})]}),(0,s.jsx)("img",{src:"/icons/ditpgirl.png",alt:"person right",className:"hidden md:block w-[150px] h-[175]  object-contain"})]})})}),(0,s.jsxs)("div",{className:"relative overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute z-0",style:{backgroundImage:"url('/images/back.png')",backgroundPosition:"top",backgroundSize:"contain",width:"7
173px",height:"712px",borderRadius:"50%",maskImage:"radial-gradient(circle, transparent 30%, black 30%, black 70%, transparent 70%)",WebkitMaskImage:"radial-gradient(circle, transparent 30%, black 30%, black 70%, transparent 70%)",overflow:"hidden",bottom:"0",right:"0",transform:"translate(50%, 50%)",opacity:.8}}),(0,s.jsxs)("div",{className:"max-w-screen-xl mx-auto mt-4 flex flex-col items-center md:mt-6 relative z-10",children:[(0,s.jsx)("div",{className:"text-center text-blue-950 text-[24px] md:text-[44px] font-semibold mt-4",children:"เจาะลึกตลาดโลก"}),(0,s.jsx)("div",{className:"overflow-x-auto w-full",children:(0,s.jsx)("div",{className:"p-4 mt-4",children:(0,s.jsx)("div",{className:"flex gap-4 md:grid md:gap-4 md:grid-cols-3 xl:grid-cols-4 z-10",children:null===(z=(0,c.IU)(null===(L=e.delveintoteworld)||void 0===L?void 0:L.data))||void 0===z?void 0:null===(I=z.slice(0,8))||void 0===I?void 0:I.map((t,l)=>{var i,a,d,n,o,m,x,u,h,p,v;let g=((null===(i=t.report_type)||void 0===i?void 0:i.report_type_name)+"").toLowerCase().includes("factsheet");return(0,s.jsx)(r(),{href:"/post/".concat(t.documentId),children:(0,s.jsxs)("div",{className:"flex-shrink-0 w-72 md:flex md:flex-col md:w-full bg-white border rounded-lg overflow-hidden",children:[(0,s.jsx)("div",{className:"shrink-0 hover:opacity-75",children:t.generate_template&&g?(0,s.jsx)("div",{className:"",children:(0,s.jsx)(N.Z,{originalHeight:900,originalWidth:1600,maxWidth:"100%",aspectRatio:"16:9",objectFit:"cover",children:(0,s.jsx)(y.Z,{data:t,countriesWithImage:e.countriesWithImage})})}):(0,s.jsx)("img",{className:"aspect-[16/9] w-full object-cover object-end ",src:null!==(v=null!==(p=null===(n=t.image)||void 0===n?void 0:null===(d=n.formats)||void 0===d?void 0:null===(a=d.small)||void 0===a?void 0:a.url)&&void 0!==p?p:null===(o=t.image)||void 0===o?void 0:o.url)&&void 0!==v?v:"/images/ditpimage.png",alt:"Home in Countryside"})}),(0,s.jsxs)("div",{className:"flex flex-col h-40 justify-between",children:[(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsx)("div",{className:"text-md text-pretty font-medium text-left line-clamp-2 hover:opacity-50",children:t.title}),(0,s.jsxs)("div",{className:"mt-1 text-gray-500 text-sm text-left line-clamp-1",children:[null===(m=t.region)||void 0===m?void 0:m.region_name," ",(null===(x=t.regi
1on)||void 0===x?void 0:x.region_name)&&(null===(u=t.category)||void 0===u?void 0:u.category_name)&&" • ",null===(h=t.category)||void 0===h?void 0:h.category_name]})]}),(0,s.jsx)("div",{className:"text-gray-500 text-sm text-left p-4",children:(0,c.vc)((null==t?void 0:t.publish_date)||(null==t?void 0:t.current_publish)||(null==t?void 0:t.createdAt),t.locale)})]})]})},l)})})})}),(0,s.jsx)(r(),{href:"/international-foreign-market#ประเด็นร้อน/เจาะลึกตลาดโลก",children:(0,s.jsx)("button",{type:"button",className:"w-[246px] h-[53px] border bg-[#0E143B] hover:bg-gradient-to-r from-[#1A1C49] to-[#41B8B9] md:w-[320px] rounded-full mt-4 mb-12",children:(0,s.jsx)("div",{className:"text-center text-white",children:"ดูทั้งหมด"})})})]})]}),(0,s.jsx)("div",{className:"bg-[url('/images/bg/imageditp.jpg')] bg-cover",children:(0,s.jsxs)("div",{className:"max-w-screen-xl w-full mx-auto p-4 flex flex-col items-center",children:[(0,s.jsx)("div",{className:"text-center text-white text-[24px] md:text-[44px] font-semibold p-6",children:"สถิติการส่งออก"}),(0,s.jsx)("div",{className:"relative bg-[url('/images/backgroundallincluded.png')] bg-bottom bg-cover border w-full rounded-lg overflow-hidden",children:(0,s.jsxs)("div",{className:"flex flex-col p-4 w-full h-[170px]",children:[(0,s.jsxs)("div",{className:"flex justify-center md:justify-between items-center",children:[(0,s.jsx)("div",{className:"text-2xl md:text-3xl font-bold text-white",children:"การส่งออกรวม"}),(0,s.jsxs)("div",{className:"hidden md:flex justify-center items-center",children:[(0,s.jsx)("div",{className:"inline-flex items-center gap-x-2.5 p-2 text-sm font-medium bg-white border text-gray-800 -mt-px rounded-l-lg md:py-3 md:px-4",children:(0,s.jsxs)("div",{className:"relative flex items-start w-full",children:[(0,s.jsx)("div",{className:"flex items-center h-5",children:(0,s.jsx)("input",{id:"hs-horizontal-list-group-item-radio-1-md",name:"hs-horizontal-list-group-item-radio-md",type:"radio",className:"border-gray-200 rounded-full disabled:opacity-50",checked:"Baht"===X,onChange:()=>eW("Baht")})}),(0,s.jsx)("label",{htmlFor:"hs-horizontal-list-group-item-radio-1-md",className:"ms-3 block w-full text-sm text-gray-600",children:"ล้านบาท"})]})}),(0,s.jsx)("div",{className:"inline-flex items-center gap-x-2.5 p-2 text-sm font-medium bg-white border text-gray-800 -mt-px rounded-r-lg md:py-3 md:px-4",children:(0,s.jsxs)("div",{className:"relative flex items-start w-full",children:[(0,s.jsx)("div",{className:"flex items-center h-5",children:(0,s.jsx)("input",{id:"hs-horizontal-list-group-item-radio-2-md",name:"hs-horizontal-list-group-item-radio-md",type:"radio",className:"border-gray-200 rounded-full disabled:opacity-50",checked:"USD"===X,onChange:()=>eW("USD")})}),(0,s.jsx)("label",{htmlFor:"hs-horizontal-list-group-item-radio-2-md",className:"ms-3 block w-full text-sm text-gray-600",children:"MUSD"})]})})]})]}),(0,s.jsxs)("div",{className:"text-center text-xl md:text-2xl font-normal text-white md:text-left",children:["(",(e=>{if(!e)return"";let[t,l]=e.split("-").map(Number);return"".concat(eG[t],"-").concat(eG[l])})(eO.monthName)," ",eO.year,")"]}),(0,s.jsxs)("div",{className:"flex justify-center md:justify-start items-center mt-2",children:[(0,s.jsxs)("div",{className:"text-lg md:text-3xl text-white font-bold after:content-['|'] after:ml-3 after:text-white after:font-light",children:["Baht"===X?"฿":"$",null===(M=Number("Baht"===X?eO.valueBaht||0:eO.valueUSD||0))||void 0===M?void 0:M.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})]}),(0,s.jsxs)("div",{className:"text-lg md:text-3xl font-bold ml-2 ".concat(0>Number("Baht"===X?eO.growthValueBaht:eO.growthValueUSD)?"text-[#DD0000]":"text-[#00B900]"),children:[Number("Baht"===X?eO.growthValueBaht:eO.growthValueUSD)>0?"+":"",isNaN(Number("Baht"===X?eO.growthValueBaht:eO.growthValueUSD))?"N/A":Number("Baht"===X?eO.growthValueBaht:eO.growthValueUSD).toFixed(2),"%"]})]}),(0,s.jsxs)("div",{className:"flex md:hidden justify-center items-center mt-2",children:[(0,s.jsx)("div",{className:"inline-flex items-center gap-x-2.5 p-2 text-sm font-medium bg-white border text-gray-800 -mt-px rounded-l-lg md:py-3 md:px-4",children:(0,s.jsxs)("div",{className:"relative flex items-start w-full",children:[(0,s.jsx)("div",{className:"flex items-center h-5",children:(0,s.jsx)("input",{id:"hs-horizontal-list-group-item-radio-1-sm",name:"hs-horizontal-list-group-item-radio-sm",type:"radio",className:"border-gray-200 rounded-full disabled:opacity-50",checked:"Baht"===X,onChange:()=>eW("Baht")})}),(0,s.jsx)("label",{htmlFor:"hs-horizontal-list-group-item-radio-1-sm",className:"ms-3 block w-full text-sm text-gray-600",children:"ล้านบาท"})]})}),(0,s.jsx)("div",{className:"inline-flex items-center gap-x-2.5 p-2 text-sm font-medium bg-white border text-gray-800 -mt-px rounded-r-lg md:py-3 md:px-4",children:(0,s.jsxs)("div",{className:"relative flex items-start w-full",children:[(0,s.jsx)("div",{className:"flex items-center h-5",children:(0,s.jsx)("input",{id:"hs-horizontal-list-group-item-radio-2-sm",name:"hs-horizontal-list-group-item-radio-sm",type:"radio",className:"border-gray-200 rounded-full disabled:opacity-50",checked:"USD"===X,onChange:()=>eW("USD")}
1)}),(0,s.jsx)("label",{htmlFor:"hs-horizontal-list-group-item-radio-2-sm",className:"ms-3 block w-full text-sm text-gray-600",children:"MUSD"})]})})]})]})}),(0,s.jsxs)("div",{ref:$,onScroll:()=>{if($.current)eS(Math.round($.current.scrollLeft/$.current.offsetWidth))},className:"w-full mt-4 ".concat(eA?"flex overflow-x-auto space-x-4 scroll-smooth snap-x snap-mandatory":"grid grid-cols-1 md:grid-cols-2 gap-4"),children:[(0,s.jsx)("div",{className:"snap-start min-w-full md:min-w-0",children:(0,s.jsxs)("div",{className:"p-4 rounded-xl bg-white w-full",children:[(0,s.jsx)("div",{className:"text-xl font-bold text-gray-800",children:"ตลาดส่งออก 5 อันดับแรก"}),(0,s.jsx)("div",{className:"space-y-2 mt-4 ",children:null==eq?void 0:null===(V=eq.slice(0,5))||void 0===V?void 0:V.map((e,t)=>{var l;return(0,s.jsxs)("div",{className:"flex items-center p-1 border border-gray-300 rounded-xl bg-white shadow-sm space-x-6",children:[(0,s.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,s.jsx)("div",{className:"w-[36px] h-[36px] overflow-hidden rounded-md border border-gray-300",children:(0,s.jsx)("img",{src:(0,j.BJ)(e.countryName.toLowerCase()),alt:"icon",className:"w-[36px] h-[36px] object-cover"})})}),(0,s.jsxs)("div",{className:"ml-3 flex-grow",children:[(0,s.jsx)("div",{className:"text-sm font-medium text-gray-800 line-clamp-1",children:e.countryName}),(0,s.jsx)("div",{className:"bg-gray-200 rounded-full mt-1",children:(0,s.jsx)("div",{className:"h-2 rounded-full progress",style:{width:"".concat(Math.min(Math.abs("Baht"===X?e.valueBaht:e.valueUSD)/eY*100,100),"%")}})})]}),(0,s.jsxs)("div",{className:"flex-shrink-0 text-right",children:[(0,s.jsxs)("div",{className:"lg:text-xl font-bold ".concat(0>Number("Baht"===X?e.growthValueBaht:e.growthValueUSD)?"text-[#DD0000]":"text-[#00B900]"),children:[Number("Baht"===X?e.growthValueBaht:e.growthValueUSD)>0?"+":"",isNaN(Number("Baht"===X?e.growthValueBaht:e.growthValueUSD))?"N/A":Number("Baht"===X?e.growthValueBaht:e.growthValueUSD).toFixed(2),"%"]}),(0,s.jsxs)("div",{className:"text-sm text-[#1F2937]",children:["Baht"===X?"฿":"$",null===(l=Number("Baht"===X?e.valueBaht:e.valueUSD))||void 0===l?void 0:l.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})]})]})]},t)})}),(0,s.jsxs)("div",{className:"flex justify-between items-center mt-4",children:[(0,s.jsx)("div",{className:"text-xs font-semibol",children:"ที่มา : กรมศุลกากร"}),(0,s.jsxs)(r(),{href:"https://tradereport.moc.go.th/th",target:"_blank",className:"inline-flex items-center justify-center gap-x-1 text-xs font-semibold",children:["ดูเพิ่มเติม",(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-4 w-4",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})]})]})]})}),(0,s.jsx)("div",{className:"snap-start min-w-full md:min-w-0",children:(0,s.jsxs)("div",{className:"p-4 rounded-xl bg-white w-full",children:[(0,s.jsx)("div",{className:"text-xl font-bold text-gray-800",children:"สินค้าส่งออก 5 อันดับแรก"}),(0,s.jsx)("div",{className:"space-y-2 mt-4 ",children:null==eU?void 0:null===(R=eU.slice(0,5))||void 0===R?void 0:R.map((e,t)=>{var l,i,r;return(0,s.jsxs)("div",{className:"flex items-center p-1 border border-gray-300 rounded-xl bg-white shadow-sm space-x-6",children:[(0,s.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,s.jsx)("div",{className:"w-9 h-9 overflow-hidden rounded-md border border-gray-300",children:(0,s.jsx)("img",{src:e.icon,alt:"icon",className:"w-full h-full object-cover"})})}),(0,s.jsxs)("div",{className:"ml-3 flex-grow",children:[(0,s.jsx)("div",{className:"text-sm font-medium text-gray-800 line-clamp-1",children:e.productName}),(0,s.jsx)("div",{className:"bg-gray-100 rounded-full mt-1",children:(0,s.jsx)("div",{className:"h-2 rounded-full progress",style:{width:"".concat(Math.min(Math.abs(e.value)/e$*100,100),"%")}})})]}),(0,s.jsxs)("div",{className:"flex-shrink-0 text-right",children:[(0,s.jsxs)("div",{className:"lg:text-xl font-bold ".concat(e.growthValue<0?"text-[#DD0000]":"text-[#00B900]"),children:[e.growthValue>0?"+":"",null!==(r=null===(l=e.growthValue)||void 0===l?void 0:l.toFixed(2))&&void 0!==r?r:"0.00","%"]}),(0,s.jsxs)("div",{className:"text-sm text-[#1F2937]",children:["Baht"===X?"฿":"$",null===(i=Number(e.value))||void 0===i?void 0:i.toLocaleStr
1ing(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})]})]})]},t)})}),(0,s.jsxs)("div",{className:"flex justify-between items-center mt-4",children:[(0,s.jsx)("div",{className:"text-xs font-semibold",children:"ที่มา : กรมศุลกากร"}),(0,s.jsxs)(r(),{href:"https://tradereport.moc.go.th/th",target:"_blank",className:"inline-flex items-center justify-center gap-x-1 text-xs font-semibold",children:["ดูเพิ่มเติม",(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-4 w-4",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})]})]})]})})]}),eA&&(0,s.jsx)("div",{className:"flex justify-center gap-2 mt-3",children:[0,1].map(e=>(0,s.jsx)("div",{onClick:()=>eM(e),className:"w-2 h-2 rounded-full cursor-pointer ".concat(eC===e?"bg-[#2067B2]":"bg-[#E5E7EB]")},e))})]})}),(0,s.jsxs)("div",{className:"max-w-screen-xl mx-auto flex flex-col items-center mt-6 ",children:[(0,s.jsx)("div",{id:"กิจกรรมที่เปิดรับสมัคร",className:"text-center text-blue-950 text-[24px] md:text-[44px] font-semibold mt-4",children:"กิจกรรมที่เปิดรับสมัคร"}),(0,s.jsx)("div",{className:"w-full p-4 mt-4",children:(0,s.jsx)("div",{children:(0,s.jsx)(s.Fragment,{children:eV?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.tq,{spaceBetween:16,slidesPerView:1,pagination:{clickable:!0,el:".custom-swiper-pagination"},modules:[v.tl],className:"mySwiper",children:null==e?void 0:null===(F=e.activityths)||void 0===F?void 0:null===(Z=F.data)||void 0===Z?void 0:Z.map((e,t)=>(0,s.jsx)(p.o5,{children:(0,s.jsx)(r(),{href:null==e?void 0:e.Register_Url,target:"_blank",children:(0,s.jsxs)("div",{className:"bg-white flex-shrink-0 border rounded-xl md:flex md:flex-row w-full hover:opacity-75 h-[400px]",children:[(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)("img",{className:"rounded-t-xl h-[233px] w-full object-left sm:rounded-s-xl aspect-square object-cover",src:null==e?void 0:e.Activity_Logo_Banner,alt:null==e?void 0:e.Activity_Topic_TH})}),(0,s.jsxs)("div",{className:"p-4 flex flex-col",children:[(0,s.jsx)("div",{className:"line-clamp-2 text-md font-medium text-left",children:null==e?void 0:e.Activity_Topic_TH}),(0,s.jsxs)("div",{className:"flex mt-1 mb-2 text-gray-500 text-sm space-x-1",children:[null==e?void 0:e.Country_Name_Th,(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsx)("div",{children:null==e?void 0:e.EventFormat})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1 sm:mt-auto",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-4 h-4 text-gray-500 ",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"m11.54 22.351.07.04.028.016a.76.76 0 0 0 .723 0l.028-.015.071-.041a16.975 16.975 0 0 0 1.144-.742 19.58 19.58 0 0 0 2.683-2.282c1.944-1.99 3.963-4.98 3.963-8.827a8.25 8.25 0 0 0-16.5 0c0 3.846 2.02 6.837 3.963 8.827a19.58 19.58 0 0 0 2.682 2.282 16.975 16.975 0 0 0 1.145.742ZM12 13.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",clipRule:"evenodd"})}),(0,s.jsx)("div",{className:"text-xs text-gray-500 line-clamp-1",children:null==e?void 0:e.Activity_Location_TH})]}),(0,s.jsxs)("div",{className:"text-xs mt-1 font-semibold ",children:["วันที่จัดกิจกรรม:"," ",(0,c.VT)(null==e?void 0:e.Activity_Start_Date)," ","-"," ",(0,c.VT)(null==e?void 0:e.Activity_End_Date)]}),(0,s.jsxs)("div",{className:"text-xs mt-1 font-semibold",children:["วันที่เปิดรับสมัคร:"," ",(0,c.VT)(null==e?void 0:e.Activity_Start_Regis)," ","-"," ",(0,c.VT)(null==e?void 0:e.Activity_End_Regis)]})]})]})})},t))}),(0,s.jsx)("div",{className:"custom-swiper-pagination flex justify-center mt-6"})]}):(0,s.jsx)("div",{className:"grid md:grid-cols-1 lg:grid-cols-2 gap-4",children:null===(U=e.activityths)||void 0===U?void 0:null===(W=U.data)||void 0===W?void 0:W.map((e,t)=>(0,s.jsx)(r(),{href:null==e?void 0:e.Register_Url,target:"_blank",children:(0,s.jsxs)("div",{className:"bg-white flex-shrink-0 w-80 border rounded-xl md:flex md:flex-row md:w-full hover:opacity-75 md:h-[200px]",children:[(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)("img",{className:"rounded-t-xl h-48 w-full object-left sm:rounded-s-xl aspect-square object-cover md:w-[288px] md:h-[200px] md:rounded-se-none",src:null==e?void 0:e.Activity_Logo_Banner,alt:null==e?void 0:e.Activity_Topic_TH})}),(0,s.jsxs)("div",{className:"p-4 flex flex-col",children:[(0,s.jsx)("div",{className:"line-clamp-1 text-md font-medium text-left md:line-clamp-3",children:null==e?void 0:e.Activity_Topic_TH}),(0,s.jsxs)("div",{className:"flex mt-1 mb-2 text-gray-500 text-sm space-x-1",children:[null==e?void 0:e.Country_Name_Th,(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsx)("div",{children:null==e?void 0:e.EventFormat})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1 sm:mt-auto",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor",className:"w-4 h-4 text-gray-500",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"m11.54 22.351.07.04.028.016a.76.76 0 0 0 .723 0l.028-.015.071-.041a16.975 16.975 0 0 0 1.144-.742 19.58 19.58 0 0 0 2.683-2.282c1.944-1.99 3.963-4.98 3.963-8.827a8.25 8.25 0 0 0-16.5 0c0 3.846 2.02 6.837 3.963 8.827a19.58 19.58 0 0 0 2.682 2.282 16.975 16.975 0 0 0 1.145.742ZM12 13.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",clipRule:"evenodd"})}),(0,s.jsx)("div",{className:"text-xs text-gray-500line-clamp-1",children:null==e?void 0:e.Activity_Location_TH})]}),(0,s.jsxs)("div",{className:"text-xs mt-1 font-semibold",children:["วันที่จัดกิจกรรม:"," ",(0,c.VT)(null==e?void 0:e.Activity_Start_Date)," ","-"," ",(0,c.VT)(null==e?void 0:e.Activity_End_Date)]}),(0,s.jsxs)("div",{className:"text-xs mt-1 font-semibold",children:["วันที่เปิดรับสมัคร:"," ",(0,c.VT)(null==e?void 0:e.Activity_Start_Regis)," ","-"," ",(0,c.VT)(null==e?void 0:e.Activity_End_Regis)]})]})]})},t))})})})}),(0,s.jsx)(r(),{href:"https://drive.ditp.go.th/th-TH/%E0%B8%AB%E0%B8%99%E0%B9%89%E0%B8%B2%E0%B8%AB%E0%B8%A5%E0%B8%B1%E0%B8%81/%E0%B8%9C%E0%B8%A5%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%84%E0%B9%89%E0%B8%99%E0%B8%AB%E0%B8%B2%E0%B8%81%E0%B8%B4%E0%B8%88%E0%B8%81%E0%B8%A3%E0%B8%A3%E0%B8%A1",target:"_blank",children:(0,s.jsx)("button",{type:"button",className:"w-[246px] h-[53px] border bg-[#0E143B] hover:bg-gradient-to-r from-[#1A1C49] to-[#41B8B9] md:w-[320px] rounded-full mt-4 mb-12",children:(0,s.jsx)("div",{className:"text-center text-white",children:"ดูทั้งหมด"})})})]}),(0,s.jsxs)("div",{className:"relative overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute z-0",style:{backgroundImage:"url('/images/back.png')",backgroundSize:"contain",width:"773px",height:"712px",borderRadius:"50%",maskImage:"radial-gradient(circle, transparent 30%, black 30%, black 70%, transparent 70%)",WebkitMaskImage:"radial-gradient(circle, transparent 30%, black 30%, black 70%, transparent 70%)",overflow:"hidden",left:"-330px",bottom:"-300px",opacity:.8}}),(0,s.jsxs)("div",{className:"max-w-screen-xl mx-auto flex flex-col items-center relative z-10 mt-8",children:[(0,s.jsx)("div",{className:"px-8 text-center text-blue-950 text-[24px] md:text-[44px] font-semibold",children:"องค์ความรู้ด้านการค้าระหว่างประเทศ"}),(0,s.jsx)("div",{className:"overflow-x-auto w-full p-4 mt-4",children:(0,s.jsx)("div",{className:"flex gap-4 md:grid md:gap-4 md:grid-cols-3 xl:grid-cols-4 z-10",children:null===(O=(0,c.IU)(null===(q=e.delveintoteworldknowledge)||void 0===q?void 0:q.data))||void 0===O?void 0:null===(H=O.slice(0,8))||void 0===H?void 0:H.map((e,t)=>{var l,i,a,d;let n=null===(l=e.post_type)||void 0===l?void 0:l.post_type_name,o="blockdit"===n;return"Podcast"===n||"Presentation"===n?(0,s.jsxs)("div",{className:"flex-shrink-0 w-72 md:flex md:flex-col md:w-full bg-white border rounded-lg overflow-hidden cursor-pointer",onClick:e=>{e.preventDefault(),x.W.showDialogFail({message:"There is no data for this content"})},children:[(0,s.jsx)("img",{className:"h-48 w-full object-cover object-end md:h-48 hover:opacity-75",src:(null==e?void 0:null===(d=e.image)||void 0===d?void 0:d.url)||"/images/ditpimage.png",alt:e.title||"Post image"}),(0,s.jsxs)("div",{className:"flex flex-col h-40 justify-between",children:[(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsx)("div",{className:"text-md text-pretty font-medium text-left line-clamp-2 hover:opacity-50",children:e.title}),(0,s.jsx)("div",{className:"mt-1 text-gray-500 text-sm text-left",children:n})]}),(0,s.jsx)("div",{className:"text-gray-500 text-sm text-left p-4",children:(0,c.vc)(e.publish_date||(null==e?void 0:e.current_publish)||e.createdAt,e.locale)})]})]},t):o?(0,s.jsx)(r(),{href:(null==e?void 0:e.link_url)||"",target:"_blank",children:(0,s.jsxs)("div",{className:"flex-shrink-0 w-72 md:flex md:flex-col md:w-full bg-white border rounded-lg overflow-hidden",children:[(0,s.jsx)("img",{className:"h-48 w-full object-cover object-end md:h-48 hover:opacity-75",src:(null==e?void 0:null===(i=e.image)||void 0===i?void 0:i.url)||"/images/ditpimage.png",alt:e.title||"Post image"}),(0,s.jsxs)("div",{className:"flex flex-col h-40 justify-between",children:[(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsx)("div",{className:"text-md text-pretty font-medium text-left line-clamp-2 hover:opacity-50",children:e.title}),(0,s.jsx)("div",{className:"mt-1 text-gray-500 text-sm text-left",children:n})]}),(0,s.jsx)("div",{className:"text-gray-500 text-sm text-left p-4",children:(0,c.vc)(e.publish_date||(null==e?void 0:e.current_publish)||e.createdAt,e.locale)})]})]})},t):(0,s.jsxs)(r(),{href:"/post/post-knowledge/".concat(e.documentId),className:"flex-shrink-0 w-72 md:flex md:flex-col md:w-full bg-white border rounded-lg overflow-hidden",children:[(0,s.jsx)("img",{className:"h-48 w-full object-cover object-top md:h-48 hover:opacity-75",src:(null==e?void 0:null===(a=e.image)||void 0===a?void 0:a.url)||"/images/ditpimage.png",alt:e.title||"Post image"}),(0,s.jsxs)("div",{className:"flex flex-col h-40 justify-between",children:[(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsx)("div",{className:"text-md text-pretty font-medium text-left line-clamp-2 hover:opacity-50",children:e.title}),(0,s.jsx)("div",{className:"mt-1 text-gray-500  text-sm text-left",children:n})]}),(0,s.jsx)("div",{className:"text-gray-500 text-sm text-left p-4",children:(0,c.vc)(e.publish_date||(null==e?void 0:e.current_publish)||e.createdAt,e.locale)})]})]},t)})})}),(0,s.jsx)(r(),{href:"/international-foreign-market#องค์ความรู้ด้านการค้าระหว่างประเทศ",children:(0,s.jsx)("button",{type:"button",className:"w-[246px] h-[53px] border bg-[#0E143B] hover:bg-gradient-to-r from-[#1A1C49] to-[#41B8B9] md:w-[320px] rounded-full mt-4 mb-12",children:(0,s.jsx)("div",{className:"text-center text-white",children:"ดูทั้งหมด"})})})]})]})]})]})})]})]}),"th"!=Y||K?null:(0,s.jsx)(k,{})]})}},50633:function(){},5152:function(e,t,l){e.exports=l(32602)}},function(e){e.O(0,[2275,5675,1468,6308,1289,2888,9774,179],function(){return e(e.s=75557)}),_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.