File manager - Edit - /home/webapp69.cm.in.th/u69319090023/Shop23/_next/static/chunks/38df_fa6cbv_v.js
Back
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32781,e=>{"use strict";let t=(0,e.i(56420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],32781)},94105,e=>{"use strict";let t=(0,e.i(56420).default)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);e.s(["LayoutDashboard",0,t],94105)},51638,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(22016),n=e.i(18566),a=e.i(94105),l=e.i(1279),o=e.i(20865),i=e.i(66794),c=e.i(32781),d=e.i(16327),h=e.i(44779);let m=[{href:"/account",label:"ภาพรวมบัญชี",icon:a.LayoutDashboard},{href:"/account/profile",label:"โปรไฟล์ของฉัน",icon:l.User},{href:"/account/addresses",label:"ที่อยู่จัดส่ง",icon:o.MapPin},{href:"/account/settings",label:"ตั้งค่าบัญชี",icon:i.Settings}];e.s(["default",0,function({children:e}){let a=(0,n.usePathname)(),l=(0,n.useRouter)(),[o,i]=(0,r.useState)(null),[u,x]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useRef)(null),b=(0,r.useRef)(null),[w,y]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{function e(e){b.current&&!b.current.contains(e.target)&&y(!1)}function t(e){"Escape"===e.key&&y(!1)}return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[]),(0,r.useEffect)(()=>{let e=f.current,t=p.current;if(e&&t){let r=e.clientWidth,s=t.offsetLeft,n=t.clientWidth;e.scrollTo({left:s-r/2+n/2,behavior:"smooth"})}},[a,u]),(0,r.useEffect)(()=>{let e=h.default.getCurrentUser();e?(i(e),x(!0)):l.push(`/login?redirect=${encodeURIComponent(window.location.pathname)}`)},[l,a]),!u||!o)return(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 pt-20",children:(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,t.jsx)(c.Loader2,{className:"w-10 h-10 text-accent animate-spin"}),(0,t.jsx)("p",{className:"text-sm font-medium text-gray-500 font-prompt",children:"กำลังยืนยันสิทธิ์การเข้าถึง..."})]})});let g=m.find(e=>e.href===a);g&&g.label;let v=!!(a?.startsWith("/account/coupons")||a?.includes("/coupons"));return(0,t.jsxs)("div",{className:"min-h-screen bg-[#FAF8F5] pt-28 pb-16",children:[(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:` .no-scrollbar::-webkit-scrollbar { display: none; } .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; } .mobile-tabs-slider { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto !important; width: 100% !important; max-width: 100% !important; white-space: nowrap !important; -webkit-overflow-scrolling: touch !important; scrollbar-width: none !important; -ms-overflow-style: none !important; } .mobile-tabs-slider::-webkit-scrollbar { display: none !important; } `}}),(0,t.jsxs)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[!v&&(0,t.jsxs)("div",{className:"w-full mb-6",children:[(0,t.jsx)("div",{className:"hidden sm:block max-w-full overflow-hidden",children:(0,t.jsx)("div",{ref:f,className:"mobile-tabs-slider gap-2 pb-3 select-none -mx-4 px-4 sm:-mx-6 sm:px-6",children:m.map(e=>{let r=a===e.href||a===`${e.href}/`,n=e.icon;return(0,t.jsxs)(s.default,{href:e.href,ref:r?p:null,className:`flex items-center space-x-2 px-4 py-2.5 rounded-full text-xs font-prompt font-medium transition-all flex-shrink-0 border ${r?"bg-accent text-white border-accent shadow-luxury-glow font-semibold":"bg-white text-gray-600 border-gray-150 hover:bg-gray-50"}`,children:[(0,t.jsx)(n,{className:"w-4 h-4 flex-shrink-0"}),(0,t.jsx)("span",{children:e.label})]},e.href)})})}),(0,t.jsx)("div",{className:"sm:hidden px-1",ref:b,children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>y(!w),"aria-expanded":w,"aria-haspopup":"listbox",role:"button",className:"w-full bg-white border border-rose-200 rounded-2xl px-4 py-3.5 flex items-center justify-between text-sm font-prompt font-semibold text-gray-700 shadow-sm focus:outline-none focus:ring-2 focus:ring-accent/20 transition-all cursor-pointer",children:[(0,t.jsx)("div",{className:"flex items-center space-x-2.5",children:g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.icon,{className:"w-4 h-4 text-accent"}),(0,t.jsx)("span",{children:g.label})]})}),(0,t.jsx)(d.ChevronDown,{className:`w-4 h-4 text-gray-400 transition-transform duration-300 ${w?"rotate-180":""}`})]}),(0,t.jsx)("div",{role:"listbox",className:`absolute top-full left-0 right-0 mt-3 bg-white border border-gray-100 rounded-2xl shadow-xl z-50 overflow-hidden py-1.5 transition-all duration-200 ease-out origin-top transform ${w?"opacity-100 scale-100 translate-y-0 visible":"opacity-0 scale-95 -translate-y-2 invisible pointer-events-none"}`,children:m.map(e=>{let r=a===e.href||a===`${e.href}/`,n=e.icon;return(0,t.jsxs)(s.default,{href:e.href,role:"option","aria-selected":r,onClick:()=>y(!1),className:`flex items-center space-x-3 px-4.5 py-3 text-sm font-prompt transition-all duration-150 transform active:scale-[0.98] ${r?"bg-rose-50 text-accent font-bold":"text-gray-700 hover:bg-rose-50/30 hover:text-accent"}`,children:[(0,t.jsx)(n,{className:`w-4.5 h-4.5 transition-colors duration-150 ${r?"text-accent":"text-gray-400"}`}),(0,t.jsx)("span",{children:e.label})]},e.href)})})]})})]}),(0,t.jsx)("main",{className:"w-full",children:v?e:(0,t.jsx)("div",{className:"bg-white border border-[#F3F1ED] rounded-3xl p-6 sm:p-8 shadow-sm",children:e})})]})]})}])}]);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.23 |
proxy
|
phpinfo
|
Settings