PageSourceSearch

https://msagheb.ir/app/assets/index-R5LbTzX3.js

js msagheb.ir collected 2026-09-25 07:34:38 UTC 6,074 bytes, 1 lines download raw bytes

1import{r as C,u as k,j as t,L as m,O as I}from"./react-CC1faa-K.js";import{R as r,j as w,v as F,d as K,u as E,e as S,g as d,c as u}from"./index-BgY_HW_c.js";import{O as D,L as O,Q as R,V as L,c as A,X as B}from"./icons-BnvIFHtd.js";import{S as a,a2 as G,B as o,m as M,K as g}from"./mui-DWCKKmMe.js";import"./dates-DjetTc6v.js";import"./query-DMVz0aUJ.js";import"./neshan-D5pLIdoN.js";import"./forms-Cz4Q3b43.js";import"./motion-CrTrTS3t.js";const W=[{icon:D,labelKey:"profile.menu.settings",variant:"Bulk",type:"svg",path:"/profile/settings",role:r.Guest},{icon:O,labelKey:"profile.menu.address",variant:"Bulk",type:"svg",path:"/profile/address",role:r.Guest},{icon:"/app/images/icons/flag.svg",labelKey:"profile.menu.sessions",type:"img",path:"/profile/sessions",role:r.Guest},{icon:R,labelKey:"profile.menu.messages",variant:"Bulk",type:"svg",path:"/profile/messages",role:r.Guest},{icon:"/app/images/icons/flag.svg",labelKey:"profile.menu.requests",type:"img",path:"/profile/requests",role:r.SPEAKER},{icon:L,labelKey:"profile.menu.becomeSpeaker",variant:"Outline",type:"svg",path:"/profile/certificate",role:r.Client},{icon:A,labelKey:"profile.menu.wallet",variant:"Outline",type:"svg",path:"/profile/wallet",role:r.Client},{icon:B,labelKey:"profile.menu.logout",variant:"Outline",type:"svg",path:"/",onClick:l=>(confirm(w("profile.logoutConfirmation"))&&(F(K),window.location.href="/app/auth/login"),l.preventDefault()),role:r.Guest}],N=l=>W.map(n=>l&&n.labelKey==="profile.menu.becomeSpeaker"?{...n,labelKey:"profile.menu.moreDoc"}:n),z=()=>{const{t:l}=E(),[n,f]=C.useState(null),b=k().pathname,{user:c,getIsSpeaker:v}=S(),h=N(v()).filter(e=>e.role<=(c?.role?.id||r.Guest)),x=e=>b===e,y=(e,s,i,p)=>t.jsxs(o,{position:"relative",className:"icon-box",children:[t.jsx(d,{displayItem:{xs:"none",md:"block"},children:t.jsx(o,{bgcolor:{xs:"#FFFFFF99",md:"#DCEED3"},sx:{width:{xs:"44px",md:"205px"},height:"44px",position:"absolute",top:"12px",left:{xs:"11px",md:"110px"},borderRadius:"17px",zIndex:0,transform:"translateY(-50%) translateX(-50%)",opacity:n===s||p?1:0,transition:"opacity 0.3s ease-in-out"}})}),t.jsx(o,{position:"relative",zIndex:1,onMouseEnter:()=>f(s),onMouseLeave:()=>f(null),sx:{bgcolor:n===s||p?"#FFFFFF99":"transparent",borderRadius:"17px",padding:"3px 6px",transform:n===s||p?"scale(1.1)":"scale(1)",transition:"transform 0.2s ease-in-out",display:"flex",justifyContent:"center",width:"80%",m:"0 auto",textAlign:"center"},children:t.jsxs(a,{direction:"column",alignContent:"center",justifyItems:"center",alignItems:"center",children:[typeof e!="string"&&t.jsx(M,{children:t.jsx(e,{size:"25",color:"#2A2C65",variant:i})}),typeof e=="string"&&t.jsx(o,{component:"img",src:e}),t.jsx(d,{displayItem:{xs:"block",md:"none"},children:t.jsx(u,{variant:"Caption",mt:.5,textAlign:"center",sx:{width:{xs:"auto",md:"205px"}},children:l(h[s].labelKey)})})]})})]}),j=(e,s)=>{const i=x(e.path);let p=null;return e.type==="svg"&&typeof e.icon!="string"&&e.variant&&(p=y(e.icon,s,e.variant,i)),e.type==="img"&&typeof e.icon=="string"&&(p=y(e.icon,s,"Outline",i)),p};return t.jsxs(a,{bgcolor:"#F3F6F1",minHeight:"max(670px, 100%)",borderRadius:"17px",direction:"row",children:[t.jsxs(a,{width:{xs:"100%",md:"30%"},minHeight:"max(670px, 100%)",bgcolor:"#DCEED3",borderRadius:"17px",alignItems:"center",justifyContent:"space-between",position:"relative",spacing:2,children:[t.jsx(a,{width:"100%",alignItems:"center",children:t.jsx(G,{src:c?.avatar||`https://avatar.iran.liara.run/public/${c&&c.genderID===2?"85":"45"}`,sx:{mt:"1rem"}})}),t.jsx(a,{alignItems:"center",spacing:2,width:"100%",flex:1,children:h.slice(0,4).map((e,s)=>t.jsx(o,{width:"100%",display:"flex",justifyContent:"center",component:m,to:e.path,onClick:e.onClick&&e.onClick,children:j(e,s)},s))}),t.jsx(a,{alignItems:"center",spacing:2,width:"100%",pb:7,children:h.slice(4).map((e,s)=>t.jsx(o,{width:"100%",display:"flex",justifyContent:"center",component:m,to:e.path,onClick:e.onClick&&e.onClick,children:j(e,s+4)},s+4))})]}),t.jsx(d,{displayItem:{xs:"none",md:"block"},children:t.jsxs(a,{width:"100%",height:"100%",alignItems:"flex-start",justifyContent:"space-between",pl:2,children:[t.jsxs(o,{sx:{mt:"1rem",width:"100%"},children:[t.jsx(o,{height:"40px",display:"flex",alignItems:"center",sx:{fontWeight:n===-1?"bold":"normal",transition:"all 0.2s ease-in-out",transform:n===-1?"scale(1.05)":"scale(1)",opacity:n===-1?1:.8},children:t.jsx(u,{variant:"Body",fontWeight:"bold",children:c?.firstname||c?.lastname?`${c?.firstname??""} ${c?.lastname??""}`.trim():l("profile.menu.guestUser")})}),t.jsx(a,{spacing:2,width:"100%",mt:1.2,children:h.slice(0,4).map((e,s)=>{const i=x(e.path);return t.jsx(o,{height:"30px",display:"flex",alignItems:"center",component:m,to:e.path,sx:{textDecoration:"none",color:"inherit"},className:`menu-label ${n===s||i?"active":""}`,onClick:e.onClick&&e.onClick,children:t.jsx(o,{sx:{fontWeight:n===s||i?"bold":"normal",transition:"all 0.2s ease-in-out",transform:n===s||i?"scale(1.05)":"scale(1)",opacity:n===s||i?1:.8},children:t.jsx(u,{variant:"Caption",fontWeight:i?700:400,children:l(e.labelKey)})})},s)})})]}),t.jsx(a,{spacing:2,width:"100%",mb:7,children:h.slice(4).map((e,s)=>{const i=x(e.path);return t.jsx(o,{height:"30px",display:"flex",alignItems:"center",component:m,to:e.path,sx:{textDecoration:"none",color:"inherit"},className:`menu-label ${n===s+4||i?"active":""}`,onClick:e.onClick&&e.onClick,children:t.jsx(o,{sx:{fontWeight:n===s+4||i?"bold":"normal",transition:"all 0.2s ease-in-out",transform:n===s+4||i?"scale(1.05)":"scale(1)",opacity:n===s+4||i?1:.8},children:t.jsx(u,{variant:"Caption",fontWeight:i?700:400,children:l(e.labelKey)})})},s+4)})})]})})]})},H=()=>t.jsx(a,{width:"100%",height:"100%",children:t.jsxs(g,{container:!0,spacing:2,sx:{minHeight:"100%"},children:[t.jsx(g,{size:{xs:3,sm:2,md:3},minHeight:"calc(100vh - 150px)",height:"fit-content",children:t.jsx(z,{})}),t.jsx(g,{size:{xs:9,sm:10,md:9},children:t.jsx(a,{bgcolor:"#F3F6F1",height:"100%",borderRadius:"17px",children:t.jsx(I,{})})})]})}),J=()=>t.jsx(H,{});export{J as default};

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.