File manager - Edit - /home/webapp69.cm.in.th/u69319090023/Shop23/_next/static/chunks/1v1d2ep35-7rq.js
Back
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,84026,e=>{"use strict";let t=(0,e.i(56420).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,t],84026)},49882,e=>{"use strict";let t=(0,e.i(56420).default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["Calendar",0,t],49882)},99847,e=>{"use strict";let t=(0,e.i(56420).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],99847)},48161,e=>{"use strict";let t=(0,e.i(56420).default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);e.s(["CheckCircle",0,t],48161)},61621,e=>{"use strict";e.s(["LocalStorageAdapter",0,class{async getItem(e){try{let t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(t){return console.error(`Error reading key "${e}" from LocalStorage:`,t),null}}async setItem(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(t){console.error(`Error writing key "${e}" to LocalStorage:`,t)}}async removeItem(e){try{localStorage.removeItem(e)}catch(t){console.error(`Error removing key "${e}" from LocalStorage:`,t)}}}])},58214,e=>{"use strict";let t=new(e.i(61621)).LocalStorageAdapter,s=new class{storage;constructor(e){this.storage=e}getKey(e){return`ctc_profile_${e}`}async getProfile(e){let t=await this.storage.getItem(this.getKey(e));if(t)return t;let s=await this.storage.getItem("ctc_accounts"),l=s?.find(t=>t.id===e);if(l){let t=l.email.toLowerCase().includes("student")||l.email.toLowerCase().includes("user3"),s={id:l.id,email:l.email,fullName:l.fullName,phone:l.phone||"053-211-048",studentId:l.studentId||("admin"===l.role?"ADM-2819":t?"632012800"+l.id.replace(/\D/g,""):"STF-5481"),role:l.role,isVerified:"approved"===l.status,memberSince:l.date||"01/07/2569"};return await this.saveProfile(e,s),s}return null}async saveProfile(e,t){await this.storage.setItem(this.getKey(e),t)}async deleteProfile(e){await this.storage.removeItem(this.getKey(e))}}(t),l=new class{repository;constructor(e=s){this.repository=e}async getProfile(e){try{let t=await this.repository.getProfile(e);if(!t)return{success:!1,error:{code:"NOT_FOUND",message:"ไม่พบข้อมูลโปรไฟล์ผู้ใช้งาน"}};return{success:!0,data:t}}catch(e){return{success:!1,error:{code:"DATABASE_ERROR",message:e?.message||"ข้อผิดพลาดในระบบฐานข้อมูล"}}}}async updateProfile(e,t){try{if(void 0!==t.fullName&&""===t.fullName.trim())return{success:!1,error:{code:"VALIDATION_ERROR",message:"ชื่อ-นามสกุลไม่สามารถปล่อยว่างได้"}};if(void 0!==t.phone&&!/^(0\d{8,9}|0\d{1,2}-\d{3,4}-\d{3,4})$/.test(t.phone.trim())&&""!==t.phone.trim())return{success:!1,error:{code:"VALIDATION_ERROR",message:"รูปแบบเบอร์โทรศัพท์ไม่ถูกต้อง (เช่น 0812345678 หรือ 081-234-5678)"}};let s=await this.repository.getProfile(e);if(!s)return{success:!1,error:{code:"NOT_FOUND",message:"ไม่พบข้อมูลโปรไฟล์ที่ต้องการแก้ไข"}};let l={...s,...t,id:s.id,email:s.email};await this.repository.saveProfile(e,l);{let t=localStorage.getItem("ctc_user");if(t){let e=JSON.parse(t);e.fullName=l.fullName,e.avatarUrl=l.avatarUrl,localStorage.setItem("ctc_user",JSON.stringify(e)),window.dispatchEvent(new Event("storage"))}let s=localStorage.getItem("ctc_accounts");if(s)try{let t=JSON.parse(s).map(t=>t.id===e?{...t,fullName:l.fullName}:t);localStorage.setItem("ctc_accounts",JSON.stringify(t))}catch(e){console.error("Error updating ctc_accounts:",e)}}return{success:!0,data:l}}catch(e){return{success:!1,error:{code:"DATABASE_ERROR",message:e?.message||"ไม่สามารถอัปเดตข้อมูลโปรไฟล์ได้"}}}}async deleteAccount(e){try{return await this.repository.deleteProfile(e),{success:!0,data:void 0}}catch(e){return{success:!1,error:{code:"DATABASE_ERROR",message:e?.message||"ไม่สามารถลบบัญชีผู้ใช้งานจากระบบได้"}}}}};e.s(["default",0,l],58214)},25981,e=>{"use strict";let t=(0,e.i(56420).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],25981)},64820,e=>{"use strict";var t=e.i(43476),s=e.i(71645),l=e.i(1279),a=e.i(84026),r=e.i(96315),c=e.i(75387),i=e.i(26091),o=e.i(49882),n=e.i(99847),d=e.i(48161),x=e.i(32781),m=e.i(25981);let g=(0,e.i(56420).default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);var h=e.i(44779),u=e.i(58214),f=e.i(56445);let p=[{id:"mech",name:"ช่างยนต์",svg:`<svg viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="50" fill="#FEE2E2"/> <circle cx="50" cy="45" r="20" fill="#FDBA74"/> <path d="M30 40C30 25 70 25 70 40C70 42 66 35 50 35C34 35 30 42 30 40Z" fill="#1F2937"/> <path d="M20 90C20 70 35 65 50 65C65 65 80 70 80 90H20Z" fill="#DC2626"/> <path d="M45 45V68L50 72L55 68V45H45Z" fill="#FDBA74"/> <path d="M35 65L50 80L65 65L50 70L35 65Z" fill="#B91C1C"/> </svg>`},{id:"elec",name:"ช่างไฟฟ้า",svg:`<svg viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="50" fill="#DBEAFE"/> <circle cx="50" cy="45" r="20" fill="#FDBA74"/> <path d="M30 40C30 25 70 25 70 40C70 42 66 35 50 35C34 35 30 42 30 40Z" fill="#1F2937"/> <path d="M20 90C20 70 35 65 50 65C65 65 80 70 80 90H20Z" fill="#2563EB"/> <path d="M45 45V68L50 72L55 68V45H45Z" fill="#FDBA74"/> <path d="M35 65L50 80L65 65L50 70L35 65Z" fill="#1D4ED8"/> </svg>`},{id:"mach",name:"ช่างกลโรงงาน",svg:`<svg viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="50" fill="#FFEDD5"/> <circle cx="50" cy="45" r="20" fill="#FDBA74"/> <path d="M30 40C30 25 70 25 70 40C70 42 66 35 50 35C34 35 30 42 30 40Z" fill="#1F2937"/> <path d="M20 90C20 70 35 65 50 65C65 65 80 70 80 90H20Z" fill="#EA580C"/> <path d="M45 45V68L50 72L55 68V45H45Z" fill="#FDBA74"/> <path d="M35 65L50 80L65 65L50 70L35 65Z" fill="#C2410C"/> </svg>`},{id:"civil",name:"ช่างก่อสร้าง",svg:`<svg viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="50" fill="#F5EBE6"/> <circle cx="50" cy="45" r="20" fill="#FDBA74"/> <path d="M30 40C30 25 70 25 70 40C70 42 66 35 50 35C34 35 30 42 30 40Z" fill="#1F2937"/> <path d="M20 90C20 70 35 65 50 65C65 65 80 70 80 90H20Z" fill="#8B4513"/> <path d="M45 45V68L50 72L55 68V45H45Z" fill="#FDBA74"/> <path d="M35 65L50 80L65 65L50 70L35 65Z" fill="#5C2D0B"/> </svg>`},{id:"male",name:"นักศึกษาชาย",svg:`<svg viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="50" fill="#F0FDF4"/> <circle cx="50" cy="45" r="20" fill="#FDBA74"/> <path d="M28 38C28 22 72 22 72 38C72 40 68 33 50 33C32 33 28 40 28 38Z" fill="#1F2937"/> <path d="M20 90C20 70 35 65 50 65C65 65 80 70 80 90H20Z" fill="#F3F4F6"/> <path d="M45 45V68L50 72L55 68V45H45Z" fill="#FDBA74"/> <path d="M48 68L52 68L54 85L50 90L46 85L48 68Z" fill="#1E3A8A"/> <path d="M35 65L45 72L50 66L55 72L65 65L50 68L35 65Z" fill="#FFFFFF"/> </svg>`},{id:"female",name:"นักศึกษาหญิง",svg:`<svg viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="50" fill="#FDF2F8"/> <circle cx="50" cy="45" r="20" fill="#FDBA74"/> <path d="M26 42C26 22 74 22 74 42V65C74 65 68 55 66 50C66 40 60 30 50 30C40 30 34 40 34 50C32 55 26 65 26 65V42Z" fill="#1F2937"/> <path d="M20 90C20 70 35 65 50 65C65 65 80 70 80 90H20Z" fill="#F3F4F6"/> <path d="M45 45V68L50 72L55 68V45H45Z" fill="#FDBA74"/> <circle cx="50" cy="69" r="3.5" fill="#111827"/> <path d="M40 65L50 69L40 73H40V65Z" fill="#111827"/> <path d="M60 65L50 69L60 73H60V65Z" fill="#111827"/> </svg>`}];e.s(["default",0,function(){let[e,y]=(0,s.useState)(null),[v,w]=(0,s.useState)(null),[b,N]=(0,s.useState)(!0),[j,C]=(0,s.useState)(!1),[L,F]=(0,s.useState)(null),[k,S]=(0,s.useState)(""),[A,M]=(0,s.useState)(""),[D,E]=(0,s.useState)(""),[B,I]=(0,s.useState)(!1),R=(0,s.useRef)(null),Z=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(L){let e=setTimeout(()=>F(null),4e3);return()=>clearTimeout(e)}},[L]),(0,s.useEffect)(()=>()=>{Z.current&&clearTimeout(Z.current)},[]);let O=async t=>{if(t.preventDefault(),!e)return;C(!0);let s=await u.default.updateProfile(e.id,{fullName:k,phone:A,avatarUrl:D});if(s.success){w(s.data),F({message:"บันทึกข้อมูลการเปลี่ยนแปลงเรียบร้อยแล้ว",type:"success"});let t={...e,fullName:k,avatarUrl:D};localStorage.setItem("ctc_user",JSON.stringify(t)),window.dispatchEvent(new Event("storage"))}else F({message:s.error.message,type:"error"});C(!1)};(0,s.useEffect)(()=>{let e=h.default.getCurrentUser();if(e){var t;y(e),t=e.id,N(!0),u.default.getProfile(t).then(e=>{e.success?(w(e.data),S(e.data.fullName),M(e.data.phone),E(e.data.avatarUrl||"")):F({message:e.error.message,type:"error"}),N(!1)})}},[]);let P=async e=>{let t=e.target.files?.[0];if(!t)return;if(!t.type.startsWith("image/"))return void F({message:"กรุณาเลือกเฉพาะไฟล์รูปภาพ (JPG, PNG)",type:"error"});let s=new FileReader;s.onloadend=async()=>{try{let e,t=await (e=s.result,new Promise((t,s)=>{let l=new Image;l.src=e,l.onload=()=>{let e=document.createElement("canvas"),s=l.width,a=l.height;s>a?s>250&&(a*=250/s,s=250):a>250&&(s*=250/a,a=250),e.width=s,e.height=a;let r=e.getContext("2d");r&&r.drawImage(l,0,0,s,a),t(e.toDataURL("image/jpeg",.8))},l.onerror=e=>s(e)}));E(t)}catch(e){F({message:"เกิดข้อผิดพลาดในการประมวลผลขนาดรูปภาพ",type:"error"})}},s.readAsDataURL(t)};return b?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 space-y-3 font-prompt",children:[(0,t.jsx)(x.Loader2,{className:"w-8 h-8 text-accent animate-spin"}),(0,t.jsx)("p",{className:"text-sm text-gray-500 font-light",children:"กำลังโหลดข้อมูลโปรไฟล์ส่วนตัว..."})]}):(0,t.jsxs)("div",{className:"space-y-6 text-left font-prompt",children:[(0,t.jsxs)("div",{className:"border-b border-gray-100 pb-4 select-none",children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-gray-900",children:"โปรไฟล์ของฉัน"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 font-light mt-1",children:"ดูและปรับปรุงข้อมูลส่วนตัว รหัสประจำตัวนักศึกษา และรายละเอียดในวิทยาลัยของคุณ"})]}),L&&(0,t.jsxs)("div",{className:`p-4 rounded-2xl border flex items-start space-x-2.5 text-xs ${"success"===L.type?"bg-emerald-50 text-emerald-700 border-emerald-100":"bg-red-50 text-red-700 border-red-150/40"}`,children:["success"===L.type?(0,t.jsx)(d.CheckCircle,{className:"w-5 h-5 flex-shrink-0 text-emerald-500"}):(0,t.jsx)(n.AlertCircle,{className:"w-5 h-5 flex-shrink-0 text-red-500"}),(0,t.jsx)("span",{className:"font-semibold pt-0.5 leading-normal",children:L.message})]}),(0,t.jsxs)("form",{onSubmit:O,className:"space-y-6",children:[(0,t.jsxs)("div",{className:"bg-gray-50/50 border border-gray-100 rounded-3xl p-6 flex flex-col md:flex-row items-center gap-6 select-none",children:[(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsx)(f.default,{name:k,avatarUrl:D,size:96,className:"ring-4 ring-white shadow-lg"}),D&&(0,t.jsx)("button",{type:"button",onClick:()=>{E("")},className:"absolute -top-1 -right-1 bg-red-600 hover:bg-red-700 text-white rounded-full p-1.5 shadow-md transition-colors",title:"ลบรูปโปรไฟล์",children:(0,t.jsx)("svg",{className:"w-3.5 h-3.5 fill-current",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]}),(0,t.jsxs)("div",{className:"flex-1 space-y-3 text-center md:text-left",children:[(0,t.jsx)("span",{className:"text-sm font-bold text-gray-800 block",children:"รูปโปรไฟล์ผู้ใช้งาน"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 font-light leading-relaxed",children:"รองรับไฟล์รูปภาพทั่วไป (JPG, PNG) ระบบจะทำการย่อและบีบอัดขนาดภาพให้พอเหมาะโดยอัตโนมัติ เพื่อความเร็วในการดาวน์โหลด"}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center md:justify-start gap-2.5 pt-1",children:[(0,t.jsx)("input",{ref:R,type:"file",accept:"image/*",onChange:P,className:"hidden"}),(0,t.jsxs)("button",{type:"button",onClick:()=>R.current?.click(),className:"inline-flex items-center space-x-1.5 px-4 py-2 border border-gray-200 bg-white hover:bg-gray-50 rounded-xl text-xs font-semibold text-gray-700 transition-colors shadow-sm cursor-pointer",children:[(0,t.jsx)(m.Upload,{className:"w-3.5 h-3.5 text-gray-400"}),(0,t.jsx)("span",{children:"อัปโหลดรูปภาพ"})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>I(!B),className:`inline-flex items-center space-x-1.5 px-4 py-2 border rounded-xl text-xs font-semibold transition-colors shadow-sm cursor-pointer ${B?"border-accent bg-rose-50 text-accent":"border-gray-200 bg-white hover:bg-gray-50 text-gray-700"}`,children:[(0,t.jsx)(g,{className:"w-3.5 h-3.5 text-gray-400"}),(0,t.jsx)("span",{children:"รูปประจำวิชาชีพ"})]})]})]})]}),B&&(0,t.jsxs)("div",{className:"bg-white border border-gray-150 rounded-3xl p-6 space-y-4 animate-in fade-in slide-in-from-top-3 duration-200 select-none",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-sm font-bold text-gray-800 block",children:"เลือกรูปประจำวิชาชีพของวิทยาลัย"}),(0,t.jsx)("p",{className:"text-xs text-gray-400 font-light mt-0.5",children:"เลือกภาพจำลองสัญลักษณ์เครื่องแต่งกายนักศึกษาของแต่ละแผนกวิชา"})]}),(0,t.jsx)("div",{className:"grid grid-cols-3 sm:grid-cols-6 gap-3.5",children:p.map(e=>{let s=D==="data:image/svg+xml;utf8,"+encodeURIComponent(e.svg);return(0,t.jsxs)("button",{type:"button",onClick:()=>{E("data:image/svg+xml;utf8,"+encodeURIComponent(e.svg))},className:`flex flex-col items-center p-2 rounded-2xl border transition-all cursor-pointer ${s?"border-accent bg-rose-50/40 ring-1 ring-accent shadow-sm scale-105":"border-gray-150 bg-white hover:bg-gray-50/50 hover:border-gray-300"}`,children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-full overflow-hidden mb-2",dangerouslySetInnerHTML:{__html:e.svg}}),(0,t.jsx)("span",{className:"text-[10px] font-bold text-gray-700 truncate w-full text-center",children:e.name})]},e.id)})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col space-y-1.5",children:[(0,t.jsx)("label",{htmlFor:"fullName-input",className:"text-xs font-bold text-gray-700",children:"ชื่อ-นามสกุลจริง"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(l.User,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),(0,t.jsx)("input",{id:"fullName-input",type:"text",required:!0,placeholder:"กรอกชื่อ-นามสกุลจริงของคุณ...",value:k,onChange:e=>{S(e.target.value)},className:"w-full border border-gray-200 rounded-2xl py-2.5 pl-11 pr-4 text-sm focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent text-gray-800"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col space-y-1.5",children:[(0,t.jsx)("label",{htmlFor:"phone-input",className:"text-xs font-bold text-gray-700",children:"เบอร์โทรศัพท์มือถือ"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(c.Phone,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),(0,t.jsx)("input",{id:"phone-input",type:"text",required:!0,placeholder:"081-234-5678",value:A,onChange:e=>{M(e.target.value)},className:"w-full border border-gray-200 rounded-2xl py-2.5 pl-11 pr-4 text-sm focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent text-gray-800"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col space-y-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-bold text-gray-400 select-none",children:"อีเมลนักศึกษา / บุคลากร (แก้ไขไม่ได้)"}),(0,t.jsxs)("div",{className:"relative bg-gray-50 border border-gray-100 rounded-2xl py-2.5 pl-11 pr-4 text-sm text-gray-500 cursor-not-allowed",children:[(0,t.jsx)(r.Mail,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-300"}),(0,t.jsx)("span",{children:v?.email})]})]}),(0,t.jsxs)("div",{className:"flex flex-col space-y-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-bold text-gray-400 select-none",children:"รหัสประจำตัวนักศึกษา / สังกัด (แก้ไขไม่ได้)"}),(0,t.jsxs)("div",{className:"relative bg-gray-50 border border-gray-100 rounded-2xl py-2.5 pl-11 pr-4 text-sm text-gray-500 cursor-not-allowed",children:[(0,t.jsx)(i.FileText,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-300"}),(0,t.jsx)("span",{children:v?.studentId})]})]}),(0,t.jsxs)("div",{className:"md:col-span-2 bg-[#FBF9F6] border border-gray-150 p-4 rounded-2xl flex flex-col sm:flex-row gap-4 items-start sm:items-center justify-between text-xs select-none",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(o.Calendar,{className:"w-5 h-5 text-gray-400"}),(0,t.jsxs)("div",{className:"text-left",children:[(0,t.jsx)("span",{className:"text-gray-400 block font-light",children:"วันที่เข้าเป็นสมาชิกร้านค้า"}),(0,t.jsx)("span",{className:"font-bold text-gray-700 block mt-0.5",children:v?.memberSince})]})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(a.ShieldCheck,{className:"w-5 h-5 text-gray-400"}),(0,t.jsxs)("div",{className:"text-left",children:[(0,t.jsx)("span",{className:"text-gray-400 block font-light",children:"ระดับการอนุญาตสิทธิ์"}),(0,t.jsx)("span",{className:"font-bold text-gray-700 uppercase block mt-0.5",children:v?.role})]})]})]}),(0,t.jsx)("div",{className:"md:col-span-2 pt-4 flex items-center justify-end",children:(0,t.jsx)("button",{type:"submit",disabled:j,className:"px-6 py-2.5 bg-accent hover:bg-highlight disabled:bg-gray-300 text-white font-bold text-sm rounded-xl shadow-md hover:shadow-luxury-glow transition-all hover:scale-[1.02] active:scale-[0.98] cursor-pointer flex items-center gap-2 font-prompt",children:j?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.Loader2,{className:"w-4 h-4 animate-spin"}),(0,t.jsx)("span",{children:"กำลังบันทึกข้อมูล..."})]}):(0,t.jsx)("span",{children:"บันทึกข้อมูล"})})})]})]})]})}],64820)}]);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.34 |
proxy
|
phpinfo
|
Settings