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

2 lines
6.1 KiB
JavaScript

import{i as w,r as p,o as s,c as r,a as i,b as e,k as _,s as b,x as k,j as f,w as y,y as C,F as l,h as M,d as g,g as B,t as u,z as I,A as N}from"./app-DmJ8GS-7.js";import{_ as S}from"./SearchModal.vue_vue_type_style_index_0_scoped_a4fc4416_lang-CbsljUTZ.js";import{_ as j}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import{C as D}from"./ClientFooterDown-D8UuGhzW.js";import{M as F}from"./MainPageNavbar-D4wqwiWH.js";const V={name:"Schedule",data(){return{searchInput:this.searchRequest}},components:{MainPageNavBar:F,ClientFooterDown:D,Link:w},props:["schedules","navigation","searchRequest"],methods:{search:S.debounce(function(){this.$inertia.reload({method:"get",data:{search:this.searchInput},preserveState:!0,replace:!0})},300)}},n=a=>(I("data-v-9010082e"),a=a(),N(),a),L={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},P={class:"w-full min-w-0 mt-4 px-1 md:px-6"},T={class:"relative overflow-hidden"},q={class:"max-w-[85rem] mx-auto px-4 sm:px-6 lg:px-8 py-10 sm:pb-24 sm:py-5"},z={class:"text-center"},K=n(()=>e("h1",{class:"text-2xl sm:text-4xl font-bold text-gray-800 dark:text-gray-200"}," Расписание занятий ",-1)),R=n(()=>e("div",{class:"text-center"},[e("p",{class:"mt-3 text-gray-600 dark:text-gray-400"}," Просто введите название группы ")],-1)),A={class:"mt-7 sm:mt-12 mx-auto max-w-xl relative"},E={class:"relative z-10 space-x-3 p-3 bg-white border rounded-lg shadow-lg shadow-gray-100"},G={class:"flex justify-between"},U={class:"flex w-full"},$=n(()=>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)),H=M('<div class="hidden md:block absolute top-0 end-0 -translate-y-12 translate-x-20" data-v-9010082e><svg class="w-16 h-auto text-orange-500" width="121" height="135" viewBox="0 0 121 135" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-9010082e><path d="M5 16.4754C11.7688 27.4499 21.2452 57.3224 5 89.0164" stroke="currentColor" stroke-width="10" stroke-linecap="round" data-v-9010082e></path><path d="M33.6761 112.104C44.6984 98.1239 74.2618 57.6776 83.4821 5" stroke="currentColor" stroke-width="10" stroke-linecap="round" data-v-9010082e></path><path d="M50.5525 130C68.2064 127.495 110.731 117.541 116 78.0874" stroke="currentColor" stroke-width="10" stroke-linecap="round" data-v-9010082e></path></svg></div><div class="hidden md:block absolute bottom-0 start-0 translate-y-10 -translate-x-32" data-v-9010082e><svg class="w-40 h-auto text-cyan-500" width="347" height="188" viewBox="0 0 347 188" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-9010082e><path d="M4 82.4591C54.7956 92.8751 30.9771 162.782 68.2065 181.385C112.642 203.59 127.943 78.57 122.161 25.5053C120.504 2.2376 93.4028 -8.11128 89.7468 25.5053C85.8633 61.2125 130.186 199.678 180.982 146.248L214.898 107.02C224.322 95.4118 242.9 79.2851 258.6 107.02C274.299 134.754 299.315 125.589 309.861 117.539L343 93.4426" stroke="currentColor" stroke-width="7" stroke-linecap="round" data-v-9010082e></path></svg></div>',2),J={class:"mx-auto max-w-2xl hs-accordion-group grid grid-cols-1 lg:grid-cols-2 gap-3"},O={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=n(()=>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=n(()=>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(a,o,v,te,c,h){const x=p("MainPageNavBar"),m=p("ClientFooterDown");return s(),r(l,null,[i(x,{class:"border-b",sections:a.$page.props.navigation},null,8,["sections"]),e("div",L,[e("article",P,[e("div",T,[e("div",q,[e("div",z,[K,R,e("div",A,[e("form",null,[e("div",E,[e("div",G,[e("div",U,[$,_(e("input",{onKeydown:o[0]||(o[0]=k(f(()=>{},["prevent"]),["enter"])),autocomplete:"off","onUpdate:modelValue":o[1]||(o[1]=t=>c.searchInput=t),onInput:o[2]||(o[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),[[b,c.searchInput]])])])])]),H])])])]),e("div",J,[i(C,{name:"fade"},{default:y(()=>[(s(!0),r(l,null,g(v.schedules.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",O,[B(u(t.name)+" ",1),Q,W]),e("div",X,[e("div",Y,[(s(!0),r(l,null,g(t.subSchedules,d=>(s(),r("a",{key:d.id,target:"_blank",href:d.path_file,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"},u(d.name),9,Z))),128))])])]))),128))]),_:1})])])]),i(m,{style:{"margin-top":"300px"}})],64)}const ie=j(V,[["render",ee],["__scopeId","data-v-9010082e"]]);export{ie as default};