Files
ntspi-app/public/build/assets/Index-Cqifju9j.js
T
2024-10-28 12:57:16 +05:00

2 lines
8.5 KiB
JavaScript

import{i as k,r,o as a,c,b as t,a as n,w as u,p as b,j as g,t as h,l as p,Z as S,F as w,d as N,e as L}from"./app-lT3z3TR3.js";import{B as C,C as M}from"./SearchModal-YI3bdWA9.js";import{_}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import{F as I}from"./v3-B5UP5GZw.js";import{C as D}from"./ClientScrollTimeline-BxA_EWwM.js";import{A as $,a as q,b as E}from"./AdminIndexHeaderTitle-DyC17FG6.js";import{A as F}from"./AdminIndexHeader-Ci_3kRvq.js";import{C as A,a as T}from"./ClientPostSearch-85XLLeIC.js";import{C as j}from"./ClientPost-KvELvIac.js";import{M as P}from"./MainPageNavbar-BfM50q-7.js";import"./SortingByFilter-CjZ8gKSr.js";const H={name:"DivisionListBreadcrumbs",components:{BaseIcon:C,Link:k},data(){return{}},methods:{textLimit(s,e){if(s.length>e){let o;return o=s.substring(0,e),o+"..."}return s},isMobileDevice(){return window.innerWidth<1024},handleSectionClick(s){this.isMobileDevice()?this.toggleMobileNavSection(s):this.toggleDesktopNavSection(s)},handleSubSectionClick(s,e){this.isMobileDevice()?this.toggleMobileNavSubSection(s,e):this.toggleDesktopNavSubSection(s,e)},highlightNavItem(s){s.classList.add("animate-pulse"),setTimeout(()=>{s.classList.remove("animate-pulse")},4e3)},openMobileNavMenu(){document.getElementById("open-mobile-btn").click()},toggleMobileNavSubSection(s,e){this.openMobileNavMenu();const o=document.getElementById("open-mobile-nav"),l=o.querySelector("#nav-section-accordion-"+s.data.slug),v=o.querySelector("#nav-section-accordion-btn-"+s.data.slug);l.classList.contains("active")||v.click();const i=o.querySelector("#nav-sub-section-accordion-"+e.data.slug),d=o.querySelector("#nav-sub-section-accordion-btn-"+e.data.slug);i.classList.contains("active")&&d.click(),this.highlightNavItem(i)},toggleMobileNavSection(s){const e=document.getElementById("open-mobile-nav"),o=e.querySelector("#nav-section-accordion-"+s.data.slug),l=e.querySelector("#nav-section-accordion-btn-"+s.data.slug);o.classList.contains("active")&&l.click(),this.openMobileNavMenu(),this.highlightNavItem(o)},toggleDesktopNavSubSection(s,e){const o=document.getElementById("desktop-nav"),l=o.querySelector("#nav-sub-section-title-"+e.data.slug);o.querySelector("#nav-section-btn-"+s.data.slug).click(),this.highlightNavItem(l)},toggleDesktopNavSection(s){const e=document.getElementById("desktop-nav");e.querySelector("#nav-section-menu-"+s.data.slug),e.querySelector("#nav-section-btn-"+s.data.slug).click()}},props:{breadcrumbs:{type:Object},eventTitle:{type:String}}},V={class:"flex justify-between pb-4 items-center"},z={class:"flex w-full sm:items-center gap-x-5 sm:gap-x-3"},W={class:"grow"},O={class:"grid sm:flex sm:justify-between sm:items-center gap-2"},Y={key:0,class:"flex items-center whitespace-normal min-w-0 flex-wrap gap-y-2","aria-label":"Breadcrumb"},Z={class:"text-sm"},G={key:0,class:"text-sm"},J={key:1,class:"text-sm"},K={class:"text-sm"},Q={key:1,class:"flex items-center whitespace-nowrap min-w-0 flex-wrap","aria-label":"Breadcrumb"},R={class:"text-sm"},U={class:"text-sm"};function X(s,e,o,l,v,i){const d=r("BaseIcon"),m=r("Link");return a(),c("div",V,[t("div",z,[t("div",W,[t("div",O,[o.breadcrumbs?(a(),c("ol",Y,[t("li",Z,[n(m,{href:s.route("index"),class:"flex items-center text-gray-500 hover:text-blue-600"},{default:u(()=>[n(d,{class:"size-5",name:"home"})]),_:1},8,["href"])]),o.breadcrumbs.mainSection?(a(),c("li",G,[t("span",{class:"flex items-center text-gray-500 hover:text-primaryBlue cursor-pointer",onClick:e[0]||(e[0]=b(x=>i.handleSectionClick(this.breadcrumbs.mainSection),["prevent"]))},[e[2]||(e[2]=t("svg",{class:"flex-shrink-0 mx-2 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"},[t("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)),g(" "+h(i.textLimit(this.breadcrumbs.mainSection.data.title,25)),1)])])):p("",!0),o.breadcrumbs.subSection?(a(),c("li",J,[t("span",{class:"flex items-center text-gray-500 hover:text-primaryBlue cursor-pointer",onClick:e[1]||(e[1]=b(x=>i.handleSubSectionClick(this.breadcrumbs.mainSection,this.breadcrumbs.subSection),["prevent"]))},[e[3]||(e[3]=t("svg",{class:"flex-shrink-0 mx-2 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"},[t("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)),g(" "+h(i.textLimit(this.breadcrumbs.subSection.data.title,25)),1)])])):p("",!0),t("li",K,[n(m,{href:s.route("client.program.index"),class:"flex items-center text-gray-500 hover:text-blue-600"},{default:u(()=>[e[4]||(e[4]=t("svg",{class:"flex-shrink-0 mx-2 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"},[t("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)),g(" "+h(i.textLimit("Образовательные программы",30)),1)]),_:1},8,["href"])])])):p("",!0),o.breadcrumbs?p("",!0):(a(),c("ol",Q,[t("li",R,[n(m,{href:s.route("index"),class:"flex items-center text-gray-500 hover:text-blue-600"},{default:u(()=>[n(d,{class:"size-5",name:"home"})]),_:1},8,["href"])]),t("li",U,[n(m,{href:s.route("client.division.index"),class:"flex items-center text-gray-500 hover:text-blue-600"},{default:u(()=>[e[5]||(e[5]=t("svg",{class:"flex-shrink-0 mx-2 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"},[t("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)),g(" "+h(i.textLimit("Подразделения института",30)),1)]),_:1},8,["href"])])]))])])])])}const ee=_(H,[["render",X]]),te={name:"Index",components:{DivisionListBreadcrumbs:ee,MainPageNavBar:P,AdminIndexHeaderTitle:$,AdminIndexHeader:F,AdminIndexFilter:q,AdminIndexSearch:E,ClientFooterDown:M,ClientScrollTimeline:D,ClientPostFilter:A,Link:k,FsLightbox:I,Head:S,ClientPost:j,ClientPostSearch:T},data(){return{}},props:{divisions:{type:Array}},methods:{},mounted(){}},se={class:"flex flex-col h-screen"},oe={class:"flex-grow"},ie={class:"relative mb-auto mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},ne={class:"px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},ae={class:"space-y-5 md:space-y-4"},le={class:"space-y-5 md:space-y-4"},re={class:"max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto"},ce={class:"max-w-2xl text-center mx-auto mb-10 lg:mb-14"},de={class:"grid sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-3 gap-3 sm:gap-6"},me={class:"p-4 md:p-5 w-full"},ue={class:"flex justify-between items-center gap-x-3"},he={class:"grow"},ve={class:"group-hover:text-blue-600 font-semibold text-gray-800"};function ge(s,e,o,l,v,i){const d=r("Head"),m=r("MainPageNavBar"),x=r("DivisionListBreadcrumbs"),y=r("Link"),B=r("ClientFooterDown");return a(),c(w,null,[n(d,null,{default:u(()=>e[0]||(e[0]=[t("title",null,"Подразделения института",-1),t("meta",{name:"description",content:"Your page description"},null,-1)])),_:1}),n(m,{class:"border-b",sections:s.$page.props.navigation},null,8,["sections"]),t("div",se,[t("main",oe,[t("div",ie,[t("div",ne,[t("div",null,[t("div",ae,[t("div",le,[t("div",re,[t("div",ce,[n(x),e[1]||(e[1]=t("h2",{class:"text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"},"Подразделения института",-1)),e[2]||(e[2]=t("p",{class:"mt-1 text-gray-600 dark:text-neutral-400"},"We've helped some great companies brand, design and get to market.",-1))]),t("div",de,[(a(!0),c(w,null,N(o.divisions.data,f=>(a(),L(y,{href:s.route("client.division.show",f.slug),class:"group flex items-center bg-white border shadow-sm rounded-xl hover:shadow-md focus:outline-none focus:shadow-md transition"},{default:u(()=>[t("div",me,[t("div",ue,[t("div",he,[t("h3",ve,h(f.title),1)]),e[3]||(e[3]=t("div",null,[t("svg",{class:"shrink-0 size-5 text-gray-800",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"},[t("path",{d:"m9 18 6-6-6-6"})])],-1))])])]),_:2},1032,["href"]))),256))])])])])])])])]),n(B)])],64)}const Ce=_(te,[["render",ge]]);export{Ce as default};