import{M as w}from"./MainNavbar-CBx37KIe.js";import{C as f}from"./ClientFooterDown-D8UuGhzW.js";import{_ as b}from"./SearchModal.vue_vue_type_style_index_0_scoped_a4fc4416_lang-CbsljUTZ.js";import{i as _,r as p,o as s,c as r,a as i,b as e,k,s as y,x as C,j as M,w as I,y as B,F as c,h as N,d as u,g as S,t as g,z as j,A as D}from"./app-DmJ8GS-7.js";import{_ as F}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */const V={name:"Index",data(){return{searchInput:this.searchRequest}},components:{ClientFooterDown:f,MainNavbar:w,Link:_},props:["educationalGroups","mainSections","searchRequest","navigation"],methods:{search:b.debounce(function(){this.$inertia.reload({method:"get",data:{search:this.searchInput},preserveState:!0,replace:!0})},300)}},d=o=>(j("data-v-1fd6ceca"),o=o(),D(),o),L={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},T={class:"w-full min-w-0 mt-4 px-1 md:px-6"},q={class:"relative overflow-hidden"},z={class:"max-w-[85rem] mx-auto px-4 sm:px-6 lg:px-8 py-10 sm:pb-24 sm:py-5"},K={class:"text-center"},R=d(()=>e("h1",{class:"text-2xl sm:text-4xl font-bold text-gray-800 dark:text-gray-200"}," Расписание занятий ",-1)),A=d(()=>e("div",{class:"text-center"},[e("p",{class:"mt-3 text-gray-600 dark:text-gray-400"}," Просто введите название группы ")],-1)),E={class:"mt-7 sm:mt-12 mx-auto max-w-xl relative"},G={class:"relative z-10 space-x-3 p-3 bg-white border rounded-lg shadow-lg shadow-gray-100"},U={class:"flex justify-between"},$={class:"flex w-full"},H=d(()=>e("label",{for:"hs-search-article-1",class:"block text-sm text-gray-700 font-medium dark:text-white"},[e("span",{class:"sr-only"},"Поиск")],-1)),J=N('',2),O={class:"mx-auto max-w-2xl hs-accordion-group grid grid-cols-1 lg:grid-cols-2 gap-3"},P={class:"hs-accordion-toggle hs-accordion-active:text-blue-600 inline-flex justify-between items-center gap-x-3 w-full font-semibold text-start text-gray-800 py-4 px-5 hover:text-gray-500 disabled:opacity-50 disabled:pointer-events-none dark:hs-accordion-active:text-blue-500 dark:text-gray-200 dark:hover:text-gray-400 dark:focus:outline-none dark:focus:text-gray-400","aria-controls":"hs-basic-active-bordered-collapse-one"},Q=d(()=>e("svg",{class:"hs-accordion-active:hidden block w-3.5 h-3.5",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:"M5 12h14"}),e("path",{d:"M12 5v14"})],-1)),W=d(()=>e("svg",{class:"hs-accordion-active:block hidden w-3.5 h-3.5",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:"M5 12h14"})],-1)),X={id:"hs-basic-active-bordered-collapse-one",class:"hs-accordion-content hidden w-full overflow-hidden transition-[height] duration-300","aria-labelledby":"hs-active-bordered-heading-one"},Y={class:"pb-4 px-5 grid gap-3 grid-cols-1"},Z=["href"];function ee(o,a,x,te,l,h){const v=p("MainNavbar"),m=p("ClientFooterDown");return s(),r(c,null,[i(v,{class:"border-b",sections:o.$page.props.navigation},null,8,["sections"]),e("div",L,[e("article",T,[e("div",q,[e("div",z,[e("div",K,[R,A,e("div",E,[e("form",null,[e("div",G,[e("div",U,[e("div",$,[H,k(e("input",{onKeydown:a[0]||(a[0]=C(M(()=>{},["prevent"]),["enter"])),autocomplete:"off","onUpdate:modelValue":a[1]||(a[1]=t=>l.searchInput=t),onInput:a[2]||(a[2]=(...t)=>h.search&&h.search(...t)),type:"search",id:"hs-search-article-1",class:"py-2.5 px-4 block w-full border-transparent rounded-lg",placeholder:"Поиск"},null,544),[[y,l.searchInput]])])])])]),J])])])]),e("div",O,[i(B,{name:"fade"},{default:I(()=>[(s(!0),r(c,null,u(x.educationalGroups.data,t=>(s(),r("div",{key:t.id,class:"hs-accordion hs-accordion-active:border-gray-200 bg-white border-b dark:hs-accordion-active:border-gray-700 dark:bg-gray-800 dark:border-transparent",id:"hs-active-bordered-heading-one"},[e("button",P,[S(g(t.title)+" ",1),Q,W]),e("div",X,[e("div",Y,[(s(!0),r(c,null,u(t.schedules,n=>(s(),r("a",{key:n.id,target:"_blank",href:o.route("client.schedule.show",n.id),class:"py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-500 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},g(n.title),9,Z))),128))])])]))),128))]),_:1})])])]),i(m,{style:{"margin-top":"300px"}})],64)}const ie=F(V,[["render",ee],["__scopeId","data-v-1fd6ceca"]]);export{ie as default};