PageSourceSearch

https://www.ditp.go.th/_next/static/chunks/pages/post/policy/th-privacy-policy/[id]-0726084dd80f1cb8.js

js ditp.go.th collected 2026-10-02 04:04:48 UTC 18,553 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4263],{31459:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/post/policy/th-privacy-policy/[id]",function(){return i(55821)}])},32602:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return n},noSSR:function(){return o}});let l=i(38754);i(85893),i(67294);let a=l._(i(35491));function r(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function n(e,t){let i=a.default,l={loading:e=>{let{error:t,isLoading:i,pastDelay:l}=e;return null}};e instanceof Promise?l.loader=()=>e:"function"==typeof e?l.loader=e:"object"==typeof e&&(l={...l,...e});let n=(l={...l,...t}).loader;return(l.loadableGenerated&&(l={...l,...l.loadableGenerated},delete l.loadableGenerated),"boolean"!=typeof l.ssr||l.ssr)?i({...l,loader:()=>null!=n?n().then(r):Promise.resolve(r(()=>null))}):(delete l.webpack,delete l.modules,o(i,l))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1159:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return l}});let l=i(38754)._(i(67294)).default.createContext(null)},35491:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let l=i(38754)._(i(67294)),a=i(1159),r=[],o=[],n=!1;function s(e){let t=e(),i={loading:!0,loaded:null,error:null};return i.promise=t.then(e=>(i.loading=!1,i.loaded=e,e)).catch(e=>{throw i.loading=!1,i.error=e,e}),i}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let i=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function s(){if(!r){let t=new c(e,i);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!n){let e=i.webpack?i.webpack():i.modules;e&&o.push(t=>{for(let i of e)if(t.includes(i))return s()})}function d(e,t){!function(){s();let e=l.default.useContext(a.LoadableContext);e&&Array.isArray(i.modules)&&i.modules.forEach(t=>{e(t)})}();let o=l.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return l.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),l.default.useMemo(()=>{var t;return o.loading||o.error?l.default.createElement(i.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:r.retry}):o.loaded?l.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return d.preload=()=>s(),d.displayName="LoadableComponent",l.default.forwardRef(d)}(s,e)}function u(e,t){let i=[];for(;e.length;){let l=e.pop();i.push(l(t))}return Promise.all(i).then(()=>{if(e.length)return u(e,t)})}d.preloadAll=()=>new Promise((e,t)=>
1{u(r).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let i=()=>(n=!0,t());u(o,e).then(i,i)})),window.__NEXT_PRELOADREADY=d.preloadReady;let p=d},3632:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});var l=i(85893),a=i(41664),r=i.n(a),o=i(11163);function n(e){let{paths:t}=e,i=(0,o.useRouter)();return(0,l.jsx)("nav",{className:"text-gray-500 text-sm overflow-x-auto whitespace-nowrap custom-scroll",children:(0,l.jsx)("div",{className:"max-w-screen-xl mx-auto px-4",children:(0,l.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,l.jsx)("img",{src:"/icons/home.png",alt:"Profile",className:"w-4 h-4"}),t.filter(e=>e.label).map((e,a)=>(0,l.jsxs)("div",{className:"flex items-center space-x-2 mt-2",children:[a>0&&(0,l.jsx)("span",{className:"text-gray-400",children:"/"}),a===t.length-1?(0,l.jsx)("span",{className:"text-black font-semibold",children:e.label}):e.link?(0,l.jsx)(r(),{href:e.link,legacyBehavior:!0,locale:i.locale,children:(0,l.jsx)("a",{className:"text-gray-400 hover:text-gray-600",children:e.label})}):(0,l.jsx)("div",{className:"text-gray-400 line-clamp-1",children:e.label})]},a))]})})})}},94612:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var l=i(85893),a=i(67294),r=i(5152),o=i.n(r),n=i(45697),s=i.n(n);let c=e=>new Promise((t,i)=>{if(document.querySelector('script[src="'.concat(e,'"]'))){t();return}let l=document.createElement("script");l.src=e,l.async=!0,l.onload=t,l.onerror=i,document.body.appendChild(l)});var d=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!e.current||"true"!==e.current.dataset.dflipInitialized)return(async()=>{try{let i=e.current;if(!i||!t||"true"===i.dataset.dflipInitialized)return;if(window.jQuery||await c("/dflip/js/libs/jquery.min.js"),window.PDFJS=window.PDFJS||{},window.PDFJS.pdfjsWorkerSrc="/pdf.worker.min.js",window.PDFJS.workerSrc="/pdf.worker.min.js",await new Promise(e=>requestAnimationFrame(()=>e())),window.DFLIP||await c("/dflip/js/dflip.min.js"),await new Promise(e=>requestAnimationFrame(()=>e())),await new Promise(e=>setTimeout(e,50)),!window.jQuery||!window.DFLIP)throw Error("dFlip not ready");i.dataset.dflipInitialized="true",l.current=window.jQuery(i).flipBook(t,{webgl:!0,direction:1,duration:800,maxTextureSize:4096,autoEnableOutline:!1,autoEnableThumbnail:!1,overwritePDFOutline:!1,onReady:()=>console.log("dFlip ready"),onError:e=>console.error("dFlip error",e)})}catch(e){console.error("initFlipbook failed:",e)}})(),()=>{l.current&&(l.current.dispose&&l.current.dispose(),l.current._removeZoomListener&&l.current._removeZoomListener(),e.current&&(e.current.dataset.dflipInitialized="false"))}},[e,t,i]),l.current};let u=e=>{let{file:t,options:i={}}=e,r=(0,a.useRef)(null);return d(r,t,i),(0,l.jsx)("div",{ref:r,className:"_df_book","data-pdf-url":t,"data-mode":"pdf","data-webgl":"false",style:{width:"100%",height:"600px"}})};u.propTypes={file:s().string,options:s().object};var p=o()(()=>Promise.resolve(u),{ssr:!1})},93886:function(e,t,i){"use strict";var l=i(85893),a=i(11163),r=i(67294),o=i(41664),n=i.n(o);t.Z=e=>{let{onShare:t}=e;(0,a.useRouter)();let[i,o]=(0,r.useState)("");(0,r.useEffect)(()=>{o(window.location.href)},[]);let s=e=>{window.open(e,"_blank"),t&&t()};return(0,l.jsxs)("div",{className:"mt-6",children:[(0,l.jsx)("div",{className:"font-semibold",children:"Share :"}),(0,l.jsxs)("div",{className:"flex space-x-2",children:[(0,l.jsx)("button",{onClick:()=>s("https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(i))),children:(0,l.jsx)("img",{src:"/social/facebook.png",alt:"Facebook",className:"w-9 h-9"})}),(0,l.jsx)("button",{onClick:()=>s("https://social-plugins.line.me/lineit/share?url=".concat(encodeURIComponent(i))),children:(0,l.jsx)("img",{src:"/social/line.png",alt:"Line",className:"w-9 h-9 rounded-full"})}),(0,l.jsx)("button",{onClick:()=>s("https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(i))),children:(0,l.jsx)("img",{src:"/social/x.jpg",alt:"X",className:"w-9 h-9 rounded-full"})}),(0,l.jsx)("button",{onClick:()=>s("https://www.linkedin.com/shareArticle?mini=true&url=".concat(encodeURIComponent(i))),children:(0,l.jsx)("img",{src:"/social/in.png",alt:"LinkedIn",className:"w-9 h-9"})}),(0,l.jsx)("button",{onClick:()=>
1s("https://api.whatsapp.com/send?text=".concat(encodeURIComponent(i))),children:(0,l.jsx)("img",{src:"/social/whatsapp.png",alt:"WhatsApp",className:"w-9 h-9 rounded-full"})}),(0,l.jsx)(n(),{href:"https://www.instagram.com/",target:"_blank",children:(0,l.jsx)("div",{children:(0,l.jsx)("img",{src:"/social/instagram.png",alt:"Instagram",className:"w-10 h-10 rounded-full"})})})]})]})}},55821:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return x},default:function(){return w}});var l=i(85893),a=i(11163),r=i(41664),o=i.n(r),n=i(76809),s=i(3632),c=i(67294),d=i(24985),u=i(66308),p=i(25675),m=i.n(p),v=i(69740),h=i(63805),y=i(94612),f=i(93886);d.or,d.or,d.or;var x=!0;function w(e){var t,i,r,d,p,x,w,b,g,_,j,N,k,C,P,E,I,O,R,T,S,D,F,A,L,z,U,M,Z,B,V,q,W,H;let{locale:J}=(0,a.useRouter)(),X=[{label:e.message.HomePage.home,link:"/"},{label:e.message.privacypolicy.privacy_policy,link:"/post/policy/th-privacy-policy"},{label:e.privacypolicy.data.title}],G=e=>{if(!e)return;let t=e.split("/").pop(),i=document.createElement("a");i.href=e,i.download=t,i.target="_blank",i.rel="noopener noreferrer",document.body.appendChild(i),i.click(),document.body.removeChild(i)},Q=async(e,t)=>{try{await n.hi.getprivacynum(e,{data:{number_share:t+1}},J)}catch(e){console.error("Error updating number_share:",e)}},Y=async()=>{var t;let i=null===(t=e.privacypolicy.data)||void 0===t?void 0:t.documentId;if(i)try{await Q(i,e.privacypolicy.data.number_share)}catch(e){console.error("Error in handleShareCount:",e)}},K=async(e,t)=>{try{await n.hi.getprivacynum(e,{data:{number_read:t+1}},J)}catch(e){console.error("Error updating number_read:",e)}};return(0,c.useEffect)(()=>{var t;(null==e?void 0:e.preview)!==!0&&(null===(t=e.privacypolicy.data)||void 0===t?void 0:t.documentId)&&K(e.privacypolicy.data.documentId,e.privacypolicy.data.number_read)},[null==e?void 0:e.preview,e.privacypolicy.data.documentId]),(0,c.useEffect)(()=>{var t;(null==e?void 0:e.preview)!==!0&&(null===(t=e.privacypolicy.data)||void 0===t?void 0:t.documentId)&&(async()=>{try{var t,i;let l={documentId_page:e.privacypolicy.data.documentId,content:e.privacypolicy.data.title,url:window.location.href,author:null===(t=e.privacypolicy.data.createdBy)||void 0===t?void 0:t.username,post_type:"นโยบายเว็บไซต์",publishAt:null===(i=e.privacypolicy.data)||void 0===i?void 0:i.createdAt};await n.hi.getPageinsights(l)}catch(e){console.error("เกิดข้อผิดพลาดในการบันทึกข้อมูล",e)}})()},[e.preview,null===(t=e.privacypolicy.data)||void 0===t?void 0:t.documentId]),(0,l.jsxs)("div",{className:"pt-16 mb-16",children:[(0,l.jsx)(u.Z,{title:e.privacypolicy.data.title,description:e.privacypolicy.data.title,image:(null===(r=e.privacypolicy.data)||void 0===r?void 0:null===(i=r.image)||void 0===i?void 0:i.url)||"/images/ditpimage.png",keywords:null===(p=e.privacypolicy.data)||void 0===p?void 0:null===(d=p.category_privacy_policy)||void 0===d?void 0:d.name,breadcrumbs:X}),(0,l.jsx)("div",{className:"sticky top-[60px] bg-white z-20",children:(0,l.jsx)(s.Z,{paths:X})}),(0,l.jsx)("div",{className:"max-w-screen-lg mx-auto mt-4 flex flex-col items-center md:mt-12 px-4",children:(0,l.jsxs)("div",{className:"flex flex-col w-full",children:[(0,l.jsx)("div",{className:"shrink-0  aspect-w-16 aspect-h-9 ",children:(0,l.jsx)(m(),{className:"w-full object-contain h-full",src:(null===(w=e.privacypolicy.data)||void 0===w?void 0:null===(x=w.image)||void 0===x?void 0:x.url)&&(0,v.gU)(null===(_=e.privacypolicy)||void 0===_?void 0:null===(g=_.data)||void 0===g?void 0:null===(b=g.image)||void 0===b?void 0:b.url)?e.privacypolicy.data.image.url:"/images/ditpimage.png",alt:null===(N=e.privacypolicy)||void 0===N?void 0:null===(j=N.data)||void 0===j?void 0:j.title,width:1024,height:576,priority:!0})}),(0,l.jsxs)("div",{className:"mt-4",children:[(0,l.jsxs)("div",{className:"border-b pb-6",children:[(0,l.jsx)("h1",{className:"text-2xl md:text-3xl font-semibold  text-gradient mb-2",children:null===(C=e.privacypolicy)||void 0===C?void 0:null===(k=C.data)||void 0===k?void 0:k.title}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-2 mt-4",children:[(null===(E=e.privacypolicy.data)||void 0===E?void 0:null===(P=E.category_privacy_policy)||void 0===P?void 0:P.name)&&(0,l.jsx)("div",{className:"border rounded-xl bg-violet-100 px-4",children:(0,l.jsx)(o(),{href:"/category/".concat(encodeURIComponent(null===(O=e.privacypolicy.data)||void 0===O?void 0:null===(I=O.category_privacy_policy)||void 0===I?void 0:I.name)),children:(0,l.jsx)("div",{children:null===(T=e.privacypolicy.data)||void 0===T?void 0:null===(R=T.category_privacy_policy)||void 0===R?void 0:R.name})})}),null===(D=e.privacypolicy.data)||void 0===D?void 0:null===(S=D.tag)||void 0===S?void 0:S.map((e,t)=>(0,l.jsx)(o(),{href:"/post/tags/".concat(encodeURIComponent(null==e?void 0:e.tag_name)),children:(0,l.jsx)("div",{className:"border rounded-xl bg-violet-100 px-4",children:(0,l.jsx)("div",{children:e.tag_name})})},t))]})]}),(0,l.jsxs)("div",{className:"flex md:flex-row justify-between md:items-center mt-4",children:[(0,l.jsxs)("div",{className:"md:flex text-sm md:space-x-1",children:[(0,l.jsxs)("div",{className:"flex space-x-2 font-semibold",children:[(0,l.jsxs)("div",{children:[e.message.post.by," "]}),(0,l.jsx)(o(),{href:"/author/".concat(encodeURIComponent(null===(A=e.privacypolicy.data)||void 0===A?void 0:null===(F=A.createdBy)||void 0===F?void 0:F.username)),children:null===(L=e.privacypolicy.data.createdBy)||void 0===L?void 0:L.username})," ",(0,l.jsx)("div",{className:"hidden md:block",children:"•"})]}),(0,l.jsxs)("div",{children:[e.message.post.posted," ",(0,h.DO)((null===(z=e.privacypolicy.data)||void 0===z?void 0:z.publish_date)||(null===(U=e.privacypolicy.data)||void 0===U?void 0:U.current_publish)||e.privacypolicy.data.createdAt,e.privacypolicy.data.locale)]})]}),(0,l.jsxs)("div",{className:"flex space-x-6",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("svg",{className:"w-[15px] h-[15px] fill-[#8e8e8e]",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z"})}),(0,l.jsx)("div",{className:"text-sm ml-2",children:e.privacypolicy.data.number_read})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("svg",{className:"w-w-[15p
1x] h-[15px]",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M307 34.8c-11.5 5.1-19 16.6-19 29.2v64H176C78.8 128 0 206.8 0 304C0 417.3 81.5 467.9 100.2 478.1c2.5 1.4 5.3 1.9 8.1 1.9c10.9 0 19.7-8.9 19.7-19.7c0-7.5-4.3-14.4-9.8-19.5C108.8 431.9 96 414.4 96 384c0-53 43-96 96-96h96v64c0 12.6 7.4 24.1 19 29.2s25 3 34.4-5.4l160-144c6.7-6.1 10.6-14.7 10.6-23.8s-3.8-17.7-10.6-23.8l-160-144c-9.4-8.5-22.9-10.6-34.4-5.4z"})}),(0,l.jsx)("div",{className:"text-sm ml-2",children:e.privacypolicy.data.number_share})]})]})]}),(null===(M=e.privacypolicy.data.file_pdf)||void 0===M?void 0:M.url)&&(0,l.jsx)("div",{className:"z-20",children:(0,l.jsx)(y.Z,{file:null===(B=e.privacypolicy.data)||void 0===B?void 0:null===(Z=B.file_pdf)||void 0===Z?void 0:Z.url})}),(null===(V=e.privacypolicy.data)||void 0===V?void 0:V.file_pdf)&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsxs)("div",{className:"flex items-center space-x-4 mt-4",children:[(0,l.jsx)("div",{className:"line-clamp-1 md:w-[944px]",children:null===(W=e.privacypolicy.data)||void 0===W?void 0:null===(q=W.file_pdf)||void 0===q?void 0:q.name}),(0,l.jsx)("button",{onClick:()=>{var t,i;return G(null===(i=e.privacypolicy.data)||void 0===i?void 0:null===(t=i.file_pdf)||void 0===t?void 0:t.url)},className:"w-[350px] bg-[#10143C] py-3 px-4 border border-gray-200 rounded-full md:w-[155px]",children:(0,l.jsx)("div",{className:"text-center text-white",children:e.message.post.Download})})]})}),(null===(H=e.privacypolicy.data)||void 0===H?void 0:H.file_other)&&(0,l.jsx)("div",{className:"mt-2 space-y-2",children:e.privacypolicy.data.file_other.map((t,i)=>(0,l.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,l.jsx)("div",{className:"line-clamp-1 md:w-[944px]",children:t.name}),(0,l.jsx)("button",{onClick:()=>G(null==t?void 0:t.url),className:"w-[350px] bg-[#10143C] py-3 px-4 border border-gray-200 rounded-full md:w-[155px]",children:(0,l.jsx)("div",{className:"text-center text-white",children:e.message.post.Download})})]},i))}),(0,l.jsx)(f.Z,{onShare:Y})]})]})})]})}},5152:function(e,t,i){e.exports=i(32602)},92703:function(e,t,i){"use strict";var l=i(50414);function a(){}function r(){}r.resetWarningCache=a,e.exports=function(){function e(e,t,i,a,r,o){if(o!==l){var n=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw n.name="Invariant Violation",n}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:a};return i.PropTypes=i,i}},45697:function(e,t,i){e.exports=i(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},function(e){e.O(0,[2275,5675,6308,1289,2888,9774,179],function(){return e(e.s=31459)}),_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.