File manager - Edit - /home/webapp69.cm.in.th/u69319090023/Shop23/_next/static/chunks/2kavu_gu23irc.js
Back
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59544,e=>{"use strict";var s=e.i(43476);e.s(["default",0,({children:e,variant:a="primary",size:t="md",isLoading:r=!1,className:l="",disabled:c,...i})=>(0,s.jsxs)("button",{className:`inline-flex items-center justify-center font-semibold rounded-full transition-all duration-300 active:scale-95 focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:active:scale-100 ${{primary:"bg-gradient-to-r from-primary to-secondary text-text-primary hover:from-accent hover:to-highlight shadow-luxury hover:shadow-luxury-glow hover:-translate-y-[2px]",secondary:"bg-white text-primary border border-gray-100 hover:bg-gray-50 shadow-card-soft",outline:"bg-transparent text-white border-2 border-white/20 hover:border-white hover:bg-white/10",glass:"glassmorphism text-white hover:bg-white/15 border border-white/10",danger:"bg-red-600 text-white hover:bg-red-700 shadow-sm"}[a]} ${{sm:"text-sm px-4 py-2",md:"text-base px-6 py-3",lg:"text-lg px-8 py-4"}[t]} ${l}`,disabled:c||r,...i,children:[r&&(0,s.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-current",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e]})])},39964,e=>{"use strict";var s=e.i(43476);e.s(["default",0,({variant:e="white",children:a,className:t="",...r})=>(0,s.jsx)("div",{className:`${(()=>{switch(e){case"white":return"bg-white rounded-2xl shadow-sm border border-gray-100";case"glass":return"bg-white/80 backdrop-blur-md rounded-2xl shadow-sm border border-white/20";case"glass-dark":return"bg-gray-900/80 backdrop-blur-md rounded-2xl shadow-lg border border-gray-800 text-white";case"outline":return"bg-transparent rounded-2xl border border-gray-200";default:return"bg-white rounded-2xl shadow-sm"}})()} ${t}`,...r,children:a})])},16933,e=>{"use strict";let s=(0,e.i(56420).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,s])},51757,e=>{"use strict";var s=e.i(16933);e.s(["CheckCircle2",()=>s.default])},78299,e=>{"use strict";var s=e.i(43476),a=e.i(71645),t=e.i(96315),r=e.i(75387),l=e.i(20865),c=e.i(56420);let i=(0,c.default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);var d=e.i(51757);let n=(0,c.default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);var o=e.i(59544),x=e.i(39964);e.s(["default",0,function(){let[e,c]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[u,p]=(0,a.useState)(""),[g,b]=(0,a.useState)(""),[f,y]=(0,a.useState)(!1),[j,N]=(0,a.useState)(!1);return(0,s.jsxs)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 pt-28 pb-10 text-left",children:[(0,s.jsxs)("div",{className:"border-b border-gray-200 pb-5 mb-8",children:[(0,s.jsx)("h1",{className:"text-3xl font-extrabold text-gray-900 tracking-tight",children:"ติดต่อเรา"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-gray-500 font-light",children:"ติดต่อเจ้าหน้าที่บริการงานธุรการร้านค้าและเสนอคำถาม/ข้อร้องเรียนวิทยาลัยเทคนิคเชียงใหม่"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 items-start",children:[(0,s.jsx)("div",{className:"space-y-4",children:(0,s.jsxs)(x.default,{variant:"white",className:"p-6 bg-white border border-gray-100 space-y-5",children:[(0,s.jsxs)("h2",{className:"text-base font-bold text-gray-900 flex items-center space-x-2 border-b border-gray-100 pb-3",children:[(0,s.jsx)("span",{className:"w-1.5 h-4 bg-accent rounded-full"}),(0,s.jsx)("span",{children:"ช่องทางการติดต่อ"})]}),(0,s.jsxs)("ul",{className:"space-y-4 text-sm font-light text-gray-600",children:[(0,s.jsxs)("li",{className:"flex items-start space-x-3.5",children:[(0,s.jsx)(l.MapPin,{className:"w-5 h-5 text-accent flex-shrink-0 mt-0.5"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"font-semibold text-gray-800",children:"ที่อยู่วิทยาลัย"}),(0,s.jsx)("span",{className:"mt-0.5 leading-relaxed",children:"9 ถนนห้วยแก้ว ต.สุเทพ อ.เมืองเชียงใหม่ จ.เชียงใหม่ 50200"})]})]}),(0,s.jsxs)("li",{className:"flex items-start space-x-3.5",children:[(0,s.jsx)(r.Phone,{className:"w-5 h-5 text-accent flex-shrink-0 mt-0.5"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"font-semibold text-gray-800",children:"โทรศัพท์ติดต่อ"}),(0,s.jsx)("span",{className:"mt-0.5",children:"053-221402"})]})]}),(0,s.jsxs)("li",{className:"flex items-start space-x-3.5",children:[(0,s.jsx)(t.Mail,{className:"w-5 h-5 text-accent flex-shrink-0 mt-0.5"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"font-semibold text-gray-800",children:"อีเมลแผนกธุรการ"}),(0,s.jsx)("span",{className:"mt-0.5",children:"info@cmtc.ac.th"})]})]}),(0,s.jsxs)("li",{className:"flex items-start space-x-3.5",children:[(0,s.jsx)(n,{className:"w-5 h-5 text-accent flex-shrink-0 mt-0.5"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"font-semibold text-gray-800",children:"เวลาทำการจัดส่ง"}),(0,s.jsx)("span",{className:"mt-0.5",children:"วันจันทร์ - วันศุกร์ 08:30 - 16:30 น."})]})]})]})]})}),(0,s.jsx)("div",{className:"lg:col-span-2",children:(0,s.jsxs)(x.default,{variant:"white",className:"p-6 md:p-8 bg-white border border-gray-100 space-y-6",children:[(0,s.jsxs)("h2",{className:"text-base font-bold text-gray-900 flex items-center space-x-2 border-b border-gray-100 pb-3",children:[(0,s.jsx)("span",{className:"w-1.5 h-4 bg-accent rounded-full"}),(0,s.jsx)("span",{children:"ส่งข้อความถึงเรา"})]}),j&&(0,s.jsxs)("div",{className:"p-4 bg-emerald-50 text-emerald-700 text-xs font-semibold rounded-xl border border-emerald-100 flex items-center space-x-2",children:[(0,s.jsx)(d.CheckCircle2,{className:"w-5 h-5 flex-shrink-0 text-emerald-600"}),(0,s.jsx)("span",{children:"ข้อความของคุณถูกส่งเรียบร้อยแล้ว! เจ้าหน้าที่จะติดต่อกลับภายใน 24 ชั่วโมงทำการ"})]}),(0,s.jsxs)("form",{onSubmit:s=>{s.preventDefault(),e&&m&&u&&g&&(y(!0),setTimeout(()=>{y(!1),N(!0),c(""),h(""),p(""),b(""),setTimeout(()=>N(!1),5e3)},800))},className:"space-y-4",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col space-y-1.5",children:[(0,s.jsx)("label",{htmlFor:"name-input",className:"text-xs font-bold text-gray-700",children:"ชื่อของคุณ"}),(0,s.jsx)("input",{id:"name-input",type:"text",required:!0,placeholder:"กรอกชื่อของคุณ...",value:e,onChange:e=>c(e.target.value),className:"border border-gray-200 rounded-xl px-4 py-2.5 text-sm focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent text-gray-800"})]}),(0,s.jsxs)("div",{className:"flex flex-col space-y-1.5",children:[(0,s.jsx)("label",{htmlFor:"email-input",className:"text-xs font-bold text-gray-700",children:"อีเมลติดต่อกลับ"}),(0,s.jsx)("input",{id:"email-input",type:"email",required:!0,placeholder:"example@email.com",value:m,onChange:e=>h(e.target.value),className:"border border-gray-200 rounded-xl px-4 py-2.5 text-sm focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent text-gray-800"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col space-y-1.5",children:[(0,s.jsx)("label",{htmlFor:"subject-input",className:"text-xs font-bold text-gray-700",children:"หัวข้อข้อความ"}),(0,s.jsx)("input",{id:"subject-input",type:"text",required:!0,placeholder:"กรอกหัวเรื่องสอบถาม...",value:u,onChange:e=>p(e.target.value),className:"border border-gray-200 rounded-xl px-4 py-2.5 text-sm focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent text-gray-800"})]}),(0,s.jsxs)("div",{className:"flex flex-col space-y-1.5",children:[(0,s.jsx)("label",{htmlFor:"message-input",className:"text-xs font-bold text-gray-700",children:"รายละเอียดข้อความ"}),(0,s.jsx)("textarea",{id:"message-input",required:!0,rows:4,placeholder:"กรอกรายละเอียดคำถามหรือข้อคิดเห็น...",value:g,onChange:e=>b(e.target.value),className:"border border-gray-200 rounded-xl px-4 py-2.5 text-sm focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent text-gray-800 resize-none"})]}),(0,s.jsx)("div",{className:"pt-2 text-right",children:(0,s.jsxs)(o.default,{type:"submit",variant:"primary",isLoading:f,className:"w-full sm:w-auto py-3 px-8 flex items-center justify-center space-x-2 shadow-luxury",children:[(0,s.jsx)(i,{className:"w-4 h-4"}),(0,s.jsx)("span",{children:"ส่งข้อความ"})]})})]})]})})]})]})}],78299)}]);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.29 |
proxy
|
phpinfo
|
Settings