PageSourceSearch

https://www.garmatspraybooths.com/_nuxt/DFak2LoK.js

js garmatspraybooths.com collected 2026-10-05 07:58:44 UTC 3,534 bytes, 1 lines download raw bytes

1import{_ as B}from"./BqnpnKBn.js";import{_ as N}from"./DsXh2W3l.js";import{J as S,r as m,s as w,d as D,p as L,e as A,Q as H,v as M,f as x,i as e,C as R,t as s,F as V,B as E,j as p,h as I,D as $,E as j,G as F,R as z,H as G,g as y,I as J}from"./Du_l-ZPp.js";import"./5mmR4DGd.js";import"./jyh4irB-.js";function Q(){const{apiClient:b}=S(),l=m([]),n=m(1),c=m(15),g=m(0),d=m({}),_=async(t={})=>{const u={...t,limit:c.value};d.value=u;const r=await b.invoke("readOrder post /order",{body:{...u,"total-count-mode":"exact"}});l.value=r.data.orders.elements,g.value=r.data.orders.total??0,n.value=r.data.orders.page??1},f=async t=>{await _({...d.value,page:t}),n.value=t},a=w(()=>n.value),h=w(()=>Math.ceil(g.value/c.value));return{orders:l,changeCurrentPage:f,loadOrders:_,currentPage:a,totalPages:h,limit:c}}const U={class:"container mx-auto my-8"},K={class:"border-b pb-3 text-2xl font-medium text-secondary-900 mb-8"},T={key:0,class:"text-center text-secondary-600"},W={class:"grid grid-cols-1 lg:flex lg:justify-center lg- gap-4 md:gap-6 lg:gap-8 p-4 md:p-6 lg:p-8"},X={class:"text-center place-self-center"},Y={class:"text-center place-self-center mt-2 lg:mt-0"},Z={class:"inline-block align-top text-center md:text-left","data-testid":"order-pagination-limit-box"},ee={for:"limit",class:"inline mr-4","data-testid":"order-pagination-limit-label"},te={value:1},re={value:15},ae={value:30},oe={value:45},se=15,P=1,ue=D({name:"OrderHistory",__name:"index",async setup(b){let l,n;const{orders:c,loadOrders:g,changeCurrentPage:d,totalPages:_,currentPage:f,limit:a}=Q(),{t:h}=L(),t=H(),u=z(),r={account:{noOrders:"No orders found 😔",perPage:"Per Page:",order:{order:"Order",orders:"Orders"}}};A([{name:h("breadcrumbs.accountOverview"),path:"/account"},{name:h("breadcrumbs.order"),path:"/account/order"}]),a.value=t.query.limit?Number(t.query.limit):se;const O=async i=>{const o=i.target;a.value=+o.value,await u.push({query:{...t.query,p:P,limit:o.value}}),t.query.p&&d(+t.query.p)},C=async i=>{await u.push({query:{...t.query,p:i}}),await d(i)};return[l,n]=M(()=>G("getOrders",()=>g({limit:a.value,page:t.query.p?Number(t.query.p):P,checkPromotion:!0,associations:{stateMachineState:{}},sort:[{field:"createdAt",order:"DESC"}]}))),await l,n(),(i,o)=>{const q=B,k=N;return y(),x("div",U,[e("h1",K,s(i.$t("account.orderHistoryHeader")),1),(y(!0),x(V,null,E(p(c),v=>(y(),J(q,{key:v.id,order:v},null,8,["order"]))),128)),p(c).length===0?(y(),x("div",T,s(r.account.noOrders),1)):R("",!0),e("div",W,[e("div",X,[I(k,{total:p(_),current:Number(p(f)),onChangePage:C},null,8,["total","current"])]),e("div",Y,[e("div",Z,[e("label",ee,s(r.account.perPage),1),$(e("select",{id:"limit","onUpdate:modelValue":o[0]||(o[0]=v=>F(a)?a.value=v:null),name:"limitchoices",class:"inline appearance-none bg-white border border-gray-400 hover:border-gray-500 px-4 py-2 pr-8 rounded shadow leading-tight focus:outline-none focus:shadow-outline","data-testid":"order-pagination-limit-select",onChange:O},[e("option",te,"1 "+s(r.account.order.order),1),e("option",re," 15 "+s(r.account.order.orders),1),e("option",ae," 30 "+s(r.account.order.orders),1),e("option",oe," 45 "+s(r.account.order.orders),1)],544),[[j,p(a)]]),o[1]||(o[1]=e("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"},[e("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[e("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1))])])])])}}});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.