- Move all Astro files from dealplustech-astro/ to root - Archive Next.js code in _nextjs-backup/ - Update .gitignore for Astro project - Simplify project structure This completes the migration from Next.js to Astro. The Astro project is now at the root level.
1 line
23 KiB
JavaScript
1 line
23 KiB
JavaScript
(()=>{var e={};e.id=877,e.ids=[877],e.modules={7849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},5403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},4749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},8861:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>i.a,__next_app__:()=>u,originalPathname:()=>m,pages:()=>d,routeModule:()=>p,tree:()=>c}),r(5967),r(6670),r(2523);var s=r(3191),a=r(8716),n=r(7922),i=r.n(n),l=r(5231),o={};for(let e in l)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(o[e]=()=>l[e]);r.d(t,o);let c=["",{children:["[...slug]",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,5967)),"/Users/kunthawatgreethong/Gitea/dealplustech/src/app/[...slug]/page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(r.bind(r,6670)),"/Users/kunthawatgreethong/Gitea/dealplustech/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(r.bind(r,2523)),"/Users/kunthawatgreethong/Gitea/dealplustech/src/app/not-found.tsx"]}],d=["/Users/kunthawatgreethong/Gitea/dealplustech/src/app/[...slug]/page.tsx"],m="/[...slug]/page",u={require:r,loadChunk:()=>Promise.resolve()},p=new s.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/[...slug]/page",pathname:"/[...slug]",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},9611:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,2481,23)),Promise.resolve().then(r.t.bind(r,9404,23))},8585:(e,t,r)=>{"use strict";var s=r(1085);r.o(s,"notFound")&&r.d(t,{notFound:function(){return s.notFound}})},1085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return i},RedirectType:function(){return s.RedirectType},notFound:function(){return a.notFound},permanentRedirect:function(){return s.permanentRedirect},redirect:function(){return s.redirect}});let s=r(3953),a=r(6399);class n extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class i extends URLSearchParams{append(){throw new n}delete(){throw new n}set(){throw new n}sort(){throw new n}}("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)},6399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isNotFoundError:function(){return a},notFound:function(){return s}});let r="NEXT_NOT_FOUND";function s(){let e=Error(r);throw e.digest=r,e}function a(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("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)},8586:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),function(e){e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(r||(r={})),("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)},3953:(e,t,r)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return s},getRedirectError:function(){return o},getRedirectStatusCodeFromError:function(){return x},getRedirectTypeFromError:function(){return p},getURLFromRedirectError:function(){return u},isRedirectError:function(){return m},permanentRedirect:function(){return d},redirect:function(){return c}});let a=r(4580),n=r(2934),i=r(8586),l="NEXT_REDIRECT";function o(e,t,r){void 0===r&&(r=i.RedirectStatusCode.TemporaryRedirect);let s=Error(l);s.digest=l+";"+t+";"+e+";"+r+";";let n=a.requestAsyncStorage.getStore();return n&&(s.mutableCookies=n.mutableCookies),s}function c(e,t){void 0===t&&(t="replace");let r=n.actionAsyncStorage.getStore();throw o(e,t,(null==r?void 0:r.isAction)?i.RedirectStatusCode.SeeOther:i.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let r=n.actionAsyncStorage.getStore();throw o(e,t,(null==r?void 0:r.isAction)?i.RedirectStatusCode.SeeOther:i.RedirectStatusCode.PermanentRedirect)}function m(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,s,a]=e.digest.split(";",4),n=Number(a);return t===l&&("replace"===r||"push"===r)&&"string"==typeof s&&!isNaN(n)&&n in i.RedirectStatusCode}function u(e){return m(e)?e.digest.split(";",3)[2]:null}function p(e){if(!m(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function x(e){if(!m(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(function(e){e.push="push",e.replace="replace"})(s||(s={})),("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)},5967:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x,generateMetadata:()=>d,generateStaticParams:()=>o});var s=r(9510),a=r(8585),n=r(7710),i=r(7371),l=r(4927);async function o(){let e=[];return l.ZH.forEach(t=>{let r=t.href.replace(/^\//,"").replace(/\/$/,"").split("/");e.push({slug:r})}),l.cx.forEach(t=>{let r=t.href.replace(/^\//,"").replace(/\/$/,"").split("/");e.push({slug:r})}),e}function c(e){let t="/"+e.map(e=>decodeURIComponent(e)).join("/")+"/",r=l.ZH.find(e=>e.href===t);if(r)return{type:"product",data:r};let s=l.cx.find(e=>e.href===t);return s?{type:"portfolio",data:s}:null}async function d({params:e}){let t=c(e.slug);if(!t)return{title:"ไม่พบหน้า"};let{type:r,data:s}=t;return"product"===r?{title:s.keywords?.[0]?`${s.name} | ${s.keywords[0]} - ดีลพลัสเทค`:`${s.name} - ${s.nameEn} | ดีลพลัสเทค`,description:s.description,keywords:s.keywords?.join(", "),alternates:{canonical:s.href},openGraph:{title:s.name,description:s.description,images:[s.image],type:"website",url:`https://dealplustech.co.th${s.href}`}}:{title:s.name,description:s.description}}function m({product:e}){let t={"@context":"https://schema.org","@type":"Product",name:e.name,description:e.description,image:e.image,brand:{"@type":"Brand",name:e.schemaData?.brand||e.nameEn},manufacturer:{"@type":"Organization",name:e.schemaData?.manufacturer||"ดีลพลัสเทค"},...e.schemaData?.sku&&{sku:e.schemaData.sku},...e.schemaData?.mpn&&{mpn:e.schemaData.mpn},...e.schemaData?.material&&{material:e.schemaData.material},category:e.schemaData?.category||"Industrial Pipe & Equipment",offers:{"@type":"Offer",availability:"https://schema.org/InStock",priceCurrency:"THB",seller:{"@type":"Organization",name:"ดีลพลัสเทค"}}};return s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})}function u({product:e}){let t={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"หน้าแรก",item:"https://dealplustech.co.th"},{"@type":"ListItem",position:2,name:"สินค้า",item:"https://dealplustech.co.th/product/"},{"@type":"ListItem",position:3,name:e.name,item:`https://dealplustech.co.th${e.href}`}]};return s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})}function p({faq:e}){let t={"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))};return s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})}function x({params:e}){let t=c(e.slug);t||(0,a.notFound)();let{type:r,data:n}=t;return"portfolio"===r?s.jsx(f,{project:n}):s.jsx(h,{product:n})}function h({product:e}){let t=e.relatedProductIds?l.ZH.filter(t=>e.relatedProductIds?.includes(t.id)):l.ZH.filter(t=>t.slug===e.slug&&t.id!==e.id).slice(0,4);return(0,s.jsxs)(s.Fragment,{children:[s.jsx(m,{product:e}),s.jsx(u,{product:e}),e.faq&&e.faq.length>0&&s.jsx(p,{faq:e.faq}),s.jsx("div",{className:"pt-24 pb-16",children:(0,s.jsxs)("div",{className:"container mx-auto px-4",children:[s.jsx("nav",{className:"mb-6",children:(0,s.jsxs)("ol",{className:"flex items-center gap-2 text-sm flex-wrap",children:[s.jsx("li",{children:s.jsx(i.default,{href:"/",className:"text-secondary-500 hover:text-primary-600",children:"หน้าแรก"})}),s.jsx("li",{className:"text-secondary-400",children:"/"}),s.jsx("li",{children:s.jsx(i.default,{href:"/product",className:"text-secondary-500 hover:text-primary-600",children:"สินค้า"})}),s.jsx("li",{className:"text-secondary-400",children:"/"}),s.jsx("li",{className:"text-primary-600 font-medium",children:e.name})]})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 mb-12",children:[s.jsx("div",{className:"relative aspect-video bg-secondary-100 rounded-xl overflow-hidden",children:s.jsx(n.default,{src:e.image,alt:`${e.name} - ${e.nameEn}`,fill:!0,className:"object-cover",priority:!0})}),(0,s.jsxs)("div",{children:[s.jsx("span",{className:"text-primary-600 font-semibold",children:e.nameEn}),s.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-secondary-900 mt-2 mb-4",children:e.name}),s.jsx("p",{className:"text-secondary-600 text-lg mb-6 leading-relaxed",children:e.description}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-4 mb-6",children:[s.jsx(i.default,{href:"/contact-us",className:"btn-primary",children:"ขอใบเสนอราคา"}),s.jsx("a",{href:"tel:090-555-1415",className:"btn-outline",children:"โทรสอบถาม: 090-555-1415"})]}),(0,s.jsxs)("div",{className:"bg-secondary-50 rounded-lg p-4 space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-secondary-600",children:[s.jsx("svg",{className:"w-5 h-5 text-primary-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})}),(0,s.jsxs)("span",{children:["โทร: ",s.jsx("strong",{children:"090-555-1415"})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 text-secondary-600",children:[s.jsx("svg",{className:"w-5 h-5 text-primary-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}),(0,s.jsxs)("span",{children:["Email: ",s.jsx("strong",{children:"info@dealplustech.co.th"})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 text-secondary-600",children:[s.jsx("svg",{className:"w-5 h-5 text-primary-600",fill:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{d:"M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.346 0 .627.285.627.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63.346 0 .628.285.628.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314"})}),(0,s.jsxs)("span",{children:["LINE: ",s.jsx("strong",{children:"@dealplustech"})]})]})]})]})]}),e.specifications&&e.specifications.length>0&&(0,s.jsxs)("section",{className:"mb-12",children:[(0,s.jsxs)("h2",{className:"text-2xl font-bold text-secondary-900 mb-6 flex items-center gap-2",children:[s.jsx("svg",{className:"w-6 h-6 text-primary-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),"รายละเอียดทางเทคนิค"]}),s.jsx("div",{className:"bg-white rounded-xl border border-secondary-200 overflow-hidden",children:s.jsx("table",{className:"w-full",children:s.jsx("tbody",{children:e.specifications.map((e,t)=>(0,s.jsxs)("tr",{className:t%2==0?"bg-secondary-50":"bg-white",children:[s.jsx("td",{className:"px-6 py-4 font-medium text-secondary-700 w-1/3",children:e.label}),(0,s.jsxs)("td",{className:"px-6 py-4 text-secondary-900",children:[e.value,e.unit?` ${e.unit}`:""]})]},t))})})})]}),e.productTables&&e.productTables.length>0&&(0,s.jsxs)("section",{className:"mb-12",children:[(0,s.jsxs)("h2",{className:"text-2xl font-bold text-secondary-900 mb-6 flex items-center gap-2",children:[s.jsx("svg",{className:"w-6 h-6 text-primary-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"})}),"ตารางข้อมูลผลิตภัณฑ์"]}),s.jsx("div",{className:"space-y-8",children:e.productTables.map((e,t)=>(0,s.jsxs)("div",{className:"bg-white rounded-xl border border-secondary-200 overflow-hidden",children:[s.jsx("h3",{className:"text-lg font-semibold text-secondary-800 p-4 bg-secondary-50 border-b border-secondary-200",children:e.tableName}),s.jsx("div",{className:"overflow-x-auto",children:(0,s.jsxs)("table",{className:"w-full min-w-[600px]",children:[s.jsx("thead",{children:s.jsx("tr",{className:"bg-primary-50",children:e.headers.map((e,t)=>s.jsx("th",{className:"px-4 py-3 text-left text-sm font-semibold text-primary-700",children:e},t))})}),s.jsx("tbody",{children:e.rows.map((e,t)=>s.jsx("tr",{className:t%2==0?"bg-white":"bg-secondary-50",children:e.map((e,t)=>s.jsx("td",{className:"px-4 py-3 text-sm text-secondary-700",children:e},t))},t))})]})})]},t))})]}),e.features&&e.features.length>0&&(0,s.jsxs)("section",{className:"mb-12",children:[(0,s.jsxs)("h2",{className:"text-2xl font-bold text-secondary-900 mb-6 flex items-center gap-2",children:[s.jsx("svg",{className:"w-6 h-6 text-primary-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"คุณสมบัติเด่น"]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:e.features.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-start gap-3 p-4 bg-primary-50 rounded-lg",children:[s.jsx("svg",{className:"w-5 h-5 text-primary-600 mt-0.5 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),s.jsx("span",{className:"text-secondary-700",children:e})]},t))})]}),e.applications&&e.applications.length>0&&(0,s.jsxs)("section",{className:"mb-12",children:[(0,s.jsxs)("h2",{className:"text-2xl font-bold text-secondary-900 mb-6 flex items-center gap-2",children:[s.jsx("svg",{className:"w-6 h-6 text-primary-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})}),"การใช้งาน"]}),s.jsx("div",{className:"flex flex-wrap gap-3",children:e.applications.map((e,t)=>s.jsx("span",{className:"inline-flex items-center px-4 py-2 bg-secondary-100 text-secondary-700 rounded-full font-medium",children:e},t))})]}),e.certifications&&e.certifications.length>0&&(0,s.jsxs)("section",{className:"mb-12",children:[(0,s.jsxs)("h2",{className:"text-2xl font-bold text-secondary-900 mb-6 flex items-center gap-2",children:[s.jsx("svg",{className:"w-6 h-6 text-primary-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"})}),"มาตรฐานและรับรอง"]}),s.jsx("div",{className:"flex flex-wrap gap-3",children:e.certifications.map((e,t)=>s.jsx("span",{className:"inline-flex items-center px-4 py-2 bg-primary-100 text-primary-700 rounded-lg font-semibold",children:e},t))})]}),e.seoContent&&s.jsx("section",{className:"mb-12",children:s.jsx("div",{className:"prose prose-lg max-w-none",children:s.jsx("div",{dangerouslySetInnerHTML:{__html:e.seoContent.replace(/\n/g,"<br/>")}})})}),e.faq&&e.faq.length>0&&(0,s.jsxs)("section",{className:"mb-12",children:[(0,s.jsxs)("h2",{className:"text-2xl font-bold text-secondary-900 mb-6 flex items-center gap-2",children:[s.jsx("svg",{className:"w-6 h-6 text-primary-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"คำถามที่พบบ่อย"]}),s.jsx("div",{className:"space-y-4",children:e.faq.map((e,t)=>(0,s.jsxs)("details",{className:"group bg-white rounded-lg border border-secondary-200 overflow-hidden",children:[(0,s.jsxs)("summary",{className:"flex items-center justify-between p-5 cursor-pointer font-medium text-secondary-900 hover:bg-secondary-50",children:[s.jsx("span",{children:e.question}),s.jsx("svg",{className:"w-5 h-5 text-secondary-500 group-open:rotate-180 transition-transform",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),s.jsx("div",{className:"px-5 pb-5 text-secondary-600 border-t border-secondary-100 pt-4",children:e.answer})]},t))})]}),t.length>0&&(0,s.jsxs)("section",{className:"mt-16",children:[s.jsx("h2",{className:"text-2xl font-bold text-secondary-900 mb-6",children:"สินค้าที่เกี่ยวข้อง"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:t.map(e=>(0,s.jsxs)(i.default,{href:e.href,className:"card group",children:[s.jsx("div",{className:"relative aspect-video bg-secondary-100",children:s.jsx(n.default,{src:e.image,alt:e.name,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300"})}),(0,s.jsxs)("div",{className:"p-4",children:[s.jsx("span",{className:"text-xs text-primary-600 font-semibold",children:e.nameEn}),s.jsx("h3",{className:"text-lg font-bold text-secondary-900 mt-1 group-hover:text-primary-600 transition-colors",children:e.name})]})]},e.id))})]})]})})]})}function f({project:e}){return s.jsx("div",{className:"pt-32 pb-16",children:(0,s.jsxs)("div",{className:"container mx-auto px-4",children:[s.jsx("nav",{className:"mb-6",children:(0,s.jsxs)("ol",{className:"flex items-center gap-2 text-sm",children:[s.jsx("li",{children:s.jsx(i.default,{href:"/",className:"text-secondary-500 hover:text-primary-600",children:"หน้าแรก"})}),s.jsx("li",{className:"text-secondary-400",children:"/"}),s.jsx("li",{children:s.jsx(i.default,{href:"/portfolio",className:"text-secondary-500 hover:text-primary-600",children:"ผลงาน"})}),s.jsx("li",{className:"text-secondary-400",children:"/"}),s.jsx("li",{className:"text-primary-600 font-medium",children:e.name})]})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[s.jsx("div",{className:"relative aspect-video bg-secondary-100 rounded-xl overflow-hidden",children:s.jsx(n.default,{src:e.image,alt:e.name,fill:!0,className:"object-cover",priority:!0})}),(0,s.jsxs)("div",{children:[s.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-secondary-900 mb-4",children:e.name}),s.jsx("p",{className:"text-secondary-600 text-lg mb-6",children:e.description}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-4",children:[s.jsx(i.default,{href:"/contact-us",className:"btn-primary",children:"ติดต่อเรา"}),s.jsx(i.default,{href:"/portfolio",className:"btn-outline",children:"ดูผลงานอื่นๆ"})]})]})]}),(0,s.jsxs)("div",{className:"mt-16",children:[s.jsx("h2",{className:"text-2xl font-bold text-secondary-900 mb-6",children:"ผลงานอื่นๆ"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:l.cx.filter(t=>t.id!==e.id).slice(0,4).map(e=>(0,s.jsxs)(i.default,{href:e.href,className:"card group",children:[s.jsx("div",{className:"relative aspect-video bg-secondary-100",children:s.jsx(n.default,{src:e.image,alt:e.name,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300"})}),s.jsx("div",{className:"p-4",children:s.jsx("h3",{className:"text-lg font-bold text-secondary-900 group-hover:text-primary-600 transition-colors",children:e.name})})]},e.id))})]})]})})}}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[948,12,904],()=>r(8861));module.exports=s})(); |