1import{O as b,a as g,P as v,b as h,D as B,f as L}from"./orders-1caa215f.js";import{d as x,r as c,a as E,H as u,K as e,I as A,J as D,Q as p,af as _,ap as w,B as d,X as m,Y as n,L as f,W as k}from"./vendor-vue-61d73241.js";import{_ as S}from"./index-c287e520.js";import"./vendor-cjs-helpers-de833af9.js";import"./vendor-bootstrap-c17a3fde.js";import"./vendor-utils-3b44de43.js";import"./vendor-charts-72fa718d.js";import"./vendor-prism-dba95ea4.js";import"./vendor-element-plus-a1318771.js";const T=x({name:"StoreOrders",setup(){const a=c([]),s=c(!0),r=async()=>{s.value=!0;try{a.value=await L()}catch{a.value=[]}finally{s.value=!1}},i=t=>new Date(t).toLocaleDateString("kk-KZ",{year:"numeric",month:"long",day:"numeric"});return E(r),{orders:a,loading:s,formatDate:i,statusLabel:t=>b[t]??t,statusBadge:t=>g[t]??"badge-light",paymentLabel:t=>v[t]??t,paymentMethodLabel:t=>h[t]??t,deliveryLabel:t=>B[t]??t}}});const O={class:"store-orders-page"},C={class:"container py-10"},M={class:"card"},F={class:"card-body pt-0"},N={key:0,class:"text-center py-15 text-muted"},R={key:1,class:"text-center py-15"},V={key:2,class:"d-flex flex-column gap-6"},Y={class:"d-flex flex-wrap justify-content-between align-items-center gap-3 mb-4"},$={class:"d-flex align-items-center gap-3"},j={class:"fw-bold fs-4"},H={class:"text-muted fs-7"},I={class:"d-flex flex-column gap-2 mb-4"},P={class:"text-gray-800"},U={class:"text-gray-600 text-nowrap"},q={class:"d-flex flex-wrap justify-content-between align-items-end gap-3"},K={class:"text-muted fs-7"},z={key:0},G={class:"fw-bold fs-3"};function J(a,s,r,i,t,Q){const y=w("router-link");return d(),u("div",O,[e("div",C,[e("div",M,[s[4]||(s[4]=e("div",{class:"card-header border-0 pt-6"},[e("h3",{class:"card-title fw-bold fs-2"},"ÐенÑÒ£ ÑапÑÑÑÑÑÑаÑÑм")],-1)),e("div",F,[a.loading?(d(),u("div",N,"ÐүкÑелÑде...")):a.orders.length===0?(d(),u("div",R,[s[1]||(s[1]=e("i",{class:"bi bi-inbox fs-3x text-gray-400 mb-5"},null,-1)),s[2]||(s[2]=e("h3",{class:"text-gray-600 fw-bold mb-3"},"ТапÑÑÑÑÑÑÐ°Ñ Ð¶Ð¾Ò",-1)),A(y,{to:"/bookstore",class:"btn btn-primary mt-3"},{default:D(()=>[...s[0]||(s[0]=[m("Ðүкенге Ó©ÑÑ",-1)])]),_:1})])):(d(),u("div",V,[(d(!0),u(p,null,_(a.orders,o=>(d(),u("div",{key:o.id,class:"border border-gray-300 border-dashed rounded p-6"},[e("div",Y,[e("div",$,[e("span",j,"ТапÑÑÑÑÑ #"+n(o.id),1),e("span",{class:f(["badge",a.statusBadge(o.status)])},n(a.statusLabel(o.status)),3),e("span",{class:f(["badge",o.payment_status==="paid"?"badge-light-success":"badge-light-warning"])},n(a.paymentLabel(o.payment_status)),3)]),e("span",H,n(a.formatDate(o.created_at)),1)]),s[3]||(s[3]=e("div",{class:"separator separator-dashed mb
1-4"},null,-1)),e("div",I,[(d(!0),u(p,null,_(o.items,l=>(d(),u("div",{key:l.id,class:"d-flex justify-content-between"},[e("span",P,n(l.title)+" à "+n(l.quantity),1),e("span",U,n((l.price*l.quantity).toLocaleString())+" â¸",1)]))),128))]),e("div",q,[e("div",K,[e("div",null,[m(n(a.deliveryLabel(o.delivery_method)),1),o.delivery_address?(d(),u("span",z,": "+n(o.delivery_address),1)):k("",!0)]),e("div",null,"Төлем: "+n(a.paymentMethodLabel(o.payment_method)),1)]),e("div",G,n(o.total.toLocaleString())+" â¸",1)])]))),128))]))])])])])}const ue=S(T,[["render",J],["__scopeId","data-v-b0b5f52e"]]);export{ue 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.