PageSourceSearch

https://khayyam.ac.ir/_next/static/chunks/5577.7c4f86067bdcede9.js

js khayyam.ac.ir collected 2026-10-02 13:35:14 UTC 2,152 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5577],{39511:function(e,t,n){var r=n(85893),a=n(67294),i=n(53749),s=n(49086),l=n(87764),c=n(90737),o=n(5014),d=n(66413),u=n(80393);let p=e=>{let{department:t,showHead:n=!1,showDeputy:p=!1,showSecretary:m=!1,showMembers:h=!1,departmentType:f,withContainer:x=!1}=e,{data:j,isFetching:y,isError:Z}=(0,i.Z)({params:{department:t.id,sortBy:"user.lastName",limit:999}}),g=(0,a.useMemo)(()=>(null==j?void 0:j.results)||[],[j]),w=(0,a.useMemo)(()=>{let e=[];return f===s.Cm.Unit?(p&&(e=e.concat(g.filter(e=>e.type===s.d.Deputy))),n&&(e=e.concat(g.filter(e=>e.type===s.d.Head)))):(n&&(e=e.concat(g.filter(e=>e.type===s.d.Head))),p&&(e=e.concat(g.filter(e=>e.type===s.d.Deputy)))),m&&(e=e.concat(g.filter(e=>e.type===s.d.Secretary))),e},[f,g,n,p,m]),C=(0,a.useMemo)(()=>h?g.filter(e=>e.type===s.d.Normal):[],[g,h]);if(y)return(0,r.jsx)(l.l,{});if(Z||!j)return(0,r.jsx)(r.Fragment,{});let v=(e,t)=>{if(!e.length)return null;if(x)return f===s.Cm.Unit?(0,r.jsx)(d.Z,{arrayLength:e.length,children:e.map(e=>(0,r.jsx)(c.Z,{thatOnePosition:e},"".concat(t,"-grid")))}):(0,r.jsx)(u.Z,{children:e.map(e=>(0,r.jsx)(o.Z,{thatOnePosition:e},"".concat(t,"-flex")))});let n=e.map(e=>f===s.Cm.Unit?(0,r.jsx)(c.Z,{thatOnePosition:e},"".concat(t,"-grid")):(0,r.jsx)(o.Z,{thatOnePosition:e},"".concat(t,"-flex")));return n};return(0,r.jsxs)(r.Fragment,{children:[(n||p||m)&&v(w,"head"),(n||p||m)&&h&&(0,r.jsx)("div",{style:{paddingTop:"1rem"}}),h&&v(C,"members")]})};t.Z=p},80393:function(e,t,n){var r=n(85893),a=n(51233);let i=e=>{let{children:t}=e;return(0,r.jsx)(a.Z,{direction:"row",spacing:1,useFlexGap:!0,flexWrap:"wrap",justifyContent:"center",children:t})};t.Z=i},15387:function(e,t,n){n.r(t);var r=n(85893),a=n(39511),i=n(86886),s=n(15861);let l=e=>{let{department:t,departmentType:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.ZP,{container:!0,flexDirection:"column",gap:"2.5rem",p:"2.5rem",children:(0,r.jsx)(s.Z,{variant:"h3",children:t.name})}),(0,r.jsx)(a.Z,{department:t,departmentType:n,showHead:!0,showDeputy:!0,showSecretary:!0,showMembers:!0,withContainer:!0})]})};t.default=l}}]);

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.