PageSourceSearch

https://www.dede.go.th/_next/static/chunks/pages/articles/ArticleWithImageItem-bb291b65279e0607.js

js dede.go.th collected 2026-10-01 11:43:14 UTC 9,169 bytes, 1 lines download raw bytes

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.