1import{A as v,It as a,O as h,Z as l,cn as o,et as x,ht as w,k as g,p as b,w as d,x as e}from"./D4iNppRB.js";import{P as u,_ as k,n as C}from"./jouS0Q8B.js";import{u as j}from"./D2e7NT_K.js";import{i as O}from"#entry";import{t as S}from"./DTSTXpRn2.js";import{t as D}from"./C94nNuN62.js";import{t as P}from"./DLyYWZt8.js";var L={class:"orders"},M={class:"w-full text-left"},N={class:"font-extralight"},T={class:"lg:table-cell flex justify-between lg:border-0 border-t border-gray-300 py-3"},V=["onClick"],z={class:"lg:table-cell flex justify-between lg:border-0 border-t border-gray-300 py-3 lg:py-0"},A={class:"lg:table-cell flex justify-between lg:border-0 border-t border-gray-300 py-3 lg:py-0 capitalize"},B={class:"lg:table-cell flex justify-between lg:border-0 border-t border-gray-300 py-3 lg:py-0"},E={class:"flex items-center justify-between w-full"},Y={class:"flex items-center"},I={class:"pl-3"},$={class:"flex lg:table-cell justify-between lg:border-0 border-t border-gray-300 py-3"},R=["onClick"],U={class:"order-pagination mt-10 flex justify-center"},F={key:1,class:"flex items-center justify-between border py-2 px-3 border-primary text-primary"},W={__name:"orders",async setup(Z){let i,c;const f=D(),s=P(),y=C.service({lock:!0,background:"rgba(0, 0, 0, 0.5)"});[i,c]=w(()=>s.getUserOrderList()),await i,c(),y.close();const p=(n=0)=>{j(`/my-account/view-order/${n}`)};return(n,r)=>{const m=k;return l(),d("div",L,[a(s).userOrderList.length?(l(),d(b,{key:0},[e("table",M,[r[5]||(r[5]=e("thead",{class:"border-b border-gray-300"},[e("tr",{class:"hidden lg:table-row"},[e("th",{class:"text-lg pb-2 w-3/12",scope:"col"},"Order"),e("th",{class:"text-lg pb-2 w-3/12",scope:"col"},"Date"),e("th",{class:"text-lg pb-2 w-2/12",scope:"col"},"Status"),e("th",{class:"text-lg pb-2 w-3/12",scope:"col"},"Total"),e("th",{class:"text-lg pb-2",scope:"col"},"Actions")])],-1)),e("tbody",N,[(l(!0),d(b,null,x(a(s).orderListChunkComputed[a(s).currentPage-1],t=>(l(),d("tr",{key:t.id,class:"lg:table-row flex flex-col lg:border-b lg:border-gray-300"},[e("td",T,[r[0]||(r[0]=e("p",{class:"font-medium lg:hidden"},"Order:",-1)),e("a",{class:"link",href:"#",onClick:u(_=>p(t.id),["prevent"])},"#"+o(t.order_no),9,V)]),e("td",z,[r[1]||(r[1]=e("p",{class:"font-medium lg:hidden"},"Date:",-1)),g(" "+o(a(f)(t.order_day).format("MMMM D, YYYY")),1)]),e("td",A,[r[2]||(r[2]=e("p",{class:"font-medium lg:hidden"},"Status:",-1)),g(" "+o(t.status==="processing"?"Order Processing":t.status),1)]),e("td",B,[e("div",E,[r[3]||(r[3]=e("p",{class:"font-medium lg:hidden"},"Total:",-1)),e("div",Y,[e("p",null,o(("toCurrency"in n?n.toCurrency:a(S))(t.order_total)),1),e("p",I," for "+o(t.order_item_count)+" "+o(t.order_item_count===1?"item":"items"),1)])])]),e("td",$,[r[4]||(r[4]=e("p",{class:"font-medium lg:hidden"},"Actions:",-1)),e("a",{href:"#",class:"rounded-sm bg-primary px-4 py-2 font-medium inter-font tracking-wide text-white inline-block hover:bg-primary-500 duration-200",onClick:u(_=>p(t.id),["prevent"])},"View ",8,R)])]))),128))])]),e("div",U,[v(m,{"hide-on-single-page":!0,"current-page":a(s).currentPage,"page-size":a(s).pageSize,layout:"prev, pager, next",total:a(s).totalItems,onCurrentChange:a(s).handleCurrentChange},null,8,["current-page","page-size","total","onCurrentChange"])])],64)):(l(),d("div",F,[...r[6]||(r[6]=[h('<div class="flex items-center" data-v-922aabc4><span class="border border-primary w-4 h-4 mr-2" data-v-922aabc4><span class="block w-full h-1 bg-primary" data-v-922aabc4></span></span><p class="text-lg" data-v-922aabc4>No order has been made yet.</p></div><a href="/prebuilt-gaming-pc" class="border border-primary bg-primary text-black hover:text-active duration-200 block py-3 px-4 font-bold rounded-full" data-v-922aabc4>BROWSE PRODUCTS</a>',2)])]))])}}},ee=O(W,[["__scopeId","data-v-922aabc4"]]);export{ee as default};
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.