PageSourceSearch

https://www.ditp.go.th/_next/static/chunks/pages/frequently-ask-3066c6ae99033193.js

js ditp.go.th collected 2026-10-02 04:03:53 UTC 8,862 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3800],{32277:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/frequently-ask",function(){return r(67621)}])},3632:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(85893),l=r(41664),s=r.n(l),i=r(11163);function a(e){let{paths:t}=e,r=(0,i.useRouter)();return(0,n.jsx)("nav",{className:"text-gray-500 text-sm overflow-x-auto whitespace-nowrap custom-scroll",children:(0,n.jsx)("div",{className:"max-w-screen-xl mx-auto px-4",children:(0,n.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,n.jsx)("img",{src:"/icons/home.png",alt:"Profile",className:"w-4 h-4"}),t.filter(e=>e.label).map((e,l)=>(0,n.jsxs)("div",{className:"flex items-center space-x-2 mt-2",children:[l>0&&(0,n.jsx)("span",{className:"text-gray-400",children:"/"}),l===t.length-1?(0,n.jsx)("span",{className:"text-black font-semibold",children:e.label}):e.link?(0,n.jsx)(s(),{href:e.link,legacyBehavior:!0,locale:r.locale,children:(0,n.jsx)("a",{className:"text-gray-400 hover:text-gray-600",children:e.label})}):(0,n.jsx)("div",{className:"text-gray-400 line-clamp-1",children:e.label})]},l))]})})})}},67621:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return h},default:function(){return m}});var n=r(85893),l=r(3632),s=r(76809),i=r(24985);r(41664);var a=r(67294);r(16747),r(71061);var c=r(68341),o=r.n(c),d=r(66308),u=r(9008),x=r.n(u),h=!0;function m(e){var t,r,c,u,h,m,p,f,g,j;i.QP;let v=[{label:"หน้าหลัก",link:"/"},{label:"คำถามที่พบบ่อย"}],[b,k]=(0,a.useState)(!1),y=e=>{k(t=>({...t,[e]:!t[e]}))};return(0,a.useEffect)(()=>{(async()=>{try{let e={content:"คำถามที่พบบ่อย",url:window.location.href,author:"",post_type:"หน้า",publishAt:""};await s.hi.getPageinsights(e)}catch(e){console.error("เกิดข้อผิดพลาดในการบันทึกข้อมูล",e)}})()},[]),(0,n.jsxs)("div",{className:"pt-14 pb-16",style:{backgroundColor:"#ffffff",backgroundImage:"url('/images/bg.jpg')",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"repeat"},children:[(0,n.jsx)("div",{className:"flex items-center justify-center bg-cover bg-top",style:{backgroundImage:"url(".concat(null!==(j=null===(r=e.frequentlyask.data.image_cover)||void 0===r?void 0:null===(t=r.formats)||void 0===t?void 0:t.medium.url)&&void 0!==j?j:null===(c=e.frequentlyask.data.image_cover)||void 0===c?void 0:c.url,")"),height:"193px"},children:(0,n.jsx)("h1",{className:"text-white text-center text-xl md:text-[40px]",children:"คำถามที่พบบ่อย"})}),(0,n.jsx)(d.Z,{title:"คำถามที่พบบ่อย - กรมส่งเสริมการค้าระหว่างประเทศ",description:"คำถามที่ 1 การเริ่มต้นดำเนินธุรกิจส่งออกจะต้อง ดำเนินการอย่างไร",breadcrumbs:v}),(null==e?void 0:null===(m=e.frequentlyask)||void 0===m?void 0:null===(h=m.data)||void 0===h?void 0:null===(u=h.frequently_asked_questions)||void 0===u?void 0:u.length)>0&&(0,n.jsx)(x(),{children:(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.frequentlyask.data.frequently_asked_questions.map(e=>{var t;return{"@type":"Question",name:e.question||e.title,acceptedAnswer:{"@type":"Answer",text:(t=e.answer_html)?t.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim():""}}})})}})}),(0,n.jsx)("div",{className:"sticky top-[60px] bg-white z-20",children:(0,n.jsx)(l.Z,{paths:v})}),(0,n.jsx)("div",{className:"max-w-screen-xl mx-auto px-4 mt-12",children:(0,n.jsx)("div",{className:"md:px-16",children:(0,n.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-1 gap-2",children:(0,n.jsx)("div",{className:"flex flex-col",children:null==e?void 0:null===(g=e.frequentlyask)||void 0===g?void 0:null===(f=g.data)||void 0===f?void 0:null===(p=f.frequently_asked_questions)||void 0===p?void 0:p.map((e,t)=>(0,n.jsxs)("div",{className:"pb-4 relative",style:{backgroundImage:"linear-gradient(to right, #1A1C49, #41B8B9)",backgroundSize:"100% 2px",backgroundRepeat:"no-repeat",backgroundPosition:"bottom"},children:[(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("div",{className:"text-2xl md:text-3xl mb-2 font-semibold text-gradient",children:e.title}),(0,n.jsx)("button",{type:"button",onClick:()=>y(t),className:"flex items-center justify-center text-4xl font-bold w-16 h-16",children:(0,n.jsx)("div",{children:b[t]?(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"})}):(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})})})]}),(0,n.jsx)("div",{className:"text-xl md:text-2xl font-semibold mb-2",children:e.question}),b[t]&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-xl md:text-2xl font-semibold text-gradient inline underline underline-offset-4 decoration-black",children:"คำตอบ"}),(null==e?void 0:e.answer_html)?o()(null==e?void 0:e.answer_html):null]}),e.social_media&&e.social_media.map(e=>{var t;return(0,n.jsxs)("div",{className:"flex flex-row mt-2 space-x-2",children:[(0,n.jsx)("img",{src:null===(t=e.image_icon)||void 0===t?void 0:t.url,alt:"Profile",className:"w-[24px] h-[24px] rounded-full bg-gray-100"}),(0,n.jsx)("div",{children:e.name})]},e.id)})]})]},t))})})})})]})}},9008:function(e,t,r){e.exports=r(23867)},16747:function(e,t,r){"use strict";r.d(t,{i:function(){return m}});var n=r(85893),l=r(67294);let s=e=>{let t=e.split(/\r?\n|\r/g);return(0,n.jsx)(n.Fragment,{children:t.map((e,t)=>(0,n.jsxs)(l.Fragment,{children:[t>0&&(0,n.jsx)("br",{}),e]},t))})},i=({text:e,...t})=>{let{modifiers:r,missingModifierTypes:l}=h();return Object.keys(t).reduce((e,s)=>{if(!t[s])return e;let i=r[s];return i?(0,n.jsx)(i,{children:e}):(l.includes(s)||(console.warn(`[@strapi/block-react-renderer] No component found for modifier "${s}"`),l.push(s)),e)},s(e))},a=["image"],c=e=>{let{children:t,type:r,...n}=e;if("code"===r){let t=e=>e.reduce((e,r)=>"text"===r.type?e.concat(r.text):"link"===r.type?e.concat(t(r.children)):e,"");return{...n,plainText:t(e.children)}}return n},o=({content:e})=>{let{children:t,type:r,...s}=e,{blocks:d,missingBlockTypes:u}=h(),x=d[r];if(!x)return u.includes(r)||(console.warn(`[@strapi/block-react-renderer] No component found for block type "${r}"`),u.push(r)),null;if(a.includes(r))return(0,n.jsx)(x,{...s});if("paragraph"===r&&1===t.length&&"text"===t[0].type&&""===t[0].text)return(0,n.jsx)("br",{});let m=c(e);return(0,n.jsx)(x,{...m,children:t.map((e,t)=>{if("text"===e.type){let{type:r,...n}=e;return(0,l.createElement)(i,{...n,key:t})}return(0,n.jsx)(o,{content:e},t)})})},d={blocks:{paragraph:e=>(0,n.jsx)("p",{children:e.children}),quote:e=>(0,n.jsx)("blockquote",{children:e.children}),code:e=>(0,n.jsx)("pre",{children:(0,n.jsx)("code",{children:e.plainText})}),heading:({level:e,children:t})=>{switch(e){case 1:return(0,n.jsx)("h1",{children:t});case 2:return(0,n.jsx)("h2",{children:t});case 3:return(0,n.jsx)("h3",{children:t});case 4:return(0,n.jsx)("h4",{children:t});case 5:return(0,n.jsx)("h5",{children:t});case 6:return(0,n.jsx)("h6",{children:t})}},link:e=>(0,n.jsx)("a",{href:e.url,children:e.children}),list:e=>"ordered"===e.format?(0,n.jsx)("ol",{children:e.children}):(0,n.jsx)("ul",{children:e.children}),"list-item":e=>(0,n.jsx)("li",{children:e.children}),image:e=>(0,n.jsx)("img",{src:e.image.url,alt:e.image.alternativeText||void 0})},modifiers:{bold:e=>(0,n.jsx)("strong",{children:e.children}),italic:e=>(0,n.jsx)("em",{children:e.children}),underline:e=>(0,n.jsx)("u",{children:e.children}),strikethrough:e=>(0,n.jsx)("del",{children:e.children}),code:e=>(0,n.jsx)("code",{children:e.children})},missingBlockTypes:[],missingModifierTypes:[]},u=l.createContext(d),x=({children:e,value:t=d})=>{let r=l.useMemo(()=>t,[t]);return(0,n.jsx)(u.Provider,{value:r,children:e})};function h(){return l.useContext(u)}let m=e=>{let t={...d.blocks,...e.blocks},r={...d.modifiers,...e.modifiers},s=l.useRef([]),i=l.useRef([]);return(0,n.jsx)(x,{value:{blocks:t,modifiers:r,missingBlockTypes:s.current,missingModifierTypes:i.current},children:e.content.map((e,t)=>(0,n.jsx)(o,{content:e},t))})}}},function(e){e.O(0,[8341,6308,2888,9774,179],function(){return e(e.s=32277)}),_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.