1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8930],{97954:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/post/government/[id]",function(){return t(46205)}])},46205:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return u},default:function(){return l}});var r=t(85893);t(11163),t(66308);var o=t(3632),a=t(76809),d=t(66392),i=t(67294),u=!0;function l(e){var n,t,u,l,c;let v=async(e,n)=>{try{await a.hi.getgovernmentnum(e,{data:{number_share:n+1}})}catch(e){console.error("Error updating number_share:",e)}},m=async()=>{var n;let t=null===(n=e.government.data)||void 0===n?void 0:n.documentId;if(t)try{await v(t,e.government.data.number_share)}catch(e){console.error("Error in handleShareCount:",e)}},s=async(e,n)=>{try{await a.hi.getgovernmentnum(e,{data:{number_read:n+1}})}catch(e){console.error("Error updating number_read:",e)}};(0,i.useEffect)(()=>{var n;(null==e?void 0:e.preview)!==!0&&(null===(n=e.government.data)||void 0===n?void 0:n.documentId)&&s(e.government.data.documentId,e.government.data.number_read)},[null==e?void 0:e.preview,null===(n=e.government.data)||void 0===n?void 0:n.documentId]),(0,i.useEffect)(()=>{var n;(null==e?void 0:e.preview)!==!0&&(null===(n=e.government.data)||void 0===n?void 0:n.documentId)&&(async()=>{try{var n,t;let r={documentId_page:e.government.data.documentId,content:e.government.data.title,url:window.location.href,author:null===(n=e.government.data.createdBy)||void 0===n?void 0:n.username,post_type:"à¹à¸£à¸·à¹à¸à¸",publishAt:null===(t=e.government.data)||void 0===t?void 0:t.createdAt};await a.hi.getPageinsights(r)}catch(e){console.error("à¹à¸à¸´à¸à¸à¹à¸à¸à¸´à¸à¸à¸¥à¸²à¸à¹à¸à¸à¸²à¸£à¸à¸±à¸à¸à¸¶à¸à¸à¹à¸à¸¡à¸¹à¸¥",e)}})()},[e.preview,null===(t=e.government.data)||void 0===t?void 0:t.documentId]);let g=[{label:"หà¸à¹à¸²à¸«à¸¥à¸±à¸",link:"/"},{label:"ศูà¸à¸¢à¹à¸à¹à¸à¸¡à¸¹à¸¥à¸à¹à¸²à¸§à¸ªà¸²à¸£à¸£à¸²à¸à¸à¸²à¸£",link:"/government-information-center"},{label:e.government.data.title}];return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"pt-16 pb-16",style:{backgroundColor:"#ffffff",backgroundImage:"url('/images/bg.jpg')",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"repeat"},children:[(0,r.jsx)("div",{className:"sticky top-[60px] bg-white z-20",children:(0,r.jsx)(o.Z,{paths:g})}),(0,r.jsx)(d.Z,{title:(null===(l=e.government)||void 0===l?void 0:null===(u=l.data)||void 0===u?void 0:u.title)||"ศูà¸à¸¢à¹à¸à¹à¸à¸¡à¸¹à¸¥à¸à¹à¸²à¸§à¸ªà¸²à¸£à¸£à¸²à¸à¸à¸²à¸£",post:e.government.data,category:null===(c=e.government.data)||void 0===c?void 0:c.category_government_information_center,onShare:m,paths:g})]})})}}},function(e){e.O(0,[2275,8341,5675,6201,6308,1289,9187,2888,9774,179],function(){return e(e.s=97954)}),_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.