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

2 lines
6.7 KiB
JavaScript

import{o as n,c as a,b as e,F as p,d as v,u as w,i as m,r as d,a as u,w as b,t as f}from"./app-DmJ8GS-7.js";import{_ as h}from"./_plugin-vue_export-helper-DlAUqK2U.js";const _={name:"Repeater",data(){return{blocks:[]}},methods:{addBlock(){this.blocks.push({})},removeBlock(o){this.blocks.splice(o,1)}}},y={class:"space-y-4"},B={class:"flex gap-x-3"},z=["onClick"],C=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),$=[C],j=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),M=e("span",null,"Добавить день",-1),H=[j,M];function S(o,s,g,k,c,t){return n(),a("div",null,[e("div",y,[(n(!0),a(p,null,v(c.blocks,(r,l)=>(n(),a("div",{key:l},[e("div",B,[w(o.$slots,"block",{index:l,block:r}),e("button",{class:"hover:text-gray-500",onClick:i=>t.removeBlock(l)},$,8,z)])]))),128))]),e("button",{class:"hover:text-gray-500 flex mx-auto mt-3 gap-x-1",onClick:s[0]||(s[0]=(...r)=>t.addBlock&&t.addBlock(...r))},H)])}const L=h(_,[["render",S]]),N={name:"CreateSchedule",data(){return{days:[]}},computed:{weekDays(){return["Понедельник","Вторник","Среда","Четверг","Пятница","Суббота","Воскресенье"]}},props:{},components:{Repeater:L,Link:m},methods:{saveBlocks(){const o=JSON.stringify(this.blocks);console.log(o)}}},R={id:"sidebar-mini",class:"transform fixed top-0 start-0 bottom-0 z-[60] w-20 bg-white border-e border-gray-200 lg:block lg:translate-x-0 lg:end-auto lg:bottom-0 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500 dark:bg-neutral-800 dark:border-neutral-700",role:"dialog",tabindex:"-1","aria-label":"Mini Sidebar"},D={class:"flex flex-col justify-center items-center gap-y-2 py-4"},F={class:"mb-4"},J=e("img",{class:"max-w-[40px]",src:"/logos/only_logo.svg",alt:""},null,-1),V=e("div",{class:"hs-tooltip [--placement:right] inline-block"},[e("button",{type:"button",class:"hs-tooltip-toggle size-[38px] inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-full border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},[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:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),e("polyline",{points:"9 22 9 12 15 12 15 22"})]),e("span",{class:"hs-tooltip-content hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible opacity-0 inline-block absolute invisible z-20 py-1.5 px-2.5 bg-gray-900 text-xs text-white rounded-lg whitespace-nowrap dark:bg-neutral-700",role:"tooltip"}," Home ")])],-1),Z=e("div",{class:"hs-tooltip [--placement:right] inline-block"},[e("button",{type:"button",class:"hs-tooltip-toggle size-[38px] inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-full border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},[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:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),e("circle",{cx:"9",cy:"7",r:"4"}),e("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),e("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]),e("span",{class:"hs-tooltip-content hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible opacity-0 inline-block absolute invisible z-20 py-1.5 px-2.5 bg-gray-900 text-xs text-white rounded-lg whitespace-nowrap dark:bg-neutral-700",role:"tooltip"}," Users ")])],-1),E=e("div",{class:"hs-tooltip [--placement:right] inline-block"},[e("button",{type:"button",class:"hs-tooltip-toggle size-[38px] inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-full border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"},[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:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"}),e("path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0"})]),e("span",{class:"hs-tooltip-content hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible opacity-0 inline-block absolute invisible z-20 py-1.5 px-2.5 bg-gray-900 text-xs text-white rounded-lg whitespace-nowrap dark:bg-neutral-700",role:"tooltip"}," Notifications ")])],-1),O={class:"relative h-screen w-full"},U={class:"py-10 lg:py-14"},q={class:"max-w-4xl px-4 sm:px-6 lg:px-8 mx-auto text-center"},A=e("h1",{class:"text-3xl font-bold text-gray-800 sm:text-4xl dark:text-white"}," Расписание НТГСПИ ",-1),G=e("p",{class:"mt-3 text-gray-600 dark:text-neutral-400"}," Онлайн веб конструктор ",-1),I={class:"w-full py-3 border"};function K(o,s,g,k,c,t){const r=d("Link"),l=d("Repeater");return n(),a(p,null,[e("div",R,[e("div",D,[e("div",F,[u(r,{class:"flex-none text-xl font-semibold",href:"/","aria-label":"Brand"},{default:b(()=>[J]),_:1})]),V,Z,E])]),e("div",O,[e("div",U,[e("div",q,[A,G,e("div",null,[u(l,null,{block:b(({block:i,index:x})=>[e("div",I,f(t.weekDays[x]),1)]),_:1}),e("button",{onClick:s[0]||(s[0]=(...i)=>t.saveBlocks&&t.saveBlocks(...i)),type:"button",class:"hidden py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-200 text-gray-500 hover:border-blue-600 hover:text-blue-600 focus:outline-none focus:border-blue-600 focus:text-blue-600 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-neutral-400 dark:hover:text-blue-500 dark:hover:border-blue-600 dark:focus:text-blue-500 dark:focus:border-blue-600"}," Сохранить ")])])])])],64)}const T=h(N,[["render",K]]);export{T as default};