File manager - Edit - /home/webapp69.cm.in.th/u69319090023/Shop23/_next/static/chunks/0uhg68nvao9_l.js
Back
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99738,e=>{"use strict";let t=(0,e.i(56420).default)("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);e.s(["ShoppingCart",0,t],99738)},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)},6537,e=>{"use strict";let t=(0,e.i(56420).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",0,t],6537)},67927,e=>{"use strict";let t=(0,e.i(56420).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],67927)},28623,e=>{"use strict";let t=(0,e.i(56420).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],28623)},88442,e=>{"use strict";var t=e.i(43476);let s=({className:e=""})=>(0,t.jsx)("div",{className:`animate-pulse rounded-md bg-gray-200 dark:bg-gray-700 ${e}`}),r=()=>(0,t.jsxs)("div",{className:"flex flex-col overflow-hidden bg-white shadow-card-soft rounded-premium p-4 border border-gray-100",children:[(0,t.jsx)(s,{className:"aspect-square w-full rounded-premium mb-4"}),(0,t.jsx)(s,{className:"h-4 w-1/3 mb-2"}),(0,t.jsx)(s,{className:"h-6 w-3/4 mb-3"}),(0,t.jsxs)("div",{className:"flex items-center justify-between mt-auto pt-2",children:[(0,t.jsx)(s,{className:"h-6 w-1/4"}),(0,t.jsx)(s,{className:"h-10 w-24 rounded-full"})]})]});e.s(["SkeletonProductGrid",0,({count:e=4})=>(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:Array.from({length:e}).map((e,s)=>(0,t.jsx)(r,{},s))}),"default",0,s])},68877,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],68877)},31310,e=>{"use strict";let t=(0,e.i(56420).default)("shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]);e.s(["Shirt",0,t],31310)},29926,e=>{"use strict";var t=e.i(21993);class s{static getDynamicCategories(){try{let e=localStorage.getItem("ctc_categories");if(e){let t=JSON.parse(e);if(Array.isArray(t)&&t.length>0)return t.filter(e=>!1!==e.active).map(e=>({id:e.id,name:e.name,slug:e.slug||e.id.replace("cat_",""),iconName:e.icon||"Tag",image:e.image||"/u69319090023/Shop23/images/categories/accessories.svg"}))}}catch(e){console.error(e)}return t.mockCategories}static async getCategories(){return new Promise(e=>{e(s.getDynamicCategories())})}static async getCategoryById(e){return s.getDynamicCategories().find(t=>t.id===e)}static async getCategoryBySlug(e){return s.getDynamicCategories().find(t=>t.slug===e)}}e.s(["CategoryService",0,s,"default",0,s])},13285,e=>{"use strict";let t=(0,e.i(56420).default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);e.s(["Layers",0,t],13285)},25953,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(22016),a=e.i(67927),l=e.i(31310),i=e.i(56420);let n=(0,i.default)("square-check-big",[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);var o=e.i(13285);let c=(0,i.default)("wind",[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]]);var d=e.i(80799),x=e.i(28623),m=e.i(21993),h=e.i(29926);let p=()=>{let[e,i]=(0,s.useState)(m.mockCategories);return(0,s.useEffect)(()=>{let e=()=>{h.CategoryService.getCategories().then(e=>{e&&e.length>0&&i(e)})};return e(),window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]),(0,t.jsxs)("section",{className:"bg-gradient-to-b from-[#1E0306] via-[#160204] to-[#120103] pt-2 pb-8 sm:pb-10 px-4 sm:px-6 lg:px-8 border-b border-white/5 relative z-10 font-prompt",children:[(0,t.jsx)("style",{children:` .scrollbar-none::-webkit-scrollbar { display: none; } .scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; } `}),(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center mb-5 border-b border-white/5 pb-3",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("div",{className:"w-2 h-2 rounded-full bg-[#E5C158]"}),(0,t.jsx)("h2",{className:"text-lg sm:text-xl font-bold text-white tracking-wide",children:"หมวดหมู่สินค้า"})]}),(0,t.jsxs)(r.default,{href:"/categories",className:"group flex items-center text-xs sm:text-sm font-semibold text-[#E5C158] hover:text-[#FFF2D6] transition-colors",children:[(0,t.jsx)("span",{children:"ดูทั้งหมด"}),(0,t.jsx)(a.ChevronRight,{className:"w-4 h-4 ml-0.5 transition-transform duration-200 group-hover:translate-x-0.5"})]})]}),(0,t.jsx)("div",{className:"scrollbar-none overflow-x-auto flex flex-nowrap lg:grid lg:grid-cols-6 justify-start lg:justify-between items-center gap-4 sm:gap-6 pb-2 lg:pb-0 px-1",children:e.map(e=>(0,t.jsxs)(r.default,{href:`/products?category=${e.slug}`,passHref:!0,className:"group flex flex-col items-center justify-center text-center cursor-pointer flex-shrink-0 w-20 sm:w-auto",children:[(0,t.jsx)("div",{className:"w-14 h-14 sm:w-16 sm:h-16 rounded-2xl flex items-center justify-center bg-[#250509] border border-[#D4AF37]/20 shadow-md transition-all duration-300 group-hover:scale-105 group-hover:bg-[#800A0A] group-hover:border-[#D4AF37]/60 group-hover:shadow-[0_4px_16px_rgba(128,10,10,0.5)]",children:((e,s="w-6 h-6 sm:w-7 sm:h-7 text-[#E5C158] transition-colors duration-300 group-hover:text-white")=>{switch(e){case"Shirt":return(0,t.jsx)(l.Shirt,{className:s});case"CheckSquare":return(0,t.jsx)(n,{className:s});case"Layers":return(0,t.jsx)(o.Layers,{className:s});case"Wind":return(0,t.jsx)(c,{className:s});case"Tag":return(0,t.jsx)(d.Tag,{className:s});default:return(0,t.jsx)(x.Sparkles,{className:s})}})(e.iconName)}),(0,t.jsx)("span",{className:"mt-2.5 text-xs sm:text-sm font-semibold text-gray-200 group-hover:text-[#E5C158] transition-colors duration-200 tracking-wide text-center truncate max-w-[80px] sm:max-w-full",children:e.name})]},e.id))})]})]})};e.s(["CategoriesGrid",0,p,"default",0,p],25953)},23067,e=>{"use strict";let t=()=>{let e=window.location.pathname;return e.includes("/u69319090023/Shop23")?"/u69319090023/Shop23/api":e.includes("/Shop23")?"/Shop23/api":e.includes("/CMTC SHOP")||e.includes("/CMTC%20SHOP")?"/CMTC%20SHOP/api":"/api"},s=e=>Array.isArray(e)?e.filter(e=>{var t;return e&&e.id&&!((t=e.id)&&(t.startsWith("prod_170000000000")||t.startsWith("prod_tshirt_")||t.startsWith("prod_polo_")||t.startsWith("prod_hoodie_")||t.startsWith("prod_shop_")||t.startsWith("prod_cap_")||t.startsWith("prod_belt_")||t.startsWith("prod_badge_")||t.startsWith("prod_jacket_")||t.startsWith("prod_amulet_")||t.startsWith("prod_bag_")||t.startsWith("prod_backpack_")||!/^prod_\d+$/.test(t)))&&!e.id.startsWith("prod_170000000000")&&"เสื้อเกราะ"!==e.name&&"รถมอเตอร์ไซค์ไฟฟ้า"!==e.name&&"รถมอเตอร์ไซค์"!==e.name}):[],r=()=>{let e=localStorage.getItem("ctc_products"),t=[];if(e)try{t=JSON.parse(e)}catch{t=[]}let r=s(t);return r.length!==t.length&&(t=r,localStorage.setItem("ctc_products",JSON.stringify(t))),t},a=e=>{let t=s(e);localStorage.setItem("ctc_products",JSON.stringify(t)),window.dispatchEvent(new Event("storage"))},l=class{static async getProducts(){let e=r();try{let r=t(),l=await fetch(`${r}/products.php`,{cache:"no-store"});if(l.ok){let t=await l.json();if(t&&t.success&&Array.isArray(t.data)&&t.data.length>0){let r=s(t.data),l=new Map;r.forEach(e=>l.set(e.id,e)),e.forEach(e=>{l.has(e.id)||l.set(e.id,e)});let i=Array.from(l.values());return a(i),i}}}catch(e){}return e}static async getRecommendedProducts(){let e=await this.getProducts();if(!e||0===e.length)return[];let t=e.filter(e=>e.isRecommended);return t.length>=3?t:[...t,...e.filter(e=>!e.isRecommended)]}static async getProductById(e){let s=r(),l=s.find(t=>t.id===e);if(l)return l;try{let r=t(),l=await fetch(`${r}/products.php?id=${encodeURIComponent(e)}`,{cache:"no-store"});if(l.ok){let t=await l.json();if(t&&t.success&&t.data){let r=t.data,l=[r,...s.filter(t=>t.id!==e)];return a(l),r}}}catch{}}static async getProductBySlug(e){let s=r(),l=s.find(t=>t.slug===e);if(l)return l;try{let r=t(),l=await fetch(`${r}/products.php?slug=${encodeURIComponent(e)}`,{cache:"no-store"});if(l.ok){let e=await l.json();if(e&&e.success&&e.data){let t=e.data,r=[t,...s.filter(e=>e.id!==t.id)];return a(r),t}}}catch{}}static async saveProduct(e){let s=r();a(-1!==s.findIndex(t=>t.id===e.id)?s.map(t=>t.id===e.id?e:t):[e,...s]);try{let s=t();await fetch(`${s}/products.php`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch(e){console.warn("Backend sync failed, saved locally:",e)}return e}static async deleteProduct(e){a(r().filter(t=>t.id!==e));try{let s=t();await fetch(`${s}/products.php?id=${encodeURIComponent(e)}`,{method:"DELETE"})}catch(e){console.warn("Backend delete sync failed:",e)}return!0}static async updateProducts(e){return a(e),!0}static async updateProductStock(e,s,l){let i=r(),n=i.findIndex(t=>t.id===e);if(-1!==n){i[n].inStock=s,void 0!==l&&(i[n].stockCount=l),a(i);try{let r=t();await fetch(`${r}/products.php`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,inStock:s,stockCount:l})})}catch(e){}return!0}return!1}};e.s(["default",0,l])},86563,e=>{"use strict";let t=(0,e.i(56420).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",0,t],86563)},42129,55906,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(22016),a=e.i(57688),l=e.i(86563),i=e.i(99738),n=e.i(31310),o=e.i(93123);e.s(["default",0,({product:e,onAddToCartClick:c})=>{let{addItem:d}=(0,o.useCart)(),[x,m]=(0,s.useState)(!1),h=e.compareAtPrice&&e.compareAtPrice>e.price,p=(e=>{switch(e){case"prod_tshirt_classic":return{tag:"ผ้าฝ้าย 100%",sold:154};case"prod_polo_official":return{tag:"ถูกระเบียบ 100%",sold:320};case"prod_hoodie_premium":return{tag:"บุผ้าสำลีหนาพิเศษ",sold:88};case"prod_shop_mechanic":return{tag:"ทนทานพิเศษ",sold:95};case"prod_cap_ctc":return{tag:"ปัก 3มิติ นูน",sold:110};case"prod_shop_electric":return{tag:"ระบายความร้อนดี",sold:72};case"prod_bag_backpack":return{tag:"ผ้าคอนดูร่ากันน้ำ",sold:38};case"prod_jacket_sport":return{tag:"ระบายลมยอดเยี่ยม",sold:52};case"prod_amulet_gold":return{tag:"จำกัด 99 องค์",sold:85};case"prod_amulet_copper":return{tag:"จำกัด 499 องค์",sold:310};case"prod_amulet_silver":return{tag:"จำกัด 199 องค์",sold:142};default:return{tag:"สินค้าแนะนำ",sold:45}}})(e.id),g=h&&e.compareAtPrice?Math.round((e.compareAtPrice-e.price)/e.compareAtPrice*100):0,u=e.images&&e.images.length>0?e.images[0]:"";return(0,t.jsx)(r.default,{href:`/products/${e.id}`,passHref:!0,className:"block h-full group",children:(0,t.jsxs)("div",{className:"bg-white rounded-2xl border border-[#ECE8E1] hover:border-[#D4AF37]/50 p-3.5 sm:p-4 flex flex-col h-full shadow-[0_2px_8px_rgba(0,0,0,0.03)] hover:shadow-[0_12px_24px_rgba(0,0,0,0.08)] hover:-translate-y-1 transition-all duration-300 cursor-pointer font-prompt",children:[(0,t.jsxs)("div",{className:"relative aspect-square w-full rounded-xl bg-[#F8F6F2] overflow-hidden mb-3.5 select-none flex items-center justify-center border border-[#F0ECE4]",children:[!x&&u?(0,t.jsx)("div",{className:"relative w-full h-full p-4 transition-transform duration-300 group-hover:scale-105",children:(0,t.jsx)(a.default,{src:u,alt:e.name,fill:!0,sizes:"(max-width: 640px) 50vw, (max-width: 1024px) 33vw, 25vw",className:"object-contain",onError:()=>m(!0)})}):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center text-gray-300 p-4 space-y-1",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-full bg-[#EAE6DF] flex items-center justify-center text-[#800A0A]/40",children:(0,t.jsx)(n.Shirt,{className:"w-6 h-6"})}),(0,t.jsx)("span",{className:"text-[10px] text-gray-400 font-medium",children:"CMTC SHOP"})]}),(0,t.jsxs)("div",{className:"absolute top-2.5 left-2.5 z-10 flex flex-col gap-1 items-start",children:[e.isNew&&(0,t.jsx)("span",{className:"bg-emerald-600 text-white text-[9px] font-bold px-2 py-0.5 rounded-md tracking-wider shadow-sm",children:"ใหม่"}),h&&(0,t.jsxs)("span",{className:"bg-[#800A0A] text-white text-[9px] font-bold px-2 py-0.5 rounded-md tracking-wider shadow-sm",children:["ลด ",g,"%"]})]}),!e.inStock&&(0,t.jsx)("div",{className:"absolute inset-0 bg-white/70 backdrop-blur-[1px] flex items-center justify-center z-10",children:(0,t.jsx)("span",{className:"bg-gray-800 text-white text-[11px] font-bold px-3 py-1 rounded-full shadow-sm",children:"สินค้าหมด"})})]}),(0,t.jsxs)("div",{className:"flex flex-col flex-grow text-left space-y-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between text-xs text-gray-500 font-light select-none",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,t.jsx)(l.Star,{className:"w-3.5 h-3.5 fill-amber-400 stroke-amber-400"}),(0,t.jsx)("span",{className:"font-semibold text-gray-700 text-[11px]",children:e.rating.toFixed(1)}),(0,t.jsxs)("span",{className:"text-[10px] text-gray-400",children:["(",e.reviewsCount,")"]})]}),(0,t.jsxs)("span",{className:"text-[10px] sm:text-[11px] font-medium text-gray-400",children:["ขายแล้ว ",p.sold]})]}),(0,t.jsx)("div",{className:"pt-0.5 select-none",children:(0,t.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-[9px] font-semibold bg-rose-50 text-[#800A0A] border border-rose-100/60",children:p.tag})}),(0,t.jsx)("h3",{className:"text-xs sm:text-sm font-bold text-gray-800 line-clamp-2 group-hover:text-[#800A0A] transition-colors duration-200 min-h-[36px] leading-snug pt-0.5",children:e.name}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-2 mt-auto border-t border-gray-50",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("span",{className:"text-sm sm:text-base font-extrabold text-[#800A0A]",children:["฿",e.price.toLocaleString()]}),h&&e.compareAtPrice&&(0,t.jsxs)("span",{className:"text-[10px] sm:text-xs text-gray-400 line-through",children:["฿",e.compareAtPrice.toLocaleString()]})]}),(0,t.jsx)("button",{type:"button",onClick:t=>{if(t.preventDefault(),t.stopPropagation(),e.sizes&&e.sizes.length>0&&(1!==e.sizes.length||"Free Size"!==e.sizes[0])&&c)c(e);else{let t=e.sizes&&e.sizes.length>0?e.sizes[0]:"Free Size";d(e,1,t)}},disabled:!e.inStock,className:`p-2 rounded-xl transition-all duration-200 shadow-sm flex items-center justify-center space-x-1 ${!e.inStock?"bg-gray-100 text-gray-400 cursor-not-allowed border border-gray-200":e.isPreOrder?"bg-amber-600 hover:bg-amber-700 text-white hover:scale-105 active:scale-95 px-2.5 py-1.5":"bg-[#800A0A] hover:bg-[#991B1B] text-white hover:scale-105 active:scale-95"}`,title:e.isPreOrder?"สั่งจองล่วงหน้า":"เพิ่มลงตะกร้า",children:e.isPreOrder?(0,t.jsx)("span",{className:"text-[10px] font-bold tracking-tight",children:"สั่งจอง"}):(0,t.jsx)(i.ShoppingCart,{className:"w-3.5 h-3.5"})})]})]})]})})}],42129);let c=()=>{let[e,l]=(0,s.useState)(0),[i,n]=(0,s.useState)(null),[o,c]=(0,s.useState)(null);(0,s.useEffect)(()=>{let e=setInterval(()=>{l(e=>3===e?0:e+1)},4500);return()=>clearInterval(e)},[]);let d=[{tag:"เครื่องแบบมาตรฐาน",title:"WELCOME TO CMTC SHOP",subtitle:"ชุดนักเรียน นักศึกษา และเสื้อช็อป ครบจบในที่เดียว"},{tag:"คูปองเปิดเทอมใหม่",title:"NEW SEMESTER SALE",subtitle:"เก็บคูปองรับส่วนลดพิเศษ ต้อนรับเปิดภาคเรียน"},{tag:"ถูกระเบียบ 100%",title:"UNIFORM EXCELLENCE",subtitle:"คัดสรรตามมาตรฐานวิทยาลัยเทคนิคเชียงใหม่"},{tag:"บริการจัดส่งรวดเร็ว",title:"FAST DELIVERY SERVICE",subtitle:"จัดส่งตรงถึงมือ หรือสั่งซื้อล่วงหน้าแล้วรับที่แผนก"}];return(0,t.jsx)(r.default,{href:"/products",className:"block h-full group font-prompt",children:(0,t.jsxs)("div",{onTouchStart:e=>{n(e.targetTouches[0].clientY)},onTouchMove:e=>{c(e.targetTouches[0].clientY)},onTouchEnd:()=>{if(!i||!o)return;let e=i-o;e>50?l(e=>3===e?0:e+1):e<-50&&l(e=>0===e?3:e-1),n(null),c(null)},className:"relative flex flex-col justify-between h-full min-h-[340px] overflow-hidden rounded-2xl bg-gradient-to-br from-[#800A0A] via-[#630606] to-[#3D0204] border border-[#D4AF37]/30 hover:border-[#D4AF37]/60 hover:-translate-y-1 hover:shadow-[0_12px_24px_rgba(128,10,10,0.3)] transition-all duration-300 cursor-pointer p-5 text-white select-none shadow-sm",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-2.5 pt-1 text-center",children:[(0,t.jsx)("div",{className:"w-11 h-11 relative bg-white/10 rounded-full p-1.5 border border-[#D4AF37]/40 shadow-inner flex items-center justify-center",children:(0,t.jsx)(a.default,{src:"/u69319090023/Shop23/logo_crest.png",alt:"CMTC Crest",fill:!0,className:"object-contain p-1"})}),(0,t.jsx)("div",{className:"inline-flex px-2.5 py-0.5 rounded-full bg-[#D4AF37]/20 border border-[#D4AF37]/30 text-[10px] font-bold text-[#FFF2D6] tracking-wider uppercase",children:d[e].tag})]}),(0,t.jsx)("div",{className:"flex-grow flex items-center justify-center py-4 text-center",children:(0,t.jsxs)("div",{className:"space-y-1.5 animate-in fade-in duration-300",children:[(0,t.jsx)("h3",{className:"text-base sm:text-lg font-black tracking-wider leading-tight uppercase text-[#FFF2D6]",children:d[e].title}),(0,t.jsx)("p",{className:"text-xs text-gray-200 font-light leading-relaxed max-w-[190px] mx-auto",children:d[e].subtitle})]})}),(0,t.jsxs)("div",{className:"space-y-3.5 pb-1 flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"w-full max-w-[150px] bg-[#E5C158] hover:bg-[#FFF2D6] text-[#800A0A] py-2 px-3.5 rounded-xl text-center text-xs font-bold shadow-md transition-all transform active:scale-95 flex items-center justify-center space-x-1.5",children:[(0,t.jsx)("span",{children:"ช้อปเลยตอนนี้"}),(0,t.jsx)("span",{children:"→"})]}),(0,t.jsx)("div",{className:"flex space-x-1.5 select-none",children:d.map((s,r)=>(0,t.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),l(r)},className:`h-1.5 rounded-full transition-all duration-300 ${e===r?"bg-[#E5C158] w-4":"bg-white/30 w-1.5"}`,"aria-label":`Go to slide ${r+1}`},r))})]})]})})};e.s(["CarouselBannerCard",0,c,"default",0,c],55906)},48700,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(57688),a=e.i(22016),l=e.i(68877),i=e.i(63448),n=e.i(31310);let o=()=>{let[e,o]=s.default.useState("th");s.default.useEffect(()=>{o(localStorage.getItem("preferred_language")||"th");let e=()=>{o(localStorage.getItem("preferred_language")||"th")};return window.addEventListener("languageChange",e),window.addEventListener("storage",e),()=>{window.removeEventListener("languageChange",e),window.removeEventListener("storage",e)}},[]);let c={th:{title:"เสื้อผ้าและสินค้า",titleAccent:"สำหรับชาว CMTC",subtitle:"เลือกสไตล์ที่ใช่ ใส่ความเป็นตัวคุณ คัดสรรคุณภาพระดับพรีเมียม",ctaPrimary:"ดูสินค้าทั้งหมด",ctaSecondary:"เลือกตามหมวดหมู่"},en:{title:"Clothing & Gear",titleAccent:"for CMTC Community",subtitle:"Choose the style that fits, wear your identity with premium quality.",ctaPrimary:"Shop All Products",ctaSecondary:"Shop Categories"}}[e]||{title:"เสื้อผ้าและสินค้า",titleAccent:"สำหรับชาว CMTC",subtitle:"เลือกสไตล์ที่ใช่ ใส่ความเป็นตัวคุณ คัดสรรคุณภาพระดับพรีเมียม",ctaPrimary:"ดูสินค้าทั้งหมด",ctaSecondary:"เลือกตามหมวดหมู่"};return(0,t.jsxs)("section",{className:"relative min-h-[380px] sm:min-h-[420px] lg:h-[450px] flex items-center overflow-hidden border-b border-white/5 py-8 sm:py-10 lg:py-0 bg-cover bg-no-repeat bg-center hero-bg-responsive",children:[(0,t.jsx)("style",{children:` @keyframes float-gentle { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } } .animate-float-gentle { animation: float-gentle 4s ease-in-out infinite; } @keyframes pulse-opacity { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.7; } } .animate-pulse-opacity { animation: pulse-opacity 4s ease-in-out infinite; } @media (min-width: 1024px) { .hero-bg-responsive { background-image: url('/u69319090023/Shop23/images/hero_bg.png'); } } @media (max-width: 1023px) { .hero-bg-responsive { background-image: url('/u69319090023/Shop23/images/hero_bg_mobile.png'); background-position: center bottom -10px; } } `}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b lg:bg-gradient-to-r from-[#200205] via-[#200205]/92 to-[#200205]/60 lg:to-transparent pointer-events-none z-0"}),(0,t.jsxs)("div",{className:"relative z-10 mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"hidden lg:grid grid-cols-12 gap-8 items-center w-full",children:[(0,t.jsxs)("div",{className:"lg:col-span-7 text-left flex flex-col items-start justify-center",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-[#D4AF37]/30 bg-[#D4AF37]/10 text-[#E5C158] text-xs font-semibold tracking-wider mb-4 font-prompt",children:[(0,t.jsx)(n.Shirt,{className:"w-3.5 h-3.5 text-[#E5C158]"}),(0,t.jsx)("span",{children:"CMTC SHOP • OFFICIAL STORE"})]}),(0,t.jsxs)("h1",{className:"text-3xl lg:text-[42px] font-extrabold text-white leading-[1.2] mb-3 tracking-tight font-prompt",children:[c.title,(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-white via-[#FFF2D6] to-[#E5C158] drop-shadow-[0_2px_12px_rgba(212,175,55,0.25)]",children:c.titleAccent})]}),(0,t.jsx)("p",{className:"text-sm sm:text-base text-gray-300 font-light max-w-lg mb-6 leading-relaxed font-prompt",children:c.subtitle}),(0,t.jsxs)("div",{className:"flex items-center gap-3.5 font-prompt",children:[(0,t.jsxs)(a.default,{href:"/products",className:"inline-flex items-center justify-center gap-2 bg-[#800A0A] hover:bg-[#991B1B] text-white text-sm px-6 py-3 rounded-xl font-bold shadow-[0_4px_16px_rgba(128,10,10,0.4)] hover:shadow-[0_6px_20px_rgba(128,10,10,0.6)] transition-all duration-300 hover:-translate-y-0.5 group cursor-pointer border border-[#D4AF37]/30",children:[(0,t.jsx)(i.ShoppingBag,{className:"w-4 h-4 transition-transform group-hover:scale-110"}),(0,t.jsx)("span",{children:c.ctaPrimary}),(0,t.jsx)(l.ArrowRight,{className:"w-4 h-4 transition-transform group-hover:translate-x-1"})]}),(0,t.jsx)(a.default,{href:"/categories",className:"inline-flex items-center justify-center gap-2 border border-white/20 hover:border-[#D4AF37]/60 hover:bg-white/5 text-gray-200 hover:text-white text-sm px-5 py-3 rounded-xl font-semibold transition-all duration-300 hover:-translate-y-0.5 cursor-pointer",children:(0,t.jsx)("span",{children:c.ctaSecondary})})]})]}),(0,t.jsx)("div",{className:"lg:col-span-5 flex flex-col items-center justify-center relative select-none",children:(0,t.jsxs)("div",{className:"relative w-full h-[320px] flex items-center justify-center",children:[(0,t.jsx)("div",{className:"absolute w-52 h-52 rounded-full bg-gradient-to-tr from-[#D4AF37]/15 via-[#800A0A]/30 to-transparent blur-3xl pointer-events-none z-10 animate-pulse-opacity"}),(0,t.jsx)("div",{className:"absolute w-36 h-36 rounded-full bg-[#E5C158]/10 blur-xl pointer-events-none z-10"}),(0,t.jsx)("a",{href:"https://www.cmtc.ac.th/",target:"_blank",rel:"noopener noreferrer",className:"relative w-36 h-36 hover:scale-[1.03] transition-transform duration-300 pointer-events-auto cursor-pointer animate-float-gentle flex items-center justify-center z-20",style:{filter:"drop-shadow(0 0 20px rgba(212, 175, 55, 0.35)) drop-shadow(0 8px 16px rgba(0,0,0,0.6))"},children:(0,t.jsx)(r.default,{src:"/u69319090023/Shop23/logo_crest.png",alt:"Chiangmai Technical College Emblem",fill:!0,priority:!0,sizes:"144px",className:"object-contain filter brightness-[1.04] contrast-[1.12]"})})]})})]}),(0,t.jsxs)("div",{className:"flex lg:hidden flex-col items-center text-center w-full max-w-md mx-auto",children:[(0,t.jsxs)("div",{className:"relative w-20 h-20 flex items-center justify-center select-none mb-3",children:[(0,t.jsx)("div",{className:"absolute w-24 h-24 rounded-full bg-[#D4AF37]/15 blur-xl pointer-events-none"}),(0,t.jsx)("a",{href:"https://www.cmtc.ac.th/",target:"_blank",rel:"noopener noreferrer",className:"relative w-18 h-18 pointer-events-auto cursor-pointer animate-float-gentle flex items-center justify-center",style:{filter:"drop-shadow(0 0 12px rgba(212, 175, 55, 0.4))"},children:(0,t.jsx)(r.default,{src:"/u69319090023/Shop23/logo_crest.png",alt:"Chiangmai Technical College Emblem",fill:!0,priority:!0,sizes:"72px",className:"object-contain"})})]}),(0,t.jsxs)("div",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full border border-[#D4AF37]/30 bg-[#D4AF37]/10 text-[#E5C158] text-[11px] font-semibold tracking-wider mb-2 font-prompt",children:[(0,t.jsx)(n.Shirt,{className:"w-3 h-3 text-[#E5C158]"}),(0,t.jsx)("span",{children:"CMTC SHOP"})]}),(0,t.jsxs)("h1",{className:"text-2xl sm:text-3xl font-extrabold text-white leading-[1.25] mb-2 tracking-tight font-prompt",children:["เสื้อผ้าและสินค้า",(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-white via-[#FFF2D6] to-[#E5C158]",children:"สำหรับชาว CMTC"})]}),(0,t.jsx)("p",{className:"text-xs sm:text-sm text-gray-300 font-light max-w-xs mb-4 leading-relaxed font-prompt",children:c.subtitle}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2.5 w-full font-prompt justify-center items-center",children:[(0,t.jsxs)(a.default,{href:"/products",className:"inline-flex items-center justify-center gap-2 bg-[#800A0A] hover:bg-[#991B1B] text-white px-6 py-2.5 rounded-xl text-xs sm:text-sm font-bold shadow-[0_4px_16px_rgba(128,10,10,0.4)] transition-all cursor-pointer border border-[#D4AF37]/30",children:[(0,t.jsx)(i.ShoppingBag,{className:"w-3.5 h-3.5"}),(0,t.jsx)("span",{children:c.ctaPrimary}),(0,t.jsx)(l.ArrowRight,{className:"w-3.5 h-3.5"})]}),(0,t.jsx)(a.default,{href:"/categories",className:"inline-flex items-center justify-center gap-1.5 border border-white/20 hover:border-[#D4AF37]/60 text-gray-200 text-xs sm:text-sm px-4 py-2.5 rounded-xl font-semibold transition-all cursor-pointer",children:(0,t.jsx)("span",{children:c.ctaSecondary})})]})]})]})]})};e.s(["Hero",0,o,"default",0,o])},22163,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(67363),a=e.i(84026);let l=(0,e.i(56420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);var i=e.i(6537);let n=()=>{let[e,n]=(0,s.useState)("th");(0,s.useEffect)(()=>{n(localStorage.getItem("preferred_language")||"th");let e=()=>{n(localStorage.getItem("preferred_language")||"th")};return window.addEventListener("languageChange",e),window.addEventListener("storage",e),()=>{window.removeEventListener("languageChange",e),window.removeEventListener("storage",e)}},[]);let o="en"===e?[{icon:(0,t.jsx)(r.Truck,{className:"w-5 h-5 text-[#E5C158]"}),title:"Fast Shipping",desc:"Delivery in 1-3 business days"},{icon:(0,t.jsx)(a.ShieldCheck,{className:"w-5 h-5 text-[#E5C158]"}),title:"Quality Assured",desc:"Selected official uniforms"},{icon:(0,t.jsx)(l,{className:"w-5 h-5 text-[#E5C158]"}),title:"Easy Returns",desc:"Within 7 days (policy applies)"},{icon:(0,t.jsx)(i.Lock,{className:"w-5 h-5 text-[#E5C158]"}),title:"Secure Payment",desc:"Multiple verified channels"}]:[{icon:(0,t.jsx)(r.Truck,{className:"w-5 h-5 text-[#E5C158]"}),title:"จัดส่งรวดเร็ว",desc:"จัดส่งทั่วประเทศ 1-3 วันทำการ"},{icon:(0,t.jsx)(a.ShieldCheck,{className:"w-5 h-5 text-[#E5C158]"}),title:"สินค้าคุณภาพ",desc:"คัดสรรเสื้อผ้าถูกต้องตามระเบียบ"},{icon:(0,t.jsx)(l,{className:"w-5 h-5 text-[#E5C158]"}),title:"เปลี่ยนคืนสินค้าได้",desc:"ภายใน 7 วัน (ตามเงื่อนไข)"},{icon:(0,t.jsx)(i.Lock,{className:"w-5 h-5 text-[#E5C158]"}),title:"ชำระเงินปลอดภัย",desc:"รองรับหลายช่องทางการชำระเงิน"}];return(0,t.jsx)("section",{className:"relative z-20 px-4 sm:px-6 lg:px-8 -mt-6 sm:-mt-8 mb-6 max-w-7xl mx-auto w-full font-prompt",children:(0,t.jsx)("div",{className:"bg-gradient-to-r from-[#240408] via-[#1B0205] to-[#240408] border border-[#D4AF37]/20 rounded-2xl shadow-[0_10px_30px_rgba(0,0,0,0.4)] p-3.5 sm:p-5 lg:py-5 lg:px-6",children:(0,t.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 sm:gap-4 lg:gap-6 divide-y sm:divide-y-0 sm:divide-x divide-white/5",children:o.map((e,s)=>(0,t.jsxs)("div",{className:`flex items-center space-x-3 sm:space-x-3.5 p-2 sm:p-0 ${s%2!=0?"sm:pl-4":""} ${s>=2?"lg:pl-6":""}`,children:[(0,t.jsx)("div",{className:"flex-shrink-0 w-10 h-10 sm:w-11 sm:h-11 rounded-xl bg-gradient-to-br from-[#800A0A] to-[#450307] border border-[#D4AF37]/25 flex items-center justify-center shadow-sm",children:e.icon}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0 text-left",children:[(0,t.jsx)("span",{className:"text-xs sm:text-sm font-bold text-white tracking-wide truncate",children:e.title}),(0,t.jsx)("span",{className:"text-[10px] sm:text-xs text-gray-300 font-light mt-0.5 leading-snug line-clamp-1",children:e.desc})]})]},s))})})})};e.s(["Features",0,n,"default",0,n],22163)},28814,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(22016),a=e.i(67927),l=e.i(23067),i=e.i(42129),n=e.i(88442),o=e.i(55906);let c=()=>{let[e,c]=(0,s.useState)([]),[d,x]=(0,s.useState)(!0),[m,h]=(0,s.useState)("th");(0,s.useEffect)(()=>{h(localStorage.getItem("preferred_language")||"th");let e=()=>{h(localStorage.getItem("preferred_language")||"th")};return window.addEventListener("languageChange",e),window.addEventListener("storage",e),()=>{window.removeEventListener("languageChange",e),window.removeEventListener("storage",e)}},[]);let p={th:{title:"สินค้าแนะนำ",subtitle:"สินค้าคุณภาพยอดนิยมที่ได้รับการแนะนำเป็นพิเศษ",viewAll:"ดูทั้งหมด"},en:{title:"Recommended Products",subtitle:"Top-rated and recommended items chosen for you",viewAll:"View All"}}[m]||{title:"สินค้าแนะนำ",subtitle:"สินค้าคุณภาพยอดนิยมที่ได้รับการแนะนำเป็นพิเศษ",viewAll:"ดูทั้งหมด"};return(0,s.useEffect)(()=>{let e=!0,t=()=>{l.default.getRecommendedProducts().then(t=>{e&&(c(t),x(!1))})};return t(),window.addEventListener("storage",t),()=>{e=!1,window.removeEventListener("storage",t)}},[]),(0,t.jsx)("section",{className:"bg-[#F9F7F4] py-10 sm:py-14 px-4 sm:px-6 lg:px-8 border-b border-[#ECE7DF] font-prompt",children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsxs)("div",{className:"flex justify-between items-end mb-6 sm:mb-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,t.jsx)("span",{className:"w-2 h-2 rounded-full bg-[#800A0A]"}),(0,t.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-wider text-[#800A0A]",children:"FEATURED SELECTION"})]}),(0,t.jsx)("h2",{className:"text-xl sm:text-2xl lg:text-3xl font-extrabold text-gray-900 tracking-tight",children:p.title}),(0,t.jsx)("p",{className:"text-xs sm:text-sm text-gray-500 font-light mt-0.5",children:p.subtitle})]}),(0,t.jsxs)(r.default,{href:"/products",className:"group flex items-center text-xs sm:text-sm font-bold text-[#800A0A] hover:text-[#991B1B] transition-colors pb-1",children:[(0,t.jsx)("span",{children:p.viewAll}),(0,t.jsx)(a.ChevronRight,{className:"w-4 h-4 ml-0.5 transition-transform duration-200 group-hover:translate-x-0.5"})]})]}),d?(0,t.jsx)(n.SkeletonProductGrid,{count:4}):e.length>0?(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 sm:gap-5 sm:grid-cols-2 lg:grid-cols-4",children:[(0,t.jsx)(o.CarouselBannerCard,{}),e.slice(0,3).map(e=>(0,t.jsx)(i.default,{product:e},e.id))]}):(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[(0,t.jsx)("div",{className:"md:col-span-1",children:(0,t.jsx)(o.CarouselBannerCard,{})}),(0,t.jsxs)("div",{className:"md:col-span-2 bg-white rounded-2xl border border-gray-150 p-8 sm:p-12 flex flex-col items-center justify-center text-center shadow-xs",children:[(0,t.jsx)("span",{className:"text-3xl sm:text-4xl mb-3",children:"🛍️"}),(0,t.jsx)("h3",{className:"font-extrabold text-gray-900 text-sm sm:text-base",children:"en"===m?"Official Products Coming Soon":"สินค้าประจำแผนกและชมรมจะวางจำหน่ายเร็วๆ นี้"}),(0,t.jsx)("p",{className:"text-xs text-gray-400 font-light max-w-md mt-1",children:"en"===m?"Merchants and clubs are preparing official uniform items and department gear.":"ร้านค้าแผนกวิชา สหกรณ์ และชมรมต่างๆ กำลังจัดเตรียมเสื้อผ้าและอุปกรณ์การเรียนเพื่อวางจำหน่าย"})]})]})]})})};e.s(["Recommended",0,c,"default",0,c])},1059,e=>{"use strict";var t=e.i(43476),s=e.i(86563);let r=(0,e.i(56420).default)("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);var a=e.i(21993);let l=()=>(0,t.jsx)("section",{className:"bg-[#F4F1EC] py-12 sm:py-16 px-4 sm:px-6 lg:px-8 border-b border-[#E8E3DA] font-prompt",children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsxs)("div",{className:"text-center max-w-2xl mx-auto mb-8 sm:mb-10",children:[(0,t.jsx)("div",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full border border-[#800A0A]/20 bg-[#800A0A]/5 text-[#800A0A] text-[11px] font-bold tracking-wider uppercase mb-2",children:(0,t.jsx)("span",{children:"CUSTOMER REVIEWS"})}),(0,t.jsx)("h2",{className:"text-xl sm:text-2xl lg:text-3xl font-extrabold text-gray-900 tracking-tight",children:"เสียงจากลูกค้าของเรา"}),(0,t.jsx)("p",{className:"text-xs sm:text-sm text-gray-500 font-light mt-1",children:"ความคิดเห็นและความพึงพอใจจริงจากผู้ใช้งานระบบสั่งซื้อเสื้อผ้าออนไลน์ของเรา"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6",children:a.mockReviews.map(e=>{let a=e.userName.substring(0,2);return(0,t.jsxs)("div",{className:"p-5 sm:p-6 flex flex-col h-full bg-white rounded-2xl border border-[#ECE8E1] shadow-[0_2px_8px_rgba(0,0,0,0.03)] hover:shadow-[0_8px_20px_rgba(0,0,0,0.06)] hover:-translate-y-1 transition-all duration-300",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsx)("div",{className:"text-[#800A0A]/20",children:(0,t.jsx)(r,{className:"w-6 h-6 transform rotate-180"})}),(0,t.jsx)("div",{className:"flex items-center space-x-0.5",children:Array.from({length:5}).map((r,a)=>(0,t.jsx)(s.Star,{className:`w-3.5 h-3.5 ${a<Math.floor(e.rating)?"fill-amber-400 stroke-amber-400":"fill-gray-100 stroke-gray-300"}`},a))})]}),(0,t.jsxs)("p",{className:"text-xs sm:text-sm text-gray-600 font-light leading-relaxed flex-grow mb-4 italic text-left",children:['"',e.comment,'"']}),(0,t.jsxs)("div",{className:"flex items-center space-x-3 mt-auto pt-3 border-t border-gray-100",children:[(0,t.jsx)("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-[#800A0A] to-[#450307] flex items-center justify-center text-white font-bold text-xs shadow-sm flex-shrink-0 select-none",children:a}),(0,t.jsxs)("div",{className:"flex flex-col text-left min-w-0",children:[(0,t.jsx)("span",{className:"text-xs sm:text-sm font-semibold text-gray-900 truncate",children:e.userName}),(0,t.jsx)("span",{className:"text-[10px] text-gray-400",children:"ผู้สั่งซื้อที่ได้รับการยืนยัน"})]})]})]},e.id)})})]})});e.s(["Reviews",0,l,"default",0,l],1059)}]);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings