PageSourceSearch

https://plateform-drab.vercel.app/_next/static/chunks/03a129f3167c76b1.js?dpl=dpl_4eKP9Kz61SwoM9Y62EjQCNhe6M1c

js plateform-drab.vercel.app collected 2026-10-03 07:30:13 UTC 23,812 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,2708,e=>{"use strict";e.s(["CheckCircle",()=>t],2708);let t=(0,e.i(13378).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"}]])},47798,e=>{"use strict";e.s(["Package",()=>t],47798);let t=(0,e.i(13378).default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},51803,e=>{"use strict";e.s(["ShoppingCart",()=>t],51803);let t=(0,e.i(13378).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"}]])},49520,e=>{"use strict";e.s(["AlertCircle",()=>t],49520);let t=(0,e.i(13378).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"}]])},67655,(e,t,s)=>{},77806,(e,t,s)=>{var r=e.i(82899);e.r(67655);var i=e.r(70145),n=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),a=void 0!==r.default&&r.default.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=void 0===e?{}:e,s=t.name,r=void 0===s?"stylesheet":s,i=t.optimizeForSpeed,n=void 0===i?a:i;c(l(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",c("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var t,s=e.prototype;return s.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},s.isOptimizeForSpeed=function(){return this._optimizeForSpeed},s.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,s){return"number"==typeof s?e._serverSheet.cssRules[s]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),s},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},s.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},s.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},s.insertRule=function(e,t){if(c(l(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var s=this.getSheet();"number"!=typeof t&&(t=s.cssRules.length);try{s.insertRule(e,t)}catch(t){return a||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},s.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var s="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!s.cssRules[e])return e;s.deleteRule(e);try{s.insertRule(t,e)}catch(r){a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),s.insertRule(this._deletedRulePlaceholder,e)}
1}else{var r=this._tags[e];c(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},s.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},s.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},s.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,s){return s?t=t.concat(Array.prototype.map.call(e.getSheetForTag(s).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},s.makeStyleTag=function(e,t,s){t&&c(l(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return s?i.insertBefore(r,s):i.appendChild(r),r},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,s=e.length;s;)t=33*t^e.charCodeAt(--s);return t>>>0},u={};function h(e,t){if(!t)return"jsx-"+e;var s=String(t),r=e+s;return u[r]||(u[r]="jsx-"+d(e+"-"+s)),u[r]}function m(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var s=e+t;return u[s]||(u[s]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[s]}var p=function(){function e(e){var t=void 0===e?{}:e,s=t.styleSheet,r=void 0===s?null:s,i=t.optimizeForSpeed,n=void 0!==i&&i;this._sheet=r||new o({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),r&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var s=this.getIdAndRules(e),r=s.styleId,i=s.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var n=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=n,this._instancesCounts[r]=1},t.remove=function(e){var t=this,s=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(s in this._instancesCounts,"styleId: `"+s+"` not found"),this._instancesCounts[s]-=1,this._instancesCounts[s]<1){var r=this._fromServer&&this._fromServer[s];r?(r.parentNode.removeChild(r),delete this._fromServer[s]):(this._indices[s].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[s]),delete this._instancesCounts[s]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],s=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return s[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,s;return t=this.cssRules(),void 0===(s=e)&&(s={}),t.map(function(e){var t=e[0],r=e[1];return n.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:s.nonce?s.nonce:void 0,dangerouslySetInnerHTML:{__html:r}}
1)})},t.getIdAndRules=function(e){var t=e.children,s=e.dynamic,r=e.id;if(s){var i=h(r,s);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return m(i,e)}):[m(i,t)]}}return{styleId:h(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),x=i.createContext(null);function f(){return new p}function g(){return i.useContext(x)}x.displayName="StyleSheetContext";var b=n.default.useInsertionEffect||n.default.useLayoutEffect,y="undefined"!=typeof window?f():void 0;function v(e){var t=y||g();return t&&("undefined"==typeof window?t.add(e):b(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},s.StyleRegistry=function(e){var t=e.registry,s=e.children,r=i.useContext(x),a=i.useState(function(){return r||t||f()})[0];return n.default.createElement(x.Provider,{value:a},s)},s.createStyleRegistry=f,s.style=v,s.useStyleRegistry=g},58293,(e,t,s)=>{t.exports=e.r(77806).style},30807,e=>{"use strict";e.s(["default",()=>p]);var t=e.i(2532),s=e.i(58293),r=e.i(70145),i=e.i(36284),n=e.i(51803),a=e.i(47798),l=e.i(23961),o=e.i(2708),c=e.i(49520),d=e.i(87523),u=e.i(13301),h=e.i(57545);function m(e){let{html:s}=e;return(0,t.jsx)("div",{className:"text-sm text-gray-300 mb-4 leading-relaxed product-description max-h-60 md:max-h-80 overflow-y-auto",dangerouslySetInnerHTML:{__html:s.replace(/<script[\s\S]*?<\/script>/gi,"").replace(/<style[\s\S]*?<\/style>/gi,"").replace(/on\w+\s*=\s*"[^"]*"/gi,"").replace(/on\w+\s*=\s*'[^']*'/gi,"").replace(/javascript\s*:/gi,"")}})}function p(e){let{initialProducts:p}=e,x=(0,u.useRouter)(),{updateBalance:f}=(0,h.useBalance)(),[g]=(0,r.useState)(p),[b,y]=(0,r.useState)(!1),[v,j]=(0,r.useState)(!1);(0,r.useEffect)(()=>{fetch("/api/auth/get-session",{method:"GET",credentials:"include"}).then(e=>e.json()).then(e=>{y(!!e.session||!!e.user),j(!0)}).catch(()=>{y(!1),j(!0)})},[]);let[w,_]=(0,r.useState)(!1),[S,N]=(0,r.useState)(!1),[k,C]=(0,r.useState)(null),[R,z]=(0,r.useState)(null),F=async()=>{if(k){_(!0);try{let t=await fetch("/api/purchase",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productId:k.id,productName:k.name,price:k.price})}),s=await t.json();if(t.ok&&s.success){var e;z({success:!0,message:"ซื้อสินค้าสำเร็จ! กำลังพาไปดูประวัติ...",data:s.data}),(null==(e=s.data)?void 0:e.newBalance)!==void 0&&f(s.data.newBalance),setTimeout(()=>{x.push("/app-history")},1500)}else z({success:!1,message:s.message||"เกิดข้อผิดพลาดในการซื้อสินค้า"})}catch(e){console.error("Purchase error:",e),z({success:!1,message:"เกิดข้อผิดพลาดในการเชื่อมต่อ"})}finally{_(!1)}}},A=()=>{N(!1),C(null),z(null)};return(0,t.jsxs)(t.Fragment,{children:[v&&!b&&(0,t.jsx)("div",{className:"mb-8 bg-yellow-50 border-l-4 border-yellow-400 p-4 rounded-lg",children:(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-yellow-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})})}),(0,t.jsx)("div",{className:"ml-3",children:(0,t.jsxs)("p",{className:"text-sm text-yellow-700",children:["คุณต้อง ",(0,t.jsx)("a",{href:"/auth",className:"font-semibold underline hover:text-yellow-800",children:"Login"})," ก่อนจึงจะสามารถซื้อสินค้าได้"]})})]})}),(0,t.jsxs)("div",{className:"text-center mb-12",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-gradient-to-br from-indigo-500 to-purple-600 rounded-full mb-4",children:(0,t.jsx)(i.Crown,{className:"w-8 h-8 text-white"})}),(0,t.jsx)("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"แอพพรีเมี่ยม"}),(0,t.jsx)("p",{className:"text-lg text-gray-600",children:"สินค้าแอพพรีเมี่ยมคุณภาพสูง พร้อมส่งทันที"})]}),w?(0,t.jsxs)("div",{className:"text-center py-12",children:[(0,t.jsx)("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-indigo-600"}),(0,t.jsx)("p",{className:"mt-4 text-gray-600",children:"กำลังโหลดสินค้า..."})]}):g.filter(e=>e.stock>0).length>0?(0,t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6 mb-12",children:g.filter(e=>e.stock>0).map(e=>(0,t.jsxs)("div",{className:"rounded-xl overflow-hidden flex flex-col transition-all home-card shadow-md hover:shadow-lg hover:scale-105",children:[(0,t.jsxs)("div",{className:"relative h-40 md:h-48 bg-gradient-to-br from-indigo-50 to-purple-50",children:[(0,t.jsx)(d.default,{src:e.img,alt:e.name,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1024px) 33vw, 25vw",className:"object-cover",loading:"lazy",quality:75,onError:e=>{e.currentTarget.src="https://placehold.jp/300x200.png"}}),e.stock>0?(0,t.jsxs)("div",{className:"absolute top-2 md:top-3 right-2 md:right-3 bg-red-500 text-white px-2 md:px-3 py-1 rounded-full text-xs font-semibold",children:["คงเหลือ ",e.stock]}):(0,t.jsx)("div",{className:"absolute top-2 md:top-3 right-2 md:right-3 bg-red-500 text-white px-2 md:px-3 py-1 rounded-full text-xs font-semibold",children:"สินค้าหมด"})]}),(0,t.jsxs)("div",{className:"p-4 md:p-6 flex flex-col flex-grow",children:[(0,t.jsx)("h3",{className:"text-base md:text-xl font-bold text-gray-200 mb-2 line-clamp-2 min-h-[3rem] md:min-
1h-[3.5rem]",children:e.name}),(0,t.jsx)("p",{className:"text-xs md:text-sm text-gray-400 mb-3 md:mb-4 line-clamp-2",children:e.des||"สินค้าคุณภาพสูง พร้อมส่งทันที"}),(0,t.jsx)("div",{className:"mb-3 md:mb-4 mt-auto",children:(0,t.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,t.jsx)("span",{className:"text-xs md:text-sm text-gray-300",children:"ราคา:"}),(0,t.jsxs)("span",{className:"text-2xl md:text-3xl font-bold text-[#03AC13]",children:["฿",e.price]})]})}),(0,t.jsxs)("button",{onClick:()=>(e=>{if(!b){confirm("คุณต้อง Login ก่อนซื้อสินค้า\nต้องการไปหน้า Login หรือไม่?")&&(window.location.href="/auth");return}C(e),N(!0),z(null)})(e),disabled:0===e.stock,className:"w-full py-2 md:py-3 rounded-lg font-semibold transition-colors flex items-center justify-center text-sm md:text-base ".concat(e.stock>0?"bg-[#03AC13] text-white hover:bg-[#029a11]":"bg-gray-300 text-gray-500 cursor-not-allowed"),children:[(0,t.jsx)(n.ShoppingCart,{className:"w-4 h-4 md:w-5 md:h-5 mr-2"}),e.stock>0?"ซื้อเลย":"สินค้าหมด"]})]})]},e.id))}):(0,t.jsxs)("div",{className:"text-center py-12",children:[(0,t.jsx)(a.Package,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),(0,t.jsx)("p",{className:"text-gray-600 text-lg",children:"ไม่พบสินค้า"})]}),(0,t.jsxs)("div",{className:"bg-white rounded-2xl shadow-lg p-8 border border-gray-200",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-6 text-center",children:"เกี่ยวกับแอพพรีเมี่ยม"}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mx-auto mb-3",children:(0,t.jsx)(n.ShoppingCart,{className:"w-6 h-6 text-indigo-600"})}),(0,t.jsx)("h4",{className:"font-semibold text-gray-900 mb-2",children:"สั่งง่าย"}),(0,t.jsx)("p",{className:"text-sm text-gray-600",children:"สั่งซื้อง่าย รวดเร็ว ผ่านระบบอัตโนมัติ"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-3",children:(0,t.jsx)(a.Package,{className:"w-6 h-6 text-green-600"})}),(0,t.jsx)("h4",{className:"font-semibold text-gray-900 mb-2",children:"ส่งเร็ว"}),(0,t.jsx)("p",{className:"text-sm text-gray-600",children:"ส่งสินค้าทันที หลังชำระเงินสำเร็จ"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-3",children:(0,t.jsx)(i.Crown,{className:"w-6 h-6 text-purple-600"})}),(0,t.jsx)("h4",{className:"font-semibold text-gray-900 mb-2",children:"คุณภาพสูง"}),(0,t.jsx)("p",{className:"text-sm text-gray-600",children:"สินค้าคุณภาพ รับประกันความพึงพอใจ"})]})]})]}),S&&k&&(0,t.jsx)("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4",children:(0,t.jsxs)("div",{className:"home-card rounded-2xl max-w-md w-full relative my-auto max-h-[90vh] flex flex-col",children:[(0,t.jsx)("button",{onClick:A,className:"absolute top-4 right-4 text-gray-400 hover:text-gray-200 transition-colors z-10",children:(0,t.jsx)(l.X,{className:"w-6 h-6"})}),R?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"text-center py-6",children:R.success?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,t.jsx)(o.CheckCircle,{className:"w-10 h-10 text-green-600"})}),(0,t.jsx)("h3",{className:"text-2xl font-bold text-gray-100 mb-2",children:"สำเร็จ!"}),(0,t.jsx)("p",{className:"text-gray-300 mb-4",children:R.message}),R.data&&(0,t.jsxs)("div",{className:"bg-green-500/10 border border-green-500/20 rounded-lg p-4 mb-4 text-left",children:[(0,t.jsxs)("p",{className:"text-sm text-gray-300 mb-2",children:[(0,t.jsx)("strong",{children:"สินค้า:"})," ",R.data.product]}),(0,t.jsxs)("p",{className:"text-sm text-gray-300 mb-2",children:[(0,t.jsx)("strong",{children:"รหัสอ้างอิง:"})," ",R.data.reference]}),(0,t.jsxs)("p",{className:"text-sm text-gray-300",children:[(0,t.jsx)("strong",{children:"ยอดเงินคงเหลือ:"})," ฿",R.data.newBalance.toFixed(2)]})]}),(0,t.jsx)("p",{className:"text-sm text-gray-400",children:"กำลังรีเฟรชหน้า..."})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,t.jsx)(c.AlertCircle,{className:"w-10 h-10 text-red-600"})}),(0,t.jsx)("h3",{className:"text-2xl font-bold text-gray-100 mb-2",children:"ไม่สำเร็จ"}),(0,t.jsx)("p",{className:"text-gray-300 mb-6",children:R.message}),(0,t.jsx)("button",{onClick:A,className:"w-full px-4 py-3 bg-white/10 text-gray-200 rounded-lg font-semibold hover:bg-white/15 transition-colors",children:"ปิด"})]})})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"jsx-b0c789ae7bc3af82 p-6 pb-0",children:(0,t.jsx)("h3",{className:"jsx-b0c789ae7bc3af82 text-2xl font-bold text-gray-100 mb-4",children:"ยืนยันการซื้อ"})}),(0,t.jsxs)("div",{className:"jsx-b0c789ae7bc3af82 flex-1 overflow-y-auto px-6",children:[(0,t.jsx)("div",{className:"jsx-b0c789ae7bc3af82 relative w-full h-48 mb-4",children:(0,t.jsx)(d.default,{src:k.img,alt:k.name,fill:!0,sizes:"400px",className:"object-cover rounded-lg",priority:!0,qual
1ity:85,onError:e=>{e.currentTarget.src="https://placehold.jp/300x200.png"}})}),(0,t.jsx)("h4",{className:"jsx-b0c789ae7bc3af82 text-lg font-semibold text-gray-100 mb-3",children:k.name}),k.des&&(0,t.jsx)(m,{html:k.des}),(0,t.jsx)("div",{className:"jsx-b0c789ae7bc3af82 bg-white/5 rounded-lg p-4 mb-4",children:(0,t.jsxs)("div",{className:"jsx-b0c789ae7bc3af82 flex justify-between items-center",children:[(0,t.jsx)("span",{className:"jsx-b0c789ae7bc3af82 text-gray-300 font-medium",children:"ราคา:"}),(0,t.jsxs)("span",{className:"jsx-b0c789ae7bc3af82 text-2xl font-bold text-[#03AC13]",children:["฿",k.price]})]})})]}),(0,t.jsx)("div",{className:"jsx-b0c789ae7bc3af82 p-6 pt-4 border-t border-white/10",children:(0,t.jsxs)("div",{className:"jsx-b0c789ae7bc3af82 flex space-x-3",children:[(0,t.jsx)("button",{onClick:A,disabled:w,className:"jsx-b0c789ae7bc3af82 flex-1 px-4 py-3 rounded-lg bg-white/10 text-gray-200 hover:bg-white/15 transition-colors disabled:opacity-50",children:"ยกเลิก"}),(0,t.jsx)("button",{onClick:F,disabled:w,className:"jsx-b0c789ae7bc3af82 flex-1 px-4 py-3 bg-[#03AC13] text-white rounded-lg font-semibold hover:bg-[#029a11] disabled:opacity-50 flex items-center justify-center",children:w?(0,t.jsx)("div",{className:"jsx-b0c789ae7bc3af82 w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.ShoppingCart,{className:"w-5 h-5 mr-2"}),"ซื้อเลย"]})})]})}),(0,t.jsx)(s.default,{id:"b0c789ae7bc3af82",children:'.product-description{white-space:pre-line;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) rgba(255,255,255,.1);background-color:transparent;border:1px solid rgba(255,255,255,.1);border-radius:.5rem;padding:1rem;font-size:.9rem;line-height:1.8}.product-description::-webkit-scrollbar{width:8px}.product-description::-webkit-scrollbar-track{background:rgba(255,255,255,.1);border-radius:4px}.product-description::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3);border-radius:4px}.product-description::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.4)}.product-description *{margin-bottom:.5rem}.product-description p{margin-bottom:.75rem;line-height:1.7}.product-description br{content:"";margin-top:.5rem;display:block}.product-description .badge{white-space:nowrap;border-radius:.5rem;margin:0 .25rem;padding:.35rem .6rem;font-size:.75rem;font-weight:600;display:inline-block}.product-description .bg-dark{color:#fff;background-color:#1f2937}.product-description .bg-warning{color:#78350f;background-color:#fbbf24}.product-description .text-light{color:#fff}.product-description a{color:#818cf8;word-break:break-word;text-decoration:underline;display:inline}.product-description a:hover{color:#a5b4fc}.product-description ul,.product-description ol{margin-left:0;padding-left:0}.product-description li{margin-bottom:.5rem;padding-left:0;line-height:1.7;list-style:none}.product-description i.fa,.product-description i.fas,.product-description i.far{margin:0 .25rem;font-style:normal}.product-description i:not(.fa):not(.fas):not(.far){color:#9ca3af;font-style:italic}.product-description span{display:inline}.product-description>div{margin-bottom:.75rem}'})]})]})})]})}}]);

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.