1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1061],{34228:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/post/partner/trade-association-thai",function(){return a(70943)}])},3632:function(e,t,a){"use strict";a.d(t,{Z:function(){return l}});var s=a(85893),i=a(41664),n=a.n(i),r=a(11163);function l(e){let{paths:t}=e,a=(0,r.useRouter)();return(0,s.jsx)("nav",{className:"text-gray-500 text-sm overflow-x-auto whitespace-nowrap custom-scroll",children:(0,s.jsx)("div",{className:"max-w-screen-xl mx-auto px-4",children:(0,s.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,s.jsx)("img",{src:"/icons/home.png",alt:"Profile",className:"w-4 h-4"}),t.filter(e=>e.label).map((e,i)=>(0,s.jsxs)("div",{className:"flex items-center space-x-2 mt-2",children:[i>0&&(0,s.jsx)("span",{className:"text-gray-400",children:"/"}),i===t.length-1?(0,s.jsx)("span",{className:"text-black font-semibold",children:e.label}):e.link?(0,s.jsx)(n(),{href:e.link,legacyBehavior:!0,locale:a.locale,children:(0,s.jsx)("a",{className:"text-gray-400 hover:text-gray-600",children:e.label})}):(0,s.jsx)("div",{className:"text-gray-400 line-clamp-1",children:e.label})]},i))]})})})}},52467:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});var s=a(85893),i=a(69740);function n(e){let{currentPage:t,totalPages:a,itemsPerPage:n,totalItems:r,setCurrentPage:l,setItemsPerPage:d,handlePageClick:o,disableScroll:c=!1}=e,m=()=>{c||(0,i.UK)()||window.scrollTo({top:0,behavior:"auto"})},u=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:n,onChange:e=>{d(Number(e.target.value)),l(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)*n+1," -"," ",Math.min(t*n,r)," of ",r," ","Posts"]})]}),(0,s.jsxs)("div",{className:"flex md:space-x-2",children:[(0,s.jsxs)("button",{onClick:()=>u(t-1),disabled:1===t,className:"px-3 py-1 border rounded-2xl disabled:opacity-50 flex items-center gap-2",children:[(0,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,a);s++){let i;i=a<=7?s+1:t<=4?s<5?s+1:5===s?"...":a:t>a-4?0===s?1:1===s?"...":a-(6-s):0===s?1:1===s?"...":s<5?t-(3-s):5===s?"...":a,e.push(i)}return e})().map((e,a)=>(0,s.jsx)("button",{onClick:()=>"number"==typeof e?u(e):null,disabled:"..."===e,className:"px-3 py-1 rounded-lg w-8 h-8 flex items-center justify-center ".concat(t===e?"bg-[#0E143B] text-white border-[#0E143B]":"text-[#00000080]"),children:e},a))}),(0,s.jsxs)("button",{onClick:()=>u(t+1),disabled:t===a,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"})})]})]})]})})}},70943:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return v},default:function(){return h}});var s=a(85893),i=a(11163),n=a(41664),r=a.n(n),l=a(3632),d=a(76809),o=a(67294),c=a(52467),m=a(66308),u=a(66561),x=a(3627);a(64172),a(57638),a(96936);var v=!0;function h(e){var t,a,n,v,h,g,p,f,j,b,w,N,y,k,P,_,S,C,E,z,I,L,q,R,B,M,Z,A,O,T;let{locale:D}=(0,i.useRouter)(),[F,U]=(0,o.useState)(e.currentPage),[W,H]=(0,o.useState)(12),[V,$]=(0,o.useState)((null===(a=e.partnerrelated)||void 0===a?void 0:null===(t=a.partner)||void 0===t?void 0:t.data)||[]),[X,K]=(0,o.useState)(0),[G,J]=(0,o.useState)(0),[Q,Y]=(0,o.useState)(!0),[ee,et]=(0,o.useState)((null===(v=e.partnerrelated)||void 0===v?void 0:null===(n=v.government)||void 0===n?void 0:n.data)||[]),[ea,es]=(0,o.useState)(e.currentPage),[ei,en]=(0,o.useState)(e.itemsPerPage),[er,el]=(0,o.useState)(0),[ed,eo]=(0,o.useState)(0),[ec,em]=(0,o.useState)((null===(g=e.partnerrelated)||void 0===g?void 0:null===(h=g.institute)||void 0===h?void 0:h.data)||[]),[eu,ex]=(0,o.useState)(e.currentPage),[ev,eh]=(0,o.useState)(e.itemsPerPage),[eg,ep]=(0,o.useState)(0),[ef,ej]=(0,o.useState)(0),[eb,ew]=(0,o.useState)(!0),[eN,ey]=(0,o.useState)(!0);(0,o.useEffect)(()=>{(async()=>{Y(!0);try{let e={th:{uxwdga90g4otmt5tayndm9la:"partner"},en:{xpgkaqdi6t5pxde91scl6kbe:"partner"},ja:{xlflaidf9sh0wkj2e5aahgsg:"partner"},zh:{uergjg06iw18emogl49xe46a:"partner"},de:{p6h8ypbv7v866191k5avqwri:"partner"}}[D],t=Object.keys(e).find(t=>"partner"===e[t]),a=new URLSearchParams;a.append("filters[category_trade_association][documentId][$in]",t);let s=(await d.hi.getPartnerrelatedcategory(a,D,F,W)).data;s&&s.data&&($(s.data),s.meta&&s.meta.pagination&&(K(s.meta.pagination.total||0),J(s.meta.pagination.pageCount||0)))}catch(e){console.error("Error fetching category 1 data: ",e)}finally{Y(!1)}})()},[D,F,W]),(0,o.useEffect)(()=>{(async()=>{ew(!0);try{let e={th:{e757c0rcvtp465xkzt34lrva:"government"},en:{j53vt1pmyegcgorkbm68ukyq:"government"},ja:{hbnzv0289qt4oblw2x6lgu7b:"government"},zh:{ivd4gwn9q3rm2vcvnoiylikf:"government"},de:{pc67ordvmke6mfc9ecbrn6zk:"government"}}[D],t=Object.keys(e).find(t=>"government"===e[t]),a=new URLSearchParams;a.append("filters[category_trade_association][documentId][$in]",t);let s=(await d.hi.getPartnerrelatedcategory(a,D,ea,ei)).data;et(s.data),el(s.meta.pagination.total||0),eo(s.meta.pagination.pageCount||0)}catch(e){console.error("Error fetching category 2/3 data: ",e)}finally{ew(!1)}})()},[D,ea,ei]),(0,o.useEffect)(()=>{(async()=>{ey(!0);try{let e={th:{c8ycg6punorffkbkohjk8s03:"institute"},en:{tvewuu5jgk00f6y2o9gwexjl:"institute"},ja:{bho0x9wlh9gsq8n59ok6707x:"institute"},zh:{huu1w359arz2ri641rkssbz9:"institute"},de:{zdsm2nsoy58b89heq23s48f8:"institute"}}[D],t=Object.keys(e).find(t=>"institute"===e[t]),a=new URLSearchParams;a.append("filters[category_trade_association][documentId][$in]",t);let s=(await d.hi.getPartnerrelatedcategory(a,D,eu,ev)).data;em(s.data),ep(s.meta.pagination.total||0),ej(s.meta.pagination.pageCount||0)}catch(e){console.error("Error fetching category 2/3 data: ",e)}finally{ey(!1)}})()},[D,eu,ev]),(0,o.useEffect)(()=>{let e=()=>{window.innerWidth<768?H(6):H(12)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,o.useEffect)(()=>{(async()=>{try{var t,a;let s={content:(null===(a=e.message)||void 0===a?void 0:null===(t=a.trade_association)||void 0===t?void 0:t.trade)||"",url:window.location.href,author:"",post_type:"หà¸à¹à¸§à¸¢à¸à¸²à¸à¸à¸±à¸à¸à¸¡à¸´à¸à¸£",publishAt:""};await d.hi.getPageinsights(s)}catch(e){console.error("à¹à¸à¸´à¸à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸à¹à¸à¸à¸²à¸£à¸à¸±à¸à¸à¸¶à¸à¸à¹à¸à¸¡à¸¹à¸¥",e)}})()},[]);let ek=[{label:(null===(f=e.message)||void 0===f?void 0:null===(p=f.HomePage)||void 0===p?void 0:p.home)||"Home",link:"/"},{label:(null===(b=e.message)||void 0===b?void 0:null===(j=b.trade_association)||void 0===j?void 0:j.trade)||"Trade Association"}],eP=()=>(0,s.jsx)("div",{className:"w-full flex justify-center items-center min-h-[300px]",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-gray-900 mx-auto"}),(0,s.jsx)("p",{className:"mt-2",children:"à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸à¸à¹à¸à¸¡à¸¹à¸¥..."})]})}),e_=e=>{var t,a,s,i;return e&&e.image&&((null===(s=e.image)||void 0===s?void 0:null===(a=s.formats)||void 0===a?void 0:null===(t=a.thumbnail)||void 0===t?void 0:t.url)||(null===(i=e.image)||void 0===i?void 0:i.url))||"/images/ditpimage.png"};return(0,s.jsxs)("div",{className:"pt-14 pb-16",style:{backgroundColor:"#ffffff",backgroundImage:"url('/images/bg.jpg')",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"repeat"},children:[(0,s.jsx)("div",{className:"flex items-center justify-center bg-fixed bg-cover",style:{backgroundImage:"url(".concat((null===(P=e.cover)||void 0===P?void 0:null===(k=P.data)||void 0===k?void 0:null===(y=k.image_cover_trade_association)||void 0===y?void 0:null===(N=y.formats)||void 0===N?void 0:null===(w=N.large)||void 0===w?void 0:w.url)||(null===(z=e.cover)||void 0===z?void 0:null===(E=z.data)||void 0===E?void 0:null===(C=E.image_cover_trade_association)||void 0===C?void 0:null===(S=C.formats)||void 0===S?void 0:null===(_=S.medium)||void 0===_?void 0:_.url)||"/images/default-cover.jpg",")"),height:"193px"},children:(0,s.jsx)("h1",{className:"text-white text-xl md:text-[40px]",children:(null===(L=e.message)||void 0===L?void 0:null===(I=L.trade_association)||void 0===I?void 0:I.trade)||"Trade Association"})}),(0,s.jsx)(m.Z,{title:"หà¸à¹à¸§à¸¢à¸à¸²à¸à¸à¸±à¸à¸à¸¡à¸´à¸à¸£/หà¸à¹à¸§à¸¢à¸à¸²à¸à¸à¸µà¹à¹à¸à¸µà¹à¸¢à¸§à¸à¹à¸à¸ - à¸à¸£à¸¡à¸ªà¹à¸à¹à¸ªà¸£à¸´à¸¡à¸à¸²à¸£à¸à¹à¸²à¸£à¸°à¸«à¸§à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨",description:"หà¸à¹à¸§à¸¢à¸à¸²à¸à¸à¸±à¸à¸à¸¡à¸´à¸à¸£/หà¸à¹à¸§à¸¢à¸à¸²à¸à¸à¸µà¹à¹à¸à¸µà¹à¸¢à¸§à¸à¹à¸à¸ หà¸à¹à¸§à¸¢à¸à¸²à¸à¸à¸±à¸à¸à¸¡à¸´à¸à¸£",breadcrumbs:ek}
1),(0,s.jsx)("div",{className:"sticky top-[60px] bg-white z-20",children:(0,s.jsx)(l.Z,{paths:ek})}),(0,s.jsxs)("div",{className:"max-w-screen-xl mx-auto px-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mt-8 text-2xl md:text-[40px] font-semibold text-gradient text-center",children:null===(R=e.message)||void 0===R?void 0:null===(q=R.trade_association)||void 0===q?void 0:q.partner_agencies}),(0,s.jsx)(u.tq,{modules:[x.W_,x.tl],slidesPerView:1,pagination:{clickable:!0,el:".custom-swiper-pagination"},spaceBetween:30,navigation:!0,onSlideChange:e=>U(e.activeIndex+1),className:"w-full",children:Array.from({length:G},(e,t)=>(0,s.jsx)(u.o5,{children:(0,s.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 xl:grid-cols-6 gap-y-10 min-h-[400px] items-start mt-6",children:V.map((e,t)=>(0,s.jsx)(r(),{href:e.link||"#",target:"_blank",children:(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)("img",{className:"w-[120px] h-[120px] object-contain",src:e_(e),alt:e.name||"Partner"})}),(0,s.jsx)("div",{className:"text-center md:w-[200px] line-clamp-2",children:e.name||"Partner name"})]})},t))})},t))}),(0,s.jsx)("div",{className:"custom-swiper-pagination flex justify-center mt-4"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mt-8 mb-4 text-2xl md:text-[40px] font-semibold text-gradient text-center",children:(null===(M=e.message)||void 0===M?void 0:null===(B=M.trade_association)||void 0===B?void 0:B.related_agencies)||"Related Agencies"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-xl md:text-2xl bg-[#D7D9F0] p-2",children:null===(A=e.message)||void 0===A?void 0:null===(Z=A.trade_association)||void 0===Z?void 0:Z.federation}),eb?(0,s.jsx)(eP,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"grid grid-cols-1",children:ee&&ee.length>0?ee.map((t,a)=>{var i,n;return(0,s.jsx)(r(),{href:(null==t?void 0:t.link)||"#",target:"_blank",children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between md:items-center mt-4 border-b-2 pb-6",children:[(0,s.jsxs)("div",{className:"flex flex-row justify-center items-center space-x-2",children:[(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)("img",{className:"w-[80px] object-contain h-[80px]",src:e_(t),alt:t.name||"Partner"})}),(0,s.jsx)("div",{children:t.name||"Partner name"})]}),(0,s.jsx)("button",{type:"button",className:"hidden w-[240px] h-[42px] md:h-[53px] border-2 border-[#10143C] rounded-full mt-4 md:mt-0 md:block",children:(0,s.jsx)("div",{className:"text-center",children:(null===(n=e.message)||void 0===n?void 0:null===(i=n.trade_association)||void 0===i?void 0:i.button)||"View"})})]})},a)}):(0,s.jsx)("div",{className:"w-full text-center py-10",children:"à¹à¸¡à¹à¸à¸à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸à¸«à¸¡à¸§à¸à¸«à¸¡à¸¹à¹à¸à¸µà¹"})}),er>10&&(0,s.jsx)(c.Z,{currentPage:ea,totalPages:ed,itemsPerPage:ei,totalItems:er,setCurrentPage:es,setItemsPerPage:en,handlePageClick:e=>{es(e)},disableScroll:!0})]})]}),(0,s.jsxs)("div",{className:"mt-8",children:[(0,s.jsx)("div",{className:"text-xl md:text-2xl bg-[#D7D9F0] p-2",children:null===(T=e.message)||void 0===T?void 0:null===(O=T.trade_association)||void 0===O?void 0:O.institute}),eN?(0,s.jsx)(eP,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"grid grid-cols-1",children:ec&&ec.length>0?ec.map((t,a)=>{var i,n;return(0,s.jsx)(r(),{href:(null==t?void 0:t.link)||"#",target:"_blank",children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between md:items-center mt-4 border-b-2 pb-6",children:[(0,s.jsxs)("div",{className:"flex flex-row justify-center items-center space-x-2",children:[(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)("img",{className:"w-[80px] object-contain h-[80px]",src:e_(t),alt:t.name||"Partner"})}),(0,s.jsx)("div",{children:t.name||"Partner name"})]}),(0,s.jsx)("button",{type:"button",className:"hidden w-[240px] h-[42px] md:h-[53px] border-2 border-[#10143C] rounded-full mt-4 md:mt-0 md:block",children:(0,s.jsx)("div",{className:"text-center",children:(null===(n=e.message)||void 0===n?void 0:null===(i=n.trade_association)||void 0===i?void 0:i.button)||"View"})})]})},a)}):(0,s.jsx)("div",{className:"w-full text-center py-10",children:"à¹à¸¡à¹à¸à¸à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸à¸«à¸¡à¸§à¸à¸«à¸¡à¸¹à¹à¸à¸µà¹"})}),eg>10&&(0,s.jsx)(c.Z,{currentPage:eu,totalPages:ef,itemsPerPage:ev,totalItems:eg,setCurrentPage:ex,setItemsPerPage:eh,handlePageClick:e=>{ex(e)},disableScroll:!0})]})]})]})]})]})}},57638:function(){}},function(e){e.O(0,[2275,1468,6308,1289,2888,9774,179],function(){return e(e.s=34228)}),_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.