2 lines
2.4 KiB
JavaScript
2 lines
2.4 KiB
JavaScript
import{d as x,c$ as d,G as y,H as T,r as B,k as v,e3 as $,o as h,g as N,y as i,z as O,A as a,C as c,J as s,B as A,D as K,F as u,S as m,a2 as _}from"./CqMGdh3i.js";import{B as P}from"./h3vOCeO2.js";import{_ as R,T as z}from"./DZx9IK1L.js";import"./DlAUqK2U.js";import"./C2mWIuFr.js";import"./1med13IE.js";import"./DLaLWwro.js";import"./Ck7xxMC2.js";import"./CvzxW4k7.js";import"./Cj99RmFE.js";import"./hRWhkcZm.js";import"./B8BNQJT3.js";import"./D6qJbdzf.js";import"./DAm35wCk.js";import"./BFKVSULU.js";import"./DDpy-nxA.js";import"./Dk3GGXWm.js";import"./CseG1518.js";import"./DrHaYhD4.js";import"./CiRz__JV.js";import"./D-bUn136.js";import"./DFqTtjB6.js";const V={class:""},D={class:"flex gap-5 p-4"},E={class:"font-semibold"},ns=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(()=>$("app-type").value==="multi"),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,A(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:K(()=>[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(t).APP_TYPE==="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{ns as default};
|