Files
appco_dist/.output/public/_nuxt/Dvni2fZ3.js
T
2025-08-24 13:00:31 +03:30

2 lines
2.0 KiB
JavaScript

import{d as x,by as m,H as y,K as B,r as T,k as p,o as h,g as K,y as N,z as l,A as o,C as d,I as s,B as O,D as R,F as u,U as c,bQ as $,al as A,bR as P,a7 as _}from"./BYv1load.js";import{B as z}from"./D-ODqOh1.js";import"./DlAUqK2U.js";const U={class:""},V={class:"flex gap-5 p-4"},D={class:"font-semibold"},L=x({__name:"index",setup(E){const a=m(),f=m(),t=y(),b=B(),n=T("user-statistics_list-orders"),g=p(()=>a.currentRoute.value.name),k=p(()=>!1),S=v=>{a.push({name:v})};return h(()=>{n.value=f.currentRoute.value.name}),(v,e)=>{const i=$,w=P,C=K("router-view");return l(),N("div",null,[o("div",{class:_([" fixed w-full top-0 z-2",s(t).isNightStore?"bg-header-color-dark ":"bg-header-color"])},[o("div",U,[o("div",V,[d(z,{icon:s(t).isRTL?"vuesax-linear:arrow-right":"vuesax-linear:arrow-left",onClick:e[0]||(e[0]=r=>s(a).push({name:"user"}))},null,8,["icon"]),o("div",D,O(s(b).user.name),1)]),o("div",null,[d(w,{activeKey:n.value,"onUpdate:activeKey":e[4]||(e[4]=r=>n.value=r),onChange:e[5]||(e[5]=r=>S(n.value)),centered:"",class:"instaTab"},{default:R(()=>[s(t).isSeller?(l(),u(i,{class:"!w-full",key:"user-statistics_list-storeOrders",tab:s(t).useString("storeOrders"),onClick:e[1]||(e[1]=r=>s(a).push({name:"user-statistics_list-storeOrders"}))},null,8,["tab"])):c("",!0),!s(t).isSeller||s(t).isSeller&&s(A)==="multi"?(l(),u(i,{class:"!w-full",key:"user-statistics_list-orders",tab:s(t).useString("orders"),onClick:e[2]||(e[2]=r=>s(a).push({name:"user-statistics_list-orders"}))},null,8,["tab"])):c("",!0),s(t).isSeller?(l(),u(i,{class:"!w-full",key:"user-statistics_list-customers",tab:s(t).useString("customers"),onClick:e[3]||(e[3]=r=>s(a).push({name:"user-statistics_list-customers"}))},null,8,["tab"])):c("",!0),k.value?(l(),u(i,{class:"!w-full",key:"user-statistics_list-saved",tab:s(t).useString("saved")},null,8,["tab"])):c("",!0)]),_:1},8,["activeKey"])])])],2),o("div",{class:_(["flex relative",g.value==="user-statistics_list-saved"?"":"px-4"])},[d(C,{class:"w-full mt-25 !pb-15vh"})],2)])}}});export{L as default};