PageSourceSearch

https://scardio.ru/build/assets/Projects-eXPAavsX.js

js scardio.ru collected 2026-10-02 04:57:08 UTC 10,542 bytes, 1 lines download raw bytes

1import{i as x,Z as M,r as l,c as a,a as u,b as L,F as f,d as $,e,w as h,f as i,g as w,o as n,t as k,h as y,j as V,v as H}from"./app-DuNVDg6S.js";import{M as v}from"./Main-BLZjLK_J.js";import{_ as D}from"./Menu-B3wuB4Q7.js";import"./moment-DtKiCAIg.js";import{t as B}from"./throttle-Dw34iwG4.js";import{m as b}from"./index-DpguB7Ub.js";import{_ as A}from"./Input-DwOY32jy.js";import{M as P}from"./Modal-B0xvPQr5.js";import{_}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{_ as Z}from"./Pagination-Btnx3HPA.js";import"./env-CHS0fPHa.js";import"./micro-task-CxIZtCgj.js";import"./debounce-B2nXQSwG.js";const E={props:["channel"],components:{Modal:P,Input:A,Head:M,Link:x},data(){return{deleteId:"",showDeleteModal:!1}},methods:{getDate(o){return b(o).locale("ru").tz("Europe/Moscow").format("y.MM.DD")},getTime(o){return b(o).locale("ru").tz("Europe/Moscow").format("HH:mm")},deleteChannel(o){this.showDeleteModal=!this.showDeleteModal,this.deleteId=o}}},F={class:"border-t border-gray-40 pt-2.5 md:pt-3.5 pb-[50px] md:pb-[60px] group hover:border-blue-300"},N={class:"flex flex-col gap-2.5"},I={class:"order-3 md:order-1 flex gap-x-2.5 gap-y-1 text-gray-150 text-medium text-2xs md:text-base items-center flex-wrap"},S={class:"order-2 md:order-4"},T={class:"order-3 md:order-5"},z=["onClick"],U={key:0,class:"flex justify-center"},q={class:"inline-block align-bottom bg-white overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle relative"},G={class:"pt-20 pb-8 px-[5.938rem]"};function J(o,t,d,g,r,m){const c=l("Link"),p=l("Modal");return n(),a(f,null,[(n(!0),a(f,null,$(d.channel,s=>(n(),a("div",F,[e("div",N,[e("ul",I,[e("li",S,k(m.getDate(s.post_date)),1),e("li",T,k(m.getTime(s.post_date)),1),t[3]||(t[3]=e("li",{class:"order-4 w-full h-0 md:hidden"},null,-1)),o.$page.props.auth.user.admin?(n(),a("button",{key:0,onClick:C=>m.deleteChannel(s.id),class:"hidden md:block order-7"},[...t[2]||(t[2]=[y('<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 6H5H21" stroke="#13142A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z" stroke="#13142A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 11V17" stroke="#13142A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 11V17" stroke="#13142A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',1)])],8,z)):u("",!0)]),i(c,{href:o.route("projectsEdit",{id:s.id}),class:"order-1 md:order-2 md:mt-5 text-vela md:text-medium text-2xl leading-[1.2em] md:leading-[1.875rem] text-black group-hover:text-blue-300"},{default:h(()=>[w(k(s.name),1)]),_:2},1032,["href"])])]))),256)),d.channel.length===0?(n(),a("div",U,[...t[4]||(t[4]=[e("div",{class:"md:w-8/12"},[e("h2",{class:"text-semibold_vela text-4xl"}," Ничего не найдено ")],-1)])])):u("",!0),r.showDeleteModal?(n(),L(p,{key:r.showDeleteModal},{default:h(()=>[e("div",q,[e("button",{class:"absolute top-8 right-8",onClick:t[0]||(t[0]=s=>r.showDeleteModal=!r.showDeleteModal)},[...t[5]||(t[5]=[e("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M18.3002 6.52906C17.9102 6.13906 17.2802 6.13906 16.8902 6.52906L12.0002 11.4091L7.11022 6.51906C6.72022 6.12906 6.09021 6.12906 5.70021 6.51906C5.31021 6.90906 5.31021 7.53906 5.70021 7.92906L10.5902 12.8191L5.70021 17.7091C5.31021 18.0991 5.31021 18.7291 5.70021 19.1191C6.09021 19.5091 6.72022 19.5091 7.11022 19.1191L12.0002 14.2291L16.8902 19.1191C17.2802 19.5091 17.9102 19.5091 18.3002 19.1191C18.6902 18.7291 18.6902 18.0991 18.3002 17.7091L13.4102 12.8191L18.3002 7.92906C18.6802 7.54906 18.6802 6.90906 18.3002 6.52906Z",fill:"#525252"})],-1)])]),e("div",G,[t[7]||(t[7]=e("div",{class:"text-medium text-2xl"}," Действительно удалить проект? ",-1)),i(c,{href:o.route("projectsDestroy",{id:r.deleteId}),onClick:t[1]||(t[1]=s=>r.showDeleteModal=!r.showDeleteModal),method:"delete",class:"block text-bold text-white bg-black w-full py-8"},{default:h(()=>[...t[6]||(t[6]=[w(" Удалить ",-1)])]),_:1},8,["href"])])])]),_:1})):u("",!0)],64)}const K=_(E,[["render",J]]),O={props:["items"],components:{ChannelsList:K,Link:x},data(){return{filters:{search:""}}},methods:{},watch:{filters:{deep:!0,handler:B(function(){this.$inertia.get("/admin/projects",this.filters,{preserveScroll:!0,preserveState:!0,replace:!0})},150)}}},Q={class:"flex justify-between items-center gap-6 mb-12"},R={class:"border-2 border-gray-40 px-4 py-3 w-full flex gap-2"},W={class:"col-span-12 lg:col-span-9"};function X(o,t,d,g,r,m){const c=l("Link"),p=l("ChannelsList");return n(),a(f,null,[e("div",Q,[e("label",R,[t[1]||(t[1]=e("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M11 19.5C15.4183 19.5 19 15.9183 19 11.5C19 7.08172 15.4183 3.5 11 3.5C6.58172 3.5 3 7.08172 3 11.5C3 15.9183 6.58172 19.5 11 19.5Z",stroke:"#52525C","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M20.9999 21.4999L16.6499 17.1499",stroke:"#52525C","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),V(e("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=s=>this.filters.search=s),class:"w-full focus:outline-none border-none focus:border-none focus:ring-0 focus:ring-offset-0 text-medium text-xss placeholder:text-xss placeholder:text-medium",placeholder:"Найти"},null,512),[[H,this.filters.search]])]),i(c,{href:o.route("projectsCreate")},{default:h(()=>[...t[2]||(t[2]=[e("svg",{width:"60",height:"60",viewBox:"0 0 88 88",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("circle",{cx:"44",cy:"44",r:"44",fill:"#F4F7FA"}),e("g",{"clip-path":"url(#clip0_340_6990)"},[e("path",{d:"M43 36H36C35.4696 36 34.9609 36.2107 34.5858 36.5858C34.2107 36.9609 34 37.4696 34 38V52C34 52.5304 34.2107 53.0391 34.5858 53.4142C34.9609 53.7893 35.4696 54 36 54H50C50.5304 54 51.0391 53.7893 51.4142 53.4142C51.7893 53.0391 52 52.5304 52 52V45",stroke:"#13142A","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M50.5 33.5002C50.8978 33.1024 51.4374 32.8789 52 32.8789C52.5626 32.8789 53.1022 33.1024 53.5 33.5002C53.8978 33.8981 54.1213 34.4376 54.1213 35.0002C54.1213 35.5628 53.8978 36.1024 53.5 36.5002L44 46.0002L40 47.0002L41 43.0002L50.5 33.5002Z",stroke:"#13142A","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]),e("defs",null,[e("clipPath",{id:"clip0_340_6990"},[e("rect",{width:"24",height:"24",fill:"white",transform:"translate(32 32)"})])])],-1)])]),_:1},8,["href"])]),e("div",W,[i(p,{channel:d.items.data},null,8,["channel"])])],64)}const Y=_(O,[["render",X]]),ee={layout:v,props:["items"],components:{Head:M,MainLayout:v,Link:x,Pagination:Z,Menu:D,Channels:Y},data(){return{}},methods:{}},te={class:"bg-gray-50"},oe={class:"container mx-auto px-4 pb-12"},se={class:"grid grid-cols-12 pt-16 items-center"},re={class:"col-span-12 md:col-span-6 md:ml-8"},ne={class:"flex items-center"},le={class:"flex w-4/6 flex-col gap-2.5 h-full"},ie={class:"container mx-auto px-4 mt-10"},de={class:"grid grid-cols-12 gap-8"},ae={class:"md:col-span-3 col-span-12"},ce={class:"flex flex-col gap-4"}
1,pe={class:"md:col-span-9 col-span-12"};function he(o,t,d,g,r,m){const c=l("Head"),p=l("Link"),s=l("Menu"),C=l("Channels"),j=l("Pagination");return n(),a(f,null,[i(c,{title:"Админ-панель"}),e("div",te,[e("div",oe,[e("div",se,[t[3]||(t[3]=e("div",{class:"col-span-12 md:col-span-6 border-r md:pr-4"},[e("div",{class:"md:w-7/12 text-black text-bold_vela text-4xl py-6"}," Панель администратора ")],-1)),e("div",re,[e("div",ne,[t[2]||(t[2]=y('<svg class="block mr-6" width="88" height="88" viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="44" cy="44" r="44" fill="white"></circle><g clip-path="url(#clip0_340_6990)"><path d="M43 36H36C35.4696 36 34.9609 36.2107 34.5858 36.5858C34.2107 36.9609 34 37.4696 34 38V52C34 52.5304 34.2107 53.0391 34.5858 53.4142C34.9609 53.7893 35.4696 54 36 54H50C50.5304 54 51.0391 53.7893 51.4142 53.4142C51.7893 53.0391 52 52.5304 52 52V45" stroke="#13142A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M50.5 33.5002C50.8978 33.1024 51.4374 32.8789 52 32.8789C52.5626 32.8789 53.1022 33.1024 53.5 33.5002C53.8978 33.8981 54.1213 34.4376 54.1213 35.0002C54.1213 35.5628 53.8978 36.1024 53.5 36.5002L44 46.0002L40 47.0002L41 43.0002L50.5 33.5002Z" stroke="#13142A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_340_6990"><rect width="24" height="24" fill="white" transform="translate(32 32)"></rect></clipPath></defs></svg>',1)),e("div",le,[i(p,{href:o.route("projectsCreate"),class:"flex justify-center bg-black text-white h-full w-full text-medium text-xss items-center py-8"},{default:h(()=>[...t[0]||(t[0]=[e("svg",{class:"mr-2.5",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M19 3.5H5C3.89543 3.5 3 4.39543 3 5.5V19.5C3 20.6046 3.89543 21.5 5 21.5H19C20.1046 21.5 21 20.6046 21 19.5V5.5C21 4.39543 20.1046 3.5 19 3.5Z",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M12 8.5V16.5",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M8 12.5H16",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),w(" Создать проект ",-1)])]),_:1},8,["href"]),i(p,{href:o.route("templateEditor"),class:"flex justify-center border border-black text-black h-full w-full text-medium text-xss items-center py-5 transition duration-300 hover:bg-black hover:text-white"},{default:h(()=>[...t[1]||(t[1]=[w(" Конструктор шаблонов ",-1)])]),_:1},8,["href"])])])])])])]),e("div",ie,[e("div",de,[e("div",ae,[e("div",ce,[i(s)])]),e("div",pe,[i(C,{items:d.items},null,8,["items"]),d.items.data?(n(),L(j,{key:0,calendar:d.items,class:"mt-10"},null,8,["calendar"])):u("",!0)])])])],64)}const ye=_(ee,[["render",he]]);export{ye as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.