import{_ as K,d as k,y as b,u as S,p as $,G as v,a6 as C,r as s,f as O,w as o,M as D,o as x,a as t,O as B,l as d,t as i}from"./app-BOG5ezKh.js";import{L}from"./LogoutOutlined-Crnl6nWV.js";import{S as M}from"./SettingOutlined-DBG1QHPz.js";import{S as R}from"./ShoppingOutlined-uGgELoBq.js";import{H as j}from"./HomeOutlined-CnVsO0GJ.js";const w=k({components:{HomeOutlined:j,ShoppingOutlined:R,SettingOutlined:M,LogoutOutlined:L},setup(){const e=b(),a=S(),r=$([]);v(()=>{const n=typeof e.meta.menuKey=="function"?e.meta.menuKey(e):e.meta.menuKey;r.value=[n.replace("-","_")]});const m=()=>{a.dispatch("front/logout")};return C(e,(n,c)=>{const l=typeof n.meta.menuKey=="function"?n.meta.menuKey(n):n.meta.menuKey;r.value=[l.replace("-","_")]}),{selectedKeys:r,logout:m}}});function H(e,a,r,m,n,c){const l=s("home-outlined"),p=s("router-link"),u=B,_=s("shopping-outlined"),f=s("setting-outlined"),y=s("logout-outlined"),g=D;return x(),O(g,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":a[0]||(a[0]=h=>e.selectedKeys=h),style:{paddingTop:"30px",paddingBottom:"30px",paddingLeft:"25px",paddingRight:"25px",borderRadius:"10px"}},{default:o(()=>[t(u,{key:"dashboard"},{icon:o(()=>[t(l)]),default:o(()=>[t(p,{to:{name:"front.dashboard"}},{default:o(()=>[d(i(e.$t("front.dashboard")),1)]),_:1})]),_:1}),t(u,{key:"orders"},{icon:o(()=>[t(_)]),default:o(()=>[t(p,{to:{name:"front.orders"}},{default:o(()=>[d(i(e.$t("front.my_orders")),1)]),_:1})]),_:1}),t(u,{key:"profile"},{icon:o(()=>[t(f)]),default:o(()=>[t(p,{to:{name:"front.profile"}},{default:o(()=>[d(i(e.$t("front.my_profile")),1)]),_:1})]),_:1}),t(u,{onClick:e.logout,key:"logout"},{icon:o(()=>[t(y)]),default:o(()=>[d(" "+i(e.$t("front.logout")),1)]),_:1},8,["onClick"])]),_:1},8,["selectedKeys"])}const z=K(w,[["render",H],["__file","/Users/rajeshkumawat/sites/stockifly/resources/js/main/views/front/includes/DashboardSidebar.vue"]]);export{z as D};
