Files
ntspi-app/public/build/assets/Show-DIjLqyzs.js
T
2024-10-28 12:57:16 +05:00

2 lines
9.8 KiB
JavaScript

import{M as N}from"./MainNavbar-5-nqk6c_.js";import{i as w,r as l,o as m,c as v,b as e,a as o,w as d,p as f,j as h,t as a,l as p,Z as C,F as E}from"./app-lT3z3TR3.js";import{F as L}from"./v3-B5UP5GZw.js";import{C as M}from"./ClientScrollTimeline-BxA_EWwM.js";import{B as I,C as T}from"./SearchModal-YI3bdWA9.js";import D from"./ClientImageSlider-CGZZYYI8.js";import{E as b,T as F,a as q}from"./EventBuilder-Cx5Dh3-L.js";import{P as $}from"./PostBuilder-BfOHHDzX.js";import{C as j}from"./ClientEventSelectDate-Dy72p0i3.js";import{C as P}from"./ClientEventFilter-CNRvs5cm.js";import{M as z}from"./MainPageNavbar-BfM50q-7.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";/* empty css */import"./PageTabBuilder-CXLfoCo_.js";import"./HeadingBlock-DZAeIVzd.js";import"./ParagraphBlock-_EhfXk9v.js";import"./ImageBlock-cPU_Sbw4.js";import"./FileBlock-BU1S9yFx.js";import"./PersonBlock-MXpsfzV_.js";import"./StepperBlock-DhPHG4yx.js";import"./VideoBlock-BcEyk91j.js";import"./PostListBlock-Vo9iG3Sb.js";import"./PageSkeleton-BoZKiMn9.js";import"./SortingByFilter-CjZ8gKSr.js";const V={name:"EventItemBreadcrumbs",components:{BaseIcon:I,Link:w},data(){return{}},methods:{textLimit(s,t){if(s.length>t){let n;return n=s.substring(0,t),n+"..."}return s},isMobileDevice(){return window.innerWidth<1024},handleSectionClick(s){this.isMobileDevice()?this.toggleMobileNavSection(s):this.toggleDesktopNavSection(s)},handleSubSectionClick(s,t){this.isMobileDevice()?this.toggleMobileNavSubSection(s,t):this.toggleDesktopNavSubSection(s,t)},highlightNavItem(s){s.classList.add("animate-pulse"),setTimeout(()=>{s.classList.remove("animate-pulse")},4e3)},openMobileNavMenu(){document.getElementById("open-mobile-btn").click()},toggleMobileNavSubSection(s,t){this.openMobileNavMenu();const n=document.getElementById("open-mobile-nav"),c=n.querySelector("#nav-section-accordion-"+s.data.slug),g=n.querySelector("#nav-section-accordion-btn-"+s.data.slug);c.classList.contains("active")||g.click();const i=n.querySelector("#nav-sub-section-accordion-"+t.data.slug),u=n.querySelector("#nav-sub-section-accordion-btn-"+t.data.slug);i.classList.contains("active")&&u.click(),this.highlightNavItem(i)},toggleMobileNavSection(s){const t=document.getElementById("open-mobile-nav"),n=t.querySelector("#nav-section-accordion-"+s.data.slug),c=t.querySelector("#nav-section-accordion-btn-"+s.data.slug);n.classList.contains("active")&&c.click(),this.openMobileNavMenu(),this.highlightNavItem(n)},toggleDesktopNavSubSection(s,t){const n=document.getElementById("desktop-nav"),c=n.querySelector("#nav-sub-section-title-"+t.data.slug);n.querySelector("#nav-section-btn-"+s.data.slug).click(),this.highlightNavItem(c)},toggleDesktopNavSection(s){const t=document.getElementById("desktop-nav");t.querySelector("#nav-section-menu-"+s.data.slug),t.querySelector("#nav-section-btn-"+s.data.slug).click()}},props:{breadcrumbs:{type:Object},eventTitle:{type:String}}},H={class:"flex justify-between pb-4 items-center"},A={class:"flex w-full sm:items-center gap-x-5 sm:gap-x-3"},O={class:"grow"},W={class:"grid sm:flex sm:justify-between sm:items-center gap-2"},Y={key:0,class:"flex items-center whitespace-normal min-w-0 flex-wrap gap-y-2","aria-label":"Breadcrumb"},Z={class:"text-sm"},G={key:0,class:"text-sm"},J={key:1,class:"text-sm"},K={class:"text-sm"},Q={class:"text-sm"},R={key:1,class:"flex items-center whitespace-nowrap min-w-0 flex-wrap","aria-label":"Breadcrumb"},U={class:"text-sm"},X={class:"text-sm"},ee={class:"text-sm"};function te(s,t,n,c,g,i){const u=l("BaseIcon"),r=l("Link");return m(),v("div",H,[e("div",A,[e("div",O,[e("div",W,[n.breadcrumbs?(m(),v("ol",Y,[e("li",Z,[o(r,{href:s.route("index"),class:"flex items-center text-gray-500 hover:text-blue-600"},{default:d(()=>[o(u,{class:"size-5",name:"home"})]),_:1},8,["href"])]),n.breadcrumbs.mainSection?(m(),v("li",G,[e("span",{class:"flex items-center text-gray-500 hover:text-primaryBlue cursor-pointer",onClick:t[0]||(t[0]=f(x=>i.handleSectionClick(this.breadcrumbs.mainSection),["prevent"]))},[t[2]||(t[2]=e("svg",{class:"flex-shrink-0 mx-2 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)),h(" "+a(i.textLimit(this.breadcrumbs.mainSection.data.title,25)),1)])])):p("",!0),n.breadcrumbs.subSection?(m(),v("li",J,[e("span",{class:"flex items-center text-gray-500 hover:text-primaryBlue cursor-pointer",onClick:t[1]||(t[1]=f(x=>i.handleSubSectionClick(this.breadcrumbs.mainSection,this.breadcrumbs.subSection),["prevent"]))},[t[3]||(t[3]=e("svg",{class:"flex-shrink-0 mx-2 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)),h(" "+a(i.textLimit(this.breadcrumbs.subSection.data.title,25)),1)])])):p("",!0),e("li",K,[o(r,{href:s.route("client.event.index"),class:"flex items-center text-gray-500 hover:text-blue-600"},{default:d(()=>[t[4]||(t[4]=e("svg",{class:"flex-shrink-0 mx-2 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)),h(" "+a(i.textLimit("Мероприятия",30)),1)]),_:1},8,["href"])]),e("li",Q,[o(r,{href:this.$inertia.page.props.ziggy.location,class:"flex items-center text-gray-500 hover:text-blue-600"},{default:d(()=>[t[5]||(t[5]=e("svg",{class:"flex-shrink-0 mx-2 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)),h(" "+a(n.eventTitle),1)]),_:1},8,["href"])])])):p("",!0),n.breadcrumbs?p("",!0):(m(),v("ol",R,[e("li",U,[o(r,{href:s.route("index"),class:"flex items-center text-gray-500 hover:text-blue-600"},{default:d(()=>[o(u,{class:"size-5",name:"home"})]),_:1},8,["href"])]),e("li",X,[o(r,{href:s.route("client.event.index"),class:"flex items-center text-gray-500 hover:text-blue-600"},{default:d(()=>[t[6]||(t[6]=e("svg",{class:"flex-shrink-0 mx-2 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)),h(" "+a(i.textLimit("Мероприятия",30)),1)]),_:1},8,["href"])]),e("li",ee,[o(r,{href:this.$inertia.page.props.ziggy.location,class:"flex items-center text-gray-500 hover:text-blue-600"},{default:d(()=>[t[7]||(t[7]=e("svg",{class:"flex-shrink-0 mx-2 overflow-visible h-2.5 w-2.5 text-gray-400",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)),h(" "+a(n.eventTitle),1)]),_:1},8,["href"])])]))])])])])}const se=k(V,[["render",te]]),ne={name:"Show",components:{EventItemBreadcrumbs:se,MainPageNavBar:z,ClientEventFilter:P,ClientEventSelectDate:j,EventtBuilder:b,EventBuilder:b,PostBuilder:$,TitleEvent:F,EventBackButton:q,ClientImageSlider:D,ClientFooterDown:T,ClientScrollTimeline:M,Link:w,MainNavbar:N,FsLightbox:L,Head:C},data(){return{blocks:this.event.data.content}},props:{event:{type:Array},navigation:{type:Array},breadcrumbs:{type:Object}},methods:{textLimit(s,t){if(s.length>t){let n;return n=s.substring(0,t),n+"..."}return s}}},oe={class:"flex flex-col h-screen"},ie={class:"flex-grow"},le={class:"relative mx-auto mt-[67px] max-w-screen-xl py-10 md:flex md:flex-row md:py-10"},ae={class:"max-w-4xl px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},re={class:"space-y-5 md:space-y-10"},ce={class:"space-y-3"},de={class:"flex space-x-3 text-gray-500"},me={class:"flex items-center gap-3"},ve={class:"md:flex md:items-center space-y-3 md:space-y-0 space-x-2 text-sm"},ue={key:0,class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-xs font-medium bg-[#E9F2FE] text-blue-600"},he={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-xs font-medium bg-[#E9F2FE] text-blue-600"},pe={class:"col-start-2 text-center"},ge={class:"space-y-3 md:space-y-4"};function xe(s,t,n,c,g,i){const u=l("Head"),r=l("MainPageNavBar"),x=l("EventItemBreadcrumbs"),_=l("EventBackButton"),y=l("TitleEvent"),B=l("EventBuilder"),S=l("ClientFooterDown");return m(),v(E,null,[o(u,null,{default:d(()=>[e("title",null,a(n.event.data.title),1),t[0]||(t[0]=e("meta",{name:"description",content:"Your page description"},null,-1))]),_:1}),o(r,{class:"border-b",sections:s.$page.props.navigation},null,8,["sections"]),e("div",oe,[e("main",ie,[e("div",le,[e("div",ae,[e("div",null,[e("div",re,[e("div",ce,[o(x,{breadcrumbs:n.breadcrumbs,"event-title":n.event.data.title},null,8,["breadcrumbs","event-title"]),o(_,{link:"client.event.index",title:"Все мероприятия"}),o(y,{header:n.event.data.title},null,8,["header"])]),e("div",de,[e("div",me,[e("div",null,[e("div",ve,[n.event.data.is_online===1?(m(),v("p",ue," Онлайн ")):p("",!0),e("p",he,a(n.event.data.category),1),e("div",pe,[e("span",null,"Адрес: "+a(n.event.data.address),1)])])])])]),e("div",ge,[o(B,{blocks:this.blocks},null,8,["blocks"])])])])])])]),o(S)])],64)}const Ae=k(ne,[["render",xe]]);export{Ae as default};