Files
ntspi-app/public/build/assets/Index-DL2A2p-j.js
T
2024-09-19 16:06:49 +05:00

2 lines
4.0 KiB
JavaScript

import{M as A}from"./MainNavbar-CBx37KIe.js";import{i as E,Z as F,r as c,o as n,c as i,a as u,w as m,b as t,n as w,F as r,d as p,g as b,e as C,t as g}from"./app-DmJ8GS-7.js";import{F as L}from"./v3-rkPj73qv.js";import{C as I}from"./ClientScrollTimeline-zadrTdrA.js";import{C as N}from"./ClientFooterDown-D8UuGhzW.js";import{A as T,a as j,b as H}from"./AdminIndexHeaderTitle-D8ksOx2b.js";import{A as M}from"./AdminIndexHeader-CAfP1jQ8.js";import{C as B,a as D}from"./ClientPostSearch-D0YX2x3W.js";import{C as S}from"./ClientPost-BP_ZUrbH.js";import{_ as O}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal.vue_vue_type_style_index_0_scoped_a4fc4416_lang-CbsljUTZ.js";/* empty css */const P={name:"Index",components:{AdminIndexHeaderTitle:T,AdminIndexHeader:M,AdminIndexFilter:j,AdminIndexSearch:H,ClientFooterDown:N,ClientScrollTimeline:I,ClientPostFilter:B,Link:E,MainNavbar:A,FsLightbox:L,Head:F,ClientPost:S,ClientPostSearch:D},data(){return{direction_id:this.filters.dir_id}},props:{directionAdditionalEducations:{type:Object},additionalEducations:{type:Object},filters:{type:Object}},methods:{transformToColumns(e){return((x,h)=>x.reduce((d,y,a)=>a%h?d:[...d,x.slice(a,a+h)],[]))(e,Math.ceil(e.length/2)).reverse()},textLimit(e,l){if(e.length>l){let o;return o=e.substring(0,l),o+"..."}return e}},mounted(){}},V=t("title",null,"Дополнительное образование",-1),$=t("meta",{name:"description",content:"Your page description"},null,-1),Y={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:py-10"},Z={class:"w-100"},q={class:"space-y-5 md:space-y-4"},z=t("h1",{class:"text-brand-primary text-center mb-3 mt-2 text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"}," Дополнительное образование ",-1),G={class:"space-y-5 md:space-y-4"},J={class:""},K={class:"-mb-0.5 flex justify-center space-x-6 flex-wrap"},Q={class:"container mx-auto xl:px-5 py-5 lg:py-4"},R={class:"w-full mx-auto gap-x3 flex flex-wrap lg:justify-center"},U={class:"flex flex-col"},W={style:{height:"max-content"},class:"px-2"},X={class:"text-brand-primary mb-2 mt-2 text-lg font-semibold upper tracking-tight dark:text-white lg:text-md lg:leading-tight"};function tt(e,l,o,x,h,d){const y=c("Head"),a=c("MainNavbar"),_=c("Link"),k=c("ClientFooterDown");return n(),i(r,null,[u(y,null,{default:m(()=>[V,$]),_:1}),u(a,{class:"border-b",sections:e.$page.props.navigation},null,8,["sections"]),t("div",Y,[t("div",Z,[t("div",null,[t("div",q,[z,t("div",G,[t("div",null,[t("div",J,[t("nav",K,[u(_,{class:w([{"border-blue-500 text-blue-600":this.direction_id===null,"text-gray-500 border-transparent":this.direction_id!==null},"py-2 px-1 inline-flex items-center gap-2 border-b text-sm whitespace-nowrap hover:text-blue-600 focus:outline-none focus:text-blue-600"]),href:e.route("client.additionalEducation.index")},{default:m(()=>[b(" Все программы ")]),_:1},8,["class","href"]),(n(!0),i(r,null,p(o.directionAdditionalEducations.data,s=>(n(),C(_,{class:w([{"border-blue-500 text-blue-600":s.id==this.filters.dir_id,"text-gray-500 border-transparent":s.id!=this.direction_id},"py-2 px-1 inline-flex items-center gap-2 border-b text-sm whitespace-nowrap hover:text-blue-600 focus:outline-none focus:text-blue-600"]),href:e.route("client.additionalEducation.index",{dir_id:s.id})},{default:m(()=>[b(g(s.title),1)]),_:2},1032,["class","href"]))),256))])]),t("div",Q,[t("div",R,[(n(!0),i(r,null,p(d.transformToColumns(this.additionalEducations.data),s=>(n(),i("div",U,[(n(!0),i(r,null,p(s,v=>(n(),i("div",W,[t("h1",X,g(v.title),1),(n(!0),i(r,null,p(v.additionalEducations,f=>(n(),C(_,{key:f.id,class:"block text-[#1E57A3] hover:text-blue-600 duration-200 text-sm underline underline-offset-2 py-1",href:e.route("client.additionalEducation.show",f)},{default:m(()=>[b(g(f.title),1)]),_:2},1032,["href"]))),128))]))),256))]))),256))])])])])])])])]),u(k)],64)}const pt=O(P,[["render",tt]]);export{pt as default};