1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8642],{48584:function(t,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/articles/ArticleWithImageItem",function(){return i(58882)}])},86986:function(t,e,i){"use strict";i.d(e,{AP:function(){return d},Jt:function(){return h},VF:function(){return y},aZ:function(){return w},ao:function(){return f},hS:function(){return v},hh:function(){return N},pP:function(){return p},r$:function(){return o},sT:function(){return a},un:function(){return s},w1:function(){return u},wn:function(){return k},xP:function(){return m}});let n=i(30381),r=["/subsection?","/section?","/subcategory?","/category?","/uploads/"],a=t=>{let e=!1;if("string"!=typeof t)return e;for(let i of r)if(e=t.includes(i))break;return e},l=t=>function(e,i){return e[t]<i[t]?-1:1},o=t=>function(e,i){return e[t]<i[t]?1:e[t]>i[t]?-1:1},s=t=>{var e,i=0;if(0===t.length)return i;for(e=0;e<t.length;e++)i=(i<<5)-i+t.charCodeAt(e)|0;return i},c=t=>{let e=[];return t.forEach(t=>{let i=t.attributes;i.id=t.id,e.push(i)}),e},u=t=>{var e;if(!t)return"";let i=t.attributes;i&&(i.id=t.id,t=i);let n=null==t?void 0:null===(e=t.article_type)||void 0===e?void 0:e.data;return(null==n?void 0:n.id)===5&&a(t.short_content)&&t.short_content?"redirect?id="+t.id:{pathname:(null==n?void 0:n.id)===4?"pdf":(null==n?void 0:n.id)===5?"redirect":"articles",query:{id:t.id}}},d=t=>{var e,i;if(!t)return"";let n=t.attributes;return n&&(n.id=t.id,t=n),(null==t?void 0:null===(e=t.article_type)||void 0===e?void 0:e.data.id)===4||(null==t?void 0:null===(i=t.article_type)||void 0===i?void 0:i.data.id)===5?"_blank":null},p=(t,e)=>{if(Array.isArray(t)){let i=c(t),n=[];return(i=i.sort(l(e))).forEach(t=>{n.push({id:t.id,attributes:t})}),n}return t},g=new Map;g.set(1,{fullName:"มà¸à¸£à¸²à¸à¸¡",shortName:"ม.à¸."}),g.set(2,{fullName:"à¸à¸¸à¸¡à¸ าà¸à¸±à¸à¸à¹",shortName:"à¸.à¸."}),g.set(3,{fullName:"มีà¸à¸²à¸à¸¡",shortName:"มี.à¸."}),g.set(4,{fullName:"à¹à¸¡à¸©à¸²à¸¢à¸",shortName:"à¹à¸¡.ย."}),g.set(5,{fullName:"à¸à¸¤à¸©à¸ าà¸à¸¡",shortName:"à¸.à¸."}),g.set(6,{fullName:"มิà¸à¸¸à¸à¸²à¸¢à¸",shortName:"มิ.ย."}),g.set(7,{fullName:"à¸à¸£à¸à¸à¸²à¸à¸¡",shortName:"à¸.à¸."}),g.set(8,{fullName:"สิà¸à¸«à¸²à¸à¸¡",shortName:"ส.à¸."}),g.set(9,{fullName:"à¸à¸±à¸à¸¢à¸²à¸¢à¸",shortName:"à¸.ย."}),g.set(10,{fullName:"à¸à¸¸à¸¥à¸²à¸à¸¡",shortName:"à¸.à¸."}),g.set(11,{fullName:"à¸à¸¤à¸¨à¸à¸´à¸à¸²à¸¢à¸",shortName:"à¸.ย."}),g.set(12,{fullName:"à¸à¸±à¸à¸§à¸²à¸à¸¡",shortName:"à¸.à¸."});let _=()=>g,m=t=>{let e=Date.parse(t);if(isNaN(e))return t;let i=new Date(e),n=_(),r=i.getDate(),a=i.getMonth()+1,l=i.getFullYear(),o=n.get(a).shortName;return r+" "+o+" "+(l+543)},f=t=>n(t).format("YYYY-MM-DD HH:mm:ss"),y=()=>{let t=h();return[{section_id:3,key:"executivenews",img:"executivenews.png",title:"à¸à¹à¸²à¸§à¸à¸¹à¹à¸à¸£à¸´à¸«à¸²à¸£"},{section_id:5,key:"regionnews",img:"regionnews.png",title:"à¸à¹à¸²à¸§à¸«à¸à¹à¸§à¸¢à¸à¸²à¸à¸ ูมิภาà¸"},{section_id:1,key:"km",img:"km.png",title:"à¸à¸à¸à¹à¸à¸§à¸²à¸¡à¸£à¸¹à¹"},{section_id:9,key:"hrnews",img:"hrnews.png",title:"à¸à¹à¸²à¸§à¸ªà¸¡à¸±à¸à¸£à¸à¸²à¸"},{section_id:2,key:"energynews",img:"energynews.png",title:"สรุà¸à¸à¹à¸²à¸§à¸à¸¥à¸±à¸à¸à¸²à¸à¸à¸£à¸°à¸à¸³à¸§à¸±à¸"},{section_id:15,key:"pc_summary",img:"pc_summary.png",title:"สรุà¸à¸à¸¥à¸à¸²à¸£à¸à¸³à¹à¸à¸´à¸à¸à¸²à¸£à¸à¸±à¸à¸à¸·à¹à¸à¸à¸±à¸à¸à¹à¸²à¸"},{section_id:25,key:"srv_stat",img:"srv_stat.png",title:"สà¸à¸´à¸à¸´à¸à¸¥à¸±à¸à¸à¸²à¸ (Energy Statistics)"},...t]},h=()=>[{section_id:0,key:"multimedia",img:"multimedia.png",title:"สืà¹à¸ Multimedia"},{section_id:0,key:"masterplan",img:"masterplan.png",title:"à¹à¸à¸-à¸à¸¥à¸à¸²à¸£à¸à¸³à¹à¸à¸´à¸à¸à¸²à¸"},{section_id:0,key:"annualreports",img:"annualreport.png",title:"รายà¸à¸²à¸à¸à¸£à¸°à¸à¸³à¸à¸µ"},{section_id:0,key:"ebook",img:"ebook.png",title:"E-BOOK"}],w=()=>[{section_id:4,key:"ethics",img:"ethics.png",title:"à¸à¸²à¸£à¸à¸³à¹à¸à¸´à¸à¸à¸²à¸à¸à¹à¸²à¸à¸à¸²à¸£à¸ªà¹à¸à¹à¸ªà¸£à¸´à¸¡à¸à¸£à¸´à¸¢à¸à¸£à¸£à¸¡à¸à¸à¸ à¸à¸."},{section_id:23,key:"pc_contract",img:"pc_contract.png",title:"สัà¸à¸à¸²"},{section_id:76,key:"srv_energy",img:"srv_energy.png",title:"à¸à¸²à¸£à¸à¸à¸¸à¸£à¸±à¸à¸©à¹à¸à¸¥à¸±à¸à¸à¸²à¸"}],k=()=>[{section_id:83,key:"plan-progress",img:"policy.png",title:"à¹à¸à¸-à¸à¸¥à¸à¸²à¸£à¸à¸³à¹à¸à¸´à¸à¸à¸²à¸à¹à¸¥à¸°à¸à¸·à¹à¸à¹"},{section_id:82,key:"policy",img:"policy.png",title:"à¸à¸£à¸°à¸à¸²à¸¨à¸à¹à¸¢à¸à¸²à¸¢à¸à¸£à¸¡"},{section_id:8,key:"auctionnews",img:"auctionnews.png",title:"รวมà¸à¸£à¸°à¸à¸²à¸¨à¸à¸²à¸¢à¸à¸à¸à¸à¸¥à¸²à¸"},{section_id:81,key:"prnews",img:"prnews.png",title:"à¸à¹à¸²à¸§à¸à¸£à¸°à¸à¸²à¸ªà¸±à¸¡à¸à¸±à¸à¸à¹"},{section_id:14,key:"pc_masterplan",img:"pc_masterplan.png",title:"à¹à¸à¸à¸à¸±à¸à¸à¸·à¹à¸à¸à¸±à¸à¸à¹à¸²à¸"},{section_id:16,key:"pc_draft",img:"pc_draft.png",title:"à¸à¸£à¸°à¸à¸²à¸¨à¸£à¹à¸²à¸ TOR"},{section_id:17,key:"pc_news",img:"pc_news.png",title:"à¸à¸£à¸°à¸à¸²à¸¨à¸à¸±à¸à¸à¸·à¹à¸-à¸à¸±à¸à¸à¹à¸²à¸"},{section_id:18,key:"pc_yearplan",img:"pc_yearplan.png",title:"à¸à¸£à¸°à¸à¸²à¸¨à¹à¸à¸à¸à¸±à¸à¸à¸·à¹à¸à¸à¸±à¸à¸à¹à¸²à¸ à¸à¸²à¸¡ à¸à¸£à¸."},{section_id:19,key:"pc_pricelist",img:"pc_pricelist.png",title:"à¸à¸£à¸°à¸à¸²à¸¨à¸£à¸²à¸à¸²à¸à¸¥à¸²à¸"},{section_id:20,key:"pc_announce",img:"pc_announce.png",title:"à¸à¸£à¸°à¸à¸²à¸¨à¸à¸¥-รายà¸à¸·à¹à¸ "},{section_id:21,key:"pc_blacklist",img:"pc_blacklist.png",title:"à¸à¸£à¸°à¸à¸²à¸¨à¸£à¸²à¸¢à¸à¸·à¹à¸à¸à¸¹à¹à¸à¸´à¹à¸à¸à¸²à¸"}
1,{section_id:22,key:"pc_blcancel",img:"pc_blcancel.png",title:"à¹à¸à¸´à¸à¸à¸à¸à¸£à¸²à¸¢à¸à¸·à¹à¸à¸à¸¹à¹à¸à¸´à¹à¸à¸à¸²à¸"},{section_id:10,key:"present",img:"present.png",title:"à¸à¸³à¹à¸ªà¸à¸à¸à¸¥à¸à¸²à¸"},{section_id:11,key:"hrnotice",img:"hrnotice.png",title:"à¸à¸£à¸°à¸à¸²à¸¨à¹à¸¥à¸°à¸à¸³à¸ªà¸±à¹à¸à¸à¸¥à¸¸à¹à¸¡à¸à¸£à¸´à¸«à¸²à¸£à¸à¸£à¸±à¸à¸¢à¸²à¸à¸£à¸à¸¸à¸à¸à¸¥"},{section_id:13,key:"finance",img:"finance.png",title:"รายà¸à¸²à¸à¸à¸à¸à¸à¸¹à¹à¸ªà¸à¸à¸à¸±à¸à¸à¸µà¹à¸¥à¸°à¸£à¸²à¸¢à¸à¸²à¸à¸à¸²à¸£à¹à¸à¸´à¸à¸à¸£à¸°à¸à¸³à¸à¸µ"},{section_id:26,key:"law_act",img:"law_act.png",title:"à¸à¸£à¸°à¸£à¸²à¸à¸à¸±à¸à¸à¸±à¸à¸´"},{section_id:27,key:"law_decree",img:"law_decree.png",title:"à¸à¸£à¸°à¸£à¸²à¸à¸à¸¤à¸©à¸à¸µà¸à¸²"},{section_id:28,key:"law_regulation",img:"law_regulation.png",title:"à¸à¸à¸à¸£à¸°à¸à¸£à¸§à¸"},{section_id:29,key:"law_announce",img:"law_announce.png",title:"à¸à¸£à¸°à¸à¸²à¸¨à¸ าà¸à¸£à¸±à¸à¹à¸¥à¸°à¸£à¸°à¹à¸à¸µà¸¢à¸"},{section_id:44,key:"public_download",img:"public_download.png",title:"รายà¸à¸²à¸à¹à¸à¸à¸ªà¸²à¸£à¹à¸à¸¢à¹à¸à¸£à¹ (Download center)"}],v=(t,e,i)=>Array.from({length:(e-t)/i+1},(e,n)=>t+n*i),N=t=>{if(t){var e,i;return null==t.attributes.article_type?t.attributes.short_content:(null===(e=t.attributes.article_type)||void 0===e?void 0:null===(i=e.data)||void 0===i?void 0:i.id)===5?t.attributes.title:t.attributes.short_content}}},22125:function(t,e,i){"use strict";i.d(e,{V:function(){return o},Z:function(){return s}});var n=i(85893),r=i(86986),a=i(84433),l=i(70594);let o=async t=>{let e={};try{(e=await (await l.Z.get("".concat(a.UW,"/api/articles?filters[id][$eq]=").concat(t,"?sort=id%3Adesc&populate=*"))).data.data[0]).atr=e.attributes}catch(i){console.log(i)}return e},s=(t,e,i)=>{let a;if(!t)return null;let l=t.publish_date,o=new Date(l),s=new Date,c=!1,u=!!(null==i?void 0:i.overrideShowDate),d=(null==t?void 0:t.is_disable_show_date)&&!u;(null==e?void 0:e.setting_value)&&o&&(a=Math.abs(s.getTime()-o.getTime())/36e5,c=e.setting_value>a);let p="";return p=(p=(c?"New ":"")+(1==t.is_hot_topic?" Hot":"")).trim(),(0,n.jsxs)(n.Fragment,{children:[!(null==i?void 0:i.disablePublishDate)&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("span",{children:d?"":" ("+(0,r.xP)(o)+")"})}),(0,n.jsx)("span",{style:{color:"red",textDecoration:"none",fontSize:"12px",display:"inline-block",verticalAlign:"top",paddingLeft:"4px"},children:p})]})}},77671:function(t,e,i){"use strict";i.d(e,{E:function(){return u}});var n=i(70594),r=i(84433);let a="settingObjectFlag",l=async()=>{let t="".concat(r.UW,"/api/Settings?"),e=await n.Z.get(t+="pagination[pageSize]=100&sort=id%3Adesc&populate=*"),i=new Date,l={};l.data=e.data.data,l.dataDate=i;let o=JSON.stringify(l);localStorage.setItem(a,o)},o=async()=>JSON.parse(localStorage.getItem(a)),s=async(t,e)=>{let i=!1,n=!!e;if(!n)return i;let r=null==e?void 0:e.dataDate;r=new Date(r);let a=new Date,l=r.getTime()+36e5,o=!l||l<a.getTime(),s=!1,c=e.data;if(c&&t){for(let u of c)if(s=u.id==t)break}return t||(s=!0),i=n&&!o&&s},c=async t=>{let e=await o();return await s(t,e)||(await l(),e=await o()),e},u=async t=>{let e=(await c(t)).data,i=null;for(let n of e)if(n.id==t){i=n;break}return i}},9008:function(t,e,i){t.exports=i(83121)},84433:function(t){"use strict";t.exports=JSON.parse('{"UW":"https://www.dede.go.th"}')}},function(t){t.O(0,[4885,1876,1664,594,5675,2175,8882,9774,2888,179],function(){return t(t.s=48584)}),_N_E=t.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.