Files
appco_dist/.output/public/_nuxt/0s3eWHtk.js
T

2 lines
2.4 KiB
JavaScript

import{d as x,d3 as d,G as y,J as T,r as B,k as v,o as h,g as N,y as O,z as i,A as a,C as c,H as s,B as $,D as A,F as u,S as m,aj as K,a4 as _}from"./G_17LgpR.js";import{B as P}from"./DUAMdf4s.js";import{_ as R,T as z}from"./Pb30WgBU.js";import"./DlAUqK2U.js";import"./CL-FXKZS.js";import"./hd_vs7Xi.js";import"./DBmCMGoE.js";import"./CO4NYPx8.js";import"./WndnksDi.js";import"./Cj99RmFE.js";import"./TFtGh-ZR.js";import"./CQrMt7-Q.js";import"./D6qJbdzf.js";import"./CKbLd5ES.js";import"./xHelY-u9.js";import"./DDKBnzO8.js";import"./B4jybqV1.js";import"./DIzmC6e1.js";import"./Gig5q_fs.js";import"./DrRtRVrg.js";import"./C9NlmXgZ.js";import"./-2fOlCHx.js";import"./oQiOBp9p.js";const V={class:""},D={class:"flex gap-5 p-4"},E={class:"font-semibold"},us=x({__name:"index",setup(U){const r=d(),f=d(),t=y(),b=T(),l=B("user-statistics_list-orders"),g=v(()=>r.currentRoute.value.name),S=v(()=>!1),k=p=>{r.push({name:p})};return h(()=>{l.value=f.currentRoute.value.name}),(p,e)=>{const n=R,w=z,C=N("router-view");return i(),O("div",null,[a("div",{class:_([" fixed w-full top-0 z-2",s(t).isNightStore?"bg-header-color-dark ":"bg-header-color"])},[a("div",V,[a("div",D,[c(P,{icon:s(t).isRTL?"vuesax-linear:arrow-right":"vuesax-linear:arrow-left",onClick:e[0]||(e[0]=o=>s(r).push({name:"user"}))},null,8,["icon"]),a("div",E,$(s(b).user.name),1)]),a("div",null,[c(w,{activeKey:l.value,"onUpdate:activeKey":e[4]||(e[4]=o=>l.value=o),onChange:e[5]||(e[5]=o=>k(l.value)),centered:"",class:"instaTab"},{default:A(()=>[s(t).isSeller?(i(),u(n,{class:"!w-full",key:"user-statistics_list-storeOrders",tab:s(t).useString("storeOrders"),onClick:e[1]||(e[1]=o=>s(r).push({name:"user-statistics_list-storeOrders"}))},null,8,["tab"])):m("",!0),!s(t).isSeller||s(t).isSeller&&s(K)==="multi"?(i(),u(n,{class:"!w-full",key:"user-statistics_list-orders",tab:s(t).useString("orders"),onClick:e[2]||(e[2]=o=>s(r).push({name:"user-statistics_list-orders"}))},null,8,["tab"])):m("",!0),s(t).isSeller?(i(),u(n,{class:"!w-full",key:"user-statistics_list-customers",tab:s(t).useString("customers"),onClick:e[3]||(e[3]=o=>s(r).push({name:"user-statistics_list-customers"}))},null,8,["tab"])):m("",!0),S.value?(i(),u(n,{class:"!w-full",key:"user-statistics_list-saved",tab:s(t).useString("saved")},null,8,["tab"])):m("",!0)]),_:1},8,["activeKey"])])])],2),a("div",{class:_(["flex relative",g.value==="user-statistics_list-saved"?"":"px-4"])},[c(C,{class:"w-full mt-25 !pb-15vh"})],2)])}}});export{us as default};