import{i as k,Z as S,r as h,o as r,c as n,b as e,a as m,w as _,g as f,t as a,f as P,F as g,d as w,n as b,j as B,h as j,e as L,k as E,l as $,T as Z}from"./app-C722ecVx.js";import{F as y}from"./v3-918lQ39M.js";import{C as T}from"./ClientFooterDown-nb4a-O5q.js";import{s as C}from"./SearchModal-72Hbiqqz.js";import{a as R,c as A,b as W,P as Y}from"./PageNavigateLinks-DFdi5-l_.js";import{M as F}from"./MainNavbar-CK8Gfm-M.js";import{_ as p}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{F as q}from"./FacultyBuilder-DSUoeSuY.js";import{C as G}from"./ClientImageSlider-DIxDD91b.js";import{P as J}from"./PageTabBuilder-CRT8Vrz4.js";import{M as K}from"./MainPageNavbar-DcM2ZJ6Y.js";/* empty css */const Q={name:"ClientDepartmentWorkerCard",data(){return{toggler:!1}},props:{worker:{type:Object}},components:{ClientFooterDown:T,MainNavbar:F,Link:k,FsLightbox:y,Head:S}},U={class:"flex flex-col rounded-xl p-4 md:p-6 bg-white border border-gray-200 dark:bg-slate-900 dark:border-gray-700"},X={class:"flex items-center gap-y-4 gap-x-4 flex-wrap"},ee=["src"],te={class:"grow"},se={key:0,class:"text-xs text-gray-500 mt-2"},oe={class:"text-xs text-gray-500 mt-2"},le={class:"text-xs text-gray-500 mt-2"};function re(s,t,o,u,l,i){const c=h("Link"),d=h("FsLightbox");return r(),n(g,null,[e("div",U,[e("div",X,[e("img",{onClick:t[0]||(t[0]=v=>l.toggler=!l.toggler),loading:"lazy",class:"rounded-xl md:w-[150px]",src:"/storage/"+o.worker.photo,alt:"Image Description"},null,8,ee),e("div",te,[m(c,{href:s.route("client.person.show",o.worker.id),class:"font-medium text-gray-800 hover:text-gray-500 underline"},{default:_(()=>[f(a(o.worker.position)+": "+a(o.worker.name),1)]),_:1},8,["href"]),o.worker.academicTitle!==null?(r(),n("p",se," Ученая степень: "+a(o.worker.academicTitle),1)):P("",!0),e("p",oe," Контактный телефон: "+a(o.worker.contactPhone),1),e("p",le," Электронная почта: "+a(o.worker.contactEmail),1),t[1]||(t[1]=e("p",{class:"text-xs text-gray-500 mt-2"}," Кабинет: 207В ",-1))])])]),m(d,{class:"",toggler:l.toggler,sources:["/storage/"+o.worker.photo]},null,8,["toggler","sources"])],64)}const ne=p(Q,[["render",re]]),ae={name:"ClientDepartmentTeacherCard",data(){return{toggler:!1}},props:{teacher:{type:Object}},components:{ClientFooterDown:T,MainNavbar:F,Link:k,FsLightbox:y,Head:S}},ie={class:"flex flex-col rounded-xl p-4 md:p-6 bg-white border border-gray-200 dark:bg-slate-900 dark:border-gray-700"},ce={class:"flex items-center gap-y-4 gap-x-4 flex-wrap"},de=["src"],ue={class:"grow"},ge={key:0,class:"text-xs text-gray-500 mt-2"},he={class:"text-xs text-gray-500 mt-2"},me={class:"text-xs text-gray-500 mt-2"};function pe(s,t,o,u,l,i){const c=h("Link"),d=h("FsLightbox");return r(),n(g,null,[e("div",ie,[e("div",ce,[e("img",{onClick:t[0]||(t[0]=v=>l.toggler=!l.toggler),loading:"lazy",class:"rounded-xl md:w-[150px]",src:"/storage/"+o.teacher.photo,alt:"Image Description"},null,8,de),e("div",ue,[m(c,{href:s.route("client.person.show",o.teacher.id),class:"font-medium text-gray-800 hover:text-gray-500 underline"},{default:_(()=>[f(a(o.teacher.position)+": "+a(o.teacher.name),1)]),_:1},8,["href"]),o.teacher.academicTitle!==null?(r(),n("p",ge," Ученая степень: "+a(o.teacher.academicTitle),1)):P("",!0),e("p",he," Контактный телефон: "+a(o.teacher.contactPhone),1),e("p",me," Электронная почта: "+a(o.teacher.contactEmail),1),t[1]||(t[1]=e("p",{class:"text-xs text-gray-500 mt-2"}," Кабинет: 207В ",-1))])])]),m(d,{class:"",toggler:l.toggler,sources:["/storage/"+o.teacher.photo]},null,8,["toggler","sources"])],64)}const fe=p(ae,[["render",pe]]),xe={name:"HeadingBlock",methods:{generateSlug:function(s){return C(s,{lower:!0,strict:!0,locale:"ru"})}},props:{block:{type:Object}}},we={class:"md:font-bold md:text-xl text-lg font-medium text-gray-800"};function ve(s,t,o,u,l,i){return r(),n("div",null,[e("h2",we,a(o.block.data.content),1)])}const be=p(xe,[["render",ve]]),_e={name:"ParagraphBlock",methods:{wrapTables(s){if(s.type==="paragraph"&&s.data&&s.data.content){const t=s.data.content.replace(/]*)>([\s\S]*?)<\/table>/g,(o,u,l)=>`
${l}
`);return{...s,data:{...s.data,content:t}}}return s}},props:{block:{type:Object}}},ke=["innerHTML"];function ye(s,t,o,u,l,i){return r(),n("div",{class:"text-sm text-gray-600 leading-6 md:text-[16px] md:text-[#374151] md:leading-8 md:font-light paragraph-container",innerHTML:i.wrapTables(o.block).data.content},null,8,ke)}const Ce=p(_e,[["render",ye]]),$e={name:"ImageBlock",components:{FsLightbox:y},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return C(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},Be=["src"];function Pe(s,t,o,u,l,i){const c=h("FsLightbox");return r(),n(g,null,[e("div",null,[e("img",{onClick:t[0]||(t[0]=d=>l.toggler=!l.toggler),loading:"lazy",class:"mx-auto object-cover rounded-md hover:opacity-95 hover:duration-200 transition",src:"/storage/"+o.block.data.url,alt:""},null,8,Be)]),m(c,{class:"",toggler:l.toggler,sources:[l.domainPath+"/storage/"+o.block.data.url]},null,8,["toggler","sources"])],64)}const Le=p($e,[["render",Pe]]),Se={name:"FileBlock",components:{FsLightbox:y},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return C(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},je={class:""},Te=["href"],He={class:"flex border rounded-lg px-4 py-2 items-center justify-between duration-300 hover:bg-gray-100"},ze={class:"flex items-center"};function Fe(s,t,o,u,l,i){return r(!0),n(g,null,w(o.block.data.file,c=>(r(),n("div",je,[e("a",{class:"",href:"/storage/"+c.path,download:"",type:"button"},[e("div",He,[e("div",ze,[t[0]||(t[0]=e("div",{class:"w-[30px] h-[30px] bg-black flex justify-center items-center rounded-md mr-2"},[e("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M15.9375 12.2188H12.75C12.4682 12.2188 12.198 12.1068 11.9987 11.9076C11.7994 11.7083 11.6875 11.438 11.6875 11.1562V5.84375C11.6875 5.56196 11.7994 5.29171 11.9987 5.09245C12.198 4.89319 12.4682 4.78125 12.75 4.78125H15.9375V5.84375H12.75V11.1562H15.9375V12.2188ZM9.5625 12.2188H7.4375C7.15571 12.2188 6.88546 12.1068 6.6862 11.9076C6.48694 11.7083 6.375 11.438 6.375 11.1562V5.84375C6.375 5.56196 6.48694 5.29171 6.6862 5.09245C6.88546 4.89319 7.15571 4.78125 7.4375 4.78125H9.5625C9.84429 4.78125 10.1145 4.89319 10.3138 5.09245C10.5131 5.29171 10.625 5.56196 10.625 5.84375V11.1562C10.625 11.438 10.5131 11.7083 10.3138 11.9076C10.1145 12.1068 9.84429 12.2188 9.5625 12.2188ZM7.4375 5.84375V11.1562H9.5625V5.84375H7.4375ZM3.1875 12.2188H1.0625V4.78125H3.1875C3.75087 4.78195 4.29096 5.00606 4.68933 5.40442C5.08769 5.80279 5.3118 6.34288 5.3125 6.90625V10.0938C5.3118 10.6571 5.08769 11.1972 4.68933 11.5956C4.29096 11.9939 3.75087 12.218 3.1875 12.2188ZM2.125 11.1562H3.1875C3.46929 11.1562 3.73954 11.0443 3.9388 10.8451C4.13806 10.6458 4.25 10.3755 4.25 10.0938V6.90625C4.25 6.62446 4.13806 6.35421 3.9388 6.15495C3.73954 5.95569 3.46929 5.84375 3.1875 5.84375H2.125V11.1562Z",fill:"#F8F8F8"})])],-1)),e("div",null,a(c.title),1)])])],8,Te)]))),256)}const Me=p(Se,[["render",Fe]]),De={name:"PersonBlock",components:{FsLightbox:y},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return C(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},Ve={class:"w-full rounded-xl mb-4 p-4 md:p-6 bg-white border border-gray-200 dark:bg-slate-900 dark:border-gray-700"},Ne={class:"flex items-center gap-x-4"},Oe=["src"],Ie={class:"grow"},Ee={class:"font-medium text-gray-800 hover:text-gray-500"},Ze={class:"text-xs text-gray-500 mt-2"};function Re(s,t,o,u,l,i){const c=h("FsLightbox");return r(),n(g,null,[e("div",Ve,[e("div",Ne,[e("img",{onClick:t[0]||(t[0]=d=>l.toggler=!l.toggler),loading:"lazy",class:"rounded-xl w-[150px]",src:"/storage/"+o.block.data.photo,alt:"Image Description"},null,8,Oe),e("div",Ie,[e("p",Ee,a(o.block.data.name),1),(r(!0),n(g,null,w(o.block.data.info,d=>(r(),n("p",Ze,a(d.column)+": "+a(d.content),1))),256))])])]),m(c,{class:"",toggler:l.toggler,sources:[l.domainPath+"/storage/"+o.block.data.photo]},null,8,["toggler","sources"])],64)}const Ae=p(De,[["render",Re]]),We={name:"StepperBlock",components:{FsLightbox:y},data(){return{toggler:!1,domainPath:null}},methods:{generateSlug:function(s){return C(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},Ye={class:"flex gap-x-3"},qe={class:"w-16 text-end min-w-[4rem]"},Ge={class:"text-xs text-gray-500"},Je={class:"grow max-w-[70%] pt-0.5 pb-8 overflow-wrap break-words"},Ke={class:"flex gap-x-1.5 font-semibold text-gray-800"},Qe=["innerHTML"];function Ue(s,t,o,u,l,i){return r(),n("div",null,[(r(!0),n(g,null,w(o.block.data.steps,(c,d)=>(r(),n("div",Ye,[e("div",qe,[e("span",Ge,a(o.block.data.step_name)+" "+a(d+1),1)]),t[0]||(t[0]=e("div",{class:"relative last:after:hidden after:absolute after:top-7 after:bottom-0 after:start-3.5 after:w-px after:-translate-x-[0.5px] after:bg-gray-200"},[e("div",{class:"relative z-10 size-7 flex justify-center items-center"},[e("div",{class:"size-2 rounded-full bg-primaryBlue"})])],-1)),e("div",Je,[e("h3",Ke,a(c.title),1),e("p",{class:"mt-1 text-sm text-gray-600 step-content",innerHTML:c.content},null,8,Qe)])]))),256))])}const Xe=p(We,[["render",Ue]]),et={name:"VideoBlock",data(){return{toggler:!1,domainPath:null}},methods:{},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},tt={class:"h-full w-full rounded-lg",controls:""},st=["src","type"],ot={class:"mt-3 text-sm text-center text-gray-500 dark:text-neutral-500"};function lt(s,t,o,u,l,i){return r(),n(g,null,[e("video",tt,[e("source",{src:l.domainPath+"/storage/"+o.block.data.path,type:o.block.data.mime},null,8,st),t[0]||(t[0]=f(" Your browser does not support the video tag. "))]),e("figcaption",ot,a(o.block.data.title),1)],64)}const rt=p(et,[["render",lt]]),nt={name:"TabBlock",components:{PageTabBuilder:J},data(){return{activeTab:0}},methods:{generateSlug:function(s){return C(s,{lower:!0,strict:!0,locale:"ru"})}},mounted(){this.domainPath=window.location.origin},props:{block:{type:Object}}},at={class:""},it={class:"-mb-0.5 flex justify-center gap-x-2","aria-label":"Tabs",role:"tablist","aria-orientation":"horizontal"},ct=["onClick","id","data-hs-tab","aria-controls"],dt={class:"mt-3"},ut=["id","aria-labelledby"];function gt(s,t,o,u,l,i){const c=h("PageTabBuilder");return r(),n(g,null,[e("div",at,[e("nav",it,[(r(!0),n(g,null,w(o.block.data.tab,(d,v)=>(r(),n("button",{type:"button",class:b(["hs-tab-active:bg-gray-100 rounded-md hs-tab-active:text-gray-700 py-1.5 px-3 inline-flex items-center gap-x-2 border-b-2 border-transparent text-sm whitespace-nowrap text-gray-500 focus:outline-none disabled:opacity-50 disabled:pointer-events-none",l.activeTab===v?"active":""]),onClick:H=>l.activeTab=v,id:i.generateSlug(d.title)+"-item","data-hs-tab":"#"+i.generateSlug(d.title),"aria-selected":"false","aria-controls":i.generateSlug(d.title),role:"tab"},a(d.title),11,ct))),256))])]),e("div",dt,[(r(!0),n(g,null,w(o.block.data.tab,(d,v)=>(r(),n("div",{id:i.generateSlug(d.title),class:b(l.activeTab===v?"":"hidden"),role:"tabpanel","aria-labelledby":i.generateSlug(d.title)+"-item"},[m(c,{blocks:d.content},null,8,["blocks"])],10,ut))),256))])],64)}const ht=p(nt,[["render",gt]]),mt={name:"PostListBlock",components:{axios:B,Link:k},data(){return{posts:null,loading:!0}},methods:{getPosts(){B.get(route("client.widget.post.index"),{params:{count:this.block.data.count,category:this.block.data.category}}).then(s=>{this.posts=s.data,this.loading=!1}).catch(s=>{console.error("Ошибка:",s),this.loading=!1})}},mounted(){this.getPosts()},props:{block:{type:Object}}},pt={class:"w-full px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},ft={key:0,class:"flex flex-col space-y-4"},xt={key:1,class:"grid lg:grid-cols-1 lg:gap-y-16 gap-10"},wt={class:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5"},vt={class:"shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44"},bt=["src"],_t={class:"grow"},kt={class:"text-xl font-semibold text-gray-800 group-hover:text-gray-600"},yt={class:"flex justify-center"},Ct=["href"];function $t(s,t,o,u,l,i){const c=h("Link");return r(),n("div",pt,[l.loading?(r(),n("div",ft,t[0]||(t[0]=[j('

',3)]))):(r(),n("div",xt,[(r(!0),n(g,null,w(l.posts.data,d=>(r(),L(c,{key:d.id,class:"group block rounded-xl overflow-hidden focus:outline-none",href:s.route("client.post.show",d.slug)},{default:_(()=>[e("div",wt,[e("div",vt,[e("img",{class:"group-hover:scale-105 group-focus:scale-105 transition-transform duration-500 ease-in-out size-full absolute top-0 start-0 object-cover rounded-xl",src:d.preview?"storage/images/"+d.preview:"/img/thumbnail-1.png"},null,8,bt)]),e("div",_t,[e("h3",kt,a(d.title),1),t[1]||(t[1]=e("p",{class:"mt-3 text-gray-600"}," Produce professional, reliable streams easily leveraging Preline's innovative broadcast studio ",-1)),t[2]||(t[2]=e("p",{class:"mt-4 inline-flex items-center gap-x-1 text-sm text-primaryBlue decoration-2 group-hover:underline group-focus:underline font-medium"},[f(" Читать далее "),e("svg",{class:"shrink-0 size-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),128)),e("div",yt,[e("a",{href:s.route("client.post.index",{category:o.block.data.category}),class:"group inline-flex items-center gap-x-1 text-sm font-semibold text-[#1A5AAF]"},t[3]||(t[3]=[f(" Все новости "),e("svg",{class:"flex-shrink-0 size-4 transition ease-in-out group-hover:translate-x-1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m9 18 6-6-6-6"})],-1)]),8,Ct)])]))])}const Bt=p(mt,[["render",$t]]),Pt={name:"PageItemBlock",components:{axios:B,Link:k},data(){return{page:null,breadcrumbs:null,loading:!0}},methods:{getPage(s){B.get(route("client.widget.page.single",s)).then(t=>{this.page=t.data.data.page,this.breadcrumbs=t.data.data.breadcrumbs,this.loading=!1}).catch(t=>{console.error("Ошибка:",t),this.loading=!1})}},mounted(){this.getPage(this.block.data.page)},props:{block:{type:Object}}},Lt={key:0,class:"flex flex-col space-y-4"},St={key:1,class:"w-full px-2 sm:px-3 lg:px-4mx-auto"},jt=["href"],Tt={class:"p-4 md:p-5"},Ht={class:"flex items-center gap-x-5"},zt={class:"grow"},Ft={key:0,class:"flex items-center whitespace-nowrap"},Mt={class:"inline-flex items-center"},Dt={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},Vt={class:"inline-flex items-center"},Nt={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},Ot={class:"inline-flex items-center"},It={class:"flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600",href:"#"},Et={class:"mt-1 group-hover:text-blue-600 font-semibold text-gray-700"};function Zt(s,t,o,u,l,i){return l.loading?(r(),n("div",Lt,t[0]||(t[0]=[j('

',1)]))):(r(),n("div",St,[e("a",{class:"group flex flex-col bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition",href:l.page.is_url?l.page.path:s.route("page.view",l.page.path)+"/"},[e("div",Tt,[e("div",Ht,[t[3]||(t[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"mt-1 shrink-0 size-7 text-gray-600"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})],-1)),e("div",zt,[l.breadcrumbs?(r(),n("ol",Ft,[e("li",Mt,[e("span",Dt,a(l.breadcrumbs.mainSection),1),t[1]||(t[1]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),e("li",Vt,[e("span",Nt,a(l.breadcrumbs.mainSection),1),t[2]||(t[2]=e("svg",{class:"shrink-0 mx-2 size-4 text-gray-400",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m9 18 6-6-6-6"})],-1))]),e("li",Ot,[e("span",It,a(l.breadcrumbs.page),1)])])):P("",!0),e("h3",Et,a(l.page.title),1)])])])],8,jt)]))}const Rt=p(Pt,[["render",Zt]]),At={name:"PostListBlock",components:{axios:B,Link:k},data(){return{post:null,loading:!0}},methods:{getPost(s){B.get(route("client.widget.post.single",s),{params:{count:this.block.data.count,category:this.block.data.category}}).then(t=>{this.post=t.data,this.loading=!1}).catch(t=>{console.error("Ошибка:",t),this.loading=!1})}},mounted(){this.getPost(this.block.data.post)},props:{block:{type:Object}}},Wt={class:"w-full px-4 py-5 sm:px-6 lg:px-8 lg:py-7 mx-auto"},Yt={key:0,class:"flex flex-col space-y-4"},qt={key:1,class:"grid lg:grid-cols-1 lg:gap-y-16 gap-10"},Gt={class:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5"},Jt={class:"shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44"},Kt=["src"],Qt={class:"grow"},Ut={class:"text-xl font-semibold text-gray-800 group-hover:text-gray-600"};function Xt(s,t,o,u,l,i){const c=h("Link");return r(),n("div",Wt,[l.loading?(r(),n("div",Yt,t[0]||(t[0]=[j('

',1)]))):(r(),n("div",qt,[m(c,{class:"group block rounded-xl overflow-hidden focus:outline-none",href:s.route("client.post.show",l.post.data.slug)},{default:_(()=>[e("div",Gt,[e("div",Jt,[e("img",{class:"group-hover:scale-105 group-focus:scale-105 transition-transform duration-500 ease-in-out size-full absolute top-0 start-0 object-cover rounded-xl",src:l.post.data.preview?"storage/images/"+l.post.data.preview:"/img/thumbnail-1.png"},null,8,Kt)]),e("div",Qt,[e("h3",Ut,a(l.post.data.title),1),t[1]||(t[1]=e("p",{class:"mt-3 text-gray-600"}," Produce professional, reliable streams easily leveraging Preline's innovative broadcast studio ",-1)),t[2]||(t[2]=e("p",{class:"mt-4 inline-flex items-center gap-x-1 text-sm text-primaryBlue decoration-2 group-hover:underline group-focus:underline font-medium"},[f(" Читать далее "),e("svg",{class:"shrink-0 size-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:1},8,["href"])]))])}const es=p(At,[["render",Xt]]),ts={name:"DepartmentBuilder",components:{FileBlock:Me,ImageBlock:Le,ClientImageSlider:G,ParagraphBlock:Ce,HeadingBlock:be,PersonBlock:Ae,StepperBlock:Xe,VideoBlock:rt,TabBlock:ht,PostListBlock:Bt,PageItemBlock:Rt,PostItemBlock:es},methods:{getComponent(s){return{heading:"HeadingBlock",paragraph:"ParagraphBlock",images:"ClientImageSlider",image:"ImageBlock",files:"FileBlock",person:"PersonBlock",stepper:"StepperBlock",video:"VideoBlock",tabs:"TabBlock",postsList:"PostListBlock",postItem:"PostItemBlock",pageItem:"PageItemBlock"}[s]||null}},props:{blocks:{type:Object}}};function ss(s,t,o,u,l,i){return r(!0),n(g,null,w(o.blocks,(c,d)=>(r(),L(E(i.getComponent(c.type)),{key:d,block:c},null,8,["block"]))),128)}const os=p(ts,[["render",ss]]),ls={name:"DepartmentBackButton",components:{Link:k},data(){return{}},methods:{textLimit(s,t){if(s.length>t){let o;return o=s.substring(0,t),o+"..."}return s},back(){this.$page.props.urlPrev!=="empty"&&this.$inertia.visit(this.$page.props.urlPrev)}},props:{title:{type:String}}};function rs(s,t,o,u,l,i){return r(),n("a",{href:"#",onClick:t[0]||(t[0]=$((...c)=>this.back&&this.back(...c),["prevent"])),class:"inline-flex items-center gap-x-1.5 text-sm text-gray-600 decoration-2 hover:underline dark:text-blue-500"},[t[1]||(t[1]=e("svg",{class:"flex-shrink-0 size-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m15 18-6-6 6-6"})],-1)),f(" "+a(o.title),1)])}const ns=p(ls,[["render",rs]]),as={name:"Page",data(){return{scrollTop:!1,currentNavSection:null}},props:{department:{type:Object},departments:{type:Object},directions:{type:Object}},components:{MainPageNavBar:K,DepartmentBackButton:ns,DepartmentBuilder:os,FacultyBuilder:q,ClientDepartmentTeacherCard:fe,ClientDepartmentWorkerCard:ne,PageTitle:R,PageBuilder:A,PageBreadcrumbs:W,PageNavigateLinks:Y,ClientFooterDown:T,Link:k,FsLightbox:y,Head:S},methods:{textLimit(s,t){if(s.length>t){let o;return o=s.substring(0,t),o+"..."}return s},openEditorImagesOnSlide:function(s){this.slide=s,this.toggler=!this.toggler},isSameRoute(s){if(this.$page.props.ziggy.location===s)return!0},generateSlug:function(s){return C(s,{lower:!0,strict:!0,locale:"ru"})},onScroll(s){window.top.scrollY>100?this.scrollTop=!0:this.scrollTop=!1},scrollToTop(){window.scrollTo(0,0)}},mounted(){window.addEventListener("scroll",this.onScroll),window.addEventListener("scroll",()=>{const s=document.querySelectorAll("h2"),t=document.querySelector("#visor");let o=null;const u=t.getBoundingClientRect();if(u.top>window.scrollY){this.currentNavSection=null,o=null;return}for(let l=0;l=0&&c.bottom<=window.innerHeight&&c.bottom>=u.top&&c.top<=u.bottom){i!==o&&(this.currentNavSection=i.id,o=i);break}}})},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("scroll",this.onScroll)},computed:{}},is={class:"flex flex-col h-screen justify-between"},cs={class:"relative mb-auto mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},ds={class:"sticky top-[110px] hidden h-[calc(100vh-110px)] max-w-[20%] md:flex md:shrink-0 md:flex-col md:justify-between"},us={key:0,class:"styled-scrollbar flex h-[calc(100vh-200px)] flex-col overflow-y-scroll pr-2 pb-4"},gs={class:"text-gray-1000 mb-2 text-md font-medium"},hs={class:"flex gap-x-1"},ms={class:"px-0.5 last-of-type:mb-0 mb-8"},ps=["href"],fs={class:"order-last hidden w-56 shrink-0 lg:block"},xs={class:"sticky top-[110px] h-[calc(100vh-110px)]"},ws={class:"styled-scrollbar max-h-[70vh] space-y-1.5 overflow-y-auto py-2 text-sm"},vs={class:"anchor-li"},bs={class:"anchor-li"},_s={class:"anchor-li"},ks={class:"anchor-li"},ys={class:"w-full min-w-0 mt-1 max-w-6xl px-1 md:px-6",style:{}},Cs={class:"space-y-5 md:space-y-5"},$s={class:"flex justify-between items-center mb-6"},Bs={class:"flex w-full sm:items-center gap-x-5 sm:gap-x-3"},Ps={class:"grow"},Ls={class:"grid sm:flex sm:justify-between sm:items-center gap-2"},Ss={class:"flex items-center whitespace-normal flex-wrap min-w-0","aria-label":"Breadcrumb"},js={class:"text-sm"},Ts={class:"text-sm"},Hs={class:"text-sm"},zs={class:"text-sm"},Fs={class:"space-y-3"},Ms={class:"text-2xl mb-10 font-bold md:text-3xl"},Ds={id:"page-area",class:"space-y-5 md:space-y-5"},Vs={class:"hs-accordion-group"},Ns={class:"hs-accordion hs-accordion-active:bg-gray-100 rounded-xl px-4 py-6",id:"hs-basic-with-title-and-arrow-stretched-heading-three"},Os={class:"hs-accordion-toggle group pb-3 inline-flex items-center justify-between gap-x-3 w-full md:text-lg font-semibold text-start text-gray-800 rounded-lg transition hover:text-gray-500 focus:outline-none","aria-expanded":"false","aria-controls":"hs-basic-with-title-and-arrow-stretched-collapse-three"},Is={id:"hs-basic-with-title-and-arrow-stretched-collapse-three",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300",role:"region","aria-labelledby":"hs-basic-with-title-and-arrow-stretched-heading-three"},Es={class:"list-disc list-outside space-y-3 ps-5 text-lg text-gray-800 dark:text-neutral-200"},Zs={class:"ps-2"},Rs={class:"space-y-3 md:space-y-4"};function As(s,t,o,u,l,i){const c=h("Head"),d=h("MainPageNavBar"),v=h("DepartmentBackButton"),H=h("ClientDepartmentWorkerCard"),M=h("ClientDepartmentTeacherCard"),D=h("Link"),V=h("DepartmentBuilder"),N=h("ClientFooterDown"),O=h("FsLightbox");return r(),n(g,null,[m(c,null,{default:_(()=>[e("title",null,a(o.department.data.title),1),t[5]||(t[5]=e("meta",{name:"description",content:"Your page description"},null,-1))]),_:1}),m(d,{class:"border-b",sections:s.$page.props.navigation},null,8,["sections"]),e("div",is,[e("div",cs,[t[18]||(t[18]=e("div",{class:"w-full h-[67px] pointer-events-none fixed",id:"visor"},null,-1)),e("div",ds,[this.departments?(r(),n("nav",us,[e("div",gs,"Кафедры факультета - "+a(o.department.data.faculty.abbreviation),1),e("div",hs,[e("ul",ms,[(r(!0),n(g,null,w(this.departments.data,x=>(r(),n("li",{key:o.department.id,class:"my-1.5 flex"},[e("a",{class:b([{"text-white hover:text-gray-200 font-semibold bg-[#135aae]":i.isSameRoute(s.route("client.department.show",{facultySlug:o.department.data.faculty.slug,departmentSlug:x.slug})),"text-gray-600 hover:text-[#2C6288]":!i.isSameRoute(s.route("client.department.show",{facultySlug:o.department.data.faculty.slug,departmentSlug:x.slug}))},"relative duration-300 flex w-full rounded-md cursor-pointer items-center px-2 py-1 text-left text-sm"]),href:s.route("client.department.show",{facultySlug:o.department.data.faculty.slug,departmentSlug:x.slug})+"/"},a(x.title),11,ps)]))),128))])])])):P("",!0)]),e("nav",fs,[e("div",xs,[t[7]||(t[7]=e("div",{class:"text-gray-1000 mb-2 text-md font-medium"},"На этой странице",-1)),e("ul",ws,[e("li",vs,[e("a",{class:b([{"translate-x-2 text-[#135aae]":this.currentNavSection==="workers","bg-transperant text-gray-600 hover:text-gray-900":this.currentNavSection!=="workers"},"duration-150 block py-1 px-2 leading-[1.6] rounded-md"]),href:"#workers"},"Сотрудники кафедры",2)]),e("li",bs,[e("a",{class:b([{"translate-x-2 text-[#135aae]":this.currentNavSection==="teachers","bg-transperant text-gray-600 hover:text-gray-900":this.currentNavSection!=="teachers"},"duration-150 block py-1 px-2 leading-[1.6] rounded-md"]),href:"#teachers"},"Преподаватели кафедры",2)]),e("li",_s,[e("a",{class:b([{"translate-x-2 text-[#135aae]":this.currentNavSection==="external-teachers","bg-transperant text-gray-600 hover:text-gray-900":this.currentNavSection!=="external-teachers"},"duration-150 block py-1 px-2 leading-[1.6] rounded-md"]),href:"#external-teachers"},"Внешние совместители",2)]),e("li",ks,[e("a",{class:b([{"translate-x-2 text-[#135aae]":this.currentNavSection==="programs","bg-transperant text-gray-600 hover:text-gray-900":this.currentNavSection!=="programs"},"duration-150 block py-1 px-2 leading-[1.6] rounded-md"]),href:"#programs"},"Программы",2)]),m(Z,{name:"fade"},{default:_(()=>[l.scrollTop?(r(),n("li",{key:0,class:"anchor-li flex items-center py-2 border-t",onClick:t[0]||(t[0]=$((...x)=>i.scrollToTop&&i.scrollToTop(...x),["prevent"]))},t[6]||(t[6]=[e("button",{class:"bg-transperant text-gray-600 cursor-pointer hover:text-gray-900 duration-300 block px-2 leading-[1.6] rounded-md"},"К началу",-1),e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-[17px] text-gray-600"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 11.25l-3-3m0 0l-3 3m3-3v7.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)]))):P("",!0)]),_:1})])])]),e("article",ys,[e("div",Cs,[m(v,{title:"Назад"}),e("div",$s,[e("div",Bs,[e("div",Ps,[e("div",Ls,[e("ol",Ss,[t[11]||(t[11]=e("li",{class:"text-sm"},[e("span",{class:"flex items-center text-gray-500 hover:text-blue-600"},[f(" Главная "),e("svg",{class:"flex-shrink-0 mx-3 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})])])],-1)),e("li",js,[e("span",{class:"flex items-center text-gray-500 hover:text-blue-600",onClick:t[1]||(t[1]=$(()=>{},["prevent"]))},t[8]||(t[8]=[f(" Факультеты "),e("svg",{class:"flex-shrink-0 mx-3 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)]))]),e("li",Ts,[e("span",{class:"flex items-center text-gray-500 hover:text-blue-600",onClick:t[2]||(t[2]=$(()=>{},["prevent"]))},[f(a(o.department.data.faculty.abbreviation)+" ",1),t[9]||(t[9]=e("svg",{class:"flex-shrink-0 mx-3 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1))])]),e("li",Hs,[e("span",{class:"flex items-center text-gray-500 hover:text-blue-600",onClick:t[3]||(t[3]=$(()=>{},["prevent"]))},t[10]||(t[10]=[f(" Кафедры "),e("svg",{class:"flex-shrink-0 mx-3 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)]))]),e("li",zs,[e("span",{class:"flex items-center text-gray-500 hover:text-blue-600",onClick:t[4]||(t[4]=$(()=>{},["prevent"]))},a(o.department.data.title),1)])])])])])]),e("div",Fs,[e("h1",Ms,a(o.department.data.title),1)]),e("div",Ds,[t[14]||(t[14]=e("h2",{id:"workers",class:"font-bold text-xl"},"Сотрудники кафедры",-1)),(r(!0),n(g,null,w(o.department.data.workers,x=>(r(),L(H,{worker:x},null,8,["worker"]))),256)),t[15]||(t[15]=e("h2",{id:"teachers",class:"font-bold text-xl"},"Преподаватели кафедры",-1)),(r(!0),n(g,null,w(o.department.data.teachers,x=>(r(),L(M,{teacher:x},null,8,["teacher"]))),256)),t[16]||(t[16]=e("h2",{id:"external-teachers",class:"font-bold text-xl"},"Внешние совместители",-1)),t[17]||(t[17]=e("h2",{id:"programs",class:"font-bold text-xl"},"Программы",-1)),e("div",Vs,[(r(!0),n(g,null,w(o.directions,(x,I)=>(r(),n("div",Ns,[e("button",Os,[f(a(I)+" ",1),t[12]||(t[12]=e("svg",{class:"hs-accordion-active:hidden block shrink-0 size-5 text-gray-600 group-hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m6 9 6 6 6-6"})],-1)),t[13]||(t[13]=e("svg",{class:"hs-accordion-active:block hidden shrink-0 size-5 text-gray-600 group-hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"m18 15-6-6-6 6"})],-1))]),e("div",Is,[e("ul",Es,[(r(!0),n(g,null,w(x,z=>(r(),n("li",Zs,[m(D,{href:s.route("client.program.show",z.id),class:"text-base text-blue-600 decoration-2 hover:underline focus:outline-none focus:underline font-medium dark:text-blue-500"},{default:_(()=>[f(a(z.name),1)]),_:2},1032,["href"])]))),256))])])]))),256))]),e("div",Rs,[m(V,{blocks:this.department.data.content},null,8,["blocks"])])])])])]),m(N)]),m(O,{class:"z-1000",slide:s.slide,toggler:s.toggler,sources:s.editorImages},null,8,["slide","toggler","sources"])],64)}const oo=p(as,[["render",As]]);export{oo as default};