PageSourceSearch

https://mevcut.co/_nuxt/Bkb99xG0.js

js mevcut.co collected 2026-10-01 16:36:39 UTC 4,457 bytes, 2 lines download raw bytes

1import{d as g,b as w,c as O,e as D,g as r,o as p,h as x,i as d,j as i,l as _,a3 as N,V as S,t as k,as as R,F as Q,D as z,at as G,m as H,x as U,r as B,a1 as E,W as T,w as W,U as J,q as P,B as K,A as X,a as Y,f as Z}from"./CtLYAXk2.js";import{u as ee}from"./BQHbK4T2.js";import{_ as te}from"./DlAUqK2U.js";import{a as oe,_ as se}from"./DhfbuGWu.js";import{_ as re}from"./BL8PSj_R.js";import{_ as ne}from"./Dibep4R2.js";import{u as ae,_ as le}from"./CCvJQMAw.js";import{_ as ie}from"./Cp-wArgA.js";import{_ as ce}from"./u6ctrYFq.js";import{u as ue,a as me,b as C}from"./CozC2Aqf.js";import"./BKNbBAsF.js";import"./CTKYif8K.js";import"./C-4avG--.js";import"./Ds54d1tf.js";import"./DqMyVFTH.js";import"./DcndN4VU.js";import"./Dm_aMsem.js";import"./NfFtJg0N.js";import"./C1QjcpQp.js";import"./_SWGZjlf.js";import"./AGSZIexS.js";const de={key:0,class:"mb-3"},_e={class:"flex justify-end mx-3"},fe=["onClick"],pe=g({__name:"filter",props:{numberMaterials:{}},setup(y){const{t:e}=w(),n=O();function c(t){var o;((o=n.query.currently)==null?void 0:o.toString())!==(t==null?void 0:t.toString())&&ee({currently:t})}const s=[{title:e("all_orders"),value:void 0},{title:e("current_orders"),value:1},{title:e("pervious_orders"),value:0}],a=D(()=>{var t;return(t=s==null?void 0:s.find(o=>{var l,m;return((l=o.value)==null?void 0:l.toString())===((m=n.query.currently)==null?void 0:m.toString())}))==null?void 0:t.title});return(t,o)=>r(a)==r(e)("all_orders")&&t.numberMaterials>0||r(a)!=r(e)("all_orders")?(p(),x("div",de,[d("div",_e,[i(G,null,{activator:_(({props:l})=>[d("div",N({class:"flex mb-2 cursor-pointer"},l),[i(S,{icon:"mdi mdi-filter-outline",size:24}),d("div",null,k(r(a)),1)],16)]),default:_(()=>[i(R,{class:"mx-auto"},{default:_(()=>[(p(),x(Q,null,z(s,l=>d("div",{key:"filter-item-".concat(l.title),class:"hoverItem",onClick:m=>c(l.value)},k(l.title),9,fe)),64))]),_:1})]),_:1})])])):H("",!0)}}),ye=te(pe,[["__scopeId","data-v-14bdc875"]]),ve={class:"w-full md:w-1/3 2xl:w-1/2 px-1 h-full mb-2"},he={class:"bg-bg_alt_color rounded-md h-full p-3 flex flex-col justify-between"},be={class:"mb-2 font-bold text-sm text-gray-700"},xe=g({__name:"Card",props:{bill:{}},setup(y){const e=y,{billModel:n}=U(),c=n(e.bill),{t:s}=w(),a=B(!1);return(t,o)=>{const l=oe,m=se,M=re;return p(),x("div",ve,[d("div",he,[i(l,{bill:r(c)},null,8,["bill"]),d("div",{class:"flex justify-between items-center cursor-pointer",onClick:o[0]||(o[0]=h=>a.value=!0)},[d("div",be,k(r(s)("order_details"))+": ",1),i(S,{icon:"fa: fa-solid fa-chevron-down",size:16,class:"mx-1"})])]),i(M,{modelValue:r(a),"onUpdate:modelValue":o[1]||(o[1]=h=>E(a)?a.value=h:null),"with-vmodel":!0,width:"auto"},{content:_(()=>[i(m,{"bill-id":r(c).id,"with-seo":!1,"expansion-bill-details":!0},null,8,["bill-id"])]),_:1},8,["modelValue"])])}}}),ge=g({__name:"Grid",props:{itemsPerPage:{type:Number,default:10},fetchParams:{type:Object,default:()=>{}},withQueryParams:{type:Boolean,default:!0}},async setup(y){let e,n;const c=y,s=B([]),a=T(),t=O(),{t:o}=w(),{infiniteId:l,scrollFetch:m,loadMore:M,reset:h}=ae(0,c.itemsPerPage,A,I,V);[e,n]=W(()=>m()),await e,n(),c.withQueryParams&&J(()=>t.query,()=>h());async function A(v){var b;let $={};c.withQueryParams&&($={...t.query});try{const{data:u,error:f}=await K(X().billsRoutes.getBillsByServer,{query:{offset:"".concat(v.offset),limit:"".concat(v.limit),...$,...c.fetchParams}});if(f!=null&&f.value)throw f.value;return u.value}catch(u){return a.error(o("fetch_failed",{data:o("orders")}),{timeout:1e3}),(b=u==null?void 0:u.data)!=null&&b.data?u.data:{data:[],message:o("fetch_failed",{data:o("orders")})}}}function I(v){s.value=[...s.value,...v]}function V(){s.value=[]}return(v,$)=>{const b=ye,u=xe,f=ne,q=le,F=ie;return p(),x("div",null,[i(b,{"number-materials":r(s).length},null,8,["number-materials"]),i(f,{name:"orders",items:r(s)},{card:_(({forKey:L,data:j})=>[(p(),P(u,{key:"order-grid-item-".concat(L),class:"h-auto",bill:j},null,8,["bill"]))]),_:1},8,["items"]),i(F,null,{default:_(()=>[i(q,{class:"my-5","infinite-id":r(l),onLoadMore:r(M)},null,8,["infinite-id","onLoadMore"])]),_:1})])}}}),Ge=g({__name:"index",setup(y){const{url:e}=Y(),{t:n}=w();return Z({title:n("orders"),link:[ue(e+"/my-account/orders")],script:[me([C(1,n("home"),e),C(2,n("profile"),e+"/my-account"),C(3,n("orders"),e+"/my-account/orders")])]}),(c,s)=>{const a=ge,t=ce;return p(),P(t,null,{default:_(()=>[i(a)]),_:1})}}});
1export{Ge as default};
2//# sourceMappingURL=Bkb99xG0.js.map

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.