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

2 lines
4.6 KiB
JavaScript

import{M as y}from"./MainNavbar-CBx37KIe.js";import{i as g,o as r,c as l,g as w,t as c,j as $,b as n,d as E,e as C,l as F,F as x,Z as L,r as a,a as i,w as P,f as T}from"./app-DmJ8GS-7.js";import{F as I}from"./v3-rkPj73qv.js";import{C as S}from"./ClientScrollTimeline-zadrTdrA.js";import{C as M}from"./ClientFooterDown-D8UuGhzW.js";import{C as k}from"./ClientImageSlider-CnDaATj1.js";import"./SearchModal.vue_vue_type_style_index_0_scoped_a4fc4416_lang-CbsljUTZ.js";import{_ as p}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{F as N,I as V,P as H,H as D,a as j,S as A,V as z,T as O,b as Y,c as Z,d as q,e as G}from"./PostBuilder-BKbcwEtd.js";/* empty css */import"./PageTabBuilder-CCvtc7Um.js";const J={name:"EventBackButton",components:{Link:g},data(){return{}},methods:{textLimit(t,o){if(t.length>o){let e;return e=t.substring(0,o),e+"..."}return t},back(){this.$page.props.urlPrev!=="empty"&&this.$inertia.visit(this.$page.props.urlPrev)}},props:{title:{type:String}}},K=n("svg",{class:"flex-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"},[n("path",{d:"m15 18-6-6 6-6"})],-1);function Q(t,o,e,m,u,d){return r(),l("a",{onClick:o[0]||(o[0]=$((...s)=>this.back&&this.back(...s),["prevent"])),class:"inline-flex items-center gap-x-1.5 text-sm text-gray-600 decoration-2 hover:underline dark:text-blue-500",href:"#"},[K,w(" "+c(e.title),1)])}const R=p(J,[["render",Q]]),U={name:"TitleEvent",components:{Link:g},data(){return{}},methods:{textLimit(t,o){if(t.length>o){let e;return e=t.substring(0,o),e+"..."}return t}},props:{header:{type:String}}},W={class:"text-brand-primary text-2xl mb-3 mt-2 md:text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"};function X(t,o,e,m,u,d){return r(),l("h1",W,c(e.header),1)}const ee=p(U,[["render",X]]),te={name:"EventBuilder",components:{FileBlock:N,ImageBlock:V,ClientImageSlider:k,ParagraphBlock:H,HeadingBlock:D,PersonBlock:j,StepperBlock:A,VideoBlock:z,TabBlock:O,PostListBlock:Y,PageItemBlock:Z,PostItemBlock:q},methods:{getComponent(t){return{heading:"HeadingBlock",paragraph:"ParagraphBlock",images:"ClientImageSlider",image:"ImageBlock",files:"FileBlock",person:"PersonBlock",stepper:"StepperBlock",video:"VideoBlock",tabs:"TabBlock",postsList:"PostListBlock",postItem:"PostItemBlock",pageItem:"PageItemBlock"}[t]||null}},props:{blocks:{type:Object}}};function ne(t,o,e,m,u,d){return r(!0),l(x,null,E(e.blocks,(s,_)=>(r(),C(F(d.getComponent(s.type)),{key:_,block:s},null,8,["block"]))),128)}const h=p(te,[["render",ne]]),oe={name:"Show",components:{EventtBuilder:h,EventBuilder:h,PostBuilder:G,TitleEvent:ee,EventBackButton:R,ClientImageSlider:k,ClientFooterDown:M,ClientScrollTimeline:S,Link:g,MainNavbar:y,FsLightbox:I,Head:L},data(){return{blocks:this.event.data.content}},props:{event:{type:Array},navigation:{type:Array}},methods:{textLimit(t,o){if(t.length>o){let e;return e=t.substring(0,o),e+"..."}return t}}},se=n("meta",{name:"description",content:"Your page description"},null,-1),ae={class:"relative mx-auto mt-[67px] max-w-screen-xl py-10 md:flex md:flex-row md:py-10"},ie={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"},le={class:"flex space-x-3 text-gray-500"},de={class:"flex items-center gap-3"},pe={class:"md:flex md:items-center space-y-3 md:space-y-0 space-x-2 text-sm"},me={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"},ue={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-xs font-medium bg-[#E9F2FE] text-blue-600"},_e={class:"col-start-2 text-center"},ge={class:"space-y-3 md:space-y-4"};function he(t,o,e,m,u,d){const s=a("Head"),_=a("MainNavbar"),v=a("EventBackButton"),f=a("TitleEvent"),B=a("EventBuilder"),b=a("ClientFooterDown");return r(),l(x,null,[i(s,null,{default:P(()=>[n("title",null,c(e.event.data.title),1),se]),_:1}),i(_,{sections:t.$page.props.navigation},null,8,["sections"]),n("div",ae,[n("div",ie,[n("div",null,[n("div",re,[n("div",ce,[i(v,{title:"Назад"}),i(f,{header:e.event.data.title},null,8,["header"])]),n("div",le,[n("div",de,[n("div",null,[n("div",pe,[e.event.data.is_online===1?(r(),l("p",me," Онлайн ")):T("",!0),n("p",ue,c(e.event.data.category),1),n("div",_e,[n("span",null,"Адрес: "+c(e.event.data.address),1)])])])])]),n("div",ge,[i(B,{blocks:this.blocks},null,8,["blocks"])])])])])]),i(b)],64)}const Fe=p(oe,[["render",he]]);export{Fe as default};