PageSourceSearch

https://mot.go.th/_next/static/chunks/pages/departments/[slug]/content/Duty/ItemDuty-0452c876a5b2f1bb.js

js mot.go.th collected 2026-09-24 21:43:08 UTC 15,077 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8476],{41899:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;var r=o(n(64938)),a=n(85893);t.Z=(0,r.default)((0,a.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},60802:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=r?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}o.default=e,n&&n.set(e,o)}(n(67294));var r=o(n(64938)),a=n(85893);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.Z=(0,r.default)((0,a.jsx)("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"}),"Facebook")},99929:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;var r=o(n(64938)),a=n(85893);t.Z=(0,r.default)((0,a.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"FileDownload")},11359:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;var r=o(n(64938)),a=n(85893);t.Z=(0,r.default)((0,a.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share")},25084:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var c=r?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}o.default=e,n&&n.set(e,o)}(n(67294));var r=o(n(64938)),a=n(85893);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.Z=(0,r.default)((0,a.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"}),"Twitter")},22961:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;var r=o(n(64938)),a=n(85893);t.Z=(0,r.default)((0,a.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},20640:function(e,t,n){"use strict";var o=n(11742),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,c,s,l,u=!1;t||(t={}),n=t.debug||!1;try{if(i=o(),c=document.createRange(),s=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),"undefined"===typeof o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=r[t.format]||r.default;window.clipboardData.setData(a,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(l),c.selectNodeContents(l),s.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}
1finally{s&&("function"==typeof s.removeRange?s.removeRange(c):s.removeAllRanges()),l&&document.body.removeChild(l),i()}return u}},93162:function(e,t,n){var o,r,a;r=[],o=function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function o(e,t,n){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){s(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(o){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,c=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!c?function(e,t,n){var c=i.URL||i.webkitURL,s=document.createElement("a");t=t||e.name||"download",s.download=t,s.rel="noopener","string"==typeof e?(s.href=e,s.origin===location.origin?a(s):r(s.href)?o(e,t,n):a(s,s.target="_blank")):(s.href=c.createObjectURL(e),setTimeout((function(){c.revokeObjectURL(s.href)}),4e4),setTimeout((function(){a(s)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,i){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,i),n);else if(r(e))o(e,n,i);else{var c=document.createElement("a");c.href=e,c.target="_blank",setTimeout((function(){a(c)}))}}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return o(e,t,n);var a="application/octet-stream"===e.type,s=/constructor/i.test(i.HTMLElement)||i.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&s||c)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},u.readAsDataURL(e)}else{var d=i.URL||i.webkitURL,f=d.createObjectURL(e);r?r.location=f:location.href=f,r=null,setTimeout((function(){d.revokeObjectURL(f)}),4e4)}});i.saveAs=s.saveAs=s,e.exports=s},void 0===(a="function"===typeof o?o.apply(t,r):o)||(e.exports=a)},2892:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/departments/[slug]/content/Duty/ItemDuty",function(){return n(53483)}])},9547:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var o=n(85893),r=n(67294),a=n(80822),i=n(67720),c=n(22961),s=n(11359),l=n(99929),u=n(41664),d=n(93162),f=n(50657),p=n(6514),x=n(37645),h=n(15861),v=n(16628),m=n(46574),g=(n(25675),n(41899)),y=n(20640),w=n.n(y),b=n(11163),j=n(60802),k=n(25084),C=n(11752);function Z(e){var t=(0,C.default)().publicRuntimeConfig,n=(0,r.useState)({copied:!1}),i=n[0],c=n[1],s=(0,r.useState)(e.link),l=s[0],u=(s[1],(0,b.useRouter)());return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(f.Z,{maxWidth:"sm",fullWidth:!0,onClose:function(){e.DialogSocialClose(!1)},open:e.OpenSocial,sx:{filter:+t.DARK_MODE?"grayscale(100%)":"none"},children:[(0,o.jsx)(x.Z,{sx:{display:"flex",justifyContent:"center",paddingTop:5},children:"th"===u.locale?"\u0e41\u0e0a\u0e23\u0e4c\u0e44\u0e1b\u0e17\u0e35\u0e48":"Share to"}),(0,o.jsxs)(p.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",paddingBottom:5},children:[(0,o.jsx)(a.Z,{children:(0,o.jsx)("a",{href:"https://www.facebook.com/sharer/sharer.php?u=".concat(e.link),target:"_blank",children:(0,o.jsxs)(a.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",color:"#3962ad",":hover":{".MuiTypography-root":{width:"100%",opacity:"1"}}},children:[" ",(0,o.jsx)(h.Z,{sx:{width:"0%",whiteSpace:"pre",opacity:"0",transition:".5s",fontSize:"1.2rem",display:{sm:"block",xs:"none"}},children:"Facebook"}),(0,o.jsx)(j.Z,{sx:{marginLeft:"10px",fontSize:"3rem"}})]})})}),(0,o.jsx)(a.Z,{sx:{marginLeft:"10px"},children:(0,o.jsx)("a",{href:"https://twitter.com/share?url=".concat(e.link),target:"_blank",children:(0,o.jsxs)(a.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",color:"#31bdf3",":hover":{".MuiTypography-root":{width:"100%",opacity:"1"}}},children:[(0,o.jsx)(h.Z,{sx:{width:"0%",opacity:"0",whiteSpace:"pre",transition:".5s",fontSize:"1.2rem",display:{sm:"block",xs:"none"}},children:"Twitter"}),(0,o.jsx)(k.Z,{sx:{marginLeft:"10px",fontSize:"3rem"}})]})})}),(0,o.jsxs)(a.Z,{onClick:function(){w()(l),c({copied:!0}),e.DialogSocialClose(!1),setTimeout((function(){c({copied:!1})}),2e3)},sx:{marginLeft:"10px",display:"flex",justifyContent:"center",alignItems:"center",color:"#7a7a7a",cursor:"pointer",":hover":{".MuiTypography-root":{width:"100%",opacity:"1"}}},children:[(0,o.jsx)(h.Z,{sx:{width:"0%",opacity:"0",transition:".5s",whiteSpace:"pre",fontSize:"1.2rem",display:{sm:"block",xs:"none"}},children:"th"===u.locale?"\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e25\u0e34\u0e07\u0e01\u0e4c":"Copy Link"})," ",(0,o.jsx)(g.Z,{sx:{marginLeft:"10px",fontSize:"3rem"}})]})]})]}),(0,o.jsx)(v.Z,{in:i.copied,children:(0,o.jsx)(a.Z,{sx:{color:"#fff",position:"fixed",bottom:"100px",left:"0",width:"100%",textAlign:"center",zIndex:"100"},children:(0,o.jsx)(m.Z,{maxWidth:"md",children:(0,o.jsxs)(h.Z,{sx:{background:"#000000a1",padding:"5px",borderRadius:"25px"},children:["th"===u.locale?"\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e25\u0e34\u0e07\u0e01\u0e4c : ":"Copy Link : ",l]})})})})]})}function S(e){var t=e.link,n=e.name,f=e.setView,p=e.setDownloadCount,x=e.setId,h=e.id,v=(0,r.useState)({copied:!1}),m=v[0],g=(v[1],(0,r.useState)(!1)),y=g[0],w=g[1];return(0,o.jsxs)(a.Z,{sx:{color:"#f9ac19",display:"flex",alignItems:"center"},children:[(0,o.jsx)(u.default,{href:t||"/",children:(0,o.jsx)("a",{target:"_blank",style:{display:"flex",alignItems:"center"},"aria-label":"\u0e14\u0e39\u0e40\u0e2d\u0e01\u0e2a\u0e32\u0e23 PDF (\u0e40\u0e1b\u0e34\u0e14\u0e43\u0e19\u0e41\u0e17\u0e47\u0e1a\u0e43\u0e2b\u0e21\u0e48)",rel:"noopener noreferrer",onClick:function(){f(!0),x(h)},children:(0,o.jsx)(c.Z,{sx:{color:"#fdb913",margin:"0 5px"}})})}),(0,o.jsx)(i.Z,{orientation:"vertical",flexItem:!0}),(0,o.jsx)(s.Z,{sx:{margin:"0 5px",cursor:"pointer",color:m.copied?"#000":"#f9ac19"},onClick:function(){return w(!0)}}),(0,o.jsx)(i.Z,{orientation:"vertical",flexItem:!0}),(0,o.jsx)(l.Z,{onClick:function(){(0,d.saveAs)(t,n),p(!0),x(h)},sx:{margin:"0 5px",cursor:"pointer"}}),(0,o.jsx)(Z,{OpenSocial:y,DialogSocialClose:function(e){w(e)},link:t})]})}},78498:function(e,t,n){"use strict";function o(e){var t=new Date(e),n=t.getDate(),o=t.getMonth(),r=t.getFullYear();return"".concat(n," ").concat(["\u0e21.\u0e04.","\u0e01.\u0e1e.","\u0e21\u0e35.\u0e04.","\u0e40\u0e21.\u0e22.","\u0e1e.\u0e04.","\u0e21\u0e34.\u0e22.","\u0e01.\u0e04.","\u0e2a.\u0e04.","\u0e01.\u0e22.","\u0e15.\u0e04.","\u0e1e.\u0e22.","\u0e18.\u0e04."][o]," ").concat(r+543)}n.d(t,{Z:function(){return o}})},53483:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var o=n(85893),r=n(80822),a=n(15861),i=n(67294),c=n(22961),s=n(93877),l=n(9547),u=n(78498),d=n(9473),f=n(9669),p=n.n(f),x=n(99929);function h(e){var t,n,f=e.doc,h=(0,d.v9)((function(e){return e.sizeFont.value})),v=(0,i.useState)(!1),m=v[0],g=v[1],y=(0,i.useState)(!1),w=y[0],b=y[1],j=(0,i.useState)(""),k=j[0],C=j[1];return(0,i.useEffect)((function(){m&&(p().get((0,s.p)("/document/".concat(k,"/action-view"))).then((function(e){return console.log(e)})),g(!1)),w&&(p().get((0,s.p)("/document/".concat(k,"/action-download"))).then((function(e){return console.log(e)})),b(!1))}),[m,w,k]),(0,o.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.default",padding:"10px",borderRadius:"5px"},children:[(0,o.jsxs)(r.Z,{sx:{display:"flex"},children:[(0,o.jsx)("img",{src:"/forder1.png",alt:"forder1",width:60,height:60}),(0,o.jsxs)(r.Z,{sx:{marginLeft:"10px"},children:[(0,o.jsx)(a.Z,{sx:{marginBottom:"5px",fontSize:"".concat(h+16,"px"),display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"2",height:"auto",overflow:"hidden"},children:null===f||void 0===f?void 0:f.Title}),(0,o.jsxs)(r.Z,{sx:{display:"flex"},children:[(0,o.jsx)(a.Z,{variant:"body1",sx:{fontSize:"".concat(h+12,"px"),marginRight:"10px"},children:(0,u.Z)(null===f||void 0===f?void 0:f.Date)}
1),(0,o.jsx)(a.Z,{variant:"body1",sx:{display:"flex",alignItems:"center",fontSize:"".concat(h+12,"px")},children:(0,o.jsx)(c.Z,{sx:{fontSize:"12px"}})}),(0,o.jsxs)(a.Z,{variant:"body1",sx:{display:"flex",alignItems:"center",fontSize:"12px"},children:[(0,o.jsx)(x.Z,{sx:{fontSize:"12px",marginRight:"5px"}}),(null===f||void 0===f?void 0:f.downloadCount)||0]})]})]})]}),(0,o.jsx)(l.default,{link:(0,s.$)(null===f||void 0===f||null===(t=f.Document)||void 0===t?void 0:t.url),name:null===f||void 0===f||null===(n=f.Document)||void 0===n?void 0:n.name,setView:g,setDownloadCount:b,setId:C,id:null===f||void 0===f?void 0:f.id})]})}},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}},function(e){e.O(0,[9774,2888,179],(function(){return t=2892,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.