(()=>{var e={};e.id=371,e.ids=[371],e.modules={2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},7790:e=>{"use strict";e.exports=require("assert")},4770:e=>{"use strict";e.exports=require("crypto")},7702:e=>{"use strict";e.exports=require("events")},2048:e=>{"use strict";e.exports=require("fs")},2615:e=>{"use strict";e.exports=require("http")},2694:e=>{"use strict";e.exports=require("http2")},5240:e=>{"use strict";e.exports=require("https")},9801:e=>{"use strict";e.exports=require("os")},5315:e=>{"use strict";e.exports=require("path")},6162:e=>{"use strict";e.exports=require("stream")},4175:e=>{"use strict";e.exports=require("tty")},7360:e=>{"use strict";e.exports=require("url")},1764:e=>{"use strict";e.exports=require("util")},1568:e=>{"use strict";e.exports=require("zlib")},4301:(e,r,s)=>{"use strict";s.r(r),s.d(r,{GlobalError:()=>o.a,__next_app__:()=>c,originalPathname:()=>p,pages:()=>d,routeModule:()=>x,tree:()=>u}),s(5303),s(6482),s(5866);var t=s(3191),i=s(8716),a=s(7922),o=s.n(a),n=s(5231),l={};for(let e in n)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>n[e]);s.d(r,l);let u=["",{children:["sales",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,5303)),"C:\\Users\\lenov\\OneDrive\\Desktop\\Semester 6\\TA\\BANG ALI\\Fleura-Control\\app\\sales\\page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(s.bind(s,6482)),"C:\\Users\\lenov\\OneDrive\\Desktop\\Semester 6\\TA\\BANG ALI\\Fleura-Control\\app\\layout.tsx"],"not-found":[()=>Promise.resolve().then(s.t.bind(s,5866,23)),"next/dist/client/components/not-found-error"]}],d=["C:\\Users\\lenov\\OneDrive\\Desktop\\Semester 6\\TA\\BANG ALI\\Fleura-Control\\app\\sales\\page.tsx"],p="/sales/page",c={require:s,loadChunk:()=>Promise.resolve()},x=new t.AppPageRouteModule({definition:{kind:i.x.APP_PAGE,page:"/sales/page",pathname:"/sales",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:u}})},6098:(e,r,s)=>{Promise.resolve().then(s.bind(s,6954))},6954:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>l});var t=s(326),i=s(7577);s(4515);var a=s(7464),o=s(8937),n=s(5047);function l(){let e=(0,n.useRouter)(),[r,s]=(0,i.useState)([]),[l,u]=(0,i.useState)([]),[d,p]=(0,i.useState)(!0),[c,x]=(0,i.useState)(!0);return(0,t.jsxs)("div",{children:[t.jsx("p",{className:"text-2xl font-semibold mb-4",children:"Order"}),(0,t.jsxs)(a.mQ,{defaultValue:"tab1",children:[(0,t.jsxs)(a.dr,{className:"grid w-full grid-cols-2",variant:"solid",children:[t.jsx(a.SP,{value:"tab1",children:"Active"}),t.jsx(a.SP,{value:"tab2",children:"Completed"})]}),(0,t.jsxs)("div",{className:"mt-4",children:[t.jsx(a.nU,{value:"tab1",children:t.jsx("div",{className:"space-y-2",children:d?Array.from({length:5}).map((e,r)=>t.jsx(o.F,{isLoading:!0,name:"",image:""},r)):r.map(r=>t.jsx("div",{children:t.jsx(o.F,{name:r.orderItems?.[0]?.product?.name||r.id,image:r.orderItems?.[0]?.product?.picture?.[0]?.path||"images/order_default.png",onClick:()=>{e.push(`/sales/detail/${r.id}`)}})},r.id))})}),t.jsx(a.nU,{value:"tab2",children:t.jsx("div",{className:"space-y-2",children:c?Array.from({length:5}).map((e,r)=>t.jsx(o.F,{isLoading:!0,name:"",image:""},r)):l.map(r=>t.jsx("div",{children:t.jsx(o.F,{name:r.orderItems?.[0]?.product?.name||r.id,image:r.orderItems?.[0]?.product?.picture?.[0]?.path||"images/order_default.png",onClick:()=>{e.push(`/sales/detail/${r.id}`)}})},r.id))})})]})]})]})}},5303:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>t});let t=(0,s(8570).createProxy)(String.raw`C:\Users\lenov\OneDrive\Desktop\Semester 6\TA\BANG ALI\Fleura-Control\app\sales\page.tsx#default`)}};var r=require("../../webpack-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[847,32,306,834,63],()=>s(4301));module.exports=t})();